czt
2 天以前 9f6dacf7b39e5aeba37d8faf575c9e56d8cbe51a
武汉黄陂军粮-质检报告共享接口同步及推送
已添加25个文件
已修改12个文件
5043 ■■■■■ 文件已修改
src/main/java/com/fzzy/api/timer/ApiWhjlScheduled.java 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/utils/Base64Util.java 199 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/utils/ContextUtil.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/async/whhpjl/entity/Fz40WhjlCheckItem.java 113 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/async/whhpjl/entity/Fz40WhjlCheckItemDd.java 86 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/async/whhpjl/entity/Fz40WhjlCheckItemDm.java 104 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/async/whhpjl/entity/Fz40WhjlCheckItemSyy.java 98 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/async/whhpjl/entity/Fz40WhjlCheckItemXmf.java 110 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/async/whhpjl/entity/Fz40WhjlMQuality.java 313 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/async/whhpjl/impl/Fz40ToWhjlSync1107.java 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/async/whhpjl/impl/Fz40ToWhjlSync1108.java 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/async/whhpjl/impl/Fz40ToWhjlSync1212.java 71 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/async/whhpjl/impl/Fz40ToWhjlSync1216.java 123 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/async/whhpjl/repository/Fz40ToWhjlSync1107Rep.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/async/whhpjl/repository/Fz40ToWhjlSync1108Rep.java 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/async/whhpjl/repository/Fz40ToWhjlSync1216Rep.java 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/async/whhpjl/repository/Fz40ToWhjlSync2013DdRep.java 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/async/whhpjl/repository/Fz40ToWhjlSync2013DmRep.java 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/async/whhpjl/repository/Fz40ToWhjlSync2013Rep.java 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/async/whhpjl/repository/Fz40ToWhjlSync2013SyyRep.java 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/async/whhpjl/repository/Fz40ToWhjlSync2013XmfRep.java 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1112.view.xml 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1212.view.xml 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlConstant.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2013.view.xml 1282 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi20132.view.xml 1330 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/ShareApi2013Dd.java 37 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/ShareApi2013Dm.java 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/ShareApi2013Syy.java 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/ShareApi2013Xmf.java 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlShareApi2013.java 79 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2013PR.java 391 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2013PR2.java 327 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/push/whhpjl/WhjlApiRemoteService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application-dev.yml 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application.yml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/templates/home/home-whjl.html 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/api/timer/ApiWhjlScheduled.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,35 @@
package com.fzzy.api.timer;
import com.fzzy.otherview.whhpjl.pr.WhjlShareApi2013PR2;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
/**
 * @Description æ­¦æ±‰å†›ç²®çœå¹³å°
 * @Author CZT
 * @Date 2024/6/28 16:38
 */
@Slf4j
@Component(ApiWhjlScheduled.BEAN_ID)
public class ApiWhjlScheduled {
    public static final String BEAN_ID = "api.apiWhjlScheduled";
    @Autowired
    private WhjlShareApi2013PR2 whjlShareApi2013PR2;
    /**
     * æ¯å¤©æ™šä¸Š11点定时统计数据相符性
     */
    @Scheduled(cron = "0 0 23 * * ? ")
    public void scheduled() {
        log.info("------->>>>>>>>>>武汉黄陂军粮,系统定时统计共享接口省质检报告");
        //获取共享数据
        whjlShareApi2013PR2.pullData(null);
        //同步至库区数据库
        whjlShareApi2013PR2.sysDataToDept();
    }
}
src/main/java/com/fzzy/api/utils/Base64Util.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,199 @@
package com.fzzy.api.utils;
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;
import java.io.*;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.util.Base64;
/**
 *
 */
@SuppressWarnings("restriction")
public class Base64Util {
    static BASE64Decoder decoder = new BASE64Decoder();
    public static String UTF_8 = "UTF-8";
    public static String BASE_IMG_START = "data:image/jpg;base64,";
    /**
     * æ ¹æ®åœ°å€ï¼ŒæŠŠå›¾ç‰‡è½¬æ¢ä¸ºBase64字符串
     * <p>
     * data:image/jpg;base64,
     *
     * @param diskFile
     * @return
     */
    public static String getImageStr(String diskFile) {
        InputStream in = null;
        byte[] data = null;
        // è¯»å–图片字节数组
        try {
            in = new FileInputStream(diskFile);
            data = new byte[in.available()];
            in.read(data);
            // in.close();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                if (null != in)
                    in.close();
            } catch (Exception e) {
            }
        }
        BASE64Encoder encoder = new BASE64Encoder();
        return BASE_IMG_START + encoder.encode(data);
    }
    /**
     * å¯¹å­—节数组字符串进行Base64解码并生成图片
     *
     * @param imgStr
     * @return
     */
    public static boolean generateImage(String imgStr, String diskFile) {
        if (imgStr == null)
            return false;
        if (imgStr.startsWith("data:")) {
            imgStr = imgStr.substring(BASE_IMG_START.length());
        }
        BASE64Decoder decoder = new BASE64Decoder();
        OutputStream out = null;
        try {
            // Base64解码
            byte[] b = decoder.decodeBuffer(imgStr);
            for (int i = 0; i < b.length; ++i) {
                if (b[i] < 0) {
                    b[i] += 256;
                }
            }
            // ç”Ÿæˆjpeg图片
            out = new FileOutputStream(diskFile);
            out.write(b);
            out.flush();
            // out.close();
            return true;
        } catch (Exception e) {
            return false;
        } finally {
            try {
                if (null != out)
                    out.close();
            } catch (Exception e) {
            }
        }
    }
    public static String encode2String(byte[] data) {
        BASE64Encoder encoder = new BASE64Encoder();
        return BASE_IMG_START + encoder.encode(data);
    }
    /**
     * å°†Base64编码的数据转换为文件并保存到本地
     *
     * @param base64Data Base64编码的字符串数据
     * @param outputFilePath è¾“出文件的路径
     * @return å¦‚果成功,返回保存的文件路径;否则返回null
     */
    public static String saveBase64ToFile(String base64Data, String outputFilePath) {
        try {
            // ç§»é™¤å¯èƒ½å­˜åœ¨çš„Base64数据前缀(例如data:image/png;base64,)
            if (base64Data.contains(";base64,")) {
                base64Data = base64Data.split(";base64,")[1];
            }
            // è§£ç Base64数据
            byte[] fileData = Base64.getDecoder().decode(base64Data);
            // ç¡®ä¿ç›®å½•存在
            Path path = Paths.get(outputFilePath);
            Path parentDir = path.getParent();
            if (parentDir != null && !Files.exists(parentDir)) {
                Files.createDirectories(parentDir);
            }
            // å†™å…¥æ–‡ä»¶
            Files.write(path, fileData, StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING);
            System.out.println("文件已成功保存至: " + outputFilePath);
            return outputFilePath;
        } catch (IllegalArgumentException e) {
            System.out.println("错误: æ— æ•ˆçš„Base64数据 - " + e.getMessage());
            return null;
        } catch (IOException e) {
            System.out.println("错误: æ–‡ä»¶æ“ä½œå¤±è´¥ - " + e.getMessage());
            return null;
        } catch (Exception e) {
            System.out.println("错误: å‘生了未知错误 - " + e.getMessage());
            return null;
        }
    }
    /**
     * å°†base64编码转换成PDF,保存
     *
     * @param base64sString 1.使用BASE64Decoder对编码的字符串解码成字节数组
     *                      2.使用底层输入流ByteArrayInputStream对象从字节数组中获取数据;
     *                      3.建立从底层输入流中读取数据的BufferedInputStream缓冲输出流对象;
     *                      4.使用BufferedOutputStream和FileOutputSteam输出数据到指定的文件中
     */
    public static void base64StringToPDF(String base64sString, String filePath, String fileName) {
        File file1 = new File(filePath);
        if (!file1.exists()) {
            file1.mkdirs();
        }
        BufferedInputStream bin = null;
        FileOutputStream fout = null;
        BufferedOutputStream bout = null;
        try {
            //将base64编码的字符串解码成字节数组
            byte[] bytes = decoder.decodeBuffer(base64sString);
            //apache公司的API
            //byte[] bytes = Base64.decodeBase64(base64sString);
            //创建一个将bytes作为其缓冲区的ByteArrayInputStream对象
            ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
            //创建从底层输入流中读取数据的缓冲输入流对象
            bin = new BufferedInputStream(bais);
            //指定输出的文件
            File file = new File(filePath + fileName);
            //创建到指定文件的输出流
            fout = new FileOutputStream(file);
            //为文件输出流对接缓冲输出流对象
            bout = new BufferedOutputStream(fout);
            byte[] buffers = new byte[1024];
            int len = bin.read(buffers);
            while (len != -1) {
                bout.write(buffers, 0, len);
                len = bin.read(buffers);
            }
            //刷新此输出流并强制写出所有缓冲的输出字节,必须这行代码,否则有可能有问题
            bout.flush();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                bin.close();
                fout.close();
                bout.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
src/main/java/com/fzzy/api/utils/ContextUtil.java
@@ -2,6 +2,8 @@
import com.fzzy.api.Constant;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.math.RandomUtils;
import org.apache.commons.lang.time.DateFormatUtils;
import org.apache.commons.lang.time.DateUtils;
import java.util.Calendar;
@@ -22,6 +24,9 @@
        return System.currentTimeMillis() + "";
    }
    public static String getTimeId(int random) {
        return DateFormatUtils.format(new Date(), "yyyyMMddHHmmss") + RandomUtils.nextInt(random);
    }
    /**
     * æ ¹æ®å½“前时间获取只有 yyyy-MM-dd的时间
src/main/java/com/fzzy/async/whhpjl/entity/Fz40WhjlCheckItem.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,113 @@
package com.fzzy.async.whhpjl.entity;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
/**
 * ç”¨äºŽå‡ºå…¥åº“质检详细项和日常巡检的详细项记录
 *
 * @author: andy.jia
 * @description:
 * @version:
 * @data:2020å¹´4月7日
 */
@Data
@Entity
@Table(name = "D_CHECK_ITEM")
public class Fz40WhjlCheckItem implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "CHECK_ID_", length = 40)
    @PropertyDef(label = "检测编码")
    private String checkId;
    @Id
    @Column(name = "COMPANY_ID_", length = 10)
    @PropertyDef(label = "组织编码")
    private String companyId;
    @Id
    @Column(name = "STANDARD_ID_", length = 10)
    @PropertyDef(label = "检测项编码")
    private String standardId;
    @Column(name = "STANDARD_NAME_", length = 50)
    @PropertyDef(label = "化验项")
    private String standardName;
    @Column(name = "UNIT_", length = 20)
    @PropertyDef(label = "单位")
    private String unit;
    @Column(name = "UPPER_LIMIT_")
    @PropertyDef(label = "标准伐值")
    private Double upperLimit;
    @Column(name = "OPERA_SYMBOL_", length = 4)
    @PropertyDef(label = "运算符号")
    private String operaSymbol;
    @Column(name = "RULE_NUM_")
    @PropertyDef(label = "扣重系数")
    private Double ruleNum;
    @Column(name = "RULE_ADD_")
    @PropertyDef(label = "增重%")
    private Double ruleAdd;
    @Column(name = "RULE_ADD_END_")
    @PropertyDef(label = "增重上限%")
    private Double ruleAddEnd;
    @Column(name = "RULE_REDUCE_")
    @PropertyDef(label = "扣重值%")
    private Double ruleReduce;
    @Column(name = "VALUE_", length = 40)
    @PropertyDef(label = "检测值")
    private String value;
    @Column(name = "RULE_PRICE_")
    @PropertyDef(label = "扣费系数")
    private Double rulePrice;
    @Column(name = "RULE_REDUCE_PRICE_")
    @PropertyDef(label = "扣费")
    private Double ruleReducePrice;
    @Column(name = "ADD_NUM_")
    @PropertyDef(label = "增重", description = "单位:kG")
    private Double addNum;
    @Column(name = "DE_NUM_")
    @PropertyDef(label = "扣重", description = "单位:kG")
    private Double deNum;
    @Column(name = "ADD_PRICE_")
    @PropertyDef(label = "增价", description = "单位:元")
    private Double addPrice;
    @Column(name = "DE_PRICE_")
    @PropertyDef(label = "扣价", description = "单位:元")
    private Double dePrice;
    @Column(name = "RESULT_", length = 2)
    @PropertyDef(label = "检验结果", description = "0=不合格 1=合格")
    private String result;
    @Column(name = "REMARKS_", length = 50)
    @PropertyDef(label = "备注")
    private String remarks;
}
src/main/java/com/fzzy/async/whhpjl/entity/Fz40WhjlCheckItemDd.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,86 @@
package com.fzzy.async.whhpjl.entity;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Data
@Entity
@Table(name = "D_CHECK_ITEM_Dd")
public class Fz40WhjlCheckItemDd {
    @Id
    @Column(name = "QLY_ORG_REPORT_SOYBEAN_ID_", length = 40)
    @PropertyDef(label = "大豆质检结果ID")
    private String qlyOrgReportSoybeanId;  //大豆质检结果ID
    @Column(name = "QLY_ORG_REPORT_ID_", length = 40)
    @PropertyDef(label = "质检报告管理id")
    private String qlyOrgReportId;  //质检报告管理id
    @Column(name = "COMPLETE_PARTICLE_", length = 50)
    @PropertyDef(label = "完整粒率")
    private String completeParticle;  //完整粒率
    @Column(name = "DAMAGE_PARTICLE_", length = 50)
    @PropertyDef(label = "损伤粒率")
    private String damageParticle;  //损伤粒率
    @Column(name = "DAMAGE_PARTICLE_HOT_", length = 50)
    @PropertyDef(label = "热损伤粒率")
    private String damageParticleHot;  //热损伤粒率
    @Column(name = "WATER_CONTENT_", length = 50)
    @PropertyDef(label = "水分含量")
    private String waterContent;  //水分含量
    @Column(name = "COLOR_ODOR_", length = 50)
    @PropertyDef(label = "色泽气味")
    private String colorOdor;  //色泽气味
    @Column(name = "IMPURITY_CONTENT_", length = 50)
    @PropertyDef(label = "杂质含量")
    private String impurityContent;  //杂质含量
    @Column(name = "TRANSGENOSIS_CAMV_", length = 50)
    @PropertyDef(label = "CAMV35S")
    private String transgenosisCamv;  //CAMV35S
    @Column(name = "TRANSGENOSIS_NOS_", length = 50)
    @PropertyDef(label = "NOS")
    private String transgenosisNos;  //NOS
    @Column(name = "TRANSGENOSIS_CO_FOUR_", length = 50)
    @PropertyDef(label = "CO4EPSPS")
    private String transgenosisCoFour;  //CO4EPSPS
    @Column(name = "LECTION_", length = 50)
    @PropertyDef(label = "LECTION")
    private String lection;  //LECTION
    @Column(name = "QUALITY_RESULT_", length = 50)
    @PropertyDef(label = "质量判定")
    private String qualityResult;  //质量判定
    @Column(name = "DELECTION_PERSON_", length = 50)
    @PropertyDef(label = "检验人")
    private String delectionPerson;  //检验人
    @Column(name = "DELECTION_START_TIME_", length = 50)
    @PropertyDef(label = "检测开始时间")
    private String delectionStartTime;  //检测开始时间
    @Column(name = "DELECTION_END_TIME_", length = 50)
    @PropertyDef(label = "检测结束时间")
    private String delectionEndTime;  //检测结束时间
    @Column(name = "INSPECTION_RESULT_", length = 50)
    @PropertyDef(label = "检验结论")
    private String inspectionResult;  //检验结论
}
src/main/java/com/fzzy/async/whhpjl/entity/Fz40WhjlCheckItemDm.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,104 @@
package com.fzzy.async.whhpjl.entity;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Data
@Entity
@Table(name = "D_CHECK_ITEM_DM")
public class Fz40WhjlCheckItemDm {
    @Id
    @Column(name = "QLY_ORG_REPORT_RICE_ID_", length = 40)
    @PropertyDef(label = "大米质检结果ID")
    private String qlyOrgReportRiceId;  //大米质检结果ID
    @Column(name = "QLY_ORG_REPORT_ID_", length = 40)
    @PropertyDef(label = "质检报告管理id")
    private String qlyOrgReportId;  //质检报告管理id
    @Column(name = "BROKEN_RICE_", length = 50)
    @PropertyDef(label = "碎米总量")
    private String brokenRice;  //碎米总量
    @Column(name = "SMALL_BROKEN_RICE_", length = 50)
    @PropertyDef(label = "小碎米含量")
    private String smallBrokenRice;  //小碎米含量
    @Column(name = "PROCESSING_ACCURACY_", length = 50)
    @PropertyDef(label = "加工精度")
    private String processingAccuracy;  //加工精度
    @Column(name = "COLOR_ODOR_", length = 50)
    @PropertyDef(label = "色泽气味")
    private String colorOdor;  //色泽气味
    @Column(name = "IMPURITY_CONTENT_", length = 50)
    @PropertyDef(label = "杂质含量")
    private String impuriryContent;  //杂质含量
    @Column(name = "TASTING_VALUE_", length = 50)
    @PropertyDef(label = "品尝评分值")
    private String tastingValue;  //品尝评分值
    @Column(name = "AMYLOSE_CONTENT_", length = 50)
    @PropertyDef(label = "直链淀粉含量")
    private String amyloseContent;  //直链淀粉含量
    @Column(name = "WATER_CONTENT_", length = 50)
    @PropertyDef(label = "水分含量")
    private String waterContent;  //水分含量
    @Column(name = "INCOMPLETE_CONTENT_", length = 50)
    @PropertyDef(label = "不完善粒含量")
    private String incompleteContent;  //不完善粒含量
    @Column(name = "INORGANIC_CONTENT_", length = 50)
    @PropertyDef(label = "无机杂质含量")
    private String inorganicContent;  //无机杂质含量
    @Column(name = "YELLOW_RICE_CONTENT_", length = 50)
    @PropertyDef(label = "黄粒米含量")
    private String yellowRiceContent;  //黄粒米含量
    @Column(name = "MIXING_RATE_", length = 50)
    @PropertyDef(label = "互混率")
    private String mixingRate;  //互混率
    @Column(name = "AFLATIOXIN_", length = 50)
    @PropertyDef(label = "黄曲霉毒素")
    private String aflatioxin;  //黄曲霉毒素
    @Column(name = "CADMIUM_", length = 50)
    @PropertyDef(label = "镉")
    private String cadmium;  //镉
    @Column(name = "INORGANIC_ARCENIC_", length = 50)
    @PropertyDef(label = "无机砷")
    private String inorganicArsenic;  //无机砷
    @Column(name = "QUALITY_RESULT_", length = 50)
    @PropertyDef(label = "质量判定")
    private String qualityResult;  //质量判定
    @Column(name = "DELECTION_PERSON_", length = 50)
    @PropertyDef(label = "检验人")
    private String delectionPerson;  //检验人
    @Column(name = "DELECTION_START_TIME_", length = 50)
    @PropertyDef(label = "检测开始时间")
    private String delectionStartTime;  //检测开始时间
    @Column(name = "DELECTION_END_TIME_", length = 50)
    @PropertyDef(label = "检测结束时间")
    private String delectionEndTime;  //检测结束时间
    @Column(name = "INSPECTION_RESULT_", length = 50)
    @PropertyDef(label = "检验结论")
    private String inspectionResult;  //检验结论
}
src/main/java/com/fzzy/async/whhpjl/entity/Fz40WhjlCheckItemSyy.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,98 @@
package com.fzzy.async.whhpjl.entity;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Data
@Entity
@Table(name = "D_CHECK_ITEM_SYY")
public class Fz40WhjlCheckItemSyy {
    @Id
    @Column(name = "QLY_ORG_REPORT_OIL_ID_", length = 40)
    @PropertyDef(label = "食用油质检结果ID")
    private String qlyOrgReportOilId;  //食用油质检结果ID
    @Column(name = "QLY_ORG_REPORT_ID_", length = 40)
    @PropertyDef(label = "质检报告管理id")
    private String qlyOrgReportId;  //质检报告管理id
    @Column(name = "COLOR_LUSTRE_", length = 50)
    @PropertyDef(label = "色泽")
    private String colorLustre;  //色泽
    @Column(name = "TRANSPARENCY_", length = 50)
    @PropertyDef(label = "透明度")
    private String transparency;  //透明度
    @Column(name = "ODOR_TASTE_", length = 50)
    @PropertyDef(label = "气味滋味")
    private String odorTaste;  //气味滋味
    @Column(name = "WATER_VOLATILE_CONTENT_", length = 50)
    @PropertyDef(label = "水分及挥发物含量")
    private String waterVolatileContent;  //水分及挥发物含量
    @Column(name = "INSOLUBLE_CONTENT_", length = 50)
    @PropertyDef(label = "不溶性杂质含量")
    private String insolubleContent;  //不溶性杂质含量
    @Column(name = "ACID_VALUE_", length = 50)
    @PropertyDef(label = "酸价")
    private String acidValue;  //酸价
    @Column(name = "PEROXIDE_VALUE_", length = 50)
    @PropertyDef(label = "过氧化值")
    private String peroxideValue;  //过氧化值
    @Column(name = "HEATING_TEST_", length = 50)
    @PropertyDef(label = "加热试验")
    private String heatingTest;  //加热试验
    @Column(name = "AFLATIOXIN_", length = 50)
    @PropertyDef(label = "黄曲霉毒素")
    private String aflatioxin;  //黄曲霉毒素
    @Column(name = "BENZO_PYRENE_", length = 50)
    @PropertyDef(label = "苯并芘")
    private String benzoPyrene;  //苯并芘
    @Column(name = "BHA_", length = 50)
    @PropertyDef(label = "BHA")
    private String bha;  //BHA
    @Column(name = "BHT_", length = 50)
    @PropertyDef(label = "BHT")
    private String bht;  //BHT
    @Column(name = "TBHQ_", length = 50)
    @PropertyDef(label = "TBHQ")
    private String tbhq;  //TBHQ
    @Column(name = "QUALITY_RESULT_", length = 50)
    @PropertyDef(label = "质量判定")
    private String qualityResult;  //质量判定
    @Column(name = "DELECTION_PERSON_", length = 50)
    @PropertyDef(label = "检验人")
    private String delectionPerson;  //检验人
    @Column(name = "DELECTION_START_TIME_", length = 50)
    @PropertyDef(label = "检测开始时间")
    private String delectionStartTime;  //检测开始时间
    @Column(name = "DELECTION_END_TIME_", length = 50)
    @PropertyDef(label = "检测结束时间")
    private String delectionEndTime;  //检测结束时间
    @Column(name = "INSPECTION_RESULT_", length = 50)
    @PropertyDef(label = "检验结论")
    private String inspectionResult;  //检验结论
}
src/main/java/com/fzzy/async/whhpjl/entity/Fz40WhjlCheckItemXmf.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,110 @@
package com.fzzy.async.whhpjl.entity;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Data
@Entity
@Table(name = "D_CHECK_ITEM_XMF")
public class Fz40WhjlCheckItemXmf {
    @Id
    @Column(name = "QLY_ORG_REPORT_NOODLES_ID_", length = 40)
    @PropertyDef(label = "小麦粉质检结果ID")
    private String qlyOrgReportNoodlesId;  //小麦粉质检结果ID
    @Column(name = "QLY_ORG_REPORT_ID_", length = 40)
    @PropertyDef(label = "质检报告管理id")
    private String qlyOrgReportId;  //质检报告管理id
    @Column(name = "PROCESSING_ACCURACY_", length = 50)
    @PropertyDef(label = "加工精度")
    private String processingAccuracy;  //加工精度
    @Column(name = "COLOR_ODOR_", length = 50)
    @PropertyDef(label = "色泽气味")
    private String colorOdor;  //色泽气味
    @Column(name = "WATER_CONTENT_", length = 50)
    @PropertyDef(label = "水分含量")
    private String waterContent;  //水分含量
    @Column(name = "CADMIUM_", length = 50)
    @PropertyDef(label = "镉")
    private String cadmium;  //镉
    @Column(name = "QUALITY_RESULT_", length = 50)
    @PropertyDef(label = "质量判定")
    private String qualityResult;  //质量判定
    @Column(name = "DELECTION_PERSON_", length = 50)
    @PropertyDef(label = "检验人")
    private String delectionPerson;  //检验人
    @Column(name = "DELECTION_START_TIME_", length = 50)
    @PropertyDef(label = "检测开始时间")
    private String delectionStartTime;  //检测开始时间
    @Column(name = "DELECTION_END_TIME_", length = 50)
    @PropertyDef(label = "检测结束时间")
    private String delectionEndTime;  //检测结束时间
    @Column(name = "INSPECTION_RESULT_", length = 50)
    @PropertyDef(label = "检验结论")
    private String inspectionResult;  //检验结论
    @Column(name = "ASH_CONTENT_", length = 50)
    @PropertyDef(label = "灰分含量")
    private String ashContent;  //灰分含量
    @Column(name = "FATTY_CONTENT_", length = 50)
    @PropertyDef(label = "脂肪酸含量")
    private String fattyContent;  //脂肪酸含量
    @Column(name = "SAND_CONTENT_", length = 50)
    @PropertyDef(label = "含砂量")
    private String sandContent;  //含砂量
    @Column(name = "LOOKS_FORM_", length = 50)
    @PropertyDef(label = "外观形态")
    private String looksForm;  //外观形态
    @Column(name = "WET_GLUTEN_", length = 50)
    @PropertyDef(label = "湿面筋含量")
    private String wetGluten;  //湿面筋含量
    @Column(name = "DEOXYNIVALENOL_", length = 50)
    @PropertyDef(label = "脱氧雪腐镰刀菌烯醇")
    private String deoxynivalenol;  //脱氧雪腐镰刀菌烯醇
    @Column(name = "ZEARALENONE_", length = 50)
    @PropertyDef(label = "玉米赤霉烯酮")
    private String zearalenone;  //玉米赤霉烯酮
    @Column(name = "LEAD_", length = 50)
    @PropertyDef(label = "铅")
    private String lead;  //铅
    @Column(name = "BENZOYL_PEROXIDE_", length = 50)
    @PropertyDef(label = "过氧化苯甲酰")
    private String benzoylPeroxide;  //过氧化苯甲酰
    @Column(name = "REPORT_FILE_", length = 100)
    @PropertyDef(label = "报告文件")
    private String reportFile;  //报告文件
    @Column(name = "HFHLJG_", length = 50)
    @PropertyDef(label = "灰分含量结果")
    private String hfhljg;  //灰分含量结果
    @Column(name = "ZFSHLJG_", length = 50)
    @PropertyDef(label = "脂肪酸含量结果")
    private String zfshljg;  //脂肪酸含量结果
}
src/main/java/com/fzzy/async/whhpjl/entity/Fz40WhjlMQuality.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,313 @@
package com.fzzy.async.whhpjl.entity;
import com.alibaba.fastjson.annotation.JSONField;
import com.bstek.dorado.annotation.PropertyDef;
import com.fzzy.api.Constant;
import com.fzzy.otherview.whhpjl.dto.ShareApi2013Dd;
import com.fzzy.otherview.whhpjl.dto.ShareApi2013Dm;
import com.fzzy.otherview.whhpjl.dto.ShareApi2013Syy;
import com.fzzy.otherview.whhpjl.dto.ShareApi2013Xmf;
import lombok.Data;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
 * è´¨é‡ç®¡ç†ï¼Œ2023å¹´5月26日 æ ¹æ®æ–°å›½ç²®è§„优化调整
 *
 * @author chen
 */
