|
@@ -197,8 +197,8 @@
|
|
|
|
|
|
|
|
|
<insert id="saveProduce" parameterType="Produce" useGeneratedKeys="true" keyProperty="produceId">
|
|
|
- insert into tb_rst_pts_produce (produce_id,produce_no,produce_name,produce_status,produce_remake,produce_type,produce_pattern,produce_model,produce_feature)
|
|
|
- values (#{produceId},#{produceNo},#{produceName},#{produceStatus},#{produceRemake},#{produceType},#{producePattern},#{produceModel},#{produceFeature})
|
|
|
+ insert into tb_rst_pts_produce (produce_id,produce_no,produce_name,produce_status,produce_remake,produce_type,produce_pattern,produce_model,produce_feature,wechat_mp_id)
|
|
|
+ values (#{produceId},#{produceNo},#{produceName},#{produceStatus},#{produceRemake},#{produceType},#{producePattern},#{produceModel},#{produceFeature},#{wechatMpId})
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateProduce" parameterType="Produce" >
|
|
@@ -226,7 +226,10 @@
|
|
|
produce_feature = #{produceFeature},
|
|
|
</if>
|
|
|
<if test="produceRemake !=null and produceRemake !=''">
|
|
|
- produce_remake = #{produceRemake}
|
|
|
+ produce_remake = #{produceRemake},
|
|
|
+ </if>
|
|
|
+ <if test="wechatMpId !=null and wechatMpId !=''">
|
|
|
+ wechat_mp_id = #{wechatMpId}
|
|
|
</if>
|
|
|
</set>
|
|
|
WHERE
|
|
@@ -492,4 +495,14 @@
|
|
|
wechat_mp_pubno AS wechatMpPubno
|
|
|
from tb_rst_pts_wechat_mp where wechat_mp_id = #{0}
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="listWechatMp" resultType="WechatMp">
|
|
|
+ SELECT
|
|
|
+ wechat_mp_id AS wechatMpId,
|
|
|
+ wechat_mp_appid AS wechatMpAppid,
|
|
|
+ wechat_mp_appsecret AS wechatMpAppsecret,
|
|
|
+ wechat_mp_name AS wechatMpName,
|
|
|
+ wechat_mp_pubno AS wechatMpPubno
|
|
|
+ from tb_rst_pts_wechat_mp
|
|
|
+ </select>
|
|
|
</mapper>
|