czt
2025-10-31 8172572f01c0baa527085243e010afa4bec5efcc
陕西2025版接口调整3-新增接口页面
已修改6个文件
已添加28个文件
5568 ■■■■■ 文件已修改
src/main/java/com/fzzy/api/Constant.java 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/entity/Api1214.java 156 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/entity/Api1215.java 128 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/entity/Api1216.java 127 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/entity/Api1217.java 127 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/entity/Api1218.java 77 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/entity/Api1219.java 77 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/Api1214.view.xml 636 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/Api1215.view.xml 544 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/Api1216.view.xml 558 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/Api1217.view.xml 558 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/pr/Api1109PR.java 141 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/pr/Api1214PR.java 232 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/pr/Api1215PR.java 232 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/pr/Api1216PR.java 232 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/pr/Api1217PR.java 232 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/pr/Api1218PR.java 232 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/pr/Api1219PR.java 232 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/repository/Api1214Rep.java 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/repository/Api1215Rep.java 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/repository/Api1216Rep.java 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/repository/Api1217Rep.java 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/repository/Api1218Rep.java 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/view/repository/Api1219Rep.java 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/push/impl/ComPushService12.java 182 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/push/sx2025/SX2025ApiRemoteService.java 105 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/push/sx2025/SX2025Constant.java 41 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/push/sx2025/data/SX2025Api1214.java 114 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/push/sx2025/data/SX2025Api1215.java 93 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/push/sx2025/data/SX2025Api1216.java 92 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/push/sx2025/data/SX2025Api1217.java 92 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/push/sx2025/data/SX2025Api1218.java 55 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/push/sx2025/data/SX2025Api1219.java 56 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/templates/home/home.html 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/Constant.java
@@ -147,7 +147,30 @@
     * æŽ¥å£ç¼–码-1213 å°ä»“确认单
     */
    public static String API_CODE_1213 = "1213";
    /**
     * æŽ¥å£ç¼–码-1214 å‚¨å¤‡ç²®ç©ºä»“验收表
     */
    public static String API_CODE_1214 = "1214";
    /**
     * æŽ¥å£ç¼–码-1215 å‚¨å¤‡æ²¹ç©ºç½éªŒæ”¶è¡¨
     */
    public static String API_CODE_1215 = "1215";
    /**
     * æŽ¥å£ç¼–码-1216 å‚¨å¤‡ç²®å€’仓验收表
     */
    public static String API_CODE_1216 = "1216";
    /**
     * æŽ¥å£ç¼–码-1217 è½®æ¢éªŒæ”¶ä¿¡æ¯
     */
    public static String API_CODE_1217 = "1217";
    /**
     * æŽ¥å£ç¼–码-1218 å…¥åº“成本核定表
     */
    public static String API_CODE_1218 = "1218";
    /**
     * æŽ¥å£ç¼–码-1219 å…¥åº“成本核定明细表
     */
    public static String API_CODE_1219 = "1219";
    /**
     * æŽ¥å£ç¼–码-1301 å®‰å…¨ç®¡ç†æ•°æ®æŽ¥å£
     */
src/main/java/com/fzzy/api/entity/Api1214.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,156 @@
package com.fzzy.api.entity;
import com.alibaba.fastjson.annotation.JSONField;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
 * @Description æŽ¥å£è¡¨-空仓验收表
 * @Author CZT
 * @Date 2025/10/31 10:06
 */
@Data
@Entity
@Table(name = "API_1214")
public class Api1214 extends ApiParent implements Serializable {
    public static String SORT_PROP = "kcysdh";
    @Id
    @PropertyDef(label = "空仓验收单号", description = "验收申请日期yyyyMMdd + 4位顺序号")
    @Column(name = "kcysdh", length = 14)
    private String kcysdh;
    @PropertyDef(label = "货位代码" )
    @Column(name = "hwdm", length = 30)
    private String hwdm;
    @PropertyDef(label = "拟存品种代码")
    @Column(name = "lspzdm", length = 7)
    private String lspzdm;
    @PropertyDef(label = "粮食等级代码")
    @Column(name = "lsdjdm", length = 2)
    private String lsdjdm;
    @PropertyDef(label = "设计仓容")
    @Column(name = "sjcr", precision = 20, scale = 3)
    private Double sjcr;
    @PropertyDef(label = "实际储粮品种最大仓容")
    @Column(name = "sjclzdcr", precision = 20, scale = 3)
    private Double sjclzdcr;
    @PropertyDef(label = "拟储粮数量")
    @Column(name = "jysj", precision = 20, scale = 3)
    private Double jysj;
    @PropertyDef(label = "储存方式", description = "1-包装 2-散装 3-包围散存")
    @Column(name = "jydw", length = 1)
    private String jydw;
    @PropertyDef(label = "仓房地坪完好情况")
    @Column(name = "dpwhqk", length = 128)
    private String dpwhqk;
    @PropertyDef(label = "仓房墙体完好情况")
    @Column(name = "qtwhqk", length = 128)
    private String qtwhqk;
    @PropertyDef(label = "仓房屋面完好情况")
    @Column(name = "wmwhqk", length = 128)
    private String wmwhqk;
    @PropertyDef(label = "仓房门窗完好情况")
    @Column(name = "mcwhqk", length = 128)
    private String mcwhqk;
    @PropertyDef(label = "仓房是否擅自改变仓房结构")
    @Column(name = "sfszgd", length = 128)
    private String sfszgd;
    @PropertyDef(label = "防雀网完好情况")
    @Column(name = "fqwwhqk", length = 128)
    private String fqwwhqk;
    @PropertyDef(label = "防虫线完好情况")
    @Column(name = "fcxwhqk", length = 128)
    private String fcxwhqk;
    @PropertyDef(label = "防鼠板完好情况")
    @Column(name = "fsbwhqk", length = 128)
    private String fsbwhqk;
    @PropertyDef(label = "通风技术手段")
    @Column(name = "tfjssd", length = 128)
    private String tfjssd;
    @PropertyDef(label = "通风系统是否完好")
    @Column(name = "tfxtsfwh", length = 128)
    private String tfxtsfwh;
    @PropertyDef(label = "熏蒸技术手段")
    @Column(name = "xzjssd", length = 128)
    private String xzjssd;
    @PropertyDef(label = "粮情检测手段")
    @Column(name = "lqjcsd", length = 128)
    private String lqjcsd;
    @PropertyDef(label = "粮情检测系统是否完好")
    @Column(name = "lqjcxtsfwh", length = 128)
    private String lqjcxtsfwh;
    @PropertyDef(label = "仓门档粮设施是否完好")
    @Column(name = "cmdlsssfwh", length = 128)
    private String cmdlsssfwh;
    @PropertyDef(label = "是否清消")
    @Column(name = "sfqx", length = 128)
    private String sfqx;
    @PropertyDef(label = "验收时间")
    @Column(name = "yssj")
    private Date yssj;
    @PropertyDef(label = "验收结论")
    @Column(name = "ysjl", length = 128)
    private String ysjl;
    @PropertyDef(label = "整改意见")
    @Column(name = "zgyj", length = 128)
    private String zgyj;
    @PropertyDef(label = "承储单位负责人")
    @Column(name = "ccdwfzr", length = 128)
    private String ccdwfzr;
    @PropertyDef(label = "验收人")
    @Column(name = "ysr", length = 128)
    private String ysr;
    @PropertyDef(label = "备注")
    @Column(name = "bz", length = 200)
    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 = "wjdz")
    @JSONField(serialize = false)
    private String wjdz;
}
src/main/java/com/fzzy/api/entity/Api1215.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,128 @@
package com.fzzy.api.entity;
import com.alibaba.fastjson.annotation.JSONField;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
 * @Description ç©ºç½éªŒæ”¶è¡¨
 * @Author CZT
 * @Date 2025/10/31 10:30
 */
@Data
@Entity
@Table(name = "API_1215")
public class Api1215 extends ApiParent implements Serializable {
    public static String SORT_PROP = "kgysdh";
    @Id
    @PropertyDef(label = "空罐验收单号", description = "验收申请日期yyyyMMdd + 4位顺序号")
    @Column(name = "kgysdh", length = 14)
    private String kgysdh;
    @PropertyDef(label = "油罐货位代码" )
    @Column(name = "hwdm", length = 30)
    private String hwdm;
    @PropertyDef(label = "拟存品种代码")
    @Column(name = "ncpzdm", length = 7)
    private String ncpzdm;
    @PropertyDef(label = "设计灌容")
    @Column(name = "sjgr", precision = 20, scale = 3)
    private Double sjgr;
    @PropertyDef(label = "实际储油品种最大罐容")
    @Column(name = "sjcyzdgr", precision = 20, scale = 3)
    private Double sjcyzdgr;
    @PropertyDef(label = "拟储油数量")
    @Column(name = "jysj", precision = 20, scale = 3)
    private Double jysj;
    @PropertyDef(label = "是否擅自改变油罐结构")
    @Column(name = "sfszgdygjg", length = 128)
    private String sfszgdygjg;
    @PropertyDef(label = "油罐有无渗漏锈蚀")
    @Column(name = "ygywslxs", length = 128)
    private String ygywslxs;
    @PropertyDef(label = "罐基有无开裂、下沉现象")
    @Column(name = "gjywklxcxx", length = 128)
    private String gjywklxcxx;
    @PropertyDef(label = "油罐地坪是否完全硬化")
    @Column(name = "ygdpsfwqyh", length = 128)
    private String ygdpsfwqyh;
    @PropertyDef(label = "护油堤是否存在开裂缺口等情况")
    @Column(name = "hydsfzc", length = 128)
    private String hydsfzc;
    @PropertyDef(label = "罐区内排水有无阀门控制")
    @Column(name = "gtfmsfzc", length = 128)
    private String gtfmsfzc;
    @PropertyDef(label = "罐内是否清洁")
    @Column(name = "gnsfqj", length = 128)
    private String gnsfqj;
    @PropertyDef(label = "爬梯是否安全")
    @Column(name = "ptsfaq", length = 128)
    private String ptsfaq;
    @PropertyDef(label = "灌顶安全护栏是否完好")
    @Column(name = "gdaqhlsfwh", length = 128)
    private String gdaqhlsfwh;
    @PropertyDef(label = "油罐区是否处于低洼点")
    @Column(name = "gqsfcydwd", length = 128)
    private String gqsfcydwd;
    @PropertyDef(label = "验收时间")
    @Column(name = "yssj")
    private Date yssj;
    @PropertyDef(label = "验收结论")
    @Column(name = "ysjl", length = 128)
    private String ysjl;
    @PropertyDef(label = "整改意见")
    @Column(name = "zgyj", length = 128)
    private String zgyj;
    @PropertyDef(label = "承储单位负责人")
    @Column(name = "ccdwfzr", length = 128)
    private String ccdwfzr;
    @PropertyDef(label = "验收人")
    @Column(name = "ysr", length = 128)
    private String ysr;
    @PropertyDef(label = "备注")
    @Column(name = "bz", length = 200)
    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 = "wjdz")
    @JSONField(serialize = false)
    private String wjdz;
}
src/main/java/com/fzzy/api/entity/Api1216.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,127 @@
package com.fzzy.api.entity;
import com.alibaba.fastjson.annotation.JSONField;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
 * @Description å‚¨å¤‡ç²®å€’仓验收表
 * @Author CZT
 * @Date 2025/10/31 11:40
 */
@Data
@Entity
@Table(name = "API_1216")
public class Api1216 extends ApiParent implements Serializable {
    public static String SORT_PROP = "dcysdh";
    @Id
    @PropertyDef(label = "倒仓验收单号", description = "验收申请日期yyyyMMdd + 4位顺序号")
    @Column(name = "dcysdh", length = 14)
    private String dcysdh;
    @PropertyDef(label = "承储单位" )
    @Column(name = "ccdw", length = 256)
    private String ccdw;
    @PropertyDef(label = "计划文号")
    @Column(name = "jhwh", length = 14)
    private String jhwh;
    @PropertyDef(label = "倒出货位代码" )
    @Column(name = "dchwbm", length = 30)
    private String dchwbm;
    @PropertyDef(label = "倒出粮食品种代码" )
    @Column(name = "dclspzdm", length = 7)
    private String dclspzdm;
    @PropertyDef(label = "倒出粮食等级代码" )
    @Column(name = "dclsdjdm", length = 2)
    private String dclsdjdm;
    @PropertyDef(label = "倒出粮食生产年度" )
    @Column(name = "dclsscnd", length = 4)
    private String dclsscnd;
    @PropertyDef(label = "倒出粮食数量(吨)" )
    @Column(name = "dclssl", precision = 20, scale = 3)
    private Double dclssl;
    @PropertyDef(label = "倒入货位代码" )
    @Column(name = "drhwdm", length = 30)
    private String drhwbm;
    @PropertyDef(label = "倒入粮食品种代码" )
    @Column(name = "drlspzdm", length = 7)
    private String drlspzdm;
    @PropertyDef(label = "倒入粮食等级代码" )
    @Column(name = "drlsdjdm", length = 2)
    private String drlsdjdm;
    @PropertyDef(label = "倒入粮食数量(吨)" )
    @Column(name = "drlssl", precision = 20, scale = 3)
    private Double drlssl;
    @PropertyDef(label = "倒入粮食库存成本(元/吨)" )
    @Column(name = "drlskccb", precision = 20, scale = 3)
    private Double drlskccb;
    @PropertyDef(label = "倒入粮食生产年度" )
    @Column(name = "drlsscnd", length = 4)
    private String drlsscnd;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "入库时间")
    @Column(name = "rksj")
    private Date rksj;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "倒仓完成时间")
    @Column(name = "wcsj")
    private Date wcsj;
    @PropertyDef(label = "验收结论")
    @Column(name = "ysjl", length = 128)
    private String ysjl;
    @JSONField(format = "yyyy-MM-dd")
    @PropertyDef(label = "验收时间")
    @Column(name = "yssj")
    private Date yssj;
    @PropertyDef(label = "承储单位负责人")
    @Column(name = "ccdwfzr", length = 128)
    private String ccdwfzr;
    @PropertyDef(label = "验收人")
    @Column(name = "ysr", length = 128)
    private String ysr;
    @PropertyDef(label = "备注")
    @Column(name = "bz", length = 200)
    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 = "wjdz")
    @JSONField(serialize = false)
    private String wjdz;
}
src/main/java/com/fzzy/api/entity/Api1217.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,127 @@
package com.fzzy.api.entity;
import com.alibaba.fastjson.annotation.JSONField;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
 * @Description è½®æ¢éªŒæ”¶ä¿¡æ¯
 * @Author CZT
 * @Date 2025/10/31 13:49
 */
