|
|
|
@@ -1,27 +1,22 @@ |
|
|
|
package com.iformall.controller; |
|
|
|
|
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
import com.iformall.annotation.RedisCache; |
|
|
|
import com.iformall.common.ResultData; |
|
|
|
import com.iformall.domain.po.WxBusiness; |
|
|
|
import com.iformall.domain.po.WxCUser; |
|
|
|
import com.iformall.enums.EnumAppPlat; |
|
|
|
import com.iformall.service.WxBusinessService; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiImplicitParam; |
|
|
|
import io.swagger.annotations.ApiImplicitParams; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
@RestController |
|
|
|
@RequestMapping("/api/wxBusiness") |
|
|
|
@Api(description = "业态查询接口") |
|
|
|
public class WxBusinessController extends BaseController { |
|
|
|
|
|
|
|
private final Logger logger = LoggerFactory.getLogger(this.getClass()); |
|
|
|
|
|
|
|
@Autowired |
|
|
|
@@ -31,7 +26,11 @@ public class WxBusinessController extends BaseController { |
|
|
|
@ApiOperation("业态全列表接口") |
|
|
|
@GetMapping("listAll") |
|
|
|
public ResultData listAll(Integer filter) { |
|
|
|
return new ResultData(wxBusinessService.findListAll(getTenantInfo(),filter)); |
|
|
|
EnumAppPlat appPlat = getCUser().getAppPlat(); |
|
|
|
if(appPlat == null){ |
|
|
|
appPlat = EnumAppPlat.WX; |
|
|
|
} |
|
|
|
return new ResultData(wxBusinessService.findListAll(getTenantInfo(),filter,appPlat.getCode())); |
|
|
|
} |
|
|
|
|
|
|
|
} |