|
|
|
@@ -10,24 +10,25 @@ import io.swagger.annotations.ApiImplicitParams; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import org.apache.log4j.Logger; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
@RestController |
|
|
|
@RequestMapping("/api/wxBusiness") |
|
|
|
public class WxBusinessController extends BaseController |
|
|
|
{ |
|
|
|
public class WxBusinessController extends BaseController { |
|
|
|
private Logger logger = Logger.getLogger(WxBusinessController.class); |
|
|
|
|
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
private WxBusinessService wxBusinessService; |
|
|
|
|
|
|
|
@ApiOperation("分页列表接口") |
|
|
|
|
|
|
|
@ApiOperation("分页列表接口") |
|
|
|
@GetMapping("list") |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), |
|
|
|
@ApiImplicitParam(name="pageSize",value="每页条数",dataType="int", paramType = "query",required=true)}) |
|
|
|
public ResultData list(WxBusiness wxBusiness,Integer pageNum, Integer pageSize) { |
|
|
|
if (null == wxBusiness) wxBusiness = new WxBusiness(); |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParam(name = "pageNum", value = "页数", dataType = "int", paramType = "query", required = true), |
|
|
|
@ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "int", paramType = "query", required = true)}) |
|
|
|
public ResultData list(WxBusiness wxBusiness, Integer pageNum, Integer pageSize) { |
|
|
|
if (null == wxBusiness) wxBusiness = new WxBusiness(); |
|
|
|
WxCUser user = getUser(); |
|
|
|
wxBusiness.setTenantId(user.getTenantId()); |
|
|
|
final PageInfo<WxBusiness> page = wxBusinessService.listAsPage(wxBusiness, pageNum, pageSize); |
|
|
|
|