@Data
@Entity
@Table(name = "API_1217")
public class Api1217 extends ApiParent implements Serializable {
    public static String SORT_PROP = "dcysdh";
    @Id
    @PropertyDef(label = "轮换验收单号", description = "验收申请日期yyyyMMdd + 4位顺序号")
    @Column(name = "dcysdh", length = 14)
    private String dcysdh;
    @PropertyDef(label = "承储单位" )
    @Column(name = "ccdw", length = 256)
    private String ccdw;
    @PropertyDef(label = "计划文号")
    @Column(name = "jhwh", length = 14)
    private String jhwh;
    @PropertyDef(label = "计划安排货位编码" )
    @Column(name = "dchwbm", length = 30)
    private String dchwbm;
    @PropertyDef(label = "计划安排粮食品种代码" )
    @Column(name = "dclspzdm", length = 7)
    private String dclspzdm;
    @PropertyDef(label = "计划安排粮食等级代码" )
    @Column(name = "dclsdjdm", length = 2)
    private String dclsdjdm;
    @PropertyDef(label = "计划安排粮食生产年度" )
    @Column(name = "dclsscnd", length = 4)
    private String dclsscnd;
    @PropertyDef(label = "计划安排粮食数量(吨)" )
    @Column(name = "dclssl", precision = 20, scale = 3)
    private Double dclssl;
    @PropertyDef(label = "实际执行货位编码" )
    @Column(name = "drhwbm", length = 30)
    private String drhwbm;
    @PropertyDef(label = "实际执行粮食品种代码" )
    @Column(name = "drlspzdm", length = 7)
    private String drlspzdm;
    @PropertyDef(label = "实际执行粮食等级代码" )
    @Column(name = "drlsdjdm", length = 2)
    private String drlsdjdm;
    @PropertyDef(label = "实际执行粮食数量(吨)" )
    @Column(name = "drlssl", precision = 20, scale = 3)
    private Double drlssl;
    @PropertyDef(label = "实际执行粮食库存成本(元/吨)" )
    @Column(name = "drlskccb", precision = 20, scale = 3)
    private Double drlskccb;
    @PropertyDef(label = "实际执行粮食生产年度" )
    @Column(name = "drlsscnd", length = 4)
    private String drlsscnd;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "实际执行入库时间")
    @Column(name = "rksj")
    private Date rksj;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "实际执行完成时间")
    @Column(name = "wcsj")
    private Date wcsj;
    @PropertyDef(label = "验收结论")
    @Column(name = "ysjl", length = 128)
    private String ysjl;
    @JSONField(format = "yyyy-MM-dd")
    @PropertyDef(label = "验收时间")
    @Column(name = "yssj")
    private Date yssj;
    @PropertyDef(label = "承储单位负责人")
    @Column(name = "ccdwfzr", length = 128)
    private String ccdwfzr;
    @PropertyDef(label = "验收人")
    @Column(name = "ysr", length = 128)
    private String ysr;
    @PropertyDef(label = "备注")
    @Column(name = "bz", length = 200)
    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 = "wjdz")
    @JSONField(serialize = false)
    private String wjdz;
}
src/main/java/com/fzzy/api/entity/Api1218.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,77 @@
package com.fzzy.api.entity;
import com.alibaba.fastjson.annotation.JSONField;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
 * @Description å…¥åº“成本核定表
 * @Author CZT
 * @Date 2025/10/31 14:02
 */
@Data
@Entity
@Table(name = "API_1218")
public class Api1218 extends ApiParent implements Serializable {
    public static String SORT_PROP = "rkhddh";
    @Id
    @PropertyDef(label = "入库核定单号", description = "验收申请日期yyyyMMdd + 4位顺序号")
    @Column(name = "rkhddh", length = 14)
    private String rkhddh;
    @PropertyDef(label = "货位编码" )
    @Column(name = "hwdm", length = 30)
    private String hwdm;
    @PropertyDef(label = "储粮品种代码" )
    @Column(name = "lspzdm", length = 7)
    private String lspzdm;
    @PropertyDef(label = "核定单价" )
    @Column(name = "hddj", precision = 20, scale = 3)
    private Double hddj;
    @PropertyDef(label = "核定数量" )
    @Column(name = "hdsl", precision = 20, scale = 3)
    private Double hdsl;
    @PropertyDef(label = "粮食性质" )
    @Column(name = "lsxz", length = 3)
    private String lsxz;
    @PropertyDef(label = "填报单位" )
    @Column(name = "tbdw", length = 512)
    private String tbdw;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "填报时间")
    @Column(name = "tbsj")
    private Date tbsj;
    @PropertyDef(label = "单位负责人")
    @Column(name = "dwfzr", length = 512)
    private String dwfzr;
    @PropertyDef(label = "填报人")
    @Column(name = "tbr", length = 512)
    private String tbr;
    @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;
}
src/main/java/com/fzzy/api/entity/Api1219.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,77 @@
package com.fzzy.api.entity;
import com.alibaba.fastjson.annotation.JSONField;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
 * @Description å…¥åº“成本核定明细表
 * @Author CZT
 * @Date 2025/10/31 14:07
 */
@Data
@Entity
@Table(name = "API_1219")
public class Api1219 extends ApiParent implements Serializable {
    public static String SORT_PROP = "rkhddh";
    @Id
    @PropertyDef(label = "入库核定单号", description = "验收申请日期yyyyMMdd + 4位顺序号")
    @Column(name = "rkhddh", length = 14)
    private String rkhddh;
    @PropertyDef(label = "货位编码" )
    @Column(name = "hwdm", length = 30)
    private String hwdm;
    @PropertyDef(label = "储粮品种代码" )
    @Column(name = "lspzdm", length = 7)
    private String lspzdm;
    @PropertyDef(label = "贷款金额" )
    @Column(name = "dkje", precision = 20, scale = 3)
    private Double dkje;
    @PropertyDef(label = "收获年度" )
    @Column(name = "shnd", length = 3)
    private String shnd;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "入库时间")
    @Column(name = "rksj")
    private Date rksj;
    @PropertyDef(label = "填报单位" )
    @Column(name = "tbdw", length = 512)
    private String tbdw;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "填报时间")
    @Column(name = "tbsj")
    private Date tbsj;
    @PropertyDef(label = "单位负责人")
    @Column(name = "dwfzr", length = 512)
    private String dwfzr;
    @PropertyDef(label = "填报人")
    @Column(name = "tbr", length = 512)
    private String tbr;
    @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;
}
src/main/java/com/fzzy/api/view/Api1214.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,636 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.api.entity.Api1214</Property>
      <PropertyDef name="kcysdh">
        <Property></Property>
        <Property name="label">空仓验收单号</Property>
      </PropertyDef>
      <PropertyDef name="hwdm">
        <Property></Property>
        <Property name="label">货位代码</Property>
      </PropertyDef>
      <PropertyDef name="lspzdm">
        <Property></Property>
        <Property name="label">拟存品种代码</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;LSPZ&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="lsdjdm">
        <Property></Property>
        <Property name="label">粮食等级代码</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;LSDJ&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="sjcr">
        <Property name="dataType">Double</Property>
        <Property name="label">设计仓容</Property>
      </PropertyDef>
      <PropertyDef name="sjclzdcr">
        <Property name="dataType">Double</Property>
        <Property name="label">实际仓容</Property>
      </PropertyDef>
      <PropertyDef name="jysj">
        <Property name="dataType">Double</Property>
        <Property name="label">拟储粮数量</Property>
      </PropertyDef>
      <PropertyDef name="jydw">
        <Property></Property>
        <Property name="label">储存方式</Property>
        <Property name="mapping">
          <Property name="keyProperty">key</Property>
          <Property name="valueProperty">value</Property>
          <Property name="mapValues">
            <Collection>
              <Entity>
                <Property name="key">1</Property>
                <Property name="value">1-包装</Property>
              </Entity>
              <Entity>
                <Property name="key">2</Property>
                <Property name="value">2-散装</Property>
              </Entity>
              <Entity>
                <Property name="key">3</Property>
                <Property name="value">3-包围散存</Property>
              </Entity>
            </Collection>
          </Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="dpwhqk">
        <Property></Property>
        <Property name="label">仓房地坪完好情况</Property>
      </PropertyDef>
      <PropertyDef name="qtwhqk">
        <Property></Property>
        <Property name="label">仓房墙体完好情况</Property>
      </PropertyDef>
      <PropertyDef name="wmwhqk">
        <Property></Property>
        <Property name="label">仓房屋面完好情况</Property>
      </PropertyDef>
      <PropertyDef name="mcwhqk">
        <Property></Property>
        <Property name="label">仓房门窗完好情况</Property>
      </PropertyDef>
      <PropertyDef name="sfszgd">
        <Property></Property>
        <Property name="label">仓房是否擅自改变仓房结构</Property>
      </PropertyDef>
      <PropertyDef name="fqwwhqk">
        <Property></Property>
        <Property name="label">防雀网完好情况</Property>
      </PropertyDef>
      <PropertyDef name="fcxwhqk">
        <Property></Property>
        <Property name="label">防虫线完好情况</Property>
      </PropertyDef>
      <PropertyDef name="fsbwhqk">
        <Property></Property>
        <Property name="label">防鼠板完好情况</Property>
      </PropertyDef>
      <PropertyDef name="tfjssd">
        <Property></Property>
        <Property name="label">通风技术手段</Property>
      </PropertyDef>
      <PropertyDef name="tfxtsfwh">
        <Property></Property>
        <Property name="label">通风系统是否完好</Property>
      </PropertyDef>
      <PropertyDef name="xzjssd">
        <Property></Property>
        <Property name="label">熏蒸技术手段</Property>
      </PropertyDef>
      <PropertyDef name="lqjcsd">
        <Property></Property>
        <Property name="label">粮情检测手段</Property>
      </PropertyDef>
      <PropertyDef name="lqjcxtsfwh">
        <Property></Property>
        <Property name="label">粮情检测系统是否完好</Property>
      </PropertyDef>
      <PropertyDef name="cmdlsssfwh">
        <Property></Property>
        <Property name="label">仓门档粮设施是否完好</Property>
      </PropertyDef>
      <PropertyDef name="sfqx">
        <Property></Property>
        <Property name="label">是否清消</Property>
      </PropertyDef>
      <PropertyDef name="yssj">
        <Property name="label">验收时间</Property>
        <Property name="dataType">DateTime</Property>
      </PropertyDef>
      <PropertyDef name="ysjl">
        <Property></Property>
        <Property name="label">验收结论</Property>
      </PropertyDef>
      <PropertyDef name="zgyj">
        <Property></Property>
        <Property name="label">整改意见</Property>
      </PropertyDef>
      <PropertyDef name="ccdwfzr">
        <Property></Property>
        <Property name="label">承储单位负责人</Property>
      </PropertyDef>
      <PropertyDef name="ysr">
        <Property></Property>
        <Property name="label">验收人</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <Property></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>
      <PropertyDef name="zhgxsj">
        <Property name="label">最后更新时间</Property>
        <Property name="dataType">DateTime</Property>
      </PropertyDef>
      <PropertyDef name="bizId">
        <Property></Property>
        <Property name="label">业务id</Property>
      </PropertyDef>
      <PropertyDef name="kqdm">
        <Property></Property>
        <Property name="label">库区代码</Property>
      </PropertyDef>
      <PropertyDef name="wjdz">
        <Property></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">api1214PR#listAll</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>
        <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;
