|
|
|
@@ -24,12 +24,14 @@ |
|
|
|
<result column="is_expired" jdbcType="INTEGER" property="isExpired"/> |
|
|
|
<result column="use_img" jdbcType="INTEGER" property="useImg"/> |
|
|
|
<result column="img_detail" jdbcType="VARCHAR" property="imgDetail"/> |
|
|
|
<result column="send_msg" jdbcType="INTEGER" property="sendMsg"/> |
|
|
|
|
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`tenant_id`,`cover_img`,`title`,`sub_title`,`detail`,`html`,`person_limit`,`activity_start_time`,`activity_end_time`, |
|
|
|
`use_credit`,`credit`,`type`,`status`,`start_time`,`end_time`,`question`,`is_expired`,`create_time`,`update_time`,`use_img`,`img_detail` |
|
|
|
`use_credit`,`credit`,`type`,`status`,`start_time`,`end_time`,`question`,`is_expired`,`create_time`,`update_time`,`use_img`, |
|
|
|
`img_detail`,`send_msg` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
@@ -82,6 +84,10 @@ |
|
|
|
and `create_time` between #{starttime} and #{endtime} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != sendMsg "> |
|
|
|
and `send_msg` = #{sendMsg} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != ids "> |
|
|
|
and id in |
|
|
|
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> |
|
|
|
@@ -101,7 +107,9 @@ |
|
|
|
|
|
|
|
<select id="queryNotify" parameterType="com.iformall.domain.po.WxActivity" |
|
|
|
resultType="com.iformall.domain.po.WxActivity"> |
|
|
|
select id,title,activity_start_time,tenant_id from wx_activity where status=${status} and DATEDIFF(activity_start_time,now())=3 |
|
|
|
select id,title,activity_start_time,tenant_id from wx_activity |
|
|
|
where status=${status} |
|
|
|
and DATEDIFF(activity_start_time,now())=3 |
|
|
|
</select> |
|
|
|
|
|
|
|
<update id="activityExipred" parameterType="com.iformall.domain.po.WxActivity"> |
|
|
|
|