Просмотр исходного кода

[宣传页][修改][sql及实体]

release_toaliyun_real
gongbiao 7 лет назад
Родитель
Сommit
024ae09e5d
2 измененных файлов: 33 добавлений и 1 удалений
  1. +8
    -0
      mallinkService/src/main/java/com/iformall/domain/po/WxCampaign.java
  2. +25
    -1
      mallinkService/src/main/resources/mapper/WxCampaignMapper.xml

+ 8
- 0
mallinkService/src/main/java/com/iformall/domain/po/WxCampaign.java Просмотреть файл

@@ -89,6 +89,14 @@ public class WxCampaign extends BaseEntity {
@io.swagger.annotations.ApiModelProperty(value = "活动类型1直接投放2限时投放", name = "activityType") @io.swagger.annotations.ApiModelProperty(value = "活动类型1直接投放2限时投放", name = "activityType")
private Integer activityType; private Integer activityType;


@Transient
@io.swagger.annotations.ApiModelProperty(value = "开始时间", name = "starttime")
protected Date starttime;

@Transient
@io.swagger.annotations.ApiModelProperty(value = "结束时间", name = "endtime")
protected Date endtime;

@Transient @Transient
@io.swagger.annotations.ApiModelProperty(value="小程序路径",name="weappPath") @io.swagger.annotations.ApiModelProperty(value="小程序路径",name="weappPath")
protected String weappPath; protected String weappPath;


+ 25
- 1
mallinkService/src/main/resources/mapper/WxCampaignMapper.xml Просмотреть файл

@@ -22,12 +22,21 @@
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/> <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="html" jdbcType="VARCHAR" property="html"/> <result column="html" jdbcType="VARCHAR" property="html"/>
<result column="person_limit" jdbcType="INTEGER" property="personLimit"/>
<result column="activity_time" jdbcType="TIMESTAMP" property="activityTime"/>
<result column="use_credit" jdbcType="INTEGER" property="useCredit"/>
<result column="credit" jdbcType="INTEGER" property="credit"/>
<result column="question" jdbcType="VARCHAR" property="question"/>
<result column="is_expired" jdbcType="INTEGER" property="isExpired"/>
<result column="activity_type" jdbcType="INTEGER" property="activityType"/>


</resultMap> </resultMap>


<sql id="allColumns"> <sql id="allColumns">
`id`,`tenant_id`,`cover_img`,`cover_picture`,`detail_picture`,`title`,`sub_title`,`use_price`,`discount_price`,`detail`,`valid_start_date`,`valid_end_date`,`img_detail`,`type`,`coupon_ids`, `id`,`tenant_id`,`cover_img`,`cover_picture`,`detail_picture`,`title`,`sub_title`,`use_price`,`discount_price`,`detail`,`valid_start_date`,`valid_end_date`,`img_detail`,`type`,`coupon_ids`,
`mechant_id`,`sort_num`,`status`,`create_time`,`update_time`,`html`
`mechant_id`,`sort_num`,`status`,`create_time`,`update_time`,`html`,
`person_limit`,`activity_time`,`use_credit`,`credit`,`question`,`is_expired`,`activity_type`
</sql> </sql>


<sql id="allCHeadColumns"> <sql id="allCHeadColumns">
@@ -114,6 +123,21 @@
<if test=" null != updateTime "> <if test=" null != updateTime ">
and `update_time` = #{updateTime} and `update_time` = #{updateTime}
</if> </if>
<if test=" null != useCredit ">
and `use_credit` = #{useCredit}
</if>
<if test=" null != isExpired ">
and `is_expired` = #{isExpired}
</if>
<if test=" null != activityType ">
and `activity_type` = #{activityType}
</if>
<if test=" null != starttime and null!=endtime ">
and `create_time` between #{starttime} and #{endtime}
</if>
<if test=" null != ids "> <if test=" null != ids ">
and id in and id in
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">


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