已删除98个文件
已修改28个文件
已添加327个文件
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.controller; |
| | | |
| | | import cn.hutool.core.util.ObjectUtil; |
| | | import cn.hutool.poi.excel.ExcelUtil; |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | 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.common.core.domain.entity.SysDictData; |
| | | import com.ruoyi.system.service.ISysDictTypeService; |
| | | import com.ruoyi.inspect.dto.PageTestObjectDto; |
| | | import com.ruoyi.inspect.dto.ProductDTO1; |
| | | import com.ruoyi.inspect.excel.StructureTestObjectData; |
| | | import com.ruoyi.inspect.excel.StructureTestObjectListener; |
| | | import com.ruoyi.inspect.pojo.Product; |
| | | import com.ruoyi.inspect.pojo.StandardTemplate; |
| | | import com.ruoyi.inspect.pojo.StructureItemParameter; |
| | | import com.ruoyi.inspect.pojo.StructureTestObject; |
| | | import com.ruoyi.inspect.service.CapacityScopeService; |
| | | import com.ruoyi.inspect.service.ProductService; |
| | | import com.ruoyi.inspect.service.StandardTemplateService; |
| | | import com.ruoyi.inspect.service.StructureItemParameterService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.IOException; |
| | | import java.io.InputStream; |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.concurrent.atomic.AtomicReference; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * æ£éªé¡¹ç®åæ°(StructureItemParameter)表æ§å¶å± |
| | | * |
| | | * @author makejava |
| | | * @since 2024-02-26 16:21:17 |
| | | */ |
| | | @Api(tags = "è½åèå´") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/capacityScope") |
| | | public class CapacityScopeController { |
| | | |
| | | private CapacityScopeService capacityScopeService; |
| | | |
| | | private ProductService productService; |
| | | |
| | | private StructureItemParameterService structureItemParameterService; |
| | | |
| | | private ISysDictTypeService dictTypeService; |
| | | |
| | | private StandardTemplateService standardTemplateService; |
| | | |
| | | @ApiOperation(value = "è·åé¡¹ç®æ£éªåæ°å表") |
| | | @PostMapping("/selectItemParameterList") |
| | | public Result selectItemParameterList(Page page,StructureItemParameter itemParameter) throws Exception { |
| | | return Result.success(capacityScopeService.selectItemParameterList(page, itemParameter)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ·»å é¡¹ç®æ£éªåæ°") |
| | | @PostMapping("/addItemParameter") |
| | | public Result addItemParameter(@RequestBody StructureItemParameter itemParameter) { |
| | | return Result.success(capacityScopeService.addItemParameter(itemParameter)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤é¡¹ç®æ£éªåæ°") |
| | | @PostMapping("/delItemParameter") |
| | | public Result<?> delItemParameter(Integer id) { |
| | | return Result.success(capacityScopeService.delItemParameter(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ä¿®æ¹é¡¹ç®æ£éªåæ°") |
| | | @PostMapping("/upItemParameter") |
| | | public Result<?> upItemParameter(@RequestBody StructureItemParameter itemParameter) { |
| | | return Result.success(capacityScopeService.upItemParameter(itemParameter)); |
| | | } |
| | | |
| | | @ApiOperation(value = "è·åæ£éªå¯¹è±¡") |
| | | @PostMapping("/selectTestObjectList") |
| | | public Result selectTestObjectList(Page page,PageTestObjectDto pageTestObjectDto) throws Exception { |
| | | return Result.success(capacityScopeService.selectTestObjectList(page, pageTestObjectDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ·»å æ£éªå¯¹è±¡") |
| | | @PostMapping("/addTestObject") |
| | | public Result addTestObject(@RequestBody StructureTestObject testObject) { |
| | | return Result.success(capacityScopeService.addTestObject(testObject)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å 餿£éªå¯¹è±¡") |
| | | @PostMapping("/delTestObject") |
| | | public Result<?> delTestObject(Integer id) { |
| | | return Result.success(capacityScopeService.delTestObject(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ä¿®æ¹æ£éªå¯¹è±¡") |
| | | @PostMapping("/upTestObject") |
| | | public Result upTestObject(@RequestBody StructureTestObject testObject) { |
| | | return Result.success(capacityScopeService.upTestObject(testObject)); |
| | | } |
| | | |
| | | @ApiOperation(value = "è·åæ£éªå¯¹è±¡æä¸¾") |
| | | @GetMapping("/selectTestObjectByName") |
| | | public Result selectTestObjectByName() { |
| | | return Result.success(capacityScopeService.selectTestObjectByName()); |
| | | } |
| | | |
| | | @ApiOperation(value = "设å¤éé¢éæ©æ£éªé¡¹ç®(æ å½¢ç»æ)") |
| | | @PostMapping("/getInsProduction") |
| | | public Result getInsProduction() { |
| | | return Result.success(capacityScopeService.getInsProduction()); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç»´æ¤æ£éªå¯¹è±¡ç产å") |
| | | @PostMapping("/selectProductListByObjectId") |
| | | public Result selectProductListByObjectId(Page page,ProductDTO1 productDTO) throws Exception { |
| | | return Result.success(productService.selectProductListByObjectId(page, productDTO)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ·»å 产å") |
| | | @PostMapping("/addProduct") |
| | | public Result addProduct(@RequestBody Product product) { |
| | | return Result.success(productService.addProduct(product)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ä¿®æ¹äº§å") |
| | | @PostMapping("/upProduct") |
| | | public Result upProduct(@RequestBody Product product) { |
| | | return Result.success(productService.upProduct(product)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤äº§å") |
| | | @PostMapping("/delProduct") |
| | | public Result delProduct(Integer id) { |
| | | return Result.success(productService.delProduct(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "è·åæ£éªå¯¹è±¡æ ") |
| | | @GetMapping("/getItemTree") |
| | | public Result getItemTree() { |
| | | return Result.success(capacityScopeService.getItemTree()); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "è£
å¤å¯¼å
¥æ£éªé¡¹ç®") |
| | | @PostMapping("/importEquipData") |
| | | @Transactional |
| | | public Result importEquipData(@RequestParam("file") MultipartFile file) throws Exception { |
| | | InputStream inputStream = file.getInputStream(); |
| | | List<StructureItemParameter> lists = new ArrayList<>(); |
| | | AtomicReference<String> sample = new AtomicReference<>(); |
| | | ExcelUtil.readBySax(inputStream, -1, (i, l, list1) -> { |
| | | if (l == 1) { |
| | | sample.set(list1.get(1) + ""); |
| | | } |
| | | if (l >= 1) { |
| | | StructureItemParameter str = new StructureItemParameter(); |
| | | // æµè¯å¯¹è±¡ |
| | | if (list1.get(1) == null) { |
| | | str.setSample(null); |
| | | } else { |
| | | String brand = (String) list1.get(1); |
| | | StringBuilder builder = new StringBuilder(); |
| | | builder.append("["); |
| | | // 产å |
| | | if (ObjectUtil.isNotEmpty(list1.get(2))) { |
| | | String production = (String) list1.get(2); |
| | | if (!production.contains("ï¼")) { |
| | | builder.append(String.format("[\"%s\",\"%s\"]", brand, production)); |
| | | } else { |
| | | Arrays.stream(production.split("ï¼")).forEach(item -> { |
| | | builder.append(String.format("[\"%s\",\"%s\"],", brand, item)); |
| | | }); |
| | | builder.deleteCharAt(builder.length() - 1); |
| | | } |
| | | } else { |
| | | builder.append("["); |
| | | builder.append(String.format("\"%s\"", brand)); |
| | | builder.append("]"); |
| | | } |
| | | builder.append("]"); |
| | | str.setSample(builder.toString()); |
| | | } |
| | | // æ£éªé¡¹ |
| | | str.setInspectionItem(list1.get(4).toString().trim()); |
| | | // æ£éªé¡¹è±æ |
| | | if (list1.get(5) != null) { |
| | | str.setInspectionItemEn(list1.get(5).toString()); |
| | | } |
| | | // æ£éªå项 |
| | | if (list1.get(6) == null) { |
| | | str.setInspectionItemSubclass(null); |
| | | } else { |
| | | str.setInspectionItemSubclass(list1.get(6).toString().trim()); |
| | | } |
| | | // æ£éªåé¡¹è±æ |
| | | if (list1.get(7) == null) { |
| | | str.setInspectionItemSubclassEn(null); |
| | | } else { |
| | | str.setInspectionItemSubclassEn(String.valueOf(list1.get(7).toString())); |
| | | } |
| | | // æ£éªé¡¹åç±» |
| | | if (list1.get(22) != null && list1.get(22) != "") { |
| | | str.setInspectionItemClass(list1.get(22).toString().trim()); |
| | | } else { |
| | | str.setInspectionItemClass(null); |
| | | } |
| | | // æ£éªé¡¹åç±»è±æ |
| | | if (list1.get(23) != null && list1.get(23) != "") { |
| | | str.setInspectionItemClassEn(list1.get(23) + ""); |
| | | } else { |
| | | str.setInspectionItemClassEn(null); |
| | | } |
| | | |
| | | LambdaQueryWrapper<StructureItemParameter> wrapper = Wrappers.lambdaQuery(StructureItemParameter.class) |
| | | .eq(StructureItemParameter::getInspectionItem, str.getInspectionItem()) |
| | | .eq(StructureItemParameter::getSample, str.getSample()) |
| | | |
| | | .last("limit 1"); |
| | | // 夿æ¯å¦ææ£éªé¡¹ç±»å |
| | | if (ObjectUtils.isNotEmpty(str.getInspectionItemClass())) { |
| | | wrapper.eq(StructureItemParameter::getInspectionItemClass, str.getInspectionItemClass()); |
| | | } |
| | | |
| | | // 夿æ¯å¦ææ£éªå项 |
| | | if (ObjectUtils.isNotEmpty(str.getInspectionItemSubclass())) { |
| | | wrapper.eq(StructureItemParameter::getInspectionItemSubclass, str.getInspectionItemSubclass()); |
| | | } |
| | | StructureItemParameter db_str = structureItemParameterService.getOne(wrapper); |
| | | if (ObjectUtils.isNotEmpty(db_str)) { |
| | | str.setId(db_str.getId()); |
| | | } |
| | | // æ¹æ³åç§° |
| | | if (list1.get(8) == null) { |
| | | str.setMethod(null); |
| | | } else { |
| | | StringBuffer buffer = new StringBuffer(); |
| | | String input = list1.get(8).toString(); |
| | | buffer.append("["); |
| | | String[] values = input.split("ï¼"); |
| | | for (String value : values) { |
| | | buffer.append("\"").append(value.trim()).append("\","); |
| | | } |
| | | buffer.deleteCharAt(buffer.length() - 1); |
| | | buffer.append("]"); |
| | | str.setMethod(buffer.toString()); |
| | | } |
| | | // è¯éªå®¤ |
| | | if (list1.get(9) == null) { |
| | | str.setSonLaboratory(null); |
| | | } else { |
| | | str.setSonLaboratory(list1.get(9).toString()); |
| | | } |
| | | // 计éåä½ |
| | | if (list1.get(10) == null) { |
| | | str.setUnit(null); |
| | | } else { |
| | | str.setUnit(list1.get(10).toString()); |
| | | } |
| | | // è¦æ±å¼ |
| | | if (list1.get(11) == null) { |
| | | str.setAskTell(null); |
| | | } else { |
| | | str.setAskTell(list1.get(11).toString()); |
| | | } |
| | | // è¦æ±æè¿° |
| | | if (list1.get(12) == null) { |
| | | str.setAsk(null); |
| | | } else { |
| | | str.setAsk(list1.get(12).toString()); |
| | | } |
| | | // åä»· |
| | | if (list1.get(13) == null) { |
| | | str.setPrice(null); |
| | | } else { |
| | | str.setPrice(list1.get(13) + ""); |
| | | } |
| | | // å·¥æ¶ç³»æ° |
| | | if (list1.get(14) == null) { |
| | | str.setManHour(null); |
| | | } else { |
| | | str.setManHour(Double.valueOf(list1.get(14).toString())); |
| | | } |
| | | // å·¥æ¶åç» |
| | | if (list1.get(15) == null) { |
| | | str.setManHourGroup(null); |
| | | } else { |
| | | str.setManHourGroup(list1.get(15).toString()); |
| | | } |
| | | // é¢è®¡å®ææ¶é´ |
| | | if (list1.get(16) == null) { |
| | | str.setManDay(null); |
| | | } else { |
| | | str.setManDay(Integer.valueOf(list1.get(16).toString())); |
| | | } |
| | | // æ°æ®ç±»å |
| | | String jy; |
| | | if (list1.get(17).toString().equals("éééç±»å")) { |
| | | jy = "0"; |
| | | } else { |
| | | jy = "1"; |
| | | } |
| | | str.setInspectionItemType(jy); |
| | | // æ£éªé¡¹ç±»å |
| | | String validateValueType = list1.get(18).toString(); |
| | | if (ObjectUtils.isNotEmpty(validateValueType)) { |
| | | List<SysDictData> enums = dictTypeService.selectDictDataByName("æ£éªå¼ç±»å") |
| | | .stream().filter(sysDictData -> sysDictData.getDictLabel().equals(validateValueType)).collect(Collectors.toList()); |
| | | str.setInspectionValueType(enums.get(0).getDictValue()); |
| | | } |
| | | int bsm; |
| | | //ç¹æ®æ è¯ |
| | | if (list1.get(19).toString().equals("å¦")) { |
| | | bsm = 0; |
| | | } else { |
| | | bsm = 1; |
| | | } |
| | | str.setBsm(bsm + ""); |
| | | // æ°ååå
¸ |
| | | if (list1.get(20) != null) { |
| | | str.setDic(list1.get(20) + ""); |
| | | } else { |
| | | str.setDic(null); |
| | | } |
| | | // åå§è®°å½æ¨¡æ¿ |
| | | StandardTemplate standTempIdByName = standardTemplateService.getStandTempIdByName(String.valueOf(list1.get(21))); |
| | | if (standTempIdByName != null) { |
| | | str.setTemplateId(standTempIdByName.getId()); |
| | | } else { |
| | | str.setTemplateId(null); |
| | | } |
| | | try { |
| | | if (list1.get(24) != null) { |
| | | str.setLaboratory(list1.get(24) + ""); |
| | | } |
| | | } catch (Exception e) { |
| | | } |
| | | |
| | | // æ¡ä»¶ |
| | | if (list1.get(25) == null) { |
| | | str.setRadiusList(null); |
| | | } else { |
| | | StringBuffer buffer = new StringBuffer(); |
| | | String input = list1.get(25).toString(); |
| | | buffer.append("["); |
| | | String[] values = input.split("ï¼"); |
| | | for (String value : values) { |
| | | buffer.append("\"").append(value.trim()).append("\","); |
| | | } |
| | | buffer.deleteCharAt(buffer.length() - 1); |
| | | buffer.append("]"); |
| | | str.setRadiusList(buffer.toString()); |
| | | } |
| | | // æ¶è´¹æ å |
| | | if (list1.get(26) == null) { |
| | | str.setRates(null); |
| | | } else { |
| | | str.setRates(list1.get(26) + ""); |
| | | } |
| | | |
| | | lists.add(str); |
| | | } |
| | | }); |
| | | // structureItemParameterService.removeNoSample(sample.get()); |
| | | // å¦ææ°æ®åºéé¢çæ°æ®åå¨é£ä¹å°±æ§è¡æ´æ°æ·è´æä½ |
| | | try { |
| | | structureItemParameterService.saveOrUpdateBatch(lists); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("æå¡ç«¯æ¥é"); |
| | | } |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "导å
¥æ£éªå¯¹è±¡") |
| | | @PostMapping("/importExcel") |
| | | public Result importExcel(@RequestParam("file") MultipartFile file) { |
| | | try { |
| | | EasyExcel.read(file.getInputStream(), StructureTestObjectData.class, new StructureTestObjectListener(productService)).sheet().doRead(); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return Result.success(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.inspect.pojo.Certification; |
| | | import com.ruoyi.inspect.service.CertificationService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | @Api(tags = "èµè´¨è¯´æ") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/certification") |
| | | |
| | | public class CertificationController { |
| | | |
| | | private CertificationService certificationService; |
| | | |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢èµè´¨æç»å表") |
| | | @PostMapping("/getCertificationDetail") |
| | | public Result getCertificationDetail(Page page,Certification certification) { |
| | | return Result.success(certificationService.getCertificationDetail(page, certification)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ·»å èµè´¨æç»å表") |
| | | @PostMapping("/addCertificationDetail") |
| | | public Result addCertificationDetail(@RequestBody Certification certification) { |
| | | return Result.success(certificationService.addCertificationDetail(certification)); |
| | | } |
| | | @ApiOperation(value = "å é¤èµè´¨æç»å表") |
| | | @PostMapping("/delCertificationDetail") |
| | | public Result<?> delCertificationDetail( String ids) { |
| | | return Result.success(certificationService.delCertificationDetail(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.inspect.pojo.Laboratory; |
| | | import com.ruoyi.inspect.service.LaboratoryService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * å®éªå®¤ç®¡ç(LaboratoryController)表æ§å¶å± |
| | | */ |
| | | @Api(tags = "åºææè®¾æ½") |
| | | |
| | | @RestController |
| | | @RequestMapping("/laboratoryScope") |
| | | public class LaboratoryController { |
| | | |
| | | @Resource |
| | | private LaboratoryService laboratoryService; |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢å®éªå®¤ç®¡çå表") |
| | | @PostMapping("/selectItemParameter") |
| | | public Result selectItemParameter(Page page ,Laboratory itemParameter) { |
| | | return Result.success(laboratoryService.selectItemParameter(page, itemParameter)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ·»å å®éªå®¤åæ°") |
| | | @PostMapping("/addParameter") |
| | | public Result addParameter(@RequestBody Laboratory itemParameter) { |
| | | return Result.success(laboratoryService.addParameter(itemParameter)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤å®éªå®¤åæ°") |
| | | @PostMapping("/delParameter") |
| | | public Result<?> delParameter(Integer id) { |
| | | return Result.success(laboratoryService.delParameter(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ä¿®æ¹å®éªå®¤åæ°") |
| | | @PostMapping("/upParameter") |
| | | public Result<?> upParameter(@RequestBody Laboratory itemParameter) { |
| | | return Result.success(laboratoryService.upParameter(itemParameter)); |
| | | } |
| | | |
| | | @ApiOperation(value = "è·åå®éªå®¤åç§°") |
| | | @GetMapping("/obtainItemParameterList") |
| | | public Result obtainItemParameterList() { |
| | | return Result.success(laboratoryService.obtainItemParameterList()); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.inspect.pojo.ProductPart; |
| | | import com.ruoyi.inspect.service.ProductPartService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("/productPart") |
| | | @Api(tags = "产åé¶ä»¶ç»å®") |
| | | public class ProductPartController { |
| | | |
| | | private ProductPartService productPartService; |
| | | |
| | | @ApiOperation(value = "æ ¹æ®äº§åidæ¥è¯¢é¶ä»¶") |
| | | @PostMapping("/selectByProductId") |
| | | public Result selectByProductId(Page page,ProductPart productPart){ |
| | | return Result.success(productPartService.selectByProductId(page,productPart)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢äº§åé¶ä»¶") |
| | | @PostMapping("/addProductPart") |
| | | public Result addProductPart(@RequestBody ProductPart productPart) { |
| | | productPartService.addProductPart(productPart); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ´æ°äº§åé¶ä»¶") |
| | | @PostMapping("/updateProductPart") |
| | | public Result updateProductPart(@RequestBody ProductPart productPart) { |
| | | productPartService.updateProductPartById(productPart); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤äº§åé¶ä»¶") |
| | | @PostMapping("/deleteProductPart") |
| | | public Result deleteProductPart(Integer id) { |
| | | productPartService.removeById(id); |
| | | return Result.success(); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.inspect.pojo.ProductSupplierDensity; |
| | | import com.ruoyi.inspect.service.ProductSupplierDensityService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | |
| | | /** |
| | | * 产ååå®¶å¯åº¦ç»å®è¡¨ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-09-19 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/productSupplierDensity") |
| | | @AllArgsConstructor |
| | | @Api(tags = "产ååå®¶å¯åº¦ç»å®") |
| | | public class ProductSupplierDensityController { |
| | | |
| | | private ProductSupplierDensityService productSupplierDensityService; |
| | | |
| | | @ApiOperation(value = "æ ¹æ®äº§åidæ¥è¯¢åå®¶å¯åº¦ç»å®") |
| | | @PostMapping("/selectSupplierDensityByProductId") |
| | | public Result selectSupplierDensityByProductId(Page page,ProductSupplierDensity supplierDensity) { |
| | | return Result.success(productSupplierDensityService.selectByProductId(page, supplierDensity)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢åå®¶å¯åº¦ç»å®") |
| | | @PostMapping("/addProductSupplierDensity") |
| | | public Result addProductSupplierDensity(@RequestBody ProductSupplierDensity supplierDensity) { |
| | | productSupplierDensityService.addProductSupplierDensity(supplierDensity); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ´æ°åå®¶å¯åº¦ç»å®") |
| | | @PostMapping("/updateProductSupplierDensity") |
| | | public Result updateProductSupplierDensity(@RequestBody ProductSupplierDensity supplierDensity) { |
| | | productSupplierDensityService.updateProductSupplierDensity(supplierDensity); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤åå®¶å¯åº¦ç»å®") |
| | | @PostMapping("/deleteProductSupplierDensity") |
| | | public Result deleteProductSupplierDensity(Integer id) { |
| | | productSupplierDensityService.removeById(id); |
| | | return Result.success(); |
| | | } |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.inspect.pojo.Laboratory; |
| | | import com.ruoyi.inspect.pojo.Seal; |
| | | import com.ruoyi.inspect.service.SealService; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * å°ç« 管ç(SealController)表æ§å¶å± |
| | | */ |
| | | @Api(tags = "å°ç« 管ç") |
| | | |
| | | @RestController |
| | | @RequestMapping("/sealScope") |
| | | public class SealController { |
| | | |
| | | @Resource |
| | | private SealService sealService; |
| | | |
| | | @ApiOperation(value = "æ·»å å°ç« åæ°") |
| | | @PostMapping("/addSeal") |
| | | public Result addSeal(@RequestBody Seal seal) { |
| | | int i = sealService.addSeal(seal); |
| | | if(i>0){ |
| | | Integer labId = seal.getLabId(); |
| | | List<Laboratory> laboratory = sealService.Laboratory(labId); |
| | | return Result.success(laboratory); |
| | | }else{ |
| | | return Result.fail(); |
| | | } |
| | | |
| | | } |
| | | @ApiOperation(value="æ¥è¯¢å°ç« å表") |
| | | @PostMapping("/selectSeal") |
| | | public Result selectSeal(Page page,Seal seal) { |
| | | return Result.success(sealService.selectSeal(page,seal)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.inspect.pojo.StandardMethod; |
| | | import com.ruoyi.inspect.service.StandardMethodService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.IOException; |
| | | |
| | | @Api(tags = "æ åæ¹æ³") |
| | | @RestController |
| | | @RequestMapping("/standardMethod") |
| | | @AllArgsConstructor |
| | | public class StandardMethodController { |
| | | |
| | | private StandardMethodService standardMethodService; |
| | | |
| | | @ApiOperation(value = "è·åæ åæ¹æ³å表") |
| | | @PostMapping("/selectStandardMethodList") |
| | | public Result selectStandardMethodList(Page page,StandardMethod standardMethod) throws Exception { |
| | | return Result.success(standardMethodService.selectStandardMethodList(page, standardMethod)); |
| | | } |
| | | |
| | | @ApiOperation(value = "è·åæ åæ¹æ³æä¸¾") |
| | | @GetMapping("/selectStandardMethods") |
| | | public Result selectStandardMethods(){ |
| | | return Result.success(standardMethodService.selectStandardMethods()); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ·»å æ åæ¹æ³") |
| | | @PostMapping("/addStandardMethod") |
| | | public Result addStandardMethod(@RequestBody StandardMethod standardMethod) { |
| | | return Result.success(standardMethodService.addStandardMethod(standardMethod)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å 餿 åæ¹æ³") |
| | | @PostMapping("/delStandardMethod") |
| | | public Result<?> delStandardMethod(Integer id) { |
| | | return Result.success(standardMethodService.delStandardMethod(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ä¿®æ¹æ åæ¹æ³") |
| | | @PostMapping("/upStandardMethod") |
| | | public Result<?> upStandardMethod(@RequestBody StandardMethod standardMethod) { |
| | | return Result.success(standardMethodService.upStandardMethod(standardMethod)); |
| | | } |
| | | |
| | | @ApiOperation(value = "导å
¥æ åæç»") |
| | | @PostMapping("/importStandardDetails") |
| | | public Result<?> importStandardDetails(@RequestPart("file") MultipartFile file) throws IOException { |
| | | standardMethodService.inputExcel(file); |
| | | return Result.success(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.inspect.pojo.StandardTemplate; |
| | | import com.ruoyi.inspect.service.StandardTemplateService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @RequestMapping("/StandardTemplate") |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @Api(tags = "åå§è®°å½æ¨¡æ¿") |
| | | public class StandardTemplateController { |
| | | |
| | | private StandardTemplateService standardTemplateService; |
| | | |
| | | @ApiOperation(value = "è·ååå§è®°å½æ¨¡æ¿å表") |
| | | @PostMapping("/selectStandardTemplatePageList") |
| | | public Result selectStandardTemplatePageList(Page page,StandardTemplate standardTemplate) throws Exception { |
| | | return Result.success(standardTemplateService.selectStandardTemplatePageList(page, standardTemplate)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ·»å åå§è®°å½æ¨¡æ¿") |
| | | @PostMapping("/addStandardTemplate") |
| | | public Result addStandardTemplate(@RequestBody StandardTemplate standardTemplate) { |
| | | return Result.success(standardTemplateService.addStandardTemplate(standardTemplate)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ä¿®æ¹åå§è®°å½æ¨¡æ¿") |
| | | @PostMapping("/upStandardTemplate") |
| | | public Result<?> upStandardTemplate(@RequestBody StandardTemplate standardTemplate) { |
| | | return Result.success(standardTemplateService.upStandardTemplate(standardTemplate)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤åå§è®°å½æ¨¡æ¿") |
| | | @PostMapping("/delStandardTemplate") |
| | | public Result<?> delStandardTemplate(Integer id) { |
| | | return Result.success(standardTemplateService.delStandardTemplate(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢åå§è®°å½æ¨¡æ¿æä¸¾") |
| | | @GetMapping("/getStandardTemplate") |
| | | public Result<?> getStandardTemplate() { |
| | | return Result.success(standardTemplateService.getStandardTemplate()); |
| | | } |
| | | |
| | | @ApiOperation(value = "éè¿æ¨¡æ¿idè·åæ£éªé¡¹æ¨¡æ¿å
容") |
| | | @PostMapping("/getStandTempThingById") |
| | | public Result<?> getStandTempThingById(Integer id) { |
| | | return Result.success(standardTemplateService.getStandTempThingById(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¼è¾æ¨¡æ¿ç¼å¶") |
| | | @GetMapping("/getEditTemplatePreparation") |
| | | public Result<?> getEditTemplatePreparation(@RequestParam("id") Integer id) { |
| | | StandardTemplate byId = standardTemplateService.getById(id); |
| | | return Result.success("OK", byId.getThing()); |
| | | } |
| | | |
| | | @ApiOperation(value = "å¤å¶åå§è®°å½æ¨¡æ¿") |
| | | @PostMapping("/copyStandardTemplate") |
| | | public Result copyStandardTemplate(@RequestBody StandardTemplate newTemplate) { |
| | | return Result.success(standardTemplateService.copyStandardTemplate(newTemplate)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.controller; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.inspect.dto.CopyStandardProductListDto; |
| | | import com.ruoyi.inspect.dto.FactoryDto; |
| | | import com.ruoyi.inspect.dto.InsSampleReceiveDto; |
| | | import com.ruoyi.inspect.dto.ResetTreeDragDTO; |
| | | import com.ruoyi.inspect.pojo.StandardProductList; |
| | | import com.ruoyi.inspect.pojo.StandardProductListSupplierAsk; |
| | | import com.ruoyi.inspect.pojo.StandardTree; |
| | | import com.ruoyi.inspect.service.StandardMethodListService; |
| | | import com.ruoyi.inspect.service.StandardProductListService; |
| | | import com.ruoyi.inspect.service.StandardProductListSupplierAskService; |
| | | import com.ruoyi.inspect.service.StandardTreeService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("/standardTree") |
| | | @Api(tags = "æ ååº") |
| | | public class StandardTreeController { |
| | | |
| | | private StandardTreeService standardTreeService; |
| | | |
| | | private StandardMethodListService standardMethodListService; |
| | | |
| | | private StandardProductListService standardProductListService; |
| | | |
| | | private StandardProductListSupplierAskService standardProductListSupplierAskService; |
| | | |
| | | @ApiOperation(value = "è·åæ åæ ") |
| | | @GetMapping("/selectStandardTreeList") |
| | | public Result selectStandardTreeList() { |
| | | return Result.success(standardTreeService.selectStandardTreeList()); |
| | | } |
| | | |
| | | @ApiOperation(value = "è·åæ åæ (æ£éªä¸å)") |
| | | @GetMapping("/selectStandardTreeList2") |
| | | public Result selectStandardTreeList2() { |
| | | return Result.success(standardTreeService.selectStandardTreeList()); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ·»å æ åæ ") |
| | | @PostMapping("/addStandardTree") |
| | | public Result addStandardTree(@RequestBody StandardTree standardTree) { |
| | | return Result.success(standardTreeService.addStandardTree(standardTree)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç»æ åæ æ·»å æ£éªæ å") |
| | | @PostMapping("/addStandardMethodList") |
| | | public Result addStandardMethodList(String tree, Integer standardId) { |
| | | return Result.success(standardMethodListService.addStandardMethodList(standardId, tree)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ ¹æ®æ åæ è¿è¡æ åæ¥è¯¢") |
| | | @PostMapping("/selectsStandardMethodByFLSSM") |
| | | public Result selectsStandardMethodByFLSSM(String tree) { |
| | | return Result.success(standardMethodListService.selectsStandardMethodByFLSSM(tree)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ä¿®æ¹æ ååºä¸çå
容") |
| | | @PostMapping("/upStandardProductList") |
| | | public Result upStandardProductList(String str) { |
| | | StandardProductList list = JSON.parseObject(str, StandardProductList.class); |
| | | return Result.success(standardProductListService.upStandardProductList(list)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ä¿®æ¹æ ååºåºé´") |
| | | @PostMapping("/updateSection") |
| | | public Result updateSection(String str) { |
| | | StandardProductList list = JSON.parseObject(str, StandardProductList.class); |
| | | return Result.success(standardProductListService.updateSection(list)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å 餿 åæ ä¸çæ£éªæ å") |
| | | @PostMapping("/delStandardMethodByFLSSM") |
| | | public Result delStandardMethodByFLSSM(Integer id) { |
| | | return Result.success(standardMethodListService.delStandardMethodByFLSSM(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å 餿 åæ ä¸çæ£éªé¡¹ç®") |
| | | @PostMapping("/delStandardProductByIds") |
| | | public Result delStandardProductByIds(String ids) { |
| | | JSONArray lists = JSON.parseArray(ids); |
| | | return Result.success(standardProductListService.delStandardProduct(lists)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢æ åæ ä¸çæ£éªé¡¹ç®") |
| | | @PostMapping("/addStandardProduct") |
| | | public Result addStandardProduct(String ids, String tree) { |
| | | return Result.success(standardTreeService.addStandardProduct(ids, tree)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å 餿 åæ çå±çº§") |
| | | @PostMapping("/delStandardTree") |
| | | public Result delStandardTree(String tree) { |
| | | return Result.success(standardTreeService.delStandardTree(tree)); |
| | | } |
| | | |
| | | @ApiOperation(value = "éè¿æ åæ æ¥è¯¢å¯¹åºçæ£éªé¡¹ç®") |
| | | @PostMapping("/selectStandardProductList") |
| | | public Result selectStandardProductList(@RequestBody InsSampleReceiveDto insSample) { |
| | | return Result.success(standardProductListService.selectStandardProductList(insSample)); |
| | | } |
| | | |
| | | @ApiOperation(value = "éè¿æ£éªæ åæ¥è¯¢æ£éªé¡¹ç®") |
| | | @PostMapping("/selectStandardProductListByMethodId") |
| | | public Result selectStandardProductListByMethodId(Integer id, String tree, Integer page) { |
| | | return Result.success(standardProductListService.selectStandardProductListByMethodId(id, tree, page)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¹éç¼è¾æ¥è¯¢æ£éªé¡¹ç®") |
| | | @PostMapping("/selectStandardProductByMethodId") |
| | | public Result selectStandardProductByMethodId(Integer id, String tree, Integer page, String laboratory, String item, String items) { |
| | | return Result.success(standardProductListService.selectStandardProductByMethodId(id, tree, page, laboratory, item, items)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¹éç¼è¾æ¥è¯¢æææ£éªé¡¹ç®åæ£éªå项æä¸¾") |
| | | @PostMapping("/selectStandardProductEnumByMethodId") |
| | | public Result selectStandardProductEnumByMethodId(Integer id, String tree, String item) { |
| | | return Result.success(standardProductListService.selectStandardProductEnumByMethodId(id, tree, item)); |
| | | } |
| | | |
| | | @ApiOperation(value = "è·åæ åæ ä¸æ åæ¹æ³æä¸¾") |
| | | @GetMapping("/selectStandardMethodEnum") |
| | | public Result selectStandardMethodEnum() { |
| | | return Result.success(standardMethodListService.selectStandardMethodEnum()); |
| | | } |
| | | |
| | | @ApiOperation(value = "è·åäº§åæ¶æ") |
| | | @GetMapping("/getStandardTree2") |
| | | public Result getStandardTree2() { |
| | | return Result.success(standardTreeService.getStandardTree2()); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¹éä¿®æ¹é¡¹ç®å
容") |
| | | @PostMapping("/upStandardProducts") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "standardProductList", dataTypeClass = StandardProductList.class), |
| | | @ApiImplicitParam(name = "ids", dataTypeClass = Integer.class) |
| | | }) |
| | | public Result upStandardProducts(@RequestBody Map<String, Object> product) { |
| | | return Result.success(standardTreeService.upStandardProducts(product)); |
| | | } |
| | | |
| | | @PostMapping("/getStandTreeBySampleType") |
| | | @ApiOperation("ä»
è·åå
纤çåå·") |
| | | public Result<?> getStandTreeBySampleType(String laboratory, String sampleType) { |
| | | return Result.success(standardTreeService.getStandTreeBySampleType(laboratory, sampleType)); |
| | | } |
| | | |
| | | @ApiOperation("导å
¥æ ååº") |
| | | @PostMapping("/inExcelOfTree/{isEquipment}") |
| | | public Result inExcelOfTree(@RequestParam("file") MultipartFile file, @PathVariable("isEquipment") Boolean isEquipment) { |
| | | if (!isEquipment) { |
| | | standardTreeService.inExcelOfTree(file); |
| | | } else { |
| | | standardTreeService.importWorkstationExcel(file); |
| | | } |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation("éç½®æ ååºåä»·") |
| | | @PostMapping("/resetTreeOfPrice") |
| | | public Result resetTreeOfPrice(String tree, Integer standardId) { |
| | | standardTreeService.resetTreeOfPrice(tree, standardId); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation("éç½®æ ååºå·¥æ¶ç³»æ°") |
| | | @PostMapping("/resetTreeOfHour") |
| | | public Result resetTreeOfHour(String tree, Integer standardId) { |
| | | standardTreeService.resetTreeOfHour(tree, standardId); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation("éç½®æ ååºè¦æ±æè¿°åè¦æ±å¼") |
| | | @PostMapping("/resetTreeOfAsk") |
| | | public Result resetTreeOfAsk(String tree, Integer standardId) { |
| | | standardTreeService.resetTreeOfAsk(tree, standardId); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation("æ ååºææ½") |
| | | @PostMapping("/resetTreeDrag") |
| | | public Result resetTreeDrag(@RequestBody ResetTreeDragDTO resetTreeDragDTO) { |
| | | standardProductListService.resetTreeDrag(resetTreeDragDTO); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation("æ ååºææ½å
¨é¨") |
| | | @PostMapping("/resetTreeDragBatch") |
| | | public Result resetTreeDragBatch(@RequestBody Map<String, Object> params) { |
| | | List<StandardProductList> standardProductLists = (List<StandardProductList>) params.get("params"); |
| | | standardProductListService.resetTreeDragBatch(standardProductLists); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ åæ æåº") |
| | | @PostMapping("/updateTreeSort") |
| | | public Result updateTreeSort(@RequestBody List<FactoryDto> list) { |
| | | return Result.success(standardTreeService.updateTreeSort(list)); |
| | | } |
| | | |
| | | /*************************************************** åå®¶ç¹æ®è¦æ±å¼å¤ç ************************************************************/ |
| | | |
| | | @ApiOperation(value = "æ ¹æ®äº§åidæ¥è¯¢åå®¶è¦æ±å¼ç»å®") |
| | | @PostMapping("/selectSupplierAsk") |
| | | public Result selectSupplierAsk(StandardProductListSupplierAsk supplierAsk) throws Exception { |
| | | return Result.success(standardProductListSupplierAskService.selectByProductId(supplierAsk)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢åå®¶è¦æ±å¼ç»å®") |
| | | @PostMapping("/addProductSupplierAsk") |
| | | public Result addProductSupplierAsk(String str) { |
| | | StandardProductListSupplierAsk supplierAsk = JSON.parseObject(str, StandardProductListSupplierAsk.class); |
| | | return Result.success(standardProductListSupplierAskService.addProductSupplierAsk(supplierAsk)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ´æ°åå®¶è¦æ±å¼ç»å®") |
| | | @PostMapping("/updateProductSupplierAsk") |
| | | public Result updateProductSupplierAsk(String str) { |
| | | StandardProductListSupplierAsk supplierAsk = JSON.parseObject(str, StandardProductListSupplierAsk.class); |
| | | standardProductListSupplierAskService.updateProductSupplierAsk(supplierAsk); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤åå®¶è¦æ±å¼ç»å®") |
| | | @PostMapping("/deleteProductSupplierAsk") |
| | | public Result deleteProductSupplierAsk(Integer supplierAskId) { |
| | | standardProductListSupplierAskService.removeById(supplierAskId); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "ä¿®æ¹æ åæ ") |
| | | @PostMapping("/updateStandardTree") |
| | | public Result updateStandardTree(@RequestBody StandardTree standardTree) { |
| | | return Result.success(standardTreeService.updateStandardTree(standardTree)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ£éªé¡¹è¦æ±å¼å¤å¶å¯¹æ¯") |
| | | @PostMapping("/copyStandardProductList") |
| | | public Result copyStandardProductList(@RequestBody CopyStandardProductListDto copyStandardProductListDto) { |
| | | return Result.success(standardProductListService.copyStandardProductList(copyStandardProductListDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ£éªé¡¹è¦æ±å¼åç¬å¯¹æ¯") |
| | | @PostMapping("/copyStandardProductOne") |
| | | public Result copyStandardProductOne(@RequestBody CopyStandardProductListDto copyStandardProductListDto) { |
| | | return Result.success(standardProductListService.copyStandardProductOne(copyStandardProductListDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ£éªé¡¹æ¹éä¿®æ¹è¦æ±å¼è¦æ±æè¿°") |
| | | @PostMapping("/updateStandardProductListBatch") |
| | | public Result updateStandardProductListBatch(@RequestBody Map<String, Object> param) { |
| | | List<StandardProductList> standardProductList = (List<StandardProductList>) param.get("standardProductList"); |
| | | return Result.success(standardProductListService.updateBatchById(standardProductList)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ£éªé¡¹å¤å¶æåº") |
| | | @PostMapping("/copyStandardProductSort") |
| | | public Result copyStandardProductSort(@RequestBody CopyStandardProductListDto copyStandardProductListDto) { |
| | | return Result.success(standardProductListService.copyStandardProductSort(copyStandardProductListDto)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.inspect.pojo.StructureTestObjectPart; |
| | | import com.ruoyi.inspect.service.StructureTestObjectPartService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | |
| | | /** |
| | | * æ£éªå¯¹è±¡é¶ä»¶è¡¨ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-08-07 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/structureTestObjectPart") |
| | | @AllArgsConstructor |
| | | @Api(tags = "æ£éªå¯¹è±¡é¶ä»¶è¡¨") |
| | | public class StructureTestObjectPartController { |
| | | |
| | | private StructureTestObjectPartService structureTestObjectPartService; |
| | | |
| | | @ApiOperation(value = "æ ¹æ®æ£éªå¯¹è±¡idæ¥è¯¢é¶ä»¶") |
| | | @PostMapping("/selectByTestObjectId") |
| | | public Result selectByTestObjectId(Page page,StructureTestObjectPart structureTestObjectPart){ |
| | | return Result.success(structureTestObjectPartService.selectByTestObjectId(page,structureTestObjectPart)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢æ£éªå¯¹è±¡é¶ä»¶") |
| | | @PostMapping("/addTestObjectPart") |
| | | public Result addTestObjectPart(@RequestBody StructureTestObjectPart structureTestObjectPart) { |
| | | structureTestObjectPartService.addTestObjectPart(structureTestObjectPart); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ´æ°æ£éªå¯¹è±¡é¶ä»¶") |
| | | @PostMapping("/updateTestObjectPart") |
| | | public Result updateTestObjectPart(@RequestBody StructureTestObjectPart structureTestObjectPart) { |
| | | structureTestObjectPartService.updateTestObjectPart(structureTestObjectPart); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "å 餿£éªå¯¹è±¡é¶ä»¶") |
| | | @PostMapping("/deleteTestObjectPart") |
| | | public Result deleteTestObjectPart(Integer id) { |
| | | structureTestObjectPartService.removeById(id); |
| | | return Result.success(); |
| | | } |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.dto; |
| | | |
| | | import com.ruoyi.inspect.pojo.StandardProductList; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ 忣éªé¡¹å¤å¶ |
| | | * |
| | | * @Author zhuo |
| | | * @Date 2024/10/31 |
| | | */ |
| | | @Data |
| | | public class CopyStandardProductListDto { |
| | | |
| | | @ApiModelProperty("忬æ£éªé¡¹ä¿¡æ¯") |
| | | private List<StandardProductList> oldStandardProductList; |
| | | |
| | | @ApiModelProperty("éè¦å¯¹æ¯çæ£éªé¡¹ä¿¡æ¯") |
| | | private List<StandardProductList> newStandardProductList; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.dto; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class FactoryDto { |
| | | |
| | | private String code = "[1]"; |
| | | |
| | | private String label; |
| | | |
| | | private String value; |
| | | |
| | | private List<LaboratoryDto> children; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.dto; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * åæææ¥è¯¢, æé¤äºä¾åºå |
| | | * @Author zhuo |
| | | * @Date 2024/8/28 |
| | | */ |
| | | @Data |
| | | public class IfsInventoryQuantityCheckDto implements Serializable { |
| | | |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("å") |
| | | private String contract; |
| | | |
| | | @ApiModelProperty("订åå·") |
| | | private String orderNo; |
| | | |
| | | |
| | | @ApiModelProperty("è¡å·") |
| | | private String lineNo; |
| | | |
| | | @ApiModelProperty("ä¸è¾¾å·") |
| | | private String releaseNo; |
| | | |
| | | @ApiModelProperty("æ¥æ¶å·") |
| | | private Integer receiptNo; |
| | | |
| | | @ApiModelProperty("é¶ä»¶å·") |
| | | private String partNo; |
| | | |
| | | @ApiModelProperty("é¶ä»¶æè¿°") |
| | | private String partDesc; |
| | | |
| | | @ApiModelProperty("ç¶ææè¿°") |
| | | private String status; |
| | | |
| | | @ApiModelProperty("ç¶æ") |
| | | private String statusDb; |
| | | |
| | | @ApiModelProperty("æµè¾¾çéè´æ°é") |
| | | private BigDecimal qtyArrived; |
| | | |
| | | @ApiModelProperty("å·²æ£éªçè´ä¹°æ°é") |
| | | private BigDecimal qtyInspected; |
| | | |
| | | @ApiModelProperty("è¦æ£éªçéè´æ°é") |
| | | private BigDecimal qtyToInspect; |
| | | |
| | | @ApiModelProperty("æµè¾¾çåºåæ°é") |
| | | private BigDecimal invQtyInStore; |
| | | |
| | | @ApiModelProperty("æµè¾¾çéè´æ°é") |
| | | private BigDecimal purQtyInStore; |
| | | |
| | | @ApiModelProperty("é
ç½®æ è¯") |
| | | private String configurationId; |
| | | |
| | | @ApiModelProperty("æ¹å·") |
| | | private String lotBatchNo; |
| | | |
| | | @ApiModelProperty("wdrå·") |
| | | private String waivDevRejNo; |
| | | |
| | | @ApiModelProperty("æ´»å¨åºå") |
| | | private Integer activitySeq; |
| | | |
| | | |
| | | @ApiModelProperty("åºåå·") |
| | | private String serialNo; |
| | | |
| | | @ApiModelProperty("åºä½å·") |
| | | private String locationNo; |
| | | |
| | | @ApiModelProperty("çæ¬å·") |
| | | private String engChgLevel; |
| | | |
| | | @ApiModelProperty("æ¥æ¶äºº") |
| | | private String receiver; |
| | | |
| | | @ApiModelProperty("æ¥æ¶äººå§å") |
| | | private String receiverName; |
| | | |
| | | @ApiModelProperty("éè´å") |
| | | private String buyerCode; |
| | | |
| | | @ApiModelProperty("éè´åå§å") |
| | | private String buyerName; |
| | | |
| | | @ApiModelProperty("å®é
å°è´§æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | private LocalDateTime arriveDate; |
| | | |
| | | @ApiModelProperty("å®é
äº¤è´§æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | private LocalDateTime deliveryDate; |
| | | |
| | | @ApiModelProperty("çäº§æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | private LocalDateTime productDate; |
| | | |
| | | @ApiModelProperty("å¤±ææ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | private LocalDateTime invalidDate; |
| | | |
| | | |
| | | @ApiModelProperty("å®¡æ¹æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | private LocalDateTime approvedDate; |
| | | |
| | | @ApiModelProperty("éè´ç³è¯·å建人") |
| | | private String reqCeater; |
| | | |
| | | @ApiModelProperty("éè´ç³è¯·å建人å§å") |
| | | private String reqCeaterName; |
| | | |
| | | @ApiModelProperty("éè´è®¢åè¡å¤æ³¨") |
| | | private String lineRemarks; |
| | | |
| | | @ApiModelProperty("åä½") |
| | | private String buyUnitMeas; |
| | | |
| | | |
| | | private Integer isSource; |
| | | |
| | | private Integer number; |
| | | |
| | | |
| | | private Integer state; |
| | | |
| | | @ApiModelProperty("æ¥æ¶æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | private LocalDateTime receiverDate; |
| | | |
| | | @ApiModelProperty("æ¯å¦ä¸ºé¦æ¬¡åºç° 0 å¦ 1 æ¯") |
| | | private Integer isFirst; |
| | | |
| | | @ApiModelProperty("ç®æ åºä½å·") |
| | | private String toLocation; |
| | | |
| | | @ApiModelProperty("æ¯å¦æ¯æ¥æ£ 0 å¦ 1 æ¯") |
| | | private Integer isInspect; |
| | | |
| | | @ApiModelProperty("æ¥æ£äºº") |
| | | private String declareUser; |
| | | |
| | | |
| | | @ApiModelProperty("æ¥æ£äººid") |
| | | private Integer declareUserId; |
| | | |
| | | @ApiModelProperty("åä½") |
| | | private String partUnit; |
| | | |
| | | @ApiModelProperty("产ä¸é¾æ£æµæ°æ®") |
| | | private String industryChain; |
| | | |
| | | @ApiModelProperty("æ¥æ£æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | private LocalDateTime declareDate; |
| | | |
| | | @ApiModelProperty("æ¯å¦å¡å¯ä»¥å£åº¦æ£éª 0 å¦ 1 æ¯") |
| | | private Integer isQuarter; |
| | | |
| | | // ä¿®æ¹åç |
| | | @ApiModelProperty("æ¹å·") |
| | | private String updateBatchNo; |
| | | |
| | | @ApiModelProperty("æ¯å¦æ¯éåä¸, 0å¦, 1æ¯") |
| | | private Integer isCopper; |
| | | |
| | | @ApiModelProperty("ç©æç±»å") |
| | | private Integer isExpire; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.dto; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | @Data |
| | | public class IfsInventoryQuantityDto extends IfsInventoryQuantityCheckDto { |
| | | |
| | | /** |
| | | * å§æç¼å· |
| | | */ |
| | | @ApiModelProperty("å§æç¼å·") |
| | | private String entrustCode; |
| | | |
| | | @ApiModelProperty("æ£éªå¯¹è±¡") |
| | | private String sampleType; |
| | | |
| | | @ApiModelProperty("æ ·ååç§°") |
| | | private String sampleName; |
| | | |
| | | @ApiModelProperty("æ ·ååå·") |
| | | private String sampleModel; |
| | | |
| | | @ApiModelProperty("æ ·åç¼å·") |
| | | private String sampleCode; |
| | | |
| | | // è¿å |
| | | @ApiModelProperty("订åid") |
| | | private Integer enterOrderId; |
| | | |
| | | @ApiModelProperty("æ¥åid") |
| | | private String enterReportId; |
| | | |
| | | @ApiModelProperty("ç³»ç»çææ¥åå°å") |
| | | private String enterUrl; |
| | | |
| | | @ApiModelProperty("æå¨ä¸ä¼ æ¥åå°å") |
| | | private String enterUrlS; |
| | | |
| | | // å£åº¦ |
| | | @ApiModelProperty("订åid") |
| | | private Integer quarterOrderId; |
| | | |
| | | @ApiModelProperty("æ¥åid") |
| | | private String quarterReportId; |
| | | |
| | | @ApiModelProperty("ç³»ç»çææ¥åå°å") |
| | | private String quarterUrl; |
| | | |
| | | @ApiModelProperty("æå¨ä¸ä¼ æ¥åå°å") |
| | | private String quarterUrlS; |
| | | |
| | | private Integer orderState; |
| | | |
| | | @ApiModelProperty("ä¸åæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime sendTime; |
| | | |
| | | @ApiModelProperty("ææåå®¶") |
| | | private String supplierName; |
| | | |
| | | @ApiModelProperty("å§æäºº") |
| | | private String prepareUser; |
| | | |
| | | @ApiModelProperty("é¢è²") |
| | | private String color; |
| | | |
| | | @ApiModelProperty("æ ç¾ç¶æ") |
| | | private String labelStatus; |
| | | |
| | | @ApiModelProperty("æ ç¾æ¡å½¢ç ") |
| | | private String labelBarCode; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty("æ£éªäºº") |
| | | private String userName; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.dto; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.inspect.pojo.IfsInventoryQuantity; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * è½æ¥è¯¢å°ä¾åºå |
| | | */ |
| | | @Data |
| | | @ExcelIgnoreUnannotated |
| | | public class IfsInventoryQuantitySupplierDto extends IfsInventoryQuantity { |
| | | |
| | | /** |
| | | * å§æç¼å· |
| | | */ |
| | | @ExcelProperty(index = 2, value = "å§æç¼å·") |
| | | @ApiModelProperty("å§æç¼å·") |
| | | private String entrustCode; |
| | | |
| | | @ApiModelProperty("æ ·åid") |
| | | private Integer sampleId; |
| | | |
| | | @ApiModelProperty("æ£éªå¯¹è±¡") |
| | | private String sampleType; |
| | | |
| | | @ExcelProperty(index = 7, value = "æ ·ååç§°") |
| | | @ApiModelProperty("æ ·ååç§°") |
| | | private String sampleName; |
| | | |
| | | @ExcelProperty(index = 8, value = "æ ·ååå·") |
| | | @ApiModelProperty("æ ·ååå·") |
| | | private String sampleModel; |
| | | |
| | | @ApiModelProperty("æ ·åç¼å·") |
| | | private String sampleCode; |
| | | |
| | | // è¿å |
| | | @ApiModelProperty("è¿å订åid") |
| | | private Integer enterOrderId; |
| | | |
| | | @ApiModelProperty("æ¥åid") |
| | | private String enterReportId; |
| | | |
| | | @ApiModelProperty("ç³»ç»çææ¥åå°å") |
| | | private String enterUrl; |
| | | |
| | | @ApiModelProperty("æå¨ä¸ä¼ æ¥åå°å") |
| | | private String enterUrlS; |
| | | |
| | | // å£åº¦ |
| | | @ApiModelProperty("å£åº¦è®¢åid") |
| | | private Integer quarterOrderId; |
| | | |
| | | @ApiModelProperty("æ¥åid") |
| | | private String quarterReportId; |
| | | |
| | | @ApiModelProperty("ç³»ç»çææ¥åå°å") |
| | | private String quarterUrl; |
| | | |
| | | @ApiModelProperty("æå¨ä¸ä¼ æ¥åå°å") |
| | | private String quarterUrlS; |
| | | |
| | | private Integer orderState; |
| | | |
| | | @ApiModelProperty("ä¸åæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime sendTime; |
| | | |
| | | @ApiModelProperty("å§æäºº") |
| | | private String prepareUser; |
| | | |
| | | @ApiModelProperty("é¢è²") |
| | | private String color; |
| | | |
| | | @ApiModelProperty("æ ç¾ç¶æ") |
| | | private String labelStatus; |
| | | |
| | | @ApiModelProperty("æ ç¾æ¡å½¢ç ") |
| | | private String labelBarCode; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | private Integer createUser; |
| | | |
| | | @ExcelProperty(index = 9, value = "æ£éªäºº") |
| | | @ApiModelProperty("æ£éªäºº") |
| | | private String userName; |
| | | |
| | | @ExcelProperty(index = 10, value = "ä¸åæ¶é´") |
| | | private String sendTimeString; |
| | | |
| | | @ExcelProperty(index = 14, value = "æ¥æ¶æ¶é´") |
| | | private String receiverDateString; |
| | | |
| | | @ExcelProperty(index = 15, value = "æ¥æ£æ¶é´") |
| | | private String declareDateString; |
| | | |
| | | // åæ ¼ç¶æ,: 0 æ£éªä¸, 1åæ ¼, 2ä¸åæ ¼, 3æªä¸å,4è®©æ¥æ¾è¡ |
| | | @ExcelProperty(index = 6, value = "æ£éªç¶æ") |
| | | private String inspectStatusString; |
| | | |
| | | @ApiModelProperty("æ¥æ£å¼å§æ¶é´") |
| | | private String beginDeclareDate; |
| | | |
| | | @ApiModelProperty("æ¥æ£ç»ææ¶é´") |
| | | private String endDeclareDate; |
| | | |
| | | @ApiModelProperty("ä¸åæ ¼æè¿°") |
| | | @ExcelProperty(index = 16, value = "ä¸åæ ¼æè¿°") |
| | | private String unqualifiedDesc; |
| | | |
| | | |
| | | @ApiModelProperty("ä¸åæ ¼é¡¹") |
| | | @ExcelProperty(index = 17, value = "ä¸åæ ¼é¡¹") |
| | | private String unqualifiedItem; |
| | | |
| | | @ApiModelProperty("å
æ£") |
| | | private Integer isExemption; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.dto; |
| | | |
| | | import com.ruoyi.inspect.pojo.InsSample1; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/10/29 |
| | | */ |
| | | @Data |
| | | public class InsSampleReceiveDto extends InsSample1 { |
| | | |
| | | @ApiModelProperty("é¶ä»¶å·") |
| | | private String partNo; |
| | | |
| | | @ApiModelProperty("åææid") |
| | | private Integer ifsInventoryId; |
| | | |
| | | @ApiModelProperty("è¯æ°") |
| | | private String cores; |
| | | |
| | | @ApiModelProperty("åå·åæ°") |
| | | private String modelNum; |
| | | |
| | | @ApiModelProperty("å¯¼ä½æè´¨") |
| | | private String conductorMaterial; |
| | | |
| | | @ApiModelProperty("导ä½ç±»å") |
| | | private String conductorType; |
| | | |
| | | @ApiModelProperty("æ¯å¦æ¯çµç¼é
ç½®") |
| | | private String isCableTag; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.dto; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class LaboratoryDto { |
| | | |
| | | private String code = "[2]"; |
| | | |
| | | private String label; |
| | | |
| | | private String value; |
| | | |
| | | private List<SampleTypeDto> children; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.dto; |
| | | |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class ModelDto { |
| | | |
| | | private String code = "[5]"; |
| | | |
| | | private String label; |
| | | |
| | | private String value; |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.dto; |
| | | |
| | | import com.ruoyi.inspect.pojo.StructureTestObject; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Author æ´å |
| | | * @Date 2024/2/26 |
| | | */ |
| | | @Data |
| | | public class PageTestObjectDto extends StructureTestObject { |
| | | |
| | | @ApiModelProperty(value = "产å") |
| | | private String product; |
| | | |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createUserName; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateUserName; |
| | | |
| | | @ApiModelProperty(value = "é¶ä»¶å·") |
| | | private String partNo; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.dto; |
| | | |
| | | import com.ruoyi.inspect.pojo.Product; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/8/5 |
| | | */ |
| | | @Data |
| | | public class ProductDTO1 extends Product { |
| | | |
| | | @ApiModelProperty(value = "é¶ä»¶å·") |
| | | private String partNo; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.dto; |
| | | |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class ProductDto { |
| | | |
| | | private Integer id; |
| | | |
| | | private String name; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.dto; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/8/22 |
| | | */ |
| | | @Data |
| | | public class ResetTreeDragDTO { |
| | | @ApiModelProperty(value = "å¼å§ç´¢å¼") |
| | | private String beginIndex; |
| | | |
| | | @ApiModelProperty(value = "ç»æç´¢å¼") |
| | | private String endIndex; |
| | | |
| | | @ApiModelProperty(value = "æ åç¼å·id") |
| | | private String methodId; |
| | | |
| | | @ApiModelProperty(value = "æ°") |
| | | private String tree; |
| | | |
| | | @ApiModelProperty(value = "æ£éªé¡¹è¡id") |
| | | private String productionId; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.dto; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class SampleDto { |
| | | |
| | | private String code = "[4]"; |
| | | |
| | | private String label; |
| | | |
| | | private String value; |
| | | |
| | | private String partNo; |
| | | |
| | | // æ ·åè±æ |
| | | private String sampleEn; |
| | | |
| | | private List<ModelDto> children; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.dto; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class SampleTypeDto { |
| | | |
| | | private String code = "[3]"; |
| | | |
| | | // æ£æµå¯¹è±¡id |
| | | private Integer sampleTypeId; |
| | | |
| | | // æ£æµå¯¹è±¡æåº |
| | | private Integer sort; |
| | | |
| | | private String label; |
| | | |
| | | private String value; |
| | | |
| | | private String partNo; |
| | | |
| | | // å¯¹è±¡è±æ |
| | | private String sampleTypeEn; |
| | | |
| | | private List<SampleDto> children; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.dto; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class TestItemDto { |
| | | |
| | | private Integer id; |
| | | |
| | | private String name; |
| | | |
| | | private List<ProductDto> children; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.excel; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class StructureTestObjectData { |
| | | @ExcelProperty(value = "åºæ") |
| | | private String laboratory; |
| | | |
| | | @ExcelProperty(value = "æ£æµå¯¹è±¡") |
| | | private String specimenName; |
| | | |
| | | @ExcelProperty(value = "æ£æµå¯¹è±¡(EN)") |
| | | private String specimenNameEn; |
| | | |
| | | @ExcelProperty(value = "对象代å·") |
| | | private String code; |
| | | |
| | | @ExcelProperty(value = "产ååç§°") |
| | | private String name; |
| | | |
| | | @ExcelProperty(value = "产ååç§°(EN)") |
| | | private String nameEn; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.excel; |
| | | |
| | | import com.alibaba.excel.context.AnalysisContext; |
| | | import com.alibaba.excel.event.AnalysisEventListener; |
| | | import com.ruoyi.inspect.service.ProductService; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | public class StructureTestObjectListener extends AnalysisEventListener<StructureTestObjectData> { |
| | | private static final int BATCH_COUNT = 1000; |
| | | List<StructureTestObjectData> list = new ArrayList<>(); |
| | | |
| | | private ProductService productService; |
| | | |
| | | public StructureTestObjectListener(ProductService productService) { |
| | | this.productService = productService; |
| | | } |
| | | |
| | | @Override |
| | | public void invoke(StructureTestObjectData data, AnalysisContext analysisContext) { |
| | | list.add(data); |
| | | if (list.size() >= BATCH_COUNT) { |
| | | save(); |
| | | list.clear(); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void doAfterAllAnalysed(AnalysisContext analysisContext) { |
| | | save(); |
| | | } |
| | | |
| | | |
| | | private void save() { |
| | | productService.importPartExcel(list); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.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.inspect.pojo.Certification; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | public interface CertificationMapper extends BaseMapper<Certification> { |
| | | |
| | | //æ¥è¯¢èµè´¨æç»å表 |
| | | IPage<Certification> getCertificationDetail(Page page, @Param("ew") QueryWrapper<Certification> ew); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.inspect.dto.IfsInventoryQuantityDto; |
| | | import com.ruoyi.inspect.pojo.IfsInventoryQuantity; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | @Mapper |
| | | public interface IfsInventoryQuantityMapper extends BaseMapper<IfsInventoryQuantity> { |
| | | |
| | | /** |
| | | * æå°æ ç¾æ¥è¯¢ |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | List<IfsInventoryQuantityDto> printLabel(@Param("ids") List<Integer> ids); |
| | | |
| | | /** |
| | | * |
| | | * @param ifsInventoryId |
| | | * @return |
| | | */ |
| | | int selectReportCountById(@Param("ifsInventoryId") Integer ifsInventoryId); |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢å½åå£åº¦æ¯å¦åºç°è¿è¯¥ææ |
| | | * @param partDetail åå· |
| | | * @param supplierName ä¾åºååç§° |
| | | * @param startOfNextQuarter å£åº¦å¼å§æ¶é´ |
| | | * @param endOfQuarter å£åº¦ç»ææ¶é´ |
| | | * @return |
| | | */ |
| | | Integer selectIsFirst(@Param("partDetail") String partDetail, |
| | | @Param("supplierName") String supplierName, |
| | | @Param("startOfNextQuarter") LocalDateTime startOfNextQuarter, |
| | | @Param("endOfQuarter") LocalDateTime endOfQuarter); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.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.inspect.pojo.Laboratory; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * å®éªå®¤ç®¡ç(Laboratory)è¡¨æ°æ®åºè®¿é®å± |
| | | */ |
| | | public interface LaboratoryMapper extends BaseMapper<Laboratory> { |
| | | |
| | | IPage<Laboratory> selectItemParameter(Page page, @Param("ew") QueryWrapper<Laboratory> ew); |
| | | |
| | | Object obtainItemParameterList(@Param("page") Page page, @Param("ew") QueryWrapper<Laboratory> ew); |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.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.inspect.dto.ProductDTO1; |
| | | import com.ruoyi.inspect.pojo.Product; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * @author z1292 |
| | | * @description é对表ãproduct(产å表)ãçæ°æ®åºæä½Mapper |
| | | * @createDate 2024-04-26 01:11:02 |
| | | * @Entity com.ruoyi.basic.pojo.Product |
| | | */ |
| | | public interface ProductMapper extends BaseMapper<Product> { |
| | | |
| | | IPage<Product> selectProductListByObjectId(Page page, @Param("ew") QueryWrapper<ProductDTO1> ew, @Param("partNo") String partNo); |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.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.ruoyi.inspect.pojo.ProductPart; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | public interface ProductPartMapper extends BaseMapper<ProductPart> { |
| | | IPage<ProductPart> selectListByProductId(IPage<ProductPart> page, |
| | | @Param("ew") QueryWrapper<ProductPart> ew, |
| | | @Param("productId") Integer productId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.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.inspect.pojo.ProductSupplierDensity; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * 产ååå®¶å¯åº¦ç»å®è¡¨ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-09-19 |
| | | */ |
| | | @Mapper |
| | | public interface ProductSupplierDensityMapper extends BaseMapper<ProductSupplierDensity> { |
| | | |
| | | IPage<ProductSupplierDensity> selectListByProductId(@Param("page") Page page, @Param("ew") QueryWrapper<ProductSupplierDensity> ew, @Param("productId") Integer productId); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.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.inspect.pojo.Laboratory; |
| | | import com.ruoyi.inspect.pojo.Seal; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | public interface SealMapper extends BaseMapper<Seal> { |
| | | IPage<Seal>selectSeal(Page page, @Param("ew") QueryWrapper<Seal> ew); |
| | | List<Laboratory> selectLaboratory (Integer labId); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.inspect.pojo.StandardMethodList; |
| | | import com.ruoyi.inspect.pojo.StandardProductList; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author Administrator |
| | | * @description é对表ãstandard_method_list(æ åæ ä¸çæ åå表)ãçæ°æ®åºæä½Mapper |
| | | * @createDate 2024-03-04 13:44:04 |
| | | * @Entity com.ruoyi.basic.pojo.StandardMethodList |
| | | */ |
| | | public interface StandardMethodListMapper extends BaseMapper<StandardMethodList> { |
| | | |
| | | Map<String, String> selectStandardMethodById(Integer id); |
| | | |
| | | String selectUserById(Integer id); |
| | | |
| | | List<StandardMethodList> selectStandardMethodLists(String tree); |
| | | |
| | | List<StandardMethodList> selectStandardMethodListsByNull(String tree); |
| | | |
| | | List<StandardMethodList> selectStandardMethodLists3(String tree); |
| | | |
| | | List<StandardMethodList> selectStandardMethodLists2(@Param("data1") String data1, @Param("data2") String data2, @Param("data3") String data3, @Param("data4") String data4, @Param("data5") String data5); |
| | | |
| | | List<StandardProductList> selectParameterList(String code); |
| | | |
| | | List<StandardMethodList> selectListEnum(); |
| | | |
| | | Integer getStandardMethodId(String code); |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.mapper; |
| | | |
| | | 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.ruoyi.framework.mybatis_config.MyBaseMapper; |
| | | import com.ruoyi.inspect.pojo.StandardMethod; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * @author Administrator |
| | | * @description é对表ãstandard_method(æ åæ¹æ³)ãçæ°æ®åºæä½Mapper |
| | | * @createDate 2024-03-03 19:21:41 |
| | | * @Entity com.ruoyi.basic.pojo.StandardMethod |
| | | */ |
| | | public interface StandardMethodMapper extends MyBaseMapper<StandardMethod> { |
| | | |
| | | IPage<StandardMethod> selectStandardMethodList(Page page, @Param("ew") QueryWrapper<StandardMethod> ew); |
| | | |
| | | StandardMethod selectStandMethodById(Integer id); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ruoyi.inspect.pojo.StandardProductList; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author Administrator |
| | | * @description é对表ãstandard_product_list(æ åæ ä¸çæ£éªé¡¹ç®)ãçæ°æ®åºæä½Mapper |
| | | * @createDate 2024-03-05 10:33:29 |
| | | * @Entity com.ruoyi.basic.pojo.StandardProductList |
| | | */ |
| | | public interface StandardProductListMapper extends BaseMapper<StandardProductList> { |
| | | |
| | | IPage<StandardProductList> standardProductListIPage(@Param("id") Integer id, @Param("tree") String tree, IPage<StandardProductList> page, @Param("laboratory") String laboratory, @Param("insItem") String insItem, @Param("insItems") String insItems); |
| | | |
| | | StandardProductList getOne(@Param("standardMethodListId") Integer standardMethodListId, @Param("inspectionItem") String inspectionItem, @Param("sample") String sample, @Param("inspectionItemSubclass") String inspectionItemSubclass, @Param("model") String model, @Param("inspectionItemClass") String inspectionItemClass); |
| | | |
| | | List<StandardProductList> selectDetail(@Param("standardMethodListId") Integer standardMethodListId, @Param("state") int state, @Param("model") String model, @Param("isCableTag") String isCableTag); |
| | | |
| | | List<StandardProductList> selectDetail2(@Param("standardMethodListId") Integer standardMethodListId, @Param("state") int state, @Param("tree") String tree, @Param("isCableTag") String isCableTag); |
| | | |
| | | /** |
| | | * æ¥è¯¢é¶ä»¶é¢è² |
| | | * @param partNo |
| | | * @return |
| | | */ |
| | | Map<String, String> selectPartColor(@Param("partNo") String partNo); |
| | | |
| | | /** |
| | | * åºé´ä¿®æ¹ |
| | | * @param productList |
| | | * @return |
| | | */ |
| | | void updateSection(@Param("productList") StandardProductList productList); |
| | | |
| | | |
| | | /** |
| | | * ä»ä¸å¾ä¸ä¿®æ¹é¡ºåº |
| | | * @param beginIndex å¼å§ä½ç½® |
| | | * @param endIndex ç»æä½ç½® |
| | | * @param methodId æ åid |
| | | * @param tree æ |
| | | */ |
| | | void updateSortUp(@Param("beginIndex") Integer beginIndex, |
| | | @Param("endIndex") Integer endIndex, |
| | | @Param("methodId") Integer methodId, |
| | | @Param("tree") String tree); |
| | | |
| | | /** |
| | | * ä»ä¸ç½ä¸ä¿®æ¹é¡ºåº |
| | | * @param beginIndex |
| | | * @param endIndex |
| | | * @param methodId |
| | | * @param tree |
| | | */ |
| | | void updateSortDown(@Param("beginIndex") Integer beginIndex, |
| | | @Param("endIndex") Integer endIndex, |
| | | @Param("methodId") Integer methodId, |
| | | @Param("tree") String tree); |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.inspect.pojo.StandardProductListSupplierAsk; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * æ£éªé¡¹ç®åå®¶å¯åº¦ç»å®è¡¨ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-09-23 |
| | | */ |
| | | @Mapper |
| | | public interface StandardProductListSupplierAskMapper extends BaseMapper<StandardProductListSupplierAsk> { |
| | | |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.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.inspect.pojo.StandardTemplate; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * @author Administrator |
| | | * @description é对表ãstandard_template(æ 忍¡æ¿)ãçæ°æ®åºæä½Mapper |
| | | * @createDate 2024-03-11 13:47:52 |
| | | * @Entity com.ruoyi.basic.pojo.StandardTemplate |
| | | */ |
| | | public interface StandardTemplateMapper extends BaseMapper<StandardTemplate> { |
| | | |
| | | IPage<StandardTemplate> selectStandardTemplatePageList(Page page, @Param("ew") QueryWrapper<StandardTemplate> ew); |
| | | |
| | | StandardTemplate getStandTempIdByName(String name); |
| | | |
| | | /** |
| | | * æ¥è¯¢å缩åçæ°æ® |
| | | * @param templateId |
| | | * @return |
| | | */ |
| | | String selectCompressThing(Integer templateId); |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.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.inspect.dto.*; |
| | | import com.ruoyi.inspect.pojo.IfsInventoryQuantity; |
| | | import com.ruoyi.inspect.pojo.StandardMethodList; |
| | | import com.ruoyi.inspect.pojo.StandardProductList; |
| | | import com.ruoyi.inspect.pojo.StandardTree; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author Administrator |
| | | * @description é对表ãstandard_tree(æ åæ )ãçæ°æ®åºæä½Mapper |
| | | * @createDate 2024-03-01 15:06:44 |
| | | * @Entity com.ruoyi.basic.pojo.StandardTree |
| | | */ |
| | | public interface StandardTreeMapper extends BaseMapper<StandardTree> { |
| | | |
| | | List<FactoryDto> selectStandardTreeList(); |
| | | |
| | | List<StandardTree> selectStandardTreeList2(String sampleType); |
| | | |
| | | StandardProductList selectStandardProductById(Integer id); |
| | | |
| | | List<StandardProductList> getStandardProductListBySample(String sampleType); |
| | | |
| | | List<StandardMethodList> getStandardMethodListBySample(String sampleType); |
| | | |
| | | List<StandardProductList> selectStandardProductListByTree(String tree, String sample, String model, String trees, String laboratory); |
| | | |
| | | List<StandardProductList> selectStandardProductListByTree2(String tree, String sample, String model, String trees, String laboratory); |
| | | |
| | | |
| | | List<SampleTypeDto> getStandardTree2(); |
| | | |
| | | List<SampleDto> getStandardTree3(String sampleType); |
| | | |
| | | |
| | | String getLaboratory(String str); |
| | | |
| | | Integer getStructureItemParameterId(String sampleType, String item, String itemChild, String inspectionItemClass); |
| | | |
| | | List<ProductDto> selectPList(String name); |
| | | |
| | | String selSample(String sample); |
| | | |
| | | List<FactoryDto> selectStandardTreeListByPartNo(@Param("partNo") String partNo); |
| | | |
| | | IPage<IfsInventoryQuantity> selectIfsPage(IPage<IfsInventoryQuantity> page, |
| | | @Param("ew") QueryWrapper<IfsInventoryQuantity> ew); |
| | | |
| | | IPage<IfsInventoryQuantityDto> getIfsByStateOne(IPage<IfsInventoryQuantityDto> page, |
| | | @Param("ew") QueryWrapper<IfsInventoryQuantityDto> ew); |
| | | |
| | | |
| | | IPage<IfsInventoryQuantityCheckDto> selectIfsInventoryQuantity(Page<IfsInventoryQuantityCheckDto> page, @Param("ew")QueryWrapper<IfsInventoryQuantityCheckDto> ew); |
| | | |
| | | /** |
| | | * åææ¥æ£æ¥è¯¢å
¨é¨(å页) |
| | | * @param page |
| | | * @param ew |
| | | * @return |
| | | */ |
| | | IPage<IfsInventoryQuantitySupplierDto> getIfsByOver(Page<IfsInventoryQuantitySupplierDto> page, @Param("ew") QueryWrapper<IfsInventoryQuantitySupplierDto> ew, @Param("beginDeclareDate") String beginDeclareDate, @Param("endDeclareDate")String endDeclareDate); |
| | | |
| | | /** |
| | | * åææ¥æ£æ¥è¯¢å
¨é¨(æ å页) |
| | | * @param ew |
| | | * @return |
| | | */ |
| | | List<IfsInventoryQuantitySupplierDto> getIfsByOverList(@Param("ew") QueryWrapper<IfsInventoryQuantitySupplierDto> ew, @Param("beginDeclareDate") String beginDeclareDate, @Param("endDeclareDate")String endDeclareDate); |
| | | |
| | | /** |
| | | * åæææ¥è¯¢å£åº¦æ£éª |
| | | * @param page |
| | | * @param |
| | | * @param beginDeclareDate |
| | | * @param endDeclareDate |
| | | * @return |
| | | */ |
| | | IPage<IfsInventoryQuantitySupplierDto> getIfsByQuarter(Page<IfsInventoryQuantitySupplierDto> page, @Param("ew") QueryWrapper<IfsInventoryQuantitySupplierDto> ew, @Param("beginDeclareDate") String beginDeclareDate, @Param("endDeclareDate")String endDeclareDate); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.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.inspect.dto.TestItemDto; |
| | | import com.ruoyi.inspect.pojo.StructureItemParameter; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * æ£éªé¡¹ç®åæ°(StructureItemParameter)è¡¨æ°æ®åºè®¿é®å± |
| | | * |
| | | * @author makejava |
| | | * @since 2024-02-26 16:21:17 |
| | | */ |
| | | public interface StructureItemParameterMapper extends BaseMapper<StructureItemParameter> { |
| | | |
| | | IPage<StructureItemParameter> selectItemParameterList(Page page, @Param("ew") QueryWrapper<StructureItemParameter> ew); |
| | | |
| | | List<Map<String, Object>> getInsProduction(); |
| | | |
| | | List<TestItemDto> getItemTree(); |
| | | |
| | | int removeNoSample(@Param("sample") String sample); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.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.inspect.dto.PageTestObjectDto; |
| | | import com.ruoyi.inspect.pojo.StructureTestObject; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * æ£æµå¯¹è±¡(StructureTestObject)è¡¨æ°æ®åºè®¿é®å± |
| | | * |
| | | * @author makejava |
| | | * @since 2024-02-26 17:36:41 |
| | | */ |
| | | public interface StructureTestObjectMapper extends BaseMapper<StructureTestObject> { |
| | | |
| | | IPage<PageTestObjectDto> selectTestObjectList(Page page, @Param("ew") QueryWrapper<PageTestObjectDto> ew, @Param("partNo") String partNo); |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.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.inspect.pojo.StructureTestObjectPart; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * æ£éªå¯¹è±¡é¶ä»¶è¡¨ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-08-07 |
| | | */ |
| | | @Mapper |
| | | public interface StructureTestObjectPartMapper extends BaseMapper<StructureTestObjectPart> { |
| | | IPage<StructureTestObjectPart> selectListByTestObjectId(Page page, @Param("ew") QueryWrapper<StructureTestObjectPart> structureTestObjectPartQueryWrapper, @Param("testObjectId") Integer testObjectId); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | @TableName(value = "certification") |
| | | @Data |
| | | public class Certification implements Serializable { |
| | | |
| | | @ApiModelProperty(value = "主é®") |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "èµè´¨åç§°") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "èµè´¨ç¼ç ") |
| | | private String code; |
| | | |
| | | @ApiModelProperty(value = "é¢åæºæ") |
| | | private String organization; |
| | | |
| | | @ApiModelProperty(value = "èµè´¨è¯´æ") |
| | | private String explanation; |
| | | |
| | | @ApiModelProperty(value = "馿¬¡é¢åæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime firstIssuanceDate; |
| | | |
| | | @ApiModelProperty(value = "æè¿é¢åæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime latestIssuanceDate; |
| | | |
| | | |
| | | |
| | | @ApiModelProperty(value = "å°æé¢åæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime expireTime; |
| | | |
| | | |
| | | @ApiModelProperty(value = "é¢å¸æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime dateOfIssuance; |
| | | |
| | | @ApiModelProperty(value = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String createUserName; |
| | | |
| | | @ApiModelProperty(value = "ä¿®æ¹äººid") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @ApiModelProperty(value = "èµè´¨å¾çå°å") |
| | | private String imageUrl; |
| | | |
| | | @ApiModelProperty(value = "èµè´¨éä»¶å°å") |
| | | private String fileUrl; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.pojo; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDateTime; |
| | | |
| | | @Data |
| | | @TableName("ifs_inventory_quantity") |
| | | @ExcelIgnoreUnannotated |
| | | public class IfsInventoryQuantity implements Serializable { |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | |
| | | @ApiModelProperty("å") |
| | | private String contract; |
| | | |
| | | @ExcelProperty(index = 13, value = "订åå·") |
| | | @ApiModelProperty("订åå·") |
| | | private String orderNo; |
| | | |
| | | @ApiModelProperty("è¡å·") |
| | | private String lineNo; |
| | | |
| | | @ApiModelProperty("ä¸è¾¾å·") |
| | | private String releaseNo; |
| | | |
| | | @ApiModelProperty("æ¥æ¶å·") |
| | | private Integer receiptNo; |
| | | |
| | | @ExcelProperty(index = 3, value = "é¶ä»¶å·") |
| | | @ApiModelProperty("é¶ä»¶å·") |
| | | private String partNo; |
| | | |
| | | @ExcelProperty(index = 4, value = "é¶ä»¶æè¿°") |
| | | @ApiModelProperty("é¶ä»¶æè¿°") |
| | | private String partDesc; |
| | | |
| | | @ApiModelProperty("ç¶ææè¿°(IFS忬æåçç¶æ)") |
| | | private String status; |
| | | |
| | | @ApiModelProperty("ç¶æ(IFS忬æåçç¶æ)") |
| | | private String statusDb; |
| | | |
| | | @ExcelProperty(index = 11, value = "æµè¾¾çéè´æ°é") |
| | | @ApiModelProperty("æµè¾¾çéè´æ°é") |
| | | private BigDecimal qtyArrived; |
| | | |
| | | @ApiModelProperty("å·²æ£éªçè´ä¹°æ°é") |
| | | private BigDecimal qtyInspected; |
| | | |
| | | @ApiModelProperty("è¦æ£éªçéè´æ°é") |
| | | private BigDecimal qtyToInspect; |
| | | |
| | | @ApiModelProperty("ä¾åºåç¼å·") |
| | | private String supplierId; |
| | | |
| | | @ExcelProperty(index = 5, value = "ä¾åºååç§°") |
| | | @ApiModelProperty("ä¾åºååç§°") |
| | | private String supplierName; |
| | | |
| | | @ApiModelProperty("æµè¾¾çåºåæ°é") |
| | | private BigDecimal invQtyInStore; |
| | | |
| | | @ApiModelProperty("æµè¾¾çéè´æ°é") |
| | | private BigDecimal purQtyInStore; |
| | | |
| | | @ApiModelProperty("é
ç½®æ è¯") |
| | | private String configurationId; |
| | | |
| | | @ApiModelProperty("æ¹å·") |
| | | private String lotBatchNo; |
| | | |
| | | @ApiModelProperty("wdrå·") |
| | | private String waivDevRejNo; |
| | | |
| | | @ApiModelProperty("æ´»å¨åºå") |
| | | private Integer activitySeq; |
| | | |
| | | @ApiModelProperty("åºåå·") |
| | | private String serialNo; |
| | | |
| | | @ApiModelProperty("åºä½å·") |
| | | private String locationNo; |
| | | |
| | | @ApiModelProperty("çæ¬å·") |
| | | private String engChgLevel; |
| | | |
| | | @ApiModelProperty("æ¥æ¶äºº") |
| | | private String receiver; |
| | | |
| | | @ApiModelProperty("æ¥æ¶äººå§å") |
| | | private String receiverName; |
| | | |
| | | @ApiModelProperty("éè´å") |
| | | private String buyerCode; |
| | | |
| | | @ApiModelProperty("éè´åå§å") |
| | | private String buyerName; |
| | | |
| | | @ApiModelProperty("å®é
å°è´§æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | private LocalDateTime arriveDate; |
| | | |
| | | @ApiModelProperty("å®é
äº¤è´§æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | private LocalDateTime deliveryDate; |
| | | |
| | | @ApiModelProperty("çäº§æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | private LocalDateTime productDate; |
| | | |
| | | @ApiModelProperty("å¤±ææ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | private LocalDateTime invalidDate; |
| | | |
| | | |
| | | @ApiModelProperty("å®¡æ¹æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | private LocalDateTime approvedDate; |
| | | |
| | | @ApiModelProperty("éè´ç³è¯·å建人") |
| | | private String reqCeater; |
| | | |
| | | @ApiModelProperty("éè´ç³è¯·å建人å§å") |
| | | private String reqCeaterName; |
| | | |
| | | @ApiModelProperty("éè´è®¢åè¡å¤æ³¨") |
| | | private String lineRemarks; |
| | | |
| | | @ExcelProperty(index = 12, value = "åä½") |
| | | @ApiModelProperty("åä½") |
| | | private String buyUnitMeas; |
| | | |
| | | @ApiModelProperty("æ¯å¦ä¸ºifsæå,0 å¦, 1æ¯") |
| | | private Integer isSource; |
| | | |
| | | private Integer number; |
| | | |
| | | |
| | | @ApiModelProperty("ç¶æ: 0:å¾
æ¥æ£, 1:å¾
æ£éª, :å·²å®¡æ ¸") |
| | | private Integer state; |
| | | |
| | | @ApiModelProperty("æ¥æ¶æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | private LocalDateTime receiverDate; |
| | | |
| | | @ApiModelProperty("æ¯å¦ä¸ºé¦æ¬¡åºç° 0 å¦ 1 æ¯") |
| | | private Integer isFirst; |
| | | |
| | | @ApiModelProperty("ç®æ åºä½å·") |
| | | private String toLocation; |
| | | |
| | | @ApiModelProperty("æ¯å¦æ¯æ¥æ£ 0 å¦ 1 æ¯") |
| | | private Integer isInspect; |
| | | |
| | | @ApiModelProperty("æ¥æ£äºº") |
| | | private String declareUser; |
| | | |
| | | |
| | | @ApiModelProperty("æ¥æ£äººid") |
| | | private Integer declareUserId; |
| | | |
| | | @ApiModelProperty("åä½") |
| | | private String partUnit; |
| | | |
| | | @ApiModelProperty("产ä¸é¾æ£æµæ°æ®") |
| | | private String industryChain; |
| | | |
| | | @ApiModelProperty("æ¥æ£æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | private LocalDateTime declareDate; |
| | | |
| | | @ApiModelProperty("æ¯å¦å¡å¯ä»¥å£åº¦æ£éª 0 å¦ 1 æ¯") |
| | | private Integer isQuarter; |
| | | |
| | | // ä¿®æ¹åç |
| | | @ExcelProperty(index = 1, value = "æ¹å·") |
| | | @ApiModelProperty("æ¹å·") |
| | | private String updateBatchNo; |
| | | |
| | | @ApiModelProperty("æ¯å¦ç»æ, 0å¦, 1æ¯") |
| | | private Integer isFinish; |
| | | |
| | | @ApiModelProperty("æ¯å¦æ¯éåä¸, 0å¦, 1æ¯") |
| | | private Integer isCopper; |
| | | |
| | | // åæ ¼ç¶æ,: 0 æ£éªä¸, 1åæ ¼, 2ä¸åæ ¼, 3æªä¸å,4è®©æ¥æ¾è¡ |
| | | @ApiModelProperty("æ£éªç¶æ") |
| | | private Integer inspectStatus; |
| | | |
| | | @ApiModelProperty("æ¯å¦éè´è®¢åç»è®°: 0å¦, 1:æ¯") |
| | | private Integer isRegister; |
| | | |
| | | @ApiModelProperty("æ¯å¦ä¿®æ¹è¿æ¹å·: 0å¦, 1:æ¯") |
| | | private Integer isUpdateBatch; |
| | | |
| | | // æ¯å¦æ¯è¿æææ: 0å¦, 1:æ¯" |
| | | @ApiModelProperty("ç©æç±»å") |
| | | private Integer isExpire; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * æ£éªæ ·å |
| | | * @TableName ins_sample |
| | | */ |
| | | @TableName(value ="ins_sample") |
| | | @Data |
| | | public class InsSample1 implements Serializable { |
| | | /** |
| | | * |
| | | */ |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 1ï¼åæ ¼ 0ï¼ä¸åæ ¼ |
| | | */ |
| | | private Integer insResult; |
| | | |
| | | /** |
| | | * å¤é®ï¼ins_order表id |
| | | */ |
| | | private Integer insOrderId; |
| | | |
| | | /** |
| | | * é
奿 ·ååå· |
| | | */ |
| | | private String joinModel; |
| | | |
| | | /** |
| | | * é
奿 ·ååç§° |
| | | */ |
| | | private String joinName; |
| | | |
| | | /** |
| | | * é
奿 ·åæ°é |
| | | */ |
| | | private Integer joinNum; |
| | | |
| | | /** |
| | | * æ ·åç¼ç |
| | | */ |
| | | private String sampleCode; |
| | | |
| | | /** |
| | | * æ£éªå·¥å |
| | | */ |
| | | private String factory; |
| | | |
| | | /** |
| | | * å®éªå®¤åç§° |
| | | */ |
| | | private String laboratory; |
| | | |
| | | /** |
| | | * æ ·åç±»å |
| | | */ |
| | | private String sampleType; |
| | | |
| | | /** |
| | | * æ ·ååç§° |
| | | */ |
| | | private String sample; |
| | | |
| | | /** |
| | | * è§æ ¼åå· |
| | | */ |
| | | private String model; |
| | | |
| | | /** |
| | | * æ£éªç¶æ(0ï¼å¾
æ£éª1:æ£éªä¸ 2:å·²æ£éª3ï¼å¾
夿 ¸4ï¼å¤æ ¸æªéè¿5ï¼å¤æ ¸éè¿) |
| | | */ |
| | | private Integer insState; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | private String remark; |
| | | |
| | | private Integer standardMethodListId; |
| | | |
| | | @ApiModelProperty("æ ·ååä½") |
| | | private String unit; |
| | | |
| | | private Integer cellId; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | private Integer parentId; |
| | | |
| | | @ApiModelProperty("æ°é") |
| | | private Integer quantity; |
| | | |
| | | @ApiModelProperty("ç¹æ®æ åæ¹æ³") |
| | | private String specialStandardMethod; |
| | | |
| | | @TableField(select = false,exist = false) |
| | | private Integer num=1; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * å®éªå®¤ç®¡ç(Laboratory)表对象 |
| | | */ |
| | | @TableName(value = "laboratory") |
| | | @Data |
| | | @NoArgsConstructor |
| | | public class Laboratory implements Serializable { |
| | | @ApiModelProperty(value = "主é®") |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "å®éªå®¤åç§°") |
| | | private String laboratoryName; |
| | | |
| | | @ApiModelProperty(value = "åºæç¼ç ") |
| | | private String laboratoryNumber; |
| | | |
| | | @ApiModelProperty(value = "å®éªå®¤ä»£å·") |
| | | private String laboratoryCode; |
| | | |
| | | @ApiModelProperty(value = "è´è´£äººçµè¯") |
| | | private String phoneNumber; |
| | | |
| | | @ApiModelProperty(value = "è´è´£äºº") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private String head; |
| | | |
| | | @ApiModelProperty(value = "å°å") |
| | | private String address; |
| | | |
| | | @ApiModelProperty(value = "å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createUserName; |
| | | |
| | | @ApiModelProperty(value = "ä¿®æ¹äººid") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * 产å表 |
| | | * @TableName product |
| | | */ |
| | | @TableName(value ="product") |
| | | @Data |
| | | public class Product implements Serializable { |
| | | /** |
| | | * |
| | | */ |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 产ååç§° |
| | | */ |
| | | private String name; |
| | | |
| | | /** |
| | | * 产ååç§°EN |
| | | */ |
| | | private String nameEn; |
| | | |
| | | @ApiModelProperty(value = "å建人id") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | |
| | | @ApiModelProperty(value = "ä¿®æ¹äººid") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | /** |
| | | * å¤é®ï¼structure_test_object表id |
| | | */ |
| | | private Integer objectId; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | @Data |
| | | @TableName("product_part") |
| | | public class ProductPart implements Serializable { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("产åid") |
| | | private Integer productId; |
| | | |
| | | @ApiModelProperty("é¶ä»¶å·") |
| | | private String partNo; |
| | | |
| | | @ApiModelProperty("é¢è²") |
| | | private String color; |
| | | |
| | | @ApiModelProperty("è²æ ") |
| | | private String colorCode; |
| | | |
| | | @ApiModelProperty(value = "å建人id") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | |
| | | @ApiModelProperty(value = "ä¿®æ¹äººid") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * 产ååå®¶å¯åº¦ç»å®è¡¨ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-09-19 |
| | | */ |
| | | @Data |
| | | @TableName("product_supplier_density") |
| | | public class ProductSupplierDensity implements Serializable { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("产åid") |
| | | private Integer productId; |
| | | |
| | | @ApiModelProperty("åå·") |
| | | private String model; |
| | | |
| | | @ApiModelProperty("åå®¶åç§°") |
| | | private String supplierName; |
| | | |
| | | @ApiModelProperty("å¯åº¦å¼") |
| | | private String densityValue; |
| | | |
| | | @ApiModelProperty(value = "å建人id") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | |
| | | @ApiModelProperty(value = "ä¿®æ¹äººid") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * å°ç« 管ç(Laboratory)表对象 |
| | | */ |
| | | |
| | | @TableName(value = "seal") |
| | | @Data |
| | | public class Seal implements Serializable { |
| | | @ApiModelProperty(value = "主é®") |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "å®éªå®¤id") |
| | | private Integer labId; |
| | | |
| | | @TableField(exist=false) |
| | | @ApiModelProperty(value = "å®éªå®¤åç§°") |
| | | private String laboratoryName; |
| | | |
| | | @ApiModelProperty(value = "å°ç« å¾ç") |
| | | private String address; |
| | | |
| | | @ApiModelProperty(value = "å°ç« ç±»å") |
| | | private String type; |
| | | |
| | | @ApiModelProperty(value = "å建人id") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * æ åæ¹æ³ |
| | | * @TableName standard_method |
| | | */ |
| | | @TableName(value ="standard_method") |
| | | @Data |
| | | public class StandardMethod implements Serializable { |
| | | /** |
| | | * |
| | | */ |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | private String field; |
| | | |
| | | @ApiModelProperty("æ£éªå¯¹è±¡") |
| | | private String structureTestObjectId; |
| | | |
| | | /** |
| | | * æ åç¼å· |
| | | */ |
| | | @ApiModelProperty(value = "æ åç¼å·") |
| | | private String code; |
| | | |
| | | /** |
| | | * æ åæ¹æ³ |
| | | */ |
| | | @ApiModelProperty(value = "æ åæè¿°") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "æ åæè¿°EN") |
| | | private String nameEn; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "èµè´¨") |
| | | private String qualificationId; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦äº§åæ å") |
| | | private Integer isProduct; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å¯ç¨") |
| | | private Integer isUse; |
| | | |
| | | @ApiModelProperty(value = "å建人id") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty(value = "ä¿®æ¹äººid") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty(value = "å建人") |
| | | @TableField(exist = false,select = false) |
| | | private String createUserName; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | @TableField(exist = false,select = false) |
| | | private String updateUserName; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * æ åæ ä¸çæ åå表 |
| | | * @TableName standard_method_list |
| | | */ |
| | | @TableName(value ="standard_method_list") |
| | | @Data |
| | | public class StandardMethodList implements Serializable { |
| | | /** |
| | | * |
| | | */ |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | /** |
| | | * æ åç¼å· |
| | | */ |
| | | @ApiModelProperty("æ åç¼å·") |
| | | private String code; |
| | | |
| | | /** |
| | | * æ ååç§° |
| | | */ |
| | | @ApiModelProperty("æ åç§°å·") |
| | | private String name; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty("夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty("å·¥å") |
| | | private String factory; |
| | | |
| | | @ApiModelProperty("å®éªå®¤") |
| | | private String laboratory; |
| | | |
| | | @ApiModelProperty("æ ·ååç±»") |
| | | private String sampleType; |
| | | |
| | | @ApiModelProperty("æ ·å") |
| | | private String sample; |
| | | |
| | | @ApiModelProperty("åå·") |
| | | private String model; |
| | | |
| | | @ApiModelProperty("") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @TableField(exist = false) |
| | | private String createUserName; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty("") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty("ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * æ åæ ä¸çæ£éªé¡¹ç® |
| | | * @TableName standard_product_list |
| | | */ |
| | | @TableName(value ="standard_product_list") |
| | | @Data |
| | | public class StandardProductList implements Serializable { |
| | | /** |
| | | * 主é®id |
| | | */ |
| | | @TableId(value = "id",type = IdType.ASSIGN_ID) |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long id; |
| | | |
| | | /** |
| | | * æ£éªé¡¹ |
| | | */ |
| | | @ApiModelProperty("æ£éªé¡¹") |
| | | private String inspectionItem; |
| | | |
| | | @ApiModelProperty("æ£éªé¡¹EN") |
| | | private String inspectionItemEn; |
| | | |
| | | /** |
| | | * æ£éªé¡¹å°ç±» |
| | | */ |
| | | @ApiModelProperty("æ£éªé¡¹å°ç±»") |
| | | private String inspectionItemSubclass; |
| | | |
| | | @ApiModelProperty("æ£éªé¡¹å°ç±»EN") |
| | | private String inspectionItemSubclassEn; |
| | | |
| | | /** |
| | | * å®éªå®¤ |
| | | */ |
| | | @ApiModelProperty("å®éªå®¤") |
| | | private String laboratory; |
| | | |
| | | @ApiModelProperty("åå®éªå®¤") |
| | | private String sonLaboratory; |
| | | |
| | | /** |
| | | * 计éåä½ |
| | | */ |
| | | @ApiModelProperty("计éåä½") |
| | | private String unit; |
| | | |
| | | /** |
| | | * åä»·(å
) |
| | | */ |
| | | @ApiModelProperty("åä»·") |
| | | private String price; |
| | | |
| | | /** |
| | | * å·¥æ¶(H) |
| | | */ |
| | | @ApiModelProperty("å·¥æ¶") |
| | | private String manHour; |
| | | |
| | | /** |
| | | * å·¥æ¶åç» |
| | | */ |
| | | @ApiModelProperty("å·¥æ¶åç»") |
| | | private String manHourGroup; |
| | | |
| | | /** |
| | | * æ£éªé¡¹ç±»å |
| | | */ |
| | | @ApiModelProperty("æ£éªé¡¹ç±»å") |
| | | private String inspectionItemType; |
| | | |
| | | /** |
| | | * æ£éªå¼ç±»å |
| | | */ |
| | | @ApiModelProperty("æ£éªå¼ç±»å") |
| | | private String inspectionValueType; |
| | | |
| | | /** |
| | | * æ£éªæ¬¡æ° |
| | | */ |
| | | @ApiModelProperty("æ£éªæ¬¡æ°") |
| | | private Integer checkoutNumber; |
| | | |
| | | /** |
| | | * åºé´ |
| | | */ |
| | | @ApiModelProperty("åºé´") |
| | | private String section; |
| | | |
| | | /** |
| | | * åºé´ |
| | | */ |
| | | @ApiModelProperty("è¯æ°åºé´") |
| | | private String cores; |
| | | |
| | | /** |
| | | * æ¹æ³ |
| | | */ |
| | | @ApiModelProperty("æ¹æ³å表") |
| | | private String method; |
| | | |
| | | @ApiModelProperty("æ¹æ³") |
| | | private String methodS; |
| | | |
| | | /** |
| | | * é¢è®¡æ¶é´(天) |
| | | */ |
| | | @ApiModelProperty("é¢è®¡æ¶é´") |
| | | private Integer manDay; |
| | | |
| | | /** |
| | | * ç¹æ®æ è¯ |
| | | */ |
| | | @ApiModelProperty("ç¹æ®æ è¯") |
| | | private String bsm; |
| | | |
| | | /** |
| | | * è¦æ±å¼ |
| | | */ |
| | | @ApiModelProperty("è¦æ±å¼") |
| | | private String ask; |
| | | |
| | | @ApiModelProperty("è¦æ±æè¿°") |
| | | private String tell; |
| | | |
| | | /** |
| | | * å¤é®ï¼æ åæ¹æ³id |
| | | */ |
| | | @ApiModelProperty("æ åæ¹æ³id") |
| | | private Integer standardMethodListId; |
| | | |
| | | @ApiModelProperty("å·¥å") |
| | | private String factory; |
| | | |
| | | @ApiModelProperty("æ ·ååç±»") |
| | | private String sampleType; |
| | | |
| | | @ApiModelProperty("æ ·å") |
| | | private String sample; |
| | | |
| | | @ApiModelProperty("åå·") |
| | | private String model; |
| | | |
| | | @ApiModelProperty("åå·") |
| | | private Integer templateId; |
| | | |
| | | @ApiModelProperty("") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty("") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty("ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @ApiModelProperty("1ï¼ææ 0ï¼æ æ") |
| | | private Integer state; |
| | | |
| | | private String dic; |
| | | |
| | | private String tree; |
| | | |
| | | private Integer structureItemParameterId; |
| | | |
| | | @ApiModelProperty(value = "æ£éªé¡¹åç±»") |
| | | private String inspectionItemClass; |
| | | |
| | | @ApiModelProperty(value = "æ£éªé¡¹åç±»EN") |
| | | private String inspectionItemClassEn; |
| | | |
| | | @ApiModelProperty(value = "æ¡ä»¶") |
| | | private String radius; |
| | | |
| | | @ApiModelProperty(value = "æ¡ä»¶å表") |
| | | private String radiusList; |
| | | |
| | | @ApiModelProperty(value = "æ¶è´¹æ å(å
/次)") |
| | | private String rates; |
| | | |
| | | @ApiModelProperty(value = "ç´¢å¼é¡ºåº") |
| | | private Integer sort; |
| | | |
| | | /** |
| | | * å¯¼ä½æè´¨ |
| | | */ |
| | | @ApiModelProperty("å¯¼ä½æè´¨") |
| | | private String conductorMaterial; |
| | | |
| | | /** |
| | | * 导ä½ç±»å |
| | | */ |
| | | @ApiModelProperty("导ä½ç±»å") |
| | | private String conductorType; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * æ£éªé¡¹ç®åå®¶å¯åº¦ç»å®è¡¨ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-09-23 |
| | | */ |
| | | @TableName(value ="standard_product_list_supplier_ask") |
| | | @Data |
| | | public class StandardProductListSupplierAsk { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer supplierAskId; |
| | | |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | @ApiModelProperty("æ£éªé¡¹ç®id") |
| | | private Long productListId; |
| | | |
| | | @ApiModelProperty("åå®¶åç§°") |
| | | private String supplierName; |
| | | |
| | | @ApiModelProperty("è¦æ±å¼") |
| | | private String ask; |
| | | |
| | | @ApiModelProperty("è¦æ±æè¿°") |
| | | private String tell; |
| | | |
| | | @ApiModelProperty(value = "å建人id") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | |
| | | @ApiModelProperty(value = "ä¿®æ¹äººid") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * æ 忍¡æ¿ |
| | | * @TableName standard_template |
| | | */ |
| | | @TableName(value ="standard_template") |
| | | @Data |
| | | public class StandardTemplate implements Serializable { |
| | | /** |
| | | * |
| | | */ |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 模æ¿åç§° |
| | | */ |
| | | @ApiModelProperty("模æ¿åç§°") |
| | | private String name; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty("夿³¨") |
| | | private String remark; |
| | | |
| | | /** |
| | | * 模æ¿ç»æ |
| | | */ |
| | | private String thing; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | /** |
| | | * |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty("ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @ApiModelProperty("åå»ºç¨æ·") |
| | | @TableField(exist = false) |
| | | private String createUserName; |
| | | |
| | | @ApiModelProperty("æ´æ°ç¨æ·") |
| | | @TableField(exist = false) |
| | | private String updateUserName; |
| | | |
| | | /** |
| | | * 模æ¿ç¼å· |
| | | */ |
| | | @ApiModelProperty("模æ¿ç¼å·") |
| | | private String number; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.hibernate.validator.constraints.Length; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.Size; |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * æ åæ |
| | | * @TableName standard_tree |
| | | */ |
| | | @TableName(value ="standard_tree") |
| | | @Data |
| | | public class StandardTree implements Serializable { |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @NotNull(message="[]ä¸è½ä¸ºç©º") |
| | | @ApiModelProperty("") |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | /** |
| | | * å·¥å |
| | | */ |
| | | @Size(max= 255,message="ç¼ç é¿åº¦ä¸è½è¶
è¿255") |
| | | @ApiModelProperty("å·¥å") |
| | | @Length(max= 255,message="ç¼ç é¿åº¦ä¸è½è¶
è¿255") |
| | | private String factory; |
| | | /** |
| | | * å®éªå®¤ |
| | | */ |
| | | @Size(max= 255,message="ç¼ç é¿åº¦ä¸è½è¶
è¿255") |
| | | @ApiModelProperty("å®éªå®¤") |
| | | @Length(max= 255,message="ç¼ç é¿åº¦ä¸è½è¶
è¿255") |
| | | private String laboratory; |
| | | /** |
| | | * æ ·å大类 |
| | | */ |
| | | @Size(max= 255,message="ç¼ç é¿åº¦ä¸è½è¶
è¿255") |
| | | @ApiModelProperty("æ ·å大类") |
| | | @Length(max= 255,message="ç¼ç é¿åº¦ä¸è½è¶
è¿255") |
| | | private String sampleType; |
| | | /** |
| | | * æ ·å |
| | | */ |
| | | @Size(max= 255,message="ç¼ç é¿åº¦ä¸è½è¶
è¿255") |
| | | @ApiModelProperty("æ ·å") |
| | | @Length(max= 255,message="ç¼ç é¿åº¦ä¸è½è¶
è¿255") |
| | | private String sample; |
| | | /** |
| | | * åå· |
| | | */ |
| | | @Size(max= 255,message="ç¼ç é¿åº¦ä¸è½è¶
è¿255") |
| | | @ApiModelProperty("åå·") |
| | | @Length(max= 255,message="ç¼ç é¿åº¦ä¸è½è¶
è¿255") |
| | | private String model; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty("") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty("") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty("ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | /** |
| | | * ä¿®æ¹ååç§° |
| | | */ |
| | | @TableField(exist = false,select = false) |
| | | private String oldModel; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * æ£éªé¡¹ç®åæ°(StructureItemParameter)表对象 |
| | | * |
| | | * @author makejava |
| | | * @since 2024-02-26 16:21:17 |
| | | */ |
| | | @TableName(value ="structure_item_parameter") |
| | | @Data |
| | | public class StructureItemParameter implements Serializable { |
| | | @ApiModelProperty(value = "主é®") |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "æ£éªé¡¹") |
| | | private String inspectionItem; |
| | | |
| | | @ApiModelProperty(value = "æ£éªé¡¹EN") |
| | | private String inspectionItemEn; |
| | | |
| | | @ApiModelProperty(value = "æ£éªå项") |
| | | private String inspectionItemSubclass; |
| | | |
| | | @ApiModelProperty(value = "æ£éªå项EN") |
| | | private String inspectionItemSubclassEn; |
| | | |
| | | @ApiModelProperty(value = "æ£éªå¯¹è±¡") |
| | | private String sample; |
| | | |
| | | @ApiModelProperty(value = "åä»·(å
)") |
| | | private String price; |
| | | |
| | | @ApiModelProperty(value = "åºæ") |
| | | private String laboratory; |
| | | |
| | | @ApiModelProperty(value = "è¯éªå®¤") |
| | | private String sonLaboratory; |
| | | |
| | | @ApiModelProperty(value = "è¦æ±æè¿°") |
| | | private String askTell; |
| | | |
| | | @ApiModelProperty(value = "è¦æ±å¼") |
| | | private String ask; |
| | | |
| | | @ApiModelProperty(value = "计éåä½") |
| | | private String unit; |
| | | |
| | | @ApiModelProperty(value = "è¯éªæ¹æ³") |
| | | private String method; |
| | | |
| | | @ApiModelProperty(value = "å·¥æ¶(H)") |
| | | private Double manHour; |
| | | |
| | | @ApiModelProperty(value = "é¢è®¡æ¶é´(H)") |
| | | private Integer manDay; |
| | | |
| | | @ApiModelProperty(value = "å·¥æ¶åç»") |
| | | private String manHourGroup; |
| | | |
| | | @ApiModelProperty(value = "æ£éªé¡¹ç±»å") |
| | | private String inspectionItemType; |
| | | |
| | | @ApiModelProperty(value = "æ£éªå¼ç±»å") |
| | | private String inspectionValueType; |
| | | |
| | | @ApiModelProperty(value = "æ£éªæ¬¡æ°") |
| | | private Integer checkoutNumber; |
| | | |
| | | @ApiModelProperty(value = "åºé´") |
| | | private String section; |
| | | |
| | | @ApiModelProperty(value = "ç¹æ®æ è¯") |
| | | private String bsm; |
| | | |
| | | @ApiModelProperty(value = "åå§è®°å½æ¨¡æ¿") |
| | | private Integer templateId; |
| | | |
| | | @ApiModelProperty(value = "å建人id") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty(value = "ä¿®æ¹äººid") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @ApiModelProperty(value = "åå
¸ç±»å") |
| | | private String dic; |
| | | |
| | | @ApiModelProperty(value = "æ£éªé¡¹åç±»") |
| | | private String inspectionItemClass; |
| | | |
| | | @ApiModelProperty(value = "æ£éªé¡¹åç±»EN") |
| | | private String inspectionItemClassEn; |
| | | |
| | | @ApiModelProperty(value = "æ¡ä»¶") |
| | | private String radiusList; |
| | | |
| | | @ApiModelProperty(value = "æ¶è´¹æ å(å
/次)") |
| | | private String rates; |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * æ£æµå¯¹è±¡(StructureTestObject)表对象 |
| | | * |
| | | * @author makejava |
| | | * @since 2024-02-26 17:36:41 |
| | | */ |
| | | @TableName(value ="structure_test_object") |
| | | @Data |
| | | public class StructureTestObject implements Serializable { |
| | | @ApiModelProperty(value = "主é®") |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "åºæ") |
| | | private Integer laboratoryId; |
| | | |
| | | @ApiModelProperty(value = "æ£éªå¯¹è±¡") |
| | | private String specimenName; |
| | | |
| | | @ApiModelProperty(value = "æ£éªå¯¹è±¡EN") |
| | | private String specimenNameEn; |
| | | |
| | | @ApiModelProperty(value = "对象代å·") |
| | | private String code; |
| | | |
| | | @ApiModelProperty(value = "å建人id") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty(value = "ä¿®æ¹äººid") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @ApiModelProperty(value = "æåº") |
| | | private Integer sort; |
| | | |
| | | //"对象类å, 1:åææ, 2:æå, 3:è¾
æ" |
| | | @ApiModelProperty(value = "对象类å") |
| | | private String objectType; |
| | | |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * æ£éªå¯¹è±¡é¶ä»¶è¡¨(StructureTestObjectPart)$desc |
| | | * |
| | | * @author makejava |
| | | * @since 2024-08-07 10:10:30 |
| | | */ |
| | | @TableName(value ="structure_test_object_part") |
| | | @Data |
| | | public class StructureTestObjectPart implements Serializable { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("æ£éªå¯¹è±¡id") |
| | | private Integer testObjectId; |
| | | |
| | | @ApiModelProperty("é¶ä»¶å·") |
| | | private String partNo; |
| | | |
| | | @ApiModelProperty("é¢è²") |
| | | private String color; |
| | | |
| | | @ApiModelProperty("è²æ ") |
| | | private String colorCode; |
| | | |
| | | @ApiModelProperty(value = "å建人id") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | |
| | | @ApiModelProperty(value = "ä¿®æ¹äººid") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.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.inspect.dto.PageTestObjectDto; |
| | | import com.ruoyi.inspect.dto.TestItemDto; |
| | | |
| | | import com.ruoyi.inspect.pojo.StructureItemParameter; |
| | | import com.ruoyi.inspect.pojo.StructureTestObject; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * æ£éªé¡¹ç®åæ°(StructureItemParameter)表æå¡æ¥å£ |
| | | * |
| | | * @author makejava |
| | | * @since 2024-02-26 16:21:17 |
| | | */ |
| | | public interface CapacityScopeService extends IService<StructureItemParameter> { |
| | | |
| | | IPage<StructureItemParameter> selectItemParameterList(Page page, StructureItemParameter itemParameter); |
| | | |
| | | int addItemParameter(StructureItemParameter itemParameter); |
| | | |
| | | int delItemParameter(Integer id); |
| | | |
| | | int upItemParameter(StructureItemParameter itemParameter); |
| | | |
| | | IPage<PageTestObjectDto> selectTestObjectList(Page page, PageTestObjectDto pageTestObjectDto); |
| | | |
| | | int addTestObject(StructureTestObject testObject); |
| | | |
| | | int delTestObject(Integer id); |
| | | |
| | | int upTestObject(StructureTestObject testObject); |
| | | |
| | | List<StructureTestObject> selectTestObjectByName(); |
| | | |
| | | //设å¤éé¢éæ©æ£éªé¡¹ç®(æ å½¢ç»æ) |
| | | List<Map<String, Object>> getInsProduction(); |
| | | |
| | | List<TestItemDto> getItemTree(); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.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.inspect.pojo.Certification; |
| | | |
| | | public interface CertificationService extends IService<Certification> { |
| | | //æ¥è¯¢èµè´¨æç»å表 |
| | | IPage<Certification> getCertificationDetail(Page page, Certification certification); |
| | | |
| | | //æ·»å èµè´¨æç»å表 |
| | | int addCertificationDetail(Certification certification); |
| | | |
| | | //å é¤èµè´¨æç»å表 |
| | | int delCertificationDetail(String ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.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.inspect.pojo.Laboratory; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * å®éªå®¤ç®¡ç(Laboratory)表æå¡æ¥å£ |
| | | */ |
| | | public interface LaboratoryService extends IService<Laboratory> { |
| | | |
| | | IPage<Laboratory> selectItemParameter(Page page, Laboratory itemParameter); |
| | | |
| | | int addParameter(Laboratory itemParameter); |
| | | |
| | | int delParameter(Integer id); |
| | | |
| | | int upParameter(Laboratory itemParameter); |
| | | |
| | | List<Laboratory> obtainItemParameterList(); |
| | | |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.inspect.pojo.ProductPart; |
| | | |
| | | public interface ProductPartService extends IService<ProductPart> { |
| | | |
| | | IPage<ProductPart> selectByProductId(IPage<ProductPart> page,ProductPart productPart); |
| | | |
| | | void addProductPart(ProductPart productPart); |
| | | |
| | | void updateProductPartById(ProductPart productPart); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.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.inspect.dto.ProductDTO1; |
| | | import com.ruoyi.inspect.excel.StructureTestObjectData; |
| | | import com.ruoyi.inspect.pojo.Product; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author z1292 |
| | | * @description é对表ãproduct(产å表)ãçæ°æ®åºæä½Service |
| | | * @createDate 2024-04-26 01:11:02 |
| | | */ |
| | | public interface ProductService extends IService<Product> { |
| | | |
| | | IPage<Product> selectProductListByObjectId(Page page, ProductDTO1 productDto); |
| | | |
| | | int addProduct(Product product); |
| | | |
| | | int upProduct(Product product); |
| | | |
| | | int delProduct(Integer id); |
| | | |
| | | void importPartExcel(List<StructureTestObjectData> list); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.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.inspect.pojo.ProductSupplierDensity; |
| | | |
| | | /** |
| | | * 产ååå®¶å¯åº¦ç»å®è¡¨ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-09-19 |
| | | */ |
| | | public interface ProductSupplierDensityService extends IService<ProductSupplierDensity> { |
| | | |
| | | IPage<ProductSupplierDensity> selectByProductId(Page page, ProductSupplierDensity supplierDensity); |
| | | |
| | | void addProductSupplierDensity(ProductSupplierDensity supplierDensity); |
| | | |
| | | void updateProductSupplierDensity(ProductSupplierDensity supplierDensity); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.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.inspect.pojo.Laboratory; |
| | | import com.ruoyi.inspect.pojo.Seal; |
| | | |
| | | import java.util.List; |
| | | |
| | | public interface SealService extends IService<Seal> { |
| | | |
| | | //æ°å¢ |
| | | int addSeal(Seal seal); |
| | | |
| | | //æ¥è¯¢ |
| | | IPage<Seal> selectSeal(Page page, Seal seal); |
| | | |
| | | List<Laboratory> Laboratory(Integer id); |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.inspect.pojo.StandardMethodList; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author Administrator |
| | | * @description é对表ãstandard_method_list(æ åæ ä¸çæ åå表)ãçæ°æ®åºæä½Service |
| | | * @createDate 2024-03-04 13:44:04 |
| | | */ |
| | | public interface StandardMethodListService extends IService<StandardMethodList> { |
| | | |
| | | int addStandardMethodList(Integer standardId, String tree); |
| | | |
| | | Map<String, List<?>> selectsStandardMethodByFLSSM(String tree); |
| | | |
| | | Map<String, List<?>> selectsStandardMethodByFLSSM2(String tree); |
| | | |
| | | int delStandardMethodByFLSSM(Integer id); |
| | | |
| | | List<StandardMethodList> selectStandardMethodEnum(); |
| | | |
| | | Integer getStandardMethodId(String code); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.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.inspect.pojo.StandardMethod; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author Administrator |
| | | * @description é对表ãstandard_method(æ åæ¹æ³)ãçæ°æ®åºæä½Service |
| | | * @createDate 2024-03-03 19:21:41 |
| | | */ |
| | | public interface StandardMethodService extends IService<StandardMethod> { |
| | | |
| | | IPage<StandardMethod> selectStandardMethodList(Page page, StandardMethod standardMethod); |
| | | |
| | | List<StandardMethod> selectStandardMethods(); |
| | | |
| | | int addStandardMethod(StandardMethod standardMethod); |
| | | |
| | | int delStandardMethod(Integer id); |
| | | |
| | | int upStandardMethod(StandardMethod standardMethod); |
| | | |
| | | void inputExcel(MultipartFile file) throws IOException; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.inspect.dto.CopyStandardProductListDto; |
| | | import com.ruoyi.inspect.dto.InsSampleReceiveDto; |
| | | import com.ruoyi.inspect.dto.ResetTreeDragDTO; |
| | | import com.ruoyi.inspect.pojo.StandardProductList; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author Administrator |
| | | * @description é对表ãstandard_product_list(æ åæ ä¸çæ£éªé¡¹ç®)ãçæ°æ®åºæä½Service |
| | | * @createDate 2024-03-05 10:33:29 |
| | | */ |
| | | public interface StandardProductListService extends IService<StandardProductList> { |
| | | |
| | | int upStandardProductList(StandardProductList list); |
| | | |
| | | int delStandardProduct(JSONArray list); |
| | | |
| | | List<StandardProductList> selectStandardProductList(InsSampleReceiveDto insSample); |
| | | |
| | | Map<String, Object> selectStandardProductListByMethodId(Integer id, String tree, Integer page); |
| | | |
| | | IPage<StandardProductList> selectStandardProductByMethodId(Integer id, String tree, Integer page, String laboratory, String item, String items); |
| | | |
| | | Map<String, List<?>> selectStandardProductEnumByMethodId(Integer id, String tree, String item); |
| | | |
| | | boolean updateSection(StandardProductList list); |
| | | |
| | | /** |
| | | * æ ååºææ½ |
| | | * @param resetTreeDragDTO |
| | | */ |
| | | void resetTreeDrag(ResetTreeDragDTO resetTreeDragDTO); |
| | | |
| | | /** |
| | | * æ ååºææ½ |
| | | * @param standardProductLists |
| | | */ |
| | | void resetTreeDragBatch(List<StandardProductList> standardProductLists); |
| | | |
| | | /** |
| | | * æ£éªé¡¹è¦æ±å¼å¯¹æ¯ |
| | | * @param copyStandardProductListDto |
| | | * @return |
| | | */ |
| | | List<StandardProductList> copyStandardProductList(CopyStandardProductListDto copyStandardProductListDto); |
| | | |
| | | /** |
| | | * æ£éªé¡¹è¦æ±å¼å¯¹æ¯ä¸ä¸ª |
| | | * @param copyStandardProductListDto |
| | | * @return |
| | | */ |
| | | List<StandardProductList> copyStandardProductOne(CopyStandardProductListDto copyStandardProductListDto); |
| | | |
| | | /** |
| | | * æ£éªé¡¹å¤å¶æåº |
| | | * @param copyStandardProductListDto |
| | | * @return |
| | | */ |
| | | boolean copyStandardProductSort(CopyStandardProductListDto copyStandardProductListDto); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.inspect.pojo.StandardProductList; |
| | | |
| | | /** |
| | | * @author Administrator |
| | | * @description é对表ãstandard_product_list(æ åæ ä¸çæ£éªé¡¹ç®)ãçæ°æ®åºæä½Service |
| | | * @createDate 2024-03-05 10:33:29 |
| | | */ |
| | | public interface StandardProductListService2 extends IService<StandardProductList> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.inspect.pojo.StandardProductListSupplierAsk; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ£éªé¡¹ç®åå®¶å¯åº¦ç»å®è¡¨ |
| | | * |
| | | * @author makejava |
| | | * @since 2024-09-23 |
| | | */ |
| | | public interface StandardProductListSupplierAskService extends IService<StandardProductListSupplierAsk> { |
| | | |
| | | List<StandardProductListSupplierAsk> selectByProductId(StandardProductListSupplierAsk supplierAsk); |
| | | |
| | | Integer addProductSupplierAsk(StandardProductListSupplierAsk supplierAsk); |
| | | |
| | | Integer updateProductSupplierAsk(StandardProductListSupplierAsk supplierAsk); |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.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.inspect.pojo.StandardTemplate; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author Administrator |
| | | * @description é对表ãstandard_template(æ 忍¡æ¿)ãçæ°æ®åºæä½Service |
| | | * @createDate 2024-03-11 13:47:52 |
| | | */ |
| | | public interface StandardTemplateService extends IService<StandardTemplate> { |
| | | |
| | | IPage<StandardTemplate> selectStandardTemplatePageList(Page page, StandardTemplate standardTemplate); |
| | | |
| | | int addStandardTemplate(StandardTemplate standardTemplate); |
| | | |
| | | int upStandardTemplate(StandardTemplate standardTemplate); |
| | | |
| | | int delStandardTemplate(Integer id); |
| | | |
| | | List<StandardTemplate> getStandardTemplate(); |
| | | |
| | | String getStandTempThingById(Integer templateId); |
| | | |
| | | String getStandTempNameById(Integer templateId); |
| | | |
| | | StandardTemplate getStandTempIdByName(String name); |
| | | |
| | | int copyStandardTemplate(StandardTemplate newTemplate); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.inspect.dto.FactoryDto; |
| | | import com.ruoyi.inspect.dto.SampleTypeDto; |
| | | import com.ruoyi.inspect.pojo.StandardTree; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author Administrator |
| | | * @description é对表ãstandard_tree(æ åæ )ãçæ°æ®åºæä½Service |
| | | * @createDate 2024-03-01 15:06:44 |
| | | */ |
| | | public interface StandardTreeService extends IService<StandardTree> { |
| | | |
| | | List<FactoryDto> selectStandardTreeList(); |
| | | |
| | | |
| | | int addStandardTree(StandardTree standardTree); |
| | | |
| | | int delStandardTree(String tree); |
| | | |
| | | int addStandardProduct(String ids, String tree); |
| | | |
| | | List<SampleTypeDto> getStandardTree2(); |
| | | |
| | | int upStandardProducts(Map<String, Object> product); |
| | | |
| | | List<StandardTree> getStandTreeBySampleType(String laboratory, String sampleType); |
| | | |
| | | void inExcelOfTree(MultipartFile file); |
| | | |
| | | void resetTreeOfPrice(String tree, Integer standardId); |
| | | |
| | | void resetTreeOfHour(String tree, Integer standardId); |
| | | |
| | | void resetTreeOfAsk(String tree, Integer standardId); |
| | | |
| | | void importWorkstationExcel(MultipartFile file); |
| | | |
| | | /** |
| | | * æ åæ°æåº |
| | | * @param list |
| | | * @return |
| | | */ |
| | | boolean updateTreeSort(List<FactoryDto> list); |
| | | |
| | | int updateStandardTree(StandardTree standardTree); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.inspect.pojo.StructureItemParameter; |
| | | |
| | | public interface StructureItemParameterService extends IService<StructureItemParameter> { |
| | | void removeNoSample(String sample); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.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.inspect.pojo.StructureTestObjectPart; |
| | | |
| | | /** |
| | | * æ£éªå¯¹è±¡é¶ä»¶è¡¨ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-08-07 |
| | | */ |
| | | public interface StructureTestObjectPartService extends IService<StructureTestObjectPart> { |
| | | |
| | | IPage<StructureTestObjectPart> selectByTestObjectId(Page page, StructureTestObjectPart structureTestObjectPart); |
| | | |
| | | void addTestObjectPart(StructureTestObjectPart structureTestObjectPart); |
| | | |
| | | void updateTestObjectPart(StructureTestObjectPart structureTestObjectPart); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.inspect.pojo.StructureTestObject; |
| | | |
| | | /** |
| | | * æ£æµå¯¹è±¡(StructureTestObject)$desc |
| | | * |
| | | * @author makejava |
| | | * @since 2024-09-13 09:45:55 |
| | | */ |
| | | public interface StructureTestObjectService extends IService<StructureTestObject> { |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service.impl; |
| | | |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | 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.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.inspect.dto.PageTestObjectDto; |
| | | import com.ruoyi.inspect.dto.TestItemDto; |
| | | import com.ruoyi.inspect.mapper.*; |
| | | import com.ruoyi.inspect.pojo.*; |
| | | import com.ruoyi.inspect.service.CapacityScopeService; |
| | | import com.ruoyi.inspect.service.StandardProductListService; |
| | | import com.ruoyi.inspect.service.StructureItemParameterService; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * æ£éªé¡¹ç®åæ°(StructureItemParameter)表æå¡å®ç°ç±» |
| | | * |
| | | * @author makejava |
| | | * @since 2024-02-26 16:21:17 |
| | | */ |
| | | @Service |
| | | @AllArgsConstructor |
| | | public class CapacityScopeServiceImpl extends ServiceImpl<StructureItemParameterMapper, StructureItemParameter> implements CapacityScopeService { |
| | | |
| | | private LaboratoryMapper laboratoryMapper; |
| | | |
| | | private StructureItemParameterMapper structureItemParameterMapper; |
| | | |
| | | private StructureTestObjectMapper structureTestObjectMapper; |
| | | |
| | | private ProductMapper productMapper; |
| | | |
| | | private StructureTestObjectPartMapper structureTestObjectPartMapper; |
| | | |
| | | private ProductPartMapper productPartMapper; |
| | | |
| | | private StandardProductListService standardProductListService; |
| | | |
| | | private StandardTreeMapper standardTreeMapper; |
| | | |
| | | private StructureItemParameterService structureItemParameterService; |
| | | |
| | | @Override |
| | | public IPage<StructureItemParameter> selectItemParameterList(Page page, StructureItemParameter itemParameter) { |
| | | return structureItemParameterMapper.selectItemParameterList(page, QueryWrappers.queryWrappers(itemParameter)); |
| | | } |
| | | |
| | | @Override |
| | | public int addItemParameter(StructureItemParameter itemParameter) { |
| | | if (itemParameter.getBsm().equals("")||itemParameter.getBsm()==null){ |
| | | itemParameter.setBsm("0"); |
| | | } |
| | | int insert = structureItemParameterMapper.insert(itemParameter); |
| | | return insert; |
| | | } |
| | | |
| | | @Override |
| | | public int delItemParameter(Integer id) { |
| | | return structureItemParameterMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public int upItemParameter(StructureItemParameter itemParameter) { |
| | | return structureItemParameterMapper.updateById(itemParameter); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<PageTestObjectDto> selectTestObjectList(Page page, PageTestObjectDto pageTestObjectDto) { |
| | | String partNo = pageTestObjectDto.getPartNo(); |
| | | pageTestObjectDto.setPartNo(null); |
| | | return structureTestObjectMapper.selectTestObjectList(page, QueryWrappers.queryWrappers(pageTestObjectDto),partNo); |
| | | } |
| | | |
| | | @Override |
| | | public int addTestObject(StructureTestObject testObject) { |
| | | Long count = structureTestObjectMapper.selectCount(Wrappers.<StructureTestObject>lambdaQuery().eq(StructureTestObject::getSpecimenName, testObject.getSpecimenName())); |
| | | if(count.compareTo(0L) > 0){ |
| | | throw new BaseException("æ£éªå¯¹è±¡ä¸è½éå¤"); |
| | | } |
| | | |
| | | return structureTestObjectMapper.insert(testObject); |
| | | } |
| | | |
| | | @Override |
| | | public int delTestObject(Integer id) { |
| | | // äº§åºæ£éªå¯¹è±¡äº§åç»´æ¤ |
| | | structureTestObjectPartMapper.delete(Wrappers.<StructureTestObjectPart>lambdaQuery() |
| | | .eq(StructureTestObjectPart::getTestObjectId, id)); |
| | | |
| | | // å é¤äº§åç»´æ¤çé¶ä»¶ç»å® |
| | | List<Product> products = productMapper.selectList(Wrappers.<Product>lambdaQuery() |
| | | .eq(Product::getObjectId, id)); |
| | | List<Integer> productIds = products.stream().map(Product::getId).collect(Collectors.toList()); |
| | | productPartMapper.delete(Wrappers.<ProductPart>lambdaQuery() |
| | | .in(ProductPart::getProductId, productIds)); |
| | | |
| | | // å é¤äº§åç»´æ¤ |
| | | productMapper.delete(Wrappers.<Product>lambdaQuery() |
| | | .in(Product::getId, productIds)); |
| | | |
| | | return structureTestObjectMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public int upTestObject(StructureTestObject testObject) { |
| | | // æ¥è¯¢æ§çæ£éªå¯¹è±¡ |
| | | StructureTestObject oldTestObject = structureTestObjectMapper.selectById(testObject.getId()); |
| | | |
| | | if (!oldTestObject.getSpecimenName().equals(testObject.getSpecimenName())) { |
| | | // æ¥è¯¢ææå¯¹è±¡ä¸æ ·çæ£éªé¡¹ç® |
| | | List<StandardProductList> standardProductLists = standardProductListService.list(Wrappers.<StandardProductList>lambdaUpdate() |
| | | .eq(StandardProductList::getSampleType, oldTestObject.getSpecimenName())); |
| | | if (CollectionUtils.isNotEmpty(standardProductLists)){ |
| | | for (StandardProductList standardProductList : standardProductLists) { |
| | | // ä¿®æ¹ææç对象åç§°åæ°åç»æ |
| | | standardProductList.setSampleType(testObject.getSpecimenName()); |
| | | // éè¦æªå第ä¸çº§, é¿å
ä¸å级åç§°ä¸æ ·ä¿®æ¹é误 |
| | | String[] trees = standardProductList.getTree().split(" - "); |
| | | trees[2] = testObject.getSpecimenName(); |
| | | List<String> list = CollUtil.newArrayList(trees); |
| | | String newName = CollUtil.join(list, " - "); |
| | | standardProductList.setTree(newName); |
| | | } |
| | | standardProductListService.updateBatchById(standardProductLists); |
| | | } |
| | | // ä¿®æ¹æ£éªé¡¹ç®åæ°çæ£éªå¯¹è±¡ |
| | | // æ¼æ¥ ["object", æ¥è¯¢æ£éªé¡¹ç®åæ°ä¿®æ¹ç»å®çæ£éªå¯¹è±¡ |
| | | String format = "[\"{}\","; |
| | | String sampleOld = StrUtil.format(format, oldTestObject.getSpecimenName()); |
| | | List<StructureItemParameter> itemParameterList = structureItemParameterService.list(Wrappers.<StructureItemParameter>lambdaQuery() |
| | | .like(StructureItemParameter::getSample, sampleOld)); |
| | | if (CollectionUtils.isNotEmpty(itemParameterList)) { |
| | | for (StructureItemParameter structureItemParameter : itemParameterList) { |
| | | // ä¿®æ¹ç»å®çæ ·ååç§° |
| | | String sampleNew = StrUtil.format(format, testObject.getSpecimenName()); |
| | | String sampleUp = structureItemParameter.getSample().replace(sampleOld, sampleNew); |
| | | structureItemParameter.setSample(sampleUp); |
| | | } |
| | | structureItemParameterService.updateBatchById(itemParameterList); |
| | | } |
| | | |
| | | // ä¿®æ¹æ çåå· |
| | | standardTreeMapper.update(null, Wrappers.<StandardTree>lambdaUpdate() |
| | | .eq(StandardTree::getSampleType, oldTestObject.getSpecimenName()) |
| | | .set(StandardTree::getSampleType, testObject.getSpecimenName())); |
| | | } |
| | | |
| | | Long count = structureTestObjectMapper.selectCount(Wrappers.<StructureTestObject>lambdaQuery() |
| | | .eq(StructureTestObject::getSpecimenName, testObject.getSpecimenName()) |
| | | .ne(StructureTestObject::getId, testObject.getId())); |
| | | if(count.compareTo(0L) > 0){ |
| | | throw new BaseException("æ£éªå¯¹è±¡ä¸è½éå¤"); |
| | | } |
| | | |
| | | return structureTestObjectMapper.updateById(testObject); |
| | | } |
| | | |
| | | @Override |
| | | public List<StructureTestObject> selectTestObjectByName() { |
| | | return structureTestObjectMapper.selectList(Wrappers.<StructureTestObject>lambdaQuery().select(StructureTestObject::getSpecimenName,StructureTestObject::getId)); |
| | | } |
| | | |
| | | //设å¤éé¢éæ©æ£éªé¡¹ç®(æ å½¢ç»æ) |
| | | @Override |
| | | public List<Map<String, Object>> getInsProduction() { |
| | | return structureItemParameterMapper.getInsProduction(); |
| | | } |
| | | |
| | | @Override |
| | | public List<TestItemDto> getItemTree() { |
| | | return structureItemParameterMapper.getItemTree(); |
| | | } |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service.impl; |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | 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.inspect.mapper.CertificationMapper; |
| | | import com.ruoyi.inspect.pojo.Certification; |
| | | import com.ruoyi.inspect.service.CertificationService; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Service |
| | | @AllArgsConstructor |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class CertificationServiceImpl extends ServiceImpl<CertificationMapper, Certification> implements CertificationService { |
| | | |
| | | |
| | | private CertificationMapper certificationMapper; |
| | | |
| | | |
| | | //æ¥è¯¢èµè´¨æç»å表 |
| | | @Override |
| | | public IPage<Certification> getCertificationDetail(Page page, Certification certification) { |
| | | return certificationMapper.getCertificationDetail(page, QueryWrappers.queryWrappers(certification)); |
| | | } |
| | | |
| | | //æ·»å èµè´¨æç»å表 |
| | | @Override |
| | | public int addCertificationDetail(Certification certification) { |
| | | return certificationMapper.insert(certification); |
| | | } |
| | | |
| | | //å é¤èµè´¨æç»å表 |
| | | @Override |
| | | public int delCertificationDetail(String ids) { |
| | | List<Integer> list = JSON.parseArray(ids,Integer.class); |
| | | return certificationMapper.deleteBatchIds(list); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.inspect.mapper.LaboratoryMapper; |
| | | import com.ruoyi.inspect.pojo.Laboratory; |
| | | import com.ruoyi.inspect.service.LaboratoryService; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * å®éªå®¤ç®¡ç(Laboratory)表æå¡å®ç°ç±» |
| | | */ |
| | | @Service |
| | | @AllArgsConstructor |
| | | public class LaboratoryServiceImpl extends ServiceImpl<LaboratoryMapper, Laboratory> implements LaboratoryService { |
| | | |
| | | |
| | | private LaboratoryMapper laboratoryMapper; |
| | | |
| | | @Override |
| | | public IPage<Laboratory> selectItemParameter(Page page, Laboratory itemParameter) { |
| | | return laboratoryMapper.selectItemParameter(page, QueryWrappers.queryWrappers(itemParameter)); |
| | | } |
| | | |
| | | @Override |
| | | public int addParameter(Laboratory itemParameter) { |
| | | return laboratoryMapper.insert(itemParameter); |
| | | } |
| | | |
| | | @Override |
| | | public int delParameter(Integer id) { |
| | | return laboratoryMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public int upParameter(Laboratory itemParameter) { |
| | | return laboratoryMapper.updateById(itemParameter); |
| | | } |
| | | |
| | | @Override |
| | | public List<Laboratory> obtainItemParameterList() { |
| | | return laboratoryMapper.selectList(Wrappers.<Laboratory>lambdaQuery().select(Laboratory::getLaboratoryName, Laboratory::getId)); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | 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.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.inspect.mapper.ProductPartMapper; |
| | | import com.ruoyi.inspect.mapper.StructureTestObjectPartMapper; |
| | | import com.ruoyi.inspect.pojo.ProductPart; |
| | | import com.ruoyi.inspect.pojo.StructureTestObjectPart; |
| | | import com.ruoyi.inspect.service.ProductPartService; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | @Transactional |
| | | @Service |
| | | @AllArgsConstructor |
| | | public class ProductPartServiceImpl extends ServiceImpl<ProductPartMapper, ProductPart> implements ProductPartService { |
| | | |
| | | private ProductPartMapper productPartMapper; |
| | | private StructureTestObjectPartMapper structureTestObjectPartMapper; |
| | | |
| | | |
| | | @Override |
| | | public IPage<ProductPart> selectByProductId(IPage<ProductPart> page,ProductPart productPart) { |
| | | return productPartMapper.selectListByProductId(page, QueryWrappers.queryWrappers(productPart),productPart.getProductId()); |
| | | } |
| | | |
| | | @Override |
| | | public void addProductPart(ProductPart productPart) { |
| | | if (productPart.getProductId() == null) { |
| | | throw new BaseException("缺å°äº§å对象id"); |
| | | } |
| | | this.isPartNoExist(productPart.getPartNo(), productPart.getProductId(), null); |
| | | productPartMapper.insert(productPart); |
| | | } |
| | | |
| | | @Override |
| | | public void updateProductPartById(ProductPart productPart) { |
| | | this.isPartNoExist(productPart.getPartNo(), productPart.getProductId(), productPart.getId()); |
| | | if (productPart.getProductId() == null) { |
| | | throw new BaseException("缺å°äº§å对象id"); |
| | | } |
| | | productPartMapper.updateById(productPart); |
| | | } |
| | | |
| | | // 夿é¶ä»¶å·æ¯å¦åå¨ |
| | | public void isPartNoExist(String partNo,Integer productId, Integer id) { |
| | | // é¶ä»¶å·å¯ä¸ ä½ä¸å¿
å¡« |
| | | if (StringUtils.isNotBlank(partNo)) { |
| | | Long count = productPartMapper.selectCount(new LambdaQueryWrapper<ProductPart>() |
| | | // .eq(ProductPart::getProductId, productId) |
| | | .eq(ProductPart::getPartNo, partNo) |
| | | .ne(id != null, ProductPart::getId, id)); |
| | | Long selectCount = structureTestObjectPartMapper.selectCount(Wrappers.<StructureTestObjectPart>lambdaQuery() |
| | | .eq(StructureTestObjectPart::getPartNo, partNo)); |
| | | if (count > 0 || selectCount > 0) { |
| | | throw new BaseException("该é¶ä»¶å·å·²ç»å®è¿æ£éªå¯¹è±¡"); |
| | | } |
| | | } else { |
| | | throw new BaseException("请è¾å
¥é¶ä»¶å·"); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service.impl; |
| | | |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.inspect.dto.ProductDTO1; |
| | | import com.ruoyi.inspect.excel.StructureTestObjectData; |
| | | import com.ruoyi.inspect.mapper.ProductMapper; |
| | | import com.ruoyi.inspect.mapper.ProductPartMapper; |
| | | import com.ruoyi.inspect.mapper.StandardTreeMapper; |
| | | import com.ruoyi.inspect.mapper.StructureTestObjectMapper; |
| | | import com.ruoyi.inspect.pojo.*; |
| | | import com.ruoyi.inspect.service.LaboratoryService; |
| | | import com.ruoyi.inspect.service.ProductService; |
| | | import com.ruoyi.inspect.service.StandardProductListService; |
| | | import com.ruoyi.inspect.service.StructureItemParameterService; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author z1292 |
| | | * @description é对表ãproduct(产å表)ãçæ°æ®åºæä½Serviceå®ç° |
| | | * @createDate 2024-04-26 01:11:02 |
| | | */ |
| | | @Service |
| | | @AllArgsConstructor |
| | | public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> |
| | | implements ProductService{ |
| | | |
| | | private ProductMapper productMapper; |
| | | |
| | | private LaboratoryService laboratoryService; |
| | | |
| | | private StructureTestObjectMapper structureTestObjectMapper; |
| | | |
| | | private ProductPartMapper productPartMapper; |
| | | |
| | | private StandardProductListService standardProductListService; |
| | | |
| | | private StandardTreeMapper standardTreeMapper; |
| | | |
| | | private StructureItemParameterService structureItemParameterService; |
| | | |
| | | @Override |
| | | public IPage<Product> selectProductListByObjectId(Page page, ProductDTO1 product) { |
| | | String partNo = product.getPartNo(); |
| | | product.setPartNo(null); |
| | | return productMapper.selectProductListByObjectId(page, QueryWrappers.queryWrappers(product), partNo); |
| | | } |
| | | |
| | | @Override |
| | | public int addProduct(Product product) { |
| | | |
| | | return productMapper.insert(product); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int upProduct(Product product) { |
| | | // æ¥è¯¢åæ¬çåç§° |
| | | Product oldProduct = productMapper.selectById(product.getId()); |
| | | |
| | | if (!oldProduct.getName().equals(product.getName())) { |
| | | // ä¿®æ¹åç§°å¹é
çæ åæ ä¸çæ£éªé¡¹ç® |
| | | // æ¥è¯¢ææå¯¹è±¡+åç§°çæ |
| | | StructureTestObject testObject = structureTestObjectMapper.selectById(oldProduct.getObjectId()); |
| | | |
| | | List<StandardProductList> standardProductLists = standardProductListService.list(Wrappers.<StandardProductList>lambdaUpdate() |
| | | .eq(StandardProductList::getSample, oldProduct.getName()) |
| | | .eq(StandardProductList::getSampleType, testObject.getSpecimenName())); |
| | | if (CollectionUtils.isNotEmpty(standardProductLists)) { |
| | | for (StandardProductList standardProductList : standardProductLists) { |
| | | // ä¿®æ¹æ ·ååç§° |
| | | standardProductList.setSample(product.getName()); |
| | | // ä¿®æ¹æ åç§° |
| | | // éè¦æªå第å级, é¿å
ä¸å级åç§°ä¸æ ·ä¿®æ¹é误 |
| | | String[] trees = standardProductList.getTree().split(" - "); |
| | | trees[3] = product.getName(); |
| | | List<String> list = CollUtil.newArrayList(trees); |
| | | String newName = CollUtil.join(list, " - "); |
| | | standardProductList.setTree(newName); |
| | | } |
| | | standardProductListService.updateBatchById(standardProductLists); |
| | | } |
| | | |
| | | // ä¿®æ¹æ£éªé¡¹ç®åæ°çæ£éªå¯¹è±¡ |
| | | // æ¼æ¥["object","product"]æ¥è¯¢æ£éªé¡¹ç®åæ°ä¿®æ¹ç»å®çæ£éªå¯¹è±¡ |
| | | String format = "[\"{}\",\"{}\"]"; |
| | | String sampleOld = StrUtil.format(format, testObject.getSpecimenName(), oldProduct.getName()); |
| | | List<StructureItemParameter> itemParameterList = structureItemParameterService.list(Wrappers.<StructureItemParameter>lambdaQuery() |
| | | .like(StructureItemParameter::getSample, sampleOld)); |
| | | if (CollectionUtils.isNotEmpty(itemParameterList)) { |
| | | for (StructureItemParameter structureItemParameter : itemParameterList) { |
| | | // ä¿®æ¹ç»å®çæ ·ååç§° |
| | | String sampleNew = StrUtil.format(format, testObject.getSpecimenName(), product.getName()); |
| | | String sampleUp = structureItemParameter.getSample().replace(sampleOld, sampleNew); |
| | | structureItemParameter.setSample(sampleUp); |
| | | } |
| | | structureItemParameterService.updateBatchById(itemParameterList); |
| | | } |
| | | |
| | | // ä¿®æ¹æ çåå· |
| | | standardTreeMapper.update(null, Wrappers.<StandardTree>lambdaUpdate() |
| | | .eq(StandardTree::getSampleType, testObject.getSpecimenName()) |
| | | .eq(StandardTree::getSample, oldProduct.getName()) |
| | | .set(StandardTree::getSample, product.getName())); |
| | | } |
| | | |
| | | return productMapper.updateById(product); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int delProduct(Integer id) { |
| | | // å é¤é¶ä»¶ç»å® |
| | | productPartMapper.delete(Wrappers.<ProductPart>lambdaQuery() |
| | | .eq(ProductPart::getProductId, id)); |
| | | |
| | | return productMapper.deleteById(id); |
| | | } |
| | | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Override |
| | | public void importPartExcel(List<StructureTestObjectData> list) { |
| | | list.forEach(i -> { |
| | | // æ£éªå¯¹è±¡ |
| | | StructureTestObject structureTestObject1 = structureTestObjectMapper.selectOne(Wrappers.<StructureTestObject>lambdaQuery() |
| | | .eq(StructureTestObject::getSpecimenName, i.getSpecimenName()) |
| | | .eq(StructureTestObject::getSpecimenNameEn, i.getSpecimenNameEn())); |
| | | Laboratory laboratory = laboratoryService.getOne(Wrappers.<Laboratory>lambdaQuery() |
| | | .eq(Laboratory::getLaboratoryName, i.getLaboratory())); |
| | | if (ObjectUtils.isEmpty(laboratory)) { |
| | | throw new BaseException("æªæ¾å°è¯¥åºæï¼" + i.getLaboratory() + "ï¼è¯·æ£æ¥æ¯å¦åå¨è¯¥åºæï¼"); |
| | | } |
| | | // å¦æä¸ºç©ºè¿è¡æ°å¢ |
| | | if(ObjectUtils.isEmpty(structureTestObject1)) { |
| | | StructureTestObject structureTestObject = new StructureTestObject(); |
| | | structureTestObject.setLaboratoryId(laboratory.getId()); |
| | | structureTestObject.setSpecimenName(i.getSpecimenName()); |
| | | structureTestObject.setSpecimenNameEn(i.getSpecimenNameEn()); |
| | | structureTestObject.setCode(i.getCode()); |
| | | structureTestObjectMapper.insert(structureTestObject); |
| | | |
| | | // 产å |
| | | Product product = productMapper.selectOne(Wrappers.<Product>lambdaQuery() |
| | | .eq(Product::getName, i.getName()) |
| | | .eq(Product::getNameEn, i.getNameEn())); |
| | | if (ObjectUtils.isEmpty(product)){ |
| | | Product product1 = new Product(); |
| | | product1.setName(i.getName()); |
| | | product1.setNameEn(i.getNameEn()); |
| | | product1.setObjectId(structureTestObject.getId()); |
| | | baseMapper.insert(product1); |
| | | } |
| | | } else { |
| | | structureTestObject1.setCode(i.getCode()); |
| | | structureTestObject1.setLaboratoryId(laboratory.getId()); |
| | | structureTestObjectMapper.updateById(structureTestObject1); |
| | | // 产å |
| | | Product product = productMapper.selectOne(Wrappers.<Product>lambdaQuery() |
| | | .eq(Product::getName, i.getName()) |
| | | .eq(Product::getNameEn, i.getNameEn())); |
| | | if (ObjectUtils.isEmpty(product)){ |
| | | Product product1 = new Product(); |
| | | product1.setName(i.getName()); |
| | | product1.setNameEn(i.getNameEn()); |
| | | product1.setObjectId(structureTestObject1.getId()); |
| | | baseMapper.insert(product1); |
| | | } else { |
| | | product.setName(i.getName()); |
| | | product.setNameEn(i.getNameEn()); |
| | | product.setObjectId(structureTestObject1.getId()); |
| | | baseMapper.updateById(product); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.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.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.inspect.mapper.ProductSupplierDensityMapper; |
| | | import com.ruoyi.inspect.pojo.ProductSupplierDensity; |
| | | import com.ruoyi.inspect.service.ProductSupplierDensityService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * 产ååå®¶å¯åº¦ç»å®è¡¨ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-09-19 |
| | | */ |
| | | @Service |
| | | public class ProductSupplierDensityServiceImpl extends ServiceImpl<ProductSupplierDensityMapper, ProductSupplierDensity> implements ProductSupplierDensityService { |
| | | |
| | | @Override |
| | | public IPage<ProductSupplierDensity> selectByProductId(Page page, ProductSupplierDensity supplierDensity) { |
| | | if (supplierDensity.getProductId() == null) { |
| | | throw new BaseException("缺å°äº§å对象id"); |
| | | } |
| | | return baseMapper.selectListByProductId(page, QueryWrappers.queryWrappers(supplierDensity), supplierDensity.getProductId()); |
| | | } |
| | | |
| | | @Override |
| | | public void addProductSupplierDensity(ProductSupplierDensity supplierDensity) { |
| | | if (supplierDensity.getProductId() == null) { |
| | | throw new BaseException("缺å°äº§å对象id"); |
| | | } |
| | | // æ¥è¯¢æ¹åå®¶æ¯å¦ç»å®è¿ |
| | | // Long count = baseMapper.selectCount(Wrappers.<ProductSupplierDensity>lambdaQuery() |
| | | // .eq(ProductSupplierDensity::getProductId, supplierDensity.getProductId()) |
| | | // .eq(ProductSupplierDensity::getModel, supplierDensity) |
| | | // .eq(ProductSupplierDensity::getSupplierName, supplierDensity.getSupplierName())); |
| | | // if (count > 0){ |
| | | // throw new BaseException("该产åå·²ç»å®è¿è¯¥åå®¶"); |
| | | // } |
| | | |
| | | baseMapper.insert(supplierDensity); |
| | | } |
| | | |
| | | @Override |
| | | public void updateProductSupplierDensity(ProductSupplierDensity supplierDensity) { |
| | | if (supplierDensity.getProductId() == null) { |
| | | throw new BaseException("缺å°äº§å对象id"); |
| | | } |
| | | // æ¥è¯¢æ¹åå®¶æ¯å¦ç»å®è¿ |
| | | // Long count = baseMapper.selectCount(Wrappers.<ProductSupplierDensity>lambdaQuery() |
| | | // .ne(ProductSupplierDensity::getId, supplierDensity.getId()) |
| | | // .eq(ProductSupplierDensity::getProductId, supplierDensity.getProductId()) |
| | | // .eq(ProductSupplierDensity::getModel, supplierDensity) |
| | | // .eq(ProductSupplierDensity::getSupplierName, supplierDensity.getSupplierName())); |
| | | // if (count > 0){ |
| | | // throw new BaseException("该产åå·²ç»å®è¿è¯¥åå®¶"); |
| | | // } |
| | | baseMapper.updateById(supplierDensity); |
| | | } |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.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.inspect.mapper.SealMapper; |
| | | import com.ruoyi.inspect.pojo.Laboratory; |
| | | import com.ruoyi.inspect.pojo.Seal; |
| | | import com.ruoyi.inspect.service.SealService; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Service |
| | | @AllArgsConstructor |
| | | public class SealServiceImpl extends ServiceImpl<SealMapper, Seal> implements SealService { |
| | | private SealMapper sealMapper; |
| | | |
| | | |
| | | @Override |
| | | public int addSeal(Seal seal) { |
| | | return sealMapper.insert(seal); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @Override |
| | | public IPage<Seal> selectSeal(Page page, Seal seal) { |
| | | return sealMapper.selectSeal(page, QueryWrappers.queryWrappers(seal)); |
| | | } |
| | | @Override |
| | | public List<Laboratory> Laboratory(Integer labId) { |
| | | return sealMapper.selectLaboratory(labId); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.inspect.mapper.StandardMethodListMapper; |
| | | import com.ruoyi.inspect.mapper.StandardProductListMapper; |
| | | import com.ruoyi.inspect.pojo.StandardMethodList; |
| | | import com.ruoyi.inspect.pojo.StandardProductList; |
| | | import com.ruoyi.inspect.service.StandardMethodListService; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author Administrator |
| | | * @description é对表ãstandard_method_list(æ åæ ä¸çæ åå表)ãçæ°æ®åºæä½Serviceå®ç° |
| | | * @createDate 2024-03-04 13:44:04 |
| | | */ |
| | | @Service |
| | | @AllArgsConstructor |
| | | public class StandardMethodListServiceImpl extends ServiceImpl<StandardMethodListMapper, StandardMethodList> |
| | | implements StandardMethodListService{ |
| | | |
| | | private StandardMethodListMapper standardMethodListMapper; |
| | | |
| | | private StandardProductListMapper standardProductListMapper; |
| | | |
| | | @Override |
| | | public int addStandardMethodList(Integer standardId, String tree) { |
| | | String[] trees = tree.split(" - "); |
| | | Map<String, String> map = standardMethodListMapper.selectStandardMethodById(standardId); |
| | | StandardMethodList list = new StandardMethodList(); |
| | | list.setCode(map.get("code")); |
| | | list.setName(map.get("name")); |
| | | list.setRemark(map.get("remark")); |
| | | list.setFactory(trees[0]); |
| | | try { |
| | | list.setLaboratory(trees[1]); |
| | | }catch (Exception e){} |
| | | try { |
| | | list.setSampleType(trees[2]); |
| | | }catch (Exception e){} |
| | | try { |
| | | list.setSample(trees[3]); |
| | | }catch (Exception e){} |
| | | try { |
| | | list.setModel(trees[4]); |
| | | }catch (Exception e){} |
| | | standardMethodListMapper.insert(list); |
| | | List<StandardProductList> standardProductLists = standardMethodListMapper.selectParameterList(list.getCode()); |
| | | for (StandardProductList standardProductList : standardProductLists) { |
| | | standardProductList.setStandardMethodListId(list.getId()); |
| | | standardProductList.setFactory(trees[0]); |
| | | try { |
| | | standardProductList.setLaboratory(trees[1]); |
| | | }catch (Exception e){} |
| | | try { |
| | | standardProductList.setSampleType(trees[2]); |
| | | }catch (Exception e){} |
| | | try { |
| | | standardProductList.setSample(trees[3]); |
| | | }catch (Exception e){} |
| | | try { |
| | | standardProductList.setModel(trees[4]); |
| | | }catch (Exception e){} |
| | | standardProductListMapper.insert(standardProductList); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | @Override |
| | | public Map<String, List<?>> selectsStandardMethodByFLSSM(String tree) { |
| | | String[] trees = tree.split(" - "); |
| | | Map<String, List<?>> map = new HashMap<>(); |
| | | String str = ""; |
| | | List<StandardMethodList> standardMethodLists = new ArrayList<>(); |
| | | switch (trees.length){ |
| | | case 5: |
| | | str += "\"" + trees[2] + "\",\"" + trees[3] + "\",\"" + trees[4] + "\""; |
| | | standardMethodLists.addAll(standardMethodListMapper.selectStandardMethodLists(str)); |
| | | standardMethodLists.addAll(standardMethodListMapper.selectStandardMethodLists("\"" + trees[2] + "\",\"" + trees[3] + "\"")); |
| | | standardMethodLists.addAll(standardMethodListMapper.selectStandardMethodLists("\"" + trees[2] + "\"")); |
| | | break; |
| | | case 4: |
| | | str += "\"" + trees[2] + "\",\"" + trees[3] + "\""; |
| | | standardMethodLists.addAll(standardMethodListMapper.selectStandardMethodLists(str)); |
| | | standardMethodLists.addAll(standardMethodListMapper.selectStandardMethodLists("\"" + trees[2] + "\"")); |
| | | break; |
| | | case 3: |
| | | str += "\"" + trees[2] + "\""; |
| | | standardMethodLists.addAll(standardMethodListMapper.selectStandardMethodLists3(str)); |
| | | break; |
| | | default: |
| | | map.put("standardMethodList", null); |
| | | return map; |
| | | } |
| | | standardMethodLists.addAll(standardMethodListMapper.selectStandardMethodListsByNull(str)); |
| | | map.put("standardMethodList", standardMethodLists); |
| | | return map; |
| | | } |
| | | |
| | | @Override |
| | | public Map<String, List<?>> selectsStandardMethodByFLSSM2(String tree) { |
| | | String[] trees = tree.split(" - "); |
| | | List<StandardMethodList> standardMethodLists = null; |
| | | switch (trees.length){ |
| | | case 5: |
| | | standardMethodLists = standardMethodListMapper.selectStandardMethodLists2(trees[0],trees[1],trees[2],trees[3],trees[4]); |
| | | break; |
| | | case 4: |
| | | standardMethodLists = standardMethodListMapper.selectStandardMethodLists2(trees[0],trees[1],trees[2],trees[3],null); |
| | | break; |
| | | case 3: |
| | | standardMethodLists = standardMethodListMapper.selectStandardMethodLists2(trees[0],trees[1],trees[2],null,null); |
| | | break; |
| | | case 2: |
| | | standardMethodLists = standardMethodListMapper.selectStandardMethodLists2(trees[0],trees[1],null,null,null); |
| | | break; |
| | | case 1: |
| | | standardMethodLists = standardMethodListMapper.selectStandardMethodLists2(trees[0],null,null,null,null); |
| | | break; |
| | | } |
| | | Map<String, List<?>> map = new HashMap<>(); |
| | | map.put("standardMethodList", standardMethodLists); |
| | | return map; |
| | | } |
| | | |
| | | @Override |
| | | public int delStandardMethodByFLSSM(Integer id) { |
| | | standardProductListMapper.delete(Wrappers.<StandardProductList>lambdaUpdate().eq(StandardProductList::getStandardMethodListId, id)); |
| | | return standardMethodListMapper.deleteById(id); |
| | | } |
| | | @Override |
| | | public List<StandardMethodList> selectStandardMethodEnum() { |
| | | return standardMethodListMapper.selectListEnum(); |
| | | } |
| | | |
| | | @Override |
| | | public Integer getStandardMethodId(String code) { |
| | | return baseMapper.getStandardMethodId(code); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service.impl; |
| | | |
| | | import cn.hutool.json.JSONUtil; |
| | | import cn.hutool.poi.excel.ExcelUtil; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.inspect.mapper.StandardMethodMapper; |
| | | import com.ruoyi.inspect.mapper.StandardProductListMapper; |
| | | import com.ruoyi.inspect.mapper.StructureItemParameterMapper; |
| | | import com.ruoyi.inspect.pojo.StandardMethod; |
| | | import com.ruoyi.inspect.pojo.StandardProductList; |
| | | import com.ruoyi.inspect.pojo.StructureItemParameter; |
| | | import com.ruoyi.inspect.service.StandardMethodService; |
| | | import com.ruoyi.inspect.service.StandardProductListService; |
| | | import com.ruoyi.inspect.service.StructureItemParameterService; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.*; |
| | | import java.util.concurrent.CompletableFuture; |
| | | |
| | | /** |
| | | * @author Administrator |
| | | * @description é对表ãstandard_method(æ åæ¹æ³)ãçæ°æ®åºæä½Serviceå®ç° |
| | | * @createDate 2024-03-03 19:21:41 |
| | | */ |
| | | @Service |
| | | @AllArgsConstructor |
| | | public class StandardMethodServiceImpl extends ServiceImpl<StandardMethodMapper, StandardMethod> |
| | | implements StandardMethodService { |
| | | |
| | | |
| | | private StandardMethodMapper standardMethodMapper; |
| | | |
| | | StandardProductListMapper standardProductListMapper; |
| | | StandardProductListService standardProductListService; |
| | | |
| | | StructureItemParameterMapper structureItemParameterMapper; |
| | | StructureItemParameterService structureItemParameterService; |
| | | |
| | | @Override |
| | | public IPage<StandardMethod> selectStandardMethodList(Page page, StandardMethod standardMethod) { |
| | | return standardMethodMapper.selectStandardMethodList(page, QueryWrappers.queryWrappers(standardMethod)); |
| | | } |
| | | |
| | | @Override |
| | | public List<StandardMethod> selectStandardMethods() { |
| | | return standardMethodMapper.selectList(Wrappers.<StandardMethod>lambdaQuery().select(StandardMethod::getId, StandardMethod::getCode, StandardMethod::getName).ne(StandardMethod::getId, 0)); |
| | | } |
| | | |
| | | @Override |
| | | public int addStandardMethod(StandardMethod standardMethod) { |
| | | int insert = standardMethodMapper.insert(standardMethod); |
| | | return insert; |
| | | } |
| | | |
| | | @Override |
| | | public int delStandardMethod(Integer id) { |
| | | int i = standardMethodMapper.deleteById(id); |
| | | return i; |
| | | } |
| | | |
| | | @Override |
| | | public int upStandardMethod(StandardMethod standardMethod) { |
| | | StandardMethod oldStandardMethod = standardMethodMapper.selectById(standardMethod.getId()); |
| | | if (!oldStandardMethod.getCode().equals(standardMethod.getCode())) { |
| | | CompletableFuture.supplyAsync(() -> replaceMethod(oldStandardMethod.getCode(), standardMethod.getCode())); |
| | | } |
| | | int i = standardMethodMapper.updateById(standardMethod); |
| | | return i; |
| | | } |
| | | |
| | | //ç¼è¾methodåå
¨é¨æ¿æ¢ |
| | | public String replaceMethod(String oldCode, String code) { |
| | | //æ¥è¯¢StandardProductList䏿æMethod妿å
å«ä¹åçåæ¿æ¢ |
| | | List<StandardProductList> standardProductLists = standardProductListMapper.selectList(null); |
| | | for (StandardProductList standardProductList : standardProductLists) { |
| | | if (standardProductList.getMethod().contains(oldCode)) { |
| | | String[] split = standardProductList.getMethod().split(","); |
| | | String a = null; |
| | | for (int i = 0; i < split.length; i++) { |
| | | String methodName = split[i].substring(1, split[i].length() - 1); |
| | | if (i == 0) { |
| | | methodName = split[i].substring(2, split[i].length() - 1); |
| | | } else if (i == split.length - 1) { |
| | | methodName = split[i].substring(1, split[i].length() - 2); |
| | | } |
| | | if (methodName.equals(oldCode)) { |
| | | methodName = code; |
| | | } |
| | | a += "\"" + methodName + "\","; |
| | | } |
| | | String method = "[\"" + a.substring(0, a.length() - 1) + "\"]"; |
| | | standardProductList.setMethod(method); |
| | | } |
| | | } |
| | | standardProductListService.updateBatchById(standardProductLists); |
| | | //æ¥è¯¢StructureItemParameter䏿æMethod妿å
å«ä¹åçåæ¿æ¢ |
| | | List<StructureItemParameter> structureItemParameters = structureItemParameterMapper.selectList(null); |
| | | for (StructureItemParameter structureItemParameter : structureItemParameters) { |
| | | if (structureItemParameter.getMethod().contains(oldCode)) { |
| | | String[] split = structureItemParameter.getMethod().split(","); |
| | | String a = null; |
| | | for (int i = 0; i < split.length; i++) { |
| | | String methodName = split[i].substring(1, split[i].length() - 1); |
| | | if (i == 0) { |
| | | methodName = split[i].substring(2, split[i].length() - 1); |
| | | } else if (i == split.length - 1) { |
| | | methodName = split[i].substring(1, split[i].length() - 2); |
| | | } |
| | | if (methodName.equals(oldCode)) { |
| | | methodName = code; |
| | | } |
| | | a += "\"" + methodName + "\","; |
| | | } |
| | | String method = "[\"" + a.substring(0, a.length() - 1) + "\"]"; |
| | | structureItemParameter.setMethod(method); |
| | | } |
| | | } |
| | | structureItemParameterService.updateBatchById(structureItemParameters); |
| | | return "æ¿æ¢å®æ¯!"; |
| | | } |
| | | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Override |
| | | public void inputExcel(MultipartFile file) throws IOException { |
| | | // å卿£æµå¯¹è±¡List |
| | | List<Object> structureTestObjectIdList = new ArrayList<>(); |
| | | List<StandardMethod> result = new ArrayList<>(); |
| | | ExcelUtil.readBySax(file.getInputStream(), 0, (i, l, list) -> { |
| | | // å»é¤ç¬¬ä¸è¡è¡¨å¤´ |
| | | if (l == 0) { |
| | | return; |
| | | } |
| | | // åå¨å¯ä¸æ£æµå¯¹è±¡ |
| | | if (!structureTestObjectIdList.contains(list.get(2))) { |
| | | structureTestObjectIdList.add(list.get(2)); |
| | | } |
| | | StandardMethod standardMethod = formatData(list); |
| | | result.add(standardMethod); |
| | | }); |
| | | addStructureTest(structureTestObjectIdList, result); |
| | | } |
| | | |
| | | // æ ¼å¼åæ°æ® |
| | | public StandardMethod formatData(List<Object> list) { |
| | | StandardMethod standardMethod = new StandardMethod(); |
| | | standardMethod.setField(list.get(1).toString()); |
| | | // é æ ¼å¼ |
| | | List<List<Object>> structureTestObjectId = new ArrayList<>(); |
| | | if (ObjectUtils.isEmpty(list.get(3))) { |
| | | structureTestObjectId.add(Arrays.asList(list.get(2))); |
| | | } else { |
| | | structureTestObjectId.add(Arrays.asList(list.get(2), list.get(3))); |
| | | } |
| | | standardMethod.setStructureTestObjectId(JSONUtil.toJsonStr(structureTestObjectId)); |
| | | standardMethod.setCode(list.get(4).toString()); |
| | | standardMethod.setName(list.get(5).toString()); |
| | | standardMethod.setNameEn(list.get(6).toString()); |
| | | if (!Objects.equals(list.get(7), null)) { |
| | | standardMethod.setRemark(list.get(7).toString()); |
| | | } |
| | | standardMethod.setQualificationId(list.get(8).toString()); |
| | | if (ObjectUtils.isNotEmpty(list.get(9))) { |
| | | if (list.get(9).equals("æ¯")) { |
| | | standardMethod.setIsProduct(1); |
| | | } else if (list.get(9).equals("å¦")) { |
| | | standardMethod.setIsProduct(0); |
| | | } |
| | | } |
| | | if (ObjectUtils.isNotEmpty(list.get(10))) { |
| | | if (list.get(10).equals("æ¯")) { |
| | | standardMethod.setIsUse(1); |
| | | } else if (list.get(9).equals("å¦")) { |
| | | standardMethod.setIsUse(0); |
| | | } |
| | | } |
| | | return standardMethod; |
| | | } |
| | | |
| | | // æ°å¢æ°æ® |
| | | public void addStructureTest(List<Object> structureTestObjectIdList, List<StandardMethod> standardMethodList) { |
| | | List<StandardMethod> updateList = new ArrayList<>(); |
| | | List<Integer> deleteListId = new ArrayList<>(); |
| | | List<StandardMethod> addList = new ArrayList<>(); |
| | | if (!structureTestObjectIdList.isEmpty()) { |
| | | // 循ç¯exceléé¢çåç» |
| | | structureTestObjectIdList.forEach(j -> { |
| | | // 以excelä¸çç»åæ¥è¯¢æ°æ®åºä¸çåç» |
| | | List<StandardMethod> standardMethods = baseMapper.selectList(Wrappers.<StandardMethod>lambdaQuery() |
| | | .like(StandardMethod::getStructureTestObjectId, "\"" + j + "\"")); |
| | | // å°ç»æå¾ªç¯å¹é
|
| | | for (int i = 0; i < standardMethods.size(); i++) { |
| | | boolean isExistence = false; |
| | | for (int i1 = 0; i1 < standardMethodList.size(); i1++) { |
| | | // æ´æ° |
| | | if (standardMethods.get(i).getStructureTestObjectId().equals(standardMethodList.get(i1).getStructureTestObjectId()) |
| | | && standardMethods.get(i).getCode().equals(standardMethodList.get(i1).getCode()) |
| | | && standardMethods.get(i).getField().equals(standardMethodList.get(i1).getField())) { |
| | | // ç»excelæ°æ®èµå¼idåæ´æ° |
| | | standardMethodList.get(i1).setId(standardMethods.get(i).getId()); |
| | | // æ´æ° |
| | | updateList.add(standardMethodList.get(i1)); |
| | | isExistence = true; |
| | | break; |
| | | } |
| | | } |
| | | // å é¤ |
| | | if (!isExistence) { |
| | | deleteListId.add(standardMethods.get(i).getId()); |
| | | } |
| | | } |
| | | for (int i = 0; i < standardMethodList.size(); i++) { |
| | | if (standardMethodList.get(i).getStructureTestObjectId().contains("\"" + j + "\"")) { |
| | | boolean isExistence = false; |
| | | for (int i1 = 0; i1 < standardMethods.size(); i1++) { |
| | | if (standardMethods.get(i1).getStructureTestObjectId().equals(standardMethodList.get(i).getStructureTestObjectId()) |
| | | && standardMethods.get(i1).getCode().equals(standardMethodList.get(i).getCode()) |
| | | && standardMethods.get(i1).getField().equals(standardMethodList.get(i).getField())) { |
| | | isExistence = true; |
| | | break; |
| | | } |
| | | } |
| | | // æ°å¢ |
| | | if (!isExistence) { |
| | | addList.add(standardMethodList.get(i)); |
| | | } |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | if (!addList.isEmpty()) { |
| | | // æ°å¢ |
| | | baseMapper.insertBatchSomeColumn(addList); |
| | | } |
| | | |
| | | if (!deleteListId.isEmpty()) { |
| | | // å é¤ |
| | | baseMapper.deleteBatchIds(deleteListId); |
| | | } |
| | | |
| | | if (!updateList.isEmpty()) { |
| | | // æ´æ° |
| | | updateList.forEach(i -> { |
| | | baseMapper.updateById(i); |
| | | }); |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.inspect.mapper.StandardProductListMapper; |
| | | import com.ruoyi.inspect.pojo.StandardProductList; |
| | | import com.ruoyi.inspect.service.StandardProductListService2; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service |
| | | public class StandardProductListService2Impl extends ServiceImpl<StandardProductListMapper, StandardProductList> |
| | | implements StandardProductListService2 { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service.impl; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.*; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.inspect.dto.CopyStandardProductListDto; |
| | | import com.ruoyi.inspect.dto.InsSampleReceiveDto; |
| | | import com.ruoyi.inspect.dto.ProductDto; |
| | | import com.ruoyi.inspect.dto.ResetTreeDragDTO; |
| | | import com.ruoyi.inspect.mapper.IfsInventoryQuantityMapper; |
| | | import com.ruoyi.inspect.mapper.StandardProductListMapper; |
| | | import com.ruoyi.inspect.mapper.StandardProductListSupplierAskMapper; |
| | | import com.ruoyi.inspect.mapper.StandardTreeMapper; |
| | | import com.ruoyi.inspect.pojo.StandardProductList; |
| | | import com.ruoyi.inspect.pojo.StandardProductListSupplierAsk; |
| | | import com.ruoyi.inspect.pojo.StandardTree; |
| | | import com.ruoyi.inspect.service.StandardProductListService; |
| | | import com.ruoyi.inspect.service.StandardProductListService2; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.*; |
| | | import java.util.regex.Matcher; |
| | | import java.util.regex.Pattern; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * @author Administrator |
| | | * @description é对表ãstandard_product_list(æ åæ ä¸çæ£éªé¡¹ç®)ãçæ°æ®åºæä½Serviceå®ç° |
| | | * @createDate 2024-03-05 10:33:29 |
| | | */ |
| | | @Service |
| | | @AllArgsConstructor |
| | | public class StandardProductListServiceImpl extends ServiceImpl<StandardProductListMapper, StandardProductList> |
| | | implements StandardProductListService { |
| | | |
| | | private StandardProductListMapper standardProductListMapper; |
| | | |
| | | private StandardTreeMapper standardTreeMapper; |
| | | |
| | | private StandardProductListService2 standardProductListService2; |
| | | |
| | | private IfsInventoryQuantityMapper ifsInventoryQuantityMapper; |
| | | |
| | | private StandardProductListSupplierAskMapper standardProductListSupplierAskMapper; |
| | | |
| | | |
| | | @Override |
| | | public int upStandardProductList(StandardProductList list) { |
| | | return standardProductListMapper.updateById(list); |
| | | } |
| | | |
| | | @Override |
| | | public int delStandardProduct(JSONArray list) { |
| | | return standardProductListMapper.deleteBatchIds(list); |
| | | } |
| | | |
| | | @Override |
| | | public List<StandardProductList> selectStandardProductList(InsSampleReceiveDto insSample) { |
| | | // æ¯å¦æ²¡æäº§å |
| | | boolean isNoSample = false; |
| | | // String[] models = insSample.getModel().split("-(?=[^-]*$)");//æåæåä¸ä¸ªã-ã |
| | | String model = insSample.getModel(); |
| | | String modelNum = insSample.getModelNum(); |
| | | List<StandardProductList> list = standardProductListMapper.selectDetail(insSample.getStandardMethodListId(), 1, model, insSample.getIsCableTag()); |
| | | if (list.size() == 0) { |
| | | if (Objects.equals(insSample.getFactory(), "") || insSample.getFactory() == null) { |
| | | return null; |
| | | } |
| | | String[] split = insSample.getFactory().split(" - "); |
| | | split[3] = split[3].replace("- ", ""); |
| | | String tree = split[0] + " - " + split[1] + " - " + split[2] + " - " + split[3] + " - null"; |
| | | list = standardProductListMapper.selectDetail2(insSample.getStandardMethodListId(), 1, tree, insSample.getIsCableTag()); |
| | | if (list.size() == 0) { |
| | | String tree1 = split[0] + " - " + split[1] + " - " + split[2] + " - null - " + split[3]; |
| | | list = standardProductListMapper.selectDetail2(insSample.getStandardMethodListId(), 1, tree1, insSample.getIsCableTag()); |
| | | |
| | | // åªæå¯¹è±¡çä¸å± |
| | | if (list.size() == 0) { |
| | | String tree2 = split[0] + " - " + split[1] + " - " + split[2] + " - null - null"; |
| | | list = standardProductListMapper.selectDetail2(insSample.getStandardMethodListId(), 1, tree2, insSample.getIsCableTag()); |
| | | // æ ·åç´æ¥èµå¼æ ·ååç±» |
| | | list.forEach(standardProductList -> standardProductList.setSample(standardProductList.getSampleType())); |
| | | isNoSample = true; |
| | | } |
| | | } |
| | | } |
| | | String[] split1 = insSample.getFactory().split(" - "); |
| | | if (!isNoSample) { |
| | | //夿é¿åº¦ |
| | | if (split1.length > 4) { |
| | | if (ObjectUtils.isNotEmpty(split1[3])) { |
| | | list = list.stream().filter(list1 -> Objects.nonNull(list1.getSample()) && Objects.equals(list1.getSample(), split1[3])).collect(Collectors.toList()); |
| | | } else if (split1[3].equals("")) { |
| | | list = list.stream().filter(list1 -> Objects.nonNull(list1.getSampleType()) && Objects.equals(list1.getSampleType(), split1[2])).collect(Collectors.toList()); |
| | | } |
| | | } |
| | | } |
| | | list = list.stream().filter(a -> { |
| | | try { |
| | | if (a.getSection() != null && !Objects.equals(a.getSection(), "")) { |
| | | List<String> sections = JSON.parseArray(a.getSection(), String.class);// åºé´ |
| | | List<String> cores = JSON.parseArray(a.getCores(), String.class); // è¯æ° |
| | | List<String> conductorMaterials = JSON.parseArray(a.getConductorMaterial(), String.class); // å¯¼ä½æè´¨ |
| | | List<String> conductorTypes = JSON.parseArray(a.getConductorType(), String.class); // 导ä½ç±»å |
| | | List<String> asks = JSON.parseArray(a.getAsk(), String.class); |
| | | List<String> tells = JSON.parseArray(a.getTell(), String.class); |
| | | boolean isIf; |
| | | for (int i = 0; i < sections.size(); i++) { |
| | | if (Objects.equals(a.getBsm(), "1")) { |
| | | return true; |
| | | } else { |
| | | if (sections.get(i).contains("&")) { |
| | | String[] split = sections.get(i).split("&"); |
| | | isIf = getIsIf(split[0], modelNum, cores.get(i), conductorMaterials.get(i), conductorTypes.get(i), insSample) |
| | | && getIsIf(split[1], modelNum, cores.get(i), conductorMaterials.get(i), conductorTypes.get(i), insSample); |
| | | } else { |
| | | isIf = getIsIf(sections.get(i), modelNum, cores.get(i), conductorMaterials.get(i), conductorTypes.get(i), insSample); |
| | | } |
| | | if (isIf) { |
| | | a.setSection(sections.get(i)); |
| | | a.setAsk(asks.get(i)); |
| | | a.setTell(tells.get(i)); |
| | | return true; |
| | | } |
| | | } |
| | | } |
| | | return false; |
| | | } |
| | | } catch (Exception ignored) { |
| | | return false; |
| | | } |
| | | return true; |
| | | }).peek(standardProductList -> { |
| | | // todo: 夿æ¯å¦æ¯åæä¸å, éè¦åæé¢è²ç»å®å°è¯æ ·é¢è²çè¦æ±å¼ä¸ |
| | | if (StringUtils.isNotBlank(insSample.getPartNo())) { |
| | | // 夿æ¯å¦æè¿ä¸ªåæ®µä¸æ¯ææ¬ç±»å |
| | | if (StringUtils.isNotBlank(standardProductList.getInspectionItem()) |
| | | && standardProductList.getInspectionItem().contains("è¯æ ·é¢è²")) { |
| | | Map<String, String> partColor = baseMapper.selectPartColor(insSample.getPartNo()); |
| | | if (CollectionUtils.isNotEmpty(partColor)) { |
| | | if (StringUtils.isNotBlank(partColor.get("color"))) { |
| | | // 夿æ£éªå¼æ¯å¦ä¸ºç©ºåä¸çäº - å / |
| | | if (StringUtils.isBlank(standardProductList.getAsk()) || partColor.get("color").contains("æ¬")) { // 没æaskç´æ¥å¤å¶ |
| | | // æ¥è¯¢å¯¹è±¡ç»å®è¡¨å产åç»å®è¡¨ |
| | | standardProductList.setAsk("=" + partColor.get("color") |
| | | + (StringUtils.isBlank(partColor.get("color_code")) ? "" : "(" + partColor.get("color_code") + ")")); |
| | | standardProductList.setTell(partColor.get("color") |
| | | + (StringUtils.isBlank(partColor.get("color_code")) ? "" : "(" + partColor.get("color_code") + ")")); |
| | | standardProductList.setInspectionValueType("2"); |
| | | } else { // æ¼æ¥å°è¦æ±æè¿°åé¢ |
| | | standardProductList.setTell(partColor.get("color") |
| | | + (StringUtils.isBlank(partColor.get("color_code")) ? "" : "(" + partColor.get("color_code") + ")") + "@" + standardProductList.getTell()); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }) |
| | | .collect(Collectors.toList()); |
| | | |
| | | // æ¥è¯¢åå®¶æ¯å¦æç¹æ®è¦æ±å¼ |
| | | if (insSample.getIfsInventoryId() != null) { |
| | | // æ¥è¯¢åææåå®¶åç§° |
| | | String supplierName = ifsInventoryQuantityMapper.selectById(insSample.getIfsInventoryId()) |
| | | .getSupplierName(); |
| | | List<Long> collect = list.stream().map(StandardProductList::getId).collect(Collectors.toList()); |
| | | if (CollectionUtils.isNotEmpty(collect)) { |
| | | List<StandardProductListSupplierAsk> supplierAsks = standardProductListSupplierAskMapper.selectList(Wrappers.<StandardProductListSupplierAsk>lambdaQuery() |
| | | .in(StandardProductListSupplierAsk::getProductListId, collect) |
| | | .eq(StandardProductListSupplierAsk::getSupplierName, supplierName)); |
| | | |
| | | // å¤æææ²¡æç¹æ®å¼ç»å® |
| | | if (CollectionUtils.isNotEmpty(supplierAsks)) { |
| | | for (StandardProductList standardProductList : list) { |
| | | for (StandardProductListSupplierAsk supplierAsk : supplierAsks) { |
| | | if (standardProductList.getId().equals(supplierAsk.getProductListId())) { |
| | | // éæ°èµå¼è¦æ±å¼åè¦æ±æè¿° |
| | | standardProductList.setAsk(supplierAsk.getAsk()); |
| | | standardProductList.setTell(supplierAsk.getTell()); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @param str å¤å®å
¬å¼ |
| | | * @param model åå· |
| | | * @param standardCores è¯æ° |
| | | * @param conductorMaterial å¯¼ä½æè´¨ |
| | | * @param conductorType 导ä½ç±»å |
| | | * @param insSample |
| | | * @return |
| | | */ |
| | | private boolean getIsIf(String str, String model, String standardCores, String conductorMaterial, String conductorType,InsSampleReceiveDto insSample) { |
| | | Matcher matcher = Pattern.compile("\\d+(\\.\\d+)?").matcher(model); |
| | | String model2 = ""; |
| | | while (matcher.find()) { |
| | | model2 += matcher.group(); |
| | | break; |
| | | } |
| | | boolean flag = false; |
| | | if (str.contains("â¥") || str.contains(">=")) { |
| | | String param = str.replace("â¥", "").replace(">=", ""); |
| | | flag = new BigDecimal(model2).compareTo(new BigDecimal(param)) > -1; |
| | | } else if (str.contains("â¤") || str.contains("<=")) { |
| | | String param = str.replace("â¤", "").replace("<=", ""); |
| | | flag = new BigDecimal(model2).compareTo(new BigDecimal(param)) < 1; |
| | | } else if (str.contains(">") || str.contains("ï¼")) { |
| | | String param = str.replace(">", "").replace("ï¼", ""); |
| | | flag = new BigDecimal(model2).compareTo(new BigDecimal(param)) > 0; |
| | | } else if (str.contains("<") || str.contains("ï¼")) { |
| | | String param = str.replace("<", "").replace("ï¼", ""); |
| | | flag = new BigDecimal(model2).compareTo(new BigDecimal(param)) < 0; |
| | | } else if (str.contains("=")) { |
| | | String param = str.replace("=", ""); |
| | | flag = new BigDecimal(model2).compareTo(new BigDecimal(param)) == 0; |
| | | } |
| | | if (flag) { |
| | | boolean coresMatch = true; |
| | | boolean conductorMaterialMatch = true; |
| | | boolean conductorTypeMatch = true; |
| | | |
| | | // 夿æ¯å¦æçº¿è¯æ°é |
| | | if (StringUtils.isNotBlank(standardCores)) { |
| | | if (StringUtils.isBlank(insSample.getCores()) || !standardCores.equals(insSample.getCores())) { |
| | | coresMatch = false; |
| | | } |
| | | } |
| | | |
| | | // 夿æ¯å¦æå¯¼ä½æè´¨ |
| | | if (StringUtils.isNotBlank(conductorMaterial)) { |
| | | if (StringUtils.isBlank(insSample.getConductorMaterial()) || !conductorMaterial.equals(insSample.getConductorMaterial())) { |
| | | conductorMaterialMatch = false; |
| | | } |
| | | } |
| | | |
| | | // 夿æ¯å¦æå¯¼ä½ç±»å |
| | | if (StringUtils.isNotBlank(conductorType)) { |
| | | if (StringUtils.isBlank(insSample.getConductorType()) || !conductorType.equals(insSample.getConductorType())) { |
| | | conductorTypeMatch = false; |
| | | } |
| | | } |
| | | // æç»å¤æ |
| | | flag = coresMatch && conductorMaterialMatch && conductorTypeMatch; |
| | | } |
| | | |
| | | return flag; |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Map<String, Object> selectStandardProductListByMethodId(Integer id, String tree, Integer page) { |
| | | String[] trees = tree.split(" - "); |
| | | try { |
| | | String tree1 = trees[2]; |
| | | } catch (Exception e) { |
| | | throw new BaseException("æä½å¤ªå¿«,ç³»ç»ä¼ åé误!!!!"); |
| | | } |
| | | boolean isDrag = false; |
| | | List<StandardProductList> list = new ArrayList<>(); |
| | | if (trees.length == 3) { |
| | | List<StandardTree> treeList = new ArrayList<>(); |
| | | StandardTree standardTree = new StandardTree(); |
| | | standardTree.setFactory(trees[0]); |
| | | standardTree.setLaboratory(trees[1]); |
| | | standardTree.setSampleType(trees[2]); |
| | | List<ProductDto> pList = standardTreeMapper.selectPList(trees[2]); |
| | | if (pList.size() == 0 || pList.get(0) == null) { |
| | | List<StandardTree> treeList1 = standardTreeMapper.selectList(Wrappers.<StandardTree>lambdaQuery().eq(StandardTree::getLaboratory, trees[1]).eq(StandardTree::getSampleType, trees[2])); |
| | | if (treeList1.size() == 0) { |
| | | treeList.add(standardTree); |
| | | } else { |
| | | treeList.addAll(treeList1); |
| | | } |
| | | } else { |
| | | for (ProductDto p : pList) { |
| | | standardTree.setSample(p.getName()); |
| | | List<StandardTree> treeList1 = standardTreeMapper.selectList(Wrappers.<StandardTree>lambdaQuery().eq(StandardTree::getLaboratory, trees[1]).eq(StandardTree::getSampleType, trees[2]).eq(StandardTree::getSample, p.getName())); |
| | | if (treeList1.size() == 0) { |
| | | treeList.add(JSON.parseObject(JSON.toJSONString(standardTree), StandardTree.class)); |
| | | } else { |
| | | treeList.addAll(treeList1); |
| | | } |
| | | } |
| | | } |
| | | for (StandardTree standardTree2 : treeList) { |
| | | String tree2 = trees[0] + " - " + trees[1] + " - " + trees[2] + " - " + standardTree2.getSample() + " - " + standardTree2.getModel(); |
| | | list.addAll(standardTreeMapper.selectStandardProductListByTree("\"" + trees[2] + "\"", standardTree2.getSample(), standardTree2.getModel(), tree2, trees[1])); |
| | | list.addAll(standardTreeMapper.selectStandardProductListByTree2("\"" + trees[2] + "\",\"" + standardTree2.getSample() + "\"", standardTree2.getSample(), standardTree2.getModel(), tree2, trees[1])); |
| | | } |
| | | } else if (trees.length == 4) { |
| | | // å¤æç¬¬å屿¯å¦æåå· |
| | | Long count = standardProductListMapper.selectCount(Wrappers.<StandardProductList>lambdaQuery() |
| | | .eq(StandardProductList::getStandardMethodListId, id) |
| | | .isNull(StandardProductList::getModel) |
| | | .like(StandardProductList::getTree, tree)); |
| | | if (count == 0) { |
| | | isDrag = true; |
| | | } |
| | | |
| | | isDrag = true; |
| | | List<StandardTree> treeList = standardTreeMapper.selectList(Wrappers.<StandardTree>lambdaQuery().eq(StandardTree::getLaboratory, trees[1]).eq(StandardTree::getSampleType, trees[2]).eq(StandardTree::getSample, trees[3])); |
| | | if (treeList.size() == 0) { |
| | | StandardTree standardTree = new StandardTree(); |
| | | standardTree.setFactory(trees[0]); |
| | | standardTree.setLaboratory(trees[1]); |
| | | standardTree.setSampleType(trees[2]); |
| | | standardTree.setSample(trees[3]); |
| | | treeList.add(standardTree); |
| | | } |
| | | for (StandardTree standardTree : treeList) { |
| | | String str = tree + " - " + standardTree.getModel(); |
| | | list.addAll(standardTreeMapper.selectStandardProductListByTree("\"" + trees[2] + "\"", standardTree.getSample(), standardTree.getModel(), str, trees[1])); |
| | | list.addAll(standardTreeMapper.selectStandardProductListByTree2("\"" + trees[2] + "\",\"" + trees[3] + "\"", standardTree.getSample(), standardTree.getModel(), str, trees[1])); |
| | | } |
| | | } else { |
| | | isDrag = true; |
| | | list.addAll(standardTreeMapper.selectStandardProductListByTree("\"" + trees[2] + "\"", trees[3].equals("null") ? null : trees[3], trees[4], tree, trees[1])); |
| | | list.addAll(standardTreeMapper.selectStandardProductListByTree2("\"" + trees[2] + "\",\"" + trees[3] + "\"", trees[3].equals("null") ? null : trees[3], trees[4], tree, trees[1])); |
| | | } |
| | | for (StandardProductList productList : list) { |
| | | productList.setId(IdWorker.getId()); |
| | | } |
| | | List<StandardProductList> standardProductLists; |
| | | |
| | | if (isDrag) { |
| | | standardProductLists = standardProductListMapper.selectList(Wrappers.<StandardProductList>lambdaQuery() |
| | | .eq(StandardProductList::getStandardMethodListId, id) |
| | | .like(StandardProductList::getTree, tree) |
| | | .orderByAsc(StandardProductList::getSort)); |
| | | // 夿æ¯å¦ææ²¡æåºå·ç, 没æåºå·éç½® |
| | | boolean b = standardProductLists.stream().anyMatch(standardProductList -> standardProductList.getSort() == null); |
| | | } else { |
| | | standardProductLists = standardProductListMapper.selectList(Wrappers.<StandardProductList>lambdaQuery() |
| | | .eq(StandardProductList::getStandardMethodListId, id) |
| | | .like(StandardProductList::getTree, tree)); |
| | | } |
| | | |
| | | for (StandardProductList sp : standardProductLists) { |
| | | for (StandardProductList pl : list) { |
| | | // 夿æ¡ä»¶æ¯å¦åªæä¸ä¸ª, æä¸ä¸ªçè¯é»è®¤ç¬¬ä¸ä¸ª |
| | | String radiusList = pl.getRadiusList(); |
| | | if (StringUtils.isNotBlank(radiusList) && !radiusList.equals("null") && !radiusList.equals("\"\"")) { |
| | | JSONArray jsonArray = JSON.parseArray(radiusList); |
| | | List<String> radius = jsonArray.toJavaList(String.class); |
| | | if (CollectionUtils.isNotEmpty(radius) && radius.size() == 1) { |
| | | pl.setRadius(radius.get(0)); |
| | | } |
| | | } |
| | | if (Objects.equals(sp.getInspectionItem(), pl.getInspectionItem()) |
| | | && Objects.equals((sp.getInspectionItemSubclass() == null) ? "" : sp.getInspectionItemSubclass(), pl.getInspectionItemSubclass() == null ? "" : pl.getInspectionItemSubclass()) |
| | | // && Objects.equals(sp.getSample(), pl.getSample()) |
| | | && Objects.equals(sp.getModel(), pl.getModel()) |
| | | && sp.getTree().indexOf(pl.getSample() == null ? "null" : pl.getSample()) > -1 |
| | | && Objects.equals(sp.getStructureItemParameterId(), pl.getStructureItemParameterId())) { |
| | | pl.setId(sp.getId()); |
| | | // æ·»å æåºå段 |
| | | pl.setSort(sp.getSort()); |
| | | if (sp.getState() != null && !sp.getState().equals("")) { |
| | | pl.setState(sp.getState()); |
| | | } else { |
| | | pl.setState(id == 0 ? 1 : 0); |
| | | } |
| | | if (sp.getMethodS() != null && !sp.getMethodS().equals("")) { |
| | | pl.setMethod(sp.getMethodS()); |
| | | } |
| | | if (sp.getRadius() != null && !sp.getRadius().equals("")) { |
| | | pl.setRadius(sp.getRadius()); |
| | | } |
| | | if (sp.getRates() != null && !sp.getRates().equals("")) { |
| | | pl.setRates(sp.getRates()); |
| | | } |
| | | if (sp.getAsk() != null && !sp.getAsk().equals("")) { |
| | | pl.setAsk(sp.getAsk()); |
| | | } |
| | | if (sp.getTell() != null && !sp.getTell().equals("")) { |
| | | pl.setTell(sp.getTell()); |
| | | } |
| | | if (sp.getPrice() != null && !sp.getPrice().equals("")) { |
| | | pl.setPrice(sp.getPrice()); |
| | | } |
| | | if (sp.getManHour() != null && !sp.getManHour().equals("")) { |
| | | pl.setManHour(sp.getManHour()); |
| | | } |
| | | if (sp.getSection() != null && !sp.getSection().equals("")) { |
| | | pl.setSection(sp.getSection()); |
| | | } |
| | | if (sp.getCores() != null && !sp.getCores().equals("")) { |
| | | pl.setCores(sp.getCores()); |
| | | } |
| | | if (sp.getConductorMaterial() != null && !sp.getConductorMaterial().equals("")) { |
| | | pl.setConductorMaterial(sp.getConductorMaterial()); |
| | | } |
| | | if (sp.getConductorType() != null && !sp.getConductorType().equals("")) { |
| | | pl.setConductorType(sp.getConductorType()); |
| | | } |
| | | if (sp.getTemplateId() != null && !sp.getTemplateId().equals("")) { |
| | | pl.setTemplateId(sp.getTemplateId()); |
| | | } |
| | | //å ä¸ºè¿æä¸ªäº§åå«èå¼ çº¿å¤¹ æ¥ç»éå
· ,è¿ä¸¤ä¸ªé¡¹ç®çæ°æ®å®å
¨ä¸æ ·,ç¹æ®å¤ç |
| | | if (sp.getTree() != null && !sp.getTree().equals("") && !pl.getTree().equals("ä¸å¤©ç§ææ£æµä¸å¿ - çµå产åå®éªå®¤ - éå
· - èå¼ çº¿å¤¹ - null")) { |
| | | pl.setTree(sp.getTree()); |
| | | } |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | if (page == 1) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | // CompletableFuture.supplyAsync(() -> { |
| | | if (trees.length == 5) { |
| | | standardProductListMapper.delete(Wrappers.<StandardProductList>lambdaUpdate() |
| | | .eq(StandardProductList::getStandardMethodListId, id) |
| | | .eq(StandardProductList::getTree, tree)); |
| | | } else { |
| | | standardProductListMapper.delete(Wrappers.<StandardProductList>lambdaUpdate() |
| | | .eq(StandardProductList::getStandardMethodListId, id) |
| | | .like(StandardProductList::getTree, tree)); |
| | | } |
| | | |
| | | boolean success = false; |
| | | int retryCount = 0; |
| | | while (!success && retryCount < 100) { |
| | | try { |
| | | standardProductListService2.saveBatch(list.stream().map(a -> { |
| | | a.setFactory(trees[0]); |
| | | a.setLaboratory(trees[1]); |
| | | a.setSampleType(trees[2]); |
| | | a.setCreateUser(userId); |
| | | a.setUpdateUser(userId); |
| | | a.setStandardMethodListId(id); |
| | | return a; |
| | | }).collect(Collectors.toList())); |
| | | ; |
| | | success = true; |
| | | } catch (Exception e) { |
| | | // å¤çéå¤ ID çè®°å½ï¼éæ°çæ ID å¹¶ç»§ç»å°è¯æå
¥ |
| | | for (StandardProductList productList : list) { |
| | | productList.setId(IdWorker.getId()); |
| | | } |
| | | } |
| | | } |
| | | if (!success) { |
| | | throw new RuntimeException("æå
¥å¤±è´¥"); |
| | | } |
| | | |
| | | } |
| | | Map<String, Object> map = new HashMap<>(); |
| | | Collections.sort(list, (o1, o2) -> { |
| | | String field1 = o1.getManHourGroup(); |
| | | String field2 = o2.getManHourGroup(); |
| | | |
| | | boolean isEmpty1 = field1 == null || field1.isEmpty(); |
| | | boolean isEmpty2 = field2 == null || field2.isEmpty(); |
| | | |
| | | if (isEmpty1 && isEmpty2) { |
| | | return 0; |
| | | } else if (isEmpty1) { |
| | | return 1; |
| | | } else if (isEmpty2) { |
| | | return -1; |
| | | } else { |
| | | int num1 = extractNumber(field1); |
| | | int num2 = extractNumber(field2); |
| | | return Integer.compare(num1, num2); |
| | | } |
| | | }); |
| | | // æç
§ç´¢å¼æåº |
| | | if (isDrag) { |
| | | list.sort((o1, o2) -> (o1.getSort() == null ? 0 : o1.getSort()) |
| | | - (o2.getSort() == null ? 0 : o2.getSort())); |
| | | } |
| | | try { |
| | | map.put("productList", list.subList((page - 1) * 300, page * 300)); |
| | | } catch (IndexOutOfBoundsException e) { |
| | | map.put("productList", list.subList((page - 1) * 300, list.size())); |
| | | } |
| | | map.put("total", list.size()); |
| | | return map; |
| | | } |
| | | |
| | | private int extractNumber(String s) { |
| | | // ä»åç¬¦ä¸²ä¸æåæ°åçé»è¾ï¼è¿éåè®¾åæ®µçæ ¼å¼æ¯ "text<number>" |
| | | String number = s; |
| | | if (!s.matches("\\d+")) { |
| | | number = s.replaceAll("\\D", ""); |
| | | } |
| | | return Integer.parseInt(number); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<StandardProductList> selectStandardProductByMethodId(Integer id, String tree, Integer page, String laboratory, String item, String items) { |
| | | IPage<StandardProductList> iPage = new Page<>(); |
| | | iPage.setSize(100); |
| | | iPage.setCurrent(page); |
| | | return standardProductListMapper.standardProductListIPage(id, tree, iPage, laboratory, item, items); |
| | | } |
| | | |
| | | @Override |
| | | public Map<String, List<?>> selectStandardProductEnumByMethodId(Integer id, String tree, String item) { |
| | | HashMap<String, List<?>> map = new HashMap<>(); |
| | | map.put("item", standardProductListMapper.selectList(Wrappers.<StandardProductList>lambdaQuery() |
| | | .eq(StandardProductList::getStandardMethodListId, id) |
| | | .like(StandardProductList::getTree, tree) |
| | | .select(StandardProductList::getInspectionItem) |
| | | .groupBy(StandardProductList::getInspectionItem))); |
| | | if (ObjectUtils.isNotEmpty(item)) { |
| | | map.put("items", standardProductListMapper.selectList(Wrappers.<StandardProductList>lambdaQuery() |
| | | .eq(StandardProductList::getStandardMethodListId, id) |
| | | .eq(StandardProductList::getInspectionItem, item) |
| | | .like(StandardProductList::getTree, tree) |
| | | .select(StandardProductList::getInspectionItemSubclass) |
| | | .groupBy(StandardProductList::getInspectionItemSubclass))); |
| | | } else { |
| | | map.put("items", standardProductListMapper.selectList(Wrappers.<StandardProductList>lambdaQuery() |
| | | .eq(StandardProductList::getStandardMethodListId, id) |
| | | .like(StandardProductList::getTree, tree) |
| | | .select(StandardProductList::getInspectionItemSubclass) |
| | | .groupBy(StandardProductList::getInspectionItemSubclass))); |
| | | } |
| | | return map; |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ ååºåºé´ |
| | | * @param list |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean updateSection(StandardProductList list) { |
| | | standardProductListMapper.updateSection(list); |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ ååºææ½ |
| | | * @param resetTreeDragDTO |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void resetTreeDrag(ResetTreeDragDTO resetTreeDragDTO) { |
| | | Integer beginIndex = Integer.parseInt(resetTreeDragDTO.getBeginIndex()); |
| | | Integer endIndex = Integer.parseInt(resetTreeDragDTO.getEndIndex()); |
| | | Integer methodId = Integer.parseInt(resetTreeDragDTO.getMethodId()); |
| | | Long productionId = Long.parseLong(resetTreeDragDTO.getProductionId()); |
| | | // 夿æ¯ä»ä¸å¾ä¸ææ½è¿æ¯ä»ä¸å¾ä¸æ¾ææ½ |
| | | // ä»ä¸å¾ä¸ |
| | | if (beginIndex < endIndex) { |
| | | standardProductListMapper.updateSortUp(beginIndex, |
| | | endIndex, |
| | | methodId, |
| | | resetTreeDragDTO.getTree()); |
| | | |
| | | // ä»ä¸å¾ä¸ |
| | | } else if (beginIndex > endIndex){ |
| | | standardProductListMapper.updateSortDown(beginIndex, |
| | | endIndex, |
| | | methodId, |
| | | resetTreeDragDTO.getTree()); |
| | | } else { |
| | | return; |
| | | } |
| | | // ä¿®æ¹æ ååºé¡¹é¡ºåº |
| | | standardProductListMapper.update(null, Wrappers.<StandardProductList>lambdaUpdate() |
| | | .eq(StandardProductList::getId, productionId) |
| | | .set(StandardProductList::getSort, endIndex)); |
| | | } |
| | | |
| | | @Override |
| | | public void resetTreeDragBatch(List<StandardProductList> standardProductLists) { |
| | | standardProductListService2.updateBatchById(standardProductLists); |
| | | } |
| | | |
| | | /** |
| | | * æ£éªé¡¹è¦æ±å¼å¯¹æ¯ |
| | | * @param copyDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<StandardProductList> copyStandardProductList(CopyStandardProductListDto copyDto) { |
| | | List<StandardProductList> productLists = new ArrayList<>(); |
| | | |
| | | // å¯¹æ¯æ£éªé¡¹ä¸æ ·çå¡«å
è¦æ±å¼è¦æ±æè¿° |
| | | for (StandardProductList oldProductList : copyDto.getOldStandardProductList()) { |
| | | String oldItemName = oldProductList.getInspectionItemClassEn() |
| | | + oldProductList.getInspectionItem() |
| | | + oldProductList.getInspectionItemSubclass(); |
| | | for (StandardProductList newProductList : copyDto.getNewStandardProductList()) { |
| | | String newItemName = newProductList.getInspectionItemClassEn() |
| | | + newProductList.getInspectionItem() |
| | | + newProductList.getInspectionItemSubclass(); |
| | | // 夿åç§°æ¯å¦ä¸æ · |
| | | if (oldItemName.equals(newItemName)) { |
| | | // åºé´ |
| | | oldProductList.setSection(newProductList.getSection()); |
| | | // è¯æ° |
| | | oldProductList.setCores(newProductList.getCores()); |
| | | // è¦æ±å¼ |
| | | oldProductList.setAsk(newProductList.getAsk()); |
| | | // è¦æ±æè¿° |
| | | oldProductList.setTell(newProductList.getTell()); |
| | | // åä»· |
| | | oldProductList.setPrice(newProductList.getPrice()); |
| | | // å·¥æ¶åç» |
| | | oldProductList.setManHour(newProductList.getManHour()); |
| | | // å¯¼ä½æè´¨ |
| | | oldProductList.setConductorMaterial(newProductList.getConductorMaterial()); |
| | | // 导ä½ç±»å |
| | | oldProductList.setConductorType(newProductList.getConductorType()); |
| | | productLists.add(oldProductList); |
| | | } |
| | | } |
| | | } |
| | | return productLists; |
| | | } |
| | | |
| | | /** |
| | | * æ£éªé¡¹å¤å¶å¯¹æ¯ä¸ä¸ª |
| | | * @param dto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<StandardProductList> copyStandardProductOne(CopyStandardProductListDto dto) { |
| | | if (CollectionUtils.isEmpty(dto.getNewStandardProductList()) && dto.getNewStandardProductList().size() == 1 && |
| | | CollectionUtils.isEmpty(dto.getOldStandardProductList()) && dto.getOldStandardProductList().size() == 1) { |
| | | throw new BaseException("éè¦å¯¹æ¯çæ£éªé¡¹è¯·éæ©ä¸ä¸ª"); |
| | | } |
| | | StandardProductList newProductList = dto.getNewStandardProductList().get(0); |
| | | StandardProductList oldProductList = dto.getOldStandardProductList().get(0); |
| | | // åºé´ |
| | | oldProductList.setSection(newProductList.getSection()); |
| | | // è¯æ° |
| | | oldProductList.setCores(newProductList.getCores()); |
| | | // è¦æ±å¼ |
| | | oldProductList.setAsk(newProductList.getAsk()); |
| | | // è¦æ±æè¿° |
| | | oldProductList.setTell(newProductList.getTell()); |
| | | // åä»· |
| | | oldProductList.setPrice(newProductList.getPrice()); |
| | | // å·¥æ¶åç» |
| | | oldProductList.setManHour(newProductList.getManHour()); |
| | | // å¯¼ä½æè´¨ |
| | | oldProductList.setConductorMaterial(newProductList.getConductorMaterial()); |
| | | // 导ä½ç±»å |
| | | oldProductList.setConductorType(newProductList.getConductorType()); |
| | | List<StandardProductList> productLists = new ArrayList<>(); |
| | | productLists.add(oldProductList); |
| | | return productLists; |
| | | } |
| | | |
| | | /** |
| | | * æ£éªé¡¹å¤å¶æåº |
| | | * @param copyDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean copyStandardProductSort(CopyStandardProductListDto copyDto) { |
| | | List<StandardProductList> productLists = new ArrayList<>(); |
| | | |
| | | // å¯¹æ¯æ£éªé¡¹ä¸æ ·çå¡«å
è¦æ±å¼è¦æ±æè¿° |
| | | for (StandardProductList oldProductList : copyDto.getOldStandardProductList()) { |
| | | String oldItemName = oldProductList.getInspectionItemClassEn() |
| | | + oldProductList.getInspectionItem() |
| | | + oldProductList.getInspectionItemSubclass(); |
| | | for (StandardProductList newProductList : copyDto.getNewStandardProductList()) { |
| | | String newItemName = newProductList.getInspectionItemClassEn() |
| | | + newProductList.getInspectionItem() |
| | | + newProductList.getInspectionItemSubclass(); |
| | | // 夿åç§°æ¯å¦ä¸æ · |
| | | if (oldItemName.equals(newItemName)) { |
| | | StandardProductList standardProductList = new StandardProductList(); |
| | | standardProductList.setId(oldProductList.getId()); |
| | | // å¤å¶æåº |
| | | standardProductList.setSort(newProductList.getSort()); |
| | | productLists.add(standardProductList); |
| | | } |
| | | } |
| | | } |
| | | this.updateBatchById(productLists); |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.inspect.mapper.StandardProductListSupplierAskMapper; |
| | | import com.ruoyi.inspect.pojo.StandardProductListSupplierAsk; |
| | | import com.ruoyi.inspect.service.StandardProductListSupplierAskService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ£éªé¡¹ç®åå®¶å¯åº¦ç»å®è¡¨ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-09-23 |
| | | */ |
| | | @Service |
| | | public class StandardProductListSupplierAskServiceImpl extends ServiceImpl<StandardProductListSupplierAskMapper, StandardProductListSupplierAsk> implements StandardProductListSupplierAskService { |
| | | |
| | | /** |
| | | * æ¥è¯¢åå®¶è¦æ±å¼ç»å® |
| | | * @param supplierAsk |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<StandardProductListSupplierAsk> selectByProductId(StandardProductListSupplierAsk supplierAsk) { |
| | | if (supplierAsk.getProductListId() == null) { |
| | | throw new BaseException("ç¼ºå°æ£éªé¡¹id"); |
| | | } |
| | | return baseMapper.selectList(Wrappers.<StandardProductListSupplierAsk>lambdaQuery() |
| | | .eq(StandardProductListSupplierAsk::getProductListId, supplierAsk.getProductListId())); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢åå®¶è¦æ±å¼ç»å® |
| | | * @param supplierAsk |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Integer addProductSupplierAsk(StandardProductListSupplierAsk supplierAsk) { |
| | | if (supplierAsk.getProductListId() == null) { |
| | | throw new BaseException("缺å°äº§å对象id"); |
| | | } |
| | | // æ¥è¯¢æ¹åå®¶æ¯å¦ç»å®è¿ |
| | | Long count = baseMapper.selectCount(Wrappers.<StandardProductListSupplierAsk>lambdaQuery() |
| | | .eq(StandardProductListSupplierAsk::getProductListId, supplierAsk.getProductListId()) |
| | | .eq(StandardProductListSupplierAsk::getSupplierName, supplierAsk.getSupplierName())); |
| | | if (count > 0){ |
| | | throw new BaseException("该产åå·²ç»å®è¿è¯¥åå®¶"); |
| | | } |
| | | baseMapper.insert(supplierAsk); |
| | | return supplierAsk.getSupplierAskId(); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹åå®¶è¦æ±å¼ç»å® |
| | | * @param supplierAsk |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Integer updateProductSupplierAsk(StandardProductListSupplierAsk supplierAsk) { |
| | | if (supplierAsk.getProductListId() == null) { |
| | | throw new BaseException("ç¼ºå°æ£éªé¡¹id"); |
| | | } |
| | | // æ¥è¯¢æ¹åå®¶æ¯å¦ç»å®è¿ |
| | | Long count = baseMapper.selectCount(Wrappers.<StandardProductListSupplierAsk>lambdaQuery() |
| | | .ne(StandardProductListSupplierAsk::getSupplierAskId, supplierAsk.getSupplierAskId()) |
| | | .eq(StandardProductListSupplierAsk::getProductListId, supplierAsk.getProductListId()) |
| | | .eq(StandardProductListSupplierAsk::getSupplierName, supplierAsk.getSupplierName())); |
| | | if (count > 0){ |
| | | throw new BaseException("该æ£éªé¡¹å·²ç»å®è¿è¯¥åå®¶"); |
| | | } |
| | | baseMapper.updateById(supplierAsk); |
| | | return supplierAsk.getSupplierAskId(); |
| | | } |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service.impl; |
| | | |
| | | import cn.hutool.core.date.DateUtil; |
| | | 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.ruoyi.common.numgen.NumberGenerator; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.inspect.mapper.StandardTemplateMapper; |
| | | import com.ruoyi.inspect.pojo.StandardTemplate; |
| | | import com.ruoyi.inspect.service.StandardTemplateService; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author Administrator |
| | | * @description é对表ãstandard_template(æ 忍¡æ¿)ãçæ°æ®åºæä½Serviceå®ç° |
| | | * @createDate 2024-03-11 13:47:52 |
| | | */ |
| | | @Service |
| | | @AllArgsConstructor |
| | | public class StandardTemplateServiceImpl extends ServiceImpl<StandardTemplateMapper, StandardTemplate> |
| | | implements StandardTemplateService{ |
| | | |
| | | private StandardTemplateMapper standardTemplateMapper; |
| | | |
| | | |
| | | private final NumberGenerator<StandardTemplate> numberGenerator; |
| | | |
| | | @Override |
| | | public IPage<StandardTemplate> selectStandardTemplatePageList(Page page, StandardTemplate standardTemplate) { |
| | | return standardTemplateMapper.selectStandardTemplatePageList(page, QueryWrappers.queryWrappers(standardTemplate)); |
| | | } |
| | | |
| | | @Override |
| | | public int addStandardTemplate(StandardTemplate standardTemplate) { |
| | | if (StringUtils.isBlank(standardTemplate.getNumber())) { |
| | | String giveCode = numberGenerator.generateNumberWithPrefix(5, |
| | | "MB" + DateUtil.format(new Date(), "yyMM"), |
| | | StandardTemplate::getNumber); |
| | | standardTemplate.setNumber(giveCode); |
| | | } |
| | | return standardTemplateMapper.insert(standardTemplate); |
| | | } |
| | | |
| | | @Override |
| | | public int upStandardTemplate(StandardTemplate standardTemplate) { |
| | | if(standardTemplate.getThing().equals("")){ |
| | | standardTemplate.setThing(null); |
| | | } |
| | | return standardTemplateMapper.updateById(standardTemplate); |
| | | } |
| | | |
| | | @Override |
| | | public int delStandardTemplate(Integer id) { |
| | | return standardTemplateMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public List<StandardTemplate> getStandardTemplate() { |
| | | return standardTemplateMapper.selectList(Wrappers.<StandardTemplate>lambdaQuery().select(StandardTemplate::getId,StandardTemplate::getName)); |
| | | } |
| | | |
| | | @Override |
| | | public String getStandTempThingById(Integer templateId) { |
| | | StandardTemplate standardTemplate = standardTemplateMapper.selectOne(Wrappers.<StandardTemplate>lambdaQuery() |
| | | .eq(StandardTemplate::getId, templateId) |
| | | .select(StandardTemplate::getThing)); |
| | | if(standardTemplate==null){ |
| | | return null; |
| | | }else{ |
| | | return standardTemplate.getThing(); |
| | | } |
| | | // æ¥è¯¢å缩åçæ°æ® |
| | | // String thing = standardTemplateMapper.selectCompressThing(templateId); |
| | | // if (StringUtils.isNotBlank(thing)) { |
| | | // try { |
| | | // return DecompressMySQLData.decompress(java.util.Base64.getDecoder().decode(thing)); |
| | | // } catch (Exception e) { |
| | | // throw new RuntimeException(e); |
| | | // } |
| | | // } else { |
| | | // return null; |
| | | // } |
| | | } |
| | | |
| | | @Override |
| | | public String getStandTempNameById(Integer templateId) { |
| | | StandardTemplate standardTemplate = standardTemplateMapper.selectOne(Wrappers.<StandardTemplate>lambdaQuery() |
| | | .eq(StandardTemplate::getId, templateId) |
| | | .select(StandardTemplate::getName)); |
| | | if(standardTemplate==null){ |
| | | return null; |
| | | }else{ |
| | | return standardTemplate.getName(); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public StandardTemplate getStandTempIdByName(String name) { |
| | | return standardTemplateMapper.getStandTempIdByName(name); |
| | | } |
| | | |
| | | /** |
| | | * å¤å¶åå§è®°å½æ¨¡æ¿ |
| | | * @param newTemplate |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int copyStandardTemplate(StandardTemplate newTemplate) { |
| | | // æ¥è¯¢æ§æ¨¡æ¿ |
| | | StandardTemplate standardTemplate = baseMapper.selectById(newTemplate.getId()); |
| | | newTemplate.setThing(standardTemplate.getThing()); |
| | | |
| | | if (StringUtils.isBlank(newTemplate.getNumber())) { |
| | | String giveCode = numberGenerator.generateNumberWithPrefix(5, |
| | | "MB" + DateUtil.format(new Date(), "yyMM"), |
| | | StandardTemplate::getNumber); |
| | | newTemplate.setNumber(giveCode); |
| | | } |
| | | newTemplate.setId(null); |
| | | |
| | | return standardTemplateMapper.insert(newTemplate); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service.impl; |
| | | |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import cn.hutool.poi.excel.ExcelUtil; |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.inspect.dto.FactoryDto; |
| | | import com.ruoyi.inspect.dto.LaboratoryDto; |
| | | import com.ruoyi.inspect.dto.SampleTypeDto; |
| | | import com.ruoyi.inspect.mapper.StandardProductListMapper; |
| | | import com.ruoyi.inspect.mapper.StandardTreeMapper; |
| | | import com.ruoyi.inspect.pojo.StandardProductList; |
| | | import com.ruoyi.inspect.pojo.StandardTemplate; |
| | | import com.ruoyi.inspect.pojo.StandardTree; |
| | | import com.ruoyi.inspect.pojo.StructureTestObject; |
| | | import com.ruoyi.inspect.service.*; |
| | | import lombok.AllArgsConstructor; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.IOException; |
| | | import java.io.InputStream; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.concurrent.atomic.AtomicReference; |
| | | |
| | | /** |
| | | * @author Administrator |
| | | * @description é对表ãstandard_tree(æ åæ )ãçæ°æ®åºæä½Serviceå®ç° |
| | | * @createDate 2024-03-01 15:06:44 |
| | | */ |
| | | @Service |
| | | @AllArgsConstructor |
| | | public class StandardTreeServiceImpl extends ServiceImpl<StandardTreeMapper, StandardTree> |
| | | implements StandardTreeService { |
| | | |
| | | |
| | | private StandardTreeMapper standardTreeMapper; |
| | | |
| | | private StandardMethodListService standardMethodListService; |
| | | |
| | | private StandardProductListMapper standardProductListMapper; |
| | | |
| | | private StandardProductListService standardProductListService; |
| | | |
| | | private StandardTemplateService standardTemplateService; |
| | | |
| | | private StructureTestObjectService structureTestObjectService; |
| | | |
| | | |
| | | @Override |
| | | public List<FactoryDto> selectStandardTreeList() { |
| | | List<FactoryDto> factoryDtos = standardTreeMapper.selectStandardTreeList(); |
| | | for (FactoryDto factoryDto : factoryDtos) { |
| | | for (LaboratoryDto laboratoryDto : factoryDto.getChildren()) { |
| | | laboratoryDto.getChildren().sort((o1, o2) -> (o1.getSort() == null ? 0 : o1.getSort()) |
| | | - (o2.getSort() == null ? 0 : o2.getSort())); |
| | | for (SampleTypeDto sampleTypeDto : laboratoryDto.getChildren()) { |
| | | // if (sampleTypeDto.getChildren().size() == 0) { |
| | | sampleTypeDto.getChildren().addAll(standardTreeMapper.getStandardTree3(sampleTypeDto.getValue())); |
| | | // } |
| | | } |
| | | } |
| | | } |
| | | return factoryDtos; |
| | | } |
| | | |
| | | |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int addStandardTree(StandardTree standardTree) { |
| | | LambdaQueryWrapper<StandardTree> wrapper = Wrappers.<StandardTree>lambdaQuery() |
| | | .eq(StandardTree::getFactory, standardTree.getFactory()) |
| | | .eq(StandardTree::getLaboratory, standardTree.getLaboratory()) |
| | | .eq(StandardTree::getSampleType, standardTree.getSampleType()) |
| | | .eq(StandardTree::getSample, standardTree.getSample()) |
| | | .eq(StandardTree::getModel, standardTree.getModel()); |
| | | if (StringUtils.isNotBlank(standardTree.getSample())) { |
| | | wrapper.eq(StandardTree::getSample, standardTree.getSample()); |
| | | } |
| | | |
| | | StandardTree tree = standardTreeMapper.selectOne(wrapper); |
| | | if (tree != null) { |
| | | throw new BaseException("该åå·å·²åå¨"); |
| | | } |
| | | return standardTreeMapper.insert(standardTree); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int delStandardTree(String tree) { |
| | | String[] trees = tree.split(" - "); |
| | | switch (trees.length) { |
| | | case 5: |
| | | if (trees[3].equals("null")) { |
| | | standardTreeMapper.delete(Wrappers.<StandardTree>lambdaUpdate().eq(StandardTree::getFactory, trees[0]).eq(StandardTree::getLaboratory, trees[1]).eq(StandardTree::getSampleType, trees[2]).isNull(StandardTree::getSample).eq(StandardTree::getModel, trees[4])); |
| | | } else { |
| | | standardTreeMapper.delete(Wrappers.<StandardTree>lambdaUpdate().eq(StandardTree::getFactory, trees[0]).eq(StandardTree::getLaboratory, trees[1]).eq(StandardTree::getSampleType, trees[2]).eq(StandardTree::getSample, trees[3]).eq(StandardTree::getModel, trees[4])); |
| | | } |
| | | break; |
| | | /*case 4: |
| | | standardTreeMapper.delete(Wrappers.<StandardTree>lambdaUpdate().eq(StandardTree::getFactory, trees[0]).eq(StandardTree::getLaboratory, trees[1]).eq(StandardTree::getSampleType, trees[2]).eq(StandardTree::getSample, trees[3])); |
| | | break; |
| | | case 3: |
| | | standardTreeMapper.delete(Wrappers.<StandardTree>lambdaUpdate().eq(StandardTree::getFactory, trees[0]).eq(StandardTree::getLaboratory, trees[1]).eq(StandardTree::getSampleType, trees[2])); |
| | | break; |
| | | case 2: |
| | | standardTreeMapper.delete(Wrappers.<StandardTree>lambdaUpdate().eq(StandardTree::getFactory, trees[0]).eq(StandardTree::getLaboratory, trees[1])); |
| | | break; |
| | | case 1: |
| | | standardTreeMapper.delete(Wrappers.<StandardTree>lambdaUpdate().eq(StandardTree::getFactory, trees[0])); |
| | | break;*/ |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int addStandardProduct(String ids, String tree) { |
| | | String[] trees = tree.split(" - "); |
| | | JSONArray jsonArray = JSON.parseArray(ids); |
| | | for (Object o : jsonArray) { |
| | | StandardProductList standardProductList = standardTreeMapper.selectStandardProductById(Integer.parseInt("" + o)); |
| | | standardProductList.setFactory(trees[0]); |
| | | try { |
| | | standardProductList.setLaboratory(trees[1]); |
| | | } catch (Exception e) { |
| | | } |
| | | try { |
| | | standardProductList.setSampleType(trees[2]); |
| | | } catch (Exception e) { |
| | | } |
| | | try { |
| | | standardProductList.setSample(trees[3]); |
| | | } catch (Exception e) { |
| | | } |
| | | try { |
| | | standardProductList.setModel(trees[4]); |
| | | } catch (Exception e) { |
| | | } |
| | | standardProductListMapper.insert(standardProductList); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | @Override |
| | | public List<SampleTypeDto> getStandardTree2() { |
| | | return standardTreeMapper.getStandardTree2(); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int upStandardProducts(Map<String, Object> product) { |
| | | List<Integer> ids = JSON.parseArray(product.get("ids") + ""); |
| | | StandardProductList productList = JSON.parseObject(JSON.toJSONString(product.get("standardProductList")), StandardProductList.class); |
| | | if (productList.getMethodS() != null) { |
| | | standardProductListMapper.update(productList, Wrappers.<StandardProductList>lambdaUpdate().in(StandardProductList::getId, ids).like(StandardProductList::getMethod, productList.getMethodS())); |
| | | return 1; |
| | | } |
| | | if (productList.getRadiusList() != null) { |
| | | standardProductListMapper.update(productList, Wrappers.<StandardProductList>lambdaUpdate().in(StandardProductList::getId, ids).like(StandardProductList::getRadiusList, productList.getRadius())); |
| | | return 1; |
| | | } |
| | | standardProductListMapper.update(productList, Wrappers.<StandardProductList>lambdaUpdate().in(StandardProductList::getId, ids)); |
| | | return 1; |
| | | } |
| | | |
| | | @Override |
| | | public List<StandardTree> getStandTreeBySampleType(String laboratory, String sampleType) { |
| | | return standardTreeMapper.selectList(Wrappers.<StandardTree>lambdaQuery() |
| | | .eq(StandardTree::getLaboratory, laboratory) |
| | | .eq(StandardTree::getSampleType, sampleType) |
| | | .select(StandardTree::getModel, StandardTree::getSample)); |
| | | } |
| | | |
| | | /** |
| | | * æ²³å£æ£æµä¸å¿å¯¼å
¥ |
| | | * @param file |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void inExcelOfTree(MultipartFile file) { |
| | | InputStream inputStream; |
| | | try { |
| | | inputStream = file.getInputStream(); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | List<StandardProductList> lists = new ArrayList<>(); |
| | | AtomicReference<String> laboratory = new AtomicReference<>(); |
| | | ExcelUtil.readBySax(inputStream, 0, (i, l, list) -> { |
| | | StandardProductList str = new StandardProductList(); |
| | | if (i == 0 && l == 1) { |
| | | laboratory.set(standardTreeMapper.getLaboratory(list.get(1) + "")); |
| | | if (laboratory.get() == null) { |
| | | throw new BaseException("æ£éªå¯¹è±¡ä¸åå¨ï¼" + list.get(1)); |
| | | } |
| | | } |
| | | if (i == 0 && l >= 1) { |
| | | Integer standardMethodId = standardMethodListService.getStandardMethodId(list.get(0) + ""); |
| | | if (standardMethodId == null) { |
| | | throw new BaseException("æ åç¼å·ä¸åå¨ï¼" + list.get(0)); |
| | | } |
| | | str.setStandardMethodListId(standardMethodId); |
| | | str.setSampleType(list.get(1) + ""); |
| | | if (list.get(2) != null) { |
| | | String sample = baseMapper.selSample(list.get(2) + ""); |
| | | if (sample == null) { |
| | | throw new BaseException("æ ·åä¸åå¨ï¼" + list.get(2)); |
| | | } |
| | | str.setSample(list.get(2) + ""); |
| | | } else { |
| | | str.setSample(null); |
| | | } |
| | | if (list.get(3) != null) { |
| | | str.setModel(list.get(3) + ""); |
| | | Long aLong = standardTreeMapper.selectCount(Wrappers.<StandardTree>lambdaQuery() |
| | | .eq(StandardTree::getModel, str.getModel()) |
| | | .eq(StandardTree::getSampleType, list.get(1) + "")); |
| | | if (aLong == 0) { |
| | | StandardTree standardTree = new StandardTree(); |
| | | standardTree.setFactory("ä¸å¤©ç§ææ£æµä¸å¿"); |
| | | standardTree.setLaboratory(laboratory.get()); |
| | | standardTree.setSampleType(str.getSampleType()); |
| | | standardTree.setSample(str.getSample()); |
| | | standardTree.setModel(str.getModel()); |
| | | standardTreeMapper.insert(standardTree); |
| | | } |
| | | } else { |
| | | str.setModel(null); |
| | | } |
| | | str.setInspectionItem(list.get(4) + ""); |
| | | if (list.get(6) == null) { |
| | | str.setInspectionItemSubclass(""); |
| | | } else { |
| | | str.setInspectionItemSubclass(list.get(6).toString()); |
| | | } |
| | | StandardProductList db_str; |
| | | try { |
| | | db_str = standardProductListMapper.getOne(str.getStandardMethodListId(), str.getInspectionItem(), str.getSample(), str.getInspectionItemSubclass(), str.getModel(), str.getInspectionItemClass()); |
| | | } catch (Exception e) { |
| | | throw new BaseException("é夿¥è¯¢ï¼" + str.getInspectionItem() + " " + str.getInspectionItemSubclass()); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(db_str)) { |
| | | str.setId(db_str.getId()); |
| | | str.setStructureItemParameterId(db_str.getStructureItemParameterId()); |
| | | } |
| | | if (list.get(8) != null) { |
| | | str.setMethodS(list.get(8) + ""); |
| | | } |
| | | |
| | | if (list.get(11) == null) { |
| | | str.setTell(null); |
| | | } else { |
| | | str.setTell(list.get(11).toString()); |
| | | } |
| | | |
| | | if (list.get(12) == null) { |
| | | str.setAsk(null); |
| | | } else { |
| | | str.setAsk(list.get(12).toString()); |
| | | } |
| | | |
| | | if (list.get(13) == null) { |
| | | str.setPrice(null); |
| | | } else { |
| | | str.setPrice((list.get(13).toString())); |
| | | } |
| | | |
| | | if (list.get(14) == null) { |
| | | str.setManHour(null); |
| | | } else { |
| | | str.setManHour(list.get(14).toString()); |
| | | } |
| | | |
| | | StandardTemplate standTempIdByName = standardTemplateService.getStandTempIdByName(String.valueOf(list.get(21))); |
| | | if (standTempIdByName != null) { |
| | | str.setTemplateId(standTempIdByName.getId()); |
| | | } else { |
| | | throw new BaseException("模æ¿ä¸åå¨ï¼" + list.get(21)); |
| | | } |
| | | str.setFactory("ä¸å¤©ç§ææ£æµä¸å¿"); |
| | | str.setLaboratory(laboratory.get()); |
| | | str.setState(1); |
| | | str.setTree(str.getFactory() + " - " + str.getLaboratory() + " - " + str.getSampleType() + " - " + str.getSample() + " - " + (str.getModel() == null ? "" : str.getModel())); |
| | | try { |
| | | str.setStructureItemParameterId(standardTreeMapper.getStructureItemParameterId("\"" + str.getSampleType() + "\"", str.getInspectionItem(), str.getInspectionItemSubclass(), str.getInspectionItemClass())); |
| | | } catch (Exception e) { |
| | | str.setStructureItemParameterId(standardTreeMapper.getStructureItemParameterId("\"" + str.getSampleType() + "\",\"" + str.getSample() + "\"", str.getInspectionItem(), str.getInspectionItemSubclass(), str.getInspectionItemClass())); |
| | | } |
| | | if (str.getStructureItemParameterId() == null) { |
| | | throw new BaseException("æ£éªé¡¹ç®ä¸åå¨ï¼" + str.getInspectionItem() + " " + str.getInspectionItemSubclass()); |
| | | } |
| | | lists.add(str); |
| | | } |
| | | }); |
| | | lists.forEach(a -> { |
| | | if (a.getId() != null) { |
| | | standardProductListMapper.updateById(a); |
| | | } else { |
| | | standardProductListMapper.insert(a); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | @Override |
| | | public void importWorkstationExcel(MultipartFile file) { |
| | | InputStream inputStream; |
| | | try { |
| | | inputStream = file.getInputStream(); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | List<StandardProductList> lists = new ArrayList<>(); |
| | | AtomicReference<String> laboratory = new AtomicReference<>(); |
| | | ExcelUtil.readBySax(inputStream, 0, (i, l, list) -> { |
| | | StandardProductList str = new StandardProductList(); |
| | | if (i == 0 && l == 1) { |
| | | laboratory.set(standardTreeMapper.getLaboratory(list.get(1) + "")); |
| | | if (laboratory.get() == null) { |
| | | throw new BaseException("æ£éªå¯¹è±¡ä¸åå¨ï¼" + list.get(1)); |
| | | } |
| | | } |
| | | if (i == 0 && l >= 1) { |
| | | Integer standardMethodId = standardMethodListService.getStandardMethodId(list.get(0) + ""); |
| | | if (standardMethodId == null) { |
| | | throw new BaseException("æ åç¼å·ä¸åå¨ï¼" + list.get(0)); |
| | | } |
| | | str.setStandardMethodListId(standardMethodId); |
| | | str.setSampleType(list.get(1) + ""); |
| | | if (list.get(2) != null) { |
| | | String sample = baseMapper.selSample(list.get(2) + ""); |
| | | if (sample == null) { |
| | | throw new BaseException("æ ·åä¸åå¨ï¼" + list.get(2)); |
| | | } |
| | | str.setSample(list.get(2) + ""); |
| | | } else { |
| | | str.setSample(null); |
| | | } |
| | | if (list.get(3) != null) { |
| | | str.setModel(list.get(3) + ""); |
| | | Long aLong = standardTreeMapper.selectCount(Wrappers.<StandardTree>lambdaQuery() |
| | | .eq(StandardTree::getModel, str.getModel()) |
| | | .eq(StandardTree::getSampleType, list.get(1) + "")); |
| | | if (aLong == 0) { |
| | | StandardTree standardTree = new StandardTree(); |
| | | standardTree.setFactory("ä¸å¤©ç§ææ£æµä¸å¿"); |
| | | standardTree.setLaboratory(laboratory.get()); |
| | | standardTree.setSampleType(str.getSampleType()); |
| | | standardTree.setSample(str.getSample()); |
| | | standardTree.setModel(str.getModel()); |
| | | standardTreeMapper.insert(standardTree); |
| | | } |
| | | } else { |
| | | str.setModel(null); |
| | | } |
| | | str.setInspectionItemClass(list.get(4).toString()); |
| | | str.setInspectionItemClassEn(list.get(5).toString()); |
| | | // å¼å§å 2 |
| | | str.setInspectionItem(list.get(6) + ""); |
| | | if (list.get(8) == null) { |
| | | str.setInspectionItemSubclass(""); |
| | | } else { |
| | | str.setInspectionItemSubclass(list.get(8).toString()); |
| | | } |
| | | StandardProductList db_str; |
| | | try { |
| | | db_str = standardProductListMapper.getOne(str.getStandardMethodListId(), str.getInspectionItem(), str.getSample(), str.getInspectionItemSubclass(), str.getModel(), str.getInspectionItemClass()); |
| | | } catch (Exception e) { |
| | | throw new BaseException("é夿¥è¯¢ï¼" + str.getInspectionItem() + " " + str.getInspectionItemSubclass()); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(db_str)) { |
| | | str.setId(db_str.getId()); |
| | | str.setStructureItemParameterId(db_str.getStructureItemParameterId()); |
| | | } |
| | | if (list.get(10) != null) { |
| | | str.setMethodS(list.get(10) + ""); |
| | | } |
| | | if (list.get(13) == null) { |
| | | str.setTell(null); |
| | | } else { |
| | | str.setTell(list.get(13).toString()); |
| | | } |
| | | |
| | | if (list.get(14) == null) { |
| | | str.setAsk(null); |
| | | } else { |
| | | str.setAsk(list.get(14).toString()); |
| | | } |
| | | |
| | | if (list.get(15) == null) { |
| | | str.setPrice(null); |
| | | } else { |
| | | str.setPrice((list.get(15).toString())); |
| | | } |
| | | |
| | | if (list.get(16) == null) { |
| | | str.setManHour(null); |
| | | } else { |
| | | str.setManHour(list.get(16).toString()); |
| | | } |
| | | |
| | | StandardTemplate standTempIdByName = standardTemplateService.getStandTempIdByName(String.valueOf(list.get(23))); |
| | | if (standTempIdByName != null) { |
| | | str.setTemplateId(standTempIdByName.getId()); |
| | | } else { |
| | | throw new BaseException("模æ¿ä¸åå¨ï¼" + list.get(23)); |
| | | } |
| | | str.setFactory("ä¸å¤©ç§ææ£æµä¸å¿"); |
| | | str.setLaboratory(laboratory.get()); |
| | | str.setState(1); |
| | | str.setTree(str.getFactory() + " - " + str.getLaboratory() + " - " + str.getSampleType() + " - " + str.getSample() + " - " + (str.getModel() == null ? "" : str.getModel())); |
| | | try { |
| | | str.setStructureItemParameterId(standardTreeMapper.getStructureItemParameterId("\"" + str.getSampleType() + "\"", str.getInspectionItem(), str.getInspectionItemSubclass(), str.getInspectionItemClass())); |
| | | } catch (Exception e) { |
| | | str.setStructureItemParameterId(standardTreeMapper.getStructureItemParameterId("\"" + str.getSampleType() + "\",\"" + str.getSample() + "\"", str.getInspectionItem(), str.getInspectionItemSubclass(), str.getInspectionItemClass())); |
| | | } |
| | | if (str.getStructureItemParameterId() == null) { |
| | | throw new BaseException("æ£éªé¡¹ç®ä¸åå¨ï¼" + str.getInspectionItem() + " " + str.getInspectionItemSubclass()); |
| | | } |
| | | lists.add(str); |
| | | } |
| | | }); |
| | | lists.forEach(a -> { |
| | | if (a.getId() != null) { |
| | | standardProductListMapper.updateById(a); |
| | | } else { |
| | | standardProductListMapper.insert(a); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | @Override |
| | | public boolean updateTreeSort(List<FactoryDto> list) { |
| | | List<StructureTestObject> testObjects = new ArrayList<>(); |
| | | for (FactoryDto factoryDto : list) { |
| | | for (LaboratoryDto laboratoryDto : factoryDto.getChildren()) { |
| | | List<SampleTypeDto> children = laboratoryDto.getChildren(); |
| | | int sort = 0; |
| | | // 循ç¯ç¬¬ä¸å± |
| | | for (SampleTypeDto child : children) { |
| | | StructureTestObject structureTestObject = new StructureTestObject(); |
| | | structureTestObject.setSort(sort); |
| | | structureTestObject.setId(child.getSampleTypeId()); |
| | | testObjects.add(structureTestObject); |
| | | sort++; |
| | | } |
| | | } |
| | | } |
| | | structureTestObjectService.updateBatchById(testObjects); |
| | | |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ åæ° |
| | | * @param standardTree |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int updateStandardTree(StandardTree standardTree) { |
| | | // ä¿®æ¹åç§°å¹é
çæ åæ ä¸çæ£éªé¡¹ç® |
| | | // æ¥è¯¢ææå¯¹è±¡+åç§°çæ |
| | | |
| | | List<StandardProductList> standardProductLists = standardProductListService.list(Wrappers.<StandardProductList>lambdaUpdate() |
| | | .eq(StandardProductList::getSample, standardTree.getSample()) |
| | | .eq(StandardProductList::getSampleType, standardTree.getSampleType()) |
| | | .eq(StandardProductList::getModel, standardTree.getOldModel())); |
| | | if (CollectionUtils.isNotEmpty(standardProductLists)) { |
| | | for (StandardProductList standardProductList : standardProductLists) { |
| | | // ä¿®æ¹æ ·ååç§° |
| | | standardProductList.setModel(standardTree.getModel()); |
| | | // ä¿®æ¹æ åç§° |
| | | // éè¦æªå第å级, é¿å
ä¸å级åç§°ä¸æ ·ä¿®æ¹é误 |
| | | String[] trees = standardProductList.getTree().split(" - "); |
| | | trees[4] = standardTree.getModel(); |
| | | List<String> list = CollUtil.newArrayList(trees); |
| | | String newName = CollUtil.join(list, " - "); |
| | | standardProductList.setTree(newName); |
| | | } |
| | | standardProductListService.updateBatchById(standardProductLists); |
| | | } |
| | | |
| | | // ä¿®æ¹æ åæ°æ£éªé¡¹ç® |
| | | LambdaUpdateWrapper<StandardTree> wrapper = Wrappers.<StandardTree>lambdaUpdate() |
| | | .eq(StandardTree::getFactory, standardTree.getFactory()) |
| | | .eq(StandardTree::getLaboratory, standardTree.getLaboratory()) |
| | | .eq(StandardTree::getSampleType, standardTree.getSampleType()) |
| | | .eq(StandardTree::getModel, standardTree.getOldModel()) |
| | | .set(StandardTree::getModel, standardTree.getModel()); |
| | | if (StringUtils.isNotBlank(standardTree.getSample())) { |
| | | wrapper.eq(StandardTree::getSample, standardTree.getSample()); |
| | | } |
| | | return standardTreeMapper.update(null, wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public void resetTreeOfPrice(String tree, Integer standardId) { |
| | | standardProductListMapper.update(null, Wrappers.<StandardProductList>lambdaUpdate().like(StandardProductList::getTree, tree).eq(StandardProductList::getStandardMethodListId, standardId).set(StandardProductList::getPrice, null)); |
| | | } |
| | | |
| | | @Override |
| | | public void resetTreeOfHour(String tree, Integer standardId) { |
| | | standardProductListMapper.update(null, Wrappers.<StandardProductList>lambdaUpdate().like(StandardProductList::getTree, tree).eq(StandardProductList::getStandardMethodListId, standardId).set(StandardProductList::getManHour, null)); |
| | | } |
| | | |
| | | @Override |
| | | public void resetTreeOfAsk(String tree, Integer standardId) { |
| | | standardProductListMapper.update(null, Wrappers.<StandardProductList>lambdaUpdate().like(StandardProductList::getTree, tree).eq(StandardProductList::getStandardMethodListId, standardId) |
| | | .set(StandardProductList::getAsk, null) |
| | | .set(StandardProductList::getTell, null) |
| | | .set(StandardProductList::getSection, null) |
| | | .set(StandardProductList::getCores, null) |
| | | .set(StandardProductList::getConductorMaterial, null) |
| | | .set(StandardProductList::getConductorType, null) |
| | | .set(StandardProductList::getPrice, null) |
| | | .set(StandardProductList::getManHour, null)); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service.impl; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.inspect.mapper.StructureItemParameterMapper; |
| | | import com.ruoyi.inspect.pojo.StructureItemParameter; |
| | | import com.ruoyi.inspect.service.StructureItemParameterService; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @Service |
| | | @AllArgsConstructor |
| | | public class StructureItemParameterServiceImpl extends ServiceImpl<StructureItemParameterMapper, StructureItemParameter> implements StructureItemParameterService { |
| | | |
| | | @Resource |
| | | private StructureItemParameterMapper structureItemParameterMapper; |
| | | |
| | | @Override |
| | | public void removeNoSample(String sample) { |
| | | structureItemParameterMapper.removeNoSample("\""+sample+"\""); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | 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.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.inspect.mapper.ProductPartMapper; |
| | | import com.ruoyi.inspect.mapper.StructureTestObjectPartMapper; |
| | | import com.ruoyi.inspect.pojo.ProductPart; |
| | | import com.ruoyi.inspect.pojo.StructureTestObjectPart; |
| | | import com.ruoyi.inspect.service.StructureTestObjectPartService; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | /** |
| | | * æ£éªå¯¹è±¡é¶ä»¶è¡¨ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-08-07 |
| | | */ |
| | | @Transactional |
| | | @Service |
| | | @AllArgsConstructor |
| | | public class StructureTestObjectPartServiceImpl extends ServiceImpl<StructureTestObjectPartMapper, StructureTestObjectPart> implements StructureTestObjectPartService { |
| | | |
| | | private ProductPartMapper productPartMapper; |
| | | |
| | | @Override |
| | | public IPage<StructureTestObjectPart> selectByTestObjectId(Page page, StructureTestObjectPart structureTestObjectPart) { |
| | | return baseMapper.selectListByTestObjectId(page, QueryWrappers.queryWrappers(structureTestObjectPart),structureTestObjectPart.getTestObjectId()); |
| | | } |
| | | |
| | | @Override |
| | | public void addTestObjectPart(StructureTestObjectPart structureTestObjectPart) { |
| | | this.isPartNoExist(structureTestObjectPart.getPartNo(), null); |
| | | if (structureTestObjectPart.getTestObjectId() == null) { |
| | | throw new BaseException("缺å°äº§å对象id"); |
| | | } |
| | | baseMapper.insert(structureTestObjectPart); |
| | | } |
| | | |
| | | @Override |
| | | public void updateTestObjectPart(StructureTestObjectPart structureTestObjectPart) { |
| | | this.isPartNoExist(structureTestObjectPart.getPartNo(), structureTestObjectPart.getId()); |
| | | if (structureTestObjectPart.getTestObjectId() == null) { |
| | | throw new BaseException("缺å°äº§å对象id"); |
| | | } |
| | | baseMapper.updateById(structureTestObjectPart); |
| | | } |
| | | |
| | | // 夿é¶ä»¶å·æ¯å¦åå¨ |
| | | public void isPartNoExist(String partNo, Integer id) { |
| | | // é¶ä»¶å·å¯ä¸ ä½ä¸å¿
å¡« |
| | | if (StringUtils.isNotBlank(partNo)) { |
| | | Long count = productPartMapper.selectCount(new LambdaQueryWrapper<ProductPart>() |
| | | .eq(ProductPart::getPartNo, partNo)); |
| | | Long selectCount = baseMapper.selectCount(Wrappers.<StructureTestObjectPart>lambdaQuery() |
| | | .eq(StructureTestObjectPart::getPartNo, partNo) |
| | | .ne(id != null, StructureTestObjectPart::getId, id)); |
| | | if (count > 0 || selectCount > 0) { |
| | | throw new BaseException("该é¶ä»¶å·å·²ç»å®è¿æ£éªå¯¹è±¡"); |
| | | } |
| | | } else { |
| | | throw new BaseException("请è¾å
¥é¶ä»¶å·"); |
| | | } |
| | | } |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.inspect.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.inspect.mapper.StructureTestObjectMapper; |
| | | import com.ruoyi.inspect.pojo.StructureTestObject; |
| | | import com.ruoyi.inspect.service.StructureTestObjectService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * æ£æµå¯¹è±¡ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-09-13 |
| | | */ |
| | | @Service |
| | | public class StructureTestObjectServiceImpl extends ServiceImpl<StructureTestObjectMapper, StructureTestObject> implements StructureTestObjectService { |
| | | |
| | | } |
| | | |
| | |
| | | <?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.basic.mapper.CertificationMapper"> |
| | | <select id="getCertificationDetail" resultType="com.ruoyi.basic.pojo.Certification"> |
| | | <select id="getCertificationDetail" resultType="com.ruoyi.inspect.pojo.Certification"> |
| | | select b.* |
| | | from ( select a.`name`, a.`code`,a.organization,a.explanation,a.first_issuance_date,a.latest_issuance_date,c.expire_time FROM |
| | | (SELECT id,name,MIN(date_of_issuance) AS first_issuance_date, |
| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
| | | <mapper namespace="com.ruoyi.basic.mapper.IfsInventoryQuantityMapper"> |
| | | |
| | | <select id="printLabel" resultType="com.ruoyi.basic.dto.IfsInventoryQuantityDto"> |
| | | <select id="printLabel" resultType="com.ruoyi.inspect.dto.IfsInventoryQuantityDto"> |
| | | SELECT io.sample sample_name, |
| | | iiq.supplier_name, |
| | | io.part_detail part_desc, |
| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.basic.mapper.LaboratoryMapper"> |
| | | |
| | | <select id="selectItemParameter" resultType="com.ruoyi.basic.pojo.Laboratory"> |
| | | <select id="selectItemParameter" resultType="com.ruoyi.inspect.pojo.Laboratory"> |
| | | select * from |
| | | ( |
| | | select l.id, |
| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.basic.mapper.ProductMapper"> |
| | | |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.basic.pojo.Product"> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.inspect.pojo.Product"> |
| | | <id property="id" column="id" jdbcType="INTEGER"/> |
| | | <result property="name" column="name" jdbcType="VARCHAR"/> |
| | | <result property="nameEn" column="name_en" jdbcType="VARCHAR"/> |
| | |
| | | create_user,update_user,create_time, |
| | | update_time,object_id |
| | | </sql> |
| | | <select id="selectProductListByObjectId" resultType="com.ruoyi.basic.pojo.Product"> |
| | | <select id="selectProductListByObjectId" resultType="com.ruoyi.inspect.pojo.Product"> |
| | | select * from ( |
| | | select p.id, |
| | | p.name, |
| | |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.basic.mapper.ProductPartMapper"> |
| | | <select id="selectListByProductId" resultType="com.ruoyi.basic.pojo.ProductPart"> |
| | | <select id="selectListByProductId" resultType="com.ruoyi.inspect.pojo.ProductPart"> |
| | | SELECT * from product_part pp |
| | | where pp.product_id=#{productId} |
| | | </select> |
| | |
| | | <?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.basic.mapper.ProductSupplierDensityMapper"> |
| | | <select id="selectListByProductId" resultType="com.ruoyi.basic.pojo.ProductSupplierDensity"> |
| | | <select id="selectListByProductId" resultType="com.ruoyi.inspect.pojo.ProductSupplierDensity"> |
| | | SELECT * from product_supplier_density pp |
| | | where pp.product_id=#{productId} |
| | | </select> |
| | |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.basic.mapper.SealMapper"> |
| | | <select id="selectSeal" resultType="com.ruoyi.basic.pojo.Seal"> |
| | | <select id="selectSeal" resultType="com.ruoyi.inspect.pojo.Seal"> |
| | | select l.id,s.lab_id,l.laboratory_name ,s.address, s.type as Type,s.create_time |
| | | from seal s LEFT JOIN laboratory l on s.lab_id=l.id |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | |
| | | </if> |
| | | |
| | | </select> |
| | | <select id="selectLaboratory" resultType="com.ruoyi.basic.pojo.Laboratory"> |
| | | <select id="selectLaboratory" resultType="com.ruoyi.inspect.pojo.Laboratory"> |
| | | SELECT * |
| | | from laboratory |
| | | WHERE id = #{labId} |
| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.basic.mapper.StandardMethodListMapper"> |
| | | |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.basic.pojo.StandardMethodList"> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.inspect.pojo.StandardMethodList"> |
| | | <id property="id" column="id" jdbcType="INTEGER"/> |
| | | <result property="code" column="code" jdbcType="VARCHAR"/> |
| | | <result property="name" column="name" jdbcType="VARCHAR"/> |
| | |
| | | from user |
| | | where id = #{id} |
| | | </select> |
| | | <select id="selectStandardMethodLists" resultType="com.ruoyi.basic.pojo.StandardMethodList"> |
| | | <select id="selectStandardMethodLists" resultType="com.ruoyi.inspect.pojo.StandardMethodList"> |
| | | select id, code, name, remark |
| | | from standard_method |
| | | where is_use = 1 |
| | | and is_product = 1 |
| | | and structure_test_object_id LIKE CONCAT('%[', #{tree}, ']%') |
| | | </select> |
| | | <select id="selectParameterList" resultType="com.ruoyi.basic.pojo.StandardProductList"> |
| | | <select id="selectParameterList" resultType="com.ruoyi.inspect.pojo.StandardProductList"> |
| | | select inspection_item, |
| | | inspection_item_subclass, |
| | | laboratory, |
| | |
| | | from structure_item_parameter |
| | | where method = #{code} |
| | | </select> |
| | | <select id="selectStandardMethodLists2" resultType="com.ruoyi.basic.pojo.StandardMethodList"> |
| | | <select id="selectStandardMethodLists2" resultType="com.ruoyi.inspect.pojo.StandardMethodList"> |
| | | select sml.id, sml.code, sml.name,sml.remark, sml.create_time, u.name create_user_name |
| | | from standard_method_list sml |
| | | left join user u on u.id = sml.create_user |
| | |
| | | and model = #{data5} |
| | | </if> |
| | | </select> |
| | | <select id="selectStandardMethodLists3" resultType="com.ruoyi.basic.pojo.StandardMethodList"> |
| | | <select id="selectStandardMethodLists3" resultType="com.ruoyi.inspect.pojo.StandardMethodList"> |
| | | select id, code, name, remark |
| | | from standard_method |
| | | where is_use = 1 |
| | | and is_product = 1 |
| | | and structure_test_object_id LIKE CONCAT('%', #{tree}, '%') |
| | | </select> |
| | | <select id="selectListEnum" resultType="com.ruoyi.basic.pojo.StandardMethodList"> |
| | | <select id="selectListEnum" resultType="com.ruoyi.inspect.pojo.StandardMethodList"> |
| | | select id,code,name from standard_method |
| | | where is_product = 1 |
| | | and is_use = 1 |
| | | </select> |
| | | <select id="selectStandardMethodListsByNull" resultType="com.ruoyi.basic.pojo.StandardMethodList"> |
| | | <select id="selectStandardMethodListsByNull" resultType="com.ruoyi.inspect.pojo.StandardMethodList"> |
| | | select id, code, name, remark |
| | | from standard_method |
| | | where is_use = 1 |
| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.basic.mapper.StandardMethodMapper"> |
| | | |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.basic.pojo.StandardMethod"> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.inspect.pojo.StandardMethod"> |
| | | <id property="id" column="id" jdbcType="INTEGER"/> |
| | | <result property="code" column="code" jdbcType="VARCHAR"/> |
| | | <result property="name" column="name" jdbcType="VARCHAR"/> |
| | |
| | | <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/> |
| | | </resultMap> |
| | | |
| | | <select id="selectStandardMethodList" resultType="com.ruoyi.basic.pojo.StandardMethod"> |
| | | <select id="selectStandardMethodList" resultType="com.ruoyi.inspect.pojo.StandardMethod"> |
| | | select * from ( |
| | | select sm.id, |
| | | sm.code, |
| | |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | <select id="selectStandMethodById" resultType="com.ruoyi.basic.pojo.StandardMethod"> |
| | | <select id="selectStandMethodById" resultType="com.ruoyi.inspect.pojo.StandardMethod"> |
| | | select sm.id, |
| | | sm.code, |
| | | sm.name, |
| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.basic.mapper.StandardProductListMapper"> |
| | | |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.basic.pojo.StandardProductList"> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.inspect.pojo.StandardProductList"> |
| | | <id property="id" column="id" jdbcType="INTEGER"/> |
| | | <result property="inspectionItem" column="inspection_item" jdbcType="VARCHAR"/> |
| | | <result property="inspectionItemSubclass" column="inspection_item_subclass" jdbcType="VARCHAR"/> |
| | |
| | | and standard_method_list_id = #{methodId} |
| | | and sort between #{endIndex} and #{beginIndex} - 1 |
| | | </update> |
| | | <select id="standardProductListIPage" resultType="com.ruoyi.basic.pojo.StandardProductList"> |
| | | <select id="standardProductListIPage" resultType="com.ruoyi.inspect.pojo.StandardProductList"> |
| | | select spl.* from standard_product_list spl |
| | | left join product p on spl.sample = p.name |
| | | where standard_method_list_id = #{id} |
| | |
| | | order by p.id |
| | | group by spl.id |
| | | </select> |
| | | <select id="getOne" resultType="com.ruoyi.basic.pojo.StandardProductList"> |
| | | <select id="getOne" resultType="com.ruoyi.inspect.pojo.StandardProductList"> |
| | | select * from standard_product_list |
| | | where standard_method_list_id = #{standardMethodListId} |
| | | and inspection_item = #{inspectionItem} |
| | |
| | | and inspection_item_class = #{inspectionItemClass} |
| | | </if> |
| | | </select> |
| | | <select id="selectDetail" resultType="com.ruoyi.basic.pojo.StandardProductList"> |
| | | <select id="selectDetail" resultType="com.ruoyi.inspect.pojo.StandardProductList"> |
| | | select * from standard_product_list |
| | | where standard_method_list_id = #{standardMethodListId} |
| | | and state =#{state} |
| | |
| | | WHEN man_hour_group REGEXP '[0-9]+' THEN CAST(SUBSTRING(man_hour_group, 2)AS UNSIGNED) END -- æå忝åé¢çæ°åé¨å |
| | | ,id asc |
| | | </select> |
| | | <select id="selectDetail2" resultType="com.ruoyi.basic.pojo.StandardProductList"> |
| | | <select id="selectDetail2" resultType="com.ruoyi.inspect.pojo.StandardProductList"> |
| | | select * from standard_product_list |
| | | where standard_method_list_id = #{standardMethodListId} |
| | | and state =#{state} |
| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.basic.mapper.StandardTemplateMapper"> |
| | | |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.basic.pojo.StandardTemplate"> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.inspect.pojo.StandardTemplate"> |
| | | <id property="id" column="id" jdbcType="INTEGER"/> |
| | | <result property="name" column="name" jdbcType="VARCHAR"/> |
| | | <result property="remark" column="remark" jdbcType="VARCHAR"/> |
| | |
| | | <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/> |
| | | </resultMap> |
| | | |
| | | <select id="selectStandardTemplatePageList" resultType="com.ruoyi.basic.pojo.StandardTemplate"> |
| | | <select id="selectStandardTemplatePageList" resultType="com.ruoyi.inspect.pojo.StandardTemplate"> |
| | | select * from ( |
| | | select st.id, st.name,st.number, st.remark, u2.name create_user_name, u3.name update_user_name, st.create_time, st.update_time |
| | | from standard_template st |
| | |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | <select id="getStandTempIdByName" resultType="com.ruoyi.basic.pojo.StandardTemplate"> |
| | | <select id="getStandTempIdByName" resultType="com.ruoyi.inspect.pojo.StandardTemplate"> |
| | | select id from standard_template where name=#{name} |
| | | </select> |
| | | <!-- æ¥è¯¢å缩åçæ°æ® --> |
| | |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.basic.mapper.StandardTreeMapper"> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.basic.pojo.StandardTree"> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.inspect.pojo.StandardTree"> |
| | | <id property="id" column="id" jdbcType="INTEGER"/> |
| | | <result property="factory" column="factory" jdbcType="VARCHAR"/> |
| | | <result property="laboratory" column="laboratory" jdbcType="VARCHAR"/> |
| | |
| | | <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="FactoryDto" type="com.ruoyi.basic.dto.FactoryDto"> |
| | | <resultMap id="FactoryDto" type="com.ruoyi.inspect.dto.FactoryDto"> |
| | | <result property="label" column="factory"/> |
| | | <result property="value" column="factory"/> |
| | | <collection property="children" resultMap="LaboratoryDto"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="LaboratoryDto" type="com.ruoyi.basic.dto.LaboratoryDto"> |
| | | <resultMap id="LaboratoryDto" type="com.ruoyi.inspect.dto.LaboratoryDto"> |
| | | <result property="label" column="laboratory"/> |
| | | <result property="value" column="laboratory"/> |
| | | <collection property="children" resultMap="SampleTypeDto"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="SampleTypeDto" type="com.ruoyi.basic.dto.SampleTypeDto"> |
| | | <resultMap id="SampleTypeDto" type="com.ruoyi.inspect.dto.SampleTypeDto"> |
| | | <result property="label" column="sample_type"/> |
| | | <result property="value" column="sample_type"/> |
| | | <result property="sampleTypeId" column="sample_type_id"/> |
| | |
| | | <collection property="children" resultMap="SampleDto"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="SampleDto" type="com.ruoyi.basic.dto.SampleDto"> |
| | | <resultMap id="SampleDto" type="com.ruoyi.inspect.dto.SampleDto"> |
| | | <result property="label" column="sample"/> |
| | | <result property="value" column="sample"/> |
| | | <result property="partNo" column="sample_part_no"/> |
| | |
| | | <collection property="children" resultMap="ModelDto"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="ModelDto" type="com.ruoyi.basic.dto.ModelDto"> |
| | | <resultMap id="ModelDto" type="com.ruoyi.inspect.dto.ModelDto"> |
| | | <result property="label" column="model"/> |
| | | <result property="value" column="model"/> |
| | | </resultMap> |
| | |
| | | order by l.id, CAST(sto.code AS DECIMAL), p.id, ISNULL(st.id), st.id |
| | | </select> |
| | | |
| | | <select id="selectStandardProductById" resultType="com.ruoyi.basic.pojo.StandardProductList"> |
| | | <select id="selectStandardProductById" resultType="com.ruoyi.inspect.pojo.StandardProductList"> |
| | | select inspection_item, |
| | | inspection_item_subclass, |
| | | laboratory, |
| | |
| | | from structure_item_parameter |
| | | where id = #{id} |
| | | </select> |
| | | <select id="getStandardProductListBySample" resultType="com.ruoyi.basic.pojo.StandardProductList"> |
| | | <select id="getStandardProductListBySample" resultType="com.ruoyi.inspect.pojo.StandardProductList"> |
| | | select inspection_item, |
| | | inspection_item_subclass, |
| | | laboratory, |
| | |
| | | or sp.sample = '' |
| | | or sp.sample = '[]' |
| | | </select> |
| | | <select id="getStandardMethodListBySample" resultType="com.ruoyi.basic.pojo.StandardMethodList"> |
| | | <select id="getStandardMethodListBySample" resultType="com.ruoyi.inspect.pojo.StandardMethodList"> |
| | | select sm.code,sm.name,sm.remark from standard_method sm |
| | | left join structure_test_object sto on sm.structure_test_object_id = sto.id |
| | | where is_use = 1 |
| | |
| | | and sto.specimen_name = #{sampleType} |
| | | </if> |
| | | </select> |
| | | <select id="selectStandardTreeList2" resultType="com.ruoyi.basic.pojo.StandardTree"> |
| | | <select id="selectStandardTreeList2" resultType="com.ruoyi.inspect.pojo.StandardTree"> |
| | | select 'ä¸å¤©ç§ææ£æµä¸å¿' factory, |
| | | l.laboratory_name laboratory, |
| | | sto.specimen_name sample_type, |
| | |
| | | where sto.specimen_name = #{sampleType} |
| | | group by sto.specimen_name |
| | | </select> |
| | | <select id="selectStandardProductListByTree" resultType="com.ruoyi.basic.pojo.StandardProductList"> |
| | | <select id="selectStandardProductListByTree" resultType="com.ruoyi.inspect.pojo.StandardProductList"> |
| | | select <include refid="selectStandardTree"/> |
| | | from structure_item_parameter |
| | | where ( |
| | |
| | | order by inspection_item_class, inspection_item, id asc |
| | | </select> |
| | | |
| | | <select id="selectStandardProductListByTree2" resultType="com.ruoyi.basic.pojo.StandardProductList"> |
| | | <select id="selectStandardProductListByTree2" resultType="com.ruoyi.inspect.pojo.StandardProductList"> |
| | | select <include refid="selectStandardTree"/> |
| | | from structure_item_parameter |
| | | where sample LIKE CONCAT('%[', #{tree}, ']%') |
| | |
| | | and st.sample = p.name |
| | | </select> |
| | | |
| | | <select id="getStandardTree3" resultType="com.ruoyi.basic.dto.SampleDto"> |
| | | <select id="getStandardTree3" resultType="com.ruoyi.inspect.dto.SampleDto"> |
| | | select model label, |
| | | model value |
| | | from standard_tree |
| | |
| | | and (inspection_item_subclass is null or inspection_item_subclass = '') |
| | | </if> |
| | | </select> |
| | | <select id="selectPList" resultType="com.ruoyi.basic.dto.ProductDto"> |
| | | <select id="selectPList" resultType="com.ruoyi.inspect.dto.ProductDto"> |
| | | select p.name |
| | | from structure_test_object sto |
| | | left join product p on p.object_id = sto.id |
| | |
| | | group by ifs.id) a |
| | | </sql> |
| | | |
| | | <select id="getIfsByStateOne" resultType="com.ruoyi.basic.dto.IfsInventoryQuantityDto"> |
| | | <select id="getIfsByStateOne" resultType="com.ruoyi.inspect.dto.IfsInventoryQuantityDto"> |
| | | <include refid="getIfsOrder"/> |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectIfsPage" resultType="com.ruoyi.basic.pojo.IfsInventoryQuantity"> |
| | | <select id="selectIfsPage" resultType="com.ruoyi.inspect.pojo.IfsInventoryQuantity"> |
| | | SELECT * from ifs_inventory_quantity ifs |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | <select id="selectIfsInventoryQuantity" resultType="com.ruoyi.basic.dto.IfsInventoryQuantityCheckDto"> |
| | | <select id="selectIfsInventoryQuantity" resultType="com.ruoyi.inspect.dto.IfsInventoryQuantityCheckDto"> |
| | | SELECT * from ifs_inventory_quantity ifs |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | <select id="getIfsByOver" resultType="com.ruoyi.basic.dto.IfsInventoryQuantitySupplierDto"> |
| | | <select id="getIfsByOver" resultType="com.ruoyi.inspect.dto.IfsInventoryQuantitySupplierDto"> |
| | | select * from (<include refid="getIfsOrder"/> |
| | | <where> |
| | | <if test="beginDeclareDate != null and beginDeclareDate != '' and endDeclareDate != null and endDeclareDate != ''"> |
| | |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | <select id="getIfsByOverList" resultType="com.ruoyi.basic.dto.IfsInventoryQuantitySupplierDto"> |
| | | <select id="getIfsByOverList" resultType="com.ruoyi.inspect.dto.IfsInventoryQuantitySupplierDto"> |
| | | select * from (<include refid="getIfsOrder"/> |
| | | <where> |
| | | <if test="beginDeclareDate != null and beginDeclareDate != '' and endDeclareDate != null and endDeclareDate != ''"> |
| | |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | <select id="getIfsByQuarter" resultType="com.ruoyi.basic.dto.IfsInventoryQuantitySupplierDto"> |
| | | <select id="getIfsByQuarter" resultType="com.ruoyi.inspect.dto.IfsInventoryQuantitySupplierDto"> |
| | | select * from (<include refid="getIfsOrder"/> |
| | | <where> |
| | | and (quarter_order_id is not null) |
| | |
| | | from structure_item_parameter |
| | | where sample like concat('%', #{sample}, '%') |
| | | </delete> |
| | | <select id="selectItemParameterList" resultType="com.ruoyi.basic.pojo.StructureItemParameter"> |
| | | <select id="selectItemParameterList" resultType="com.ruoyi.inspect.pojo.StructureItemParameter"> |
| | | select * from (select A.id, |
| | | inspection_item, |
| | | inspection_item_en, |
| | |
| | | left join product p on p.object_id = sto.id |
| | | </select> |
| | | |
| | | <resultMap id="itemDto" type="com.ruoyi.basic.dto.TestItemDto"> |
| | | <resultMap id="itemDto" type="com.ruoyi.inspect.dto.TestItemDto"> |
| | | <result column="sId" property="id"/> |
| | | <result column="sName" property="name"/> |
| | | <collection property="children" resultMap="productDto"/> |
| | | </resultMap> |
| | | <resultMap id="productDto" type="com.ruoyi.basic.dto.ProductDto"> |
| | | <resultMap id="productDto" type="com.ruoyi.inspect.dto.ProductDto"> |
| | | <result column="pId" property="id"/> |
| | | <result column="pName" property="name"/> |
| | | </resultMap> |
| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.basic.mapper.StructureTestObjectMapper"> |
| | | |
| | | <select id="selectTestObjectList" resultType="com.ruoyi.basic.dto.PageTestObjectDto"> |
| | | <select id="selectTestObjectList" resultType="com.ruoyi.inspect.dto.PageTestObjectDto"> |
| | | select * from ( |
| | | select sto.id, |
| | | sto.specimen_name, |
| | |
| | | <?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.basic.mapper.StructureTestObjectPartMapper"> |
| | | <select id="selectListByTestObjectId" resultType="com.ruoyi.basic.pojo.StructureTestObjectPart"> |
| | | <select id="selectListByTestObjectId" resultType="com.ruoyi.inspect.pojo.StructureTestObjectPart"> |
| | | SELECT * from structure_test_object_part pp |
| | | where pp.test_object_id = #{testObjectId} |
| | | </select> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| | | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| | | <parent> |
| | | <artifactId>ruoyi</artifactId> |
| | | <groupId>com.ruoyi</groupId> |
| | | <version>3.8.9</version> |
| | | </parent> |
| | | <modelVersion>4.0.0</modelVersion> |
| | | |
| | | <artifactId>cnas-manage</artifactId> |
| | | |
| | | <dependencies> |
| | | |
| | | <!--ä¸å¡æ¨¡å--> |
| | | <dependency> |
| | | <groupId>com.ruoyi</groupId> |
| | | <artifactId>inspect-server</artifactId> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.ruoyi</groupId> |
| | | <artifactId>ruoyi-system</artifactId> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.ruoyi</groupId> |
| | | <artifactId>ruoyi-framework</artifactId> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | <properties> |
| | | <maven.compiler.source>8</maven.compiler.source> |
| | | <maven.compiler.target>8</maven.compiler.target> |
| | | </properties> |
| | | |
| | | </project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.mapper.ClientSatisfactionAnalyseFileMapper; |
| | | import com.ruoyi.manage.pojo.ClientSatisfaction; |
| | | import com.ruoyi.manage.pojo.ClientSatisfactionAnalyseFile; |
| | | import com.ruoyi.manage.service.ClientSatisfactionService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-09 |
| | | */ |
| | | @Api(tags = "å®¢æ·æ»¡æåº¦è°æ¥") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/clientSatisfaction") |
| | | public class ClientSatisfactionController { |
| | | |
| | | private ClientSatisfactionService clientSatisfactionService; |
| | | private ClientSatisfactionAnalyseFileMapper clientSatisfactionAnalyseFileMapper; |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦è°æ¥å表 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å®¢æ·æ»¡æåº¦è°æ¥å表") |
| | | @GetMapping("/pageClientSatisfaction") |
| | | public Result<IPage<ClientSatisfaction>> pageClientSatisfaction(Page page,ClientSatisfaction clientSatisfaction) throws Exception { |
| | | return Result.success(clientSatisfactionService.pageClientSatisfaction(page, clientSatisfaction)); |
| | | } |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦è°æ¥æ°å¢ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å®¢æ·æ»¡æåº¦è°æ¥æ°å¢") |
| | | @PostMapping("/addClientSatisfaction") |
| | | public Result addClientSatisfaction(@RequestBody ClientSatisfaction clientSatisfaction){ |
| | | return Result.success(clientSatisfactionService.save(clientSatisfaction)); |
| | | } |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦è°æ¥ä¿®æ¹ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å®¢æ·æ»¡æåº¦è°æ¥ä¿®æ¹") |
| | | @PostMapping("/updateClientSatisfaction") |
| | | public Result updateClientSatisfaction(@RequestBody ClientSatisfaction clientSatisfaction){ |
| | | return Result.success(clientSatisfactionService.updateById(clientSatisfaction)); |
| | | } |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦è°æ¥å é¤ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å®¢æ·æ»¡æåº¦è°æ¥å é¤") |
| | | @DeleteMapping("/delClientSatisfaction") |
| | | public Result delClientSatisfaction(Integer clientSatisfactionId){ |
| | | return Result.success(clientSatisfactionService.removeById(clientSatisfactionId)); |
| | | } |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦å¯¼åº |
| | | * @param clientSatisfactionId |
| | | * @param response |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å®¢æ·æ»¡æå¯¼åº") |
| | | @GetMapping("/exportWordClientSatisfaction") |
| | | public Result exportWordClientSatisfaction(Integer clientSatisfactionId, HttpServletResponse response){ |
| | | clientSatisfactionService.exportWordClientSatisfaction(clientSatisfactionId, response); |
| | | return Result.success(); |
| | | } |
| | | |
| | | /** |
| | | * ç¡®è®¤å®¢æ·æ»¡æåº¦ |
| | | * @param clientSatisfaction è¦ä¿®æ¹å®¢æ·æ»¡æåº¦çç¶æå¯¹è±¡ |
| | | * @param userId ä¿®æ¹äººid |
| | | */ |
| | | @ApiOperation(value = "ç¡®è®¤å®¢æ·æ»¡æåº¦") |
| | | @PostMapping("/confirmClientSatisfaction") |
| | | public void confirmClientSatisfaction(@RequestBody ClientSatisfaction clientSatisfaction, Integer userId){ |
| | | clientSatisfactionService.confirmClientSatisfaction(clientSatisfaction, userId); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢å®¢æ·åæéä»¶ |
| | | * @param file |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "æ°å¢æ·åæéä»¶") |
| | | @PostMapping("/uploadAnalyseFile") |
| | | public Result<?> uploadAnalyseFile(MultipartFile file) { |
| | | return Result.success(clientSatisfactionService.uploadAnalyseFile(file)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢æ·åæéä»¶ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "æ¥è¯¢æ·åæéä»¶") |
| | | @GetMapping("/pageAnalyseFile") |
| | | public Result<IPage<ClientSatisfactionAnalyseFile>> pageAnalyseFile(Page page,ClientSatisfactionAnalyseFile analyseFile) throws Exception { |
| | | return Result.success(clientSatisfactionService.pageAnalyseFile(page, analyseFile)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿·åæéä»¶ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å 餿·åæéä»¶") |
| | | @DeleteMapping("/delAnalyseFile") |
| | | public Result delAnalyseFile(Integer analyseFileId){ |
| | | return Result.success(clientSatisfactionAnalyseFileMapper.deleteById(analyseFileId)); |
| | | } |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.dto.InternalCheckDto; |
| | | import com.ruoyi.manage.pojo.InternalCheck; |
| | | import com.ruoyi.manage.service.InternalCheckService; |
| | | 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; |
| | | |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥è¡¨ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Api(tags = "å
å®¡æ£æ¥") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/internalCheck") |
| | | public class InternalCheckController { |
| | | |
| | | private InternalCheckService internalCheckService; |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥å页æ¥è¯¢ |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
å®¡æ£æ¥å页æ¥è¯¢") |
| | | @GetMapping("/pageInternalCheck") |
| | | public Result<IPage<InternalCheckDto>> pageInternalCheck(Page page,InternalCheck internalCheck) throws Exception { |
| | | return Result.success(internalCheckService.pageInternalCheck(page, internalCheck)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥æ°å¢ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
å®¡æ£æ¥æ°å¢") |
| | | @PostMapping("/addInternalCheck") |
| | | public Result addInternalCheck(@RequestBody InternalCheckDto internalCheck){ |
| | | return Result.success(internalCheckService.addInternalCheck(internalCheck)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥ä¿®æ¹ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
å®¡æ£æ¥ä¿®æ¹") |
| | | @PostMapping("/updateInternalCheck") |
| | | public Result updateInternalCheck(@RequestBody InternalCheckDto internalCheck){ |
| | | return Result.success(internalCheckService.updateInternalCheck(internalCheck)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥å é¤ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
å®¡æ£æ¥å é¤") |
| | | @DeleteMapping("/delInternalCheck") |
| | | public Result delInternalCheck(Integer checkId){ |
| | | return Result.success(internalCheckService.delInternalCheck(checkId)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥æ¥ç详æ
|
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
å®¡æ£æ¥æ¥ç详æ
") |
| | | @GetMapping("/getInternalCheckOne") |
| | | public Result<InternalCheckDto> getInternalCheckOne(Integer checkId){ |
| | | return Result.success(internalCheckService.getInternalCheckOne(checkId)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥æ¹å |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
å®¡æ£æ¥æ¹å") |
| | | @PostMapping("/ratifyInternalCheck") |
| | | public Result ratifyInternalCheck(@RequestBody InternalCheckDto internalCheck){ |
| | | return Result.success(internalCheckService.ratifyInternalCheck(internalCheck)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºå
å®¡æ£æ¥ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "导åºå
å®¡æ£æ¥") |
| | | @GetMapping("/exportInternalCheck") |
| | | public void exportInternalCheck(Integer checkId, HttpServletResponse response){ |
| | | internalCheckService.exportInternalCheck(checkId, response); |
| | | } |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.mapper.InternalCorrectFileMapper; |
| | | import com.ruoyi.manage.pojo.InternalCorrect; |
| | | import com.ruoyi.manage.pojo.InternalCorrectFile; |
| | | import com.ruoyi.manage.service.InternalCorrectService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审管ççº æ£å¤ç表 å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 04:00:15 |
| | | */ |
| | | @Api(tags = "å
å®¡çº æ£æªæ½") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/internalCorrect") |
| | | public class InternalCorrectController { |
| | | |
| | | private InternalCorrectService internalCorrectService; |
| | | private InternalCorrectFileMapper internalCorrectFileMapper; |
| | | |
| | | /** |
| | | * æ°å¢å
审管ççº æ£å¤çä¿¡æ¯ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "æ°å¢å
审管ççº æ£å¤ç") |
| | | @PostMapping("/addInternalCorrect") |
| | | public Result addInternalCorrect(@RequestBody InternalCorrect internalCorrect){ |
| | | return Result.success(internalCorrectService.addInternalCorrect(internalCorrect)); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢å
审管ççº æ£å¤ç |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "æ¥è¯¢å
审管ççº æ£å¤ç") |
| | | @GetMapping("/getInternalCorrect") |
| | | public Result<InternalCorrect> getInternalCorrect(Integer correctId){ |
| | | return Result.success(internalCorrectService.getInternalCorrect(correctId)); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢å
审管ççº æ£æªæ½å表 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "æ¥è¯¢å
审管ççº æ£æªæ½å表") |
| | | @GetMapping("/pageInternalCorrect") |
| | | public Result<IPage<InternalCorrect>> pageInternalCorrect(Page page, InternalCorrect detailsCorrect) throws Exception { |
| | | return Result.success(internalCorrectService.pageInternalCorrect(page, detailsCorrect)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢å
审管ççº æ£æªæ½éä»¶ |
| | | * @param correctId |
| | | * @param file |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "æ°å¢å
审管ççº æ£æªæ½éä»¶") |
| | | @PostMapping("/uploadInternalCorrectFile") |
| | | public Result<?> uploadInternalCorrectFile(Integer correctId, MultipartFile file) { |
| | | return Result.success(internalCorrectService.uploadInternalCorrectFile(correctId, file)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢å
审管ççº æ£æªæ½éä»¶ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "æ¥è¯¢å
审管ççº æ£æªæ½éä»¶") |
| | | @GetMapping("/getInternalCorrectFileList") |
| | | public Result<List<InternalCorrectFile>> getInternalCorrectFileList(Integer correctId){ |
| | | return Result.success(internalCorrectService.getInternalCorrectFileList(correctId)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤å
审管ççº æ£æªæ½éä»¶ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å é¤å
审管ççº æ£æªæ½éä»¶") |
| | | @DeleteMapping("/delInternalCorrectFile") |
| | | public Result delInternalCorrectFile(Integer correctFileId){ |
| | | return Result.success(internalCorrectFileMapper.deleteById(correctFileId)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºçº æ£æªæ½ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "导åºçº æ£æªæ½") |
| | | @GetMapping("/exportInternalCorrect") |
| | | public void exportInternalCorrect(Integer correctId, HttpServletResponse response){ |
| | | internalCorrectService.exportInternalCorrect(correctId, response); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.dto.InternalImplementDto; |
| | | import com.ruoyi.manage.pojo.InternalImplement; |
| | | import com.ruoyi.manage.service.InternalImplementService; |
| | | 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; |
| | | |
| | | |
| | | /** |
| | | * å
审宿½è®¡å |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Api(tags = "å
审宿½è®¡å") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/internalImplement") |
| | | public class InternalImplementController { |
| | | |
| | | private InternalImplementService internalImplementService; |
| | | |
| | | /** |
| | | * å
审宿½è®¡åå页æ¥è¯¢ |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审宿½è®¡åå页æ¥è¯¢") |
| | | @GetMapping("/pageInternalImplement") |
| | | public Result<IPage<InternalImplementDto>> pageInternalImplement(Page page,InternalImplement internalImplement) throws Exception { |
| | | return Result.success(internalImplementService.pageInternalImplement(page, internalImplement)); |
| | | } |
| | | |
| | | /** |
| | | * å
审宿½è®¡åæ°å¢ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审宿½è®¡åæ°å¢") |
| | | @PostMapping("/addInternalImplement") |
| | | public Result addInternalImplement(@RequestBody InternalImplementDto internalImplement){ |
| | | return Result.success(internalImplementService.addInternalImplement(internalImplement)); |
| | | } |
| | | |
| | | /** |
| | | * å
审宿½è®¡åä¿®æ¹ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审宿½è®¡åä¿®æ¹") |
| | | @PostMapping("/updateInternalImplement") |
| | | public Result updateInternalImplement(@RequestBody InternalImplementDto internalImplement){ |
| | | return Result.success(internalImplementService.updateInternalImplement(internalImplement)); |
| | | } |
| | | |
| | | /** |
| | | * å
审宿½è®¡åå é¤ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审宿½è®¡åå é¤") |
| | | @DeleteMapping("/delInternalImplement") |
| | | public Result delInternalImplement(Integer implementId){ |
| | | return Result.success(internalImplementService.delInternalImplement(implementId)); |
| | | } |
| | | |
| | | /** |
| | | * å
审宿½è®¡åæ¥ç详æ
|
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审宿½è®¡åæ¥ç详æ
") |
| | | @GetMapping("/getInternalImplementOne") |
| | | public Result<InternalImplementDto> getInternalImplementOne(Integer implementId){ |
| | | return Result.success(internalImplementService.getInternalImplementOne(implementId)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * å
审宿½è®¡åæ¹å |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审宿½è®¡åæ¹å") |
| | | @PostMapping("/ratifyInternalImplement") |
| | | public Result ratifyInternalImplement(@RequestBody InternalImplementDto internalImplement){ |
| | | return Result.success(internalImplementService.ratifyInternalImplement(internalImplement)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºå
审宿½è®¡å |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "导åºå
审宿½è®¡å") |
| | | @GetMapping("/exportInternalImplement") |
| | | public void exportInternalImplement(Integer implementId, HttpServletResponse response){ |
| | | internalImplementService.exportInternalImplement(implementId, response); |
| | | } |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.dto.InternalMeetingDto; |
| | | import com.ruoyi.manage.pojo.InternalMeeting; |
| | | import com.ruoyi.manage.service.InternalMeetingService; |
| | | 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-12 02:50:44 |
| | | */ |
| | | @Api(tags = "å
审ä¼è®®") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/internalMeeting") |
| | | public class InternalMeetingController { |
| | | |
| | | private InternalMeetingService internalMeetingService; |
| | | |
| | | /** |
| | | * å
审ä¼è®®å页æ¥è¯¢ |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审ä¼è®®å页æ¥è¯¢") |
| | | @GetMapping("/pageInternalMeeting") |
| | | public Result<IPage<InternalMeetingDto>> pageInternalMeeting(Page page,InternalMeeting internalMeeting) throws Exception { |
| | | return Result.success(internalMeetingService.pageInternalMeeting(page, internalMeeting)); |
| | | } |
| | | |
| | | /** |
| | | * å
审ä¼è®®æ°å¢ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审ä¼è®®æ°å¢") |
| | | @PostMapping("/addInternalMeeting") |
| | | public Result addInternalMeeting(@RequestBody InternalMeetingDto internalMeeting){ |
| | | return Result.success(internalMeetingService.addInternalMeeting(internalMeeting)); |
| | | } |
| | | |
| | | /** |
| | | * å
审ä¼è®®ä¿®æ¹ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审ä¼è®®ä¿®æ¹") |
| | | @PostMapping("/updateInternalMeeting") |
| | | public Result updateInternalMeeting(@RequestBody InternalMeetingDto internalMeeting){ |
| | | return Result.success(internalMeetingService.updateInternalMeeting(internalMeeting)); |
| | | } |
| | | |
| | | /** |
| | | * å
审ä¼è®®å é¤ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审ä¼è®®å é¤") |
| | | @DeleteMapping("/delInternalMeeting") |
| | | public Result delInternalMeeting(Integer meetingId){ |
| | | return Result.success(internalMeetingService.delInternalMeeting(meetingId)); |
| | | } |
| | | |
| | | /** |
| | | * å
审ä¼è®®æ¥ç详æ
|
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审ä¼è®®æ¥ç详æ
") |
| | | @GetMapping("/getInternalMeetingOne") |
| | | public Result<InternalMeetingDto> getInternalMeetingOne(Integer meetingId){ |
| | | return Result.success(internalMeetingService.getInternalMeetingOne(meetingId)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºå
审ä¼è®® |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "导åºå
审ä¼è®®") |
| | | @GetMapping("/exportInternalMeeting") |
| | | public void exportInternalMeeting(Integer meetingId, HttpServletResponse response){ |
| | | internalMeetingService.exportInternalMeeting(meetingId, response); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.dto.InternalPlanDto; |
| | | import com.ruoyi.manage.pojo.InternalPlan; |
| | | import com.ruoyi.manage.service.InternalPlanService; |
| | | 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-13 03:27:47 |
| | | */ |
| | | @Api(tags = "å
审年度计å") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/internalPlan") |
| | | public class InternalPlanController { |
| | | |
| | | |
| | | private InternalPlanService internalPlanService; |
| | | |
| | | /** |
| | | * å
审年度计åå页æ¥è¯¢ |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审年度计åå页æ¥è¯¢") |
| | | @GetMapping("/pageInternalPlan") |
| | | public Result<IPage<InternalPlanDto>> pageInternalPlan(Page page,InternalPlan internalPlan) throws Exception { |
| | | return Result.success(internalPlanService.pageInternalPlan(page, internalPlan)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡å¹´åº¦è®¡åæ°å¢ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
å®¡å¹´åº¦è®¡åæ°å¢") |
| | | @PostMapping("/addInternalPlan") |
| | | public Result addInternalPlan(@RequestBody InternalPlanDto internalPlan){ |
| | | return Result.success(internalPlanService.addInternalPlan(internalPlan)); |
| | | } |
| | | |
| | | /** |
| | | * å
审年度计åä¿®æ¹ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审年度计åä¿®æ¹") |
| | | @PostMapping("/updateInternalPlan") |
| | | public Result updateInternalPlan(@RequestBody InternalPlanDto internalPlan){ |
| | | return Result.success(internalPlanService.updateInternalPlan(internalPlan)); |
| | | } |
| | | |
| | | /** |
| | | * å
审年度计åå é¤ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审年度计åå é¤") |
| | | @DeleteMapping("/delInternalPlan") |
| | | public Result delInternalPlan(Integer planId){ |
| | | return Result.success(internalPlanService.delInternalPlan(planId)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡å¹´åº¦è®¡åæ¥ç详æ
|
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
å®¡å¹´åº¦è®¡åæ¥ç详æ
") |
| | | @GetMapping("/getInternalPlanOne") |
| | | public Result<InternalPlanDto> getInternalPlanOne(Integer planId){ |
| | | return Result.success(internalPlanService.getInternalPlanOne(planId)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * å
审年度计åå®¡æ ¸ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审年度计åå®¡æ ¸") |
| | | @PostMapping("/examineInternalPlan") |
| | | public Result examineInternalPlan(@RequestBody InternalPlanDto internalPlanDto){ |
| | | return Result.success(internalPlanService.examineInternalPlan(internalPlanDto)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡å¹´åº¦è®¡åæ¹å |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审宿½è®¡åæ¹å") |
| | | @PostMapping("/ratifyInternalPlan") |
| | | public Result ratifyInternalPlan(@RequestBody InternalPlanDto internalPlanDto){ |
| | | return Result.success(internalPlanService.ratifyInternalPlan(internalPlanDto)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºå
审年度计å |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "导åºå
审年度计å") |
| | | @GetMapping("/exportInternalPlan") |
| | | public void exportInternalPlan(Integer planId, HttpServletResponse response){ |
| | | internalPlanService.exportInternalImplement(planId, response); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.InternalReport; |
| | | import com.ruoyi.manage.service.InternalReportService; |
| | | 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; |
| | | |
| | | |
| | | /** |
| | | * å
审æ¥å表 |
| | | * |
| | | * @author makejava |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Api(tags = "å
审æ¥å") |
| | | @AllArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/internalReport") |
| | | public class InternalReportController { |
| | | |
| | | private InternalReportService internalReportService; |
| | | |
| | | /** |
| | | * å
审æ¥åå页æ¥è¯¢ |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审æ¥åå页æ¥è¯¢") |
| | | @GetMapping("/pageInternalReport") |
| | | public Result<IPage<InternalReport>> pageInternalReport(Page page,InternalReport internalReport) throws Exception { |
| | | return Result.success(internalReportService.pageInternalReport(page, internalReport)); |
| | | } |
| | | |
| | | /** |
| | | * å
审æ¥åæ°å¢ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审æ¥åæ°å¢") |
| | | @PostMapping("/addInternalReport") |
| | | public Result addInternalReport(@RequestBody InternalReport internalReport){ |
| | | return Result.success(internalReportService.save(internalReport)); |
| | | } |
| | | |
| | | /** |
| | | * å
审æ¥åä¿®æ¹ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审æ¥åä¿®æ¹") |
| | | @PostMapping("/updateInternalReport") |
| | | public Result updateInternalReport(@RequestBody InternalReport internalReport){ |
| | | return Result.success(internalReportService.updateById(internalReport)); |
| | | } |
| | | |
| | | /** |
| | | * å
审æ¥åå é¤ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审æ¥åå é¤") |
| | | @DeleteMapping("/delInternalReport") |
| | | public Result delInternalReport(Integer reportId){ |
| | | return Result.success(internalReportService.removeById(reportId)); |
| | | } |
| | | |
| | | /** |
| | | * å
审æ¥åæ¥ç详æ
|
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审æ¥åæ¥ç详æ
") |
| | | @GetMapping("/getInternalReportOne") |
| | | public Result<InternalReport> getInternalReportOne(Integer reportId){ |
| | | return Result.success(internalReportService.getById(reportId)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥å®¡æ ¸ |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
å®¡æ£æ¥å®¡æ ¸") |
| | | @PostMapping("/examineInternalReport") |
| | | public Result examineInternalReport(@RequestBody InternalReport internalReport){ |
| | | return Result.success(internalReportService.ratifyInternalCheck(internalReport)); |
| | | } |
| | | |
| | | /** |
| | | * å
审æ¥åè´¨éè´è´£äººå¡«å |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "å
审æ¥åè´¨éè´è´£äººå¡«å") |
| | | @PostMapping("/qualityInternalReport") |
| | | public Result qualityInternalReport(@RequestBody InternalReport internalReport){ |
| | | return Result.success(internalReportService.qualityInternalReport(internalReport)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºå
审æ¥å |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "导åºå
审æ¥å") |
| | | @GetMapping("/exportInternalReport") |
| | | public void exportInternalReport(Integer reportId, HttpServletResponse response){ |
| | | internalReportService.exportInternalReport(reportId, response); |
| | | } |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.read.listener.PageReadListener; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.manage.pojo.ManageControlPlanList; |
| | | import com.ruoyi.manage.service.ManageControlPlanListService; |
| | | import com.ruoyi.manage.vo.ManageControlPlanListVo; |
| | | 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.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * é大é£é©å ç´ åæåæ§å¶è®¡åæ¸
å å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 02:58:30 |
| | | */ |
| | | @Api(tags = "é大é£é©å ç´ åæåæ§å¶è®¡åæ¸
å") |
| | | @RestController |
| | | @RequestMapping("/manageControlPlanList") |
| | | public class ManageControlPlanListController { |
| | | |
| | | |
| | | @Resource |
| | | private ManageControlPlanListService manageControlPlanListService; |
| | | |
| | | |
| | | @ApiOperation(value = "å页æ¥è¯¢") |
| | | @GetMapping("/getPageList") |
| | | public Result<IPage<ManageControlPlanListVo>> getPageList(Page page){ |
| | | IPage<ManageControlPlanListVo> ipage = manageControlPlanListService.getPageList(page); |
| | | return Result.success(ipage); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¹å") |
| | | @PostMapping("/approvalOfControlPlanChecklist") |
| | | public Result<?> approvalOfControlPlanChecklist(@RequestBody Map<String, Integer> param){ |
| | | Integer approve = param.get("approve"); |
| | | Integer status= param.get("status"); |
| | | manageControlPlanListService.update(Wrappers.<ManageControlPlanList>lambdaUpdate() |
| | | .set(ManageControlPlanList::getApprove, approve) |
| | | .set(ManageControlPlanList::getApproveStatus, status) |
| | | .set(ManageControlPlanList::getApproveDate, LocalDateTime.now())); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "审æ¹") |
| | | @PostMapping("/riskAnalysisApprovalOfControlPlanChecklist") |
| | | public Result<?> riskAnalysisApprovalOfControlPlanChecklist(@RequestBody Map<String, Integer> param){ |
| | | Integer approval = param.get("approval"); |
| | | Integer status= param.get("status"); |
| | | manageControlPlanListService.update(Wrappers.<ManageControlPlanList>lambdaUpdate() |
| | | .set(ManageControlPlanList::getApproval, approval) |
| | | .set(ManageControlPlanList::getApprovalStatus, status) |
| | | .set(ManageControlPlanList::getApprovalDate, LocalDateTime.now())); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "导å
¥") |
| | | @PostMapping("/importControlPlanList") |
| | | public void importControlPlanList(MultipartFile file) throws IOException { |
| | | boolean excelFile = isExcelFile(file); |
| | | if (!excelFile) { |
| | | throw new ErrorException("请导å
¥excelæä»¶ï¼"); |
| | | } |
| | | EasyExcel.read(file.getInputStream(), ManageControlPlanList.class, new PageReadListener<ManageControlPlanList>(dataList -> { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | dataList.forEach(i -> { |
| | | i.setEditor(userId); |
| | | i.setEditorDate(LocalDateTime.now()); |
| | | i.setApproveStatus(0); |
| | | i.setApprovalStatus(0); |
| | | }); |
| | | manageControlPlanListService.saveOrUpdateBatch(dataList); |
| | | })).sheet().doRead(); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢") |
| | | @PostMapping("/analysisOfMajorRiskFactorsAdded") |
| | | public void analysisOfMajorRiskFactorsAdded(@RequestBody ManageControlPlanList manageControlPlanList) throws IOException { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | manageControlPlanList.setEditor(userId); |
| | | manageControlPlanList.setEditorDate(LocalDateTime.now()); |
| | | manageControlPlanListService.saveOrUpdate(manageControlPlanList); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤") |
| | | @DeleteMapping("/deleteSignificantRiskFactorAnalysis") |
| | | public void deleteSignificantRiskFactorAnalysis(Integer id) throws IOException { |
| | | manageControlPlanListService.removeById(id); |
| | | } |
| | | |
| | | /** |
| | | * 导åºäººåå¹è®è®¡å |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "é大é£é©å ç´ åæåæ§å¶è®¡åæ¸
å") |
| | | @GetMapping("/exportSignificantRiskFactors") |
| | | public void exportSignificantRiskFactors(HttpServletResponse response){ |
| | | manageControlPlanListService.exportPersonTraining(response); |
| | | } |
| | | |
| | | public static boolean isExcelFile(MultipartFile file) { |
| | | if (file.isEmpty()) { |
| | | return false; |
| | | } |
| | | String originalFilename = file.getOriginalFilename(); |
| | | if (originalFilename == null) { |
| | | return false; |
| | | } |
| | | String[] parts = originalFilename.split("\\."); |
| | | if (parts.length == 0) { |
| | | return false; |
| | | } |
| | | String fileExtension = parts[parts.length - 1].toLowerCase(); |
| | | return fileExtension.equals("xls") || fileExtension.equals("xlsx"); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.ManageDocumentAlter; |
| | | import com.ruoyi.manage.service.ManageDocumentAlterService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶åæ´ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-11 11:04:01 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/manageDocumentAlter") |
| | | public class ManageDocumentAlterController { |
| | | |
| | | @Resource |
| | | private ManageDocumentAlterService manageDocumentAlterService; |
| | | |
| | | @ApiOperation(value = "å页æ¥è¯¢æä»¶åæ´") |
| | | @GetMapping("/pageManageDocumentAlter") |
| | | public Result pageManageDocumentAlter(Page page,ManageDocumentAlter manageDocumentAlter) throws Exception { |
| | | return Result.success(manageDocumentAlterService.pageManageDocumentAlter(page, manageDocumentAlter)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å 餿件忴") |
| | | @DeleteMapping("/delManageDocumentAlter") |
| | | public Result delManageDocumentAlter(Integer id){ |
| | | return Result.success(manageDocumentAlterService.delManageDocumentAlter(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¥çæä»¶åæ´") |
| | | @GetMapping("/getManageDocumentAlter") |
| | | public Result getManageDocumentAlter(Integer id){ |
| | | return Result.success(manageDocumentAlterService.getManageDocumentAlter(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢æä»¶åæ´") |
| | | @PostMapping("/addManageDocumentAlter") |
| | | public Result addManageDocumentAlter(ManageDocumentAlter manageDocumentAlter){ |
| | | return Result.success(manageDocumentAlterService.addManageDocumentAlter(manageDocumentAlter)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¼è¾æä»¶åæ´") |
| | | @PostMapping("/doManageDocumentAlter") |
| | | public Result doManageDocumentAlter(ManageDocumentAlter manageDocumentAlter){ |
| | | return Result.success(manageDocumentAlterService.doManageDocumentAlter(manageDocumentAlter)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å®¡æ ¸æä»¶åæ´") |
| | | @PostMapping("/checkManageDocumentAlter") |
| | | public Result checkManageDocumentAlter(@RequestBody ManageDocumentAlter manageDocumentAlter){ |
| | | return Result.success(manageDocumentAlterService.checkManageDocumentAlter(manageDocumentAlter)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å®¡æ ¸æ¥çéä»¶") |
| | | @GetMapping("/checkManageDocumentAlterPdf") |
| | | public void checkManageDocumentAlterPdf(Long id, HttpServletResponse response)throws Exception { |
| | | manageDocumentAlterService.checkManageDocumentAlterPdf(id,response); |
| | | } |
| | | |
| | | @ApiOperation(value = "å¯¼åºæä»¶åæ´") |
| | | @GetMapping("/exportManageDocumentAlter") |
| | | public void exportManageDocumentAlter(ManageDocumentAlter manageDocumentAlter,HttpServletResponse response) throws Exception { |
| | | manageDocumentAlterService.exportManageDocumentAlter(manageDocumentAlter,response); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.ManageDocumentCancel; |
| | | import com.ruoyi.manage.service.ManageDocumentCancelService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶ä½åº å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 02:37:35 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/manageDocumentCancel") |
| | | public class ManageDocumentCancelController { |
| | | |
| | | @Resource |
| | | private ManageDocumentCancelService manageDocumentCancelService; |
| | | |
| | | @ApiOperation(value = "å页æ¥è¯¢æä»¶ä½åº") |
| | | @GetMapping("/pageManageDocumentCancel") |
| | | public Result pageManageDocumentCancel(Page page,ManageDocumentCancel manageDocumentCancel) throws Exception { |
| | | return Result.success(manageDocumentCancelService.pageManageDocumentCancel(page, manageDocumentCancel)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢æä»¶ä½åº") |
| | | @PostMapping("/addManageDocumentCancel") |
| | | public Result addManageDocumentCancel(@RequestBody ManageDocumentCancel manageDocumentCancel) { |
| | | return Result.success(manageDocumentCancelService.addManageDocumentCancel(manageDocumentCancel)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å®¡æ ¸æä»¶ä½åº") |
| | | @PostMapping("/checkManageDocumentCancel") |
| | | public Result checkManageDocumentCancel(@RequestBody Map<String, Object> param) { |
| | | Integer id = (Integer) param.get("id"); |
| | | String state = (String) param.get("state"); |
| | | return Result.success(manageDocumentCancelService.checkManageDocumentCancel(id, state)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å 餿件ä½åº") |
| | | @DeleteMapping("/delManageDocumentCancel") |
| | | public Result delManageDocumentCancel(Integer id) { |
| | | return Result.success(manageDocumentCancelService.delManageDocumentCancel(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¥çæä»¶ä½åº") |
| | | @GetMapping("/getManageDocumentCancel") |
| | | public Result getManageDocumentCancel(Integer id) { |
| | | return Result.success(manageDocumentCancelService.getManageDocumentCancel(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¼è¾æä»¶ä½åº") |
| | | @PostMapping("/doManageDocumentCancel") |
| | | public Result doManageDocumentCancel(@RequestBody ManageDocumentCancel manageDocumentCancel) { |
| | | return Result.success(manageDocumentCancelService.doManageDocumentCancel(manageDocumentCancel)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å¯¼åºæä»¶ä½åº") |
| | | @GetMapping("/exportManageDocumentCancel") |
| | | public void exportManageDocumentCancel(ManageDocumentCancel manageDocumentCancel,HttpServletResponse response) throws Exception { |
| | | manageDocumentCancelService.exportManageDocumentCancel(manageDocumentCancel,response); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.ManageDocumentControlled; |
| | | import com.ruoyi.manage.service.ManageDocumentControlledService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶åæ§ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-08 02:54:44 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/manageDocumentControlled") |
| | | public class ManageDocumentControlledController { |
| | | |
| | | @Resource |
| | | private ManageDocumentControlledService manageDocumentControlledService; |
| | | |
| | | @ApiOperation(value = "å页æ¥è¯¢æä»¶åæ§") |
| | | @GetMapping("/pageManageDocumentControlled") |
| | | public Result pageManageDocumentControlled(Page page,ManageDocumentControlled manageDocumentControlled) throws Exception { |
| | | return Result.success(manageDocumentControlledService.pageManageDocumentControlled(page, manageDocumentControlled)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢æä»¶åæ§") |
| | | @PostMapping("/addManageDocumentControlled") |
| | | public Result addManageDocumentControlled(ManageDocumentControlled manageDocumentControlled){ |
| | | return Result.success(manageDocumentControlledService.addManageDocumentControlled(manageDocumentControlled)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¥çæä»¶åæ§") |
| | | @GetMapping("/getManageDocumentControlled") |
| | | public Result getManageDocumentControlled(Long id){ |
| | | return Result.success(manageDocumentControlledService.getManageDocumentControlled(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¼è¾æä»¶åæ§") |
| | | @PostMapping("/doManageDocumentControlled") |
| | | public Result doManageDocumentControlled(ManageDocumentControlled manageDocumentControlled){ |
| | | return Result.success(manageDocumentControlledService.doManageDocumentControlled(manageDocumentControlled)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å 餿件忧") |
| | | @DeleteMapping("/delManageDocumentControlled") |
| | | public Result delManageDocumentControlled(Long id){ |
| | | return Result.success(manageDocumentControlledService.delManageDocumentControlled(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å®¡æ ¸æä»¶åæ§") |
| | | @PostMapping("/checkManageDocumentControlled") |
| | | public Result checkManageDocumentControlled(ManageDocumentControlled manageDocumentControlled){ |
| | | return Result.success(manageDocumentControlledService.checkManageDocumentControlled(manageDocumentControlled)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å®¡æ ¸æ¥çéä»¶") |
| | | @GetMapping("/checkManageDocumentControlledPdf") |
| | | public void checkManageDocumentControlledPdf(Long id, HttpServletResponse response)throws Exception { |
| | | manageDocumentControlledService.checkManageDocumentControlledPdf(id,response); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.dto.ManageDocumentIssueRecycleDto; |
| | | import com.ruoyi.manage.pojo.ManageDocumentIssueRecycle; |
| | | import com.ruoyi.manage.service.ManageDocumentIssueRecycleService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶åæ¾åæ¶ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 09:18:24 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/manageDocumentIssueRecycle") |
| | | public class ManageDocumentIssueRecycleController { |
| | | |
| | | @Resource |
| | | private ManageDocumentIssueRecycleService manageDocumentIssueRecycleService; |
| | | |
| | | @ApiOperation(value = "å页æ¥è¯¢æä»¶åæ¾åæ¶") |
| | | @GetMapping("/pageManageDocumentIssueRecycle") |
| | | public Result pageManageDocumentIssueRecycle(Page page,ManageDocumentIssueRecycleDto manageDocumentIssueRecycleDto) throws Exception { |
| | | return Result.success(manageDocumentIssueRecycleService.pageManageDocumentIssueRecycle(page, manageDocumentIssueRecycleDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢æä»¶åæ¾åæ¶") |
| | | @PostMapping("/addManageDocumentIssueRecycle") |
| | | public Result addManageDocumentIssueRecycle(ManageDocumentIssueRecycle manageDocumentIssueRecycle){ |
| | | return Result.success(manageDocumentIssueRecycleService.addManageDocumentIssueRecycle(manageDocumentIssueRecycle)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å 餿件忾忶") |
| | | @DeleteMapping("/delManageDocumentIssueRecycle") |
| | | public Result delManageDocumentIssueRecycle(Long id){ |
| | | return Result.success(manageDocumentIssueRecycleService.delManageDocumentIssueRecycle(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¥çæä»¶åæ¾åæ¶") |
| | | @GetMapping("/getManageDocumentIssueRecycle") |
| | | public Result getManageDocumentIssueRecycle(Long id){ |
| | | return Result.success(manageDocumentIssueRecycleService.getManageDocumentIssueRecycle(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¼è¾æä»¶åæ¾åæ¶") |
| | | @PostMapping("/doManageDocumentIssueRecycle") |
| | | public Result doManageDocumentIssueRecycle(@RequestBody ManageDocumentIssueRecycle manageDocumentIssueRecycle){ |
| | | return Result.success(manageDocumentIssueRecycleService.doManageDocumentIssueRecycle(manageDocumentIssueRecycle)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å®¡æ ¸æä»¶åæ¾åæ¶") |
| | | @PostMapping("/checkManageDocumentIssueRecycle") |
| | | public Result checkManageDocumentIssueRecycle(@RequestBody ManageDocumentIssueRecycle manageDocumentIssueRecycle){ |
| | | return Result.success(manageDocumentIssueRecycleService.checkManageDocumentIssueRecycle(manageDocumentIssueRecycle.getId(),manageDocumentIssueRecycle.getDocumentState())); |
| | | } |
| | | |
| | | @ApiOperation(value = "å¯¼åºæä»¶åæ¾åæ¶") |
| | | @GetMapping("/exportManageDocumentIssueRecycle") |
| | | public void exportManageDocumentIssueRecycle(ManageDocumentIssueRecycleDto manageDocumentIssueRecycleDto, HttpServletResponse response) throws Exception { |
| | | manageDocumentIssueRecycleService.exportManageDocumentIssueRecycle(manageDocumentIssueRecycleDto,response); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.excel.ManageDocumentListListener; |
| | | import com.ruoyi.manage.pojo.ManageDocumentList; |
| | | import com.ruoyi.manage.service.ManageDocumentListService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.IOException; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶æ¸
å |
| | | å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-08 11:08:11 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/manageDocumentList") |
| | | public class ManageDocumentListController { |
| | | |
| | | @Resource |
| | | private ManageDocumentListService manageDocumentListService; |
| | | |
| | | @ApiOperation(value = "å页æ¥è¯¢æä»¶æ¸
å") |
| | | @GetMapping("/pageManageDocumentList") |
| | | public Result pageManageDocumentList(Page page,ManageDocumentList manageDocumentList) throws Exception { |
| | | return Result.success(manageDocumentListService.pageManageDocumentList(page, manageDocumentList)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¼è¾æä»¶æ¸
å") |
| | | @PostMapping("/doManageDocumentList") |
| | | public Result doManageDocumentList(@RequestBody ManageDocumentList manageDocumentList) { |
| | | return Result.success(manageDocumentListService.updateById(manageDocumentList)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å 餿件æ¸
å") |
| | | @DeleteMapping("/delManageDocumentList") |
| | | public Result delManageDocumentList(Integer id) { |
| | | return Result.success(manageDocumentListService.removeById(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ä¸ä¼ éä»¶-æä»¶æ¸
å") |
| | | @PostMapping("/uploadFileManageDocumentList") |
| | | public Result uploadFileManageDocumentList(Integer id, MultipartFile file) { |
| | | return Result.success(manageDocumentListService.uploadFile(id,file)); |
| | | } |
| | | |
| | | @ApiOperation(value = "导å
¥æä»¶æ¸
åå表") |
| | | @PostMapping("/exportManageDocumentList") |
| | | public Result exportManageDocumentList(MultipartFile file) { |
| | | try { |
| | | EasyExcel.read(file.getInputStream(), ManageDocumentList.class, new ManageDocumentListListener(manageDocumentListService)).sheet().doRead(); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return Result.success(); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.dto.ManageMeetingDto; |
| | | import com.ruoyi.manage.service.ManageMeetingService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-11 09:33:47 |
| | | */ |
| | | @Api(tags = "管çè¯å®¡ä¼è®®") |
| | | @RestController |
| | | @RequestMapping("/manageMeeting") |
| | | public class ManageMeetingController { |
| | | |
| | | @Resource |
| | | private ManageMeetingService manageMeetingService; |
| | | |
| | | @ApiOperation(value = "管çè¯å®¡ä¼è®®è®°å½æ¥è¯¢") |
| | | @GetMapping("/getPageMeeting") |
| | | public Result<IPage<ManageMeetingDto>> getPageMeeting(Page page, String startTime, String endTime, String place) throws Exception { |
| | | IPage<ManageMeetingDto> ipage = manageMeetingService.page(page,startTime,endTime,place); |
| | | return Result.success(ipage); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢ä¼è®®è®°å½") |
| | | @PostMapping("/addMeeting") |
| | | public Result addMeeting(@RequestBody ManageMeetingDto dto){ |
| | | manageMeetingService.addMeeting(dto); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¼è¾ä¼è®®è®°å½") |
| | | @PostMapping("/modifyMeeting") |
| | | public Result modifyMeeting(@RequestBody ManageMeetingDto manageMeetingDto){ |
| | | return Result.success(manageMeetingService.modifyMeeting(manageMeetingDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤ä¼è®®è®°å½") |
| | | @DeleteMapping("/deleteMeeting") |
| | | public Result deleteMeeting(Integer id){ |
| | | return Result.success(manageMeetingService.removeById(id)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "ä¸è½½ä¼è®®è®°å½") |
| | | @GetMapping("/exportMeeting") |
| | | public void exportMeeting(Integer id, HttpServletResponse response){ |
| | | manageMeetingService.exportMeeting(id,response); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.manage.pojo.ManageMeetingParticipants; |
| | | import com.ruoyi.manage.service.ManageMeetingParticipantsService; |
| | | import com.ruoyi.manage.vo.MeetingParticipantsDetailsVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-11 09:34:27 |
| | | */ |
| | | @Api(tags = "管çè¯å®¡ä¼è®®") |
| | | @RestController |
| | | @RequestMapping("/manageMeetingParticipants") |
| | | public class ManageMeetingParticipantsController { |
| | | |
| | | @Resource |
| | | private ManageMeetingParticipantsService manageMeetingParticipantsService; |
| | | |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢ä¼è®®è®°å½åä¼äººå") |
| | | @GetMapping("/getParticipants") |
| | | public Result<MeetingParticipantsDetailsVo> getParticipants(Integer id){ |
| | | return Result.success(manageMeetingParticipantsService.getParticipants(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢ä¼è®®è®°å½åä¼äººå") |
| | | @PostMapping("/add") |
| | | public Result addParticipants(@RequestBody List<ManageMeetingParticipants> list){ |
| | | manageMeetingParticipantsService.saveBatch(list); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤ä¼è®®è®°å½åä¼äººå") |
| | | @DeleteMapping("/delete") |
| | | public Result deleteParticipants(List<Integer> ids){ |
| | | manageMeetingParticipantsService.removeByIds(ids); |
| | | return Result.success(); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.ManageRecordAudit; |
| | | import com.ruoyi.manage.service.ManageRecordAuditService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-14 10:29:18 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/manageRecordAudit") |
| | | public class ManageRecordAuditController { |
| | | |
| | | @Resource |
| | | private ManageRecordAuditService manageRecordAuditService; |
| | | |
| | | @ApiOperation(value = "å页æ¥è¯¢æä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½") |
| | | @GetMapping("/pageManageRecordAudit") |
| | | public Result pageManageRecordAudit(Page page,ManageRecordAudit manageRecordAudit) throws Exception { |
| | | return Result.success(manageRecordAuditService.pageManageRecordAudit(page, manageRecordAudit)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢æä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½") |
| | | @PostMapping("/addManageRecordAudit") |
| | | public Result addManageRecordAudit( ManageRecordAudit manageRecordAudit){ |
| | | return Result.success(manageRecordAuditService.addManageRecordAudit(manageRecordAudit)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¼è¾æä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½") |
| | | @PostMapping("/doManageRecordAudit") |
| | | public Result doManageRecordAudit(ManageRecordAudit manageRecordAudit){ |
| | | return Result.success(manageRecordAuditService.doManageRecordAudit(manageRecordAudit)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤æä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½") |
| | | @DeleteMapping("/delManageRecordAudit") |
| | | public Result delManageRecordAudit(Integer id){ |
| | | return Result.success(manageRecordAuditService.removeById(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¹åæä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½") |
| | | @PostMapping("/ratifyManageRecordAudit") |
| | | public Result ratifyManageRecordAudit(@RequestBody Map<String, Integer> param){ |
| | | Integer id = param.get("id"); |
| | | return Result.success(manageRecordAuditService.ratifyManageRecordAudit(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç³è¯·é¨é¨ä¸»ç®¡æè§æä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½") |
| | | @PostMapping("/manageRecordAudit1") |
| | | public void manageRecordAudit1(){ |
| | | } |
| | | |
| | | @ApiOperation(value = "åå¶å®é¨é¨æè§æä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½") |
| | | @PostMapping("/manageRecordAudit2") |
| | | public void manageRecordAudit2(){ |
| | | } |
| | | |
| | | @ApiOperation(value = "åå®¡æ ¸é¨é¨æè§æä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½") |
| | | @PostMapping("/manageRecordAudit3") |
| | | public void manageRecordAudit3(){ |
| | | } |
| | | |
| | | @ApiOperation(value = "å¯¼åºæä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½") |
| | | @GetMapping("/exportOutManageRecordAudit") |
| | | public Result exportOutManageRecordAudit(ManageRecordAudit manageRecordAudit, HttpServletResponse response) throws Exception { |
| | | return Result.success(manageRecordAuditService.exportOutManageRecordAudit(manageRecordAudit,response)); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.ManageRecordCancel; |
| | | import com.ruoyi.manage.service.ManageRecordCancelService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.time.LocalDate; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * ä½åºæä»¶ééè®°å½ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 01:27:22 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/manageRecordCancel") |
| | | public class ManageRecordCancelController { |
| | | |
| | | @Resource |
| | | private ManageRecordCancelService manageRecordCancelService; |
| | | |
| | | @ApiOperation(value = "å页æ¥è¯¢ä½åºæä»¶éæ¯è®°å½") |
| | | @GetMapping("/pageManageRecordCancel") |
| | | public Result pageManageRecordCancel(Page page,ManageRecordCancel manageRecordCancel) throws Exception { |
| | | return Result.success(manageRecordCancelService.pageManageRecordCancel(page, manageRecordCancel)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢ä½åºæä»¶éæ¯è®°å½") |
| | | @PostMapping("/addManageRecordCancel") |
| | | public Result addManageRecordCancel(@RequestBody ManageRecordCancel manageRecordCancel){ |
| | | manageRecordCancel.setCreateTime(LocalDate.now()); |
| | | return Result.success(manageRecordCancelService.save(manageRecordCancel)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¼è¾ä½åºæä»¶éæ¯è®°å½") |
| | | @PostMapping("/doManageRecordCancel") |
| | | public Result doManageRecordCancel(@RequestBody ManageRecordCancel manageRecordCancel){ |
| | | return Result.success(manageRecordCancelService.updateById(manageRecordCancel)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤ä½åºæä»¶éæ¯è®°å½") |
| | | @DeleteMapping("/delManageRecordCancel") |
| | | public Result delManageRecordCancel(Integer id){ |
| | | return Result.success(manageRecordCancelService.removeById(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¹åä½åºæä»¶éæ¯è®°å½") |
| | | @PostMapping("/ratifyManageRecordCancel") |
| | | public Result ratifyManageRecordCancel(@RequestBody Map<String, Object> param){ |
| | | Integer id = (Integer) param.get("id"); |
| | | String ratifyState = (String) param.get("ratifyState"); |
| | | return Result.success(manageRecordCancelService.ratifyManageRecordCancel(id,ratifyState)); |
| | | } |
| | | |
| | | @ApiOperation(value = "导åºä½åºæä»¶éæ¯è®°å½") |
| | | @GetMapping("/exportOutManageRecordCancel") |
| | | public Result exportOutManageRecordCancel(ManageRecordCancel manageRecordCancel, HttpServletResponse response) throws Exception { |
| | | return Result.success(manageRecordCancelService.exportOutManageRecordCancel(manageRecordCancel,response)); |
| | | } |
| | | |
| | | @ApiOperation(value = "导å
¥ä½åºæä»¶éæ¯è®°å½") |
| | | @PostMapping("/exportInManageRecordCancel") |
| | | public Result exportInManageRecordCancel(MultipartFile file){ |
| | | return Result.success(manageRecordCancelService.exportInManageRecordCancel(file)); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.ManageRecordCheck; |
| | | import com.ruoyi.manage.service.ManageRecordCheckService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶å®¡æ¹è®°å½(å«ä¿®è®¢å忬¡å®¡æ¹è®°å½) å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 02:31:36 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/manageRecordCheck") |
| | | public class ManageRecordCheckController { |
| | | |
| | | @Resource |
| | | private ManageRecordCheckService manageRecordCheckService; |
| | | |
| | | @ApiOperation(value = "å页æ¥è¯¢æä»¶å®¡æ¹è®°å½") |
| | | @GetMapping("/pageManageRecordCheck") |
| | | public Result pageManageRecordCheck(Page page,ManageRecordCheck manageRecordCheck) throws Exception { |
| | | return Result.success(manageRecordCheckService.pageManageRecordCheck(page, manageRecordCheck)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢æä»¶å®¡æ¹è®°å½") |
| | | @PostMapping("/addManageRecordCheck") |
| | | public Result addManageRecordCheck(@RequestBody ManageRecordCheck manageRecordCheck) { |
| | | return Result.success(manageRecordCheckService.save(manageRecordCheck)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¼è¾æä»¶å®¡æ¹è®°å½") |
| | | @PostMapping("/doManageRecordCheck") |
| | | public Result doManageRecordCheck(@RequestBody ManageRecordCheck manageRecordCheck) { |
| | | return Result.success(manageRecordCheckService.updateById(manageRecordCheck)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å 餿件审æ¹è®°å½") |
| | | @DeleteMapping("/delManageRecordCheck") |
| | | public Result delManageRecordCheck(Integer id) { |
| | | return Result.success(manageRecordCheckService.removeById(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å®¡æ ¸æä»¶å®¡æ¹è®°å½") |
| | | @PostMapping("/checkManageRecordCheck") |
| | | public Result checkManageRecordCheck(@RequestBody Map<String, Object> param) { |
| | | Integer id = (Integer) param.get("id"); |
| | | String checkState = (String) param.get("checkState"); |
| | | return Result.success(manageRecordCheckService.checkManageRecordCheck(id,checkState)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¹åæä»¶å®¡æ¹è®°å½") |
| | | @PostMapping("/ratifyManageRecordCheck") |
| | | public Result ratifyManageRecordCheck(@RequestBody Map<String, Object> param) { |
| | | Integer id = (Integer) param.get("id"); |
| | | String ratifyState = (String) param.get("ratifyState"); |
| | | return Result.success(manageRecordCheckService.ratifyManageRecordCheck(id,ratifyState)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å¯¼åºæä»¶å®¡æ¹è®°å½") |
| | | @GetMapping("/exportOutManageRecordCheck") |
| | | public Result exportOutManageRecordCheck(ManageRecordCheck manageRecordCheck, HttpServletResponse response) throws Exception { |
| | | return Result.success(manageRecordCheckService.exportOutManageRecordCheck(manageRecordCheck,response)); |
| | | } |
| | | |
| | | @ApiOperation(value = "导å
¥æä»¶å®¡æ¹è®°å½") |
| | | @PostMapping("/exportInManageRecordCheck") |
| | | public Result exportInManageRecordCheck(MultipartFile file){ |
| | | return Result.success(manageRecordCheckService.exportInManageRecordCheck(file)); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.ManageRecordIntervals; |
| | | import com.ruoyi.manage.service.ManageRecordIntervalsService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶å®æå®¡æ¥è®°å½ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 10:54:31 |
| | | */ |
| | | @Api(tags = "è®°å½çæ§å¶") |
| | | @RestController |
| | | @RequestMapping("/manageRecordIntervals") |
| | | public class ManageRecordIntervalsController { |
| | | |
| | | @Resource |
| | | private ManageRecordIntervalsService manageRecordIntervalsService; |
| | | |
| | | @ApiOperation(value = "å页æ¥è¯¢æä»¶å®æå®¡æ¥è®°å½") |
| | | @GetMapping("/pageManageRecordIntervals") |
| | | public Result pageManageRecordIntervals(Page page,ManageRecordIntervals manageRecordIntervals) throws Exception { |
| | | return Result.success(manageRecordIntervalsService.pageManageRecordIntervals(page, manageRecordIntervals)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢æä»¶å®æå®¡æ¥è®°å½") |
| | | @PostMapping("/addManageRecordIntervals") |
| | | public Result addManageRecordIntervals(@RequestBody ManageRecordIntervals manageRecordIntervals) { |
| | | return Result.success(manageRecordIntervalsService.addManageRecordIntervals(manageRecordIntervals)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¼è¾æä»¶å®æå®¡æ¥è®°å½") |
| | | @PostMapping("/doManageRecordIntervals") |
| | | public Result doManageRecordIntervals(@RequestBody ManageRecordIntervals manageRecordIntervals) { |
| | | return Result.success(manageRecordIntervalsService.updateById(manageRecordIntervals)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å 餿件宿审æ¥è®°å½") |
| | | @DeleteMapping("/delManageRecordIntervals") |
| | | public Result delManageRecordIntervals(Integer id) { |
| | | return Result.success(manageRecordIntervalsService.delManageRecordIntervals(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å¯¼åºæä»¶å®æå®¡æ¥è®°å½") |
| | | @GetMapping("/exportOutManageRecordIntervals") |
| | | public Result exportOutManageRecordIntervals(ManageRecordIntervals manageRecordIntervals, HttpServletResponse response) throws Exception { |
| | | return Result.success(manageRecordIntervalsService.exportOutManageRecordIntervals(manageRecordIntervals,response)); |
| | | } |
| | | |
| | | @ApiOperation(value = "导å
¥æä»¶å®æå®¡æ¥è®°å½") |
| | | @PostMapping("/exportInManageRecordIntervals") |
| | | public Result exportInManageRecordIntervals(MultipartFile file){ |
| | | return Result.success(manageRecordIntervalsService.exportInManageRecordIntervals(file)); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.ManageRecordIntervalsTotal; |
| | | import com.ruoyi.manage.service.ManageRecordIntervalsTotalService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶å®æå®¡æ¥è®°å½æ»åå²è®°å½è¡¨ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 01:12:11 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/manageRecordIntervalsTotal") |
| | | public class ManageRecordIntervalsTotalController { |
| | | |
| | | @Resource |
| | | private ManageRecordIntervalsTotalService manageRecordIntervalsTotalService; |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢æä»¶å®æå®¡æ¥è®°å½åå²å表") |
| | | @GetMapping("/pageManageRecordIntervalsTotal") |
| | | public Result pageManageRecordIntervalsTotal(Page page,ManageRecordIntervalsTotal manageRecordIntervalsTotal) throws Exception { |
| | | return Result.success(manageRecordIntervalsTotalService.pageManageRecordIntervalsTotal(page, manageRecordIntervalsTotal)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æäº¤æä»¶å®æå®¡æ¥è®°å½åå²å表") |
| | | @PostMapping("/submitManageRecordIntervalsTotal") |
| | | public Result submitManageRecordIntervalsTotal(@RequestBody Map<String, Integer> param) { |
| | | Integer id = param.get("id"); |
| | | return Result.success(manageRecordIntervalsTotalService.submitManageRecordIntervalsTotal(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¹åæä»¶å®æå®¡æ¥è®°å½åå²å表") |
| | | @PostMapping("/ratifyManageRecordIntervalsTotal") |
| | | public Result ratifyManageRecordIntervalsTotal(@RequestBody Map<String, Object> param) { |
| | | Integer id = (Integer) param.get("id"); |
| | | String ratifyState = (String) param.get("ratifyState"); |
| | | return Result.success(manageRecordIntervalsTotalService.ratifyManageRecordIntervalsTotal(id, ratifyState)); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.ManageRecordIssueRecycle; |
| | | import com.ruoyi.manage.service.ManageRecordIssueRecycleService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æææä»¶(å
ãå¤é¨æä»¶)çåæ¾ä¸åæ¶è®°å½ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 09:11:05 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/manageRecordIssueRecycle") |
| | | public class ManageRecordIssueRecycleController { |
| | | |
| | | @Resource |
| | | private ManageRecordIssueRecycleService manageRecordIssueRecycleService; |
| | | |
| | | @ApiOperation(value = "å页æ¥è¯¢æææä»¶çåæ¾ä¸åæ¶è®°å½") |
| | | @GetMapping("/pageManageRecordIssueRecycle") |
| | | public Result pageManageRecordIssueRecycle(Page page,ManageRecordIssueRecycle manageRecordIssueRecycle) throws Exception { |
| | | return Result.success(manageRecordIssueRecycleService.pageManageRecordIssueRecycle(page, manageRecordIssueRecycle)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å 餿ææä»¶çåæ¾ä¸åæ¶è®°å½") |
| | | @DeleteMapping("/delManageRecordIssueRecycle") |
| | | public Result delManageRecordIssueRecycle(Integer id){ |
| | | return Result.success(manageRecordIssueRecycleService.removeById(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢æææä»¶çåæ¾ä¸åæ¶è®°å½") |
| | | @PostMapping("/addManageRecordIssueRecycle") |
| | | public Result addManageRecordIssueRecycle(@RequestBody ManageRecordIssueRecycle manageRecordIssueRecycle){ |
| | | return Result.success(manageRecordIssueRecycleService.addManageRecordIssueRecycle(manageRecordIssueRecycle)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¼è¾æææä»¶çåæ¾ä¸åæ¶è®°å½") |
| | | @PostMapping("/doManageRecordIssueRecycle") |
| | | public Result doManageRecordIssueRecycle(@RequestBody ManageRecordIssueRecycle manageRecordIssueRecycle){ |
| | | return Result.success(manageRecordIssueRecycleService.doManageRecordIssueRecycle(manageRecordIssueRecycle)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å¯¼åºæææä»¶çåæ¾ä¸åæ¶è®°å½") |
| | | @GetMapping("/exportOutManageRecordIssueRecycle") |
| | | public Result exportOutManageRecordIssueRecycle(ManageRecordIssueRecycle manageRecordIssueRecycle, HttpServletResponse response) throws Exception { |
| | | return Result.success(manageRecordIssueRecycleService.exportOutManageRecordIssueRecycle(manageRecordIssueRecycle,response)); |
| | | } |
| | | |
| | | @ApiOperation(value = "导å
¥æææä»¶çåæ¾ä¸åæ¶è®°å½") |
| | | @PostMapping("/exportInManageRecordIssueRecycle") |
| | | public Result exportInManageRecordIssueRecycle(MultipartFile file){ |
| | | return Result.success(manageRecordIssueRecycleService.exportInManageRecordIssueRecycle(file)); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.ManageRecordTotal; |
| | | import com.ruoyi.manage.service.ManageRecordTotalService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * 夿¥æä»¶ç¡®è®¤è®°å½æ»åå²è®°å½è¡¨ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 10:30:08 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/manageRecordTotal") |
| | | public class ManageRecordTotalController { |
| | | |
| | | @Resource |
| | | private ManageRecordTotalService manageRecordTotalService; |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢å¤æ¥æä»¶ç¡®è®¤è®°å½åå²å表") |
| | | @GetMapping("/pageManageRecordTotal") |
| | | public Result pageManageRecordTotal(Page page, ManageRecordTotal manageRecordTotal) throws Exception { |
| | | return Result.success(manageRecordTotalService.pageManageRecordTotal(page, manageRecordTotal)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æäº¤å¤æ¥æä»¶ç¡®è®¤è®°å½åå²å表") |
| | | @PostMapping("/submitManageRecordTotal") |
| | | public Result submitManageRecordTotal(@RequestBody Map<String, Integer> param) { |
| | | Integer id = param.get("id"); |
| | | return Result.success(manageRecordTotalService.submitManageRecordTotal(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¹å夿¥æä»¶ç¡®è®¤è®°å½åå²å表") |
| | | @PostMapping("/ratifyManageRecordTotal") |
| | | public Result ratifyManageRecordTotal(@RequestBody Map<String, Object> param) { |
| | | Integer id = (Integer) param.get("id"); |
| | | String ratifyState = (String) param.get("ratifyState"); |
| | | return Result.success(manageRecordTotalService.ratifyManageRecordTotal(id, ratifyState)); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.pojo.ManageRecordVerify; |
| | | import com.ruoyi.manage.service.ManageRecordVerifyService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * 夿¥æä»¶ç¡®è®¤è®°å½ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 10:29:44 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/manageRecordVerify") |
| | | public class ManageRecordVerifyController { |
| | | |
| | | @Resource |
| | | private ManageRecordVerifyService manageRecordVerifyService; |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢å¤æ¥æä»¶ç¡®è®¤è®°å½è¯¦æ
") |
| | | @GetMapping("/pageManageRecordVerify") |
| | | public Result pageManageRecordVerify(Page page,ManageRecordVerify manageRecordVerify) throws Exception { |
| | | return Result.success(manageRecordVerifyService.pageManageRecordVerify(page, manageRecordVerify)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢å¤æ¥æä»¶ç¡®è®¤è®°å½") |
| | | @PostMapping("/addManageRecordVerify") |
| | | public Result addManageRecordVerify(@RequestBody ManageRecordVerify manageRecordVerify) { |
| | | return Result.success(manageRecordVerifyService.addManageRecordVerify(manageRecordVerify)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤å¤æ¥æä»¶ç¡®è®¤è®°å½") |
| | | @DeleteMapping("/delManageRecordVerify") |
| | | public Result delManageRecordVerify(Integer id) { |
| | | return Result.success(manageRecordVerifyService.delManageRecordVerify(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ä¿®æ¹å¤æ¥æä»¶ç¡®è®¤è®°å½") |
| | | @PostMapping("/doManageRecordVerify") |
| | | public Result doManageRecordVerify(@RequestBody ManageRecordVerify manageRecordVerify) { |
| | | return Result.success(manageRecordVerifyService.updateById(manageRecordVerify)); |
| | | } |
| | | |
| | | @ApiOperation(value = "导å
¥å¤æ¥æä»¶ç¡®è®¤è®°å½") |
| | | @PostMapping("/exportManageRecordVerify") |
| | | public Result exportManageRecordVerify(MultipartFile file) { |
| | | return Result.success(manageRecordVerifyService.exportManageRecordVerify(file)); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageReviewProgram; |
| | | import com.ruoyi.manage.service.ManageReviewProgramService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 03:05:42 |
| | | */ |
| | | @Api(tags = "管çè¯å®¡è®¡å") |
| | | @RestController |
| | | @RequestMapping("/manageReviewProgram") |
| | | public class ManageReviewProgramController { |
| | | @Resource |
| | | private ManageReviewProgramService manageReviewProgramService; |
| | | |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢è¯å®¡è®¡å") |
| | | @GetMapping("/getPageReviewProgram") |
| | | public Result<IPage<ManageReviewProgram>> getPageReviewProgram(Page page, String startTime, String endTime, String judgingLocation) throws Exception { |
| | | IPage<ManageReviewProgram> ipage = manageReviewProgramService.page(page,startTime,endTime,judgingLocation); |
| | | return Result.success(ipage); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "æ°å¢è¯å®¡è®¡å") |
| | | @PostMapping("/addReviewProgram") |
| | | public Result addReviewProgram(@RequestBody ManageReviewProgram manageReviewProgram){ |
| | | return Result.success(manageReviewProgramService.addReviewProgram(manageReviewProgram)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¼è¾è¯å®¡è®¡å") |
| | | @PostMapping("/modifyReviewProgram") |
| | | public Result modifyReviewProgram(@RequestBody ManageReviewProgram manageReviewProgram){ |
| | | return Result.success(manageReviewProgramService.updateById(manageReviewProgram)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤è¯å®¡è®¡å") |
| | | @DeleteMapping("/deleteReviewProgram") |
| | | public Result deleteReviewProgram( Integer id){ |
| | | return Result.success(manageReviewProgramService.removeById(id)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "ä¸è½½è¯å®¡è®¡å") |
| | | @GetMapping("/exportReviewProgram") |
| | | public void exportReviewProgram(Integer id, HttpServletResponse response){ |
| | | manageReviewProgramService.exportReviewProgram(id,response); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.manage.service.ManageReviewProgramFileService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * <p> |
| | | * å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 04:15:47 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/manageReviewProgramFile") |
| | | public class ManageReviewProgramFileController { |
| | | |
| | | @Resource |
| | | private ManageReviewProgramFileService manageReviewProgramFileService; |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢è¯å®¡è®¡åæä»¶") |
| | | @GetMapping("/selectReviewProgramFile") |
| | | public Result selectReviewProgramFile(Integer id){ |
| | | return Result.success(manageReviewProgramFileService.selectFile(id)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "æ°å¢è¯å®¡è®¡åæä»¶") |
| | | @PostMapping("/addReviewProgramFile") |
| | | public Result addReviewProgramFile(MultipartFile file,Integer id){ |
| | | manageReviewProgramFileService.addFile(file,id); |
| | | return Result.success(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageReviewReport; |
| | | import com.ruoyi.manage.service.ManageReviewReportService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * 管çè¯å®¡æ¥å å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 04:44:39 |
| | | */ |
| | | @Api(tags = "管çè¯å®¡æ¥å") |
| | | @RestController |
| | | @RequestMapping("/manageReviewReport") |
| | | public class ManageReviewReportController { |
| | | |
| | | @Resource |
| | | private ManageReviewReportService manageReviewReportService; |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢ç®¡çè¯å®¡æ¥å") |
| | | @GetMapping("/getPageReviewReport") |
| | | public Result<IPage<ManageReviewReport>> getPageReviewReport(Page page, String startTime, String endTime, String place) { |
| | | IPage<ManageReviewReport> ipage = manageReviewReportService.page(page,startTime,endTime,place); |
| | | return Result.success(ipage); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢ç®¡çè¯å®¡æ¥å") |
| | | @PostMapping("/addReviewReport") |
| | | public Result addReviewReport(@RequestBody ManageReviewReport manageReviewReport){ |
| | | return Result.success(manageReviewReportService.save(manageReviewReport)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ç¼è¾ç®¡çè¯å®¡æ¥å") |
| | | @PostMapping("/modifyReviewReport") |
| | | public Result modifyReviewReport(@RequestBody ManageReviewReport manageReviewReport){ |
| | | return Result.success(manageReviewReportService.updateById(manageReviewReport)); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤ç®¡çè¯å®¡æ¥å") |
| | | @DeleteMapping("/deleteReviewReport") |
| | | public Result deleteReviewReport(Integer id){ |
| | | return Result.success(manageReviewReportService.removeById(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "ä¸è½½ç®¡çè¯å®¡æ¥å") |
| | | @GetMapping("/exportReviewReport") |
| | | public void exportReviewReport(Integer id , HttpServletResponse response){ |
| | | manageReviewReportService.exportReviewReport(id,response); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.excel.enums.CellExtraTypeEnum; |
| | | import com.alibaba.excel.read.listener.PageReadListener; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.manage.pojo.ManageRiskAssessmentResults; |
| | | import com.ruoyi.manage.service.ManageRiskAssessmentResultsService; |
| | | import com.ruoyi.manage.vo.ManageRiskAssessmentResultsVo; |
| | | 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.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * å±é©å ç´ è¾¨è¯ä¸é£é©è¯ä»·ç»æä¸è§è¡¨ å端æ§å¶å¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 02:58:51 |
| | | */ |
| | | @Api(tags = "å±é©å ç´ è¾¨è¯ä¸é£é©è¯ä»·ç»æä¸è§è¡¨") |
| | | @RestController |
| | | @RequestMapping("/manageRiskAssessmentResults") |
| | | public class ManageRiskAssessmentResultsController { |
| | | |
| | | @Resource |
| | | private ManageRiskAssessmentResultsService manageRiskAssessmentResultsService; |
| | | |
| | | @ApiOperation(value = "å页æ¥è¯¢") |
| | | @GetMapping("/getPageResults") |
| | | public Result<IPage<ManageRiskAssessmentResultsVo>> getPageResults(Page page) { |
| | | IPage<ManageRiskAssessmentResultsVo> ipage = manageRiskAssessmentResultsService.getPageResults(page); |
| | | return Result.success(ipage); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¹å") |
| | | @PostMapping("/hazardIdentificationAndRiskApproval") |
| | | public Result<?> hazardIdentificationAndRiskApproval(@RequestBody Map<String, Integer> param) { |
| | | Integer approve = param.get("approve"); |
| | | Integer status = param.get("status"); |
| | | manageRiskAssessmentResultsService.update(Wrappers.<ManageRiskAssessmentResults>lambdaUpdate() |
| | | .set(ManageRiskAssessmentResults::getApprove, approve) |
| | | .set(ManageRiskAssessmentResults::getApproveStatus, status) |
| | | .set(ManageRiskAssessmentResults::getApproveDate, LocalDateTime.now())); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "审æ¹") |
| | | @PostMapping("/dangerousRiskApproval") |
| | | public Result<?> dangerousRiskApproval(@RequestBody Map<String, Integer> param) { |
| | | Integer approval = param.get("approval"); |
| | | Integer status = param.get("status"); |
| | | manageRiskAssessmentResultsService.update(Wrappers.<ManageRiskAssessmentResults>lambdaUpdate() |
| | | .set(ManageRiskAssessmentResults::getApproval, approval) |
| | | .set(ManageRiskAssessmentResults::getApprovalStatus, status) |
| | | .set(ManageRiskAssessmentResults::getApprovalDate, LocalDateTime.now())); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "导å
¥") |
| | | @PostMapping("/riskAssessmentImport") |
| | | public void riskAssessmentImport(MultipartFile file) throws IOException { |
| | | boolean excelFile = isExcelFile(file); |
| | | if (!excelFile) { |
| | | throw new ErrorException("请导å
¥excelæä»¶ï¼"); |
| | | } |
| | | EasyExcel.read(file.getInputStream(), ManageRiskAssessmentResults.class, new PageReadListener<ManageRiskAssessmentResults>(dataList -> { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | dataList.forEach(i -> { |
| | | i.setEditor(userId); |
| | | i.setEditorDate(LocalDateTime.now()); |
| | | i.setApproveStatus(0); |
| | | i.setApprovalStatus(0); |
| | | }); |
| | | manageRiskAssessmentResultsService.saveOrUpdateBatch(dataList); |
| | | })).extraRead(CellExtraTypeEnum.MERGE).sheet().doRead(); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢") |
| | | @PostMapping("/addNewRiskFactors") |
| | | public void addNewRiskFactors(@RequestBody ManageRiskAssessmentResults manageRiskAssessmentResults) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | manageRiskAssessmentResults.setEditor(userId); |
| | | manageRiskAssessmentResults.setEditorDate(LocalDateTime.now()); |
| | | manageRiskAssessmentResultsService.saveOrUpdate(manageRiskAssessmentResults); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤") |
| | | @DeleteMapping("/removeRiskFactors") |
| | | public void removeRiskFactors(Integer id) { |
| | | manageRiskAssessmentResultsService.removeById(id); |
| | | } |
| | | |
| | | /** |
| | | * 导åºäººåå¹è®è®¡å |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "导åºå±é©å ç´ è¾¨è¯ä¸é£é©è¯ä»·ç»æä¸è§") |
| | | @GetMapping("/exportHazardFactorIdentification") |
| | | public void exportPersonTraining(HttpServletResponse response){ |
| | | manageRiskAssessmentResultsService.exportPersonTraining(response); |
| | | } |
| | | |
| | | public static boolean isExcelFile(MultipartFile file) { |
| | | if (file.isEmpty()) { |
| | | return false; |
| | | } |
| | | String originalFilename = file.getOriginalFilename(); |
| | | if (originalFilename == null) { |
| | | return false; |
| | | } |
| | | String[] parts = originalFilename.split("\\."); |
| | | if (parts.length == 0) { |
| | | return false; |
| | | } |
| | | String fileExtension = parts[parts.length - 1].toLowerCase(); |
| | | return fileExtension.equals("xls") || fileExtension.equals("xlsx"); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.dto; |
| | | |
| | | import com.ruoyi.manage.pojo.ClientSatisfaction; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * Author: yuan |
| | | * Date: 2024-12-16 ææä¸ 10:38:30 |
| | | * Description: å®¢æ·æ»¡æåº¦è°æ¥å¯¼åºWord |
| | | */ |
| | | @Data |
| | | public class ClientSatisfactionDto extends ClientSatisfaction { |
| | | |
| | | @ApiModelProperty("æå¡æåº¦, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String serviceAttitude0; |
| | | |
| | | @ApiModelProperty("æå¡æåº¦, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String serviceAttitude1; |
| | | |
| | | @ApiModelProperty("æå¡æåº¦, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String serviceAttitude2; |
| | | |
| | | @ApiModelProperty("ææ¯è½å, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String technicalCompetence0; |
| | | |
| | | @ApiModelProperty("ææ¯è½å, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String technicalCompetence1; |
| | | |
| | | @ApiModelProperty("ææ¯è½å, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String technicalCompetence2; |
| | | |
| | | @ApiModelProperty("æ£æµå·¥ä½, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String inspectionWork0; |
| | | |
| | | @ApiModelProperty("æ£æµå·¥ä½, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String inspectionWork1; |
| | | |
| | | @ApiModelProperty("æ£æµå·¥ä½, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String inspectionWork2; |
| | | |
| | | @ApiModelProperty("æ¶è´¹åçæ§, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String reasonableFees0; |
| | | |
| | | @ApiModelProperty("æ¶è´¹åçæ§, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String reasonableFees1; |
| | | |
| | | @ApiModelProperty("æ¶è´¹åçæ§, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private String reasonableFees2; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.dto; |
| | | |
| | | import com.ruoyi.manage.pojo.InternalCheck; |
| | | import com.ruoyi.manage.pojo.InternalCheckDetail; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/11/11 |
| | | */ |
| | | @Data |
| | | public class InternalCheckDto extends InternalCheck { |
| | | |
| | | @ApiModelProperty("æ£æ¥è¯¦æ
") |
| | | private List<InternalCheckDetail> checkDetailList; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.dto; |
| | | |
| | | import com.ruoyi.manage.pojo.InternalCorrect; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/11/19 |
| | | */ |
| | | @Data |
| | | public class InternalCorrectDto extends InternalCorrect { |
| | | |
| | | @ApiModelProperty("æåºæ¶é´") |
| | | private String raiseTimeString; |
| | | |
| | | @ApiModelProperty("åå åææ¶é´") |
| | | private String causeTimeString; |
| | | |
| | | @ApiModelProperty("çº æ£æ¶é´") |
| | | private String correctTimeString; |
| | | |
| | | @ApiModelProperty("éªè¯æ¶é´") |
| | | private String validationTimeString; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.dto; |
| | | |
| | | import com.ruoyi.manage.pojo.InternalImplement; |
| | | import com.ruoyi.manage.pojo.InternalImplementDetail; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/11/11 |
| | | */ |
| | | @Data |
| | | public class InternalImplementDto extends InternalImplement { |
| | | |
| | | @ApiModelProperty("计å详æ
") |
| | | private List<InternalImplementDetail> implementDetailList; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.dto; |
| | | |
| | | import com.ruoyi.manage.pojo.InternalMeeting; |
| | | import com.ruoyi.manage.pojo.InternalMeetingDetail; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/11/12 |
| | | */ |
| | | @Data |
| | | public class InternalMeetingDto extends InternalMeeting { |
| | | |
| | | @ApiModelProperty("åå 人") |
| | | private List<InternalMeetingDetail> meetingDetailList; |
| | | |
| | | @ApiModelProperty("åå 人信æ¯") |
| | | private String participantName; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.dto; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * åå 人å对象 |
| | | * |
| | | * @Author zhuo |
| | | * @Date 2024/11/19 |
| | | */ |
| | | @Data |
| | | public class InternalMeetingParticipantDto { |
| | | |
| | | @ApiModelProperty("åå 人å1") |
| | | private String userName1; |
| | | |
| | | @ApiModelProperty("é¨é¨1") |
| | | private String department1; |
| | | |
| | | @ApiModelProperty("åå 人å2") |
| | | private String userName2; |
| | | |
| | | @ApiModelProperty("é¨é¨2") |
| | | private String department2; |
| | | |
| | | @ApiModelProperty("åå 人å3") |
| | | private String userName3; |
| | | |
| | | @ApiModelProperty("é¨é¨3") |
| | | private String department3; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.dto; |
| | | |
| | | import com.ruoyi.manage.pojo.InternalPlan; |
| | | import com.ruoyi.manage.pojo.InternalPlanDetail; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author zhuo |
| | | * @Date 2024/11/13 |
| | | */ |
| | | @Data |
| | | public class InternalPlanDto extends InternalPlan { |
| | | |
| | | @ApiModelProperty("计å详æ
") |
| | | private List<InternalPlanDetail> planDetailList; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.dto; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.ruoyi.manage.pojo.ManageDocumentIssueRecycle; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ExcelIgnoreUnannotated |
| | | public class ManageDocumentIssueRecycleDto extends ManageDocumentIssueRecycle { |
| | | |
| | | @ApiModelProperty("åæ¾äºº") |
| | | @ExcelProperty(value = "åæ¾äºº") |
| | | private String issueUserName; |
| | | |
| | | @ApiModelProperty("åæ¶äºº") |
| | | @ExcelProperty(value = "åæ¶äºº") |
| | | private String recycleUserName; |
| | | |
| | | @ApiModelProperty("æ¥æ¶äºº") |
| | | @ExcelProperty(value = "æ¥æ¶äºº") |
| | | private String receiveUserName; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.dto; |
| | | |
| | | import com.ruoyi.manage.pojo.ManageMeeting; |
| | | import com.ruoyi.manage.pojo.ManageMeetingParticipants; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class ManageMeetingDto extends ManageMeeting { |
| | | |
| | | private List<ManageMeetingParticipants> list; |
| | | |
| | | private String participant; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.dto; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class ManageMeetingParticipantsDto { |
| | | |
| | | @ApiModelProperty("åå 人å1") |
| | | private String userName1; |
| | | |
| | | @ApiModelProperty("é¨é¨1") |
| | | private String department1; |
| | | |
| | | @ApiModelProperty("åå 人å2") |
| | | private String userName2; |
| | | |
| | | @ApiModelProperty("é¨é¨2") |
| | | private String department2; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.excel; |
| | | |
| | | import com.alibaba.excel.context.AnalysisContext; |
| | | import com.alibaba.excel.event.AnalysisEventListener; |
| | | import com.ruoyi.manage.pojo.ManageDocumentList; |
| | | import com.ruoyi.manage.service.ManageDocumentListService; |
| | | import lombok.Data; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class ManageDocumentListListener extends AnalysisEventListener<ManageDocumentList> { |
| | | private static final int BATCH_COUNT = 1000; |
| | | List<ManageDocumentList> list = new ArrayList<>(); |
| | | |
| | | private ManageDocumentListService manageDocumentListService; |
| | | |
| | | public ManageDocumentListListener(ManageDocumentListService manageDocumentListService) { |
| | | this.manageDocumentListService = manageDocumentListService; |
| | | } |
| | | |
| | | @Override |
| | | public void invoke(ManageDocumentList data, AnalysisContext analysisContext) { |
| | | list.add(data); |
| | | if (list.size() >= BATCH_COUNT) { |
| | | save(); |
| | | list.clear(); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void doAfterAllAnalysed(AnalysisContext analysisContext) { |
| | | save(); |
| | | } |
| | | |
| | | private void save() { |
| | | manageDocumentListService.importExcel(list); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ClientSatisfactionAnalyseFile; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦åæéä»¶ |
| | | * |
| | | * @author makejava |
| | | * @since 2024-11-09 |
| | | */ |
| | | @Mapper |
| | | public interface ClientSatisfactionAnalyseFileMapper extends BaseMapper<ClientSatisfactionAnalyseFile> { |
| | | |
| | | /** |
| | | * 客æ·åæéä»¶å表 |
| | | * @param page |
| | | * @return |
| | | */ |
| | | IPage<ClientSatisfactionAnalyseFile> pageAnalyseFile(Page page, @Param("ew") QueryWrapper<ClientSatisfactionAnalyseFile> ew); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.dto.ClientSatisfactionDto; |
| | | import com.ruoyi.manage.pojo.ClientSatisfaction; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-09 |
| | | */ |
| | | @Mapper |
| | | public interface ClientSatisfactionMapper extends BaseMapper<ClientSatisfaction> { |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦è°æ¥å表 |
| | | * @param page |
| | | * @param ew |
| | | * @return |
| | | */ |
| | | IPage<ClientSatisfaction> pageClientSatisfaction(Page page, @Param("ew") QueryWrapper<ClientSatisfaction> ew); |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦å¯¼åº |
| | | * @param clientSatisfactionId |
| | | * @return |
| | | */ |
| | | ClientSatisfactionDto exportWordClientSatisfaction(Integer clientSatisfactionId); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.manage.pojo.InternalCheckDetail; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥è¯¦æ
表 |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Mapper |
| | | public interface InternalCheckDetailMapper extends BaseMapper<InternalCheckDetail> { |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.dto.InternalCheckDto; |
| | | import com.ruoyi.manage.pojo.InternalCheck; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥è¡¨ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Mapper |
| | | public interface InternalCheckMapper extends BaseMapper<InternalCheck> { |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥å页æ¥è¯¢ |
| | | * @param page |
| | | * @return |
| | | */ |
| | | IPage<InternalCheckDto> pageInternalCheck(Page page, @Param("ew") QueryWrapper<InternalCheck> ew); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.manage.pojo.InternalCorrectFile; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审管ççº æ£æªæ½é件表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 04:00:38 |
| | | */ |
| | | @Mapper |
| | | public interface InternalCorrectFileMapper extends BaseMapper<InternalCorrectFile> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.InternalCorrect; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审管ççº æ£å¤ç表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 04:00:15 |
| | | */ |
| | | @Mapper |
| | | public interface InternalCorrectMapper extends BaseMapper<InternalCorrect> { |
| | | |
| | | IPage<InternalCorrect> pageInternalAccording(Page page, @Param("ew") QueryWrapper<InternalCorrect> ew); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.manage.pojo.InternalImplementDetail; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * å
审宿½è®¡å详æ
|
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Mapper |
| | | public interface InternalImplementDetailMapper extends BaseMapper<InternalImplementDetail> { |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.dto.InternalImplementDto; |
| | | import com.ruoyi.manage.pojo.InternalImplement; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * å
审宿½è®¡å |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Mapper |
| | | public interface InternalImplementMapper extends BaseMapper<InternalImplement> { |
| | | |
| | | /** |
| | | * å
审宿½è®¡åå页æ¥è¯¢ |
| | | * @param page |
| | | * @return |
| | | */ |
| | | IPage<InternalImplementDto> pageInternalImplement(Page page, @Param("ew") QueryWrapper<InternalImplement> ew); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.manage.pojo.InternalMeetingDetail; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审ä¼è®®è¯¦æ
表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 02:56:13 |
| | | */ |
| | | public interface InternalMeetingDetailMapper extends BaseMapper<InternalMeetingDetail> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.dto.InternalMeetingDto; |
| | | import com.ruoyi.manage.pojo.InternalMeeting; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审ä¼è®®è¡¨ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 02:50:44 |
| | | */ |
| | | public interface InternalMeetingMapper extends BaseMapper<InternalMeeting> { |
| | | |
| | | /** |
| | | * å
审ä¼è®®å页æ¥è¯¢ |
| | | * @param page |
| | | * @return |
| | | */ |
| | | IPage<InternalMeetingDto> pageInternalMeeting(Page page, @Param("ew") QueryWrapper<InternalMeeting> ew); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.manage.pojo.InternalPlanDetail; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审年度计å详æ
表 Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 03:28:48 |
| | | */ |
| | | @Mapper |
| | | public interface InternalPlanDetailMapper extends BaseMapper<InternalPlanDetail> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.dto.InternalPlanDto; |
| | | import com.ruoyi.manage.pojo.InternalPlan; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审年度计å Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 03:27:47 |
| | | */ |
| | | @Mapper |
| | | public interface InternalPlanMapper extends BaseMapper<InternalPlan> { |
| | | |
| | | /** |
| | | * å
审年度计åå页æ¥è¯¢ |
| | | * @param page |
| | | * @param ew |
| | | * @return |
| | | */ |
| | | IPage<InternalPlanDto> pageInternalPlan(Page page, @Param("ew") QueryWrapper<InternalPlan> ew); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.InternalReport; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * å
审æ¥å表 |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Mapper |
| | | public interface InternalReportMapper extends BaseMapper<InternalReport> { |
| | | |
| | | /** |
| | | * å
审æ¥åå页æ¥è¯¢ |
| | | * @param page |
| | | * @param internalReportQueryWrapper |
| | | * @return |
| | | */ |
| | | IPage<InternalReport> pageInternalReport(Page page, @Param("ew") QueryWrapper<InternalReport> internalReportQueryWrapper); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageControlPlanList; |
| | | import com.ruoyi.manage.vo.ManageControlPlanListVo; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * é大é£é©å ç´ åæåæ§å¶è®¡åæ¸
å Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 02:58:30 |
| | | */ |
| | | public interface ManageControlPlanListMapper extends BaseMapper<ManageControlPlanList> { |
| | | |
| | | IPage<ManageControlPlanListVo> getPageList(Page page, @Param("itSExporting") Boolean itSExporting); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageDocumentAlter; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶åæ´ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-11 11:04:01 |
| | | */ |
| | | public interface ManageDocumentAlterMapper extends BaseMapper<ManageDocumentAlter> { |
| | | |
| | | IPage<ManageDocumentAlter> pageManageDocumentAlter(Page page, @Param("ew") QueryWrapper<ManageDocumentAlter> queryWrappers); |
| | | |
| | | ManageDocumentAlter getManageDocumentAlter(Integer id); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageDocumentCancel; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶ä½åº Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 02:37:35 |
| | | */ |
| | | public interface ManageDocumentCancelMapper extends BaseMapper<ManageDocumentCancel> { |
| | | |
| | | IPage<ManageDocumentCancel> pageManageDocumentCancel(Page page, @Param("ew") QueryWrapper<ManageDocumentCancel> queryWrappers); |
| | | |
| | | ManageDocumentCancel getManageDocumentCancel(Integer id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageDocumentControlled; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶åæ§ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-08 02:54:44 |
| | | */ |
| | | public interface ManageDocumentControlledMapper extends BaseMapper<ManageDocumentControlled> { |
| | | |
| | | IPage<ManageDocumentControlled> pageManageDocumentControlled(Page page, @Param("ew") QueryWrapper<ManageDocumentControlled> queryWrappers); |
| | | |
| | | ManageDocumentControlled getManageDocumentControlled(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.dto.ManageDocumentIssueRecycleDto; |
| | | import com.ruoyi.manage.pojo.ManageDocumentIssueRecycle; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶åæ¾åæ¶ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 09:18:24 |
| | | */ |
| | | public interface ManageDocumentIssueRecycleMapper extends BaseMapper<ManageDocumentIssueRecycle> { |
| | | |
| | | IPage<ManageDocumentIssueRecycleDto> pageManageDocumentIssueRecycle(Page page, @Param("ew") QueryWrapper<ManageDocumentIssueRecycleDto> queryWrappers); |
| | | |
| | | ManageDocumentIssueRecycleDto getManageDocumentIssueRecycle(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageDocumentList; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶æ¸
å |
| | | Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-08 11:08:11 |
| | | */ |
| | | public interface ManageDocumentListMapper extends BaseMapper<ManageDocumentList> { |
| | | |
| | | IPage<ManageDocumentList> pageManageDocumentList(Page page, @Param("ew") QueryWrapper<ManageDocumentList> queryWrappers); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.dto.ManageMeetingDto; |
| | | import com.ruoyi.manage.pojo.ManageMeeting; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-11 09:33:47 |
| | | */ |
| | | public interface ManageMeetingMapper extends BaseMapper<ManageMeeting> { |
| | | |
| | | |
| | | IPage<ManageMeetingDto> page(Page page, @Param("startTime") String startTime, @Param("endTime") String endTime, @Param("place") String place); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.manage.pojo.ManageMeetingParticipants; |
| | | |
| | | /** |
| | | * <p> |
| | | * Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-11 09:34:27 |
| | | */ |
| | | public interface ManageMeetingParticipantsMapper extends BaseMapper<ManageMeetingParticipants> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageRecordAudit; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-14 10:29:18 |
| | | */ |
| | | public interface ManageRecordAuditMapper extends BaseMapper<ManageRecordAudit> { |
| | | |
| | | IPage<ManageRecordAudit> pageManageRecordAudit(Page page, @Param("ew") QueryWrapper<ManageRecordAudit> queryWrappers); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageRecordCancel; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * ä½åºæä»¶ééè®°å½ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 01:27:22 |
| | | */ |
| | | public interface ManageRecordCancelMapper extends BaseMapper<ManageRecordCancel> { |
| | | |
| | | IPage<ManageRecordCancel> pageManageRecordCancel(Page page, @Param("ew") QueryWrapper<ManageRecordCancel> queryWrappers); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageRecordCheck; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶å®¡æ¹è®°å½(å«ä¿®è®¢å忬¡å®¡æ¹è®°å½) Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 02:31:36 |
| | | */ |
| | | public interface ManageRecordCheckMapper extends BaseMapper<ManageRecordCheck> { |
| | | |
| | | IPage<ManageRecordCheck> pageManageRecordCheck(Page page, @Param("ew") QueryWrapper<ManageRecordCheck> queryWrappers); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageRecordIntervals; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶å®æå®¡æ¥è®°å½ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 10:54:31 |
| | | */ |
| | | public interface ManageRecordIntervalsMapper extends BaseMapper<ManageRecordIntervals> { |
| | | |
| | | IPage<ManageRecordIntervals> pageManageRecordIntervals(Page page, @Param("ew") QueryWrapper<ManageRecordIntervals> queryWrappers); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageRecordIntervalsTotal; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶å®æå®¡æ¥è®°å½æ»åå²è®°å½è¡¨ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 01:12:11 |
| | | */ |
| | | public interface ManageRecordIntervalsTotalMapper extends BaseMapper<ManageRecordIntervalsTotal> { |
| | | |
| | | IPage<ManageRecordIntervalsTotal> pageManageRecordIntervalsTotal(Page page, @Param("ew") QueryWrapper<ManageRecordIntervalsTotal> queryWrappers); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageRecordIssueRecycle; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * æææä»¶(å
ãå¤é¨æä»¶)çåæ¾ä¸åæ¶è®°å½ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 09:11:05 |
| | | */ |
| | | public interface ManageRecordIssueRecycleMapper extends BaseMapper<ManageRecordIssueRecycle> { |
| | | |
| | | IPage<ManageRecordIssueRecycle> pageManageRecordIssueRecycle(Page page, @Param("ew") QueryWrapper<ManageRecordIssueRecycle> queryWrappers); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageRecordTotal; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * 夿¥æä»¶ç¡®è®¤è®°å½æ»åå²è®°å½è¡¨ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 10:30:08 |
| | | */ |
| | | public interface ManageRecordTotalMapper extends BaseMapper<ManageRecordTotal> { |
| | | |
| | | IPage<ManageRecordTotal> pageProcessTotaldeal(Page page, @Param("ew") QueryWrapper<ManageRecordTotal> queryWrappers); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageRecordVerify; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * 夿¥æä»¶ç¡®è®¤è®°å½ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 10:29:44 |
| | | */ |
| | | public interface ManageRecordVerifyMapper extends BaseMapper<ManageRecordVerify> { |
| | | |
| | | IPage<ManageRecordVerify> pageManageRecordVerify(Page page, @Param("ew") QueryWrapper<ManageRecordVerify> queryWrappers); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.manage.pojo.ManageReviewProgramFile; |
| | | |
| | | /** |
| | | * <p> |
| | | * Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 04:15:47 |
| | | */ |
| | | public interface ManageReviewProgramFileMapper extends BaseMapper<ManageReviewProgramFile> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageReviewProgram; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 03:05:42 |
| | | */ |
| | | public interface ManageReviewProgramMapper extends BaseMapper<ManageReviewProgram> { |
| | | |
| | | |
| | | IPage<ManageReviewProgram> page(Page page, @Param("startTime") String startTime,@Param("endTime") String endTime,@Param("judgingLocation") String judgingLocation); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageReviewReport; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * 管çè¯å®¡æ¥å Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 04:44:39 |
| | | */ |
| | | public interface ManageReviewReportMapper extends BaseMapper<ManageReviewReport> { |
| | | |
| | | IPage<ManageReviewReport> page(Page page, @Param("startTime") String startTime, @Param("endTime") String endTime, @Param("place") String place); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageRiskAssessmentResults; |
| | | import com.ruoyi.manage.vo.ManageRiskAssessmentResultsVo; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * å±é©å ç´ è¾¨è¯ä¸é£é©è¯ä»·ç»æä¸è§è¡¨ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 02:58:51 |
| | | */ |
| | | public interface ManageRiskAssessmentResultsMapper extends BaseMapper<ManageRiskAssessmentResults> { |
| | | |
| | | IPage<ManageRiskAssessmentResultsVo> getPageResults(Page page, @Param("itSExporting") Boolean itSExporting); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-09 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_client_satisfaction") |
| | | public class ClientSatisfaction { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer clientSatisfactionId; |
| | | |
| | | @ApiModelProperty("åä½åç§°") |
| | | private String unitName; |
| | | |
| | | @ApiModelProperty("å§å") |
| | | private String userName; |
| | | |
| | | @ApiModelProperty("填忥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate fillDate; |
| | | |
| | | @ApiModelProperty("é¨é¨") |
| | | private String department; |
| | | |
| | | @ApiModelProperty("èç³»çµè¯") |
| | | private String contactNumber; |
| | | |
| | | @ApiModelProperty("æå¡æåº¦, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private Integer serviceAttitude; |
| | | |
| | | @ApiModelProperty("æå¡æåº¦å»ºè®®") |
| | | private String serviceAttitudeSuggestion; |
| | | |
| | | @ApiModelProperty("ææ¯è½å, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private Integer technicalCompetence; |
| | | |
| | | @ApiModelProperty("ææ¯è½å建议") |
| | | private String technicalCompetenceSuggestion; |
| | | |
| | | @ApiModelProperty("æ£æµå·¥ä½, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private Integer inspectionWork; |
| | | |
| | | @ApiModelProperty("æ£æµå·¥ä½å»ºè®®") |
| | | private String inspectionWorkSuggestion; |
| | | |
| | | @ApiModelProperty("æ¶è´¹åçæ§, 0:满æ, 1:ä¸è¬, 2:䏿»¡æ") |
| | | private Integer reasonableFees; |
| | | |
| | | @ApiModelProperty("æ¶è´¹åçæ§å»ºè®®") |
| | | private String reasonableFeesSuggestion; |
| | | |
| | | @ApiModelProperty("确认人") |
| | | private String confirmPerson; |
| | | |
| | | @ApiModelProperty("确认人Id") |
| | | private Integer confirmPersonId; |
| | | |
| | | @ApiModelProperty("ç¡®è®¤ç¶æ, 0:æªç¡®è®¤, 1:确认") |
| | | private Integer confirmStatus; |
| | | |
| | | @ApiModelProperty("夿³¨(对æä»¬ç叿)") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦åæéä»¶ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-09 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_client_satisfaction_analyse_file") |
| | | public class ClientSatisfactionAnalyseFile { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer analyseFileId; |
| | | |
| | | @ApiModelProperty("ç±»å:1å¾ç/2æä»¶") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty("éä»¶è·¯å¾") |
| | | private String fileUrl; |
| | | |
| | | @ApiModelProperty("éä»¶åç§°") |
| | | private String fileName; |
| | | |
| | | @ApiModelProperty("å建人id") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | @TableField(select = false,exist = false) |
| | | private String userName; |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥è¡¨ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_check") |
| | | public class InternalCheck { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer checkId; |
| | | |
| | | @ApiModelProperty("é¨é¨") |
| | | private String department; |
| | | |
| | | @ApiModelProperty("é¨é¨è´è´£äºº") |
| | | private String departmentHead; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸å") |
| | | private String auditor; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸æ¥æ") |
| | | private String reviewDate; |
| | | |
| | | @ApiModelProperty("ç¼å¶äººid") |
| | | private Integer writeUserId; |
| | | |
| | | @ApiModelProperty("ç¼å¶äºº") |
| | | private String writeUserName; |
| | | |
| | | @ApiModelProperty("ç¼å¶æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime writeTime; |
| | | |
| | | @ApiModelProperty("æ¹å人id") |
| | | private Integer ratifyUserId; |
| | | |
| | | @ApiModelProperty("æ¹å人") |
| | | private String ratifyUserName; |
| | | |
| | | @ApiModelProperty("æ¹åæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime ratifyTime; |
| | | |
| | | @ApiModelProperty("æ¹åç¶æ, 0 ä¸éè¿, 1éè¿") |
| | | private Integer ratifyStatus; |
| | | |
| | | @ApiModelProperty("æ¹åå
容") |
| | | private String ratifyRemark; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥è¯¦æ
表 |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_check_detail") |
| | | public class InternalCheckDetail { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer checkDetailId; |
| | | |
| | | @ApiModelProperty("æ£æ¥ä¸»è¡¨id") |
| | | private Integer checkId; |
| | | |
| | | @ApiModelProperty("è¦ç´ æ¡æ¬¾") |
| | | private String element; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸å
容") |
| | | private String content; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸æ¹å¼") |
| | | private String method; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸ç»æè®°å½") |
| | | private String resultRecords; |
| | | |
| | | @ApiModelProperty("ä¸ç¬¦åæ§è´¨") |
| | | private String nonNature; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | // 导åºä½¿ç¨ |
| | | @TableField(select = false, exist = false) |
| | | private Integer index; |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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-13 04:00:15 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_correct") |
| | | @ApiModel(value = "InternalCorrect对象", description = "å
审管ççº æ£å¤ç表") |
| | | public class InternalCorrect { |
| | | |
| | | @TableId(value = "correct_id", type = IdType.AUTO) |
| | | private Integer correctId; |
| | | |
| | | @ApiModelProperty("ä¸åæ ¼æè¿°") |
| | | private String raiseResult; |
| | | |
| | | @ApiModelProperty("vdeä¸å®¶åç°") |
| | | private String vdeRaiseResult; |
| | | |
| | | @ApiModelProperty("æåºé¨é¨") |
| | | private String raiseDepartment; |
| | | |
| | | @ApiModelProperty("æåºäººid") |
| | | private Integer raiseUserId; |
| | | |
| | | @ApiModelProperty("æåºäºº") |
| | | private String raiseUserName; |
| | | |
| | | @ApiModelProperty("æåºæ¶é´") |
| | | private LocalDate raiseTime; |
| | | |
| | | @ApiModelProperty("åå åæ") |
| | | private String causeResult; |
| | | |
| | | @ApiModelProperty("åå åæè´£ä»»é¨é¨") |
| | | private String causeDepartment; |
| | | |
| | | @ApiModelProperty("åå åæäººid") |
| | | private Integer causeUserId; |
| | | |
| | | @ApiModelProperty("åå åæäºº") |
| | | private String causeUserName; |
| | | |
| | | @ApiModelProperty("åå åææ¶é´") |
| | | private LocalDate causeTime; |
| | | |
| | | @ApiModelProperty("çº æ£æªæ½") |
| | | private String correctResult; |
| | | |
| | | @ApiModelProperty("æåºé¨é¨ç¡®è®¤") |
| | | private String raiseDepartmentAffirm; |
| | | |
| | | @ApiModelProperty("çº æ£è´£ä»»é¨é¨") |
| | | private String correctDepartment; |
| | | |
| | | @ApiModelProperty("çº æ£äººid") |
| | | private Integer correctUserId; |
| | | |
| | | @ApiModelProperty("çº æ£") |
| | | private String correctUserName; |
| | | |
| | | @ApiModelProperty("çº æ£æ¶é´") |
| | | private LocalDate correctTime; |
| | | |
| | | @ApiModelProperty("éªè¯ç»æ") |
| | | private String validationResult; |
| | | |
| | | @ApiModelProperty("éªè¯é¨é¨") |
| | | private String validationDepartment; |
| | | |
| | | @ApiModelProperty("éªè¯äººid") |
| | | private Integer validationUserId; |
| | | |
| | | @ApiModelProperty("éªè¯äºº") |
| | | private String validationUserName; |
| | | |
| | | @ApiModelProperty("éªè¯æ¶é´") |
| | | private LocalDate validationTime; |
| | | |
| | | @ApiModelProperty("æ¯å¦ç»æ, 0: æªç»æ, 1:å·²ç»æ") |
| | | private Integer isFinish; |
| | | |
| | | @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(exist = false,select = false) |
| | | @ApiModelProperty("æµç¨, 0:ä¸ç¬¦å工使
åµè®°å½, 1å¤çæªæ½, 2:çº æ£æªæ½, 3:æ¯å¦éç¥å®¢æ·å¯æ¢å¤å·¥ä½") |
| | | private Integer flowType; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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-13 04:00:38 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_correct_file") |
| | | @ApiModel(value = "InternalCorrectFile对象", description = "å
审管ççº æ£æªæ½é件表") |
| | | public class InternalCorrectFile { |
| | | |
| | | @ApiModelProperty("çç£è¯¦æ
çº æ£æä»¶id") |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer correctFileId; |
| | | |
| | | private Integer superviseDetailsCorrectFileId; |
| | | |
| | | @ApiModelProperty("å
å®¡çº æ£æªæ½id") |
| | | private Integer correctId; |
| | | |
| | | @ApiModelProperty("ç±»å:1å¾ç/2æä»¶") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty("éä»¶è·¯å¾") |
| | | private String fileUrl; |
| | | |
| | | @ApiModelProperty("éä»¶åç§°") |
| | | private String fileName; |
| | | |
| | | @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.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * å
审宿½è®¡å |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_implement") |
| | | public class InternalImplement { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer implementId; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸ç®ç") |
| | | private String purposes; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸æ§è´¨") |
| | | private String nature; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸èå´") |
| | | private String scope; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸ä¾æ®") |
| | | private String basis; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸ç»é¿") |
| | | private String teamLeader; |
| | | |
| | | @ApiModelProperty("å
审å") |
| | | private String internalAuditor; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸æ¶é´") |
| | | private String reviewDate; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸æ¹æ³") |
| | | private String auditMethod; |
| | | |
| | | @ApiModelProperty("ä¼è®®å¼å§æ¶é´") |
| | | private String firstMeetingTime; |
| | | |
| | | @ApiModelProperty("æ«æ¬¡ä¼è®®æ¶é´") |
| | | private String lastMeetingTime; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸æ¥åæäº¤æ¥æ") |
| | | private String submitTime; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸æ¥ååæ¾èå´") |
| | | private String submitScope; |
| | | |
| | | @ApiModelProperty("夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty("ç¼å¶äººid") |
| | | private Integer writeUserId; |
| | | |
| | | @ApiModelProperty("ç¼å¶äºº") |
| | | private String writeUserName; |
| | | |
| | | @ApiModelProperty("ç¼å¶æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime writeTime; |
| | | |
| | | @ApiModelProperty("æ¹å人id") |
| | | private Integer ratifyUserId; |
| | | |
| | | @ApiModelProperty("æ¹å人") |
| | | private String ratifyUserName; |
| | | |
| | | @ApiModelProperty("æ¹åæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime ratifyTime; |
| | | |
| | | @ApiModelProperty("æ¹åç¶æ, 0 ä¸éè¿, 1éè¿") |
| | | private Integer ratifyStatus; |
| | | |
| | | @ApiModelProperty("æ¹åå
容") |
| | | private String ratifyRemark; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * å
审宿½è®¡å详æ
|
| | | * |
| | | * @author makejava |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_implement_detail") |
| | | public class InternalImplementDetail { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer implementDetailId; |
| | | |
| | | @ApiModelProperty("宿½è®¡å主表id") |
| | | private Integer implementId; |
| | | |
| | | @ApiModelProperty("æ¶é´") |
| | | private String implement; |
| | | |
| | | @ApiModelProperty("é¨é¨") |
| | | private String department; |
| | | |
| | | @ApiModelProperty("责任人") |
| | | private String responsible; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸å") |
| | | private String auditor; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸å
容") |
| | | private String reviewContent; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | // 导åºä½¿ç¨ |
| | | @TableField(select = false, exist = false) |
| | | private Integer index; |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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-12 02:50:44 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_meeting") |
| | | @ApiModel(value = "InternalMeeting对象", description = "å
审ä¼è®®è¡¨") |
| | | public class InternalMeeting { |
| | | |
| | | @TableId(value = "meeting_id", type = IdType.AUTO) |
| | | private Integer meetingId; |
| | | |
| | | @ApiModelProperty("æ¶é´") |
| | | private String meetingDate; |
| | | |
| | | @ApiModelProperty("主æäºº") |
| | | private String compere; |
| | | |
| | | @ApiModelProperty("å°ç¹") |
| | | private String place; |
| | | |
| | | @ApiModelProperty("ä¼è®®ä¸»é¢") |
| | | private String subject; |
| | | |
| | | @ApiModelProperty("åå 人å") |
| | | private String participant; |
| | | |
| | | @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.manage.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-12 02:56:13 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_meeting_detail") |
| | | @ApiModel(value = "InternalMeetingDetail对象", description = "å
审ä¼è®®è¯¦æ
表") |
| | | public class InternalMeetingDetail { |
| | | |
| | | @TableId(value = "meeting_detail_id", type = IdType.AUTO) |
| | | private Integer meetingDetailId; |
| | | |
| | | @ApiModelProperty("ä¼è®®ä¸»è¡¨id") |
| | | private Integer meetingId; |
| | | |
| | | @ApiModelProperty("åå 人åid") |
| | | private Integer userId; |
| | | |
| | | @ApiModelProperty("åå 人å") |
| | | private String userName; |
| | | |
| | | @ApiModelProperty("é¨é¨") |
| | | private String department; |
| | | |
| | | @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.manage.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-13 03:27:47 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_plan") |
| | | @ApiModel(value = "InternalPlan对象", description = "å
审年度计å") |
| | | public class InternalPlan { |
| | | |
| | | @TableId(value = "plan_id", type = IdType.AUTO) |
| | | private Integer planId; |
| | | |
| | | @ApiModelProperty("å
审ç®ç") |
| | | private String purpose; |
| | | |
| | | @ApiModelProperty("å
çèå´") |
| | | private String scope; |
| | | |
| | | @ApiModelProperty("å
审便®") |
| | | private String basis; |
| | | |
| | | @ApiModelProperty("ç»é¿") |
| | | private String leader; |
| | | |
| | | @ApiModelProperty("ç»å") |
| | | private String crew; |
| | | |
| | | @ApiModelProperty("ç¼å¶äººid") |
| | | private Integer writeUserId; |
| | | |
| | | @ApiModelProperty("ç¼å¶äºº") |
| | | private String writeUserName; |
| | | |
| | | @ApiModelProperty("ç¼å¶æ¶é´") |
| | | private LocalDateTime writeTime; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸äººid") |
| | | private Integer examineUserId; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸äºº") |
| | | private String examineUserName; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸æ¶é´") |
| | | private LocalDateTime examineTime; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸ç¶æ,0 ä¸éè¿, 1 éè¿") |
| | | private Integer examineStatus; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸ä¿¡æ¯") |
| | | private String examineRemark; |
| | | |
| | | @ApiModelProperty("æ¹å人id") |
| | | private Integer ratifyUserId; |
| | | |
| | | @ApiModelProperty("æ¹å人") |
| | | private String ratifyUserName; |
| | | |
| | | @ApiModelProperty("æ¹åæ¶é´") |
| | | private LocalDateTime ratifyTime; |
| | | |
| | | @ApiModelProperty("æ¹åç¶æ,0 ä¸éè¿, 1 éè¿") |
| | | private Integer ratifyStatus; |
| | | |
| | | @ApiModelProperty("æ¹åä¿¡æ¯") |
| | | private String ratifyRemark; |
| | | |
| | | @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.manage.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-13 03:28:48 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_plan_detail") |
| | | @ApiModel(value = "InternalPlanDetail对象", description = "å
审年度计å详æ
表") |
| | | public class InternalPlanDetail { |
| | | |
| | | @TableId(value = "plan_detail_id", type = IdType.AUTO) |
| | | private Integer planDetailId; |
| | | |
| | | @ApiModelProperty("å
审年度计åid") |
| | | private Integer planId; |
| | | |
| | | @ApiModelProperty("é¨é¨") |
| | | private String department; |
| | | |
| | | @ApiModelProperty("䏿") |
| | | private String january; |
| | | |
| | | @ApiModelProperty("äºæ") |
| | | private String february; |
| | | |
| | | @ApiModelProperty("䏿") |
| | | private String march; |
| | | |
| | | @ApiModelProperty("åæ") |
| | | private String april; |
| | | |
| | | @ApiModelProperty("äºæ") |
| | | private String may; |
| | | |
| | | @ApiModelProperty("å
æ") |
| | | private String june; |
| | | |
| | | @ApiModelProperty("䏿") |
| | | private String july; |
| | | |
| | | @ApiModelProperty("å
«æ") |
| | | private String august; |
| | | |
| | | @ApiModelProperty("乿") |
| | | private String september; |
| | | |
| | | @ApiModelProperty("åæ") |
| | | private String october; |
| | | |
| | | @ApiModelProperty("å䏿") |
| | | private String november; |
| | | |
| | | @ApiModelProperty("åäºæ") |
| | | private String december; |
| | | |
| | | @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.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * å
审æ¥å表 |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Data |
| | | @TableName("cnas_internal_report") |
| | | public class InternalReport { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Integer reportId; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸ä¾æ®") |
| | | private String purposes; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸ä¾æ®") |
| | | private String basis; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸æ¥æ") |
| | | private String reviewDate; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸æ¹æ³") |
| | | private String method; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸èå´") |
| | | private String scope; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸è´£ä»»å¶") |
| | | private String responsible; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸ç»é¿") |
| | | private String leader; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸å") |
| | | private String auditor; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸ç»åå·¥æ
åµ") |
| | | private String division; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸æ¦åµ") |
| | | private String overview; |
| | | |
| | | @ApiModelProperty("ç»è®ºæ§è¯ä»·") |
| | | private String conclusion; |
| | | |
| | | @ApiModelProperty("æ¹è¿å»ºè®®") |
| | | private String suggest; |
| | | |
| | | @ApiModelProperty("å®æçº æ£æªæ½æéæ¶é´") |
| | | private String actionDate; |
| | | |
| | | @ApiModelProperty("æ»ä½è·è¿ç¡®è®¤äºº") |
| | | private String followUser; |
| | | |
| | | @ApiModelProperty("æ»ä½è·è¿ç¡®è®¤è®°å½") |
| | | private String followRecord; |
| | | |
| | | @ApiModelProperty("æ¬æ¥ååæ¾èå´") |
| | | private String reportScope; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸äººid") |
| | | private Integer examineUserId; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸äºº") |
| | | private String examineUserName; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime examineTime; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸ç¶æ,0 ä¸éè¿, 1 éè¿") |
| | | private Integer examineStatus; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸ä¿¡æ¯") |
| | | private String examineRemark; |
| | | |
| | | @ApiModelProperty("è´¨éè´è´£äººid") |
| | | private Integer qualityUserId; |
| | | |
| | | @ApiModelProperty("è´¨éè´è´£äºº") |
| | | private String qualityUserName; |
| | | |
| | | @ApiModelProperty("è´¨éè´è´£äººå¡«åæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime qualityTime; |
| | | |
| | | @ApiModelProperty("è´¨éè´è´£äººç¶æ, 0 ä¸éè¿, 1éè¿") |
| | | private Integer qualityStatus; |
| | | |
| | | @ApiModelProperty("è´¨éè´è´£äººæè§") |
| | | private String qualityRemark; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty("å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹äºº") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * é大é£é©å ç´ åæåæ§å¶è®¡åæ¸
å |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 02:58:30 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_manage_control_plan_list") |
| | | @ApiModel(value = "ManageControlPlanList对象", description = "é大é£é©å ç´ åæåæ§å¶è®¡åæ¸
å") |
| | | public class ManageControlPlanList implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("ä½ä¸æ´»å¨") |
| | | @ExcelProperty("ä½ä¸æ´»å¨") |
| | | private String jobActivity; |
| | | |
| | | @ApiModelProperty("é£é©å ç´ ç±»å«") |
| | | @ExcelProperty("é£é©å ç´ ç±»å«") |
| | | private String category; |
| | | |
| | | @ApiModelProperty("é£é©å ç´ æè¿°") |
| | | @ExcelProperty("é£é©å ç´ æè¿°") |
| | | private String description; |
| | | |
| | | @ApiModelProperty("å¯å¯¼è´çäºæ
") |
| | | @ExcelProperty("å¯å¯¼è´çäºæ
") |
| | | private String result; |
| | | |
| | | @ApiModelProperty("æ¯å¦ä¸å¯æ¿åé£é©") |
| | | @ExcelProperty("æ¯å¦ä¸å¯æ¿åé£é©") |
| | | private String intolerable; |
| | | |
| | | @ApiModelProperty("æ§å¶è®¡å") |
| | | @ExcelProperty("æ§å¶è®¡å") |
| | | private String plan; |
| | | |
| | | @ApiModelProperty("ç¼å¶id") |
| | | private Integer editor; |
| | | |
| | | @ApiModelProperty("æ¥æ") |
| | | private LocalDateTime editorDate; |
| | | |
| | | @ApiModelProperty("审æ¹id") |
| | | private Integer approval; |
| | | |
| | | @ApiModelProperty("æ¥æ") |
| | | private LocalDateTime approvalDate; |
| | | |
| | | @ApiModelProperty("æ¹åid") |
| | | private Integer approve; |
| | | |
| | | @ApiModelProperty("æ¹åæ¥æ") |
| | | private LocalDateTime approveDate; |
| | | |
| | | @ApiModelProperty("æ¹åç¶æ1ï¼éè¿ï¼2ï¼ä¸éè¿") |
| | | private Integer approveStatus; |
| | | |
| | | @ApiModelProperty("审æ¹ç¶æ1ï¼éè¿ï¼2ï¼ä¸éè¿") |
| | | private Integer approvalStatus; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
| | | 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 org.springframework.format.annotation.DateTimeFormat; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶åæ´ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-11 11:04:01 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_manage_document_alter") |
| | | @ApiModel(value = "ManageDocumentAlter对象", description = "æä»¶åæ´") |
| | | @ExcelIgnoreUnannotated |
| | | public class ManageDocumentAlter implements Serializable { |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("ç³è¯·ç¼å·") |
| | | @ExcelProperty("ç³è¯·ç¼å·") |
| | | private String code; |
| | | |
| | | @ApiModelProperty("ç³è¯·äºº") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @TableField(select = false, exist = false) |
| | | @ExcelProperty("ç³è¯·äºº") |
| | | private String createUserName; |
| | | |
| | | @TableField(select = false, exist = false) |
| | | @ApiModelProperty("ç³è¯·é¨é¨") |
| | | private String createUserDepartLims; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @ApiModelProperty("ææåæ´æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @ExcelProperty("ææåæ´æ¶é´") |
| | | private LocalDate expectAlterDate; |
| | | |
| | | @ApiModelProperty("å®é
åæ´æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @ExcelProperty("å®é
åæ´æ¶é´") |
| | | private LocalDate actuallyAlterDate; |
| | | |
| | | @ApiModelProperty("ç¶æ") |
| | | @ExcelProperty("ç¶æ") |
| | | private String state; |
| | | |
| | | @ApiModelProperty("审æ¹äºº") |
| | | private Integer checkUser; |
| | | |
| | | @TableField(select = false, exist = false) |
| | | @ExcelProperty("审æ¹äºº") |
| | | private String checkUserName; |
| | | |
| | | @ApiModelProperty("åæ´è¯´æ") |
| | | @ExcelProperty("åæ´è¯´æ") |
| | | private String alterNote; |
| | | |
| | | @ApiModelProperty("åæ´åç¼å·") |
| | | private String alterBeforeCode; |
| | | |
| | | @ApiModelProperty("åæ´ååç§°") |
| | | private String alterBeforeName; |
| | | |
| | | @ApiModelProperty("åæ´åçæ¬") |
| | | private String alterBeforeVersion; |
| | | |
| | | @ApiModelProperty("åæ´åç¼å·") |
| | | private String alterAfterCode; |
| | | |
| | | @ApiModelProperty("åæ´ååç§°") |
| | | private String alterAfterName; |
| | | |
| | | @ApiModelProperty("åæ´åçæ¬") |
| | | private String alterAfterVersion; |
| | | |
| | | @ApiModelProperty("åæ´åéä»¶") |
| | | private String alterAfterUrl; |
| | | |
| | | @ApiModelProperty("åæ´åéä»¶") |
| | | @TableField(select = false,exist = false) |
| | | private MultipartFile file; |
| | | |
| | | @ApiModelProperty("åä¸çæ¬å¤çæ¹å¼") |
| | | private String method; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
| | | 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 org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶ä½åº |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 02:37:35 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_manage_document_cancel") |
| | | @ApiModel(value = "ManageDocumentCancel对象", description = "æä»¶ä½åº") |
| | | @ExcelIgnoreUnannotated |
| | | public class ManageDocumentCancel implements Serializable { |
| | | |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("ç³è¯·äºº") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty("ç³è¯·äºº") |
| | | @TableField(select = false,exist = false) |
| | | @ExcelProperty("ç³è¯·äºº") |
| | | private String createUserName; |
| | | |
| | | @ApiModelProperty("ç³è¯·äºº") |
| | | @TableField(select = false,exist = false) |
| | | private String createUserDepartLims; |
| | | |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @ApiModelProperty("æä»¶ç¼å·") |
| | | @ExcelProperty("æä»¶ç¼å·") |
| | | private String documentCode; |
| | | |
| | | @ApiModelProperty("æä»¶åç§°") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("æä»¶çæ¬") |
| | | private String version; |
| | | |
| | | @ApiModelProperty("æä»¶ç¶æ") |
| | | private String documentState; |
| | | |
| | | @ApiModelProperty("ä½åºæ¹å¼") |
| | | private String method; |
| | | |
| | | @ApiModelProperty("ä½åºè¯´æ") |
| | | @ExcelProperty("ä½åºè¯´æ") |
| | | private String cancelNote; |
| | | |
| | | @ApiModelProperty("审æ¹äºº") |
| | | private Integer checkUser; |
| | | |
| | | @ExcelProperty("审æ¹äºº") |
| | | @TableField(select = false, exist = false) |
| | | private String checkUserName; |
| | | |
| | | @ApiModelProperty("ææä½åºæ¶é´") |
| | | @ExcelProperty("ææä½åºæ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate expectCancelDate; |
| | | |
| | | @ApiModelProperty("å®é
ä½åºæ¥æ") |
| | | @ExcelProperty("å®é
ä½åºæ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate actuallyCancelDate; |
| | | |
| | | @ApiModelProperty("ä½åºç¶æ") |
| | | @ExcelProperty("ä½åºç¶æ") |
| | | private String state; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶åæ§ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-08 02:54:44 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_manage_document_controlled") |
| | | @ApiModel(value = "ManageDocumentControlled对象", description = "æä»¶åæ§") |
| | | public class ManageDocumentControlled implements Serializable { |
| | | |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("ç³è¯·æä»¶ç¼å·") |
| | | private String documentCode; |
| | | |
| | | @ApiModelProperty("æä»¶ç±»å«") |
| | | private String type; |
| | | |
| | | @ApiModelProperty("æä»¶åç§°") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("æä»¶çæ¬") |
| | | private String version; |
| | | |
| | | @ApiModelProperty("ä½è
") |
| | | private String writer; |
| | | |
| | | @ApiModelProperty("æäº¤æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate submitDate; |
| | | |
| | | @ApiModelProperty("说æ") |
| | | private String instructions; |
| | | |
| | | @ApiModelProperty("ç³è¯·ç¶æ") |
| | | private String state; |
| | | |
| | | @ApiModelProperty("éä»¶å°å") |
| | | private String url; |
| | | |
| | | @ApiModelProperty("责任人") |
| | | private Integer dutyUser; |
| | | |
| | | @TableField(select = false,exist = false) |
| | | private String dutyUserName; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @TableField(select = false, exist = false) |
| | | private String createUserName; |
| | | |
| | | @ApiModelProperty("ç³è¯·é¨é¨") |
| | | @TableField(select = false, exist = false) |
| | | private String createUserDepartLims; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField(select = false, exist = false) |
| | | private MultipartFile file; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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 org.springframework.format.annotation.DateTimeFormat; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶åæ¾åæ¶ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 09:18:24 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_manage_document_issue_recycle") |
| | | @ApiModel(value = "ManageDocumentIssueRecycle对象", description = "æä»¶åæ¾åæ¶") |
| | | public class ManageDocumentIssueRecycle implements Serializable { |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("æä»¶ç¼å·") |
| | | @ExcelProperty(value = "æä»¶ç¼å·") |
| | | private String documentCode; |
| | | |
| | | @ApiModelProperty("æä»¶åç§°") |
| | | @ExcelProperty(value = "æä»¶åç§°") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("æä»¶çæ¬") |
| | | @ExcelProperty(value = "æä»¶çæ¬") |
| | | private String version; |
| | | |
| | | @ApiModelProperty("ç¶æ") |
| | | @ExcelProperty(value = "ç¶æ") |
| | | private String state; |
| | | |
| | | @ApiModelProperty("æä»¶ç¶æ") |
| | | @ExcelProperty(value = "æä»¶ç¶æ") |
| | | private String documentState; |
| | | |
| | | @ApiModelProperty("åæ¾ç¼å·") |
| | | @ExcelProperty(value = "åæ¾ç¼å·") |
| | | private String issueCode; |
| | | |
| | | @ApiModelProperty("åæ¾äºº") |
| | | private Integer issueUser; |
| | | |
| | | @ApiModelProperty("åæ¾æ¥æ") |
| | | @ExcelProperty(value = "åæ¾æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate issueDate; |
| | | |
| | | @ApiModelProperty("åæ¾è¯´æ") |
| | | private String issueNote; |
| | | |
| | | @ApiModelProperty("æ¥æ¶äºº") |
| | | private Integer receiveUser; |
| | | |
| | | @ApiModelProperty("æ¥æ¶æ¶é´") |
| | | private LocalDate receiveDate; |
| | | |
| | | @ApiModelProperty("åæ¶ç¼å·") |
| | | private String recycleCode; |
| | | |
| | | @ApiModelProperty("åæ¶äºº") |
| | | private Integer recycleUser; |
| | | |
| | | @ApiModelProperty("åæ¶æ¥æ") |
| | | @ExcelProperty(value = "åæ¶æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate recycleDate; |
| | | |
| | | @ApiModelProperty("åæ¶è¯´æ") |
| | | private String recycleNote; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @ApiModelProperty("éä»¶") |
| | | private String url; |
| | | |
| | | @TableField(select = false,exist = false) |
| | | private MultipartFile file; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
| | | 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.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶æ¸
å |
| | | |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-08 11:08:11 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_manage_document_list") |
| | | @ApiModel(value = "ManageDocumentList对象", description = "æä»¶æ¸
å") |
| | | @ExcelIgnoreUnannotated |
| | | public class ManageDocumentList implements Serializable { |
| | | |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("æä»¶ç¼å·") |
| | | @ExcelProperty(value = "æä»¶ç¼å·") |
| | | private String documentCode; |
| | | |
| | | @ApiModelProperty("ç±»å«") |
| | | @ExcelProperty(value = "ç±»å«") |
| | | private String type; |
| | | |
| | | @ApiModelProperty("åç§°") |
| | | @ExcelProperty(value = "åç§°") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("æä»¶çæ¬") |
| | | @ExcelProperty(value = "æä»¶çæ¬") |
| | | private String version; |
| | | |
| | | @ApiModelProperty("ä½è
") |
| | | @ExcelProperty(value = "ä½è
") |
| | | private String writer; |
| | | |
| | | @ApiModelProperty("çææ¥æ") |
| | | @ExcelProperty(value = "çææ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate effectiveDate; |
| | | |
| | | @ApiModelProperty("æä»¶ç¶æ") |
| | | @ExcelProperty(value = "æä»¶ç¶æ") |
| | | private String state; |
| | | |
| | | @ApiModelProperty("éä»¶å°å") |
| | | private String url; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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-11 09:33:47 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_manage_meeting") |
| | | @ApiModel(value = "ManageMeeting对象", description = "") |
| | | public class ManageMeeting implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("ä¼è®®æ¶é´") |
| | | private LocalDateTime meetingTime; |
| | | |
| | | @ApiModelProperty("ä¼è®®å°ç¹") |
| | | private String place; |
| | | |
| | | @ApiModelProperty("主æäºº") |
| | | private String compere; |
| | | |
| | | @ApiModelProperty("ä¼è®®å
容æè¦") |
| | | private String content; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private String updateUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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-11 09:34:27 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_manage_meeting_participants") |
| | | @ApiModel(value = "ManageMeetingParticipants对象", description = "") |
| | | public class ManageMeetingParticipants implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("åä¼äººå") |
| | | private Integer participants; |
| | | |
| | | @TableField(select = false,exist = false) |
| | | private String userName; |
| | | |
| | | @ApiModelProperty("é¨é¨") |
| | | private String department; |
| | | |
| | | @ApiModelProperty("ä¼è®®id") |
| | | private Integer meetingId; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private String updateUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-14 10:29:18 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_manage_record_audit") |
| | | @ApiModel(value = "ManageRecordAudit对象", description = "æä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½") |
| | | public class ManageRecordAudit implements Serializable { |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("æä»¶ç¼å·") |
| | | private String documentCode; |
| | | |
| | | @ApiModelProperty("æä»¶åç§°") |
| | | private String documentName; |
| | | |
| | | @ApiModelProperty("ç« èå·") |
| | | private String capter; |
| | | |
| | | @ApiModelProperty("页ç ") |
| | | private String pages; |
| | | |
| | | @ApiModelProperty("修订次æ°") |
| | | private Integer number; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹åçæ¬å·") |
| | | private String beforeVersion; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹åçæ¬å·") |
| | | private String afterVersion; |
| | | |
| | | @ApiModelProperty("ä¿®æ¹å
容") |
| | | private String alterThing; |
| | | |
| | | @ApiModelProperty("修订人") |
| | | private Integer alterUser; |
| | | |
| | | @TableField(select = false, exist = false) |
| | | private String alterUserName; |
| | | |
| | | @ApiModelProperty("æ¹å人") |
| | | private Integer ratifyUser; |
| | | |
| | | @TableField(select = false, exist = false) |
| | | private String ratifyUserName; |
| | | |
| | | //æ¹å人ç¾å |
| | | @TableField(select = false, exist = false) |
| | | private String ratifyUserUrl; |
| | | |
| | | @ApiModelProperty("æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate date; |
| | | |
| | | @ApiModelProperty("ç³è¯·äºº") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | //ç³è¯·äºº |
| | | @TableField(select = false, exist = false) |
| | | private String createUserName; |
| | | |
| | | //ç³è¯·é¨é¨ |
| | | @TableField(select = false, exist = false) |
| | | private String createUserDepart; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("ç³è¯·æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @ApiModelProperty("åååå ") |
| | | private String reason; |
| | | |
| | | @ApiModelProperty("åååé¨é¨") |
| | | private String beforeDepart; |
| | | |
| | | @ApiModelProperty("修订åååé¨é¨") |
| | | private String afterDepart; |
| | | |
| | | @ApiModelProperty("ç³è¯·é¨é¨ä¸»ç®¡æè§") |
| | | private String applicant; |
| | | |
| | | @ApiModelProperty("åå¶å®é¨é¨æè§") |
| | | private String formulation; |
| | | |
| | | @ApiModelProperty("åå®¡æ ¸é¨é¨æè§") |
| | | private String audit; |
| | | |
| | | @ApiModelProperty("修订ä½åº") |
| | | private String method; |
| | | |
| | | |
| | | @ApiModelProperty("åéä»¶") |
| | | private String beforeUrl; |
| | | |
| | | @ApiModelProperty("修订åéä»¶") |
| | | private String afterUrl; |
| | | |
| | | @TableField(select = false, exist = false) |
| | | private MultipartFile file; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * ä½åºæä»¶ééè®°å½ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 01:27:22 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_manage_record_cancel") |
| | | @ApiModel(value = "ManageRecordCancel对象", description = "ä½åºæä»¶ééè®°å½") |
| | | public class ManageRecordCancel implements Serializable { |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("æä»¶ç¼å·") |
| | | private String documentCode; |
| | | |
| | | @ApiModelProperty("æä»¶åç§°") |
| | | private String documentName; |
| | | |
| | | @ApiModelProperty("æ°é") |
| | | private Integer qty; |
| | | |
| | | @ApiModelProperty("鿝åå ") |
| | | private String reason; |
| | | |
| | | @ApiModelProperty("ç³è¯·äºº") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @TableField(select = false,exist = false) |
| | | private String createUserName; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty("ç³è¯·æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @ApiModelProperty("æ¹å人") |
| | | private Integer ratifyUser; |
| | | |
| | | @TableField(select = false,exist = false) |
| | | private String ratifyUserName; |
| | | |
| | | private String ratifyState; |
| | | |
| | | @ApiModelProperty("æ¹åæ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate ratifyTime; |
| | | |
| | | @ApiModelProperty("夿³¨") |
| | | private String remark; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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 com.fasterxml.jackson.annotation.JsonFormat; |
| | | 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; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶å®¡æ¹è®°å½(å«ä¿®è®¢å忬¡å®¡æ¹è®°å½) |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 02:31:36 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_manage_record_check") |
| | | @ApiModel(value = "ManageRecordCheck对象", description = "æä»¶å®¡æ¹è®°å½(å«ä¿®è®¢å忬¡å®¡æ¹è®°å½)") |
| | | public class ManageRecordCheck implements Serializable { |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("æä»¶åç§°") |
| | | private String documentName; |
| | | |
| | | @ApiModelProperty("æä»¶ç¼å·") |
| | | private String documentCode; |
| | | |
| | | @ApiModelProperty("ç/次") |
| | | private String documentVersion; |
| | | |
| | | @ApiModelProperty("ç¼å¶äºº") |
| | | private Integer writeUser; |
| | | |
| | | @TableField(select = false,exist = false) |
| | | private String writeUserName; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸äºº") |
| | | private Integer checkUser; |
| | | |
| | | @TableField(select = false,exist = false) |
| | | private String checkUserName; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸ç¶æ") |
| | | private String checkState; |
| | | |
| | | @ApiModelProperty("æ¹å人") |
| | | private Integer ratifyUser; |
| | | |
| | | @TableField(select = false,exist = false) |
| | | private String ratifyUserName; |
| | | |
| | | @ApiModelProperty("æ¹åç¶æ") |
| | | private String ratifyState; |
| | | |
| | | @ApiModelProperty("æ¹åæ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate ratifyDate; |
| | | |
| | | @ApiModelProperty("夿³¨") |
| | | private String remark; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶å®æå®¡æ¥è®°å½ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 10:54:31 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_manage_record_intervals") |
| | | @ApiModel(value = "ManageRecordIntervals对象", description = "æä»¶å®æå®¡æ¥è®°å½") |
| | | public class ManageRecordIntervals implements Serializable { |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("æä»¶åç§°") |
| | | private String documentName; |
| | | |
| | | @ApiModelProperty("æä»¶ç¼å·") |
| | | private String documentCode; |
| | | |
| | | @ApiModelProperty("çæ¬å·") |
| | | private String documentVersion; |
| | | |
| | | @ApiModelProperty("修订å·") |
| | | private String revision; |
| | | |
| | | @ApiModelProperty("é宿§") |
| | | private String suitability; |
| | | |
| | | @ApiModelProperty("夿³¨") |
| | | private String remark; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @ApiModelProperty("å¤é®å
³è,夿¥æä»¶ç¡®è®¤åå²è®°å½id") |
| | | private Integer recordIntervalsTotalId; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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 com.fasterxml.jackson.annotation.JsonFormat; |
| | | 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; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶å®æå®¡æ¥è®°å½æ»åå²è®°å½è¡¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 01:12:11 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_manage_record_intervals_total") |
| | | @ApiModel(value = "ManageRecordIntervalsTotal对象", description = "æä»¶å®æå®¡æ¥è®°å½æ»åå²è®°å½è¡¨") |
| | | public class ManageRecordIntervalsTotal implements Serializable { |
| | | |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("æ¹å人") |
| | | private Integer ratifyUser; |
| | | |
| | | @TableField(select = false,exist = false) |
| | | private String ratifyUserName; |
| | | |
| | | @ApiModelProperty("æ¹åç»æ") |
| | | private String ratifyState; |
| | | |
| | | @ApiModelProperty("æ¹åæ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate ratifyDate; |
| | | |
| | | @ApiModelProperty("æ¹å人ç¾å") |
| | | private String ratifyUrl; |
| | | |
| | | @ApiModelProperty("æå¶äºº") |
| | | private Integer submitUser; |
| | | |
| | | @TableField(select = false,exist = false) |
| | | private String submitUserName; |
| | | |
| | | @ApiModelProperty("æå¶äººç¾å") |
| | | private String submitUrl; |
| | | |
| | | @ApiModelProperty("æå¶æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate submitDate; |
| | | |
| | | @ApiModelProperty("年份") |
| | | private String year; |
| | | |
| | | @ApiModelProperty("æ»æ°é") |
| | | private Integer totalNum; |
| | | |
| | | @ApiModelProperty("çæç³è¯·è¡¨çè·¯å¾") |
| | | private String url; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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 com.fasterxml.jackson.annotation.JsonFormat; |
| | | 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; |
| | | |
| | | /** |
| | | * <p> |
| | | * æææä»¶(å
ãå¤é¨æä»¶)çåæ¾ä¸åæ¶è®°å½ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 09:11:05 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_manage_record_issue_recycle") |
| | | @ApiModel(value = "ManageRecordIssueRecycle对象", description = "æææä»¶(å
ãå¤é¨æä»¶)çåæ¾ä¸åæ¶è®°å½") |
| | | public class ManageRecordIssueRecycle implements Serializable { |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("æä»¶ç¼å·") |
| | | private String documentCode; |
| | | |
| | | @ApiModelProperty("æä»¶åç§°") |
| | | private String documentName; |
| | | |
| | | @ApiModelProperty("çå·") |
| | | private String documentVersion; |
| | | |
| | | @ApiModelProperty("份æ°") |
| | | private String pages; |
| | | |
| | | @ApiModelProperty("æä»¶ç±»å«") |
| | | private String documentType; |
| | | |
| | | @ApiModelProperty("ååå·") |
| | | private String number; |
| | | |
| | | @ApiModelProperty("æ¥æ¶é¨é¨") |
| | | private String departLims; |
| | | |
| | | @ApiModelProperty("æ¥å人") |
| | | private Integer receiveUser; |
| | | |
| | | @TableField(select = false,exist = false) |
| | | private String receiveUserName; |
| | | |
| | | @ApiModelProperty("æ¥åæ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate receiveDate; |
| | | |
| | | @ApiModelProperty("ç¾æ¶äºº") |
| | | private Integer signedUser; |
| | | |
| | | @TableField(select = false,exist = false) |
| | | private String signedUserName; |
| | | |
| | | @ApiModelProperty("ç¾æ¶æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate signedDate; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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 com.fasterxml.jackson.annotation.JsonFormat; |
| | | 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; |
| | | |
| | | /** |
| | | * <p> |
| | | * 夿¥æä»¶ç¡®è®¤è®°å½æ»åå²è®°å½è¡¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 10:30:08 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_manage_record_total") |
| | | @ApiModel(value = "ManageRecordTotal对象", description = "夿¥æä»¶ç¡®è®¤è®°å½æ»åå²è®°å½è¡¨") |
| | | public class ManageRecordTotal implements Serializable { |
| | | |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("æ¹å人") |
| | | private Integer ratifyUser; |
| | | |
| | | @TableField(select = false,exist = false) |
| | | private String ratifyUserName; |
| | | |
| | | @ApiModelProperty("æ¹åç»æ") |
| | | private String ratifyState; |
| | | |
| | | @ApiModelProperty("æ¹åæ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate ratifyDate; |
| | | |
| | | @ApiModelProperty("æ¹å人ç¾å") |
| | | private String ratifyUrl; |
| | | |
| | | @ApiModelProperty("æå¶äºº") |
| | | private Integer submitUser; |
| | | |
| | | @TableField(select = false,exist = false) |
| | | private String submitUserName; |
| | | |
| | | @ApiModelProperty("æå¶äººç¾å") |
| | | private String submitUrl; |
| | | |
| | | @ApiModelProperty("æå¶æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate submitDate; |
| | | |
| | | @ApiModelProperty("年份") |
| | | private String year; |
| | | |
| | | @ApiModelProperty("æ»æ°é") |
| | | private Integer totalNum; |
| | | |
| | | @ApiModelProperty("çæç³è¯·è¡¨çè·¯å¾") |
| | | private String url; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import 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; |
| | | |
| | | /** |
| | | * <p> |
| | | * 夿¥æä»¶ç¡®è®¤è®°å½ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 10:29:44 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_manage_record_verify") |
| | | @ApiModel(value = "ManageRecordVerify对象", description = "夿¥æä»¶ç¡®è®¤è®°å½") |
| | | public class ManageRecordVerify implements Serializable { |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("夿¥æä»¶åç§°") |
| | | private String documentName; |
| | | |
| | | @ApiModelProperty("æä»¶ç¼å·") |
| | | private String documentCode; |
| | | |
| | | @ApiModelProperty("æ åè§èåç§°") |
| | | private String standardName; |
| | | |
| | | @ApiModelProperty("æ åå·") |
| | | private String standardCode; |
| | | |
| | | @ApiModelProperty("çææ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate effectiveDate; |
| | | |
| | | @ApiModelProperty("ä½åºæ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate cancelDate; |
| | | |
| | | @ApiModelProperty("夿³¨") |
| | | private String note; |
| | | |
| | | @ApiModelProperty("å¤é®å
³è,夿¥æä»¶ç¡®è®¤åå²è®°å½id") |
| | | private Integer manageRecordTotalId; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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-09 03:05:42 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_manage_review_program") |
| | | @ApiModel(value = "ManageReviewProgram对象", description = "") |
| | | public class ManageReviewProgram implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("è¯å®¡æ¶é´") |
| | | private LocalDateTime reviewTime; |
| | | |
| | | @ApiModelProperty("è¯å®¡å°ç¹") |
| | | private String judgingLocation; |
| | | |
| | | @ApiModelProperty("è¯å®¡ç®ç") |
| | | private String judgingPurpose; |
| | | |
| | | @ApiModelProperty("è¯å®¡æ¹å¼") |
| | | private String judgingMethod; |
| | | |
| | | @ApiModelProperty("åå 人å") |
| | | private String participants; |
| | | |
| | | @ApiModelProperty("è¯å®¡èå´") |
| | | private String judgingScope; |
| | | |
| | | @ApiModelProperty("è¯å®¡ä¾æ®") |
| | | private String judgingBasis; |
| | | |
| | | @ApiModelProperty("è¯å®¡ä¸»è¦å
容") |
| | | private String mainContext; |
| | | |
| | | @ApiModelProperty("åå¤å·¥ä½è¦æ±") |
| | | private String preparationRequirements; |
| | | |
| | | @ApiModelProperty("ç¼å¶") |
| | | private String editor; |
| | | |
| | | @ApiModelProperty("ç¼å¶æ¥æ") |
| | | private LocalDateTime editorDate; |
| | | |
| | | @ApiModelProperty("æ¹å") |
| | | private String approve; |
| | | |
| | | @ApiModelProperty("æ¹åæ¥æ") |
| | | private LocalDateTime approveDate; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private String updateUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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-09 04:15:47 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_manage_review_program_file") |
| | | @ApiModel(value = "ManageReviewProgramFile对象", description = "") |
| | | public class ManageReviewProgramFile implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("æä»¶åç§°") |
| | | private String fileName; |
| | | |
| | | @ApiModelProperty("计å表ID") |
| | | private Integer reviewId; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private String updateUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | private String url; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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-12 04:44:39 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_manage_review_report") |
| | | @ApiModel(value = "ManageReviewReport对象", description = "管çè¯å®¡æ¥å") |
| | | public class ManageReviewReport implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("ç®ç") |
| | | private String objective; |
| | | |
| | | @ApiModelProperty("å°ç¹") |
| | | private String place; |
| | | |
| | | @ApiModelProperty("主æäºº") |
| | | private String compere; |
| | | |
| | | @ApiModelProperty("è®°å½äºº") |
| | | private String recordPeople; |
| | | |
| | | @ApiModelProperty("æ¥æ") |
| | | private LocalDateTime date; |
| | | |
| | | @ApiModelProperty("页次") |
| | | private Integer page; |
| | | |
| | | @ApiModelProperty("è¯å®¡æ¹å¼") |
| | | private String judgingMethod; |
| | | |
| | | @ApiModelProperty("è¯å®¡ä¾æ®") |
| | | private String reviewBasis; |
| | | |
| | | @ApiModelProperty("åºå¸äººå") |
| | | private String attendess; |
| | | |
| | | @ApiModelProperty("è¯å®¡è¾å
¥æ
åµ") |
| | | private String reviewInputs; |
| | | |
| | | @ApiModelProperty("è¯å®¡è¿ç¨æ¦åµ") |
| | | private String reviewProcess; |
| | | |
| | | @ApiModelProperty("主è¦è®®é¢æ¦è¿°") |
| | | private String mainTopic; |
| | | |
| | | @ApiModelProperty("äºé¡¹") |
| | | private String matters; |
| | | |
| | | @ApiModelProperty("è´è´£äºº") |
| | | private String head; |
| | | |
| | | @ApiModelProperty("å®ææ¥æ") |
| | | private LocalDateTime completionDate; |
| | | |
| | | @ApiModelProperty("è·è¸ªç¡®è®¤äºº") |
| | | private String trackingConfirmed; |
| | | |
| | | @ApiModelProperty("è·è¸ªæ
åµç¡®è®¤è®°å½") |
| | | private String follerUp; |
| | | |
| | | @ApiModelProperty("ä½ç³»è¯ä»·") |
| | | private String overallEvaluation; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸") |
| | | private String audit; |
| | | |
| | | @ApiModelProperty("æ¹å") |
| | | private String approval; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private String createUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private String updateUser; |
| | | |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.pojo; |
| | | |
| | | import com.alibaba.excel.annotation.ExcelIgnore; |
| | | import com.alibaba.excel.annotation.ExcelProperty; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * å±é©å ç´ è¾¨è¯ä¸é£é©è¯ä»·ç»æä¸è§è¡¨ |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 02:58:51 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @TableName("cnas_manage_risk_assessment_results") |
| | | @ApiModel(value = "ManageRiskAssessmentResults对象", description = "å±é©å ç´ è¾¨è¯ä¸é£é©è¯ä»·ç»æä¸è§è¡¨") |
| | | public class ManageRiskAssessmentResults implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | @ExcelIgnore |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty("å°ç¹/æ´»å¨") |
| | | @ExcelProperty(value = "å°ç¹/æ´»å¨", index = 0) |
| | | private String venue; |
| | | |
| | | @ApiModelProperty("å±é©å ç´ ") |
| | | @ExcelProperty(value = "å±é©å ç´ ", index = 1) |
| | | private String hazard; |
| | | |
| | | @ApiModelProperty("å¯è½å¯¼è´çäºæ
") |
| | | @ExcelProperty(value = "å¯è½å¯¼è´çäºæ
", index = 2) |
| | | private String accidents; |
| | | |
| | | @ApiModelProperty("对人å¯è½é æçå±å®³") |
| | | @ExcelProperty(value = "对人å¯è½é æçå±å®³", index = 3) |
| | | private String injury; |
| | | |
| | | @ApiModelProperty("é£é©è¯ä»·") |
| | | @ExcelProperty(value = {"é£é©è¯ä»·", "L"}) |
| | | private String riskL; |
| | | |
| | | @ApiModelProperty("é£é©è¯ä»·") |
| | | @ExcelProperty(value = {"é£é©è¯ä»·", "E"}) |
| | | private String riskE; |
| | | |
| | | @ApiModelProperty("é£é©è¯ä»·") |
| | | @ExcelProperty(value = {"é£é©è¯ä»·", "C"}) |
| | | private String riskC; |
| | | |
| | | @ApiModelProperty("é£é©è¯ä»·") |
| | | @ExcelProperty(value = {"é£é©è¯ä»·", "D"}) |
| | | private String riskD; |
| | | |
| | | @ApiModelProperty("é£é©ç级") |
| | | @ExcelProperty(value = "é£é©ç级", index = 8) |
| | | private String level; |
| | | |
| | | @ApiModelProperty("è¯ä»·ç»è®º") |
| | | @ExcelProperty(value = "è¯ä»·ç»è®º", index = 9) |
| | | private String conclusion; |
| | | |
| | | @ApiModelProperty("æ§å¶æªæ½") |
| | | @ExcelProperty(value = "æ§å¶æªæ½", index = 10) |
| | | private String measures; |
| | | |
| | | @ApiModelProperty("ç¼å¶id") |
| | | private Integer editor; |
| | | |
| | | @ApiModelProperty("ç¼å¶æ¥æ") |
| | | private LocalDateTime editorDate; |
| | | |
| | | @ApiModelProperty("审æ¹äººid") |
| | | private Integer approval; |
| | | |
| | | @ApiModelProperty("å®¡æ¹æ¥æ") |
| | | private LocalDateTime approvalDate; |
| | | |
| | | @ApiModelProperty("æ¹å人id") |
| | | private Integer approve; |
| | | |
| | | @ApiModelProperty("æ¹åæ¥æ") |
| | | private LocalDateTime approveDate; |
| | | |
| | | @ApiModelProperty("æ¹åç¶æ1ï¼éè¿ï¼2ï¼ä¸éè¿") |
| | | private Integer approveStatus; |
| | | |
| | | @ApiModelProperty("审æ¹ç¶æ1ï¼éè¿ï¼2ï¼ä¸éè¿") |
| | | private Integer approvalStatus; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.schedule; |
| | | |
| | | import com.ruoyi.manage.pojo.ManageRecordIntervalsTotal; |
| | | import com.ruoyi.manage.pojo.ManageRecordTotal; |
| | | import com.ruoyi.manage.service.ManageRecordIntervalsTotalService; |
| | | import com.ruoyi.manage.service.ManageRecordTotalService; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Calendar; |
| | | |
| | | @Component |
| | | public class ManageRecordTotalSchedule { |
| | | |
| | | @Resource |
| | | private ManageRecordTotalService manageRecordTotalService; |
| | | |
| | | @Resource |
| | | private ManageRecordIntervalsTotalService manageRecordIntervalsTotalService; |
| | | |
| | | @Scheduled(cron = "0 0 2 1 1 ?") //æ¯å¹´1æ1å·2ç¹ |
| | | public void manageRecordTotal() { |
| | | ManageRecordTotal manageRecordTotal = new ManageRecordTotal(); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy"); |
| | | Calendar calendar = Calendar.getInstance(); |
| | | String formattedDate = sdf.format(calendar.getTime()); |
| | | manageRecordTotal.setYear(formattedDate); |
| | | manageRecordTotalService.save(manageRecordTotal); |
| | | |
| | | ManageRecordIntervalsTotal manageRecordIntervalsTotal = new ManageRecordIntervalsTotal(); |
| | | manageRecordIntervalsTotal.setYear(formattedDate); |
| | | manageRecordIntervalsTotalService.save(manageRecordIntervalsTotal); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ClientSatisfaction; |
| | | import com.ruoyi.manage.pojo.ClientSatisfactionAnalyseFile; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-09 |
| | | */ |
| | | public interface ClientSatisfactionService extends IService<ClientSatisfaction> { |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦è°æ¥å表 |
| | | * @param page |
| | | * @param clientSatisfaction |
| | | * @return |
| | | */ |
| | | IPage<ClientSatisfaction> pageClientSatisfaction(Page page, ClientSatisfaction clientSatisfaction); |
| | | |
| | | /** |
| | | * æ°å¢å®¢æ·åæéä»¶ |
| | | * @param file |
| | | * @return |
| | | */ |
| | | boolean uploadAnalyseFile(MultipartFile file); |
| | | |
| | | /** |
| | | * æ¥è¯¢å®¢æ·åæéä»¶ |
| | | * @param page |
| | | * @param analyseFile |
| | | * @return |
| | | */ |
| | | IPage<ClientSatisfactionAnalyseFile> pageAnalyseFile(Page page, ClientSatisfactionAnalyseFile analyseFile); |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦å¯¼åº |
| | | * |
| | | * @param clientSatisfactionId |
| | | * @param response |
| | | */ |
| | | void exportWordClientSatisfaction(Integer clientSatisfactionId, HttpServletResponse response); |
| | | |
| | | /** |
| | | * ç¡®è®¤å®¢æ·æ»¡æåº¦ |
| | | * |
| | | * @param clientSatisfaction è¦ä¿®æ¹å®¢æ·æ»¡æåº¦çç¶æå¯¹è±¡ |
| | | * @param userId ä¿®æ¹äººid |
| | | */ |
| | | void confirmClientSatisfaction(ClientSatisfaction clientSatisfaction, Integer userId); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.manage.pojo.InternalCheckDetail; |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥è¯¦æ
表 |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | public interface InternalCheckDetailService extends IService<InternalCheckDetail> { |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.dto.InternalCheckDto; |
| | | import com.ruoyi.manage.pojo.InternalCheck; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥è¡¨ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | public interface InternalCheckService extends IService<InternalCheck> { |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥å页æ¥è¯¢ |
| | | * @param page |
| | | * @param internalCheck |
| | | * @return |
| | | */ |
| | | IPage<InternalCheckDto> pageInternalCheck(Page page, InternalCheck internalCheck); |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥æ°å¢ |
| | | * @param internalCheck |
| | | * @return |
| | | */ |
| | | boolean addInternalCheck(InternalCheckDto internalCheck); |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥ä¿®æ¹ |
| | | * @param internalCheck |
| | | * @return |
| | | */ |
| | | boolean updateInternalCheck(InternalCheckDto internalCheck); |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥å é¤ |
| | | * @param checkId |
| | | * @return |
| | | */ |
| | | boolean delInternalCheck(Integer checkId); |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥æ¥ç详æ
|
| | | * @param checkId |
| | | * @return |
| | | */ |
| | | InternalCheckDto getInternalCheckOne(Integer checkId); |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥æ¹å |
| | | * @param internalCheck |
| | | * @return |
| | | */ |
| | | boolean ratifyInternalCheck(InternalCheckDto internalCheck); |
| | | |
| | | /** |
| | | * 导åºå
å®¡æ£æ¥ |
| | | * @param checkId |
| | | * @param response |
| | | */ |
| | | void exportInternalCheck(Integer checkId, HttpServletResponse response); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.manage.pojo.InternalCorrectFile; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审管ççº æ£æªæ½é件表 æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 04:00:38 |
| | | */ |
| | | public interface InternalCorrectFileService extends IService<InternalCorrectFile> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.InternalCorrect; |
| | | import com.ruoyi.manage.pojo.InternalCorrectFile; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审管ççº æ£å¤ç表 æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 04:00:15 |
| | | */ |
| | | public interface InternalCorrectService extends IService<InternalCorrect> { |
| | | |
| | | /** |
| | | * æ°å¢å
审管ççº æ£å¤çä¿¡æ¯ |
| | | * @param InternalAccording |
| | | * @return |
| | | */ |
| | | boolean addInternalCorrect(InternalCorrect InternalAccording); |
| | | |
| | | /** |
| | | * æ¥è¯¢å
审管ççº æ£å¤ç |
| | | * @param correctId |
| | | * @return |
| | | */ |
| | | InternalCorrect getInternalCorrect(Integer correctId); |
| | | |
| | | /** |
| | | * æ¥è¯¢å
审管ççº æ£æªæ½å表 |
| | | * @param page |
| | | * @param detailsCorrect |
| | | * @return |
| | | */ |
| | | IPage<InternalCorrect> pageInternalCorrect(Page page, InternalCorrect detailsCorrect); |
| | | |
| | | /** |
| | | * æ°å¢å
审管ççº æ£æªæ½éä»¶ |
| | | * @param correctId |
| | | * @param file |
| | | * @return |
| | | */ |
| | | boolean uploadInternalCorrectFile(Integer correctId, MultipartFile file); |
| | | |
| | | /** |
| | | * æ¥è¯¢å
审管ççº æ£æªæ½éä»¶ |
| | | * @param correctId |
| | | * @return |
| | | */ |
| | | List<InternalCorrectFile> getInternalCorrectFileList(Integer correctId); |
| | | |
| | | /** |
| | | * 导åºçº æ£æªæ½ |
| | | * @param correctId |
| | | * @param response |
| | | */ |
| | | void exportInternalCorrect(Integer correctId, HttpServletResponse response); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.manage.pojo.InternalImplementDetail; |
| | | |
| | | /** |
| | | * å
审宿½è®¡å详æ
|
| | | * |
| | | * @author makejava |
| | | * @since 2024-11-11 |
| | | */ |
| | | public interface InternalImplementDetailService extends IService<InternalImplementDetail> { |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.dto.InternalImplementDto; |
| | | import com.ruoyi.manage.pojo.InternalImplement; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * å
审宿½è®¡å |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | public interface InternalImplementService extends IService<InternalImplement> { |
| | | |
| | | /** |
| | | * å
审宿½è®¡åå页æ¥è¯¢ |
| | | * @param page |
| | | * @param internalImplement |
| | | * @return |
| | | */ |
| | | IPage<InternalImplementDto> pageInternalImplement(Page page, InternalImplement internalImplement); |
| | | |
| | | /** |
| | | * å
审宿½è®¡åæ°å¢ |
| | | * @param internalImplement |
| | | * @return |
| | | */ |
| | | boolean addInternalImplement(InternalImplementDto internalImplement); |
| | | |
| | | /** |
| | | * å
审宿½è®¡åä¿®æ¹ |
| | | * @param internalImplement |
| | | * @return |
| | | */ |
| | | boolean updateInternalImplement(InternalImplementDto internalImplement); |
| | | |
| | | /** |
| | | * å
审宿½è®¡åå é¤ |
| | | * @param implementId |
| | | * @return |
| | | */ |
| | | boolean delInternalImplement(Integer implementId); |
| | | |
| | | /** |
| | | * å
审宿½è®¡åæ¥ç详æ
|
| | | * @param implementId |
| | | * @return |
| | | */ |
| | | InternalImplementDto getInternalImplementOne(Integer implementId); |
| | | |
| | | /** |
| | | * å
审宿½è®¡åæ¹å |
| | | * @param internalImplement |
| | | * @return |
| | | */ |
| | | boolean ratifyInternalImplement(InternalImplementDto internalImplement); |
| | | |
| | | /** |
| | | * 导åºå
审宿½è®¡å |
| | | * @param implementId |
| | | * @param response |
| | | */ |
| | | void exportInternalImplement(Integer implementId, HttpServletResponse response); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.manage.pojo.InternalMeetingDetail; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审ä¼è®®è¯¦æ
表 æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 02:56:13 |
| | | */ |
| | | public interface InternalMeetingDetailService extends IService<InternalMeetingDetail> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.dto.InternalMeetingDto; |
| | | import com.ruoyi.manage.pojo.InternalMeeting; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审ä¼è®®è¡¨ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 02:50:44 |
| | | */ |
| | | public interface InternalMeetingService extends IService<InternalMeeting> { |
| | | |
| | | /** |
| | | * å
审ä¼è®®å页æ¥è¯¢ |
| | | * @param page |
| | | * @param internalMeeting |
| | | * @return |
| | | */ |
| | | IPage<InternalMeetingDto> pageInternalMeeting(Page page, InternalMeeting internalMeeting); |
| | | |
| | | /** |
| | | * å
审ä¼è®®æ°å¢ |
| | | * @param internalMeeting |
| | | * @return |
| | | */ |
| | | boolean addInternalMeeting(InternalMeetingDto internalMeeting); |
| | | |
| | | /** |
| | | * å
审ä¼è®®ä¿®æ¹ |
| | | * @param internalMeeting |
| | | * @return |
| | | */ |
| | | boolean updateInternalMeeting(InternalMeetingDto internalMeeting); |
| | | |
| | | /** |
| | | * å
审ä¼è®®å é¤ |
| | | * @param meetingId |
| | | * @return |
| | | */ |
| | | boolean delInternalMeeting(Integer meetingId); |
| | | |
| | | /** |
| | | * å
审ä¼è®®æ¥ç详æ
|
| | | * @param meetingId |
| | | * @return |
| | | */ |
| | | InternalMeetingDto getInternalMeetingOne(Integer meetingId); |
| | | |
| | | /** |
| | | * 导åºå
审ä¼è®® |
| | | * @param meetingId |
| | | * @param response |
| | | */ |
| | | void exportInternalMeeting(Integer meetingId, HttpServletResponse response); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.manage.pojo.InternalPlanDetail; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审年度计å详æ
表 æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 03:28:48 |
| | | */ |
| | | public interface InternalPlanDetailService extends IService<InternalPlanDetail> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.dto.InternalPlanDto; |
| | | import com.ruoyi.manage.pojo.InternalPlan; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
å®¡å¹´åº¦è®¡å æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 03:27:47 |
| | | */ |
| | | public interface InternalPlanService extends IService<InternalPlan> { |
| | | |
| | | /** |
| | | * å
审年度计åå页æ¥è¯¢ |
| | | * @param page |
| | | * @param internalPlan |
| | | * @return |
| | | */ |
| | | IPage<InternalPlanDto> pageInternalPlan(Page page, InternalPlan internalPlan); |
| | | |
| | | /** |
| | | * å
å®¡å¹´åº¦è®¡åæ°å¢ |
| | | * @param internalPlan |
| | | * @return |
| | | */ |
| | | boolean addInternalPlan(InternalPlanDto internalPlan); |
| | | |
| | | /** |
| | | * å
审年度计åä¿®æ¹ |
| | | * @param internalPlan |
| | | * @return |
| | | */ |
| | | boolean updateInternalPlan(InternalPlanDto internalPlan); |
| | | |
| | | /** |
| | | * å
审年度计åå é¤ |
| | | * @param planId |
| | | * @return |
| | | */ |
| | | boolean delInternalPlan(Integer planId); |
| | | |
| | | /** |
| | | * å
å®¡å¹´åº¦è®¡åæ¥ç详æ
|
| | | * @param planId |
| | | * @return |
| | | */ |
| | | InternalPlanDto getInternalPlanOne(Integer planId); |
| | | |
| | | /** |
| | | * å
审年度计åå®¡æ ¸ |
| | | * @param internalPlanDto |
| | | * @return |
| | | */ |
| | | boolean examineInternalPlan(InternalPlanDto internalPlanDto); |
| | | |
| | | /** |
| | | * å
å®¡å¹´åº¦è®¡åæ¹å |
| | | * @param internalPlanDto |
| | | * @return |
| | | */ |
| | | boolean ratifyInternalPlan(InternalPlanDto internalPlanDto); |
| | | |
| | | /** |
| | | * 导åºå
审年度计å |
| | | * @param planId |
| | | * @param response |
| | | */ |
| | | void exportInternalImplement(Integer planId, HttpServletResponse response); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.InternalReport; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * å
审æ¥å表 |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | public interface InternalReportService extends IService<InternalReport> { |
| | | |
| | | /** |
| | | * å
审æ¥åå页æ¥è¯¢ |
| | | * @param page |
| | | * @param internalReport |
| | | * @return |
| | | */ |
| | | IPage<InternalReport> pageInternalReport(Page page, InternalReport internalReport); |
| | | |
| | | /** |
| | | * å
审æ¥åå®¡æ ¸ |
| | | * @param internalReport |
| | | * @return |
| | | */ |
| | | boolean ratifyInternalCheck(InternalReport internalReport); |
| | | |
| | | /** |
| | | * è´¨éé¨ç»çå¡«å |
| | | * @param internalReport |
| | | * @return |
| | | */ |
| | | boolean qualityInternalReport(InternalReport internalReport); |
| | | |
| | | /** |
| | | * 导åºå
审æ¥å |
| | | * @param reportId |
| | | * @param response |
| | | */ |
| | | void exportInternalReport(Integer reportId, HttpServletResponse response); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageControlPlanList; |
| | | import com.ruoyi.manage.vo.ManageControlPlanListVo; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * é大é£é©å ç´ åæåæ§å¶è®¡åæ¸
å æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 02:58:30 |
| | | */ |
| | | public interface ManageControlPlanListService extends IService<ManageControlPlanList> { |
| | | |
| | | IPage<ManageControlPlanListVo> getPageList(Page page); |
| | | |
| | | void exportPersonTraining(HttpServletResponse response); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageDocumentAlter; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶åæ´ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-11 11:04:01 |
| | | */ |
| | | public interface ManageDocumentAlterService extends IService<ManageDocumentAlter> { |
| | | |
| | | IPage<ManageDocumentAlter> pageManageDocumentAlter(Page page, ManageDocumentAlter manageDocumentAlter); |
| | | |
| | | ManageDocumentAlter getManageDocumentAlter(Integer id); |
| | | |
| | | int addManageDocumentAlter(ManageDocumentAlter manageDocumentAlter); |
| | | |
| | | int doManageDocumentAlter(ManageDocumentAlter manageDocumentAlter); |
| | | |
| | | int checkManageDocumentAlter(ManageDocumentAlter manageDocumentAlter); |
| | | |
| | | void checkManageDocumentAlterPdf(Long id, HttpServletResponse response) throws Exception; |
| | | |
| | | void exportManageDocumentAlter(ManageDocumentAlter manageDocumentAlter, HttpServletResponse response) throws Exception; |
| | | |
| | | int delManageDocumentAlter(Integer id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageDocumentCancel; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶ä½åº æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 02:37:35 |
| | | */ |
| | | public interface ManageDocumentCancelService extends IService<ManageDocumentCancel> { |
| | | |
| | | IPage<ManageDocumentCancel> pageManageDocumentCancel(Page page, ManageDocumentCancel manageDocumentCancel); |
| | | |
| | | int addManageDocumentCancel(ManageDocumentCancel manageDocumentCancel); |
| | | |
| | | int checkManageDocumentCancel(Integer id, String state); |
| | | |
| | | ManageDocumentCancel getManageDocumentCancel(Integer id); |
| | | |
| | | void exportManageDocumentCancel(ManageDocumentCancel manageDocumentCancel, HttpServletResponse response) throws Exception; |
| | | |
| | | int delManageDocumentCancel(Integer id); |
| | | |
| | | int doManageDocumentCancel(ManageDocumentCancel manageDocumentCancel); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageDocumentControlled; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶åæ§ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-08 02:54:44 |
| | | */ |
| | | public interface ManageDocumentControlledService extends IService<ManageDocumentControlled> { |
| | | |
| | | IPage<ManageDocumentControlled> pageManageDocumentControlled(Page page, ManageDocumentControlled manageDocumentControlled); |
| | | |
| | | int addManageDocumentControlled(ManageDocumentControlled manageDocumentControlled); |
| | | |
| | | int delManageDocumentControlled(Long id); |
| | | |
| | | ManageDocumentControlled getManageDocumentControlled(Long id); |
| | | |
| | | int doManageDocumentControlled(ManageDocumentControlled manageDocumentControlled); |
| | | |
| | | int checkManageDocumentControlled(ManageDocumentControlled manageDocumentControlled); |
| | | |
| | | void checkManageDocumentControlledPdf(Long id, HttpServletResponse response) throws Exception ; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.dto.ManageDocumentIssueRecycleDto; |
| | | import com.ruoyi.manage.pojo.ManageDocumentIssueRecycle; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶åæ¾åæ¶ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 09:18:24 |
| | | */ |
| | | public interface ManageDocumentIssueRecycleService extends IService<ManageDocumentIssueRecycle> { |
| | | |
| | | IPage<ManageDocumentIssueRecycleDto> pageManageDocumentIssueRecycle(Page page, ManageDocumentIssueRecycleDto manageDocumentIssueRecycleDto); |
| | | |
| | | ManageDocumentIssueRecycleDto getManageDocumentIssueRecycle(Long id); |
| | | |
| | | void exportManageDocumentIssueRecycle(ManageDocumentIssueRecycleDto manageDocumentIssueRecycleDto, HttpServletResponse response) throws Exception; |
| | | |
| | | int checkManageDocumentIssueRecycle(Integer id, String documentState); |
| | | |
| | | int addManageDocumentIssueRecycle(ManageDocumentIssueRecycle manageDocumentIssueRecycle); |
| | | |
| | | int doManageDocumentIssueRecycle(ManageDocumentIssueRecycle manageDocumentIssueRecycle); |
| | | |
| | | int delManageDocumentIssueRecycle(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageDocumentList; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶æ¸
å |
| | | æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-08 11:08:11 |
| | | */ |
| | | public interface ManageDocumentListService extends IService<ManageDocumentList> { |
| | | |
| | | IPage<ManageDocumentList> pageManageDocumentList(Page page, ManageDocumentList manageDocumentList); |
| | | |
| | | int uploadFile(Integer id, MultipartFile file); |
| | | |
| | | void importExcel(List<ManageDocumentList> list); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.manage.pojo.ManageMeetingParticipants; |
| | | import com.ruoyi.manage.vo.MeetingParticipantsDetailsVo; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-11 09:34:27 |
| | | */ |
| | | public interface ManageMeetingParticipantsService extends IService<ManageMeetingParticipants> { |
| | | |
| | | |
| | | |
| | | MeetingParticipantsDetailsVo getParticipants(Integer id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.dto.ManageMeetingDto; |
| | | import com.ruoyi.manage.pojo.ManageMeeting; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-11 09:33:47 |
| | | */ |
| | | public interface ManageMeetingService extends IService<ManageMeeting> { |
| | | |
| | | IPage<ManageMeetingDto> page(Page page, String startTime, String endTime, String place); |
| | | |
| | | void addMeeting(ManageMeetingDto dto); |
| | | |
| | | int modifyMeeting(ManageMeetingDto manageMeetingDto); |
| | | |
| | | void exportMeeting(Integer id, HttpServletResponse response); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageRecordAudit; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-14 10:29:18 |
| | | */ |
| | | public interface ManageRecordAuditService extends IService<ManageRecordAudit> { |
| | | |
| | | IPage<ManageRecordAudit> pageManageRecordAudit(Page page, ManageRecordAudit manageRecordAudit); |
| | | |
| | | int addManageRecordAudit(ManageRecordAudit manageRecordAudit); |
| | | |
| | | int doManageRecordAudit(ManageRecordAudit manageRecordAudit); |
| | | |
| | | int ratifyManageRecordAudit(Integer id); |
| | | |
| | | String exportOutManageRecordAudit(ManageRecordAudit manageRecordAudit, HttpServletResponse response); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageRecordCancel; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * ä½åºæä»¶ééè®°å½ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 01:27:22 |
| | | */ |
| | | public interface ManageRecordCancelService extends IService<ManageRecordCancel> { |
| | | |
| | | IPage<ManageRecordCancel> pageManageRecordCancel(Page page, ManageRecordCancel manageRecordCancel); |
| | | |
| | | int ratifyManageRecordCancel(Integer id, String ratifyState); |
| | | |
| | | String exportOutManageRecordCancel(ManageRecordCancel manageRecordCancel, HttpServletResponse response); |
| | | |
| | | int exportInManageRecordCancel(MultipartFile file); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageRecordCheck; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶å®¡æ¹è®°å½(å«ä¿®è®¢å忬¡å®¡æ¹è®°å½) æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 02:31:36 |
| | | */ |
| | | public interface ManageRecordCheckService extends IService<ManageRecordCheck> { |
| | | |
| | | IPage<ManageRecordCheck> pageManageRecordCheck(Page page, ManageRecordCheck manageRecordCheck); |
| | | |
| | | int checkManageRecordCheck(Integer id, String checkState); |
| | | |
| | | int ratifyManageRecordCheck(Integer id, String ratifyState); |
| | | |
| | | String exportOutManageRecordCheck(ManageRecordCheck manageRecordCheck, HttpServletResponse response); |
| | | |
| | | int exportInManageRecordCheck(MultipartFile file); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageRecordIntervals; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶å®æå®¡æ¥è®°å½ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 10:54:31 |
| | | */ |
| | | public interface ManageRecordIntervalsService extends IService<ManageRecordIntervals> { |
| | | |
| | | IPage<ManageRecordIntervals> pageManageRecordIntervals(Page page, ManageRecordIntervals manageRecordIntervals); |
| | | |
| | | String exportOutManageRecordIntervals(ManageRecordIntervals manageRecordIntervals, HttpServletResponse response); |
| | | |
| | | int exportInManageRecordIntervals(MultipartFile file); |
| | | |
| | | int addManageRecordIntervals(ManageRecordIntervals manageRecordIntervals); |
| | | |
| | | int delManageRecordIntervals(Integer id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageRecordIntervalsTotal; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶å®æå®¡æ¥è®°å½æ»åå²è®°å½è¡¨ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 01:12:11 |
| | | */ |
| | | public interface ManageRecordIntervalsTotalService extends IService<ManageRecordIntervalsTotal> { |
| | | |
| | | IPage<ManageRecordIntervalsTotal> pageManageRecordIntervalsTotal(Page page, ManageRecordIntervalsTotal manageRecordIntervalsTotal); |
| | | |
| | | int submitManageRecordIntervalsTotal(Integer id); |
| | | |
| | | int ratifyManageRecordIntervalsTotal(Integer id, String ratifyState); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageRecordIssueRecycle; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æææä»¶(å
ãå¤é¨æä»¶)çåæ¾ä¸åæ¶è®°å½ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 09:11:05 |
| | | */ |
| | | public interface ManageRecordIssueRecycleService extends IService<ManageRecordIssueRecycle> { |
| | | |
| | | IPage<ManageRecordIssueRecycle> pageManageRecordIssueRecycle(Page page, ManageRecordIssueRecycle manageRecordIssueRecycle); |
| | | |
| | | String exportOutManageRecordIssueRecycle(ManageRecordIssueRecycle manageRecordIssueRecycle, HttpServletResponse response); |
| | | |
| | | int exportInManageRecordIssueRecycle(MultipartFile file); |
| | | |
| | | int addManageRecordIssueRecycle(ManageRecordIssueRecycle manageRecordIssueRecycle); |
| | | |
| | | int doManageRecordIssueRecycle(ManageRecordIssueRecycle manageRecordIssueRecycle); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageRecordTotal; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * 夿¥æä»¶ç¡®è®¤è®°å½æ»åå²è®°å½è¡¨ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 10:30:08 |
| | | */ |
| | | public interface ManageRecordTotalService extends IService<ManageRecordTotal> { |
| | | |
| | | IPage<ManageRecordTotal> pageManageRecordTotal(Page page, ManageRecordTotal manageRecordTotal); |
| | | |
| | | int submitManageRecordTotal(Integer id); |
| | | |
| | | int ratifyManageRecordTotal(Integer id, String ratifyState); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageRecordVerify; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * 夿¥æä»¶ç¡®è®¤è®°å½ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 10:29:44 |
| | | */ |
| | | public interface ManageRecordVerifyService extends IService<ManageRecordVerify> { |
| | | |
| | | IPage<ManageRecordVerify> pageManageRecordVerify(Page page, ManageRecordVerify manageRecordVerify); |
| | | |
| | | int addManageRecordVerify(ManageRecordVerify manageRecordVerify); |
| | | |
| | | int delManageRecordVerify(Integer id); |
| | | |
| | | int exportManageRecordVerify(MultipartFile file); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.manage.pojo.ManageReviewProgramFile; |
| | | import com.ruoyi.manage.vo.ReviewProgramDetailsVo; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 04:15:47 |
| | | */ |
| | | public interface ManageReviewProgramFileService extends IService<ManageReviewProgramFile> { |
| | | |
| | | ReviewProgramDetailsVo selectFile(Integer id); |
| | | |
| | | |
| | | void addFile(MultipartFile file,Integer id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageReviewProgram; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 03:05:42 |
| | | */ |
| | | public interface ManageReviewProgramService extends IService<ManageReviewProgram> { |
| | | |
| | | IPage<ManageReviewProgram> page(Page page,String startTime,String endTime, String judgingLocation); |
| | | |
| | | void exportReviewProgram(Integer id, HttpServletResponse response); |
| | | |
| | | int addReviewProgram(ManageReviewProgram manageReviewProgram); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageReviewReport; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * 管çè¯å®¡æ¥å æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 04:44:39 |
| | | */ |
| | | public interface ManageReviewReportService extends IService<ManageReviewReport> { |
| | | |
| | | |
| | | IPage<ManageReviewReport> page(Page page, String startTime, String endTime, String place); |
| | | |
| | | void exportReviewReport(Integer id, HttpServletResponse response); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.pojo.ManageRiskAssessmentResults; |
| | | import com.ruoyi.manage.vo.ManageRiskAssessmentResultsVo; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * <p> |
| | | * å±é©å ç´ è¾¨è¯ä¸é£é©è¯ä»·ç»æä¸è§è¡¨ æå¡ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 02:58:51 |
| | | */ |
| | | public interface ManageRiskAssessmentResultsService extends IService<ManageRiskAssessmentResults> { |
| | | |
| | | IPage<ManageRiskAssessmentResultsVo> getPageResults(Page page); |
| | | |
| | | void exportPersonTraining(HttpServletResponse response); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.config.ConfigureBuilder; |
| | | import com.deepoove.poi.data.Pictures; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.manage.dto.ClientSatisfactionDto; |
| | | import com.ruoyi.manage.mapper.ClientSatisfactionAnalyseFileMapper; |
| | | import com.ruoyi.manage.mapper.ClientSatisfactionMapper; |
| | | import com.ruoyi.manage.pojo.ClientSatisfaction; |
| | | import com.ruoyi.manage.pojo.ClientSatisfactionAnalyseFile; |
| | | import com.ruoyi.manage.service.ClientSatisfactionService; |
| | | 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.File; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.time.LocalDateTime; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.HashMap; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-09 |
| | | */ |
| | | @Service |
| | | public class ClientSatisfactionServiceImpl extends ServiceImpl<ClientSatisfactionMapper, ClientSatisfaction> implements ClientSatisfactionService { |
| | | |
| | | @Resource |
| | | private ClientSatisfactionAnalyseFileMapper clientSatisfactionAnalyseFileMapper; |
| | | |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | |
| | | @Value("${file.path}") |
| | | private String imgUrl; |
| | | |
| | | @Value("${wordUrl}") |
| | | private String wordUrl; |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦è°æ¥å表 |
| | | * |
| | | * @param page |
| | | * @param clientSatisfaction |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<ClientSatisfaction> pageClientSatisfaction(Page page, ClientSatisfaction clientSatisfaction) { |
| | | return baseMapper.pageClientSatisfaction(page, QueryWrappers.queryWrappers(clientSatisfaction)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢å®¢æ·åæéä»¶ |
| | | * |
| | | * @param file |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean uploadAnalyseFile(MultipartFile file) { |
| | | |
| | | String urlString; |
| | | String pathName; |
| | | String path; |
| | | String filename = file.getOriginalFilename(); |
| | | String contentType = file.getContentType(); |
| | | ClientSatisfactionAnalyseFile analyseFile = new ClientSatisfactionAnalyseFile(); |
| | | analyseFile.setFileName(filename); |
| | | if (contentType != null && contentType.startsWith("image/")) { |
| | | // æ¯å¾ç |
| | | path = imgUrl; |
| | | analyseFile.setType(1); |
| | | } else { |
| | | // æ¯æä»¶ |
| | | path = wordUrl; |
| | | analyseFile.setType(2); |
| | | } |
| | | try { |
| | | File realpath = new File(path); |
| | | if (!realpath.exists()) { |
| | | realpath.mkdirs(); |
| | | } |
| | | pathName = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyMMddHHmmss")) + "_" + file.getOriginalFilename(); |
| | | urlString = realpath + "/" + pathName; |
| | | file.transferTo(new File(urlString)); |
| | | analyseFile.setFileUrl(pathName); |
| | | clientSatisfactionAnalyseFileMapper.insert(analyseFile); |
| | | return true; |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new ErrorException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢å®¢æ·åæéä»¶ |
| | | * |
| | | * @param page |
| | | * @param analyseFile |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<ClientSatisfactionAnalyseFile> pageAnalyseFile(Page page, ClientSatisfactionAnalyseFile analyseFile) { |
| | | return clientSatisfactionAnalyseFileMapper.pageAnalyseFile(page, QueryWrappers.queryWrappers(analyseFile)); |
| | | } |
| | | |
| | | /** |
| | | * å®¢æ·æ»¡æåº¦å¯¼åº |
| | | * |
| | | * @param clientSatisfactionId |
| | | * @param response |
| | | */ |
| | | @Override |
| | | public void exportWordClientSatisfaction(Integer clientSatisfactionId, HttpServletResponse response) { |
| | | // æ¥è¯¢å®¢æ·æ»¡æåº¦è°æ¥ |
| | | ClientSatisfactionDto clientSatisfaction = baseMapper.exportWordClientSatisfaction(clientSatisfactionId); |
| | | if (clientSatisfaction == null) { |
| | | throw new RuntimeException("å®¢æ·æ»¡æåº¦è°æ¥ä¸åå¨"); |
| | | } |
| | | |
| | | // æ¥è¯¢ç¡®è®¤äººçç¾å |
| | | String confirmPersonUrl = null; |
| | | // ç¶æä¸ºç¡®è®¤ä¸ç¡®è®¤äººä¸ä¸ºç©º |
| | | if (clientSatisfaction.getConfirmStatus() != null && clientSatisfaction.getConfirmStatus() != 0 && clientSatisfaction.getConfirmPersonId() != null) { |
| | | confirmPersonUrl = userMapper.selectById(clientSatisfaction.getConfirmPersonId()).getSignatureUrl(); |
| | | if (StringUtils.isBlank(confirmPersonUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°éªè¯äººçç¾å"); |
| | | } |
| | | } |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/customer-satisfaction-questionnaire.docx"); |
| | | ConfigureBuilder builder = Configure.builder(); |
| | | String finalConfirmPersonUrl = confirmPersonUrl; |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, builder.build()).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("clientSatisfaction", clientSatisfaction); |
| | | put("finalConfirmPersonUrl", StringUtils.isNotBlank(finalConfirmPersonUrl) ? Pictures.ofLocal(imgUrl + "/" + finalConfirmPersonUrl).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("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * ç¡®è®¤å®¢æ·æ»¡æåº¦ |
| | | * |
| | | * @param clientSatisfaction è¦ä¿®æ¹å®¢æ·æ»¡æåº¦çç¶æå¯¹è±¡ |
| | | * @param userId ä¿®æ¹äººid |
| | | */ |
| | | @Override |
| | | public void confirmClientSatisfaction(ClientSatisfaction clientSatisfaction, Integer userId) { |
| | | User user = userMapper.selectById(userId); |
| | | if (user != null) { |
| | | clientSatisfaction.setConfirmPerson(user.getName()); |
| | | clientSatisfaction.setConfirmPersonId(user.getId().intValue()); |
| | | } |
| | | clientSatisfaction.setConfirmStatus(1); |
| | | baseMapper.updateById(clientSatisfaction); |
| | | } |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.manage.mapper.InternalCheckDetailMapper; |
| | | import com.ruoyi.manage.pojo.InternalCheckDetail; |
| | | import com.ruoyi.manage.service.InternalCheckDetailService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥è¯¦æ
表 |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Service |
| | | public class InternalCheckDetailServiceImpl extends ServiceImpl<InternalCheckDetailMapper, InternalCheckDetail> implements InternalCheckDetailService { |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | 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.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.DateImageUtil; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import com.ruoyi.manage.dto.InternalCheckDto; |
| | | import com.ruoyi.manage.mapper.InternalCheckMapper; |
| | | import com.ruoyi.manage.pojo.InternalCheck; |
| | | import com.ruoyi.manage.pojo.InternalCheckDetail; |
| | | import com.ruoyi.manage.service.InternalCheckDetailService; |
| | | import com.ruoyi.manage.service.InternalCheckService; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | 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.LocalDateTime; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥è¡¨ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class InternalCheckServiceImpl extends ServiceImpl<InternalCheckMapper, InternalCheck> implements InternalCheckService { |
| | | |
| | | @Resource |
| | | private InternalCheckDetailService internalCheckDetailService; |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | @Value("${file.path}") |
| | | private String imgUrl; |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥å页æ¥è¯¢ |
| | | * @param page |
| | | * @param internalCheck |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<InternalCheckDto> pageInternalCheck(Page page, InternalCheck internalCheck) { |
| | | return baseMapper.pageInternalCheck(page, QueryWrappers.queryWrappers(internalCheck)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥æ°å¢ |
| | | * @param internalCheck |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean addInternalCheck(InternalCheckDto internalCheck) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | // æ·»å ç¼å¶äºº |
| | | User user = userMapper.selectById(userId); |
| | | internalCheck.setWriteTime(LocalDateTime.now()); |
| | | internalCheck.setWriteUserId(user.getId()); |
| | | internalCheck.setWriteUserName(user.getName()); |
| | | |
| | | baseMapper.insert(internalCheck); |
| | | // æ°å¢è¯¦æ
|
| | | for (InternalCheckDetail internalCheckDetail : internalCheck.getCheckDetailList()) { |
| | | internalCheckDetail.setCheckId(internalCheck.getCheckId()); |
| | | } |
| | | internalCheckDetailService.saveBatch(internalCheck.getCheckDetailList()); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥ä¿®æ¹ |
| | | * @param internalCheck |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean updateInternalCheck(InternalCheckDto internalCheck) { |
| | | baseMapper.updateById(internalCheck); |
| | | |
| | | // å é¤ä¹åç详æ
|
| | | internalCheckDetailService.remove(Wrappers.<InternalCheckDetail>lambdaQuery() |
| | | .eq(InternalCheckDetail::getCheckId, internalCheck.getCheckId())); |
| | | |
| | | // æ°å¢è¯¦æ
|
| | | for (InternalCheckDetail internalCheckDetail : internalCheck.getCheckDetailList()) { |
| | | internalCheckDetail.setCheckId(internalCheck.getCheckId()); |
| | | } |
| | | internalCheckDetailService.saveBatch(internalCheck.getCheckDetailList()); |
| | | |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥å é¤ |
| | | * @param CheckId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean delInternalCheck(Integer CheckId) { |
| | | internalCheckDetailService.remove(Wrappers.<InternalCheckDetail>lambdaQuery() |
| | | .eq(InternalCheckDetail::getCheckId, CheckId)); |
| | | baseMapper.deleteById(CheckId); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥æ¥ç详æ
|
| | | * @param CheckId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public InternalCheckDto getInternalCheckOne(Integer CheckId) { |
| | | InternalCheck internalCheck = baseMapper.selectById(CheckId); |
| | | InternalCheckDto internalCheckDto = new InternalCheckDto(); |
| | | BeanUtils.copyProperties(internalCheck, internalCheckDto); |
| | | |
| | | // æ¥è¯¢è¯¦ç»ä¿¡æ¯ |
| | | internalCheckDto.setCheckDetailList(internalCheckDetailService.list(Wrappers.<InternalCheckDetail>lambdaQuery() |
| | | .eq(InternalCheckDetail::getCheckId, CheckId))); |
| | | return internalCheckDto; |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡æ£æ¥æ¹å |
| | | * @param internalCheck |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean ratifyInternalCheck(InternalCheckDto internalCheck) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | User user = userMapper.selectById(userId); |
| | | baseMapper.update(null, Wrappers.<InternalCheck>lambdaUpdate() |
| | | .eq(InternalCheck::getCheckId, internalCheck.getCheckId()) |
| | | .set(InternalCheck::getRatifyUserId, userId) |
| | | .set(InternalCheck::getRatifyUserName, user.getName()) |
| | | .set(InternalCheck::getRatifyRemark, internalCheck.getRatifyRemark()) |
| | | .set(InternalCheck::getRatifyStatus, internalCheck.getRatifyStatus()) |
| | | .set(InternalCheck::getRatifyTime, LocalDateTime.now()) |
| | | ); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * 导åºå
å®¡æ£æ¥ |
| | | * @param checkId |
| | | * @param response |
| | | */ |
| | | @Override |
| | | public void exportInternalCheck(Integer checkId, HttpServletResponse response) { |
| | | InternalCheck internalCheck = baseMapper.selectById(checkId); |
| | | |
| | | //è·åæäº¤äººçç¾åå°å |
| | | String writeUrl = userMapper.selectById(internalCheck.getWriteUserId()).getSignatureUrl(); |
| | | if (ObjectUtils.isEmpty(writeUrl) || writeUrl.equals("")) { |
| | | throw new ErrorException("æ¾ä¸å°æ£éªäººçç¾å"); |
| | | } |
| | | |
| | | //è·åæ¹å人çç¾åå°å |
| | | String ratifyUrl = null; |
| | | if (internalCheck.getRatifyUserId() != null) { |
| | | ratifyUrl = userMapper.selectById(internalCheck.getRatifyUserId()).getSignatureUrl(); |
| | | if (StringUtils.isBlank(ratifyUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°å¤æ ¸äººçç¾å"); |
| | | } |
| | | } |
| | | |
| | | // æ¥è¯¢è¯¦æ
|
| | | List<InternalCheckDetail> internalCheckDetails = internalCheckDetailService.list(Wrappers.<InternalCheckDetail>lambdaQuery() |
| | | .eq(InternalCheckDetail::getCheckId, checkId)); |
| | | |
| | | int index = 1; |
| | | for (InternalCheckDetail detail : internalCheckDetails) { |
| | | detail.setIndex(index); |
| | | index++; |
| | | } |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/internal-check.docx"); |
| | | String finalRatifyUrl = ratifyUrl; |
| | | Configure configure = Configure.builder() |
| | | .bind("checkDetailList", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("check", internalCheck); |
| | | put("checkDetailList", internalCheckDetails); |
| | | put("writeUrl", StringUtils.isNotBlank(writeUrl) ? Pictures.ofLocal(imgUrl + "/" + writeUrl).create() : null); |
| | | put("ratifyUrl", StringUtils.isNotBlank(finalRatifyUrl) ? Pictures.ofLocal(imgUrl + "/" + finalRatifyUrl).create() : null); |
| | | put("writeDateUrl", internalCheck.getWriteTime() != null ? |
| | | Pictures.ofStream(DateImageUtil.createDateImage(internalCheck.getWriteTime())).create() : null); |
| | | put("ratifyDateUrl", internalCheck.getRatifyTime() != null ? |
| | | Pictures.ofStream(DateImageUtil.createDateImage(internalCheck.getRatifyTime())).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.manage.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.manage.mapper.InternalCorrectFileMapper; |
| | | import com.ruoyi.manage.pojo.InternalCorrectFile; |
| | | import com.ruoyi.manage.service.InternalCorrectFileService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审管ççº æ£æªæ½é件表 æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 04:00:38 |
| | | */ |
| | | @Service |
| | | public class InternalCorrectFileServiceImpl extends ServiceImpl<InternalCorrectFileMapper, InternalCorrectFile> implements InternalCorrectFileService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.config.ConfigureBuilder; |
| | | import com.deepoove.poi.data.Pictures; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.manage.dto.InternalCorrectDto; |
| | | import com.ruoyi.manage.mapper.InternalCorrectFileMapper; |
| | | import com.ruoyi.manage.mapper.InternalCorrectMapper; |
| | | import com.ruoyi.manage.pojo.InternalCorrect; |
| | | import com.ruoyi.manage.pojo.InternalCorrectFile; |
| | | import com.ruoyi.manage.service.InternalCorrectService; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.File; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审管ççº æ£å¤ç表 æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 04:00:15 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class InternalCorrectServiceImpl extends ServiceImpl<InternalCorrectMapper, InternalCorrect> implements InternalCorrectService { |
| | | |
| | | @Resource |
| | | private InternalCorrectFileMapper internalCorrectFileMapper; |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | @Value("${file.path}") |
| | | private String imgUrl; |
| | | |
| | | @Value("${wordUrl}") |
| | | private String wordUrl; |
| | | |
| | | |
| | | @Override |
| | | public boolean addInternalCorrect(InternalCorrect detailsCorrect) { |
| | | InternalCorrect correct = new InternalCorrect(); |
| | | // å½åç»å½ç¨æ·ä¿¡æ¯åé¨é¨ |
| | | User user = userMapper.selectById(SecurityUtils.getUserId().intValue()); |
| | | String departmentLimsName = userMapper.selectUserDepartmentLimsName(user.getId()); |
| | | |
| | | switch (detailsCorrect.getFlowType()) { |
| | | // ä¸åæ ¼æåº |
| | | case 0: |
| | | correct.setRaiseResult(detailsCorrect.getRaiseResult());//ä¸åæ ¼è¡¨è¿° |
| | | correct.setVdeRaiseResult(detailsCorrect.getVdeRaiseResult());//vdeä¸å®¶åç° |
| | | correct.setRaiseDepartment(departmentLimsName);//æåºé¨é¨ |
| | | correct.setRaiseUserId(user.getId());//æåºäººid |
| | | correct.setRaiseUserName(user.getName());// æåºäºº |
| | | correct.setRaiseTime(LocalDate.now());// æåºæ¶é´ |
| | | |
| | | // åå åæäººä¿¡æ¯ |
| | | User causeUser = userMapper.selectById(detailsCorrect.getCauseUserId()); |
| | | String causeDepartmentLims = userMapper.selectUserDepartmentLimsName(causeUser.getId()); |
| | | |
| | | correct.setCauseDepartment(causeDepartmentLims);//åå åæè´£ä»»é¨é¨ |
| | | correct.setCauseUserId(causeUser.getId());//1åå åæäººid |
| | | correct.setCauseUserName(causeUser.getName());// 1åå åæäºº |
| | | baseMapper.insert(correct); |
| | | break; |
| | | |
| | | // åå åæ |
| | | case 1: |
| | | correct.setCorrectId(detailsCorrect.getCorrectId()); |
| | | correct.setCauseResult(detailsCorrect.getCauseResult());//åå åæ |
| | | correct.setCauseTime(LocalDate.now());// 1åå åææ¶é´ |
| | | |
| | | // çº æ£äººä¿¡æ¯ |
| | | User correctUser = userMapper.selectById(detailsCorrect.getCorrectUserId()); |
| | | String correctUserDepartmentLims = userMapper.selectUserDepartmentLimsName(correctUser.getId()); |
| | | |
| | | correct.setCorrectDepartment(correctUserDepartmentLims);//2çº æ£è´£ä»»é¨é¨ |
| | | correct.setCorrectUserId(correctUser.getId());//2çº æ£äººid |
| | | correct.setCorrectUserName(correctUser.getName());// 2çº æ£äºº |
| | | baseMapper.updateById(correct); |
| | | break; |
| | | |
| | | // çº æ£æªæ½ |
| | | case 2: |
| | | correct.setCorrectId(detailsCorrect.getCorrectId()); |
| | | correct.setCorrectResult(detailsCorrect.getCorrectResult());//2çº æ£æªæ½ |
| | | correct.setRaiseDepartmentAffirm(detailsCorrect.getRaiseDepartmentAffirm());//2æåºé¨é¨ç¡®è®¤ |
| | | correct.setCorrectTime(LocalDate.now());// 2çº æ£æ¶é´ |
| | | |
| | | // éªè¯äººä¿¡æ¯ |
| | | User validationUser = userMapper.selectById(detailsCorrect.getValidationUserId()); |
| | | String validationUserDepartmentLims = userMapper.selectUserDepartmentLimsName(validationUser.getId()); |
| | | |
| | | correct.setValidationDepartment(validationUserDepartmentLims);//3éªè¯é¨é¨ |
| | | correct.setValidationUserId(validationUser.getId());//3éªè¯äººid |
| | | correct.setValidationUserName(validationUser.getName());// 3éªè¯äºº |
| | | baseMapper.updateById(correct); |
| | | break; |
| | | |
| | | // éªè¯ç»æ |
| | | case 3: |
| | | correct.setCorrectId(detailsCorrect.getCorrectId()); |
| | | correct.setValidationResult(detailsCorrect.getValidationResult());//3éªè¯ç»æ |
| | | correct.setValidationTime(LocalDate.now());// 3éªè¯æ¶é´ |
| | | correct.setIsFinish(1); |
| | | baseMapper.updateById(correct); |
| | | break; |
| | | } |
| | | |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢å
审管ççº æ£å¤ç |
| | | * @param correctId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public InternalCorrect getInternalCorrect(Integer correctId) { |
| | | InternalCorrect detailsCorrect; |
| | | |
| | | detailsCorrect = baseMapper.selectOne(Wrappers.<InternalCorrect>lambdaQuery() |
| | | .eq(InternalCorrect::getCorrectId, correctId)); |
| | | |
| | | if (detailsCorrect == null) { |
| | | detailsCorrect = new InternalCorrect(); |
| | | } |
| | | return detailsCorrect; |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢å
审管ççº æ£æªæ½å表 |
| | | * @param page |
| | | * @param detailsCorrect |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<InternalCorrect> pageInternalCorrect(Page page, InternalCorrect detailsCorrect) { |
| | | return baseMapper.pageInternalAccording(page, QueryWrappers.queryWrappers(detailsCorrect)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢å
审管ççº æ£æªæ½éä»¶ |
| | | * @param InternalCorrectId |
| | | * @param file |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean uploadInternalCorrectFile(Integer InternalCorrectId, MultipartFile file) { |
| | | if (InternalCorrectId == null) { |
| | | throw new ErrorException("缺å°çº æ£æªæ½id"); |
| | | } |
| | | |
| | | String urlString; |
| | | String pathName; |
| | | String path; |
| | | String filename = file.getOriginalFilename(); |
| | | String contentType = file.getContentType(); |
| | | InternalCorrectFile InternalCorrectFile = new InternalCorrectFile(); |
| | | InternalCorrectFile.setCorrectId(InternalCorrectId); |
| | | InternalCorrectFile.setFileName(filename); |
| | | if (contentType != null && contentType.startsWith("image/")) { |
| | | // æ¯å¾ç |
| | | path = imgUrl; |
| | | InternalCorrectFile.setType(1); |
| | | } else { |
| | | // æ¯æä»¶ |
| | | path = wordUrl; |
| | | InternalCorrectFile.setType(2); |
| | | } |
| | | try { |
| | | File realpath = new File(path); |
| | | if (!realpath.exists()) { |
| | | realpath.mkdirs(); |
| | | } |
| | | pathName = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyMMddHHmmss")) + "_" + file.getOriginalFilename(); |
| | | urlString = realpath + "/" + pathName; |
| | | file.transferTo(new File(urlString)); |
| | | InternalCorrectFile.setFileUrl(pathName); |
| | | internalCorrectFileMapper.insert(InternalCorrectFile); |
| | | return true; |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new ErrorException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢å
审管ççº æ£æªæ½éä»¶ |
| | | * @param correctId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<InternalCorrectFile> getInternalCorrectFileList(Integer correctId) { |
| | | return internalCorrectFileMapper.selectList(Wrappers.<InternalCorrectFile>lambdaQuery() |
| | | .eq(InternalCorrectFile::getCorrectId, correctId)); |
| | | } |
| | | |
| | | /** |
| | | * 导åºçº æ£æªæ½ |
| | | * @param correctId |
| | | * @param response |
| | | */ |
| | | @Override |
| | | public void exportInternalCorrect(Integer correctId, HttpServletResponse response) { |
| | | InternalCorrect internalCorrect = baseMapper.selectById(correctId); |
| | | InternalCorrectDto internalCorrectDto = new InternalCorrectDto(); |
| | | BeanUtils.copyProperties(internalCorrect, internalCorrectDto); |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd"); |
| | | // æåºæ¶é´ |
| | | internalCorrectDto.setRaiseTimeString(internalCorrect.getRaiseTime() != null |
| | | ? internalCorrect.getRaiseTime().format(formatter) : null); |
| | | // åå åææ¶é´ |
| | | internalCorrectDto.setCauseTimeString(internalCorrect.getCauseTime() != null |
| | | ? internalCorrect.getCauseTime().format(formatter) : null); |
| | | |
| | | // çº æ£æ¶é´ |
| | | internalCorrectDto.setCorrectTimeString(internalCorrect.getCorrectTime() != null |
| | | ? internalCorrect.getCorrectTime().format(formatter) : null); |
| | | |
| | | // éªè¯æ¶é´ |
| | | internalCorrectDto.setValidationTimeString(internalCorrect.getValidationTime() != null |
| | | ? internalCorrect.getValidationTime().format(formatter) : null); |
| | | |
| | | |
| | | // æåºäººç¾å |
| | | String raiseUrl = null; |
| | | if (internalCorrect.getRaiseUserId() != null) { |
| | | raiseUrl = userMapper.selectById(internalCorrect.getRaiseUserId()).getSignatureUrl(); |
| | | if (StringUtils.isBlank(raiseUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°æåºäººçç¾å"); |
| | | } |
| | | } |
| | | |
| | | // åå åæäºº |
| | | String causeUrl = null; |
| | | if (internalCorrect.getCauseUserId() != null) { |
| | | causeUrl = userMapper.selectById(internalCorrect.getCauseUserId()).getSignatureUrl(); |
| | | if (StringUtils.isBlank(causeUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°åå åæäººçç¾å"); |
| | | } |
| | | } |
| | | |
| | | // çº æ£äºº |
| | | String correctUrl = null; |
| | | if (internalCorrect.getCorrectUserId() != null) { |
| | | correctUrl = userMapper.selectById(internalCorrect.getCorrectUserId()).getSignatureUrl(); |
| | | if (StringUtils.isBlank(correctUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°çº æ£äººçç¾å"); |
| | | } |
| | | } |
| | | |
| | | // éªè¯äºº |
| | | String validationUrl = null; |
| | | if (internalCorrect.getValidationUserId() != null) { |
| | | validationUrl = userMapper.selectById(internalCorrect.getValidationUserId()).getSignatureUrl(); |
| | | if (StringUtils.isBlank(validationUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°éªè¯äººçç¾å"); |
| | | } |
| | | } |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/internal-correct.docx"); |
| | | ConfigureBuilder builder = Configure.builder(); |
| | | builder.useSpringEL(true); |
| | | String finalRaiseUrl = raiseUrl; |
| | | String finalCauseUrl = causeUrl; |
| | | String finalCorrectUrl = correctUrl; |
| | | String finalValidationUrl = validationUrl; |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, builder.build()).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("correct", internalCorrectDto); |
| | | put("raiseUrl", StringUtils.isNotBlank(finalRaiseUrl) ? Pictures.ofLocal(imgUrl + "/" + finalRaiseUrl).create() : null); |
| | | put("causeUrl", StringUtils.isNotBlank(finalCauseUrl) ? Pictures.ofLocal(imgUrl + "/" + finalCauseUrl).create() : null); |
| | | put("correctUrl", StringUtils.isNotBlank(finalCorrectUrl) ? Pictures.ofLocal(imgUrl + "/" + finalCorrectUrl).create() : null); |
| | | put("validationUrl", StringUtils.isNotBlank(finalValidationUrl) ? Pictures.ofLocal(imgUrl + "/" + finalValidationUrl).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.manage.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.manage.mapper.InternalImplementDetailMapper; |
| | | import com.ruoyi.manage.pojo.InternalImplementDetail; |
| | | import com.ruoyi.manage.service.InternalImplementDetailService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * å
审宿½è®¡å详æ
|
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Service |
| | | public class InternalImplementDetailServiceImpl extends ServiceImpl<InternalImplementDetailMapper, InternalImplementDetail> implements InternalImplementDetailService { |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.DateImageUtil; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import com.ruoyi.manage.dto.InternalImplementDto; |
| | | import com.ruoyi.manage.mapper.InternalImplementMapper; |
| | | import com.ruoyi.manage.pojo.InternalImplement; |
| | | import com.ruoyi.manage.pojo.InternalImplementDetail; |
| | | import com.ruoyi.manage.service.InternalImplementDetailService; |
| | | import com.ruoyi.manage.service.InternalImplementService; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | 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.LocalDateTime; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * å
审宿½è®¡å |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class InternalImplementServiceImpl extends ServiceImpl<InternalImplementMapper, InternalImplement> implements InternalImplementService { |
| | | |
| | | @Resource |
| | | private InternalImplementDetailService internalImplementDetailService; |
| | | |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | @Value("${file.path}") |
| | | private String imgUrl; |
| | | |
| | | /** |
| | | * å
审宿½è®¡åå页æ¥è¯¢ |
| | | * @param page |
| | | * @param internalImplement |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<InternalImplementDto> pageInternalImplement(Page page, InternalImplement internalImplement) { |
| | | return baseMapper.pageInternalImplement(page, QueryWrappers.queryWrappers(internalImplement)); |
| | | } |
| | | |
| | | /** |
| | | * å
审宿½è®¡åæ°å¢ |
| | | * @param internalImplement |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean addInternalImplement(InternalImplementDto internalImplement) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | // æ·»å ç¼å¶äºº |
| | | User user = userMapper.selectById(userId); |
| | | internalImplement.setWriteTime(LocalDateTime.now()); |
| | | internalImplement.setWriteUserId(user.getId()); |
| | | internalImplement.setWriteUserName(user.getName()); |
| | | |
| | | baseMapper.insert(internalImplement); |
| | | // æ°å¢è¯¦æ
|
| | | for (InternalImplementDetail internalImplementDetail : internalImplement.getImplementDetailList()) { |
| | | internalImplementDetail.setImplementId(internalImplement.getImplementId()); |
| | | } |
| | | internalImplementDetailService.saveBatch(internalImplement.getImplementDetailList()); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * å
审宿½è®¡åä¿®æ¹ |
| | | * @param internalImplement |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean updateInternalImplement(InternalImplementDto internalImplement) { |
| | | baseMapper.updateById(internalImplement); |
| | | |
| | | // å é¤ä¹åç详æ
|
| | | internalImplementDetailService.remove(Wrappers.<InternalImplementDetail>lambdaQuery() |
| | | .eq(InternalImplementDetail::getImplementId, internalImplement.getImplementId())); |
| | | |
| | | // æ°å¢è¯¦æ
|
| | | for (InternalImplementDetail internalImplementDetail : internalImplement.getImplementDetailList()) { |
| | | internalImplementDetail.setImplementId(internalImplement.getImplementId()); |
| | | } |
| | | internalImplementDetailService.saveBatch(internalImplement.getImplementDetailList()); |
| | | |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * å
审宿½è®¡åå é¤ |
| | | * @param implementId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean delInternalImplement(Integer implementId) { |
| | | internalImplementDetailService.remove(Wrappers.<InternalImplementDetail>lambdaQuery() |
| | | .eq(InternalImplementDetail::getImplementId, implementId)); |
| | | baseMapper.deleteById(implementId); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * å
审宿½è®¡åæ¥ç详æ
|
| | | * @param implementId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public InternalImplementDto getInternalImplementOne(Integer implementId) { |
| | | InternalImplement internalImplement = baseMapper.selectById(implementId); |
| | | InternalImplementDto internalImplementDto = new InternalImplementDto(); |
| | | BeanUtils.copyProperties(internalImplement, internalImplementDto); |
| | | |
| | | // æ¥è¯¢è¯¦ç»ä¿¡æ¯ |
| | | internalImplementDto.setImplementDetailList(internalImplementDetailService.list(Wrappers.<InternalImplementDetail>lambdaQuery() |
| | | .eq(InternalImplementDetail::getImplementId, implementId))); |
| | | return internalImplementDto; |
| | | } |
| | | |
| | | /** |
| | | * å
审宿½è®¡åæ¹å |
| | | * @param internalImplement |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean ratifyInternalImplement(InternalImplementDto internalImplement) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | User user = userMapper.selectById(userId); |
| | | baseMapper.update(null, Wrappers.<InternalImplement>lambdaUpdate() |
| | | .eq(InternalImplement::getImplementId, internalImplement.getImplementId()) |
| | | .set(InternalImplement::getRatifyUserId, userId) |
| | | .set(InternalImplement::getRatifyUserName, user.getName()) |
| | | .set(InternalImplement::getRatifyRemark, internalImplement.getRatifyRemark()) |
| | | .set(InternalImplement::getRatifyStatus, internalImplement.getRatifyStatus()) |
| | | .set(InternalImplement::getRatifyTime, LocalDateTime.now()) |
| | | ); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * 导åºå
审宿½è®¡å |
| | | * @param implementId |
| | | * @param response |
| | | */ |
| | | @Override |
| | | public void exportInternalImplement(Integer implementId, HttpServletResponse response) { |
| | | InternalImplement internalImplement = baseMapper.selectById(implementId); |
| | | |
| | | //è·åæäº¤äººçç¾åå°å |
| | | String writeUrl = userMapper.selectById(internalImplement.getWriteUserId()).getSignatureUrl(); |
| | | if (StringUtils.isBlank(writeUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°æ£éªäººçç¾å"); |
| | | } |
| | | |
| | | //è·åæ¹å人çç¾åå°å |
| | | String ratifyUrl = null; |
| | | if (internalImplement.getRatifyUserId() != null) { |
| | | ratifyUrl = userMapper.selectById(internalImplement.getRatifyUserId()).getSignatureUrl(); |
| | | if (StringUtils.isBlank(ratifyUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°æ¹å人çç¾å"); |
| | | } |
| | | } |
| | | |
| | | // æ¥è¯¢è¯¦æ
|
| | | List<InternalImplementDetail> detailList = internalImplementDetailService.list(Wrappers.<InternalImplementDetail>lambdaQuery() |
| | | .eq(InternalImplementDetail::getImplementId, implementId)); |
| | | |
| | | int index = 1; |
| | | for (InternalImplementDetail detail : detailList) { |
| | | detail.setIndex(index); |
| | | index++; |
| | | } |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/internal-implement.docx"); |
| | | String finalRatifyUrl = ratifyUrl; |
| | | Configure configure = Configure.builder() |
| | | .bind("implementDetailList", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("implement", internalImplement); |
| | | put("implementDetailList", detailList); |
| | | put("writeUrl", StringUtils.isNotBlank(writeUrl) ? Pictures.ofLocal(imgUrl + "/" + writeUrl).create() : null); |
| | | put("ratifyUrl", StringUtils.isNotBlank(finalRatifyUrl) ? Pictures.ofLocal(imgUrl + "/" + finalRatifyUrl).create() : null); |
| | | put("writeDateUrl", internalImplement.getWriteTime() != null ? |
| | | Pictures.ofStream(DateImageUtil.createDateImage(internalImplement.getWriteTime())).create() : null); |
| | | put("ratifyDateUrl", internalImplement.getRatifyTime() != null ? |
| | | Pictures.ofStream(DateImageUtil.createDateImage(internalImplement.getRatifyTime())).create() : null); |
| | | }}); |
| | | |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String fileName = URLEncoder.encode( |
| | | internalImplement.getPurposes(), "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.manage.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.manage.mapper.InternalMeetingDetailMapper; |
| | | import com.ruoyi.manage.pojo.InternalMeetingDetail; |
| | | import com.ruoyi.manage.service.InternalMeetingDetailService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审ä¼è®®è¯¦æ
表 æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 02:56:13 |
| | | */ |
| | | @Service |
| | | public class InternalMeetingDetailServiceImpl extends ServiceImpl<InternalMeetingDetailMapper, InternalMeetingDetail> implements InternalMeetingDetailService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.manage.dto.InternalMeetingDto; |
| | | import com.ruoyi.manage.dto.InternalMeetingParticipantDto; |
| | | import com.ruoyi.manage.mapper.InternalMeetingMapper; |
| | | import com.ruoyi.manage.pojo.InternalMeeting; |
| | | import com.ruoyi.manage.pojo.InternalMeetingDetail; |
| | | import com.ruoyi.manage.service.InternalMeetingDetailService; |
| | | import com.ruoyi.manage.service.InternalMeetingService; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | 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.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审ä¼è®®è¡¨ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 02:50:44 |
| | | */ |
| | | @Service |
| | | @AllArgsConstructor |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class InternalMeetingServiceImpl extends ServiceImpl<InternalMeetingMapper, InternalMeeting> implements InternalMeetingService { |
| | | |
| | | private InternalMeetingDetailService internalMeetingDetailService; |
| | | private UserMapper userMapper; |
| | | |
| | | /** |
| | | * å
审ä¼è®®å页æ¥è¯¢ |
| | | * @param page |
| | | * @param internalMeeting |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<InternalMeetingDto> pageInternalMeeting(Page page, InternalMeeting internalMeeting) { |
| | | return baseMapper.pageInternalMeeting(page, QueryWrappers.queryWrappers(internalMeeting)); |
| | | } |
| | | |
| | | /** |
| | | * å
审ä¼è®®æ°å¢ |
| | | * @param internalMeeting |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean addInternalMeeting(InternalMeetingDto internalMeeting) { |
| | | baseMapper.insert(internalMeeting); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * å
审ä¼è®®ä¿®æ¹ |
| | | * @param internalMeeting |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean updateInternalMeeting(InternalMeetingDto internalMeeting) { |
| | | baseMapper.updateById(internalMeeting); |
| | | internalMeetingDetailService.saveBatch(internalMeeting.getMeetingDetailList()); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * å
审ä¼è®®å é¤ |
| | | * @param MeetingId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean delInternalMeeting(Integer MeetingId) { |
| | | internalMeetingDetailService.remove(Wrappers.<InternalMeetingDetail>lambdaQuery() |
| | | .eq(InternalMeetingDetail::getMeetingId, MeetingId)); |
| | | baseMapper.deleteById(MeetingId); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * å
审ä¼è®®æ¥ç详æ
|
| | | * @param MeetingId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public InternalMeetingDto getInternalMeetingOne(Integer MeetingId) { |
| | | InternalMeeting internalMeeting = baseMapper.selectById(MeetingId); |
| | | InternalMeetingDto internalMeetingDto = new InternalMeetingDto(); |
| | | BeanUtils.copyProperties(internalMeeting, internalMeetingDto); |
| | | // æ¥è¯¢è¯¦ç»ä¿¡æ¯ |
| | | internalMeetingDto.setMeetingDetailList(internalMeetingDetailService.list(Wrappers.<InternalMeetingDetail>lambdaQuery() |
| | | .eq(InternalMeetingDetail::getMeetingId, MeetingId))); |
| | | return internalMeetingDto; |
| | | } |
| | | |
| | | /** |
| | | * 导åºå
审ä¼è®® |
| | | * @param meetingId |
| | | * @param response |
| | | */ |
| | | @Override |
| | | public void exportInternalMeeting(Integer meetingId, HttpServletResponse response) { |
| | | InternalMeeting internalMeeting = baseMapper.selectById(meetingId); |
| | | // æ¥è¯¢åå 人å |
| | | List<Map<String, String>> mapList = userMapper.selectNameAnddepartment(internalMeeting.getParticipant()); |
| | | // å建空对象 |
| | | List<InternalMeetingParticipantDto> participants = new ArrayList<>(); |
| | | for (int i = 0; i < mapList.size();) { |
| | | InternalMeetingParticipantDto internalMeetingParticipantDto = new InternalMeetingParticipantDto(); |
| | | if (i < mapList.size()) { |
| | | internalMeetingParticipantDto.setUserName1(mapList.get(i).get("userName")); |
| | | internalMeetingParticipantDto.setDepartment1(mapList.get(i).get("department")); |
| | | i++; |
| | | } |
| | | if (i < mapList.size()) { |
| | | internalMeetingParticipantDto.setUserName2(mapList.get(i).get("userName")); |
| | | internalMeetingParticipantDto.setDepartment2(mapList.get(i).get("department")); |
| | | i++; |
| | | } |
| | | if (i < mapList.size()) { |
| | | internalMeetingParticipantDto.setUserName3(mapList.get(i).get("userName")); |
| | | internalMeetingParticipantDto.setDepartment3(mapList.get(i).get("department")); |
| | | i++; |
| | | } |
| | | participants.add(internalMeetingParticipantDto); |
| | | } |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/internal-meeting.docx"); |
| | | Configure configure = Configure.builder() |
| | | .bind("meetingDetails", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("meeting", internalMeeting); |
| | | put("meetingDetails", participants); |
| | | }}); |
| | | |
| | | try { |
| | | response.setContentType("application/msword"); |
| | | String fileName = URLEncoder.encode( |
| | | internalMeeting.getMeetingDate() + "å
审ä¼è®®ç¾å°", "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.manage.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.manage.mapper.InternalPlanDetailMapper; |
| | | import com.ruoyi.manage.pojo.InternalPlanDetail; |
| | | import com.ruoyi.manage.service.InternalPlanDetailService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
审年度计å详æ
表 æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 03:28:48 |
| | | */ |
| | | @Service |
| | | public class InternalPlanDetailServiceImpl extends ServiceImpl<InternalPlanDetailMapper, InternalPlanDetail> implements InternalPlanDetailService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import com.ruoyi.manage.dto.InternalPlanDto; |
| | | import com.ruoyi.manage.mapper.InternalPlanMapper; |
| | | import com.ruoyi.manage.pojo.InternalPlan; |
| | | import com.ruoyi.manage.pojo.InternalPlanDetail; |
| | | import com.ruoyi.manage.service.InternalPlanDetailService; |
| | | import com.ruoyi.manage.service.InternalPlanService; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | 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.LocalDateTime; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * å
å®¡å¹´åº¦è®¡å æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 03:27:47 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class InternalPlanServiceImpl extends ServiceImpl<InternalPlanMapper, InternalPlan> implements InternalPlanService { |
| | | |
| | | @Resource |
| | | private InternalPlanDetailService internalPlanDetailService; |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | @Value("${file.path}") |
| | | private String imgUrl; |
| | | |
| | | |
| | | /** |
| | | * å
审年度计åå页æ¥è¯¢ |
| | | * @param page |
| | | * @param internalPlan |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<InternalPlanDto> pageInternalPlan(Page page, InternalPlan internalPlan) { |
| | | return baseMapper.pageInternalPlan(page, QueryWrappers.queryWrappers(internalPlan)); |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡å¹´åº¦è®¡åæ°å¢ |
| | | * @param internalPlan |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean addInternalPlan(InternalPlanDto internalPlan) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | // æ·»å ç¼å¶äºº |
| | | User user = userMapper.selectById(userId); |
| | | internalPlan.setWriteTime(LocalDateTime.now()); |
| | | internalPlan.setWriteUserId(user.getId()); |
| | | internalPlan.setWriteUserName(user.getName()); |
| | | |
| | | baseMapper.insert(internalPlan); |
| | | // æ°å¢è¯¦æ
|
| | | for (InternalPlanDetail internalPlanDetail : internalPlan.getPlanDetailList()) { |
| | | internalPlanDetail.setPlanId(internalPlan.getPlanId()); |
| | | } |
| | | internalPlanDetailService.saveBatch(internalPlan.getPlanDetailList()); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * å
审年度计åä¿®æ¹ |
| | | * @param internalPlan |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean updateInternalPlan(InternalPlanDto internalPlan) { |
| | | baseMapper.updateById(internalPlan); |
| | | |
| | | // å é¤ä¹åç详æ
|
| | | internalPlanDetailService.remove(Wrappers.<InternalPlanDetail>lambdaQuery() |
| | | .eq(InternalPlanDetail::getPlanId, internalPlan.getPlanId())); |
| | | |
| | | // æ°å¢è¯¦æ
|
| | | for (InternalPlanDetail internalPlanDetail : internalPlan.getPlanDetailList()) { |
| | | internalPlanDetail.setPlanId(internalPlan.getPlanId()); |
| | | } |
| | | internalPlanDetailService.saveBatch(internalPlan.getPlanDetailList()); |
| | | |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * å
审年度计åå é¤ |
| | | * @param planId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean delInternalPlan(Integer planId) { |
| | | internalPlanDetailService.remove(Wrappers.<InternalPlanDetail>lambdaQuery() |
| | | .eq(InternalPlanDetail::getPlanId, planId)); |
| | | baseMapper.deleteById(planId); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡å¹´åº¦è®¡åæ¥ç详æ
|
| | | * @param planId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public InternalPlanDto getInternalPlanOne(Integer planId) { |
| | | InternalPlan internalPlan = baseMapper.selectById(planId); |
| | | InternalPlanDto internalPlanDto = new InternalPlanDto(); |
| | | BeanUtils.copyProperties(internalPlan, internalPlanDto); |
| | | |
| | | // æ¥è¯¢è¯¦ç»ä¿¡æ¯ |
| | | internalPlanDto.setPlanDetailList(internalPlanDetailService.list(Wrappers.<InternalPlanDetail>lambdaQuery() |
| | | .eq(InternalPlanDetail::getPlanId, planId))); |
| | | return internalPlanDto; |
| | | } |
| | | |
| | | /** |
| | | * å
审年度计åå®¡æ ¸ |
| | | * @param internalPlanDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean examineInternalPlan(InternalPlanDto internalPlanDto) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | User user = userMapper.selectById(userId); |
| | | baseMapper.update(null, Wrappers.<InternalPlan>lambdaUpdate() |
| | | .eq(InternalPlan::getPlanId, internalPlanDto.getPlanId()) |
| | | .set(InternalPlan::getExamineUserId, userId) |
| | | .set(InternalPlan::getExamineUserName, user.getName()) |
| | | .set(InternalPlan::getExamineRemark, internalPlanDto.getExamineRemark()) |
| | | .set(InternalPlan::getExamineStatus, internalPlanDto.getExamineStatus()) |
| | | .set(InternalPlan::getExamineTime, LocalDateTime.now()) |
| | | ); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * å
å®¡å¹´åº¦è®¡åæ¹å |
| | | * @param internalPlanDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean ratifyInternalPlan(InternalPlanDto internalPlanDto) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | User user = userMapper.selectById(userId); |
| | | baseMapper.update(null, Wrappers.<InternalPlan>lambdaUpdate() |
| | | .eq(InternalPlan::getPlanId, internalPlanDto.getPlanId()) |
| | | .set(InternalPlan::getRatifyUserId, userId) |
| | | .set(InternalPlan::getRatifyUserName, user.getName()) |
| | | .set(InternalPlan::getRatifyRemark, internalPlanDto.getRatifyRemark()) |
| | | .set(InternalPlan::getRatifyStatus, internalPlanDto.getRatifyStatus()) |
| | | .set(InternalPlan::getRatifyTime, LocalDateTime.now()) |
| | | ); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * 导åºå
审年度计å |
| | | * @param planId |
| | | * @param response |
| | | */ |
| | | @Override |
| | | public void exportInternalImplement(Integer planId, HttpServletResponse response) { |
| | | InternalPlan internalPlan = baseMapper.selectById(planId); |
| | | //è·åæäº¤äººçç¾åå°å |
| | | String writeUrl = userMapper.selectById(internalPlan.getWriteUserId()).getSignatureUrl(); |
| | | if (StringUtils.isBlank(writeUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°æ£éªäººçç¾å"); |
| | | } |
| | | |
| | | //è·åå®¡æ ¸äººçç¾åå°å |
| | | String examineUrl = null; |
| | | if (internalPlan.getExamineUserId() != null) { |
| | | examineUrl = userMapper.selectById(internalPlan.getExamineUserId()).getSignatureUrl(); |
| | | if (StringUtils.isBlank(examineUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°å®¡æ ¸äººçç¾å"); |
| | | } |
| | | } |
| | | |
| | | //è·åæ¹å人çç¾åå°å |
| | | String ratifyUrl = null; |
| | | if (internalPlan.getRatifyUserId() != null) { |
| | | ratifyUrl = userMapper.selectById(internalPlan.getRatifyUserId()).getSignatureUrl(); |
| | | if (StringUtils.isBlank(ratifyUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°æ¹å人çç¾å"); |
| | | } |
| | | } |
| | | |
| | | // æ¥è¯¢è¯¦æ
|
| | | List<InternalPlanDetail> planDetails = internalPlanDetailService.list(Wrappers.<InternalPlanDetail>lambdaQuery() |
| | | .eq(InternalPlanDetail::getPlanId, planId)); |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/internal-plan.docx"); |
| | | String finalExamineUrl = examineUrl; |
| | | String finalRatifyUrl = ratifyUrl; |
| | | Configure configure = Configure.builder() |
| | | .bind("planDetailList", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("plan", internalPlan); |
| | | put("planDetailList", planDetails); |
| | | put("writeUrl", StringUtils.isNotBlank(writeUrl) ? Pictures.ofLocal(imgUrl + "/" + writeUrl).create() : null); |
| | | put("examineUrl", StringUtils.isNotBlank(finalExamineUrl) ? Pictures.ofLocal(imgUrl + "/" + finalExamineUrl).create() : null); |
| | | put("ratifyUrl", StringUtils.isNotBlank(finalRatifyUrl) ? Pictures.ofLocal(imgUrl + "/" + finalRatifyUrl).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.manage.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.config.ConfigureBuilder; |
| | | import com.deepoove.poi.data.Pictures; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.manage.mapper.InternalReportMapper; |
| | | import com.ruoyi.manage.pojo.InternalReport; |
| | | import com.ruoyi.manage.service.InternalReportService; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | 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.LocalDateTime; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.HashMap; |
| | | |
| | | /** |
| | | * å
审æ¥å表 |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-11-11 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class InternalReportServiceImpl extends ServiceImpl<InternalReportMapper, InternalReport> implements InternalReportService { |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | @Value("${file.path}") |
| | | private String imgUrl; |
| | | |
| | | /** |
| | | * å
审æ¥åå页æ¥è¯¢ |
| | | * @param page |
| | | * @param internalReport |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<InternalReport> pageInternalReport(Page page, InternalReport internalReport) { |
| | | return baseMapper.pageInternalReport(page, QueryWrappers.queryWrappers(internalReport)); |
| | | } |
| | | |
| | | /** |
| | | * å
审æ¥åå®¡æ ¸ |
| | | * @param internalReport |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean ratifyInternalCheck(InternalReport internalReport) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | User user = userMapper.selectById(userId); |
| | | baseMapper.update(null, Wrappers.<InternalReport>lambdaUpdate() |
| | | .eq(InternalReport::getReportId, internalReport.getReportId()) |
| | | .set(InternalReport::getExamineUserId, userId) |
| | | .set(InternalReport::getExamineUserName, user.getName()) |
| | | .set(InternalReport::getExamineRemark, internalReport.getExamineRemark()) |
| | | .set(InternalReport::getExamineStatus, internalReport.getExamineStatus()) |
| | | .set(InternalReport::getExamineTime, LocalDateTime.now()) |
| | | ); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * å
审æ¥åè´¨éè´è´£äººå¡«å |
| | | * @param internalReport |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean qualityInternalReport(InternalReport internalReport) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | User user = userMapper.selectById(userId); |
| | | baseMapper.update(null, Wrappers.<InternalReport>lambdaUpdate() |
| | | .eq(InternalReport::getReportId, internalReport.getReportId()) |
| | | .set(InternalReport::getQualityUserId, userId) |
| | | .set(InternalReport::getQualityUserName, user.getName()) |
| | | .set(InternalReport::getQualityRemark, internalReport.getQualityRemark()) |
| | | .set(InternalReport::getQualityStatus, internalReport.getQualityStatus()) |
| | | .set(InternalReport::getQualityTime, LocalDateTime.now()) |
| | | ); |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * 导åºå
审æ¥å |
| | | * @param reportId |
| | | * @param response |
| | | */ |
| | | @Override |
| | | public void exportInternalReport(Integer reportId, HttpServletResponse response) { |
| | | InternalReport internalReport = baseMapper.selectById(reportId); |
| | | |
| | | //è·åå®¡æ ¸äººçç¾åå°å |
| | | String examineUrl = null; |
| | | if (internalReport.getExamineUserId() != null) { |
| | | examineUrl = userMapper.selectById(internalReport.getExamineUserId()).getSignatureUrl(); |
| | | if (StringUtils.isBlank(examineUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°å®¡æ ¸äººçç¾å"); |
| | | } |
| | | } |
| | | |
| | | //è·åè´¨éè´è´£äººçç¾åå°å |
| | | String qualityUrl = null; |
| | | if (internalReport.getQualityUserId() != null) { |
| | | qualityUrl = userMapper.selectById(internalReport.getQualityUserId()).getSignatureUrl(); |
| | | if (StringUtils.isBlank(qualityUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°è´¨éè´è´£äººçç¾å"); |
| | | } |
| | | } |
| | | |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/internal-report.docx"); |
| | | ConfigureBuilder builder = Configure.builder(); |
| | | builder.useSpringEL(true); |
| | | String finalExamineUrl = examineUrl; |
| | | String finalQualityUrl = qualityUrl; |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd"); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, builder.build()).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("report", internalReport); |
| | | put("examineUrl", StringUtils.isNotBlank(finalExamineUrl) ? Pictures.ofLocal(imgUrl + "/" + finalQualityUrl).create() : null); |
| | | put("qualityUrl", StringUtils.isNotBlank(finalQualityUrl) ? Pictures.ofLocal(imgUrl + "/" + finalQualityUrl).create() : null); |
| | | put("examineTime", internalReport.getExamineTime() != null ? internalReport.getExamineTime().format(formatter) : null); |
| | | put("qualityTime", internalReport.getQualityTime() != null ? internalReport.getQualityTime().format(formatter) : 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.manage.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | 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.DateImageUtil; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import com.ruoyi.manage.mapper.ManageControlPlanListMapper; |
| | | import com.ruoyi.manage.pojo.ManageControlPlanList; |
| | | import com.ruoyi.manage.service.ManageControlPlanListService; |
| | | import com.ruoyi.manage.vo.ManageControlPlanListVo; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.util.HashMap; |
| | | |
| | | /** |
| | | * <p> |
| | | * é大é£é©å ç´ åæåæ§å¶è®¡åæ¸
å æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 02:58:30 |
| | | */ |
| | | @Service |
| | | public class ManageControlPlanListServiceImpl extends ServiceImpl<ManageControlPlanListMapper, ManageControlPlanList> implements ManageControlPlanListService { |
| | | |
| | | @Autowired |
| | | private UserMapper userMapper; |
| | | |
| | | @Value("${file.path}") |
| | | private String imgUrl; |
| | | |
| | | @Override |
| | | public IPage<ManageControlPlanListVo> getPageList(Page page) { |
| | | return baseMapper.getPageList(page, false); |
| | | } |
| | | |
| | | @Override |
| | | public void exportPersonTraining(HttpServletResponse response) { |
| | | // æ¥è¯¢è¯¦æ
|
| | | IPage<ManageControlPlanListVo> detailedDtos = baseMapper.getPageList(new Page(1, -1), true); |
| | | if (detailedDtos.getRecords().isEmpty()) { |
| | | throw new ErrorException("å®¡æ ¸éè¿çæ°æ®ä¸ºç©ºï¼è¯·å®¡æ ¸éè¿åå¨å¯¼åº"); |
| | | } |
| | | ManageControlPlanListVo manageRiskAssessmentResultsVo = detailedDtos.getRecords().get(0); |
| | | |
| | | //è·åç¼å¶äººçç¾åå°å |
| | | String writeUrl = userMapper.selectById(manageRiskAssessmentResultsVo.getEditor()).getSignatureUrl(); |
| | | if (ObjectUtils.isEmpty(writeUrl) || writeUrl.equals("")) { |
| | | throw new ErrorException("æ¾ä¸å°æ£éªäººçç¾å"); |
| | | } |
| | | |
| | | //è·å夿 ¸äººçç¾åå°å |
| | | String examineUrl = null; |
| | | if (manageRiskAssessmentResultsVo.getApproval() != null) { |
| | | examineUrl = userMapper.selectById(manageRiskAssessmentResultsVo.getApproval()).getSignatureUrl(); |
| | | if (StringUtils.isBlank(examineUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°å¤æ ¸äººçç¾å"); |
| | | } |
| | | } |
| | | |
| | | //è·åæ¹å人çç¾åå°å |
| | | String ratifyUrl = null; |
| | | if (manageRiskAssessmentResultsVo.getApproval() != null) { |
| | | ratifyUrl = userMapper.selectById(manageRiskAssessmentResultsVo.getApproval()).getSignatureUrl(); |
| | | if (StringUtils.isBlank(ratifyUrl)) { |
| | | throw new ErrorException("æ¾ä¸å°å¤æ ¸äººçç¾å"); |
| | | } |
| | | } |
| | | |
| | | int index = 1; |
| | | for (ManageControlPlanListVo detailedDto : detailedDtos.getRecords()) { |
| | | detailedDto.setIndex(index); |
| | | index++; |
| | | } |
| | | // è·åè·¯å¾ |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/analysis-risk-factors.docx"); |
| | | String finalExamineUrl = examineUrl; |
| | | String finalRatifyUrl = ratifyUrl; |
| | | Configure configure = Configure.builder() |
| | | .bind("trainingDetailedList", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("trainingDetailedList", detailedDtos.getRecords()); |
| | | put("writeUrl", StringUtils.isNotBlank(writeUrl) ? Pictures.ofLocal(imgUrl + "/" + writeUrl).create() : null); |
| | | put("examineUrl", StringUtils.isNotBlank(finalExamineUrl) ? Pictures.ofLocal(imgUrl + "/" + finalExamineUrl).create() : null); |
| | | put("ratifyUrl", StringUtils.isNotBlank(finalRatifyUrl) ? Pictures.ofLocal(imgUrl + "/" + finalRatifyUrl).create() : null); |
| | | put("writeDateUrl", manageRiskAssessmentResultsVo.getEditorDate() != null ? |
| | | Pictures.ofStream(DateImageUtil.createDateImage(manageRiskAssessmentResultsVo.getEditorDate())).create() : null); |
| | | put("examineDateUrl", manageRiskAssessmentResultsVo.getApproveDate() != null ? |
| | | Pictures.ofStream(DateImageUtil.createDateImage(manageRiskAssessmentResultsVo.getApproveDate())).create() : null); |
| | | put("ratifyDateUrl", manageRiskAssessmentResultsVo.getApproveDate() != null ? |
| | | Pictures.ofStream(DateImageUtil.createDateImage(manageRiskAssessmentResultsVo.getApproveDate())).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.manage.service.impl; |
| | | |
| | | import cn.hutool.core.lang.UUID; |
| | | 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.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import com.ruoyi.manage.mapper.*; |
| | | import com.ruoyi.manage.pojo.*; |
| | | import com.ruoyi.manage.service.ManageDocumentAlterService; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.File; |
| | | import java.io.FileInputStream; |
| | | import java.io.IOException; |
| | | import java.io.OutputStream; |
| | | import java.net.URLEncoder; |
| | | import java.time.LocalDate; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶åæ´ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-11 11:04:01 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class ManageDocumentAlterServiceImpl extends ServiceImpl<ManageDocumentAlterMapper, ManageDocumentAlter> implements ManageDocumentAlterService { |
| | | |
| | | @Resource |
| | | private ManageDocumentAlterMapper manageDocumentAlterMapper; |
| | | |
| | | @Resource |
| | | private ManageRecordCheckMapper manageRecordCheckMapper; |
| | | |
| | | @Value("${wordUrl}") |
| | | private String wordUrl; |
| | | |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | |
| | | @Resource |
| | | private ManageDocumentListMapper manageDocumentListMapper; |
| | | |
| | | @Resource |
| | | private ManageDocumentCancelMapper manageDocumentCancelMapper; |
| | | |
| | | @Resource |
| | | private ManageRecordAuditMapper manageRecordAuditMapper; |
| | | |
| | | |
| | | @Override |
| | | public IPage<ManageDocumentAlter> pageManageDocumentAlter(Page page, ManageDocumentAlter manageDocumentAlter) { |
| | | return manageDocumentAlterMapper.pageManageDocumentAlter(page, QueryWrappers.queryWrappers(manageDocumentAlter)); |
| | | } |
| | | |
| | | @Override |
| | | public ManageDocumentAlter getManageDocumentAlter(Integer id) { |
| | | ManageDocumentAlter manageDocumentAlter = manageDocumentAlterMapper.getManageDocumentAlter(id); |
| | | String limsName = userMapper.selectUserDepartmentLimsName(manageDocumentAlter.getCreateUser()); |
| | | manageDocumentAlter.setCreateUserDepartLims(limsName); |
| | | return manageDocumentAlter; |
| | | } |
| | | |
| | | @Override |
| | | public int addManageDocumentAlter(ManageDocumentAlter manageDocumentAlter) { |
| | | /*æ°å¢8.4çæä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½*/ |
| | | ManageRecordAudit manageRecordAudit = new ManageRecordAudit(); |
| | | manageRecordAudit.setDocumentCode(manageDocumentAlter.getAlterBeforeCode()); |
| | | manageRecordAudit.setDocumentName(manageDocumentAlter.getAlterBeforeName()); |
| | | manageRecordAudit.setBeforeVersion(manageDocumentAlter.getAlterBeforeVersion()); |
| | | manageRecordAudit.setAfterVersion(manageDocumentAlter.getAlterAfterVersion()); |
| | | manageRecordAudit.setReason(manageDocumentAlter.getAlterNote()); |
| | | manageRecordAudit.setAlterUser(SecurityUtils.getUserId().intValue()); |
| | | manageRecordAudit.setMethod("修订"); |
| | | if (ObjectUtils.isNotEmpty(manageDocumentAlter.getFile())) { |
| | | String urlString; |
| | | String pathName; |
| | | String path; |
| | | MultipartFile file = manageDocumentAlter.getFile(); |
| | | //ä¸ä¼ æ°æä»¶ |
| | | path = wordUrl; |
| | | try { |
| | | File realpath = new File(path); |
| | | if (!realpath.exists()) { |
| | | realpath.mkdirs(); |
| | | } |
| | | pathName = UUID.randomUUID() + "_" + file.getOriginalFilename(); |
| | | urlString = realpath + "/" + pathName; |
| | | file.transferTo(new File(urlString)); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | System.err.println("éä»¶ä¸ä¼ é误"); |
| | | return 0; |
| | | } |
| | | manageDocumentAlter.setAlterAfterUrl(pathName); |
| | | manageRecordAudit.setAfterUrl(pathName); |
| | | } |
| | | manageRecordAuditMapper.insert(manageRecordAudit); |
| | | return manageDocumentAlterMapper.insert(manageDocumentAlter); |
| | | } |
| | | |
| | | @Override |
| | | public int doManageDocumentAlter(ManageDocumentAlter manageDocumentAlter) { |
| | | ManageDocumentAlter manageDocumentAlter1= manageDocumentAlterMapper.selectById(manageDocumentAlter.getId()); |
| | | if (ObjectUtils.isNotEmpty(manageDocumentAlter.getFile())) { |
| | | if (ObjectUtils.isNotEmpty(manageDocumentAlter1.getAlterAfterUrl())) { |
| | | // å 餿§æä»¶ |
| | | File oldFile = new File(wordUrl + "/" + manageDocumentAlter1.getAlterAfterUrl()); |
| | | oldFile.delete(); |
| | | } |
| | | //ä¸ä¼ æ°æä»¶ |
| | | String urlString; |
| | | String pathName; |
| | | String path; |
| | | MultipartFile file = manageDocumentAlter.getFile(); |
| | | path = wordUrl; |
| | | try { |
| | | File realpath = new File(path); |
| | | if (!realpath.exists()) { |
| | | realpath.mkdirs(); |
| | | } |
| | | pathName = UUID.randomUUID() + "_" + file.getOriginalFilename(); |
| | | urlString = realpath + "/" + pathName; |
| | | file.transferTo(new File(urlString)); |
| | | manageDocumentAlter.setAlterAfterUrl(pathName); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | System.err.println("éä»¶ä¸ä¼ é误"); |
| | | return 0; |
| | | } |
| | | } |
| | | return manageDocumentAlterMapper.updateById(manageDocumentAlter); |
| | | } |
| | | |
| | | @Override |
| | | public int checkManageDocumentAlter(ManageDocumentAlter manageDocumentAlter) { |
| | | ManageDocumentAlter oldManageDocumentAlter = manageDocumentAlterMapper.selectById(manageDocumentAlter.getId()); |
| | | if (manageDocumentAlter.getState().equals("éè¿")) { |
| | | /*å°æä»¶çç« */ |
| | | // å 餿§æä»¶ |
| | | File oldFile = new File(wordUrl + "/" + oldManageDocumentAlter.getAlterAfterUrl()); |
| | | oldFile.delete(); |
| | | //ä¸ä¼ æ°æä»¶ |
| | | String urlString; |
| | | String pathName; |
| | | String path; |
| | | MultipartFile file = manageDocumentAlter.getFile(); |
| | | path = wordUrl; |
| | | try { |
| | | File realpath = new File(path); |
| | | if (!realpath.exists()) { |
| | | realpath.mkdirs(); |
| | | } |
| | | pathName = UUID.randomUUID() + "_" + file.getOriginalFilename(); |
| | | urlString = realpath + "/" + pathName; |
| | | file.transferTo(new File(urlString)); |
| | | manageDocumentAlter.setAlterAfterUrl(pathName); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | System.err.println("éä»¶ä¸ä¼ é误"); |
| | | return 0; |
| | | } |
| | | /*å
¶ä½ç¸å
³å¤ç*/ |
| | | if (oldManageDocumentAlter.getMethod().equals("ä½åº")){ |
| | | //æ°å¢å°ä½åºç³è¯·éé¢ |
| | | ManageDocumentCancel manageDocumentCancel = new ManageDocumentCancel(); |
| | | manageDocumentCancel.setDocumentCode(oldManageDocumentAlter.getAlterBeforeCode()); |
| | | manageDocumentCancel.setName(oldManageDocumentAlter.getAlterBeforeName()); |
| | | manageDocumentCancel.setVersion(oldManageDocumentAlter.getAlterBeforeVersion()); |
| | | manageDocumentCancel.setCancelNote("æä»¶åæ´,åæ´çæä»¶ç¼å·æ¯"+oldManageDocumentAlter.getAlterAfterCode()); |
| | | manageDocumentCancelMapper.insert(manageDocumentCancel); |
| | | //å 餿件æ¸
å |
| | | manageDocumentListMapper.delete(Wrappers.<ManageDocumentList>lambdaQuery() |
| | | .eq(ManageDocumentList::getDocumentCode,oldManageDocumentAlter.getAlterBeforeCode())); |
| | | //æ°å¢æä»¶æ¸
å |
| | | ManageDocumentList manageDocumentList = new ManageDocumentList(); |
| | | manageDocumentList.setDocumentCode(oldManageDocumentAlter.getAlterAfterCode()); |
| | | manageDocumentList.setName(oldManageDocumentAlter.getAlterAfterName()); |
| | | manageDocumentList.setVersion(oldManageDocumentAlter.getAlterAfterVersion()); |
| | | manageDocumentList.setState("ææ"); |
| | | manageDocumentList.setEffectiveDate(LocalDate.now()); |
| | | manageDocumentList.setUrl(pathName); |
| | | manageDocumentListMapper.insert(manageDocumentList); |
| | | /*æ°å¢8.4çæä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½*/ |
| | | ManageRecordAudit manageRecordAudit = new ManageRecordAudit(); |
| | | manageRecordAudit.setDocumentCode(manageDocumentCancel.getDocumentCode()); |
| | | manageRecordAudit.setDocumentName(manageDocumentCancel.getName()); |
| | | manageRecordAudit.setAlterThing("ä½åº"); |
| | | manageRecordAudit.setMethod("ä½åº"); |
| | | manageRecordAuditMapper.insert(manageRecordAudit); |
| | | }else { |
| | | //妿æ¯åæ¡£ä¸å¯ç¨,é£å°±å°æä»¶æ¸
åçç¶ææ¹ä¸ºæ æ |
| | | manageDocumentListMapper.update(null,Wrappers.<ManageDocumentList>lambdaUpdate() |
| | | .eq(ManageDocumentList::getDocumentCode,oldManageDocumentAlter.getAlterBeforeCode()) |
| | | .set(ManageDocumentList::getState,"æ æ")); |
| | | } |
| | | } |
| | | /*æ°å¢8.4çæä»¶å®¡æ¹è®°å½*/ |
| | | ManageRecordCheck manageRecordCheck = new ManageRecordCheck(); |
| | | manageRecordCheck.setDocumentCode(oldManageDocumentAlter.getAlterAfterCode()); |
| | | manageRecordCheck.setDocumentName(oldManageDocumentAlter.getAlterAfterName()); |
| | | manageRecordCheck.setDocumentVersion(oldManageDocumentAlter.getAlterAfterVersion()); |
| | | manageRecordCheck.setWriteUser(oldManageDocumentAlter.getCreateUser()); |
| | | manageRecordCheck.setCheckUser(oldManageDocumentAlter.getCheckUser()); |
| | | manageRecordCheck.setCheckState(manageDocumentAlter.getState()); |
| | | manageRecordCheck.setRemark(manageDocumentAlter.getAlterNote()); |
| | | manageRecordCheckMapper.insert(manageRecordCheck); |
| | | return manageDocumentAlterMapper.updateById(manageDocumentAlter); |
| | | } |
| | | |
| | | @Override |
| | | public void checkManageDocumentAlterPdf(Long id, HttpServletResponse response) throws Exception { |
| | | ManageDocumentAlter manageDocumentAlter = manageDocumentAlterMapper.selectById(id); |
| | | File file = new File(wordUrl + "/" + manageDocumentAlter.getAlterAfterUrl()); |
| | | FileInputStream fileInputStream = new FileInputStream(file); |
| | | response.setContentType("application/pdf"); |
| | | response.setCharacterEncoding("UTF-8"); |
| | | response.setHeader("Content-disposition", "inline;filename=" + file.getName()); |
| | | response.setContentLength((int)file.length()); |
| | | OutputStream os = response.getOutputStream(); |
| | | // å°æä»¶å
容åå
¥è¾åºæµ |
| | | byte[] buffer = new byte[4096]; |
| | | int bytesRead; |
| | | while ((bytesRead = fileInputStream.read(buffer)) != -1) { |
| | | os.write(buffer, 0, bytesRead); |
| | | } |
| | | os.flush(); |
| | | os.close(); |
| | | } |
| | | |
| | | @Override |
| | | public void exportManageDocumentAlter(ManageDocumentAlter manageDocumentAlter, HttpServletResponse response) throws Exception { |
| | | List<ManageDocumentAlter> data = manageDocumentAlterMapper.pageManageDocumentAlter(new Page(-1, -1), QueryWrappers.queryWrappers(manageDocumentAlter)).getRecords(); |
| | | response.setContentType("application/vnd.ms-excel"); |
| | | response.setCharacterEncoding("UTF-8"); |
| | | String fileName = URLEncoder.encode("æä»¶åæ´å表导åº", "UTF-8"); |
| | | response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx"); |
| | | try { |
| | | // æ°å»ºExcelWriter |
| | | ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream()).registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()).build(); |
| | | WriteSheet mainSheet = EasyExcel.writerSheet(0, "æä»¶åæ´å表导åº").head(ManageDocumentAlter.class).build(); |
| | | excelWriter.write(data, mainSheet); |
| | | // å
³éæµ |
| | | excelWriter.finish(); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public int delManageDocumentAlter(Integer id) { |
| | | ManageDocumentAlter manageDocumentAlter = manageDocumentAlterMapper.selectById(id); |
| | | /*å é¤8.4çæä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½*/ |
| | | manageRecordAuditMapper.delete(Wrappers.<ManageRecordAudit>lambdaQuery() |
| | | .eq(ManageRecordAudit::getDocumentCode,manageDocumentAlter.getAlterBeforeCode()) |
| | | .eq(ManageRecordAudit::getDocumentName,manageDocumentAlter.getAlterBeforeName()) |
| | | .eq(ManageRecordAudit::getBeforeVersion,manageDocumentAlter.getAlterBeforeVersion()) |
| | | .eq(ManageRecordAudit::getAfterVersion,manageDocumentAlter.getAlterAfterVersion()) |
| | | .eq(ManageRecordAudit::getReason,manageDocumentAlter.getAlterNote()) |
| | | .eq(ManageRecordAudit::getAlterUser,manageDocumentAlter.getCreateUser()) |
| | | .eq(ManageRecordAudit::getMethod,"修订")); |
| | | return manageDocumentAlterMapper.deleteById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.core.toolkit.Wrappers; |
| | | 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.system.mapper.UserMapper; |
| | | import com.ruoyi.manage.mapper.ManageDocumentCancelMapper; |
| | | import com.ruoyi.manage.mapper.ManageDocumentListMapper; |
| | | import com.ruoyi.manage.mapper.ManageRecordAuditMapper; |
| | | import com.ruoyi.manage.mapper.ManageRecordCheckMapper; |
| | | import com.ruoyi.manage.pojo.ManageDocumentCancel; |
| | | import com.ruoyi.manage.pojo.ManageDocumentList; |
| | | import com.ruoyi.manage.pojo.ManageRecordAudit; |
| | | import com.ruoyi.manage.pojo.ManageRecordCheck; |
| | | import com.ruoyi.manage.service.ManageDocumentCancelService; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.net.URLEncoder; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶ä½åº æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 02:37:35 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class ManageDocumentCancelServiceImpl extends ServiceImpl<ManageDocumentCancelMapper, ManageDocumentCancel> implements ManageDocumentCancelService { |
| | | |
| | | @Resource |
| | | private ManageDocumentCancelMapper manageDocumentCancelMapper; |
| | | |
| | | @Resource |
| | | private ManageRecordCheckMapper manageRecordCheckMapper; |
| | | |
| | | @Resource |
| | | private ManageRecordAuditMapper manageRecordAuditMapper; |
| | | |
| | | @Resource |
| | | private ManageDocumentListMapper manageDocumentListMapper; |
| | | |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | |
| | | @Override |
| | | public IPage<ManageDocumentCancel> pageManageDocumentCancel(Page page, ManageDocumentCancel manageDocumentCancel) { |
| | | return manageDocumentCancelMapper.pageManageDocumentCancel(page, QueryWrappers.queryWrappers(manageDocumentCancel)); |
| | | } |
| | | |
| | | @Override |
| | | public int addManageDocumentCancel(ManageDocumentCancel manageDocumentCancel) { |
| | | manageDocumentCancel.setState("å¾
å®¡æ ¸"); |
| | | /*æ°å¢8.4çæä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½*/ |
| | | ManageRecordAudit manageRecordAudit = new ManageRecordAudit(); |
| | | manageRecordAudit.setDocumentCode(manageDocumentCancel.getDocumentCode()); |
| | | manageRecordAudit.setDocumentName(manageDocumentCancel.getName()); |
| | | manageRecordAudit.setAlterThing("ä½åº"); |
| | | manageRecordAudit.setMethod("ä½åº"); |
| | | manageRecordAuditMapper.insert(manageRecordAudit); |
| | | return manageDocumentCancelMapper.insert(manageDocumentCancel); |
| | | } |
| | | |
| | | @Override |
| | | public int checkManageDocumentCancel(Integer id, String state) { |
| | | ManageDocumentCancel manageDocumentCancel = manageDocumentCancelMapper.selectById(id); |
| | | if (state.equals("éè¿")){ |
| | | //å 餿件æ¸
åå¯¹åºæ°æ® |
| | | manageDocumentListMapper.delete(Wrappers.<ManageDocumentList>lambdaQuery().eq(ManageDocumentList::getDocumentCode,manageDocumentCancel.getDocumentCode())); |
| | | } |
| | | manageDocumentCancel.setState(state); |
| | | /*æ°å¢8.4çæä»¶å®¡æ¹è®°å½*/ |
| | | ManageRecordCheck manageRecordCheck = new ManageRecordCheck(); |
| | | manageRecordCheck.setDocumentCode(manageDocumentCancel.getDocumentCode()); |
| | | manageRecordCheck.setDocumentName(manageDocumentCancel.getName()); |
| | | manageRecordCheck.setDocumentVersion(manageDocumentCancel.getVersion()); |
| | | manageRecordCheck.setWriteUser(manageDocumentCancel.getCreateUser()); |
| | | manageRecordCheck.setCheckUser(manageDocumentCancel.getCheckUser()); |
| | | manageRecordCheck.setCheckState(manageDocumentCancel.getState()); |
| | | manageRecordCheck.setRemark(manageDocumentCancel.getCancelNote()); |
| | | manageRecordCheckMapper.insert(manageRecordCheck); |
| | | return manageDocumentCancelMapper.updateById(manageDocumentCancel); |
| | | } |
| | | |
| | | @Override |
| | | public ManageDocumentCancel getManageDocumentCancel(Integer id) { |
| | | ManageDocumentCancel manageDocumentCancel = manageDocumentCancelMapper.getManageDocumentCancel(id); |
| | | String limsName = userMapper.selectUserDepartmentLimsName(manageDocumentCancel.getCreateUser()); |
| | | manageDocumentCancel.setCreateUserDepartLims(limsName); |
| | | return manageDocumentCancel; |
| | | } |
| | | |
| | | @Override |
| | | public void exportManageDocumentCancel(ManageDocumentCancel manageDocumentCancel, HttpServletResponse response) throws Exception{ |
| | | List<ManageDocumentCancel> data = manageDocumentCancelMapper.pageManageDocumentCancel(new Page(-1, -1), QueryWrappers.queryWrappers(manageDocumentCancel)).getRecords(); |
| | | response.setContentType("application/vnd.ms-excel"); |
| | | response.setCharacterEncoding("UTF-8"); |
| | | String fileName = URLEncoder.encode("æä»¶ä½åºå表导åº", "UTF-8"); |
| | | response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx"); |
| | | try { |
| | | // æ°å»ºExcelWriter |
| | | ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream()).registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()).build(); |
| | | WriteSheet mainSheet = EasyExcel.writerSheet(0, "æä»¶ä½åºå表导åº").head(ManageDocumentCancel.class).build(); |
| | | excelWriter.write(data, mainSheet); |
| | | // å
³éæµ |
| | | excelWriter.finish(); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public int delManageDocumentCancel(Integer id) { |
| | | ManageDocumentCancel manageDocumentCancel = manageDocumentCancelMapper.selectById(id); |
| | | /*å é¤8.4çæä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½*/ |
| | | manageRecordAuditMapper.delete(Wrappers.<ManageRecordAudit>lambdaQuery() |
| | | .eq(ManageRecordAudit::getDocumentCode,manageDocumentCancel.getDocumentCode()) |
| | | .eq(ManageRecordAudit::getDocumentName,manageDocumentCancel.getName()) |
| | | .eq(ManageRecordAudit::getMethod,"ä½åº")); |
| | | return manageDocumentCancelMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public int doManageDocumentCancel(ManageDocumentCancel manageDocumentCancel) { |
| | | return manageDocumentCancelMapper.updateById(manageDocumentCancel); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.service.impl; |
| | | |
| | | import cn.hutool.core.lang.UUID; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.manage.mapper.ManageDocumentControlledMapper; |
| | | import com.ruoyi.manage.mapper.ManageDocumentListMapper; |
| | | import com.ruoyi.manage.mapper.ManageRecordCheckMapper; |
| | | import com.ruoyi.manage.pojo.ManageDocumentControlled; |
| | | import com.ruoyi.manage.pojo.ManageDocumentList; |
| | | import com.ruoyi.manage.pojo.ManageRecordCheck; |
| | | import com.ruoyi.manage.service.ManageDocumentControlledService; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.File; |
| | | import java.io.FileInputStream; |
| | | import java.io.OutputStream; |
| | | import java.time.LocalDate; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶åæ§ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-08 02:54:44 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class ManageDocumentControlledServiceImpl extends ServiceImpl<ManageDocumentControlledMapper, ManageDocumentControlled> implements ManageDocumentControlledService { |
| | | |
| | | @Resource |
| | | private ManageDocumentControlledMapper manageDocumentControlledMapper; |
| | | |
| | | @Resource |
| | | private ManageDocumentListMapper manageDocumentListMapper; |
| | | |
| | | @Resource |
| | | private ManageRecordCheckMapper manageRecordCheckMapper; |
| | | |
| | | @Value("${wordUrl}") |
| | | private String wordUrl; |
| | | |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | |
| | | @Override |
| | | public IPage<ManageDocumentControlled> pageManageDocumentControlled(Page page, ManageDocumentControlled manageDocumentControlled) { |
| | | return manageDocumentControlledMapper.pageManageDocumentControlled(page, QueryWrappers.queryWrappers(manageDocumentControlled)); |
| | | } |
| | | |
| | | @Override |
| | | public int addManageDocumentControlled(ManageDocumentControlled manageDocumentControlled) { |
| | | manageDocumentControlled.setState("å¾
å®¡æ ¸"); |
| | | String urlString; |
| | | String pathName; |
| | | String path; |
| | | if (ObjectUtils.isNotEmpty(manageDocumentControlled.getFile())) { |
| | | MultipartFile file = manageDocumentControlled.getFile(); |
| | | //ä¸ä¼ æ°æä»¶ |
| | | path = wordUrl; |
| | | try { |
| | | File realpath = new File(path); |
| | | if (!realpath.exists()) { |
| | | realpath.mkdirs(); |
| | | } |
| | | pathName = UUID.randomUUID() + "_" + file.getOriginalFilename(); |
| | | urlString = realpath + "/" + pathName; |
| | | file.transferTo(new File(urlString)); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | System.err.println("éä»¶ä¸ä¼ é误"); |
| | | return 0; |
| | | } |
| | | manageDocumentControlled.setUrl(pathName); |
| | | } |
| | | return manageDocumentControlledMapper.insert(manageDocumentControlled); |
| | | } |
| | | |
| | | @Override |
| | | public int delManageDocumentControlled(Long id) { |
| | | ManageDocumentControlled manageDocumentControlled = manageDocumentControlledMapper.selectById(id); |
| | | if (ObjectUtils.isNotEmpty(manageDocumentControlled.getUrl())) { |
| | | // å 餿§æä»¶ |
| | | File oldFile = new File(wordUrl + "/" + manageDocumentControlled.getUrl()); |
| | | oldFile.delete(); |
| | | } |
| | | return manageDocumentControlledMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public ManageDocumentControlled getManageDocumentControlled(Long id) { |
| | | ManageDocumentControlled manageDocumentControlled = manageDocumentControlledMapper.getManageDocumentControlled(id); |
| | | //è·åé¨é¨ä¿¡æ¯ |
| | | String departmentLimsName = userMapper.selectUserDepartmentLimsName(manageDocumentControlled.getCreateUser()); |
| | | manageDocumentControlled.setCreateUserDepartLims(departmentLimsName); |
| | | return manageDocumentControlled; |
| | | } |
| | | |
| | | @Override |
| | | public int doManageDocumentControlled(ManageDocumentControlled manageDocumentControlled) { |
| | | ManageDocumentControlled manageDocumentControlled1 = manageDocumentControlledMapper.selectById(manageDocumentControlled.getId()); |
| | | if (ObjectUtils.isNotEmpty(manageDocumentControlled.getFile())) { |
| | | if (ObjectUtils.isNotEmpty(manageDocumentControlled1.getUrl())) { |
| | | // å 餿§æä»¶ |
| | | File oldFile = new File(wordUrl + "/" + manageDocumentControlled1.getUrl()); |
| | | oldFile.delete(); |
| | | } |
| | | //ä¸ä¼ æ°æä»¶ |
| | | String urlString; |
| | | String pathName; |
| | | String path; |
| | | MultipartFile file = manageDocumentControlled.getFile(); |
| | | path = wordUrl; |
| | | try { |
| | | File realpath = new File(path); |
| | | if (!realpath.exists()) { |
| | | realpath.mkdirs(); |
| | | } |
| | | pathName = UUID.randomUUID() + "_" + file.getOriginalFilename(); |
| | | urlString = realpath + "/" + pathName; |
| | | file.transferTo(new File(urlString)); |
| | | manageDocumentControlled.setUrl(pathName); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | System.err.println("éä»¶ä¸ä¼ é误"); |
| | | return 0; |
| | | } |
| | | } |
| | | return manageDocumentControlledMapper.updateById(manageDocumentControlled); |
| | | } |
| | | |
| | | @Override |
| | | public int checkManageDocumentControlled(ManageDocumentControlled manageDocumentControlled) { |
| | | ManageDocumentControlled documentControlled = manageDocumentControlledMapper.selectById(manageDocumentControlled.getId()); |
| | | if (manageDocumentControlled.getState().equals("éè¿")) { |
| | | // å 餿§æä»¶ |
| | | File oldFile = new File(wordUrl + "/" + documentControlled.getUrl()); |
| | | oldFile.delete(); |
| | | //ä¸ä¼ æ°æä»¶ |
| | | String urlString; |
| | | String pathName; |
| | | String path; |
| | | MultipartFile file = manageDocumentControlled.getFile(); |
| | | path = wordUrl; |
| | | try { |
| | | File realpath = new File(path); |
| | | if (!realpath.exists()) { |
| | | realpath.mkdirs(); |
| | | } |
| | | pathName = UUID.randomUUID() + "_" + file.getOriginalFilename(); |
| | | urlString = realpath + "/" + pathName; |
| | | file.transferTo(new File(urlString)); |
| | | manageDocumentControlled.setUrl(pathName); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | System.err.println("éä»¶ä¸ä¼ é误"); |
| | | return 0; |
| | | } |
| | | //å°æä»¶åæ§å·²ç¥æä»¶æ¸
å |
| | | ManageDocumentList manageDocumentList = new ManageDocumentList(); |
| | | manageDocumentList.setDocumentCode(documentControlled.getDocumentCode()); |
| | | manageDocumentList.setType(documentControlled.getType()); |
| | | manageDocumentList.setName(documentControlled.getName()); |
| | | manageDocumentList.setVersion(documentControlled.getVersion()); |
| | | manageDocumentList.setWriter(documentControlled.getWriter()); |
| | | manageDocumentList.setEffectiveDate(LocalDate.now()); |
| | | manageDocumentList.setState("ææ"); |
| | | manageDocumentList.setUrl(manageDocumentControlled.getUrl()); |
| | | manageDocumentListMapper.insert(manageDocumentList); |
| | | } |
| | | /*æ°å¢8.4çæä»¶å®¡æ¹è®°å½*/ |
| | | ManageRecordCheck manageRecordCheck = new ManageRecordCheck(); |
| | | manageRecordCheck.setDocumentCode(documentControlled.getDocumentCode()); |
| | | manageRecordCheck.setDocumentName(documentControlled.getName()); |
| | | manageRecordCheck.setDocumentVersion(documentControlled.getVersion()); |
| | | manageRecordCheck.setWriteUser(userMapper.selectOne(Wrappers.<User>lambdaQuery().eq(User::getName,documentControlled.getWriter())).getId()); |
| | | manageRecordCheck.setCheckUser(documentControlled.getDutyUser()); |
| | | manageRecordCheck.setCheckState(manageDocumentControlled.getState()); |
| | | manageRecordCheck.setRemark(documentControlled.getInstructions()); |
| | | manageRecordCheckMapper.insert(manageRecordCheck); |
| | | return manageDocumentControlledMapper.updateById(manageDocumentControlled); |
| | | } |
| | | |
| | | @Override |
| | | public void checkManageDocumentControlledPdf(Long id, HttpServletResponse response) throws Exception { |
| | | ManageDocumentControlled manageDocumentControlled = manageDocumentControlledMapper.selectById(id); |
| | | File file = new File(wordUrl + "/" + manageDocumentControlled.getUrl()); |
| | | FileInputStream fileInputStream = new FileInputStream(file); |
| | | response.setContentType("application/pdf"); |
| | | response.setCharacterEncoding("UTF-8"); |
| | | response.setHeader("Content-disposition", "inline;filename=" + file.getName()); |
| | | response.setContentLength((int)file.length()); |
| | | OutputStream os = response.getOutputStream(); |
| | | // å°æä»¶å
容åå
¥è¾åºæµ |
| | | byte[] buffer = new byte[4096]; |
| | | int bytesRead; |
| | | while ((bytesRead = fileInputStream.read(buffer)) != -1) { |
| | | os.write(buffer, 0, bytesRead); |
| | | } |
| | | os.flush(); |
| | | os.close(); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.service.impl; |
| | | |
| | | import cn.hutool.core.lang.UUID; |
| | | 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.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.manage.dto.ManageDocumentIssueRecycleDto; |
| | | import com.ruoyi.manage.mapper.ManageDocumentIssueRecycleMapper; |
| | | import com.ruoyi.manage.mapper.ManageRecordCheckMapper; |
| | | import com.ruoyi.manage.mapper.ManageRecordIssueRecycleMapper; |
| | | import com.ruoyi.manage.pojo.ManageDocumentIssueRecycle; |
| | | import com.ruoyi.manage.pojo.ManageRecordCheck; |
| | | import com.ruoyi.manage.pojo.ManageRecordIssueRecycle; |
| | | import com.ruoyi.manage.service.ManageDocumentIssueRecycleService; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.net.URLEncoder; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶åæ¾åæ¶ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-09 09:18:24 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class ManageDocumentIssueRecycleServiceImpl extends ServiceImpl<ManageDocumentIssueRecycleMapper, ManageDocumentIssueRecycle> implements ManageDocumentIssueRecycleService { |
| | | |
| | | @Resource |
| | | private ManageDocumentIssueRecycleMapper manageDocumentIssueRecycleMapper; |
| | | |
| | | @Value("${wordUrl}") |
| | | private String wordUrl; |
| | | |
| | | @Resource |
| | | private ManageRecordCheckMapper manageRecordCheckMapper; |
| | | |
| | | @Resource |
| | | private ManageRecordIssueRecycleMapper manageRecordIssueRecycleMapper; |
| | | |
| | | @Override |
| | | public IPage<ManageDocumentIssueRecycleDto> pageManageDocumentIssueRecycle(Page page, ManageDocumentIssueRecycleDto manageDocumentIssueRecycleDto) { |
| | | return manageDocumentIssueRecycleMapper.pageManageDocumentIssueRecycle(page, QueryWrappers.queryWrappers(manageDocumentIssueRecycleDto)); |
| | | } |
| | | |
| | | @Override |
| | | public ManageDocumentIssueRecycleDto getManageDocumentIssueRecycle(Long id) { |
| | | return manageDocumentIssueRecycleMapper.getManageDocumentIssueRecycle(id); |
| | | } |
| | | |
| | | @Override |
| | | public void exportManageDocumentIssueRecycle(ManageDocumentIssueRecycleDto manageDocumentIssueRecycleDto, HttpServletResponse response)throws Exception { |
| | | List<ManageDocumentIssueRecycleDto> data = manageDocumentIssueRecycleMapper.pageManageDocumentIssueRecycle(new Page(-1, -1), QueryWrappers.queryWrappers(manageDocumentIssueRecycleDto)).getRecords(); |
| | | response.setContentType("application/vnd.ms-excel"); |
| | | response.setCharacterEncoding("UTF-8"); |
| | | String fileName = URLEncoder.encode("æä»¶åæ¾åæ¶å¯¼åº", "UTF-8"); |
| | | response.setHeader("Content-disposition", "attachment;filename=" + fileName + ".xlsx"); |
| | | try { |
| | | // æ°å»ºExcelWriter |
| | | ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream()).registerWriteHandler(new LongestMatchColumnWidthStyleStrategy()).build(); |
| | | WriteSheet mainSheet = EasyExcel.writerSheet(0, "æä»¶åæ¾åæ¶å¯¼åº").head(ManageDocumentIssueRecycleDto.class).build(); |
| | | excelWriter.write(data, mainSheet); |
| | | // å
³éæµ |
| | | excelWriter.finish(); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException("导åºå¤±è´¥"); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public int checkManageDocumentIssueRecycle(Integer id, String documentState) { |
| | | ManageDocumentIssueRecycle manageDocumentIssueRecycle = manageDocumentIssueRecycleMapper.selectById(id); |
| | | manageDocumentIssueRecycle.setDocumentState(documentState); |
| | | /*æ°å¢8.4çæä»¶å®¡æ¹è®°å½*/ |
| | | ManageRecordCheck manageRecordCheck = new ManageRecordCheck(); |
| | | manageRecordCheck.setDocumentCode(manageDocumentIssueRecycle.getDocumentCode()); |
| | | manageRecordCheck.setDocumentName(manageDocumentIssueRecycle.getName()); |
| | | manageRecordCheck.setDocumentVersion(manageDocumentIssueRecycle.getVersion()); |
| | | manageRecordCheck.setCheckUser(manageDocumentIssueRecycle.getReceiveUser()); |
| | | manageRecordCheck.setCheckState(documentState); |
| | | manageRecordCheckMapper.insert(manageRecordCheck); |
| | | return manageDocumentIssueRecycleMapper.updateById(manageDocumentIssueRecycle); |
| | | } |
| | | |
| | | @Override |
| | | public int addManageDocumentIssueRecycle(ManageDocumentIssueRecycle manageDocumentIssueRecycle) { |
| | | manageDocumentIssueRecycle.setDocumentState("å¾
å®¡æ ¸"); |
| | | if (ObjectUtils.isNotEmpty(manageDocumentIssueRecycle.getFile())){ |
| | | String urlString; |
| | | String pathName; |
| | | String path; |
| | | MultipartFile file = manageDocumentIssueRecycle.getFile(); |
| | | //ä¸ä¼ æ°æä»¶ |
| | | path = wordUrl; |
| | | try { |
| | | File realpath = new File(path); |
| | | if (!realpath.exists()) { |
| | | realpath.mkdirs(); |
| | | } |
| | | pathName = UUID.randomUUID() + "_" + file.getOriginalFilename(); |
| | | urlString = realpath + "/" + pathName; |
| | | file.transferTo(new File(urlString)); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | System.err.println("éä»¶ä¸ä¼ é误"); |
| | | return 0; |
| | | } |
| | | manageDocumentIssueRecycle.setUrl(pathName); |
| | | } |
| | | /*æ°å¢8.3çåæ¾ä¸åæ¶è®°å½*/ |
| | | ManageRecordIssueRecycle manageRecordIssueRecycle = new ManageRecordIssueRecycle(); |
| | | manageRecordIssueRecycle.setDocumentCode(manageDocumentIssueRecycle.getDocumentCode()); |
| | | manageRecordIssueRecycle.setDocumentName(manageDocumentIssueRecycle.getName()); |
| | | manageRecordIssueRecycle.setDocumentVersion(manageDocumentIssueRecycle.getVersion()); |
| | | manageRecordIssueRecycle.setReceiveUser(manageDocumentIssueRecycle.getIssueUser()); |
| | | manageRecordIssueRecycle.setReceiveDate(manageDocumentIssueRecycle.getIssueDate()); |
| | | manageRecordIssueRecycleMapper.insert(manageRecordIssueRecycle); |
| | | return manageDocumentIssueRecycleMapper.insert(manageDocumentIssueRecycle); |
| | | } |
| | | |
| | | @Override |
| | | public int doManageDocumentIssueRecycle(ManageDocumentIssueRecycle manageDocumentIssueRecycle) { |
| | | ManageDocumentIssueRecycle documentIssueRecycle = manageDocumentIssueRecycleMapper.selectById(manageDocumentIssueRecycle.getId()); |
| | | //å¤è¯»æ¯å¦æ¯åæ¶ |
| | | if (ObjectUtils.isNotEmpty(manageDocumentIssueRecycle.getRecycleUser())){ |
| | | /*æ°å¢8.3çåæ¾ä¸åæ¶è®°å½*/ |
| | | ManageRecordIssueRecycle manageRecordIssueRecycle = manageRecordIssueRecycleMapper.selectOne(Wrappers.<ManageRecordIssueRecycle>lambdaQuery() |
| | | .eq(ManageRecordIssueRecycle::getDocumentCode, documentIssueRecycle.getDocumentCode()) |
| | | .eq(ManageRecordIssueRecycle::getDocumentName, documentIssueRecycle.getName()) |
| | | .eq(ManageRecordIssueRecycle::getDocumentVersion, documentIssueRecycle.getVersion()) |
| | | .eq(ManageRecordIssueRecycle::getReceiveUser, documentIssueRecycle.getIssueUser()) |
| | | .eq(ManageRecordIssueRecycle::getReceiveDate, documentIssueRecycle.getIssueDate())); |
| | | manageRecordIssueRecycle.setSignedUser(manageDocumentIssueRecycle.getRecycleUser()); |
| | | manageRecordIssueRecycle.setSignedDate(manageDocumentIssueRecycle.getRecycleDate()); |
| | | manageRecordIssueRecycleMapper.updateById(manageRecordIssueRecycle); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(manageDocumentIssueRecycle.getFile())) { |
| | | if (ObjectUtils.isNotEmpty(documentIssueRecycle.getUrl())) { |
| | | // å 餿§æä»¶ |
| | | File oldFile = new File(wordUrl + "/" + documentIssueRecycle.getUrl()); |
| | | oldFile.delete(); |
| | | } |
| | | //ä¸ä¼ æ°æä»¶ |
| | | String urlString; |
| | | String pathName; |
| | | String path; |
| | | MultipartFile file = manageDocumentIssueRecycle.getFile(); |
| | | path = wordUrl; |
| | | try { |
| | | File realpath = new File(path); |
| | | if (!realpath.exists()) { |
| | | realpath.mkdirs(); |
| | | } |
| | | pathName = UUID.randomUUID() + "_" + file.getOriginalFilename(); |
| | | urlString = realpath + "/" + pathName; |
| | | file.transferTo(new File(urlString)); |
| | | manageDocumentIssueRecycle.setUrl(pathName); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | System.err.println("éä»¶ä¸ä¼ é误"); |
| | | return 0; |
| | | } |
| | | } |
| | | return manageDocumentIssueRecycleMapper.updateById(manageDocumentIssueRecycle); |
| | | } |
| | | |
| | | @Override |
| | | public int delManageDocumentIssueRecycle(Long id) { |
| | | ManageDocumentIssueRecycle documentIssueRecycle = manageDocumentIssueRecycleMapper.selectById(id); |
| | | manageRecordIssueRecycleMapper.delete(Wrappers.<ManageRecordIssueRecycle>lambdaQuery() |
| | | .eq(ManageRecordIssueRecycle::getDocumentCode, documentIssueRecycle.getDocumentCode()) |
| | | .eq(ManageRecordIssueRecycle::getDocumentName, documentIssueRecycle.getName()) |
| | | .eq(ManageRecordIssueRecycle::getDocumentVersion, documentIssueRecycle.getVersion()) |
| | | .eq(ManageRecordIssueRecycle::getReceiveUser, documentIssueRecycle.getIssueUser()) |
| | | .eq(ManageRecordIssueRecycle::getReceiveDate, documentIssueRecycle.getIssueDate())); |
| | | return manageDocumentIssueRecycleMapper.deleteById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.service.impl; |
| | | |
| | | import cn.hutool.core.collection.CollectionUtil; |
| | | import cn.hutool.core.lang.UUID; |
| | | import com.aspose.words.License; |
| | | import com.aspose.words.SaveFormat; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | 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.manage.mapper.ManageDocumentListMapper; |
| | | import com.ruoyi.manage.pojo.ManageDocumentList; |
| | | import com.ruoyi.manage.service.ManageDocumentListService; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.core.io.ClassPathResource; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.File; |
| | | import java.io.FileOutputStream; |
| | | import java.io.IOException; |
| | | import java.io.InputStream; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶æ¸
å |
| | | * æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-08 11:08:11 |
| | | */ |
| | | @Service |
| | | public class ManageDocumentListServiceImpl extends ServiceImpl<ManageDocumentListMapper, ManageDocumentList> implements ManageDocumentListService { |
| | | |
| | | @Resource |
| | | private ManageDocumentListMapper manageDocumentListMapper; |
| | | |
| | | @Value("${wordUrl}") |
| | | private String wordUrl; |
| | | |
| | | @Override |
| | | public IPage<ManageDocumentList> pageManageDocumentList(Page page, ManageDocumentList manageDocumentList) { |
| | | return manageDocumentListMapper.pageManageDocumentList(page, QueryWrappers.queryWrappers(manageDocumentList)); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public int uploadFile(Integer id, MultipartFile file) { |
| | | String urlString; |
| | | String pathName; |
| | | String path; |
| | | ManageDocumentList manageDocumentList = manageDocumentListMapper.selectById(id); |
| | | if (ObjectUtils.isNotEmpty(manageDocumentList.getUrl())){ |
| | | // å 餿§æä»¶ |
| | | File oldFile = new File(wordUrl + "/" + manageDocumentList.getUrl()); |
| | | oldFile.delete(); |
| | | } |
| | | //ä¸ä¼ æ°æä»¶ |
| | | path = wordUrl; |
| | | try { |
| | | File realpath = new File(path); |
| | | if (!realpath.exists()) { |
| | | realpath.mkdirs(); |
| | | } |
| | | pathName = UUID.randomUUID() + "_" + file.getOriginalFilename(); |
| | | urlString = realpath + "/" + pathName; |
| | | file.transferTo(new File(urlString)); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | System.err.println("éä»¶ä¸ä¼ é误"); |
| | | return 0; |
| | | } |
| | | manageDocumentList.setUrl(pathName); |
| | | return manageDocumentListMapper.updateById(manageDocumentList); |
| | | } |
| | | |
| | | @Override |
| | | public void importExcel(List<ManageDocumentList> list) { |
| | | if (CollectionUtil.isEmpty(list)) { |
| | | return; |
| | | } |
| | | list = list.stream().filter(manageDocumentList -> ObjectUtils.isNotEmpty(manageDocumentList.getName())).collect(Collectors.toList()); |
| | | saveBatch(list); |
| | | } |
| | | |
| | | public String wordToPdf(String wordPath, String pdfPath) { |
| | | FileOutputStream os = null; |
| | | try { |
| | | InputStream is = new ClassPathResource("/lib/license.xml").getInputStream(); |
| | | License license = new License(); |
| | | license.setLicense(is); |
| | | if (!license.getIsLicensed()) { |
| | | System.out.println("Licenseéªè¯ä¸éè¿..."); |
| | | return null; |
| | | } |
| | | //çæä¸ä¸ªç©ºçPDFæä»¶ |
| | | File file = new File(pdfPath.replace(".pdf", ".pdf")); |
| | | os = new FileOutputStream(file); |
| | | //è¦è½¬æ¢çwordæä»¶ |
| | | com.aspose.words.Document doc = new com.aspose.words.Document(wordPath); |
| | | doc.save(os, SaveFormat.PDF); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } finally { |
| | | if (os != null) { |
| | | try { |
| | | os.close(); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.manage.mapper.ManageMeetingMapper; |
| | | import com.ruoyi.manage.mapper.ManageMeetingParticipantsMapper; |
| | | import com.ruoyi.manage.pojo.ManageMeeting; |
| | | import com.ruoyi.manage.pojo.ManageMeetingParticipants; |
| | | import com.ruoyi.manage.service.ManageMeetingParticipantsService; |
| | | import com.ruoyi.manage.vo.MeetingParticipantsDetailsVo; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-11 09:34:27 |
| | | */ |
| | | @Service |
| | | public class ManageMeetingParticipantsServiceImpl extends ServiceImpl<ManageMeetingParticipantsMapper, ManageMeetingParticipants> implements ManageMeetingParticipantsService { |
| | | |
| | | |
| | | @Resource |
| | | private ManageMeetingMapper manageMeetingMapper; |
| | | |
| | | @Override |
| | | public MeetingParticipantsDetailsVo getParticipants(Integer id) { |
| | | ManageMeeting manageMeeting = manageMeetingMapper.selectById(id); |
| | | QueryWrapper<ManageMeetingParticipants> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("meeting_id",id); |
| | | List<ManageMeetingParticipants> participantsList = this.baseMapper.selectList(queryWrapper); |
| | | MeetingParticipantsDetailsVo vo = new MeetingParticipantsDetailsVo(); |
| | | vo.setManageMeeting(manageMeeting); |
| | | vo.setParticipantsList(participantsList); |
| | | return vo; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.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.core.domain.entity.User; |
| | | import com.ruoyi.inspect.util.HackLoopTableRenderPolicy; |
| | | import com.ruoyi.manage.dto.ManageMeetingDto; |
| | | import com.ruoyi.manage.dto.ManageMeetingParticipantsDto; |
| | | import com.ruoyi.manage.mapper.ManageMeetingMapper; |
| | | import com.ruoyi.manage.mapper.ManageMeetingParticipantsMapper; |
| | | import com.ruoyi.manage.pojo.ManageMeeting; |
| | | import com.ruoyi.manage.pojo.ManageMeetingParticipants; |
| | | import com.ruoyi.manage.service.ManageMeetingService; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | 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.format.DateTimeFormatter; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * <p> |
| | | * æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-11 09:33:47 |
| | | */ |
| | | @Service |
| | | public class ManageMeetingServiceImpl extends ServiceImpl<ManageMeetingMapper, ManageMeeting> implements ManageMeetingService { |
| | | |
| | | |
| | | @Resource |
| | | private ManageMeetingParticipantsMapper manageMeetingParticipantsMapper; |
| | | |
| | | @Autowired |
| | | private UserMapper userMapper; |
| | | |
| | | @Override |
| | | public IPage<ManageMeetingDto> page(Page page, String startTime, String endTime, String place) { |
| | | IPage<ManageMeetingDto> iPage = this.baseMapper.page(page, startTime, endTime, place); |
| | | for (ManageMeetingDto record : iPage.getRecords()) { |
| | | List<ManageMeetingParticipants> manageMeetingParticipants = manageMeetingParticipantsMapper.selectList(Wrappers.<ManageMeetingParticipants>lambdaQuery().eq(ManageMeetingParticipants::getMeetingId, record.getId())); |
| | | String collect = manageMeetingParticipants.stream().map(manageMeetingParticipants1 -> { |
| | | return manageMeetingParticipants1.getParticipants() + ""; |
| | | }).collect(Collectors.joining(",")); |
| | | record.setParticipant(collect); |
| | | } |
| | | return iPage; |
| | | } |
| | | |
| | | @Override |
| | | public void addMeeting(ManageMeetingDto dto) { |
| | | this.baseMapper.insert(dto); |
| | | |
| | | String[] ids = dto.getParticipant().split(","); |
| | | List<ManageMeetingParticipants> list = new ArrayList<>(); |
| | | for (String id : ids) { |
| | | User user = userMapper.selectById(id); |
| | | ManageMeetingParticipants participants = new ManageMeetingParticipants(); |
| | | participants.setMeetingId(dto.getId()); |
| | | participants.setParticipants(Integer.parseInt(id)); |
| | | participants.setDepartment(userMapper.selectUserDepartmentLimsName(user.getId())); |
| | | list.add(participants); |
| | | } |
| | | list.forEach(v -> manageMeetingParticipantsMapper.insert(v)); |
| | | } |
| | | |
| | | @Override |
| | | public int modifyMeeting(ManageMeetingDto manageMeetingDto) { |
| | | this.baseMapper.updateById(manageMeetingDto); |
| | | manageMeetingParticipantsMapper.delete(Wrappers.<ManageMeetingParticipants>lambdaQuery().eq(ManageMeetingParticipants::getMeetingId, manageMeetingDto.getId())); |
| | | String[] ids = manageMeetingDto.getParticipant().split(","); |
| | | List<ManageMeetingParticipants> list = new ArrayList<>(); |
| | | for (String id : ids) { |
| | | User user = userMapper.selectById(id); |
| | | ManageMeetingParticipants participants = new ManageMeetingParticipants(); |
| | | participants.setMeetingId(manageMeetingDto.getId()); |
| | | participants.setParticipants(Integer.parseInt(id)); |
| | | participants.setDepartment(userMapper.selectUserDepartmentLimsName(user.getId())); |
| | | list.add(participants); |
| | | } |
| | | list.forEach(v -> manageMeetingParticipantsMapper.insert(v)); |
| | | return 0; |
| | | } |
| | | |
| | | @Override |
| | | public void exportMeeting(Integer id, HttpServletResponse response) { |
| | | ManageMeeting meeting = baseMapper.selectById(id); |
| | | // æ¥è¯¢åå 人å |
| | | List<ManageMeetingParticipants> manageMeetingParticipants = manageMeetingParticipantsMapper.selectList(Wrappers.<ManageMeetingParticipants>lambdaQuery().eq(ManageMeetingParticipants::getMeetingId, id)); |
| | | |
| | | List<ManageMeetingParticipants> list = manageMeetingParticipants.stream().map(manageMeetingParticipants1 -> { |
| | | manageMeetingParticipants1.setUserName(userMapper.selectById(manageMeetingParticipants1.getParticipants()).getName()); |
| | | manageMeetingParticipants1.setDepartment(userMapper.selectUserDepartmentLimsName(manageMeetingParticipants1.getParticipants())); |
| | | return manageMeetingParticipants1; |
| | | }).collect(Collectors.toList()); |
| | | |
| | | |
| | | // å建空对象 |
| | | List<ManageMeetingParticipantsDto> participants = new ArrayList<>(); |
| | | |
| | | // æ·»å åå 人å |
| | | for (int i = 0; i < list.size(); i++) { |
| | | // å¤æææ²¡æå°11è¡ |
| | | if (i % 2 == 0) { |
| | | ManageMeetingParticipantsDto manageMeetingParticipantsDto = new ManageMeetingParticipantsDto(); |
| | | manageMeetingParticipantsDto.setUserName1(list.get(i).getUserName()); |
| | | manageMeetingParticipantsDto.setDepartment1(list.get(i).getDepartment()); |
| | | participants.add(manageMeetingParticipantsDto); |
| | | } else { |
| | | participants.get((i-1)/2).setUserName2(list.get(i).getUserName()); |
| | | participants.get((i-1)/2).setDepartment2(list.get(i).getDepartment()); |
| | | } |
| | | } |
| | | |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/review-meet.docx"); |
| | | |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyå¹´MMæddæ¥"); |
| | | Configure configure = Configure.builder() |
| | | .bind("meetingDetails", new HackLoopTableRenderPolicy()) |
| | | .build(); |
| | | XWPFTemplate template = XWPFTemplate.compile(inputStream, configure).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("meeting", meeting); |
| | | put("meetingTime", meeting.getMeetingTime().format(formatter)); |
| | | put("meetingDetails", participants); |
| | | }}); |
| | | |
| | | 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.manage.service.impl; |
| | | |
| | | import cn.hutool.core.lang.UUID; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | 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.config.ConfigureBuilder; |
| | | import com.deepoove.poi.data.*; |
| | | import com.deepoove.poi.data.style.*; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.manage.mapper.ManageRecordAuditMapper; |
| | | import com.ruoyi.manage.pojo.ManageRecordAudit; |
| | | import com.ruoyi.manage.service.ManageRecordAuditService; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.apache.commons.io.IOUtils; |
| | | import org.apache.poi.openxml4j.util.ZipSecureFile; |
| | | import org.apache.poi.xwpf.usermodel.*; |
| | | import org.openxmlformats.schemas.wordprocessingml.x2006.main.STMerge; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.*; |
| | | import java.nio.file.Files; |
| | | import java.nio.file.Paths; |
| | | import java.time.LocalDate; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶ä¿®è®¢ç³è¯·å®¡æ¹è®°å½ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-14 10:29:18 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class ManageRecordAuditServiceImpl extends ServiceImpl<ManageRecordAuditMapper, ManageRecordAudit> implements ManageRecordAuditService { |
| | | |
| | | @Resource |
| | | private ManageRecordAuditMapper manageRecordAuditMapper; |
| | | |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | |
| | | @Value("${wordUrl}") |
| | | private String wordUrl; |
| | | |
| | | @Override |
| | | public IPage<ManageRecordAudit> pageManageRecordAudit(Page page, ManageRecordAudit manageRecordAudit) { |
| | | IPage<ManageRecordAudit> manageRecordAuditIPage = manageRecordAuditMapper.pageManageRecordAudit(page, QueryWrappers.queryWrappers(manageRecordAudit)); |
| | | for (ManageRecordAudit record : manageRecordAuditIPage.getRecords()) { |
| | | String limsName = userMapper.selectUserDepartmentLimsName(record.getCreateUser()); |
| | | record.setCreateUserDepart(limsName); |
| | | } |
| | | return manageRecordAuditIPage; |
| | | } |
| | | |
| | | @Override |
| | | public int addManageRecordAudit(ManageRecordAudit manageRecordAudit) { |
| | | if (ObjectUtils.isNotEmpty(manageRecordAudit.getFile())) { |
| | | String urlString; |
| | | String pathName; |
| | | String path; |
| | | MultipartFile file = manageRecordAudit.getFile(); |
| | | //ä¸ä¼ æ°æä»¶ |
| | | path = wordUrl; |
| | | try { |
| | | File realpath = new File(path); |
| | | if (!realpath.exists()) { |
| | | realpath.mkdirs(); |
| | | } |
| | | pathName = UUID.randomUUID() + "_" + file.getOriginalFilename(); |
| | | urlString = realpath + "/" + pathName; |
| | | file.transferTo(new File(urlString)); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | System.err.println("éä»¶ä¸ä¼ é误"); |
| | | return 0; |
| | | } |
| | | manageRecordAudit.setAfterUrl(pathName); |
| | | } |
| | | manageRecordAudit.setCreateTime(LocalDate.now()); |
| | | return manageRecordAuditMapper.insert(manageRecordAudit); |
| | | } |
| | | |
| | | @Override |
| | | public int doManageRecordAudit(ManageRecordAudit manageRecordAudit) { |
| | | ManageRecordAudit recordAudit= manageRecordAuditMapper.selectById(manageRecordAudit.getId()); |
| | | if (ObjectUtils.isNotEmpty(manageRecordAudit.getFile())) { |
| | | if (ObjectUtils.isNotEmpty(recordAudit.getAfterUrl())) { |
| | | // å 餿§æä»¶ |
| | | File oldFile = new File(wordUrl + "/" + recordAudit.getAfterUrl()); |
| | | oldFile.delete(); |
| | | } |
| | | //ä¸ä¼ æ°æä»¶ |
| | | String urlString; |
| | | String pathName; |
| | | String path; |
| | | MultipartFile file = manageRecordAudit.getFile(); |
| | | path = wordUrl; |
| | | try { |
| | | File realpath = new File(path); |
| | | if (!realpath.exists()) { |
| | | realpath.mkdirs(); |
| | | } |
| | | pathName = UUID.randomUUID() + "_" + file.getOriginalFilename(); |
| | | urlString = realpath + "/" + pathName; |
| | | file.transferTo(new File(urlString)); |
| | | manageRecordAudit.setAfterUrl(pathName); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | System.err.println("éä»¶ä¸ä¼ é误"); |
| | | return 0; |
| | | } |
| | | } |
| | | return manageRecordAuditMapper.updateById(manageRecordAudit); |
| | | } |
| | | |
| | | @Override |
| | | public int ratifyManageRecordAudit(Integer id) { |
| | | ManageRecordAudit recordAudit = manageRecordAuditMapper.selectById(id); |
| | | recordAudit.setRatifyUser(SecurityUtils.getUserId().intValue()); |
| | | return manageRecordAuditMapper.updateById(recordAudit); |
| | | } |
| | | |
| | | @Override |
| | | public String exportOutManageRecordAudit(ManageRecordAudit manageRecordAudit, HttpServletResponse response) { |
| | | List<ManageRecordAudit> manageRecordAuditList = manageRecordAuditMapper.pageManageRecordAudit(new Page(-1, -1), QueryWrappers.queryWrappers(manageRecordAudit)).getRecords(); |
| | | for (ManageRecordAudit record : manageRecordAuditList) { |
| | | String limsName = userMapper.selectUserDepartmentLimsName(record.getCreateUser()); |
| | | record.setCreateUserDepart(limsName); |
| | | } |
| | | //çææ£éªæ¥ååæ¾ç»è®°è¡¨ |
| | | String url; |
| | | try { |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/audit-deal.docx"); |
| | | File file = File.createTempFile("temp", ".tmp"); |
| | | OutputStream outputStream = new FileOutputStream(file); |
| | | IOUtils.copy(inputStream, outputStream); |
| | | url = file.getAbsolutePath(); |
| | | } catch (FileNotFoundException e) { |
| | | throw new ErrorException("æ¾ä¸å°æ¨¡æ¿æä»¶"); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | ConfigureBuilder builder = Configure.builder(); |
| | | builder.useSpringEL(true); |
| | | |
| | | List<Map<String, Object>> auditList = new ArrayList<>(); |
| | | Integer index = 1; |
| | | Integer index1 = 1; |
| | | for (int c = 0; c < manageRecordAuditList.size(); c++) { |
| | | //è¶
è¿15è¡æ¢é¡µ |
| | | if (c % 15 == 0) { |
| | | List<RowRenderData> rows = new ArrayList<>(); |
| | | //è¡¨æ ¼çè¡æ° |
| | | for (int i = 0; i < 17; i++) { |
| | | RowRenderData rowRenderData = new RowRenderData(); |
| | | RowStyle rowStyle = new RowStyle(); |
| | | rowStyle.setHeight(40); |
| | | rowRenderData.setRowStyle(rowStyle); |
| | | List<CellRenderData> cells = new ArrayList<>(); |
| | | //è¡¨æ ¼çåæ° |
| | | for (int j = 0; j < 11; j++) { |
| | | CellRenderData cellRenderData = new CellRenderData(); |
| | | CellStyle cellStyle = new CellStyle(); |
| | | cellStyle.setVertAlign(XWPFTableCell.XWPFVertAlign.CENTER); |
| | | cellRenderData.setCellStyle(cellStyle); |
| | | List<ParagraphRenderData> paragraphRenderDataList = new ArrayList<>(); |
| | | ParagraphRenderData paragraphRenderData = new ParagraphRenderData(); |
| | | ParagraphStyle paragraphStyle = new ParagraphStyle(); |
| | | paragraphStyle.setAlign(ParagraphAlignment.CENTER); |
| | | paragraphRenderData.setParagraphStyle(paragraphStyle); |
| | | List<RenderData> renderData = new ArrayList<>(); |
| | | TextRenderData textRenderData = new TextRenderData(); |
| | | Style style = new Style(); |
| | | style.setFontFamily("å®ä½"); |
| | | style.setColor("000000"); |
| | | textRenderData.setStyle(style); |
| | | if (i == 0) { |
| | | //第ä¸è¡ |
| | | if (j == 0) { |
| | | //第ä¸ååºå· |
| | | textRenderData.setText("åºå·@No.â1"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 1) { |
| | | //第äºå |
| | | textRenderData.setText("æä»¶ç¼å·@File numberâ2"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 2) { |
| | | //第ä¸å |
| | | textRenderData.setText("ç« èå·@Chapter numberâ3"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 3) { |
| | | //第åå |
| | | textRenderData.setText("页ç @Page numberâ4"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 4) { |
| | | //第äºå |
| | | textRenderData.setText("修订次æ°@Number of revisionsâ5"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 5 || j == 6) { |
| | | //第å
å |
| | | textRenderData.setText("çæ¬å· Version numberâ6"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 7) { |
| | | //第ä¸å |
| | | textRenderData.setText("修订å
容@Revision of contentsâ7"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 8) { |
| | | //第å
«å |
| | | textRenderData.setText("修订人@Revisedâ8"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 9 ) { |
| | | //第ä¹å |
| | | textRenderData.setText("æ¹å人@Approverâ9"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else { |
| | | //第åå |
| | | textRenderData.setText("æ¥æ@Dateâ10"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | else if (i == 1) { |
| | | //第ä¸è¡ |
| | | if (j == 0) { |
| | | //第ä¸ååºå· |
| | | textRenderData.setText("åºå·@No.â1"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 1) { |
| | | //第äºå |
| | | textRenderData.setText("æä»¶ç¼å·@File numberâ2"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 2) { |
| | | //第ä¸å |
| | | textRenderData.setText("ç« èå·@Chapter numberâ3"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 3) { |
| | | //第åå |
| | | textRenderData.setText("页ç @Page numberâ4"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 4) { |
| | | //第äºå |
| | | textRenderData.setText("修订次æ°@Number of revisionsâ5"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 5 ) { |
| | | //第å
å |
| | | textRenderData.setText("ä¿®æ¹å@Before modification"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 6) { |
| | | //第ä¸å |
| | | textRenderData.setText("ä¿®æ¹å@After modification"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } |
| | | else if (j == 7) { |
| | | //第ä¸å |
| | | textRenderData.setText("修订å
容@Revision of contentsâ7"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 8) { |
| | | //第å
«å |
| | | textRenderData.setText("修订人@Revisedâ8"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 9 ) { |
| | | //第ä¹å |
| | | textRenderData.setText("æ¹å人@Approverâ9"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else { |
| | | //第åå |
| | | textRenderData.setText("æ¥æ@Dateâ10"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | else { |
| | | //å
¶ä»è¡ |
| | | if (j == 0) { |
| | | //第ä¸å |
| | | try { |
| | | String insReportCode = manageRecordAuditList.get((i - 2) + (index1 - 1) * 15).getDocumentCode(); |
| | | textRenderData.setText(index + ""); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | index++; |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 1) { |
| | | try { |
| | | textRenderData.setText(manageRecordAuditList.get((i - 2) + (index1 - 1) * 15).getDocumentCode()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 2) { |
| | | try { |
| | | textRenderData.setText(manageRecordAuditList.get((i - 2) + (index1 - 1) * 15).getCapter()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 3) { |
| | | try { |
| | | textRenderData.setText(manageRecordAuditList.get((i - 2) + (index1 - 1) * 15).getPages()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 4) { |
| | | try { |
| | | textRenderData.setText(manageRecordAuditList.get((i - 2) + (index1 - 1) * 15).getNumber()+""); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 5) { |
| | | try { |
| | | textRenderData.setText(manageRecordAuditList.get((i - 2) + (index1 - 1) * 15).getBeforeVersion()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 6) { |
| | | try { |
| | | textRenderData.setText(manageRecordAuditList.get((i - 2) + (index1 - 1) * 15).getAfterVersion()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 7) { |
| | | try { |
| | | textRenderData.setText(manageRecordAuditList.get((i - 2) + (index1 - 1) * 15).getAlterThing()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 8) { |
| | | try { |
| | | textRenderData.setText(manageRecordAuditList.get((i - 2) + (index1 - 1) * 15).getAlterUserName()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | }else if (j == 9) { |
| | | try { |
| | | textRenderData.setText(manageRecordAuditList.get((i - 2) + (index1 - 1) * 15).getRatifyUserName()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } |
| | | else { |
| | | try { |
| | | textRenderData.setText(manageRecordAuditList.get((i - 2) + (index1 - 1) * 15).getDate()+""); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | } |
| | | rowRenderData.setCells(cells); |
| | | if (rowRenderData.getCells().size() != 0) { |
| | | rows.add(rowRenderData); |
| | | } |
| | | } |
| | | TableRenderData tableRenderData = new TableRenderData(); |
| | | tableRenderData.setRows(rows); |
| | | int countSize = tableRenderData.getRows().get(0).getCells().size(); |
| | | for (RowRenderData row : tableRenderData.getRows()) { |
| | | if (row.getCells().size() != countSize) { |
| | | throw new ErrorException("æ¯è¡åå
æ ¼ä¸ç¸ç"); |
| | | } |
| | | } |
| | | TableStyle tableStyle = new TableStyle(); |
| | | tableStyle.setWidth(XWPFTable.DEFAULT_PERCENTAGE_WIDTH); |
| | | tableStyle.setAlign(TableRowAlign.CENTER); |
| | | BorderStyle borderStyle = new BorderStyle(); |
| | | borderStyle.setColor("000000"); |
| | | borderStyle.setType(XWPFTable.XWPFBorderType.THICK); |
| | | borderStyle.setSize(14); |
| | | tableStyle.setLeftBorder(borderStyle); |
| | | tableStyle.setTopBorder(borderStyle); |
| | | tableStyle.setRightBorder(borderStyle); |
| | | tableStyle.setBottomBorder(borderStyle); |
| | | tableRenderData.setTableStyle(tableStyle); |
| | | Map<String, Object> table = new HashMap<>(); |
| | | table.put("audit", tableRenderData); |
| | | table.put("index1", index1); |
| | | auditList.add(table); |
| | | index1++; |
| | | } |
| | | } |
| | | Integer finalIndex = index1; |
| | | XWPFTemplate template = XWPFTemplate.compile(url, builder.build()).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("size", finalIndex); |
| | | put("cancelList", auditList); |
| | | }}); |
| | | String name = UUID.randomUUID() + "_æä»¶ä¿®è®¢è¡¨" + ".docx"; |
| | | try { |
| | | template.writeAndClose(Files.newOutputStream(Paths.get(wordUrl + "/" + name))); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | String path = wordUrl + "/" + name; |
| | | // å¤çåå¹¶åå
æ ¼çé®é¢ |
| | | try { |
| | | ZipSecureFile.setMinInflateRatio(0.0001); |
| | | FileInputStream stream = new FileInputStream(path); |
| | | XWPFDocument document = new XWPFDocument(stream); |
| | | List<XWPFTable> xwpfTables = document.getTables(); |
| | | for (int i = 0; i < xwpfTables.size(); i++) { |
| | | Set<String> set1 = new HashSet<>(); |
| | | Map<String, Map<String, Integer>> maps = new HashMap<>(); |
| | | for (int j = 0; j < xwpfTables.get(i).getRows().size(); j++) { |
| | | for (int k = 0; k < xwpfTables.get(i).getRows().get(j).getTableCells().size(); k++) { |
| | | if (xwpfTables.get(i).getRows().get(j).getTableCells().get(k).getText().indexOf("â") > -1) { |
| | | String[] split = xwpfTables.get(i).getRows().get(j).getTableCells().get(k).getText().split("â"); |
| | | if (set1.add(split[1])) { |
| | | Map<String, Integer> map = new HashMap<>(); |
| | | map.put("sr", j); |
| | | map.put("sc", k); |
| | | map.put("er", j + 0); |
| | | map.put("ec", k + 0); |
| | | maps.put(split[1], map); |
| | | } else { |
| | | Map<String, Integer> map1 = maps.get(split[1]); |
| | | if (j == map1.get("sr")) { |
| | | map1.put("ec", map1.get("ec") + 1); |
| | | } else if (k == map1.get("sc")) { |
| | | map1.put("er", map1.get("er") + 1); |
| | | } |
| | | } |
| | | String str = xwpfTables.get(i).getRows().get(j).getTableCells().get(k).getText().split("â")[0]; |
| | | xwpfTables.get(i).getRows().get(j).getTableCells().get(k).removeParagraph(0); |
| | | xwpfTables.get(i).getRows().get(j).getTableCells().get(k).setText(str); |
| | | xwpfTables.get(i).getRows().get(j).getTableCells().get(k).setVerticalAlignment(XWPFTableCell.XWPFVertAlign.CENTER); |
| | | xwpfTables.get(i).getRows().get(j).getTableCells().get(k).getParagraphArray(0).setAlignment(ParagraphAlignment.CENTER); |
| | | } |
| | | } |
| | | } |
| | | // åå
æ ¼æåº, é¿å
æ ¼å¼éä¹± |
| | | List<Map.Entry<String, Map<String, Integer>>> entries = new ArrayList<>(maps.entrySet()); |
| | | entries.sort((o1, o2) -> o1.getValue().get("sc") - o2.getValue().get("sc")); |
| | | // æç
§é¡ºåºæ·»å è¿éå |
| | | List<String> list = new ArrayList<>(); |
| | | for (Map.Entry<String, Map<String, Integer>> entry : entries) { |
| | | list.add(entry.getKey()); |
| | | } |
| | | for (int a = list.size() - 1; a >= 0; a--) { |
| | | Map<String, Integer> v = maps.get(list.get(a)); |
| | | for (int j = 0; j < v.get("er") - v.get("sr") + 1; j++) { |
| | | if (v.get("ec") > v.get("sc")) { |
| | | try { |
| | | mergeCellsHorizontally(xwpfTables.get(i), v.get("sr") + j, v.get("sc"), v.get("ec")); |
| | | // TableTools.mergeCellsHorizonal(xwpfTables.get(i), v.get("sr") + j, v.get("sc"), v.get("ec")); |
| | | } catch (Exception e) { |
| | | } |
| | | } |
| | | } |
| | | if (v.get("er") > v.get("sr")) { |
| | | try { |
| | | mergeCellsVertically(xwpfTables.get(i), v.get("sc"), v.get("sr"), v.get("er")); |
| | | // TableTools.mergeCellsVertically(xwpfTables.get(i), v.get("sc"), v.get("sr"), v.get("er")); |
| | | } catch (Exception e) { |
| | | } |
| | | } |
| | | } |
| | | } |
| | | FileOutputStream fileOutputStream = new FileOutputStream(path); |
| | | document.write(fileOutputStream); |
| | | fileOutputStream.close(); |
| | | } catch (FileNotFoundException e) { |
| | | throw new RuntimeException(e); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | //å¤çä¸è±ææ¢è¡çé®é¢ |
| | | try { |
| | | FileInputStream stream1 = new FileInputStream(path); |
| | | XWPFDocument document1 = new XWPFDocument(stream1); |
| | | List<XWPFTable> xwpfTables1 = document1.getTables(); |
| | | for (int i = 0; i < xwpfTables1.size(); i++) { |
| | | for (int j = 0; j < xwpfTables1.get(i).getRows().size(); j++) { |
| | | for (int k = 0; k < xwpfTables1.get(i).getRows().get(j).getTableCells().size(); k++) { |
| | | if (xwpfTables1.get(i).getRows().get(j).getTableCells().get(k).getText().contains("@")) { |
| | | String text = xwpfTables1.get(i).getRows().get(j).getTableCells().get(k).getText(); |
| | | String[] split = text.split("@"); |
| | | xwpfTables1.get(i).getRows().get(j).getTableCells().get(k).removeParagraph(0); |
| | | XWPFParagraph xwpfParagraph = xwpfTables1.get(i).getRows().get(j).getTableCells().get(k).addParagraph(); |
| | | XWPFRun run = xwpfParagraph.createRun(); |
| | | run.setText(split[0]); |
| | | if (ObjectUtils.isNotNull(split[1])) { |
| | | run.addBreak(); |
| | | run.setText(split[1]); |
| | | } |
| | | xwpfParagraph.setAlignment(ParagraphAlignment.CENTER); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | FileOutputStream fileOutputStream1 = new FileOutputStream(path); |
| | | document1.write(fileOutputStream1); |
| | | fileOutputStream1.close(); |
| | | } catch (FileNotFoundException e) { |
| | | throw new RuntimeException(e); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | return name; |
| | | } |
| | | |
| | | // æ°´å¹³åå¹¶åå
æ ¼ |
| | | private static void mergeCellsHorizontally(XWPFTable table, int row, int fromCol, int toCol) { |
| | | for (int i = fromCol; i <= toCol; i++) { |
| | | if (i == fromCol) { |
| | | table.getRow(row).getCell(i).getCTTc().addNewTcPr().addNewHMerge().setVal(STMerge.RESTART); |
| | | } else { |
| | | table.getRow(row).getCell(i).getCTTc().addNewTcPr().addNewHMerge().setVal(STMerge.CONTINUE); |
| | | } |
| | | } |
| | | } |
| | | |
| | | // åç´åå¹¶åå
æ ¼ |
| | | private static void mergeCellsVertically(XWPFTable table, int col, int fromRow, int toRow) { |
| | | for (int i = fromRow; i <= toRow; i++) { |
| | | if (i == fromRow) { |
| | | table.getRow(i).getCell(col).getCTTc().addNewTcPr().addNewVMerge().setVal(STMerge.RESTART); |
| | | } else { |
| | | table.getRow(i).getCell(col).getCTTc().addNewTcPr().addNewVMerge().setVal(STMerge.CONTINUE); |
| | | } |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.service.impl; |
| | | |
| | | import cn.hutool.core.lang.UUID; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.deepoove.poi.config.ConfigureBuilder; |
| | | import com.deepoove.poi.data.*; |
| | | import com.deepoove.poi.data.style.*; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.manage.mapper.ManageRecordCancelMapper; |
| | | import com.ruoyi.manage.pojo.ManageRecordCancel; |
| | | import com.ruoyi.manage.service.ManageRecordCancelService; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.apache.commons.io.IOUtils; |
| | | import org.apache.poi.xwpf.usermodel.*; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.*; |
| | | import java.nio.file.Files; |
| | | import java.nio.file.Paths; |
| | | import java.time.LocalDate; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * ä½åºæä»¶ééè®°å½ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 01:27:22 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class ManageRecordCancelServiceImpl extends ServiceImpl<ManageRecordCancelMapper, ManageRecordCancel> implements ManageRecordCancelService { |
| | | |
| | | @Resource |
| | | private ManageRecordCancelMapper manageRecordCancelMapper; |
| | | |
| | | @Value("${wordUrl}") |
| | | private String wordUrl; |
| | | |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | |
| | | @Override |
| | | public IPage<ManageRecordCancel> pageManageRecordCancel(Page page, ManageRecordCancel manageRecordCancel) { |
| | | return manageRecordCancelMapper.pageManageRecordCancel(page, QueryWrappers.queryWrappers(manageRecordCancel)); |
| | | } |
| | | |
| | | @Override |
| | | public int ratifyManageRecordCancel(Integer id, String ratifyState) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | ManageRecordCancel manageRecordCancel = manageRecordCancelMapper.selectById(id); |
| | | manageRecordCancel.setRatifyUser(userId); |
| | | manageRecordCancel.setRatifyTime(LocalDate.now()); |
| | | manageRecordCancel.setRatifyState(ratifyState); |
| | | return manageRecordCancelMapper.updateById(manageRecordCancel); |
| | | } |
| | | |
| | | @Override |
| | | public String exportOutManageRecordCancel(ManageRecordCancel manageRecordCancel, HttpServletResponse response) { |
| | | List<ManageRecordCancel> manageRecordCancelList = manageRecordCancelMapper.pageManageRecordCancel(new Page(-1, -1), QueryWrappers.queryWrappers(manageRecordCancel)).getRecords(); |
| | | //çææ£éªæ¥ååæ¾ç»è®°è¡¨ |
| | | String url; |
| | | try { |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/cancel-deal.docx"); |
| | | File file = File.createTempFile("temp", ".tmp"); |
| | | OutputStream outputStream = new FileOutputStream(file); |
| | | IOUtils.copy(inputStream, outputStream); |
| | | url = file.getAbsolutePath(); |
| | | } catch (FileNotFoundException e) { |
| | | throw new ErrorException("æ¾ä¸å°æ¨¡æ¿æä»¶"); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | ConfigureBuilder builder = Configure.builder(); |
| | | builder.useSpringEL(true); |
| | | |
| | | List<Map<String, Object>> cancelList = new ArrayList<>(); |
| | | Integer index = 1; |
| | | Integer index1 = 1; |
| | | for (int c = 0; c < manageRecordCancelList.size(); c++) { |
| | | //è¶
è¿15è¡æ¢é¡µ |
| | | if (c % 15 == 0) { |
| | | List<RowRenderData> rows = new ArrayList<>(); |
| | | //è¡¨æ ¼çè¡æ° |
| | | for (int i = 0; i < 16; i++) { |
| | | RowRenderData rowRenderData = new RowRenderData(); |
| | | RowStyle rowStyle = new RowStyle(); |
| | | rowStyle.setHeight(40); |
| | | rowRenderData.setRowStyle(rowStyle); |
| | | List<CellRenderData> cells = new ArrayList<>(); |
| | | //è¡¨æ ¼çåæ° |
| | | for (int j = 0; j < 10; j++) { |
| | | CellRenderData cellRenderData = new CellRenderData(); |
| | | CellStyle cellStyle = new CellStyle(); |
| | | cellStyle.setVertAlign(XWPFTableCell.XWPFVertAlign.CENTER); |
| | | cellRenderData.setCellStyle(cellStyle); |
| | | List<ParagraphRenderData> paragraphRenderDataList = new ArrayList<>(); |
| | | ParagraphRenderData paragraphRenderData = new ParagraphRenderData(); |
| | | ParagraphStyle paragraphStyle = new ParagraphStyle(); |
| | | paragraphStyle.setAlign(ParagraphAlignment.CENTER); |
| | | paragraphRenderData.setParagraphStyle(paragraphStyle); |
| | | List<RenderData> renderData = new ArrayList<>(); |
| | | TextRenderData textRenderData = new TextRenderData(); |
| | | Style style = new Style(); |
| | | style.setFontFamily("å®ä½"); |
| | | style.setColor("000000"); |
| | | textRenderData.setStyle(style); |
| | | if (i == 0) { |
| | | //第ä¸è¡ |
| | | if (j == 0) { |
| | | //第ä¸ååºå· |
| | | textRenderData.setText("åºå·@No."); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 1) { |
| | | //第äºå |
| | | textRenderData.setText("æä»¶ç¼å·@File number"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 2) { |
| | | //第ä¸å |
| | | textRenderData.setText("æä»¶(è®°å½)åç§°@File (record) name"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 3) { |
| | | //第åå |
| | | textRenderData.setText("æ°é@Quantity"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 4) { |
| | | //第äºå |
| | | textRenderData.setText("鿝åå @Reason for destruction"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 5) { |
| | | //第å
å |
| | | textRenderData.setText("ç³è¯·äºº@Applicant"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 6) { |
| | | //第ä¸å |
| | | textRenderData.setText("æ¥æ@Date"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 7) { |
| | | //第å
«å |
| | | textRenderData.setText("æ¹å@Approve"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 8 ) { |
| | | //第ä¹å |
| | | textRenderData.setText("æ¥æ@Date"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else { |
| | | //第åå |
| | | textRenderData.setText("夿³¨@Remark"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | else { |
| | | //å
¶ä»è¡ |
| | | if (j == 0) { |
| | | //第ä¸å |
| | | try { |
| | | String insReportCode = manageRecordCancelList.get((i - 1) + (index1 - 1) * 15).getDocumentCode(); |
| | | textRenderData.setText(index + ""); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | index++; |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 1) { |
| | | try { |
| | | textRenderData.setText(manageRecordCancelList.get((i - 1) + (index1 - 1) * 15).getDocumentCode()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 2) { |
| | | try { |
| | | textRenderData.setText(manageRecordCancelList.get((i - 1) + (index1 - 1) * 15).getDocumentName()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 3) { |
| | | try { |
| | | textRenderData.setText(manageRecordCancelList.get((i - 1) + (index1 - 1) * 15).getQty()+""); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 4) { |
| | | try { |
| | | textRenderData.setText(manageRecordCancelList.get((i - 1) + (index1 - 1) * 15).getReason()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 5) { |
| | | try { |
| | | textRenderData.setText(manageRecordCancelList.get((i - 1) + (index1 - 1) * 15).getCreateUserName()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 6) { |
| | | try { |
| | | textRenderData.setText(manageRecordCancelList.get((i - 1) + (index1 - 1) * 15).getCreateTime()+""); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 7) { |
| | | try { |
| | | textRenderData.setText(manageRecordCancelList.get((i - 1) + (index1 - 1) * 15).getRatifyUserName()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 8) { |
| | | try { |
| | | textRenderData.setText(manageRecordCancelList.get((i - 1) + (index1 - 1) * 15).getRatifyTime()+""); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | }else { |
| | | try { |
| | | textRenderData.setText(manageRecordCancelList.get((i - 1) + (index1 - 1) * 15).getRemark()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | } |
| | | rowRenderData.setCells(cells); |
| | | if (rowRenderData.getCells().size() != 0) { |
| | | rows.add(rowRenderData); |
| | | } |
| | | } |
| | | TableRenderData tableRenderData = new TableRenderData(); |
| | | tableRenderData.setRows(rows); |
| | | int countSize = tableRenderData.getRows().get(0).getCells().size(); |
| | | for (RowRenderData row : tableRenderData.getRows()) { |
| | | if (row.getCells().size() != countSize) { |
| | | throw new ErrorException("æ¯è¡åå
æ ¼ä¸ç¸ç"); |
| | | } |
| | | } |
| | | TableStyle tableStyle = new TableStyle(); |
| | | tableStyle.setWidth(XWPFTable.DEFAULT_PERCENTAGE_WIDTH); |
| | | tableStyle.setAlign(TableRowAlign.CENTER); |
| | | BorderStyle borderStyle = new BorderStyle(); |
| | | borderStyle.setColor("000000"); |
| | | borderStyle.setType(XWPFTable.XWPFBorderType.THICK); |
| | | borderStyle.setSize(14); |
| | | tableStyle.setLeftBorder(borderStyle); |
| | | tableStyle.setTopBorder(borderStyle); |
| | | tableStyle.setRightBorder(borderStyle); |
| | | tableStyle.setBottomBorder(borderStyle); |
| | | tableRenderData.setTableStyle(tableStyle); |
| | | Map<String, Object> table = new HashMap<>(); |
| | | table.put("cancel", tableRenderData); |
| | | table.put("index1", index1); |
| | | cancelList.add(table); |
| | | index1++; |
| | | } |
| | | } |
| | | Integer finalIndex = index1; |
| | | XWPFTemplate template = XWPFTemplate.compile(url, builder.build()).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("size", finalIndex); |
| | | put("cancelList", cancelList); |
| | | }}); |
| | | String name = UUID.randomUUID() + "_æä»¶éæ¯ç³è¯·è¡¨" + ".docx"; |
| | | try { |
| | | template.writeAndClose(Files.newOutputStream(Paths.get(wordUrl + "/" + name))); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | String path = wordUrl + "/" + name; |
| | | //å¤çä¸è±ææ¢è¡çé®é¢ |
| | | try { |
| | | FileInputStream stream1 = new FileInputStream(path); |
| | | XWPFDocument document1 = new XWPFDocument(stream1); |
| | | List<XWPFTable> xwpfTables1 = document1.getTables(); |
| | | for (int i = 0; i < xwpfTables1.size(); i++) { |
| | | for (int j = 0; j < xwpfTables1.get(i).getRows().size(); j++) { |
| | | for (int k = 0; k < xwpfTables1.get(i).getRows().get(j).getTableCells().size(); k++) { |
| | | if (xwpfTables1.get(i).getRows().get(j).getTableCells().get(k).getText().contains("@")) { |
| | | String text = xwpfTables1.get(i).getRows().get(j).getTableCells().get(k).getText(); |
| | | String[] split = text.split("@"); |
| | | xwpfTables1.get(i).getRows().get(j).getTableCells().get(k).removeParagraph(0); |
| | | XWPFParagraph xwpfParagraph = xwpfTables1.get(i).getRows().get(j).getTableCells().get(k).addParagraph(); |
| | | XWPFRun run = xwpfParagraph.createRun(); |
| | | run.setText(split[0]); |
| | | if (ObjectUtils.isNotNull(split[1])) { |
| | | run.addBreak(); |
| | | run.setText(split[1]); |
| | | } |
| | | xwpfParagraph.setAlignment(ParagraphAlignment.CENTER); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | FileOutputStream fileOutputStream1 = new FileOutputStream(path); |
| | | document1.write(fileOutputStream1); |
| | | fileOutputStream1.close(); |
| | | } catch (FileNotFoundException e) { |
| | | throw new RuntimeException(e); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | return name; |
| | | } |
| | | |
| | | @Override |
| | | public int exportInManageRecordCancel(MultipartFile file) { |
| | | List<ManageRecordCancel> manageRecordCancelList = new ArrayList<>(); |
| | | DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd"); |
| | | try { |
| | | InputStream inputStream = file.getInputStream(); |
| | | XWPFDocument document = new XWPFDocument(inputStream); |
| | | List<XWPFTable> tables = document.getTables(); |
| | | if (tables.isEmpty()) { |
| | | throw new ErrorException("ææ¡£ä¸æ²¡æè¡¨æ ¼"); |
| | | } |
| | | |
| | | for (XWPFTable table : tables) { |
| | | List<XWPFTableRow> rows = table.getRows(); |
| | | if (rows.size() <= 1) { |
| | | throw new ErrorException("è¡¨æ ¼æ²¡ææ°æ®è¡"); |
| | | } |
| | | for (int i = 1; i < rows.size(); i++) { // ä»ç¬¬äºè¡å¼å§ï¼è·³è¿è¡¨å¤´ |
| | | XWPFTableRow row = rows.get(i); |
| | | if (row.getTableCells().size() != 10) { |
| | | System.out.println("è¡ " + (i + 1) + " çåæ°ä¸å¹é
ï¼è·³è¿è¯¥è¡"); |
| | | continue; |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(1).getText())) { |
| | | ManageRecordCancel manageRecordCancel = new ManageRecordCancel(); |
| | | manageRecordCancel.setDocumentCode(row.getCell(1).getText()); |
| | | manageRecordCancel.setDocumentName(row.getCell(2).getText()); |
| | | manageRecordCancel.setQty(Integer.valueOf(row.getCell(3).getText())); |
| | | manageRecordCancel.setReason(row.getCell(4).getText()); |
| | | try { |
| | | manageRecordCancel.setCreateUser(userMapper.selectOne(Wrappers.<User>lambdaQuery() |
| | | .eq(User::getName, row.getCell(5).getText())).getId()); |
| | | } catch (Exception e) { |
| | | manageRecordCancel.setCreateUser(null); |
| | | } |
| | | try { |
| | | manageRecordCancel.setRatifyUser(userMapper.selectOne(Wrappers.<User>lambdaQuery() |
| | | .eq(User::getName, row.getCell(7).getText())).getId()); |
| | | } catch (Exception e) { |
| | | manageRecordCancel.setRatifyUser(null); |
| | | } |
| | | try { |
| | | manageRecordCancel.setCreateTime(LocalDate.parse(row.getCell(6).getText(), dateTimeFormatter)); |
| | | } catch (Exception e) { |
| | | manageRecordCancel.setCreateTime(null); |
| | | } |
| | | try { |
| | | manageRecordCancel.setRatifyTime(LocalDate.parse(row.getCell(8).getText(), dateTimeFormatter)); |
| | | } catch (Exception e) { |
| | | manageRecordCancel.setRatifyTime(null); |
| | | } |
| | | manageRecordCancel.setRemark(row.getCell(9).getText()); |
| | | ManageRecordCancel cancel = manageRecordCancelMapper.selectOne(Wrappers.<ManageRecordCancel>lambdaQuery() |
| | | .eq(ManageRecordCancel::getDocumentCode, manageRecordCancel.getDocumentCode()) |
| | | .eq(ManageRecordCancel::getDocumentName, manageRecordCancel.getDocumentName())); |
| | | if (ObjectUtils.isNotEmpty(cancel)) { |
| | | manageRecordCancel.setId(cancel.getId()); |
| | | } |
| | | manageRecordCancelList.add(manageRecordCancel); |
| | | } |
| | | } |
| | | } |
| | | saveOrUpdateBatch(manageRecordCancelList); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return 0; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.service.impl; |
| | | |
| | | import cn.hutool.core.lang.UUID; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.deepoove.poi.config.ConfigureBuilder; |
| | | import com.deepoove.poi.data.*; |
| | | import com.deepoove.poi.data.style.*; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.manage.mapper.ManageRecordCheckMapper; |
| | | import com.ruoyi.manage.pojo.ManageRecordCheck; |
| | | import com.ruoyi.manage.service.ManageRecordCheckService; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.apache.commons.io.IOUtils; |
| | | import org.apache.poi.xwpf.usermodel.*; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.*; |
| | | import java.nio.file.Files; |
| | | import java.nio.file.Paths; |
| | | import java.time.LocalDate; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶å®¡æ¹è®°å½(å«ä¿®è®¢å忬¡å®¡æ¹è®°å½) æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-12 02:31:36 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class ManageRecordCheckServiceImpl extends ServiceImpl<ManageRecordCheckMapper, ManageRecordCheck> implements ManageRecordCheckService { |
| | | |
| | | @Resource |
| | | private ManageRecordCheckMapper manageRecordCheckMapper; |
| | | |
| | | @Value("${wordUrl}") |
| | | private String wordUrl; |
| | | |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | |
| | | @Override |
| | | public IPage<ManageRecordCheck> pageManageRecordCheck(Page page, ManageRecordCheck manageRecordCheck) { |
| | | return manageRecordCheckMapper.pageManageRecordCheck(page, QueryWrappers.queryWrappers(manageRecordCheck)); |
| | | } |
| | | |
| | | @Override |
| | | public int checkManageRecordCheck(Integer id, String checkState) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | ManageRecordCheck manageRecordCheck = manageRecordCheckMapper.selectById(id); |
| | | manageRecordCheck.setCheckState(checkState); |
| | | manageRecordCheck.setCheckUser(userId); |
| | | return manageRecordCheckMapper.updateById(manageRecordCheck); |
| | | } |
| | | |
| | | @Override |
| | | public int ratifyManageRecordCheck(Integer id, String ratifyState) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | ManageRecordCheck manageRecordCheck = manageRecordCheckMapper.selectById(id); |
| | | manageRecordCheck.setRatifyState(ratifyState); |
| | | manageRecordCheck.setRatifyUser(userId); |
| | | return manageRecordCheckMapper.updateById(manageRecordCheck); |
| | | } |
| | | |
| | | @Override |
| | | public String exportOutManageRecordCheck(ManageRecordCheck manageRecordCheck, HttpServletResponse response) { |
| | | List<ManageRecordCheck> manageRecordCheckList = manageRecordCheckMapper.pageManageRecordCheck(new Page(-1, -1), QueryWrappers.queryWrappers(manageRecordCheck)).getRecords(); |
| | | //çææ£éªæ¥ååæ¾ç»è®°è¡¨ |
| | | String url; |
| | | try { |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/check-deal.docx"); |
| | | File file = File.createTempFile("temp", ".tmp"); |
| | | OutputStream outputStream = new FileOutputStream(file); |
| | | IOUtils.copy(inputStream, outputStream); |
| | | url = file.getAbsolutePath(); |
| | | } catch (FileNotFoundException e) { |
| | | throw new ErrorException("æ¾ä¸å°æ¨¡æ¿æä»¶"); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | ConfigureBuilder builder = Configure.builder(); |
| | | builder.useSpringEL(true); |
| | | |
| | | List<Map<String, Object>> checkList = new ArrayList<>(); |
| | | Integer index = 1; |
| | | Integer index1 = 1; |
| | | for (int c = 0; c < manageRecordCheckList.size(); c++) { |
| | | //è¶
è¿20è¡æ¢é¡µ |
| | | if (c % 20 == 0) { |
| | | List<RowRenderData> rows = new ArrayList<>(); |
| | | //è¡¨æ ¼çè¡æ° |
| | | for (int i = 0; i < 21; i++) { |
| | | RowRenderData rowRenderData = new RowRenderData(); |
| | | RowStyle rowStyle = new RowStyle(); |
| | | rowStyle.setHeight(40); |
| | | rowRenderData.setRowStyle(rowStyle); |
| | | List<CellRenderData> cells = new ArrayList<>(); |
| | | //è¡¨æ ¼çåæ° |
| | | for (int j = 0; j < 9; j++) { |
| | | CellRenderData cellRenderData = new CellRenderData(); |
| | | CellStyle cellStyle = new CellStyle(); |
| | | cellStyle.setVertAlign(XWPFTableCell.XWPFVertAlign.CENTER); |
| | | cellRenderData.setCellStyle(cellStyle); |
| | | List<ParagraphRenderData> paragraphRenderDataList = new ArrayList<>(); |
| | | ParagraphRenderData paragraphRenderData = new ParagraphRenderData(); |
| | | ParagraphStyle paragraphStyle = new ParagraphStyle(); |
| | | paragraphStyle.setAlign(ParagraphAlignment.CENTER); |
| | | paragraphRenderData.setParagraphStyle(paragraphStyle); |
| | | List<RenderData> renderData = new ArrayList<>(); |
| | | TextRenderData textRenderData = new TextRenderData(); |
| | | Style style = new Style(); |
| | | style.setFontFamily("å®ä½"); |
| | | style.setColor("000000"); |
| | | textRenderData.setStyle(style); |
| | | if (i == 0) { |
| | | //第ä¸è¡ |
| | | if (j == 0) { |
| | | //第ä¸ååºå· |
| | | textRenderData.setText("åºå·@No."); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 1) { |
| | | //第äºå |
| | | textRenderData.setText("æä»¶åç§°@File name"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 2) { |
| | | //第ä¸å |
| | | textRenderData.setText("æä»¶ç¼å·@File number"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 3) { |
| | | //第åå |
| | | textRenderData.setText("ç/次@Edition/time"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 4) { |
| | | //第äºå |
| | | textRenderData.setText("ç¼å¶@Editor"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 5) { |
| | | //第å
å |
| | | textRenderData.setText("å®¡æ ¸@Audit"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 6) { |
| | | //第ä¸å |
| | | textRenderData.setText("æ¹å@Approve"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 7) { |
| | | //第å
«å |
| | | textRenderData.setText("æ¹åæ¥æ@Date of approve"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else { |
| | | //第ä¹å |
| | | textRenderData.setText("夿³¨@Remark"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } |
| | | } else { |
| | | //å
¶ä»è¡ |
| | | if (j == 0) { |
| | | //第ä¸å |
| | | try { |
| | | String insReportCode = manageRecordCheckList.get((i - 1) + (index1 - 1) * 20).getDocumentName(); |
| | | textRenderData.setText(index + ""); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | index++; |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 1) { |
| | | try { |
| | | textRenderData.setText(manageRecordCheckList.get((i - 1) + (index1 - 1) * 20).getDocumentName()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 2) { |
| | | try { |
| | | textRenderData.setText(manageRecordCheckList.get((i - 1) + (index1 - 1) * 20).getDocumentCode()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 3) { |
| | | try { |
| | | textRenderData.setText(manageRecordCheckList.get((i - 1) + (index1 - 1) * 20).getDocumentVersion()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 4) { |
| | | try { |
| | | textRenderData.setText(manageRecordCheckList.get((i - 1) + (index1 - 1) * 20).getWriteUserName()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 5) { |
| | | try { |
| | | textRenderData.setText(manageRecordCheckList.get((i - 1) + (index1 - 1) * 20).getCheckUserName()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 6) { |
| | | try { |
| | | textRenderData.setText(manageRecordCheckList.get((i - 1) + (index1 - 1) * 20).getRatifyUserName()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 7) { |
| | | try { |
| | | textRenderData.setText(manageRecordCheckList.get((i - 1) + (index1 - 1) * 20).getRatifyDate() + ""); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else { |
| | | try { |
| | | textRenderData.setText(manageRecordCheckList.get((i - 1) + (index1 - 1) * 20).getRemark()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | } |
| | | rowRenderData.setCells(cells); |
| | | if (rowRenderData.getCells().size() != 0) { |
| | | rows.add(rowRenderData); |
| | | } |
| | | } |
| | | TableRenderData tableRenderData = new TableRenderData(); |
| | | tableRenderData.setRows(rows); |
| | | int countSize = tableRenderData.getRows().get(0).getCells().size(); |
| | | for (RowRenderData row : tableRenderData.getRows()) { |
| | | if (row.getCells().size() != countSize) { |
| | | throw new ErrorException("æ¯è¡åå
æ ¼ä¸ç¸ç"); |
| | | } |
| | | } |
| | | TableStyle tableStyle = new TableStyle(); |
| | | tableStyle.setWidth(XWPFTable.DEFAULT_PERCENTAGE_WIDTH); |
| | | tableStyle.setAlign(TableRowAlign.CENTER); |
| | | BorderStyle borderStyle = new BorderStyle(); |
| | | borderStyle.setColor("000000"); |
| | | borderStyle.setType(XWPFTable.XWPFBorderType.THICK); |
| | | borderStyle.setSize(14); |
| | | tableStyle.setLeftBorder(borderStyle); |
| | | tableStyle.setTopBorder(borderStyle); |
| | | tableStyle.setRightBorder(borderStyle); |
| | | tableStyle.setBottomBorder(borderStyle); |
| | | tableRenderData.setTableStyle(tableStyle); |
| | | Map<String, Object> table = new HashMap<>(); |
| | | table.put("check", tableRenderData); |
| | | table.put("index1", index1); |
| | | checkList.add(table); |
| | | index1++; |
| | | } |
| | | } |
| | | Integer finalIndex = index1; |
| | | XWPFTemplate template = XWPFTemplate.compile(url, builder.build()).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("size", finalIndex); |
| | | put("checkList", checkList); |
| | | }}); |
| | | String name = UUID.randomUUID() + "_æä»¶å®¡æ¹è®°å½" + ".docx"; |
| | | try { |
| | | template.writeAndClose(Files.newOutputStream(Paths.get(wordUrl + "/" + name))); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | //å¤çä¸è±ææ¢è¡çé®é¢ |
| | | String path = wordUrl + "/" + name; |
| | | try { |
| | | FileInputStream stream1 = new FileInputStream(path); |
| | | XWPFDocument document1 = new XWPFDocument(stream1); |
| | | List<XWPFTable> xwpfTables1 = document1.getTables(); |
| | | for (int i = 0; i < xwpfTables1.size(); i++) { |
| | | for (int j = 0; j < xwpfTables1.get(i).getRows().size(); j++) { |
| | | for (int k = 0; k < xwpfTables1.get(i).getRows().get(j).getTableCells().size(); k++) { |
| | | if (xwpfTables1.get(i).getRows().get(j).getTableCells().get(k).getText().contains("@")) { |
| | | String text = xwpfTables1.get(i).getRows().get(j).getTableCells().get(k).getText(); |
| | | String[] split = text.split("@"); |
| | | xwpfTables1.get(i).getRows().get(j).getTableCells().get(k).removeParagraph(0); |
| | | XWPFParagraph xwpfParagraph = xwpfTables1.get(i).getRows().get(j).getTableCells().get(k).addParagraph(); |
| | | XWPFRun run = xwpfParagraph.createRun(); |
| | | run.setText(split[0]); |
| | | if (ObjectUtils.isNotNull(split[1])) { |
| | | run.addBreak(); |
| | | run.setText(split[1]); |
| | | } |
| | | xwpfParagraph.setAlignment(ParagraphAlignment.CENTER); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | FileOutputStream fileOutputStream1 = new FileOutputStream(path); |
| | | document1.write(fileOutputStream1); |
| | | fileOutputStream1.close(); |
| | | } catch (FileNotFoundException e) { |
| | | throw new RuntimeException(e); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | return name; |
| | | } |
| | | |
| | | @Override |
| | | public int exportInManageRecordCheck(MultipartFile file) { |
| | | List<ManageRecordCheck> manageRecordCheckList = new ArrayList<>(); |
| | | DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd"); |
| | | try { |
| | | InputStream inputStream = file.getInputStream(); |
| | | XWPFDocument document = new XWPFDocument(inputStream); |
| | | List<XWPFTable> tables = document.getTables(); |
| | | if (tables.isEmpty()) { |
| | | throw new ErrorException("ææ¡£ä¸æ²¡æè¡¨æ ¼"); |
| | | } |
| | | |
| | | for (XWPFTable table : tables) { |
| | | List<XWPFTableRow> rows = table.getRows(); |
| | | if (rows.size() <= 1) { |
| | | throw new ErrorException("è¡¨æ ¼æ²¡ææ°æ®è¡"); |
| | | } |
| | | for (int i = 1; i < rows.size(); i++) { // ä»ç¬¬äºè¡å¼å§ï¼è·³è¿è¡¨å¤´ |
| | | XWPFTableRow row = rows.get(i); |
| | | if (row.getTableCells().size() != 9) { |
| | | System.out.println("è¡ " + (i + 1) + " çåæ°ä¸å¹é
ï¼è·³è¿è¯¥è¡"); |
| | | continue; |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(1).getText())) { |
| | | ManageRecordCheck manageRecordCheck = new ManageRecordCheck(); |
| | | manageRecordCheck.setDocumentName(row.getCell(1).getText()); |
| | | manageRecordCheck.setDocumentCode(row.getCell(2).getText()); |
| | | manageRecordCheck.setDocumentVersion(row.getCell(3).getText()); |
| | | try { |
| | | manageRecordCheck.setWriteUser(userMapper.selectOne(Wrappers.<User>lambdaQuery() |
| | | .eq(User::getName, row.getCell(4).getText())).getId()); |
| | | } catch (Exception e) { |
| | | manageRecordCheck.setWriteUser(null); |
| | | } |
| | | try { |
| | | manageRecordCheck.setCheckUser(userMapper.selectOne(Wrappers.<User>lambdaQuery() |
| | | .eq(User::getName, row.getCell(5).getText())).getId()); |
| | | } catch (Exception e) { |
| | | manageRecordCheck.setCheckUser(null); |
| | | } |
| | | try { |
| | | manageRecordCheck.setRatifyUser(userMapper.selectOne(Wrappers.<User>lambdaQuery() |
| | | .eq(User::getName, row.getCell(6).getText())).getId()); |
| | | } catch (Exception e) { |
| | | manageRecordCheck.setRatifyUser(null); |
| | | } |
| | | try { |
| | | manageRecordCheck.setRatifyDate(LocalDate.parse(row.getCell(7).getText(), dateTimeFormatter)); |
| | | } catch (Exception e) { |
| | | manageRecordCheck.setRatifyDate(null); |
| | | } |
| | | |
| | | manageRecordCheck.setRemark(row.getCell(8).getText()); |
| | | ManageRecordCheck check = manageRecordCheckMapper.selectOne(Wrappers.<ManageRecordCheck>lambdaQuery() |
| | | .eq(ManageRecordCheck::getDocumentCode, manageRecordCheck.getDocumentCode()) |
| | | .eq(ManageRecordCheck::getDocumentName, manageRecordCheck.getDocumentName()) |
| | | .eq(ManageRecordCheck::getDocumentVersion, manageRecordCheck.getDocumentVersion())); |
| | | if (ObjectUtils.isNotEmpty(check)) { |
| | | manageRecordCheck.setId(check.getId()); |
| | | } |
| | | manageRecordCheckList.add(manageRecordCheck); |
| | | } |
| | | } |
| | | } |
| | | saveOrUpdateBatch(manageRecordCheckList); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return 0; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.service.impl; |
| | | |
| | | import cn.hutool.core.lang.UUID; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.deepoove.poi.config.ConfigureBuilder; |
| | | import com.deepoove.poi.data.*; |
| | | import com.deepoove.poi.data.style.*; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.manage.mapper.ManageRecordIntervalsMapper; |
| | | import com.ruoyi.manage.mapper.ManageRecordIntervalsTotalMapper; |
| | | import com.ruoyi.manage.pojo.ManageRecordIntervals; |
| | | import com.ruoyi.manage.pojo.ManageRecordIntervalsTotal; |
| | | import com.ruoyi.manage.service.ManageRecordIntervalsService; |
| | | import org.apache.commons.io.IOUtils; |
| | | import org.apache.poi.openxml4j.util.ZipSecureFile; |
| | | import org.apache.poi.xwpf.usermodel.*; |
| | | import org.openxmlformats.schemas.wordprocessingml.x2006.main.STMerge; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.*; |
| | | import java.nio.file.Files; |
| | | import java.nio.file.Paths; |
| | | import java.time.LocalDate; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶å®æå®¡æ¥è®°å½ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-13 10:54:31 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class ManageRecordIntervalsServiceImpl extends ServiceImpl<ManageRecordIntervalsMapper, ManageRecordIntervals> implements ManageRecordIntervalsService { |
| | | |
| | | @Resource |
| | | private ManageRecordIntervalsMapper manageRecordIntervalsMapper; |
| | | |
| | | @Resource |
| | | private ManageRecordIntervalsTotalMapper manageRecordIntervalsTotalMapper; |
| | | |
| | | @Value("${wordUrl}") |
| | | private String wordUrl; |
| | | |
| | | @Override |
| | | public IPage<ManageRecordIntervals> pageManageRecordIntervals(Page page, ManageRecordIntervals manageRecordIntervals) { |
| | | return manageRecordIntervalsMapper.pageManageRecordIntervals(page, QueryWrappers.queryWrappers(manageRecordIntervals)); |
| | | } |
| | | |
| | | @Override |
| | | public String exportOutManageRecordIntervals(ManageRecordIntervals manageRecordIntervals, HttpServletResponse response) { |
| | | List<ManageRecordIntervals> manageRecordIntervalsList = manageRecordIntervalsMapper.pageManageRecordIntervals(new Page(-1, -1), QueryWrappers.queryWrappers(manageRecordIntervals)).getRecords(); |
| | | //çææ£éªæ¥ååæ¾ç»è®°è¡¨ |
| | | String url; |
| | | try { |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/intervals-deal.docx"); |
| | | File file = File.createTempFile("temp", ".tmp"); |
| | | OutputStream outputStream = new FileOutputStream(file); |
| | | IOUtils.copy(inputStream, outputStream); |
| | | url = file.getAbsolutePath(); |
| | | } catch (FileNotFoundException e) { |
| | | throw new ErrorException("æ¾ä¸å°æ¨¡æ¿æä»¶"); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | ConfigureBuilder builder = Configure.builder(); |
| | | builder.useSpringEL(true); |
| | | |
| | | List<Map<String, Object>> intervalsList = new ArrayList<>(); |
| | | Integer index = 1; |
| | | Integer index1 = 1; |
| | | for (int c = 0; c < manageRecordIntervalsList.size(); c++) { |
| | | //è¶
è¿15è¡æ¢é¡µ |
| | | if (c % 15 == 0) { |
| | | List<RowRenderData> rows = new ArrayList<>(); |
| | | //è¡¨æ ¼çè¡æ° |
| | | for (int i = 0; i < 17; i++) { |
| | | RowRenderData rowRenderData = new RowRenderData(); |
| | | RowStyle rowStyle = new RowStyle(); |
| | | rowStyle.setHeight(40); |
| | | rowRenderData.setRowStyle(rowStyle); |
| | | List<CellRenderData> cells = new ArrayList<>(); |
| | | //è¡¨æ ¼çåæ° |
| | | for (int j = 0; j < 7; j++) { |
| | | CellRenderData cellRenderData = new CellRenderData(); |
| | | CellStyle cellStyle = new CellStyle(); |
| | | cellStyle.setVertAlign(XWPFTableCell.XWPFVertAlign.CENTER); |
| | | cellRenderData.setCellStyle(cellStyle); |
| | | List<ParagraphRenderData> paragraphRenderDataList = new ArrayList<>(); |
| | | ParagraphRenderData paragraphRenderData = new ParagraphRenderData(); |
| | | ParagraphStyle paragraphStyle = new ParagraphStyle(); |
| | | paragraphStyle.setAlign(ParagraphAlignment.CENTER); |
| | | paragraphRenderData.setParagraphStyle(paragraphStyle); |
| | | List<RenderData> renderData = new ArrayList<>(); |
| | | TextRenderData textRenderData = new TextRenderData(); |
| | | Style style = new Style(); |
| | | style.setFontFamily("å®ä½"); |
| | | style.setColor("000000"); |
| | | textRenderData.setStyle(style); |
| | | if (i == 0) { |
| | | //第ä¸è¡ |
| | | if (j == 0) { |
| | | //第ä¸ååºå· |
| | | textRenderData.setText("åºå·@No."); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 1) { |
| | | //第äºå |
| | | textRenderData.setText("æä»¶åç§°@File name"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 2) { |
| | | //第ä¸å |
| | | textRenderData.setText("æä»¶ç¼å·@File number"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 3) { |
| | | //第åå |
| | | textRenderData.setText("çæ¬å·@Version number"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 4) { |
| | | //第äºå |
| | | textRenderData.setText("修订å·@Revision number"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 5) { |
| | | //第å
å |
| | | textRenderData.setText("é宿§@Suitability"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else { |
| | | //第ä¸å |
| | | textRenderData.setText("夿³¨@Remark"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | else if (i == 16) { |
| | | //æåä¸è¡ |
| | | textRenderData.setText("注ï¼é宿§ä¸æ æâââè¡¨æ¤æä»¶éå®ï¼âÃâ表示ä¸éå®ï¼æä»¶é修订æä½åºã@Note:Theâââtable in the suitability column is suitable for this document, theâÃâtable is not suitable,and the document needs to berevised or invalidated @å®¡æ¥æ¥æï¼ @Review Date:@åå 审æ¥äººåç¾åï¼@Signatures of the reviewers particip ating in the review:â1"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } |
| | | else { |
| | | //å
¶ä»è¡ |
| | | if (j == 0) { |
| | | //第ä¸å |
| | | try { |
| | | String insReportCode = manageRecordIntervalsList.get((i - 1) + (index1 - 1) * 15).getDocumentCode(); |
| | | textRenderData.setText(index + ""); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | index++; |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 1) { |
| | | try { |
| | | textRenderData.setText(manageRecordIntervalsList.get((i - 1) + (index1 - 1) * 15).getDocumentName()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 2) { |
| | | try { |
| | | textRenderData.setText(manageRecordIntervalsList.get((i - 1) + (index1 - 1) * 15).getDocumentCode()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 3) { |
| | | try { |
| | | textRenderData.setText(manageRecordIntervalsList.get((i - 1) + (index1 - 1) * 15).getDocumentVersion()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 4) { |
| | | try { |
| | | textRenderData.setText(manageRecordIntervalsList.get((i -1) + (index1 - 1) * 15).getRevision()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 5) { |
| | | try { |
| | | textRenderData.setText(manageRecordIntervalsList.get((i - 1) + (index1 - 1) * 15).getSuitability()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else { |
| | | try { |
| | | textRenderData.setText(manageRecordIntervalsList.get((i - 1) + (index1 - 1) * 15).getRemark() ); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | } |
| | | rowRenderData.setCells(cells); |
| | | if (rowRenderData.getCells().size() != 0) { |
| | | rows.add(rowRenderData); |
| | | } |
| | | } |
| | | TableRenderData tableRenderData = new TableRenderData(); |
| | | tableRenderData.setRows(rows); |
| | | int countSize = tableRenderData.getRows().get(0).getCells().size(); |
| | | for (RowRenderData row : tableRenderData.getRows()) { |
| | | if (row.getCells().size() != countSize) { |
| | | throw new ErrorException("æ¯è¡åå
æ ¼ä¸ç¸ç"); |
| | | } |
| | | } |
| | | TableStyle tableStyle = new TableStyle(); |
| | | tableStyle.setWidth(XWPFTable.DEFAULT_PERCENTAGE_WIDTH); |
| | | tableStyle.setAlign(TableRowAlign.CENTER); |
| | | BorderStyle borderStyle = new BorderStyle(); |
| | | borderStyle.setColor("000000"); |
| | | borderStyle.setType(XWPFTable.XWPFBorderType.THICK); |
| | | borderStyle.setSize(14); |
| | | tableStyle.setLeftBorder(borderStyle); |
| | | tableStyle.setTopBorder(borderStyle); |
| | | tableStyle.setRightBorder(borderStyle); |
| | | tableStyle.setBottomBorder(borderStyle); |
| | | tableRenderData.setTableStyle(tableStyle); |
| | | Map<String, Object> table = new HashMap<>(); |
| | | table.put("intervals", tableRenderData); |
| | | table.put("index1", index1); |
| | | intervalsList.add(table); |
| | | index1++; |
| | | } |
| | | } |
| | | Integer finalIndex = index1; |
| | | XWPFTemplate template = XWPFTemplate.compile(url, builder.build()).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("size", finalIndex); |
| | | put("intervalsList", intervalsList); |
| | | }}); |
| | | String name = UUID.randomUUID() + "_æä»¶å®æå®¡æ¥è®°å½è¡¨" + ".docx"; |
| | | try { |
| | | template.writeAndClose(Files.newOutputStream(Paths.get(wordUrl + "/" + name))); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | String path = wordUrl + "/" + name; |
| | | // å¤çåå¹¶åå
æ ¼çé®é¢ |
| | | try { |
| | | ZipSecureFile.setMinInflateRatio(0.0001); |
| | | FileInputStream stream = new FileInputStream(path); |
| | | XWPFDocument document = new XWPFDocument(stream); |
| | | List<XWPFTable> xwpfTables = document.getTables(); |
| | | for (int i = 0; i < xwpfTables.size(); i++) { |
| | | Set<String> set1 = new HashSet<>(); |
| | | Map<String, Map<String, Integer>> maps = new HashMap<>(); |
| | | for (int j = 0; j < xwpfTables.get(i).getRows().size(); j++) { |
| | | for (int k = 0; k < xwpfTables.get(i).getRows().get(j).getTableCells().size(); k++) { |
| | | if (xwpfTables.get(i).getRows().get(j).getTableCells().get(k).getText().indexOf("â") > -1) { |
| | | String[] split = xwpfTables.get(i).getRows().get(j).getTableCells().get(k).getText().split("â"); |
| | | if (set1.add(split[1])) { |
| | | Map<String, Integer> map = new HashMap<>(); |
| | | map.put("sr", j); |
| | | map.put("sc", k); |
| | | map.put("er", j + 0); |
| | | map.put("ec", k + 0); |
| | | maps.put(split[1], map); |
| | | } else { |
| | | Map<String, Integer> map1 = maps.get(split[1]); |
| | | if (j == map1.get("sr")) { |
| | | map1.put("ec", map1.get("ec") + 1); |
| | | } else if (k == map1.get("sc")) { |
| | | map1.put("er", map1.get("er") + 1); |
| | | } |
| | | } |
| | | String str = xwpfTables.get(i).getRows().get(j).getTableCells().get(k).getText().split("â")[0]; |
| | | xwpfTables.get(i).getRows().get(j).getTableCells().get(k).removeParagraph(0); |
| | | xwpfTables.get(i).getRows().get(j).getTableCells().get(k).setText(str); |
| | | xwpfTables.get(i).getRows().get(j).getTableCells().get(k).setVerticalAlignment(XWPFTableCell.XWPFVertAlign.CENTER); |
| | | xwpfTables.get(i).getRows().get(j).getTableCells().get(k).getParagraphArray(0).setAlignment(ParagraphAlignment.CENTER); |
| | | } |
| | | } |
| | | } |
| | | // åå
æ ¼æåº, é¿å
æ ¼å¼éä¹± |
| | | List<Map.Entry<String, Map<String, Integer>>> entries = new ArrayList<>(maps.entrySet()); |
| | | entries.sort((o1, o2) -> o1.getValue().get("sc") - o2.getValue().get("sc")); |
| | | // æç
§é¡ºåºæ·»å è¿éå |
| | | List<String> list = new ArrayList<>(); |
| | | for (Map.Entry<String, Map<String, Integer>> entry : entries) { |
| | | list.add(entry.getKey()); |
| | | } |
| | | for (int a = list.size() - 1; a >= 0; a--) { |
| | | Map<String, Integer> v = maps.get(list.get(a)); |
| | | for (int j = 0; j < v.get("er") - v.get("sr") + 1; j++) { |
| | | if (v.get("ec") > v.get("sc")) { |
| | | try { |
| | | mergeCellsHorizontally(xwpfTables.get(i), v.get("sr") + j, v.get("sc"), v.get("ec")); |
| | | // TableTools.mergeCellsHorizonal(xwpfTables.get(i), v.get("sr") + j, v.get("sc"), v.get("ec")); |
| | | } catch (Exception e) { |
| | | } |
| | | } |
| | | } |
| | | if (v.get("er") > v.get("sr")) { |
| | | try { |
| | | mergeCellsVertically(xwpfTables.get(i), v.get("sc"), v.get("sr"), v.get("er")); |
| | | // TableTools.mergeCellsVertically(xwpfTables.get(i), v.get("sc"), v.get("sr"), v.get("er")); |
| | | } catch (Exception e) { |
| | | } |
| | | } |
| | | } |
| | | } |
| | | FileOutputStream fileOutputStream = new FileOutputStream(path); |
| | | document.write(fileOutputStream); |
| | | fileOutputStream.close(); |
| | | } catch (FileNotFoundException e) { |
| | | throw new RuntimeException(e); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | //å¤çä¸è±ææ¢è¡çé®é¢ |
| | | try { |
| | | FileInputStream stream1 = new FileInputStream(path); |
| | | XWPFDocument document1 = new XWPFDocument(stream1); |
| | | List<XWPFTable> xwpfTables1 = document1.getTables(); |
| | | for (int i = 0; i < xwpfTables1.size(); i++) { |
| | | for (int j = 0; j < xwpfTables1.get(i).getRows().size(); j++) { |
| | | for (int k = 0; k < xwpfTables1.get(i).getRows().get(j).getTableCells().size(); k++) { |
| | | if (xwpfTables1.get(i).getRows().get(j).getTableCells().get(k).getText().contains("@")) { |
| | | String text = xwpfTables1.get(i).getRows().get(j).getTableCells().get(k).getText(); |
| | | String[] split = text.split("@"); |
| | | xwpfTables1.get(i).getRows().get(j).getTableCells().get(k).removeParagraph(0); |
| | | XWPFParagraph xwpfParagraph = xwpfTables1.get(i).getRows().get(j).getTableCells().get(k).addParagraph(); |
| | | XWPFRun run = xwpfParagraph.createRun(); |
| | | run.setText(split[0]); |
| | | if (ObjectUtils.isNotNull(split[1])) { |
| | | run.addBreak(); |
| | | run.setText(split[1]); |
| | | } |
| | | xwpfParagraph.setAlignment(ParagraphAlignment.CENTER); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | FileOutputStream fileOutputStream1 = new FileOutputStream(path); |
| | | document1.write(fileOutputStream1); |
| | | fileOutputStream1.close(); |
| | | } catch (FileNotFoundException e) { |
| | | throw new RuntimeException(e); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | return name; |
| | | } |
| | | |
| | | @Override |
| | | public int exportInManageRecordIntervals(MultipartFile file) { |
| | | List<ManageRecordIntervals> manageRecordIntervalsList = new ArrayList<>(); |
| | | |
| | | DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd"); |
| | | //è·åå½å年份 |
| | | LocalDate currentDate = LocalDate.now(); |
| | | // å®ä¹æ¥ææ ¼å¼ |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy"); |
| | | // æ ¼å¼åå½åæ¥æ |
| | | String currentMonth = currentDate.format(formatter); |
| | | ManageRecordIntervalsTotal manageRecordIntervalsTotal = manageRecordIntervalsTotalMapper.selectOne(Wrappers.<ManageRecordIntervalsTotal>lambdaQuery().eq(ManageRecordIntervalsTotal::getYear, currentMonth)); |
| | | try { |
| | | InputStream inputStream = file.getInputStream(); |
| | | XWPFDocument document = new XWPFDocument(inputStream); |
| | | List<XWPFTable> tables = document.getTables(); |
| | | if (tables.isEmpty()) { |
| | | throw new ErrorException("ææ¡£ä¸æ²¡æè¡¨æ ¼"); |
| | | } |
| | | for (XWPFTable table : tables) { |
| | | List<XWPFTableRow> rows = table.getRows(); |
| | | if (rows.size() <= 1) { |
| | | throw new ErrorException("è¡¨æ ¼æ²¡ææ°æ®è¡"); |
| | | } |
| | | for (int i = 1; i < rows.size(); i++) { // ä»ç¬¬äºè¡å¼å§ï¼è·³è¿è¡¨å¤´ |
| | | XWPFTableRow row = rows.get(i); |
| | | if (row.getTableCells().size() != 7) { |
| | | System.out.println("è¡ " + (i + 1) + " çåæ°ä¸å¹é
ï¼è·³è¿è¯¥è¡"); |
| | | continue; |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(1).getText())) { |
| | | ManageRecordIntervals manageRecordIntervals = new ManageRecordIntervals(); |
| | | manageRecordIntervals.setDocumentName(row.getCell(1).getText()); |
| | | manageRecordIntervals.setDocumentCode(row.getCell(2).getText()); |
| | | manageRecordIntervals.setDocumentVersion(row.getCell(3).getText()); |
| | | manageRecordIntervals.setRevision(row.getCell(4).getText()); |
| | | manageRecordIntervals.setSuitability(row.getCell(5).getText()); |
| | | manageRecordIntervals.setRemark(row.getCell(6).getText()); |
| | | manageRecordIntervals.setRecordIntervalsTotalId(manageRecordIntervalsTotal.getId()); |
| | | ManageRecordIntervals intervals = manageRecordIntervalsMapper.selectOne(Wrappers.<ManageRecordIntervals>lambdaQuery() |
| | | .eq(ManageRecordIntervals::getDocumentCode, manageRecordIntervals.getDocumentCode()) |
| | | .eq(ManageRecordIntervals::getDocumentName, manageRecordIntervals.getDocumentName()) |
| | | .eq(ManageRecordIntervals::getRecordIntervalsTotalId, manageRecordIntervalsTotal.getId()) |
| | | .eq(ManageRecordIntervals::getDocumentVersion, manageRecordIntervals.getDocumentVersion())); |
| | | if (ObjectUtils.isNotEmpty(intervals)) { |
| | | manageRecordIntervals.setId(intervals.getId()); |
| | | } |
| | | manageRecordIntervalsList.add(manageRecordIntervals); |
| | | } |
| | | } |
| | | } |
| | | saveOrUpdateBatch(manageRecordIntervalsList); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | @Override |
| | | public int addManageRecordIntervals(ManageRecordIntervals manageRecordIntervals) { |
| | | //è·åå½å年份 |
| | | LocalDate currentDate = LocalDate.now(); |
| | | // å®ä¹æ¥ææ ¼å¼ |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy"); |
| | | // æ ¼å¼åå½åæ¥æ |
| | | String currentMonth = currentDate.format(formatter); |
| | | ManageRecordIntervalsTotal manageRecordIntervalsTotal = manageRecordIntervalsTotalMapper.selectOne(Wrappers.<ManageRecordIntervalsTotal>lambdaQuery().eq(ManageRecordIntervalsTotal::getYear, currentMonth)); |
| | | manageRecordIntervals.setRecordIntervalsTotalId(manageRecordIntervalsTotal.getId()); |
| | | manageRecordIntervalsMapper.insert(manageRecordIntervals); |
| | | manageRecordIntervalsTotal.setTotalNum(1 + manageRecordIntervalsTotal.getTotalNum()); |
| | | return manageRecordIntervalsTotalMapper.updateById(manageRecordIntervalsTotal); |
| | | } |
| | | |
| | | @Override |
| | | public int delManageRecordIntervals(Integer id) { |
| | | ManageRecordIntervals manageRecordIntervals = manageRecordIntervalsMapper.selectById(id); |
| | | manageRecordIntervalsMapper.deleteById(id); |
| | | ManageRecordIntervalsTotal manageRecordIntervalsTotal = manageRecordIntervalsTotalMapper.selectById(manageRecordIntervals.getRecordIntervalsTotalId()); |
| | | manageRecordIntervalsTotal.setTotalNum(manageRecordIntervalsTotal.getTotalNum() - 1); |
| | | return manageRecordIntervalsTotalMapper.updateById(manageRecordIntervalsTotal); |
| | | } |
| | | |
| | | // æ°´å¹³åå¹¶åå
æ ¼ |
| | | private static void mergeCellsHorizontally(XWPFTable table, int row, int fromCol, int toCol) { |
| | | for (int i = fromCol; i <= toCol; i++) { |
| | | if (i == fromCol) { |
| | | table.getRow(row).getCell(i).getCTTc().addNewTcPr().addNewHMerge().setVal(STMerge.RESTART); |
| | | } else { |
| | | table.getRow(row).getCell(i).getCTTc().addNewTcPr().addNewHMerge().setVal(STMerge.CONTINUE); |
| | | } |
| | | } |
| | | } |
| | | |
| | | // åç´åå¹¶åå
æ ¼ |
| | | private static void mergeCellsVertically(XWPFTable table, int col, int fromRow, int toRow) { |
| | | for (int i = fromRow; i <= toRow; i++) { |
| | | if (i == fromRow) { |
| | | table.getRow(i).getCell(col).getCTTc().addNewTcPr().addNewVMerge().setVal(STMerge.RESTART); |
| | | } else { |
| | | table.getRow(i).getCell(col).getCTTc().addNewTcPr().addNewVMerge().setVal(STMerge.CONTINUE); |
| | | } |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.manage.service.impl; |
| | | |
| | | import cn.hutool.core.lang.UUID; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.deepoove.poi.XWPFTemplate; |
| | | import com.deepoove.poi.config.Configure; |
| | | import com.deepoove.poi.config.ConfigureBuilder; |
| | | import com.deepoove.poi.data.*; |
| | | import com.deepoove.poi.data.style.*; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.QueryWrappers; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.framework.exception.ErrorException; |
| | | import com.ruoyi.manage.mapper.ManageRecordIntervalsMapper; |
| | | import com.ruoyi.manage.mapper.ManageRecordIntervalsTotalMapper; |
| | | import com.ruoyi.manage.pojo.ManageRecordIntervals; |
| | | import com.ruoyi.manage.pojo.ManageRecordIntervalsTotal; |
| | | import com.ruoyi.manage.service.ManageRecordIntervalsTotalService; |
| | | import com.ruoyi.system.mapper.UserMapper; |
| | | import org.apache.commons.io.IOUtils; |
| | | import org.apache.poi.openxml4j.util.ZipSecureFile; |
| | | import org.apache.poi.xwpf.usermodel.*; |
| | | import org.openxmlformats.schemas.wordprocessingml.x2006.main.STMerge; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.*; |
| | | import java.nio.file.Files; |
| | | import java.nio.file.Paths; |
| | | import java.time.LocalDate; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * <p> |
| | | * æä»¶å®æå®¡æ¥è®°å½æ»åå²è®°å½è¡¨ æå¡å®ç°ç±» |
| | | * </p> |
| | | * |
| | | * @author è¯å¯¼è½¯ä»¶ï¼æ±èï¼æéå
¬å¸ |
| | | * @since 2024-11-15 01:12:11 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class ManageRecordIntervalsTotalServiceImpl extends ServiceImpl<ManageRecordIntervalsTotalMapper, ManageRecordIntervalsTotal> implements ManageRecordIntervalsTotalService { |
| | | |
| | | @Value("${wordUrl}") |
| | | private String wordUrl; |
| | | |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | |
| | | @Value("${file.path}") |
| | | private String imgUrl; |
| | | |
| | | @Resource |
| | | private ManageRecordIntervalsTotalMapper manageRecordIntervalsTotalMapper; |
| | | |
| | | @Resource |
| | | private ManageRecordIntervalsMapper manageRecordIntervalsMapper; |
| | | |
| | | @Override |
| | | public IPage<ManageRecordIntervalsTotal> pageManageRecordIntervalsTotal(Page page, ManageRecordIntervalsTotal manageRecordIntervalsTotal) { |
| | | return manageRecordIntervalsTotalMapper.pageManageRecordIntervalsTotal(page, QueryWrappers.queryWrappers(manageRecordIntervalsTotal)); |
| | | } |
| | | |
| | | @Override |
| | | public int submitManageRecordIntervalsTotal(Integer id) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | User user = userMapper.selectById(userId); |
| | | if (ObjectUtils.isEmpty(user.getSignatureUrl())) throw new ErrorException("æªæ¾å°å¡«è¡¨äººççµåç¾å,请ä¸ä¼ èªå·±ççµåç¾å!"); |
| | | ManageRecordIntervalsTotal manageRecordIntervalsTotal = manageRecordIntervalsTotalMapper.selectById(id); |
| | | manageRecordIntervalsTotal.setSubmitUser(userId); |
| | | manageRecordIntervalsTotal.setSubmitDate(LocalDate.now()); |
| | | manageRecordIntervalsTotal.setSubmitUrl(user.getSignatureUrl()); |
| | | //çææ ·åå¤çç³è¯·è¡¨å¹¶å°å¡«è¡¨äººççµåç¾åå°ä¸ |
| | | manageRecordIntervalsTotal.setUrl(recordTotaldeal(id,user.getSignatureUrl())); |
| | | return manageRecordIntervalsTotalMapper.updateById(manageRecordIntervalsTotal); |
| | | } |
| | | |
| | | @Override |
| | | public int ratifyManageRecordIntervalsTotal(Integer id, String ratifyState) { |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | User user = userMapper.selectById(userId); |
| | | if (ObjectUtils.isEmpty(user.getSignatureUrl())) throw new ErrorException("æªæ¾å°æ¹å人ççµåç¾å,请ä¸ä¼ èªå·±ççµåç¾å!"); |
| | | ManageRecordIntervalsTotal manageRecordIntervalsTotal = manageRecordIntervalsTotalMapper.selectById(id); |
| | | manageRecordIntervalsTotal.setRatifyUser(userId); |
| | | manageRecordIntervalsTotal.setRatifyState(ratifyState); |
| | | manageRecordIntervalsTotal.setRatifyDate(LocalDate.now()); |
| | | manageRecordIntervalsTotal.setRatifyUrl(user.getSignatureUrl()); |
| | | //å°æ¹å人çç¾åå°ä¸ |
| | | String[] monthNames = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}; |
| | | wordInsertUrl(new HashMap<String, Object>() {{ |
| | | put("ratifyDateEn", monthNames[LocalDate.now().getMonthValue() - 1] + " " + LocalDate.now().getDayOfMonth() + ", " + LocalDate.now().getYear()); |
| | | put("ratifyDate", LocalDate.now().format(DateTimeFormatter.ofPattern("yyyyå¹´MMæddæ¥"))); |
| | | put("ratifyUrl", new FilePictureRenderData(100,50,imgUrl + "/" + user.getSignatureUrl())); |
| | | }}, wordUrl+"/"+manageRecordIntervalsTotal.getUrl()); |
| | | return manageRecordIntervalsTotalMapper.updateById(manageRecordIntervalsTotal); |
| | | } |
| | | |
| | | public int wordInsertUrl(Map<String, Object> map, String url) { |
| | | XWPFTemplate template = XWPFTemplate.compile(url).render(map); |
| | | try { |
| | | template.writeAndClose(Files.newOutputStream(Paths.get(url))); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | private String recordTotaldeal(Integer id,String signatureUrl){ |
| | | List<ManageRecordIntervals> manageRecordIntervalsList = manageRecordIntervalsMapper.selectList(Wrappers.<ManageRecordIntervals>lambdaQuery().eq(ManageRecordIntervals::getRecordIntervalsTotalId,id)); |
| | | String[] monthNames = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}; |
| | | //çææ£éªæ¥ååæ¾ç»è®°è¡¨ |
| | | String url; |
| | | try { |
| | | InputStream inputStream = this.getClass().getResourceAsStream("/static/intervals-deal.docx"); |
| | | File file = File.createTempFile("temp", ".tmp"); |
| | | OutputStream outputStream = new FileOutputStream(file); |
| | | IOUtils.copy(inputStream, outputStream); |
| | | url = file.getAbsolutePath(); |
| | | } catch (FileNotFoundException e) { |
| | | throw new ErrorException("æ¾ä¸å°æ¨¡æ¿æä»¶"); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | ConfigureBuilder builder = Configure.builder(); |
| | | builder.useSpringEL(true); |
| | | |
| | | List<Map<String, Object>> intervalsList = new ArrayList<>(); |
| | | Integer index = 1; |
| | | Integer index1 = 1; |
| | | for (int c = 0; c < manageRecordIntervalsList.size(); c++) { |
| | | //è¶
è¿15è¡æ¢é¡µ |
| | | if (c % 15 == 0) { |
| | | List<RowRenderData> rows = new ArrayList<>(); |
| | | //è¡¨æ ¼çè¡æ° |
| | | for (int i = 0; i < 17; i++) { |
| | | RowRenderData rowRenderData = new RowRenderData(); |
| | | RowStyle rowStyle = new RowStyle(); |
| | | rowStyle.setHeight(40); |
| | | rowRenderData.setRowStyle(rowStyle); |
| | | List<CellRenderData> cells = new ArrayList<>(); |
| | | //è¡¨æ ¼çåæ° |
| | | for (int j = 0; j < 7; j++) { |
| | | CellRenderData cellRenderData = new CellRenderData(); |
| | | CellStyle cellStyle = new CellStyle(); |
| | | cellStyle.setVertAlign(XWPFTableCell.XWPFVertAlign.CENTER); |
| | | cellRenderData.setCellStyle(cellStyle); |
| | | List<ParagraphRenderData> paragraphRenderDataList = new ArrayList<>(); |
| | | ParagraphRenderData paragraphRenderData = new ParagraphRenderData(); |
| | | ParagraphStyle paragraphStyle = new ParagraphStyle(); |
| | | paragraphStyle.setAlign(ParagraphAlignment.CENTER); |
| | | paragraphRenderData.setParagraphStyle(paragraphStyle); |
| | | List<RenderData> renderData = new ArrayList<>(); |
| | | TextRenderData textRenderData = new TextRenderData(); |
| | | Style style = new Style(); |
| | | style.setFontFamily("å®ä½"); |
| | | style.setColor("000000"); |
| | | textRenderData.setStyle(style); |
| | | if (i == 0) { |
| | | //第ä¸è¡ |
| | | if (j == 0) { |
| | | //第ä¸ååºå· |
| | | textRenderData.setText("åºå·@No."); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 1) { |
| | | //第äºå |
| | | textRenderData.setText("æä»¶åç§°@File name"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 2) { |
| | | //第ä¸å |
| | | textRenderData.setText("æä»¶ç¼å·@File number"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 3) { |
| | | //第åå |
| | | textRenderData.setText("çæ¬å·@Version number"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 4) { |
| | | //第äºå |
| | | textRenderData.setText("修订å·@Revision number"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 5) { |
| | | //第å
å |
| | | textRenderData.setText("é宿§@Suitability"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else { |
| | | //第ä¸å |
| | | textRenderData.setText("夿³¨@Remark"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | else if (i == 16) { |
| | | //æåä¸è¡ |
| | | textRenderData.setText("注ï¼é宿§ä¸æ æâââè¡¨æ¤æä»¶éå®ï¼âÃâ表示ä¸éå®ï¼æä»¶é修订æä½åºã@Note:Theâââtable in the suitability column is suitable for this document, theâÃâtable is not suitable,and the document needs to berevised or invalidated @å®¡æ¥æ¥æï¼ @Review Date:@åå 审æ¥äººåç¾åï¼@Signatures of the reviewers particip ating in the review:â22"); |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } |
| | | else { |
| | | //å
¶ä»è¡ |
| | | if (j == 0) { |
| | | //第ä¸å |
| | | try { |
| | | String insReportCode = manageRecordIntervalsList.get((i - 1) + (index1 - 1) * 15).getDocumentCode(); |
| | | textRenderData.setText(index + ""); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | index++; |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 1) { |
| | | try { |
| | | textRenderData.setText(manageRecordIntervalsList.get((i - 1) + (index1 - 1) * 15).getDocumentName()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 2) { |
| | | try { |
| | | textRenderData.setText(manageRecordIntervalsList.get((i - 1) + (index1 - 1) * 15).getDocumentCode()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 3) { |
| | | try { |
| | | textRenderData.setText(manageRecordIntervalsList.get((i - 1) + (index1 - 1) * 15).getDocumentVersion()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 4) { |
| | | try { |
| | | textRenderData.setText(manageRecordIntervalsList.get((i -1) + (index1 - 1) * 15).getRevision()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else if (j == 5) { |
| | | try { |
| | | textRenderData.setText(manageRecordIntervalsList.get((i - 1) + (index1 - 1) * 15).getSuitability()); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } else { |
| | | try { |
| | | textRenderData.setText(manageRecordIntervalsList.get((i - 1) + (index1 - 1) * 15).getRemark() ); |
| | | } catch (Exception e) { |
| | | textRenderData.setText(""); |
| | | } |
| | | renderData.add(textRenderData); |
| | | paragraphRenderData.setContents(renderData); |
| | | paragraphRenderDataList.add(paragraphRenderData); |
| | | cellRenderData.setParagraphs(paragraphRenderDataList); |
| | | cells.add(cellRenderData); |
| | | } |
| | | } |
| | | } |
| | | rowRenderData.setCells(cells); |
| | | if (rowRenderData.getCells().size() != 0) { |
| | | rows.add(rowRenderData); |
| | | } |
| | | } |
| | | TableRenderData tableRenderData = new TableRenderData(); |
| | | tableRenderData.setRows(rows); |
| | | int countSize = tableRenderData.getRows().get(0).getCells().size(); |
| | | for (RowRenderData row : tableRenderData.getRows()) { |
| | | if (row.getCells().size() != countSize) { |
| | | throw new ErrorException("æ¯è¡åå
æ ¼ä¸ç¸ç"); |
| | | } |
| | | } |
| | | TableStyle tableStyle = new TableStyle(); |
| | | tableStyle.setWidth(XWPFTable.DEFAULT_PERCENTAGE_WIDTH); |
| | | tableStyle.setAlign(TableRowAlign.CENTER); |
| | | BorderStyle borderStyle = new BorderStyle(); |
| | | borderStyle.setColor("000000"); |
| | | borderStyle.setType(XWPFTable.XWPFBorderType.THICK); |
| | | borderStyle.setSize(14); |
| | | tableStyle.setLeftBorder(borderStyle); |
| | | tableStyle.setTopBorder(borderStyle); |
| | | tableStyle.setRightBorder(borderStyle); |
| | | tableStyle.setBottomBorder(borderStyle); |
| | | tableRenderData.setTableStyle(tableStyle); |
| | | Map<String, Object> table = new HashMap<>(); |
| | | table.put("intervals", tableRenderData); |
| | | table.put("index1", index1); |
| | | intervalsList.add(table); |
| | | index1++; |
| | | } |
| | | } |
| | | Integer finalIndex = index1; |
| | | XWPFTemplate template = XWPFTemplate.compile(url, builder.build()).render( |
| | | new HashMap<String, Object>() {{ |
| | | put("size", finalIndex); |
| | | put("intervalsList", intervalsList); |
| | | put("submitDate", LocalDate.now().format(DateTimeFormatter.ofPattern("yyyyå¹´MMæddæ¥"))); |
| | | put("submitDateEn", monthNames[LocalDate.now().getMonthValue() - 1] + " " + LocalDate.now().getDayOfMonth() + ", " + LocalDate.now().getYear()); |
| | | put("ratifyDate", "{{ratifyDate}}"); |
| | | put("ratifyDateEn","{{ratifyDateEn}}"); |
| | | put("ratifyUrl", null); |
| | | put("writeUrl", new FilePictureRenderData(100,50,imgUrl + "/" + signatureUrl)); |
| | | }}); |
| | | String name = UUID.randomUUID() + "_æä»¶å®æå®¡æ¥è®°å½è¡¨" + ".docx"; |
| | | try { |
| | | template.writeAndClose(Files.newOutputStream(Paths.get(wordUrl + "/" + name))); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | String path = wordUrl + "/" + name; |
| | | // å¤çåå¹¶åå
æ ¼çé®é¢ |
| | | try { |
| | | ZipSecureFile.setMinInflateRatio(0.0001); |
| | | FileInputStream stream = new FileInputStream(path); |
| | | XWPFDocument document = new XWPFDocument(stream); |
| | | List<XWPFTable> xwpfTables = document.getTables(); |
| | | for (int i = 0; i < xwpfTables.size(); i++) { |
| | | Set<String> set1 = new HashSet<>(); |
| | | Map<String, Map<String, Integer>> maps = new HashMap<>(); |
| | | for (int j = 0; j < xwpfTables.get(i).getRows().size(); j++) { |
| | | for (int k = 0; k < xwpfTables.get(i).getRows().get(j).getTableCells().size(); k++) { |
| | | if (xwpfTables.get(i).getRows().get(j).getTableCells().get(k).getText().indexOf("â") > -1) { |
| | | String[] split = xwpfTables.get(i).getRows().get(j).getTableCells().get(k).getText().split("â"); |
| | | if (set1.add(split[1])) { |
| | | Map<String, Integer> map = new HashMap<>(); |
| | | map.put("sr", j); |
| | | map.put("sc", k); |
| | | map.put("er", j + 0); |
| | | map.put("ec", k + 0); |
| | | maps.put(split[1], map); |
| | | } else { |
| | | Map<String, Integer> map1 = maps.get(split[1]); |
| | | if (j == map1.get("sr")) { |
| | | map1.put("ec", map1.get("ec") + 1); |
| | | } else if (k == map1.get("sc")) { |
| | | map1.put("er", map1.get("er") + 1); |
| | | } |
| | | } |
| | | String str = xwpfTables.get(i).getRows().get(j).getTableCells().get(k).getText().split("â")[0]; |
| | | xwpfTables.get(i).getRows().get(j).getTableCells().get(k).removeParagraph(0); |
| | | xwpfTables.get(i).getRows().get(j).getTableCells().get(k).setText(str); |
| | | xwpfTables.get(i).getRows().get(j).getTableCells().get(k).setVerticalAlignment(XWPFTableCell.XWPFVertAlign.CENTER); |
| | | xwpfTables.get(i).getRows().get(j).getTableCells().get(k).getParagraphArray(0).setAlignment(ParagraphAlignment.CENTER); |
| | | } |
| | | } |
| | | } |
| | | // åå
æ ¼æåº, é¿å
æ ¼å¼éä¹± |
| | | List<Map.Entry<String, Map<String, Integer>>> entries = new ArrayList<>(maps.entrySet()); |
| | | entries.sort((o1, o2) -> o1.getValue().get("sc") - o2.getValue().get("sc")); |
| | | // æç
§é¡ºåºæ·»å è¿éå |
| | | List<String> list = new ArrayList<>(); |
| | | for (Map.Entry<String, Map<String, Integer>> entry : entries) { |
| | | list.add(entry.getKey()); |
| | | } |
| | | for (int a = list.size() - 1; a >= 0; a--) { |
| | | Map<String, Integer> v = maps.get(list.get(a)); |
| | | for (int j = 0; j < v.get("er") - v.get("sr") + 1; j++) { |
| | | if (v.get("ec") > v.get("sc")) { |
| | | try { |
| | | mergeCellsHorizontally(xwpfTables.get(i), v.get("sr") + j, v.get("sc"), v.get("ec")); |
| | | // TableTools.mergeCellsHorizonal(xwpfTables.get(i), v.get("sr") + j, v.get("sc"), v.get("ec")); |
| | | } catch (Exception e) { |
| | | } |
| | | } |
| | | } |
| | | if (v.get("er") > v.get("sr")) { |
| | | try { |
| | | mergeCellsVertically(xwpfTables.get(i), v.get("sc"), v.get("sr"), v.get("er")); |
| | | // TableTools.mergeCellsVertically(xwpfTables.get(i), v.get("sc"), v.get("sr"), v.get("er")); |
| | | } catch (Exception e) { |
| | | } |
| | | } |
| | | } |
| | | } |
| | | FileOutputStream fileOutputStream = new FileOutputStream(path); |
| | | document.write(fileOutputStream); |
| | | fileOutputStream.close(); |
| | | } catch (FileNotFoundException e) { |
| | | throw new RuntimeException(e); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | //å¤çä¸è±ææ¢è¡çé®é¢ |
| | | try { |
| | | FileInputStream stream1 = new FileInputStream(path); |
| | | XWPFDocument document1 = new XWPFDocument(stream1); |
| | | List<XWPFTable> xwpfTables1 = document1.getTables(); |
| | | for (int i = 0; i < xwpfTables1.size(); i++) { |
| | | for (int j = 0; j < xwpfTables1.get(i).getRows().size(); j++) { |
| | | for (int k = 0; k < xwpfTables1.get(i).getRows().get(j).getTableCells().size(); k++) { |
| | | if (xwpfTables1.get(i).getRows().get(j).getTableCells().get(k).getText().contains("@")) { |
| | | String text = xwpfTables1.get(i).getRows().get(j).getTableCells().get(k).getText(); |
| | | String[] split = text.split("@"); |
| | | xwpfTables1.get(i).getRows().get(j).getTableCells().get(k).removeParagraph(0); |
| | | XWPFParagraph xwpfParagraph = xwpfTables1.get(i).getRows().get(j).getTableCells().get(k).addParagraph(); |
| | | XWPFRun run = xwpfParagraph.createRun(); |
| | | run.setText(split[0]); |
| | | if (ObjectUtils.isNotNull(split[1])) { |
| | | run.addBreak(); |
| | | run.setText(split[1]); |
| | | } |
| | | xwpfParagraph.setAlignment(ParagraphAlignment.CENTER); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | FileOutputStream fileOutputStream1 = new FileOutputStream(path); |
| | | document1.write(fileOutputStream1); |
| | | fileOutputStream1.close(); |
| | | } catch (FileNotFoundException e) { |
| | | throw new RuntimeException(e); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | return name; |
| | | } |
| | | |
| | | // æ°´å¹³åå¹¶åå
æ ¼ |
| | | private static void mergeCellsHorizontally(XWPFTable table, int row, int fromCol, int toCol) { |
| | | for (int i = fromCol; i <= toCol; i++) { |
| | | if (i == fromCol) { |
| | | table.getRow(row).getCell(i).getCTTc().addNewTcPr().addNewHMerge().setVal(STMerge.RESTART); |
| | | } else { |
| | | table.getRow(row).getCell(i).getCTTc().addNewTcPr().addNewHMerge().setVal(STMerge.CONTINUE); |
| | | } |
| | | } |
| | | } |
| | | |
| | | // åç´åå¹¶åå
æ ¼ |
| | | private static void mergeCellsVertically(XWPFTable table, int col, int fromRow, int toRow) { |
| | | for (int i = fromRow; i <= toRow; i++) { |
| | | if (i == fromRow) { |
| | | table.getRow(i).getCell(col).getCTTc().addNewTcPr().addNewVMerge().setVal(STMerge.RESTART); |
| | | } else { |
| | | table.getRow(i).getCell(col).getCTTc().addNewTcPr().addNewVMerge().setVal(STMerge.CONTINUE); |
| | | } |
| | | } |
| | | } |
| | | } |
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageRecordIssueRecycleServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageRecordTotalServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageRecordVerifyServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageReviewProgramFileServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageReviewProgramServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageReviewReportServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/service/impl/ManageRiskAssessmentResultsServiceImpl.java
cnas-manage/src/main/java/com/ruoyi/manage/vo/ManageControlPlanListVo.java
cnas-manage/src/main/java/com/ruoyi/manage/vo/ManageRiskAssessmentResultsVo.java
cnas-manage/src/main/java/com/ruoyi/manage/vo/MeetingParticipantsDetailsVo.java
cnas-manage/src/main/java/com/ruoyi/manage/vo/ReviewProgramDetailsVo.java
cnas-manage/src/main/resources/lib/aspose-words-15.12.0-jdk16.jar
cnas-manage/src/main/resources/lib/license.xml
cnas-manage/src/main/resources/mapper/ClientSatisfactionAnalyseFileMapper.xml
cnas-manage/src/main/resources/mapper/ClientSatisfactionMapper.xml
cnas-manage/src/main/resources/mapper/InternalCheckMapper.xml
cnas-manage/src/main/resources/mapper/InternalCorrectFileMapper.xml
cnas-manage/src/main/resources/mapper/InternalCorrectMapper.xml
cnas-manage/src/main/resources/mapper/InternalImplementMapper.xml
cnas-manage/src/main/resources/mapper/InternalMeetingDetailMapper.xml
cnas-manage/src/main/resources/mapper/InternalMeetingMapper.xml
cnas-manage/src/main/resources/mapper/InternalPlanDetailMapper.xml
cnas-manage/src/main/resources/mapper/InternalPlanMapper.xml
cnas-manage/src/main/resources/mapper/InternalReportMapper.xml
cnas-manage/src/main/resources/mapper/ManageControlPlanListMapper.xml
cnas-manage/src/main/resources/mapper/ManageDocumentAlterMapper.xml
cnas-manage/src/main/resources/mapper/ManageDocumentCancelMapper.xml
cnas-manage/src/main/resources/mapper/ManageDocumentControlledMapper.xml
cnas-manage/src/main/resources/mapper/ManageDocumentIssueRecycleMapper.xml
cnas-manage/src/main/resources/mapper/ManageDocumentListMapper.xml
cnas-manage/src/main/resources/mapper/ManageMeetingMapper.xml
cnas-manage/src/main/resources/mapper/ManageMeetingParticipantsMapper.xml
cnas-manage/src/main/resources/mapper/ManageRecordAuditMapper.xml
cnas-manage/src/main/resources/mapper/ManageRecordCancelMapper.xml
cnas-manage/src/main/resources/mapper/ManageRecordCheckMapper.xml
cnas-manage/src/main/resources/mapper/ManageRecordIntervalsMapper.xml
cnas-manage/src/main/resources/mapper/ManageRecordIntervalsTotalMapper.xml
cnas-manage/src/main/resources/mapper/ManageRecordIssueRecycleMapper.xml
cnas-manage/src/main/resources/mapper/ManageRecordTotalMapper.xml
cnas-manage/src/main/resources/mapper/ManageRecordVerifyMapper.xml
cnas-manage/src/main/resources/mapper/ManageReviewProgramFileMapper.xml
cnas-manage/src/main/resources/mapper/ManageReviewProgramMapper.xml
cnas-manage/src/main/resources/mapper/ManageReviewReportMapper.xml
cnas-manage/src/main/resources/mapper/ManageRiskAssessmentResultsMapper.xml
cnas-manage/src/main/resources/static/analysis-risk-factors.docx
cnas-manage/src/main/resources/static/audit-deal.docx
cnas-manage/src/main/resources/static/cancel-deal.docx
cnas-manage/src/main/resources/static/check-deal.docx
cnas-manage/src/main/resources/static/customer-satisfaction-questionnaire.docx
cnas-manage/src/main/resources/static/internal-check.docx
cnas-manage/src/main/resources/static/internal-correct.docx
cnas-manage/src/main/resources/static/internal-implement.docx
cnas-manage/src/main/resources/static/internal-meeting.docx
cnas-manage/src/main/resources/static/internal-plan.docx
cnas-manage/src/main/resources/static/internal-report.docx
cnas-manage/src/main/resources/static/intervals-deal.docx
cnas-manage/src/main/resources/static/recycle-deal.docx
cnas-manage/src/main/resources/static/review-meet.docx
cnas-manage/src/main/resources/static/review-program.docx
cnas-manage/src/main/resources/static/review-report.docx
cnas-manage/src/main/resources/static/risk-factor-identification-risk.docx
cnas-manage/src/main/resources/static/verify-deal.docx
inspect-server/pom.xml
inspect-server/src/main/java/com/ruoyi/basic/pojo/InsSample.java (已删除)
inspect-server/src/main/java/com/ruoyi/inspect/pojo/InsSample.java
inspect-server/src/main/java/com/ruoyi/inspect/util/HackLoopTableRenderPolicy.java
inspect-server/src/main/java/com/ruoyi/inspect/util/UserUtils.java
inspect-server/src/main/java/com/ruoyi/inspect/util/XWPFDocumentUtils.java
performance-server/src/main/java/com/ruoyi/performance/mapper/AuxiliaryCorrectionHoursMapper.java
performance-server/src/main/java/com/ruoyi/performance/mapper/AuxiliaryOutputWorkingHoursMapper.java
performance-server/src/main/java/com/ruoyi/performance/mapper/AuxiliaryWorkingHoursDayMapper.java
performance-server/src/main/java/com/ruoyi/performance/service/impl/AuxiliaryCorrectionHoursServiceImpl.java
performance-server/src/main/java/com/ruoyi/performance/service/impl/AuxiliaryOriginalHoursServiceImpl.java
performance-server/src/main/java/com/ruoyi/performance/service/impl/AuxiliaryOutputWorkingHoursServiceImpl.java
performance-server/src/main/java/com/ruoyi/performance/service/impl/AuxiliaryWorkingHoursDayServiceImpl.java
pom.xml
ruoyi-admin/pom.xml
ruoyi-admin/src/main/resources/application-druid.yml
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/User.java
ruoyi-common/src/main/java/com/ruoyi/common/utils/DateImageUtil.java
ruoyi-framework/src/main/java/com/ruoyi/framework/exception/ErrorException.java
ruoyi-framework/src/main/java/com/ruoyi/framework/exception/MyFileException.java
ruoyi-system/src/main/java/com/ruoyi/system/mapper/UserMapper.java
ruoyi-system/src/main/resources/mapper/system/UserMapper.xml |