Commit f3779264 authored by 蔡镇泽's avatar 蔡镇泽

查询失能等级列表

parent b4a727fc
package com.hungraim.ltc.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel;
import com.hungraim.ltc.pojo.entity.eval.ChAprEmp;
import com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO;
import com.hungraim.ltc.pojo.vo.assessment.TaskGroupVO;
......@@ -89,6 +90,15 @@ public class TaskController {
}
/**
* 查询失能等级列表
*/
@RequestMapping("/cfgSrvDisableLevelList")
public Result<List<ChCfgSrvDisableLevel>> cfgSrvDisableLevelList() {
List<ChCfgSrvDisableLevel> list = taskService.cfgSrvDisableLevelList();
return Result.success(list);
}
/**
* 评定报告新增
*
* @param taskId 评定报告id
......
package com.hungraim.ltc.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
/**
* @author czz
*/
@Mapper
@Repository
public interface CfgSrvDisableLevelMapper extends BaseMapper<ChCfgSrvDisableLevel> {
}
package com.hungraim.ltc.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel;
import com.hungraim.ltc.pojo.entity.eval.ChAprEmp;
import com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO;
import com.hungraim.ltc.pojo.vo.assessment.TaskGroupVO;
......@@ -61,4 +62,6 @@ public interface TaskService {
List<TaskGroupVO> taskGroupList(String name, String certiCode, String tel);
Result<Object> taskGroup(Integer pushId, Integer status);
List<ChCfgSrvDisableLevel> cfgSrvDisableLevelList();
}
......@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hungraim.ltc.dao.*;
import com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel;
import com.hungraim.ltc.pojo.entity.eval.*;
import com.hungraim.ltc.pojo.vo.assessment.TaskDistributionVO;
import com.hungraim.ltc.pojo.vo.assessment.TaskGroupVO;
......@@ -36,6 +37,8 @@ public class TaskServiceImpl implements TaskService {
private AprPeronInfoMapper peronInfoMapper;
@Autowired
private TaskPushMapper taskPushMapper;
@Autowired
private CfgSrvDisableLevelMapper cfgSrvDisableLevelMapper;
@Override
public IPage<TaskDistributionVO> taskDistributionList(String organId, String provincial, String city,
......@@ -186,4 +189,9 @@ public class TaskServiceImpl implements TaskService {
taskPushMapper.updateById(chAprTaskPush);
return Result.success();
}
@Override
public List<ChCfgSrvDisableLevel> cfgSrvDisableLevelList() {
return cfgSrvDisableLevelMapper.selectList(new QueryWrapper<>());
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment