task test

This commit is contained in:
杜建超 2020-10-28 10:48:24 +08:00
parent 57d9fcefe2
commit 7546eb5ef4
4 changed files with 17 additions and 3 deletions

View File

@ -29,7 +29,7 @@ public class UserTaskController extends AbstractController{
@ApiOperation("获取待办/处理事项")
@ApiResponses({@ApiResponse(code = 200,message = "成功",response = TaskListRes.class)})
public R list(@RequestBody @ApiParam(name = "body",value = "body请求体",required = true) AssessTaskReq req){
PageUtils pageUtils = assessService.userTaskList(req, getUserId());
PageUtils pageUtils = assessService.userTaskList(req, 313L);
return R.ok().put("data",pageUtils);
}
}

View File

@ -142,8 +142,8 @@ public class AssessManagerServiceImpl implements AssessManagerService {
}
if(req.getChangeType() == 1){
resultRecordMapper.batchDeleteByStartIdAndStaffId(req.getStartId(),change);
return ok;
}
return ok;

View File

@ -88,4 +88,6 @@ public interface ResultRecordMapper extends BaseMapper<ResultRecord> {
List<AssessManagerDetailRes> selectAssessListByStartId(@Param("page") IPage page, @Param("req")AssessDetailReq req);
List<ChartStatistical> countAssessNumByFlowProcess(@Param("req")AssessDetailReq req);
void batchDeleteByStartIdAndStaffId(@Param("startId")Long startId,@Param("staffIds") List<String> staffIds);
}

View File

@ -449,5 +449,17 @@
GROUP BY flow_process
</select>
<update id="batchDeleteByStartIdAndStaffId">
update lz_result_record set is_delete = 1 where
is_delete = 0
and start_id = #{startId}
and staff_id in (
<foreach collection="staffIds" item="staff_id" separator=",">
#{staff_id}
</foreach>
)
</update>
</mapper>