YYC
2023-10-30 73fc635888a5ab20ed1e85ac4e2f8bf6879c4fd9
武汉接口
已重命名1个文件
已修改15个文件
已添加25个文件
已复制1个文件
6326 ■■■■ 文件已修改
src/main/java/com/fzzy/async/whhpjl/impl/Fz40ToWhjlSync1207.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/async/whhpjl/impl/Fz40ToWhjlSync1214.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1109.view.xml 38 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1110.view.xml 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1113.view.xml 58 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1115.view.xml 412 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1205.view.xml 424 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1206.view.xml 774 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1207.view.xml 664 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1208.view.xml 601 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1212.view.xml 58 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/WhjlConstant.java 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1115.java 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1205.java 65 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1206.java 70 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1207.java 73 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1208.java 73 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1209.java 60 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1210.java 45 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1211.java 53 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1212.java 121 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1213.java 59 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1214.java 123 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1215.java 58 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlCheck.java 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlInoutDel.java 73 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlJCNL.java 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlJSMX.java 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlYQSB.java 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlZCMX.java 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1115PR.java 198 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1205PR.java 199 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1206PR.java 225 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1208PR.java 224 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1209PR.java 223 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1210PR.java 223 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1211PR.java 223 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1212PR.java 157 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1213PR.java 223 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1214PR.java 80 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1215PR.java 223 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/push/whhpjl/WhjlPushService12.java 36 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/fzzy/async/whhpjl/impl/Fz40ToWhjlSync1207.java
@@ -10,7 +10,7 @@
import com.fzzy.async.whhpjl.entity.Fz40WhjlDefaultContract;
import com.fzzy.async.whhpjl.repository.Fz40ToWhjlSync1207Rep;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1207;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1206;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@@ -56,9 +56,9 @@
        try {
            List<Fz40WhjlDefaultContract> list = fz40ToWhjlSync1207Rep.listApi1207(deptId.substring(0, 4));
            List<ApiInfoData> apiInfoDataList;
            WhjlApi1207 apiData;
            WhjlApi1206 apiData;
            for (Fz40WhjlDefaultContract sysData : list) {
                apiData = new WhjlApi1207();
                apiData = new WhjlApi1206();
                apiData.setHtid(sysData.getId());  //合同ID
                apiData.setJlqybh("");  //军粮企业编号
                apiData.setSsqymc("");  //军粮企业名称
src/main/java/com/fzzy/async/whhpjl/impl/Fz40ToWhjlSync1214.java
@@ -10,7 +10,7 @@
import com.fzzy.async.whhpjl.entity.Fz40WhjlDefaultInoutRecord;
import com.fzzy.async.whhpjl.repository.Fz40ToWhjlSync1214Rep;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1214;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1212;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@@ -56,9 +56,9 @@
        try {
            List<Fz40WhjlDefaultInoutRecord> list = fz40ToWhjlSync1214Rep.listApi1214(deptId.substring(0, 4));
            List<ApiInfoData> apiInfoDataList;
            WhjlApi1214 apiData;
            WhjlApi1212 apiData;
            for (Fz40WhjlDefaultInoutRecord sysData : list) {
                apiData = new WhjlApi1214();
                apiData = new WhjlApi1212();
                apiData.setCrkid(sysData.getId());  //出入库记录ID
                apiData.setJlqybh("");  //军粮企业编号
                apiData.setSsqymc("");  //军粮企业名称
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1109.view.xml
@@ -6,55 +6,55 @@
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1109</Property>
      <PropertyDef name="dadm">
        <Property/>
        <Property></Property>
        <Property name="label">档案代码</Property>
      </PropertyDef>
      <PropertyDef name="jlqybh">
        <Property/>
        <Property></Property>
        <Property name="label">军粮企业编号</Property>
      </PropertyDef>
      <PropertyDef name="jlqymc">
        <Property/>
        <Property></Property>
        <Property name="label">军粮企业名称</Property>
      </PropertyDef>
      <PropertyDef name="jgzdbh">
        <Property/>
        <Property></Property>
        <Property name="label">军供站点编号</Property>
      </PropertyDef>
      <PropertyDef name="jgzdmc">
        <Property/>
        <Property></Property>
        <Property name="label">军供站点名称</Property>
      </PropertyDef>
      <PropertyDef name="cfbh">
        <Property/>
        <Property></Property>
        <Property name="label">仓房编号</Property>
      </PropertyDef>
      <PropertyDef name="sscfmc">
        <Property/>
        <Property></Property>
        <Property name="label">仓房名称</Property>
      </PropertyDef>
      <PropertyDef name="dalx">
        <Property/>
        <Property></Property>
        <Property name="label">档案类型</Property>
      </PropertyDef>
      <PropertyDef name="damc">
        <Property/>
        <Property></Property>
        <Property name="label">档案名称</Property>
      </PropertyDef>
      <PropertyDef name="dawj">
        <Property/>
        <Property></Property>
        <Property name="label">档案文件</Property>
      </PropertyDef>
      <PropertyDef name="sfyx">
        <Property/>
        <Property></Property>
        <Property name="label">是否有效</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <Property/>
        <Property></Property>
        <Property name="label">备注</Property>
      </PropertyDef>
      <PropertyDef name="bizId">
        <Property/>
        <Property></Property>
        <Property name="label">业务ID</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
@@ -62,11 +62,11 @@
        <Property name="label">最后更新时间</Property>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property/>
        <Property></Property>
        <Property name="label">操作标志</Property>
      </PropertyDef>
      <PropertyDef name="kqdm">
        <Property/>
        <Property></Property>
        <Property name="label">库区代码</Property>
      </PropertyDef>
    </DataType>
@@ -99,7 +99,7 @@
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
      <Property name="dataType">[dtMain]</Property>
      <Property name="dataProvider">whjlApi1110PR#listData</Property>
      <Property name="dataProvider">whjlApi1109PR#listData</Property>
      <Property name="pageSize">20</Property>
    </DataSet>
    <DataSet id="dsQuery">
@@ -324,7 +324,7 @@
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">whjlApi1110PR#saveData</Property>
      <Property name="dataResolver">whjlApi1109PR#saveData</Property>
      <UpdateItem>
        <Property name="dataPath">[#current]</Property>
        <Property name="dataSet">dsMain</Property>
@@ -332,10 +332,10 @@
    </UpdateAction>
    <AjaxAction id="ajaxDel">
      <Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property>
      <Property name="service">whjlApi1110PR#delData</Property>
      <Property name="service">whjlApi1109PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">whjlApi1110PR#pushData</Property>
      <Property name="service">whjlApi1109PR#pushData</Property>
    </AjaxAction>
    <Dialog id="dialogLog">
      <Property name="width">90%</Property>
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1110.view.xml
@@ -119,7 +119,7 @@
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
      <Property name="dataType">[dtMain]</Property>
      <Property name="dataProvider">whjlApi1108PR#listData</Property>
      <Property name="dataProvider">whjlApi1110PR#listData</Property>
      <Property name="pageSize">20</Property>
    </DataSet>
    <DataSet id="dsQuery">
@@ -391,7 +391,7 @@
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">whjlApi1108PR#saveData</Property>
      <Property name="dataResolver">whjlApi1110PR#saveData</Property>
      <UpdateItem>
        <Property name="dataPath">[#current]</Property>
        <Property name="dataSet">dsMain</Property>
@@ -399,10 +399,10 @@
    </UpdateAction>
    <AjaxAction id="ajaxDel">
      <Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property>
      <Property name="service">whjlApi1108PR#delData</Property>
      <Property name="service">whjlApi1110PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">whjlApi1108PR#pushData</Property>
      <Property name="service">whjlApi1110PR#pushData</Property>
    </AjaxAction>
    <Dialog id="dialogLog">
      <Property name="width">90%</Property>
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1113.view.xml
@@ -6,88 +6,88 @@
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1113</Property>
      <PropertyDef name="sbwhjlbh">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="jlqybh">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="jlqymc">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="jgzdbh">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="jgzdmc">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="sbbh">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="sbmc">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="wbrq">
        <Property name="dataType">Date</Property>
      </PropertyDef>
      <PropertyDef name="wbdw">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="wbr">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="lxdh">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="whlr">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="whjl">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="fxwt">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="jjcs">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="xcwbrq">
        <Property name="dataType">Date</Property>
      </PropertyDef>
      <PropertyDef name="ysr">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="whjy">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="whjlzp">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="zpid">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="zpmc">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="zplj">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="zpdx">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="bizId">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">Date</Property>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property/>
        <Property></Property>
      </PropertyDef>
      <PropertyDef name="kqdm">
        <Property/>
        <Property></Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtParam">
@@ -119,7 +119,7 @@
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
      <Property name="dataType">[dtMain]</Property>
      <Property name="dataProvider">whjlApi1108PR#listData</Property>
      <Property name="dataProvider">whjlApi1113PR#listData</Property>
    </DataSet>
    <DataSet id="dsQuery">
      <ClientEvent name="onReady">self.insert();</ClientEvent>
@@ -431,7 +431,7 @@
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">whjlApi1108PR#saveData</Property>
      <Property name="dataResolver">whjlApi1113PR#saveData</Property>
      <UpdateItem>
        <Property name="dataPath">[#current]</Property>
        <Property name="dataSet">dsMain</Property>
@@ -439,10 +439,10 @@
    </UpdateAction>
    <AjaxAction id="ajaxDel">
      <Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property>
      <Property name="service">whjlApi1108PR#delData</Property>
      <Property name="service">whjlApi1113PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">whjlApi1108PR#pushData</Property>
      <Property name="service">whjlApi1113PR#pushData</Property>
    </AjaxAction>
    <Dialog id="dialogLog">
      <Property name="width">90%</Property>
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1115.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,412 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1115</Property>
      <PropertyDef name="sbbfjlbh">
        <Property/>
        <Property name="label">设备报废记录编号</Property>
      </PropertyDef>
      <PropertyDef name="jlqybh">
        <Property/>
        <Property name="label">军粮企业编号</Property>
      </PropertyDef>
      <PropertyDef name="jlqymc">
        <Property/>
        <Property name="label">军粮企业名称</Property>
      </PropertyDef>
      <PropertyDef name="jgzdbh">
        <Property/>
        <Property name="label">军供站点编号</Property>
      </PropertyDef>
      <PropertyDef name="jgzdmc">
        <Property/>
        <Property name="label">军供站点名称</Property>
      </PropertyDef>
      <PropertyDef name="sbbh">
        <Property/>
        <Property name="label">设备编号</Property>
      </PropertyDef>
      <PropertyDef name="sbmc">
        <Property/>
        <Property name="label">设备名称</Property>
      </PropertyDef>
      <PropertyDef name="bfsqsj">
        <Property name="dataType">Date</Property>
        <Property name="label">报废申请日期</Property>
      </PropertyDef>
      <PropertyDef name="sqr">
        <Property/>
        <Property name="label">申请人</Property>
      </PropertyDef>
      <PropertyDef name="ysynx">
        <Property/>
        <Property name="label">已使用年限</Property>
      </PropertyDef>
      <PropertyDef name="bfyy">
        <Property/>
        <Property name="label">报废原因</Property>
      </PropertyDef>
      <PropertyDef name="pzr">
        <Property/>
        <Property name="label">批准人</Property>
      </PropertyDef>
      <PropertyDef name="pzrq">
        <Property name="dataType">Date</Property>
        <Property name="label">批准日期</Property>
      </PropertyDef>
      <PropertyDef name="sm">
        <Property/>
        <Property name="label">说明</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <Property/>
        <Property name="label">备注</Property>
      </PropertyDef>
      <PropertyDef name="bizId">
        <Property/>
        <Property name="label">业务ID</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">DateTime</Property>
        <Property name="label">最后更新时间</Property>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property/>
        <Property name="label">操作标志</Property>
      </PropertyDef>
      <PropertyDef name="kqdm">
        <Property/>
        <Property name="label">库区代码</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtParam">
      <Property name="creationType">com.fzzy.api.data.ApiParam</Property>
      <PropertyDef name="kqdm">
        <Property></Property>
        <Property name="label">所属库区</Property>
      </PropertyDef>
      <PropertyDef name="start">
        <Property name="dataType">Date</Property>
        <Property name="label">开始时间</Property>
      </PropertyDef>
      <PropertyDef name="end">
        <Property name="dataType">Date</Property>
        <Property name="label">截止时间</Property>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property></Property>
        <Property name="label">操作标志</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;CZBZ&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
    </DataType>
  </Model>
  <View layout="regionPadding:10">
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
      <Property name="dataType">[dtMain]</Property>
      <Property name="dataProvider">whjlApi1115PR#listData</Property>
      <Property name="parameter">20</Property>
    </DataSet>
    <DataSet id="dsQuery">
      <ClientEvent name="onReady">self.insert();</ClientEvent>
      <Property name="dataType">dtParam</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;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#xD;
}</ClientEvent>
        <Property name="caption">手动上传</Property>
        <Property name="iconClass">fa fa-hand-o-up</Property>
        <Property name="exClassName">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>
    </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="sbbfjlbh">
          <Property name="property">sbbfjlbh</Property>
        </DataColumn>
        <DataColumn name="jlqybh">
          <Property name="property">jlqybh</Property>
        </DataColumn>
        <DataColumn name="jlqymc">
          <Property name="property">jlqymc</Property>
        </DataColumn>
        <DataColumn name="jgzdmc">
          <Property name="property">jgzdmc</Property>
        </DataColumn>
        <DataColumn name="sbmc">
          <Property name="property">sbmc</Property>
        </DataColumn>
        <DataColumn name="sqr">
          <Property name="property">sqr</Property>
        </DataColumn>
        <DataColumn name="ysynx">
          <Property name="property">ysynx</Property>
        </DataColumn>
        <DataColumn name="czbz">
          <Property name="property">czbz</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Container layoutConstraint="bottom">
      <Property name="exClassName">bg-color</Property>
      <DataPilot layoutConstraint="right">
        <Property name="dataSet">dsMain</Property>
        <Property name="itemCodes">pageSize,pages</Property>
      </DataPilot>
    </Container>
    <Dialog id="dialogMain">
      <Property name="width">60%</Property>
      <Property name="closeable">false</Property>
      <Property name="iconClass">fa fa-sliders</Property>
      <Property name="caption">货位信息</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>
        <AutoForm>
          <Property name="dataSet">dsMain</Property>
          <Property name="cols">*,*,*</Property>
          <Property name="labelPosition">top</Property>
          <Property name="labelSeparator">:</Property>
          <Property name="labelWidth">120</Property>
          <AutoFormElement>
            <Property name="name">sbbfjlbh</Property>
            <Property name="property">sbbfjlbh</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">jgzdbh</Property>
            <Property name="property">jgzdbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jgzdmc</Property>
            <Property name="property">jgzdmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sbbh</Property>
            <Property name="property">sbbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sbmc</Property>
            <Property name="property">sbmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bfsqsj</Property>
            <Property name="property">bfsqsj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sqr</Property>
            <Property name="property">sqr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ysynx</Property>
            <Property name="property">ysynx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bfyy</Property>
            <Property name="property">bfyy</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">pzr</Property>
            <Property name="property">pzr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">pzrq</Property>
            <Property name="property">pzrq</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sm</Property>
            <Property name="property">sm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bz</Property>
            <Property name="property">bz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bizId</Property>
            <Property name="property">bizId</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>
        </AutoForm>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">whjlApi1115PR#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">whjlApi1115PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">whjlApi1115PR#pushData</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/WhjlApi1205.view.xml
copy from src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1214.view.xml copy to src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1205.view.xml
Îļþ´Ó src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1214.view.xml ¸´ÖÆ
@@ -4,107 +4,153 @@
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1214</Property>
      <PropertyDef name="crkid">
        <Property/>
        <Property name="label">出入库记录ID</Property>
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1205</Property>
      <PropertyDef name="ddid">
        <Property></Property>
        <Property name="label">订单ID</Property>
      </PropertyDef>
      <PropertyDef name="ddbh">
        <Property></Property>
        <Property name="label">订单编号</Property>
      </PropertyDef>
      <PropertyDef name="jhid">
        <Property></Property>
        <Property name="label">计划id</Property>
      </PropertyDef>
      <PropertyDef name="jlqybh">
        <Property/>
        <Property></Property>
        <Property name="label">军粮企业编号</Property>
      </PropertyDef>
      <PropertyDef name="ssqymc">
        <Property/>
        <Property></Property>
        <Property name="label">军粮企业名称</Property>
      </PropertyDef>
      <PropertyDef name="jgzdbh">
        <Property/>
        <Property></Property>
        <Property name="label">军供站点编号</Property>
      </PropertyDef>
      <PropertyDef name="jgzdmc">
        <Property/>
        <Property></Property>
        <Property name="label">军供站点名称</Property>
      </PropertyDef>
      <PropertyDef name="ywrq">
        <Property/>
        <Property name="label">业务日期</Property>
      <PropertyDef name="ddlx">
        <Property></Property>
        <Property name="label">订单类型</Property>
      </PropertyDef>
      <PropertyDef name="grxsrq">
        <Property name="dataType">Date</Property>
      </PropertyDef>
      <PropertyDef name="crklx">
        <Property/>
        <Property name="label">出入库类型</Property>
      </PropertyDef>
      <PropertyDef name="ywlx">
        <Property/>
        <Property name="label">业务类型</Property>
      </PropertyDef>
      <PropertyDef name="crkpz">
        <Property/>
        <Property name="label">出入库凭证</Property>
        <Property name="label">购入/销售日期</Property>
      </PropertyDef>
      <PropertyDef name="jljgqybh">
        <Property/>
        <Property name="label">加工企业编号</Property>
      </PropertyDef>
      <PropertyDef name="jljgqymc">
        <Property/>
        <Property name="label">加工企业名称</Property>
        <Property></Property>
        <Property name="label">供应商企业编号</Property>
      </PropertyDef>
      <PropertyDef name="khbh">
        <Property/>
        <Property></Property>
        <Property name="label">客户编号</Property>
      </PropertyDef>
      <PropertyDef name="glzxm">
        <Property/>
        <Property name="label">客户姓名</Property>
      <PropertyDef name="sjjlpzbh">
        <Property></Property>
        <Property name="label">实际军粮品种编号</Property>
      </PropertyDef>
      <PropertyDef name="shdw">
        <Property/>
        <Property name="label">收货单位</Property>
      <PropertyDef name="sjjlppbh">
        <Property></Property>
        <Property name="label">实际军粮品牌编号</Property>
      </PropertyDef>
      <PropertyDef name="shlxr">
        <Property/>
        <Property name="label">收货联系人</Property>
      <PropertyDef name="jlcpbh">
        <Property></Property>
        <Property name="label">军粮产品编号</Property>
      </PropertyDef>
      <PropertyDef name="shlxrdh">
        <Property/>
        <Property name="label">收货联系电话</Property>
      <PropertyDef name="cpmc">
        <Property></Property>
        <Property name="label">产品名称</Property>
      </PropertyDef>
      <PropertyDef name="rjfaid">
        <Property/>
        <Property name="label">应急方案ID</Property>
      <PropertyDef name="sjjldjbh">
        <Property></Property>
        <Property name="label">实际军粮等级编号</Property>
      </PropertyDef>
      <PropertyDef name="jhid">
        <Property/>
        <Property name="label">筹措计划ID</Property>
      <PropertyDef name="sjjlsl">
        <Property name="dataType">Double</Property>
        <Property name="label">实际军粮数量</Property>
      </PropertyDef>
      <PropertyDef name="htid">
        <Property/>
        <Property name="label">合同ID</Property>
      <PropertyDef name="sjjlzl">
        <Property name="dataType">Double</Property>
        <Property name="label">实际军粮重量</Property>
      </PropertyDef>
      <PropertyDef name="psrwid">
        <Property/>
        <Property name="label">配送任务id</Property>
      <PropertyDef name="sjdj">
        <Property name="dataType">Double</Property>
        <Property name="label">实际单价</Property>
      </PropertyDef>
      <PropertyDef name="yscch">
        <Property/>
        <Property name="label">运输车船号</Property>
      <PropertyDef name="sjzj">
        <Property name="dataType">Double</Property>
        <Property name="label">实际总价</Property>
      </PropertyDef>
      <PropertyDef name="cyr">
        <Property/>
        <Property name="label">承运人</Property>
      <PropertyDef name="zljybhbh">
        <Property></Property>
        <Property name="label">质量检验报告编号</Property>
      </PropertyDef>
      <PropertyDef name="cyrdh">
        <Property/>
        <Property name="label">承运人电话</Property>
      <PropertyDef name="chfs">
        <Property></Property>
        <Property name="label">出货方式</Property>
      </PropertyDef>
      <PropertyDef name="shdz">
        <Property></Property>
        <Property name="label">收货地址</Property>
      </PropertyDef>
      <PropertyDef name="lxdh">
        <Property></Property>
        <Property name="label">联系电话</Property>
      </PropertyDef>
      <PropertyDef name="lxr">
        <Property></Property>
        <Property name="label">联系人</Property>
      </PropertyDef>
      <PropertyDef name="ddjhrq">
        <Property name="dataType">Date</Property>
        <Property name="label">交货日期</Property>
      </PropertyDef>
      <PropertyDef name="xh">
        <Property></Property>
        <Property name="label">序号</Property>
      </PropertyDef>
      <PropertyDef name="sfyx">
        <Property></Property>
        <Property name="label">是否有效</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <Property></Property>
        <Property name="label">备注</Property>
      </PropertyDef>
      <PropertyDef name="bizId">
        <Property></Property>
        <Property name="label">业务ID</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">DateTime</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>
    </DataType>
    <DataType name="dtParam">
      <Property name="creationType">com.fzzy.api.data.ApiParam</Property>
      <PropertyDef name="kqdm">
        <Property></Property>
        <Property name="label">所属库区</Property>
      </PropertyDef>
      <PropertyDef name="start">
        <Property name="dataType">Date</Property>
        <Property name="label">更新时间</Property>
        <Property name="label">开始时间</Property>
      </PropertyDef>
      <PropertyDef name="end">
        <Property name="dataType">Date</Property>
        <Property name="label">截止时间</Property>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property></Property>
@@ -115,21 +161,18 @@
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="kqdm">
        <Property></Property>
        <Property name="label">库区代码</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <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">whjlApi1214PR#listData</Property>
      <Property name="dataProvider">whjlApi1205PR#listData</Property>
      <Property name="parameter">20</Property>
    </DataSet>
    <DataSet id="dsQuery">
      <ClientEvent name="onReady">self.insert();</ClientEvent>
      <Property name="dataType">dtParam</Property>
    </DataSet>
    <Container layout="regionPadding:10" layoutConstraint="top">
      <Property name="exClassName">bg-color</Property>
@@ -216,57 +259,47 @@
        <RowSelectorColumn>
          <Property name="caption">上传</Property>
        </RowSelectorColumn>
        <DataColumn name="crkid">
          <Property name="property">crkid</Property>
          <Property name="align">center</Property>
        <DataColumn name="ddid">
          <Property name="property">ddid</Property>
        </DataColumn>
        <DataColumn name="jhid">
          <Property name="property">jhid</Property>
        </DataColumn>
        <DataColumn name="ssqymc">
          <Property name="property">ssqymc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jgzdmc">
          <Property name="property">jgzdmc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="ywrq">
          <Property name="property">ywrq</Property>
          <Property name="align">center</Property>
        <DataColumn name="ddlx">
          <Property name="property">ddlx</Property>
        </DataColumn>
        <DataColumn name="crklx">
          <Property name="property">crklx</Property>
          <Property name="align">center</Property>
        <DataColumn name="grxsrq">
          <Property name="property">grxsrq</Property>
        </DataColumn>
        <DataColumn name="ywlx">
          <Property name="property">ywlx</Property>
          <Property name="align">center</Property>
        <DataColumn name="khbh">
          <Property name="property">khbh</Property>
        </DataColumn>
        <DataColumn name="crkpz">
          <Property name="property">crkpz</Property>
          <Property name="align">center</Property>
        <DataColumn name="cpmc">
          <Property name="property">cpmc</Property>
        </DataColumn>
        <DataColumn name="glzxm">
          <Property name="property">glzxm</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="cyr">
          <Property name="property">cyr</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="cyrdh">
          <Property name="property">cyrdh</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="yscch">
          <Property name="property">yscch</Property>
          <Property name="align">center</Property>
        <DataColumn name="czbz">
          <Property name="property">czbz</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Container layoutConstraint="bottom">
      <Property name="exClassName">bg-color</Property>
      <DataPilot layoutConstraint="right">
        <Property name="dataSet">dsMain</Property>
        <Property name="itemCodes">pageSize,pages</Property>
      </DataPilot>
    </Container>
    <Dialog id="dialogMain">
      <Property name="width">85%</Property>
      <Property name="width">60%</Property>
      <Property name="closeable">false</Property>
      <Property name="iconClass">fa fa-sliders</Property>
      <Property name="caption">客户信息</Property>
      <Property name="caption">货位信息</Property>
      <Buttons>
        <Button>
          <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
@@ -291,10 +324,20 @@
          <Property name="cols">*,*,*,*</Property>
          <Property name="labelPosition">top</Property>
          <Property name="labelSeparator">:</Property>
          <Property name="labelAlign">left</Property>
          <Property name="labelWidth">120</Property>
          <AutoFormElement>
            <Property name="name">crkid</Property>
            <Property name="property">crkid</Property>
            <Property name="name">ddid</Property>
            <Property name="property">ddid</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ddbh</Property>
            <Property name="property">ddbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jhid</Property>
            <Property name="property">jhid</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
@@ -318,115 +361,113 @@
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ywrq</Property>
            <Property name="property">ywrq</Property>
            <Property name="name">ddlx</Property>
            <Property name="property">ddlx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">crklx</Property>
            <Property name="property">crklx</Property>
            <Property name="trigger">listDropInOut</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ywlx</Property>
            <Property name="property">ywlx</Property>
            <Property name="trigger">listDropType</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">crkpz</Property>
            <Property name="property">crkpz</Property>
            <Property name="name">grxsrq</Property>
            <Property name="property">grxsrq</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jljgqybh</Property>
            <Property name="property">jljgqybh</Property>
            <Editor>
              <TextEditor>
                <Property name="blankText">-----用于入库-----</Property>
              </TextEditor>
            </Editor>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jljgqymc</Property>
            <Property name="property">jljgqymc</Property>
            <Editor>
              <TextEditor>
                <Property name="blankText">-----用于入库-----</Property>
              </TextEditor>
            </Editor>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">khbh</Property>
            <Property name="property">khbh</Property>
            <Editor>
              <TextEditor>
                <Property name="blankText">-----用于出库-----</Property>
              </TextEditor>
            </Editor>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">glzxm</Property>
            <Property name="property">glzxm</Property>
            <Editor>
              <TextEditor>
                <Property name="blankText">-----用于出库-----</Property>
              </TextEditor>
            </Editor>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">shdw</Property>
            <Property name="property">shdw</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">shlxr</Property>
            <Property name="property">shlxr</Property>
            <Property name="name">sjjlpzbh</Property>
            <Property name="property">sjjlpzbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">shlxrdh</Property>
            <Property name="property">shlxrdh</Property>
            <Property name="name">sjjlppbh</Property>
            <Property name="property">sjjlppbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">rjfaid</Property>
            <Property name="property">rjfaid</Property>
            <Property name="name">jlcpbh</Property>
            <Property name="property">jlcpbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jhid</Property>
            <Property name="property">jhid</Property>
            <Editor>
              <TextEditor>
                <Property name="blankText">-----用于入库-----</Property>
              </TextEditor>
            </Editor>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">htid</Property>
            <Property name="property">htid</Property>
            <Property name="name">cpmc</Property>
            <Property name="property">cpmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">psrwid</Property>
            <Property name="property">psrwid</Property>
            <Property name="name">sjjldjbh</Property>
            <Property name="property">sjjldjbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yscch</Property>
            <Property name="property">yscch</Property>
            <Property name="name">sjjlsl</Property>
            <Property name="property">sjjlsl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cyr</Property>
            <Property name="property">cyr</Property>
            <Property name="name">sjjlzl</Property>
            <Property name="property">sjjlzl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cyrdh</Property>
            <Property name="property">cyrdh</Property>
            <Property name="name">sjdj</Property>
            <Property name="property">sjdj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sjzj</Property>
            <Property name="property">sjzj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zljybhbh</Property>
            <Property name="property">zljybhbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">chfs</Property>
            <Property name="property">chfs</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">shdz</Property>
            <Property name="property">shdz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">lxdh</Property>
            <Property name="property">lxdh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">lxr</Property>
            <Property name="property">lxr</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ddjhrq</Property>
            <Property name="property">ddjhrq</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">xh</Property>
            <Property name="property">xh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sfyx</Property>
            <Property name="property">sfyx</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bz</Property>
            <Property name="property">bz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
@@ -449,17 +490,12 @@
            <Property name="property">kqdm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bz</Property>
            <Property name="property">bz</Property>
            <Editor/>
          </AutoFormElement>
        </AutoForm>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">whjlApi1214PR#saveData</Property>
      <Property name="dataResolver">whjlApi1205PR#saveData</Property>
      <UpdateItem>
        <Property name="dataPath">[#current]</Property>
        <Property name="dataSet">dsMain</Property>
@@ -467,10 +503,10 @@
    </UpdateAction>
    <AjaxAction id="ajaxDel">
      <Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property>
      <Property name="service">whjlApi1214PR#delData</Property>
      <Property name="service">whjlApi1205PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">whjlApi1214PR#pushData</Property>
      <Property name="service">whjlApi1205PR#pushData</Property>
    </AjaxAction>
    <Dialog id="dialogLog">
      <Property name="width">90%</Property>
@@ -500,12 +536,6 @@
    </Dialog>
    <ListDropDown id="listDropYN">
      <Property name="items">是,否</Property>
    </ListDropDown>
    <ListDropDown id="listDropType">
      <Property name="items">日常出库,日常入库,应急出库,应急入库</Property>
    </ListDropDown>
    <ListDropDown id="listDropInOut">
      <Property name="items">入库,出库</Property>
    </ListDropDown>
  </View>
</ViewConfig>
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1206.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,774 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1206</Property>
      <PropertyDef name="htid">
        <Property></Property>
        <Property name="label">合同ID</Property>
      </PropertyDef>
      <PropertyDef name="jlqybh">
        <Property></Property>
        <Property name="label">军粮企业编号</Property>
      </PropertyDef>
      <PropertyDef name="ssqymc">
        <Property></Property>
        <Property name="label">军粮企业名称</Property>
      </PropertyDef>
      <PropertyDef name="jgzdbh">
        <Property></Property>
        <Property name="label">军供站点编号</Property>
      </PropertyDef>
      <PropertyDef name="jgzdmc">
        <Property></Property>
        <Property name="label">军供站点名称</Property>
      </PropertyDef>
      <PropertyDef name="htlx">
        <Property></Property>
        <Property name="label">合同类型</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;HT_YWLX&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="htbh">
        <Property></Property>
        <Property name="label">合同编号</Property>
      </PropertyDef>
      <PropertyDef name="htbt">
        <Property></Property>
        <Property name="label">合同标题</Property>
      </PropertyDef>
      <PropertyDef name="jljgqybh">
        <Property></Property>
        <Property name="label">加工企业编号</Property>
      </PropertyDef>
      <PropertyDef name="jljgqymc">
        <Property></Property>
        <Property name="label">加工企业名称</Property>
      </PropertyDef>
      <PropertyDef name="htkhbh">
        <Property></Property>
        <Property name="label">合同客户编号</Property>
      </PropertyDef>
      <PropertyDef name="htkhmc">
        <Property></Property>
        <Property name="label">合同客户名称</Property>
      </PropertyDef>
      <PropertyDef name="htspdj">
        <Property></Property>
        <Property name="label">合同商品单价</Property>
      </PropertyDef>
      <PropertyDef name="htspsl">
        <Property name="dataType">Double</Property>
        <Property name="label">合同商品数量</Property>
        <Property name="displayFormat">#0.00</Property>
      </PropertyDef>
      <PropertyDef name="spbm">
        <Property></Property>
        <Property name="label">商品编码</Property>
      </PropertyDef>
      <PropertyDef name="zje">
        <Property name="dataType">Double</Property>
        <Property name="label">总金额</Property>
      </PropertyDef>
      <PropertyDef name="htqdr">
        <Property></Property>
        <Property name="label">合同签订人</Property>
      </PropertyDef>
      <PropertyDef name="htqdsj">
        <Property name="dataType">DateTime</Property>
        <Property name="label">合同签订时间</Property>
      </PropertyDef>
      <PropertyDef name="htsxrq">
        <Property name="dataType">Date</Property>
        <Property name="label">合同生效日期</Property>
      </PropertyDef>
      <PropertyDef name="htjzrq">
        <Property name="dataType">Date</Property>
        <Property name="label">合同截止时间</Property>
      </PropertyDef>
      <PropertyDef name="htcjr">
        <Property></Property>
        <Property name="label">合同创建人</Property>
      </PropertyDef>
      <PropertyDef name="htcjsj">
        <Property name="dataType">DateTime</Property>
        <Property name="label">合同创建时间</Property>
      </PropertyDef>
      <PropertyDef name="htdbgjlbz">
        <Property></Property>
        <Property name="label">合同的变更记录标志</Property>
      </PropertyDef>
      <PropertyDef name="htbgyy">
        <Property></Property>
        <Property name="label">合同变更原因</Property>
      </PropertyDef>
      <PropertyDef name="htgylx">
        <Property></Property>
        <Property name="label">合同供应类型</Property>
      </PropertyDef>
      <PropertyDef name="yhtbh">
        <Property></Property>
        <Property name="label">原合同编号</Property>
      </PropertyDef>
      <PropertyDef name="zffs">
        <Property></Property>
        <Property name="label">支付方式</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;JSFS&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="ywcsl">
        <Property name="dataType">Double</Property>
        <Property name="label">已完成数量</Property>
      </PropertyDef>
      <PropertyDef name="ywcslje">
        <Property></Property>
        <Property name="label">已完成数量金额</Property>
      </PropertyDef>
      <PropertyDef name="htbz">
        <Property></Property>
        <Property name="label">合同备注</Property>
      </PropertyDef>
      <PropertyDef name="xh">
        <Property></Property>
        <Property name="label">序号</Property>
        <Property name="dataType">Integer</Property>
      </PropertyDef>
      <PropertyDef name="sfyx">
        <Property></Property>
        <Property name="label">是否有效</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <Property></Property>
        <Property name="label">备注</Property>
      </PropertyDef>
      <PropertyDef name="bizId">
        <Property></Property>
        <Property name="label">业务ID</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">Date</Property>
        <Property name="label">更新时间</Property>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property></Property>
        <Property name="label">操作标志</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;CZBZ&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="kqdm">
        <Property></Property>
        <Property name="label">库区代码</Property>
      </PropertyDef>
      <Reference name="htspqd">
        <Property name="parameter">$${this.htid}</Property>
        <Property name="dataProvider">whjlApi1206PR#listItem</Property>
        <Property name="dataType">[dtItem]</Property>
      </Reference>
    </DataType>
    <DataType name="dtItem">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlQDItem</Property>
      <PropertyDef name="htspid">
        <Property></Property>
        <Property name="label">合同商品ID</Property>
      </PropertyDef>
      <PropertyDef name="htid">
        <Property></Property>
        <Property name="label">合同ID</Property>
      </PropertyDef>
      <PropertyDef name="ddid">
        <Property></Property>
        <Property name="label">订单ID</Property>
      </PropertyDef>
      <PropertyDef name="lspzbm">
        <Property></Property>
        <Property name="label">品种编号</Property>
      </PropertyDef>
      <PropertyDef name="lspzmc">
        <Property></Property>
        <Property name="label">品种名称</Property>
      </PropertyDef>
      <PropertyDef name="cpbh">
        <Property></Property>
        <Property name="label">产品编号</Property>
      </PropertyDef>
      <PropertyDef name="cpmc">
        <Property></Property>
        <Property name="label">产品名称</Property>
      </PropertyDef>
      <PropertyDef name="spsl">
        <Property></Property>
        <Property name="label">商品数量</Property>
        <Property name="dataType">Double</Property>
        <Property name="displayFormat">#0.00</Property>
      </PropertyDef>
      <PropertyDef name="spdj">
        <Property></Property>
        <Property name="label">商品单价</Property>
        <Property name="dataType">Double</Property>
        <Property name="displayFormat">#0.00</Property>
      </PropertyDef>
      <PropertyDef name="je">
        <Property></Property>
        <Property name="label">金额</Property>
        <Property name="dataType">Double</Property>
        <Property name="displayFormat">#0.00</Property>
      </PropertyDef>
      <PropertyDef name="ywcsl">
        <Property></Property>
        <Property name="label">已完成数量</Property>
        <Property name="dataType">Double</Property>
        <Property name="displayFormat">#0.00</Property>
      </PropertyDef>
      <PropertyDef name="ywcje">
        <Property></Property>
        <Property name="label">已完成金额</Property>
        <Property name="dataType">Double</Property>
        <Property name="displayFormat">#0.00</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <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">whjlApi1206PR#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;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#xD;
}</ClientEvent>
        <Property name="caption">手动上传</Property>
        <Property name="iconClass">fa fa-hand-o-up</Property>
        <Property name="exClassName">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>
    </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="htbh">
          <Property name="property">htbh</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="ssqymc">
          <Property name="property">ssqymc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jgzdmc">
          <Property name="property">jgzdmc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="htlx">
          <Property name="property">htlx</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="htbt">
          <Property name="property">htbt</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="htkhmc">
          <Property name="property">htkhmc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="zje">
          <Property name="property">zje</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="zffs">
          <Property name="property">zffs</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="ywcsl">
          <Property name="property">ywcsl</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="ywcslje">
          <Property name="property">ywcslje</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="htbz">
          <Property name="property">htbz</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="xh">
          <Property name="property">xh</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="sfyx">
          <Property name="property">sfyx</Property>
          <Property name="align">center</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Dialog id="dialogMain" layout="regionPadding:10;padding:5">
      <Property name="width">85%</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">top</Property>
              <Property name="labelSeparator">:</Property>
              <Property name="labelAlign">left</Property>
              <AutoFormElement>
                <Property name="name">htlx</Property>
                <Property name="property">htlx</Property>
                <Property name="editorType">RadioGroup</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htid</Property>
                <Property name="property">htid</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jlqybh</Property>
                <Property name="property">jlqybh</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">ssqymc</Property>
                <Property name="property">ssqymc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jgzdbh</Property>
                <Property name="property">jgzdbh</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jgzdmc</Property>
                <Property name="property">jgzdmc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htbh</Property>
                <Property name="property">htbh</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htbt</Property>
                <Property name="property">htbt</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jljgqybh</Property>
                <Property name="property">jljgqybh</Property>
                <Editor>
                  <TextEditor>
                    <Property name="blankText">----用于采购合同----</Property>
                  </TextEditor>
                </Editor>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jljgqymc</Property>
                <Property name="property">jljgqymc</Property>
                <Editor>
                  <TextEditor>
                    <Property name="blankText">----用于采购合同----</Property>
                  </TextEditor>
                </Editor>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htkhbh</Property>
                <Property name="property">htkhbh</Property>
                <Editor>
                  <TextEditor>
                    <Property name="blankText">----用于销售合同----</Property>
                  </TextEditor>
                </Editor>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htkhmc</Property>
                <Property name="property">htkhmc</Property>
                <Editor>
                  <TextEditor>
                    <Property name="blankText">----用于销售合同----</Property>
                  </TextEditor>
                </Editor>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htspdj</Property>
                <Property name="property">htspdj</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htspsl</Property>
                <Property name="property">htspsl</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">spbm</Property>
                <Property name="property">spbm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">zje</Property>
                <Property name="property">zje</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htqdr</Property>
                <Property name="property">htqdr</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htqdsj</Property>
                <Property name="property">htqdsj</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htsxrq</Property>
                <Property name="property">htsxrq</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htjzrq</Property>
                <Property name="property">htjzrq</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htcjr</Property>
                <Property name="property">htcjr</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htcjsj</Property>
                <Property name="property">htcjsj</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htdbgjlbz</Property>
                <Property name="property">htdbgjlbz</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htbgyy</Property>
                <Property name="property">htbgyy</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htgylx</Property>
                <Property name="property">htgylx</Property>
                <Property name="trigger">listDropLX</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">yhtbh</Property>
                <Property name="property">yhtbh</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">zffs</Property>
                <Property name="property">zffs</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">ywcsl</Property>
                <Property name="property">ywcsl</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">ywcslje</Property>
                <Property name="property">ywcslje</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htbz</Property>
                <Property name="property">htbz</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">xh</Property>
                <Property name="property">xh</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">sfyx</Property>
                <Property name="property">sfyx</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">bz</Property>
                <Property name="property">bz</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">bizId</Property>
                <Property name="property">bizId</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>
            </AutoForm>
          </Children>
        </FieldSet>
        <Panel layout="regionPadding:5">
          <Property name="caption">合同商品清单</Property>
          <Property name="height">400</Property>
          <Buttons/>
          <Children>
            <Container layout="regionPadding:10">
              <Label layoutConstraint="left">
                <Property name="text">菜单栏:</Property>
              </Label>
              <Button layoutConstraint="left">
                <ClientEvent name="onClick">var list = view.get(&quot;#dsMain.data:#&quot;).get(&quot;htspqd&quot;);&#xD;
list.insert({});</ClientEvent>
                <Property name="caption">新增</Property>
                <Property name="exClassName">btn-default</Property>
                <Property name="iconClass">fa fa-plus</Property>
              </Button>
              <Button layoutConstraint="left">
                <ClientEvent name="onClick">var data = view.get(&quot;#dataGridDetail.currentEntity&quot;);&#xD;
if(!data){&#xD;
 return;&#xD;
}&#xD;
view.get(&quot;#ajaxItem&quot;).set(&quot;parameter&quot;,data).execute(function(result){&#xD;
    if(result){&#xD;
          $alert(result);&#xD;
          return;&#xD;
     }else{&#xD;
          data.remove();&#xD;
     }&#xD;
});</ClientEvent>
                <Property name="caption">删除</Property>
                <Property name="exClassName">btn-warn</Property>
                <Property name="iconClass">fa fa-minus</Property>
              </Button>
            </Container>
            <DataGrid id="dataGridDetail">
              <Property name="dataSet">dsMain</Property>
              <Property name="dataPath">#.htspqd</Property>
              <DataColumn name="htspid">
                <Property name="property">htspid</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="ddid">
                <Property name="property">ddid</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="lspzbm">
                <Property name="property">lspzbm</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="lspzmc">
                <Property name="property">lspzmc</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="cpbh">
                <Property name="property">cpbh</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="cpmc">
                <Property name="property">cpmc</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="spsl">
                <Property name="property">spsl</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="spdj">
                <Property name="property">spdj</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="je">
                <Property name="property">je</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="ywcsl">
                <Property name="property">ywcsl</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="ywcje">
                <Property name="property">ywcje</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="bz">
                <Property name="property">bz</Property>
                <Property name="align">center</Property>
              </DataColumn>
            </DataGrid>
          </Children>
          <Tools/>
        </Panel>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">whjlApi1206PR#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">whjlApi1206PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxItem">
      <Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property>
      <Property name="service">whjlApi1206PR#delItem</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">whjlApi1206PR#pushData</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>
    <ListDropDown id="listDropLX">
      <Property name="items">军粮供应合同,副食供应合同</Property>
    </ListDropDown>
  </View>
</ViewConfig>
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1207.view.xml
@@ -5,9 +5,9 @@
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1207</Property>
      <PropertyDef name="htid">
      <PropertyDef name="kctzbh">
        <Property></Property>
        <Property name="label">合同ID</Property>
        <Property name="label">库存台帐ID</Property>
      </PropertyDef>
      <PropertyDef name="jlqybh">
        <Property></Property>
@@ -25,125 +25,141 @@
        <Property></Property>
        <Property name="label">军供站点名称</Property>
      </PropertyDef>
      <PropertyDef name="htlx">
      <PropertyDef name="cfbh">
        <Property></Property>
        <Property name="label">合同类型</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;HT_YWLX&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
        <Property name="label">仓房编号</Property>
      </PropertyDef>
      <PropertyDef name="htbh">
      <PropertyDef name="cfmc">
        <Property></Property>
        <Property name="label">合同编号</Property>
        <Property name="label">仓房名称</Property>
      </PropertyDef>
      <PropertyDef name="htbt">
      <PropertyDef name="ajbh">
        <Property></Property>
        <Property name="label">合同标题</Property>
        <Property name="label">廒间编号</Property>
      </PropertyDef>
      <PropertyDef name="jljgqybh">
      <PropertyDef name="ajmc">
        <Property></Property>
        <Property name="label">加工企业编号</Property>
        <Property name="label">廒间名称</Property>
      </PropertyDef>
      <PropertyDef name="jljgqymc">
      <PropertyDef name="hwbh">
        <Property></Property>
        <Property name="label">加工企业名称</Property>
        <Property name="label">货位编号</Property>
      </PropertyDef>
      <PropertyDef name="htkhbh">
      <PropertyDef name="hwmc">
        <Property></Property>
        <Property name="label">合同客户编号</Property>
        <Property name="label">货位名称</Property>
      </PropertyDef>
      <PropertyDef name="htkhmc">
      <PropertyDef name="lspzbm">
        <Property></Property>
        <Property name="label">合同客户名称</Property>
        <Property name="label">品种编号</Property>
      </PropertyDef>
      <PropertyDef name="htspdj">
      <PropertyDef name="lspzmc">
        <Property></Property>
        <Property name="label">合同商品单价</Property>
        <Property name="label">品种名称</Property>
      </PropertyDef>
      <PropertyDef name="htspsl">
      <PropertyDef name="cpbm">
        <Property></Property>
        <Property name="label">产品编号</Property>
      </PropertyDef>
      <PropertyDef name="cpmc">
        <Property></Property>
        <Property name="label">产品名称</Property>
      </PropertyDef>
      <PropertyDef name="lqdw">
        <Property></Property>
        <Property name="label">粮权单位</Property>
      </PropertyDef>
      <PropertyDef name="bgms">
        <Property></Property>
        <Property name="label">保管模式</Property>
      </PropertyDef>
      <PropertyDef name="sjsl">
        <Property name="dataType">Double</Property>
        <Property name="label">合同商品数量</Property>
        <Property name="displayFormat">#0.00</Property>
        <Property name="label">实际数量</Property>
      </PropertyDef>
      <PropertyDef name="spbm">
      <PropertyDef name="jldwbm">
        <Property></Property>
        <Property name="label">商品编码</Property>
        <Property name="label">计量单位编码</Property>
      </PropertyDef>
      <PropertyDef name="zje">
        <Property name="dataType">Double</Property>
        <Property name="label">总金额</Property>
      </PropertyDef>
      <PropertyDef name="htqdr">
      <PropertyDef name="jldwmc">
        <Property></Property>
        <Property name="label">合同签订人</Property>
        <Property name="label">计量单位名称</Property>
      </PropertyDef>
      <PropertyDef name="htqdsj">
        <Property name="dataType">DateTime</Property>
        <Property name="label">合同签订时间</Property>
      <PropertyDef name="jsdwbm">
        <Property></Property>
        <Property name="label">计数单位编码</Property>
      </PropertyDef>
      <PropertyDef name="htsxrq">
      <PropertyDef name="jsdwmc">
        <Property></Property>
        <Property name="label">计数单位名称</Property>
      </PropertyDef>
      <PropertyDef name="clfs">
        <Property></Property>
        <Property name="label">储粮方式</Property>
      </PropertyDef>
      <PropertyDef name="kcsbm">
        <Property></Property>
        <Property name="label">库存识别码</Property>
      </PropertyDef>
      <PropertyDef name="jkrq">
        <Property name="dataType">Date</Property>
        <Property name="label">合同生效日期</Property>
        <Property name="label">建卡日期</Property>
      </PropertyDef>
      <PropertyDef name="htjzrq">
        <Property name="dataType">Date</Property>
        <Property name="label">合同截止时间</Property>
      </PropertyDef>
      <PropertyDef name="htcjr">
      <PropertyDef name="sfgd">
        <Property></Property>
        <Property name="label">合同创建人</Property>
        <Property name="label">是否归档</Property>
      </PropertyDef>
      <PropertyDef name="htcjsj">
      <PropertyDef name="gdsj">
        <Property name="dataType">DateTime</Property>
        <Property name="label">合同创建时间</Property>
        <Property name="label">归档时间</Property>
      </PropertyDef>
      <PropertyDef name="htdbgjlbz">
      <PropertyDef name="kczt">
        <Property></Property>
        <Property name="label">合同的变更记录标志</Property>
        <Property name="label">库存状态</Property>
      </PropertyDef>
      <PropertyDef name="htbgyy">
        <Property></Property>
        <Property name="label">合同变更原因</Property>
      </PropertyDef>
      <PropertyDef name="htgylx">
        <Property></Property>
        <Property name="label">合同供应类型</Property>
      </PropertyDef>
      <PropertyDef name="yhtbh">
        <Property></Property>
        <Property name="label">原合同编号</Property>
      </PropertyDef>
      <PropertyDef name="zffs">
        <Property></Property>
        <Property name="label">支付方式</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;JSFS&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="ywcsl">
      <PropertyDef name="rksl">
        <Property name="dataType">Double</Property>
        <Property name="label">已完成数量</Property>
        <Property name="label">入库数量</Property>
      </PropertyDef>
      <PropertyDef name="ywcslje">
        <Property></Property>
        <Property name="label">已完成数量金额</Property>
      <PropertyDef name="cksl">
        <Property name="dataType">Double</Property>
        <Property name="label">出库数量</Property>
      </PropertyDef>
      <PropertyDef name="htbz">
        <Property></Property>
        <Property name="label">合同备注</Property>
      <PropertyDef name="kcsl">
        <Property name="dataType">Double</Property>
        <Property name="label">库存数量</Property>
      </PropertyDef>
      <PropertyDef name="xh">
        <Property></Property>
        <Property name="label">序号</Property>
        <Property name="dataType">Integer</Property>
      <PropertyDef name="rkzl">
        <Property name="dataType">Double</Property>
        <Property name="label">入库重量</Property>
      </PropertyDef>
      <PropertyDef name="sfyx">
        <Property></Property>
        <Property name="label">是否有效</Property>
      <PropertyDef name="ckzl">
        <Property name="dataType">Double</Property>
        <Property name="label">出库重量</Property>
      </PropertyDef>
      <PropertyDef name="kczl">
        <Property name="dataType">Double</Property>
        <Property name="label">库存重量</Property>
      </PropertyDef>
      <PropertyDef name="ztsl">
        <Property name="dataType">Double</Property>
        <Property name="label">在途数量</Property>
      </PropertyDef>
      <PropertyDef name="ztzl">
        <Property name="dataType">Double</Property>
        <Property name="label">在途重量</Property>
      </PropertyDef>
      <PropertyDef name="zssl">
        <Property name="dataType">Double</Property>
        <Property name="label">在售数量</Property>
      </PropertyDef>
      <PropertyDef name="zszl">
        <Property name="dataType">Double</Property>
        <Property name="label">在售重量</Property>
      </PropertyDef>
      <PropertyDef name="sxh">
        <Property name="dataType">int</Property>
        <Property name="label">顺序号</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <Property></Property>
@@ -154,91 +170,16 @@
        <Property name="label">业务ID</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">Date</Property>
        <Property name="label">更新时间</Property>
        <Property name="dataType">DateTime</Property>
        <Property name="label">最后更新时间</Property>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property></Property>
        <Property name="label">操作标志</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;CZBZ&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="kqdm">
        <Property></Property>
        <Property name="label">库区代码</Property>
      </PropertyDef>
      <Reference name="htspqd">
        <Property name="parameter">$${this.htid}</Property>
        <Property name="dataProvider">whjlApi1207PR#listItem</Property>
        <Property name="dataType">[dtItem]</Property>
      </Reference>
    </DataType>
    <DataType name="dtItem">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlQDItem</Property>
      <PropertyDef name="htspid">
        <Property></Property>
        <Property name="label">合同商品ID</Property>
      </PropertyDef>
      <PropertyDef name="htid">
        <Property></Property>
        <Property name="label">合同ID</Property>
      </PropertyDef>
      <PropertyDef name="ddid">
        <Property></Property>
        <Property name="label">订单ID</Property>
      </PropertyDef>
      <PropertyDef name="lspzbm">
        <Property></Property>
        <Property name="label">品种编号</Property>
      </PropertyDef>
      <PropertyDef name="lspzmc">
        <Property></Property>
        <Property name="label">品种名称</Property>
      </PropertyDef>
      <PropertyDef name="cpbh">
        <Property></Property>
        <Property name="label">产品编号</Property>
      </PropertyDef>
      <PropertyDef name="cpmc">
        <Property></Property>
        <Property name="label">产品名称</Property>
      </PropertyDef>
      <PropertyDef name="spsl">
        <Property></Property>
        <Property name="label">商品数量</Property>
        <Property name="dataType">Double</Property>
        <Property name="displayFormat">#0.00</Property>
      </PropertyDef>
      <PropertyDef name="spdj">
        <Property></Property>
        <Property name="label">商品单价</Property>
        <Property name="dataType">Double</Property>
        <Property name="displayFormat">#0.00</Property>
      </PropertyDef>
      <PropertyDef name="je">
        <Property></Property>
        <Property name="label">金额</Property>
        <Property name="dataType">Double</Property>
        <Property name="displayFormat">#0.00</Property>
      </PropertyDef>
      <PropertyDef name="ywcsl">
        <Property></Property>
        <Property name="label">已完成数量</Property>
        <Property name="dataType">Double</Property>
        <Property name="displayFormat">#0.00</Property>
      </PropertyDef>
      <PropertyDef name="ywcje">
        <Property></Property>
        <Property name="label">已完成金额</Property>
        <Property name="dataType">Double</Property>
        <Property name="displayFormat">#0.00</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <Property></Property>
        <Property name="label">备注</Property>
      </PropertyDef>
    </DataType>
  </Model>
@@ -246,7 +187,8 @@
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
      <Property name="dataType">[dtMain]</Property>
      <Property name="dataProvider">whjlApi1207PR#listData</Property>
      <Property name="dataProvider">whjlApi1206PR#listData</Property>
      <Property name="pageSize">20</Property>
    </DataSet>
    <Container layout="regionPadding:10" layoutConstraint="top">
      <Property name="exClassName">bg-color</Property>
@@ -333,66 +275,64 @@
        <RowSelectorColumn>
          <Property name="caption">上传</Property>
        </RowSelectorColumn>
        <DataColumn name="htbh">
          <Property name="property">htbh</Property>
          <Property name="align">center</Property>
        <DataColumn name="kctzbh">
          <Property name="property">kctzbh</Property>
        </DataColumn>
        <DataColumn name="jlqybh">
          <Property name="property">jlqybh</Property>
        </DataColumn>
        <DataColumn name="ssqymc">
          <Property name="property">ssqymc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="jgzdbh">
          <Property name="property">jgzdbh</Property>
        </DataColumn>
        <DataColumn name="jgzdmc">
          <Property name="property">jgzdmc</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="htlx">
          <Property name="property">htlx</Property>
          <Property name="align">center</Property>
        <DataColumn name="cfbh">
          <Property name="property">cfbh</Property>
        </DataColumn>
        <DataColumn name="htbt">
          <Property name="property">htbt</Property>
          <Property name="align">center</Property>
        <DataColumn name="jldwmc">
          <Property name="property">jldwmc</Property>
        </DataColumn>
        <DataColumn name="htkhmc">
          <Property name="property">htkhmc</Property>
          <Property name="align">center</Property>
        <DataColumn name="jsdwmc">
          <Property name="property">jsdwmc</Property>
        </DataColumn>
        <DataColumn name="zje">
          <Property name="property">zje</Property>
          <Property name="align">center</Property>
        <DataColumn name="clfs">
          <Property name="property">clfs</Property>
        </DataColumn>
        <DataColumn name="zffs">
          <Property name="property">zffs</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="ywcsl">
          <Property name="property">ywcsl</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="ywcslje">
          <Property name="property">ywcslje</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="htbz">
          <Property name="property">htbz</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="xh">
          <Property name="property">xh</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="sfyx">
          <Property name="property">sfyx</Property>
          <Property name="align">center</Property>
        <DataColumn name="czbz">
          <Property name="property">czbz</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Dialog id="dialogMain" layout="regionPadding:10;padding:5">
      <Property name="width">85%</Property>
    <Container layoutConstraint="bottom">
      <Property name="exClassName">bg-color</Property>
      <DataPilot layoutConstraint="right">
        <Property name="dataSet">dsMain</Property>
        <Property name="itemCodes">pageSize,pages</Property>
      </DataPilot>
    </Container>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">whjlApi1207PR#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">whjlApi1207PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">whjlApi1207PR#pushData</Property>
    </AjaxAction>
    <Dialog id="dialogMain">
      <Property name="width">60%</Property>
      <Property name="closeable">false</Property>
      <Property name="iconClass">fa fa-sliders</Property>
      <Property name="caption">客户信息</Property>
      <Property name="height">85%</Property>
      <Property name="caption">货位信息</Property>
      <Buttons>
        <Button>
          <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
@@ -412,25 +352,15 @@
        </Button>
      </Buttons>
      <Children>
        <FieldSet>
          <Property name="caption">合同信息</Property>
          <Buttons/>
          <Children>
            <AutoForm>
              <Property name="dataSet">dsMain</Property>
              <Property name="cols">*,*,*,*</Property>
              <Property name="labelPosition">top</Property>
              <Property name="labelSeparator">:</Property>
              <Property name="labelAlign">left</Property>
          <Property name="labelWidth">120</Property>
              <AutoFormElement>
                <Property name="name">htlx</Property>
                <Property name="property">htlx</Property>
                <Property name="editorType">RadioGroup</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htid</Property>
                <Property name="property">htid</Property>
            <Property name="name">kctzbh</Property>
            <Property name="property">kctzbh</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
@@ -454,150 +384,173 @@
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htbh</Property>
                <Property name="property">htbh</Property>
            <Property name="name">cfbh</Property>
            <Property name="property">cfbh</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htbt</Property>
                <Property name="property">htbt</Property>
            <Property name="name">cfmc</Property>
            <Property name="property">cfmc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jljgqybh</Property>
                <Property name="property">jljgqybh</Property>
                <Editor>
                  <TextEditor>
                    <Property name="blankText">----用于采购合同----</Property>
                  </TextEditor>
                </Editor>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">jljgqymc</Property>
                <Property name="property">jljgqymc</Property>
                <Editor>
                  <TextEditor>
                    <Property name="blankText">----用于采购合同----</Property>
                  </TextEditor>
                </Editor>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htkhbh</Property>
                <Property name="property">htkhbh</Property>
                <Editor>
                  <TextEditor>
                    <Property name="blankText">----用于销售合同----</Property>
                  </TextEditor>
                </Editor>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htkhmc</Property>
                <Property name="property">htkhmc</Property>
                <Editor>
                  <TextEditor>
                    <Property name="blankText">----用于销售合同----</Property>
                  </TextEditor>
                </Editor>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htspdj</Property>
                <Property name="property">htspdj</Property>
            <Property name="name">ajbh</Property>
            <Property name="property">ajbh</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htspsl</Property>
                <Property name="property">htspsl</Property>
            <Property name="name">ajmc</Property>
            <Property name="property">ajmc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">spbm</Property>
                <Property name="property">spbm</Property>
            <Property name="name">hwbh</Property>
            <Property name="property">hwbh</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">zje</Property>
                <Property name="property">zje</Property>
            <Property name="name">hwmc</Property>
            <Property name="property">hwmc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htqdr</Property>
                <Property name="property">htqdr</Property>
            <Property name="name">lspzbm</Property>
            <Property name="property">lspzbm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htqdsj</Property>
                <Property name="property">htqdsj</Property>
            <Property name="name">lspzmc</Property>
            <Property name="property">lspzmc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htsxrq</Property>
                <Property name="property">htsxrq</Property>
            <Property name="name">cpbm</Property>
            <Property name="property">cpbm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htjzrq</Property>
                <Property name="property">htjzrq</Property>
            <Property name="name">cpmc</Property>
            <Property name="property">cpmc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htcjr</Property>
                <Property name="property">htcjr</Property>
            <Property name="name">lqdw</Property>
            <Property name="property">lqdw</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htcjsj</Property>
                <Property name="property">htcjsj</Property>
            <Property name="name">bgms</Property>
            <Property name="property">bgms</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htdbgjlbz</Property>
                <Property name="property">htdbgjlbz</Property>
            <Property name="name">sjsl</Property>
            <Property name="property">sjsl</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htbgyy</Property>
                <Property name="property">htbgyy</Property>
            <Property name="name">jldwbm</Property>
            <Property name="property">jldwbm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htgylx</Property>
                <Property name="property">htgylx</Property>
                <Property name="trigger">listDropLX</Property>
            <Property name="name">jldwmc</Property>
            <Property name="property">jldwmc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">yhtbh</Property>
                <Property name="property">yhtbh</Property>
            <Property name="name">jsdwbm</Property>
            <Property name="property">jsdwbm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">zffs</Property>
                <Property name="property">zffs</Property>
            <Property name="name">jsdwmc</Property>
            <Property name="property">jsdwmc</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">ywcsl</Property>
                <Property name="property">ywcsl</Property>
            <Property name="name">clfs</Property>
            <Property name="property">clfs</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">ywcslje</Property>
                <Property name="property">ywcslje</Property>
            <Property name="name">kcsbm</Property>
            <Property name="property">kcsbm</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">htbz</Property>
                <Property name="property">htbz</Property>
            <Property name="name">jkrq</Property>
            <Property name="property">jkrq</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">xh</Property>
                <Property name="property">xh</Property>
            <Property name="name">sfgd</Property>
            <Property name="property">sfgd</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
                <Property name="name">sfyx</Property>
                <Property name="property">sfyx</Property>
            <Property name="name">gdsj</Property>
            <Property name="property">gdsj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">kczt</Property>
            <Property name="property">kczt</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">rksl</Property>
            <Property name="property">rksl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cksl</Property>
            <Property name="property">cksl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">kcsl</Property>
            <Property name="property">kcsl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">rkzl</Property>
            <Property name="property">rkzl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ckzl</Property>
            <Property name="property">ckzl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">kczl</Property>
            <Property name="property">kczl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ztsl</Property>
            <Property name="property">ztsl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ztzl</Property>
            <Property name="property">ztzl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zssl</Property>
            <Property name="property">zssl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zszl</Property>
            <Property name="property">zszl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sxh</Property>
            <Property name="property">sxh</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement>
@@ -627,117 +580,8 @@
              </AutoFormElement>
            </AutoForm>
          </Children>
        </FieldSet>
        <Panel layout="regionPadding:5">
          <Property name="caption">合同商品清单</Property>
          <Property name="height">400</Property>
          <Buttons/>
          <Children>
            <Container layout="regionPadding:10">
              <Label layoutConstraint="left">
                <Property name="text">菜单栏:</Property>
              </Label>
              <Button layoutConstraint="left">
                <ClientEvent name="onClick">var list = view.get(&quot;#dsMain.data:#&quot;).get(&quot;htspqd&quot;);&#xD;
list.insert({});</ClientEvent>
                <Property name="caption">新增</Property>
                <Property name="exClassName">btn-default</Property>
                <Property name="iconClass">fa fa-plus</Property>
              </Button>
              <Button layoutConstraint="left">
                <ClientEvent name="onClick">var data = view.get(&quot;#dataGridDetail.currentEntity&quot;);&#xD;
if(!data){&#xD;
 return;&#xD;
}&#xD;
view.get(&quot;#ajaxItem&quot;).set(&quot;parameter&quot;,data).execute(function(result){&#xD;
    if(result){&#xD;
          $alert(result);&#xD;
          return;&#xD;
     }else{&#xD;
          data.remove();&#xD;
     }&#xD;
});</ClientEvent>
                <Property name="caption">删除</Property>
                <Property name="exClassName">btn-warn</Property>
                <Property name="iconClass">fa fa-minus</Property>
              </Button>
            </Container>
            <DataGrid id="dataGridDetail">
              <Property name="dataSet">dsMain</Property>
              <Property name="dataPath">#.htspqd</Property>
              <DataColumn name="htspid">
                <Property name="property">htspid</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="ddid">
                <Property name="property">ddid</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="lspzbm">
                <Property name="property">lspzbm</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="lspzmc">
                <Property name="property">lspzmc</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="cpbh">
                <Property name="property">cpbh</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="cpmc">
                <Property name="property">cpmc</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="spsl">
                <Property name="property">spsl</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="spdj">
                <Property name="property">spdj</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="je">
                <Property name="property">je</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="ywcsl">
                <Property name="property">ywcsl</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="ywcje">
                <Property name="property">ywcje</Property>
                <Property name="align">center</Property>
              </DataColumn>
              <DataColumn name="bz">
                <Property name="property">bz</Property>
                <Property name="align">center</Property>
              </DataColumn>
            </DataGrid>
          </Children>
          <Tools/>
        </Panel>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">whjlApi1207PR#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">whjlApi1207PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxItem">
      <Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property>
      <Property name="service">whjlApi1207PR#delItem</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">whjlApi1207PR#pushData</Property>
    </AjaxAction>
    <Dialog id="dialogLog">
      <Property name="width">90%</Property>
      <Property name="height">90%</Property>
src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1208.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,601 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1208</Property>
      <PropertyDef name="kctzcppcid">
        <Property></Property>
        <Property name="label">库存台产品批次ID</Property>
      </PropertyDef>
      <PropertyDef name="kctzbh">
        <Property></Property>
        <Property name="label">库存台帐ID</Property>
      </PropertyDef>
      <PropertyDef name="jlqybh">
        <Property></Property>
        <Property name="label">军粮企业编号</Property>
      </PropertyDef>
      <PropertyDef name="ssqymc">
        <Property></Property>
        <Property name="label">军粮企业名称</Property>
      </PropertyDef>
      <PropertyDef name="jgzdbh">
        <Property></Property>
        <Property name="label">军供站点编号</Property>
      </PropertyDef>
      <PropertyDef name="jgzdmc">
        <Property></Property>
        <Property name="label">军供站点名称</Property>
      </PropertyDef>
      <PropertyDef name="cpbm">
        <Property></Property>
        <Property name="label">产品编号</Property>
      </PropertyDef>
      <PropertyDef name="cpmc">
        <Property></Property>
        <Property name="label">产品名称</Property>
      </PropertyDef>
      <PropertyDef name="cpnd">
        <Property></Property>
        <Property name="label">产品年度</Property>
      </PropertyDef>
      <PropertyDef name="cpcd">
        <Property></Property>
        <Property name="label">产品产地</Property>
      </PropertyDef>
      <PropertyDef name="yssj">
        <Property></Property>
        <Property name="label">验收时间</Property>
        <Property name="dataType">DateTime</Property>
      </PropertyDef>
      <PropertyDef name="cppc">
        <Property></Property>
        <Property name="label">产品批次</Property>
      </PropertyDef>
      <PropertyDef name="scrq">
        <Property name="dataType">Date</Property>
        <Property name="label">生产日期</Property>
      </PropertyDef>
      <PropertyDef name="bzq">
        <Property name="dataType">Double</Property>
        <Property name="label">保质期</Property>
      </PropertyDef>
      <PropertyDef name="bzjzrq">
        <Property name="dataType">Date</Property>
        <Property name="label">保质截止日期</Property>
      </PropertyDef>
      <PropertyDef name="rksl">
        <Property name="dataType">Double</Property>
        <Property name="label">入库数量</Property>
      </PropertyDef>
      <PropertyDef name="cksl">
        <Property name="dataType">Double</Property>
        <Property name="label">出库数量</Property>
      </PropertyDef>
      <PropertyDef name="kcsl">
        <Property name="dataType">Double</Property>
        <Property name="label">库存数量</Property>
      </PropertyDef>
      <PropertyDef name="rkzl">
        <Property name="dataType">Double</Property>
        <Property name="label">入库重量</Property>
      </PropertyDef>
      <PropertyDef name="ckzl">
        <Property name="dataType">Double</Property>
        <Property name="label">出库重量</Property>
      </PropertyDef>
      <PropertyDef name="kczl">
        <Property name="dataType">Double</Property>
        <Property name="label">库存重量</Property>
      </PropertyDef>
      <PropertyDef name="dj">
        <Property name="dataType">Double</Property>
        <Property name="label">单价</Property>
      </PropertyDef>
      <PropertyDef name="je">
        <Property name="dataType">Double</Property>
        <Property name="label">金额</Property>
      </PropertyDef>
      <PropertyDef name="jldwbm">
        <Property></Property>
        <Property name="label">计量单位编码</Property>
      </PropertyDef>
      <PropertyDef name="jldwmc">
        <Property></Property>
        <Property name="label">计量单位名称</Property>
      </PropertyDef>
      <PropertyDef name="jsdwbm">
        <Property></Property>
        <Property name="label">计数单位编码</Property>
      </PropertyDef>
      <PropertyDef name="jsdwmc">
        <Property></Property>
        <Property name="label">计数单位名称</Property>
      </PropertyDef>
      <PropertyDef name="rkkssj">
        <Property name="dataType">DateTime</Property>
        <Property name="label">入库开始时间</Property>
      </PropertyDef>
      <PropertyDef name="rkjssj">
        <Property></Property>
        <Property name="label">入库结束时间</Property>
        <Property name="dataType">DateTime</Property>
      </PropertyDef>
      <PropertyDef name="ckkssj">
        <Property></Property>
        <Property name="dataType">DateTime</Property>
        <Property name="label">出库开始时间</Property>
      </PropertyDef>
      <PropertyDef name="ckjssj">
        <Property></Property>
        <Property name="label">出库结束时间</Property>
        <Property name="dataType">DateTime</Property>
      </PropertyDef>
      <PropertyDef name="sjsl">
        <Property name="dataType">Double</Property>
        <Property name="label">实际数量</Property>
      </PropertyDef>
      <PropertyDef name="zlzt">
        <Property></Property>
        <Property name="label">质量状态</Property>
      </PropertyDef>
      <PropertyDef name="kczt">
        <Property></Property>
        <Property name="label">库存状态</Property>
      </PropertyDef>
      <PropertyDef name="sxh">
        <Property name="dataType">int</Property>
        <Property name="label">顺序号</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <Property></Property>
        <Property name="label">备注</Property>
      </PropertyDef>
      <PropertyDef name="bizId">
        <Property></Property>
        <Property name="label">业务ID</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">DateTime</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>
    </DataType>
    <DataType name="dtParam">
      <Property name="creationType">com.fzzy.api.data.ApiParam</Property>
      <PropertyDef name="kqdm">
        <Property></Property>
        <Property name="label">所属库区</Property>
      </PropertyDef>
      <PropertyDef name="start">
        <Property name="dataType">Date</Property>
        <Property name="label">开始时间</Property>
      </PropertyDef>
      <PropertyDef name="end">
        <Property name="dataType">Date</Property>
        <Property name="label">截止时间</Property>
      </PropertyDef>
      <PropertyDef name="czbz">
        <Property></Property>
        <Property name="label">操作标志</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;apiTriggerService#trigger&quot;).getResult(&quot;CZBZ&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
    </DataType>
  </Model>
  <View layout="regionPadding:10">
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
      <Property name="dataType">[dtMain]</Property>
      <Property name="dataProvider">whjlApi1208PR#listData</Property>
    </DataSet>
    <DataSet id="dsQuery">
      <ClientEvent name="onReady">self.insert();</ClientEvent>
      <Property name="dataType">dtParam</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;
if(select &amp;&amp; select.length > 0){&#xD;
    view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
        view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
        $notify(result);&#xD;
    });&#xD;
}else{&#xD;
    $alert(&quot;请勾选需要上报的数据!&quot;);&#xD;
}</ClientEvent>
        <Property name="caption">手动上传</Property>
        <Property name="iconClass">fa fa-hand-o-up</Property>
        <Property name="exClassName">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>
    </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="kctzcppcid">
          <Property name="property">kctzcppcid</Property>
        </DataColumn>
        <DataColumn name="kctzbh">
          <Property name="property">kctzbh</Property>
        </DataColumn>
        <DataColumn name="jlqybh">
          <Property name="property">jlqybh</Property>
        </DataColumn>
        <DataColumn name="ssqymc">
          <Property name="property">ssqymc</Property>
        </DataColumn>
        <DataColumn name="jgzdbh">
          <Property name="property">jgzdbh</Property>
        </DataColumn>
        <DataColumn name="jgzdmc">
          <Property name="property">jgzdmc</Property>
        </DataColumn>
        <DataColumn name="czbz">
          <Property name="property">czbz</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Container layoutConstraint="bottom">
      <Property name="exClassName">bg-color</Property>
      <DataPilot layoutConstraint="right">
        <Property name="dataSet">dsMain</Property>
        <Property name="itemCodes">pageSize,pages</Property>
      </DataPilot>
    </Container>
    <Dialog id="dialogMain">
      <Property name="width">60%</Property>
      <Property name="closeable">false</Property>
      <Property name="iconClass">fa fa-sliders</Property>
      <Property name="caption">货位信息</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>
        <AutoForm>
          <Property name="dataSet">dsMain</Property>
          <Property name="cols">*,*,*,*</Property>
          <Property name="labelPosition">top</Property>
          <Property name="labelSeparator">:</Property>
          <Property name="labelWidth">120</Property>
          <AutoFormElement>
            <Property name="name">kctzcppcid</Property>
            <Property name="property">kctzcppcid</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">kctzbh</Property>
            <Property name="property">kctzbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jlqybh</Property>
            <Property name="property">jlqybh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ssqymc</Property>
            <Property name="property">ssqymc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jgzdbh</Property>
            <Property name="property">jgzdbh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jgzdmc</Property>
            <Property name="property">jgzdmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cpbm</Property>
            <Property name="property">cpbm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cpmc</Property>
            <Property name="property">cpmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cpnd</Property>
            <Property name="property">cpnd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cpcd</Property>
            <Property name="property">cpcd</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">yssj</Property>
            <Property name="property">yssj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cppc</Property>
            <Property name="property">cppc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">scrq</Property>
            <Property name="property">scrq</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bzq</Property>
            <Property name="property">bzq</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bzjzrq</Property>
            <Property name="property">bzjzrq</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">rksl</Property>
            <Property name="property">rksl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">cksl</Property>
            <Property name="property">cksl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">kcsl</Property>
            <Property name="property">kcsl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">rkzl</Property>
            <Property name="property">rkzl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ckzl</Property>
            <Property name="property">ckzl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">kczl</Property>
            <Property name="property">kczl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">dj</Property>
            <Property name="property">dj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">je</Property>
            <Property name="property">je</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jldwbm</Property>
            <Property name="property">jldwbm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jldwmc</Property>
            <Property name="property">jldwmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jsdwbm</Property>
            <Property name="property">jsdwbm</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">jsdwmc</Property>
            <Property name="property">jsdwmc</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">rkkssj</Property>
            <Property name="property">rkkssj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">rkjssj</Property>
            <Property name="property">rkjssj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ckkssj</Property>
            <Property name="property">ckkssj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">ckjssj</Property>
            <Property name="property">ckjssj</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sjsl</Property>
            <Property name="property">sjsl</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">zlzt</Property>
            <Property name="property">zlzt</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">kczt</Property>
            <Property name="property">kczt</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">sxh</Property>
            <Property name="property">sxh</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bz</Property>
            <Property name="property">bz</Property>
            <Editor/>
          </AutoFormElement>
          <AutoFormElement>
            <Property name="name">bizId</Property>
            <Property name="property">bizId</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>
        </AutoForm>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">whjlApi1208PR#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">whjlApi1208PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">whjlApi1208PR#pushData</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/WhjlApi1212.view.xml
ÎļþÃû´Ó src/main/java/com/fzzy/otherview/whhpjl/WhjlApi1214.view.xml ÐÞ¸Ä
@@ -4,98 +4,98 @@
  <Context/>
  <Model>
    <DataType name="dtMain">
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1214</Property>
      <Property name="creationType">com.fzzy.otherview.whhpjl.dto.WhjlApi1212</Property>
      <PropertyDef name="crkid">
        <Property/>
        <Property></Property>
        <Property name="label">出入库记录ID</Property>
      </PropertyDef>
      <PropertyDef name="jlqybh">
        <Property/>
        <Property></Property>
        <Property name="label">军粮企业编号</Property>
      </PropertyDef>
      <PropertyDef name="ssqymc">
        <Property/>
        <Property></Property>
        <Property name="label">军粮企业名称</Property>
      </PropertyDef>
      <PropertyDef name="jgzdbh">
        <Property/>
        <Property></Property>
        <Property name="label">军供站点编号</Property>
      </PropertyDef>
      <PropertyDef name="jgzdmc">
        <Property/>
        <Property></Property>
        <Property name="label">军供站点名称</Property>
      </PropertyDef>
      <PropertyDef name="ywrq">
        <Property/>
        <Property></Property>
        <Property name="label">业务日期</Property>
        <Property name="dataType">Date</Property>
      </PropertyDef>
      <PropertyDef name="crklx">
        <Property/>
        <Property></Property>
        <Property name="label">出入库类型</Property>
      </PropertyDef>
      <PropertyDef name="ywlx">
        <Property/>
        <Property></Property>
        <Property name="label">业务类型</Property>
      </PropertyDef>
      <PropertyDef name="crkpz">
        <Property/>
        <Property></Property>
        <Property name="label">出入库凭证</Property>
      </PropertyDef>
      <PropertyDef name="jljgqybh">
        <Property/>
        <Property></Property>
        <Property name="label">加工企业编号</Property>
      </PropertyDef>
      <PropertyDef name="jljgqymc">
        <Property/>
        <Property></Property>
        <Property name="label">加工企业名称</Property>
      </PropertyDef>
      <PropertyDef name="khbh">
        <Property/>
        <Property></Property>
        <Property name="label">客户编号</Property>
      </PropertyDef>
      <PropertyDef name="glzxm">
        <Property/>
        <Property></Property>
        <Property name="label">客户姓名</Property>
      </PropertyDef>
      <PropertyDef name="shdw">
        <Property/>
        <Property></Property>
        <Property name="label">收货单位</Property>
      </PropertyDef>
      <PropertyDef name="shlxr">
        <Property/>
        <Property></Property>
        <Property name="label">收货联系人</Property>
      </PropertyDef>
      <PropertyDef name="shlxrdh">
        <Property/>
        <Property></Property>
        <Property name="label">收货联系电话</Property>
      </PropertyDef>
      <PropertyDef name="rjfaid">
        <Property/>
        <Property></Property>
        <Property name="label">应急方案ID</Property>
      </PropertyDef>
      <PropertyDef name="jhid">
        <Property/>
        <Property></Property>
        <Property name="label">筹措计划ID</Property>
      </PropertyDef>
      <PropertyDef name="htid">
        <Property/>
        <Property></Property>
        <Property name="label">合同ID</Property>
      </PropertyDef>
      <PropertyDef name="psrwid">
        <Property/>
        <Property></Property>
        <Property name="label">配送任务id</Property>
      </PropertyDef>
      <PropertyDef name="yscch">
        <Property/>
        <Property></Property>
        <Property name="label">运输车船号</Property>
      </PropertyDef>
      <PropertyDef name="cyr">
        <Property/>
        <Property></Property>
        <Property name="label">承运人</Property>
      </PropertyDef>
      <PropertyDef name="cyrdh">
        <Property/>
        <Property></Property>
        <Property name="label">承运人电话</Property>
      </PropertyDef>
      <PropertyDef name="bizId">
@@ -120,7 +120,7 @@
        <Property name="label">库区代码</Property>
      </PropertyDef>
      <PropertyDef name="bz">
        <Property/>
        <Property></Property>
        <Property name="label">备注</Property>
      </PropertyDef>
    </DataType>
@@ -129,7 +129,7 @@
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
      <Property name="dataType">[dtMain]</Property>
      <Property name="dataProvider">whjlApi1214PR#listData</Property>
      <Property name="dataProvider">whjlApi1212PR#listData</Property>
    </DataSet>
    <Container layout="regionPadding:10" layoutConstraint="top">
      <Property name="exClassName">bg-color</Property>
@@ -459,7 +459,7 @@
      <Tools/>
    </Dialog>
    <UpdateAction id="updateSave">
      <Property name="dataResolver">whjlApi1214PR#saveData</Property>
      <Property name="dataResolver">whjlApi1212PR#saveData</Property>
      <UpdateItem>
        <Property name="dataPath">[#current]</Property>
        <Property name="dataSet">dsMain</Property>
@@ -467,10 +467,10 @@
    </UpdateAction>
    <AjaxAction id="ajaxDel">
      <Property name="confirmMessage">当前数据删除后无法恢复,请确认要删除么?</Property>
      <Property name="service">whjlApi1214PR#delData</Property>
      <Property name="service">whjlApi1212PR#delData</Property>
    </AjaxAction>
    <AjaxAction id="ajaxPush">
      <Property name="service">whjlApi1214PR#pushData</Property>
      <Property name="service">whjlApi1212PR#pushData</Property>
    </AjaxAction>
    <Dialog id="dialogLog">
      <Property name="width">90%</Property>
src/main/java/com/fzzy/otherview/whhpjl/WhjlConstant.java
@@ -83,6 +83,10 @@
     */
    public static String API_CODE_1114 = "1114";
    /**
     * æŽ¥å£ç¼–码-1114 ä»“储设备报废记录数据接口
     */
    public static String API_CODE_1115 = "1115";
    /**
     * æŽ¥å£ç¼–码-1201 å‰¯é£Ÿä¾›åº”商信息数据接口
     */
    public static String API_CODE_1201 = "1201";
@@ -131,10 +135,19 @@
     */
    public static String API_CODE_1212 = "1212";
    /**
     * æŽ¥å£ç¼–码-1212 å‡ºå…¥åº“结算记录据接口
     */
    public static String API_CODE_1213 = "1213";
    /**
     * /**
     * æŽ¥å£ç¼–码-1214 å‡ºå…¥åº“记录数据接口
     */
    public static String API_CODE_1214 = "1214";
    /**
     * æŽ¥å£ç¼–码-1214 æ ·å“ç™»è®°ä¿¡æ¯æ•°æ®æŽ¥å£
     */
    public static String API_CODE_1215 = "1215";
    /**
     * æŽ¥å£ç¼–码-1216 è´¨æ£€æŠ¥å‘Šæ•°æ®æŽ¥å£
     */
    public static String API_CODE_1216 = "1216";
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1115.java
@@ -39,4 +39,14 @@
    private String sm;  //说明
    private String bz;  //备注
    //单独增加,不进行上传
    @JSONField(serialize = false)
    private String bizId;  //业务ID
    @JSONField(serialize = false)
    private Date updateTime;  //最后更新时间
    @JSONField(serialize = false)
    private String czbz;  //操作标志
    @JSONField(serialize = false)
    private String kqdm;  //库区代码
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1205.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,65 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
/**
 * @Author: YYC
 * @Description:订单信息
 * @DateTime: 2023-10-29 20:57
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlApi1205 implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String ddid ;//订单ID
    private String ddbh ;//订单编号
    private String jhid ;//计划id
    private String jlqybh ;//军粮企业编号
    private String ssqymc ;//军粮企业名称
    private String jgzdbh ;//军供站点编号
    private String jgzdmc ;//军供站点名称
    private String ddlx ;//订单类型
    @JSONField(format = "yyyy-MM-dd")
    private Date grxsrq ;//购入/销售日期
    private String jljgqybh ;//供应商企业编号
    private String khbh ;//客户编号
    private String sjjlpzbh ;//实际军粮品种编号
    private String sjjlppbh ;//实际军粮品牌编号
    private String jlcpbh ;//军粮产品编号
    private String cpmc ;//产品名称
    private String sjjldjbh ;//实际军粮等级编号
    private Double sjjlsl ;//实际军粮数量
    private Double sjjlzl ;//实际军粮重量
    private Double sjdj ;//实际单价
    private Double sjzj ;//实际总价
    private String zljybhbh ;//质量检验报告编号
    private String chfs ;//出货方式
    private String shdz ;//收货地址
    private String lxdh ;//联系电话
    private String lxr ;//联系人
    @JSONField(format = "yyyy-MM-dd")
    private Date ddjhrq ;//交货日期
    private String xh ;//序号
    private String sfyx ;//是否有效
    private String bz ;//备注
    //单独增加,不进行上传
    @JSONField(serialize = false)
    private String bizId;  //业务ID
    @JSONField(serialize = false)
    private Date updateTime;  //最后更新时间
    @JSONField(serialize = false)
    private String czbz;  //操作标志
    @JSONField(serialize = false)
    private String kqdm;  //库区代码
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1206.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,70 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
 * ç»è¥ç®¡ç†-合同信息
 *
 * @author czt
 * @date 2023/8/2  20:10
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlApi1206 implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String htid;  //合同ID
    private String jlqybh;  //军粮企业编号
    private String ssqymc;  //军粮企业名称
    private String jgzdbh;  //军供站点编号
    private String jgzdmc;  //军供站点名称
    private String htlx;  //合同类型
    private String htbh;  //合同编号
    private String htbt;  //合同标题
    private String jljgqybh;  //加工企业编号
    private String jljgqymc;  //加工企业名称
    private String htkhbh;  //合同客户编号
    private String htkhmc;  //合同客户名称
    private Double htspdj;  //合同商品单价
    private Double htspsl;  //合同商品数量
    private String spbm;  //商品编码
    private Double zje;  //总金额
    private String htqdr;  //合同签订人
    private Date htqdsj;  //合同签订时间
    private Date htsxrq;  //合同生效日期
    private Date htjzrq;  //合同截止时间
    private String htcjr;  //合同创建人
    private Date htcjsj;  //合同创建时间
    private String htdbgjlbz;  //合同的变更记录标志
    private String htbgyy;  //合同变更原因
    private String htgylx;  //合同供应类型
    private String yhtbh;  //原合同编号
    private String zffs;  //支付方式
    private Double ywcsl;  //已完成数量
    private Double ywcslje;  //已完成数量金额
    private String htbz;  //合同备注
    private Integer xh;  //序号
    private String sfyx;  //是否有效
    private String bz;  //备注
    private List<WhjlQDItem> htspqd;  //商品清单
    //单独增加,不进行上传
    @JSONField(serialize = false)
    private String bizId;  //业务ID
    @JSONField(serialize = false)
    private Date updateTime;  //最后更新时间
    @JSONField(serialize = false)
    private String czbz;  //操作标志
    @JSONField(serialize = false)
    private String kqdm;  //库区代码
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1207.java
@@ -6,13 +6,12 @@
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
 * ç»è¥ç®¡ç†-合同信息
 * å‡ºå…¥åº“业务-库存台账
 *
 * @author czt
 * @date 2023/8/2  20:10
 * @date 2023/8/2  20:15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@@ -22,41 +21,48 @@
     */
    private static final long serialVersionUID = 1L;
    private String htid;  //合同ID
    private String kctzbh;  //库存台帐ID
    private String jlqybh;  //军粮企业编号
    private String ssqymc;  //军粮企业名称
    private String jgzdbh;  //军供站点编号
    private String jgzdmc;  //军供站点名称
    private String htlx;  //合同类型
    private String htbh;  //合同编号
    private String htbt;  //合同标题
    private String jljgqybh;  //加工企业编号
    private String jljgqymc;  //加工企业名称
    private String htkhbh;  //合同客户编号
    private String htkhmc;  //合同客户名称
    private Double htspdj;  //合同商品单价
    private Double htspsl;  //合同商品数量
    private String spbm;  //商品编码
    private Double zje;  //总金额
    private String htqdr;  //合同签订人
    private Date htqdsj;  //合同签订时间
    private Date htsxrq;  //合同生效日期
    private Date htjzrq;  //合同截止时间
    private String htcjr;  //合同创建人
    private Date htcjsj;  //合同创建时间
    private String htdbgjlbz;  //合同的变更记录标志
    private String htbgyy;  //合同变更原因
    private String htgylx;  //合同供应类型
    private String yhtbh;  //原合同编号
    private String zffs;  //支付方式
    private Double ywcsl;  //已完成数量
    private Double ywcslje;  //已完成数量金额
    private String htbz;  //合同备注
    private Integer xh;  //序号
    private String sfyx;  //是否有效
    private String cfbh;  //仓房编号
    private String cfmc;  //仓房名称
    private String ajbh;  //廒间编号
    private String ajmc;  //廒间名称
    private String hwbh;  //货位编号
    private String hwmc;  //货位名称
    private String lspzbm;  //品种编号
    private String lspzmc;  //品种名称
    private String cpbm;  //产品编号
    private String cpmc;  //产品名称
    private String lqdw;  //粮权单位
    private String bgms;  //保管模式
    private Double sjsl;  //实际数量
    private String jldwbm;  //计量单位编码
    private String jldwmc;  //计量单位名称
    private String jsdwbm;  //计数单位编码
    private String jsdwmc;  //计数单位名称
    private String clfs;  //储粮方式
    private String kcsbm;  //库存识别码
    @JSONField(format = "yyyy-MM-dd")
    private Date jkrq;  //建卡日期
    private String sfgd;  //是否归档
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date gdsj;  //归档时间
    private String kczt;  //库存状态
    private Double rksl;  //入库数量
    private Double cksl;  //出库数量
    private Double kcsl;  //库存数量
    private Double rkzl;  //入库重量
    private Double ckzl;  //出库重量
    private Double kczl;  //库存重量
    private Double ztsl;  //在途数量
    private Double ztzl;  //在途重量
    private Double zssl;  //在售数量
    private Double zszl;  //在售重量
    private int sxh;  //顺序号
    private String bz;  //备注
    private List<WhjlQDItem> htspqd;  //商品清单
    //单独增加,不进行上传
    @JSONField(serialize = false)
@@ -67,4 +73,5 @@
    private String czbz;  //操作标志
    @JSONField(serialize = false)
    private String kqdm;  //库区代码
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1208.java
@@ -1,15 +1,17 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
/**
 * å‡ºå…¥åº“业务-库存台账
 * å‡ºå…¥åº“业务-库存台账产品批次
 *
 * @author czt
 * @date 2023/8/2  20:15
 * @date 2023/8/2  20:25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@@ -19,45 +21,58 @@
     */
    private static final long serialVersionUID = 1L;
    private String kctzcppcid;  //库存台产品批次ID
    private String kctzbh;  //库存台帐ID
    private String jlqybh;  //军粮企业编号
    private String ssqymc;  //军粮企业名称
    private String jgzdbh;  //军供站点编号
    private String jgzdmc;  //军供站点名称
    private String cfbh;  //仓房编号
    private String cfmc;  //仓房名称
    private String ajbh;  //廒间编号
    private String ajmc;  //廒间名称
    private String hwbh;  //货位编号
    private String hwmc;  //货位名称
    private String lspzbm;  //品种编号
    private String lspzmc;  //品种名称
    private String cpbm;  //产品编号
    private String cpmc;  //产品名称
    private String lqdw;  //粮权单位
    private String bgms;  //保管模式
    private String sjsl;  //实际数量
    private String cpnd;  //产品年度
    private String cpcd;  //产品产地
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date yssj;  //验收时间
    private String cppc;  //产品批次
    @JSONField(format = "yyyy-MM-dd")
    private Date scrq;  //生产日期
    private Double bzq;  //保质期
    @JSONField(format = "yyyy-MM-dd")
    private Date bzjzrq;  //保质截止日期
    private Double rksl;  //入库数量
    private Double cksl;  //出库数量
    private Double kcsl;  //库存数量
    private Double rkzl;  //入库重量
    private Double ckzl;  //出库重量
    private Double kczl;  //库存重量
    private Double dj;  //单价
    private Double je;  //金额
    private String jldwbm;  //计量单位编码
    private String jldwmc;  //计量单位名称
    private String jsdwbm;  //计数单位编码
    private String jsdwmc;  //计数单位名称
    private String clfs;  //储粮方式
    private String kcsbm;  //库存识别码
    private String jkrq;  //建卡日期
    private String sfgd;  //是否归档
    private String gdsj;  //归档时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date rkkssj;  //入库开始时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date rkjssj;  //入库结束时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date ckkssj;  //出库开始时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date ckjssj;  //出库结束时间
    private Double sjsl;  //实际数量
    private String zlzt;  //质量状态
    private String kczt;  //库存状态
    private String rksl;  //入库数量
    private String cksl;  //出库数量
    private String kcsl;  //库存数量
    private String rkzl;  //入库重量
    private String ckzl;  //出库重量
    private String kczl;  //库存重量
    private String ztsl;  //在途数量
    private String ztzl;  //在途重量
    private String zssl;  //在售数量
    private String zszl;  //在售数量
    private String sxh;  //顺序号
    private int sxh;  //顺序号
    private String bz;  //备注
    //单独增加,不进行上传
    @JSONField(serialize = false)
    private String bizId;  //业务ID
    @JSONField(serialize = false)
    private Date updateTime;  //最后更新时间
    @JSONField(serialize = false)
    private String czbz;  //操作标志
    @JSONField(serialize = false)
    private String kqdm;  //库区代码
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1209.java
@@ -1,15 +1,17 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
/**
 * å‡ºå…¥åº“业务-库存台账产品批次
 * å‡ºå…¥åº“业务-库存台账出入库记录
 *
 * @author czt
 * @date 2023/8/2  20:25
 * @date 2023/8/2  20:35
 */
@Data
@EqualsAndHashCode(callSuper = false)
@@ -19,41 +21,31 @@
     */
    private static final long serialVersionUID = 1L;
    private String kctzcppcid;  //库存台产品批次ID
    private String kctzbh;  //库存台帐ID
    private String kctzcpcrjlid;  //库存台账出入记录ID
    private String kctzcppcid;  //库存台账产品批次ID
    private String jlqybh;  //军粮企业编号
    private String ssqymc;  //军粮企业名称
    private String jgzdbh;  //军供站点编号
    private String jgzdmc;  //军供站点名称
    private String cpbm;  //产品编号
    private String cpmc;  //产品名称
    private String cpnd;  //产品年度
    private String cpcd;  //产品产地
    private String yssj;  //验收时间
    private String cppc;  //产品批次
    private String scrq;  //生产日期
    private String bzq;  //保质期
    private String bzjzrq;  //保质截止日期
    private String rksl;  //入库数量
    private String cksl;  //出库数量
    private String kcsl;  //库存数量
    private String rkzl;  //入库重量
    private String ckzl;  //出库重量
    private String kczl;  //库存重量
    private String dj;  //单价
    private String je;  //金额
    private String jldwbm;  //计量单位编码
    private String jldwmc;  //计量单位名称
    private String jsdwbm;  //计数单位编码
    private String jsdwmc;  //计数单位名称
    private String rkkssj;  //入库开始时间
    private String rkjssj;  //入库结束时间
    private String ckkssj;  //出库开始时间
    private String ckjssj;  //出库结束时间
    private String sjsl;  //实际数量
    private String zlzt;  //质量状态
    private String kczt;  //库存状态
    private String sxh;  //顺序号
    private String bz;  //备注
    private String crlx;  //出入类型
    private String jllx;  //记录类型
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String jlsj;  //记录时间
    private Double crqsl;  //出入库前数量
    private Double crqzl;  //出入库前重量
    private Double crsl;  //出入数量
    private Double crzl;  //出入重量
    private Double crhsl;  //出入库后数量
    private Double crhzl;  //出入库后重量
    //单独增加,不进行上传
    @JSONField(serialize = false)
    private String bizId;  //业务ID
    @JSONField(serialize = false)
    private Date updateTime;  //最后更新时间
    @JSONField(serialize = false)
    private String czbz;  //操作标志
    @JSONField(serialize = false)
    private String kqdm;  //库区代码
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1210.java
@@ -1,38 +1,49 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
 * å‡ºå…¥åº“业务-库存台账出入库记录
 *
 * @author czt
 * @date 2023/8/2  20:35
 */
 * @Author: YYC
 * @Description:库存盘点记录
 * @DateTime: 2023-10-29 21:11
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlApi1210 implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String kctzcpcrjlid;  //库存台账出入记录ID
    private String kctzcppcid;  //库存台账产品批次ID
    private String kcpdjlid; //库存盘点记录ID
    private String jlqybh;  //军粮企业编号
    private String ssqymc;  //军粮企业名称
    private String jlqymc; //军粮企业名称
    private String jgzdbh;  //军供站点编号
    private String jgzdmc;  //军供站点名称
    private String crlx;  //出入类型
    private String jllx;  //记录类型
    private String jlsj;  //记录时间
    private String crqsl;  //出入库前数量
    private String crqzl;  //出入库前重量
    private String crsl;  //出入数量
    private String crzl;  //出入重量
    private String crhsl;  //出入库后数量
    private String crhzl;  //出入库后重量
    private String ajbh; //廒间编号
    private String ajmc; //廒间名称
    @JSONField(format = "yyyy-MM-dd")
    private Date pdrq; //盘点日期
    private String pdkj; //盘点会计
    private String bgy; //保管员
    private String fzr; //负责人
    private String sfyx; //是否有效
    //单独增加,不进行上传
    @JSONField(serialize = false)
    private String bizId;  //业务ID
    @JSONField(serialize = false)
    private Date updateTime;  //最后更新时间
    @JSONField(serialize = false)
    private String czbz;  //操作标志
    @JSONField(serialize = false)
    private String kqdm;  //库区代码
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1211.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,53 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
 * @Author: YYC
 * @Description:库内转仓记录
 * @DateTime: 2023-10-29 21:55
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlApi1211 implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String kcpdjlid;//库存转仓记录ID
    private String jlqybh;//军粮企业编号
    private String ssqymc;//军粮企业名称
    private String jgzdbh;//军供站点编号
    private String jgzdmc;//军供站点名称
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date zcsj;//转仓时间
    private String zcajbh;//转出廒间编号
    private String zccfmc;//转出廒间名称
    private String zrajbh;//转入廒间编号
    private String zrajmc;//转入廒间名称
    private String zckctzbh;//转出库存台帐编号
    private String zrkctzbh;//转入库存台帐编号
    private Double zczsl;//转仓总数量
    private Double zczzl;//转仓总重量
    private List<WhjlZCMX> zcmx;//转仓明细
    //单独增加,不进行上传
    @JSONField(serialize = false)
    private String bizId;  //业务ID
    @JSONField(serialize = false)
    private Date updateTime;  //最后更新时间
    @JSONField(serialize = false)
    private String czbz;  //操作标志
    @JSONField(serialize = false)
    private String kqdm;  //库区代码
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1212.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,121 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
 * å‡ºå…¥åº“业务-出入库记录
 *
 * @author czt
 * @date 2023/8/2  20:40
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlApi1212 implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String crkid;  //出入库记录id
    private String jlqybh;  //军粮企业编号
    private String ssqymc;  //军粮企业名称
    private String jgzdbh;  //军供站点编号
    private String jgzdmc;  //军供站点名称
    @JSONField(format = "yyyy-MM-dd")
    private Date ywrq;  //业务日期
    private String crklx;  //出入库类型
    private String ywlx;  //业务类型
    private String crkpz;  //出入库凭证
    private String jljgqybh;  //加工企业编号
    private String jljgqymc;  //加工企业名称
    private String khbh;  //客户编号
    private String glzxm;  //客户姓名
    private String shdw;  //收货单位
    private String shlxr;  //收货联系人
    private String shlxrdh;  //收货联系电话
    private String rjfaid;  //应急方案id
    private String jhid;  //筹措计划ID
    private String htid;  //合同ID
    private String psrwid;  //配送任务id
    private String yscch;  //运输车船号
    private String cyr;  //承运人
    private String cyrdh;  //承运人电话
    private String bz;  //备注
    private List<WhjlInoutDel> crkmx;  //出入库明细
    private List<WhjlCheck> zjbgwj;  //质检报告文件
    //单独增加,不进行上传
    @JSONField(serialize = false)
    private String bizId;  //业务ID
    @JSONField(serialize = false)
    private Date updateTime;  //最后更新时间
    @JSONField(serialize = false)
    private String czbz;  //操作标志
    @JSONField(serialize = false)
    private String kqdm;  //库区代码
    private String crkmxid;  //出入库明细ID
    private String ajbh;  //廒间编号
    private String cfmc;  //廒间名称
    private String hwbh;  //货位编号
    private String hwmc;  //货位名称
    private String kctzbh;  //库存台帐ID
    private String kctzcppcid;  //库存台帐产品批次ID
    private String psmxid;  //配送车辆明细ID
    private String yjfamxid;  //应急方案明细ID
    private String lspzbm;  //品种编号
    private String lspzmc;  //品种名称
    private String cpbh;  //产品编号
    private String cpmc;  //产品名称
    private String jldwbm;  //计量单位编码
    private String jldwmc;  //计量单位名称
    private String jsdwbm;  //计数单位编码
    private String jsdwmc;  //计数单位名称
    private String crlx;  //出库类型
    private Double crksl;  //出入库数量
    private Double crkzl;  //出入库重量
    private Double qcsl;  //期初数量
    private Double qmsl;  //期末数量
    private Double qczl;  //期初重量
    private Double qmzl;  //期未重量
    private Double shsl;  //损耗数量
    private Double shzl;  //损耗重量
    private String ysyq;  //验收要求
    private String sfhx;  //是否核销
    private String qkxm;  //欠款项目
    private Double dj;  //单价
    private Double je;  //金额
    private String dj1;  //等级
    private String cd;  //产地
    private String sccj;  //生产厂家
    private String gg;  //规格型号
    private String cppc;  //产品批次
    @JSONField(format = "yyyy-MM-dd")
    private Date scrq;  //生产日期
    private Double bzq;  //保质期
    @JSONField(format = "yyyy-MM-dd")
    private String bzqjzrq;  //保质期截至日期
    private String bgy;  //保管员
    private String ckfs;  //出库方式
    private String djsj;  //登记时间
    private String zz;  //站长
    private String jjy;  //质检员
    private String sxh;  //顺序号
//    private String bz;  //备注
    private String jybgwjid;  //检验报告文件id
    @JSONField(format = "yyyy-MM-dd")
    private Date jyrq;  //检验日期
    private String jylx;  //检验类型
    private String wjlx;  //文件类型
    private String wjm;  //文件名
    private String wjlj;  //文件路径
    private String wjdx;  //文件大小
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1213.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,59 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
 * @Author: YYC
 * @Description:出入库结算记录
 * @DateTime: 2023-10-29 22:06
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlApi1213 implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String rkfkjlid;//入库结算记录ID
    private String crkid;//出入库记录id
    private String jlqybh;//军粮企业编号
    private String jlqymc;//军粮企业名称
    private String jgzdbh;//军供站点编号
    private String jgzdmc;//军供站点名称
    private String jljgqybh;//加工企业编号
    private String jljgqymc;//加工企业名称
    private String khbh;//客户编号
    private String glzxm;//客户姓名
    private String crklx;//出入库类型
    private String jslx;//结算类型
    @JSONField(format = "yyyy-MM-dd")
    private Date jsrq;//结算日期
    private String jszt;//结算状态
    private Double je;//金额
    private String skr;//收款人
    private String skrsfzh;//收款人身份证号
    private String skrdh;//收款人电话
    private String khh;//开户行
    private String yhkh;//银行卡号
    private String sfyx;//是否有效
    private String bz;//备注
    private List<WhjlJSMX> jsmx;//结算明细记录
    //单独增加,不进行上传
    @JSONField(serialize = false)
    private String bizId;  //业务ID
    @JSONField(serialize = false)
    private Date updateTime;  //最后更新时间
    @JSONField(serialize = false)
    private String czbz;  //操作标志
    @JSONField(serialize = false)
    private String kqdm;  //库区代码
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1214.java
@@ -6,47 +6,54 @@
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
 * å‡ºå…¥åº“业务-出入库记录
 *
 * @author czt
 * @date 2023/8/2  20:40
 */
 * @Author: YYC
 * @Description:质检机构
 * @DateTime: 2023-10-29 22:16
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlApi1214 implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String crkid;  //出入库记录id
    private String jlqybh;  //军粮企业编号
    private String ssqymc;  //军粮企业名称
    private String jgzdbh;  //军供站点编号
    private String jgzdmc;  //军供站点名称
    private Date ywrq;  //业务日期
    private String crklx;  //出入库类型
    private String ywlx;  //业务类型
    private String crkpz;  //出入库凭证
    private String jljgqybh;  //加工企业编号
    private String jljgqymc;  //加工企业名称
    private String khbh;  //客户编号
    private String glzxm;  //客户姓名
    private String shdw;  //收货单位
    private String shlxr;  //收货联系人
    private String shlxrdh;  //收货联系电话
    private String rjfaid;  //应急方案id
    private String jhid;  //筹措计划ID
    private String htid;  //合同ID
    private String psrwid;  //配送任务id
    private String yscch;  //运输车船号
    private String cyr;  //承运人
    private String cyrdh;  //承运人电话
    private String zjjgbm;//质检机构编号
    private String zjjgmc;//质检机构名称
    private String zjjgjc;//质检机构简称
    private String zjjgssly;//质检机构所属领域
    private String zjjgssdq;//质检机构所属地区
    private String xzqhbm;//行政区划编码
    private String xzqhmc;//行政区划名称
    private String sysfr;//质检机构法人
    private String dh;//联系电话
    private String cz;//传真
    private String dzyx;//电子邮箱
    private String dz;//地址
    private String yb;//邮编
    private String lxr;//联系人
    private String zgbm;//主管部门
    private String zjjgjb;//质检机构级别
    private int zcygs;//在册员工数
    private int gjzcrs;//高级职称人数
    private int zjzcrs;//中级职称人数
    private int cjzcrs;//初级职称人数
    private int bs;//博士人数
    private int ss;//硕士人数
    private int xs;//学士人数
    private int dzsyx;//大专生以下
    private Double zgdzc;//总固定资产
    private Double mj;//面积
    private String zcxz;//资产性质
    private int csspjcdrs;//从事食品检测的人数
    private String bz;  //备注
    private String crkmx;  //出入库明细
    private String zjbgwj;  //质检报告文件
    private List<WhjlJCNL> jcnl;//检测能力
    private List<WhjlYQSB> yqsb;//仪器设备
    //单独增加,不进行上传
    @JSONField(serialize = false)
@@ -57,60 +64,4 @@
    private String czbz;  //操作标志
    @JSONField(serialize = false)
    private String kqdm;  //库区代码
    private String crkmxid;  //出入库明细ID
    private String ajbh;  //廒间编号
    private String cfmc;  //廒间名称
    private String hwbh;  //货位编号
    private String hwmc;  //货位名称
    private String kctzbh;  //库存台帐ID
    private String kctzcppcid;  //库存台帐产品批次ID
    private String psmxid;  //配送车辆明细ID
    private String yjfamxid;  //应急方案明细ID
    private String lspzbm;  //品种编号
    private String lspzmc;  //品种名称
    private String cpbh;  //产品编号
    private String cpmc;  //产品名称
    private String jldwbm;  //计量单位编码
    private String jldwmc;  //计量单位名称
    private String jsdwbm;  //计数单位编码
    private String jsdwmc;  //计数单位名称
    private String crlx;  //出库类型
    private String crksl;  //出入库数量
    private String crkzl;  //出入库重量
    private String qcsl;  //期初数量
    private String qmsl;  //期末数量
    private String qczl;  //期初重量
    private String qmzl;  //期未重量
    private String shsl;  //损耗数量
    private String shzl;  //损耗重量
    private String ysyq;  //验收要求
    private String sfhx;  //是否核销
    private String qkxm;  //欠款项目
    private String dj;  //单价
    private String je;  //金额
    //    private String dj;  //等级
    private String cd;  //产地
    private String sccj;  //生产厂家
    private String gg;  //规格型号
    private String cppc;  //产品批次
    private String scrq;  //生产日期
    private String bzq;  //保质期
    private String bzqjzrq;  //保质期截至日期
    private String bgy;  //保管员
    private String ckfs;  //出库方式
    private String djsj;  //登记时间
    private String zz;  //站长
    private String jjy;  //质检员
    private String sxh;  //顺序号
//    private String bz;  //备注
    private String jybgwjid;  //检验报告文件id
    private String jyrq;  //检验日期
    private String jylx;  //检验类型
    private String wjlx;  //文件类型
    private String wjm;  //文件名
    private String wjlj;  //文件路径
    private String wjdx;  //文件大小
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlApi1215.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,58 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
/**
 * @Author: YYC
 * @Description:样品登记信息
 * @DateTime: 2023-10-29 22:31
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlApi1215 implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String cybh;//样品编号
    private String jlqybh;//军粮企业编号
    private String jlqymc;//军粮企业名称
    private String jgzdbh;//军供站点编号
    private String jgzdmc;//军供站点名称
    private String zjjgbm;//质检机构编号
    private String zjjgmc;//质检机构名称
    private String jljgqybh;//加工企业编号
    private String cpmc;//产品名称
    private String cppc;//产品批次
    @JSONField(format = "yyyy-MM-dd")
    private Date scrq;//生产日期
    private String cysm;//抽样说明
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date cysj;//抽样时间
    private String cyr;//抽样人
    private String cydd;//抽样地点
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date djsj;//登记时间
    private Double cyjs;//抽样基数
    private Double cysl;//抽样数量
    private String sfyx;//是否有效
    private String bz;//备注
    //单独增加,不进行上传
    @JSONField(serialize = false)
    private String bizId;  //业务ID
    @JSONField(serialize = false)
    private Date updateTime;  //最后更新时间
    @JSONField(serialize = false)
    private String czbz;  //操作标志
    @JSONField(serialize = false)
    private String kqdm;  //库区代码
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlCheck.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,33 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
/**
 * @Author: YYC
 * @Description:质检报告文件
 * @DateTime: 2023-10-29 21:46
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlCheck implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String jybgwjid;//检验报告文件id
    @JSONField(format = "yyyy-MM-dd")
    private Date jyrq;//检验日期
    private String jylx;//检验类型
    private String wjlx;//文件类型
    private String wjm;//文件名
    private String wjlj;//文件路径
    private String wjdx;//文件大小
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlInoutDel.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,73 @@
package com.fzzy.otherview.whhpjl.dto;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
/**
 * @Author: YYC
 * @Description:
 * @DateTime: 2023-10-29 21:30
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlInoutDel implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String crkmxid;//出入库明细ID
    private String ajbh;//廒间编号
    private String ajmc;//廒间名称
    private String hwbh;//货位编号
    private String hwmc;//货位名称
    private String kctzbh;//库存台帐ID
    private String kctzcppcid;//库存台帐产品批次ID
    private String psmxid;//配送车辆明细ID
    private String yjfamxid;//应急方案明细ID
    private String lspzbm;//品种编号
    private String lspzmc;//品种名称
    private String cpbh;//产品编号
    private String cpmc;//产品名称
    private String jldwbm;//计量单位编码
    private String jldwmc;//计量单位名称
    private String jsdwbm;//计数单位编码
    private String jsdwmc;//计数单位名称
    private String crlx;//出库类型
    private Double crksl;//出入库数量
    private Double crkzl;//出入库重量
    private Double qcsl;//期初数量
    private Double qmsl;//期末数量
    private Double qczl;//期初重量
    private Double qmzl;//期未重量
    private Double shsl;//损耗数量
    private Double shzl;//损耗重量
    private String ysyq;//验收要求
    private String sfhx;//是否核销
    private String qkxm;//欠款项目
    private Double dj;//单价
    private Double je;//金额
    private String dj1;//等级
    private String cd;//产地
    private String sccj;//生产厂家
    private String gg;//规格型号
    private String cppc;//产品批次
    @JSONField(format = "yyyy-MM-dd")
    private Date scrq;//生产日期
    private Double bzq;//保质期
    @JSONField(format = "yyyy-MM-dd")
    private Date bzqjzrq;//保质期截至日期
    private String bgy;//保管员
    private String ckfs;//出库方式
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String djsj;//登记时间
    private String zz;//站长
    private String jjy;//质检员
    private int sxh;//顺序号
    private String bz;//备注
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlJCNL.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,31 @@
package com.fzzy.otherview.whhpjl.dto;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
 * @Author: YYC
 * @Description:检测能力
 * @DateTime: 2023-10-29 22:21
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlJCNL implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String bzbm;//质检标准编码
    private String bzmxbm;//标准明细编码
    private String jcxmdjbm;//检测项目等级编码
    private String jcly;//检测领域
    private String xzfw;//限制范围
    private String zzzmdm;//资质证明代码
    private int xh;//序号
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlJSMX.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,28 @@
package com.fzzy.otherview.whhpjl.dto;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
 * @Author: YYC
 * @Description:结算明细记录
 * @DateTime: 2023-10-29 22:10
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlJSMX implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String rkfkjlmxid;
    private String crkmxid;
    private String fkpzh;
    private Double sl;
    private Double dj;
    private Double je;
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlYQSB.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,30 @@
package com.fzzy.otherview.whhpjl.dto;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
 * @Author: YYC
 * @Description:仪器设备
 * @DateTime: 2023-10-29 22:24
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlYQSB implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String yqsbbm;//仪器设备编码
    private String yqsbmc;//仪器设备名称
    private String ggxh;//规格型号
    private String zzgb;//制造国别
    private Double jg;//ä»·æ ¼
    private String gznf;//购置年份
    private Double syl;//使用率
    private int xh;//序号
}
src/main/java/com/fzzy/otherview/whhpjl/dto/WhjlZCMX.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,25 @@
package com.fzzy.otherview.whhpjl.dto;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
 * @Author: YYC
 * @Description:转仓明细
 * @DateTime: 2023-10-29 22:56
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class WhjlZCMX implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private String zcmxid;//转仓明细ID
    private String zckctzcppcid;//转出库存台产品批次ID
    private String zrkctzcppcid;//转入库存台产品批次ID
    private String zcsl;//转仓数量
    private String zczl;//转仓重量
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1115PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,198 @@
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.bstek.dorado.data.provider.Page;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.dto.ResponseDto;
import com.fzzy.api.entity.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.ContextUtil;
import com.fzzy.api.view.repository.ApiInfoDataRep;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1115;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Component;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
 * @Author: YYC
 * @Description:仓储设备维修记录
 * @DateTime: 2023-10-25 14:13
 **/
@Component
public class WhjlApi1115PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * WhjlApi1115PR#listData
     *
     * @return
     */
    @DataProvider
    public void listData(Page<WhjlApi1115> page, ApiParam param) {
        Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, "updateTime");
        Specification specification = new Specification<ApiInfoData>() {
            private static final long serialVersionUID = 1L;
            @Override
            public Predicate toPredicate(Root<ApiInfoData> root, CriteriaQuery<?> criteriaQuery, CriteriaBuilder criteriaBuilder) {
                List<Predicate> predicates = new ArrayList<>(); //所有的断言
                Predicate predicate = criteriaBuilder.equal(root.get("inteId"), WhjlConstant.API_CODE_1115);
                predicates.add(predicate);
                if (null != param) {
                    if (StringUtils.isNotBlank(param.getKqdm())) {
                        Predicate predicate1 = criteriaBuilder.equal(root.get("kqdm"), param.getKqdm());
                        predicates.add(predicate1);
                    }
                    if (StringUtils.isNotBlank(param.getCzbz())) {
                        Predicate predicate2 = criteriaBuilder.equal(root.get("czbz"), param.getCzbz());
                        predicates.add(predicate2);
                    }
                    if (null != param.getStart()) {
                        Predicate predicate3 = criteriaBuilder.greaterThan(root.get("updateTime"), ContextUtil.getCurZero(param.getStart()));
                        predicates.add(predicate3);
                    }
                    if (null != param.getEnd()) {
                        Predicate predicate4 = criteriaBuilder.lessThan(root.get("updateTime"), ContextUtil.getNextZero(param.getEnd()));
                        predicates.add(predicate4);
                    }
                }
                return criteriaBuilder.and(predicates.toArray(new Predicate[0]));
            }
        };
        org.springframework.data.domain.Page<ApiInfoData> japPage = apiInfoDataRep.findAll(specification, pageable);
        page.setEntityCount((int) japPage.getTotalElements());
        List<WhjlApi1115> list = new ArrayList<>();
        WhjlApi1115 whjlApi1115;
        for (ApiInfoData infoData : japPage.getContent()) {
            whjlApi1115 = JSONObject.parseObject(infoData.getData(), WhjlApi1115.class);
            whjlApi1115.setKqdm(infoData.getKqdm());
            whjlApi1115.setCzbz(infoData.getCzbz());
            whjlApi1115.setUpdateTime(infoData.getUpdateTime());
            whjlApi1115.setBizId(infoData.getDataId());
            list.add(whjlApi1115);
        }
        page.setEntities(list);
    }
    /**
     * æ›´æ–°æˆ–修改
     * WhjlApi1115PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlApi1115 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getBizId());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_12);
        infoData.setInteId(WhjlConstant.API_CODE_1115);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getBizId());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * WhjlApi1115PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlApi1115 data) {
        apiInfoDataRep.deleteById(data.getBizId());
        return null;
    }
    /**
     * ä¸Šä¼ 
     * WhjlApi1115PR#pushData
     *
     * @param items
     * @return
     */
    @Expose
    public String pushData(List<WhjlApi1115> items) {
        String result = "";
        String kqdm = items.get(0).getKqdm();
        ApiConfs apiConf = apiCommonService.getConf(kqdm);
        if (null == apiConf) {
            return "系统没有获取到当前库区配置信息,执行失败";
        }
        //封装参数
        ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1115);
        //获取实现接口
        ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol());
        if (null == apiService) {
            return "系统没有当前推送协议配置,执行失败";
        }
        ResponseDto responseDto;
        ApiInfoData infoData;
        for (WhjlApi1115 data : items) {
            responseDto = apiService.pushData(param, apiConf, items);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    infoData = new ApiInfoData();
                    infoData.setId(data.getBizId());
                    infoData.setKqdm(data.getKqdm());
                    infoData.setInteType(WhjlConstant.API_CATEGORY_12);
                    infoData.setInteId(WhjlConstant.API_CODE_1115);
                    infoData.setUpdateTime(new Date());
                    infoData.setDataId(data.getBizId());
                    data.setCzbz(Constant.CZBZ_U);
                    infoData.setCzbz(Constant.CZBZ_U);
                    infoData.setData(JSON.toJSONString(data));
                    apiInfoDataRep.save(infoData);
                }
            }
            result += responseDto.toString();
        }
        return result;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1205PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,199 @@
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.bstek.dorado.data.provider.Page;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.dto.ResponseDto;
import com.fzzy.api.entity.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.ContextUtil;
import com.fzzy.api.view.repository.ApiInfoDataRep;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1205;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Component;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
 * è®¢å•信息
 *
 * @Author:YAN
 */
@Component
public class WhjlApi1205PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1205PR#listData
     *
     * @return
     */
    @DataProvider
    public void listData(Page<WhjlApi1205> page, ApiParam param) {
        Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, "updateTime");
        Specification specification = new Specification<ApiInfoData>() {
            private static final long serialVersionUID = 1L;
            @Override
            public Predicate toPredicate(Root<ApiInfoData> root, CriteriaQuery<?> criteriaQuery, CriteriaBuilder criteriaBuilder) {
                List<Predicate> predicates = new ArrayList<>(); //所有的断言
                Predicate predicate = criteriaBuilder.equal(root.get("inteId"), WhjlConstant.API_CODE_1205);
                predicates.add(predicate);
                if (null != param) {
                    if (StringUtils.isNotBlank(param.getKqdm())) {
                        Predicate predicate1 = criteriaBuilder.equal(root.get("kqdm"), param.getKqdm());
                        predicates.add(predicate1);
                    }
                    if (StringUtils.isNotBlank(param.getCzbz())) {
                        Predicate predicate2 = criteriaBuilder.equal(root.get("czbz"), param.getCzbz());
                        predicates.add(predicate2);
                    }
                    if (null != param.getStart()) {
                        Predicate predicate3 = criteriaBuilder.greaterThan(root.get("updateTime"), ContextUtil.getCurZero(param.getStart()));
                        predicates.add(predicate3);
                    }
                    if (null != param.getEnd()) {
                        Predicate predicate4 = criteriaBuilder.lessThan(root.get("updateTime"), ContextUtil.getNextZero(param.getEnd()));
                        predicates.add(predicate4);
                    }
                }
                return criteriaBuilder.and(predicates.toArray(new Predicate[0]));
            }
        };
        org.springframework.data.domain.Page<ApiInfoData> japPage = apiInfoDataRep.findAll(specification, pageable);
        page.setEntityCount((int) japPage.getTotalElements());
        List<WhjlApi1205> list = new ArrayList<>();
        WhjlApi1205 whjlApi1205;
        for (ApiInfoData infoData : japPage.getContent()) {
            whjlApi1205 = JSONObject.parseObject(infoData.getData(), WhjlApi1205.class);
            whjlApi1205.setKqdm(infoData.getKqdm());
            whjlApi1205.setCzbz(infoData.getCzbz());
            whjlApi1205.setUpdateTime(infoData.getUpdateTime());
            whjlApi1205.setBizId(infoData.getDataId());
            list.add(whjlApi1205);
        }
        page.setEntities(list);
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlApi1205PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlApi1205 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getBizId());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_12);
        infoData.setInteId(WhjlConstant.API_CODE_1205);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getBizId());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlApi1205PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlApi1205 data) {
        apiInfoDataRep.deleteById(data.getBizId());
        return null;
    }
    /**
     * ä¸Šä¼ 
     * whjlApi1205PR#pushData
     *
     * @param items
     * @return
     */
    @Expose
    public String pushData(List<WhjlApi1205> items) {
        String result = "";
        String kqdm = items.get(0).getKqdm();
        ApiConfs apiConf = apiCommonService.getConf(kqdm);
        if (null == apiConf) {
            return "系统没有获取到当前库区配置信息,执行失败";
        }
        //封装参数
        ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1205);
        //获取实现接口
        ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol());
        if (null == apiService) {
            return "系统没有当前推送协议配置,执行失败";
        }
        ApiInfoData infoData;
        ResponseDto responseDto;
        for (WhjlApi1205 data : items) {
            responseDto = apiService.pushData(param, apiConf, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    infoData = new ApiInfoData();
                    infoData.setId(data.getBizId());
                    infoData.setKqdm(data.getKqdm());
                    infoData.setInteType(WhjlConstant.API_CATEGORY_12);
                    infoData.setInteId(WhjlConstant.API_CODE_1205);
                    infoData.setUpdateTime(new Date());
                    infoData.setDataId(data.getBizId());
                    data.setCzbz(Constant.CZBZ_U);
                    infoData.setCzbz(Constant.CZBZ_U);
                    infoData.setData(JSON.toJSONString(data));
                    apiInfoDataRep.save(infoData);
                }
            }
            result += responseDto.toString();
        }
        return result;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1206PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,225 @@
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.bstek.dorado.data.provider.Page;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.dto.ResponseDto;
import com.fzzy.api.entity.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.ContextUtil;
import com.fzzy.api.view.repository.ApiInfoDataRep;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1206;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1206;
import com.fzzy.otherview.whhpjl.dto.WhjlQDItem;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Component;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
 * åˆåŒä¿¡æ¯
 *
 * @Author:YAN
 */
