jiazx0107@163.com
2023-06-29 55316fe6c610c10086d9625e6d5ce38afac4cde8
出入库流程优化-入库详单优化
已修改4个文件
已添加4个文件
1286 ■■■■ 文件已修改
igds-core/src/main/java/com/ld/igds/io/constant/ProtocolEnum.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-inout/src/main/java/com/ld/igds/m/InoutManageUtil.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-inout/src/main/java/com/ld/igds/m/view/ContractManage.view.xml 865 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-inout/src/main/java/com/ld/igds/m/view/ContractManagePR.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-inout/src/main/java/com/ld/igds/models/InoutContract.java 306 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-protocol-block/src/main/java/com/ld/igds/protocol/openapi/OpenApiInoutService.java 75 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-protocol-block/src/main/java/com/ld/igds/protocol/openapi/data/PlateReqVo.java 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-protocol-block/src/main/java/com/ld/igds/protocol/openapi/package-info.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-core/src/main/java/com/ld/igds/io/constant/ProtocolEnum.java
@@ -28,7 +28,8 @@
    TCP_LT_SAMPLE_V3("TCP_LT_SAMPLE_V3", "扦样机协议"),
    TCP_FZZY_QUANTITY_V35("TCP_FZZY_QUANTITY_V35", "数量检测V35"),
    TCP_BHZH_GRAIN_FM_V1("TCP_BHZH_GRAIN_FM_V1", "邦海智能无线主机版V1"),
    TCP_BHZH_GRAIN_V2("TCP_BHZH_GRAIN_V2", "邦海智能有线版V2");
    TCP_BHZH_GRAIN_V2("TCP_BHZH_GRAIN_V2", "邦海智能有线版V2"),
    FZZY_OPENAPI_HTTP("FZZY_OPENAPI_HTTP", "风正致远API-HTTP协议");
    private String code;
    private String msg;
