Merge remote-tracking branch 'origin/dev' into dev
| | |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.basic.service.StandardProductListService; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | @Override |
| | | public List<StandardProductList> selectStandardProductList(InsSample1 insSample) { |
| | | String[] models = insSample.getModel().split("-(?=[^-]*$)");//æåæåä¸ä¸ªã-ã |
| | | String[] splits = insSample.getFactory().split(" - "); |
| | | String[] splits = StringUtils.isNotEmpty(insSample.getFactory())?insSample.getFactory().split(" - "):new String[0]; |
| | | List<StandardProductList> list = new ArrayList<>(); |
| | | if(splits.length<4){ |
| | | list = standardProductListMapper.selectDetail(insSample.getStandardMethodListId(), 1, models[0],"",""); |
| | |
| | | } |
| | | } |
| | | } |
| | | String[] split1 = insSample.getFactory().split(" - "); |
| | | //夿é¿åº¦ |
| | | if (split1.length > 4) { |
| | | if (ObjectUtils.isNotEmpty(split1[3])) { |
| | | list = list.stream().filter(list1 -> Objects.nonNull(list1.getSample())&&Objects.equals(list1.getSample(),split1[3])).collect(Collectors.toList()); |
| | | }else if (split1[3].isEmpty()) { |
| | | list = list.stream().filter(list1 -> Objects.nonNull(list1.getSampleType())&&Objects.equals(list1.getSampleType(),split1[2])).collect(Collectors.toList()); |
| | | if (splits.length > 4) { |
| | | if (ObjectUtils.isNotEmpty(splits[3])) { |
| | | list = list.stream().filter(list1 -> Objects.nonNull(list1.getSample())&&Objects.equals(list1.getSample(),splits[3])).collect(Collectors.toList()); |
| | | }else if (splits[3].isEmpty()) { |
| | | list = list.stream().filter(list1 -> Objects.nonNull(list1.getSampleType())&&Objects.equals(list1.getSampleType(),splits[2])).collect(Collectors.toList()); |
| | | } |
| | | } |
| | | list = list.stream().filter(a -> { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!DOCTYPE html> |
| | | <html lang="en"> |
| | | <head> |
| | | <meta charset="UTF-8"> |
| | | <title>设å¤è¿è¡æ»è§</title> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> |
| | | <style> |
| | | *{ |
| | | margin: 0; |
| | | padding: 0; |
| | | } |
| | | body { |
| | | -webkit-text-size-adjust: 100%!important; |
| | | text-size-adjust: 100%!important; |
| | | -moz-text-size-adjust: 100%!important; |
| | | } |
| | | .main{ |
| | | width: 100%; |
| | | background-color: #f5f7fa; |
| | | padding:10px 0; |
| | | } |
| | | .chartContainer{ |
| | | width:92%; |
| | | margin-left:4%; |
| | | height:200px; |
| | | background-color: #fff; |
| | | border-radius: 5px; |
| | | } |
| | | .info{ |
| | | width:92%; |
| | | margin-left:4%; |
| | | height:calc(100% - 230px); |
| | | background-color: #fff; |
| | | margin-top: 10px; |
| | | padding-bottom: 10px; |
| | | border-radius: 5px; |
| | | } |
| | | .info div{ |
| | | display: flex; |
| | | width: 92%; |
| | | margin-left: 4%; |
| | | border-bottom: 1px solid #dddddd; |
| | | height: 40px; |
| | | } |
| | | .info div span{ |
| | | width:100px; |
| | | color: #797979; |
| | | font-size: clamp(0.563rem, -2.813rem + 15vw, 0.75rem) !important; |
| | | line-height: 40px; |
| | | } |
| | | .info div p{ |
| | | width:calc(100% - 100px); |
| | | height:40px; |
| | | font-size: clamp(0.563rem, -2.813rem + 15vw, 0.75rem) !important; |
| | | font-weight: bold; |
| | | line-height: 40px; |
| | | text-align: right; |
| | | } |
| | | .success{ |
| | | color:#21a700 |
| | | } |
| | | .failed{ |
| | | color:#d80000 |
| | | } |
| | | .other{ |
| | | color: #e8a849; |
| | | } |
| | | .stop{ |
| | | color: lightgray; |
| | | } |
| | | .download-link{ |
| | | text-decoration:none; |
| | | width:80px; |
| | | height:25px; |
| | | margin:7.5px 10px; |
| | | background-color: #0066ff; |
| | | color:#fff; |
| | | font-size:clamp(0.563rem, -2.813rem + 15vw, 0.75rem) !important; |
| | | border:none; |
| | | border-radius: 3px; |
| | | line-height: 25px; |
| | | text-align: center; |
| | | } |
| | | .insProduct{ |
| | | overflow-x: scroll; |
| | | overflow-y: hidden; |
| | | display: inline-block |
| | | } |
| | | .info div:last-child{ |
| | | white-space: nowrap; |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <input type="hidden" id="progress" th:value="${progress}"> |
| | | <div class="main"> |
| | | <div class="chartContainer" id="chartContainer" ></div> |
| | | <div class="info"> |
| | | <div> |
| | | <span>设å¤åç§°</span> |
| | | <p th:text="${deviceName}"></p> |
| | | </div> |
| | | <div> |
| | | <span>设å¤ç¼å·</span> |
| | | <p th:text="${deviceCode}"></p> |
| | | </div> |
| | | <div> |
| | | <span>å¯ç¨æ¶é¿(å¹´)</span> |
| | | <p th:text="${usedYears}"></p> |
| | | </div> |
| | | <div> |
| | | <span>设å¤è¿è¡ç¶æ</span> |
| | | <p th:if="${runStatus==0}" class="success">æ£å¸¸</p> |
| | | <p th:if="${runStatus==1}" class="other">ç»´ä¿®</p> |
| | | <p th:if="${runStatus==2}" class="stop">åç¨</p> |
| | | <p th:if="${runStatus==3}" class="failed">æ¥åº</p> |
| | | </div> |
| | | <div> |
| | | <span> |
| | | æè¿æ ¡åæ¥æ |
| | | </span> |
| | | <input type="hidden" id="downloadUrl" th:value="${downloadUrl}"> |
| | | <a th:href="${downloadUrl}" onclick="return hasDownload()" th:download="${fileName}" rel="noopener noreferrer" class="download-link">è¯ä¹¦ä¸è½½</a> |
| | | <p th:text="${lastCalibrationDate}"></p> |
| | | </div> |
| | | <div> |
| | | <span>䏿¬¡æ ¡åæ¥æ</span> |
| | | <p th:text="${nextCalibrationDate}"></p> |
| | | </div> |
| | | <div> |
| | | <span>æ ¡åæ»ç»è®º</span> |
| | | <p th:if="${calibrateStatus=='åæ ¼'}" class="success" th:text="${calibrateStatus}"></p> |
| | | <p th:if="${calibrateStatus=='ä¸åæ ¼'}" class="failed" th:text="${calibrateStatus}"></p> |
| | | <p th:if="${calibrateStatus=='å
¶ä»'}" class="other" th:text="${calibrateStatus}"></p> |
| | | </div> |
| | | <div> |
| | | <span>æè¿æ ¸æ¥æ¥æ</span> |
| | | <p th:text="${lastExamineDate}"></p> |
| | | </div> |
| | | <div> |
| | | <span>䏿¬¡æ ¸æ¥æ¥æ</span> |
| | | <p th:text="${nextExamineDate}"></p> |
| | | </div> |
| | | <div> |
| | | <span>æ ¸æ¥æ»ç»è®º</span> |
| | | <p th:if="${examineStatus=='åæ ¼'}" class="success" th:text="${examineStatus}"></p> |
| | | <p th:if="${examineStatus=='ä¸åæ ¼'}" class="failed" th:text="${examineStatus}"></p> |
| | | <p th:if="${examineStatus=='å
¶ä»'}" class="other" th:text="${examineStatus}"></p> |
| | | </div> |
| | | <div> |
| | | <span>æè¿ç»´æ¤æ¥æ</span> |
| | | <p th:text="${maintenanceDate}"></p> |
| | | </div> |
| | | <div> |
| | | <span>䏿¬¡ç»´æ¤æ¥æ</span> |
| | | <p th:text="${nextMaintenanceDate}"></p> |
| | | </div> |
| | | <div> |
| | | <span>ç»´æ¤ç±»å</span> |
| | | <p th:text="${maintenanceType}"></p> |
| | | </div> |
| | | <div> |
| | | <span>æµé项ç®</span> |
| | | <p th:text="${insProduct}" class="insProduct"></p> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </body> |
| | | <script th:src="@{/static/js/echarts.js}"></script> |
| | | <script th:src="@{/static/js/device_qr_show.js}"></script> |
| | | </html> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!DOCTYPE html> |
| | | <html lang="en"> |
| | | <head> |
| | | <meta charset="UTF-8"> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> |
| | | <title>æ ·åä¿¡æ¯</title> |
| | | <style> |
| | | |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <p> |
| | | <span style="font-weight: bold">æ ·åç¼å·ï¼</span> |
| | | <span th:text="${sampleCode}"></span> |
| | | </p> |
| | | <p> |
| | | <span style="font-weight: bold">å§æåå·ï¼</span> |
| | | <span th:text="${entrustCode}"></span> |
| | | </p> |
| | | <p> |
| | | <span style="font-weight: bold">è§æ ¼åå·ï¼</span> |
| | | <span th:text="${model}"></span> |
| | | </p> |
| | | <p> |
| | | <span style="font-weight: bold">æ ·ååç§°ï¼</span> |
| | | <span th:text="${sample}"></span> |
| | | </p> |
| | | <p> |
| | | <span style="font-weight: bold">æ£æµé¡¹ç®ï¼</span> |
| | | <span th:text="${inspectionItem}"></span> |
| | | </p> |
| | | <p> |
| | | <span style="font-weight: bold">æ ·åç¶æï¼</span> |
| | | <input type="checkbox" disabled name="insState" value="0" th:checked="${insState == 0}"> |
| | | <label>å¾
æ£</label> |
| | | <input type="checkbox" disabled name="insState" value="1" th:checked="${insState == 1}"> |
| | | <label>卿£</label> |
| | | <input type="checkbox" disabled name="insState" value="2" th:checked="${insState == 2}"> |
| | | <label>å·²æ£</label> |
| | | <input type="checkbox" disabled name="isLeave" value="1" th:checked="${isLeave == 1}"> |
| | | <label>çæ ·</label> |
| | | |
| | | </p> |
| | | </body> |
| | | </html> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!DOCTYPE html> |
| | | <html lang="en" xmlns:th="http://www.thymeleaf.org"> |
| | | <head> |
| | | <meta charset="UTF-8"> |
| | | <title>æ£æµæ¥å</title> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| | | <style> |
| | | .descriptions { |
| | | width: 65%; |
| | | text-align: left; |
| | | } |
| | | .descriptions-title { |
| | | width: 35%; |
| | | text-align: center; |
| | | } |
| | | .table { |
| | | font-size: 1em; |
| | | color: #1c2023; |
| | | border-collapse: collapse; |
| | | width: 100%; |
| | | } |
| | | .table tr { |
| | | height: 3em; |
| | | } |
| | | table tr:nth-child(odd) .descriptions-title{ |
| | | background-color: #dddddd; |
| | | } |
| | | table tr:nth-child(odd) .descriptions{ |
| | | background-color: #f0f0f0; |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <h4 th:text="'æ¥åç¼å·ï¼' + ${entrustCode}"></h4> |
| | | <table class="table"> |
| | | <tr> |
| | | <td class="descriptions-title">è¯ æ · å ç§°<br/>Name of Product</td> |
| | | <td class="descriptions"> |
| | | <p> |
| | | <span th:text="${productName}"></span> |
| | | <br/> |
| | | <span th:text="${productNameEn}"></span> |
| | | </p> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="descriptions-title">å å·<br/>Type and Size</td> |
| | | <td class="descriptions" th:text="${insOrderModel}"></td> |
| | | </tr> |
| | | <tr> |
| | | <td class="descriptions-title">å§ æ å ä½<br/>Client</td> |
| | | <td class="descriptions"> |
| | | <p> |
| | | <span th:text="${company}"></span> |
| | | <br/> |
| | | <span th:text="${companyEn}"></span> |
| | | </p> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="descriptions-title">æ£ éª ç±» å«<br/>Kind of Test</td> |
| | | <td class="descriptions"> |
| | | <p> |
| | | <span th:text="${orderType}"></span> |
| | | <br/> |
| | | <span th:text="${orderTypeEn}"></span> |
| | | </p> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="descriptions-title">æ¶ æ · æ¥ æ<br/>Received date</td> |
| | | <td class="descriptions"> |
| | | <p> |
| | | <span th:text="${getTime}"></span> |
| | | <br/> |
| | | <span th:text="${getTimeEn}"></span> |
| | | </p> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="descriptions-title">ç¾ å æ¥ æ<br/>Date of issue</td> |
| | | <td class="descriptions"> |
| | | <p> |
| | | <span th:text="${issuingDate}"></span> |
| | | <br/> |
| | | <span th:text="${issuingDateEn}"></span> |
| | | </p> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | </body> |
| | | </html> |
| | |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢ å²ä½èè´£") |
| | | @GetMapping("personJobResponsibilitiesSelect") |
| | | public Result<IPage<PersonJobResponsibilitiesDto>> personJobResponsibilitiesSelect(Page page, String userId, String departmentId, String userName) { |
| | | public Result<IPage<PersonJobResponsibilitiesDto>> personJobResponsibilitiesSelect(Page page, Integer userId, String departmentId, String userName) { |
| | | IPage<PersonJobResponsibilitiesDto> iPage = personJobResponsibilitiesService.personJobResponsibilitiesSelect(page, userId, departmentId, userName); |
| | | return Result.success(iPage); |
| | | } |
| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.text.SimpleDateFormat; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Locale; |
| | | import java.util.Objects; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | Integer departId, |
| | | Integer state) { |
| | | Integer planId = 0; |
| | | if(id.equals("null") || StringUtils.isEmpty(id)) { |
| | | if(ObjectUtils.isNull(id) || StringUtils.isEmpty(id)) { |
| | | planId = null; |
| | | } else { |
| | | planId = Integer.parseInt(id); |
| | |
| | | |
| | | @ApiOperation(value = "å¹è®ä¸èæ ¸è®°å½ è®¤é¢") |
| | | @PostMapping("claimOfTrainingAndAssessmentRecords") |
| | | public Result<?> claimOfTrainingAndAssessmentRecords(@RequestParam("claimAndClaim") Boolean claimAndClaim, |
| | | @RequestParam("courseId") Integer courseId) { |
| | | public Result<?> claimOfTrainingAndAssessmentRecords(@RequestBody Map<String,Object> map) { |
| | | Boolean claimAndClaim = (Boolean)map.get("claimAndClaim"); |
| | | Integer courseId = (Integer)map.get("courseId"); |
| | | personTrainingRecordService.claimOfTrainingAndAssessmentRecords(claimAndClaim, courseId); |
| | | return Result.success(); |
| | | } |
| | |
| | | package com.ruoyi.personnel.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.personnel.dto.PersonSupervisePlanDetailsDto; |
| | | import com.ruoyi.personnel.dto.PersonSupervisePlanDto; |
| | | import com.ruoyi.personnel.pojo.PersonSupervisePlan; |
| | |
| | | PersonSupervisePlan byId = personSupervisePlanService.getById(id); |
| | | // éä¿¡ç为许å çµåçæ¯å建德 |
| | | Integer approvalId = null; |
| | | if (ObjectUtils.isNull(byId.getDepartId())){ |
| | | throw new ErrorException("è¯¥ç¨æ·æ²¡æé
ç½®ç¸å
³å®éªå®¤é¨é¨ä¿¡æ¯!!"); |
| | | } |
| | | Integer departId = byId.getDepartId(); |
| | | if(departId.equals(18)) { |
| | | approvalId = 11; |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.personnel.dto.PersonJobResponsibilitiesDto; |
| | | import com.ruoyi.personnel.pojo.PersonJobResponsibilities; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | public interface PersonJobResponsibilitiesMapper extends BaseMapper<PersonJobResponsibilities> { |
| | | |
| | | IPage<PersonJobResponsibilitiesDto> personJobResponsibilitiesSelect(Page page, String userId, String departmentId, String userName); |
| | | IPage<PersonJobResponsibilitiesDto> personJobResponsibilitiesSelect(Page page, @Param("userId") Integer userId, @Param("departmentId") String departmentId, @Param("userName") String userName); |
| | | } |
| | |
| | | */ |
| | | public interface PersonPersonnelCapacityMapper extends BaseMapper<PersonPersonnelCapacity> { |
| | | |
| | | IPage<PersonPersonnelCapacityDto> personPersonnelCapacityPage(Page page, Integer departLimsId, Integer userId, String userName); |
| | | IPage<PersonPersonnelCapacityDto> personPersonnelCapacityPage(Page page, @Param("departLimsId") Integer departLimsId, @Param("userId") Integer userId, @Param("userName") String userName); |
| | | |
| | | /** |
| | | * æ¥è¯¢äººåè½åæ¥å£ |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.personnel.dto.PersonPostAuthorizationRecordDto; |
| | | import com.ruoyi.personnel.pojo.PersonPostAuthorizationRecord; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | public interface PersonPostAuthorizationRecordMapper extends BaseMapper<PersonPostAuthorizationRecord> { |
| | | |
| | | IPage<PersonPostAuthorizationRecordDto> personPostAuthorizationRecordPage(Page page, Integer departLimsId, Integer userId, String userName); |
| | | IPage<PersonPostAuthorizationRecordDto> personPostAuthorizationRecordPage(Page page, @Param("departLimsId") Integer departLimsId, @Param("userId") Integer userId, @Param("userName") String userName); |
| | | } |
| | |
| | | import com.ruoyi.personnel.dto.PersonRewardPunishmentRecordDto; |
| | | import com.ruoyi.personnel.excel.PersonRewardPunishmentRecordExcel; |
| | | import com.ruoyi.personnel.pojo.PersonRewardPunishmentRecord; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | */ |
| | | public interface PersonRewardPunishmentRecordMapper extends BaseMapper<PersonRewardPunishmentRecord> { |
| | | |
| | | IPage<PersonRewardPunishmentRecordDto> rewardPunishmentPage(Page page, Integer userId, String userName, Date startTime, Date endTime, Integer departmentId); |
| | | IPage<PersonRewardPunishmentRecordDto> rewardPunishmentPage(Page page, @Param("userId") Integer userId, @Param("userName") String userName, @Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("departmentId") Integer departmentId); |
| | | |
| | | List<PersonRewardPunishmentRecordExcel> rewardPunishmentExport(Integer userId, Integer departmentId, String userName, Date startTime, Date endTime); |
| | | List<PersonRewardPunishmentRecordExcel> rewardPunishmentExport(@Param("userId") Integer userId, @Param("departmentId") Integer departmentId, @Param("userName") String userName, @Param("startTime") Date startTime, @Param("endTime") Date endTime); |
| | | } |
| | |
| | | import com.ruoyi.framework.mybatis_config.MyBaseMapper; |
| | | import com.ruoyi.personnel.dto.PersonSupervisePlanDetailsDto; |
| | | import com.ruoyi.personnel.pojo.PersonSupervisePlanDetails; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | public interface PersonSupervisePlanDetailsMapper extends MyBaseMapper<PersonSupervisePlanDetails> { |
| | | |
| | | IPage<PersonSupervisePlanDetailsDto> pageByDate(Page page, String date, String project, Integer planId); |
| | | IPage<PersonSupervisePlanDetailsDto> pageByDate(@Param("page") Page page, @Param("date") String date, @Param("project") String project, @Param("planId") Integer planId); |
| | | |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.personnel.dto.PersonSupervisionRecordDto; |
| | | import com.ruoyi.personnel.pojo.PersonSupervisionRecord; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | public interface PersonSupervisionRecordMapper extends BaseMapper<PersonSupervisionRecord> { |
| | | |
| | | IPage<PersonSupervisionRecordDto> personSupervisionRecordPage(Page page, Integer userId, Integer departLimsId, String userName); |
| | | IPage<PersonSupervisionRecordDto> personSupervisionRecordPage(Page page, @Param("userId") Integer userId, @Param("departLimsId") Integer departLimsId, @Param("userName") String userName); |
| | | |
| | | /** |
| | | * æ¥è¯¢çç£è®°å½è¯¦æ
|
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.personnel.pojo.PersonTrackRecord; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | */ |
| | | public interface PersonTrackRecordMapper extends BaseMapper<PersonTrackRecord> { |
| | | |
| | | IPage<PersonTrackRecord> personTrackRecordSelect(Page page, String userId, String departLimsId); |
| | | IPage<PersonTrackRecord> personTrackRecordSelect(Page page, @Param("userId") String userId, @Param("departLimsId") String departLimsId); |
| | | |
| | | List<PersonTrackRecord> personTrackRecordExport(String userId, String departLimsId); |
| | | List<PersonTrackRecord> personTrackRecordExport(@Param("userId") String userId, @Param("departLimsId") String departLimsId); |
| | | |
| | | } |
| | |
| | | public interface PersonTrainingDetailedMapper extends MyBaseMapper<PersonTrainingDetailed> { |
| | | |
| | | IPage<PersonTrainingDetailedDto> queryTheAnnualPlanDetailsTable(Page page, |
| | | String trainingLecturerName, |
| | | String courseCode, String trainingDate, |
| | | Integer id, |
| | | Integer userId, |
| | | Integer loginUserId, |
| | | Integer state); |
| | | @Param("trainingLecturerName") String trainingLecturerName, |
| | | @Param("courseCode") String courseCode, @Param("trainingDate") String trainingDate, |
| | | @Param("id") Integer id, |
| | | @Param("userId") Integer userId, |
| | | @Param("loginUserId") Integer loginUserId, |
| | | @Param("state") Integer state); |
| | | |
| | | /** |
| | | * æ ¹æ®ä¸»è¡¨idæ¥è¯¢è¯¦æ
|
| | |
| | | */ |
| | | 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); |
| | | IPage<PersonTrainingRecordListDto> personnelTrainingPersonnel(Page page, @Param("userName") String userName, @Param("userId") Integer userId, @Param("departLimsId") Integer departLimsId); |
| | | |
| | | IPage<TrainingRecordPersonDetailedDto> queryPersonnelDetails(Page page, Integer userId); |
| | | |
| | |
| | | * @param year |
| | | * @return |
| | | */ |
| | | IPage<TrainingRecordPersonDetailedDto> queryPersonnelDetailsOfUserIdAndYear(Page page, Integer userId, Integer year); |
| | | IPage<TrainingRecordPersonDetailedDto> queryPersonnelDetailsOfUserIdAndYear(Page page, @Param("userId") Integer userId, @Param("year") Integer year); |
| | | |
| | | /** |
| | | * æ ¹æ®ç¨æ·idå年份æ¥è¯¢äººåæç» å¹è®è®°å½å¯¼åº |
| | | * @param userId |
| | | * @param trainingDate |
| | | * @param |
| | | * @return |
| | | */ |
| | | List<TrainingRecordPersonDetailedDto> selectPersonDetailedDtosByTrainingDate(Integer userId, Integer year); |
| | | List<TrainingRecordPersonDetailedDto> selectPersonDetailedDtosByTrainingDate(@Param("userId") Integer userId, @Param("year") Integer year); |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.personnel.dto.PersonJobResponsibilitiesDto; |
| | | import com.ruoyi.personnel.pojo.PersonJobResponsibilities; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | |
| | | public interface PersonJobResponsibilitiesService extends IService<PersonJobResponsibilities> { |
| | | |
| | | IPage<PersonJobResponsibilitiesDto> personJobResponsibilitiesSelect(Page page, |
| | | String userId, |
| | | String departmentId, |
| | | String userName); |
| | | @Param("userId") Integer userId, |
| | | @Param("departmentId") String departmentId, |
| | | @Param("userName") String userName); |
| | | |
| | | void exportPersonJobResponsibilities(Integer id, HttpServletResponse response); |
| | | } |
| | |
| | | |
| | | |
| | | @Override |
| | | public IPage<PersonJobResponsibilitiesDto> personJobResponsibilitiesSelect(Page page, String userId, String departmentId, String userName) { |
| | | public IPage<PersonJobResponsibilitiesDto> personJobResponsibilitiesSelect(Page page, Integer userId, String departmentId, String userName) { |
| | | return baseMapper.personJobResponsibilitiesSelect(page, userId, departmentId, userName); |
| | | } |
| | | |
| | |
| | | @GetMapping("/selectOrderManDay") |
| | | public Result<?> selectOrderManDay(Integer id) { |
| | | int day = insProductService.selectOrderManDay(id); |
| | | return Result.success("æå", LocalDateTime.now().plusHours(day).format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))); |
| | | return Result.success(LocalDateTime.now().plusHours(day).format(DateTimeFormatter.ofPattern("yyyy-MM-dd")),"æå"); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢æ£éªä¸åå
容详æ
") |
| | |
| | | return restResult(data, FAIL, "æä½å¤±è´¥"); |
| | | } |
| | | |
| | | public static <T> Result<T> fail(Integer code){ |
| | | return restResult(null, code,"fail"); |
| | | } |
| | | |
| | | public static <T> Result<T> fail(T data, String msg) |
| | | { |
| | | return restResult(data, FAIL, msg); |