@Component
public class WhjlApi1206PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1207PR#listData
     *
     * @return
     */
    @DataProvider
    public void listData(Page<WhjlApi1206> page, ApiParam param) {
        Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, "updateTime");
        Specification specification = new Specification<ApiInfoData>() {
            private static final long serialVersionUID = 1L;
            @Override
            public Predicate toPredicate(Root<ApiInfoData> root, CriteriaQuery<?> criteriaQuery, CriteriaBuilder criteriaBuilder) {
                List<Predicate> predicates = new ArrayList<>(); //所有的断言
                Predicate predicate = criteriaBuilder.equal(root.get("inteId"), WhjlConstant.API_CODE_1206);
                predicates.add(predicate);
                if (null != param) {
                    if (StringUtils.isNotBlank(param.getKqdm())) {
                        Predicate predicate1 = criteriaBuilder.equal(root.get("kqdm"), param.getKqdm());
                        predicates.add(predicate1);
                    }
                    if (StringUtils.isNotBlank(param.getCzbz())) {
                        Predicate predicate2 = criteriaBuilder.equal(root.get("czbz"), param.getCzbz());
                        predicates.add(predicate2);
                    }
                    if (null != param.getStart()) {
                        Predicate predicate3 = criteriaBuilder.greaterThan(root.get("updateTime"), ContextUtil.getCurZero(param.getStart()));
                        predicates.add(predicate3);
                    }
                    if (null != param.getEnd()) {
                        Predicate predicate4 = criteriaBuilder.lessThan(root.get("updateTime"), ContextUtil.getNextZero(param.getEnd()));
                        predicates.add(predicate4);
                    }
                }
                return criteriaBuilder.and(predicates.toArray(new Predicate[0]));
            }
        };
        org.springframework.data.domain.Page<ApiInfoData> japPage = apiInfoDataRep.findAll(specification, pageable);
        page.setEntityCount((int) japPage.getTotalElements());
        List<WhjlApi1206> list = new ArrayList<>();
        WhjlApi1206 whjlApi1206;
        for (ApiInfoData infoData : japPage.getContent()) {
            whjlApi1206 = JSONObject.parseObject(infoData.getData(), WhjlApi1206.class);
            whjlApi1206.setKqdm(infoData.getKqdm());
            whjlApi1206.setCzbz(infoData.getCzbz());
            whjlApi1206.setUpdateTime(infoData.getUpdateTime());
            whjlApi1206.setBizId(infoData.getDataId());
            list.add(whjlApi1206);
        }
        page.setEntities(list);
    }
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1207PR#listItem
     *
     * @return
     */
    @DataProvider
    public List<WhjlQDItem> listItem(String id) {
        return null;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlApi1207PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlApi1206 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getBizId());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_12);
        infoData.setInteId(WhjlConstant.API_CODE_1207);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getBizId());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlApi1207PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlApi1206 data) {
        apiInfoDataRep.deleteById(data.getBizId());
        return null;
    }
    /**
     * åˆ é™¤åˆåŒå•†å“æ¸…单
     * whjlApi1207PR#delItem
     *
     * @param data
     * @return
     */
    @Expose
    public String delItem(WhjlQDItem data) {
        return null;
    }
    /**
     * ä¸Šä¼ 
     * whjlApi1207PR#pushData
     *
     * @param items
     * @return
     */
    @Expose
    public String pushData(List<WhjlApi1206> items) {
        String result = "";
        String kqdm = items.get(0).getKqdm();
        ApiConfs apiConf = apiCommonService.getConf(kqdm);
        if (null == apiConf) {
            return "系统没有获取到当前库区配置信息,执行失败";
        }
        //封装参数
        ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1207);
        //获取实现接口
        ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol());
        if (null == apiService) {
            return "系统没有当前推送协议配置,执行失败";
        }
        ApiInfoData infoData;
        ResponseDto responseDto;
        for (WhjlApi1206 data : items) {
            responseDto = apiService.pushData(param, apiConf, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    infoData = new ApiInfoData();
                    infoData.setId(data.getBizId());
                    infoData.setKqdm(data.getKqdm());
                    infoData.setInteType(WhjlConstant.API_CATEGORY_12);
                    infoData.setInteId(WhjlConstant.API_CODE_1207);
                    infoData.setUpdateTime(new Date());
                    infoData.setDataId(data.getBizId());
                    data.setCzbz(Constant.CZBZ_U);
                    infoData.setCzbz(Constant.CZBZ_U);
                    infoData.setData(JSON.toJSONString(data));
                    apiInfoDataRep.save(infoData);
                }
            }
            result += responseDto.toString();
        }
        return result;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1208PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,224 @@
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.bstek.dorado.data.provider.Page;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.dto.ResponseDto;
import com.fzzy.api.entity.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.ContextUtil;
import com.fzzy.api.view.repository.ApiInfoDataRep;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1208;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1208;
import com.fzzy.otherview.whhpjl.dto.WhjlQDItem;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Component;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
 * åº“存台账产品批次
 *
 * @Author:YAN
 */