igds-inout/src/main/java/com/ld/igds/m/InoutManageUtil.java
@@ -53,7 +53,7 @@
    public static final String AUDIT_UNPASS = "UNPASS";
    /**
     * åˆåŒç±»åž‹-轮换合同
     * åˆåŒç±»åž‹-代储合同
     */
    public static final String CONTRACT_TYPE_3 = "3";
    /**
igds-inout/src/main/java/com/ld/igds/m/view/ContractManage.view.xml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,865 @@
<?xml version="1.0" encoding="UTF-8"?>
<ViewConfig>
  <Arguments/>
  <Context/>
  <Model>
    <DataType name="dtParam">
      <PropertyDef name="year">
        <Property></Property>
        <Property name="label">合同年份</Property>
      </PropertyDef>
      <PropertyDef name="deptId">
        <Property></Property>
        <Property name="label">所属分库</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;deptPR#loadParents&quot;).getResult()}</Property>
          <Property name="keyProperty">id</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="name">
        <Property></Property>
        <Property name="label">合同名称</Property>
      </PropertyDef>
      <PropertyDef name="customerId">
        <Property></Property>
        <Property name="label">客户名称</Property>
      </PropertyDef>
      <PropertyDef name="customerName">
        <Property></Property>
        <Property name="label">客户名称</Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtMain">
      <Property name="creationType">com.ld.igds.models.InoutContract</Property>
      <PropertyDef name="id">
        <Property></Property>
        <Property name="label">ID_</Property>
      </PropertyDef>
      <PropertyDef name="companyId">
        <Property></Property>
        <Property name="label">组织编码</Property>
      </PropertyDef>
      <PropertyDef name="deptId">
        <Property></Property>
        <Property name="label">库点</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;deptPR#loadParents&quot;).getResult()}</Property>
          <Property name="keyProperty">id</Property>
          <Property name="valueProperty">name</Property>
        </Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="planId">
        <Property></Property>
        <Property name="label">所属计划</Property>
      </PropertyDef>
      <PropertyDef name="planName">
        <Property></Property>
        <Property name="label">所属计划</Property>
      </PropertyDef>
      <PropertyDef name="type">
        <Property></Property>
        <Property name="label">合同类型</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;contractManagePR#triggerContractType&quot;).getResult()}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="name">
        <Property></Property>
        <Property name="label">合同名称</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="year">
        <Property></Property>
        <Property name="label">年份</Property>
      </PropertyDef>
      <PropertyDef name="customerId">
        <Property></Property>
        <Property name="label">客户编码</Property>
      </PropertyDef>
      <PropertyDef name="customerName">
        <Property></Property>
        <Property name="label">客户名称</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="customerType">
        <Property></Property>
        <Property name="label">客户类型</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;contractManagePR#triggerCustomerType&quot;).getResult()}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="customerBank">
        <Property></Property>
        <Property name="label">客户开户行</Property>
      </PropertyDef>
      <PropertyDef name="customerBankAccount">
        <Property></Property>
        <Property name="label">客户开户行账号</Property>
      </PropertyDef>
      <PropertyDef name="customerSignUser">
        <Property></Property>
        <Property name="label">客户签约人</Property>
      </PropertyDef>
      <PropertyDef name="bank">
        <Property></Property>
        <Property name="label">本方开户行</Property>
      </PropertyDef>
      <PropertyDef name="bankAccount">
        <Property></Property>
        <Property name="label">本方开户行账号</Property>
      </PropertyDef>
      <PropertyDef name="signUser">
        <Property></Property>
        <Property name="label">本方签约人</Property>
      </PropertyDef>
      <PropertyDef name="signAddress">
        <Property></Property>
        <Property name="label">签约地址</Property>
      </PropertyDef>
      <PropertyDef name="price">
        <Property name="dataType">Double</Property>
        <Property name="label">单价</Property>
        <Property name="displayFormat">#,###0.000 å…ƒ/公斤</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="money">
        <Property name="dataType">Double</Property>
        <Property name="label">总金额</Property>
        <Property name="displayFormat">#,###0.00 å…ƒ</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="contactAmount">
        <Property name="dataType">Double</Property>
        <Property name="label">合同数量</Property>
        <Property name="displayFormat">#,##0.00 KG</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="completeNum">
        <Property name="dataType">Double</Property>
        <Property name="label">合同完成数量</Property>
        <Property name="displayFormat">#,##0.00 KG</Property>
      </PropertyDef>
      <PropertyDef name="foodVariety">
        <Property></Property>
        <Property name="label">粮食品种</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;dicTriggerPR#dicTrigger&quot;).getResult(&quot;FOOD_VARIETY_&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="foodType">
        <Property></Property>
        <Property name="label">粮食性质</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;dicTriggerPR#dicTrigger&quot;).getResult(&quot;FOOD_TYPE_&quot;)}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="payType">
        <Property></Property>
        <Property name="label">支付方式</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;dicTriggerPR#dicTrigger&quot;).getResult(&quot;PAY_TYPE&quot;)}</Property>
          <Property name="valueProperty">name</Property>
          <Property name="keyProperty">code</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="createUser">
        <Property></Property>
        <Property name="label">创建人</Property>
      </PropertyDef>
      <PropertyDef name="createTime">
        <Property name="dataType">Date</Property>
        <Property name="label">创建时间</Property>
      </PropertyDef>
      <PropertyDef name="signingTime">
        <Property name="dataType">Date</Property>
        <Property name="label">签订时间</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="beginTime">
        <Property name="dataType">Date</Property>
        <Property name="label">有效开始时间</Property>
      </PropertyDef>
      <PropertyDef name="endTime">
        <Property name="dataType">Date</Property>
        <Property name="label">有效截止时间</Property>
      </PropertyDef>
      <PropertyDef name="remark">
        <Property></Property>
        <Property name="label">备注说明</Property>
      </PropertyDef>
      <PropertyDef name="fddbr">
        <Property/>
        <Property name="label">法定代表人</Property>
      </PropertyDef>
      <PropertyDef name="txdz">
        <Property/>
        <Property name="label">通讯地址</Property>
      </PropertyDef>
      <PropertyDef name="yzbm">
        <Property/>
        <Property name="label">邮政编码</Property>
      </PropertyDef>
      <PropertyDef name="lxrxm">
        <Property/>
        <Property name="label">联系人姓名</Property>
      </PropertyDef>
      <PropertyDef name="lxrdh">
        <Property/>
        <Property name="label">联系电话</Property>
      </PropertyDef>
      <PropertyDef name="sfzh">
        <Property/>
        <Property name="label">身份证号</Property>
      </PropertyDef>
      <PropertyDef name="dzyx">
        <Property/>
        <Property name="label">电子信箱</Property>
      </PropertyDef>
      <PropertyDef name="relEndTime">
        <Property name="dataType">Date</Property>
        <Property name="label">实际完成时间</Property>
      </PropertyDef>
      <PropertyDef name="lybzj">
        <Property name="dataType">Double</Property>
        <Property name="label">履约保证金</Property>
      </PropertyDef>
      <PropertyDef name="lyl">
        <Property name="dataType">Double</Property>
        <Property name="label">履约率</Property>
      </PropertyDef>
      <PropertyDef name="jsjg">
        <Property name="dataType">Double</Property>
        <Property name="label">结算价格,元/吨</Property>
      </PropertyDef>
      <PropertyDef name="jszje">
        <Property name="dataType">Double</Property>
        <Property name="label">结算总金额</Property>
      </PropertyDef>
      <PropertyDef name="jsyhtyzx">
        <Property/>
        <Property name="label">结算与合同一致性</Property>
      </PropertyDef>
      <PropertyDef name="jsyhtbyzyy">
        <Property/>
        <Property name="label">不一致原因</Property>
      </PropertyDef>
      <PropertyDef name="auditUser">
        <Property/>
        <Property name="label">审批人</Property>
      </PropertyDef>
      <PropertyDef name="auditDate">
        <Property/>
        <Property name="label">审批时间</Property>
      </PropertyDef>
      <PropertyDef name="auditStatus">
        <Property/>
        <Property name="label">审批状态</Property>
      </PropertyDef>
      <PropertyDef name="wcrq">
        <Property name="dataType">Date</Property>
        <Property name="label">完成时间</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">Date</Property>
        <Property name="label">更新时间</Property>
      </PropertyDef>
      <PropertyDef name="hqzz">
        <Property/>
        <Property name="label">货权组织</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;deptPR#loadParents&quot;).getResult()}</Property>
          <Property name="keyProperty">id</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
    </DataType>
    <DataType name="dtPlan">
      <Property name="creationType">com.ld.igds.models.InoutPlan</Property>
      <PropertyDef name="id">
        <Property></Property>
        <Property name="label">计划编码</Property>
      </PropertyDef>
      <PropertyDef name="referenceNumber">
        <Property name="label">计划文号</Property>
      </PropertyDef>
      <PropertyDef name="companyId">
        <Property></Property>
        <Property name="label">组织编码</Property>
      </PropertyDef>
      <PropertyDef name="deptId">
        <Property></Property>
        <Property name="label">所属分库</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;deptPR#loadParents&quot;).getResult()}</Property>
          <Property name="keyProperty">id</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="type">
        <Property></Property>
        <Property name="label">计划类型</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;planManagePR#triggerPlanType&quot;).getResult()}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="name">
        <Property></Property>
        <Property name="label">计划名称</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="year">
        <Property></Property>
        <Property name="label">年份</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="beginTime">
        <Property name="dataType">Date</Property>
        <Property name="label">开始时间</Property>
      </PropertyDef>
      <PropertyDef name="endTime">
        <Property name="dataType">Date</Property>
        <Property name="label">截止时间</Property>
      </PropertyDef>
      <PropertyDef name="createUser">
        <Property></Property>
        <Property name="label">创建人</Property>
      </PropertyDef>
      <PropertyDef name="createTime">
        <Property name="dataType">Date</Property>
        <Property name="label">创建时间</Property>
      </PropertyDef>
      <PropertyDef name="remark">
        <Property></Property>
        <Property name="label">备注说明</Property>
      </PropertyDef>
    </DataType>
  </Model>
  <View layout="regionPadding:10">
    <ClientEvent name="onReady">var deptId = window.parent.deptId;//父页面中的分库编码&#xD;
&#xD;
addMain = function(){&#xD;
    view.get(&quot;#dsMain&quot;).insert({});&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
};&#xD;
view.get(&quot;#dsParam&quot;).insert({});</ClientEvent>
    <ClientEvent name="onCreate">//自动计算&#xD;
countMoney = function(){&#xD;
    var curData = view.get(&quot;#dsMain.data:#&quot;);&#xD;
    &#xD;
    var price = curData.get(&quot;price&quot;);&#xD;
    &#xD;
    var contactAmount = curData.get(&quot;contactAmount&quot;);&#xD;
    &#xD;
    if(price &amp;&amp; contactAmount){&#xD;
        &#xD;
        //计算倒入数量&#xD;
        var money = price*contactAmount;&#xD;
        curData.set(&quot;money&quot;,money); &#xD;
    }&#xD;
};</ClientEvent>
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dsMain">
      <Property name="dataType">[dtMain]</Property>
      <Property name="dataProvider">contractManagePR#pageContract</Property>
      <Property name="pageSize">15</Property>
      <Property name="parameter">
        <Entity>
          <Property name="type">1</Property>
        </Entity>
      </Property>
    </DataSet>
    <DataSet id="dsParam">
      <Property name="dataType">dtParam</Property>
    </DataSet>
    <Container layoutConstraint="top">
      <Property name="height">55</Property>
      <Property name="contentOverflow">hidden</Property>
      <Property name="exClassName">bg-color</Property>
      <Label layoutConstraint="left padding:10">
        <Property name="text">菜单栏:</Property>
      </Label>
      <Button layoutConstraint="left padding:10">
        <ClientEvent name="onClick">addMain();</ClientEvent>
        <Property name="caption">新增</Property>
        <Property name="iconClass">fa fa-plus</Property>
        <Property name="exClassName">btn-default</Property>
      </Button>
      <Button layoutConstraint="left padding:10">
        <ClientEvent name="onClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
if(data){&#xD;
    view.get(&quot;#dialogMain&quot;).show();&#xD;
}</ClientEvent>
        <Property name="caption">修改</Property>
        <Property name="iconClass">fa fa-pencil</Property>
        <Property name="exClassName">btn-warm</Property>
      </Button>
      <Button layoutConstraint="left padding:10">
        <ClientEvent name="onClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
if(!data){&#xD;
    return;&#xD;
}&#xD;
view.get(&quot;#ajaxDel&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="iconClass">fa fa-times</Property>
        <Property name="exClassName">btn-warn</Property>
      </Button>
    </Container>
    <Container layout="regionPadding:10" layoutConstraint="center">
      <Property name="exClassName">bg-color</Property>
      <AutoForm>
        <Property name="cols">*,*,*,*</Property>
        <Property name="dataSet">dsParam</Property>
        <Property name="labelAlign">right</Property>
        <Property name="labelSeparator">:</Property>
        <Property name="labelWidth">100</Property>
        <AutoFormElement>
          <Property name="name">year</Property>
          <Property name="property">year</Property>
          <Property name="trigger">defaultYearDropDown</Property>
          <Editor/>
        </AutoFormElement>
        <AutoFormElement>
          <Property name="name">customerName</Property>
          <Property name="property">customerName</Property>
          <Editor/>
        </AutoFormElement>
        <AutoFormElement>
          <Property name="name">name</Property>
          <Property name="property">name</Property>
          <Editor/>
        </AutoFormElement>
        <Container layout="regionPadding:15">
          <Button layoutConstraint="left">
            <ClientEvent name="onClick">var param = view.get(&quot;#dsParam.data&quot;);&#xD;
view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,param.toJSON()).flushAsync();</ClientEvent>
            <Property name="caption">查询</Property>
            <Property name="exClassName">btn-default</Property>
            <Property name="iconClass">fa fa-refresh</Property>
          </Button>
          <Button>
            <ClientEvent name="onClick">view.get(&quot;#dsParam&quot;).setData({type:'1'});&#xD;
view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,{type:'1'}).flushAsync();</ClientEvent>
            <Property name="exClassName">btn-warn</Property>
            <Property name="iconClass">fa fa-refresh</Property>
            <Property name="caption">重置</Property>
          </Button>
        </Container>
      </AutoForm>
      <DataGrid layoutConstraint="center padding:5px">
        <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="readOnly">true</Property>
        <RowNumColumn/>
        <DataColumn name="name">
          <Property name="property">name</Property>
        </DataColumn>
        <DataColumn name="type">
          <Property name="property">type</Property>
        </DataColumn>
        <DataColumn name="year">
          <Property name="property">year</Property>
        </DataColumn>
        <DataColumn name="customerName">
          <Property name="property">customerName</Property>
        </DataColumn>
        <DataColumn name="money">
          <Property name="property">money</Property>
        </DataColumn>
        <DataColumn name="contactAmount">
          <Property name="property">contactAmount</Property>
        </DataColumn>
        <DataColumn>
          <Property name="property">foodVariety</Property>
          <Property name="name">foodVariety</Property>
        </DataColumn>
        <DataColumn name="createUser">
          <Property name="property">createUser</Property>
        </DataColumn>
        <DataColumn name="createTime">
          <Property name="property">createTime</Property>
        </DataColumn>
      </DataGrid>
    </Container>
    <Container layout="regionPadding:10" layoutConstraint="bottom">
      <Property name="exClassName">bg-color</Property>
      <DataPilot layoutConstraint="right">
        <Property name="itemCodes">pageSize,pages</Property>
        <Property name="dataSet">dsMain</Property>
      </DataPilot>
    </Container>
    <Dialog id="dialogMain" layout="padding:5;regionPadding:10">
      <Property name="width">85%</Property>
      <Property name="caption">合同信息</Property>
      <Property name="iconClass">fa fa-flag-o</Property>
      <Property name="closeable">false</Property>
      <Buttons>
        <Button>
          <ClientEvent name="onClick">var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
if(data.validate() != 'ok'){&#xD;
    $notify(&quot;数据校验失败!!&quot;);&#xD;
    return;&#xD;
}&#xD;
view.get(&quot;#uaAction&quot;).set(&quot;parameter&quot;,data).execute();&#xD;
self.get(&quot;parent&quot;).hide();</ClientEvent>
          <Property name="caption">确认</Property>
          <Property name="iconClass">fa fa-check-circle</Property>
          <Property name="width">90</Property>
        </Button>
        <Button>
          <ClientEvent name="onClick">view.get(&quot;#dsMain.data:#&quot;).cancel();&#xD;
self.get(&quot;parent&quot;).hide();</ClientEvent>
          <Property name="caption">取消</Property>
          <Property name="iconClass">fa fa-times-circle</Property>
          <Property name="width">90</Property>
        </Button>
      </Buttons>
      <Children>
        <Container>
          <AutoForm>
            <Property name="cols">*</Property>
            <Property name="labelAlign">right</Property>
            <Property name="showHint">false</Property>
            <Label>
              <Property name="style">
                <Property name="font">bold 24px Georgia, serif;</Property>
                <Property name="text-align">center</Property>
              </Property>
              <Property name="text">合同信息</Property>
            </Label>
          </AutoForm>
          <Container>
            <FieldSet layout="regionPadding:5">
              <Property name="caption">基本信息</Property>
              <Buttons/>
              <Children>
                <AutoForm>
                  <Property name="dataSet">dsMain</Property>
                  <Property name="cols">*,*,*</Property>
                  <Property name="labelWidth">150</Property>
                  <Property name="labelAlign">right</Property>
                  <Property name="labelSeparator">:</Property>
                  <AutoFormElement>
                    <Property name="name">type</Property>
                    <Property name="property">type</Property>
                    <Property name="editorType">RadioGroup</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">name</Property>
                    <Property name="property">name</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">hqzz</Property>
                    <Property name="property">hqzz</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">year</Property>
                    <Property name="property">year</Property>
                    <Property name="trigger">defaultYearDropDown</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">foodVariety</Property>
                    <Property name="property">foodVariety</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <ClientEvent name="onBlur">countMoney();</ClientEvent>
                    <Property name="name">price</Property>
                    <Property name="property">price</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <ClientEvent name="onBlur">countMoney();</ClientEvent>
                    <Property name="name">contactAmount</Property>
                    <Property name="property">contactAmount</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">foodType</Property>
                    <Property name="property">foodType</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">money</Property>
                    <Property name="property">money</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">completeNum</Property>
                    <Property name="property">completeNum</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">payType</Property>
                    <Property name="property">payType</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">beginTime</Property>
                    <Property name="property">beginTime</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">endTime</Property>
                    <Property name="property">endTime</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">deptId</Property>
                    <Property name="property">deptId</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">planName</Property>
                    <Property name="property">planName</Property>
                    <Property name="trigger">ddPlan</Property>
                    <Editor/>
                  </AutoFormElement>
                </AutoForm>
              </Children>
            </FieldSet>
            <FieldSet layout="regionPadding:5">
              <Property name="caption">签约信息</Property>
              <Buttons/>
              <Children>
                <AutoForm>
                  <Property name="dataSet">dsMain</Property>
                  <Property name="cols">*,*,*</Property>
                  <Property name="labelWidth">150</Property>
                  <Property name="labelAlign">right</Property>
                  <Property name="labelSeparator">:</Property>
                  <AutoFormElement>
                    <Property name="name">customerName</Property>
                    <Property name="property">customerName</Property>
                    <Property name="trigger">ddCustomer</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">customerType</Property>
                    <Property name="property">customerType</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">signingTime</Property>
                    <Property name="property">signingTime</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">customerBank</Property>
                    <Property name="property">customerBank</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">customerBankAccount</Property>
                    <Property name="property">customerBankAccount</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">customerSignUser</Property>
                    <Property name="property">customerSignUser</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">bank</Property>
                    <Property name="property">bank</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">bankAccount</Property>
                    <Property name="property">bankAccount</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">signUser</Property>
                    <Property name="property">signUser</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement layoutConstraint="colSpan:3">
                    <Property name="name">signAddress</Property>
                    <Property name="property">signAddress</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement layoutConstraint="colSpan:3">
                    <Property name="name">remark</Property>
                    <Property name="property">remark</Property>
                    <Editor/>
                  </AutoFormElement>
                </AutoForm>
              </Children>
            </FieldSet>
          </Container>
        </Container>
      </Children>
      <Tools/>
    </Dialog>
    <UpdateAction id="uaAction">
      <Property name="dataResolver">contractManagePR#saveContract</Property>
      <UpdateItem>
        <Property name="dataSet">dsMain</Property>
        <Property name="dataPath">[#current]</Property>
      </UpdateItem>
    </UpdateAction>
    <AjaxAction id="ajaxDel">
      <Property name="confirmMessage">确定要删除吗?</Property>
      <Property name="service">contractManagePR#delContract</Property>
    </AjaxAction>
    <CustomDropDown id="ddCustomer">
      <Property name="minHeight">400</Property>
      <Property name="assignmentMap">customerId=id,customerName=name</Property>
      <Property name="minWidth">500</Property>
      <Property name="autoOpen">true</Property>
      <Container layout="regionPadding:5">
        <DataSet id="dsCustomer">
          <Property name="dataProvider">inoutCustomerPR#queryListByKey</Property>
          <Property name="dataType">[dtInoutCustomer]</Property>
          <Property name="parameter"></Property>
        </DataSet>
        <Container layout="hbox regionPadding:5">
          <TextEditor id="key">
            <Property name="blankText"> -- ç¼–码或者名称 --</Property>
            <Property name="width">200</Property>
          </TextEditor>
          <Button>
            <ClientEvent name="onClick">var key = view.get(&quot;#key.value&quot;);&#xD;
var type = &quot;${request.getParameter('type')}&quot;;&#xD;
view.get(&quot;#dsCustomer&quot;).set(&quot;parameter&quot;,{key:key,type:type}).flushAsync();</ClientEvent>
            <Property name="caption">查询</Property>
            <Property name="iconClass">fa fa-search</Property>
          </Button>
          <Button>
            <ClientEvent name="onClick">var data = view.get(&quot;#dsCustomer.data:#&quot;);&#xD;
if(data){&#xD;
    view.get(&quot;#ddCustomer&quot;).close(data.toJSON());&#xD;
}</ClientEvent>
            <Property name="iconClass">fa fa-check</Property>
            <Property name="caption">确定</Property>
          </Button>
        </Container>
        <DataGrid>
          <ClientEvent name="onDataRowDoubleClick">var data = view.get(&quot;#dsCustomer.data:#&quot;);&#xD;
if(data){&#xD;
    view.get(&quot;#ddCustomer&quot;).close(data.toJSON());&#xD;
}</ClientEvent>
          <Property name="dataSet">dsCustomer</Property>
          <Property name="readOnly">true</Property>
          <DataColumn name="id">
            <Property name="property">id</Property>
            <Property name="width">100</Property>
            <Property name="align">center</Property>
          </DataColumn>
          <DataColumn name="name">
            <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = &quot;bold&quot;;&#xD;
arg.processDefault = true;</ClientEvent>
            <Property name="property">name</Property>
            <Property name="align">center</Property>
          </DataColumn>
        </DataGrid>
      </Container>
    </CustomDropDown>
    <CustomDropDown id="ddPlan">
      <Property name="minHeight">317</Property>
      <Property name="assignmentMap">planId=id,planName=name</Property>
      <Property name="minWidth">550</Property>
      <Property name="autoOpen">false</Property>
      <Container layout="regionPadding:5">
        <DataSet id="dsPlan">
          <Property name="dataProvider">planManagePR#pagePlan</Property>
          <Property name="dataType">[dtPlan]</Property>
          <Property name="parameter"></Property>
          <Property name="pageSize">50</Property>
        </DataSet>
        <Container layout="hbox regionPadding:5">
          <TextEditor id="key2">
            <Property name="blankText"> -- è®¡åˆ’名称或者计划文号 --</Property>
            <Property name="width">200</Property>
          </TextEditor>
          <Button>
            <ClientEvent name="onClick">var key = view.get(&quot;#key2.value&quot;);&#xD;
view.get(&quot;#dsPlan&quot;).set(&quot;parameter&quot;,{key:key}).flushAsync();</ClientEvent>
            <Property name="caption">查询</Property>
            <Property name="iconClass">fa fa-search</Property>
          </Button>
          <Button>
            <ClientEvent name="onClick">var data = view.get(&quot;#dsPlan.data:#&quot;);&#xD;
if(data){&#xD;
    view.get(&quot;#ddPlan&quot;).close(data.toJSON());&#xD;
}</ClientEvent>
            <Property name="iconClass">fa fa-check</Property>
            <Property name="caption">确定</Property>
          </Button>
        </Container>
        <DataGrid>
          <ClientEvent name="onDataRowDoubleClick">var data = view.get(&quot;#dsPlan.data:#&quot;);&#xD;
if(data){&#xD;
    view.get(&quot;#ddPlan&quot;).close(data.toJSON());&#xD;
}</ClientEvent>
          <Property name="dataSet">dsPlan</Property>
          <Property name="readOnly">true</Property>
          <DataColumn>
            <Property name="property">id</Property>
            <Property name="width">100</Property>
            <Property name="align">center</Property>
            <Property name="name">id</Property>
            <Property name="visible">false</Property>
          </DataColumn>
          <DataColumn name="name">
            <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = &quot;bold&quot;;&#xD;
arg.processDefault = true;</ClientEvent>
            <Property name="property">name</Property>
            <Property name="align">center</Property>
          </DataColumn>
          <DataColumn>
            <Property name="property">referenceNumber</Property>
            <Property name="width">200</Property>
            <Property name="align">center</Property>
            <Property name="name">referenceNumber</Property>
          </DataColumn>
          <DataColumn>
            <Property name="property">year</Property>
            <Property name="width">80</Property>
            <Property name="align">center</Property>
            <Property name="name">year</Property>
          </DataColumn>
          <DataColumn>
            <Property name="property">type</Property>
            <Property name="width">80</Property>
            <Property name="align">center</Property>
            <Property name="name">type</Property>
          </DataColumn>
        </DataGrid>
        <DataPilot layoutConstraint="bottom">
          <Property name="dataSet">dsPlan</Property>
        </DataPilot>
      </Container>
    </CustomDropDown>
  </View>
</ViewConfig>
igds-inout/src/main/java/com/ld/igds/m/view/ContractManagePR.java
@@ -88,10 +88,9 @@
    @DataProvider
    public List<DicTrigger> triggerContractType() {
        List<DicTrigger> list = new ArrayList<DicTrigger>();
        list.add(new DicTrigger(InoutManageUtil.CONTRACT_TYPE_1, "销售合同"));
        list.add(new DicTrigger(InoutManageUtil.CONTRACT_TYPE_2, "采购合同"));
        list.add(new DicTrigger(InoutManageUtil.CONTRACT_TYPE_3, "轮换合同"));
        list.add(new DicTrigger(InoutManageUtil.CONTRACT_TYPE_3, "代储合同"));
        return list;
    }
igds-inout/src/main/java/com/ld/igds/models/InoutContract.java
@@ -13,210 +13,214 @@
/**
 * @Desc:
 * @author: Andy
 * @update-time: 2023/5/22  æ ¹æ®æ–°å›½æ ‡è°ƒæ•´åç§°ï¼Œä¼˜åŒ–字段
 * @update-time: 2023/5/22 æ ¹æ®æ–°å›½æ ‡è°ƒæ•´åç§°ï¼Œä¼˜åŒ–字段
 */