</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>
    <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="kcysdh">
        <Property name="property">kcysdh</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="hwdm">
        <Property name="property">hwdm</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="lspzdm">
        <Property name="property">lspzdm</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="lsdjdm">
        <Property name="property">lsdjdm</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="sjcr">
        <Property name="property">sjcr</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="jysj">
        <Property name="property">jysj</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="jydw">
        <Property name="property">jydw</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="czbz">
        <Property name="property">czbz</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="zhgxsj">
        <Property name="property">zhgxsj</Property>
        <Property name="align">center</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;
    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>
          <Property name="caption">上传文件</Property>
          <Property name="iconClass">fa fa-upload</Property>
          <Property name="exClassName">toolbar-button-warm</Property>
          <Property name="action">uploadAction</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">kcysdh</Property>
            <Property name="property">kcysdh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">hwdm</Property>
            <Property name="property">hwdm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">lspzdm</Property>
            <Property name="property">lspzdm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">lsdjdm</Property>
            <Property name="property">lsdjdm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sjcr</Property>
            <Property name="property">sjcr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sjclzdcr</Property>
            <Property name="property">sjclzdcr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jysj</Property>
            <Property name="property">jysj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jydw</Property>
            <Property name="property">jydw</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dpwhqk</Property>
            <Property name="property">dpwhqk</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">qtwhqk</Property>
            <Property name="property">qtwhqk</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">wmwhqk</Property>
            <Property name="property">wmwhqk</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">mcwhqk</Property>
            <Property name="property">mcwhqk</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sfszgd</Property>
            <Property name="property">sfszgd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">fqwwhqk</Property>
            <Property name="property">fqwwhqk</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">fcxwhqk</Property>
            <Property name="property">fcxwhqk</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">fsbwhqk</Property>
            <Property name="property">fsbwhqk</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">tfjssd</Property>
            <Property name="property">tfjssd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">tfxtsfwh</Property>
            <Property name="property">tfxtsfwh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">xzjssd</Property>
            <Property name="property">xzjssd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">lqjcsd</Property>
            <Property name="property">lqjcsd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">lqjcxtsfwh</Property>
            <Property name="property">lqjcxtsfwh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cmdlsssfwh</Property>
            <Property name="property">cmdlsssfwh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sfqx</Property>
            <Property name="property">sfqx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yssj</Property>
            <Property name="property">yssj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ysjl</Property>
            <Property name="property">ysjl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zgyj</Property>
            <Property name="property">zgyj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ccdwfzr</Property>
            <Property name="property">ccdwfzr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ysr</Property>
            <Property name="property">ysr</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">wjdz</Property>
            <Property name="property">wjdz</Property>
            <Property name="readOnly">false</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>
        </AutoForm>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">api1214PR#updateSave</Property>
      <UpdateItem>
        <Property name="dataPath">[#current]</Property>
        <Property name="dataSet">dsMain</Property>
      </UpdateItem>
    </UpdateAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">api1214PR#pushData</Property>
      <Property name="confirmMessage">确定要上报么?</Property>
    </AjaxAction>
    <AjaxAction id="ajaxDel">
      <Property name="service">api1214PR#delData</Property>
      <Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property>
    </AjaxAction>
    <AjaxAction id="ajaxDelUpdate">
      <Property name="service">api1214PR#delUpdate</Property>
      <Property name="confirmMessage">确定要将数据标记为删除么?</Property>
    </AjaxAction>
    <UploadAction id="uploadAction">
      <ClientEvent name="onFileUploaded">var returnValue = arg.returnValue;//获取FileResolver方法返回的信息&amp;#xD;&#xD;
&#xD;
var cur = view.get(&quot;#dsMain.data:#&quot;);&#xD;
cur.set(&quot;wjdz&quot;,returnValue);</ClientEvent>
      <Property name="fileResolver">uploadProcessor#uploadFile</Property>
      <Filters/>
    </UploadAction>
  </View>
</ViewConfig>
src/main/java/com/fzzy/api/view/Api1215.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,544 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.api.entity.Api1215</Property>
      <PropertyDef name="kgysdh">
        <Property></Property>
        <Property name="label">空罐验收单号</Property>
      </PropertyDef>
      <PropertyDef name="hwdm">
        <Property></Property>
        <Property name="label">货位代码</Property>
      </PropertyDef>
      <PropertyDef name="ncpzdm">
        <Property></Property>
        <Property name="label">拟存品种代码</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;LSPZ&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="sjgr">
        <Property name="dataType">Double</Property>
        <Property name="label">设计灌容</Property>
      </PropertyDef>
      <PropertyDef name="sjcyzdgr">
        <Property name="dataType">Double</Property>
        <Property name="label">实际罐容</Property>
      </PropertyDef>
      <PropertyDef name="jysj">
        <Property name="dataType">Double</Property>
        <Property name="label">拟储油数量</Property>
      </PropertyDef>
      <PropertyDef name="sfszgdygjg">
        <Property></Property>
        <Property name="label">是否擅自改变油罐结构</Property>
      </PropertyDef>
      <PropertyDef name="ygywslxs">
        <Property></Property>
        <Property name="label">油罐有无渗漏锈蚀</Property>
      </PropertyDef>
      <PropertyDef name="gjywklxcxx">
        <Property></Property>
        <Property name="label">罐基有无开裂、下沉现象</Property>
      </PropertyDef>
      <PropertyDef name="ygdpsfwqyh">
        <Property></Property>
        <Property name="label">油罐地坪是否完全硬化</Property>
      </PropertyDef>
      <PropertyDef name="hydsfzc">
        <Property></Property>
        <Property name="label">护油堤是否存在开裂缺口等情况</Property>
      </PropertyDef>
      <PropertyDef name="gtfmsfzc">
        <Property></Property>
        <Property name="label">罐区内排水有无阀门控制</Property>
      </PropertyDef>
      <PropertyDef name="gnsfqj">
        <Property></Property>
        <Property name="label">罐内是否清洁</Property>
      </PropertyDef>
      <PropertyDef name="ptsfaq">
        <Property></Property>
        <Property name="label">爬梯是否安全</Property>
      </PropertyDef>
      <PropertyDef name="gdaqhlsfwh">
        <Property></Property>
        <Property name="label">灌顶安全护栏是否完好</Property>
      </PropertyDef>
      <PropertyDef name="gqsfcydwd">
        <Property></Property>
        <Property name="label">油罐区是否处于低洼点</Property>
      </PropertyDef>
      <PropertyDef name="yssj">
        <Property name="label">验收时间</Property>
        <Property name="dataType">DateTime</Property>
      </PropertyDef>
      <PropertyDef name="ysjl">
        <Property></Property>
        <Property name="label">验收结论</Property>
      </PropertyDef>
      <PropertyDef name="zgyj">
        <Property></Property>
        <Property name="label">整改意见</Property>
      </PropertyDef>
      <PropertyDef name="ccdwfzr">
        <Property></Property>
        <Property name="label">承储单位负责人</Property>
      </PropertyDef>
      <PropertyDef name="ysr">
        <Property></Property>
        <Property name="label">验收人</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <Property></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>
      <PropertyDef name="zhgxsj">
        <Property name="label">最后更新时间</Property>
        <Property name="dataType">DateTime</Property>
      </PropertyDef>
      <PropertyDef name="bizId">
        <Property></Property>
        <Property name="label">业务id</Property>
      </PropertyDef>
      <PropertyDef name="kqdm">
        <Property></Property>
        <Property name="label">库区代码</Property>
      </PropertyDef>
      <PropertyDef name="wjdz">
        <Property></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">api1215PR#listAll</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>
        <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;
</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>
    <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="kgysdh">
        <Property name="property">kgysdh</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="hwdm">
        <Property name="property">hwdm</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="ncpzdm">
        <Property name="property">ncpzdm</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="sjgr">
        <Property name="property">sjgr</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="jysj">
        <Property name="property">jysj</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="sjcyzdgr">
        <Property name="property">sjcyzdgr</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="czbz">
        <Property name="property">czbz</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="zhgxsj">
        <Property name="property">zhgxsj</Property>
        <Property name="align">center</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;
    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>
          <Property name="caption">上传文件</Property>
          <Property name="iconClass">fa fa-upload</Property>
          <Property name="exClassName">toolbar-button-warm</Property>
          <Property name="action">uploadAction</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">kgysdh</Property>
            <Property name="property">kgysdh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">hwdm</Property>
            <Property name="property">hwdm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ncpzdm</Property>
            <Property name="property">ncpzdm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sjgr</Property>
            <Property name="property">sjgr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sjcyzdgr</Property>
            <Property name="property">sjcyzdgr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jysj</Property>
            <Property name="property">jysj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sfszgdygjg</Property>
            <Property name="property">sfszgdygjg</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ygywslxs</Property>
            <Property name="property">ygywslxs</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">gjywklxcxx</Property>
            <Property name="property">gjywklxcxx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ygdpsfwqyh</Property>
            <Property name="property">ygdpsfwqyh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">hydsfzc</Property>
            <Property name="property">hydsfzc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">gtfmsfzc</Property>
            <Property name="property">gtfmsfzc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">gnsfqj</Property>
            <Property name="property">gnsfqj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ptsfaq</Property>
            <Property name="property">ptsfaq</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">gdaqhlsfwh</Property>
            <Property name="property">gdaqhlsfwh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">gqsfcydwd</Property>
            <Property name="property">gqsfcydwd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yssj</Property>
            <Property name="property">yssj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ysjl</Property>
            <Property name="property">ysjl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zgyj</Property>
            <Property name="property">zgyj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ccdwfzr</Property>
            <Property name="property">ccdwfzr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ysr</Property>
            <Property name="property">ysr</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">wjdz</Property>
            <Property name="property">wjdz</Property>
            <Property name="readOnly">false</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>
        </AutoForm>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">api1215PR#updateSave</Property>
      <UpdateItem>
        <Property name="dataPath">[#current]</Property>
        <Property name="dataSet">dsMain</Property>
      </UpdateItem>
    </UpdateAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">api1215PR#pushData</Property>
      <Property name="confirmMessage">确定要上报么?</Property>
    </AjaxAction>
    <AjaxAction id="ajaxDel">
      <Property name="service">api1215PR#delData</Property>
      <Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property>
    </AjaxAction>
    <AjaxAction id="ajaxDelUpdate">
      <Property name="service">api1215PR#delUpdate</Property>
      <Property name="confirmMessage">确定要将数据标记为删除么?</Property>
    </AjaxAction>
    <UploadAction id="uploadAction">
      <ClientEvent name="onFileUploaded">var returnValue = arg.returnValue;//获取FileResolver方法返回的信息&amp;#xD;&#xD;
&#xD;
var cur = view.get(&quot;#dsMain.data:#&quot;);&#xD;
cur.set(&quot;wjdz&quot;,returnValue);</ClientEvent>
      <Property name="fileResolver">uploadProcessor#uploadFile</Property>
      <Filters/>
    </UploadAction>
  </View>
</ViewConfig>
src/main/java/com/fzzy/api/view/Api1216.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,558 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.api.entity.Api1216</Property>
      <PropertyDef name="dcysdh">
        <Property></Property>
        <Property name="label">倒仓验收单号</Property>
      </PropertyDef>
      <PropertyDef name="ccdw">
        <Property></Property>
        <Property name="label">承储单位</Property>
      </PropertyDef>
      <PropertyDef name="jhwh">
        <Property></Property>
        <Property name="label">计划文号</Property>
      </PropertyDef>
      <PropertyDef name="dchwbm">
        <Property></Property>
        <Property name="label">倒出货位代码</Property>
      </PropertyDef>
      <PropertyDef name="dclspzdm">
        <Property></Property>
        <Property name="label">倒出粮食品种代码</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;LSPZ&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="dclsdjdm">
        <Property></Property>
        <Property name="label">倒出粮食等级代码</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;LSDJ&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="dclsscnd">
        <Property></Property>
        <Property name="label">倒出粮食生产年度</Property>
      </PropertyDef>
      <PropertyDef name="dclssl">
        <Property name="dataType">Double</Property>
        <Property name="label">倒出粮食数量(吨)</Property>
      </PropertyDef>
      <PropertyDef name="drhwbm">
        <Property></Property>
        <Property name="label">倒入货位代码</Property>
      </PropertyDef>
      <PropertyDef name="drlspzdm">
        <Property></Property>
        <Property name="label">倒入粮食品种代码</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;LSPZ&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="drlsdjdm">
        <Property></Property>
        <Property name="label">倒入粮食等级代码</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;LSDJ&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="drlssl">
        <Property name="dataType">Double</Property>
        <Property name="label">倒入粮食数量(吨)</Property>
      </PropertyDef>
      <PropertyDef name="drlskccb">
        <Property name="dataType">Double</Property>
        <Property name="label">倒入粮食库存成本(元/吨)</Property>
      </PropertyDef>
      <PropertyDef name="drlsscnd">
        <Property></Property>
        <Property name="label">倒入粮食生产年度</Property>
      </PropertyDef>
      <PropertyDef name="rksj">
        <Property name="label">入库时间</Property>
        <Property name="dataType">DateTime</Property>
      </PropertyDef>
      <PropertyDef name="wcsj">
        <Property name="label">倒仓完成时间</Property>
        <Property name="dataType">DateTime</Property>
      </PropertyDef>
      <PropertyDef name="ysjl">
        <Property></Property>
        <Property name="label">验收结论</Property>
      </PropertyDef>
      <PropertyDef name="yssj">
        <Property name="label">验收时间</Property>
        <Property name="dataType">DateTime</Property>
      </PropertyDef>
      <PropertyDef name="ccdwfzr">
        <Property></Property>
        <Property name="label">承储单位负责人</Property>
      </PropertyDef>
      <PropertyDef name="ysr">
        <Property></Property>
        <Property name="label">验收人</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <Property></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>
      <PropertyDef name="zhgxsj">
        <Property name="label">最后更新时间</Property>
        <Property name="dataType">DateTime</Property>
      </PropertyDef>
      <PropertyDef name="bizId">
        <Property></Property>
        <Property name="label">业务id</Property>
      </PropertyDef>
      <PropertyDef name="kqdm">
        <Property></Property>
        <Property name="label">库区代码</Property>
      </PropertyDef>
      <PropertyDef name="wjdz">
        <Property></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">api1216PR#listAll</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>
        <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;
</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>
    <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="dcysdh">
        <Property name="property">dcysdh</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="ccdw">
        <Property name="property">ccdw</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="dchwbm">
        <Property name="property">dchwbm</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="dclspzdm">
        <Property name="property">dclspzdm</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="dclssl">
        <Property name="property">dclssl</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="drhwbm">
        <Property name="property">drhwbm</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="drlspzdm">
        <Property name="property">drlspzdm</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="drlssl">
        <Property name="property">drlssl</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="czbz">
        <Property name="property">czbz</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="zhgxsj">
        <Property name="property">zhgxsj</Property>
        <Property name="align">center</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;
    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>
          <Property name="caption">上传文件</Property>
          <Property name="iconClass">fa fa-upload</Property>
          <Property name="exClassName">toolbar-button-warm</Property>
          <Property name="action">uploadAction</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">dcysdh</Property>
            <Property name="property">dcysdh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ccdw</Property>
            <Property name="property">ccdw</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jhwh</Property>
            <Property name="property">jhwh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dchwbm</Property>
            <Property name="property">dchwbm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dclspzdm</Property>
            <Property name="property">dclspzdm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dclsdjdm</Property>
            <Property name="property">dclsdjdm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dclsscnd</Property>
            <Property name="property">dclsscnd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dclssl</Property>
            <Property name="property">dclssl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">drhwbm</Property>
            <Property name="property">drhwbm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">drlspzdm</Property>
            <Property name="property">drlspzdm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">drlsdjdm</Property>
            <Property name="property">drlsdjdm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">drlssl</Property>
            <Property name="property">drlssl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">drlskccb</Property>
            <Property name="property">drlskccb</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">drlsscnd</Property>
            <Property name="property">drlsscnd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">rksj</Property>
            <Property name="property">rksj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">wcsj</Property>
            <Property name="property">wcsj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ysjl</Property>
            <Property name="property">ysjl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yssj</Property>
            <Property name="property">yssj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ccdwfzr</Property>
            <Property name="property">ccdwfzr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ysr</Property>
            <Property name="property">ysr</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">wjdz</Property>
            <Property name="property">wjdz</Property>
            <Property name="readOnly">false</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>
        </AutoForm>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">api1216PR#updateSave</Property>
      <UpdateItem>
        <Property name="dataPath">[#current]</Property>
        <Property name="dataSet">dsMain</Property>
      </UpdateItem>
    </UpdateAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">api1216PR#pushData</Property>
      <Property name="confirmMessage">确定要上报么?</Property>
    </AjaxAction>
    <AjaxAction id="ajaxDel">
      <Property name="service">api1216PR#delData</Property>
      <Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property>
    </AjaxAction>
    <AjaxAction id="ajaxDelUpdate">
      <Property name="service">api1216PR#delUpdate</Property>
      <Property name="confirmMessage">确定要将数据标记为删除么?</Property>
    </AjaxAction>
    <UploadAction id="uploadAction">
      <ClientEvent name="onFileUploaded">var returnValue = arg.returnValue;//获取FileResolver方法返回的信息&amp;#xD;&#xD;
&#xD;
var cur = view.get(&quot;#dsMain.data:#&quot;);&#xD;
cur.set(&quot;wjdz&quot;,returnValue);</ClientEvent>
      <Property name="fileResolver">uploadProcessor#uploadFile</Property>
      <Filters/>
    </UploadAction>
  </View>
</ViewConfig>
src/main/java/com/fzzy/api/view/Api1217.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,558 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.api.entity.Api1217</Property>
      <PropertyDef name="dcysdh">
        <Property></Property>
        <Property name="label">轮换验收单号</Property>
      </PropertyDef>
      <PropertyDef name="ccdw">
        <Property></Property>
        <Property name="label">承储单位</Property>
      </PropertyDef>
      <PropertyDef name="jhwh">
        <Property></Property>
        <Property name="label">计划文号</Property>
      </PropertyDef>
      <PropertyDef name="dchwbm">
        <Property></Property>
        <Property name="label">计划安排货位编码</Property>
      </PropertyDef>
      <PropertyDef name="dclspzdm">
        <Property></Property>
        <Property name="label">计划安排粮食品种代码</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;LSPZ&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="dclsdjdm">
        <Property></Property>
        <Property name="label">计划安排粮食等级代码</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;LSDJ&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="dclsscnd">
        <Property></Property>
        <Property name="label">计划安排粮食生产年度</Property>
      </PropertyDef>
      <PropertyDef name="dclssl">
        <Property name="dataType">Double</Property>
        <Property name="label">计划安排粮食数量(吨)</Property>
      </PropertyDef>
      <PropertyDef name="drhwbm">
        <Property></Property>
        <Property name="label">实际执行货位编码</Property>
      </PropertyDef>
      <PropertyDef name="drlspzdm">
        <Property></Property>
        <Property name="label">实际执行粮食品种代码</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;LSPZ&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="drlsdjdm">
        <Property></Property>
        <Property name="label">实际执行粮食等级代码</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;LSDJ&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="drlssl">
        <Property name="dataType">Double</Property>
        <Property name="label">实际执行粮食数量(吨)</Property>
      </PropertyDef>
      <PropertyDef name="drlskccb">
        <Property name="dataType">Double</Property>
        <Property name="label">实际执行粮食库存成本(元/吨)</Property>
      </PropertyDef>
      <PropertyDef name="drlsscnd">
        <Property></Property>
        <Property name="label">实际执行粮食生产年度</Property>
      </PropertyDef>
      <PropertyDef name="rksj">
        <Property name="label">实际执行入库时间</Property>
        <Property name="dataType">DateTime</Property>
      </PropertyDef>
      <PropertyDef name="wcsj">
        <Property name="label">实际执行完成时间</Property>
        <Property name="dataType">DateTime</Property>
      </PropertyDef>
      <PropertyDef name="ysjl">
        <Property></Property>
        <Property name="label">验收结论</Property>
      </PropertyDef>
      <PropertyDef name="yssj">
        <Property name="label">验收时间</Property>
        <Property name="dataType">DateTime</Property>
      </PropertyDef>
      <PropertyDef name="ccdwfzr">
        <Property></Property>
        <Property name="label">承储单位负责人</Property>
      </PropertyDef>
      <PropertyDef name="ysr">
        <Property></Property>
        <Property name="label">验收人</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <Property></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>
      <PropertyDef name="zhgxsj">
        <Property name="label">最后更新时间</Property>
        <Property name="dataType">DateTime</Property>
      </PropertyDef>
      <PropertyDef name="bizId">
        <Property></Property>
        <Property name="label">业务id</Property>
      </PropertyDef>
      <PropertyDef name="kqdm">
        <Property></Property>
        <Property name="label">库区代码</Property>
      </PropertyDef>
      <PropertyDef name="wjdz">
        <Property></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">api1217PR#listAll</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>
        <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;
</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>
    <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="dcysdh">
        <Property name="property">dcysdh</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="ccdw">
        <Property name="property">ccdw</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="dchwbm">
        <Property name="property">dchwbm</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="dclspzdm">
        <Property name="property">dclspzdm</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="dclssl">
        <Property name="property">dclssl</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="drhwbm">
        <Property name="property">drhwbm</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="drlspzdm">
        <Property name="property">drlspzdm</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="drlssl">
        <Property name="property">drlssl</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="czbz">
        <Property name="property">czbz</Property>
        <Property name="align">center</Property>
      </DataColumn>
      <DataColumn name="zhgxsj">
        <Property name="property">zhgxsj</Property>
        <Property name="align">center</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;
    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>
          <Property name="caption">上传文件</Property>
          <Property name="iconClass">fa fa-upload</Property>
          <Property name="exClassName">toolbar-button-warm</Property>
          <Property name="action">uploadAction</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">dcysdh</Property>
            <Property name="property">dcysdh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ccdw</Property>
            <Property name="property">ccdw</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jhwh</Property>
            <Property name="property">jhwh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dchwbm</Property>
            <Property name="property">dchwbm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dclspzdm</Property>
            <Property name="property">dclspzdm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dclsdjdm</Property>
            <Property name="property">dclsdjdm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dclsscnd</Property>
            <Property name="property">dclsscnd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dclssl</Property>
            <Property name="property">dclssl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">drhwbm</Property>
            <Property name="property">drhwbm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">drlspzdm</Property>
            <Property name="property">drlspzdm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">drlsdjdm</Property>
            <Property name="property">drlsdjdm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">drlssl</Property>
            <Property name="property">drlssl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">drlskccb</Property>
            <Property name="property">drlskccb</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">drlsscnd</Property>
            <Property name="property">drlsscnd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">rksj</Property>
            <Property name="property">rksj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">wcsj</Property>
            <Property name="property">wcsj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ysjl</Property>
            <Property name="property">ysjl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yssj</Property>
            <Property name="property">yssj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ccdwfzr</Property>
            <Property name="property">ccdwfzr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ysr</Property>
            <Property name="property">ysr</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">wjdz</Property>
            <Property name="property">wjdz</Property>
            <Property name="readOnly">false</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>
        </AutoForm>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">api1217PR#updateSave</Property>
      <UpdateItem>
        <Property name="dataPath">[#current]</Property>
        <Property name="dataSet">dsMain</Property>
      </UpdateItem>
    </UpdateAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">api1217PR#pushData</Property>
      <Property name="confirmMessage">确定要上报么?</Property>
    </AjaxAction>
    <AjaxAction id="ajaxDel">
      <Property name="service">api1217PR#delData</Property>
      <Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property>
    </AjaxAction>
    <AjaxAction id="ajaxDelUpdate">
      <Property name="service">api1217PR#delUpdate</Property>
      <Property name="confirmMessage">确定要将数据标记为删除么?</Property>
    </AjaxAction>
    <UploadAction id="uploadAction">
      <ClientEvent name="onFileUploaded">var returnValue = arg.returnValue;//获取FileResolver方法返回的信息&amp;#xD;&#xD;
&#xD;
var cur = view.get(&quot;#dsMain.data:#&quot;);&#xD;
cur.set(&quot;wjdz&quot;,returnValue);</ClientEvent>
      <Property name="fileResolver">uploadProcessor#uploadFile</Property>
      <Filters/>
    </UploadAction>
  </View>
</ViewConfig>
src/main/java/com/fzzy/api/view/pr/Api1109PR.java
@@ -5,7 +5,6 @@
import com.bstek.dorado.annotation.Expose;
import com.bstek.dorado.data.provider.Page;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.data.PushProtocol;
import com.fzzy.api.service.ApiCommonService;
import com.fzzy.api.service.ApiPushManager;
import com.fzzy.api.service.ApiRemoteService;
@@ -24,13 +23,10 @@
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Component;
import sun.misc.BASE64Encoder;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import java.io.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@@ -233,141 +229,4 @@
        return responseDto.toString();
    }
    /**
     * imgFile å›¾ç‰‡æœ¬åœ°å­˜å‚¨è·¯å¾„
     */
    public static String getImgFileToBase64(String imgFile) {
        //将图片文件转化为字节数组字符串,并对其进行Base64编码处理
        InputStream inputStream = null;
        byte[] buffer = null;
        //读取图片字节数组
        try {
            inputStream = new FileInputStream(imgFile);
            int count = 0;
            while (count == 0) {
                count = inputStream.available();
            }
            buffer = new byte[count];
            inputStream.read(buffer);
        } catch (IOException e) {
            log.error(e.getMessage(),e);
        } finally {
            if (inputStream != null) {
                try {
                    // å…³é—­inputStream流
                    inputStream.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
        // å¯¹å­—节数组Base64编码
        //return Base64Utils.encodeToString(buffer);
         return new BASE64Encoder().encode(buffer);
    }
    /**
     * èŽ·å–å›¾ç‰‡çš„äºŒè¿›åˆ¶æµ
     * @param imgPath
     * @return
     */
    @SuppressWarnings("resource")
    public String imgToIo(String imgPath){
        //图片转化为二进制
        byte[] imageBytes = null;
        try {
            FileInputStream fileInputStream = new FileInputStream(new File(imgPath));
            imageBytes = new byte[fileInputStream.available()];
            fileInputStream.read(imageBytes);
        } catch (IOException e) {
            System.out.println(e);
            return null;
        }
        return UnicodeByteToStr(imageBytes);
    }
    private static String UnicodeByteToStr(byte[] b){
        StringBuilder sb = new StringBuilder();
        for(int i=0;i<b.length;i++) {
            sb.append(String.format("%02x", b[i]));
        }
        return sb.toString();
    }
    /**
     * æ ¹æ®æ–‡ä»¶è·¯å¾„将文件转为二进制数组
     * @param filePath:文件路径
     * @return
     */
    public static byte[] file2byte(String filePath) {
        byte[] buffer = null;
        try {
            File file = new File(filePath);
            FileInputStream fis = new FileInputStream(file);
            ByteArrayOutputStream bos = new ByteArrayOutputStream();
            byte[] b = new byte[1024];
            int n;
            while ((n = fis.read(b)) != -1) {
                bos.write(b, 0, n);
            }
            fis.close();
            bos.close();
            buffer = bos.toByteArray();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return buffer;
    }
    /**
     * å°†äºŒè¿›åˆ¶æ•°ç»„转为字符串
     * @param b
     * @return
     */
    public static String toHexString(byte[] b) {
        StringBuilder sb = new StringBuilder();
        String stmp="";
        for (int n=0;n<b.length;n++) {
            stmp=(Integer.toHexString(b[n] & 0XFF));
            if (stmp.length()==1) sb.append("0"+stmp);
            else sb.append(stmp);
        }
        return sb.toString().toUpperCase();
    }
    public static void main(String[] args) {
        String hex = toHexString(file2byte("E://91511424746940066Y001.jpg"));
        System.out.println(hex);
        saveToImgFile(hex,"E://dd.jpg");
    }
    public static  void saveToImgFile(String src,String output){
        if(src==null||src.length()==0){
            return;
        }
        try{
            FileOutputStream out = new FileOutputStream(new File(output));
            byte[] bytes = src.getBytes();
            for(int i=0;i<bytes.length;i+=2){
                out.write(charToInt(bytes[i])*16+charToInt(bytes[i+1]));
            }
            out.close();
        }catch(Exception e){
            e.printStackTrace();
        }
    }
    private static int charToInt(byte ch){
        int val = 0;
        if(ch>=0x30&&ch<=0x39){
            val=ch-0x30;
        }else if(ch>=0x41&&ch<=0x46){
            val=ch-0x41+10;
        }
        return val;
    }
}
src/main/java/com/fzzy/api/view/pr/Api1214PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,232 @@
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.Api1214;
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.Api1214Rep;
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.Date;
import java.util.List;
/**
 * @Description ç©ºä»“验收
 * @Author CZT
 * @Date 2025/10/31 14:46
 */
@Slf4j
@Component
public class Api1214PR {
    @Autowired
    private Api1214Rep api1214Rep;
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    /**
     * api1214PR#listAll
     *
     * @return
     */
    @DataProvider
    public void listAll(Page<Api1214> page, ApiParam param) {
        //多参数分页查询
        Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, Api1214.SORT_PROP);
        if (null == param) {
            org.springframework.data.domain.Page<Api1214> japPage = api1214Rep.findAll(pageable);
            page.setEntityCount((int) japPage.getTotalElements());
            page.setEntities(japPage.getContent());
            return;
        }
        Specification<Api1214> specification = new Specification<Api1214>() {
            private static final long serialVersionUID = 1L;
            public Predicate toPredicate(Root<Api1214> root, CriteriaQuery<?> query, CriteriaBuilder cb) {
                List<Predicate> predicates = new ArrayList<Predicate>(); //所有的断言
                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.<Date>get("zhgxsj"), ContextUtil.getCurZero(param.getStart()));
                    predicates.add(predicate3);
                }
                if (null != param.getEnd()) {
                    Predicate predicate4 = cb.lessThan(root.<Date>get("zhgxsj"), ContextUtil.getNextZero(param.getEnd()));
                    predicates.add(predicate4);
                }
                return cb.and(predicates.toArray(new Predicate[0]));
            }
        };
        log.debug("---------分页参数查询----------{}", param.toString());
        org.springframework.data.domain.Page<Api1214> japPage = api1214Rep.findAll(specification, pageable);
        page.setEntityCount((int) japPage.getTotalElements());
        page.setEntities(japPage.getContent());
    }
    /**
     * api1214PR#updateSave
     *
     * @param entity
     */
    @DataResolver
    public void updateSave(Api1214 entity) {
        if (StringUtils.isEmpty(entity.getCzbz())) {
            entity.setCzbz(Constant.CZBZ_I);
        }
        // æ‰‹åЍ将doradoEntity对象转换为标准Bean对象
        Api1214 data = new Api1214();
        BeanUtils.copyProperties(entity, data);
        api1214Rep.save(data);
    }
    /**
     * api1214PR#delData
     *
     * @param data
     */
    @Expose
    public String delData(Api1214 data) {
        api1214Rep.deleteById(data.getKcysdh());
        return null;
    }
    /**
     *
     * æ›´æ–°åˆ é™¤æ ‡è®° api1214PR#delUpdate
     *
     * @param entity
     */
    @Expose
    public String delUpdate(Api1214 entity) {
        entity.setCzbz(Constant.CZBZ_D);
        Api1214 data = new Api1214();
        BeanUtils.copyProperties(entity, data);
        api1214Rep.save(data);
        return null;
    }
    /**
     * api1214PR#pushData
     *
     * @param items
     */
    @Expose
    public String pushData(List<Api1214> 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<Api1214> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) {
        ResponseDto responseDto;
        String result = "";
        //封装参数
        ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_12, Constant.API_CODE_1214);
        Api1214 d;
        for (Api1214 data : items) {
            d = new Api1214();
            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())) {
                    api1214Rep.updateStatus(data.getKcysdh(), Constant.CZBZ_U);
                }
            }
        }
        return result;
    }
    /**
     * å¤šæ¡æ•°æ®json推送
     *
     * @param items
     * @param apiRemoteService
     * @param apiConf
     * @return
     */
    private String pushDataList(List<Api1214> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) {
        //封装参数
        ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_12, Constant.API_CODE_1214);
        //推送,数据为集合形式
        ResponseDto responseDto = apiRemoteService.pushData(param, apiConf, items);
        if (responseDto.getSuccess() == 0) {
            //推送成功,更新数据上传状态
            for (Api1214 data : items) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    //更新状态
                    api1214Rep.updateStatus(data.getKcysdh(), Constant.CZBZ_U);
                }
            }
        }
        return responseDto.toString();
    }
}
src/main/java/com/fzzy/api/view/pr/Api1215PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,232 @@
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.Api1215;
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.Api1215Rep;
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.Date;
import java.util.List;
/**
 * @Description api1214PR
 * @Author CZT
 * @Date 2025/10/31 16:09
 */
