|
@@ -586,11 +586,13 @@ public class WarehousingServiceImpl implements WarehousingService {
|
|
|
return map;
|
|
|
}
|
|
|
Notice notice1 = warehousingMapper.getNoticeId(new Notice().setNoticeId(notice.getNoticeId()).setMaterialId(notice.getMaterialId()));
|
|
|
- Double contrast = Double.parseDouble(notice1.getWarehousingNum()) + Double.parseDouble(notice.getWarehousingNum());
|
|
|
- if(Double.doubleToLongBits(contrast) > Double.doubleToLongBits(Double.parseDouble(notice1.getNum()))){
|
|
|
- map.put("msg", "500");
|
|
|
- map.put("errMsg", "扫描数量超出报工单数量");
|
|
|
- return map;
|
|
|
+ if(notice1 != null) {
|
|
|
+ Double contrast = Double.parseDouble(notice1.getWarehousingNum()) + Double.parseDouble(notice.getWarehousingNum());
|
|
|
+ if(Double.doubleToLongBits(contrast) > Double.doubleToLongBits(Double.parseDouble(notice1.getNum()))) {
|
|
|
+ map.put("msg", "500");
|
|
|
+ map.put("errMsg", "扫描数量超出报工单数量");
|
|
|
+ return map;
|
|
|
+ }
|
|
|
}
|
|
|
notice.setWllbClass(material.getWllbClass());
|
|
|
StringBuffer stringBuffer = new StringBuffer();//库位编号
|