无关风月
2025-04-03 fe7c2fff004e4a64dae5f0982ab28663c600c778
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.dsh.guns.modular.system.controller.code;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dsh.guns.core.base.controller.BaseController;
import com.dsh.guns.core.common.constant.factory.PageFactory;
import com.dsh.guns.modular.system.service.IStoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
 
import java.util.List;
import java.util.Map;
 
/**
 * @author zhibing.pu
 * @Date 2023/8/1 14:02
 */
@Controller
@RequestMapping("/store")
public class TStoreController extends BaseController {
 
    @Autowired
    private IStoreService storeService;
 
 
    @ResponseBody
    @PostMapping("/listAll")
    public Object listAll(String name, Integer operator, String provinceCode, String cityCode){
        Page page = new PageFactory<List<Map<String, Object>>>().defaultPage();
        List<Map<String, Object>> mapList = storeService.listStoreAll(page, name, operator, provinceCode, cityCode);
        page.setRecords(mapList);
        return super.packForBT(page);
    }
}