| | |
| | | FZZY_V30_GB("FZZY_V30_GB", "飿£è´è¿V3.0"), |
| | | FZZY_V35_GB("FZZY_V35_GB", "飿£è´è¿V3.5"), |
| | | FZZY_V40_GB("FZZY_V40_GB", "飿£è´è¿V4.0"), |
| | | FZZY_V61_GB("FZZY_V61_GB", "飿£è´è¿V6.1"), |
| | | FZZY_V40_WHJL("FZZY_V40_WHJL", "飿£è´è¿V4.0-æ¦æ±åç²®"), |
| | | FZZY_V35_SHYZ("FZZY_V35_SHYZ", "飿£è´è¿2䏿µ·ä½åè§è"); |
| | | |
| | |
| | | list.add(new ApiTrigger(SyncProtocol.FZZY_V30_GB.getCode(), SyncProtocol.FZZY_V30_GB.getName())); |
| | | list.add(new ApiTrigger(SyncProtocol.FZZY_V35_GB.getCode(), SyncProtocol.FZZY_V35_GB.getName())); |
| | | list.add(new ApiTrigger(SyncProtocol.FZZY_V40_GB.getCode(), SyncProtocol.FZZY_V40_GB.getName())); |
| | | list.add(new ApiTrigger(SyncProtocol.FZZY_V61_GB.getCode(), SyncProtocol.FZZY_V61_GB.getName())); |
| | | list.add(new ApiTrigger(SyncProtocol.FZZY_V40_WHJL.getCode(), SyncProtocol.FZZY_V40_WHJL.getName())); |
| | | list.add(new ApiTrigger(SyncProtocol.FZZY_V35_SHYZ.getCode(), SyncProtocol.FZZY_V35_SHYZ.getName())); |
| | | return list; |
| | |
| | | if (StringUtils.isEmpty(people.getZyzg())) { |
| | | people.setZyzg("å¹è®åæ ¼"); |
| | | } |
| | | if (StringUtils.isEmpty(people.getSfwb())) { |
| | | people.setSfwb("å¦"); |
| | | } |
| | | api9201People.setZyzg(people.getZyzg().trim()); |
| | | peopleList.add(api9201People); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61; |
| | | |
| | | import com.fzzy.api.data.ApiParam; |
| | | import com.fzzy.api.data.SyncProtocol; |
| | | import com.fzzy.api.service.SyncService11; |
| | | import com.fzzy.async.fzzy61.impl.Fzzy61Sync1107; |
| | | import com.fzzy.async.fzzy61.impl.Fzzy61Sync1108; |
| | | import com.fzzy.async.fzzy61.impl.Fzzy61Sync1111; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61SyncService11 implements SyncService11 { |
| | | @Autowired |
| | | private Fzzy61Sync1111 fzzy61Sync1111; |
| | | @Autowired |
| | | private Fzzy61Sync1108 fzzy61Sync1108; |
| | | @Autowired |
| | | private Fzzy61Sync1107 fzzy61Sync1107; |
| | | |
| | | @Override |
| | | public String getProtocol() { |
| | | return SyncProtocol.FZZY_V61_GB.getCode(); |
| | | } |
| | | |
| | | @Override |
| | | public void syncData(ApiParam param) { |
| | | log.info("--------------åºç¡æ°æ®æå¨é
ç½®æ¨é--------"); |
| | | String kqdm = param.getKqdm(); |
| | | String deptId = param.getDeptId(); |
| | | Date start = param.getStart(); |
| | | Date end = param.getEnd(); |
| | | //çæ§ç¹ä½ä¿¡æ¯åæ¥ |
| | | fzzy61Sync1111.syncData(kqdm, deptId, start, end); |
| | | |
| | | //è¯åä¿¡æ¯åæ¥ |
| | | fzzy61Sync1108.syncData(kqdm, deptId, start, end); |
| | | |
| | | //设å¤ä¿¡æ¯åæ¥ |
| | | fzzy61Sync1107.syncData(kqdm, deptId, start, end); |
| | | //人åä¿¡æ¯åæ¥ |
| | | // fzzy61Sync1112.syncData(kqdm, deptId, start, end); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.SyncService12; |
| | | import com.fzzy.async.fzzy61.impl.*; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Desc: ç²®é£è´éç¸å
³æ°æ®åæ¥ |
| | | * @author: czt |
| | | * @update-time: 2023/6/29 |
| | | */ |
| | | @Component |
| | | public class Fzzy61SyncService12 implements SyncService12 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1201 fzzySync1201; |
| | | @Autowired |
| | | private Fzzy61Sync1202 fzzySync1202; |
| | | @Autowired |
| | | private Fzzy61Sync1203 fzzySync1203; |
| | | @Autowired |
| | | private Fzzy61Sync1204 fzzySync1204; |
| | | @Autowired |
| | | private Fzzy61Sync1205 fzzySync1205; |
| | | @Autowired |
| | | private Fzzy61Sync1206 fzzySync1206; |
| | | @Autowired |
| | | private Fzzy61Sync1207 fzzySync1207; |
| | | @Autowired |
| | | private Fzzy61Sync1208 fzzySync1208; |
| | | @Autowired |
| | | private Fzzy61Sync1209 fzzySync1209; |
| | | @Autowired |
| | | private Fzzy61Sync1211 fzzySync1211; |
| | | @Autowired |
| | | private Fzzy61Sync1210 fzzySync1210; |
| | | @Autowired |
| | | private Fzzy61Sync1212 fzzySync1212; |
| | | @Autowired |
| | | private Fzzy61Sync1213 fzzySync1213; |
| | | @Autowired |
| | | private Fzzy61Sync1109 fzzySync1109; |
| | | @Autowired |
| | | private Fzzy61Sync2102 fzzySync2102; |
| | | |
| | | @Override |
| | | public String getProtocol() { |
| | | return SyncProtocol.FZZY_V61_GB.getCode(); |
| | | } |
| | | |
| | | @Override |
| | | public void syncData(ApiParam param) { |
| | | |
| | | String kqdm = param.getKqdm(); |
| | | String deptId = param.getDeptId(); |
| | | Date start = param.getStart(); |
| | | Date end = param.getEnd(); |
| | | |
| | | //客æ·åæ¥ |
| | | fzzySync1212.syncData(kqdm, deptId, start, end); |
| | | |
| | | //åå忥 |
| | | fzzySync1201.syncData(kqdm, deptId, start, end); |
| | | |
| | | //ç²®é£å
¥åºç»ç® |
| | | fzzySync1204.syncData(kqdm, deptId, start, end); |
| | | |
| | | //ç²®é£å
¥åºåæ¥ |
| | | fzzySync1202.syncData(kqdm, deptId, start, end); |
| | | |
| | | //ç²®é£å
¥åºè´¨æ£ |
| | | fzzySync1203.syncData(kqdm, deptId, start, end); |
| | | |
| | | //ç²®é£åºåºç»ç® |
| | | fzzySync1206.syncData(kqdm, deptId, start, end); |
| | | |
| | | //ç²®é£åºåºåæ¥ |
| | | fzzySync1205.syncData(kqdm, deptId, start, end); |
| | | |
| | | //ç²®é£æç |
| | | fzzySync1209.syncData(kqdm, deptId, start, end); |
| | | //åä»ä¿¡æ¯åæ¥ |
| | | fzzySync1207.syncData(kqdm, deptId, start, end); |
| | | |
| | | //åºå
¥åºæä»¶ä¿¡æ¯åæ¥ |
| | | fzzySync1109.syncData(kqdm, deptId, start, end); |
| | | |
| | | //ç²®é£åºå忥 |
| | | fzzySync1208.syncData(kqdm, deptId, start, end); |
| | | |
| | | //ç²®é£æ§è´¨è½¬åä¿¡æ¯åæ¥ |
| | | fzzySync1210.syncData(kqdm, deptId, start, end); |
| | | |
| | | //è´¦é¢åºåä¿¡æ¯åæ¥ |
| | | fzzySync1211.syncData(kqdm, deptId, start, end); |
| | | //å°ä»ç¡®è®¤ä¿¡æ¯åæ¥ |
| | | fzzySync1213.syncData(kqdm, deptId, start, end); |
| | | |
| | | /*-----åçç¬ææ¥å£ä¿¡æ¯åæ¥-----*/ |
| | | //䏿µ·å¸å¹³å°2023ç |
| | | if (StringUtils.isNotEmpty(param.getPushProtocol()) && PushProtocol.SB_SH_2023.getCode().equals(param.getPushProtocol())) { |
| | | //åä»åå
¥ä¿¡æ¯åæ¥ |
| | | fzzySync2102.syncData(kqdm, deptId, start, end); |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import com.fzzy.async.fzzy40.entity.Fz40CheckItemKey; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.*; |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * ç¨äºåºå
¥åºè´¨æ£è¯¦ç»é¡¹åæ¥å¸¸å·¡æ£ç详ç»é¡¹è®°å½ |
| | | * |
| | | * @author: andy.jia |
| | | * @description: |
| | | * @version: |
| | | * @data:2020å¹´4æ7æ¥ |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_CHECK_ITEM") |
| | | @IdClass(Fz61CheckItemKey.class) |
| | | public class Fz61CheckItem implements Serializable { |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @Id |
| | | @Column(name = "CHECK_ID_", length = 40) |
| | | @PropertyDef(label = "æ£æµç¼ç ") |
| | | private String checkId; |
| | | |
| | | @Id |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Id |
| | | @Column(name = "STANDARD_ID_", length = 10) |
| | | @PropertyDef(label = "æ£æµé¡¹ç¼ç ") |
| | | private String standardId; |
| | | |
| | | @Column(name = "STANDARD_NAME_", length = 50) |
| | | @PropertyDef(label = "åéªé¡¹") |
| | | private String standardName; |
| | | |
| | | @Column(name = "UNIT_", length = 20) |
| | | @PropertyDef(label = "åä½") |
| | | private String unit; |
| | | |
| | | @Column(name = "UPPER_LIMIT_") |
| | | @PropertyDef(label = "æ åä¼å¼") |
| | | private Double upperLimit; |
| | | |
| | | @Column(name = "OPERA_SYMBOL_", length = 4) |
| | | @PropertyDef(label = "è¿ç®ç¬¦å·") |
| | | private String operaSymbol; |
| | | |
| | | @Column(name = "RULE_NUM_") |
| | | @PropertyDef(label = "æ£éç³»æ°") |
| | | private Double ruleNum; |
| | | |
| | | @Column(name = "RULE_ADD_") |
| | | @PropertyDef(label = "å¢é%") |
| | | private Double ruleAdd; |
| | | |
| | | @Column(name = "RULE_ADD_END_") |
| | | @PropertyDef(label = "å¢éä¸é%") |
| | | private Double ruleAddEnd; |
| | | |
| | | @Column(name = "RULE_REDUCE_") |
| | | @PropertyDef(label = "æ£éå¼%") |
| | | private Double ruleReduce; |
| | | |
| | | @Column(name = "VALUE_", length = 40) |
| | | @PropertyDef(label = "æ£æµå¼") |
| | | private String value; |
| | | |
| | | @Column(name = "RULE_PRICE_") |
| | | @PropertyDef(label = "æ£è´¹ç³»æ°") |
| | | private Double rulePrice; |
| | | |
| | | @Column(name = "RULE_REDUCE_PRICE_") |
| | | @PropertyDef(label = "æ£è´¹") |
| | | private Double ruleReducePrice; |
| | | |
| | | @Column(name = "ADD_NUM_") |
| | | @PropertyDef(label = "å¢é", description = "åä½ï¼kG") |
| | | private Double addNum; |
| | | |
| | | @Column(name = "DE_NUM_") |
| | | @PropertyDef(label = "æ£é", description = "åä½ï¼kG") |
| | | private Double deNum; |
| | | |
| | | @Column(name = "ADD_PRICE_") |
| | | @PropertyDef(label = "å¢ä»·", description = "åä½ï¼å
") |
| | | private Double addPrice; |
| | | |
| | | @Column(name = "DE_PRICE_") |
| | | @PropertyDef(label = "æ£ä»·", description = "åä½ï¼å
") |
| | | private Double dePrice; |
| | | |
| | | @Column(name = "RESULT_", length = 2) |
| | | @PropertyDef(label = "æ£éªç»æ", description = "0=ä¸åæ ¼ 1=åæ ¼") |
| | | private String result; |
| | | |
| | | @Column(name = "REMARKS_", length = 50) |
| | | @PropertyDef(label = "夿³¨") |
| | | private String remarks; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "è¿ç®ç¬¦å·å¼ï¼åªå页颿¾ç¤ºç¨") |
| | | private String operaSymbolValue; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "湿度") |
| | | private double perWet; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "æè´¨") |
| | | private double perImpurity; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | | @AllArgsConstructor |
| | | public class Fz61CheckItemKey implements Serializable { |
| | | private String checkId; |
| | | private String companyId; |
| | | private String standardId; |
| | | |
| | | public Fz61CheckItemKey(){ |
| | | 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.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 = "D_DEPOT_BOOK_STORE") |
| | | public class Fz61DepotBookStore implements Serializable { |
| | | |
| | | public static String SORT_PROP = "id"; |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 40) |
| | | @PropertyDef(label = "主é®", description = "è§åï¼ä»åºç¼ç _yyyyMMdd") |
| | | private String id; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 20) |
| | | @PropertyDef(label = "åºåºä»£ç ") |
| | | private String deptId; |
| | | |
| | | @Column(name = "DEPOT_ID_", length = 30) |
| | | @PropertyDef(label = "ä»åºç¼ç ", description = "ç®å䏿µ·ä½¿ç¨") |
| | | private String depotId; |
| | | |
| | | @PropertyDef(label = "ç²®é£æ§è´¨ä»£ç ", description = "ç®å䏿µ·ä½¿ç¨") |
| | | @Column(name = "lsxzdm", length = 7) |
| | | private String lsxzdm; |
| | | |
| | | @Column(name = "lspzdm", length = 7) |
| | | @PropertyDef(label = "ç²®é£åç§ä»£ç ") |
| | | private String lspzdm; |
| | | |
| | | @Column(name = "nd", length = 4) |
| | | @PropertyDef(label = "年度") |
| | | private String nd; |
| | | |
| | | @Column(name = "yf", length = 2) |
| | | @PropertyDef(label = "æä»½") |
| | | private String yf; |
| | | |
| | | @Column(name = "qcsl", precision = 20, scale = 3) |
| | | @PropertyDef(label = "æåæ°é", description = "åä½ï¼å
¬æ¤") |
| | | private Double qcsl = 0.0; |
| | | |
| | | @Column(name = "bqsrsl", precision = 20, scale = 3) |
| | | @PropertyDef(label = "æ¬ææ¶å
¥æ°é", description = "åä½ï¼å
¬æ¤") |
| | | private Double bqsrsl = 0.0; |
| | | |
| | | @Column(name = "bqzcsl", precision = 20, scale = 3) |
| | | @PropertyDef(label = "æ¬ææ¯åºæ°é", description = "åä½ï¼å
¬æ¤") |
| | | private Double bqzcsl = 0.0; |
| | | |
| | | @Column(name = "qmye", precision = 20, scale = 3) |
| | | @PropertyDef(label = "ææ«æ°é", description = "åä½ï¼å
¬æ¤") |
| | | private Double qmye = 0.0; |
| | | |
| | | @Column(name = "yjbz") |
| | | @PropertyDef(label = "æç»æ å¿", description = "0ï¼æç»ï¼1 æªæç»") |
| | | private Integer yjbz; |
| | | |
| | | @Column(name = "ywrq") |
| | | @PropertyDef(label = "ä¸å¡æ¥æ") |
| | | private Date ywrq; |
| | | |
| | | @Column(name = "zhgxsj") |
| | | @JSONField(format = "yyyy-MM-dd HH:mm:ss") |
| | | @PropertyDef(label = "æåæ´æ°æ¶é´") |
| | | 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.util.Date; |
| | | |
| | | /** |
| | | * @Desc: 仿¿ç¶æç¡®è®¤è¡¨ |
| | | * @author: |
| | | * @update-time: |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_DEPOT_STATUS_CONFIRM") |
| | | public class Fz61DepotStatusConfirm { |
| | | |
| | | public static String SORT_PROP = "fcqrdh"; |
| | | |
| | | /** |
| | | * 21yyyyMMdd+åä½é¡ºåºå· |
| | | * 21202405041234 |
| | | */ |
| | | @Id |
| | | @Column(name = "fcqrdh", length = 14) |
| | | @PropertyDef(label = "å°ä»ç¡®è®¤åå·", description = "æ ¹æ®ä¸å®çè§åçæ") |
| | | private String fcqrdh; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 50) |
| | | @PropertyDef(label = "åºåºç¼ç ") |
| | | private String deptId; |
| | | |
| | | @Column(name = "DEPOT_ID_", length = 28) |
| | | @PropertyDef(label = "è´§ä½ç¼ç ") |
| | | private String depotId; |
| | | |
| | | /*** ------------------------确认å
容-------------------------------------**/ |
| | | @Column(name = "fcrq") |
| | | @PropertyDef(label = "å°ä»æ¥æ", description = "yyyy-MM-dd") |
| | | private Date fcrq; |
| | | |
| | | @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 = "FOOD_LOCATION_ID_", length = 20) |
| | | @PropertyDef(label = "产å°å称代ç ") |
| | | private String foodLocationId; |
| | | |
| | | @Column(name = "FOOD_LOCATION_", length = 40) |
| | | @PropertyDef(label = "产å°åç§°") |
| | | private String foodLocation; |
| | | |
| | | @Column(name = "FOOD_YEAR_", length = 10) |
| | | @PropertyDef(label = "æ¶è´§å¹´åº¦") |
| | | private String foodYear; |
| | | |
| | | @Column(name = "COUNTRY_", length = 10) |
| | | @PropertyDef(label = "å½å«") |
| | | private String country; |
| | | |
| | | @Column(name = "STORE_KEEPER_NAME_", length = 64) |
| | | @PropertyDef(label = "ä¿ç®¡å", description = "䏿åç§°") |
| | | private String storeKeeperName; |
| | | |
| | | @Column(name = "fcsl") |
| | | @PropertyDef(label = "å°ä»æ°é", description = "ææå
¥åºä¿¡æ¯ä¸çåéä¹åï¼åä½KG") |
| | | private Double fcsl = 0.0; |
| | | |
| | | |
| | | /*** ------------------------å
Œ
±å段-------------------------------------**/ |
| | | |
| | | @Column(name = "APPLY_USER_", length = 50) |
| | | @PropertyDef(label = "ç³è¯·äºº") |
| | | private String applyUser; |
| | | |
| | | @Column(name = "DEPT_AUDIT_USER_", length = 50) |
| | | @PropertyDef(label = "é¨é¨å®¡æ ¸äºº") |
| | | private String deptAuditUser; |
| | | |
| | | @Column(name = "LEADER_AUDIT_USER_", length = 50) |
| | | @PropertyDef(label = "é¢å¯¼å®¡æ ¸äºº") |
| | | private String leaderAuditUser; |
| | | |
| | | // 夿³¨ |
| | | @Column(name = "REMARKS_", length = 200) |
| | | @PropertyDef(label = "夿³¨ä¿¡æ¯") |
| | | private String remarks; |
| | | |
| | | |
| | | @Column(name = "UPDATE_TIME_") |
| | | @PropertyDef(label = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import com.fzzy.async.fzzy30.entity.Depot; |
| | | 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: ç²®é£åºå管çï¼æ ¹æ®å½æ æ ç»æè¦æ±å建 |
| | | * @author: Andy |
| | | * @update-time: 2022/11/17 |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_DEPOT_STORE") |
| | | public class Fz61DepotStore implements Serializable { |
| | | |
| | | public static String SORT_PROP = "id"; |
| | | |
| | | @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 = 40) |
| | | @PropertyDef(label = "æå±åºåº") |
| | | private String deptId; |
| | | |
| | | @Column(name = "DEPOT_ID_", length = 50) |
| | | @PropertyDef(label = "æå±ä»åº") |
| | | private String depotId; |
| | | |
| | | @Column(name = "COUNTRY_", length = 10) |
| | | @PropertyDef(label = "å½å«") |
| | | private String country; |
| | | |
| | | @Column(name = "STORE_TYPE_", length = 6) |
| | | @PropertyDef(label = "å¨ç²®æ¹å¼", description = "1:æ£è£
å¨ç²® 2:å
è£
å¨ç²® 3:å´å
æ£å 9:å
¶ä»") |
| | | private String storeType; |
| | | |
| | | @Column(name = "MANAGE_TYPE_", length = 6) |
| | | @PropertyDef(label = "ç®¡çæ¹å¼", description = "01 ç´å¨02 代å¨03 ç§ä»04 å§æ") |
| | | private String manageType; |
| | | |
| | | @Column(name = "FOOD_TYPE_", length = 10) |
| | | @PropertyDef(label = "ç²®é£æ§è´¨") |
| | | private String foodType; |
| | | |
| | | @Column(name = "FOOD_VARIETY_", length = 10) |
| | | @PropertyDef(label = "ç²®é£åç§") |
| | | private String foodVariety; |
| | | |
| | | @Column(name = "FOOD_LEVEL_", length = 10) |
| | | @PropertyDef(label = "ç²®é£ç级") |
| | | private String foodLevel; |
| | | |
| | | @Column(name = "FOOD_LOCATION_ID_", length = 50) |
| | | @PropertyDef(label = "ç²®é£äº§å°") |
| | | private String foodLocationId; |
| | | |
| | | @Column(name = "FOOD_LOCATION_", length = 50) |
| | | @PropertyDef(label = "ç²®é£äº§å°") |
| | | private String foodLocation; |
| | | |
| | | @Column(name = "FOOD_YEAR_", length = 10) |
| | | @PropertyDef(label = "æ¶è´§å¹´åº¦") |
| | | private String foodYear; |
| | | |
| | | @Column(name = "DEPOT_STATUS_", length = 10) |
| | | @PropertyDef(label = "ä»åºç¶æ", description = "1=空ä»ã2=å
¥åºä¸ã3=满ä»ã4=åºåºä¸ã9=å
¶ä»") |
| | | private String depotStatus; |
| | | |
| | | @Column(name = "STORE_DATE_") |
| | | @PropertyDef(label = "å
¥åºæ¶é´", description = "å
¥åºæ¶é´ï¼ç¬¬ä¸è½¦ç²®é£å
¥ä»æ¶é´,æ ¼å¼ï¼yyyy-MM-dd HH:mm:ss") |
| | | private Date storeDate; |
| | | |
| | | @Column(name = "FULL_DATE_") |
| | | @PropertyDef(label = "å°ä»æ¥æ", description = "å½è´§ä½ï¼æ²¹ç½ï¼ç¶æä¸ºå°ä»æ¶ï¼æ¤é¡¹ä¸ºå¿
填项") |
| | | private Date fullDate; |
| | | |
| | | @Column(name = "OUT_DATE_") |
| | | @PropertyDef(label = "åºä»æ¶é´", description = "åºåºæ¶é´ï¼æåä¸è½¦ç²®é£åºä»å®ææ¶é´,æ ¼å¼ï¼yyyy-MM-dd HH:mm:ss") |
| | | private Date outDate; |
| | | |
| | | @Column(name = "STORAGE_REAL_") |
| | | @PropertyDef(label = "å®é
å¨é", description = "åä½ï¼KG") |
| | | private Double storageReal; |
| | | |
| | | @Column(name = "STORE_SETTLE__") |
| | | @PropertyDef(label = "计价æ°é", description = "åä½ï¼KG") |
| | | private Double storageSettle; |
| | | |
| | | @Column(name = "GRAIN_HEIGHT_") |
| | | @PropertyDef(label = "è£
粮线é«", description = "åä½ï¼ç±³") |
| | | private Double grainHeight; |
| | | |
| | | @Column(name = "GRAIN_VOLUME_") |
| | | @PropertyDef(label = "è£
ç²®ä½ç§¯", description = "åä½ï¼ç«æ¹ç±³") |
| | | private Double grainVolume; |
| | | |
| | | @Column(name = "REMARK_", length = 250) |
| | | @PropertyDef(label = "夿³¨", description = "夿³¨ä¿¡æ¯") |
| | | private String remark; |
| | | |
| | | @Column(name = "UPDATE_USER_", length = 50) |
| | | @PropertyDef(label = "ä¿®æ¹äºº") |
| | | private String updateUser; |
| | | |
| | | @PropertyDef(label = "ç²®æå½å±åä½ä»£ç ") |
| | | @Column(name = "lqgsdwdm", length = 18) |
| | | private String lqgsdwdm; |
| | | |
| | | |
| | | @Column(name = "UPDATE_DATE_") |
| | | @PropertyDef(label = "ä¿®æ¹æ¶é´") |
| | | private Date updateDate; |
| | | |
| | | @Column(name = "CREATE_DATE_") |
| | | private Date createDate; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_DEPT_DEVICE") |
| | | public class Fz61DeptDevice implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | public static String SORT_PROP = "sbbh"; |
| | | |
| | | @Id |
| | | @Column(name = "sbbh", length = 20) |
| | | @PropertyDef(label = "设å¤ç¼å·") |
| | | private String sbbh; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ", description = "") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 40) |
| | | @PropertyDef(label = "æå±åºåº") |
| | | private String deptId; |
| | | |
| | | @Column(name = "sbyqmc", length = 50) |
| | | @PropertyDef(label = "设å¤ä»ªå¨åç§°") |
| | | private String sbyqmc; |
| | | |
| | | @Column(name = "sbggxh", length = 50) |
| | | @PropertyDef(label = "设å¤è§æ ¼åå·") |
| | | private String sbggxh; |
| | | |
| | | @Column(name = "sccj", length = 256) |
| | | @PropertyDef(label = "ç产åå®¶") |
| | | private String sccj; |
| | | |
| | | @Column(name = "scrq") |
| | | @PropertyDef(label = "çäº§æ¥æ") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date scrq; |
| | | |
| | | @Column(name = "sbms", length = 50) |
| | | @PropertyDef(label = "è®¾å¤æè¿°") |
| | | private String sbms; |
| | | |
| | | @Column(name = "sbzt", length = 1) |
| | | @PropertyDef(label = "设å¤ç¶æ",description = "1 å®å¥½ 2 æ¥åº 3 å¾
æ£ä¿® 4 å
¶ä»") |
| | | private String sbzt; |
| | | |
| | | @Column(name = "jdsj") |
| | | @PropertyDef(label = "æ£å®æ¶é´") |
| | | private Date jdsj; |
| | | |
| | | @Column(name = "jddw", length = 256) |
| | | @PropertyDef(label = "æ£å®åä½") |
| | | private String jddw; |
| | | |
| | | @Column(name = "sbgly", length = 50) |
| | | @PropertyDef(label = "设å¤ç®¡çå") |
| | | private String sbgly; |
| | | |
| | | @Column(name = "UPDATE_TIME_") |
| | | @PropertyDef(label = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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; |
| | | |
| | | /** |
| | | * ç¯æµçè¸-è¯ååºå |
| | | * |
| | | * @ClassName: Fz61Drug |
| | | * @date 2023å¹´8æ17æ¥ |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_DRUG") |
| | | public class Fz61Drug implements Serializable { |
| | | |
| | | public static String SORT_PROP = "id"; |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 40) |
| | | @PropertyDef(label = "è¯åç¼å·", description = "éè´æ¥æ(yyyyMMdd)+ä¸ä½é¡ºåºå·") |
| | | private String id; |
| | | |
| | | @Id |
| | | @Column(name = "DEPT_ID_", length = 50) |
| | | @PropertyDef(label = "åºåºä»£ç ") |
| | | private String deptId; |
| | | |
| | | @Column(name = "cgrq") |
| | | @PropertyDef(label = "éè´æ¥æ") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date cgrq; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "NAME_", length = 50) |
| | | @PropertyDef(label = "è¯ååç§°") |
| | | private String name; |
| | | |
| | | @Column(name = "bzw", length = 1) |
| | | @PropertyDef(label = "å
è£
ç©", description = "1ï¼ç¶è£
ï¼2ï¼è¢è£
ï¼3ï¼å
¶ä»") |
| | | private String bzw; |
| | | |
| | | @Column(name = "ggxh", length = 256) |
| | | @PropertyDef(label = "åå·è§æ ¼", description = "å¦ï¼100mg/ç²æ10g/ç") |
| | | private String ggxh; |
| | | |
| | | @Column(name = "aqsysms", length = 1000) |
| | | @PropertyDef(label = "å®å
¨ä½¿ç¨è¯´æä¹¦") |
| | | private String aqsysms; |
| | | |
| | | @Column(name = "sccj", length = 40) |
| | | @PropertyDef(label = "ç产åå®¶") |
| | | private String sccj; |
| | | |
| | | @Column(name = "cgly", length = 40) |
| | | @PropertyDef(label = "éè´æ¥æº") |
| | | private String cgly; |
| | | |
| | | @Column(name = "cctj", length = 200) |
| | | @PropertyDef(label = "å卿¡ä»¶") |
| | | private String cctj; |
| | | |
| | | @Column(name = "ccdd", length = 1) |
| | | @PropertyDef(label = "å¨åå°ç¹", description = "1:è¯ååº,2:å
¶ä»") |
| | | private String ccdd; |
| | | |
| | | @Column(name = "bzwclfs", length = 1000) |
| | | @PropertyDef(label = "å
è£
ç©å¤çæ¹å¼") |
| | | private String bzwclfs; |
| | | |
| | | @Column(name = "czclfs", length = 1000) |
| | | @PropertyDef(label = "æ®æ¸£å¤çæ¹å¼") |
| | | private String czclfs; |
| | | |
| | | @Column(name = "bzq", length = 50) |
| | | @PropertyDef(label = "ä¿è´¨æ", description = "å å¹´ãå 个æç") |
| | | private String bzq; |
| | | |
| | | @Column(name = "COUNT_") |
| | | @PropertyDef(label = "åºåé") |
| | | private Double count = 0.0; |
| | | |
| | | @Column(name = "kcsldw", length = 1) |
| | | @PropertyDef(label = "åºåéåä½", description = "1(é»è®¤)ï¼å
¬æ¤ï¼2ï¼å
ï¼3ï¼æ¯«åï¼") |
| | | private String kcsldw = "1"; |
| | | |
| | | @PropertyDef(label = "æä½å") |
| | | @Column(name = "UPDATE_USER_", length = 30) |
| | | private String updateUser; |
| | | |
| | | @PropertyDef(label = "æ´æ°æ¶é´") |
| | | @Column(name = "UPDATE_TIME_") |
| | | private Date updateTime; |
| | | |
| | | @PropertyDef(label = "夿³¨") |
| | | @Column(name = "REMARKS_", length = 300) |
| | | private String remarks; |
| | | |
| | | @Column(name = "DEL_TAG_") |
| | | @PropertyDef(label = "å 餿 è®°ï¼å¨é¡µé¢å 餿¶å使ç¨") |
| | | private String delTag; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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; |
| | | |
| | | /** |
| | | * éä»¶ä¿¡æ¯ï¼ç³»ç»ææç±»åéä»¶å使ç¨è¯¥ç±» |
| | | * <p> |
| | | * å
¶ä¸å¾çä¿¡æ¯ï¼æ¯æç´æ¥ä¿åå°æ°æ®åºä¸ï¼ä½¿ç¨å段ï¼imgData |
| | | * <p> |
| | | * éä»¶ä¿¡æ¯å
¨é¨ä¿å卿å¡å¨ç¡¬çä¸ï¼ä¸åä¿åæ°æ®åº |
| | | * |
| | | * @author Andy |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_FILE") |
| | | public class Fz61FileInfo implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 86018008520229637L; |
| | | |
| | | @Id |
| | | @Column(name = "FILE_ID_", length = 40) |
| | | @PropertyDef(label = "éä»¶ID") |
| | | private String fileId; |
| | | |
| | | @PropertyDef(label = "ç»ç»ç¼å·") |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | private String companyId; |
| | | |
| | | @Column(name = "BIZ_ID_", length = 40) |
| | | @PropertyDef(label = "ä¸å¡ID") |
| | | private String bizId; |
| | | |
| | | @Column(name = "BIZ_TAG_", length = 20) |
| | | @PropertyDef(label = "ä¸å¡æ ç¾", description = "éä»¶å¨ç»å®ä¸å¡çæ¶åå¯è½éè¦å
¶ä»æ è¯åºå") |
| | | private String bizTag; |
| | | |
| | | @PropertyDef(label = "æä»¶åç§°") |
| | | @Column(name = "FILE_NAME_", length = 100) |
| | | private String fileName; |
| | | |
| | | @PropertyDef(label = "å建æ¶é´") |
| | | @Column(name = "CREATE_TIME_") |
| | | private Date createTime; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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: YYC |
| | | * @Description: |
| | | * @DateTime: 2025-9-17 15:07 |
| | | **/ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_INOUT_CONTRACT") |
| | | public class Fz61InoutContract implements Serializable { |
| | | |
| | | public static String SORT_PROP = "id"; |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 40) |
| | | @PropertyDef(label = "ID_") |
| | | 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 = "PLAN_ID_", length = 40) |
| | | @PropertyDef(label = "计åç¼ç ") |
| | | private String planId; |
| | | |
| | | @Column(name = "PLAN_NAME_", length = 50) |
| | | @PropertyDef(label = "计ååç§°") |
| | | private String planName; |
| | | |
| | | @Column(name = "TYPE_", length = 10) |
| | | @PropertyDef(label = "ä¸å¡ç±»å«", description = "1:éå®åå 2:éè´åå 3:代å¨åå") |
| | | private String type; |
| | | |
| | | @Column(name = "CUSTOMER_TYPE_", length = 10) |
| | | @PropertyDef(label = "客æ·ç±»å", description = "1:ä¼ä¸ 2:个人") |
| | | private String customerType; |
| | | |
| | | @Column(name = "YEAR_", length = 10) |
| | | @PropertyDef(label = "年份") |
| | | private String year; |
| | | |
| | | @Column(name = "CUSTOMER_ID_", length = 20) |
| | | @PropertyDef(label = "社ä¼ä¿¡ç¨ç ", description = "妿æ¯ä¼ä¸=客æ·ç»ä¸ç¤¾ä¼ä¿¡ç¨ä»£ç ") |
| | | private String customerId; |
| | | |
| | | @Column(name = "CUSTOMER_NAME_", length = 50) |
| | | @PropertyDef(label = "客æ·åç§°") |
| | | private String customerName; |
| | | |
| | | @Column(name = "fddbr", length = 50) |
| | | @PropertyDef(label = "æ³å®ä»£è¡¨äºº") |
| | | private String fddbr; |
| | | |
| | | @Column(name = "txdz", length = 200) |
| | | @PropertyDef(label = "é讯å°å") |
| | | private String txdz; |
| | | |
| | | @Column(name = "yzbm", length = 6) |
| | | @PropertyDef(label = "鮿¿ç¼ç ") |
| | | private String yzbm; |
| | | |
| | | @PropertyDef(label = "è系人å§å") |
| | | @Column(name = "lxrxm", length = 50) |
| | | private String lxrxm; |
| | | |
| | | @PropertyDef(label = "èç³»çµè¯") |
| | | @Column(name = "lxrdh", length = 20) |
| | | private String lxrdh; |
| | | |
| | | @PropertyDef(label = "身份è¯å·") |
| | | @Column(name = "sfzh", length = 20) |
| | | private String sfzh; |
| | | |
| | | @PropertyDef(label = "çµåä¿¡ç®±") |
| | | @Column(name = "dzyx", length = 50) |
| | | private String dzyx; |
| | | |
| | | @Column(name = "SIGNING_TIME_") |
| | | @PropertyDef(label = "ç¾è®¢æ¶é´", description = "æ ¼å¼ï¼yyyy-MM-dd") |
| | | private Date signingTime; |
| | | |
| | | @Column(name = "SIGN_ADDRESS_", length = 100) |
| | | @PropertyDef(label = "ç¾çº¦å°ç¹") |
| | | private String signAddress; |
| | | |
| | | @Column(name = "BEGIN_TIME_") |
| | | @PropertyDef(label = "约å®å¼å§æ¶é´") |
| | | private Date beginTime; |
| | | |
| | | @Column(name = "END_TIME_") |
| | | @PropertyDef(label = "约å®å®ææ¶é´") |
| | | private Date endTime; |
| | | |
| | | @Column(name = "REL_END_TIME_") |
| | | @PropertyDef(label = "å®é
宿æ¶é´") |
| | | private Date relEndTime; |
| | | |
| | | @Column(name = "FOOD_VARIETY_", length = 20) |
| | | @PropertyDef(label = "ç²®é£åç§") |
| | | private String foodVariety; |
| | | |
| | | @Column(name = "FOOD_TYPE_", length = 20) |
| | | @PropertyDef(label = "ç²®é£æ§è´¨") |
| | | private String foodType; |
| | | |
| | | @Column(name = "PRICE_") |
| | | @PropertyDef(label = "åååä»·ï¼å
/å¨") |
| | | private Double price; |
| | | |
| | | @Column(name = "MONEY_") |
| | | @PropertyDef(label = "ååæ»éé¢", description = "åä½ï¼å
") |
| | | private Double money; |
| | | |
| | | @Column(name = "CONTRACT_AMOUNT_") |
| | | @PropertyDef(label = "ååæ°é", description = "åä½ï¼å
¬æ¤") |
| | | private Double contactAmount; |
| | | |
| | | @Column(name = "COMPLETE_NUM_") |
| | | @PropertyDef(label = "履约æ°é", description = "åä½ï¼å
¬æ¤") |
| | | private Double completeNum; |
| | | |
| | | @Column(name = "lybzj") |
| | | @PropertyDef(label = "履约ä¿è¯é", description = "åä½ï¼å
") |
| | | private Double lybzj; |
| | | |
| | | @PropertyDef(label = "履约ç", description = "åä½ï¼%") |
| | | @Column(name = "lyl") |
| | | private Double lyl; |
| | | |
| | | @Column(name = "jsjg") |
| | | @PropertyDef(label = "ç»ç®ä»·æ ¼ï¼å
/å¨") |
| | | private Double jsjg; |
| | | |
| | | @PropertyDef(label = "ç»ç®æ»éé¢", description = "åä½ï¼å
") |
| | | @Column(name = "jszje") |
| | | private Double jszje; |
| | | |
| | | @PropertyDef(label = "ç»ç®ä¸ååä¸è´æ§", description = "1ï¼ç¬¦å 2ï¼ä¸ç¬¦å") |
| | | @Column(name = "jsyhtyzx", length = 1) |
| | | private String jsyhtyzx; |
| | | |
| | | @PropertyDef(label = "ä¸ä¸è´åå ") |
| | | @Column(name = "jsyhtbyzyy", length = 250) |
| | | private String jsyhtbyzyy; |
| | | |
| | | @Column(name = "CUSTOMER_BANK_", length = 10) |
| | | @PropertyDef(label = "客æ·å¼æ·è¡") |
| | | private String customerBank; |
| | | |
| | | @Column(name = "CUSTOMER_BANK_ACCOUNT_", length = 40) |
| | | @PropertyDef(label = "å®¢æ·æ¹è´¦å·") |
| | | private String customerBankAccount; |
| | | |
| | | @Column(name = "CUSTOMER_SIGN_USER_", length = 50) |
| | | @PropertyDef(label = "客æ·ç¾çº¦äºº") |
| | | private String customerSignUser; |
| | | |
| | | @Column(name = "BANK_", length = 50) |
| | | @PropertyDef(label = "æ¬æ¹å¼æ·è¡") |
| | | private String bank; |
| | | |
| | | @Column(name = "BANK_ACCOUNT_", length = 40) |
| | | @PropertyDef(label = "æ¬æ¹è´¦å·") |
| | | private String bankAccount; |
| | | |
| | | @Column(name = "SIGN_USER_", length = 50) |
| | | @PropertyDef(label = "æ¬æ¹ç¾çº¦äºº") |
| | | private String signUser; |
| | | |
| | | @Column(name = "PAY_TYPE_", length = 6) |
| | | @PropertyDef(label = "æ¯ä»æ¹å¼") |
| | | private String payType; |
| | | |
| | | @Column(name = "fkfs") |
| | | @PropertyDef(label = "仿¬¾æ¹å¼") |
| | | private Integer fkfs; |
| | | |
| | | @Column(name = "ysfs", length = 64) |
| | | @PropertyDef(label = "éªæ¶æ¹å¼") |
| | | private String ysfs; |
| | | /** |
| | | * --------审æ¹ä¿¡æ¯-------- |
| | | **/ |
| | | |
| | | @Column(name = "CREATE_USER_", length = 50) |
| | | @PropertyDef(label = "å建人") |
| | | private String createUser; |
| | | |
| | | @Column(name = "AUDIT_USER_", length = 50) |
| | | @PropertyDef(label = "审æ¹äºº") |
| | | private String auditUser; |
| | | |
| | | @Column(name = "AUDIT_DATE_") |
| | | @PropertyDef(label = "å®¡æ¹æ¶é´", description = "æ ¼å¼ï¼yyyy-MM-dd HH:mm:ss") |
| | | private Date auditDate; |
| | | |
| | | @Column(name = "AUDIT_STATUS_", length = 10) |
| | | @PropertyDef(label = "审æ¹ç¶æ") |
| | | private String auditStatus; |
| | | |
| | | @Column(name = "CREATE_TIME_") |
| | | @PropertyDef(label = "å建æ¶é´") |
| | | private Date createTime; |
| | | |
| | | @Column(name = "wcrq") |
| | | @PropertyDef(label = "宿æ¶é´") |
| | | private Date wcrq; |
| | | |
| | | @Column(name = "hqzz", length = 30) |
| | | @PropertyDef(label = "è´§æç»ç»") |
| | | private String hqzz; |
| | | |
| | | @Column(name = "UPDATE_TIME_") |
| | | @PropertyDef(label = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | |
| | | |
| | | /** |
| | | * --------éä»¶-------- |
| | | **/ |
| | | @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.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; |
| | | |
| | | /** |
| | | * åºå
¥åºå®¢æ·-徿¥åä½ä¿¡æ¯ 2023å¹´5æ26æ¥ æ ¹æ®æ°å½ç²®è§ä¼å |
| | | * |
| | | * @author czt |
| | | * @description çæ¬4.0åæ®µå·²å®¡ |
| | | * @date 2023-05-25 17:16 |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_INOUT_CUSTOMER") |
| | | public class Fz61InoutCustomer implements Serializable { |
| | | |
| | | public static String SORT_PROP = "id"; |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 40) |
| | | @PropertyDef(label = "主é®idç¼ç ", description = "ç³»ç»å
ç¼ç ") |
| | | 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 = 4) |
| | | @PropertyDef(label = "ä¸å¡åç±»", description = "ç³»ç»å
使ç¨ï¼æè´§åãä¾è´§å") |
| | | private String type; |
| | | |
| | | @Column(name = "khlx", length = 50) |
| | | @PropertyDef(label = "客æ·ç±»å", description = "1-ä¼ä¸ï¼2-个人") |
| | | private String khlx; |
| | | |
| | | @PropertyDef(label = "客æ·ç¼ç ï¼ä¼ä¸å®¢æ·å¡«åç»ä¸ç¤¾ä¼ä¿¡ç¨ä»£ç ï¼ä¸ªäººå®¢æ·å¡«å身份è¯å·") |
| | | @Column(name = "khbh", length = 18) |
| | | private String khbh; |
| | | |
| | | @Column(name = "NAME_", length = 50) |
| | | @PropertyDef(label = "客æ·åç§°") |
| | | private String name; |
| | | |
| | | @PropertyDef(label = "æ³å®ä»£è¡¨äºº") |
| | | @Column(name = "fddbr", length = 64) |
| | | private String fddbr; |
| | | |
| | | @Column(name = "ADDRESS_", length = 200) |
| | | @PropertyDef(label = "é讯å°å") |
| | | private String address; |
| | | |
| | | @PropertyDef(label = "鮿¿ç¼ç ") |
| | | @Column(name = "yzbm", length = 6) |
| | | private String yzbm; |
| | | |
| | | @Column(name = "CONTACT_USER_", length = 50) |
| | | @PropertyDef(label = "è系人") |
| | | private String contactUser; |
| | | |
| | | @Column(name = "PHONE_", length = 20) |
| | | @PropertyDef(label = "èç³»çµè¯") |
| | | private String phone; |
| | | |
| | | @Column(name = "CARD_ID_", length = 20) |
| | | @PropertyDef(label = "è系人身份è¯å·") |
| | | private String cardId; |
| | | |
| | | @PropertyDef(label = "çµåä¿¡ç®±") |
| | | @Column(name = "dzyx", length = 64) |
| | | private String dzyx; |
| | | |
| | | @Column(name = "BANK_", length = 50) |
| | | @PropertyDef(label = "弿·é¶è¡") |
| | | private String bank; |
| | | |
| | | @Column(name = "BANK_NUM_", length = 30) |
| | | @PropertyDef(label = "é¶è¡è´¦å·") |
| | | private String bankNum; |
| | | |
| | | @Column(name = "FOOD_AREA_", length = 30) |
| | | @PropertyDef(label = "ç§æ¤é¢ç§¯") |
| | | private Double foodArea = 0.0; |
| | | |
| | | @Column(name = "UPDATE_TIME_") |
| | | @PropertyDef(label = "æ°æ®æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 综å管ç-ææº¢ç®¡ç |
| | | * |
| | | * @author: andy.jia |
| | | * @description: |
| | | * @version: |
| | | * @data:2020å¹´5æ27æ¥ |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_INOUT_LOSS_OVER") |
| | | public class Fz61InoutLossOver implements Serializable { |
| | | |
| | | public static String SORT_PROP = "updateTime"; |
| | | |
| | | @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 = "SUBMIT_TIME_") |
| | | @PropertyDef(label = "ä¸å¡æ¥æ", description = "yyyy-MM-dd") |
| | | private Date submitTime; |
| | | |
| | | @Column(name = "TYPE_", length = 1) |
| | | @PropertyDef(label = "ç±»å", description = "1ï¼æèï¼2ï¼æå¤±ï¼3ï¼å
¶ä»") |
| | | private String type; |
| | | |
| | | @Column(name = "FOOD_VARIETY_", length = 10) |
| | | @PropertyDef(label = "ç²®é£åç§") |
| | | private String foodVariety; |
| | | |
| | | @Column(name = "FOOD_LEVEL_", length = 10) |
| | | @PropertyDef(label = "ç²®é£ç级") |
| | | private String foodLevel; |
| | | |
| | | @Column(name = "FOOD_TYPE_", length = 10) |
| | | @PropertyDef(label = "ç²®é£æ§è´¨") |
| | | private String foodType; |
| | | |
| | | @Column(name = "QUANTITY_ID1", length = 40) |
| | | @PropertyDef(label = "å
¥åºè´¨æ£", description = "æ°æ®ä»MQuantityä¸è·åï¼ä¸ä¸ªè´¨æ£æ¹æ¬¡") |
| | | private String quantity1; |
| | | |
| | | @PropertyDef(label = "å
¥åºåé", description = "åä½ï¼KG") |
| | | @Column(name = "rkjz", precision = 20, scale = 6) |
| | | private Double rkjz; |
| | | |
| | | @PropertyDef(label = "å
¥åºæ°é", description = "åä½ï¼KG") |
| | | @Column(name = "rksl", precision = 20, scale = 6) |
| | | private Double rksl; |
| | | |
| | | @JSONField(format = "yyyy-MM-dd HH:mm:ss") |
| | | @PropertyDef(label = "å
¥åºæ¶é´") |
| | | @Column(name = "rksj") |
| | | private Date rksj; |
| | | |
| | | @PropertyDef(label = "å
¥åºæ°´å(%)") |
| | | @Column(name = "rksf", precision = 20, scale = 6) |
| | | private Double rksf; |
| | | |
| | | @PropertyDef(label = "å
¥åºæè´¨(%)") |
| | | @Column(name = "rkzz", precision = 20, scale = 6) |
| | | private Double rkzz; |
| | | |
| | | @Column(name = "QUANTITY_ID2", length = 40) |
| | | @PropertyDef(label = "åºåºè´¨æ£", description = "æ°æ®ä»MQuantityä¸è·åï¼ä¸ä¸ªè´¨æ£æ¹æ¬¡") |
| | | private String quantity2; |
| | | |
| | | @Column(name = "ccsc") |
| | | @PropertyDef(label = "å¨åæ¶é¿", description = "åä½ï¼æ") |
| | | private Integer ccsc; |
| | | |
| | | @JSONField(format = "yyyy-MM-dd HH:mm:ss") |
| | | @PropertyDef(label = "åºåºæ¶é´") |
| | | @Column(name = "cksj") |
| | | private Date cksj; |
| | | |
| | | @PropertyDef(label = "åºåºåé", description = "åä½ï¼KG") |
| | | @Column(name = "ckjz", precision = 20, scale = 6) |
| | | private Double ckjz; |
| | | |
| | | @PropertyDef(label = "åºåºæ°´å(%)") |
| | | @Column(name = "cksf", precision = 16, scale = 6) |
| | | private Double cksf; |
| | | |
| | | @PropertyDef(label = "åºåºæè´¨(%)") |
| | | @Column(name = "ckzz", precision = 16, scale = 6) |
| | | private Double ckzz; |
| | | |
| | | @Column(name = "qzsfkl") |
| | | @PropertyDef(label = "æ°´ååé") |
| | | private Double qzsfkl; |
| | | |
| | | @Column(name = "qzzzkl") |
| | | @PropertyDef(label = "æè´¨åé") |
| | | private Double qzzzkl; |
| | | |
| | | @Column(name = "qzszkl") |
| | | @PropertyDef(label = "æ°´ææ»åé") |
| | | private Double qzszkl; |
| | | |
| | | @Column(name = "qzzrshde") |
| | | @PropertyDef(label = "ä¿ç®¡èªç¶æè") |
| | | private Double qzzrshde; |
| | | |
| | | @Column(name = "chsl") |
| | | @PropertyDef(label = "è¶
èæ°é") |
| | | private Double chsl; |
| | | |
| | | @Column(name = "AMOUNT_") |
| | | @PropertyDef(label = "æèé", description = "ææº¢æ°éKGï¼æèä¸ºæ£æ°ï¼æº¢ä½ä¸ºè´æ°") |
| | | private Double amount; |
| | | |
| | | @Column(name = "LOSS_PER_") |
| | | @PropertyDef(label = "æèç") |
| | | private Double lossPer; |
| | | |
| | | @PropertyDef(label = "æ¯å¦è¶
è") |
| | | @Column(name = "sfch") |
| | | private Integer sfch; |
| | | |
| | | @PropertyDef(label = "æçæ¯å¦æ£å¸¸", description = "0ï¼æ£å¸¸ 1ï¼ä¸æ£å¸¸") |
| | | @Column(name = "sysfzc", length = 1) |
| | | private String sysfzc; |
| | | |
| | | @PropertyDef(label = "ææº¢åå ") |
| | | @Column(name = "syyy", length = 400) |
| | | private String syyy; |
| | | |
| | | @PropertyDef(label = "åºæ¸
确认æ è¯") |
| | | @Column(name = "cqqrbs") |
| | | private Integer cqqrbs; |
| | | |
| | | @Column(name = "cqqrsj") |
| | | @PropertyDef(label = "åºæ¸
确认æ¶é´") |
| | | private Date cqqrsj; |
| | | |
| | | @PropertyDef(label = "ä»å¨å®¡æ ¸äºº") |
| | | @Column(name = "ccshr", length = 64) |
| | | private String ccshr; |
| | | |
| | | @Column(name = "AUDIT_CCSH_", length = 10) |
| | | @PropertyDef(label = "审æ¹ç¶æ") |
| | | private String auditCcsh; |
| | | |
| | | @Column(name = "INFO_CCSH_", length = 200) |
| | | @PropertyDef(label = "å®¡æ ¸è¯´æ") |
| | | private String InfoCcsh; |
| | | |
| | | @PropertyDef(label = "è´¨æ£å®¡æ ¸äºº") |
| | | @Column(name = "zjshr", length = 64) |
| | | private String zjshr; |
| | | |
| | | @Column(name = "AUDIT_ZJSH_", length = 10) |
| | | @PropertyDef(label = "审æ¹ç¶æ") |
| | | private String auditZjsh; |
| | | |
| | | @Column(name = "INFO_ZJSH_", length = 200) |
| | | @PropertyDef(label = "å®¡æ ¸è¯´æ") |
| | | private String infoZjsh; |
| | | |
| | | @PropertyDef(label = "ç»è®¡å®¡æ ¸äºº") |
| | | @Column(name = "tjshr", length = 64) |
| | | private String tjshr; |
| | | |
| | | @Column(name = "AUDIT_TJSH_", length = 10) |
| | | @PropertyDef(label = "审æ¹ç¶æ") |
| | | private String auditTjsh; |
| | | |
| | | @Column(name = "INFO_TJSH_", length = 200) |
| | | @PropertyDef(label = "å®¡æ ¸è¯´æ") |
| | | private String infoTjsh; |
| | | |
| | | @PropertyDef(label = "ä¼è®¡å®¡æ ¸äºº") |
| | | @Column(name = "kjshr", length = 64) |
| | | private String kjshr; |
| | | |
| | | @Column(name = "AUDIT_KJSH_", length = 10) |
| | | @PropertyDef(label = "审æ¹ç¶æ") |
| | | private String auditKjsh; |
| | | |
| | | @Column(name = "INFO_KJSH_", length = 200) |
| | | @PropertyDef(label = "å®¡æ ¸è¯´æ") |
| | | private String infoKjsh; |
| | | |
| | | @PropertyDef(label = "é¢å¯¼å®¡æ ¸äºº") |
| | | @Column(name = "ldshr", length = 64) |
| | | private String ldshr; |
| | | |
| | | @Column(name = "AUDIT_LDSH_", length = 10) |
| | | @PropertyDef(label = "审æ¹ç¶æ", description = "æç»å®¡æ ¸ç¶æä»¥é¢å¯¼å®¡æ ¸ä¸ºå") |
| | | private String auditLdsh; |
| | | |
| | | @Column(name = "INFO_LDSH_", length = 200) |
| | | @PropertyDef(label = "å®¡æ ¸è¯´æ") |
| | | private String infoLdsh; |
| | | |
| | | @Column(name = "REMARK_", length = 300) |
| | | @PropertyDef(label = "夿³¨") |
| | | private String remark; |
| | | |
| | | @Column(name = "UPDATE_TIME_") |
| | | @PropertyDef(label = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | |
| | | @Column(name = "UPDATE_USER_", length = 50) |
| | | @PropertyDef(label = "æ´æ°äºº") |
| | | private String updateUser; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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; |
| | | |
| | | /** |
| | | * åºå
¥åº-å
¥åºéç¥åï¼2023å¹´5æ26æ¥ ä¼åè°æ´ |
| | | * |
| | | * @author czt |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_INOUT_NOTICE_IN") |
| | | public class Fz61InoutNoticeIn implements Serializable { |
| | | |
| | | public static String SORT_PROP = "id"; |
| | | |
| | | @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 = 50) |
| | | @PropertyDef(label = "åºåºç¼ç ") |
| | | private String deptId; |
| | | |
| | | @Column(name = "NAME_", length = 50) |
| | | @PropertyDef(label = "éç¥ååç§°") |
| | | private String name; |
| | | |
| | | @Column(name = "PLAN_ID_", length = 40) |
| | | @PropertyDef(label = "计åæç»å·", description = "é对轮æ¢ç²®é£å¿
å¡«") |
| | | private String planId; |
| | | |
| | | @Column(name = "PLAN_NAME_", length = 40) |
| | | @PropertyDef(label = "计åç¼ç ", description = "é对轮æ¢ç²®é£å¿
å¡«") |
| | | private String planName; |
| | | |
| | | @Column(name = "CONTRACT_ID_", length = 40) |
| | | @PropertyDef(label = "ååç¼ç ", description = "é对轮æ¢ç²®é£å¿
å¡«") |
| | | private String contractId; |
| | | |
| | | @Column(name = "CONTRACT_NAME_", length = 50) |
| | | @PropertyDef(label = "åååç§°", description = "é对轮æ¢ç²®é£å¿
å¡«") |
| | | private String contractName; |
| | | |
| | | @Column(name = "DEPOT_ID_", length = 50) |
| | | @PropertyDef(label = "ç®æ ä»åº") |
| | | private String depotId; |
| | | |
| | | @Column(name = "CUSTOMER_ID_", length = 40) |
| | | @PropertyDef(label = "å货客æ·") |
| | | private String customerId; |
| | | |
| | | @Column(name = "CUSTOMER_NAME_", length = 50) |
| | | @PropertyDef(label = "å货客æ·") |
| | | private String customerName; |
| | | |
| | | @Column(name = "UNIT_NAME_", length = 50) |
| | | @PropertyDef(label = "æ¶è´§åä½", description = "åºåºæå±å
¬å¸ï¼æå¨å½å
¥") |
| | | private String unitName; |
| | | |
| | | @Column(name = "FOOD_VARIETY_", length = 10) |
| | | @PropertyDef(label = "ç²®é£åç§") |
| | | private String foodVariety; |
| | | |
| | | @Column(name = "YEAR_", length = 10) |
| | | @PropertyDef(label = "年份") |
| | | private String year; |
| | | |
| | | @Column(name = "TARGET_NUMBER_") |
| | | @PropertyDef(label = "ç®æ æ°é", description = "åä½ï¼å¨ï¼æå¨å¡«æ¥") |
| | | private Double targetNumber = 0.0; |
| | | |
| | | @Column(name = "COMPLETE_NUMBER_") |
| | | @PropertyDef(label = "宿æ°é", description = "åä½ï¼å¨ï¼ç³»ç»èªå¨å计") |
| | | private Double completeNumber = 0.0; |
| | | |
| | | @Column(name = "AUDIT_STATUS_", length = 10) |
| | | @PropertyDef(label = "å®¡æ ¸ç¶æ", description = "ä¸ºå®¡æ ¸ï¼å®¡æ ¸éè¿ï¼ææ¥") |
| | | private String auditStatus; |
| | | |
| | | @Column(name = "AUDIT_USER_", length = 50) |
| | | @PropertyDef(label = "å®¡æ ¸äºº") |
| | | private String auditUser; |
| | | |
| | | @Column(name = "AUDIT_DATE_") |
| | | @PropertyDef(label = "å®¡æ¹æ¶é´", description = "æ ¼å¼ï¼yyyy-MM-dd HH:mm:ss") |
| | | private String auditDate; |
| | | |
| | | @Column(name = "COMPLETE_STATUS_", length = 10) |
| | | @PropertyDef(label = "å®æç¶æ", description = "æªå®æï¼å·²å®æ") |
| | | private String completeStatus; |
| | | |
| | | @Column(name = "COMPLETE_TIME_") |
| | | @PropertyDef(label = "宿æ¶é´") |
| | | private Date completeTime; |
| | | |
| | | @Column(name = "CREATE_TIME_") |
| | | @PropertyDef(label = "å建æ¶é´") |
| | | private Date createTime = new Date(); |
| | | |
| | | @Column(name = "CREATE_USER_", length = 50) |
| | | @PropertyDef(label = "å建人") |
| | | private String createUser; |
| | | |
| | | @Column(name = "REMARK_", length = 200) |
| | | @PropertyDef(label = "夿³¨ä¿¡æ¯") |
| | | private String remark; |
| | | |
| | | @Column(name = "TYPE_", length = 2) |
| | | @PropertyDef(label = "ä¸å¡è¯´æ", description = "è½®æ¢ç²®é£ï¼éè½®æ¢ç²®ï¼å¦æä¸ºè½®æ¢ç²®é£ï¼è®¡åæç»åååå¿
å¡«") |
| | | private String type; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "æ è®°", description = "ç¨äºå¤æéç¥åæ¯å¦ä¸ºæ°å¢") |
| | | private String tag; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "ä»åºåç§°") |
| | | private String depotName = ""; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "ç²®é£åç§") |
| | | private String foodVarietyName; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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; |
| | | |
| | | /** |
| | | * åºå
¥åº-åºåºéç¥åï¼æ ¹æ®æ°å½æ å·²æ ¸å¯¹ 2023å¹´5æ26æ¥ 09:35:23 |
| | | * |
| | | * @author czt |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_INOUT_NOTICE_OUT") |
| | | public class Fz61InoutNoticeOut implements Serializable { |
| | | |
| | | public static String SORT_PROP = "id"; |
| | | |
| | | @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 = 50) |
| | | @PropertyDef(label = "åºåºç¼ç ") |
| | | private String deptId; |
| | | |
| | | @Column(name = "NAME_", length = 50) |
| | | @PropertyDef(label = "éç¥ååç§°") |
| | | private String name; |
| | | |
| | | @Column(name = "PLAN_ID_", length = 40) |
| | | @PropertyDef(label = "计åæç»å·", description = "é对轮æ¢ç²®é£å¿
å¡«") |
| | | private String planId; |
| | | |
| | | @Column(name = "CONTRACT_ID_", length = 40) |
| | | @PropertyDef(label = "ååç¼ç ", description = "é对轮æ¢ç²®é£å¿
å¡«") |
| | | private String contractId; |
| | | |
| | | @Column(name = "CONTRACT_NAME_", length = 50) |
| | | @PropertyDef(label = "åååç§°", description = "é对轮æ¢ç²®é£å¿
å¡«") |
| | | private String contractName; |
| | | |
| | | @Column(name = "PLAN_NAME_", length = 50) |
| | | @PropertyDef(label = "计ååç§°") |
| | | private String planName; |
| | | |
| | | @Column(name = "DEPOT_ID_", length = 50) |
| | | @PropertyDef(label = "ç®æ ä»åº") |
| | | private String depotId; |
| | | |
| | | @Column(name = "CUSTOMER_ID_", length = 40) |
| | | @PropertyDef(label = "å货客æ·") |
| | | private String customerId; |
| | | |
| | | @Column(name = "CUSTOMER_NAME_", length = 50) |
| | | @PropertyDef(label = "å货客æ·") |
| | | private String customerName; |
| | | |
| | | @Column(name = "UNIT_NAME_", length = 50) |
| | | @PropertyDef(label = "æ¶è´§åä½", description = "åºåºæå±å
¬å¸ï¼æå¨å½å
¥") |
| | | private String unitName; |
| | | |
| | | @Column(name = "FOOD_VARIETY_", length = 10) |
| | | @PropertyDef(label = "ç²®é£åç§") |
| | | private String foodVariety; |
| | | |
| | | @Column(name = "YEAR_", length = 10) |
| | | @PropertyDef(label = "年份") |
| | | private String year; |
| | | |
| | | @Column(name = "TARGET_NUMBER_") |
| | | @PropertyDef(label = "ç®æ æ°é", description = "åä½ï¼KGï¼æå¨å¡«æ¥") |
| | | private Double targetNumber = 0.0; |
| | | |
| | | @Column(name = "COMPLETE_NUMBER_") |
| | | @PropertyDef(label = "宿æ°é", description = "åä½ï¼KGï¼ç³»ç»èªå¨å计") |
| | | private Double completeNumber = 0.0; |
| | | |
| | | @Column(name = "AUDIT_STATUS_", length = 10) |
| | | @PropertyDef(label = "å®¡æ ¸ç¶æ", description = "ä¸ºå®¡æ ¸ï¼å®¡æ ¸éè¿ï¼ææ¥") |
| | | private String auditStatus; |
| | | |
| | | @Column(name = "AUDIT_USER_", length = 50) |
| | | @PropertyDef(label = "å®¡æ ¸äºº") |
| | | private String auditUser; |
| | | |
| | | @Column(name = "AUDIT_DATE_") |
| | | @PropertyDef(label = "å®¡æ¹æ¶é´", description = "æ ¼å¼ï¼yyyy-MM-dd HH:mm:ss") |
| | | private String auditDate; |
| | | |
| | | @Column(name = "COMPLETE_STATUS_", length = 10) |
| | | @PropertyDef(label = "å®æç¶æ", description = "æªå®æï¼å·²å®æ") |
| | | private String completeStatus; |
| | | |
| | | @Column(name = "COMPLETE_TIME_") |
| | | @PropertyDef(label = "宿æ¶é´") |
| | | private Date completeTime; |
| | | |
| | | @Column(name = "CREATE_TIME_") |
| | | @PropertyDef(label = "å建æ¶é´") |
| | | private Date createTime = new Date(); |
| | | |
| | | @Column(name = "CREATE_USER_", length = 50) |
| | | @PropertyDef(label = "å建人") |
| | | private String createUser; |
| | | |
| | | @Column(name = "REMARK_", length = 200) |
| | | @PropertyDef(label = "夿³¨ä¿¡æ¯") |
| | | private String remark; |
| | | |
| | | @Column(name = "TYPE_", length = 2) |
| | | @PropertyDef(label = "ä¸å¡è¯´æ", description = "è½®æ¢ç²®é£ï¼éè½®æ¢ç²®ï¼å¦æä¸ºè½®æ¢ç²®é£ï¼è®¡åæç»åååå¿
å¡«") |
| | | private String type; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "æ è®°", description = "ç¨äºå¤æéç¥åæ¯å¦ä¸ºæ°å¢") |
| | | private String tag; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "ä»åºåç§°") |
| | | private String depotName = ""; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "ç²®é£åç§") |
| | | private String foodVarietyName; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.util.Date; |
| | | |
| | | /** |
| | | * @Desc: åºå
¥åºæµæ°´è¡¨ï¼æ ¹æ®æ°å½ç²®è§è°æ´ä¼ååæ®µï¼2023å¹´5æ26æ¥ æ ¹æ®æ°å½ç²®è§ä¼å |
| | | * @author: Andy |
| | | * @update-time: 2023/5/26 |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_INOUT_RECORD") |
| | | public class Fz61InoutRecord { |
| | | |
| | | public static String SORT_PROP = "id"; |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 40) |
| | | @PropertyDef(label = "æµæ°´å·", description = "æ ¹æ®ä¸å®çè§åçæ") |
| | | private String id; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 50) |
| | | @PropertyDef(label = "åºåºç¼ç ") |
| | | private String deptId; |
| | | |
| | | @Column(name = "NOTICE_ID_", length = 40) |
| | | @PropertyDef(label = "éç¥åç¼ç ") |
| | | private String noticeId; |
| | | |
| | | @Column(name = "DEPOT_ID_", length = 50) |
| | | @PropertyDef(label = "è£
å¸ä»åº") |
| | | private String depotId; |
| | | |
| | | @Column(name = "TYPE_", length = 10) |
| | | @PropertyDef(label = "åºå
¥åºç±»å", description = "IN=å
¥åºï¼OUT=åºåº") |
| | | private String type; |
| | | |
| | | @Column(name = "PROGRESS_", length = 20) |
| | | @PropertyDef(label = "æµç¨è¿åº¦") |
| | | private String progress; |
| | | |
| | | @Column(name = "RECORD_STATUS_", length = 10) |
| | | @PropertyDef(label = "æ°æ®ç¶æ", description = "æ°æ®ç¶æï¼æ£å¸¸ï¼å¼å¸¸ï¼2å°æ¶å
éå¤åºå
¥åºçï¼ï¼è¡¥å½") |
| | | private String recordStatus; |
| | | |
| | | @Column(name = "CUSTOMER_NAME_", length = 50) |
| | | @PropertyDef(label = "徿¥åä½", description = "å
³èéç¥åè·å") |
| | | private String customerName; |
| | | |
| | | @Column(name = "INTEL_CARD_", length = 20) |
| | | @PropertyDef(label = "æºæ
§å¡å·") |
| | | private String intelCard; |
| | | |
| | | /*** ------------------------ç»è®°-------------------------------------**/ |
| | | @Column(name = "REGISTER_TIME_") |
| | | @PropertyDef(label = "ç»è®°æ¶é´") |
| | | private Date registerTime; |
| | | |
| | | @Column(name = "REGISTER_USER_", length = 50) |
| | | @PropertyDef(label = "ç»è®°äºº") |
| | | private String registerUser; |
| | | |
| | | @Column(name = "USER_NAME_", length = 40) |
| | | @PropertyDef(label = "æ¿è¿äºº") |
| | | private String userName; |
| | | |
| | | @Column(name = "USER_CONTACT_", length = 20) |
| | | @PropertyDef(label = "èç³»æ¹å¼") |
| | | private String userContact; |
| | | |
| | | @Column(name = "USER_ID_", length = 20) |
| | | @PropertyDef(label = "身份è¯å·") |
| | | private String userId; |
| | | |
| | | @Column(name = "USER_ADDRESS_", length = 100) |
| | | @PropertyDef(label = "æ¿è¿äººå°å") |
| | | private String userAddress; |
| | | |
| | | @Column(name = "USER_BIRTHDAY_") |
| | | @PropertyDef(label = "åºçæ¥æ") |
| | | private Date userBirthday; |
| | | |
| | | @Column(name = "USER_SEX_", length = 10) |
| | | @PropertyDef(label = "æ§å«") |
| | | private String userSex; |
| | | |
| | | @Column(name = "USER_NATION_", length = 10) |
| | | @PropertyDef(label = "æ°æ") |
| | | private String userNation; |
| | | |
| | | @Column(name = "PLATE_NUM_", length = 20) |
| | | @PropertyDef(label = "车è¹å·", description = "车çå·+æ è¯ç¬¦") |
| | | private String plateNum; |
| | | |
| | | @Column(name = "TRANS_TYPE_", length = 6) |
| | | @PropertyDef(label = "è¿è¾å·¥å
·") |
| | | private String transType; |
| | | |
| | | |
| | | /*** ------------------------ç²®é£åºç¡ä¿¡æ¯-------------------------------------**/ |
| | | @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_LOCATION_ID_", length = 20) |
| | | @PropertyDef(label = "产å°å称代ç ") |
| | | private String foodLocationId; |
| | | |
| | | @Column(name = "FOOD_LOCATION_", length = 40) |
| | | @PropertyDef(label = "产å°åç§°") |
| | | private String foodLocation; |
| | | |
| | | @Column(name = "FOOD_YEAR_", length = 10) |
| | | @PropertyDef(label = "æ¶è´§å¹´åº¦") |
| | | private String foodYear; |
| | | |
| | | /*** ------------------------æ¦æ ·è´¨æ£ä¿¡æ¯-------------------------------------**/ |
| | | @Column(name = "FOOD_LEVEL_", length = 20) |
| | | @PropertyDef(label = "ç²®é£å®ç") |
| | | private String foodLevel; |
| | | |
| | | @Column(name = "CHECK_STATUS_", length = 10) |
| | | @PropertyDef(label = "è´¨æ£ç»æ") |
| | | private String checkStatus; |
| | | |
| | | @Column(name = "CHECK_USER_", length = 50) |
| | | @PropertyDef(label = "è´¨æ£äºº") |
| | | private String checkUser; |
| | | |
| | | @Column(name = "CHECK_TIME_") |
| | | @PropertyDef(label = "è´¨æ£æ¶é´") |
| | | private Date checkTime; |
| | | |
| | | @Column(name = "SAMPLE_USER_", length = 50) |
| | | @PropertyDef(label = "æ¦æ ·äºº") |
| | | private String sampleUser; |
| | | |
| | | @Column(name = "SAMPLE_TIME_") |
| | | @PropertyDef(label = "æ¦æ ·æ¶é´") |
| | | private Date sampleTime; |
| | | |
| | | @Column(name = "SAMPLE_TYPE_", length = 1) |
| | | @PropertyDef(label = "æ¦æ ·æ¹å¼", description = "0-人工ï¼1=èªå¨ï¼2=æºè½éæº") |
| | | private String sampleType; |
| | | |
| | | @Column(name = "CHECK_ID_", length = 12) |
| | | @PropertyDef(label = "è´¨æ£åå·") |
| | | private String checkId; |
| | | |
| | | @Column(name = "DE_CHECK_") |
| | | @PropertyDef(label = "è´¨æ£æ£é", description = "åä½KG") |
| | | private double deCheck = 0.0; |
| | | |
| | | @Column(name = "ADD_CHECK_") |
| | | @PropertyDef(label = "è´¨æ£å¢é", description = "åä½KG") |
| | | private double addCheck = 0.0; |
| | | |
| | | /*** ------------------------ç§°éç¯è-------------------------------------**/ |
| | | |
| | | @Column(name = "jjlx", length = 2) |
| | | @PropertyDef(label = "æ£æ¤ç±»å", description = "0ï¼ç§°éå
¥åº 1ï¼æ åå
å
¥åº é»è®¤ä¸ºç§°éå
¥åºï¼æ åå
å
¥åºç¸å
³å段å¯ä¸ºç©º") |
| | | private String jjlx = "0"; |
| | | |
| | | @Column(name = "FULL_WEIGHT_") |
| | | @PropertyDef(label = "满车称é", description = "å
¥åºæ¶åè¡¨ç¤ºç¬¬ä¸æ¬¡ç§°éï¼åºåºæ¶åè¡¨ç¤ºç¬¬äºæ¬¡ç§°éï¼åä½KG") |
| | | private Double fullWeight = 0.0; |
| | | |
| | | @Column(name = "FULL_WEIGHT_TIME_") |
| | | @PropertyDef(label = "æ»¡è½¦ç§°éæ¶é´") |
| | | private Date fullWeightTime; |
| | | |
| | | @Column(name = "FULL_WEIGHT_USER_", length = 40) |
| | | @PropertyDef(label = "满车称é人") |
| | | private String fullWeightUser; |
| | | |
| | | @Column(name = "EMPTY_WEIGHT_") |
| | | @PropertyDef(label = "空车称é", description = "å
¥åºæ¶è¡¨ç¤ºç¬¬äºæ¬¡ç§°éï¼åºåºæ¶åè¡¨ç¤ºç¬¬ä¸æ¬¡ç§°éï¼åä½KG") |
| | | private Double emptyWeight = 0.0; |
| | | |
| | | @Column(name = "EMPTY_WEIGHT_TIME_") |
| | | @PropertyDef(label = "ç©ºè½¦ç§°éæ¶é´") |
| | | private Date emptyWeightTime; |
| | | |
| | | @Column(name = "EMPTY_WEIGHT_USER_", length = 50) |
| | | @PropertyDef(label = "空车称é人") |
| | | private String emptyWeightUser; |
| | | |
| | | @Column(name = "NET_WEIGHT_") |
| | | @PropertyDef(label = "忝é", description = "åä½KGï¼çäºæ»¡è½¦ - 空车") |
| | | private double netWeight = 0.0; |
| | | |
| | | @Column(name = "DE_HANDLE_") |
| | | @PropertyDef(label = "ç°åºæ£é", description = "åä½KG") |
| | | private double deHandle = 0.0; |
| | | |
| | | @Column(name = "DE_PACKAGE_") |
| | | @PropertyDef(label = "å
è£
æ£é", description = "åä½KG") |
| | | private double dePackage = 0.0; |
| | | |
| | | @Column(name = "DE_OTHER_") |
| | | @PropertyDef(label = "å
¶ä»æ£é", description = "åä½KG") |
| | | private double deOther = 0.0; |
| | | |
| | | @Column(name = "DE_OTHER_INTO_", length = 200) |
| | | @PropertyDef(label = "å
¶ä»æ£éåå ") |
| | | private String deOtherInfo; |
| | | |
| | | @Column(name = "SETTLE_WEIGHT_") |
| | | @PropertyDef(label = "ç»ç®éé", description = "æ£éååéï¼ç»ç®åéï¼åä½KG") |
| | | private Double settleWeight = 0.0; |
| | | |
| | | @Column(name = "RECORD_WEIGHT_") |
| | | @PropertyDef(label = "å
¥åºéé", description = "æ£éååéï¼ç»ç®åéï¼è¡¥å
æ¬å¢éï¼åä½KG") |
| | | private Double recordWeight = 0.0; |
| | | |
| | | |
| | | /** |
| | | * -----------ç»ç®ä¿¡æ¯----------------------- |
| | | **/ |
| | | @Column(name = "PRICE_") |
| | | @PropertyDef(label = "åä»·", description = "åä½ï¼å
/å
¬æ¤ï¼å®é
ç»ç®ä»·æ ¼ä»¥ç»ç®åä¸å价为å") |
| | | private Double price = 0.0; |
| | | |
| | | @Column(name = "SETTLE_MONEY_") |
| | | @PropertyDef(label = "ç»ç®éé¢", description = "åä½ï¼å
ï¼å®é
ç»ç®ä»¥è®¡ç®å为å") |
| | | private Double settleMoney = 0.00; |
| | | |
| | | @Column(name = "SETTLE_ID_", length = 50) |
| | | @PropertyDef(label = "ç»ç®åå·", description = "妿æ¯å车ç»ç®å¿
å¡«") |
| | | private String settleId; |
| | | |
| | | @Column(name = "SETTLE_TAG_", length = 2) |
| | | @PropertyDef(label = "ç»ç®æ ç¾") |
| | | private String settleTag; |
| | | |
| | | /** |
| | | * ----------- å¼ä»ä¿¡æ¯----------------------- |
| | | **/ |
| | | @Column(name = "HANDLE_USER_", length = 40) |
| | | @PropertyDef(label = "å¼ä»æä½äºº") |
| | | private String handleUser; |
| | | |
| | | // åºåº |
| | | @Column(name = "COMPLETE_TIME_") |
| | | @PropertyDef(label = "宿æ¶é´") |
| | | private Date completeTime; |
| | | |
| | | @Column(name = "COMPLETE_USER_", length = 40) |
| | | @PropertyDef(label = "å®æç¡®è®¤äºº") |
| | | private String completeUser; |
| | | |
| | | // 夿³¨ |
| | | @Column(name = "REMARKS_", length = 200) |
| | | @PropertyDef(label = "夿³¨ä¿¡æ¯") |
| | | private String remarks; |
| | | |
| | | /** |
| | | * ----------- å¼ä»æ¶é´ï¼ææºç«¯ä½¿ç¨----------------------- |
| | | **/ |
| | | @Column(name = "HANDLE_START_") |
| | | @PropertyDef(label = "å¼ä»å¼å§æ¶é´") |
| | | private Date handleStart; |
| | | |
| | | @Column(name = "HANDLE_END_") |
| | | @PropertyDef(label = "å¼ä»ç»ææ¶é´") |
| | | private Date handleEnd; |
| | | |
| | | /** |
| | | * ----------- å
¶ä»ä¿¡æ¯ï¼éå¯¹æ£æ¤ç±»åæ åå
å
¥åºå¡«å----------------------- |
| | | **/ |
| | | @Column(name = "bzw", length = 2) |
| | | @PropertyDef(label = "å
è£
ç©", description = "1ï¼éº»è¢2ï¼ç¼ç»è¢3ï¼æ£è£
9ï¼å
¶ä»") |
| | | private String bzw; |
| | | |
| | | @Column(name = "dbz") |
| | | @PropertyDef(label = "åå
é", description = "åä½ï¼å
¬æ¤") |
| | | private Double dbz; |
| | | |
| | | @Column(name = "bzbjs") |
| | | @PropertyDef(label = "å
ä»¶æ°", description = "åä½ï¼ä»¶") |
| | | private int bzbjs; |
| | | |
| | | @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.Column; |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * åºå
¥åºæµæ°´å表 |
| | | * @author |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_INOUT_RECORD_ITEM") |
| | | public class Fz61InoutRecordItem { |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 40) |
| | | @PropertyDef(label = "主é®id", description = "æ ¹æ®ä¸å®çè§åçæ") |
| | | private String id; |
| | | |
| | | @Column(name = "RECORD_ID_", length = 40) |
| | | @PropertyDef(label = "æµæ°´Id") |
| | | private String recordId; |
| | | |
| | | @Column(name = "DEPOT_ID_", length = 50) |
| | | @PropertyDef(label = "è£
å¸ä»åº") |
| | | private String depotId; |
| | | |
| | | @Column(name = "CAR_NUM_", length = 20) |
| | | @PropertyDef(label = "è¹è¿è½¦è¾åºå·") |
| | | private String carNum; |
| | | |
| | | @Column(name = "CAR_NAME_", length = 20) |
| | | @PropertyDef(label = "è¹è¿è½¦è¾åç§°") |
| | | private String carName; |
| | | |
| | | @Column(name = "TYPE_", length = 10) |
| | | @PropertyDef(label = "åºå
¥åºç±»å", description = "åºåºï¼å
¥åº") |
| | | private String type; |
| | | |
| | | @Column(name = "PROGRESS_", length = 20) |
| | | @PropertyDef(label = "æµç¨è¿åº¦") |
| | | private String progress; |
| | | |
| | | @Column(name = "RECORD_STATUS_", length = 10) |
| | | @PropertyDef(label = "æ°æ®ç¶æ", description = "æ°æ®ç¶æï¼æ£å¸¸ï¼å¼å¸¸ï¼2å°æ¶å
éå¤åºå
¥åºçï¼ï¼è¡¥å½") |
| | | private String recordStatus; |
| | | |
| | | @Column(name = "DE_") |
| | | @PropertyDef(label = "æ£é", description = "åä½KG") |
| | | private Double de = 0.0; |
| | | |
| | | @Column(name = "FULL_WEIGHT_") |
| | | @PropertyDef(label = "满车称é", description = "å
¥åºæ¶åè¡¨ç¤ºç¬¬ä¸æ¬¡ç§°éï¼åºåºæ¶åè¡¨ç¤ºç¬¬äºæ¬¡ç§°éï¼åä½KG") |
| | | private Double fullWeight = 0.0; |
| | | |
| | | @Column(name = "FULL_WEIGHT_TIME_") |
| | | @PropertyDef(label = "æ»¡è½¦ç§°éæ¶é´") |
| | | private Date fullWeightTime; |
| | | |
| | | @Column(name = "FULL_WEIGHT_USER_", length = 40) |
| | | @PropertyDef(label = "满车称é人") |
| | | private String fullWeightUser; |
| | | |
| | | @Column(name = "EMPTY_WEIGHT_") |
| | | @PropertyDef(label = "空车称é", description = "å
¥åºæ¶è¡¨ç¤ºç¬¬äºæ¬¡ç§°éï¼åºåºæ¶åè¡¨ç¤ºç¬¬ä¸æ¬¡ç§°éï¼åä½KG") |
| | | private Double emptyWeight = 0.0; |
| | | |
| | | @Column(name = "EMPTY_WEIGHT_TIME_") |
| | | @PropertyDef(label = "ç©ºè½¦ç§°éæ¶é´") |
| | | private Date emptyWeightTime; |
| | | |
| | | @Column(name = "EMPTY_WEIGHT_USER_") |
| | | @PropertyDef(label = "空车称é人") |
| | | private String emptyWeightUser; |
| | | |
| | | @Column(name = "NET_WEIGHT_") |
| | | @PropertyDef(label = "åé", description = "åä½KG") |
| | | private Double netWeight = 0.0; |
| | | |
| | | @Column(name = "SETTLE_WEIGHT_") |
| | | @PropertyDef(label = "ç»ç®åé", description = "æ£éååéï¼ç»ç®åéï¼åä½KG") |
| | | private Double settleWeight = 0.0; |
| | | |
| | | @Column(name = "RECORD_WEIGHT_") |
| | | @PropertyDef(label = "å
¥åºéé", description = "æ£éååéï¼ç»ç®åéï¼è¡¥å
æ¬å¢éï¼åä½KG") |
| | | private Double recordWeight = 0.0; |
| | | |
| | | @Column(name = "CREATE_TIME_") |
| | | @PropertyDef(label = "å建æ¶é´") |
| | | private Date createTime; |
| | | |
| | | // 夿³¨ |
| | | @Column(name = "REMARKS_", length = 200) |
| | | @PropertyDef(label = "夿³¨ä¿¡æ¯") |
| | | private String remarks; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.entity; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import com.fzzy.async.fzzy30.entity.InoutRecord; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.*; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * åºå
¥åºç»ç®ï¼2023å¹´5æ26æ¥ï¼æ ¹æ®æ°å½ç²®è§ä¼åè°æ´ |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_INOUT_SETTLE") |
| | | public class Fz61InoutSettle { |
| | | |
| | | public static String SORT_PROP = "id"; |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 40) |
| | | @PropertyDef(label = "æµæ°´å·",description = "ç»ç®æ¥æï¼yyyyMMddï¼+4ä½é¡ºåºå·ç»æ") |
| | | private String id; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 50) |
| | | @PropertyDef(label = "åºåºç¼ç ") |
| | | private String deptId; |
| | | |
| | | @Column(name = "INOUT_TYPE_") |
| | | @PropertyDef(label = "åºå
¥åºç±»å") |
| | | private String inoutType; |
| | | |
| | | @Column(name = "BIZ_TYPE_") |
| | | @PropertyDef(label = "å¤çæ¹å¼", description = "0=å车ç»ç®/1=ååç»ç®") |
| | | private String bizType; |
| | | |
| | | @Column(name = "DEPOT_ID_", length = 50) |
| | | @PropertyDef(label = "æå±ä»åº") |
| | | private String depotId; |
| | | |
| | | @Column(name = "CONTRACT_ID_", length = 40) |
| | | @PropertyDef(label = "ååç¼ç ", description = "é对轮æ¢ç²®é£å¿
å¡«") |
| | | private String contractId; |
| | | |
| | | @Column(name = "CONTRACT_NAME_", length = 50) |
| | | @PropertyDef(label = "åååç§°", description = "é对轮æ¢ç²®é£å¿
å¡«") |
| | | private String contractName; |
| | | |
| | | // ç»ç®ä¿¡æ¯ |
| | | @Column(name = "PAY_PRICE_") |
| | | @PropertyDef(label = "åä»·") |
| | | private Double payPrice = 0.0; |
| | | |
| | | @Column(name = "PAY_MONEY_") |
| | | @PropertyDef(label = "ç»ç®æ»é¢") |
| | | private Double payMoney = 0.0; |
| | | |
| | | @Column(name = "SETTLE_WEIGHT_") |
| | | @PropertyDef(label = "ç»ç®éé") |
| | | private double settleWeight = 0.0; |
| | | |
| | | @Column(name = "PAY_TIME_") |
| | | @PropertyDef(label = "ç»ç®æ¶é´") |
| | | private Date payTime; |
| | | |
| | | @Column(name = "PAY_TYPE_", length = 10) |
| | | @PropertyDef(label = "仿¬¾æ¹å¼") |
| | | private String payType; |
| | | |
| | | @Column(name = "PAYEE_") |
| | | @PropertyDef(label = "æ¶æ¬¾äºº", description = "æ¶æ¬¾å使è
个人") |
| | | private String payee; |
| | | |
| | | @Column(name = "PAYEE_ID_") |
| | | @PropertyDef(label = "æ¶æ¬¾äººç份è¯å·") |
| | | private String payeeId; |
| | | |
| | | @Column(name = "BANK_CATEGORY_", length = 10) |
| | | @PropertyDef(label = "é¶è¡è¡å«ä»£ç ") |
| | | private String bankCategory; |
| | | |
| | | @Column(name = "BANK_CODE_", length = 40) |
| | | @PropertyDef(label = "弿·è¡å·") |
| | | private String bankCode; |
| | | |
| | | @Column(name = "BANK_", length = 50) |
| | | @PropertyDef(label = "弿·è¡åç§°") |
| | | private String bank; |
| | | |
| | | @Column(name = "BANK_NUM_", length = 40) |
| | | @PropertyDef(label = "é¶è¡è´¦å·") |
| | | private String bankNum; |
| | | |
| | | @Column(name = "PAY_UNIT_", length = 50) |
| | | @PropertyDef(label = "仿¬¾åä½") |
| | | private String payUnit; |
| | | |
| | | @Column(name = "PAY_USER_", length = 40) |
| | | @PropertyDef(label = "仿¬¾æä½äºº") |
| | | private String payUser; |
| | | |
| | | @Column(name = "REMARKS_", length = 200) |
| | | @PropertyDef(label = "夿³¨ä¿¡æ¯") |
| | | private String remarks; |
| | | |
| | | @Column(name = "fphm", length = 10) |
| | | @PropertyDef(label = "å票å·ç ") |
| | | private String fphm; |
| | | |
| | | @Column(name = "fpzt", length = 10) |
| | | @PropertyDef(label = "åç¥¨ç¶æ",description = "1ï¼æ£å¸¸,0ï¼ä½åº") |
| | | private String fpzt; |
| | | |
| | | @Column(name = "INOUT_RECORD_ID_", length = 40) |
| | | @PropertyDef(label = "æµæ°´å·", description = "æ ¹æ®ä¸å®çè§åçæ") |
| | | private String inoutRecordId; |
| | | |
| | | @Column(name = "UPDATE_TIME_") |
| | | @PropertyDef(label = "æ°æ®æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | |
| | | @Transient |
| | | private List<InoutRecord> recordItems; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.util.Date; |
| | | |
| | | /** |
| | | * @Desc: åä»åè½ï¼2023å¹´5æ26æ¥ æ ¹æ®æ°å½ç²®è§æ´æ°ä¼å |
| | | * @author: Andy |
| | | * @update-time: 2023/5/26 |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_INOUT_STOCK_CHANGE") |
| | | public class Fz61InoutStockChange { |
| | | |
| | | public static String SORT_PROP = "updateTime"; |
| | | /** |
| | | * åä»åå· |
| | | */ |
| | | @Id |
| | | @Column(name = "ID_", length = 32) |
| | | @PropertyDef(label = "åä»åå·", 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 = "TYPE_", length = 2) |
| | | @PropertyDef(label = "åä»ç±»å", description = "0ï¼åä» 1ï¼ç§»åº") |
| | | private String type; |
| | | |
| | | @Column(name = "PLAN_CODE_", length = 40) |
| | | @PropertyDef(label = "åä»è®¡åæä»¶ç¼å·", description = "åä»è®¡åæä»¶ç¼å·") |
| | | private String planCode; |
| | | |
| | | @Column(name = "NOTICE_ID_", length = 40) |
| | | @PropertyDef(label = "éç¥åå·", description = "éç¥åå·") |
| | | private String noticeId; |
| | | |
| | | @Column(name = "FOOD_VARIETY_", length = 10) |
| | | @PropertyDef(label = "ç²®é£åç§", description = "代ç ä¸è¶³7ä½é卿«ä½è¡¥0") |
| | | private String foodVariety; |
| | | |
| | | @Column(name = "DEPOT_ID_IN", length = 50) |
| | | @PropertyDef(label = "åå
¥ä»åº") |
| | | private String depotIdIn; |
| | | |
| | | @Column(name = "DEPOT_ID_OUT", length = 50) |
| | | @PropertyDef(label = "ååºä»åº") |
| | | private String depotIdOut; |
| | | |
| | | @Column(name = "CHANGE_DATE_") |
| | | @PropertyDef(label = "å仿¥æ", description = "yyyy-MM-dd") |
| | | private Date changeDate; |
| | | |
| | | @Column(name = "CHANGE_START_DATE_") |
| | | @PropertyDef(label = "åä»å¼å§æ¥æ", description = "yyyy-MM-dd") |
| | | private Date changeStartDate; |
| | | |
| | | @Column(name = "CHANGE_END_DATE_") |
| | | @PropertyDef(label = "åä»ç»ææ¥æ", description = "yyyy-MM-dd") |
| | | private Date changeEndDate; |
| | | |
| | | @Column(name = "NUMBER_") |
| | | @PropertyDef(label = "å仿°é", description = "åä½ï¼å
¬æ¤") |
| | | private Double number = 0.0; |
| | | |
| | | @Column(name = "UPDATE_TIME_") |
| | | @PropertyDef(label = "æåæ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | |
| | | @Column(name = "UPDATE_USER_", length = 50) |
| | | @PropertyDef(label = "æ´æ°äºº") |
| | | private String updateUser; |
| | | |
| | | @Column(name = "bzw", length = 1) |
| | | @PropertyDef(label = "å
è£
ç©", description = "1ï¼éº»è¢ 2ï¼ç¼ç»è¢ 3ï¼æ£è£
9ï¼å
¶ä»") |
| | | private String bzw; |
| | | |
| | | @Column(name = "bzbjs") |
| | | @PropertyDef(label = "æ åå
ä»¶æ°", description = "åä½ï¼ä»¶") |
| | | private Integer bzbjs = 0; |
| | | |
| | | @Column(name = "zxzydw", length = 256) |
| | | @PropertyDef(label = "è£
å¸ä½ä¸åä½", description = "è£
å¸ä½ä¸ç人åå§åæåä½åç§°ï¼ç¨åè§éå·åé") |
| | | private String zxzydw; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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; |
| | | |
| | | /** |
| | | * 综å管ç-ç²®é£æ§è´¨åæ´ï¼ä¸»è¦æ¯åºå
¥åºä¹åå å¨å¤è½¬ååï¼å®æä¹å åå转å¨å¤ã |
| | | * <p> |
| | | * åæ´è®°å½ï¼è¡¨ååæ´ä¸º D_INOUT_VARIETY_CHANGE |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_INOUT_VARIETY_CHANGE") |
| | | public class Fz61InoutVarietyChange implements Serializable { |
| | | |
| | | public static String SORT_PROP = "changeTime"; |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 41) |
| | | @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 = "NUMBER_") |
| | | @PropertyDef(label = "ç²®é£æ°é", description = "åä½ï¼å
¬æ¤") |
| | | private Double number = 0.0; |
| | | |
| | | @Column(name = "CHANGE_NUMBER_") |
| | | @PropertyDef(label = "å转æ°é", description = "åä½ï¼å
¬æ¤") |
| | | private Double changeNumber = 0.0; |
| | | |
| | | @Column(name = "APPROVAL_ID_", length = 40) |
| | | @PropertyDef(label = "æ¹åæå·") |
| | | private String approvalId; |
| | | |
| | | @Column(name = "FOOD_VARIETY_", length = 10) |
| | | @PropertyDef(label = "ç²®é£åç§", description = "代ç ä¸è¶³7ä½é卿«ä½è¡¥0") |
| | | private String foodVariety; |
| | | |
| | | /** |
| | | * 100ãå¨å¤ç²® 110ãä¸å¤®å¨å¤ç²® 120ãå°æ¹å¨å¤ç²® |
| | | * 121ãç(èªæ²»åºãç´è¾å¸)çº§å°æ¹å¨å¤ç²® |
| | | * 122ãå¸(å°åºãèªæ²»å·ãç)çº§å°æ¹å¨å¤ç²® |
| | | * 123ãå¿(èªæ²»å¿ãå¿çº§å¸ãæãèªæ²»æãå¸è¾åºãæåºãç¹åº)çº§å°æ¹å¨å¤ç²® |
| | | * 129ãå
¶ä»å¨å¤ç²® 200ãååç²® 270ãä¸å¨ç²®ç³»ç»ååç²® |
| | | * 280ãè¿å£ååç²® 290ãå
¶ä»ååç²® 300ãæ¿çæ§ç²®é£ |
| | | * 310ãæä½æ¶è´ä»·ç²® 320ãå½å®¶ä¸´æ¶åå¨ç²® 330ãå½å®¶ä¸´å¨è¿å£ç²® |
| | | * 340ãå°æ¹ä¸´æ¶åå¨ç²® |
| | | */ |
| | | @Column(name = "FOOD_TYPE_", length = 10) |
| | | @PropertyDef(label = "å转åç²®é£æ§è´¨ä»£ç ") |
| | | private String foodType; |
| | | |
| | | @Column(name = "NEW_FOOD_TYPE_", length = 10) |
| | | @PropertyDef(label = "å转åç²®é£æ§è´¨ä»£ç ") |
| | | private String newFoodType; |
| | | |
| | | @Column(name = "CHANGE_TIME_") |
| | | @PropertyDef(label = "åè½¬æ¥æ") |
| | | private Date changeTime; |
| | | |
| | | @PropertyDef(label = "ä»å¨å®¡æ ¸äºº") |
| | | @Column(name = "ccshr", length = 64) |
| | | private String ccshr; |
| | | |
| | | @Column(name = "AUDIT_CCSH_", length = 10) |
| | | @PropertyDef(label = "审æ¹ç¶æ") |
| | | private String auditCcsh; |
| | | |
| | | @Column(name = "INFO_CCSH_", length = 200) |
| | | @PropertyDef(label = "å®¡æ ¸è¯´æ") |
| | | private String InfoCcsh; |
| | | |
| | | @PropertyDef(label = "è´¨æ£å®¡æ ¸äºº") |
| | | @Column(name = "zjshr", length = 64) |
| | | private String zjshr; |
| | | |
| | | @Column(name = "AUDIT_ZJSH_", length = 10) |
| | | @PropertyDef(label = "审æ¹ç¶æ") |
| | | private String auditZjsh; |
| | | |
| | | @Column(name = "INFO_ZJSH_", length = 200) |
| | | @PropertyDef(label = "å®¡æ ¸è¯´æ") |
| | | private String infoZjsh; |
| | | |
| | | @PropertyDef(label = "ç»è®¡å®¡æ ¸äºº") |
| | | @Column(name = "tjshr", length = 64) |
| | | private String tjshr; |
| | | |
| | | @Column(name = "AUDIT_TJSH_", length = 10) |
| | | @PropertyDef(label = "审æ¹ç¶æ") |
| | | private String auditTjsh; |
| | | |
| | | @Column(name = "INFO_TJSH_", length = 200) |
| | | @PropertyDef(label = "å®¡æ ¸è¯´æ") |
| | | private String infoTjsh; |
| | | |
| | | @PropertyDef(label = "ä¼è®¡å®¡æ ¸äºº") |
| | | @Column(name = "kjshr", length = 64) |
| | | private String kjshr; |
| | | |
| | | @Column(name = "AUDIT_KJSH_", length = 10) |
| | | @PropertyDef(label = "审æ¹ç¶æ") |
| | | private String auditKjsh; |
| | | |
| | | @Column(name = "INFO_KJSH_", length = 200) |
| | | @PropertyDef(label = "å®¡æ ¸è¯´æ") |
| | | private String infoKjsh; |
| | | |
| | | @PropertyDef(label = "é¢å¯¼å®¡æ ¸äºº") |
| | | @Column(name = "ldshr", length = 64) |
| | | private String ldshr; |
| | | |
| | | @Column(name = "AUDIT_LDSH_", length = 10) |
| | | @PropertyDef(label = "审æ¹ç¶æ", description = "æç»å®¡æ ¸ç¶æä»¥é¢å¯¼å®¡æ ¸ä¸ºå") |
| | | private String auditLdsh; |
| | | |
| | | @Column(name = "INFO_LDSH_", length = 200) |
| | | @PropertyDef(label = "å®¡æ ¸è¯´æ") |
| | | private String infoLdsh; |
| | | |
| | | @Column(name = "UPDATE_TIME_") |
| | | @PropertyDef(label = "æåæ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | |
| | | @Column(name = "REMARK_", length = 200) |
| | | @PropertyDef(label = "夿³¨") |
| | | private String remark; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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; |
| | | |
| | | /** |
| | | * OA-人å管ç |
| | | * |
| | | * @author: YAN |
| | | * @description: |
| | | * @version: |
| | | * @data:2023å¹´8æ10æ¥ |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_OA_STAFF") |
| | | public class Fz61OAStaff implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | @Id |
| | | @Column(name = "sfzhm", length = 18) |
| | | @PropertyDef(label = "身份è¯å·ç ") |
| | | private String sfzhm; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ", description = "") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 20) |
| | | @PropertyDef(label = "åºåºç¼ç ", description = "") |
| | | private String deptId; |
| | | |
| | | @Column(name = "lsbm", length = 256) |
| | | @PropertyDef(label = "é¶å±é¨é¨", description = "é¶å±é¨é¨åç§°") |
| | | private String lsbm; |
| | | |
| | | @Column(name = "xzqhdm", length = 6) |
| | | @PropertyDef(label = "æå±è¡æ¿åºå") |
| | | private String xzqhdm; |
| | | |
| | | @Column(name = "xzqhmc", length = 6) |
| | | @PropertyDef(label = "æå±è¡æ¿åºå") |
| | | private String xzqhmc; |
| | | |
| | | @Column(name = "xm", length = 32) |
| | | @PropertyDef(label = "å§å") |
| | | private String xm; |
| | | |
| | | @Column(name = "xb", length = 1) |
| | | @PropertyDef(label = "æ§å«") |
| | | private String xb; |
| | | |
| | | @Column(name = "rzrq") |
| | | @PropertyDef(label = "å
¥èæ¥æ") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date rzrq; |
| | | /** |
| | | * 11ï¼ å¨å²èå·¥(é¿æ)ï¼12ï¼ å¨å² èå·¥(临æ¶)ï¼20ï¼ å
¶ä»ä»ä¸äººå |
| | | */ |
| | | @Column(name = "gwxz", length = 2) |
| | | @PropertyDef(label = "å²ä½æ§è´¨") |
| | | private String gwxz; |
| | | /** |
| | | * 01ï¼ å¨å² 02ï¼ å·²ç¦»è |
| | | */ |
| | | @Column(name = "zgzt", length = 2) |
| | | @PropertyDef(label = "å¨å²ç¶æ") |
| | | private String zgzt; |
| | | |
| | | @Column(name = "lzrq") |
| | | @PropertyDef(label = "ç¦»èæ¥æ") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date lzrq; |
| | | |
| | | @Column(name = "zjdh", length = 16) |
| | | @PropertyDef(label = "座æºçµè¯") |
| | | private String zjdh; |
| | | |
| | | @Column(name = "yddh", length = 16) |
| | | @PropertyDef(label = "ç§»å¨çµè¯") |
| | | private String yddh; |
| | | |
| | | @Column(name = "dzyx", length = 32) |
| | | @PropertyDef(label = "çµåé®ç®±") |
| | | private String dzyx; |
| | | |
| | | @Column(name = "mz", length = 2) |
| | | @PropertyDef(label = "æ°æ") |
| | | private String mz; |
| | | |
| | | @Column(name = "zzmm", length = 2) |
| | | @PropertyDef(label = "æ¿æ²»é¢è²") |
| | | private String zzmm; |
| | | |
| | | @Column(name = "rylb", length = 4) |
| | | @PropertyDef(label = "人åç±»å«") |
| | | private String rylb; |
| | | |
| | | @Column(name = "zy", length = 128) |
| | | @PropertyDef(label = "ä¸ä¸") |
| | | private String zy; |
| | | |
| | | @Column(name = "qdzgzchzyzgsj") |
| | | @PropertyDef(label = "å徿é«èç§°æèä¸èµæ ¼æ¶é´") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date qdzgzchzyzgsj; |
| | | |
| | | @Column(name = "xl", length = 1) |
| | | @PropertyDef(label = "å¦å") |
| | | private String xl; |
| | | |
| | | @Column(name = "zw", length = 16) |
| | | @PropertyDef(label = "èå¡") |
| | | private String zw; |
| | | |
| | | @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: YYC |
| | | * @Description: |
| | | * @DateTime: 2025-9-16 16:25 |
| | | **/ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_SEC_CAMERA") |
| | | public class Fz61SecCamera implements Serializable { |
| | | |
| | | public static String SORT_PROP = "orderNum"; |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 40) |
| | | @PropertyDef(label = "ID") |
| | | 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 = "TYPE_", length = 10) |
| | | @PropertyDef(label = "设å¤ç±»å") |
| | | private String type; |
| | | |
| | | |
| | | @Column(name = "BRAND_", length = 50) |
| | | @PropertyDef(label = "设å¤åç") |
| | | private String brand; |
| | | |
| | | @Column(name = "SN_", length = 50) |
| | | @PropertyDef(label = "åºåå·") |
| | | private String sn; |
| | | |
| | | @Column(name = "PLAY_TYPE_", length = 40) |
| | | @PropertyDef(label = "ææ¾æ¹å¼") |
| | | private String playType; |
| | | |
| | | @Column(name = "LOGIN_ID_", length = 20) |
| | | @PropertyDef(label = "å¸å·") |
| | | private String loginId; |
| | | |
| | | @Column(name = "PWD_", length = 20) |
| | | @PropertyDef(label = "å¯ç ") |
| | | private String pwd; |
| | | |
| | | @Column(name = "IP_", length = 20) |
| | | @PropertyDef(label = "IPå°å") |
| | | private String ip; |
| | | |
| | | @Column(name = "CONTROL_PORT_") |
| | | @PropertyDef(label = "æ§å¶ç«¯å£") |
| | | private Integer controlPort; |
| | | |
| | | @Column(name = "WEB_PORT_") |
| | | @PropertyDef(label = "WEB端å£") |
| | | private Integer webPort; |
| | | |
| | | @Column(name = "CHAN_NUM_") |
| | | @PropertyDef(label = "ééå·") |
| | | private Integer chanNum = 1; |
| | | |
| | | @PropertyDef(label = "å
ç½ç´æå°å") |
| | | @Column(name = "URL_IN_", length = 254) |
| | | private String urlIn; |
| | | |
| | | @PropertyDef(label = "å¤ç½ç´æå°å") |
| | | @Column(name = "URL_OUT_", length = 254) |
| | | private String urlOut; |
| | | |
| | | @Column(name = "MEDIA_ADDR_", length = 100) |
| | | @PropertyDef(label = "RTSPå°å") |
| | | private String mediaAddr; |
| | | |
| | | @Column(name = "SNAP_TYPE_", length = 25) |
| | | @PropertyDef(label = "æææ¹å¼") |
| | | private String snapType; |
| | | |
| | | @Column(name = "spjklx", length = 1) |
| | | @PropertyDef(label = "è§é¢çæ§ç±»å") |
| | | private String spjklx; |
| | | |
| | | @Column(name = "spdwlx", length = 2) |
| | | @PropertyDef(label = "è§é¢ç¹ä½ç±»å") |
| | | private String spdwlx; |
| | | |
| | | @PropertyDef(label = "页é¢ä¸çåæ ") |
| | | @Column(name = "POS_X_") |
| | | private Double posX; |
| | | |
| | | @PropertyDef(label = "页é¢ä¸çåæ ") |
| | | @Column(name = "POS_Y_") |
| | | private Double posY; |
| | | |
| | | @PropertyDef(label = "大屿¾ç¤ºæ è®°") |
| | | @Column(name = "SCREEN_SHOW_", length = 1) |
| | | private String screenShow; |
| | | |
| | | @PropertyDef(label = "ææºæ¯å¦æ¾ç¤º") |
| | | @Column(name = "PHONE_SHOW_TAG_", length = 1) |
| | | private String phoneShowTag ; |
| | | |
| | | @Column(name = "ORDER_NUM_") |
| | | @PropertyDef(label = "æ¾ç¤ºé¡ºåº") |
| | | private Integer orderNum = 1; |
| | | |
| | | @PropertyDef(label = "æ¯å¦ä½¿ç¨") |
| | | @Column(name = "VLD_", length = 1) |
| | | private String vld; |
| | | |
| | | @Column(name = "REMARK_", length = 300) |
| | | @PropertyDef(label = "夿³¨") |
| | | private String remark; |
| | | |
| | | @Column(name = "UPDATE_TIME_", length = 1) |
| | | @PropertyDef(label = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.entity.Api1102; |
| | | import com.fzzy.api.entity.Api1107; |
| | | 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.Api1107Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy40.entity.Fz40DeptDevice; |
| | | import com.fzzy.async.fzzy40.repository.Fzzy40Sync1107Rep; |
| | | 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 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1107 { |
| | | @Autowired |
| | | private Fzzy40Sync1107Rep fzzy40Sync1107Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | @Autowired |
| | | private Api1102Rep api1102Rep; |
| | | @Autowired |
| | | private Api1107Rep api1107Rep; |
| | | |
| | | /** |
| | | * åæ¥è®¾å¤ä¿¡æ¯ |
| | | * |
| | | * @param kqdm |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------1107æ¥å£è®¾å¤ä¿¡æ¯å¼å§åæ¥------------------"); |
| | | |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1107); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz40DeptDevice> list = fzzy40Sync1107Rep.listDevice(deptId); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.info("-------------没æè·åå°è®¾å¤ä¿¡æ¯------------------"); |
| | | return; |
| | | } |
| | | Api1102 api1102 = api1102Rep.findById(kqdm).get(); |
| | | Api1107 apiData; |
| | | List<Api1107> api1107List; |
| | | for (Fz40DeptDevice sysData : list) { |
| | | apiData = new Api1107(); |
| | | |
| | | apiData.setSbbh(sysData.getSbbh()); |
| | | apiData.setDwdm(api1102.getDwdm());//åä½ä»£ç |
| | | apiData.setKqdm(api1102.getKqdm());//åºåºä»£ç |
| | | apiData.setKqmc(api1102.getKqmc());//åºåºåç§° |
| | | apiData.setSbyqmc(sysData.getSbyqmc()); |
| | | apiData.setSbyqdm(sysData.getSbyqdm()); |
| | | apiData.setSbggxh(sysData.getSbggxh()); |
| | | if (StringUtils.isEmpty(sysData.getSccj())) { |
| | | apiData.setSccj("ç产åå®¶"); |
| | | } else { |
| | | apiData.setSccj(sysData.getSccj()); |
| | | } |
| | | apiData.setScrq(sysData.getScrq()); |
| | | apiData.setSbms(sysData.getSbms()); |
| | | apiData.setSbzt(sysData.getSbzt()); |
| | | apiData.setJdsj(sysData.getJdsj()); |
| | | apiData.setJddw(sysData.getJddw()); |
| | | apiData.setZhgxsj(sysData.getUpdateTime()); |
| | | apiData.setBizId(sysData.getSbbh()); |
| | | |
| | | api1107List = api1107Rep.getDataByBizId(apiData.getBizId()); |
| | | if (null == api1107List || api1107List.isEmpty()) { |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | apiData.setCzbz(api1107List.get(0).getCzbz()); |
| | | } |
| | | |
| | | //ä¿åæ°æ® |
| | | api1107Rep.save(apiData); |
| | | log.info("1107设å¤ä¿¡æ¯---åæ¥æ°æ®ï¼{}", apiData.toString()); |
| | | } |
| | | |
| | | } catch (Exception e) { |
| | | log.error("---1107设å¤ä¿¡æ¯åæ¥æ§è¡å¤±è´¥----{}", 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.Api1102; |
| | | import com.fzzy.api.entity.Api1108; |
| | | 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.Api1108Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy40.entity.Fz40Drug; |
| | | import com.fzzy.async.fzzy40.repository.Fzzy40Sync1108Rep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61Drug; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1108Rep; |
| | | 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 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1108 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1108Rep fzzy61Sync1108Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | @Autowired |
| | | private Api1102Rep api1102Rep; |
| | | @Autowired |
| | | private Api1108Rep api1108Rep; |
| | | |
| | | |
| | | /** |
| | | * 忥è¯åä¿¡æ¯ |
| | | * |
| | | * @param kqdm |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------1108æ¥å£è¯åä¿¡æ¯å¼å§åæ¥------------------"); |
| | | |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1108); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | |
| | | try { |
| | | List<Fz61Drug> list = fzzy61Sync1108Rep.listDrug(deptId, start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.info("-------------没æè·åå°è¯åä¿¡æ¯------------------"); |
| | | return; |
| | | } |
| | | Api1102 api1102 = api1102Rep.findById(kqdm).get(); |
| | | Api1108 apiData; |
| | | List<Api1108> api1108List; |
| | | for (Fz61Drug sysData : list) { |
| | | |
| | | apiData = new Api1108(); |
| | | apiData.setId(kqdm + sysData.getId());//ID |
| | | apiData.setBizId(sysData.getId());//ä¸å¡id |
| | | apiData.setDwdm(api1102.getDwdm());//åä½ä»£ç |
| | | apiData.setKqdm(api1102.getKqdm());//åºåºä»£ç |
| | | apiData.setKqmc(api1102.getKqmc());//åºåºåç§° |
| | | apiData.setYjbh(kqdm + sysData.getId().substring(8));//è¯åç¼å· |
| | | apiData.setYjmc(sysData.getName());//è¯ååç§° |
| | | apiData.setBzw(StringUtils.isEmpty(sysData.getBzw())?"":sysData.getBzw());//å
è£
ç© |
| | | apiData.setGgxh(StringUtils.isEmpty(sysData.getGgxh())?"":sysData.getGgxh());//åå·è§æ ¼ |
| | | apiData.setAqsysms(StringUtils.isEmpty(sysData.getAqsysms())?"":sysData.getAqsysms());//å®å
¨ä½¿ç¨è¯´æä¹¦ |
| | | apiData.setSccj(StringUtils.isEmpty(sysData.getSccj())?"":sysData.getSccj());//ç产åå®¶ |
| | | apiData.setCgly(StringUtils.isEmpty(sysData.getCgly())?"":sysData.getCgly());//éè´æ¥æº |
| | | apiData.setCctj(StringUtils.isEmpty(sysData.getCctj())?"":sysData.getCctj());//å卿¡ä»¶ |
| | | apiData.setCcdd(StringUtils.isEmpty(sysData.getCcdd())?"":sysData.getCcdd());//å¨åå°ç¹ |
| | | apiData.setBzwclfs(StringUtils.isEmpty(sysData.getBzwclfs())?"":sysData.getBzwclfs());//å
è£
ç©å¤çæ¹å¼ |
| | | apiData.setCzclfs(StringUtils.isEmpty(sysData.getCzclfs())?"":sysData.getCzclfs());//æ®æ¸£å¤çæ¹å¼ |
| | | apiData.setBzq(StringUtils.isEmpty(sysData.getBzw())? "1å¹´": sysData.getBzq());//ä¿è´¨æ |
| | | apiData.setCgrq(null == sysData.getBzw()?new Date():sysData.getCgrq());//éè´æ¥æ |
| | | apiData.setKcsl(sysData.getCount());//åºåæ°é |
| | | apiData.setKcsldw(StringUtils.isEmpty(sysData.getKcsldw())?"":sysData.getKcsldw());//åºåæ°éåä½ |
| | | |
| | | apiData.setZhgxsj(sysData.getUpdateTime());//æåæ´æ°æ¶é´ |
| | | apiData.setBizId(sysData.getId());//ä¸å¡id |
| | | |
| | | api1108List = api1108Rep.getDataByBizId(apiData.getBizId()); |
| | | if (null == api1108List || api1108List.isEmpty()) { |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | apiData.setCzbz(api1108List.get(0).getCzbz()); |
| | | } |
| | | |
| | | //ä¿åæ°æ® |
| | | api1108Rep.save(apiData); |
| | | log.info("1108è¯åä¿¡æ¯---åæ¥æ°æ®ï¼{}", apiData.toString()); |
| | | } |
| | | |
| | | } catch (Exception e) { |
| | | log.error("---1108è¯åä¿¡æ¯åæ¥æ§è¡å¤±è´¥----{}", 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.Api1109; |
| | | import com.fzzy.api.entity.Api1202; |
| | | import com.fzzy.api.entity.Api1205; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.utils.FileUtils; |
| | | import com.fzzy.api.view.repository.Api1109Rep; |
| | | import com.fzzy.api.view.repository.Api1202Rep; |
| | | import com.fzzy.api.view.repository.Api1205Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61FileInfo; |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutRecord; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1109Rep; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1202Rep; |
| | | 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.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * æä»¶ä¿¡æ¯ |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1109 { |
| | | |
| | | private final static String IMG_START_C = "C_"; |
| | | private final static String IMG_START_R = "R_"; |
| | | /** |
| | | * å¾çç±»å |
| | | */ |
| | | private final static String IMG_TYPE_1 = "1"; //åºåºé¸ç°å¾ |
| | | private final static String IMG_TYPE_2 = "2"; //å
¥åºå¾ç |
| | | private final static String IMG_TYPE_3 = "3"; //åºåºå¾ç |
| | | private final static String IMG_TYPE_4 = "4"; //å
¥åºæ£æ¤è§é¢ |
| | | private final static String IMG_TYPE_5 = "5"; //åºåºæ£æ¤è§é¢ |
| | | private final static String IMG_TYPE_104 = "104";//çè¸å¤æ¡æ¥å£éä»¶ï¼ç¨äºå¹¿ä¸ç |
| | | |
| | | /** |
| | | * ä¸å¡ç±»å |
| | | */ |
| | | private final static String BIZ_TAG_WEIGHT_FULL = "WEIGHT_FULL"; |
| | | private final static String BIZ_TAG_WEIGHT_EMPTY = "WEIGHT_EMPTY"; |
| | | private final static String BIZ_TAG_REGISTER = "REGISTER"; |
| | | private final static String BIZ_TAG_CARD_BACK = "CARD_BACK"; |
| | | /** |
| | | * åºå
¥åºç±»å |
| | | */ |
| | | private final static String INOUT_TYPE_IN = "IN"; |
| | | private final static String INOUT_TYPE_OUT = "OUT"; |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1109Rep fzzySync1109Rep; |
| | | @Autowired |
| | | private Fzzy61Sync1202Rep fzzySync1202Rep; |
| | | @Autowired |
| | | private Api1109Rep api1109Rep; |
| | | @Autowired |
| | | private Api1202Rep api1202Rep; |
| | | @Autowired |
| | | private Api1205Rep api1205Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | @Autowired |
| | | private FileUtils fileUtil; |
| | | |
| | | /** |
| | | * 忥æä»¶æ¥å£ |
| | | * |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | |
| | | log.info("-------------1109æä»¶ä¿¡æ¯æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | 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<Fz61InoutRecord> list = fzzySync1202Rep.listInAndOutRecord(deptId, INOUT_TYPE_IN, INOUT_TYPE_OUT, start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.info("-------------没æè·åå°æä»¶ä¿¡æ¯------------------"); |
| | | return; |
| | | } |
| | | |
| | | Map<String, Integer> map = new HashMap<>(); |
| | | Api1109 apiData; |
| | | String wjlx; |
| | | String wjmc; |
| | | List<Api1109> api1109List; |
| | | List<Api1202> api1202List; |
| | | List<Api1205> api1205List; |
| | | String str = ""; //åºå
¥åºä¸å¡åå· |
| | | List<Fz61FileInfo> fileList; //æä»¶ä¿¡æ¯ |
| | | List<String> ids; |
| | | for (Fz61InoutRecord inoutData : list) { |
| | | if (inoutData.getRecordStatus().equals("DEL") || inoutData.getRecordStatus().equals("ERROR")) { |
| | | continue; |
| | | } |
| | | if (!inoutData.getProgress().equals("RECORD")) { |
| | | continue; |
| | | } |
| | | ids = new ArrayList<>(); |
| | | wjlx = ""; |
| | | //è·ååºå
¥åºä¸å¡åå·ä¿¡æ¯ |
| | | if (inoutData.getType().equals(INOUT_TYPE_IN)) { |
| | | wjlx = IMG_TYPE_2; |
| | | api1202List = api1202Rep.getDataByBizId(inoutData.getId()); |
| | | if (null == api1202List || api1202List.isEmpty()) { |
| | | continue; |
| | | } |
| | | ids = api1202List.stream().map(Api1202::getRkywdh).collect(Collectors.toList()); |
| | | } |
| | | if (inoutData.getType().equals(INOUT_TYPE_OUT)) { |
| | | wjlx = IMG_TYPE_3; |
| | | api1205List = api1205Rep.getDataByBizId(inoutData.getId()); |
| | | if (null == api1205List || api1205List.isEmpty()) { |
| | | continue; |
| | | } |
| | | ids = api1205List.stream().map(Api1205::getCkywdh).collect(Collectors.toList()); |
| | | |
| | | } |
| | | |
| | | //è¥æä»¶ç±»å为空ï¼åè·³è¿ |
| | | if (StringUtils.isEmpty(wjlx)) { |
| | | continue; |
| | | } |
| | | |
| | | //æ ¹æ®åºå
¥åºåå·è·åå¯¹åºæä»¶ä¿¡æ¯ |
| | | fileList = fzzySync1109Rep.listFileInfoByBizId(inoutData.getId()); |
| | | if (null == fileList || fileList.isEmpty()) { |
| | | continue; |
| | | } |
| | | int num = 1; |
| | | int idsNum = 0; |
| | | String bizTag = null; |
| | | for (Fz61FileInfo sysData : fileList) { |
| | | apiData = new Api1109(); |
| | | |
| | | //主é®id |
| | | apiData.setId(sysData.getFileId()); |
| | | //æä»¶è·¯å¾ |
| | | apiData.setWjdz(fileUtil.getInoutFilePath(sysData.getCreateTime()) + sysData.getFileName()); |
| | | //ç»è®° |
| | | if (BIZ_TAG_REGISTER.equals(sysData.getBizTag()) || BIZ_TAG_CARD_BACK.equals(sysData.getBizTag())) { |
| | | str = ids.get(0); |
| | | wjmc = kqdm + "_" + str; |
| | | //æä»¶åç§° |
| | | wjmc = getImgNameType(wjmc, sysData.getBizTag(), str, sysData.getFileName(), map); |
| | | apiData.setWjmc(wjmc); |
| | | //æä»¶ç±»å |
| | | apiData.setWjlx(wjlx); |
| | | } |
| | | //ç§°é |
| | | if (BIZ_TAG_WEIGHT_FULL.equals(sysData.getBizTag()) || BIZ_TAG_WEIGHT_EMPTY.equals(sysData.getBizTag())) { |
| | | bizTag = sysData.getBizTag(); |
| | | if (StringUtils.isNotEmpty(inoutData.getTransType()) && inoutData.getTransType().equals("3")) { |
| | | if (num > 6) { |
| | | num = 1; |
| | | idsNum++; |
| | | } |
| | | } else { |
| | | if (num > 8) { |
| | | num = 1; |
| | | idsNum++; |
| | | } |
| | | } |
| | | //2024-05-23 æ¤å¤ææ¶è®¾ç½®åç§°é¿åº¦éå¶ï¼åæè°æ´åå¯å é¤ |
| | | if (sysData.getCreateTime().after(DateUtils.parseDate("2024-04-18", new String[]{"yyyy-MM-dd"}))) { |
| | | if (StringUtils.isNotEmpty(inoutData.getTransType()) && inoutData.getTransType().equals("3")) { |
| | | bizTag = sysData.getBizTag(); |
| | | } else { |
| | | bizTag = null; |
| | | } |
| | | } |
| | | if (idsNum == ids.size()) { |
| | | break; |
| | | } |
| | | str = ids.get(idsNum); |
| | | |
| | | wjmc = kqdm + "_" + str; |
| | | |
| | | //æä»¶åç§° |
| | | wjmc = getImgNameType(wjmc, bizTag, str, sysData.getFileName(), map); |
| | | apiData.setWjmc(wjmc); |
| | | apiData.setWjlx(wjlx); |
| | | if (wjmc.indexOf(Constant.IMG_NAME_TYPE_IVG) >= 0 || wjmc.indexOf(Constant.IMG_NAME_TYPE_IVT) >= 0) { |
| | | apiData.setWjlx(IMG_TYPE_4); |
| | | } |
| | | if (wjmc.indexOf(Constant.IMG_NAME_TYPE_OVG) >= 0 || wjmc.indexOf(Constant.IMG_NAME_TYPE_OVT) >= 0) { |
| | | apiData.setWjlx(IMG_TYPE_5); |
| | | } |
| | | num++; |
| | | } |
| | | |
| | | //æä½æ å¿åæåæ´æ°æ¶é´ |
| | | apiData.setZhgxsj(new Date()); |
| | | |
| | | //ä¸å¡idãåºåºç¼ç ã忥æ¶é´ |
| | | apiData.setBizId(sysData.getFileId()); |
| | | apiData.setKqdm(kqdm); |
| | | apiData.setSyncTime(new Date()); |
| | | |
| | | api1109List = api1109Rep.getDataByBizId(apiData.getBizId()); |
| | | if (null == api1109List || api1109List.isEmpty()) { |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | apiData.setCzbz(api1109List.get(0).getCzbz()); |
| | | } |
| | | |
| | | //ä¿åæ°æ® |
| | | api1109Rep.save(apiData); |
| | | log.info("1109æä»¶ä¿¡æ¯---åæ¥æ°æ®ï¼{}", apiData.toString()); |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---1109æä»¶åæ¥æ§è¡å¤±è´¥----{}", e.toString()); |
| | | apiLog.setResult("忥æä»¶ä¿¡æ¯å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * è·åå¾çå½åç±»å |
| | | * |
| | | * @param wjmc éè¦çæä»¶åç§° |
| | | * @param bizTag æä»¶ä¸å¡ç±»å |
| | | * @param bizId æä»¶ä¸å¡id |
| | | * @param fileName åæä»¶å |
| | | * @param map |
| | | * @return |
| | | */ |
| | | private String getImgNameType(String wjmc, String bizTag, String bizId, String fileName, Map<String, Integer> map) { |
| | | if (null == bizTag) { |
| | | if (fileName.indexOf(Constant.IMG_NAME_TYPE_DJ) >= 0) { |
| | | return wjmc + "_" + Constant.IMG_NAME_TYPE_DJ + ".jpg"; |
| | | } |
| | | if (fileName.indexOf(Constant.IMG_NAME_TYPE_RK) >= 0) { |
| | | return wjmc + "_" + Constant.IMG_NAME_TYPE_RK + ".jpg"; |
| | | } |
| | | if (fileName.indexOf(Constant.IMG_NAME_TYPE_CK) >= 0) { |
| | | return wjmc + "_" + Constant.IMG_NAME_TYPE_CK + ".jpg"; |
| | | } |
| | | if (fileName.indexOf(Constant.IMG_NAME_TYPE_GL) >= 0) { |
| | | return wjmc + "_" + Constant.IMG_NAME_TYPE_GL + ".jpg"; |
| | | } |
| | | if (fileName.indexOf(Constant.IMG_NAME_TYPE_GR) >= 0) { |
| | | return wjmc + "_" + Constant.IMG_NAME_TYPE_GR + ".jpg"; |
| | | } |
| | | if (fileName.indexOf(Constant.IMG_NAME_TYPE_GT) >= 0) { |
| | | return wjmc + "_" + Constant.IMG_NAME_TYPE_GT + ".jpg"; |
| | | } |
| | | if (fileName.indexOf(Constant.IMG_NAME_TYPE_TL) >= 0) { |
| | | return wjmc + "_" + Constant.IMG_NAME_TYPE_TL + ".jpg"; |
| | | } |
| | | if (fileName.indexOf(Constant.IMG_NAME_TYPE_TR) >= 0) { |
| | | return wjmc + "_" + Constant.IMG_NAME_TYPE_TR + ".jpg"; |
| | | } |
| | | if (fileName.indexOf(Constant.IMG_NAME_TYPE_TT) >= 0) { |
| | | return wjmc + "_" + Constant.IMG_NAME_TYPE_TT + ".jpg"; |
| | | } |
| | | if (fileName.indexOf(Constant.IMG_NAME_TYPE_SL) >= 0) { |
| | | return wjmc + "_" + Constant.IMG_NAME_TYPE_SL + ".jpg"; |
| | | } |
| | | if (fileName.indexOf(Constant.IMG_NAME_TYPE_SF) >= 0) { |
| | | return wjmc + "_" + Constant.IMG_NAME_TYPE_SF + ".jpg"; |
| | | } |
| | | if (fileName.indexOf(Constant.IMG_NAME_TYPE_IVG) >= 0) { |
| | | return wjmc + "_" + Constant.IMG_NAME_TYPE_IVG + ".mp4"; |
| | | } |
| | | if (fileName.indexOf(Constant.IMG_NAME_TYPE_IVT) >= 0) { |
| | | return wjmc + "_" + Constant.IMG_NAME_TYPE_IVT + ".mp4"; |
| | | } |
| | | if (fileName.indexOf(Constant.IMG_NAME_TYPE_OVG) >= 0) { |
| | | return wjmc + "_" + Constant.IMG_NAME_TYPE_OVG + ".mp4"; |
| | | } |
| | | if (fileName.indexOf(Constant.IMG_NAME_TYPE_OVT) >= 0) { |
| | | return wjmc + "_" + Constant.IMG_NAME_TYPE_OVT + ".mp4"; |
| | | } |
| | | } |
| | | |
| | | Integer num = 0; |
| | | //æ¯é |
| | | if (BIZ_TAG_WEIGHT_FULL.equals(bizTag)) { |
| | | if (null == map.get(bizId + "_" + bizTag)) { |
| | | map.put(bizId + "_" + bizTag, 1); |
| | | } |
| | | num = map.get(bizId + "_" + bizTag); |
| | | if (num == 1) { |
| | | wjmc += "_" + Constant.IMG_NAME_TYPE_GL; |
| | | map.put(bizId + "_" + bizTag, 2); |
| | | } |
| | | if (num == 2) { |
| | | wjmc += "_" + Constant.IMG_NAME_TYPE_GR; |
| | | map.put(bizId + "_" + bizTag, 3); |
| | | } |
| | | if (num == 3) { |
| | | wjmc += "_" + Constant.IMG_NAME_TYPE_GT; |
| | | map.remove(bizId + "_" + bizTag); |
| | | } |
| | | } |
| | | //ç®é |
| | | if (BIZ_TAG_WEIGHT_EMPTY.equals(bizTag)) { |
| | | if (null == map.get(bizId + "_" + bizTag)) { |
| | | map.put(bizId + "_" + bizTag, 1); |
| | | } |
| | | num = map.get(bizId + "_" + bizTag); |
| | | if (num == 1) { |
| | | wjmc += "_" + Constant.IMG_NAME_TYPE_TL; |
| | | map.put(bizId + "_" + bizTag, 2); |
| | | } |
| | | if (num == 2) { |
| | | wjmc += "_" + Constant.IMG_NAME_TYPE_TR; |
| | | map.put(bizId + "_" + bizTag, 3); |
| | | } |
| | | if (num == 3) { |
| | | wjmc += "_" + Constant.IMG_NAME_TYPE_TT; |
| | | map.remove(bizId + "_" + bizTag); |
| | | } |
| | | } |
| | | //å
¥åºç»è®° |
| | | if (BIZ_TAG_REGISTER.equals(bizTag)) { |
| | | if (null == map.get(bizId + "_" + bizTag)) { |
| | | map.put(bizId + "_" + bizTag, 1); |
| | | } |
| | | num = map.get(bizId + "_" + bizTag); |
| | | if (num == 1) { |
| | | wjmc += "_" + Constant.IMG_NAME_TYPE_DJ; |
| | | map.put(bizId + "_" + bizTag, 2); |
| | | } |
| | | if (num == 2) { |
| | | wjmc += "_" + Constant.IMG_NAME_TYPE_RK; |
| | | map.remove(bizId + "_" + bizTag); |
| | | } |
| | | } |
| | | //åºåºç
§ç |
| | | if (BIZ_TAG_CARD_BACK.equals(bizTag)) { |
| | | wjmc += "_" + Constant.IMG_NAME_TYPE_CK; |
| | | } |
| | | return wjmc + ".jpg"; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.entity.*; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.*; |
| | | import com.fzzy.async.fzzy40.entity.Fz40SecCamera; |
| | | import com.fzzy.async.fzzy40.repository.Fzzy40Sync1111Rep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61SecCamera; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1111Rep; |
| | | 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; |
| | | |
| | | /** |
| | | * åºåºå¾è§é¢çæ§è®¾å¤ç¹ä½æ 注 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1111 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1111Rep fzzy61Sync1111Rep; |
| | | @Autowired |
| | | private Api1101Rep api1101Rep; |
| | | @Autowired |
| | | private Api1102Rep api1102Rep; |
| | | @Autowired |
| | | private Api1111Rep api1111Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | @Autowired |
| | | private ApiConfsRep apiConfsRep; |
| | | |
| | | /** |
| | | * åæ¥çæ§æ¥å£ |
| | | * |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | |
| | | log.info("-------------1111æ¥å£çæ§ç¹ä½æ°æ®å¼å§åæ¥------------------"); |
| | | |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1111); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61SecCamera> list = fzzy61Sync1111Rep.listCamera(deptId, start, end); |
| | | List<ApiConfs> apiConfs = apiConfsRep.getDataByKqdm(kqdm); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.info("-------------没æè·åå°çæ§ä¿¡æ¯------------------"); |
| | | return; |
| | | } |
| | | |
| | | //æ ¹æ®åºåºä»£ç è·ååä½ä»£ç |
| | | Api1102 api1102 = api1102Rep.findById(kqdm).get(); |
| | | Api1101 api1101 = api1101Rep.findById(api1102.getDwdm()).get(); |
| | | Api1111 apiData; |
| | | List<Api1111> listApi1111; |
| | | Integer num = 1000001; |
| | | for (Fz61SecCamera sysData : list) { |
| | | |
| | | apiData = new Api1111(); |
| | | apiData.setDwmc(api1101.getDwmc()); |
| | | apiData.setDwdm(api1101.getDwdm()); |
| | | apiData.setKqdm(api1102.getKqdm()); |
| | | apiData.setKqmc(api1102.getKqmc()); |
| | | |
| | | apiData.setSpjksbmc(api1102.getKqmc() + "-" + sysData.getName()); |
| | | apiData.setSpjksbid(api1102.getXzqhdm() + "00401327" + String.valueOf(num).substring(1)); |
| | | if (sysData.getId().contains(api1102.getXzqhdm())) { |
| | | apiData.setSpjksbid(sysData.getId()); |
| | | } |
| | | |
| | | apiData.setSpjksbxdwz("(" + Math.round(sysData.getPosX() * apiConfs.get(0).getPosX()) + "," + Math.round(sysData.getPosY() * apiConfs.get(0).getPosY()) + ")"); |
| | | apiData.setBz(sysData.getRemark()); |
| | | //è§é¢çæ§ç±»ååç¹ä½ç±»å |
| | | apiData.setSpjklx(StringUtils.isEmpty(sysData.getSpjklx()) ? "3" : sysData.getSpjklx()); |
| | | apiData.setSpdwlx(StringUtils.isEmpty(sysData.getSpdwlx()) ? "7" : sysData.getSpdwlx()); |
| | | //æä½æ å¿åæåæ´æ°æ¶é´ |
| | | apiData.setZhgxsj(new Date()); |
| | | //ä¸å¡idãåºåºç¼ç ã忥æ¶é´ |
| | | apiData.setSyncTime(new Date()); |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | |
| | | listApi1111 = api1111Rep.getApi1111ById(apiData.getSpjksbid()); |
| | | if (null != listApi1111 && listApi1111.size() > 0) { |
| | | apiData.setCzbz(listApi1111.get(0).getCzbz()); |
| | | if (StringUtils.isNotEmpty(listApi1111.get(0).getSpjklx())) { |
| | | apiData.setSpjklx(listApi1111.get(0).getSpjklx()); |
| | | } |
| | | if (StringUtils.isNotEmpty(listApi1111.get(0).getSpdwlx())) { |
| | | apiData.setSpdwlx(listApi1111.get(0).getSpdwlx()); |
| | | } |
| | | if (StringUtils.isNotEmpty(listApi1111.get(0).getHkCameraIndexCode())) { |
| | | apiData.setHkCameraIndexCode(listApi1111.get(0).getHkCameraIndexCode()); |
| | | } |
| | | if (StringUtils.isNotEmpty(listApi1111.get(0).getCfdm())) { |
| | | apiData.setCfdm(listApi1111.get(0).getCfdm()); |
| | | } |
| | | if (StringUtils.isNotEmpty(listApi1111.get(0).getAjdm())) { |
| | | apiData.setAjdm(listApi1111.get(0).getAjdm()); |
| | | } |
| | | if (StringUtils.isNotEmpty(listApi1111.get(0).getSpjksbwzys())) { |
| | | apiData.setSpjksbwzys(listApi1111.get(0).getSpjksbwzys()); |
| | | } |
| | | if (StringUtils.isNotEmpty(listApi1111.get(0).getBz())) { |
| | | apiData.setBz(listApi1111.get(0).getBz()); |
| | | } |
| | | apiData.setCzbz(listApi1111.get(0).getCzbz()); |
| | | } else { |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | } |
| | | apiData.setBizId(sysData.getId()); |
| | | |
| | | //ä¿åæ°æ® |
| | | api1111Rep.save(apiData); |
| | | num++; |
| | | log.info("1111çæ§ç¹ä½---åæ¥æ°æ®ï¼{}", apiData.toString()); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---1111çæ§ç¹ä½åæ¥æ§è¡å¤±è´¥----{}", 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.Api1101; |
| | | import com.fzzy.api.entity.Api1102; |
| | | import com.fzzy.api.entity.Api1112; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | 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.Api1112Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy40.entity.Fz40OAStaff; |
| | | import com.fzzy.async.fzzy40.repository.Fzzy40Sync1112Rep; |
| | | 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 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1112 { |
| | | |
| | | @Autowired |
| | | private Fzzy40Sync1112Rep fzzy40Sync1112Rep; |
| | | @Autowired |
| | | private Api1101Rep api1101Rep; |
| | | @Autowired |
| | | private Api1102Rep api1102Rep; |
| | | @Autowired |
| | | private Api1112Rep api1112Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * åæ¥äººåä¿¡æ¯ |
| | | * |
| | | * @param kqdm |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------1112æ¥å£äººåä¿¡æ¯æ°æ®å¼å§åæ¥------------------"); |
| | | |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1112); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | |
| | | try { |
| | | List<Fz40OAStaff> list = fzzy40Sync1112Rep.listStaff(deptId.substring(0, 4)); |
| | | if (null == list || list.isEmpty()) { |
| | | log.info("-------------没æè·åå°äººåä¿¡æ¯------------------"); |
| | | return; |
| | | } |
| | | |
| | | //æ ¹æ®åºåºä»£ç è·ååä½ä»£ç |
| | | Api1102 api1102 = api1102Rep.findById(kqdm).get(); |
| | | Api1101 api1101 = api1101Rep.findById(api1102.getDwdm()).get(); |
| | | |
| | | Api1112 apiData; |
| | | List<Api1112> api1112List; |
| | | for (Fz40OAStaff sysData : list) { |
| | | apiData = new Api1112(); |
| | | apiData.setDwmc(api1101.getDwmc()); |
| | | apiData.setDwdm(api1101.getDwdm()); |
| | | apiData.setKqdm(api1101.getKqdm()); |
| | | |
| | | apiData.setSfzhm(sysData.getSfzhm()); |
| | | apiData.setLsbm(sysData.getLsbm()); |
| | | apiData.setXzqhdm(sysData.getXzqhdm()); |
| | | apiData.setXm(sysData.getXm()); |
| | | apiData.setXb(sysData.getXb()); |
| | | apiData.setRzrq(sysData.getRzrq()); |
| | | apiData.setGwxz(sysData.getGwxz()); |
| | | apiData.setZgzt(sysData.getZgzt()); |
| | | apiData.setLzrq(sysData.getLzrq()); |
| | | apiData.setZjdh(sysData.getZjdh()); |
| | | apiData.setYddh(sysData.getYddh()); |
| | | apiData.setDzyx(sysData.getDzyx()); |
| | | apiData.setMz(sysData.getMz()); |
| | | apiData.setZzmm(sysData.getZzmm()); |
| | | apiData.setZy(sysData.getZy()); |
| | | apiData.setQdzgzchzyzgsj(sysData.getQdzgzchzyzgsj()); |
| | | apiData.setXl(StringUtils.isEmpty(sysData.getXl()) ? "3" : sysData.getXl()); |
| | | apiData.setZw(sysData.getZw()); |
| | | apiData.setRylb(sysData.getRylb()); |
| | | |
| | | apiData.setZhgxsj(sysData.getUpdateTime()); |
| | | apiData.setBizId(sysData.getSfzhm()); |
| | | |
| | | api1112List = api1112Rep.getDataByBizId(apiData.getBizId()); |
| | | if (null == api1112List || api1112List.isEmpty()) { |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | apiData.setCzbz(api1112List.get(0).getCzbz()); |
| | | } |
| | | |
| | | //ä¿åæ°æ® |
| | | api1112Rep.save(apiData); |
| | | log.info("1112人åä¿¡æ¯---åæ¥æ°æ®ï¼{}", apiData.toString()); |
| | | |
| | | } |
| | | |
| | | } catch (Exception e) { |
| | | log.error("---1112人åä¿¡æ¯åæ¥æ§è¡å¤±è´¥----{}", 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.ApiTriggerService; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.utils.FileUtils; |
| | | import com.fzzy.api.view.repository.*; |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutContract; |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutCustomer; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1201Rep; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1212Rep; |
| | | 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.math.BigDecimal; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ååä¿¡æ¯æ°æ®æ¥å£ |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1201 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1212Rep fzzySync1212Rep; |
| | | @Autowired |
| | | private Fzzy61Sync1201Rep fzzySync1201Rep; |
| | | @Autowired |
| | | private ApiTriggerService apiTriggerService; |
| | | @Autowired |
| | | private ApiConfsRep apiConfsRep; |
| | | @Autowired |
| | | private FileUtils fileUtil; |
| | | @Autowired |
| | | private Api1109Rep api1109Rep; |
| | | @Autowired |
| | | private Api1201Rep api1201Rep; |
| | | @Autowired |
| | | private Api1102Rep api1102Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | |
| | | /** |
| | | * 忥ååæ¥å£ |
| | | * |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | |
| | | log.info("-------------1201ååä¿¡æ¯æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1201); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61InoutContract> list = fzzySync1201Rep.listContract(deptId, start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.debug("-------------没æè·åå°ååä¿¡æ¯------------------"); |
| | | return; |
| | | } |
| | | |
| | | //æ ¹æ®åºåºä»£ç è·ååä½ä»£ç |
| | | Api1102 api1201 = api1102Rep.findById(kqdm).get(); |
| | | |
| | | Api1201 apiData; |
| | | List<Api1201> api1201List; |
| | | List<Fz61InoutCustomer> listCustomer; |
| | | Api1109 api1109; |
| | | List<Api1109> api1109List; |
| | | for (Fz61InoutContract sysData : list) { |
| | | |
| | | apiData = new Api1201(); |
| | | //åä½ä»£ç ï¼ 1101 æ¥å£çåä½ä»£ ç ï¼ +èªå®ä¹ç¼ç |
| | | apiData.setHth(api1201.getDwdm() + sysData.getId()); |
| | | apiData.setHtmc(sysData.getName().trim()); |
| | | apiData.setDwdm(api1201.getDwdm()); |
| | | |
| | | //ä¸å¡ç±»å |
| | | apiData.setYwlx(sysData.getType()); |
| | | apiData.setHtzl(sysData.getType()); |
| | | //客æ·ç±»å |
| | | apiData.setKhlx(sysData.getCustomerType()); |
| | | |
| | | //ä¼ä¸å®¢æ·ï¼éè¦è®¾ç½®ä¿¡ç¨ç |
| | | if ("1".equals(sysData.getCustomerType())) { |
| | | listCustomer = fzzySync1212Rep.getDataById(sysData.getCustomerId()); |
| | | if (null == listCustomer || listCustomer.isEmpty()) { |
| | | continue; |
| | | } |
| | | apiData.setKhtyshxydm(listCustomer.get(0).getKhbh()); |
| | | apiData.setSfzh(listCustomer.get(0).getCardId()); |
| | | apiData.setLxrdh(listCustomer.get(0).getPhone()); |
| | | apiData.setYzbm(StringUtils.isEmpty(listCustomer.get(0).getYzbm()) ? "000000" : listCustomer.get(0).getYzbm()); |
| | | apiData.setDzyx(listCustomer.get(0).getDzyx()); |
| | | } |
| | | |
| | | |
| | | apiData.setKhmc(sysData.getCustomerName()); |
| | | apiData.setFddbr(StringUtils.isEmpty(sysData.getCustomerSignUser()) ? null : sysData.getCustomerSignUser()); |
| | | |
| | | apiData.setQdrq(sysData.getSigningTime()); |
| | | |
| | | if (StringUtils.isEmpty(sysData.getFoodVariety())) { |
| | | continue; |
| | | } |
| | | //ç²®é£åç§ |
| | | String mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSPZ, sysData.getFoodVariety()); |
| | | apiData.setLspzdm(mappingCode); |
| | | |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSXZ, sysData.getFoodType()); |
| | | apiData.setLsxzdm(mappingCode); |
| | | |
| | | |
| | | apiData.setYsfs(StringUtils.isEmpty(sysData.getYsfs()) ? "以å
¥ä»æ°é为æ å" : sysData.getYsfs()); |
| | | |
| | | apiData.setFkfs(null == sysData.getFkfs() ? "1" : sysData.getFkfs().toString()); |
| | | //åä»·ï¼å
/å¨ |
| | | apiData.setHtdj(sysData.getPrice() == null ? 0.0 : sysData.getPrice()); |
| | | apiData.setYdgxlssl(sysData.getContactAmount() == null ? 0.0 : sysData.getContactAmount()); |
| | | |
| | | apiData.setHtzje(new BigDecimal(sysData.getMoney())); |
| | | |
| | | apiData.setJsyhtyzx(StringUtils.isEmpty(sysData.getJsyhtyzx()) ? "1" : sysData.getJsyhtyzx()); |
| | | |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_BANK, sysData.getCustomerBank()); |
| | | apiData.setKhfkhh(mappingCode); |
| | | |
| | | apiData.setKhfzh(sysData.getCustomerBankAccount()); |
| | | |
| | | apiData.setKhqyr(sysData.getCustomerSignUser()); |
| | | |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_BANK, sysData.getBank()); |
| | | apiData.setBfkhh(mappingCode == null ? "999" : mappingCode); |
| | | |
| | | apiData.setBfzh(StringUtils.isEmpty(sysData.getBankAccount()) ? "100000000000000000" : sysData.getBankAccount()); |
| | | |
| | | apiData.setWcrq(sysData.getEndTime()); |
| | | apiData.setLxrxm(StringUtils.isEmpty(sysData.getLxrxm()) ? apiData.getFddbr() : sysData.getLxrxm()); |
| | | apiData.setJsyhtbyzyy(StringUtils.isEmpty(sysData.getJsyhtbyzyy()) ? "ç»ç®ä¸ååä¸ä¸è´åå " : sysData.getJsyhtbyzyy()); |
| | | apiData.setQddd(StringUtils.isEmpty(sysData.getSignAddress()) ? "ç¾è®¢å°ç¹" : sysData.getSignAddress()); |
| | | apiData.setTxdz(StringUtils.isEmpty(sysData.getTxdz()) ? "é讯å°å" : sysData.getTxdz()); |
| | | apiData.setZhgxsj(sysData.getUpdateTime()); |
| | | apiData.setShr(StringUtils.isEmpty(sysData.getAuditUser()) ? "审æ¹äºº" : sysData.getAuditUser()); |
| | | apiData.setShsj(sysData.getAuditDate() == null ? new Date() : sysData.getAuditDate()); |
| | | apiData.setSswcsj(sysData.getRelEndTime()); |
| | | apiData.setYdwcsj(sysData.getEndTime()); |
| | | apiData.setBfqyr(StringUtils.isEmpty(sysData.getSignUser()) ? "æ¬æ¹ç¾çº¦äºº" : sysData.getSignUser()); |
| | | |
| | | //设置年度 |
| | | apiData.setLhnd(sysData.getYear()); |
| | | |
| | | apiData.setSyncTime(new Date()); |
| | | apiData.setBizId(sysData.getId()); |
| | | apiData.setKqdm(kqdm); |
| | | |
| | | api1201List = api1201Rep.getDataById(apiData.getHth()); |
| | | if (null == api1201List || api1201List.isEmpty()) { |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | apiData.setCzbz(api1201List.get(0).getCzbz()); |
| | | } |
| | | |
| | | //ä¿åæ°æ® |
| | | api1201Rep.save(apiData); |
| | | log.info("1201---åååæ¥æ°æ®ï¼{}", apiData.toString()); |
| | | |
| | | //è¥éä»¶idä¸ä¸ºç©ºï¼å夿æ¯å¦ä¸ºä¸æµ·åè®®ï¼ä¸æµ·åè®®æ¶ï¼é忶忥ååéä»¶ä¿¡æ¯ |
| | | if (StringUtils.isNotEmpty(sysData.getFileId())) { |
| | | //è¥ä¸ºä¸æµ·çå¹³å°åè®®ï¼åé忶忥ååéä»¶ä¿¡æ¯ |
| | | 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.getHth()); |
| | | //æä»¶è·¯å¾ |
| | | api1109.setWjdz(fileUtil.getCommonFilePath(sysData.getFileTime()) + sysData.getFileId()); |
| | | |
| | | String kzm = "pdf"; //æ©å±åï¼é»è®¤ä¸ºpdf |
| | | String[] split = sysData.getFileId().split("\\."); |
| | | if (split.length > 0) { |
| | | kzm = split[split.length - 1]; |
| | | } |
| | | |
| | | //æä»¶åç§°(ååå·+æ©å±å) |
| | | api1109.setWjmc(apiData.getHth() + "." + kzm); |
| | | //æä»¶ç±»å |
| | | api1109.setWjlx("6"); //6-ååæä»¶(pdf,jpg) |
| | | api1109.setYwdh(apiData.getHth()); //6-ååæä»¶(pdf,jpg) |
| | | //æä½æ å¿åæåæ´æ°æ¶é´ |
| | | api1109.setZhgxsj(new Date()); |
| | | |
| | | //ä¸å¡idãåºåºç¼ç ã忥æ¶é´ |
| | | api1109.setBizId(apiData.getHth()); |
| | | 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); |
| | | log.info("1201---ååéä»¶ä¿¡æ¯åæ¥ï¼{}", api1109.toString()); |
| | | } |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---1201åå忥æ§è¡å¤±è´¥----{}", 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.*; |
| | | 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.Fz61InoutNoticeIn; |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutRecord; |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutRecordItem; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1202Rep; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61SyncInoutRecordItemRep; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61SyncNoticeInRep; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.apache.commons.lang.time.DateFormatUtils; |
| | | 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; |
| | | |
| | | /** |
| | | * ç²®é£å
¥åºä¿¡æ¯ |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1202 { |
| | | |
| | | /** |
| | | * å
¥åºç±»å |
| | | */ |
| | | private final static String INOUT_TYPE_IN = "IN"; |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1202Rep fzzySync1202Rep; |
| | | @Autowired |
| | | private Fzzy61SyncInoutRecordItemRep fzzy61SyncInoutRecordItemRep; |
| | | @Autowired |
| | | private Fzzy61SyncNoticeInRep fzzySyncNoticeInRep; |
| | | @Autowired |
| | | private ApiTriggerService apiTriggerService; |
| | | @Autowired |
| | | private Api1201Rep api1201Rep; |
| | | @Autowired |
| | | private Api1202Rep api1202Rep; |
| | | @Autowired |
| | | private Api1204Rep api1204Rep; |
| | | @Autowired |
| | | private Api1208Rep api1208Rep; |
| | | @Autowired |
| | | private Api1404Rep api1404Rep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * ç²®é£å
¥åºä¿¡æ¯ |
| | | * |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------1202æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1202); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | //è·åç²®é£å
¥åºè®°å½ä¿¡æ¯ï¼æ ¹æ®æµç¨å®ææ¶é´è·å |
| | | List<Fz61InoutRecord> list = fzzySync1202Rep.listInoutRecord(deptId, INOUT_TYPE_IN, start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.info("-------------没æè·åå°ç²®é£å
¥åºä¿¡æ¯------------------"); |
| | | return; |
| | | } |
| | | |
| | | Api1202 apiData; |
| | | Api1105 api1105; |
| | | List<Fz61InoutNoticeIn> listInoutNotice; |
| | | List<Api1202> api1202List; |
| | | List<Fz61InoutRecordItem> listInoutRecordItem; |
| | | List<Api1201> api1201List; |
| | | List<Api1204> api1204List; |
| | | List<Api1404> api1404List; |
| | | for (Fz61InoutRecord sysData : list) { |
| | | if (sysData.getRecordStatus().equals("DEL") || sysData.getRecordStatus().equals("ERROR")) { |
| | | continue; |
| | | } |
| | | if (!sysData.getProgress().equals("RECORD")) { |
| | | continue; |
| | | } |
| | | if (null == sysData.getRecordWeight() || sysData.getRecordWeight() == 0) { |
| | | sysData.setRecordWeight(sysData.getSettleWeight()); |
| | | } |
| | | //夿å鿝å¦å¤§äº0ï¼çäº0表示ä¸åæ ¼ï¼ä¸è¿è¡åæ¥ä¸ä¼ |
| | | if (null == sysData.getRecordWeight() || sysData.getRecordWeight() == 0) { |
| | | continue; |
| | | } |
| | | //è·åè´§ä½ä¿¡æ¯ |
| | | api1105 = commonService.getApi1105Cache(sysData.getDepotId()); |
| | | if (null == api1105) { |
| | | continue; |
| | | } |
| | | apiData = new Api1202(); |
| | | |
| | | apiData.setRkywdh(Constant.INOUT_TYPE_14 + sysData.getId().substring(4)); |
| | | |
| | | //è´§ä½ä»£ç |
| | | apiData.setHwdm(api1105.getHwdm()); |
| | | apiData.setYwlx(Constant.INOUT_TYPE_2); |
| | | apiData.setYwrq(DateUtils.parseDate(sysData.getId().substring(2, 10), new String[]{"yyyyMMdd"})); |
| | | apiData.setCyr(sysData.getUserName().trim()); |
| | | |
| | | //é»è®¤ä¸ä¸ªéä¾¿å¼ |
| | | apiData.setLxdh(StringUtils.isEmpty(sysData.getUserContact()) ? "13012345678" : sysData.getUserContact().trim()); |
| | | |
| | | if (StringUtils.isEmpty(sysData.getUserId()) || sysData.getUserId().length() != 18) { |
| | | sysData.setUserId("410183199003187055"); |
| | | } |
| | | apiData.setSfzh(sysData.getUserId()); |
| | | |
| | | //è·åéç¥åä¿¡æ¯ï¼æ¥è¯¢ååå·å计åæç»å· |
| | | listInoutNotice = fzzySyncNoticeInRep.listInoutNoticeInById(sysData.getNoticeId()); |
| | | if (null != listInoutNotice && listInoutNotice.size() > 0) { |
| | | //ååå· |
| | | if (StringUtils.isNotEmpty(listInoutNotice.get(0).getContractId())) { |
| | | api1201List = api1201Rep.getDataByBizId(listInoutNotice.get(0).getContractId()); |
| | | if (null != api1201List && api1201List.size() > 0) { |
| | | apiData.setHth(api1201List.get(0).getHth()); |
| | | } |
| | | } |
| | | if (StringUtils.isNotEmpty(listInoutNotice.get(0).getPlanId())) { |
| | | api1404List = api1404Rep.getDataByBizIdAndKqdm(listInoutNotice.get(0).getPlanId(), kqdm); |
| | | if (null != api1404List && api1404List.size() > 0) { |
| | | apiData.setJhmxh(api1404List.get(0).getJhmxdh()); |
| | | if (StringUtils.isEmpty(sysData.getFoodYear())) { |
| | | sysData.setFoodYear(api1404List.get(0).getShnd()); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | //ç²®æåä½å½å±ä»£ç |
| | | List<Api1208> dataByHwdm = api1208Rep.findDataByHwdm(apiData.getHwdm()); |
| | | if (null != dataByHwdm && dataByHwdm.size() > 0) { |
| | | apiData.setLqgsdwdm(StringUtils.isEmpty(dataByHwdm.get(0).getLqgsdwdm()) ? kqdm.substring(0, 18) : dataByHwdm.get(0).getLqgsdwdm()); |
| | | } else { |
| | | apiData.setLqgsdwdm(kqdm.substring(0, 18)); |
| | | } |
| | | apiData.setSlr("å®ç²®äºº"); |
| | | apiData.setSlrdz("å®ç²®äººå°å"); |
| | | apiData.setBz(StringUtils.isEmpty(sysData.getRemarks()) ? "夿³¨" : sysData.getRemarks()); |
| | | |
| | | apiData.setXxdz(StringUtils.isEmpty(sysData.getUserAddress()) ? "详ç»å°å" : sysData.getUserAddress()); |
| | | |
| | | //è¿è¾å·¥å
·ï¼è¥ä¸ºç©ºï¼åé»è®¤ç»1-汽车 |
| | | apiData.setYsgj(StringUtils.isEmpty(sysData.getTransType()) ? "1" : sysData.getTransType()); |
| | | |
| | | //车è¹å· |
| | | apiData.setCch(sysData.getPlateNum().trim()); |
| | | |
| | | apiData.setDjsj(sysData.getRegisterTime()); |
| | | |
| | | //çææ¹å¼ |
| | | apiData.setScfs(1); |
| | | if (StringUtils.isNotEmpty(sysData.getRecordStatus()) && sysData.getRecordStatus().equals("ADD")) { |
| | | apiData.setScfs(2); |
| | | apiData.setSdblyy("åºåºåçµå¯¼è´æ æ³ææµç¨è¿è¡åºåº"); |
| | | } |
| | | |
| | | //ç²®é£åç§ |
| | | String mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSPZ, sysData.getFoodVariety()); |
| | | apiData.setLspzdm(mappingCode); |
| | | |
| | | //ç²®é£æ§è´¨ |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSXZ, sysData.getFoodType()); |
| | | apiData.setLsxzdm(mappingCode); |
| | | |
| | | apiData.setShnd(StringUtils.isEmpty(sysData.getFoodYear()) ? DateFormatUtils.format(sysData.getRegisterTime(), "yyyy") : sysData.getFoodYear()); |
| | | |
| | | //产å°ä»£ç |
| | | mappingCode = commonService.getFoodLocationIdFromCache(sysData.getFoodLocation()); |
| | | if (StringUtils.isEmpty(mappingCode)) { |
| | | mappingCode = apiData.getHwdm().substring(2, 8); |
| | | } |
| | | apiData.setCddm(mappingCode); |
| | | |
| | | //æ£æ¤ç±»åï¼é»è®¤0-ç§°éå
¥åº |
| | | apiData.setJjlx(sysData.getJjlx()); |
| | | apiData.setBzbdbz(sysData.getDbz() == null ? 25 : sysData.getDbz()); |
| | | |
| | | //æ¯éä¿¡æ¯ |
| | | apiData.setMz(sysData.getFullWeight()); |
| | | if (null == sysData.getFullWeightTime()) { |
| | | sysData.setFullWeightTime(DateUtils.addMinutes(sysData.getRegisterTime(), 25)); |
| | | } |
| | | if (!sysData.getFullWeightTime().after(sysData.getRegisterTime())) { |
| | | sysData.setFullWeightTime(DateUtils.addMinutes(sysData.getRegisterTime(), 25)); |
| | | } |
| | | apiData.setMzjlsj(sysData.getFullWeightTime()); |
| | | apiData.setMzjby(sysData.getFullWeightUser()); |
| | | apiData.setMzjly(sysData.getFullWeightUser()); |
| | | |
| | | apiData.setZcy(null == sysData.getHandleUser() ? sysData.getFullWeightUser() : sysData.getHandleUser()); |
| | | |
| | | //ç®éä¿¡æ¯ |
| | | apiData.setPz(sysData.getEmptyWeight()); |
| | | if (null == sysData.getEmptyWeightTime()) { |
| | | sysData.setEmptyWeightTime(DateUtils.addMinutes(sysData.getFullWeightTime(), 60)); |
| | | } |
| | | if (!sysData.getEmptyWeightTime().after(sysData.getFullWeightTime())) { |
| | | sysData.setEmptyWeightTime(DateUtils.addMinutes(sysData.getFullWeightTime(), 60)); |
| | | } |
| | | |
| | | apiData.setPzjlsj(sysData.getEmptyWeightTime()); |
| | | apiData.setPzjby(sysData.getEmptyWeightUser()); |
| | | apiData.setPzjly(sysData.getEmptyWeightUser()); |
| | | |
| | | //æ£é åéªæ»æ£é |
| | | apiData.setZjklxj(sysData.getDeCheck()); |
| | | apiData.setBzw(StringUtils.isEmpty(sysData.getBzw()) ? "9" : sysData.getBzw()); |
| | | apiData.setBzwkl(0 - sysData.getDePackage()); |
| | | apiData.setBzbjs(sysData.getBzbjs()); |
| | | apiData.setCmsj(sysData.getCompleteTime()); |
| | | //ç»ç®åå· |
| | | if (StringUtils.isNotEmpty(sysData.getSettleId())) { |
| | | apiData.setRkjsdh(kqdm + sysData.getSettleId()); |
| | | } |
| | | if (StringUtils.isNotEmpty(apiData.getHth())) { |
| | | api1204List = api1204Rep.getDataByHthAndHwdm(apiData.getHth(), apiData.getHwdm()); |
| | | if (null == api1204List || api1204List.isEmpty()) { |
| | | api1204List = api1204Rep.getDataByHth(apiData.getHth()); |
| | | if (null != api1204List && api1204List.size() > 0) { |
| | | apiData.setRkjsdh(api1204List.get(0).getRkjsdh()); |
| | | } |
| | | } else { |
| | | apiData.setRkjsdh(api1204List.get(0).getRkjsdh()); |
| | | } |
| | | } |
| | | //å
¶å® |
| | | apiData.setQtkl(0 - sysData.getDeOther()); |
| | | //å¼ä» ç°åºæ£é |
| | | apiData.setXckl(0 - sysData.getDeHandle()); |
| | | |
| | | apiData.setJz(sysData.getRecordWeight()); |
| | | if (!sysData.getCompleteTime().after(sysData.getEmptyWeightTime())) { |
| | | sysData.setCompleteTime(DateUtils.addMinutes(sysData.getEmptyWeightTime(), 10)); |
| | | } |
| | | apiData.setCmsj(sysData.getCompleteTime()); |
| | | |
| | | //æä½æ å¿åæåæ´æ°æ¶é´ |
| | | apiData.setZhgxsj(sysData.getUpdateTime()); |
| | | |
| | | //ä¸å¡idãåºåºç¼ç ã忥æ¶é´ |
| | | apiData.setBizId(sysData.getId()); |
| | | apiData.setKqdm(kqdm); |
| | | apiData.setSyncTime(new Date()); |
| | | apiData.setKlyy("æ£éåå "); |
| | | |
| | | apiData.setCmqrmgryxm(StringUtils.isEmpty(sysData.getRegisterUser()) ? "ç»è®°äºº" : sysData.getRegisterUser()); |
| | | apiData.setDjmgryxm(StringUtils.isEmpty(sysData.getRegisterUser()) ? "ç»è®°äºº" : sysData.getRegisterUser()); |
| | | //01:è¡¨ç¤ºå¤§åæ±½è½¦å·ç,é»åºé»åï¼ 02:表示å°å汽车å·ç,èåºç½åï¼ 03:表示æ°è½æºæ±½è½¦å·ç,绿åºé» åï¼ |
| | | //04:表示åç¨è½¦è½¦çå·ï¼ç»¿åºç½åï¼ LS:表示临æ¶èæå·çï¼ä»
éäºå® 粮车æ åºå®å·çæ¶ä½¿ç¨ |
| | | apiData.setCchlx("01"); |
| | | apiData.setLdd("è£
ç²®å°ç¹"); |
| | | apiData.setZkj(0.0); |
| | | apiData.setZlfyzkl(0.0); |
| | | apiData.setQzsfzkl(0.0); |
| | | apiData.setQzzzzkl(0.0); |
| | | apiData.setQzgwcmkl(0.0); |
| | | apiData.setQzhhkl(0.0); |
| | | apiData.setQzbwslkl(0.0); |
| | | apiData.setQzhlmkl(0.0); |
| | | apiData.setQzsmlkl(0.0); |
| | | apiData.setQzzjmlkl(0.0); |
| | | apiData.setQzqtkl(0.0); |
| | | apiData.setZkhyy("墿£ä»·åå "); |
| | | apiData.setZxzydw(api1105.getBgdw()); |
| | | if (sysData.getCompanyId().equals("5329")) { |
| | | apiData.setLqgsdwdm("91461604MA56D2AM1X"); |
| | | } |
| | | api1202List = api1202Rep.getDataById(apiData.getRkywdh()); |
| | | if (null == api1202List || api1202List.isEmpty()) { |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | apiData.setCzbz(api1202List.get(0).getCzbz()); |
| | | } |
| | | //夿æ¯å¦ä¸ºè¹è¿ |
| | | if (StringUtils.isNotEmpty(sysData.getTransType()) && sysData.getTransType().equals("3")) { |
| | | listInoutRecordItem = fzzy61SyncInoutRecordItemRep.findDataByRecordId(sysData.getId()); |
| | | if (null == listInoutRecordItem || listInoutRecordItem.isEmpty()) { |
| | | api1202Rep.save(apiData); |
| | | continue; |
| | | } |
| | | |
| | | int idNum = Integer.valueOf(sysData.getId().substring(12)) * 100 + 10001; |
| | | for (Fz61InoutRecordItem fz61InoutRecordItem : listInoutRecordItem) { |
| | | if ("DEL".equals(fz61InoutRecordItem.getRecordStatus())) { |
| | | continue; |
| | | } |
| | | if (fz61InoutRecordItem.getSettleWeight() <= 0) { |
| | | continue; |
| | | } |
| | | apiData.setRkywdh(Constant.INOUT_TYPE_14 + sysData.getId().substring(4, 10) + String.valueOf(idNum).substring(1)); |
| | | apiData.setMz(fz61InoutRecordItem.getFullWeight()); |
| | | apiData.setPz(fz61InoutRecordItem.getEmptyWeight()); |
| | | apiData.setJz(fz61InoutRecordItem.getSettleWeight()); |
| | | apiData.setMzjlsj(fz61InoutRecordItem.getFullWeightTime()); |
| | | apiData.setPzjlsj(fz61InoutRecordItem.getEmptyWeightTime()); |
| | | apiData.setQtkl(0 - fz61InoutRecordItem.getDe()); |
| | | api1202List = api1202Rep.getDataById(apiData.getRkywdh()); |
| | | if (null == api1202List || api1202List.isEmpty()) { |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | apiData.setCzbz(api1202List.get(0).getCzbz()); |
| | | } |
| | | api1202Rep.save(apiData); |
| | | idNum++; |
| | | } |
| | | } else { |
| | | //ä¿åæ°æ® |
| | | api1202Rep.save(apiData); |
| | | } |
| | | |
| | | log.info("1202---åæ¥æ°æ®ï¼{}", apiData.toString()); |
| | | } |
| | | } catch (Exception e) { |
| | | |
| | | log.error("---1202æ°æ®åæ¥å¤±è´¥----{}", 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.Api1202; |
| | | import com.fzzy.api.entity.Api1203; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.entity.GbCheckItem; |
| | | import com.fzzy.api.service.ApiTriggerService; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.utils.DateUtil; |
| | | import com.fzzy.api.view.repository.Api1202Rep; |
| | | import com.fzzy.api.view.repository.Api1203Rep; |
| | | 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.Fz61InoutRecord; |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutRecordItem; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1202Rep; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1203Rep; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61SyncInoutRecordItemRep; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.apache.commons.lang.time.DateFormatUtils; |
| | | import org.apache.commons.lang.time.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç²®é£å
¥åºæ£éªä¿¡æ¯ |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1203 { |
| | | |
| | | /** |
| | | * å
¥åºç±»å |
| | | */ |
| | | private final static String INOUT_TYPE_IN = "IN"; |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1202Rep fzzySync1202Rep; |
| | | @Autowired |
| | | private Fzzy61SyncInoutRecordItemRep fzzy61SyncInoutRecordItemRep; |
| | | @Autowired |
| | | private Fzzy61Sync1203Rep fzzySync1203Rep; |
| | | @Autowired |
| | | private ApiTriggerService apiTriggerService; |
| | | @Autowired |
| | | private Api1202Rep api1202Rep; |
| | | @Autowired |
| | | private Api1203Rep api1203Rep; |
| | | @Autowired |
| | | private GbCheckItemRep gbCheckItemRep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * ç²®é£å
¥åºæ£éªä¿¡æ¯ |
| | | * |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | |
| | | log.info("-------------1203å
¥åºæ£éªæ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1203); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | //è·åç²®é£å
¥åºè®°å½ä¿¡æ¯ |
| | | List<Fz61InoutRecord> list = fzzySync1202Rep.listInoutRecord(deptId, INOUT_TYPE_IN, start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.info("-------------没æè·åå°ç²®é£å
¥åºä¿¡æ¯------------------"); |
| | | return; |
| | | } |
| | | |
| | | Api1203 apiData; |
| | | List<Fz61CheckItem> fz61CheckItems; |
| | | List<GbCheckItem> gbCheckList; |
| | | String jyxm; |
| | | String jyz; |
| | | String zkj; |
| | | String zkl; |
| | | List<Api1203> api1203List; |
| | | List<Api1202> api1102List; |
| | | List<Fz61InoutRecordItem> listInoutRecordItem; |
| | | List<String> listIds; |
| | | for (Fz61InoutRecord sysData : list) { |
| | | listIds = new ArrayList<>(); |
| | | //夿æ¯å¦ä¸ºè¹è¿ |
| | | if (StringUtils.isNotEmpty(sysData.getTransType()) && sysData.getTransType().equals("3")) { |
| | | listInoutRecordItem = fzzy61SyncInoutRecordItemRep.findDataByRecordId(sysData.getId()); |
| | | if (null != listInoutRecordItem && listInoutRecordItem.size() > 0) { |
| | | int idNum = Integer.valueOf(sysData.getId().substring(12)) * 100 + 10001; |
| | | |
| | | for (Fz61InoutRecordItem fz61InoutRecordItem : listInoutRecordItem) { |
| | | if ("DEL".equals(fz61InoutRecordItem.getRecordStatus())) { |
| | | continue; |
| | | } |
| | | listIds.add(Constant.INOUT_TYPE_14 + sysData.getId().substring(4, 10) + String.valueOf(idNum).substring(1)); |
| | | idNum++; |
| | | } |
| | | } else { |
| | | listIds.add(Constant.INOUT_TYPE_14 + sysData.getId().substring(4)); |
| | | } |
| | | } else { |
| | | listIds.add(Constant.INOUT_TYPE_14 + sysData.getId().substring(4)); |
| | | } |
| | | |
| | | //è·åå
¥åºè´¨æ£ä¿¡æ¯ |
| | | fz61CheckItems = fzzySync1203Rep.listInoutCheckItem(sysData.getCheckId(), deptId.substring(0, 4)); |
| | | if (null == fz61CheckItems || fz61CheckItems.isEmpty()) { |
| | | log.info("-------------没æè·åå°å½åå
¥åºè´¨æ£ä¿¡æ¯--------------"); |
| | | continue; |
| | | } |
| | | |
| | | for (String listId : listIds) { |
| | | //æ¥è¯¢ç²®é£å
¥åºä¿¡æ¯ï¼è¥ä¸ºç©ºåä¸è¿è¡åæ¥ä¸ä¼ |
| | | api1102List = api1202Rep.getDataById(listId); |
| | | if (null == api1102List || api1102List.isEmpty()) { |
| | | continue; |
| | | } |
| | | |
| | | apiData = new Api1203(); |
| | | |
| | | apiData.setRkjydh(api1102List.get(0).getRkywdh()); |
| | | //è´§ä½ä»£ç |
| | | apiData.setHwdm(api1102List.get(0).getHwdm()); |
| | | apiData.setRkywdh(api1102List.get(0).getRkywdh()); |
| | | if (null == sysData.getFullWeightTime()) { |
| | | sysData.setFullWeightTime(DateUtils.addMinutes(sysData.getRegisterTime(), 5)); |
| | | } |
| | | |
| | | //夿ä¸å¡æ¶é´ä¸åæ®å·æ¯å¦å¹é
ï¼è¥ä¸å¹é
ï¼åæ´æ¹ä¸å¡æ¶é´ä¸ºåæ®å·æå¨çæ¶é´ |
| | | String time = apiData.getRkjydh().substring(2, 8); |
| | | if (sysData.getCheckTime() != null) { |
| | | String isCheckTime = DateFormatUtils.format(sysData.getCheckTime(), "yyMMdd"); |
| | | if (!isCheckTime.equals(time)) { |
| | | int difDay = DateUtil.difDay1(sysData.getRegisterTime(), sysData.getCheckTime()); |
| | | if (difDay == 0) { |
| | | apiData.setRkjydh("14" + isCheckTime + "01" + api1102List.get(0).getRkywdh().substring(10)); |
| | | } else { |
| | | apiData.setRkjydh("14" + isCheckTime + String.format("%02d", difDay) + api1102List.get(0).getRkywdh().substring(10)); |
| | | } |
| | | } |
| | | } |
| | | |
| | | //è¹è¿ä½¿ç¨å
¥åºåæ®å·åè´¨æ£åå· |
| | | if (StringUtils.isNotEmpty(sysData.getTransType()) && sysData.getTransType().equals("3")) { |
| | | apiData.setRkjydh(api1102List.get(0).getRkywdh()); |
| | | } |
| | | |
| | | apiData.setQyrxm(sysData.getCheckUser()); |
| | | //æ¦æ ·æ¹å¼ 2-æºè½éæº |
| | | apiData.setQyfs("2"); |
| | | |
| | | //æ£æµé¡¹ï¼æ£æµå¼ï¼å¢æ£ä»·å墿£é |
| | | jyxm = ""; |
| | | jyz = ""; |
| | | zkj = ""; |
| | | zkl = ""; |
| | | for (Fz61CheckItem fz61CheckItem : fz61CheckItems) { |
| | | gbCheckList = gbCheckItemRep.findByBizCode(fz61CheckItem.getStandardId()); |
| | | |
| | | if (gbCheckList == null || gbCheckList.isEmpty()) { |
| | | continue; |
| | | } |
| | | if (StringUtils.isEmpty(fz61CheckItem.getValue())) { |
| | | continue; |
| | | } |
| | | jyxm += "," + gbCheckList.get(0).getCode(); |
| | | jyz += "," + fz61CheckItem.getValue(); |
| | | zkj += ",0.0"; |
| | | zkl += ",0.0"; |
| | | } |
| | | if (jyxm.length() > 0) { |
| | | jyxm = jyxm.substring(1); |
| | | } |
| | | if (jyz.length() > 0) { |
| | | jyz = jyz.substring(1); |
| | | } |
| | | apiData.setJyxm(jyxm); |
| | | apiData.setJyz(jyz); |
| | | apiData.setZkj(StringUtils.isEmpty(zkj) ? "" : zkj.substring(1)); |
| | | apiData.setZkl(StringUtils.isEmpty(zkl) ? "" : zkl.substring(1)); |
| | | if ("UNPASS".equals(sysData.getCheckStatus())) { |
| | | apiData.setJyjg("0"); |
| | | } else { |
| | | apiData.setJyjg("1"); |
| | | } |
| | | apiData.setJyrxm(sysData.getCheckUser()); |
| | | if (null == sysData.getCheckTime()) { |
| | | sysData.setCheckTime(DateUtils.addMinutes(sysData.getFullWeightTime(), -5)); |
| | | } |
| | | if (sysData.getCheckTime().after(sysData.getEmptyWeightTime())) { |
| | | sysData.setCheckTime(DateUtils.addMinutes(sysData.getFullWeightTime(), -5)); |
| | | } |
| | | apiData.setJysj(sysData.getCheckTime()); |
| | | if (null == sysData.getSampleTime()) { |
| | | sysData.setSampleTime(DateUtils.addMinutes(sysData.getCheckTime(), -1)); |
| | | } |
| | | if (sysData.getSampleTime().after(sysData.getCheckTime())) { |
| | | sysData.setSampleTime(DateUtils.addMinutes(sysData.getCheckTime(), -1)); |
| | | } |
| | | apiData.setQysj(sysData.getSampleTime()); |
| | | |
| | | //ç²®é£åç§ |
| | | String mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSPZ, sysData.getFoodVariety()); |
| | | apiData.setLspzdm(mappingCode); |
| | | |
| | | //ä¿ç®¡å夿 ¸ |
| | | apiData.setBgyfh(apiData.getJyjg()); |
| | | apiData.setSpaqzbsfhg("1"); |
| | | |
| | | //ç²®é£ç级 |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSDJ, sysData.getFoodLevel()); |
| | | apiData.setLsdd(mappingCode); |
| | | |
| | | //æä½æ å¿åæåæ´æ°æ¶é´ |
| | | apiData.setZhgxsj(sysData.getCompleteTime()); |
| | | |
| | | //ä¸å¡idãåºåºç¼ç ã忥æ¶é´ |
| | | apiData.setBizId(sysData.getId()); |
| | | apiData.setKqdm(kqdm); |
| | | apiData.setSyncTime(new Date()); |
| | | |
| | | api1203List = api1203Rep.getDataById(apiData.getRkjydh()); |
| | | if (null == api1203List || api1203List.isEmpty()) { |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | apiData.setCzbz(api1203List.get(0).getCzbz()); |
| | | } |
| | | |
| | | api1203Rep.save(apiData); |
| | | log.info("1203å
¥åºæ£éª---åæ¥æ°æ®ï¼{}", apiData.toString()); |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---1203å
¥åºæ£éªæ°æ®åæ¥å¤±è´¥----{}", e.toString()); |
| | | apiLog.setResult("åæ¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | //夿ä¸å¡æ¶é´ä¸åæ®å·æ¯å¦å¹é
ï¼è¥ä¸å¹é
ï¼åæ´æ¹ä¸å¡æ¶é´ä¸ºåæ®å·æå¨çæ¶é´ |
| | | String id = "142508200001"; |
| | | String time = id.substring(2, 8); |
| | | |
| | | String isCheckTime = "250821"; |
| | | if (!isCheckTime.equals(time)) { |
| | | int difDay = 2; |
| | | String idd = "14" + isCheckTime + difDay + id.substring(9); |
| | | System.out.println(idd); |
| | | } |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.impl; |
| | | |
| | | import com.fzzy.api.Constant; |
| | | import com.fzzy.api.entity.Api1102; |
| | | import com.fzzy.api.entity.Api1105; |
| | | import com.fzzy.api.entity.Api1204; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.service.ApiCommonService; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.Api1102Rep; |
| | | import com.fzzy.api.view.repository.Api1204Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutSettle; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1204Rep; |
| | | 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 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1204 { |
| | | |
| | | /** |
| | | * å
¥åºç±»å |
| | | */ |
| | | private final static String INOUT_TYPE_IN = "IN"; |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1204Rep fzzy61Sync1204Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | @Autowired |
| | | private Api1102Rep api1102Rep; |
| | | @Autowired |
| | | private Api1204Rep api1204Rep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | |
| | | /** |
| | | * ç²®é£å
¥åºç»ç®ä¿¡æ¯åæ¥ |
| | | * |
| | | * @param kqdm |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | |
| | | log.info("-------------1204å
¥åºç»ç®æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1204); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | //è·åç²®é£å
¥åºç»ç®ä¿¡æ¯ |
| | | List<Fz61InoutSettle> list = fzzy61Sync1204Rep.listInoutSettle(deptId, INOUT_TYPE_IN, start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.info("-------------没æè·åå°ç²®é£å
¥åºç»ç®ä¿¡æ¯------------------"); |
| | | return; |
| | | } |
| | | //æ ¹æ®åºåºä»£ç è·ååºåºä¿¡æ¯ |
| | | Api1102 api1102 = api1102Rep.findById(kqdm).get(); |
| | | |
| | | Api1204 apiData; |
| | | Api1105 api1105; |
| | | List<Api1204> api1204List; |
| | | for (Fz61InoutSettle sysData : list) { |
| | | |
| | | apiData = new Api1204(); |
| | | //å
¥åºç»ç®åå·:åºåºä»£ç + yyyyMMdd + 4为顺åºå· |
| | | apiData.setRkjsdh(kqdm + sysData.getId()); |
| | | |
| | | //ååå· |
| | | if(StringUtils.isNotEmpty(sysData.getContractId())){ |
| | | apiData.setHth(api1102.getDwdm() + sysData.getContractId()); |
| | | } |
| | | |
| | | if(StringUtils.isNotEmpty(sysData.getDepotId())){ |
| | | api1105 = commonService.getApi1105Cache(sysData.getDepotId()); |
| | | //è´§ä½ä»£ç |
| | | apiData.setHwdm(api1105.getHwdm()); |
| | | } |
| | | |
| | | //ç»ç®ééãç»ç®åä»·ãç»ç®éé¢ãç»ç®æ¶é´ |
| | | apiData.setJssl(sysData.getSettleWeight()); |
| | | apiData.setJsdj(sysData.getPayPrice()); |
| | | apiData.setJsje(sysData.getPayMoney()); |
| | | apiData.setJssj(sysData.getPayTime()); |
| | | |
| | | //ç»ç®æ¹å¼ |
| | | apiData.setJsfs(sysData.getPayType()); |
| | | |
| | | apiData.setSkr(sysData.getPayee()); |
| | | apiData.setYhhbdm(sysData.getBankCategory()); |
| | | apiData.setSkrsfzh(sysData.getPayeeId()); |
| | | apiData.setKhhh(sysData.getBankCode()); |
| | | apiData.setKhhmc(sysData.getBank()); |
| | | apiData.setYhzh(sysData.getBankNum()); |
| | | apiData.setFphm(""); |
| | | apiData.setFpzt(""); |
| | | apiData.setFkdw(sysData.getPayUnit()); |
| | | |
| | | //æä½æ å¿åæåæ´æ°æ¶é´ |
| | | apiData.setZhgxsj(new Date()); |
| | | |
| | | //ä¸å¡idãåºåºç¼ç ã忥æ¶é´ |
| | | apiData.setBizId(sysData.getId()); |
| | | apiData.setKqdm(kqdm); |
| | | apiData.setSyncTime(new Date()); |
| | | log.info("1204å
¥åºç»ç®---åæ¥æ°æ®ï¼{}", apiData.toString()); |
| | | //ä¿åæ°æ® |
| | | api1204List = api1204Rep.getDataById(apiData.getRkjsdh()); |
| | | if (null == api1204List || api1204List.isEmpty()) { |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | apiData.setCzbz(api1204List.get(0).getCzbz()); |
| | | } |
| | | api1204Rep.save(apiData); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---1204å
¥åºç»ç®åæ¥å¤±è´¥----{}", 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.*; |
| | | 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.Fz61InoutNoticeOut; |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutRecord; |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutRecordItem; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1202Rep; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61SyncInoutRecordItemRep; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61SyncNoticeOutRep; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.apache.commons.lang.time.DateFormatUtils; |
| | | 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; |
| | | |
| | | /** |
| | | * ç²®é£åºåºä¿¡æ¯ |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1205 { |
| | | |
| | | /** |
| | | * åºåºç±»å |
| | | */ |
| | | private final static String INOUT_TYPE_OUT = "OUT"; |
| | | @Autowired |
| | | private Fzzy61Sync1202Rep fzzySync1202Rep; |
| | | @Autowired |
| | | private Fzzy61SyncInoutRecordItemRep fzzy61SyncInoutRecordItemRep; |
| | | @Autowired |
| | | private Fzzy61SyncNoticeOutRep fzzySyncNoticeOutRep; |
| | | @Autowired |
| | | private ApiTriggerService apiTriggerService; |
| | | @Autowired |
| | | private Api1201Rep api1201Rep; |
| | | @Autowired |
| | | private Api1205Rep api1205Rep; |
| | | @Autowired |
| | | private Api1206Rep api1206Rep; |
| | | @Autowired |
| | | private Api1310Rep api1310Rep; |
| | | @Autowired |
| | | private Api1404Rep api1404Rep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * ç²®é£åºåºä¿¡æ¯ |
| | | * |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | |
| | | log.info("-------------1205åºåºä¿¡æ¯æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1205); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | //è·åç²®é£åºåºä¿¡æ¯ï¼æ ¹æ®æµç¨å®ææ¶é´è·å |
| | | List<Fz61InoutRecord> list = fzzySync1202Rep.listInoutRecord(deptId, INOUT_TYPE_OUT, start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.info("-------------没æè·åå°ç²®é£åºåºä¿¡æ¯------------------"); |
| | | return; |
| | | } |
| | | |
| | | Api1205 apiData; |
| | | Api1105 api1105; |
| | | List<Fz61InoutNoticeOut> listInoutNotice; |
| | | List<Api1205> api1205List; |
| | | List<Api1206> api1206List; |
| | | List<Fz61InoutRecordItem> listInoutRecordItem; |
| | | for (Fz61InoutRecord sysData : list) { |
| | | if (sysData.getRecordStatus().equals("DEL") || sysData.getRecordStatus().equals("ERROR")) { |
| | | continue; |
| | | } |
| | | if (!sysData.getProgress().equals("RECORD")) { |
| | | continue; |
| | | } |
| | | if (null == sysData.getRecordWeight() || sysData.getRecordWeight() == 0) { |
| | | sysData.setRecordWeight(sysData.getSettleWeight()); |
| | | } |
| | | //夿å鿝å¦å¤§äº0ï¼çäº0表示ä¸åæ ¼ï¼ä¸è¿è¡åæ¥ä¸ä¼ |
| | | if (null == sysData.getRecordWeight() || sysData.getRecordWeight() == 0) { |
| | | continue; |
| | | } |
| | | //è·åè´§ä½ä¿¡æ¯ |
| | | api1105 = commonService.getApi1105Cache(sysData.getDepotId()); |
| | | if (null == api1105) { |
| | | continue; |
| | | } |
| | | apiData = new Api1205(); |
| | | apiData.setCkywdh(Constant.INOUT_TYPE_15 + sysData.getId().substring(4)); |
| | | |
| | | //è´§ä½ä»£ç |
| | | apiData.setHwdm(api1105.getHwdm()); |
| | | apiData.setYwlx(Constant.INOUT_TYPE_1); |
| | | apiData.setYwrq(DateUtils.parseDate(sysData.getId().substring(2, 10), new String[]{"yyyyMMdd"})); |
| | | |
| | | //é»è®¤ä¸ä¸ªéä¾¿å¼ |
| | | apiData.setLxdh(StringUtils.isEmpty(sysData.getUserContact()) ? "13012345678" : sysData.getUserContact().trim()); |
| | | |
| | | if (StringUtils.isEmpty(sysData.getUserId()) || sysData.getUserId().length() != 18) { |
| | | sysData.setUserId("410183199003187055"); |
| | | } |
| | | apiData.setSfzh(sysData.getUserId()); |
| | | |
| | | //éç¥åå· |
| | | apiData.setCktzdh(sysData.getNoticeId()); |
| | | //è·åååå· |
| | | listInoutNotice = fzzySyncNoticeOutRep.listInoutNoticeOutById(sysData.getNoticeId()); |
| | | if (null != listInoutNotice && listInoutNotice.size() > 0) { |
| | | //ååå· |
| | | if (StringUtils.isNotEmpty(listInoutNotice.get(0).getContractId())) { |
| | | List<Api1201> api1201List = api1201Rep.getDataByBizId(listInoutNotice.get(0).getContractId()); |
| | | if (null != api1201List && api1201List.size() > 0) { |
| | | apiData.setHth(api1201List.get(0).getHth()); |
| | | } |
| | | } |
| | | if (StringUtils.isNotEmpty(listInoutNotice.get(0).getPlanId())) { |
| | | List<Api1404> api1404List = api1404Rep.getDataByBizIdAndKqdm(listInoutNotice.get(0).getPlanId(), kqdm); |
| | | if (null != api1404List && api1404List.size() > 0) { |
| | | apiData.setJhmxh(api1404List.get(0).getJhmxdh()); |
| | | if (StringUtils.isEmpty(sysData.getFoodYear())) { |
| | | sysData.setFoodYear(api1404List.get(0).getShnd()); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | //è¿è¾å·¥å
·ï¼è¥ä¸ºç©ºï¼åé»è®¤ç»1-汽车 |
| | | apiData.setYsgj(StringUtils.isEmpty(sysData.getTransType()) ? "1" : sysData.getTransType()); |
| | | |
| | | //车è¹å· |
| | | apiData.setCch(sysData.getPlateNum()); |
| | | apiData.setDjsj(sysData.getRegisterTime()); |
| | | |
| | | //ç²®é£åç§ |
| | | String mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSPZ, sysData.getFoodVariety()); |
| | | apiData.setLspzdm(mappingCode); |
| | | |
| | | //ç²®é£ç级 |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSDJ, sysData.getFoodLevel()); |
| | | apiData.setLsdjdm(mappingCode); |
| | | |
| | | //è´¨æ£æ¥ååå· |
| | | List<Api1310> dataByHwdm = api1310Rep.getDataByHwdm(apiData.getHwdm(), "02"); |
| | | if (null != dataByHwdm && dataByHwdm.size() > 0) { |
| | | apiData.setZjbgdh(dataByHwdm.get(0).getZjbgdh()); |
| | | } |
| | | |
| | | //çææ¹å¼ |
| | | apiData.setScfs(1); |
| | | if (StringUtils.isNotEmpty(sysData.getRecordStatus()) && sysData.getRecordStatus().equals("ADD")) { |
| | | apiData.setScfs(2); |
| | | apiData.setSdblyy("åºåºåçµå¯¼è´æ æ³ææµç¨è¿è¡åºåº"); |
| | | } |
| | | |
| | | //ç²®é£æ§è´¨ |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSXZ, sysData.getFoodType()); |
| | | apiData.setLsxzdm(mappingCode); |
| | | |
| | | apiData.setShnd(StringUtils.isEmpty(sysData.getFoodYear()) ? DateFormatUtils.format(sysData.getRegisterTime(), "yyyy") : sysData.getFoodYear()); |
| | | |
| | | //产å°ä»£ç |
| | | mappingCode = commonService.getFoodLocationIdFromCache(sysData.getFoodLocation()); |
| | | if (StringUtils.isEmpty(mappingCode)) { |
| | | mappingCode = apiData.getHwdm().substring(2, 8); |
| | | } |
| | | apiData.setCddm(mappingCode); |
| | | |
| | | //ç®éä¿¡æ¯ |
| | | apiData.setPz(sysData.getEmptyWeight()); |
| | | if (null == sysData.getEmptyWeightTime()) { |
| | | sysData.setEmptyWeightTime(DateUtils.addMinutes(sysData.getRegisterTime(), 25)); |
| | | } |
| | | if (!sysData.getEmptyWeightTime().after(sysData.getRegisterTime())) { |
| | | sysData.setEmptyWeightTime(DateUtils.addMinutes(sysData.getRegisterTime(), 25)); |
| | | } |
| | | apiData.setPzjlsj(sysData.getEmptyWeightTime()); |
| | | apiData.setPzjby(StringUtils.isEmpty(sysData.getEmptyWeightUser()) ? "çç£
å" : sysData.getEmptyWeightUser()); |
| | | apiData.setPzjly(StringUtils.isEmpty(sysData.getEmptyWeightUser()) ? "计éå" : sysData.getEmptyWeightUser()); |
| | | |
| | | //æ¯éä¿¡æ¯ |
| | | apiData.setMz(sysData.getFullWeight()); |
| | | apiData.setKzl(0 - sysData.getDeCheck() + sysData.getAddCheck() - sysData.getDeHandle() - sysData.getDePackage() - sysData.getDeOther()); |
| | | if (null == sysData.getFullWeightTime()) { |
| | | sysData.setFullWeightTime(DateUtils.addMinutes(sysData.getEmptyWeightTime(), 60)); |
| | | } |
| | | if (!sysData.getFullWeightTime().after(sysData.getEmptyWeightTime())) { |
| | | sysData.setFullWeightTime(DateUtils.addMinutes(sysData.getEmptyWeightTime(), 60)); |
| | | } |
| | | apiData.setMzjlsj(sysData.getFullWeightTime()); |
| | | apiData.setMzjby(StringUtils.isEmpty(sysData.getFullWeightUser()) ? "çç£
å" : sysData.getFullWeightUser()); |
| | | apiData.setMzjly(StringUtils.isEmpty(sysData.getFullWeightUser()) ? "计éå" : sysData.getFullWeightUser()); |
| | | |
| | | //åé |
| | | apiData.setJz(sysData.getRecordWeight()); |
| | | if (!sysData.getCompleteTime().after(sysData.getFullWeightTime())) { |
| | | sysData.setCompleteTime(DateUtils.addMinutes(sysData.getFullWeightTime(), 10)); |
| | | } |
| | | apiData.setCmsj(sysData.getCompleteTime()); |
| | | //ç»ç®åå· |
| | | if (StringUtils.isNotEmpty(sysData.getSettleId())) { |
| | | apiData.setCkjsdh(kqdm + sysData.getSettleId()); |
| | | } |
| | | if (StringUtils.isNotEmpty(apiData.getHth())) { |
| | | api1206List = api1206Rep.getDataByHthAndHwdm(apiData.getHth(), apiData.getHwdm()); |
| | | if (null == api1206List || api1206List.isEmpty()) { |
| | | api1206List = api1206Rep.getDataByHth(apiData.getHth()); |
| | | if (null != api1206List && api1206List.size() > 0) { |
| | | apiData.setCkjsdh(api1206List.get(0).getCkjsdh()); |
| | | } |
| | | } else { |
| | | apiData.setCkjsdh(api1206List.get(0).getCkjsdh()); |
| | | } |
| | | } |
| | | |
| | | apiData.setCchlx("01"); |
| | | apiData.setXldd("åºå
"); |
| | | apiData.setBz(StringUtils.isEmpty(sysData.getRemarks()) ? "ææ å¤æ³¨ä¿¡æ¯" : sysData.getRemarks()); |
| | | apiData.setBzbdbz(sysData.getDbz() == null ? 25 : sysData.getDbz()); |
| | | apiData.setBzbjs(sysData.getBzbjs()); |
| | | apiData.setJjlx(sysData.getJjlx()); |
| | | apiData.setBzw(StringUtils.isEmpty(sysData.getBzw()) ? "9" : sysData.getBzw()); |
| | | apiData.setCmqrmgryxm(StringUtils.isEmpty(sysData.getRegisterUser()) ? "é¨å²äºº" : sysData.getRegisterUser()); |
| | | apiData.setDjmgryxm(StringUtils.isEmpty(sysData.getRegisterUser()) ? "ç»è®°äºº" : sysData.getRegisterUser()); |
| | | apiData.setZcbgyxm(StringUtils.isEmpty(sysData.getHandleUser()) ? "å¼ä»å" : sysData.getHandleUser()); |
| | | apiData.setZxzydw("å¤èåä½"); |
| | | apiData.setKzlyy("æ£ï¼å¢ï¼éåå "); |
| | | |
| | | //æä½æ å¿åæåæ´æ°æ¶é´ |
| | | apiData.setZhgxsj(sysData.getUpdateTime()); |
| | | |
| | | //æ¿è¿äºº 身份è¯å· çµè¯ |
| | | apiData.setSfzh(sysData.getUserId()); |
| | | apiData.setCyr(sysData.getUserName().trim()); |
| | | apiData.setLxdh(sysData.getUserContact()); |
| | | |
| | | |
| | | //ä¸å¡idãåºåºç¼ç ã忥æ¶é´ |
| | | apiData.setBizId(sysData.getId()); |
| | | apiData.setKqdm(kqdm); |
| | | apiData.setSyncTime(new Date()); |
| | | log.info("1205åºåºä¿¡æ¯---åæ¥æ°æ®ï¼{}", apiData.toString()); |
| | | api1205List = api1205Rep.getDataById(apiData.getCkywdh()); |
| | | if (null == api1205List || api1205List.isEmpty()) { |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | apiData.setCzbz(api1205List.get(0).getCzbz()); |
| | | } |
| | | //夿æ¯å¦ä¸ºè¹è¿ |
| | | if (StringUtils.isNotEmpty(sysData.getTransType()) && sysData.getTransType().equals("3")) { |
| | | listInoutRecordItem = fzzy61SyncInoutRecordItemRep.findDataByRecordId(sysData.getId()); |
| | | if (null == listInoutRecordItem || listInoutRecordItem.isEmpty()) { |
| | | api1205Rep.save(apiData); |
| | | continue; |
| | | } |
| | | |
| | | int idNum = Integer.valueOf(sysData.getId().substring(12)) * 100 + 10001; |
| | | for (Fz61InoutRecordItem fz61InoutRecordItem : listInoutRecordItem) { |
| | | if ("DEL".equals(fz61InoutRecordItem.getRecordStatus())) { |
| | | continue; |
| | | } |
| | | if (fz61InoutRecordItem.getSettleWeight() <= 0) { |
| | | continue; |
| | | } |
| | | apiData.setCkywdh(Constant.INOUT_TYPE_15 + sysData.getId().substring(4, 10) + String.valueOf(idNum).substring(1)); |
| | | apiData.setMz(fz61InoutRecordItem.getFullWeight()); |
| | | apiData.setPz(fz61InoutRecordItem.getEmptyWeight()); |
| | | apiData.setJz(fz61InoutRecordItem.getSettleWeight()); |
| | | apiData.setMzjlsj(fz61InoutRecordItem.getFullWeightTime()); |
| | | apiData.setPzjlsj(fz61InoutRecordItem.getEmptyWeightTime()); |
| | | apiData.setKzl(0 - fz61InoutRecordItem.getDe()); |
| | | api1205List = api1205Rep.getDataById(apiData.getCkywdh()); |
| | | if (null == api1205List || api1205List.isEmpty()) { |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | apiData.setCzbz(api1205List.get(0).getCzbz()); |
| | | } |
| | | api1205Rep.save(apiData); |
| | | idNum++; |
| | | } |
| | | } else { |
| | | //ä¿åæ°æ® |
| | | api1205Rep.save(apiData); |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---1205åºåºä¿¡æ¯åæ¥å¤±è´¥----{}", 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.Api1102; |
| | | import com.fzzy.api.entity.Api1105; |
| | | import com.fzzy.api.entity.Api1206; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.service.ApiCommonService; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.Api1102Rep; |
| | | import com.fzzy.api.view.repository.Api1206Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutSettle; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1204Rep; |
| | | 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; |
| | | |
| | | /** |
| | | * ç²®é£åºåºç»ç® |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1206 { |
| | | |
| | | /** |
| | | * åºåºç±»å |
| | | */ |
| | | private final static String INOUT_TYPE_OUT = "OUT"; |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1204Rep fzzySync1204Rep; |
| | | @Autowired |
| | | private Api1206Rep api1206Rep; |
| | | @Autowired |
| | | private Api1102Rep api1102Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | |
| | | /** |
| | | * ç²®é£åºåºç»ç® |
| | | * |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | |
| | | log.info("-------------1206åºåºç»ç®æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1206); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | //è·åç²®é£åºåºç»ç®ä¿¡æ¯ |
| | | List<Fz61InoutSettle> list = fzzySync1204Rep.listInoutSettle(deptId, INOUT_TYPE_OUT, start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.info("-------------没æè·åå°ç²®é£åºåºç»ç®ä¿¡æ¯------------------"); |
| | | return; |
| | | } |
| | | |
| | | //æ ¹æ®åºåºä»£ç è·ååºåºä¿¡æ¯ |
| | | Api1102 api1102 = api1102Rep.findById(kqdm).get(); |
| | | |
| | | Api1206 apiData; |
| | | Api1105 api1105; |
| | | List<Api1206> api1206List; |
| | | for (Fz61InoutSettle sysData : list) { |
| | | |
| | | apiData = new Api1206(); |
| | | //å
¥åºç»ç®åå·:åºåºä»£ç + yyyyMMdd + 4为顺åºå· |
| | | apiData.setCkjsdh(kqdm + sysData.getId()); |
| | | |
| | | //ååå· |
| | | if (StringUtils.isNotEmpty(sysData.getContractId())) { |
| | | apiData.setHth(api1102.getDwdm() + sysData.getContractId()); |
| | | } |
| | | |
| | | if (StringUtils.isNotEmpty(sysData.getDepotId())) { |
| | | api1105 = commonService.getApi1105Cache(sysData.getDepotId()); |
| | | //è´§ä½ä»£ç |
| | | apiData.setHwdm(api1105.getHwdm()); |
| | | } |
| | | |
| | | //ç»ç®ééãç»ç®åä»·ãç»ç®éé¢ãç»ç®æ¶é´ |
| | | apiData.setJssl(sysData.getSettleWeight()); |
| | | apiData.setJsdj(sysData.getPayPrice()); |
| | | apiData.setJsje(sysData.getPayMoney()); |
| | | apiData.setJssj(sysData.getPayTime()); |
| | | |
| | | //ç»ç®æ¹å¼ |
| | | apiData.setJsfs(sysData.getPayType()); |
| | | apiData.setYhhbdm(sysData.getBankCategory()); |
| | | apiData.setKhhh(sysData.getBankCode()); |
| | | apiData.setKhhmc(sysData.getBank()); |
| | | apiData.setYhzh(sysData.getBankNum()); |
| | | apiData.setFkr(StringUtils.isEmpty(sysData.getPayUser()) ? "仿¬¾äºº" : sysData.getPayUser()); |
| | | apiData.setFphm(""); |
| | | apiData.setFpzt(""); |
| | | |
| | | //æä½æ å¿åæåæ´æ°æ¶é´ |
| | | apiData.setZhgxsj(new Date()); |
| | | |
| | | //ä¸å¡idãåºåºç¼ç ã忥æ¶é´ |
| | | apiData.setBizId(sysData.getId()); |
| | | apiData.setKqdm(kqdm); |
| | | apiData.setSyncTime(new Date()); |
| | | log.info("1206åºåºç»ç®---åæ¥æ°æ®ï¼{}", apiData.toString()); |
| | | |
| | | api1206List = api1206Rep.getDataById(apiData.getCkjsdh()); |
| | | if (null == api1206List || api1206List.isEmpty()) { |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | apiData.setCzbz(api1206List.get(0).getCzbz()); |
| | | } |
| | | //ä¿åæ°æ® |
| | | api1206Rep.save(apiData); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---1206åºåºç»ç®æ°æ®åæ¥å¤±è´¥----{}", 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.Api1207; |
| | | 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.Api1207Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutStockChange; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1207Rep; |
| | | 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:YAN |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1207 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1207Rep fzzySync1207Rep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | @Autowired |
| | | private Api1207Rep api1207Rep; |
| | | @Autowired |
| | | private ApiTriggerService apiTriggerService; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * åä»ä¿¡æ¯åæ¥ |
| | | * |
| | | * @param kqdm |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------1207å仿¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1207); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | |
| | | try { |
| | | List<Fz61InoutStockChange> list = fzzySync1207Rep.listStockChange(deptId, start, end); |
| | | if (null == list || list.isEmpty()) { |
| | | log.info("-------------没æè·åå°åä»ä¿¡æ¯------------------"); |
| | | return; |
| | | } |
| | | |
| | | Api1207 apiData; |
| | | Api1105 api1105In; |
| | | Api1105 api1105Out; |
| | | List<Api1207> api1207List; |
| | | for (Fz61InoutStockChange sysData : list) { |
| | | //è·åè´§ä½ä¿¡æ¯ |
| | | api1105Out = commonService.getApi1105Cache(sysData.getDepotIdOut()); |
| | | if (null == api1105Out) { |
| | | continue; |
| | | } |
| | | //è·åè´§ä½ä¿¡æ¯ |
| | | api1105In = commonService.getApi1105Cache(sysData.getDepotIdIn()); |
| | | if (null == api1105In) { |
| | | continue; |
| | | } |
| | | apiData = new Api1207(); |
| | | apiData.setDcdh(kqdm + sysData.getId()); |
| | | apiData.setDclx(sysData.getType()); |
| | | apiData.setDcjhwjbh(sysData.getPlanCode()); |
| | | apiData.setTzdh(sysData.getNoticeId()); |
| | | apiData.setDcdw(kqdm); |
| | | apiData.setDrdw(kqdm); |
| | | String mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSPZ, sysData.getFoodVariety()); |
| | | apiData.setLspzdm(mappingCode); |
| | | apiData.setDchwdm(api1105Out.getHwdm()); |
| | | apiData.setDrhwdm(api1105In.getHwdm()); |
| | | apiData.setDcrq(sysData.getChangeDate()); |
| | | apiData.setDcksrq(sysData.getChangeStartDate()); |
| | | apiData.setDcjsrq(sysData.getChangeEndDate()); |
| | | apiData.setDcsl(sysData.getNumber()); |
| | | apiData.setBzw(sysData.getBzw()); |
| | | apiData.setBzbjs(sysData.getBzbjs()); |
| | | apiData.setZxzydw(sysData.getZxzydw()); |
| | | apiData.setZhgxsj(sysData.getUpdateTime()); |
| | | |
| | | apiData.setBizId(sysData.getId()); |
| | | apiData.setKqdm(kqdm); |
| | | apiData.setSyncTime(new Date()); |
| | | |
| | | api1207List = api1207Rep.getDataById(apiData.getDcdh()); |
| | | if (null == api1207List || api1207List.isEmpty()) { |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | apiData.setCzbz(api1207List.get(0).getCzbz()); |
| | | } |
| | | |
| | | //ä¿åæ°æ® |
| | | api1207Rep.save(apiData); |
| | | log.info("1207---åæ¥æ°æ®ï¼{}", apiData.toString()); |
| | | } |
| | | |
| | | } catch (Exception e) { |
| | | log.error("---1207åä»ä¿¡æ¯åæ¥å¤±è´¥----{}", 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.Api1102; |
| | | import com.fzzy.api.entity.Api1105; |
| | | import com.fzzy.api.entity.Api1208; |
| | | 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.Api1102Rep; |
| | | import com.fzzy.api.view.repository.Api1208Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61DepotStore; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1208Rep; |
| | | 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; |
| | | |
| | | /** |
| | | * ç²®é£åºå |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1208 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1208Rep fzzySync1208Rep; |
| | | @Autowired |
| | | private ApiTriggerService apiTriggerService; |
| | | @Autowired |
| | | private Api1208Rep api1208Rep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | @Autowired |
| | | private Api1102Rep api1102Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * åæ¥ç²®é£åºå |
| | | * |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | |
| | | log.info("-------------1208ç²®é£åºåä¿¡æ¯æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1208); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61DepotStore> list = fzzySync1208Rep.listDepot(deptId, start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | |
| | | log.info("-------------没æè·åå°ç²®é£åºåä¿¡æ¯------------------"); |
| | | |
| | | return; |
| | | } |
| | | |
| | | //æ ¹æ®åºåºä»£ç è·ååä½ä»£ç |
| | | Api1102 api1102 = api1102Rep.findById(kqdm).get(); |
| | | |
| | | Api1208 apiData; |
| | | Api1105 api1105; |
| | | List<Api1208> api1208List; |
| | | for (Fz61DepotStore fz61DepotStore : list) { |
| | | |
| | | //è·åè´§ä½ä¿¡æ¯ |
| | | api1105 = commonService.getApi1105Cache(fz61DepotStore.getDepotId()); |
| | | if (null == api1105) { |
| | | continue; |
| | | } |
| | | |
| | | apiData = new Api1208(); |
| | | apiData.setId(fz61DepotStore.getId()); |
| | | apiData.setHwdm(api1105.getHwdm()); |
| | | |
| | | //ç²®é£åç§ |
| | | String mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSPZ, fz61DepotStore.getFoodVariety()); |
| | | apiData.setLspzdm(mappingCode); |
| | | |
| | | //ç²®é£æ§è´¨ |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSXZ, fz61DepotStore.getFoodType()); |
| | | apiData.setLsxzdm(mappingCode); |
| | | |
| | | //ç²®é£ç级 |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSDJ, fz61DepotStore.getFoodLevel()); |
| | | apiData.setLsdjdm(mappingCode); |
| | | |
| | | apiData.setShnd(fz61DepotStore.getFoodYear()); |
| | | |
| | | //产å°ä»£ç |
| | | mappingCode = commonService.getFoodLocationIdFromCache(fz61DepotStore.getFoodLocation()); |
| | | if (StringUtils.isEmpty(mappingCode)) { |
| | | mappingCode = apiData.getHwdm().substring(2, 8); |
| | | } |
| | | apiData.setCd(mappingCode); |
| | | |
| | | apiData.setBgy(StringUtils.isEmpty(api1105.getBgy()) ? "ä¿ç®¡å" : api1105.getBgy()); |
| | | apiData.setLqgsdwdm(fz61DepotStore.getLqgsdwdm()); |
| | | apiData.setLqxzqhdm(api1102.getXzqhdm()); |
| | | if (apiData.getLsxzdm().equals("121")) { |
| | | //ç级å¨å¤ç²®-ç²®æè¡æ¿åºå代ç 为ç级 |
| | | apiData.setLqxzqhdm(api1102.getXzqhdm().substring(0, 2) + "0000"); |
| | | } |
| | | if (apiData.getLsxzdm().equals("122")) { |
| | | //å¸çº§å¨å¤ç²®-ç²®æè¡æ¿åºå代ç 为å¸çº§ |
| | | apiData.setLqxzqhdm(api1102.getXzqhdm().substring(0, 4) + "00"); |
| | | } |
| | | |
| | | //ç²®æå½å±åä½ |
| | | if (null == apiData.getLqgsdwdm()) { |
| | | api1208List = api1208Rep.findDataByHwdm(api1105.getHwdm()); |
| | | if (null != api1208List && api1208List.size() > 0) { |
| | | apiData.setLqgsdwdm(api1208List.get(0).getLqgsdwdm()); |
| | | apiData.setLqxzqhdm(api1208List.get(0).getLqxzqhdm()); |
| | | apiData.setLqgstydwbm(api1208List.get(0).getLqgstydwbm()); |
| | | } else { |
| | | apiData.setLqgsdwdm(api1102.getDwdm()); |
| | | apiData.setLqxzqhdm(api1102.getXzqhdm()); |
| | | } |
| | | } |
| | | |
| | | |
| | | //è¥ä¸ºååç²®ï¼åç²®ææ§è´¨åºå代ç 为null |
| | | if ("200".equals(apiData.getLsxzdm())) { |
| | | apiData.setLqxzqhdm(null); |
| | | } |
| | | |
| | | //ç®¡çæ¹å¼-é»è®¤ç´å¨ |
| | | if (StringUtils.isEmpty(fz61DepotStore.getManageType())) { |
| | | apiData.setGlfs("01"); |
| | | } else { |
| | | apiData.setGlfs(fz61DepotStore.getManageType()); |
| | | } |
| | | |
| | | //æ¶å¨å°ç¹-é»è®¤åºå
|
| | | apiData.setScdd("1"); |
| | | //å¨ç²®æ¹å¼ |
| | | apiData.setClfs(fz61DepotStore.getStoreType()); |
| | | //å
è£
å¨ç²®æ¯ï¼æ ¸æ¥å
åç²®å
æ° |
| | | if ("2".equals(apiData.getClfs())) { |
| | | apiData.setBclbs((int) (fz61DepotStore.getStorageReal() / 25)); |
| | | } |
| | | |
| | | //è´§ä½ç¶æ |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_HWZT, fz61DepotStore.getDepotStatus()); |
| | | apiData.setHwzt(mappingCode); |
| | | if (null == fz61DepotStore.getStoreDate()) { |
| | | fz61DepotStore.setStoreDate(new Date()); |
| | | } |
| | | //å
¥ä»æ¶é´ |
| | | apiData.setRcsj(fz61DepotStore.getStoreDate()); |
| | | //å°ä»æ¥æ |
| | | if ("3".equals(apiData.getHwzt()) || "4".equals(apiData.getHwzt())) { |
| | | if (null == fz61DepotStore.getFullDate()) { |
| | | fz61DepotStore.setFullDate(DateUtils.addDays(fz61DepotStore.getStoreDate(), 30)); |
| | | } |
| | | apiData.setFcrq(fz61DepotStore.getFullDate()); |
| | | } |
| | | |
| | | if ("1".equals(apiData.getHwzt())) { |
| | | //åºä»å®ææ¶é´ |
| | | apiData.setCcwcsj(fz61DepotStore.getOutDate()); |
| | | //æ¸
仿¶é´ |
| | | apiData.setQcsj(DateUtils.addHours(apiData.getCcwcsj(), 60)); |
| | | } |
| | | //å½å« |
| | | apiData.setGb("156"); |
| | | apiData.setSjsl(fz61DepotStore.getStorageReal()); |
| | | apiData.setJjsl(fz61DepotStore.getStorageReal()); |
| | | apiData.setSjzlxg(6); |
| | | apiData.setLdtj(10000); |
| | | |
| | | apiData.setZhgxsj(fz61DepotStore.getUpdateDate()); |
| | | |
| | | //ä¸å¡idãåºåºç¼ç ã忥æ¶é´ |
| | | apiData.setBizId(fz61DepotStore.getId()); |
| | | apiData.setKqdm(kqdm); |
| | | apiData.setSyncTime(new Date()); |
| | | |
| | | //åºåæ¯æ¬¡æ°å¢ |
| | | api1208List = api1208Rep.getDataById(apiData.getId()); |
| | | if (null == api1208List || api1208List.isEmpty()) { |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | apiData.setCzbz(api1208List.get(0).getCzbz()); |
| | | } |
| | | |
| | | //ä¿åæ°æ® |
| | | api1208Rep.save(apiData); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---1208ç²®é£åºåä¿¡æ¯åæ¥å¤±è´¥----{}", 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.Api1209; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.service.ApiCommonService; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.Api1209Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutLossOver; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1209Rep; |
| | | 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.math.BigDecimal; |
| | | import java.math.RoundingMode; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç²®é£ææº¢ |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1209 { |
| | | |
| | | /** |
| | | * ææº¢ç±»å-æè |
| | | */ |
| | | public static final String LOSS_OVER_LOSS = "LOSS"; |
| | | /** |
| | | * ææº¢ç±»å-æº¢åº |
| | | */ |
| | | public static final String LOSS_OVER_OVER = "OVER"; |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1209Rep fzzySync1209Rep; |
| | | @Autowired |
| | | private Api1209Rep api1209Rep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * åæ¥ç²®é£ææº¢ä¿¡æ¯ |
| | | * |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------1209æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1209); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61InoutLossOver> list = fzzySync1209Rep.listMLossOver(deptId, start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | |
| | | log.info("-------------没æè·åå°ç²®é£ææº¢ä¿¡æ¯------------------"); |
| | | |
| | | return; |
| | | } |
| | | |
| | | Api1209 apiData; |
| | | Api1105 api1105; |
| | | List<Api1209> api1209List; |
| | | for (Fz61InoutLossOver sysData : list) { |
| | | |
| | | //è·åè´§ä½ä¿¡æ¯ |
| | | api1105 = commonService.getApi1105Cache(sysData.getDepotId()); |
| | | if (null == api1105) { |
| | | continue; |
| | | } |
| | | |
| | | apiData = new Api1209(); |
| | | apiData.setSydh(api1105.getHwdm() + sysData.getId()); |
| | | apiData.setHwdm(api1105.getHwdm()); |
| | | apiData.setYwrq(sysData.getSubmitTime()); |
| | | apiData.setSylx(sysData.getType()); |
| | | //åéææº¢æ°éï¼æè为æ£ï¼æº¢åºä¸ºè´ |
| | | apiData.setJzsysl(sysData.getAmount()); |
| | | if (LOSS_OVER_LOSS.equals(sysData.getType())) { |
| | | sysData.setType("2"); |
| | | } |
| | | if (LOSS_OVER_OVER.equals(sysData.getType())) { |
| | | sysData.setType("3"); |
| | | apiData.setJzsysl(0 - sysData.getAmount()); |
| | | } |
| | | apiData.setRkjz(sysData.getRkjz()); |
| | | apiData.setCkjz(sysData.getCkjz()); |
| | | apiData.setRksj(sysData.getRksj()); |
| | | apiData.setCksj(sysData.getCksj()); |
| | | apiData.setCcsc(sysData.getCcsc()); |
| | | |
| | | apiData.setRksf(sysData.getRksf()); |
| | | apiData.setRkzz(sysData.getRkzz()); |
| | | apiData.setCksf(sysData.getCksf()); |
| | | apiData.setCkzz(sysData.getCkzz()); |
| | | apiData.setQzszkl(sysData.getQzszkl()); |
| | | |
| | | BigDecimal bigDecimal = BigDecimal.valueOf(sysData.getQzzrshde()); |
| | | apiData.setQzzrshde(bigDecimal.setScale(3, RoundingMode.UP).doubleValue()); |
| | | |
| | | apiData.setChsl(sysData.getChsl()); |
| | | apiData.setCqqrbs(1); |
| | | apiData.setCqqrsj(sysData.getCqqrsj() == null ? DateUtils.addSeconds(sysData.getCksj(), 120) : sysData.getCqqrsj()); |
| | | apiData.setSyhj("2"); |
| | | apiData.setSysfzc(StringUtils.isEmpty(sysData.getSysfzc()) ? "0" : sysData.getSysfzc()); |
| | | apiData.setSfch(sysData.getSfch()); |
| | | apiData.setSyyy(sysData.getSyyy()); |
| | | apiData.setCcshr(StringUtils.isEmpty(sysData.getCcshr()) ? "å®¡æ ¸äºº" : sysData.getCcshr()); |
| | | apiData.setZjshr(StringUtils.isEmpty(sysData.getZjshr()) ? "å®¡æ ¸äºº" : sysData.getZjshr()); |
| | | apiData.setTjshr(StringUtils.isEmpty(sysData.getTjshr()) ? "å®¡æ ¸äºº" : sysData.getTjshr()); |
| | | apiData.setKjshr(StringUtils.isEmpty(sysData.getKjshr()) ? "å®¡æ ¸äºº" : sysData.getKjshr()); |
| | | apiData.setLdshr(StringUtils.isEmpty(sysData.getLdshr()) ? "å®¡æ ¸äºº" : sysData.getLdshr()); |
| | | apiData.setBz(StringUtils.isEmpty(sysData.getRemark()) ? "夿³¨ä¿¡æ¯" : sysData.getRemark()); |
| | | |
| | | |
| | | //æä½æ å¿åæåæ´æ°æ¶é´ |
| | | apiData.setZhgxsj(new Date()); |
| | | |
| | | //ä¸å¡idãåºåºç¼ç ã忥æ¶é´ |
| | | apiData.setBizId(sysData.getId()); |
| | | apiData.setKqdm(kqdm); |
| | | apiData.setSyncTime(new Date()); |
| | | |
| | | api1209List = api1209Rep.getDataBySydh(apiData.getSydh()); |
| | | if (null == api1209List || api1209List.isEmpty()) { |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | apiData.setCzbz(api1209List.get(0).getCzbz()); |
| | | } |
| | | |
| | | //ä¿åæ°æ® |
| | | api1209Rep.save(apiData); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---1209ææº¢ä¿¡æ¯åæ¥å¤±è´¥----{}", 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.Api1210; |
| | | 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.Api1210Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutVarietyChange; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1210Rep; |
| | | 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 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1210 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1210Rep fzzySync1210Rep; |
| | | @Autowired |
| | | private Api1210Rep api1210Rep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | @Autowired |
| | | private ApiTriggerService apiTriggerService; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------1210æ§è´¨è½¬åæ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1209); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | |
| | | try { |
| | | List<Fz61InoutVarietyChange> list = fzzySync1210Rep.listVarietyChange(deptId, start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.info("-------------没æè·åå°æ§è´¨è½¬åä¿¡æ¯------------------"); |
| | | return; |
| | | } |
| | | |
| | | Api1210 apiData; |
| | | Api1105 api1105; |
| | | List<Api1210> api1210List; |
| | | for (Fz61InoutVarietyChange sysData : list) { |
| | | //è·åè´§ä½ä¿¡æ¯ |
| | | api1105 = commonService.getApi1105Cache(sysData.getDepotId()); |
| | | if (null == api1105) { |
| | | continue; |
| | | } |
| | | apiData = new Api1210(); |
| | | apiData.setLsxzzbdh(api1105.getHwdm() + sysData.getId()); |
| | | apiData.setHwdm(api1105.getHwdm()); |
| | | apiData.setLssl(sysData.getNumber()); |
| | | apiData.setHzsl(sysData.getChangeNumber()); |
| | | apiData.setBzwh(sysData.getApprovalId()); |
| | | String mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSPZ, sysData.getFoodVariety()); |
| | | apiData.setLspzdm(mappingCode); |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSXZ, sysData.getFoodType()); |
| | | apiData.setHzqlsxzdm(mappingCode); |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSXZ, sysData.getNewFoodType()); |
| | | apiData.setHzhlsxzdm(mappingCode); |
| | | apiData.setHzrq(sysData.getChangeTime()); |
| | | apiData.setCcshr(StringUtils.isEmpty(sysData.getCcshr()) ? "审æ¹äºº" : sysData.getCcshr()); |
| | | apiData.setZjshr(StringUtils.isEmpty(sysData.getZjshr()) ? "审æ¹äºº" : sysData.getZjshr()); |
| | | apiData.setTjshr(StringUtils.isEmpty(sysData.getTjshr()) ? "审æ¹äºº" : sysData.getTjshr()); |
| | | apiData.setKjshr(StringUtils.isEmpty(sysData.getKjshr()) ? "审æ¹äºº" : sysData.getKjshr()); |
| | | apiData.setLdshr(StringUtils.isEmpty(sysData.getLdshr()) ? "审æ¹äºº" : sysData.getLdshr()); |
| | | apiData.setBz(sysData.getRemark()); |
| | | apiData.setZhgxsj(new Date()); |
| | | |
| | | //ä¸å¡idãåºåºç¼ç ã忥æ¶é´ |
| | | apiData.setBizId(sysData.getId()); |
| | | apiData.setKqdm(kqdm); |
| | | apiData.setSyncTime(new Date()); |
| | | api1210List = api1210Rep.getDataById(apiData.getLsxzzbdh()); |
| | | if (null == api1210List || api1210List.isEmpty()) { |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | if (StringUtils.isNotEmpty(api1210List.get(0).getJhmxdh())) { |
| | | apiData.setJhmxdh(api1210List.get(0).getJhmxdh()); |
| | | } |
| | | apiData.setCzbz(api1210List.get(0).getCzbz()); |
| | | } |
| | | //ä¿åæ°æ® |
| | | api1210Rep.save(apiData); |
| | | |
| | | } |
| | | |
| | | } catch (Exception e) { |
| | | log.error("---1210æ§è´¨è½¬ååæ¥å¤±è´¥----{}", 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.Api1211; |
| | | 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.Api1211Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61DepotBookStore; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1211Rep; |
| | | 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 Fzzy61Sync1211 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1211Rep fzzy61Sync1211Rep; |
| | | @Autowired |
| | | private ApiTriggerService apiTriggerService; |
| | | @Autowired |
| | | private Api1211Rep api1211Rep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * åæ¥ç²®é£åºå |
| | | * |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | |
| | | log.info("-------------1211è´¦é¢åºåæ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1208); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61DepotBookStore> list = fzzy61Sync1211Rep.listDepot(deptId, start, end); |
| | | if (null == list || list.isEmpty()) { |
| | | log.info("-------------没æè·åå°è´¦é¢åºåä¿¡æ¯------------------"); |
| | | return; |
| | | } |
| | | |
| | | Api1211 apiData; |
| | | Api1105 api1105; |
| | | List<Api1211> api1211List; |
| | | for (Fz61DepotBookStore fz61DepotBookStore : list) { |
| | | |
| | | //è·åè´§ä½ä¿¡æ¯ |
| | | api1105 = commonService.getApi1105Cache(fz61DepotBookStore.getDepotId()); |
| | | if (null == api1105) { |
| | | continue; |
| | | } |
| | | |
| | | apiData = new Api1211(); |
| | | apiData.setId(fz61DepotBookStore.getId()); |
| | | apiData.setBizId(fz61DepotBookStore.getId()); |
| | | apiData.setKqdm(kqdm); |
| | | apiData.setHwdm(api1105.getHwdm()); |
| | | |
| | | //ç²®é£åç§ |
| | | String mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSPZ, fz61DepotBookStore.getLspzdm()); |
| | | apiData.setLspzdm(mappingCode); |
| | | |
| | | //ç²®é£æ§è´¨ |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSXZ, fz61DepotBookStore.getLsxzdm()); |
| | | apiData.setLsxzdm(mappingCode); |
| | | apiData.setNd(fz61DepotBookStore.getNd()); |
| | | apiData.setYf(fz61DepotBookStore.getYf()); |
| | | apiData.setQcsl(fz61DepotBookStore.getQcsl() == null ? 0.0 : fz61DepotBookStore.getQcsl()); |
| | | apiData.setBqsrsl(fz61DepotBookStore.getBqsrsl() == null ? 0.0 : fz61DepotBookStore.getBqsrsl()); |
| | | apiData.setBqzcsl(fz61DepotBookStore.getBqzcsl() == null ? 0.0 : fz61DepotBookStore.getBqzcsl()); |
| | | apiData.setQmye(fz61DepotBookStore.getQmye() == null ? 0.0 : fz61DepotBookStore.getQmye()); |
| | | //æç»æ å¿ä¸ºç©ºåé»è®¤ç»0-æç» |
| | | if (null == fz61DepotBookStore.getYjbz()) { |
| | | fz61DepotBookStore.setYjbz(0); |
| | | } |
| | | apiData.setYjbz(fz61DepotBookStore.getYjbz()); |
| | | apiData.setYwrq(fz61DepotBookStore.getYwrq()); |
| | | apiData.setZhgxsj(new Date()); |
| | | |
| | | api1211List = api1211Rep.getDataByBizId(apiData.getBizId()); |
| | | if (null == api1211List || api1211List.isEmpty()) { |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | apiData.setCzbz(api1211List.get(0).getCzbz()); |
| | | } |
| | | |
| | | //ä¿åæ°æ® |
| | | api1211Rep.save(apiData); |
| | | } |
| | | |
| | | } catch (Exception e) { |
| | | log.error("---1211è´¦é¢åºååæ¥å¤±è´¥----{}", 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.Api1101; |
| | | import com.fzzy.api.entity.Api1102; |
| | | import com.fzzy.api.entity.Api1212; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | 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.Api1212Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutCustomer; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1212Rep; |
| | | 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; |
| | | |
| | | /** |
| | | * 客æ·ä¿¡æ¯æ°æ®æ¥å£ |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1212 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1212Rep fzzySync1212Rep; |
| | | @Autowired |
| | | private Api1102Rep api1102Rep; |
| | | @Autowired |
| | | private Api1212Rep api1212Rep; |
| | | @Autowired |
| | | private Api1101Rep api1101Rep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * åæ¥å®¢æ·æ¥å£ |
| | | * |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | |
| | | log.info("-------------1212客æ·ä¿¡æ¯æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1201); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61InoutCustomer> list = fzzySync1212Rep.listInoutCustomer(deptId, start, end); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.debug("-------------没æè·åå°å®¢æ·ä¿¡æ¯------------------"); |
| | | return; |
| | | } |
| | | |
| | | //æ ¹æ®åºåºä»£ç è·ååä½ä»£ç |
| | | Api1102 api1102 = api1102Rep.findById(kqdm).get(); |
| | | Api1101 api1101 = api1101Rep.findById(api1102.getDwdm()).get(); |
| | | |
| | | Api1212 apiData; |
| | | List<Api1212> api1212List; |
| | | for (Fz61InoutCustomer sysData : list) { |
| | | |
| | | apiData = new Api1212(); |
| | | //åä½ä»£ç |
| | | apiData.setId(sysData.getKhbh()); |
| | | apiData.setDwdm(api1101.getDwdm()); |
| | | apiData.setDwmc(api1101.getDwmc()); |
| | | apiData.setKqdm(api1102.getKqdm()); |
| | | apiData.setKqmc(api1102.getKqmc()); |
| | | apiData.setKhlx(sysData.getKhlx()); |
| | | apiData.setKhtyshxydmhsfzh(sysData.getKhbh()); |
| | | apiData.setKhmc(sysData.getName()); |
| | | apiData.setFddbr(StringUtils.isEmpty(sysData.getFddbr()) ? "æ³äºº" : sysData.getFddbr()); |
| | | apiData.setTxdz(StringUtils.isEmpty(sysData.getAddress()) ? "åä½å°å" : sysData.getAddress()); |
| | | |
| | | apiData.setLxrxm(StringUtils.isEmpty(sysData.getContactUser()) ? sysData.getFddbr() : sysData.getContactUser()); |
| | | apiData.setLxrdh(StringUtils.isEmpty(sysData.getPhone()) ? "" : sysData.getPhone()); |
| | | if (StringUtils.isNotEmpty(sysData.getCardId())) { |
| | | apiData.setLxrsfzh(sysData.getCardId()); |
| | | } |
| | | apiData.setYzbm(StringUtils.isEmpty(sysData.getYzbm()) ? "000000" : sysData.getYzbm()); |
| | | apiData.setDzyx(StringUtils.isEmpty(sysData.getDzyx()) ? "" : sysData.getDzyx()); |
| | | apiData.setKhfkhh(StringUtils.isEmpty(sysData.getBank()) ? "999" : sysData.getBank()); |
| | | apiData.setKhfzh(StringUtils.isEmpty(sysData.getBankNum()) ? "" : sysData.getBankNum()); |
| | | apiData.setZhgxsj(sysData.getUpdateTime() == null ? new Date() : sysData.getUpdateTime()); |
| | | apiData.setBizId(sysData.getId()); |
| | | |
| | | |
| | | api1212List = api1212Rep.getDataById(apiData.getId()); |
| | | if (null == api1212List || api1212List.isEmpty()) { |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | apiData.setCzbz(api1212List.get(0).getCzbz()); |
| | | } |
| | | |
| | | //ä¿åæ°æ® |
| | | api1212Rep.save(apiData); |
| | | |
| | | log.info("1212ååä¿¡æ¯---åæ¥æ°æ®ï¼{}", apiData.toString()); |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("---1212ååä¿¡æ¯åæ¥æ§è¡å¤±è´¥----{}", 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.Api1213; |
| | | 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.Api1213Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61DepotStatusConfirm; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1213Rep; |
| | | 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 |
| | | * å°ä»ç¡®è®¤å |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class Fzzy61Sync1213 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1213Rep fzzy61Sync1213Rep; |
| | | @Autowired |
| | | private ApiTriggerService apiTriggerService; |
| | | @Autowired |
| | | private Api1213Rep api1213Rep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * 忥å°ä»ç¡®è®¤ä¿¡æ¯ |
| | | * |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | |
| | | log.info("-------------1213å°ä»ç¡®è®¤ä¿¡æ¯æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1208); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61DepotStatusConfirm> list = fzzy61Sync1213Rep.listData(deptId, start, end); |
| | | if (null == list || list.isEmpty()) { |
| | | log.info("-------------没æè·åå°å°ä»ç¡®è®¤ä¿¡æ¯------------------"); |
| | | return; |
| | | } |
| | | |
| | | Api1213 apiData; |
| | | Api1105 api1105; |
| | | List<Api1213> api1213List; |
| | | for (Fz61DepotStatusConfirm depotStatusConfirm : list) { |
| | | |
| | | //è·åè´§ä½ä¿¡æ¯ |
| | | api1105 = commonService.getApi1105Cache(depotStatusConfirm.getDepotId()); |
| | | if (null == api1105) { |
| | | continue; |
| | | } |
| | | |
| | | apiData = new Api1213(); |
| | | BeanUtils.copyProperties(depotStatusConfirm, apiData); |
| | | apiData.setFcqrdh(depotStatusConfirm.getFcqrdh()); |
| | | apiData.setBizId(depotStatusConfirm.getFcqrdh()); |
| | | apiData.setKqdm(kqdm); |
| | | apiData.setHwdm(api1105.getHwdm()); |
| | | |
| | | //ç²®é£åç§ |
| | | String mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSPZ, depotStatusConfirm.getFoodVariety().substring(0, 3)); |
| | | apiData.setLspzdm(mappingCode); |
| | | |
| | | //ç²®é£æ§è´¨ |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSXZ, depotStatusConfirm.getFoodType()); |
| | | apiData.setLsxzdm(mappingCode); |
| | | //ç²®é£ç级 |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSDJ, depotStatusConfirm.getFoodLevel()); |
| | | apiData.setLsdjdm(mappingCode); |
| | | //产å°ä»£ç |
| | | mappingCode = commonService.getFoodLocationIdFromCache(depotStatusConfirm.getFoodLocation()); |
| | | if (StringUtils.isEmpty(mappingCode)) { |
| | | mappingCode = apiData.getHwdm().substring(2, 8); |
| | | } |
| | | apiData.setCd(mappingCode); |
| | | //年度 |
| | | apiData.setShnd(depotStatusConfirm.getFoodYear()); |
| | | if (StringUtils.isEmpty(depotStatusConfirm.getCountry())) { |
| | | apiData.setGb("156"); |
| | | } |
| | | apiData.setBgy(depotStatusConfirm.getStoreKeeperName()); |
| | | apiData.setFcsqr(depotStatusConfirm.getApplyUser()); |
| | | apiData.setBmshr(depotStatusConfirm.getDeptAuditUser()); |
| | | apiData.setLdshr(depotStatusConfirm.getLeaderAuditUser()); |
| | | apiData.setZhgxsj(new Date()); |
| | | |
| | | api1213List = api1213Rep.getDataById(apiData.getBizId()); |
| | | if (null == api1213List || api1213List.isEmpty()) { |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | apiData.setCzbz(api1213List.get(0).getCzbz()); |
| | | } |
| | | |
| | | //ä¿åæ°æ® |
| | | api1213Rep.save(apiData); |
| | | } |
| | | |
| | | } catch (Exception e) { |
| | | log.error("---1213å°ä»ç¡®è®¤ä¿¡æ¯åæ¥å¤±è´¥----{}", 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.Api1102; |
| | | import com.fzzy.api.entity.Api1105; |
| | | 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.Api1102Rep; |
| | | import com.fzzy.api.view.repository.ApiInfoDataRep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutStockChange; |
| | | import com.fzzy.async.fzzy61.repository.Fzzy61Sync1207Rep; |
| | | import com.fzzy.push.sh2023.SH2023Constant; |
| | | import com.fzzy.push.sh2023.dto.SH2023Api2102; |
| | | import com.fzzy.push.sh2023.dto.ShAreaBjw; |
| | | 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 Fzzy61Sync2102 { |
| | | |
| | | @Autowired |
| | | private Fzzy61Sync1207Rep fzzySync1207Rep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | @Autowired |
| | | private Api1102Rep api1102Rep; |
| | | @Autowired |
| | | private ApiInfoDataRep apiInfoDataRep; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | | /** |
| | | * åä»åå
¥ä¿¡æ¯åæ¥ |
| | | * |
| | | * @param kqdm |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | */ |
| | | public void syncData(String kqdm, String deptId, Date start, Date end) { |
| | | log.info("-------------2101æ¥å£æ°æ®å¼å§åæ¥------------------"); |
| | | |
| | | //åæ¥æ°æ®ï¼åªè®°å½å¤±è´¥çä¿¡æ¯ |
| | | ApiLog apiLog = new ApiLog(); |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(SH2023Constant.SH_2023_API_CODE_2101); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<Fz61InoutStockChange> list = fzzySync1207Rep.listStockChange(deptId, start, end); |
| | | if (null == list || list.isEmpty()) { |
| | | log.info("-------------没æè·åå°åä»åå
¥ä¿¡æ¯------------------"); |
| | | return; |
| | | } |
| | | |
| | | SH2023Api2102 apiData; |
| | | Api1105 api1105; |
| | | List<ApiInfoData> apiInfoDataList; |
| | | List<Api1102> api1102List = api1102Rep.findPushData(kqdm); |
| | | String bjw = ""; |
| | | if (null != api1102List && api1102List.size() > 0) { |
| | | bjw = ShAreaBjw.getBjw(api1102List.get(0).getXzqhdm()); |
| | | } |
| | | Api1105 api1105In; |
| | | Api1105 api1105Out; |
| | | for (Fz61InoutStockChange sysData : list) { |
| | | //è·åè´§ä½ä¿¡æ¯ |
| | | api1105Out = commonService.getApi1105Cache(sysData.getDepotIdOut()); |
| | | if (null == api1105Out) { |
| | | continue; |
| | | } |
| | | //è·åè´§ä½ä¿¡æ¯ |
| | | api1105In = commonService.getApi1105Cache(sysData.getDepotIdIn()); |
| | | if (null == api1105In) { |
| | | continue; |
| | | } |
| | | apiData = new SH2023Api2102(); |
| | | apiData.setDrdh(kqdm + sysData.getId()); |
| | | apiData.setDrdw(kqdm); |
| | | apiData.setDrhwdm(api1105In.getHwdm()); |
| | | apiData.setDrhwsl(sysData.getNumber()); |
| | | apiData.setDcrq(sysData.getChangeDate()); |
| | | apiData.setZhgxsj(sysData.getUpdateTime()); |
| | | apiData.setBjw(bjw); |
| | | |
| | | |
| | | //æä¹
åä¿åï¼åç¬åå
¥é彿 æ¥å£è¡¨ |
| | | ApiInfoData infoData = new ApiInfoData(); |
| | | infoData.setId(ContextUtil.getUUID()); |
| | | infoData.setKqdm(kqdm); |
| | | infoData.setInteType(Constant.API_CATEGORY_12); |
| | | infoData.setInteId(SH2023Constant.SH_2023_API_CODE_2102); |
| | | infoData.setUpdateTime(new Date()); |
| | | infoData.setDataId(apiData.getDrdh()); |
| | | infoData.setRemarks("åä»åå
¥"); |
| | | |
| | | //设置æä½æ å¿ |
| | | apiInfoDataList = apiInfoDataRep.getDataByInteAndData(SH2023Constant.SH_2023_API_CODE_2101, infoData.getDataId(), kqdm); |
| | | if (null == apiInfoDataList || apiInfoDataList.isEmpty()) { |
| | | infoData.setCzbz(Constant.CZBZ_I); |
| | | apiData.setCzbz(Constant.CZBZ_I); |
| | | } else { |
| | | infoData.setCzbz(apiInfoDataList.get(0).getCzbz()); |
| | | apiData.setCzbz(apiInfoDataList.get(0).getCzbz()); |
| | | } |
| | | |
| | | infoData.setData(JSON.toJSONString(apiData)); |
| | | apiInfoDataRep.save(infoData); |
| | | |
| | | log.info("2102---åä»åå
¥-åæ¥æ°æ®ï¼{}", apiData); |
| | | |
| | | } |
| | | |
| | | } catch (Exception e) { |
| | | log.error("---åä»åå
¥åæ¥æ§è¡å¤±è´¥----{}", e.toString()); |
| | | apiLog.setResult("åä»åå
¥å¤±è´¥ï¼" + e.getMessage()); |
| | | apiLogRep.save(apiLog); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61DeptDevice; |
| | | 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 Fzzy61Sync1107Rep extends JpaRepository<Fz61DeptDevice, String> { |
| | | @Query("from Fz61DeptDevice where deptId =:deptId order by sbbh") |
| | | List<Fz61DeptDevice> listDevice(@Param("deptId") String deptId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61Drug; |
| | | 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 Fzzy61Sync1108Rep extends JpaRepository<Fz61Drug, String> { |
| | | |
| | | @Query("from Fz61Drug where deptId=:deptId and updateTime >=:start and updateTime <:end order by updateTime ") |
| | | List<Fz61Drug> listDrug(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61FileInfo; |
| | | 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 Fzzy61Sync1109Rep extends JpaRepository<Fz61FileInfo, String> { |
| | | /** |
| | | * æ ¹æ®ä¿¡æ¯æä»¶ä¿¡æ¯ |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz61FileInfo where createTime >=:start and createTime <:end order by createTime ") |
| | | List<Fz61FileInfo> listFileInfo(@Param("start") Date start, @Param("end") Date end); |
| | | |
| | | @Query("from Fz61FileInfo where bizId =:bizId order by createTime ") |
| | | List<Fz61FileInfo> listFileInfoByBizId(@Param("bizId") String bizId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy40.entity.Fz40SecCamera; |
| | | 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.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * çæ§ä¿¡æ¯ |
| | | */ |
| | | public interface Fzzy61Sync1111Rep extends JpaRepository<Fz61SecCamera, String> { |
| | | |
| | | /** |
| | | * è·åæåå¤´ä¿¡æ¯ |
| | | * |
| | | * @return |
| | | */ |
| | | @Query("from Fz61SecCamera where deptId=:deptId and updateTime >=:start and updateTime <:end order by ip ") |
| | | List<Fz61SecCamera> listCamera(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy40.entity.Fz40OAStaff; |
| | | 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 Fzzy61Sync1112Rep extends JpaRepository<Fz40OAStaff, String> { |
| | | // @Query("from Fz40OAStaff where companyId=:companyId order by sfzhm") |
| | | // List<Fz40OAStaff> listStaff(@Param("companyId") String companyId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutContract; |
| | | 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; |
| | | |
| | | /** |
| | | * ç²®é£è´é-ååä¿¡æ¯æ°æ®æ¥å£æ°æ®è·å |
| | | */ |
| | | public interface Fzzy61Sync1201Rep extends JpaRepository<Fz61InoutContract, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®ä¿¡æ¯è·åååä¿¡æ¯ |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz61InoutContract where deptId=:deptId and updateTime >=:start and updateTime <:end order by updateTime ") |
| | | List<Fz61InoutContract> listContract(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutRecord; |
| | | 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-23 17:10 |
| | | */ |
| | | public interface Fzzy61Sync1202Rep extends JpaRepository<Fz61InoutRecord, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®ä¿¡æ¯è·ååºå
¥åºä¿¡æ¯ |
| | | * |
| | | * @param deptId |
| | | * @param type |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz61InoutRecord where deptId=:deptId and type=:type and updateTime >=:start and updateTime <=:end order by id ") |
| | | List<Fz61InoutRecord> listInoutRecord(@Param("deptId") String deptId, @Param("type") String type, @Param("start") Date start, @Param("end") Date end); |
| | | |
| | | /** |
| | | * æ ¹æ®idè·åç²®é£åºå
¥åºä¿¡æ¯ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Query("from Fz61InoutRecord where id=:id order by updateTime ") |
| | | List<Fz61InoutRecord> listInoutRecordById(@Param("id") String id); |
| | | |
| | | |
| | | /** |
| | | * æ ¹æ®ä¿¡æ¯è·ååºå
¥åºä¿¡æ¯ |
| | | * |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz61InoutRecord where deptId=:deptId and updateTime >=:start and updateTime <:end order by id ") |
| | | List<Fz61InoutRecord> listInoutRecord(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end); |
| | | |
| | | |
| | | @Query("from Fz61InoutRecord where deptId=:deptId and (type=:type1 or type=:type2) and updateTime >=:start and updateTime <=:end order by id ") |
| | | List<Fz61InoutRecord> listInAndOutRecord(@Param("deptId") String deptId, @Param("type1") String type1, @Param("type2") String type2, @Param("start") Date start, @Param("end") Date end); |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61CheckItem; |
| | | 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; |
| | | |
| | | /** |
| | | * ç²®é£å
¥åºè´¨æ£ |
| | | */ |
| | | public interface Fzzy61Sync1203Rep extends JpaRepository<Fz61CheckItem, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®å
¥åºæ£éªç¼ç è·åæ£éªä¿¡æ¯ |
| | | * |
| | | * @param checkId |
| | | * @return |
| | | */ |
| | | @Query("from Fz61CheckItem where checkId=:checkId and companyId=:companyId order by standardId") |
| | | List<Fz61CheckItem> listInoutCheckItem(@Param("checkId") String checkId, @Param("companyId") String companyId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutSettle; |
| | | 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 Fzzy61Sync1204Rep extends JpaRepository<Fz61InoutSettle, String> { |
| | | /** |
| | | * è·ååºå
¥åºç»ç®ä¿¡æ¯ |
| | | * |
| | | * @param type |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz61InoutSettle where deptId=:deptId and inoutType=:type and updateTime >=:start and updateTime <:end order by updateTime ") |
| | | List<Fz61InoutSettle> listInoutSettle(@Param("deptId") String deptId, @Param("type") String type, @Param("start") Date start, @Param("end") Date end); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutStockChange; |
| | | 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 Fzzy61Sync1207Rep extends JpaRepository<Fz61InoutStockChange, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®ä¿¡æ¯è·ååä»ä¿¡æ¯ |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz61InoutStockChange where deptId=:deptId and updateTime >=:start and updateTime <:end order by changeDate ") |
| | | List<Fz61InoutStockChange> listStockChange(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61DepotStore; |
| | | 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; |
| | | |
| | | /** |
| | | * ç²®é£è´é-ç²®é£åºå |
| | | */ |
| | | public interface Fzzy61Sync1208Rep extends JpaRepository<Fz61DepotStore, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®ä¿¡æ¯è·åä»åºä¿¡æ¯ |
| | | * |
| | | * @return |
| | | */ |
| | | @Query("from Fz61DepotStore where deptId=:deptId and updateDate >=:start and updateDate <:end order by updateDate ") |
| | | List<Fz61DepotStore> listDepot(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutLossOver; |
| | | 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 Fzzy61Sync1209Rep extends JpaRepository<Fz61InoutLossOver, String> { |
| | | /** |
| | | * æ ¹æ®ä¿¡æ¯è·åææº¢ä¿¡æ¯ |
| | | * |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz61InoutLossOver where deptId=:deptId and updateTime >=:start and updateTime <:end order by updateTime ") |
| | | List<Fz61InoutLossOver> listMLossOver(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutVarietyChange; |
| | | 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 Fzzy61Sync1210Rep extends JpaRepository<Fz61InoutVarietyChange, String> { |
| | | @Query("from Fz61InoutVarietyChange where deptId=:deptId and updateTime >=:start and updateTime <:end order by updateTime ") |
| | | List<Fz61InoutVarietyChange> listVarietyChange(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61DepotBookStore; |
| | | 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; |
| | | |
| | | /** |
| | | * ç²®é£è´é-è´¦é¢åºå |
| | | */ |
| | | public interface Fzzy61Sync1211Rep extends JpaRepository<Fz61DepotBookStore, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®åºåºç¼ç åæ¶é´è·åè´¦é¢åºåä¿¡æ¯ |
| | | * |
| | | * @return |
| | | */ |
| | | @Query("from Fz61DepotBookStore where deptId=:deptId and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") |
| | | List<Fz61DepotBookStore> listDepot(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutCustomer; |
| | | 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; |
| | | |
| | | /** |
| | | * ç²®é£è´é-客æ·ä¿¡æ¯æ°æ®æ¥å£æ°æ®è·å |
| | | */ |
| | | public interface Fzzy61Sync1212Rep extends JpaRepository<Fz61InoutCustomer, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®ä¿¡æ¯è·å客æ·åä½ä¿¡æ¯ |
| | | * |
| | | * @return |
| | | */ |
| | | @Query("from Fz61InoutCustomer where deptId=:deptId order by id ") |
| | | List<Fz61InoutCustomer> listInoutCustomer(@Param("deptId") String deptId); |
| | | |
| | | @Query("from Fz61InoutCustomer where deptId=:deptId and updateTime >=:start and updateTime <=:end order by id ") |
| | | List<Fz61InoutCustomer> listInoutCustomer(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end); |
| | | |
| | | @Query("from Fz61InoutCustomer where id=:id order by id ") |
| | | List<Fz61InoutCustomer> getDataById(@Param("id") String id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61DepotStatusConfirm; |
| | | 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; |
| | | |
| | | /** |
| | | * ç²®é£è´é-è´¦é¢åºå |
| | | */ |
| | | public interface Fzzy61Sync1213Rep extends JpaRepository<Fz61DepotStatusConfirm, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®åºåºç¼ç åæ¶é´è·åè´¦é¢åºåä¿¡æ¯ |
| | | * |
| | | * @return |
| | | */ |
| | | @Query("from Fz61DepotStatusConfirm where deptId=:deptId and updateTime >=:start and updateTime <:end order by updateTime ") |
| | | List<Fz61DepotStatusConfirm> listData(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutRecordItem; |
| | | 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 Fzzy61SyncInoutRecordItemRep extends JpaRepository<Fz61InoutRecordItem, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®ä»åºç¼ç è·åç²®æ
åæ°é
ç½®ä¿¡æ¯ |
| | | * @param recordId |
| | | * @return |
| | | */ |
| | | @Query("from Fz61InoutRecordItem where recordId =:recordId order by createTime ") |
| | | List<Fz61InoutRecordItem> findDataByRecordId(@Param("recordId") String recordId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutNoticeIn; |
| | | 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-04-06 10:10 |
| | | */ |
| | | public interface Fzzy61SyncNoticeInRep extends JpaRepository<Fz61InoutNoticeIn, String> { |
| | | |
| | | |
| | | /** |
| | | * æ ¹æ®idè·åå
¥åºéç¥åä¿¡æ¯ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Query("from Fz61InoutNoticeIn where id=:id ") |
| | | List<Fz61InoutNoticeIn> listInoutNoticeInById(@Param("id") String id); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.async.fzzy61.repository; |
| | | |
| | | import com.fzzy.async.fzzy61.entity.Fz61InoutNoticeOut; |
| | | 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-04-06 10:10 |
| | | */ |
| | | public interface Fzzy61SyncNoticeOutRep extends JpaRepository<Fz61InoutNoticeOut, String> { |
| | | |
| | | |
| | | /** |
| | | * æ ¹æ®idè·ååºåºéç¥åä¿¡æ¯ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Query("from Fz61InoutNoticeOut where id=:id ") |
| | | List<Fz61InoutNoticeOut> listInoutNoticeOutById(@Param("id") String id); |
| | | |
| | | } |