winter 2 лет назад
Родитель
Сommit
d65770ad5d
2 измененных файлов: 16 добавлений и 3 удалений
  1. +11
    -3
      mallinkAdmin/src/main/java/com/iformall/controller/basic/WxShopController.java
  2. +5
    -0
      mallinkService/src/main/resources/mapper/WxShopMapper.xml

+ 11
- 3
mallinkAdmin/src/main/java/com/iformall/controller/basic/WxShopController.java Просмотреть файл

@@ -7,6 +7,7 @@ import com.iformall.common.Result;
import com.iformall.common.ResultData; import com.iformall.common.ResultData;
import com.iformall.controller.base.BaseController; import com.iformall.controller.base.BaseController;
import com.iformall.domain.po.WxShop; import com.iformall.domain.po.WxShop;
import com.iformall.domain.po.WxUserDataRule;
import com.iformall.domain.po.base.BaseEntity; import com.iformall.domain.po.base.BaseEntity;
import com.iformall.service.WxShopService; import com.iformall.service.WxShopService;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
@@ -179,12 +180,16 @@ public class WxShopController extends BaseController {
@GetMapping("/exportNotRentShop") @GetMapping("/exportNotRentShop")
@SystemControllerLog(description = "商铺出租数据-未出租商铺列表-导出") @SystemControllerLog(description = "商铺出租数据-未出租商铺列表-导出")
public void exportNotRentShop(@ModelAttribute WxShop wxShop, HttpServletRequest request, HttpServletResponse response) { public void exportNotRentShop(@ModelAttribute WxShop wxShop, HttpServletRequest request, HttpServletResponse response) {
logger.debug("[" + getIpAddr() + "] WxShopController::exportNotRentShop");
if (null == wxShop){ if (null == wxShop){
wxShop = new WxShop(); wxShop = new WxShop();
} }
wxShop.updateTenantInfo(getTenantInfo()); wxShop.updateTenantInfo(getTenantInfo());
wxShop.setSortColumns(BaseEntity.SortField.SCreateDate_DESC,BaseEntity.SortField.SId_DESC); wxShop.setSortColumns(BaseEntity.SortField.SCreateDate_DESC,BaseEntity.SortField.SId_DESC);
WxUserDataRule dataRule = this.getCurrentDataFloors();
if (null != dataRule) {
wxShop.setFloorForRule(dataRule.getFloorIds());
wxShop.setBusinessForRule(dataRule.getBussinessIds());
}
wxShopService.exportNotRentShop(wxShop, request, response); wxShopService.exportNotRentShop(wxShop, request, response);
} }


@@ -194,7 +199,6 @@ public class WxShopController extends BaseController {
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = "pageNum", value = "页数", dataType = "int", paramType = "query", required = true), @ApiImplicitParam(name = "pageNum", value = "页数", dataType = "int", paramType = "query", required = true),
@ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "int", paramType = "query", required = true)}) @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "int", paramType = "query", required = true)})
@SystemControllerLog(description = "未出租商铺分页列表接口")
public ResultData notRentShopList(@ModelAttribute WxShop wxShop, Integer pageNum, Integer pageSize) { public ResultData notRentShopList(@ModelAttribute WxShop wxShop, Integer pageNum, Integer pageSize) {
logger.debug("[" + getIpAddr() + "] WxShopController::notRentShopList"); logger.debug("[" + getIpAddr() + "] WxShopController::notRentShopList");
if (null == wxShop){ if (null == wxShop){
@@ -202,7 +206,11 @@ public class WxShopController extends BaseController {
} }
wxShop.updateTenantInfo(getTenantInfo()); wxShop.updateTenantInfo(getTenantInfo());
wxShop.setSortColumns(BaseEntity.SortField.SCreateDate_DESC,BaseEntity.SortField.SId_DESC); wxShop.setSortColumns(BaseEntity.SortField.SCreateDate_DESC,BaseEntity.SortField.SId_DESC);

WxUserDataRule dataRule = this.getCurrentDataFloors();
if (null != dataRule) {
wxShop.setFloorForRule(dataRule.getFloorIds());
wxShop.setBusinessForRule(dataRule.getBussinessIds());
}
final PageInfo<Map<String, Object>> page = wxShopService.notRentListMapAsPage(wxShop, pageNum, pageSize); final PageInfo<Map<String, Object>> page = wxShopService.notRentListMapAsPage(wxShop, pageNum, pageSize);
return new ResultData(page); return new ResultData(page);
} }


+ 5
- 0
mallinkService/src/main/resources/mapper/WxShopMapper.xml Просмотреть файл

@@ -317,6 +317,11 @@
<if test=" null != pointType "> <if test=" null != pointType ">
and s.`point_type` = #{pointType} and s.`point_type` = #{pointType}
</if> </if>
<if test=" null != floorForRule and '' != floorForRule ">
and s.`floor` in (${floorForRule})
</if>
<if test="null != sortColumn"> <if test="null != sortColumn">
order by ${sortColumn} ${sortOrder} order by ${sortColumn} ${sortOrder}
</if> </if>


Загрузка…
Отмена
Сохранить