Commit eecdf757 by yinyong

抓取所有退款数据

parent 58954b8d
......@@ -84,10 +84,10 @@ public class CrmRefundSyncJob extends PointJob {
throw new RuntimeException("CRM退款BeanUtils.copyProperties失败", e);
}
DcBaseCrmRefundMapper mapper = SessionUtil.getSession().getMapper(DcBaseCrmRefundMapper.class);
int i = mapper.updateByExampleSelective(dcBaseCrmRefund, DcBaseCrmRefundExample.newAndCreateCriteria().andCrmIdEqualTo(dcBaseCrmRefund.getCrmId()).example());
if (i == 0) {
/* int i = mapper.updateByExampleSelective(dcBaseCrmRefund, DcBaseCrmRefundExample.newAndCreateCriteria().andCrmIdEqualTo(dcBaseCrmRefund.getCrmId()).example());
if (i == 0) {*/
mapper.insertSelective(dcBaseCrmRefund);
}
// }
// SessionUtil.getSession().commit();
}
} catch (Exception e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment