¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61; |
| | | |
| | | import com.fzzy.api.data.ApiParam; |
| | | import com.fzzy.api.data.PushProtocol; |
| | | import com.fzzy.api.data.SyncProtocol; |
| | | import com.fzzy.api.service.SyncService13; |
| | | import com.fzzy.async.fzzy61.impl.*; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | /** |
| | | * @Desc: ç²®é£ç®¡çä¿¡æ¯åæ¥ |
| | | * @author: czt |
| | | * @update-time: 2023/08/14 |
| | | */ |
| | | @Component |
| | | public class Fzzy61SyncService13 implements SyncService13 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1302 fzzySync1302; |
| | | @Autowired |
| | | private Fzzy61Sync1303 fzzySync1303; |
| | | @Autowired |
| | | private Fzzy61Sync1304 fzzySync1304; |
| | | @Autowired |
| | | private Fzzy61Sync1305 fzzySync1305; |
| | | @Autowired |
| | | private Fzzy61Sync1306 fzzySync1306; |
| | | @Autowired |
| | | private Fzzy61Sync1307 fzzySync1307; |
| | | @Autowired |
| | | private Fzzy61Sync1310 fzzySync1310; |
| | | @Autowired |
| | | private Fzzy61Sync1023 fzzySync1023; |
| | | @Autowired |
| | | private Fzzy61Sync1311 fzzySync1311; |
| | | @Autowired |
| | | private Fzzy61Sync9201 fzzySync9201; |
| | | @Autowired |
| | | private Fzzy61Sync2103 fzzy61Sync2103; |
| | | |
| | | @Override |
| | | public String getProtocol() { |
| | | return SyncProtocol.FZZY_V61_GB.getCode(); |
| | | } |
| | | |
| | | @Override |
| | | public void syncData(ApiParam param) { |
| | | |
| | | |
| | | /*-----åçç¬ææ¥å£ä¿¡æ¯åæ¥-----*/ |
| | | if (StringUtils.isNotEmpty(param.getPushProtocol()) && (PushProtocol.SB_GD_2022.getCode().equals(param.getPushProtocol())||PushProtocol.SB_GD_2023.getCode().equals(param.getPushProtocol()))) { |
| | | //广ä¸çå¹³å°2022çï¼éè¦åæ¥çè¸å¤æ¡ä¿¡æ¯ |
| | | //çè¸å¤æ¡æ°æ®åæ¥ |
| | | fzzySync1023.syncData(param.getKqdm(), param.getDeptId(), param.getStart(), param.getEnd()); |
| | | fzzySync9201.syncData(param.getKqdm(), param.getDeptId(), param.getStart(), param.getEnd()); |
| | | } |
| | | if (StringUtils.isNotEmpty(param.getPushProtocol()) && PushProtocol.SB_SH_2023.getCode().equals(param.getPushProtocol())) { |
| | | //䏿µ·å¸å¹³å°2023çï¼éè¦åæ¥ç²®æ
设å¤é
ç½®ä¿¡æ¯ |
| | | |
| | | //åæ¥ç²®æ
设å¤é
ç½®ä¿¡æ¯ |
| | | fzzy61Sync2103.syncData(param.getKqdm(), param.getDeptId(), param.getStart(), param.getEnd()); |
| | | //è§é¢çæ§ä¿¡æ¯åæ¥ |
| | | fzzySync1311.syncData(param.getKqdm(), param.getDeptId(), param.getStart(), param.getEnd()); |
| | | } |
| | | |
| | | /*-----å
Œ
±æ¥å£-----*/ |
| | | |
| | | //æ¸©æ¹¿åº¦æ£æµæ°æ®åæ¥ |
| | | fzzySync1302.syncData(param.getKqdm(), param.getDeptId(), param.getStart(), param.getEnd()); |
| | | |
| | | //è«å®³æ£æµåæ¥ |
| | | fzzySync1303.syncData(param.getKqdm(), param.getDeptId(), param.getStart(), param.getEnd()); |
| | | |
| | | //æ°ä½æ£æµåæ¥ |
| | | fzzySync1304.syncData(param.getKqdm(), param.getDeptId(), param.getStart(), param.getEnd()); |
| | | |
| | | //è´¨æ£åæ¥ |
| | | fzzySync1310.syncData(param.getKqdm(), param.getDeptId(), param.getStart(), param.getEnd()); |
| | | |
| | | //éé£ä½ä¸ä¿¡æ¯åæ¥ |
| | | fzzySync1305.syncData(param.getKqdm(), param.getDeptId(), param.getStart(), param.getEnd()); |
| | | |
| | | //çè¸ä½ä¸ä¿¡æ¯åæ¥ |
| | | fzzySync1306.syncData(param.getKqdm(), param.getDeptId(), param.getStart(), param.getEnd()); |
| | | |
| | | //ä»å
è§é¢å¾åææåæ¥ |
| | | fzzySync1307.syncData(param.getKqdm(), param.getDeptId(), param.getStart(), param.getEnd()); |
| | | |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61; |
| | | |
| | | import com.fzzy.api.data.ApiParam; |
| | | import com.fzzy.api.data.SyncProtocol; |
| | | import com.fzzy.api.service.SyncService14; |
| | | import com.fzzy.async.fzzy61.impl.*; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | /** |
| | | * FZZY-ç²®åºç³»ç»4.0å¯¹æ¥ |
| | | */ |
| | | @Component |
| | | public class Fzzy61SyncService14 implements SyncService14 { |
| | | |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1403 fzzy61Sync1403; |
| | | @Autowired |
| | | private Fzzy61Sync1404 fzzy61Sync1404; |
| | | @Autowired |
| | | private Fzzy61Sync1504 fzzy61Sync1504; |
| | | @Autowired |
| | | private Fzzy61Sync1505 fzzy61Sync1505; |
| | | @Autowired |
| | | private Fzzy61Sync1506 fzzy61Sync1506; |
| | | @Autowired |
| | | private Fzzy61Sync1507 fzzy61Sync1507; |
| | | @Autowired |
| | | private Fzzy61Sync1508 fzzy61Sync1508; |
| | | @Autowired |
| | | private Fzzy61Sync1509 fzzy61Sync1509; |
| | | @Autowired |
| | | private Fzzy61Sync1510 fzzy61Sync1510; |
| | | |
| | | |
| | | @Override |
| | | public String getProtocol() { |
| | | return SyncProtocol.FZZY_V61_GB.getCode(); |
| | | } |
| | | |
| | | @Override |
| | | public void syncData(ApiParam param) { |
| | | |
| | | //è½®æ¢è®¡å忥 |
| | | fzzy61Sync1403.syncData(param.getKqdm(), param.getDeptId(), param.getStart(), param.getEnd()); |
| | | |
| | | //è½®æ¢è®¡åæç»åæ¥ |
| | | fzzy61Sync1404.syncData(param.getKqdm(), param.getDeptId(), param.getStart(), param.getEnd()); |
| | | |
| | | //åæ¥è´¢å¡ä¿¡æ¯ |
| | | // fzzy61Sync1504.syncData(param.getKqdm(), param.getDeptId(), param.getStart(), param.getEnd()); |
| | | // fzzy61Sync1505.syncData(param.getKqdm(), param.getDeptId(), param.getStart(), param.getEnd()); |
| | | // fzzy61Sync1506.syncData(param.getKqdm(), param.getDeptId(), param.getStart(), param.getEnd()); |
| | | // fzzy61Sync1507.syncData(param.getKqdm(), param.getDeptId(), param.getStart(), param.getEnd()); |
| | | // fzzy61Sync1508.syncData(param.getKqdm(), param.getDeptId(), param.getStart(), param.getEnd()); |
| | | // fzzy61Sync1509.syncData(param.getKqdm(), param.getDeptId(), param.getStart(), param.getEnd()); |
| | | // fzzy61Sync1510.syncData(param.getKqdm(), param.getDeptId(), param.getStart(), param.getEnd()); |
| | | |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | /** |
| | | * @Author: YYC |
| | | * @Description: |
| | | * @DateTime: 2024-12-19 14:23 |
| | | **/ |
| | | |
| | | import com.alibaba.fastjson.annotation.JSONField; |
| | | 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 czt |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "API_1504") |
| | | public class Fz61Api1504 implements Serializable { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * éè¿æ¥å£è·åçåä½è´¦å¥åï¼å¨å±ç«¯èªå¨äº§çè´¦å¥å· |
| | | */ |
| | | @Id |
| | | @PropertyDef(label = "è´¦å¥å·") |
| | | @Column(name = "nacctid", precision = 23) |
| | | private String nacctid; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 30) |
| | | @PropertyDef(label = "æå±ååº") |
| | | private String deptId; |
| | | |
| | | @PropertyDef(label = "è´¦å¥åç§°") |
| | | @Column(name = "cncctname", length = 256) |
| | | private String cncctname; |
| | | |
| | | @PropertyDef(label = "æ¬ä½å¸") |
| | | @Column(name = "ccurrency", length = 3) |
| | | private String ccurrency; |
| | | |
| | | @PropertyDef(label = "ä¼è®¡ä¸»ç®¡") |
| | | @Column(name = "cacctchief", length = 20) |
| | | private String cacctchief; |
| | | |
| | | @JSONField(format = "yyyyMM") |
| | | @PropertyDef(label = "å¯ç¨æé´", description = "yyyyMM") |
| | | @Column(name = "cperiodstart", length = 10) |
| | | private Date cperiodstart; |
| | | |
| | | @JSONField(format = "yyyy-MM-dd") |
| | | @PropertyDef(label = "å¯ç¨æ¥æ") |
| | | @Column(name = "cyearbmd", length = 10) |
| | | private Date cyearbmd; |
| | | |
| | | @PropertyDef(label = "æé´æ°", description = "é»è®¤12") |
| | | @Column(name = "nacctperiodnum") |
| | | private Integer nacctperiodnum; |
| | | |
| | | @PropertyDef(label = "ä¼è®¡å¶åº¦ä»£ç ", description = "11:ä¼ä¸ä¼è®¡ååå¶åº¦(ç²®é£2013ç)(é»è®¤ä»£ç å¼)") |
| | | @Column(name = "caccclasscode", length = 2) |
| | | private String caccclasscode; |
| | | |
| | | @PropertyDef(label = "ç§ç®çº§æ¬¡", description = "4-8:é»è®¤æå°å¼ä¸º4") |
| | | @Column(name = "naccgrade") |
| | | private Integer naccgrade; |
| | | |
| | | @PropertyDef(label = "ç§ç®ç¼ç è§å", description = "4222XXXX:é»è®¤åå级级é¿è§å为4222") |
| | | @Column(name = "cacccodestr", length = 40) |
| | | private String cacccodestr; |
| | | |
| | | @PropertyDef(label = "åä½åç§°") |
| | | @Column(name = "ccropname", length = 256) |
| | | private String ccropname; |
| | | |
| | | @PropertyDef(label = "åä½ä»£ç ") |
| | | @Column(name = "corgcode", length = 18) |
| | | private String corgcode; |
| | | |
| | | @PropertyDef(label = "æ¯æç»è´¦æ¥") |
| | | @Column(name = "nendday") |
| | | private Integer nendday; |
| | | |
| | | @JSONField(format = "yyyy-MM-dd HH:mm:ss") |
| | | @PropertyDef(label = "æåæ´æ°æ¶é´") |
| | | @Column(name = "zhgxsj") |
| | | private Date zhgxsj; |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | /** |
| | | * @Author: YYC |
| | | * @Description: |
| | | * @DateTime: 2024-12-19 14:23 |
| | | **/ |
| | | |
| | | import com.alibaba.fastjson.annotation.JSONField; |
| | | 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 czt |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "API_1505") |
| | | public class Fz61Api1505 implements Serializable { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * éè¿æ¥å£è·åçåä½è´¦å¥åï¼å¨å±ç«¯èªå¨äº§çè´¦å¥å· |
| | | */ |
| | | @Id |
| | | @Column(name = "ID_", precision = 110) |
| | | @JSONField(serialize = false) |
| | | private String id; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 30) |
| | | @PropertyDef(label = "æå±ååº") |
| | | private String deptId; |
| | | |
| | | @PropertyDef(label = "è´¦å¥å·") |
| | | @Column(name = "nacctid", length = 23) |
| | | private String nacctid; |
| | | |
| | | |
| | | @PropertyDef(label = "年度") |
| | | @Column(name = "cyear") |
| | | private Integer cyear; |
| | | |
| | | @PropertyDef(label = "ç§ç®ç¼ç ") |
| | | @Column(name = "ccode", length = 80) |
| | | private String ccode; |
| | | |
| | | @PropertyDef(label = "ç§ç®åç§°") |
| | | @Column(name = "cname", length = 256) |
| | | private String cname; |
| | | |
| | | @PropertyDef(label = "ç§ç®å
¨ç§°") |
| | | @Column(name = "callname", length = 65536) |
| | | private String callname; |
| | | |
| | | /** |
| | | * 1:èµäº§ç±» |
| | | * 2:è´åºç±» |
| | | * 3:å
±åç±» |
| | | * 4:ææè
æçç±» |
| | | * 5:ææ¬è´¹ç¨ç±» |
| | | * 6:æçç±» |
| | | */ |
| | | @PropertyDef(label = "ç§ç®ç±»å«") |
| | | @Column(name = "nclass", length = 9) |
| | | private String nclass; |
| | | /** |
| | | * (-1)-è´·æ¹ï¼1-åæ¹ |
| | | */ |
| | | @PropertyDef(label = "ä½é¢æ¹å") |
| | | @Column(name = "cdc") |
| | | private Integer cdc; |
| | | |
| | | @PropertyDef(label = "æ«çº§ç§ç®") |
| | | @Column(name = "bl") |
| | | private Integer bl; |
| | | |
| | | @PropertyDef(label = "ç§ç®çº§æ¬¡") |
| | | @Column(name = "ngrade") |
| | | private Integer ngrade; |
| | | |
| | | @PropertyDef(label = "æ°éç§ç®") |
| | | @Column(name = "bq") |
| | | private Integer bq; |
| | | |
| | | @PropertyDef(label = "æ°éåä½") |
| | | @Column(name = "cqunit") |
| | | private Integer cqunit; |
| | | |
| | | @PropertyDef(label = "ç°éç±»ç§ç®") |
| | | @Column(name = "bcash") |
| | | private Integer bcash; |
| | | |
| | | @PropertyDef(label = "é¶è¡ç±»ç§ç®") |
| | | @Column(name = "bbank") |
| | | private Integer bbank; |
| | | |
| | | @PropertyDef(label = "ç°éæµéç±»ç§ç®") |
| | | @Column(name = "bxjll") |
| | | private Integer bxjll; |
| | | |
| | | @PropertyDef(label = "å»ç»") |
| | | @Column(name = "bf") |
| | | private Integer bf; |
| | | |
| | | @JSONField(format = "yyyy-MM-dd HH:mm:ss") |
| | | @PropertyDef(label = "æåæ´æ°æ¶é´") |
| | | @Column(name = "zhgxsj") |
| | | private Date zhgxsj; |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | /** |
| | | * @Author: YYC |
| | | * @Description: |
| | | * @DateTime: 2024-12-19 14:23 |
| | | **/ |
| | | |
| | | import com.alibaba.fastjson.annotation.JSONField; |
| | | 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 czt |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "API_1506") |
| | | public class Fz61Api1506 implements Serializable { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * éè¿æ¥å£è·åçåä½è´¦å¥åï¼å¨å±ç«¯èªå¨äº§çè´¦å¥å· |
| | | */ |
| | | @Id |
| | | @Column(name = "ID_", precision = 110) |
| | | @JSONField(serialize = false) |
| | | private String id; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 30) |
| | | @PropertyDef(label = "æå±ååº") |
| | | private String deptId; |
| | | |
| | | @PropertyDef(label = "è´¦å¥å·") |
| | | @Column(name = "nacctid", length = 23) |
| | | private String nacctid; |
| | | |
| | | @PropertyDef(label = "æé´") |
| | | @Column(name = "cyear") |
| | | private Integer cyear; |
| | | |
| | | @PropertyDef(label = "年度") |
| | | @Column(name = "nno") |
| | | private Integer nno; |
| | | |
| | | @PropertyDef(label = "ç§ç®ç¼ç ") |
| | | @Column(name = "ccode", length = 80) |
| | | private String ccode; |
| | | |
| | | @PropertyDef(label = "æåæ¬ä½å¸ä½é¢") |
| | | @Column(name = "bm", precision = 20, scale = 4) |
| | | private Double bm; |
| | | |
| | | @PropertyDef(label = "ææ«æ¬ä½å¸ä½é¢") |
| | | @Column(name = "em", precision = 20, scale = 4) |
| | | private Double em; |
| | | |
| | | @PropertyDef(label = "æåæ°é") |
| | | @Column(name = "bqty", precision = 20, scale = 4) |
| | | private Double bqty; |
| | | |
| | | @PropertyDef(label = "ææ«æ°é") |
| | | @Column(name = "eqty", precision = 20, scale = 4) |
| | | private Double eqty; |
| | | /** |
| | | * 1:åæ¹ |
| | | * -1:è´·æ¹ |
| | | */ |
| | | @PropertyDef(label = "ä½é¢æ¹å") |
| | | @Column(name = "cdc") |
| | | private Integer cdc; |
| | | |
| | | @PropertyDef(label = "åæ¹æ¬ä½å¸åçé¢") |
| | | @Column(name = "dm", precision = 20, scale = 4) |
| | | private Double dm; |
| | | |
| | | @PropertyDef(label = "è´·æ¹æ¬ä½å¸åçé¢") |
| | | @Column(name = "cm", precision = 20, scale = 4) |
| | | private Double cm; |
| | | |
| | | @PropertyDef(label = "åæ¹åçæ°é") |
| | | @Column(name = "dq", precision = 20, scale = 4) |
| | | private Double dq; |
| | | |
| | | @PropertyDef(label = "è´·æ¹åçæ°é") |
| | | @Column(name = "cq", precision = 20, scale = 4) |
| | | private Double cq; |
| | | |
| | | @PropertyDef(label = "æåå¤å¸ä½é¢") |
| | | @Column(name = "bfm", precision = 20, scale = 4) |
| | | private Double bfm; |
| | | |
| | | @PropertyDef(label = "ææ«å¤å¸ä½é¢") |
| | | @Column(name = "efm", precision = 20, scale = 4) |
| | | private Double efm; |
| | | |
| | | @PropertyDef(label = "åæ¹å¤å¸åçé¢") |
| | | @Column(name = "dfm", precision = 20, scale = 4) |
| | | private Double dfm; |
| | | |
| | | @PropertyDef(label = "è´·æ¹å¤å¸åçé¢") |
| | | @Column(name = "cfm", precision = 20, scale = 4) |
| | | private Double cfm; |
| | | |
| | | @JSONField(format = "yyyy-MM-dd HH:mm:ss") |
| | | @PropertyDef(label = "æåæ´æ°æ¶é´") |
| | | @Column(name = "zhgxsj") |
| | | private Date zhgxsj; |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | /** |
| | | * @Author: YYC |
| | | * @Description: |
| | | * @DateTime: 2024-12-19 14:23 |
| | | **/ |
| | | |
| | | import com.alibaba.fastjson.annotation.JSONField; |
| | | 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 czt |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "API_1507") |
| | | public class Fz61Api1507 implements Serializable { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * éè¿æ¥å£è·åçåä½è´¦å¥åï¼å¨å±ç«¯èªå¨äº§çè´¦å¥å· |
| | | */ |
| | | @Id |
| | | @Column(name = "ID_", length = 40) |
| | | @JSONField(serialize = false) |
| | | private String id; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 30) |
| | | @PropertyDef(label = "æå±ååº") |
| | | private String deptId; |
| | | |
| | | @PropertyDef(label = "è´¦å¥å·") |
| | | @Column(name = "nacctid", length = 23) |
| | | private String nacctid; |
| | | |
| | | @PropertyDef(label = "åè¯ç±»å") |
| | | @Column(name = "cvkind", length = 9) |
| | | private String cvkind; |
| | | |
| | | @PropertyDef(label = "æé´") |
| | | @Column(name = "cmon") |
| | | private Integer cmon; |
| | | |
| | | @PropertyDef(label = "年度") |
| | | @Column(name = "cyear") |
| | | private Integer cyear; |
| | | |
| | | @PropertyDef(label = "åè¯å·") |
| | | @Column(name = "nvno") |
| | | private Integer nvno; |
| | | |
| | | @PropertyDef(label = "åå½åºå·") |
| | | @Column(name = "nno") |
| | | private Integer nno; |
| | | |
| | | @PropertyDef(label = "åè¯åç±»") |
| | | @Column(name = "btmp") |
| | | private Integer btmp; |
| | | |
| | | @PropertyDef(label = "æè¦") |
| | | @Column(name = "digest", length = 512) |
| | | private String digest; |
| | | |
| | | @PropertyDef(label = "ç§ç®ç¼ç ") |
| | | @Column(name = "ccode", length = 80) |
| | | private String ccode; |
| | | |
| | | @JSONField(format = "yyyy-MM-dd") |
| | | @PropertyDef(label = "åè¯æ¥æ") |
| | | @Column(name = "ccsmalldatetime", length = 10) |
| | | private Date ccsmalldatetime; |
| | | |
| | | @PropertyDef(label = "å¶å人") |
| | | @Column(name = "cmaker", length = 32) |
| | | private String cmaker; |
| | | /** |
| | | * 1:åæ¹ |
| | | * -1:è´·æ¹ |
| | | */ |
| | | @PropertyDef(label = "æ¹å") |
| | | @Column(name = "cdc") |
| | | private Integer cdc; |
| | | |
| | | @PropertyDef(label = "å®¡æ ¸äºº") |
| | | @Column(name = "ccker", length = 32) |
| | | private String ccker; |
| | | |
| | | @PropertyDef(label = "记账人") |
| | | @Column(name = "cpter", length = 32) |
| | | private String cpter; |
| | | /** |
| | | * 0:å¦ |
| | | * 1:æ¯ |
| | | */ |
| | | @PropertyDef(label = "è®°è´¦æ å¿") |
| | | @Column(name = "bpt") |
| | | private Integer bpt; |
| | | |
| | | @PropertyDef(label = "éä»¶å¼ æ°") |
| | | @Column(name = "nanum") |
| | | private Integer nanum; |
| | | |
| | | @PropertyDef(label = "éé¢") |
| | | @Column(name = "nm", precision = 20, scale = 4) |
| | | private Double nm; |
| | | |
| | | @PropertyDef(label = "æ°é") |
| | | @Column(name = "nqty", precision = 20, scale = 4) |
| | | private Double nqty; |
| | | |
| | | @PropertyDef(label = "åä»·") |
| | | @Column(name = "nprice", precision = 20, scale = 4) |
| | | private Double nprice; |
| | | |
| | | @PropertyDef(label = "åºçº³") |
| | | @Column(name = "ccashier", length = 32) |
| | | private String ccashier; |
| | | |
| | | @PropertyDef(label = "æ±ç") |
| | | @Column(name = "rate", precision = 20, scale = 4) |
| | | private Double rate; |
| | | |
| | | @PropertyDef(label = "å¤å¸éé¢") |
| | | @Column(name = "nfm", precision = 20, scale = 4) |
| | | private Double nfm; |
| | | |
| | | @PropertyDef(label = "计éåä½", description = "计éå使±å") |
| | | @Column(name = "meterunitid", length = 32) |
| | | private String meterunitid; |
| | | |
| | | @JSONField(format = "yyyy-MM-dd HH:mm:ss") |
| | | @PropertyDef(label = "æåæ´æ°æ¶é´") |
| | | @Column(name = "zhgxsj") |
| | | private Date zhgxsj; |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | /** |
| | | * @Author: YYC |
| | | * @Description: |
| | | * @DateTime: 2024-12-19 14:23 |
| | | **/ |
| | | |
| | | import com.alibaba.fastjson.annotation.JSONField; |
| | | 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 czt |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "API_1508") |
| | | public class Fz61Api1508 implements Serializable { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * éè¿æ¥å£è·åçåä½è´¦å¥åï¼å¨å±ç«¯èªå¨äº§çè´¦å¥å· |
| | | */ |
| | | @Id |
| | | @Column(name = "ID_", length = 40) |
| | | private String id; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 30) |
| | | @PropertyDef(label = "æå±ååº") |
| | | private String deptId; |
| | | |
| | | @PropertyDef(label = "è´¦å¥å·") |
| | | @Column(name = "nacctid", length = 23) |
| | | private String nacctid; |
| | | |
| | | @PropertyDef(label = "åè¯ç±»å") |
| | | @Column(name = "cvkind", length = 10) |
| | | private String cvkind; |
| | | |
| | | @PropertyDef(label = "æé´") |
| | | @Column(name = "cmon") |
| | | private Integer cmon; |
| | | |
| | | @PropertyDef(label = "年度") |
| | | @Column(name = "cyear") |
| | | private Integer cyear; |
| | | |
| | | @PropertyDef(label = "åè¯å·") |
| | | @Column(name = "nvno") |
| | | private Integer nvno; |
| | | |
| | | @PropertyDef(label = "ç§ç®ç¼ç ") |
| | | @Column(name = "ccode", length = 80) |
| | | private String ccode; |
| | | |
| | | @PropertyDef(label = "对æ¹ç§ç®ç¼ç ") |
| | | @Column(name = "cdfcode", length = 80) |
| | | private String cdfcode; |
| | | |
| | | @PropertyDef(label = "ç°éæµé项ç®ä»£ç ") |
| | | @Column(name = "ccashcode", length = 80) |
| | | private String ccashcode; |
| | | |
| | | @PropertyDef(label = "åå½åºå·") |
| | | @Column(name = "nrowno") |
| | | private Integer nrowno; |
| | | |
| | | @PropertyDef(label = "éé¢") |
| | | @Column(name = "nm", precision = 20, scale = 4) |
| | | private Double nm; |
| | | |
| | | /** |
| | | * 1:æµå
¥ |
| | | * -1:æµåº |
| | | */ |
| | | @PropertyDef(label = "æ¹å") |
| | | @Column(name = "cdc") |
| | | private Integer cdc; |
| | | |
| | | @JSONField(format = "yyyy-MM-dd HH:mm:ss") |
| | | @PropertyDef(label = "æåæ´æ°æ¶é´") |
| | | @Column(name = "zhgxsj") |
| | | private Date zhgxsj; |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | /** |
| | | * @Author: YYC |
| | | * @Description: |
| | | * @DateTime: 2024-12-19 14:23 |
| | | **/ |
| | | |
| | | import com.alibaba.fastjson.annotation.JSONField; |
| | | 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 czt |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "API_1509") |
| | | public class Fz61Api1509 implements Serializable { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * éè¿æ¥å£è·åçåä½è´¦å¥åï¼å¨å±ç«¯èªå¨äº§çè´¦å¥å· |
| | | */ |
| | | @Id |
| | | @Column(name = "ID_", precision = 18) |
| | | @JSONField(serialize = false) |
| | | private String id; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 30) |
| | | @PropertyDef(label = "æå±ååº") |
| | | private String deptId; |
| | | |
| | | @PropertyDef(label = "è´¦å¥å·") |
| | | @Column(name = "nacctid", length = 23) |
| | | private String nacctid; |
| | | |
| | | @PropertyDef(label = "åºå®èµäº§ç¼ç ") |
| | | @Column(name = "fixassetcode", length = 20) |
| | | private String fixassetcode; |
| | | |
| | | @PropertyDef(label = "åºå®èµäº§èªç¼ç ") |
| | | @Column(name = "origfixassetcode", length = 20) |
| | | private String origfixassetcode; |
| | | |
| | | @PropertyDef(label = "èµäº§ç±»å«ç¼ç ") |
| | | @Column(name = "groupcode", length = 20) |
| | | private String groupcode; |
| | | |
| | | @PropertyDef(label = "åºå®èµäº§åç§°") |
| | | @Column(name = "fixassetname", length = 80) |
| | | private String fixassetname; |
| | | |
| | | @PropertyDef(label = "计éåä½åç§°") |
| | | @Column(name = "unitname", length = 20) |
| | | private String unitname; |
| | | |
| | | @PropertyDef(label = "åå¼") |
| | | @Column(name = "valueorg", length = 20, scale = 4) |
| | | private Double valueorg; |
| | | |
| | | @PropertyDef(label = "å½ååå¼") |
| | | @Column(name = "dresentvalueorg", length = 20, scale = 4) |
| | | private Double dresentvalueorg; |
| | | /** |
| | | * 1:ä¸æææ§æ³ |
| | | * 2:å¹³åå¹´éæ³ |
| | | * 3:卿平åå¹´éæ³ |
| | | * 4:å·¥ä½éæ³ |
| | | * 5:å¹´æ°æ»åæ³ |
| | | * 6:ååä½é¢éåæ³ |
| | | */ |
| | | @PropertyDef(label = "ææ§æ¹æ³") |
| | | @Column(name = "deprmethodid") |
| | | private Integer deprmethodid; |
| | | |
| | | /** |
| | | * 1:æèµ |
| | | * 2:èªå»º |
| | | * 3:è´ä¹° |
| | | * 4:èèµç§èµ |
| | | * 5:ç»è¥ç§å
¥ |
| | | * 6:æ å¿è°å
¥ |
| | | * 7:æèµ |
| | | * 8:æ¢å
¥ |
| | | */ |
| | | @PropertyDef(label = "åºå®èµäº§æ¥æº") |
| | | @Column(name = "sourceid") |
| | | private Integer sourceid; |
| | | |
| | | @PropertyDef(label = "åå·") |
| | | @Column(name = "model", length = 40) |
| | | private String model; |
| | | |
| | | @PropertyDef(label = "è§æ ¼") |
| | | @Column(name = "specs", length = 40) |
| | | private String specs; |
| | | |
| | | @PropertyDef(label = "å¶é å") |
| | | @Column(name = "manufacturer", length = 60) |
| | | private String manufacturer; |
| | | |
| | | @PropertyDef(label = "产å°") |
| | | @Column(name = "makingplace", length = 40) |
| | | private String makingplace; |
| | | |
| | | @JSONField(format = "yyyy-MM-dd") |
| | | @PropertyDef(label = "è¿å使¥æ") |
| | | @Column(name = "enterday", length = 10) |
| | | private Date enterday; |
| | | |
| | | @JSONField(format = "yyyy-MM-dd") |
| | | @PropertyDef(label = "å¼å§ä½¿ç¨æ¥æ") |
| | | @Column(name = "beginuseday", length = 10) |
| | | private Date beginuseday; |
| | | |
| | | @JSONField(format = "yyyy-MM-dd") |
| | | @PropertyDef(label = "å»ºå¡æ¥æ") |
| | | @Column(name = "makinday", length = 10) |
| | | private Date makinday; |
| | | |
| | | @PropertyDef(label = "管ç人") |
| | | @Column(name = "keeper", length = 20) |
| | | private String keeper; |
| | | |
| | | @PropertyDef(label = "建å¡äºº") |
| | | @Column(name = "maker", length = 20) |
| | | private String maker; |
| | | |
| | | @PropertyDef(label = "é¢è®¡ä½¿ç¨æé´æ°") |
| | | @Column(name = "usingperiods") |
| | | private Integer usingperiods; |
| | | |
| | | @PropertyDef(label = "é¢è®¡åæ®å¼") |
| | | @Column(name = "expecremain", precision = 20, scale = 4) |
| | | private Double expecremain; |
| | | |
| | | @PropertyDef(label = "åºå®èµäº§å¯¹åºç§ç®ç¼ç ") |
| | | @Column(name = "assetacctcode", length = 20) |
| | | private String assetacctcode; |
| | | |
| | | @PropertyDef(label = "ç´¯è®¡ææ§å¯¹åºç§ç®ç¼ç ") |
| | | @Column(name = "depracctcode", length = 20) |
| | | private String depracctcode; |
| | | |
| | | @PropertyDef(label = "ç´¯è®¡ææ§") |
| | | @Column(name = "accumulatedepr", precision = 20, scale = 4) |
| | | private Double accumulatedepr; |
| | | /** |
| | | * 0:å¦ |
| | | * 1:æ¯ |
| | | */ |
| | | @PropertyDef(label = "æ¯å¦æ¥åºæ¸
ç") |
| | | @Column(name = "abadoned", length = 1) |
| | | private String abadoned; |
| | | |
| | | /** |
| | | * 1:å¨ä½¿ç¨ |
| | | * 2:æªä½¿ç¨ |
| | | * 3:åç¨ |
| | | * 4:åºå® |
| | | * 5:æ¥æ |
| | | * 6:çäº |
| | | */ |
| | | @PropertyDef(label = "å½å使ç¨ç¶æåç§°") |
| | | @Column(name = "presentstatus", length = 20) |
| | | private String presentstatus; |
| | | |
| | | @PropertyDef(label = "夿³¨") |
| | | @Column(name = "notes", length = 512) |
| | | private String notes; |
| | | |
| | | @JSONField(format = "yyyy-MM-dd HH:mm:ss") |
| | | @PropertyDef(label = "æåæ´æ°æ¶é´") |
| | | @Column(name = "zhgxsj") |
| | | private Date zhgxsj; |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | /** |
| | | * @Author: YYC |
| | | * @Description: |
| | | * @DateTime: 2024-12-19 14:23 |
| | | **/ |
| | | |
| | | import com.alibaba.fastjson.annotation.JSONField; |
| | | 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 czt |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "API_1510") |
| | | public class Fz61Api1510 implements Serializable { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * éè¿æ¥å£è·åçåä½è´¦å¥åï¼å¨å±ç«¯èªå¨äº§çè´¦å¥å· |
| | | */ |
| | | @Id |
| | | @Column(name = "ID_", precision = 18) |
| | | @JSONField(serialize = false) |
| | | private String id; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 30) |
| | | @PropertyDef(label = "æå±ååº") |
| | | private String deptId; |
| | | |
| | | @PropertyDef(label = "è´¦å¥å·") |
| | | @Column(name = "nacctid", length = 23) |
| | | private String nacctid; |
| | | |
| | | @PropertyDef(label = "åºå®èµäº§ç¼ç ") |
| | | @Column(name = "fixassetcode", length = 20) |
| | | private String fixassetcode; |
| | | |
| | | @PropertyDef(label = "æé´") |
| | | @Column(name = "period") |
| | | private Integer period; |
| | | |
| | | @PropertyDef(label = "年度") |
| | | @Column(name = "acctyear") |
| | | private Integer acctyear; |
| | | |
| | | @PropertyDef(label = "æååå¼") |
| | | @Column(name = "bvalueorg", precision = 20, scale = 4) |
| | | private Double bvalueorg; |
| | | |
| | | @PropertyDef(label = "ç´¯è®¡ææ§") |
| | | @Column(name = "baccumdepr", precision = 20, scale = 4) |
| | | private Double baccumdepr; |
| | | |
| | | @PropertyDef(label = "æ¬æè®¡æææ§") |
| | | @Column(name = "deprammount", precision = 20, scale = 4) |
| | | private Double deprammount; |
| | | |
| | | @PropertyDef(label = "æ¬å¹´ç´¯è®¡è®¡æææ§") |
| | | @Column(name = "yaccumdepr", precision = 20, scale = 4) |
| | | private Double yaccumdepr; |
| | | |
| | | @PropertyDef(label = "æ¬ææ°éå¢å ") |
| | | @Column(name = "qtyadd", precision = 20, scale = 4) |
| | | private Double qtyadd; |
| | | |
| | | @PropertyDef(label = "æ¬ææ°éåå°") |
| | | @Column(name = "qtydecrease", precision = 20, scale = 4) |
| | | private Double qtydecrease; |
| | | |
| | | @PropertyDef(label = "æ¬æåå¼å¢å ") |
| | | @Column(name = "valueorgadd", precision = 20, scale = 4) |
| | | private Double valueorgadd; |
| | | |
| | | @PropertyDef(label = "æ¬æåå¼åå°") |
| | | @Column(name = "valueorgderease", precision = 20, scale = 4) |
| | | private Double valueorgderease; |
| | | |
| | | @PropertyDef(label = "æ¬æç´¯è®¡ææ§è°å¢") |
| | | @Column(name = "accudepradjustadd", precision = 20, scale = 4) |
| | | private Double accudepradjustadd; |
| | | |
| | | @PropertyDef(label = "æ¬æç´¯è®¡ææ§è°å") |
| | | @Column(name = "accudepradjustdec", precision = 20, scale = 4) |
| | | private Double accudepradjustdec; |
| | | |
| | | @PropertyDef(label = "æ¬å¹´ç´¯è®¡æ°éå¢å ") |
| | | @Column(name = "yqtyincrease", precision = 20, scale = 4) |
| | | private Double yqtyIncrease; |
| | | |
| | | @PropertyDef(label = "æ¬å¹´ç´¯è®¡æ°éåå°") |
| | | @Column(name = "yqtydecrease", precision = 20, scale = 4) |
| | | private Double yqtydecrease; |
| | | |
| | | @PropertyDef(label = "æ¬å¹´åå¼ç´¯è®¡å¢å ") |
| | | @Column(name = "yvalueincrease", precision = 20, scale = 4) |
| | | private Double yvalueincrease; |
| | | |
| | | @PropertyDef(label = "æ¬å¹´åå¼ç´¯è®¡åå°") |
| | | @Column(name = "yvaluedecrease", precision = 20, scale = 4) |
| | | private Double yvaluedecrease; |
| | | |
| | | @PropertyDef(label = "æ¬å¹´ç´¯è®¡ææ§è°å¢") |
| | | @Column(name = "yaccudeprincrease", precision = 20, scale = 4) |
| | | private Double yaccudeprincrease; |
| | | |
| | | @PropertyDef(label = "æ¬å¹´ç´¯è®¡ææ§è°å") |
| | | @Column(name = "yaccudeprdecrease", precision = 20, scale = 4) |
| | | private Double yaccudeprdecrease; |
| | | |
| | | @JSONField(format = "yyyy-MM-dd HH:mm:ss") |
| | | @PropertyDef(label = "æåæ´æ°æ¶é´") |
| | | @Column(name = "zhgxsj") |
| | | private Date zhgxsj; |
| | | |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | 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 Fz61AreationData 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.async.fzzy61.entity; |
| | | |
| | | 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 czt |
| | | * @date 2023-04-10 10:40 |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_FINANCE_ASSETS_Liability") |
| | | public class Fz61AssetsLiability implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @Id |
| | | @PropertyDef(label = "id" ) |
| | | @Column(name = "ID_", length = 40) |
| | | private String id; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 30) |
| | | @PropertyDef(label = "æå±ååº") |
| | | private String deptId; |
| | | |
| | | @PropertyDef(label = "æ¥è¡¨æ¶é´" ) |
| | | @Column(name = "bbsj") |
| | | private Date bbsj; |
| | | |
| | | @PropertyDef(label = "è´§å¸èµéææ«ä½é¢(å
)" ) |
| | | @Column(name = "hbjjqmye") |
| | | private Double hbjjqmye; |
| | | |
| | | @PropertyDef(label = "è´§å¸èµéå¹´åä½é¢(å
)" ) |
| | | @Column(name = "hbjjncye") |
| | | private Double hbjjncye; |
| | | |
| | | @PropertyDef(label = "äº¤ææ§éèèµäº§ææ«ä½é¢(å
)" ) |
| | | @Column(name = "jyxjrzcqmye") |
| | | private Double jyxjrzcqmye; |
| | | |
| | | @PropertyDef(label = "äº¤ææ§éèèµäº§å¹´åä½é¢(å
)" ) |
| | | @Column(name = "jyxjrzcncye") |
| | | private Double jyxjrzcncye; |
| | | |
| | | @PropertyDef(label = "è¡çéèèµäº§ææ«ä½é¢(å
)" ) |
| | | @Column(name = "ysjrzcqmye") |
| | | private Double ysjrzcqmye; |
| | | |
| | | @PropertyDef(label = "è¡çéèèµäº§å¹´åä½é¢(å
)" ) |
| | | @Column(name = "ysjrzcncye") |
| | | private Double ysjrzcncye; |
| | | |
| | | @PropertyDef(label = "åºæ¶ç¥¨æ®ææ«ä½é¢(å
)" ) |
| | | @Column(name = "yspjqmye") |
| | | private Double yspjqmye; |
| | | |
| | | @PropertyDef(label = "åºæ¶ç¥¨æ®å¹´åä½é¢(å
)" ) |
| | | @Column(name = "yspjncye") |
| | | private Double yspjncye; |
| | | |
| | | @PropertyDef(label = "åºæ¶è´¦æ¬¾ææ«ä½é¢(å
)" ) |
| | | @Column(name = "yszkqmye") |
| | | private Double yszkqmye; |
| | | |
| | | @PropertyDef(label = "åºæ¶è´¦æ¬¾å¹´åä½é¢(å
)" ) |
| | | @Column(name = "yszkncye") |
| | | private Double yszkncye; |
| | | |
| | | @PropertyDef(label = "é¢ä»æ¬¾é¡¹ææ«ä½é¢(å
)" ) |
| | | @Column(name = "yuskxqmye") |
| | | private Double yuskxqmye; |
| | | |
| | | @PropertyDef(label = "é¢ä»æ¬¾é¡¹å¹´åä½é¢(å
)" ) |
| | | @Column(name = "yuskxncye") |
| | | private Double yuskxncye; |
| | | |
| | | @PropertyDef(label = "å
¶ä»åºæ¶æ¬¾ææ«ä½é¢(å
)" ) |
| | | @Column(name = "qtyszkqmye") |
| | | private Double qtyszkqmye; |
| | | |
| | | @PropertyDef(label = "å
¶ä»åºæ¶æ¬¾å¹´åä½é¢(å
)" ) |
| | | @Column(name = "qtyszkncye") |
| | | private Double qtyszkncye; |
| | | |
| | | @PropertyDef(label = "åè´§ææ«ä½é¢(å
)" ) |
| | | @Column(name = "chqmye") |
| | | private Double chqmye; |
| | | |
| | | @PropertyDef(label = "åè´§å¹´åä½é¢(å
)" ) |
| | | @Column(name = "chncye") |
| | | private Double chncye; |
| | | |
| | | @PropertyDef(label = "ååèµäº§ææ«ä½é¢(å
)" ) |
| | | @Column(name = "htzcqmye") |
| | | private Double htzcqmye; |
| | | |
| | | @PropertyDef(label = "ååèµäº§å¹´åä½é¢(å
)" ) |
| | | @Column(name = "htzcncye") |
| | | private Double htzcncye; |
| | | |
| | | @PropertyDef(label = "ææå¾
å®èµäº§ææ«ä½é¢(å
)" ) |
| | | @Column(name = "cydszcqmye") |
| | | private Double cydszcqmye; |
| | | |
| | | @PropertyDef(label = "ææå¾
å®èµäº§å¹´åä½é¢(å
)" ) |
| | | @Column(name = "cydszcncye") |
| | | private Double cydszcncye; |
| | | |
| | | @PropertyDef(label = "ä¸å¹´å
å°æçéæµå¨èµäº§ææ«ä½é¢(å
)" ) |
| | | @Column(name = "ynndqfldzcqmye") |
| | | private Double ynndqfldzcqmye; |
| | | |
| | | @PropertyDef(label = "ä¸å¹´å
å°æçéæµå¨èµäº§å¹´åä½é¢(å
)" ) |
| | | @Column(name = "ynndqfldzcncye") |
| | | private Double ynndqfldzcncye; |
| | | |
| | | @PropertyDef(label = "å
¶ä»æµå¨èµäº§ææ«ä½é¢(å
)" ) |
| | | @Column(name = "qtldzcqmye") |
| | | private Double qtldzcqmye; |
| | | |
| | | @PropertyDef(label = "å
¶ä»æµå¨èµäº§å¹´åä½é¢(å
)" ) |
| | | @Column(name = "qtldzcncye") |
| | | private Double qtldzcncye; |
| | | |
| | | @PropertyDef(label = "æµå¨èµäº§åè®¡ææ«ä½é¢(å
)" ) |
| | | @Column(name = "ldzchjqmye") |
| | | private Double ldzchjqmye; |
| | | |
| | | @PropertyDef(label = "æµå¨èµäº§å计年åä½é¢(å
)" ) |
| | | @Column(name = "ldzchjncye") |
| | | private Double ldzchjncye; |
| | | |
| | | @PropertyDef(label = "åºå¸æèµææ«ä½é¢(å
)" ) |
| | | @Column(name = "zjtzqmye") |
| | | private Double zjtzqmye; |
| | | |
| | | @PropertyDef(label = "åºå¸æèµå¹´åä½é¢(å
)" ) |
| | | @Column(name = "zjtzncye") |
| | | private Double zjtzncye; |
| | | |
| | | @PropertyDef(label = "å
¶ä»åºå¸æèµææ«ä½é¢(å
)" ) |
| | | @Column(name = "qtzqtzqmye") |
| | | private Double qtzqtzqmye; |
| | | |
| | | @PropertyDef(label = "å
¶ä»åºå¸æèµå¹´åä½é¢(å
)" ) |
| | | @Column(name = "qtzqtzncye") |
| | | private Double qtzqtzncye; |
| | | |
| | | @PropertyDef(label = "é¿æåºæ¶æ¬¾ææ«ä½é¢(å
)" ) |
| | | @Column(name = "cqyskqmye") |
| | | private Double cqyskqmye; |
| | | |
| | | @PropertyDef(label = "é¿æåºæ¶æ¬¾å¹´åä½é¢(å
)" ) |
| | | @Column(name = "cqyskncye") |
| | | private Double cqyskncye; |
| | | |
| | | @PropertyDef(label = "é¿æè¡ææèµææ«ä½é¢(å
)" ) |
| | | @Column(name = "cqgqtzqmye") |
| | | private Double cqgqtzqmye; |
| | | |
| | | @PropertyDef(label = "é¿æè¡ææèµå¹´åä½é¢(å
)" ) |
| | | @Column(name = "cqgqtzncye") |
| | | private Double cqgqtzncye; |
| | | |
| | | @PropertyDef(label = "å
¶ä»æçå·¥å
·æèµææ«ä½é¢(å
)" ) |
| | | @Column(name = "qtqygjtzqmye") |
| | | private Double qtqygjtzqmye; |
| | | |
| | | @PropertyDef(label = "å
¶ä»æçå·¥å
·æèµå¹´åä½é¢(å
)" ) |
| | | @Column(name = "qtqygjtzncye") |
| | | private Double qtqygjtzncye; |
| | | |
| | | @PropertyDef(label = "å
¶ä»éæµå¨éèèµäº§ææ«ä½é¢(å
)" ) |
| | | @Column(name = "qtfldjrzcqmye") |
| | | private Double qtfldjrzcqmye; |
| | | |
| | | @PropertyDef(label = "å
¶ä»éæµå¨éèèµäº§å¹´åä½é¢(å
)" ) |
| | | @Column(name = "qtfldjrzcncye") |
| | | private Double qtfldjrzcncye; |
| | | |
| | | @PropertyDef(label = "æèµæ§æ¿å°äº§ææ«ä½é¢(å
)" ) |
| | | @Column(name = "tzxfdcqmye") |
| | | private Double tzxfdcqmye; |
| | | |
| | | @PropertyDef(label = "æèµæ§æ¿å°äº§å¹´åä½é¢(å
)" ) |
| | | @Column(name = "tzxfdcncye") |
| | | private Double tzxfdcncye; |
| | | |
| | | @PropertyDef(label = "åºå®èµäº§ææ«ä½é¢(å
)" ) |
| | | @Column(name = "gdzcqmye") |
| | | private Double gdzcqmye; |
| | | |
| | | @PropertyDef(label = "åºå®èµäº§å¹´åä½é¢(å
)" ) |
| | | @Column(name = "gdzcncye") |
| | | private Double gdzcncye; |
| | | |
| | | @PropertyDef(label = "å¨å»ºå·¥ç¨ææ«ä½é¢(å
)" ) |
| | | @Column(name = "zjgcqmye") |
| | | private Double zjgcqmye; |
| | | |
| | | @PropertyDef(label = "å¨å»ºå·¥ç¨å¹´åä½é¢(å
)" ) |
| | | @Column(name = "zjgcncye") |
| | | private Double zjgcncye; |
| | | |
| | | @PropertyDef(label = "ç产æ§çç©èµäº§ææ«ä½é¢(å
)" ) |
| | | @Column(name = "scxswzcqmye") |
| | | private Double scxswzcqmye; |
| | | |
| | | @PropertyDef(label = "ç产æ§çç©èµäº§å¹´åä½é¢(å
)" ) |
| | | @Column(name = "scxswzcncye") |
| | | private Double scxswzcncye; |
| | | |
| | | @PropertyDef(label = "æ²¹æ°èµäº§ææ«ä½é¢(å
)" ) |
| | | @Column(name = "yqzcqmye") |
| | | private Double yqzcqmye; |
| | | |
| | | @PropertyDef(label = "æ²¹æ°èµäº§å¹´åä½é¢(å
)" ) |
| | | @Column(name = "yqzcncye") |
| | | private Double yqzcncye; |
| | | |
| | | @PropertyDef(label = "æ å½¢èµäº§ææ«ä½é¢(å
)" ) |
| | | @Column(name = "wxzcqmye") |
| | | private Double wxzcqmye; |
| | | |
| | | @PropertyDef(label = "æ å½¢èµäº§å¹´åä½é¢(å
)" ) |
| | | @Column(name = "wxzcncye") |
| | | private Double wxzcncye; |
| | | |
| | | @PropertyDef(label = "å¼åæ¯åºææ«ä½é¢(å
)" ) |
| | | @Column(name = "kfzcqmye") |
| | | private Double kfzcqmye; |
| | | |
| | | @PropertyDef(label = "å¼åæ¯åºå¹´åä½é¢(å
)" ) |
| | | @Column(name = "kfzcncye") |
| | | private Double kfzcncye; |
| | | |
| | | @PropertyDef(label = "åèªææ«ä½é¢(å
)" ) |
| | | @Column(name = "syqmye") |
| | | private Double syqmye; |
| | | |
| | | @PropertyDef(label = "åèªå¹´åä½é¢(å
)" ) |
| | | @Column(name = "syncye") |
| | | private Double syncye; |
| | | |
| | | @PropertyDef(label = "é¿æå¾
æè´¹ç¨ææ«ä½é¢(å
)" ) |
| | | @Column(name = "cqdtfyqmye") |
| | | private Double cqdtfyqmye; |
| | | |
| | | @PropertyDef(label = "é¿æå¾
æè´¹ç¨å¹´åä½é¢(å
)" ) |
| | | @Column(name = "cqdtfyncye") |
| | | private Double cqdtfyncye; |
| | | |
| | | @PropertyDef(label = "éå»¶æå¾ç¨èµäº§ææ«ä½é¢(å
)" ) |
| | | @Column(name = "dysdszcqmye") |
| | | private Double dysdszcqmye; |
| | | |
| | | @PropertyDef(label = "éå»¶æå¾ç¨èµäº§å¹´åä½é¢(å
)" ) |
| | | @Column(name = "dysdszcncye") |
| | | private Double dysdszcncye; |
| | | |
| | | @PropertyDef(label = "å
¶ä»éæµå¨èµäº§ææ«ä½é¢(å
)" ) |
| | | @Column(name = "qtfldzcqmye") |
| | | private Double qtfldzcqmye; |
| | | |
| | | @PropertyDef(label = "å
¶ä»éæµå¨èµäº§å¹´åä½é¢(å
)" ) |
| | | @Column(name = "qtfldzcncye") |
| | | private Double qtfldzcncye; |
| | | |
| | | @PropertyDef(label = "éæµå¨èµäº§åè®¡ææ«ä½é¢(å
)" ) |
| | | @Column(name = "fldzcqmye") |
| | | private Double fldzcqmye; |
| | | |
| | | @PropertyDef(label = "éæµå¨èµäº§å计年åä½é¢(å
)" ) |
| | | @Column(name = "fldzcncye") |
| | | private Double fldzcncye; |
| | | |
| | | @PropertyDef(label = "èµäº§æ»è®¡ææ«ä½é¢(å
)" ) |
| | | @Column(name = "zczjqmye") |
| | | private Double zczjqmye; |
| | | |
| | | @PropertyDef(label = "èµäº§æ»è®¡å¹´åä½é¢(å
)" ) |
| | | @Column(name = "zczjncye") |
| | | private Double zczjncye; |
| | | |
| | | @PropertyDef(label = "çæåæ¬¾ææ«ä½é¢(å
)" ) |
| | | @Column(name = "dqjkmye") |
| | | private Double dqjkmye; |
| | | |
| | | @PropertyDef(label = "çæå款年åä½é¢(å
)" ) |
| | | @Column(name = "dqjkncye") |
| | | private Double dqjkncye; |
| | | |
| | | @PropertyDef(label = "äº¤ææ§éèè´åºææ«ä½é¢(å
)" ) |
| | | @Column(name = "jyxjrfzqmye") |
| | | private Double jyxjrfzqmye; |
| | | |
| | | @PropertyDef(label = "äº¤ææ§éèè´åºå¹´åä½é¢(å
)" ) |
| | | @Column(name = "jyxjrfzncye") |
| | | private Double jyxjrfzncye; |
| | | |
| | | @PropertyDef(label = "è¡çéèè´åºææ«ä½é¢(å
)" ) |
| | | @Column(name = "ysjrfzqmye") |
| | | private Double ysjrfzqmye; |
| | | |
| | | @PropertyDef(label = "è¡çéèè´åºå¹´åä½é¢(å
)" ) |
| | | @Column(name = "ysjrfzncye") |
| | | private Double ysjrfzncye; |
| | | |
| | | @PropertyDef(label = "åºä»ç¥¨æ®ææ«ä½é¢(å
)" ) |
| | | @Column(name = "ldfzyspjqmye") |
| | | private Double ldfzyspjqmye; |
| | | |
| | | @PropertyDef(label = "åºä»ç¥¨æ®å¹´åä½é¢(å
)" ) |
| | | @Column(name = "ldfzyspjncye") |
| | | private Double ldfzyspjncye; |
| | | |
| | | @PropertyDef(label = "åºä»è´¦æ¬¾ææ«ä½é¢(å
)" ) |
| | | @Column(name = "ldfzyszkqmye") |
| | | private Double ldfzyszkqmye; |
| | | |
| | | @PropertyDef(label = "åºä»è´¦æ¬¾å¹´åä½é¢(å
)" ) |
| | | @Column(name = "ldfzyszkncye") |
| | | private Double ldfzyszkncye; |
| | | |
| | | @PropertyDef(label = "颿¶æ¬¾é¡¹ææ«ä½é¢(å
)" ) |
| | | @Column(name = "ldfzyuskxqmye") |
| | | private Double ldfzyuskxqmye; |
| | | |
| | | @PropertyDef(label = "颿¶æ¬¾é¡¹å¹´åä½é¢(å
)" ) |
| | | @Column(name = "ldfzyuskxncye") |
| | | private Double ldfzyuskxncye; |
| | | |
| | | @PropertyDef(label = "ååè´åºææ«ä½é¢(å
)" ) |
| | | @Column(name = "htfzqmye") |
| | | private Double htfzqmye; |
| | | |
| | | @PropertyDef(label = "ååè´åºå¹´åä½é¢(å
)" ) |
| | | @Column(name = "htfzncye") |
| | | private Double htfzncye; |
| | | |
| | | @PropertyDef(label = "åºä»èå·¥èªé
¬ææ«ä½é¢(å
)" ) |
| | | @Column(name = "yfzgxcqmye") |
| | | private Double yfzgxcqmye; |
| | | |
| | | @PropertyDef(label = "åºä»èå·¥èªé
¬å¹´åä½é¢(å
)" ) |
| | | @Column(name = "yfzgxcncye") |
| | | private Double yfzgxcncye; |
| | | |
| | | @PropertyDef(label = "åºäº¤ç¨è´¹ææ«ä½é¢(å
)" ) |
| | | @Column(name = "yjsfqmye") |
| | | private Double yjsfqmye; |
| | | |
| | | @PropertyDef(label = "åºäº¤ç¨è´¹å¹´åä½é¢(å
)" ) |
| | | @Column(name = "yjsfncye") |
| | | private Double yjsfncye; |
| | | |
| | | @PropertyDef(label = "å
¶ä»åºä»æ¬¾ææ«ä½é¢(å
)" ) |
| | | @Column(name = "qtyfkqmye") |
| | | private Double qtyfkqmye; |
| | | |
| | | @PropertyDef(label = "å
¶ä»åºä»æ¬¾å¹´åä½é¢(å
)" ) |
| | | @Column(name = "qtyfkncye") |
| | | private Double qtyfkncye; |
| | | |
| | | @PropertyDef(label = "ææå¾
å®è´åºææ«ä½é¢(å
)" ) |
| | | @Column(name = "cydsfzqmye") |
| | | private Double cydsfzqmye; |
| | | |
| | | @PropertyDef(label = "ææå¾
å®è´åºå¹´åä½é¢(å
)" ) |
| | | @Column(name = "cydsfzncye") |
| | | private Double cydsfzncye; |
| | | |
| | | @PropertyDef(label = "ä¸å¹´å
å°æçéæµå¨è´åºææ«ä½é¢(å
)" ) |
| | | @Column(name = "ynddqfldfzqmye") |
| | | private Double ynddqfldfzqmye; |
| | | |
| | | @PropertyDef(label = "ä¸å¹´å
å°æçéæµå¨è´åºå¹´åä½é¢(å
)" ) |
| | | @Column(name = "ynddqfldfzncye") |
| | | private Double ynddqfldfzncye; |
| | | |
| | | @PropertyDef(label = "å
¶ä»æµå¨è´åºææ«ä½é¢(å
)" ) |
| | | @Column(name = "qtldfzqmye") |
| | | private Double qtldfzqmye; |
| | | |
| | | @PropertyDef(label = "å
¶ä»æµå¨è´åºå¹´åä½é¢(å
)" ) |
| | | @Column(name = "qtldfzncye") |
| | | private Double qtldfzncye; |
| | | |
| | | @PropertyDef(label = "æµå¨è´åºåè®¡ææ«ä½é¢(å
)" ) |
| | | @Column(name = "ldfzhjqmye") |
| | | private Double ldfzhjqmye; |
| | | |
| | | @PropertyDef(label = "æµå¨è´åºå计年åä½é¢(å
)" ) |
| | | @Column(name = "ldfzhjncye") |
| | | private Double ldfzhjncye; |
| | | |
| | | @PropertyDef(label = "é¿æåæ¬¾ææ«ä½é¢(å
)" ) |
| | | @Column(name = "cqjkqmye") |
| | | private Double cqjkqmye; |
| | | |
| | | @PropertyDef(label = "é¿æåæ¬¾å¹´åä½é¢(å
)" ) |
| | | @Column(name = "cqjkncye") |
| | | private Double cqjkncye; |
| | | |
| | | @PropertyDef(label = "åºä»åºå¸ææ«ä½é¢(å
)" ) |
| | | @Column(name = "yfzqqmye") |
| | | private Double yfzqqmye; |
| | | |
| | | @PropertyDef(label = "åºä»åºå¸å¹´åä½é¢(å
)" ) |
| | | @Column(name = "yfzqncye") |
| | | private Double yfzqncye; |
| | | |
| | | @PropertyDef(label = "å
¶ä¸ï¼ä¼å
è¡ææ«ä½é¢(å
)" ) |
| | | @Column(name = "yfzqyxgqmye") |
| | | private Double yfzqyxgqmye; |
| | | |
| | | @PropertyDef(label = "å
¶ä¸ï¼ä¼å
è¡å¹´åä½é¢(å
)" ) |
| | | @Column(name = "yfzqyxgncye") |
| | | private Double yfzqyxgncye; |
| | | |
| | | @PropertyDef(label = "æ°¸ç»åºææ«ä½é¢(å
)" ) |
| | | @Column(name = "yfzqyxzqmye") |
| | | private Double yfzqyxzqmye; |
| | | |
| | | @PropertyDef(label = "æ°¸ç»åºå¹´åä½é¢(å
)" ) |
| | | @Column(name = "yfzqyxzncye") |
| | | private Double yfzqyxzncye; |
| | | |
| | | @PropertyDef(label = "é¿æåºä»æ¬¾ææ«ä½é¢(å
)" ) |
| | | @Column(name = "cqyfkqmye") |
| | | private Double cqyfkqmye; |
| | | |
| | | @PropertyDef(label = "é¿æåºä»æ¬¾å¹´åä½é¢(å
)" ) |
| | | @Column(name = "cqyfkncye") |
| | | private Double cqyfkncye; |
| | | |
| | | @PropertyDef(label = "é¢è®¡è´åºææ«ä½é¢(å
)" ) |
| | | @Column(name = "ysfzqmye") |
| | | private Double ysfzqmye; |
| | | |
| | | @PropertyDef(label = "é¢è®¡è´åºå¹´åä½é¢(å
)" ) |
| | | @Column(name = "ysfzncye") |
| | | private Double ysfzncye; |
| | | |
| | | @PropertyDef(label = "éå»¶æ¶çææ«ä½é¢(å
)" ) |
| | | @Column(name = "dysyqmye") |
| | | private Double dysyqmye; |
| | | |
| | | @PropertyDef(label = "éå»¶æ¶çå¹´åä½é¢(å
)" ) |
| | | @Column(name = "dysyncye") |
| | | private Double dysyncye; |
| | | |
| | | @PropertyDef(label = "éå»¶æå¾ç¨è´åºææ«ä½é¢(å
)" ) |
| | | @Column(name = "dysdsfzqmye") |
| | | private Double dysdsfzqmye; |
| | | |
| | | @PropertyDef(label = "éå»¶æå¾ç¨è´åºå¹´åä½é¢(å
)" ) |
| | | @Column(name = "dysdsfzncye") |
| | | private Double dysdsfzncye; |
| | | |
| | | @PropertyDef(label = "å
¶ä»éæµå¨è´åºææ«ä½é¢(å
)" ) |
| | | @Column(name = "qtfldfzqmye") |
| | | private Double qtfldfzqmye; |
| | | |
| | | @PropertyDef(label = "å
¶ä»éæµå¨è´åºå¹´åä½é¢(å
)" ) |
| | | @Column(name = "qtfldfzncye") |
| | | private Double qtfldfzncye; |
| | | |
| | | @PropertyDef(label = "éæµå¨è´åºåè®¡ææ«ä½é¢(å
)" ) |
| | | @Column(name = "fldfzhjqmye") |
| | | private Double fldfzhjqmye; |
| | | |
| | | @PropertyDef(label = "éæµå¨è´åºå计年åä½é¢(å
)" ) |
| | | @Column(name = "fldfzhjncye") |
| | | private Double fldfzhjncye; |
| | | |
| | | @PropertyDef(label = "è´åºåè®¡ææ«ä½é¢(å
)" ) |
| | | @Column(name = "fzhjqmye") |
| | | private Double fzhjqmye; |
| | | |
| | | @PropertyDef(label = "è´åºå计年åä½é¢(å
)" ) |
| | | @Column(name = "fzhjncye") |
| | | private Double fzhjncye; |
| | | |
| | | @PropertyDef(label = "宿¶èµæ¬(æè¡æ¬)ææ«ä½é¢(å
)" ) |
| | | @Column(name = "sszbqmye") |
| | | private Double sszbqmye; |
| | | |
| | | @PropertyDef(label = "宿¶èµæ¬(æè¡æ¬)å¹´åä½é¢(å
)" ) |
| | | @Column(name = "sszbncye") |
| | | private Double sszbncye; |
| | | |
| | | @PropertyDef(label = "å
¶ä»æçå·¥å
·ææ«ä½é¢(å
)" ) |
| | | @Column(name = "qtqygjqmye") |
| | | private Double qtqygjqmye; |
| | | |
| | | @PropertyDef(label = "å
¶ä»æçå·¥å
·å¹´åä½é¢(å
)" ) |
| | | @Column(name = "qtqygjncye") |
| | | private Double qtqygjncye; |
| | | |
| | | @PropertyDef(label = "å
¶ä¸ï¼ä¼å
è¡ææ«ä½é¢(å
)" ) |
| | | @Column(name = "qtqygjyxgqmye") |
| | | private Double qtqygjyxgqmye; |
| | | |
| | | @PropertyDef(label = "å
¶ä¸ï¼ä¼å
è¡å¹´åä½é¢(å
)" ) |
| | | @Column(name = "qtqygjyxgncye") |
| | | private Double qtqygjyxgncye; |
| | | |
| | | @PropertyDef(label = "æ°¸ç»åºææ«ä½é¢(å
)" ) |
| | | @Column(name = "qtqygjyxzqmye") |
| | | private Double qtqygjyxzqmye; |
| | | |
| | | @PropertyDef(label = "æ°¸ç»åºå¹´åä½é¢(å
)" ) |
| | | @Column(name = "qtqygjyxzncye") |
| | | private Double qtqygjyxzncye; |
| | | |
| | | @PropertyDef(label = "èµæ¬å
¬ç§¯ææ«ä½é¢(å
)" ) |
| | | @Column(name = "zbgjqmye") |
| | | private Double zbgjqmye; |
| | | |
| | | @PropertyDef(label = "èµæ¬å
¬ç§¯å¹´åä½é¢(å
)" ) |
| | | @Column(name = "zbgjncye") |
| | | private Double zbgjncye; |
| | | |
| | | @PropertyDef(label = "åï¼åºåè¡ææ«ä½é¢(å
)" ) |
| | | @Column(name = "jkcgqmye") |
| | | private Double jkcgqmye; |
| | | |
| | | @PropertyDef(label = "åï¼åºåè¡å¹´åä½é¢(å
)" ) |
| | | @Column(name = "jkcgncye") |
| | | private Double jkcgncye; |
| | | |
| | | @PropertyDef(label = "å
¶ä»ç»¼åæ¶çææ«ä½é¢(å
)" ) |
| | | @Column(name = "qtzhsyqmye") |
| | | private Double qtzhsyqmye; |
| | | |
| | | @PropertyDef(label = "å
¶ä»ç»¼åæ¶çå¹´åä½é¢(å
)" ) |
| | | @Column(name = "qtzhsyncye") |
| | | private Double qtzhsyncye; |
| | | |
| | | @PropertyDef(label = "ä¸é¡¹å¨å¤ææ«ä½é¢(å
)" ) |
| | | @Column(name = "zxcbqmye") |
| | | private Double zxcbqmye; |
| | | |
| | | @PropertyDef(label = "ä¸é¡¹å¨å¤å¹´åä½é¢(å
)" ) |
| | | @Column(name = "zxcbncye") |
| | | private Double zxcbncye; |
| | | |
| | | @PropertyDef(label = "çä½å
¬ç§¯ææ«ä½é¢(å
)" ) |
| | | @Column(name = "yygjqmye") |
| | | private Double yygjqmye; |
| | | |
| | | @PropertyDef(label = "çä½å
¬ç§¯å¹´åä½é¢(å
)" ) |
| | | @Column(name = "yygjncye") |
| | | private Double yygjncye; |
| | | |
| | | @PropertyDef(label = "æªåé
婿¶¦ææ«ä½é¢(å
)" ) |
| | | @Column(name = "wfplrqmye") |
| | | private Double wfplrqmye; |
| | | |
| | | @PropertyDef(label = "æªåé
婿¶¦å¹´åä½é¢(å
)" ) |
| | | @Column(name = "wfplrncye") |
| | | private Double wfplrncye; |
| | | |
| | | @PropertyDef(label = "ææè
æç(æè¡ä¸æç)åè®¡ææ«ä½é¢(å
)" ) |
| | | @Column(name = "syzqyqmye") |
| | | private Double syzqyqmye; |
| | | |
| | | @PropertyDef(label = "ææè
æç(æè¡ä¸æç)å计年åä½é¢(å
)" ) |
| | | @Column(name = "syzqyncye") |
| | | private Double syzqyncye; |
| | | |
| | | @PropertyDef(label = "è´åºåææè
æç(æè¡ä¸ç)æ»è®¡ææ«ä½é¢(å
)" ) |
| | | @Column(name = "fzhsyzqyqmye") |
| | | private Double fzhsyzqyqmye; |
| | | |
| | | @PropertyDef(label = "è´åºåææè
æç(æè¡ä¸ç)æ»è®¡å¹´åä½é¢(å
)" ) |
| | | @Column(name = "fzhsyzqyncye") |
| | | private Double fzhsyzqyncye; |
| | | |
| | | @PropertyDef(label = "æåæ´æ°æ¶é´" ) |
| | | @Column(name = "zhgxsj") |
| | | private Date zhgxsj; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.*; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | |
| | | /** |
| | | * @Desc: åºç¡ä¿¡æ¯-è´§ä½ä¿¡æ¯ |
| | | * @author: Andy |
| | | * @update-time: 2023/5/26 |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_DEPOT") |
| | | public class Fz61Depot implements Serializable { |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 50) |
| | | @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 = "NAME_", length = 50) |
| | | @PropertyDef(label = "è´§ä½åç§°") |
| | | private String name; |
| | | |
| | | @Column(name = "BUILDING_ID_", length = 40) |
| | | @PropertyDef(label = "æå±ä»æ¿") |
| | | private String buildingId; |
| | | |
| | | @Column(name = "GRANARY_ID_", length = 40) |
| | | @PropertyDef(label = "æå±å»é´") |
| | | private String granaryId; |
| | | |
| | | @Column(name = "DEPOT_TYPE_", length = 10) |
| | | @PropertyDef(label = "ä»åºç±»å", description = "æ ¹æ®å½æ é
置类åï¼å¹³æ¿ä»ãç«çä»ãæµ
åä»ã卿²¹ç½") |
| | | private String depotType; |
| | | |
| | | @Column(name = "DEPOT_STATUS_", length = 10) |
| | | @PropertyDef(label = "ä»åºç¶æ", description = "ä¸åºå表å
³èï¼éè¿åºååæ´") |
| | | private String depotStatus; |
| | | |
| | | @Column(name = "STORE_TYPE_", length = 6) |
| | | @PropertyDef(label = "å¨ç²®æ¹å¼", description = "ä¸åºå表å
³è") |
| | | private String storeType; |
| | | |
| | | @Column(name = "STORAGE_MAX_") |
| | | @PropertyDef(label = "设计å¨é", description = "åä½ï¼KG") |
| | | private Double storageMax; |
| | | |
| | | @Column(name = "STORAGE_REAL_") |
| | | @PropertyDef(label = "å®é
å¨é", description = "åä½ï¼KGï¼éè¿åºååæ´") |
| | | private Double storageReal; |
| | | |
| | | @Column(name = "FOOD_TYPE_", length = 10) |
| | | @PropertyDef(label = "ç²®é£æ§è´¨", description = "ä¸åºå表å
³èï¼éè¿åºååæ´") |
| | | private String foodType; |
| | | |
| | | @Column(name = "FOOD_VARIETY_", length = 10) |
| | | @PropertyDef(label = "ç²®é£åç§", description = "ä¸åºå表å
³èï¼éè¿åºååæ´") |
| | | private String foodVariety; |
| | | |
| | | @Column(name = "FOOD_LEVEL_", length = 10) |
| | | @PropertyDef(label = "ç²®é£ç级", description = "ä¸åºå表å
³èï¼éè¿åºååæ´") |
| | | private String foodLevel; |
| | | |
| | | @Column(name = "FOOD_LOCATION_ID_", length = 50) |
| | | @PropertyDef(label = "ç²®é£äº§å°") |
| | | private String foodLocationId; |
| | | |
| | | @Column(name = "FOOD_LOCATION_", length = 50) |
| | | @PropertyDef(label = "ç²®é£äº§å°", description = "ä¸åºå表å
³èï¼éè¿åºååæ´") |
| | | private String foodLocation; |
| | | |
| | | @Column(name = "FOOD_YEAR_", length = 10) |
| | | @PropertyDef(label = "ç²®é£å¹´ä»½", description = "ä¸åºå表å
³èï¼éè¿åºååæ´") |
| | | private String foodYear; |
| | | |
| | | @Column(name = "PER_WET_") |
| | | @PropertyDef(label = "æ°´å", description = "ç¾åæ¯ï¼é»è®¤ä¸ºç©ºï¼æ¥æºè´¨æ£ä¿¡æ¯") |
| | | private Double perWet; |
| | | |
| | | @Column(name = "PER_IMPURITY_") |
| | | @PropertyDef(label = "æè´¨", description = "ç¾åæ¯ï¼é»è®¤ä¸ºç©ºï¼æ¥æºè´¨æ£ä¿¡æ¯") |
| | | private Double perImpurity; |
| | | |
| | | @Column(name = "BULK_WEIGHT_") |
| | | @PropertyDef(label = "容é g/L", description = "容é g/L") |
| | | private Double bulkWeight; |
| | | |
| | | @Column(name = "STORE_KEEPER_", length = 30) |
| | | @PropertyDef(label = "ä¿ç®¡åè´¦å·") |
| | | private String storeKeeper; |
| | | |
| | | @Column(name = "STORE_KEEPER_NAME_", length = 50) |
| | | @PropertyDef(label = "ä¿ç®¡å", description = "䏿åç§°") |
| | | private String storeKeeperName; |
| | | |
| | | @Column(name = "STORE_DATE_") |
| | | @PropertyDef(label = "å
¥åºæ¶é´", description = "é»è®¤ç©ºï¼éè¿åºååæ´") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date storeDate; |
| | | |
| | | @Column(name = "CHECK_DATE_") |
| | | @PropertyDef(label = "æåè´¨æ£æ¶é´", description = "é»è®¤ç©ºï¼æ¥æºè´¨æ£ä¿¡æ¯") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date checkDate; |
| | | |
| | | @Column(name = "REMARK_", length = 200) |
| | | @PropertyDef(label = "夿³¨", description = "夿³¨ä¿¡æ¯") |
| | | private String remark; |
| | | |
| | | @Column(name = "UPDATE_TIME_") |
| | | @PropertyDef(label = "æ°æ®æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | |
| | | @Column(name = "BH_ID_", length = 50) |
| | | @PropertyDef(label = "馿µ·ç²®æ
åæºä»åºç¼ç ") |
| | | private String bhId; |
| | | |
| | | @Column(name = "ORDER_NUM_") |
| | | @PropertyDef(label = "æ¾ç¤ºé¡ºåº") |
| | | private Integer orderNum = 1; |
| | | |
| | | // ------------å
¶ä»å±æ§ä¿¡æ¯------------// |
| | | @Transient |
| | | @PropertyDef(label = "ç²®é£åç§") |
| | | private String foodVarietyName; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "ç²®é£æ§è´¨") |
| | | private String foodTypeName; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "ä»åºç±»å") |
| | | private String depotTypeName; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "ä»åºç±»å") |
| | | private String depotStatusName; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "ç²®é£ç级") |
| | | private String foodLevelName; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "Xåæ ", description = "ä¸ç»´æ¨¡åä¸åæ ï¼é¡µé¢æ éç»´æ¤") |
| | | private Double posX; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "Yåæ ", description = "ä¸ç»´æ¨¡åä¸åæ ï¼é¡µé¢æ éç»´æ¤") |
| | | private Double posY; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "ä¿ç®¡åç级") |
| | | private String storeKeeperLevel = "é«çº§ä¿ç®¡å"; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "ä¿ç®¡åç级") |
| | | private String storeKeeperPhone = "####"; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.*; |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * ä»åºé
ç½® ç¨äºé
置粮æ
åæºçé
ç½®ï¼æ°ä½ééé
ç½®ç |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_DEPOT_CONF") |
| | | @IdClass(Fz61DepotConfKey.class) |
| | | public class Fz61DepotConf implements Serializable { |
| | | |
| | | |
| | | @Id |
| | | @Column(name = "DEPOT_ID_", length = 50) |
| | | @PropertyDef(label = "æå±ä»åº") |
| | | private String depotId; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 40) |
| | | @PropertyDef(label = "æå±ååº") |
| | | private String deptId; |
| | | |
| | | @Column(name = "GRAIN_SER_", length = 40) |
| | | @PropertyDef(label = "ç²®æ
åæº", description = "ä»
ä»
ç²®æ
ééåæº") |
| | | private String grainSer; |
| | | |
| | | @Column(name = "TH_SER_", length = 40) |
| | | @PropertyDef(label = "æ¸©æ¹¿åº¦åæº", description = "仿¸©ä»æ¹¿çåæº") |
| | | private String thSer; |
| | | |
| | | @Column(name = "ES_SER_", length = 40) |
| | | @PropertyDef(label = "è½èåæº") |
| | | private String esSer; |
| | | |
| | | @Column(name = "ES_SER_TAG_", length = 40) |
| | | @PropertyDef(label = "å¤è½èåæº") |
| | | private String esSerTag; |
| | | |
| | | @Column(name = "GAS_SER_", length = 40) |
| | | @PropertyDef(label = "æ°ä½åæº") |
| | | private String gasSer; |
| | | |
| | | @Column(name = "GAS_SER_TAG_", length = 40) |
| | | @PropertyDef(label = "夿°ä½åæº") |
| | | private String gasSerTag; |
| | | |
| | | @Column(name = "PEST_SER_", length = 40) |
| | | @PropertyDef(label = "è«å®³åæº") |
| | | private String pestSer; |
| | | |
| | | @Column(name = "PEST_SER_TAG_", length = 40) |
| | | @PropertyDef(label = "å¤è«å®³åæº") |
| | | private String pestSerTag; |
| | | |
| | | @Column(name = "VERB_SER_", length = 40) |
| | | @PropertyDef(label = "éé£åæº") |
| | | private String verbSer; |
| | | |
| | | @Column(name = "GRAIN_FREQ_", length = 4) |
| | | @PropertyDef(label = "ç²®æ
ä¿åé¢ç", description = "é»è®¤ä¸å¤©å¤æ¬¡") |
| | | private String grainFreq; |
| | | |
| | | @Column(name = "TH_CONF_", length = 5) |
| | | @PropertyDef(label = "仿¸©ä»æ¹¿éé") |
| | | private String thConf = "1"; |
| | | |
| | | @Column(name = "CABLE_RULE_", length = 20) |
| | | @PropertyDef(label = "å¸çº¿è§å", description = "å¹³æ¹ä»è¡¨ç¤ºå±è¡åï¼çä»è¡¨ç¤ºæ¯åçåæ°") |
| | | private String cableRule; |
| | | |
| | | @Column(name = "CABLE_CIR_", length = 20) |
| | | @PropertyDef(label = "çä»å±è§å", description = "é对çä»") |
| | | private String cableCir; |
| | | |
| | | @Column(name = "CABLE_CONE_", length = 2) |
| | | @PropertyDef(label = "çä»é¥å½¢", description = "é对çä»é¥å½¢ï¼0=æ 夿ï¼1=ä¸é¥å½¢ï¼2=ä¸é¥å½¢") |
| | | private String cableCone; |
| | | |
| | | @Column(name = "CABLE_START_") |
| | | @PropertyDef(label = "çµç¼å¼å§å") |
| | | private int cableStart; |
| | | |
| | | @Column(name = "CABLE_END_") |
| | | @PropertyDef(label = "çµç¼æªè³å") |
| | | private int cableEnd; |
| | | |
| | | @Column(name = "START_ORIENTATION_", length = 20) |
| | | @PropertyDef(label = "çµç¼èµ·å§æ¹ä½", description = "é»è®¤å³è¾¹(å³è¾¹ãå³ä¸ã左边ãå·¦ä¸)") |
| | | private String startOrientation; |
| | | |
| | | @Column(name = "START_DIRECTION_", length = 20) |
| | | @PropertyDef(label = "çµç¼èµ·å§æ¹å", description = "é»è®¤çºµå(纵åãæ¨ªå)") |
| | | private String startDirection; |
| | | |
| | | @Column(name = "START_POINT_", length = 20) |
| | | @PropertyDef(label = "çµç¼èµ·å§ç¹ä½", description = "é»è®¤é¡¶é¨(é¡¶é¨ãåºé¨)") |
| | | private String startPoint; |
| | | |
| | | @Column(name = "START_CONVERT_", length = 20) |
| | | @PropertyDef(label = "å±è¡è½¬æ¢", description = "é»è®¤ä¸è½¬æ¢(é»è®¤ã顺æ¶éãéæ¶é)") |
| | | private String startConvert; |
| | | |
| | | @Column(name = "TEMP_MAX_") |
| | | @PropertyDef(label = "温度ä¸é") |
| | | private Double tempMax; |
| | | |
| | | @Column(name = "ONLY_CUR_DEPOT_", length = 1) |
| | | @PropertyDef(label = "æ¾ç¤ºå½å", description = "é»è®¤ä¸è½¬æ¢(é»è®¤ã顺æ¶éãéæ¶é)") |
| | | private String onlyCurDepot = "Y"; |
| | | |
| | | @Column(name = "GAS_START_") |
| | | @PropertyDef(label = "æ°ä½ééç¹å¼å§") |
| | | private int gasStart; |
| | | |
| | | @Column(name = "GAS_END_") |
| | | @PropertyDef(label = "æ°ä½ééç¹æªè³") |
| | | private int gasEnd; |
| | | |
| | | @Column(name = "N2_MAX_") |
| | | @PropertyDef(label = "æ°®æ°ä¸é") |
| | | private Double n2Max; |
| | | |
| | | @Column(name = "CO2_MAX_") |
| | | @PropertyDef(label = "äºæ°§å碳ä¸é") |
| | | private Double co2Max; |
| | | |
| | | @Column(name = "O2_MAX_") |
| | | @PropertyDef(label = "æ°§æ°ä¸é") |
| | | private Double o2Max; |
| | | |
| | | @Column(name = "PH3_MAX_") |
| | | @PropertyDef(label = "ç£·åæ°¢ä¸é") |
| | | private Double ph3Max; |
| | | |
| | | @Column(name = "PEST_START_") |
| | | @PropertyDef(label = "è«å®³ééç¹å¼å§") |
| | | private int pestStart; |
| | | |
| | | @Column(name = "PEST_END_") |
| | | @PropertyDef(label = "è«å®³ééç¹æªè³") |
| | | private int pestEnd; |
| | | |
| | | @Column(name = "PEST_MAX_") |
| | | @PropertyDef(label = "è«å®³ä¸é") |
| | | private Double pestMax; |
| | | |
| | | @Column(name = "IS_ONLY_TH_", length = 2) |
| | | @PropertyDef(label = "ç²®æ
æ¯å¦æ¸©æ¹¿åº¦", description = "é»è®¤å¦ã") |
| | | private String isOnlyTH ; |
| | | |
| | | // ä»åºåç§° |
| | | @Transient |
| | | private String depotName; |
| | | |
| | | //ä»åºç±»å |
| | | @Transient |
| | | private String depotType; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | | @AllArgsConstructor |
| | | public class Fz61DepotConfKey implements Serializable { |
| | | private String depotId; |
| | | private String companyId; |
| | | public Fz61DepotConfKey(){ |
| | | super(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | 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 Fz61DrugLog 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.async.fzzy61.entity; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fzzy.async.fzzy40.entity.Fz40DrugLogDtl; |
| | | import com.fzzy.async.fzzy40.entity.Fz40DrugLogPeople; |
| | | import com.fzzy.async.fzzy40.entity.Fz40DrugLogWay; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.*; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * çè¸å¤æ¡ä¸»è¡¨ä¿¡æ¯ |
| | | * |
| | | * @Author:YAN |
| | | */ |
| | | @Entity |
| | | @Data |
| | | @Table(name = "D_DRUG_LOG_APPLY") |
| | | public class Fz61DrugLogApply implements Serializable { |
| | | |
| | | public static String SORT_PROP = "xzbm"; |
| | | |
| | | @Id |
| | | @Column(name = "xzbm", length = 12) |
| | | @PropertyDef(label = "çè¸å¤æ¡ç¼å·", description = "å¡«æ¥æ¥æyyyyMMdd+4ä½é¡ºåºå·") |
| | | private String xzbm; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 21) |
| | | @PropertyDef(label = "åºåºä»£ç ") |
| | | private String deptId; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "tbrq") |
| | | @PropertyDef(label = "å¡«æ¥æ¥æ") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date tbrq; |
| | | |
| | | @Column(name = "sqxzrq") |
| | | @PropertyDef(label = "ç³è¯·çè¸æ¥æ") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date sqxzrq; |
| | | |
| | | @Column(name = "fzr", length = 20) |
| | | @PropertyDef(label = "è´è´£äºº") |
| | | private String fzr; |
| | | |
| | | @Column(name = "fzrdh", length = 11) |
| | | @PropertyDef(label = "è´è´£äººçµè¯") |
| | | private String fzrdh; |
| | | |
| | | @Column(name = "xcfzr", length = 20) |
| | | @PropertyDef(label = "ç°åºè´è´£äºº") |
| | | private String xcfzr; |
| | | |
| | | @Column(name = "fzrzw", length = 10) |
| | | @PropertyDef(label = "ç°åºè´è´£äººèå¡") |
| | | private String xcfzrzw; |
| | | |
| | | @Column(name = "xcfzrdh", length = 11) |
| | | @PropertyDef(label = "ç°åºè´è´£äººçµè¯") |
| | | private String xcfzrdh; |
| | | |
| | | @Column(name = "tbr", length = 20) |
| | | @PropertyDef(label = "填表人") |
| | | private String tbr; |
| | | |
| | | @Column(name = "tbrdh", length = 11) |
| | | @PropertyDef(label = "填表人çµè¯") |
| | | private String tbrdh; |
| | | |
| | | @Column(name = "sfszjjxd", length = 2) |
| | | @PropertyDef(label = "æ¯å¦è®¾ç½®è¦æçº¿(ä¸)", description = "æ¯æå¦") |
| | | private String sfszjjxd; |
| | | |
| | | @Column(name = "sfszjjxx", length = 2) |
| | | @PropertyDef(label = "æ¯å¦è®¾ç½®è¦æçº¿(西)", description = "æ¯æå¦") |
| | | private String sfszjjxx; |
| | | |
| | | @Column(name = "sfszjjxn", length = 2) |
| | | @PropertyDef(label = "æ¯å¦è®¾ç½®è¦æçº¿(å)", description = "æ¯æå¦") |
| | | private String sfszjjxn; |
| | | |
| | | @Column(name = "sfszjjxb", length = 2) |
| | | @PropertyDef(label = "æ¯å¦è®¾ç½®è¦æçº¿(å)", description = "æ¯æå¦") |
| | | private String sfszjjxb; |
| | | |
| | | @Column(name = "ssxzzystqybqk", length = 1024) |
| | | @PropertyDef(label = "宿½çè¸ä½ä¸æ¶å¤©æ°é¢æ¥æ
åµ") |
| | | private String ssxzzystqybqk; |
| | | |
| | | @Column(name = "xzssgcap", length = 1024) |
| | | @PropertyDef(label = "çè¸å®æå宿½è¿ç¨") |
| | | private String xzssgcap; |
| | | |
| | | @Column(name = "aqfhjyjcccs", length = 1024) |
| | | @PropertyDef(label = "å®å
¨é²æ¤ååºæ¥å¤ç½®æªæ½") |
| | | private String aqfhjyjcccs; |
| | | |
| | | @Column(name = "xzzysx", length = 1024) |
| | | @PropertyDef(label = "çè¸æ³¨æäºé¡¹") |
| | | private String xzzysx; |
| | | |
| | | @Column(name = "DRUG_NAME_", length = 64) |
| | | @PropertyDef(label = "è¯ååç§°") |
| | | private String drugName; |
| | | |
| | | @Column(name = "DRUG_TYPE_", length = 10) |
| | | @PropertyDef(label = "è¯åç±»å/åå·") |
| | | private String drugType; |
| | | |
| | | @Column(name = "yjyxqz") |
| | | @PropertyDef(label = "è¯åæææè³") |
| | | private Date yjyxqz; |
| | | |
| | | @Column(name = "lqsl", precision = 20, scale = 3) |
| | | @PropertyDef(label = "é¢åæ°é", description = "å
¬æ¤") |
| | | private Double lqsl; |
| | | |
| | | @Column(name = "sysbjfs", length = 20) |
| | | @PropertyDef(label = "æ½è¯è®¾å¤åæ¹å¼") |
| | | private String sysbjfs; |
| | | |
| | | @Column(name = "zcdd", length = 30) |
| | | @PropertyDef(label = "æåå°ç¹") |
| | | private String zcdd; |
| | | |
| | | @Column(name = "lqr", length = 20) |
| | | @PropertyDef(label = "é¢å人") |
| | | private String lqr; |
| | | |
| | | @Column(name = "lqsj") |
| | | @PropertyDef(label = "é¢åæ¶é´") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date lqsj; |
| | | |
| | | @Column(name = "UPDATE_TIME_") |
| | | @PropertyDef(label = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | |
| | | |
| | | /** |
| | | * å¨ç²®ç²®æ
æç»è¡¨ |
| | | */ |
| | | @Transient |
| | | private List<Fz61DrugLogDtl> drugLogDtls; |
| | | |
| | | @Column(name = "DTL_ID_", length = 40) |
| | | @PropertyDef(label = "dtlId") |
| | | private String dtlId; |
| | | |
| | | @Column(name = "DEPOT_ID_", length = 50) |
| | | @PropertyDef(label = "仿¿/æ²¹ç½ä»£ç ") |
| | | private String depotId; |
| | | |
| | | @Column(name = "FOOD_VARIETY_", length = 20) |
| | | @PropertyDef(label = "ç²®é£åç§") |
| | | private String foodVariety; |
| | | |
| | | @Column(name = "FOOD_TYPE_", length = 20) |
| | | @PropertyDef(label = "ç²®é£æ§è´¨") |
| | | private String foodType; |
| | | |
| | | @Column(name = "FOOD_LEVEL_", length = 10) |
| | | @PropertyDef(label = "ç²®é£ç级") |
| | | private String foodLevel; |
| | | |
| | | @Column(name = "NUMBER_", precision = 20, scale = 3) |
| | | @PropertyDef(label = "ç²®é£æ°é", description = "åä½ï¼å¨") |
| | | private Double number = 0.0; |
| | | |
| | | @Column(name = "PER_WET_", precision = 20, scale = 3) |
| | | @PropertyDef(label = "æ°´å", description = "åä½ï¼%") |
| | | private Double perWet; |
| | | |
| | | @Column(name = "PER_IMPURITY_", precision = 20, scale = 3) |
| | | @PropertyDef(label = "æè´¨", description = "åä½ï¼%") |
| | | private Double perImpurity; |
| | | |
| | | @Column(name = "lw", precision = 20, scale = 3) |
| | | @PropertyDef(label = "粮温") |
| | | private Double lw; |
| | | |
| | | @Column(name = "cw", precision = 20, scale = 3) |
| | | @PropertyDef(label = "仿¸©") |
| | | private Double cw; |
| | | |
| | | @Column(name = "cnsd", precision = 20, scale = 3) |
| | | @PropertyDef(label = "ä»å
湿度") |
| | | private Double cnsd; |
| | | |
| | | @Column(name = "clfs", length = 1) |
| | | @PropertyDef(label = "åç²®æ¹å¼", description = "1ï¼æ£è£
å¨ç²®;2ï¼å
è£
;3ï¼å´å
æ£å;9ï¼å
¶ä»") |
| | | private String clfs; |
| | | |
| | | @Column(name = "rkrq") |
| | | @PropertyDef(label = "å
¥åºæ¥æ") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date rkrq; |
| | | |
| | | @Column(name = "hc", length = 30) |
| | | @PropertyDef(label = "害è«") |
| | | private String hc; |
| | | |
| | | @Column(name = "cldjpd", length = 3) |
| | | @PropertyDef(label = "è«ç²®ç级å¤å®") |
| | | private String cldjpd; |
| | | |
| | | @Column(name = "ldtj", precision = 20, scale = 3) |
| | | @PropertyDef(label = "ç²®å ä½ç§¯", description = "m³") |
| | | private Double ldtj; |
| | | |
| | | @Column(name = "kjtj", precision = 20, scale = 3) |
| | | @PropertyDef(label = "空é´ä½ç§¯", description = "m³") |
| | | private Double kjtj; |
| | | |
| | | @Column(name = "lddwyyl", precision = 20, scale = 3) |
| | | @PropertyDef(label = "ç²®å åä½ç¨è¯é") |
| | | private Double lddwyyl; |
| | | |
| | | @Column(name = "kjdwyyl", precision = 20, scale = 3) |
| | | @PropertyDef(label = "空é´åä½ç¨è¯é") |
| | | private Double kjdwyyl; |
| | | |
| | | @Column(name = "zyyl", precision = 20, scale = 3) |
| | | @PropertyDef(label = "æ»ç¨è¯é") |
| | | private Double zyyl; |
| | | /** |
| | | * 仿¿æ°å¯æ§ä»¥ 500 Pa çåååè¡° æ t å为å个ç级ã |
| | | * 1ï¼ â
级ï¼tâ¥300sã |
| | | * 2ï¼ â
¡çº§ï¼120sâ¤t<300sã |
| | | * 3ï¼â
¢çº§ï¼40sâ¤t<120s (å¹³æ¿ä») ï¼ 60s⤠t<120s (ç«çä»ãæµ
åä») ã |
| | | * 4ï¼â
£çº§ï¼t<40s (å¹³æ¿ä») ï¼t<60s (ç«çä»ãæµ
åä») ã |
| | | */ |
| | | @Column(name = "qmx", length = 1) |
| | | @PropertyDef(label = "æ°å¯æ§") |
| | | private String qmx; |
| | | |
| | | @Column(name = "jhxzksrq") |
| | | @PropertyDef(label = "计åçè¸å¼å§æ¥æ") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date jhxzksrq; |
| | | |
| | | @Column(name = "jhxzjsrq") |
| | | @PropertyDef(label = "计åçè¸ç»ææ¥æ") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date jhxzjsrq; |
| | | |
| | | /** |
| | | * çè¸å¤æ¡æ¹å¼ |
| | | */ |
| | | @Transient |
| | | private List<Fz61DrugLogWay> drugLogWays; |
| | | |
| | | @Column(name = "Way_ID_", length = 40) |
| | | @PropertyDef(label = "wayId") |
| | | private String wayId; |
| | | |
| | | @Column(name = "xznd", precision = 20, scale = 3) |
| | | @PropertyDef(label = "设å®çè¸æµåº¦", description = "åä½ï¼ml/m³") |
| | | private Double xznd; |
| | | |
| | | @Column(name = "mbsj") |
| | | @PropertyDef(label = "å¯éæ¶é´", description = "åä½ï¼å¤©") |
| | | private Integer mbsj; |
| | | |
| | | @Column(name = "xzfs", length = 30) |
| | | @PropertyDef(label = "çè¸æ¹å¼") |
| | | private String xzfs; |
| | | |
| | | @Column(name = "sqfs", length = 30) |
| | | @PropertyDef(label = "æ£æ°æ¹å¼") |
| | | private String sqfs; |
| | | |
| | | /** |
| | | * çè¸ä½ä¸äººå |
| | | */ |
| | | @Transient |
| | | private List<Fz61DrugLogPeople> drugLogPeople; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "éä»¶ä¿¡æ¯") |
| | | private List<Fz61FileInfo> files; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | | @AllArgsConstructor |
| | | public class Fz61DrugLogApplyKey implements Serializable { |
| | | private String id; |
| | | private String deptId; |
| | | private String standardId; |
| | | |
| | | public Fz61DrugLogApplyKey(){ |
| | | super(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | 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; |
| | | |
| | | /** |
| | | * 宿½çè¸ä½ä¸çå¨ç²®ç²®æ
æç»è¡¨ |
| | | * |
| | | * @Author:YAN |
| | | */ |
| | | @Entity |
| | | @Data |
| | | @Table(name = "D_DRUG_LOG_DTL") |
| | | public class Fz61DrugLogDtl implements Serializable { |
| | | |
| | | @Id |
| | | @Column(name = "DTL_ID_", length = 40) |
| | | @PropertyDef(label = "dtlId") |
| | | private String dtlId; |
| | | |
| | | @Column(name = "DRUG_LOG_ID_", length = 12) |
| | | @PropertyDef(label = "çè¸å¤æ¡ç¼å·", description = "å¡«æ¥æ¥æyyyyMMdd+4ä½é¡ºåºå·") |
| | | private String drugLogId; |
| | | |
| | | @Column(name = "DEPOT_ID_", length = 50) |
| | | @PropertyDef(label = "仿¿/æ²¹ç½ä»£ç ") |
| | | private String depotId; |
| | | |
| | | @Column(name = "FOOD_VARIETY_", length = 20) |
| | | @PropertyDef(label = "ç²®é£åç§") |
| | | private String foodVariety; |
| | | |
| | | @Column(name = "FOOD_TYPE_", length = 20) |
| | | @PropertyDef(label = "ç²®é£æ§è´¨") |
| | | private String foodType; |
| | | |
| | | @Column(name = "FOOD_LEVEL_", length = 10) |
| | | @PropertyDef(label = "ç²®é£ç级") |
| | | private String foodLevel; |
| | | |
| | | @Column(name = "NUMBER_", precision = 20, scale = 3) |
| | | @PropertyDef(label = "ç²®é£æ°é", description = "åä½ï¼å¨") |
| | | private Double number = 0.0; |
| | | |
| | | @Column(name = "PER_WET_", precision = 20, scale = 3) |
| | | @PropertyDef(label = "æ°´å", description = "åä½ï¼%") |
| | | private Double perWet; |
| | | |
| | | @Column(name = "PER_IMPURITY_", precision = 20, scale = 3) |
| | | @PropertyDef(label = "æè´¨", description = "åä½ï¼%") |
| | | private Double perImpurity; |
| | | |
| | | @Column(name = "lw", precision = 20, scale = 3) |
| | | @PropertyDef(label = "粮温") |
| | | private Double lw; |
| | | |
| | | @Column(name = "cw", precision = 20, scale = 3) |
| | | @PropertyDef(label = "仿¸©") |
| | | private Double cw; |
| | | |
| | | @Column(name = "cnsd", precision = 20, scale = 3) |
| | | @PropertyDef(label = "ä»å
湿度") |
| | | private Double cnsd; |
| | | |
| | | @Column(name = "clfs", length = 1) |
| | | @PropertyDef(label = "åç²®æ¹å¼", description = "1ï¼æ£è£
å¨ç²®;2ï¼å
è£
;3ï¼å´å
æ£å;9ï¼å
¶ä»") |
| | | private String clfs; |
| | | |
| | | @Column(name = "rkrq") |
| | | @PropertyDef(label = "å
¥åºæ¥æ") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date rkrq; |
| | | |
| | | @Column(name = "hc", length = 30) |
| | | @PropertyDef(label = "害è«") |
| | | private String hc; |
| | | |
| | | @Column(name = "cldjpd", length = 3) |
| | | @PropertyDef(label = "è«ç²®ç级å¤å®") |
| | | private String cldjpd; |
| | | |
| | | @Column(name = "ldtj", precision = 20, scale = 3) |
| | | @PropertyDef(label = "ç²®å ä½ç§¯", description = "m³") |
| | | private Double ldtj; |
| | | |
| | | @Column(name = "kjtj", precision = 20, scale = 3) |
| | | @PropertyDef(label = "空é´ä½ç§¯", description = "m³") |
| | | private Double kjtj; |
| | | |
| | | @Column(name = "lddwyyl", precision = 20, scale = 3) |
| | | @PropertyDef(label = "ç²®å åä½ç¨è¯é") |
| | | private Double lddwyyl; |
| | | |
| | | @Column(name = "kjdwyyl", precision = 20, scale = 3) |
| | | @PropertyDef(label = "空é´åä½ç¨è¯é") |
| | | private Double kjdwyyl; |
| | | |
| | | @Column(name = "zyyl", precision = 20, scale = 3) |
| | | @PropertyDef(label = "æ»ç¨è¯é") |
| | | private Double zyyl; |
| | | /** |
| | | * 仿¿æ°å¯æ§ä»¥ 500 Pa çåååè¡° æ t å为å个ç级ã |
| | | * 1ï¼ â
级ï¼tâ¥300sã |
| | | * 2ï¼ â
¡çº§ï¼120sâ¤t<300sã |
| | | * 3ï¼â
¢çº§ï¼40sâ¤t<120s (å¹³æ¿ä») ï¼ 60s⤠t<120s (ç«çä»ãæµ
åä») ã 4ï¼â
£çº§ï¼t<40s (å¹³æ¿ä») ï¼t<60s (ç«çä»ãæµ
åä») ã |
| | | */ |
| | | @Column(name = "qmx", length = 1) |
| | | @PropertyDef(label = "æ°å¯æ§") |
| | | private String qmx; |
| | | |
| | | @Column(name = "jhxzksrq") |
| | | @PropertyDef(label = "计åçè¸å¼å§æ¥æ") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date jhxzksrq; |
| | | |
| | | @Column(name = "jhxzjsrq") |
| | | @PropertyDef(label = "计åçè¸ç»ææ¥æ") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date jhxzjsrq; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | 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; |
| | | |
| | | /** |
| | | * çè¸ä½ä¸äººåä¿¡æ¯è¡¨ |
| | | * |
| | | * @Author:YAN |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_DRUG_LOG_PEOPLE") |
| | | public class Fz61DrugLogPeople implements Serializable { |
| | | |
| | | @Id |
| | | @Column(name = "PEOPLE_ID_", length = 40) |
| | | @PropertyDef(label = "propleId") |
| | | private String propleId; |
| | | |
| | | |
| | | @Column(name = "DRUG_LOG_ID_", length = 12) |
| | | @PropertyDef(label = "çè¸å¤æ¡ç¼å·", description = "å¡«æ¥æ¥æyyyyMMdd+4ä½é¡ºåºå·") |
| | | private String drugLogId; |
| | | |
| | | @Column(name = "mx", length = 20) |
| | | @PropertyDef(label = "å§å") |
| | | private String mx; |
| | | |
| | | @Column(name = "zw", length = 10) |
| | | @PropertyDef(label = "èå¡") |
| | | private String zw; |
| | | |
| | | @Column(name = "zyzg", length = 6) |
| | | @PropertyDef(label = "èä¸èµæ ¼", description = "å级/ä¸çº§/é«çº§") |
| | | private String zyzg; |
| | | |
| | | @Column(name = "stzk", length = 10) |
| | | @PropertyDef(label = "身ä½ç¶åµ") |
| | | private String stzk; |
| | | |
| | | @Column(name = "xzrwfg", length = 30) |
| | | @PropertyDef(label = "çè¸ä»»å¡åå·¥") |
| | | private String xzrwfg; |
| | | |
| | | @Column(name = "sfwb", length = 2) |
| | | @PropertyDef(label = "æ¯å¦å¤å
", description = "æ¯/å¦") |
| | | private String sfwb; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | 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; |
| | | |
| | | /** |
| | | * çè¸å¤æ¡æ¹å¼è¡¨ |
| | | * |
| | | * @Author:YAN |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_DRUG_LOG_WAY") |
| | | public class Fz61DrugLogWay implements Serializable { |
| | | |
| | | @Id |
| | | @Column(name = "WAY_ID_", length = 40) |
| | | @PropertyDef(label = "wayId") |
| | | private String wayId; |
| | | |
| | | @Column(name = "DRUG_LOG_ID_", length = 12) |
| | | @PropertyDef(label = "çè¸å¤æ¡ç¼å·", description = "å¡«æ¥æ¥æyyyyMMdd+4ä½é¡ºåºå·") |
| | | private String drugLogId; |
| | | |
| | | @Column(name = "xznd", precision = 20, scale = 3) |
| | | @PropertyDef(label = "设å®çè¸æµåº¦", description = "åä½ï¼ml/m³") |
| | | private Double xznd; |
| | | |
| | | @Column(name = "mbsj") |
| | | @PropertyDef(label = "å¯éæ¶é´", description = "åä½ï¼å¤©") |
| | | private Integer mbsj; |
| | | |
| | | @Column(name = "xzfs", length = 30) |
| | | @PropertyDef(label = "çè¸æ¹å¼") |
| | | private String xzfs; |
| | | |
| | | @Column(name = "sqfs", length = 30) |
| | | @PropertyDef(label = "æ£æ°æ¹å¼") |
| | | private String sqfs; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.*; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * æ°ä½ä¸å¡æ°æ®ä¿¡æ¯å
æ¬æµåº¦ï¼æ°®æ°ï¼ååä¿¡æ¯ æ°ä½æ¨¡åï¼å
æ¬æ°ä½æµåº¦ |
| | | * |
| | | * @author Andy |
| | | * |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_GAS") |
| | | @IdClass(Fz61GasKey.class) |
| | | public class Fz61Gas implements Serializable { |
| | | |
| | | public static String SORT_PROP = "batchId"; |
| | | |
| | | @Id |
| | | @Column(name = "BATCH_ID_", length = 40) |
| | | @PropertyDef(label = "æ¹æ¬¡ID") |
| | | private String batchId; |
| | | |
| | | @Id |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ", description = "") |
| | | private String companyId; |
| | | |
| | | @Id |
| | | @Column(name = "DEPOT_ID_", length = 50) |
| | | @PropertyDef(label = "ä»åºID", description = "ä»åºç¼å·") |
| | | private String depotId; |
| | | |
| | | @Column(name = "TYPE_", length = 1) |
| | | @PropertyDef(label = "ç±»å", description = "0-å¸¸è§æ£æµï¼1-çè¸æ£æµ") |
| | | private String type; |
| | | |
| | | @Column(name = "PER_CO2_") |
| | | @PropertyDef(label = "äºæ°§å碳æµåº¦", description = "å¹³åäºæ°§å碳æµåº¦(PPM)") |
| | | private Double perCo2 = 0.0; |
| | | |
| | | @Column(name = "PER_O2_") |
| | | @PropertyDef(label = "æ°§æ°æµåº¦", description = "平忰§æ°æµåº¦(%)") |
| | | private Double perO2 = 0.0; |
| | | |
| | | @Column(name = "PER_PH3_") |
| | | @PropertyDef(label = "ç£·åæ°¢æµåº¦", description = "å¹³åç£·åæ°¢æµåº¦(PPM)") |
| | | private Double perPh3 = 0.0; |
| | | |
| | | @Column(name = "PER_N2_") |
| | | @PropertyDef(label = "æ°®æ°æµåº¦", description = "æ°®æ°æµåº¦(%)") |
| | | private Double perN2 = 0.0; |
| | | |
| | | @Column(name = "PER_CO2_MAX_") |
| | | @PropertyDef(label = "äºæ°§å碳æµåº¦-æå¤§", description = "äºæ°§å碳æµåº¦(PPM)") |
| | | private Double perCo2Max = 0.0; |
| | | |
| | | @Column(name = "PER_O2_MAX_") |
| | | @PropertyDef(label = "æ°§æ°æµåº¦-æå¤§", description = "æ°§æ°æµåº¦(%)") |
| | | private Double perO2Max = 0.0; |
| | | |
| | | @Column(name = "PER_PH3_MAX_") |
| | | @PropertyDef(label = "ç£·åæ°¢æµåº¦-æå¤§", description = "ç£·åæ°¢æµåº¦(PPM)") |
| | | private Double perPh3Max = 0.0; |
| | | |
| | | @Column(name = "PER_N2_MAX_") |
| | | @PropertyDef(label = "æ°®æ°æµåº¦-æå¤§") |
| | | private Double perN2Max = 0.0; |
| | | |
| | | @Column(name = "PER_CO2_MIN_") |
| | | @PropertyDef(label = "äºæ°§å碳æµåº¦-æå°", description = "äºæ°§å碳æµåº¦(PPM)") |
| | | private Double perCo2Min = 0.0; |
| | | |
| | | @Column(name = "PER_O2_MIN_") |
| | | @PropertyDef(label = "æ°§æ°æµåº¦-æå°", description = "æ°§æ°æµåº¦(%)") |
| | | private Double perO2Min = 0.0; |
| | | |
| | | @Column(name = "PER_PH3_MIN_") |
| | | @PropertyDef(label = "ç£·åæ°¢æµåº¦-æå°", description = "ç£·åæ°¢æµåº¦(PPM)") |
| | | private Double perPh3Min = 0.0; |
| | | |
| | | @Column(name = "PER_N2_MIN_") |
| | | @PropertyDef(label = "æ°®æ°æµåº¦-æå°") |
| | | private Double perN2Min = 0.0; |
| | | |
| | | @Column(name = "RECEIVE_DATE_") |
| | | @PropertyDef(label = "æ£æµæ¶é´") |
| | | private Date receiveDate; |
| | | |
| | | @Column(name = "GAS_START_") |
| | | @PropertyDef(label = "æ°ä½ééç¹å¼å§", description = "æ°ä½é
置信æ¯") |
| | | private int gasStart; |
| | | |
| | | @Column(name = "GAS_END_") |
| | | @PropertyDef(label = "æ°ä½ééç¹æªè³", description = "æ°ä½é
置信æ¯") |
| | | private int gasEnd; |
| | | |
| | | @Column(name = "CHECK_NUM_") |
| | | @PropertyDef(label = "éééé个æ°") |
| | | private int checkNum = 0; |
| | | |
| | | @Column(name = "POINTS_", length = 2000) |
| | | @PropertyDef(label = "ééç¹ä¿¡æ¯", description = "åºå®ä¸ºï¼passCode,co2,o2,ph3,n2;passCode,co2,o2,ph3,n2;") |
| | | private String points; |
| | | |
| | | @Column(name = "CHECK_USER_", length = 30) |
| | | @PropertyDef(label = "æ£æµäºº") |
| | | private String checkUser; |
| | | |
| | | @Column(name = "BATCH_TAG_", length = 2) |
| | | @PropertyDef(label = "çææ¹å¼", description = "01-设å¤ééï¼02-æå¨è¡¥å½") |
| | | private String batchTag = "01"; |
| | | |
| | | @Column(name = "REMARK_", length = 200) |
| | | @PropertyDef(label = "夿³¨ä¿¡æ¯") |
| | | private String remark; |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | | @AllArgsConstructor |
| | | public class Fz61GasKey implements Serializable { |
| | | private String batchId; |
| | | private String companyId; |
| | | private String depotId; |
| | | public Fz61GasKey(){ |
| | | super(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.*; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * ç²®æ
æ°æ®-主表 |
| | | * <p> |
| | | * æ´æ°è®°å½ï¼ |
| | | * 1ï¼å é¤è¡æ°æ®ç表记å½ï¼è°æ´ä¸ºæ°æ®ç´æ¥ææ¬ä¿åä¸»è¡¨ä¸ |
| | | * 2ï¼ä¿çç¹ä½åæ ä¿¡æ¯ï¼ä¾¿äºä»¥åç¹ä½èµ°å¿å¾æ¥ç |
| | | * |
| | | * @author Andy |
| | | */ |
| | | @Entity |
| | | @Table(name = "D_GRAIN") |
| | | @Data |
| | | @IdClass(Fz61GrainKey.class) |
| | | public class Fz61Grain implements Serializable { |
| | | |
| | | public static String SORT_PROP = "batchId"; |
| | | |
| | | @Id |
| | | @Column(name = "BATCH_ID_", length = 30) |
| | | @PropertyDef(label = "æ¹æ¬¡ç¼å·") |
| | | private String batchId; |
| | | |
| | | @Id |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ", description = "") |
| | | private String companyId; |
| | | |
| | | @Id |
| | | @Column(name = "DEPOT_ID_", length = 50) |
| | | @PropertyDef(label = "æå±ä»åº", description = "ä»åºç¼å·") |
| | | private String depotId; |
| | | |
| | | |
| | | @Column(name = "TEMP_MIN_") |
| | | @PropertyDef(label = "æä½æ¸©ç²®æ¸©", description = "åä½âï¼ç²®æ
æä½æ¸©") |
| | | private Double tempMin = 0.0; |
| | | |
| | | @Column(name = "TEMP_MAX_") |
| | | @PropertyDef(label = "æé«ç²®æ¸©", description = "åä½âï¼ç²®æ
æé«æ¸©") |
| | | private Double tempMax = 0.0; |
| | | |
| | | @Column(name = "TEMP_AVE_") |
| | | @PropertyDef(label = "å¹³å粮温", description = "åä½âï¼ç²®æ
平忏©åº¦") |
| | | private Double tempAve = 0.0; |
| | | |
| | | @Column(name = "HUMIDITY_IN_") |
| | | @PropertyDef(label = "ä»å
湿度") |
| | | private Double humidityIn; |
| | | |
| | | @Column(name = "TEMP_IN_") |
| | | @PropertyDef(label = "ä»å
温度") |
| | | private Double tempIn; |
| | | |
| | | @Column(name = "HUMIDITY_OUT_") |
| | | @PropertyDef(label = "ä»å¤æ¹¿åº¦") |
| | | private Double humidityOut; |
| | | |
| | | @Column(name = "TEMP_OUT_") |
| | | @PropertyDef(label = "ä»å¤æ¸©åº¦") |
| | | private Double tempOut; |
| | | |
| | | @Column(name = "CABLE_", length = 20) |
| | | @PropertyDef(label = "å±è¡å", description = "ç¨éå·éå¼çé
置信æ¯,å±-è¡-å") |
| | | private String cable; |
| | | |
| | | @PropertyDef(label = "çä»å±é
ç½®", description = "ç¨-éå¼çé
置信æ¯") |
| | | @Column(name = "CABLE_CIR_", length = 20) |
| | | private String cableCir; |
| | | |
| | | @PropertyDef(label = "æ²¹é¢é«åº¦", description = "ç¨-éå¼ç两个å¼ï¼æ²¹é¢é«åº¦-建çé«åº¦") |
| | | @Column(name = "OIL_HEIGHT_", length = 20) |
| | | private String oilHeight; |
| | | |
| | | @Column(name = "WEATHER_", length = 20) |
| | | @PropertyDef(label = "天æ°", description = "ç´æ¥å¡«åä¸æä¿¡æ¯ï¼æ´ï¼é´é¨å¤©") |
| | | private String weather = ""; |
| | | |
| | | @Column(name = "RECEIVE_DATE_") |
| | | @PropertyDef(label = "æ¥æ¶æ¶é´") |
| | | private Date receiveDate; |
| | | |
| | | @Column(name = "CHECK_USER_", length = 30) |
| | | @PropertyDef(label = "æ£æµäºº") |
| | | private String checkUser; |
| | | |
| | | @Column(name = "REMARK_", length = 500) |
| | | @PropertyDef(label = "夿³¨", description = "夿³¨") |
| | | private String remark; |
| | | |
| | | @Column(name = "POINTS_", length = 2000) |
| | | @PropertyDef(label = "ééç¹ä¿¡æ¯", description = "ç¨éå·éå¼ç温度信æ¯ä¿¡æ¯") |
| | | private String points; |
| | | |
| | | @Column(name = "PUSH_TAG_", length = 2) |
| | | @PropertyDef(label = "æ¨éæ è®°", description = "æ¨é平尿 è®°") |
| | | private String pushTag; |
| | | |
| | | @Column(name = "BATCH_TAG_", length = 2) |
| | | @PropertyDef(label = "çææ¹å¼", description = "01-设å¤ééï¼02-æå¨è¡¥å½") |
| | | private String batchTag = "01"; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "æå±ååº", description = "ååºç¼ç ï¼éæ°æ®åºå段") |
| | | private String deptId; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | | @AllArgsConstructor |
| | | public class Fz61GrainKey implements Serializable { |
| | | private String batchId; |
| | | private String companyId; |
| | | private String depotId; |
| | | public Fz61GrainKey(){ |
| | | super(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.*; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 计å管ç-主表 |
| | | * <p> |
| | | * å
æ¬ï¼æ¶è´è®¡åï¼éå®è®¡åï¼è½®æ¢è®°å½ï¼è®¡åæ§è¡ |
| | | * |
| | | * @author: andy.jia |
| | | * @description: çæ¬4.0åæ®µå·²å®¡ |
| | | * @version: |
| | | * @data:2020å¹´5æ27æ¥ |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_INOUT_PLAN") |
| | | public class Fz61InoutPlan implements Serializable { |
| | | |
| | | public static String SORT_PROP = "year"; |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 40) |
| | | @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 = "TYPE_", length = 10) |
| | | @PropertyDef(label = "计åç±»å") |
| | | private String type; |
| | | |
| | | @Column(name = "NAME_", length = 50) |
| | | @PropertyDef(label = "计ååç§°") |
| | | private String name; |
| | | |
| | | @Column(name = "REFERENCE_NUMBER_", length = 40) |
| | | @PropertyDef(label = "计åæå·") |
| | | private String referenceNumber; |
| | | |
| | | @Column(name = "YEAR_", length = 10) |
| | | @PropertyDef(label = "年份") |
| | | private String year; |
| | | |
| | | @Column(name = "BEGIN_TIME_") |
| | | @PropertyDef(label = "å¼å§æ¶é´") |
| | | private Date beginTime; |
| | | |
| | | @Column(name = "END_TIME_") |
| | | @PropertyDef(label = "æªæ¢æ¶é´") |
| | | private Date endTime; |
| | | |
| | | @PropertyDef(label = "计åä¸è¾¾åä½") |
| | | @Column(name = "jhxddw", length = 18) |
| | | private String jhxddw; |
| | | |
| | | @PropertyDef(label = "计åä¸è¾¾æ¶é´") |
| | | @Column(name = "jhxdsj") |
| | | private Date jhxdsj; |
| | | |
| | | @Column(name = "CREATE_USER_", length = 30) |
| | | @PropertyDef(label = "å建人") |
| | | private String createUser; |
| | | |
| | | @Column(name = "CREATE_TIME_") |
| | | @PropertyDef(label = "å建æ¶é´") |
| | | private Date createTime; |
| | | |
| | | @Column(name = "UPDATE_TIME_") |
| | | @PropertyDef(label = "æ°æ®æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | |
| | | @Column(name = "REMARK_", length = 250) |
| | | @PropertyDef(label = "夿³¨") |
| | | private String remark; |
| | | |
| | | /** |
| | | * --------éä»¶-------- |
| | | **/ |
| | | @Column(name = "FILE_ID_", length = 30) |
| | | @PropertyDef(label = "éä»¶id") |
| | | private String fileId; |
| | | |
| | | @Column(name = "FILE_NAME_", length = 50) |
| | | @PropertyDef(label = "éä»¶åç§°") |
| | | private String fileName; |
| | | |
| | | @Column(name = "FILE_TIME_") |
| | | @PropertyDef(label = "éä»¶ä¸ä¼ æ¶é´") |
| | | private Date fileTime; |
| | | |
| | | @Transient |
| | | private List<Fz61InoutPlanDetail> details; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | 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; |
| | | |
| | | /** |
| | | * 计åï¼è®¡åè¯¦ç» |
| | | * |
| | | * @DESC çæ¬4.0 éªè¯ |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_INOUT_PLAN_DETAIL") |
| | | public class Fz61InoutPlanDetail implements Serializable { |
| | | |
| | | public static String SORT_PROP = "planId"; |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 40) |
| | | @PropertyDef(label = "计åæç»å·") |
| | | private String id; |
| | | |
| | | @Column(name = "PLAN_ID_", length = 40) |
| | | @PropertyDef(label = "计åç¼ç ") |
| | | private String planId; |
| | | |
| | | @Column(name = "FOOD_VARIETY_", length = 10) |
| | | @PropertyDef(label = "ç²®é£åç§") |
| | | private String foodVariety; |
| | | |
| | | @Column(name = "FOOD_TYPE_", length = 10) |
| | | @PropertyDef(label = "ç²®é£æ§è´¨") |
| | | private String foodType; |
| | | |
| | | @Column(name = "FOOD_LEVEL_", length = 10) |
| | | @PropertyDef(label = "ç²®é£ç级") |
| | | private String foodLevel; |
| | | |
| | | @Column(name = "YEAR_", length = 10) |
| | | @PropertyDef(label = "æ¶è·å¹´åº¦") |
| | | private String year; |
| | | |
| | | @Column(name = "DEPOT_ID_", length = 50) |
| | | @PropertyDef(label = "ä»åº") |
| | | private String depotId; |
| | | |
| | | @Column(name = "PLAN_NUM_", precision = 16, scale = 2) |
| | | @PropertyDef(label = "è®¡åæ°é", description = "åä½ï¼å¨") |
| | | private Double planNum; |
| | | |
| | | @Column(name = "TYPE_", length = 4) |
| | | @PropertyDef(label = "计åç±»å") |
| | | private String type; |
| | | |
| | | @Column(name = "UPDATE_TIME_") |
| | | @PropertyDef(label = "æ°æ®æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.*; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * è«å®³ç»è®¡ |
| | | * |
| | | * @author: andy.jia |
| | | * @description: |
| | | * @version: |
| | | * @data:2019å¹´12æ25æ¥ |
| | | * |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_PEST") |
| | | @IdClass(Fz61PestKey.class) |
| | | public class Fz61Pest implements Serializable { |
| | | |
| | | public static String SORT_PROP = "batchId"; |
| | | |
| | | @Id |
| | | @Column(name = "BATCH_ID_", length = 40) |
| | | @PropertyDef(label = "æ¹æ¬¡ID") |
| | | private String batchId; |
| | | |
| | | @Id |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ", description = "") |
| | | private String companyId; |
| | | |
| | | @Id |
| | | @Column(name = "DEPOT_ID_", length = 50) |
| | | @PropertyDef(label = "ä»åºID", description = "ä»åºç¼å·") |
| | | private String depotId; |
| | | |
| | | @Column(name = "PEST_MAX_") |
| | | @PropertyDef(label = "æå¤æ°é") |
| | | private int pestMax = 0; |
| | | |
| | | @Column(name = "METHOD_", length = 10) |
| | | @PropertyDef(label = "è«å®³æ£æµæ¹æ³", description = "0-ç²®å æ¦æ ·ï¼1-å¢é¢ç²®é¢æ£æ¥") |
| | | private String method; |
| | | |
| | | @Column(name = "POSITION_", length =30) |
| | | @PropertyDef(label = "åçé¨ä½") |
| | | private String position; |
| | | |
| | | @Column(name = "PEST_TYPE_", length =30) |
| | | @PropertyDef(label = "è«å®³ç§ç±»") |
| | | private String pestType; |
| | | |
| | | @Column(name = "PEST_LEVEL_", length =30) |
| | | @PropertyDef(label = "è«ç²®ç级å¤å®") |
| | | private String pestLevel; |
| | | |
| | | @Column(name = "PEST_ANALYSIS_", length =60) |
| | | @PropertyDef(label = "å®³è«æè¯æ§åæ") |
| | | private String pestAnalysis; |
| | | |
| | | @Column(name = "PEST_START_") |
| | | @PropertyDef(label = "è«å®³ééç¹å¼å§", description = "æ°ä½é
置信æ¯") |
| | | private int pestStart; |
| | | |
| | | @Column(name = "PEST_END_") |
| | | @PropertyDef(label = "è«å®³ééç¹æªè³", description = "æ°ä½é
置信æ¯") |
| | | private int pestEnd; |
| | | |
| | | @Column(name = "CHECK_NUM_") |
| | | @PropertyDef(label = "éééé个æ°") |
| | | private int checkNum = 0; |
| | | |
| | | @Column(name = "RECEIVE_DATE_") |
| | | @PropertyDef(label = "æ£æµæ¶é´") |
| | | private Date receiveDate; |
| | | |
| | | @Column(name = "POINTS_", length = 2000) |
| | | @PropertyDef(label = "ééç¹ä¿¡æ¯", description = "åºå®ä¸ºï¼passCode,num;passCode,num;") |
| | | private String points; |
| | | |
| | | @Column(name = "CHECK_USER_", length = 30) |
| | | @PropertyDef(label = "æ£æµäºº") |
| | | private String checkUser; |
| | | |
| | | @Column(name = "BATCH_TAG_", length = 2) |
| | | @PropertyDef(label = "çææ¹å¼", description = "01-设å¤ééï¼02-æå¨è¡¥å½") |
| | | private String batchTag = "01"; |
| | | |
| | | @Column(name = "REMARK_", length = 200) |
| | | @PropertyDef(label = "夿³¨ä¿¡æ¯") |
| | | private String remark; |
| | | |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "Pest [batchId=" + batchId + ", companyId=" + companyId |
| | | + ", depotId=" + depotId + ", pestMax=" + pestMax |
| | | + ", checkNum=" + checkNum + ", receiveDate=" |
| | | + receiveDate + ", points=" + points + ", checkUser=" |
| | | + checkUser + ", remark=" + remark + "]"; |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | | @AllArgsConstructor |
| | | public class Fz61PestKey implements Serializable { |
| | | private String batchId; |
| | | private String companyId; |
| | | private String depotId; |
| | | public Fz61PestKey(){ |
| | | super(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | import com.alibaba.fastjson.annotation.JSONField; |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.*; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è´¨é管çï¼2023å¹´5æ26æ¥ æ ¹æ®æ°å½ç²®è§ä¼åè°æ´ |
| | | * |
| | | * @author chen |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_M_QUALITY") |
| | | public class Fz61Quality implements Serializable { |
| | | |
| | | public static String SORT_PROP = "id"; |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 40) |
| | | @PropertyDef(label = "主é®ID", description = "yyyyMMdd + 4ä½é¡ºåºå·") |
| | | 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 = "FOOD_VARIETY_", length = 10) |
| | | @PropertyDef(label = "ç²®é£åç§") |
| | | private String foodVariety; |
| | | |
| | | @Column(name = "FOOD_LEVEL_", length = 10) |
| | | @PropertyDef(label = "ç²®é£ç级") |
| | | private String foodLevel; |
| | | |
| | | @PropertyDef(label = "å
¥åºæ¥æ") |
| | | @Column(name = "STORE_DATE_") |
| | | private Date storeDate; |
| | | |
| | | @Column(name = "TYPE_", length = 10) |
| | | @PropertyDef(label = "æ£éªç±»å«", description = "01ï¼å
¥ä»éªæ¶ 02ï¼åºä»æ£éª 03ï¼3 ææ«æ®æ£04ï¼9 ææ«æ®æ£ 05ï¼å
¥ä»åæ£ 06ï¼æåº¦æ£æ¥ 07ï¼3 ææ«åºå
æ®æ¥ 08ï¼9 ææ«åºå
æ®æ¥") |
| | | private String type; |
| | | |
| | | @Column(name = "TIME_") |
| | | @PropertyDef(label = "æ£éªæ¶é´") |
| | | private Date time; |
| | | |
| | | @Column(name = "UNIT_", length = 50) |
| | | @PropertyDef(label = "æ£éªåä½") |
| | | private String unit; |
| | | |
| | | @Column(name = "USER_", length = 50) |
| | | @PropertyDef(label = "æ£éªäºº", description = "æ£éªäººåå§åï¼è¥æå¤ä¸ªä¿ç®¡å") |
| | | private String user; |
| | | |
| | | @Column(name = "STANDARD_", length = 4) |
| | | @PropertyDef(label = "æ£éªä¾æ®", description = "1-彿 ï¼0-å
¶ä»") |
| | | private String standard; |
| | | |
| | | |
| | | @PropertyDef(label = "ææ ç±»å«", description = "1: è´¨éææ æ£éª2ï¼å¨ååè´¨æ£éª3ï¼é£åå®å
¨æ£éª 妿忶æ£éªäºå¤ä¸ªï¼ç¨#éå¼ï¼ä¾å¦ï¼1#2#3") |
| | | @Column(name = "zblb", length = 8) |
| | | private String zblb; |
| | | |
| | | @Column(name = "RESULT_", length = 40) |
| | | @PropertyDef(label = "æ£éªç»è®º", description = "1ãè´¨éææ å¡«å/è¾¾æ /ä¸è¾¾æ 2ãå¨ååè´¨ææ å¡«åâå®åâã轻度ä¸å®åâãâé度ä¸å®åâ3ãé£åå®å
¨ææ å¡«åâåæ ¼âãä¸åæ ¼â å¤é¡¹ææ æ¶ä»¥#åéï¼ä¾å¦ï¼è¾¾æ |综åå¤å®#å®å#åæ ¼ ") |
| | | private String result; |
| | | |
| | | @Column(name = "spaqzbsfhg", length = 40) |
| | | @PropertyDef(label = "é£åå®å
¨ææ æ¯å¦åæ ¼", description = "0-ä¸åæ ¼ï¼1-åæ ¼") |
| | | private String spaqzbsfhg; |
| | | |
| | | @JSONField(format = "yyyy-MM-dd") |
| | | @PropertyDef(label = "ç¾åæ¥æ") |
| | | @Column(name = "qfrq") |
| | | private Date qfrq; |
| | | |
| | | @JSONField(format = "yyyy-MM-dd HH:mm:ss") |
| | | @PropertyDef(label = "æ¥ååºå
·æ¶é´") |
| | | @Column(name = "bgcjsj") |
| | | private Date bgcjsj; |
| | | |
| | | @PropertyDef(label = "å®¡æ ¸äººå§å") |
| | | @Column(name = "shrxm", length = 64) |
| | | private String shrxm; |
| | | |
| | | @PropertyDef(label = "æ¦æ ·åç¼å·") |
| | | @Column(name = "qydbh", length = 64) |
| | | private String qydbh; |
| | | |
| | | @Column(name = "CHECK_TIME_") |
| | | @PropertyDef(label = "æ¦æ ·æ¶é´", required = true) |
| | | private Date checkTime; |
| | | |
| | | @Column(name = "CHECK_AREA_", length = 50) |
| | | @PropertyDef(label = "æ¦æ ·åºå") |
| | | private String checkArea; |
| | | |
| | | @Column(name = "CHECK_USER_", length = 50) |
| | | @PropertyDef(label = "æ¦æ ·äºº", required = true) |
| | | private String checkUser; |
| | | |
| | | @PropertyDef(label = "çç£äººå§å") |
| | | @Column(name = "jdrxm", length = 64) |
| | | private String jdrxm; |
| | | |
| | | @PropertyDef(label = "æ ·åç¼å·") |
| | | @Column(name = "ypbh", length = 64) |
| | | private String ypbh; |
| | | |
| | | @PropertyDef(label = "æ ·åæ°é", required = true) |
| | | @Column(name = "ypsl", precision = 20, scale = 6) |
| | | private Double ypsl; |
| | | |
| | | @PropertyDef(label = "代表æ°é") |
| | | @Column(name = "dbsl", precision = 20, scale = 6) |
| | | private Double dbsl; |
| | | |
| | | @PropertyDef(label = "æ ·åç级") |
| | | @Column(name = "ypdj", length = 2) |
| | | private String ypdj; |
| | | |
| | | @Column(name = "NORMAL_YEAR_", length = 10) |
| | | @PropertyDef(label = "æ¯å¦æ£å¸¸åå¨å¹´é") |
| | | private String normalYear; |
| | | |
| | | @Column(name = "REMARK_", length = 200) |
| | | @PropertyDef(label = "夿³¨", description = "夿³¨ä¿¡æ¯") |
| | | private String remark; |
| | | |
| | | @Column(name = "UPDATE_TIME_") |
| | | @PropertyDef(label = "æ°æ®æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | |
| | | @Column(name = "REPORT_TYPE_", length = 10) |
| | | @PropertyDef(label = "æ¥åç±»å", description = "1-å使£éªï¼2-æ´ä½æ£éª(å æå¹³å)ï¼3-å
¶ä»") |
| | | private String reportType; |
| | | |
| | | /** |
| | | * åéªé¡¹ç®æç» |
| | | */ |
| | | @Transient |
| | | private List<Fz61CheckItem> checkItems; |
| | | |
| | | /** |
| | | * --------éä»¶-------- |
| | | **/ |
| | | @Column(name = "FILE_ID_", length = 30) |
| | | @PropertyDef(label = "éä»¶id") |
| | | private String fileId; |
| | | |
| | | @Column(name = "FILE_NAME_", length = 50) |
| | | @PropertyDef(label = "éä»¶åç§°") |
| | | private String fileName; |
| | | |
| | | @Column(name = "FILE_TIME_") |
| | | @PropertyDef(label = "éä»¶ä¸ä¼ æ¶é´") |
| | | private Date fileTime; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | import com.alibaba.fastjson.annotation.JSONField; |
| | | 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.util.Date; |
| | | |
| | | /** |
| | | * ä»å
è§é¢å¾åæ°æ®è¡¨ |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_SEC_SNAP_DEPOT") |
| | | public class Fz61SecSnapDepot { |
| | | |
| | | public static String SORT_PROP = "updateTime"; |
| | | @Id |
| | | @Column(name = "ID_", length = 40) |
| | | @PropertyDef(label = "主é®") |
| | | private String id; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 30) |
| | | @PropertyDef(label = "æå±ååº") |
| | | private String deptId; |
| | | |
| | | @Column(name = "DEPOT_ID_", length = 50) |
| | | @PropertyDef(label = "æå±ä»åº") |
| | | private String depotId; |
| | | |
| | | @Column(name = "CAMERA_ID_", length = 50) |
| | | @PropertyDef(label = "å
³èæå头") |
| | | private String cameraId; |
| | | |
| | | @Column(name = "RESULT_", length = 30) |
| | | @PropertyDef(label = "ææç»æ") |
| | | private String result = "SUCCESS"; |
| | | |
| | | @JSONField(format = "yyyy-MM-dd HH:mm:ss") |
| | | @Column(name = "UPDATE_TIME_") |
| | | @PropertyDef(label = "æææ¶é´") |
| | | private Date updateTime; |
| | | |
| | | @Column(name = "FILE_SUFFIX_", length = 4) |
| | | @PropertyDef(label = "å¾åæä»¶åç¼å") |
| | | private String fileSuffix = "jpg"; |
| | | |
| | | @Column(name = "FILE_NAME_", length = 100) |
| | | @PropertyDef(label = "æä»¶åç§°") |
| | | private String fileName; |
| | | |
| | | @Column(name = "PRESET_ ", length = 4) |
| | | @PropertyDef(label = "é¢ç½®ä½ç¼å·") |
| | | private String preset; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.data.PushProtocol; |
| | | import com.fzzy.api.entity.*; |
| | | import com.fzzy.api.service.ApiCommonService; |
| | | import com.fzzy.api.service.ApiTriggerService; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.*; |
| | | import com.fzzy.async.fzzy61.entity.Fz61DrugLogApply; |
| | | import com.fzzy.async.fzzy61.entity.Fz61DrugLogDtl; |
| | | import com.fzzy.async.fzzy61.entity.Fz61DrugLogPeople; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1023Rep; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61SyncDrugLogDtlRep; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61SyncDrugLogPeopleRep; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61SyncDrugLogWayRep; |
| | | import com.fzzy.push.gd2022.ApiCodeConstant; |
| | | import com.fzzy.push.gd2022.dto.Gd2022Api1023; |
| | | import com.fzzy.push.gd2022.dto.Gd2022Api1023Dtl; |
| | | import com.fzzy.push.gd2022.dto.Gd2022Api1023People; |
| | | import com.fzzy.push.gd2022.dto.Gd2022Api1023Way; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * çè¸å¤æ¡ä¿¡æ¯ |
| | | * |
| | | * @Author:YAN |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1023 { |
| | | @Autowired |
| | | private Api1101Rep api1101Rep; |
| | | @Autowired |
| | | private Api1102Rep api1102Rep; |
| | | @Autowired |
| | | private Api1105Rep api1105Rep; |
| | | @Autowired |
| | | private Fzzy61Sync1023Rep fzzy61Sync1023Rep; |
| | | @Autowired |
| | | private Fzzy61SyncDrugLogPeopleRep drugLogPeopleRep; |
| | | @Autowired |
| | | private Fzzy61SyncDrugLogWayRep drugLogWayRep; |
| | | @Autowired |
| | | private Fzzy61SyncDrugLogDtlRep drugLogDtlRep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | @Autowired |
| | | private ApiInfoDataRep apiInfoDataRep; |
| | | @Autowired |
| | | private ApiTriggerService apiTriggerService; |
| | | |
| | | |
| | | /** |
| | | * 忥çè¸å¤æ¡ä¿¡æ¯ |
| | | * |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------1023æ¥å£çè¸å¤æ¡ä¿¡æ¯å¼å§åæ¥------------------"); |
| | | |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(ApiCodeConstant.API_9201); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61DrugLogApply> list = fzzy61Sync1023Rep.listDrugLogApply(deptId, start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.info("-------------没æè·åå°çè¸å¤æ¡ä¿¡æ¯------------------"); |
| | | return; |
| | | } |
| | | List<Gd2022Api1023Dtl> dtlList; |
| | | List<Gd2022Api1023Way> wayList; |
| | | List<Gd2022Api1023People> peopleList; |
| | | |
| | | |
| | | Gd2022Api1023 GD2022Api1023; |
| | | Gd2022Api1023Dtl gd2022Api1023Dtl; |
| | | Gd2022Api1023Way gd2022Api1023Way; |
| | | Gd2022Api1023People gd2022Api1023People; |
| | | |
| | | List<ApiInfoData> apiInfoList; |
| | | ApiInfoData infoData; |
| | | for (Fz61DrugLogApply data : list) { |
| | | |
| | | GD2022Api1023 = new Gd2022Api1023(); |
| | | BeanUtils.copyProperties(data, GD2022Api1023); |
| | | GD2022Api1023.setXzbm(data.getXzbm().substring(8)); |
| | | GD2022Api1023.setKqdm(kqdm); |
| | | List<Api1102> api1102List = api1102Rep.findPushData(kqdm); |
| | | if (null != api1102List && api1102List.size() > 0) { |
| | | GD2022Api1023.setKqmc(api1102List.get(0).getKqmc()); |
| | | } |
| | | |
| | | GD2022Api1023.setDwdm(kqdm.substring(0, 18)); |
| | | List<Api1101> api1101List = api1101Rep.findPushData(kqdm); |
| | | if (null != api1101List && api1101List.size() > 0) { |
| | | GD2022Api1023.setDwmc(api1101List.get(0).getDwmc()); |
| | | } |
| | | GD2022Api1023.setYjmc(data.getDrugName()); |
| | | GD2022Api1023.setYjlx(data.getDrugType()); |
| | | GD2022Api1023.setLqrq(data.getLqsj()); |
| | | GD2022Api1023.setZhgxsj(data.getUpdateTime()); |
| | | if (data.getLqr().contains("ã")) { |
| | | GD2022Api1023.setLqr(data.getLqr().replace('ã', '|')); |
| | | } |
| | | |
| | | //å¨ç²®ç²®æ
æç»è¡¨ |
| | | List<Fz61DrugLogDtl> dtls = drugLogDtlRep.listDrugLogDtl(data.getXzbm()); |
| | | Api1105 api1105 = commonService.getApi1105Cache(data.getDepotId()); |
| | | gd2022Api1023Dtl = new Gd2022Api1023Dtl(); |
| | | BeanUtils.copyProperties(data, gd2022Api1023Dtl); |
| | | if (null != api1105) { |
| | | gd2022Api1023Dtl.setCfmc(api1105.getHwmc()); |
| | | gd2022Api1023Dtl.setCfdm(api1105.getHwdm().substring(0, 25)); |
| | | } |
| | | |
| | | //ç²®é£åç§ |
| | | String mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSPZ, data.getFoodVariety()); |
| | | gd2022Api1023Dtl.setLspzdm(mappingCode); |
| | | gd2022Api1023Dtl.setLsxzdm(data.getFoodType()); |
| | | gd2022Api1023Dtl.setLsdjdm(data.getFoodLevel()); |
| | | gd2022Api1023Dtl.setLssl(data.getNumber()); |
| | | gd2022Api1023Dtl.setSf(data.getPerWet()); |
| | | gd2022Api1023Dtl.setZz(data.getPerImpurity()); |
| | | |
| | | |
| | | dtlList = new ArrayList<>(); |
| | | dtlList.add(gd2022Api1023Dtl); |
| | | GD2022Api1023.setDtls(dtlList); |
| | | // if (null != dtls && dtls.size() > 0) { |
| | | // dtlList = new ArrayList<>(); |
| | | // for (Fz61DrugLogDtl dtl : dtls) { |
| | | // gdApi1023Dtl = new GdApi1023Dtl(); |
| | | // BeanUtils.copyProperties(dtl, gdApi1023Dtl); |
| | | // gdApi1023Dtl.setCfdm(dtl.getDepotId()); |
| | | // gdApi1023Dtl.setLspzdm(dtl.getFoodVariety()); |
| | | // gdApi1023Dtl.setLsxzdm(dtl.getFoodType()); |
| | | // gdApi1023Dtl.setLsdjdm(dtl.getFoodLevel()); |
| | | // gdApi1023Dtl.setLssl(dtl.getNumber()); |
| | | // gdApi1023Dtl.setSf(dtl.getPerWet()); |
| | | // gdApi1023Dtl.setZz(dtl.getPerImpurity()); |
| | | // dtlList.add(gdApi1023Dtl); |
| | | // } |
| | | // gdApi1023.setDtls(dtlList); |
| | | // } |
| | | |
| | | |
| | | gd2022Api1023Way = new Gd2022Api1023Way(); |
| | | BeanUtils.copyProperties(data, gd2022Api1023Way); |
| | | wayList = new ArrayList<>(); |
| | | wayList.add(gd2022Api1023Way); |
| | | GD2022Api1023.setWays(wayList); |
| | | // List<Fz61DrugLogWay> ways = drugLogWayRep.listDrugLogWay(data.getXzbm()); |
| | | // if (null != ways && ways.size() > 0) { |
| | | // wayList = new ArrayList<>(); |
| | | // for (Fz61DrugLogWay way : ways) { |
| | | // gdApi1023Way = new GdApi1023Way(); |
| | | // BeanUtils.copyProperties(way, gdApi1023Way); |
| | | // wayList.add(gdApi1023Way); |
| | | // } |
| | | // gdApi1023.setWays(wayList); |
| | | // } |
| | | |
| | | List<Fz61DrugLogPeople> peoples = drugLogPeopleRep.listDrugLogPeople(data.getXzbm()); |
| | | if (null != peoples && peoples.size() > 0) { |
| | | peopleList = new ArrayList<>(); |
| | | for (Fz61DrugLogPeople people : peoples) { |
| | | gd2022Api1023People = new Gd2022Api1023People(); |
| | | BeanUtils.copyProperties(people, gd2022Api1023People); |
| | | gd2022Api1023People.setXm(people.getMx()); |
| | | if (StringUtils.isEmpty(people.getZyzg())) { |
| | | gd2022Api1023People.setZyzg("ä¸çº§"); |
| | | } |
| | | peopleList.add(gd2022Api1023People); |
| | | } |
| | | GD2022Api1023.setPeoples(peopleList); |
| | | } |
| | | //æä¹
åä¿åï¼åç¬åå
¥é彿 æ¥å£è¡¨ |
| | | infoData = new ApiInfoData(); |
| | | |
| | | infoData.setKqdm(kqdm); |
| | | infoData.setInteType(Constant.API_CATEGORY_13); |
| | | infoData.setInteId(ApiCodeConstant.API_9201); |
| | | infoData.setBizType(PushProtocol.SB_GD_2023.getCode()); |
| | | infoData.setUpdateTime(new Date()); |
| | | infoData.setDataId(data.getXzbm()); |
| | | apiInfoList = apiInfoDataRep.getDataByInteAndData(ApiCodeConstant.API_9201, data.getXzbm(), kqdm); |
| | | |
| | | if (null == apiInfoList || apiInfoList.isEmpty()) { |
| | | GD2022Api1023.setCzbz(Constant.CZBZ_I); |
| | | infoData.setCzbz(Constant.CZBZ_I); |
| | | infoData.setId(ContextUtil.getUUID()); |
| | | } else { |
| | | GD2022Api1023.setCzbz(apiInfoList.get(0).getCzbz()); |
| | | infoData.setCzbz(apiInfoList.get(0).getCzbz()); |
| | | infoData.setId(apiInfoList.get(0).getId()); |
| | | } |
| | | |
| | | infoData.setData(JSON.toJSONString(GD2022Api1023)); |
| | | |
| | | //ä¿åæ°æ® |
| | | apiInfoDataRep.save(infoData); |
| | | log.info("1023---åæ¥æ°æ®ï¼{}", GD2022Api1023.toString()); |
| | | } |
| | | |
| | | } catch (Exception e) { |
| | | log.error("---çè¸å¤æ¡åæ¥æ§è¡å¤±è´¥----{}", e.toString()); |
| | | apiLog.setResult("çè¸å¤æ¡ä¿¡æ¯åæ¥æ§è¡å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.entity.Api1105; |
| | | import com.fzzy.api.entity.Api1302; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.service.ApiCommonService; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.Api1302Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61Grain; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1302Rep; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | |
| | | /** |
| | | * æ¸©æ¹¿åº¦æ£æµæ°æ®åæ¥ |
| | | * |
| | | * @author czt |
| | | * @date 2022-09-07 14:41 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1302 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1302Rep fzzySync1302Rep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | @Autowired |
| | | private Api1302Rep api1302Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | |
| | | /** |
| | | * 忥并å°è£
ä¿åæ¸©æ¹¿åº¦æ£æµæ°æ® |
| | | * |
| | | * @param deptId ç³»ç»å¯¹åºåºåºç¼ç |
| | | * @param start èµ·å§æ¶é´ |
| | | * @param end æªæ¢æ¶é´ |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | |
| | | log.info("-------------1302æ¥å£æ¸©æ¹¿åº¦æ°æ®å¼å§åæ¥------------------"); |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1302); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61Grain> list = fzzySync1302Rep.findByReceiveDate(start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.info("1302温湿度---åæ¥æ°æ®ï¼æ²¡ææ¥è¯¢å°éè¦åæ¥çæ°æ®"); |
| | | return; |
| | | } |
| | | |
| | | Date syncTime = new Date(); |
| | | Api1302 api1302; |
| | | Api1105 api1105; |
| | | List<Api1302> api1302List; |
| | | for (Fz61Grain fz61Grain : list) { |
| | | //è·åè´§ä½ä¿¡æ¯ |
| | | api1105 = commonService.getApi1105Cache(fz61Grain.getDepotId()); |
| | | if (null == api1105) { |
| | | continue; |
| | | } |
| | | |
| | | //ç±è´§ä½ä»£ç +æ£æµæ¥æ ï¼yyyyMMddï¼ +4 ä½é¡ºåºå·ç»æ --2019 1128 0819 |
| | | api1302 = new Api1302(); |
| | | api1302.setWsdjcdh(api1105.getHwdm() + fz61Grain.getBatchId()); |
| | | api1302.setJcsj(fz61Grain.getReceiveDate()); |
| | | api1302.setHwdm(api1105.getHwdm()); |
| | | |
| | | api1302.setCfww(fz61Grain.getTempOut() == null ? 0.00 : fz61Grain.getTempOut()); |
| | | if (null == fz61Grain.getHumidityOut() || fz61Grain.getHumidityOut() < 0) { |
| | | api1302.setCfws(-1); |
| | | } else { |
| | | api1302.setCfws(fz61Grain.getHumidityOut()); |
| | | } |
| | | |
| | | api1302.setCfnw(fz61Grain.getTempIn() == null ? 0.00 : fz61Grain.getTempIn()); |
| | | if (null == fz61Grain.getHumidityIn() || fz61Grain.getHumidityIn() < 0) { |
| | | api1302.setCfns(0); |
| | | } else { |
| | | api1302.setCfns(fz61Grain.getHumidityIn()); |
| | | } |
| | | |
| | | api1302.setLszgw(fz61Grain.getTempMax() == null ? 0.00 : fz61Grain.getTempMax()); |
| | | api1302.setLspjw(fz61Grain.getTempAve() == null ? 0.00 : fz61Grain.getTempAve()); |
| | | api1302.setLszdw(fz61Grain.getTempMin() == null ? 0.00 : fz61Grain.getTempMin()); |
| | | |
| | | //å¤æç²®é£æä½æ¸©ã平忏©ãæé«æ¸©æ¯å¦ç¬¦åé»è¾ |
| | | if (api1302.getLszdw() >= api1302.getLspjw()) { |
| | | continue; |
| | | } |
| | | if (api1302.getLspjw() >= api1302.getLszgw()) { |
| | | continue; |
| | | } |
| | | |
| | | //温度éå |
| | | if (StringUtils.isEmpty(fz61Grain.getCableCir())) { |
| | | api1302.setLswdzjh(getTempPointList1(fz61Grain.getPoints(), fz61Grain.getCable())); |
| | | api1302.setLssdzjh(getHumPointList1(fz61Grain.getPoints(), fz61Grain.getCable())); |
| | | if(StringUtils.isEmpty(api1302.getLswdzjh())){ |
| | | continue; |
| | | } |
| | | if(StringUtils.isEmpty(api1302.getLssdzjh())){ |
| | | continue; |
| | | } |
| | | } else { |
| | | api1302.setLswdzjh(getTempPointList2(fz61Grain.getPoints(), fz61Grain.getCable(), fz61Grain.getCableCir())); |
| | | api1302.setLssdzjh(getHumPointList2(fz61Grain.getPoints(), fz61Grain.getCable(), fz61Grain.getCableCir())); |
| | | if(StringUtils.isEmpty(api1302.getLswdzjh())){ |
| | | continue; |
| | | } |
| | | if(StringUtils.isEmpty(api1302.getLssdzjh())){ |
| | | continue; |
| | | } |
| | | } |
| | | |
| | | api1302.setZhgxsj(new Date()); |
| | | |
| | | api1302.setBizId(fz61Grain.getBatchId()); |
| | | api1302.setKqdm(api1105.getKqdm()); |
| | | api1302.setSyncTime(syncTime); |
| | | api1302List = api1302Rep.getDataByWsdjcdh(api1302.getWsdjcdh()); |
| | | if (null == api1302List || api1302List.isEmpty()) { |
| | | api1302.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | api1302.setCzbz(api1302List.get(0).getCzbz()); |
| | | } |
| | | log.info("1302温湿度---åæ¥æ°æ®ï¼" + api1302.toString()); |
| | | api1302Rep.save(api1302); |
| | | } |
| | | |
| | | } catch (Exception e) { |
| | | log.error("---åæ¥å¤±è´¥----{}", e.toString()); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | String point = "31.8,20.0,15.1,18.6,28.2,14.3,11.3,16.1,28.1,15.6,13.3,18.4,28.8,16.6,10.2,14.4,27.8,14.3,10.8,16.0,27.5,14.5,11.7,17.1,26.5,13.6,10.1,15.0,29.7,17.4,13.8,17.8,29.7,18.6,15.0,18.6,26.4,13.5,9.2,13.1,27.6,11.8,8.9,13.5,28.1,12.0,8.6,12.8,27.8,11.6,7.6,12.4,26.1,10.8,7.5,12.6,27.8,10.3,7.1,12.0,26.1,11.3,8.5,12.7,28.6,16.9,12.9,17.7,29.1,12.3,8.8,12.1,27.4,11.9,8.6,12.8,29.0,11.5,7.6,11.1,26.9,10.2,8.0,12.7,27.0,9.6,7.7,13.5,26.7,9.5,7.1,12.3,26.3,10.7,8.4,13.4,27.6,15.9,11.5,15.8,28.7,12.6,8.7,12.2,28.1,12.2,8.8,12.5,30.3,11.9,8.0,12.0,27.9,11.1,7.8,11.5,26.3,10.1,7.8,12.0,27.2,10.5,6.9,11.1,27.1,11.6,9.5,13.6,27.4,14.8,10.7,16.6,27.7,12.4,9.1,13.0,27.7,13.2,9.0,12.8,27.5,12.1,8.1,12.6,26.6,11.8,7.3,12.3,26.8,10.5,8.0,13.3,26.3,11.0,7.6,12.5,26.1,10.6,8.5,13.5,29.8,21.3,15.5,17.8,28.3,18.2,11.6,12.8,29.4,17.4,13.0,16.1,28.4,22.3,14.6,15.4,28.7,17.5,11.8,15.2,26.5,14.6,10.9,14.8,27.8,15.3,10.3,14.8,27.6,16.7,13.6,17.4"; |
| | | String cable = "4-6-8"; |
| | | String tempPointList1 = getTempPointList1(point, cable); |
| | | System.out.println(tempPointList1); |
| | | } |
| | | |
| | | /** |
| | | * è·åå¹³æ¹ä»ç温度å¼éåï¼æ ¼å¼ï¼æ¸©åº¦å¼,屿°,è¡æ°,åæ°|温度å¼,屿°,è¡æ°,åæ°|温度å¼,屿°,è¡æ°,åæ° |
| | | * |
| | | * @return |
| | | */ |
| | | private static String getTempPointList1(String point, String cable) { |
| | | String[] cab = cable.split("-"); |
| | | int c = Integer.valueOf(cab[0]); |
| | | int h = Integer.valueOf(cab[1]); |
| | | int l = Integer.valueOf(cab[2]); |
| | | |
| | | String[] points = point.split(","); |
| | | String result = ""; |
| | | if (c * h * l > points.length) { |
| | | return result; |
| | | } |
| | | for (int i = 1; i <= l; i++) { |
| | | for (int j = 1; j <= h; j++) { |
| | | for (int z = 1; z <= c; z++) { |
| | | result += ("|" + points[((i-1)*h+j-1)*c + z -1] + "," + z + "," + j + "," + i); |
| | | } |
| | | } |
| | | } |
| | | if(result.length() > 0){ |
| | | result = result.substring(1); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * è·åçä»ç温度å¼éåï¼æ ¼å¼ï¼æ¸©åº¦å¼,åæ°,ç¹æ°,屿°|温度å¼,åæ°,ç¹æ°,屿°|温度å¼,åæ°,ç¹æ°,屿° |
| | | * |
| | | * @return |
| | | */ |
| | | private String getTempPointList2(String point, String cable, String cableCir) { |
| | | String[] cab = cable.split("-"); |
| | | String[] cabCir = cableCir.split("-"); |
| | | |
| | | int q = cab.length; //åæ° |
| | | int c = Integer.valueOf(cabCir[0]); //屿° |
| | | int g = 0; //åæ ¹æ° |
| | | int g1 = 1; //åèµ·å§æ ¹æ° |
| | | int g2 = 0; //åæªæ¢æ ¹æ° |
| | | |
| | | String[] points = point.split(","); |
| | | String result = ""; |
| | | for (int i = 1; i <= q; i++) { |
| | | g1 += g2; |
| | | g = Integer.valueOf(cab[i - 1]); |
| | | g2 += g; |
| | | for (int j = g1; j <= g2; j++) { |
| | | for (int z = 1; z <= c; z++) { |
| | | result += ("|" + points[(j - 1) * c + z - 1] + "," + i + "," + j + "," + z); |
| | | } |
| | | } |
| | | |
| | | } |
| | | if(result.length() > 0){ |
| | | result = result.substring(1); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * è·åå¹³æ¹ä»ç湿度å¼éåï¼æ ¼å¼ï¼æ¹¿åº¦,屿°,è¡æ°,åæ°|湿度,屿°,è¡æ°,åæ°|湿度,屿°,è¡æ°,åæ° |
| | | * |
| | | * @return |
| | | */ |
| | | private String getHumPointList1(String point, String cable) { |
| | | String[] cab = cable.split("-"); |
| | | int c = Integer.valueOf(cab[0]); |
| | | int h = Integer.valueOf(cab[1]); |
| | | int l = Integer.valueOf(cab[2]); |
| | | |
| | | // String[] points = point.split(","); |
| | | String result = ""; |
| | | for (int i = 1; i <= l; i++) { |
| | | for (int j = 1; j <= h; j++) { |
| | | for (int z = 1; z <= c; z++) { |
| | | result += ("|" + "-1" + "," + z + "," + j + "," + i); |
| | | } |
| | | } |
| | | } |
| | | if(result.length() > 0){ |
| | | result = result.substring(1); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * è·åçä»ç湿度å¼éåï¼æ ¼å¼ï¼æ¹¿åº¦,åæ°,ç¹æ°,屿°|湿度,åæ°,ç¹æ°,屿°|湿度,åæ°,ç¹æ°,屿° |
| | | * |
| | | * @return |
| | | */ |
| | | private String getHumPointList2(String point, String cable, String cableCir) { |
| | | String[] cab = cable.split("-"); |
| | | String[] cabCir = cableCir.split("-"); |
| | | |
| | | int q = cab.length; //åæ° |
| | | int c = Integer.valueOf(cabCir[0]); //屿° |
| | | int g = 0; //åæ ¹æ° |
| | | int g1 = 1; //åèµ·å§æ ¹æ° |
| | | int g2 = 0; //åæªæ¢æ ¹æ° |
| | | |
| | | // String[] points = point.split(","); |
| | | String result = ""; |
| | | for (int i = 1; i <= q; i++) { |
| | | g1 += g2; |
| | | g = Integer.valueOf(cab[i - 1]); |
| | | g2 += g; |
| | | for (int j = g1; j <= g2; j++) { |
| | | for (int z = 1; z <= c; z++) { |
| | | result += ("|" + "-1" + "," + i + "," + j + "," + z); |
| | | } |
| | | } |
| | | |
| | | } |
| | | if(result.length() > 0){ |
| | | result = result.substring(1); |
| | | } |
| | | return result; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.entity.Api1105; |
| | | import com.fzzy.api.entity.Api1303; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.service.ApiCommonService; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.Api1303Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61Pest; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1303Rep; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | |
| | | /** |
| | | * è«å®³æ£æµæ°æ®åæ¥ |
| | | * |
| | | * @author chen |
| | | * @date 2022-09-08 09:51 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1303 { |
| | | |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1303Rep fzzy61Sync1303Rep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | @Autowired |
| | | private Api1303Rep api1303Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * 忥并å°è£
ä¿åè«å®³æ£æµæ°æ® |
| | | * |
| | | * @param deptId ç³»ç»å¯¹åºåºåºç¼ç |
| | | * @param start èµ·å§æ¶é´ |
| | | * @param end æªæ¢æ¶é´ |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | |
| | | log.info("-------------1303è«å®³æ£æµæ°æ®æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1303); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | |
| | | List<Fz61Pest> list = fzzy61Sync1303Rep.findPestByReceiveDate(start, end); |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | Date syncTime = new Date(); |
| | | Api1303 api1303; |
| | | Api1105 api1105; |
| | | List<Api1303> api1303List; |
| | | for (Fz61Pest fz61Pest : list) { |
| | | //è·åè´§ä½ä¿¡æ¯ |
| | | api1105 = commonService.getApi1105Cache(fz61Pest.getDepotId()); |
| | | if (null == api1105) { |
| | | continue; |
| | | } |
| | | |
| | | api1303 = new Api1303(); |
| | | api1303.setHcjcdh(api1105.getHwdm() + fz61Pest.getBatchId()); |
| | | api1303.setJcsj(fz61Pest.getReceiveDate()); |
| | | api1303.setHwdm(api1105.getHwdm()); |
| | | |
| | | //æ£æ¥å®³è«æ¹æ³ï¼0-è¿ç¨ã1-人工ã2-å
¶ä» |
| | | api1303.setJchcff("0"); |
| | | //åçé¨ä½ï¼åæ å¡«åï¼x,y,z |
| | | api1303.setFsbw("ç²®é¢");//éå¿
å¡«åæ®µ |
| | | |
| | | //害è«ç§ç±»ãå¤ä¸ªç¨#éå¼#TODO >> å¾
ä¼åè°æ´ |
| | | api1303.setHczl("21212"); |
| | | |
| | | //è«å£å¯åº¦å¼éå |
| | | String ckmdzjh = this.geeCkmdzjh(fz61Pest.getPestMax(), fz61Pest.getPoints()); |
| | | api1303.setCkmdzjh(ckmdzjh); |
| | | |
| | | //è«ç²®ç级å¤å®ï¼531-åºæ¬æ è«ç²®ã532-ä¸è¬è«ç²®ã533严éè«ç²®ã534å±å®³è«ç²® |
| | | api1303.setCldjpd("531"); |
| | | if (fz61Pest.getPestMax() > 5) { |
| | | api1303.setCldjpd("532"); |
| | | } |
| | | if (fz61Pest.getPestMax() > 30) { |
| | | api1303.setCldjpd("533"); |
| | | } |
| | | |
| | | api1303.setZhgxsj(new Date()); |
| | | |
| | | api1303.setBizId(fz61Pest.getBatchId()); |
| | | api1303.setKqdm(api1105.getKqdm()); |
| | | api1303.setSyncTime(new Date()); |
| | | api1303List = api1303Rep.getDataByHcjcdh(api1303.getHcjcdh()); |
| | | if (null == api1303List || api1303List.isEmpty()) { |
| | | api1303.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | api1303.setCzbz(api1303List.get(0).getCzbz()); |
| | | } |
| | | api1303Rep.save(api1303); |
| | | } |
| | | |
| | | } catch (Exception e) { |
| | | log.error("---1303è«å®³æ£æµæ°æ®åæ¥å¤±è´¥----{}", e.toString()); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 头/kgï¼æç²®é£å®³è«å¼éåï¼ä¸ |
| | | * 害è«ç§ç±»é¡ºåºå¯¹åºï¼ç¨â|âå |
| | | * éï¼å¤ä¸ªåæ ·ç¹ç¨è±æåè§âï¼â |
| | | * åéï¼æç
§åæ ·ç¹ç¤ºæå¾æ è¯é¡º |
| | | * åºæåã |
| | | * |
| | | * @param pestMax |
| | | * @param points |
| | | * @return |
| | | */ |
| | | private String geeCkmdzjh(int pestMax, String points) { |
| | | |
| | | if (StringUtils.isEmpty(points)) return "0"; |
| | | |
| | | String[] attr = points.split(";"); |
| | | |
| | | String result = ""; |
| | | for (String str : attr) { |
| | | result += str.split(",")[1] + ","; |
| | | } |
| | | return result.substring(0, result.length() - 1); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.entity.Api1105; |
| | | import com.fzzy.api.entity.Api1304; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.service.ApiCommonService; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.Api1304Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61Gas; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1304Rep; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è«å®³æ£æµæ°æ®åæ¥ |
| | | * |
| | | * @author chen |
| | | * @date 2022-09-08 09:51 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1304 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1304Rep fzzySync1304Rep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | @Autowired |
| | | private Api1304Rep api1304Rep; |
| | | |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * 忥并å°è£
ä¿åæ°ä½æ£æµæ°æ® |
| | | * |
| | | * @param deptId ç³»ç»å¯¹åºåºåºç¼ç |
| | | * @param start èµ·å§æ¶é´ |
| | | * @param end æªæ¢æ¶é´ |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------1304æ°ä½æ£æµæ°æ®æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1304); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61Gas> list = fzzySync1304Rep.findByReceiveDate(start, end); |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | Api1304 api1304; |
| | | Api1105 api1105; |
| | | List<Api1304> api1304List; |
| | | for (Fz61Gas fz61Gas : list) { |
| | | //è·åè´§ä½ä¿¡æ¯ |
| | | api1105 = commonService.getApi1105Cache(fz61Gas.getDepotId()); |
| | | if (null == api1105) { |
| | | continue; |
| | | } |
| | | |
| | | api1304 = new Api1304(); |
| | | api1304.setQtndjcdh(api1105.getHwdm() + fz61Gas.getBatchId()); |
| | | api1304.setJcsj(fz61Gas.getReceiveDate()); |
| | | api1304.setHwdm(api1105.getHwdm()); |
| | | api1304.setZylx("5"); |
| | | |
| | | api1304 = updateGasInfo(api1304, fz61Gas.getPoints()); |
| | | |
| | | api1304.setZhgxsj(new Date()); |
| | | |
| | | api1304.setBizId(fz61Gas.getBatchId()); |
| | | api1304.setKqdm(api1105.getKqdm()); |
| | | api1304.setSyncTime(new Date()); |
| | | api1304List = api1304Rep.getDataByQtndjcdh(api1304.getQtndjcdh()); |
| | | if (null == api1304List || api1304List.isEmpty()) { |
| | | api1304.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | api1304.setCzbz(api1304List.get(0).getCzbz()); |
| | | } |
| | | api1304Rep.save(api1304); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---1304æ°ä½æ£æµæ°æ®åæ¥å¤±è´¥----{}", e.toString()); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * è·åå¯¹åºæ°ä½æµåº¦éåï¼passCode,co2,o2,ph3,n2;passCode,co2,o2,ph3,n2; |
| | | * |
| | | * @param points |
| | | * @return |
| | | */ |
| | | private Api1304 updateGasInfo(Api1304 api1304, String points) { |
| | | String[] attr = points.split(";"); |
| | | |
| | | String[] arrt2; |
| | | String o2 = "", co2 = "", ph3 = "", n2 = ""; |
| | | for (String temp : attr) { |
| | | arrt2 = temp.split(","); |
| | | o2 += "," + arrt2[2]; |
| | | co2 += "," + arrt2[1]; |
| | | ph3 += "," + arrt2[3]; |
| | | n2 += "," + arrt2[4]; |
| | | } |
| | | |
| | | if(o2.length() > 0){ |
| | | o2 = o2.substring(1); |
| | | } |
| | | if(co2.length() > 0){ |
| | | co2 = co2.substring(1); |
| | | } |
| | | if(ph3.length() > 0){ |
| | | ph3 = ph3.substring(1); |
| | | } |
| | | if(n2.length() > 0){ |
| | | n2 = n2.substring(1); |
| | | } |
| | | co2 += "|ppm"; |
| | | ph3 += "|ppm"; |
| | | api1304.setYqhlzjh(o2); |
| | | api1304.setEyhthlzjh(co2); |
| | | api1304.setLhqndzjh(ph3); |
| | | api1304.setDqndzjh(n2); |
| | | return api1304; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.entity.Api1105; |
| | | import com.fzzy.api.entity.Api1305; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.service.ApiCommonService; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.Api1305Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61AreationData; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1305Rep; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é飿°æ®åæ¥ |
| | | * |
| | | * @author chen |
| | | * @date 2022-09-08 09:51 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1305 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1305Rep fzzySync1305Rep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | @Autowired |
| | | private Api1305Rep api1305Rep; |
| | | |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * 忥并å°è£
ä¿åæ°é飿°æ® |
| | | * |
| | | * @param deptId ç³»ç»å¯¹åºåºåºç¼ç |
| | | * @param start èµ·å§æ¶é´ |
| | | * @param end æªæ¢æ¶é´ |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------1305é飿°æ®æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1305); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61AreationData> list = fzzySync1305Rep.findByReceiveDate(start, end); |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | Api1305 api1305; |
| | | Api1105 api1105; |
| | | List<Api1305> api1305List; |
| | | for (Fz61AreationData fzAreationData : list) { |
| | | //è·åè´§ä½ä¿¡æ¯ |
| | | api1105 = commonService.getApi1105Cache(fzAreationData.getDepotId()); |
| | | if (null == api1105) { |
| | | continue; |
| | | } |
| | | |
| | | api1305 = new Api1305(); |
| | | |
| | | BeanUtils.copyProperties(fzAreationData, api1305); |
| | | |
| | | api1305.setTfzydh(api1105.getHwdm() + fzAreationData.getId()); |
| | | api1305.setTfrq(fzAreationData.getStartTime()); |
| | | api1305.setCfdm(api1105.getHwdm().substring(0,25)); |
| | | api1305.setTfmd(fzAreationData.getObjective()); |
| | | api1305.setTflx(fzAreationData.getType()); |
| | | api1305.setFdxs(fzAreationData.getWindNetType()); |
| | | api1305.setFdxs(fzAreationData.getWindNetType()); |
| | | api1305.setSffs(fzAreationData.getAirSupplyMode()); |
| | | api1305.setZhdl(fzAreationData.getTotalEs()); |
| | | api1305.setZyqpjlw(fzAreationData.getBeforeTempAvg()); |
| | | api1305.setJshpjlw(fzAreationData.getAfterTempAvg()); |
| | | api1305.setZyhpjsf(fzAreationData.getBeforPerWetAvg()); |
| | | api1305.setZyhpjsf(fzAreationData.getAfterPerWetAvg()); |
| | | api1305.setTfzyfzr(fzAreationData.getChargeUser()); |
| | | api1305.setTfzyry(fzAreationData.getOperators()); |
| | | api1305.setTfsc(fzAreationData.getLongTime()); |
| | | api1305.setZhgxsj(new Date()); |
| | | |
| | | api1305.setKqdm(kqdm); |
| | | api1305.setHwdm(api1105.getHwdm()); |
| | | api1305.setBizId(fzAreationData.getId()); |
| | | api1305List = api1305Rep.getDataById(api1305.getTfzydh()); |
| | | if (null == api1305List || api1305List.isEmpty()) { |
| | | api1305.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | api1305.setCzbz(api1305List.get(0).getCzbz()); |
| | | } |
| | | api1305Rep.save(api1305); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---é飿°æ®åæ¥å¤±è´¥----{}", e.toString()); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.entity.Api1105; |
| | | import com.fzzy.api.entity.Api1303; |
| | | import com.fzzy.api.entity.Api1306; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.service.ApiCommonService; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.Api1303Rep; |
| | | import com.fzzy.api.view.repository.Api1306Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61DrugLog; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1306Rep; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * çè¸ä½ä¸æ°æ®åæ¥ |
| | | * |
| | | * @author czt |
| | | * @date 2022-09-08 09:51 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1306 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1306Rep fzzySync1306Rep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | @Autowired |
| | | private Api1306Rep api1306Rep; |
| | | @Autowired |
| | | private Api1303Rep api1303Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * 忥并å°è£
ä¿åçè¸æ°æ® |
| | | * |
| | | * @param deptId ç³»ç»å¯¹åºåºåºç¼ç |
| | | * @param start èµ·å§æ¶é´ |
| | | * @param end æªæ¢æ¶é´ |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------1306çè¸æ°æ®æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1306); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61DrugLog> list = fzzySync1306Rep.findByReceiveDate(start, end); |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | Api1306 api1306; |
| | | Api1105 api1105; |
| | | List<Api1306> api1306List; |
| | | List<Api1303> api1303List; |
| | | for (Fz61DrugLog fz61DrugLog : list) { |
| | | //è·åè´§ä½ä¿¡æ¯ |
| | | api1105 = commonService.getApi1105Cache(fz61DrugLog.getDepotId()); |
| | | if (null == api1105) { |
| | | continue; |
| | | } |
| | | |
| | | api1306 = new Api1306(); |
| | | |
| | | BeanUtils.copyProperties(fz61DrugLog, api1306); |
| | | api1306.setXzzydh(api1105.getHwdm().substring(0,25) + fz61DrugLog.getId()); |
| | | api1306.setCfdm(api1105.getHwdm().substring(0,25)); |
| | | api1306.setXzkssj(fz61DrugLog.getStart()); |
| | | api1306.setXzjssj(fz61DrugLog.getEnd()); |
| | | //设置è«å®³æ£æµåå· |
| | | api1306.setHcjcdh(api1105.getHwdm() + fz61DrugLog.getPestBatchId()); |
| | | api1303List = api1303Rep.getDataByBizId(fz61DrugLog.getPestBatchId()); |
| | | if (null != api1303List && api1303List.size() > 0) { |
| | | api1306.setHcjcdh(api1303List.get(0).getHcjcdh()); |
| | | } |
| | | |
| | | api1306.setDjcxz(fz61DrugLog.getNum()); |
| | | api1306.setCgxzfs(fz61DrugLog.getMode()); |
| | | api1306.setHlxzfs(fz61DrugLog.getRecirMode()); |
| | | api1306.setYjmc(fz61DrugLog.getDrugName()); |
| | | api1306.setNd(fz61DrugLog.getConcentration()); |
| | | api1306.setLddwyyl(fz61DrugLog.getGrainDose()); |
| | | api1306.setKjdwyyl(fz61DrugLog.getSpaceDose()); |
| | | api1306.setSyff(StringUtils.isEmpty(fz61DrugLog.getSyff())?"0":fz61DrugLog.getSyff()); |
| | | api1306.setZyyl(fz61DrugLog.getDose()); |
| | | api1306.setSqrq(fz61DrugLog.getVentilateTime()); |
| | | api1306.setSqff(fz61DrugLog.getVentilateMethod()); |
| | | api1306.setSqjsslhqnd(fz61DrugLog.getAfterPh3()); |
| | | api1306.setXzxgpj(fz61DrugLog.getEvaluate()); |
| | | api1306.setZhgxsj(new Date()); |
| | | |
| | | api1306.setHwdm(api1105.getHwdm()); |
| | | api1306.setKqdm(kqdm); |
| | | api1306.setBizId(fz61DrugLog.getId()); |
| | | api1306List = api1306Rep.getDataById(api1306.getXzzydh()); |
| | | if (null == api1306List || api1306List.isEmpty()) { |
| | | api1306.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | api1306.setCzbz(api1306List.get(0).getCzbz()); |
| | | } |
| | | |
| | | api1306Rep.save(api1306); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---1306çè¸æ°æ®åæ¥å¤±è´¥----{}", e.toString()); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.data.PushProtocol; |
| | | import com.fzzy.api.entity.*; |
| | | import com.fzzy.api.service.ApiCommonService; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.utils.FileUtils; |
| | | import com.fzzy.api.view.repository.*; |
| | | import com.fzzy.async.fzzy61.entity.Fz61SecSnapDepot; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1307Rep; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ä»å
è§é¢å¾å |
| | | * @author czt |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1307 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1307Rep fzzySync1307Rep; |
| | | @Autowired |
| | | private Api1109Rep api1109Rep; |
| | | @Autowired |
| | | private Api1111Rep api1111Rep; |
| | | @Autowired |
| | | private Api1307Rep api1307Rep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | @Autowired |
| | | private FileUtils fileUtil; |
| | | @Autowired |
| | | private ApiConfsRep apiConfsRep; |
| | | |
| | | /** |
| | | * 忥ä»å
æææä»¶ä¿¡æ¯ |
| | | * |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | |
| | | log.info("-------------1307ä»å
è§é¢å¾åæ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1109); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | //è·åä»å
ææå¾ç |
| | | List<Fz61SecSnapDepot> list = fzzySync1307Rep.listSnapDepotData(deptId, start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.info("-------------没æè·åå°æä»¶ä¿¡æ¯------------------"); |
| | | return; |
| | | } |
| | | Api1105 api1105; |
| | | Api1307 apiData; |
| | | List<Api1307> api1307List; |
| | | List<Api1111> api1111List; |
| | | Api1109 api1109; |
| | | List<Api1109> api1109List; |
| | | for (Fz61SecSnapDepot sysData : list) { |
| | | //è·åè´§ä½ä¿¡æ¯ |
| | | api1105 = commonService.getApi1105Cache(sysData.getDepotId()); |
| | | if (null == api1105) { |
| | | continue; |
| | | } |
| | | api1111List = api1111Rep.getApi1111ByBizId(sysData.getCameraId()); |
| | | if (null == api1111List || api1111List.isEmpty()) { |
| | | log.error("-------------没æè·åå°ä»å
è§é¢ç¹ä½ä¿¡æ¯------------------"); |
| | | return; |
| | | } |
| | | |
| | | apiData = new Api1307(); |
| | | //主é®id |
| | | apiData.setId(sysData.getFileName().replace(sysData.getDepotId() + "_", api1105.getHwdm()).replace(".jpg", "")); |
| | | |
| | | //æ¥è¯¢æå头对åºçæ§è®¾å¤ID |
| | | apiData.setSpjksbid(api1111List.get(0).getSpjksbid()); |
| | | apiData.setCfdm(api1105.getHwdm().substring(0,25)); |
| | | |
| | | apiData.setHwdm(api1105.getHwdm()); |
| | | apiData.setZpsj(sysData.getUpdateTime()); |
| | | apiData.setTxwjhzm("jpg"); |
| | | apiData.setYzwbh(apiData.getHwdm() + "01"); |
| | | //æä»¶è·¯å¾ |
| | | apiData.setWjdz(fileUtil.getSnapFilePath(sysData.getUpdateTime()) + sysData.getFileName()); |
| | | |
| | | //æä½æ å¿åæåæ´æ°æ¶é´ |
| | | apiData.setZhgxsj(new Date()); |
| | | //ä¸å¡idãåºåºç¼ç ã忥æ¶é´ |
| | | apiData.setBizId(sysData.getId()); |
| | | apiData.setKqdm(kqdm); |
| | | |
| | | //䏿µ·çå¹³å°ä½¿ç¨å»é´ä»£ç ãå¾åç¼ç ä¸¤ä¸ªåæ®µ |
| | | apiData.setAjdh(api1105.getHwdm().substring(0,28)); |
| | | apiData.setTxbh(sysData.getFileName().replace(sysData.getDepotId() + "_", api1105.getHwdm())); |
| | | |
| | | api1307List = api1307Rep.getDataByBizId(apiData.getBizId()); |
| | | if (null == api1307List || api1307List.isEmpty()) { |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | apiData.setCzbz(api1307List.get(0).getCzbz()); |
| | | } |
| | | |
| | | //ä¿åæ°æ® |
| | | api1307Rep.save(apiData); |
| | | log.info("1307---åæ¥æ°æ®ï¼{}", apiData.toString()); |
| | | |
| | | //è¥ä¸ºä¸æµ·çå¹³å°åè®®ï¼åé忶忥æä»¶ä¿¡æ¯ |
| | | List<ApiConfs> apiConfs = apiConfsRep.getDataByKqdm(kqdm); |
| | | if(null != apiConfs && PushProtocol.SB_SH_2023.getCode().equals(apiConfs.get(0).getPushProtocol())){ |
| | | api1109 = new Api1109(); |
| | | //主é®id |
| | | api1109.setId(apiData.getId()); |
| | | //æä»¶è·¯å¾ |
| | | api1109.setWjdz(apiData.getWjdz()); |
| | | //æä»¶åç§° |
| | | api1109.setWjmc(apiData.getTxbh()); |
| | | //æä»¶ç±»å |
| | | api1109.setWjlx("7"); //7-ä»å
è§é¢å¾å |
| | | //æä½æ å¿åæåæ´æ°æ¶é´ |
| | | api1109.setZhgxsj(new Date()); |
| | | |
| | | //ä¸å¡idãåºåºç¼ç ã忥æ¶é´ |
| | | api1109.setBizId(apiData.getBizId()); |
| | | api1109.setKqdm(kqdm); |
| | | api1109.setSyncTime(new Date()); |
| | | api1109List = api1109Rep.getDataByBizId(api1109.getBizId()); |
| | | if (null == api1109List || api1109List.isEmpty()) { |
| | | api1109.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | api1109.setCzbz(api1109List.get(0).getCzbz()); |
| | | } |
| | | //ä¿åæ°æ® |
| | | api1109Rep.save(api1109); |
| | | } |
| | | |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---ä»å
ææåæ¥æ§è¡å¤±è´¥----{}", e.toString()); |
| | | apiLog.setResult("忥ä»å
ææå¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.entity.Api1105; |
| | | import com.fzzy.api.entity.Api1310; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.entity.GbCheckItem; |
| | | import com.fzzy.api.service.ApiCommonService; |
| | | import com.fzzy.api.service.ApiTriggerService; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.Api1310Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.api.view.repository.GbCheckItemRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61CheckItem; |
| | | import com.fzzy.async.fzzy61.entity.Fz61Quality; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1203Rep; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1310Rep; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.apache.commons.lang.time.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è´¨æ£åæ¥ |
| | | * |
| | | * @author czt |
| | | * @date 2023-05-14 19:51 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1310 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1310Rep fzzySync1310Rep; |
| | | @Autowired |
| | | private Fzzy61Sync1203Rep fzzySync1203Rep; |
| | | @Autowired |
| | | private GbCheckItemRep gbCheckItemRep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | @Autowired |
| | | private ApiTriggerService apiTriggerService; |
| | | @Autowired |
| | | private Api1310Rep api1310Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * 忥并å°è£
ä¿åè´¨æ£æ°æ® |
| | | * |
| | | * @param deptId ç³»ç»å¯¹åºåºåºç¼ç |
| | | * @param start èµ·å§æ¶é´ |
| | | * @param end æªæ¢æ¶é´ |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------1310è´¨æ£æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1304); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61Quality> list = fzzySync1310Rep.findDateByTime(deptId, start, end); |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | Api1310 api1310; |
| | | Api1105 api1105; |
| | | List<Fz61CheckItem> fz61CheckItems; |
| | | List<GbCheckItem> gbCheckList; |
| | | String jyxm; |
| | | String jyz; |
| | | List<Api1310> api1310List; |
| | | |
| | | for (Fz61Quality fz61Quality : list) { |
| | | api1105 = commonService.getApi1105Cache(fz61Quality.getDepotId()); |
| | | if (null == api1105) { |
| | | continue; |
| | | } |
| | | api1310 = new Api1310(); |
| | | if (fz61Quality.getId().contains("ZJ_")) { |
| | | api1310.setZjbgdh(fz61Quality.getType() + fz61Quality.getId().substring(3)); |
| | | } else { |
| | | api1310.setZjbgdh(fz61Quality.getType() + fz61Quality.getId()); |
| | | } |
| | | api1310.setHwdm(api1105.getHwdm()); |
| | | api1310.setKqdm(kqdm); |
| | | //ç²®é£åç§ |
| | | String mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSPZ, fz61Quality.getFoodVariety().substring(0, 3)); |
| | | api1310.setLspzdm(mappingCode); |
| | | |
| | | //ç²®é£ç级 |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSDJ, fz61Quality.getFoodLevel()); |
| | | api1310.setLsdjdm(mappingCode); |
| | | api1310.setRkrq(fz61Quality.getStoreDate()); |
| | | api1310.setJylb(fz61Quality.getType()); |
| | | api1310.setJysj(fz61Quality.getTime()); |
| | | api1310.setJydw(StringUtils.isEmpty(fz61Quality.getUnit()) ? "æ£éªåä½" : fz61Quality.getUnit()); |
| | | api1310.setJyr(StringUtils.isEmpty(fz61Quality.getUser()) ? "æ£éªäºº" : fz61Quality.getUser()); |
| | | api1310.setJyyj(fz61Quality.getStandard()); |
| | | if (StringUtils.isEmpty(fz61Quality.getZblb())) { |
| | | api1310.setZblb("2"); |
| | | } else { |
| | | api1310.setZblb(fz61Quality.getZblb()); |
| | | } |
| | | |
| | | //æ£æµé¡¹ï¼æ£æµå¼ |
| | | jyxm = ""; |
| | | jyz = ""; |
| | | fz61CheckItems = fzzySync1203Rep.listInoutCheckItem(fz61Quality.getId(), deptId.substring(0, 4)); |
| | | if (null != fz61CheckItems && fz61CheckItems.size() > 0) { |
| | | |
| | | for (Fz61CheckItem fz61CheckItem : fz61CheckItems) { |
| | | if (StringUtils.isEmpty(fz61CheckItem.getValue())) { |
| | | continue; |
| | | } |
| | | gbCheckList = gbCheckItemRep.findByBizCode(fz61CheckItem.getStandardId()); |
| | | if (gbCheckList == null || gbCheckList.isEmpty()) { |
| | | continue; |
| | | } |
| | | jyxm += "," + gbCheckList.get(0).getCode(); |
| | | jyz += "," + fz61CheckItem.getValue(); |
| | | } |
| | | } |
| | | if(jyxm.length() > 0){ |
| | | jyxm = jyxm.substring(1); |
| | | } |
| | | if(jyz.length() > 0){ |
| | | jyz = jyz.substring(1); |
| | | } |
| | | api1310.setJyxm(jyxm); |
| | | api1310.setJyxmz(jyz); |
| | | |
| | | api1310.setZbjgpd(fz61Quality.getResult()); |
| | | api1310.setQfrq(fz61Quality.getTime()); |
| | | api1310.setBgcjsj(fz61Quality.getTime()); |
| | | api1310.setShrxm(fz61Quality.getShrxm().contains("ã")?fz61Quality.getShrxm().replace('ã','|'):fz61Quality.getShrxm()); |
| | | if (null == fz61Quality.getCheckTime()) { |
| | | fz61Quality.setCheckTime(DateUtils.addDays(fz61Quality.getTime(), -1)); |
| | | } |
| | | if (!fz61Quality.getCheckTime().before(fz61Quality.getTime())) { |
| | | fz61Quality.setCheckTime(DateUtils.addDays(fz61Quality.getTime(), -1)); |
| | | } |
| | | api1310.setSpaqzbsfhg(fz61Quality.getSpaqzbsfhg()); |
| | | api1310.setQysj(fz61Quality.getCheckTime()); |
| | | api1310.setQyqy(fz61Quality.getCheckArea()); |
| | | api1310.setQyrxm(fz61Quality.getCheckUser().contains("ã") ? fz61Quality.getCheckUser().replace('ã', '|') : fz61Quality.getCheckUser()); |
| | | api1310.setJdrxm(fz61Quality.getCheckUser().contains("ã") ? fz61Quality.getCheckUser().replace('ã', '|') : fz61Quality.getCheckUser()); |
| | | |
| | | |
| | | api1310.setYpsl(fz61Quality.getYpsl() == null ? 0.0 : fz61Quality.getYpsl()); |
| | | api1310.setDbsl(fz61Quality.getDbsl() == null ? 0.0 : fz61Quality.getDbsl()); |
| | | api1310.setYpdj(StringUtils.isEmpty(fz61Quality.getYpdj()) ? "0" : fz61Quality.getYpdj()); |
| | | api1310.setSfzcccnx(StringUtils.isEmpty(fz61Quality.getNormalYear()) ? "0" : fz61Quality.getNormalYear()); |
| | | api1310.setBz(fz61Quality.getRemark()); |
| | | api1310.setYpbh(fz61Quality.getYpbh()); |
| | | api1310.setQydbh(fz61Quality.getQydbh()); |
| | | api1310.setZhgxsj(new Date()); |
| | | api1310.setBizId(fz61Quality.getId()); |
| | | |
| | | api1310List = api1310Rep.getDataByBizId(api1310.getBizId()); |
| | | if (null == api1310List || api1310List.isEmpty()) { |
| | | api1310.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | api1310.setCzbz(api1310List.get(0).getCzbz()); |
| | | api1310.setBglx(api1310List.get(0).getBglx()); |
| | | } |
| | | |
| | | api1310Rep.save(api1310); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---è´¨æ£åæ¥åæ¥å¤±è´¥----{}", e.toString()); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.entity.Api1102; |
| | | import com.fzzy.api.entity.ApiInfoData; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.Api1102Rep; |
| | | import com.fzzy.api.view.repository.ApiInfoDataRep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61SecCamera; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1311Rep; |
| | | import com.fzzy.push.sh2023.SH2023Constant; |
| | | import com.fzzy.push.sh2023.dto.SH2023Api1311; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è§é¢çæ§ |
| | | * |
| | | * @Author:YAN |
| | | */ |
| | | @Component |
| | | @Slf4j |
| | | public class Fzzy61Sync1311 { |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | @Autowired |
| | | private Api1102Rep api1102Rep; |
| | | @Autowired |
| | | private Fzzy61Sync1311Rep fzzy61Sync1311Rep; |
| | | @Autowired |
| | | private ApiInfoDataRep apiInfoDataRep; |
| | | |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------1311æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | //åæ¥æ°æ® |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(SH2023Constant.SH_2023_API_CODE_1311); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61SecCamera> list = fzzy61Sync1311Rep.findDateByDeptId(deptId); |
| | | if (list.isEmpty() || null == list) { |
| | | log.debug("-------------没æè·åå°è§é¢çæ§ä¿¡æ¯------------------"); |
| | | return; |
| | | } |
| | | Api1102 api1102 = api1102Rep.findById(kqdm).get(); |
| | | SH2023Api1311 sh2023Api1311; |
| | | SH2023Api1311 sh1311; |
| | | List<ApiInfoData> apiInfoDataList; |
| | | for (Fz61SecCamera sysData : list) { |
| | | sh2023Api1311 = new SH2023Api1311(); |
| | | sh2023Api1311.setSpjksbid(sysData.getId()); |
| | | sh2023Api1311.setTdbh(sysData.getChanNum()); |
| | | sh2023Api1311.setJksbmc(sysData.getName()); |
| | | sh2023Api1311.setKqdm(kqdm); |
| | | |
| | | //çæ§åå |
| | | sh2023Api1311.setJkcs(getBrandId(sysData.getBrand())); |
| | | |
| | | sh2023Api1311.setJkxh(sysData.getSn()); |
| | | |
| | | sh2023Api1311.setSpjklx(StringUtils.isEmpty(sysData.getSpjklx()) ? "3" : sysData.getSpjklx()); |
| | | sh2023Api1311.setSblxbm("1"); |
| | | |
| | | sh2023Api1311.setAzwz(sysData.getName()); |
| | | sh2023Api1311.setAzwzlx(StringUtils.isEmpty(sysData.getSpdwlx()) ? "7" : sysData.getSpdwlx()); |
| | | if (sh2023Api1311.getAzwzlx().length() == 1) { |
| | | sh2023Api1311.setAzwzlx("0" + sh2023Api1311.getAzwzlx()); |
| | | } |
| | | if ("12".equals(sh2023Api1311.getAzwzlx()) || "13".equals(sh2023Api1311.getAzwzlx()) |
| | | || "14".equals(sh2023Api1311.getAzwzlx()) || "15".equals(sh2023Api1311.getAzwzlx())) { |
| | | sh2023Api1311.setAzwzlx("99"); |
| | | } |
| | | if ("16".equals(sh2023Api1311.getAzwzlx())) { |
| | | sh2023Api1311.setAzwzlx("12"); |
| | | } |
| | | sh2023Api1311.setSfazbgd("Y"); |
| | | |
| | | if (StringUtils.isEmpty(sysData.getType())) { |
| | | sysData.setType("01"); |
| | | } |
| | | if (sysData.getType().equals("02")) { |
| | | sh2023Api1311.setJkjlxbm("2"); |
| | | } |
| | | if (sysData.getType().equals("01")) { |
| | | sh2023Api1311.setJkjlxbm("1"); |
| | | } |
| | | sh2023Api1311.setJktyzw(12); |
| | | sh2023Api1311.setSbipdz(sysData.getIp()); |
| | | sh2023Api1311.setSbdkh(sysData.getControlPort()); |
| | | sh2023Api1311.setSbdlmc(sysData.getLoginId()); |
| | | sh2023Api1311.setSbdlmm(sysData.getPwd()); |
| | | sh2023Api1311.setBz(sysData.getRemark()); |
| | | sh2023Api1311.setZhgxsj(sysData.getUpdateTime() == null ? new Date() : sysData.getUpdateTime()); |
| | | |
| | | //æä¹
åä¿åï¼åç¬åå
¥é彿 æ¥å£è¡¨ |
| | | ApiInfoData infoData = new ApiInfoData(); |
| | | infoData.setId(sh2023Api1311.getSpjksbid()); |
| | | infoData.setKqdm(kqdm); |
| | | infoData.setInteType(Constant.API_CATEGORY_13); |
| | | infoData.setInteId(SH2023Constant.SH_2023_API_CODE_1311); |
| | | infoData.setUpdateTime(sh2023Api1311.getZhgxsj()); |
| | | infoData.setDataId(sh2023Api1311.getSpjksbid()); |
| | | infoData.setRemarks("è§é¢çæ§ä¿¡æ¯"); |
| | | //设置æä½æ å¿ |
| | | apiInfoDataList = apiInfoDataRep.getDataByInteAndData(SH2023Constant.SH_2023_API_CODE_1311, infoData.getDataId(), kqdm); |
| | | if (null == apiInfoDataList || apiInfoDataList.isEmpty()) { |
| | | sh2023Api1311.setCzbz(Constant.CZBZ_I); |
| | | infoData.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | sh2023Api1311.setCzbz(apiInfoDataList.get(0).getCzbz()); |
| | | infoData.setCzbz(apiInfoDataList.get(0).getCzbz()); |
| | | sh1311 = JSONObject.parseObject(apiInfoDataList.get(0).getData(), SH2023Api1311.class); |
| | | if (null != sh1311 && StringUtils.isNotEmpty(sh1311.getAjdm())) { |
| | | sh2023Api1311.setAjdm(sh1311.getAjdm()); |
| | | } |
| | | if (null != sh1311 && StringUtils.isNotEmpty(sh1311.getHwdm())) { |
| | | sh2023Api1311.setHwdm(sh1311.getHwdm()); |
| | | } |
| | | } |
| | | |
| | | infoData.setData(JSON.toJSONString(sh2023Api1311)); |
| | | apiInfoDataRep.save(infoData); |
| | | log.info("1311---è§é¢çæ§-åæ¥æ°æ®ï¼{}", sh2023Api1311); |
| | | } |
| | | |
| | | } catch (Exception e) { |
| | | log.error("---åæ¥å¤±è´¥----{}", e.toString()); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | private String getBrandId(String brandName) { |
| | | if (StringUtils.isEmpty(brandName)) { |
| | | return "9"; |
| | | } |
| | | if (brandName.contains("海康")) { |
| | | return "1"; |
| | | } |
| | | if (brandName.contains("大å")) { |
| | | return "2"; |
| | | } |
| | | if (brandName.contains("å®è§")) { |
| | | return "3"; |
| | | } |
| | | return "9"; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.entity.Api1101; |
| | | import com.fzzy.api.entity.Api1403; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.utils.FileUtils; |
| | | import com.fzzy.api.view.repository.Api1101Rep; |
| | | import com.fzzy.api.view.repository.Api1403Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutPlan; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1403Rep; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è½®æ¢è®¡å忥 |
| | | * |
| | | * @author czt |
| | | * @date 2023-10-30 09:55 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1403 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1403Rep fzzy61Sync1403Rep; |
| | | @Autowired |
| | | private FileUtils fileUtil; |
| | | @Autowired |
| | | private Api1101Rep api1101Rep; |
| | | @Autowired |
| | | private Api1403Rep api1403Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * 忥并å°è£
ä¿åè½®æ¢è®¡åæ°æ® |
| | | * |
| | | * @param deptId ç³»ç»å¯¹åºåºåºç¼ç |
| | | * @param start èµ·å§æ¶é´ |
| | | * @param end æªæ¢æ¶é´ |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------1403è½®æ¢è®¡åæ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1403); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61InoutPlan> list = fzzy61Sync1403Rep.findDateByTime(deptId, start, end); |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | Api1403 api1403; |
| | | List<Api1101> api1101List; |
| | | List<Api1403> api1403List; |
| | | for (Fz61InoutPlan fz61Plan : list) { |
| | | api1403 = new Api1403(); |
| | | api1403.setLhjhdh(kqdm.substring(0, 18) + fz61Plan.getId().split("_")[1] + fz61Plan.getId().split("_")[2]); |
| | | api1403.setJhwh(fz61Plan.getReferenceNumber()); |
| | | api1403.setJhmc(fz61Plan.getName()); |
| | | api1403.setJhnd(fz61Plan.getYear()); |
| | | api1403.setKszxrq(fz61Plan.getBeginTime()); |
| | | api1403.setJzzxrq(fz61Plan.getEndTime()); |
| | | api1101List = api1101Rep.findPushData(kqdm); |
| | | if (null != api1101List && api1101List.size() > 0) { |
| | | api1403.setJhxddw(api1101List.get(0).getDwdm()); |
| | | } |
| | | api1403.setJhxdsj(fz61Plan.getCreateTime()); |
| | | api1403.setManageWay("1"); //é»è®¤ç´å¨ |
| | | api1403.setRotationType("1"); //é»è®¤éæè½®æ¢ |
| | | |
| | | //è¥éä»¶idä¸ä¸ºç©ºï¼å夿æ¯å¦ä¸ºå¹¿ä¸çå¹³å°åè®®ï¼å¹¿ä¸çå¹³å°åè®®æ¶ï¼éåæ¶åæ¥è®¡åéä»¶ä¿¡æ¯ |
| | | if (StringUtils.isNotEmpty(fz61Plan.getFileId())) { |
| | | //æä»¶è·¯å¾ |
| | | api1403.setWjdz(fileUtil.getCommonFilePath(fz61Plan.getFileTime()) + fz61Plan.getFileId()); |
| | | //æä»¶åç§° |
| | | api1403.setFileName(fz61Plan.getFileName()); |
| | | } |
| | | |
| | | api1403.setZhgxsj(new Date()); |
| | | api1403.setKqdm(kqdm); |
| | | api1403.setBizId(fz61Plan.getId()); |
| | | api1403List = api1403Rep.getDataByLhjhdh(api1403.getLhjhdh()); |
| | | if (null == api1403List || api1403List.isEmpty()) { |
| | | api1403.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | api1403.setCzbz(api1403List.get(0).getCzbz()); |
| | | } |
| | | api1403Rep.save(api1403); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---1403è½®æ¢è®¡ååæ¥å¤±è´¥----{}", e.toString()); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.entity.Api1105; |
| | | import com.fzzy.api.entity.Api1404; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.service.ApiCommonService; |
| | | import com.fzzy.api.service.ApiTriggerService; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.Api1404Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutPlan; |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutPlanDetail; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1403Rep; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1404Rep; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è½®æ¢è®¡åæç» |
| | | * |
| | | * @author czt |
| | | * @date 2023-10-30 09:55 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1404 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1403Rep fzzy61Sync1403Rep; |
| | | @Autowired |
| | | private Fzzy61Sync1404Rep fzzy61Sync1404Rep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | @Autowired |
| | | private ApiTriggerService apiTriggerService; |
| | | @Autowired |
| | | private Api1404Rep api1404Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * 忥并å°è£
ä¿åè½®æ¢è®¡åæç» |
| | | * |
| | | * @param deptId ç³»ç»å¯¹åºåºåºç¼ç |
| | | * @param start èµ·å§æ¶é´ |
| | | * @param end æªæ¢æ¶é´ |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------1404è½®æ¢è®¡åæç»æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1304); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61InoutPlan> list = fzzy61Sync1403Rep.findDateByTime(deptId, start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | Api1404 api1404; |
| | | List<Fz61InoutPlanDetail> fz61PlanDetails; |
| | | Api1105 api1105; |
| | | List<Api1404> api1404List; |
| | | for (Fz61InoutPlan fz61Plan : list) { |
| | | |
| | | fz61PlanDetails = fzzy61Sync1404Rep.findDate(fz61Plan.getId()); |
| | | if (null == fz61PlanDetails || fz61PlanDetails.isEmpty()) { |
| | | continue; |
| | | } |
| | | int index = 10001; |
| | | for (Fz61InoutPlanDetail fz61PlanDetail : fz61PlanDetails) { |
| | | api1105 = commonService.getApi1105Cache(fz61PlanDetail.getDepotId()); |
| | | if (null == api1105) { |
| | | continue; |
| | | } |
| | | api1404 = new Api1404(); |
| | | api1404.setLhjhdh(kqdm.substring(0, 18) + fz61PlanDetail.getPlanId().split("_")[1] + fz61PlanDetail.getPlanId().split("_")[2]); |
| | | api1404.setJhmxdh(api1404.getLhjhdh() + kqdm + String.valueOf(index).substring(1)); |
| | | |
| | | String mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSPZ, fz61PlanDetail.getFoodVariety().substring(0,3)); |
| | | api1404.setLspzdm(mappingCode); |
| | | api1404.setLsdjdm(fz61PlanDetail.getFoodLevel()); |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSXZ, fz61PlanDetail.getFoodType()); |
| | | api1404.setLsxzdm(mappingCode); |
| | | api1404.setShnd(StringUtils.isEmpty(fz61PlanDetail.getYear())?fz61Plan.getYear():fz61PlanDetail.getYear()); |
| | | api1404.setLhhwdm(api1105.getHwdm()); |
| | | if(null == fz61PlanDetail.getPlanNum()){ |
| | | fz61PlanDetail.setPlanNum(0.0); |
| | | } |
| | | api1404.setLhsl(fz61PlanDetail.getPlanNum()/1000); |
| | | api1404.setLhlx(fz61PlanDetail.getType()); |
| | | api1404.setZhgxsj(new Date()); |
| | | api1404.setKqdm(kqdm); |
| | | api1404.setBizId(fz61PlanDetail.getId()); |
| | | api1404List = api1404Rep.getDataByJhmxdh(api1404.getJhmxdh()); |
| | | if(null == api1404List || api1404List.isEmpty()){ |
| | | api1404.setCzbz(Constant.CZBZ_I); |
| | | }else { |
| | | api1404.setCzbz(api1404List.get(0).getCzbz()); |
| | | } |
| | | api1404Rep.save(api1404); |
| | | index ++; |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---è½®æ¢è®¡åæç»åæ¥å¤±è´¥----{}", e.toString()); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.entity.Api1504; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.Api1504Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61Api1504; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1504Rep; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è´¢å¡ç®¡ç-è´¦å¥ä¿¡æ¯ |
| | | * |
| | | * @author czt |
| | | * @date 2024-01-12 18:55 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1504 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1504Rep fzzy61Sync1504Rep; |
| | | @Autowired |
| | | private Api1504Rep api1504Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * 忥并å°è£
ä¿åè´¨æ£æ°æ® |
| | | * |
| | | * @param deptId ç³»ç»å¯¹åºåºåºç¼ç |
| | | * @param start èµ·å§æ¶é´ |
| | | * @param end æªæ¢æ¶é´ |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------1504è´¦å¥ä¿¡æ¯æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(kqdm); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1504); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61Api1504> list = fzzy61Sync1504Rep.findDateByTime(start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | Api1504 api1504; |
| | | List<Api1504> api1504List; |
| | | for (Fz61Api1504 sysData : list) { |
| | | api1504 = new Api1504(); |
| | | BeanUtils.copyProperties(sysData, api1504); |
| | | api1504.setKqdm(kqdm); |
| | | |
| | | api1504List = api1504Rep.findDateById(api1504.getNacctid()); |
| | | if (null == api1504List || api1504List.isEmpty()) { |
| | | api1504.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | api1504.setCzbz(api1504List.get(0).getCzbz()); |
| | | } |
| | | api1504Rep.save(api1504); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---åæ¥å¤±è´¥----{}", e.toString()); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.entity.Api1505; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.Api1505Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61Api1504; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1505Rep; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è´¢å¡ç®¡ç-ç§ç®ä¿¡æ¯ |
| | | * |
| | | * @author czt |
| | | * @date 2024-01-12 18:55 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1505 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1505Rep fzzy61Sync1505Rep; |
| | | @Autowired |
| | | private Api1505Rep api1505Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * 忥并å°è£
ä¿åè´¨æ£æ°æ® |
| | | * |
| | | * @param deptId ç³»ç»å¯¹åºåºåºç¼ç |
| | | * @param start èµ·å§æ¶é´ |
| | | * @param end æªæ¢æ¶é´ |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------1505æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(kqdm); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1505); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61Api1504> list = fzzy61Sync1505Rep.findDateByTime(start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | Api1505 api1505; |
| | | List<Api1505> api1505List; |
| | | for (Fz61Api1504 sysData : list) { |
| | | api1505 = new Api1505(); |
| | | BeanUtils.copyProperties(sysData, api1505); |
| | | api1505.setKqdm(kqdm); |
| | | |
| | | api1505List = api1505Rep.findDateById(api1505.getId()); |
| | | if(null == api1505List || api1505List.isEmpty()){ |
| | | api1505.setCzbz(Constant.CZBZ_I); |
| | | }else { |
| | | api1505.setCzbz(api1505List.get(0).getCzbz()); |
| | | } |
| | | api1505Rep.save(api1505); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---åæ¥å¤±è´¥----{}", e.toString()); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.entity.Api1506; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.Api1506Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61Api1506; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1506Rep; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è´¢å¡ç®¡ç-ç§ç®ä½é¢è¡¨ |
| | | * |
| | | * @author czt |
| | | * @date 2024-01-12 18:55 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1506 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1506Rep fzzy61Sync1506Rep; |
| | | @Autowired |
| | | private Api1506Rep api1506Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * 忥并å°è£
ä¿åè´¨æ£æ°æ® |
| | | * |
| | | * @param deptId ç³»ç»å¯¹åºåºåºç¼ç |
| | | * @param start èµ·å§æ¶é´ |
| | | * @param end æªæ¢æ¶é´ |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------1506æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(kqdm); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1506); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61Api1506> list = fzzy61Sync1506Rep.findDateByTime(start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | Api1506 api1506; |
| | | List<Api1506> api1506List; |
| | | for (Fz61Api1506 sysData : list) { |
| | | api1506 = new Api1506(); |
| | | BeanUtils.copyProperties(sysData, api1506); |
| | | api1506.setKqdm(kqdm); |
| | | |
| | | api1506List = api1506Rep.findDateById(api1506.getId()); |
| | | if(null == api1506List || api1506List.isEmpty()){ |
| | | api1506.setCzbz(Constant.CZBZ_I); |
| | | }else { |
| | | api1506.setCzbz(api1506List.get(0).getCzbz()); |
| | | } |
| | | api1506Rep.save(api1506); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---åæ¥å¤±è´¥----{}", e.toString()); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.entity.Api1507; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.Api1507Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61Api1507; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1507Rep; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è´¢å¡ç®¡ç-ä¼è®¡åè¯ä¿¡æ¯ |
| | | * |
| | | * @author czt |
| | | * @date 2024-01-12 18:55 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1507 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1507Rep fzzy61Sync1507Rep; |
| | | @Autowired |
| | | private Api1507Rep api1507Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * 忥并å°è£
ä¿åè´¨æ£æ°æ® |
| | | * |
| | | * @param deptId ç³»ç»å¯¹åºåºåºç¼ç |
| | | * @param start èµ·å§æ¶é´ |
| | | * @param end æªæ¢æ¶é´ |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------1507ä¼è®¡åè¯ä¿¡æ¯æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(kqdm); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1507); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61Api1507> list = fzzy61Sync1507Rep.findDateByTime(start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | Api1507 api1507; |
| | | List<Api1507> api1507List; |
| | | for (Fz61Api1507 sysData : list) { |
| | | api1507 = new Api1507(); |
| | | BeanUtils.copyProperties(sysData, api1507); |
| | | api1507.setKqdm(kqdm); |
| | | |
| | | api1507List = api1507Rep.findDateById(api1507.getId()); |
| | | if(null == api1507List || api1507List.isEmpty()){ |
| | | api1507.setCzbz(Constant.CZBZ_I); |
| | | }else { |
| | | api1507.setCzbz(api1507List.get(0).getCzbz()); |
| | | } |
| | | api1507Rep.save(api1507); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---åæ¥å¤±è´¥----{}", e.toString()); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.entity.Api1508; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.Api1508Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61Api1508; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1508Rep; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è´¢å¡ç®¡ç-ç°éæµéåé
ä¿¡æ¯ |
| | | * |
| | | * @author czt |
| | | * @date 2024-01-12 18:55 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1508 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1508Rep fzzy61Sync1508Rep; |
| | | @Autowired |
| | | private Api1508Rep api1508Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * 忥并å°è£
ä¿åè´¨æ£æ°æ® |
| | | * |
| | | * @param deptId ç³»ç»å¯¹åºåºåºç¼ç |
| | | * @param start èµ·å§æ¶é´ |
| | | * @param end æªæ¢æ¶é´ |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------1508ç°éæµéåé
ä¿¡æ¯æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(kqdm); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1508); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61Api1508> list = fzzy61Sync1508Rep.findDateByTime(start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | Api1508 api1508; |
| | | List<Api1508> api1508List; |
| | | for (Fz61Api1508 sysData : list) { |
| | | api1508 = new Api1508(); |
| | | BeanUtils.copyProperties(sysData, api1508); |
| | | api1508.setKqdm(kqdm); |
| | | |
| | | api1508List = api1508Rep.findDateById(api1508.getId()); |
| | | if(null == api1508List || api1508List.isEmpty()){ |
| | | api1508.setCzbz(Constant.CZBZ_I); |
| | | }else { |
| | | api1508.setCzbz(api1508List.get(0).getCzbz()); |
| | | } |
| | | api1508Rep.save(api1508); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---åæ¥å¤±è´¥----{}", e.toString()); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.entity.Api1509; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.Api1509Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61Api1508; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1509Rep; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è´¢å¡ç®¡ç-婿¶¦ |
| | | * |
| | | * @author czt |
| | | * @date 2024-01-12 18:55 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1509 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1509Rep fzzy61Sync1509Rep; |
| | | @Autowired |
| | | private Api1509Rep api1509Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * 忥并å°è£
ä¿åè´¨æ£æ°æ® |
| | | * |
| | | * @param deptId ç³»ç»å¯¹åºåºåºç¼ç |
| | | * @param start èµ·å§æ¶é´ |
| | | * @param end æªæ¢æ¶é´ |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------1509æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(kqdm); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1509); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61Api1508> list = fzzy61Sync1509Rep.findDateByTime(start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | Api1509 api1509; |
| | | List<Api1509> api1509List; |
| | | for (Fz61Api1508 sysData : list) { |
| | | api1509 = new Api1509(); |
| | | BeanUtils.copyProperties(sysData, api1509); |
| | | api1509.setKqdm(kqdm); |
| | | |
| | | api1509List = api1509Rep.findDateById(api1509.getId()); |
| | | if(null == api1509List || api1509List.isEmpty()){ |
| | | api1509.setCzbz(Constant.CZBZ_I); |
| | | }else { |
| | | api1509.setCzbz(api1509List.get(0).getCzbz()); |
| | | } |
| | | api1509Rep.save(api1509); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---åæ¥å¤±è´¥----{}", e.toString()); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.entity.Api1510; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.Api1510Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61Api1510; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1510Rep; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è´¢å¡ç®¡ç-èµäº§ææ§ä¿¡æ¯ |
| | | * |
| | | * @author czt |
| | | * @date 2024-01-12 18:55 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1510 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1510Rep fzzy61Sync1510Rep; |
| | | @Autowired |
| | | private Api1510Rep api1510Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * 忥并å°è£
ä¿åè´¨æ£æ°æ® |
| | | * |
| | | * @param deptId ç³»ç»å¯¹åºåºåºç¼ç |
| | | * @param start èµ·å§æ¶é´ |
| | | * @param end æªæ¢æ¶é´ |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------1510èµäº§ææ§ä¿¡æ¯æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(kqdm); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1510); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61Api1510> list = fzzy61Sync1510Rep.findDateByTime(start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | Api1510 api1510; |
| | | List<Api1510> api1510List; |
| | | for (Fz61Api1510 sysData : list) { |
| | | api1510 = new Api1510(); |
| | | BeanUtils.copyProperties(sysData, api1510); |
| | | api1510.setKqdm(kqdm); |
| | | |
| | | api1510List = api1510Rep.findDateById(api1510.getId()); |
| | | if (null == api1510List || api1510List.isEmpty()) { |
| | | api1510.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | api1510.setCzbz(api1510List.get(0).getCzbz()); |
| | | } |
| | | api1510Rep.save(api1510); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---åæ¥å¤±è´¥----{}", e.toString()); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.entity.Api1105; |
| | | import com.fzzy.api.entity.ApiConfs; |
| | | import com.fzzy.api.entity.ApiInfoData; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.service.ApiCommonService; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.ApiConfsRep; |
| | | import com.fzzy.api.view.repository.ApiInfoDataRep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61Depot; |
| | | import com.fzzy.async.fzzy61.entity.Fz61DepotConf; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61SyncDepotConfRep; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61SyncDepotRep; |
| | | import com.fzzy.push.sh2023.SH2023Constant; |
| | | import com.fzzy.push.sh2023.dto.SH2023Api2103; |
| | | import com.fzzy.push.sh2023.dto.SH2023Api2103Item; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç²®æ
æ£æµè®¾å¤ä¿¡æ¯åæ¥ |
| | | * |
| | | * @author czt |
| | | * @date 2023-08-21 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync2103 { |
| | | |
| | | @Autowired |
| | | private Fzzy61SyncDepotRep fzzy61SyncDepotRep; |
| | | @Autowired |
| | | private Fzzy61SyncDepotConfRep fzzy61SyncDepotConfRep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | @Autowired |
| | | private ApiConfsRep apiConfsRep; |
| | | @Autowired |
| | | private ApiInfoDataRep apiInfoDataRep; |
| | | |
| | | |
| | | /** |
| | | * 忥并å°è£
ä¿åæ¸©æ¹¿åº¦æ£æµæ°æ® |
| | | * |
| | | * @param kqdm |
| | | * @param deptId ç³»ç»å¯¹åºåºåºç¼ç |
| | | * @param start èµ·å§æ¶é´ |
| | | * @param end æªæ¢æ¶é´ |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | |
| | | log.info("-------------1302æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1302); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | //ç±äºdepotConfè¡¨ä¸æ²¡æåºåºç¼ç ï¼å
æ¥è¯¢ä»åºè¡¨ |
| | | List<Fz61Depot> list = fzzy61SyncDepotRep.listDepotList(deptId); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.info("2103---ç²®æ
设å¤é
ç½®åæ¥æ°æ®ï¼æ²¡ææ¥è¯¢å°ä»åºä¿¡æ¯"); |
| | | return; |
| | | } |
| | | List<ApiConfs> apiConf = apiConfsRep.getDataByKqdm(kqdm); |
| | | String bjw = ""; |
| | | if (null != apiConf && apiConf.size() > 0) { |
| | | bjw = apiConf.get(0).getUserName(); |
| | | } |
| | | |
| | | SH2023Api2103 sh2023Api2103; |
| | | Api1105 api1105; |
| | | List<Fz61DepotConf> depotConfList; |
| | | Fz61DepotConf depotConf; |
| | | |
| | | List<ApiInfoData> apiInfoDataList; |
| | | SH2023Api2103Item sh2023Api2103Item; |
| | | List<SH2023Api2103Item> listItem; |
| | | for (Fz61Depot fz61Depot : list) { |
| | | //æ ¹æ®ä»åºç¼ç è·åé
ç½®ä¿¡æ¯ |
| | | depotConfList = fzzy61SyncDepotConfRep.findDataByDepotId(fz61Depot.getId()); |
| | | if (null == depotConfList || depotConfList.isEmpty()) { |
| | | continue; |
| | | } |
| | | //è·åè´§ä½ä¿¡æ¯ |
| | | api1105 = commonService.getApi1105Cache(fz61Depot.getId()); |
| | | if (null == api1105) { |
| | | continue; |
| | | } |
| | | |
| | | sh2023Api2103 = new SH2023Api2103(); |
| | | sh2023Api2103.setHwdm(api1105.getHwdm()); |
| | | depotConf = depotConfList.get(0); |
| | | String[] strs = depotConf.getCableRule().split("-"); |
| | | |
| | | sh2023Api2103.setDlcs(strs[0]); |
| | | sh2023Api2103.setDlhs(strs[1]); |
| | | sh2023Api2103.setDlls(strs[2]); |
| | | |
| | | //夿æ¯å¦æå±è¡è½¬æ¢ |
| | | if(null != depotConf.getStartConvert() && !"default".equals(depotConf.getStartConvert())){ |
| | | sh2023Api2103.setDlcs(strs[1]); |
| | | sh2023Api2103.setDlhs(strs[0]); |
| | | } |
| | | |
| | | // 1-3-5 |
| | | // 8-8-8 |
| | | //çä»è§å |
| | | sh2023Api2103.setDlqs("0"); |
| | | if (StringUtils.isNotEmpty(depotConf.getCableCir())) { |
| | | sh2023Api2103.setDlqs(String.valueOf(strs.length)); |
| | | sh2023Api2103.setDlhs("0"); |
| | | sh2023Api2103.setDlls("0"); |
| | | |
| | | //çµç¼åæå详æ
|
| | | listItem = new ArrayList<>(); |
| | | String[] cableCir = depotConf.getCableCir().split("-"); |
| | | int num1 = 0; //èµ·å§æ ¹ |
| | | int num2 = 0; //æªæ¢æ ¹ |
| | | for (int i = 0; i < cableCir.length; i++) { |
| | | sh2023Api2103.setDlcs(cableCir[i]); |
| | | |
| | | sh2023Api2103Item = new SH2023Api2103Item(); |
| | | sh2023Api2103Item.setQh(i + 1 + ""); |
| | | if (i == 0) { |
| | | num1 += 1; |
| | | } else { |
| | | num1 = num2 + 1; |
| | | } |
| | | num2 += Integer.valueOf(strs[i]); |
| | | sh2023Api2103Item.setQsdlbh(num1 + ""); |
| | | sh2023Api2103Item.setJsdlbh(num2 + ""); |
| | | sh2023Api2103Item.setCs(cableCir[i]); |
| | | sh2023Api2103Item.setYbj((i + 1) * 4 + ""); |
| | | sh2023Api2103Item.setRowId(i + ""); |
| | | listItem.add(sh2023Api2103Item); |
| | | } |
| | | sh2023Api2103.setDlqplxq(JSON.toJSONString(listItem)); |
| | | } |
| | | |
| | | sh2023Api2103.setScqd("1"); |
| | | sh2023Api2103.setSczd(Integer.valueOf(strs[1]) * Integer.valueOf(strs[2]) + ""); |
| | | |
| | | sh2023Api2103.setZcqd("1"); |
| | | sh2023Api2103.setZczd(Integer.valueOf(strs[1]) * Integer.valueOf(strs[2]) + ""); |
| | | |
| | | sh2023Api2103.setXcqd("1"); |
| | | sh2023Api2103.setXczd(Integer.valueOf(strs[1]) * Integer.valueOf(strs[2]) + ""); |
| | | |
| | | sh2023Api2103.setYxfwqsc("1"); |
| | | sh2023Api2103.setYxfwjsc(sh2023Api2103.getDlcs()); |
| | | |
| | | sh2023Api2103.setBjw(bjw); |
| | | sh2023Api2103.setZhgxsj(new Date()); |
| | | |
| | | //æä¹
åä¿åï¼åç¬åå
¥é彿 æ¥å£è¡¨ |
| | | ApiInfoData infoData = new ApiInfoData(); |
| | | infoData.setId(sh2023Api2103.getHwdm()); |
| | | infoData.setKqdm(kqdm); |
| | | infoData.setInteType(Constant.API_CATEGORY_13); |
| | | infoData.setInteId(SH2023Constant.SH_2023_API_CODE_2103); |
| | | infoData.setUpdateTime(new Date()); |
| | | infoData.setDataId(sh2023Api2103.getHwdm()); |
| | | infoData.setRemarks("ç²®æ
设å¤é
置信æ¯"); |
| | | |
| | | //设置æä½æ å¿ |
| | | apiInfoDataList = apiInfoDataRep.getDataByInteAndData(SH2023Constant.SH_2023_API_CODE_2103, infoData.getDataId(),kqdm); |
| | | if (null == apiInfoDataList || apiInfoDataList.isEmpty()) { |
| | | infoData.setCzbz(Constant.CZBZ_I); |
| | | sh2023Api2103.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | infoData.setCzbz(apiInfoDataList.get(0).getCzbz()); |
| | | sh2023Api2103.setCzbz(apiInfoDataList.get(0).getCzbz()); |
| | | } |
| | | |
| | | infoData.setData(JSON.toJSONString(sh2023Api2103)); |
| | | apiInfoDataRep.save(infoData); |
| | | |
| | | log.info("2103---ç²®æ
设å¤é
ç½®-åæ¥æ°æ®ï¼{}", sh2023Api2103.toString()); |
| | | } |
| | | |
| | | } catch (Exception e) { |
| | | log.error("---åæ¥å¤±è´¥----{}", e); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.entity.*; |
| | | import com.fzzy.api.service.ApiCommonService; |
| | | import com.fzzy.api.service.ApiTriggerService; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.Api1101Rep; |
| | | import com.fzzy.api.view.repository.Api1102Rep; |
| | | import com.fzzy.api.view.repository.Api9201Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61DrugLogApply; |
| | | import com.fzzy.async.fzzy61.entity.Fz61DrugLogDtl; |
| | | import com.fzzy.async.fzzy61.entity.Fz61DrugLogPeople; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync9201Rep; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61SyncDrugLogDtlRep; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61SyncDrugLogPeopleRep; |
| | | import com.fzzy.push.gd2022.ApiCodeConstant; |
| | | import com.fzzy.push.gd2022.dto.Gd2022Api1023Dtl; |
| | | import com.fzzy.push.gd2022.dto.Gd2022Api1023People; |
| | | import com.fzzy.push.gd2022.dto.Gd2022Api1023Way; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * çè¸å¤æ¡ä¿¡æ¯ |
| | | * |
| | | * @Author:YAN |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync9201 { |
| | | @Autowired |
| | | private Api1101Rep api1101Rep; |
| | | @Autowired |
| | | private Api1102Rep api1102Rep; |
| | | @Autowired |
| | | private Fzzy61Sync9201Rep fzzy61Sync9201Rep; |
| | | @Autowired |
| | | private Fzzy61SyncDrugLogPeopleRep drugLogPeopleRep; |
| | | @Autowired |
| | | private Fzzy61SyncDrugLogDtlRep drugLogDtlRep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | @Autowired |
| | | private ApiTriggerService apiTriggerService; |
| | | |
| | | @Autowired |
| | | private Api9201Rep api9201Rep; |
| | | |
| | | |
| | | /** |
| | | * 忥çè¸å¤æ¡ä¿¡æ¯ |
| | | * |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------9201æ¥å£çè¸å¤æ¡ä¿¡æ¯å¼å§åæ¥------------------"); |
| | | |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(ApiCodeConstant.API_9201); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61DrugLogApply> list = fzzy61Sync9201Rep.listDrugLogApply(deptId, start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.info("-------------没æè·åå°çè¸å¤æ¡ä¿¡æ¯------------------"); |
| | | return; |
| | | } |
| | | List<Gd2022Api1023Dtl> dtlList; |
| | | List<Gd2022Api1023Way> wayList; |
| | | List<Gd2022Api1023People> peopleList; |
| | | |
| | | List<Api9201> api9201List; |
| | | |
| | | Api1105 api1105; |
| | | Api9201 api9201; |
| | | Gd2022Api1023Dtl api9201Dtl; |
| | | Gd2022Api1023Way api9201Way; |
| | | Gd2022Api1023People api9201People; |
| | | |
| | | for (Fz61DrugLogApply data : list) { |
| | | |
| | | api9201 = new Api9201(); |
| | | BeanUtils.copyProperties(data, api9201); |
| | | api9201.setBizId(data.getXzbm()); |
| | | api9201.setId(data.getXzbm()); |
| | | api9201.setXzbm(data.getXzbm().substring(8)); |
| | | api9201.setKqdm(kqdm); |
| | | List<Api1102> api1102List = api1102Rep.findPushData(kqdm); |
| | | if (null != api1102List && api1102List.size() > 0) { |
| | | api9201.setKqmc(api1102List.get(0).getKqmc()); |
| | | } |
| | | |
| | | api9201.setDwdm(kqdm.substring(0, 18)); |
| | | List<Api1101> api1101List = api1101Rep.findPushData(kqdm); |
| | | if (null != api1101List && api1101List.size() > 0) { |
| | | api9201.setDwmc(api1101List.get(0).getDwmc()); |
| | | } |
| | | api9201.setYjmc(data.getDrugName().trim()); |
| | | api9201.setYjlx(data.getDrugType().trim()); |
| | | api9201.setLqrq(data.getLqsj()); |
| | | api9201.setZhgxsj(data.getUpdateTime()); |
| | | api9201.setXcfzr(data.getXcfzr().trim()); |
| | | if (data.getLqr().contains("ã")) { |
| | | api9201.setLqr(data.getLqr().replace('ã', '|').trim()); |
| | | } |
| | | |
| | | //å¨ç²®ç²®æ
æç»è¡¨ |
| | | List<Fz61DrugLogDtl> dtls = drugLogDtlRep.listDrugLogDtl(data.getXzbm()); |
| | | |
| | | if (null != dtls && dtls.size() > 0) { |
| | | dtlList = new ArrayList<>(); |
| | | for (Fz61DrugLogDtl dtl : dtls) { |
| | | api9201Dtl = new Gd2022Api1023Dtl(); |
| | | BeanUtils.copyProperties(dtl, api9201Dtl); |
| | | api1105 = commonService.getApi1105Cache(dtl.getDepotId()); |
| | | if (null != api1105) { |
| | | api9201Dtl.setCfmc(api1105.getHwmc()); |
| | | api9201Dtl.setCfdm(api1105.getHwdm().substring(0, 25)); |
| | | } |
| | | |
| | | //ç²®é£åç§ |
| | | String mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSPZ, dtl.getFoodVariety()); |
| | | api9201Dtl.setLspzdm(mappingCode); |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSXZ, dtl.getFoodType()); |
| | | api9201Dtl.setLsxzdm(mappingCode); |
| | | api9201Dtl.setLsdjdm(dtl.getFoodLevel()); |
| | | api9201Dtl.setLssl(dtl.getNumber()); |
| | | api9201Dtl.setSf(dtl.getPerWet()); |
| | | api9201Dtl.setZz(dtl.getPerImpurity()); |
| | | dtlList.add(api9201Dtl); |
| | | } |
| | | api9201.setDtl(JSON.toJSONString(dtlList)); |
| | | api9201List = api9201Rep.getDataByBizId(api9201.getBizId()); |
| | | if (null == api9201List || api9201List.isEmpty()) { |
| | | api9201.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | api9201.setCzbz(api9201List.get(0).getCzbz()); |
| | | } |
| | | } |
| | | // BeanUtils.copyProperties(data, api9201Dtl); |
| | | // dtlList = new ArrayList<>(); |
| | | // dtlList.add(api9201Dtl); |
| | | // api9201.setDtl(JSON.toJSONString(dtlList)); |
| | | |
| | | |
| | | api9201Way = new Gd2022Api1023Way(); |
| | | BeanUtils.copyProperties(data, api9201Way); |
| | | wayList = new ArrayList<>(); |
| | | api9201Way.setSqfs(data.getSqfs().trim()); |
| | | api9201Way.setXzfs(data.getXzfs().trim()); |
| | | wayList.add(api9201Way); |
| | | api9201.setWay(JSON.toJSONString(wayList)); |
| | | |
| | | List<Fz61DrugLogPeople> peoples = drugLogPeopleRep.listDrugLogPeople(data.getXzbm()); |
| | | if (null != peoples && peoples.size() > 0) { |
| | | peopleList = new ArrayList<>(); |
| | | for (Fz61DrugLogPeople people : peoples) { |
| | | api9201People = new Gd2022Api1023People(); |
| | | BeanUtils.copyProperties(people, api9201People); |
| | | api9201People.setXm(people.getMx().trim()); |
| | | api9201People.setZw(people.getZw().trim()); |
| | | api9201People.setXzrwfg(people.getXzrwfg().trim()); |
| | | api9201People.setStzk(people.getStzk().trim()); |
| | | if (StringUtils.isEmpty(people.getZyzg())) { |
| | | people.setZyzg("å¹è®åæ ¼"); |
| | | } |
| | | if (StringUtils.isEmpty(people.getSfwb())) { |
| | | people.setSfwb("å¦"); |
| | | } |
| | | api9201People.setZyzg(people.getZyzg().trim()); |
| | | peopleList.add(api9201People); |
| | | } |
| | | api9201.setPeople(JSON.toJSONString(peopleList)); |
| | | |
| | | api9201List = api9201Rep.getDataByBizId(api9201.getBizId()); |
| | | if (null == api9201List || api9201List.isEmpty()) { |
| | | api9201.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | api9201.setCzbz(api9201List.get(0).getCzbz()); |
| | | } |
| | | } |
| | | api9201Rep.save(api9201); |
| | | log.info("9201---åæ¥æ°æ®ï¼{}", api9201.toString()); |
| | | } |
| | | |
| | | } catch (Exception e) { |
| | | log.error("---çè¸å¤æ¡åæ¥æ§è¡å¤±è´¥----{}", e); |
| | | apiLog.setResult("çè¸å¤æ¡ä¿¡æ¯åæ¥æ§è¡å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61DrugLogApply; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * çè¸å¤æ¡ä¿¡æ¯ |
| | | * |
| | | * @Author:YAN |
| | | */ |
| | | public interface Fzzy61Sync1023Rep extends JpaRepository<Fz61DrugLogApply, String> { |
| | | |
| | | //æ¥è¯¢çè¸å¤æ¡ä¸»è¡¨ |
| | | @Query("from Fz61DrugLogApply where deptId =:deptId and updateTime >=:start and updateTime <=:end") |
| | | List<Fz61DrugLogApply> listDrugLogApply(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61Grain; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¥è¯¢ç²®æ
æ£æµæ°æ® |
| | | * |
| | | * @author chen |
| | | * @date 2022-09-07 14:35 |
| | | */ |
| | | public interface Fzzy61Sync1302Rep extends JpaRepository<Fz61Grain, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®æ¶é´æ®µæ¥è¯¢ç²®æ
æ°æ® |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz61Grain where receiveDate >=:start and receiveDate <:end order by receiveDate ") |
| | | List<Fz61Grain> findByReceiveDate(@Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61Pest; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¥è¯¢è«å®³æ£æµæ°æ® |
| | | * |
| | | * @author chen |
| | | * @date 2022-09-08 09:51 |
| | | */ |
| | | public interface Fzzy61Sync1303Rep extends JpaRepository<Fz61Pest, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®æ¶é´æ®µæ¥è¯¢ç²®æ
æ°æ® |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz61Pest where receiveDate >=:start and receiveDate <:end order by receiveDate ") |
| | | List<Fz61Pest> findPestByReceiveDate(@Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61Gas; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ°ä½æ£æµæ°æ® |
| | | * |
| | | * @author chen |
| | | * @date 2022-09-08 10:42 |
| | | */ |
| | | public interface Fzzy61Sync1304Rep extends JpaRepository<Fz61Gas, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®æ¶é´æ®µæ¥è¯¢ç²®æ
æ°æ® |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz61Gas where receiveDate >=:start and receiveDate <:end order by receiveDate ") |
| | | List<Fz61Gas> findByReceiveDate(@Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61AreationData; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¥è¯¢éé£ä½ä¸æ°æ® |
| | | * |
| | | * @author chen |
| | | * @date 2022-09-08 10:42 |
| | | */ |
| | | public interface Fzzy61Sync1305Rep extends JpaRepository<Fz61AreationData, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®æ¶é´æ®µæ¥è¯¢é飿°æ® |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz61AreationData where updateTime >=:start and updateTime <:end order by updateTime ") |
| | | List<Fz61AreationData> findByReceiveDate(@Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61DrugLog; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¥è¯¢éé£ä½ä¸æ°æ® |
| | | * |
| | | * @author chen |
| | | * @date 2022-09-08 10:42 |
| | | */ |
| | | public interface Fzzy61Sync1306Rep extends JpaRepository<Fz61DrugLog, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®æ¶é´æ®µæ¥è¯¢é飿°æ® |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz61DrugLog where updateTime >=:start and updateTime <:end order by updateTime ") |
| | | List<Fz61DrugLog> findByReceiveDate(@Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61SecSnapDepot; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ä»å
è§é¢å¾å |
| | | * |
| | | * @author czt |
| | | * @date 2024-01-02 |
| | | */ |
| | | public interface Fzzy61Sync1307Rep extends JpaRepository<Fz61SecSnapDepot, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®ä¿¡æ¯è·åä»å
ææä¿¡æ¯ |
| | | * |
| | | * @param deptId |
| | | * @param startTime |
| | | * @param endTime |
| | | * @return |
| | | */ |
| | | @Query("from Fz61SecSnapDepot where deptId=:deptId and updateTime >=:startTime and updateTime <=:endTime order by id ") |
| | | List<Fz61SecSnapDepot> listSnapDepotData(@Param("deptId") String deptId, @Param("startTime") Date startTime, @Param("endTime") Date endTime); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61Quality; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¥è¯¢è´¨æ£æ°æ® |
| | | * |
| | | * @author czt |
| | | * @date 2023-05-14 19:55 |
| | | */ |
| | | public interface Fzzy61Sync1310Rep extends JpaRepository<Fz61Quality, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®æ¶é´æ®µæ¥è¯¢ç²®æ
æ°æ® |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz61Quality where deptId =:deptId and updateTime >=:start and updateTime <:end order by updateTime ") |
| | | List<Fz61Quality> findDateByTime(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61SecCamera; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author:YAN |
| | | */ |
| | | public interface Fzzy61Sync1311Rep extends JpaRepository<Fz61SecCamera, String> { |
| | | /** |
| | | * æ ¹æ®æ¶é´æ®µæ¥è¯¢ç²®æ
æ°æ® |
| | | * |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | @Query("from Fz61SecCamera where deptId =:deptId ") |
| | | List<Fz61SecCamera> findDateByDeptId(@Param("deptId") String deptId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutPlan; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¥è¯¢è½®æ¢è®¡åè¯¦ç» |
| | | * |
| | | * @author czt |
| | | * @date 2023-10-30 09:55 |
| | | */ |
| | | public interface Fzzy61Sync1403Rep extends JpaRepository<Fz61InoutPlan, String> { |
| | | |
| | | /** |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz61InoutPlan where type =:planType and createTime >=:start and createTime <:end order by createTime ") |
| | | List<Fz61InoutPlan> findDate(@Param("planType") String planType, @Param("start") Date start, @Param("end") Date end); |
| | | |
| | | /** |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz61InoutPlan where deptId =:deptId and createTime >=:start and createTime <:end order by createTime ") |
| | | List<Fz61InoutPlan> findDateByTime(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy40.entity.Fz40InoutPlanDetail; |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutPlanDetail; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¥è¯¢è½®æ¢è®¡åè¯¦ç» |
| | | * |
| | | * @author czt |
| | | * @date 2023-10-30 09:55 |
| | | */ |
| | | public interface Fzzy61Sync1404Rep extends JpaRepository<Fz61InoutPlanDetail, String> { |
| | | |
| | | /** |
| | | * |
| | | * @return |
| | | */ |
| | | @Query("from Fz61InoutPlanDetail where planId =:planId ") |
| | | List<Fz61InoutPlanDetail> findDate(@Param("planId") String planId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61Api1504; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è´¢å¡ç®¡ç-婿¶¦ |
| | | * |
| | | * @author czt |
| | | * @date 2024-01-12 09:55 |
| | | */ |
| | | public interface Fzzy61Sync1504Rep extends JpaRepository<Fz61Api1504, String> { |
| | | |
| | | /** |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz61Api1504 where zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") |
| | | List<Fz61Api1504> findDateByTime(@Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61Api1504; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è´¢å¡ç®¡ç-婿¶¦ |
| | | * |
| | | * @author czt |
| | | * @date 2024-01-12 09:55 |
| | | */ |
| | | public interface Fzzy61Sync1505Rep extends JpaRepository<Fz61Api1504, String> { |
| | | |
| | | /** |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz61Api1504 where zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") |
| | | List<Fz61Api1504> findDateByTime(@Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61Api1506; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è´¢å¡ç®¡ç-婿¶¦ |
| | | * |
| | | * @author czt |
| | | * @date 2024-01-12 09:55 |
| | | */ |
| | | public interface Fzzy61Sync1506Rep extends JpaRepository<Fz61Api1506, String> { |
| | | |
| | | /** |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz61Api1506 where zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") |
| | | List<Fz61Api1506> findDateByTime(@Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61Api1507; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è´¢å¡ç®¡ç-ä¼è®¡åè¯ä¿¡æ¯ |
| | | * |
| | | * @author czt |
| | | * @date 2024-01-12 09:55 |
| | | */ |
| | | public interface Fzzy61Sync1507Rep extends JpaRepository<Fz61Api1507, String> { |
| | | |
| | | /** |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz61Api1507 where zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") |
| | | List<Fz61Api1507> findDateByTime(@Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61Api1508; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è´¢å¡ç®¡ç-ç°éæµéåé
ä¿¡æ¯ |
| | | * |
| | | * @author czt |
| | | * @date 2024-01-12 09:55 |
| | | */ |
| | | public interface Fzzy61Sync1508Rep extends JpaRepository<Fz61Api1508, String> { |
| | | |
| | | /** |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz61Api1508 where zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") |
| | | List<Fz61Api1508> findDateByTime(@Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61Api1508; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è´¢å¡ç®¡ç-åºå®èµäº§å¡çä¿¡æ¯ |
| | | * |
| | | * @author czt |
| | | * @date 2024-01-12 09:55 |
| | | */ |
| | | public interface Fzzy61Sync1509Rep extends JpaRepository<Fz61Api1508, String> { |
| | | |
| | | /** |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz61Api1508 where zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") |
| | | List<Fz61Api1508> findDateByTime(@Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61Api1510; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è´¢å¡ç®¡ç-èµäº§ææ§ä¿¡æ¯ |
| | | * |
| | | * @author czt |
| | | * @date 2024-01-12 09:55 |
| | | */ |
| | | public interface Fzzy61Sync1510Rep extends JpaRepository<Fz61Api1510, String> { |
| | | |
| | | /** |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz61Api1510 where zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") |
| | | List<Fz61Api1510> findDateByTime(@Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61DrugLogApply; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * çè¸å¤æ¡ä¿¡æ¯ |
| | | * |
| | | * @Author:YAN |
| | | */ |
| | | public interface Fzzy61Sync9201Rep extends JpaRepository<Fz61DrugLogApply, String> { |
| | | |
| | | //æ¥è¯¢çè¸å¤æ¡ä¸»è¡¨ |
| | | @Query("from Fz61DrugLogApply where deptId =:deptId and updateTime >=:start and updateTime <:end order by updateTime ") |
| | | List<Fz61DrugLogApply> listDrugLogApply(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61DepotConf; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¥è¯¢ç²®æ
æ£æµæ°æ® |
| | | * |
| | | * @author czt |
| | | * |
| | | * @date 2023-08-21 |
| | | */ |
| | | public interface Fzzy61SyncDepotConfRep extends JpaRepository<Fz61DepotConf, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®ä»åºç¼ç è·åç²®æ
åæ°é
ç½®ä¿¡æ¯ |
| | | * @param depotId |
| | | * @return |
| | | */ |
| | | @Query("from Fz61DepotConf where depotId =:depotId order by depotId ") |
| | | List<Fz61DepotConf> findDataByDepotId(@Param("depotId") String depotId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61Depot; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è·åä»åºä¿¡æ¯ |
| | | * |
| | | * @author czt |
| | | * @date 2023-08-21 |
| | | */ |
| | | public interface Fzzy61SyncDepotRep extends JpaRepository<Fz61Depot, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®åºåºç¼ç è·åè´§ä½å表 |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | @Query("from Fz61Depot where deptId=:deptId order by id ") |
| | | List<Fz61Depot> listDepotList(@Param("deptId") String deptId); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61DrugLogDtl; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * çè¸å¤æ¡å表 - ç²®æ
ä¿¡æ¯ |
| | | * |
| | | * @Author:YAN |
| | | */ |
| | | public interface Fzzy61SyncDrugLogDtlRep extends JpaRepository<Fz61DrugLogDtl, String> { |
| | | |
| | | |
| | | @Query("from Fz61DrugLogDtl where drugLogId =:id") |
| | | List<Fz61DrugLogDtl> listDrugLogDtl(@Param("id") String id ); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61DrugLogPeople; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 设å¤ä¿¡æ¯ |
| | | * |
| | | * @Author:YAN |
| | | */ |
| | | public interface Fzzy61SyncDrugLogPeopleRep extends JpaRepository<Fz61DrugLogPeople, String> { |
| | | |
| | | @Query("from Fz61DrugLogPeople where drugLogId =:id") |
| | | List<Fz61DrugLogPeople> listDrugLogPeople(@Param("id") String id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61DrugLogWay; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 设å¤ä¿¡æ¯ |
| | | * |
| | | * @Author:YAN |
| | | */ |
| | | public interface Fzzy61SyncDrugLogWayRep extends JpaRepository<Fz61DrugLogWay, String> { |
| | | |
| | | @Query("from Fz61DrugLogWay where drugLogId =:id") |
| | | List<Fz61DrugLogWay> listDrugLogWay(@Param("id") String id ); |
| | | } |