| | |
| | | |
| | | @ApiOperation(value = "人åæç»å页æ¥è¯¢") |
| | | @GetMapping("basicInformationOfPersonnelSelectPage") |
| | | public Result<IPage<Map<String, Object>>> basicInformationOfPersonnelSelectPage(Page<List<PersonBasicInfoDetailsDto>> page, String name, Integer departmentId) { |
| | | public Result<IPage<Map<String, Object>>> basicInformationOfPersonnelSelectPage(Page page, String name, Integer departmentId) { |
| | | return Result.success(personBasicInfoService.basicInformationOfPersonnelSelectPage(page, name, departmentId)); |
| | | } |
| | | |
| | |
| | | @PostMapping("/saveCNASFile") |
| | | public Result saveFile(@RequestPart("file") MultipartFile file) { |
| | | String s = FileSaveUtil.uploadWordFile(file); |
| | | return Result.success("ä¸ä¼ æå", s); |
| | | return Result.success(s, "ä¸ä¼ æå"); |
| | | } |
| | | |
| | | @GetMapping("/getAnnexByUserId") |
| | |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "人åå¹è®åºæ¬ä¿¡æ¯éä»¶å é¤") |
| | | @GetMapping("/delBasicInfoFileList") |
| | | @DeleteMapping("/delBasicInfoFileList") |
| | | public Result delBasicInfoFileList(Integer basicInfoFileId){ |
| | | return Result.success(personBasicInfoFileService.removeById(basicInfoFileId)); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "人åå·¥ä½ç»åå é¤") |
| | | @GetMapping("/delBasicInfoWorkList") |
| | | @DeleteMapping("/delBasicInfoWorkList") |
| | | public Result delBasicInfoWorkList(Integer basicInfoWorkId){ |
| | | return Result.success(personBasicInfoWorkService.removeById(basicInfoWorkId)); |
| | | } |
| | |
| | | import com.ruoyi.common.core.domain.entity.DepartmentDto; |
| | | import com.ruoyi.personnel.dto.PersonBasicInfoDto; |
| | | import com.ruoyi.personnel.pojo.PersonBasicInfo; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | * @param departmentId |
| | | * @return |
| | | */ |
| | | IPage<Map<String, Object>> selectPersonBasecInfoAndUser(Page page, String name, Integer departmentId); |
| | | IPage<Map<String, Object>> selectPersonBasecInfoAndUser(Page page, @Param("name") String name, @Param("departmentId") Integer departmentId); |
| | | |
| | | /** |
| | | * å¯¼åºæ¥è¯¢äººåä¿¡æ¯ |
| | |
| | | public interface PersonTrainingDetailedMapper extends MyBaseMapper<PersonTrainingDetailed> { |
| | | |
| | | IPage<PersonTrainingDetailedDto> queryTheAnnualPlanDetailsTable(Page page, |
| | | String trainingLecturerName, |
| | | String courseCode, String trainingDate, |
| | | Integer id, |
| | | Integer userId, |
| | | Integer loginUserId); |
| | | @Param("trainingLecturerName") String trainingLecturerName, |
| | | @Param("courseCode") String courseCode, |
| | | @Param("trainingDate") String trainingDate, |
| | | @Param("id") Integer id, |
| | | @Param("userId") Integer userId, |
| | | @Param("loginUserId") Integer loginUserId); |
| | | |
| | | /** |
| | | * æ ¹æ®ä¸»è¡¨idæ¥è¯¢è¯¦æ
|
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.personnel.dto.PersonTrainingDto; |
| | | import com.ruoyi.personnel.pojo.PersonTraining; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | public interface PersonTrainingMapper extends BaseMapper<PersonTraining> { |
| | | |
| | | IPage<PersonTrainingDto> personTrainingSelect(Page page, String compilerName, String departLimsId); |
| | | IPage<PersonTrainingDto> personTrainingSelect(Page page, @Param("compilerName") String compilerName,@Param("departLimsId") String departLimsId); |
| | | } |
| | |
| | | */ |
| | | public interface PersonTrainingRecordMapper extends BaseMapper<PersonTrainingRecord> { |
| | | |
| | | List<PersonTrainingRecordDto> trainingAndAssessmentRecordsPage(Integer trainingDetailedId, String userName); |
| | | List<PersonTrainingRecordDto> trainingAndAssessmentRecordsPage(@Param("trainingDetailedId") Integer trainingDetailedId,@Param("userName") String userName); |
| | | |
| | | IPage<PersonTrainingRecordListDto> personnelTrainingPersonnel(Page page, String userName, Integer userId, Integer departLimsId); |
| | | |
| | |
| | | import com.ruoyi.personnel.dto.PersonTrainingDto; |
| | | import com.ruoyi.personnel.pojo.PersonTraining; |
| | | import com.ruoyi.personnel.pojo.PersonTrainingDetailed; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | public interface PersonTrainingService extends IService<PersonTraining> { |
| | | |
| | | IPage<PersonTrainingDto> personTrainingSelect(Page page, |
| | | String compilerName, String departmentId); |
| | | @Param("compilerName") String compilerName, @Param("departmentId") String departmentId); |
| | | |
| | | void personTrainingImport(MultipartFile file, PersonTraining training); |
| | | |
| | |
| | | cpbi.professional_title professionalTitle |
| | | from user u |
| | | left join cnas_person_basic_info cpbi on cpbi.user_id = u.id |
| | | left join user u1 on u1.id = u.create_user |
| | | <where> |
| | | FIND_IN_SET(#{departmentId},u.depart_lims_id) |
| | | <if test="name != null and name != ''"> |
| | |
| | | <mapper namespace="com.ruoyi.personnel.mapper.PersonTrainingRecordMapper"> |
| | | |
| | | <select id="trainingAndAssessmentRecordsPage" resultType="com.ruoyi.personnel.dto.PersonTrainingRecordDto"> |
| | | select cptr.*, u.account, u.name user_name, u.phone, r.name role_name |
| | | select cptr.*, u.account, u.name user_name, u.phone |
| | | from cnas_person_training_record cptr |
| | | left join user u on u.id = cptr.user_id |
| | | left join role r on r.id = u.role_id |
| | | where cptr.course_id = #{trainingDetailedId} |
| | | <if test="userName != null and userName != ''"> |
| | | and u.name like concat('%', #{userName}, '%') |
| | |
| | | */ |
| | | @ApiOperation(value = "æ¥è¯¢åæ¡£") |
| | | @GetMapping("/pageSearchNewArchived") |
| | | public Result<IPage<ProcessMethodSearchNewArchivedDto>> pageSearchNewArchived(ProcessMethodSearchNewArchivedDto archived,Page page) throws Exception { |
| | | public Result pageSearchNewArchived(ProcessMethodSearchNewArchivedDto archived,Page page) throws Exception { |
| | | return Result.success(processMethodSearchNewService.pageSearchNewArchived(page, archived)); |
| | | } |
| | | |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.process.pojo.ProcessMethodSearchNewBackups; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @param ew |
| | | * @return |
| | | */ |
| | | IPage<ProcessMethodSearchNewBackups> pageSearchNewBackups(Page page, QueryWrapper<ProcessMethodSearchNewBackups> ew); |
| | | IPage<ProcessMethodSearchNewBackups> pageSearchNewBackups(Page page, @Param("ew") QueryWrapper<ProcessMethodSearchNewBackups> ew); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.web.controller.dto; |
| | | |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class UpdateUserDto { |
| | | |
| | | private String id; |
| | | |
| | | private String ids; |
| | | } |
| | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.system.service.UserService; |
| | | import com.ruoyi.web.controller.dto.UpdateUserDto; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | return Result.success("æå", userService.selectUserDepartmentLimsName()); |
| | | } |
| | | |
| | | @PostMapping("/upUserDepardLimsId") |
| | | @ApiOperation(value = "ä¿®æ¹äººåæç»æå¨ç»ç»æ¶æ") |
| | | public Result<?> upUserDepardLimsId(@RequestBody UpdateUserDto dto){ |
| | | return Result.success(userService.upUserDepardLimsId(dto.getIds(), dto.getId())); |
| | | } |
| | | |
| | | @DeleteMapping("/delUserDepardLimsId") |
| | | @ApiOperation(value = "å é¤äººåæç»æå¨ç»ç»æ¶æ") |
| | | public Result<?> delUserDepardLimsId(Integer id){ |
| | | return Result.success(userService.delUserDepardLimsId(id)); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | |
| | | * @return |
| | | */ |
| | | String selectUserDepartmentLimsName(); |
| | | |
| | | |
| | | int upUserDepardLimsId(String ids, String id); |
| | | |
| | | int delUserDepardLimsId(Integer id); |
| | | } |
| | | |
| | |
| | | package com.ruoyi.system.service.impl; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | |
| | | import com.ruoyi.system.service.UserService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | public String selectUserDepartmentLimsName() { |
| | | return baseMapper.selectUserDepartmentLimsName(SecurityUtils.getUserId().intValue()); |
| | | } |
| | | |
| | | @Override |
| | | public int upUserDepardLimsId(String ids, String id) { |
| | | List<Integer> userIds = JSON.parseArray(ids, Integer.class); |
| | | return baseMapper.update(null, Wrappers.<User>lambdaUpdate().in(User::getId, userIds).set(User::getDepartLimsId, id).set(User::getUpdateTime, LocalDateTime.now()).set(User::getUpdateBy,SecurityUtils.getLoginUser().getUsername())); |
| | | } |
| | | |
| | | @Override |
| | | public int delUserDepardLimsId(Integer id) { |
| | | return baseMapper.update(null, Wrappers.<User>lambdaUpdate().eq(User::getId, id).set(User::getDepartLimsId, null).set(User::getUpdateTime, LocalDateTime.now()).set(User::getUpdateBy, SecurityUtils.getUsername())); |
| | | } |
| | | } |
| | | |