|
@@ -70,7 +70,7 @@ public class GoodsController extends AbstractController{
|
|
*/
|
|
*/
|
|
@RequestMapping("/list")
|
|
@RequestMapping("/list")
|
|
@RequiresPermissions("goods:list")
|
|
@RequiresPermissions("goods:list")
|
|
- public Result list(@RequestParam Map<String, Object> params) {
|
|
|
|
|
|
+ public Result list(@RequestBody Map<String, Object> params) {
|
|
//查询列表数据
|
|
//查询列表数据
|
|
Query query = new Query(params);
|
|
Query query = new Query(params);
|
|
PageUtils pageUtil = new PageUtils(new ArrayList<>(), 0, query.getLimit(), query.getPage());
|
|
PageUtils pageUtil = new PageUtils(new ArrayList<>(), 0, query.getLimit(), query.getPage());
|
|
@@ -378,7 +378,7 @@ public class GoodsController extends AbstractController{
|
|
* 查看所有列表
|
|
* 查看所有列表
|
|
*/
|
|
*/
|
|
@RequestMapping("/queryAll")
|
|
@RequestMapping("/queryAll")
|
|
- public Result queryAll(@RequestParam Map<String, Object> params) {
|
|
|
|
|
|
+ public Result queryAll(@RequestBody Map<String, Object> params) {
|
|
Long userId = getUserId();
|
|
Long userId = getUserId();
|
|
if(Constant.SUPER_ADMIN != userId){
|
|
if(Constant.SUPER_ADMIN != userId){
|
|
params.put("brandIdList", mySysUserBrandService.queryBrandIdList(userId));
|
|
params.put("brandIdList", mySysUserBrandService.queryBrandIdList(userId));
|
|
@@ -398,7 +398,7 @@ public class GoodsController extends AbstractController{
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping("/historyList")
|
|
@RequestMapping("/historyList")
|
|
- public Result historyList(@RequestParam Map<String, Object> params) {
|
|
|
|
|
|
+ public Result historyList(@RequestBody Map<String, Object> params) {
|
|
//查询列表数据
|
|
//查询列表数据
|
|
Query query = new Query(params);
|
|
Query query = new Query(params);
|
|
PageUtils pageUtil = new PageUtils(new ArrayList<>(), 0, query.getLimit(), query.getPage());
|
|
PageUtils pageUtil = new PageUtils(new ArrayList<>(), 0, query.getLimit(), query.getPage());
|
|
@@ -433,7 +433,7 @@ public class GoodsController extends AbstractController{
|
|
* 总计
|
|
* 总计
|
|
*/
|
|
*/
|
|
@RequestMapping("/queryTotal")
|
|
@RequestMapping("/queryTotal")
|
|
- public Result queryTotal(@RequestParam Map<String, Object> params) {
|
|
|
|
|
|
+ public Result queryTotal(@RequestBody Map<String, Object> params) {
|
|
|
|
|
|
params.put("isDelete", 0);
|
|
params.put("isDelete", 0);
|
|
int sum = goodsService.queryTotal(params);
|
|
int sum = goodsService.queryTotal(params);
|