From a543f48b1a3d0d4ca21859590defc5fe8087e652 Mon Sep 17 00:00:00 2001 From: ws <ws@123.com> Date: 星期六, 23 十一月 2024 17:50:03 +0800 Subject: [PATCH] 提交-上海对农接口 --- src/main/java/com/fzzy/push/sh2023/SH2023Constant.java | 35 src/main/java/com/fzzy/api/view/repository/Api9112Rep.java | 54 src/main/java/com/fzzy/api/view/Api9111.view.xml | 307 ++ src/main/java/com/fzzy/api/view/pr/Api9110PR.java | 179 + src/main/java/com/fzzy/api/view/pr/Api9111PR.java | 179 + src/main/java/com/fzzy/api/view/repository/Api9113Rep.java | 47 src/main/java/com/fzzy/api/entity/Api9112.java | 81 src/main/java/com/fzzy/inte/sh2023/service/SHDNService.java | 93 src/main/java/com/fzzy/api/view/repository/Api9111Rep.java | 51 src/main/java/com/fzzy/api/view/Api9116.view.xml | 473 ++++ src/main/java/com/fzzy/api/entity/Api9113.java | 72 src/main/java/com/fzzy/api/entity/Api9116.java | 129 + src/main/java/com/fzzy/api/view/repository/Api9116Rep.java | 56 src/main/java/com/fzzy/api/view/repository/Api9115Rep.java | 40 src/main/java/com/fzzy/api/entity/Api9110.java | 97 src/main/java/com/fzzy/api/view/Api9114.view.xml | 853 +++++++ src/main/java/com/fzzy/api/view/repository/Api9114Rep.java | 52 src/main/java/com/fzzy/api/entity/Api9111.java | 71 src/main/java/com/fzzy/inte/sh2023/dto/SHDN2023ReqDto.java | 21 src/main/java/com/fzzy/inte/sh2023/constant/ApiRespCode.java | 59 src/main/java/com/fzzy/inte/sh2023/dto/ApiResp.java | 30 src/main/java/com/fzzy/inte/sh2023/controller/ControllerSh2023.java | 59 src/main/java/com/fzzy/api/entity/Api9109.java | 123 + src/main/java/com/fzzy/api/view/Api9112.view.xml | 324 ++ src/main/java/com/fzzy/api/Constant.java | 17 src/main/java/com/fzzy/api/entity/Api9114.java | 265 ++ src/main/java/com/fzzy/api/view/repository/Api9109Rep.java | 54 src/main/java/com/fzzy/api/view/Api9113.view.xml | 297 ++ src/main/java/com/fzzy/api/view/Api9110.view.xml | 449 +++ src/main/java/com/fzzy/api/view/pr/Api9113PR.java | 179 + src/main/java/com/fzzy/api/view/pr/Api9114PR.java | 245 ++ src/main/java/com/fzzy/api/view/pr/Api9115PR.java | 248 ++ src/main/java/com/fzzy/api/view/pr/Api9116PR.java | 247 ++ src/main/java/com/fzzy/api/view/repository/Api9110Rep.java | 54 src/main/java/com/fzzy/api/view/pr/Api9112PR.java | 179 + src/main/java/com/fzzy/api/view/Api9115.view.xml | 440 +++ src/main/java/com/fzzy/api/entity/Api9115.java | 101 src/main/java/com/fzzy/api/view/pr/Api9109PR.java | 180 + src/main/java/com/fzzy/api/view/Api9109.view.xml | 557 ++++ 39 files changed, 6,997 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/fzzy/api/Constant.java b/src/main/java/com/fzzy/api/Constant.java index 77aa42b..f4eea56 100644 --- a/src/main/java/com/fzzy/api/Constant.java +++ b/src/main/java/com/fzzy/api/Constant.java @@ -241,6 +241,23 @@ //瀹氬寲姘存楠屾帴鍙� public static String API_CODE_9108 = "9108"; + //瀵瑰啘鏀惰喘-鍗曚綅淇℃伅鎺ュ彛 + public static String API_CODE_9109 = "9109"; + //瀵瑰啘鏀惰喘-鏀剁撼搴撲俊鎭帴鍙� + public static String API_CODE_9110 = "9110"; + //瀵瑰啘鏀惰喘-浠撴埧淇℃伅鎺ュ彛 + public static String API_CODE_9111 = "9111"; + //瀵瑰啘鏀惰喘-寤掗棿淇℃伅鎺ュ彛 + public static String API_CODE_9112 = "9112"; + //瀵瑰啘鏀惰喘-璐т綅淇℃伅鎺ュ彛 + public static String API_CODE_9113 = "9113"; + //瀵瑰啘鏀惰喘-绮鍏ュ簱淇℃伅鎺ュ彛 + public static String API_CODE_9114 = "9114"; + //瀵瑰啘鏀惰喘-鏉ョ伯妫�楠屼俊鎭帴鍙� + public static String API_CODE_9115 = "9115"; + //瀵瑰啘鏀惰喘-绮鏀惰喘鍩虹淇℃伅鎺ュ彛 + public static String API_CODE_9116 = "9116"; + /*===========骞夸笢瀹氬埗鎺ュ彛========*/ //鐔忚捀澶囨 public static String API_CODE_9201 = "9201"; diff --git a/src/main/java/com/fzzy/api/entity/Api9109.java b/src/main/java/com/fzzy/api/entity/Api9109.java new file mode 100644 index 0000000..99c9b55 --- /dev/null +++ b/src/main/java/com/fzzy/api/entity/Api9109.java @@ -0,0 +1,123 @@ +package com.fzzy.api.entity; + +import com.alibaba.fastjson.annotation.JSONField; +import com.bstek.dorado.annotation.PropertyDef; +import com.fasterxml.jackson.annotation.JsonFormat; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.springframework.format.annotation.DateTimeFormat; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Table; +import java.io.Serializable; +import java.util.Date; + +/** + * 瀵瑰啘鏀惰喘-鍗曚綅淇℃伅 + * + */ +@Data +@Entity +@Table(name = "API_9109") +@EqualsAndHashCode(callSuper = false) +public class Api9109 implements Serializable { + + private static final long serialVersionUID = -1576606957466142145L; + + @Id + @PropertyDef(label = "鍗曚綅浠g爜") + @Column(name = "dwdm", length = 18) + private String dwdm; + + @PropertyDef(label = "鍗曚綅鍚嶇О") + @Column(name = "dwmc", length = 256) + private String dwmc; + + @PropertyDef(label = "鍗曚綅绫诲瀷") + @Column(name = "dwlx", length = 2) + private String dwlx; + + @PropertyDef(label = "娉曞畾浠h〃浜�") + @Column(name = "fddbr", length = 100) + private String fddbr; + + @PropertyDef(label = "娉曚汉韬唤璇佸彿") + @Column(name = "frsfzh", length = 18) + private String frsfzh; + + @PropertyDef(label = "娉曚汉鑱旂郴鏂瑰紡") + @Column(name = "frlxfs", length = 50) + private String frlxfs; + + @PropertyDef(label = "浼佷笟鑱旂郴浜�") + @Column(name = "qylxr", length = 100) + private String qylxr; + + @PropertyDef(label = "鍔炲叕鐢佃瘽") + @Column(name = "bgdh", length = 50) + private String bgdh; + + @PropertyDef(label = "娉ㄥ唽鍦板潃") + @Column(name = "zcdz", length = 512) + private String zcdz; + + @PropertyDef(label = "閭斂缂栫爜") + @Column(name = "yzbm", length = 6) + private String yzbm; + + @PropertyDef(label = "琛屾斂鍖哄垝浠g爜") + @Column(name = "xzqhdm", length = 6) + private String xzqhdm; + + @PropertyDef(label = "鏀剁撼搴撲釜鏁�") + @Column(name = "snkgs") + private Integer snkgs; + + @PropertyDef(label = "浠撴埧鏁�") + @Column(name = "cfs") + private Integer cfs; + + @PropertyDef(label = "娌圭綈鏁�") + @Column(name = "ygs") + private Integer ygs; + + @PropertyDef(label = "缁忓害") + @Column(name = "jd", precision = 20, scale = 6) + private Double jd; + + @PropertyDef(label = "绾害") + @Column(name = "wd", precision = 20, scale = 6) + private Double wd; + + @PropertyDef(label = "鍗曚綅鐘舵��") + @Column(name = "dwzt",length = 1) + private String dwzt; + + @PropertyDef(label = "鎿嶄綔鏍囧織") + @Column(name = "czbz", length = 1) + private String czbz; + + @PropertyDef(label = "鏈�鍚庢洿鏂版椂闂�") + @JSONField(format = "yyyy-MM-dd HH:mm:ss") + @Column(name = "zhgxsj") + private Date zhgxsj; + + /*----------鎺ュ彛绯荤粺鑷畾涔夊瓧娈�----------*/ + @JSONField(serialize = false) + @PropertyDef(label = "涓氬姟id") + @Column(name = "bizId", length = 40) + private String bizId; + + @JSONField(serialize = false) + @PropertyDef(label = "搴撳尯浠g爜") + @Column(name = "kqdm", length = 21) + private String kqdm; + + @JSONField(serialize = false) + @PropertyDef(label = "鍚屾鏃堕棿", description = "浠庣伯搴撶郴缁熷悓姝ュ埌鎺ュ彛绠$悊涓績鐨勬椂闂�") + @Column(name = "syncTime") + private Date syncTime; + +} diff --git a/src/main/java/com/fzzy/api/entity/Api9110.java b/src/main/java/com/fzzy/api/entity/Api9110.java new file mode 100644 index 0000000..7654405 --- /dev/null +++ b/src/main/java/com/fzzy/api/entity/Api9110.java @@ -0,0 +1,97 @@ +package com.fzzy.api.entity; + +import com.alibaba.fastjson.annotation.JSONField; +import com.bstek.dorado.annotation.PropertyDef; +import com.fasterxml.jackson.annotation.JsonIgnore; +import lombok.Data; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Table; +import java.io.Serializable; +import java.util.Date; + +/** + * 瀵瑰啘鏀惰喘-搴撳尯淇℃伅 + */ +@Data +@Entity +@Table(name = "API_9110") +public class Api9110 implements Serializable { + + private static final long serialVersionUID = -3603201046281559170L; + + @Id + @PropertyDef(label = "搴撳尯浠g爜") + @Column(name = "kqdm", length = 21) + private String kqdm; + + @PropertyDef(label = "鍗曚綅浠g爜") + @Column(name = "dwdm", length = 18) + private String dwdm; + + @PropertyDef(label = "搴撳尯鍚嶇О") + @Column(name = "kqmc", length = 256) + private String kqmc; + + @PropertyDef(label = "搴撳尯鍦板潃") + @Column(name = "kqdz", length = 512) + private String kqdz; + + @PropertyDef(label = "琛屾斂鍖哄垝浠g爜") + @Column(name = "xzqhdm", length = 6) + private String xzqhdm; + + @PropertyDef(label = "搴撳尯浜ф潈", description = "1锛� 鑷湁 2锛氱璧� 3锛氬叡鏈� 4锛氭贩鍚� 9锛氬叾浠�") + @Column(name = "kqcq", length = 1) + private String kqcq; + + @PropertyDef(label = "璁捐浠撳") + @Column(name = "yxcr", precision = 20, scale = 6) + private Double yxcr; + + @PropertyDef(label = "浠撴埧鏁�") + @Column(name = "cfs") + private Integer cfs; + + @PropertyDef(label = "寤掗棿鏁�") + @Column(name = "ajs") + private Integer ajs; + + @PropertyDef(label = "搴撳尯缁忓害") + @Column(name = "jd", precision = 20, scale = 6) + private Double jd; + + @PropertyDef(label = "搴撳尯绾害") + @Column(name = "wd", precision = 20, scale = 6) + private Double wd; + + @PropertyDef(label = "搴撳尯鐘舵��", description = "1:姝e父锛堥粯璁わ級 2:閫�鍑哄偍澶囩伯鎵垮偍") + @Column(name = "kqzt", length = 1) + private String kqzt; + + @PropertyDef(label = "鎿嶄綔鏍囧織") + @Column(name = "czbz", length = 1) + private String czbz; + + @PropertyDef(label = "鏈�鍚庢洿鏂版椂闂�") + @JSONField(format = "yyyy-MM-dd HH:mm:ss") + @Column(name = "zhgxsj", nullable = false) + private Date zhgxsj; + + @PropertyDef(label = "鏍囪浣�") + @Column(name = "bjw", length =32) + private String bjw; + + /*----------鎺ュ彛绯荤粺鑷畾涔夊瓧娈�----------*/ + @JSONField(serialize = false) + @PropertyDef(label = "涓氬姟id") + @Column(name = "bizId", length = 40) + private String bizId; + + @JSONField(serialize = false) + @PropertyDef(label = "鍚屾鏃堕棿", description = "浠庣伯搴撶郴缁熷悓姝ュ埌鎺ュ彛绠$悊涓績鐨勬椂闂�") + @Column(name = "syncTime") + private Date syncTime; +} \ No newline at end of file diff --git a/src/main/java/com/fzzy/api/entity/Api9111.java b/src/main/java/com/fzzy/api/entity/Api9111.java new file mode 100644 index 0000000..9443504 --- /dev/null +++ b/src/main/java/com/fzzy/api/entity/Api9111.java @@ -0,0 +1,71 @@ +package com.fzzy.api.entity; + +import com.alibaba.fastjson.annotation.JSONField; +import com.bstek.dorado.annotation.PropertyDef; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Table; +import java.io.Serializable; +import java.util.Date; + +/** + * 瀵瑰啘鏀惰喘-浠撴埧淇℃伅 + */ +@Data +@Entity +@Table(name = "API_9111") +@EqualsAndHashCode(callSuper=false) +public class Api9111 implements Serializable { + + private static final long serialVersionUID = 8664814550491144004L; + + @Id + @PropertyDef(label = "浠撴埧浠g爜" ) + @Column(name = "cfdm", length = 25) + private String cfdm; + + @PropertyDef(label = "浠撴埧鍚嶇О" ) + @Column(name = "cfmc", length = 256) + private String cfmc; + + @PropertyDef(label = "搴撳尯浠g爜" ) + @Column(name = "kqdm", length = 21) + private String kqdm; + + @PropertyDef(label = "浠撴埧绫诲瀷浠g爜" ) + @Column(name = "cflxdm", length = 8) + private String cflxdm; + + @PropertyDef(label = "璁捐浠撳" ) + @Column(name = "sjcr", precision = 20, scale = 6) + private Double sjcr; + + @PropertyDef(label = "鎿嶄綔鏍囧織" ) + @Column(name = "czbz", length = 1) + private String czbz; + + @PropertyDef(label = "鏈�鍚庢洿鏂版椂闂�" ) + @JSONField(format = "yyyy-MM-dd HH:mm:ss") + @Column(name = "zhgxsj") + private Date zhgxsj; + + @PropertyDef(label = "鏍囪浣�" ) + @Column(name = "bjw", length = 32) + private String bjw; + + /*----------鎺ュ彛绯荤粺鑷畾涔夊瓧娈�----------*/ + @JSONField(serialize = false) + @PropertyDef(label = "涓氬姟id") + @Column(name = "bizId", length = 40) + private String bizId; + + @JSONField(serialize = false) + @PropertyDef(label = "鍚屾鏃堕棿", description = "浠庣伯搴撶郴缁熷悓姝ュ埌鎺ュ彛绠$悊涓績鐨勬椂闂�") + @Column(name = "syncTime") + private Date syncTime; + +} diff --git a/src/main/java/com/fzzy/api/entity/Api9112.java b/src/main/java/com/fzzy/api/entity/Api9112.java new file mode 100644 index 0000000..52dd070 --- /dev/null +++ b/src/main/java/com/fzzy/api/entity/Api9112.java @@ -0,0 +1,81 @@ +package com.fzzy.api.entity; + +import com.alibaba.fastjson.annotation.JSONField; +import com.bstek.dorado.annotation.PropertyDef; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Table; +import java.io.Serializable; +import java.util.Date; + +/** + * 瀵瑰啘鏀惰喘-寤掗棿淇℃伅 + * + */ +@Data +@Entity +@Table(name = "API_9112") +@EqualsAndHashCode(callSuper = false) +public class Api9112 implements Serializable { + + private static final long serialVersionUID = 4946609886186668344L; + + @Id + @PropertyDef(label = "寤掗棿浠g爜") + @Column(name = "ajdm", length = 28) + private String ajdm; + + @PropertyDef(label = "寤掗棿鍚嶇О") + @Column(name = "ajmc", length = 256) + private String ajmc; + + @PropertyDef(label = "浠撴埧缂栫爜") + @Column(name = "cfdm", length = 25) + private String cfdm; + + @PropertyDef(label = "浠撴埧绫诲瀷浠g爜") + @Column(name = "cflxdm", length = 8) + private String cflxdm; + + @PropertyDef(label = "寤掗棿璁捐浠撳") + @Column(name = "sjcr", precision = 20, scale = 6) + private Double sjcr; + + @PropertyDef(label = "寤掗棿鐘舵��") + @Column(name = "ajzt", length = 1) + private String ajzt; + + @PropertyDef(label = "鎿嶄綔鏍囧織") + @Column(name = "czbz", length = 1) + private String czbz; + + @JSONField(format = "yyyy-MM-dd HH:mm:ss") + @PropertyDef(label = "鏈�鍚庢洿鏂版椂闂�") + @Column(name = "zhgxsj") + private Date zhgxsj; + + @PropertyDef(label = "鏍囪浣�") + @Column(name = "bjw", length = 40) + private String bjw; + + /*----------鎺ュ彛绯荤粺鑷畾涔夊瓧娈�----------*/ + @JSONField(serialize = false) + @PropertyDef(label = "涓氬姟id") + @Column(name = "bizId", length = 40) + private String bizId; + + @JSONField(serialize = false) + @PropertyDef(label = "搴撳尯浠g爜") + @Column(name = "kqdm", length = 21) + private String kqdm; + + @JSONField(serialize = false) + @PropertyDef(label = "鍚屾鏃堕棿", description = "浠庣伯搴撶郴缁熷悓姝ュ埌鎺ュ彛绠$悊涓績鐨勬椂闂�") + @Column(name = "syncTime") + private Date syncTime; + +} diff --git a/src/main/java/com/fzzy/api/entity/Api9113.java b/src/main/java/com/fzzy/api/entity/Api9113.java new file mode 100644 index 0000000..2539ef1 --- /dev/null +++ b/src/main/java/com/fzzy/api/entity/Api9113.java @@ -0,0 +1,72 @@ +package com.fzzy.api.entity; + +import com.alibaba.fastjson.annotation.JSONField; +import com.bstek.dorado.annotation.PropertyDef; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Table; +import java.io.Serializable; +import java.util.Date; + +/** + * 瀵瑰啘鏀惰喘-璐т綅淇℃伅 + */ +@Data +@Entity +@Table(name = "API_9113") +@EqualsAndHashCode(callSuper=false) +public class Api9113 implements Serializable { + + private static final long serialVersionUID = -6967028172020353365L; + + @Id + @PropertyDef(label = "璐т綅浠g爜" ) + @Column(name = "hwdm", length = 30) + private String hwdm; + + @PropertyDef(label = "璐т綅鍚嶇О" ) + @Column(name = "hwmc", length = 256) + private String hwmc; + + @PropertyDef(label = "寤掗棿浠g爜" ) + @Column(name = "ajdm", length = 28) + private String ajdm; + + @PropertyDef(label = "璐т綅瀹归噺" ) + @Column(name = "hwrl", precision = 20, scale = 6) + private Double hwrl; + + @PropertyDef(label = "鎿嶄綔鏍囧織" ) + @Column(name = "czbz", length = 1) + private String czbz; + + @PropertyDef(label = "鏈�鍚庢洿鏂版椂闂�" ) + @JSONField(format = "yyyy-MM-dd HH:mm:ss") + @Column(name = "zhgxsj") + private Date zhgxsj; + + @PropertyDef(label = "鏍囪浣�") + @Column(name = "bjw", length = 40) + private String bjw; + + /*----------鎺ュ彛绯荤粺鑷畾涔夊瓧娈�----------*/ + @JSONField(serialize = false) + @PropertyDef(label = "涓氬姟id") + @Column(name = "bizId", length = 40) + private String bizId; + + @JSONField(serialize = false) + @PropertyDef(label = "搴撳尯浠g爜") + @Column(name = "kqdm", length = 21) + private String kqdm; + + @JSONField(serialize = false) + @PropertyDef(label = "鍚屾鏃堕棿", description = "浠庣伯搴撶郴缁熷悓姝ュ埌鎺ュ彛绠$悊涓績鐨勬椂闂�") + @Column(name = "syncTime") + private Date syncTime; + +} diff --git a/src/main/java/com/fzzy/api/entity/Api9114.java b/src/main/java/com/fzzy/api/entity/Api9114.java new file mode 100644 index 0000000..1c4a6ff --- /dev/null +++ b/src/main/java/com/fzzy/api/entity/Api9114.java @@ -0,0 +1,265 @@ +package com.fzzy.api.entity; + +import com.alibaba.fastjson.annotation.JSONField; +import com.bstek.dorado.annotation.PropertyDef; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Table; +import java.io.Serializable; +import java.util.Date; + +/** + * 瀵瑰啘鏀惰喘-绮鍏ュ簱淇℃伅 + */ +@Data +@Entity +@Table(name = "API_9114") +@EqualsAndHashCode(callSuper = false) +public class Api9114 extends ApiParent implements Serializable { + + private static final long serialVersionUID = 732306685977570111L; + + public static String SORT_PROP = "rkywdh"; + + @Id + @PropertyDef(label = "鍏ュ簱涓氬姟鍗曞彿") + @Column(name = "rkywdh", length = 12) + private String rkywdh; + + @PropertyDef(label = "璐т綅浠g爜") + @Column(name = "hwdm", length = 30) + private String hwdm; + + @PropertyDef(label = "涓氬姟绫诲瀷", description = "2锛氬叆搴擄紙榛樿锛�;3:绉诲簱鍌ㄥ瓨鍏ュ簱") + @Column(name = "ywlx", length = 1) + private String ywlx = "2"; + + @JSONField(format = "yyyy-MM-dd") + @PropertyDef(label = "涓氬姟鏃ユ湡") + @Column(name = "ywrq") + private Date ywrq; + + @PropertyDef(label = "瀹㈡埛鍚嶇О") + @Column(name = "khmc", length = 64) + private String khmc; + + @PropertyDef(label = "瀹㈡埛绫诲瀷", description = "1锛氫釜浜�;2:鍗曚綅") + @Column(name = "khlx", length = 1) + private String khlx; + + @PropertyDef(label = "鑱旂郴鐢佃瘽") + @Column(name = "lxdh", length = 32) + private String lxdh; + + @PropertyDef(label = "瀹㈡埛璇佷欢") + @Column(name = "khzj", length = 18) + private String khzj; + + @PropertyDef(label = "瀹㈡埛鍦板潃") + @Column(name = "xxdz", length = 256) + private String xxdz; + + @PropertyDef(label = "韬唤璇佸彿") + @Column(name = "sfzh", length = 18) + private String sfzh; + + @PropertyDef(label = "杩愯緭宸ュ叿") + @Column(name = "ysgj", length = 1) + private String ysgj; + + @PropertyDef(label = "杞﹁埞鍙�") + @Column(name = "cch", length = 32) + private String cch; + + @JSONField(format = "yyyy-MM-dd HH:mm:ss") + @PropertyDef(label = "鐧昏鏃堕棿") + @Column(name = "djsj") + private Date djsj; + + @PropertyDef(label = "绮鍝佺浠g爜") + @Column(name = "lspzdm", length = 7) + private String lspzdm; + + @PropertyDef(label = "绮鎬ц川浠g爜") + @Column(name = "lsxzdm", length = 3) + private String lsxzdm; + + @PropertyDef(label = "鏀惰幏骞村害") + @Column(name = "shnd", length = 4) + private String shnd; + + @PropertyDef(label = "浜у湴浠g爜") + @Column(name = "cddm", length = 6) + private String cddm; + + @PropertyDef(label = "妫�鏂ょ被鍨�") + @Column(name = "jjlx", length = 1) + private String jjlx; + + @PropertyDef(label = "姣涢噸(鍏枻)") + @Column(name = "mz") + private double mz; + + @PropertyDef(label = "姣涢噸鐩戠鍛�") + @Column(name = "mzjby", length = 64) + private String mzjby; + + @JSONField(format = "yyyy-MM-dd HH:mm:ss") + @PropertyDef(label = "姣涢噸璁¢噺鏃堕棿") + @Column(name = "mzjlsj") + private Date mzjlsj; + + @PropertyDef(label = "姣涢噸璁¢噺鍛�") + @Column(name = "mzjly", length = 64) + private String mzjly; + + @PropertyDef(label = "鍊间粨鍛�") + @Column(name = "zcy", length = 64) + private String zcy; + + @PropertyDef(label = "鐨噸(鍏枻)") + @Column(name = "pz") + private double pz; + @PropertyDef(label = "鐨噸鐩戠鍛�") + @Column(name = "pzjby", length = 64) + private String pzjby; + + @JSONField(format = "yyyy-MM-dd HH:mm:ss") + @PropertyDef(label = "鐨噸璁¢噺鏃堕棿") + @Column(name = "pzjlsj") + private Date pzjlsj; + + @PropertyDef(label = "鐨噸璁¢噺鍛�") + @Column(name = "pzjly", length = 64) + private String pzjly; + + @PropertyDef(label = "鍖呰鐗�") + @Column(name = "bzw", length = 1) + private String bzw; + + @PropertyDef(label = "鏍囧噯鍖呭崟鍖呴噸(鍏枻)") + @Column(name = "bzbdbz") + private Double bzbdbz = 25.0; + + @PropertyDef(label = "鏍囧噯鍖呬欢鏁�(浠�)") + @Column(name = "bzbjs") + private Integer bzbjs; + + @PropertyDef(label = "璐ㄦ鎵i噺(灏忚:鍏枻)") + @Column(name = "zjklxj") + private Double zjklxj; + + @PropertyDef(label = "鍏朵腑锛氭按鍒嗗鎵i噺(鍏枻)") + @Column(name = "qzsfzkl") + private Double qzsfzkl; + + @PropertyDef(label = "鍏朵腑锛氭潅璐ㄥ鎵i噺(鍏枻)") + @Column(name = "qzzzzkl") + private Double qzzzzkl; + + @PropertyDef(label = "鍏朵腑锛氫笉瀹屽杽绮掓墸閲�(鍏枻)") + @Column(name = "qzbwslkl") + private Double qzbwslkl; + + @PropertyDef(label = "鍏朵腑锛氫簰娣锋墸閲�(鍏枻)") + @Column(name = "qzhhkl") + private Double qzhhkl; + + @PropertyDef(label = "鍏朵腑锛氱敓闇夌矑鎵i噺(鍏枻)") + @Column(name = "qzsmlkl") + private Double qzsmlkl; + + @PropertyDef(label = "鍏朵腑锛氭暣绮剧背绮掓墸閲�(鍏枻)") + @Column(name = "qzzjmlkl") + private Double qzzjmlkl; + + @PropertyDef(label = "鍏朵腑锛氳胺澶栫硻绫虫墸閲�(鍏枻)") + @Column(name = "qzgwcmkl") + private Double qzgwcmkl; + + @PropertyDef(label = "鍏朵腑榛勭矑绫虫墸閲�(鍏枻)") + @Column(name = "qzhlmkl") + private Double qzhlmkl; + + @PropertyDef(label = "鍏朵腑锛氬叾浠栨墸閲�(鍏枻)") + @Column(name = "qzqtkl") + private Double qzqtkl; + + @PropertyDef(label = "鏁寸悊璐圭敤鎶樻墸閲�(鍏枻)") + @Column(name = "zlfyzkl") + private Double zlfyzkl; + + @PropertyDef(label = "鍖呰鐗╂墸閲�(鍏枻)") + @Column(name = "bzwkl") + private Double bzwkl; + + @PropertyDef(label = "鍏朵粬鎵i噺(鍏枻)") + @Column(name = "qtkl") + private Double qtkl; + + @PropertyDef(label = "鎵i噺鍘熷洜") + @Column(name = "klyy", length = 512) + private String klyy; + + @PropertyDef(label = "鐜板満鎵i噺(鍏枻)") + @Column(name = "xckl") + private Double xckl; + + @PropertyDef(label = "绮鍝佽川") + @Column(name = "lspz", length = 1) + private String lspz; + + @PropertyDef(label = "绮鍝佸悕") + @Column(name = "lspm", length = 30) + private String lspm; + + @PropertyDef(label = "鍑�閲�(鍏枻)") + @Column(name = "jz") + private Double jz; + + @PropertyDef(label = "缁撶畻鍗曚环") + @Column(name = "jsdj") + private Double jsdj; + + @JSONField(format = "yyyy-MM-dd HH:mm:ss") + @PropertyDef(label = "鍑洪棬鏃堕棿") + @Column(name = "cmsj") + private Date cmsj; + + @PropertyDef(label = "澶囨敞") + @Column(name = "bz", length = 400) + private String bz; + + @PropertyDef(label = "鎿嶄綔鏍囧織") + @Column(name = "czbz", length = 1) + private String czbz; + + @JSONField(format = "yyyy-MM-dd HH:mm:ss") + @PropertyDef(label = "鏇存柊鏃堕棿") + @Column(name = "zhgxsj") + private Date zhgxsj; + + @PropertyDef(label = "鏍囪浣�") + @Column(name = "bjw", length = 32) + private String bjw; + + /*----------鎺ュ彛绯荤粺鑷畾涔夊瓧娈�----------*/ + @JSONField(serialize = false) + @PropertyDef(label = "涓氬姟id") + @Column(name = "bizId", length = 40) + private String bizId; + + @JSONField(serialize = false) + @PropertyDef(label = "搴撳尯浠g爜") + @Column(name = "kqdm", length = 21) + private String kqdm; + + @JSONField(serialize = false) + @PropertyDef(label = "鍚屾鏃堕棿", description = "浠庣伯搴撶郴缁熷悓姝ュ埌鎺ュ彛绠$悊涓績鐨勬椂闂�") + @Column(name = "syncTime") + private Date syncTime; +} diff --git a/src/main/java/com/fzzy/api/entity/Api9115.java b/src/main/java/com/fzzy/api/entity/Api9115.java new file mode 100644 index 0000000..d65fb99 --- /dev/null +++ b/src/main/java/com/fzzy/api/entity/Api9115.java @@ -0,0 +1,101 @@ +package com.fzzy.api.entity; + +import com.alibaba.fastjson.annotation.JSONField; +import com.bstek.dorado.annotation.PropertyDef; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Table; +import java.io.Serializable; +import java.util.Date; + +/** + * 瀵瑰啘鏀惰喘-鏉ョ伯妫�楠屼俊鎭� + */ +@Data +@Entity +@Table(name = "API_9115") +@EqualsAndHashCode(callSuper = false) +public class Api9115 extends ApiParent implements Serializable { + + private static final long serialVersionUID = 6358720988401094465L; + public static String SORT_PROP = "rkjydh"; + + @Id + @PropertyDef(label = "鍏ュ簱妫�楠屽崟鍙�") + @Column(name = "rkjydh", length = 12) + private String rkjydh; + + @PropertyDef(label = "璐т綅浠g爜") + @Column(name = "hwdm", length = 30) + private String hwdm; + + @PropertyDef(label = "鍏ュ簱涓氬姟鍗曞彿") + @Column(name = "rkywdh", length = 12) + private String rkywdh; + + @PropertyDef(label = "妫�楠屾柟寮�") + @Column(name = "jyfs", length = 1) + private String jyfs; + + @PropertyDef(label = "妫�楠岄」鐩�,闅斿紑") + @Column(name = "jyxm", length = 1024) + private String jyxm; + + @PropertyDef(label = "妫�楠屽��,闅斿紑") + @Column(name = "jyz", length = 1024) + private String jyz; + + @PropertyDef(label = "妫�楠屼汉濮撳悕") + @Column(name = "jyrxm", length = 64) + private String jyrxm; + + @JSONField(format = "yyyy-MM-dd HH:mm:ss") + @PropertyDef(label = "妫�楠屾椂闂�") + @Column(name = "jysj") + private Date jysj; + + @PropertyDef(label = "妫�楠岀粨鏋�") + @Column(name = "jyjg", length = 1) + private String jyjg; + + @PropertyDef(label = "绮鍝佺浠g爜") + @Column(name = "lspzdm", length = 7) + private String lspzdm; + + @PropertyDef(label = "绮瀹氱瓑") + @Column(name = "lsdd", length = 2) + private String lsdd; + + @PropertyDef(label = "鎿嶄綔鏍囧織") + @Column(name = "czbz", length = 1) + private String czbz; + + @JSONField(format = "yyyy-MM-dd HH:mm:ss") + @PropertyDef(label = "鏇存柊鏃堕棿") + @Column(name = "zhgxsj") + private Date zhgxsj; + + @PropertyDef(label = "鏍囪浣�") + @Column(name = "bjw", length = 32) + private String bjw; + + /*----------鎺ュ彛绯荤粺鑷畾涔夊瓧娈�----------*/ + @JSONField(serialize = false) + @PropertyDef(label = "涓氬姟id") + @Column(name = "bizId", length = 40) + private String bizId; + + @JSONField(serialize = false) + @PropertyDef(label = "搴撳尯浠g爜") + @Column(name = "kqdm", length = 21) + private String kqdm; + + @JSONField(serialize = false) + @PropertyDef(label = "鍚屾鏃堕棿", description = "浠庣伯搴撶郴缁熷悓姝ュ埌鎺ュ彛绠$悊涓績鐨勬椂闂�") + @Column(name = "syncTime") + private Date syncTime; +} diff --git a/src/main/java/com/fzzy/api/entity/Api9116.java b/src/main/java/com/fzzy/api/entity/Api9116.java new file mode 100644 index 0000000..59666f1 --- /dev/null +++ b/src/main/java/com/fzzy/api/entity/Api9116.java @@ -0,0 +1,129 @@ +package com.fzzy.api.entity; + +import com.alibaba.fastjson.annotation.JSONField; +import com.bstek.dorado.annotation.PropertyDef; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Table; +import java.io.Serializable; +import java.util.Date; + +/** + * 瀵瑰啘鏀惰喘-绮鏀惰喘鍩虹淇℃伅 + */ +@Data +@Entity +@Table(name = "API_9116") +@EqualsAndHashCode(callSuper = false) +public class Api9116 extends ApiParent implements Serializable { + + private static final long serialVersionUID = -4665459773129047897L; + + public static String SORT_PROP = "dwdm"; + + @Id + @PropertyDef(label = "鍗曚綅浠g爜") + @Column(name = "dwdm", length = 18) + private String dwdm; + + @PropertyDef(label = "鍗曚綅鍚嶇О") + @Column(name = "dwmc", length = 256) + private String dwmc; + + @PropertyDef(label = "鏀惰喘骞村害") + @Column(name = "sgnd", length = 4) + private String sgnd; + + @PropertyDef(label = "鏀剁伯鏈熼棿") + @Column(name = "slqj", length = 1) + private String slqj; + + @PropertyDef(label = "鎾鎬婚潰绉�") + @Column(name = "bzzmj") + private Double bzzmj; + + @PropertyDef(label = "棰勮浜ч噺") + @Column(name = "yjcl") + private Double yjcl; + + @PropertyDef(label = "棰勮鍟嗗搧閲�") + @Column(name = "yjspl") + private Double yjspl; + + @PropertyDef(label = "棰勮鏀惰喘閲�") + @Column(name = "yjsgl") + private Double yjsgl; + + @PropertyDef(label = "棰勮璁㈠崟鏀惰喘閲�") + @Column(name = "yjddsgl") + private Double yjddsgl; + + @PropertyDef(label = "鎬讳粨瀹�") + @Column(name = "zcr") + private Double zcr; + + @PropertyDef(label = "鍙敤浠撳") + @Column(name = "kycr") + private Double kycr; + + @PropertyDef(label = "浠撳缂哄彛") + @Column(name = "crqk") + private Double crqk; + + @PropertyDef(label = "鏃ユ敹璐兘鍔�") + @Column(name = "rsgnl") + private Double rsgnl; + + @PropertyDef(label = "鏃ョ儤骞茶兘鍔�") + @Column(name = "rhgnl") + private Double rhgnl; + + @PropertyDef(label = "鍖虹骇鍌ㄥ杞崲鏁伴噺") + @Column(name = "qjcblhsl") + private Double qjcblhsl; + + @PropertyDef(label = "鎸傜墝浠�") + @Column(name = "gpj") + private Double gpj; + + @PropertyDef(label = "浠峰琛ヨ创") + @Column(name = "jwbt") + private Double jwbt; + + @PropertyDef(label = "鎬讳环") + @Column(name = "zj") + private Double zj; + + @PropertyDef(label = "鎿嶄綔鏍囧織") + @Column(name = "czbz", length = 1) + private String czbz; + + @JSONField(format = "yyyy-MM-dd HH:mm:ss") + @PropertyDef(label = "鏇存柊鏃堕棿") + @Column(name = "zhgxsj") + private Date zhgxsj; + + @PropertyDef(label = "鏍囪浣�") + @Column(name = "bjw", length = 32) + private String bjw; + + /*----------鎺ュ彛绯荤粺鑷畾涔夊瓧娈�----------*/ + @JSONField(serialize = false) + @PropertyDef(label = "涓氬姟id") + @Column(name = "bizId", length = 40) + private String bizId; + + @JSONField(serialize = false) + @PropertyDef(label = "搴撳尯浠g爜") + @Column(name = "kqdm", length = 21) + private String kqdm; + + @JSONField(serialize = false) + @PropertyDef(label = "鍚屾鏃堕棿", description = "浠庣伯搴撶郴缁熷悓姝ュ埌鎺ュ彛绠$悊涓績鐨勬椂闂�") + @Column(name = "syncTime") + private Date syncTime; +} diff --git a/src/main/java/com/fzzy/api/view/Api9109.view.xml b/src/main/java/com/fzzy/api/view/Api9109.view.xml new file mode 100644 index 0000000..0aebcea --- /dev/null +++ b/src/main/java/com/fzzy/api/view/Api9109.view.xml @@ -0,0 +1,557 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ViewConfig> + <Arguments/> + <Context/> + <Model> + <DataType name="dtMain"> + <Property name="creationType">com.fzzy.api.entity.Api9109</Property> + <PropertyDef name="dwdm"> + <Property/> + <Property name="label">鍗曚綅浠g爜</Property> + </PropertyDef> + <PropertyDef name="dwmc"> + <Property/> + <Property name="label">鍗曚綅鍚嶇О</Property> + </PropertyDef> + <PropertyDef name="dwlx"> + <Property/> + <Property name="label">鍗曚綅绫诲瀷</Property> + </PropertyDef> + <PropertyDef name="fddbr"> + <Property/> + <Property name="label">娉曞畾浠h〃浜�</Property> + </PropertyDef> + <PropertyDef name="frsfzh"> + <Property/> + <Property name="label">娉曚汉韬唤璇佸彿</Property> + </PropertyDef> + <PropertyDef name="frlxfs"> + <Property/> + <Property name="label">娉曚汉鑱旂郴鏂瑰紡</Property> + </PropertyDef> + <PropertyDef name="qylxr"> + <Property/> + <Property name="label">浼佷笟鑱旂郴浜�</Property> + </PropertyDef> + <PropertyDef name="bgdh"> + <Property/> + <Property name="label">鍔炲叕鐢佃瘽</Property> + </PropertyDef> + <PropertyDef name="zcdz"> + <Property/> + <Property name="label">娉ㄥ唽鍦板潃</Property> + </PropertyDef> + <PropertyDef name="yzbm"> + <Property/> + <Property name="label">閭斂缂栫爜</Property> + </PropertyDef> + <PropertyDef name="xzqhdm"> + <Property/> + <Property name="label">琛屾斂鍖哄垝浠g爜</Property> + </PropertyDef> + <PropertyDef name="snkgs"> + <Property name="dataType">Integer</Property> + <Property name="label">鏀剁撼搴撲釜鏁�</Property> + </PropertyDef> + <PropertyDef name="cfs"> + <Property name="dataType">Integer</Property> + <Property name="label">浠撴埧鏁�</Property> + </PropertyDef> + <PropertyDef name="ygs"> + <Property name="dataType">Integer</Property> + <Property name="label">娌圭綈鏁�</Property> + </PropertyDef> + <PropertyDef name="jd"> + <Property name="dataType">Double</Property> + <Property name="label">缁忓害</Property> + </PropertyDef> + <PropertyDef name="wd"> + <Property name="dataType">Double</Property> + <Property name="label">绾害</Property> + </PropertyDef> + <PropertyDef name="dwzt"> + <Property/> + <Property name="label">鍗曚綅鐘舵��</Property> + </PropertyDef> + <PropertyDef name="czbz"> + <Property/> + <Property name="label">鎿嶄綔鏍囧織</Property> + </PropertyDef> + <PropertyDef name="zhgxsj"> + <Property name="dataType">Date</Property> + <Property name="label">鏈�鍚庢洿鏂版椂闂�</Property> + </PropertyDef> + <PropertyDef name="bizId"> + <Property/> + <Property name="label">涓氬姟id</Property> + </PropertyDef> + <PropertyDef name="kqdm"> + <Property/> + <Property name="label">搴撳尯浠g爜</Property> + </PropertyDef> + <PropertyDef name="syncTime"> + <Property name="dataType">Date</Property> + <Property name="label">鍚屾鏃堕棿</Property> + </PropertyDef> + </DataType> + <DataType name="dtGBArea"> + <Property name="creationType">com.fzzy.api.entity.GbArea</Property> + <PropertyDef name="code"> + <Property></Property> + <Property name="label">鎺ュ彛缂栫爜</Property> + </PropertyDef> + <PropertyDef name="name"> + <Property></Property> + <Property name="label">鍚嶇О</Property> + </PropertyDef> + <PropertyDef name="parentCode"> + <Property></Property> + <Property name="label">鐖剁紪鐮�</Property> + </PropertyDef> + <PropertyDef name="disabledTag"> + <Property></Property> + <Property name="label">绂佺敤</Property> + </PropertyDef> + <PropertyDef name="simple"> + <Property></Property> + <Property name="label">鏄惁榛樿</Property> + </PropertyDef> + <PropertyDef name="remark"> + <Property></Property> + <Property name="label">澶囨敞璇存槑</Property> + </PropertyDef> + </DataType> + <DataType name="dtLog"> + <Property name="creationType">com.fzzy.api.entity.ApiLog</Property> + <PropertyDef name="id"> + <Property></Property> + </PropertyDef> + <PropertyDef name="kqdm"> + <Property></Property> + <Property name="label">搴撳尯浠g爜</Property> + </PropertyDef> + <PropertyDef name="inteId"> + <Property></Property> + <Property name="label">鎺ュ彛缂栧彿</Property> + </PropertyDef> + <PropertyDef name="uploadTime"> + <Property name="dataType">Date</Property> + <Property name="label">涓婁紶鏃堕棿</Property> + </PropertyDef> + <PropertyDef name="status"> + <Property name="dataType">int</Property> + <Property name="label">涓婁紶缁撴灉</Property> + </PropertyDef> + <PropertyDef name="result"> + <Property></Property> + <Property name="label">杩斿洖淇℃伅</Property> + </PropertyDef> + <PropertyDef name="dataId"> + <Property></Property> + <Property name="label">鎺ュ彛鏁版嵁涓婚敭</Property> + </PropertyDef> + <PropertyDef name="data"> + <Property></Property> + <Property name="label">鎺ュ彛鎶ユ枃</Property> + </PropertyDef> + </DataType> + </Model> + <View layout="regionPadding:10"> + <Property name="packages">font-awesome,css-common</Property> + <DataSet id="dsMain"> + <Property name="dataType">[dtMain]</Property> + <Property name="dataProvider">api9109PR#listAll</Property> + </DataSet> + <ToolBar> + <ToolBarLabel> + <Property name="text">宸ュ叿鏍忥細</Property> + <Property name="style"> + <Property name="font-weight">bold</Property> + </Property> + </ToolBarLabel> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").flushAsync();</ClientEvent> + <Property name="caption">鍒锋柊</Property> + <Property name="iconClass">fa fa-search</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-push</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").insert();
 +view.get("#dialogMain").show();</ClientEvent> + <Property name="caption">鏂板</Property> + <Property name="iconClass">fa fa-plus</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#dialogMain").show();
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佷慨鏀圭殑鏁版嵁锛�");
 +}
 +</ClientEvent> + <Property name="caption">淇敼</Property> + <Property name="iconClass">fa fa-pencil</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-warm</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#ajaxDelUpdate").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.set("czbz","d");
 + }
 + });
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佹爣璁板垹闄ょ殑鏁版嵁锛�");
 +}
 +</ClientEvent> + <Property name="caption">鏍囪鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#ajaxDel").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.remove();
 + }
 + });
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佸垹闄ょ殑鏁版嵁锛�");
 +}</ClientEvent> + <Property name="caption">鐩存帴鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
 +if(select && select.length > 0){
 + view.get("#ajaxPush").set("parameter",select).execute(function(result){
 + view.get("#dsMain").flushAsync();
 + $notify(result);
 + });
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佷笂鎶ョ殑鏁版嵁锛�");
 +}</ClientEvent> + <Property name="caption">鎵嬪姩涓婁紶</Property> + <Property name="iconClass">fa fa-hand-o-up</Property> + <Property name="exClassName">toolbar-button-push</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Fill/> + <ToolBarButton> + <ClientEvent name="onClick">//鏄剧ず璁板綍
 +view.get("#iFrame").reload();
 +view.get("#dialogLog").show();</ClientEvent> + <Property name="caption">涓婁紶璁板綍</Property> + <Property name="iconClass">fa fa-bars</Property> + <Property name="exClassName">toolbar-button</Property> + </ToolBarButton> + </ToolBar> + <DataGrid id="dgMain"> + <Property name="dataSet">dsMain</Property> + <Property name="selectionMode">multiRows</Property> + <Property name="readOnly">true</Property> + <RowNumColumn/> + <RowSelectorColumn> + <Property name="caption">涓婁紶</Property> + </RowSelectorColumn> + <DataColumn name="dwmc"> + <Property name="property">dwmc</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="dwdm"> + <Property name="property">dwdm</Property> + <Property name="width">200</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="dwlx"> + <Property name="property">dwlx</Property> + <Property name="width">150</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="fddbr"> + <Property name="property">fddbr</Property> + <Property name="width">100</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="kqdm"> + <Property name="property">kqdm</Property> + <Property name="visible">true</Property> + <Property name="width">200</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="czbz"> + <Property name="property">czbz</Property> + <Property name="align">center</Property> + <Property name="width">100</Property> + </DataColumn> + <DataColumn name="zhgxsj"> + <Property name="property">zhgxsj</Property> + <Property name="width">160</Property> + <Property name="align">center</Property> + </DataColumn> + </DataGrid> + <Dialog id="dialogMain" layout="padding:5;regionPadding:5"> + <Property name="width">1000</Property> + <Property name="caption">鍗曚綅淇℃伅</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Property name="closeable">false</Property> + <Property name="height">90%</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#updateSave").execute(function(){
 + self.get("parent").hide();
 + view.get("#dsMain").flushAsync();
 +});
 +</ClientEvent> + <Property name="caption">淇濆瓨淇敼</Property> + <Property name="iconClass">fa fa-check</Property> + <Property name="exClassName">toolbar-button</Property> + </Button> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +self.get("parent").hide();
 +if(cur) cur.cancel();</ClientEvent> + <Property name="caption">鍙栨秷淇敼</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</Property> + </Button> + </Buttons> + <Children> + <GroupBox> + <Property name="caption">鍩虹淇℃伅</Property> + <Buttons/> + <Children> + <AutoForm> + <Property name="dataSet">dsMain</Property> + <Property name="cols">*,*,*</Property> + <Property name="labelWidth">100</Property> + <Property name="labelAlign">left</Property> + <Property name="labelSeparator">锛�</Property> + <Property name="labelPosition">top</Property> + <AutoFormElement> + <Property name="name">dwdm</Property> + <Property name="property">dwdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">dwmc</Property> + <Property name="property">dwmc</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">dwlx</Property> + <Property name="property">dwlx</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">fddbr</Property> + <Property name="property">fddbr</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">frsfzh</Property> + <Property name="property">frsfzh</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">frlxfs</Property> + <Property name="property">frlxfs</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">qylxr</Property> + <Property name="property">qylxr</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bgdh</Property> + <Property name="property">bgdh</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">zcdz</Property> + <Property name="property">zcdz</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">yzbm</Property> + <Property name="property">yzbm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">xzqhdm</Property> + <Property name="property">xzqhdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">snkgs</Property> + <Property name="property">snkgs</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cfs</Property> + <Property name="property">cfs</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">ygs</Property> + <Property name="property">ygs</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">jd</Property> + <Property name="property">jd</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">wd</Property> + <Property name="property">wd</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">dwzt</Property> + <Property name="property">dwzt</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">czbz</Property> + <Property name="property">czbz</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">zhgxsj</Property> + <Property name="property">zhgxsj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bizId</Property> + <Property name="property">bizId</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">kqdm</Property> + <Property name="property">kqdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">syncTime</Property> + <Property name="property">syncTime</Property> + <Editor/> + </AutoFormElement> + </AutoForm> + </Children> + </GroupBox> + </Children> + <Tools/> + </Dialog> + <UpdateAction id="updateSave"> + <Property name="dataResolver">api9109PR#updateSave</Property> + <UpdateItem> + <Property name="dataPath">[#current]</Property> + <Property name="dataSet">dsMain</Property> + </UpdateItem> + </UpdateAction> + <AjaxAction id="ajaxPush"> + <Property name="service">api9109PR#pushData</Property> + <Property name="confirmMessage">纭畾瑕佷笂鎶ヤ箞锛�</Property> + </AjaxAction> + <AjaxAction id="ajaxDel"> + <Property name="service">api9109PR#delData</Property> + <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property> + </AjaxAction> + <AjaxAction id="ajaxDelUpdate"> + <Property name="service">api9109PR#delUpdate</Property> + <Property name="confirmMessage">纭畾瑕佸皢鏁版嵁鏍囪涓哄垹闄や箞锛�</Property> + </AjaxAction> + <CustomDropDown id="cddGbArea"> + <Property name="assignmentMap">xzqhdm=code,xzqhmc=name</Property> + <Property name="height">500</Property> + <Property name="minHeight">500</Property> + <Property name="maxHeight">500</Property> + <Property name="width">400</Property> + <Container layout="regionPadding:5"> + <DataSet id="dsGBArea"> + <Property name="dataProvider">gbAreaPR#findByCode</Property> + <Property name="dataType">[dtGBArea]</Property> + </DataSet> + <Container layout="hbox regionPadding:5"> + <TextEditor id="key2"> + <Property name="blankText"> -- 缂栫爜鎴栬�呭悕绉� --</Property> + <Property name="width">200</Property> + </TextEditor> + <Button> + <ClientEvent name="onClick">var key = view.get("#key2.value");
 +view.get("#dsGBArea").set("parameter",{key:key}).flushAsync();</ClientEvent> + <Property name="iconClass">fa fa-search</Property> + <Property name="caption">鏌ヨ</Property> + </Button> + <Button> + <ClientEvent name="onClick">var data = view.get("#dsGBArea.data:#");
 +if (data) {
 + view.get("#cddGbArea").close(data.toJSON());
 +}</ClientEvent> + <Property name="caption">纭畾</Property> + <Property name="iconClass">fa fa-check</Property> + </Button> + </Container> + <DataGrid> + <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsGBArea.data:#");
 +if(data){
 + view.get("#cddGbArea").close(data.toJSON());
 +}</ClientEvent> + <Property name="dataSet">dsGBArea</Property> + <Property name="readOnly">true</Property> + <DataColumn name="code"> + <Property name="property">code</Property> + </DataColumn> + <DataColumn name="name"> + <Property name="property">name</Property> + </DataColumn> + </DataGrid> + </Container> + </CustomDropDown> + <Dialog id="dialogLog"> + <Property name="width">90%</Property> + <Property name="height">90%</Property> + <Property name="caption">涓婁紶璁板綍</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">self.get("parent").hide();</ClientEvent> + <Property name="caption">鍏抽棴</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</Property> + </Button> + </Buttons> + <Children> + <Container> + <IFrame id="iFrame"> + <Property name="path">com.fzzy.api.view.ApiLog.d</Property> + <Property name="userData"> + <Entity> + <Property name="deptId">deptId</Property> + </Entity> + </Property> + </IFrame> + </Container> + </Children> + <Tools/> + </Dialog> + </View> +</ViewConfig> diff --git a/src/main/java/com/fzzy/api/view/Api9110.view.xml b/src/main/java/com/fzzy/api/view/Api9110.view.xml new file mode 100644 index 0000000..ba32723 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/Api9110.view.xml @@ -0,0 +1,449 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ViewConfig> + <Arguments/> + <Context/> + <Model> + <DataType name="dtMain"> + <Property name="creationType">com.fzzy.api.entity.Api9110</Property> + <PropertyDef name="kqdm"> + <Property/> + <Property name="label">搴撳尯浠g爜</Property> + </PropertyDef> + <PropertyDef name="dwdm"> + <Property/> + <Property name="label">鍗曚綅浠g爜</Property> + </PropertyDef> + <PropertyDef name="kqmc"> + <Property/> + <Property name="label">搴撳尯鍚嶇О</Property> + </PropertyDef> + <PropertyDef name="kqdz"> + <Property/> + <Property name="label">搴撳尯鍦板潃</Property> + </PropertyDef> + <PropertyDef name="xzqhdm"> + <Property/> + <Property name="label">琛屾斂鍖哄垝浠g爜</Property> + </PropertyDef> + <PropertyDef name="kqcq"> + <Property/> + <Property name="label">搴撳尯浜ф潈</Property> + </PropertyDef> + <PropertyDef name="yxcr"> + <Property name="dataType">Double</Property> + <Property name="label">璁捐浠撳</Property> + </PropertyDef> + <PropertyDef name="cfs"> + <Property name="dataType">Integer</Property> + <Property name="label">浠撴埧鏁�</Property> + </PropertyDef> + <PropertyDef name="ajs"> + <Property name="dataType">Integer</Property> + <Property name="label">寤掗棿鏁�</Property> + </PropertyDef> + <PropertyDef name="jd"> + <Property name="dataType">Double</Property> + <Property name="label">搴撳尯缁忓害</Property> + </PropertyDef> + <PropertyDef name="wd"> + <Property name="dataType">Double</Property> + <Property name="label">搴撳尯绾害</Property> + </PropertyDef> + <PropertyDef name="kqzt"> + <Property/> + <Property name="label">搴撳尯鐘舵��</Property> + </PropertyDef> + <PropertyDef name="czbz"> + <Property/> + <Property name="label">鎿嶄綔鏍囧織</Property> + </PropertyDef> + <PropertyDef name="zhgxsj"> + <Property name="dataType">Date</Property> + <Property name="label">鏈�鍚庢洿鏂版椂闂�</Property> + </PropertyDef> + <PropertyDef name="bjw"> + <Property/> + <Property name="label">鏍囪浣�</Property> + </PropertyDef> + <PropertyDef name="bizId"> + <Property/> + <Property name="label">涓氬姟id</Property> + </PropertyDef> + <PropertyDef name="syncTime"> + <Property name="dataType">Date</Property> + <Property name="label">鍚屾鏃堕棿</Property> + </PropertyDef> + </DataType> + <DataType name="dtGBArea"> + <Property name="creationType">com.fzzy.api.entity.GbArea</Property> + <PropertyDef name="code"> + <Property></Property> + <Property name="label">鎺ュ彛缂栫爜</Property> + </PropertyDef> + <PropertyDef name="name"> + <Property></Property> + <Property name="label">鍚嶇О</Property> + </PropertyDef> + <PropertyDef name="parentCode"> + <Property></Property> + <Property name="label">鐖剁紪鐮�</Property> + </PropertyDef> + <PropertyDef name="disabledTag"> + <Property></Property> + <Property name="label">绂佺敤</Property> + </PropertyDef> + <PropertyDef name="simple"> + <Property></Property> + <Property name="label">鏄惁榛樿</Property> + </PropertyDef> + <PropertyDef name="remark"> + <Property></Property> + <Property name="label">澶囨敞璇存槑</Property> + </PropertyDef> + </DataType> + </Model> + <View layout="regionPadding:10"> + <Property name="packages">font-awesome,css-common</Property> + <DataSet id="dsMain"> + <Property name="dataType">[dtMain]</Property> + <Property name="dataProvider">api9110PR#listAll</Property> + </DataSet> + <ToolBar> + <ToolBarLabel> + <Property name="text">宸ュ叿鏍忥細</Property> + <Property name="style"> + <Property name="font-weight">bold</Property> + </Property> + </ToolBarLabel> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").flushAsync();
 +</ClientEvent> + <Property name="caption">鍒锋柊</Property> + <Property name="iconClass">fa fa-search</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-push</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").insert();
 +view.get("#dialogMain").show();</ClientEvent> + <Property name="caption">鏂板</Property> + <Property name="iconClass">fa fa-plus</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#dialogMain").show();
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佷慨鏀圭殑鏁版嵁锛�");
 +}
 +</ClientEvent> + <Property name="caption">淇敼</Property> + <Property name="iconClass">fa fa-pencil</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-warm</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#ajaxDelUpdate").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.set("czbz","d");
 + }
 + });
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佹爣璁板垹闄ょ殑鏁版嵁锛�");
 +}
 +</ClientEvent> + <Property name="caption">鏍囪鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#ajaxDel").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.remove();
 + }
 + });
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佸垹闄ょ殑鏁版嵁锛�");
 +}
 +
 +</ClientEvent> + <Property name="caption">鐩存帴鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
 +if(select && select.length > 0){
 + view.get("#ajaxPush").set("parameter",select).execute(function(result){
 + view.get("#dsMain").flushAsync();
 + $notify(result);
 + });
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佷笂鎶ョ殑鏁版嵁锛�");
 +}</ClientEvent> + <Property name="caption">鎵嬪姩涓婁紶</Property> + <Property name="iconClass">fa fa-hand-o-up</Property> + <Property name="exClassName">toolbar-button-push</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Fill/> + <ToolBarButton> + <Property name="caption">涓婁紶璁板綍</Property> + <Property name="iconClass">fa fa-bars</Property> + <Property name="exClassName">toolbar-button</Property> + </ToolBarButton> + </ToolBar> + <DataGrid id="dgMain"> + <Property name="dataSet">dsMain</Property> + <Property name="selectionMode">multiRows</Property> + <Property name="readOnly">true</Property> + <RowNumColumn/> + <RowSelectorColumn> + <Property name="caption">涓婁紶</Property> + </RowSelectorColumn> + <DataColumn name="kqmc"> + <Property name="property">kqmc</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="kqdm"> + <Property name="property">kqdm</Property> + <Property name="width">220</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="kqcq"> + <Property name="property">kqcq</Property> + <Property name="width">80</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="yxcr"> + <Property name="property">yxcr</Property> + <Property name="width">100</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="cfs"> + <Property name="property">cfs</Property> + <Property name="width">80</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="czbz"> + <Property name="property">czbz</Property> + <Property name="width">100</Property> + <Property name="align">center</Property> + </DataColumn> + <DataColumn name="zhgxsj"> + <Property name="property">zhgxsj</Property> + <Property name="width">160</Property> + <Property name="align">center</Property> + </DataColumn> + </DataGrid> + <Dialog id="dialogMain" layout="padding:5;regionPadding:5"> + <Property name="width">1000</Property> + <Property name="caption">搴撳尯淇℃伅</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Property name="closeable">false</Property> + <Property name="height">80%</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#updateSave").execute(function(){
 + self.get("parent").hide();
 + view.get("#dsMain").flushAsync();
 +});</ClientEvent> + <Property name="caption">淇濆瓨淇敼</Property> + <Property name="iconClass">fa fa-check</Property> + <Property name="exClassName">toolbar-button</Property> + </Button> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +self.get("parent").hide();
 +if(cur) cur.cancel();</ClientEvent> + <Property name="caption">鍙栨秷淇敼</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</Property> + </Button> + </Buttons> + <Children> + <GroupBox> + <Property name="caption">鍩虹淇℃伅</Property> + <Buttons/> + <Children> + <AutoForm> + <Property name="dataSet">dsMain</Property> + <Property name="cols">*,*,*</Property> + <Property name="labelWidth">120</Property> + <Property name="labelAlign">left</Property> + <Property name="labelSeparator">锛�</Property> + <Property name="labelPosition">top</Property> + <AutoFormElement> + <Property name="name">kqdm</Property> + <Property name="property">kqdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">dwdm</Property> + <Property name="property">dwdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">kqmc</Property> + <Property name="property">kqmc</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">kqdz</Property> + <Property name="property">kqdz</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">xzqhdm</Property> + <Property name="property">xzqhdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">kqcq</Property> + <Property name="property">kqcq</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">yxcr</Property> + <Property name="property">yxcr</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cfs</Property> + <Property name="property">cfs</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">ajs</Property> + <Property name="property">ajs</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">jd</Property> + <Property name="property">jd</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">wd</Property> + <Property name="property">wd</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">kqzt</Property> + <Property name="property">kqzt</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">czbz</Property> + <Property name="property">czbz</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">zhgxsj</Property> + <Property name="property">zhgxsj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bjw</Property> + <Property name="property">bjw</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bizId</Property> + <Property name="property">bizId</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">syncTime</Property> + <Property name="property">syncTime</Property> + <Editor/> + </AutoFormElement> + </AutoForm> + </Children> + </GroupBox> + </Children> + <Tools/> + </Dialog> + <UpdateAction id="updateSave"> + <Property name="dataResolver">api9110PR#updateSave</Property> + <UpdateItem> + <Property name="dataPath">[#current]</Property> + <Property name="dataSet">dsMain</Property> + </UpdateItem> + </UpdateAction> + <AjaxAction id="ajaxPush"> + <Property name="service">api9110PR#pushData</Property> + <Property name="confirmMessage">纭畾瑕佷笂鎶ヤ箞锛�</Property> + </AjaxAction> + <AjaxAction id="ajaxDel"> + <Property name="service">api9110PR#delData</Property> + <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property> + </AjaxAction> + <AjaxAction id="ajaxDelUpdate"> + <Property name="service">api9110PR#delUpdate</Property> + <Property name="confirmMessage">纭畾瑕佸皢鏁版嵁鏍囪涓哄垹闄や箞锛�</Property> + </AjaxAction> + <CustomDropDown id="cddGbArea"> + <Property name="assignmentMap">xzqhdm=code,xzqhmc=name</Property> + <Property name="height">500</Property> + <Property name="minHeight">500</Property> + <Property name="maxHeight">500</Property> + <Property name="width">400</Property> + <Container layout="regionPadding:5"> + <DataSet id="dsGBArea"> + <Property name="dataProvider">gbAreaPR#findByCode</Property> + <Property name="dataType">[dtGBArea]</Property> + </DataSet> + <Container layout="hbox regionPadding:5"> + <TextEditor id="key2"> + <Property name="blankText"> -- 缂栫爜鎴栬�呭悕绉� --</Property> + <Property name="width">200</Property> + </TextEditor> + <Button> + <ClientEvent name="onClick">var key = view.get("#key2.value");
 +view.get("#dsGBArea").set("parameter",{key:key}).flushAsync();</ClientEvent> + <Property name="iconClass">fa fa-search</Property> + <Property name="caption">鏌ヨ</Property> + </Button> + <Button> + <ClientEvent name="onClick">var data = view.get("#dsGBArea.data:#");
 +if (data) {
 + view.get("#cddGbArea").close(data.toJSON());
 +}</ClientEvent> + <Property name="caption">纭畾</Property> + <Property name="iconClass">fa fa-check</Property> + </Button> + </Container> + <DataGrid> + <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsGBArea.data:#");
 +if(data){
 + view.get("#cddGbArea").close(data.toJSON());
 +}</ClientEvent> + <Property name="dataSet">dsGBArea</Property> + <Property name="readOnly">true</Property> + <DataColumn name="code"> + <Property name="property">code</Property> + </DataColumn> + <DataColumn name="name"> + <Property name="property">name</Property> + </DataColumn> + </DataGrid> + </Container> + </CustomDropDown> + </View> +</ViewConfig> diff --git a/src/main/java/com/fzzy/api/view/Api9111.view.xml b/src/main/java/com/fzzy/api/view/Api9111.view.xml new file mode 100644 index 0000000..ce5161d --- /dev/null +++ b/src/main/java/com/fzzy/api/view/Api9111.view.xml @@ -0,0 +1,307 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ViewConfig> + <Arguments/> + <Context/> + <Model> + <DataType name="dtMain"> + <Property name="creationType">com.fzzy.api.entity.Api9111</Property> + <PropertyDef name="cfdm"> + <Property/> + <Property name="label">浠撴埧浠g爜</Property> + </PropertyDef> + <PropertyDef name="cfmc"> + <Property/> + <Property name="label">浠撴埧鍚嶇О</Property> + </PropertyDef> + <PropertyDef name="kqdm"> + <Property/> + <Property name="label">搴撳尯浠g爜</Property> + </PropertyDef> + <PropertyDef name="cflxdm"> + <Property/> + <Property name="label">浠撴埧绫诲瀷浠g爜</Property> + </PropertyDef> + <PropertyDef name="sjcr"> + <Property name="dataType">Double</Property> + <Property name="label">璁捐浠撳</Property> + </PropertyDef> + <PropertyDef name="czbz"> + <Property/> + <Property name="label">鎿嶄綔鏍囧織</Property> + </PropertyDef> + <PropertyDef name="zhgxsj"> + <Property name="dataType">Date</Property> + <Property name="label">鏈�鍚庢洿鏂版椂闂�</Property> + </PropertyDef> + <PropertyDef name="bjw"> + <Property/> + <Property name="label">鏍囪浣�</Property> + </PropertyDef> + <PropertyDef name="bizId"> + <Property/> + <Property name="label">涓氬姟id</Property> + </PropertyDef> + <PropertyDef name="syncTime"> + <Property name="dataType">Date</Property> + <Property name="label">鍚屾鏃堕棿</Property> + </PropertyDef> + </DataType> + </Model> + <View layout="regionPadding:10"> + <Property name="packages">font-awesome,css-common</Property> + <DataSet id="dsMain"> + <Property name="dataType">[dtMain]</Property> + <Property name="dataProvider">api9111PR#listAll</Property> + </DataSet> + <ToolBar> + <ToolBarLabel> + <Property name="text">宸ュ叿鏍忥細</Property> + <Property name="style"> + <Property name="font-weight">bold</Property> + </Property> + </ToolBarLabel> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").flushAsync();
 +</ClientEvent> + <Property name="caption">鍒锋柊</Property> + <Property name="iconClass">fa fa-search</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-push</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").insert();
 +view.get("#dialogMain").show();</ClientEvent> + <Property name="caption">鏂板</Property> + <Property name="iconClass">fa fa-plus</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#dialogMain").show();
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佷慨鏀圭殑鏁版嵁锛�");
 +}
 +</ClientEvent> + <Property name="caption">淇敼</Property> + <Property name="iconClass">fa fa-pencil</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-warm</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#ajaxDelUpdate").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.set("czbz","d");
 + }
 + });
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佹爣璁板垹闄ょ殑鏁版嵁锛�");
 +}
 +
 +</ClientEvent> + <Property name="caption">鏍囪鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#ajaxDel").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.remove();
 + }
 + });
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佸垹闄ょ殑鏁版嵁锛�");
 +}</ClientEvent> + <Property name="caption">鐩存帴鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
 +if(select && select.length > 0){
 + view.get("#ajaxPush").set("parameter",select).execute(function(result){
 + view.get("#dsMain").flushAsync();
 + $notify(result);
 + });
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佷笂鎶ョ殑鏁版嵁锛�");
 +}</ClientEvent> + <Property name="caption">鎵嬪姩涓婁紶</Property> + <Property name="iconClass">fa fa-hand-o-up</Property> + <Property name="exClassName">toolbar-button-push</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Fill/> + <ToolBarButton> + <Property name="caption">涓婁紶璁板綍</Property> + <Property name="iconClass">fa fa-bars</Property> + <Property name="exClassName">toolbar-button</Property> + </ToolBarButton> + </ToolBar> + <DataGrid id="dgMain"> + <Property name="dataSet">dsMain</Property> + <Property name="selectionMode">multiRows</Property> + <Property name="readOnly">true</Property> + <RowNumColumn/> + <RowSelectorColumn> + <Property name="caption">涓婁紶</Property> + </RowSelectorColumn> + <DataColumn name="cfdm"> + <Property name="property">cfdm</Property> + </DataColumn> + <DataColumn name="cfmc"> + <Property name="property">cfmc</Property> + </DataColumn> + <DataColumn name="kqdm"> + <Property name="property">kqdm</Property> + </DataColumn> + <DataColumn name="cflxdm"> + <Property name="property">cflxdm</Property> + </DataColumn> + <DataColumn name="sjcr"> + <Property name="property">sjcr</Property> + </DataColumn> + <DataColumn name="czbz"> + <Property name="property">czbz</Property> + </DataColumn> + <DataColumn name="zhgxsj"> + <Property name="property">zhgxsj</Property> + </DataColumn> + <DataColumn name="bjw"> + <Property name="property">bjw</Property> + </DataColumn> + <DataColumn name="bizId"> + <Property name="property">bizId</Property> + </DataColumn> + <DataColumn name="syncTime"> + <Property name="property">syncTime</Property> + </DataColumn> + </DataGrid> + <Dialog id="dialogMain"> + <Property name="width">1000</Property> + <Property name="caption">浠撴埧淇℃伅</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Property name="closeable">false</Property> + <Property name="height">90%</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#updateSave").execute(function(){
 + self.get("parent").hide();
 + view.get("#dsMain").flushAsync();
 +});</ClientEvent> + <Property name="caption">淇濆瓨淇敼</Property> + <Property name="iconClass">fa fa-check</Property> + <Property name="exClassName">toolbar-button</Property> + </Button> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +self.get("parent").hide();
 +if(cur) cur.cancel();</ClientEvent> + <Property name="caption">鍙栨秷淇敼</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</Property> + </Button> + </Buttons> + <Children> + <GroupBox> + <Property name="caption">鍩虹淇℃伅</Property> + <Buttons/> + <Children> + <AutoForm> + <Property name="dataSet">dsMain</Property> + <Property name="cols">*,*,*</Property> + <Property name="labelWidth">140</Property> + <Property name="labelAlign">left</Property> + <Property name="labelSeparator">锛�</Property> + <Property name="labelPosition">top</Property> + <AutoFormElement> + <Property name="name">cfdm</Property> + <Property name="property">cfdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cfmc</Property> + <Property name="property">cfmc</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">kqdm</Property> + <Property name="property">kqdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cflxdm</Property> + <Property name="property">cflxdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">sjcr</Property> + <Property name="property">sjcr</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">czbz</Property> + <Property name="property">czbz</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">zhgxsj</Property> + <Property name="property">zhgxsj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bjw</Property> + <Property name="property">bjw</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bizId</Property> + <Property name="property">bizId</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">syncTime</Property> + <Property name="property">syncTime</Property> + <Editor/> + </AutoFormElement> + </AutoForm> + </Children> + </GroupBox> + </Children> + <Tools/> + </Dialog> + <UpdateAction id="updateSave"> + <Property name="dataResolver">api9111PR#updateSave</Property> + <UpdateItem> + <Property name="dataPath">[#current]</Property> + <Property name="dataSet">dsMain</Property> + </UpdateItem> + </UpdateAction> + <AjaxAction id="ajaxPush"> + <Property name="service">api9111PR#pushData</Property> + <Property name="confirmMessage">纭畾瑕佷笂鎶ヤ箞锛�</Property> + </AjaxAction> + <AjaxAction id="ajaxDel"> + <Property name="service">api9111PR#delData</Property> + <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property> + </AjaxAction> + <AjaxAction id="ajaxDelUpdate"> + <Property name="service">api9111PR#delUpdate</Property> + <Property name="confirmMessage">纭畾瑕佸皢鏁版嵁鏍囪涓哄垹闄や箞锛�</Property> + </AjaxAction> + </View> +</ViewConfig> diff --git a/src/main/java/com/fzzy/api/view/Api9112.view.xml b/src/main/java/com/fzzy/api/view/Api9112.view.xml new file mode 100644 index 0000000..da63587 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/Api9112.view.xml @@ -0,0 +1,324 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ViewConfig> + <Arguments/> + <Context/> + <Model> + <DataType name="dtMain"> + <Property name="creationType">com.fzzy.api.entity.Api9112</Property> + <PropertyDef name="ajdm"> + <Property/> + <Property name="label">寤掗棿浠g爜</Property> + </PropertyDef> + <PropertyDef name="ajmc"> + <Property/> + <Property name="label">寤掗棿鍚嶇О</Property> + </PropertyDef> + <PropertyDef name="cfdm"> + <Property/> + <Property name="label">浠撴埧缂栫爜</Property> + </PropertyDef> + <PropertyDef name="cflxdm"> + <Property/> + <Property name="label">浠撴埧绫诲瀷浠g爜</Property> + </PropertyDef> + <PropertyDef name="sjcr"> + <Property name="dataType">Double</Property> + <Property name="label">寤掗棿璁捐浠撳</Property> + </PropertyDef> + <PropertyDef name="ajzt"> + <Property/> + <Property name="label">寤掗棿鐘舵��</Property> + </PropertyDef> + <PropertyDef name="czbz"> + <Property/> + <Property name="label">鎿嶄綔鏍囧織</Property> + </PropertyDef> + <PropertyDef name="zhgxsj"> + <Property name="dataType">Date</Property> + <Property name="label">鏈�鍚庢洿鏂版椂闂�</Property> + </PropertyDef> + <PropertyDef name="bjw"> + <Property/> + <Property name="label">鏍囪浣�</Property> + </PropertyDef> + <PropertyDef name="bizId"> + <Property/> + <Property name="label">涓氬姟id</Property> + </PropertyDef> + <PropertyDef name="kqdm"> + <Property/> + <Property name="label">搴撳尯浠g爜</Property> + </PropertyDef> + <PropertyDef name="syncTime"> + <Property name="dataType">Date</Property> + <Property name="label">鍚屾鏃堕棿</Property> + </PropertyDef> + </DataType> + </Model> + <View layout="regionPadding:10"> + <Property name="packages">font-awesome,css-common</Property> + <DataSet id="dsMain"> + <Property name="dataType">[dtMain]</Property> + <Property name="dataProvider">api9112PR#listAll</Property> + </DataSet> + <ToolBar> + <ToolBarLabel> + <Property name="text">宸ュ叿鏍忥細</Property> + <Property name="style"> + <Property name="font-weight">bold</Property> + </Property> + </ToolBarLabel> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").flushAsync();
 +</ClientEvent> + <Property name="caption">鍒锋柊</Property> + <Property name="iconClass">fa fa-search</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-push</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").insert();
 +view.get("#dialogMain").show();</ClientEvent> + <Property name="caption">鏂板</Property> + <Property name="iconClass">fa fa-plus</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#dialogMain").show();
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佷慨鏀圭殑鏁版嵁锛�");
 +}</ClientEvent> + <Property name="caption">淇敼</Property> + <Property name="iconClass">fa fa-pencil</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-warm</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#ajaxDelUpdate").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.set("czbz","d");
 + }
 + });
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佹爣璁板垹闄ょ殑鏁版嵁锛�");
 +}</ClientEvent> + <Property name="caption">鏍囪鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#ajaxDel").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.remove();
 + }
 + });
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佸垹闄ょ殑鏁版嵁锛�");
 +}
 +
 +</ClientEvent> + <Property name="caption">鐩存帴鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
 +if(select && select.length > 0){
 + view.get("#ajaxPush").set("parameter",select).execute(function(result){
 + view.get("#dsMain").flushAsync();
 + $notify(result);
 + });
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佷笂鎶ョ殑鏁版嵁锛�");
 +}</ClientEvent> + <Property name="caption">鎵嬪姩涓婁紶</Property> + <Property name="iconClass">fa fa-hand-o-up</Property> + <Property name="exClassName">toolbar-button-push</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Fill/> + <ToolBarButton> + <Property name="caption">涓婁紶璁板綍</Property> + <Property name="iconClass">fa fa-bars</Property> + <Property name="exClassName">toolbar-button</Property> + </ToolBarButton> + </ToolBar> + <DataGrid id="dgMain"> + <Property name="dataSet">dsMain</Property> + <Property name="selectionMode">multiRows</Property> + <Property name="readOnly">true</Property> + <RowNumColumn/> + <RowSelectorColumn> + <Property name="caption">涓婁紶</Property> + </RowSelectorColumn> + <DataColumn name="ajdm"> + <Property name="property">ajdm</Property> + </DataColumn> + <DataColumn name="ajmc"> + <Property name="property">ajmc</Property> + </DataColumn> + <DataColumn name="cfdm"> + <Property name="property">cfdm</Property> + </DataColumn> + <DataColumn name="cflxdm"> + <Property name="property">cflxdm</Property> + </DataColumn> + <DataColumn name="sjcr"> + <Property name="property">sjcr</Property> + </DataColumn> + <DataColumn name="ajzt"> + <Property name="property">ajzt</Property> + </DataColumn> + <DataColumn name="czbz"> + <Property name="property">czbz</Property> + </DataColumn> + <DataColumn name="zhgxsj"> + <Property name="property">zhgxsj</Property> + </DataColumn> + <DataColumn name="bjw"> + <Property name="property">bjw</Property> + </DataColumn> + <DataColumn name="bizId"> + <Property name="property">bizId</Property> + </DataColumn> + <DataColumn name="kqdm"> + <Property name="property">kqdm</Property> + </DataColumn> + <DataColumn name="syncTime"> + <Property name="property">syncTime</Property> + </DataColumn> + </DataGrid> + <Dialog id="dialogMain"> + <Property name="width">1000</Property> + <Property name="caption">寤掗棿淇℃伅</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Property name="closeable">false</Property> + <Buttons> + <Button> + <Property name="caption">淇濆瓨淇敼</Property> + <Property name="iconClass">fa fa-check</Property> + <Property name="exClassName">toolbar-button</Property> + </Button> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +self.get("parent").hide();
 +if(cur) cur.cancel();</ClientEvent> + <Property name="caption">鍙栨秷淇敼</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</Property> + </Button> + </Buttons> + <Children> + <GroupBox> + <Property name="caption">鍩虹淇℃伅</Property> + <Buttons/> + <Children> + <AutoForm> + <Property name="dataSet">dsMain</Property> + <Property name="cols">*,*,*</Property> + <Property name="labelWidth">100</Property> + <Property name="labelAlign">left</Property> + <Property name="labelSeparator">锛�</Property> + <Property name="labelPosition">top</Property> + <AutoFormElement> + <Property name="name">ajdm</Property> + <Property name="property">ajdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">ajmc</Property> + <Property name="property">ajmc</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cfdm</Property> + <Property name="property">cfdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cflxdm</Property> + <Property name="property">cflxdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">sjcr</Property> + <Property name="property">sjcr</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">ajzt</Property> + <Property name="property">ajzt</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">czbz</Property> + <Property name="property">czbz</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">zhgxsj</Property> + <Property name="property">zhgxsj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bjw</Property> + <Property name="property">bjw</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bizId</Property> + <Property name="property">bizId</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">kqdm</Property> + <Property name="property">kqdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">syncTime</Property> + <Property name="property">syncTime</Property> + <Editor/> + </AutoFormElement> + </AutoForm> + </Children> + </GroupBox> + </Children> + <Tools/> + </Dialog> + <UpdateAction id="updateSave"> + <Property name="dataResolver">api9112PR#updateSave</Property> + <UpdateItem> + <Property name="dataPath">[#current]</Property> + <Property name="dataSet">dsMain</Property> + </UpdateItem> + </UpdateAction> + <AjaxAction id="ajaxPush"> + <Property name="service">api9112PR#pushData</Property> + <Property name="confirmMessage">纭畾瑕佷笂鎶ヤ箞锛�</Property> + </AjaxAction> + <AjaxAction id="ajaxDel"> + <Property name="service">api9112PR#delData</Property> + <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property> + </AjaxAction> + <AjaxAction id="ajaxDelUpdate"> + <Property name="service">api9112PR#delUpdate</Property> + <Property name="confirmMessage">纭畾瑕佸皢鏁版嵁鏍囪涓哄垹闄や箞锛�</Property> + </AjaxAction> + </View> +</ViewConfig> diff --git a/src/main/java/com/fzzy/api/view/Api9113.view.xml b/src/main/java/com/fzzy/api/view/Api9113.view.xml new file mode 100644 index 0000000..2467a4e --- /dev/null +++ b/src/main/java/com/fzzy/api/view/Api9113.view.xml @@ -0,0 +1,297 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ViewConfig> + <Arguments/> + <Context/> + <Model> + <DataType name="dtMain"> + <Property name="creationType">com.fzzy.api.entity.Api9113</Property> + <PropertyDef name="hwdm"> + <Property/> + <Property name="label">璐т綅浠g爜</Property> + </PropertyDef> + <PropertyDef name="hwmc"> + <Property/> + <Property name="label">璐т綅鍚嶇О</Property> + </PropertyDef> + <PropertyDef name="ajdm"> + <Property/> + <Property name="label">寤掗棿浠g爜</Property> + </PropertyDef> + <PropertyDef name="hwrl"> + <Property name="dataType">Double</Property> + <Property name="label">璐т綅瀹归噺</Property> + </PropertyDef> + <PropertyDef name="czbz"> + <Property/> + <Property name="label">鎿嶄綔鏍囧織</Property> + </PropertyDef> + <PropertyDef name="zhgxsj"> + <Property name="dataType">Date</Property> + <Property name="label">鏈�鍚庢洿鏂版椂闂�</Property> + </PropertyDef> + <PropertyDef name="bjw"> + <Property/> + <Property name="label">鏍囪浣�</Property> + </PropertyDef> + <PropertyDef name="bizId"> + <Property/> + <Property name="label">涓氬姟id</Property> + </PropertyDef> + <PropertyDef name="kqdm"> + <Property/> + <Property name="label">搴撳尯浠g爜</Property> + </PropertyDef> + <PropertyDef name="syncTime"> + <Property name="dataType">Date</Property> + <Property name="label">鍚屾鏃堕棿</Property> + </PropertyDef> + </DataType> + </Model> + <View layout="regionPadding:10"> + <Property name="packages">font-awesome,css-common</Property> + <DataSet id="dsMain"> + <Property name="dataType">[dtMain]</Property> + <Property name="dataProvider">api9113PR#listAll</Property> + </DataSet> + <ToolBar> + <ToolBarLabel> + <Property name="text">宸ュ叿鏍忥細</Property> + <Property name="style"> + <Property name="font-weight">bold</Property> + </Property> + </ToolBarLabel> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").flushAsync();
 +</ClientEvent> + <Property name="caption">鍒锋柊</Property> + <Property name="iconClass">fa fa-search</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-push</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">view.get("#dsMain").insert();
 +view.get("#dialogMain").show();</ClientEvent> + <Property name="caption">鏂板</Property> + <Property name="iconClass">fa fa-plus</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#dialogMain").show();
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佷慨鏀圭殑鏁版嵁锛�");
 +}
 +</ClientEvent> + <Property name="caption">淇敼</Property> + <Property name="iconClass">fa fa-pencil</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-warm</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#ajaxDelUpdate").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.set("czbz","d");
 + }
 + });
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佹爣璁板垹闄ょ殑鏁版嵁锛�");
 +}
 +</ClientEvent> + <Property name="caption">鏍囪鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#ajaxDel").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.remove();
 + }
 + });
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佸垹闄ょ殑鏁版嵁锛�");
 +}</ClientEvent> + <Property name="caption">鐩存帴鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Separator/> + <ToolBarButton> + <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
 +if(select && select.length > 0){
 + view.get("#ajaxPush").set("parameter",select).execute(function(result){
 + view.get("#dsMain").flushAsync();
 + $notify(result);
 + });
 +}else{
 + $alert("璇峰嬀閫夐渶瑕佷笂鎶ョ殑鏁版嵁锛�");
 +}</ClientEvent> + <Property name="caption">鎵嬪姩涓婁紶</Property> + <Property name="iconClass">fa fa-hand-o-up</Property> + <Property name="exClassName">toolbar-button-push</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Fill/> + <ToolBarButton> + <Property name="caption">涓婁紶璁板綍</Property> + <Property name="iconClass">fa fa-bars</Property> + <Property name="exClassName">toolbar-button</Property> + </ToolBarButton> + </ToolBar> + <DataGrid id="dgMain"> + <Property name="dataSet">dsMain</Property> + <Property name="selectionMode">multiRows</Property> + <Property name="readOnly">true</Property> + <RowNumColumn/> + <RowSelectorColumn> + <Property name="caption">涓婁紶</Property> + </RowSelectorColumn> + <DataColumn name="hwdm"> + <Property name="property">hwdm</Property> + </DataColumn> + <DataColumn name="hwmc"> + <Property name="property">hwmc</Property> + </DataColumn> + <DataColumn name="ajdm"> + <Property name="property">ajdm</Property> + </DataColumn> + <DataColumn name="hwrl"> + <Property name="property">hwrl</Property> + </DataColumn> + <DataColumn name="czbz"> + <Property name="property">czbz</Property> + </DataColumn> + <DataColumn name="zhgxsj"> + <Property name="property">zhgxsj</Property> + </DataColumn> + <DataColumn name="syncTime"> + <Property name="property">syncTime</Property> + </DataColumn> + </DataGrid> + <Dialog id="dialogMain"> + <Property name="width">1000</Property> + <Property name="caption">璐т綅淇℃伅</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Property name="closeable">false</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#updateSave").execute(function(){
 + self.get("parent").hide();
 + view.get("#dsMain").flushAsync();
 +});
 +</ClientEvent> + <Property name="caption">淇濆瓨淇敼</Property> + <Property name="iconClass">fa fa-check</Property> + <Property name="exClassName">toolbar-button</Property> + </Button> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +self.get("parent").hide();
 +if(cur) cur.cancel();</ClientEvent> + <Property name="caption">鍙栨秷淇敼</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</Property> + </Button> + </Buttons> + <Children> + <GroupBox> + <Property name="caption">鍩虹淇℃伅</Property> + <Buttons/> + <Children> + <AutoForm> + <Property name="dataSet">dsMain</Property> + <Property name="cols">*,*,*</Property> + <Property name="labelWidth">120</Property> + <Property name="labelAlign">left</Property> + <Property name="labelSeparator">锛�</Property> + <Property name="labelPosition">top</Property> + <AutoFormElement> + <Property name="name">hwdm</Property> + <Property name="property">hwdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">hwmc</Property> + <Property name="property">hwmc</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">ajdm</Property> + <Property name="property">ajdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">hwrl</Property> + <Property name="property">hwrl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">czbz</Property> + <Property name="property">czbz</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">zhgxsj</Property> + <Property name="property">zhgxsj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bjw</Property> + <Property name="property">bjw</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bizId</Property> + <Property name="property">bizId</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">kqdm</Property> + <Property name="property">kqdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">syncTime</Property> + <Property name="property">syncTime</Property> + <Editor/> + </AutoFormElement> + </AutoForm> + </Children> + </GroupBox> + </Children> + <Tools/> + </Dialog> + <UpdateAction id="updateSave"> + <Property name="dataResolver">api9113PR#updateSave</Property> + <UpdateItem> + <Property name="dataPath">[#current]</Property> + <Property name="dataSet">dsMain</Property> + </UpdateItem> + </UpdateAction> + <AjaxAction id="ajaxPush"> + <Property name="service">api9113PR#pushData</Property> + <Property name="confirmMessage">纭畾瑕佷笂鎶ヤ箞锛�</Property> + </AjaxAction> + <AjaxAction id="ajaxDel"> + <Property name="service">api9113PR#delData</Property> + <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property> + </AjaxAction> + <AjaxAction id="ajaxDelUpdate"> + <Property name="service">api9113PR#delUpdate</Property> + <Property name="confirmMessage">纭畾瑕佸皢鏁版嵁鏍囪涓哄垹闄や箞锛�</Property> + </AjaxAction> + </View> +</ViewConfig> diff --git a/src/main/java/com/fzzy/api/view/Api9114.view.xml b/src/main/java/com/fzzy/api/view/Api9114.view.xml new file mode 100644 index 0000000..9fe1c75 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/Api9114.view.xml @@ -0,0 +1,853 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ViewConfig> + <Arguments/> + <Context/> + <Model> + <DataType name="dtMain"> + <Property name="creationType">com.fzzy.api.entity.Api9114</Property> + <PropertyDef name="bizId"> + <Property/> + <Property name="label">涓氬姟id</Property> + </PropertyDef> + <PropertyDef name="kqdm"> + <Property/> + <Property name="label">搴撳尯浠g爜</Property> + </PropertyDef> + <PropertyDef name="syncTime"> + <Property name="dataType">Date</Property> + <Property name="label">鍚屾鏃堕棿</Property> + </PropertyDef> + <PropertyDef name="rkywdh"> + <Property/> + <Property name="label">鍏ュ簱涓氬姟鍗曞彿</Property> + </PropertyDef> + <PropertyDef name="hwdm"> + <Property/> + <Property name="label">璐т綅浠g爜</Property> + </PropertyDef> + <PropertyDef name="ywlx"> + <Property/> + <Property name="label">涓氬姟绫诲瀷</Property> + </PropertyDef> + <PropertyDef name="ywrq"> + <Property name="dataType">Date</Property> + <Property name="label">涓氬姟鏃ユ湡</Property> + </PropertyDef> + <PropertyDef name="khmc"> + <Property/> + <Property name="label">瀹㈡埛鍚嶇О</Property> + </PropertyDef> + <PropertyDef name="khlx"> + <Property/> + <Property name="label">瀹㈡埛绫诲瀷</Property> + </PropertyDef> + <PropertyDef name="lxdh"> + <Property/> + <Property name="label">鑱旂郴鐢佃瘽</Property> + </PropertyDef> + <PropertyDef name="khzj"> + <Property/> + <Property name="label">瀹㈡埛璇佷欢</Property> + </PropertyDef> + <PropertyDef name="xxdz"> + <Property/> + <Property name="label">瀹㈡埛鍦板潃</Property> + </PropertyDef> + <PropertyDef name="sfzh"> + <Property/> + <Property name="label">韬唤璇佸彿</Property> + </PropertyDef> + <PropertyDef name="ysgj"> + <Property/> + <Property name="label">杩愯緭宸ュ叿</Property> + </PropertyDef> + <PropertyDef name="cch"> + <Property/> + <Property name="label">杞﹁埞鍙�</Property> + </PropertyDef> + <PropertyDef name="djsj"> + <Property name="dataType">Date</Property> + <Property name="label">鐧昏鏃堕棿</Property> + </PropertyDef> + <PropertyDef name="lspzdm"> + <Property/> + <Property name="label">绮鍝佺浠g爜</Property> + </PropertyDef> + <PropertyDef name="lsxzdm"> + <Property/> + <Property name="label">绮鎬ц川浠g爜</Property> + </PropertyDef> + <PropertyDef name="shnd"> + <Property/> + <Property name="label">鏀惰幏骞村害</Property> + </PropertyDef> + <PropertyDef name="cddm"> + <Property/> + <Property name="label">浜у湴浠g爜</Property> + </PropertyDef> + <PropertyDef name="jjlx"> + <Property/> + <Property name="label">妫�鏂ょ被鍨�</Property> + </PropertyDef> + <PropertyDef name="mz"> + <Property name="dataType">double</Property> + <Property name="label">姣涢噸(鍏枻)</Property> + </PropertyDef> + <PropertyDef name="mzjby"> + <Property/> + <Property name="label">姣涢噸鐩戠鍛�</Property> + </PropertyDef> + <PropertyDef name="mzjlsj"> + <Property name="dataType">Date</Property> + <Property name="label">姣涢噸璁¢噺鏃堕棿</Property> + </PropertyDef> + <PropertyDef name="mzjly"> + <Property/> + <Property name="label">姣涢噸璁¢噺鍛�</Property> + </PropertyDef> + <PropertyDef name="zcy"> + <Property/> + <Property name="label">鍊间粨鍛�</Property> + </PropertyDef> + <PropertyDef name="pz"> + <Property name="dataType">double</Property> + <Property name="label">鐨噸(鍏枻)</Property> + </PropertyDef> + <PropertyDef name="pzjby"> + <Property/> + <Property name="label">鐨噸鐩戠鍛�</Property> + </PropertyDef> + <PropertyDef name="pzjlsj"> + <Property name="dataType">Date</Property> + <Property name="label">鐨噸璁¢噺鏃堕棿</Property> + </PropertyDef> + <PropertyDef name="pzjly"> + <Property/> + <Property name="label">鐨噸璁¢噺鍛�</Property> + </PropertyDef> + <PropertyDef name="bzw"> + <Property/> + <Property name="label">鍖呰鐗�</Property> + </PropertyDef> + <PropertyDef name="bzbdbz"> + <Property name="dataType">Double</Property> + <Property name="label">鏍囧噯鍖呭崟鍖呴噸(鍏枻)</Property> + </PropertyDef> + <PropertyDef name="bzbjs"> + <Property name="dataType">Integer</Property> + <Property name="label">鏍囧噯鍖呬欢鏁�(浠�)</Property> + </PropertyDef> + <PropertyDef name="zjklxj"> + <Property name="dataType">Double</Property> + <Property name="label">璐ㄦ鎵i噺(灏忚:鍏枻)</Property> + </PropertyDef> + <PropertyDef name="qzsfzkl"> + <Property name="dataType">Double</Property> + <Property name="label">鍏朵腑锛氭按鍒嗗鎵i噺(鍏枻)</Property> + </PropertyDef> + <PropertyDef name="qzzzzkl"> + <Property name="dataType">Double</Property> + <Property name="label">鍏朵腑锛氭潅璐ㄥ鎵i噺(鍏枻)</Property> + </PropertyDef> + <PropertyDef name="qzbwslkl"> + <Property name="dataType">Double</Property> + <Property name="label">鍏朵腑锛氫笉瀹屽杽绮掓墸閲�(鍏枻)</Property> + </PropertyDef> + <PropertyDef name="qzhhkl"> + <Property name="dataType">Double</Property> + <Property name="label">鍏朵腑锛氫簰娣锋墸閲�(鍏枻)</Property> + </PropertyDef> + <PropertyDef name="qzsmlkl"> + <Property name="dataType">Double</Property> + <Property name="label">鍏朵腑锛氱敓闇夌矑鎵i噺(鍏枻)</Property> + </PropertyDef> + <PropertyDef name="qzzjmlkl"> + <Property name="dataType">Double</Property> + <Property name="label">鍏朵腑锛氭暣绮剧背绮掓墸閲�(鍏枻)</Property> + </PropertyDef> + <PropertyDef name="qzgwcmkl"> + <Property name="dataType">Double</Property> + <Property name="label">鍏朵腑锛氳胺澶栫硻绫虫墸閲�(鍏枻)</Property> + </PropertyDef> + <PropertyDef name="qzhlmkl"> + <Property name="dataType">Double</Property> + <Property name="label">鍏朵腑榛勭矑绫虫墸閲�(鍏枻)</Property> + </PropertyDef> + <PropertyDef name="qzqtkl"> + <Property name="dataType">Double</Property> + <Property name="label">鍏朵腑锛氬叾浠栨墸閲�(鍏枻)</Property> + </PropertyDef> + <PropertyDef name="zlfyzkl"> + <Property name="dataType">Double</Property> + <Property name="label">鏁寸悊璐圭敤鎶樻墸閲�(鍏枻)</Property> + </PropertyDef> + <PropertyDef name="bzwkl"> + <Property name="dataType">Double</Property> + <Property name="label">鍖呰鐗╂墸閲�(鍏枻)</Property> + </PropertyDef> + <PropertyDef name="qtkl"> + <Property name="dataType">Double</Property> + <Property name="label">鍏朵粬鎵i噺(鍏枻)</Property> + </PropertyDef> + <PropertyDef name="klyy"> + <Property/> + <Property name="label">鎵i噺鍘熷洜</Property> + </PropertyDef> + <PropertyDef name="xckl"> + <Property name="dataType">Double</Property> + <Property name="label">鐜板満鎵i噺(鍏枻)</Property> + </PropertyDef> + <PropertyDef name="lspz"> + <Property/> + <Property name="label">绮鍝佽川</Property> + </PropertyDef> + <PropertyDef name="lspm"> + <Property/> + <Property name="label">绮鍝佸悕</Property> + </PropertyDef> + <PropertyDef name="jz"> + <Property name="dataType">Double</Property> + <Property name="label">鍑�閲�(鍏枻)</Property> + </PropertyDef> + <PropertyDef name="jsdj"> + <Property name="dataType">Double</Property> + <Property name="label">缁撶畻鍗曚环</Property> + </PropertyDef> + <PropertyDef name="cmsj"> + <Property name="dataType">Date</Property> + <Property name="label">鍑洪棬鏃堕棿</Property> + </PropertyDef> + <PropertyDef name="bz"> + <Property/> + <Property name="label">澶囨敞</Property> + </PropertyDef> + <PropertyDef name="czbz"> + <Property/> + <Property name="label">鎿嶄綔鏍囧織</Property> + </PropertyDef> + <PropertyDef name="zhgxsj"> + <Property name="dataType">Date</Property> + <Property name="label">鏇存柊鏃堕棿</Property> + </PropertyDef> + <PropertyDef name="bjw"> + <Property/> + <Property name="label">鏍囪浣�</Property> + </PropertyDef> + </DataType> + <DataType name="dtParam"> + <Property name="creationType">com.fzzy.api.data.ApiParam</Property> + <PropertyDef name="hwdm"> + <Property></Property> + <Property name="label">鎵�灞炶揣浣�</Property> + </PropertyDef> + <PropertyDef name="start"> + <Property name="dataType">Date</Property> + <Property name="label">寮�濮嬫椂闂�</Property> + </PropertyDef> + <PropertyDef name="end"> + <Property name="dataType">Date</Property> + <Property name="label">鎴鏃堕棿</Property> + </PropertyDef> + <PropertyDef name="czbz"> + <Property></Property> + <Property name="label">鎿嶄綔鏍囧織</Property> + <Property name="mapping"> + <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("CZBZ")}</Property> + <Property name="keyProperty">code</Property> + <Property name="valueProperty">name</Property> + </Property> + </PropertyDef> + </DataType> + <DataType name="dtGBArea"> + <Property name="creationType">com.fzzy.api.entity.GbArea</Property> + <PropertyDef name="code"> + <Property></Property> + <Property name="label">鎺ュ彛缂栫爜</Property> + </PropertyDef> + <PropertyDef name="name"> + <Property></Property> + <Property name="label">鍚嶇О</Property> + </PropertyDef> + <PropertyDef name="parentCode"> + <Property></Property> + <Property name="label">鐖剁紪鐮�</Property> + </PropertyDef> + <PropertyDef name="disabledTag"> + <Property></Property> + <Property name="label">绂佺敤</Property> + </PropertyDef> + <PropertyDef name="simple"> + <Property></Property> + <Property name="label">鏄惁榛樿</Property> + </PropertyDef> + <PropertyDef name="remark"> + <Property></Property> + <Property name="label">澶囨敞璇存槑</Property> + </PropertyDef> + </DataType> + </Model> + <View layout="regionPadding:10"> + <Property name="packages">font-awesome,css-common</Property> + <DataSet id="dsMain"> + <Property name="dataType">[dtMain]</Property> + <Property name="dataProvider">api9114PR#pageList</Property> + <Property name="pageSize">20</Property> + </DataSet> + <DataSet id="dsQuery"> + <ClientEvent name="onReady">self.insert();</ClientEvent> + <Property name="dataType">dtParam</Property> + </DataSet> + <ToolBar> + <ToolBarLabel> + <Property name="text">宸ュ叿鏍忥細</Property> + <Property name="style"> + <Property name="font-weight">bold</Property> + </Property> + </ToolBarLabel> + <ToolBarButton> + <ClientEvent name="onClick">var query = view.get("#dsQuery").getData();
 +view.get("#dsMain").set("parameter",query).flushAsync();</ClientEvent> + <Property name="caption">鏌ヨ</Property> + <Property name="iconClass">fa fa-search</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-push</Property> + </ToolBarButton> + <ToolBarButton id="btnAdd"> + <ClientEvent name="onClick">view.get("#dsMain").insert();
 +view.get("#dialogMain").show();</ClientEvent> + <Property name="caption">鏂板</Property> + <Property name="iconClass">fa fa-plus</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button</Property> + <Property name="hideMode">display</Property> + </ToolBarButton> + <ToolBarButton id="btnUpdate"> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#dialogMain").show();
 +}</ClientEvent> + <Property name="caption">淇敼</Property> + <Property name="iconClass">fa fa-pencil</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-warm</Property> + <Property name="hideMode">display</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#ajaxDelUpdate").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.set("czbz","d")
 + }
 +});
 +</ClientEvent> + <Property name="caption">鏍囪鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <ToolBarButton id="btnDel"> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#ajaxDel").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.remove();
 + }
 +});
 +</ClientEvent> + <Property name="caption">鐩存帴鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + <Property name="hideMode">display</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
 +if(select && select.length > 0){
 + view.get("#ajaxPush").set("parameter",select).execute(function(result){
 + view.get("#dsMain").flushAsync();
 + $notify(result);
 + });
 +}else{
 + $alert("璇峰嬀閫変笂鎶ユ暟鎹紒");
 +}
 +</ClientEvent> + <Property name="caption">鎵嬪姩涓婁紶</Property> + <Property name="iconClass">fa fa-hand-o-up</Property> + <Property name="exClassName">toolbar-button-push</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Fill/> + <ToolBarButton> + <Property name="caption">涓婁紶璁板綍</Property> + <Property name="iconClass">fa fa-bars</Property> + <Property name="exClassName">toolbar-button</Property> + <Property name="width">100</Property> + </ToolBarButton> + </ToolBar> + <AutoForm> + <Property name="dataSet">dsQuery</Property> + <Property name="cols">*,*,*,*</Property> + <Property name="labelAlign">right</Property> + <Property name="labelSeparator">锛�</Property> + <Property name="labelWidth">90</Property> + <AutoFormElement> + <Property name="name">hwdm</Property> + <Property name="property">hwdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">start</Property> + <Property name="property">start</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">end</Property> + <Property name="property">end</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">czbz</Property> + <Property name="property">czbz</Property> + <Property name="trigger">autoMappingDropDown2</Property> + <Editor/> + </AutoFormElement> + </AutoForm> + <DataGrid id="dgMain"> + <Property name="dataSet">dsMain</Property> + <Property name="selectionMode">multiRows</Property> + <Property name="readOnly">true</Property> + <RowNumColumn/> + <RowSelectorColumn> + <Property name="caption">涓婁紶</Property> + </RowSelectorColumn> + <DataColumn name="rkywdh"> + <Property name="property">rkywdh</Property> + </DataColumn> + <DataColumn name="hwdm"> + <Property name="property">hwdm</Property> + </DataColumn> + <DataColumn name="ywlx"> + <Property name="property">ywlx</Property> + </DataColumn> + <DataColumn name="ywrq"> + <Property name="property">ywrq</Property> + </DataColumn> + <DataColumn name="khmc"> + <Property name="property">khmc</Property> + </DataColumn> + <DataColumn name="khlx"> + <Property name="property">khlx</Property> + </DataColumn> + <DataColumn name="lxdh"> + <Property name="property">lxdh</Property> + </DataColumn> + <DataColumn name="czbz"> + <Property name="property">czbz</Property> + </DataColumn> + <DataColumn name="zhgxsj"> + <Property name="property">zhgxsj</Property> + </DataColumn> + <DataColumn name="bjw"> + <Property name="property">bjw</Property> + </DataColumn> + </DataGrid> + <ToolBar layoutConstraint="bottom"> + <Fill/> + <DataPilot> + <Property name="itemCodes">pageSize,pages</Property> + <Property name="dataSet">dsMain</Property> + </DataPilot> + </ToolBar> + <Dialog id="dialogMain"> + <Property name="width">1000</Property> + <Property name="caption">鍚堝悓淇℃伅</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Property name="closeable">false</Property> + <Property name="height">90%</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#updateSave").execute(function(){
 + self.get("parent").hide();
 +});</ClientEvent> + <Property name="caption">淇濆瓨淇敼</Property> + <Property name="iconClass">fa fa-check</Property> + <Property name="exClassName">toolbar-button</Property> + </Button> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +self.get("parent").hide();
 +if(cur) cur.cancel();</ClientEvent> + <Property name="caption">鍙栨秷淇敼</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</Property> + </Button> + </Buttons> + <Children> + <AutoForm> + <Property name="dataSet">dsMain</Property> + <Property name="cols">*,*,*</Property> + <Property name="labelWidth">100</Property> + <Property name="labelAlign">left</Property> + <Property name="labelSeparator">锛�</Property> + <Property name="labelPosition">top</Property> + <AutoFormElement> + <Property name="name">bizId</Property> + <Property name="property">bizId</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">kqdm</Property> + <Property name="property">kqdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">syncTime</Property> + <Property name="property">syncTime</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">rkywdh</Property> + <Property name="property">rkywdh</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">hwdm</Property> + <Property name="property">hwdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">ywlx</Property> + <Property name="property">ywlx</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">ywrq</Property> + <Property name="property">ywrq</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">khmc</Property> + <Property name="property">khmc</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">khlx</Property> + <Property name="property">khlx</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">lxdh</Property> + <Property name="property">lxdh</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">khzj</Property> + <Property name="property">khzj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">xxdz</Property> + <Property name="property">xxdz</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">sfzh</Property> + <Property name="property">sfzh</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">ysgj</Property> + <Property name="property">ysgj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cch</Property> + <Property name="property">cch</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">djsj</Property> + <Property name="property">djsj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">lspzdm</Property> + <Property name="property">lspzdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">lsxzdm</Property> + <Property name="property">lsxzdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">shnd</Property> + <Property name="property">shnd</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cddm</Property> + <Property name="property">cddm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">jjlx</Property> + <Property name="property">jjlx</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">mz</Property> + <Property name="property">mz</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">mzjby</Property> + <Property name="property">mzjby</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">mzjlsj</Property> + <Property name="property">mzjlsj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">mzjly</Property> + <Property name="property">mzjly</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">zcy</Property> + <Property name="property">zcy</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">pz</Property> + <Property name="property">pz</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">pzjby</Property> + <Property name="property">pzjby</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">pzjlsj</Property> + <Property name="property">pzjlsj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">pzjly</Property> + <Property name="property">pzjly</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bzw</Property> + <Property name="property">bzw</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bzbdbz</Property> + <Property name="property">bzbdbz</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bzbjs</Property> + <Property name="property">bzbjs</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">zjklxj</Property> + <Property name="property">zjklxj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">qzsfzkl</Property> + <Property name="property">qzsfzkl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">qzzzzkl</Property> + <Property name="property">qzzzzkl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">qzbwslkl</Property> + <Property name="property">qzbwslkl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">qzhhkl</Property> + <Property name="property">qzhhkl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">qzsmlkl</Property> + <Property name="property">qzsmlkl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">qzzjmlkl</Property> + <Property name="property">qzzjmlkl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">qzgwcmkl</Property> + <Property name="property">qzgwcmkl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">qzhlmkl</Property> + <Property name="property">qzhlmkl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">qzqtkl</Property> + <Property name="property">qzqtkl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">zlfyzkl</Property> + <Property name="property">zlfyzkl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bzwkl</Property> + <Property name="property">bzwkl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">qtkl</Property> + <Property name="property">qtkl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">klyy</Property> + <Property name="property">klyy</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">xckl</Property> + <Property name="property">xckl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">lspz</Property> + <Property name="property">lspz</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">lspm</Property> + <Property name="property">lspm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">jz</Property> + <Property name="property">jz</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">jsdj</Property> + <Property name="property">jsdj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">cmsj</Property> + <Property name="property">cmsj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bz</Property> + <Property name="property">bz</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">czbz</Property> + <Property name="property">czbz</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">zhgxsj</Property> + <Property name="property">zhgxsj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bjw</Property> + <Property name="property">bjw</Property> + <Editor/> + </AutoFormElement> + </AutoForm> + </Children> + <Tools/> + </Dialog> + <UpdateAction id="updateSave"> + <Property name="dataResolver">api9114PR#updateSave</Property> + <UpdateItem> + <Property name="dataPath">[#current]</Property> + <Property name="dataSet">dsMain</Property> + </UpdateItem> + </UpdateAction> + <AjaxAction id="ajaxPush"> + <Property name="service">api9114PR#pushData</Property> + <Property name="confirmMessage">纭畾瑕佷笂鎶ヤ箞锛�</Property> + </AjaxAction> + <AjaxAction id="ajaxDel"> + <Property name="service">api9114PR#delData</Property> + <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property> + </AjaxAction> + <AjaxAction id="ajaxDelUpdate"> + <Property name="service">api9114PR#delUpdate</Property> + <Property name="confirmMessage">纭畾瑕佸皢鏁版嵁鏍囪涓哄垹闄や箞锛�</Property> + </AjaxAction> + <CustomDropDown id="cddGbArea"> + <Property name="assignmentMap">cddm=code</Property> + <Property name="height">500</Property> + <Property name="minHeight">500</Property> + <Property name="maxHeight">500</Property> + <Property name="width">400</Property> + <Container layout="regionPadding:5"> + <DataSet id="dsGBArea"> + <Property name="dataProvider">gbAreaPR#findByCode</Property> + <Property name="dataType">[dtGBArea]</Property> + </DataSet> + <Container layout="hbox regionPadding:5"> + <TextEditor id="key2"> + <Property name="blankText"> -- 缂栫爜鎴栬�呭悕绉� --</Property> + <Property name="width">200</Property> + </TextEditor> + <Button> + <ClientEvent name="onClick">var key = view.get("#key2.value");
 +view.get("#dsGBArea").set("parameter",{key:key}).flushAsync();</ClientEvent> + <Property name="iconClass">fa fa-search</Property> + <Property name="caption">鏌ヨ</Property> + </Button> + <Button> + <ClientEvent name="onClick">var data = view.get("#dsGBArea.data:#");
 +if (data) {
 + view.get("#cddGbArea").close(data.toJSON());
 +}</ClientEvent> + <Property name="caption">纭畾</Property> + <Property name="iconClass">fa fa-check</Property> + </Button> + </Container> + <DataGrid> + <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsGBArea.data:#");
 +if(data){
 + view.get("#cddGbArea").close(data.toJSON());
 +}</ClientEvent> + <Property name="dataSet">dsGBArea</Property> + <Property name="readOnly">true</Property> + <DataColumn name="code"> + <Property name="property">code</Property> + </DataColumn> + <DataColumn name="name"> + <Property name="property">name</Property> + </DataColumn> + </DataGrid> + </Container> + </CustomDropDown> + </View> +</ViewConfig> diff --git a/src/main/java/com/fzzy/api/view/Api9115.view.xml b/src/main/java/com/fzzy/api/view/Api9115.view.xml new file mode 100644 index 0000000..f3e1bc8 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/Api9115.view.xml @@ -0,0 +1,440 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ViewConfig> + <Arguments/> + <Context/> + <Model> + <DataType name="dtMain"> + <Property name="creationType">com.fzzy.api.entity.Api9115</Property> + <PropertyDef name="bizId"> + <Property/> + <Property name="label">涓氬姟id</Property> + </PropertyDef> + <PropertyDef name="kqdm"> + <Property/> + <Property name="label">搴撳尯浠g爜</Property> + </PropertyDef> + <PropertyDef name="syncTime"> + <Property name="dataType">Date</Property> + <Property name="label">鍚屾鏃堕棿</Property> + </PropertyDef> + <PropertyDef name="rkjydh"> + <Property/> + <Property name="label">鍏ュ簱妫�楠屽崟鍙�</Property> + </PropertyDef> + <PropertyDef name="hwdm"> + <Property/> + <Property name="label">璐т綅浠g爜</Property> + </PropertyDef> + <PropertyDef name="rkywdh"> + <Property/> + <Property name="label">鍏ュ簱涓氬姟鍗曞彿</Property> + </PropertyDef> + <PropertyDef name="jyfs"> + <Property/> + <Property name="label">妫�楠屾柟寮�</Property> + </PropertyDef> + <PropertyDef name="jyxm"> + <Property/> + <Property name="label">妫�楠岄」鐩�,闅斿紑</Property> + </PropertyDef> + <PropertyDef name="jyz"> + <Property/> + <Property name="label">妫�楠屽��,闅斿紑</Property> + </PropertyDef> + <PropertyDef name="jyrxm"> + <Property/> + <Property name="label">妫�楠屼汉濮撳悕</Property> + </PropertyDef> + <PropertyDef name="jysj"> + <Property name="dataType">Date</Property> + <Property name="label">妫�楠屾椂闂�</Property> + </PropertyDef> + <PropertyDef name="jyjg"> + <Property/> + <Property name="label">妫�楠岀粨鏋�</Property> + </PropertyDef> + <PropertyDef name="lspzdm"> + <Property/> + <Property name="label">绮鍝佺浠g爜</Property> + </PropertyDef> + <PropertyDef name="lsdd"> + <Property/> + <Property name="label">绮瀹氱瓑</Property> + </PropertyDef> + <PropertyDef name="czbz"> + <Property/> + <Property name="label">鎿嶄綔鏍囧織</Property> + </PropertyDef> + <PropertyDef name="zhgxsj"> + <Property name="dataType">Date</Property> + <Property name="label">鏇存柊鏃堕棿</Property> + </PropertyDef> + <PropertyDef name="bjw"> + <Property/> + <Property name="label">鏍囪浣�</Property> + </PropertyDef> + </DataType> + <DataType name="dtParam"> + <Property name="creationType">com.fzzy.api.data.ApiParam</Property> + <PropertyDef name="kqdm"> + <Property></Property> + <Property name="label">鎵�灞炲簱鍖�</Property> + </PropertyDef> + <PropertyDef name="start"> + <Property name="dataType">Date</Property> + <Property name="label">寮�濮嬫椂闂�</Property> + </PropertyDef> + <PropertyDef name="end"> + <Property name="dataType">Date</Property> + <Property name="label">鎴鏃堕棿</Property> + </PropertyDef> + <PropertyDef name="czbz"> + <Property></Property> + <Property name="label">鎿嶄綔鏍囧織</Property> + <Property name="mapping"> + <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("CZBZ")}</Property> + <Property name="keyProperty">code</Property> + <Property name="valueProperty">name</Property> + </Property> + </PropertyDef> + </DataType> + </Model> + <View layout="regionPadding:10"> + <Property name="packages">font-awesome,css-common</Property> + <DataSet id="dsMain"> + <Property name="dataType">[dtMain]</Property> + <Property name="dataProvider">api9115PR#pageList</Property> + <Property name="pageSize">20</Property> + </DataSet> + <DataSet id="dsQuery"> + <ClientEvent name="onReady">self.insert();</ClientEvent> + <Property name="dataType">dtParam</Property> + </DataSet> + <ToolBar> + <ToolBarLabel> + <Property name="text">宸ュ叿鏍忥細</Property> + <Property name="style"> + <Property name="font-weight">bold</Property> + </Property> + </ToolBarLabel> + <ToolBarButton> + <ClientEvent name="onClick">var query = view.get("#dsQuery").getData();
 +view.get("#dsMain").set("parameter",query).flushAsync();</ClientEvent> + <Property name="caption">鏌ヨ</Property> + <Property name="iconClass">fa fa-search</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-push</Property> + </ToolBarButton> + <ToolBarButton id="btnAdd"> + <ClientEvent name="onClick">view.get("#dsMain").insert();
 +view.get("#dialogMain").show();</ClientEvent> + <Property name="caption">鏂板</Property> + <Property name="iconClass">fa fa-plus</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button</Property> + <Property name="hideMode">display</Property> + </ToolBarButton> + <ToolBarButton id="btnUpdate"> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#dialogMain").show();
 +}</ClientEvent> + <Property name="caption">淇敼</Property> + <Property name="iconClass">fa fa-pencil</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-warm</Property> + <Property name="hideMode">display</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#ajaxDelUpdate").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.set("czbz","d")
 + }
 +});
 +</ClientEvent> + <Property name="caption">鏍囪鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <ToolBarButton id="btnDel"> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#ajaxDel").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.remove();
 + }
 +});
 +</ClientEvent> + <Property name="caption">鐩存帴鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + <Property name="hideMode">display</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
 +if(select && select.length > 0){
 + view.get("#ajaxPush").set("parameter",select).execute(function(result){
 + view.get("#dsMain").flushAsync();
 + $notify(result);
 + });
 +}else{
 + $alert("璇峰嬀閫変笂鎶ユ暟鎹紒");
 +}
 +</ClientEvent> + <Property name="caption">鎵嬪姩涓婁紶</Property> + <Property name="iconClass">fa fa-hand-o-up</Property> + <Property name="exClassName">toolbar-button-push</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Fill/> + <ToolBarButton> + <Property name="caption">涓婁紶璁板綍</Property> + <Property name="iconClass">fa fa-bars</Property> + <Property name="exClassName">toolbar-button</Property> + <Property name="width">100</Property> + </ToolBarButton> + </ToolBar> + <AutoForm> + <Property name="dataSet">dsQuery</Property> + <Property name="cols">*,*,*,*</Property> + <Property name="labelAlign">right</Property> + <Property name="labelSeparator">锛�</Property> + <Property name="labelWidth">90</Property> + <AutoFormElement> + <Property name="name">kqdm</Property> + <Property name="property">kqdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">start</Property> + <Property name="property">start</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">end</Property> + <Property name="property">end</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">czbz</Property> + <Property name="property">czbz</Property> + <Property name="trigger">autoMappingDropDown2</Property> + <Editor/> + </AutoFormElement> + </AutoForm> + <DataGrid id="dgMain"> + <Property name="dataSet">dsMain</Property> + <Property name="selectionMode">multiRows</Property> + <Property name="readOnly">true</Property> + <RowNumColumn/> + <RowSelectorColumn> + <Property name="caption">涓婁紶</Property> + </RowSelectorColumn> + <DataColumn name="bizId"> + <Property name="property">bizId</Property> + </DataColumn> + <DataColumn name="kqdm"> + <Property name="property">kqdm</Property> + </DataColumn> + <DataColumn name="syncTime"> + <Property name="property">syncTime</Property> + </DataColumn> + <DataColumn name="rkjydh"> + <Property name="property">rkjydh</Property> + </DataColumn> + <DataColumn name="hwdm"> + <Property name="property">hwdm</Property> + </DataColumn> + <DataColumn name="rkywdh"> + <Property name="property">rkywdh</Property> + </DataColumn> + <DataColumn name="jyfs"> + <Property name="property">jyfs</Property> + </DataColumn> + <DataColumn name="jyxm"> + <Property name="property">jyxm</Property> + </DataColumn> + <DataColumn name="jyz"> + <Property name="property">jyz</Property> + </DataColumn> + <DataColumn name="jyrxm"> + <Property name="property">jyrxm</Property> + </DataColumn> + <DataColumn name="jysj"> + <Property name="property">jysj</Property> + </DataColumn> + <DataColumn name="jyjg"> + <Property name="property">jyjg</Property> + </DataColumn> + <DataColumn name="lspzdm"> + <Property name="property">lspzdm</Property> + </DataColumn> + <DataColumn name="lsdd"> + <Property name="property">lsdd</Property> + </DataColumn> + <DataColumn name="czbz"> + <Property name="property">czbz</Property> + </DataColumn> + <DataColumn name="zhgxsj"> + <Property name="property">zhgxsj</Property> + </DataColumn> + <DataColumn name="bjw"> + <Property name="property">bjw</Property> + </DataColumn> + </DataGrid> + <ToolBar layoutConstraint="bottom"> + <Fill/> + <DataPilot> + <Property name="itemCodes">pageSize,pages</Property> + <Property name="dataSet">dsMain</Property> + </DataPilot> + </ToolBar> + <Dialog id="dialogMain"> + <Property name="width">1000</Property> + <Property name="caption">鍚堝悓淇℃伅</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Property name="closeable">false</Property> + <Property name="height">90%</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#updateSave").execute(function(){
 + self.get("parent").hide();
 +});</ClientEvent> + <Property name="caption">淇濆瓨淇敼</Property> + <Property name="iconClass">fa fa-check</Property> + <Property name="exClassName">toolbar-button</Property> + </Button> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +self.get("parent").hide();
 +if(cur) cur.cancel();</ClientEvent> + <Property name="caption">鍙栨秷淇敼</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</Property> + </Button> + </Buttons> + <Children> + <AutoForm> + <Property name="dataSet">dsMain</Property> + <Property name="cols">*,*,*</Property> + <Property name="labelWidth">100</Property> + <Property name="labelAlign">left</Property> + <Property name="labelSeparator">锛�</Property> + <Property name="labelPosition">top</Property> + <AutoFormElement> + <Property name="name">bizId</Property> + <Property name="property">bizId</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">kqdm</Property> + <Property name="property">kqdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">syncTime</Property> + <Property name="property">syncTime</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">rkjydh</Property> + <Property name="property">rkjydh</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">hwdm</Property> + <Property name="property">hwdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">rkywdh</Property> + <Property name="property">rkywdh</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">jyfs</Property> + <Property name="property">jyfs</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">jyxm</Property> + <Property name="property">jyxm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">jyz</Property> + <Property name="property">jyz</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">jyrxm</Property> + <Property name="property">jyrxm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">jysj</Property> + <Property name="property">jysj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">jyjg</Property> + <Property name="property">jyjg</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">lspzdm</Property> + <Property name="property">lspzdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">lsdd</Property> + <Property name="property">lsdd</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">czbz</Property> + <Property name="property">czbz</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">zhgxsj</Property> + <Property name="property">zhgxsj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bjw</Property> + <Property name="property">bjw</Property> + <Editor/> + </AutoFormElement> + </AutoForm> + </Children> + <Tools/> + </Dialog> + <UpdateAction id="updateSave"> + <Property name="dataResolver">api9115PR#updateSave</Property> + <UpdateItem> + <Property name="dataPath">[#current]</Property> + <Property name="dataSet">dsMain</Property> + </UpdateItem> + </UpdateAction> + <AjaxAction id="ajaxPush"> + <Property name="service">api9115PR#pushData</Property> + <Property name="confirmMessage">纭畾瑕佷笂鎶ヤ箞锛�</Property> + </AjaxAction> + <AjaxAction id="ajaxDel"> + <Property name="service">api9115PR#delData</Property> + <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property> + </AjaxAction> + <AjaxAction id="ajaxDelUpdate"> + <Property name="service">api9115PR#delUpdate</Property> + <Property name="confirmMessage">纭畾瑕佸皢鏁版嵁鏍囪涓哄垹闄や箞锛�</Property> + </AjaxAction> + </View> +</ViewConfig> diff --git a/src/main/java/com/fzzy/api/view/Api9116.view.xml b/src/main/java/com/fzzy/api/view/Api9116.view.xml new file mode 100644 index 0000000..a78fd0b --- /dev/null +++ b/src/main/java/com/fzzy/api/view/Api9116.view.xml @@ -0,0 +1,473 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ViewConfig> + <Arguments/> + <Context/> + <Model> + <DataType name="dtMain"> + <Property name="creationType">com.fzzy.api.entity.Api9116</Property> + <PropertyDef name="bizId"> + <Property/> + <Property name="label">涓氬姟id</Property> + </PropertyDef> + <PropertyDef name="kqdm"> + <Property/> + <Property name="label">搴撳尯浠g爜</Property> + </PropertyDef> + <PropertyDef name="syncTime"> + <Property name="dataType">Date</Property> + <Property name="label">鍚屾鏃堕棿</Property> + </PropertyDef> + <PropertyDef name="dwdm"> + <Property/> + <Property name="label">鍗曚綅浠g爜</Property> + </PropertyDef> + <PropertyDef name="dwmc"> + <Property/> + <Property name="label">鍗曚綅鍚嶇О</Property> + </PropertyDef> + <PropertyDef name="sgnd"> + <Property/> + <Property name="label">鏀惰喘骞村害</Property> + </PropertyDef> + <PropertyDef name="slqj"> + <Property/> + <Property name="label">鏀剁伯鏈熼棿</Property> + </PropertyDef> + <PropertyDef name="bzzmj"> + <Property name="dataType">Double</Property> + <Property name="label">鎾鎬婚潰绉�</Property> + </PropertyDef> + <PropertyDef name="yjcl"> + <Property name="dataType">Double</Property> + <Property name="label">棰勮浜ч噺</Property> + </PropertyDef> + <PropertyDef name="yjspl"> + <Property name="dataType">Double</Property> + <Property name="label">棰勮鍟嗗搧閲�</Property> + </PropertyDef> + <PropertyDef name="yjsgl"> + <Property name="dataType">Double</Property> + <Property name="label">棰勮鏀惰喘閲�</Property> + </PropertyDef> + <PropertyDef name="yjddsgl"> + <Property name="dataType">Double</Property> + <Property name="label">棰勮璁㈠崟鏀惰喘閲�</Property> + </PropertyDef> + <PropertyDef name="zcr"> + <Property name="dataType">Double</Property> + <Property name="label">鎬讳粨瀹�</Property> + </PropertyDef> + <PropertyDef name="kycr"> + <Property name="dataType">Double</Property> + <Property name="label">鍙敤浠撳</Property> + </PropertyDef> + <PropertyDef name="crqk"> + <Property name="dataType">Double</Property> + <Property name="label">浠撳缂哄彛</Property> + </PropertyDef> + <PropertyDef name="rsgnl"> + <Property name="dataType">Double</Property> + <Property name="label">鏃ユ敹璐兘鍔�</Property> + </PropertyDef> + <PropertyDef name="rhgnl"> + <Property name="dataType">Double</Property> + <Property name="label">鏃ョ儤骞茶兘鍔�</Property> + </PropertyDef> + <PropertyDef name="qjcblhsl"> + <Property name="dataType">Double</Property> + <Property name="label">鍖虹骇鍌ㄥ杞崲鏁伴噺</Property> + </PropertyDef> + <PropertyDef name="gpj"> + <Property name="dataType">Double</Property> + <Property name="label">鎸傜墝浠�</Property> + </PropertyDef> + <PropertyDef name="jwbt"> + <Property name="dataType">Double</Property> + <Property name="label">浠峰琛ヨ创</Property> + </PropertyDef> + <PropertyDef name="zj"> + <Property name="dataType">Double</Property> + <Property name="label">鎬讳环</Property> + </PropertyDef> + <PropertyDef name="czbz"> + <Property/> + <Property name="label">鎿嶄綔鏍囧織</Property> + </PropertyDef> + <PropertyDef name="zhgxsj"> + <Property name="dataType">Date</Property> + <Property name="label">鏇存柊鏃堕棿</Property> + </PropertyDef> + <PropertyDef name="bjw"> + <Property/> + <Property name="label">鏍囪浣�</Property> + </PropertyDef> + </DataType> + <DataType name="dtParam"> + <Property name="creationType">com.fzzy.api.data.ApiParam</Property> + <PropertyDef name="kqdm"> + <Property></Property> + <Property name="label">鎵�灞炲簱鍖�</Property> + </PropertyDef> + <PropertyDef name="start"> + <Property name="dataType">Date</Property> + <Property name="label">寮�濮嬫椂闂�</Property> + </PropertyDef> + <PropertyDef name="end"> + <Property name="dataType">Date</Property> + <Property name="label">鎴鏃堕棿</Property> + </PropertyDef> + <PropertyDef name="czbz"> + <Property></Property> + <Property name="label">鎿嶄綔鏍囧織</Property> + <Property name="mapping"> + <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("CZBZ")}</Property> + <Property name="keyProperty">code</Property> + <Property name="valueProperty">name</Property> + </Property> + </PropertyDef> + </DataType> + </Model> + <View layout="regionPadding:10"> + <Property name="packages">font-awesome,css-common</Property> + <DataSet id="dsMain"> + <Property name="dataType">[dtMain]</Property> + <Property name="dataProvider">api9116PR#pageList</Property> + <Property name="pageSize">20</Property> + </DataSet> + <DataSet id="dsQuery"> + <ClientEvent name="onReady">self.insert();</ClientEvent> + <Property name="dataType">dtParam</Property> + </DataSet> + <ToolBar> + <ToolBarLabel> + <Property name="text">宸ュ叿鏍忥細</Property> + <Property name="style"> + <Property name="font-weight">bold</Property> + </Property> + </ToolBarLabel> + <ToolBarButton> + <ClientEvent name="onClick">var query = view.get("#dsQuery").getData();
 +view.get("#dsMain").set("parameter",query).flushAsync();</ClientEvent> + <Property name="caption">鏌ヨ</Property> + <Property name="iconClass">fa fa-search</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-push</Property> + </ToolBarButton> + <ToolBarButton id="btnAdd"> + <ClientEvent name="onClick">view.get("#dsMain").insert();
 +view.get("#dialogMain").show();</ClientEvent> + <Property name="caption">鏂板</Property> + <Property name="iconClass">fa fa-plus</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button</Property> + <Property name="hideMode">display</Property> + </ToolBarButton> + <ToolBarButton id="btnUpdate"> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +if(cur){
 + view.get("#dialogMain").show();
 +}</ClientEvent> + <Property name="caption">淇敼</Property> + <Property name="iconClass">fa fa-pencil</Property> + <Property name="width">100</Property> + <Property name="exClassName">toolbar-button-warm</Property> + <Property name="hideMode">display</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#ajaxDelUpdate").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.set("czbz","d")
 + }
 +});
 +</ClientEvent> + <Property name="caption">鏍囪鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + </ToolBarButton> + <ToolBarButton id="btnDel"> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#ajaxDel").set("parameter",cur).execute(function(result){
 + if(result){
 + $alert(result);
 + } else{
 + cur.remove();
 + }
 +});
 +</ClientEvent> + <Property name="caption">鐩存帴鍒犻櫎</Property> + <Property name="iconClass">fa fa-minus</Property> + <Property name="exClassName">toolbar-button-warn</Property> + <Property name="width">100</Property> + <Property name="hideMode">display</Property> + </ToolBarButton> + <ToolBarButton> + <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
 +if(select && select.length > 0){
 + view.get("#ajaxPush").set("parameter",select).execute(function(result){
 + view.get("#dsMain").flushAsync();
 + $notify(result);
 + });
 +}else{
 + $alert("璇峰嬀閫変笂鎶ユ暟鎹紒");
 +}
 +</ClientEvent> + <Property name="caption">鎵嬪姩涓婁紶</Property> + <Property name="iconClass">fa fa-hand-o-up</Property> + <Property name="exClassName">toolbar-button-push</Property> + <Property name="width">100</Property> + </ToolBarButton> + <Fill/> + <ToolBarButton> + <Property name="caption">涓婁紶璁板綍</Property> + <Property name="iconClass">fa fa-bars</Property> + <Property name="exClassName">toolbar-button</Property> + <Property name="width">100</Property> + </ToolBarButton> + </ToolBar> + <AutoForm> + <Property name="dataSet">dsQuery</Property> + <Property name="cols">*,*,*,*</Property> + <Property name="labelAlign">right</Property> + <Property name="labelSeparator">锛�</Property> + <Property name="labelWidth">90</Property> + <AutoFormElement> + <Property name="name">kqdm</Property> + <Property name="property">kqdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">start</Property> + <Property name="property">start</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">end</Property> + <Property name="property">end</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">czbz</Property> + <Property name="property">czbz</Property> + <Property name="trigger">autoMappingDropDown2</Property> + <Editor/> + </AutoFormElement> + </AutoForm> + <DataGrid id="dgMain"> + <Property name="dataSet">dsMain</Property> + <Property name="selectionMode">multiRows</Property> + <Property name="readOnly">true</Property> + <RowNumColumn/> + <RowSelectorColumn> + <Property name="caption">涓婁紶</Property> + </RowSelectorColumn> + <DataColumn name="dwmc"> + <Property name="property">dwmc</Property> + </DataColumn> + <DataColumn name="sgnd"> + <Property name="property">sgnd</Property> + </DataColumn> + <DataColumn name="slqj"> + <Property name="property">slqj</Property> + </DataColumn> + <DataColumn name="zj"> + <Property name="property">zj</Property> + </DataColumn> + <DataColumn name="czbz"> + <Property name="property">czbz</Property> + </DataColumn> + <DataColumn name="syncTime"> + <Property name="property">syncTime</Property> + </DataColumn> + <DataColumn name="zhgxsj"> + <Property name="property">zhgxsj</Property> + </DataColumn> + </DataGrid> + <ToolBar layoutConstraint="bottom"> + <Fill/> + <DataPilot> + <Property name="itemCodes">pageSize,pages</Property> + <Property name="dataSet">dsMain</Property> + </DataPilot> + </ToolBar> + <Dialog id="dialogMain"> + <Property name="width">1000</Property> + <Property name="caption">鍚堝悓淇℃伅</Property> + <Property name="iconClass">fa fa-sliders</Property> + <Property name="closeable">false</Property> + <Property name="height">90%</Property> + <Buttons> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +view.get("#updateSave").execute(function(){
 + self.get("parent").hide();
 +});</ClientEvent> + <Property name="caption">淇濆瓨淇敼</Property> + <Property name="iconClass">fa fa-check</Property> + <Property name="exClassName">toolbar-button</Property> + </Button> + <Button> + <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 +self.get("parent").hide();
 +if(cur) cur.cancel();</ClientEvent> + <Property name="caption">鍙栨秷淇敼</Property> + <Property name="iconClass">fa fa-times</Property> + <Property name="exClassName">toolbar-button-warn</Property> + </Button> + </Buttons> + <Children> + <AutoForm> + <Property name="dataSet">dsMain</Property> + <Property name="cols">*,*,*</Property> + <Property name="labelWidth">100</Property> + <Property name="labelAlign">left</Property> + <Property name="labelSeparator">锛�</Property> + <Property name="labelPosition">top</Property> + <AutoFormElement> + <Property name="name">bizId</Property> + <Property name="property">bizId</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">kqdm</Property> + <Property name="property">kqdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">syncTime</Property> + <Property name="property">syncTime</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">dwdm</Property> + <Property name="property">dwdm</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">dwmc</Property> + <Property name="property">dwmc</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">sgnd</Property> + <Property name="property">sgnd</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">slqj</Property> + <Property name="property">slqj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bzzmj</Property> + <Property name="property">bzzmj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">yjcl</Property> + <Property name="property">yjcl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">yjspl</Property> + <Property name="property">yjspl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">yjsgl</Property> + <Property name="property">yjsgl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">yjddsgl</Property> + <Property name="property">yjddsgl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">zcr</Property> + <Property name="property">zcr</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">kycr</Property> + <Property name="property">kycr</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">crqk</Property> + <Property name="property">crqk</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">rsgnl</Property> + <Property name="property">rsgnl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">rhgnl</Property> + <Property name="property">rhgnl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">qjcblhsl</Property> + <Property name="property">qjcblhsl</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">gpj</Property> + <Property name="property">gpj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">jwbt</Property> + <Property name="property">jwbt</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">zj</Property> + <Property name="property">zj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">czbz</Property> + <Property name="property">czbz</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">zhgxsj</Property> + <Property name="property">zhgxsj</Property> + <Editor/> + </AutoFormElement> + <AutoFormElement> + <Property name="name">bjw</Property> + <Property name="property">bjw</Property> + <Editor/> + </AutoFormElement> + </AutoForm> + </Children> + <Tools/> + </Dialog> + <UpdateAction id="updateSave"> + <Property name="dataResolver">api9116PR#updateSave</Property> + <UpdateItem> + <Property name="dataPath">[#current]</Property> + <Property name="dataSet">dsMain</Property> + </UpdateItem> + </UpdateAction> + <AjaxAction id="ajaxPush"> + <Property name="service">api9116PR#pushData</Property> + <Property name="confirmMessage">纭畾瑕佷笂鎶ヤ箞锛�</Property> + </AjaxAction> + <AjaxAction id="ajaxDel"> + <Property name="service">api9116PR#delData</Property> + <Property name="confirmMessage">褰撳墠鏁版嵁鍒犻櫎鍚庢棤娉曟仮澶嶏紝璇风‘璁よ鍒犻櫎涔堬紵</Property> + </AjaxAction> + <AjaxAction id="ajaxDelUpdate"> + <Property name="service">api9116PR#delUpdate</Property> + <Property name="confirmMessage">纭畾瑕佸皢鏁版嵁鏍囪涓哄垹闄や箞锛�</Property> + </AjaxAction> + </View> +</ViewConfig> diff --git a/src/main/java/com/fzzy/api/view/pr/Api9109PR.java b/src/main/java/com/fzzy/api/view/pr/Api9109PR.java new file mode 100644 index 0000000..d750f5c --- /dev/null +++ b/src/main/java/com/fzzy/api/view/pr/Api9109PR.java @@ -0,0 +1,180 @@ +package com.fzzy.api.view.pr; + +import com.bstek.dorado.annotation.DataProvider; +import com.bstek.dorado.annotation.DataResolver; +import com.bstek.dorado.annotation.Expose; +import com.fzzy.api.Constant; +import com.fzzy.api.data.ApiParam; +import com.fzzy.api.dto.ResponseDto; +import com.fzzy.api.entity.Api9109; +import com.fzzy.api.entity.ApiConfs; +import com.fzzy.api.service.ApiCommonService; +import com.fzzy.api.service.ApiPushManager; +import com.fzzy.api.service.ApiRemoteService; +import com.fzzy.api.view.repository.Api9109Rep; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import java.util.List; + +/** + * 鍗曚綅淇℃伅 + * + * @author czt + */ +@Component +public class Api9109PR { + + @Autowired + private Api9109Rep api9109Rep; + + @Autowired + private ApiCommonService apiCommonService; + + @Autowired + private ApiPushManager apiPushManager; + + /** + * api9109PR#listAll + * + * @return + */ + @DataProvider + public List<Api9109> listAll() { + return api9109Rep.findAll(); + } + + /** + * api9109PR#updateSave + * + * @param entity + */ + @DataResolver + public void updateSave(Api9109 entity) { + + // 鎵嬪姩灏哾oradoEntity瀵硅薄杞崲涓烘爣鍑咮ean瀵硅薄 + Api9109 data = new Api9109(); + BeanUtils.copyProperties(entity, data); + + data.setKqdm(data.getKqdm().trim()); + api9109Rep.save(data); + } + + + + /** + * api9109PR#delData + * + * @param data + */ + @Expose + public String delData(Api9109 data) { + + api9109Rep.deleteById(data.getDwdm()); + + return null; + } + + /** + * 鏇存柊鍒犻櫎鏍囪 api9109PR#delUpdate + * + * @param entity + */ + @Expose + public String delUpdate(Api9109 entity) { + + entity.setCzbz(Constant.CZBZ_D); + + Api9109 data = new Api9109(); + BeanUtils.copyProperties(entity, data); + + api9109Rep.save(data); + return null; + } + + /** + * api9109PR#pushData + * + * @param items + */ + @Expose + public String pushData(List<Api9109> items) { + + //鑾峰彇閰嶇疆 + String kqdm = items.get(0).getKqdm(); + ApiConfs apiConf = apiCommonService.getConf(kqdm); + + if (null == apiConf) { + return "绯荤粺娌℃湁鑾峰彇鍒板綋鍓嶅簱鍖洪厤缃俊鎭紝鎵ц澶辫触"; + } + + //鑾峰彇瀹炵幇鎺ュ彛 + ApiRemoteService apiRemoteService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol()); + if (null == apiRemoteService) { + return "绯荤粺娌℃湁褰撳墠鎺ㄩ�佸崗璁厤缃紝鎵ц澶辫触"; + } + + return pushDataSingle(items, apiRemoteService, apiConf); + } + + /** + * 鍗曟潯鏁版嵁json鎺ㄩ�� + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataSingle(List<Api9109> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + ResponseDto responseDto; + String result = ""; + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_9109); + + Api9109 d; + for (Api9109 data : items) { + d = new Api9109(); + BeanUtils.copyProperties(data, d); + param.setBizId(data.getBizId()); + responseDto = apiRemoteService.pushData(param, apiConf, d); + + result += responseDto.toString(); + if (responseDto.getSuccess() == 0) { + if (Constant.CZBZ_I.equals(d.getCzbz())) { + api9109Rep.updateStatus(data.getDwdm(), Constant.CZBZ_U); + } + } + } + return result; + } + + /** + * 闆嗗悎褰㈠紡鎺ㄩ�� + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataList(List<Api9109> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_9109); + + + //鎺ㄩ�侊紝鏁版嵁涓洪泦鍚堝舰寮� + ResponseDto responseDto = apiRemoteService.pushData(param, apiConf, items); + if (responseDto.getSuccess() == 0) { + //鎺ㄩ�佹垚鍔燂紝鏇存柊鏁版嵁涓婁紶鐘舵�� + for (Api9109 data : items) { + if (Constant.CZBZ_I.equals(data.getCzbz())) { + //鏇存柊鐘舵�� + api9109Rep.updateStatus(data.getDwdm(), Constant.CZBZ_U); + } + } + } + + return responseDto.toString(); + } + +} diff --git a/src/main/java/com/fzzy/api/view/pr/Api9110PR.java b/src/main/java/com/fzzy/api/view/pr/Api9110PR.java new file mode 100644 index 0000000..b1dfb27 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/pr/Api9110PR.java @@ -0,0 +1,179 @@ +package com.fzzy.api.view.pr; + +import com.bstek.dorado.annotation.DataProvider; +import com.bstek.dorado.annotation.DataResolver; +import com.bstek.dorado.annotation.Expose; +import com.fzzy.api.Constant; +import com.fzzy.api.data.ApiParam; +import com.fzzy.api.dto.ResponseDto; +import com.fzzy.api.entity.Api9110; +import com.fzzy.api.entity.ApiConfs; +import com.fzzy.api.service.ApiCommonService; +import com.fzzy.api.service.ApiPushManager; +import com.fzzy.api.service.ApiRemoteService; +import com.fzzy.api.view.repository.Api9110Rep; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import java.util.List; + +/** + * 鏀剁撼搴撲俊鎭� + * + * @author czt + */ +@Component +public class Api9110PR { + + @Autowired + private Api9110Rep api9110Rep; + + @Autowired + private ApiCommonService apiCommonService; + + @Autowired + private ApiPushManager apiPushManager; + + /** + * api9110PR#listAll + * + * @return + */ + @DataProvider + public List<Api9110> listAll() { + return api9110Rep.findAll(); + } + + /** + * api9110PR#updateSave + * + * @param entity + */ + @DataResolver + public void updateSave(Api9110 entity) { + + // 鎵嬪姩灏哾oradoEntity瀵硅薄杞崲涓烘爣鍑咮ean瀵硅薄 + Api9110 data = new Api9110(); + BeanUtils.copyProperties(entity, data); + + data.setKqdm(data.getKqdm().trim()); + + api9110Rep.save(data); + } + + /** + * api9110PR#delData + * + * @param data + */ + @Expose + public String delData(Api9110 data) { + + api9110Rep.deleteById(data.getDwdm()); + + return null; + } + + /** + * 鏇存柊鍒犻櫎鏍囪 api9110PR#delUpdate + * + * @param entity + */ + @Expose + public String delUpdate(Api9110 entity) { + + entity.setCzbz(Constant.CZBZ_D); + + Api9110 data = new Api9110(); + BeanUtils.copyProperties(entity, data); + + api9110Rep.save(data); + return null; + } + + /** + * api9110PR#pushData + * + * @param items + */ + @Expose + public String pushData(List<Api9110> items) { + + //鑾峰彇閰嶇疆 + String kqdm = items.get(0).getKqdm(); + ApiConfs apiConf = apiCommonService.getConf(kqdm); + + if (null == apiConf) { + return "绯荤粺娌℃湁鑾峰彇鍒板綋鍓嶅簱鍖洪厤缃俊鎭紝鎵ц澶辫触"; + } + + //鑾峰彇瀹炵幇鎺ュ彛 + ApiRemoteService apiRemoteService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol()); + if (null == apiRemoteService) { + return "绯荤粺娌℃湁褰撳墠鎺ㄩ�佸崗璁厤缃紝鎵ц澶辫触"; + } + + return pushDataSingle(items, apiRemoteService, apiConf); + } + + /** + * 鍗曟潯鏁版嵁json鎺ㄩ�� + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataSingle(List<Api9110> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + ResponseDto responseDto; + String result = ""; + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_9110); + + Api9110 d; + for (Api9110 data : items) { + d = new Api9110(); + BeanUtils.copyProperties(data, d); + param.setBizId(data.getBizId()); + responseDto = apiRemoteService.pushData(param, apiConf, d); + + result += responseDto.toString(); + if (responseDto.getSuccess() == 0) { + if (Constant.CZBZ_I.equals(d.getCzbz())) { + api9110Rep.updateStatus(data.getKqdm(), Constant.CZBZ_U); + } + } + } + return result; + } + + /** + * 闆嗗悎褰㈠紡鎺ㄩ�� + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataList(List<Api9110> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_9110); + + + //鎺ㄩ�侊紝鏁版嵁涓洪泦鍚堝舰寮� + ResponseDto responseDto = apiRemoteService.pushData(param, apiConf, items); + if (responseDto.getSuccess() == 0) { + //鎺ㄩ�佹垚鍔燂紝鏇存柊鏁版嵁涓婁紶鐘舵�� + for (Api9110 data : items) { + if (Constant.CZBZ_I.equals(data.getCzbz())) { + //鏇存柊鐘舵�� + api9110Rep.updateStatus(data.getKqdm(), Constant.CZBZ_U); + } + } + } + + return responseDto.toString(); + } + +} diff --git a/src/main/java/com/fzzy/api/view/pr/Api9111PR.java b/src/main/java/com/fzzy/api/view/pr/Api9111PR.java new file mode 100644 index 0000000..24aa056 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/pr/Api9111PR.java @@ -0,0 +1,179 @@ +package com.fzzy.api.view.pr; + +import com.bstek.dorado.annotation.DataProvider; +import com.bstek.dorado.annotation.DataResolver; +import com.bstek.dorado.annotation.Expose; +import com.fzzy.api.Constant; +import com.fzzy.api.data.ApiParam; +import com.fzzy.api.dto.ResponseDto; +import com.fzzy.api.entity.Api9111; +import com.fzzy.api.entity.ApiConfs; +import com.fzzy.api.service.ApiCommonService; +import com.fzzy.api.service.ApiPushManager; +import com.fzzy.api.service.ApiRemoteService; +import com.fzzy.api.view.repository.Api9111Rep; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import java.util.List; + +/** + * 鏀剁撼搴撲俊鎭� + * + * @author czt + */ +@Component +public class Api9111PR { + + @Autowired + private Api9111Rep api9111Rep; + + @Autowired + private ApiCommonService apiCommonService; + + @Autowired + private ApiPushManager apiPushManager; + + /** + * api9111PR#listAll + * + * @return + */ + @DataProvider + public List<Api9111> listAll() { + return api9111Rep.findAll(); + } + + /** + * api9111PR#updateSave + * + * @param entity + */ + @DataResolver + public void updateSave(Api9111 entity) { + + // 鎵嬪姩灏哾oradoEntity瀵硅薄杞崲涓烘爣鍑咮ean瀵硅薄 + Api9111 data = new Api9111(); + BeanUtils.copyProperties(entity, data); + + data.setKqdm(data.getKqdm().trim()); + + api9111Rep.save(data); + } + + /** + * api9111PR#delData + * + * @param data + */ + @Expose + public String delData(Api9111 data) { + + api9111Rep.deleteById(data.getCfdm()); + + return null; + } + + /** + * 鏇存柊鍒犻櫎鏍囪 api9111PR#delUpdate + * + * @param entity + */ + @Expose + public String delUpdate(Api9111 entity) { + + entity.setCzbz(Constant.CZBZ_D); + + Api9111 data = new Api9111(); + BeanUtils.copyProperties(entity, data); + + api9111Rep.save(data); + return null; + } + + /** + * api9111PR#pushData + * + * @param items + */ + @Expose + public String pushData(List<Api9111> items) { + + //鑾峰彇閰嶇疆 + String kqdm = items.get(0).getKqdm(); + ApiConfs apiConf = apiCommonService.getConf(kqdm); + + if (null == apiConf) { + return "绯荤粺娌℃湁鑾峰彇鍒板綋鍓嶅簱鍖洪厤缃俊鎭紝鎵ц澶辫触"; + } + + //鑾峰彇瀹炵幇鎺ュ彛 + ApiRemoteService apiRemoteService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol()); + if (null == apiRemoteService) { + return "绯荤粺娌℃湁褰撳墠鎺ㄩ�佸崗璁厤缃紝鎵ц澶辫触"; + } + + return pushDataSingle(items, apiRemoteService, apiConf); + } + + /** + * 鍗曟潯鏁版嵁json鎺ㄩ�� + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataSingle(List<Api9111> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + ResponseDto responseDto; + String result = ""; + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_9111); + + Api9111 d; + for (Api9111 data : items) { + d = new Api9111(); + BeanUtils.copyProperties(data, d); + param.setBizId(data.getBizId()); + responseDto = apiRemoteService.pushData(param, apiConf, d); + + result += responseDto.toString(); + if (responseDto.getSuccess() == 0) { + if (Constant.CZBZ_I.equals(d.getCzbz())) { + api9111Rep.updateStatus(data.getCfdm(), Constant.CZBZ_U); + } + } + } + return result; + } + + /** + * 闆嗗悎褰㈠紡鎺ㄩ�� + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataList(List<Api9111> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_9111); + + + //鎺ㄩ�侊紝鏁版嵁涓洪泦鍚堝舰寮� + ResponseDto responseDto = apiRemoteService.pushData(param, apiConf, items); + if (responseDto.getSuccess() == 0) { + //鎺ㄩ�佹垚鍔燂紝鏇存柊鏁版嵁涓婁紶鐘舵�� + for (Api9111 data : items) { + if (Constant.CZBZ_I.equals(data.getCzbz())) { + //鏇存柊鐘舵�� + api9111Rep.updateStatus(data.getCfdm(), Constant.CZBZ_U); + } + } + } + + return responseDto.toString(); + } + +} diff --git a/src/main/java/com/fzzy/api/view/pr/Api9112PR.java b/src/main/java/com/fzzy/api/view/pr/Api9112PR.java new file mode 100644 index 0000000..9eb195f --- /dev/null +++ b/src/main/java/com/fzzy/api/view/pr/Api9112PR.java @@ -0,0 +1,179 @@ +package com.fzzy.api.view.pr; + +import com.bstek.dorado.annotation.DataProvider; +import com.bstek.dorado.annotation.DataResolver; +import com.bstek.dorado.annotation.Expose; +import com.fzzy.api.Constant; +import com.fzzy.api.data.ApiParam; +import com.fzzy.api.dto.ResponseDto; +import com.fzzy.api.entity.Api9112; +import com.fzzy.api.entity.ApiConfs; +import com.fzzy.api.service.ApiCommonService; +import com.fzzy.api.service.ApiPushManager; +import com.fzzy.api.service.ApiRemoteService; +import com.fzzy.api.view.repository.Api9112Rep; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import java.util.List; + +/** + * 鏀剁撼搴撲俊鎭� + * + * @author czt + */ +@Component +public class Api9112PR { + + @Autowired + private Api9112Rep api9112Rep; + + @Autowired + private ApiCommonService apiCommonService; + + @Autowired + private ApiPushManager apiPushManager; + + /** + * api9112PR#listAll + * + * @return + */ + @DataProvider + public List<Api9112> listAll() { + return api9112Rep.findAll(); + } + + /** + * api9112PR#updateSave + * + * @param entity + */ + @DataResolver + public void updateSave(Api9112 entity) { + + // 鎵嬪姩灏哾oradoEntity瀵硅薄杞崲涓烘爣鍑咮ean瀵硅薄 + Api9112 data = new Api9112(); + BeanUtils.copyProperties(entity, data); + + data.setKqdm(data.getKqdm().trim()); + + api9112Rep.save(data); + } + + /** + * api9112PR#delData + * + * @param data + */ + @Expose + public String delData(Api9112 data) { + + api9112Rep.deleteById(data.getAjdm()); + + return null; + } + + /** + * 鏇存柊鍒犻櫎鏍囪 api9112PR#delUpdate + * + * @param entity + */ + @Expose + public String delUpdate(Api9112 entity) { + + entity.setCzbz(Constant.CZBZ_D); + + Api9112 data = new Api9112(); + BeanUtils.copyProperties(entity, data); + + api9112Rep.save(data); + return null; + } + + /** + * api9112PR#pushData + * + * @param items + */ + @Expose + public String pushData(List<Api9112> items) { + + //鑾峰彇閰嶇疆 + String kqdm = items.get(0).getKqdm(); + ApiConfs apiConf = apiCommonService.getConf(kqdm); + + if (null == apiConf) { + return "绯荤粺娌℃湁鑾峰彇鍒板綋鍓嶅簱鍖洪厤缃俊鎭紝鎵ц澶辫触"; + } + + //鑾峰彇瀹炵幇鎺ュ彛 + ApiRemoteService apiRemoteService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol()); + if (null == apiRemoteService) { + return "绯荤粺娌℃湁褰撳墠鎺ㄩ�佸崗璁厤缃紝鎵ц澶辫触"; + } + + return pushDataSingle(items, apiRemoteService, apiConf); + } + + /** + * 鍗曟潯鏁版嵁json鎺ㄩ�� + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataSingle(List<Api9112> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + ResponseDto responseDto; + String result = ""; + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_9112); + + Api9112 d; + for (Api9112 data : items) { + d = new Api9112(); + BeanUtils.copyProperties(data, d); + param.setBizId(data.getBizId()); + responseDto = apiRemoteService.pushData(param, apiConf, d); + + result += responseDto.toString(); + if (responseDto.getSuccess() == 0) { + if (Constant.CZBZ_I.equals(d.getCzbz())) { + api9112Rep.updateStatus(data.getAjdm(), Constant.CZBZ_U); + } + } + } + return result; + } + + /** + * 闆嗗悎褰㈠紡鎺ㄩ�� + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataList(List<Api9112> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_9112); + + + //鎺ㄩ�侊紝鏁版嵁涓洪泦鍚堝舰寮� + ResponseDto responseDto = apiRemoteService.pushData(param, apiConf, items); + if (responseDto.getSuccess() == 0) { + //鎺ㄩ�佹垚鍔燂紝鏇存柊鏁版嵁涓婁紶鐘舵�� + for (Api9112 data : items) { + if (Constant.CZBZ_I.equals(data.getCzbz())) { + //鏇存柊鐘舵�� + api9112Rep.updateStatus(data.getAjdm(), Constant.CZBZ_U); + } + } + } + + return responseDto.toString(); + } + +} diff --git a/src/main/java/com/fzzy/api/view/pr/Api9113PR.java b/src/main/java/com/fzzy/api/view/pr/Api9113PR.java new file mode 100644 index 0000000..852e315 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/pr/Api9113PR.java @@ -0,0 +1,179 @@ +package com.fzzy.api.view.pr; + +import com.bstek.dorado.annotation.DataProvider; +import com.bstek.dorado.annotation.DataResolver; +import com.bstek.dorado.annotation.Expose; +import com.fzzy.api.Constant; +import com.fzzy.api.data.ApiParam; +import com.fzzy.api.dto.ResponseDto; +import com.fzzy.api.entity.Api9113; +import com.fzzy.api.entity.ApiConfs; +import com.fzzy.api.service.ApiCommonService; +import com.fzzy.api.service.ApiPushManager; +import com.fzzy.api.service.ApiRemoteService; +import com.fzzy.api.view.repository.Api9113Rep; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import java.util.List; + +/** + * 鏀剁撼搴撲俊鎭� + * + * @author czt + */ +@Component +public class Api9113PR { + + @Autowired + private Api9113Rep api9113Rep; + + @Autowired + private ApiCommonService apiCommonService; + + @Autowired + private ApiPushManager apiPushManager; + + /** + * api9113PR#listAll + * + * @return + */ + @DataProvider + public List<Api9113> listAll() { + return api9113Rep.findAll(); + } + + /** + * api9113PR#updateSave + * + * @param entity + */ + @DataResolver + public void updateSave(Api9113 entity) { + + // 鎵嬪姩灏哾oradoEntity瀵硅薄杞崲涓烘爣鍑咮ean瀵硅薄 + Api9113 data = new Api9113(); + BeanUtils.copyProperties(entity, data); + + data.setKqdm(data.getKqdm().trim()); + + api9113Rep.save(data); + } + + /** + * api9113PR#delData + * + * @param data + */ + @Expose + public String delData(Api9113 data) { + + api9113Rep.deleteById(data.getHwdm()); + + return null; + } + + /** + * 鏇存柊鍒犻櫎鏍囪 api9113PR#delUpdate + * + * @param entity + */ + @Expose + public String delUpdate(Api9113 entity) { + + entity.setCzbz(Constant.CZBZ_D); + + Api9113 data = new Api9113(); + BeanUtils.copyProperties(entity, data); + + api9113Rep.save(data); + return null; + } + + /** + * api9113PR#pushData + * + * @param items + */ + @Expose + public String pushData(List<Api9113> items) { + + //鑾峰彇閰嶇疆 + String kqdm = items.get(0).getKqdm(); + ApiConfs apiConf = apiCommonService.getConf(kqdm); + + if (null == apiConf) { + return "绯荤粺娌℃湁鑾峰彇鍒板綋鍓嶅簱鍖洪厤缃俊鎭紝鎵ц澶辫触"; + } + + //鑾峰彇瀹炵幇鎺ュ彛 + ApiRemoteService apiRemoteService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol()); + if (null == apiRemoteService) { + return "绯荤粺娌℃湁褰撳墠鎺ㄩ�佸崗璁厤缃紝鎵ц澶辫触"; + } + + return pushDataSingle(items, apiRemoteService, apiConf); + } + + /** + * 鍗曟潯鏁版嵁json鎺ㄩ�� + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataSingle(List<Api9113> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + ResponseDto responseDto; + String result = ""; + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_9113); + + Api9113 d; + for (Api9113 data : items) { + d = new Api9113(); + BeanUtils.copyProperties(data, d); + param.setBizId(data.getBizId()); + responseDto = apiRemoteService.pushData(param, apiConf, d); + + result += responseDto.toString(); + if (responseDto.getSuccess() == 0) { + if (Constant.CZBZ_I.equals(d.getCzbz())) { + api9113Rep.updateStatus(data.getHwdm(), Constant.CZBZ_U); + } + } + } + return result; + } + + /** + * 闆嗗悎褰㈠紡鎺ㄩ�� + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataList(List<Api9113> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_9113); + + + //鎺ㄩ�侊紝鏁版嵁涓洪泦鍚堝舰寮� + ResponseDto responseDto = apiRemoteService.pushData(param, apiConf, items); + if (responseDto.getSuccess() == 0) { + //鎺ㄩ�佹垚鍔燂紝鏇存柊鏁版嵁涓婁紶鐘舵�� + for (Api9113 data : items) { + if (Constant.CZBZ_I.equals(data.getCzbz())) { + //鏇存柊鐘舵�� + api9113Rep.updateStatus(data.getHwdm(), Constant.CZBZ_U); + } + } + } + + return responseDto.toString(); + } + +} diff --git a/src/main/java/com/fzzy/api/view/pr/Api9114PR.java b/src/main/java/com/fzzy/api/view/pr/Api9114PR.java new file mode 100644 index 0000000..d356edb --- /dev/null +++ b/src/main/java/com/fzzy/api/view/pr/Api9114PR.java @@ -0,0 +1,245 @@ +package com.fzzy.api.view.pr; + +import com.bstek.dorado.annotation.DataProvider; +import com.bstek.dorado.annotation.DataResolver; +import com.bstek.dorado.annotation.Expose; +import com.bstek.dorado.data.provider.Page; +import com.fzzy.api.Constant; +import com.fzzy.api.data.ApiParam; +import com.fzzy.api.dto.ResponseDto; +import com.fzzy.api.entity.Api1202; +import com.fzzy.api.entity.Api9114; +import com.fzzy.api.entity.ApiConfs; +import com.fzzy.api.service.ApiCommonService; +import com.fzzy.api.service.ApiPushManager; +import com.fzzy.api.service.ApiRemoteService; +import com.fzzy.api.utils.ContextUtil; +import com.fzzy.api.view.repository.Api9114Rep; +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.data.domain.PageRequest; +import org.springframework.data.domain.Pageable; +import org.springframework.data.domain.Sort; +import org.springframework.data.jpa.domain.Specification; +import org.springframework.stereotype.Component; + +import javax.persistence.criteria.CriteriaBuilder; +import javax.persistence.criteria.CriteriaQuery; +import javax.persistence.criteria.Predicate; +import javax.persistence.criteria.Root; +import java.util.ArrayList; +import java.util.List; + +/** + * 鏀剁撼搴撲俊鎭� + * + * @author czt + */ +@Component +@Slf4j +public class Api9114PR { + + @Autowired + private Api9114Rep api9114Rep; + + @Autowired + private ApiCommonService apiCommonService; + + @Autowired + private ApiPushManager apiPushManager; + + /** + * api9114PR#pageList + * + * @return + */ + @DataProvider + public void pageList(Page<Api9114> page, ApiParam param){ + //澶氬弬鏁板垎椤垫煡璇� + Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, Api1202.SORT_PROP); + + if (null == param) { + org.springframework.data.domain.Page<Api9114> japPage = api9114Rep.findAll(pageable); + page.setEntityCount((int) japPage.getTotalElements()); + page.setEntities(japPage.getContent()); + + return; + } + + Specification<Api9114> specification = new Specification<Api9114>() { + private static final long serialVersionUID = 1L; + + public Predicate toPredicate(Root<Api9114> root, CriteriaQuery<?> query, CriteriaBuilder cb) { + List<Predicate> predicates = new ArrayList<>(); //鎵�鏈夌殑鏂█ + + if (StringUtils.isNotBlank(param.getKqdm())) { + Predicate predicate1 = cb.equal(root.get("hwdm"), param.getKqdm()); + predicates.add(predicate1); + } + + if (StringUtils.isNotBlank(param.getCzbz())) { + Predicate predicate2 = cb.equal(root.get("czbz"), param.getCzbz()); + predicates.add(predicate2); + } + if (null != param.getStart()) { + Predicate predicate3 = cb.greaterThan(root.get("ywrq"), ContextUtil.getCurZero(param.getStart())); + predicates.add(predicate3); + } + + if (null != param.getEnd()) { + Predicate predicate4 = cb.lessThan(root.get("ywrq"), ContextUtil.getNextZero(param.getEnd())); + predicates.add(predicate4); + } + return cb.and(predicates.toArray(new Predicate[0])); + } + }; + + log.debug("---------鍒嗛〉鍙傛暟鏌ヨ----------{}", param.toString()); + org.springframework.data.domain.Page<Api9114> japPage = api9114Rep.findAll(specification, pageable); + page.setEntityCount((int) japPage.getTotalElements()); + page.setEntities(japPage.getContent()); + } + /** + * api9114PR#listAll + * + * @return + */ + @DataProvider + public List<Api9114> listAll() { + return api9114Rep.findAll(); + } + + /** + * api9114PR#updateSave + * + * @param entity + */ + @DataResolver + public void updateSave(Api9114 entity) { + + // 鎵嬪姩灏哾oradoEntity瀵硅薄杞崲涓烘爣鍑咮ean瀵硅薄 + Api9114 data = new Api9114(); + BeanUtils.copyProperties(entity, data); + + data.setKqdm(data.getKqdm().trim()); + + api9114Rep.save(data); + } + + /** + * api9114PR#delData + * + * @param data + */ + @Expose + public String delData(Api9114 data) { + + api9114Rep.deleteById(data.getRkywdh()); + + return null; + } + + /** + * 鏇存柊鍒犻櫎鏍囪 api9114PR#delUpdate + * + * @param entity + */ + @Expose + public String delUpdate(Api9114 entity) { + + entity.setCzbz(Constant.CZBZ_D); + + Api9114 data = new Api9114(); + BeanUtils.copyProperties(entity, data); + + api9114Rep.save(data); + return null; + } + + /** + * api9114PR#pushData + * + * @param items + */ + @Expose + public String pushData(List<Api9114> items) { + + //鑾峰彇閰嶇疆 + String kqdm = items.get(0).getKqdm(); + ApiConfs apiConf = apiCommonService.getConf(kqdm); + + if (null == apiConf) { + return "绯荤粺娌℃湁鑾峰彇鍒板綋鍓嶅簱鍖洪厤缃俊鎭紝鎵ц澶辫触"; + } + + //鑾峰彇瀹炵幇鎺ュ彛 + ApiRemoteService apiRemoteService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol()); + if (null == apiRemoteService) { + return "绯荤粺娌℃湁褰撳墠鎺ㄩ�佸崗璁厤缃紝鎵ц澶辫触"; + } + + return pushDataSingle(items, apiRemoteService, apiConf); + } + + /** + * 鍗曟潯鏁版嵁json鎺ㄩ�� + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataSingle(List<Api9114> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + ResponseDto responseDto; + String result = ""; + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_9114); + + Api9114 d; + for (Api9114 data : items) { + d = new Api9114(); + BeanUtils.copyProperties(data, d); + param.setBizId(data.getBizId()); + responseDto = apiRemoteService.pushData(param, apiConf, d); + + result += responseDto.toString(); + if (responseDto.getSuccess() == 0) { + if (Constant.CZBZ_I.equals(d.getCzbz())) { + api9114Rep.updateStatus(data.getRkywdh(), Constant.CZBZ_U); + } + } + } + return result; + } + + /** + * 闆嗗悎褰㈠紡鎺ㄩ�� + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataList(List<Api9114> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_9114); + + + //鎺ㄩ�侊紝鏁版嵁涓洪泦鍚堝舰寮� + ResponseDto responseDto = apiRemoteService.pushData(param, apiConf, items); + if (responseDto.getSuccess() == 0) { + //鎺ㄩ�佹垚鍔燂紝鏇存柊鏁版嵁涓婁紶鐘舵�� + for (Api9114 data : items) { + if (Constant.CZBZ_I.equals(data.getCzbz())) { + //鏇存柊鐘舵�� + api9114Rep.updateStatus(data.getRkywdh(), Constant.CZBZ_U); + } + } + } + + return responseDto.toString(); + } + +} diff --git a/src/main/java/com/fzzy/api/view/pr/Api9115PR.java b/src/main/java/com/fzzy/api/view/pr/Api9115PR.java new file mode 100644 index 0000000..6d38dac --- /dev/null +++ b/src/main/java/com/fzzy/api/view/pr/Api9115PR.java @@ -0,0 +1,248 @@ +package com.fzzy.api.view.pr; + +import com.bstek.dorado.annotation.DataProvider; +import com.bstek.dorado.annotation.DataResolver; +import com.bstek.dorado.annotation.Expose; +import com.bstek.dorado.data.provider.Page; +import com.fzzy.api.Constant; +import com.fzzy.api.data.ApiParam; +import com.fzzy.api.dto.ResponseDto; +import com.fzzy.api.entity.Api9115; +import com.fzzy.api.entity.Api9115; +import com.fzzy.api.entity.ApiConfs; +import com.fzzy.api.service.ApiCommonService; +import com.fzzy.api.service.ApiPushManager; +import com.fzzy.api.service.ApiRemoteService; +import com.fzzy.api.utils.ContextUtil; +import com.fzzy.api.view.repository.Api9115Rep; +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.data.domain.PageRequest; +import org.springframework.data.domain.Pageable; +import org.springframework.data.domain.Sort; +import org.springframework.data.jpa.domain.Specification; +import org.springframework.stereotype.Component; + +import javax.persistence.criteria.CriteriaBuilder; +import javax.persistence.criteria.CriteriaQuery; +import javax.persistence.criteria.Predicate; +import javax.persistence.criteria.Root; +import java.util.ArrayList; +import java.util.List; + +/** + * 鏀剁撼搴撲俊鎭� + * + * @author czt + */ +@Slf4j +@Component +public class Api9115PR { + + @Autowired + private Api9115Rep api9115Rep; + + @Autowired + private ApiCommonService apiCommonService; + + @Autowired + private ApiPushManager apiPushManager; + + /** + * Api9115PR#pageList + * + * @return + */ + @DataProvider + public void pageList(Page<Api9115> page, ApiParam param) { + + //澶氬弬鏁板垎椤垫煡璇� + Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, Api9115.SORT_PROP); + + if (null == param) { + org.springframework.data.domain.Page<Api9115> japPage = api9115Rep.findAll(pageable); + page.setEntityCount((int) japPage.getTotalElements()); + page.setEntities(japPage.getContent()); + + return; + } + + Specification<Api9115> specification = new Specification<Api9115>() { + private static final long serialVersionUID = 1L; + + public Predicate toPredicate(Root<Api9115> root, CriteriaQuery<?> query, CriteriaBuilder cb) { + List<Predicate> predicates = new ArrayList<>(); //鎵�鏈夌殑鏂█ + + if (StringUtils.isNotBlank(param.getKqdm())) { + Predicate predicate1 = cb.equal(root.get("kqdm"), param.getKqdm()); + predicates.add(predicate1); + } + + if (StringUtils.isNotBlank(param.getCzbz())) { + Predicate predicate2 = cb.equal(root.get("czbz"), param.getCzbz()); + predicates.add(predicate2); + } + if (null != param.getStart()) { + Predicate predicate3 = cb.greaterThan(root.get("ywrq"), ContextUtil.getCurZero(param.getStart())); + predicates.add(predicate3); + } + + if (null != param.getEnd()) { + Predicate predicate4 = cb.lessThan(root.get("ywrq"), ContextUtil.getNextZero(param.getEnd())); + predicates.add(predicate4); + } + return cb.and(predicates.toArray(new Predicate[0])); + } + }; + + log.debug("---------鍒嗛〉鍙傛暟鏌ヨ----------{}", param.toString()); + org.springframework.data.domain.Page<Api9115> japPage = api9115Rep.findAll(specification, pageable); + page.setEntityCount((int) japPage.getTotalElements()); + page.setEntities(japPage.getContent()); + } + + + /** + * api9115PR#listAll + * + * @return + */ + @DataProvider + public List<Api9115> listAll() { + return api9115Rep.findAll(); + } + + /** + * api9115PR#updateSave + * + * @param entity + */ + @DataResolver + public void updateSave(Api9115 entity) { + + // 鎵嬪姩灏哾oradoEntity瀵硅薄杞崲涓烘爣鍑咮ean瀵硅薄 + Api9115 data = new Api9115(); + BeanUtils.copyProperties(entity, data); + + data.setKqdm(data.getKqdm().trim()); + + api9115Rep.save(data); + } + + /** + * api9115PR#delData + * + * @param data + */ + @Expose + public String delData(Api9115 data) { + + api9115Rep.deleteById(data.getRkjydh()); + + return null; + } + + /** + * 鏇存柊鍒犻櫎鏍囪 api9115PR#delUpdate + * + * @param entity + */ + @Expose + public String delUpdate(Api9115 entity) { + + entity.setCzbz(Constant.CZBZ_D); + + Api9115 data = new Api9115(); + BeanUtils.copyProperties(entity, data); + + api9115Rep.save(data); + return null; + } + + /** + * api9115PR#pushData + * + * @param items + */ + @Expose + public String pushData(List<Api9115> items) { + + //鑾峰彇閰嶇疆 + String kqdm = items.get(0).getKqdm(); + ApiConfs apiConf = apiCommonService.getConf(kqdm); + + if (null == apiConf) { + return "绯荤粺娌℃湁鑾峰彇鍒板綋鍓嶅簱鍖洪厤缃俊鎭紝鎵ц澶辫触"; + } + + //鑾峰彇瀹炵幇鎺ュ彛 + ApiRemoteService apiRemoteService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol()); + if (null == apiRemoteService) { + return "绯荤粺娌℃湁褰撳墠鎺ㄩ�佸崗璁厤缃紝鎵ц澶辫触"; + } + + return pushDataSingle(items, apiRemoteService, apiConf); + } + + /** + * 鍗曟潯鏁版嵁json鎺ㄩ�� + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataSingle(List<Api9115> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + ResponseDto responseDto; + String result = ""; + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_9115); + + Api9115 d; + for (Api9115 data : items) { + d = new Api9115(); + BeanUtils.copyProperties(data, d); + param.setBizId(data.getBizId()); + responseDto = apiRemoteService.pushData(param, apiConf, d); + + result += responseDto.toString(); + if (responseDto.getSuccess() == 0) { + if (Constant.CZBZ_I.equals(d.getCzbz())) { + api9115Rep.updateStatus(data.getRkjydh(), Constant.CZBZ_U); + } + } + } + return result; + } + + /** + * 闆嗗悎褰㈠紡鎺ㄩ�� + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataList(List<Api9115> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_9115); + + + //鎺ㄩ�侊紝鏁版嵁涓洪泦鍚堝舰寮� + ResponseDto responseDto = apiRemoteService.pushData(param, apiConf, items); + if (responseDto.getSuccess() == 0) { + //鎺ㄩ�佹垚鍔燂紝鏇存柊鏁版嵁涓婁紶鐘舵�� + for (Api9115 data : items) { + if (Constant.CZBZ_I.equals(data.getCzbz())) { + //鏇存柊鐘舵�� + api9115Rep.updateStatus(data.getRkjydh(), Constant.CZBZ_U); + } + } + } + + return responseDto.toString(); + } + +} diff --git a/src/main/java/com/fzzy/api/view/pr/Api9116PR.java b/src/main/java/com/fzzy/api/view/pr/Api9116PR.java new file mode 100644 index 0000000..745ec65 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/pr/Api9116PR.java @@ -0,0 +1,247 @@ +package com.fzzy.api.view.pr; + +import com.bstek.dorado.annotation.DataProvider; +import com.bstek.dorado.annotation.DataResolver; +import com.bstek.dorado.annotation.Expose; +import com.bstek.dorado.data.provider.Page; +import com.fzzy.api.Constant; +import com.fzzy.api.data.ApiParam; +import com.fzzy.api.dto.ResponseDto; +import com.fzzy.api.entity.Api9116; +import com.fzzy.api.entity.Api9116; +import com.fzzy.api.entity.ApiConfs; +import com.fzzy.api.service.ApiCommonService; +import com.fzzy.api.service.ApiPushManager; +import com.fzzy.api.service.ApiRemoteService; +import com.fzzy.api.utils.ContextUtil; +import com.fzzy.api.view.repository.Api9116Rep; +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.data.domain.PageRequest; +import org.springframework.data.domain.Pageable; +import org.springframework.data.domain.Sort; +import org.springframework.data.jpa.domain.Specification; +import org.springframework.stereotype.Component; + +import javax.persistence.criteria.CriteriaBuilder; +import javax.persistence.criteria.CriteriaQuery; +import javax.persistence.criteria.Predicate; +import javax.persistence.criteria.Root; +import java.util.ArrayList; +import java.util.List; + +/** + * 鏀剁撼搴撲俊鎭� + * + * @author czt + */ +@Slf4j +@Component +public class Api9116PR { + + @Autowired + private Api9116Rep api9116Rep; + + @Autowired + private ApiCommonService apiCommonService; + + @Autowired + private ApiPushManager apiPushManager; + + /** + * Api9116PR#pageList + * + * @return + */ + @DataProvider + public void pageList(Page<Api9116> page, ApiParam param) { + + //澶氬弬鏁板垎椤垫煡璇� + Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, Api9116.SORT_PROP); + + if (null == param) { + org.springframework.data.domain.Page<Api9116> japPage = api9116Rep.findAll(pageable); + page.setEntityCount((int) japPage.getTotalElements()); + page.setEntities(japPage.getContent()); + + return; + } + + Specification<Api9116> specification = new Specification<Api9116>() { + private static final long serialVersionUID = 1L; + + public Predicate toPredicate(Root<Api9116> root, CriteriaQuery<?> query, CriteriaBuilder cb) { + List<Predicate> predicates = new ArrayList<>(); //鎵�鏈夌殑鏂█ + + if (StringUtils.isNotBlank(param.getKqdm())) { + Predicate predicate1 = cb.equal(root.get("kqdm"), param.getKqdm()); + predicates.add(predicate1); + } + + if (StringUtils.isNotBlank(param.getCzbz())) { + Predicate predicate2 = cb.equal(root.get("czbz"), param.getCzbz()); + predicates.add(predicate2); + } + if (null != param.getStart()) { + Predicate predicate3 = cb.greaterThan(root.get("ywrq"), ContextUtil.getCurZero(param.getStart())); + predicates.add(predicate3); + } + + if (null != param.getEnd()) { + Predicate predicate4 = cb.lessThan(root.get("ywrq"), ContextUtil.getNextZero(param.getEnd())); + predicates.add(predicate4); + } + return cb.and(predicates.toArray(new Predicate[0])); + } + }; + + log.debug("---------鍒嗛〉鍙傛暟鏌ヨ----------{}", param.toString()); + org.springframework.data.domain.Page<Api9116> japPage = api9116Rep.findAll(specification, pageable); + page.setEntityCount((int) japPage.getTotalElements()); + page.setEntities(japPage.getContent()); + } + + /** + * api9116PR#listAll + * + * @return + */ + @DataProvider + public List<Api9116> listAll() { + return api9116Rep.findAll(); + } + + /** + * api9116PR#updateSave + * + * @param entity + */ + @DataResolver + public void updateSave(Api9116 entity) { + + // 鎵嬪姩灏哾oradoEntity瀵硅薄杞崲涓烘爣鍑咮ean瀵硅薄 + Api9116 data = new Api9116(); + BeanUtils.copyProperties(entity, data); + + data.setKqdm(data.getKqdm().trim()); + + api9116Rep.save(data); + } + + /** + * api9116PR#delData + * + * @param data + */ + @Expose + public String delData(Api9116 data) { + + api9116Rep.deleteById(data.getDwdm()); + + return null; + } + + /** + * 鏇存柊鍒犻櫎鏍囪 api9116PR#delUpdate + * + * @param entity + */ + @Expose + public String delUpdate(Api9116 entity) { + + entity.setCzbz(Constant.CZBZ_D); + + Api9116 data = new Api9116(); + BeanUtils.copyProperties(entity, data); + + api9116Rep.save(data); + return null; + } + + /** + * api9116PR#pushData + * + * @param items + */ + @Expose + public String pushData(List<Api9116> items) { + + //鑾峰彇閰嶇疆 + String kqdm = items.get(0).getKqdm(); + ApiConfs apiConf = apiCommonService.getConf(kqdm); + + if (null == apiConf) { + return "绯荤粺娌℃湁鑾峰彇鍒板綋鍓嶅簱鍖洪厤缃俊鎭紝鎵ц澶辫触"; + } + + //鑾峰彇瀹炵幇鎺ュ彛 + ApiRemoteService apiRemoteService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol()); + if (null == apiRemoteService) { + return "绯荤粺娌℃湁褰撳墠鎺ㄩ�佸崗璁厤缃紝鎵ц澶辫触"; + } + + return pushDataSingle(items, apiRemoteService, apiConf); + } + + /** + * 鍗曟潯鏁版嵁json鎺ㄩ�� + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataSingle(List<Api9116> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + ResponseDto responseDto; + String result = ""; + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_9116); + + Api9116 d; + for (Api9116 data : items) { + d = new Api9116(); + BeanUtils.copyProperties(data, d); + param.setBizId(data.getBizId()); + responseDto = apiRemoteService.pushData(param, apiConf, d); + + result += responseDto.toString(); + if (responseDto.getSuccess() == 0) { + if (Constant.CZBZ_I.equals(d.getCzbz())) { + api9116Rep.updateStatus(data.getDwdm(), data.getSgnd(), data.getSlqj(), Constant.CZBZ_U); + } + } + } + return result; + } + + /** + * 闆嗗悎褰㈠紡鎺ㄩ�� + * @param items + * @param apiRemoteService + * @param apiConf + * @return + */ + private String pushDataList(List<Api9116> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) { + + //灏佽鍙傛暟 + ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_11, Constant.API_CODE_9116); + + + //鎺ㄩ�侊紝鏁版嵁涓洪泦鍚堝舰寮� + ResponseDto responseDto = apiRemoteService.pushData(param, apiConf, items); + if (responseDto.getSuccess() == 0) { + //鎺ㄩ�佹垚鍔燂紝鏇存柊鏁版嵁涓婁紶鐘舵�� + for (Api9116 data : items) { + if (Constant.CZBZ_I.equals(data.getCzbz())) { + //鏇存柊鐘舵�� + api9116Rep.updateStatus(data.getDwdm(), data.getSgnd(), data.getSlqj(), Constant.CZBZ_U); + } + } + } + + return responseDto.toString(); + } + +} diff --git a/src/main/java/com/fzzy/api/view/repository/Api9109Rep.java b/src/main/java/com/fzzy/api/view/repository/Api9109Rep.java new file mode 100644 index 0000000..dda78f3 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/repository/Api9109Rep.java @@ -0,0 +1,54 @@ +package com.fzzy.api.view.repository; + +import com.fzzy.api.entity.Api9109; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Modifying; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Date; +import java.util.List; + + +public interface Api9109Rep extends JpaRepository<Api9109, String> { + + /** + * 鏍规嵁琛ㄥ崟涓婚敭鏇存柊鎿嶄綔鏍囧織鐘舵�� + * + * @param dwdm 涓婚敭ID + * @param czbz 鎿嶄綔鏍囧織 + * @return + */ + @Transactional + @Modifying + @Query("update Api9109 set czbz =:czbz where dwdm =:dwdm ") + int updateStatus(@Param("dwdm") String dwdm, @Param("czbz") String czbz); + + /** + * 鍗曚綅淇℃伅 + * @param kqdm + * @return + */ + @Query("from Api9109 where kqdm =:kqdm ") + List<Api9109> findPushData(@Param("kqdm") String kqdm); + + /** + * 鍗曚綅淇℃伅 + * @param kqdm + * @return + */ + @Query("from Api9109 where kqdm =:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") + List<Api9109> getDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); + + /** + * 鍗曚綅淇℃伅 + * @param dwdm + * @return + */ + @Query("from Api9109 where dwdm =:dwdm ") + List<Api9109> findDataByDwdm(@Param("dwdm") String dwdm); + + @Query("from Api9109 where dwdm =:dwdm ") + Api9109 findData(@Param("dwdm") String dwdm); +} diff --git a/src/main/java/com/fzzy/api/view/repository/Api9110Rep.java b/src/main/java/com/fzzy/api/view/repository/Api9110Rep.java new file mode 100644 index 0000000..27ca50f --- /dev/null +++ b/src/main/java/com/fzzy/api/view/repository/Api9110Rep.java @@ -0,0 +1,54 @@ +package com.fzzy.api.view.repository; + +import com.fzzy.api.entity.Api9110; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Modifying; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Date; +import java.util.List; + + +public interface Api9110Rep extends JpaRepository<Api9110, String> { + + /** + * 鏍规嵁琛ㄥ崟涓婚敭鏇存柊鎿嶄綔鏍囧織鐘舵�� + * + * @param id 涓婚敭ID + * @param czbz 鎿嶄綔鏍囧織 + * @return + */ + @Transactional + @Modifying + @Query("update Api9110 set czbz =:czbz where kqdm =:id ") + int updateStatus(@Param("id") String id, @Param("czbz") String czbz); + + /** + * 鍗曚綅淇℃伅 + * @param kqdm + * @return + */ + @Query("from Api9110 where kqdm =:kqdm ") + List<Api9110> findPushData(@Param("kqdm") String kqdm); + + /** + * 鍗曚綅淇℃伅 + * @param kqdm + * @return + */ + @Query("from Api9110 where kqdm =:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") + List<Api9110> getDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); + + /** + * 鍗曚綅淇℃伅 + * @param dwdm + * @return + */ + @Query("from Api9110 where dwdm =:dwdm ") + List<Api9110> findDataByDwdm(@Param("dwdm") String dwdm); + + @Query("from Api9110 where dwdm =:dwdm ") + Api9110 findData(@Param("dwdm") String dwdm); +} diff --git a/src/main/java/com/fzzy/api/view/repository/Api9111Rep.java b/src/main/java/com/fzzy/api/view/repository/Api9111Rep.java new file mode 100644 index 0000000..c55bf3a --- /dev/null +++ b/src/main/java/com/fzzy/api/view/repository/Api9111Rep.java @@ -0,0 +1,51 @@ +package com.fzzy.api.view.repository; + +import com.fzzy.api.entity.Api9111; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Modifying; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Date; +import java.util.List; + + +public interface Api9111Rep extends JpaRepository<Api9111, String> { + + /** + * 鏍规嵁琛ㄥ崟涓婚敭鏇存柊鎿嶄綔鏍囧織鐘舵�� + * + * @param id 涓婚敭ID + * @param czbz 鎿嶄綔鏍囧織 + * @return + */ + @Transactional + @Modifying + @Query("update Api9111 set czbz =:czbz where cfdm =:id ") + int updateStatus(@Param("id") String id, @Param("czbz") String czbz); + + /** + * 鍗曚綅淇℃伅 + * @param kqdm + * @return + */ + @Query("from Api9111 where kqdm =:kqdm ") + List<Api9111> findPushData(@Param("kqdm") String kqdm); + + /** + * 鏍规嵁浠撴埧浠g爜鏌ヨ + * @param kqdm + * @return + */ + @Query("from Api9111 where kqdm =:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") + List<Api9111> getDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); + + /** + * 鏍规嵁浠撴埧浠g爜鏌ヨ + * @param cfdm + * @return + */ + @Query("from Api9111 where cfdm =:cfdm ") + Api9111 findData(@Param("cfdm") String cfdm); +} diff --git a/src/main/java/com/fzzy/api/view/repository/Api9112Rep.java b/src/main/java/com/fzzy/api/view/repository/Api9112Rep.java new file mode 100644 index 0000000..4e7e59e --- /dev/null +++ b/src/main/java/com/fzzy/api/view/repository/Api9112Rep.java @@ -0,0 +1,54 @@ +package com.fzzy.api.view.repository; + +import com.fzzy.api.entity.Api9112; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Modifying; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Date; +import java.util.List; + + +public interface Api9112Rep extends JpaRepository<Api9112, String> { + + /** + * 鏍规嵁琛ㄥ崟涓婚敭鏇存柊鎿嶄綔鏍囧織鐘舵�� + * + * @param id 涓婚敭ID + * @param czbz 鎿嶄綔鏍囧織 + * @return + */ + @Transactional + @Modifying + @Query("update Api9112 set czbz =:czbz where ajdm =:id ") + int updateStatus(@Param("id") String id, @Param("czbz") String czbz); + + /** + * 鍗曚綅淇℃伅 + * @param kqdm + * @return + */ + @Query("from Api9112 where kqdm =:kqdm ") + List<Api9112> findPushData(@Param("kqdm") String kqdm); + + /** + * 鍗曚綅淇℃伅 + * @param kqdm + * @return + */ + @Query("from Api9112 where kqdm =:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") + List<Api9112> getDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); + + /** + * 鍗曚綅淇℃伅 + * @param cfdm + * @return + */ + @Query("from Api9112 where cfdm =:cfdm ") + List<Api9112> findDataByCfbm(@Param("cfdm") String cfdm); + + @Query("from Api9112 where ajdm =:ajdm ") + Api9112 findData(@Param("ajdm") String ajdm); +} diff --git a/src/main/java/com/fzzy/api/view/repository/Api9113Rep.java b/src/main/java/com/fzzy/api/view/repository/Api9113Rep.java new file mode 100644 index 0000000..3ab6153 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/repository/Api9113Rep.java @@ -0,0 +1,47 @@ +package com.fzzy.api.view.repository; + +import com.fzzy.api.entity.Api9113; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Modifying; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Date; +import java.util.List; + + +public interface Api9113Rep extends JpaRepository<Api9113, String> { + + /** + * 鏍规嵁琛ㄥ崟涓婚敭鏇存柊鎿嶄綔鏍囧織鐘舵�� + * + * @param id 涓婚敭ID + * @param czbz 鎿嶄綔鏍囧織 + * @return + */ + @Transactional + @Modifying + @Query("update Api9113 set czbz =:czbz where hwdm =:id ") + int updateStatus(@Param("id") String id, @Param("czbz") String czbz); + + /** + * 鍗曚綅淇℃伅 + * @param kqdm + * @return + */ + @Query("from Api9113 where kqdm =:kqdm ") + List<Api9113> findPushData(@Param("kqdm") String kqdm); + + /** + * 鍗曚綅淇℃伅 + * @param kqdm + * @return + */ + @Query("from Api9113 where kqdm =:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") + List<Api9113> getDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); + + + @Query("from Api9113 where hwdm =:hwdm ") + Api9113 findData(@Param("hwdm") String hwdm); +} diff --git a/src/main/java/com/fzzy/api/view/repository/Api9114Rep.java b/src/main/java/com/fzzy/api/view/repository/Api9114Rep.java new file mode 100644 index 0000000..8a36b62 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/repository/Api9114Rep.java @@ -0,0 +1,52 @@ +package com.fzzy.api.view.repository; + +import com.fzzy.api.entity.Api1202; +import com.fzzy.api.entity.Api9114; +import org.springframework.data.domain.Page; +import org.springframework.data.domain.Pageable; +import org.springframework.data.jpa.domain.Specification; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.JpaSpecificationExecutor; +import org.springframework.data.jpa.repository.Modifying; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Date; +import java.util.List; + + +public interface Api9114Rep extends JpaRepository<Api9114, String>, JpaSpecificationExecutor<Api9114> { + + /** + * 鏍规嵁琛ㄥ崟涓婚敭鏇存柊鎿嶄綔鏍囧織鐘舵�� + * + * @param rkywdh 鍏ュ簱涔熶换鍔″崟鍙� + * @param czbz 鎿嶄綔鏍囧織 + * @return + */ + @Transactional + @Modifying + @Query("update Api9114 set czbz =:czbz where rkywdh =:rkywdh ") + int updateStatus(@Param("rkywdh") String rkywdh, @Param("czbz") String czbz); + + /** + * + * @param kqdm + * @return + */ + @Query("from Api9114 where kqdm =:kqdm ") + List<Api9114> findPushData(@Param("kqdm") String kqdm); + + /** + * 鍗曚綅淇℃伅 + * @param kqdm + * @return + */ + @Query("from Api9114 where kqdm =:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") + List<Api9114> getDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); + + @Query("from Api9114 where rkywdh =:rkywdh ") + Api9114 findData(@Param("rkywdh") String rkywdh); + +} diff --git a/src/main/java/com/fzzy/api/view/repository/Api9115Rep.java b/src/main/java/com/fzzy/api/view/repository/Api9115Rep.java new file mode 100644 index 0000000..c6768e9 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/repository/Api9115Rep.java @@ -0,0 +1,40 @@ +package com.fzzy.api.view.repository; + +import com.fzzy.api.entity.Api1203; +import com.fzzy.api.entity.Api9115; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.JpaSpecificationExecutor; +import org.springframework.data.jpa.repository.Modifying; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Date; +import java.util.List; + + +public interface Api9115Rep extends JpaRepository<Api9115, String>, JpaSpecificationExecutor<Api9115> { + + /** + * 鏍规嵁琛ㄥ崟涓婚敭鏇存柊鎿嶄綔鏍囧織鐘舵�� + */ + @Transactional + @Modifying + @Query("update Api9115 set czbz =:czbz where rkjydh =:rkjydh ") + int updateStatus(@Param("rkjydh") String rkjydh, @Param("czbz") String czbz); + + /** + * + */ + @Query("from Api9115 where kqdm =:kqdm ") + List<Api9115> findPushData(@Param("kqdm") String kqdm); + + /** + * 鍗曚綅淇℃伅 + * @param kqdm + * @return + */ + @Query("from Api9115 where kqdm =:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") + List<Api9115> getDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); + +} diff --git a/src/main/java/com/fzzy/api/view/repository/Api9116Rep.java b/src/main/java/com/fzzy/api/view/repository/Api9116Rep.java new file mode 100644 index 0000000..9945fe0 --- /dev/null +++ b/src/main/java/com/fzzy/api/view/repository/Api9116Rep.java @@ -0,0 +1,56 @@ +package com.fzzy.api.view.repository; + +import com.fzzy.api.entity.Api9115; +import com.fzzy.api.entity.Api9116; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.JpaSpecificationExecutor; +import org.springframework.data.jpa.repository.Modifying; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Date; +import java.util.List; + + +public interface Api9116Rep extends JpaRepository<Api9116, String>, JpaSpecificationExecutor<Api9116> { + + /** + * 鏍规嵁琛ㄥ崟涓婚敭鏇存柊鎿嶄綔鏍囧織鐘舵�� + * + * @param dwdm 涓婚敭ID + * @param czbz 鎿嶄綔鏍囧織 + * @return + */ + @Transactional + @Modifying + @Query("update Api9116 set czbz =:czbz where dwdm =:dwdm and sgnd=:sgnd and slqj=:slqj ") + int updateStatus(@Param("dwdm") String dwdm, @Param("sgnd") String sgnd, @Param("slqj") String slqj, @Param("czbz") String czbz); + + /** + * 鍗曚綅淇℃伅 + * @param kqdm + * @return + */ + @Query("from Api9116 where kqdm =:kqdm ") + List<Api9116> findPushData(@Param("kqdm") String kqdm); + + /** + * 鍗曚綅淇℃伅 + * @param kqdm + * @return + */ + @Query("from Api9116 where kqdm =:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") + List<Api9116> getDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); + + /** + * 鍗曚綅淇℃伅 + * @param dwdm + * @return + */ + @Query("from Api9116 where dwdm =:dwdm ") + List<Api9116> findDataByDwdm(@Param("dwdm") String dwdm); + + @Query("from Api9116 where dwdm =:dwdm ") + Api9116 findData(@Param("dwdm") String dwdm); +} diff --git a/src/main/java/com/fzzy/inte/sh2023/constant/ApiRespCode.java b/src/main/java/com/fzzy/inte/sh2023/constant/ApiRespCode.java new file mode 100644 index 0000000..696e748 --- /dev/null +++ b/src/main/java/com/fzzy/inte/sh2023/constant/ApiRespCode.java @@ -0,0 +1,59 @@ +package com.fzzy.inte.sh2023.constant; + +/** + * @Desc: 鎺ュ彛杩斿洖缂栫爜鏋氫妇锛屾牴鎹浗鏍�78鍙锋枃浠舵暣鐞� + * @author: andy.jia + * @update-time: 2023/3/8 17:25 + */ + +public enum ApiRespCode { + + R_200("200", "璇锋眰鎴愬姛"), + R_500("500", "璇锋眰寮傚父"), + R_888("888", "绮簱淇℃伅绯荤粺闇�瑕佷笂浼犳暟鎹�"), + R_40101("40101","璇锋眰鎺ュ彛鍦板潃閿欒"), + R_40102("40102","鏁版嵁楠岀澶辫触"), + R_40103("40103","鏁版嵁瑙e瘑澶辫触" ), + R_40104("40104","鏁版嵁绫诲瀷杞崲閿欒"), + R_40105("40105", "鏁版嵁鏉℃暟瓒呰繃鏈�澶ч檺鍒�"), + R_40106("40106","鏁版嵁鎽樿姣斿澶辫触" ), + R_40201("40201","璇锋眰鍙傛暟閿欒"), + R_40202("40202","涓婁紶鐨勬暟鎹瓧娈典笌瀹為檯鎺ュ彛鐨勫瓧娈典釜鏁颁笉涓�鑷�"), + R_40203("40203","璇锋眰鏁版嵁缂哄皯瀛楁" ), + R_40204("40204","鏁版嵁鏍¢獙閿欒" ), + R_40301("40301","鎸囦护涓嬪彂澶辫触" ), + R_40401("40401", "鏆傛棤姝ゆ帴鍙�"), + R_40402("40402","鏃犳潈闄�" ), + R_40403("40403","淇℃伅涓嶅瓨鍦�" ), + R_40500("40500", "鍏朵粬鏈煡閿欒"), + R_40501("40501","鏃犳潈闄愯闂鎺ュ彛" ), + R_40502("40502", "鏁版嵁搴撲俊鎭笉瀛樺湪"), + R_40503("40503", "鏈嶅姟鎺ュ彛宸蹭笅绾�"), + R_40504("40504","璁块棶娆℃暟瓒呰繃鏈�澶ч檺鍒�"); + + + private String code; + + private String msg; + + ApiRespCode(String code, String msg) { + this.code = code; + this.msg = msg; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } +} diff --git a/src/main/java/com/fzzy/inte/sh2023/controller/ControllerSh2023.java b/src/main/java/com/fzzy/inte/sh2023/controller/ControllerSh2023.java new file mode 100644 index 0000000..01fdb0b --- /dev/null +++ b/src/main/java/com/fzzy/inte/sh2023/controller/ControllerSh2023.java @@ -0,0 +1,59 @@ +package com.fzzy.inte.sh2023.controller; + +import com.alibaba.fastjson.JSONObject; +import com.fzzy.api.entity.Api9109; +import com.fzzy.api.utils.RSAUtils; +import com.fzzy.inte.sh2023.constant.ApiRespCode; +import com.fzzy.inte.sh2023.dto.ApiResp; +import com.fzzy.inte.sh2023.dto.SHDN2023ReqDto; +import com.fzzy.inte.sh2023.service.SHDNService; +import com.fzzy.push.sh2023.SH2023Constant; +import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; + +import javax.servlet.http.HttpServletRequest; +import java.util.List; + +/** + * 涓婃捣瀵瑰啘鎺ュ彛 + */ +@Slf4j +@Controller +@RequestMapping("/dnjgsj/v1") +public class ControllerSh2023 { + @Autowired + private SHDNService shdnService; + + private static final String PRIVATE_KEY = "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAJGxqYyI/k6nYkm2nf4ggkAMViEvbnplbQqw6Qweu4neFXCC+iKY8cq5RZEj8JLfrm/gHBTPN8FF1sQIwWwsDV7UUc88DS5KwAi5JXBHMdcbh2tftkINr0YVn6rIgUBTbmPZ7Y8L2iW8psYsF9nxwvUUtcbFJXIMJfi39Qxl0NQvAgMBAAECgYBKWLHfoCy9sFbMrN7UxnwQ+PqetpiW5tkNApf58ljbErQ4FO5V51xDieXBGejy2igmuOM7jz6xZtUgdiNV8uji/RtiNRqsBekVBPMeYAnPwA4GQ0HNwyHJ3ebJNQqT9bwrk8QpRUuCnrx/U1l7P1QNR5o52H1HpEKPlS0ga0fuQQJBAMdiSFYKt8/PwsYclvU/GqXrPy4cxMBhtE/ZssH9KourxnJcyfRz7EPgfSZykxlGHn8j/r8C2XxtAIYW6mRckqECQQC7EIZCZ3eV8abSIB33oKmw2jZlPQrHXMt8DWz8FYbNIA/9bvk9e9O42iQwMUtHfOMcNMWbcvKR/J+83bcE08TPAkA1ErdYl+/H1HDvVUrlq0+HnPArcSL6ZsedfcB0nNRHa4kehg6IEJdylf4aTuNTFfQmOcmkxLhpw4YhK1ZnMrEhAkEAuiMLNXA3MmCumk+TAiBAOdYoYjyHSTEw2VOSqpPQ+rN4tbmDEIbyefG2KK4kNhIy+pIYP0H11QYG/KuxvX/rSQJBALs0TqUgcGOp9+IkOq4jCXiVkP5/r7JWinQ4d6bYhJ4wspQYloYFCHljKKXtst1m8I3PC+vJY8R6va/3xtQKT8U="; + private static final String SIGN = "JD-DNSGSJ"; + private static final String DEPT_ID = "5303_003"; + + @RequestMapping("/{interfaceId}") + public @ResponseBody + ApiResp dnjgsj(HttpServletRequest request, @PathVariable("interfaceId") String interfaceId, @RequestBody String dataStr) { + + //瑙e瘑鎶ユ枃 + dataStr = RSAUtils.decrypt(dataStr, PRIVATE_KEY); + + if(StringUtils.isBlank(interfaceId) || StringUtils.isBlank(dataStr)){ + return new ApiResp(ApiRespCode.R_500.getCode(),ApiRespCode.R_500.getMsg()); + } + + SHDN2023ReqDto shdn2023ReqDto = JSONObject.parseObject(dataStr, SHDN2023ReqDto.class); + + if(!shdn2023ReqDto.getSign().equals(SIGN) || !shdn2023ReqDto.getDeptId().equals(DEPT_ID)) { + return new ApiResp(ApiRespCode.R_500.getCode(),ApiRespCode.R_500.getMsg()); + } + + //寮傛淇濆瓨 + shdnService.syncData(interfaceId, shdn2023ReqDto.getData()); + + return new ApiResp(); + } +} diff --git a/src/main/java/com/fzzy/inte/sh2023/dto/ApiResp.java b/src/main/java/com/fzzy/inte/sh2023/dto/ApiResp.java new file mode 100644 index 0000000..ac63186 --- /dev/null +++ b/src/main/java/com/fzzy/inte/sh2023/dto/ApiResp.java @@ -0,0 +1,30 @@ +package com.fzzy.inte.sh2023.dto; + +import com.fzzy.inte.sh2023.constant.ApiRespCode; +import lombok.Data; + +/** + * @Desc: 鎺ュ彛杩斿洖瀵硅薄锛屾殏瀹� + * @author: andy.jia + * @update-time: 2023/3/7 19:15 + */ +@Data +public class ApiResp { + + private String code = ApiRespCode.R_200.getCode(); + + private String msg = ApiRespCode.R_200.getMsg(); + + public ApiResp() { + } + + public ApiResp(String code, String msg) { + this.code = code; + this.msg = msg; + } + + public ApiResp(ApiRespCode apiRespCode) { + this.code = apiRespCode.getCode(); + this.msg = apiRespCode.getMsg(); + } +} diff --git a/src/main/java/com/fzzy/inte/sh2023/dto/SHDN2023ReqDto.java b/src/main/java/com/fzzy/inte/sh2023/dto/SHDN2023ReqDto.java new file mode 100644 index 0000000..ebe67c5 --- /dev/null +++ b/src/main/java/com/fzzy/inte/sh2023/dto/SHDN2023ReqDto.java @@ -0,0 +1,21 @@ +package com.fzzy.inte.sh2023.dto; + +import lombok.Data; + +import java.util.List; + +/** + * 涓婃捣瀵瑰啘-鍙傛暟 + */ +@Data +public class SHDN2023ReqDto<T> { + + private String sign; + + private String deptId; + + private String reqDate; + + private String data; + +} diff --git a/src/main/java/com/fzzy/inte/sh2023/service/SHDNService.java b/src/main/java/com/fzzy/inte/sh2023/service/SHDNService.java new file mode 100644 index 0000000..a4c9d67 --- /dev/null +++ b/src/main/java/com/fzzy/inte/sh2023/service/SHDNService.java @@ -0,0 +1,93 @@ +package com.fzzy.inte.sh2023.service; + +import com.alibaba.fastjson.JSONObject; +import com.fzzy.api.entity.*; +import com.fzzy.api.view.repository.*; +import com.fzzy.inte.sh2023.dto.SHDN2023ReqDto; +import com.fzzy.push.sh2023.SH2023Constant; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.scheduling.annotation.Async; +import org.springframework.stereotype.Component; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.List; + +@Slf4j +@Service +public class SHDNService { + + @Autowired + private Api9109Rep api9109Rep; + @Autowired + private Api9110Rep api9110Rep; + @Autowired + private Api9111Rep api9111Rep; + @Autowired + private Api9112Rep api9112Rep; + @Autowired + private Api9113Rep api9113Rep; + @Autowired + private Api9114Rep api9114Rep; + @Autowired + private Api9115Rep api9115Rep; + @Autowired + private Api9116Rep api9116Rep; + + + @Async + public void syncData(String interfaceId, String dataStr){ + + + //鍗曚綅淇℃伅 + if(SH2023Constant.SH_2023_API_CODE_3101.equals(interfaceId)){ + List<Api9109> list = JSONObject.parseArray(dataStr, Api9109.class); + api9109Rep.saveAll(list); + } + + //鏀剁撼搴撲俊鎭� + if(SH2023Constant.SH_2023_API_CODE_3102.equals(interfaceId)){ + List<Api9110> list = JSONObject.parseArray(dataStr, Api9110.class); + api9110Rep.saveAll(list); + } + + //浠撴埧淇℃伅 + if(SH2023Constant.SH_2023_API_CODE_3103.equals(interfaceId)){ + List<Api9111> list = JSONObject.parseArray(dataStr, Api9111.class); + api9111Rep.saveAll(list); + } + + //寤掗棿淇℃伅 + if(SH2023Constant.SH_2023_API_CODE_3104.equals(interfaceId)){ + List<Api9112> list = JSONObject.parseArray(dataStr, Api9112.class); + api9112Rep.saveAll(list); + } + + //璐т綅淇℃伅 + if(SH2023Constant.SH_2023_API_CODE_3105.equals(interfaceId)){ + List<Api9113> list = JSONObject.parseArray(dataStr, Api9113.class); + api9113Rep.saveAll(list); + } + + //绮鍏ュ簱淇℃伅 + if(SH2023Constant.SH_2023_API_CODE_3106.equals(interfaceId)){ + List<Api9114> list = JSONObject.parseArray(dataStr, Api9114.class); + api9114Rep.saveAll(list); + } + + //鏉ョ伯妫�楠屼俊鎭� + if(SH2023Constant.SH_2023_API_CODE_3107.equals(interfaceId)){ + List<Api9115> list = JSONObject.parseArray(dataStr, Api9115.class); + api9115Rep.saveAll(list); + } + + //绮鏀惰喘鍩虹淇℃伅 + if(SH2023Constant.SH_2023_API_CODE_3108.equals(interfaceId)){ + List<Api9116> list = JSONObject.parseArray(dataStr, Api9116.class); + api9116Rep.saveAll(list); + } + + + } +} diff --git a/src/main/java/com/fzzy/push/sh2023/SH2023Constant.java b/src/main/java/com/fzzy/push/sh2023/SH2023Constant.java index 70ca851..c601691 100644 --- a/src/main/java/com/fzzy/push/sh2023/SH2023Constant.java +++ b/src/main/java/com/fzzy/push/sh2023/SH2023Constant.java @@ -225,4 +225,39 @@ public static String SH_2023_API_CODE_2204 = "2204"; + /** + * 鎺ュ彛缂栫爜-3101 鍗曚綅淇℃伅 + */ + public static String SH_2023_API_CODE_3101 = "3101"; + /** + * 鎺ュ彛缂栫爜-3102 鏀剁撼搴撲俊鎭� + */ + public static String SH_2023_API_CODE_3102 = "3102"; + /** + * 鎺ュ彛缂栫爜-3103 浠撴埧淇℃伅 + */ + public static String SH_2023_API_CODE_3103 = "3103"; + /** + * 鎺ュ彛缂栫爜-3104 寤掗棿淇℃伅 + */ + public static String SH_2023_API_CODE_3104 = "3104"; + /** + * 鎺ュ彛缂栫爜-3105 璐т綅淇℃伅 + */ + public static String SH_2023_API_CODE_3105 = "3105"; + /** + * 鎺ュ彛缂栫爜-3106 绮鍏ュ簱淇℃伅 + */ + public static String SH_2023_API_CODE_3106 = "3106"; + /** + * 鎺ュ彛缂栫爜-3107 鏉ョ伯妫�楠屼俊鎭� + */ + public static String SH_2023_API_CODE_3107 = "3107"; + /** + * 鎺ュ彛缂栫爜-3108 绮鏀惰喘鍩虹淇℃伅 + */ + public static String SH_2023_API_CODE_3108 = "3108"; + + + } -- Gitblit v1.9.3