Commit c3fe709a authored by 扫地僧's avatar 扫地僧

修改方法名

parent 9d2df493
......@@ -39,9 +39,9 @@ public class AdvertController extends BaseController{
/**
* 分页展示广告
*/
@RequestMapping("getAdvertList")
@RequestMapping("advertList")
@ResponseBody
public PageFinder<Advert> getAdvertList(@ModelAttribute("advert") Advert advert,Query query) {
public PageFinder<Advert> advertList(@ModelAttribute("advert") Advert advert,Query query) {
Query q = new Query(query.getPageNo(),query.getPageSize(),advert);
return advertService.getAdvertPagedList(q);
}
......
......@@ -25,9 +25,9 @@ public class StoreController extends BaseController {
/*
* 分页展示店铺信息
*/
@RequestMapping("getStoreList")
@RequestMapping("storeList")
@ResponseBody
public PageFinder<Store> getStoreList(Store store,Query query) {
public PageFinder<Store> storeList(Store store,Query query) {
store.setIsDeleted(0);
Query q = new Query(query.getPageNo(),query.getPageSize(),store);
return storeService.getStorePagedList(q);
......
......@@ -26,9 +26,9 @@ public class WorkerController extends BaseController {
/*
* 分页展示员工信息
*/
@RequestMapping("getWorkerList")
@RequestMapping("workerList")
@ResponseBody
public PageFinder<Worker> getWorkerList(Worker worker,Query query) {
public PageFinder<Worker> workerList(Worker worker,Query query) {
worker.setIsDeleted(0);
Query q = new Query(query.getPageNo(),query.getPageSize(),worker);
return workerService.getWorkerPagedList(q);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment