| | |
| | | import com.project.common.exception.base.BaseException; |
| | | import com.project.common.utils.SecurityUtils; |
| | | import com.project.common.utils.StringUtils; |
| | | import com.project.common.vo.KeyVal; |
| | | import com.project.enforce.domain.EnforceOrder; |
| | | import com.project.enforce.domain.bo.editBo.EnforceOrderBo; |
| | | import com.project.enforce.domain.bo.queryBo.EnforceOrderQueryBo; |
| | |
| | | public class EnforceOrderServiceImpl extends ServiceImpl<EnforceOrderMapper, EnforceOrder> implements IEnforceOrderService { |
| | | |
| | | private final ISysDeptService deptService; |
| | | private final EnforceOrderMapper orderMapper; |
| | | |
| | | |
| | | @Override//列表查询 |
| | |
| | | bo.setApplyDeptIds(deptService.getApplyDeptIdsByLoginUserId(loginUser.getUserId())); |
| | | |
| | | return this.baseMapper.selectCheckList(bo); |
| | | } |
| | | |
| | | @Override//信息公式列表 |
| | | public List<EnforceOrderVo> showList() |
| | | { |
| | | List<EnforceOrder> list = this.list(lq().eq(EnforceOrder::getIsShow, 1)); |
| | | return Convert.toList(EnforceOrderVo.class, list); |
| | | } |
| | | |
| | | @Override//id查询 |
| | |
| | | return this.removeByIds(ids); |
| | | } |
| | | |
| | | @Override//月度分布 |
| | | public List<KeyVal> getMonthCount(Long deptId) { |
| | | return orderMapper.getMonthCount(deptId); |
| | | } |
| | | |
| | | @Override//部门分布 |
| | | public List<KeyVal> getDeptCount(String yearMonth) |
| | | { |
| | | return orderMapper.getDeptCount(yearMonth); |
| | | } |
| | | |
| | | |
| | | //------------------------------------------------------------------------------------- |
| | | |
| | |
| | | qw.eq(bo.getApplyDeptId() != null, "apply_dept_id", bo.getApplyDeptId()); |
| | | qw.like(StringUtils.isNotEmpty(bo.getApplyDeptName()), "apply_dept_name", bo.getApplyDeptName()); |
| | | qw.eq(bo.getApplyTime() != null, "apply_time", bo.getApplyTime()); |
| | | qw.eq(bo.getPlanTime() != null, "plan_time", bo.getPlanTime()); |
| | | qw.eq(bo.getUserNum() != null, "user_num", bo.getUserNum()); |
| | | qw.eq(bo.getWarnStatus() != null, "warn_status", bo.getWarnStatus()); |
| | | qw.eq(StringUtils.isNotEmpty(bo.getWarnReason()), "warn_reason", bo.getWarnReason()); |