@Data
@Entity
@Table(name = "D_M_QUALITY")
public class Fz40WhjlMQuality implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "ID_", length = 40)
    @PropertyDef(label = "主键ID", description = "ZJ+检验类别+年月日时分秒")
    private String id;
    @Column(name = "COMPANY_ID_", length = 10)
    @PropertyDef(label = "组织编码")
    private String companyId;
    @Column(name = "DEPT_ID_", length = 40)
    @PropertyDef(label = "库区编码")
    private String deptId;
    @Column(name = "DEPOT_ID_", length = 50)
    @PropertyDef(label = "仓库编码")
    private String depotId;
    @Column(name = "FOOD_VARIETY_", length = 10)
    @PropertyDef(label = "粮食品种")
    private String foodVariety;
    @Column(name = "FOOD_LEVEL_", length = 10)
    @PropertyDef(label = "粮食等级")
    private String foodLevel;
    @PropertyDef(label = "入库日期")
    @Column(name = "STORE_DATE_")
    private Date storeDate;
    @Column(name = "TYPE_", length = 10)
    @PropertyDef(label = "检验类别", description = "01:入仓验收 02:出仓检验 03:3 æœˆæœ«æ™®æ£€04:9 æœˆæœ«æ™®æ£€ 05:入仓初检 06:月度检查 07:3 æœˆæœ«åº“内普查 08:9 æœˆæœ«åº“内普查")
    private String type;
    @Column(name = "TIME_")
    @PropertyDef(label = "检验时间")
    private Date time;
    @Column(name = "UNIT_", length = 50)
    @PropertyDef(label = "检验单位")
    private String unit;
    @Column(name = "USER_", length = 50)
    @PropertyDef(label = "检验人", description = "检验人员姓名,若有多个保管员")
    private String user;
    @Column(name = "STANDARD_", length = 4)
    @PropertyDef(label = "检验依据", description = "1-国标,0-其他")
    private String standard;
    @PropertyDef(label = "指标类别", description = "1: è´¨é‡æŒ‡æ ‡æ£€éªŒ2:储存品质检验3:食品安全检验 å¦‚果同时检验了多个,用#隔开,例如:1#2#3")
    @Column(name = "zblb", length = 8)
    private String zblb;
    @Column(name = "RESULT_", length = 40)
    @PropertyDef(label = "检验结论", description = "1、质量指标填写/达标/不达标 2、储存品质指标填写“宜存”、轻度不宜存”、“重度不宜存”3、食品安全指标填写“合格”、不合格” å¤šé¡¹æŒ‡æ ‡æ—¶ä»¥#分隔,例如:达标|综合判定#宜存#合格 ")
    private String result;
    @Column(name = "spaqzbsfhg", length = 40)
    @PropertyDef(label = "食品安全指标是否合格", description = "0-不合格,1-合格")
    private String spaqzbsfhg;
    @JSONField(format = "yyyy-MM-dd")
    @PropertyDef(label = "签发日期")
    @Column(name = "qfrq")
    private Date qfrq;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @PropertyDef(label = "报告出具时间")
    @Column(name = "bgcjsj")
    private Date bgcjsj;
    @PropertyDef(label = "审核人姓名")
    @Column(name = "shrxm", length = 64)
    private String shrxm;
    @PropertyDef(label = "扦样单编号")
    @Column(name = "qydbh", length = 64)
    private String qydbh;
    @Column(name = "CHECK_TIME_")
    @PropertyDef(label = "扦样时间", required = true)
    private Date checkTime;
    @Column(name = "CHECK_AREA_", length = 50)
    @PropertyDef(label = "扦样区域")
    private String checkArea;
    @Column(name = "CHECK_USER_", length = 50)
    @PropertyDef(label = "扦样人", required = true)
    private String checkUser;
    @PropertyDef(label = "监督人姓名")
    @Column(name = "jdrxm", length = 64)
    private String jdrxm;
    @PropertyDef(label = "样品编号")
    @Column(name = "ypbh", length = 64)
    private String ypbh;
    @PropertyDef(label = "样品数量", required = true)
    @Column(name = "ypsl", precision = 20, scale = 6)
    private Double ypsl;
    @PropertyDef(label = "代表数量")
    @Column(name = "dbsl", precision = 20, scale = 6)
    private Double dbsl;
    @PropertyDef(label = "样品等级")
    @Column(name = "ypdj", length = 2)
    private String ypdj;
    @Column(name = "NORMAL_YEAR_", length = 10)
    @PropertyDef(label = "是否正常存储年限")
    private String normalYear;
    @Column(name = "REMARK_", length = 200)
    @PropertyDef(label = "备注", description = "备注信息")
    private String remark;
    @Column(name = "UPDATE_TIME_")
    @PropertyDef(label = "数据更新时间")
    private Date updateTime;
    /**
     * --------附件--------
     **/
    @Column(name = "FILE_ID_", length = 30)
    @PropertyDef(label = "附件id")
    private String fileId;
    @Column(name = "FILE_NAME_", length = 50)
    @PropertyDef(label = "附件名称")
    private String fileName;
    @Column(name = "FILE_TIME_")
    @PropertyDef(label = "附件上传时间")
    private Date fileTime;
    /************
     * é»„陂军粮用-省质检中心报告
     ************/
    @Column(name = "PROV_RESERVE_", length = 1)
    @PropertyDef(label = "是否为省级质检中心报告", description = "Y-是,N-否")
    private String provReserve = Constant.YN_N;
    @Column(name = "QLY_ORG_REPORTID_", length = 20)
    @PropertyDef(label = "质检报告id")
    private String qlyOrgReportId;  //质检报告id
    @Column(name = "ORDER_ID_", length = 20)
    @PropertyDef(label = "订单表ID")
    private String orderId;  //订单表ID
    @Column(name = "SAMPLE_ID_", length = 20)
    @PropertyDef(label = "样品表ID")
    private String sampleId;  //样品表ID
    @Column(name = "ORG_ID_", length = 20)
    @PropertyDef(label = "机构表ID")
    private String orgId;  //机构表ID
    @Column(name = "QUALITY_ORG_ID_", length = 50)
    @PropertyDef(label = "质检机构编号")
    private String qualityOrgId;  //质检机构编号
    @Column(name = "QUALITY_ORG_NAME_", length = 50)
    @PropertyDef(label = "质检机构名称")
    private String qualityOrgName;  //质检机构名称
    @Column(name = "GYSXYDM_", length = 50)
    @PropertyDef(label = "供应商信用代码")
    private String gysxydm;  //供应商信用代码
    @Column(name = "JLQYBH_", length = 50)
    @PropertyDef(label = "军粮企业编号")
    private String jlqybh;  //军粮企业编号
    @Column(name = "JLQYMC_", length = 50)
    @PropertyDef(label = "军粮企业名称")
    private String jlqymc;  //军粮企业名称
    @Column(name = "KDBM_", length = 20)
    @PropertyDef(label = "库点编码")
    private String kdbm;  //库点编码
    @Column(name = "KDMC_", length = 50)
    @PropertyDef(label = "库点名称")
    private String kdmc;  //库点名称
    @Column(name = "DELECTION_TYPE_", length = 20)
    @PropertyDef(label = "检测报告类型")
    private String delectionType;  //检测报告类型
    @Column(name = "DELETCTION_NUMBER_", length = 50)
    @PropertyDef(label = "检测报告编号")
    private String deletctionNumber;  //检测报告编号
    @Column(name = "JLCPMC_", length = 50)
    @PropertyDef(label = "军粮产品名称")
    private String jlcpmc;  //军粮产品名称
    @Column(name = "JLLSPZ_", length = 50)
    @PropertyDef(label = "军粮粮食品种")
    private String jllspz;  //军粮粮食品种
    @Column(name = "LOT_NUMBER_", length = 50)
    @PropertyDef(label = "批号")
    private String lotNumber;  //批号
    @Column(name = "SPECIFICATION_MODEL_", length = 50)
    @PropertyDef(label = "规格型号")
    private String specificationModel;  //规格型号
    @Column(name = "CYSM_", length = 200)
    @PropertyDef(label = "抽样说明")
    private String cysm;  //抽样说明
    @JSONField(format = "yyyy-MM-dd")
    @Column(name = "REGISTRATION_", length = 20)
    @PropertyDef(label = "登记时间")
    private String registration;  //登记时间
    @Column(name = "INSPECT_PLAN_", length = 200)
    @PropertyDef(label = "检验方案")
    private String inspectPlan;  //检验方案
    @Column(name = "PRODUCT_TYPE_", length = 20)
    @PropertyDef(label = "产品类型")
    private String productType;  //产品类型
    @Column(name = "CYJS_", length = 20)
    @PropertyDef(label = "抽样基数")
    private String cyjs;  //抽样基数
    @Column(name = "CYSL_", length = 20)
    @PropertyDef(label = "抽样数量")
    private String cysl;  //抽样数量
    @Column(name = "SAMPLER_", length = 50)
    @PropertyDef(label = "抽样人")
    private String sampler;  //抽样人
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "SAMPLER_TIME_", length = 20)
    @PropertyDef(label = "抽样时间")
    private String samplerTime;  //抽样时间
    @Column(name = "SAMPLER_AREA_", length = 200)
    @PropertyDef(label = "抽样地点")
    private String samplerArea;  //抽样地点
    @JSONField(format = "yyyy-MM-dd")
    @Column(name = "CREATE_TIME_", length = 20)
    @PropertyDef(label = "生产日期")
    private Date createTime;  //生产日期
    @Column(name = "IS_ACTIVE_", length = 1)
    @PropertyDef(label = "是否有效")
    private String isActive;  //是否有效
    @Column(name = "REPORT_FILE_", length = 200)
    @PropertyDef(label = "质检报告文件")
    private String reportFile;  //质检报告文件
    @Column(name = "CREATE_DATE_", length = 40)
    @PropertyDef(label = "创建时间")
    private String createDate;  //创建时间
    @Column(name = "CREATE_BY_", length = 50)
    @PropertyDef(label = "创建人")
    private String createBy;  //创建人
    @Column(name = "UPDATE_DATE_", length = 40)
    @PropertyDef(label = "更新时间")
    private String updateDate;  //更新时间
    @Column(name = "UPDATE_BY_", length = 50)
    @PropertyDef(label = "更新人")
    private String updateBy;  //更新人
}
src/main/java/com/fzzy/async/whhpjl/impl/Fz40ToWhjlSync1107.java
@@ -8,7 +8,7 @@
import com.fzzy.api.view.repository.ApiInfoDataRep;
import com.fzzy.api.view.repository.ApiLogRep;
import com.fzzy.async.whhpjl.entity.Fz40WhjlDefaultGranary;
import com.fzzy.async.whhpjl.repository.Fz40ToWhjlSync1106Rep;
import com.fzzy.async.whhpjl.repository.Fz40ToWhjlSync1107Rep;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1107;
import lombok.extern.slf4j.Slf4j;
@@ -27,7 +27,7 @@
@Component
public class Fz40ToWhjlSync1107 {
    @Autowired
    private Fz40ToWhjlSync1106Rep fz40ToWhjlSync1106Rep;
    private Fz40ToWhjlSync1107Rep fz40ToWhjlSync1107Rep;
    @Autowired
    private ApiLogRep apiLogRep;
    @Autowired
@@ -42,19 +42,19 @@
     * @param end
     */
    public void syncData(String kqdm, String deptId, Date start, Date end) {
        log.info("-------------1106接口数据开始同步------------------");
        log.info("-------------1107接口数据开始同步------------------");
        //同步数据,只记录失败的信息
        ApiLog apiLog = new ApiLog();
        apiLog.setType(ApiLog.TYPE_SYNC);
        apiLog.setKqdm(deptId);
        apiLog.setUploadTime(new Date());
        apiLog.setInteId(Constant.API_CODE_1106);
        apiLog.setInteId(Constant.API_CODE_1107);
        apiLog.setStatus(99);
        apiLog.setId(ContextUtil.getUUID());
        try {
            List<Fz40WhjlDefaultGranary> list = fz40ToWhjlSync1106Rep.listApi1106(deptId.substring(0, 4));
            List<Fz40WhjlDefaultGranary> list = fz40ToWhjlSync1107Rep.listApi1107(deptId.substring(0, 4));
            if (null == list || list.isEmpty()) {
                log.info("-------------没有获取到单位信息------------------");
                return;
@@ -92,7 +92,7 @@
                infoData.setId(sysData.getAjdh());
                infoData.setKqdm(kqdm);
                infoData.setInteType(WhjlConstant.API_CATEGORY_11);
                infoData.setInteId(WhjlConstant.API_CODE_1106);
                infoData.setInteId(WhjlConstant.API_CODE_1107);
                infoData.setUpdateTime(new Date());
                infoData.setDataId(sysData.getAjdh());
                infoData.setRemarks("备注信息");
@@ -111,12 +111,12 @@
                apiInfoDataRep.save(infoData);
                log.info("1106---廒间-同步数据:{}", apiData.toString());
                log.info("1107---廒间-同步数据:{}", apiData.toString());
            }
        } catch (Exception e) {
            log.error("---1106廒间-同步数据执行失败----{}", e.getMessage());
            apiLog.setResult("1106廒间信息同步失败:" + e.getMessage());
            log.error("---1107廒间-同步数据执行失败----{}", e.getMessage());
            apiLog.setResult("1107廒间信息同步失败:" + e.getMessage());
            apiLogRep.save(apiLog);
        }
    }
src/main/java/com/fzzy/async/whhpjl/impl/Fz40ToWhjlSync1108.java
@@ -8,7 +8,7 @@
import com.fzzy.api.view.repository.ApiInfoDataRep;
import com.fzzy.api.view.repository.ApiLogRep;
import com.fzzy.async.whhpjl.entity.Fz40WhjlDefaultDepot;
import com.fzzy.async.whhpjl.repository.Fz40ToWhjlSync1107Rep;
import com.fzzy.async.whhpjl.repository.Fz40ToWhjlSync1108Rep;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1108;
import lombok.extern.slf4j.Slf4j;
@@ -28,7 +28,7 @@
public class Fz40ToWhjlSync1108 {
    @Autowired
    private Fz40ToWhjlSync1107Rep fz40ToWhjlSync1107Rep;
    private Fz40ToWhjlSync1108Rep fz40ToWhjlSync1108Rep;
    @Autowired
    private ApiLogRep apiLogRep;
    @Autowired
@@ -43,19 +43,19 @@
     * @param end
     */
    public void syncData(String kqdm, String deptId, Date start, Date end) {
        log.info("-------------1107接口数据开始同步------------------");
        log.info("-------------1108接口数据开始同步------------------");
        //同步数据,只记录失败的信息
        ApiLog apiLog = new ApiLog();
        apiLog.setType(ApiLog.TYPE_SYNC);
        apiLog.setKqdm(deptId);
        apiLog.setUploadTime(new Date());
        apiLog.setInteId(Constant.API_CODE_1107);
        apiLog.setInteId(Constant.API_CODE_1108);
        apiLog.setStatus(99);
        apiLog.setId(ContextUtil.getUUID());
        try {
            List<Fz40WhjlDefaultDepot> list = fz40ToWhjlSync1107Rep.listApi1107(deptId.substring(0, 4));
            List<Fz40WhjlDefaultDepot> list = fz40ToWhjlSync1108Rep.listApi1108(deptId.substring(0, 4));
            if (null == list || list.isEmpty()) {
                log.info("-------------没有获取到单位信息------------------");
                return;
@@ -63,6 +63,7 @@
            List<ApiInfoData> apiInfoDataList;
            WhjlApi1108 apiData;
            for (Fz40WhjlDefaultDepot sysData : list) {
                apiData = new WhjlApi1108();
                apiData.setHwbh(sysData.getId());  //货位编号
                apiData.setJlqybh("");  //军粮企业编号
@@ -88,7 +89,7 @@
                infoData.setId(sysData.getId());
                infoData.setKqdm(kqdm);
                infoData.setInteType(WhjlConstant.API_CATEGORY_11);
                infoData.setInteId(WhjlConstant.API_CODE_1107);
                infoData.setInteId(WhjlConstant.API_CODE_1108);
                infoData.setUpdateTime(new Date());
                infoData.setDataId(sysData.getId());
                infoData.setRemarks("备注信息");
@@ -107,12 +108,12 @@
                apiInfoDataRep.save(infoData);
                log.info("1107---货位-同步数据:{}", apiData.toString());
                log.info("1108---货位-同步数据:{}", apiData.toString());
            }
        } catch (Exception e) {
            log.error("---1107货位-同步数据执行失败----{}", e.getMessage());
            apiLog.setResult("1107货位信息同步失败:" + e.getMessage());
            log.error("---1108货位-同步数据执行失败----{}", e.getMessage());
            apiLog.setResult("1108货位信息同步失败:" + e.getMessage());
            apiLogRep.save(apiLog);
        }
    }
src/main/java/com/fzzy/async/whhpjl/impl/Fz40ToWhjlSync1212.java
@@ -72,6 +72,11 @@
            List<ApiInfoData> apiInfoDataList;
            WhjlApi1212 apiData;
            for (Fz40WhjlInoutRecord sysData : list) {
                if(sysData.getRecordStatus().equals("DEL")) {
                    //如果是删除状态,则不进行同步
                    log.info("1212---出入库记录-同步数据:{},状态为删除,不进行同步", sysData.getId());
                    continue;
                }
                List<ApiInfoData> dept = apiInfoDataRep.getDataByDataId(sysData.getCompanyId());
                WhjlApi1101 whjlApi1101 = JSONObject.parseObject(dept.get(0).getData(), WhjlApi1101.class);
                List<ApiInfoData> deptArea = apiInfoDataRep.getDataByDataId(sysData.getDeptId());
@@ -85,7 +90,7 @@
                apiData.setYwrq(DateUtils.parseDate(sysData.getId().substring(2, 10), new String[]{"yyyyMMdd"}));
                if(sysData.getType().equals("IN")){
                    apiData.setCrklx("入库");
                    apiData.setYwlx("日常出入库");//出入库类型: æ—¥å¸¸å‡ºå…¥åº“/日常出库/应急入库/应急出库/盘点入库/盘点出库/转仓入库/转仓出库
                    apiData.setYwlx("日常入库");//出入库类型: æ—¥å¸¸å‡ºå…¥åº“/日常出库/应急入库/应急出库/盘点入库/盘点出库/转仓入库/转仓出库
                }
                if(sysData.getType().equals("OUT")){
                    apiData.setCrklx("出库");
@@ -119,11 +124,10 @@
                }
                apiData.setHwbh(whjlApi1108.getHwbh());//货位编号
                apiData.setHwmc(whjlApi1108.getHwmc());//货位名称
                apiData.setAjbh(apiData.getHwbh().substring(0,28));//廒间编号
                apiData.setAjmc(apiData.getHwmc());// TODO å»’间名称
                apiData.setAjbh(whjlApi1108.getHwbh().substring(0,28));//廒间编号
                apiData.setAjmc(whjlApi1108.getHwmc());// TODO å»’间名称
                apiData.setKctzbh(sysData.getId().substring(2));//库存台账ID
                apiData.setKctzcppcid(sysData.getId().substring(2));//库存台账批次ID
//                apiData.setPsmxid("");//配送车辆明细ID
//                apiData.setYjfamxid("");//应急方案明细ID
@@ -132,29 +136,44 @@
                if(lspz != null && lspz.size() > 0){
                    apiData.setLspzmc(lspz.get(0).getName());//品种名称
                }
                if (sysData.getFoodVariety().equals("2")){
                    //小麦粉
                    apiData.setCpbh("FJL89570583ec0a2571");//产品编号
                    apiData.setCpmc("小麦粉");//产品编号
                }
                if (sysData.getFoodVariety().equals("1")){
                    //大米
                    apiData.setCpbh("FJLdf09130205a43278");//产品编号
                    apiData.setCpmc("大米");//产品编号
                }
                if (sysData.getFoodVariety().equals("3")){
                    //食用油
                    apiData.setCpbh("FJL3e7ba1605ebd5dec");//产品编号
                    apiData.setCpmc("食用油");//产品编号
                }
                if (sysData.getFoodVariety().startsWith("2")){
                    apiData.setKctzbh("1234567891234567002");//库存台账ID
                    apiData.setKctzcppcid("12312332132145002");//库存台账批次ID
                apiData.setJldwbm("12");//计量单位编码
                apiData.setJldwmc("千克");//计量单位名称
                apiData.setJsdwbm("21");//计数单位编码
                apiData.setJsdwmc("袋");//计数单位名称
                    //小麦粉
                    apiData.setCpbh("FJL4a971ea2d319e518");//产品编号
                    apiData.setCpmc("精致小麦粉");//产品编号
                }
                if (sysData.getFoodVariety().startsWith("1")){
                    apiData.setKctzbh("1234567891234567001");//库存台账ID
                    apiData.setKctzcppcid("12312332132145001");//库存台账批次ID
                    apiData.setJldwbm("12");//计量单位编码
                    apiData.setJldwmc("千克");//计量单位名称
                    apiData.setJsdwbm("21");//计数单位编码
                    apiData.setJsdwmc("袋");//计数单位名称
                    //大米
                    apiData.setCpbh("FJL0b1fc3761a2c0a46");//产品编号
                    apiData.setCpmc("长江绿地粳米");//产品编号
                }
                if (sysData.getFoodVariety().startsWith("3")){
                    apiData.setKctzbh("1234567891234567003");//库存台账ID
                    apiData.setKctzcppcid("12312332132145003");//库存台账批次ID
                    apiData.setJldwbm("13");//计量单位编码
                    apiData.setJldwmc("升");//计量单位名称
                    apiData.setJsdwbm("23");//计数单位编码
                    apiData.setJsdwmc("瓶");//计数单位名称
                    //食用油
                    apiData.setCpbh("FJL60a5761059bf08df");//产品编号
                    apiData.setCpmc("菜籽油");//产品名称
                }
//                apiData.setCrklx("");//出入库类型
@@ -179,7 +198,7 @@
//                apiData.setSccj("");//生产厂家
//                apiData.setGg("");//规格型号
//                apiData.setCppc("");//产品批次
//                apiData.setScrq(null);//生产日期
                apiData.setScrq(sysData.getRegisterTime());//生产日期
//                apiData.setBzq(null);//保质期
//                apiData.setCkfs("");//出库方式
                apiData.setDjsj(sysData.getRegisterTime());//登记时间
@@ -224,8 +243,6 @@
                infoData.setData(JSON.toJSONString(apiData));
                apiInfoDataRep.save(infoData);
                log.info("1212---出入库记录-同步数据:{}", apiData.toString());
            }
src/main/java/com/fzzy/async/whhpjl/impl/Fz40ToWhjlSync1216.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,123 @@
package com.fzzy.async.whhpjl.impl;
import com.alibaba.fastjson.JSON;
import com.fzzy.api.Constant;
import com.fzzy.api.entity.ApiInfoData;
import com.fzzy.api.entity.ApiLog;
import com.fzzy.api.utils.ContextUtil;
import com.fzzy.api.view.repository.ApiInfoDataRep;
import com.fzzy.api.view.repository.ApiLogRep;
import com.fzzy.async.whhpjl.entity.Fz40WhjlMQuality;
import com.fzzy.async.whhpjl.repository.Fz40ToWhjlSync1216Rep;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1216;
import com.fzzy.otherview.whhpjl.dto.WhjlCheckItm;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
/**
 * è´¨æ£€æŠ¥å‘Š
 *
 * @Author:YAN
 */
@Slf4j
@Component
public class Fz40ToWhjlSync1216 {
    @Autowired
    private Fz40ToWhjlSync1216Rep fz40ToWhjlSync1216Rep;
    @Autowired
    private ApiLogRep apiLogRep;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * è´¨æ£€æŠ¥å‘Š
     *
     * @param kqdm
     * @param deptId
     * @param start
     * @param end
     */
    public void syncData(String kqdm, String deptId, Date start, Date end) {
        log.info("-------------1216接口数据开始同步------------------");
        //同步数据,只记录失败的信息
        ApiLog apiLog = new ApiLog();
        apiLog.setType(ApiLog.TYPE_SYNC);
        apiLog.setKqdm(deptId);
        apiLog.setUploadTime(new Date());
        apiLog.setInteId("1216");
        apiLog.setStatus(99);
        apiLog.setId(ContextUtil.getUUID());
        try {
            List<Fz40WhjlMQuality> list = fz40ToWhjlSync1216Rep.listApi1216(deptId.substring(0, 4));
            List<ApiInfoData> apiInfoDataList;
            WhjlApi1216 apiData;
            List<WhjlCheckItm> whjlCheckItmList = new ArrayList<>();
            for (Fz40WhjlMQuality sysData : list) {
                apiData = new WhjlApi1216();
                //设置数据
                apiData.setJcbgbh(sysData.getId());//检测报告编号
                apiData.setCybh(sysData.getYpbh());//样品编号
                apiData.setJyca(null);//检验方案 åº“内化验/委托化验
                apiData.setJybzid(null);//检验标准ID -共享接口获取
                apiData.setYjbzmc(null);//检验标准名称 -共享接口获取
                apiData.setJyjg(null);//检验结果 -合格\不合格
                apiData.setJysj(sysData.getTime());//检验时间
                apiData.setJybglx(null);//检测报告类型 -定期检测报告 å…¥åº“检验报告 å‡ºåº“检验报告 ç¬¬ä¸‰æ–¹æ£€æµ‹æŠ¥å‘Š ç¬¬ä¸‰æ–¹æ£€æµ‹æŠ¥å‘Š ç¬¬ä¸‰æ–¹åŽŸç²®æ£€éªŒæŠ¥å‘Š æˆå“ç²®æ£€éªŒæŠ¥å‘Š ä¾›åº”ä¼ä¸šè‡ªæ£€æŠ¥å‘Š
                apiData.setJyr(sysData.getUser());//检验人
                apiData.setBz(sysData.getRemark());//备注
                //todo è´¨æ£€æŠ¥å‘Šæ˜Žç»†
                apiData.setJcmx(whjlCheckItmList);//检测明细
                apiData.setJcbgwj(null);//检测报告文件
                apiData.setBizId(sysData.getId());
                apiData.setUpdateTime(new Date());
                //持久化保存,单独存入非国标接口表
                ApiInfoData infoData = new ApiInfoData();
                infoData.setId(sysData.getId());
                infoData.setKqdm(kqdm);
                infoData.setInteType(WhjlConstant.API_CATEGORY_12);
                infoData.setInteId(WhjlConstant.API_CODE_1216);
                infoData.setUpdateTime(new Date());
                infoData.setDataId(sysData.getId());
                infoData.setRemarks("备注信息");
                //设置操作标志
                apiInfoDataList = apiInfoDataRep.getDataByDataId(infoData.getDataId());
                if (null == apiInfoDataList || apiInfoDataList.isEmpty()) {
                    apiData.setCzbz(Constant.CZBZ_I);
                    infoData.setCzbz(Constant.CZBZ_I);
                } else {
                    apiData.setCzbz(apiInfoDataList.get(0).getCzbz());
                    infoData.setCzbz(apiInfoDataList.get(0).getCzbz());
                }
                infoData.setData(JSON.toJSONString(apiData));
                apiInfoDataRep.save(infoData);
                log.info("1216---出入库记录-同步数据:{}", apiData.toString());
            }
        } catch (Exception e) {
            log.error("---1216出入库记录-同步数据执行失败----{}", e.getMessage());
            apiLog.setResult("1216出入库记录信息同步失败:" + e.getMessage());
            apiLogRep.save(apiLog);
        }
    }
}
src/main/java/com/fzzy/async/whhpjl/repository/Fz40ToWhjlSync1107Rep.java
@@ -13,7 +13,7 @@
 *
 * @Author:YAN
 */
public interface Fz40ToWhjlSync1107Rep extends JpaRepository<Fz40WhjlDefaultDepot, String> {
public interface Fz40ToWhjlSync1107Rep extends JpaRepository<Fz40WhjlDefaultGranary, String> {
    /**
     * èŽ·å–è´§ä½ä¿¡æ¯
@@ -21,5 +21,5 @@
     * @return
     */
    @Query("from Fz40WhjlDefaultDepot where companyId=:companyId ")
    List<Fz40WhjlDefaultDepot> listApi1107(@Param("companyId") String companyId);
    List<Fz40WhjlDefaultGranary> listApi1107(@Param("companyId") String companyId);
}
src/main/java/com/fzzy/async/whhpjl/repository/Fz40ToWhjlSync1108Rep.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,24 @@
package com.fzzy.async.whhpjl.repository;
import com.fzzy.async.whhpjl.entity.Fz40WhjlDefaultDepot;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import java.util.List;
/**
 * è´§ä½ä¿¡æ¯
 *
 * @Author:YAN
 */
public interface Fz40ToWhjlSync1108Rep extends JpaRepository<Fz40WhjlDefaultDepot, String> {
    /**
     * èŽ·å–è´§ä½ä¿¡æ¯
     *
     * @return
     */
    @Query("from Fz40WhjlDefaultDepot where companyId=:companyId ")
    List<Fz40WhjlDefaultDepot> listApi1108(@Param("companyId") String companyId);
}
src/main/java/com/fzzy/async/whhpjl/repository/Fz40ToWhjlSync1216Rep.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,24 @@
package com.fzzy.async.whhpjl.repository;
import com.fzzy.async.whhpjl.entity.Fz40WhjlDefaultInoutRecord;
import com.fzzy.async.whhpjl.entity.Fz40WhjlMQuality;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import java.util.List;
/**
 * å‡ºå…¥åº“记录
 *
 * @Author:YAN
 */
public interface Fz40ToWhjlSync1216Rep extends JpaRepository<Fz40WhjlMQuality, String> {
    /**
     * å‡ºå…¥åº“记录
     *
     * @return
     */
    @Query("from Fz40WhjlMQuality where companyId=:companyId ")
    List<Fz40WhjlMQuality> listApi1216(@Param("companyId") String companyId);
}
src/main/java/com/fzzy/async/whhpjl/repository/Fz40ToWhjlSync2013DdRep.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,18 @@
package com.fzzy.async.whhpjl.repository;
import com.fzzy.async.whhpjl.entity.Fz40WhjlCheckItemDd;
import com.fzzy.async.whhpjl.entity.Fz40WhjlMQuality;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import java.util.List;
/**
 * å‡ºå…¥åº“记录
 *
 * @Author:YAN
 */
public interface Fz40ToWhjlSync2013DdRep extends JpaRepository<Fz40WhjlCheckItemDd, String> {
}
src/main/java/com/fzzy/async/whhpjl/repository/Fz40ToWhjlSync2013DmRep.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,18 @@
package com.fzzy.async.whhpjl.repository;
import com.fzzy.async.whhpjl.entity.Fz40WhjlCheckItemDm;
import com.fzzy.async.whhpjl.entity.Fz40WhjlMQuality;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import java.util.List;
/**
 * å‡ºå…¥åº“记录
 *
 * @Author:YAN
 */
public interface Fz40ToWhjlSync2013DmRep extends JpaRepository<Fz40WhjlCheckItemDm, String> {
}
src/main/java/com/fzzy/async/whhpjl/repository/Fz40ToWhjlSync2013Rep.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,23 @@
package com.fzzy.async.whhpjl.repository;
import com.fzzy.async.whhpjl.entity.Fz40WhjlMQuality;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import java.util.List;
/**
 * å‡ºå…¥åº“记录
 *
 * @Author:YAN
 */
public interface Fz40ToWhjlSync2013Rep extends JpaRepository<Fz40WhjlMQuality, String> {
    /**
     * çœçº§è´¨æ£€æŠ¥å‘Š
     *
     * @return
     */
    @Query("from Fz40WhjlMQuality where companyId=:companyId ")
    List<Fz40WhjlMQuality> listApi2013(@Param("companyId") String companyId);
}
src/main/java/com/fzzy/async/whhpjl/repository/Fz40ToWhjlSync2013SyyRep.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,19 @@
package com.fzzy.async.whhpjl.repository;
import com.fzzy.async.whhpjl.entity.Fz40WhjlCheckItemDd;
import com.fzzy.async.whhpjl.entity.Fz40WhjlCheckItemSyy;
import com.fzzy.async.whhpjl.entity.Fz40WhjlMQuality;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import java.util.List;
/**
 * å‡ºå…¥åº“记录
 *
 * @Author:YAN
 */
public interface Fz40ToWhjlSync2013SyyRep extends JpaRepository<Fz40WhjlCheckItemSyy, String> {
}
src/main/java/com/fzzy/async/whhpjl/repository/Fz40ToWhjlSync2013XmfRep.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,19 @@
package com.fzzy.async.whhpjl.repository;
import com.fzzy.async.whhpjl.entity.Fz40WhjlCheckItemDd;
import com.fzzy.async.whhpjl.entity.Fz40WhjlCheckItemXmf;
import com.fzzy.async.whhpjl.entity.Fz40WhjlMQuality;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import java.util.List;
/**
 * å‡ºå…¥åº“记录
 *
 * @Author:YAN
 */
public interface Fz40ToWhjlSync2013XmfRep extends JpaRepository<Fz40WhjlCheckItemXmf, String> {
}
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1112.view.xml
@@ -145,7 +145,6 @@
        <Property name="label">密码</Property>
      </PropertyDef>
      <PropertyDef name="rstpdz">
        <Property name="dataType">Integer</Property>
        <Property name="label">Rtsp地址</Property>
      </PropertyDef>
      <PropertyDef name="rtspdk">
@@ -347,7 +346,7 @@
          <Property name="property">sbzt</Property>
        </DataColumn>
        <DataColumn name="ggxh">
          <Property name="property">ggxh</Property>
          <Property name="property">ipdz</Property>
        </DataColumn>
        <DataColumn name="zzdw">
          <Property name="property">zzdw</Property>
@@ -567,7 +566,6 @@
          <AutoFormElement>
            <Property name="name">jklx</Property>
            <Property name="property">jklx</Property>
            <Property name="trigger">listDropType</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1212.view.xml
@@ -699,6 +699,10 @@
          <Property name="property">jlqymc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="hwmc">
          <Property name="property">hwmc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jgzdmc">
          <Property name="property">jgzdmc</Property>
          <Property name="align">center</Property>
@@ -735,6 +739,10 @@
          <Property name="property">yscch</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="czbz">
          <Property name="property">czbz</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn>
          <ClientEvent name="onRenderCell">arg.dom.innerHTML=&quot;&lt;a href='javascript:;' class ='btn-s-default' onClick='edit()'>详情&lt;/a>&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&lt;a class ='btn-s-warm' href='javascript:;' onClick='save()'>新增&lt;/a>&quot;;&#xD;
arg.progressDefault= false;</ClientEvent>
src/main/java/com/fzzy/otherview/whhpjl/WhjlConstant.java
@@ -282,6 +282,7 @@
    public static String API_CODE_2010 = "2010";
    public static String API_CODE_2011 = "2011";
    public static String API_CODE_2012 = "2012";
    public static String API_CODE_2013 = "2013";
    /*----------接口路径----------*/
@@ -421,5 +422,6 @@
    public static String API_CODE_SHARE_ZLJCBZ= "ZLJCBZ";
    public static String API_CODE_SHARE_ZLJCXM= "ZLJCXM";
    public static String API_CODE_SHARE_YJFAXX= "YJFAXX";
    public static String API_CODE_SHARE_SZJZXBG= "SZJZXBG";
}
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi2013.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,1282 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2013</Property>
      <PropertyDef name="qlyOrgReportId">
        <Property></Property>
        <Property name="label">质检报告id</Property>
      </PropertyDef>
      <PropertyDef name="orderId">
        <Property></Property>
        <Property name="label">订单表ID</Property>
      </PropertyDef>
      <PropertyDef name="sampleId">
        <Property></Property>
        <Property name="label">样品表ID</Property>
      </PropertyDef>
      <PropertyDef name="orgId">
        <Property></Property>
        <Property name="label">机构表ID</Property>
      </PropertyDef>
      <PropertyDef name="qualityOrgId">
        <Property></Property>
        <Property name="label">质检机构编号</Property>
      </PropertyDef>
      <PropertyDef name="qualityOrgName">
        <Property></Property>
        <Property name="label">质检机构名称</Property>
      </PropertyDef>
      <PropertyDef name="gysxydm">
        <Property></Property>
        <Property name="label">供应商信用代码</Property>
      </PropertyDef>
      <PropertyDef name="jlqybh">
        <Property></Property>
        <Property name="label">军粮企业编号</Property>
      </PropertyDef>
      <PropertyDef name="jlqymc">
        <Property></Property>
        <Property name="label">军粮企业名称</Property>
      </PropertyDef>
      <PropertyDef name="kdbm">
        <Property></Property>
        <Property name="label">库点编码</Property>
      </PropertyDef>
      <PropertyDef name="kdmc">
        <Property></Property>
        <Property name="label">库点名称</Property>
      </PropertyDef>
      <PropertyDef name="delectionType">
        <Property></Property>
        <Property name="label">检测报告类型</Property>
      </PropertyDef>
      <PropertyDef name="deletctionNumber">
        <Property></Property>
        <Property name="label">检测报告编号</Property>
      </PropertyDef>
      <PropertyDef name="jlcpmc">
        <Property></Property>
        <Property name="label">军粮产品名称</Property>
      </PropertyDef>
      <PropertyDef name="jllspz">
        <Property></Property>
        <Property name="label">军粮粮食品种</Property>
      </PropertyDef>
      <PropertyDef name="lotNumber">
        <Property></Property>
        <Property name="label">批号</Property>
      </PropertyDef>
      <PropertyDef name="specificationModel">
        <Property></Property>
        <Property name="label">规格型号</Property>
      </PropertyDef>
      <PropertyDef name="cysm">
        <Property></Property>
        <Property name="label">抽样说明</Property>
      </PropertyDef>
      <PropertyDef name="registration">
        <Property></Property>
        <Property name="label">登记时间</Property>
      </PropertyDef>
      <PropertyDef name="inspectPlan">
        <Property></Property>
        <Property name="label">检验方案</Property>
      </PropertyDef>
      <PropertyDef name="productType">
        <Property></Property>
        <Property name="label">产品类型</Property>
      </PropertyDef>
      <PropertyDef name="cyjs">
        <Property></Property>
        <Property name="label">抽样基数</Property>
      </PropertyDef>
      <PropertyDef name="cysl">
        <Property></Property>
        <Property name="label">抽样数量</Property>
      </PropertyDef>
      <PropertyDef name="sampler">
        <Property></Property>
        <Property name="label">抽样人</Property>
      </PropertyDef>
      <PropertyDef name="samplerTime">
        <Property></Property>
        <Property name="label">抽样时间</Property>
      </PropertyDef>
      <PropertyDef name="samplerArea">
        <Property></Property>
        <Property name="label">抽样地点</Property>
      </PropertyDef>
      <PropertyDef name="createTime">
        <Property></Property>
        <Property name="label">生产日期</Property>
      </PropertyDef>
      <PropertyDef name="isActive">
        <Property></Property>
        <Property name="label">是否有效</Property>
      </PropertyDef>
      <PropertyDef name="reportFile">
        <Property></Property>
        <Property name="label">质检报告文件</Property>
      </PropertyDef>
      <PropertyDef name="remark">
        <Property></Property>
        <Property name="label">备注</Property>
      </PropertyDef>
      <PropertyDef name="createDate">
        <Property></Property>
        <Property name="label">创建时间</Property>
      </PropertyDef>
      <PropertyDef name="createBy">
        <Property></Property>
        <Property name="label">创建人</Property>
      </PropertyDef>
      <PropertyDef name="updateDate">
        <Property></Property>
        <Property name="label">更新时间</Property>
      </PropertyDef>
      <PropertyDef name="updateBy">
        <Property></Property>
        <Property name="label">更新人</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">Date</Property>
        <Property name="label">最后更新时间</Property>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property></Property>
        <Property name="label">操作标志</Property>
      </PropertyDef>
      <PropertyDef name="kqdm">
        <Property></Property>
        <Property name="label">库区代码</Property>
      </PropertyDef>
      <Reference name="orgReportRiceList">
        <Property name="parameter">$${this.orgReportRiceList}</Property>
        <Property name="dataProvider">whjlShareApi2013PR#listItemShareApi2013Dm</Property>
        <Property name="dataType">[dtItemShareApi2013Dm]</Property>
      </Reference>
      <Reference name="orgReportNoodlesList">
        <Property name="parameter">$${this.orgReportNoodlesList}</Property>
        <Property name="dataProvider">whjlShareApi2013PR#listItemShareApi2013Xmf</Property>
        <Property name="dataType">[dtItemShareApi2013Xmf]</Property>
      </Reference>
      <Reference name="orgReportSoybeanList">
        <Property name="parameter">$${this.orgReportSoybeanList}</Property>
        <Property name="dataProvider">whjlShareApi2013PR#listItemShareApi2013Dd</Property>
        <Property name="dataType">[dtItemShareApi2013Dd]</Property>
      </Reference>
      <Reference name="orgReportOilList">
        <Property name="parameter">$${this.orgReportOilList}</Property>
        <Property name="dataProvider">whjlShareApi2013PR#listItemShareApi2013Syy</Property>
        <Property name="dataType">[dtItemShareApi2013Syy]</Property>
      </Reference>
      <PropertyDef name="fileId">
        <Property></Property>
        <Property name="label">附件id</Property>
      </PropertyDef>
      <PropertyDef name="fileName">
        <Property></Property>
        <Property name="label">附件名称</Property>
      </PropertyDef>
      <PropertyDef name="fileTime">
        <Property name="dataType">Date</Property>
        <Property name="label">附件上传时间</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtItemShareApi2013Dm">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.ShareApi2013Dm</Property>
      <PropertyDef name="qlyOrgReportRiceId">
        <Property></Property>
        <Property name="label">大米质检结果ID</Property>
      </PropertyDef>
      <PropertyDef name="qlyOrgReportId">
        <Property></Property>
        <Property name="label">质检报告管理id</Property>
      </PropertyDef>
      <PropertyDef name="brokenRice">
        <Property></Property>
        <Property name="label">碎米总量</Property>
      </PropertyDef>
      <PropertyDef name="smallBrokenRice">
        <Property></Property>
        <Property name="label">小碎米含量</Property>
      </PropertyDef>
      <PropertyDef name="processingAccuracy">
        <Property></Property>
        <Property name="label">加工精度</Property>
      </PropertyDef>
      <PropertyDef name="colorOdor">
        <Property></Property>
        <Property name="label">色泽气味</Property>
      </PropertyDef>
      <PropertyDef name="impuriryContent">
        <Property></Property>
        <Property name="label">杂质含量</Property>
      </PropertyDef>
      <PropertyDef name="tastingValue">
        <Property></Property>
        <Property name="label">品尝评分值</Property>
      </PropertyDef>
      <PropertyDef name="amyloseContent">
        <Property></Property>
        <Property name="label">直链淀粉含量</Property>
      </PropertyDef>
      <PropertyDef name="waterContent">
        <Property></Property>
        <Property name="label">水分含量</Property>
      </PropertyDef>
      <PropertyDef name="incompleteContent">
        <Property></Property>
        <Property name="label">不完善粒含量</Property>
      </PropertyDef>
      <PropertyDef name="inorganicContent">
        <Property></Property>
        <Property name="label">无机杂质含量</Property>
      </PropertyDef>
      <PropertyDef name="yellowRiceContent">
        <Property></Property>
        <Property name="label">黄粒米含量</Property>
      </PropertyDef>
      <PropertyDef name="mixingRate">
        <Property></Property>
        <Property name="label">互混率</Property>
      </PropertyDef>
      <PropertyDef name="aflatioxin">
        <Property></Property>
        <Property name="label">黄曲霉毒素</Property>
      </PropertyDef>
      <PropertyDef name="cadmium">
        <Property></Property>
        <Property name="label">镉</Property>
      </PropertyDef>
      <PropertyDef name="inorganicArsenic">
        <Property></Property>
        <Property name="label">无机砷</Property>
      </PropertyDef>
      <PropertyDef name="qualityResult">
        <Property></Property>
        <Property name="label">质量判定</Property>
      </PropertyDef>
      <PropertyDef name="delectionPerson">
        <Property></Property>
        <Property name="label">检验人</Property>
      </PropertyDef>
      <PropertyDef name="delectionStartTime">
        <Property></Property>
        <Property name="label">检测开始时间</Property>
      </PropertyDef>
      <PropertyDef name="delectionEndTime">
        <Property></Property>
        <Property name="label">检测结束时间</Property>
      </PropertyDef>
      <PropertyDef name="inspectionResult">
        <Property></Property>
        <Property name="label">检验结论</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtItemShareApi2013Xmf">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.ShareApi2013Xmf</Property>
      <PropertyDef name="qlyOrgReportNoodlesId">
        <Property></Property>
        <Property name="label">小麦粉质检结果ID</Property>
      </PropertyDef>
      <PropertyDef name="qlyOrgReportId">
        <Property></Property>
        <Property name="label">质检报告管理id</Property>
      </PropertyDef>
      <PropertyDef name="ashContent">
        <Property></Property>
        <Property name="label">灰分含量</Property>
      </PropertyDef>
      <PropertyDef name="fattyContent">
        <Property></Property>
        <Property name="label">脂肪酸含量</Property>
      </PropertyDef>
      <PropertyDef name="processingAccuracy">
        <Property></Property>
        <Property name="label">加工精度</Property>
      </PropertyDef>
      <PropertyDef name="sandContent">
        <Property></Property>
        <Property name="label">含砂量</Property>
      </PropertyDef>
      <PropertyDef name="colorOdor">
        <Property></Property>
        <Property name="label">色泽气味</Property>
      </PropertyDef>
      <PropertyDef name="looksForm">
        <Property></Property>
        <Property name="label">外观形态</Property>
      </PropertyDef>
      <PropertyDef name="wetGluten">
        <Property></Property>
        <Property name="label">湿面筋含量</Property>
      </PropertyDef>
      <PropertyDef name="deoxynivalenol">
        <Property></Property>
        <Property name="label">脱氧雪腐镰刀菌烯醇</Property>
      </PropertyDef>
      <PropertyDef name="waterContent">
        <Property></Property>
        <Property name="label">水分含量</Property>
      </PropertyDef>
      <PropertyDef name="zearalenone">
        <Property></Property>
        <Property name="label">玉米赤霉烯酮</Property>
      </PropertyDef>
      <PropertyDef name="lead">
        <Property></Property>
        <Property name="label">铅</Property>
      </PropertyDef>
      <PropertyDef name="cadmium">
        <Property></Property>
        <Property name="label">镉</Property>
      </PropertyDef>
      <PropertyDef name="benzoylPeroxide">
        <Property></Property>
        <Property name="label">过氧化苯甲酰</Property>
      </PropertyDef>
      <PropertyDef name="qualityResult">
        <Property></Property>
        <Property name="label">质量判定</Property>
      </PropertyDef>
      <PropertyDef name="delectionPerson">
        <Property></Property>
        <Property name="label">检验人</Property>
      </PropertyDef>
      <PropertyDef name="delectionStartTime">
        <Property></Property>
        <Property name="label">检测开始时间</Property>
      </PropertyDef>
      <PropertyDef name="delectionEndTime">
        <Property></Property>
        <Property name="label">检测结束时间</Property>
      </PropertyDef>
      <PropertyDef name="inspectionResult">
        <Property></Property>
        <Property name="label">检验结论</Property>
      </PropertyDef>
      <PropertyDef name="reportFile">
        <Property></Property>
        <Property name="label">报告文件</Property>
      </PropertyDef>
      <PropertyDef name="hfhljg">
        <Property></Property>
        <Property name="label">灰分含量结果</Property>
      </PropertyDef>
      <PropertyDef name="zfshljg">
        <Property></Property>
        <Property name="label">脂肪酸含量结果</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtItemShareApi2013Dd">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.ShareApi2013Dd</Property>
      <PropertyDef name="qlyOrgReportSoybeanId">
        <Property></Property>
        <Property name="label">大豆质检结果ID</Property>
      </PropertyDef>
      <PropertyDef name="qlyOrgReportId">
        <Property></Property>
        <Property name="label">质检报告管理id</Property>
      </PropertyDef>
      <PropertyDef name="completeParticle">
        <Property></Property>
        <Property name="label">完整粒率</Property>
      </PropertyDef>
      <PropertyDef name="damageParticle">
        <Property></Property>
        <Property name="label">损伤粒率</Property>
      </PropertyDef>
      <PropertyDef name="damageParticleHot">
        <Property></Property>
        <Property name="label">热损伤粒率</Property>
      </PropertyDef>
      <PropertyDef name="waterContent">
        <Property></Property>
        <Property name="label">水分含量</Property>
      </PropertyDef>
      <PropertyDef name="colorOdor">
        <Property></Property>
        <Property name="label">色泽气味</Property>
      </PropertyDef>
      <PropertyDef name="impurityContent">
        <Property></Property>
        <Property name="label">杂质含量</Property>
      </PropertyDef>
      <PropertyDef name="transgenosisCamv">
        <Property></Property>
        <Property name="label">CAMV35S</Property>
      </PropertyDef>
      <PropertyDef name="transgenosisNos">
        <Property></Property>
        <Property name="label">NOS</Property>
      </PropertyDef>
      <PropertyDef name="transgenosisCoFour">
        <Property></Property>
        <Property name="label">CO4EPSPS</Property>
      </PropertyDef>
      <PropertyDef name="lection">
        <Property></Property>
        <Property name="label">LECTION</Property>
      </PropertyDef>
      <PropertyDef name="qualityResult">
        <Property></Property>
        <Property name="label">质量判定</Property>
      </PropertyDef>
      <PropertyDef name="delectionPerson">
        <Property></Property>
        <Property name="label">检验人</Property>
      </PropertyDef>
      <PropertyDef name="delectionStartTime">
        <Property></Property>
        <Property name="label">检测开始时间</Property>
      </PropertyDef>
      <PropertyDef name="delectionEndTime">
        <Property></Property>
        <Property name="label">检测结束时间</Property>
      </PropertyDef>
      <PropertyDef name="inspectionResult">
        <Property></Property>
        <Property name="label">检验结论</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtItemShareApi2013Syy">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.ShareApi2013Syy</Property>
      <PropertyDef name="qlyOrgReportOilId">
        <Property></Property>
        <Property name="label">食用油质检结果ID</Property>
      </PropertyDef>
      <PropertyDef name="qlyOrgReportId">
        <Property></Property>
        <Property name="label">质检报告管理id</Property>
      </PropertyDef>
      <PropertyDef name="colorLustre">
        <Property></Property>
        <Property name="label">色泽</Property>
      </PropertyDef>
      <PropertyDef name="transparency">
        <Property></Property>
        <Property name="label">透明度</Property>
      </PropertyDef>
      <PropertyDef name="odorTaste">
        <Property></Property>
        <Property name="label">气味滋味</Property>
      </PropertyDef>
      <PropertyDef name="waterVolatileContent">
        <Property></Property>
        <Property name="label">水分及挥发物含量</Property>
      </PropertyDef>
      <PropertyDef name="insolubleContent">
        <Property></Property>
        <Property name="label">不溶性杂质含量</Property>
      </PropertyDef>
      <PropertyDef name="acidValue">
        <Property></Property>
        <Property name="label">酸价</Property>
      </PropertyDef>
      <PropertyDef name="peroxideValue">
        <Property></Property>
        <Property name="label">过氧化值</Property>
      </PropertyDef>
      <PropertyDef name="heatingTest">
        <Property></Property>
        <Property name="label">加热试验</Property>
      </PropertyDef>
      <PropertyDef name="aflatioxin">
        <Property></Property>
        <Property name="label">黄曲霉毒素</Property>
      </PropertyDef>
      <PropertyDef name="benzoPyrene">
        <Property></Property>
        <Property name="label">苯并芘</Property>
      </PropertyDef>
      <PropertyDef name="bha">
        <Property></Property>
        <Property name="label">BHA</Property>
      </PropertyDef>
      <PropertyDef name="bht">
        <Property></Property>
        <Property name="label">BHT</Property>
      </PropertyDef>
      <PropertyDef name="tbhq">
        <Property></Property>
        <Property name="label">TBHQ</Property>
      </PropertyDef>
      <PropertyDef name="qualityResult">
        <Property></Property>
        <Property name="label">质量判定</Property>
      </PropertyDef>
      <PropertyDef name="delectionPerson">
        <Property></Property>
        <Property name="label">检验人</Property>
      </PropertyDef>
      <PropertyDef name="delectionStartTime">
        <Property></Property>
        <Property name="label">检测开始时间</Property>
      </PropertyDef>
      <PropertyDef name="delectionEndTime">
        <Property></Property>
        <Property name="label">检测结束时间</Property>
      </PropertyDef>
      <PropertyDef name="inspectionResult">
        <Property></Property>
        <Property name="label">检验结论</Property>
      </PropertyDef>
    </DataType>
  </Model>
  <View layout="regionPadding:10">
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
      <Property name="dataType">[dtMain]</Property>
      <Property name="dataProvider">whjlShareApi2013PR2#listData</Property>
    </DataSet>
    <Container layout="regionPadding:10" layoutConstraint="top">
      <Property name="exClassName">bg-color</Property>
      <Property name="height">55</Property>
      <Property name="contentOverflow">hidden</Property>
      <Label layoutConstraint="left">
        <Property name="text">菜单栏:</Property>
      </Label>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">view.get(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).show();</ClientEvent>
        <Property name="iconClass">fa fa-plus</Property>
        <Property name="caption">新增</Property>
        <Property name="exClassName">btn-default</Property>
      </Button>
      <Button layoutConstraint="left">
        <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="exClassName">btn-warm</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.remove();&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要删除的数据!&quot;);&#xD;
}</ClientEvent>
        <Property name="caption">删除</Property>
        <Property name="iconClass">fa fa-minus</Property>
        <Property name="exClassName">btn-warn</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">view.get(&quot;#dsMain&quot;).flushAsync();</ClientEvent>
        <Property name="caption">刷新</Property>
        <Property name="iconClass">fa fa-search</Property>
        <Property name="exClassName">btn-flush</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">&#xD;
var select = view.get(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
    view.get(&quot;#ajaxsysDataToDept&quot;).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });</ClientEvent>
        <Property name="caption">同步至库区</Property>
        <Property name="iconClass">fa fa-hand-o-up</Property>
        <Property name="exClassName">btn-default</Property>
      </Button>
      <Button layoutConstraint="right">
        <ClientEvent name="onClick">//显示记录&#xD;
view.get(&quot;#iFrame&quot;).reload();&#xD;
view.get(&quot;#dialogLog&quot;).show();</ClientEvent>
        <Property name="caption">更新记录</Property>
        <Property name="iconClass">fa fa-bars</Property>
        <Property name="exClassName">btn-flush</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">var select = view.get(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
    view.get(&quot;#ajaxPull&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
 </ClientEvent>
        <Property name="caption">手动更新</Property>
        <Property name="iconClass">fa fa-hand-o-up</Property>
        <Property name="exClassName">btn-default</Property>
      </Button>
    </Container>
    <Container layoutConstraint="center">
      <Property name="exClassName">bg-color</Property>
      <DataGrid id="dgMain">
        <ClientEvent name="onDataRowDoubleClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
if(data){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}</ClientEvent>
        <Property name="dataSet">dsMain</Property>
        <Property name="selectionMode">multiRows</Property>
        <Property name="readOnly">true</Property>
        <RowNumColumn/>
        <RowSelectorColumn>
          <Property name="caption">上传</Property>
        </RowSelectorColumn>
        <DataColumn name="qlyOrgReportId">
          <Property name="property">qlyOrgReportId</Property>
        </DataColumn>
        <DataColumn name="orderId">
          <Property name="property">orderId</Property>
        </DataColumn>
        <DataColumn name="sampleId">
          <Property name="property">sampleId</Property>
        </DataColumn>
        <DataColumn name="orgId">
          <Property name="property">orgId</Property>
        </DataColumn>
        <DataColumn name="qualityOrgId">
          <Property name="property">qualityOrgId</Property>
        </DataColumn>
        <DataColumn name="qualityOrgName">
          <Property name="property">qualityOrgName</Property>
        </DataColumn>
        <DataColumn name="gysxydm">
          <Property name="property">gysxydm</Property>
        </DataColumn>
        <DataColumn name="jlqybh">
          <Property name="property">jlqybh</Property>
        </DataColumn>
        <DataColumn name="jlqymc">
          <Property name="property">jlqymc</Property>
        </DataColumn>
        <DataColumn name="kdbm">
          <Property name="property">kdbm</Property>
        </DataColumn>
        <DataColumn name="kdmc">
          <Property name="property">kdmc</Property>
        </DataColumn>
        <DataColumn name="delectionType">
          <Property name="property">delectionType</Property>
        </DataColumn>
        <DataColumn name="deletctionNumber">
          <Property name="property">deletctionNumber</Property>
        </DataColumn>
        <DataColumn name="jlcpmc">
          <Property name="property">jlcpmc</Property>
        </DataColumn>
        <DataColumn name="jllspz">
          <Property name="property">jllspz</Property>
        </DataColumn>
        <DataColumn name="lotNumber">
          <Property name="property">lotNumber</Property>
        </DataColumn>
        <DataColumn name="specificationModel">
          <Property name="property">specificationModel</Property>
        </DataColumn>
        <DataColumn name="cysm">
          <Property name="property">cysm</Property>
        </DataColumn>
        <DataColumn name="registration">
          <Property name="property">registration</Property>
        </DataColumn>
        <DataColumn name="inspectPlan">
          <Property name="property">inspectPlan</Property>
        </DataColumn>
        <DataColumn name="productType">
          <Property name="property">productType</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Dialog id="dialogMain" layout="regionPadding:10;padding:5">
      <Property name="width">80%</Property>
      <Property name="closeable">false</Property>
      <Property name="iconClass">fa fa-sliders</Property>
      <Property name="caption">应急方案信息</Property>
      <Property name="height">85%</Property>
      <Buttons>
        <Button>
          <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#updateSave&quot;).execute(function(){&#xD;
    self.get(&quot;parent&quot;).hide();&#xD;
    view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
});</ClientEvent>
          <Property name="caption">确定</Property>
          <Property name="iconClass">fa fa-check</Property>
        </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>
        </Button>
      </Buttons>
      <Children>
        <FieldSet>
          <Property name="caption">省质检中心报告</Property>
          <Buttons/>
          <Children>
            <AutoForm>
              <Property name="dataSet">dsMain</Property>
              <Property name="cols">*,*</Property>
              <Property name="labelPosition">left</Property>
              <Property name="labelSeparator">:</Property>
              <Property name="labelAlign">right</Property>
              <Property name="labelWidth">120</Property>
              <AutoFormElement>
                <Property name="name">qlyOrgReportId</Property>
                <Property name="property">qlyOrgReportId</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">orderId</Property>
                <Property name="property">orderId</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">sampleId</Property>
                <Property name="property">sampleId</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">orgId</Property>
                <Property name="property">orgId</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">qualityOrgId</Property>
                <Property name="property">qualityOrgId</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">qualityOrgName</Property>
                <Property name="property">qualityOrgName</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">gysxydm</Property>
                <Property name="property">gysxydm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jlqybh</Property>
                <Property name="property">jlqybh</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jlqymc</Property>
                <Property name="property">jlqymc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">kdbm</Property>
                <Property name="property">kdbm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">kdmc</Property>
                <Property name="property">kdmc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">delectionType</Property>
                <Property name="property">delectionType</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">deletctionNumber</Property>
                <Property name="property">deletctionNumber</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jlcpmc</Property>
                <Property name="property">jlcpmc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jllspz</Property>
                <Property name="property">jllspz</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">lotNumber</Property>
                <Property name="property">lotNumber</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">specificationModel</Property>
                <Property name="property">specificationModel</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">cysm</Property>
                <Property name="property">cysm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">registration</Property>
                <Property name="property">registration</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">inspectPlan</Property>
                <Property name="property">inspectPlan</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">productType</Property>
                <Property name="property">productType</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">cyjs</Property>
                <Property name="property">cyjs</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">cysl</Property>
                <Property name="property">cysl</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">sampler</Property>
                <Property name="property">sampler</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">samplerTime</Property>
                <Property name="property">samplerTime</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">samplerArea</Property>
                <Property name="property">samplerArea</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">createTime</Property>
                <Property name="property">createTime</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">isActive</Property>
                <Property name="property">isActive</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">reportFile</Property>
                <Property name="property">reportFile</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">remark</Property>
                <Property name="property">remark</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">createDate</Property>
                <Property name="property">createDate</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">createBy</Property>
                <Property name="property">createBy</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">updateDate</Property>
                <Property name="property">updateDate</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">updateBy</Property>
                <Property name="property">updateBy</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">updateTime</Property>
                <Property name="property">updateTime</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">czbz</Property>
                <Property name="property">czbz</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">kqdm</Property>
                <Property name="property">kqdm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">orgReportRiceList</Property>
                <Property name="property">orgReportRiceList</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">orgReportNoodlesList</Property>
                <Property name="property">orgReportNoodlesList</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">orgReportSoybeanList</Property>
                <Property name="property">orgReportSoybeanList</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">orgReportOilList</Property>
                <Property name="property">orgReportOilList</Property>
                <Editor/>
              </AutoFormElement>
            </AutoForm>
          </Children>
        </FieldSet>
        <Panel layout="regionPadding:5">
          <Property name="caption">大米检验结果</Property>
          <Property name="height">200</Property>
          <Buttons/>
          <Children>
            <DataGrid id="dataGridDetail2">
              <Property name="dataSet">dsMain</Property>
              <Property name="dataPath">#.orgReportRiceList</Property>
              <DataColumn name="qlyOrgReportRiceId">
                <Property name="property">qlyOrgReportRiceId</Property>
              </DataColumn>
              <DataColumn name="qlyOrgReportId">
                <Property name="property">qlyOrgReportId</Property>
              </DataColumn>
              <DataColumn name="brokenRice">
                <Property name="property">brokenRice</Property>
              </DataColumn>
              <DataColumn name="smallBrokenRice">
                <Property name="property">smallBrokenRice</Property>
              </DataColumn>
              <DataColumn name="processingAccuracy">
                <Property name="property">processingAccuracy</Property>
              </DataColumn>
              <DataColumn name="colorOdor">
                <Property name="property">colorOdor</Property>
              </DataColumn>
              <DataColumn name="impuriryContent">
                <Property name="property">impuriryContent</Property>
              </DataColumn>
              <DataColumn name="tastingValue">
                <Property name="property">tastingValue</Property>
              </DataColumn>
              <DataColumn name="amyloseContent">
                <Property name="property">amyloseContent</Property>
              </DataColumn>
              <DataColumn name="waterContent">
                <Property name="property">waterContent</Property>
              </DataColumn>
              <DataColumn name="incompleteContent">
                <Property name="property">incompleteContent</Property>
              </DataColumn>
              <DataColumn name="inorganicContent">
                <Property name="property">inorganicContent</Property>
              </DataColumn>
              <DataColumn name="yellowRiceContent">
                <Property name="property">yellowRiceContent</Property>
              </DataColumn>
              <DataColumn name="mixingRate">
                <Property name="property">mixingRate</Property>
              </DataColumn>
              <DataColumn name="aflatioxin">
                <Property name="property">aflatioxin</Property>
              </DataColumn>
              <DataColumn name="cadmium">
                <Property name="property">cadmium</Property>
              </DataColumn>
              <DataColumn name="inorganicArsenic">
                <Property name="property">inorganicArsenic</Property>
              </DataColumn>
              <DataColumn name="qualityResult">
                <Property name="property">qualityResult</Property>
              </DataColumn>
              <DataColumn name="delectionPerson">
                <Property name="property">delectionPerson</Property>
              </DataColumn>
              <DataColumn name="delectionStartTime">
                <Property name="property">delectionStartTime</Property>
              </DataColumn>
              <DataColumn name="delectionEndTime">
                <Property name="property">delectionEndTime</Property>
              </DataColumn>
              <DataColumn name="inspectionResult">
                <Property name="property">inspectionResult</Property>
              </DataColumn>
            </DataGrid>
          </Children>
          <Tools/>
        </Panel>
        <Panel layout="regionPadding:5">
          <Property name="caption">小麦粉检验结果</Property>
          <Property name="height">200</Property>
          <Buttons/>
          <Children>
            <DataGrid id="dataGridDetail3">
              <Property name="dataSet">dsMain</Property>
              <Property name="dataPath">#.orgReportNoodlesList</Property>
              <DataColumn name="qlyOrgReportNoodlesId">
                <Property name="property">qlyOrgReportNoodlesId</Property>
              </DataColumn>
              <DataColumn name="qlyOrgReportId">
                <Property name="property">qlyOrgReportId</Property>
              </DataColumn>
              <DataColumn name="ashContent">
                <Property name="property">ashContent</Property>
              </DataColumn>
              <DataColumn name="fattyContent">
                <Property name="property">fattyContent</Property>
              </DataColumn>
              <DataColumn name="processingAccuracy">
                <Property name="property">processingAccuracy</Property>
              </DataColumn>
              <DataColumn name="sandContent">
                <Property name="property">sandContent</Property>
              </DataColumn>
              <DataColumn name="colorOdor">
                <Property name="property">colorOdor</Property>
              </DataColumn>
              <DataColumn name="looksForm">
                <Property name="property">looksForm</Property>
              </DataColumn>
              <DataColumn name="wetGluten">
                <Property name="property">wetGluten</Property>
              </DataColumn>
              <DataColumn name="deoxynivalenol">
                <Property name="property">deoxynivalenol</Property>
              </DataColumn>
              <DataColumn name="waterContent">
                <Property name="property">waterContent</Property>
              </DataColumn>
              <DataColumn name="zearalenone">
                <Property name="property">zearalenone</Property>
              </DataColumn>
              <DataColumn name="lead">
                <Property name="property">lead</Property>
              </DataColumn>
              <DataColumn name="cadmium">
                <Property name="property">cadmium</Property>
              </DataColumn>
              <DataColumn name="benzoylPeroxide">
                <Property name="property">benzoylPeroxide</Property>
              </DataColumn>
              <DataColumn name="qualityResult">
                <Property name="property">qualityResult</Property>
              </DataColumn>
              <DataColumn name="delectionPerson">
                <Property name="property">delectionPerson</Property>
              </DataColumn>
              <DataColumn name="delectionStartTime">
                <Property name="property">delectionStartTime</Property>
              </DataColumn>
              <DataColumn name="delectionEndTime">
                <Property name="property">delectionEndTime</Property>
              </DataColumn>
              <DataColumn name="inspectionResult">
                <Property name="property">inspectionResult</Property>
              </DataColumn>
              <DataColumn name="reportFile">
                <Property name="property">reportFile</Property>
              </DataColumn>
              <DataColumn name="hfhljg">
                <Property name="property">hfhljg</Property>
              </DataColumn>
              <DataColumn name="zfshljg">
                <Property name="property">zfshljg</Property>
              </DataColumn>
            </DataGrid>
          </Children>
          <Tools/>
        </Panel>
        <Panel layout="regionPadding:5">
          <Property name="caption">大豆检验结果</Property>
          <Property name="height">200</Property>
          <Buttons/>
          <Children>
            <DataGrid id="dataGridDetail4">
              <Property name="dataSet">dsMain</Property>
              <Property name="dataPath">#.orgReportSoybeanList</Property>
              <DataColumn name="qlyOrgReportSoybeanId">
                <Property name="property">qlyOrgReportSoybeanId</Property>
              </DataColumn>
              <DataColumn name="qlyOrgReportId">
                <Property name="property">qlyOrgReportId</Property>
              </DataColumn>
              <DataColumn name="completeParticle">
                <Property name="property">completeParticle</Property>
              </DataColumn>
              <DataColumn name="damageParticle">
                <Property name="property">damageParticle</Property>
              </DataColumn>
              <DataColumn name="damageParticleHot">
                <Property name="property">damageParticleHot</Property>
              </DataColumn>
              <DataColumn name="waterContent">
                <Property name="property">waterContent</Property>
              </DataColumn>
              <DataColumn name="colorOdor">
                <Property name="property">colorOdor</Property>
              </DataColumn>
              <DataColumn name="impurityContent">
                <Property name="property">impurityContent</Property>
              </DataColumn>
              <DataColumn name="transgenosisCamv">
                <Property name="property">transgenosisCamv</Property>
              </DataColumn>
              <DataColumn name="transgenosisNos">
                <Property name="property">transgenosisNos</Property>
              </DataColumn>
              <DataColumn name="transgenosisCoFour">
                <Property name="property">transgenosisCoFour</Property>
              </DataColumn>
              <DataColumn name="lection">
                <Property name="property">lection</Property>
              </DataColumn>
              <DataColumn name="qualityResult">
                <Property name="property">qualityResult</Property>
              </DataColumn>
              <DataColumn name="delectionPerson">
                <Property name="property">delectionPerson</Property>
              </DataColumn>
              <DataColumn name="delectionStartTime">
                <Property name="property">delectionStartTime</Property>
              </DataColumn>
              <DataColumn name="delectionEndTime">
                <Property name="property">delectionEndTime</Property>
              </DataColumn>
              <DataColumn name="inspectionResult">
                <Property name="property">inspectionResult</Property>
              </DataColumn>
            </DataGrid>
          </Children>
          <Tools/>
        </Panel>
        <Panel layout="regionPadding:5">
          <Property name="caption">食用油检验结果</Property>
          <Property name="height">200</Property>
          <Buttons/>
          <Children>
            <DataGrid id="dataGridDetail5">
              <Property name="dataSet">dsMain</Property>
              <Property name="dataPath">#.orgReportOilList</Property>
              <DataColumn name="qlyOrgReportOilId">
                <Property name="property">qlyOrgReportOilId</Property>
              </DataColumn>
              <DataColumn name="qlyOrgReportId">
                <Property name="property">qlyOrgReportId</Property>
              </DataColumn>
              <DataColumn name="colorLustre">
                <Property name="property">colorLustre</Property>
              </DataColumn>
              <DataColumn name="transparency">
                <Property name="property">transparency</Property>
              </DataColumn>
              <DataColumn name="odorTaste">
                <Property name="property">odorTaste</Property>
              </DataColumn>
              <DataColumn name="waterVolatileContent">
                <Property name="property">waterVolatileContent</Property>
              </DataColumn>
              <DataColumn name="insolubleContent">
                <Property name="property">insolubleContent</Property>
              </DataColumn>
              <DataColumn name="acidValue">
                <Property name="property">acidValue</Property>
              </DataColumn>
              <DataColumn name="peroxideValue">
                <Property name="property">peroxideValue</Property>
              </DataColumn>
              <DataColumn name="heatingTest">
                <Property name="property">heatingTest</Property>
              </DataColumn>
              <DataColumn name="aflatioxin">
                <Property name="property">aflatioxin</Property>
              </DataColumn>
              <DataColumn name="benzoPyrene">
                <Property name="property">benzoPyrene</Property>
              </DataColumn>
              <DataColumn name="bha">
                <Property name="property">bha</Property>
              </DataColumn>
              <DataColumn name="bht">
                <Property name="property">bht</Property>
              </DataColumn>
              <DataColumn name="tbhq">
                <Property name="property">tbhq</Property>
              </DataColumn>
              <DataColumn name="qualityResult">
                <Property name="property">qualityResult</Property>
              </DataColumn>
              <DataColumn name="delectionPerson">
                <Property name="property">delectionPerson</Property>
              </DataColumn>
              <DataColumn name="delectionStartTime">
                <Property name="property">delectionStartTime</Property>
              </DataColumn>
              <DataColumn name="delectionEndTime">
                <Property name="property">delectionEndTime</Property>
              </DataColumn>
              <DataColumn name="inspectionResult">
                <Property name="property">inspectionResult</Property>
              </DataColumn>
            </DataGrid>
          </Children>
          <Tools/>
        </Panel>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">whjlShareApi2013PR2#saveData</Property>
      <UpdateItem>
        <Property name="dataPath">[#current]</Property>
        <Property name="dataSet">dsMain</Property>
      </UpdateItem>
    </UpdateAction>
    <AjaxAction id="ajaxDel">
      <Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property>
      <Property name="service">whjlShareApi2013PR2#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPull">
      <Property name="service">whjlShareApi2013PR2#pullData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxsysDataToDept">
      <Property name="service">whjlShareApi2013PR2#sysDataToDept</Property>
    </AjaxAction>
    <Dialog id="dialogLog">
      <Property name="width">90%</Property>
      <Property name="height">90%</Property>
      <Property name="caption">更新记录</Property>
      <Property name="iconClass">fa fa-sliders</Property>
      <Buttons>
        <Button>
          <ClientEvent name="onClick">self.get(&quot;parent&quot;).hide();</ClientEvent>
          <Property name="caption">关闭</Property>
          <Property name="iconClass">fa fa-times</Property>
        </Button>
      </Buttons>
      <Children>
        <Container>
          <IFrame id="iFrame">
            <Property name="path">com.fzzy.api.view.ApiLog.d</Property>
            <Property name="userData">
              <Entity>
                <Property name="deptId">deptId</Property>
              </Entity>
            </Property>
          </IFrame>
        </Container>
      </Children>
      <Tools/>
    </Dialog>
    <ListDropDown id="listDropYN">
      <Property name="items">是,否</Property>
    </ListDropDown>
  </View>
</ViewConfig>
src/main/java/com/fzzy/otherview/whhpjl/WhjlShareApi20132.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,1330 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlShareApi2013</Property>
      <PropertyDef name="qlyOrgReportId">
        <Property></Property>
        <Property name="label">质检报告id</Property>
      </PropertyDef>
      <PropertyDef name="orderId">
        <Property></Property>
        <Property name="label">订单表ID</Property>
      </PropertyDef>
      <PropertyDef name="sampleId">
        <Property></Property>
        <Property name="label">样品表ID</Property>
      </PropertyDef>
      <PropertyDef name="orgId">
        <Property></Property>
        <Property name="label">机构表ID</Property>
      </PropertyDef>
      <PropertyDef name="qualityOrgId">
        <Property></Property>
        <Property name="label">质检机构编号</Property>
      </PropertyDef>
      <PropertyDef name="qualityOrgName">
        <Property></Property>
        <Property name="label">质检机构名称</Property>
      </PropertyDef>
      <PropertyDef name="gysxydm">
        <Property></Property>
        <Property name="label">供应商信用代码</Property>
      </PropertyDef>
      <PropertyDef name="jlqybh">
        <Property></Property>
        <Property name="label">军粮企业编号</Property>
      </PropertyDef>
      <PropertyDef name="jlqymc">
        <Property></Property>
        <Property name="label">军粮企业名称</Property>
      </PropertyDef>
      <PropertyDef name="kdbm">
        <Property></Property>
        <Property name="label">库点编码</Property>
      </PropertyDef>
      <PropertyDef name="kdmc">
        <Property></Property>
        <Property name="label">库点名称</Property>
      </PropertyDef>
      <PropertyDef name="delectionType">
        <Property></Property>
        <Property name="label">检测报告类型</Property>
      </PropertyDef>
      <PropertyDef name="deletctionNumber">
        <Property></Property>
        <Property name="label">检测报告编号</Property>
      </PropertyDef>
      <PropertyDef name="jlcpmc">
        <Property></Property>
        <Property name="label">军粮产品名称</Property>
      </PropertyDef>
      <PropertyDef name="jllspz">
        <Property></Property>
        <Property name="label">军粮粮食品种</Property>
      </PropertyDef>
      <PropertyDef name="lotNumber">
        <Property></Property>
        <Property name="label">批号</Property>
      </PropertyDef>
      <PropertyDef name="specificationModel">
        <Property></Property>
        <Property name="label">规格型号</Property>
      </PropertyDef>
      <PropertyDef name="cysm">
        <Property></Property>
        <Property name="label">抽样说明</Property>
      </PropertyDef>
      <PropertyDef name="registration">
        <Property></Property>
        <Property name="label">登记时间</Property>
      </PropertyDef>
      <PropertyDef name="inspectPlan">
        <Property></Property>
        <Property name="label">检验方案</Property>
      </PropertyDef>
      <PropertyDef name="productType">
        <Property></Property>
        <Property name="label">产品类型</Property>
      </PropertyDef>
      <PropertyDef name="cyjs">
        <Property></Property>
        <Property name="label">抽样基数</Property>
      </PropertyDef>
      <PropertyDef name="cysl">
        <Property></Property>
        <Property name="label">抽样数量</Property>
      </PropertyDef>
      <PropertyDef name="sampler">
        <Property></Property>
        <Property name="label">抽样人</Property>
      </PropertyDef>
      <PropertyDef name="samplerTime">
        <Property></Property>
        <Property name="label">抽样时间</Property>
      </PropertyDef>
      <PropertyDef name="samplerArea">
        <Property></Property>
        <Property name="label">抽样地点</Property>
      </PropertyDef>
      <PropertyDef name="createTime">
        <Property></Property>
        <Property name="label">生产日期</Property>
      </PropertyDef>
      <PropertyDef name="isActive">
        <Property></Property>
        <Property name="label">是否有效</Property>
      </PropertyDef>
      <PropertyDef name="reportFile">
        <Property></Property>
        <Property name="label">质检报告文件</Property>
      </PropertyDef>
      <PropertyDef name="remark">
        <Property></Property>
        <Property name="label">备注</Property>
      </PropertyDef>
      <PropertyDef name="createDate">
        <Property></Property>
        <Property name="label">创建时间</Property>
      </PropertyDef>
      <PropertyDef name="createBy">
        <Property></Property>
        <Property name="label">创建人</Property>
      </PropertyDef>
      <PropertyDef name="updateDate">
        <Property></Property>
        <Property name="label">更新时间</Property>
      </PropertyDef>
      <PropertyDef name="updateBy">
        <Property></Property>
        <Property name="label">更新人</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">Date</Property>
        <Property name="label">最后更新时间</Property>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property></Property>
        <Property name="label">操作标志</Property>
      </PropertyDef>
      <PropertyDef name="kqdm">
        <Property></Property>
        <Property name="label">库区代码</Property>
      </PropertyDef>
      <Reference name="orgReportRiceList">
        <Property name="parameter">$${this.orgReportRiceList}</Property>
        <Property name="dataProvider">whjlShareApi2013PR#listItemShareApi2013Dm</Property>
        <Property name="dataType">[dtItemShareApi2013Dm]</Property>
      </Reference>
      <Reference name="orgReportNoodlesList">
        <Property name="parameter">$${this.orgReportNoodlesList}</Property>
        <Property name="dataProvider">whjlShareApi2013PR#listItemShareApi2013Xmf</Property>
        <Property name="dataType">[dtItemShareApi2013Xmf]</Property>
      </Reference>
      <Reference name="orgReportSoybeanList">
        <Property name="parameter">$${this.orgReportSoybeanList}</Property>
        <Property name="dataProvider">whjlShareApi2013PR#listItemShareApi2013Dd</Property>
        <Property name="dataType">[dtItemShareApi2013Dd]</Property>
      </Reference>
      <Reference name="orgReportOilList">
        <Property name="parameter">$${this.orgReportOilList}</Property>
        <Property name="dataProvider">whjlShareApi2013PR#listItemShareApi2013Syy</Property>
        <Property name="dataType">[dtItemShareApi2013Syy]</Property>
      </Reference>
      <PropertyDef name="fileId">
        <Property></Property>
        <Property name="label">附件id</Property>
      </PropertyDef>
      <PropertyDef name="fileName">
        <Property></Property>
        <Property name="label">附件名称</Property>
      </PropertyDef>
      <PropertyDef name="fileTime">
        <Property name="dataType">Date</Property>
        <Property name="label">附件上传时间</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtItemShareApi2013Dm">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.ShareApi2013Dm</Property>
      <PropertyDef name="qlyOrgReportRiceId">
        <Property></Property>
        <Property name="label">大米质检结果ID</Property>
      </PropertyDef>
      <PropertyDef name="qlyOrgReportId">
        <Property></Property>
        <Property name="label">质检报告管理id</Property>
      </PropertyDef>
      <PropertyDef name="brokenRice">
        <Property></Property>
        <Property name="label">碎米总量</Property>
      </PropertyDef>
      <PropertyDef name="smallBrokenRice">
        <Property></Property>
        <Property name="label">小碎米含量</Property>
      </PropertyDef>
      <PropertyDef name="processingAccuracy">
        <Property></Property>
        <Property name="label">加工精度</Property>
      </PropertyDef>
      <PropertyDef name="colorOdor">
        <Property></Property>
        <Property name="label">色泽气味</Property>
      </PropertyDef>
      <PropertyDef name="impuriryContent">
        <Property></Property>
        <Property name="label">杂质含量</Property>
      </PropertyDef>
      <PropertyDef name="tastingValue">
        <Property></Property>
        <Property name="label">品尝评分值</Property>
      </PropertyDef>
      <PropertyDef name="amyloseContent">
        <Property></Property>
        <Property name="label">直链淀粉含量</Property>
      </PropertyDef>
      <PropertyDef name="waterContent">
        <Property></Property>
        <Property name="label">水分含量</Property>
      </PropertyDef>
      <PropertyDef name="incompleteContent">
        <Property></Property>
        <Property name="label">不完善粒含量</Property>
      </PropertyDef>
      <PropertyDef name="inorganicContent">
        <Property></Property>
        <Property name="label">无机杂质含量</Property>
      </PropertyDef>
      <PropertyDef name="yellowRiceContent">
        <Property></Property>
        <Property name="label">黄粒米含量</Property>
      </PropertyDef>
      <PropertyDef name="mixingRate">
        <Property></Property>
        <Property name="label">互混率</Property>
      </PropertyDef>
      <PropertyDef name="aflatioxin">
        <Property></Property>
        <Property name="label">黄曲霉毒素</Property>
      </PropertyDef>
      <PropertyDef name="cadmium">
        <Property></Property>
        <Property name="label">镉</Property>
      </PropertyDef>
      <PropertyDef name="inorganicArsenic">
        <Property></Property>
        <Property name="label">无机砷</Property>
      </PropertyDef>
      <PropertyDef name="qualityResult">
        <Property></Property>
        <Property name="label">质量判定</Property>
      </PropertyDef>
      <PropertyDef name="delectionPerson">
        <Property></Property>
        <Property name="label">检验人</Property>
      </PropertyDef>
      <PropertyDef name="delectionStartTime">
        <Property></Property>
        <Property name="label">检测开始时间</Property>
      </PropertyDef>
      <PropertyDef name="delectionEndTime">
        <Property></Property>
        <Property name="label">检测结束时间</Property>
      </PropertyDef>
      <PropertyDef name="inspectionResult">
        <Property></Property>
        <Property name="label">检验结论</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtItemShareApi2013Xmf">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.ShareApi2013Xmf</Property>
      <PropertyDef name="qlyOrgReportNoodlesId">
        <Property></Property>
        <Property name="label">小麦粉质检结果ID</Property>
      </PropertyDef>
      <PropertyDef name="qlyOrgReportId">
        <Property></Property>
        <Property name="label">质检报告管理id</Property>
      </PropertyDef>
      <PropertyDef name="ashContent">
        <Property></Property>
        <Property name="label">灰分含量</Property>
      </PropertyDef>
      <PropertyDef name="fattyContent">
        <Property></Property>
        <Property name="label">脂肪酸含量</Property>
      </PropertyDef>
      <PropertyDef name="processingAccuracy">
        <Property></Property>
        <Property name="label">加工精度</Property>
      </PropertyDef>
      <PropertyDef name="sandContent">
        <Property></Property>
        <Property name="label">含砂量</Property>
      </PropertyDef>
      <PropertyDef name="colorOdor">
        <Property></Property>
        <Property name="label">色泽气味</Property>
      </PropertyDef>
      <PropertyDef name="looksForm">
        <Property></Property>
        <Property name="label">外观形态</Property>
      </PropertyDef>
      <PropertyDef name="wetGluten">
        <Property></Property>
        <Property name="label">湿面筋含量</Property>
      </PropertyDef>
      <PropertyDef name="deoxynivalenol">
        <Property></Property>
        <Property name="label">脱氧雪腐镰刀菌烯醇</Property>
      </PropertyDef>
      <PropertyDef name="waterContent">
        <Property></Property>
        <Property name="label">水分含量</Property>
      </PropertyDef>
      <PropertyDef name="zearalenone">
        <Property></Property>
        <Property name="label">玉米赤霉烯酮</Property>
      </PropertyDef>
      <PropertyDef name="lead">
        <Property></Property>
        <Property name="label">铅</Property>
      </PropertyDef>
      <PropertyDef name="cadmium">
        <Property></Property>
        <Property name="label">镉</Property>
      </PropertyDef>
      <PropertyDef name="benzoylPeroxide">
        <Property></Property>
        <Property name="label">过氧化苯甲酰</Property>
      </PropertyDef>
      <PropertyDef name="qualityResult">
        <Property></Property>
        <Property name="label">质量判定</Property>
      </PropertyDef>
      <PropertyDef name="delectionPerson">
        <Property></Property>
        <Property name="label">检验人</Property>
      </PropertyDef>
      <PropertyDef name="delectionStartTime">
        <Property></Property>
        <Property name="label">检测开始时间</Property>
      </PropertyDef>
      <PropertyDef name="delectionEndTime">
        <Property></Property>
        <Property name="label">检测结束时间</Property>
      </PropertyDef>
      <PropertyDef name="inspectionResult">
        <Property></Property>
        <Property name="label">检验结论</Property>
      </PropertyDef>
      <PropertyDef name="reportFile">
        <Property></Property>
        <Property name="label">报告文件</Property>
      </PropertyDef>
      <PropertyDef name="hfhljg">
        <Property></Property>
        <Property name="label">灰分含量结果</Property>
      </PropertyDef>
      <PropertyDef name="zfshljg">
        <Property></Property>
        <Property name="label">脂肪酸含量结果</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtItemShareApi2013Dd">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.ShareApi2013Dd</Property>
      <PropertyDef name="qlyOrgReportSoybeanId">
        <Property></Property>
        <Property name="label">大豆质检结果ID</Property>
      </PropertyDef>
      <PropertyDef name="qlyOrgReportId">
        <Property></Property>
        <Property name="label">质检报告管理id</Property>
      </PropertyDef>
      <PropertyDef name="completeParticle">
        <Property></Property>
        <Property name="label">完整粒率</Property>
      </PropertyDef>
      <PropertyDef name="damageParticle">
        <Property></Property>
        <Property name="label">损伤粒率</Property>
      </PropertyDef>
      <PropertyDef name="damageParticleHot">
        <Property></Property>
        <Property name="label">热损伤粒率</Property>
      </PropertyDef>
      <PropertyDef name="waterContent">
        <Property></Property>
        <Property name="label">水分含量</Property>
      </PropertyDef>
      <PropertyDef name="colorOdor">
        <Property></Property>
        <Property name="label">色泽气味</Property>
      </PropertyDef>
      <PropertyDef name="impurityContent">
        <Property></Property>
        <Property name="label">杂质含量</Property>
      </PropertyDef>
      <PropertyDef name="transgenosisCamv">
        <Property></Property>
        <Property name="label">CAMV35S</Property>
      </PropertyDef>
      <PropertyDef name="transgenosisNos">
        <Property></Property>
        <Property name="label">NOS</Property>
      </PropertyDef>
      <PropertyDef name="transgenosisCoFour">
        <Property></Property>
        <Property name="label">CO4EPSPS</Property>
      </PropertyDef>
      <PropertyDef name="lection">
        <Property></Property>
        <Property name="label">LECTION</Property>
      </PropertyDef>
      <PropertyDef name="qualityResult">
        <Property></Property>
        <Property name="label">质量判定</Property>
      </PropertyDef>
      <PropertyDef name="delectionPerson">
        <Property></Property>
        <Property name="label">检验人</Property>
      </PropertyDef>
      <PropertyDef name="delectionStartTime">
        <Property></Property>
        <Property name="label">检测开始时间</Property>
      </PropertyDef>
      <PropertyDef name="delectionEndTime">
        <Property></Property>
        <Property name="label">检测结束时间</Property>
      </PropertyDef>
      <PropertyDef name="inspectionResult">
        <Property></Property>
        <Property name="label">检验结论</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtItemShareApi2013Syy">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.ShareApi2013Syy</Property>
      <PropertyDef name="qlyOrgReportOilId">
        <Property></Property>
        <Property name="label">食用油质检结果ID</Property>
      </PropertyDef>
      <PropertyDef name="qlyOrgReportId">
        <Property></Property>
        <Property name="label">质检报告管理id</Property>
      </PropertyDef>
      <PropertyDef name="colorLustre">
        <Property></Property>
        <Property name="label">色泽</Property>
      </PropertyDef>
      <PropertyDef name="transparency">
        <Property></Property>
        <Property name="label">透明度</Property>
      </PropertyDef>
      <PropertyDef name="odorTaste">
        <Property></Property>
        <Property name="label">气味滋味</Property>
      </PropertyDef>
      <PropertyDef name="waterVolatileContent">
        <Property></Property>
        <Property name="label">水分及挥发物含量</Property>
      </PropertyDef>
      <PropertyDef name="insolubleContent">
        <Property></Property>
        <Property name="label">不溶性杂质含量</Property>
      </PropertyDef>
      <PropertyDef name="acidValue">
        <Property></Property>
        <Property name="label">酸价</Property>
      </PropertyDef>
      <PropertyDef name="peroxideValue">
        <Property></Property>
        <Property name="label">过氧化值</Property>
      </PropertyDef>
      <PropertyDef name="heatingTest">
        <Property></Property>
        <Property name="label">加热试验</Property>
      </PropertyDef>
      <PropertyDef name="aflatioxin">
        <Property></Property>
        <Property name="label">黄曲霉毒素</Property>
      </PropertyDef>
      <PropertyDef name="benzoPyrene">
        <Property></Property>
        <Property name="label">苯并芘</Property>
      </PropertyDef>
      <PropertyDef name="bha">
        <Property></Property>
        <Property name="label">BHA</Property>
      </PropertyDef>
      <PropertyDef name="bht">
        <Property></Property>
        <Property name="label">BHT</Property>
      </PropertyDef>
      <PropertyDef name="tbhq">
        <Property></Property>
        <Property name="label">TBHQ</Property>
      </PropertyDef>
      <PropertyDef name="qualityResult">
        <Property></Property>
        <Property name="label">质量判定</Property>
      </PropertyDef>
      <PropertyDef name="delectionPerson">
        <Property></Property>
        <Property name="label">检验人</Property>
      </PropertyDef>
      <PropertyDef name="delectionStartTime">
        <Property></Property>
        <Property name="label">检测开始时间</Property>
      </PropertyDef>
      <PropertyDef name="delectionEndTime">
        <Property></Property>
        <Property name="label">检测结束时间</Property>
      </PropertyDef>
      <PropertyDef name="inspectionResult">
        <Property></Property>
        <Property name="label">检验结论</Property>
      </PropertyDef>
    </DataType>
  </Model>
  <View layout="regionPadding:10">
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
      <Property name="dataType">[dtMain]</Property>
      <Property name="dataProvider">whjlShareApi2013PR2#listData</Property>
    </DataSet>
    <Container layout="regionPadding:10" layoutConstraint="top">
      <Property name="exClassName">bg-color</Property>
      <Property name="height">55</Property>
      <Property name="contentOverflow">hidden</Property>
      <Label layoutConstraint="left">
        <Property name="text">菜单栏:</Property>
      </Label>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">view.get(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).show();</ClientEvent>
        <Property name="iconClass">fa fa-plus</Property>
        <Property name="caption">新增</Property>
        <Property name="exClassName">btn-default</Property>
      </Button>
      <Button layoutConstraint="left">
        <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="exClassName">btn-warm</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
    view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
        if(result){&#xD;
            $alert(result);&#xD;
        } else{&#xD;
            cur.remove();&#xD;
        }&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要删除的数据!&quot;);&#xD;
}</ClientEvent>
        <Property name="caption">删除</Property>
        <Property name="iconClass">fa fa-minus</Property>
        <Property name="exClassName">btn-warn</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">view.get(&quot;#dsMain&quot;).flushAsync();</ClientEvent>
        <Property name="caption">刷新</Property>
        <Property name="iconClass">fa fa-search</Property>
        <Property name="exClassName">btn-flush</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">var select = view.get(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
    view.get(&quot;#ajaxPull&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
 </ClientEvent>
        <Property name="caption">手动更新</Property>
        <Property name="iconClass">fa fa-hand-o-up</Property>
        <Property name="exClassName">btn-default</Property>
      </Button>
      <Button layoutConstraint="right">
        <ClientEvent name="onClick">//显示记录&#xD;
view.get(&quot;#iFrame&quot;).reload();&#xD;
view.get(&quot;#dialogLog&quot;).show();</ClientEvent>
        <Property name="caption">更新记录</Property>
        <Property name="iconClass">fa fa-bars</Property>
        <Property name="exClassName">btn-flush</Property>
      </Button>
      <Button layoutConstraint="left">
        <ClientEvent name="onClick">&#xD;
var select = view.get(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
    view.get(&quot;#ajaxsysDataToDept&quot;).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });</ClientEvent>
        <Property name="caption">同步至库区</Property>
        <Property name="iconClass">fa fa-hand-o-up</Property>
        <Property name="exClassName">btn-default</Property>
      </Button>
    </Container>
    <Container layoutConstraint="center">
      <Property name="exClassName">bg-color</Property>
      <DataGrid id="dgMain">
        <ClientEvent name="onDataRowDoubleClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
if(data){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}</ClientEvent>
        <Property name="dataSet">dsMain</Property>
        <Property name="selectionMode">multiRows</Property>
        <Property name="readOnly">true</Property>
        <RowNumColumn/>
        <RowSelectorColumn>
          <Property name="caption">上传</Property>
        </RowSelectorColumn>
        <DataColumn name="qlyOrgReportId">
          <Property name="property">qlyOrgReportId</Property>
        </DataColumn>
        <DataColumn name="orderId">
          <Property name="property">orderId</Property>
        </DataColumn>
        <DataColumn name="sampleId">
          <Property name="property">sampleId</Property>
        </DataColumn>
        <DataColumn name="orgId">
          <Property name="property">orgId</Property>
        </DataColumn>
        <DataColumn name="qualityOrgId">
          <Property name="property">qualityOrgId</Property>
        </DataColumn>
        <DataColumn name="qualityOrgName">
          <Property name="property">qualityOrgName</Property>
        </DataColumn>
        <DataColumn name="gysxydm">
          <Property name="property">gysxydm</Property>
        </DataColumn>
        <DataColumn name="jlqybh">
          <Property name="property">jlqybh</Property>
        </DataColumn>
        <DataColumn name="jlqymc">
          <Property name="property">jlqymc</Property>
        </DataColumn>
        <DataColumn name="kdbm">
          <Property name="property">kdbm</Property>
        </DataColumn>
        <DataColumn name="kdmc">
          <Property name="property">kdmc</Property>
        </DataColumn>
        <DataColumn name="delectionType">
          <Property name="property">delectionType</Property>
        </DataColumn>
        <DataColumn name="deletctionNumber">
          <Property name="property">deletctionNumber</Property>
        </DataColumn>
        <DataColumn name="jlcpmc">
          <Property name="property">jlcpmc</Property>
        </DataColumn>
        <DataColumn name="jllspz">
          <Property name="property">jllspz</Property>
        </DataColumn>
        <DataColumn name="lotNumber">
          <Property name="property">lotNumber</Property>
        </DataColumn>
        <DataColumn name="specificationModel">
          <Property name="property">specificationModel</Property>
        </DataColumn>
        <DataColumn name="cysm">
          <Property name="property">cysm</Property>
        </DataColumn>
        <DataColumn name="registration">
          <Property name="property">registration</Property>
        </DataColumn>
        <DataColumn name="inspectPlan">
          <Property name="property">inspectPlan</Property>
        </DataColumn>
        <DataColumn name="productType">
          <Property name="property">productType</Property>
        </DataColumn>
        <DataColumn name="cyjs">
          <Property name="property">cyjs</Property>
        </DataColumn>
        <DataColumn name="cysl">
          <Property name="property">cysl</Property>
        </DataColumn>
        <DataColumn name="sampler">
          <Property name="property">sampler</Property>
        </DataColumn>
        <DataColumn name="samplerTime">
          <Property name="property">samplerTime</Property>
        </DataColumn>
        <DataColumn name="samplerArea">
          <Property name="property">samplerArea</Property>
        </DataColumn>
        <DataColumn name="createTime">
          <Property name="property">createTime</Property>
        </DataColumn>
        <DataColumn name="isActive">
          <Property name="property">isActive</Property>
        </DataColumn>
        <DataColumn name="reportFile">
          <Property name="property">reportFile</Property>
        </DataColumn>
        <DataColumn name="remark">
          <Property name="property">remark</Property>
        </DataColumn>
        <DataColumn name="createDate">
          <Property name="property">createDate</Property>
        </DataColumn>
        <DataColumn name="createBy">
          <Property name="property">createBy</Property>
        </DataColumn>
        <DataColumn name="updateDate">
          <Property name="property">updateDate</Property>
        </DataColumn>
        <DataColumn name="updateBy">
          <Property name="property">updateBy</Property>
        </DataColumn>
        <DataColumn name="updateTime">
          <Property name="property">updateTime</Property>
        </DataColumn>
        <DataColumn name="czbz">
          <Property name="property">czbz</Property>
        </DataColumn>
        <DataColumn name="kqdm">
          <Property name="property">kqdm</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Dialog id="dialogMain" layout="regionPadding:10;padding:5">
      <Property name="width">80%</Property>
      <Property name="closeable">false</Property>
      <Property name="iconClass">fa fa-sliders</Property>
      <Property name="caption">应急方案信息</Property>
      <Property name="height">85%</Property>
      <Buttons>
        <Button>
          <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#updateSave&quot;).execute(function(){&#xD;
    self.get(&quot;parent&quot;).hide();&#xD;
    view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
});</ClientEvent>
          <Property name="caption">确定</Property>
          <Property name="iconClass">fa fa-check</Property>
        </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>
        </Button>
      </Buttons>
      <Children>
        <FieldSet>
          <Property name="caption">省质检中心报告</Property>
          <Buttons/>
          <Children>
            <AutoForm>
              <Property name="dataSet">dsMain</Property>
              <Property name="cols">*,*</Property>
              <Property name="labelPosition">left</Property>
              <Property name="labelSeparator">:</Property>
              <Property name="labelAlign">right</Property>
              <Property name="labelWidth">120</Property>
              <AutoFormElement>
                <Property name="name">qlyOrgReportId</Property>
                <Property name="property">qlyOrgReportId</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">orderId</Property>
                <Property name="property">orderId</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">sampleId</Property>
                <Property name="property">sampleId</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">orgId</Property>
                <Property name="property">orgId</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">qualityOrgId</Property>
                <Property name="property">qualityOrgId</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">qualityOrgName</Property>
                <Property name="property">qualityOrgName</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">gysxydm</Property>
                <Property name="property">gysxydm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jlqybh</Property>
                <Property name="property">jlqybh</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jlqymc</Property>
                <Property name="property">jlqymc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">kdbm</Property>
                <Property name="property">kdbm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">kdmc</Property>
                <Property name="property">kdmc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">delectionType</Property>
                <Property name="property">delectionType</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">deletctionNumber</Property>
                <Property name="property">deletctionNumber</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jlcpmc</Property>
                <Property name="property">jlcpmc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jllspz</Property>
                <Property name="property">jllspz</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">lotNumber</Property>
                <Property name="property">lotNumber</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">specificationModel</Property>
                <Property name="property">specificationModel</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">cysm</Property>
                <Property name="property">cysm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">registration</Property>
                <Property name="property">registration</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">inspectPlan</Property>
                <Property name="property">inspectPlan</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">productType</Property>
                <Property name="property">productType</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">cyjs</Property>
                <Property name="property">cyjs</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">cysl</Property>
                <Property name="property">cysl</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">sampler</Property>
                <Property name="property">sampler</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">samplerTime</Property>
                <Property name="property">samplerTime</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">samplerArea</Property>
                <Property name="property">samplerArea</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">createTime</Property>
                <Property name="property">createTime</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">isActive</Property>
                <Property name="property">isActive</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">reportFile</Property>
                <Property name="property">reportFile</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">remark</Property>
                <Property name="property">remark</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">createDate</Property>
                <Property name="property">createDate</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">createBy</Property>
                <Property name="property">createBy</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">updateDate</Property>
                <Property name="property">updateDate</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">updateBy</Property>
                <Property name="property">updateBy</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">updateTime</Property>
                <Property name="property">updateTime</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">czbz</Property>
                <Property name="property">czbz</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">kqdm</Property>
                <Property name="property">kqdm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">orgReportRiceList</Property>
                <Property name="property">orgReportRiceList</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">orgReportNoodlesList</Property>
                <Property name="property">orgReportNoodlesList</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">orgReportSoybeanList</Property>
                <Property name="property">orgReportSoybeanList</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">orgReportOilList</Property>
                <Property name="property">orgReportOilList</Property>
                <Editor/>
              </AutoFormElement>
            </AutoForm>
          </Children>
        </FieldSet>
        <Panel layout="regionPadding:5">
          <Property name="caption">大米检验结果</Property>
          <Property name="height">200</Property>
          <Buttons/>
          <Children>
            <DataGrid id="dataGridDetail2">
              <Property name="dataSet">dsMain</Property>
              <Property name="dataPath">#.orgReportRiceList</Property>
              <DataColumn name="qlyOrgReportRiceId">
                <Property name="property">qlyOrgReportRiceId</Property>
              </DataColumn>
              <DataColumn name="qlyOrgReportId">
                <Property name="property">qlyOrgReportId</Property>
              </DataColumn>
              <DataColumn name="brokenRice">
                <Property name="property">brokenRice</Property>
              </DataColumn>
              <DataColumn name="smallBrokenRice">
                <Property name="property">smallBrokenRice</Property>
              </DataColumn>
              <DataColumn name="processingAccuracy">
                <Property name="property">processingAccuracy</Property>
              </DataColumn>
              <DataColumn name="colorOdor">
                <Property name="property">colorOdor</Property>
              </DataColumn>
              <DataColumn name="impuriryContent">
                <Property name="property">impuriryContent</Property>
              </DataColumn>
              <DataColumn name="tastingValue">
                <Property name="property">tastingValue</Property>
              </DataColumn>
              <DataColumn name="amyloseContent">
                <Property name="property">amyloseContent</Property>
              </DataColumn>
              <DataColumn name="waterContent">
                <Property name="property">waterContent</Property>
              </DataColumn>
              <DataColumn name="incompleteContent">
                <Property name="property">incompleteContent</Property>
              </DataColumn>
              <DataColumn name="inorganicContent">
                <Property name="property">inorganicContent</Property>
              </DataColumn>
              <DataColumn name="yellowRiceContent">
                <Property name="property">yellowRiceContent</Property>
              </DataColumn>
              <DataColumn name="mixingRate">
                <Property name="property">mixingRate</Property>
              </DataColumn>
              <DataColumn name="aflatioxin">
                <Property name="property">aflatioxin</Property>
              </DataColumn>
              <DataColumn name="cadmium">
                <Property name="property">cadmium</Property>
              </DataColumn>
              <DataColumn name="inorganicArsenic">
                <Property name="property">inorganicArsenic</Property>
              </DataColumn>
              <DataColumn name="qualityResult">
                <Property name="property">qualityResult</Property>
              </DataColumn>
              <DataColumn name="delectionPerson">
                <Property name="property">delectionPerson</Property>
              </DataColumn>
              <DataColumn name="delectionStartTime">
                <Property name="property">delectionStartTime</Property>
              </DataColumn>
              <DataColumn name="delectionEndTime">
                <Property name="property">delectionEndTime</Property>
              </DataColumn>
              <DataColumn name="inspectionResult">
                <Property name="property">inspectionResult</Property>
              </DataColumn>
            </DataGrid>
          </Children>
          <Tools/>
        </Panel>
        <Panel layout="regionPadding:5">
          <Property name="caption">小麦粉检验结果</Property>
          <Property name="height">200</Property>
          <Buttons/>
          <Children>
            <DataGrid id="dataGridDetail3">
              <Property name="dataSet">dsMain</Property>
              <Property name="dataPath">#.orgReportNoodlesList</Property>
              <DataColumn name="qlyOrgReportNoodlesId">
                <Property name="property">qlyOrgReportNoodlesId</Property>
              </DataColumn>
              <DataColumn name="qlyOrgReportId">
                <Property name="property">qlyOrgReportId</Property>
              </DataColumn>
              <DataColumn name="ashContent">
                <Property name="property">ashContent</Property>
              </DataColumn>
              <DataColumn name="fattyContent">
                <Property name="property">fattyContent</Property>
              </DataColumn>
              <DataColumn name="processingAccuracy">
                <Property name="property">processingAccuracy</Property>
              </DataColumn>
              <DataColumn name="sandContent">
                <Property name="property">sandContent</Property>
              </DataColumn>
              <DataColumn name="colorOdor">
                <Property name="property">colorOdor</Property>
              </DataColumn>
              <DataColumn name="looksForm">
                <Property name="property">looksForm</Property>
              </DataColumn>
              <DataColumn name="wetGluten">
                <Property name="property">wetGluten</Property>
              </DataColumn>
              <DataColumn name="deoxynivalenol">
                <Property name="property">deoxynivalenol</Property>
              </DataColumn>
              <DataColumn name="waterContent">
                <Property name="property">waterContent</Property>
              </DataColumn>
              <DataColumn name="zearalenone">
                <Property name="property">zearalenone</Property>
              </DataColumn>
              <DataColumn name="lead">
                <Property name="property">lead</Property>
              </DataColumn>
              <DataColumn name="cadmium">
                <Property name="property">cadmium</Property>
              </DataColumn>
              <DataColumn name="benzoylPeroxide">
                <Property name="property">benzoylPeroxide</Property>
              </DataColumn>
              <DataColumn name="qualityResult">
                <Property name="property">qualityResult</Property>
              </DataColumn>
              <DataColumn name="delectionPerson">
                <Property name="property">delectionPerson</Property>
              </DataColumn>
              <DataColumn name="delectionStartTime">
                <Property name="property">delectionStartTime</Property>
              </DataColumn>
              <DataColumn name="delectionEndTime">
                <Property name="property">delectionEndTime</Property>
              </DataColumn>
              <DataColumn name="inspectionResult">
                <Property name="property">inspectionResult</Property>
              </DataColumn>
              <DataColumn name="reportFile">
                <Property name="property">reportFile</Property>
              </DataColumn>
              <DataColumn name="hfhljg">
                <Property name="property">hfhljg</Property>
              </DataColumn>
              <DataColumn name="zfshljg">
                <Property name="property">zfshljg</Property>
              </DataColumn>
            </DataGrid>
          </Children>
          <Tools/>
        </Panel>
        <Panel layout="regionPadding:5">
          <Property name="caption">大豆检验结果</Property>
          <Property name="height">200</Property>
          <Buttons/>
          <Children>
            <DataGrid id="dataGridDetail4">
              <Property name="dataSet">dsMain</Property>
              <Property name="dataPath">#.orgReportSoybeanList</Property>
              <DataColumn name="qlyOrgReportSoybeanId">
                <Property name="property">qlyOrgReportSoybeanId</Property>
              </DataColumn>
              <DataColumn name="qlyOrgReportId">
                <Property name="property">qlyOrgReportId</Property>
              </DataColumn>
              <DataColumn name="completeParticle">
                <Property name="property">completeParticle</Property>
              </DataColumn>
              <DataColumn name="damageParticle">
                <Property name="property">damageParticle</Property>
              </DataColumn>
              <DataColumn name="damageParticleHot">
                <Property name="property">damageParticleHot</Property>
              </DataColumn>
              <DataColumn name="waterContent">
                <Property name="property">waterContent</Property>
              </DataColumn>
              <DataColumn name="colorOdor">
                <Property name="property">colorOdor</Property>
              </DataColumn>
              <DataColumn name="impurityContent">
                <Property name="property">impurityContent</Property>
              </DataColumn>
              <DataColumn name="transgenosisCamv">
                <Property name="property">transgenosisCamv</Property>
              </DataColumn>
              <DataColumn name="transgenosisNos">
                <Property name="property">transgenosisNos</Property>
              </DataColumn>
              <DataColumn name="transgenosisCoFour">
                <Property name="property">transgenosisCoFour</Property>
              </DataColumn>
              <DataColumn name="lection">
                <Property name="property">lection</Property>
              </DataColumn>
              <DataColumn name="qualityResult">
                <Property name="property">qualityResult</Property>
              </DataColumn>
              <DataColumn name="delectionPerson">
                <Property name="property">delectionPerson</Property>
              </DataColumn>
              <DataColumn name="delectionStartTime">
                <Property name="property">delectionStartTime</Property>
              </DataColumn>
              <DataColumn name="delectionEndTime">
                <Property name="property">delectionEndTime</Property>
              </DataColumn>
              <DataColumn name="inspectionResult">
                <Property name="property">inspectionResult</Property>
              </DataColumn>
            </DataGrid>
          </Children>
          <Tools/>
        </Panel>
        <Panel layout="regionPadding:5">
          <Property name="caption">食用油检验结果</Property>
          <Property name="height">200</Property>
          <Buttons/>
          <Children>
            <DataGrid id="dataGridDetail5">
              <Property name="dataSet">dsMain</Property>
              <Property name="dataPath">#.orgReportOilList</Property>
              <DataColumn name="qlyOrgReportOilId">
                <Property name="property">qlyOrgReportOilId</Property>
              </DataColumn>
              <DataColumn name="qlyOrgReportId">
                <Property name="property">qlyOrgReportId</Property>
              </DataColumn>
              <DataColumn name="colorLustre">
                <Property name="property">colorLustre</Property>
              </DataColumn>
              <DataColumn name="transparency">
                <Property name="property">transparency</Property>
              </DataColumn>
              <DataColumn name="odorTaste">
                <Property name="property">odorTaste</Property>
              </DataColumn>
              <DataColumn name="waterVolatileContent">
                <Property name="property">waterVolatileContent</Property>
              </DataColumn>
              <DataColumn name="insolubleContent">
                <Property name="property">insolubleContent</Property>
              </DataColumn>
              <DataColumn name="acidValue">
                <Property name="property">acidValue</Property>
              </DataColumn>
              <DataColumn name="peroxideValue">
                <Property name="property">peroxideValue</Property>
              </DataColumn>
              <DataColumn name="heatingTest">
                <Property name="property">heatingTest</Property>
              </DataColumn>
              <DataColumn name="aflatioxin">
                <Property name="property">aflatioxin</Property>
              </DataColumn>
              <DataColumn name="benzoPyrene">
                <Property name="property">benzoPyrene</Property>
              </DataColumn>
              <DataColumn name="bha">
                <Property name="property">bha</Property>
              </DataColumn>
              <DataColumn name="bht">
                <Property name="property">bht</Property>
              </DataColumn>
              <DataColumn name="tbhq">
                <Property name="property">tbhq</Property>
              </DataColumn>
              <DataColumn name="qualityResult">
                <Property name="property">qualityResult</Property>
              </DataColumn>
              <DataColumn name="delectionPerson">
                <Property name="property">delectionPerson</Property>
              </DataColumn>
              <DataColumn name="delectionStartTime">
                <Property name="property">delectionStartTime</Property>
              </DataColumn>
              <DataColumn name="delectionEndTime">
                <Property name="property">delectionEndTime</Property>
              </DataColumn>
              <DataColumn name="inspectionResult">
                <Property name="property">inspectionResult</Property>
              </DataColumn>
            </DataGrid>
          </Children>
          <Tools/>
        </Panel>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">whjlShareApi2013PR2#saveData</Property>
      <UpdateItem>
        <Property name="dataPath">[#current]</Property>
        <Property name="dataSet">dsMain</Property>
      </UpdateItem>
    </UpdateAction>
    <AjaxAction id="ajaxDel">
      <Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property>
      <Property name="service">whjlShareApi2013PR2#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPull">
      <Property name="service">whjlShareApi2013PR2#pullData</Property>
    </AjaxAction>
    <Dialog id="dialogLog">
      <Property name="width">90%</Property>
      <Property name="height">90%</Property>
      <Property name="caption">更新记录</Property>
      <Property name="iconClass">fa fa-sliders</Property>
      <Buttons>
        <Button>
          <ClientEvent name="onClick">self.get(&quot;parent&quot;).hide();</ClientEvent>
          <Property name="caption">关闭</Property>
          <Property name="iconClass">fa fa-times</Property>
        </Button>
      </Buttons>
      <Children>
        <Container>
          <IFrame id="iFrame">
            <Property name="path">com.fzzy.api.view.ApiLog.d</Property>
            <Property name="userData">
              <Entity>
                <Property name="deptId">deptId</Property>
              </Entity>
            </Property>
          </IFrame>
        </Container>
      </Children>
      <Tools/>
    </Dialog>
    <ListDropDown id="listDropYN">
      <Property name="items">是,否</Property>
    </ListDropDown>
    <AjaxAction id="ajaxsysDataToDept">
      <Property name="service">whjlShareApi2013PR2#sysDataToDept</Property>
    </AjaxAction>
  </View>
</ViewConfig>
src/main/java/com/fzzy/otherview/whhpjl/dto/ShareApi2013Dd.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,37 @@
package com.fzzy.otherview.whhpjl.dto;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
/**
 * å…±äº«æŽ¥å£-省质检中心报告-大豆检验结果
 *
 * @author czt
 * @date 2023/12/11
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ShareApi2013Dd implements Serializable {
    private String qlyOrgReportSoybeanId;  //大豆质检结果ID
    private String qlyOrgReportId;  //质检报告管理id
    private String completeParticle;  //完整粒率
    private String damageParticle;  //损伤粒率
    private String damageParticleHot;  //热损伤粒率
    private String waterContent;  //水分含量
    private String colorOdor;  //色泽气味
    private String impurityContent;  //杂质含量
    private String transgenosisCamv;  //CAMV35S
    private String transgenosisNos;  //NOS
    private String transgenosisCoFour;  //CO4EPSPS
    private String lection;  //LECTION
    private String qualityResult;  //质量判定
    private String delectionPerson;  //检验人
    private String delectionStartTime;  //检测开始时间
    private String delectionEndTime;  //检测结束时间
    private String inspectionResult;  //检验结论
}
src/main/java/com/fzzy/otherview/whhpjl/dto/ShareApi2013Dm.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,41 @@
package com.fzzy.otherview.whhpjl.dto;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
/**
 * å…±äº«æŽ¥å£-省质检中心报告-大米检验结果
 *
 * @author czt
 * @date 2023/12/11
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ShareApi2013Dm implements Serializable {
    private String qlyOrgReportRiceId;  //大米质检结果ID
    private String qlyOrgReportId;  //质检报告管理id
    private String brokenRice;  //碎米总量
    private String smallBrokenRice;  //小碎米含量
    private String processingAccuracy;  //加工精度
    private String colorOdor;  //色泽气味
    private String impuriryContent;  //杂质含量
    private String tastingValue;  //品尝评分值
    private String amyloseContent;  //直链淀粉含量
    private String waterContent;  //水分含量
    private String incompleteContent;  //不完善粒含量
    private String inorganicContent;  //无机杂质含量
    private String yellowRiceContent;  //黄粒米含量
    private String mixingRate;  //互混率
    private String aflatioxin;  //黄曲霉毒素
    private String cadmium;  //镉
    private String inorganicArsenic;  //无机砷
    private String qualityResult;  //质量判定
    private String delectionPerson;  //检验人
    private String delectionStartTime;  //检测开始时间
    private String delectionEndTime;  //检测结束时间
    private String inspectionResult;  //检验结论
}
src/main/java/com/fzzy/otherview/whhpjl/dto/ShareApi2013Syy.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,40 @@
package com.fzzy.otherview.whhpjl.dto;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
/**
 * å…±äº«æŽ¥å£-省质检中心报告-小麦粉检验结果
 *
 * @author czt
 * @date 2023/12/11
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ShareApi2013Syy implements Serializable {
    private String qlyOrgReportOilId;  //食用油质检结果ID
    private String qlyOrgReportId;  //质检报告管理id
    private String colorLustre;  //色泽
    private String transparency;  //透明度
    private String odorTaste;  //气味滋味
    private String waterVolatileContent;  //水分及挥发物含量
    private String insolubleContent;  //不溶性杂质含量
    private String acidValue;  //酸价
    private String peroxideValue;  //过氧化值
    private String heatingTest;  //加热试验
    private String aflatioxin;  //黄曲霉毒素
    private String benzoPyrene;  //苯并芘
    private String bha;  //BHA
    private String bht;  //BHT
    private String tbhq;  //TBHQ
    private String qualityResult;  //质量判定
    private String delectionPerson;  //检验人
    private String delectionStartTime;  //检测开始时间
    private String delectionEndTime;  //检测结束时间
    private String inspectionResult;  //检验结论
}
src/main/java/com/fzzy/otherview/whhpjl/dto/ShareApi2013Xmf.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,43 @@
package com.fzzy.otherview.whhpjl.dto;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
 * å…±äº«æŽ¥å£-省质检中心报告-小麦粉检验结果
 *
 * @author czt
 * @date 2023/12/11
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ShareApi2013Xmf implements Serializable {
    private String qlyOrgReportNoodlesId;  //小麦粉质检结果ID
    private String qlyOrgReportId;  //质检报告管理id
    private String ashContent;  //灰分含量
    private String fattyContent;  //脂肪酸含量
    private String processingAccuracy;  //加工精度
    private String sandContent;  //含砂量
    private String colorOdor;  //色泽气味
    private String looksForm;  //外观形态
    private String wetGluten;  //湿面筋含量
    private String deoxynivalenol;  //脱氧雪腐镰刀菌烯醇
    private String waterContent;  //水分含量
    private String zearalenone;  //玉米赤霉烯酮
    private String lead;  //铅
    private String cadmium;  //镉
    private String benzoylPeroxide;  //过氧化苯甲酰
    private String qualityResult;  //质量判定
    private String delectionPerson;  //检验人
    private String delectionStartTime;  //检测开始时间
    private String delectionEndTime;  //检测结束时间
    private String inspectionResult;  //检验结论
    private String reportFile;  //报告文件
    private String hfhljg;  //灰分含量结果
    private String zfshljg;  //脂肪酸含量结果
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlShareApi2013.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,79 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.persistence.Column;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
 * å…±äº«æŽ¥å£-省质检中心报告-质检报告信息
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlShareApi2013 implements Serializable {
    private static final long serialVersionUID = 1L;
    private String qlyOrgReportId;  //质检报告id
    private String orderId;  //订单表ID
    private String sampleId;  //样品表ID
    private String orgId;  //机构表ID
    private String qualityOrgId;  //质检机构编号
    private String qualityOrgName;  //质检机构名称
    private String gysxydm;  //供应商信用代码
    private String jlqybh;  //军粮企业编号
    private String jlqymc;  //军粮企业名称
    private String kdbm;  //库点编码
    private String kdmc;  //库点名称
    private String delectionType;  //检测报告类型
    private String deletctionNumber;  //检测报告编号
    private String jlcpmc;  //军粮产品名称
    private String jllspz;  //军粮粮食品种
    private String lotNumber;  //批号
    private String specificationModel;  //规格型号
    private String cysm;  //抽样说明
    private String registration;  //登记时间
    private String inspectPlan;  //检验方案
    private String productType;  //产品类型
    private String cyjs;  //抽样基数
    private String cysl;  //抽样数量
    private String sampler;  //抽样人
    private String samplerTime;  //抽样时间
    private String samplerArea;  //抽样地点
    private String createTime;  //生产日期
    private String isActive;  //是否有效
    private String reportFile;  //质检报告文件
    private String remark;  //备注
    private String createDate;  //创建时间
    private String createBy;  //创建人
    private String updateDate;  //更新时间
    private String updateBy;  //更新人
    private List<ShareApi2013Dm> orgReportRiceList;  //大米检验结果
    private List<ShareApi2013Xmf> orgReportNoodlesList;  //小麦粉质检结果
    private List<ShareApi2013Dd> orgReportSoybeanList;  //大豆质检结果
    private List<ShareApi2013Syy> orgReportOilList;  //食用油质检结果
    /**
     * --------附件--------
     **/
    @PropertyDef(label = "附件id")
    private String fileId;
    @PropertyDef(label = "附件名称")
    private String fileName;
    @PropertyDef(label = "附件上传时间")
    private Date fileTime;
    //单独增加,不进行上传
    @JSONField(serialize = false)
    private Date updateTime;  //最后更新时间
    private String czbz;  //操作标志
    private String kqdm;  //库区代码
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2013PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,391 @@
package com.fzzy.otherview.whhpjl.pr;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.DataResolver;
import com.bstek.dorado.annotation.Expose;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.dto.ResponseDto;
import com.fzzy.api.entity.ApiConfs;
import com.fzzy.api.entity.ApiInfoData;
import com.fzzy.api.service.ApiCommonService;
import com.fzzy.api.service.ApiPushManager;
import com.fzzy.api.service.ApiRemoteService;
import com.fzzy.api.utils.Base64Util;
import com.fzzy.api.utils.ContextUtil;
import com.fzzy.api.view.repository.ApiInfoDataRep;
import com.fzzy.async.fzzy40.entity.Fz40Quality;
import com.fzzy.async.whhpjl.entity.*;
import com.fzzy.async.whhpjl.repository.*;
import com.fzzy.data.ConfigData;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.*;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.time.DateFormatUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Base64;
import java.util.Date;
import java.util.List;
/**
 * å…±äº«æŽ¥å£-计量单位
 *
 * @author czt
 */
@Component
public class WhjlShareApi2013PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    @Autowired
    private ConfigData configData;
    @Autowired
    private Fz40ToWhjlSync2013Rep fz40ToWhjlSync2013Rep;
    @Autowired
    private Fz40ToWhjlSync2013DmRep fz40ToWhjlSync2013DmRep;
    @Autowired
    private Fz40ToWhjlSync2013DdRep fz40ToWhjlSync2013DdRep;
    @Autowired
    private Fz40ToWhjlSync2013XmfRep fz40ToWhjlSync2013XmfRep;
    @Autowired
    private Fz40ToWhjlSync2013SyyRep fz40ToWhjlSync2013SyyRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlShareApi2013PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlShareApi2013> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2013);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlShareApi2013> list = new ArrayList<>();
        WhjlShareApi2013 whjlShareApiData;
        for (ApiInfoData infoData : result) {
            whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2013.class);
            whjlShareApiData.setKqdm(infoData.getKqdm());
            whjlShareApiData.setCzbz(infoData.getCzbz());
            whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
            list.add(whjlShareApiData);
        }
        return list;
    }
    /**
     * èŽ·å–è´¨æ£€æŠ¥å‘Šå¤§ç±³æ£€éªŒç»“æžœ
     * whjlShareApi2013PR#listItemShareApi2013Dm
     *
     * @return
     */
    @DataProvider
    public List<ShareApi2013Dm> listItemShareApi2013Dm(String code) {
        return JSON.parseArray(code, ShareApi2013Dm.class);
    }
    /**
     * èŽ·å–è´¨æ£€æŠ¥å‘Šå°éº¦ç²‰æ£€éªŒç»“æžœ
     * whjlShareApi2013PR#listItemShareApi2013Xmf
     *
     * @return
     */
    @DataProvider
    public List<ShareApi2013Xmf> listItemShareApi2013Xmf(String code) {
        return JSON.parseArray(code, ShareApi2013Xmf.class);
    }
    /**
     * èŽ·å–è´¨æ£€æŠ¥å‘Šå¤§è±†æ£€éªŒç»“æžœ
     * whjlShareApi2013PR#listItemShareApi2013Dd
     *
     * @return
     */
    @DataProvider
    public List<ShareApi2013Dd> listItemShareApi2013Dd(String code) {
        return JSON.parseArray(code, ShareApi2013Dd.class);
    }
    /**
     * èŽ·å–è´¨æ£€æŠ¥å‘Šé£Ÿç”¨æ²¹æ£€éªŒç»“æžœ
     * whjlShareApi2013PR#listItemShareApi2013Syy
     *
     * @return
     */
    @DataProvider
    public List<ShareApi2013Syy> listItemShareApi2013Syy(String code) {
        return JSON.parseArray(code, ShareApi2013Syy.class);
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlShareApi2013PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlShareApi2013 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getQlyOrgReportId());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
        infoData.setInteId(WhjlConstant.API_CODE_2013);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getQlyOrgReportId());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlShareApi2013PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlShareApi2013 data) {
        apiInfoDataRep.deleteById(data.getQlyOrgReportId());
        return null;
    }
    /**
     * æ›´æ–°æ•°æ®
     * whjlShareApi2013PR#pullData
     *
     * @param items
     * @return
     */
    @Expose
    public String pullData(List<WhjlShareApi2013> items) {
        //获取配置信息
        List<ApiConfs> apiConfs = apiCommonService.listCacheConf();
        if (null == apiConfs || apiConfs.isEmpty()) {
            return "系统没有获取到库区配置信息,执行失败";
        }
        ApiRemoteService apiService;
        ApiParam param;
        ResponseDto responseDto;
        ApiInfoData infoData;
        String result = "";
        List<WhjlShareApi2013> list;
        for (ApiConfs apiConf : apiConfs) {
            apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol());
            if (null == apiService) {
                continue;
            }
            //封装参数
            param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2013);
            responseDto = apiService.pullData(param, apiConf);
            if (responseDto.getSuccess() == 0) {
                list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2013.class);
                if(null != list && list.size() > 0){
                    for (WhjlShareApi2013 shareData : list) {
                        //保存文件
                        //路径
                        String basePath = configData.getImgPath() + "COMMON/" + DateFormatUtils.format(new Date(), "yyyyMM") + "/";
                        //文件id
                        if(StringUtils.isNotEmpty(shareData.getReportFile())){
                            String fileId = ContextUtil.getTimeId(1000);
                            String fileName =  "附件"+ ".pdf";
                            Base64Util.saveBase64ToFile(shareData.getReportFile(),basePath + fileId + ".pdf");
                            shareData.setFileId(fileId);
                            shareData.setFileName(fileName);
                            shareData.setFileTime(new Date());
//                            shareData.setReportFile(null);
                        }
                        shareData.setCzbz(Constant.CZBZ_U);
//                        shareData.setYjfajgList(JSON.toJSONString(shareData.getYjfajg()));
//                        shareData.setCzbz(Constant.CZBZ_U);
                        infoData = new ApiInfoData();
                        infoData.setId(shareData.getQlyOrgReportId());
                        infoData.setKqdm(apiConf.getKqdm());
                        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
                        infoData.setInteId(WhjlConstant.API_CODE_2013);
                        infoData.setUpdateTime(new Date());
                        infoData.setDataId(shareData.getQlyOrgReportId());
                        infoData.setData(JSON.toJSONString(shareData));
                        infoData.setCzbz(Constant.CZBZ_U);
                        apiInfoDataRep.save(infoData);
                    }
                }
            }
            result += responseDto.toString();
            return result;
        }
        return null;
    }
    /**
     * åŒæ­¥è‡³åº“区数据库
     * whjlShareApi2013PR#sysData
     *
     * @return
     */
    @Expose
    public String sysData() {
        List<WhjlShareApi2013> list = listData();
        //转换成库区软件需要的格式并保存
        Fz40Quality fz40Quality = null;
        for (WhjlShareApi2013 whjlShareApi2013 : list) {
            fz40Quality = new Fz40Quality();
        }
        return null;
    }
    public static void main(String[] args) {
        // 1. æŒ‡å®šæ–‡ä»¶è·¯å¾„(替换为你的实际路径)
        String filePath = "C:\\Users\\ws183\\Desktop\\b.txt";
        // 2. è¯»å–并转换数据
        List<WhjlShareApi2013> dataList = readJsonFileToList(filePath);
        for (WhjlShareApi2013 data : dataList) {
            //保存文件
            String basePath = "D:/IGDS/FILE/" + "COMMON/" + DateFormatUtils.format(new Date(), "yyyyMM") + "/";
            String fileId = ContextUtil.getTimeId(1000);
            String fileName =  "附件"+ ".pdf";
            Base64Util.base64StringToPDF(data.getReportFile(),basePath , fileId + ".pdf");
        }
        // 3. æ‰“印结果
        if (dataList != null) {
            System.out.println("成功读取 " + dataList.size() + " æ¡æ•°æ®ï¼š");
            dataList.forEach(System.out::println);
        }
    }
    private static List<WhjlShareApi2013> readJsonFileToList(String filePath) {
        // è¯»å–文件内容
        String jsonContent = readFileContent(filePath);
        if (jsonContent == null || jsonContent.trim().isEmpty()) {
            return new ArrayList<>();
        }
        //解析JSON
        List<WhjlShareApi2013> list = JSONObject.parseArray(jsonContent, WhjlShareApi2013.class);
        return list;
    }
    private static String readFileContent(String filePath) {
        StringBuilder content = new StringBuilder();
        try (BufferedReader reader = new BufferedReader(new FileReader(filePath))) {
            String line;
            while ((line = reader.readLine()) != null) {
                content.append(line);
            }
            return content.toString();
        } catch (IOException e) {
            System.err.println("文件读取失败: " + e.getMessage());
            return null;
        }
    }
    /**
     * åŒæ­¥è‡³åº“区数据库
     * whjlShareApi2013PR#sysDataToDept
     */
    @Expose
    public void sysDataToDept(){
        //获取所有数据
        List<WhjlShareApi2013> list = listData();
        Fz40WhjlMQuality fz40WhjlMQuality = null;
        for (WhjlShareApi2013 whjlShareApi2013 : list) {
            fz40WhjlMQuality = new Fz40WhjlMQuality();
            fz40WhjlMQuality.setProvReserve(Constant.YN_Y);
            fz40WhjlMQuality.setId(whjlShareApi2013.getQlyOrgReportId());
            String basePath = configData.getImgPath() + "COMMON/" + DateFormatUtils.format(new Date(), "yyyyMM") + "/";
            if(StringUtils.isNotEmpty(whjlShareApi2013.getReportFile())){
                String fileId = ContextUtil.getTimeId(1000) + ".pdf";
                String fileName =  "附件"+ ".pdf";
                Base64Util.base64StringToPDF(whjlShareApi2013.getReportFile(),basePath , fileId );
                whjlShareApi2013.setFileId(fileId);
                whjlShareApi2013.setFileName(fileName);
                whjlShareApi2013.setFileTime(new Date());
                whjlShareApi2013.setReportFile(null);
            }
            BeanUtils.copyProperties(whjlShareApi2013, fz40WhjlMQuality);
            fz40ToWhjlSync2013Rep.save(fz40WhjlMQuality);
            if(whjlShareApi2013.getOrgReportNoodlesList() != null){
                List<ShareApi2013Xmf> orgReportNoodlesList = whjlShareApi2013.getOrgReportNoodlesList();
                for (ShareApi2013Xmf shareApi2013Xmf : orgReportNoodlesList) {
                    Fz40WhjlCheckItemXmf fz40WhjlCheckItemXmf = new Fz40WhjlCheckItemXmf();
                    BeanUtils.copyProperties(shareApi2013Xmf,fz40WhjlCheckItemXmf);
                    if(StringUtils.isEmpty(fz40WhjlCheckItemXmf.getQlyOrgReportNoodlesId())) continue;
                    fz40ToWhjlSync2013XmfRep.save(fz40WhjlCheckItemXmf);
                }
            }
            if(whjlShareApi2013.getOrgReportSoybeanList() != null){
                List<ShareApi2013Dd> orgReportSoybeanList = whjlShareApi2013.getOrgReportSoybeanList();
                for (ShareApi2013Dd shareApi2013Dd : orgReportSoybeanList) {
                    Fz40WhjlCheckItemDd fz40WhjlCheckItemDd = new Fz40WhjlCheckItemDd();
                    BeanUtils.copyProperties(shareApi2013Dd,fz40WhjlCheckItemDd);
                    if(StringUtils.isEmpty(fz40WhjlCheckItemDd.getQlyOrgReportSoybeanId())) continue;
                    fz40ToWhjlSync2013DdRep.save(fz40WhjlCheckItemDd);
                }
            }
            if(whjlShareApi2013.getOrgReportRiceList() != null){
                List<ShareApi2013Dm> orgReportRiceList = whjlShareApi2013.getOrgReportRiceList();
                for (ShareApi2013Dm shareApi2013Dm : orgReportRiceList) {
                    Fz40WhjlCheckItemDm fz40WhjlCheckItemDm = new Fz40WhjlCheckItemDm();
                    BeanUtils.copyProperties(shareApi2013Dm,fz40WhjlCheckItemDm);
                    if(StringUtils.isEmpty(fz40WhjlCheckItemDm.getQlyOrgReportRiceId())) continue;
                    fz40ToWhjlSync2013DmRep.save(fz40WhjlCheckItemDm);
                }
            }
            if(whjlShareApi2013.getOrgReportOilList() != null){
                List<ShareApi2013Syy> orgReportOilList = whjlShareApi2013.getOrgReportOilList();
                for (ShareApi2013Syy shareApi2013Syy : orgReportOilList) {
                    Fz40WhjlCheckItemSyy fz40WhjlCheckItemSyy = new Fz40WhjlCheckItemSyy();
                    BeanUtils.copyProperties(shareApi2013Syy,fz40WhjlCheckItemSyy);
                    if(StringUtils.isEmpty(fz40WhjlCheckItemSyy.getQlyOrgReportOilId())) continue;
                    fz40ToWhjlSync2013SyyRep.save(fz40WhjlCheckItemSyy);
                }
            }
        }
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlShareApi2013PR2.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,327 @@
package com.fzzy.otherview.whhpjl.pr;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.DataResolver;
import com.bstek.dorado.annotation.Expose;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.dto.ResponseDto;
import com.fzzy.api.entity.ApiConfs;
import com.fzzy.api.entity.ApiInfoData;
import com.fzzy.api.service.ApiCommonService;
import com.fzzy.api.service.ApiPushManager;
import com.fzzy.api.service.ApiRemoteService;
import com.fzzy.api.utils.Base64Util;
import com.fzzy.api.utils.ContextUtil;
import com.fzzy.api.view.repository.ApiInfoDataRep;
import com.fzzy.async.whhpjl.entity.*;
import com.fzzy.async.whhpjl.repository.*;
import com.fzzy.data.ConfigData;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.*;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.time.DateFormatUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
 * å…±äº«æŽ¥å£-计量单位
 *
 * @author czt
 */
@Component
public class WhjlShareApi2013PR2 {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    @Autowired
    private ConfigData configData;
    @Autowired
    private Fz40ToWhjlSync2013Rep fz40ToWhjlSync2013Rep;
    @Autowired
    private Fz40ToWhjlSync2013DmRep fz40ToWhjlSync2013DmRep;
    @Autowired
    private Fz40ToWhjlSync2013DdRep fz40ToWhjlSync2013DdRep;
    @Autowired
    private Fz40ToWhjlSync2013XmfRep fz40ToWhjlSync2013XmfRep;
    @Autowired
    private Fz40ToWhjlSync2013SyyRep fz40ToWhjlSync2013SyyRep;
    private static final String DEPT_ID = "5327_001";
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlShareApi2013PR2#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlShareApi2013> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_2013);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlShareApi2013> list = new ArrayList<>();
        WhjlShareApi2013 whjlShareApiData;
        for (ApiInfoData infoData : result) {
            whjlShareApiData = JSONObject.parseObject(infoData.getData(), WhjlShareApi2013.class);
            whjlShareApiData.setKqdm(infoData.getKqdm());
            whjlShareApiData.setCzbz(infoData.getCzbz());
            whjlShareApiData.setUpdateTime(infoData.getUpdateTime());
            list.add(whjlShareApiData);
        }
        return list;
    }
    /**
     * èŽ·å–è´¨æ£€æŠ¥å‘Šå¤§ç±³æ£€éªŒç»“æžœ
     * whjlShareApi2013PR2#listItemShareApi2013Dm
     *
     * @return
     */
    @DataProvider
    public List<ShareApi2013Dm> listItemShareApi2013Dm(String code) {
        return JSON.parseArray(code, ShareApi2013Dm.class);
    }
    /**
     * èŽ·å–è´¨æ£€æŠ¥å‘Šå°éº¦ç²‰æ£€éªŒç»“æžœ
     * whjlShareApi2013P2R#listItemShareApi2013Xmf
     *
     * @return
     */
    @DataProvider
    public List<ShareApi2013Xmf> listItemShareApi2013Xmf(String code) {
        return JSON.parseArray(code, ShareApi2013Xmf.class);
    }
    /**
     * èŽ·å–è´¨æ£€æŠ¥å‘Šå¤§è±†æ£€éªŒç»“æžœ
     * whjlShareApi2013PR2#listItemShareApi2013Dd
     *
     * @return
     */
    @DataProvider
    public List<ShareApi2013Dd> listItemShareApi2013Dd(String code) {
        return JSON.parseArray(code, ShareApi2013Dd.class);
    }
    /**
     * èŽ·å–è´¨æ£€æŠ¥å‘Šé£Ÿç”¨æ²¹æ£€éªŒç»“æžœ
     * whjlShareApi2013PR2#listItemShareApi2013Syy
     *
     * @return
     */
    @DataProvider
    public List<ShareApi2013Syy> listItemShareApi2013Syy(String code) {
        return JSON.parseArray(code, ShareApi2013Syy.class);
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlShareApi2012PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlShareApi2013 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getQlyOrgReportId());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
        infoData.setInteId(WhjlConstant.API_CODE_2013);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getQlyOrgReportId());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlShareApi2012PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlShareApi2013 data) {
        apiInfoDataRep.deleteById(data.getQlyOrgReportId());
        return null;
    }
    /**
     * æ›´æ–°æ•°æ®
     * whjlShareApi2013PR2#pullData
     *
     * @param items
     * @return
     */
    @Expose
    public String pullData(List<WhjlShareApi2013> items) {
        //获取配置信息
        List<ApiConfs> apiConfs = apiCommonService.listCacheConf();
        if (null == apiConfs || apiConfs.isEmpty()) {
            return "系统没有获取到库区配置信息,执行失败";
        }
        ApiRemoteService apiService;
        ApiParam param;
        ResponseDto responseDto;
        ApiInfoData infoData;
        String result = "";
        List<WhjlShareApi2013> list;
        for (ApiConfs apiConf : apiConfs) {
            apiService = apiPushManager.getApiRemoteService(apiConf.getPushProtocol());
            if (null == apiService) {
                continue;
            }
            //封装参数
            param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_20, WhjlConstant.API_CODE_2013);
            responseDto = apiService.pullData(param, apiConf);
            if(null == responseDto){
                return "更新失败!";
            }
            if (responseDto.getSuccess() == 0) {
                list = JSONObject.parseArray(responseDto.getData(), WhjlShareApi2013.class);
                if(null != list && list.size() > 0){
                    for (WhjlShareApi2013 shareData : list) {
                        //保存文件
                        //路径
                        String basePath = configData.getImgPath() + "COMMON/" + DateFormatUtils.format(new Date(), "yyyyMM") + "/";
                        //文件id
                        if(StringUtils.isNotEmpty(shareData.getReportFile())){
                            String fileId = ContextUtil.getTimeId(1000);
                            String fileName =  "附件"+ ".pdf";
                            Base64Util.saveBase64ToFile(shareData.getReportFile(),basePath + fileId + ".pdf");
                            shareData.setFileId(fileId);
                            shareData.setFileName(fileName);
                            shareData.setFileTime(new Date());
//                            shareData.setReportFile(null);
                        }
                        shareData.setCzbz(Constant.CZBZ_U);
//                        shareData.setYjfajgList(JSON.toJSONString(shareData.getYjfajg()));
//                        shareData.setCzbz(Constant.CZBZ_U);
                        infoData = new ApiInfoData();
                        infoData.setId(shareData.getQlyOrgReportId());
                        infoData.setKqdm(apiConf.getKqdm());
                        infoData.setInteType(WhjlConstant.API_CATEGORY_20);
                        infoData.setInteId(WhjlConstant.API_CODE_2013);
                        infoData.setUpdateTime(new Date());
                        infoData.setDataId(shareData.getQlyOrgReportId());
                        infoData.setData(JSON.toJSONString(shareData));
                        infoData.setCzbz(Constant.CZBZ_U);
                        apiInfoDataRep.save(infoData);
                    }
                }
            }
            result += responseDto.toString();
            return result;
        }
        return null;
    }
    /**
     * åŒæ­¥è‡³åº“区数据库
     * whjlShareApi2013PR#sysDataToDept
     */
    @Expose
    public void sysDataToDept(){
        //获取所有数据
        List<WhjlShareApi2013> list = listData();
        if(null == list || list.isEmpty()){
            return;
        }
        Fz40WhjlMQuality fz40WhjlMQuality = null;
        for (WhjlShareApi2013 whjlShareApi2013 : list) {
            fz40WhjlMQuality = new Fz40WhjlMQuality();
            fz40WhjlMQuality.setProvReserve(Constant.YN_Y);
            fz40WhjlMQuality.setId(whjlShareApi2013.getQlyOrgReportId());
            String basePath = configData.getImgPath() + "COMMON/" + DateFormatUtils.format(new Date(), "yyyyMM") + "/";
            if(StringUtils.isNotEmpty(whjlShareApi2013.getReportFile())){
                String fileId = ContextUtil.getTimeId(1000) + ".pdf";
                String fileName =  "附件"+ ".pdf";
                Base64Util.base64StringToPDF(whjlShareApi2013.getReportFile(),basePath , fileId );
                whjlShareApi2013.setFileId(fileId);
                whjlShareApi2013.setFileName(fileName);
                whjlShareApi2013.setFileTime(new Date());
                whjlShareApi2013.setReportFile(null);
            }
            BeanUtils.copyProperties(whjlShareApi2013, fz40WhjlMQuality);
            fz40WhjlMQuality.setCompanyId(configData.getCompanyId());
            fz40WhjlMQuality.setDeptId(DEPT_ID);
            fz40ToWhjlSync2013Rep.save(fz40WhjlMQuality);
            if(whjlShareApi2013.getOrgReportNoodlesList() != null){
                List<ShareApi2013Xmf> orgReportNoodlesList = whjlShareApi2013.getOrgReportNoodlesList();
                for (ShareApi2013Xmf shareApi2013Xmf : orgReportNoodlesList) {
                    Fz40WhjlCheckItemXmf fz40WhjlCheckItemXmf = new Fz40WhjlCheckItemXmf();
                    BeanUtils.copyProperties(shareApi2013Xmf,fz40WhjlCheckItemXmf);
                    if(StringUtils.isEmpty(fz40WhjlCheckItemXmf.getQlyOrgReportNoodlesId())) continue;
                    fz40ToWhjlSync2013XmfRep.save(fz40WhjlCheckItemXmf);
                }
            }
            if(whjlShareApi2013.getOrgReportSoybeanList() != null){
                List<ShareApi2013Dd> orgReportSoybeanList = whjlShareApi2013.getOrgReportSoybeanList();
                for (ShareApi2013Dd shareApi2013Dd : orgReportSoybeanList) {
                    Fz40WhjlCheckItemDd fz40WhjlCheckItemDd = new Fz40WhjlCheckItemDd();
                    BeanUtils.copyProperties(shareApi2013Dd,fz40WhjlCheckItemDd);
                    if(StringUtils.isEmpty(fz40WhjlCheckItemDd.getQlyOrgReportSoybeanId())) continue;
                    fz40ToWhjlSync2013DdRep.save(fz40WhjlCheckItemDd);
                }
            }
            if(whjlShareApi2013.getOrgReportRiceList() != null){
                List<ShareApi2013Dm> orgReportRiceList = whjlShareApi2013.getOrgReportRiceList();
                for (ShareApi2013Dm shareApi2013Dm : orgReportRiceList) {
                    Fz40WhjlCheckItemDm fz40WhjlCheckItemDm = new Fz40WhjlCheckItemDm();
                    BeanUtils.copyProperties(shareApi2013Dm,fz40WhjlCheckItemDm);
                    if(StringUtils.isEmpty(fz40WhjlCheckItemDm.getQlyOrgReportRiceId())) continue;
                    fz40ToWhjlSync2013DmRep.save(fz40WhjlCheckItemDm);
                }
            }
            if(whjlShareApi2013.getOrgReportOilList() != null){
                List<ShareApi2013Syy> orgReportOilList = whjlShareApi2013.getOrgReportOilList();
                for (ShareApi2013Syy shareApi2013Syy : orgReportOilList) {
                    Fz40WhjlCheckItemSyy fz40WhjlCheckItemSyy = new Fz40WhjlCheckItemSyy();
                    BeanUtils.copyProperties(shareApi2013Syy,fz40WhjlCheckItemSyy);
                    if(StringUtils.isEmpty(fz40WhjlCheckItemSyy.getQlyOrgReportOilId())) continue;
                    fz40ToWhjlSync2013SyyRep.save(fz40WhjlCheckItemSyy);
                }
            }
        }
    }
}
src/main/java/com/fzzy/push/whhpjl/WhjlApiRemoteService.java
@@ -305,6 +305,8 @@
                return WhjlConstant.API_CODE_SHARE_ZLJCXM;
            case "2012":
                return WhjlConstant.API_CODE_SHARE_YJFAXX;
            case "2013":
                return WhjlConstant.API_CODE_SHARE_SZJZXBG;
            default:
                return inteId;
        }
src/main/resources/application-dev.yml
@@ -23,17 +23,18 @@
#      url: jdbc:mysql://127.0.0.1:3306/igds_api_5317_011_hmls?useUnicode=true&useSSL=false&characterEncoding=utf-8 #潮阳-海门粮食管理所 1
#      url: jdbc:mysql://127.0.0.1:3306/igds_api_5317_012_hsmy?useUnicode=true&useSSL=false&characterEncoding=utf-8 #潮阳-恒生米业
#      url: jdbc:mysql://127.0.0.1:3306/igds_api_5317_201?useUnicode=true&useSSL=false&characterEncoding=utf-8 #潮阳库 - å¤§ç±³ä»£å‚¨æŠšå·žå¸‚
#      url: jdbc:mysql://127.0.0.1:3306/igds_api_5317_900?useUnicode=true&useSSL=false&characterEncoding=utf-8 #潮阳库-潮粮公司
#      url: jdbc:mysql://127.0.0.1:3306/igds_api_5320?useUnicode=true&useSSL=false&characterEncoding=utf-8     #广东台山
#      url: jdbc:mysql://127.0.0.1:3306/igds_api_5321?useUnicode=true&useSSL=false&characterEncoding=utf-8     #广东韶关
#      url: jdbc:mysql://127.0.0.1:3306/igds_api_5322?useUnicode=true&useSSL=false&characterEncoding=utf-8     #广东徐闻
#      url: jdbc:mysql://127.0.0.1:3306/igds_api_5326?useUnicode=true&useSSL=false&characterEncoding=utf-8     #惠州惠新
#      url: jdbc:mysql://127.0.0.1:3306/igds_api_5327?useUnicode=true&useSSL=false&characterEncoding=utf-8     #武汉黄陂军粮
      url: jdbc:mysql://127.0.0.1:3306/igds_api_5327?useUnicode=true&useSSL=false&characterEncoding=utf-8     #武汉黄陂军粮
