把获取序列号商品的接口改为post请求

This commit is contained in:
jishenghua
2025-12-16 10:00:21 +08:00
parent eb621a29f9
commit 8a32becc16
2 changed files with 10 additions and 14 deletions

View File

@@ -60,27 +60,23 @@ public class SerialNumberController {
/**
* 获取序列号商品
* @param name
* @param depotId
* @param barCode
* @param currentPage
* @param pageSize
* @param jsonObject
* @param request
* @return
* @throws Exception
*/
@GetMapping(value = "/getEnableSerialNumberList")
@PostMapping(value = "/getEnableSerialNumberList")
@ApiOperation(value = "获取序列号商品")
public BaseResponseInfo getEnableSerialNumberList(@RequestParam("name") String name,
@RequestParam("depotItemId") Long depotItemId,
@RequestParam("depotId") Long depotId,
@RequestParam("barCode") String barCode,
@RequestParam("page") Integer currentPage,
@RequestParam("rows") Integer pageSize,
HttpServletRequest request)throws Exception {
public BaseResponseInfo getEnableSerialNumberList(@RequestBody JSONObject jsonObject, HttpServletRequest request)throws Exception {
BaseResponseInfo res = new BaseResponseInfo();
Map<String, Object> map = new HashMap<>();
try {
String name = jsonObject.getString("name");
Long depotItemId = jsonObject.getLong("depotItemId");
Long depotId = jsonObject.getLong("depotId");
String barCode = jsonObject.getString("barCode");
Integer currentPage = jsonObject.getInteger("page");
Integer pageSize = jsonObject.getInteger("rows");
String number = "";
String [] nameArray = null;
if(depotItemId != null) {