Browse Source

修改跟进接口

anderx 1 year ago
parent
commit
ff51fc0120

+ 2 - 0
src/main/java/com/goafanti/common/dao/RestrictProjectMapper.java

@@ -33,4 +33,6 @@ public interface RestrictProjectMapper {
     List<OutRestrictProject> selectByUid(String id);
 
     void updateRelease(List<Integer> list2);
+
+    void updateRefreshLockTime(String uid, String pid, String aid);
 }

+ 4 - 0
src/main/java/com/goafanti/common/mapper/RestrictProjectMapper.xml

@@ -177,4 +177,8 @@
             #{item}
         </foreach>
     </update>
+    <update id="updateRefreshLockTime">
+        update restrict_project set lock_time = now(),last_follow_time = now()
+        where uid = #{uid,jdbcType=VARCHAR} and pid = #{pid,jdbcType=VARCHAR} and aid = #{aid,jdbcType=VARCHAR}
+    </update>
 </mapper>

+ 3 - 1
src/main/java/com/goafanti/customer/service/impl/CustomerServiceImpl.java

@@ -110,6 +110,8 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
 	@Autowired
 	private AdminUserCountMapper adminUserCountMapper;
 	@Autowired
+	private RestrictProjectMapper restProjectMapper;
+	@Autowired
 	private	AsyncUtils asyncUtils;
 
 
@@ -889,7 +891,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
 				// 更新业务中间表
 				addUserFollowBusiness(userFollowBusiness, ubId, ub, ufbId, followId);
 			}
-
+			restProjectMapper.updateRefreshLockTime(fbb.getUid(),ub.getBusinessProjectId(),TokenManager.getAdminId());
 		}
 	}