From f13cf72865c42ffb50233586a11a731a5bb6a594 Mon Sep 17 00:00:00 2001 From: xhxu Date: Wed, 18 Aug 2021 16:44:30 +0800 Subject: [PATCH] hetong --- .../java/com/iformall/domain/po/WxShop.java | 4 +++ .../com/iformall/mapper/WxShopMapper.java | 2 +- .../service/impl/WxShopServiceImpl.java | 3 +- .../main/resources/mapper/WxShopMapper.xml | 34 ++++++++++--------- 4 files changed, 24 insertions(+), 19 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/domain/po/WxShop.java b/mallinkService/src/main/java/com/iformall/domain/po/WxShop.java index 7cf17a279..ad70c006d 100644 --- a/mallinkService/src/main/java/com/iformall/domain/po/WxShop.java +++ b/mallinkService/src/main/java/com/iformall/domain/po/WxShop.java @@ -58,9 +58,13 @@ public class WxShop extends TenantEntity { @io.swagger.annotations.ApiModelProperty(value="楼座号",name="building") private Long building; + @TableField(exist = false) + private String buildingName; @io.swagger.annotations.ApiModelProperty(value="楼层号",name="floor") private Long floor; + @TableField(exist = false) + private String floorName; @Excel(name="租赁状态",width = 20,orderNum = "7",replace = {"未出租_0","已出租_1"}) @io.swagger.annotations.ApiModelProperty(value="状态(0:未出租, 1:已出租)",name="status") diff --git a/mallinkService/src/main/java/com/iformall/mapper/WxShopMapper.java b/mallinkService/src/main/java/com/iformall/mapper/WxShopMapper.java index a34ac973a..3858409bb 100644 --- a/mallinkService/src/main/java/com/iformall/mapper/WxShopMapper.java +++ b/mallinkService/src/main/java/com/iformall/mapper/WxShopMapper.java @@ -43,5 +43,5 @@ public interface WxShopMapper extends CommonMapper { Map detailById(@Param("id") Long id); -// List selectBatchByIds(@Param("ids")List ids); + List selectBatchByIds(@Param("ids")List ids); } diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxShopServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxShopServiceImpl.java index 03250fa5b..872e1a56d 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxShopServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxShopServiceImpl.java @@ -82,8 +82,7 @@ public class WxShopServiceImpl implements WxShopService { if(CollectionUtils.isEmpty(ids)) { return new ArrayList<>() ; } - return wxShopMapper.selectBatchIds(ids) ; -// return wxShopMapper.selectBatchByIds((List) ids) ; + return wxShopMapper.selectBatchByIds((List) ids) ; } @Override diff --git a/mallinkService/src/main/resources/mapper/WxShopMapper.xml b/mallinkService/src/main/resources/mapper/WxShopMapper.xml index 66879f2cc..b7d3182cd 100644 --- a/mallinkService/src/main/resources/mapper/WxShopMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxShopMapper.xml @@ -10,6 +10,8 @@ + + @@ -139,22 +141,22 @@ - - - - - - - - - - - - - - - - +