Merge remote-tracking branch 'origin/dev' into dev
| | |
| | | } |
| | | @ApiOperation(value = "å é¤èµè´¨æç»å表") |
| | | @DeleteMapping("/delCertificationDetail") |
| | | public Result<?> delCertificationDetail( String ids) { |
| | | public Result<?> delCertificationDetail(String ids) { |
| | | return Result.success(certificationService.delCertificationDetail(ids)); |
| | | } |
| | | } |
| | |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty(value = "å建人") |
| | | @TableField(select = false,exist = false) |
| | | private String createUserName; |
| | | |
| | | @ApiModelProperty(value = "ä¿®æ¹äººid") |
| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | @Service |
| | | @AllArgsConstructor |
| | |
| | | //å é¤èµè´¨æç»å表 |
| | | @Override |
| | | public int delCertificationDetail(String ids) { |
| | | List<Integer> list = JSON.parseArray(ids,Integer.class); |
| | | List<Integer> list = Arrays.stream(ids.split(",")).map(Integer::parseInt).collect(Collectors.toList()); |
| | | return certificationMapper.deleteBatchIds(list); |
| | | } |
| | | |
| | |
| | | <mapper namespace="com.ruoyi.basic.mapper.CertificationMapper"> |
| | | <select id="getCertificationDetail" resultType="com.ruoyi.basic.pojo.Certification"> |
| | | select b.* |
| | | from ( select a.`name`, a.`code`,a.organization,a.explanation,a.first_issuance_date,a.latest_issuance_date,c.expire_time FROM |
| | | (SELECT id,name,MIN(date_of_issuance) AS first_issuance_date, |
| | | MAX(date_of_issuance) AS latest_issuance_date, |
| | | c.`code`,c.organization,c.explanation |
| | | FROM |
| | | certification c |
| | | from ( select a.id, a.`name`, a.`code`,a.organization,a.explanation,a.first_issuance_date,a.latest_issuance_date,c.expire_time FROM |
| | | (SELECT id,name,MIN(date_of_issuance) AS first_issuance_date, |
| | | MAX(date_of_issuance) AS latest_issuance_date, |
| | | c.`code`,c.organization,c.explanation |
| | | FROM |
| | | certification c |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | GROUP BY |
| | | name) a left join certification c on a.id=c.id |
| | | GROUP BY |
| | | name) a left join certification c on a.id=c.id |
| | | ) b |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| | | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| | | <parent> |
| | | <artifactId>ruoyi</artifactId> |
| | | <groupId>com.ruoyi</groupId> |
| | | <version>3.8.9</version> |
| | | </parent> |
| | | <modelVersion>4.0.0</modelVersion> |
| | | |
| | | <artifactId>cnas-require</artifactId> |
| | | |
| | | <properties> |
| | | <maven.compiler.source>8</maven.compiler.source> |
| | | <maven.compiler.target>8</maven.compiler.target> |
| | | </properties> |
| | | |
| | | <dependencies> |
| | | <!-- éç¨å·¥å
·--> |
| | | <dependency> |
| | | <groupId>com.ruoyi</groupId> |
| | | <artifactId>ruoyi-common</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- æ ¸å¿æ¨¡å--> |
| | | <dependency> |
| | | <groupId>com.ruoyi</groupId> |
| | | <artifactId>ruoyi-framework</artifactId> |
| | | </dependency> |
| | | |
| | | <!--ä¸å¡æ¨¡å--> |
| | | <dependency> |
| | | <groupId>com.ruoyi</groupId> |
| | | <artifactId>inspect-server</artifactId> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | </project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.controller; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.read.listener.PageReadListener; |
| | | import com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.requier.excel.FeCalibrationScheduleExport; |
| | | import com.ruoyi.requier.pojo.FeCalibrationSchedule; |
| | | import com.ruoyi.requier.service.FeCalibrationScheduleService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 仪å¨è®¾å¤æ£å®/æ ¡å计å表 å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 02:53:05 |
| | | */ |
| | | @Api(tags = "é弿º¯æºè®¡å") |
| | | @RestController |
| | | @RequestMapping("/feCalibrationSchedule") |
| | | public class FeCalibrationScheduleController { |
| | | |
| | | @Resource |
| | | private FeCalibrationScheduleService feCalibrationScheduleService; |
| | | |
| | | @ApiOperation(value = "é弿º¯æºè®¡åæ¥è¯¢") |
| | | @GetMapping("/getPageCalibrationSchedule") |
| | | public Result<IPage<FeCalibrationSchedule>> getPageCalibrationSchedule(Page page, String instrumentName, String managementNumber) { |
| | | IPage<FeCalibrationSchedule> ipage = feCalibrationScheduleService.page(page,instrumentName, managementNumber); |
| | | return Result.success(ipage); |
| | | } |
| | | |
| | | @ApiOperation(value = "é弿º¯æºè®¡åæ°å¢ç¼è¾") |
| | | @PostMapping("/addCalibrationSchedule") |
| | | public Result addCalibrationSchedule(@RequestBody FeCalibrationSchedule feCalibrationSchedule) { |
| | | return Result.success(feCalibrationScheduleService.saveOrUpdate(feCalibrationSchedule)); |
| | | } |
| | | |
| | | @ApiOperation(value = "é弿º¯æºè®¡åå é¤") |
| | | @DeleteMapping("/removeCalibrationSchedule") |
| | | public Result removeCalibrationSchedule(Integer id) { |
| | | return Result.success(feCalibrationScheduleService.removeById(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "é弿º¯æºè®¡å导åº") |
| | | @GetMapping("exportOfValueTraceabilityPlan") |
| | | public void exportOfValueTraceabilityPlan(String instrumentName, String managementNumber, |
| | | HttpServletResponse response) throws Exception { |
| | | IPage<FeCalibrationSchedule> data = feCalibrationScheduleService.page(new Page<>(-1, -1),instrumentName, managementNumber); |
| | | List<FeCalibrationScheduleExport> studentList = JSONObject.parseArray(JSON.toJSONString(data.getRecords()), FeCalibrationScheduleExport.class); |
| | | response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); |
| | | response.setHeader("requestType", "excel"); |
| | | response.setHeader("Access-Control-Expose-Headers", "requestType"); |
| | | // 设置åå
æ ¼æ ·å¼ |
| | | // ä¿åå°ç¬¬ä¸ä¸ªsheetä¸ |
| | | EasyExcel.write(response.getOutputStream()) |
| | | .head(FeCalibrationScheduleExport.class) |
| | | .registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()) // èªéåºå宽 |
| | | .sheet("sheet") |
| | | .doWrite(studentList); |
| | | } |
| | | |
| | | @ApiOperation(value = "é弿º¯æºè®¡å导å
¥") |
| | | @PostMapping("/importOfValueTraceabilityPlan") |
| | | public void importOfValueTraceabilityPlan(MultipartFile file) throws IOException { |
| | | if (file.isEmpty()) { |
| | | return; |
| | | } |
| | | EasyExcel.read(file.getInputStream(), FeCalibrationScheduleExport.class, new PageReadListener<FeCalibrationScheduleExport>(dataList -> { |
| | | List<FeCalibrationSchedule> studentList = JSONObject.parseArray(JSON.toJSONString(dataList), FeCalibrationSchedule.class); |
| | | feCalibrationScheduleService.saveOrUpdateBatch(studentList); |
| | | })).sheet().doRead(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | 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.requier.dto.FeIlluminationAddDto; |
| | | import com.ruoyi.requier.dto.FeIlluminationDto; |
| | | import com.ruoyi.requier.pojo.FeIllumination; |
| | | import com.ruoyi.requier.pojo.FeIlluminationDetectionArea; |
| | | import com.ruoyi.requier.service.FeIlluminationDetectionAreaService; |
| | | import com.ruoyi.requier.service.FeIlluminationService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-ç
§åº¦è®°å½è¡¨ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:15:57 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/feIllumination") |
| | | @Api(tags = "设æ½åç¯å¢æ¡ä»¶è¦æ±-ç
§åº¦è®°å½è¡¨") |
| | | public class FeIlluminationController { |
| | | |
| | | @Autowired |
| | | private FeIlluminationService feIlluminationService; |
| | | |
| | | @Autowired |
| | | private FeIlluminationDetectionAreaService feIlluminationDetectionAreaService; |
| | | |
| | | @PostMapping("addFeLightningProtection") |
| | | @ApiOperation("设æ½åç¯å¢æ¡ä»¶è¦æ±-ç
§åº¦è®°å½è¡¨-æ£æµåºå æ°å¢/ä¿®æ¹") |
| | | public Result<?> addFeLightningProtection(@RequestBody FeIlluminationAddDto feIlluminationAddDto) { |
| | | FeIllumination feIllumination = new FeIllumination(); |
| | | BeanUtils.copyProperties(feIlluminationAddDto, feIllumination); |
| | | feIlluminationService.saveOrUpdate(feIllumination); |
| | | feIlluminationAddDto.getIlluminationDetectionAreaList().forEach(i -> i.setIntensityIlluminationId(feIllumination.getIntensityIlluminationId())); |
| | | feIlluminationDetectionAreaService.saveOrUpdateBatch(feIlluminationAddDto.getIlluminationDetectionAreaList()); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @DeleteMapping("deleteFeLightningProtection") |
| | | @ApiOperation("设æ½åç¯å¢æ¡ä»¶è¦æ±-ç
§åº¦è®°å½è¡¨-æ£æµåºå å é¤") |
| | | public Result<?> deleteFeLightningProtection(@RequestParam("intensityIlluminationId") Integer intensityIlluminationId) { |
| | | feIlluminationService.removeById(intensityIlluminationId); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @GetMapping("getFeLightningProtection") |
| | | @ApiOperation("ç
§åº¦è®°å½è¡¨-æ£æµåºå æ¥è¯¢") |
| | | public Result<IPage<FeIlluminationDto>> getFeLightningProtection(Page page) { |
| | | IPage<FeIlluminationDto> page1 = feIlluminationService.getFeLightningProtection(page); |
| | | return Result.success(page1); |
| | | } |
| | | |
| | | @DeleteMapping("deleteFeIlluminationDetectionArea") |
| | | @ApiOperation("ç
§åº¦è®°å½è¡¨-æ£æµåºå å é¤") |
| | | public Result<?> deleteFeIlluminationDetectionArea(@RequestParam("detectionAreaId") Integer detectionAreaId) { |
| | | return Result.success(feIlluminationDetectionAreaService.removeById(detectionAreaId)); |
| | | } |
| | | |
| | | @GetMapping("getFeIlluminationDetectionArea") |
| | | @ApiOperation("ç
§åº¦è®°å½è¡¨-æ£æµåºå æ ¹æ®ç
§åº¦è®°å½æ¥è¯¢") |
| | | public Result<?> getFeIlluminationDetectionArea(@RequestParam("intensityIlluminationId") Integer intensityIlluminationId) { |
| | | return Result.success(feIlluminationDetectionAreaService.list(Wrappers.<FeIlluminationDetectionArea>lambdaQuery() |
| | | .eq(FeIlluminationDetectionArea::getIntensityIlluminationId, intensityIlluminationId))); |
| | | } |
| | | |
| | | /** |
| | | * 导åºç
§åº¦è®°å½ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "导åºç
§åº¦è®°å½") |
| | | @GetMapping("/exportFeIllumination") |
| | | public void exportFeIllumination(Integer intensityIlluminationId, HttpServletResponse response){ |
| | | feIlluminationService.exportFeIllumination(intensityIlluminationId, response); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.controller; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.FileSaveUtil; |
| | | import com.ruoyi.requier.excel.FeLightningProtectionExcel; |
| | | import com.ruoyi.requier.pojo.FeLightningProtection; |
| | | import com.ruoyi.requier.service.FeLightningProtectionService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-é²é·æ£æµ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:16:36 |
| | | */ |
| | | @Api(tags = "设æ½åç¯å¢æ¡ä»¶è¦æ±-é²é·æ£æµ") |
| | | @RestController |
| | | @RequestMapping("/feLightningProtection") |
| | | public class FeLightningProtectionController { |
| | | |
| | | @Autowired |
| | | private FeLightningProtectionService feLightningProtectionService; |
| | | |
| | | @PostMapping("addLightningProtectionDetection") |
| | | @ApiOperation("设æ½åç¯å¢æ¡ä»¶è¦æ±-é²é·æ£æµæ°å¢/ä¿®æ¹") |
| | | public Result<?> addLightningProtectionDetection(FeLightningProtection feLightningProtection, |
| | | @RequestPart(value = "file", required = false) MultipartFile file) { |
| | | if (ObjectUtils.isNotEmpty(file)) { |
| | | String s = FileSaveUtil.StoreFile(file); |
| | | feLightningProtection.setSystemFileName(s); |
| | | feLightningProtection.setFileName(file.getOriginalFilename()); |
| | | } |
| | | feLightningProtectionService.saveOrUpdate(feLightningProtection); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @DeleteMapping("deleteLightningProtectionDetection") |
| | | @ApiOperation("设æ½åç¯å¢æ¡ä»¶è¦æ±-é²é·æ£æµå é¤") |
| | | public Result<?> deleteFeLightningProtection(@RequestParam("lightningProtectionId") Integer lightningProtectionId) { |
| | | feLightningProtectionService.removeById(lightningProtectionId); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @GetMapping("getLightningProtectionDetection") |
| | | @ApiOperation("设æ½åç¯å¢æ¡ä»¶è¦æ±-é²é·æ£æµæ¥è¯¢") |
| | | public Result<IPage<FeLightningProtection>> getFeLightningProtection(Page page) { |
| | | IPage<FeLightningProtection> page1 = feLightningProtectionService.page(page); |
| | | return Result.success(page1); |
| | | } |
| | | |
| | | @ApiOperation(value = "设æ½åç¯å¢æ¡ä»¶è¦æ±-é²é·æ£æµå¯¼åº") |
| | | @GetMapping("exportOfLightningProtectionDetection") |
| | | public void exportOfLightningProtectionDetection(HttpServletResponse response) throws Exception { |
| | | List<FeLightningProtectionExcel> ipage = feLightningProtectionService.exportOfLightningProtectionDetection(); |
| | | response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); |
| | | response.setHeader("requestType", "excel"); |
| | | response.setHeader("Access-Control-Expose-Headers", "requestType"); |
| | | // 设置åå
æ ¼æ ·å¼ |
| | | // ä¿åå°ç¬¬ä¸ä¸ªsheetä¸ |
| | | EasyExcel.write(response.getOutputStream()) |
| | | .head(FeLightningProtectionExcel.class) |
| | | .registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()) // èªéåºå宽 |
| | | .sheet("sheet") |
| | | .doWrite(ipage); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | 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.requier.dto.FePowerStableAddDto; |
| | | import com.ruoyi.requier.dto.FePowerStableDto; |
| | | import com.ruoyi.requier.pojo.FeMeasuredQuantity; |
| | | import com.ruoyi.requier.pojo.FePowerStable; |
| | | import com.ruoyi.requier.service.FeMeasuredQuantityService; |
| | | import com.ruoyi.requier.service.FePowerStableService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-çµæºç¨³å®æ§ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:16:52 |
| | | */ |
| | | @Api(tags = "设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-çµæºç¨³å®æ§") |
| | | @RestController |
| | | @RequestMapping("/fePowerStable") |
| | | public class FePowerStableController { |
| | | |
| | | @Autowired |
| | | private FeMeasuredQuantityService feMeasuredQuantityService; |
| | | |
| | | @Autowired |
| | | private FePowerStableService fePowerStableService; |
| | | |
| | | @PostMapping("addLaboratoryFacilityPowerStable") |
| | | @ApiOperation("çµæºç¨³å®æ§æ°å¢/ä¿®æ¹") |
| | | public Result<?> addLaboratoryFacilityPowerStable(@RequestBody FePowerStableAddDto fePowerStableAddDto) { |
| | | FePowerStable fePowerStable = new FePowerStable(); |
| | | BeanUtils.copyProperties(fePowerStableAddDto, fePowerStable); |
| | | fePowerStableService.saveOrUpdate(fePowerStable); |
| | | fePowerStableAddDto.getFeMeasuredQuantityList().forEach(i -> i.setPowerStableId(fePowerStable.getPowerStableId())); |
| | | feMeasuredQuantityService.saveOrUpdateBatch(fePowerStableAddDto.getFeMeasuredQuantityList()); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @DeleteMapping("deleteLaboratoryFacilityPowerStable") |
| | | @ApiOperation("çµæºç¨³å®æ§å é¤") |
| | | public Result<FePowerStable> deleteLaboratoryFacilityPowerStable(@RequestParam("powerStableId") Integer powerStableId) { |
| | | fePowerStableService.removeById(powerStableId); |
| | | feMeasuredQuantityService.remove(Wrappers.<FeMeasuredQuantity>lambdaQuery() |
| | | .eq(FeMeasuredQuantity::getPowerStableId, powerStableId)); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @GetMapping("getLaboratoryFacilityPowerStablePage") |
| | | @ApiOperation("çµæºç¨³å®æ§æ¥è¯¢") |
| | | public Result<IPage<FePowerStableDto>> getLaboratoryFacilityPowerStablePage( |
| | | Page page) { |
| | | IPage<FePowerStableDto> page1 = fePowerStableService.getLaboratoryFacilityPowerStablePage(page); |
| | | return Result.success(page1); |
| | | } |
| | | |
| | | @ApiOperation("éæ©è®¾å¤åæ¥è¯¢ææ°è®¾å¤ç¼å·ï¼æ ¡åæ¥æ") |
| | | @GetMapping("getCalibrationDate") |
| | | public Result<?> getCalibrationDate(@RequestParam("deviceId") Integer deviceId) { |
| | | return Result.success(fePowerStableService.getCalibrationDate(deviceId)); |
| | | } |
| | | |
| | | @DeleteMapping("deleteFeMeasuredQuantity") |
| | | @ApiOperation("çµæºç¨³å®æ§-æµå®é å é¤") |
| | | public Result<?> deleteFeMeasuredQuantity(@RequestParam("measuredQuantityId") Integer measuredQuantityId) { |
| | | return Result.success(feMeasuredQuantityService.removeById(measuredQuantityId)); |
| | | } |
| | | |
| | | @GetMapping("getFeMeasuredQuantityService") |
| | | @ApiOperation("çµæºç¨³å®æ§-æµå®é æ ¹æ®çµæºç¨³å®æ§æ¥è¯¢") |
| | | public Result<?> getFeMeasuredQuantityService(@RequestParam("powerStableId") Integer powerStableId) { |
| | | return Result.success(feMeasuredQuantityService.list(Wrappers.<FeMeasuredQuantity>lambdaQuery() |
| | | .eq(FeMeasuredQuantity::getPowerStableId, powerStableId))); |
| | | } |
| | | |
| | | /** |
| | | * 导åºçµæºç¨³å®æ§ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "导åºçµæºç¨³å®æ§") |
| | | @GetMapping("/exportFePowerStable") |
| | | public void exportFePowerStable(Integer powerStableId, HttpServletResponse response){ |
| | | fePowerStableService.exportFePowerStable(powerStableId, response); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.requier.dto.AcceptanceDto; |
| | | import com.ruoyi.requier.pojo.FeStandardSubstanceAcceptanceInspection; |
| | | import com.ruoyi.requier.service.FeStandardSubstanceAcceptanceInspectionService; |
| | | import com.ruoyi.requier.service.FeStandardSubstanceAcceptanceService; |
| | | import com.ruoyi.requier.vo.AcceptanceVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * æ åç©è´¨éªæ¶ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-14 03:29:41 |
| | | */ |
| | | @Api(tags = "æ åç©è´¨éªæ¶") |
| | | @RestController |
| | | @RequestMapping("/feStandardSubstanceAcceptance") |
| | | public class FeStandardSubstanceAcceptanceController { |
| | | |
| | | @Autowired |
| | | private FeStandardSubstanceAcceptanceInspectionService inspectionService; |
| | | @Resource |
| | | private FeStandardSubstanceAcceptanceService feStandardSubstanceAcceptanceService; |
| | | |
| | | @ApiOperation(value = "æ°å¢") |
| | | @PostMapping("/addAcceptance") |
| | | @Transactional |
| | | public Result addAcceptance(@RequestBody AcceptanceDto dto) { |
| | | feStandardSubstanceAcceptanceService.addAcceptance(dto); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ åç©è´¨éªæ¶æ¥è¯¢") |
| | | @GetMapping("/getPageAcceptance") |
| | | public Result<IPage<AcceptanceVo>> getPageAcceptance(Page page, String name) { |
| | | IPage<AcceptanceVo> ipage = feStandardSubstanceAcceptanceService.getPageAcceptance(page, name); |
| | | return Result.success(ipage); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ åç©è´¨éªæ¶å é¤") |
| | | @DeleteMapping("/deleteAcceptance/{id}") |
| | | public Result deleteAcceptance(@PathVariable("id") Integer id) { |
| | | return Result.success(feStandardSubstanceAcceptanceService.deleteAcceptance(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¼è¾") |
| | | @PostMapping("/updateAcceptance") |
| | | public Result updateAcceptance(@RequestBody AcceptanceDto acceptanceDto) { |
| | | feStandardSubstanceAcceptanceService.updateById(acceptanceDto.getAcceptance()); |
| | | for (FeStandardSubstanceAcceptanceInspection v : acceptanceDto.getList()) { |
| | | if (v.getId()== null) { |
| | | inspectionService.save(v); |
| | | }else { |
| | | inspectionService.updateById(v); |
| | | } |
| | | } |
| | | return Result.success(); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "æ åç©è´¨éªæ¶æ¥è¯¢") |
| | | @GetMapping("/getAcceptanceDetails") |
| | | public Result getAcceptanceDetails(Integer id) { |
| | | return Result.success(feStandardSubstanceAcceptanceService.getAcceptanceDetails(id)); |
| | | } |
| | | |
| | | @ApiOperation("å¯¼åºæ åç©è´¨éªæ¶") |
| | | @GetMapping("/exportFeStandardSubstanceAcceptance") |
| | | public Result exportFeStandardSubstanceAcceptance(HttpServletResponse response) { |
| | | feStandardSubstanceAcceptanceService.exportFeStandardSubstanceAcceptance(response); |
| | | return Result.success(); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.controller; |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.requier.pojo.FeStandardSubstanceAcceptanceInspection; |
| | | import com.ruoyi.requier.service.FeStandardSubstanceAcceptanceInspectionService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * <p> |
| | | * éªæ¶å¼ç®±è®°å½ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-14 03:30:09 |
| | | */ |
| | | @Api(tags = "éªæ¶å¼ç®±è®°å½") |
| | | @RestController |
| | | @RequestMapping("/feStandardSubstanceAcceptanceInspection") |
| | | public class FeStandardSubstanceAcceptanceInspectionController { |
| | | |
| | | |
| | | @Resource |
| | | private FeStandardSubstanceAcceptanceInspectionService feStandardSubstanceAcceptanceInspectionService; |
| | | |
| | | |
| | | @ApiOperation(value = "æ°å¢æç¼è¾") |
| | | @PostMapping("/addInspection") |
| | | public Result addInspection(@RequestBody FeStandardSubstanceAcceptanceInspection inspection) { |
| | | feStandardSubstanceAcceptanceInspectionService.saveOrUpdate(inspection); |
| | | return Result.success(); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.controller; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.requier.excel.FeStandardSubstanceExcel; |
| | | import com.ruoyi.requier.pojo.FeStandardSubstance; |
| | | import com.ruoyi.requier.service.FeStandardSubstanceService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * æ åç©è´¨æ¸
å å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 03:58:59 |
| | | */ |
| | | @Api(tags = "æ åç©è´¨æ¸
å") |
| | | @RestController |
| | | @RequestMapping("/feStandardSubstance") |
| | | public class FeStandardSubstanceController { |
| | | |
| | | |
| | | @Resource |
| | | private FeStandardSubstanceService feStandardSubstanceService; |
| | | |
| | | @ApiOperation(value = "æ åç©è´¨æ¸
åæ¥è¯¢") |
| | | @GetMapping("/getPageStandardSubstance") |
| | | public Result<IPage<FeStandardSubstance>> getPageStandardSubstance(Page page, FeStandardSubstance feStandardSubstance) { |
| | | IPage<FeStandardSubstance> ipage = feStandardSubstanceService.page(page, feStandardSubstance); |
| | | return Result.success(ipage); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ åç©è´¨æ¸
åæ°å¢ç¼è¾") |
| | | @PostMapping("/addStandardSubstance") |
| | | public Result addStandardSubstance(@RequestBody FeStandardSubstance feStandardSubstance) { |
| | | return Result.success(feStandardSubstanceService.saveOrUpdate(feStandardSubstance)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ åç©è´¨æ¸
åå é¤") |
| | | @DeleteMapping("/removeStandardSubstance") |
| | | public Result removeStandardSubstance(Integer id) { |
| | | return Result.success(feStandardSubstanceService.removeById(id)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "æ åç©è´¨æ¸
åæ¥è¯¢ææ") |
| | | @GetMapping("/getStandardSubstanceAll") |
| | | public Result<List<FeStandardSubstance>> getStandardSubstanceAll( ) { |
| | | return Result.success(feStandardSubstanceService.list()); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "æ åç©è´¨æ¸
å导åº") |
| | | @GetMapping("exportOfStandardSubstanceList") |
| | | public void exportOfStandardSubstanceList(FeStandardSubstance feStandardSubstance, |
| | | HttpServletResponse response) throws Exception { |
| | | IPage<FeStandardSubstance> ipage = feStandardSubstanceService.page(new Page<>(1, -1), feStandardSubstance); |
| | | List<FeStandardSubstanceExcel> studentList = JSONObject.parseArray(JSON.toJSONString(ipage.getRecords()), FeStandardSubstanceExcel.class); |
| | | response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); |
| | | response.setHeader("requestType", "excel"); |
| | | response.setHeader("Access-Control-Expose-Headers", "requestType"); |
| | | // 设置åå
æ ¼æ ·å¼ |
| | | // ä¿åå°ç¬¬ä¸ä¸ªsheetä¸ |
| | | EasyExcel.write(response.getOutputStream()) |
| | | .head(FeStandardSubstanceExcel.class) |
| | | .registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()) // èªéåºå宽 |
| | | .sheet("sheet") |
| | | .doWrite(studentList); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.requier.pojo.FeStandardSubstanceRecord; |
| | | import com.ruoyi.requier.service.FeStandardSubstanceRecordService; |
| | | import com.ruoyi.requier.vo.SubstanceRecordVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * <p> |
| | | * æ åç©è´¨æ¸
ååç¨å½è¿è®°å½è¡¨ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-14 01:49:11 |
| | | */ |
| | | @Api(tags = "æ åç©è´¨æ¸
ååç¨å½è¿è®°å½") |
| | | @RestController |
| | | @RequestMapping("/feStandardSubstanceRecord") |
| | | public class FeStandardSubstanceRecordController { |
| | | |
| | | @Resource |
| | | private FeStandardSubstanceRecordService feStandardSubstanceRecordService; |
| | | |
| | | @ApiOperation(value = "æ åç©è´¨æ¸
ååç¨") |
| | | @PostMapping("/borrowSubstance") |
| | | @Transactional |
| | | public Result borrowSubstance(@RequestBody FeStandardSubstanceRecord record) { |
| | | feStandardSubstanceRecordService.borrowSubstance(record); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ åç©è´¨æ¸
åå½è¿") |
| | | @PostMapping("/returnSubstance") |
| | | @Transactional |
| | | public Result returnSubstance(@RequestBody FeStandardSubstanceRecord record) { |
| | | feStandardSubstanceRecordService.returnSubstance(record); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ åç©è´¨æ¸
åé¢ç¨æ¥è¯¢") |
| | | @GetMapping("/getSubstanceRecord") |
| | | public Result getSubstanceRecord(Integer id) { |
| | | return Result.success(feStandardSubstanceRecordService.getSubstanceRecord(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å页æ¥è¯¢") |
| | | @GetMapping("/getPageSubstanceRecord") |
| | | public Result<IPage<SubstanceRecordVo>> getPageSubstanceRecord(Page page, SubstanceRecordVo vo) { |
| | | IPage<SubstanceRecordVo> ipage = feStandardSubstanceRecordService.getPage(page,vo); |
| | | return Result.success(ipage); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.requier.dto.FeTempHumDateDto; |
| | | import com.ruoyi.requier.dto.FeTempHumRecordDto; |
| | | import com.ruoyi.requier.pojo.FeTempHumDate; |
| | | import com.ruoyi.requier.pojo.FeTempHumRecord; |
| | | import com.ruoyi.requier.service.FeTempHumDateService; |
| | | import com.ruoyi.requier.service.FeTempHumRecordService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-温湿度 åºå -ç¶ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 11:02:18 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/feTempHumDate") |
| | | @Api(tags = "è¯éªåºå") |
| | | public class FeTempHumDateController { |
| | | |
| | | @Autowired |
| | | private FeTempHumDateService feTempHumDateService; |
| | | |
| | | @Autowired |
| | | private FeTempHumRecordService feTempHumRecordService; |
| | | |
| | | @PostMapping("addFeTempHumDate") |
| | | @ApiOperation("è¯éªåºå-æ°å¢/ä¿®æ¹") |
| | | public Result<?> addFeTempHumDate(@RequestBody FeTempHumDate feTempHumDate) { |
| | | feTempHumDateService.saveOrUpdate(feTempHumDate); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @DeleteMapping("deleteFeTempHumDate") |
| | | @ApiOperation("è¯éªåºå-å é¤") |
| | | public Result<?> deleteFeTempHumDate( |
| | | @RequestParam("dateId") Integer dateId) { |
| | | feTempHumDateService.removeById(dateId); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @GetMapping("getFeTempHumDate") |
| | | @ApiOperation("è¯éªåºå-æ¥è¯¢") |
| | | public Result<IPage<FeTempHumDateDto>> getFeTempHumDate(Page page) { |
| | | IPage<FeTempHumDateDto> page1 = feTempHumDateService.getFeTempHumDate(page); |
| | | return Result.success(page1); |
| | | } |
| | | |
| | | @PostMapping("addFeTempHumRecord") |
| | | @ApiOperation("设æ½åç¯å¢æ¡ä»¶è¦æ±-æ¸©æ¹¿åº¦è®°å½æ°å¢/ä¿®æ¹") |
| | | public Result<FeTempHumRecord> addFeTempHumRecord(@RequestBody FeTempHumRecord feTempHumRecord) { |
| | | feTempHumRecordService.saveOrUpdate(feTempHumRecord); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @DeleteMapping("deleteFeTempHumRecord") |
| | | @ApiOperation("设æ½åç¯å¢æ¡ä»¶è¦æ±-温湿度记å½å é¤") |
| | | public Result<?> deleteFeTempHumRecord( |
| | | @RequestParam("tempHumId") Integer tempHumId) { |
| | | feTempHumRecordService.removeById(tempHumId); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @GetMapping("getFeTempHumRecordPage") |
| | | @ApiOperation("设æ½åç¯å¢æ¡ä»¶è¦æ±-æ¸©æ¹¿åº¦è®°å½æ¥è¯¢") |
| | | public Result<IPage<FeTempHumRecordDto>> getFeTempHumRecordPage(Page page, Integer dateId) { |
| | | IPage<FeTempHumRecordDto> page1 = feTempHumRecordService.getFeTempHumRecordPage(page, dateId); |
| | | return Result.success(page1); |
| | | } |
| | | |
| | | /** |
| | | * 温湿度记å½å¯¼åº |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "温湿度记å½å¯¼åº") |
| | | @GetMapping("/exportTemperatureAndHumidityRecords") |
| | | public void exportTemperatureAndHumidityRecords(Integer dateId, HttpServletResponse response){ |
| | | feTempHumDateService.exportTemperatureAndHumidityRecords(dateId, response); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.requier.dto.ForeignRegisterDto; |
| | | import com.ruoyi.requier.pojo.ForeignRegister; |
| | | import com.ruoyi.requier.service.ForeignRegisterService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * 夿¥äººåç»è®° å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-19 07:17:35 |
| | | */ |
| | | @Api(tags = "夿¥äººåç»è®°") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/foreignRegister") |
| | | public class ForeignRegisterController { |
| | | |
| | | private ForeignRegisterService foreignRegisterService; |
| | | |
| | | /** |
| | | * 夿¥äººåç»è®°å页æ¥è¯¢ |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "夿¥äººåç»è®°å页æ¥è¯¢") |
| | | @GetMapping("/pageForeignRegister") |
| | | public Result<IPage<ForeignRegisterDto>> pageForeignRegister(Page page, ForeignRegisterDto foreignRegister) throws Exception { |
| | | return Result.success(foreignRegisterService.pageForeignRegister(page, foreignRegister)); |
| | | } |
| | | |
| | | /** |
| | | * 夿¥äººåç»è®°æ°å¢ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "夿¥äººåç»è®°æ°å¢") |
| | | @PostMapping("/addForeignRegister") |
| | | public Result addForeignRegister(@RequestBody ForeignRegister foreignRegister){ |
| | | return Result.success(foreignRegisterService.save(foreignRegister)); |
| | | } |
| | | |
| | | /** |
| | | * 夿¥äººåç»è®°ä¿®æ¹ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "夿¥äººåç»è®°ä¿®æ¹") |
| | | @PostMapping("/updateForeignRegister") |
| | | public Result updateForeignRegister(@RequestBody ForeignRegister foreignRegister){ |
| | | return Result.success(foreignRegisterService.updateById(foreignRegister)); |
| | | } |
| | | |
| | | /** |
| | | * 夿¥äººåç»è®°å é¤ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "夿¥äººåç»è®°å é¤") |
| | | @DeleteMapping("/delForeignRegister") |
| | | public Result delForeignRegister(Integer registerId){ |
| | | return Result.success(foreignRegisterService.removeById(registerId)); |
| | | } |
| | | |
| | | /** |
| | | * 夿¥äººåç»è®°æ¥ç详æ
|
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "夿¥äººåç»è®°æ¥ç详æ
") |
| | | @GetMapping("/getForeignRegisterOne") |
| | | public Result<ForeignRegister> getForeignRegisterOne(Integer registerId){ |
| | | return Result.success(foreignRegisterService.getById(registerId)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºå¤æ¥äººåç»è®° |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "导åºå¤æ¥äººåç»è®°") |
| | | @GetMapping("/exportForeignRegister") |
| | | public void exportForeignRegister(ForeignRegisterDto foreignRegister, HttpServletResponse response){ |
| | | foreignRegisterService.exportForeignRegister(foreignRegister, response); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.requier.dto.InternalWastesDto; |
| | | import com.ruoyi.requier.pojo.InternalWastes; |
| | | import com.ruoyi.requier.service.InternalWastesService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨å
å¡ä¸åºç»è®° å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-19 06:39:27 |
| | | */ |
| | | @Api(tags = "å®å
¨å
å¡ä¸åºç»è®°") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/internalWastes") |
| | | public class InternalWastesController { |
| | | |
| | | private InternalWastesService internalWastesService; |
| | | |
| | | /** |
| | | * å®å
¨å
å¡ä¸åºå¤çå页æ¥è¯¢ |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å®å
¨å
å¡ä¸åºå¤çå页æ¥è¯¢") |
| | | @GetMapping("/pageInternalWastes") |
| | | public Result<IPage<InternalWastesDto>> pageInternalWastes(Page page,InternalWastes internalWastes) throws Exception { |
| | | return Result.success(internalWastesService.pageInternalWastes(page, internalWastes)); |
| | | } |
| | | |
| | | /** |
| | | * å®å
¨å
å¡ä¸åºå¤çæ°å¢ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å®å
¨å
å¡ä¸åºå¤çæ°å¢") |
| | | @PostMapping("/addInternalWastes") |
| | | public Result addInternalWastes(@RequestBody InternalWastesDto internalWastes){ |
| | | return Result.success(internalWastesService.addInternalWastes(internalWastes)); |
| | | } |
| | | |
| | | /** |
| | | * å®å
¨å
å¡ä¸åºå¤çä¿®æ¹ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å®å
¨å
å¡ä¸åºå¤çä¿®æ¹") |
| | | @PostMapping("/updateInternalWastes") |
| | | public Result updateInternalWastes(@RequestBody InternalWastesDto internalWastes){ |
| | | return Result.success(internalWastesService.updateInternalWastes(internalWastes)); |
| | | } |
| | | |
| | | /** |
| | | * å®å
¨å
å¡ä¸åºå¤çå é¤ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å®å
¨å
å¡ä¸åºå¤çå é¤") |
| | | @DeleteMapping("/delInternalWastes") |
| | | public Result delInternalWastes(Integer wastesId){ |
| | | return Result.success(internalWastesService.delInternalWastes(wastesId)); |
| | | } |
| | | |
| | | /** |
| | | * å®å
¨å
å¡ä¸åºå¤çæ¥ç详æ
|
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å®å
¨å
å¡ä¸åºå¤çæ¥ç详æ
") |
| | | @GetMapping("/getInternalWastesOne") |
| | | public Result<InternalWastesDto> getInternalWastesOne(Integer wastesId){ |
| | | return Result.success(internalWastesService.getInternalWastesOne(wastesId)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºä¸åºå¤ç |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "导åºä¸åºå¤ç") |
| | | @GetMapping("/exportInternalWastes") |
| | | public void exportInternalWastes(Integer wastesId, HttpServletResponse response){ |
| | | internalWastesService.exportInternalWastes(wastesId, response); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesContents; |
| | | import com.ruoyi.requier.service.ProcurementSuppliesContentsService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | @Api(tags = "æå¡åä¾åºåéè´å
¬å¸å表") |
| | | @RestController |
| | | @RequestMapping("/procurementSuppliesContents") |
| | | @AllArgsConstructor |
| | | public class ProcurementSuppliesContentsController { |
| | | |
| | | private ProcurementSuppliesContentsService procurementSuppliesService; |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢ç®å½å表") |
| | | @GetMapping("/directoryListing") |
| | | public Result directoryListing() { |
| | | return Result.success(procurementSuppliesService.directoryListing()); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ ¹æ®idæ¥è¯¢") |
| | | @GetMapping("/selectProcurementSuppliesContentById") |
| | | public Result selectProcurementSuppliesContentById(Integer id) { |
| | | return Result.success(procurementSuppliesService.getById(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ·»å åèç¹") |
| | | @PostMapping("/addProcurementSuppliesContents") |
| | | public Result addProcurementSuppliesContents(@RequestBody ProcurementSuppliesContents procurementSupplies) { |
| | | procurementSupplies.setUpdateTime(LocalDateTime.now()); |
| | | procurementSuppliesService.save(procurementSupplies); |
| | | return Result.success(procurementSupplies.getId()); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ´æ°åèç¹") |
| | | @PostMapping("/updateProcurementSuppliesContents") |
| | | public Result updateProcurementSuppliesContents(@RequestBody ProcurementSuppliesContents procurementSupplies) { |
| | | return Result.success(procurementSuppliesService.updateById(procurementSupplies)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤åèç¹") |
| | | @DeleteMapping("/deleteProcurementSuppliesContentById") |
| | | public Result deleteProcurementSuppliesContentById(Integer id) { |
| | | List<ProcurementSuppliesContents> list = procurementSuppliesService.list(new LambdaQueryWrapper<ProcurementSuppliesContents>() |
| | | .eq(ProcurementSuppliesContents::getParentId, id)); |
| | | if(list.size() > 0) { |
| | | throw new ErrorException("该èç¹å«æåèç¹,请å
å é¤åèç¹"); |
| | | } |
| | | procurementSuppliesService.removeById(id); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢ææèç¹") |
| | | @GetMapping("/getNodeNames") |
| | | public Result getNodeNames() { |
| | | return Result.success(procurementSuppliesService.getNodeNames()); |
| | | } |
| | | |
| | | @ApiOperation(value = "è·åææäººå") |
| | | @GetMapping("/getUserList") |
| | | public Result getUserList() { |
| | | return Result.success(procurementSuppliesService.getUserList()); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.exception.ServiceException; |
| | | import com.ruoyi.requier.dto.ProcurementSuppliesExpendDto; |
| | | import com.ruoyi.requier.service.ProcurementSuppliesExpendsService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * <p> |
| | | * å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 03:47:19 |
| | | */ |
| | | @Api(tags = "æå¡åä¾åºåéè´èææ¶è") |
| | | @RestController |
| | | @RequestMapping("/procurementSuppliesExpends") |
| | | public class ProcurementSuppliesExpendsController { |
| | | @Autowired |
| | | private ProcurementSuppliesExpendsService procurementSuppliesExpendsService; |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢ææè®°å½") |
| | | @GetMapping("/procurementSuppliesExpendlist") |
| | | public Result procurementSuppliesExpendlist(Page page,Long procurementSuppliesListId) { |
| | | return Result.success(procurementSuppliesExpendsService.selectAll(page,procurementSuppliesListId)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢æ¶èè®°å½") |
| | | @PostMapping("/addProcurementSuppliesExpends") |
| | | public Result addProcurementSuppliesExpends(@RequestBody ProcurementSuppliesExpendDto dto) { |
| | | Integer added = procurementSuppliesExpendsService.addExpends(dto); |
| | | |
| | | if ( added == 0) { |
| | | return Result.fail("å½ååºåä¸è¶³"); |
| | | } |
| | | return Result.success(added); |
| | | } |
| | | |
| | | @ApiOperation(value = "å 餿¶èè®°å½") |
| | | @DeleteMapping("/deleteProcurementSuppliesExpends") |
| | | public Result deleteProcurementSuppliesExpends(Long expendId) throws ServiceException { |
| | | return Result.success(procurementSuppliesExpendsService.deleteExpends(expendId)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.requier.dto.ProcurementSuppliesListDto; |
| | | import com.ruoyi.requier.mapper.ProcurementSuppliesListMapper; |
| | | import com.ruoyi.requier.mapper.SupplierManagementMapper; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesList; |
| | | import com.ruoyi.requier.pojo.SupplierManagement; |
| | | import com.ruoyi.requier.service.ProcurementSuppliesListService; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡ä¸ä¾åºå èæå表 å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 04:04:32 |
| | | */ |
| | | @Api(tags = "æå¡åä¾åºåéè´èæ") |
| | | @RestController |
| | | @RequestMapping("/procurementSuppliesList") |
| | | public class ProcurementSuppliesListController { |
| | | @Autowired |
| | | private ProcurementSuppliesListService procurementSuppliesListService; |
| | | |
| | | @Resource |
| | | private ProcurementSuppliesListMapper listMapper; |
| | | |
| | | @Autowired |
| | | private UserMapper userMapper; |
| | | |
| | | @Autowired |
| | | private SupplierManagementMapper supplierManagementMapper; |
| | | |
| | | @ApiOperation(value = "å页æ¥è¯¢") |
| | | @GetMapping("/procurementSuppliesList") |
| | | public Result<IPage<ProcurementSuppliesListDto>> procurementSuppliesList(Page page, ProcurementSuppliesListDto list) { |
| | | return Result.success(procurementSuppliesListService.selectList(page, list)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ ¹æ®idæ¥è¯¢èæ") |
| | | @GetMapping("/selectProcurementSuppliesListById") |
| | | public Result selectProcurementSuppliesListById(Integer id) { |
| | | ProcurementSuppliesList procurementSuppliesStore = listMapper.selectById(id); |
| | | ProcurementSuppliesListDto dto = new ProcurementSuppliesListDto(); |
| | | BeanUtils.copyProperties(procurementSuppliesStore, dto); |
| | | |
| | | User user = userMapper.selectById(procurementSuppliesStore.getPersonInCharge()); |
| | | User updateUser = userMapper.selectById(procurementSuppliesStore.getUpdateUser()); |
| | | SupplierManagement supplierManagement = supplierManagementMapper.selectById(procurementSuppliesStore.getSupplier()); |
| | | |
| | | dto.setPersonInChargeName(user.getName()); |
| | | dto.setUpdateUserName(updateUser.getName()); |
| | | dto.setSupplierName(supplierManagement.getSupplierName()); |
| | | return Result.success(dto); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢èæ") |
| | | @PostMapping("/addProcurementSuppliesList") |
| | | public Result addProcurementSuppliesList(@RequestBody ProcurementSuppliesListDto dto) { |
| | | return Result.success(procurementSuppliesListService.addProcurementSuppliesList(dto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¼è¾èæ") |
| | | @PostMapping("/updateProcurementSuppliesList") |
| | | public Result updateProcurementSuppliesList(@RequestBody ProcurementSuppliesListDto dto) { |
| | | return Result.success(procurementSuppliesListService.updateProcurementSuppliesList(dto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤èæ") |
| | | @DeleteMapping("/deleteProcurementSuppliesList") |
| | | public Result deleteProcurementSuppliesList(Long id) { |
| | | return Result.success(listMapper.deleteById(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "导åºèæå表") |
| | | @GetMapping("/exportProcurementSuppliesList/{parentId}") |
| | | public void exportProcurementSuppliesList( @PathVariable Integer parentId ,HttpServletResponse response) throws Exception { |
| | | procurementSuppliesListService.exportProcurementSuppliesList(parentId,response); |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.requier.dto.StoreDto; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesConsumables; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesStore; |
| | | import com.ruoyi.requier.service.ProcurementSuppliesConsumablesService; |
| | | import com.ruoyi.requier.service.ProcurementSuppliesStoreService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Api(tags = "æå¡åä¾åºåéè´èæå
¥åº") |
| | | @RestController |
| | | @RequestMapping("/procurementSuppliesStore") |
| | | @AllArgsConstructor |
| | | public class ProcurementSuppliesStoreController { |
| | | |
| | | private ProcurementSuppliesStoreService storeService; |
| | | |
| | | private ProcurementSuppliesConsumablesService consumablesService; |
| | | |
| | | |
| | | @ApiOperation(value = "èæå
¥åºå页æ¥è¯¢") |
| | | @GetMapping("/storeList") |
| | | public Result storeList(Page page,StoreDto storeDto) throws Exception { |
| | | return Result.success(storeService.selectStoreList(page, storeDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ·»å èæå
¥åºå表") |
| | | @PostMapping("/addStore") |
| | | public Result addStore(@RequestBody Map<String,Object> map) { |
| | | storeService.addStore(map); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤èæå
¥åº") |
| | | @DeleteMapping("/deleteStore") |
| | | public Result deleteStore(@RequestParam("id") Integer id,@RequestParam("consumablesId") Integer consumablesId) { |
| | | storeService.deleteStore(id,consumablesId); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ´æ°èæå
¥åº") |
| | | @PostMapping("/updateStore") |
| | | public Result updateStore(@RequestBody Map<String,Object> map) { |
| | | storeService.updateStore(map); |
| | | return Result.success(); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "æ ¹æ®idæ¥è¯¢èæå
¥åº") |
| | | @GetMapping("/selectStoreById") |
| | | public Result selectStore(Integer id) { |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | ProcurementSuppliesStore procurementSuppliesStore = storeService.getById(id); |
| | | List<ProcurementSuppliesConsumables> list = consumablesService.list(new LambdaQueryWrapper<ProcurementSuppliesConsumables>() |
| | | .eq(ProcurementSuppliesConsumables::getStoreId, id)); |
| | | map.put("store", procurementSuppliesStore); |
| | | map.put("consumables", list); |
| | | return Result.success(map); |
| | | } |
| | | |
| | | @ApiOperation("导åºExcel") |
| | | @GetMapping("/exportExcel/{parentId}") |
| | | public void exportExcel(@PathVariable Integer parentId, HttpServletResponse response) throws IOException { |
| | | storeService.exportExcel(parentId, response); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.requier.pojo.SupplierManagement; |
| | | import com.ruoyi.requier.service.ProcurementSuppliesContentsService; |
| | | import com.ruoyi.requier.service.SupplierManagementService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 02:46:45 |
| | | */ |
| | | @Api(tags = "ä¾åºå管ç") |
| | | @RestController |
| | | @RequestMapping("/supplierManagement") |
| | | @AllArgsConstructor |
| | | public class SupplierManagementController { |
| | | |
| | | @Autowired |
| | | private SupplierManagementService supplierManagementService; |
| | | |
| | | @Autowired |
| | | private ProcurementSuppliesContentsService procurementSuppliesContentsService; |
| | | |
| | | @ApiOperation("æ¥è¯¢ä¾æ¹åå½") |
| | | @GetMapping("/selectSupplierManagementByParentId/{parentId}") |
| | | public Result<List<SupplierManagement>> selectSupplierManagementByParentId(@PathVariable Integer parentId) throws Exception { |
| | | return Result.success(supplierManagementService.selectSupplierManagementByParentId(parentId)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("å页æ¥è¯¢åæ ¼ä¾æ¹åå½") |
| | | @GetMapping("/selectQualifiedSupplierManagementPage") |
| | | public Result<IPage<SupplierManagement>> selectQualifiedSupplierManagement(SupplierManagement supplierManagement, Page page) throws Exception { |
| | | return Result.success(supplierManagementService.selectQualifiedSupplierManagement(page, supplierManagement)); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢ä¾åºå") |
| | | @GetMapping("/selectQualifiedSupplierManagementById/{supplierManagementId}") |
| | | public Result<List<SupplierManagement>> selectQualifiedSupplierManagementById(@PathVariable Integer supplierManagementId) throws Exception { |
| | | return Result.success(supplierManagementService.selectQualifiedSupplierManagementById(supplierManagementId)); |
| | | } |
| | | |
| | | @ApiOperation("æ°å¢ä¾åºå") |
| | | @PostMapping("/addSupplierManagement") |
| | | public Result addSupplierManagement(@RequestBody SupplierManagement supplierManagement) { |
| | | supplierManagement.setCreateUser(SecurityUtils.getUserId().intValue()); |
| | | return Result.success(supplierManagementService.save(supplierManagement)); |
| | | } |
| | | |
| | | @ApiOperation("ä¿®æ¹ä¾åºå") |
| | | @PostMapping("/updateSupplierManagement") |
| | | public Result updateSupplierManagement(@RequestBody SupplierManagement supplierManagement) { |
| | | supplierManagement.setUpdateUser(SecurityUtils.getUserId().intValue()); |
| | | return Result.success(supplierManagementService.updateById(supplierManagement)); |
| | | } |
| | | |
| | | @ApiOperation("å é¤ä¾åºå") |
| | | @DeleteMapping("/delSupplierManagement/{id}") |
| | | public Result delSupplierManagement(@PathVariable Integer id) { |
| | | return Result.success(supplierManagementService.removeById(id)); |
| | | } |
| | | |
| | | @ApiOperation("导åºä¾åºå") |
| | | @GetMapping("/exportSupplierManagement/{parentId}") |
| | | public void exportSupplierManagement(@PathVariable Integer parentId, HttpServletResponse response) throws Exception { |
| | | supplierManagementService.exportSupplierManagement(parentId, response); |
| | | } |
| | | |
| | | @ApiOperation("æ¥è¯¢å
¨é¨ä¾æ¹åå½") |
| | | @GetMapping("/selectSupplierManagementAll") |
| | | public Result<List<SupplierManagement>> selectSupplierManagementAll() throws Exception { |
| | | return Result.success(supplierManagementService.selectSupplierManagementAll()); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.requier.pojo.SuppliersDirectoryContents; |
| | | import com.ruoyi.requier.service.SuppliersDirectoryContentsService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡åä¾åºåéè´ç®å½ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-12-17 06:14:51 |
| | | */ |
| | | @Api(tags = "ä¾åºåç®¡çæ ") |
| | | @RestController |
| | | @RequestMapping("/suppliersDirectoryContents") |
| | | public class SuppliersDirectoryContentsController { |
| | | |
| | | @Autowired |
| | | private SuppliersDirectoryContentsService suppliersDirectoryContentsService; |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢ç®å½å表") |
| | | @GetMapping("/suppliersDirectoryContentsListing") |
| | | public Result suppliersDirectoryContentsListing() { |
| | | return Result.success(suppliersDirectoryContentsService.directoryListing()); |
| | | |
| | | } |
| | | |
| | | @ApiOperation(value = "æ ¹æ®idæ¥è¯¢") |
| | | @GetMapping("/selectSuppliersDirectoryContentsById") |
| | | public Result selectSuppliersDirectoryContentsById(Integer id) { |
| | | return Result.success(suppliersDirectoryContentsService.getById(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ·»å åèç¹") |
| | | @PostMapping("/addSuppliersDirectoryContents") |
| | | public Result addSuppliersDirectoryContents(@RequestBody SuppliersDirectoryContents suppliersDirectoryContents ) { |
| | | suppliersDirectoryContents.setUpdateTime(LocalDateTime.now()); |
| | | suppliersDirectoryContentsService.save(suppliersDirectoryContents); |
| | | return Result.success(suppliersDirectoryContents.getId()); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ´æ°åèç¹") |
| | | @PostMapping("/updateSuppliersDirectoryContents") |
| | | public Result updateSuppliersDirectoryContents(@RequestBody SuppliersDirectoryContents suppliersDirectoryContents) { |
| | | return Result.success(suppliersDirectoryContentsService.updateById(suppliersDirectoryContents)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤åèç¹") |
| | | @DeleteMapping("/deleteSuppliersDirectoryContentsById") |
| | | public Result deleteSuppliersDirectoryContentsById(Integer id) { |
| | | List<SuppliersDirectoryContents> list = suppliersDirectoryContentsService.list(new LambdaQueryWrapper<SuppliersDirectoryContents>() |
| | | .eq(SuppliersDirectoryContents::getParentId, id)); |
| | | if(list.size() > 0) { |
| | | throw new ErrorException("该èç¹å«æåèç¹,请å
å é¤åèç¹"); |
| | | } |
| | | suppliersDirectoryContentsService.removeById(id); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢ææèç¹") |
| | | @GetMapping("/getSuppliersDirectoryContentsNodeNames") |
| | | public Result getSuppliersDirectoryContentsNodeNames() { |
| | | return Result.success(suppliersDirectoryContentsService.getSuppliersDirectoryContentsNodeNames()); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.dto; |
| | | |
| | | import com.ruoyi.requier.pojo.FeStandardSubstanceAcceptance; |
| | | import com.ruoyi.requier.pojo.FeStandardSubstanceAcceptanceInspection; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class AcceptanceDto { |
| | | |
| | | private FeStandardSubstanceAcceptance acceptance; |
| | | |
| | | private List<FeStandardSubstanceAcceptanceInspection> list; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.dto; |
| | | |
| | | import com.ruoyi.requier.pojo.FeIllumination; |
| | | import com.ruoyi.requier.pojo.FeIlluminationDetectionArea; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class FeIlluminationAddDto extends FeIllumination { |
| | | |
| | | @ApiModelProperty("设æ½åç¯å¢æ¡ä»¶è¦æ±-ç
§åº¦è®°å½è¡¨-æ£æµåºå") |
| | | private List<FeIlluminationDetectionArea> illuminationDetectionAreaList; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.dto; |
| | | |
| | | import com.ruoyi.requier.pojo.FeIllumination; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | public class FeIlluminationDto extends FeIllumination { |
| | | @ApiModelProperty("æ£æµè
") |
| | | private String checkerUser; |
| | | |
| | | @ApiModelProperty("æ ¸æ¥äºº") |
| | | private String testerUser; |
| | | |
| | | @ApiModelProperty("设å¤åç§°") |
| | | private String deviceName; |
| | | |
| | | @ApiModelProperty("设å¤ç¼å·") |
| | | private String managementNumber; |
| | | |
| | | @ApiModelProperty("æ ¡åæ¥æ") |
| | | private Date calibrationDate; |
| | | |
| | | @ApiModelProperty("䏿¬¡æ ¡åæ¥æ") |
| | | private Date nextCalibrationDate; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.dto; |
| | | |
| | | import com.ruoyi.requier.pojo.FeIllumination; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/11/28 |
| | | */ |
| | | @Data |
| | | public class FeIlluminationExportDto extends FeIllumination { |
| | | |
| | | @ApiModelProperty("设å¤åç§°") |
| | | private String deviceName; |
| | | |
| | | @ApiModelProperty("设å¤ç¼å·") |
| | | private String managementNumber; |
| | | |
| | | @ApiModelProperty("æ ¡åæ¥æ") |
| | | private String calibrationDateString; |
| | | |
| | | @ApiModelProperty("䏿¬¡æ ¡åæ¥æ") |
| | | private String nextCalibrationDateString; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.dto; |
| | | |
| | | import com.ruoyi.requier.pojo.FeMeasuredQuantity; |
| | | import com.ruoyi.requier.pojo.FePowerStable; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class FePowerStableAddDto extends FePowerStable { |
| | | |
| | | @ApiModelProperty("设æ½åç¯å¢æ¡ä»¶è¦æ±-çµæºç¨³å®æ§-æµå®é") |
| | | private List<FeMeasuredQuantity> feMeasuredQuantityList; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.dto; |
| | | |
| | | import com.ruoyi.requier.pojo.FePowerStable; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | public class FePowerStableDto extends FePowerStable { |
| | | |
| | | @ApiModelProperty("æ£æµè
") |
| | | private String checkerUser; |
| | | |
| | | @ApiModelProperty("æ ¸æ¥äºº") |
| | | private String testerUser; |
| | | |
| | | @ApiModelProperty("设å¤åç§°") |
| | | private String deviceName; |
| | | |
| | | @ApiModelProperty("设å¤ç¼å·") |
| | | private String managementNumber; |
| | | |
| | | @ApiModelProperty("æ ¡åæ¥æ") |
| | | private Date calibrationDate; |
| | | |
| | | @ApiModelProperty("䏿¬¡æ ¡åæ¥æ") |
| | | private Date nextCalibrationDate; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.dto; |
| | | |
| | | import com.ruoyi.requier.pojo.FePowerStable; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/11/28 |
| | | */ |
| | | @Data |
| | | public class FePowerStableExportDto extends FePowerStable { |
| | | |
| | | @ApiModelProperty("æµè¯æ¥æ") |
| | | private String testDateString; |
| | | |
| | | @ApiModelProperty("设å¤åç§°") |
| | | private String deviceName; |
| | | |
| | | @ApiModelProperty("设å¤ç¼å·") |
| | | private String managementNumber; |
| | | |
| | | @ApiModelProperty("æ ¡åæ¥æ") |
| | | private String calibrationDateString; |
| | | |
| | | @ApiModelProperty("䏿¬¡æ ¡åæ¥æ") |
| | | private String nextCalibrationDateString; |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.dto; |
| | | |
| | | import com.ruoyi.requier.pojo.FeTempHumDate; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class FeTempHumDateDto extends FeTempHumDate { |
| | | |
| | | @ApiModelProperty("å建人") |
| | | private String createName; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.dto; |
| | | |
| | | import com.ruoyi.requier.pojo.FeTempHumRecord; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class FeTempHumRecordDto extends FeTempHumRecord { |
| | | |
| | | @ApiModelProperty("ä¸åè®°å½ååç§°") |
| | | private String afternoonRecorderUser; |
| | | |
| | | @ApiModelProperty("ä¸åè®°å½ååç§°") |
| | | private String morningRecorderUser; |
| | | |
| | | @ApiModelProperty("æ£æµå¤©") |
| | | private Integer month; |
| | | |
| | | @ApiModelProperty("ä¸åæ¶é´") |
| | | private String afternoonTimeStr; |
| | | |
| | | @ApiModelProperty("ä¸å-æ¶é´") |
| | | private String morningTestTimeStr; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.dto; |
| | | |
| | | import com.deepoove.poi.data.PictureRenderData; |
| | | import com.ruoyi.requier.pojo.ForeignRegister; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/11/19 |
| | | */ |
| | | @Data |
| | | public class ForeignRegisterDto extends ForeignRegister { |
| | | |
| | | @ApiModelProperty("å¼å§æ¶é´") |
| | | private String beginDate; |
| | | |
| | | @ApiModelProperty("ç»ææ¶é´") |
| | | private String endDate; |
| | | |
| | | @ApiModelProperty("éªå人åç¾å") |
| | | private PictureRenderData accompanyingRender; |
| | | |
| | | @ApiModelProperty("æ¹å人åç¾å") |
| | | private PictureRenderData approveRender; |
| | | |
| | | @ApiModelProperty("éªå人åç¾åå°å") |
| | | private String accompanyingUrl; |
| | | |
| | | @ApiModelProperty("éªå人åç¾åå°å") |
| | | private String approveUrl; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.dto; |
| | | |
| | | import com.ruoyi.requier.pojo.InternalWastes; |
| | | import com.ruoyi.requier.pojo.InternalWastesDetail; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/11/19 |
| | | */ |
| | | @Data |
| | | public class InternalWastesDto extends InternalWastes { |
| | | |
| | | @ApiModelProperty("ä¸åºç»è®°è¯¦æ
") |
| | | private List<InternalWastesDetail> wastesDetailList; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.dto; |
| | | |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesExpends; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class ProcurementSuppliesExpendDto extends ProcurementSuppliesExpends { |
| | | |
| | | /** |
| | | * 项ç®èæåç§° |
| | | */ |
| | | @ApiModelProperty("项ç®èæåç§°") |
| | | private String listName; |
| | | |
| | | /** |
| | | * å½å
¥äººåç§° |
| | | */ |
| | | @ApiModelProperty("å½å
¥äººåç§°") |
| | | private String enterUserName; // |
| | | |
| | | /** |
| | | * æ´æ°äººåç§° |
| | | */ |
| | | @ApiModelProperty("æ´æ°äººåç§°") |
| | | private String updateUserName; // |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.dto; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesList; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ExcelIgnoreUnannotated |
| | | public class ProcurementSuppliesListDto extends ProcurementSuppliesList { |
| | | @ExcelProperty("åèä¾åºå") |
| | | private String supplierName; // ä¾åºååç§° |
| | | @ExcelProperty("æ´æ°äºº") |
| | | private String updateUserName; // æ´æ°äººåç§° |
| | | @ExcelProperty("è´è´£äºº") |
| | | private String personInChargeName; // è´è´£äººåç§° |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.dto; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.baomidou.mybatisplus.annotation.FieldFill; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDateTime; |
| | | |
| | | @Data |
| | | @ExcelIgnoreUnannotated |
| | | public class ProcurementSuppliesListEDto { |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | @ApiModelProperty("ç¼å·") |
| | | @ExcelProperty("ç¼å·") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("ç®å½id") |
| | | @ExcelProperty("ç®å½") |
| | | private Long contentsId; |
| | | |
| | | @ApiModelProperty("èæç±»å") |
| | | @ExcelProperty("ç±»å«") |
| | | private String consumablesType; |
| | | |
| | | @ApiModelProperty("è´§å·") |
| | | @ExcelProperty("è´§å·") |
| | | private String itemNumber; |
| | | |
| | | @ApiModelProperty("èæåç§°") |
| | | @ExcelProperty("åç§°") |
| | | private String consumablesName; |
| | | |
| | | @ApiModelProperty("è§æ ¼") |
| | | @ExcelProperty("è§æ ¼") |
| | | private String specifications; |
| | | |
| | | @ApiModelProperty("计éåä½") |
| | | @ExcelProperty("计éåä½") |
| | | private String unit; |
| | | |
| | | @ApiModelProperty("åèä»·æ ¼") |
| | | @ExcelProperty("åèä»·æ ¼") |
| | | private BigDecimal referencePrice; |
| | | |
| | | @ApiModelProperty("åæ¾ä½ç½®") |
| | | @ExcelProperty("åæ¾ä½ç½®") |
| | | private Integer contentId; |
| | | |
| | | @ApiModelProperty("è´è´£äºº") |
| | | @ExcelProperty("è´è´£äºº") |
| | | private Integer personInCharge; |
| | | |
| | | @ApiModelProperty("åºåä¸é") |
| | | @ExcelProperty("åºåä¸é") |
| | | private Integer upperLimit; |
| | | |
| | | @ApiModelProperty("åºåä¸é") |
| | | @ExcelProperty("åºåä¸é") |
| | | private Integer lowerLimit; |
| | | |
| | | @ApiModelProperty("ä¾åºå") |
| | | @ExcelProperty("ä¾åºå") |
| | | private Integer supplier; |
| | | |
| | | @ApiModelProperty("èæå¾æ ") |
| | | @ExcelProperty("èæå¾æ ") |
| | | private String consumablesIcon; |
| | | |
| | | @ApiModelProperty("èæéä»¶") |
| | | @ExcelProperty("èæéä»¶") |
| | | private String attachment; |
| | | |
| | | @ApiModelProperty("夿³¨") |
| | | @ExcelProperty("夿³¨") |
| | | private String remark; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @ExcelProperty("å建æ¶é´") |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty("æ´æ°æ¶é´") |
| | | @ExcelProperty("æ´æ°æ¶é´") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @ApiModelProperty("æ´æ°äºº") |
| | | @ExcelProperty("æ´æ°äºº") |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("å½ååºåæ°é") |
| | | @ExcelProperty("å½ååºå") |
| | | private Integer currentAmount; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.dto; |
| | | |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesStore; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class StoreDto extends ProcurementSuppliesStore { |
| | | |
| | | |
| | | @ApiModelProperty("èæåç§°") |
| | | private String consumablesName; |
| | | |
| | | @ApiModelProperty("å
¥åºæ°é") |
| | | private Integer storeNumber; |
| | | |
| | | @ApiModelProperty("å
¥åºæ»ä»·") |
| | | private Double totalPrice; |
| | | |
| | | @ApiModelProperty("ç»è®°äºº") |
| | | private String registrantName; |
| | | |
| | | @ApiModelProperty("å
¥åºäºº") |
| | | private String storageUserName; |
| | | |
| | | private Integer consumablesId; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.dto; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ExcelIgnoreUnannotated |
| | | public class SupplierManagementDto { |
| | | |
| | | @ApiModelProperty("ä¾åºå") |
| | | @ExcelProperty("ä¾åºå") |
| | | private String supplierName; |
| | | |
| | | @ApiModelProperty("ç¼å·") |
| | | @ExcelProperty("ç¼å·") |
| | | private String supplierRef; |
| | | |
| | | @ApiModelProperty("ä¾åºåç©åæå¡åç§°") |
| | | @ExcelProperty("ä¾åºåç©åæå¡åç§°") |
| | | private String supplierItemServiceName; |
| | | |
| | | @ApiModelProperty("é®ç¼") |
| | | @ExcelProperty("é®ç¼") |
| | | private String postalCode; |
| | | |
| | | @ApiModelProperty("å°å") |
| | | @ExcelProperty("å°å") |
| | | private String adress; |
| | | |
| | | @ApiModelProperty("è系人") |
| | | @ExcelProperty("è系人") |
| | | private String contacts; |
| | | |
| | | @ApiModelProperty("èç³»çµè¯") |
| | | @ExcelProperty("èç³»çµè¯") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty("æ·å") |
| | | @ExcelProperty("æ·å") |
| | | private String householdName; |
| | | |
| | | @ApiModelProperty("ä¼ ç") |
| | | @ExcelProperty("ä¼ ç") |
| | | private String fax; |
| | | |
| | | @ApiModelProperty("弿·è¡") |
| | | @ExcelProperty("弿·è¡") |
| | | private String openingName; |
| | | |
| | | @ApiModelProperty("ç½å") |
| | | @ExcelProperty("ç½å") |
| | | private String website; |
| | | |
| | | @ApiModelProperty("è´¦å·") |
| | | @ExcelProperty("è´¦å·") |
| | | private String accountName; |
| | | |
| | | @ApiModelProperty("email") |
| | | @ExcelProperty("email") |
| | | private String email; |
| | | |
| | | @ApiModelProperty("夿³¨") |
| | | @ExcelProperty("夿³¨") |
| | | private String remarks; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.excel; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | @Data |
| | | public class FeCalibrationScheduleExport { |
| | | @ExcelProperty("仪å¨åç§°") |
| | | private String instrumentName; |
| | | |
| | | @ExcelProperty("è§æ ¼åå·") |
| | | private String model; |
| | | |
| | | @ExcelProperty("管çç¼å·") |
| | | private Integer managementNumber; |
| | | |
| | | @ExcelProperty("ææ¯ææ ") |
| | | private String technicalIndicators; |
| | | |
| | | @ExcelProperty("æ£å®å¨æ") |
| | | private String verificationCyde; |
| | | |
| | | @ExcelProperty("æ£å®åä½") |
| | | private String verificationUnit; |
| | | |
| | | @ExcelProperty("æè¿æ£å®æ¶é´") |
| | | private LocalDateTime recentlyTime; |
| | | |
| | | @ExcelProperty("计å䏿¬¡æ£å®æ¶é´") |
| | | private LocalDateTime nextTime; |
| | | |
| | | @ExcelProperty("夿³¨") |
| | | private String remark; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.excel; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class FeLightningProtectionExcel { |
| | | @ExcelProperty("åæä»¶å") |
| | | private String fileName; |
| | | |
| | | @ExcelProperty("æ£æµæ¥æ") |
| | | private String detectionDate; |
| | | |
| | | @ExcelProperty("æææ") |
| | | private String termValidity; |
| | | |
| | | @ExcelProperty("æ£æµåä½") |
| | | private String detectionUnit; |
| | | |
| | | @ExcelProperty("å建æ¶é´") |
| | | private String createTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.excel; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | @Data |
| | | public class FeStandardSubstanceExcel { |
| | | @ExcelProperty("æ åç©è´¨åç§°") |
| | | private String name; |
| | | |
| | | @ExcelProperty("è§æ ¼åå·") |
| | | private String model; |
| | | |
| | | @ExcelProperty("ç产åå®¶") |
| | | private String factoryManufacturer; |
| | | |
| | | @ExcelProperty("åºåºç¼å·") |
| | | private String factoryNum; |
| | | |
| | | @ExcelProperty("管çç¼å·") |
| | | private String manageNum; |
| | | |
| | | @ExcelProperty("ä¸ç¡®å®åº¦") |
| | | private String uncertainty; |
| | | |
| | | @ExcelProperty("æ°é") |
| | | private Long quantity; |
| | | |
| | | @ExcelProperty("è´ç½®æ¥æ") |
| | | private LocalDateTime acquisitionDate; |
| | | |
| | | @ExcelProperty("æææ") |
| | | private LocalDateTime effectiveDate; |
| | | |
| | | @ExcelProperty("ææ¡£ç¼å·") |
| | | private String fileNum; |
| | | |
| | | @ExcelProperty("åæ¾ä½ç½®") |
| | | private String position; |
| | | |
| | | @ExcelProperty("åè°ç¶æ") |
| | | private Integer state; |
| | | |
| | | @ExcelProperty("夿³¨") |
| | | private String remark; |
| | | |
| | | @ExcelProperty("å建人") |
| | | private String createUser; |
| | | |
| | | @ExcelProperty("åå»ºæ¥æ") |
| | | private LocalDateTime createTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.excel; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDate; |
| | | |
| | | @Data |
| | | public class StoreExcel { |
| | | @ExcelProperty("å
¥åºåå·") |
| | | private String oddNumbers; |
| | | |
| | | @ExcelProperty("èæåç§°") |
| | | private String consumablesName; |
| | | |
| | | @ExcelProperty("å
¥åºæ°é") |
| | | private Integer storeNumber; |
| | | |
| | | @ExcelProperty("å
¥åºæ»ä»·") |
| | | private Double totalPrice; |
| | | |
| | | @ExcelProperty("å
¥åºäºº") |
| | | private String storageUserName; |
| | | |
| | | @ExcelProperty("å
¥åºæ¥æ") |
| | | private LocalDate storageTime; |
| | | |
| | | @ExcelProperty("说æ") |
| | | private String remark; |
| | | |
| | | @ExcelProperty("ç»è®°äºº") |
| | | private String registrantName; |
| | | |
| | | @ExcelProperty("ç»è®°æ¥æ") |
| | | private LocalDate registrantTime; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.requier.pojo.FeCalibrationSchedule; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * 仪å¨è®¾å¤æ£å®/æ ¡å计å表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 02:53:05 |
| | | */ |
| | | public interface FeCalibrationScheduleMapper extends BaseMapper<FeCalibrationSchedule> { |
| | | |
| | | IPage<FeCalibrationSchedule> ipage(Page page, @Param("instrumentName") String instrumentName, @Param("managementNumber") String managementNumber); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.requier.pojo.FeIlluminationDetectionArea; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-ç
§åº¦è®°å½è¡¨-æ£æµåºå Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:16:28 |
| | | */ |
| | | public interface FeIlluminationDetectionAreaMapper extends BaseMapper<FeIlluminationDetectionArea> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.requier.dto.FeIlluminationDto; |
| | | import com.ruoyi.requier.dto.FeIlluminationExportDto; |
| | | import com.ruoyi.requier.pojo.FeIllumination; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-ç
§åº¦è®°å½è¡¨ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:15:57 |
| | | */ |
| | | public interface FeIlluminationMapper extends BaseMapper<FeIllumination> { |
| | | |
| | | IPage<FeIlluminationDto> getFeLightningProtection(Page page); |
| | | |
| | | /** |
| | | * æ¥è¯¢ç
§æè®°å½ |
| | | * @param intensityIlluminationId |
| | | * @return |
| | | */ |
| | | FeIlluminationExportDto selectFeIllumination(Integer intensityIlluminationId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.requier.excel.FeLightningProtectionExcel; |
| | | import com.ruoyi.requier.pojo.FeLightningProtection; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-é²é·æ£æµ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:16:36 |
| | | */ |
| | | public interface FeLightningProtectionMapper extends BaseMapper<FeLightningProtection> { |
| | | |
| | | List<FeLightningProtectionExcel> exportOfLightningProtectionDetection(); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.requier.pojo.FeMeasuredQuantity; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-çµæºç¨³å®æ§-æµå®é Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:16:44 |
| | | */ |
| | | public interface FeMeasuredQuantityMapper extends BaseMapper<FeMeasuredQuantity> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.requier.dto.FePowerStableDto; |
| | | import com.ruoyi.requier.dto.FePowerStableExportDto; |
| | | import com.ruoyi.requier.pojo.FePowerStable; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.Map; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-çµæºç¨³å®æ§ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:16:52 |
| | | */ |
| | | public interface FePowerStableMapper extends BaseMapper<FePowerStable> { |
| | | |
| | | IPage<FePowerStableDto> getLaboratoryFacilityPowerStablePage(Page page); |
| | | |
| | | Map<String, Objects> getCalibrationDate(Integer deviceId); |
| | | |
| | | /** |
| | | * æ¥è¯¢çµæºç¨³å®æ§ |
| | | * @param powerStableId |
| | | * @return |
| | | */ |
| | | FePowerStableExportDto selectPowerStable(@Param("powerStableId") Integer powerStableId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.requier.pojo.FeStandardSubstanceAcceptanceInspection; |
| | | |
| | | /** |
| | | * <p> |
| | | * éªæ¶å¼ç®±è®°å½ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-14 03:30:09 |
| | | */ |
| | | public interface FeStandardSubstanceAcceptanceInspectionMapper extends BaseMapper<FeStandardSubstanceAcceptanceInspection> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.requier.pojo.FeStandardSubstanceAcceptance; |
| | | import com.ruoyi.requier.vo.AcceptanceVo; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æ åç©è´¨éªæ¶ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-14 03:29:41 |
| | | */ |
| | | public interface FeStandardSubstanceAcceptanceMapper extends BaseMapper<FeStandardSubstanceAcceptance> { |
| | | |
| | | |
| | | IPage<AcceptanceVo> getPageAcceptance(Page page, @Param("name")String name); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.requier.pojo.FeStandardSubstance; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æ åç©è´¨æ¸
å Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 03:58:59 |
| | | */ |
| | | public interface FeStandardSubstanceMapper extends BaseMapper<FeStandardSubstance> { |
| | | |
| | | IPage<FeStandardSubstance> getPage(Page page,@Param("ew")FeStandardSubstance feStandardSubstance); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.requier.pojo.FeStandardSubstanceRecord; |
| | | import com.ruoyi.requier.vo.SubstanceRecordVo; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æ åç©è´¨æ¸
ååç¨å½è¿è®°å½è¡¨ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-14 01:49:11 |
| | | */ |
| | | public interface FeStandardSubstanceRecordMapper extends BaseMapper<FeStandardSubstanceRecord> { |
| | | |
| | | |
| | | IPage<SubstanceRecordVo> getPage(Page page,@Param("ew") SubstanceRecordVo vo); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.requier.dto.FeTempHumDateDto; |
| | | import com.ruoyi.requier.pojo.FeTempHumDate; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-温湿度 åºå -ç¶ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 11:02:18 |
| | | */ |
| | | public interface FeTempHumDateMapper extends BaseMapper<FeTempHumDate> { |
| | | |
| | | IPage<FeTempHumDateDto> getFeTempHumDate(Page page); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.requier.dto.FeTempHumRecordDto; |
| | | import com.ruoyi.requier.pojo.FeTempHumRecord; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-æ¸©æ¹¿åº¦è®°å½ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:28:52 |
| | | */ |
| | | public interface FeTempHumRecordMapper extends BaseMapper<FeTempHumRecord> { |
| | | |
| | | IPage<FeTempHumRecordDto> getFeTempHumRecordPage(Page page, Integer dateId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.requier.dto.ForeignRegisterDto; |
| | | import com.ruoyi.requier.pojo.ForeignRegister; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 夿¥äººåç»è®° Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-19 07:17:35 |
| | | */ |
| | | public interface ForeignRegisterMapper extends BaseMapper<ForeignRegister> { |
| | | |
| | | /** |
| | | * 夿¥äººåç»è®°å页æ¥è¯¢ |
| | | * @return |
| | | */ |
| | | IPage<ForeignRegisterDto> pageForeignRegister(Page page, @Param("ew") QueryWrapper<ForeignRegisterDto> ew, |
| | | @Param("beginDate") String beginDate, |
| | | @Param("endDate") String endDate); |
| | | |
| | | /** |
| | | * æ¥è¯¢å¤æ¥äººåç»è®°å表 |
| | | * @param |
| | | * @return |
| | | */ |
| | | List<ForeignRegisterDto> getForeignRegisterList(@Param("ew") QueryWrapper<ForeignRegisterDto> ew, |
| | | @Param("beginDate") String beginDate, |
| | | @Param("endDate") String endDate); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.requier.pojo.InternalWastesDetail; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨å
å¡ä¸åºç»è®°è¯¦æ
Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-19 06:39:54 |
| | | */ |
| | | public interface InternalWastesDetailMapper extends BaseMapper<InternalWastesDetail> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.requier.dto.InternalWastesDto; |
| | | import com.ruoyi.requier.pojo.InternalWastes; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨å
å¡ä¸åºç»è®° Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-19 06:39:27 |
| | | */ |
| | | @Mapper |
| | | public interface InternalWastesMapper extends BaseMapper<InternalWastes> { |
| | | |
| | | |
| | | /** |
| | | * å®å
¨å
å¡ä¸åºç»è®°å页æ¥è¯¢ |
| | | * @param page |
| | | * @param ew |
| | | * @return |
| | | */ |
| | | IPage<InternalWastesDto> pageInternalWastes(Page page, @Param("ew") QueryWrapper<InternalWastes> ew); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesConsumables; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | @Mapper |
| | | public interface ProcurementSuppliesConsumablesMapper extends BaseMapper<ProcurementSuppliesConsumables> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesContents; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | @Mapper |
| | | public interface ProcurementSuppliesContentsMapper extends BaseMapper<ProcurementSuppliesContents> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.requier.dto.ProcurementSuppliesExpendDto; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesExpends; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 03:47:19 |
| | | */ |
| | | public interface ProcurementSuppliesExpendsMapper extends BaseMapper<ProcurementSuppliesExpends> { |
| | | |
| | | IPage<ProcurementSuppliesExpendDto> pageList(Page page, @Param("ew") LambdaQueryWrapper<ProcurementSuppliesExpendDto> eq); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.requier.dto.ProcurementSuppliesListDto; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesList; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡ä¸ä¾åºå èæå表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 04:04:32 |
| | | */ |
| | | public interface ProcurementSuppliesListMapper extends BaseMapper<ProcurementSuppliesList> { |
| | | IPage<ProcurementSuppliesList> selectProcurementSuppliesList(Page page,@Param("contentsId") Long contentsId, @Param("ew") QueryWrapper<ProcurementSuppliesListDto> ew); |
| | | |
| | | ProcurementSuppliesList selectProcurementSuppliesListForUpdate(@Param("id") Long id); |
| | | |
| | | List<ProcurementSuppliesList> selectProcurementSuppliesListAll(@Param("ew") ProcurementSuppliesListDto ew); |
| | | |
| | | List<ProcurementSuppliesList> selectProcurementSuppliesListByContentsId(@Param("id") Integer contentsId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.requier.dto.StoreDto; |
| | | import com.ruoyi.requier.excel.StoreExcel; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesStore; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Mapper |
| | | public interface ProcurementSuppliesStoreMapper extends BaseMapper<ProcurementSuppliesStore> { |
| | | |
| | | IPage<StoreDto> selectStoreList(Page page, @Param("ew") QueryWrapper<StoreDto> ew); |
| | | |
| | | /** |
| | | * åæ å
³èçæ¡ä»¶ï¼ï¼ï¼ç®å没æå
³èå
³ç³» WHERE s.contents_id = #{contentsId} |
| | | * @param contentsId |
| | | * @return |
| | | */ |
| | | List<StoreExcel> exportExcel(Integer contentsId); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.requier.pojo.SupplierManagement; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 02:46:45 |
| | | */ |
| | | @Mapper |
| | | public interface SupplierManagementMapper extends BaseMapper<SupplierManagement> { |
| | | |
| | | IPage<SupplierManagement> pageSupplierManagement(Page page, @Param("ew") QueryWrapper<SupplierManagement> supplierManagementQueryWrapper); |
| | | |
| | | IPage<SupplierManagement> selectQualifiedSupplierManagement(Page page, @Param("ew") QueryWrapper<SupplierManagement> supplierManagementQueryWrapper); |
| | | |
| | | List<SupplierManagement> selectSupplierManagementAll(@Param("parentId") Integer parentId); |
| | | |
| | | List<SupplierManagement> selectSupplierManagement(@Param("parentId")Integer parentId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.requier.pojo.SuppliersDirectoryContents; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡åä¾åºåéè´ç®å½ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-12-17 06:14:51 |
| | | */ |
| | | public interface SuppliersDirectoryContentsMapper extends BaseMapper<SuppliersDirectoryContents> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 仪å¨è®¾å¤æ£å®/æ ¡å计å表 |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 02:53:05 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_fe_calibration_schedule") |
| | | @ApiModel(value = "FeCalibrationSchedule对象", description = "仪å¨è®¾å¤æ£å®/æ ¡å计å表") |
| | | public class FeCalibrationSchedule implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("仪å¨åç§°") |
| | | private String instrumentName; |
| | | |
| | | @ApiModelProperty("è§æ ¼åå·") |
| | | private String model; |
| | | |
| | | @ApiModelProperty("管çç¼å·") |
| | | private Integer managementNumber; |
| | | |
| | | @ApiModelProperty("ææ¯ææ ") |
| | | private String technicalIndicators; |
| | | |
| | | @ApiModelProperty("æ£å®å¨æ") |
| | | private String verificationCyde; |
| | | |
| | | @ApiModelProperty("æ£å®åä½") |
| | | private String verificationUnit; |
| | | |
| | | @ApiModelProperty("æè¿æ£å®æ¶é´") |
| | | private LocalDateTime recentlyTime; |
| | | |
| | | @ApiModelProperty("计å䏿¬¡æ£å®æ¶é´") |
| | | private LocalDateTime nextTime; |
| | | |
| | | @ApiModelProperty("夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty("ç¼å¶") |
| | | private String organization; |
| | | |
| | | @ApiModelProperty("ç¼å¶æ¥æ") |
| | | private LocalDateTime organizationDate; |
| | | |
| | | @ApiModelProperty("æ¹å") |
| | | private String approve; |
| | | |
| | | @ApiModelProperty("æ¹åæ¥æ") |
| | | private LocalDateTime approveDate; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private String updateUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-ç
§åº¦è®°å½è¡¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:15:57 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_fe_illumination") |
| | | @ApiModel(value = "FeIllumination对象", description = "设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-ç
§åº¦è®°å½è¡¨") |
| | | public class FeIllumination implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty("ç
§åº¦è®°å½è¡¨id") |
| | | @TableId(value = "intensity_illumination_id", type = IdType.AUTO) |
| | | private Integer intensityIlluminationId; |
| | | |
| | | @ApiModelProperty("设å¤id") |
| | | private Integer deviceId; |
| | | |
| | | @ApiModelProperty("ç»è®º") |
| | | private String conclusion; |
| | | |
| | | @ApiModelProperty("æ£æµäºº") |
| | | private Integer testerId; |
| | | |
| | | @ApiModelProperty("æ ¸æ¥äºº") |
| | | private Integer checkerId; |
| | | |
| | | @ApiModelProperty("æ£æµæ¥æ") |
| | | private Date testDate; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty("æ´æ°æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-ç
§åº¦è®°å½è¡¨-æ£æµåºå |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:16:28 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_fe_illumination_detection_area") |
| | | @ApiModel(value = "FeIlluminationDetectionArea对象", description = "设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-ç
§åº¦è®°å½è¡¨-æ£æµåºå") |
| | | public class FeIlluminationDetectionArea implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty("æ£æµåºåid") |
| | | @TableId(value = "detection_area_id", type = IdType.AUTO) |
| | | private Integer detectionAreaId; |
| | | |
| | | @ApiModelProperty("æ£æµåºååç§°") |
| | | private String detectionAreaLabel; |
| | | |
| | | @ApiModelProperty("æ£æµå¼-ç¬¬ä¸æ¬¡") |
| | | private Integer valueOne; |
| | | |
| | | @ApiModelProperty("æ£æµå¼-ç¬¬äºæ¬¡") |
| | | private Integer valueTwo; |
| | | |
| | | @ApiModelProperty("æ£æµå¼-ç¬¬ä¸æ¬¡") |
| | | private Integer valueThree; |
| | | |
| | | @ApiModelProperty("å¹³åå¼") |
| | | private Integer average; |
| | | |
| | | @ApiModelProperty("夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty("ç
§åº¦è®°å½è¡¨id") |
| | | private Integer intensityIlluminationId; |
| | | |
| | | // 导åºä½¿ç¨ |
| | | @TableField(select = false, exist = false) |
| | | @ApiModelProperty("åºå·(导åºä½¿ç¨)") |
| | | private Integer index; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-é²é·æ£æµ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:16:36 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_fe_lightning_protection") |
| | | @ApiModel(value = "FeLightningProtection对象", description = "设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-é²é·æ£æµ") |
| | | public class FeLightningProtection implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty("主é®id") |
| | | @TableId(value = "lightning_protection_id", type = IdType.AUTO) |
| | | private Integer lightningProtectionId; |
| | | |
| | | @ApiModelProperty("åæä»¶å") |
| | | private String fileName; |
| | | |
| | | @ApiModelProperty("ç³»ç»çææä»¶å") |
| | | private String systemFileName; |
| | | |
| | | @ApiModelProperty("æ£æµæ¥æ") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate detectionDate; |
| | | |
| | | @ApiModelProperty("æææ") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate termValidity; |
| | | |
| | | @ApiModelProperty("æ£æµåä½") |
| | | private String detectionUnit; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty("æ´æ°æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-çµæºç¨³å®æ§-æµå®é |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:16:44 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_fe_measured_quantity") |
| | | @ApiModel(value = "FeMeasuredQuantity对象", description = "设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-çµæºç¨³å®æ§-æµå®é") |
| | | public class FeMeasuredQuantity implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty("主é®id") |
| | | @TableId(value = "measured_quantity_id", type = IdType.AUTO) |
| | | private Integer measuredQuantityId; |
| | | |
| | | @ApiModelProperty("æµå®éåç§°") |
| | | private String measuredQuantityLabel; |
| | | |
| | | @ApiModelProperty("å¼A") |
| | | private String valueA; |
| | | |
| | | @ApiModelProperty("å¼B") |
| | | private String valueB; |
| | | |
| | | @ApiModelProperty("å¼C") |
| | | private String valueC; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty("æ´æ°æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @ApiModelProperty("çµæºç¨³å®æ§id") |
| | | private Integer powerStableId; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-çµæºç¨³å®æ§ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:16:52 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_fe_power_stable") |
| | | @ApiModel(value = "FePowerStable对象", description = "设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-çµæºç¨³å®æ§") |
| | | public class FePowerStable implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty("çµæºç¨³å®æ§id") |
| | | @TableId(value = "power_stable_id", type = IdType.AUTO) |
| | | private Integer powerStableId; |
| | | |
| | | @ApiModelProperty("æµè¯å°ç¹") |
| | | private String testLocation; |
| | | |
| | | @ApiModelProperty("æµè¯æ¥æ") |
| | | private Date testDate; |
| | | |
| | | @ApiModelProperty("设å¤id") |
| | | private Integer deviceId; |
| | | |
| | | @ApiModelProperty("ç»è®º") |
| | | private String conclusion; |
| | | |
| | | @ApiModelProperty("æ£æµè
id") |
| | | private Integer testerId; |
| | | |
| | | @ApiModelProperty("æ ¸æ¥äººid") |
| | | private Integer checkerId; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty("æ´æ°æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * æ åç©è´¨æ¸
å |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 03:58:59 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_fe_standard_substance") |
| | | @ApiModel(value = "FeStandardSubstance对象", description = "æ åç©è´¨æ¸
å") |
| | | public class FeStandardSubstance implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("æ åç©è´¨åç§°") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("è§æ ¼åå·") |
| | | private String model; |
| | | |
| | | @ApiModelProperty("ç产åå®¶") |
| | | private String factoryManufacturer; |
| | | |
| | | @ApiModelProperty("åºåºç¼å·") |
| | | private String factoryNum; |
| | | |
| | | @ApiModelProperty("管çç¼å·") |
| | | private String manageNum; |
| | | |
| | | @ApiModelProperty("ä¸ç¡®å®åº¦") |
| | | private String uncertainty; |
| | | |
| | | @ApiModelProperty("æ°é") |
| | | private Long quantity; |
| | | |
| | | @ApiModelProperty("è´ç½®æ¥æ") |
| | | private LocalDateTime acquisitionDate; |
| | | |
| | | @ApiModelProperty("æææ") |
| | | private LocalDateTime effectiveDate; |
| | | |
| | | @ApiModelProperty("ææ¡£ç¼å·") |
| | | private String fileNum; |
| | | |
| | | @ApiModelProperty("åæ¾ä½ç½®") |
| | | private String position; |
| | | |
| | | @ApiModelProperty("åè°ç¶æï¼0:æªåè° 1:å·²åè°ï¼") |
| | | private Integer state; |
| | | |
| | | @ApiModelProperty("夿³¨") |
| | | private String remark; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private String updateUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.pojo; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * æ åç©è´¨éªæ¶ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-14 03:29:41 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_fe_standard_substance_acceptance") |
| | | @ApiModel(value = "FeStandardSubstanceAcceptance对象", description = "æ åç©è´¨éªæ¶") |
| | | @ExcelIgnoreUnannotated |
| | | public class FeStandardSubstanceAcceptance implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("æ¸
åid") |
| | | private Integer substanceId; |
| | | |
| | | @ApiModelProperty("å°è´§æ¥æ") |
| | | @ExcelProperty("å°è´§æ¥æ") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate arriveDate; |
| | | |
| | | @ApiModelProperty("ç»´ä¿®åä½") |
| | | @ExcelProperty("ç»´ä¿®åä½") |
| | | private String maintenanceUnit; |
| | | |
| | | @ApiModelProperty("åæ°") |
| | | @ExcelProperty("åæ°") |
| | | private String perameters; |
| | | |
| | | @ApiModelProperty("å®è£
è°è¯æ
åµ") |
| | | @ExcelProperty("å®è£
è°è¯æ
åµ") |
| | | private String installation; |
| | | |
| | | @ApiModelProperty("éªæ¶æ
åµ") |
| | | @ExcelProperty("éªæ¶æ
åµ") |
| | | private String situation; |
| | | |
| | | @ApiModelProperty("æ¥åç¾å") |
| | | @ExcelProperty("æ¥åç¾å") |
| | | private String signature; |
| | | |
| | | @ApiModelProperty("å家代表") |
| | | @ExcelProperty("å家代表") |
| | | private String producer; |
| | | |
| | | @ApiModelProperty("æ¥æ¶äºº") |
| | | @ExcelProperty("æ¥æ¶äºº") |
| | | private String recipient; |
| | | |
| | | @ApiModelProperty("éä»¶") |
| | | @ExcelProperty("éä»¶") |
| | | private String file; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private String updateUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * éªæ¶å¼ç®±è®°å½ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-14 03:30:09 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_fe_standard_substance_acceptance_inspection") |
| | | @ApiModel(value = "FeStandardSubstanceAcceptanceInspection对象", description = "éªæ¶å¼ç®±è®°å½") |
| | | public class FeStandardSubstanceAcceptanceInspection implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | private Integer acceptanceId; |
| | | |
| | | private String name; |
| | | |
| | | private Integer number; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private String updateUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * æ åç©è´¨æ¸
ååç¨å½è¿è®°å½è¡¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-14 01:49:11 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_fe_standard_substance_record") |
| | | @ApiModel(value = "FeStandardSubstanceRecord对象", description = "æ åç©è´¨æ¸
ååç¨å½è¿è®°å½è¡¨") |
| | | public class FeStandardSubstanceRecord implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("ç©è´¨id") |
| | | private Integer substanceId; |
| | | |
| | | @ApiModelProperty("åç¨-å®å¥½æ§") |
| | | private String integrity; |
| | | |
| | | @ApiModelProperty("åç¨-åç¨äºº") |
| | | private String borrowUser; |
| | | |
| | | @ApiModelProperty("åç¨-èç³»æ¹å¼") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty("åç¨-ååºæ¥æ") |
| | | private LocalDateTime borrowDate; |
| | | |
| | | @ApiModelProperty("å½è¿æ¥æ") |
| | | private LocalDateTime borrowReturnDate; |
| | | |
| | | @ApiModelProperty("ååºäºº") |
| | | private String lender; |
| | | |
| | | @ApiModelProperty("å½è¿-æ£æ¥äºº") |
| | | private String rummager; |
| | | |
| | | @ApiModelProperty("0ï¼åç¨ 1:å½è¿") |
| | | private String status; |
| | | |
| | | @ApiModelProperty("å½è¿äºº") |
| | | private String returnedPerson; |
| | | |
| | | @ApiModelProperty("å½è¿-æ¥æ") |
| | | private LocalDateTime returnDate; |
| | | |
| | | @ApiModelProperty("å½è¿-å®å¥½æ§") |
| | | private String returnIntegrity; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private String updateUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-温湿度 åºå -ç¶ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 11:02:18 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_fe_temp_hum_date") |
| | | @ApiModel(value = "FeTempHumDate对象", description = "设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-温湿度 åºå -ç¶") |
| | | public class FeTempHumDate implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty("主é®ID") |
| | | @TableId(value = "date_id", type = IdType.AUTO) |
| | | private Integer dateId; |
| | | |
| | | @ApiModelProperty("æåº¦æ¶é´") |
| | | private LocalDate monthDate; |
| | | |
| | | @ApiModelProperty("è¯éªåºååç§°") |
| | | private String testAreaName; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty("æ´æ°æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty("æ´æ°äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-æ¸©æ¹¿åº¦è®°å½ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:28:52 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_fe_temp_hum_record") |
| | | @ApiModel(value = "FeTempHumRecord对象", description = "设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-温湿度记å½") |
| | | public class FeTempHumRecord implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty("温湿度记å½") |
| | | @TableId(value = "temp_hum_id", type = IdType.AUTO) |
| | | private Integer tempHumId; |
| | | |
| | | @ApiModelProperty("ä¸å-æ¶é´") |
| | | private LocalDateTime morningTestTime; |
| | | |
| | | @ApiModelProperty("ä¸å温度") |
| | | private String morningTemp; |
| | | |
| | | @ApiModelProperty("ä¸å湿度") |
| | | private String morningHum; |
| | | |
| | | @ApiModelProperty("ä¸åè®°å½å") |
| | | private Integer morningRecorderId; |
| | | |
| | | @ApiModelProperty("ä¸åæ¶é´") |
| | | private LocalDateTime afternoonTime; |
| | | |
| | | @ApiModelProperty("ä¸å温度") |
| | | private String afternoonTemp; |
| | | |
| | | @ApiModelProperty("ä¸å湿度") |
| | | private String afternoonHum; |
| | | |
| | | @ApiModelProperty("ä¸åè®°å½å") |
| | | private Integer afternoonRecorderId; |
| | | |
| | | @ApiModelProperty("夿³¨") |
| | | private String note; |
| | | |
| | | @ApiModelProperty("温度循ç¯ä¸»è¡¨id") |
| | | private Integer dateId; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 夿¥äººåç»è®° |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-19 07:17:35 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_foreign_register") |
| | | @ApiModel(value = "ForeignRegister对象", description = "夿¥äººåç»è®°") |
| | | public class ForeignRegister { |
| | | |
| | | @TableId(value = "register_id", type = IdType.AUTO) |
| | | private Integer registerId; |
| | | |
| | | @ApiModelProperty("ç»è®°å¦æ") |
| | | private LocalDate registerDate; |
| | | |
| | | @ApiModelProperty("è¿å
¥åºå") |
| | | private String area; |
| | | |
| | | @ApiModelProperty("è¿å
¥äººå") |
| | | private String personnel; |
| | | |
| | | @ApiModelProperty("è¿å
¥åå ") |
| | | private String reason; |
| | | |
| | | @ApiModelProperty("éªå人åid") |
| | | private Integer accompanyingId; |
| | | |
| | | @ApiModelProperty("éªå人å") |
| | | private String accompanyingName; |
| | | |
| | | @ApiModelProperty("æ¹å人id") |
| | | private Integer approveId; |
| | | |
| | | @ApiModelProperty("æ¹å人") |
| | | private String approveName; |
| | | |
| | | @ApiModelProperty("ä¿å¯åå
¶ä»æ
åµ") |
| | | private String confidentiality; |
| | | |
| | | @ApiModelProperty("夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨å
å¡ä¸åºç»è®° |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-19 06:39:27 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_wastes") |
| | | @ApiModel(value = "InternalWastes对象", description = "å®å
¨å
å¡ä¸åºç»è®°") |
| | | public class InternalWastes { |
| | | |
| | | @TableId(value = "wastes_id", type = IdType.AUTO) |
| | | private Integer wastesId; |
| | | |
| | | @ApiModelProperty("夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨å
å¡ä¸åºç»è®°è¯¦æ
|
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-19 06:39:54 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_wastes_detail") |
| | | @ApiModel(value = "InternalWastesDetail对象", description = "å®å
¨å
å¡ä¸åºç»è®°è¯¦æ
") |
| | | public class InternalWastesDetail { |
| | | |
| | | @TableId(value = "wastes_detail_id", type = IdType.AUTO) |
| | | private Integer wastesDetailId; |
| | | |
| | | @ApiModelProperty("主表id") |
| | | private Integer wastesId; |
| | | |
| | | @ApiModelProperty("åç§°") |
| | | private String designation; |
| | | |
| | | @ApiModelProperty("ä½ç§¯") |
| | | private String volume; |
| | | |
| | | @ApiModelProperty("éå¤çæ¥æ") |
| | | private String deliveryDate; |
| | | |
| | | @ApiModelProperty("移交人") |
| | | private String transferPeople; |
| | | |
| | | @ApiModelProperty("æ¥æ¶äºº") |
| | | private String acceptor; |
| | | |
| | | @ApiModelProperty("æ¥æ¶åä½") |
| | | private String receivingUnit; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | // 导åºä½¿ç¨ |
| | | @TableField(select = false, exist = false) |
| | | private Integer index; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @TableName("procurement_supplies_consumables") |
| | | @ApiModel("èæéè´æç»è¡¨") |
| | | @JsonIgnoreProperties(ignoreUnknown = true) |
| | | public class ProcurementSuppliesConsumables { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("èæä¸»è¡¨id") |
| | | private Integer storeId; |
| | | |
| | | @ApiModelProperty("èæåç§°") |
| | | private String consumablesName; |
| | | |
| | | @ApiModelProperty("åä»·") |
| | | private Double unitPrice; |
| | | |
| | | @ApiModelProperty("å
¥åºæ°é") |
| | | private Integer storeNumber; |
| | | |
| | | @ApiModelProperty("æ»ä»·") |
| | | private Double totalPrice; |
| | | |
| | | @ApiModelProperty("è´§å·") |
| | | private String itemNumber; |
| | | |
| | | @ApiModelProperty("ç±»å«") |
| | | private String type; |
| | | |
| | | @ApiModelProperty("è§æ ¼") |
| | | private String specifications; |
| | | |
| | | @ApiModelProperty("åèä¾åºå") |
| | | private String supplier; |
| | | |
| | | @ApiModelProperty("计éåä½") |
| | | private String unit; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | @TableName("procurement_supplies_contents") |
| | | @ApiModel("æå¡åä¾åºåéè´è¡¨") |
| | | public class ProcurementSuppliesContents { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("èç¹åç§°") |
| | | private String nodeName; |
| | | |
| | | @ApiModelProperty("代å·") |
| | | private String code; |
| | | |
| | | |
| | | @ApiModelProperty("æ´æ°äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("æ´æ°æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @ApiModelProperty("ç¶èç¹") |
| | | private Integer parentId; |
| | | |
| | | @TableField(exist = false) |
| | | private List<ProcurementSuppliesContents> children; |
| | | |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 03:47:19 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("procurement_supplies_expends") |
| | | @ApiModel(value = "ProcurementSuppliesExpends对象", description = "") |
| | | public class ProcurementSuppliesExpends implements Serializable { |
| | | |
| | | |
| | | @ApiModelProperty("主表Id") |
| | | @TableId(value = "expend_id", type = IdType.AUTO) |
| | | private Long expendId; |
| | | |
| | | @ApiModelProperty("èæId") |
| | | private Long listId; |
| | | |
| | | @ApiModelProperty("æ¶èæ°é") |
| | | private Integer amount; |
| | | |
| | | @ApiModelProperty("æ£éªå¯¹è±¡åç§°") |
| | | private String specimenName; |
| | | |
| | | @ApiModelProperty("æ£éªé¡¹") |
| | | private String inspectionItem; |
| | | |
| | | @ApiModelProperty("æ£éªå项") |
| | | private String inspectionItemSubclass; |
| | | |
| | | @ApiModelProperty("å½å
¥äººid") |
| | | private Integer enterUserId; |
| | | |
| | | @ApiModelProperty("æ´æ°äººid") |
| | | private Integer updateUserId; |
| | | |
| | | @ApiModelProperty("æ´æ°æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.pojo; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡ä¸ä¾åºå èæå表 |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 04:04:32 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("procurement_supplies_list") |
| | | @ApiModel(value = "ProcurementSuppliesList对象", description = "æå¡ä¸ä¾åºå èæå表") |
| | | public class ProcurementSuppliesList implements Serializable { |
| | | |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | @ApiModelProperty("ç¼å·") |
| | | @ExcelProperty("ç¼å·") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("ç®å½id") |
| | | private Long contentsId; |
| | | |
| | | @ApiModelProperty("èæç±»å") |
| | | @ExcelProperty("ç±»å«") |
| | | private String consumablesType; |
| | | |
| | | @ApiModelProperty("è´§å·") |
| | | @ExcelProperty("è´§å·") |
| | | private String itemNumber; |
| | | |
| | | @ApiModelProperty("èæåç§°") |
| | | @ExcelProperty("åç§°") |
| | | private String consumablesName; |
| | | |
| | | @ApiModelProperty("è§æ ¼") |
| | | @ExcelProperty("è§æ ¼") |
| | | private String specifications; |
| | | |
| | | @ApiModelProperty("计éåä½") |
| | | @ExcelProperty("计éåä½") |
| | | private String unit; |
| | | |
| | | @ApiModelProperty("åèä»·æ ¼") |
| | | private BigDecimal referencePrice; |
| | | |
| | | @ApiModelProperty("åæ¾ä½ç½®") |
| | | private Integer contentId; |
| | | |
| | | @ApiModelProperty("è´è´£äºº") |
| | | private Integer personInCharge; |
| | | |
| | | @ApiModelProperty("åºåä¸é") |
| | | private Integer upperLimit; |
| | | |
| | | @ApiModelProperty("åºåä¸é") |
| | | @ExcelProperty("åºåä¸é") |
| | | private Integer lowerLimit; |
| | | |
| | | @ApiModelProperty("ä¾åºå") |
| | | private Integer supplier; |
| | | |
| | | @ApiModelProperty("èæå¾æ ") |
| | | private String consumablesIcon; |
| | | |
| | | @ApiModelProperty("èæéä»¶") |
| | | private String attachment; |
| | | |
| | | @ApiModelProperty("夿³¨") |
| | | @ExcelProperty("夿³¨") |
| | | private String remark; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("å½ååºåæ°é") |
| | | @ExcelProperty("å½ååºå") |
| | | private Integer currentAmount; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDate; |
| | | |
| | | @Data |
| | | @TableName("procurement_supplies_store") |
| | | @ApiModel("èæå
¥åºè¡¨") |
| | | @JsonIgnoreProperties(ignoreUnknown = true) |
| | | public class ProcurementSuppliesStore implements Serializable { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("ç®å½id") |
| | | private Integer contentsId; |
| | | |
| | | @ApiModelProperty("å
¥åºåå·") |
| | | private String oddNumbers; |
| | | |
| | | @ApiModelProperty("å
¥åºåºå") |
| | | private String inventory; |
| | | |
| | | @ApiModelProperty("å
¥åºæ»éé¢") |
| | | private Double totalAmount; |
| | | |
| | | @ApiModelProperty("å
¥åºäºº") |
| | | private Integer storageUser; |
| | | |
| | | @ApiModelProperty("å
¥åºæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private LocalDate storageTime; |
| | | |
| | | @ApiModelProperty("å
¥åºè¯´æ") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty("ç»è®°äºº") |
| | | private Integer registrant; |
| | | |
| | | @ApiModelProperty("ç»è®°æ¶é´") |
| | | private LocalDate registrantTime; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.pojo; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 02:46:45 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_supplier_management") |
| | | @ApiModel(value = "SupplierManagement对象", description = "") |
| | | public class SupplierManagement implements Serializable { |
| | | |
| | | |
| | | @ApiModelProperty("主表Id") |
| | | @TableId(value = "supplier_management_id", type = IdType.AUTO) |
| | | private Integer supplierManagementId; |
| | | |
| | | @ApiModelProperty("ä¾åºå") |
| | | @ExcelProperty("ä¾åºå") |
| | | private String supplierName; |
| | | |
| | | @ApiModelProperty("ç¼å·") |
| | | @ExcelProperty("ç¼å·") |
| | | private String supplierRef; |
| | | |
| | | @ApiModelProperty("ä¾åºåç©åæå¡åç§°") |
| | | @ExcelProperty("ä¾åºåç©åæå¡åç§°") |
| | | private String supplierItemServiceName; |
| | | |
| | | @ApiModelProperty("é®ç¼") |
| | | @ExcelProperty("é®ç¼") |
| | | private String postalCode; |
| | | |
| | | @ApiModelProperty("å°å") |
| | | @ExcelProperty("å°å") |
| | | private String adress; |
| | | |
| | | @ApiModelProperty("logo") |
| | | private String logo; |
| | | |
| | | @ApiModelProperty("è系人") |
| | | @ExcelProperty("è系人") |
| | | private String contacts; |
| | | |
| | | @ApiModelProperty("èç³»çµè¯") |
| | | @ExcelProperty("èç³»çµè¯") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty("æ·å") |
| | | @ExcelProperty("æ·å") |
| | | private String householdName; |
| | | |
| | | @ApiModelProperty("ä¼ ç") |
| | | @ExcelProperty("ä¼ ç") |
| | | private String fax; |
| | | |
| | | @ApiModelProperty("弿·è¡") |
| | | @ExcelProperty("弿·è¡") |
| | | private String openingName; |
| | | |
| | | @ApiModelProperty("ç½å") |
| | | @ExcelProperty("ç½å") |
| | | private String website; |
| | | |
| | | @ApiModelProperty("è´¦å·") |
| | | @ExcelProperty("è´¦å·") |
| | | private String accountName; |
| | | |
| | | @ApiModelProperty("email") |
| | | @ExcelProperty("email") |
| | | private String email; |
| | | |
| | | @ApiModelProperty("夿³¨") |
| | | @ExcelProperty("夿³¨") |
| | | private String remarks; |
| | | |
| | | @ApiModelProperty("éä»¶") |
| | | private String enclosure; |
| | | |
| | | @ApiModelProperty("ç¶æ") |
| | | private String status; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("ç¶id") |
| | | private Integer parentId; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡åä¾åºåéè´ç®å½ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-12-17 06:14:51 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("suppliers_directory_contents") |
| | | @ApiModel(value = "SuppliersDirectoryContents对象", description = "æå¡åä¾åºåéè´ç®å½") |
| | | public class SuppliersDirectoryContents implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("èç¹åç§°") |
| | | private String nodeName; |
| | | |
| | | @ApiModelProperty("代å·") |
| | | private String code; |
| | | |
| | | @ApiModelProperty("æ´æ°äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("æ´æ°æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @ApiModelProperty("ç¶èç¹") |
| | | private Integer parentId; |
| | | |
| | | |
| | | @TableField(exist = false) |
| | | private List<SuppliersDirectoryContents> children; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.requier.pojo.FeCalibrationSchedule; |
| | | |
| | | /** |
| | | * <p> |
| | | * 仪å¨è®¾å¤æ£å®/æ ¡å计å表 æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 02:53:05 |
| | | */ |
| | | public interface FeCalibrationScheduleService extends IService<FeCalibrationSchedule> { |
| | | |
| | | |
| | | IPage<FeCalibrationSchedule> page(Page page,String instrumentName, String managementNumber); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.requier.pojo.FeIlluminationDetectionArea; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-ç
§åº¦è®°å½è¡¨-æ£æµåºå æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:16:28 |
| | | */ |
| | | public interface FeIlluminationDetectionAreaService extends IService<FeIlluminationDetectionArea> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.requier.dto.FeIlluminationDto; |
| | | import com.ruoyi.requier.pojo.FeIllumination; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-ç
§åº¦è®°å½è¡¨ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:15:57 |
| | | */ |
| | | public interface FeIlluminationService extends IService<FeIllumination> { |
| | | |
| | | IPage<FeIlluminationDto> getFeLightningProtection(Page page); |
| | | |
| | | /** |
| | | * 导åºç
§åº¦è®°å½ |
| | | * @param intensityIlluminationId |
| | | * @param response |
| | | */ |
| | | void exportFeIllumination(Integer intensityIlluminationId, HttpServletResponse response); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.requier.excel.FeLightningProtectionExcel; |
| | | import com.ruoyi.requier.pojo.FeLightningProtection; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-é²é·æ£æµ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:16:36 |
| | | */ |
| | | public interface FeLightningProtectionService extends IService<FeLightningProtection> { |
| | | |
| | | List<FeLightningProtectionExcel> exportOfLightningProtectionDetection(); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.requier.pojo.FeMeasuredQuantity; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-çµæºç¨³å®æ§-æµå®é æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:16:44 |
| | | */ |
| | | public interface FeMeasuredQuantityService extends IService<FeMeasuredQuantity> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.requier.dto.FePowerStableDto; |
| | | import com.ruoyi.requier.pojo.FePowerStable; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-çµæºç¨³å®æ§ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:16:52 |
| | | */ |
| | | public interface FePowerStableService extends IService<FePowerStable> { |
| | | |
| | | IPage<FePowerStableDto> getLaboratoryFacilityPowerStablePage(Page page); |
| | | |
| | | Map<String, Objects> getCalibrationDate(Integer deviceId); |
| | | |
| | | /** |
| | | * 导åºçµæºç¨³å®æ§ |
| | | * @param powerStableId |
| | | * @param response |
| | | */ |
| | | void exportFePowerStable(Integer powerStableId, HttpServletResponse response); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.requier.pojo.FeStandardSubstanceAcceptanceInspection; |
| | | |
| | | /** |
| | | * <p> |
| | | * éªæ¶å¼ç®±è®°å½ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-14 03:30:09 |
| | | */ |
| | | public interface FeStandardSubstanceAcceptanceInspectionService extends IService<FeStandardSubstanceAcceptanceInspection> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.requier.dto.AcceptanceDto; |
| | | import com.ruoyi.requier.pojo.FeStandardSubstanceAcceptance; |
| | | import com.ruoyi.requier.vo.AcceptanceDetailsVo; |
| | | import com.ruoyi.requier.vo.AcceptanceVo; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * æ åç©è´¨éªæ¶ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-14 03:29:41 |
| | | */ |
| | | public interface FeStandardSubstanceAcceptanceService extends IService<FeStandardSubstanceAcceptance> { |
| | | |
| | | |
| | | void addAcceptance(AcceptanceDto dto); |
| | | |
| | | IPage<AcceptanceVo> getPageAcceptance(Page page, String name); |
| | | |
| | | AcceptanceDetailsVo getAcceptanceDetails(Integer id); |
| | | |
| | | Integer deleteAcceptance(Integer id); |
| | | |
| | | void exportFeStandardSubstanceAcceptance(HttpServletResponse response); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.requier.pojo.FeStandardSubstanceRecord; |
| | | import com.ruoyi.requier.vo.SubstanceRecordVo; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * æ åç©è´¨æ¸
ååç¨å½è¿è®°å½è¡¨ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-14 01:49:11 |
| | | */ |
| | | public interface FeStandardSubstanceRecordService extends IService<FeStandardSubstanceRecord> { |
| | | |
| | | |
| | | void borrowSubstance(FeStandardSubstanceRecord feStandardSubstanceRecord); |
| | | |
| | | void returnSubstance(FeStandardSubstanceRecord feStandardSubstanceRecord); |
| | | |
| | | List<FeStandardSubstanceRecord> getSubstanceRecord(Integer id); |
| | | |
| | | IPage<SubstanceRecordVo> getPage(Page page, SubstanceRecordVo vo); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.requier.pojo.FeStandardSubstance; |
| | | |
| | | /** |
| | | * <p> |
| | | * æ åç©è´¨æ¸
å æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 03:58:59 |
| | | */ |
| | | public interface FeStandardSubstanceService extends IService<FeStandardSubstance> { |
| | | |
| | | IPage<FeStandardSubstance> page(Page page,FeStandardSubstance feStandardSubstance); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.requier.dto.FeTempHumDateDto; |
| | | import com.ruoyi.requier.pojo.FeTempHumDate; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-温湿度 åºå -ç¶ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 11:02:18 |
| | | */ |
| | | public interface FeTempHumDateService extends IService<FeTempHumDate> { |
| | | |
| | | IPage<FeTempHumDateDto> getFeTempHumDate(Page page); |
| | | |
| | | void exportTemperatureAndHumidityRecords(Integer dateId, HttpServletResponse response); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.requier.dto.FeTempHumRecordDto; |
| | | import com.ruoyi.requier.pojo.FeTempHumRecord; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-æ¸©æ¹¿åº¦è®°å½ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:28:52 |
| | | */ |
| | | public interface FeTempHumRecordService extends IService<FeTempHumRecord> { |
| | | |
| | | IPage<FeTempHumRecordDto> getFeTempHumRecordPage(Page page, Integer dateId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.requier.dto.ForeignRegisterDto; |
| | | import com.ruoyi.requier.pojo.ForeignRegister; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * 夿¥äººåç»è®° æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-19 07:17:35 |
| | | */ |
| | | public interface ForeignRegisterService extends IService<ForeignRegister> { |
| | | |
| | | /** |
| | | * 夿¥äººåç»è®°å页æ¥è¯¢ |
| | | * @param page |
| | | * @param foreignRegister |
| | | * @return |
| | | */ |
| | | IPage<ForeignRegisterDto> pageForeignRegister(Page page, ForeignRegisterDto foreignRegister); |
| | | |
| | | /** |
| | | * 导åºå¤æ¥äººåç»è®° |
| | | * @param foreignRegister |
| | | */ |
| | | void exportForeignRegister(ForeignRegisterDto foreignRegister, HttpServletResponse response); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.requier.pojo.InternalWastesDetail; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨å
å¡ä¸åºç»è®°è¯¦æ
æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-19 06:39:54 |
| | | */ |
| | | public interface InternalWastesDetailService extends IService<InternalWastesDetail> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.requier.dto.InternalWastesDto; |
| | | import com.ruoyi.requier.pojo.InternalWastes; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨å
å¡ä¸åºç»è®° æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-19 06:39:27 |
| | | */ |
| | | public interface InternalWastesService extends IService<InternalWastes> { |
| | | |
| | | /** |
| | | * å®å
¨å
å¡ä¸åºå¤çå页æ¥è¯¢ |
| | | * @param page |
| | | * @param internalWastes |
| | | * @return |
| | | */ |
| | | IPage<InternalWastesDto> pageInternalWastes(Page page, InternalWastes internalWastes); |
| | | |
| | | /** |
| | | * å®å
¨å
å¡ä¸åºå¤çæ°å¢ |
| | | * @param internalWastes |
| | | * @return |
| | | */ |
| | | boolean addInternalWastes(InternalWastesDto internalWastes); |
| | | |
| | | /** |
| | | * å®å
¨å
å¡ä¸åºå¤çä¿®æ¹ |
| | | * @param internalWastes |
| | | * @return |
| | | */ |
| | | boolean updateInternalWastes(InternalWastesDto internalWastes); |
| | | |
| | | /** |
| | | * å®å
¨å
å¡ä¸åºå¤çå é¤ |
| | | * @param wastesId |
| | | * @return |
| | | */ |
| | | boolean delInternalWastes(Integer wastesId); |
| | | |
| | | /** |
| | | * å®å
¨å
å¡ä¸åºå¤çæ¥ç详æ
|
| | | * @param wastesId |
| | | * @return |
| | | */ |
| | | InternalWastesDto getInternalWastesOne(Integer wastesId); |
| | | |
| | | /** |
| | | * 导åºä¸åºå¤ç |
| | | * @param wastesId |
| | | * @param response |
| | | */ |
| | | void exportInternalWastes(Integer wastesId, HttpServletResponse response); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesConsumables; |
| | | |
| | | public interface ProcurementSuppliesConsumablesService extends IService<ProcurementSuppliesConsumables> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesContents; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | public interface ProcurementSuppliesContentsService extends IService<ProcurementSuppliesContents> { |
| | | |
| | | List<ProcurementSuppliesContents> directoryListing(); |
| | | |
| | | List<Map<String,Object>> getNodeNames(); |
| | | |
| | | List<Map<String,Object>> getUserList(); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.requier.dto.ProcurementSuppliesExpendDto; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesExpends; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 03:47:19 |
| | | */ |
| | | public interface ProcurementSuppliesExpendsService extends IService<ProcurementSuppliesExpends> { |
| | | IPage<ProcurementSuppliesExpendDto> selectAll(Page page, Long procurementSuppliesListId); |
| | | |
| | | Integer addExpends(ProcurementSuppliesExpendDto expendDto); |
| | | |
| | | Integer deleteExpends(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.requier.dto.ProcurementSuppliesListDto; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesList; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡ä¸ä¾åºå èæå表 æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 04:04:32 |
| | | */ |
| | | public interface ProcurementSuppliesListService extends IService<ProcurementSuppliesList> { |
| | | IPage<ProcurementSuppliesListDto> selectList(Page page, ProcurementSuppliesListDto list); |
| | | |
| | | public Integer addProcurementSuppliesList(ProcurementSuppliesListDto dto); |
| | | |
| | | public Integer updateProcurementSuppliesList(ProcurementSuppliesListDto dto); |
| | | |
| | | void exportProcurementSuppliesList(Integer contentsId,HttpServletResponse response); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.requier.dto.StoreDto; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesStore; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.Map; |
| | | |
| | | public interface ProcurementSuppliesStoreService extends IService<ProcurementSuppliesStore> { |
| | | void addStore(Map<String,Object> map); |
| | | void updateStore(Map<String,Object> map); |
| | | |
| | | void deleteStore(Integer id, Integer consumablesId); |
| | | IPage<StoreDto> selectStoreList(Page page, StoreDto storeDto); |
| | | |
| | | void exportExcel(Integer contentsId, HttpServletResponse response) throws IOException; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.requier.pojo.SupplierManagement; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 02:46:45 |
| | | */ |
| | | public interface SupplierManagementService extends IService<SupplierManagement> { |
| | | |
| | | List<SupplierManagement> selectSupplierManagement(SupplierManagement supplierManagement); |
| | | |
| | | void exportSupplierManagement(Integer parentId, HttpServletResponse response); |
| | | |
| | | IPage<SupplierManagement> selectQualifiedSupplierManagement(Page page, SupplierManagement supplierManagement); |
| | | |
| | | List<SupplierManagement> selectQualifiedSupplierManagementById(Integer supplierManagementId); |
| | | |
| | | List<SupplierManagement> selectSupplierManagementByParentId(Integer parentId); |
| | | |
| | | List<SupplierManagement> selectSupplierManagementAll(); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.requier.pojo.SuppliersDirectoryContents; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡åä¾åºåéè´ç®å½ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-12-17 06:14:51 |
| | | */ |
| | | public interface SuppliersDirectoryContentsService extends IService<SuppliersDirectoryContents> { |
| | | |
| | | ArrayList<SuppliersDirectoryContents> directoryListing(); |
| | | List<Map<String, Object>> getSuppliersDirectoryContentsNodeNames(); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.requier.mapper.FeCalibrationScheduleMapper; |
| | | import com.ruoyi.requier.pojo.FeCalibrationSchedule; |
| | | import com.ruoyi.requier.service.FeCalibrationScheduleService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 仪å¨è®¾å¤æ£å®/æ ¡å计å表 æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 02:53:05 |
| | | */ |
| | | @Service |
| | | public class FeCalibrationScheduleServiceImpl extends ServiceImpl<FeCalibrationScheduleMapper, FeCalibrationSchedule> implements FeCalibrationScheduleService { |
| | | |
| | | @Override |
| | | public IPage<FeCalibrationSchedule> page(Page page, String instrumentName, String managementNumber) { |
| | | IPage<FeCalibrationSchedule> ipage = this.baseMapper.ipage(page,instrumentName, managementNumber); |
| | | return ipage; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.requier.mapper.FeIlluminationDetectionAreaMapper; |
| | | import com.ruoyi.requier.pojo.FeIlluminationDetectionArea; |
| | | import com.ruoyi.requier.service.FeIlluminationDetectionAreaService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-ç
§åº¦è®°å½è¡¨-æ£æµåºå æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:16:28 |
| | | */ |
| | | @Service |
| | | public class FeIlluminationDetectionAreaServiceImpl extends ServiceImpl<FeIlluminationDetectionAreaMapper, FeIlluminationDetectionArea> implements FeIlluminationDetectionAreaService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.deepoove.poi.data.Pictures; |
| | | import com.ruoyi.common.utils.DateImageUtil; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import com.ruoyi.requier.dto.FeIlluminationDto; |
| | | import com.ruoyi.requier.dto.FeIlluminationExportDto; |
| | | import com.ruoyi.requier.mapper.FeIlluminationDetectionAreaMapper; |
| | | import com.ruoyi.requier.mapper.FeIlluminationMapper; |
| | | import com.ruoyi.requier.pojo.FeIllumination; |
| | | import com.ruoyi.requier.pojo.FeIlluminationDetectionArea; |
| | | import com.ruoyi.requier.service.FeIlluminationService; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.time.Instant; |
| | | import java.time.LocalDateTime; |
| | | import java.time.ZoneId; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-ç
§åº¦è®°å½è¡¨ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:15:57 |
| | | */ |
| | | @Service |
| | | public class FeIlluminationServiceImpl extends ServiceImpl<FeIlluminationMapper, FeIllumination> implements FeIlluminationService { |
| | | |
| | | @Resource |
| | | private FeIlluminationDetectionAreaMapper feIlluminationDetectionAreaMapper; |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | |
| | | @Value("${file.path}") |
| | | private String imgUrl; |
| | | |
| | | |
| | | @Override |
| | | public IPage<FeIlluminationDto> getFeLightningProtection(Page page) { |
| | | return baseMapper.getFeLightningProtection(page); |
| | | } |
| | | |
| | | /** |
| | | * 导åºç
§åº¦è®°å½ |
| | | * @param intensityIlluminationId |
| | | * @param response |
| | | */ |
| | | @Override |
| | | public void exportFeIllumination(Integer intensityIlluminationId, HttpServletResponse response) { |
| | | FeIlluminationExportDto illuminationExportDto = baseMapper.selectFeIllumination(intensityIlluminationId); |
| | | // æ£æµäºº |
| | | String testerUrl = null; |
| | | if (illuminationExportDto.getTesterId() != null) { |
| | | testerUrl = userMapper.selectById(illuminationExportDto.getTesterId()).getSignatureUrl(); |
| | | if (StringUtils.isBlank(testerUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°æ£æµäººçç¾å"); |
| | | } |
| | | } |
| | | |
| | | // æ ¸æ¥äºº |
| | | String checkerUrl = null; |
| | | if (illuminationExportDto.getCheckerId() != null) { |
| | | checkerUrl = userMapper.selectById(illuminationExportDto.getCheckerId()).getSignatureUrl(); |
| | | if (StringUtils.isBlank(checkerUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°æ ¸æ¥äººçç¾å"); |
| | | } |
| | | } |
| | | |
| | | // æ¥è¯¢è¯¦æ
|
| | | List<FeIlluminationDetectionArea> feIlluminationDetectionAreas = feIlluminationDetectionAreaMapper.selectList(Wrappers.<FeIlluminationDetectionArea>lambdaQuery() |
| | | .eq(FeIlluminationDetectionArea::getIntensityIlluminationId, intensityIlluminationId)); |
| | | |
| | | for (int i = 0; i < feIlluminationDetectionAreas.size(); i++) { |
| | | feIlluminationDetectionAreas.get(i).setIndex(i + 1); |
| | | } |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/illumination.docx"); |
| | | Configure configure = Configure.builder() |
| | | .bind("detectionAreaList", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | String finalTesterUrl = testerUrl; |
| | | String finalCheckerUrl = checkerUrl; |
| | | |
| | | // å¤ææ£æµæ¥ææ¯å¦ä¸ºç©º |
| | | LocalDateTime localDateTime = null; |
| | | if (illuminationExportDto.getTestDate() != null) { |
| | | Instant instant = illuminationExportDto.getTestDate().toInstant(); |
| | | ZoneId zoneId = ZoneId.systemDefault(); |
| | | localDateTime = instant.atZone(zoneId).toLocalDateTime(); |
| | | } |
| | | LocalDateTime finalLocalDateTime = localDateTime; |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("illumination", illuminationExportDto); |
| | | put("detectionAreaList", feIlluminationDetectionAreas); |
| | | put("testerUrl", StringUtils.isNotBlank(finalTesterUrl) ? Pictures.ofLocal(imgUrl + "/" + finalTesterUrl).create() : null); |
| | | put("checkerUrl", StringUtils.isNotBlank(finalCheckerUrl) ? Pictures.ofLocal(imgUrl + "/" + finalCheckerUrl).create() : null); |
| | | put("testDateUrl", finalLocalDateTime != null ? |
| | | Pictures.ofStream(DateImageUtil.createDateImage(finalLocalDateTime)).create() : null); |
| | | }}); |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String fileName = URLEncoder.encode( |
| | | "ç
§æè®°å½å¯¼åº", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.requier.excel.FeLightningProtectionExcel; |
| | | import com.ruoyi.requier.mapper.FeLightningProtectionMapper; |
| | | import com.ruoyi.requier.pojo.FeLightningProtection; |
| | | import com.ruoyi.requier.service.FeLightningProtectionService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-é²é·æ£æµ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:16:36 |
| | | */ |
| | | @Service |
| | | public class FeLightningProtectionServiceImpl extends ServiceImpl<FeLightningProtectionMapper, FeLightningProtection> implements FeLightningProtectionService { |
| | | |
| | | @Override |
| | | public List<FeLightningProtectionExcel> exportOfLightningProtectionDetection() { |
| | | return baseMapper.exportOfLightningProtectionDetection(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.requier.mapper.FeMeasuredQuantityMapper; |
| | | import com.ruoyi.requier.pojo.FeMeasuredQuantity; |
| | | import com.ruoyi.requier.service.FeMeasuredQuantityService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-çµæºç¨³å®æ§-æµå®é æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:16:44 |
| | | */ |
| | | @Service |
| | | public class FeMeasuredQuantityServiceImpl extends ServiceImpl<FeMeasuredQuantityMapper, FeMeasuredQuantity> implements FeMeasuredQuantityService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.deepoove.poi.data.Pictures; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import com.ruoyi.requier.dto.FePowerStableDto; |
| | | import com.ruoyi.requier.dto.FePowerStableExportDto; |
| | | import com.ruoyi.requier.mapper.FeMeasuredQuantityMapper; |
| | | import com.ruoyi.requier.mapper.FePowerStableMapper; |
| | | import com.ruoyi.requier.pojo.FeMeasuredQuantity; |
| | | import com.ruoyi.requier.pojo.FePowerStable; |
| | | import com.ruoyi.requier.service.FePowerStableService; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-çµæºç¨³å®æ§ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:16:52 |
| | | */ |
| | | @Service |
| | | public class FePowerStableServiceImpl extends ServiceImpl<FePowerStableMapper, FePowerStable> implements FePowerStableService { |
| | | |
| | | @Resource |
| | | private FeMeasuredQuantityMapper feMeasuredQuantityMapper; |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | |
| | | @Value("${file.path}") |
| | | private String imgUrl; |
| | | |
| | | @Override |
| | | public IPage<FePowerStableDto> getLaboratoryFacilityPowerStablePage(Page page) { |
| | | return baseMapper.getLaboratoryFacilityPowerStablePage(page); |
| | | } |
| | | |
| | | @Override |
| | | public Map<String, Objects> getCalibrationDate(Integer deviceId) { |
| | | return baseMapper.getCalibrationDate(deviceId); |
| | | } |
| | | |
| | | /** |
| | | * 导åºçµæºç¨³å®æ§ |
| | | * @param powerStableId |
| | | * @param response |
| | | */ |
| | | @Override |
| | | public void exportFePowerStable(Integer powerStableId, HttpServletResponse response) { |
| | | FePowerStableExportDto powerStable = baseMapper.selectPowerStable(powerStableId); |
| | | |
| | | // æ£æµäºº |
| | | String testerUrl = null; |
| | | if (powerStable.getTesterId() != null) { |
| | | testerUrl = userMapper.selectById(powerStable.getTesterId()).getSignatureUrl(); |
| | | if (StringUtils.isBlank(testerUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°æ£æµäººçç¾å"); |
| | | } |
| | | } |
| | | |
| | | // æ ¸æ¥äºº |
| | | String checkerUrl = null; |
| | | if (powerStable.getCheckerId() != null) { |
| | | checkerUrl = userMapper.selectById(powerStable.getCheckerId()).getSignatureUrl(); |
| | | if (StringUtils.isBlank(checkerUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°æ ¸æ¥äººçç¾å"); |
| | | } |
| | | } |
| | | |
| | | // æ¥è¯¢è¯¦æ
|
| | | List<FeMeasuredQuantity> feMeasuredQuantities = feMeasuredQuantityMapper.selectList(Wrappers.<FeMeasuredQuantity>lambdaQuery() |
| | | .eq(FeMeasuredQuantity::getPowerStableId, powerStableId)); |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/power-stable.docx"); |
| | | Configure configure = Configure.builder() |
| | | .bind("measuredQuantityList", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | String finalTesterUrl = testerUrl; |
| | | String finalCheckerUrl = checkerUrl; |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("stable", powerStable); |
| | | put("measuredQuantityList", feMeasuredQuantities); |
| | | put("testerUrl", StringUtils.isNotBlank(finalTesterUrl) ? Pictures.ofLocal(imgUrl + "/" + finalTesterUrl).create() : null); |
| | | put("checkerUrl", StringUtils.isNotBlank(finalCheckerUrl) ? Pictures.ofLocal(imgUrl + "/" + finalCheckerUrl).create() : null); |
| | | }}); |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String fileName = URLEncoder.encode( |
| | | "çµæºç¨³å®æ§æµè¯å¯¼åº", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.requier.mapper.FeStandardSubstanceAcceptanceInspectionMapper; |
| | | import com.ruoyi.requier.pojo.FeStandardSubstanceAcceptanceInspection; |
| | | import com.ruoyi.requier.service.FeStandardSubstanceAcceptanceInspectionService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * éªæ¶å¼ç®±è®°å½ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-14 03:30:09 |
| | | */ |
| | | @Service |
| | | public class FeStandardSubstanceAcceptanceInspectionServiceImpl extends ServiceImpl<FeStandardSubstanceAcceptanceInspectionMapper, FeStandardSubstanceAcceptanceInspection> implements FeStandardSubstanceAcceptanceInspectionService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.ExcelWriter; |
| | | import com.alibaba.excel.write.metadata.WriteSheet; |
| | | import com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy; |
| | | 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.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.requier.dto.AcceptanceDto; |
| | | import com.ruoyi.requier.mapper.FeStandardSubstanceAcceptanceInspectionMapper; |
| | | import com.ruoyi.requier.mapper.FeStandardSubstanceAcceptanceMapper; |
| | | import com.ruoyi.requier.mapper.FeStandardSubstanceMapper; |
| | | import com.ruoyi.requier.pojo.FeStandardSubstance; |
| | | import com.ruoyi.requier.pojo.FeStandardSubstanceAcceptance; |
| | | import com.ruoyi.requier.pojo.FeStandardSubstanceAcceptanceInspection; |
| | | import com.ruoyi.requier.service.FeStandardSubstanceAcceptanceService; |
| | | import com.ruoyi.requier.vo.AcceptanceDetailsVo; |
| | | import com.ruoyi.requier.vo.AcceptanceVo; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLEncoder; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * æ åç©è´¨éªæ¶ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-14 03:29:41 |
| | | */ |
| | | @Service |
| | | public class FeStandardSubstanceAcceptanceServiceImpl extends ServiceImpl<FeStandardSubstanceAcceptanceMapper, FeStandardSubstanceAcceptance> implements FeStandardSubstanceAcceptanceService { |
| | | |
| | | @Resource |
| | | private FeStandardSubstanceAcceptanceInspectionMapper feStandardSubstanceAcceptanceInspectionMapper; |
| | | |
| | | @Resource |
| | | private FeStandardSubstanceMapper feStandardSubstanceMapper; |
| | | |
| | | |
| | | |
| | | @Override |
| | | public void addAcceptance(AcceptanceDto dto) { |
| | | FeStandardSubstanceAcceptance acceptance = dto.getAcceptance(); |
| | | List<FeStandardSubstanceAcceptanceInspection> list = dto.getList(); |
| | | this.baseMapper.insert(acceptance); |
| | | list.forEach(v->{ |
| | | v.setAcceptanceId(acceptance.getId()); |
| | | feStandardSubstanceAcceptanceInspectionMapper.insert(v); |
| | | }); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<AcceptanceVo> getPageAcceptance(Page page, String name) { |
| | | return this.baseMapper.getPageAcceptance(page,name); |
| | | } |
| | | |
| | | @Override |
| | | public AcceptanceDetailsVo getAcceptanceDetails(Integer id) { |
| | | FeStandardSubstanceAcceptance acceptance = this.baseMapper.selectById(id); |
| | | FeStandardSubstance substance = feStandardSubstanceMapper.selectById(acceptance.getSubstanceId()); |
| | | QueryWrapper<FeStandardSubstanceAcceptanceInspection> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("acceptance_id",id); |
| | | List<FeStandardSubstanceAcceptanceInspection> list = feStandardSubstanceAcceptanceInspectionMapper.selectList(queryWrapper); |
| | | AcceptanceDetailsVo vo = new AcceptanceDetailsVo(); |
| | | vo.setSubstance(substance); |
| | | vo.setAcceptance(acceptance); |
| | | vo.setList(list); |
| | | return vo; |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Integer deleteAcceptance(Integer id) { |
| | | feStandardSubstanceAcceptanceInspectionMapper.delete(new QueryWrapper<FeStandardSubstanceAcceptanceInspection>() |
| | | .lambda().eq(FeStandardSubstanceAcceptanceInspection::getAcceptanceId,id)); |
| | | return this.baseMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public void exportFeStandardSubstanceAcceptance(HttpServletResponse response) { |
| | | List<FeStandardSubstanceAcceptance> list = this.list(); |
| | | response.setContentType("application/vnd.ms-excel"); |
| | | response.setCharacterEncoding("UTF-8"); |
| | | // è¿éURLEncoder.encodeå¯ä»¥é²æ¢ä¸æä¹±ç å½ç¶åeasyexcel没æå
³ç³» |
| | | try { |
| | | String fileName = URLEncoder.encode("æ åç©è´¨éªæ¶", "UTF-8"); |
| | | response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx"); |
| | | // æ°å»ºExcelWriter |
| | | ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream()).registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()).build(); |
| | | WriteSheet writeSheet = EasyExcel.writerSheet(0, "æ åç©è´¨éªæ¶").head(FeStandardSubstanceAcceptance.class).build(); |
| | | excelWriter.write(list, writeSheet); |
| | | // å
³éæµ |
| | | excelWriter.finish(); |
| | | } catch (UnsupportedEncodingException e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | 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.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.requier.mapper.FeStandardSubstanceMapper; |
| | | import com.ruoyi.requier.mapper.FeStandardSubstanceRecordMapper; |
| | | import com.ruoyi.requier.pojo.FeStandardSubstance; |
| | | import com.ruoyi.requier.pojo.FeStandardSubstanceRecord; |
| | | import com.ruoyi.requier.service.FeStandardSubstanceRecordService; |
| | | import com.ruoyi.requier.vo.SubstanceRecordVo; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * æ åç©è´¨æ¸
ååç¨å½è¿è®°å½è¡¨ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-14 01:49:11 |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Service |
| | | public class FeStandardSubstanceRecordServiceImpl extends ServiceImpl<FeStandardSubstanceRecordMapper, FeStandardSubstanceRecord> implements FeStandardSubstanceRecordService { |
| | | |
| | | @Resource |
| | | private FeStandardSubstanceMapper feStandardSubstanceMapper; |
| | | |
| | | @Override |
| | | public void borrowSubstance(FeStandardSubstanceRecord feStandardSubstanceRecord) { |
| | | FeStandardSubstance standardSubstance = feStandardSubstanceMapper.selectOne(Wrappers.<FeStandardSubstance>lambdaQuery() |
| | | .eq(FeStandardSubstance::getId, feStandardSubstanceRecord.getSubstanceId()) |
| | | .eq(FeStandardSubstance::getState, 0) |
| | | .last("limit 1")); |
| | | if (ObjectUtils.isEmpty(standardSubstance)){ |
| | | throw new ErrorException("该ç©è´¨å·²è¢«ååºï¼"); |
| | | } |
| | | this.baseMapper.insert(feStandardSubstanceRecord); |
| | | standardSubstance.setState(1); |
| | | feStandardSubstanceMapper.updateById(standardSubstance); |
| | | } |
| | | |
| | | @Override |
| | | public void returnSubstance(FeStandardSubstanceRecord feStandardSubstanceRecord) { |
| | | FeStandardSubstance standardSubstance = feStandardSubstanceMapper.selectOne(Wrappers.<FeStandardSubstance>lambdaQuery() |
| | | .eq(FeStandardSubstance::getId, feStandardSubstanceRecord.getSubstanceId()) |
| | | .eq(FeStandardSubstance::getState, 1)); |
| | | if (ObjectUtils.isEmpty(standardSubstance)){ |
| | | throw new ErrorException("该ç©è´¨æªè¢«é¢ç¨ï¼æ éå½è¿ï¼"); |
| | | } |
| | | standardSubstance.setState(0); |
| | | feStandardSubstanceMapper.updateById(standardSubstance); |
| | | System.out.println(feStandardSubstanceRecord); |
| | | baseMapper.update(feStandardSubstanceRecord, Wrappers.<FeStandardSubstanceRecord>lambdaUpdate() |
| | | .eq(FeStandardSubstanceRecord::getSubstanceId, feStandardSubstanceRecord.getSubstanceId()) |
| | | .eq(FeStandardSubstanceRecord::getStatus, 0)); |
| | | } |
| | | |
| | | @Override |
| | | public List<FeStandardSubstanceRecord> getSubstanceRecord(Integer id) { |
| | | QueryWrapper<FeStandardSubstanceRecord> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("substance_id",id); |
| | | List<FeStandardSubstanceRecord> list = this.baseMapper.selectList(queryWrapper); |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public IPage<SubstanceRecordVo> getPage(Page page, SubstanceRecordVo vo) { |
| | | return this.baseMapper.getPage(page,vo); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.requier.mapper.FeStandardSubstanceMapper; |
| | | import com.ruoyi.requier.pojo.FeStandardSubstance; |
| | | import com.ruoyi.requier.service.FeStandardSubstanceService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * æ åç©è´¨æ¸
å æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 03:58:59 |
| | | */ |
| | | @Service |
| | | public class FeStandardSubstanceServiceImpl extends ServiceImpl<FeStandardSubstanceMapper, FeStandardSubstance> implements FeStandardSubstanceService { |
| | | |
| | | @Override |
| | | public IPage<FeStandardSubstance> page(Page page,FeStandardSubstance feStandardSubstance) { |
| | | return this.baseMapper.getPage(page,feStandardSubstance); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import com.ruoyi.requier.dto.FeTempHumDateDto; |
| | | import com.ruoyi.requier.dto.FeTempHumRecordDto; |
| | | import com.ruoyi.requier.mapper.FeTempHumDateMapper; |
| | | import com.ruoyi.requier.pojo.FeTempHumDate; |
| | | import com.ruoyi.requier.service.FeTempHumDateService; |
| | | import com.ruoyi.requier.service.FeTempHumRecordService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.HashMap; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-温湿度 åºå -ç¶ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 11:02:18 |
| | | */ |
| | | @Service |
| | | public class FeTempHumDateServiceImpl extends ServiceImpl<FeTempHumDateMapper, FeTempHumDate> implements FeTempHumDateService { |
| | | |
| | | @Autowired |
| | | private FeTempHumRecordService feTempHumRecordService; |
| | | |
| | | @Override |
| | | public IPage<FeTempHumDateDto> getFeTempHumDate(Page page) { |
| | | return baseMapper.getFeTempHumDate(page); |
| | | } |
| | | |
| | | @Override |
| | | public void exportTemperatureAndHumidityRecords(Integer dateId, HttpServletResponse response) { |
| | | FeTempHumDate feTempHumDate = baseMapper.selectById(dateId); |
| | | IPage<FeTempHumRecordDto> list = feTempHumRecordService.getFeTempHumRecordPage(new Page<>(1, -1), dateId); |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); |
| | | list.getRecords().forEach(i -> { |
| | | i.setMonth(i.getMorningTestTime().getMonth().getValue()); |
| | | i.setMorningTestTimeStr(i.getMorningTestTime().format(formatter)); |
| | | i.setAfternoonTimeStr(i.getAfternoonTime().format(formatter)); |
| | | }); |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/temp_hum_date.docx"); |
| | | Configure configure = Configure.builder() |
| | | .bind("recordList", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | map.put("testAreaName", feTempHumDate.getTestAreaName()); |
| | | map.put("experimentalYear", feTempHumDate.getMonthDate().getYear()); |
| | | map.put("experimentalMonth", feTempHumDate.getMonthDate().getMonth().getValue()); |
| | | |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("feTempHum", map); |
| | | put("recordList", list.getRecords()); |
| | | }}); |
| | | |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String fileName = URLEncoder.encode( |
| | | "温湿度记å½å¯¼åº", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.requier.dto.FeTempHumRecordDto; |
| | | import com.ruoyi.requier.mapper.FeTempHumRecordMapper; |
| | | import com.ruoyi.requier.pojo.FeTempHumRecord; |
| | | import com.ruoyi.requier.service.FeTempHumRecordService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-æ¸©æ¹¿åº¦è®°å½ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:28:52 |
| | | */ |
| | | @Service |
| | | public class FeTempHumRecordServiceImpl extends ServiceImpl<FeTempHumRecordMapper, FeTempHumRecord> implements FeTempHumRecordService { |
| | | |
| | | @Override |
| | | public IPage<FeTempHumRecordDto> getFeTempHumRecordPage(Page page, Integer dateId) { |
| | | return baseMapper.getFeTempHumRecordPage(page, dateId); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.deepoove.poi.data.Pictures; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import com.ruoyi.requier.dto.ForeignRegisterDto; |
| | | import com.ruoyi.requier.mapper.ForeignRegisterMapper; |
| | | import com.ruoyi.requier.pojo.ForeignRegister; |
| | | import com.ruoyi.requier.service.ForeignRegisterService; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 夿¥äººåç»è®° æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-19 07:17:35 |
| | | */ |
| | | @Service |
| | | public class ForeignRegisterServiceImpl extends ServiceImpl<ForeignRegisterMapper, ForeignRegister> implements ForeignRegisterService { |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | @Value("${file.path}") |
| | | private String imgUrl; |
| | | |
| | | /** |
| | | * 夿¥äººåç»è®°å页æ¥è¯¢ |
| | | * @param page |
| | | * @param foreignRegister |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<ForeignRegisterDto> pageForeignRegister(Page page, ForeignRegisterDto foreignRegister) { |
| | | String beginDate = foreignRegister.getBeginDate(); |
| | | String endDate = foreignRegister.getEndDate(); |
| | | foreignRegister.setBeginDate(null); |
| | | foreignRegister.setEndDate(null); |
| | | return baseMapper.pageForeignRegister(page, QueryWrappers.queryWrappers(foreignRegister), beginDate, endDate); |
| | | } |
| | | |
| | | /** |
| | | * 导åºå¤æ¥äººåç»è®° |
| | | * @param foreignRegister |
| | | */ |
| | | @Override |
| | | public void exportForeignRegister(ForeignRegisterDto foreignRegister, HttpServletResponse response) { |
| | | String beginDate = foreignRegister.getBeginDate(); |
| | | String endDate = foreignRegister.getEndDate(); |
| | | foreignRegister.setBeginDate(null); |
| | | foreignRegister.setEndDate(null); |
| | | List<ForeignRegisterDto> register = baseMapper.getForeignRegisterList(QueryWrappers.queryWrappers(foreignRegister), beginDate, endDate); |
| | | |
| | | for (ForeignRegisterDto foreignRegisterDto : register) { |
| | | // æ·»å ååäººåæ¹å人ç¾å |
| | | foreignRegisterDto.setAccompanyingRender(StringUtils.isNotBlank(foreignRegisterDto.getAccompanyingUrl()) |
| | | ? Pictures.ofLocal(imgUrl + "/" + foreignRegisterDto.getAccompanyingUrl()).create() : null); |
| | | foreignRegisterDto.setApproveRender(StringUtils.isNotBlank(foreignRegisterDto.getApproveUrl()) |
| | | ? Pictures.ofLocal(imgUrl + "/" + foreignRegisterDto.getApproveUrl()).create() : null); |
| | | } |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/foreign-register.docx"); |
| | | Configure configure = Configure.builder() |
| | | .bind("register", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("register", register); |
| | | }}); |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String fileName = URLEncoder.encode( |
| | | "夿¥äººåç»è®°", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.requier.mapper.InternalWastesDetailMapper; |
| | | import com.ruoyi.requier.pojo.InternalWastesDetail; |
| | | import com.ruoyi.requier.service.InternalWastesDetailService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨å
å¡ä¸åºç»è®°è¯¦æ
æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-19 06:39:54 |
| | | */ |
| | | @Service |
| | | public class InternalWastesDetailServiceImpl extends ServiceImpl<InternalWastesDetailMapper, InternalWastesDetail> implements InternalWastesDetailService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import com.ruoyi.requier.dto.InternalWastesDto; |
| | | import com.ruoyi.requier.mapper.InternalWastesMapper; |
| | | import com.ruoyi.requier.pojo.InternalWastes; |
| | | import com.ruoyi.requier.pojo.InternalWastesDetail; |
| | | import com.ruoyi.requier.service.InternalWastesDetailService; |
| | | import com.ruoyi.requier.service.InternalWastesService; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨å
å¡ä¸åºç»è®° æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-19 06:39:27 |
| | | */ |
| | | @Service |
| | | @AllArgsConstructor |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class InternalWastesServiceImpl extends ServiceImpl<InternalWastesMapper, InternalWastes> implements InternalWastesService { |
| | | |
| | | private InternalWastesDetailService internalWastesDetailService; |
| | | |
| | | /** |
| | | * å®å
¨å
å¡ä¸åºç»è®°å页æ¥è¯¢ |
| | | * @param page |
| | | * @param internalWastes |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<InternalWastesDto> pageInternalWastes(Page page, InternalWastes internalWastes) { |
| | | return baseMapper.pageInternalWastes(page, QueryWrappers.queryWrappers(internalWastes)); |
| | | } |
| | | |
| | | /** |
| | | * å®å
¨å
å¡ä¸åºç»è®°æ°å¢ |
| | | * @param internalWastes |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean addInternalWastes(InternalWastesDto internalWastes) { |
| | | |
| | | baseMapper.insert(internalWastes); |
| | | // æ°å¢è¯¦æ
|
| | | for (InternalWastesDetail internalWastesDetail : internalWastes.getWastesDetailList()) { |
| | | internalWastesDetail.setWastesId(internalWastes.getWastesId()); |
| | | } |
| | | internalWastesDetailService.saveBatch(internalWastes.getWastesDetailList()); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * å®å
¨å
å¡ä¸åºç»è®°ä¿®æ¹ |
| | | * @param internalWastes |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean updateInternalWastes(InternalWastesDto internalWastes) { |
| | | baseMapper.updateById(internalWastes); |
| | | |
| | | // å é¤ä¹åç详æ
|
| | | internalWastesDetailService.remove(Wrappers.<InternalWastesDetail>lambdaQuery() |
| | | .eq(InternalWastesDetail::getWastesId, internalWastes.getWastesId())); |
| | | |
| | | // æ°å¢è¯¦æ
|
| | | for (InternalWastesDetail internalWastesDetail : internalWastes.getWastesDetailList()) { |
| | | internalWastesDetail.setWastesId(internalWastes.getWastesId()); |
| | | } |
| | | internalWastesDetailService.saveBatch(internalWastes.getWastesDetailList()); |
| | | |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * å®å
¨å
å¡ä¸åºç»è®°å é¤ |
| | | * @param WastesId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean delInternalWastes(Integer WastesId) { |
| | | internalWastesDetailService.remove(Wrappers.<InternalWastesDetail>lambdaQuery() |
| | | .eq(InternalWastesDetail::getWastesId, WastesId)); |
| | | baseMapper.deleteById(WastesId); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * å®å
¨å
å¡ä¸åºç»è®°æ¥ç详æ
|
| | | * @param WastesId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public InternalWastesDto getInternalWastesOne(Integer WastesId) { |
| | | InternalWastes internalWastes = baseMapper.selectById(WastesId); |
| | | InternalWastesDto internalWastesDto = new InternalWastesDto(); |
| | | BeanUtils.copyProperties(internalWastes, internalWastesDto); |
| | | |
| | | // æ¥è¯¢è¯¦ç»ä¿¡æ¯ |
| | | internalWastesDto.setWastesDetailList(internalWastesDetailService.list(Wrappers.<InternalWastesDetail>lambdaQuery() |
| | | .eq(InternalWastesDetail::getWastesId, WastesId))); |
| | | return internalWastesDto; |
| | | } |
| | | |
| | | /** |
| | | * 导åºä¸åºå¤ç |
| | | * @param wastesId |
| | | * @param response |
| | | */ |
| | | @Override |
| | | public void exportInternalWastes(Integer wastesId, HttpServletResponse response) { |
| | | InternalWastes internalWastes = baseMapper.selectById(wastesId); |
| | | |
| | | List<InternalWastesDetail> wastesDetailList = internalWastesDetailService.list(Wrappers.<InternalWastesDetail>lambdaQuery() |
| | | .eq(InternalWastesDetail::getWastesId, wastesId)); |
| | | |
| | | int index = 1; |
| | | for (InternalWastesDetail detail : wastesDetailList) { |
| | | detail.setIndex(index); |
| | | index++; |
| | | } |
| | | |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/internal-wastes.docx"); |
| | | Configure configure = Configure.builder() |
| | | .bind("wastesDetailList", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("remark", internalWastes.getRemark()); |
| | | put("wastesDetailList", wastesDetailList); |
| | | }}); |
| | | |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String fileName = URLEncoder.encode( |
| | | "å®å
¨å
å¡ä¸åºå¤ç", "UTF-8"); |
| | | response.setHeader("Content-disposition", |
| | | "attachment;filename=" + fileName + ".docx"); |
| | | OutputStream os = response.getOutputStream(); |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.requier.mapper.ProcurementSuppliesConsumablesMapper; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesConsumables; |
| | | import com.ruoyi.requier.service.ProcurementSuppliesConsumablesService; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service |
| | | @AllArgsConstructor |
| | | public class ProcurementSuppliesConsumablesServiceImpl extends ServiceImpl<ProcurementSuppliesConsumablesMapper, ProcurementSuppliesConsumables> |
| | | implements ProcurementSuppliesConsumablesService { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.requier.mapper.ProcurementSuppliesContentsMapper; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesContents; |
| | | import com.ruoyi.requier.service.ProcurementSuppliesContentsService; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | @Service |
| | | @AllArgsConstructor |
| | | public class ProcurementSuppliesContentsServiceImpl extends ServiceImpl<ProcurementSuppliesContentsMapper, ProcurementSuppliesContents> |
| | | implements ProcurementSuppliesContentsService { |
| | | |
| | | private UserMapper userMapper; |
| | | |
| | | @Override |
| | | public List<ProcurementSuppliesContents> directoryListing() { |
| | | ArrayList<ProcurementSuppliesContents> list = new ArrayList<>(); |
| | | // æ¥åºä¸çº§ç®å½ |
| | | List<ProcurementSuppliesContents> firstLevel = baseMapper.selectList(new LambdaQueryWrapper<ProcurementSuppliesContents>() |
| | | .isNull(ProcurementSuppliesContents::getParentId)); |
| | | |
| | | // æ¥åºå«æç¶èç¹ç å¹¶éè¿ç¶èç¹åç» |
| | | List<ProcurementSuppliesContents> seconds = baseMapper.selectList(new LambdaQueryWrapper<ProcurementSuppliesContents>() |
| | | .isNotNull(ProcurementSuppliesContents::getParentId)); |
| | | if(firstLevel.size() > 0){ |
| | | Map<Integer, List<ProcurementSuppliesContents>> collect = seconds.stream() |
| | | .collect(Collectors.groupingBy(ProcurementSuppliesContents::getParentId)); |
| | | // æ ¹æ®åç»çkey èµå¼å¯¹åºçchildren |
| | | for (int i = 0; i < firstLevel.size(); i++) { |
| | | recursion(firstLevel.get(i),collect); |
| | | list.add(firstLevel.get(i)); |
| | | } |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | // éå½èµå¼children |
| | | public ProcurementSuppliesContents recursion(ProcurementSuppliesContents firstLevel, Map<Integer, List<ProcurementSuppliesContents>> collect) { |
| | | // å°ç¶èç¹çchildrenèµå¼ |
| | | if(collect.containsKey(firstLevel.getId())) { |
| | | List<ProcurementSuppliesContents> procurementSupplies = collect.get(firstLevel.getId()); |
| | | firstLevel.setChildren(procurementSupplies); |
| | | for (int i = 0; i < procurementSupplies.size(); i++) { |
| | | recursion(procurementSupplies.get(i),collect); |
| | | } |
| | | } |
| | | return firstLevel; |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> getNodeNames() { |
| | | List<ProcurementSuppliesContents> procurementSuppliesContents = baseMapper.selectList(null); |
| | | List<Map<String, Object>> collect = new ArrayList<>(); |
| | | if(procurementSuppliesContents.size() > 0) { |
| | | collect = procurementSuppliesContents.stream().map(item -> { |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | map.put("id", item.getId()); |
| | | map.put("nodeName", item.getNodeName()); |
| | | return map; |
| | | }).collect(Collectors.toList()); |
| | | } |
| | | return collect; |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> getUserList() { |
| | | // 1 åç¨ |
| | | List<User> users = userMapper.selectList(new LambdaQueryWrapper<User>().eq(User::getStatus, 0)); |
| | | List<Map<String, Object>> collect = new ArrayList<>(); |
| | | if(users.size() > 0) { |
| | | collect = users.stream().map(item -> { |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | map.put("id", item.getId()); |
| | | map.put("nodeName", item.getName()); |
| | | return map; |
| | | }).collect(Collectors.toList()); |
| | | } |
| | | return collect; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.requier.dto.ProcurementSuppliesExpendDto; |
| | | import com.ruoyi.requier.mapper.ProcurementSuppliesExpendsMapper; |
| | | import com.ruoyi.requier.mapper.ProcurementSuppliesListMapper; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesExpends; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesList; |
| | | import com.ruoyi.requier.service.ProcurementSuppliesExpendsService; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 03:47:19 |
| | | */ |
| | | @Service |
| | | public class ProcurementSuppliesExpendsServiceImpl extends ServiceImpl<ProcurementSuppliesExpendsMapper, ProcurementSuppliesExpends> implements ProcurementSuppliesExpendsService { |
| | | @Resource |
| | | private ProcurementSuppliesExpendsMapper expendsMapper; |
| | | |
| | | @Resource |
| | | private ProcurementSuppliesListMapper listMapper; |
| | | |
| | | @Override |
| | | public IPage<ProcurementSuppliesExpendDto> selectAll(Page page, Long procurementSuppliesListId) { |
| | | IPage<ProcurementSuppliesExpendDto> list = expendsMapper.pageList(page, Wrappers.<ProcurementSuppliesExpendDto>lambdaQuery().eq(ProcurementSuppliesExpendDto::getListId, procurementSuppliesListId)); |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | @Transactional |
| | | public Integer addExpends(ProcurementSuppliesExpendDto expendDto) { |
| | | ProcurementSuppliesList list = listMapper.selectProcurementSuppliesListForUpdate(expendDto.getListId()); |
| | | |
| | | ProcurementSuppliesExpends expends = new ProcurementSuppliesExpends(); |
| | | BeanUtils.copyProperties(expendDto, expends); |
| | | int userId = SecurityUtils.getUserId().intValue(); |
| | | expends.setEnterUserId(userId); |
| | | expends.setUpdateUserId(userId); |
| | | expends.setSpecimenName(expendDto.getSpecimenName()); |
| | | if (list.getCurrentAmount() < expendDto.getAmount()) { |
| | | return 0; |
| | | } |
| | | |
| | | list.setCurrentAmount(list.getCurrentAmount() - expendDto.getAmount()); |
| | | |
| | | listMapper.updateById(list); |
| | | return expendsMapper.insert(expends); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional |
| | | public Integer deleteExpends(Long id) { |
| | | ProcurementSuppliesExpends expend = expendsMapper.selectById(id); |
| | | ProcurementSuppliesList list = listMapper.selectProcurementSuppliesListForUpdate(expend.getListId()); |
| | | list.setCurrentAmount(list.getCurrentAmount() + expend.getAmount()); |
| | | int userId = SecurityUtils.getUserId().intValue(); |
| | | list.setUpdateUser(userId); |
| | | listMapper.updateById(list); |
| | | return expendsMapper.deleteById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.ExcelWriter; |
| | | import com.alibaba.excel.write.metadata.WriteSheet; |
| | | import com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | 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.framework.exception.ErrorException; |
| | | import com.ruoyi.requier.dto.ProcurementSuppliesListDto; |
| | | import com.ruoyi.requier.dto.ProcurementSuppliesListEDto; |
| | | import com.ruoyi.requier.mapper.ProcurementSuppliesListMapper; |
| | | import com.ruoyi.requier.mapper.SupplierManagementMapper; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesList; |
| | | import com.ruoyi.requier.service.ProcurementSuppliesListService; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLEncoder; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡ä¸ä¾åºå èæå表 æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 04:04:32 |
| | | */ |
| | | @Service |
| | | public class ProcurementSuppliesListServiceImpl extends ServiceImpl<ProcurementSuppliesListMapper, ProcurementSuppliesList> implements ProcurementSuppliesListService { |
| | | @Autowired |
| | | private UserMapper userMapper; |
| | | |
| | | @Resource |
| | | private ProcurementSuppliesListMapper procurementSuppliesListMapper; |
| | | |
| | | @Override |
| | | public IPage<ProcurementSuppliesListDto> selectList(Page page, ProcurementSuppliesListDto list) { |
| | | Long contentsId = list.getContentsId(); |
| | | list.setContentsId(null); |
| | | IPage<ProcurementSuppliesList> iPage = baseMapper.selectProcurementSuppliesList(page,contentsId, QueryWrappers.queryWrappers(list)); |
| | | IPage<ProcurementSuppliesListDto> result = new Page<>(); |
| | | List<ProcurementSuppliesListDto> dtos = new ArrayList<>(); |
| | | BeanUtils.copyProperties(iPage, result); |
| | | for (int i = 0; i < iPage.getRecords().size(); i++) { |
| | | ProcurementSuppliesList record = iPage.getRecords().get(i); |
| | | ProcurementSuppliesListDto dto = new ProcurementSuppliesListDto(); |
| | | BeanUtils.copyProperties(record, dto); |
| | | if (record.getPersonInCharge() != 0) { |
| | | User user = userMapper.selectById(record.getPersonInCharge()); |
| | | dto.setPersonInChargeName(user.getName()); |
| | | } |
| | | if (record.getUpdateUser() != 0) { |
| | | User updateUser = userMapper.selectById(record.getUpdateUser()); |
| | | dto.setUpdateUserName(updateUser.getName()); |
| | | } |
| | | //èæåç§° |
| | | dto.setSupplierName(record.getConsumablesName()); |
| | | |
| | | dtos.add(dto); |
| | | } |
| | | result.setRecords(dtos); |
| | | |
| | | return result; |
| | | } |
| | | |
| | | @Override |
| | | public Integer addProcurementSuppliesList(ProcurementSuppliesListDto dto) { |
| | | ProcurementSuppliesList list = new ProcurementSuppliesList(); |
| | | BeanUtils.copyProperties(dto, list); |
| | | return baseMapper.insert(list); |
| | | } |
| | | |
| | | @Override |
| | | public Integer updateProcurementSuppliesList(ProcurementSuppliesListDto dto) { |
| | | ProcurementSuppliesList list = new ProcurementSuppliesList(); |
| | | BeanUtils.copyProperties(dto, list); |
| | | return baseMapper.updateById(list); |
| | | } |
| | | |
| | | @Override |
| | | public void exportProcurementSuppliesList(Integer contentsId,HttpServletResponse response) { |
| | | List<ProcurementSuppliesList> data = procurementSuppliesListMapper.selectProcurementSuppliesListByContentsId(contentsId); |
| | | if (contentsId==0){ |
| | | data = procurementSuppliesListMapper.selectList(null); |
| | | } |
| | | if (data.size()==0) { |
| | | throw new ErrorException("æ æ°æ®"); |
| | | } |
| | | response.setContentType("application/vnd.ms-excel"); |
| | | response.setCharacterEncoding("UTF-8"); |
| | | // è¿éURLEncoder.encodeå¯ä»¥é²æ¢ä¸æä¹±ç å½ç¶åeasyexcel没æå
³ç³» |
| | | try { |
| | | String fileName = URLEncoder.encode("èæå表", "UTF-8"); |
| | | response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx"); |
| | | // æ°å»ºExcelWriter |
| | | ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream()).registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()).build(); |
| | | WriteSheet writeSheet = EasyExcel.writerSheet(0, "èæå表").head(ProcurementSuppliesListEDto.class).build(); |
| | | excelWriter.write(data, writeSheet); |
| | | // å
³éæµ |
| | | excelWriter.finish(); |
| | | } catch (UnsupportedEncodingException e) { |
| | | e.printStackTrace(); |
| | | throw new ErrorException("导åºå¤±è´¥"); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | throw new ErrorException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.ExcelWriter; |
| | | import com.alibaba.excel.write.metadata.WriteSheet; |
| | | import com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy; |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.alibaba.fastjson2.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.requier.dto.StoreDto; |
| | | import com.ruoyi.requier.excel.StoreExcel; |
| | | import com.ruoyi.requier.mapper.ProcurementSuppliesConsumablesMapper; |
| | | import com.ruoyi.requier.mapper.ProcurementSuppliesStoreMapper; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesConsumables; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesList; |
| | | import com.ruoyi.requier.pojo.ProcurementSuppliesStore; |
| | | import com.ruoyi.requier.service.ProcurementSuppliesListService; |
| | | import com.ruoyi.requier.service.ProcurementSuppliesStoreService; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLEncoder; |
| | | import java.time.LocalDate; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Objects; |
| | | |
| | | @Service |
| | | @AllArgsConstructor |
| | | public class ProcurementSuppliesStoreServiceImpl extends ServiceImpl<ProcurementSuppliesStoreMapper, ProcurementSuppliesStore> |
| | | implements ProcurementSuppliesStoreService { |
| | | |
| | | private ProcurementSuppliesConsumablesMapper consumablesMapper; |
| | | |
| | | @Autowired |
| | | private ProcurementSuppliesListService procurementSuppliesListService; |
| | | |
| | | |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void addStore(Map<String,Object> map) { |
| | | ProcurementSuppliesStore procurementSuppliesStore = JSONObject.parseObject(JSONObject.toJSONString(map.get("store")), ProcurementSuppliesStore.class); |
| | | procurementSuppliesStore.setRegistrant(SecurityUtils.getUserId().intValue()); |
| | | procurementSuppliesStore.setRegistrantTime(LocalDate.now()); |
| | | if (Objects.isNull(procurementSuppliesStore.getId())) { |
| | | baseMapper.insert(procurementSuppliesStore); |
| | | } else { |
| | | baseMapper.updateById(procurementSuppliesStore); |
| | | } |
| | | |
| | | List<ProcurementSuppliesConsumables> list = JSON.parseArray(JSONObject.toJSONString(map.get("consumables")), ProcurementSuppliesConsumables.class); |
| | | for (ProcurementSuppliesConsumables consumables : list) { |
| | | ProcurementSuppliesList one = procurementSuppliesListService.getOne(new QueryWrapper<ProcurementSuppliesList>().lambda() |
| | | .eq(ProcurementSuppliesList::getConsumablesName, consumables.getConsumablesName())); |
| | | one.setCurrentAmount(one.getCurrentAmount() + consumables.getStoreNumber()); |
| | | procurementSuppliesListService.updateById(one); |
| | | } |
| | | // çæè´§å· |
| | | DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyyMMdd"); |
| | | if(!Objects.isNull(list) && list.size() > 0) { |
| | | for (int i = 0; i < list.size(); i++) { |
| | | list.get(i).setStoreId(procurementSuppliesStore.getId()); |
| | | String itemNumber ="HCRK" + LocalDate.now().format(dateTimeFormatter) + String.format("%03d", i); |
| | | list.get(i).setItemNumber(itemNumber); |
| | | consumablesMapper.insert(list.get(i)); |
| | | } |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void updateStore(Map<String,Object> map) { |
| | | ProcurementSuppliesStore procurementSuppliesStore = JSONObject.parseObject(JSONObject.toJSONString(map.get("store")), ProcurementSuppliesStore.class); |
| | | baseMapper.updateById(procurementSuppliesStore); |
| | | List<ProcurementSuppliesConsumables> list = JSON.parseArray(JSONObject.toJSONString(map.get("consumables")), ProcurementSuppliesConsumables.class); |
| | | consumablesMapper.delete(new LambdaQueryWrapper<ProcurementSuppliesConsumables>() |
| | | .eq(ProcurementSuppliesConsumables::getStoreId, procurementSuppliesStore.getId())); |
| | | if(!Objects.isNull(list) && list.size() > 0) { |
| | | for (int i = 0; i < list.size(); i++) { |
| | | list.get(i).setId(null); |
| | | list.get(i).setStoreId(procurementSuppliesStore.getId()); |
| | | consumablesMapper.insert(list.get(i)); |
| | | } |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void deleteStore(Integer id, Integer consumablesId) { |
| | | consumablesMapper.deleteById(consumablesId); |
| | | List<ProcurementSuppliesConsumables> consumables = consumablesMapper.selectList(new LambdaQueryWrapper<ProcurementSuppliesConsumables>() |
| | | .eq(ProcurementSuppliesConsumables::getStoreId, id)); |
| | | // 夿æ¯å¦è¿æèæ æ²¡æå°±å°ä¸»è¡¨Storeå é¤ |
| | | if(CollectionUtils.isEmpty(consumables)) { |
| | | baseMapper.deleteById(id); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public IPage<StoreDto> selectStoreList(Page page, StoreDto storeDto) { |
| | | IPage<StoreDto> iPage = baseMapper.selectStoreList(page, QueryWrappers.queryWrappers(storeDto)); |
| | | return iPage; |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * @param contentsId |
| | | * @param response |
| | | */ |
| | | @Override |
| | | public void exportExcel(Integer contentsId, HttpServletResponse response) throws IOException { |
| | | List<StoreExcel> storeExcels = baseMapper.exportExcel(contentsId); |
| | | response.setContentType("application/vnd.ms-excel"); |
| | | response.setCharacterEncoding("UTF-8"); |
| | | // è¿éURLEncoder.encodeå¯ä»¥é²æ¢ä¸æä¹±ç å½ç¶åeasyexcel没æå
³ç³» |
| | | String fileName = null; |
| | | try { |
| | | fileName = URLEncoder.encode("èæå
¥åº", "UTF-8"); |
| | | } catch (UnsupportedEncodingException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx"); |
| | | ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream()).registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()).build(); |
| | | WriteSheet writeSheet = EasyExcel.writerSheet(0, "èæå
¥åº").head(StoreExcel.class).build(); |
| | | excelWriter.write(storeExcels, writeSheet); |
| | | excelWriter.finish(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.ExcelWriter; |
| | | import com.alibaba.excel.write.metadata.WriteSheet; |
| | | import com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy; |
| | | 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.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.requier.dto.SupplierManagementDto; |
| | | import com.ruoyi.requier.mapper.SupplierManagementMapper; |
| | | import com.ruoyi.requier.pojo.SupplierManagement; |
| | | import com.ruoyi.requier.service.SupplierManagementService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLEncoder; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 02:46:45 |
| | | */ |
| | | @Service |
| | | public class SupplierManagementServiceImpl extends ServiceImpl<SupplierManagementMapper, SupplierManagement> implements SupplierManagementService { |
| | | |
| | | @Resource |
| | | private SupplierManagementMapper supplierManagementMapper; |
| | | |
| | | public SupplierManagementServiceImpl(SupplierManagementMapper supplierManagementMapper) { |
| | | this.supplierManagementMapper = supplierManagementMapper; |
| | | } |
| | | |
| | | @Override |
| | | public List<SupplierManagement> selectSupplierManagement( SupplierManagement supplierManagement) { |
| | | return this.list(); |
| | | } |
| | | |
| | | @Override |
| | | public void exportSupplierManagement(Integer parentId, HttpServletResponse response) { |
| | | List<SupplierManagement> data = supplierManagementMapper.selectSupplierManagementAll(parentId); |
| | | response.setContentType("application/vnd.ms-excel"); |
| | | response.setCharacterEncoding("UTF-8"); |
| | | // è¿éURLEncoder.encodeå¯ä»¥é²æ¢ä¸æä¹±ç å½ç¶åeasyexcel没æå
³ç³» |
| | | try { |
| | | String fileName = URLEncoder.encode("ä¾åºå管ç", "UTF-8"); |
| | | response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx"); |
| | | // æ°å»ºExcelWriter |
| | | ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream()).registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()).build(); |
| | | WriteSheet writeSheet = EasyExcel.writerSheet(0, "ä¾åºå管ç").head(SupplierManagementDto.class).build(); |
| | | excelWriter.write(data, writeSheet); |
| | | // å
³éæµ |
| | | excelWriter.finish(); |
| | | } catch (UnsupportedEncodingException e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public IPage<SupplierManagement> selectQualifiedSupplierManagement(Page page, SupplierManagement supplierManagement) { |
| | | return baseMapper.selectQualifiedSupplierManagement(page, QueryWrappers.queryWrappers(supplierManagement)); |
| | | } |
| | | |
| | | @Override |
| | | public List<SupplierManagement> selectQualifiedSupplierManagementById(Integer supplierManagementId) { |
| | | return this.list(new QueryWrapper<SupplierManagement>().lambda().eq(SupplierManagement::getSupplierManagementId , supplierManagementId)); |
| | | } |
| | | |
| | | @Override |
| | | public List<SupplierManagement> selectSupplierManagementByParentId(Integer parentId) { |
| | | return supplierManagementMapper.selectSupplierManagement(parentId); |
| | | } |
| | | |
| | | @Override |
| | | public List<SupplierManagement> selectSupplierManagementAll() { |
| | | return supplierManagementMapper.selectList(null); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.requier.mapper.SuppliersDirectoryContentsMapper; |
| | | import com.ruoyi.requier.pojo.SuppliersDirectoryContents; |
| | | import com.ruoyi.requier.service.SuppliersDirectoryContentsService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡åä¾åºåéè´ç®å½ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-12-17 06:14:51 |
| | | */ |
| | | @Service |
| | | public class SuppliersDirectoryContentsServiceImpl extends ServiceImpl<SuppliersDirectoryContentsMapper, SuppliersDirectoryContents> implements SuppliersDirectoryContentsService { |
| | | |
| | | @Override |
| | | public ArrayList<SuppliersDirectoryContents> directoryListing() { |
| | | ArrayList<SuppliersDirectoryContents> list = new ArrayList<>(); |
| | | // æ¥åºä¸çº§ç®å½ |
| | | List<SuppliersDirectoryContents> firstLevel = baseMapper.selectList(new LambdaQueryWrapper<SuppliersDirectoryContents>() |
| | | .isNull(SuppliersDirectoryContents::getParentId)); |
| | | |
| | | // æ¥åºå«æç¶èç¹ç å¹¶éè¿ç¶èç¹åç» |
| | | List<SuppliersDirectoryContents> seconds = baseMapper.selectList(new LambdaQueryWrapper<SuppliersDirectoryContents>() |
| | | .isNotNull(SuppliersDirectoryContents::getParentId)); |
| | | if(firstLevel.size() > 0){ |
| | | Map<Integer, List<SuppliersDirectoryContents>> collect = seconds.stream() |
| | | .collect(Collectors.groupingBy(SuppliersDirectoryContents::getParentId)); |
| | | // æ ¹æ®åç»çkey èµå¼å¯¹åºçchildren |
| | | for (int i = 0; i < firstLevel.size(); i++) { |
| | | recursion(firstLevel.get(i),collect); |
| | | list.add(firstLevel.get(i)); |
| | | } |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> getSuppliersDirectoryContentsNodeNames() { |
| | | List<SuppliersDirectoryContents> procurementSuppliesContents = baseMapper.selectList(null); |
| | | List<Map<String, Object>> collect = new ArrayList<>(); |
| | | if(procurementSuppliesContents.size() > 0) { |
| | | collect = procurementSuppliesContents.stream().map(item -> { |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | map.put("id", item.getId()); |
| | | map.put("nodeName", item.getNodeName()); |
| | | return map; |
| | | }).collect(Collectors.toList()); |
| | | } |
| | | return collect; |
| | | } |
| | | |
| | | |
| | | public SuppliersDirectoryContents recursion(SuppliersDirectoryContents firstLevel, Map<Integer, List<SuppliersDirectoryContents>> collect) { |
| | | // å°ç¶èç¹çchildrenèµå¼ |
| | | if(collect.containsKey(firstLevel.getId())) { |
| | | List<SuppliersDirectoryContents> procurementSupplies = collect.get(firstLevel.getId()); |
| | | firstLevel.setChildren(procurementSupplies); |
| | | for (int i = 0; i < procurementSupplies.size(); i++) { |
| | | recursion(procurementSupplies.get(i),collect); |
| | | } |
| | | } |
| | | return firstLevel; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.vo; |
| | | |
| | | import com.ruoyi.requier.pojo.FeStandardSubstance; |
| | | import com.ruoyi.requier.pojo.FeStandardSubstanceAcceptance; |
| | | import com.ruoyi.requier.pojo.FeStandardSubstanceAcceptanceInspection; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class AcceptanceDetailsVo extends FeStandardSubstanceAcceptance { |
| | | |
| | | @ApiModelProperty("ç©è´¨æ¸
å") |
| | | private FeStandardSubstance substance; |
| | | |
| | | @ApiModelProperty("éªæ¶å") |
| | | private FeStandardSubstanceAcceptance acceptance; |
| | | |
| | | @ApiModelProperty("å¼ç®±è®°å½") |
| | | private List<FeStandardSubstanceAcceptanceInspection> list; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.vo; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | @Data |
| | | public class AcceptanceVo { |
| | | |
| | | @ApiModelProperty("æ£éªè¡¨id") |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("æ åç©è´¨åç§°") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("è§æ ¼åå·") |
| | | private String model; |
| | | |
| | | @ApiModelProperty("ç产åå®¶") |
| | | private String factoryManufacturer; |
| | | |
| | | @ApiModelProperty("åºåºç¼å·") |
| | | private String factoryNum; |
| | | |
| | | @ApiModelProperty("管çç¼å·") |
| | | private String manageNum; |
| | | |
| | | @ApiModelProperty("ä¸ç¡®å®åº¦") |
| | | private String uncertainty; |
| | | |
| | | @ApiModelProperty("æ°é") |
| | | private Long quantity; |
| | | |
| | | @ApiModelProperty("è´ç½®æ¥æ") |
| | | private LocalDateTime acquisitionDate; |
| | | |
| | | @ApiModelProperty("æææ") |
| | | private LocalDateTime effectiveDate; |
| | | |
| | | @ApiModelProperty("ææ¡£ç¼å·") |
| | | private String fileNum; |
| | | |
| | | @ApiModelProperty("åæ¾ä½ç½®") |
| | | private String position; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.requier.vo; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | @Data |
| | | public class SubstanceRecordVo { |
| | | |
| | | @ApiModelProperty("id") |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("æ åç©è´¨åç§°") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("è§æ ¼åå·") |
| | | private String model; |
| | | |
| | | @ApiModelProperty("åºåºç¼å·") |
| | | private String factoryNum; |
| | | |
| | | @ApiModelProperty("æ°é") |
| | | private Long quantity; |
| | | |
| | | @ApiModelProperty("é¢ç¨äºº") |
| | | private String borrowUser; |
| | | |
| | | @ApiModelProperty("ååºæ¥æ") |
| | | private LocalDateTime borrowDate; |
| | | |
| | | @ApiModelProperty("å½è¿æ¥æ") |
| | | private LocalDateTime returnDate; |
| | | |
| | | @ApiModelProperty("å½è¿äºº") |
| | | private String returnedPerson; |
| | | |
| | | @ApiModelProperty("å®å¥½æ§") |
| | | private String returnIntegrity; |
| | | |
| | | @ApiModelProperty("0ï¼åç¨ 1:å½è¿") |
| | | private String status; |
| | | |
| | | @ApiModelProperty("夿³¨") |
| | | private String remark; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.requier.mapper.FeCalibrationScheduleMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.requier.pojo.FeCalibrationSchedule"> |
| | | <id column="id" property="id" /> |
| | | <result column="instrument_name" property="instrumentName" /> |
| | | <result column="model" property="model" /> |
| | | <result column="management_number" property="managementNumber" /> |
| | | <result column="technical_indicators" property="technicalIndicators" /> |
| | | <result column="verification_cyde" property="verificationCyde" /> |
| | | <result column="verification_unit" property="verificationUnit" /> |
| | | <result column="recently_time" property="recentlyTime" /> |
| | | <result column="next_time" property="nextTime" /> |
| | | <result column="remark" property="remark" /> |
| | | <result column="organization" property="organization" /> |
| | | <result column="organization_date" property="organizationDate" /> |
| | | <result column="approve" property="approve" /> |
| | | <result column="approve_date" property="approveDate" /> |
| | | <result column="create_user" property="createUser" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_user" property="updateUser" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | </resultMap> |
| | | <select id="ipage" resultType="com.ruoyi.requier.pojo.FeCalibrationSchedule"> |
| | | select * from cnas_fe_calibration_schedule |
| | | <where> |
| | | <if test="instrumentName != null and instrumentName != ''"> |
| | | instrument_name like CONCAT('%', #{instrumentName}, '%') |
| | | </if> |
| | | <if test="instrumentName != null and managementNumber != ''"> |
| | | management_number like CONCAT('%', #{managementNumber}, '%') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.requier.mapper.FeIlluminationDetectionAreaMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.requier.pojo.FeIlluminationDetectionArea"> |
| | | <id column="detection_area_id" property="detectionAreaId" /> |
| | | <result column="detection_area_label" property="detectionAreaLabel" /> |
| | | <result column="value_one" property="valueOne" /> |
| | | <result column="value_two" property="valueTwo" /> |
| | | <result column="value_three" property="valueThree" /> |
| | | <result column="average" property="average" /> |
| | | <result column="remark" property="remark" /> |
| | | </resultMap> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.requier.mapper.FeIlluminationMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.requier.pojo.FeIllumination"> |
| | | <id column="intensity_illumination_id" property="intensityIlluminationId" /> |
| | | <result column="device_id" property="deviceId" /> |
| | | <result column="conclusion" property="conclusion" /> |
| | | <result column="tester_id" property="testerId" /> |
| | | <result column="checker_id" property="checkerId" /> |
| | | <result column="test_date" property="testDate" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | </resultMap> |
| | | |
| | | <select id="getFeLightningProtection" resultType="com.ruoyi.requier.dto.FeIlluminationDto"> |
| | | SELECT cdi.*, d.*, u1.name checker_user, u2.name tester_user, dv.device_name, dv.management_number |
| | | FROM cnas_fe_illumination cdi |
| | | left join device dv on dv.id = cdi.device_id |
| | | LEFT JOIN (SELECT d.id, |
| | | dmr.calibration_date, |
| | | dmr.next_calibration_date |
| | | FROM device d |
| | | LEFT JOIN device_metric_record dmr ON dmr.device_id = d.id |
| | | AND dmr.type = 'calibrate' |
| | | GROUP BY d.id |
| | | HAVING max(dmr.id)) d ON d.id = cdi.device_id |
| | | left join user u1 on u1.id = cdi.checker_id |
| | | left join user u2 on u2.id = cdi.tester_id |
| | | </select> |
| | | |
| | | <!-- æ¥è¯¢ç
§æè®°å½ --> |
| | | <select id="selectFeIllumination" resultType="com.ruoyi.requier.dto.FeIlluminationExportDto"> |
| | | SELECT cdi.*, |
| | | dv.device_name, |
| | | dv.management_number, |
| | | DATE_FORMAT(d.calibration_date, '%Y-%m-%d') calibrationDateString, |
| | | DATE_FORMAT(d.next_calibration_date, '%Y-%m-%d') nextCalibrationDateString |
| | | FROM cnas_fe_illumination cdi |
| | | left join device dv on dv.id = cdi.device_id |
| | | LEFT JOIN (SELECT d.id, |
| | | dmr.calibration_date, |
| | | dmr.next_calibration_date |
| | | FROM device d |
| | | LEFT JOIN device_metric_record dmr ON dmr.device_id = d.id |
| | | AND dmr.type = 'calibrate' |
| | | GROUP BY d.id |
| | | HAVING max(dmr.id)) d ON d.id = cdi.device_id |
| | | left join user u1 on u1.id = cdi.checker_id |
| | | left join user u2 on u2.id = cdi.tester_id |
| | | where cdi.intensity_illumination_id = #{intensityIlluminationId} |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.requier.mapper.FeLightningProtectionMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.requier.pojo.FeLightningProtection"> |
| | | <id column="lightning_protection_id" property="lightningProtectionId" /> |
| | | <result column="file_name" property="fileName" /> |
| | | <result column="system_file_name" property="systemFileName" /> |
| | | <result column="detection_date" property="detectionDate" /> |
| | | <result column="term_validity" property="termValidity" /> |
| | | <result column="detection_unit" property="detectionUnit" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | </resultMap> |
| | | |
| | | <select id="exportOfLightningProtectionDetection" resultType="com.ruoyi.requier.excel.FeLightningProtectionExcel"> |
| | | select * from cnas_fe_lightning_protection |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.requier.mapper.FeMeasuredQuantityMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.requier.pojo.FeMeasuredQuantity"> |
| | | <id column="measured_quantity_id" property="measuredQuantityId" /> |
| | | <result column="measured_quantity_label" property="measuredQuantityLabel" /> |
| | | <result column="value_a" property="valueA" /> |
| | | <result column="value_b" property="valueB" /> |
| | | <result column="value_c" property="valueC" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="power_stable_id" property="powerStableId" /> |
| | | </resultMap> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.requier.mapper.FePowerStableMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.requier.pojo.FePowerStable"> |
| | | <id column="power_stable_id" property="powerStableId" /> |
| | | <result column="test_location" property="testLocation" /> |
| | | <result column="test_date" property="testDate" /> |
| | | <result column="device_id" property="deviceId" /> |
| | | <result column="conclusion" property="conclusion" /> |
| | | <result column="tester_id" property="testerId" /> |
| | | <result column="checker_id" property="checkerId" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | </resultMap> |
| | | |
| | | <select id="getLaboratoryFacilityPowerStablePage" resultType="com.ruoyi.requier.dto.FePowerStableDto"> |
| | | SELECT cfps.*, d.*, u1.name checker_user, u2.name tester_user, dv.device_name, dv.management_number |
| | | FROM cnas_fe_power_stable cfps |
| | | left join device dv on dv.id = cfps.device_id |
| | | LEFT JOIN (SELECT d.id, |
| | | dmr.calibration_date, |
| | | dmr.next_calibration_date |
| | | FROM device d |
| | | LEFT JOIN device_metric_record dmr ON dmr.device_id = d.id |
| | | AND dmr.type = 'calibrate' |
| | | GROUP BY d.id |
| | | HAVING max(dmr.id)) d ON d.id = cfps.device_id |
| | | left join user u1 on u1.id = cfps.checker_id |
| | | left join user u2 on u2.id = cfps.tester_id |
| | | </select> |
| | | |
| | | <select id="getCalibrationDate" resultType="java.util.Map"> |
| | | SELECT |
| | | d.device_name deviceName, |
| | | d.management_number managementNumber, |
| | | date_format(dmr.calibration_date,'%Y-%m-%d') calibrationDate, |
| | | date_format(dmr.next_calibration_date,'%Y-%m-%d') nextCalibrationDate |
| | | FROM |
| | | device d |
| | | LEFT JOIN device_metric_record dmr ON dmr.device_id = d.id |
| | | AND dmr.type = 'calibrate' |
| | | where d.id = #{deviceId} |
| | | GROUP BY |
| | | d.id |
| | | </select> |
| | | |
| | | <!-- æ¥è¯¢çµæºç¨³å®æ§ --> |
| | | <select id="selectPowerStable" resultType="com.ruoyi.requier.dto.FePowerStableExportDto"> |
| | | SELECT cfps.*, |
| | | dv.device_name, |
| | | dv.management_number, |
| | | DATE_FORMAT(cfps.test_date, '%Y-%m-%d') testDateString, |
| | | DATE_FORMAT(d.calibration_date, '%Y-%m-%d') calibrationDateString, |
| | | DATE_FORMAT(d.next_calibration_date, '%Y-%m-%d') nextCalibrationDateString |
| | | FROM cnas_fe_power_stable cfps |
| | | left join device dv on dv.id = cfps.device_id |
| | | LEFT JOIN (SELECT d.id, |
| | | dmr.calibration_date, |
| | | dmr.next_calibration_date |
| | | FROM device d |
| | | LEFT JOIN device_metric_record dmr ON dmr.device_id = d.id |
| | | AND dmr.type = 'calibrate' |
| | | GROUP BY d.id |
| | | HAVING max(dmr.id)) d ON d.id = cfps.device_id |
| | | left join user u1 on u1.id = cfps.checker_id |
| | | left join user u2 on u2.id = cfps.tester_id |
| | | where cfps.power_stable_id = #{powerStableId} |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.requier.mapper.FeStandardSubstanceAcceptanceInspectionMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.requier.pojo.FeStandardSubstanceAcceptanceInspection"> |
| | | <id column="id" property="id" /> |
| | | <result column="acceptance_id" property="acceptanceId" /> |
| | | <result column="name" property="name" /> |
| | | <result column="number" property="number" /> |
| | | <result column="create_user" property="createUser" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_user" property="updateUser" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | </resultMap> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.requier.mapper.FeStandardSubstanceAcceptanceMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.requier.pojo.FeStandardSubstanceAcceptance"> |
| | | <id column="id" property="id" /> |
| | | <result column="substance_id" property="substanceId" /> |
| | | <result column="arrive_date" property="arriveDate" /> |
| | | <result column="maintenance_unit" property="maintenanceUnit" /> |
| | | <result column="perameters" property="perameters" /> |
| | | <result column="installation" property="installation" /> |
| | | <result column="situation" property="situation" /> |
| | | <result column="signature" property="signature" /> |
| | | <result column="producer" property="producer" /> |
| | | <result column="recipient" property="recipient" /> |
| | | <result column="file" property="file" /> |
| | | <result column="create_user" property="createUser" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_user" property="updateUser" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | </resultMap> |
| | | <select id="getPageAcceptance" resultType="com.ruoyi.requier.vo.AcceptanceVo"> |
| | | SELECT |
| | | sa.id, |
| | | ss.name, |
| | | ss.model, |
| | | ss.factory_manufacturer, |
| | | ss.factory_num, |
| | | ss.manage_num, |
| | | ss.uncertainty, |
| | | ss.quantity, |
| | | ss.acquisition_date, |
| | | ss.effective_date, |
| | | ss.file_num, |
| | | ss.position |
| | | FROM cnas_fe_standard_substance_acceptance sa |
| | | LEFT JOIN cnas_fe_standard_substance ss on ss.id = sa.substance_id |
| | | <where> |
| | | <if test="name != null and name != ''"> |
| | | ss.name like CONCAT('%', #{name}, '%') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.requier.mapper.FeStandardSubstanceMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.requier.pojo.FeStandardSubstance"> |
| | | <id column="id" property="id" /> |
| | | <result column="name" property="name" /> |
| | | <result column="model" property="model" /> |
| | | <result column="factory_manufacturer" property="factoryManufacturer" /> |
| | | <result column="factory_num" property="factoryNum" /> |
| | | <result column="manage_num" property="manageNum" /> |
| | | <result column="uncertainty" property="uncertainty" /> |
| | | <result column="quantity" property="quantity" /> |
| | | <result column="acquisition_date" property="acquisitionDate" /> |
| | | <result column="effective_date" property="effectiveDate" /> |
| | | <result column="file_num" property="fileNum" /> |
| | | <result column="position" property="position" /> |
| | | <result column="state" property="state" /> |
| | | <result column="remark" property="remark" /> |
| | | <result column="create_user" property="createUser" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_user" property="updateUser" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | </resultMap> |
| | | <select id="getPage" resultType="com.ruoyi.requier.pojo.FeStandardSubstance"> |
| | | select * from cnas_fe_standard_substance |
| | | <where> |
| | | <if test="ew.name != null and ew.name != ''"> |
| | | name like CONCAT('%', #{ew.name}, '%') |
| | | </if> |
| | | <if test="ew.factoryManufacturer != null and ew.factoryManufacturer != ''"> |
| | | and factory_manufacturer like CONCAT('%', #{ew.factoryManufacturer}, '%') |
| | | </if> |
| | | <if test="ew.factoryNum != null and ew.factoryNum != ''"> |
| | | and factory_num like CONCAT('%', #{factoryNum}, '%') |
| | | </if> |
| | | <if test="ew.manageNum != null and ew.manageNum != ''"> |
| | | and manage_num like CONCAT('%', #{ew.manageNum}, '%') |
| | | </if> |
| | | <if test="ew.model != null and ew.model != ''"> |
| | | and model like CONCAT('%', #{ew.model}, '%') |
| | | </if> |
| | | <if test="ew.effectiveDate != null and ew.effectiveDate != ''"> |
| | | and effective_date = #{ew.effectiveDate} |
| | | </if> |
| | | <if test="ew.fileNum != null and ew.fileNum != ''"> |
| | | and file_num like CONCAT('%', #{ew.fileNum}, '%') |
| | | </if> |
| | | <if test="ew.position != null and ew.position != ''"> |
| | | and position like CONCAT('%', #{ew.position}, '%') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.requier.mapper.FeStandardSubstanceRecordMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.requier.pojo.FeStandardSubstanceRecord"> |
| | | <id column="id" property="id" /> |
| | | <result column="substance_id" property="substanceId" /> |
| | | <result column="integrity" property="integrity" /> |
| | | <result column="borrow_user" property="borrowUser" /> |
| | | <result column="phone" property="phone" /> |
| | | <result column="borrow_date" property="borrowDate" /> |
| | | <result column="return_date" property="returnDate" /> |
| | | <result column="lender" property="lender" /> |
| | | <result column="rummager" property="rummager" /> |
| | | <result column="status" property="status" /> |
| | | <result column="create_user" property="createUser" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_user" property="updateUser" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | </resultMap> |
| | | <select id="getPage" resultType="com.ruoyi.requier.vo.SubstanceRecordVo"> |
| | | SELECT |
| | | ssr.id, |
| | | ss.name, |
| | | ss.model, |
| | | ss.factory_num, |
| | | ss.quantity, |
| | | ssr.borrow_user, |
| | | ssr.borrow_date, |
| | | ssr.return_date, |
| | | ssr.integrity, |
| | | ssr.return_integrity, |
| | | ssr.returned_person, |
| | | ss.remark |
| | | FROM cnas_fe_standard_substance_record ssr |
| | | LEFT JOIN cnas_fe_standard_substance ss on ss.id = ssr.substance_id |
| | | <where> |
| | | <if test="ew.name != null and ew.name != ''"> |
| | | ss.name like CONCAT('%', #{ew.name}, '%') |
| | | </if> |
| | | <if test="ew.model != null and ew.model != ''"> |
| | | and ss.model like CONCAT('%', #{ew.model}, '%') |
| | | </if> |
| | | <if test="ew.factoryNum != null and ew.factoryNum != ''"> |
| | | and ss.factory_num like CONCAT('%', #{ew.factoryNum}, '%') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.requier.mapper.FeTempHumDateMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.requier.pojo.FeTempHumDate"> |
| | | <id column="date_id" property="dateId" /> |
| | | <result column="month_date" property="monthDate" /> |
| | | <result column="test_area_name" property="testAreaName" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="create_user" property="createUser" /> |
| | | <result column="update_user" property="updateUser" /> |
| | | </resultMap> |
| | | |
| | | <select id="getFeTempHumDate" resultType="com.ruoyi.requier.dto.FeTempHumDateDto"> |
| | | select c.*, u.name create_name |
| | | from cnas_fe_temp_hum_date c |
| | | left join user u on c.create_user = u.id |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.requier.mapper.FeTempHumRecordMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.requier.pojo.FeTempHumRecord"> |
| | | <id column="temp_hum_id" property="tempHumId" /> |
| | | <result column="morning_test_time" property="morningTestTime" /> |
| | | <result column="morning_temp" property="morningTemp" /> |
| | | <result column="morning_hum" property="morningHum" /> |
| | | <result column="morning_recorder_id" property="morningRecorderId" /> |
| | | <result column="afternoon_time" property="afternoonTime" /> |
| | | <result column="afternoon_temp" property="afternoonTemp" /> |
| | | <result column="afternoon_hum" property="afternoonHum" /> |
| | | <result column="note" property="note" /> |
| | | </resultMap> |
| | | |
| | | <select id="getFeTempHumRecordPage" resultType="com.ruoyi.requier.dto.FeTempHumRecordDto"> |
| | | select c.*, u1.name afternoon_recorder_user, u2.name morning_recorder_user |
| | | from cnas_fe_temp_hum_record c |
| | | left join user u1 on u1.id = c.afternoon_recorder_id |
| | | left join user u2 on u2.id = c.morning_recorder_id |
| | | where c.date_id = #{dateId} |
| | | ORDER BY c.temp_hum_id desc |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.requier.mapper.ForeignRegisterMapper"> |
| | | |
| | | <!-- 夿¥äººåç»è®°å页æ¥è¯¢ --> |
| | | <select id="pageForeignRegister" resultType="com.ruoyi.requier.dto.ForeignRegisterDto"> |
| | | select * |
| | | from (select * |
| | | from cnas_foreign_register |
| | | <where> |
| | | <if test="beginDate != null and beginDate != '' and endDate != null and endDate != ''"> |
| | | register_date between #{beginDate} and #{endDate} |
| | | </if> |
| | | </where> |
| | | order by create_time desc) a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | <select id="getForeignRegisterList" resultType="com.ruoyi.requier.dto.ForeignRegisterDto"> |
| | | select * |
| | | from (select cfr.*, |
| | | u1.signature_url accompanyingUrl, |
| | | u2.signature_url approveUrl |
| | | from cnas_foreign_register cfr |
| | | left join user u1 on u1.id = cfr.accompanying_id |
| | | left join user u2 on u2.id = cfr.approve_id |
| | | <where> |
| | | <if test="beginDate != null and beginDate != '' and endDate != null and endDate != ''"> |
| | | cfr.register_date between #{beginDate} and #{endDate} |
| | | </if> |
| | | </where> |
| | | order by cfr.create_time desc) a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.requier.mapper.InternalWastesDetailMapper"> |
| | | |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.requier.mapper.InternalWastesMapper"> |
| | | |
| | | <!-- å®å
¨å
å¡ä¸åºç»è®°å表 --> |
| | | <select id="pageInternalWastes" resultType="com.ruoyi.requier.dto.InternalWastesDto"> |
| | | select * |
| | | from (select * |
| | | from cnas_internal_wastes |
| | | order by create_time desc) a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.requier.mapper.ProcurementSuppliesExpendsMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.requier.pojo.ProcurementSuppliesExpends"> |
| | | <id column="expend_id" property="expendId" /> |
| | | <result column="list_id" property="listId" /> |
| | | <result column="amount" property="amount" /> |
| | | <result column="enter_user_id" property="enterUserId" /> |
| | | <result column="update_user_id" property="updateUserId" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="create_time" property="createTime" /> |
| | | </resultMap> |
| | | <select id="pageList" resultType="com.ruoyi.requier.dto.ProcurementSuppliesExpendDto"> |
| | | select |
| | | psl.consumables_name as list_name, |
| | | pse.specimen_name, |
| | | pse.inspection_item, |
| | | pse.inspection_item_subclass as inspection_item_sub_class, |
| | | pse.expend_id, |
| | | pse.list_id, |
| | | pse.amount, |
| | | pse.enter_user_id, |
| | | pse.update_user_id, |
| | | pse.update_time, |
| | | pse.create_time, |
| | | u1.name as enter_user_name, |
| | | u2.name as update_user_name |
| | | from procurement_supplies_expends pse |
| | | left join procurement_supplies_list psl on pse.list_id = psl.id |
| | | left join user u1 on pse.enter_user_id = u1.id |
| | | left join user u2 on pse.update_user_id = u2.id |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | |
| | | </select> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.requier.mapper.ProcurementSuppliesListMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.requier.pojo.ProcurementSuppliesList"> |
| | | <id column="id" property="id" /> |
| | | <result column="contents_id" property="contentsId" /> |
| | | <result column="consumables_type" property="consumablesType" /> |
| | | <result column="item_number" property="itemNumber" /> |
| | | <result column="consumables_name" property="consumablesName" /> |
| | | <result column="specifications" property="specifications" /> |
| | | <result column="unit" property="unit" /> |
| | | <result column="reference_price" property="referencePrice" /> |
| | | <result column="content_id" property="contentId" /> |
| | | <result column="person_in_charge" property="personInCharge" /> |
| | | <result column="upper_limit" property="upperLimit" /> |
| | | <result column="lower_limit" property="lowerLimit" /> |
| | | <result column="supplier" property="supplier" /> |
| | | <result column="consumables_icon" property="consumablesIcon" /> |
| | | <result column="attachment" property="attachment" /> |
| | | <result column="remark" property="remark" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="update_user" property="updateUser" /> |
| | | <result column="current_amount" property="currentAmount" /> |
| | | </resultMap> |
| | | |
| | | <select id="selectProcurementSuppliesList" resultMap="BaseResultMap"> |
| | | select * from procurement_supplies_list |
| | | <where> |
| | | <if test="contentsId != null and contentsId != ''"> |
| | | and contents_id = #{contentsId} |
| | | </if> |
| | | </where> |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectProcurementSuppliesListForUpdate" resultMap="BaseResultMap"> |
| | | select * from procurement_supplies_list where id = ${id} for update |
| | | </select> |
| | | |
| | | <select id="selectProcurementSuppliesListAll" resultMap="BaseResultMap"> |
| | | select |
| | | contents_id,item_number, consumables_type, consumables_name, specifications, supplier, upper_limit, |
| | | lower_limit, unit, remark, person_in_charge, update_user, update_time |
| | | from procurement_supplies_list |
| | | <where> |
| | | <if test="ew.contentsId != null and ew.contentsId != ''"> |
| | | and contents_id = ${ew.contentsId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <select id="selectProcurementSuppliesListByContentsId" |
| | | resultType="com.ruoyi.requier.pojo.ProcurementSuppliesList"> |
| | | select id, |
| | | item_number, |
| | | consumables_type, |
| | | consumables_name, |
| | | specifications, |
| | | lower_limit, |
| | | unit, |
| | | remark |
| | | from procurement_supplies_list |
| | | where contents_id = ${id} |
| | | or contents_id in |
| | | (SELECT id |
| | | FROM `procurement_supplies_contents` |
| | | WHERE id = ${id} |
| | | OR parent_id = ${id}) |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
| | | <mapper namespace="com.ruoyi.requier.mapper.ProcurementSuppliesStoreMapper"> |
| | | <resultMap id="map" type="com.ruoyi.requier.dto.StoreDto"> |
| | | <id column="id" property="id"/> |
| | | <result column="consumables_id" property="consumablesId"/> |
| | | <result column="odd_numbers" property="oddNumbers"/> |
| | | <result column="consumables_name" property="consumablesName"/> |
| | | <result column="store_number" property="storeNumber"/> |
| | | <result column="total_price" property="totalPrice"/> |
| | | <result column="storage_user" property="storageUser"/> |
| | | <result column="storage_time" property="storageTime"/> |
| | | <result column="remark" property="remark"/> |
| | | <result column="registrant" property="registrant"/> |
| | | <result column="registrant_time" property="registrantTime"/> |
| | | <result column="storageUserName" property="storageUserName"/> |
| | | <result column="registrantName" property="registrantName"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="storeExcelMap" type="com.ruoyi.requier.excel.StoreExcel"> |
| | | <result column="odd_numbers" property="oddNumbers"/> |
| | | <result column="consumables_name" property="consumablesName"/> |
| | | <result column="store_number" property="storeNumber"/> |
| | | <result column="total_price" property="totalPrice"/> |
| | | <result column="storage_time" property="storageTime"/> |
| | | <result column="remark" property="remark"/> |
| | | <result column="registrant_time" property="registrantTime"/> |
| | | <result column="storageUserName" property="storageUserName"/> |
| | | <result column="registrantName" property="registrantName"/> |
| | | </resultMap> |
| | | |
| | | |
| | | <select id="selectStoreList" resultMap="map"> |
| | | select * from ( |
| | | SELECT |
| | | s.id, |
| | | c.id AS consumables_id, |
| | | s.contents_id, |
| | | s.odd_numbers, |
| | | c.consumables_name, |
| | | c.store_number, |
| | | c.total_price, |
| | | s.storage_user, |
| | | s.storage_time, |
| | | s.remark, |
| | | s.registrant, |
| | | s.registrant_time, |
| | | u.name AS storageUserName, |
| | | u1.name AS registrantName |
| | | FROM |
| | | `procurement_supplies_store` s |
| | | LEFT JOIN procurement_supplies_consumables c ON s.id = c.store_id |
| | | LEFT JOIN user u ON u.id = s.storage_user |
| | | LEFT JOIN user u1 ON u1.id = s.registrant |
| | | )a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="exportExcel" resultMap="storeExcelMap"> |
| | | SELECT * FROM ( |
| | | SELECT |
| | | s.odd_numbers, |
| | | c.consumables_name, |
| | | c.store_number, |
| | | c.total_price, |
| | | s.storage_time, |
| | | s.remark, |
| | | s.registrant_time, |
| | | u.name AS storageUserName, |
| | | u1.name AS registrantName |
| | | FROM |
| | | `procurement_supplies_store` s |
| | | LEFT JOIN procurement_supplies_consumables c ON s.id = c.store_id |
| | | LEFT JOIN user u ON u.id = s.storage_user |
| | | LEFT JOIN user u1 ON u1.id = s.registrant |
| | | |
| | | ) a |
| | | </select> |
| | | |
| | | |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.requier.mapper.SupplierManagementMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.requier.pojo.SupplierManagement"> |
| | | <id column="supplier_management_id" property="supplierManagementId" /> |
| | | <result column="supplier_name" property="supplierName" /> |
| | | <result column="supplier_ref" property="supplierRef" /> |
| | | <result column="supplier_item_service_name" property="supplierItemServiceName" /> |
| | | <result column="postal_code" property="postalCode" /> |
| | | <result column="adress" property="adress" /> |
| | | <result column="logo" property="logo" /> |
| | | <result column="contacts" property="contacts" /> |
| | | <result column="phone" property="phone" /> |
| | | <result column="household_name" property="householdName" /> |
| | | <result column="fax" property="fax" /> |
| | | <result column="opening_name" property="openingName" /> |
| | | <result column="website" property="website" /> |
| | | <result column="account_name" property="accountName" /> |
| | | <result column="email" property="email" /> |
| | | <result column="remarks" property="remarks" /> |
| | | <result column="enclosure" property="enclosure" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="create_user" property="createUser" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="update_user" property="updateUser" /> |
| | | <result column="status" property="status" /> |
| | | <result column="parent_id" property="parentId" /> |
| | | </resultMap> |
| | | <select id="pageSupplierManagement" resultType="com.ruoyi.requier.pojo.SupplierManagement"> |
| | | select * |
| | | from (select * |
| | | from cnas_supplier_management |
| | | order by create_time desc |
| | | ) a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectQualifiedSupplierManagement" resultType="com.ruoyi.requier.pojo.SupplierManagement"> |
| | | select * |
| | | from (select * |
| | | from cnas_supplier_management |
| | | where status = 0 |
| | | order by create_time desc |
| | | ) a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | <select id="selectSupplierManagementAll" resultType="com.ruoyi.requier.pojo.SupplierManagement"> |
| | | SELECT csm.supplier_name, |
| | | csm.supplier_ref, |
| | | csm.supplier_item_service_name, |
| | | csm.postal_code, |
| | | csm.adress, |
| | | csm.contacts, |
| | | csm.phone, |
| | | csm.household_name, |
| | | csm.fax, |
| | | csm.opening_name, |
| | | csm.website, |
| | | csm.account_name, |
| | | csm.email |
| | | FROM cnas_supplier_management csm |
| | | <where> |
| | | <if test="parentId != null and parentId != 0"> |
| | | csm.parent_id in (select id |
| | | from suppliers_directory_contents |
| | | where id = #{parentId} |
| | | or parent_id = #{parentId}) |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <select id="selectSupplierManagement" resultType="com.ruoyi.requier.pojo.SupplierManagement"> |
| | | select |
| | | * |
| | | from cnas_supplier_management csm |
| | | where |
| | | csm.parent_id = #{parentId} or |
| | | csm.parent_id in |
| | | (select id from suppliers_directory_contents where id = #{parentId} or parent_id = #{parentId}) |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.requier.mapper.SuppliersDirectoryContentsMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.requier.pojo.SuppliersDirectoryContents"> |
| | | <id column="id" property="id" /> |
| | | <result column="node_name" property="nodeName" /> |
| | | <result column="code" property="code" /> |
| | | <result column="update_user" property="updateUser" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="parent_id" property="parentId" /> |
| | | </resultMap> |
| | | |
| | | </mapper> |
| | |
| | | <version>${ruoyi.version}</version> |
| | | </dependency> |
| | | |
| | | <!--cnasæ åç©è´¨--> |
| | | <dependency> |
| | | <groupId>com.ruoyi</groupId> |
| | | <artifactId>cnas-require</artifactId> |
| | | <version>${ruoyi.version}</version> |
| | | </dependency> |
| | | |
| | | |
| | | <!-- minio --> |
| | | <dependency> |
| | |
| | | <module>performance-server</module> |
| | | <module>cnas-manage</module> |
| | | <module>cnas-process</module> |
| | | <module>cnas-require</module> |
| | | </modules> |
| | | <packaging>pom</packaging> |
| | | |
| | |
| | | <groupId>com.ruoyi</groupId> |
| | | <artifactId>cnas-process</artifactId> |
| | | </dependency> |
| | | |
| | | <!--cnasæ åç©è´¨--> |
| | | <dependency> |
| | | <groupId>com.ruoyi</groupId> |
| | | <artifactId>cnas-require</artifactId> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | <build> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.common.utils; |
| | | |
| | | import com.alibaba.excel.util.IoUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.util.FileSystemUtils; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.PostConstruct; |
| | | import java.io.ByteArrayInputStream; |
| | | import java.io.File; |
| | | import java.io.FileOutputStream; |
| | | import java.io.IOException; |
| | | import java.time.LocalDateTime; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.Random; |
| | | |
| | | /** |
| | | * ä¿åæä»¶å·¥å
· |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class FileSaveUtil { |
| | | |
| | | // åymlä¸çè·¯å¾ + / |
| | | private static String FILE_PATH; |
| | | |
| | | private static String WORD_URL_PATH; |
| | | |
| | | private static String[] ALLOWED; |
| | | |
| | | @Value("${file.path}") |
| | | private String file; |
| | | |
| | | @Value("${wordUrl}") |
| | | private String wordUrl; |
| | | |
| | | @Value("${file.allowed}") |
| | | private String[] allowed; |
| | | |
| | | @PostConstruct |
| | | public void getFile() { |
| | | FILE_PATH = this.file; |
| | | } |
| | | |
| | | @PostConstruct |
| | | public void getWordUrl(){ |
| | | WORD_URL_PATH = this.wordUrl; |
| | | } |
| | | |
| | | @PostConstruct |
| | | public void getAllowed(){ |
| | | ALLOWED = this.allowed; |
| | | } |
| | | |
| | | /** |
| | | * å卿件䏻彿° |
| | | * @param file æä»¶äºè¿å¶æµ |
| | | * @return è¿åæä»¶åç§°ç¨äºå卿°æ®åº |
| | | */ |
| | | public static String StoreFile(MultipartFile file) { |
| | | String originalFilename = file.getOriginalFilename(); |
| | | // çæéæºåç§°ï¼æ¶é´_éæº6使°å |
| | | String FileName = System.currentTimeMillis() + "_" + getNumber(6); |
| | | String suffix = null; |
| | | if (originalFilename != null) { |
| | | suffix = originalFilename.substring(originalFilename.lastIndexOf(".")); |
| | | // 妿åç¼åä¸éè¿æåºå¼å¸¸ |
| | | if (!isFileAllowed(suffix)){ |
| | | throw new RuntimeException(suffix); |
| | | } |
| | | } |
| | | // åç§°æ¼æ¥ |
| | | String fileName = FileName + suffix; |
| | | // è¿è¡åå¨ |
| | | try { |
| | | storeFileWithFileName(file.getBytes(), fileName); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | return fileName; |
| | | } |
| | | |
| | | public static Boolean DeleteFile(String fileName) { |
| | | if (ObjectUtils.isEmpty(fileName)) { |
| | | return false; |
| | | } |
| | | return FileSystemUtils.deleteRecursively(new File(FILE_PATH + "/" + fileName)); |
| | | } |
| | | /** |
| | | * å卿件彿° |
| | | * @param content æä»¶äºè¿å¶æµ |
| | | * @param fileName æä»¶åç§° |
| | | */ |
| | | private static void storeFileWithFileName(byte[] content, String fileName) { |
| | | // åå¨è·¯å¾ |
| | | String path = FILE_PATH + File.separatorChar; |
| | | // ç®å½ä¸åå¨åå建 |
| | | File file = new File(path); |
| | | if (!file.exists()) { |
| | | file.mkdirs(); |
| | | } |
| | | // å¼å§åå¨ |
| | | try (FileOutputStream os = new FileOutputStream(path + fileName); |
| | | ByteArrayInputStream is = new ByteArrayInputStream(content)) { |
| | | IoUtils.copy(is, os); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException("æä»¶å卿 ¼å¼å¼å¸¸"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 夿æä»¶æ¯å¦è¢«å
许ä¸ä¼ |
| | | * |
| | | * @param fileName æä»¶å |
| | | * @return å
许true, å¦åfalse |
| | | */ |
| | | private static boolean isFileAllowed(String fileName) { |
| | | // è·ååç¼å |
| | | String suffixName = fileName.substring(fileName.lastIndexOf(".") + 1).toLowerCase(); |
| | | for (String allow : ALLOWED) { |
| | | if (allow.equals(suffixName)) { |
| | | return true; |
| | | } |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | /** |
| | | * ä¿åæä»¶å°wordæä»¶å¤¹é |
| | | * @param file |
| | | * @return |
| | | */ |
| | | public static String uploadWordFile(MultipartFile file) { |
| | | String urlString; |
| | | String pathName; |
| | | String path; |
| | | try { |
| | | String contentType = file.getContentType(); |
| | | if (contentType != null && contentType.startsWith("image/")) { |
| | | // æ¯å¾ç |
| | | path = FILE_PATH; |
| | | } else { |
| | | // æ¯æä»¶ |
| | | path = WORD_URL_PATH; |
| | | } |
| | | File realpath = new File(path); |
| | | if (!realpath.exists()) { |
| | | realpath.mkdirs(); |
| | | } |
| | | pathName = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyMMddHHmmss")) + "-" + file.getOriginalFilename(); |
| | | urlString = realpath + "/" + pathName; |
| | | file.transferTo(new File(urlString)); |
| | | return pathName; |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * è·åéæºæ°å |
| | | * @param n 使° |
| | | * @return è¿åéæºå¼ |
| | | */ |
| | | public static String getNumber(int n) { |
| | | char[] chars = "1234567890".toCharArray(); |
| | | StringBuilder sb = new StringBuilder(); |
| | | for (int i = 0; i < n; i++) { |
| | | char c = chars[new Random().nextInt(chars.length)]; |
| | | sb.append(c); |
| | | } |
| | | return sb.toString(); |
| | | } |
| | | } |