@Slf4j
@Component
public class Api1215PR {
    @Autowired
    private Api1215Rep api1215Rep;
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    /**
     * api1215PR#listAll
     *
     * @return
     */
    @DataProvider
    public void listAll(Page<Api1215> page, ApiParam param) {
        //多参数分页查询
        Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, Api1215.SORT_PROP);
        if (null == param) {
            org.springframework.data.domain.Page<Api1215> japPage = api1215Rep.findAll(pageable);
            page.setEntityCount((int) japPage.getTotalElements());
            page.setEntities(japPage.getContent());
            return;
        }
        Specification<Api1215> specification = new Specification<Api1215>() {
            private static final long serialVersionUID = 1L;
            public Predicate toPredicate(Root<Api1215> root, CriteriaQuery<?> query, CriteriaBuilder cb) {
                List<Predicate> predicates = new ArrayList<Predicate>(); //所有的断言
                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.<Date>get("zhgxsj"), ContextUtil.getCurZero(param.getStart()));
                    predicates.add(predicate3);
                }
                if (null != param.getEnd()) {
                    Predicate predicate4 = cb.lessThan(root.<Date>get("zhgxsj"), ContextUtil.getNextZero(param.getEnd()));
                    predicates.add(predicate4);
                }
                return cb.and(predicates.toArray(new Predicate[0]));
            }
        };
        log.debug("---------分页参数查询----------{}", param.toString());
        org.springframework.data.domain.Page<Api1215> japPage = api1215Rep.findAll(specification, pageable);
        page.setEntityCount((int) japPage.getTotalElements());
        page.setEntities(japPage.getContent());
    }
    /**
     * api1215PR#updateSave
     *
     * @param entity
     */
    @DataResolver
    public void updateSave(Api1215 entity) {
        if (StringUtils.isEmpty(entity.getCzbz())) {
            entity.setCzbz(Constant.CZBZ_I);
        }
        // æ‰‹åЍ将doradoEntity对象转换为标准Bean对象
        Api1215 data = new Api1215();
        BeanUtils.copyProperties(entity, data);
        api1215Rep.save(data);
    }
    /**
     * api1215PR#delData
     *
     * @param data
     */
    @Expose
    public String delData(Api1215 data) {
        api1215Rep.deleteById(data.getKgysdh());
        return null;
    }
    /**
     *
     * æ›´æ–°åˆ é™¤æ ‡è®° api1215PR#delUpdate
     *
     * @param entity
     */
    @Expose
    public String delUpdate(Api1215 entity) {
        entity.setCzbz(Constant.CZBZ_D);
        Api1215 data = new Api1215();
        BeanUtils.copyProperties(entity, data);
        api1215Rep.save(data);
        return null;
    }
    /**
     * api1215PR#pushData
     *
     * @param items
     */
    @Expose
    public String pushData(List<Api1215> 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<Api1215> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) {
        ResponseDto responseDto;
        String result = "";
        //封装参数
        ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_12, Constant.API_CODE_1215);
        Api1215 d;
        for (Api1215 data : items) {
            d = new Api1215();
            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())) {
                    api1215Rep.updateStatus(data.getKgysdh(), Constant.CZBZ_U);
                }
            }
        }
        return result;
    }
    /**
     * å¤šæ¡æ•°æ®json推送
     *
     * @param items
     * @param apiRemoteService
     * @param apiConf
     * @return
     */
    private String pushDataList(List<Api1215> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) {
        //封装参数
        ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_12, Constant.API_CODE_1215);
        //推送,数据为集合形式
        ResponseDto responseDto = apiRemoteService.pushData(param, apiConf, items);
        if (responseDto.getSuccess() == 0) {
            //推送成功,更新数据上传状态
            for (Api1215 data : items) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    //更新状态
                    api1215Rep.updateStatus(data.getKgysdh(), Constant.CZBZ_U);
                }
            }
        }
        return responseDto.toString();
    }
}
src/main/java/com/fzzy/api/view/pr/Api1216PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,232 @@
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.Api1216;
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.Api1216Rep;
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.Date;
import java.util.List;
/**
 * @Description å€’仓验收
 * @Author CZT
 * @Date 2025/10/31 14:46
 */
