fix:优化
This commit is contained in:
@@ -528,6 +528,7 @@ public class MesToWmsServiceImpl implements MesToWmsService {
|
||||
param.put("site_code",dto.getDevice_code());
|
||||
param.put("sect_id",sectattr.getSect_id());
|
||||
param.put("sect_code",sectattr.getSect_code());
|
||||
param.put("back_material_flag",true);
|
||||
pdaIosInService.vehicleInConfirm(param);
|
||||
} else{
|
||||
throw new BadRequestException("任务类型有误!请传入1或2");
|
||||
|
||||
@@ -566,8 +566,11 @@ public class PdaIosInServiceImpl implements PdaIosInService {
|
||||
public PdaResponse vehicleInConfirm(JSONObject whereJson) {
|
||||
//空载具入库
|
||||
Sectattr sectattr = sectattrService.findById(whereJson.getString("sect_code"));
|
||||
if(sectattr == null){
|
||||
throw new BadRequestException("库区" + whereJson.getString("sect_code") +"不存在");
|
||||
if (sectattr == null) {
|
||||
sectattr = sectattrService.findByCode(whereJson.getString("sect_code"));
|
||||
if (sectattr == null) {
|
||||
throw new BadRequestException("库区" + whereJson.getString("sect_code") + "不存在");
|
||||
}
|
||||
}
|
||||
|
||||
whereJson.put("sect_code", sectattr.getSect_code());
|
||||
@@ -588,7 +591,8 @@ public class PdaIosInServiceImpl implements PdaIosInService {
|
||||
if(schBasePointList.size()>1){
|
||||
throw new BadRequestException("存在重复点位,请确认");
|
||||
}
|
||||
if(!"2".equals(schBasePointList.get(0).getPoint_status())){
|
||||
if(!"2".equals(schBasePointList.get(0).getPoint_status())
|
||||
&& !whereJson.containsKey("back_material_flag")){
|
||||
throw new BadRequestException("点位状态不为空载具,请核对!");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user