新增库位新表的相关功能,修复合同收发货规则
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -98,4 +98,33 @@ public class ContractDetailDO extends BusinessBaseDO {
|
||||
*/
|
||||
@TableField("LEN")
|
||||
private String length;
|
||||
|
||||
|
||||
// 中文牌名
|
||||
@TableField("CHS_NO")
|
||||
private String chineseNo;
|
||||
|
||||
// 英文牌名
|
||||
@TableField("EN_NO")
|
||||
private String englishNo;
|
||||
|
||||
// 技术规格
|
||||
@TableField("TCHI_SPEC")
|
||||
private String technicalSpecification;
|
||||
|
||||
// 技术标准1
|
||||
@TableField("TCHL_STD1")
|
||||
private String technicalStandard1;
|
||||
|
||||
// 技术标准2
|
||||
@TableField("TCHI_STD2")
|
||||
private String technicalStandard2;
|
||||
|
||||
// 线别
|
||||
@TableField("LINE_LVL")
|
||||
private String lineLevel;
|
||||
|
||||
// 包装
|
||||
@TableField("PACK")
|
||||
private String pack;
|
||||
}
|
||||
|
||||
@@ -126,11 +126,19 @@ public class ContractServiceImpl implements ContractService {
|
||||
public PageResult<ContractMainDO> getContractPage(ContractPageReqVO pageReqVO) {
|
||||
return contractMainMapper.selectContractPage(pageReqVO);
|
||||
}
|
||||
boolean isContractReceiveSendValid(List<ContractReceiveSendSaveReqVO> contractReceiveSends){
|
||||
if (CollectionUtils.isEmpty(contractReceiveSends)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
@Transactional
|
||||
@Override
|
||||
public Long createContract(ContractSaveReqVO reqVO) {
|
||||
|
||||
//校验收发货的规则的合法性
|
||||
isContractReceiveSendValid(reqVO.getContractReceiveSends());
|
||||
// 校验合同名称是否存在
|
||||
ContractMainDO contract = contractMainMapper
|
||||
.selectOne(TableFieldConstants.BSE_CTRT_MAIN_CTRT_NAME, reqVO.getContractName());
|
||||
|
||||
Reference in New Issue
Block a user