@Component
public class WhjlApi1208PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1208PR#listData
     *
     * @return
     */
    @DataProvider
    public void listData(Page<WhjlApi1208> page, ApiParam param) {
        Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, "updateTime");
        Specification specification = new Specification<ApiInfoData>() {
            private static final long serialVersionUID = 1L;
            @Override
            public Predicate toPredicate(Root<ApiInfoData> root, CriteriaQuery<?> criteriaQuery, CriteriaBuilder criteriaBuilder) {
                List<Predicate> predicates = new ArrayList<>(); //所有的断言
                Predicate predicate = criteriaBuilder.equal(root.get("inteId"), WhjlConstant.API_CODE_1208);
                predicates.add(predicate);
                if (null != param) {
                    if (StringUtils.isNotBlank(param.getKqdm())) {
                        Predicate predicate1 = criteriaBuilder.equal(root.get("kqdm"), param.getKqdm());
                        predicates.add(predicate1);
                    }
                    if (StringUtils.isNotBlank(param.getCzbz())) {
                        Predicate predicate2 = criteriaBuilder.equal(root.get("czbz"), param.getCzbz());
                        predicates.add(predicate2);
                    }
                    if (null != param.getStart()) {
                        Predicate predicate3 = criteriaBuilder.greaterThan(root.get("updateTime"), ContextUtil.getCurZero(param.getStart()));
                        predicates.add(predicate3);
                    }
                    if (null != param.getEnd()) {
                        Predicate predicate4 = criteriaBuilder.lessThan(root.get("updateTime"), ContextUtil.getNextZero(param.getEnd()));
                        predicates.add(predicate4);
                    }
                }
                return criteriaBuilder.and(predicates.toArray(new Predicate[0]));
            }
        };
        org.springframework.data.domain.Page<ApiInfoData> japPage = apiInfoDataRep.findAll(specification, pageable);
        page.setEntityCount((int) japPage.getTotalElements());
        List<WhjlApi1208> list = new ArrayList<>();
        WhjlApi1208 whjlApi1208;
        for (ApiInfoData infoData : japPage.getContent()) {
            whjlApi1208 = JSONObject.parseObject(infoData.getData(), WhjlApi1208.class);
            whjlApi1208.setKqdm(infoData.getKqdm());
            whjlApi1208.setCzbz(infoData.getCzbz());
            whjlApi1208.setUpdateTime(infoData.getUpdateTime());
            whjlApi1208.setBizId(infoData.getDataId());
            list.add(whjlApi1208);
        }
        page.setEntities(list);
    }
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1208PR#listItem
     *
     * @return
     */
    @DataProvider
    public List<WhjlQDItem> listItem(String id) {
        return null;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlApi1208PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlApi1208 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getBizId());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_12);
        infoData.setInteId(WhjlConstant.API_CODE_1208);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getBizId());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlApi1208PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlApi1208 data) {
        apiInfoDataRep.deleteById(data.getBizId());
        return null;
    }
    /**
     * åˆ é™¤åˆåŒå•†å“æ¸…单
     * whjlApi1208PR#delItem
     *
     * @param data
     * @return
     */
    @Expose
    public String delItem(WhjlQDItem data) {
        return null;
    }
    /**
     * ä¸Šä¼ 
     * whjlApi1208PR#pushData
     *
     * @param items
     * @return
     */
    @Expose
    public String pushData(List<WhjlApi1208> items) {
        String result = "";
        String kqdm = items.get(0).getKqdm();
        ApiConfs apiConf = apiCommonService.getConf(kqdm);
        if (null == apiConf) {
            return "系统没有获取到当前库区配置信息,执行失败";
        }
        //封装参数
        ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1208);
        //获取实现接口
        ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol());
        if (null == apiService) {
            return "系统没有当前推送协议配置,执行失败";
        }
        ApiInfoData infoData;
        ResponseDto responseDto;
        for (WhjlApi1208 data : items) {
            responseDto = apiService.pushData(param, apiConf, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    infoData = new ApiInfoData();
                    infoData.setId(data.getBizId());
                    infoData.setKqdm(data.getKqdm());
                    infoData.setInteType(WhjlConstant.API_CATEGORY_12);
                    infoData.setInteId(WhjlConstant.API_CODE_1208);
                    infoData.setUpdateTime(new Date());
                    infoData.setDataId(data.getBizId());
                    data.setCzbz(Constant.CZBZ_U);
                    infoData.setCzbz(Constant.CZBZ_U);
                    infoData.setData(JSON.toJSONString(data));
                    apiInfoDataRep.save(infoData);
                }
            }
            result += responseDto.toString();
        }
        return result;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1209PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,223 @@
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.bstek.dorado.data.provider.Page;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.dto.ResponseDto;
import com.fzzy.api.entity.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.ContextUtil;
import com.fzzy.api.view.repository.ApiInfoDataRep;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1209;
import com.fzzy.otherview.whhpjl.dto.WhjlQDItem;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Component;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
 * åº“存台账出入记录
 *
 * @Author:YAN
 */
@Component
public class WhjlApi1209PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1209PR#listData
     *
     * @return
     */
    @DataProvider
    public void listData(Page<WhjlApi1209> page, ApiParam param) {
        Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, "updateTime");
        Specification specification = new Specification<ApiInfoData>() {
            private static final long serialVersionUID = 1L;
            @Override
            public Predicate toPredicate(Root<ApiInfoData> root, CriteriaQuery<?> criteriaQuery, CriteriaBuilder criteriaBuilder) {
                List<Predicate> predicates = new ArrayList<>(); //所有的断言
                Predicate predicate = criteriaBuilder.equal(root.get("inteId"), WhjlConstant.API_CODE_1209);
                predicates.add(predicate);
                if (null != param) {
                    if (StringUtils.isNotBlank(param.getKqdm())) {
                        Predicate predicate1 = criteriaBuilder.equal(root.get("kqdm"), param.getKqdm());
                        predicates.add(predicate1);
                    }
                    if (StringUtils.isNotBlank(param.getCzbz())) {
                        Predicate predicate2 = criteriaBuilder.equal(root.get("czbz"), param.getCzbz());
                        predicates.add(predicate2);
                    }
                    if (null != param.getStart()) {
                        Predicate predicate3 = criteriaBuilder.greaterThan(root.get("updateTime"), ContextUtil.getCurZero(param.getStart()));
                        predicates.add(predicate3);
                    }
                    if (null != param.getEnd()) {
                        Predicate predicate4 = criteriaBuilder.lessThan(root.get("updateTime"), ContextUtil.getNextZero(param.getEnd()));
                        predicates.add(predicate4);
                    }
                }
                return criteriaBuilder.and(predicates.toArray(new Predicate[0]));
            }
        };
        org.springframework.data.domain.Page<ApiInfoData> japPage = apiInfoDataRep.findAll(specification, pageable);
        page.setEntityCount((int) japPage.getTotalElements());
        List<WhjlApi1209> list = new ArrayList<>();
        WhjlApi1209 whjlApi1209;
        for (ApiInfoData infoData : japPage.getContent()) {
            whjlApi1209 = JSONObject.parseObject(infoData.getData(), WhjlApi1209.class);
            whjlApi1209.setKqdm(infoData.getKqdm());
            whjlApi1209.setCzbz(infoData.getCzbz());
            whjlApi1209.setUpdateTime(infoData.getUpdateTime());
            whjlApi1209.setBizId(infoData.getDataId());
            list.add(whjlApi1209);
        }
        page.setEntities(list);
    }
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1209PR#listItem
     *
     * @return
     */
    @DataProvider
    public List<WhjlQDItem> listItem(String id) {
        return null;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlApi1209PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlApi1209 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getBizId());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_12);
        infoData.setInteId(WhjlConstant.API_CODE_1209);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getBizId());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlApi1209PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlApi1209 data) {
        apiInfoDataRep.deleteById(data.getBizId());
        return null;
    }
    /**
     * åˆ é™¤åˆåŒå•†å“æ¸…单
     * whjlApi1209PR#delItem
     *
     * @param data
     * @return
     */
    @Expose
    public String delItem(WhjlQDItem data) {
        return null;
    }
    /**
     * ä¸Šä¼ 
     * whjlApi1209PR#pushData
     *
     * @param items
     * @return
     */
    @Expose
    public String pushData(List<WhjlApi1209> items) {
        String result = "";
        String kqdm = items.get(0).getKqdm();
        ApiConfs apiConf = apiCommonService.getConf(kqdm);
        if (null == apiConf) {
            return "系统没有获取到当前库区配置信息,执行失败";
        }
        //封装参数
        ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1209);
        //获取实现接口
        ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol());
        if (null == apiService) {
            return "系统没有当前推送协议配置,执行失败";
        }
        ApiInfoData infoData;
        ResponseDto responseDto;
        for (WhjlApi1209 data : items) {
            responseDto = apiService.pushData(param, apiConf, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    infoData = new ApiInfoData();
                    infoData.setId(data.getBizId());
                    infoData.setKqdm(data.getKqdm());
                    infoData.setInteType(WhjlConstant.API_CATEGORY_12);
                    infoData.setInteId(WhjlConstant.API_CODE_1209);
                    infoData.setUpdateTime(new Date());
                    infoData.setDataId(data.getBizId());
                    data.setCzbz(Constant.CZBZ_U);
                    infoData.setCzbz(Constant.CZBZ_U);
                    infoData.setData(JSON.toJSONString(data));
                    apiInfoDataRep.save(infoData);
                }
            }
            result += responseDto.toString();
        }
        return result;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1210PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,223 @@
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.bstek.dorado.data.provider.Page;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.dto.ResponseDto;
import com.fzzy.api.entity.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.ContextUtil;
import com.fzzy.api.view.repository.ApiInfoDataRep;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1210;
import com.fzzy.otherview.whhpjl.dto.WhjlQDItem;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Component;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
 * åº“存台账出入记录
 *
 * @Author:YAN
 */
@Component
public class WhjlApi1210PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1210PR#listData
     *
     * @return
     */
    @DataProvider
    public void listData(Page<WhjlApi1210> page, ApiParam param) {
        Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, "updateTime");
        Specification specification = new Specification<ApiInfoData>() {
            private static final long serialVersionUID = 1L;
            @Override
            public Predicate toPredicate(Root<ApiInfoData> root, CriteriaQuery<?> criteriaQuery, CriteriaBuilder criteriaBuilder) {
                List<Predicate> predicates = new ArrayList<>(); //所有的断言
                Predicate predicate = criteriaBuilder.equal(root.get("inteId"), WhjlConstant.API_CODE_1210);
                predicates.add(predicate);
                if (null != param) {
                    if (StringUtils.isNotBlank(param.getKqdm())) {
                        Predicate predicate1 = criteriaBuilder.equal(root.get("kqdm"), param.getKqdm());
                        predicates.add(predicate1);
                    }
                    if (StringUtils.isNotBlank(param.getCzbz())) {
                        Predicate predicate2 = criteriaBuilder.equal(root.get("czbz"), param.getCzbz());
                        predicates.add(predicate2);
                    }
                    if (null != param.getStart()) {
                        Predicate predicate3 = criteriaBuilder.greaterThan(root.get("updateTime"), ContextUtil.getCurZero(param.getStart()));
                        predicates.add(predicate3);
                    }
                    if (null != param.getEnd()) {
                        Predicate predicate4 = criteriaBuilder.lessThan(root.get("updateTime"), ContextUtil.getNextZero(param.getEnd()));
                        predicates.add(predicate4);
                    }
                }
                return criteriaBuilder.and(predicates.toArray(new Predicate[0]));
            }
        };
        org.springframework.data.domain.Page<ApiInfoData> japPage = apiInfoDataRep.findAll(specification, pageable);
        page.setEntityCount((int) japPage.getTotalElements());
        List<WhjlApi1210> list = new ArrayList<>();
        WhjlApi1210 whjlApi1210;
        for (ApiInfoData infoData : japPage.getContent()) {
            whjlApi1210 = JSONObject.parseObject(infoData.getData(), WhjlApi1210.class);
            whjlApi1210.setKqdm(infoData.getKqdm());
            whjlApi1210.setCzbz(infoData.getCzbz());
            whjlApi1210.setUpdateTime(infoData.getUpdateTime());
            whjlApi1210.setBizId(infoData.getDataId());
            list.add(whjlApi1210);
        }
        page.setEntities(list);
    }
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1210PR#listItem
     *
     * @return
     */
    @DataProvider
    public List<WhjlQDItem> listItem(String id) {
        return null;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlApi1210PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlApi1210 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getBizId());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_12);
        infoData.setInteId(WhjlConstant.API_CODE_1210);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getBizId());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlApi1210PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlApi1210 data) {
        apiInfoDataRep.deleteById(data.getBizId());
        return null;
    }
    /**
     * åˆ é™¤åˆåŒå•†å“æ¸…单
     * whjlApi1210PR#delItem
     *
     * @param data
     * @return
     */
    @Expose
    public String delItem(WhjlQDItem data) {
        return null;
    }
    /**
     * ä¸Šä¼ 
     * whjlApi1210PR#pushData
     *
     * @param items
     * @return
     */
    @Expose
    public String pushData(List<WhjlApi1210> items) {
        String result = "";
        String kqdm = items.get(0).getKqdm();
        ApiConfs apiConf = apiCommonService.getConf(kqdm);
        if (null == apiConf) {
            return "系统没有获取到当前库区配置信息,执行失败";
        }
        //封装参数
        ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1210);
        //获取实现接口
        ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol());
        if (null == apiService) {
            return "系统没有当前推送协议配置,执行失败";
        }
        ApiInfoData infoData;
        ResponseDto responseDto;
        for (WhjlApi1210 data : items) {
            responseDto = apiService.pushData(param, apiConf, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    infoData = new ApiInfoData();
                    infoData.setId(data.getBizId());
                    infoData.setKqdm(data.getKqdm());
                    infoData.setInteType(WhjlConstant.API_CATEGORY_12);
                    infoData.setInteId(WhjlConstant.API_CODE_1210);
                    infoData.setUpdateTime(new Date());
                    infoData.setDataId(data.getBizId());
                    data.setCzbz(Constant.CZBZ_U);
                    infoData.setCzbz(Constant.CZBZ_U);
                    infoData.setData(JSON.toJSONString(data));
                    apiInfoDataRep.save(infoData);
                }
            }
            result += responseDto.toString();
        }
        return result;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1211PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,223 @@
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.bstek.dorado.data.provider.Page;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.dto.ResponseDto;
import com.fzzy.api.entity.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.ContextUtil;
import com.fzzy.api.view.repository.ApiInfoDataRep;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1211;
import com.fzzy.otherview.whhpjl.dto.WhjlQDItem;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Component;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
 * åº“存台账出入记录
 *
 * @Author:YAN
 */
@Component
public class WhjlApi1211PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1211PR#listData
     *
     * @return
     */
    @DataProvider
    public void listData(Page<WhjlApi1211> page, ApiParam param) {
        Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, "updateTime");
        Specification specification = new Specification<ApiInfoData>() {
            private static final long serialVersionUID = 1L;
            @Override
            public Predicate toPredicate(Root<ApiInfoData> root, CriteriaQuery<?> criteriaQuery, CriteriaBuilder criteriaBuilder) {
                List<Predicate> predicates = new ArrayList<>(); //所有的断言
                Predicate predicate = criteriaBuilder.equal(root.get("inteId"), WhjlConstant.API_CODE_1211);
                predicates.add(predicate);
                if (null != param) {
                    if (StringUtils.isNotBlank(param.getKqdm())) {
                        Predicate predicate1 = criteriaBuilder.equal(root.get("kqdm"), param.getKqdm());
                        predicates.add(predicate1);
                    }
                    if (StringUtils.isNotBlank(param.getCzbz())) {
                        Predicate predicate2 = criteriaBuilder.equal(root.get("czbz"), param.getCzbz());
                        predicates.add(predicate2);
                    }
                    if (null != param.getStart()) {
                        Predicate predicate3 = criteriaBuilder.greaterThan(root.get("updateTime"), ContextUtil.getCurZero(param.getStart()));
                        predicates.add(predicate3);
                    }
                    if (null != param.getEnd()) {
                        Predicate predicate4 = criteriaBuilder.lessThan(root.get("updateTime"), ContextUtil.getNextZero(param.getEnd()));
                        predicates.add(predicate4);
                    }
                }
                return criteriaBuilder.and(predicates.toArray(new Predicate[0]));
            }
        };
        org.springframework.data.domain.Page<ApiInfoData> japPage = apiInfoDataRep.findAll(specification, pageable);
        page.setEntityCount((int) japPage.getTotalElements());
        List<WhjlApi1211> list = new ArrayList<>();
        WhjlApi1211 whjlApi1211;
        for (ApiInfoData infoData : japPage.getContent()) {
            whjlApi1211 = JSONObject.parseObject(infoData.getData(), WhjlApi1211.class);
            whjlApi1211.setKqdm(infoData.getKqdm());
            whjlApi1211.setCzbz(infoData.getCzbz());
            whjlApi1211.setUpdateTime(infoData.getUpdateTime());
            whjlApi1211.setBizId(infoData.getDataId());
            list.add(whjlApi1211);
        }
        page.setEntities(list);
    }
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1211PR#listItem
     *
     * @return
     */
    @DataProvider
    public List<WhjlQDItem> listItem(String id) {
        return null;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlApi1211PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlApi1211 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getBizId());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_12);
        infoData.setInteId(WhjlConstant.API_CODE_1211);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getBizId());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlApi1211PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlApi1211 data) {
        apiInfoDataRep.deleteById(data.getBizId());
        return null;
    }
    /**
     * åˆ é™¤åˆåŒå•†å“æ¸…单
     * whjlApi1211PR#delItem
     *
     * @param data
     * @return
     */
    @Expose
    public String delItem(WhjlQDItem data) {
        return null;
    }
    /**
     * ä¸Šä¼ 
     * whjlApi1211PR#pushData
     *
     * @param items
     * @return
     */
    @Expose
    public String pushData(List<WhjlApi1211> items) {
        String result = "";
        String kqdm = items.get(0).getKqdm();
        ApiConfs apiConf = apiCommonService.getConf(kqdm);
        if (null == apiConf) {
            return "系统没有获取到当前库区配置信息,执行失败";
        }
        //封装参数
        ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1211);
        //获取实现接口
        ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol());
        if (null == apiService) {
            return "系统没有当前推送协议配置,执行失败";
        }
        ApiInfoData infoData;
        ResponseDto responseDto;
        for (WhjlApi1211 data : items) {
            responseDto = apiService.pushData(param, apiConf, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    infoData = new ApiInfoData();
                    infoData.setId(data.getBizId());
                    infoData.setKqdm(data.getKqdm());
                    infoData.setInteType(WhjlConstant.API_CATEGORY_12);
                    infoData.setInteId(WhjlConstant.API_CODE_1211);
                    infoData.setUpdateTime(new Date());
                    infoData.setDataId(data.getBizId());
                    data.setCzbz(Constant.CZBZ_U);
                    infoData.setCzbz(Constant.CZBZ_U);
                    infoData.setData(JSON.toJSONString(data));
                    apiInfoDataRep.save(infoData);
                }
            }
            result += responseDto.toString();
        }
        return result;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1212PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,157 @@
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.view.repository.ApiInfoDataRep;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1212;
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:YAN
 */
@Component
public class WhjlApi1212PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1214PR#listData
     *
     * @return
     */
    @DataProvider
    public List<WhjlApi1212> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_1214);
        if (null == result || result.isEmpty()) {
            return null;
        }
        List<WhjlApi1212> list = new ArrayList<>();
        WhjlApi1212 whjlApi1212;
        for (ApiInfoData infoData : result) {
            whjlApi1212 = JSONObject.parseObject(infoData.getData(), WhjlApi1212.class);
            whjlApi1212.setKqdm(infoData.getKqdm());
            whjlApi1212.setCzbz(infoData.getCzbz());
            whjlApi1212.setUpdateTime(infoData.getUpdateTime());
            whjlApi1212.setBizId(infoData.getDataId());
            list.add(whjlApi1212);
        }
        return list;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlApi1214PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlApi1212 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getBizId());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_12);
        infoData.setInteId(WhjlConstant.API_CODE_1214);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getBizId());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlApi1214PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlApi1212 data) {
        apiInfoDataRep.deleteById(data.getBizId());
        return null;
    }
    /**
     * ä¸Šä¼ 
     * whjlApi1214PR#pushData
     *
     * @param items
     * @return
     */
    @Expose
    public String pushData(List<WhjlApi1212> items) {
        String result = "";
        String kqdm = items.get(0).getKqdm();
        ApiConfs apiConf = apiCommonService.getConf(kqdm);
        if (null == apiConf) {
            return "系统没有获取到当前库区配置信息,执行失败";
        }
        //封装参数
        ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1214);
        //获取实现接口
        ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol());
        if (null == apiService) {
            return "系统没有当前推送协议配置,执行失败";
        }
        ApiInfoData infoData;
        ResponseDto responseDto;
        for (WhjlApi1212 data : items) {
            responseDto = apiService.pushData(param, apiConf, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    infoData = new ApiInfoData();
                    infoData.setId(data.getBizId());
                    infoData.setKqdm(data.getKqdm());
                    infoData.setInteType(WhjlConstant.API_CATEGORY_12);
                    infoData.setInteId(WhjlConstant.API_CODE_1214);
                    infoData.setUpdateTime(new Date());
                    infoData.setDataId(data.getBizId());
                    data.setCzbz(Constant.CZBZ_U);
                    infoData.setCzbz(Constant.CZBZ_U);
                    infoData.setData(JSON.toJSONString(data));
                    apiInfoDataRep.save(infoData);
                }
            }
            result += responseDto.toString();
        }
        return result;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1213PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,223 @@
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.bstek.dorado.data.provider.Page;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.dto.ResponseDto;
import com.fzzy.api.entity.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.ContextUtil;
import com.fzzy.api.view.repository.ApiInfoDataRep;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1213;
import com.fzzy.otherview.whhpjl.dto.WhjlQDItem;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Component;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
 * å‡ºå…¥åº“结算记录
 *
 * @Author:YAN
 */
@Component
public class WhjlApi1213PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1213PR#listData
     *
     * @return
     */
    @DataProvider
    public void listData(Page<WhjlApi1213> page, ApiParam param) {
        Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, "updateTime");
        Specification specification = new Specification<ApiInfoData>() {
            private static final long serialVersionUID = 1L;
            @Override
            public Predicate toPredicate(Root<ApiInfoData> root, CriteriaQuery<?> criteriaQuery, CriteriaBuilder criteriaBuilder) {
                List<Predicate> predicates = new ArrayList<>(); //所有的断言
                Predicate predicate = criteriaBuilder.equal(root.get("inteId"), WhjlConstant.API_CODE_1213);
                predicates.add(predicate);
                if (null != param) {
                    if (StringUtils.isNotBlank(param.getKqdm())) {
                        Predicate predicate1 = criteriaBuilder.equal(root.get("kqdm"), param.getKqdm());
                        predicates.add(predicate1);
                    }
                    if (StringUtils.isNotBlank(param.getCzbz())) {
                        Predicate predicate2 = criteriaBuilder.equal(root.get("czbz"), param.getCzbz());
                        predicates.add(predicate2);
                    }
                    if (null != param.getStart()) {
                        Predicate predicate3 = criteriaBuilder.greaterThan(root.get("updateTime"), ContextUtil.getCurZero(param.getStart()));
                        predicates.add(predicate3);
                    }
                    if (null != param.getEnd()) {
                        Predicate predicate4 = criteriaBuilder.lessThan(root.get("updateTime"), ContextUtil.getNextZero(param.getEnd()));
                        predicates.add(predicate4);
                    }
                }
                return criteriaBuilder.and(predicates.toArray(new Predicate[0]));
            }
        };
        org.springframework.data.domain.Page<ApiInfoData> japPage = apiInfoDataRep.findAll(specification, pageable);
        page.setEntityCount((int) japPage.getTotalElements());
        List<WhjlApi1213> list = new ArrayList<>();
        WhjlApi1213 whjlApi1213;
        for (ApiInfoData infoData : japPage.getContent()) {
            whjlApi1213 = JSONObject.parseObject(infoData.getData(), WhjlApi1213.class);
            whjlApi1213.setKqdm(infoData.getKqdm());
            whjlApi1213.setCzbz(infoData.getCzbz());
            whjlApi1213.setUpdateTime(infoData.getUpdateTime());
            whjlApi1213.setBizId(infoData.getDataId());
            list.add(whjlApi1213);
        }
        page.setEntities(list);
    }
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1213PR#listItem
     *
     * @return
     */
    @DataProvider
    public List<WhjlQDItem> listItem(String id) {
        return null;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlApi1213PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlApi1213 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getBizId());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_12);
        infoData.setInteId(WhjlConstant.API_CODE_1213);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getBizId());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlApi1213PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlApi1213 data) {
        apiInfoDataRep.deleteById(data.getBizId());
        return null;
    }
    /**
     * åˆ é™¤åˆåŒå•†å“æ¸…单
     * whjlApi1213PR#delItem
     *
     * @param data
     * @return
     */
    @Expose
    public String delItem(WhjlQDItem data) {
        return null;
    }
    /**
     * ä¸Šä¼ 
     * whjlApi1213PR#pushData
     *
     * @param items
     * @return
     */
    @Expose
    public String pushData(List<WhjlApi1213> items) {
        String result = "";
        String kqdm = items.get(0).getKqdm();
        ApiConfs apiConf = apiCommonService.getConf(kqdm);
        if (null == apiConf) {
            return "系统没有获取到当前库区配置信息,执行失败";
        }
        //封装参数
        ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1213);
        //获取实现接口
        ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol());
        if (null == apiService) {
            return "系统没有当前推送协议配置,执行失败";
        }
        ApiInfoData infoData;
        ResponseDto responseDto;
        for (WhjlApi1213 data : items) {
            responseDto = apiService.pushData(param, apiConf, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    infoData = new ApiInfoData();
                    infoData.setId(data.getBizId());
                    infoData.setKqdm(data.getKqdm());
                    infoData.setInteType(WhjlConstant.API_CATEGORY_12);
                    infoData.setInteId(WhjlConstant.API_CODE_1213);
                    infoData.setUpdateTime(new Date());
                    infoData.setDataId(data.getBizId());
                    data.setCzbz(Constant.CZBZ_U);
                    infoData.setCzbz(Constant.CZBZ_U);
                    infoData.setData(JSON.toJSONString(data));
                    apiInfoDataRep.save(infoData);
                }
            }
            result += responseDto.toString();
        }
        return result;
    }
}
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1214PR.java
@@ -5,6 +5,7 @@
import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.DataResolver;
import com.bstek.dorado.annotation.Expose;
import com.bstek.dorado.data.provider.Page;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.dto.ResponseDto;
@@ -13,18 +14,29 @@
import com.fzzy.api.service.ApiCommonService;
import com.fzzy.api.service.ApiPushManager;
import com.fzzy.api.service.ApiRemoteService;
import com.fzzy.api.utils.ContextUtil;
import com.fzzy.api.view.repository.ApiInfoDataRep;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1214;
import com.fzzy.otherview.whhpjl.dto.WhjlQDItem;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Component;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
 * åˆåŒä¿¡æ¯
 * è´¨æ£€æœºæž„
 *
 * @Author:YAN
 */
@@ -44,14 +56,45 @@
     * @return
     */
    @DataProvider
    public List<WhjlApi1214> listData() {
        List<ApiInfoData> result = apiInfoDataRep.getDataByInteId(WhjlConstant.API_CODE_1214);
        if (null == result || result.isEmpty()) {
            return null;
    public void listData(Page<WhjlApi1214> page, ApiParam param) {
        Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, "updateTime");
        Specification specification = new Specification<ApiInfoData>() {
            private static final long serialVersionUID = 1L;
            @Override
            public Predicate toPredicate(Root<ApiInfoData> root, CriteriaQuery<?> criteriaQuery, CriteriaBuilder criteriaBuilder) {
                List<Predicate> predicates = new ArrayList<>(); //所有的断言
                Predicate predicate = criteriaBuilder.equal(root.get("inteId"), WhjlConstant.API_CODE_1214);
                predicates.add(predicate);
                if (null != param) {
                    if (StringUtils.isNotBlank(param.getKqdm())) {
                        Predicate predicate1 = criteriaBuilder.equal(root.get("kqdm"), param.getKqdm());
                        predicates.add(predicate1);
        }
                    if (StringUtils.isNotBlank(param.getCzbz())) {
                        Predicate predicate2 = criteriaBuilder.equal(root.get("czbz"), param.getCzbz());
                        predicates.add(predicate2);
                    }
                    if (null != param.getStart()) {
                        Predicate predicate3 = criteriaBuilder.greaterThan(root.get("updateTime"), ContextUtil.getCurZero(param.getStart()));
                        predicates.add(predicate3);
                    }
                    if (null != param.getEnd()) {
                        Predicate predicate4 = criteriaBuilder.lessThan(root.get("updateTime"), ContextUtil.getNextZero(param.getEnd()));
                        predicates.add(predicate4);
                    }
                }
                return criteriaBuilder.and(predicates.toArray(new Predicate[0]));
            }
        };
        org.springframework.data.domain.Page<ApiInfoData> japPage = apiInfoDataRep.findAll(specification, pageable);
        page.setEntityCount((int) japPage.getTotalElements());
        List<WhjlApi1214> list = new ArrayList<>();
        WhjlApi1214 whjlApi1214;
        for (ApiInfoData infoData : result) {
        for (ApiInfoData infoData : japPage.getContent()) {
            whjlApi1214 = JSONObject.parseObject(infoData.getData(), WhjlApi1214.class);
            whjlApi1214.setKqdm(infoData.getKqdm());
            whjlApi1214.setCzbz(infoData.getCzbz());
@@ -59,9 +102,20 @@
            whjlApi1214.setBizId(infoData.getDataId());
            list.add(whjlApi1214);
        }
        return list;
        page.setEntities(list);
    }
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1214PR#listItem
     *
     * @return
     */
    @DataProvider
    public List<WhjlQDItem> listItem(String id) {
        return null;
    }
    /**
     * æ›´æ–°æˆ–修改
@@ -101,6 +155,18 @@
    }
    /**
     * åˆ é™¤åˆåŒå•†å“æ¸…单
     * whjlApi1214PR#delItem
     *
     * @param data
     * @return
     */
    @Expose
    public String delItem(WhjlQDItem data) {
        return null;
    }
    /**
     * ä¸Šä¼ 
     * whjlApi1214PR#pushData
     *
src/main/java/com/fzzy/otherview/whhpjl/pr/WhjlApi1215PR.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,223 @@
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.bstek.dorado.data.provider.Page;
import com.fzzy.api.Constant;
import com.fzzy.api.data.ApiParam;
import com.fzzy.api.dto.ResponseDto;
import com.fzzy.api.entity.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.ContextUtil;
import com.fzzy.api.view.repository.ApiInfoDataRep;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1215;
import com.fzzy.otherview.whhpjl.dto.WhjlQDItem;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Component;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
 * æ ·å“ç™»è®°ä¿¡æ¯
 *
 * @Author:YAN
 */
@Component
public class WhjlApi1215PR {
    @Autowired
    private ApiCommonService apiCommonService;
    @Autowired
    private ApiPushManager apiPushManager;
    @Autowired
    private ApiInfoDataRep apiInfoDataRep;
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1215PR#listData
     *
     * @return
     */
    @DataProvider
    public void listData(Page<WhjlApi1215> page, ApiParam param) {
        Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.DESC, "updateTime");
        Specification specification = new Specification<ApiInfoData>() {
            private static final long serialVersionUID = 1L;
            @Override
            public Predicate toPredicate(Root<ApiInfoData> root, CriteriaQuery<?> criteriaQuery, CriteriaBuilder criteriaBuilder) {
                List<Predicate> predicates = new ArrayList<>(); //所有的断言
                Predicate predicate = criteriaBuilder.equal(root.get("inteId"), WhjlConstant.API_CODE_1215);
                predicates.add(predicate);
                if (null != param) {
                    if (StringUtils.isNotBlank(param.getKqdm())) {
                        Predicate predicate1 = criteriaBuilder.equal(root.get("kqdm"), param.getKqdm());
                        predicates.add(predicate1);
                    }
                    if (StringUtils.isNotBlank(param.getCzbz())) {
                        Predicate predicate2 = criteriaBuilder.equal(root.get("czbz"), param.getCzbz());
                        predicates.add(predicate2);
                    }
                    if (null != param.getStart()) {
                        Predicate predicate3 = criteriaBuilder.greaterThan(root.get("updateTime"), ContextUtil.getCurZero(param.getStart()));
                        predicates.add(predicate3);
                    }
                    if (null != param.getEnd()) {
                        Predicate predicate4 = criteriaBuilder.lessThan(root.get("updateTime"), ContextUtil.getNextZero(param.getEnd()));
                        predicates.add(predicate4);
                    }
                }
                return criteriaBuilder.and(predicates.toArray(new Predicate[0]));
            }
        };
        org.springframework.data.domain.Page<ApiInfoData> japPage = apiInfoDataRep.findAll(specification, pageable);
        page.setEntityCount((int) japPage.getTotalElements());
        List<WhjlApi1215> list = new ArrayList<>();
        WhjlApi1215 whjlApi1215;
        for (ApiInfoData infoData : japPage.getContent()) {
            whjlApi1215 = JSONObject.parseObject(infoData.getData(), WhjlApi1215.class);
            whjlApi1215.setKqdm(infoData.getKqdm());
            whjlApi1215.setCzbz(infoData.getCzbz());
            whjlApi1215.setUpdateTime(infoData.getUpdateTime());
            whjlApi1215.setBizId(infoData.getDataId());
            list.add(whjlApi1215);
        }
        page.setEntities(list);
    }
    /**
     * èŽ·å–åˆ—è¡¨ä¿¡æ¯
     * whjlApi1215PR#listItem
     *
     * @return
     */
    @DataProvider
    public List<WhjlQDItem> listItem(String id) {
        return null;
    }
    /**
     * æ›´æ–°æˆ–修改
     * whjlApi1215PR#saveData
     *
     * @param data
     * @return
     */
    @DataResolver
    public void saveData(WhjlApi1215 data) {
        ApiInfoData infoData = new ApiInfoData();
        infoData.setId(data.getBizId());
        infoData.setKqdm(data.getKqdm());
        infoData.setInteType(WhjlConstant.API_CATEGORY_12);
        infoData.setInteId(WhjlConstant.API_CODE_1215);
        infoData.setUpdateTime(new Date());
        infoData.setDataId(data.getBizId());
        infoData.setData(JSON.toJSONString(data));
        infoData.setCzbz(data.getCzbz());
        infoData.setRemarks("备注信息");
        apiInfoDataRep.save(infoData);
    }
    /**
     * åˆ é™¤
     * whjlApi1215PR#delData
     *
     * @param data
     * @return
     */
    @Expose
    public String delData(WhjlApi1215 data) {
        apiInfoDataRep.deleteById(data.getBizId());
        return null;
    }
    /**
     * åˆ é™¤åˆåŒå•†å“æ¸…单
     * whjlApi1215PR#delItem
     *
     * @param data
     * @return
     */
    @Expose
    public String delItem(WhjlQDItem data) {
        return null;
    }
    /**
     * ä¸Šä¼ 
     * whjlApi1215PR#pushData
     *
     * @param items
     * @return
     */
    @Expose
    public String pushData(List<WhjlApi1215> items) {
        String result = "";
        String kqdm = items.get(0).getKqdm();
        ApiConfs apiConf = apiCommonService.getConf(kqdm);
        if (null == apiConf) {
            return "系统没有获取到当前库区配置信息,执行失败";
        }
        //封装参数
        ApiParam param = new ApiParam(apiConf, WhjlConstant.API_CATEGORY_12, WhjlConstant.API_CODE_1215);
        //获取实现接口
        ApiRemoteService apiService = apiPushManager.getApiRemoteService(param.getPushProtocol());
        if (null == apiService) {
            return "系统没有当前推送协议配置,执行失败";
        }
        ApiInfoData infoData;
        ResponseDto responseDto;
        for (WhjlApi1215 data : items) {
            responseDto = apiService.pushData(param, apiConf, data);
            if (responseDto.getSuccess() == 0) {
                if (Constant.CZBZ_I.equals(data.getCzbz())) {
                    infoData = new ApiInfoData();
                    infoData.setId(data.getBizId());
                    infoData.setKqdm(data.getKqdm());
                    infoData.setInteType(WhjlConstant.API_CATEGORY_12);
                    infoData.setInteId(WhjlConstant.API_CODE_1215);
                    infoData.setUpdateTime(new Date());
                    infoData.setDataId(data.getBizId());
                    data.setCzbz(Constant.CZBZ_U);
                    infoData.setCzbz(Constant.CZBZ_U);
                    infoData.setData(JSON.toJSONString(data));
                    apiInfoDataRep.save(infoData);
                }
            }
            result += responseDto.toString();
        }
        return result;
    }
}
src/main/java/com/fzzy/push/whhpjl/WhjlPushService12.java
@@ -11,8 +11,8 @@
import com.fzzy.api.view.repository.ApiInfoDataRep;
import com.fzzy.otherview.whhpjl.WhjlConstant;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1204;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1207;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1214;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1206;
import com.fzzy.otherview.whhpjl.dto.WhjlApi1212;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@@ -111,15 +111,15 @@
        }
        param.setInteCategory(WhjlConstant.API_CATEGORY_12);
        param.setInteId(WhjlConstant.API_CODE_1207);
        List<WhjlApi1207> list = new ArrayList<>();
        WhjlApi1207 whjlApi1207;
        List<WhjlApi1206> list = new ArrayList<>();
        WhjlApi1206 whjlApi1206;
        for (ApiInfoData infoData : items) {
            whjlApi1207 = JSONObject.parseObject(infoData.getData(), WhjlApi1207.class);
            whjlApi1207.setKqdm(infoData.getKqdm());
            whjlApi1207.setCzbz(infoData.getCzbz());
            whjlApi1207.setUpdateTime(infoData.getUpdateTime());
            whjlApi1207.setBizId(infoData.getDataId());
            list.add(whjlApi1207);
            whjlApi1206 = JSONObject.parseObject(infoData.getData(), WhjlApi1206.class);
            whjlApi1206.setKqdm(infoData.getKqdm());
            whjlApi1206.setCzbz(infoData.getCzbz());
            whjlApi1206.setUpdateTime(infoData.getUpdateTime());
            whjlApi1206.setBizId(infoData.getDataId());
            list.add(whjlApi1206);
        }
        //推送,数据为集合形式
@@ -149,15 +149,15 @@
        }
        param.setInteCategory(WhjlConstant.API_CATEGORY_12);
        param.setInteId(WhjlConstant.API_CODE_1214);
        List<WhjlApi1214> list = new ArrayList<>();
        WhjlApi1214 whjlApi1214;
        List<WhjlApi1212> list = new ArrayList<>();
        WhjlApi1212 whjlApi1212;
        for (ApiInfoData infoData : items) {
            whjlApi1214 = JSONObject.parseObject(infoData.getData(), WhjlApi1214.class);
            whjlApi1214.setKqdm(infoData.getKqdm());
            whjlApi1214.setCzbz(infoData.getCzbz());
            whjlApi1214.setUpdateTime(infoData.getUpdateTime());
            whjlApi1214.setBizId(infoData.getDataId());
            list.add(whjlApi1214);
            whjlApi1212 = JSONObject.parseObject(infoData.getData(), WhjlApi1212.class);
            whjlApi1212.setKqdm(infoData.getKqdm());
            whjlApi1212.setCzbz(infoData.getCzbz());
            whjlApi1212.setUpdateTime(infoData.getUpdateTime());
            whjlApi1212.setBizId(infoData.getDataId());
            list.add(whjlApi1212);
        }
        //推送,数据为集合形式