| | |
| | | import com.doumee.dao.business.model.PlatformJob; |
| | | import com.doumee.dao.business.model.PlatformShowParam; |
| | | import com.doumee.dao.web.reqeust.PlatformDataDTO; |
| | | import com.doumee.dao.web.response.PlatformGroupWorkVO; |
| | | import com.doumee.dao.web.response.PlatformWorkVO; |
| | | import com.doumee.service.business.PlatformGroupService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | |
| | | |
| | | |
| | | |
| | | @Override |
| | | public PlatformGroupWorkVO getPlatformGroupWork(Integer platformGroupId){ |
| | | PlatformGroupWorkVO platformGroupWorkVO = new PlatformGroupWorkVO(); |
| | | platformGroupWorkVO.setExceptionNum(platformJobJoinMapper.selectCount(new QueryWrapper<PlatformJob>().lambda() |
| | | .eq(PlatformJob::getPlatformGroupId,platformGroupId) |
| | | .eq(PlatformJob::getStatus,Constants.PlatformJobStatus.EXCEPTION.getKey()) |
| | | ) |
| | | ); |
| | | |
| | | platformGroupWorkVO.setWaitNum(platformJobJoinMapper.selectCount(new QueryWrapper<PlatformJob>().lambda() |
| | | .eq(PlatformJob::getPlatformGroupId,platformGroupId) |
| | | .in(PlatformJob::getStatus, |
| | | Constants.PlatformJobStatus.WAIT_CALL.getKey(), |
| | | Constants.PlatformJobStatus.IN_WAIT.getKey(), |
| | | Constants.PlatformJobStatus.CALLED.getKey() |
| | | |
| | | ) |
| | | ) |
| | | ); |
| | | return platformGroupWorkVO; |
| | | } |
| | | |
| | | |
| | | } |
| | | |