rev:修改
This commit is contained in:
@@ -65,13 +65,13 @@ public class PublicServiceImpl implements PublicService {
|
|||||||
String code = whereJson.getString("code");
|
String code = whereJson.getString("code");
|
||||||
Assert.notNull(code, "扫码内容为空!");
|
Assert.notNull(code, "扫码内容为空!");
|
||||||
// 判断是否存在逗号
|
// 判断是否存在逗号
|
||||||
|
|
||||||
if (code.contains(",")) {
|
if (code.contains(",")) {
|
||||||
String[] arrCode = code.split(",");
|
String[] arrCode = code.split(",");
|
||||||
JSONObject paramJson = new JSONObject()
|
JSONObject paramJson = new JSONObject()
|
||||||
.fluentPut("materialCode", arrCode[0])
|
.fluentPut("materialCode", arrCode[0])
|
||||||
.fluentPut("pcsn", arrCode[1]);
|
.fluentPut("pcsn", arrCode[1]);
|
||||||
|
|
||||||
|
|
||||||
MesResponse<?> mesResponse = wmsToMesService.rawMaterialGroupInfo(paramJson);
|
MesResponse<?> mesResponse = wmsToMesService.rawMaterialGroupInfo(paramJson);
|
||||||
Assert.equals(HttpStatus.OK.value(), mesResponse.getStatus(), mesResponse.getMessage());
|
Assert.equals(HttpStatus.OK.value(), mesResponse.getStatus(), mesResponse.getMessage());
|
||||||
return PdaResponse.requestParamOk(mesResponse.getData());
|
return PdaResponse.requestParamOk(mesResponse.getData());
|
||||||
|
|||||||
Reference in New Issue
Block a user