|
@@ -87,10 +87,10 @@ public class OyeResultServiceImpl implements IOyeResultService {
|
|
if (oyeInboundResultMapper.selectSaleMaterialID(DataChange.dataToBigDecimal(map.get("saleMaterialId"))) != null) {
|
|
if (oyeInboundResultMapper.selectSaleMaterialID(DataChange.dataToBigDecimal(map.get("saleMaterialId"))) != null) {
|
|
throw new Exception("该分录已入库,无法继续入库");
|
|
throw new Exception("该分录已入库,无法继续入库");
|
|
}
|
|
}
|
|
- ////判断该分录是否有净重
|
|
|
|
- //if (DataChange.dataToBigDecimal(map.get("netWeight")) == null || DataChange.dataToBigDecimal(map.get("netWeight")).intValue() == 0) {
|
|
|
|
- // throw new Exception("该分录无净重,不允许入库");
|
|
|
|
- //}
|
|
|
|
|
|
+ //判断该分录是否有净重
|
|
|
|
+ if (DataChange.dataToBigDecimal(map.get("netWeight")) == null || DataChange.dataToBigDecimal(map.get("netWeight")).intValue() == 0) {
|
|
|
|
+ throw new Exception("该分录无净重,不允许入库");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
for (Map<String,Object> map : mapList) {
|
|
for (Map<String,Object> map : mapList) {
|
|
insertInboundResultReal(map);
|
|
insertInboundResultReal(map);
|