@Data
@Entity
@Table(name = "D_INOUT_CONTRACT")
public class InoutContract implements Serializable {
    private static final long serialVersionUID = 1L;
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "ID_", length = 40)
    @PropertyDef(label = "ID_")
    private String id;
    @Id
    @Column(name = "ID_", length = 40)
    @PropertyDef(label = "ID_")
    private String id;
    @Column(name = "COMPANY_ID_", length = 10)
    @PropertyDef(label = "组织编码")
    private String companyId;
    @Column(name = "COMPANY_ID_", length = 10)
    @PropertyDef(label = "组织编码")
    private String companyId;
    @Column(name = "DEPT_ID_", length = 40)
    @PropertyDef(label = "库区编码")
    private String deptId;
    @Column(name = "DEPT_ID_", length = 40)
    @PropertyDef(label = "库区编码")
    private String deptId;
    @Column(name = "NAME_", length = 50)
    @PropertyDef(label = "合同名称")
    private String name;
    @Column(name = "NAME_", length = 50)
    @PropertyDef(label = "合同名称")
    private String name;
//    @Column(name = "PLAN_ID_", length = 40)
//    @PropertyDef(label = "计划编码")
//    private String planId;
//
//    @Column(name = "PLAN_NAME_", length = 50)
//    @PropertyDef(label = "计划名称")
//    private String planName;
    @Column(name = "PLAN_ID_", length = 40)
    @PropertyDef(label = "计划编码")
    private String planId;
    @Column(name = "TYPE_", length = 10)
    @PropertyDef(label = "业务类别", description = "1:销售合同 2:采购合同 3:代储合同")
    private String type;
    @Column(name = "PLAN_NAME_", length = 50)
    @PropertyDef(label = "计划名称")
    private String planName;
    @Column(name = "CUSTOMER_TYPE_", length = 10)
    @PropertyDef(label = "客户类型", description = "1:企业 2:个人")
    private String customerType;
    @Column(name = "TYPE_", length = 10)
    @PropertyDef(label = "业务类别", description = "1:销售合同 2:采购合同 3:代储合同")
    private String type;
    @Column(name = "YEAR_", length = 10)
    @PropertyDef(label = "年份")
    private String year;
    @Column(name = "CUSTOMER_TYPE_", length = 10)
    @PropertyDef(label = "客户类型", description = "1:企业 2:个人")
    private String customerType;
    @Column(name = "CUSTOMER_ID_", length = 20)
    @PropertyDef(label = "社会信用码", description = "如果是企业=客户统一社会信用代码")
    private String customerId;
    @Column(name = "YEAR_", length = 10)
    @PropertyDef(label = "年份")
    private String year;
    @Column(name = "CUSTOMER_NAME_", length = 50)
    @PropertyDef(label = "客户名称")
    private String customerName;
    @Column(name = "CUSTOMER_ID_", length = 20)
    @PropertyDef(label = "社会信用码", description = "如果是企业=客户统一社会信用代码")
    private String customerId;
    @Column(name = "fddbr", length = 50)
    @PropertyDef(label = "法定代表人")
    private String fddbr;
    @Column(name = "CUSTOMER_NAME_", length = 50)
    @PropertyDef(label = "客户名称")
    private String customerName;
    @Column(name = "txdz", length = 200)
    @PropertyDef(label = "通讯地址")
    private String txdz;
    @Column(name = "fddbr", length = 50)
    @PropertyDef(label = "法定代表人")
    private String fddbr;
    @Column(name = "yzbm", length = 6)
    @PropertyDef(label = "邮政编码")
    private String yzbm;
    @Column(name = "txdz", length = 200)
    @PropertyDef(label = "通讯地址")
    private String txdz;
    @PropertyDef(label = "联系人姓名")
    @Column(name = "lxrxm", length = 50)
    private String lxrxm;
    @Column(name = "yzbm", length = 6)
    @PropertyDef(label = "邮政编码")
    private String yzbm;
    @PropertyDef(label = "联系电话")
    @Column(name = "lxrdh", length = 20)
    private String lxrdh;
    @PropertyDef(label = "联系人姓名")
    @Column(name = "lxrxm", length = 50)
    private String lxrxm;
    @PropertyDef(label = "身份证号")
    @Column(name = "sfzh", length = 20)
    private String sfzh;
    @PropertyDef(label = "联系电话")
    @Column(name = "lxrdh", length = 20)
    private String lxrdh;
    @PropertyDef(label = "电子信箱")
    @Column(name = "dzyx", length = 50)
    private String dzyx;
    @PropertyDef(label = "身份证号")
    @Column(name = "sfzh", length = 20)
    private String sfzh;
    @Column(name = "SIGNING_TIME_")
    @PropertyDef(label = "签订时间", description = "格式:yyyy-MM-dd")
    private Date signingTime;
    @PropertyDef(label = "电子信箱")
    @Column(name = "dzyx", length = 50)
    private String dzyx;
    @Column(name = "SIGN_ADDRESS_", length = 100)
    @PropertyDef(label = "签约地点")
    private String signAddress;
    @Column(name = "SIGNING_TIME_")
    @PropertyDef(label = "签订时间", description = "格式:yyyy-MM-dd")
    private Date signingTime;
    @Column(name = "BEGIN_TIME_")
    @PropertyDef(label = "约定开始时间")
    private Date beginTime;
    @Column(name = "SIGN_ADDRESS_", length = 100)
    @PropertyDef(label = "签约地点")
    private String signAddress;
    @Column(name = "END_TIME_")
    @PropertyDef(label = "约定完成时间")
    private Date endTime;
    @Column(name = "BEGIN_TIME_")
    @PropertyDef(label = "约定开始时间")
    private Date beginTime;
    @Column(name = "REL_END_TIME_")
    @PropertyDef(label = "实际完成时间")
    private Date relEndTime;
    @Column(name = "END_TIME_")
    @PropertyDef(label = "约定完成时间")
    private Date endTime;
    @Column(name = "FOOD_VARIETY_", length = 20)
    @PropertyDef(label = "粮食品种")
    private String foodVariety;
    @Column(name = "REL_END_TIME_")
    @PropertyDef(label = "实际完成时间")
    private Date relEndTime;
    @Column(name = "FOOD_TYPE_", length = 20)
    @PropertyDef(label = "粮食性质")
    private String foodType;
    @Column(name = "FOOD_VARIETY_", length = 20)
    @PropertyDef(label = "粮食品种")
    private String foodVariety;
    @Column(name = "PRICE_")
    @PropertyDef(label = "合同单价,元/吨")
    private Double price;
    @Column(name = "FOOD_TYPE_", length = 20)
    @PropertyDef(label = "粮食性质")
    private String foodType;
    @Column(name = "MONEY_")
    @PropertyDef(label = "合同总金额", description = "单位:元")
    private Double money;
    @Column(name = "PRICE_")
    @PropertyDef(label = "合同单价,元/吨")
    private Double price;
    @Column(name = "CONTRACT_AMOUNT_")
    @PropertyDef(label = "合同数量", description = "单位:公斤")
    private Double contactAmount;
    @Column(name = "MONEY_")
    @PropertyDef(label = "合同总金额", description = "单位:元")
    private Double money;
    @Column(name = "COMPLETE_NUM_")
    @PropertyDef(label = "履约数量", description = "单位:公斤")
    private Double completeNum;
    @Column(name = "CONTRACT_AMOUNT_")
    @PropertyDef(label = "合同数量", description = "单位:公斤")
    private Double contactAmount;
    @Column(name = "lybzj")
    @PropertyDef(label = "履约保证金", description = "单位:元")
    private Double lybzj;
    @Column(name = "COMPLETE_NUM_")
    @PropertyDef(label = "履约数量", description = "单位:公斤")
    private Double completeNum;
    @PropertyDef(label = "履约率", description = "单位:%")
    @Column(name = "lyl")
    private Double lyl;
    @Column(name = "lybzj")
    @PropertyDef(label = "履约保证金", description = "单位:元")
    private Double lybzj;
    @Column(name = "jsjg")
    @PropertyDef(label = "结算价格,元/吨")
    private Double jsjg;
    @PropertyDef(label = "履约率", description = "单位:%")
    @Column(name = "lyl")
    private Double lyl;
    @PropertyDef(label = "结算总金额", description = "单位:元")
    @Column(name = "jszje")
    private Double jszje;
    @Column(name = "jsjg")
    @PropertyDef(label = "结算价格,元/吨")
    private Double jsjg;
    @PropertyDef(label = "结算与合同一致性", description = "1:符合 2:不符合")
    @Column(name = "jsyhtyzx", length = 1)
    private String jsyhtyzx;
    @PropertyDef(label = "结算总金额", description = "单位:元")
    @Column(name = "jszje")
    private Double jszje;
    @PropertyDef(label = "不一致原因")
    @Column(name = "jsyhtbyzyy", length = 250)
    private String jsyhtbyzyy;
    @PropertyDef(label = "结算与合同一致性", description = "1:符合 2:不符合")
    @Column(name = "jsyhtyzx", length = 1)
    private String jsyhtyzx;
    @Column(name = "CUSTOMER_BANK_", length = 10)
    @PropertyDef(label = "客户开户行")
    private String customerBank;
    @PropertyDef(label = "不一致原因")
    @Column(name = "jsyhtbyzyy", length = 250)
    private String jsyhtbyzyy;
    @Column(name = "CUSTOMER_BANK_ACCOUNT_", length = 40)
    @PropertyDef(label = "客户方账号")
    private String customerBankAccount;
    @Column(name = "CUSTOMER_BANK_", length = 10)
    @PropertyDef(label = "客户开户行")
    private String customerBank;
    @Column(name = "CUSTOMER_SIGN_USER_", length = 50)
    @PropertyDef(label = "客户签约人")
    private String customerSignUser;
    @Column(name = "CUSTOMER_BANK_ACCOUNT_", length = 40)
    @PropertyDef(label = "客户方账号")
    private String customerBankAccount;
    @Column(name = "BANK_", length = 50)
    @PropertyDef(label = "本方开户行")
    private String bank;
    @Column(name = "CUSTOMER_SIGN_USER_", length = 50)
    @PropertyDef(label = "客户签约人")
    private String customerSignUser;
    @Column(name = "BANK_ACCOUNT_", length = 40)
    @PropertyDef(label = "本方账号")
    private String bankAccount;
    @Column(name = "BANK_", length = 50)
    @PropertyDef(label = "本方开户行")
    private String bank;
    @Column(name = "SIGN_USER_", length = 50)
    @PropertyDef(label = "本方签约人")
    private String signUser;
    @Column(name = "BANK_ACCOUNT_", length = 40)
    @PropertyDef(label = "本方账号")
    private String bankAccount;
    /**
     * --------审批信息--------
     **/
    @Column(name = "SIGN_USER_", length = 50)
    @PropertyDef(label = "本方签约人")
    private String signUser;
    @Column(name = "CREATE_USER_", length = 50)
    @PropertyDef(label = "创建人")
    private String createUser;
    /**
     * --------审批信息--------
     **/
    @Column(name = "AUDIT_USER_", length = 50)
    @PropertyDef(label = "审批人")
    private String auditUser;
    @Column(name = "CREATE_USER_", length = 50)
    @PropertyDef(label = "创建人")
    private String createUser;
    @Column(name = "AUDIT_DATE_")
    @PropertyDef(label = "审批时间", description = "格式:yyyy-MM-dd HH:mm:ss")
    private String auditDate;
    @Column(name = "AUDIT_USER_", length = 50)
    @PropertyDef(label = "审批人")
    private String auditUser;
    @Column(name = "AUDIT_STATUS_", length = 10)
    @PropertyDef(label = "审批状态")
    private String auditStatus;
    @Column(name = "AUDIT_DATE_")
    @PropertyDef(label = "审批时间", description = "格式:yyyy-MM-dd HH:mm:ss")
    private String auditDate;
    @Column(name = "CREATE_TIME_")
    @PropertyDef(label = "创建时间")
    private Date createTime;
    @Column(name = "AUDIT_STATUS_", length = 10)
    @PropertyDef(label = "审批状态")
    private String auditStatus;
    @Column(name = "wcrq")
    @PropertyDef(label = "完成时间")
    private Date wcrq;
    @Column(name = "CREATE_TIME_")
    @PropertyDef(label = "创建时间")
    private Date createTime;
    @Column(name = "UPDATE_TIME_")
    @PropertyDef(label = "更新时间")
    private Date updateTime;
    @Column(name = "wcrq")
    @PropertyDef(label = "完成时间")
    private Date wcrq;
    @Column(name = "hqzz", length = 30)
    @PropertyDef(label = "货权组织")
    private String hqzz;
    @Column(name = "UPDATE_TIME_")
    @PropertyDef(label = "更新时间")
    private Date updateTime;
}
igds-protocol-block/src/main/java/com/ld/igds/protocol/openapi/OpenApiInoutService.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,75 @@
package com.ld.igds.protocol.openapi;
import com.ld.igds.inout.ApiInoutService;
import com.ld.igds.inout.dto.ApiInoutData;
import com.ld.igds.io.constant.ProtocolEnum;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;
/**
 * @Desc: OPEN-API HTTP请求协议实现
 * @author: andy.jia
 * @update-time: 2023/6/29 15:21
 */