@Slf4j
@Component
public class Api1216PR {
    @Autowired
    private Api1216Rep api1216Rep;
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    /**
     * api1216PR#listAll
     *
     * @return
     */
    @DataProvider
    public void listAll(Page<Api1216> page, ApiParam param) {
        //多参数分页查询
        Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, Api1216.SORT_PROP);
        if (null == param) {
            org.springframework.data.domain.Page<Api1216> japPage = api1216Rep.findAll(pageable);
            page.setEntityCount((int) japPage.getTotalElements());
            page.setEntities(japPage.getContent());
            return;
        }
        Specification<Api1216> specification = new Specification<Api1216>() {
            private static final long serialVersionUID = 1L;
            public Predicate toPredicate(Root<Api1216> root, CriteriaQuery<?> query, CriteriaBuilder cb) {
                List<Predicate> predicates = new ArrayList<Predicate>(); //所有的断言
                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.<Date>get("zhgxsj"), ContextUtil.getCurZero(param.getStart()));
                    predicates.add(predicate3);
                }
                if (null != param.getEnd()) {
                    Predicate predicate4 = cb.lessThan(root.<Date>get("zhgxsj"), ContextUtil.getNextZero(param.getEnd()));
                    predicates.add(predicate4);
                }
                return cb.and(predicates.toArray(new Predicate[0]));
            }
        };
        log.debug("---------分页参数查询----------{}", param.toString());
        org.springframework.data.domain.Page<Api1216> japPage = api1216Rep.findAll(specification, pageable);
        page.setEntityCount((int) japPage.getTotalElements());
        page.setEntities(japPage.getContent());
    }
    /**
     * api1216PR#updateSave
     *
     * @param entity
     */
    @DataResolver
    public void updateSave(Api1216 entity) {
        if (StringUtils.isEmpty(entity.getCzbz())) {
            entity.setCzbz(Constant.CZBZ_I);
        }
        // æ‰‹åЍ将doradoEntity对象转换为标准Bean对象
        Api1216 data = new Api1216();
        BeanUtils.copyProperties(entity, data);
        api1216Rep.save(data);
    }
    /**
     * api1216PR#delData
     *
     * @param data
     */
    @Expose
    public String delData(Api1216 data) {
        api1216Rep.deleteById(data.getDcysdh());
        return null;
    }
    /**
     *
     * æ›´æ–°åˆ é™¤æ ‡è®° api1216PR#delUpdate
     *
     * @param entity
     */
    @Expose
    public String delUpdate(Api1216 entity) {
        entity.setCzbz(Constant.CZBZ_D);
        Api1216 data = new Api1216();
        BeanUtils.copyProperties(entity, data);
        api1216Rep.save(data);
        return null;
    }
    /**
     * api1216PR#pushData
     *
     * @param items
     */
    @Expose
    public String pushData(List<Api1216> 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<Api1216> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) {
        ResponseDto responseDto;
        String result = "";
        //封装参数
        ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_12, Constant.API_CODE_1216);
        Api1216 d;
        for (Api1216 data : items) {
            d = new Api1216();
            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())) {
                    api1216Rep.updateStatus(data.getDcysdh(), Constant.CZBZ_U);
                }
            }
        }
        return result;
    }
    /**
     * å¤šæ¡æ•°æ®json推送
     *
     * @param items
     * @param apiRemoteService
     * @param apiConf
     * @return
     */
    private String pushDataList(List<Api1216> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) {
        //封装参数
        ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_12, Constant.API_CODE_1216);
        //推送,数据为集合形式
        ResponseDto responseDto = apiRemoteService.pushData(param, apiConf, items);
        if (responseDto.getSuccess() == 0) {
            //推送成功,更新数据上传状态
            for (Api1216 data : items) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    //更新状态
                    api1216Rep.updateStatus(data.getDcysdh(), Constant.CZBZ_U);
                }
            }
        }
        return responseDto.toString();
    }
}
src/main/java/com/fzzy/api/view/pr/Api1217PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,232 @@
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.Api1217;
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.Api1217Rep;
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.Date;
import java.util.List;
/**
 * @Description è½®æ¢éªŒæ”¶ä¿¡æ¯
 * @Author CZT
 * @Date 2025/10/31 16:25
 */
@Slf4j
@Component
public class Api1217PR {
    @Autowired
    private Api1217Rep api1217Rep;
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    /**
     * api1217PR#listAll
     *
     * @return
     */
    @DataProvider
    public void listAll(Page<Api1217> page, ApiParam param) {
        //多参数分页查询
        Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, Api1217.SORT_PROP);
        if (null == param) {
            org.springframework.data.domain.Page<Api1217> japPage = api1217Rep.findAll(pageable);
            page.setEntityCount((int) japPage.getTotalElements());
            page.setEntities(japPage.getContent());
            return;
        }
        Specification<Api1217> specification = new Specification<Api1217>() {
            private static final long serialVersionUID = 1L;
            public Predicate toPredicate(Root<Api1217> root, CriteriaQuery<?> query, CriteriaBuilder cb) {
                List<Predicate> predicates = new ArrayList<Predicate>(); //所有的断言
                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.<Date>get("zhgxsj"), ContextUtil.getCurZero(param.getStart()));
                    predicates.add(predicate3);
                }
                if (null != param.getEnd()) {
                    Predicate predicate4 = cb.lessThan(root.<Date>get("zhgxsj"), ContextUtil.getNextZero(param.getEnd()));
                    predicates.add(predicate4);
                }
                return cb.and(predicates.toArray(new Predicate[0]));
            }
        };
        log.debug("---------分页参数查询----------{}", param.toString());
        org.springframework.data.domain.Page<Api1217> japPage = api1217Rep.findAll(specification, pageable);
        page.setEntityCount((int) japPage.getTotalElements());
        page.setEntities(japPage.getContent());
    }
    /**
     * api1217PR#updateSave
     *
     * @param entity
     */
    @DataResolver
    public void updateSave(Api1217 entity) {
        if (StringUtils.isEmpty(entity.getCzbz())) {
            entity.setCzbz(Constant.CZBZ_I);
        }
        // æ‰‹åЍ将doradoEntity对象转换为标准Bean对象
        Api1217 data = new Api1217();
        BeanUtils.copyProperties(entity, data);
        api1217Rep.save(data);
    }
    /**
     * api1217PR#delData
     *
     * @param data
     */
    @Expose
    public String delData(Api1217 data) {
        api1217Rep.deleteById(data.getDcysdh());
        return null;
    }
    /**
     *
     * æ›´æ–°åˆ é™¤æ ‡è®° api1217PR#delUpdate
     *
     * @param entity
     */
    @Expose
    public String delUpdate(Api1217 entity) {
        entity.setCzbz(Constant.CZBZ_D);
        Api1217 data = new Api1217();
        BeanUtils.copyProperties(entity, data);
        api1217Rep.save(data);
        return null;
    }
    /**
     * api1217PR#pushData
     *
     * @param items
     */
    @Expose
    public String pushData(List<Api1217> 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<Api1217> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) {
        ResponseDto responseDto;
        String result = "";
        //封装参数
        ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_12, Constant.API_CODE_1217);
        Api1217 d;
        for (Api1217 data : items) {
            d = new Api1217();
            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())) {
                    api1217Rep.updateStatus(data.getDcysdh(), Constant.CZBZ_U);
                }
            }
        }
        return result;
    }
    /**
     * å¤šæ¡æ•°æ®json推送
     *
     * @param items
     * @param apiRemoteService
     * @param apiConf
     * @return
     */
    private String pushDataList(List<Api1217> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) {
        //封装参数
        ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_12, Constant.API_CODE_1217);
        //推送,数据为集合形式
        ResponseDto responseDto = apiRemoteService.pushData(param, apiConf, items);
        if (responseDto.getSuccess() == 0) {
            //推送成功,更新数据上传状态
            for (Api1217 data : items) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    //更新状态
                    api1217Rep.updateStatus(data.getDcysdh(), Constant.CZBZ_U);
                }
            }
        }
        return responseDto.toString();
    }
}
src/main/java/com/fzzy/api/view/pr/Api1218PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,232 @@
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.Api1218;
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.Api1218Rep;
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.Date;
import java.util.List;
/**
 * @Description å…¥åº“成本核定表
 * @Author CZT
 * @Date 2025/10/31 16:27
 */