#      url: jdbc:mysql://127.0.0.1:3306/igds_api_5329?useUnicode=true&useSSL=false&characterEncoding=utf-8     #广东佛山禅城区
#      url: jdbc:mysql://127.0.0.1:3306/igds_api_5348?useUnicode=true&useSSL=false&characterEncoding=utf-8     #广东汕头潮南
#      url: jdbc:mysql://127.0.0.1:3306/igds_api_5349_sx?useUnicode=true&useSSL=false&characterEncoding=utf-8  #陕西柞水县
#      url: jdbc:mysql://127.0.0.1:3306/igds_api_5352?useUnicode=true&useSSL=false&characterEncoding=utf-8     #广东增城冷链-天润增城库
#      url: jdbc:mysql://127.0.0.1:3306/igds_api_5354?useUnicode=true&useSSL=false&characterEncoding=utf-8     #广东东部粮油
      url: jdbc:mysql://127.0.0.1:3306/igds_api_5362?useUnicode=true&useSSL=false&characterEncoding=utf-8     #广东海丰
#      url: jdbc:mysql://127.0.0.1:3306/igds_api_5362?useUnicode=true&useSSL=false&characterEncoding=utf-8     #广东海丰
      username: root
      password: Abc123..
      driver-class-name: com.mysql.jdbc.Driver
