3254194295 2 жил өмнө
parent
commit
36f313f2f3

+ 2 - 0
platform-dao/src/main/java/com/platform/dao/mapper/workplace/WorkplaceBacklogUserMapper.java

@@ -35,4 +35,6 @@ public interface WorkplaceBacklogUserMapper extends MyMapper<WorkplaceBacklogUse
     WorkplaceBacklogUserVO selectUserById(WorkplaceBacklogUserDTO model);
 
     void updateByUser(WorkplaceBacklogUserDTO model);
+
+    Integer updateByPrimaryKeySelective1(WorkplaceBacklogUser workplaceBacklogUser);
 }

+ 22 - 1
platform-dao/src/main/resources/mapper/workplace/WorkplaceBacklogUserMapper.xml

@@ -69,11 +69,32 @@
                b.type             as type,
                b.other_id         as otherId,
                b.target_id        as targetId,
-               b.status
+               bu.status
         from t_workplace_backlog_user bu
                  left join t_workplace_backlog b on bu.backlog_id = b.id
         where bu.id = #{id}
         order by bu.created_time desc
     </select>
 
+    <select id="updateByPrimaryKeySelective1" parameterType="com.platform.dao.entity.workplace.WorkplaceBacklogUser"
+            resultType="int">
+        update t_workplace_backlog_user
+        set status=2
+        where 1=1
+        <if test="id!=null">
+            and id=#{id}
+        </if>
+        <if test="userId!=null">
+            and user_id=#{userId}
+        </if>
+        <if test="backlogId!=null">
+            and backlog_id=#{backlogId}
+        </if>
+        <if test="createdTime!=null">
+            and created_time=#{createdTime}
+        </if>
+
+
+    </select>
+
 </mapper>

+ 1 - 1
platform-service/src/main/java/com/platform/service/workplace/impl/WorkplaceBacklogServiceImpl.java

@@ -125,7 +125,7 @@ public class WorkplaceBacklogServiceImpl extends BaseServiceImpl<WorkplaceBacklo
         logUser = new WorkplaceBacklogUser();
         logUser.setId(userLogId);
         logUser.setStatus(WorkplaceBacklogStatusEnum.WORKPLACE_BACKLOG_STATUS_END.getValue());
-        workplaceBacklogUserMapper.updateByPrimaryKeySelective(logUser);
+        workplaceBacklogUserMapper.updateByPrimaryKeySelective1(logUser);
     }
 
     @Override