Browse Source

[商场信息][修改][完善信息及C端展示]

release_toaliyun_real
gongbiao 6 years ago
parent
commit
7925a1d50e
3 changed files with 30 additions and 4 deletions
  1. +7
    -0
      mallinkAdmin/src/main/resources/db/migration/V201909181335__G_MALL_CHANGE.sql
  2. +15
    -3
      mallinkService/src/main/java/com/iformall/domain/po/WxMall.java
  3. +8
    -1
      mallinkService/src/main/resources/mapper/WxMallMapper.xml

+ 7
- 0
mallinkAdmin/src/main/resources/db/migration/V201909181335__G_MALL_CHANGE.sql View File

@@ -0,0 +1,7 @@
alter table wx_mall
add column parking_space varchar(20) DEFAULT 0 not null comment '停车位',
add column business_hours json not null comment '营业时间',
add column introduction varchar(255) DEFAULT '' not null comment '简介',
add column img varchar(255) DEFAULT '' not null comment '图片';

update wx_mall set business_hours = JSON_ARRAY();

+ 15
- 3
mallinkService/src/main/java/com/iformall/domain/po/WxMall.java View File

@@ -69,8 +69,8 @@ public class WxMall extends BaseEntity {
private Integer saleType;
@io.swagger.annotations.ApiModelProperty(value="启用开始时间",name="validStart")
private Date validStart;
@io.swagger.annotations.ApiModelProperty(value="启用结束时间",name="validEnd")
private Date validEnd;
@io.swagger.annotations.ApiModelProperty(value = "启用结束时间", name = "validEnd")
private Date validEnd;

@TableField(exist = false)
protected List<WxMallBuilding> buildings;
@@ -92,5 +92,17 @@ public class WxMall extends BaseEntity {

return true;
}

@io.swagger.annotations.ApiModelProperty(value = "停车位", name = "parkingSpace")
private String parkingSpace;

@io.swagger.annotations.ApiModelProperty(value = "营业时间", name = "businessHours")
private String businessHours;

@io.swagger.annotations.ApiModelProperty(value = "简介", name = "introduction")
private String introduction;

@io.swagger.annotations.ApiModelProperty(value = "图片", name = "img")
private String img;

}

+ 8
- 1
mallinkService/src/main/resources/mapper/WxMallMapper.xml View File

@@ -26,6 +26,13 @@
<result column="sale_type" jdbcType="TINYINT" property="saleType"/>
<result column="valid_start" jdbcType="TIMESTAMP" property="validStart"/>
<result column="valid_end" jdbcType="TIMESTAMP" property="validEnd"/>
<result column="parking_space" jdbcType="VARCHAR" property="parkingSpace"/>
<result column="business_hours" jdbcType="VARCHAR" property="businessHours"/>
<result column="introduction" jdbcType="VARCHAR" property="introduction"/>
<result column="img" jdbcType="VARCHAR" property="img"/>


</resultMap>

<sql id="allColumns">
@@ -33,7 +40,7 @@
`total_area`,`operating_area`,`park_area`,`park_place_number`,`service_phone`,
`img_url`,`img_url_h`, `weap_note`, `img_qrcode_weapp`, `img_qrcode_wemp`,
`weapp_share_title`,`weapp_share_cover_img`, `pos_qrcode_rule`,
`sale_type`, `valid_start`, `valid_end`
`sale_type`, `valid_start`, `valid_end`,`parking_space`,`business_hours`,`introduction`,`img`
</sql>

<sql id="dynamicWhereConditions">


Loading…
Cancel
Save