代码更新
This commit is contained in:
@@ -44,4 +44,11 @@ public class ProductInstorController {
|
||||
return new ResponseEntity<>(productInstorService.confirm(whereJson),HttpStatus.OK);
|
||||
}
|
||||
|
||||
@PostMapping("/mendCode")
|
||||
@Log("补码")
|
||||
@ApiOperation("补码")
|
||||
public ResponseEntity<Object> mendCode(@RequestBody JSONObject whereJson){
|
||||
return new ResponseEntity<>(productInstorService.mendCode(whereJson),HttpStatus.OK);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -19,4 +19,6 @@ public interface ProductInstorService {
|
||||
JSONObject boxQuery(JSONObject whereJson);
|
||||
|
||||
JSONObject confirm(JSONObject whereJson);
|
||||
|
||||
JSONObject mendCode(JSONObject whereJson);
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ import org.nl.modules.wql.WQL;
|
||||
import org.nl.modules.wql.core.bean.WQLObject;
|
||||
import org.nl.modules.wql.util.SpringContextHolder;
|
||||
import org.nl.modules.wql.util.WqlUtil;
|
||||
import org.nl.wms.ext.acs.service.impl.AcsToWmsServiceImpl;
|
||||
import org.nl.wms.pda.st.service.CoolInService;
|
||||
import org.nl.wms.pda.st.service.ProductInstorService;
|
||||
import org.nl.wms.sch.manage.AbstractAcsTask;
|
||||
@@ -248,4 +249,21 @@ public class ProductInstorServiceImpl implements ProductInstorService {
|
||||
jo.put("message", "确认成功!");
|
||||
return jo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject mendCode(JSONObject whereJson) {
|
||||
String vehicle_code = whereJson.getString("box_no");
|
||||
if (ObjectUtil.isEmpty(vehicle_code)) throw new BadRequestException("木箱号不能为空");
|
||||
|
||||
JSONObject param = new JSONObject();
|
||||
param.put("vehicle_code",vehicle_code);
|
||||
param.put("type","1");
|
||||
|
||||
AcsToWmsServiceImpl bean = SpringContextHolder.getBean(AcsToWmsServiceImpl.class);
|
||||
bean.deviceApply(param);
|
||||
|
||||
JSONObject jo = new JSONObject();
|
||||
jo.put("message", "补码成功!");
|
||||
return jo;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user