diff --git a/fw-valhalla-dao/src/main/resources/mapper/ClueTaskMapper.xml b/fw-valhalla-dao/src/main/resources/mapper/ClueTaskMapper.xml index 97d9bba..746970e 100644 --- a/fw-valhalla-dao/src/main/resources/mapper/ClueTaskMapper.xml +++ b/fw-valhalla-dao/src/main/resources/mapper/ClueTaskMapper.xml @@ -211,7 +211,8 @@ - and t1.follow_user = #{condition.userId} + and (t1.follow_user = #{condition.userId} + or t1.finish_user = #{condition.userId}) and DATE(t1.close_time) BETWEEN DATE(from_unixtime(#{condition.startTime})) AND DATE(from_unixtime(#{condition.endTime})) diff --git a/fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/follow/FollowApiBizService.kt b/fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/follow/FollowApiBizService.kt index 59eeb26..32d16bb 100644 --- a/fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/follow/FollowApiBizService.kt +++ b/fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/follow/FollowApiBizService.kt @@ -83,7 +83,7 @@ class FollowApiBizService( followTypeEnum.value ) val dtoList = clueTaskService.queryShouldBeCompleted(search) - return dtoList.map { + val resultList = dtoList.map { ShouldBeCompletedResult( it.vin, it.userId, @@ -92,6 +92,10 @@ class FollowApiBizService( it.state ) } + if (Objects.nonNull(query.userId)) { + return resultList.filter { it.userId == query.userId } + } + return resultList } fun queryAccidentFollowerByPlate(plateNo: String, groupId: Long): ClueTask? {