|
@@ -11,6 +11,7 @@ import com.fjhx.common.enums.CodingRuleEnum;
|
|
|
import com.fjhx.common.enums.FlowStatusEnum1;
|
|
|
import com.fjhx.common.service.coding.CodingRuleService;
|
|
|
import com.fjhx.common.utils.Assert;
|
|
|
+import com.fjhx.file.utils.ObsFileUtil;
|
|
|
import com.fjhx.flow.core.FlowDelegate;
|
|
|
import com.fjhx.flow.enums.FlowStatusEnum;
|
|
|
import com.fjhx.sale.entity.serviceContract.dto.ServiceContractDto;
|
|
@@ -162,6 +163,15 @@ public class ServiceContractFlow extends FlowDelegate {
|
|
|
serviceContractPayList.forEach(contractPay -> contractPay.setServiceContractId(contract.getId()));
|
|
|
serviceContractPayService.saveOrUpdateBatch(serviceContractPayList);
|
|
|
}
|
|
|
+ if (opType == 1) {
|
|
|
+ //重新发起编辑
|
|
|
+ // 交接单附件列表
|
|
|
+ ObsFileUtil.editFile(contract.getFileList(), contract.getId(), 1);
|
|
|
+ } else {
|
|
|
+ //普通提交新增
|
|
|
+ // 交接单附件列表
|
|
|
+ ObsFileUtil.saveFile(contract.getFileList(), contract.getId(), 1);
|
|
|
+ }
|
|
|
|
|
|
return contract;
|
|
|
}
|