| | |
| | | * éè¿æ¥å£è·åçåä½è´¦å¥åï¼å¨å±ç«¯èªå¨äº§çè´¦å¥å· |
| | | */ |
| | | @Id |
| | | @Column(name = "ID_", precision = 18) |
| | | @Column(name = "ID_", precision = 110) |
| | | @JSONField(serialize = false) |
| | | private String id; |
| | | |
| | |
| | | * éè¿æ¥å£è·åçåä½è´¦å¥åï¼å¨å±ç«¯èªå¨äº§çè´¦å¥å· |
| | | */ |
| | | @Id |
| | | @Column(name = "ID_", precision = 18) |
| | | @Column(name = "ID_", precision = 110) |
| | | @JSONField(serialize = false) |
| | | private String id; |
| | | |
| | |
| | | if (String.valueOf(minute).equals(conf.getPushMinute99())) { |
| | | isExecute = true; |
| | | if (!isUpdateStart) { |
| | | start = DateUtils.addHours(start, -1); |
| | | start = DateUtils.addHours(start, -2); |
| | | } |
| | | } else { |
| | | isExecute = false; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy40.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 Fz40Api1504 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.fzzy40.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 Fz40Api1505 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.fzzy40.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 Fz40Api1506 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.fzzy40.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 Fz40Api1507 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.fzzy40.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 Fz40Api1508 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.fzzy40.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 Fz40Api1509 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.fzzy40.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 Fz40Api1510 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.fzzy40.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.fzzy40.entity.Fz40Api1504; |
| | | import com.fzzy.async.fzzy40.entity.Fz40Profit; |
| | | import com.fzzy.async.fzzy40.repository.Fzzy40Sync1504Rep; |
| | | 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 Fzzy40Sync1504 { |
| | | |
| | | @Autowired |
| | | private Fzzy40Sync1504Rep fzzy40Sync1504Rep; |
| | | @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<Fz40Api1504> list = fzzy40Sync1504Rep.findDateByTime(start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | Api1504 api1504; |
| | | List<Api1504> api1504List; |
| | | for (Fz40Api1504 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); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy40.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.fzzy40.entity.Fz40Api1504; |
| | | import com.fzzy.async.fzzy40.entity.Fz40Profit; |
| | | import com.fzzy.async.fzzy40.repository.Fzzy40Sync1505Rep; |
| | | 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 Fzzy40Sync1505 { |
| | | |
| | | @Autowired |
| | | private Fzzy40Sync1505Rep fzzy40Sync1505Rep; |
| | | @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<Fz40Api1504> list = fzzy40Sync1505Rep.findDateByTime(start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | Api1505 api1505; |
| | | List<Api1505> api1505List; |
| | | for (Fz40Api1504 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); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy40.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.fzzy40.entity.Fz40Api1506; |
| | | import com.fzzy.async.fzzy40.entity.Fz40Profit; |
| | | import com.fzzy.async.fzzy40.repository.Fzzy40Sync1506Rep; |
| | | 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 Fzzy40Sync1506 { |
| | | |
| | | @Autowired |
| | | private Fzzy40Sync1506Rep fzzy40Sync1506Rep; |
| | | @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<Fz40Api1506> list = fzzy40Sync1506Rep.findDateByTime(start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | Api1506 api1506; |
| | | List<Api1506> api1506List; |
| | | for (Fz40Api1506 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); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy40.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.fzzy40.entity.Fz40Api1507; |
| | | import com.fzzy.async.fzzy40.entity.Fz40Profit; |
| | | import com.fzzy.async.fzzy40.repository.Fzzy40Sync1507Rep; |
| | | 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 Fzzy40Sync1507 { |
| | | |
| | | @Autowired |
| | | private Fzzy40Sync1507Rep fzzy40Sync1507Rep; |
| | | @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<Fz40Api1507> list = fzzy40Sync1507Rep.findDateByTime(start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | Api1507 api1507; |
| | | List<Api1507> api1507List; |
| | | for (Fz40Api1507 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); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy40.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.fzzy40.entity.Fz40Api1508; |
| | | import com.fzzy.async.fzzy40.entity.Fz40Profit; |
| | | import com.fzzy.async.fzzy40.repository.Fzzy40Sync1508Rep; |
| | | 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 Fzzy40Sync1508 { |
| | | |
| | | @Autowired |
| | | private Fzzy40Sync1508Rep fzzy40Sync1508Rep; |
| | | @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<Fz40Api1508> list = fzzy40Sync1508Rep.findDateByTime(start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | Api1508 api1508; |
| | | List<Api1508> api1508List; |
| | | for (Fz40Api1508 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); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy40.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.fzzy40.entity.Fz40Api1508; |
| | | import com.fzzy.async.fzzy40.entity.Fz40Profit; |
| | | import com.fzzy.async.fzzy40.repository.Fzzy40Sync1509Rep; |
| | | 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 Fzzy40Sync1509 { |
| | | |
| | | @Autowired |
| | | private Fzzy40Sync1509Rep fzzy40Sync1509Rep; |
| | | @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<Fz40Api1508> list = fzzy40Sync1509Rep.findDateByTime(start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | Api1509 api1509; |
| | | List<Api1509> api1509List; |
| | | for (Fz40Api1508 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); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy40.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.fzzy40.entity.Fz40Api1510; |
| | | import com.fzzy.async.fzzy40.entity.Fz40Profit; |
| | | import com.fzzy.async.fzzy40.repository.Fzzy40Sync1510Rep; |
| | | 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 Fzzy40Sync1510 { |
| | | |
| | | @Autowired |
| | | private Fzzy40Sync1510Rep fzzy40Sync1510Rep; |
| | | @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<Fz40Api1510> list = fzzy40Sync1510Rep.findDateByTime(start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | | Api1510 api1510; |
| | | List<Api1510> api1510List; |
| | | for (Fz40Api1510 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); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | List<Api9201> api9201List; |
| | | |
| | | |
| | | Api1105 api1105; |
| | | Api9201 api9201; |
| | | Gd2022Api1023Dtl api9201Dtl; |
| | | Gd2022Api1023Way api9201Way; |
| | |
| | | |
| | | //å¨ç²®ç²®æ
æç»è¡¨ |
| | | List<Fz40DrugLogDtl> dtls = drugLogDtlRep.listDrugLogDtl(data.getXzbm()); |
| | | Api1105 api1105 = commonService.getApi1105Cache(data.getDepotId()); |
| | | |
| | | if (null != dtls && dtls.size() > 0) { |
| | | dtlList = new ArrayList<>(); |
| | | for (Fz40DrugLogDtl dtl : dtls) { |
| | | api9201Dtl = new Gd2022Api1023Dtl(); |
| | | BeanUtils.copyProperties(data, api9201Dtl); |
| | | BeanUtils.copyProperties(dtl, api9201Dtl); |
| | | api1105 = commonService.getApi1105Cache(data.getDepotId()); |
| | | if (null != api1105) { |
| | | api9201Dtl.setCfmc(api1105.getHwmc()); |
| | | api9201Dtl.setCfdm(api1105.getHwdm().substring(0, 25)); |
| | |
| | | api9201Dtl.setLssl(data.getNumber()); |
| | | api9201Dtl.setSf(data.getPerWet()); |
| | | api9201Dtl.setZz(data.getPerImpurity()); |
| | | |
| | | |
| | | dtlList = new ArrayList<>(); |
| | | 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(); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy40.repository; |
| | | |
| | | import com.fzzy.async.fzzy40.entity.Fz40Api1504; |
| | | import com.fzzy.async.fzzy40.entity.Fz40Profit; |
| | | 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 Fzzy40Sync1504Rep extends JpaRepository<Fz40Api1504, String> { |
| | | |
| | | /** |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz40Api1504 where zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") |
| | | List<Fz40Api1504> findDateByTime(@Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy40.repository; |
| | | |
| | | import com.fzzy.async.fzzy40.entity.Fz40Api1504; |
| | | import com.fzzy.async.fzzy40.entity.Fz40Profit; |
| | | 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 Fzzy40Sync1505Rep extends JpaRepository<Fz40Api1504, String> { |
| | | |
| | | /** |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz40Api1504 where zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") |
| | | List<Fz40Api1504> findDateByTime(@Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy40.repository; |
| | | |
| | | import com.fzzy.async.fzzy40.entity.Fz40Api1506; |
| | | import com.fzzy.async.fzzy40.entity.Fz40Profit; |
| | | 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 Fzzy40Sync1506Rep extends JpaRepository<Fz40Api1506, String> { |
| | | |
| | | /** |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz40Api1506 where zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") |
| | | List<Fz40Api1506> findDateByTime(@Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy40.repository; |
| | | |
| | | import com.fzzy.async.fzzy40.entity.Fz40Api1507; |
| | | import com.fzzy.async.fzzy40.entity.Fz40Profit; |
| | | 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 Fzzy40Sync1507Rep extends JpaRepository<Fz40Api1507, String> { |
| | | |
| | | /** |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz40Api1507 where zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") |
| | | List<Fz40Api1507> findDateByTime(@Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy40.repository; |
| | | |
| | | import com.fzzy.async.fzzy40.entity.Fz40Api1508; |
| | | import com.fzzy.async.fzzy40.entity.Fz40Profit; |
| | | 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 Fzzy40Sync1508Rep extends JpaRepository<Fz40Api1508, String> { |
| | | |
| | | /** |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz40Api1508 where zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") |
| | | List<Fz40Api1508> findDateByTime(@Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy40.repository; |
| | | |
| | | import com.fzzy.async.fzzy40.entity.Fz40Api1508; |
| | | import com.fzzy.async.fzzy40.entity.Fz40Profit; |
| | | 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 Fzzy40Sync1509Rep extends JpaRepository<Fz40Api1508, String> { |
| | | |
| | | /** |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz40Api1508 where zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") |
| | | List<Fz40Api1508> findDateByTime(@Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy40.repository; |
| | | |
| | | import com.fzzy.async.fzzy40.entity.Fz40Api1510; |
| | | import com.fzzy.async.fzzy40.entity.Fz40Profit; |
| | | 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 Fzzy40Sync1510Rep extends JpaRepository<Fz40Api1510, String> { |
| | | |
| | | /** |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz40Api1510 where zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") |
| | | List<Fz40Api1510> findDateByTime(@Param("start") Date start, @Param("end") Date end); |
| | | } |
| | |
| | | <Property name="text">èåæ ï¼</Property> |
| | | </Label> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var list = view.get("#dsMain.data:#").get("dtlList");
 |
| | | list.insert({});
 |
| | | <ClientEvent name="onClick">var list = view.get("#dsMain.data:#").get("dtls");
 |
| | | list.insert();
 |
| | | view.get("#addDtl").show();</ClientEvent> |
| | | <Property name="caption">æ°å¢</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | |
| | | |
| | | org.springframework.data.domain.Page<Api9201> japPage = api9201Rep.findAll(specification, pageable); |
| | | page.setEntityCount((int) japPage.getTotalElements()); |
| | | for (Api9201 api9201 : japPage.getContent()) { |
| | | api9201.setDtls(JSONArray.parseArray(api9201.getDtl(), Gd2022Api1023Dtl.class)); |
| | | api9201.setPeoples(JSONArray.parseArray(api9201.getPeople(), Gd2022Api1023People.class)); |
| | | api9201.setWays(JSONArray.parseArray(api9201.getWay(), Gd2022Api1023Way.class)); |
| | | } |
| | | page.setEntities(japPage.getContent()); |
| | | } |
| | | |