|
|
|
@@ -172,12 +172,11 @@ public class WxCarCallBackController extends BaseController { |
|
|
|
record.setRemainingDays(remainingDays); |
|
|
|
record.setPhone(phoneStrs); |
|
|
|
record.setTenantId(tenantId); |
|
|
|
wxCarPayRecordService.updateBySynId(record); |
|
|
|
|
|
|
|
WxCarPayRecord query = new WxCarPayRecord(); |
|
|
|
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); |
|
|
|
}else{ |
|
|
|
wxCarPayRecordService.saveOrUpdate(record); |
|
|
|
@@ -286,8 +285,8 @@ public class WxCarCallBackController extends BaseController { |
|
|
|
|
|
|
|
WxCarPayRecord query = new WxCarPayRecord(); |
|
|
|
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); |
|
|
|
}else{ |
|
|
|
wxCarPayRecordService.saveOrUpdate(record); |
|
|
|
@@ -554,3 +553,4 @@ public class WxCarCallBackController extends BaseController { |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|