Commit ee436e73f0966a99e68dbb59c984c05c9f035984

Authored by yeqianyong
1 parent 9f9dcfa0

楚江ERP-客户开发bug修复

... ... @@ -188,12 +188,15 @@ public class CustomerDevelopPlanServiceImpl extends BaseMpServiceImpl<CustomerDe
188 188 data.setSettleDays(vo.getSettleDays());
189 189 }
190 190 data.setChargeUserId(vo.getChargeUserId());
191   -
192   - getBaseMapper().insert(data);
  191 + // 创建人
  192 + data.setCreateById(SecurityUtil.getCurrentUser().getId());
  193 + data.setUpdateById(SecurityUtil.getCurrentUser().getId());
193 194 // 流程处理
194   - Instance instance = flowInstanceWrapperService.startInstance("CUSTOMER_DEVELOP", id, BPM_FLAG, getBaseMapper().selectById(id));
  195 + Instance instance = flowInstanceWrapperService.startInstance("CUSTOMER_DEVELOP", id, BPM_FLAG, data);
195 196 data.setFlowInstanceId(instance.getId());
196 197
  198 + getBaseMapper().insert(data);
  199 +
197 200 OpLogUtil.setVariable("id", data.getId());
198 201 OpLogUtil.setExtra(vo);
199 202 return data.getId();
... ...