ws
2024-11-23 a543f48b1a3d0d4ca21859590defc5fe8087e652
提交-上海对农接口
已修改2个文件
已添加37个文件
6997 ■■■■■ 文件已修改
src/main/java/com/fzzy/api/Constant.java 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/entity/Api9109.java 123 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/entity/Api9110.java 97 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/entity/Api9111.java 71 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/entity/Api9112.java 81 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/entity/Api9113.java 72 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/entity/Api9114.java 265 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/entity/Api9115.java 101 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/entity/Api9116.java 129 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/Api9109.view.xml 557 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/Api9110.view.xml 449 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/Api9111.view.xml 307 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/Api9112.view.xml 324 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/Api9113.view.xml 297 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/Api9114.view.xml 853 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/Api9115.view.xml 440 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/Api9116.view.xml 473 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/pr/Api9109PR.java 180 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/pr/Api9110PR.java 179 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/pr/Api9111PR.java 179 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/pr/Api9112PR.java 179 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/pr/Api9113PR.java 179 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/pr/Api9114PR.java 245 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/pr/Api9115PR.java 248 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/pr/Api9116PR.java 247 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/repository/Api9109Rep.java 54 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/repository/Api9110Rep.java 54 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/repository/Api9111Rep.java 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/repository/Api9112Rep.java 54 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/repository/Api9113Rep.java 47 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/repository/Api9114Rep.java 52 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/repository/Api9115Rep.java 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/repository/Api9116Rep.java 56 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/inte/sh2023/constant/ApiRespCode.java 59 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/inte/sh2023/controller/ControllerSh2023.java 59 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/inte/sh2023/dto/ApiResp.java 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/inte/sh2023/dto/SHDN2023ReqDto.java 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/inte/sh2023/service/SHDNService.java 93 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/push/sh2023/SH2023Constant.java 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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";
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 = "单位代码")
    @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 = "法定代表人")
    @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 = "行政区划代码")
    @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 = "库区代码")
    @Column(name = "kqdm", length = 21)
    private String kqdm;
    @JSONField(serialize = false)
    @PropertyDef(label = "同步时间", description = "从粮库系统同步到接口管理中心的时间")
    @Column(name = "syncTime")
    private Date syncTime;
}
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 = "库区代码")
    @Column(name = "kqdm", length = 21)
    private String kqdm;
    @PropertyDef(label = "单位代码")
    @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 = "行政区划代码")
    @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:正常(默认) 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;
}
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 = "仓房代码" )
    @Column(name = "cfdm", length = 25)
    private String cfdm;
    @PropertyDef(label = "仓房名称" )
    @Column(name = "cfmc", length = 256)
    private String cfmc;
    @PropertyDef(label = "库区代码" )
    @Column(name = "kqdm", length = 21)
    private String kqdm;
    @PropertyDef(label = "仓房类型代码" )
    @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;
}
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 = "廒间代码")
    @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 = "仓房类型代码")
    @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 = "库区代码")
    @Column(name = "kqdm", length = 21)
    private String kqdm;
    @JSONField(serialize = false)
    @PropertyDef(label = "同步时间", description = "从粮库系统同步到接口管理中心的时间")
    @Column(name = "syncTime")
    private Date syncTime;
}
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 = "货位代码" )
    @Column(name = "hwdm", length = 30)
    private String hwdm;
    @PropertyDef(label = "货位名称" )
    @Column(name = "hwmc", length = 256)
    private String hwmc;
    @PropertyDef(label = "廒间代码" )
    @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 = "库区代码")
    @Column(name = "kqdm", length = 21)
    private String kqdm;
    @JSONField(serialize = false)
    @PropertyDef(label = "同步时间", description = "从粮库系统同步到接口管理中心的时间")
    @Column(name = "syncTime")
    private Date syncTime;
}
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 = "货位代码")
    @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 = "粮食品种代码")
    @Column(name = "lspzdm", length = 7)
    private String lspzdm;
    @PropertyDef(label = "粮食性质代码")
    @Column(name = "lsxzdm", length = 3)
    private String lsxzdm;
    @PropertyDef(label = "收获年度")
    @Column(name = "shnd", length = 4)
    private String shnd;
    @PropertyDef(label = "产地代码")
    @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 = "质检扣量(小计:公斤)")
    @Column(name = "zjklxj")
    private Double zjklxj;
    @PropertyDef(label = "其中:水分增扣量(公斤)")
    @Column(name = "qzsfzkl")
    private Double qzsfzkl;
    @PropertyDef(label = "其中:杂质增扣量(公斤)")
    @Column(name = "qzzzzkl")
    private Double qzzzzkl;
    @PropertyDef(label = "其中:不完善粒扣量(公斤)")
    @Column(name = "qzbwslkl")
    private Double qzbwslkl;
    @PropertyDef(label = "其中:互混扣量(公斤)")
    @Column(name = "qzhhkl")
    private Double qzhhkl;
    @PropertyDef(label = "其中:生霉粒扣量(公斤)")
    @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 = "其他扣量(公斤)")
    @Column(name = "qtkl")
    private Double qtkl;
    @PropertyDef(label = "扣量原因")
    @Column(name = "klyy", length = 512)
    private String klyy;
    @PropertyDef(label = "现场扣量(公斤)")
    @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 = "库区代码")
    @Column(name = "kqdm", length = 21)
    private String kqdm;
    @JSONField(serialize = false)
    @PropertyDef(label = "同步时间", description = "从粮库系统同步到接口管理中心的时间")
    @Column(name = "syncTime")
    private Date syncTime;
}
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 = "货位代码")
    @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 = "粮食品种代码")
    @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 = "库区代码")
    @Column(name = "kqdm", length = 21)
    private String kqdm;
    @JSONField(serialize = false)
    @PropertyDef(label = "同步时间", description = "从粮库系统同步到接口管理中心的时间")
    @Column(name = "syncTime")
    private Date syncTime;
}
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 = "单位代码")
    @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 = "库区代码")
    @Column(name = "kqdm", length = 21)
    private String kqdm;
    @JSONField(serialize = false)
    @PropertyDef(label = "同步时间", description = "从粮库系统同步到接口管理中心的时间")
    @Column(name = "syncTime")
    private Date syncTime;
}
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">单位代码</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">法定代表人</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">行政区划代码</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">库区代码</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">库区代码</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(&quot;#dsMain&quot;).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(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要修改的数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDelUpdate&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.set(&quot;czbz&quot;,&quot;d&quot;);&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要标记删除的数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.remove();&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要删除的数据!&quot;);&#xD;
}</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(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#xD;
}</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">//显示记录&#xD;
view.get(&quot;#iFrame&quot;).reload();&#xD;
view.get(&quot;#dialogLog&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#updateSave&quot;).execute(function(){&#xD;
    self.get(&quot;parent&quot;).hide();&#xD;
    view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
});&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
self.get(&quot;parent&quot;).hide();&#xD;
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(&quot;#key2.value&quot;);&#xD;
view.get(&quot;#dsGBArea&quot;).set(&quot;parameter&quot;,{key:key}).flushAsync();</ClientEvent>
            <Property name="iconClass">fa fa-search</Property>
            <Property name="caption">查询</Property>
          </Button>
          <Button>
            <ClientEvent name="onClick">var data = view.get(&quot;#dsGBArea.data:#&quot;);&#xD;
if (data) {&#xD;
    view.get(&quot;#cddGbArea&quot;).close(data.toJSON());&#xD;
}</ClientEvent>
            <Property name="caption">确定</Property>
            <Property name="iconClass">fa fa-check</Property>
          </Button>
        </Container>
        <DataGrid>
          <ClientEvent name="onDataRowDoubleClick">var data = view.get(&quot;#dsGBArea.data:#&quot;);&#xD;
if(data){&#xD;
    view.get(&quot;#cddGbArea&quot;).close(data.toJSON());&#xD;
}</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(&quot;parent&quot;).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>
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">库区代码</Property>
      </PropertyDef>
      <PropertyDef name="dwdm">
        <Property/>
        <Property name="label">单位代码</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">行政区划代码</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(&quot;#dsMain&quot;).flushAsync();&#xD;
</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(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要修改的数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDelUpdate&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.set(&quot;czbz&quot;,&quot;d&quot;);&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要标记删除的数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.remove();&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要删除的数据!&quot;);&#xD;
}&#xD;
&#xD;
</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(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#xD;
}</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#updateSave&quot;).execute(function(){&#xD;
    self.get(&quot;parent&quot;).hide();&#xD;
    view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
});</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
self.get(&quot;parent&quot;).hide();&#xD;
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(&quot;#key2.value&quot;);&#xD;
view.get(&quot;#dsGBArea&quot;).set(&quot;parameter&quot;,{key:key}).flushAsync();</ClientEvent>
            <Property name="iconClass">fa fa-search</Property>
            <Property name="caption">查询</Property>
          </Button>
          <Button>
            <ClientEvent name="onClick">var data = view.get(&quot;#dsGBArea.data:#&quot;);&#xD;
if (data) {&#xD;
    view.get(&quot;#cddGbArea&quot;).close(data.toJSON());&#xD;
}</ClientEvent>
            <Property name="caption">确定</Property>
            <Property name="iconClass">fa fa-check</Property>
          </Button>
        </Container>
        <DataGrid>
          <ClientEvent name="onDataRowDoubleClick">var data = view.get(&quot;#dsGBArea.data:#&quot;);&#xD;
if(data){&#xD;
    view.get(&quot;#cddGbArea&quot;).close(data.toJSON());&#xD;
}</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>
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">仓房代码</Property>
      </PropertyDef>
      <PropertyDef name="cfmc">
        <Property/>
        <Property name="label">仓房名称</Property>
      </PropertyDef>
      <PropertyDef name="kqdm">
        <Property/>
        <Property name="label">库区代码</Property>
      </PropertyDef>
      <PropertyDef name="cflxdm">
        <Property/>
        <Property name="label">仓房类型代码</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(&quot;#dsMain&quot;).flushAsync();&#xD;
</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(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要修改的数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDelUpdate&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.set(&quot;czbz&quot;,&quot;d&quot;);&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要标记删除的数据!&quot;);&#xD;
}&#xD;
&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.remove();&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要删除的数据!&quot;);&#xD;
}</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(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#xD;
}</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#updateSave&quot;).execute(function(){&#xD;
    self.get(&quot;parent&quot;).hide();&#xD;
    view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
});</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
self.get(&quot;parent&quot;).hide();&#xD;
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>
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">廒间代码</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">仓房类型代码</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">库区代码</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(&quot;#dsMain&quot;).flushAsync();&#xD;
</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(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要修改的数据!&quot;);&#xD;
}</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDelUpdate&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.set(&quot;czbz&quot;,&quot;d&quot;);&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要标记删除的数据!&quot;);&#xD;
}</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.remove();&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要删除的数据!&quot;);&#xD;
}&#xD;
&#xD;
</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(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#xD;
}</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
self.get(&quot;parent&quot;).hide();&#xD;
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>
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">货位代码</Property>
      </PropertyDef>
      <PropertyDef name="hwmc">
        <Property/>
        <Property name="label">货位名称</Property>
      </PropertyDef>
      <PropertyDef name="ajdm">
        <Property/>
        <Property name="label">廒间代码</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">库区代码</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(&quot;#dsMain&quot;).flushAsync();&#xD;
