|
|
@@ -369,6 +369,16 @@ public class PdaMsdServiceImpl implements PdaMsdService {
|
|
|
// 1、调用条码输入框enter事件中的serivce 校验条码是否湿敏条码,湿敏状态
|
|
|
Map<String, Object> mapMsdB = checkCabBarcode(bar_code);
|
|
|
Map<Object, Object> dataMap = BaseUtil.parseFormStoreToMap(data);
|
|
|
+ //入防潮柜之前校验是否暴露超时,暴露超时则提示先入烘烤
|
|
|
+ if(Double.valueOf(mapMsdB.get("restTime").toString()) <= 0){
|
|
|
+ throw new APIErrorException(APIErrorCode.ILLEGAL_ARGUMENTS, "条码:"+bar_code+"暴露超时,请先进行如烘烤操作!");
|
|
|
+ }
|
|
|
+ if(Double.parseDouble(dataMap.get("temp").toString())>35){
|
|
|
+ throw new APIErrorException(APIErrorCode.ILLEGAL_ARGUMENTS, "入防潮柜温度不能大于35℃");
|
|
|
+ }
|
|
|
+ if(Double.parseDouble(dataMap.get("humidity").toString())>10){
|
|
|
+ throw new APIErrorException(APIErrorCode.ILLEGAL_ARGUMENTS, "入防潮柜湿度不能超过10");
|
|
|
+ }
|
|
|
//烘烤温度(必填填写数字大于0),湿度(必填填写数字大于0){“temp”:54 //温度,“humidity”:23 //湿度}
|
|
|
if(NumberUtil.isEmpty(dataMap.get("temp"))||Double.valueOf(dataMap.get("temp").toString())<0.0){
|
|
|
throw new APIErrorException(APIErrorCode.ILLEGAL_ARGUMENTS, "条码:"+bar_code+"防潮柜温度必须大于0!");
|