|
|
@ -10,6 +10,7 @@ import com.qs.serve.common.util.JsonUtil; |
|
|
|
import com.qs.serve.modules.bir.consts.BirActivityCenterGoodsUtil; |
|
|
|
import com.qs.serve.modules.bms.entity.BmsSupplier; |
|
|
|
import com.qs.serve.modules.bms.mapper.BmsSupplierMapper; |
|
|
|
import com.qs.serve.modules.seeyon.service.SeeYonRequestService; |
|
|
|
import com.qs.serve.modules.sys.entity.dto.CostDeletion; |
|
|
|
import com.qs.serve.modules.tbs.entity.TbsCostApply; |
|
|
|
import com.qs.serve.modules.tbs.entity.TbsCostTodo; |
|
|
@ -45,6 +46,7 @@ public class SysDeleteLogServiceImpl extends ServiceImpl<SysDeleteLogMapper,SysD |
|
|
|
private final VtbVerificationMapper verificationMapper; |
|
|
|
private final TbsCostTodoMapper tbsCostTodoMapper; |
|
|
|
private final BmsSupplierMapper supplierMapper; |
|
|
|
private final SeeYonRequestService seeYonService; |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@ -65,6 +67,13 @@ public class SysDeleteLogServiceImpl extends ServiceImpl<SysDeleteLogMapper,SysD |
|
|
|
deleteLogList.add(deleteLog); |
|
|
|
} |
|
|
|
|
|
|
|
if(costApply.getContractFlag().equals(1)){ |
|
|
|
boolean checkExist = seeYonService.checkConstCodeExist(costApply.getCode()); |
|
|
|
if(!checkExist){ |
|
|
|
Assert.throwEx("流程在OA已存在,优先删除OA数据,再调用该接口"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//远程删除ERP
|
|
|
|
String url = "http://59.37.164.96:2505/api/cms/cost/deletion"; |
|
|
|
CostDeletion costDeletion = new CostDeletion(); |
|
|
|