opt: 分切
This commit is contained in:
@@ -128,5 +128,11 @@ public class WmsToAcsController {
|
||||
return new ResponseEntity<>(wmsToAcsService.PaperTubeAction(jo), HttpStatus.OK);
|
||||
}
|
||||
|
||||
@PostMapping("/getWeight")
|
||||
@Log(value = "获取称重重量", isInterfaceLog = true, interfaceLogType = InterfaceLogType.LMS_TO_ACS)
|
||||
public ResponseEntity<Object> getWeight(@RequestBody JSONObject jo) {
|
||||
return new ResponseEntity<>(wmsToAcsService.getWeight(jo), HttpStatus.OK);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -137,4 +137,11 @@ public interface WmsToAcsService {
|
||||
* @return JSONObject
|
||||
*/
|
||||
JSONObject PaperTubeAction(JSONObject jo);
|
||||
|
||||
/**
|
||||
* 获取称重重量
|
||||
* @param jo /
|
||||
* @return /
|
||||
*/
|
||||
JSONObject getWeight(JSONObject jo);
|
||||
}
|
||||
|
||||
@@ -459,4 +459,12 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JSONObject getWeight(JSONObject whereJson) {
|
||||
String api = "api/wms/getWeight";
|
||||
JSONArray arr = new JSONArray();
|
||||
arr.add(whereJson);
|
||||
return AcsUtil.notifyAcs(api, arr);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user