|
|
|
@@ -180,10 +180,9 @@ public class WxCarCallBackController extends BaseController { |
|
|
|
query.setSynId(synId); |
|
|
|
PageInfo<WxCarPayRecord> page = wxCarPayRecordService.findCarPayListByPage(query,1,1); |
|
|
|
if(page != null && CollectionUtils.isNotEmpty(page.getList())){ |
|
|
|
wxCarPayRecordService.updateBySynId(record); |
|
|
|
}else{ |
|
|
|
wxCarPayRecordService.saveOrUpdate(record); |
|
|
|
record.setId(page.getList().get(0).getId()); |
|
|
|
} |
|
|
|
wxCarPayRecordService.saveOrUpdate(record); |
|
|
|
} catch (Exception e) { |
|
|
|
e.printStackTrace(); |
|
|
|
logger.error("WxCarPayRecord: 入库错误 ",e); |
|
|
|
@@ -290,10 +289,9 @@ public class WxCarCallBackController extends BaseController { |
|
|
|
query.setSynId(synId); |
|
|
|
PageInfo<WxCarPayRecord> page = wxCarPayRecordService.findCarPayListByPage(query,1,1); |
|
|
|
if(page != null && CollectionUtils.isNotEmpty(page.getList())){ |
|
|
|
wxCarPayRecordService.updateBySynId(record); |
|
|
|
}else{ |
|
|
|
wxCarPayRecordService.saveOrUpdate(record); |
|
|
|
record.setId(page.getList().get(0).getId()); |
|
|
|
} |
|
|
|
wxCarPayRecordService.saveOrUpdate(record); |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error("WxCarPayRecord: 出场更新错误 " +e.getMessage()+", " +paramMap.toString()); |
|
|
|
return true; |
|
|
|
|