代码提交
This commit is contained in:
parent
1be419b046
commit
1f19a6d852
|
|
@ -50,6 +50,15 @@ public class PersonnelController extends BaseController {
|
|||
return AjaxResult.error("接口异常");
|
||||
}
|
||||
}
|
||||
@GetMapping("/getPersonnelClassificationSelect")
|
||||
public AjaxResult getPersonnelClassificationSelect(InspectionStationVo vo) {
|
||||
try {
|
||||
List<SelectDto> list = personnelService.getPersonnelClassificationSelect(vo.getCategory());
|
||||
return AjaxResult.success(list);
|
||||
} catch (Exception e) {
|
||||
return AjaxResult.error("接口异常");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增人员
|
||||
|
|
|
|||
|
|
@ -29,4 +29,6 @@ public interface PersonnelMapper {
|
|||
int updatePersonnel(PersonnelVo personnelVo);
|
||||
|
||||
List<SelectDto> getInspectionStationSelect(@Param("category") String category);
|
||||
|
||||
List<SelectDto> getPersonnelClassificationSelect(String category);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,4 +29,6 @@ public interface PersonnelService {
|
|||
int updatePersonnel(PersonnelVo personnelVo);
|
||||
|
||||
List<SelectDto> getInspectionStationSelect(String category);
|
||||
|
||||
List<SelectDto> getPersonnelClassificationSelect(String category);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -66,4 +66,9 @@ public class PersonnelServiceImpl implements PersonnelService {
|
|||
public List<SelectDto> getInspectionStationSelect(String category) {
|
||||
return personnelMapper.getInspectionStationSelect(category);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SelectDto> getPersonnelClassificationSelect(String category) {
|
||||
return personnelMapper.getPersonnelClassificationSelect(category);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -98,4 +98,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
inspection_station_name as value
|
||||
from tb_inspection_station where is_active = '1' and category = #{category}
|
||||
</select>
|
||||
<select id="getPersonnelClassificationSelect" resultType="com.bonus.digital.dao.SelectDto">
|
||||
select personnel_classification_id as id,
|
||||
personnel_classification_name as value
|
||||
from tb_personnel_classification where is_active = '1' and category = #{category}
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
Loading…
Reference in New Issue