@Component
public class OpenApiInoutService implements ApiInoutService {
    private String http_url = "http://127.0.0.1:8081:/api/anpr/plate/single-recognition";
    @Override
    public String getProtocol() {
        return ProtocolEnum.FZZY_OPENAPI_HTTP.getCode();
    }
    @Override
    public ApiInoutData getIcCardNum(ApiInoutData param) {
        param.setErrorMsg("当前协议不支持");
        return param;
    }
    @Override
    public ApiInoutData getPlateNum(ApiInoutData param) {
        String rtsp = param.getMediaAddr();
        if (StringUtils.isEmpty(rtsp)) {
            param.setErrorMsg("当前车牌识别设备未配置播放地址");
            return param;
        }
        //说明地址未做信息替换
        if (rtsp.indexOf("{0}") > 0) {
        }
        // HttpUtils.doPostJson()
        return param;
    }
    @Override
    public String initLpr(ApiInoutData param) {
        param.setErrorMsg("当前协议不支持");
        return "当前协议不支持";
    }
    @Override
    public String gateControl(ApiInoutData param) {
        return "当前协议不支持";
    }
    @Override
    public String noticeRadio(ApiInoutData param) {
        return "当前协议不支持";
    }
    @Override
    public String noticeLed(ApiInoutData param) {
        return "当前协议不支持";
    }
}
igds-protocol-block/src/main/java/com/ld/igds/protocol/openapi/data/PlateReqVo.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,31 @@
package com.ld.igds.protocol.openapi.data;
import lombok.Data;
import java.io.Serializable;
/**
 * @Desc:
 * @author: andy.jia
 * @update-time: 2023/6/29 15:30
 */
@Data
public class PlateReqVo implements Serializable {
    /**
     * å›¾åƒBase64编码值
     **/
    private String image;
    /**
     * æ‘„像头RTSP地址
     **/
    private String rtsp;
    /**
     * æœç´¢æ¡æ•°ï¼šé»˜è®¤5
     **/
    private Integer limit = 1;
}
igds-protocol-block/src/main/java/com/ld/igds/protocol/openapi/package-info.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1 @@
package com.ld.igds.protocol.openapi;