| @@ -23,6 +23,7 @@ import javax.servlet.ServletOutputStream; | |||||
| import javax.servlet.http.HttpServletResponse; | import javax.servlet.http.HttpServletResponse; | ||||
| import java.awt.image.BufferedImage; | import java.awt.image.BufferedImage; | ||||
| import java.io.IOException; | import java.io.IOException; | ||||
| import java.util.List; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxMall") | @RequestMapping("wxMall") | ||||
| @@ -66,6 +67,23 @@ public class WxMallController extends BaseController { | |||||
| return new ResultData(mall); | return new ResultData(mall); | ||||
| } | } | ||||
| @ApiOperation("查询当前mall的子广场") | |||||
| @GetMapping("/childMall") | |||||
| @SystemControllerLog(description = "商城-当前查询") | |||||
| public ResultData childMall() { | |||||
| logger.debug("[" + getIpAddr() + "] WxMallController::mallinfo"); | |||||
| WxMall mall = wxMallService.getByTenantInfo(getUser()); | |||||
| if(mall == null) { | |||||
| logger.error("未配置相应的mall"); | |||||
| return new ResultData(Result.ERROR, "未配置相应的mall"); | |||||
| } | |||||
| if (wxMallService.isgroupSupport(mall)) { | |||||
| List<WxMall> childMall = wxMallService.getSubByParentTenantId(mall.getTenantId()); | |||||
| return new ResultData(childMall); | |||||
| } | |||||
| return new ResultData(Result.ERROR, "未查询到自广场"); | |||||
| } | |||||
| @ApiOperation("验证码") | @ApiOperation("验证码") | ||||
| @GetMapping("/imgUrlH") | @GetMapping("/imgUrlH") | ||||
| public ResultData imgUrlH(){ | public ResultData imgUrlH(){ | ||||