Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
huhu-partner
Project
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guanchen
huhu-partner
Commits
4636191d
Commit
4636191d
authored
Jul 22, 2019
by
guanchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG修复
parent
1938e23d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
UserController.java
...va/com/lanren/huhu/partner/controller/UserController.java
+1
-0
application.yml
src/main/resources/application.yml
+1
-1
PartnerAccountMapper.xml
src/main/resources/mapper/PartnerAccountMapper.xml
+2
-2
UserAgentMapper.xml
src/main/resources/mapper/UserAgentMapper.xml
+5
-4
No files found.
src/main/java/com/lanren/huhu/partner/controller/UserController.java
View file @
4636191d
...
...
@@ -57,6 +57,7 @@ public class UserController {
public
Result
<
String
>
updateRelation
(
@PathVariable
(
"from"
)
String
from
,
@PathVariable
(
"to"
)
String
to
,
@PathVariable
(
"type"
)
int
type
)
{
userManager
.
updateRelation
(
from
,
to
,
type
);
logger
.
info
(
"============>"
+
Thread
.
currentThread
().
getName
());
logger
.
info
(
"============>from{}, to{}, type{}"
,
from
,
to
,
type
);
Result
<
String
>
result
=
new
Result
<
String
>();
result
.
setData
(
"异步,正在执行更新新......"
);
return
result
;
...
...
src/main/resources/application.yml
View file @
4636191d
...
...
@@ -102,7 +102,7 @@ mybatis-plus:
logging
:
level
:
#打印SQL信息
com.lanren.huhu.partner.dao
:
info
com.lanren.huhu.partner.dao
:
debug
...
...
src/main/resources/mapper/PartnerAccountMapper.xml
View file @
4636191d
...
...
@@ -504,9 +504,9 @@
SET a.invite_user_id = (
SELECT a.user_id
FROM partner_account a JOIN user_info b ON a.user_id=b.user_id
WHERE b.user_phone=
'#{to}'
WHERE b.user_phone=
#{to}
)
WHERE b.user_phone=
'#{from}'
WHERE b.user_phone=
#{from}
</update>
<select
id=
"getPartnerAccountByPhone"
resultMap=
"BaseResultMap"
>
SELECT a.*
...
...
src/main/resources/mapper/UserAgentMapper.xml
View file @
4636191d
...
...
@@ -590,12 +590,12 @@
</insert>
<update
id=
"updatePingtuiRelation"
>
UPDATE user_agent
SET presenter_id=(SELECT agent_id FROM user_agent WHERE agent_phone=
'#{to}'
)
WHERE agent_phone=
'#{from}'
SET presenter_id=(SELECT agent_id FROM user_agent WHERE agent_phone=
#{to}
)
WHERE agent_phone=
#{from}
</update>
<update
id=
"updateCengjiRelation"
>
UPDATE user_agent
SET parent_agent_id=(SELECT agent_id FROM user_agent WHERE agent_phone=
'#{to}'
)
WHERE agent_phone=
'#{from}'
SET parent_agent_id=(SELECT agent_id FROM user_agent WHERE agent_phone=
#{to}
)
WHERE agent_phone=
#{from}
</update>
</mapper>
\ No newline at end of file
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