| @@ -172,12 +172,11 @@ public class WxCarCallBackController extends BaseController { | |||||
| record.setRemainingDays(remainingDays); | record.setRemainingDays(remainingDays); | ||||
| record.setPhone(phoneStrs); | record.setPhone(phoneStrs); | ||||
| record.setTenantId(tenantId); | record.setTenantId(tenantId); | ||||
| wxCarPayRecordService.updateBySynId(record); | |||||
| WxCarPayRecord query = new WxCarPayRecord(); | WxCarPayRecord query = new WxCarPayRecord(); | ||||
| query.setSynId(synId); | query.setSynId(synId); | ||||
| PageInfo<WxCarPayRecord> page = wxCarPayRecordService.findCarPayListByPage(query,1,1); | |||||
| if(page != null && CollectionUtils.isNotEmpty(page.getList())){ | |||||
| Integer findCarPayCount = wxCarPayRecordService.findCarPayCount(query); | |||||
| if(findCarPayCount != null && findCarPayCount.intValue() >0 ){ | |||||
| wxCarPayRecordService.updateBySynId(record); | wxCarPayRecordService.updateBySynId(record); | ||||
| }else{ | }else{ | ||||
| wxCarPayRecordService.saveOrUpdate(record); | wxCarPayRecordService.saveOrUpdate(record); | ||||
| @@ -286,8 +285,8 @@ public class WxCarCallBackController extends BaseController { | |||||
| WxCarPayRecord query = new WxCarPayRecord(); | WxCarPayRecord query = new WxCarPayRecord(); | ||||
| query.setSynId(synId); | query.setSynId(synId); | ||||
| PageInfo<WxCarPayRecord> page = wxCarPayRecordService.findCarPayListByPage(query,1,1); | |||||
| if(page != null && CollectionUtils.isNotEmpty(page.getList())){ | |||||
| Integer findCarPayCount = wxCarPayRecordService.findCarPayCount(query); | |||||
| if(findCarPayCount != null && findCarPayCount.intValue() >0 ){ | |||||
| wxCarPayRecordService.updateBySynId(record); | wxCarPayRecordService.updateBySynId(record); | ||||
| }else{ | }else{ | ||||
| wxCarPayRecordService.saveOrUpdate(record); | wxCarPayRecordService.saveOrUpdate(record); | ||||
| @@ -554,3 +553,4 @@ public class WxCarCallBackController extends BaseController { | |||||
| } | } | ||||
| } | } | ||||