Commit eecdf757 by yinyong

抓取所有退款数据

parent 58954b8d
...@@ -84,10 +84,10 @@ public class CrmRefundSyncJob extends PointJob { ...@@ -84,10 +84,10 @@ public class CrmRefundSyncJob extends PointJob {
throw new RuntimeException("CRM退款BeanUtils.copyProperties失败", e); throw new RuntimeException("CRM退款BeanUtils.copyProperties失败", e);
} }
DcBaseCrmRefundMapper mapper = SessionUtil.getSession().getMapper(DcBaseCrmRefundMapper.class); DcBaseCrmRefundMapper mapper = SessionUtil.getSession().getMapper(DcBaseCrmRefundMapper.class);
int i = mapper.updateByExampleSelective(dcBaseCrmRefund, DcBaseCrmRefundExample.newAndCreateCriteria().andCrmIdEqualTo(dcBaseCrmRefund.getCrmId()).example()); /* int i = mapper.updateByExampleSelective(dcBaseCrmRefund, DcBaseCrmRefundExample.newAndCreateCriteria().andCrmIdEqualTo(dcBaseCrmRefund.getCrmId()).example());
if (i == 0) { if (i == 0) {*/
mapper.insertSelective(dcBaseCrmRefund); mapper.insertSelective(dcBaseCrmRefund);
} // }
// SessionUtil.getSession().commit(); // SessionUtil.getSession().commit();
} }
} catch (Exception e) { } 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