| | |
| | | "avatar": "", |
| | | "version": "4.9.2", |
| | | "createdTime": "2025-3-10 16:38:19", |
| | | "updatedTime": "2025-7-8 15:34:54", |
| | | "updatedTime": "2025-7-9 19:20:22", |
| | | "dbConns": [], |
| | | "profile": { |
| | | "default": { |
| | |
| | | "id": "F19406B3-1B81-484F-B916-81143EB092A4" |
| | | }, |
| | | { |
| | | "defKey": "process_technicianâ_signature", |
| | | "defKey": "process_technician_signature", |
| | | "defName": "å·¥èºåç¾å", |
| | | "comment": "", |
| | | "type": "", |
| | |
| | | "id": "44FAEC7F-5BA9-4AD0-8692-DA36C64E4B7C" |
| | | }, |
| | | { |
| | | "defKey": "process_technicianâ_signature_time", |
| | | "defKey": "process_technician_signature_time", |
| | | "defName": "å·¥èºåç¾åæ¶é´", |
| | | "comment": "", |
| | | "type": "", |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.common.util; |
| | | |
| | | import org.apache.poi.xwpf.usermodel.XWPFParagraph; |
| | | import org.apache.poi.xwpf.usermodel.XWPFRun; |
| | | import org.apache.poi.xwpf.usermodel.XWPFTableCell; |
| | | |
| | | public class WordParseUtils { |
| | | /** |
| | | * å
¼å®¹çåå
æ ¼ææ¬æå |
| | | */ |
| | | public static String getCellText(XWPFTableCell cell) { |
| | | if (cell == null) { |
| | | return ""; |
| | | } |
| | | String text = cell.getText(); |
| | | |
| | | return text.toString(); |
| | | } |
| | | |
| | | /** |
| | | * å
容æ¸
ç |
| | | */ |
| | | private String cleanContent(String text) { |
| | | if (text == null) { |
| | | return ""; |
| | | } |
| | | // æ¿æ¢ç¹æ®ç©ºæ ¼ååå¹¶è¿ç»ç©ºæ ¼ |
| | | text = text.replace('\u00A0', ' ') |
| | | .replace('\u2007', ' ') |
| | | .replace('\u202F', ' ') |
| | | .replaceAll("\\s+", " "); |
| | | |
| | | // è§èæ ç¹ç¬¦å· |
| | | return text.replace(',', 'ã') |
| | | .replace('ï¼', 'ã') |
| | | .replace(';', 'ï¼') |
| | | .replace('ï¼', 'ï¼') |
| | | .replace(':', 'ï¼') |
| | | .replace('ï¼', 'ï¼') |
| | | .trim(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.dto; |
| | | |
| | | 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.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 设å¤å°è´¦å¯¼å
¥ä¸ç¨ |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | public class EamEquipmentDto { |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /** |
| | | * å建人 |
| | | */ |
| | | @ApiModelProperty(value = "å建人") |
| | | @Dict(dicCode = "sys_user, realname, username") |
| | | private String createBy; |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss ") |
| | | private Date createTime; |
| | | /** |
| | | * æ´æ°äºº |
| | | */ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | @Dict(dicCode = "sys_user, realname, username") |
| | | private String updateBy; |
| | | /** |
| | | * æ´æ°æ¶é´ |
| | | */ |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss ") |
| | | private Date updateTime; |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private Integer delFlag; |
| | | /** |
| | | * å
³é®è®¾å¤æ è¯ |
| | | */ |
| | | @Excel(name = "å
³é®è®¾å¤æ è¯", width = 15, orderNum = "1") |
| | | @ApiModelProperty(value = "å
³é®è®¾å¤æ è¯") |
| | | @Dict(dicCode = "equipment_importance") |
| | | private String equipmentImportance; |
| | | |
| | | /** |
| | | * ç»ä¸ç¼ç |
| | | */ |
| | | @Excel(name = "ç»ä¸ç¼ç ", width = 15, orderNum = "2") |
| | | @ApiModelProperty(value = "ç»ä¸ç¼ç ") |
| | | private String equipmentCode; |
| | | /** |
| | | * 设å¤åç§° |
| | | */ |
| | | @Excel(name = "设å¤åç§°", width = 15, orderNum = "3") |
| | | @ApiModelProperty(value = "设å¤åç§°") |
| | | private String equipmentName; |
| | | |
| | | /** |
| | | * 工段 |
| | | */ |
| | | @Excel(name = "ä¸å¿/å·¥åº/工段", width = 15, orderNum = "4",dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "org_code") |
| | | @ApiModelProperty(value = "ä¸å¿/å·¥åº/工段") |
| | | @Dict(dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "factory_code") |
| | | private String factoryOrgCode; |
| | | |
| | | /** |
| | | * æå±åç±» |
| | | */ |
| | | @Excel(name = "æå±åç±»", width = 15, orderNum = "5") |
| | | @ApiModelProperty(value = "æå±åç±»") |
| | | @Dict(dicCode = "equipment_category") |
| | | private String equipmentCategory; |
| | | |
| | | @TableField(exist = false) |
| | | @Excel(name = "ä¿å
»ç¶æ", width = 15, orderNum = "6",dicCode = "equipment_maintenance_status") |
| | | @ApiModelProperty(value = "ä¿å
»ç¶æ") |
| | | @Dict(dicCode = "equipment_maintenance_status") |
| | | private String maintenanceStatus; |
| | | |
| | | @TableField(exist = false) |
| | | @Excel(name = "ç»´ä¿®ç¶æ", width = 15, orderNum = "7",dicCode = "equipment_repair_status") |
| | | @ApiModelProperty(value = "ç»´ä¿®ç¶æ") |
| | | @Dict(dicCode = "equipment_repair_status") |
| | | private String repairStatus; |
| | | |
| | | |
| | | /**ææ¯ç¶æ*/ |
| | | @TableField(exist = false) |
| | | @Excel(name = "ææ¯ç¶æ", width = 15, orderNum = "8",dicCode = "equipment_technology_status") |
| | | @ApiModelProperty(value = "ææ¯ç¶æ") |
| | | @Dict(dicCode = "equipment_technology_status") |
| | | private String technologyStatus; |
| | | |
| | | /** |
| | | * ABCæ è¯ |
| | | */ |
| | | @Excel(name = "ABCæ è¯", width = 15, orderNum = "9",dicCode = "abc_flag") |
| | | @ApiModelProperty(value = "ABCæ è¯") |
| | | @Dict(dicCode = "abc_flag") |
| | | private String abcFlag; |
| | | |
| | | /** |
| | | * ç»´ä¿®çç» |
| | | */ |
| | | @Excel(name = "ç»´ä¿®çç»", width = 15, orderNum = "10",dictTable = "eam_base_repair_depart",dicText = "depart_name",dicCode = "org_code") |
| | | @ApiModelProperty(value = "ç»´ä¿®çç»") |
| | | @Dict(dictTable = "eam_base_repair_depart",dicText = "depart_name",dicCode = "org_code") |
| | | private String repairDepartOrgCode; |
| | | |
| | | /** |
| | | * å®å
¨é
ç½® |
| | | */ |
| | | @Excel(name = "å®å
¨é
ç½®", width = 15, orderNum = "11") |
| | | @ApiModelProperty(value = "å®å
¨é
ç½®") |
| | | private String securityConfiguration; |
| | | |
| | | /** |
| | | * å·å´ç³»ç» |
| | | */ |
| | | @Excel(name = "å·å´ç³»ç»", width = 15, orderNum = "15",dicCode = "cooling_system") |
| | | @ApiModelProperty(value = "å·å´ç³»ç»") |
| | | @Dict(dicCode = "cooling_system") |
| | | private String coolSystem; |
| | | |
| | | /** |
| | | * çç«å¨ |
| | | */ |
| | | @Excel(name = "çç«å¨", width = 15, orderNum = "16") |
| | | @ApiModelProperty(value = "çç«å¨") |
| | | private String fireExtinguisher; |
| | | |
| | | /** |
| | | * çç«å¨æææè³ |
| | | */ |
| | | @Excel(name = "çç«å¨æææè³", width = 15, orderNum = "17") |
| | | @ApiModelProperty(value = "çç«å¨æææè³") |
| | | private String fireExtinguisherExpirationDate; |
| | | |
| | | /** |
| | | * æä½ç³»ç» |
| | | */ |
| | | @Excel(name = "æä½ç³»ç»", width = 15, orderNum = "18",dicCode = "yn") |
| | | @ApiModelProperty(value = "æä½ç³»ç»") |
| | | @Dict(dicCode = "yn") |
| | | private String operationSystem; |
| | | |
| | | /** |
| | | * ç³»ç» |
| | | */ |
| | | @Excel(name = "ç³»ç»", width = 15, orderNum = "19") |
| | | @ApiModelProperty(value = "ç³»ç»") |
| | | private String system; |
| | | |
| | | /** |
| | | * 设å¤ç«¯å£ |
| | | */ |
| | | @Excel(name = "设å¤ç«¯å£", width = 15, orderNum = "20") |
| | | @ApiModelProperty(value = "设å¤ç«¯å£") |
| | | private String equipmentPort; |
| | | |
| | | /** |
| | | * åæ æ°é |
| | | */ |
| | | @Excel(name = "åæ æ°é", width = 15, orderNum = "21") |
| | | @ApiModelProperty(value = "åæ æ°é") |
| | | private Integer coordinateNum; |
| | | |
| | | /** |
| | | * éé(å¨) |
| | | */ |
| | | @Excel(name = "éé(å¨)", width = 15, orderNum = "22") |
| | | @ApiModelProperty(value = "éé(å¨)") |
| | | private BigDecimal equipmentWeight; |
| | | |
| | | /** |
| | | * éé计éåä½ |
| | | */ |
| | | @Excel(name = "éé计éåä½", width = 15, orderNum = "23") |
| | | @ApiModelProperty(value = "éé计éåä½") |
| | | private String weightUnit; |
| | | |
| | | /** |
| | | * åè½ä½ç½® |
| | | */ |
| | | @Excel(name = "åè½ä½ç½®", width = 15, orderNum = "24") |
| | | @ApiModelProperty(value = "åè½ä½ç½®") |
| | | private String functionalLocation; |
| | | |
| | | /** |
| | | * å®è£
ä½ç½® |
| | | */ |
| | | @Excel(name = "å®è£
ä½ç½®", width = 15, orderNum = "25") |
| | | @ApiModelProperty(value = "å®è£
ä½ç½®") |
| | | private String installationPosition; |
| | | |
| | | /** |
| | | * åºåæ¥æ |
| | | */ |
| | | @Excel(name = "åºåæ¥æ", width = 25, format = "yyyy/MM/dd", orderNum = "26") |
| | | @ApiModelProperty(value = "åºåæ¥æ") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private Date leaveFactoryDate; |
| | | |
| | | /** |
| | | * ç«é¡¹å¡å· |
| | | */ |
| | | @Excel(name = "ç«é¡¹å¡å·", width = 15, orderNum = "27") |
| | | @ApiModelProperty(value = "ç«é¡¹å¡å·") |
| | | private String cardNumber; |
| | | |
| | | /** |
| | | * èµéæ¥æº |
| | | */ |
| | | @Excel(name = "èµéæ¥æº", width = 15, orderNum = "28") |
| | | @ApiModelProperty(value = "èµéæ¥æº") |
| | | private String fundingSource; |
| | | |
| | | /** |
| | | * éªæ¶æ¥æ |
| | | */ |
| | | @Excel(name = "æç¨æ¥æ", width = 25, format = "yyyy/MM/dd", orderNum = "29") |
| | | @ApiModelProperty(value = "éªæ¶æ¥æ") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private Date acceptanceCheckDate; |
| | | |
| | | /** |
| | | * åºåç¼å· |
| | | */ |
| | | @Excel(name = "åºåç¼å·", width = 15, orderNum = "30") |
| | | @ApiModelProperty(value = "åºåç¼å·") |
| | | private String factoryNumber; |
| | | |
| | | /** |
| | | * èµäº§å¶é å |
| | | */ |
| | | @Excel(name = "èµäº§å¶é å", width = 25, orderNum = "31") |
| | | @ApiModelProperty(value = "èµäº§å¶é å") |
| | | private String manufacturingEnterprise; |
| | | |
| | | /** |
| | | * èµäº§æ¥æºå½å®¶ |
| | | */ |
| | | @Excel(name = "èµäº§æ¥æºå½å®¶", width = 25, orderNum = "32") |
| | | @ApiModelProperty(value = "èµäº§æ¥æºå½å®¶") |
| | | private String originCountry; |
| | | |
| | | /** |
| | | * åå· |
| | | */ |
| | | @Excel(name = "åå·", width = 15, orderNum = "33") |
| | | @ApiModelProperty(value = "åå·") |
| | | private String equipmentModel; |
| | | |
| | | /** |
| | | * 设å¤è§æ ¼ |
| | | */ |
| | | @Excel(name = "设å¤è§æ ¼", width = 15, orderNum = "34") |
| | | @ApiModelProperty(value = "设å¤è§æ ¼") |
| | | private String equipmentSpecification; |
| | | |
| | | /** |
| | | * æ»åç(KW) |
| | | */ |
| | | @Excel(name = "æ»åç(KW)", width = 15, orderNum = "35") |
| | | @ApiModelProperty(value = "æ»åç") |
| | | private String equipmentPower; |
| | | |
| | | /** |
| | | * è´¨ä¿å¼å§æ¥æ |
| | | */ |
| | | @Excel(name = "è´¨ä¿å¼å§æ¥æ", width = 15, orderNum = "36") |
| | | @ApiModelProperty(value = "è´¨ä¿å¼å§æ¥æ") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private Date warrantyStartDate; |
| | | |
| | | /** |
| | | * è´¨ä¿ç»ææ¥æ |
| | | */ |
| | | @Excel(name = "è´¨ä¿ç»ææ¥æ", width = 15, orderNum = "37") |
| | | @ApiModelProperty(value = "è´¨ä¿ç»ææ¥æ") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private Date warrantyEndDate; |
| | | |
| | | /** |
| | | * èµäº§ç¶æ |
| | | */ |
| | | @Excel(name = "èµäº§ç¶æ", width = 15, orderNum = "38",dicCode = "asset_status") |
| | | @ApiModelProperty(value = "èµäº§ç¶æ") |
| | | @Dict(dicCode = "asset_status") |
| | | private String assetStatus; |
| | | |
| | | /**ææ°äºä¿æ¥æ*/ |
| | | @TableField(exist = false) |
| | | @Excel(name = "ææ°äºä¿æ¥æ", width = 15, orderNum = "39") |
| | | @ApiModelProperty(value = "ææ°äºä¿æ¥æ") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private java.util.Date latestSecondMaintenance; |
| | | |
| | | /**䏿¬¡äºä¿æ¥æ*/ |
| | | @TableField(exist = false) |
| | | @Excel(name = "䏿¬¡äºä¿æ¥æ", width = 15, orderNum = "40") |
| | | @ApiModelProperty(value = "䏿¬¡äºä¿æ¥æ") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private java.util.Date nextSecondMaintenance; |
| | | |
| | | |
| | | /**æ¬æ¬¡ä¸ä¿æ¥æ*/ |
| | | @TableField(exist = false) |
| | | @Excel(name = "æ¬æ¬¡ä¸ä¿æ¥æ", width = 15, orderNum = "41") |
| | | @ApiModelProperty(value = "æ¬æ¬¡ä¸ä¿æ¥æ") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private java.util.Date latestThirdMaintenance; |
| | | |
| | | /**䏿¬¡ä¸ä¿æ¥æ*/ |
| | | @TableField(exist = false) |
| | | @Excel(name = "䏿¬¡ä¸ä¿æ¥æ", width = 15, orderNum = "42") |
| | | @ApiModelProperty(value = "䏿¬¡ä¸ä¿æ¥æ") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private java.util.Date nextThirdMaintenance; |
| | | |
| | | /**ä¸ä¿å¨æ(å¹´)*/ |
| | | @TableField(exist = false) |
| | | @Excel(name = "ä¸ä¿å¨æ(å¹´)", width = 15, orderNum = "43") |
| | | @ApiModelProperty(value = "ä¸ä¿å¨æ(å¹´)") |
| | | private Integer thirdMaintenancePeriod; |
| | | |
| | | /**ææ°ææ¯ç¶æé´å®æ¥æ*/ |
| | | @TableField(exist = false) |
| | | @Excel(name = "ææ°ææ¯ç¶æé´å®æ¥æ", width = 15, orderNum = "44") |
| | | @ApiModelProperty(value = "ææ°ææ¯ç¶æé´å®æ¥æ") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private java.util.Date latestTechnologyCheck; |
| | | /**ææ¯ç¶æä¸æ¬¡é´å®æ¥æ*/ |
| | | @TableField(exist = false) |
| | | @Excel(name = "ææ¯ç¶æä¸æ¬¡é´å®æ¥æ", width = 15, orderNum = "45") |
| | | @ApiModelProperty(value = "ææ¯ç¶æä¸æ¬¡é´å®æ¥æ") |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private java.util.Date nextTechnologyCheck; |
| | | /**ææ¯é´å®å¨æ(å¹´)*/ |
| | | @TableField(exist = false) |
| | | @Excel(name = "ææ¯é´å®å¨æ(å¹´)", width = 15, orderNum = "46") |
| | | @ApiModelProperty(value = "ææ¯é´å®å¨æ(å¹´)") |
| | | private Integer technologyCheckPeriod; |
| | | |
| | | /** |
| | | * æ¯å¦ä¸»è®¾å¤ |
| | | */ |
| | | @Excel(name = "æ¯å¦ä¸»è®¾å¤", width = 15, dicCode = "yn", orderNum = "47") |
| | | @ApiModelProperty(value = "æ¯å¦ä¸»è®¾å¤") |
| | | @Dict(dicCode = "yn") |
| | | private String masterFlag; |
| | | |
| | | |
| | | /** |
| | | * æ¯å¦æå·¥èºåæ° |
| | | */ |
| | | @Excel(name = "ææ å·¥èºåæ°", width = 15, dicCode = "yn", orderNum = "48") |
| | | @ApiModelProperty(value = "æ¯å¦æå·¥èºåæ°") |
| | | @Dict(dicCode = "yn") |
| | | private String processParametersFlag; |
| | | /** |
| | | * æ¯å¦æç²¾åº¦åæ° |
| | | */ |
| | | @Excel(name = "ææ ç²¾åº¦åæ°", width = 15, dicCode = "yn", orderNum = "49") |
| | | @ApiModelProperty(value = "æ¯å¦æç²¾åº¦åæ°") |
| | | @Dict(dicCode = "yn") |
| | | private String precisionParametersFlag; |
| | | |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @Excel(name = "夿³¨", width = 50, orderNum = "50") |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String remark; |
| | | |
| | | } |
| | |
| | | /** |
| | | * 工段 |
| | | */ |
| | | @Excel(name = "ä¸å¿/å·¥åº/工段", width = 15, orderNum = "4",dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "org_code") |
| | | @Excel(name = "ä¸å¿/å·¥åº/工段", width = 15, orderNum = "4") |
| | | @ApiModelProperty(value = "ä¸å¿/å·¥åº/工段") |
| | | @Dict(dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "org_code") |
| | | @Dict(dictTable = "eam_base_factory",dicText = "factory_name",dicCode = "factory_code") |
| | | private String factoryOrgCode; |
| | | |
| | | /** |
| | |
| | | select * from |
| | | eam_equipment |
| | | where del_flag = 0 |
| | | and factory_org_code =(select org_cod,e from eam_base_factory where eam_base_factory.id=#{eamCenterId}) |
| | | and factory_org_code =(select org_code from eam_base_factory where eam_base_factory.id=#{eamCenterId}) |
| | | </select> |
| | | </mapper> |
| | |
| | | List<BaseFactoryUser> baseFactoryUserList=baseFactoryUserService. |
| | | list(new LambdaQueryWrapper<BaseFactoryUser>().eq(BaseFactoryUser::getUserId,sysUser.getId())); |
| | | if(!CollectionUtils.isEmpty(baseFactoryUserList)){ |
| | | List<String> factoryIds = baseFactoryUserList.stream().map(BaseFactoryUser::getFactoryId).collect(Collectors.toList()); |
| | | List<String> factoryCode= baseFactoryService.listByIds(factoryIds).stream().map(BaseFactory::getFactoryCode).collect(Collectors.toList()); |
| | | Set<String> factoryIds = baseFactoryUserList.stream().map(BaseFactoryUser::getFactoryId).collect(Collectors.toSet()); |
| | | Set<String> factoryCode= baseFactoryService.listByIds(factoryIds).stream().map(BaseFactory::getOrgCode).collect(Collectors.toSet()); |
| | | queryWrapper.in("e.factory_org_code", factoryCode); |
| | | }else { |
| | | return page; |
| | | } |
| | | } |
| | | //æ¥è¯¢æ¡ä»¶è¿æ»¤ |
| | |
| | | List<BaseFactoryUser> baseFactoryUserList=baseFactoryUserService. |
| | | list(new LambdaQueryWrapper<BaseFactoryUser>().eq(BaseFactoryUser::getUserId,sysUser.getId())); |
| | | if(!CollectionUtils.isEmpty(baseFactoryUserList)){ |
| | | List<String> factoryIds = baseFactoryUserList.stream().map(BaseFactoryUser::getFactoryId).collect(Collectors.toList()); |
| | | List<String> factoryCode= baseFactoryService.listByIds(factoryIds).stream().map(BaseFactory::getFactoryCode).collect(Collectors.toList()); |
| | | Set<String> factoryIds = baseFactoryUserList.stream().map(BaseFactoryUser::getFactoryId).collect(Collectors.toSet()); |
| | | Set<String> factoryCode= baseFactoryService.listByIds(factoryIds).stream().map(BaseFactory::getOrgCode).collect(Collectors.toSet()); |
| | | queryWrapper.in("e.factory_org_code", factoryCode); |
| | | } else { |
| | | return Collections.emptyList(); |
| | | } |
| | | } |
| | | |
| | |
| | | if (sysUser == null) { |
| | | return null; |
| | | } |
| | | if (StringUtils.isNotBlank(sysUser.getEquipmentIds())) { |
| | | if (StringUtils.isNotBlank(sysUser.getEamEquipmentIds())) { |
| | | //éæ©äºè®¾å¤ï¼æ ¹æ®è®¾å¤idè¿æ»¤è®¾å¤ |
| | | List<String> equipArr = Arrays.asList(sysUser.getEquipmentIds().split(",")); |
| | | List<String> equipArr = Arrays.asList(sysUser.getEamEquipmentIds().split(",")); |
| | | queryWrapper.in("equipment_code", equipArr); |
| | | } else { |
| | | //没æéæ©è®¾å¤ï¼æ ¹æ®è½¦é´è¿æ»¤è®¾å¤ |
| | |
| | | list(new LambdaQueryWrapper<BaseFactoryUser>().eq(BaseFactoryUser::getUserId, sysUser.getId())); |
| | | if (!CollectionUtils.isEmpty(baseFactoryUserList)) { |
| | | Set<String> factoryIds = baseFactoryUserList.stream().map(BaseFactoryUser::getFactoryId).collect(Collectors.toSet()); |
| | | Set<String> factoryCodeList = baseFactoryService.listByIds(factoryIds).stream().map(BaseFactory::getFactoryCode).collect(Collectors.toSet()); |
| | | Set<String> factoryCodeList = baseFactoryService.listByIds(factoryIds).stream().map(BaseFactory::getOrgCode).collect(Collectors.toSet()); |
| | | queryWrapper.in("factory_org_code", factoryCodeList); |
| | | } else { |
| | | return null; |
| | |
| | | List<BaseFactoryUser> baseFactoryUserList=baseFactoryUserService. |
| | | list(new LambdaQueryWrapper<BaseFactoryUser>().eq(BaseFactoryUser::getUserId,sysUser.getId())); |
| | | if(!CollectionUtils.isEmpty(baseFactoryUserList)){ |
| | | List<String> factoryIds = baseFactoryUserList.stream().map(BaseFactoryUser::getFactoryId).collect(Collectors.toList()); |
| | | List<String> factoryCode= baseFactoryService.listByIds(factoryIds).stream().map(BaseFactory::getFactoryCode).collect(Collectors.toList()); |
| | | Set<String> factoryIds = baseFactoryUserList.stream().map(BaseFactoryUser::getFactoryId).collect(Collectors.toSet()); |
| | | Set<String> factoryCode= baseFactoryService.listByIds(factoryIds).stream().map(BaseFactory::getOrgCode).collect(Collectors.toSet()); |
| | | queryWrapper.in("e.factory_org_code", factoryCode); |
| | | }else { |
| | | return Collections.emptyList(); |
| | | } |
| | | |
| | | } |
| | |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.common.util.TranslateDictTextUtils; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.eam.dto.EamEquipmentDto; |
| | | import org.jeecg.modules.eam.entity.EamEquipment; |
| | | import org.jeecg.modules.eam.entity.EamEquipmentExtend; |
| | | import org.jeecg.modules.eam.request.EamEquipmentQuery; |
| | |
| | | import org.jeecg.modules.eam.vo.EquipmentSearchResult; |
| | | //import org.jeecg.modules.mdc.entity.MdcEquipment; |
| | | //import org.jeecg.modules.mdc.service.IMdcEquipmentService; |
| | | import org.jeecg.modules.system.entity.BaseFactory; |
| | | import org.jeecg.modules.system.service.IBaseFactoryService; |
| | | import org.jeecgframework.poi.excel.ExcelImportUtil; |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | | import org.jeecgframework.poi.excel.entity.ExportParams; |
| | | import org.jeecgframework.poi.excel.entity.ImportParams; |
| | | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | private ObjectMapper objectMapper; |
| | | @Autowired |
| | | private TranslateDictTextUtils translateDictTextUtils; |
| | | @Autowired |
| | | private IBaseFactoryService baseFactoryService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | |
| | | public ModelAndView exportXls(HttpServletRequest request,EamEquipmentQuery eamEquipment) { |
| | | LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | List<EamEquipment> equipmentList=eamEquipmentService.exportList(eamEquipment); |
| | | List<EamEquipmentDto> eamEquipmentDtos=new ArrayList<>(); |
| | | String selections = request.getParameter("selections"); |
| | | if (oConvertUtils.isNotEmpty(selections)) { |
| | | List<String> selectionList = Arrays.asList(selections.split(",")); |
| | | equipmentList = equipmentList.stream().filter(item -> selectionList.contains(item.getId())).collect(Collectors.toList()); |
| | | } |
| | | |
| | | equipmentList.forEach(item -> { |
| | | EamEquipmentDto eamEquipmentDto = new EamEquipmentDto(); |
| | | BeanUtils.copyProperties(item,eamEquipmentDto); |
| | | eamEquipmentDtos.add(eamEquipmentDto); |
| | | }); |
| | | // Step.3 AutoPoi 导åºExcel |
| | | ModelAndView mv = new ModelAndView(new JeecgEntityExcelView()); |
| | | mv.addObject(NormalExcelConstants.FILE_NAME, "设å¤å°è´¦"); //æ¤å¤è®¾ç½®çfilenameæ æ ,å端ä¼éæ´æ°è®¾ç½®ä¸ä¸ |
| | | mv.addObject(NormalExcelConstants.CLASS, EamEquipment.class); |
| | | mv.addObject(NormalExcelConstants.CLASS, EamEquipmentDto.class); |
| | | mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("设å¤å°è´¦" + "æ¥è¡¨", "导åºäºº:" + sysUser.getRealname(), "设å¤å°è´¦")); |
| | | mv.addObject(NormalExcelConstants.DATA_LIST, equipmentList); |
| | | mv.addObject(NormalExcelConstants.DATA_LIST, eamEquipmentDtos); |
| | | return mv; |
| | | |
| | | } |
| | |
| | | sb.append(String.format("设å¤ç¼ç [%s]å·²åå¨ï¼æ æ³éå¤å¯¼å
¥\n\r", eamEquipment.getEquipmentCode())); |
| | | continue; |
| | | } |
| | | BaseFactory baseFactory=baseFactoryService.searchCenterByKeyWord(eamEquipment.getFactoryOrgCode()); |
| | | if(baseFactory==null){ |
| | | sb.append(String.format("EAMä¸å¿ä¿¡æ¯[%s]ä¸åå¨ï¼æ æ³å¯¼å
¥\n\r", eamEquipment.getFactoryOrgCode())); |
| | | continue; |
| | | }else { |
| | | eamEquipment.setFactoryOrgCode(baseFactory.getOrgCode()); |
| | | } |
| | | EamEquipment equipment = eamEquipmentService.saveEquipment(eamEquipment); |
| | | if (equipment == null) { |
| | | //ä¿å失败ï¼è·³è¿æ¬æ¬¡å¾ªç¯ |
| | |
| | | |
| | | for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) { |
| | | MultipartFile file = entity.getValue(); |
| | | String fileName = file.getOriginalFilename(); |
| | | |
| | | Result<?> importResult = eamMaintenanceStandardService.importPointInspectionExcel(file); |
| | | |
| | | if (importResult.isSuccess()) { |
| | | results.put(fileName, "æå: " + importResult.getMessage()); |
| | | successCount++; |
| | | } else { |
| | | results.put(fileName, "失败: " + importResult.getMessage()); |
| | | failureCount++; |
| | | } |
| | | file.getOriginalFilename(); |
| | | return eamMaintenanceStandardService.importPointInspectionExcel(file); |
| | | } |
| | | |
| | | // æå»ºååº |
| | |
| | | response.put("successCount", successCount); |
| | | response.put("failureCount", failureCount); |
| | | |
| | | if (failureCount == 0) { |
| | | return Result.ok("ææç¹æ£æä»¶å¯¼å
¥æå"+response); |
| | | } else if (successCount == 0) { |
| | | return Result.error("ææç¹æ£æä»¶å¯¼å
¥å¤±è´¥", response); |
| | | } else { |
| | | return Result.error("é¨åç¹æ£æä»¶å¯¼å
¥å¤±è´¥", response); |
| | | } |
| | | return Result.ok("导å
¥å®æ" + response); |
| | | |
| | | } catch (Exception e) { |
| | | log.error("ç¹æ£å¯¼å
¥å¤çå¼å¸¸", e); |
| | |
| | | |
| | | for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) { |
| | | MultipartFile file = entity.getValue(); |
| | | String fileName = file.getOriginalFilename(); |
| | | |
| | | Result<?> importResult = eamMaintenanceStandardService.importMaintenanceStandard(file, "SECOND"); |
| | | |
| | | if (importResult.isSuccess()) { |
| | | results.put(fileName, "æå: " + importResult.getMessage()); |
| | | successCount++; |
| | | } else { |
| | | results.put(fileName, "失败: " + importResult.getMessage()); |
| | | failureCount++; |
| | | } |
| | | file.getOriginalFilename(); |
| | | return eamMaintenanceStandardService.importMaintenanceStandard(file, "SECOND"); |
| | | } |
| | | |
| | | // æå»ºæç»ååº |
| | |
| | | response.put("successCount", successCount); |
| | | response.put("failureCount", failureCount); |
| | | |
| | | if (failureCount > 0) { |
| | | return Result.error("é¨åæä»¶å¯¼å
¥å¤±è´¥", response); |
| | | } |
| | | |
| | | return Result.ok("æææä»¶å¯¼å
¥æå"+response); |
| | | return Result.ok("导å
¥å®æ"+response); |
| | | |
| | | } catch (Exception e) { |
| | | log.error("导å
¥å¤çå¼å¸¸", e); |
| | |
| | | |
| | | for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) { |
| | | MultipartFile file = entity.getValue(); |
| | | String fileName = file.getOriginalFilename(); |
| | | |
| | | Result<?> importResult = eamMaintenanceStandardService.importMaintenanceStandard(file, "THIRD"); |
| | | |
| | | if (importResult.isSuccess()) { |
| | | results.put(fileName, "æå: " + importResult.getMessage()); |
| | | successCount++; |
| | | } else { |
| | | results.put(fileName, "失败: " + importResult.getMessage()); |
| | | failureCount++; |
| | | } |
| | | file.getOriginalFilename(); |
| | | return eamMaintenanceStandardService.importMaintenanceStandard(file, "THIRD"); |
| | | } |
| | | |
| | | // æå»ºæç»ååº |
| | |
| | | response.put("successCount", successCount); |
| | | response.put("failureCount", failureCount); |
| | | |
| | | if (failureCount > 0) { |
| | | return Result.error("é¨åæä»¶å¯¼å
¥å¤±è´¥", response); |
| | | } |
| | | |
| | | return Result.ok("æææä»¶å¯¼å
¥æå"+response); |
| | | return Result.ok("导å
¥å®æ"+response); |
| | | |
| | | } catch (Exception e) { |
| | | log.error("导å
¥å¤çå¼å¸¸", e); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusChange; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusChangeService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æåæ´ç³è¯· |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags="ææ¯ç¶æåæ´ç³è¯·") |
| | | @RestController |
| | | @RequestMapping("/eam/eamTechnicalStatusChange") |
| | | public class EamTechnicalStatusChangeController extends JeecgController<EamTechnicalStatusChange, IEamTechnicalStatusChangeService> { |
| | | @Autowired |
| | | private IEamTechnicalStatusChangeService eamTechnicalStatusChangeService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param eamTechnicalStatusChange |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="ææ¯ç¶æåæ´ç³è¯·-å页å表æ¥è¯¢", notes="ææ¯ç¶æåæ´ç³è¯·-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamTechnicalStatusChange eamTechnicalStatusChange, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<EamTechnicalStatusChange> queryWrapper = QueryGenerator.initQueryWrapper(eamTechnicalStatusChange, req.getParameterMap()); |
| | | Page<EamTechnicalStatusChange> page = new Page<EamTechnicalStatusChange>(pageNo, pageSize); |
| | | IPage<EamTechnicalStatusChange> pageList = eamTechnicalStatusChangeService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param eamTechnicalStatusChange |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æåæ´ç³è¯·-æ·»å ") |
| | | @ApiOperation(value="ææ¯ç¶æåæ´ç³è¯·-æ·»å ", notes="ææ¯ç¶æåæ´ç³è¯·-æ·»å ") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamTechnicalStatusChange eamTechnicalStatusChange) { |
| | | eamTechnicalStatusChangeService.save(eamTechnicalStatusChange); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param eamTechnicalStatusChange |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æåæ´ç³è¯·-ç¼è¾") |
| | | @ApiOperation(value="ææ¯ç¶æåæ´ç³è¯·-ç¼è¾", notes="ææ¯ç¶æåæ´ç³è¯·-ç¼è¾") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamTechnicalStatusChange eamTechnicalStatusChange) { |
| | | eamTechnicalStatusChangeService.updateById(eamTechnicalStatusChange); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æåæ´ç³è¯·-éè¿idå é¤") |
| | | @ApiOperation(value="ææ¯ç¶æåæ´ç³è¯·-éè¿idå é¤", notes="ææ¯ç¶æåæ´ç³è¯·-éè¿idå é¤") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name="id",required=true) String id) { |
| | | eamTechnicalStatusChangeService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æåæ´ç³è¯·-æ¹éå é¤") |
| | | @ApiOperation(value="ææ¯ç¶æåæ´ç³è¯·-æ¹éå é¤", notes="ææ¯ç¶æåæ´ç³è¯·-æ¹éå é¤") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.eamTechnicalStatusChangeService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿åï¼"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æåæ´ç³è¯·-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="ææ¯ç¶æåæ´ç³è¯·-éè¿idæ¥è¯¢", notes="ææ¯ç¶æåæ´ç³è¯·-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name="id",required=true) String id) { |
| | | EamTechnicalStatusChange eamTechnicalStatusChange = eamTechnicalStatusChangeService.getById(id); |
| | | return Result.OK(eamTechnicalStatusChange); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param eamTechnicalStatusChange |
| | | */ |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, EamTechnicalStatusChange eamTechnicalStatusChange) { |
| | | return super.exportXls(request, eamTechnicalStatusChange, EamTechnicalStatusChange.class, "ææ¯ç¶æåæ´ç³è¯·"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, EamTechnicalStatusChange.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusChangeDetail; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusChangeDetailService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æåæ´ç³è¯·æç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags="ææ¯ç¶æåæ´ç³è¯·æç»") |
| | | @RestController |
| | | @RequestMapping("/eam/eamTechnicalStatusChangeDetail") |
| | | public class EamTechnicalStatusChangeDetailController extends JeecgController<EamTechnicalStatusChangeDetail, IEamTechnicalStatusChangeDetailService> { |
| | | @Autowired |
| | | private IEamTechnicalStatusChangeDetailService eamTechnicalStatusChangeDetailService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param eamTechnicalStatusChangeDetail |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="ææ¯ç¶æåæ´ç³è¯·æç»-å页å表æ¥è¯¢", notes="ææ¯ç¶æåæ´ç³è¯·æç»-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamTechnicalStatusChangeDetail eamTechnicalStatusChangeDetail, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<EamTechnicalStatusChangeDetail> queryWrapper = QueryGenerator.initQueryWrapper(eamTechnicalStatusChangeDetail, req.getParameterMap()); |
| | | Page<EamTechnicalStatusChangeDetail> page = new Page<EamTechnicalStatusChangeDetail>(pageNo, pageSize); |
| | | IPage<EamTechnicalStatusChangeDetail> pageList = eamTechnicalStatusChangeDetailService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param eamTechnicalStatusChangeDetail |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æåæ´ç³è¯·æç»-æ·»å ") |
| | | @ApiOperation(value="ææ¯ç¶æåæ´ç³è¯·æç»-æ·»å ", notes="ææ¯ç¶æåæ´ç³è¯·æç»-æ·»å ") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamTechnicalStatusChangeDetail eamTechnicalStatusChangeDetail) { |
| | | eamTechnicalStatusChangeDetailService.save(eamTechnicalStatusChangeDetail); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param eamTechnicalStatusChangeDetail |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æåæ´ç³è¯·æç»-ç¼è¾") |
| | | @ApiOperation(value="ææ¯ç¶æåæ´ç³è¯·æç»-ç¼è¾", notes="ææ¯ç¶æåæ´ç³è¯·æç»-ç¼è¾") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamTechnicalStatusChangeDetail eamTechnicalStatusChangeDetail) { |
| | | eamTechnicalStatusChangeDetailService.updateById(eamTechnicalStatusChangeDetail); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æåæ´ç³è¯·æç»-éè¿idå é¤") |
| | | @ApiOperation(value="ææ¯ç¶æåæ´ç³è¯·æç»-éè¿idå é¤", notes="ææ¯ç¶æåæ´ç³è¯·æç»-éè¿idå é¤") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name="id",required=true) String id) { |
| | | eamTechnicalStatusChangeDetailService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æåæ´ç³è¯·æç»-æ¹éå é¤") |
| | | @ApiOperation(value="ææ¯ç¶æåæ´ç³è¯·æç»-æ¹éå é¤", notes="ææ¯ç¶æåæ´ç³è¯·æç»-æ¹éå é¤") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.eamTechnicalStatusChangeDetailService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿åï¼"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æåæ´ç³è¯·æç»-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="ææ¯ç¶æåæ´ç³è¯·æç»-éè¿idæ¥è¯¢", notes="ææ¯ç¶æåæ´ç³è¯·æç»-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name="id",required=true) String id) { |
| | | EamTechnicalStatusChangeDetail eamTechnicalStatusChangeDetail = eamTechnicalStatusChangeDetailService.getById(id); |
| | | return Result.OK(eamTechnicalStatusChangeDetail); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param eamTechnicalStatusChangeDetail |
| | | */ |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, EamTechnicalStatusChangeDetail eamTechnicalStatusChangeDetail) { |
| | | return super.exportXls(request, eamTechnicalStatusChangeDetail, EamTechnicalStatusChangeDetail.class, "ææ¯ç¶æåæ´ç³è¯·æç»"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, EamTechnicalStatusChangeDetail.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusDeactivate; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusDeactivateService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | | * @Description: åç¨å 工设å¤ç³è¯·å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags="åç¨å 工设å¤ç³è¯·å") |
| | | @RestController |
| | | @RequestMapping("/eam/eamTechnicalStatusDeactivate") |
| | | public class EamTechnicalStatusDeactivateController extends JeecgController<EamTechnicalStatusDeactivate, IEamTechnicalStatusDeactivateService> { |
| | | @Autowired |
| | | private IEamTechnicalStatusDeactivateService eamTechnicalStatusDeactivateService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param eamTechnicalStatusDeactivate |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="åç¨å 工设å¤ç³è¯·å-å页å表æ¥è¯¢", notes="åç¨å 工设å¤ç³è¯·å-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamTechnicalStatusDeactivate eamTechnicalStatusDeactivate, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<EamTechnicalStatusDeactivate> queryWrapper = QueryGenerator.initQueryWrapper(eamTechnicalStatusDeactivate, req.getParameterMap()); |
| | | Page<EamTechnicalStatusDeactivate> page = new Page<EamTechnicalStatusDeactivate>(pageNo, pageSize); |
| | | IPage<EamTechnicalStatusDeactivate> pageList = eamTechnicalStatusDeactivateService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param eamTechnicalStatusDeactivate |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åç¨å 工设å¤ç³è¯·å-æ·»å ") |
| | | @ApiOperation(value="åç¨å 工设å¤ç³è¯·å-æ·»å ", notes="åç¨å 工设å¤ç³è¯·å-æ·»å ") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamTechnicalStatusDeactivate eamTechnicalStatusDeactivate) { |
| | | eamTechnicalStatusDeactivateService.save(eamTechnicalStatusDeactivate); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param eamTechnicalStatusDeactivate |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åç¨å 工设å¤ç³è¯·å-ç¼è¾") |
| | | @ApiOperation(value="åç¨å 工设å¤ç³è¯·å-ç¼è¾", notes="åç¨å 工设å¤ç³è¯·å-ç¼è¾") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamTechnicalStatusDeactivate eamTechnicalStatusDeactivate) { |
| | | eamTechnicalStatusDeactivateService.updateById(eamTechnicalStatusDeactivate); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åç¨å 工设å¤ç³è¯·å-éè¿idå é¤") |
| | | @ApiOperation(value="åç¨å 工设å¤ç³è¯·å-éè¿idå é¤", notes="åç¨å 工设å¤ç³è¯·å-éè¿idå é¤") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name="id",required=true) String id) { |
| | | eamTechnicalStatusDeactivateService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åç¨å 工设å¤ç³è¯·å-æ¹éå é¤") |
| | | @ApiOperation(value="åç¨å 工设å¤ç³è¯·å-æ¹éå é¤", notes="åç¨å 工设å¤ç³è¯·å-æ¹éå é¤") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.eamTechnicalStatusDeactivateService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿åï¼"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åç¨å 工设å¤ç³è¯·å-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="åç¨å 工设å¤ç³è¯·å-éè¿idæ¥è¯¢", notes="åç¨å 工设å¤ç³è¯·å-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name="id",required=true) String id) { |
| | | EamTechnicalStatusDeactivate eamTechnicalStatusDeactivate = eamTechnicalStatusDeactivateService.getById(id); |
| | | return Result.OK(eamTechnicalStatusDeactivate); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param eamTechnicalStatusDeactivate |
| | | */ |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, EamTechnicalStatusDeactivate eamTechnicalStatusDeactivate) { |
| | | return super.exportXls(request, eamTechnicalStatusDeactivate, EamTechnicalStatusDeactivate.class, "åç¨å 工设å¤ç³è¯·å"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, EamTechnicalStatusDeactivate.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusDeactivateDetail; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusDeactivateDetailService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | | * @Description: åç¨å 工设å¤ç³è¯·åæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags="åç¨å 工设å¤ç³è¯·åæç»") |
| | | @RestController |
| | | @RequestMapping("/eam/eamTechnicalStatusDeactivateDetail") |
| | | public class EamTechnicalStatusDeactivateDetailController extends JeecgController<EamTechnicalStatusDeactivateDetail, IEamTechnicalStatusDeactivateDetailService> { |
| | | @Autowired |
| | | private IEamTechnicalStatusDeactivateDetailService eamTechnicalStatusDeactivateDetailService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param eamTechnicalStatusDeactivateDetail |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="åç¨å 工设å¤ç³è¯·åæç»-å页å表æ¥è¯¢", notes="åç¨å 工设å¤ç³è¯·åæç»-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamTechnicalStatusDeactivateDetail eamTechnicalStatusDeactivateDetail, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<EamTechnicalStatusDeactivateDetail> queryWrapper = QueryGenerator.initQueryWrapper(eamTechnicalStatusDeactivateDetail, req.getParameterMap()); |
| | | Page<EamTechnicalStatusDeactivateDetail> page = new Page<EamTechnicalStatusDeactivateDetail>(pageNo, pageSize); |
| | | IPage<EamTechnicalStatusDeactivateDetail> pageList = eamTechnicalStatusDeactivateDetailService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param eamTechnicalStatusDeactivateDetail |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åç¨å 工设å¤ç³è¯·åæç»-æ·»å ") |
| | | @ApiOperation(value="åç¨å 工设å¤ç³è¯·åæç»-æ·»å ", notes="åç¨å 工设å¤ç³è¯·åæç»-æ·»å ") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamTechnicalStatusDeactivateDetail eamTechnicalStatusDeactivateDetail) { |
| | | eamTechnicalStatusDeactivateDetailService.save(eamTechnicalStatusDeactivateDetail); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param eamTechnicalStatusDeactivateDetail |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åç¨å 工设å¤ç³è¯·åæç»-ç¼è¾") |
| | | @ApiOperation(value="åç¨å 工设å¤ç³è¯·åæç»-ç¼è¾", notes="åç¨å 工设å¤ç³è¯·åæç»-ç¼è¾") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamTechnicalStatusDeactivateDetail eamTechnicalStatusDeactivateDetail) { |
| | | eamTechnicalStatusDeactivateDetailService.updateById(eamTechnicalStatusDeactivateDetail); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åç¨å 工设å¤ç³è¯·åæç»-éè¿idå é¤") |
| | | @ApiOperation(value="åç¨å 工设å¤ç³è¯·åæç»-éè¿idå é¤", notes="åç¨å 工设å¤ç³è¯·åæç»-éè¿idå é¤") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name="id",required=true) String id) { |
| | | eamTechnicalStatusDeactivateDetailService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åç¨å 工设å¤ç³è¯·åæç»-æ¹éå é¤") |
| | | @ApiOperation(value="åç¨å 工设å¤ç³è¯·åæç»-æ¹éå é¤", notes="åç¨å 工设å¤ç³è¯·åæç»-æ¹éå é¤") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.eamTechnicalStatusDeactivateDetailService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿åï¼"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åç¨å 工设å¤ç³è¯·åæç»-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="åç¨å 工设å¤ç³è¯·åæç»-éè¿idæ¥è¯¢", notes="åç¨å 工设å¤ç³è¯·åæç»-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name="id",required=true) String id) { |
| | | EamTechnicalStatusDeactivateDetail eamTechnicalStatusDeactivateDetail = eamTechnicalStatusDeactivateDetailService.getById(id); |
| | | return Result.OK(eamTechnicalStatusDeactivateDetail); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param eamTechnicalStatusDeactivateDetail |
| | | */ |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, EamTechnicalStatusDeactivateDetail eamTechnicalStatusDeactivateDetail) { |
| | | return super.exportXls(request, eamTechnicalStatusDeactivateDetail, EamTechnicalStatusDeactivateDetail.class, "åç¨å 工设å¤ç³è¯·åæç»"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, EamTechnicalStatusDeactivateDetail.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationApplication; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusEvaluationApplicationService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | | * @Description: å å·¥è®¾å¤ææ¯é´å®ç³è¯· |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags="å å·¥è®¾å¤ææ¯é´å®ç³è¯·") |
| | | @RestController |
| | | @RequestMapping("/eam/eamTechnicalStatusEvaluationApplication") |
| | | public class EamTechnicalStatusEvaluationApplicationController extends JeecgController<EamTechnicalStatusEvaluationApplication, IEamTechnicalStatusEvaluationApplicationService> { |
| | | @Autowired |
| | | private IEamTechnicalStatusEvaluationApplicationService eamTechnicalStatusEvaluationApplicationService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param eamTechnicalStatusEvaluationApplication |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="å å·¥è®¾å¤ææ¯é´å®ç³è¯·-å页å表æ¥è¯¢", notes="å å·¥è®¾å¤ææ¯é´å®ç³è¯·-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamTechnicalStatusEvaluationApplication eamTechnicalStatusEvaluationApplication, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<EamTechnicalStatusEvaluationApplication> queryWrapper = QueryGenerator.initQueryWrapper(eamTechnicalStatusEvaluationApplication, req.getParameterMap()); |
| | | Page<EamTechnicalStatusEvaluationApplication> page = new Page<EamTechnicalStatusEvaluationApplication>(pageNo, pageSize); |
| | | IPage<EamTechnicalStatusEvaluationApplication> pageList = eamTechnicalStatusEvaluationApplicationService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param eamTechnicalStatusEvaluationApplication |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "å å·¥è®¾å¤ææ¯é´å®ç³è¯·-æ·»å ") |
| | | @ApiOperation(value="å å·¥è®¾å¤ææ¯é´å®ç³è¯·-æ·»å ", notes="å å·¥è®¾å¤ææ¯é´å®ç³è¯·-æ·»å ") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamTechnicalStatusEvaluationApplication eamTechnicalStatusEvaluationApplication) { |
| | | eamTechnicalStatusEvaluationApplicationService.save(eamTechnicalStatusEvaluationApplication); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param eamTechnicalStatusEvaluationApplication |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "å å·¥è®¾å¤ææ¯é´å®ç³è¯·-ç¼è¾") |
| | | @ApiOperation(value="å å·¥è®¾å¤ææ¯é´å®ç³è¯·-ç¼è¾", notes="å å·¥è®¾å¤ææ¯é´å®ç³è¯·-ç¼è¾") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamTechnicalStatusEvaluationApplication eamTechnicalStatusEvaluationApplication) { |
| | | eamTechnicalStatusEvaluationApplicationService.updateById(eamTechnicalStatusEvaluationApplication); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "å å·¥è®¾å¤ææ¯é´å®ç³è¯·-éè¿idå é¤") |
| | | @ApiOperation(value="å å·¥è®¾å¤ææ¯é´å®ç³è¯·-éè¿idå é¤", notes="å å·¥è®¾å¤ææ¯é´å®ç³è¯·-éè¿idå é¤") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name="id",required=true) String id) { |
| | | eamTechnicalStatusEvaluationApplicationService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "å å·¥è®¾å¤ææ¯é´å®ç³è¯·-æ¹éå é¤") |
| | | @ApiOperation(value="å å·¥è®¾å¤ææ¯é´å®ç³è¯·-æ¹éå é¤", notes="å å·¥è®¾å¤ææ¯é´å®ç³è¯·-æ¹éå é¤") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.eamTechnicalStatusEvaluationApplicationService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿åï¼"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "å å·¥è®¾å¤ææ¯é´å®ç³è¯·-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="å å·¥è®¾å¤ææ¯é´å®ç³è¯·-éè¿idæ¥è¯¢", notes="å å·¥è®¾å¤ææ¯é´å®ç³è¯·-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name="id",required=true) String id) { |
| | | EamTechnicalStatusEvaluationApplication eamTechnicalStatusEvaluationApplication = eamTechnicalStatusEvaluationApplicationService.getById(id); |
| | | return Result.OK(eamTechnicalStatusEvaluationApplication); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param eamTechnicalStatusEvaluationApplication |
| | | */ |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, EamTechnicalStatusEvaluationApplication eamTechnicalStatusEvaluationApplication) { |
| | | return super.exportXls(request, eamTechnicalStatusEvaluationApplication, EamTechnicalStatusEvaluationApplication.class, "å å·¥è®¾å¤ææ¯é´å®ç³è¯·"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, EamTechnicalStatusEvaluationApplication.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationOrderChange; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusEvaluationOrderChangeService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®å·¥ååæ´ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags="ææ¯ç¶æé´å®å·¥ååæ´") |
| | | @RestController |
| | | @RequestMapping("/eam/eamTechnicalStatusEvaluationOrderChange") |
| | | public class EamTechnicalStatusEvaluationOrderChangeController extends JeecgController<EamTechnicalStatusEvaluationOrderChange, IEamTechnicalStatusEvaluationOrderChangeService> { |
| | | @Autowired |
| | | private IEamTechnicalStatusEvaluationOrderChangeService eamTechnicalStatusEvaluationOrderChangeService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param eamTechnicalStatusEvaluationOrderChange |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="ææ¯ç¶æé´å®å·¥ååæ´-å页å表æ¥è¯¢", notes="ææ¯ç¶æé´å®å·¥ååæ´-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamTechnicalStatusEvaluationOrderChange eamTechnicalStatusEvaluationOrderChange, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<EamTechnicalStatusEvaluationOrderChange> queryWrapper = QueryGenerator.initQueryWrapper(eamTechnicalStatusEvaluationOrderChange, req.getParameterMap()); |
| | | Page<EamTechnicalStatusEvaluationOrderChange> page = new Page<EamTechnicalStatusEvaluationOrderChange>(pageNo, pageSize); |
| | | IPage<EamTechnicalStatusEvaluationOrderChange> pageList = eamTechnicalStatusEvaluationOrderChangeService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param eamTechnicalStatusEvaluationOrderChange |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æé´å®å·¥ååæ´-æ·»å ") |
| | | @ApiOperation(value="ææ¯ç¶æé´å®å·¥ååæ´-æ·»å ", notes="ææ¯ç¶æé´å®å·¥ååæ´-æ·»å ") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamTechnicalStatusEvaluationOrderChange eamTechnicalStatusEvaluationOrderChange) { |
| | | eamTechnicalStatusEvaluationOrderChangeService.save(eamTechnicalStatusEvaluationOrderChange); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param eamTechnicalStatusEvaluationOrderChange |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æé´å®å·¥ååæ´-ç¼è¾") |
| | | @ApiOperation(value="ææ¯ç¶æé´å®å·¥ååæ´-ç¼è¾", notes="ææ¯ç¶æé´å®å·¥ååæ´-ç¼è¾") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamTechnicalStatusEvaluationOrderChange eamTechnicalStatusEvaluationOrderChange) { |
| | | eamTechnicalStatusEvaluationOrderChangeService.updateById(eamTechnicalStatusEvaluationOrderChange); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æé´å®å·¥ååæ´-éè¿idå é¤") |
| | | @ApiOperation(value="ææ¯ç¶æé´å®å·¥ååæ´-éè¿idå é¤", notes="ææ¯ç¶æé´å®å·¥ååæ´-éè¿idå é¤") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name="id",required=true) String id) { |
| | | eamTechnicalStatusEvaluationOrderChangeService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æé´å®å·¥ååæ´-æ¹éå é¤") |
| | | @ApiOperation(value="ææ¯ç¶æé´å®å·¥ååæ´-æ¹éå é¤", notes="ææ¯ç¶æé´å®å·¥ååæ´-æ¹éå é¤") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.eamTechnicalStatusEvaluationOrderChangeService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿åï¼"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æé´å®å·¥ååæ´-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="ææ¯ç¶æé´å®å·¥ååæ´-éè¿idæ¥è¯¢", notes="ææ¯ç¶æé´å®å·¥ååæ´-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name="id",required=true) String id) { |
| | | EamTechnicalStatusEvaluationOrderChange eamTechnicalStatusEvaluationOrderChange = eamTechnicalStatusEvaluationOrderChangeService.getById(id); |
| | | return Result.OK(eamTechnicalStatusEvaluationOrderChange); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param eamTechnicalStatusEvaluationOrderChange |
| | | */ |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, EamTechnicalStatusEvaluationOrderChange eamTechnicalStatusEvaluationOrderChange) { |
| | | return super.exportXls(request, eamTechnicalStatusEvaluationOrderChange, EamTechnicalStatusEvaluationOrderChange.class, "ææ¯ç¶æé´å®å·¥ååæ´"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, EamTechnicalStatusEvaluationOrderChange.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationOrder; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusEvaluationOrderService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®å·¥å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags="ææ¯ç¶æé´å®å·¥å") |
| | | @RestController |
| | | @RequestMapping("/eam/eamTechnicalStatusEvaluationOrder") |
| | | public class EamTechnicalStatusEvaluationOrderController extends JeecgController<EamTechnicalStatusEvaluationOrder, IEamTechnicalStatusEvaluationOrderService> { |
| | | @Autowired |
| | | private IEamTechnicalStatusEvaluationOrderService eamTechnicalStatusEvaluationOrderService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param eamTechnicalStatusEvaluationOrder |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="ææ¯ç¶æé´å®å·¥å-å页å表æ¥è¯¢", notes="ææ¯ç¶æé´å®å·¥å-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamTechnicalStatusEvaluationOrder eamTechnicalStatusEvaluationOrder, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<EamTechnicalStatusEvaluationOrder> queryWrapper = QueryGenerator.initQueryWrapper(eamTechnicalStatusEvaluationOrder, req.getParameterMap()); |
| | | Page<EamTechnicalStatusEvaluationOrder> page = new Page<EamTechnicalStatusEvaluationOrder>(pageNo, pageSize); |
| | | IPage<EamTechnicalStatusEvaluationOrder> pageList = eamTechnicalStatusEvaluationOrderService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param eamTechnicalStatusEvaluationOrder |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æé´å®å·¥å-æ·»å ") |
| | | @ApiOperation(value="ææ¯ç¶æé´å®å·¥å-æ·»å ", notes="ææ¯ç¶æé´å®å·¥å-æ·»å ") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamTechnicalStatusEvaluationOrder eamTechnicalStatusEvaluationOrder) { |
| | | eamTechnicalStatusEvaluationOrderService.save(eamTechnicalStatusEvaluationOrder); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param eamTechnicalStatusEvaluationOrder |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æé´å®å·¥å-ç¼è¾") |
| | | @ApiOperation(value="ææ¯ç¶æé´å®å·¥å-ç¼è¾", notes="ææ¯ç¶æé´å®å·¥å-ç¼è¾") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamTechnicalStatusEvaluationOrder eamTechnicalStatusEvaluationOrder) { |
| | | eamTechnicalStatusEvaluationOrderService.updateById(eamTechnicalStatusEvaluationOrder); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æé´å®å·¥å-éè¿idå é¤") |
| | | @ApiOperation(value="ææ¯ç¶æé´å®å·¥å-éè¿idå é¤", notes="ææ¯ç¶æé´å®å·¥å-éè¿idå é¤") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name="id",required=true) String id) { |
| | | eamTechnicalStatusEvaluationOrderService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æé´å®å·¥å-æ¹éå é¤") |
| | | @ApiOperation(value="ææ¯ç¶æé´å®å·¥å-æ¹éå é¤", notes="ææ¯ç¶æé´å®å·¥å-æ¹éå é¤") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.eamTechnicalStatusEvaluationOrderService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿åï¼"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æé´å®å·¥å-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="ææ¯ç¶æé´å®å·¥å-éè¿idæ¥è¯¢", notes="ææ¯ç¶æé´å®å·¥å-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name="id",required=true) String id) { |
| | | EamTechnicalStatusEvaluationOrder eamTechnicalStatusEvaluationOrder = eamTechnicalStatusEvaluationOrderService.getById(id); |
| | | return Result.OK(eamTechnicalStatusEvaluationOrder); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param eamTechnicalStatusEvaluationOrder |
| | | */ |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, EamTechnicalStatusEvaluationOrder eamTechnicalStatusEvaluationOrder) { |
| | | return super.exportXls(request, eamTechnicalStatusEvaluationOrder, EamTechnicalStatusEvaluationOrder.class, "ææ¯ç¶æé´å®å·¥å"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, EamTechnicalStatusEvaluationOrder.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationOrderDetail; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusEvaluationOrderDetailService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®å·¥åæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags="ææ¯ç¶æé´å®å·¥åæç»") |
| | | @RestController |
| | | @RequestMapping("/eam/eamTechnicalStatusEvaluationOrderDetail") |
| | | public class EamTechnicalStatusEvaluationOrderDetailController extends JeecgController<EamTechnicalStatusEvaluationOrderDetail, IEamTechnicalStatusEvaluationOrderDetailService> { |
| | | @Autowired |
| | | private IEamTechnicalStatusEvaluationOrderDetailService eamTechnicalStatusEvaluationOrderDetailService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param eamTechnicalStatusEvaluationOrderDetail |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="ææ¯ç¶æé´å®å·¥åæç»-å页å表æ¥è¯¢", notes="ææ¯ç¶æé´å®å·¥åæç»-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamTechnicalStatusEvaluationOrderDetail eamTechnicalStatusEvaluationOrderDetail, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<EamTechnicalStatusEvaluationOrderDetail> queryWrapper = QueryGenerator.initQueryWrapper(eamTechnicalStatusEvaluationOrderDetail, req.getParameterMap()); |
| | | Page<EamTechnicalStatusEvaluationOrderDetail> page = new Page<EamTechnicalStatusEvaluationOrderDetail>(pageNo, pageSize); |
| | | IPage<EamTechnicalStatusEvaluationOrderDetail> pageList = eamTechnicalStatusEvaluationOrderDetailService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param eamTechnicalStatusEvaluationOrderDetail |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æé´å®å·¥åæç»-æ·»å ") |
| | | @ApiOperation(value="ææ¯ç¶æé´å®å·¥åæç»-æ·»å ", notes="ææ¯ç¶æé´å®å·¥åæç»-æ·»å ") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamTechnicalStatusEvaluationOrderDetail eamTechnicalStatusEvaluationOrderDetail) { |
| | | eamTechnicalStatusEvaluationOrderDetailService.save(eamTechnicalStatusEvaluationOrderDetail); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param eamTechnicalStatusEvaluationOrderDetail |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æé´å®å·¥åæç»-ç¼è¾") |
| | | @ApiOperation(value="ææ¯ç¶æé´å®å·¥åæç»-ç¼è¾", notes="ææ¯ç¶æé´å®å·¥åæç»-ç¼è¾") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamTechnicalStatusEvaluationOrderDetail eamTechnicalStatusEvaluationOrderDetail) { |
| | | eamTechnicalStatusEvaluationOrderDetailService.updateById(eamTechnicalStatusEvaluationOrderDetail); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æé´å®å·¥åæç»-éè¿idå é¤") |
| | | @ApiOperation(value="ææ¯ç¶æé´å®å·¥åæç»-éè¿idå é¤", notes="ææ¯ç¶æé´å®å·¥åæç»-éè¿idå é¤") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name="id",required=true) String id) { |
| | | eamTechnicalStatusEvaluationOrderDetailService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æé´å®å·¥åæç»-æ¹éå é¤") |
| | | @ApiOperation(value="ææ¯ç¶æé´å®å·¥åæç»-æ¹éå é¤", notes="ææ¯ç¶æé´å®å·¥åæç»-æ¹éå é¤") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.eamTechnicalStatusEvaluationOrderDetailService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿åï¼"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ææ¯ç¶æé´å®å·¥åæç»-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="ææ¯ç¶æé´å®å·¥åæç»-éè¿idæ¥è¯¢", notes="ææ¯ç¶æé´å®å·¥åæç»-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name="id",required=true) String id) { |
| | | EamTechnicalStatusEvaluationOrderDetail eamTechnicalStatusEvaluationOrderDetail = eamTechnicalStatusEvaluationOrderDetailService.getById(id); |
| | | return Result.OK(eamTechnicalStatusEvaluationOrderDetail); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param eamTechnicalStatusEvaluationOrderDetail |
| | | */ |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, EamTechnicalStatusEvaluationOrderDetail eamTechnicalStatusEvaluationOrderDetail) { |
| | | return super.exportXls(request, eamTechnicalStatusEvaluationOrderDetail, EamTechnicalStatusEvaluationOrderDetail.class, "ææ¯ç¶æé´å®å·¥åæç»"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, EamTechnicalStatusEvaluationOrderDetail.class); |
| | | } |
| | | |
| | | } |
| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.modules.eam.constant.BusinessCodeConst; |
| | | import org.jeecg.modules.eam.constant.TechnicalStatusEvaluationStandardEnum; |
| | | import org.jeecg.modules.eam.entity.EamMaintenanceStandard; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationStandard; |
| | | import org.jeecg.modules.eam.request.EamTechnicalStatusEvaluationStandardRequest; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusEvaluationStandardService; |
| | | import org.jeecg.modules.system.service.ISysBusinessCodeRuleService; |
| | | import org.jetbrains.annotations.NotNull; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import org.springframework.web.multipart.MultipartHttpServletRequest; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.ArrayList; |
| | | import java.util.LinkedHashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®è§è |
| | |
| | | |
| | | /** |
| | | * æäº¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * å®å
¨è£
ç½®æ£æ¥æç»å¯¼å
¥ |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, EamTechnicalStatusEvaluationStandard.class); |
| | | @PostMapping(value = "/importSafetyEquipmentCheck") |
| | | public Result<?> importSafetyEquipmentCheck(HttpServletRequest request) { |
| | | MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; |
| | | Map<String, String> results = new LinkedHashMap<>(); |
| | | Map<String, MultipartFile> fileMap = multipartRequest.getFileMap(); |
| | | // ç»è®¡å¯¼å
¥ç»æ |
| | | int successCount = 0; |
| | | int failureCount = 0; |
| | | for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) { |
| | | MultipartFile file = entity.getValue(); |
| | | String fileName = file.getOriginalFilename(); |
| | | Result<?> importResult = eamTechnicalStatusEvaluationStandardService.importSafetyEquipmentCheck(file); |
| | | if (importResult.isSuccess()) { |
| | | successCount++; |
| | | } else { |
| | | results.put(fileName, importResult.getMessage()); |
| | | failureCount++; |
| | | } |
| | | } |
| | | // æå»ºæç»ååº |
| | | return getResult(results, fileMap.size(), successCount, failureCount); |
| | | } |
| | | |
| | | /** |
| | | * å®å
¨è£
ç½®æ£æ¥æç»å¯¼å
¥ |
| | | * |
| | | * @param request |
| | | * @return |
| | | */ |
| | | @PostMapping(value = "/importPrecisionCheck") |
| | | public Result<?> importPrecisionCheck(HttpServletRequest request) { |
| | | MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; |
| | | Map<String, String> results = new LinkedHashMap<>(); |
| | | Map<String, MultipartFile> fileMap = multipartRequest.getFileMap(); |
| | | // ç»è®¡å¯¼å
¥ç»æ |
| | | int successCount = 0; |
| | | int failureCount = 0; |
| | | for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) { |
| | | MultipartFile file = entity.getValue(); |
| | | String fileName = file.getOriginalFilename(); |
| | | Result<?> importResult = eamTechnicalStatusEvaluationStandardService.importPrecisionCheck(file); |
| | | if (importResult.isSuccess()) { |
| | | successCount++; |
| | | } else { |
| | | results.put(fileName, importResult.getMessage()); |
| | | failureCount++; |
| | | } |
| | | } |
| | | // æå»ºæç»ååº |
| | | return getResult(results, fileMap.size(), successCount, failureCount); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * å®å
¨è£
ç½®æ£æ¥æç»å¯¼å
¥ |
| | | * |
| | | * @param request |
| | | * @return |
| | | */ |
| | | @PostMapping(value = "/importOtherCheck") |
| | | public Result<?> importOtherCheck(HttpServletRequest request) { |
| | | MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; |
| | | Map<String, String> results = new LinkedHashMap<>(); |
| | | Map<String, MultipartFile> fileMap = multipartRequest.getFileMap(); |
| | | // ç»è®¡å¯¼å
¥ç»æ |
| | | int successCount = 0; |
| | | int failureCount = 0; |
| | | for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) { |
| | | MultipartFile file = entity.getValue(); |
| | | String fileName = file.getOriginalFilename(); |
| | | Result<?> importResult = eamTechnicalStatusEvaluationStandardService.importOtherCheck(file); |
| | | if (importResult.isSuccess()) { |
| | | successCount++; |
| | | } else { |
| | | results.put(fileName, importResult.getMessage()); |
| | | failureCount++; |
| | | } |
| | | } |
| | | // æå»ºæç»ååº |
| | | return getResult(results, fileMap.size(), successCount, failureCount); |
| | | } |
| | | |
| | | @NotNull |
| | | private Result<?> getResult(Map<String, String> results, int fileCount, int successCount, int failureCount) { |
| | | List<String> response = new ArrayList<>(); |
| | | response.add("æ»æä»¶æ°ï¼" + fileCount); |
| | | response.add("æåæ°ï¼" + successCount); |
| | | response.add("失败æ°ï¼" + failureCount); |
| | | if (failureCount > 0) { |
| | | response.add("é误信æ¯ï¼" + results.values()); |
| | | return Result.error("é¨åæä»¶å¯¼å
¥å¤±è´¥ï¼" + response); |
| | | } |
| | | return Result.ok("æææä»¶å¯¼å
¥æåï¼" + response); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.entity; |
| | | |
| | | 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.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æåæ´ç³è¯· |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("eam_technical_status_change") |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @ApiModel(value="eam_technical_status_change对象", description="ææ¯ç¶æåæ´ç³è¯·") |
| | | public class EamTechnicalStatusChange { |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**å 餿 è®°*/ |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private Integer delFlag; |
| | | /**åæ´åå·*/ |
| | | @ApiModelProperty(value = "åæ´åå·") |
| | | private String changeOrderNum; |
| | | /**åæ´åç¶æ*/ |
| | | @ApiModelProperty(value = "åæ´åç¶æ") |
| | | private String changeStatus; |
| | | /**ç¼å¶äºº*/ |
| | | @ApiModelProperty(value = "ç¼å¶äºº") |
| | | private String designer; |
| | | /**ç¼å¶æ¶é´*/ |
| | | @ApiModelProperty(value = "ç¼å¶æ¶é´") |
| | | private Date designerTime; |
| | | /**使ç¨åä½å®¤ä¸»ç®¡ç¾å*/ |
| | | @ApiModelProperty(value = "使ç¨åä½å®¤ä¸»ç®¡ç¾å") |
| | | private String departHeaderSignature; |
| | | /**使ç¨åä½å®¤ä¸»ç®¡ç¾åæ¶é´*/ |
| | | @ApiModelProperty(value = "使ç¨åä½å®¤ä¸»ç®¡ç¾åæ¶é´") |
| | | private Date departHeaderSignatureTime; |
| | | /**使ç¨åä½å®¤ä¸»ç®¡æè§*/ |
| | | @ApiModelProperty(value = "使ç¨åä½å®¤ä¸»ç®¡æè§") |
| | | private String departHeaderSignatureComment; |
| | | /**使ç¨åä½é¨ä¸»ç®¡ç¾å*/ |
| | | @ApiModelProperty(value = "使ç¨åä½é¨ä¸»ç®¡ç¾å") |
| | | private String departLeaderSignature; |
| | | /**使ç¨åä½é¨ä¸»ç®¡ç¾åæ¶é´*/ |
| | | @ApiModelProperty(value = "使ç¨åä½é¨ä¸»ç®¡ç¾åæ¶é´") |
| | | private Date departLeaderSignatureTime; |
| | | /**使ç¨åä½é¨ä¸»ç®¡ç¾å*/ |
| | | @ApiModelProperty(value = "使ç¨åä½é¨ä¸»ç®¡ç¾å") |
| | | private String departLeaderSignatureComment; |
| | | /**HFç¼ç */ |
| | | @ApiModelProperty(value = "HFç¼ç ") |
| | | private String hfCode; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.entity; |
| | | |
| | | 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.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æåæ´ç³è¯·æç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("eam_technical_status_change_detail") |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @ApiModel(value="eam_technical_status_change_detail对象", description="ææ¯ç¶æåæ´ç³è¯·æç»") |
| | | public class EamTechnicalStatusChangeDetail { |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**设å¤ID*/ |
| | | @ApiModelProperty(value = "设å¤ID") |
| | | private String equipmentId; |
| | | /**åæ´åå ;æ¬è¿ãå¤§ä¿®ãæ¹é ãå
¶ä»*/ |
| | | @ApiModelProperty(value = "åæ´åå ;æ¬è¿ãå¤§ä¿®ãæ¹é ãå
¶ä»") |
| | | private String changeCategory; |
| | | /**åæ´æ¥æ*/ |
| | | @ApiModelProperty(value = "åæ´æ¥æ") |
| | | private Date changeDate; |
| | | /**åæ´åææ¯ç¶æ;åæ´éè¿åé»è®¤è®¾å¤ææ¯ç¶ææ¹ä¸ºç¦ç¨*/ |
| | | @ApiModelProperty(value = "åæ´åææ¯ç¶æ;åæ´éè¿åé»è®¤è®¾å¤ææ¯ç¶ææ¹ä¸ºç¦ç¨") |
| | | private String changeTechnicalStatus; |
| | | /**éªæ¶æ£æ¥äºº*/ |
| | | @ApiModelProperty(value = "éªæ¶æ£æ¥äºº") |
| | | private String acceptanceChecker; |
| | | /**éªæ¶æ£æ¥æ¶é´*/ |
| | | @ApiModelProperty(value = "éªæ¶æ£æ¥æ¶é´") |
| | | private Date acceptanceCheckTime; |
| | | /**éªæ¶æ£æ¥ç»æ;å¤§ä¿®ãæ¹é éè¦å¡«åéªæ¶ç»æï¼æ¬è¿æç
§ææ¯ç¶æé´å®å·¥åç»´æ¤ï¼å
¶ä»ææªä½¿ç¨å°ï¼åªé¢çæ¤ç±»å*/ |
| | | @ApiModelProperty(value = "éªæ¶æ£æ¥ç»æ;å¤§ä¿®ãæ¹é éè¦å¡«åéªæ¶ç»æï¼æ¬è¿æç
§ææ¯ç¶æé´å®å·¥åç»´æ¤ï¼å
¶ä»ææªä½¿ç¨å°ï¼åªé¢çæ¤ç±»å") |
| | | private String acceptanceCheckResult; |
| | | /**ææ¯ç¶æé´å®å·¥åID;æ¬è¿ä½¿ç¨*/ |
| | | @ApiModelProperty(value = "ææ¯ç¶æé´å®å·¥åID;æ¬è¿ä½¿ç¨") |
| | | private String orderId; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.entity; |
| | | |
| | | 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.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description: åç¨å 工设å¤ç³è¯·å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("eam_technical_status_deactivate") |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @ApiModel(value="eam_technical_status_deactivate对象", description="åç¨å 工设å¤ç³è¯·å") |
| | | public class EamTechnicalStatusDeactivate { |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**å 餿 è®°*/ |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private Integer delFlag; |
| | | /**åç¨åå·*/ |
| | | @ApiModelProperty(value = "åç¨åå·") |
| | | private String deactivateOrderNum; |
| | | /**ç³è¯·äºº*/ |
| | | @ApiModelProperty(value = "ç³è¯·äºº") |
| | | private String applicant; |
| | | /**ç³è¯·é¨é¨*/ |
| | | @ApiModelProperty(value = "ç³è¯·é¨é¨") |
| | | private String factoryOrgCode; |
| | | /**ç³è¯·æ¥æ*/ |
| | | @ApiModelProperty(value = "ç³è¯·æ¥æ") |
| | | private Date applyDate; |
| | | /**ç³è¯·åç¶æ;å¾
æäº¤ãå¾
åä½å®¤çº§é¢å¯¼å®¡æ ¸ãç产设å¤ç®¡çä¸»ç®¡å®¡æ ¸ãå¾
ä¿éé¨é¢å¯¼å®¡æ ¸ãå·²ä½åºã已宿*/ |
| | | @ApiModelProperty(value = "ç³è¯·åç¶æ;å¾
æäº¤ãå¾
åä½å®¤çº§é¢å¯¼å®¡æ ¸ãç产设å¤ç®¡çä¸»ç®¡å®¡æ ¸ãå¾
ä¿éé¨é¢å¯¼å®¡æ ¸ãå·²ä½åºã已宿") |
| | | private String applicationStatus; |
| | | /**使ç¨åä½å®¤ä¸»ç®¡ç¾å*/ |
| | | @ApiModelProperty(value = "使ç¨åä½å®¤ä¸»ç®¡ç¾å") |
| | | private String departHeaderSignature; |
| | | /**使ç¨åä½å®¤ä¸»ç®¡ç¾åæ¶é´*/ |
| | | @ApiModelProperty(value = "使ç¨åä½å®¤ä¸»ç®¡ç¾åæ¶é´") |
| | | private Date departHeaderSignatureTime; |
| | | /**使ç¨åä½å®¤ä¸»ç®¡æè§*/ |
| | | @ApiModelProperty(value = "使ç¨åä½å®¤ä¸»ç®¡æè§") |
| | | private String departHeaderSignatureComment; |
| | | /**使ç¨åä½é¨ä¸»ç®¡ç¾å*/ |
| | | @ApiModelProperty(value = "使ç¨åä½é¨ä¸»ç®¡ç¾å") |
| | | private String departLeaderSignature; |
| | | /**使ç¨åä½é¨ä¸»ç®¡ç¾åæ¶é´*/ |
| | | @ApiModelProperty(value = "使ç¨åä½é¨ä¸»ç®¡ç¾åæ¶é´") |
| | | private Date departLeaderSignatureTime; |
| | | /**使ç¨åä½é¨ä¸»ç®¡ç¾å*/ |
| | | @ApiModelProperty(value = "使ç¨åä½é¨ä¸»ç®¡ç¾å") |
| | | private String departLeaderSignatureComment; |
| | | /**HFç¼ç */ |
| | | @ApiModelProperty(value = "HFç¼ç ") |
| | | private String hfCode; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.entity; |
| | | |
| | | 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.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description: åç¨å 工设å¤ç³è¯·åæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("eam_technical_status_deactivate_detail") |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @ApiModel(value="eam_technical_status_deactivate_detail对象", description="åç¨å 工设å¤ç³è¯·åæç»") |
| | | public class EamTechnicalStatusDeactivateDetail { |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**设å¤ID*/ |
| | | @ApiModelProperty(value = "设å¤ID") |
| | | private String equipmentId; |
| | | /**åç¨åå */ |
| | | @ApiModelProperty(value = "åç¨åå ") |
| | | private String deactivateReason; |
| | | /**åç¨æ¶é¿*/ |
| | | @ApiModelProperty(value = "åç¨æ¶é¿") |
| | | private java.math.BigDecimal deactivateDuration; |
| | | /**åç¨æ¶é¿åä½;天ãæãå¹´*/ |
| | | @ApiModelProperty(value = "åç¨æ¶é¿åä½;天ãæãå¹´") |
| | | private String deactivateDurationUnit; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.entity; |
| | | |
| | | 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.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description: å å·¥è®¾å¤ææ¯é´å®ç³è¯· |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("eam_technical_status_evaluation_application") |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @ApiModel(value="eam_technical_status_evaluation_application对象", description="å å·¥è®¾å¤ææ¯é´å®ç³è¯·") |
| | | public class EamTechnicalStatusEvaluationApplication { |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**å 餿 è®°*/ |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private Integer delFlag; |
| | | /**ç³è¯·åå·*/ |
| | | @ApiModelProperty(value = "ç³è¯·åå·") |
| | | private String applicationOrderNum; |
| | | /**ç³è¯·äºº*/ |
| | | @ApiModelProperty(value = "ç³è¯·äºº") |
| | | private String applicant; |
| | | /**ç³è¯·é¨é¨*/ |
| | | @ApiModelProperty(value = "ç³è¯·é¨é¨") |
| | | private String factoryOrgCode; |
| | | /**ç³è¯·æ¥æ*/ |
| | | @ApiModelProperty(value = "ç³è¯·æ¥æ") |
| | | private Date applyDate; |
| | | /**ç³è¯·åç¶æ;å¾
æäº¤ãå¾
åä½å®¤çº§é¢å¯¼å®¡æ ¸ãç产设å¤ç®¡çä¸»ç®¡å®¡æ ¸ãå¾
ä¿éé¨é¢å¯¼å®¡æ ¸ãå·²ä½åºã已宿*/ |
| | | @ApiModelProperty(value = "ç³è¯·åç¶æ;å¾
æäº¤ãå¾
åä½å®¤çº§é¢å¯¼å®¡æ ¸ãç产设å¤ç®¡çä¸»ç®¡å®¡æ ¸ãå¾
ä¿éé¨é¢å¯¼å®¡æ ¸ãå·²ä½åºã已宿") |
| | | private String applicationStatus; |
| | | /**ç³è¯·åä½å®¤çº§é¢å¯¼ç¾å*/ |
| | | @ApiModelProperty(value = "ç³è¯·åä½å®¤çº§é¢å¯¼ç¾å") |
| | | private String departHeaderSignature; |
| | | /**ç³è¯·åä½å®¤çº§é¢å¯¼ç¾åæ¶é´*/ |
| | | @ApiModelProperty(value = "ç³è¯·åä½å®¤çº§é¢å¯¼ç¾åæ¶é´") |
| | | private Date departHeaderSignatureTime; |
| | | /**ç³è¯·åä½å®¤çº§é¢å¯¼æè§*/ |
| | | @ApiModelProperty(value = "ç³è¯·åä½å®¤çº§é¢å¯¼æè§") |
| | | private String departHeaderComment; |
| | | /**ç产设å¤ç®¡ç主管ç¾å*/ |
| | | @ApiModelProperty(value = "ç产设å¤ç®¡ç主管ç¾å") |
| | | private String productionHeaderSignature; |
| | | /**ç产设å¤ç®¡ç主管ç¾ååä»¶*/ |
| | | @ApiModelProperty(value = "ç产设å¤ç®¡ç主管ç¾ååä»¶") |
| | | private Date productionHeaderSignatureTime; |
| | | /**ç产设å¤ç®¡ç主管æè§*/ |
| | | @ApiModelProperty(value = "ç产设å¤ç®¡ç主管æè§") |
| | | private String productionHeaderComment; |
| | | /**ç产ä¿éé¨é¢å¯¼ç¾å*/ |
| | | @ApiModelProperty(value = "ç产ä¿éé¨é¢å¯¼ç¾å") |
| | | private String productionSupportSignature; |
| | | /**ç产ä¿éé¨é¢å¯¼ç¾åæ¶é´*/ |
| | | @ApiModelProperty(value = "ç产ä¿éé¨é¢å¯¼ç¾åæ¶é´") |
| | | private Date productionSupportSignatureTime; |
| | | /**ç产ä¿éé¨é¢å¯¼æè§*/ |
| | | @ApiModelProperty(value = "ç产ä¿éé¨é¢å¯¼æè§") |
| | | private String productionSupportComment; |
| | | /**HFç¼ç */ |
| | | @ApiModelProperty(value = "HFç¼ç ") |
| | | private String hfCode; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.entity; |
| | | |
| | | 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.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®å·¥å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("eam_technical_status_evaluation_order") |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @ApiModel(value="eam_technical_status_evaluation_order对象", description="ææ¯ç¶æé´å®å·¥å") |
| | | public class EamTechnicalStatusEvaluationOrder { |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**å 餿 è®°*/ |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private Integer delFlag; |
| | | /**å·¥åå·*/ |
| | | @ApiModelProperty(value = "å·¥åå·") |
| | | private String orderNum; |
| | | /**设å¤ID*/ |
| | | @ApiModelProperty(value = "设å¤ID") |
| | | private String equipmentId; |
| | | /**è§èID*/ |
| | | @ApiModelProperty(value = "è§èID") |
| | | private String standardId; |
| | | /**计åé´å®æ¥æ;æå70天çæå·¥å*/ |
| | | @ApiModelProperty(value = "计åé´å®æ¥æ;æå70天çæå·¥å") |
| | | private Date evaluationDate; |
| | | /**éå®å·¥åæ¥æ;æå55天éå®å·¥å*/ |
| | | @ApiModelProperty(value = "éå®å·¥åæ¥æ;æå55天éå®å·¥å") |
| | | private Date freezeOrderDate; |
| | | /**å·¥åè¿ææ¥æ;å°ææªåç´æ¥è¿æï¼å¹¶ä¿®æ¹è®¾å¤ææ¯ç¶æä¸ºç¦ç¨*/ |
| | | @ApiModelProperty(value = "å·¥åè¿ææ¥æ;å°ææªåç´æ¥è¿æï¼å¹¶ä¿®æ¹è®¾å¤ææ¯ç¶æä¸ºç¦ç¨") |
| | | private Date orderExpirationDate; |
| | | /**å®é
å¼å§æ¶é´*/ |
| | | @ApiModelProperty(value = "å®é
å¼å§æ¶é´") |
| | | private Date actualStartTime; |
| | | /**å®é
ç»ææ¶é´*/ |
| | | @ApiModelProperty(value = "å®é
ç»ææ¶é´") |
| | | private Date actualEndTime; |
| | | /**é´å®äºº*/ |
| | | @ApiModelProperty(value = "é´å®äºº") |
| | | private String evaluator; |
| | | /**é´å®ç¶æ;å¾
é´å®ãé´å®ä¸ã维修室主任ç¾åãå·¥èºäººåç¾åãææ¯ä¸»ç®¡ç¾åãè®¾å¤æ£éªåç¾åã已宿ãå·²éå®ãåæ´ä¸ãå·²è¿æ*/ |
| | | @ApiModelProperty(value = "é´å®ç¶æ;å¾
é´å®ãé´å®ä¸ã维修室主任ç¾åãå·¥èºäººåç¾åãææ¯ä¸»ç®¡ç¾åãè®¾å¤æ£éªåç¾åã已宿ãå·²éå®ãåæ´ä¸ãå·²è¿æ") |
| | | private String evaluationStatus; |
| | | /**å建æ¹å¼*/ |
| | | @ApiModelProperty(value = "å建æ¹å¼") |
| | | private String creationMethod; |
| | | /**å®å
¨è£
ç½®æ£æ¥ç»æ;æ¯ãå¦*/ |
| | | @ApiModelProperty(value = "å®å
¨è£
ç½®æ£æ¥ç»æ;æ¯ãå¦") |
| | | private String safetyEquipmentCheckResult; |
| | | /**ç²¾åº¦åæ°æ£æ¥ç»æ;æ¯ãå¦ãæ */ |
| | | @ApiModelProperty(value = "ç²¾åº¦åæ°æ£æ¥ç»æ;æ¯ãå¦ãæ ") |
| | | private String precisionCheckResult; |
| | | /**åè½ç¶ææ£æ¥ç»æ;æ¯ãå¦*/ |
| | | @ApiModelProperty(value = "åè½ç¶ææ£æ¥ç»æ;æ¯ãå¦") |
| | | private String functionalCheckResult; |
| | | /**å
¶ä»æ£æ¥ç»æ;æ¯ãå¦ãæ */ |
| | | @ApiModelProperty(value = "å
¶ä»æ£æ¥ç»æ;æ¯ãå¦ãæ ") |
| | | private String otherCheckResult; |
| | | /**维修室主任ç¾å*/ |
| | | @ApiModelProperty(value = "维修室主任ç¾å") |
| | | private String repairManagerSignature; |
| | | /**维修室主任ç¾åæ¶é´*/ |
| | | @ApiModelProperty(value = "维修室主任ç¾åæ¶é´") |
| | | private Date repairManagerSignatureTime1; |
| | | /**è¯ä»¶æ£æ¥ç»æ;åæ ¼ãä¸åæ ¼*/ |
| | | @ApiModelProperty(value = "è¯ä»¶æ£æ¥ç»æ;åæ ¼ãä¸åæ ¼") |
| | | private String sampleCheckResult; |
| | | /**å·¥èºåç¾å*/ |
| | | @ApiModelProperty(value = "å·¥èºåç¾å") |
| | | private String processTechnicianSignature; |
| | | /**å·¥èºåç¾åæ¶é´*/ |
| | | @ApiModelProperty(value = "å·¥èºåç¾åæ¶é´") |
| | | private Date processTechnicianSignatureTime; |
| | | /**é´å®ç»æ;åæ ¼ãéç¨ãç¦ç¨*/ |
| | | @ApiModelProperty(value = "é´å®ç»æ;åæ ¼ãéç¨ãç¦ç¨") |
| | | private String evaluationResult; |
| | | /**é\ç¦ç¨åå (å¤é);å®å
¨è£
ç½®ã设å¤åè½ã精度ãè¯ä»¶ãå
¶ä»*/ |
| | | @ApiModelProperty(value = "é/ç¦ç¨åå (å¤é);å®å
¨è£
ç½®ã设å¤åè½ã精度ãè¯ä»¶ãå
¶ä»") |
| | | private String evaluationReason; |
| | | /**è®¾å¤æ£æ¥äººç¾å*/ |
| | | @ApiModelProperty(value = "è®¾å¤æ£æ¥äººç¾å") |
| | | private String inspectorSignature; |
| | | /**è®¾å¤æ£æ¥äººç¾åæ¶é´*/ |
| | | @ApiModelProperty(value = "è®¾å¤æ£æ¥äººç¾åæ¶é´") |
| | | private Date inspectorSignatureTime; |
| | | /**éå½A HFç¼ç */ |
| | | @ApiModelProperty(value = "éå½A HFç¼ç ") |
| | | private String hfCodeA; |
| | | /**éå½B HFç¼ç */ |
| | | @ApiModelProperty(value = "éå½B HFç¼ç ") |
| | | private String hfCodeB; |
| | | /**éå½C HFç¼ç */ |
| | | @ApiModelProperty(value = "éå½C HFç¼ç ") |
| | | private String hfCodeC; |
| | | /**éå½D HFç¼ç */ |
| | | @ApiModelProperty(value = "éå½D HFç¼ç ") |
| | | private String hfCodeD; |
| | | /**夿³¨*/ |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String remark; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.entity; |
| | | |
| | | 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.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®å·¥ååæ´ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("eam_technical_status_evaluation_order_change") |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @ApiModel(value="eam_technical_status_evaluation_order_change对象", description="ææ¯ç¶æé´å®å·¥ååæ´") |
| | | public class EamTechnicalStatusEvaluationOrderChange { |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**å 餿 è®°*/ |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private Integer delFlag; |
| | | /**å·¥åID*/ |
| | | @ApiModelProperty(value = "å·¥åID") |
| | | private String orderId; |
| | | /**åæ´åå·*/ |
| | | @ApiModelProperty(value = "åæ´åå·") |
| | | private String changeOrderNum; |
| | | /**ç³è¯·äºº*/ |
| | | @ApiModelProperty(value = "ç³è¯·äºº") |
| | | private String applicant; |
| | | /**ç³è¯·é¨é¨*/ |
| | | @ApiModelProperty(value = "ç³è¯·é¨é¨") |
| | | private String factoryOrgCode; |
| | | /**ç³è¯·æ¥æ*/ |
| | | @ApiModelProperty(value = "ç³è¯·æ¥æ") |
| | | private Date applyDate; |
| | | /**åæ´ç¶æ;å¾
æäº¤ãå¾
ä¸»ç®¡å®¡æ ¸ãå¾
é¨é¨ç¡®è®¤ãå¾
ä¿éé¨ç¡®è®¤ãå·²ä½åºã已宿*/ |
| | | @ApiModelProperty(value = "åæ´ç¶æ;å¾
æäº¤ãå¾
ä¸»ç®¡å®¡æ ¸ãå¾
é¨é¨ç¡®è®¤ãå¾
ä¿éé¨ç¡®è®¤ãå·²ä½åºã已宿") |
| | | private String changeStatus; |
| | | /**åæ´åå ;çäº§ä»»å¡æ¥æ æ³åæºãè®¾å¤æ
鿣å¤äºç»´ä¿®ç¶æã设å¤å·²æ¥åºã设å¤å¤§ä¿®ãæ¬è¿ãæ¹é */ |
| | | @ApiModelProperty(value = "åæ´åå ;çäº§ä»»å¡æ¥æ æ³åæºãè®¾å¤æ
鿣å¤äºç»´ä¿®ç¶æã设å¤å·²æ¥åºã设å¤å¤§ä¿®ãæ¬è¿ãæ¹é ") |
| | | private String applyReason; |
| | | /**åæ´é´å®æ¥æ*/ |
| | | @ApiModelProperty(value = "åæ´é´å®æ¥æ") |
| | | private Date deferredMaintenanceDate; |
| | | /**主管é¢å¯¼ç¾å*/ |
| | | @ApiModelProperty(value = "主管é¢å¯¼ç¾å") |
| | | private String equipmentManagerSignature; |
| | | /**主管é¢å¯¼ç¾åæ¶é´*/ |
| | | @ApiModelProperty(value = "主管é¢å¯¼ç¾åæ¶é´") |
| | | private Date equipmentManagerSignatureTime; |
| | | /**é¨é¨é¢å¯¼ç¾å;æ ¹æ®åæ´åå ç±»ååºåä¸åç人审æ¹*/ |
| | | @ApiModelProperty(value = "é¨é¨é¢å¯¼ç¾å;æ ¹æ®åæ´åå ç±»ååºåä¸åç人审æ¹") |
| | | private String departManagerSignature; |
| | | /**é¨é¨é¢å¯¼ç¾åæ¶é´*/ |
| | | @ApiModelProperty(value = "é¨é¨é¢å¯¼ç¾åæ¶é´") |
| | | private Date departManagerSignatureTime; |
| | | /**é¨é¨é¢å¯¼æè§*/ |
| | | @ApiModelProperty(value = "é¨é¨é¢å¯¼æè§") |
| | | private String departManagerComment; |
| | | /**ç产ä¿éé¨é¢å¯¼ç¾å*/ |
| | | @ApiModelProperty(value = "ç产ä¿éé¨é¢å¯¼ç¾å") |
| | | private String productionSupportSignature; |
| | | /**ç产ä¿éé¨é¢å¯¼ç¾åæ¶é´*/ |
| | | @ApiModelProperty(value = "ç产ä¿éé¨é¢å¯¼ç¾åæ¶é´") |
| | | private Date productionSupportSignatureTime; |
| | | /**ç产ä¿éé¨é¢å¯¼æè§*/ |
| | | @ApiModelProperty(value = "ç产ä¿éé¨é¢å¯¼æè§") |
| | | private String productionSupportComment; |
| | | /**HFç¼ç */ |
| | | @ApiModelProperty(value = "HFç¼ç ") |
| | | private String hfCode; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.entity; |
| | | |
| | | 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.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®å·¥åæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("eam_technical_status_evaluation_order_detail") |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @ApiModel(value="eam_technical_status_evaluation_order_detail对象", description="ææ¯ç¶æé´å®å·¥åæç»") |
| | | public class EamTechnicalStatusEvaluationOrderDetail { |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**åºå·*/ |
| | | @ApiModelProperty(value = "åºå·") |
| | | private Integer itemCode; |
| | | /**æ£æ¥åç±»;ç²¾åº¦æ£æ¥ãå®å
¨è£
ç½®æ£æ¥ãå
¶ä»æ£æ¥*/ |
| | | @ApiModelProperty(value = "æ£æ¥åç±»;ç²¾åº¦æ£æ¥ãå®å
¨è£
ç½®æ£æ¥ãå
¶ä»æ£æ¥") |
| | | private String checkCategory; |
| | | /**æ£æ¥é¡¹ç®*/ |
| | | @ApiModelProperty(value = "æ£æ¥é¡¹ç®") |
| | | private String itemName; |
| | | /**å
å·®å¼;ç²¾åº¦æ£æ¥å±ç¤º*/ |
| | | @ApiModelProperty(value = "å
å·®å¼;ç²¾åº¦æ£æ¥å±ç¤º") |
| | | private String toleranceValue; |
| | | /**æ£æ¥å项ç®;ç²¾åº¦æ£æ¥å±ç¤ºï¼å¯ä»¥ä¸ºç©º*/ |
| | | @ApiModelProperty(value = "æ£æ¥å项ç®;ç²¾åº¦æ£æ¥å±ç¤ºï¼å¯ä»¥ä¸ºç©º") |
| | | private String subItemName; |
| | | /**å®å
¨è£
ç½®æ£æ¥ç»æ;æ¯ãå¦ãæ */ |
| | | @ApiModelProperty(value = "å®å
¨è£
ç½®æ£æ¥ç»æ;æ¯ãå¦ãæ ") |
| | | private String safetyEquipmentCheckResult; |
| | | /**å
¶ä»æ£æ¥ç»æ*/ |
| | | @ApiModelProperty(value = "å
¶ä»æ£æ¥ç»æ") |
| | | private String otherCheckResult; |
| | | /**精度æ£éªç»æ*/ |
| | | @ApiModelProperty(value = "精度æ£éªç»æ") |
| | | private java.math.BigDecimal precisionCheckResult; |
| | | /**维修人/ç²¾åº¦æ£æ¥è
ç¾å*/ |
| | | @ApiModelProperty(value = "维修人/ç²¾åº¦æ£æ¥è
ç¾å") |
| | | private String repairmanSignature; |
| | | /**维修人/ç²¾åº¦æ£æ¥è
ç¾åæ¶é´*/ |
| | | @ApiModelProperty(value = "维修人/ç²¾åº¦æ£æ¥è
ç¾åæ¶é´") |
| | | private Date repairmanSignatureTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusChangeDetail; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æåæ´ç³è¯·æç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface EamTechnicalStatusChangeDetailMapper extends BaseMapper<EamTechnicalStatusChangeDetail> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusChange; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æåæ´ç³è¯· |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface EamTechnicalStatusChangeMapper extends BaseMapper<EamTechnicalStatusChange> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusDeactivateDetail; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: åç¨å 工设å¤ç³è¯·åæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface EamTechnicalStatusDeactivateDetailMapper extends BaseMapper<EamTechnicalStatusDeactivateDetail> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusDeactivate; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: åç¨å 工设å¤ç³è¯·å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface EamTechnicalStatusDeactivateMapper extends BaseMapper<EamTechnicalStatusDeactivate> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationApplication; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: å å·¥è®¾å¤ææ¯é´å®ç³è¯· |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface EamTechnicalStatusEvaluationApplicationMapper extends BaseMapper<EamTechnicalStatusEvaluationApplication> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationOrderChange; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®å·¥ååæ´ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface EamTechnicalStatusEvaluationOrderChangeMapper extends BaseMapper<EamTechnicalStatusEvaluationOrderChange> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationOrderDetail; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®å·¥åæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface EamTechnicalStatusEvaluationOrderDetailMapper extends BaseMapper<EamTechnicalStatusEvaluationOrderDetail> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationOrder; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®å·¥å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface EamTechnicalStatusEvaluationOrderMapper extends BaseMapper<EamTechnicalStatusEvaluationOrder> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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="org.jeecg.modules.eam.mapper.EamTechnicalStatusChangeDetailMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.eam.mapper.EamTechnicalStatusChangeMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.eam.mapper.EamTechnicalStatusDeactivateDetailMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.eam.mapper.EamTechnicalStatusDeactivateMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.eam.mapper.EamTechnicalStatusEvaluationApplicationMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.eam.mapper.EamTechnicalStatusEvaluationOrderChangeMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.eam.mapper.EamTechnicalStatusEvaluationOrderDetailMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.eam.mapper.EamTechnicalStatusEvaluationOrderMapper"> |
| | | |
| | | </mapper> |
| | |
| | | * @param maintenanceCategory ä¿å
»ç±»å |
| | | * @return |
| | | */ |
| | | EamMaintenanceStandard checkDuplicate(String equipmentId, String maintenanceCategory); |
| | | EamMaintenanceStandard checkDuplicate(String equipmentId, String maintenanceCategory,String standardStatus); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ åå表-å端å±ç¤ºè¯¥ç¨æ·æ¥æçæ å |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service; |
| | | |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusChangeDetail; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æåæ´ç³è¯·æç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IEamTechnicalStatusChangeDetailService extends IService<EamTechnicalStatusChangeDetail> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service; |
| | | |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusChange; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æåæ´ç³è¯· |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IEamTechnicalStatusChangeService extends IService<EamTechnicalStatusChange> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service; |
| | | |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusDeactivateDetail; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * @Description: åç¨å 工设å¤ç³è¯·åæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IEamTechnicalStatusDeactivateDetailService extends IService<EamTechnicalStatusDeactivateDetail> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service; |
| | | |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusDeactivate; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * @Description: åç¨å 工设å¤ç³è¯·å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IEamTechnicalStatusDeactivateService extends IService<EamTechnicalStatusDeactivate> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service; |
| | | |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationApplication; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * @Description: å å·¥è®¾å¤ææ¯é´å®ç³è¯· |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IEamTechnicalStatusEvaluationApplicationService extends IService<EamTechnicalStatusEvaluationApplication> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service; |
| | | |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationOrderChange; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®å·¥ååæ´ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IEamTechnicalStatusEvaluationOrderChangeService extends IService<EamTechnicalStatusEvaluationOrderChange> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service; |
| | | |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationOrderDetail; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®å·¥åæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IEamTechnicalStatusEvaluationOrderDetailService extends IService<EamTechnicalStatusEvaluationOrderDetail> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service; |
| | | |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationOrder; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®å·¥å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IEamTechnicalStatusEvaluationOrderService extends IService<EamTechnicalStatusEvaluationOrder> { |
| | | |
| | | } |
| | |
| | | |
| | | /** |
| | | * æ ¹æ®è§èIDå 餿£æ¥é¡¹ |
| | | * @param standardId |
| | | * @param standardId è§èID |
| | | */ |
| | | void removeByStandardId(String standardId); |
| | | |
| | | /** |
| | | * æ ¹æ®è§èIDå 餿£æ¥é¡¹ |
| | | * @param standardId è§èID |
| | | * @param category åç±» |
| | | */ |
| | | void removeByStandardIdAndCategory(String standardId, String category); |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationStandard; |
| | | import org.jeecg.modules.eam.request.EamTechnicalStatusEvaluationStandardRequest; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®è§è |
| | |
| | | * @return |
| | | */ |
| | | boolean upgrade(EamTechnicalStatusEvaluationStandardRequest request); |
| | | |
| | | /** |
| | | * å®å
¨è£
置导å
¥ |
| | | * @param file |
| | | * @return |
| | | */ |
| | | Result<?> importSafetyEquipmentCheck(MultipartFile file); |
| | | |
| | | /** |
| | | * 设å¤ç²¾åº¦å¯¼å
¥ |
| | | * @param file |
| | | * @return |
| | | */ |
| | | Result<?> importPrecisionCheck(MultipartFile file); |
| | | |
| | | /** |
| | | * å
¶ä»æ£æ¥å¯¼å
¥ |
| | | * @param file |
| | | * @return |
| | | */ |
| | | Result<?> importOtherCheck(MultipartFile file); |
| | | } |
| | |
| | | List<BaseFactoryUser> baseFactoryUserList = baseFactoryUserService. |
| | | list(new LambdaQueryWrapper<BaseFactoryUser>().eq(BaseFactoryUser::getUserId, sysUser.getId())); |
| | | if (!CollectionUtils.isEmpty(baseFactoryUserList)) { |
| | | List<String> factoryIds = baseFactoryUserList.stream().map(BaseFactoryUser::getFactoryId).collect(Collectors.toList()); |
| | | List<String> factoryCode = baseFactoryService.listByIds(factoryIds).stream().map(BaseFactory::getFactoryCode).collect(Collectors.toList()); |
| | | Set<String> factoryIds = baseFactoryUserList.stream().map(BaseFactoryUser::getFactoryId).collect(Collectors.toSet()); |
| | | Set<String> factoryCode = baseFactoryService.listByIds(factoryIds).stream().map(BaseFactory::getOrgCode).collect(Collectors.toSet()); |
| | | queryWrapper.in("e.factory_org_code", factoryCode); |
| | | }else { |
| | | return page; |
| | | } |
| | | } |
| | | //æ¥è¯¢æ¡ä»¶è¿æ»¤ |
| | |
| | | List<BaseFactoryUser> baseFactoryUserList=baseFactoryUserService. |
| | | list(new LambdaQueryWrapper<BaseFactoryUser>().eq(BaseFactoryUser::getUserId,sysUser.getId())); |
| | | if(!CollectionUtils.isEmpty(baseFactoryUserList)){ |
| | | List<String> factoryIds = baseFactoryUserList.stream().map(BaseFactoryUser::getFactoryId).collect(Collectors.toList()); |
| | | List<String> factoryCode= baseFactoryService.listByIds(factoryIds).stream().map(BaseFactory::getFactoryCode).collect(Collectors.toList()); |
| | | Set<String> factoryIds = baseFactoryUserList.stream().map(BaseFactoryUser::getFactoryId).collect(Collectors.toSet()); |
| | | Set<String> factoryCode= baseFactoryService.listByIds(factoryIds).stream().map(BaseFactory::getOrgCode).collect(Collectors.toSet()); |
| | | queryWrapper.in("e.factory_org_code", factoryCode); |
| | | } else { |
| | | return page; |
| | | } |
| | | } |
| | | if(eamMaintenanceStandard != null) { |
| | |
| | | //å 餿 è®° |
| | | entity.setDelFlag(CommonConstant.DEL_FLAG_0); |
| | | //é夿§æ ¡éª |
| | | EamMaintenanceStandard exist = checkDuplicate(entity.getEquipmentId(), entity.getMaintenanceCategory()); |
| | | EamMaintenanceStandard exist = checkDuplicate(entity.getEquipmentId(), entity.getMaintenanceCategory(),MaintenanceStandardStatusEnum.WAIT_SUBMIT.name()); |
| | | if(exist != null){ |
| | | throw new JeecgBootException("è®¾å¤æ åå·²åå¨ï¼ä¸è½é夿·»å ï¼"); |
| | | } |
| | |
| | | //å 餿 è®° |
| | | newEntity.setDelFlag(CommonConstant.DEL_FLAG_0); |
| | | //é夿§æ ¡éª |
| | | EamMaintenanceStandard exist = checkDuplicate(newEntity.getEquipmentId(), newEntity.getMaintenanceCategory()); |
| | | EamMaintenanceStandard exist = checkDuplicate(newEntity.getEquipmentId(), newEntity.getMaintenanceCategory(),MaintenanceStandardStatusEnum.WAIT_SUBMIT.name()); |
| | | if(exist != null){ |
| | | throw new JeecgBootException("è®¾å¤æ åå·²åå¨ï¼ä¸è½é夿·»å ï¼"); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public EamMaintenanceStandard checkDuplicate(String equipmentId, String maintenanceCategory) { |
| | | public EamMaintenanceStandard checkDuplicate(String equipmentId, String maintenanceCategory,String standardStatus) { |
| | | LambdaQueryWrapper<EamMaintenanceStandard> queryWrapper = new LambdaQueryWrapper<>(); |
| | | queryWrapper.eq(EamMaintenanceStandard::getEquipmentId, equipmentId); |
| | | queryWrapper.eq(EamMaintenanceStandard::getMaintenanceCategory, maintenanceCategory); |
| | | queryWrapper.eq(EamMaintenanceStandard::getDelFlag, CommonConstant.DEL_FLAG_0); |
| | | queryWrapper.eq(EamMaintenanceStandard::getStandardStatus, MaintenanceStandardStatusEnum.WAIT_SUBMIT.name()); |
| | | queryWrapper.eq(EamMaintenanceStandard::getStandardStatus, standardStatus); |
| | | queryWrapper.orderByDesc(EamMaintenanceStandard::getStandardVersion); |
| | | |
| | | List<EamMaintenanceStandard> list = eamMaintenanceStandardMapper.selectList(queryWrapper); |
| | |
| | | } |
| | | |
| | | eamMaintenanceStandard.setStandardName(name); |
| | | |
| | | EamMaintenanceStandard exist = checkDuplicate(eamMaintenanceStandard.getEquipmentId(), eamMaintenanceStandard.getMaintenanceCategory(),MaintenanceStandardStatusEnum.START.name()); |
| | | if(exist != null){ |
| | | return Result.error(name + ": è®¾å¤æ åå·²åå¨ï¼ä¸è½é夿·»å "); |
| | | } |
| | | |
| | | eamMaintenanceStandardMapper.insert(eamMaintenanceStandard); |
| | | |
| | | // 2. æåæ¯æ¥ç¹æ£é¡¹ç® |
| | |
| | | /*导å
¥ç¹æ£æä»¶Excel--------------------------ç»æ*/ |
| | | |
| | | /*导å
¥äºä¿ä¸ä¿æä»¶Excel--------------------------å¼å§*/ |
| | | |
| | | /** |
| | | * ç»ä¸ä¿å
»è§è导å
¥å
¥å£ |
| | | * @param file ä¸ä¼ æä»¶ |
| | |
| | | return Result.error(fileName + ": ææ¡£ä¸æªæ¾å°è¡¨æ ¼"); |
| | | } |
| | | |
| | | XWPFTable table = doc.getTables().get(0); |
| | | List<XWPFTable> tables = doc.getTables(); |
| | | EamMaintenanceStandard standard = null; |
| | | List<EamMaintenanceStandardDetail> items = new ArrayList<>(); |
| | | String standardId = null; |
| | | |
| | | // ææ¡£ç±»åæ ¡éª - 鲿¢äºä¿ä¼ å
¥ä¸ä¿æåä¹ |
| | | if (isWrongDocumentType(table, type)) { |
| | | return Result.error(fileName + ": ææ¡£ç±»åä¸å¹é
- " + |
| | | ("SECOND".equals(type) ? "请导å
¥äºçº§ä¿å
»ææ¡£" : "请导å
¥ä¸çº§ä¿å
»ææ¡£")); |
| | | // 1. å¤çææè¡¨æ ¼ |
| | | for (int i = 0; i < tables.size(); i++) { |
| | | XWPFTable table = tables.get(i); |
| | | |
| | | if (i == 0) { // 第ä¸é¡µè¡¨æ ¼ |
| | | // éªè¯è®¾å¤ä¿¡æ¯è¡¨æ ¼ |
| | | if (isWrongDocumentType(table, type)) { |
| | | return Result.error(fileName + ": ææ¡£ç±»åä¸å¹é
- " + |
| | | ("SECOND".equals(type) ? "请导å
¥äºçº§ä¿å
»ææ¡£" : "请导å
¥ä¸çº§ä¿å
»ææ¡£")); |
| | | } |
| | | |
| | | // æå设å¤ä¿¡æ¯ |
| | | standard = extractDeviceInfo(table,type); |
| | | if (standard == null) { |
| | | return Result.error(fileName + ": 设å¤ä¿¡æ¯æå失败"); |
| | | } |
| | | |
| | | // é
置类åç¸å
³åæ° |
| | | configureStandard(standard, type, file); |
| | | EamMaintenanceStandard exist = checkDuplicate(standard.getEquipmentId(), standard.getMaintenanceCategory(),MaintenanceStandardStatusEnum.START.name()); |
| | | if(exist != null){ |
| | | return Result.error(fileName + ": è®¾å¤æ åå·²åå¨ï¼ä¸è½é夿·»å "); |
| | | } |
| | | eamMaintenanceStandardMapper.insert(standard); |
| | | standardId = standard.getId(); |
| | | |
| | | // æå第ä¸é¡µçä¿å
»é¡¹ç® |
| | | if ("SECOND".equals(type)) { |
| | | items.addAll(extractSecondMaintenanceItems(table, standardId, true)); |
| | | } else if ("THIRD".equals(type)) { |
| | | items.addAll(extractThirdMaintenanceItems(table, standardId, true)); |
| | | } |
| | | |
| | | } else { // åç»é¡µé¢ |
| | | // æååç»é¡µé¢çä¿å
»é¡¹ç® |
| | | if ("SECOND".equals(type)) { |
| | | items.addAll(extractSecondMaintenanceItems(table, standardId, false)); |
| | | } else if ("THIRD".equals(type)) { |
| | | items.addAll(extractThirdMaintenanceItems(table, standardId, false)); |
| | | } |
| | | } |
| | | } |
| | | |
| | | EamMaintenanceStandard standard = extractDeviceInfo(table); |
| | | // éªè¯è®¾å¤ä¿¡æ¯æå |
| | | if (standard == null) { |
| | | return Result.error(fileName + ": 设å¤ä¿¡æ¯æå失败"); |
| | | } |
| | | |
| | | // é
置类åç¸å
³åæ° |
| | | configureStandard(standard, type, file); |
| | | eamMaintenanceStandardMapper.insert(standard); |
| | | String standardId = standard.getId(); |
| | | // 2. åå¤çï¼æ ¹æ®ä¸åç±»åè¿è¡å¤ç |
| | | processItemsAfterExtraction(items, type); |
| | | |
| | | // æåä¿å
»é¡¹ç® |
| | | List<EamMaintenanceStandardDetail> items; |
| | | if ("SECOND".equals(type)) { |
| | | items = extractSecondMaintenanceItems(table, standardId); |
| | | } else if ("THIRD".equals(type)) { |
| | | items = extractThirdMaintenanceItems(table, standardId); |
| | | } else { |
| | | return Result.error(fileName + ": 䏿¯æçä¿å
»ç±»å: " + type); |
| | | } |
| | | |
| | | // 项ç®éªè¯ |
| | | // 3. 项ç®éªè¯ |
| | | if (items.isEmpty()) { |
| | | return Result.error(fileName + ": æªæåå°ä»»ä½ä¿å
»é¡¹ç®"); |
| | | } |
| | | |
| | | // ä¿åé¡¹ç® |
| | | // 4. ä¿åé¡¹ç® |
| | | eamMaintenanceStandardDetailService.saveBatch(items); |
| | | |
| | | return Result.ok(fileName + ": 导å
¥æå, é¡¹ç®æ°: " + items.size()); |
| | |
| | | } catch (Exception e) { |
| | | return Result.error(fileName + ": ç³»ç»é误 - " + e.getClass().getSimpleName()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * åå¤çæ¹æ³ï¼æ ¹æ®ä¸åç±»åè¿è¡å¤ç |
| | | */ |
| | | private void processItemsAfterExtraction(List<EamMaintenanceStandardDetail> items, String type) { |
| | | if ("SECOND".equals(type)) { |
| | | // äºçº§ä¿å
»: å 餿²¡æåºå·çæ°æ® |
| | | items.removeIf(item -> item.getItemCode() == null); |
| | | } else { |
| | | // ä¸çº§ä¿å
»: |
| | | // 1. å é¤ç¬¬ä¸æ¡æ°æ®ï¼éå¸¸æ¯æ é¢è¡ï¼ |
| | | if (!items.isEmpty()) { |
| | | items.remove(0); |
| | | } |
| | | |
| | | // 2. 为缺失é¨ä½çæ°æ®å¡«å
å䏿¡çä¿å
»é¨ä½ |
| | | String lastPart = ""; |
| | | for (EamMaintenanceStandardDetail item : items) { |
| | | if (item.getItemPart() != null && !item.getItemPart().isEmpty()) { |
| | | lastPart = item.getItemPart(); |
| | | } else if (!lastPart.isEmpty()) { |
| | | item.setItemPart(lastPart); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | /** |
| | | * æåäºçº§ä¿å
»é¡¹ç®ï¼åºå第ä¸é¡µååç»é¡µé¢ï¼ |
| | | */ |
| | | private List<EamMaintenanceStandardDetail> extractSecondMaintenanceItems( |
| | | XWPFTable table, String standardId, boolean isFirstTable) { |
| | | |
| | | List<EamMaintenanceStandardDetail> items = new ArrayList<>(); |
| | | String currentCategory = null; |
| | | int startRow = 0; |
| | | |
| | | // 对äºç¬¬ä¸é¡µè¡¨æ ¼ï¼è·³è¿å两è¡ï¼è®¾å¤ä¿¡æ¯è¡ï¼ |
| | | if (isFirstTable && table.getNumberOfRows() > 2) { |
| | | startRow = 2; // ä»ç¬¬ä¸è¡å¼å§æ¯ä¿å
Ȍ
容 |
| | | } |
| | | |
| | | for (int i = startRow; i < table.getNumberOfRows(); i++) { |
| | | XWPFTableRow row = table.getRow(i); |
| | | if (row == null) continue; |
| | | |
| | | // æ£æ¥æ¯å¦æ¯æ é¢è¡ï¼ç»´ä¿®äººåä¿å
Ȍ
容ææä½äººåä¿å
Ȍ
å®¹ï¼ |
| | | String firstCell = getCellText(row.getCell(0)); |
| | | // å¤ç空è¡åçé¨ä½ç»§æ¿ |
| | | if (firstCell.contains(REPAIR_TITLE)) { |
| | | currentCategory = "REPAIRER_MAINTENANCE"; |
| | | } else if (firstCell.contains(OPERATOR_TITLE)) { |
| | | currentCategory = "OPERATOR_MAINTENANCE"; |
| | | } |
| | | |
| | | // å¤çæ®é项ç®è¡ |
| | | if (currentCategory != null && isValidItemRow(row)) { |
| | | EamMaintenanceStandardDetail item = new EamMaintenanceStandardDetail(); |
| | | item.setItemCategory(currentCategory); |
| | | item.setStandardId(standardId); |
| | | |
| | | // æååºå·ï¼ç¬¬äºåï¼ |
| | | if (row.getTableCells().size() > 1) { |
| | | String seqText = getCellText(row.getCell(1)); |
| | | try { |
| | | if (!seqText.equals("åºå·")){ |
| | | item.setItemCode(Integer.parseInt(seqText.trim())); |
| | | } |
| | | } catch (NumberFormatException e) { |
| | | // 忽ç¥åºå·è§£æé误 |
| | | } |
| | | } |
| | | |
| | | // æåå
容ï¼ç¬¬ä¸åï¼ |
| | | if (row.getTableCells().size() > 2) { |
| | | String seqText = getCellText(row.getCell(2)); |
| | | item.setItemName(seqText); |
| | | } |
| | | |
| | | items.add(item); |
| | | } |
| | | } |
| | | return items; |
| | | } |
| | | |
| | | /** |
| | | * æåä¸çº§ä¿å
»é¡¹ç®ï¼è§£å³è·¨é¡µç©ºè¡é®é¢ï¼ |
| | | */ |
| | | private List<EamMaintenanceStandardDetail> extractThirdMaintenanceItems( |
| | | XWPFTable table, String standardId, boolean isFirstTable) { |
| | | |
| | | List<EamMaintenanceStandardDetail> items = new ArrayList<>(); |
| | | String currentPart = ""; |
| | | int startRow = 0; |
| | | |
| | | // 对äºç¬¬ä¸é¡µè¡¨æ ¼ï¼è·³è¿å两è¡ï¼è®¾å¤ä¿¡æ¯è¡ï¼ |
| | | if (isFirstTable && table.getNumberOfRows() > 2) { |
| | | startRow = 2; // ä»ç¬¬ä¸è¡å¼å§æ¯ä¿å
Ȍ
容 |
| | | } |
| | | |
| | | for (int i = startRow; i < table.getNumberOfRows(); i++) { |
| | | XWPFTableRow row = table.getRow(i); |
| | | if (row == null) continue; // ç¡®ä¿è¡å¯¹è±¡ä¸ä¸ºç©º |
| | | |
| | | // æ£æ¥æ¯å¦æ¯ç©ºè¡ï¼å
嫿æåå
æ ¼é½ä¸ºç©ºçæ
åµï¼ |
| | | if (isRowEmpty(row)) { |
| | | // 空è¡å¤çï¼ä¿çå½åä½ç½®ä½ä¸åå»ºé¡¹ç® |
| | | continue; |
| | | } |
| | | |
| | | // å建ä¿å
»é¡¹ç® |
| | | EamMaintenanceStandardDetail item = new EamMaintenanceStandardDetail(); |
| | | item.setItemCategory("THIRD_MAINTENANCE"); |
| | | item.setStandardId(standardId); |
| | | int colCount = row.getTableCells().size(); |
| | | |
| | | // å¤çé¨ä½åï¼ç¬¬ä¸åï¼ |
| | | if (colCount > 0) { |
| | | String firstCell = getCellText(row.getCell(0)).trim(); |
| | | |
| | | // å
³é®æ¹è¿ï¼æ£ç¡®å¤ç空è¡åçé¨ä½ç»§æ¿ |
| | | if (!firstCell.isEmpty() && !firstCell.equals("ä¿å
»é¨ä½")) { |
| | | // æ´æ°å½åé¨ä½ |
| | | currentPart = firstCell; |
| | | } |
| | | item.setItemPart(currentPart); |
| | | } else { |
| | | // å¦ææ²¡æåå
æ ¼ï¼ä½¿ç¨å½åé¨ä½ |
| | | item.setItemPart(currentPart); |
| | | } |
| | | |
| | | // æ ¹æ®åæ°æåå
容ï¼èèåå¹¶åå
æ ¼æ
åµï¼ |
| | | List<String> cellContents = new ArrayList<>(); |
| | | for (int j = 0; j < colCount; j++) { |
| | | XWPFTableCell cell = row.getCell(j); |
| | | String text = getCellText(cell).trim(); |
| | | |
| | | // ç¹æ®å¤çï¼ç¬¬äºé¡µç¬¬ä¸è¡å¯è½æ¯ç©ºè¡åçå
容 |
| | | if (j == 0 && !text.isEmpty() && !text.equals(currentPart)) { |
| | | // 妿䏿¯é¨ä½åï¼åæ·»å 为å
容 |
| | | cellContents.add(text); |
| | | } else if (j > 0) { |
| | | // å
¶ä»åä½ä¸ºå
容 |
| | | cellContents.add(text); |
| | | } |
| | | } |
| | | |
| | | // æºè½è§£æåå
æ ¼å
容 |
| | | if (cellContents.size() >= 2) { |
| | | // é»è®¤å¤çæ¹å¼ï¼æå两个ä½ä¸ºå
å®¹åæ å |
| | | item.setItemName(cellContents.get(cellContents.size() - 2)); |
| | | item.setItemDemand(cellContents.get(cellContents.size() - 1)); |
| | | } else if (cellContents.size() == 1) { |
| | | // å忍¡å¼ï¼è§ä¸ºå
容 |
| | | item.setItemName(cellContents.get(0)); |
| | | } else if (!isRowEmpty(row)) { |
| | | // ç¹æ®å¤çï¼è¡éç©ºä½æ²¡ææåå°å
容ï¼å¯è½æ¯å¤æåå¹¶åå
æ ¼ï¼ |
| | | // å°è¯æåæ´è¡ææ¬ä½ä¸ºå
容 |
| | | StringBuilder content = new StringBuilder(); |
| | | for (XWPFTableCell cell : row.getTableCells()) { |
| | | content.append(getCellText(cell).trim()).append(" "); |
| | | } |
| | | item.setItemName(content.toString().trim()); |
| | | } |
| | | |
| | | items.add(item); |
| | | } |
| | | return items; |
| | | } |
| | | |
| | | /** |
| | | * ä¼ååçç©ºè¡æ£æµï¼è§£å³è·¨é¡µç©ºè¡é®é¢ï¼ |
| | | */ |
| | | private boolean isRowEmpty(XWPFTableRow row) { |
| | | if (row == null || row.getTableCells().isEmpty()) { |
| | | return true; |
| | | } |
| | | |
| | | boolean allCellsEmpty = true; |
| | | for (XWPFTableCell cell : row.getTableCells()) { |
| | | String text = getCellText(cell).trim(); |
| | | // ä¿çå
嫿¢è¡ç¬¦ççåå
æ ¼ä½ä¸ºéç©ºè¡ |
| | | if (!text.isEmpty() && !text.replaceAll("\\s+", "").isEmpty()) { |
| | | allCellsEmpty = false; |
| | | break; |
| | | } |
| | | } |
| | | return allCellsEmpty; |
| | | } |
| | | |
| | | /** |
| | |
| | | /** |
| | | * æå设å¤åºæ¬ä¿¡æ¯ |
| | | */ |
| | | private EamMaintenanceStandard extractDeviceInfo(XWPFTable table) { |
| | | private EamMaintenanceStandard extractDeviceInfo(XWPFTable table,String type) { |
| | | if (table.getNumberOfRows() < 2) return null; |
| | | |
| | | // æååä¸¤è¡æ°æ® |
| | |
| | | }else { |
| | | standard.setEquipmentId(equipments.getId()); |
| | | } |
| | | if (type.equals("THIRD")){ |
| | | EamEquipmentExtend eamEquipmentExtend=eamEquipmentExtendService.getById(standard.getEquipmentId()); |
| | | standard.setMaintenancePeriod(eamEquipmentExtend.getThirdMaintenancePeriod()); |
| | | } |
| | | } |
| | | |
| | | return standard; |
| | | } |
| | | |
| | | // ç®æçå符串éç©ºå¤æ |
| | | private boolean isNotBlank(String str) { |
| | | return str != null && !str.trim().isEmpty(); |
| | | } |
| | | |
| | | /** |
| | | * è¡¨æ ¼è¡æ°æ®è§£æ |
| | |
| | | } |
| | | |
| | | /** |
| | | * æåäºçº§ä¿å
»é¡¹ç® |
| | | */ |
| | | private List<EamMaintenanceStandardDetail> extractSecondMaintenanceItems( |
| | | XWPFTable table, String standardId) { |
| | | |
| | | List<EamMaintenanceStandardDetail> items = new ArrayList<>(); |
| | | EamMaintenanceStandardDetailCategory currentCategory = null; |
| | | |
| | | for (int i = 0; i < table.getNumberOfRows(); i++) { |
| | | XWPFTableRow row = table.getRow(i); |
| | | if (row == null) continue; |
| | | |
| | | // æ£æ¥æ¯å¦æ¯æ é¢è¡ï¼ç»´ä¿®äººåä¿å
Ȍ
容ææä½äººåä¿å
Ȍ
å®¹ï¼ |
| | | String firstCell = getCellText(row.getCell(0)); |
| | | if (firstCell != null) { |
| | | for (String title : SECOND_CATEGORY_MAPPING.keySet()) { |
| | | if (firstCell.contains(title)) { |
| | | currentCategory = SECOND_CATEGORY_MAPPING.get(title); |
| | | |
| | | // æ£æ¥ç¬¬äºåå第ä¸åæ¯å¦æ¯"åºå·"å"ä¿å
Ȍ
容" |
| | | if (row.getTableCells().size() > 2) { |
| | | String secondCell = getCellText(row.getCell(1)); |
| | | String thirdCell = getCellText(row.getCell(2)); |
| | | |
| | | // æç¡®è·³è¿æ é¢è¡ |
| | | if ("åºå·".equals(secondCell) && "ä¿å
Ȍ
容".equals(thirdCell)) { |
| | | continue; // è·³è¿è¿ä¸è¡ |
| | | } |
| | | } |
| | | |
| | | // å°è¯æåæ é¢è¡ä¸ç项ç®ï¼å¦æåå¨ï¼ |
| | | if (row.getTableCells().size() > 2) { |
| | | String content = getCellText(row.getCell(2)); |
| | | if (content != null && !content.trim().isEmpty() && |
| | | !"ä¿å
Ȍ
容".equals(content.trim())) { // è¿æ»¤æ æå
容 |
| | | items.add(createItem(currentCategory, content.trim(), standardId)); |
| | | } |
| | | } |
| | | continue; |
| | | } |
| | | } |
| | | } |
| | | |
| | | // å¤çæ®é项ç®è¡ |
| | | if (currentCategory != null && isValidItemRow(row)) { |
| | | // è·åå
容 |
| | | String content = row.getTableCells().size() > 2 ? |
| | | getCellText(row.getCell(2)) : ""; |
| | | |
| | | // æé¤æ é¢å
容 |
| | | if ("ä¿å
Ȍ
容".equals(content) || |
| | | "åºå·".equals(content) || |
| | | content.contains("维修人åä¿å
Ȍ
容") || |
| | | content.contains("æä½äººåä¿å
Ȍ
容")) { |
| | | continue; |
| | | } |
| | | |
| | | EamMaintenanceStandardDetail item = new EamMaintenanceStandardDetail(); |
| | | item.setItemCategory(String.valueOf(currentCategory)); |
| | | item.setStandardId(standardId); |
| | | item.setItemName(cleanContent(content)); |
| | | |
| | | // å¤çåºå·ï¼ç¬¬äºåï¼ |
| | | if (row.getTableCells().size() > 1) { |
| | | String seqText = getCellText(row.getCell(1)); |
| | | try { |
| | | if (seqText != null && !seqText.trim().isEmpty()) { |
| | | item.setItemCode(Integer.parseInt(seqText.trim())); |
| | | } |
| | | } catch (NumberFormatException e) { |
| | | // 忽ç¥åºå·è§£æé误 |
| | | } |
| | | } |
| | | |
| | | items.add(item); |
| | | } |
| | | } |
| | | return items; |
| | | } |
| | | |
| | | /** |
| | | * å建ä¿å
»é¡¹ç® |
| | | */ |
| | | private EamMaintenanceStandardDetail createItem( |
| | | EamMaintenanceStandardDetailCategory category, |
| | | String content, |
| | | String standardId) { |
| | | |
| | | EamMaintenanceStandardDetail item = new EamMaintenanceStandardDetail(); |
| | | item.setItemCategory(category.name()); |
| | | item.setStandardId(standardId); |
| | | item.setItemName(cleanContent(content)); |
| | | return item; |
| | | } |
| | | |
| | | /** |
| | | * æåä¸çº§ä¿å
»é¡¹ç®ï¼æ ç±»åï¼ |
| | | */ |
| | | private List<EamMaintenanceStandardDetail> extractThirdMaintenanceItems( |
| | | XWPFTable table, String standardId) { |
| | | |
| | | List<EamMaintenanceStandardDetail> items = new ArrayList<>(); |
| | | String currentPart = ""; |
| | | int itemCount = 1; |
| | | |
| | | // ä»ç¬¬ä¸è¡å¼å§ï¼è·³è¿è¡¨å¤´å设å¤ä¿¡æ¯ï¼ |
| | | for (int i = 2; i < table.getNumberOfRows(); i++) { |
| | | XWPFTableRow row = table.getRow(i); |
| | | if (row == null || isRowEmpty(row)) continue; |
| | | |
| | | // è·³è¿"ä¿å
»é¨ä½"æ é¢è¡ |
| | | String firstCell = getCellText(row.getCell(0)); |
| | | if ("ä¿å
»é¨ä½".equals(firstCell)) { |
| | | continue; |
| | | } |
| | | |
| | | EamMaintenanceStandardDetail item = new EamMaintenanceStandardDetail(); |
| | | // ä¸çº§ä¿å
»ä¸éè¦ç±»åï¼ä¸è®¾ç½®itemCategory |
| | | item.setStandardId(standardId); |
| | | item.setItemCode(itemCount++); |
| | | |
| | | // å¤çé¨ä½å |
| | | if (!row.getTableCells().isEmpty()) { |
| | | String partCell = getCellText(row.getCell(0)); |
| | | if (!partCell.trim().isEmpty()) { |
| | | currentPart = partCell.trim(); |
| | | } |
| | | } |
| | | item.setItemPart(currentPart); |
| | | |
| | | // æ ¹æ®åæ°ç¡®å®å
å®¹åæ åçä½ç½® |
| | | int cellCount = row.getTableCells().size(); |
| | | if (cellCount == 3) { // é¨ä½|å
容|æ å |
| | | item.setItemName(getCellText(row.getCell(1))); |
| | | item.setItemDemand(getCellText(row.getCell(2))); |
| | | } |
| | | else if (cellCount == 2) { // å
容|æ å |
| | | item.setItemName(getCellText(row.getCell(0))); |
| | | item.setItemDemand(getCellText(row.getCell(1))); |
| | | } |
| | | else if (cellCount == 1) { // ååå
容 |
| | | item.setItemName(getCellText(row.getCell(0))); |
| | | } |
| | | else if (cellCount > 3) { // å¤åå¤ç |
| | | // å第2åä½ä¸ºå
å®¹ï¼æåä¸åä½ä¸ºæ å |
| | | item.setItemName(getCellText(row.getCell(1))); |
| | | item.setItemDemand(getCellText(row.getCell(cellCount - 1))); |
| | | } |
| | | |
| | | items.add(item); |
| | | } |
| | | return items; |
| | | } |
| | | |
| | | /** |
| | | * å
¼å®¹çåå
æ ¼ææ¬æå |
| | | */ |
| | | private String getCellText(XWPFTableCell cell) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * å
容æ¸
ç |
| | | */ |
| | | private String cleanContent(String text) { |
| | | if (text == null) return ""; |
| | | |
| | | // æ¿æ¢ç¹æ®ç©ºæ ¼ååå¹¶è¿ç»ç©ºæ ¼ |
| | | text = text.replace('\u00A0', ' ') |
| | | .replace('\u2007', ' ') |
| | | .replace('\u202F', ' ') |
| | | .replaceAll("\\s+", " "); |
| | | |
| | | // è§èæ ç¹ç¬¦å· |
| | | return text.replace(',', 'ã') |
| | | .replace('ï¼', 'ã') |
| | | .replace(';', 'ï¼') |
| | | .replace('ï¼', 'ï¼') |
| | | .replace(':', 'ï¼') |
| | | .replace('ï¼', 'ï¼') |
| | | .trim(); |
| | | } |
| | | |
| | | /** |
| | | * éªè¯ææé¡¹ç®è¡ |
| | | */ |
| | | private boolean isValidItemRow(XWPFTableRow row) { |
| | | return row != null && |
| | | row.getTableCells().size() >= 2 && |
| | | !getCellText(row.getCell(1)).trim().isEmpty(); |
| | | } |
| | | |
| | | /** |
| | | * ç©ºè¡æ£æµ |
| | | */ |
| | | private boolean isRowEmpty(XWPFTableRow row) { |
| | | if (row == null) return true; |
| | | for (XWPFTableCell cell : row.getTableCells()) { |
| | | String text = getCellText(cell); |
| | | if (text != null && !text.trim().isEmpty()) { |
| | | return false; |
| | | } |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /*导å
¥äºä¿ä¸ä¿æä»¶Excel--------------------------ç»æ*/ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service.impl; |
| | | |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusChangeDetail; |
| | | import org.jeecg.modules.eam.mapper.EamTechnicalStatusChangeDetailMapper; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusChangeDetailService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æåæ´ç³è¯·æç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class EamTechnicalStatusChangeDetailServiceImpl extends ServiceImpl<EamTechnicalStatusChangeDetailMapper, EamTechnicalStatusChangeDetail> implements IEamTechnicalStatusChangeDetailService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service.impl; |
| | | |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusChange; |
| | | import org.jeecg.modules.eam.mapper.EamTechnicalStatusChangeMapper; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusChangeService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æåæ´ç³è¯· |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class EamTechnicalStatusChangeServiceImpl extends ServiceImpl<EamTechnicalStatusChangeMapper, EamTechnicalStatusChange> implements IEamTechnicalStatusChangeService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service.impl; |
| | | |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusDeactivateDetail; |
| | | import org.jeecg.modules.eam.mapper.EamTechnicalStatusDeactivateDetailMapper; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusDeactivateDetailService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | /** |
| | | * @Description: åç¨å 工设å¤ç³è¯·åæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class EamTechnicalStatusDeactivateDetailServiceImpl extends ServiceImpl<EamTechnicalStatusDeactivateDetailMapper, EamTechnicalStatusDeactivateDetail> implements IEamTechnicalStatusDeactivateDetailService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service.impl; |
| | | |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusDeactivate; |
| | | import org.jeecg.modules.eam.mapper.EamTechnicalStatusDeactivateMapper; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusDeactivateService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | /** |
| | | * @Description: åç¨å 工设å¤ç³è¯·å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class EamTechnicalStatusDeactivateServiceImpl extends ServiceImpl<EamTechnicalStatusDeactivateMapper, EamTechnicalStatusDeactivate> implements IEamTechnicalStatusDeactivateService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service.impl; |
| | | |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationApplication; |
| | | import org.jeecg.modules.eam.mapper.EamTechnicalStatusEvaluationApplicationMapper; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusEvaluationApplicationService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | /** |
| | | * @Description: å å·¥è®¾å¤ææ¯é´å®ç³è¯· |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class EamTechnicalStatusEvaluationApplicationServiceImpl extends ServiceImpl<EamTechnicalStatusEvaluationApplicationMapper, EamTechnicalStatusEvaluationApplication> implements IEamTechnicalStatusEvaluationApplicationService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service.impl; |
| | | |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationOrderChange; |
| | | import org.jeecg.modules.eam.mapper.EamTechnicalStatusEvaluationOrderChangeMapper; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusEvaluationOrderChangeService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®å·¥ååæ´ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class EamTechnicalStatusEvaluationOrderChangeServiceImpl extends ServiceImpl<EamTechnicalStatusEvaluationOrderChangeMapper, EamTechnicalStatusEvaluationOrderChange> implements IEamTechnicalStatusEvaluationOrderChangeService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service.impl; |
| | | |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationOrderDetail; |
| | | import org.jeecg.modules.eam.mapper.EamTechnicalStatusEvaluationOrderDetailMapper; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusEvaluationOrderDetailService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®å·¥åæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class EamTechnicalStatusEvaluationOrderDetailServiceImpl extends ServiceImpl<EamTechnicalStatusEvaluationOrderDetailMapper, EamTechnicalStatusEvaluationOrderDetail> implements IEamTechnicalStatusEvaluationOrderDetailService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.eam.service.impl; |
| | | |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationOrder; |
| | | import org.jeecg.modules.eam.mapper.EamTechnicalStatusEvaluationOrderMapper; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusEvaluationOrderService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | /** |
| | | * @Description: ææ¯ç¶æé´å®å·¥å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class EamTechnicalStatusEvaluationOrderServiceImpl extends ServiceImpl<EamTechnicalStatusEvaluationOrderMapper, EamTechnicalStatusEvaluationOrder> implements IEamTechnicalStatusEvaluationOrderService { |
| | | |
| | | } |
| | |
| | | wrapper.eq(EamTechnicalStatusEvaluationStandardDetail::getStandardId, standardId); |
| | | this.getBaseMapper().delete(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void removeByStandardIdAndCategory(String standardId, String category) { |
| | | LambdaQueryWrapper<EamTechnicalStatusEvaluationStandardDetail> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(EamTechnicalStatusEvaluationStandardDetail::getStandardId, standardId); |
| | | wrapper.eq(EamTechnicalStatusEvaluationStandardDetail::getCheckCategory, category); |
| | | this.getBaseMapper().delete(wrapper); |
| | | } |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.poi.xwpf.usermodel.XWPFDocument; |
| | | import org.apache.poi.xwpf.usermodel.XWPFParagraph; |
| | | import org.apache.poi.xwpf.usermodel.XWPFTable; |
| | | import org.apache.poi.xwpf.usermodel.XWPFTableRow; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.common.exception.JeecgBootException; |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.common.util.FileUtil; |
| | | import org.jeecg.common.util.SimpleVersionGenerateUtil; |
| | | import org.jeecg.modules.system.entity.BaseFactory; |
| | | import org.jeecg.modules.system.entity.BaseFactoryUser; |
| | | import org.jeecg.modules.system.service.IBaseFactoryService; |
| | | import org.jeecg.modules.system.service.IBaseFactoryUserService; |
| | | import org.jeecg.modules.eam.constant.BusinessCodeConst; |
| | | import org.jeecg.modules.eam.constant.TechnicalStatusEvaluationCheckCategoryEnum; |
| | | import org.jeecg.modules.eam.constant.TechnicalStatusEvaluationStandardEnum; |
| | | import org.jeecg.modules.eam.entity.EamEquipment; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationStandard; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationStandardDetail; |
| | | import org.jeecg.modules.eam.mapper.EamTechnicalStatusEvaluationStandardMapper; |
| | | import org.jeecg.modules.eam.request.EamTechnicalStatusEvaluationStandardRequest; |
| | | import org.jeecg.modules.eam.service.IEamEquipmentService; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusEvaluationStandardDetailService; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusEvaluationStandardService; |
| | | import org.jeecg.modules.system.entity.BaseFactory; |
| | | import org.jeecg.modules.system.entity.BaseFactoryUser; |
| | | import org.jeecg.modules.system.service.IBaseFactoryService; |
| | | import org.jeecg.modules.system.service.IBaseFactoryUserService; |
| | | import org.jeecg.modules.system.service.ISysBusinessCodeRuleService; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | @Slf4j |
| | | public class EamTechnicalStatusEvaluationStandardServiceImpl extends ServiceImpl<EamTechnicalStatusEvaluationStandardMapper, EamTechnicalStatusEvaluationStandard> implements IEamTechnicalStatusEvaluationStandardService { |
| | | |
| | | @Autowired |
| | |
| | | private IBaseFactoryService baseFactoryService; |
| | | @Autowired |
| | | private IEamTechnicalStatusEvaluationStandardDetailService standardDetailService; |
| | | @Autowired |
| | | private IEamEquipmentService equipmentService; |
| | | @Autowired |
| | | private ISysBusinessCodeRuleService businessCodeRuleService; |
| | | |
| | | @Override |
| | | public IPage<EamTechnicalStatusEvaluationStandard> queryPageList(Page<EamTechnicalStatusEvaluationStandard> page, EamTechnicalStatusEvaluationStandard query) { |
| | |
| | | List<BaseFactoryUser> baseFactoryUserList = baseFactoryUserService. |
| | | list(new LambdaQueryWrapper<BaseFactoryUser>().eq(BaseFactoryUser::getUserId, sysUser.getId())); |
| | | if (!CollectionUtils.isEmpty(baseFactoryUserList)) { |
| | | List<String> factoryIds = baseFactoryUserList.stream().map(BaseFactoryUser::getFactoryId).collect(Collectors.toList()); |
| | | List<String> factoryCode = baseFactoryService.listByIds(factoryIds).stream().map(BaseFactory::getFactoryCode).collect(Collectors.toList()); |
| | | queryWrapper.in("e.factory_org_code", factoryCode); |
| | | Set<String> factoryIds = baseFactoryUserList.stream().map(BaseFactoryUser::getFactoryId).collect(Collectors.toSet()); |
| | | Set<String> factoryCodeList = baseFactoryService.listByIds(factoryIds).stream().map(BaseFactory::getOrgCode).collect(Collectors.toSet()); |
| | | queryWrapper.in("e.factory_org_code", factoryCodeList); |
| | | } else { |
| | | return page; |
| | | } |
| | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public boolean addEamTechnicalStatusEvaluationStandard(EamTechnicalStatusEvaluationStandardRequest request) { |
| | | if(!CommonConstant.STATUS_1.equals(request.getHasOtherCheck()) && !CommonConstant.STATUS_1.equals(request.getHasSafetyEquipmentCheck()) && !CommonConstant.STATUS_1.equals(request.getHasPrecisionCheck())) { |
| | | if (!CommonConstant.STATUS_1.equals(request.getHasOtherCheck()) && !CommonConstant.STATUS_1.equals(request.getHasSafetyEquipmentCheck()) && !CommonConstant.STATUS_1.equals(request.getHasPrecisionCheck())) { |
| | | //å¿
é¡»è¦éæ©ä¸ä¸ªæ£æ¥åç±» |
| | | throw new JeecgBootException("å¿
é¡»è¦éæ©ä¸ä¸ªæ£æ¥åç±»ï¼"); |
| | | } |
| | |
| | | entity.setDelFlag(CommonConstant.DEL_FLAG_0); |
| | | //é夿§æ ¡éª |
| | | EamTechnicalStatusEvaluationStandard exist = checkDuplicate(entity.getEquipmentId(), null); |
| | | if(exist != null){ |
| | | if (exist != null) { |
| | | throw new JeecgBootException("è§èå·²åå¨ï¼ä¸è½é夿·»å ï¼"); |
| | | } |
| | | this.getBaseMapper().insert(entity); |
| | | //å¤çæç»æ°æ® |
| | | if(CollectionUtil.isNotEmpty(request.getTableDetailList())) { |
| | | if (CollectionUtil.isNotEmpty(request.getTableDetailList())) { |
| | | request.getTableDetailList().forEach(tableDetail -> { |
| | | tableDetail.setStandardId(entity.getId()); |
| | | }); |
| | | //æ ¹æ®åç±»å¤ææ¯å¦ä¿å |
| | | if(CommonConstant.STATUS_1.equals(entity.getHasOtherCheck())) { |
| | | if (CommonConstant.STATUS_1.equals(entity.getHasOtherCheck())) { |
| | | //ä¿åå
¶ä»åç±» |
| | | List<EamTechnicalStatusEvaluationStandardDetail> collect = request.getTableDetailList().stream().filter(item -> TechnicalStatusEvaluationCheckCategoryEnum.OTHER_CHECK.name().equals(item.getCheckCategory())).collect(Collectors.toList()); |
| | | if(CollectionUtils.isEmpty(collect)) { |
| | | if (CollectionUtils.isEmpty(collect)) { |
| | | throw new JeecgBootException("å
¶ä»æ£æ¥æç»ä¸è½ä¸ºç©ºï¼"); |
| | | } |
| | | standardDetailService.saveBatch(collect); |
| | | } |
| | | if(CommonConstant.STATUS_1.equals(entity.getHasSafetyEquipmentCheck())) { |
| | | if (CommonConstant.STATUS_1.equals(entity.getHasSafetyEquipmentCheck())) { |
| | | //ä¿åå®å
¨è£
ç½®åç±» |
| | | List<EamTechnicalStatusEvaluationStandardDetail> collect = request.getTableDetailList().stream().filter(item -> TechnicalStatusEvaluationCheckCategoryEnum.SAFETY_EQUIPMENT_CHECK.name().equals(item.getCheckCategory())).collect(Collectors.toList()); |
| | | if(CollectionUtils.isEmpty(collect)) { |
| | | if (CollectionUtils.isEmpty(collect)) { |
| | | throw new JeecgBootException("å®å
¨è£
ç½®æ£æ¥æç»ä¸è½ä¸ºç©ºï¼"); |
| | | } |
| | | standardDetailService.saveBatch(collect); |
| | | } |
| | | if(CommonConstant.STATUS_1.equals(entity.getHasPrecisionCheck())) { |
| | | if (CommonConstant.STATUS_1.equals(entity.getHasPrecisionCheck())) { |
| | | //ä¿å精度æ£éªåç±» |
| | | List<EamTechnicalStatusEvaluationStandardDetail> collect = request.getTableDetailList().stream().filter(item -> TechnicalStatusEvaluationCheckCategoryEnum.PRECISION_CHECK.name().equals(item.getCheckCategory())).collect(Collectors.toList()); |
| | | if(CollectionUtils.isEmpty(collect)) { |
| | | if (CollectionUtils.isEmpty(collect)) { |
| | | throw new JeecgBootException("ç²¾åº¦æ£æ¥æç»ä¸è½ä¸ºç©ºï¼"); |
| | | } |
| | | standardDetailService.saveBatch(collect); |
| | |
| | | //å¾
æäº¤ãå¯ç¨ç¶æ |
| | | queryWrapper.in(EamTechnicalStatusEvaluationStandard::getStandardStatus, Arrays.asList(TechnicalStatusEvaluationStandardEnum.ENABLE.name(), TechnicalStatusEvaluationStandardEnum.WAIT_SUBMIT.name())); |
| | | queryWrapper.orderByDesc(EamTechnicalStatusEvaluationStandard::getStandardVersion); |
| | | if(StringUtils.isNotBlank(id)){ |
| | | if (StringUtils.isNotBlank(id)) { |
| | | queryWrapper.ne(EamTechnicalStatusEvaluationStandard::getId, id); |
| | | } |
| | | List<EamTechnicalStatusEvaluationStandard> list = this.getBaseMapper().selectList(queryWrapper); |
| | | if(CollectionUtil.isEmpty(list)) { |
| | | if (CollectionUtil.isEmpty(list)) { |
| | | return null; |
| | | } |
| | | return list.get(0); |
| | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public boolean editEamTechnicalStatusEvaluationStandard(EamTechnicalStatusEvaluationStandardRequest request) { |
| | | if(!CommonConstant.STATUS_1.equals(request.getHasOtherCheck()) && !CommonConstant.STATUS_1.equals(request.getHasSafetyEquipmentCheck()) && !CommonConstant.STATUS_1.equals(request.getHasPrecisionCheck())) { |
| | | if (!CommonConstant.STATUS_1.equals(request.getHasOtherCheck()) && !CommonConstant.STATUS_1.equals(request.getHasSafetyEquipmentCheck()) && !CommonConstant.STATUS_1.equals(request.getHasPrecisionCheck())) { |
| | | //å¿
é¡»è¦éæ©ä¸ä¸ªæ£æ¥åç±» |
| | | throw new JeecgBootException("å¿
é¡»è¦éæ©ä¸ä¸ªæ£æ¥åç±»ï¼"); |
| | | } |
| | | EamTechnicalStatusEvaluationStandard entity = this.getBaseMapper().selectById(request.getId()); |
| | | if(entity == null){ |
| | | if (entity == null) { |
| | | throw new JeecgBootException("ç¼è¾çæ°æ®å·²å é¤ï¼è¯·å·æ°éè¯ï¼"); |
| | | } |
| | | entity.setStandardName(request.getStandardName()); |
| | |
| | | entity.setRemark(request.getRemark()); |
| | | this.getBaseMapper().updateById(entity); |
| | | //å¤ç详æ
|
| | | if(CollectionUtil.isNotEmpty(request.getTableDetailList())) { |
| | | if (CollectionUtil.isNotEmpty(request.getTableDetailList())) { |
| | | //å
å 餿£æ¥é¡¹ |
| | | standardDetailService.removeByStandardId(entity.getId()); |
| | | request.getTableDetailList().forEach(tableDetail -> { |
| | | tableDetail.setStandardId(entity.getId()); |
| | | }); |
| | | //æ ¹æ®åç±»å¤ææ¯å¦ä¿å |
| | | if(CommonConstant.STATUS_1.equals(entity.getHasOtherCheck())) { |
| | | if (CommonConstant.STATUS_1.equals(entity.getHasOtherCheck())) { |
| | | //ä¿åå
¶ä»åç±» |
| | | List<EamTechnicalStatusEvaluationStandardDetail> collect = request.getTableDetailList().stream().filter(item -> TechnicalStatusEvaluationCheckCategoryEnum.OTHER_CHECK.name().equals(item.getCheckCategory())).collect(Collectors.toList()); |
| | | if(CollectionUtils.isEmpty(collect)) { |
| | | if (CollectionUtils.isEmpty(collect)) { |
| | | throw new JeecgBootException("å
¶ä»æ£æ¥æç»ä¸è½ä¸ºç©ºï¼"); |
| | | } |
| | | standardDetailService.saveBatch(collect); |
| | | } |
| | | if(CommonConstant.STATUS_1.equals(entity.getHasSafetyEquipmentCheck())) { |
| | | if (CommonConstant.STATUS_1.equals(entity.getHasSafetyEquipmentCheck())) { |
| | | //ä¿åå®å
¨è£
ç½®åç±» |
| | | List<EamTechnicalStatusEvaluationStandardDetail> collect = request.getTableDetailList().stream().filter(item -> TechnicalStatusEvaluationCheckCategoryEnum.SAFETY_EQUIPMENT_CHECK.name().equals(item.getCheckCategory())).collect(Collectors.toList()); |
| | | if(CollectionUtils.isEmpty(collect)) { |
| | | if (CollectionUtils.isEmpty(collect)) { |
| | | throw new JeecgBootException("å®å
¨è£
ç½®æ£æ¥æç»ä¸è½ä¸ºç©ºï¼"); |
| | | } |
| | | standardDetailService.saveBatch(collect); |
| | | } |
| | | if(CommonConstant.STATUS_1.equals(entity.getHasPrecisionCheck())) { |
| | | if (CommonConstant.STATUS_1.equals(entity.getHasPrecisionCheck())) { |
| | | //ä¿å精度æ£éªåç±» |
| | | List<EamTechnicalStatusEvaluationStandardDetail> collect = request.getTableDetailList().stream().filter(item -> TechnicalStatusEvaluationCheckCategoryEnum.PRECISION_CHECK.name().equals(item.getCheckCategory())).collect(Collectors.toList()); |
| | | if(CollectionUtils.isEmpty(collect)) { |
| | | if (CollectionUtils.isEmpty(collect)) { |
| | | throw new JeecgBootException("ç²¾åº¦æ£æ¥æç»ä¸è½ä¸ºç©ºï¼"); |
| | | } |
| | | standardDetailService.saveBatch(collect); |
| | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public boolean upgrade(EamTechnicalStatusEvaluationStandardRequest request) { |
| | | if(!CommonConstant.STATUS_1.equals(request.getHasOtherCheck()) && !CommonConstant.STATUS_1.equals(request.getHasSafetyEquipmentCheck()) && !CommonConstant.STATUS_1.equals(request.getHasPrecisionCheck())) { |
| | | if (!CommonConstant.STATUS_1.equals(request.getHasOtherCheck()) && !CommonConstant.STATUS_1.equals(request.getHasSafetyEquipmentCheck()) && !CommonConstant.STATUS_1.equals(request.getHasPrecisionCheck())) { |
| | | //å¿
é¡»è¦éæ©ä¸ä¸ªæ£æ¥åç±» |
| | | throw new JeecgBootException("å¿
é¡»è¦éæ©ä¸ä¸ªæ£æ¥åç±»ï¼"); |
| | | } |
| | | EamTechnicalStatusEvaluationStandard entity = this.getBaseMapper().selectById(request.getId()); |
| | | if(entity == null){ |
| | | if (entity == null) { |
| | | throw new JeecgBootException("åççæ°æ®å·²å é¤ï¼è¯·å·æ°éè¯ï¼"); |
| | | } |
| | | |
| | |
| | | newEntity.setRemark(request.getRemark()); |
| | | //é夿§æ ¡éª |
| | | EamTechnicalStatusEvaluationStandard exist = checkDuplicate(newEntity.getEquipmentId(), entity.getId()); |
| | | if(exist != null){ |
| | | if (exist != null) { |
| | | throw new JeecgBootException("é´å®è§èå·²åå¨ï¼ä¸è½é夿·»å ï¼"); |
| | | } |
| | | this.getBaseMapper().insert(newEntity); |
| | | //å¤çæç»æ°æ® |
| | | if(CollectionUtil.isNotEmpty(request.getTableDetailList())) { |
| | | if (CollectionUtil.isNotEmpty(request.getTableDetailList())) { |
| | | request.getTableDetailList().forEach(tableDetail -> { |
| | | tableDetail.setId(null); |
| | | tableDetail.setCreateBy(null); |
| | |
| | | tableDetail.setStandardId(newEntity.getId()); |
| | | }); |
| | | //æ ¹æ®åç±»å¤ææ¯å¦ä¿å |
| | | if(CommonConstant.STATUS_1.equals(entity.getHasOtherCheck())) { |
| | | if (CommonConstant.STATUS_1.equals(entity.getHasOtherCheck())) { |
| | | //ä¿åå
¶ä»åç±» |
| | | List<EamTechnicalStatusEvaluationStandardDetail> collect = request.getTableDetailList().stream().filter(item -> TechnicalStatusEvaluationCheckCategoryEnum.OTHER_CHECK.name().equals(item.getCheckCategory())).collect(Collectors.toList()); |
| | | if(CollectionUtils.isEmpty(collect)) { |
| | | if (CollectionUtils.isEmpty(collect)) { |
| | | throw new JeecgBootException("å
¶ä»æ£æ¥æç»ä¸è½ä¸ºç©ºï¼"); |
| | | } |
| | | standardDetailService.saveBatch(collect); |
| | | } |
| | | if(CommonConstant.STATUS_1.equals(entity.getHasSafetyEquipmentCheck())) { |
| | | if (CommonConstant.STATUS_1.equals(entity.getHasSafetyEquipmentCheck())) { |
| | | //ä¿åå®å
¨è£
ç½®åç±» |
| | | List<EamTechnicalStatusEvaluationStandardDetail> collect = request.getTableDetailList().stream().filter(item -> TechnicalStatusEvaluationCheckCategoryEnum.SAFETY_EQUIPMENT_CHECK.name().equals(item.getCheckCategory())).collect(Collectors.toList()); |
| | | if(CollectionUtils.isEmpty(collect)) { |
| | | if (CollectionUtils.isEmpty(collect)) { |
| | | throw new JeecgBootException("å®å
¨è£
ç½®æ£æ¥æç»ä¸è½ä¸ºç©ºï¼"); |
| | | } |
| | | standardDetailService.saveBatch(collect); |
| | | } |
| | | if(CommonConstant.STATUS_1.equals(entity.getHasPrecisionCheck())) { |
| | | if (CommonConstant.STATUS_1.equals(entity.getHasPrecisionCheck())) { |
| | | //ä¿å精度æ£éªåç±» |
| | | List<EamTechnicalStatusEvaluationStandardDetail> collect = request.getTableDetailList().stream().filter(item -> TechnicalStatusEvaluationCheckCategoryEnum.PRECISION_CHECK.name().equals(item.getCheckCategory())).collect(Collectors.toList()); |
| | | if(CollectionUtils.isEmpty(collect)) { |
| | | if (CollectionUtils.isEmpty(collect)) { |
| | | throw new JeecgBootException("ç²¾åº¦æ£æ¥æç»ä¸è½ä¸ºç©ºï¼"); |
| | | } |
| | | standardDetailService.saveBatch(collect); |
| | |
| | | this.getBaseMapper().updateById(entity); |
| | | return true; |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Result<?> importSafetyEquipmentCheck(MultipartFile file) { |
| | | String fileName = file.getOriginalFilename(); |
| | | if (StringUtils.isBlank(fileName)) { |
| | | return Result.error(fileName + ":æä»¶æ ¼å¼é误,æ æ³è§£æï¼"); |
| | | } |
| | | String fileSuffix = FileUtil.getFileSuffix(fileName); |
| | | //åªæ¯æ .docx çwordææ¡£ |
| | | if ("docx".equals(fileSuffix)) { |
| | | try (XWPFDocument doc = new XWPFDocument(file.getInputStream())) { |
| | | List<XWPFParagraph> paragraphs = doc.getParagraphs(); |
| | | List<XWPFTable> tables = doc.getTables(); |
| | | if (CollectionUtil.isEmpty(paragraphs) || CollectionUtil.isEmpty(tables)) { |
| | | return Result.error(fileName + ":æ¤æä»¶ä¸ç¬¦åå®å
¨è£
ç½®æ£æ¥æ¨¡æ¿è§èï¼è¯·æ£æ¥ï¼"); |
| | | } |
| | | //è·åæä»¶æ é¢ |
| | | StringBuilder builder = new StringBuilder(); |
| | | paragraphs.forEach(paragraph -> { |
| | | if (StringUtils.isNotBlank(paragraph.getText())) { |
| | | builder.append(paragraph.getText().trim()); |
| | | } |
| | | }); |
| | | if (checkImportCategory(builder.toString(), TechnicalStatusEvaluationCheckCategoryEnum.SAFETY_EQUIPMENT_CHECK)) { |
| | | return Result.error(fileName + ":æ¤æä»¶ä¸ç¬¦åå®å
¨è£
ç½®æ£æ¥æ¨¡æ¿è§èï¼è¯·æ£æ¥ï¼"); |
| | | } |
| | | //è·å设å¤ä¿¡æ¯ |
| | | EamEquipment equipment = extractEquipmentInfo(tables.get(0)); |
| | | //æ¥çæ¯å¦ææ¤è®¾å¤å¯ç¨çè§èä¿¡æ¯ |
| | | EamTechnicalStatusEvaluationStandard originalStandard = checkDuplicate(equipment.getId(), null); |
| | | if (originalStandard != null && TechnicalStatusEvaluationStandardEnum.ENABLE.name().equals(originalStandard.getStandardStatus())) { |
| | | return Result.error(fileName + ":æ¤è®¾å¤å·²åå¨å¯ç¨çè§èï¼è¯·è¿è¡ç¼è¾æåçï¼"); |
| | | } |
| | | //è·åæ£æ¥é¡¹ä¿¡æ¯ |
| | | List<EamTechnicalStatusEvaluationStandardDetail> detailList = extractSafetyEquipmentCheckItems(tables); |
| | | if(CollectionUtil.isEmpty(detailList)){ |
| | | return Result.error(fileName + ":æªè§£æå°æ£æ¥é¡¹å
容ï¼è¯·æ£æ¥ï¼"); |
| | | } |
| | | if(originalStandard != null) { |
| | | //å·²å卿æ¯ç¶æé´å®è§è,ä¸è§èç¶æä¸ºå·²æäº¤ |
| | | originalStandard.setHasSafetyEquipmentCheck(CommonConstant.STATUS_1); |
| | | originalStandard.setStandardStatus(TechnicalStatusEvaluationStandardEnum.WAIT_SUBMIT.name()); |
| | | super.getBaseMapper().updateById(originalStandard); |
| | | detailList.forEach(standardDetail -> { |
| | | standardDetail.setStandardId(originalStandard.getId()); |
| | | }); |
| | | //å
å é¤ï¼åæ·»å |
| | | standardDetailService.removeByStandardIdAndCategory(originalStandard.getId(), TechnicalStatusEvaluationCheckCategoryEnum.SAFETY_EQUIPMENT_CHECK.name()); |
| | | //éæ°æ·»å |
| | | standardDetailService.saveBatch(detailList); |
| | | }else { |
| | | String codeSeq = businessCodeRuleService.generateBusinessCodeSeq(BusinessCodeConst.TECHNICAL_STATUS_EVALUATION_STANDARD_CODE_RULE); |
| | | //æ°å¢ææ¯ç¶æé´å®è§è |
| | | EamTechnicalStatusEvaluationStandardRequest request = new EamTechnicalStatusEvaluationStandardRequest(); |
| | | request.setEquipmentId(equipment.getId()); |
| | | request.setHasSafetyEquipmentCheck(CommonConstant.STATUS_1); |
| | | request.setHasOtherCheck(CommonConstant.STATUS_0); |
| | | request.setHasPrecisionCheck(CommonConstant.STATUS_0); |
| | | request.setStandardCode(codeSeq); |
| | | request.setStandardName(equipment.getEquipmentName() + "ææ¯ç¶æé´å®è§è"); |
| | | request.setTableDetailList(detailList); |
| | | this.addEamTechnicalStatusEvaluationStandard(request); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error(e.getMessage(), e); |
| | | return Result.error(fileName + ":" + e.getMessage() + "ï¼"); |
| | | } |
| | | } else { |
| | | return Result.error(fileName + ":æä»¶æ ¼å¼é误,æ æ³è§£æï¼"); |
| | | } |
| | | |
| | | return Result.OK(fileName + ":导å
¥æåï¼"); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Result<?> importPrecisionCheck(MultipartFile file) { |
| | | String fileName = file.getOriginalFilename(); |
| | | if (StringUtils.isBlank(fileName)) { |
| | | return Result.error(fileName + ":æä»¶æ ¼å¼é误,æ æ³è§£æï¼"); |
| | | } |
| | | String fileSuffix = FileUtil.getFileSuffix(fileName); |
| | | //åªæ¯æ .docx çwordææ¡£ |
| | | if ("docx".equals(fileSuffix)) { |
| | | try (XWPFDocument doc = new XWPFDocument(file.getInputStream())) { |
| | | List<XWPFParagraph> paragraphs = doc.getParagraphs(); |
| | | List<XWPFTable> tables = doc.getTables(); |
| | | if (CollectionUtil.isEmpty(paragraphs) || CollectionUtil.isEmpty(tables)) { |
| | | return Result.error(fileName + ":æ¤æä»¶ä¸ç¬¦å设å¤ç²¾åº¦æ£æ¥æ¨¡æ¿è§èï¼è¯·æ£æ¥ï¼"); |
| | | } |
| | | //è·åæä»¶æ é¢ |
| | | StringBuilder builder = new StringBuilder(); |
| | | paragraphs.forEach(paragraph -> { |
| | | if (StringUtils.isNotBlank(paragraph.getText())) { |
| | | builder.append(paragraph.getText().trim()); |
| | | } |
| | | }); |
| | | if (checkImportCategory(builder.toString(), TechnicalStatusEvaluationCheckCategoryEnum.PRECISION_CHECK)) { |
| | | return Result.error(fileName + ":æ¤æä»¶ä¸ç¬¦å设å¤ç²¾åº¦æ£æ¥æ¨¡æ¿è§èï¼è¯·æ£æ¥ï¼"); |
| | | } |
| | | //è·å设å¤ä¿¡æ¯ |
| | | EamEquipment equipment = extractEquipmentInfo(tables.get(0)); |
| | | //æ¥çæ¯å¦ææ¤è®¾å¤å¯ç¨çè§èä¿¡æ¯ |
| | | EamTechnicalStatusEvaluationStandard originalStandard = checkDuplicate(equipment.getId(), null); |
| | | if (originalStandard != null && TechnicalStatusEvaluationStandardEnum.ENABLE.name().equals(originalStandard.getStandardStatus())) { |
| | | return Result.error(fileName + ":æ¤è®¾å¤å·²åå¨å¯ç¨çè§èï¼è¯·è¿è¡ç¼è¾æåçï¼"); |
| | | } |
| | | //è·åæ£æ¥é¡¹ä¿¡æ¯ |
| | | List<EamTechnicalStatusEvaluationStandardDetail> detailList = extractPrecisionCheckItems(tables); |
| | | if(CollectionUtil.isEmpty(detailList)){ |
| | | return Result.error(fileName + ":æªè§£æå°æ£æ¥é¡¹å
容ï¼è¯·æ£æ¥ï¼"); |
| | | } |
| | | if(originalStandard != null) { |
| | | //å·²å卿æ¯ç¶æé´å®è§è,ä¸è§èç¶æä¸ºå·²æäº¤ |
| | | originalStandard.setHasPrecisionCheck(CommonConstant.STATUS_1); |
| | | originalStandard.setStandardStatus(TechnicalStatusEvaluationStandardEnum.WAIT_SUBMIT.name()); |
| | | super.getBaseMapper().updateById(originalStandard); |
| | | detailList.forEach(standardDetail -> { |
| | | standardDetail.setStandardId(originalStandard.getId()); |
| | | }); |
| | | //å
å é¤ï¼åæ·»å |
| | | standardDetailService.removeByStandardIdAndCategory(originalStandard.getId(), TechnicalStatusEvaluationCheckCategoryEnum.PRECISION_CHECK.name()); |
| | | //éæ°æ·»å |
| | | standardDetailService.saveBatch(detailList); |
| | | }else { |
| | | String codeSeq = businessCodeRuleService.generateBusinessCodeSeq(BusinessCodeConst.TECHNICAL_STATUS_EVALUATION_STANDARD_CODE_RULE); |
| | | //æ°å¢ææ¯ç¶æé´å®è§è |
| | | EamTechnicalStatusEvaluationStandardRequest request = new EamTechnicalStatusEvaluationStandardRequest(); |
| | | request.setEquipmentId(equipment.getId()); |
| | | request.setHasSafetyEquipmentCheck(CommonConstant.STATUS_0); |
| | | request.setHasOtherCheck(CommonConstant.STATUS_0); |
| | | request.setHasPrecisionCheck(CommonConstant.STATUS_1); |
| | | request.setStandardCode(codeSeq); |
| | | request.setStandardName(equipment.getEquipmentName() + "ææ¯ç¶æé´å®è§è"); |
| | | request.setTableDetailList(detailList); |
| | | this.addEamTechnicalStatusEvaluationStandard(request); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error(e.getMessage(), e); |
| | | return Result.error(fileName + ":" + e.getMessage() + "ï¼"); |
| | | } |
| | | } else { |
| | | return Result.error(fileName + ":æä»¶æ ¼å¼é误,æ æ³è§£æï¼"); |
| | | } |
| | | |
| | | return Result.OK(fileName + ":导å
¥æåï¼"); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Result<?> importOtherCheck(MultipartFile file) { |
| | | String fileName = file.getOriginalFilename(); |
| | | if (StringUtils.isBlank(fileName)) { |
| | | return Result.error(fileName + ":æä»¶æ ¼å¼é误,æ æ³è§£æï¼"); |
| | | } |
| | | String fileSuffix = FileUtil.getFileSuffix(fileName); |
| | | //åªæ¯æ .docx çwordææ¡£ |
| | | if ("docx".equals(fileSuffix)) { |
| | | try (XWPFDocument doc = new XWPFDocument(file.getInputStream())) { |
| | | List<XWPFParagraph> paragraphs = doc.getParagraphs(); |
| | | List<XWPFTable> tables = doc.getTables(); |
| | | if (CollectionUtil.isEmpty(paragraphs) || CollectionUtil.isEmpty(tables)) { |
| | | return Result.error(fileName + ":æ¤æä»¶ä¸ç¬¦åå®å
¨è£
ç½®æ£æ¥æ¨¡æ¿è§èï¼è¯·æ£æ¥ï¼"); |
| | | } |
| | | //è·åæä»¶æ é¢ |
| | | StringBuilder builder = new StringBuilder(); |
| | | paragraphs.forEach(paragraph -> { |
| | | if (StringUtils.isNotBlank(paragraph.getText())) { |
| | | builder.append(paragraph.getText().trim()); |
| | | } |
| | | }); |
| | | if (checkImportCategory(builder.toString(), TechnicalStatusEvaluationCheckCategoryEnum.OTHER_CHECK)) { |
| | | return Result.error(fileName + ":æ¤æä»¶ä¸ç¬¦åå
¶ä»æ£æ¥æ¨¡æ¿è§èï¼è¯·æ£æ¥ï¼"); |
| | | } |
| | | //è·å设å¤ä¿¡æ¯ |
| | | EamEquipment equipment = extractEquipmentInfo(tables.get(0)); |
| | | //æ¥çæ¯å¦ææ¤è®¾å¤å¯ç¨çè§èä¿¡æ¯ |
| | | EamTechnicalStatusEvaluationStandard originalStandard = checkDuplicate(equipment.getId(), null); |
| | | if (originalStandard != null && TechnicalStatusEvaluationStandardEnum.ENABLE.name().equals(originalStandard.getStandardStatus())) { |
| | | return Result.error(fileName + ":æ¤è®¾å¤å·²åå¨å¯ç¨çè§èï¼è¯·è¿è¡ç¼è¾æåçï¼"); |
| | | } |
| | | //è·åæ£æ¥é¡¹ä¿¡æ¯ |
| | | List<EamTechnicalStatusEvaluationStandardDetail> detailList = extractOtherCheckItems(tables); |
| | | if(CollectionUtil.isEmpty(detailList)){ |
| | | return Result.error(fileName + ":æªè§£æå°æ£æ¥é¡¹å
容ï¼è¯·æ£æ¥ï¼"); |
| | | } |
| | | if(originalStandard != null) { |
| | | //å·²å卿æ¯ç¶æé´å®è§è,ä¸è§èç¶æä¸ºå·²æäº¤ |
| | | originalStandard.setHasOtherCheck(CommonConstant.STATUS_1); |
| | | originalStandard.setStandardStatus(TechnicalStatusEvaluationStandardEnum.WAIT_SUBMIT.name()); |
| | | super.getBaseMapper().updateById(originalStandard); |
| | | detailList.forEach(standardDetail -> { |
| | | standardDetail.setStandardId(originalStandard.getId()); |
| | | }); |
| | | //å
å é¤ï¼åæ·»å |
| | | standardDetailService.removeByStandardIdAndCategory(originalStandard.getId(), TechnicalStatusEvaluationCheckCategoryEnum.OTHER_CHECK.name()); |
| | | //éæ°æ·»å |
| | | standardDetailService.saveBatch(detailList); |
| | | }else { |
| | | String codeSeq = businessCodeRuleService.generateBusinessCodeSeq(BusinessCodeConst.TECHNICAL_STATUS_EVALUATION_STANDARD_CODE_RULE); |
| | | //æ°å¢ææ¯ç¶æé´å®è§è |
| | | EamTechnicalStatusEvaluationStandardRequest request = new EamTechnicalStatusEvaluationStandardRequest(); |
| | | request.setEquipmentId(equipment.getId()); |
| | | request.setHasSafetyEquipmentCheck(CommonConstant.STATUS_0); |
| | | request.setHasOtherCheck(CommonConstant.STATUS_1); |
| | | request.setHasPrecisionCheck(CommonConstant.STATUS_0); |
| | | request.setStandardCode(codeSeq); |
| | | request.setStandardName(equipment.getEquipmentName() + "ææ¯ç¶æé´å®è§è"); |
| | | request.setTableDetailList(detailList); |
| | | this.addEamTechnicalStatusEvaluationStandard(request); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error(e.getMessage(), e); |
| | | return Result.error(fileName + ":" + e.getMessage() + "ï¼"); |
| | | } |
| | | } else { |
| | | return Result.error(fileName + ":æä»¶æ ¼å¼é误,æ æ³è§£æï¼"); |
| | | } |
| | | |
| | | return Result.OK(fileName + ":导å
¥æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * æ£æ¥å¯¼å
¥æä»¶åç±»æ¯å¦å¹é
|
| | | * @param title æ 颿®µè½å符串 |
| | | * @param category åç±» |
| | | * @return true ä¸å¹é
ï¼ false å¹é
|
| | | */ |
| | | private boolean checkImportCategory(String title, TechnicalStatusEvaluationCheckCategoryEnum category) { |
| | | switch (category) { |
| | | case SAFETY_EQUIPMENT_CHECK: |
| | | return !title.contains("å®å
¨è£
ç½®æ£æ¥"); |
| | | case PRECISION_CHECK: |
| | | return !title.contains("ç²¾åº¦æ£æ¥å"); |
| | | case OTHER_CHECK: |
| | | return !title.contains("å
¶ä»æ£æ¥"); |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æå设å¤åºæ¬ä¿¡æ¯ |
| | | */ |
| | | private EamEquipment extractEquipmentInfo(XWPFTable table) { |
| | | if (table.getNumberOfRows() < 4) { |
| | | //妿 table å°äº4è¡ ä»£è¡¨ä¸ç¬¦å模æ¿è§èï¼å¯¼å
¥å¤±è´¥ |
| | | throw new JeecgBootException("æ¤æä»¶ä¸ç¬¦åå®å
¨è£
ç½®æ£æ¥æ¨¡æ¿è§èï¼è¯·æ£æ¥"); |
| | | } |
| | | // æå第äºè¡æ°æ® |
| | | Map<String, String> row2Data = extractHeadRowData(table.getRow(1)); |
| | | //è·å设å¤ç»ä¸ç¼ç |
| | | String equipmentCode = row2Data.get("ç»ä¸ç¼å·") == null ? null : row2Data.get("ç»ä¸ç¼å·").trim(); |
| | | EamEquipment eamEquipment = equipmentService.selectByEquipmentCode(equipmentCode); |
| | | if (eamEquipment == null) { |
| | | throw new JeecgBootException("æªæ¾å°è®¾å¤ä¿¡æ¯ï¼è¯·æ¥ç设å¤å°è´¦æ¯å¦ææ¤è®¾å¤"); |
| | | } |
| | | return eamEquipment; |
| | | } |
| | | |
| | | /** |
| | | * è¡¨æ ¼è¡¨å¤´æ°æ®è§£æ |
| | | */ |
| | | private Map<String, String> extractHeadRowData(XWPFTableRow row) { |
| | | Map<String, String> data = new HashMap<>(); |
| | | if(CollectionUtil.isEmpty(row.getTableCells()) || row.getTableCells().size() != 4) { |
| | | throw new JeecgBootException("æ¤æä»¶ä¸ç¬¦åå®å
¨è£
ç½®æ£æ¥æ¨¡æ¿è§èï¼è¯·æ£æ¥"); |
| | | } |
| | | int cellCount = row.getTableCells().size(); |
| | | for (int i = 0; i < cellCount; i += 2) { |
| | | String key = row.getCell(i).getText().trim(); |
| | | String value = row.getCell(i + 1).getText().trim(); |
| | | if (StringUtils.isNotBlank(key) && StringUtils.isNotBlank(value)) { |
| | | data.put(key, value); |
| | | } |
| | | } |
| | | return data; |
| | | } |
| | | |
| | | /** |
| | | * æåå®å
¨è£
ç½®æ£æ¥æç» |
| | | */ |
| | | private List<EamTechnicalStatusEvaluationStandardDetail> extractSafetyEquipmentCheckItems(List<XWPFTable> tableList) { |
| | | List<EamTechnicalStatusEvaluationStandardDetail> items = new ArrayList<>(); |
| | | EamTechnicalStatusEvaluationStandardDetail item = null; |
| | | //è§£æç¬¬ä¸ä¸ªè¡¨æ ¼ï¼å¸¦è®¾å¤ä¿¡æ¯ |
| | | XWPFTable table = tableList.get(0); |
| | | for (int i = 0; i < table.getNumberOfRows(); i++) { |
| | | XWPFTableRow row = table.getRow(i); |
| | | if (row == null || CollectionUtil.isEmpty(row.getTableCells()) || row.getTableCells().size() < 2) { |
| | | //读åå°ç©ºrowå¼ |
| | | continue; |
| | | } |
| | | //æ£æ¥æ¯å¦å°æ£æ¥é¡¹åºå· |
| | | String firstCell = row.getCell(0).getText().trim(); |
| | | Integer itemCode = null; |
| | | try { |
| | | itemCode = Integer.parseInt(firstCell); |
| | | } catch (NumberFormatException e) { |
| | | //䏿¯æ£æ¥é¡¹å
容ï¼è·³è¿æ¤è¡ |
| | | continue; |
| | | } |
| | | //è·å第äºä¸ªåå
æ ¼ |
| | | String secondCell = row.getCell(1).getText().trim(); |
| | | //妿è¿ä¸è¡ä¸ºåºå·åè§£ææ´è¡ |
| | | if (StringUtils.isNotBlank(secondCell)) { |
| | | item = new EamTechnicalStatusEvaluationStandardDetail(); |
| | | item.setItemCode(itemCode); |
| | | item.setItemName(secondCell); |
| | | item.setCheckCategory(TechnicalStatusEvaluationCheckCategoryEnum.SAFETY_EQUIPMENT_CHECK.name()); |
| | | items.add(item); |
| | | } |
| | | } |
| | | return items; |
| | | } |
| | | |
| | | /** |
| | | * æåå
¶ä»æ£æ¥é¡¹æç»å
容 |
| | | * @param tables |
| | | * @return |
| | | */ |
| | | private List<EamTechnicalStatusEvaluationStandardDetail> extractOtherCheckItems(List<XWPFTable> tables) { |
| | | List<EamTechnicalStatusEvaluationStandardDetail> items = new ArrayList<>(); |
| | | EamTechnicalStatusEvaluationStandardDetail item = null; |
| | | //è§£æç¬¬ä¸ä¸ªè¡¨æ ¼ï¼å¸¦è®¾å¤ä¿¡æ¯ |
| | | XWPFTable table = tables.get(0); |
| | | for (int i = 0; i < table.getNumberOfRows(); i++) { |
| | | XWPFTableRow row = table.getRow(i); |
| | | if (row == null || CollectionUtil.isEmpty(row.getTableCells()) || row.getTableCells().size() < 2) { |
| | | //读åå°ç©ºrowå¼ |
| | | continue; |
| | | } |
| | | //æ£æ¥æ¯å¦å°æ£æ¥é¡¹åºå· |
| | | String firstCell = row.getCell(0).getText().trim(); |
| | | Integer itemCode = null; |
| | | try { |
| | | itemCode = Integer.parseInt(firstCell); |
| | | } catch (NumberFormatException e) { |
| | | //䏿¯æ£æ¥é¡¹å
容ï¼è·³è¿æ¤è¡ |
| | | continue; |
| | | } |
| | | //è·å第äºä¸ªåå
æ ¼ |
| | | String secondCell = row.getCell(1).getText().trim(); |
| | | //妿è¿ä¸è¡ä¸ºåºå·åè§£ææ´è¡ |
| | | if (StringUtils.isNotBlank(secondCell)) { |
| | | item = new EamTechnicalStatusEvaluationStandardDetail(); |
| | | item.setItemCode(itemCode); |
| | | item.setItemName(secondCell); |
| | | item.setCheckCategory(TechnicalStatusEvaluationCheckCategoryEnum.OTHER_CHECK.name()); |
| | | items.add(item); |
| | | } |
| | | } |
| | | return items; |
| | | } |
| | | |
| | | private List<EamTechnicalStatusEvaluationStandardDetail> extractPrecisionCheckItems(List<XWPFTable> tables) { |
| | | List<EamTechnicalStatusEvaluationStandardDetail> items = new ArrayList<>(); |
| | | EamTechnicalStatusEvaluationStandardDetail item = null; |
| | | //è§£æç¬¬ä¸ä¸ªè¡¨æ ¼ï¼å¸¦è®¾å¤ä¿¡æ¯ |
| | | XWPFTable table = tables.get(0); |
| | | for (int i = 0; i < table.getNumberOfRows(); i++) { |
| | | XWPFTableRow row = table.getRow(i); |
| | | if (row == null || CollectionUtil.isEmpty(row.getTableCells()) || row.getTableCells().size() < 2) { |
| | | //读åå°ç©ºrowå¼ |
| | | continue; |
| | | } |
| | | //æ£æ¥æ¯å¦å°æ£æ¥é¡¹åºå· |
| | | String firstCell = row.getCell(0).getText().trim(); |
| | | Integer itemCode = null; |
| | | try { |
| | | itemCode = Integer.parseInt(firstCell); |
| | | } catch (NumberFormatException e) { |
| | | //䏿¯æ£æ¥é¡¹å
容ï¼è·³è¿æ¤è¡ |
| | | if(item == null) { |
| | | continue; |
| | | }else { |
| | | itemCode = item.getItemCode(); |
| | | } |
| | | } |
| | | //è·å第äºä¸ªåå
æ ¼ |
| | | String itemName = row.getCell(1).getText().trim(); |
| | | if(StringUtils.isBlank(itemName)) { |
| | | if(item != null) { |
| | | itemName = item.getItemName(); |
| | | }else { |
| | | continue; |
| | | } |
| | | } |
| | | String subItemName = null; |
| | | String toleranceValue = null; |
| | | if(row.getTableCells().size() == 4) { |
| | | toleranceValue = row.getCell(2).getText().trim(); |
| | | }else if(row.getTableCells().size() == 5) { |
| | | subItemName = row.getCell(2).getText().trim(); |
| | | toleranceValue = row.getCell(3).getText().trim(); |
| | | }else { |
| | | continue; |
| | | } |
| | | if(StringUtils.isBlank(toleranceValue)) { |
| | | //å
å·®å¼ä¸åå¨ï¼è·³è¿ |
| | | if(item != null) { |
| | | toleranceValue = item.getToleranceValue(); |
| | | }else { |
| | | continue; |
| | | } |
| | | } |
| | | //æ¼è£
æç»æ°æ® |
| | | item = new EamTechnicalStatusEvaluationStandardDetail(); |
| | | item.setItemCode(itemCode); |
| | | item.setItemName(itemName); |
| | | item.setSubItemName(subItemName); |
| | | item.setToleranceValue(toleranceValue); |
| | | item.setCheckCategory(TechnicalStatusEvaluationCheckCategoryEnum.PRECISION_CHECK.name()); |
| | | items.add(item); |
| | | } |
| | | return items; |
| | | } |
| | | |
| | | } |
| | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.common.exception.JeecgBootException; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.system.entity.BaseFactory; |
| | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param BaseFactory |
| | | * @param baseFactory |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "设å¤è½¦é´ç®¡ç-æ·»å ") |
| | | @ApiOperation(value = "设å¤è½¦é´ç®¡ç-æ·»å ", notes = "设å¤è½¦é´ç®¡ç-æ·»å ") |
| | | @PostMapping(value = "/add") |
| | | public Result<BaseFactory> add(@RequestBody BaseFactory BaseFactory) { |
| | | public Result<?> add(@RequestBody BaseFactory baseFactory) { |
| | | Result<BaseFactory> result = new Result<>(); |
| | | try { |
| | | BaseFactoryService.saveBaseFactoryData(BaseFactory); |
| | | QueryWrapper<BaseFactory> baseFactoryQueryWrapper = new QueryWrapper<>(); |
| | | baseFactoryQueryWrapper.eq(StrUtil.isNotEmpty(baseFactory.getFactoryCode()), "factory_code", baseFactory.getFactoryCode()); |
| | | baseFactoryQueryWrapper.eq("del_flag", CommonConstant.DEL_FLAG_0.toString()); |
| | | if (BaseFactoryService.getOne(baseFactoryQueryWrapper) != null) { |
| | | return Result.error("æºæç¼ç å·²åå¨"); |
| | | } |
| | | BaseFactoryService.saveBaseFactoryData(baseFactory); |
| | | result.success("æ·»å æåï¼"); |
| | | } catch (Exception e) { |
| | | log.error(e.getMessage(), e); |
| | |
| | | item.setOrgCodeTxt(useDepNames.get(item.getId())); |
| | | item.setProductionName(useProNames.get(item.getId())); |
| | | item.setRepairDepartName(useRepDepNames.get(item.getId())); |
| | | item.setEamFactoryIds( String.join(",",iBaseFactoryUserService.queryEamCenterIdsByUserId(item.getId()))); |
| | | }); |
| | | } |
| | | result.setSuccess(true); |
| | |
| | | String selectedDeparts = jsonObject.getString("selecteddeparts"); |
| | | String selectedProductions = jsonObject.getString("selectedProduction"); |
| | | String selectedRepairDeparts = jsonObject.getString("selectedRepairDeparts"); |
| | | String factoryIds=jsonObject.getString("selectedBaseFactory"); |
| | | try { |
| | | SysUser user = JSON.parseObject(jsonObject.toJSONString(), SysUser.class); |
| | | user.setCreateTime(new Date());//设置å建æ¶é´ |
| | |
| | | user.setOrgCode(null); |
| | | // ä¿åç¨æ·èµ°ä¸ä¸ªservice ä¿è¯äºå¡ |
| | | sysUserService.saveUser(user, selectedRoles, selectedDeparts, selectedProductions, selectedRepairDeparts); |
| | | if (oConvertUtils.isNotEmpty(factoryIds)) { |
| | | iBaseFactoryUserService.addUserFactory(user.getId(), factoryIds); |
| | | } |
| | | baseCommonService.addLog("æ·»å ç¨æ·ï¼usernameï¼ " + user.getUsername(), CommonConstant.LOG_TYPE_2, 2); |
| | | result.success("æ·»å æåï¼"); |
| | | } catch (Exception e) { |
| | |
| | | String departs = jsonObject.getString("selecteddeparts"); |
| | | String productions = jsonObject.getString("selectedProduction"); |
| | | String repairDeparts = jsonObject.getString("selectedRepairDeparts"); |
| | | String factoryIds=jsonObject.getString("selectedBaseFactory"); |
| | | if (oConvertUtils.isEmpty(departs)) { |
| | | //vue3.0å端åªä¼ éäºdepartIds |
| | | departs = user.getDepartIds(); |
| | |
| | | if (oConvertUtils.isNotEmpty(repairDeparts)) { |
| | | repairDeparts = user.getRepairDepartIds(); |
| | | } |
| | | if (oConvertUtils.isNotEmpty(factoryIds)) { |
| | | iBaseFactoryUserService.addUserFactory(user.getId(), factoryIds); |
| | | } |
| | | //ç¨æ·è¡¨å段org_codeä¸è½å¨è¿é设置ä»çå¼ |
| | | user.setOrgCode(null); |
| | | // ä¿®æ¹ç¨æ·èµ°ä¸ä¸ªservice ä¿è¯äºå¡ |
| | |
| | | List<EamBaseFactoryTreeModel> searchByKeyWord(String keyWord); |
| | | |
| | | /** |
| | | * æ ¹æ®å
³é®åè·åä¸å¿æ°æ® |
| | | */ |
| | | BaseFactory searchCenterByKeyWord(String keyWord); |
| | | |
| | | /** |
| | | * ä¿åäº§çº¿æ°æ® |
| | | */ |
| | | void saveBaseFactoryData(BaseFactory BaseFactory); |
| | |
| | | * æ ¹æ®æå®ç¨æ·idæ¥è¯¢äº§çº¿ä¿¡æ¯ |
| | | */ |
| | | List<EamBaseFactoryIdModel> queryEamBaseFactoryIdsOfUser(String userId); |
| | | |
| | | /** |
| | | * æ ¹æ®æå®ç¨æ·idæ¥è¯¢EAMä¸å¿ä¿¡æ¯ |
| | | */ |
| | | List<String> queryEamCenterIdsByUserId(String userId); |
| | | |
| | | /** |
| | | * æ·»å åä¸ªç¨æ·ä¸ä¸ç»ä¸å¿ |
| | | * @param userId |
| | | * @param factoryIds |
| | | */ |
| | | void addUserFactory(String userId, String factoryIds); |
| | | } |
| | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.IdWorker; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.common.constant.FillRuleConstant; |
| | | import org.jeecg.common.exception.JeecgBootException; |
| | | import org.jeecg.common.util.FillRuleUtil; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.system.entity.BaseFactory; |
| | |
| | | return Collections.emptyList(); |
| | | } |
| | | |
| | | public BaseFactory searchCenterByKeyWord(String keyWord) { |
| | | if (StringUtils.isBlank(keyWord)) { |
| | | return null; |
| | | } |
| | | |
| | | if (keyWord.contains("/")) { |
| | | return searchByHierarchy(keyWord); |
| | | } else { |
| | | return searchByCode(keyWord); |
| | | } |
| | | } |
| | | |
| | | private BaseFactory searchByHierarchy(String path) { |
| | | String[] levels = path.split("/"); |
| | | int depth = levels.length; |
| | | |
| | | // æ£æ¥å±çº§æ·±åº¦ |
| | | if (depth < 2 || depth > 3) { |
| | | return null; // æ æçå±çº§æ·±åº¦ |
| | | } |
| | | |
| | | // æ¥è¯¢ç¬¬ä¸çº§ä¸å¿ |
| | | BaseFactory center = findFactory(levels[0], 1, null); |
| | | if (center == null) return null; |
| | | |
| | | // æ¥è¯¢ç¬¬äºçº§å·¥åº |
| | | BaseFactory workArea = findFactory(levels[1], null, center.getId()); |
| | | if (workArea == null || depth == 2) return workArea; |
| | | |
| | | // æ¥è¯¢ç¬¬ä¸çº§å·¥æ®µ |
| | | return findFactory(levels[2], null, workArea.getId()); |
| | | } |
| | | |
| | | private BaseFactory searchByCode(String code) { |
| | | LambdaQueryWrapper<BaseFactory> query = new LambdaQueryWrapper<>(); |
| | | query.like(BaseFactory::getFactoryCode, code); |
| | | return this.baseMapper.selectOne(query); // 使ç¨selectOneé¿å
å¤ä¸ªç»æ |
| | | } |
| | | |
| | | private BaseFactory findFactory(String name, Integer category, String parentId) { |
| | | LambdaQueryWrapper<BaseFactory> query = new LambdaQueryWrapper<>(); |
| | | query.eq(BaseFactory::getFactoryName, name); |
| | | |
| | | if (category != null) query.eq(BaseFactory::getFactoryCategory, category); |
| | | if (parentId != null) query.eq(BaseFactory::getParentId, parentId); |
| | | |
| | | return this.baseMapper.selectOne(query); |
| | | } |
| | | |
| | | /** |
| | | * saveProductionData å¯¹åº add ä¿åç¨æ·å¨é¡µé¢æ·»å çæ°ç设å¤è½¦é´ç®¡çå¯¹è±¡æ°æ® |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void saveBaseFactoryData(BaseFactory BaseFactory) { |
| | | if (BaseFactory != null) { |
| | | if (BaseFactory.getParentId() == null|| StrUtil.isEmpty(BaseFactory.getParentId())) { |
| | | BaseFactory.setParentId(""); |
| | | BaseFactory.setFactoryCategory("0"); |
| | | public void saveBaseFactoryData(BaseFactory baseFactory) { |
| | | if (baseFactory != null) { |
| | | if (baseFactory.getParentId() == null|| StrUtil.isEmpty(baseFactory.getParentId())) { |
| | | baseFactory.setParentId(""); |
| | | baseFactory.setFactoryCategory("0"); |
| | | } |
| | | if (BaseFactory.getFactoryCategory() == null|| StrUtil.isEmpty(BaseFactory.getFactoryCategory())) { |
| | | BaseFactory.setFactoryCategory("1"); |
| | | if (baseFactory.getFactoryCategory() == null|| StrUtil.isEmpty(baseFactory.getFactoryCategory())) { |
| | | baseFactory.setFactoryCategory("1"); |
| | | } |
| | | BaseFactory.setId(IdWorker.getIdStr(BaseFactory)); |
| | | baseFactory.setId(IdWorker.getIdStr(baseFactory)); |
| | | // å
å¤æè¯¥å¯¹è±¡ææ ç¶çº§ID,æåæå³ç䏿¯æé«çº§,å¦åæå³çæ¯æé«çº§ |
| | | // è·åç¶çº§ID |
| | | String parentId = BaseFactory.getParentId(); |
| | | String parentId = baseFactory.getParentId(); |
| | | JSONObject formData = new JSONObject(); |
| | | formData.put("parentId",parentId); |
| | | String[] codeArray = (String[]) FillRuleUtil.executeRule(FillRuleConstant.WORKSHOP,formData); |
| | | BaseFactory.setOrgCode(codeArray[0]); |
| | | baseFactory.setOrgCode(codeArray[0]); |
| | | String orgType = codeArray[1]; |
| | | BaseFactory.setOrgType(String.valueOf(orgType)); |
| | | BaseFactory.setDelFlag(CommonConstant.DEL_FLAG_0.toString()); |
| | | this.save(BaseFactory); |
| | | baseFactory.setOrgType(String.valueOf(orgType)); |
| | | baseFactory.setDelFlag(CommonConstant.DEL_FLAG_0.toString()); |
| | | this.save(baseFactory); |
| | | } |
| | | } |
| | | |
| | |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public boolean updateBaseFactoryDataById(BaseFactory BaseFactory) { |
| | | if (BaseFactory != null) { |
| | | this.updateById(BaseFactory); |
| | | public boolean updateBaseFactoryDataById(BaseFactory baseFactory) { |
| | | QueryWrapper<BaseFactory> baseFactoryQueryWrapper = new QueryWrapper<>(); |
| | | baseFactoryQueryWrapper.eq(StrUtil.isNotEmpty(baseFactory.getFactoryCode()), "factory_code", baseFactory.getFactoryCode()); |
| | | baseFactoryQueryWrapper.eq("del_flag", CommonConstant.DEL_FLAG_0.toString()); |
| | | if (this.getOne(baseFactoryQueryWrapper) != null) { |
| | | throw new JeecgBootException("æºæç¼ç å·²åå¨"); |
| | | } |
| | | if (baseFactory != null) { |
| | | this.updateById(baseFactory); |
| | | return true; |
| | | } |
| | | return false; |
| | |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®æå®ç¨æ·idæ¥è¯¢EAMä¸å¿ä¿¡æ¯ |
| | | */ |
| | | @Override |
| | | public List<String> queryEamCenterIdsByUserId(String userId){ |
| | | LambdaQueryWrapper<BaseFactoryUser> factoryUserLambdaQueryWrapper=new LambdaQueryWrapper<>(); |
| | | factoryUserLambdaQueryWrapper.eq(BaseFactoryUser::getUserId, userId); |
| | | factoryUserLambdaQueryWrapper.exists("select 1 from eam_base_factory b where b.id=eam_base_factory_user.factory_id and b.del_flag=0"); |
| | | List<BaseFactoryUser> baseFactoryUsers=this.list(factoryUserLambdaQueryWrapper); |
| | | List<String> eamCenterIds=new ArrayList<>(); |
| | | if(baseFactoryUsers!=null&& !baseFactoryUsers.isEmpty()) { |
| | | for (BaseFactoryUser baseFactoryUser : baseFactoryUsers) { |
| | | eamCenterIds.add(baseFactoryUser.getFactoryId()); |
| | | } |
| | | } |
| | | return eamCenterIds; |
| | | } |
| | | |
| | | /** |
| | | * æ·»å åä¸ªç¨æ·ä¸ä¸ç»ä¸å¿ |
| | | * @param userId |
| | | * @param factoryIds |
| | | */ |
| | | @Override |
| | | public void addUserFactory(String userId, String factoryIds){ |
| | | if (factoryIds.contains(",")){ |
| | | //å
æ¥è¯¢ |
| | | List<String> eamCenterIds=this.queryEamCenterIdsByUserId(userId); |
| | | if (eamCenterIds != null && !eamCenterIds.isEmpty()) { |
| | | for (String eamCenterId : eamCenterIds) { |
| | | this.remove(new LambdaQueryWrapper<BaseFactoryUser>().eq(BaseFactoryUser::getUserId, userId).eq(BaseFactoryUser::getFactoryId, eamCenterId)); |
| | | } |
| | | } |
| | | String [] factoryIdArray=factoryIds.split(","); |
| | | for(String factoryId:factoryIdArray){ |
| | | BaseFactoryUser baseFactoryUser=new BaseFactoryUser(); |
| | | baseFactoryUser.setUserId(userId); |
| | | baseFactoryUser.setFactoryId(factoryId); |
| | | this.save(baseFactoryUser); |
| | | } |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.system.vo; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Author: Lius |
| | | * @CreateTime: 2025-07-03 |
| | | * @Description: |
| | | */ |
| | | @Data |
| | | public class EamBaseFactoryVo { |
| | | private String userId; |
| | | private String factoryName; |
| | | } |