Commit 07bc5910 by 吕明尚

门店用户关系表增加短信和公众号控制

parent ced29ffd
......@@ -23,5 +23,9 @@ public class SStoreConsumer {
//门控 是否接收短信
private Integer gating;
//是否接收短信
private Integer textMessage;
//是否接收公众号
private Integer officialAccount;
}
......@@ -14,11 +14,19 @@ public class SStoreConsumerVo {
*/
private Long consumerId;
//电控 是否接收公众号
private Integer controller;
//门控 是否接收短信
private Integer gating;
private Integer position;
//是否接收短信
private Integer textMessage;
//是否接收公众号
private Integer officialAccount;
private Long[] consumerIds;
}
......@@ -10,11 +10,15 @@
<result property="position" column="position"/>
<result property="gating" column="gating"/>
<result property="controller" column="controller"/>
<result property="textMessage" column="text_message"/>
<result property="officialAccount" column="official_account"/>
</resultMap>
<update id="updateBySStoreConsumer">
update s_store_consumer
set controller = #{controller},
gating = #{gating}
gating = #{gating},
text_message = #{textMessage},
official_account = #{officialAccount}
where store_id = #{storeId}
and consumer_id = #{consumerId}
and position = #{position}
......@@ -36,7 +40,7 @@
</if>
</select>
<select id="queryByConsumerId" resultMap="SStoreConsumerResult">
select store_id, consumer_id, position
select store_id, consumer_id, position, text_message, official_account
from s_store_consumer
where consumer_id = #{consumerId}
</select>
......@@ -59,7 +63,9 @@
t1.create_time,
t1.last_login_time,
t2.gating,
t2.controller
t2.controller,
t2.text_message,
t2.official_account
from s_consumer t1
left join s_store_consumer t2 on t2.consumer_id = t1.id
where t1.role_type = '1'
......
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