fix:组盘批次
This commit is contained in:
@@ -198,6 +198,7 @@ public class PdaIosInServiceImpl implements PdaIosInService {
|
||||
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public PdaResponse groupPlate(JSONObject whereJson) {
|
||||
// 物料编码
|
||||
String materialId = whereJson.getString("material_id");
|
||||
@@ -233,6 +234,7 @@ public class PdaIosInServiceImpl implements PdaIosInService {
|
||||
GroupPlate groupDao = GroupPlate.builder()
|
||||
.group_id(IdUtil.getStringId())
|
||||
.material_id(materDao.getMaterial_id())
|
||||
.material_code(materDao.getMaterial_code())
|
||||
.storagevehicle_code(vehicleDao.getStoragevehicle_code())
|
||||
.pcsn(pcsn)
|
||||
.qty_unit_id(unitDao.getMeasure_unit_id())
|
||||
@@ -255,6 +257,7 @@ public class PdaIosInServiceImpl implements PdaIosInService {
|
||||
|
||||
if (!org.springframework.util.CollectionUtils.isEmpty(pmFormDataList)) {
|
||||
|
||||
groupDao.setPcsn(pmFormDataList.get(0).getPcsn());
|
||||
if(groupDao.getQty().compareTo(pmFormDataList.get(0).getQty().subtract(pmFormDataList.get(0).getAssign_qty())) > 0){
|
||||
throw new BadRequestException("组盘数量大于单据剩余数量,请核对!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user