服务和供应品采购/供应商管理/设施和环境条件代码迁移
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | 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.require.dto.FeIlluminationAddDto; |
| | | import com.ruoyi.require.dto.FeIlluminationDto; |
| | | import com.ruoyi.require.pojo.FeIllumination; |
| | | import com.ruoyi.require.pojo.FeIlluminationDetectionArea; |
| | | import com.ruoyi.require.service.FeIlluminationDetectionAreaService; |
| | | import com.ruoyi.require.service.FeIlluminationService; |
| | | 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") |
| | | 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); |
| | | if (CollectionUtils.isNotEmpty(feIlluminationAddDto.getIlluminationDetectionAreaList())) { |
| | | 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.require.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.require.excel.FeLightningProtectionExcel; |
| | | import com.ruoyi.require.pojo.FeLightningProtection; |
| | | import com.ruoyi.require.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.require.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | 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.require.dto.FePowerStableAddDto; |
| | | import com.ruoyi.require.dto.FePowerStableDto; |
| | | import com.ruoyi.require.pojo.FeMeasuredQuantity; |
| | | import com.ruoyi.require.pojo.FePowerStable; |
| | | import com.ruoyi.require.service.FeMeasuredQuantityService; |
| | | import com.ruoyi.require.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); |
| | | if (CollectionUtils.isNotEmpty(fePowerStableAddDto.getFeMeasuredQuantityList())) { |
| | | 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.require.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.require.dto.FeTempHumDateDto; |
| | | import com.ruoyi.require.dto.FeTempHumRecordDto; |
| | | import com.ruoyi.require.pojo.FeTempHumDate; |
| | | import com.ruoyi.require.pojo.FeTempHumRecord; |
| | | import com.ruoyi.require.service.FeTempHumDateService; |
| | | import com.ruoyi.require.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 |
| | | */ |
| | | @Api(tags = "温湿度记å½") |
| | | @RestController |
| | | @RequestMapping("/feTempHumDate") |
| | | 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, FeTempHumDateDto feTempHumDateDto) { |
| | | IPage<FeTempHumDateDto> page1 = feTempHumDateService.getFeTempHumDate(page, feTempHumDateDto); |
| | | 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); |
| | | } |
| | | |
| | | /** |
| | | * 温湿度确认 |
| | | * @param feTempHumDate |
| | | * @return |
| | | */ |
| | | @ApiOperation("温湿度确认") |
| | | @PostMapping("affirmFeTempHumDate") |
| | | public Result<?> affirmFeTempHumDate(@RequestBody FeTempHumDate feTempHumDate) { |
| | | feTempHumDateService.affirmFeTempHumDate(feTempHumDate); |
| | | return Result.success(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.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.JackSonUtil; |
| | | import com.ruoyi.require.dto.ForeignRegisterDto; |
| | | import com.ruoyi.require.pojo.ForeignRegister; |
| | | import com.ruoyi.require.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; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * 夿¥äººåç»è®° å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-19 07:17:35 |
| | | */ |
| | | @Api(tags = "夿¥äººåç»è®°") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/foreignRegister") |
| | | public class ForeignRegisterController { |
| | | |
| | | private ForeignRegisterService foreignRegisterService; |
| | | |
| | | /** |
| | | * 夿¥äººåç»è®°å页æ¥è¯¢ |
| | | * @param data |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "夿¥äººåç»è®°å页æ¥è¯¢") |
| | | @PostMapping("/pageForeignRegister") |
| | | public Result<IPage<ForeignRegisterDto>> pageForeignRegister(@RequestBody Map<String, Object> data) throws Exception { |
| | | Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); |
| | | ForeignRegisterDto foreignRegister = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), ForeignRegisterDto.class); |
| | | 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 = "夿¥äººåç»è®°å é¤") |
| | | @GetMapping("/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 = "导åºå¤æ¥äººåç»è®°") |
| | | @PostMapping("/exportForeignRegister") |
| | | public void exportForeignRegister(@RequestBody ForeignRegisterDto foreignRegister, HttpServletResponse response){ |
| | | foreignRegisterService.exportForeignRegister(foreignRegister, response); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.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.JackSonUtil; |
| | | import com.ruoyi.require.dto.InternalWastesDto; |
| | | import com.ruoyi.require.pojo.InternalWastes; |
| | | import com.ruoyi.require.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; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨å
å¡ä¸åºç»è®° å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-19 06:39:27 |
| | | */ |
| | | @Api(tags = "å®å
¨å
å¡ä¸åºç»è®°") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/internalWastes") |
| | | public class InternalWastesController { |
| | | |
| | | private InternalWastesService internalWastesService; |
| | | |
| | | /** |
| | | * å®å
¨å
å¡ä¸åºå¤çå页æ¥è¯¢ |
| | | * @param data |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å®å
¨å
å¡ä¸åºå¤çå页æ¥è¯¢") |
| | | @PostMapping("/pageInternalWastes") |
| | | public Result<IPage<InternalWastesDto>> pageInternalWastes(@RequestBody Map<String, Object> data) throws Exception { |
| | | Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); |
| | | InternalWastes internalWastes = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), InternalWastes.class); |
| | | 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 = "å®å
¨å
å¡ä¸åºå¤çå é¤") |
| | | @GetMapping("/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.require.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.require.dto.ProcurementSuppliesListDto; |
| | | import com.ruoyi.require.mapper.ProcurementSuppliesListMapper; |
| | | import com.ruoyi.require.mapper.SupplierManagementMapper; |
| | | import com.ruoyi.require.pojo.ProcurementSuppliesList; |
| | | import com.ruoyi.require.pojo.SupplierManagement; |
| | | import com.ruoyi.require.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.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; |
| | | |
| | | @Autowired |
| | | 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 = "å é¤èæ") |
| | | @PostMapping("/deleteProcurementSuppliesList") |
| | | public Result deleteProcurementSuppliesList(@RequestBody ProcurementSuppliesListDto dto) { |
| | | return Result.success(listMapper.deleteById(dto.getId())); |
| | | } |
| | | |
| | | @ApiOperation(value = "导åºèæå表") |
| | | @PostMapping("/exportProcurementSuppliesList/{parentId}") |
| | | public void exportProcurementSuppliesList( @PathVariable Integer parentId ,HttpServletResponse response) throws Exception { |
| | | procurementSuppliesListService.exportProcurementSuppliesList(parentId,response); |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.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.require.pojo.SupplierManagement; |
| | | import com.ruoyi.require.service.ProcurementSuppliesContentsService; |
| | | import com.ruoyi.require.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) { |
| | | 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("å é¤ä¾åºå") |
| | | @PostMapping("/delSupplierManagement") |
| | | public Result delSupplierManagement(Integer supplierManagementId) { |
| | | return Result.success(supplierManagementService.removeById(supplierManagementId)); |
| | | } |
| | | |
| | | @ApiOperation("导åºä¾åºå") |
| | | @PostMapping("/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.require.dto; |
| | | |
| | | import com.ruoyi.require.pojo.FeIllumination; |
| | | import com.ruoyi.require.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.require.dto; |
| | | |
| | | import com.ruoyi.require.pojo.FeIllumination; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class FeIlluminationDto extends FeIllumination { |
| | | @ApiModelProperty("æ£æµè
") |
| | | private String checkerUser; |
| | | |
| | | @ApiModelProperty("æ ¸æ¥äºº") |
| | | private String testerUser; |
| | | |
| | | @ApiModelProperty("设å¤åç§°") |
| | | private String deviceName; |
| | | |
| | | @ApiModelProperty("设å¤ç¼å·") |
| | | private String managementNumber; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.dto; |
| | | |
| | | import com.ruoyi.require.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.require.dto; |
| | | |
| | | import com.ruoyi.require.pojo.FeMeasuredQuantity; |
| | | import com.ruoyi.require.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.require.dto; |
| | | |
| | | import com.ruoyi.require.pojo.FePowerStable; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class FePowerStableDto extends FePowerStable { |
| | | |
| | | @ApiModelProperty("æ£æµè
") |
| | | private String checkerUser; |
| | | |
| | | @ApiModelProperty("æ ¸æ¥äºº") |
| | | private String testerUser; |
| | | |
| | | @ApiModelProperty("设å¤åç§°") |
| | | private String deviceName; |
| | | |
| | | @ApiModelProperty("设å¤ç¼å·") |
| | | private String managementNumber; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.dto; |
| | | |
| | | import com.ruoyi.require.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.require.dto; |
| | | |
| | | import com.ruoyi.require.pojo.FeTempHumDate; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class FeTempHumDateDto extends FeTempHumDate { |
| | | |
| | | @ApiModelProperty("å建人") |
| | | private String createName; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.dto; |
| | | |
| | | import com.ruoyi.require.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; |
| | | |
| | | @ApiModelProperty("æ£æµå¤©") |
| | | private Integer monthDay; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.dto; |
| | | |
| | | import com.deepoove.poi.data.PictureRenderData; |
| | | import com.ruoyi.require.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.require.dto; |
| | | |
| | | import com.ruoyi.require.pojo.InternalWastes; |
| | | import com.ruoyi.require.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; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | private String createUserName; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹äºº") |
| | | private String updateUserName; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.dto; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.ruoyi.require.pojo.ProcurementSuppliesList; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class ProcurementSuppliesListDto extends ProcurementSuppliesList { |
| | | @ExcelProperty("åèä¾åºå") |
| | | private String supplierName; // ä¾åºååç§° |
| | | @ExcelProperty("æ´æ°äºº") |
| | | private String updateUserName; // æ´æ°äººåç§° |
| | | @ExcelProperty("è´è´£äºº") |
| | | private String personInChargeName; // è´è´£äººåç§° |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.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.require.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.require.pojo.FeIlluminationDetectionArea; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-ç
§åº¦è®°å½è¡¨-æ£æµåºå Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:16:28 |
| | | */ |
| | | public interface FeIlluminationDetectionAreaMapper extends BaseMapper<FeIlluminationDetectionArea> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.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.require.dto.FeIlluminationDto; |
| | | import com.ruoyi.require.dto.FeIlluminationExportDto; |
| | | import com.ruoyi.require.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.require.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.require.excel.FeLightningProtectionExcel; |
| | | import com.ruoyi.require.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.require.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.require.pojo.FeMeasuredQuantity; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-çµæºç¨³å®æ§-æµå®é Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:16:44 |
| | | */ |
| | | public interface FeMeasuredQuantityMapper extends BaseMapper<FeMeasuredQuantity> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.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.require.dto.FePowerStableDto; |
| | | import com.ruoyi.require.dto.FePowerStableExportDto; |
| | | import com.ruoyi.require.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.require.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.require.dto.FeTempHumDateDto; |
| | | import com.ruoyi.require.pojo.FeTempHumDate; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-温湿度 åºå -ç¶ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 11:02:18 |
| | | */ |
| | | public interface FeTempHumDateMapper extends BaseMapper<FeTempHumDate> { |
| | | |
| | | IPage<FeTempHumDateDto> getFeTempHumDate(Page page, @Param("ew") QueryWrapper<FeTempHumDateDto> ew); |
| | | |
| | | /** |
| | | * æ¥è¯¢è¿ä¸ªææ¯å¦æè¯¥å®éªå®¤çä»»å¡ |
| | | * @param laboratory å®éªå®¤ |
| | | * @param formattedDate å½åæä»½ |
| | | * @return è¿åæ¡æ° |
| | | */ |
| | | int selectFeTempHumDateIncludeFormattedDate(@Param("laboratory") String laboratory, @Param("formattedDate") String formattedDate); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.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.require.dto.FeTempHumRecordDto; |
| | | import com.ruoyi.require.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.require.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.require.dto.ForeignRegisterDto; |
| | | import com.ruoyi.require.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 foreignRegister |
| | | * @return |
| | | */ |
| | | List<ForeignRegisterDto> getForeignRegisterList(@Param("ew") QueryWrapper<ForeignRegisterDto> ew, |
| | | @Param("beginDate") String beginDate, |
| | | @Param("endDate") String endDate); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.require.pojo.InternalWastesDetail; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨å
å¡ä¸åºç»è®°è¯¦æ
Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-19 06:39:54 |
| | | */ |
| | | public interface InternalWastesDetailMapper extends BaseMapper<InternalWastesDetail> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.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.require.dto.InternalWastesDto; |
| | | import com.ruoyi.require.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.require.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.require.pojo.ProcurementSuppliesContents; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | @Mapper |
| | | public interface ProcurementSuppliesContentsMapper extends BaseMapper<ProcurementSuppliesContents> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.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.require.dto.ProcurementSuppliesListDto; |
| | | import com.ruoyi.require.pojo.ProcurementSuppliesList; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡ä¸ä¾åºå èæå表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 04:04:32 |
| | | */ |
| | | @Mapper |
| | | public interface ProcurementSuppliesListMapper extends BaseMapper<ProcurementSuppliesList> { |
| | | IPage<ProcurementSuppliesList> selectProcurementSuppliesList(Page page, @Param("ew") 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.require.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.require.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.require.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-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 LocalDate testDate; |
| | | |
| | | @ApiModelProperty("æ ¡åæ¥æ") |
| | | private LocalDateTime lastCalibrationDate; |
| | | |
| | | @ApiModelProperty("䏿¬¡æ ¡åæ¥æ") |
| | | private LocalDateTime nextCalibrationDate; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty("æ´æ°æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.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.require.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.require.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.require.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-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 LocalDate testDate; |
| | | |
| | | @ApiModelProperty("设å¤id") |
| | | private Integer deviceId; |
| | | |
| | | @ApiModelProperty("ç»è®º") |
| | | private String conclusion; |
| | | |
| | | @ApiModelProperty("æ£æµè
id") |
| | | private Integer testerId; |
| | | |
| | | @ApiModelProperty("æ ¸æ¥äººid") |
| | | private Integer checkerId; |
| | | |
| | | @ApiModelProperty("æ ¡åæ¥æ") |
| | | private LocalDateTime lastCalibrationDate; |
| | | |
| | | @ApiModelProperty("䏿¬¡æ ¡åæ¥æ") |
| | | private LocalDateTime nextCalibrationDate; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty("æ´æ°æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | 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 { |
| | | |
| | | @ApiModelProperty("主é®ID") |
| | | @TableId(value = "date_id", type = IdType.AUTO) |
| | | private Integer dateId; |
| | | |
| | | @ApiModelProperty("æåº¦æ¶é´") |
| | | private String monthDate; |
| | | |
| | | @ApiModelProperty("è¯éªåºååç§°") |
| | | private String testAreaName; |
| | | |
| | | @ApiModelProperty("å¢è¡¥ä¿¡æ¯") |
| | | private String subjoin; |
| | | |
| | | @ApiModelProperty("æ¯å¦ç¡®è®¤") |
| | | private String isAffirm; |
| | | |
| | | @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.require.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.LocalDate; |
| | | import java.time.LocalTime; |
| | | |
| | | /** |
| | | * <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 LocalDate recordDate; |
| | | |
| | | @ApiModelProperty("ä¸å-æ¶é´") |
| | | private LocalTime morningTestTime; |
| | | |
| | | @ApiModelProperty("ä¸å温度") |
| | | private String morningTemp; |
| | | |
| | | @ApiModelProperty("ä¸å湿度") |
| | | private String morningHum; |
| | | |
| | | @ApiModelProperty("ä¸åè®°å½å") |
| | | private Integer morningRecorderId; |
| | | |
| | | @ApiModelProperty("ä¸åæ¶é´") |
| | | private LocalTime 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.require.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.require.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.require.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.require.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.require.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.require.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.require.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.require.pojo.FeIlluminationDetectionArea; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-ç
§åº¦è®°å½è¡¨-æ£æµåºå æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:16:28 |
| | | */ |
| | | public interface FeIlluminationDetectionAreaService extends IService<FeIlluminationDetectionArea> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.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.require.dto.FeIlluminationDto; |
| | | import com.ruoyi.require.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.require.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.require.excel.FeLightningProtectionExcel; |
| | | import com.ruoyi.require.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.require.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.require.pojo.FeMeasuredQuantity; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-çµæºç¨³å®æ§-æµå®é æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-07 04:16:44 |
| | | */ |
| | | public interface FeMeasuredQuantityService extends IService<FeMeasuredQuantity> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.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.require.dto.FePowerStableDto; |
| | | import com.ruoyi.require.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.require.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.require.dto.FeTempHumDateDto; |
| | | import com.ruoyi.require.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, FeTempHumDateDto feTempHumDateDto); |
| | | |
| | | void exportTemperatureAndHumidityRecords(Integer dateId, HttpServletResponse response); |
| | | |
| | | /** |
| | | * 温湿度确认 |
| | | * @param feTempHumDate |
| | | */ |
| | | void affirmFeTempHumDate(FeTempHumDate feTempHumDate); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.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.require.dto.FeTempHumRecordDto; |
| | | import com.ruoyi.require.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.require.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.require.dto.ForeignRegisterDto; |
| | | import com.ruoyi.require.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.require.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.require.pojo.InternalWastesDetail; |
| | | |
| | | /** |
| | | * <p> |
| | | * å®å
¨å
å¡ä¸åºç»è®°è¯¦æ
æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-19 06:39:54 |
| | | */ |
| | | public interface InternalWastesDetailService extends IService<InternalWastesDetail> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.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.require.dto.InternalWastesDto; |
| | | import com.ruoyi.require.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.require.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.require.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.require.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.require.dto.ProcurementSuppliesListDto; |
| | | import com.ruoyi.require.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.require.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.require.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.require.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.require.mapper.FeIlluminationDetectionAreaMapper; |
| | | import com.ruoyi.require.pojo.FeIlluminationDetectionArea; |
| | | import com.ruoyi.require.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.require.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.require.dto.FeIlluminationDto; |
| | | import com.ruoyi.require.dto.FeIlluminationExportDto; |
| | | import com.ruoyi.require.mapper.FeIlluminationDetectionAreaMapper; |
| | | import com.ruoyi.require.mapper.FeIlluminationMapper; |
| | | import com.ruoyi.require.pojo.FeIllumination; |
| | | import com.ruoyi.require.pojo.FeIlluminationDetectionArea; |
| | | import com.ruoyi.require.service.FeIlluminationService; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | 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.LocalDateTime; |
| | | 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)); |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/illumination.docx"); |
| | | Configure configure = Configure.builder() |
| | | .bind("detectionAreaList", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | String finalTesterUrl = testerUrl; |
| | | String finalCheckerUrl = checkerUrl; |
| | | |
| | | // å¤ææ£æµæ¥ææ¯å¦ä¸ºç©º |
| | | LocalDateTime finalLocalDateTime = illuminationExportDto.getTestDate() == null ? null : illuminationExportDto.getTestDate().atStartOfDay(); |
| | | 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.require.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.require.excel.FeLightningProtectionExcel; |
| | | import com.ruoyi.require.mapper.FeLightningProtectionMapper; |
| | | import com.ruoyi.require.pojo.FeLightningProtection; |
| | | import com.ruoyi.require.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.require.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.require.mapper.FeMeasuredQuantityMapper; |
| | | import com.ruoyi.require.pojo.FeMeasuredQuantity; |
| | | import com.ruoyi.require.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.require.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.require.dto.FePowerStableDto; |
| | | import com.ruoyi.require.dto.FePowerStableExportDto; |
| | | import com.ruoyi.require.mapper.FeMeasuredQuantityMapper; |
| | | import com.ruoyi.require.mapper.FePowerStableMapper; |
| | | import com.ruoyi.require.pojo.FeMeasuredQuantity; |
| | | import com.ruoyi.require.pojo.FePowerStable; |
| | | import com.ruoyi.require.service.FePowerStableService; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | 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.require.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | 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.common.utils.SecurityUtils; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import com.ruoyi.require.dto.FeTempHumDateDto; |
| | | import com.ruoyi.require.dto.FeTempHumRecordDto; |
| | | import com.ruoyi.require.mapper.FeTempHumDateMapper; |
| | | import com.ruoyi.require.pojo.FeTempHumDate; |
| | | import com.ruoyi.require.pojo.FeTempHumRecord; |
| | | import com.ruoyi.require.service.FeTempHumDateService; |
| | | import com.ruoyi.require.service.FeTempHumRecordService; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | 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.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 设æ½åç¯å¢æ¡ä»¶-设æ½åç¯å¢æ¡ä»¶è¦æ±-温湿度 åºå -ç¶ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 11:02:18 |
| | | */ |
| | | @Service |
| | | public class FeTempHumDateServiceImpl extends ServiceImpl<FeTempHumDateMapper, FeTempHumDate> implements FeTempHumDateService { |
| | | |
| | | @Resource |
| | | private FeTempHumRecordService feTempHumRecordService; |
| | | |
| | | @Override |
| | | public IPage<FeTempHumDateDto> getFeTempHumDate(Page page, FeTempHumDateDto feTempHumDateDto) { |
| | | return baseMapper.getFeTempHumDate(page, QueryWrappers.queryWrappers(feTempHumDateDto)); |
| | | } |
| | | |
| | | @Override |
| | | public void exportTemperatureAndHumidityRecords(Integer dateId, HttpServletResponse response) { |
| | | FeTempHumDate feTempHumDate = baseMapper.selectById(dateId); |
| | | // è·å年度æåº¦æ¶é´ |
| | | String[] month = feTempHumDate.getMonthDate().split("-"); |
| | | |
| | | IPage<FeTempHumRecordDto> list = feTempHumRecordService.getFeTempHumRecordPage(new Page<>(1, -1), dateId); |
| | | List<FeTempHumRecordDto> feTempHumRecordDtos = list.getRecords(); |
| | | // æç
§å¤©æ°åç» |
| | | Map<Integer, List<FeTempHumRecordDto>> groupMap = feTempHumRecordDtos.stream().peek(feTempHumRecordDto -> { |
| | | feTempHumRecordDto.setMonthDay(feTempHumRecordDto.getRecordDate().getDayOfMonth()); |
| | | }) |
| | | .collect(Collectors.groupingBy(FeTempHumRecordDto::getMonthDay)); |
| | | |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("HH:mm"); |
| | | // éå31è·å31个对象 |
| | | List<FeTempHumRecordDto> recordDtoList = new ArrayList<>(); |
| | | for (int i = 1; i <= 31; i++) { |
| | | FeTempHumRecordDto recordDto = new FeTempHumRecordDto(); |
| | | recordDto.setMonth(i); |
| | | recordDtoList.add(recordDto); |
| | | // è·åå½åæç |
| | | List<FeTempHumRecordDto> recordDtos = groupMap.get(i); |
| | | if (CollectionUtils.isNotEmpty(recordDtos)) { |
| | | // å¤å¶å¯¹è±¡ |
| | | BeanUtils.copyProperties(recordDtos.get(0), recordDto, "month"); |
| | | recordDto.setMorningTestTimeStr(recordDto.getMorningTestTime() == null ? null : recordDto.getMorningTestTime().format(formatter)); |
| | | recordDto.setAfternoonTimeStr(recordDto.getAfternoonTime() == null ? null : recordDto.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", month[0]); |
| | | map.put("experimentalMonth", month[1]); |
| | | map.put("subjoin", feTempHumDate.getSubjoin()); |
| | | |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("feTempHum", map); |
| | | put("recordList", recordDtoList); |
| | | }}); |
| | | |
| | | 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("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 温湿度确认 |
| | | * @param feTempHumDate |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void affirmFeTempHumDate(FeTempHumDate feTempHumDate) { |
| | | // 温湿度确认 |
| | | this.update(Wrappers.<FeTempHumDate>lambdaUpdate() |
| | | .eq(FeTempHumDate::getDateId, feTempHumDate.getDateId()) |
| | | .set(FeTempHumDate::getSubjoin, feTempHumDate.getSubjoin()) |
| | | .set(FeTempHumDate::getIsAffirm, 1)); |
| | | |
| | | // æ¸©æ¹¿åº¦è®°å½æ·»å è®°å½å |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | feTempHumRecordService.update(Wrappers.<FeTempHumRecord>lambdaUpdate() |
| | | .eq(FeTempHumRecord::getDateId, feTempHumDate.getDateId()) |
| | | .set(FeTempHumRecord::getAfternoonRecorderId, userId) |
| | | .set(FeTempHumRecord::getMorningRecorderId, userId)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.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.require.dto.FeTempHumRecordDto; |
| | | import com.ruoyi.require.mapper.FeTempHumRecordMapper; |
| | | import com.ruoyi.require.pojo.FeTempHumRecord; |
| | | import com.ruoyi.require.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.require.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.require.dto.ForeignRegisterDto; |
| | | import com.ruoyi.require.mapper.ForeignRegisterMapper; |
| | | import com.ruoyi.require.pojo.ForeignRegister; |
| | | import com.ruoyi.require.service.ForeignRegisterService; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | 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.require.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.require.mapper.InternalWastesDetailMapper; |
| | | import com.ruoyi.require.pojo.InternalWastesDetail; |
| | | import com.ruoyi.require.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.require.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.require.dto.InternalWastesDto; |
| | | import com.ruoyi.require.mapper.InternalWastesMapper; |
| | | import com.ruoyi.require.pojo.InternalWastes; |
| | | import com.ruoyi.require.pojo.InternalWastesDetail; |
| | | import com.ruoyi.require.service.InternalWastesDetailService; |
| | | import com.ruoyi.require.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.require.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.require.mapper.ProcurementSuppliesContentsMapper; |
| | | import com.ruoyi.require.pojo.ProcurementSuppliesContents; |
| | | import com.ruoyi.require.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.require.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.inspect.dto.ProcurementSuppliesListEDto; |
| | | import com.ruoyi.require.dto.ProcurementSuppliesListDto; |
| | | import com.ruoyi.require.mapper.ProcurementSuppliesListMapper; |
| | | import com.ruoyi.require.mapper.SupplierManagementMapper; |
| | | import com.ruoyi.require.pojo.ProcurementSuppliesList; |
| | | import com.ruoyi.require.pojo.SupplierManagement; |
| | | import com.ruoyi.require.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.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; |
| | | |
| | | @Autowired |
| | | private SupplierManagementMapper supplierManagementMapper; |
| | | |
| | | @Autowired |
| | | private ProcurementSuppliesListMapper procurementSuppliesListMapper; |
| | | |
| | | @Override |
| | | public IPage<ProcurementSuppliesListDto> selectList(Page page, ProcurementSuppliesListDto list) { |
| | | IPage<ProcurementSuppliesList> iPage = baseMapper.selectProcurementSuppliesList(page, 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()); |
| | | } |
| | | |
| | | if (record.getSupplier() != 0) { |
| | | SupplierManagement supplierManagement = supplierManagementMapper.selectById(record.getSupplier()); |
| | | dto.setSupplierName(supplierManagement.getSupplierName()); |
| | | } |
| | | |
| | | 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 = this.list(new QueryWrapper<ProcurementSuppliesList>().lambda() |
| | | // .select(ProcurementSuppliesList::getId |
| | | // , ProcurementSuppliesList::getUnit |
| | | // , ProcurementSuppliesList::getLowerLimit |
| | | // , ProcurementSuppliesList::getConsumablesType |
| | | // , ProcurementSuppliesList::getItemNumber |
| | | // , ProcurementSuppliesList::getConsumablesName |
| | | // , ProcurementSuppliesList::getSpecifications |
| | | // , ProcurementSuppliesList::getCurrentAmount |
| | | // , ProcurementSuppliesList::getRemark).eq(ProcurementSuppliesList::getContentsId, contentsId)); |
| | | List<ProcurementSuppliesList> data = procurementSuppliesListMapper.selectProcurementSuppliesListByContentsId(contentsId); |
| | | if (data.size()==0) { |
| | | throw new RuntimeException("æ æ°æ®"); |
| | | } |
| | | 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 RuntimeException("导åºå¤±è´¥"); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.require.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.require.dto.SupplierManagementDto; |
| | | import com.ruoyi.require.mapper.SupplierManagementMapper; |
| | | import com.ruoyi.require.pojo.SupplierManagement; |
| | | import com.ruoyi.require.service.SupplierManagementService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | 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 { |
| | | |
| | | @Autowired |
| | | 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); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.require.mapper.ProcurementSuppliesListMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.require.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="ew.contentId != null and ew.contentId != ''"> |
| | | and content_id = ${ew.contentId} |
| | | </if> |
| | | </where> |
| | | </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.contentId != null and ew.contentId != ''"> |
| | | and content_id = ${ew.contentId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <select id="selectProcurementSuppliesListByContentsId" |
| | | resultType="com.ruoyi.require.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.require.mapper.SupplierManagementMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.require.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.require.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.require.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.require.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 csm.parent_id in (select id from procurement_supplies_contents where id = #{parentId} or parent_id = #{parentId}) |
| | | </select> |
| | | <select id="selectSupplierManagement" resultType="com.ruoyi.require.pojo.SupplierManagement"> |
| | | select |
| | | * |
| | | from cnas_supplier_management csm |
| | | where |
| | | csm.parent_id = #{parentId} or |
| | | csm.parent_id in |
| | | (select id from procurement_supplies_contents where id = #{parentId} or parent_id = #{parentId}) |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.dto; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class ProcurementSuppliesListEDto { |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | @ApiModelProperty("ç¼å·") |
| | | @ExcelProperty("ç¼å·") |
| | | private Long id; |
| | | |
| | | @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 Integer lowerLimit; |
| | | |
| | | |
| | | |
| | | @ApiModelProperty("夿³¨") |
| | | @ExcelProperty("夿³¨") |
| | | private String remark; |
| | | |
| | | |
| | | @ApiModelProperty("å½ååºåæ°é") |
| | | @ExcelProperty("å½ååºå") |
| | | private Integer currentAmount; |
| | | } |