md
This commit is contained in:
parent
5cdd7373a9
commit
6047edbd32
@ -106,6 +106,23 @@ public class EmisWarehouseInBatchServiceImpl extends EmisBaseService implements
|
|||||||
throw new EmisBizError(EmisBizErrorType.FAIL,"总件数必填");
|
throw new EmisBizError(EmisBizErrorType.FAIL,"总件数必填");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 判断是否已经开单,开单后不允许再次入仓
|
||||||
|
EmisWarehouseIn emisWarehouseIn=emisWarehouseInMapper.selectEmisWarehouseInByInNo(emisWarehouseInBatch.getInNo());
|
||||||
|
if(emisWarehouseIn==null){
|
||||||
|
throw new EmisBizError(EmisBizErrorType.FAIL,"进仓单不存在");
|
||||||
|
}
|
||||||
|
|
||||||
|
if( !"0".equals(emisWarehouseIn.getConfirmStatus()) ){
|
||||||
|
throw new EmisBizError(EmisBizErrorType.FAIL,"进仓单已确认,不允许再入仓");
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取运单信息
|
||||||
|
EmisWaybill emisWaybill = emisWaybillMapper.selectEmisWaybillByBillCode(emisWarehouseIn.getBillCode());
|
||||||
|
if( !"0".equals(emisWaybill.getWaybillStatus()) ){
|
||||||
|
throw new EmisBizError(EmisBizErrorType.FAIL,"已开单,不允许再入仓");
|
||||||
|
}
|
||||||
|
|
||||||
// 进仓序列号,插入进仓批次
|
// 进仓序列号,插入进仓批次
|
||||||
String serialNo= WaybillHelper.genWsInSerialNo();
|
String serialNo= WaybillHelper.genWsInSerialNo();
|
||||||
emisWarehouseInBatch.setSerialNo(serialNo);
|
emisWarehouseInBatch.setSerialNo(serialNo);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user