</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(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要修改的数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDelUpdate&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.set(&quot;czbz&quot;,&quot;d&quot;);&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要标记删除的数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.remove();&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要删除的数据!&quot;);&#xD;
}</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(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#xD;
}</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#updateSave&quot;).execute(function(){&#xD;
    self.get(&quot;parent&quot;).hide();&#xD;
    view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
});&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
self.get(&quot;parent&quot;).hide();&#xD;
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>
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">库区代码</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">货位代码</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">粮食品种代码</Property>
      </PropertyDef>
      <PropertyDef name="lsxzdm">
        <Property/>
        <Property name="label">粮食性质代码</Property>
      </PropertyDef>
      <PropertyDef name="shnd">
        <Property/>
        <Property name="label">收获年度</Property>
      </PropertyDef>
      <PropertyDef name="cddm">
        <Property/>
        <Property name="label">产地代码</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">质检扣量(小计:公斤)</Property>
      </PropertyDef>
      <PropertyDef name="qzsfzkl">
        <Property name="dataType">Double</Property>
        <Property name="label">其中:水分增扣量(公斤)</Property>
      </PropertyDef>
      <PropertyDef name="qzzzzkl">
        <Property name="dataType">Double</Property>
        <Property name="label">其中:杂质增扣量(公斤)</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">其中:生霉粒扣量(公斤)</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">其他扣量(公斤)</Property>
      </PropertyDef>
      <PropertyDef name="klyy">
        <Property/>
        <Property name="label">扣量原因</Property>
      </PropertyDef>
      <PropertyDef name="xckl">
        <Property name="dataType">Double</Property>
        <Property name="label">现场扣量(公斤)</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(&quot;apiTriggerService#trigger&quot;).getResult(&quot;CZBZ&quot;)}</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(&quot;#dsQuery&quot;).getData();&#xD;
view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,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(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#ajaxDelUpdate&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
    if(result){&#xD;
        $alert(result);&#xD;
    } else{&#xD;
        cur.set(&quot;czbz&quot;,&quot;d&quot;)&#xD;
    }&#xD;
});&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
    if(result){&#xD;
        $alert(result);&#xD;
    } else{&#xD;
        cur.remove();&#xD;
    }&#xD;
});&#xD;
</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(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
          $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选上报数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#updateSave&quot;).execute(function(){&#xD;
    self.get(&quot;parent&quot;).hide();&#xD;
});</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
self.get(&quot;parent&quot;).hide();&#xD;
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(&quot;#key2.value&quot;);&#xD;
view.get(&quot;#dsGBArea&quot;).set(&quot;parameter&quot;,{key:key}).flushAsync();</ClientEvent>
            <Property name="iconClass">fa fa-search</Property>
            <Property name="caption">查询</Property>
          </Button>
          <Button>
            <ClientEvent name="onClick">var data = view.get(&quot;#dsGBArea.data:#&quot;);&#xD;
if (data) {&#xD;
    view.get(&quot;#cddGbArea&quot;).close(data.toJSON());&#xD;
}</ClientEvent>
            <Property name="caption">确定</Property>
            <Property name="iconClass">fa fa-check</Property>
          </Button>
        </Container>
        <DataGrid>
          <ClientEvent name="onDataRowDoubleClick">var data = view.get(&quot;#dsGBArea.data:#&quot;);&#xD;
if(data){&#xD;
    view.get(&quot;#cddGbArea&quot;).close(data.toJSON());&#xD;
}</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>
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">库区代码</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">货位代码</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">粮食品种代码</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(&quot;apiTriggerService#trigger&quot;).getResult(&quot;CZBZ&quot;)}</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(&quot;#dsQuery&quot;).getData();&#xD;
view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,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(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#ajaxDelUpdate&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
    if(result){&#xD;
        $alert(result);&#xD;
    } else{&#xD;
        cur.set(&quot;czbz&quot;,&quot;d&quot;)&#xD;
    }&#xD;
});&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
    if(result){&#xD;
        $alert(result);&#xD;
    } else{&#xD;
        cur.remove();&#xD;
    }&#xD;
});&#xD;
</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(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
          $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选上报数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#updateSave&quot;).execute(function(){&#xD;
    self.get(&quot;parent&quot;).hide();&#xD;
});</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
self.get(&quot;parent&quot;).hide();&#xD;
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>
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">库区代码</Property>
      </PropertyDef>
      <PropertyDef name="syncTime">
        <Property name="dataType">Date</Property>
        <Property name="label">同步时间</Property>
      </PropertyDef>
      <PropertyDef name="dwdm">
        <Property/>
        <Property name="label">单位代码</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(&quot;apiTriggerService#trigger&quot;).getResult(&quot;CZBZ&quot;)}</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(&quot;#dsQuery&quot;).getData();&#xD;
view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,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(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#ajaxDelUpdate&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
    if(result){&#xD;
        $alert(result);&#xD;
    } else{&#xD;
        cur.set(&quot;czbz&quot;,&quot;d&quot;)&#xD;
    }&#xD;
});&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
    if(result){&#xD;
        $alert(result);&#xD;
    } else{&#xD;
        cur.remove();&#xD;
    }&#xD;
});&#xD;
</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(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
          $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选上报数据!&quot;);&#xD;
}&#xD;
</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#updateSave&quot;).execute(function(){&#xD;
    self.get(&quot;parent&quot;).hide();&#xD;
});</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
self.get(&quot;parent&quot;).hide();&#xD;
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>
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) {
        // æ‰‹åЍ将doradoEntity对象转换为标准Bean对象
        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();
    }
}
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) {
        // æ‰‹åЍ将doradoEntity对象转换为标准Bean对象
        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();
    }
}
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) {
        // æ‰‹åЍ将doradoEntity对象转换为标准Bean对象
        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();
    }
}
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) {
        // æ‰‹åЍ将doradoEntity对象转换为标准Bean对象
        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();
    }
}
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) {
        // æ‰‹åЍ将doradoEntity对象转换为标准Bean对象
        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();
    }
}
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) {
        // æ‰‹åЍ将doradoEntity对象转换为标准Bean对象
        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();
    }
}
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) {
        // æ‰‹åЍ将doradoEntity对象转换为标准Bean对象
        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();
    }
}
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) {
        // æ‰‹åЍ将doradoEntity对象转换为标准Bean对象
        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();
    }
}
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);
}
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);
}
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);
    /**
     * æ ¹æ®ä»“房代码查询
     * @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);
    /**
     * æ ¹æ®ä»“房代码查询
     * @param cfdm
     * @return
     */
    @Query("from Api9111 where cfdm =:cfdm ")
    Api9111 findData(@Param("cfdm") String cfdm);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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","数据解密失败" ),
    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;
    }
}
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) {
        //解密报文
        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();
    }
}
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();
    }
}
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;
}
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);
        }
    }
}
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";
}