会员列表
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package cn.ysk.cashier.controller.shop;
|
||||
|
||||
import cn.ysk.cashier.annotation.Log;
|
||||
import cn.ysk.cashier.pojo.shop.TbShopUser;
|
||||
import cn.ysk.cashier.service.shop.TbShopUserService;
|
||||
import cn.ysk.cashier.dto.shop.TbShopUserQueryCriteria;
|
||||
@@ -27,6 +26,8 @@ import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import io.swagger.annotations.*;
|
||||
import java.io.IOException;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
/**
|
||||
@@ -57,7 +58,13 @@ public class TbShopUserController {
|
||||
@GetMapping("queryAllShopUser")
|
||||
@ApiOperation("查询商家用户")
|
||||
public ResponseEntity<Object> queryAllShopUser(TbShopUserQueryCriteria criteria, Pageable pageable){
|
||||
return new ResponseEntity<>(tbShopUserService.queryAllShopUser(criteria,pageable),HttpStatus.OK);
|
||||
Map<String, Object> stringObjectMap=new HashMap<>();
|
||||
if (criteria.getShopId().equals("1")) {
|
||||
stringObjectMap = tbShopUserService.queryAllShopUser(criteria, pageable);
|
||||
}else {
|
||||
stringObjectMap = tbShopUserService.queryShopUser(criteria, pageable);
|
||||
}
|
||||
return new ResponseEntity<>(stringObjectMap,HttpStatus.OK);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user