Commit 7e7703baba71a222acbb0e5d2db8a37861f6509c

Authored by yeqianyong
1 parent db088ad2

楚江ERP-客户开发bug修复

... ... @@ -188,11 +188,11 @@ public class CustomerDevelopPlanServiceImpl extends BaseMpServiceImpl<CustomerDe
188 188 data.setSettleDays(vo.getSettleDays());
189 189 }
190 190 data.setChargeUserId(vo.getChargeUserId());
191   - // 流程处理
192   - Instance instance = flowInstanceWrapperService.startInstance("CUSTOMER_DEVELOP", id, BPM_FLAG, data);
193   - data.setFlowInstanceId(instance.getId());
194 191
195 192 getBaseMapper().insert(data);
  193 + // 流程处理
  194 + Instance instance = flowInstanceWrapperService.startInstance("CUSTOMER_DEVELOP", id, BPM_FLAG, getBaseMapper().selectById(id));
  195 + data.setFlowInstanceId(instance.getId());
196 196
197 197 OpLogUtil.setVariable("id", data.getId());
198 198 OpLogUtil.setExtra(vo);
... ...