完成小程序消息订阅

This commit is contained in:
huangdeliang
2021-05-18 14:02:56 +08:00
parent 2e83c4be3c
commit 55a7e5e54f
22 changed files with 231 additions and 658 deletions

View File

@ -23,6 +23,8 @@
<result property="cusId" column="cus_id"/>
<result property="outId" column="out_id"/>
<result property="subscribed" column="subscribed"/>
<result property="subSend" column="sub_send"/>
<result property="smsSend" column="sms_send"/>
<!-- 非持久化字段 -->
<!-- <result property="customerId" column="cus_id"></result>&lt;!&ndash; 客户ID &ndash;&gt;-->
<result property="customer" column="customer"/><!-- 客户姓名 -->
@ -38,7 +40,7 @@
<sql id="selectSysRecipesPlanVo">
select id, order_id, cus_id, out_id, start_date, end_date, start_num_day, end_num_day, recipes_id, send_flag, send_time, pause_date, create_time, create_by, update_time, update_by, del_flag, review_status from sys_recipes_plan
select id, order_id, cus_id, out_id, start_date, end_date, start_num_day, end_num_day, recipes_id, send_flag, send_time, pause_date, create_time, create_by, update_time, update_by, del_flag, review_status, sub_send, sms_send from sys_recipes_plan
</sql>
<select id="selectSysRecipesPlanList" parameterType="SysRecipesPlan" resultMap="SysRecipesPlanResult">
@ -137,6 +139,8 @@
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="reviewStatus != null">review_status = #{reviewStatus},</if>
<if test="subscribed != null">subscribed = #{subscribed},</if>
<if test="subSend != null">sub_send = #{subSend},</if>
<if test="smsSend != null">sms_send = #{smsSend},</if>
</trim>
where id = #{id} and del_flag = 0
</update>

View File

@ -10,8 +10,8 @@
<result property="openid" column="openid"/>
<result property="sendTime" column="send_time"/>
<result property="planId" column="plan_id"/>
<result property="errcode" column="errcode"/>
<result property="errmsg" column="errmsg"/>
<result property="phone" column="phone"/>
<result property="result" column="result" typeHandler="com.stdiet.custom.typehandler.ObjectJsonHandler"/>
<result property="data" column="data" typeHandler="com.stdiet.custom.typehandler.ObjectJsonHandler"/>
</resultMap>
@ -22,18 +22,20 @@
<if test="openid != null">openid,</if>
<if test="planId != null">plan_id,</if>
<if test="sendTime != null">send_time,</if>
<if test="errcode != null">errcode,</if>
<if test="errmsg != null">errmsg,</if>
<if test="result != null">result,</if>
<if test="phone != null">phone,</if>
<if test="data != null">data,</if>
<if test="type != null">type,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="appid != null">#{appid},</if>
<if test="openid != null">#{openid},</if>
<if test="planId != null">#{planId},</if>
<if test="sendTime != null">#{sendTime},</if>
<if test="errcode != null">#{errcode},</if>
<if test="errmsg != null">#{errmsg},</if>
<if test="result != null">#{result, jdbcType=OTHER, typeHandler=com.stdiet.custom.typehandler.ObjectJsonHandler},</if>
<if test="phone != null">#{phone},</if>
<if test="data != null">#{data, jdbcType=OTHER, typeHandler=com.stdiet.custom.typehandler.ObjectJsonHandler},</if>
<if test="type != null">#{type},</if>
</trim>
</insert>
@ -45,8 +47,8 @@
<if test="openid != null">AND openid = #{openid}</if>
<if test="appid != null">AND appid = #{appid}</if>
<if test="planId != null">AND plan_id = #{planId}</if>
<if test="planId != null">AND plan_id = #{planId}</if>
<if test="errcode != null">AND errcode = #{errcode}</if>
<if test="phone != null">AND phone = #{phone}</if>
<if test="type != null">AND type = #{type}</if>
</where>
</select>

View File

@ -46,7 +46,7 @@
order by wxuser.update_time desc
</select>
<select id="selectSysWxUserInfoByCusId" parameterType="String" resultMap="SysWxUserInfoResult">
<select id="selectSysWxUserInfoByCusId" parameterType="Long" resultMap="SysWxUserInfoResult">
<include refid="selectSysWxUserInfoVo"/>
where cus_id = #{cusId}
</select>