|
|
@ -1,12 +1,14 @@ |
|
|
|
package com.win.module.wms.service.deliverPlan; |
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.win.framework.common.exception.ServiceException; |
|
|
|
import com.win.framework.common.pojo.CustomConditions; |
|
|
|
import com.win.framework.common.pojo.PageResult; |
|
|
|
import com.win.framework.dict.core.util.DictFrameworkUtils; |
|
|
|
import com.win.module.infra.api.trends.TrendsApi; |
|
|
|
import com.win.module.infra.enums.TrendsTypeEnum; |
|
|
|
import com.win.module.system.api.dict.DictDataApi; |
|
|
|
import com.win.module.system.api.dict.dto.DictDataRespDTO; |
|
|
|
import com.win.module.system.api.serialnumber.SerialNumberApi; |
|
|
|
import com.win.module.system.enums.serialNumber.RuleCodeEnum; |
|
|
|
import com.win.module.wms.controller.deliverPlan.vo.*; |
|
|
@ -18,11 +20,11 @@ import com.win.module.wms.dal.dataobject.deliverPlan.DeliverPlanDetailDO; |
|
|
|
import com.win.module.wms.dal.dataobject.deliverPlan.DeliverPlanMainDO; |
|
|
|
import com.win.module.wms.dal.dataobject.itembasic.ItembasicDO; |
|
|
|
import com.win.module.wms.dal.dataobject.requestsetting.RequestsettingDO; |
|
|
|
import com.win.module.wms.dal.dataobject.sale.SaleDetailDO; |
|
|
|
import com.win.module.wms.dal.mysql.deliverPlan.DeliverPlanDetailMapper; |
|
|
|
import com.win.module.wms.dal.mysql.deliverPlan.DeliverPlanMainMapper; |
|
|
|
import com.win.module.wms.enums.DictTypeConstants; |
|
|
|
import com.win.module.wms.enums.request.RequestStatusEnum; |
|
|
|
import com.win.module.wms.dal.mysql.deliverRequest.DeliverRequestMainMapper; |
|
|
|
import com.win.module.wms.enums.plan.PlanStatusEnum; |
|
|
|
import com.win.module.wms.enums.plan.PlanStatusState; |
|
|
|
import com.win.module.wms.service.businesstype.BusinesstypeService; |
|
|
|
import com.win.module.wms.service.customer.CustomerService; |
|
|
|
import com.win.module.wms.service.deliverJob.DeliverJobMainService; |
|
|
@ -33,9 +35,11 @@ import com.win.module.wms.service.shift.ShiftService; |
|
|
|
import com.win.module.wms.service.supplieritem.SupplieritemService; |
|
|
|
import com.win.module.wms.util.JobUtils; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
import org.springframework.validation.annotation.Validated; |
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Collection; |
|
|
|
import java.util.List; |
|
|
@ -57,6 +61,8 @@ public class DeliverPlanMainServiceImpl implements DeliverPlanMainService { |
|
|
|
@Resource |
|
|
|
private DeliverPlanDetailMapper deliverPlanDetailMapper; |
|
|
|
@Resource |
|
|
|
private DeliverRequestMainMapper deliverRequestMainMapper; |
|
|
|
@Resource |
|
|
|
private ItembasicService itembasicService; |
|
|
|
@Resource |
|
|
|
private JobUtils jobUtils; |
|
|
@ -78,30 +84,28 @@ public class DeliverPlanMainServiceImpl implements DeliverPlanMainService { |
|
|
|
private TrendsApi trendsApi; |
|
|
|
@Resource |
|
|
|
private RequestsettingService requestsettingService; |
|
|
|
@Resource |
|
|
|
private DictDataApi dictDataApi; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public Long createDeliverPlanMain(DeliverPlanMainCreateReqVO createReqVO) { |
|
|
|
RequestsettingDO requestsettingDO = requestsettingService.selectRequestsettingExist("DeliverPlan"); |
|
|
|
DeliverPlanMainDO deliverPlanMainDO = validatorToCreate(createReqVO); |
|
|
|
//调用自动执行方法
|
|
|
|
if(RequestStatusEnum.HANDLING.getCode().equals(deliverPlanMainDO.getStatus())) { |
|
|
|
|
|
|
|
} |
|
|
|
trendsApi.createTrends(requestsettingDO.getId(), "DeliverPlan", "增加了发货计划", TrendsTypeEnum.CREATE); |
|
|
|
trendsApi.createTrends(requestsettingDO.getId(), "DeliverPlanMain", "增加了发货计划", TrendsTypeEnum.CREATE); |
|
|
|
return deliverPlanMainDO.getId(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional |
|
|
|
public void updateDeliverPlanMain(DeliverPlanMainUpdateReqVO updateReqVO) { |
|
|
|
RequestsettingDO requestsettingDO = requestsettingService.selectRequestsettingExist("DeliverPlan"); |
|
|
|
// 校验存在
|
|
|
|
validateDeliverPlanMainExists(updateReqVO.getId()); |
|
|
|
DeliverPlanMainDO deliverPlanMainDO = validatorToUpdate(updateReqVO); |
|
|
|
if(RequestStatusEnum.HANDLING.getCode().equals(deliverPlanMainDO.getStatus())) { |
|
|
|
|
|
|
|
DeliverPlanMainDO deliverPlanMainDO = validateDeliverPlanMainExists(updateReqVO.getId()); |
|
|
|
if(!PlanStatusEnum.NEW.getCode().equals(deliverPlanMainDO.getStatus())) { |
|
|
|
throw exception(DELIVER_PLAN_STATUS_NOT_NEW); |
|
|
|
} |
|
|
|
trendsApi.createTrends(requestsettingDO.getId(), "DeliverPlan", "修改了发货计划", TrendsTypeEnum.CREATE); |
|
|
|
deliverPlanMainMapper.updateById(deliverPlanMainDO); |
|
|
|
trendsApi.createTrends(updateReqVO.getId(), "DeliverPlanMain", deliverPlanMainDO.toString(), TrendsTypeEnum.UPDATE); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
@ -112,10 +116,169 @@ public class DeliverPlanMainServiceImpl implements DeliverPlanMainService { |
|
|
|
deliverPlanMainMapper.deleteById(id); |
|
|
|
} |
|
|
|
|
|
|
|
private void validateDeliverPlanMainExists(Long id) { |
|
|
|
if (deliverPlanMainMapper.selectById(id) == null) { |
|
|
|
private DeliverPlanMainDO validateDeliverPlanMainExists(Long id) { |
|
|
|
DeliverPlanMainDO deliverPlanMainDO = deliverPlanMainMapper.selectById(id); |
|
|
|
if (deliverPlanMainDO == null) { |
|
|
|
throw exception(DELIVER_PLAN_MAIN_NOT_EXISTS); |
|
|
|
} |
|
|
|
return deliverPlanMainDO; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 更新发货计划的已发货数量 |
|
|
|
* @param pnumber |
|
|
|
* @param pitemCode |
|
|
|
* @param pshippedQty |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public void updatePlanDeliveShippedQty(String pnumber, String pitemCode, BigDecimal pshippedQty){ |
|
|
|
QueryWrapper<DeliverPlanMainDO> mainDOQueryWrapper = new QueryWrapper<>(); |
|
|
|
DeliverPlanDetailDO deliverPlanDetailDO = null; |
|
|
|
mainDOQueryWrapper.eq("number",pnumber); |
|
|
|
mainDOQueryWrapper.eq("status","6"); |
|
|
|
DeliverPlanMainDO deliverPlanMainDO = deliverPlanMainMapper.selectOne(mainDOQueryWrapper); |
|
|
|
if(deliverPlanMainDO != null){ |
|
|
|
QueryWrapper<DeliverPlanDetailDO> detailDOQueryWrapper = new QueryWrapper<>(); |
|
|
|
detailDOQueryWrapper.eq("number",pnumber); |
|
|
|
detailDOQueryWrapper.eq("itembasic",pitemCode); |
|
|
|
detailDOQueryWrapper.eq("available","TRUE"); |
|
|
|
deliverPlanDetailDO = deliverPlanDetailMapper.selectOne(detailDOQueryWrapper); |
|
|
|
deliverPlanDetailDO.setShippedQty(pshippedQty); |
|
|
|
if(deliverPlanDetailDO.getPlanQty() == deliverPlanDetailDO.getShippedQty()){ |
|
|
|
deliverPlanDetailDO.setAvailable("FALSE"); |
|
|
|
} |
|
|
|
} |
|
|
|
ifDetailAllFinish(deliverPlanMainDO); |
|
|
|
} |
|
|
|
|
|
|
|
//判断如果主表下子表状态全为FALSE 则修改计划状态为完成
|
|
|
|
private void ifDetailAllFinish(DeliverPlanMainDO deliverPlanMainDO){ |
|
|
|
QueryWrapper<DeliverPlanDetailDO> detailDOQueryWrapper = new QueryWrapper<>(); |
|
|
|
detailDOQueryWrapper.eq("master_id",deliverPlanMainDO.getId()); |
|
|
|
List<DeliverPlanDetailDO> deliverPlanDetailDOS = deliverPlanDetailMapper.selectList(detailDOQueryWrapper); |
|
|
|
Integer count = 0; |
|
|
|
for (DeliverPlanDetailDO deliverPlanDetailDO : deliverPlanDetailDOS) { |
|
|
|
if("TRUE".equals(deliverPlanDetailDO.getAvailable())){ |
|
|
|
count++; |
|
|
|
} |
|
|
|
} |
|
|
|
if(count <= 0){ |
|
|
|
deliverPlanMainDO.setStatus("7"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional |
|
|
|
public Integer closeDeliverPlanMain(Long id) { |
|
|
|
// 校验存在存在下级单据
|
|
|
|
DeliverPlanMainDO mainDO = validateDeliverPlanMainExists(id); |
|
|
|
Long count = deliverRequestMainMapper.selectByDeliverPlanNumber(mainDO.getNumber()); |
|
|
|
if(count > 0) { |
|
|
|
throw new ServiceException(DELIVER_PLAN_REQUEST_EXISTS); |
|
|
|
} |
|
|
|
PlanStatusState planStatusState = new PlanStatusState(mainDO.getStatus()); |
|
|
|
boolean flag = planStatusState.close(); |
|
|
|
if(!flag) { |
|
|
|
throw new ServiceException(DELIVER_PLAN_CANNOT_CLOSE); |
|
|
|
} |
|
|
|
mainDO.setStatus(planStatusState.getState().getCode());//增加操作记录
|
|
|
|
trendsApi.createTrends(id, "deliverPlan", "关闭了发货计划", TrendsTypeEnum.UPDATE); |
|
|
|
return deliverPlanMainMapper.updateById(mainDO); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional |
|
|
|
public Integer openDeliverPlanMain(Long id) { |
|
|
|
// 校验存在存在下级单据
|
|
|
|
DeliverPlanMainDO mainDO = validateDeliverPlanMainExists(id); |
|
|
|
Long count = deliverRequestMainMapper.selectByDeliverPlanNumber(mainDO.getNumber()); |
|
|
|
if(count > 0) { |
|
|
|
throw new ServiceException(DELIVER_PLAN_REQUEST_EXISTS); |
|
|
|
} |
|
|
|
PlanStatusState planStatusState = new PlanStatusState(mainDO.getStatus()); |
|
|
|
boolean flag = planStatusState.open(); |
|
|
|
if(!flag) { |
|
|
|
throw new ServiceException(DELIVER_PLAN_CANNOT_OPEN); |
|
|
|
} |
|
|
|
mainDO.setStatus(planStatusState.getState().getCode());//增加操作记录
|
|
|
|
trendsApi.createTrends(id, "deliverPlan", "打开了发货计划", TrendsTypeEnum.UPDATE); |
|
|
|
return deliverPlanMainMapper.updateById(mainDO); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional |
|
|
|
public Integer submitDeliverPlanMain(Long id) { |
|
|
|
// 校验存在存在下级单据
|
|
|
|
DeliverPlanMainDO mainDO = validateDeliverPlanMainExists(id); |
|
|
|
PlanStatusState planStatusState = new PlanStatusState(mainDO.getStatus()); |
|
|
|
boolean flag = planStatusState.submit(); |
|
|
|
if(!flag) { |
|
|
|
throw new ServiceException(DELIVER_PLAN_CANNOT_SUBMIT); |
|
|
|
} |
|
|
|
mainDO.setStatus(planStatusState.getState().getCode());//增加操作记录
|
|
|
|
trendsApi.createTrends(id, "deliverPlan", "提交了发货计划", TrendsTypeEnum.UPDATE); |
|
|
|
return deliverPlanMainMapper.updateById(mainDO); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional |
|
|
|
public Integer agreeDeliverPlanMain(Long id) { |
|
|
|
// 校验存在存在下级单据
|
|
|
|
DeliverPlanMainDO mainDO = validateDeliverPlanMainExists(id); |
|
|
|
PlanStatusState planStatusState = new PlanStatusState(mainDO.getStatus()); |
|
|
|
boolean flag = planStatusState.agree(); |
|
|
|
if(!flag) { |
|
|
|
throw new ServiceException(DELIVER_PLAN_CANNOT_AGREE); |
|
|
|
} |
|
|
|
mainDO.setStatus(planStatusState.getState().getCode());//增加操作记录
|
|
|
|
trendsApi.createTrends(id, "deliverPlan", "审批通过了发货计划", TrendsTypeEnum.UPDATE); |
|
|
|
return deliverPlanMainMapper.updateById(mainDO); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional |
|
|
|
public Integer refiesDeliverPlanMain(Long id) { |
|
|
|
// 校验存在存在下级单据
|
|
|
|
DeliverPlanMainDO mainDO = validateDeliverPlanMainExists(id); |
|
|
|
PlanStatusState planStatusState = new PlanStatusState(mainDO.getStatus()); |
|
|
|
boolean flag = planStatusState.reject(); |
|
|
|
if(!flag) { |
|
|
|
throw new ServiceException(DELIVER_PLAN_CANNOT_REFUSE); |
|
|
|
} |
|
|
|
mainDO.setStatus(planStatusState.getState().getCode());//增加操作记录
|
|
|
|
trendsApi.createTrends(id, "deliverPlan", "审批驳回了发货计划", TrendsTypeEnum.UPDATE); |
|
|
|
return deliverPlanMainMapper.updateById(mainDO); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional |
|
|
|
public Integer publishDeliverPlanMain(Long id) { |
|
|
|
// 校验存在存在下级单据
|
|
|
|
DeliverPlanMainDO mainDO = validateDeliverPlanMainExists(id); |
|
|
|
PlanStatusState planStatusState = new PlanStatusState(mainDO.getStatus()); |
|
|
|
boolean flag = planStatusState.execute(); |
|
|
|
if(!flag) { |
|
|
|
throw new ServiceException(DELIVER_PLAN_CANNOT_PUBLISH); |
|
|
|
} |
|
|
|
mainDO.setStatus(planStatusState.getState().getCode());//增加操作记录
|
|
|
|
trendsApi.createTrends(id, "deliverPlan", "发布了发货计划", TrendsTypeEnum.UPDATE); |
|
|
|
return deliverPlanMainMapper.updateById(mainDO); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional |
|
|
|
public Integer resettingDeliverPlanMain(Long id) { |
|
|
|
// 校验存在存在下级单据
|
|
|
|
DeliverPlanMainDO mainDO = validateDeliverPlanMainExists(id); |
|
|
|
PlanStatusState planStatusState = new PlanStatusState(mainDO.getStatus()); |
|
|
|
boolean flag = planStatusState.resetting(); |
|
|
|
if(!flag) { |
|
|
|
throw new ServiceException(DELIVER_PLAN_CANNOT_RESETTING); |
|
|
|
} |
|
|
|
mainDO.setStatus(planStatusState.getState().getCode());//增加操作记录
|
|
|
|
trendsApi.createTrends(id, "deliverPlan", "重置了发货计划", TrendsTypeEnum.UPDATE); |
|
|
|
return deliverPlanMainMapper.updateById(mainDO); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
@ -143,6 +306,11 @@ public class DeliverPlanMainServiceImpl implements DeliverPlanMainService { |
|
|
|
return deliverPlanMainMapper.selectList(exportReqVO); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<DeliverPlanMainDO> getDeliverPlanMainList(CustomConditions conditions) { |
|
|
|
return deliverPlanMainMapper.selectSeniorList(conditions); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<DeliverPlanMainImportErrorVO> importDeliverPlanMainList(List<DeliverPlanMainCreateReqVO> datas, Integer mode, boolean updatePart) { |
|
|
|
if (CollUtil.isEmpty(datas)) { |
|
|
@ -150,7 +318,7 @@ public class DeliverPlanMainServiceImpl implements DeliverPlanMainService { |
|
|
|
} |
|
|
|
List<DeliverPlanMainImportErrorVO> errorList = new ArrayList<>(); |
|
|
|
datas.forEach(createReqVO -> { |
|
|
|
BusinesstypeDO businesstypeDO = new BusinesstypeDO(); |
|
|
|
BusinesstypeDO businesstypeDO = jobUtils.selectDocumentSettingFromBusinessType("DeliverPlan"); |
|
|
|
DeliverPlanMainDO mainDo = DeliverPlanMainConvert.INSTANCE.convert(createReqVO); |
|
|
|
String messageMain = validateDeliverPlanMainImport(mainDo, businesstypeDO); |
|
|
|
List<DeliverPlanDetailCreateReqVO> subList = createReqVO.getSubList(); |
|
|
@ -170,8 +338,7 @@ public class DeliverPlanMainServiceImpl implements DeliverPlanMainService { |
|
|
|
} |
|
|
|
//写入数据
|
|
|
|
if (flag) { |
|
|
|
mainDo.setStatus(DictFrameworkUtils.parseDictDataValue(DictTypeConstants.REQUEST_STATUS, "新增")); |
|
|
|
businesstypeDO = jobUtils.selectDocumentSettingFromBusinessType("DeliverRequestRequest"); |
|
|
|
mainDo.setStatus(PlanStatusEnum.NEW.getCode()); |
|
|
|
if (businesstypeDO != null) { |
|
|
|
mainDo.setBusinessType(businesstypeDO.getCode()); |
|
|
|
} |
|
|
@ -181,7 +348,6 @@ public class DeliverPlanMainServiceImpl implements DeliverPlanMainService { |
|
|
|
for (DeliverPlanDetailDO detailDO : subDOList) { |
|
|
|
detailDO.setNumber(mainDo.getNumber()); |
|
|
|
detailDO.setMasterId(mainDo.getId()); |
|
|
|
detailDO.setCustomerDockCode(null); |
|
|
|
} |
|
|
|
deliverPlanDetailMapper.insertBatch(subDOList); |
|
|
|
} |
|
|
@ -211,7 +377,6 @@ public class DeliverPlanMainServiceImpl implements DeliverPlanMainService { |
|
|
|
} |
|
|
|
//校验业务类型相关属性
|
|
|
|
try { |
|
|
|
businesstypeDO = jobUtils.selectDocumentSettingFromBusinessType("DeliverPlan"); |
|
|
|
if (businesstypeDO != null) { |
|
|
|
mainDo.setBusinessType(businesstypeDO.getCode()); |
|
|
|
} |
|
|
@ -238,13 +403,13 @@ public class DeliverPlanMainServiceImpl implements DeliverPlanMainService { |
|
|
|
} catch (ServiceException ex) { |
|
|
|
messageDetail += ex.getMessage() + ","; |
|
|
|
} |
|
|
|
|
|
|
|
//TODO 滞后
|
|
|
|
// 校验物品标包信息
|
|
|
|
try { |
|
|
|
SaleDetailDO saleDetailDO = deliverJobMainService.saleDetailExist(detailDo.getSoNumber(), detailDo.getSoLine(), detailDo.getItemCode()); |
|
|
|
} catch (ServiceException ex) { |
|
|
|
messageDetail += ex.getMessage() + ","; |
|
|
|
} |
|
|
|
// try {
|
|
|
|
// deliverJobMainService.saleDetailExist(detailDo.getSoNumber(), detailDo.getSoLine(), detailDo.getItemCode());
|
|
|
|
// } catch (ServiceException ex) {
|
|
|
|
// messageDetail += ex.getMessage() + ",";
|
|
|
|
// }
|
|
|
|
return messageDetail; |
|
|
|
} |
|
|
|
|
|
|
@ -260,6 +425,7 @@ public class DeliverPlanMainServiceImpl implements DeliverPlanMainService { |
|
|
|
} |
|
|
|
String number = serialNumberApi.generateCode(RuleCodeEnum.SUPPLIER_DELIVER_REQUEST.getCode()); |
|
|
|
deliverPlanMainDO.setNumber(number); |
|
|
|
deliverPlanMainDO.setStatus(PlanStatusEnum.NEW.getCode()); |
|
|
|
deliverPlanMainMapper.insert(deliverPlanMainDO); |
|
|
|
for (DeliverPlanDetailDO deliverPlanDetailDO : subDOList) { |
|
|
|
deliverPlanDetailDO.setNumber(deliverPlanMainDO.getNumber()); |
|
|
@ -270,21 +436,6 @@ public class DeliverPlanMainServiceImpl implements DeliverPlanMainService { |
|
|
|
return deliverPlanMainDO; |
|
|
|
} |
|
|
|
|
|
|
|
//修改方法(主和子)
|
|
|
|
private DeliverPlanMainDO validatorToUpdate(DeliverPlanMainUpdateReqVO updateReqVO) { |
|
|
|
BusinesstypeDO businesstypeDO = new BusinesstypeDO(); |
|
|
|
DeliverPlanMainDO deliverPlanMainDO = validateMainMethod(updateReqVO,businesstypeDO); |
|
|
|
//子表校验
|
|
|
|
List<DeliverPlanDetailUpdateReqVO> subList = updateReqVO.getSubList(); |
|
|
|
List<DeliverPlanDetailDO> subDOList = DeliverPlanDetailConvert.INSTANCE.convertList05(subList); |
|
|
|
for (DeliverPlanDetailDO deliverPlanDetailDO : subDOList) { |
|
|
|
validateDetailMethod(deliverPlanDetailDO); |
|
|
|
} |
|
|
|
deliverPlanMainMapper.updateById(deliverPlanMainDO); |
|
|
|
deliverPlanDetailMapper.updateBatch(subDOList); |
|
|
|
return deliverPlanMainDO; |
|
|
|
} |
|
|
|
|
|
|
|
//校验主表公共方法(适用于新增/修改)
|
|
|
|
private DeliverPlanMainDO validateMainMethod(DeliverPlanMainBaseVO baseVO, BusinesstypeDO businesstypeDO){ |
|
|
|
DeliverPlanMainDO deliverPlanMainDO = DeliverPlanMainConvert.INSTANCE.convert(baseVO); |
|
|
@ -297,9 +448,10 @@ public class DeliverPlanMainServiceImpl implements DeliverPlanMainService { |
|
|
|
private void validateDetailMethod(DeliverPlanDetailDO deliverPlanDetailDO) { |
|
|
|
ItembasicDO itembasicDO = this.validatorItembasic(deliverPlanDetailDO.getItemCode()); |
|
|
|
if ( !deliverPlanDetailDO.getUom().equals(itembasicDO.getUom())) { |
|
|
|
throw exception(UOM_ERROR, deliverPlanDetailDO.getUom()); |
|
|
|
String label = dictDataApi.selectDictValue(itembasicDO.getUom()).getLabel(); |
|
|
|
throw exception(UOM_ERROR, label); |
|
|
|
} |
|
|
|
this.validatorDetailExist(deliverPlanDetailDO.getSoNumber(), deliverPlanDetailDO.getSoLine(), deliverPlanDetailDO.getItemCode()); |
|
|
|
//this.validatorDetailExist(deliverPlanDetailDO.getSoNumber(), deliverPlanDetailDO.getSoLine(), deliverPlanDetailDO.getItemCode());
|
|
|
|
} |
|
|
|
|
|
|
|
//主表校验客户代码
|
|
|
|