|
@@ -14,7 +14,6 @@ import com.fjhx.common.utils.Assert;
|
|
import com.fjhx.common.utils.ExchangeRateUtil;
|
|
import com.fjhx.common.utils.ExchangeRateUtil;
|
|
import com.fjhx.file.utils.ObsFileUtil;
|
|
import com.fjhx.file.utils.ObsFileUtil;
|
|
import com.fjhx.flow.core.FlowDelegate;
|
|
import com.fjhx.flow.core.FlowDelegate;
|
|
-import com.fjhx.flow.entity.flow.po.FlowExample;
|
|
|
|
import com.fjhx.flow.enums.FlowStatusEnum;
|
|
import com.fjhx.flow.enums.FlowStatusEnum;
|
|
import com.fjhx.flow.service.flow.FlowExampleService;
|
|
import com.fjhx.flow.service.flow.FlowExampleService;
|
|
import com.fjhx.sale.entity.claim.po.Claim;
|
|
import com.fjhx.sale.entity.claim.po.Claim;
|
|
@@ -96,6 +95,7 @@ public class ContractUpdateFlow extends FlowDelegate {
|
|
public Long start(Long flowId, JSONObject submitData) {
|
|
public Long start(Long flowId, JSONObject submitData) {
|
|
ContractDto contract = submitData.toJavaObject(ContractDto.class);
|
|
ContractDto contract = submitData.toJavaObject(ContractDto.class);
|
|
|
|
|
|
|
|
+ contract.setId(null);
|
|
contract.setIssue("1");//默认直接下发到交接单
|
|
contract.setIssue("1");//默认直接下发到交接单
|
|
|
|
|
|
contract.setFlowId(flowId);//赋值新合同流程ID
|
|
contract.setFlowId(flowId);//赋值新合同流程ID
|
|
@@ -245,16 +245,6 @@ public class ContractUpdateFlow extends FlowDelegate {
|
|
throw new ServiceException("原合同不存在");
|
|
throw new ServiceException("原合同不存在");
|
|
}
|
|
}
|
|
|
|
|
|
- //交换流程表中的业务id
|
|
|
|
- FlowExample newFlowExample = flowExampleService.getById(flowId);
|
|
|
|
- newFlowExample.setBusinessId(oldContractId);
|
|
|
|
- flowExampleService.updateById(newFlowExample);
|
|
|
|
-
|
|
|
|
- FlowExample oldFlowExample = flowExampleService.getById(oldContract.getFlowId());
|
|
|
|
- oldFlowExample.setBusinessId(businessId);
|
|
|
|
- flowExampleService.updateById(oldFlowExample);
|
|
|
|
-
|
|
|
|
-
|
|
|
|
//替换新数据ID为临时ID
|
|
//替换新数据ID为临时ID
|
|
long temNewId = IdWorker.getId();
|
|
long temNewId = IdWorker.getId();
|
|
Contract temNewUpContract = new Contract();
|
|
Contract temNewUpContract = new Contract();
|