|
@@ -92,6 +92,7 @@ public class BackendGoodsController extends BaseController {
|
|
|
String type = request.getParameter("type");
|
|
|
String status = request.getParameter("status");
|
|
|
String searchStoreId = request.getParameter("storeId");
|
|
|
+ String stock = request.getParameter("stock");
|
|
|
|
|
|
AccountInfo accountInfo = TokenUtil.getAccountInfoByToken(token);
|
|
|
if (accountInfo == null) {
|
|
@@ -131,6 +132,9 @@ public class BackendGoodsController extends BaseController {
|
|
|
if (StringUtil.isNotEmpty(status)) {
|
|
|
params.put("status", status);
|
|
|
}
|
|
|
+ if (StringUtil.isNotEmpty(stock)) {
|
|
|
+ params.put("stock", stock);
|
|
|
+ }
|
|
|
paginationRequest.setSearchParams(params);
|
|
|
PaginationResponse<GoodsDto> paginationResponse = goodsService.queryGoodsListByPagination(paginationRequest);
|
|
|
|
|
@@ -273,11 +277,11 @@ public class BackendGoodsController extends BaseController {
|
|
|
String name = specNameArr.get(i);
|
|
|
for (MtGoodsSpec mtGoodsSpec : goods.getSpecList()) {
|
|
|
if (mtGoodsSpec.getName().equals(name)) {
|
|
|
- GoodsSpecChildDto e = new GoodsSpecChildDto();
|
|
|
- e.setId(mtGoodsSpec.getId());
|
|
|
- e.setName(mtGoodsSpec.getValue());
|
|
|
- e.setChecked(true);
|
|
|
- child.add(e);
|
|
|
+ GoodsSpecChildDto goodsSpecChildDto = new GoodsSpecChildDto();
|
|
|
+ goodsSpecChildDto.setId(mtGoodsSpec.getId());
|
|
|
+ goodsSpecChildDto.setName(mtGoodsSpec.getValue());
|
|
|
+ goodsSpecChildDto.setChecked(true);
|
|
|
+ child.add(goodsSpecChildDto);
|
|
|
}
|
|
|
}
|
|
|
item.setId(specId);
|
|
@@ -571,7 +575,7 @@ public class BackendGoodsController extends BaseController {
|
|
|
/**
|
|
|
* 保存商品规格
|
|
|
*
|
|
|
- * @param request HttpServletRequest对象
|
|
|
+ * @param request HttpServletRequest对象
|
|
|
*/
|
|
|
@ApiOperation(value = "保存商品规格")
|
|
|
@RequestMapping(value = "/saveSpecName", method = RequestMethod.POST)
|
|
@@ -624,7 +628,7 @@ public class BackendGoodsController extends BaseController {
|
|
|
/**
|
|
|
* 保存商品规格值
|
|
|
*
|
|
|
- * @param request HttpServletRequest对象
|
|
|
+ * @param request HttpServletRequest对象
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation(value = "保存商品规格值")
|