把获取序列号商品的接口改为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 jsonObject
* @param depotId
* @param barCode
* @param currentPage
* @param pageSize
* @param request * @param request
* @return * @return
* @throws Exception * @throws Exception
*/ */
@GetMapping(value = "/getEnableSerialNumberList") @PostMapping(value = "/getEnableSerialNumberList")
@ApiOperation(value = "获取序列号商品") @ApiOperation(value = "获取序列号商品")
public BaseResponseInfo getEnableSerialNumberList(@RequestParam("name") String name, public BaseResponseInfo getEnableSerialNumberList(@RequestBody JSONObject jsonObject, HttpServletRequest request)throws Exception {
@RequestParam("depotItemId") Long depotItemId,
@RequestParam("depotId") Long depotId,
@RequestParam("barCode") String barCode,
@RequestParam("page") Integer currentPage,
@RequestParam("rows") Integer pageSize,
HttpServletRequest request)throws Exception {
BaseResponseInfo res = new BaseResponseInfo(); BaseResponseInfo res = new BaseResponseInfo();
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
try { 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 number = "";
String [] nameArray = null; String [] nameArray = null;
if(depotItemId != null) { if(depotItemId != null) {

View File

@@ -65,7 +65,7 @@ const batchUpdateMaterial = (params)=>postAction("/material/batchUpdate",params)
const changeNameToPinYin = (params)=>postAction("/material/changeNameToPinYin",params); const changeNameToPinYin = (params)=>postAction("/material/changeNameToPinYin",params);
//序列号 //序列号
const batAddSerialNumber = (params)=>postAction("/serialNumber/batAddSerialNumber",params); const batAddSerialNumber = (params)=>postAction("/serialNumber/batAddSerialNumber",params);
const getEnableSerialNumberList = (params)=>getAction("/serialNumber/getEnableSerialNumberList",params); const getEnableSerialNumberList = (params)=>postAction("/serialNumber/getEnableSerialNumberList",params);
//多属性 //多属性
const addMaterialAttribute = (params)=>postAction("/materialAttribute/add",params); const addMaterialAttribute = (params)=>postAction("/materialAttribute/add",params);
const editMaterialAttribute = (params)=>putAction("/materialAttribute/update",params); const editMaterialAttribute = (params)=>putAction("/materialAttribute/update",params);