@Slf4j
@Component
public class Api1218PR {
    @Autowired
    private Api1218Rep api1218Rep;
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    /**
     * api1218PR#listAll
     *
     * @return
     */
    @DataProvider
    public void listAll(Page<Api1218> page, ApiParam param) {
        //多参数分页查询
        Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, Api1218.SORT_PROP);
        if (null == param) {
            org.springframework.data.domain.Page<Api1218> japPage = api1218Rep.findAll(pageable);
            page.setEntityCount((int) japPage.getTotalElements());
            page.setEntities(japPage.getContent());
            return;
        }
        Specification<Api1218> specification = new Specification<Api1218>() {
            private static final long serialVersionUID = 1L;
            public Predicate toPredicate(Root<Api1218> root, CriteriaQuery<?> query, CriteriaBuilder cb) {
                List<Predicate> predicates = new ArrayList<Predicate>(); //所有的断言
                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.<Date>get("zhgxsj"), ContextUtil.getCurZero(param.getStart()));
                    predicates.add(predicate3);
                }
                if (null != param.getEnd()) {
                    Predicate predicate4 = cb.lessThan(root.<Date>get("zhgxsj"), ContextUtil.getNextZero(param.getEnd()));
                    predicates.add(predicate4);
                }
                return cb.and(predicates.toArray(new Predicate[0]));
            }
        };
        log.debug("---------分页参数查询----------{}", param.toString());
        org.springframework.data.domain.Page<Api1218> japPage = api1218Rep.findAll(specification, pageable);
        page.setEntityCount((int) japPage.getTotalElements());
        page.setEntities(japPage.getContent());
    }
    /**
     * api1218PR#updateSave
     *
     * @param entity
     */
    @DataResolver
    public void updateSave(Api1218 entity) {
        if (StringUtils.isEmpty(entity.getCzbz())) {
            entity.setCzbz(Constant.CZBZ_I);
        }
        // æ‰‹åЍ将doradoEntity对象转换为标准Bean对象
        Api1218 data = new Api1218();
        BeanUtils.copyProperties(entity, data);
        api1218Rep.save(data);
    }
    /**
     * api1218PR#delData
     *
     * @param data
     */
    @Expose
    public String delData(Api1218 data) {
        api1218Rep.deleteById(data.getRkhddh());
        return null;
    }
    /**
     *
     * æ›´æ–°åˆ é™¤æ ‡è®° api1218PR#delUpdate
     *
     * @param entity
     */
    @Expose
    public String delUpdate(Api1218 entity) {
        entity.setCzbz(Constant.CZBZ_D);
        Api1218 data = new Api1218();
        BeanUtils.copyProperties(entity, data);
        api1218Rep.save(data);
        return null;
    }
    /**
     * api1218PR#pushData
     *
     * @param items
     */
    @Expose
    public String pushData(List<Api1218> 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<Api1218> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) {
        ResponseDto responseDto;
        String result = "";
        //封装参数
        ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_12, Constant.API_CODE_1218);
        Api1218 d;
        for (Api1218 data : items) {
            d = new Api1218();
            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())) {
                    api1218Rep.updateStatus(data.getRkhddh(), Constant.CZBZ_U);
                }
            }
        }
        return result;
    }
    /**
     * å¤šæ¡æ•°æ®json推送
     *
     * @param items
     * @param apiRemoteService
     * @param apiConf
     * @return
     */
    private String pushDataList(List<Api1218> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) {
        //封装参数
        ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_12, Constant.API_CODE_1218);
        //推送,数据为集合形式
        ResponseDto responseDto = apiRemoteService.pushData(param, apiConf, items);
        if (responseDto.getSuccess() == 0) {
            //推送成功,更新数据上传状态
            for (Api1218 data : items) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    //更新状态
                    api1218Rep.updateStatus(data.getRkhddh(), Constant.CZBZ_U);
                }
            }
        }
        return responseDto.toString();
    }
}
src/main/java/com/fzzy/api/view/pr/Api1219PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,232 @@
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.Api1219;
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.Api1219Rep;
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.Date;
import java.util.List;
/**
 * @Description å…¥åº“成本核定明细表
 * @Author CZT
 * @Date 2025/10/31 16:35
 */
@Slf4j
@Component
public class Api1219PR {
    @Autowired
    private Api1219Rep api1219Rep;
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    /**
     * api1219PR#listAll
     *
     * @return
     */
    @DataProvider
    public void listAll(Page<Api1219> page, ApiParam param) {
        //多参数分页查询
        Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, Api1219.SORT_PROP);
        if (null == param) {
            org.springframework.data.domain.Page<Api1219> japPage = api1219Rep.findAll(pageable);
            page.setEntityCount((int) japPage.getTotalElements());
            page.setEntities(japPage.getContent());
            return;
        }
        Specification<Api1219> specification = new Specification<Api1219>() {
            private static final long serialVersionUID = 1L;
            public Predicate toPredicate(Root<Api1219> root, CriteriaQuery<?> query, CriteriaBuilder cb) {
                List<Predicate> predicates = new ArrayList<Predicate>(); //所有的断言
                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.<Date>get("zhgxsj"), ContextUtil.getCurZero(param.getStart()));
                    predicates.add(predicate3);
                }
                if (null != param.getEnd()) {
                    Predicate predicate4 = cb.lessThan(root.<Date>get("zhgxsj"), ContextUtil.getNextZero(param.getEnd()));
                    predicates.add(predicate4);
                }
                return cb.and(predicates.toArray(new Predicate[0]));
            }
        };
        log.debug("---------分页参数查询----------{}", param.toString());
        org.springframework.data.domain.Page<Api1219> japPage = api1219Rep.findAll(specification, pageable);
        page.setEntityCount((int) japPage.getTotalElements());
        page.setEntities(japPage.getContent());
    }
    /**
     * api1219PR#updateSave
     *
     * @param entity
     */
    @DataResolver
    public void updateSave(Api1219 entity) {
        if (StringUtils.isEmpty(entity.getCzbz())) {
            entity.setCzbz(Constant.CZBZ_I);
        }
        // æ‰‹åЍ将doradoEntity对象转换为标准Bean对象
        Api1219 data = new Api1219();
        BeanUtils.copyProperties(entity, data);
        api1219Rep.save(data);
    }
    /**
     * api1219PR#delData
     *
     * @param data
     */
    @Expose
    public String delData(Api1219 data) {
        api1219Rep.deleteById(data.getRkhddh());
        return null;
    }
    /**
     *
     * æ›´æ–°åˆ é™¤æ ‡è®° api1219PR#delUpdate
     *
     * @param entity
     */
    @Expose
    public String delUpdate(Api1219 entity) {
        entity.setCzbz(Constant.CZBZ_D);
        Api1219 data = new Api1219();
        BeanUtils.copyProperties(entity, data);
        api1219Rep.save(data);
        return null;
    }
    /**
     * api1219PR#pushData
     *
     * @param items
     */
    @Expose
    public String pushData(List<Api1219> 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<Api1219> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) {
        ResponseDto responseDto;
        String result = "";
        //封装参数
        ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_12, Constant.API_CODE_1219);
        Api1219 d;
        for (Api1219 data : items) {
            d = new Api1219();
            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())) {
                    api1219Rep.updateStatus(data.getRkhddh(), Constant.CZBZ_U);
                }
            }
        }
        return result;
    }
    /**
     * å¤šæ¡æ•°æ®json推送
     *
     * @param items
     * @param apiRemoteService
     * @param apiConf
     * @return
     */
    private String pushDataList(List<Api1219> items, ApiRemoteService apiRemoteService, ApiConfs apiConf) {
        //封装参数
        ApiParam param = new ApiParam(apiConf, Constant.API_CATEGORY_12, Constant.API_CODE_1219);
        //推送,数据为集合形式
        ResponseDto responseDto = apiRemoteService.pushData(param, apiConf, items);
        if (responseDto.getSuccess() == 0) {
            //推送成功,更新数据上传状态
            for (Api1219 data : items) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    //更新状态
                    api1219Rep.updateStatus(data.getRkhddh(), Constant.CZBZ_U);
                }
            }
        }
        return responseDto.toString();
    }
}
src/main/java/com/fzzy/api/view/repository/Api1214Rep.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,29 @@
package com.fzzy.api.view.repository;
import com.fzzy.api.entity.Api1214;
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 Api1214Rep extends JpaRepository<Api1214, String>, JpaSpecificationExecutor<Api1214> {
    @Query("from Api1214 where kqdm=:kqdm and czbz= 'i' ")
    List<Api1214> findPushData(@Param("kqdm") String kqdm);
    @Transactional
    @Modifying
    @Query("update Api1214 set czbz =:czbz where kcysdh=:kcysdh")
    void updateStatus(@Param("kcysdh") String kcysdh, @Param("czbz") String czbz);
    @Query("from Api1214 where bizId=:bizId ")
    List<Api1214> getDataByBizId(@Param("bizId") String bizId);
    @Query("from Api1214 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ")
    List<Api1214> findPushDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end);
}
src/main/java/com/fzzy/api/view/repository/Api1215Rep.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,29 @@
package com.fzzy.api.view.repository;
import com.fzzy.api.entity.Api1215;
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 Api1215Rep extends JpaRepository<Api1215, String>, JpaSpecificationExecutor<Api1215> {
    @Query("from Api1215 where kqdm=:kqdm and czbz= 'i' ")
    List<Api1215> findPushData(@Param("kqdm") String kqdm);
    @Transactional
    @Modifying
    @Query("update Api1215 set czbz =:czbz where kgysdh=:kgysdh")
    void updateStatus(@Param("kgysdh") String kgysdh, @Param("czbz") String czbz);
    @Query("from Api1215 where bizId=:bizId ")
    List<Api1215> getDataByBizId(@Param("bizId") String bizId);
    @Query("from Api1215 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ")
    List<Api1215> findPushDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end);
}
src/main/java/com/fzzy/api/view/repository/Api1216Rep.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,29 @@
package com.fzzy.api.view.repository;
import com.fzzy.api.entity.Api1216;
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 Api1216Rep extends JpaRepository<Api1216, String>, JpaSpecificationExecutor<Api1216> {
    @Query("from Api1216 where kqdm=:kqdm and czbz= 'i' ")
    List<Api1216> findPushData(@Param("kqdm") String kqdm);
    @Transactional
    @Modifying
    @Query("update Api1216 set czbz =:czbz where dcysdh=:dcysdh")
    void updateStatus(@Param("dcysdh") String dcysdh, @Param("czbz") String czbz);
    @Query("from Api1216 where bizId=:bizId ")
    List<Api1216> getDataByBizId(@Param("bizId") String bizId);
    @Query("from Api1216 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ")
    List<Api1216> findPushDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end);
}
src/main/java/com/fzzy/api/view/repository/Api1217Rep.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,29 @@
package com.fzzy.api.view.repository;
import com.fzzy.api.entity.Api1217;
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 Api1217Rep extends JpaRepository<Api1217, String>, JpaSpecificationExecutor<Api1217> {
    @Query("from Api1217 where kqdm=:kqdm and czbz= 'i' ")
    List<Api1217> findPushData(@Param("kqdm") String kqdm);
    @Transactional
    @Modifying
    @Query("update Api1217 set czbz =:czbz where dcysdh=:dcysdh")
    void updateStatus(@Param("dcysdh") String dcysdh, @Param("czbz") String czbz);
    @Query("from Api1217 where bizId=:bizId ")
    List<Api1217> getDataByBizId(@Param("bizId") String bizId);
    @Query("from Api1217 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ")
    List<Api1217> findPushDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end);
}
src/main/java/com/fzzy/api/view/repository/Api1218Rep.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,29 @@
package com.fzzy.api.view.repository;
import com.fzzy.api.entity.Api1218;
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 Api1218Rep extends JpaRepository<Api1218, String>, JpaSpecificationExecutor<Api1218> {
    @Query("from Api1218 where kqdm=:kqdm and czbz = 'i' ")
    List<Api1218> findPushData(@Param("kqdm") String kqdm);
    @Transactional
    @Modifying
    @Query("update Api1218 set czbz =:czbz where rkhddh =:rkhddh")
    void updateStatus(@Param("rkhddh") String rkhddh, @Param("czbz") String czbz);
    @Query("from Api1218 where bizId=:bizId ")
    List<Api1218> getDataByBizId(@Param("bizId") String bizId);
    @Query("from Api1218 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ")
    List<Api1218> findPushDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end);
}
src/main/java/com/fzzy/api/view/repository/Api1219Rep.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,29 @@
package com.fzzy.api.view.repository;
import com.fzzy.api.entity.Api1219;
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 Api1219Rep extends JpaRepository<Api1219, String>, JpaSpecificationExecutor<Api1219> {
    @Query("from Api1219 where kqdm =:kqdm and czbz = 'i' ")
    List<Api1219> findPushData(@Param("kqdm") String kqdm);
    @Transactional
    @Modifying
    @Query("update Api1219 set czbz =:czbz where rkhddh =:rkhddh")
    void updateStatus(@Param("rkhddh") String rkhddh, @Param("czbz") String czbz);
    @Query("from Api1219 where bizId =:bizId ")
    List<Api1219> getDataByBizId(@Param("bizId") String bizId);
    @Query("from Api1219 where kqdm =:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ")
    List<Api1219> findPushDataByTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end);
}
src/main/java/com/fzzy/push/impl/ComPushService12.java
@@ -48,6 +48,20 @@
    private Api1212Rep api1212Rep;
    @Autowired
    private Api1213Rep api1213Rep;
    @Autowired
    private Api1214Rep api1214Rep;
    @Autowired
    private Api1215Rep api1215Rep;
    @Autowired
    private Api1216Rep api1216Rep;
    @Autowired
    private Api1217Rep api1217Rep;
    @Autowired
    private Api1218Rep api1218Rep;
    @Autowired
    private Api1219Rep api1219Rep;
    /**
     * 1109 æ–‡ä»¶ä¿¡æ¯åŒæ­¥
     */
