提交 c5b0f517 作者: 刘明祎-运维用途

Merge branch 'master' into develop

流水线 #8630 已通过 于阶段
in 3 分 2 秒
...@@ -110,6 +110,8 @@ public class RedisConstant { ...@@ -110,6 +110,8 @@ public class RedisConstant {
public final static String UAV_DUMMY_DATA="UAV_DUMMY_DATA_KEY"; public final static String UAV_DUMMY_DATA="UAV_DUMMY_DATA_KEY";
public final static String VOTE = "VOTE"; public final static String VOTE = "VOTE";
// 点赞
public static final String USER_LIKE_DYNAMIC = "user_like_dynamic";
/** /**
* tagInfoAllot表的缓存key * tagInfoAllot表的缓存key
*/ */
......
...@@ -18,4 +18,4 @@ patches: ...@@ -18,4 +18,4 @@ patches:
images: images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG - name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly/ims newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly/ims
newTag: 7064818a4b785409a691208dac214465b161e849 newTag: fb68823598f8c074562d994f1835290fcebd7040
...@@ -205,8 +205,12 @@ public class DynamicServiceImpl implements DynamicService { ...@@ -205,8 +205,12 @@ public class DynamicServiceImpl implements DynamicService {
likeDAO.insertLike(userId, dynamicId); likeDAO.insertLike(userId, dynamicId);
dynamicDao.updateDynamicLikeCount(dynamicId, forumDynamicDO.getVersion()); dynamicDao.updateDynamicLikeCount(dynamicId, forumDynamicDO.getVersion());
dynamicDao.forumCount(forumDynamicDO.getUserAccountId()); dynamicDao.forumCount(forumDynamicDO.getUserAccountId());
String s = stringRedisTemplate.opsForValue().get(RedisConstant.USER_LIKE_DYNAMIC + dynamicId + ":" + userId);
if (s == null) {
stringRedisTemplate.opsForValue().set(RedisConstant.USER_LIKE_DYNAMIC + dynamicId + ":" + userId, "1");
userAppApi.changeUserPoints(request.getHeader(TokenConstant.TOKEN),request, 4); userAppApi.changeUserPoints(request.getHeader(TokenConstant.TOKEN),request, 4);
}
} else { } else {
likeDAO.deleteLike(userId, dynamicId); likeDAO.deleteLike(userId, dynamicId);
dynamicDao.updateSubDynamicLikeCount(dynamicId, forumDynamicDO.getVersion()); dynamicDao.updateSubDynamicLikeCount(dynamicId, forumDynamicDO.getVersion());
......
...@@ -85,9 +85,9 @@ ...@@ -85,9 +85,9 @@
and ( and (
<choose> <choose>
<when test="isPilotOrder == 0"> <when test="isPilotOrder == 0">
-- 当时发单的时候要是看到的是总订单 -- -- 当时发单的时候要是看到的是总订单
ri.father_require_id = 0 -- ri.father_require_id = 0
and ri.user_account_id IN ri.user_account_id IN
</when> </when>
<when test="isPilotOrder == 1"> <when test="isPilotOrder == 1">
-- 接单接的是子订单就只能看到子订单 -- 接单接的是子订单就只能看到子订单
...@@ -99,10 +99,10 @@ ...@@ -99,10 +99,10 @@
</foreach> </foreach>
) )
</when> </when>
<otherwise> <!-- <otherwise>-->
<!-- 剩下就是admin用户就是要查出所用接单发单就行 只要主订单--> <!-- &lt;!&ndash; 剩下就是admin用户就是要查出所用接单发单就行 只要主订单&ndash;&gt;-->
and ri.father_require_id = 0 <!-- and ri.father_require_id = 0-->
</otherwise> <!-- </otherwise>-->
</choose> </choose>
<if test="orderStatus != null and orderStatus!='' "> <if test="orderStatus != null and orderStatus!='' ">
and sf.order_status = #{orderStatus} and sf.order_status = #{orderStatus}
...@@ -139,9 +139,9 @@ ...@@ -139,9 +139,9 @@
and ( and (
<choose> <choose>
<when test="isPilotOrder == 0"> <when test="isPilotOrder == 0">
-- 当时发单的时候要是看到的是总订单 -- -- 当时发单的时候要是看到的是总订单
ri.father_require_id = 0 -- ri.father_require_id = 0
and ri.user_account_id IN ri.user_account_id IN
</when> </when>
<when test="isPilotOrder == 1"> <when test="isPilotOrder == 1">
-- 接单接的是子订单就只能看到子订单 -- 接单接的是子订单就只能看到子订单
...@@ -153,10 +153,10 @@ ...@@ -153,10 +153,10 @@
</foreach> </foreach>
) )
</when> </when>
<otherwise> <!-- <otherwise>-->
<!-- 剩下就是admin用户就是要查出所用接单发单就行 只要主订单--> <!-- &lt;!&ndash; 剩下就是admin用户就是要查出所用接单发单就行 只要主订单&ndash;&gt;-->
and ri.father_require_id = 0 <!-- and ri.father_require_id = 0-->
</otherwise> <!-- </otherwise>-->
</choose> </choose>
<if test="orderStatus != null and orderStatus!='' "> <if test="orderStatus != null and orderStatus!='' ">
and sf.order_status = #{orderStatus} and sf.order_status = #{orderStatus}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论