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);
|
}
|
}
|