md
This commit is contained in:
parent
4d515c862b
commit
5f5429711b
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
package com.xdadan.erp.emis.service.impl;
|
package com.xdadan.erp.emis.service.impl;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.xdadan.erp.emis.domain.EmisWarehouseInDtl;
|
import com.xdadan.erp.emis.domain.EmisWarehouseInDtl;
|
||||||
@ -75,8 +76,10 @@ public class EmisWarehouseInBatchServiceImpl implements IEmisWarehouseInBatchSer
|
|||||||
public int insertEmisWarehouseInBatch(EmisWarehouseInBatch emisWarehouseInBatch) throws EmisBizError {
|
public int insertEmisWarehouseInBatch(EmisWarehouseInBatch emisWarehouseInBatch) throws EmisBizError {
|
||||||
// 进仓序列号
|
// 进仓序列号
|
||||||
String serialNo= WaybillHelper.genWsInSerialNo();
|
String serialNo= WaybillHelper.genWsInSerialNo();
|
||||||
|
|
||||||
emisWarehouseInBatch.setSerialNo(serialNo);
|
emisWarehouseInBatch.setSerialNo(serialNo);
|
||||||
emisWarehouseInBatchMapper.insertEmisWarehouseInBatch(emisWarehouseInBatch);
|
emisWarehouseInBatch.setEntryDate(new Date());
|
||||||
|
|
||||||
List<EmisWarehouseInDtl> cargoList=emisWarehouseInBatch.getCargoList();
|
List<EmisWarehouseInDtl> cargoList=emisWarehouseInBatch.getCargoList();
|
||||||
if(CollectionUtils.isEmpty(cargoList)){
|
if(CollectionUtils.isEmpty(cargoList)){
|
||||||
throw new EmisBizError(EmisBizErrorType.FAIL,"进仓货物列表不能为空");
|
throw new EmisBizError(EmisBizErrorType.FAIL,"进仓货物列表不能为空");
|
||||||
@ -87,7 +90,9 @@ public class EmisWarehouseInBatchServiceImpl implements IEmisWarehouseInBatchSer
|
|||||||
emisWarehouseInDtlMapper.insertEmisWarehouseInDtl(item);
|
emisWarehouseInDtlMapper.insertEmisWarehouseInDtl(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
return emisWarehouseInBatchMapper.insertEmisWarehouseInBatch(emisWarehouseInBatch);
|
emisWarehouseInBatchMapper.insertEmisWarehouseInBatch(emisWarehouseInBatch);
|
||||||
|
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user