¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * æ¥å£è¡¨-è°·å·ä½ä¸ |
| | | * |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "H_COLD_VALLEY") |
| | | public class ColdValley implements Serializable { |
| | | |
| | | @Id |
| | | @Column(name = "zydh", length = 40) |
| | | @PropertyDef(label = "è°·å·ä½ä¸åå·") |
| | | private String zydh; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 40) |
| | | @PropertyDef(label = "æå±ååº") |
| | | private String deptId; |
| | | |
| | | @Column(name = "ajdm", length = 40) |
| | | @PropertyDef(label = "å»é´ä»£ç ") |
| | | private String ajdm; |
| | | |
| | | @Column(name = "kssj") |
| | | @PropertyDef(label = "éé£å¼å§æ¶é´") |
| | | private Date kssj; |
| | | |
| | | @Column(name = "jssj") |
| | | @PropertyDef(label = "éé£ç»ææ¶é´") |
| | | private Date jssj; |
| | | |
| | | @Column(name = "lspzdm", length = 40) |
| | | @PropertyDef(label = "ç²®é£åç§") |
| | | private String lspzdm; |
| | | |
| | | @Column(name = "lssl", length = 40) |
| | | @PropertyDef(label = "ç²®é£æ°é") |
| | | private Double lssl; |
| | | |
| | | @Column(name = "lqtfmd", length = 40) |
| | | @PropertyDef(label = "å·å´éé£ç®ç") |
| | | private String lqtfmd; |
| | | |
| | | @Column(name = "lqsfwd") |
| | | @PropertyDef(label = "å·å´é飿¸©åº¦") |
| | | private Double lqsfwd; |
| | | |
| | | @Column(name = "lqsfsd") |
| | | @PropertyDef(label = "å·å´é飿¹¿åº¦") |
| | | private Double lqsfsd; |
| | | |
| | | @Column(name = "ljtfsj") |
| | | @PropertyDef(label = "累计é飿¶é´") |
| | | private Double ljtfsj; |
| | | |
| | | @Column(name = "wwzgz") |
| | | @PropertyDef(label = "é飿é´å¤æ¸©æé«å¼") |
| | | private Double wwzgz; |
| | | |
| | | @Column(name = "wwzdz") |
| | | @PropertyDef(label = "é飿é´å¤æ¸©æä½å¼") |
| | | private Double wwzdz; |
| | | |
| | | @Column(name = "wwpjz") |
| | | @PropertyDef(label = "é飿é´å¤æ¸©å¹³åå¼") |
| | | private Double wwpjz; |
| | | |
| | | @Column(name = "wszgz") |
| | | @PropertyDef(label = "é飿é´å¤æ¹¿æé«å¼") |
| | | private Double wszgz; |
| | | |
| | | @Column(name = "wszdz") |
| | | @PropertyDef(label = "é飿é´å¤æ¹¿æä½å¼") |
| | | private Double wszdz; |
| | | |
| | | @Column(name = "wspjz") |
| | | @PropertyDef(label = "é飿é´å¤æ¹¿å¹³åå¼") |
| | | private Double wspjz; |
| | | |
| | | @Column(name = "qlwzgz") |
| | | @PropertyDef(label = "éé£å粮温æé«å¼") |
| | | private Double qlwzgz; |
| | | |
| | | @Column(name = "qlwzdz") |
| | | @PropertyDef(label = "éé£å粮温æä½å¼") |
| | | private Double qlwzdz; |
| | | |
| | | @Column(name = "qlwpjz") |
| | | @PropertyDef(label = "éé£å粮温平åå¼") |
| | | private Double qlwpjz; |
| | | |
| | | @Column(name = "hlwzgz") |
| | | @PropertyDef(label = "éé£å粮温æé«å¼") |
| | | private Double hlwzgz; |
| | | |
| | | @Column(name = "hlwzdz") |
| | | @PropertyDef(label = "éé£å粮温æä½å¼") |
| | | private Double hlwzdz; |
| | | |
| | | @Column(name = "hlwpjz") |
| | | @PropertyDef(label = "éé£å粮温平åå¼") |
| | | private Double hlwpjz; |
| | | |
| | | @Column(name = "qlszgz") |
| | | @PropertyDef(label = "éé£å粮湿度æé«å¼") |
| | | private Double qlszgz; |
| | | |
| | | @Column(name = "qlszdz") |
| | | @PropertyDef(label = "éé£å粮湿度æä½å¼") |
| | | private Double qlszdz; |
| | | |
| | | @Column(name = "qlspjz") |
| | | @PropertyDef(label = "éé£å粮湿度平åå¼") |
| | | private Double qlspjz; |
| | | |
| | | @Column(name = "hlszgz") |
| | | @PropertyDef(label = "éé£å粮湿度æé«å¼") |
| | | private Double hlszgz; |
| | | |
| | | @Column(name = "hlszdz") |
| | | @PropertyDef(label = "éé£å粮湿度æä½å¼") |
| | | private Double hlszdz; |
| | | |
| | | @Column(name = "hlspjz") |
| | | @PropertyDef(label = "éé£å粮湿度平åå¼") |
| | | private Double hlspjz; |
| | | |
| | | @Column(name = "zhdl", length = 40) |
| | | @PropertyDef(label = "æ»èçµé") |
| | | private String zhdl; |
| | | |
| | | @Column(name = "czr", length = 40) |
| | | @PropertyDef(label = "æä½äºº") |
| | | private String czr; |
| | | |
| | | @Column(name = "bz", length = 40) |
| | | @PropertyDef(label = "夿³¨") |
| | | private String bz; |
| | | |
| | | @Column(name = "zhgxsj") |
| | | @PropertyDef(label = "æ´æ°æ¶é´") |
| | | private Date zhgxsj; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import com.fzzy.igds.dzhwk.constant.Constant; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * @author: andy.jia |
| | | * @description: |
| | | * @version: |
| | | * @data:2019å¹´12æ17æ¥ |
| | | */ |
| | | @Entity |
| | | @Table(name = "d_dic_sys_conf") |
| | | @Data |
| | | public class DicSysConf implements Serializable { |
| | | |
| | | @Id |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "GRAIN_AUTO_", length = 1) |
| | | @PropertyDef(label = "ç²®æ
èªå¨ä¼ååè½") |
| | | private String grainAuto = Constant.YN_N; |
| | | |
| | | @Column(name = "GRAIN_ERROR_AUTO_", length = 1) |
| | | @PropertyDef(label = "ç²®æ
èªå¨å¤ç") |
| | | private String grainErrorAuto = Constant.YN_N; |
| | | |
| | | @Column(name = "GRAIN_MAX_AUTO_", length = 1) |
| | | @PropertyDef(label = "ç²®æ
髿¸©ä¼å") |
| | | private String grainMaxAuto = Constant.YN_N; |
| | | |
| | | @Column(name = "GRAIN_MORE_TAG_", length = 1) |
| | | @PropertyDef(label = "ä¸åæºå¤ä»", description = "é»è®¤æ¯å¦") |
| | | private String grainMoreTag = Constant.YN_N; |
| | | |
| | | @Column(name = "WARN_TO_WX_TAG_", length = 1) |
| | | @PropertyDef(label = "微信æ¨éè¦åå¯ç¨", description = "é»è®¤æ¯") |
| | | private String warnToWxTag = Constant.YN_Y; |
| | | |
| | | @Column(name = "INTERVAL_TIME_") |
| | | @PropertyDef(label = "æ§è¡é´éæ¶é´", description = "é对æ çº¿æ¨¡å¼æ
åµä¸ï¼åä½ï¼ç§") |
| | | private int intervalTime = 5; |
| | | |
| | | @Column(name = "INTERVAL_GAS_") |
| | | @PropertyDef(label = "æ°ä½é鿣æµé´é", description = "åä½ï¼ç§") |
| | | private int intervalGas = 15; |
| | | |
| | | @Column(name = "INTERVAL_PEST_") |
| | | @PropertyDef(label = "è«å®³é鿣æµé´é", description = "åä½ï¼ç§") |
| | | private int intervalPest = 15; |
| | | |
| | | @Column(name = "QUANTITY_PATH_", length = 50) |
| | | @PropertyDef(label = "æ°éå¨çº¿æ£æµå°å", description = "éå¯¹çæ¯æèªææå¡çæ
åµ") |
| | | private String quantityPath; |
| | | |
| | | @Column(name = "THREE_PATH_", length = 50) |
| | | @PropertyDef(label = "ä¸ç»´å¯è§åè·¯å¾") |
| | | private String threePath; |
| | | |
| | | @Column(name = "HWK_API_PATH_", length = 100) |
| | | @PropertyDef(label = "çµåè´§ä½å¡æ¥å£è·¯å¾") |
| | | private String hwkApiPath; |
| | | |
| | | @Column(name = "SYS_NAME_", length = 20) |
| | | @PropertyDef(label = "ç³»ç»åç§°", description = "ç³»ç»ç»å½åå·¦ä¸ç³»ç»åç§°") |
| | | private String sysName = "æºæ
§ç²®åºç®¡çç³»ç»"; |
| | | |
| | | @Column(name = "SCREE_NAME_", length = 30) |
| | | @PropertyDef(label = "大å±åç§°") |
| | | private String screeName = "æºæ
§ç²®åºç®¡çç³»ç»ç»¼å大å±"; |
| | | |
| | | @Column(name = "GRAIN_ADD_POINT_", length = 1) |
| | | @PropertyDef(label = "æ¯å¦ä¿åç²®æ
ééç¹ä¿¡æ¯", description = "é»è®¤ä¸ä¿å") |
| | | private String grainAddPoint = Constant.YN_N; |
| | | |
| | | @Column(name = "SUPPORT_", length = 50) |
| | | @PropertyDef(label = "ææ¯æ¯æ") |
| | | private String support = "飿£è´è¿ä¿¡æ¯ææ¯è¡ä»½æéå
¬å¸"; |
| | | |
| | | @Column(name = "EMAIL_", length = 30) |
| | | @PropertyDef(label = "å
¬å¸é®ç®±") |
| | | private String email = "business@fzzygf.com"; |
| | | |
| | | @Column(name = "PHONE_", length = 20) |
| | | @PropertyDef(label = "å
¬å¸çµè¯") |
| | | private String phone = "400-627-1116"; |
| | | |
| | | @Column(name = "WEB_SITE_", length = 30) |
| | | @PropertyDef(label = "å
¬å¸ç½ç«") |
| | | private String website = "http://www.fzzygf.com"; |
| | | |
| | | @Column(name = "ADDRESS_", length = 100) |
| | | @PropertyDef(label = "å
¬å¸å°å") |
| | | private String address = "æ²³åçéå·å¸é«æ°åºå½å®¶å¤§å¦ç§æå1å·æ¥¼"; |
| | | |
| | | public DicSysConf() { |
| | | super(); |
| | | } |
| | | |
| | | public DicSysConf(String companyId) { |
| | | super(); |
| | | this.companyId = companyId; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * ç¯æµçè¸-çè¸ä½ä¸è®°å½ |
| | | * |
| | | * @date 2023å¹´7æ26æ¥ |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_DRUG_LOG") |
| | | public class DrugLog implements Serializable { |
| | | |
| | | public static String SORT_PROP = "id"; |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 40) |
| | | @PropertyDef(label = "çè¸ä½ä¸åå·", description = "ä½ä¸æ¥æ (yyyyMMdd) +3 ä½é¡ºåºå·") |
| | | private String id; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 40) |
| | | @PropertyDef(label = "æå±ååº") |
| | | private String deptId; |
| | | |
| | | @Column(name = "DEPOT_ID_", length = 50) |
| | | @PropertyDef(label = "ä»åº") |
| | | private String depotId; |
| | | |
| | | @Column(name = "START_") |
| | | @PropertyDef(label = "å¼å§æ¶é´") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date start; |
| | | |
| | | @Column(name = "END_") |
| | | @PropertyDef(label = "æªè³æ¶é´") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date end; |
| | | |
| | | @Column(name = "PEST_BATCH_ID_", length = 50) |
| | | @PropertyDef(label = "è«å®³æ£æµåå·") |
| | | private String pestBatchId; |
| | | |
| | | @Column(name = "NUM_") |
| | | @PropertyDef(label = "ç¬¬å æ¬¡çè¸") |
| | | private Integer num = 0; |
| | | |
| | | @Column(name = "MODE_", length = 1) |
| | | @PropertyDef(label = "çè¸æ¹å¼", description = "0:ç²®é¢æ½®è§£1:å¸è¢åè2:æ¢ç®¡3:ç»¼åæ½è¯") |
| | | private String mode; |
| | | |
| | | @Column(name = "RECIR_MODE_", length = 1) |
| | | @PropertyDef(label = "ç¯æµçè¸æ¹å¼", description = "0:åºå®å¼å¸ç½®å½¢å¼1:ç§»å¨å¼å¸ç½®å½¢å¼") |
| | | private String recirMode; |
| | | |
| | | @Column(name = "hlxzynhljsjh", length = 1) |
| | | @PropertyDef(label = "ç¯æµçè¸ä¸å
ç¯æµææ¯ç»å", description = "0:åå«ä½¿ç¨_åºå®å¼1:åå«ä½¿ç¨_ç§»å¨å¼2:äºåä¸åºç¨_ååæ§å¶3:äºåä¸åºç¨_ååæ§å¶") |
| | | private String hlxzynhljsjh; |
| | | |
| | | @PropertyDef(label = "çè¸æ¹æ¡å¶å®") |
| | | @Column(name = "xzfazd", length = 128) |
| | | private String xzfazd; |
| | | |
| | | @PropertyDef(label = "çè¸æ¹æ¡èµ·è人") |
| | | @Column(name = "xzfaqcr", length = 64) |
| | | private String xzfaqcr; |
| | | |
| | | @PropertyDef(label = "çè¸æ¹æ¡æ¹å人") |
| | | @Column(name = "xzfapzr", length = 64) |
| | | private String xzfapzr; |
| | | |
| | | @PropertyDef(label = "çè¸æ¹æ¡æ¥å¤æ
åµ") |
| | | @Column(name = "xzfabbqk", length = 64) |
| | | private String xzfabbqk; |
| | | |
| | | @PropertyDef(label = "æ½è¯äººåèµè´¨æ
åµ") |
| | | @Column(name = "syryzzqk", length = 64) |
| | | private String syryzzqk; |
| | | |
| | | @PropertyDef(label = "æ½è¯èµè´¨å®¡æ ¸") |
| | | @Column(name = "syzzsh", length = 64) |
| | | private String syzzsh; |
| | | |
| | | @Column(name = "DRUG_NAME_", length = 64) |
| | | @PropertyDef(label = "è¯ååç§°") |
| | | private String drugName; |
| | | |
| | | @PropertyDef(label = "åå") |
| | | @Column(name = "jx", length = 64) |
| | | private String jx; |
| | | |
| | | @Column(name = "CONCENTRATION_", length = 50) |
| | | @PropertyDef(label = "è¯åæµåº¦", description = "%") |
| | | private Double concentration = 0.0; |
| | | |
| | | @Column(name = "GRAIN_DOSE_") |
| | | @PropertyDef(label = "ç²®å åä½ç¨è¯é", description = "g/m³") |
| | | private Double grainDose = 0.0; |
| | | |
| | | @Column(name = "SPACE_DOSE_") |
| | | @PropertyDef(label = "空é´åä½ç¨è¯é", description = "g/m³") |
| | | private Double spaceDose = 0.0; |
| | | |
| | | @Column(name = "DOSE_") |
| | | @PropertyDef(label = "æ»ç¨è¯é", description = "kg") |
| | | private Double dose = 0.0; |
| | | |
| | | @PropertyDef(label = "æ½è¯æ¹æ³", description = "0:潮解æ³1:ä»å¤åçå¨2:é¢ç¶æ°") |
| | | @Column(name = "syff", length = 1) |
| | | private String syff; |
| | | |
| | | @PropertyDef(label = "è¾
婿½è¯æªæ½") |
| | | @Column(name = "fzsycs", length = 128) |
| | | private String fzsycs; |
| | | |
| | | @PropertyDef(label = "空æ°å¼å¸å¨åå®å
¨æ£æ¥æ
åµ") |
| | | @Column(name = "kqhqjaqjcqk", length = 128) |
| | | private String kqhqjaqjcqk; |
| | | |
| | | @PropertyDef(label = "ç£·åæ°¢æ£æµè£
ç½®è°è¯æ
åµ") |
| | | @Column(name = "lhqjczztsqk", length = 128) |
| | | private String lhqjczztsqk; |
| | | |
| | | @PropertyDef(label = "æ°§æ°æ·±åº¦æ£æµè£
ç½®è°è¯æ
åµ") |
| | | @Column(name = "yqsdjczztsqk", length = 128) |
| | | private String yqsdjczztsqk; |
| | | |
| | | @PropertyDef(label = "ç£·åæ°¢æ¥è¦ä»ªå®å
¨æ£æ¥") |
| | | @Column(name = "lhqbjyaqjc", length = 128) |
| | | private String lhqbjyaqjc; |
| | | |
| | | @PropertyDef(label = "æ°§æ°æ¥è¦ä»ªå®å
¨æ£æ¥") |
| | | @Column(name = "yqbjyaqjc", length = 128) |
| | | private String yqbjyaqjc; |
| | | |
| | | @PropertyDef(label = "è¡¥è¯åä»å
ç£·åæ°¢æµåº¦") |
| | | @Column(name = "byqcnlhqnd", precision = 20, scale = 3) |
| | | private double byqcnlhqnd; |
| | | |
| | | @PropertyDef(label = "ç£·åæ°¢æµåº¦åä½", description = "1ï¼g/m³(é»è®¤);2ï¼ppm;3:ml/m³;4ï¼%VOL") |
| | | @Column(name = "nlhqnddw", length = 1) |
| | | private String nlhqnddw = "1"; |
| | | |
| | | @PropertyDef(label = "ç®æ æµåº¦", description = "åä½ï¼g/m³") |
| | | @Column(name = "mbnd", precision = 20, scale = 3) |
| | | private double mbnd; |
| | | |
| | | @PropertyDef(label = "计ç®è¡¥è¯é", description = "åä½ï¼g") |
| | | @Column(name = "jsbyl", precision = 20, scale = 3) |
| | | private double jsbyl; |
| | | |
| | | @PropertyDef(label = "å®é
è¡¥è¯é", description = "åä½ï¼g") |
| | | @Column(name = "sjbyl", precision = 20, scale = 3) |
| | | private double sjbyl; |
| | | |
| | | @PropertyDef(label = "è¡¥è¯æ¹æ³") |
| | | @Column(name = "byff", length = 128) |
| | | private String byff; |
| | | |
| | | @PropertyDef(label = "ä½ä¸äººæ°") |
| | | @Column(name = "zyrs") |
| | | private Integer zyrs; |
| | | |
| | | @PropertyDef(label = "è¡¥è¯ä½ä¸æ¹å人") |
| | | @Column(name = "byzypzr", length = 64) |
| | | private String byzypzr; |
| | | |
| | | @PropertyDef(label = "ç°åºææ¥äºº") |
| | | @Column(name = "xczhr", length = 64) |
| | | private String xczhr; |
| | | |
| | | @PropertyDef(label = "峰弿µåº¦", description = "åä½ï¼g/m³") |
| | | @Column(name = "fznd", precision = 20, scale = 3) |
| | | private double fznd; |
| | | |
| | | @PropertyDef(label = "ç®æ æµåº¦ç»´æå¤©æ°", description = "åä½ï¼å¤©") |
| | | @Column(name = "mbndwcts") |
| | | private Integer mbndwcts; |
| | | |
| | | @PropertyDef(label = "æ¼æ°ä½ç½®çæµ") |
| | | @Column(name = "lswzjc", length = 128) |
| | | private String lswzjc; |
| | | |
| | | @PropertyDef(label = "æ¼æ°é¨ä½éåçè¡¥ææªæ½") |
| | | @Column(name = "lqbwcqdbjcs", length = 128) |
| | | private String lqbwcqdbjcs; |
| | | |
| | | @PropertyDef(label = "å¯éæ¶é´", description = "åä½ï¼å¤©") |
| | | @Column(name = "mbsj") |
| | | private Integer mbsj; |
| | | |
| | | @PropertyDef(label = "CTå¼") |
| | | @Column(name = "ctz", precision = 20, scale = 3) |
| | | private double ctz; |
| | | |
| | | @PropertyDef(label = "æ£æ°åç£·åæ°¢æµåº¦", description = "åä½ï¼g/m³") |
| | | @Column(name = "sqqlhqnd", precision = 20, scale = 3) |
| | | private double sqqlhqnd; |
| | | |
| | | @Column(name = "VENTILATE_TIME_") |
| | | @PropertyDef(label = "æ£æ°æ¶é´") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date ventilateTime; |
| | | |
| | | @Column(name = "VENTILATE_METHOD_", length = 100) |
| | | @PropertyDef(label = "æ£æ°æ¹æ³") |
| | | private String ventilateMethod; |
| | | |
| | | @PropertyDef(label = "æ£æ°æ¹å人") |
| | | @Column(name = "sqpzr", length = 64) |
| | | private String sqpzr; |
| | | |
| | | @PropertyDef(label = "æ£æ°æç»å¤©æ°", description = "åä½ï¼å¤©") |
| | | @Column(name = "sqcsts") |
| | | private Integer sqcsts; |
| | | |
| | | @Column(name = "AFTER_PH3_") |
| | | @PropertyDef(label = "æ£æ°åç£·åæ°¢æµåº¦", description = "åä½ï¼g/m³") |
| | | private Double afterPh3; |
| | | |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | @PropertyDef(label = "æ®æ¸£æ¶éä½ä¸æ¶é´") |
| | | @Column(name = "czsjzysj") |
| | | private Date czsjzysj; |
| | | |
| | | @PropertyDef(label = "æ®æ¸£æ¶éä½ä¸äººæ°") |
| | | @Column(name = "czsjzyrs") |
| | | private Integer czsjzyrs; |
| | | |
| | | @PropertyDef(label = "æ®æ¸£æ¶éæ¹æ³") |
| | | @Column(name = "czsjff", length = 128) |
| | | private String czsjff; |
| | | |
| | | @PropertyDef(label = "æ®æ¸£æ¶éä½ä¸æ¹å人") |
| | | @Column(name = "czsjzypzr", length = 64) |
| | | private String czsjzypzr; |
| | | |
| | | @PropertyDef(label = "æ®æ¸£å¤çæªæ½") |
| | | @Column(name = "czclcs", length = 128) |
| | | private String czclcs; |
| | | |
| | | @PropertyDef(label = "æ®æ¸£å¤çä½ä¸äººæ°") |
| | | @Column(name = "czclzyrs") |
| | | private Integer czclzyrs; |
| | | |
| | | @PropertyDef(label = "æ®æ¸£å¤çæ¹å人") |
| | | @Column(name = "czclpzr", length = 64) |
| | | private String czclpzr; |
| | | |
| | | @PropertyDef(label = "çè¸åæ´»è«æ£åºæ
åµ") |
| | | @Column(name = "xzhhcjcqk", length = 128) |
| | | private String xzhhcjcqk; |
| | | |
| | | @PropertyDef(label = "çè¸åè«å£å¯åº¦", description = "åä½ï¼å¤´/kg") |
| | | @Column(name = "xzhckmd") |
| | | private Integer xzhckmd; |
| | | |
| | | @PropertyDef(label = "å¹å
»15天忴»è«æ°", description = "åä½ï¼å¤´/kg") |
| | | @Column(name = "pyswthhcs") |
| | | private Integer pyswthhcs; |
| | | |
| | | @PropertyDef(label = "å¹å
»45天忴»è«æ°", description = "åä½ï¼å¤´/kg") |
| | | @Column(name = "pysswthhcs") |
| | | private Integer pysswthhcs; |
| | | |
| | | |
| | | /** |
| | | * 0ï¼è¯å¥½ |
| | | * 1ï¼ä¸è¬ |
| | | * 2ï¼ä¸å¥½ |
| | | */ |
| | | @Column(name = "EVALUATE_", length = 1) |
| | | @PropertyDef(label = "çè¸è¯ä»·", description = "0ï¼è¯å¥½ 1ï¼ä¸è¬ 2ï¼ä¸å¥½") |
| | | private String evaluate; |
| | | |
| | | @PropertyDef(label = "çè¸è´è´£äºº") |
| | | @Column(name = "xzfzr", length = 64) |
| | | private String xzfzr; |
| | | |
| | | @PropertyDef(label = "çè¸ä½ä¸äººå") |
| | | @Column(name = "xzzyry", length = 128) |
| | | private String xzzyry; |
| | | |
| | | @Column(name = "USER_", length = 30) |
| | | @PropertyDef(label = "æä½äºº") |
| | | private String user; |
| | | |
| | | @PropertyDef(label = "æ´æ°äºº") |
| | | @Column(name = "UPDATE_USER_", length = 30) |
| | | private String updateUser; |
| | | |
| | | @PropertyDef(label = "æ´æ°æ¶é´") |
| | | @Column(name = "UPDATE_TIME_") |
| | | private Date updateTime; |
| | | |
| | | @Column(name = "REMARKS_", length = 500) |
| | | @PropertyDef(label = "夿³¨è¯´æ") |
| | | private String remarks; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * è¿åºä»è®°å½å®ä½ |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "H_INOUT_DEPOT_RECORD") |
| | | public class InoutDepotRecord implements Serializable { |
| | | |
| | | |
| | | @Id |
| | | @Column(name = "jccdh", length = 40) |
| | | @PropertyDef(label = "åå·" ) |
| | | private String jccdh; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 40) |
| | | @PropertyDef(label = "æå±ååº") |
| | | private String deptId; |
| | | |
| | | @Column(name = "ajdm", length = 10) |
| | | @PropertyDef(label = "å»é´ä»£ç " ) |
| | | private String ajdm; |
| | | |
| | | @Column(name = "jcry", length = 10) |
| | | @PropertyDef(label = "è¿åºä»äººå" ) |
| | | private String jcry; |
| | | |
| | | @Column(name = "jcsj", length = 10) |
| | | @PropertyDef(label = "è¿ä»æ¶é´" ) |
| | | private Date jcsj; |
| | | |
| | | @Column(name = "ccsj", length = 10) |
| | | @PropertyDef(label = "åºä»æ¶é´" ) |
| | | private Date ccsj; |
| | | |
| | | @Column(name = "jcmd", length = 10) |
| | | @PropertyDef(label = "å
¥ä»ç®ç" ) |
| | | private String jcmd; |
| | | |
| | | @Column(name = "jcsm", length = 10) |
| | | @PropertyDef(label = "å
¥ä»è¯´æ" ) |
| | | private String jcsm; |
| | | |
| | | @Column(name = "zhgxsj", length = 10) |
| | | @PropertyDef(label = "æ´æ°æ¶é´" ) |
| | | private Date zhgxsj; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * é飿°æ® |
| | | * @author vince |
| | | * |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_AREATION_DATA") |
| | | public class MAreationData implements Serializable { |
| | | |
| | | public static String SORT_PROP = "id"; |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 41) |
| | | @PropertyDef(label = "主é®") |
| | | private String id; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 40) |
| | | @PropertyDef(label = "æå±ååº") |
| | | private String deptId; |
| | | |
| | | @Column(name = "DEPOT_ID_", length = 50) |
| | | @PropertyDef(label = "æä½ä»åº") |
| | | private String depotId; |
| | | |
| | | @Column(name = "OBJECTIVE_", length = 100) |
| | | @PropertyDef(label = "éé£ç®ç") |
| | | private String objective; |
| | | |
| | | @PropertyDef(label = "ç²®å åé度") |
| | | @Column(name = "ldkxd", precision = 10, scale = 3) |
| | | private Double ldkxd; |
| | | |
| | | /** |
| | | * 1ï¼èªç¶ç©ºæ°éé£ |
| | | * 2ï¼å ç空æ°éé£ |
| | | * 3ï¼å·å´ç©ºæ°éé£ |
| | | * 4ï¼å
å¾ªç¯æ§æ¸© |
| | | * 5ï¼ç©ºè°æ§æ¸©éé£ |
| | | * 6ï¼ç»´æéé£ |
| | | */ |
| | | @Column(name = "TYPE_", length = 10) |
| | | @PropertyDef(label = "éé£ç±»å") |
| | | private String type; |
| | | /** |
| | | * 1ï¼å°æ§½ |
| | | * 2ï¼å°ä¸ç¬¼ |
| | | * 3ï¼ç§»å¨å¼ |
| | | * 4ï¼ç®±å¼ |
| | | * 5ï¼å¾å |
| | | * 6ï¼å¤¹åº |
| | | * 9ï¼å
¶ä» |
| | | */ |
| | | @Column(name = "WIND_NET_TYPE_", length = 10) |
| | | @PropertyDef(label = "é£ç½ç±»å") |
| | | private String windNetType; |
| | | |
| | | @PropertyDef(label = "é£ç½è®¾ç½®æ¹å¼") |
| | | @Column(name = "fwszfs", length = 64) |
| | | private String fwszfs; |
| | | |
| | | @PropertyDef(label = "主é£éæªé¢ç§¯") |
| | | @Column(name = "zfdjmj", precision = 10, scale = 3) |
| | | private Double zfdjmj; |
| | | |
| | | @PropertyDef(label = "æ¯é£éæªé¢ç§¯") |
| | | @Column(name = "zhfdjmj", precision = 10, scale = 3) |
| | | private Double zhfdjmj; |
| | | |
| | | @PropertyDef(label = "æ¯é£éæ»é¿åº¦") |
| | | @Column(name = "zfdzcd", precision = 20, scale = 3) |
| | | private Double zfdzcd; |
| | | |
| | | @PropertyDef(label = "é£ç½å¼åç") |
| | | @Column(name = "fwkkl", precision = 10, scale = 3) |
| | | private Double fwkkl; |
| | | |
| | | @PropertyDef(label = "空æ°é徿¯") |
| | | @Column(name = "kqtjb", precision = 10, scale = 3) |
| | | private Double kqtjb; |
| | | |
| | | @PropertyDef(label = "éé£å£è®¾ç½®ä¸ªæ°") |
| | | @Column(name = "tfkszgs") |
| | | private Integer tfkszgs; |
| | | |
| | | @PropertyDef(label = "é飿ºåå·") |
| | | @Column(name = "tfjxh", length = 128) |
| | | private String tfjxh; |
| | | |
| | | @PropertyDef(label = "é飿ºå°æ°") |
| | | @Column(name = "tfjts") |
| | | private Integer tfjts; |
| | | |
| | | @PropertyDef(label = "åå°é£æºé¢å®å
¨å") |
| | | @Column(name = "dtfjedqy", precision = 10, scale = 3) |
| | | private Double dtfjedqy; |
| | | |
| | | @PropertyDef(label = "åå°é£æºé¢å®é£é") |
| | | @Column(name = "dtfjedfl", precision = 10, scale = 3) |
| | | private Double dtfjedfl; |
| | | |
| | | @PropertyDef(label = "åå°é£æºé¢å®åç") |
| | | @Column(name = "dtfjedgl", precision = 10, scale = 3) |
| | | private Double dtfjedgl; |
| | | |
| | | /** |
| | | * 1ï¼åå
¥å¼éé£ |
| | | * 2ï¼å¸åºå¼éé£ |
| | | * 3ï¼åå
¥ä¸å¸åºç¸ç»åå¼éé£ |
| | | * 4ï¼ç¯æµéé£ |
| | | * 9ï¼å
¶å® |
| | | */ |
| | | @Column(name = "AIR_SUPPLY_MODE_", length = 10) |
| | | @PropertyDef(label = "é飿¹å¼") |
| | | private String airSupplyMode; |
| | | |
| | | @PropertyDef(label = "åå°é£æºå®æµé£é") |
| | | @Column(name = "dtfjscfl", precision = 10, scale = 3) |
| | | private Double dtfjscfl; |
| | | |
| | | @PropertyDef(label = "åå°é£æºè½´åç") |
| | | @Column(name = "dtfjzgl", precision = 10, scale = 3) |
| | | private Double dtfjzgl; |
| | | |
| | | @PropertyDef(label = "æ»é£é") |
| | | @Column(name = "zfl", precision = 10, scale = 3) |
| | | private Double zfl; |
| | | |
| | | @PropertyDef(label = "åä½éé£é") |
| | | @Column(name = "dwtfl", precision = 10, scale = 3) |
| | | private Double dwtfl; |
| | | |
| | | @PropertyDef(label = "宿µç³»ç»é»å") |
| | | @Column(name = "scxtzl", precision = 10, scale = 3) |
| | | private Double scxtzl; |
| | | |
| | | /** |
| | | * æ»èçµé åç¦ |
| | | */ |
| | | @Column(name = "TOTAL_ES_") |
| | | @PropertyDef(label = "æ»èçµé") |
| | | private Double totalEs; |
| | | |
| | | @PropertyDef(label = "ä½ä¸æ¶æ°æ¸©") |
| | | @Column(name = "zysqw", precision = 10, scale = 3) |
| | | private double zysqw; |
| | | |
| | | @PropertyDef(label = "ä½ä¸æ¶æ°æ¹¿") |
| | | @Column(name = "zysqs", precision = 10, scale = 3) |
| | | private double zysqs; |
| | | |
| | | @Column(name = "BEFORE_TEMP_AVG_") |
| | | @PropertyDef(label = "ä½ä¸åå¹³å粮温") |
| | | private Double beforeTempAvg; |
| | | |
| | | @Column(name = "AFTER_TEMP_AVG_") |
| | | @PropertyDef(label = "ä½ä¸åå¹³å粮温") |
| | | private Double afterTempAvg; |
| | | |
| | | @PropertyDef(label = "鿏©å¹
度") |
| | | @Column(name = "jwfd", precision = 10, scale = 3) |
| | | private double jwfd; |
| | | |
| | | @PropertyDef(label = "å¨ç²®é温è½è") |
| | | @Column(name = "dljwnh", precision = 10, scale = 3) |
| | | private double dljwnh; |
| | | |
| | | @PropertyDef(label = "失水ç") |
| | | @Column(name = "ssl_", precision = 10, scale = 3) |
| | | private double ssl; |
| | | |
| | | @PropertyDef(label = "ä¿æ°´ææè¯ä»·ç»æ") |
| | | @Column(name = "bsxgpjjg", length = 128) |
| | | private String bsxgpjjg; |
| | | |
| | | @PropertyDef(label = "éé£é温ååæ§è¯ä»·_æ´ä»") |
| | | @Column(name = "tfjwjyxpjzc", length = 128) |
| | | private String tfjwjyxpjzc; |
| | | |
| | | @PropertyDef(label = "éé£é温ååæ§è¯ä»·_ä¸å±") |
| | | @Column(name = "tfjwjyxpjsc", length = 128) |
| | | private String tfjwjyxpjsc; |
| | | |
| | | @PropertyDef(label = "éé£é温ååæ§è¯ä»·_ä¸(é´)å±") |
| | | @Column(name = "tfjwjyxpjzjc", length = 128) |
| | | private String tfjwjyxpjzjc; |
| | | |
| | | @PropertyDef(label = "éé£é温ååæ§è¯ä»·_ä¸å±") |
| | | @Column(name = "tfjwjyxpjxc", length = 128) |
| | | private String tfjwjyxpjxc; |
| | | |
| | | @Column(name = "BEFORE_PER_WET_AVG_") |
| | | @PropertyDef(label = "ä½ä¸å平忰´å") |
| | | private Double beforPerWetAvg; |
| | | |
| | | @Column(name = "AFTER_PER_WET_AVG_") |
| | | @PropertyDef(label = "ä½ä¸å平忰´å") |
| | | private Double afterPerWetAvg; |
| | | |
| | | @PropertyDef(label = "éæ°´å¹
度") |
| | | @Column(name = "jsfd", precision = 10, scale = 3) |
| | | private Double jsfd; |
| | | |
| | | @PropertyDef(label = "å¨ç²®éæ°´è½è") |
| | | @Column(name = "dljsnh", precision = 10, scale = 3) |
| | | private Double dljsnh; |
| | | |
| | | @PropertyDef(label = "éé£éæ°´ååæ§åæ_æ´ä»") |
| | | @Column(name = "tfjsjyxfxzc", length = 128) |
| | | private String tfjsjyxfxzc; |
| | | |
| | | @PropertyDef(label = "éé£éæ°´ååæ§åæ_ä¸å±") |
| | | @Column(name = "tfjsjyxfxsc", length = 128) |
| | | private String tfjsjyxfxsc; |
| | | |
| | | @PropertyDef(label = "éé£éæ°´ååæ§åæ_ä¸(é´)å±") |
| | | @Column(name = "tfjsjyxfxzjc", length = 128) |
| | | private String tfjsjyxfxzjc; |
| | | |
| | | @PropertyDef(label = "éé£éæ°´ååæ§åæ_ä¸å±") |
| | | @Column(name = "tfjsjyxfxxc", length = 128) |
| | | private String tfjsjyxfxxc; |
| | | |
| | | @Column(name = "CHARGE_USER_", length = 30) |
| | | @PropertyDef(label = "è´è´£äºº", description = "éé£ä½ä¸è´è´£äºº") |
| | | private String chargeUser; |
| | | @Column(name = "OPERATORS_", length = 30) |
| | | @PropertyDef(label = "ä½ä¸äººå", description = "éé£ä½ä¸äºº") |
| | | private String operators; |
| | | |
| | | @Column(name = "START_TIME_") |
| | | @PropertyDef(label = "éé£ä½ä¸æ¶é´") |
| | | private Date startTime; |
| | | |
| | | @Column(name = "LONG_TIME_") |
| | | @PropertyDef(label = "é飿¶é¿ï¼åä½å°æ¶") |
| | | private Double longTime; |
| | | |
| | | @Column(name = "UPDATE_TIME_") |
| | | @PropertyDef(label = "ä¿®æ¹æ¶é´", description = "æåä¿®æ¹æ¶é´") |
| | | private Date updateTime; |
| | | |
| | | @Column(name = "UPDATE_USER_", length = 30) |
| | | @PropertyDef(label = "ä¿®æ¹äºº", description = "æåä¿®æ¹äºº") |
| | | private String updateUser; |
| | | |
| | | @Column(name = "REMARK_", length = 200) |
| | | @PropertyDef(label = "夿³¨ä¿¡æ¯") |
| | | private String remark; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * æ¥å£è¡¨-å
æ°®æ°è°ä½ä¸ |
| | | * |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "H_N2_FILLING") |
| | | public class N2Filling implements Serializable { |
| | | |
| | | @Id |
| | | @Column(name = "zydh", length = 40) |
| | | @PropertyDef(label = "ä½ä¸åå·") |
| | | private String zydh; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 40) |
| | | @PropertyDef(label = "æå±ååº") |
| | | private String deptId; |
| | | |
| | | @Column(name = "ajdm", length = 40) |
| | | @PropertyDef(label = "å»é´ä»£ç ") |
| | | private String ajdm; |
| | | |
| | | @Column(name = "kssj") |
| | | @PropertyDef(label = "å¼å§æ¶é´") |
| | | private Date kssj; |
| | | |
| | | @Column(name = "jssj") |
| | | @PropertyDef(label = "ç»ææ¶é´") |
| | | private Date jssj; |
| | | |
| | | @Column(name = "lspzdm", length = 40) |
| | | @PropertyDef(label = "ç²®é£åç§") |
| | | private String lspzdm; |
| | | |
| | | @Column(name = "lssl", length = 40) |
| | | @PropertyDef(label = "ç²®é£æ°é") |
| | | private Double lssl; |
| | | |
| | | @Column(name = "qmxsfdb", length = 40) |
| | | @PropertyDef(label = "仿¿æ°å¯æ§æ¯å¦è¾¾æ ") |
| | | private String qmxsfdb; |
| | | |
| | | @Column(name = "qtmd", length = 40) |
| | | @PropertyDef(label = "æ°è°ç®ç") |
| | | private String qtmd; |
| | | |
| | | @Column(name = "mbfs", length = 40) |
| | | @PropertyDef(label = "ç²®å å¯éæ¹å¼") |
| | | private String mbfs; |
| | | |
| | | @Column(name = "sddqnd") |
| | | @PropertyDef(label = "è®¾å®æ°®æ°æµåº¦") |
| | | private Double sddqnd; |
| | | |
| | | @Column(name = "cqfs", length = 40) |
| | | @PropertyDef(label = "å
æ°æ¹å¼") |
| | | private String cqfs; |
| | | |
| | | @Column(name = "ljqtsj") |
| | | @PropertyDef(label = "累计æ°è°æ¶é´") |
| | | private Double ljqtsj; |
| | | |
| | | @Column(name = "wwzgz") |
| | | @PropertyDef(label = "æ°è°æé´å¤§æ°æ¸©åº¦æé«å¼") |
| | | private Double wwzgz; |
| | | |
| | | @Column(name = "wwzdz") |
| | | @PropertyDef(label = "æ°è°æé´å¤§æ°æ¸©åº¦æä½å¼") |
| | | private Double wwzdz; |
| | | |
| | | @Column(name = "wwpjz") |
| | | @PropertyDef(label = "æ°è°æé´å¤§æ°æ¸©åº¦å¹³åå¼") |
| | | private Double wwpjz; |
| | | |
| | | @Column(name = "cnwwzgz") |
| | | @PropertyDef(label = "æ°è°æé´ä»å
温度æé«å¼") |
| | | private Double cnwwzgz; |
| | | |
| | | @Column(name = "cnwwzdz") |
| | | @PropertyDef(label = "æ°è°æé´ä»å
温度æä½å¼") |
| | | private Double cnwwzdz; |
| | | |
| | | @Column(name = "cnwwpjz") |
| | | @PropertyDef(label = "æ°è°æé´ä»å
温度平åå¼") |
| | | private Double cnwwpjz; |
| | | |
| | | @Column(name = "cnwszgz") |
| | | @PropertyDef(label = "æ°è°æé´ä»å
湿度æé«å¼") |
| | | private Double cnwszgz; |
| | | |
| | | @Column(name = "cnwszdz") |
| | | @PropertyDef(label = "æ°è°æé´ä»å
湿度æä½å¼") |
| | | private Double cnwszdz; |
| | | |
| | | @Column(name = "cnwspjz") |
| | | @PropertyDef(label = "æ°è°æé´ä»å
湿度平åå¼") |
| | | private Double cnwspjz; |
| | | |
| | | @Column(name = "ldndzgz") |
| | | @PropertyDef(label = "æ°è°æé´ç²®å æ°®æ°æµåº¦æé«å¼") |
| | | private Double ldndzgz; |
| | | |
| | | @Column(name = "ldndzdz") |
| | | @PropertyDef(label = "æ°è°æé´ç²®å æ°®æ°æµåº¦æä½å¼") |
| | | private Double ldndzdz; |
| | | |
| | | @Column(name = "ldndpjz") |
| | | @PropertyDef(label = "æ°è°æé´ç²®å æ°®æ°æµåº¦å¹³åå¼") |
| | | private Double ldndpjz; |
| | | |
| | | @Column(name = "qtqlwzgz") |
| | | @PropertyDef(label = "æ°è°å粮温æé«å¼") |
| | | private Double qtqlwzgz; |
| | | |
| | | @Column(name = "qtqlwzdz") |
| | | @PropertyDef(label = "æ°è°å粮温æä½å¼") |
| | | private Double qtqlwzdz; |
| | | |
| | | @Column(name = "qtqlwpjz") |
| | | @PropertyDef(label = "æ°è°å粮温平å") |
| | | private Double qtqlwpjz; |
| | | |
| | | @Column(name = "qthlwzgz") |
| | | @PropertyDef(label = "æ°è°å粮温æé«å¼") |
| | | private Double qthlwzgz; |
| | | |
| | | @Column(name = "qthlwzdz") |
| | | @PropertyDef(label = "æ°è°å粮温æä½å¼") |
| | | private Double qthlwzdz; |
| | | |
| | | @Column(name = "qthlwpjz") |
| | | @PropertyDef(label = "æ°è°å粮温平å") |
| | | private Double qthlwpjz; |
| | | |
| | | @Column(name = "qtqsfzgz") |
| | | @PropertyDef(label = "æ°è°å粮水åæé«å¼") |
| | | private Double qtqsfzgz; |
| | | |
| | | @Column(name = "qtqsfzdz") |
| | | @PropertyDef(label = "æ°è°å粮水åæä½å¼") |
| | | private Double qtqsfzdz; |
| | | |
| | | @Column(name = "qtqsfpjz") |
| | | @PropertyDef(label = "æ°è°å粮水åå¹³å") |
| | | private Double qtqsfpjz; |
| | | |
| | | @Column(name = "qthsfzgz") |
| | | @PropertyDef(label = "æ°è°å粮水åæé«å¼") |
| | | private Double qthsfzgz; |
| | | |
| | | @Column(name = "qthsfzdz") |
| | | @PropertyDef(label = "æ°è°å粮水åæä½å¼") |
| | | private Double qthsfzdz; |
| | | |
| | | @Column(name = "qthsfpjz") |
| | | @PropertyDef(label = "æ°è°å粮水åå¹³å") |
| | | private Double qthsfpjz; |
| | | |
| | | @Column(name = "qtqchqk", length = 40) |
| | | @PropertyDef(label = "æ°è°åè«å®³æ
åµ") |
| | | private String qtqchqk; |
| | | |
| | | @Column(name = "qthchqk", length = 40) |
| | | @PropertyDef(label = "æ°è°åè«å®³æ
åµ") |
| | | private String qthchqk; |
| | | |
| | | @Column(name = "ycms", length = 40) |
| | | @PropertyDef(label = "æ°è°é´å¼å¸¸æ
åµæè¿°") |
| | | private String ycms; |
| | | |
| | | @Column(name = "czr", length = 40) |
| | | @PropertyDef(label = "æä½äºº") |
| | | private String czr; |
| | | |
| | | @Column(name = "bz", length = 40) |
| | | @PropertyDef(label = "夿³¨") |
| | | private String bz; |
| | | |
| | | @Column(name = "zhgxsj") |
| | | @PropertyDef(label = "æ´æ°æ¶é´") |
| | | private Date zhgxsj; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.service.repository; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.MAreationData; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/12/21 10:59 |
| | | */ |
| | | @Service |
| | | public interface AreationDataRepository extends JpaRepository<MAreationData, String> , JpaSpecificationExecutor<MAreationData> { |
| | | |
| | | /** |
| | | * è·åä¿¡æ¯ |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from MAreationData where startTime >=:start and startTime <:end order by id DESC") |
| | | List<MAreationData> getDataByTime(@Param("start") Date start, @Param("end") Date end); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.service.repository; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.ColdValley; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2025/6/05 14:46 |
| | | */ |
| | | @Service |
| | | public interface ColdValleyRepository extends JpaRepository<ColdValley, String>, JpaSpecificationExecutor<ColdValley> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.service.repository; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.DrugLog; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/12/25 19:39 |
| | | */ |
| | | @Service |
| | | public interface DrugLogRepository extends JpaRepository<DrugLog, String> , JpaSpecificationExecutor<DrugLog> { |
| | | |
| | | /** |
| | | * è·åä¿¡æ¯ |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from DrugLog where updateTime >=:start and updateTime <:end order by id DESC") |
| | | List<DrugLog> getDataByTime(@Param("start") Date start, @Param("end") Date end); |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.service.repository; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.Gas; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/12/21 10:36 |
| | | */ |
| | | @Service |
| | | public interface GasRepository extends JpaRepository<Gas, String>, JpaSpecificationExecutor<Gas> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.service.repository; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.Grain; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/12/21 10:36 |
| | | */ |
| | | @Service |
| | | public interface GrainRepository extends JpaRepository<Grain, String>, JpaSpecificationExecutor<Grain> { |
| | | |
| | | /** |
| | | * æ ¹æ®ç»ç»ç¼ç ååºåºç¼ç è·åä¿¡æ¯ |
| | | * |
| | | * @param companyId |
| | | * @param depotId |
| | | * @return |
| | | */ |
| | | @Query("from Grain where companyId =:companyId and depotId =:depotId order by batchId DESC") |
| | | List<Grain> listGrain(@Param("companyId") String companyId, @Param("depotId") String depotId); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.service.repository; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.InoutDepotRecord; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2025/06/05 10:36 |
| | | */ |
| | | @Service |
| | | public interface InoutDepotRecordRepository extends JpaRepository<InoutDepotRecord, String>, JpaSpecificationExecutor<InoutDepotRecord> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.service.repository; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.N2Filling; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2025/6/05 14:46 |
| | | */ |
| | | @Service |
| | | public interface N2FillingRepository extends JpaRepository<N2Filling, String>, JpaSpecificationExecutor<N2Filling> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.service.repository; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.MQuality; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | import org.springframework.stereotype.Service; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/12/02 16:33 |
| | | */ |
| | | @Service |
| | | public interface QualityManageRepository extends JpaRepository<MQuality, String>, JpaSpecificationExecutor<MQuality> { |
| | | |
| | | /** |
| | | * æ ¹æ®ç»ç»ç¼ç åä»åºç¼ç è·åä¿¡æ¯ |
| | | * |
| | | * @param companyId |
| | | * @param depotId |
| | | * @return |
| | | */ |
| | | @Query("from MQuality where companyId =:companyId and depotId =:depotId order by time DESC") |
| | | List<MQuality> getDataByDepotId(@Param("companyId") String companyId, @Param("depotId") String depotId); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys; |
| | | |
| | | import com.fzzy.igds.dzhwk.constant.RedisConst; |
| | | import com.fzzy.igds.dzhwk.domain.DicSysConf; |
| | | import com.fzzy.igds.sys.repository.SysConfRepository; |
| | | import com.fzzy.igds.util.ContextUtil; |
| | | import com.ruoyi.common.core.redis.RedisCache; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * @Description ç³»ç»é
ç½®serviceå± |
| | | * @Author CZT |
| | | * @Date 2024/11/20 19:01 |
| | | */ |
| | | @Slf4j |
| | | @Service("sys.sysConfService") |
| | | public class SysConfService { |
| | | |
| | | @Resource |
| | | private SysConfRepository sysConfRepository; |
| | | @Resource |
| | | private RedisCache redisCache; |
| | | |
| | | /** |
| | | * æ ¹æ®ç»ç»ç¼ç è·åç³»ç»åæ°é
ç½®ä¿¡æ¯ |
| | | * @param companyId |
| | | * @return |
| | | */ |
| | | public DicSysConf getSysConf(String companyId) { |
| | | |
| | | if(StringUtils.isEmpty(companyId)){ |
| | | companyId = ContextUtil.getCompanyId(); |
| | | } |
| | | return sysConfRepository.getSysConf(companyId); |
| | | } |
| | | |
| | | /** |
| | | * æ´æ°ç³»ç»é
ç½®ä¿¡æ¯ |
| | | * @param data |
| | | */ |
| | | public void saveSysConf(DicSysConf data) { |
| | | if(StringUtils.isEmpty(data.getCompanyId())){ |
| | | data.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | | sysConfRepository.save(data); |
| | | } |
| | | |
| | | /** |
| | | * å·æ°ç³»ç»é
ç½®ç¼å |
| | | * @param companyId |
| | | */ |
| | | public void flushCacheSysConf(String companyId) { |
| | | if(StringUtils.isEmpty(companyId)){ |
| | | companyId = ContextUtil.getCompanyId(); |
| | | } |
| | | DicSysConf sysConf = sysConfRepository.getSysConf(companyId); |
| | | this.setCacheSysConf(companyId, sysConf); |
| | | } |
| | | |
| | | /** |
| | | * 设置系ç»é
ç½®ç¼å |
| | | * @param companyId |
| | | * @param data |
| | | */ |
| | | public void setCacheSysConf(String companyId, DicSysConf data) { |
| | | String key = RedisConst.buildKey(companyId, RedisConst.KEY_SYS_CONF); |
| | | redisCache.setCacheObject(key, data); |
| | | } |
| | | |
| | | /** |
| | | * è·åç³»ç»é
ç½®ç¼å |
| | | * @param companyId |
| | | * @return |
| | | */ |
| | | public DicSysConf getCacheSysConf(String companyId) { |
| | | String key = RedisConst.buildKey(companyId, RedisConst.KEY_SYS_CONF); |
| | | DicSysConf data = (DicSysConf) redisCache.getCacheObject(key); |
| | | if (null == data) { |
| | | log.error("没æè·åå°å½åç»ç»={}çç³»ç»é
置系ç»ï¼åé»è®¤å¼ã", companyId); |
| | | return new DicSysConf(companyId); |
| | | } |
| | | return data; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys.repository; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.DicSysConf; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * @Description SysConf JPAæä¹
å± |
| | | * @Author CZT |
| | | * @Date 2024/11/19 18:36 |
| | | */ |
| | | @Service |
| | | public interface SysConfRepository extends JpaRepository<DicSysConf, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®ç»ç»ç¼ç è·åç³»ç»é
ç½®ä¿¡æ¯ |
| | | * @param companyId |
| | | * @return |
| | | */ |
| | | @Query("from DicSysConf where companyId =:companyId ") |
| | | DicSysConf getSysConf(@Param("companyId") String companyId); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| | | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| | | <modelVersion>4.0.0</modelVersion> |
| | | |
| | | <groupId>com.fzzy</groupId> |
| | | <artifactId>igds-dzhwk-inte</artifactId> |
| | | <version>${igds.dzhwk.version}</version> |
| | | |
| | | <parent> |
| | | <artifactId>igds-dzhwk-parent</artifactId> |
| | | <groupId>com.fzzy</groupId> |
| | | <version>6.0.0</version> |
| | | <relativePath>../igds-dzhwk-parent/pom.xml</relativePath> |
| | | </parent> |
| | | |
| | | <description> |
| | | æ¥å£æ¨¡å |
| | | </description> |
| | | |
| | | <dependencies> |
| | | <dependency> |
| | | <groupId>com.fzzy</groupId> |
| | | <artifactId>igds-dzhwk-core</artifactId> |
| | | <version>${igds.dzhwk.version}</version> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | <build> |
| | | <resources> |
| | | <resource> |
| | | <directory>src/main/resources</directory> |
| | | <includes> |
| | | <include>**/*.xml</include> |
| | | <include>**/*.properties</include> |
| | | </includes> |
| | | <filtering>false</filtering> |
| | | </resource> |
| | | <resource> |
| | | <directory>src/main/java</directory> |
| | | <includes> |
| | | <include>**/*.xml</include> |
| | | </includes> |
| | | </resource> |
| | | </resources> |
| | | </build> |
| | | |
| | | </project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1; |
| | | |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1ReqDto; |
| | | import org.springframework.beans.BeansException; |
| | | import org.springframework.context.ApplicationContext; |
| | | import org.springframework.context.ApplicationContextAware; |
| | | import org.springframework.scheduling.annotation.Async; |
| | | import org.springframework.stereotype.Component; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description è§£ææ°æ®æ¥å£åå |
| | | * @Author CZT |
| | | * @Date 2025/6/04 16:10 |
| | | */ |
| | | @Component |
| | | public class ApiV1Manager implements ApplicationContextAware { |
| | | |
| | | private static Map<String, ApiV1Service> serviceMap; |
| | | |
| | | @Override |
| | | public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { |
| | | Map<String, ApiV1Service> map = applicationContext |
| | | .getBeansOfType(ApiV1Service.class); |
| | | serviceMap = new HashMap<>(); |
| | | for (String key : map.keySet()) { |
| | | serviceMap.put(map.get(key).getInterfaceId(), map.get(key)); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * ä¸å¡æ§è¡å
¥å£ |
| | | * @param |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | @Async |
| | | public void analysis(String interfaceId, String dataStr, ApiV1ReqDto reqDto){ |
| | | |
| | | ApiV1Service service = serviceMap.get(interfaceId); |
| | | if(null == service){ |
| | | return; |
| | | } |
| | | service.analysis(dataStr, reqDto); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.fzzy.igds.dzhwk.domain.DicSysConf; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1ReqDto; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1RespDto; |
| | | import com.fzzy.igds.dzhwk.v1.util.ApiV1Utils; |
| | | import com.fzzy.igds.sys.SysConfService; |
| | | import com.fzzy.igds.util.ContextUtil; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.http.HttpUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.time.DateFormatUtils; |
| | | import org.springframework.stereotype.Component; |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description é墿°æ®æ¥å£æå¡ |
| | | * @Author CZT |
| | | * @Date 2025/6/04 16:10 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class ApiV1Server { |
| | | |
| | | @Resource |
| | | private SysConfService confService; |
| | | @Resource |
| | | private ApiV1Manager apiManager; |
| | | |
| | | /** |
| | | * æåæ°æ® |
| | | * @param interfaceId æ¥å£ç¼ç |
| | | * @param startTime èµ·å§æ¶é´ |
| | | * @param endTime æªæ¢æ¶é´ |
| | | * @return |
| | | */ |
| | | public String pullData(String interfaceId, Date startTime, Date endTime) { |
| | | |
| | | if (StringUtils.isEmpty(interfaceId)) { |
| | | log.error("æ¥å£ç¼ç ä¸ºç©ºï¼æ¥å£ç¼ç ={}", interfaceId); |
| | | return "æ¥å£ç¼ç 为空ï¼"; |
| | | } |
| | | if (null == startTime || null == endTime) { |
| | | log.error("è¯·æ±æ¶é´æ®µä¸ºç©ºï¼startTime={}, endTime={}", startTime, endTime); |
| | | return "è¯·æ±æ¶é´æ®µä¸ºç©ºï¼"; |
| | | } |
| | | DicSysConf sysConf = confService.getCacheSysConf(ContextUtil.getDefaultCompanyId()); |
| | | if (null == sysConf) { |
| | | log.error("æªé
置系ç»é
置信æ¯"); |
| | | return "æªé
置系ç»é
置信æ¯ï¼"; |
| | | } |
| | | if (StringUtils.isEmpty(sysConf.getHwkApiPath())) { |
| | | log.error("æªé
ç½®æ¥å£è¯·æ±å°åï¼è¯·æ±å°å={}", sysConf.getHwkApiPath()); |
| | | return "æªé
ç½®æ¥å£è¯·æ±å°åï¼"; |
| | | } |
| | | |
| | | //ç»è£
è¯·æ±æ°æ® |
| | | ApiV1ReqDto reqDto = new ApiV1ReqDto(); |
| | | reqDto.setInterfaceId(interfaceId); |
| | | reqDto.setDeptId(""); |
| | | reqDto.setDeptId(""); |
| | | reqDto.setReqDate(DateFormatUtils.format(new Date(), "yyyy-MM-dd HH:mm:ss")); |
| | | reqDto.setStartTime(DateFormatUtils.format(startTime, "yyyy-MM-dd HH:mm:ss")); |
| | | reqDto.setEndTime(DateFormatUtils.format(endTime, "yyyy-MM-dd HH:mm:ss")); |
| | | String jsonString = JSON.toJSONString(reqDto); |
| | | |
| | | //POST请æ±è·åæ°æ® |
| | | String result = HttpUtils.sendPost(sysConf.getHwkApiPath(), jsonString); |
| | | |
| | | log.info("è¯·æ±æ¥å£ï¼è¿åæ°æ®={}", result); |
| | | if(StringUtils.isEmpty(result)){ |
| | | log.error("è¯·æ±æ¥å£å¤±è´¥ï¼è¿åæ°æ®={}", result); |
| | | return "è¯·æ±æ¥å£å¤±è´¥ï¼"; |
| | | } |
| | | //è§£æè¿åæ°æ® |
| | | ApiV1RespDto respDto = JSON.parseObject(result, ApiV1RespDto.class); |
| | | if (null == respDto) { |
| | | log.error("è¯·æ±æ¥å£å¤±è´¥ï¼è¿åæ°æ®={}", respDto); |
| | | return "è¯·æ±æ¥å£å¤±è´¥ï¼"; |
| | | } |
| | | if(!"200".equals(respDto.getCode())){ |
| | | log.error("è¯·æ±æ¥å£å¤±è´¥ï¼è¿åæ°æ®={}", respDto.getMsg()); |
| | | return respDto.getMsg(); |
| | | } |
| | | //è§£å¯æ¥æ |
| | | String dataStr = ApiV1Utils.decrypt(respDto.getData(), null); |
| | | log.info("è¯·æ±æ¥å£ï¼è¿åæ°æ®,è§£å¯å={}", dataStr); |
| | | if (dataStr == null) { |
| | | log.error("è§£å¯åæ°æ®ä¸ºç©ºï¼è§£å¯æ°æ®={}", dataStr); |
| | | return "è§£å¯åæ°æ®ä¸ºç©ºï¼"; |
| | | } |
| | | try { |
| | | //弿¥è§£ææ°æ® |
| | | apiManager.analysis(interfaceId, dataStr, reqDto); |
| | | return null; |
| | | } catch (Exception e) { |
| | | log.error("é墿°æ®æ¥å£æå¡å¼å¸¸", e); |
| | | return "é墿°æ®æ¥å£æå¡å¼å¸¸ï¼"; |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1; |
| | | |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1ReqDto; |
| | | |
| | | /** |
| | | * @Description æ°æ®æ¥å£V1è§£æåå |
| | | * @Author CZT |
| | | * @Date 2025/6/04 16:10 |
| | | */ |
| | | public interface ApiV1Service { |
| | | |
| | | /** |
| | | * è·åæ¥å£ç¼ç |
| | | * @return |
| | | */ |
| | | public String getInterfaceId(); |
| | | |
| | | /** |
| | | * è§£ææ°æ® |
| | | * @param dataStr |
| | | */ |
| | | public void analysis(String dataStr, ApiV1ReqDto reqDto); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.dto; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Description ä»å¨åä½ä¿¡æ¯ |
| | | * @Author CZT |
| | | * @Date 2025/02/24 09:35 |
| | | */ |
| | | @Data |
| | | public class ApiV1Data1001 { |
| | | |
| | | @PropertyDef(label = "åä½ä»£ç ") |
| | | private String dwdm; |
| | | |
| | | @PropertyDef(label = "åä½åç§°") |
| | | private String dwmc; |
| | | |
| | | @PropertyDef(label = "åä½ç±»å") |
| | | private String dwlx; |
| | | |
| | | @PropertyDef(label = "æ³¨åæ¥æ") |
| | | private String zcrq; |
| | | |
| | | @PropertyDef(label = "注åèµæ¬") |
| | | private Double zczb; |
| | | |
| | | @PropertyDef(label = "èµäº§æ»é¢") |
| | | private Double zcze; |
| | | |
| | | @PropertyDef(label = "æ³å®ä»£è¡¨äºº") |
| | | private String fddbr; |
| | | |
| | | @PropertyDef(label = "æ³äººèº«ä»½è¯å·") |
| | | private String frsfzh; |
| | | |
| | | @PropertyDef(label = "æ³äººèç³»æ¹å¼") |
| | | private String frlxfs; |
| | | |
| | | @PropertyDef(label = "ä¼ä¸è系人") |
| | | private String qylxr; |
| | | |
| | | @PropertyDef(label = "åå
¬çµè¯") |
| | | private String bgdh; |
| | | |
| | | @PropertyDef(label = "注åå°å") |
| | | private String zcdz; |
| | | |
| | | @PropertyDef(label = "çµåé®ç®±") |
| | | private String dzyx; |
| | | |
| | | @PropertyDef(label = "ä¼ä¸å®æ¹ç½ç«å°å") |
| | | private String qygfwzdz; |
| | | |
| | | @PropertyDef(label = "ä¼ çå·ç ") |
| | | private String czhm; |
| | | |
| | | @PropertyDef(label = "鮿¿ç¼ç ") |
| | | private String yzbm; |
| | | |
| | | @PropertyDef(label = "è¡æ¿åºå代ç ") |
| | | private String xzqhdm; |
| | | |
| | | @PropertyDef(label = "åºåºæ°") |
| | | private Integer kqs; |
| | | |
| | | @PropertyDef(label = "仿¿æ°") |
| | | private Integer cfs; |
| | | |
| | | @PropertyDef(label = "æ²¹ç½æ°") |
| | | private Integer ygs; |
| | | |
| | | @PropertyDef(label = "ç»åº¦") |
| | | private Double jd; |
| | | |
| | | @PropertyDef(label = "纬度") |
| | | private Double wd; |
| | | |
| | | @PropertyDef(label = "åä½ç¶æ") |
| | | private String dwzt; |
| | | |
| | | @PropertyDef(label = "æ´æ°æ¶é´") |
| | | private String zhgxsj; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.dto; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Description åºåºä¿¡æ¯ |
| | | * @Author CZT |
| | | * @Date 2025/02/24 09:35 |
| | | */ |
| | | @Data |
| | | public class ApiV1Data1002 { |
| | | |
| | | @PropertyDef(label = "åºåºä»£ç ") |
| | | private String kqdm; |
| | | |
| | | @PropertyDef(label = "ç»ä¸åºåºç¼ç ") |
| | | private String tykqbm; |
| | | |
| | | @PropertyDef(label = "åä½ä»£ç ") |
| | | private String dwdm; |
| | | |
| | | @PropertyDef(label = "åºåºåç§°") |
| | | private String kqmc; |
| | | |
| | | @PropertyDef(label = "åºåºå°å") |
| | | private String kqdz; |
| | | |
| | | @PropertyDef(label = "è¡æ¿åºå代ç ") |
| | | private String xzqhdm; |
| | | |
| | | @PropertyDef(label = "åºåºäº§æ", description = "1ï¼ èªæ 2ï¼ç§èµ 3ï¼å
±æ 4ï¼æ··å 9ï¼å
¶ä»") |
| | | private String kqcq; |
| | | |
| | | @PropertyDef(label = "ææä»å®¹") |
| | | private Double yxcr; |
| | | |
| | | @PropertyDef(label = "ææç½å®¹") |
| | | private Double yxgr; |
| | | |
| | | @PropertyDef(label = "å å°é¢ç§¯") |
| | | private Double zdmj; |
| | | |
| | | @PropertyDef(label = "仿¿æ°") |
| | | private Integer cfs; |
| | | |
| | | @PropertyDef(label = "æ²¹ç½æ°") |
| | | private Integer ygs; |
| | | |
| | | @PropertyDef(label = "åºåºç»åº¦") |
| | | private Double jd; |
| | | |
| | | @PropertyDef(label = "åºåºçº¬åº¦") |
| | | private Double wd; |
| | | |
| | | @PropertyDef(label = "åºåºç¶æ", description = "1:æ£å¸¸ï¼é»è®¤ï¼ 2:éåºå¨å¤ç²®æ¿å¨") |
| | | private String kqzt; |
| | | |
| | | @PropertyDef(label = "æåæ´æ°æ¶é´") |
| | | private String zhgxsj; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.dto; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Description 仿¿ä¿¡æ¯ |
| | | * @Author CZT |
| | | * @Date 2025/02/24 09:35 |
| | | */ |
| | | @Data |
| | | public class ApiV1Data1003 { |
| | | |
| | | @PropertyDef(label = "仿¿ç¼ç ") |
| | | private String cfdm; |
| | | |
| | | @PropertyDef(label = "仿¿åç§°") |
| | | private String cfmc; |
| | | |
| | | @PropertyDef(label = "仿¿ç±»å代ç ") |
| | | private String cflxdm; |
| | | |
| | | @PropertyDef(label = "交ä»ä½¿ç¨æ¥æ") |
| | | private String jfsyrq; |
| | | |
| | | @PropertyDef(label = "å°é¢ç»æ") |
| | | private String dmjg; |
| | | |
| | | @PropertyDef(label = "å¢ä½ç»æ") |
| | | private String qtjg; |
| | | |
| | | @PropertyDef(label = "å±é¡¶ç»æ") |
| | | private String fdjg; |
| | | |
| | | @PropertyDef(label = "屿¶ç»æ") |
| | | private String fjjg; |
| | | |
| | | @PropertyDef(label = "设计å¨é", description = "åä½ï¼å¨") |
| | | private Double sjcr; |
| | | |
| | | @PropertyDef(label = "仿¿é«åº¦", description = "åä½ï¼ç±³") |
| | | private Double cwg; |
| | | |
| | | @PropertyDef(label = "仿¿é¿åº¦", description = "åä½ï¼ç±³") |
| | | private Double cwc; |
| | | |
| | | @PropertyDef(label = "仿¿å®½åº¦", description = "åä½ï¼ç±³") |
| | | private Double cwk; |
| | | |
| | | @PropertyDef(label = "ä¿ç®¡å") |
| | | private String bgr; |
| | | |
| | | @PropertyDef(label = "ç»åº¦") |
| | | private Double jd; |
| | | |
| | | @PropertyDef(label = "纬度") |
| | | private Double wd; |
| | | |
| | | @PropertyDef(label = "æ´æ°æ¶é´") |
| | | private String zhgxsj; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.dto; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Description å»é´ä¿¡æ¯ |
| | | * @Author CZT |
| | | * @Date 2025/02/24 09:35 |
| | | */ |
| | | @Data |
| | | public class ApiV1Data1004 { |
| | | |
| | | @PropertyDef(label = "å»é´ä»£ç ") |
| | | private String ajdh; |
| | | |
| | | @PropertyDef(label = "å»é´åç§°") |
| | | private String ajmc; |
| | | |
| | | @PropertyDef(label = "仿¿(ææ²¹ç½)ç¼ç ") |
| | | private String cfbh; |
| | | |
| | | @PropertyDef(label = "å»é´é¿åº¦") |
| | | private double ajcd; |
| | | |
| | | @PropertyDef(label = "å»é´å®½åº¦") |
| | | private double ajkd; |
| | | |
| | | @PropertyDef(label = "å»é´é«åº¦") |
| | | private double ajgd; |
| | | |
| | | @PropertyDef(label = "å»é´è®¾è®¡ä»å®¹") |
| | | private double ajsjcr; |
| | | |
| | | @PropertyDef(label = "å»é´å¯ç¨æ¥æ") |
| | | private String ajqyrq; |
| | | |
| | | @PropertyDef(label = "å»é´ç¶æ") |
| | | private String ajzt; |
| | | |
| | | @PropertyDef(label = "æåæ´æ°æ¶é´") |
| | | private String zhgxsj; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.dto; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Description è´§ä½ä¿¡æ¯ |
| | | * @Author CZT |
| | | * @Date 2025/02/24 09:35 |
| | | */ |
| | | @Data |
| | | public class ApiV1Data1005 { |
| | | |
| | | @PropertyDef(label = "è´§ä½ä»£ç " ) |
| | | private String hwdm; |
| | | |
| | | @PropertyDef(label = "è´§ä½åç§°" ) |
| | | private String hwmc; |
| | | |
| | | @PropertyDef(label = "å»é´ä»£ç " ) |
| | | private String ajdm; |
| | | |
| | | @PropertyDef(label = "è´§ä½å¯ç¨æ¥æ" ) |
| | | private String hwqyrq; |
| | | |
| | | @PropertyDef(label = "è´§ä½å®¹é" ) |
| | | private Double hwrl; |
| | | |
| | | @PropertyDef(label = "ä¿ç®¡åä½" ) |
| | | private String bgdw; |
| | | |
| | | @PropertyDef(label = "ä¿ç®¡å" ) |
| | | private String bgy; |
| | | |
| | | @PropertyDef(label = "ç²®é£åç§ä»£ç ") |
| | | private String lspzdm; |
| | | |
| | | @PropertyDef(label = "ç²®é£æ§è´¨ä»£ç ") |
| | | private String lsxzdm; |
| | | |
| | | @PropertyDef(label = "ç²®é£ç级代ç ") |
| | | private String lsdjdm; |
| | | |
| | | @PropertyDef(label = "æ¶è·å¹´åº¦") |
| | | private String shnd; |
| | | |
| | | @PropertyDef(label = "å½å«") |
| | | private String gb; |
| | | |
| | | @PropertyDef(label = "产å°") |
| | | private String cd; |
| | | |
| | | @PropertyDef(label = "è´§ä½(æ²¹ç½)ç¶æ") |
| | | private String hwzt; |
| | | |
| | | @PropertyDef(label = "å
¥ä»æ¶é´") |
| | | private String rcsj; |
| | | |
| | | @PropertyDef(label = "å®é
æ°é(å
¬æ¤)") |
| | | private double sjsl; |
| | | |
| | | @PropertyDef(label = "æåæ´æ°æ¶é´" ) |
| | | private String zhgxsj; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.dto; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * æ¥å£è¡¨-ç²®æ
|
| | | */ |
| | | @Data |
| | | public class ApiV1Data2001 { |
| | | |
| | | @PropertyDef(label = "æ£æµåå·") |
| | | private String jcdj; |
| | | |
| | | @PropertyDef(label = "æ£æµæ¶é´") |
| | | private String jcsj; |
| | | |
| | | @PropertyDef(label = "ä»åºç¼ç ") |
| | | private String hwdm; |
| | | |
| | | @PropertyDef(label = "仿¿å¤æ¸©") |
| | | private Double cfww; |
| | | |
| | | @PropertyDef(label = "仿¿å¤æ¹¿") |
| | | private Double cfws; |
| | | |
| | | @PropertyDef(label = "仿¿å
温") |
| | | private Double cfnw; |
| | | |
| | | @PropertyDef(label = "仿¿å
湿") |
| | | private Double cfns; |
| | | |
| | | @PropertyDef(label = "ç²®é£æé«æ¸©") |
| | | private Double lszgw; |
| | | |
| | | @PropertyDef(label = "ç²®é£æä½æ¸©") |
| | | private Double lszdw; |
| | | |
| | | @PropertyDef(label = "ç²®é£å¹³å温") |
| | | private Double lspjw; |
| | | |
| | | @PropertyDef(label = "ç²®é£æ¸©åº¦å¼ éå") |
| | | private String lswdzjh; |
| | | |
| | | @PropertyDef(label = "天æ°") |
| | | private String weather; |
| | | |
| | | @PropertyDef(label = "æ£æµäºº") |
| | | private String jcr; |
| | | |
| | | @PropertyDef(label = "夿³¨ä¿¡æ¯") |
| | | private String remarks; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.dto; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * æ¥å£è¡¨-æ°ä½ |
| | | */ |
| | | @Data |
| | | public class ApiV1Data2002 { |
| | | |
| | | @PropertyDef(label = "æ£æµåå·") |
| | | private String qtndjcdh; |
| | | |
| | | @PropertyDef(label = "æ£æµæ¶é´") |
| | | private String jcsj; |
| | | |
| | | @PropertyDef(label = "ä»åºç¼ç ") |
| | | private String hwdm; |
| | | |
| | | @PropertyDef(label = "æ°§æ°å«éå¼éå") |
| | | private String yqhlzjh; |
| | | |
| | | @PropertyDef(label = "äºæ°§å碳å«éå¼éå") |
| | | private String eyhthlzjh; |
| | | |
| | | @PropertyDef(label = "æ°§æ°å«éå¼éå") |
| | | private String lhqndzjh; |
| | | |
| | | @PropertyDef(label = "æ°®æ°å«éå¼éå") |
| | | private String dqndzjh; |
| | | |
| | | @PropertyDef(label = "ä½ä¸ç±»å") |
| | | private Integer zylx; |
| | | |
| | | @PropertyDef(label = "æ´æ°æ¶é´") |
| | | private String zhgxsj; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.dto; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * æ¥å£è¡¨-è´¨æ£æ°æ®è¡¨ |
| | | */ |
| | | @Data |
| | | public class ApiV1Data2003 { |
| | | |
| | | @PropertyDef(label = "è´¨æ£æ¥ååå·" ) |
| | | private String zjbgdh; |
| | | |
| | | @PropertyDef(label = "è´§ä½ä»£ç " ) |
| | | private String hwdm; |
| | | |
| | | @PropertyDef(label = "ç²®é£åç§ä»£ç " ) |
| | | private String lspzdm; |
| | | |
| | | @PropertyDef(label = "ç²®é£ç级代ç " ) |
| | | private String lsdjdm; |
| | | |
| | | @PropertyDef(label = "å
¥åºæ¥æ" ) |
| | | private String rkrq; |
| | | |
| | | @PropertyDef(label = "æ£éªæ¶é´" ) |
| | | private String jysj; |
| | | |
| | | @PropertyDef(label = "æ£éªåä½" ) |
| | | private String jydw; |
| | | |
| | | @PropertyDef(label = "æ£éªç±»å«" ) |
| | | private String jylb; |
| | | |
| | | @PropertyDef(label = "æ£éªäºº" ) |
| | | private String jyr; |
| | | |
| | | @PropertyDef(label = "æ£éªä¾æ®" ) |
| | | private String jyyj; |
| | | |
| | | @PropertyDef(label = "ææ ç±»å«" ) |
| | | private String zblb; |
| | | |
| | | @PropertyDef(label = "æ£éªé¡¹ç®" ) |
| | | private String jyxm; |
| | | |
| | | @PropertyDef(label = "æ£éªé¡¹ç®å¼" ) |
| | | private String jyxmz; |
| | | |
| | | @PropertyDef(label = "ææ ç»æå¤å®" ) |
| | | private String zbjgpd; |
| | | |
| | | @PropertyDef(label = "é£åå®å
¨ææ æ¯å¦åæ ¼" ) |
| | | private String spaqzbsfhg; |
| | | |
| | | @PropertyDef(label = "æ¥ååºå
·æ¶é´" ) |
| | | private String bgcjsj; |
| | | |
| | | @PropertyDef(label = "å®¡æ ¸äººå§å" ) |
| | | private String shrxm; |
| | | |
| | | @PropertyDef(label = "æ¦æ ·åç¼å·" ) |
| | | private String qydbh; |
| | | |
| | | @PropertyDef(label = "æ¦æ ·æ¶é´" ) |
| | | private String qysj; |
| | | |
| | | @PropertyDef(label = "æ¦æ ·åºå" ) |
| | | private String qyqy; |
| | | |
| | | @PropertyDef(label = "æ¦æ ·äººå§å" ) |
| | | private String qyrxm; |
| | | |
| | | @PropertyDef(label = "çç£äººå§å" ) |
| | | private String jdrxm; |
| | | |
| | | @PropertyDef(label = "æ ·åç¼å·" ) |
| | | private String ypbh; |
| | | |
| | | @PropertyDef(label = "æ ·åæ°é" ) |
| | | private Double ypsl; |
| | | |
| | | @PropertyDef(label = "代表æ°é" ) |
| | | private Double dbsl; |
| | | |
| | | @PropertyDef(label = "æ ·åç级" ) |
| | | private String ypdj; |
| | | |
| | | @PropertyDef(label = "æ¯å¦æ£å¸¸åå¨å¹´é" ) |
| | | private String sfzcccnx; |
| | | |
| | | @PropertyDef(label = "夿³¨" ) |
| | | private String bz; |
| | | |
| | | @PropertyDef(label = "æåæ´æ°æ¶é´" ) |
| | | private String zhgxsj; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.dto; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * æ¥å£è¡¨-è¿åºä»è®°å½ |
| | | */ |
| | | @Data |
| | | public class ApiV1Data2004 { |
| | | |
| | | @PropertyDef(label = "åå·" ) |
| | | private String jccdh; |
| | | |
| | | @PropertyDef(label = "å»é´ä»£ç " ) |
| | | private String ajdm; |
| | | |
| | | @PropertyDef(label = "è¿åºä»äººå" ) |
| | | private String jcry; |
| | | |
| | | @PropertyDef(label = "è¿ä»æ¶é´" ) |
| | | private String jcsj; |
| | | |
| | | @PropertyDef(label = "åºä»æ¶é´" ) |
| | | private String ccsj; |
| | | |
| | | @PropertyDef(label = "å
¥ä»ç®ç" ) |
| | | private String jcmd; |
| | | |
| | | @PropertyDef(label = "å
¥ä»è¯´æ" ) |
| | | private String jcsm; |
| | | |
| | | @PropertyDef(label = "æ´æ°æ¶é´" ) |
| | | private String zhgxsj; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.dto; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * æ¥å£è¡¨-éé£ä½ä¸ |
| | | * |
| | | */ |
| | | @Data |
| | | public class ApiV1Data2005 { |
| | | |
| | | @PropertyDef(label = "éé£ä½ä¸åå·" ) |
| | | private String tfzydh; |
| | | |
| | | @PropertyDef(label = "é飿¥æ" ) |
| | | private String tfrq; |
| | | |
| | | @PropertyDef(label = "å»é´ä»£ç " ) |
| | | private String ajdm; |
| | | |
| | | @PropertyDef(label = "éé£ç®ç" ) |
| | | private String tfmd; |
| | | |
| | | @PropertyDef(label = "éé£ç±»å" ) |
| | | private String tflx; |
| | | |
| | | @PropertyDef(label = "é飿¹å¼" ) |
| | | private String sffs; |
| | | |
| | | @PropertyDef(label = "ä½ä¸æ¶æ°æ¸©" ) |
| | | private Double zysqw; |
| | | |
| | | @PropertyDef(label = "ä½ä¸æ¶æ°æ¹¿" ) |
| | | private Double zysqs; |
| | | |
| | | @PropertyDef(label = "é飿¶é¿" ) |
| | | private Double tfsc; |
| | | |
| | | @PropertyDef(label = "ä½ä¸åå¹³å粮温" ) |
| | | private Double zyqpjlw; |
| | | |
| | | @PropertyDef(label = "ç»æåå¹³å粮温" ) |
| | | private Double jshpjlw; |
| | | |
| | | @PropertyDef(label = "ä½ä¸å平忰´å" ) |
| | | private Double zyqpjsf; |
| | | |
| | | @PropertyDef(label = "ç»æå平忰´å" ) |
| | | private Double zyhpjsf; |
| | | |
| | | @PropertyDef(label = "éé£ä½ä¸è´è´£äºº" ) |
| | | private String tfzyfzr; |
| | | |
| | | @PropertyDef(label = "éé£ä½ä¸äººå" ) |
| | | private String tfzyry; |
| | | |
| | | @PropertyDef(label = "æåæ´æ°æ¶é´" ) |
| | | private String zhgxsj; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.dto; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * æ¥å£è¡¨-çè¸ä½ä¸ |
| | | * |
| | | */ |
| | | @Data |
| | | public class ApiV1Data2006 { |
| | | |
| | | @PropertyDef(label = "çè¸ä½ä¸åå·") |
| | | private String xzzydh; |
| | | |
| | | @PropertyDef(label = "å»é´ä»£ç ") |
| | | private String ajdm; |
| | | |
| | | @PropertyDef(label = "çè¸å¼å§æ¶é´") |
| | | private String xzkssj; |
| | | |
| | | @PropertyDef(label = "çè¸ç»ææ¶é´") |
| | | private String xzjssj; |
| | | |
| | | @PropertyDef(label = "å°ä»åçè¸çæ¬¡æ° ç¬¬å æ¬¡çè¸") |
| | | private Integer djcxz; |
| | | |
| | | @PropertyDef(label = "常è§çè¸æ¹å¼") |
| | | private String cgxzfs; |
| | | |
| | | @PropertyDef(label = "ç¯æµçè¸æ¹å¼") |
| | | private String hlxzfs; |
| | | |
| | | @PropertyDef(label = "è¯ååç§°") |
| | | private String yjmc; |
| | | |
| | | @PropertyDef(label = "åå") |
| | | private String jx; |
| | | |
| | | @PropertyDef(label = "æµåº¦") |
| | | private Double nd; |
| | | |
| | | @PropertyDef(label = "æ»ç¨è¯é") |
| | | private Double zyyl; |
| | | |
| | | @PropertyDef(label = "æ½è¯æ¹æ³") |
| | | private String syff; |
| | | |
| | | @PropertyDef(label = "è¾
婿½è¯æªæ½") |
| | | private String fzsycs; |
| | | |
| | | @PropertyDef(label = "空æ°å¼å¸å¨åå®å
¨æ£æ¥æ
åµ") |
| | | private String kqhqjaqjcqk; |
| | | |
| | | @PropertyDef(label = "ç£·åæ°¢æ£æµè£
ç½®è°è¯æ
åµ") |
| | | private String lhqjczztsqk; |
| | | |
| | | @PropertyDef(label = "æ°§æ°æ·±åº¦æ£æµè£
ç½®è°è¯æ
åµ") |
| | | private String yqsdjczztsqk; |
| | | |
| | | @PropertyDef(label = "ç£·åæ°¢æ¥è¦ä»ªå®å
¨æ£æ¥") |
| | | private String lhqbjyaqjc; |
| | | |
| | | @PropertyDef(label = "æ°§æ°æ¥è¦ä»ªå®å
¨æ£æ¥") |
| | | private String yqbjyaqjc; |
| | | |
| | | @PropertyDef(label = "è¡¥è¯åä»å
ç£·åæ°¢æµåº¦") |
| | | private Double byqcnlhqnd; |
| | | |
| | | @PropertyDef(label = "ç£·åæ°¢æµåº¦åä½",description = "1ï¼g/m³ (é»è®¤) 2ï¼ppm 3:ml/m³ 4ï¼%VOLã") |
| | | private String nlhqnddw; |
| | | |
| | | @PropertyDef(label = "ç®æ æµåº¦") |
| | | private Double mbnd; |
| | | |
| | | @PropertyDef(label = "ä½ä¸äººæ°") |
| | | private Integer zyrs; |
| | | |
| | | @PropertyDef(label = "ç°åºææ¥äºº") |
| | | private String xczhr; |
| | | |
| | | @PropertyDef(label = "æ¼æ°ä½ç½®çæµ") |
| | | private String lswzjc; |
| | | |
| | | @PropertyDef(label = "æ¼æ°é¨ä½éåçè¡¥ææªæ½") |
| | | private String lqbwcqdbjcs; |
| | | |
| | | @PropertyDef(label = "å¯éæ¶é´") |
| | | private Integer mbsj; |
| | | |
| | | @PropertyDef(label = "æ£æ°åç£·åæ°¢æµåº¦") |
| | | private Double sqqlhqnd; |
| | | |
| | | @PropertyDef(label = "æ£æ°æ¥æ") |
| | | private String sqrq; |
| | | |
| | | @PropertyDef(label = "æ£æ°æ¹æ³") |
| | | private String sqff; |
| | | |
| | | @PropertyDef(label = "æ£æ°æ¹å人") |
| | | private String sqpzr; |
| | | |
| | | @PropertyDef(label = "æ£æ°æç»å¤©æ°") |
| | | private Integer sqcsts; |
| | | |
| | | @PropertyDef(label = "æ£æ°ç»ææ¶ç£·åæ°¢æµåº¦") |
| | | private Double sqjsslhqnd; |
| | | |
| | | @PropertyDef(label = "æ®æ¸£æ¶éä½ä¸æ¶é´") |
| | | private String czsjzysj; |
| | | |
| | | @PropertyDef(label = "æ®æ¸£æ¶éä½ä¸äººæ°") |
| | | private Integer czsjzyrs; |
| | | |
| | | @PropertyDef(label = "æ®æ¸£æ¶éæ¹æ³") |
| | | private String czsjff; |
| | | |
| | | @PropertyDef(label = "æ®æ¸£æ¶éä½ä¸æ¹å人") |
| | | private String czsjzypzr; |
| | | |
| | | @PropertyDef(label = "æ®æ¸£å¤çæªæ½") |
| | | private String czclcs; |
| | | |
| | | @PropertyDef(label = "æ®æ¸£å¤çä½ä¸äººæ°") |
| | | private Integer czclzyrs; |
| | | |
| | | @PropertyDef(label = "æ®æ¸£å¤çæ¹å人") |
| | | private String czclpzr; |
| | | |
| | | @PropertyDef(label = "çè¸ææè¯ä»·") |
| | | private String xzxgpj; |
| | | |
| | | @PropertyDef(label = "çè¸è´è´£äºº") |
| | | private String xzfzr; |
| | | |
| | | @PropertyDef(label = "çè¸ä½ä¸äººå") |
| | | private String xzzyry; |
| | | |
| | | @PropertyDef(label = "æåæ´æ°æ¶é´") |
| | | private String zhgxsj; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.dto; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * æ¥å£è¡¨-è°·å·ä½ä¸ |
| | | * |
| | | */ |
| | | @Data |
| | | public class ApiV1Data2007 { |
| | | |
| | | @PropertyDef(label = "è°·å·ä½ä¸åå·") |
| | | private String zydh; |
| | | |
| | | @PropertyDef(label = "å»é´ä»£ç ") |
| | | private String ajdm; |
| | | |
| | | @PropertyDef(label = "éé£å¼å§æ¶é´") |
| | | private String kssj; |
| | | |
| | | @PropertyDef(label = "éé£ç»ææ¶é´") |
| | | private String jssj; |
| | | |
| | | @PropertyDef(label = "ç²®é£åç§") |
| | | private String lspzdm; |
| | | |
| | | @PropertyDef(label = "ç²®é£æ°é") |
| | | private Double lssl; |
| | | |
| | | @PropertyDef(label = "å·å´éé£ç®ç") |
| | | private String lqtfmd; |
| | | |
| | | @PropertyDef(label = "å·å´é飿¸©åº¦") |
| | | private Double lqsfwd; |
| | | |
| | | @PropertyDef(label = "å·å´é飿¹¿åº¦") |
| | | private Double lqsfsd; |
| | | |
| | | @PropertyDef(label = "累计é飿¶é´") |
| | | private Double ljtfsj; |
| | | |
| | | @PropertyDef(label = "é飿é´å¤æ¸©æé«å¼") |
| | | private Double wwzgz; |
| | | |
| | | @PropertyDef(label = "é飿é´å¤æ¸©æä½å¼") |
| | | private Double wwzdz; |
| | | |
| | | @PropertyDef(label = "é飿é´å¤æ¸©å¹³åå¼") |
| | | private Double wwpjz; |
| | | |
| | | @PropertyDef(label = "é飿é´å¤æ¹¿æé«å¼") |
| | | private Double wszgz; |
| | | |
| | | @PropertyDef(label = "é飿é´å¤æ¹¿æä½å¼") |
| | | private Double wszdz; |
| | | |
| | | @PropertyDef(label = "é飿é´å¤æ¹¿å¹³åå¼") |
| | | private Double wspjz; |
| | | |
| | | @PropertyDef(label = "éé£å粮温æé«å¼") |
| | | private Double qlwzgz; |
| | | |
| | | @PropertyDef(label = "éé£å粮温æä½å¼") |
| | | private Double qlwzdz; |
| | | |
| | | @PropertyDef(label = "éé£å粮温平åå¼") |
| | | private Double qlwpjz; |
| | | |
| | | @PropertyDef(label = "éé£å粮温æé«å¼") |
| | | private Double hlwzgz; |
| | | |
| | | @PropertyDef(label = "éé£å粮温æä½å¼") |
| | | private Double hlwzdz; |
| | | |
| | | @PropertyDef(label = "éé£å粮温平åå¼") |
| | | private Double hlwpjz; |
| | | |
| | | @PropertyDef(label = "éé£å粮湿度æé«å¼") |
| | | private Double qlszgz; |
| | | |
| | | @PropertyDef(label = "éé£å粮湿度æä½å¼") |
| | | private Double qlszdz; |
| | | |
| | | @PropertyDef(label = "éé£å粮湿度平åå¼") |
| | | private Double qlspjz; |
| | | |
| | | @PropertyDef(label = "éé£å粮湿度æé«å¼") |
| | | private Double hlszgz; |
| | | |
| | | @PropertyDef(label = "éé£å粮湿度æä½å¼") |
| | | private Double hlszdz; |
| | | |
| | | @PropertyDef(label = "éé£å粮湿度平åå¼") |
| | | private Double hlspjz; |
| | | |
| | | @PropertyDef(label = "æ»èçµé") |
| | | private String zhdl; |
| | | |
| | | @PropertyDef(label = "æä½äºº") |
| | | private String czr; |
| | | |
| | | @PropertyDef(label = "夿³¨") |
| | | private Integer bz; |
| | | |
| | | @PropertyDef(label = "æ´æ°æ¶é´") |
| | | private String zhgxsj; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.dto; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * æ¥å£è¡¨-å
æ°®æ°è°ä½ä¸ |
| | | * |
| | | */ |
| | | @Data |
| | | public class ApiV1Data2008 { |
| | | |
| | | @PropertyDef(label = "è°·å·ä½ä¸åå·") |
| | | private String zydh; |
| | | |
| | | @PropertyDef(label = "å»é´ä»£ç ") |
| | | private String ajdm; |
| | | |
| | | @PropertyDef(label = "éé£å¼å§æ¶é´") |
| | | private String kssj; |
| | | |
| | | @PropertyDef(label = "éé£ç»ææ¶é´") |
| | | private String jssj; |
| | | |
| | | @PropertyDef(label = "ç²®é£åç§") |
| | | private String lspzdm; |
| | | |
| | | @PropertyDef(label = "ç²®é£æ°é") |
| | | private String lssl; |
| | | |
| | | @PropertyDef(label = "仿¿æ°å¯æ§æ¯å¦è¾¾æ ") |
| | | private String qmxsfdb; |
| | | |
| | | @PropertyDef(label = "æ°è°ç®ç") |
| | | private String qtmd; |
| | | |
| | | @PropertyDef(label = "ç²®å å¯éæ¹å¼") |
| | | private Double mbfs; |
| | | |
| | | @PropertyDef(label = "è®¾å®æ°®æ°æµåº¦") |
| | | private Double sddqnd; |
| | | |
| | | @PropertyDef(label = "å
æ°æ¹å¼") |
| | | private String cqfs; |
| | | |
| | | @PropertyDef(label = "累计æ°è°æ¶é´") |
| | | private Double ljqtsj; |
| | | |
| | | @PropertyDef(label = "æ°è°æé´å¤§æ°æ¸©åº¦æé«å¼") |
| | | private Double wwzgz; |
| | | |
| | | @PropertyDef(label = "æ°è°æé´å¤§æ°æ¸©åº¦æä½å¼") |
| | | private Double wwzdz; |
| | | |
| | | @PropertyDef(label = "æ°è°æé´å¤§æ°æ¸©åº¦å¹³åå¼") |
| | | private Double wwpjz; |
| | | |
| | | @PropertyDef(label = "æ°è°æé´ä»å
温度æé«å¼") |
| | | private Double cnwwzgz; |
| | | |
| | | @PropertyDef(label = "æ°è°æé´ä»å
温度æä½å¼") |
| | | private Double cnwwzdz; |
| | | |
| | | @PropertyDef(label = "æ°è°æé´ä»å
温度平åå¼") |
| | | private Double cnwwpjz; |
| | | |
| | | @PropertyDef(label = "æ°è°æé´ä»å
湿度æé«å¼") |
| | | private Double cnwszgz; |
| | | |
| | | @PropertyDef(label = "æ°è°æé´ä»å
湿度æä½å¼") |
| | | private Double cnwszdz; |
| | | |
| | | @PropertyDef(label = "æ°è°æé´ä»å
湿度平åå¼") |
| | | private Double cnwspjz; |
| | | |
| | | @PropertyDef(label = "æ°è°æé´ç²®å æ°®æ°æµåº¦æé«å¼") |
| | | private Double ldndzgz; |
| | | |
| | | @PropertyDef(label = "æ°è°æé´ç²®å æ°®æ°æµåº¦æä½å¼") |
| | | private Double ldndzdz; |
| | | |
| | | @PropertyDef(label = "æ°è°æé´ç²®å æ°®æ°æµåº¦å¹³åå¼") |
| | | private Double ldndpjz; |
| | | |
| | | @PropertyDef(label = "æ°è°å粮温æé«å¼") |
| | | private Double qtqlwzgz; |
| | | |
| | | @PropertyDef(label = "æ°è°å粮温æä½å¼") |
| | | private Double qtqlwzdz; |
| | | |
| | | @PropertyDef(label = "æ°è°å粮温平å") |
| | | private Double qtqlwpjz; |
| | | |
| | | @PropertyDef(label = "æ°è°å粮温æé«å¼") |
| | | private Double qthlwzgz; |
| | | |
| | | @PropertyDef(label = "æ°è°å粮温æä½å¼") |
| | | private Double qthlwzdz; |
| | | |
| | | @PropertyDef(label = "æ°è°å粮温平å") |
| | | private Double qthlwpjz; |
| | | |
| | | @PropertyDef(label = "æ°è°å粮水åæé«å¼") |
| | | private Double qtqsfzgz; |
| | | |
| | | @PropertyDef(label = "æ°è°å粮水åæä½å¼") |
| | | private Double qtqsfzdz; |
| | | |
| | | @PropertyDef(label = "æ°è°å粮水åå¹³å") |
| | | private Double qtqsfpjz; |
| | | |
| | | @PropertyDef(label = "æ°è°å粮水åæé«å¼") |
| | | private Double qthsfzgz; |
| | | |
| | | @PropertyDef(label = "æ°è°å粮水åæä½å¼") |
| | | private Double qthsfzdz; |
| | | |
| | | @PropertyDef(label = "æ°è°å粮水åå¹³å") |
| | | private Double qthsfpjz; |
| | | |
| | | @PropertyDef(label = "æ°è°åè«å®³æ
åµ") |
| | | private String qtqchqk; |
| | | |
| | | @PropertyDef(label = "æ°è°åè«å®³æ
åµ") |
| | | private String qthchqk; |
| | | |
| | | @PropertyDef(label = "æ°è°é´å¼å¸¸æ
åµæè¿°") |
| | | private String ycms; |
| | | |
| | | @PropertyDef(label = "czr") |
| | | private String æä½äºº; |
| | | |
| | | @PropertyDef(label = "夿³¨") |
| | | private Integer bz; |
| | | |
| | | @PropertyDef(label = "æ´æ°æ¶é´") |
| | | private String zhgxsj; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.dto; |
| | | |
| | | import lombok.Data; |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * @Description æ°æ®æ¥å£V1-åæ° |
| | | * @Author CZT |
| | | * @Date 2025/6/04 16:10 |
| | | */ |
| | | @Data |
| | | public class ApiV1ReqDto implements Serializable { |
| | | |
| | | private String interfaceId; |
| | | |
| | | private String sign; |
| | | |
| | | private String deptId; |
| | | |
| | | private String reqDate; |
| | | |
| | | private String startTime; |
| | | |
| | | private String endTime; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.dto; |
| | | |
| | | import lombok.Data; |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * @Description æ°æ®æ¥å£V1-ååºæ°æ® |
| | | * @Author CZT |
| | | * @Date 2025/6/04 16:10 |
| | | */ |
| | | @Data |
| | | public class ApiV1RespDto implements Serializable { |
| | | |
| | | /** |
| | | * ååºç¼ç |
| | | */ |
| | | private String code; |
| | | |
| | | /** |
| | | * ååºä¿¡æ¯ |
| | | */ |
| | | private String msg; |
| | | |
| | | /** |
| | | * ååºæ¶é´(yyyy-MM-dd HH:mm:ss) |
| | | */ |
| | | private String respDate; |
| | | |
| | | /** |
| | | * ä¸å¡æ°æ® |
| | | */ |
| | | private String data; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.fzzy.igds.dzhwk.domain.Company; |
| | | import com.fzzy.igds.dzhwk.v1.ApiV1Service; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1Data1001; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1ReqDto; |
| | | import com.fzzy.igds.sys.repository.CompanyRepository; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.time.DateUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description è§£æåä½ä¿¡æ¯ |
| | | * @Author CZT |
| | | * @Date 2025/06/04 17:26 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class ApiV1ServiceImpl1001 implements ApiV1Service { |
| | | |
| | | @Autowired |
| | | private CompanyRepository companyRepository; |
| | | @Override |
| | | public String getInterfaceId() { |
| | | return "1001"; |
| | | } |
| | | |
| | | @Override |
| | | public void analysis(String dataStr, ApiV1ReqDto configData){ |
| | | |
| | | List<ApiV1Data1001> list = JSONObject.parseArray(dataStr, ApiV1Data1001.class); |
| | | if(null == list || list.isEmpty()){ |
| | | log.error("-----æªè·åå°åä½ä¿¡æ¯ï¼ä¸è§£æ---------"); |
| | | return; |
| | | } |
| | | try{ |
| | | Company company; |
| | | for (ApiV1Data1001 api1001 : list) { |
| | | company = companyRepository.getDataById(configData.getSign()); |
| | | if(null == company){ |
| | | company = new Company(); |
| | | } |
| | | company.setId(configData.getSign()); |
| | | company.setCompanyId(configData.getSign()); |
| | | //èµå¼å±æ§å¼ |
| | | BeanUtils.copyProperties(api1001, company); |
| | | company.setZcrq(DateUtils.parseDate(api1001.getZcrq(), "yyyy-MM-dd")); |
| | | company.setZhgxsj(DateUtils.parseDate(api1001.getZhgxsj(), "yyyy-MM-dd HH:mm:ss")); |
| | | companyRepository.save(company); |
| | | } |
| | | }catch (Exception e){ |
| | | log.error("-----è§£æå¤±è´¥={}---------", e); |
| | | } |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.fzzy.igds.dzhwk.domain.Dept; |
| | | import com.fzzy.igds.dzhwk.v1.ApiV1Service; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1Data1002; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1ReqDto; |
| | | import com.fzzy.igds.sys.repository.DeptRepository; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.time.DateUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description è§£æåºåºä¿¡æ¯ |
| | | * @Author CZT |
| | | * @Date 2025/06/04 17:26 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class ApiV1ServiceImpl1002 implements ApiV1Service { |
| | | |
| | | @Resource |
| | | private DeptRepository deptRepository; |
| | | @Override |
| | | public String getInterfaceId() { |
| | | return "1002"; |
| | | } |
| | | |
| | | @Override |
| | | public void analysis(String dataStr, ApiV1ReqDto configData){ |
| | | |
| | | List<ApiV1Data1002> list = JSONObject.parseArray(dataStr, ApiV1Data1002.class); |
| | | if(null == list || list.isEmpty()){ |
| | | log.error("-----æªè·åå°åºåºä¿¡æ¯ï¼ä¸è§£æ---------"); |
| | | return; |
| | | } |
| | | try{ |
| | | Dept dept; |
| | | for (ApiV1Data1002 api2002 : list) { |
| | | dept = deptRepository.getDataById(configData.getDeptId()); |
| | | if(null == dept){ |
| | | dept = new Dept(); |
| | | } |
| | | dept.setId(configData.getDeptId()); |
| | | dept.setCompanyId(configData.getSign()); |
| | | //èµå¼å±æ§å¼ |
| | | BeanUtils.copyProperties(api2002, dept); |
| | | dept.setZhgxsj(DateUtils.parseDate(api2002.getZhgxsj(), "yyyy-MM-dd HH:mm:ss")); |
| | | deptRepository.save(dept); |
| | | } |
| | | }catch (Exception e){ |
| | | log.error("-----è§£æå¤±è´¥={}---------", e); |
| | | } |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.fzzy.igds.dzhwk.domain.Building; |
| | | import com.fzzy.igds.dzhwk.v1.ApiV1Service; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1Data1003; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1ReqDto; |
| | | import com.fzzy.igds.sys.BuildingService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.time.DateUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description è§£æä»æ¿ä¿¡æ¯ |
| | | * @Author CZT |
| | | * @Date 2025/06/04 17:26 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class ApiV1ServiceImpl1003 implements ApiV1Service { |
| | | |
| | | @Resource |
| | | private BuildingService buildingService; |
| | | @Override |
| | | public String getInterfaceId() { |
| | | return "1003"; |
| | | } |
| | | |
| | | @Override |
| | | public void analysis(String dataStr, ApiV1ReqDto configData){ |
| | | |
| | | List<ApiV1Data1003> list = JSONObject.parseArray(dataStr, ApiV1Data1003.class); |
| | | if(null == list || list.isEmpty()){ |
| | | log.error("-----æªè·åå°ä»æ¿ä¿¡æ¯ï¼ä¸è§£æ---------"); |
| | | return; |
| | | } |
| | | try{ |
| | | Building building; |
| | | for (ApiV1Data1003 api2003 : list) { |
| | | building = new Building(); |
| | | |
| | | building.setId(api2003.getCfdm()); |
| | | building.setCompanyId(configData.getSign()); |
| | | building.setDeptId(configData.getDeptId()); |
| | | building.setName(api2003.getCfmc()); |
| | | building.setStorage(api2003.getSjcr()); |
| | | building.setHeight(api2003.getCwg()); |
| | | building.setLength(api2003.getCwc()); |
| | | building.setWidth(api2003.getCwk()); |
| | | |
| | | building.setGround(api2003.getDmjg()); |
| | | building.setWall(api2003.getQtjg()); |
| | | building.setRoof(api2003.getFdjg()); |
| | | building.setRoofTruss(api2003.getFjjg()); |
| | | building.setLon(api2003.getJd()); |
| | | building.setLat(api2003.getWd()); |
| | | |
| | | building.setUserDate(DateUtils.parseDate(api2003.getJfsyrq(), "yyyy-MM-dd")); |
| | | building.setUpdateTime(DateUtils.parseDate(api2003.getZhgxsj(), "yyyy-MM-dd HH:mm:ss")); |
| | | |
| | | buildingService.saveOrUpdate(building); |
| | | } |
| | | }catch (Exception e){ |
| | | log.error("-----è§£æå¤±è´¥={}---------", e); |
| | | } |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.fzzy.igds.dzhwk.domain.Granary; |
| | | import com.fzzy.igds.dzhwk.v1.ApiV1Service; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1Data1004; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1ReqDto; |
| | | import com.fzzy.igds.sys.GranaryService; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.time.DateUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description è§£æå»é´ä¿¡æ¯ |
| | | * @Author CZT |
| | | * @Date 2025/6/04 18:20 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class ApiV1ServiceImpl1004 implements ApiV1Service { |
| | | |
| | | @Resource |
| | | private GranaryService granaryService; |
| | | @Override |
| | | public String getInterfaceId() { |
| | | return "1004"; |
| | | } |
| | | |
| | | @Override |
| | | public void analysis(String dataStr, ApiV1ReqDto configData){ |
| | | |
| | | List<ApiV1Data1004> list = JSONObject.parseArray(dataStr, ApiV1Data1004.class); |
| | | if(null == list || list.isEmpty()){ |
| | | log.error("-----æªè·åå°å»é´ä¿¡æ¯ï¼ä¸è§£æ---------"); |
| | | return; |
| | | } |
| | | try{ |
| | | Granary granary; |
| | | for (ApiV1Data1004 api2004 : list) { |
| | | |
| | | granary = new Granary(); |
| | | |
| | | granary.setAjdh(api2004.getAjdh()); |
| | | granary.setCompanyId(configData.getSign()); |
| | | granary.setDeptId(configData.getDeptId()); |
| | | granary.setAjmc(api2004.getAjmc()); |
| | | granary.setCfbh(api2004.getCfbh()); |
| | | granary.setAjcd(api2004.getAjcd()); |
| | | granary.setAjkd(api2004.getAjkd()); |
| | | granary.setAjgd(api2004.getAjgd()); |
| | | granary.setAjsjcr(api2004.getAjsjcr()); |
| | | |
| | | if(StringUtils.isNotEmpty(api2004.getAjqyrq())){ |
| | | granary.setAjqyrq(DateUtils.parseDate(api2004.getAjqyrq(), "yyyy-MM-dd")); |
| | | } |
| | | if(StringUtils.isNotEmpty(api2004.getZhgxsj())){ |
| | | granary.setUpdateTime(DateUtils.parseDate(api2004.getZhgxsj(), "yyyy-MM-dd HH:mm:ss")); |
| | | } |
| | | granaryService.saveOrUpdate(granary); |
| | | } |
| | | }catch (Exception e){ |
| | | log.error("-----è§£æå¤±è´¥={}---------", e); |
| | | } |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.fzzy.igds.dzhwk.domain.Depot; |
| | | import com.fzzy.igds.dzhwk.v1.ApiV1Service; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1Data1005; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1ReqDto; |
| | | import com.fzzy.igds.sys.DepotService; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.time.DateUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description è§£æè´§ä½ä¿¡æ¯ |
| | | * @Author CZT |
| | | * @Date 2025/6/04 18:50 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class ApiV1ServiceImpl1005 implements ApiV1Service { |
| | | |
| | | @Resource |
| | | private DepotService depotService; |
| | | |
| | | @Override |
| | | public String getInterfaceId() { |
| | | return "1005"; |
| | | } |
| | | |
| | | @Override |
| | | public void analysis(String dataStr, ApiV1ReqDto configData) { |
| | | |
| | | List<ApiV1Data1005> list = JSONObject.parseArray(dataStr, ApiV1Data1005.class); |
| | | if (null == list || list.isEmpty()) { |
| | | log.error("-----æªè·åå°è´§ä½ä¿¡æ¯ï¼ä¸è§£æ---------"); |
| | | return; |
| | | } |
| | | try { |
| | | Depot depot; |
| | | for (ApiV1Data1005 apiData : list) { |
| | | |
| | | depot = depotService.getCacheDepot(configData.getSign(), apiData.getHwdm()); |
| | | if (null == depot) { |
| | | depot = new Depot(); |
| | | } |
| | | |
| | | depot.setId(apiData.getHwdm()); |
| | | depot.setName(apiData.getHwmc()); |
| | | |
| | | depot.setCompanyId(configData.getSign()); |
| | | depot.setDeptId(configData.getDeptId()); |
| | | depot.setBuildingId(apiData.getAjdm().substring(0, 25)); |
| | | depot.setGranaryId(apiData.getAjdm()); |
| | | depot.setStorageMax(apiData.getHwrl()); |
| | | depot.setStoreKeeperName(apiData.getBgy()); |
| | | depot.setFoodVariety(apiData.getLspzdm()); |
| | | depot.setFoodType(apiData.getLsxzdm()); |
| | | depot.setFoodLevel(apiData.getLsdjdm()); |
| | | depot.setFoodYear(apiData.getShnd()); |
| | | depot.setFoodLocation(apiData.getCd()); |
| | | depot.setDepotStatus(apiData.getHwzt()); |
| | | if (StringUtils.isNotEmpty(apiData.getRcsj())) { |
| | | depot.setStoreDate(DateUtils.parseDate(apiData.getRcsj(), "yyyy-MM-dd HH:mm:ss")); |
| | | } |
| | | if (StringUtils.isNotEmpty(apiData.getZhgxsj())) { |
| | | depot.setUpdateTime(DateUtils.parseDate(apiData.getZhgxsj(), "yyyy-MM-dd HH:mm:ss")); |
| | | } |
| | | depot.setStorageReal(apiData.getSjsl()); |
| | | depotService.saveDepot(depot); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("-----è§£æå¤±è´¥={}---------", e); |
| | | } |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.fzzy.igds.dzhwk.domain.Grain; |
| | | import com.fzzy.igds.dzhwk.service.repository.GrainRepository; |
| | | import com.fzzy.igds.dzhwk.v1.ApiV1Service; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1Data2001; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1ReqDto; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.time.DateUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description è§£æç²®æ
ä¿¡æ¯ |
| | | * @Author CZT |
| | | * @Date 2025/6/04 19:11 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class ApiV1ServiceImpl2001 implements ApiV1Service { |
| | | |
| | | @Resource |
| | | private GrainRepository grainRepository; |
| | | |
| | | @Override |
| | | public String getInterfaceId() { |
| | | return "2001"; |
| | | } |
| | | |
| | | @Override |
| | | public void analysis(String dataStr, ApiV1ReqDto configData) { |
| | | |
| | | List<ApiV1Data2001> list = JSONObject.parseArray(dataStr, ApiV1Data2001.class); |
| | | if(null == list || list.isEmpty()){ |
| | | log.error("-----æªè·åå°ç²®æ
ä¿¡æ¯ï¼ä¸è§£æ---------"); |
| | | return; |
| | | } |
| | | try { |
| | | Grain grain; |
| | | for (ApiV1Data2001 apiData : list) { |
| | | grain = new Grain(); |
| | | BeanUtils.copyProperties(apiData, grain); |
| | | |
| | | grain.setBatchId(apiData.getJcdj()); |
| | | grain.setCompanyId(configData.getSign()); |
| | | grain.setDepotId(apiData.getHwdm()); |
| | | grain.setTempMin(apiData.getLszdw());//ç²®æ
æä½æ¸© |
| | | grain.setTempMax(apiData.getLszgw());//ç²®æ
æé«æ¸© |
| | | grain.setTempIn(apiData.getCfnw());//ä»å
温度 |
| | | grain.setTempOut(apiData.getCfww());//ä»å¤æ¸©åº¦ |
| | | grain.setTempAve(apiData.getLspjw());//ç²®é£å¹³å温 |
| | | grain.setHumidityOut(apiData.getCfws());//ä»å¤æ¹¿åº¦ |
| | | grain.setHumidityIn(apiData.getCfww());//ä»å
湿度 |
| | | |
| | | grain = grainGbToGrain01(grain, apiData.getLswdzjh()); |
| | | |
| | | grain.setWeather(apiData.getWeather()); |
| | | grain.setReceiveDate(DateUtils.parseDate(apiData.getJcsj(), "yyyy-MM-dd HH:mm:ss")); |
| | | grain.setCheckUser(apiData.getJcr()); |
| | | grain.setRemark(apiData.getRemarks()); |
| | | |
| | | grainRepository.save(grain); |
| | | } |
| | | }catch (Exception e){ |
| | | log.error("-----è§£æé误={}---------", e.toString()); |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | | * å°æ¸©åº¦ä¿¡æ¯è½¬ä¸ºç³»ç»å
ç²®æ
ç¹ä½ä¿¡æ¯ |
| | | * |
| | | * @param lswdzjh |
| | | * @return |
| | | */ |
| | | public Grain grainGbToGrain01(Grain grain, String lswdzjh) { |
| | | String[] pointList = lswdzjh.split("\\|"); |
| | | |
| | | //è·åæå¤§å±è¡å |
| | | String[] split; |
| | | Integer z = 0; //å± |
| | | Integer y = 0; //è¡ |
| | | Integer x = 0; //å |
| | | for (String s : pointList) { |
| | | if (s.startsWith(",")) { |
| | | s = s.substring(1); |
| | | } |
| | | split = s.split(","); |
| | | if (Integer.valueOf(split[1]) > z) { |
| | | z = Integer.valueOf(split[1]); |
| | | } |
| | | if (Integer.valueOf(split[2]) > y) { |
| | | y = Integer.valueOf(split[2]); |
| | | } |
| | | if (Integer.valueOf(split[3]) > x) { |
| | | x = Integer.valueOf(split[3]); |
| | | } |
| | | } |
| | | |
| | | grain.setCable(z + "-" + y + "-" + x); |
| | | String points = ""; |
| | | |
| | | //å°æ¸©æ¹¿åº¦ç¹è½¬ä¸ºç³»ç»ä½¿ç¨æ ¼å¼ |
| | | for (int a = 1; a <= x; a++) { //å |
| | | for (int b = 1; b <= y; b++) { //è¡ |
| | | for (int c = 1; c <= z; c++) { //å± |
| | | for (String s : pointList) { |
| | | if (s.startsWith(",")) { |
| | | s = s.substring(1); |
| | | } |
| | | split = s.split(","); |
| | | if (Integer.valueOf(split[1]) == c && Integer.valueOf(split[2]) == b && Integer.valueOf(split[3]) == a) { |
| | | points += split[0] + ","; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | grain.setPoints(points); |
| | | return grain; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.fzzy.igds.dzhwk.domain.Gas; |
| | | import com.fzzy.igds.dzhwk.service.repository.GasRepository; |
| | | import com.fzzy.igds.dzhwk.v1.ApiV1Service; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1Data2002; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1ReqDto; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.time.DateUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description è§£ææ°ä½ä¿¡æ¯ |
| | | * @Author CZT |
| | | * @Date 2025/6/04 20:11 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class ApiV1ServiceImpl2002 implements ApiV1Service { |
| | | |
| | | @Resource |
| | | private GasRepository gasRepository; |
| | | |
| | | @Override |
| | | public String getInterfaceId() { |
| | | return "2002"; |
| | | } |
| | | |
| | | @Override |
| | | public void analysis(String dataStr, ApiV1ReqDto configData) { |
| | | |
| | | List<ApiV1Data2002> list = JSONObject.parseArray(dataStr, ApiV1Data2002.class); |
| | | if(null == list || list.isEmpty()){ |
| | | log.error("-----æªè·åå°æ°ä½æ£æµä¿¡æ¯ï¼ä¸è§£æ---------"); |
| | | return; |
| | | } |
| | | try { |
| | | Gas gas; |
| | | List<String> co2List = new ArrayList<>(); |
| | | List<String> o2List = new ArrayList<>(); |
| | | List<String> ph3List = new ArrayList<>(); |
| | | List<String> n2List = new ArrayList<>(); |
| | | Double max = 0.0; |
| | | Double min = 0.0; |
| | | Double sum = 0.0; |
| | | Double temp = 0.0; |
| | | for (ApiV1Data2002 apiData : list) { |
| | | gas = new Gas(); |
| | | |
| | | gas.setBatchId(apiData.getQtndjcdh()); |
| | | gas.setCompanyId(configData.getSign()); |
| | | gas.setDepotId(apiData.getHwdm()); |
| | | gas.setType(apiData.getZylx() + ""); |
| | | |
| | | //CO2 |
| | | if(StringUtils.isNotEmpty(apiData.getEyhthlzjh())){ |
| | | String[] split = apiData.getEyhthlzjh().split("\\|"); |
| | | String points = split[0]; |
| | | String[] values = points.split(","); |
| | | for(int i = 0; i < values.length; i++){ |
| | | temp = Double.valueOf(values[i]); |
| | | if (i ==0) { |
| | | sum = 0.0; |
| | | max = temp; |
| | | min = temp; |
| | | } |
| | | if(temp > max){ |
| | | max = temp; |
| | | } |
| | | if(temp < min){ |
| | | min = temp; |
| | | } |
| | | sum += temp; |
| | | o2List.add(values[i]); |
| | | } |
| | | gas.setPerCo2(sum / values.length); |
| | | gas.setPerCo2Max(max); |
| | | gas.setPerCo2Min(min); |
| | | } |
| | | |
| | | //O2 |
| | | if(StringUtils.isNotEmpty(apiData.getYqhlzjh())){ |
| | | String[] split = apiData.getYqhlzjh().split("\\|"); |
| | | String points = split[0]; |
| | | String[] values = points.split(","); |
| | | for(int i = 0; i < values.length; i++){ |
| | | temp = Double.valueOf(values[i]); |
| | | if (i ==0) { |
| | | sum = 0.0; |
| | | max = temp; |
| | | min = temp; |
| | | } |
| | | if(temp > max){ |
| | | max = temp; |
| | | } |
| | | if(temp < min){ |
| | | min = temp; |
| | | } |
| | | sum += temp; |
| | | o2List.add(values[i]); |
| | | } |
| | | gas.setPerO2(sum / values.length); |
| | | gas.setPerO2Max(max); |
| | | gas.setPerO2Min(min); |
| | | } |
| | | |
| | | //Ph3 |
| | | if(StringUtils.isNotEmpty(apiData.getLhqndzjh())){ |
| | | String[] split = apiData.getLhqndzjh().split("\\|"); |
| | | String points = split[0]; |
| | | String[] values = points.split(","); |
| | | for(int i = 0; i < values.length; i++){ |
| | | temp = Double.valueOf(values[i]); |
| | | if (i ==0) { |
| | | sum = 0.0; |
| | | max = temp; |
| | | min = temp; |
| | | } |
| | | if(temp > max){ |
| | | max = temp; |
| | | } |
| | | if(temp < min){ |
| | | min = temp; |
| | | } |
| | | sum += temp; |
| | | o2List.add(values[i]); |
| | | } |
| | | gas.setPerPh3(sum / values.length); |
| | | gas.setPerPh3Max(max); |
| | | gas.setPerPh3Min(min); |
| | | } |
| | | |
| | | //N2 |
| | | if(StringUtils.isNotEmpty(apiData.getDqndzjh())){ |
| | | String[] split = apiData.getDqndzjh().split("\\|"); |
| | | String points = split[0]; |
| | | String[] values = points.split(","); |
| | | for(int i = 0; i < values.length; i++){ |
| | | temp = Double.valueOf(values[i]); |
| | | if (i ==0) { |
| | | sum = 0.0; |
| | | max = temp; |
| | | min = temp; |
| | | } |
| | | if(temp > max){ |
| | | max = temp; |
| | | } |
| | | if(temp < min){ |
| | | min = temp; |
| | | } |
| | | sum += temp; |
| | | o2List.add(values[i]); |
| | | } |
| | | gas.setPerN2(sum / values.length); |
| | | gas.setPerN2Max(max); |
| | | gas.setPerN2Min(min); |
| | | } |
| | | |
| | | //ç¹ä½åæ°ä½æµåº¦ |
| | | String pointStr = ""; |
| | | for(int i = 0; i < o2List.size(); i++){ |
| | | pointStr += i + "," + co2List.get(i) + "," + o2List.get(i) + "," + ph3List.get(i) + "," + n2List.get(i) + ";"; |
| | | } |
| | | gas.setPoints(pointStr); |
| | | |
| | | gas.setReceiveDate(DateUtils.parseDate(apiData.getJcsj(), "yyyy-MM-dd HH:mm:ss")); |
| | | gas.setCheckUser(""); |
| | | gas.setRemark(""); |
| | | |
| | | gasRepository.save(gas); |
| | | } |
| | | }catch (Exception e){ |
| | | log.error("-----è§£æé误={}---------", e.toString()); |
| | | } |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.fzzy.igds.dzhwk.domain.MQuality; |
| | | import com.fzzy.igds.dzhwk.service.repository.QualityManageRepository; |
| | | import com.fzzy.igds.dzhwk.v1.ApiV1Service; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1Data2003; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1ReqDto; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.time.DateUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description è§£æè´¨æ£ä¿¡æ¯ |
| | | * @Author CZT |
| | | * @Date 2025/6/05 10:01 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class ApiV1ServiceImpl2003 implements ApiV1Service { |
| | | |
| | | @Resource |
| | | private QualityManageRepository qualityManageRepository; |
| | | |
| | | @Override |
| | | public String getInterfaceId() { |
| | | return "2003"; |
| | | } |
| | | |
| | | @Override |
| | | public void analysis(String dataStr, ApiV1ReqDto configData) { |
| | | |
| | | List<ApiV1Data2003> list = JSONObject.parseArray(dataStr, ApiV1Data2003.class); |
| | | if(null == list || list.isEmpty()){ |
| | | log.error("-----æªè·åå°è´¨æ£ä¿¡æ¯ï¼ä¸è§£æ---------"); |
| | | return; |
| | | } |
| | | try { |
| | | MQuality quality; |
| | | for (ApiV1Data2003 apiData : list) { |
| | | quality =new MQuality(); |
| | | BeanUtils.copyProperties(apiData, quality); |
| | | |
| | | quality.setCompanyId(configData.getSign()); |
| | | quality.setDeptId(configData.getDeptId()); |
| | | |
| | | quality.setStoreDate(DateUtils.parseDate(apiData.getRkrq(), "yyyy-MM-dd")); |
| | | quality.setTime(DateUtils.parseDate(apiData.getJysj(), "yyyy-MM-dd HH:mm:ss")); |
| | | quality.setBgcjsj(DateUtils.parseDate(apiData.getBgcjsj(), "yyyy-MM-dd HH:mm:ss")); |
| | | quality.setCheckTime(DateUtils.parseDate(apiData.getQysj(), "yyyy-MM-dd HH:mm:ss")); |
| | | quality.setUpdateTime(DateUtils.parseDate(apiData.getZhgxsj(), "yyyy-MM-dd HH:mm:ss")); |
| | | qualityManageRepository.save(quality); |
| | | } |
| | | }catch (Exception e){ |
| | | log.error("-----è§£æé误={}---------", e.toString()); |
| | | } |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.fzzy.igds.dzhwk.domain.InoutDepotRecord; |
| | | import com.fzzy.igds.dzhwk.service.repository.InoutDepotRecordRepository; |
| | | import com.fzzy.igds.dzhwk.v1.ApiV1Service; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1Data2004; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1ReqDto; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.time.DateUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description è§£æè¿åºä»è®°å½ä¿¡æ¯ |
| | | * @Author CZT |
| | | * @Date 2025/6/05 10:21 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class ApiV1ServiceImpl2004 implements ApiV1Service { |
| | | |
| | | @Resource |
| | | private InoutDepotRecordRepository repository; |
| | | |
| | | @Override |
| | | public String getInterfaceId() { |
| | | return "2004"; |
| | | } |
| | | |
| | | @Override |
| | | public void analysis(String dataStr, ApiV1ReqDto configData) { |
| | | |
| | | List<ApiV1Data2004> list = JSONObject.parseArray(dataStr, ApiV1Data2004.class); |
| | | if(null == list || list.isEmpty()){ |
| | | log.error("-----æªè·åå°è¿åºä»è®°å½ä¿¡æ¯ï¼ä¸è§£æ---------"); |
| | | return; |
| | | } |
| | | try { |
| | | InoutDepotRecord record; |
| | | for (ApiV1Data2004 apiData : list) { |
| | | record = new InoutDepotRecord(); |
| | | BeanUtils.copyProperties(apiData, record); |
| | | |
| | | record.setJcsj(DateUtils.parseDate(apiData.getJcsj(), "yyyy-MM-dd HH:mm:ss")); |
| | | record.setCcsj(DateUtils.parseDate(apiData.getCcsj(), "yyyy-MM-dd HH:mm:ss")); |
| | | record.setZhgxsj(DateUtils.parseDate(apiData.getZhgxsj(), "yyyy-MM-dd HH:mm:ss")); |
| | | |
| | | repository.save(record); |
| | | } |
| | | }catch (Exception e){ |
| | | log.error("-----è§£æé误={}---------", e.toString()); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.fzzy.igds.dzhwk.domain.MAreationData; |
| | | import com.fzzy.igds.dzhwk.service.repository.AreationDataRepository; |
| | | import com.fzzy.igds.dzhwk.v1.ApiV1Service; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1Data2005; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1ReqDto; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.time.DateUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description è§£ææºæ¢°éé£ä¿¡æ¯ |
| | | * @Author CZT |
| | | * @Date 2025/6/04 20:11 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class ApiV1ServiceImpl2005 implements ApiV1Service { |
| | | |
| | | @Resource |
| | | private AreationDataRepository repository; |
| | | |
| | | @Override |
| | | public String getInterfaceId() { |
| | | return "2005"; |
| | | } |
| | | |
| | | @Override |
| | | public void analysis(String dataStr, ApiV1ReqDto configData) { |
| | | |
| | | List<ApiV1Data2005> list = JSONObject.parseArray(dataStr, ApiV1Data2005.class); |
| | | if(null == list || list.isEmpty()){ |
| | | log.error("-----æªè·åå°ä¿¡æ¯ï¼ä¸è§£æ---------"); |
| | | return; |
| | | } |
| | | try { |
| | | MAreationData data; |
| | | for (ApiV1Data2005 apiData : list) { |
| | | data = new MAreationData(); |
| | | data.setCompanyId(configData.getSign()); |
| | | data.setDeptId(configData.getDeptId()); |
| | | |
| | | BeanUtils.copyProperties(apiData, data); |
| | | |
| | | |
| | | data.setDepotId(apiData.getAjdm()); |
| | | data.setObjective(apiData.getTfmd()); |
| | | data.setType(apiData.getTflx()); |
| | | data.setAirSupplyMode(apiData.getSffs()); |
| | | data.setZysqw(apiData.getZysqw()); |
| | | data.setZysqs(apiData.getZysqs()); |
| | | data.setStartTime(DateUtils.parseDate(apiData.getTfrq(), "yyyy-MM-dd")); |
| | | |
| | | data.setLongTime(apiData.getTfsc()); |
| | | data.setBeforeTempAvg(apiData.getZyqpjlw()); |
| | | data.setAfterTempAvg(apiData.getJshpjlw()); |
| | | |
| | | data.setBeforPerWetAvg(apiData.getZyqpjsf()); |
| | | data.setAfterPerWetAvg(apiData.getZyhpjsf()); |
| | | data.setChargeUser(apiData.getTfzyfzr()); |
| | | data.setOperators(apiData.getTfzyry()); |
| | | |
| | | data.setUpdateTime(DateUtils.parseDate(apiData.getZhgxsj(), "yyyy-MM-dd HH:mm:ss")); |
| | | |
| | | repository.save(data); |
| | | } |
| | | }catch (Exception e){ |
| | | log.error("-----è§£æé误={}---------", e.toString()); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.fzzy.igds.dzhwk.domain.DrugLog; |
| | | import com.fzzy.igds.dzhwk.service.repository.DrugLogRepository; |
| | | import com.fzzy.igds.dzhwk.v1.ApiV1Service; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1Data2006; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1ReqDto; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.time.DateUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description è§£æçè¸ä½ä¸ä¿¡æ¯ |
| | | * @Author CZT |
| | | * @Date 2025/6/04 20:11 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class ApiV1ServiceImpl2006 implements ApiV1Service { |
| | | |
| | | @Resource |
| | | private DrugLogRepository repository; |
| | | |
| | | @Override |
| | | public String getInterfaceId() { |
| | | return "2006"; |
| | | } |
| | | |
| | | @Override |
| | | public void analysis(String dataStr, ApiV1ReqDto configData) { |
| | | |
| | | List<ApiV1Data2006> list = JSONObject.parseArray(dataStr, ApiV1Data2006.class); |
| | | if (null == list || list.isEmpty()) { |
| | | log.error("-----æªè·åå°çè¸ä½ä¸ä¿¡æ¯ï¼ä¸è§£æ---------"); |
| | | return; |
| | | } |
| | | try { |
| | | DrugLog data; |
| | | for (ApiV1Data2006 apiData : list) { |
| | | data = new DrugLog(); |
| | | |
| | | BeanUtils.copyProperties(apiData, data); |
| | | |
| | | data.setId(apiData.getXzzydh()); |
| | | data.setCompanyId(configData.getSign()); |
| | | data.setDeptId(configData.getDeptId()); |
| | | data.setDepotId(apiData.getAjdm()); |
| | | |
| | | data.setStart(DateUtils.parseDate(apiData.getXzkssj(), "yyyy-MM-dd HH:mm:ss")); |
| | | data.setEnd(DateUtils.parseDate(apiData.getXzjssj(), "yyyy-MM-dd HH:mm:ss")); |
| | | data.setNum(apiData.getDjcxz()); |
| | | data.setMode(apiData.getCgxzfs()); |
| | | data.setRecirMode(apiData.getHlxzfs()); |
| | | data.setDrugName(apiData.getYjmc()); |
| | | data.setJx(apiData.getJx()); |
| | | |
| | | data.setConcentration(apiData.getNd()); |
| | | data.setDose(apiData.getZyyl()); |
| | | data.setVentilateMethod(apiData.getSqff()); |
| | | data.setVentilateTime(DateUtils.parseDate(apiData.getSqrq(), "yyyy-MM-dd")); |
| | | |
| | | data.setUpdateTime(DateUtils.parseDate(apiData.getZhgxsj(), "yyyy-MM-dd HH:mm:ss")); |
| | | repository.save(data); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("-----è§£æé误={}---------", e.toString()); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.fzzy.igds.dzhwk.domain.ColdValley; |
| | | import com.fzzy.igds.dzhwk.service.repository.ColdValleyRepository; |
| | | import com.fzzy.igds.dzhwk.v1.ApiV1Service; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1Data2007; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1ReqDto; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.time.DateUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description è§£æè°·å·ä½ä¸ä¿¡æ¯ |
| | | * @Author CZT |
| | | * @Date 2025/6/05 14:46 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class ApiV1ServiceImpl2007 implements ApiV1Service { |
| | | |
| | | @Resource |
| | | private ColdValleyRepository repository; |
| | | |
| | | @Override |
| | | public String getInterfaceId() { |
| | | return "2007"; |
| | | } |
| | | |
| | | @Override |
| | | public void analysis(String dataStr, ApiV1ReqDto configData) { |
| | | |
| | | List<ApiV1Data2007> list = JSONObject.parseArray(dataStr, ApiV1Data2007.class); |
| | | if(null == list || list.isEmpty()){ |
| | | log.error("-----æªè·åå°è°·å·ä½ä¸ä¿¡æ¯ï¼ä¸è§£æ---------"); |
| | | return; |
| | | } |
| | | try { |
| | | ColdValley data; |
| | | for (ApiV1Data2007 apiData : list) { |
| | | data = new ColdValley(); |
| | | |
| | | BeanUtils.copyProperties(apiData, data); |
| | | |
| | | data.setCompanyId(configData.getSign()); |
| | | data.setDeptId(configData.getDeptId()); |
| | | |
| | | data.setKssj(DateUtils.parseDate(apiData.getKssj(), "yyyy-MM-dd HH:mm:ss")); |
| | | data.setJssj(DateUtils.parseDate(apiData.getJssj(), "yyyy-MM-dd HH:mm:ss")); |
| | | data.setZhgxsj(DateUtils.parseDate(apiData.getZhgxsj(), "yyyy-MM-dd HH:mm:ss")); |
| | | |
| | | repository.save(data); |
| | | } |
| | | }catch (Exception e){ |
| | | log.error("-----è§£æé误={}---------", e.toString()); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.fzzy.igds.dzhwk.domain.N2Filling; |
| | | import com.fzzy.igds.dzhwk.service.repository.N2FillingRepository; |
| | | import com.fzzy.igds.dzhwk.v1.ApiV1Service; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1Data2008; |
| | | import com.fzzy.igds.dzhwk.v1.dto.ApiV1ReqDto; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.time.DateUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description è§£æå
æ°®æ°è°ä½ä¸ä¿¡æ¯ |
| | | * @Author CZT |
| | | * @Date 2025/6/04 20:11 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class ApiV1ServiceImpl2008 implements ApiV1Service { |
| | | |
| | | @Resource |
| | | private N2FillingRepository repository; |
| | | |
| | | @Override |
| | | public String getInterfaceId() { |
| | | return "2008"; |
| | | } |
| | | |
| | | @Override |
| | | public void analysis(String dataStr, ApiV1ReqDto configData) { |
| | | |
| | | List<ApiV1Data2008> list = JSONObject.parseArray(dataStr, ApiV1Data2008.class); |
| | | if(null == list || list.isEmpty()){ |
| | | log.error("-----æªè·åå°ä¿¡æ¯ï¼ä¸è§£æ---------"); |
| | | return; |
| | | } |
| | | try { |
| | | N2Filling data; |
| | | for (ApiV1Data2008 apiData : list) { |
| | | data = new N2Filling(); |
| | | |
| | | BeanUtils.copyProperties(apiData, data); |
| | | |
| | | data.setCompanyId(configData.getSign()); |
| | | data.setDeptId(configData.getDeptId()); |
| | | |
| | | data.setKssj(DateUtils.parseDate(apiData.getKssj(), "yyyy-MM-dd HH:mm:ss")); |
| | | data.setJssj(DateUtils.parseDate(apiData.getJssj(), "yyyy-MM-dd HH:mm:ss")); |
| | | data.setZhgxsj(DateUtils.parseDate(apiData.getZhgxsj(), "yyyy-MM-dd HH:mm:ss")); |
| | | |
| | | repository.save(data); |
| | | } |
| | | }catch (Exception e){ |
| | | log.error("-----è§£æé误={}---------", e.toString()); |
| | | } |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.v1.util; |
| | | |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import javax.crypto.Cipher; |
| | | import java.io.ByteArrayOutputStream; |
| | | import java.security.KeyFactory; |
| | | import java.security.PrivateKey; |
| | | import java.security.PublicKey; |
| | | import java.security.spec.PKCS8EncodedKeySpec; |
| | | import java.security.spec.X509EncodedKeySpec; |
| | | import java.util.Arrays; |
| | | import java.util.Base64; |
| | | |
| | | @Slf4j |
| | | public class ApiV1Utils { |
| | | |
| | | |
| | | public static final String KEY_ALGORITHM = "RSA"; |
| | | public static final String PRIVATE_KEY = "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAJGxqYyI/k6nYkm2nf4ggkAMViEvbnplbQqw6Qweu4neFXCC+iKY8cq5RZEj8JLfrm/gHBTPN8FF1sQIwWwsDV7UUc88DS5KwAi5JXBHMdcbh2tftkINr0YVn6rIgUBTbmPZ7Y8L2iW8psYsF9nxwvUUtcbFJXIMJfi39Qxl0NQvAgMBAAECgYBKWLHfoCy9sFbMrN7UxnwQ+PqetpiW5tkNApf58ljbErQ4FO5V51xDieXBGejy2igmuOM7jz6xZtUgdiNV8uji/RtiNRqsBekVBPMeYAnPwA4GQ0HNwyHJ3ebJNQqT9bwrk8QpRUuCnrx/U1l7P1QNR5o52H1HpEKPlS0ga0fuQQJBAMdiSFYKt8/PwsYclvU/GqXrPy4cxMBhtE/ZssH9KourxnJcyfRz7EPgfSZykxlGHn8j/r8C2XxtAIYW6mRckqECQQC7EIZCZ3eV8abSIB33oKmw2jZlPQrHXMt8DWz8FYbNIA/9bvk9e9O42iQwMUtHfOMcNMWbcvKR/J+83bcE08TPAkA1ErdYl+/H1HDvVUrlq0+HnPArcSL6ZsedfcB0nNRHa4kehg6IEJdylf4aTuNTFfQmOcmkxLhpw4YhK1ZnMrEhAkEAuiMLNXA3MmCumk+TAiBAOdYoYjyHSTEw2VOSqpPQ+rN4tbmDEIbyefG2KK4kNhIy+pIYP0H11QYG/KuxvX/rSQJBALs0TqUgcGOp9+IkOq4jCXiVkP5/r7JWinQ4d6bYhJ4wspQYloYFCHljKKXtst1m8I3PC+vJY8R6va/3xtQKT8U="; |
| | | |
| | | private static final String CHARSET = "utf-8"; |
| | | |
| | | private static final int RESERVE_BYTES = 11; |
| | | |
| | | private static final int KEYSIZE = 1024;// å¯é¥ä½æ° |
| | | |
| | | // 2048 bits ç RSA å¯é¥å¯¹ï¼æå¤§è§£å¯å¯æå¤§å° |
| | | private static final int MAX_DECRYPT_BLOCK = KEYSIZE / 8; |
| | | |
| | | // 2048 bits ç RSA å¯é¥å¯¹ï¼æå¤§å 坿æå¤§å° |
| | | private static final int MAX_ENCRYPT_BLOCK = MAX_DECRYPT_BLOCK - RESERVE_BYTES; |
| | | |
| | | // è·åå
¬é¥ |
| | | public static PublicKey getPublicKey(String publicKeyString) throws Exception { |
| | | byte[] publicKeyByte = Base64.getDecoder().decode(publicKeyString); |
| | | X509EncodedKeySpec keySpec = new X509EncodedKeySpec(publicKeyByte); |
| | | KeyFactory keyFactory = KeyFactory.getInstance(KEY_ALGORITHM); |
| | | return keyFactory.generatePublic(keySpec); |
| | | } |
| | | |
| | | // è·åç§é¥ |
| | | public static PrivateKey getPrivateKey(String privateKeyString) throws Exception { |
| | | byte[] privateKeyByte = Base64.getDecoder().decode(privateKeyString); |
| | | PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(privateKeyByte); |
| | | KeyFactory keyFactory = KeyFactory.getInstance(KEY_ALGORITHM); |
| | | return keyFactory.generatePrivate(keySpec); |
| | | } |
| | | |
| | | /** |
| | | * ç§é¥è§£å¯ |
| | | * |
| | | * @param secretText å¾
è§£å¯ç坿å符串 |
| | | * @param privateKeyStr ç§é¥ |
| | | * @return è§£å¯åçææ |
| | | */ |
| | | public static String decrypt(String secretText, String privateKeyStr) { |
| | | try { |
| | | if (StringUtils.isEmpty(privateKeyStr)) { |
| | | privateKeyStr = PRIVATE_KEY; |
| | | } |
| | | // çæç§é¥ |
| | | Cipher cipher = Cipher.getInstance(KEY_ALGORITHM); |
| | | cipher.init(Cipher.DECRYPT_MODE, getPrivateKey(privateKeyStr)); |
| | | // å¯æè§£ç |
| | | byte[] data = Base64.getDecoder().decode(secretText); |
| | | |
| | | // è¿åUTF-8ç¼ç çè§£å¯ä¿¡æ¯ |
| | | int inputLen = data.length; |
| | | ByteArrayOutputStream out = new ByteArrayOutputStream(); |
| | | int offSet = 0; |
| | | byte[] cache; |
| | | int i = 0; |
| | | // å¯¹æ°æ®åæ®µè§£å¯ |
| | | while (inputLen - offSet > 0) { |
| | | if (inputLen - offSet > MAX_DECRYPT_BLOCK) { |
| | | cache = cipher.doFinal(data, offSet, MAX_DECRYPT_BLOCK); |
| | | } else { |
| | | cache = cipher.doFinal(data, offSet, inputLen - offSet); |
| | | } |
| | | out.write(cache, 0, cache.length); |
| | | i++; |
| | | offSet = i * MAX_DECRYPT_BLOCK; |
| | | } |
| | | out.close(); |
| | | return out.toString(CHARSET); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException("è§£å¯å符串[" + secretText + "]æ¶éå°å¼å¸¸", e); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * å
¬é¥å å¯ |
| | | * |
| | | * @param text å¾
å å¯çææå符串 |
| | | * @param publicKeyStr å
¬é¥ |
| | | * @return å å¯åç坿 |
| | | */ |
| | | public static String encrypt(String text, String publicKeyStr) { |
| | | String result = ""; |
| | | try { |
| | | // log.info("ææå符串为:[{}]", text); |
| | | // å å¯ |
| | | Cipher cipher = Cipher.getInstance(KEY_ALGORITHM); |
| | | cipher.init(Cipher.ENCRYPT_MODE, getPublicKey(publicKeyStr)); |
| | | byte[] textArray = text.getBytes(); |
| | | int textLength = textArray.length; |
| | | // log.info("å å¯åèæ°={}", textLength); |
| | | // æå¤§å å¯åèæ°ï¼è¶
åºæå¤§åèæ°éè¦åç»å å¯ |
| | | int MAX_ENCRYPT_BLOCK = 117; |
| | | // æ è¯ |
| | | int offSet = 0; |
| | | byte[] resultBytes = {}; |
| | | byte[] cache = {}; |
| | | while (textLength - offSet > 0) { |
| | | if (textLength - offSet > MAX_ENCRYPT_BLOCK) { |
| | | cache = cipher.doFinal(textArray, offSet, MAX_ENCRYPT_BLOCK); |
| | | offSet += MAX_ENCRYPT_BLOCK; |
| | | } else { |
| | | cache = cipher.doFinal(textArray, offSet, textLength - offSet); |
| | | offSet = textLength; |
| | | } |
| | | resultBytes = Arrays.copyOf(resultBytes, resultBytes.length + cache.length); |
| | | System.arraycopy(cache, 0, resultBytes, resultBytes.length - cache.length, cache.length); |
| | | } |
| | | result = Base64.getEncoder().encodeToString(resultBytes); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException("å å¯å符串[" + text + "]æ¶éå°å¼å¸¸", e); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | String pri = "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAJGxqYyI/k6nYkm2nf4ggkAMViEvbnplbQqw6Qweu4neFXCC+iKY8cq5RZEj8JLfrm/gHBTPN8FF1sQIwWwsDV7UUc88DS5KwAi5JXBHMdcbh2tftkINr0YVn6rIgUBTbmPZ7Y8L2iW8psYsF9nxwvUUtcbFJXIMJfi39Qxl0NQvAgMBAAECgYBKWLHfoCy9sFbMrN7UxnwQ+PqetpiW5tkNApf58ljbErQ4FO5V51xDieXBGejy2igmuOM7jz6xZtUgdiNV8uji/RtiNRqsBekVBPMeYAnPwA4GQ0HNwyHJ3ebJNQqT9bwrk8QpRUuCnrx/U1l7P1QNR5o52H1HpEKPlS0ga0fuQQJBAMdiSFYKt8/PwsYclvU/GqXrPy4cxMBhtE/ZssH9KourxnJcyfRz7EPgfSZykxlGHn8j/r8C2XxtAIYW6mRckqECQQC7EIZCZ3eV8abSIB33oKmw2jZlPQrHXMt8DWz8FYbNIA/9bvk9e9O42iQwMUtHfOMcNMWbcvKR/J+83bcE08TPAkA1ErdYl+/H1HDvVUrlq0+HnPArcSL6ZsedfcB0nNRHa4kehg6IEJdylf4aTuNTFfQmOcmkxLhpw4YhK1ZnMrEhAkEAuiMLNXA3MmCumk+TAiBAOdYoYjyHSTEw2VOSqpPQ+rN4tbmDEIbyefG2KK4kNhIy+pIYP0H11QYG/KuxvX/rSQJBALs0TqUgcGOp9+IkOq4jCXiVkP5/r7JWinQ4d6bYhJ4wspQYloYFCHljKKXtst1m8I3PC+vJY8R6va/3xtQKT8U="; |
| | | String s = "{\"sign\":\"5363\",\"deptId\":\"5363_001\",\"reqDate\":\"2025-01-22 17:16:23\",\"data\":[{\"jcdj\":\"202501220001\",\"jcsj\":\"2025-01-22 17:16:23\",\"hwdm\":\"100010101\",\"cfww\":17.5,\"cfws\":75.5,\"cfnw\":17.5,\"cfns\":75.5,\"lszgw\":17.5,\"lszdw\":17.5,\"lspjw\":17.5,\"lswdzjh\":\"27.7,1,1,1|25.1,1,1,2|24.6,1,1,3|26.3,1,2,1|19.3,1,2,2|19.3,1,2,3|27.7,2,1,1|25.1,2,1,2|24.6,2,1,3|26.3,2,2,1|19.3,2,2,2|19.3,2, 2,3\",\"weather\":\"æ´\",\"jcr\":\"æ£æµäºº\",\"remarks\":\"夿³¨ä¿¡æ¯\"},{\"jcdj\":\"202501220001\",\"jcsj\":\"2025-01-22 17:16:23\",\"hwdm\":\"100010101\",\"cfww\":17.5,\"cfws\":75.5,\"cfnw\":17.5,\"cfns\":75.5,\"lszgw\":17.5,\"lszdw\":17.5,\"lspjw\":17.5,\"lswdzjh\":\"27.7,1,1,1|25.1,1,1,2|24.6,1,1,3|26.3,1,2,1|19.3,1,2,2|19.3,1,2,3|27.7,2,1,1|25.1,2,1,2|24.6,2,1,3|26.3,2,2,1|19.3,2,2,2|19.3,2, 2,3\",\"weather\":\"æ´\",\"jcr\":\"æ£æµäºº\",\"remarks\":\"夿³¨ä¿¡æ¯111\"}]}"; |
| | | String pub = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCRsamMiP5Op2JJtp3+IIJADFYhL256ZW0KsOkMHruJ3hVwgvoimPHKuUWRI/CS365v4BwUzzfBRdbECMFsLA1e1FHPPA0uSsAIuSVwRzHXG4drX7ZCDa9GFZ+qyIFAU25j2e2PC9olvKbGLBfZ8cL1FLXGxSVyDCX4t/UMZdDULwIDAQAB"; |
| | | log.info("ææå符串:{}", s); |
| | | log.info("å
¬é¥:{}", pub); |
| | | String rsaPublicKey = encrypt(s, pub); |
| | | log.info("å
¬é¥å å¯å坿:{}", rsaPublicKey); |
| | | |
| | | String decrypt = decrypt(rsaPublicKey, pri); |
| | | log.info("è§£å¯åææ:{}", decrypt); |
| | | |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ViewConfig> |
| | | <Arguments/> |
| | | <Context/> |
| | | <Model> |
| | | <DataType name="dtMain"> |
| | | <Property name="creationType">com.fzzy.igds.dzhwk.domain.DicSysConf</Property> |
| | | <PropertyDef name="id"> |
| | | <Property></Property> |
| | | <Property name="label">ç¼å·</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property></Property> |
| | | <Property name="label">ç»ç»ç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="grainAuto"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®æ
æ¹æ¬¡èªå¨ä¼å</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="code">N</Property> |
| | | <Property name="name">å
³é</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="code">Y</Property> |
| | | <Property name="name">å¼å¯</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="grainErrorAuto"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®æ
å¼å¸¸èªå¨å¤ç</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="code">N</Property> |
| | | <Property name="name">å
³é</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="code">Y</Property> |
| | | <Property name="name">å¼å¯</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="grainMaxAuto"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®æ
髿¸©ä¼å</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="code">N</Property> |
| | | <Property name="name">å
³é</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="code">Y</Property> |
| | | <Property name="name">å¼å¯</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="grainMoreTag"> |
| | | <Property></Property> |
| | | <Property name="label">ä¸åæºå¤ä»</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="code">N</Property> |
| | | <Property name="name">å
³é</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="code">Y</Property> |
| | | <Property name="name">å¼å¯</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="grainOffset"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">åç§»é</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="warnToWxTag"> |
| | | <Property></Property> |
| | | <Property name="label">è¦åæ¨é微信å¯ç¨</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="code">N</Property> |
| | | <Property name="name">å
³é</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="code">Y</Property> |
| | | <Property name="name">å¼å¯</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="intervalTime"> |
| | | <Property name="dataType">int</Property> |
| | | <Property name="label">æ§è¡é´éæ¶é´</Property> |
| | | <Property name="displayFormat">0.0 ç§</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="intervalGas"> |
| | | <Property name="dataType">int</Property> |
| | | <Property name="label">æ°ä½æ£æµé´é</Property> |
| | | <Property name="displayFormat">0.0 ç§</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="intervalPest"> |
| | | <Property name="dataType">int</Property> |
| | | <Property name="label">è«å®³æ£æµé´é</Property> |
| | | <Property name="displayFormat">0.0 ç§</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="grainAddPoint"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®æ
ç¹èµ°å¿å¼å¯</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="code">N</Property> |
| | | <Property name="name">å
³é</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="code">Y</Property> |
| | | <Property name="name">å¼å¯</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="quantityPath"> |
| | | <Property></Property> |
| | | <Property name="label">æ°éæ£æµæå¡å°å</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="hwkApiPath"> |
| | | <Property></Property> |
| | | <Property name="label">è´§ä½å¡æ¥å£è·¯å¾</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="sysName"> |
| | | <Property></Property> |
| | | <Property name="label">ç³»ç»åç§°</Property> |
| | | <Property name="required">true</Property> |
| | | <Validator name="validator1" type="length"> |
| | | <Property name="maxLength">8</Property> |
| | | <Property name="minLength">1</Property> |
| | | <Property name="resultMessage">é¿åº¦è¦æ±1-8个æ±å</Property> |
| | | </Validator> |
| | | </PropertyDef> |
| | | <PropertyDef name="threePath"> |
| | | <Property></Property> |
| | | <Property name="label">ä¸ç»´å¯è§åè·¯å¾</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="screeName"> |
| | | <Property></Property> |
| | | <Property name="label">大å±åç§°</Property> |
| | | <Property name="required">true</Property> |
| | | <Validator name="validator1" type="length"> |
| | | <Property name="maxLength">20</Property> |
| | | <Property name="minLength">1</Property> |
| | | <Property name="resultMessage">é¿åº¦è¦æ±1-14个æ±å</Property> |
| | | </Validator> |
| | | </PropertyDef> |
| | | <PropertyDef name="support"> |
| | | <Property></Property> |
| | | <Property name="label">ææ¯æ¯æ</Property> |
| | | <Property name="required">true</Property> |
| | | <Validator name="validator1" type="length"> |
| | | <Property name="maxLength">25</Property> |
| | | <Property name="minLength">1</Property> |
| | | <Property name="resultMessage">é¿åº¦è¦æ±1-25个æ±å</Property> |
| | | </Validator> |
| | | </PropertyDef> |
| | | <PropertyDef name="email"> |
| | | <Property></Property> |
| | | <Property name="label">å
¬å¸é®ç®±</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="phone"> |
| | | <Property></Property> |
| | | <Property name="label">å
¬å¸çµè¯</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="website"> |
| | | <Property></Property> |
| | | <Property name="label">å
¬å¸ç½ç«</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="address"> |
| | | <Property></Property> |
| | | <Property name="label">å
¬å¸å°å</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | | <View layout="padding:5;regionPadding:5"> |
| | | <ClientEvent name="onReady">view.get("#dialogPwd").show();</ClientEvent> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <DataSet id="dsMain"> |
| | | <Property name="dataProvider">sysConfPR#getSysConf</Property> |
| | | <Property name="dataType">dtMain</Property> |
| | | </DataSet> |
| | | <Container layout="regionPadding:10" layoutConstraint="top"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <Property name="height">55</Property> |
| | | <Property name="contentOverflow">hidden</Property> |
| | | <Label layoutConstraint="left"> |
| | | <Property name="text">èåæ ï¼</Property> |
| | | </Label> |
| | | <Button id="btnUpdate" layoutConstraint="left"> |
| | | <Property name="caption">确认修æ¹</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="action">updateData</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <Property name="caption">å·æ°ç¼å</Property> |
| | | <Property name="exClassName">btn2</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | <Property name="action">ajaxRefreshCache</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">window.location.reload();</ClientEvent> |
| | | <Property name="caption">éæ°éªè¯</Property> |
| | | <Property name="exClassName">btn4</Property> |
| | | <Property name="iconClass">fa fa-key</Property> |
| | | <Property name="icon">S</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <Property name="caption">å·æ°ææç¼å</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | <Property name="action">ajaxRefreshCacheALL</Property> |
| | | </Button> |
| | | </Container> |
| | | <Panel> |
| | | <Property name="caption">é«çº§ç³»ç»åæ°é
ç½®</Property> |
| | | <Property name="iconClass">fa fa-cog</Property> |
| | | <Property name="tags">tagShow</Property> |
| | | <Property name="visible">false</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">ï¼</Property> |
| | | <Property name="labelWidth">140</Property> |
| | | <Property name="cols">*,*,*,*</Property> |
| | | <Control/> |
| | | <AutoFormElement> |
| | | <Property name="name">grainAuto</Property> |
| | | <Property name="property">grainAuto</Property> |
| | | <Property name="hideMode">display</Property> |
| | | <Property name="visible">false</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Label layoutConstraint="colSpan:2"> |
| | | <Property name="text">说æï¼å¼å¯åï¼ç²®æ
æ¹æ¬¡æ ¹æ®ä¸ä¸ä¸ªæ¹æ¬¡èªå¨ä¼å</Property> |
| | | <Property name="hideMode">display</Property> |
| | | <Property name="visible">false</Property> |
| | | </Label> |
| | | <Control> |
| | | <Property name="hideMode">display</Property> |
| | | <Property name="visible">false</Property> |
| | | </Control> |
| | | <AutoFormElement> |
| | | <Property name="name">grainErrorAuto</Property> |
| | | <Property name="property">grainErrorAuto</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Label layoutConstraint="colSpan:2"> |
| | | <Property name="text">说æï¼å¼å¯åï¼ç²®æ
å¼å¸¸ç¹èªå¨ä¼å</Property> |
| | | </Label> |
| | | <Control/> |
| | | <AutoFormElement> |
| | | <Property name="name">grainMaxAuto</Property> |
| | | <Property name="property">grainMaxAuto</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Label layoutConstraint="colSpan:2"> |
| | | <Property name="text">说æï¼å¼å¯åï¼ç²®æ
髿¸©ç¹èªå¨ä¼åè°æ´</Property> |
| | | </Label> |
| | | <Control/> |
| | | <AutoFormElement> |
| | | <Property name="name">grainMoreTag</Property> |
| | | <Property name="property">grainMoreTag</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Label layoutConstraint="colSpan:2"> |
| | | <Property name="text">说æï¼ä¸åæºå¤ä»éè¦å¼å¯</Property> |
| | | </Label> |
| | | <Control/> |
| | | <AutoFormElement> |
| | | <Property name="name">intervalTime</Property> |
| | | <Property name="property">intervalTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Label layoutConstraint="colSpan:2"> |
| | | <Property name="text">说æï¼ç½ç»æ¨¡å¼=ãæ çº¿ãææ</Property> |
| | | </Label> |
| | | <Control/> |
| | | <AutoFormElement> |
| | | <Property name="name">intervalGas</Property> |
| | | <Property name="property">intervalGas</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">intervalPest</Property> |
| | | <Property name="property">intervalPest</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Label/> |
| | | <Control/> |
| | | <AutoFormElement> |
| | | <Property name="name">warnToWxTag</Property> |
| | | <Property name="property">warnToWxTag</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Label layoutConstraint="colSpan:2"> |
| | | <Property name="text">说æï¼å¼å¯å¾®ä¿¡è¦åéç¥åè½</Property> |
| | | </Label> |
| | | <Control/> |
| | | <AutoFormElement> |
| | | <Property name="name">grainAddPoint</Property> |
| | | <Property name="property">grainAddPoint</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Label layoutConstraint="colSpan:2"> |
| | | <Property name="text">说æï¼å¼å¯åæ¯æç²®æ
ç¹èµ°å¿æ¥ç</Property> |
| | | </Label> |
| | | </AutoForm> |
| | | </Children> |
| | | <Tools/> |
| | | </Panel> |
| | | <Panel> |
| | | <Property name="caption">ç³»ç»è¿ç»´åæ°é
ç½®</Property> |
| | | <Property name="iconClass">fa fa-cog</Property> |
| | | <Property name="tags">tagShow</Property> |
| | | <Property name="visible">false</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">ï¼</Property> |
| | | <Property name="labelWidth">140</Property> |
| | | <Property name="cols">*,*,*,*</Property> |
| | | <Control/> |
| | | <AutoFormElement> |
| | | <Property name="name">sysName</Property> |
| | | <Property name="property">sysName</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Label layoutConstraint="colSpan:2"> |
| | | <Property name="text">说æï¼ç³»ç»èåä¸é¢åç§°ï¼å¦æé
置为ï¼SUB_NAME 表示å½åæå±ååºåç§°</Property> |
| | | </Label> |
| | | <Control/> |
| | | <AutoFormElement> |
| | | <Property name="name">screeName</Property> |
| | | <Property name="property">screeName</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Label layoutConstraint="colSpan:2"> |
| | | <Property name="text">说æï¼å¤§å±åç§°ï¼å¦æé
置为ï¼SUB_NAMEæºæ
§ç²®åºç»¼å大å±ï¼è¡¨ç¤ºï¼XXç²®åºæºæ
§ç²®åºç»¼å大å±</Property> |
| | | </Label> |
| | | <Control/> |
| | | <AutoFormElement> |
| | | <Property name="name">support</Property> |
| | | <Property name="property">support</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">website</Property> |
| | | <Property name="property">website</Property> |
| | | <Editor> |
| | | <TextEditor> |
| | | <Property name="blankText"> -- å¿
须以 http:// å¼å¤´--</Property> |
| | | </TextEditor> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <Control/> |
| | | <Control/> |
| | | <AutoFormElement> |
| | | <Property name="name">phone</Property> |
| | | <Property name="property">phone</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">email</Property> |
| | | <Property name="property">email</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Control/> |
| | | <Control/> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">address</Property> |
| | | <Property name="property">address</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Control/> |
| | | <Control/> |
| | | <AutoFormElement> |
| | | <Property name="name">quantityPath</Property> |
| | | <Property name="property">quantityPath</Property> |
| | | <Editor> |
| | | <TextEditor> |
| | | <Property name="blankText"> -- å¿
须以 http:// å¼å¤´--</Property> |
| | | </TextEditor> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <Label layoutConstraint="colSpan:2"> |
| | | <Property name="text">说æï¼æ°éå¨çº¿æ£æµç¬ç«æå¡å°å</Property> |
| | | </Label> |
| | | <Control/> |
| | | <AutoFormElement> |
| | | <Property name="name">threePath</Property> |
| | | <Property name="property">threePath</Property> |
| | | <Editor> |
| | | <TextEditor> |
| | | <Property name="blankText"> -- å¿
须以 http:// å¼å¤´--</Property> |
| | | </TextEditor> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <Label layoutConstraint="colSpan:2"> |
| | | <Property name="text">说æï¼ä¸ç»´å¯è§åç¬ç«æå¡å°å</Property> |
| | | </Label> |
| | | <Control/> |
| | | <AutoFormElement> |
| | | <Property name="name">hwkApiPath</Property> |
| | | <Property name="property">hwkApiPath</Property> |
| | | <Editor> |
| | | <TextEditor> |
| | | <Property name="blankText"> -- å¿
须以 http:// å¼å¤´--</Property> |
| | | </TextEditor> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <Label layoutConstraint="colSpan:2"> |
| | | <Property name="text">说æï¼çµåè´§ä½å¡æ¥å£è·¯å¾</Property> |
| | | </Label> |
| | | </AutoForm> |
| | | </Children> |
| | | <Tools/> |
| | | </Panel> |
| | | <AjaxAction id="ajaxRefreshCache"> |
| | | <Property name="service">sysConfPR#flushCacheSysConf</Property> |
| | | <Property name="successMessage">å·æ°æåï¼</Property> |
| | | <Property name="confirmMessage">ç¡®å®è¦å·æ°ç¼åä¹ï¼</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxCheckPwd"> |
| | | <Property name="service">sysConfPR#checkUserByPwd</Property> |
| | | </AjaxAction> |
| | | <UpdateAction id="updateData"> |
| | | <Property name="dataResolver">sysConfPR#saveSysConf</Property> |
| | | <Property name="confirmMessage">ç¡®å®è¦æ§è¡æ´æ°ä¹ï¼</Property> |
| | | <Property name="successMessage">æ°æ®æ´æ°å®æï¼ï¼ï¼</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <AjaxAction id="ajaxRefreshCacheALL"> |
| | | <Property name="service">systemRunner#flushAllCache</Property> |
| | | <Property name="successMessage">å·æ°æåï¼</Property> |
| | | <Property name="confirmMessage">ç¡®å®è¦å·æ°ææç¼åä¹ï¼</Property> |
| | | </AjaxAction> |
| | | <Dialog id="dialogPwd"> |
| | | <Property name="caption">äºæ¬¡å¯ç éªè¯</Property> |
| | | <Buttons> |
| | | <Button> |
| | | <ClientEvent name="onClick">var pwd = view.get("#passwordEditor").get("value");
 |
| | | view.get("#ajaxCheckPwd").set("parameter",pwd).execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | }else{
 |
| | | self.get("parent").close();
 |
| | | view.get("^tagShow").set("visible",true);
 |
| | | view.get("#dsMain").flushAsync();
 |
| | | }
 |
| | | });</ClientEvent> |
| | | <Property name="width">85</Property> |
| | | <Property name="caption">ç¡®å®</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">self.get("parent").close();
 |
| | | </ClientEvent> |
| | | <Property name="width">85</Property> |
| | | <Property name="caption">åæ¶</Property> |
| | | <Property name="exClassName">btn3</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <PasswordEditor id="passwordEditor" layoutConstraint="padding:10"/> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | </View> |
| | | </ViewConfig> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys.pr; |
| | | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.fzzy.igds.dzhwk.domain.DicSysConf; |
| | | import com.fzzy.igds.sys.SysConfService; |
| | | import com.fzzy.igds.util.ContextUtil; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.utils.ShiroUtils; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.apache.shiro.authc.AuthenticationException; |
| | | import org.apache.shiro.authc.UsernamePasswordToken; |
| | | import org.apache.shiro.subject.Subject; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * @Description ç³»ç»é
置管ç |
| | | * @Author CZT |
| | | * @Date 2024/11/19 18:36 |
| | | */ |
| | | @Component |
| | | public class SysConfPR { |
| | | |
| | | @Resource |
| | | private SysConfService sysConfService; |
| | | |
| | | /** |
| | | * sysConfPR#getSysConf |
| | | * |
| | | * @return è·åæ°æ®åºä¸çé
ç½®ï¼å¦ææ²¡æåå建ä¸ä¸ªæ°å¯¹è±¡ |
| | | */ |
| | | @DataProvider |
| | | public DicSysConf getSysConf() { |
| | | return sysConfService.getSysConf(ContextUtil.getCompanyId()); |
| | | } |
| | | |
| | | /** |
| | | * sysConfPR#saveSysConf æ°æ®æ´æ° |
| | | * |
| | | * @return |
| | | */ |
| | | @DataResolver |
| | | public void saveSysConf(DicSysConf data) { |
| | | |
| | | DicSysConf sysConf = new DicSysConf(); |
| | | BeanUtils.copyProperties(data, sysConf); |
| | | sysConfService.saveSysConf(sysConf); |
| | | } |
| | | |
| | | /** |
| | | * sysConfPR#flushCacheSysConf |
| | | */ |
| | | @Expose |
| | | public void flushCacheSysConf() { |
| | | sysConfService.flushCacheSysConf(ContextUtil.getCompanyId()); |
| | | } |
| | | |
| | | /** |
| | | * sysConfPR#checkUserByPwd |
| | | * systemPR#checkUserByPwd |
| | | * å½åç»é人å¯ç éªè¯ |
| | | * @param pwd |
| | | * @return |
| | | */ |
| | | @Expose |
| | | public String checkUserByPwd(String pwd){ |
| | | SysUser user = ShiroUtils.getSysUser(); |
| | | if(null == user){ |
| | | return "æ¨å·²ç»æçº¿ï¼è¯·éæ°ç»å½å确认ï¼"; |
| | | } |
| | | UsernamePasswordToken token = new UsernamePasswordToken(user.getLoginName(), pwd, false); |
| | | Subject subject = SecurityUtils.getSubject(); |
| | | try { |
| | | subject.login(token); |
| | | return null; |
| | | } catch (AuthenticationException e) { |
| | | return "å¯ç é误"; |
| | | } |
| | | } |
| | | } |
| | |
| | | <version>${igds.dzhwk.version}</version> |
| | | </dependency> |
| | | |
| | | <!-- æ¥å£å
--> |
| | | <dependency> |
| | | <groupId>com.fzzy</groupId> |
| | | <artifactId>igds-dzhwk-inte</artifactId> |
| | | <version>${igds.dzhwk.version}</version> |
| | | </dependency> |
| | | |
| | | <!-- d7ç®è¤å
--> |
| | | <dependency> |
| | | <groupId>dorado.skins</groupId> |
| | |
| | | <module>igds-dzhwk-view</module> |
| | | <module>igds-dzhwk-web</module> |
| | | <module>igds-dzhwk-doc</module> |
| | | <module>igds-dzhwk-inte</module> |
| | | </modules> |
| | | |
| | | </project> |