@@ -48,12 +49,12 @@
#      url: jdbc:mysql://127.0.0.1:3306/igds_3.5_5321?useUnicode=true&useSSL=false&characterEncoding=utf-8
#      url: jdbc:mysql://127.0.0.1:3306/igds_4.0_5322?useUnicode=true&useSSL=false&characterEncoding=utf-8  #广东徐闻
#      url: jdbc:mysql://127.0.0.1:3306/igds_4.0_5326?useUnicode=true&useSSL=false&characterEncoding=utf-8  #惠州惠新
#      url: jdbc:mysql://127.0.0.1:3306/igds_4.0_5327?useUnicode=true&useSSL=false&characterEncoding=utf-8  #武汉黄陂军粮
      url: jdbc:mysql://127.0.0.1:3306/igds_4.0_5327?useUnicode=true&useSSL=false&characterEncoding=utf-8  #武汉黄陂军粮
#      url: jdbc:mysql://127.0.0.1:3306/igds_4.0_5348?useUnicode=true&useSSL=false&characterEncoding=utf-8  #广东汕头潮南
#      url: jdbc:mysql://127.0.0.1:3306/igds_4.0_5349?useUnicode=true&useSSL=false&characterEncoding=utf-8  #陕西柞水县
#      url: jdbc:mysql://127.0.0.1:3306/igds_4.0_5352?useUnicode=true&useSSL=false&characterEncoding=utf-8  #广东增城冷链-天润增城库
#      url: jdbc:mysql://127.0.0.1:3306/igds_4.0_5354?useUnicode=true&useSSL=false&characterEncoding=utf-8  #广东增城-东部粮油中心库
      url: jdbc:mysql://127.0.0.1:3306/igds_4.0_5362?useUnicode=true&useSSL=false&characterEncoding=utf-8  #广东海丰
#      url: jdbc:mysql://127.0.0.1:3306/igds_4.0_5362?useUnicode=true&useSSL=false&characterEncoding=utf-8  #广东海丰
      username: root
      password: Abc123..
      driver-class-name: com.mysql.jdbc.Driver
src/main/resources/application.yml
@@ -1,7 +1,7 @@
##########################  Server   ##########################
spring:
  profiles:
    active: pro
    active: linux
  application:
    name: igds-api
  main:
src/main/resources/templates/home/home-whjl.html
@@ -373,6 +373,9 @@
                            <dd>
                                <a lay-href="com.fzzy.otherview.whhpjl.WhjlShareApi2012.d">应急方案信息</a>
                            </dd>
                            <dd>
                                <a lay-href="com.fzzy.otherview.whhpjl.WhjlShareApi20132.d">省质检中心报告</a>
                            </dd>
                        </dl>
                    </li>
                </ul>