Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_ht
Commits
07bc5910
Commit
07bc5910
authored
Aug 29, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店用户关系表增加短信和公众号控制
parent
ced29ffd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
SStoreConsumer.java
...tem/src/main/java/share/system/domain/SStoreConsumer.java
+4
-0
SStoreConsumerVo.java
...rc/main/java/share/system/domain/vo/SStoreConsumerVo.java
+8
-0
SStoreConsumerMapper.xml
...src/main/resources/mapper/system/SStoreConsumerMapper.xml
+9
-3
No files found.
share-system/src/main/java/share/system/domain/SStoreConsumer.java
View file @
07bc5910
...
...
@@ -23,5 +23,9 @@ public class SStoreConsumer {
//门控 是否接收短信
private
Integer
gating
;
//是否接收短信
private
Integer
textMessage
;
//是否接收公众号
private
Integer
officialAccount
;
}
share-system/src/main/java/share/system/domain/vo/SStoreConsumerVo.java
View file @
07bc5910
...
...
@@ -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
;
}
share-system/src/main/resources/mapper/system/SStoreConsumerMapper.xml
View file @
07bc5910
...
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment