Commit 4636191d by guanchen

BUG修复

parent 1938e23d
...@@ -57,6 +57,7 @@ public class UserController { ...@@ -57,6 +57,7 @@ public class UserController {
public Result<String> updateRelation(@PathVariable("from") String from, @PathVariable("to") String to, @PathVariable("type") int type) { public Result<String> updateRelation(@PathVariable("from") String from, @PathVariable("to") String to, @PathVariable("type") int type) {
userManager.updateRelation(from, to, type); userManager.updateRelation(from, to, type);
logger.info("============>" + Thread.currentThread().getName()); logger.info("============>" + Thread.currentThread().getName());
logger.info("============>from{}, to{}, type{}", from, to, type );
Result<String> result = new Result<String>(); Result<String> result = new Result<String>();
result.setData("异步,正在执行更新新......"); result.setData("异步,正在执行更新新......");
return result; return result;
......
...@@ -102,7 +102,7 @@ mybatis-plus: ...@@ -102,7 +102,7 @@ mybatis-plus:
logging: logging:
level: level:
#打印SQL信息 #打印SQL信息
com.lanren.huhu.partner.dao: info com.lanren.huhu.partner.dao: debug
......
...@@ -504,9 +504,9 @@ ...@@ -504,9 +504,9 @@
SET a.invite_user_id = ( SET a.invite_user_id = (
SELECT a.user_id SELECT a.user_id
FROM partner_account a JOIN user_info b ON a.user_id=b.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> </update>
<select id="getPartnerAccountByPhone" resultMap="BaseResultMap"> <select id="getPartnerAccountByPhone" resultMap="BaseResultMap">
SELECT a.* SELECT a.*
......
...@@ -590,12 +590,12 @@ ...@@ -590,12 +590,12 @@
</insert> </insert>
<update id="updatePingtuiRelation"> <update id="updatePingtuiRelation">
UPDATE user_agent UPDATE user_agent
SET presenter_id=(SELECT agent_id FROM user_agent WHERE agent_phone='#{to}') SET presenter_id=(SELECT agent_id FROM user_agent WHERE agent_phone=#{to})
WHERE agent_phone='#{from}' WHERE agent_phone=#{from}
</update> </update>
<update id="updateCengjiRelation"> <update id="updateCengjiRelation">
UPDATE user_agent UPDATE user_agent
SET parent_agent_id=(SELECT agent_id FROM user_agent WHERE agent_phone='#{to}') SET parent_agent_id=(SELECT agent_id FROM user_agent WHERE agent_phone=#{to})
WHERE agent_phone='#{from}' WHERE agent_phone=#{from}
</update> </update>
</mapper> </mapper>
\ No newline at end of file
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