代码更新

This commit is contained in:
2023-01-27 18:41:08 +08:00
parent c454a8f163
commit 37a2f84e01
3 changed files with 27 additions and 0 deletions

View File

@@ -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);
}
}

View File

@@ -19,4 +19,6 @@ public interface ProductInstorService {
JSONObject boxQuery(JSONObject whereJson);
JSONObject confirm(JSONObject whereJson);
JSONObject mendCode(JSONObject whereJson);
}

View File

@@ -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;
}
}