Commit de8b057e authored by shiyu's avatar shiyu

专场加上视频号跳转

parent 3bbf2879
...@@ -64,4 +64,20 @@ public class SpecialPerformanceVo implements Entity { ...@@ -64,4 +64,20 @@ public class SpecialPerformanceVo implements Entity {
* 专场商品总数 * 专场商品总数
*/ */
private Long itemNum; private Long itemNum;
/**
* 视频号id
*/
private String videoAppId;
/**
* 视频id
*/
private String videoId;
/**
* 视频标题
*/
private String videoTitle;
} }
...@@ -16,6 +16,8 @@ dts: ...@@ -16,6 +16,8 @@ dts:
notify-url: https://test.dtsshop.com/demo/order/dtsNotify notify-url: https://test.dtsshop.com/demo/order/dtsNotify
get-access-token-url: https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s get-access-token-url: https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s
#视频号id
video-app-id: sphLqAj9FoEj1JF
#寄售业务,公众号消息点击后跳转到小程序页面的链接 #寄售业务,公众号消息点击后跳转到小程序页面的链接
msg-url: pages/consignNodeDetail/index msg-url: pages/consignNodeDetail/index
......
...@@ -14,6 +14,9 @@ dts: ...@@ -14,6 +14,9 @@ dts:
apikey: be9b8745-a47e-4d4d-afba-e55aab4bca74 apikey: be9b8745-a47e-4d4d-afba-e55aab4bca74
#视频号id
video-app-id: sphLqAj9FoEj1JF
#公众号消息点击后跳转到小程序页面的链接 #公众号消息点击后跳转到小程序页面的链接
msg-url: pages/consignNodeDetail/index msg-url: pages/consignNodeDetail/index
#分销业务,公众号消息点击后跳转到小程序页面的链接 #分销业务,公众号消息点击后跳转到小程序页面的链接
......
...@@ -8,7 +8,7 @@ import lombok.Data; ...@@ -8,7 +8,7 @@ import lombok.Data;
/** /**
* @author shiyu * @author shiyu
* @date 2024/06/26 * @date 2024/11/01
*/ */
@Data @Data
public class SpecialPerformance implements Entity { public class SpecialPerformance implements Entity {
...@@ -59,6 +59,21 @@ public class SpecialPerformance implements Entity { ...@@ -59,6 +59,21 @@ public class SpecialPerformance implements Entity {
*/ */
private Integer state; private Integer state;
/**
* 视频号id
*/
private String videoAppId;
/**
* 视频id
*/
private String videoId;
/**
* 视频标题
*/
private String videoTitle;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@Override @Override
...@@ -77,6 +92,9 @@ public class SpecialPerformance implements Entity { ...@@ -77,6 +92,9 @@ public class SpecialPerformance implements Entity {
sb.append(", itemEndInterval=").append(itemEndInterval); sb.append(", itemEndInterval=").append(itemEndInterval);
sb.append(", type=").append(type); sb.append(", type=").append(type);
sb.append(", state=").append(state); sb.append(", state=").append(state);
sb.append(", videoAppId=").append(videoAppId);
sb.append(", videoId=").append(videoId);
sb.append(", videoTitle=").append(videoTitle);
sb.append(", serialVersionUID=").append(serialVersionUID); sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]"); sb.append("]");
return sb.toString(); return sb.toString();
...@@ -103,7 +121,10 @@ public class SpecialPerformance implements Entity { ...@@ -103,7 +121,10 @@ public class SpecialPerformance implements Entity {
&& (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime())) && (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime()))
&& (this.getItemEndInterval() == null ? other.getItemEndInterval() == null : this.getItemEndInterval().equals(other.getItemEndInterval())) && (this.getItemEndInterval() == null ? other.getItemEndInterval() == null : this.getItemEndInterval().equals(other.getItemEndInterval()))
&& (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType())) && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
&& (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState())); && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
&& (this.getVideoAppId() == null ? other.getVideoAppId() == null : this.getVideoAppId().equals(other.getVideoAppId()))
&& (this.getVideoId() == null ? other.getVideoId() == null : this.getVideoId().equals(other.getVideoId()))
&& (this.getVideoTitle() == null ? other.getVideoTitle() == null : this.getVideoTitle().equals(other.getVideoTitle()));
} }
@Override @Override
...@@ -120,6 +141,9 @@ public class SpecialPerformance implements Entity { ...@@ -120,6 +141,9 @@ public class SpecialPerformance implements Entity {
result = prime * result + ((getItemEndInterval() == null) ? 0 : getItemEndInterval().hashCode()); result = prime * result + ((getItemEndInterval() == null) ? 0 : getItemEndInterval().hashCode());
result = prime * result + ((getType() == null) ? 0 : getType().hashCode()); result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
result = prime * result + ((getState() == null) ? 0 : getState().hashCode()); result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
result = prime * result + ((getVideoAppId() == null) ? 0 : getVideoAppId().hashCode());
result = prime * result + ((getVideoId() == null) ? 0 : getVideoId().hashCode());
result = prime * result + ((getVideoTitle() == null) ? 0 : getVideoTitle().hashCode());
return result; return result;
} }
...@@ -140,7 +164,10 @@ public class SpecialPerformance implements Entity { ...@@ -140,7 +164,10 @@ public class SpecialPerformance implements Entity {
endTime("end_time", "endTime", "TIMESTAMP", false), endTime("end_time", "endTime", "TIMESTAMP", false),
itemEndInterval("item_end_interval", "itemEndInterval", "DOUBLE", false), itemEndInterval("item_end_interval", "itemEndInterval", "DOUBLE", false),
type("type", "type", "INTEGER", true), type("type", "type", "INTEGER", true),
state("state", "state", "INTEGER", true); state("state", "state", "INTEGER", true),
videoAppId("video_app_id", "videoAppId", "VARCHAR", false),
videoId("video_id", "videoId", "VARCHAR", false),
videoTitle("video_title", "videoTitle", "VARCHAR", false);
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
......
...@@ -1487,6 +1487,432 @@ public class SpecialPerformanceExample { ...@@ -1487,6 +1487,432 @@ public class SpecialPerformanceExample {
addCriterion("`state` not between", value1, value2, "state"); addCriterion("`state` not between", value1, value2, "state");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andVideoAppIdIsNull() {
addCriterion("video_app_id is null");
return (Criteria) this;
}
public Criteria andVideoAppIdIsNotNull() {
addCriterion("video_app_id is not null");
return (Criteria) this;
}
public Criteria andVideoAppIdEqualTo(String value) {
addCriterion("video_app_id =", value, "videoAppId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVideoAppIdEqualToColumn(SpecialPerformance.Column column) {
addCriterion(new StringBuilder("video_app_id = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVideoAppIdNotEqualTo(String value) {
addCriterion("video_app_id <>", value, "videoAppId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVideoAppIdNotEqualToColumn(SpecialPerformance.Column column) {
addCriterion(new StringBuilder("video_app_id <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVideoAppIdGreaterThan(String value) {
addCriterion("video_app_id >", value, "videoAppId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVideoAppIdGreaterThanColumn(SpecialPerformance.Column column) {
addCriterion(new StringBuilder("video_app_id > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVideoAppIdGreaterThanOrEqualTo(String value) {
addCriterion("video_app_id >=", value, "videoAppId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVideoAppIdGreaterThanOrEqualToColumn(SpecialPerformance.Column column) {
addCriterion(new StringBuilder("video_app_id >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVideoAppIdLessThan(String value) {
addCriterion("video_app_id <", value, "videoAppId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVideoAppIdLessThanColumn(SpecialPerformance.Column column) {
addCriterion(new StringBuilder("video_app_id < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVideoAppIdLessThanOrEqualTo(String value) {
addCriterion("video_app_id <=", value, "videoAppId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVideoAppIdLessThanOrEqualToColumn(SpecialPerformance.Column column) {
addCriterion(new StringBuilder("video_app_id <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVideoAppIdLike(String value) {
addCriterion("video_app_id like", value, "videoAppId");
return (Criteria) this;
}
public Criteria andVideoAppIdNotLike(String value) {
addCriterion("video_app_id not like", value, "videoAppId");
return (Criteria) this;
}
public Criteria andVideoAppIdIn(List<String> values) {
addCriterion("video_app_id in", values, "videoAppId");
return (Criteria) this;
}
public Criteria andVideoAppIdNotIn(List<String> values) {
addCriterion("video_app_id not in", values, "videoAppId");
return (Criteria) this;
}
public Criteria andVideoAppIdBetween(String value1, String value2) {
addCriterion("video_app_id between", value1, value2, "videoAppId");
return (Criteria) this;
}
public Criteria andVideoAppIdNotBetween(String value1, String value2) {
addCriterion("video_app_id not between", value1, value2, "videoAppId");
return (Criteria) this;
}
public Criteria andVideoIdIsNull() {
addCriterion("video_id is null");
return (Criteria) this;
}
public Criteria andVideoIdIsNotNull() {
addCriterion("video_id is not null");
return (Criteria) this;
}
public Criteria andVideoIdEqualTo(String value) {
addCriterion("video_id =", value, "videoId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVideoIdEqualToColumn(SpecialPerformance.Column column) {
addCriterion(new StringBuilder("video_id = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVideoIdNotEqualTo(String value) {
addCriterion("video_id <>", value, "videoId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVideoIdNotEqualToColumn(SpecialPerformance.Column column) {
addCriterion(new StringBuilder("video_id <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVideoIdGreaterThan(String value) {
addCriterion("video_id >", value, "videoId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVideoIdGreaterThanColumn(SpecialPerformance.Column column) {
addCriterion(new StringBuilder("video_id > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVideoIdGreaterThanOrEqualTo(String value) {
addCriterion("video_id >=", value, "videoId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVideoIdGreaterThanOrEqualToColumn(SpecialPerformance.Column column) {
addCriterion(new StringBuilder("video_id >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVideoIdLessThan(String value) {
addCriterion("video_id <", value, "videoId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVideoIdLessThanColumn(SpecialPerformance.Column column) {
addCriterion(new StringBuilder("video_id < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVideoIdLessThanOrEqualTo(String value) {
addCriterion("video_id <=", value, "videoId");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVideoIdLessThanOrEqualToColumn(SpecialPerformance.Column column) {
addCriterion(new StringBuilder("video_id <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVideoIdLike(String value) {
addCriterion("video_id like", value, "videoId");
return (Criteria) this;
}
public Criteria andVideoIdNotLike(String value) {
addCriterion("video_id not like", value, "videoId");
return (Criteria) this;
}
public Criteria andVideoIdIn(List<String> values) {
addCriterion("video_id in", values, "videoId");
return (Criteria) this;
}
public Criteria andVideoIdNotIn(List<String> values) {
addCriterion("video_id not in", values, "videoId");
return (Criteria) this;
}
public Criteria andVideoIdBetween(String value1, String value2) {
addCriterion("video_id between", value1, value2, "videoId");
return (Criteria) this;
}
public Criteria andVideoIdNotBetween(String value1, String value2) {
addCriterion("video_id not between", value1, value2, "videoId");
return (Criteria) this;
}
public Criteria andVideoTitleIsNull() {
addCriterion("video_title is null");
return (Criteria) this;
}
public Criteria andVideoTitleIsNotNull() {
addCriterion("video_title is not null");
return (Criteria) this;
}
public Criteria andVideoTitleEqualTo(String value) {
addCriterion("video_title =", value, "videoTitle");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVideoTitleEqualToColumn(SpecialPerformance.Column column) {
addCriterion(new StringBuilder("video_title = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVideoTitleNotEqualTo(String value) {
addCriterion("video_title <>", value, "videoTitle");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVideoTitleNotEqualToColumn(SpecialPerformance.Column column) {
addCriterion(new StringBuilder("video_title <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVideoTitleGreaterThan(String value) {
addCriterion("video_title >", value, "videoTitle");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVideoTitleGreaterThanColumn(SpecialPerformance.Column column) {
addCriterion(new StringBuilder("video_title > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVideoTitleGreaterThanOrEqualTo(String value) {
addCriterion("video_title >=", value, "videoTitle");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVideoTitleGreaterThanOrEqualToColumn(SpecialPerformance.Column column) {
addCriterion(new StringBuilder("video_title >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVideoTitleLessThan(String value) {
addCriterion("video_title <", value, "videoTitle");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVideoTitleLessThanColumn(SpecialPerformance.Column column) {
addCriterion(new StringBuilder("video_title < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVideoTitleLessThanOrEqualTo(String value) {
addCriterion("video_title <=", value, "videoTitle");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table special_performance
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVideoTitleLessThanOrEqualToColumn(SpecialPerformance.Column column) {
addCriterion(new StringBuilder("video_title <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVideoTitleLike(String value) {
addCriterion("video_title like", value, "videoTitle");
return (Criteria) this;
}
public Criteria andVideoTitleNotLike(String value) {
addCriterion("video_title not like", value, "videoTitle");
return (Criteria) this;
}
public Criteria andVideoTitleIn(List<String> values) {
addCriterion("video_title in", values, "videoTitle");
return (Criteria) this;
}
public Criteria andVideoTitleNotIn(List<String> values) {
addCriterion("video_title not in", values, "videoTitle");
return (Criteria) this;
}
public Criteria andVideoTitleBetween(String value1, String value2) {
addCriterion("video_title between", value1, value2, "videoTitle");
return (Criteria) this;
}
public Criteria andVideoTitleNotBetween(String value1, String value2) {
addCriterion("video_title not between", value1, value2, "videoTitle");
return (Criteria) this;
}
} }
public static class Criteria extends GeneratedCriteria { public static class Criteria extends GeneratedCriteria {
......
...@@ -67,6 +67,22 @@ public class SpecialPerformanceRequestDto extends BaseRequestDto implements Enti ...@@ -67,6 +67,22 @@ public class SpecialPerformanceRequestDto extends BaseRequestDto implements Enti
private List<Integer> stateList; private List<Integer> stateList;
/**
* 视频号id
*/
private String videoAppId;
/**
* 视频id
*/
private String videoId;
/**
* 视频标题
*/
private String videoTitle;
/** /**
* 排除的状态 * 排除的状态
*/ */
......
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
<result column="item_end_interval" jdbcType="DOUBLE" property="itemEndInterval" /> <result column="item_end_interval" jdbcType="DOUBLE" property="itemEndInterval" />
<result column="type" jdbcType="INTEGER" property="type" /> <result column="type" jdbcType="INTEGER" property="type" />
<result column="state" jdbcType="INTEGER" property="state" /> <result column="state" jdbcType="INTEGER" property="state" />
<result column="video_app_id" jdbcType="VARCHAR" property="videoAppId" />
<result column="video_id" jdbcType="VARCHAR" property="videoId" />
<result column="video_title" jdbcType="VARCHAR" property="videoTitle" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<where> <where>
...@@ -73,7 +76,7 @@ ...@@ -73,7 +76,7 @@
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, title, background_image, create_time, update_time, start_time, end_time, item_end_interval, id, title, background_image, create_time, update_time, start_time, end_time, item_end_interval,
`type`, `state` `type`, `state`, video_app_id, video_id, video_title
</sql> </sql>
<select id="selectByExample" parameterType="com.wwdz.ch.db.domain.distribution.SpecialPerformanceExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.wwdz.ch.db.domain.distribution.SpecialPerformanceExample" resultMap="BaseResultMap">
select select
...@@ -109,7 +112,7 @@ ...@@ -109,7 +112,7 @@
</when> </when>
<otherwise> <otherwise>
id, title, background_image, create_time, update_time, start_time, end_time, item_end_interval, id, title, background_image, create_time, update_time, start_time, end_time, item_end_interval,
`type`, `state` `type`, `state`, video_app_id, video_id, video_title
</otherwise> </otherwise>
</choose> </choose>
from special_performance from special_performance
...@@ -141,7 +144,7 @@ ...@@ -141,7 +144,7 @@
</when> </when>
<otherwise> <otherwise>
id, title, background_image, create_time, update_time, start_time, end_time, item_end_interval, id, title, background_image, create_time, update_time, start_time, end_time, item_end_interval,
`type`, `state` `type`, `state`, video_app_id, video_id, video_title
</otherwise> </otherwise>
</choose> </choose>
from special_performance from special_performance
...@@ -163,11 +166,13 @@ ...@@ -163,11 +166,13 @@
</selectKey> </selectKey>
insert into special_performance (title, background_image, create_time, insert into special_performance (title, background_image, create_time,
update_time, start_time, end_time, update_time, start_time, end_time,
item_end_interval, `type`, `state` item_end_interval, `type`, `state`,
video_app_id, video_id, video_title
) )
values (#{title,jdbcType=VARCHAR}, #{backgroundImage,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, values (#{title,jdbcType=VARCHAR}, #{backgroundImage,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
#{itemEndInterval,jdbcType=DOUBLE}, #{type,jdbcType=INTEGER}, #{state,jdbcType=INTEGER} #{itemEndInterval,jdbcType=DOUBLE}, #{type,jdbcType=INTEGER}, #{state,jdbcType=INTEGER},
#{videoAppId,jdbcType=VARCHAR}, #{videoId,jdbcType=VARCHAR}, #{videoTitle,jdbcType=VARCHAR}
) )
</insert> </insert>
<insert id="insertSelective" parameterType="com.wwdz.ch.db.domain.distribution.SpecialPerformance"> <insert id="insertSelective" parameterType="com.wwdz.ch.db.domain.distribution.SpecialPerformance">
...@@ -203,6 +208,15 @@ ...@@ -203,6 +208,15 @@
<if test="state != null"> <if test="state != null">
`state`, `state`,
</if> </if>
<if test="videoAppId != null">
video_app_id,
</if>
<if test="videoId != null">
video_id,
</if>
<if test="videoTitle != null">
video_title,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null"> <if test="title != null">
...@@ -232,6 +246,15 @@ ...@@ -232,6 +246,15 @@
<if test="state != null"> <if test="state != null">
#{state,jdbcType=INTEGER}, #{state,jdbcType=INTEGER},
</if> </if>
<if test="videoAppId != null">
#{videoAppId,jdbcType=VARCHAR},
</if>
<if test="videoId != null">
#{videoId,jdbcType=VARCHAR},
</if>
<if test="videoTitle != null">
#{videoTitle,jdbcType=VARCHAR},
</if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="com.wwdz.ch.db.domain.distribution.SpecialPerformanceExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="com.wwdz.ch.db.domain.distribution.SpecialPerformanceExample" resultType="java.lang.Long">
...@@ -273,6 +296,15 @@ ...@@ -273,6 +296,15 @@
<if test="record.state != null"> <if test="record.state != null">
`state` = #{record.state,jdbcType=INTEGER}, `state` = #{record.state,jdbcType=INTEGER},
</if> </if>
<if test="record.videoAppId != null">
video_app_id = #{record.videoAppId,jdbcType=VARCHAR},
</if>
<if test="record.videoId != null">
video_id = #{record.videoId,jdbcType=VARCHAR},
</if>
<if test="record.videoTitle != null">
video_title = #{record.videoTitle,jdbcType=VARCHAR},
</if>
</set> </set>
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
...@@ -289,7 +321,10 @@ ...@@ -289,7 +321,10 @@
end_time = #{record.endTime,jdbcType=TIMESTAMP}, end_time = #{record.endTime,jdbcType=TIMESTAMP},
item_end_interval = #{record.itemEndInterval,jdbcType=DOUBLE}, item_end_interval = #{record.itemEndInterval,jdbcType=DOUBLE},
`type` = #{record.type,jdbcType=INTEGER}, `type` = #{record.type,jdbcType=INTEGER},
`state` = #{record.state,jdbcType=INTEGER} `state` = #{record.state,jdbcType=INTEGER},
video_app_id = #{record.videoAppId,jdbcType=VARCHAR},
video_id = #{record.videoId,jdbcType=VARCHAR},
video_title = #{record.videoTitle,jdbcType=VARCHAR}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
...@@ -324,6 +359,15 @@ ...@@ -324,6 +359,15 @@
<if test="state != null"> <if test="state != null">
`state` = #{state,jdbcType=INTEGER}, `state` = #{state,jdbcType=INTEGER},
</if> </if>
<if test="videoAppId != null">
video_app_id = #{videoAppId,jdbcType=VARCHAR},
</if>
<if test="videoId != null">
video_id = #{videoId,jdbcType=VARCHAR},
</if>
<if test="videoTitle != null">
video_title = #{videoTitle,jdbcType=VARCHAR},
</if>
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
...@@ -337,7 +381,10 @@ ...@@ -337,7 +381,10 @@
end_time = #{endTime,jdbcType=TIMESTAMP}, end_time = #{endTime,jdbcType=TIMESTAMP},
item_end_interval = #{itemEndInterval,jdbcType=DOUBLE}, item_end_interval = #{itemEndInterval,jdbcType=DOUBLE},
`type` = #{type,jdbcType=INTEGER}, `type` = #{type,jdbcType=INTEGER},
`state` = #{state,jdbcType=INTEGER} `state` = #{state,jdbcType=INTEGER},
video_app_id = #{videoAppId,jdbcType=VARCHAR},
video_id = #{videoId,jdbcType=VARCHAR},
video_title = #{videoTitle,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
<select id="selectOneByExample" parameterType="com.wwdz.ch.db.domain.distribution.SpecialPerformanceExample" resultMap="BaseResultMap"> <select id="selectOneByExample" parameterType="com.wwdz.ch.db.domain.distribution.SpecialPerformanceExample" resultMap="BaseResultMap">
...@@ -374,7 +421,7 @@ ...@@ -374,7 +421,7 @@
</when> </when>
<otherwise> <otherwise>
id, title, background_image, create_time, update_time, start_time, end_time, item_end_interval, id, title, background_image, create_time, update_time, start_time, end_time, item_end_interval,
`type`, `state` `type`, `state`, video_app_id, video_id, video_title
</otherwise> </otherwise>
</choose> </choose>
from special_performance from special_performance
...@@ -386,5 +433,4 @@ ...@@ -386,5 +433,4 @@
</if> </if>
limit 1 limit 1
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -63,16 +63,16 @@ ...@@ -63,16 +63,16 @@
<!--生成Model类存放位置--> <!--生成Model类存放位置-->
<javaModelGenerator targetPackage="com.wwdz.ch.db.domain.openShop" targetProject="ch-dao/src/main/java"> <javaModelGenerator targetPackage="com.wwdz.ch.db.domain.distribution" targetProject="ch-dao/src/main/java">
<property name="enableSubPackages" value="true"/> <property name="enableSubPackages" value="true"/>
<property name="trimStrings" value="true"/> <property name="trimStrings" value="true"/>
</javaModelGenerator> </javaModelGenerator>
<sqlMapGenerator targetPackage="com.wwdz.ch.db.mapper.openShop" targetProject="ch-dao/src/main/resources"/> <sqlMapGenerator targetPackage="com.wwdz.ch.db.mapper.distribution" targetProject="ch-dao/src/main/resources"/>
<javaClientGenerator type="XMLMAPPER" targetPackage="com.wwdz.ch.db.mapper.openShop" <javaClientGenerator type="XMLMAPPER" targetPackage="com.wwdz.ch.db.mapper.distribution"
targetProject="ch-dao/src/main/java"/> targetProject="ch-dao/src/main/java"/>
<table tableName="open_shop_cost_config" enableCountByExample="true" enableUpdateByExample="true" enableDeleteByExample="true" enableSelectByExample="true" selectByExampleQueryId="true"> <table tableName="special_performance" enableCountByExample="true" enableUpdateByExample="true" enableDeleteByExample="true" enableSelectByExample="true" selectByExampleQueryId="true">
<generatedKey column="id" sqlStatement="Mysql" identity="true" /> <generatedKey column="id" sqlStatement="Mysql" identity="true" />
</table> </table>
......
...@@ -483,6 +483,10 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService ...@@ -483,6 +483,10 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
resultMap.put("endTime", specialPerformance.getEndTime()); resultMap.put("endTime", specialPerformance.getEndTime());
resultMap.put("title", specialPerformance.getTitle()); resultMap.put("title", specialPerformance.getTitle());
resultMap.put("specialPerformanceId", specialPerformance.getId()); resultMap.put("specialPerformanceId", specialPerformance.getId());
//视频号链接
resultMap.put("videoAppId", specialPerformance.getVideoAppId());
resultMap.put("videoId", specialPerformance.getVideoId());
resultMap.put("videoTitle", specialPerformance.getVideoTitle());
//判断用户是否订阅过消息 //判断用户是否订阅过消息
if (dto.getUserId() != null) { if (dto.getUserId() != null) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment