| @@ -178,8 +178,8 @@ public class WxCarCallBackController extends BaseController { | |||||
| WxCarPayRecord query = new WxCarPayRecord(); | WxCarPayRecord query = new WxCarPayRecord(); | ||||
| query.setSynId(synId); | query.setSynId(synId); | ||||
| Integer findCarPayCount = wxCarPayRecordService.findCarPayCount(query); | |||||
| if(findCarPayCount != null && findCarPayCount.intValue() >0 ){ | |||||
| PageInfo<WxCarPayRecord> page = wxCarPayRecordService.findCarPayListByPage(query,1,1); | |||||
| if(page != null && CollectionUtils.isNotEmpty(page.getList())){ | |||||
| wxCarPayRecordService.updateBySynId(record); | wxCarPayRecordService.updateBySynId(record); | ||||
| }else{ | }else{ | ||||
| wxCarPayRecordService.saveOrUpdate(record); | wxCarPayRecordService.saveOrUpdate(record); | ||||
| @@ -288,8 +288,8 @@ public class WxCarCallBackController extends BaseController { | |||||
| WxCarPayRecord query = new WxCarPayRecord(); | WxCarPayRecord query = new WxCarPayRecord(); | ||||
| query.setSynId(synId); | query.setSynId(synId); | ||||
| Integer findCarPayCount = wxCarPayRecordService.findCarPayCount(query); | |||||
| if(findCarPayCount != null && findCarPayCount.intValue() >0 ){ | |||||
| PageInfo<WxCarPayRecord> page = wxCarPayRecordService.findCarPayListByPage(query,1,1); | |||||
| if(page != null && CollectionUtils.isNotEmpty(page.getList())){ | |||||
| wxCarPayRecordService.updateBySynId(record); | wxCarPayRecordService.updateBySynId(record); | ||||
| }else{ | }else{ | ||||
| wxCarPayRecordService.saveOrUpdate(record); | wxCarPayRecordService.saveOrUpdate(record); | ||||
| @@ -435,9 +435,9 @@ public class WxCarCallBackController extends BaseController { | |||||
| WxCarPayRecord query = new WxCarPayRecord(); | WxCarPayRecord query = new WxCarPayRecord(); | ||||
| query.setSynId(orderId); | query.setSynId(orderId); | ||||
| Integer findCarPayCount = wxCarPayRecordService.findCarPayCount(query); | |||||
| if(findCarPayCount != null && findCarPayCount.intValue() > 0){ | |||||
| if(findCarPayCount.intValue() >= 2){ | |||||
| PageInfo<WxCarPayRecord> page = wxCarPayRecordService.findCarPayListByPage(query,1,2); | |||||
| if(page != null && page.getList().size() > 0){ | |||||
| if(page.getList().size() >= 2){ | |||||
| wxCarPayRecordService.saveOrUpdate(record); | wxCarPayRecordService.saveOrUpdate(record); | ||||
| }else{ | }else{ | ||||
| wxCarPayRecordService.updateBySynId(record); | wxCarPayRecordService.updateBySynId(record); | ||||
| @@ -556,4 +556,3 @@ public class WxCarCallBackController extends BaseController { | |||||
| } | } | ||||
| } | } | ||||