@@ -456,4 +470,172 @@
            }
        }
    }
    /**
     * 1214 å‚¨å¤‡ç²®ç©ºä»“验收表
     */
    public void pushData1214(ApiRemoteService apiRemoteService, ApiParam param) {
        //储备粮空仓验收表
        List<Api1214> list = api1214Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd());
        if (null == list || list.isEmpty()) {
            log.error("-----未获取到空仓验收信息,不推送-----");
            return;
        }
        param.setInteCategory(Constant.API_CATEGORY_12);
        param.setInteId(Constant.API_CODE_1214);
        ResponseDto responseDto;
        for (Api1214 data : list) {
            param.setBizId(data.getBizId());
            responseDto = apiRemoteService.pushData(param, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    data.setCzbz(Constant.CZBZ_U);
                    //更新状态
                    api1214Rep.save(data);
                }
            }
        }
    }
    /**
     * 1215 å‚¨å¤‡æ²¹ç©ºç½éªŒæ”¶è¡¨
     */
    public void pushData1215(ApiRemoteService apiRemoteService, ApiParam param) {
        //储备油空罐验收表
        List<Api1215> list = api1215Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd());
        if (null == list || list.isEmpty()) {
            log.error("-----未获取到空罐验收信息,不推送-----");
            return;
        }
        param.setInteCategory(Constant.API_CATEGORY_12);
        param.setInteId(Constant.API_CODE_1215);
        ResponseDto responseDto;
        for (Api1215 data : list) {
            param.setBizId(data.getBizId());
            responseDto = apiRemoteService.pushData(param, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    data.setCzbz(Constant.CZBZ_U);
                    //更新状态
                    api1215Rep.save(data);
                }
            }
        }
    }
    /**
     * 1216 å‚¨å¤‡ç²®å€’仓验收表
     */
    public void pushData1216(ApiRemoteService apiRemoteService, ApiParam param) {
        //储备粮倒仓验收表
        List<Api1216> list = api1216Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd());
        if (null == list || list.isEmpty()) {
            log.error("-----未获取到倒仓验收信息,不推送-----");
            return;
        }
        param.setInteCategory(Constant.API_CATEGORY_12);
        param.setInteId(Constant.API_CODE_1216);
        ResponseDto responseDto;
        for (Api1216 data : list) {
            param.setBizId(data.getBizId());
            responseDto = apiRemoteService.pushData(param, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    data.setCzbz(Constant.CZBZ_U);
                    //更新状态
                    api1216Rep.save(data);
                }
            }
        }
    }
    /**
     * 1217 è½®æ¢éªŒæ”¶ä¿¡æ¯
     */
    public void pushData1217(ApiRemoteService apiRemoteService, ApiParam param) {
        //轮换验收信息
        List<Api1217> list = api1217Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd());
        if (null == list || list.isEmpty()) {
            log.error("-----未获取到轮换验收信息,不推送-----");
            return;
        }
        param.setInteCategory(Constant.API_CATEGORY_12);
        param.setInteId(Constant.API_CODE_1217);
        ResponseDto responseDto;
        for (Api1217 data : list) {
            param.setBizId(data.getBizId());
            responseDto = apiRemoteService.pushData(param, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    data.setCzbz(Constant.CZBZ_U);
                    //更新状态
                    api1217Rep.save(data);
                }
            }
        }
    }
    /**
     * 1218 å…¥åº“成本核定表
     */
    public void pushData1218(ApiRemoteService apiRemoteService, ApiParam param) {
        //入库成本核定表
        List<Api1218> list = api1218Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd());
        if (null == list || list.isEmpty()) {
            log.error("-----未获取到入库成本核定表,不推送-----");
            return;
        }
        param.setInteCategory(Constant.API_CATEGORY_12);
        param.setInteId(Constant.API_CODE_1218);
        ResponseDto responseDto;
        for (Api1218 data : list) {
            param.setBizId(data.getBizId());
            responseDto = apiRemoteService.pushData(param, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    data.setCzbz(Constant.CZBZ_U);
                    //更新状态
                    api1218Rep.save(data);
                }
            }
        }
    }
    /**
     * 1219 å…¥åº“成本核定明细表
     */
    public void pushData1219(ApiRemoteService apiRemoteService, ApiParam param) {
        //入库成本核定明细表
        List<Api1219> list = api1219Rep.findPushDataByTime(param.getKqdm(), param.getStart(), param.getEnd());
        if (null == list || list.isEmpty()) {
            log.error("-----未获取到入库成本核定表,不推送-----");
            return;
        }
        param.setInteCategory(Constant.API_CATEGORY_12);
        param.setInteId(Constant.API_CODE_1219);
        ResponseDto responseDto;
        for (Api1219 data : list) {
            param.setBizId(data.getBizId());
            responseDto = apiRemoteService.pushData(param, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    data.setCzbz(Constant.CZBZ_U);
                    //更新状态
                    api1219Rep.save(data);
                }
            }
        }
    }
}
src/main/java/com/fzzy/push/sx2025/SX2025ApiRemoteService.java
@@ -720,9 +720,96 @@
            }
            return apiData;
        }
        //TODO æ–°å¢žæŽ¥å£
        //空仓验收表
        if (Constant.API_CODE_1214.equals(inteId)) {
            Api1214 api1214 = (Api1214) data;
            SX2025Api1214 apiData = new SX2025Api1214();
            BeanUtils.copyProperties(api1214, apiData);
            //设置統一货位编码
            if (StringUtils.isEmpty(apiData.getTyhwbm())) {
                String tyhwbm = apiCommonService.getTyhwbm(api1214.getHwdm());
                apiData.setTyhwbm(tyhwbm);
            }
            //设置验收视频照片
            apiData.setYsspzp(FileUtils.fileToByteString(api1214.getWjdz()));
            return apiData;
        }
        //空罐验收表
        if (Constant.API_CODE_1215.equals(inteId)) {
            Api1215 api1215 = (Api1215) data;
            SX2025Api1215 apiData = new SX2025Api1215();
            BeanUtils.copyProperties(api1215, apiData);
            //设置統一货位编码
            if (StringUtils.isEmpty(apiData.getTyygbm())) {
                String tyhwbm = apiCommonService.getTyhwbm(api1215.getHwdm());
                apiData.setTyygbm(tyhwbm);
            }
            //设置验收视频照片
            apiData.setYsspzp(FileUtils.fileToByteString(api1215.getWjdz()));
            return apiData;
        }
        //储备粮倒仓验收表
        if (Constant.API_CODE_1216.equals(inteId)) {
            Api1216 api1216 = (Api1216) data;
            SX2025Api1216 apiData = new SX2025Api1216();
            BeanUtils.copyProperties(api1216, apiData);
            //设置倒出货位统一编码
            if (StringUtils.isEmpty(apiData.getDctyhwbm())) {
                String dchwtybm = apiCommonService.getTyhwbm(api1216.getDchwbm());
                apiData.setDctyhwbm(dchwtybm);
            }
            //设置倒入货位统一编码
            if (StringUtils.isEmpty(apiData.getDrtyhwbm())) {
                String drhwtybm = apiCommonService.getTyhwbm(api1216.getDrhwbm());
                apiData.setDrtyhwbm(drhwtybm);
            }
            //设置验收视频照片
            apiData.setYsspzp(FileUtils.fileToByteString(api1216.getWjdz()));
            return apiData;
        }
        //轮换验收信息
        if (Constant.API_CODE_1217.equals(inteId)) {
            Api1217 api1217 = (Api1217) data;
            SX2025Api1217 apiData = new SX2025Api1217();
            BeanUtils.copyProperties(api1217, apiData);
            //设置倒出货位统一编码
            if (StringUtils.isEmpty(apiData.getDctyhwbm())) {
                String dchwtybm = apiCommonService.getTyhwbm(api1217.getDchwbm());
                apiData.setDctyhwbm(dchwtybm);
            }
            //设置倒入货位统一编码
            if (StringUtils.isEmpty(apiData.getDrtyhwbm())) {
                String drhwtybm = apiCommonService.getTyhwbm(api1217.getDrhwbm());
                apiData.setDrtyhwbm(drhwtybm);
            }
            //设置验收视频照片
            apiData.setYsspzp(FileUtils.fileToByteString(api1217.getWjdz()));
            return apiData;
        }
        //入库成本核定表
        if (Constant.API_CODE_1218.equals(inteId)) {
            Api1218 api1218 = (Api1218) data;
            SX2025Api1218 apiData = new SX2025Api1218();
            BeanUtils.copyProperties(api1218, apiData);
            //设置統一货位编码
            if (StringUtils.isEmpty(apiData.getTyhwbm())) {
                String tyhwbm = apiCommonService.getTyhwbm(api1218.getHwdm());
                apiData.setTyhwbm(tyhwbm);
            }
            return apiData;
        }
        //入库成本核定明细表
        if (Constant.API_CODE_1219.equals(inteId)) {
            Api1219 api1219 = (Api1219) data;
            SX2025Api1219 apiData = new SX2025Api1219();
            BeanUtils.copyProperties(api1219, apiData);
            //设置統一货位编码
            if (StringUtils.isEmpty(apiData.getTyhwbm())) {
                String tyhwbm = apiCommonService.getTyhwbm(api1219.getHwdm());
                apiData.setTyhwbm(tyhwbm);
            }
            return apiData;
        }
        //安全管理信息
        if (Constant.API_CODE_1301.equals(inteId)) {
            Api1301 api1301 = (Api1301) data;
@@ -1039,6 +1126,18 @@
                return SX2025Constant.SX_2025_API_ODS_UP_KHXXJK;
            case "1213":
                return SX2025Constant.SX_2025_API_ODS_UP_FCQRDXXJK;
            case "1214":
                return SX2025Constant.SX_2025_API_ODS_UP_KCYSJK;
            case "1215":
                return SX2025Constant.SX_2025_API_ODS_UP_KGYSJK;
            case "1216":
                return SX2025Constant.SX_2025_API_ODS_UP_DCYSJK;
            case "1217":
                return SX2025Constant.SX_2025_API_ODS_UP_LHYSJK;
            case "1218":
                return SX2025Constant.SX_2025_API_ODS_UP_RKCBHDJK;
            case "1219":
                return SX2025Constant.SX_2025_API_ODS_UP_RKCBHDMXJK;
            case "1301":
                return SX2025Constant.SX_2025_API_ODS_UP_AQGLXXJK;
            case "1302":
src/main/java/com/fzzy/push/sx2025/SX2025Constant.java
@@ -116,17 +116,6 @@
     */
    public static String SX_2025_API_ODS_UP_DCXXJK = "ODS_UP_DCXXJK";
    /**
     * æ–°å¢ž
     * ODS_UP_DCYSJK å€’仓验收数据接口
     */
    public static String SX_2025_API_ODS_UP_DCYSJK = "ODS_UP_DCYSJK";
    /**
     * æ–°å¢ž
     * ODS_UP_LHYSJK è½®æ¢éªŒæ”¶æ•°æ®æŽ¥å£
     */
    public static String SX_2025_API_ODS_UP_LHYSJK = "ODS_UP_LHYSJK";
    /**
     * ODS_UP_LSKCXXJK ç²®é£Ÿåº“存数据接口
     */
    public static String SX_2025_API_ODS_UP_LSKCXXJK = "ODS_UP_LSKCXXJK";
@@ -150,6 +139,26 @@
     * ODS_UP_KHXXJK å®¢æˆ·ä¿¡æ¯æ•°æ®æŽ¥å£
     */
    public static String SX_2025_API_ODS_UP_KHXXJK = "ODS_UP_KHXXJK";
    /**
     * æ–°å¢ž
     * ODS_UP_KCYSJK å‚¨å¤‡ç²®ç©ºä»“验收数据接口
     */
    public static String SX_2025_API_ODS_UP_KCYSJK = "ODS_UP_KCYSJK";
    /**
     * æ–°å¢ž
     * ODS_UP_KGYSJK å‚¨å¤‡æ²¹ç©ºç½éªŒæ”¶æ•°æ®æŽ¥å£
     */
    public static String SX_2025_API_ODS_UP_KGYSJK = "ODS_UP_KGYSJK";
    /**
     * æ–°å¢ž
     * ODS_UP_DCYSJK å€’仓验收数据接口
     */
    public static String SX_2025_API_ODS_UP_DCYSJK = "ODS_UP_DCYSJK";
    /**
     * æ–°å¢ž
     * ODS_UP_LHYSJK è½®æ¢éªŒæ”¶æ•°æ®æŽ¥å£
     */
    public static String SX_2025_API_ODS_UP_LHYSJK = "ODS_UP_LHYSJK";
    /**
     * æ–°å¢ž
     * ODS_UP_RKCBHDJK å…¥åº“成本核定数据接口
@@ -203,16 +212,6 @@
     * ODS_UP_ZJXXJK è´¨æ£€æ•°æ®æŽ¥å£
     */
    public static String SX_2025_API_ODS_UP_ZJXXJK = "ODS_UP_ZJXXJK";
    /**
     * æ–°å¢ž
     * ODS_UP_KCYSJK å‚¨å¤‡ç²®ç©ºä»“验收数据接口
     */
    public static String SX_2025_API_ODS_UP_KCYSJK = "ODS_UP_KCYSJK";
    /**
     * æ–°å¢ž
     * ODS_UP_KGYSJK å‚¨å¤‡æ²¹ç©ºç½éªŒæ”¶æ•°æ®æŽ¥å£
     */
    public static String SX_2025_API_ODS_UP_KGYSJK = "ODS_UP_KGYSJK";
    /*--------------------行政管理--------------------*/
src/main/java/com/fzzy/push/sx2025/data/SX2025Api1214.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,114 @@
package com.fzzy.push.sx2025.data;
import com.alibaba.fastjson.annotation.JSONField;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
 * @Description é™•西省平台2025版-空仓验收表
 * @Author CZT
 * @Date 2025/10/31 15:09
 */
@Data
public class SX2025Api1214 implements Serializable {
    @PropertyDef(label = "空仓验收单号", description = "验收申请日期yyyyMMdd + 4位顺序号")
    private String kcysdh;
    @PropertyDef(label = "统一货位编码")
    private String tyhwbm;
    @PropertyDef(label = "拟存品种代码")
    private String lspzdm;
    @PropertyDef(label = "粮食等级代码")
    private String lsdjdm;
    @PropertyDef(label = "设计仓容")
    private Double sjcr;
    @PropertyDef(label = "实际储粮品种最大仓容")
    private Double sjclzdcr;
    @PropertyDef(label = "拟储粮数量")
    private Double jysj;
    @PropertyDef(label = "储存方式", description = "1-包装 2-散装 3-包围散存")
    private String jydw;
    @PropertyDef(label = "仓房地坪完好情况")
    private String dpwhqk;
    @PropertyDef(label = "仓房墙体完好情况")
    private String qtwhqk;
    @PropertyDef(label = "仓房屋面完好情况")
    private String wmwhqk;
    @PropertyDef(label = "仓房门窗完好情况")
    private String mcwhqk;
    @PropertyDef(label = "仓房是否擅自改变仓房结构")
    private String sfszgd;
    @PropertyDef(label = "防雀网完好情况")
    private String fqwwhqk;
    @PropertyDef(label = "防虫线完好情况")
    private String fcxwhqk;
    @PropertyDef(label = "防鼠板完好情况")
    private String fsbwhqk;
    @PropertyDef(label = "通风技术手段")
    private String tfjssd;
    @PropertyDef(label = "通风系统是否完好")
    private String tfxtsfwh;
    @PropertyDef(label = "熏蒸技术手段")
    private String xzjssd;
    @PropertyDef(label = "粮情检测手段")
    private String lqjcsd;
    @PropertyDef(label = "粮情检测系统是否完好")
    private String lqjcxtsfwh;
    @PropertyDef(label = "仓门档粮设施是否完好")
    private String cmdlsssfwh;
    @PropertyDef(label = "是否清消")
    private String sfqx;
    @JSONField(format = "yyyy-MM-dd")
    @PropertyDef(label = "验收时间")
    private Date yssj;
    @PropertyDef(label = "验收结论")
    private String ysjl;
    @PropertyDef(label = "整改意见")
    private String zgyj;
    @PropertyDef(label = "承储单位负责人")
    private String ccdwfzr;
    @PropertyDef(label = "验收人")
    private String ysr;
    @PropertyDef(label = "验收视频照片")
    private String ysspzp;
    @PropertyDef(label = "备注")
    private String bz;
    @PropertyDef(label = "操作标志")
    private String czbz;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "最后更新时间")
    private Date zhgxsj;
}
src/main/java/com/fzzy/push/sx2025/data/SX2025Api1215.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,93 @@
package com.fzzy.push.sx2025.data;
import com.alibaba.fastjson.annotation.JSONField;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
 * @Description é™•西省平台2025版-空罐验收表
 * @Author CZT
 * @Date 2025/10/31 15:15
 */
