Merge remote-tracking branch 'origin/dev' into test
This commit is contained in:
@@ -1394,7 +1394,8 @@ public class ContractServiceImpl implements ContractService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 生成ERP合同映射表
|
// 生成ERP合同映射表
|
||||||
ErpContractSaveReqVO erpContractVO = getErpContract(contractMainDO);
|
// ErpContractSaveReqVO erpContractVO = getErpContract(contractMainDO); TODO ERP暂时返回成功
|
||||||
|
ErpContractSaveReqVO erpContractVO = new ErpContractSaveReqVO();
|
||||||
|
|
||||||
// 调用ERP模块
|
// 调用ERP模块
|
||||||
JSONObject erpResult = sendToErp(erpContractVO);
|
JSONObject erpResult = sendToErp(erpContractVO);
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package com.zt.plat.module.contractorder.service.purchaseorder;
|
|||||||
|
|
||||||
import cn.hutool.core.collection.CollUtil;
|
import cn.hutool.core.collection.CollUtil;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.zt.plat.framework.common.exception.ErrorCode;
|
||||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||||
import com.zt.plat.framework.common.pojo.PageResult;
|
import com.zt.plat.framework.common.pojo.PageResult;
|
||||||
import com.zt.plat.module.contractorder.controller.admin.purchaseorder.vo.PrchOrdDtlPageReqVO;
|
import com.zt.plat.module.contractorder.controller.admin.purchaseorder.vo.PrchOrdDtlPageReqVO;
|
||||||
@@ -88,7 +89,7 @@ public class PrchOrdDtlServiceImpl implements PrchOrdDtlService {
|
|||||||
CommonResult<Boolean> booleanCommonResult = billMainApi.notOffsetIsExistOrderDetailId(id);
|
CommonResult<Boolean> booleanCommonResult = billMainApi.notOffsetIsExistOrderDetailId(id);
|
||||||
if (booleanCommonResult.isSuccess() && booleanCommonResult.getData()) {
|
if (booleanCommonResult.isSuccess() && booleanCommonResult.getData()) {
|
||||||
PrchOrdDtlDO prchOrdDtlDO = prchOrdDtlMapper.selectById(id);
|
PrchOrdDtlDO prchOrdDtlDO = prchOrdDtlMapper.selectById(id);
|
||||||
throw new RuntimeException("行目为【" + prchOrdDtlDO.getOutLineNum() + "】的订单明细存在发货数据。不允许删除");
|
throw exception(new ErrorCode(1_008_00_600, "销售订单明细【" + prchOrdDtlDO.getOutLineNum() + "】已生成销售订单,不能删除"));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.zt.plat.module.contractorder.service.salesorder;
|
package com.zt.plat.module.contractorder.service.salesorder;
|
||||||
|
|
||||||
import cn.hutool.core.collection.CollUtil;
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import com.zt.plat.framework.common.exception.ErrorCode;
|
||||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||||
import com.zt.plat.module.contractorder.controller.admin.salesorder.vo.SalesOrderDetailPageReqVO;
|
import com.zt.plat.module.contractorder.controller.admin.salesorder.vo.SalesOrderDetailPageReqVO;
|
||||||
import com.zt.plat.module.contractorder.controller.admin.salesorder.vo.SalesOrderDetailRespVO;
|
import com.zt.plat.module.contractorder.controller.admin.salesorder.vo.SalesOrderDetailRespVO;
|
||||||
@@ -94,7 +95,7 @@ public class SalesOrderDetailServiceImpl implements SalesOrderDetailService {
|
|||||||
CommonResult<Boolean> booleanCommonResult = billMainApi.notOffsetIsExistOrderDetailId(id);
|
CommonResult<Boolean> booleanCommonResult = billMainApi.notOffsetIsExistOrderDetailId(id);
|
||||||
if (booleanCommonResult.isSuccess() && booleanCommonResult.getData()) {
|
if (booleanCommonResult.isSuccess() && booleanCommonResult.getData()) {
|
||||||
SalesOrderDetailDO salesOrderDetailDO = salesOrderDetailMapper.selectById(id);
|
SalesOrderDetailDO salesOrderDetailDO = salesOrderDetailMapper.selectById(id);
|
||||||
throw new RuntimeException("行目为【" + salesOrderDetailDO.getLineNumber() + "】的订单明细存在发货数据。不允许删除");
|
throw exception(new ErrorCode(1_008_00_600, "销售订单明细【" + salesOrderDetailDO.getMaterialName() + "】已生成销售订单,不能删除"));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user