| | |
| | | map.put("successCount", successCount); |
| | | |
| | | //获取待处理任务数量 |
| | | int planPendingTaskCount = planService.selectCount(new EntityWrapper<Plan>().eq("director", getUserId()).lt("settle",4)); |
| | | int planPendingTaskCount = planService.selectPendingTaskCount(getUserId()); |
| | | map.put("planPendingTaskCount", planPendingTaskCount); |
| | | int priOnlinePendingTaskCount = priOnline2Service.selectCount(new EntityWrapper<PriOnline2>().eq("member_id", getUserId()).lt("settle",2)); |
| | | map.put("priOnlinePendingTaskCount", priOnlinePendingTaskCount); |
| | |
| | | public interface PlanMapper extends BaseMapper<Plan> { |
| | | |
| | | Plan selectByUuid(@Param("hostId") Long hostId, @Param("uuid") String uuid); |
| | | Integer selectPendingTaskCount(@Param("director") Long director); |
| | | |
| | | Plan selectPlanByNewestUuid(@Param("hostId") Long hostId); |
| | | |
| | |
| | | public interface PlanService extends IService<Plan> { |
| | | |
| | | Plan selectByUuid(Long hostId, String uuid); |
| | | Integer selectPendingTaskCount(Long director); |
| | | |
| | | String getUuid(Long hostId); |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Integer selectPendingTaskCount(Long director) { |
| | | return this.baseMapper.selectPendingTaskCount(director); |
| | | } |
| | | |
| | | @Override |
| | | public String getUuid(Long hostId) { |
| | | String uuid = null; |
| | | int times = 0; |
| | |
| | | ORDER BY mp.update_time DESC,mp.create_time DESC |
| | | </select> |
| | | |
| | | <select id="selectPendingTaskCount" resultType="java.lang.Integer"> |
| | | select count(1) from man_plan |
| | | where 1=1 |
| | | and director = #{director} |
| | | and settle < settle_size |
| | | </select> |
| | | |
| | | </mapper> |