@Data
public class SX2025Api1215 implements Serializable {
    @PropertyDef(label = "空罐验收单号", description = "验收申请日期yyyyMMdd + 4位顺序号")
    private String kgysdh;
    @PropertyDef(label = "统一油罐编码" )
    private String tyygbm;
    @PropertyDef(label = "拟存品种代码")
    private String ncpzdm;
    @PropertyDef(label = "设计灌容")
    private Double sjgr;
    @PropertyDef(label = "实际储油品种最大罐容")
    private Double sjcyzdgr;
    @PropertyDef(label = "拟储油数量")
    private Double jysj;
    @PropertyDef(label = "是否擅自改变油罐结构")
    private String sfszgdygjg;
    @PropertyDef(label = "油罐有无渗漏锈蚀")
    private String ygywslxs;
    @PropertyDef(label = "罐基有无开裂、下沉现象")
    private String gjywklxcxx;
    @PropertyDef(label = "油罐地坪是否完全硬化")
    private String ygdpsfwqyh;
    @PropertyDef(label = "护油堤是否存在开裂缺口等情况")
    private String hydsfzc;
    @PropertyDef(label = "罐区内排水有无阀门控制")
    private String gtfmsfzc;
    @PropertyDef(label = "罐内是否清洁")
    private String gnsfqj;
    @PropertyDef(label = "爬梯是否安全")
    private String ptsfaq;
    @PropertyDef(label = "灌顶安全护栏是否完好")
    private String gdaqhlsfwh;
    @PropertyDef(label = "油罐区是否处于低洼点")
    private String gqsfcydwd;
    @PropertyDef(label = "验收时间")
    private Date yssj;
    @PropertyDef(label = "验收结论")
    private String ysjl;
    @PropertyDef(label = "整改意见")
    private String zgyj;
    @PropertyDef(label = "承储单位负责人")
    private String ccdwfzr;
    @PropertyDef(label = "验收人")
    private String ysr;
    @PropertyDef(label = "验收视频照片")
    private String ysspzp;
    @PropertyDef(label = "备注")
    private String bz;
    @PropertyDef(label = "操作标志")
    private String czbz;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "最后更新时间")
    private Date zhgxsj;
}
src/main/java/com/fzzy/push/sx2025/data/SX2025Api1216.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,92 @@
package com.fzzy.push.sx2025.data;
import com.alibaba.fastjson.annotation.JSONField;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
 * @Description é™•西省平台2025版-储备粮倒仓验收表
 * @Author CZT
 * @Date 2025/10/31 15:18
 */
@Data
public class SX2025Api1216 implements Serializable {
    @PropertyDef(label = "倒仓验收单号", description = "验收申请日期yyyyMMdd + 4位顺序号")
    private String dcysdh;
    @PropertyDef(label = "承储单位" )
    private String ccdw;
    @PropertyDef(label = "计划文号")
    private String jhwh;
    @PropertyDef(label = "倒出仓房统一货位编码" )
    private String dctyhwbm;
    @PropertyDef(label = "倒出粮食品种代码" )
    private String dclspzdm;
    @PropertyDef(label = "倒出粮食等级代码" )
    private String dclsdjdm;
    @PropertyDef(label = "倒出粮食生产年度" )
    private String dclsscnd;
    @PropertyDef(label = "倒出粮食数量(吨)" )
    private Double dclssl;
    @PropertyDef(label = "倒入仓房统一货位编码" )
    private String drtyhwbm;
    @PropertyDef(label = "倒入粮食品种代码" )
    private String drlspzdm;
    @PropertyDef(label = "倒入粮食等级代码" )
    private String drlsdjdm;
    @PropertyDef(label = "倒入粮食数量(吨)" )
    private Double drlssl;
    @PropertyDef(label = "倒入粮食库存成本(元/吨)" )
    private Double drlskccb;
    @PropertyDef(label = "倒入粮食生产年度" )
    private String drlsscnd;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "入库时间")
    private Date rksj;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "倒仓完成时间")
    private Date wcsj;
    @PropertyDef(label = "验收结论")
    private String ysjl;
    @JSONField(format = "yyyy-MM-dd")
    @PropertyDef(label = "验收时间")
    private Date yssj;
    @PropertyDef(label = "承储单位负责人")
    private String ccdwfzr;
    @PropertyDef(label = "验收人")
    private String ysr;
    @PropertyDef(label = "验收视频照片")
    private String ysspzp;
    @PropertyDef(label = "备注")
    private String bz;
    @PropertyDef(label = "操作标志")
    private String czbz;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "最后更新时间")
    private Date zhgxsj;
}
src/main/java/com/fzzy/push/sx2025/data/SX2025Api1217.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,92 @@
package com.fzzy.push.sx2025.data;
import com.alibaba.fastjson.annotation.JSONField;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
 * @Description é™•西省平台2025版-轮换验收信息
 * @Author CZT
 * @Date 2025/10/31 15:25
 */
@Data
public class SX2025Api1217 implements Serializable {
    @PropertyDef(label = "轮换验收单号", description = "验收申请日期yyyyMMdd + 4位顺序号")
    private String dcysdh;
    @PropertyDef(label = "承储单位")
    private String ccdw;
    @PropertyDef(label = "计划文号")
    private String jhwh;
    @PropertyDef(label = "计划安排仓房统一货位编码")
    private String dctyhwbm;
    @PropertyDef(label = "计划安排粮食品种代码")
    private String dclspzdm;
    @PropertyDef(label = "计划安排粮食等级代码")
    private String dclsdjdm;
    @PropertyDef(label = "计划安排粮食生产年度")
    private String dclsscnd;
    @PropertyDef(label = "计划安排粮食数量(吨)")
    private Double dclssl;
    @PropertyDef(label = "实际执行仓房统一货位编码")
    private String drtyhwbm;
    @PropertyDef(label = "实际执行粮食品种代码")
    private String drlspzdm;
    @PropertyDef(label = "实际执行粮食等级代码")
    private String drlsdjdm;
    @PropertyDef(label = "实际执行粮食数量(吨)")
    private Double drlssl;
    @PropertyDef(label = "实际执行粮食库存成本(元/吨)")
    private Double drlskccb;
    @PropertyDef(label = "实际执行粮食生产年度")
    private String drlsscnd;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "实际执行入库时间")
    private Date rksj;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "实际执行完成时间")
    private Date wcsj;
    @PropertyDef(label = "验收结论")
    private String ysjl;
    @JSONField(format = "yyyy-MM-dd")
    @PropertyDef(label = "验收时间")
    private Date yssj;
    @PropertyDef(label = "承储单位负责人")
    private String ccdwfzr;
    @PropertyDef(label = "验收人")
    private String ysr;
    @PropertyDef(label = "验收视频照片")
    private String ysspzp;
    @PropertyDef(label = "备注")
    private String bz;
    @PropertyDef(label = "操作标志")
    private String czbz;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "最后更新时间")
    private Date zhgxsj;
}
src/main/java/com/fzzy/push/sx2025/data/SX2025Api1218.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,55 @@
package com.fzzy.push.sx2025.data;
import com.alibaba.fastjson.annotation.JSONField;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
 * @Description é™•西省平台2025版-入库成本核定表
 * @Author CZT
 * @Date 2025/10/31 15:25
 */
@Data
public class SX2025Api1218 implements Serializable {
    @PropertyDef(label = "入库核定单号", description = "验收申请日期yyyyMMdd + 4位顺序号")
    private String rkhddh;
    @PropertyDef(label = "统一货位编码" )
    private String tyhwbm;
    @PropertyDef(label = "储粮品种代码" )
    private String lspzdm;
    @PropertyDef(label = "核定单价" )
    private Double hddj;
    @PropertyDef(label = "核定数量" )
    private Double hdsl;
    @PropertyDef(label = "粮食性质" )
    private String lsxz;
    @PropertyDef(label = "填报单位" )
    private String tbdw;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "填报时间")
    private Date tbsj;
    @PropertyDef(label = "单位负责人")
    private String dwfzr;
    @PropertyDef(label = "填报人")
    private String tbr;
    @PropertyDef(label = "操作标志")
    private String czbz;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "最后更新时间")
    private Date zhgxsj;
}
src/main/java/com/fzzy/push/sx2025/data/SX2025Api1219.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,56 @@
package com.fzzy.push.sx2025.data;
import com.alibaba.fastjson.annotation.JSONField;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
 * @Description é™•西省平台2025版-入库成本核定明细表
 * @Author CZT
 * @Date 2025/10/31 15:32
 */
@Data
public class SX2025Api1219 implements Serializable {
    @PropertyDef(label = "入库核定单号", description = "验收申请日期yyyyMMdd + 4位顺序号")
    private String rkhddh;
    @PropertyDef(label = "货位编码" )
    private String tyhwbm;
    @PropertyDef(label = "储粮品种代码" )
    private String lspzdm;
    @PropertyDef(label = "贷款金额" )
    private Double dkje;
    @PropertyDef(label = "收获年度" )
    private String shnd;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "入库时间")
    private Date rksj;
    @PropertyDef(label = "填报单位" )
    private String tbdw;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "填报时间")
    private Date tbsj;
    @PropertyDef(label = "单位负责人")
    private String dwfzr;
    @PropertyDef(label = "填报人")
    private String tbr;
    @PropertyDef(label = "操作标志")
    private String czbz;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "最后更新时间")
    private Date zhgxsj;
}
src/main/resources/templates/home/home.html
@@ -208,6 +208,24 @@
                            <dd>
                                <a lay-href="com.fzzy.api.view.Api1213.d">封仓确认单</a>
                            </dd>
                            <dd>
                                <a lay-href="com.fzzy.api.view.Api1214.d">空仓验收</a>
                            </dd>
                            <dd>
                                <a lay-href="com.fzzy.api.view.Api1215.d">空罐验收</a>
                            </dd>
                            <dd>
                                <a lay-href="com.fzzy.api.view.Api1216.d">倒仓验收</a>
                            </dd>
                            <dd>
                                <a lay-href="com.fzzy.api.view.Api1217.d">轮换验收</a>
                            </dd>
                            <dd>
                                <a lay-href="com.fzzy.api.view.Api1218.d">入库成本核定</a>
                            </dd>
                            <dd>
                                <a lay-href="com.fzzy.api.view.Api1219.d">入库成本核定明细</a>
                            </dd>
                        </dl>
                    </li>