| | |
| | | private String changePersonName; |
| | | private String state; |
| | | private String storeId; |
| | | private String nextUserId; |
| | | |
| | | |
| | | private Date createTime; |
| | |
| | | public void setPlanIds(String[] planIds) { |
| | | this.planIds = planIds; |
| | | } |
| | | |
| | | @Override |
| | | public String getNextUserId() { |
| | | return nextUserId; |
| | | } |
| | | |
| | | @Override |
| | | public void setNextUserId(String nextUserId) { |
| | | this.nextUserId = nextUserId; |
| | | } |
| | | } |
| | |
| | | private String storeId; |
| | | |
| | | |
| | | |
| | | public String getPlanType() { |
| | | return planType; |
| | | } |
| | |
| | | variables.put("contractChangePlanDto", contractChangePlanDto); |
| | | variables.put("userId", contractChangePlanDto.getCurrentUserId()); |
| | | variables.put("startUserId", contractChangePlanDto.getCurrentUserId()); |
| | | variables.put("nextUserId", contractChangePlanDto.getNextUserId()); |
| | | //开启流程 |
| | | ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(getWorkflowDto(contractChangePlanDto.getStoreId()),contractChangePlanDto.getPlanId(), variables); |
| | | //将得到的实例流程id值赋给之前设置的变量 |
| | |
| | | |
| | | ContractChangePlanDetailPo contractChangePlanDetailPo = BeanConvertUtil.covertBean(reqJson, ContractChangePlanDetailPo.class); |
| | | contractChangePlanDetailPo.setStoreId(storeId); |
| | | return saveContractChangePlanBMOImpl.save(contractChangePlanPo, contractChangePlanDetailPo,contractChangePlanRoomPos); |
| | | return saveContractChangePlanBMOImpl.save(contractChangePlanPo, contractChangePlanDetailPo,contractChangePlanRoomPos,reqJson); |
| | | } |
| | | |
| | | /** |
| | |
| | | package com.java110.store.bmo.contractChangePlan; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.po.contractChangePlan.ContractChangePlanPo; |
| | | import com.java110.po.contractChangePlanDetail.ContractChangePlanDetailPo; |
| | | import com.java110.po.contractChangePlanRoom.ContractChangePlanRoomPo; |
| | |
| | | */ |
| | | ResponseEntity<String> save(ContractChangePlanPo contractChangePlanPo, |
| | | ContractChangePlanDetailPo contractChangePlanDetailPo, |
| | | List<ContractChangePlanRoomPo> contractChangePlanRoomPos); |
| | | List<ContractChangePlanRoomPo> contractChangePlanRoomPos, |
| | | JSONObject reqJson); |
| | | |
| | | |
| | | } |
| | |
| | | package com.java110.store.bmo.contractChangePlan.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.dto.RoomDto; |
| | |
| | | @Java110Transactional |
| | | public ResponseEntity<String> save(ContractChangePlanPo contractChangePlanPo, |
| | | ContractChangePlanDetailPo contractChangePlanDetailPo, |
| | | List<ContractChangePlanRoomPo> contractChangePlanRoomPos) { |
| | | List<ContractChangePlanRoomPo> contractChangePlanRoomPos, |
| | | JSONObject reqJson) { |
| | | |
| | | //查询老的合同信息 |
| | | ContractDto contractDto = new ContractDto(); |
| | |
| | | //提交流程 |
| | | ContractChangePlanDto contractChangePlanDto = BeanConvertUtil.covertBean(contractChangePlanPo, ContractChangePlanDto.class); |
| | | contractChangePlanDto.setCurrentUserId(contractChangePlanPo.getChangePerson()); |
| | | contractChangePlanDto.setNextUserId(reqJson.getString("nextUserId")); |
| | | contractChangeUserInnerServiceSMO.startProcess(contractChangePlanDto); |
| | | } else { |
| | | ContractChangePlanPo tmpContractChangePlanPo = new ContractChangePlanPo(); |