You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1224 lines
38 KiB
1224 lines
38 KiB
3 months ago
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<datasource>
|
||
|
<!-- 1 表示 sql语句dao 2表示存储过程dao 默认为sql语句dao -->
|
||
|
<!-- 支付 字典表 -->
|
||
|
<dao id="daoSysdsPayDic" type="1">
|
||
|
<sql>
|
||
|
<![CDATA[
|
||
|
select
|
||
|
t.GRP_ID
|
||
|
,t.DIC_ID
|
||
|
,t.DIC_DESC
|
||
|
,t.DIC_ORDER
|
||
|
from PAY_DIC t
|
||
|
where 1 = 1
|
||
|
and t.GRP_ID = ?
|
||
|
order by t.DIC_ORDER,t.DIC_ID
|
||
|
]]>
|
||
|
</sql>
|
||
|
<tables>
|
||
|
<table name="PAY_DIC" insert="true" update="false" delete="false">
|
||
|
<primary>GRP_ID</primary>
|
||
|
<primary>DIC_ID</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="GRP_ID" table="PAY_DIC" type="8" />
|
||
|
<f name="DIC_ID" table="PAY_DIC" type="12" />
|
||
|
<f name="DIC_DESC" table="PAY_DIC" type="12" />
|
||
|
<f name="DIC_ORDER" table="PAY_DIC" type="4" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>4</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<!-- 支付 字典表 订单来源 -->
|
||
|
<dao id="daoSysdsPayDicFor7OrdFrom" type="1" cache="true">
|
||
|
<sql>
|
||
|
<![CDATA[
|
||
|
select
|
||
|
t.GRP_ID
|
||
|
,t.DIC_ID
|
||
|
,t.DIC_DESC
|
||
|
,t.DIC_ORDER
|
||
|
from PAY_DIC t
|
||
|
where 1 = 1
|
||
|
and t.GRP_ID = 7
|
||
|
order by t.DIC_ORDER,t.DIC_ID
|
||
|
]]>
|
||
|
</sql>
|
||
|
<tables>
|
||
|
<table name="PAY_DIC" insert="false" update="false" delete="false">
|
||
|
<primary>GRP_ID</primary>
|
||
|
<primary>DIC_ID</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="GRP_ID" table="PAY_DIC" type="8" />
|
||
|
<f name="DIC_ID" table="PAY_DIC" type="12" />
|
||
|
<f name="DIC_DESC" table="PAY_DIC" type="12" />
|
||
|
<f name="DIC_ORDER" table="PAY_DIC" type="4" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<!-- 支付 接口请求记录表 -->
|
||
|
<dao id="daoSysdsPayToPayServiceForApiReqLogOpt" type="1">
|
||
|
<sql>
|
||
|
<![CDATA[
|
||
|
select
|
||
|
t.PKEY
|
||
|
,t.CZRQ
|
||
|
,t.CZR
|
||
|
,t.API_CODE
|
||
|
,t.INPUT_DATA
|
||
|
,t.OUTPUT_DATA
|
||
|
,t.SERV_CLASS
|
||
|
,t.SERV_METHOD
|
||
|
from PAY_API_REQ_LOG t
|
||
|
where 1 > 1
|
||
|
]]>
|
||
|
</sql>
|
||
|
<tables>
|
||
|
<table name="PAY_API_REQ_LOG" insert="true" update="false" delete="false">
|
||
|
<primary>PKEY</primary>
|
||
|
<primary>CZRQ</primary>
|
||
|
<primary>CZR</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="PKEY" table="PAY_API_REQ_LOG" type="12" />
|
||
|
<f name="CZRQ" table="PAY_API_REQ_LOG" type="93" />
|
||
|
<f name="CZR" table="PAY_API_REQ_LOG" type="12" />
|
||
|
<f name="API_CODE" table="PAY_API_REQ_LOG" type="12" />
|
||
|
<f name="INPUT_DATA" table="PAY_API_REQ_LOG" type="12" />
|
||
|
<f name="OUTPUT_DATA" table="PAY_API_REQ_LOG" type="12" />
|
||
|
<f name="SERV_CLASS" table="PAY_API_REQ_LOG" type="12" />
|
||
|
<f name="SERV_METHOD" table="PAY_API_REQ_LOG" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<!-- 商户信息 -->
|
||
|
<dao id="daoSysdsPayToPayServiceEjshForOpt" type="1">
|
||
|
<sql>
|
||
|
<![CDATA[
|
||
|
select
|
||
|
t.PKEY
|
||
|
,t.CZRQ
|
||
|
,t.CZR
|
||
|
,t.JGID
|
||
|
,t.ORGANIZATION_TYPE
|
||
|
,t.SHORT_NAME
|
||
|
,t.COMPANY_COPY
|
||
|
,t.COMPANY_NUMBER
|
||
|
,t.COMPANY_NAME
|
||
|
,t.COMPANY_ADDRESS
|
||
|
,t.COMPANY_VALID_TIME
|
||
|
,t.SETTLE_TYPE
|
||
|
,t.BANK_CODE
|
||
|
,t.SETTLE_NAME
|
||
|
,t.BANK_ADDRESS_CODE
|
||
|
,t.BANK_BRANCH_CODE
|
||
|
,t.BANK_ACCT_NO
|
||
|
,t.LEGAL_TYPE
|
||
|
,t.LEGAL_COPY
|
||
|
,t.LEGAL_NATIONAL
|
||
|
,t.LEGAL_NUMBER
|
||
|
,t.LEGAL_NAME
|
||
|
,t.LEGAL_VALID_TIME
|
||
|
,t.LEGAL_PERSON_MOBILE_NUMBER
|
||
|
,t.CONTACT_MOBILE_NUMBER
|
||
|
,t.CONTACT_EMAIL
|
||
|
,t.PASSWORD
|
||
|
,t.MCH_APPLICATION_ID
|
||
|
,t.OUT_REQUEST_NO
|
||
|
,t.FILE_PATH_COMPANY_COPY
|
||
|
,t.FILE_PATH_LEGAL_COPY
|
||
|
,t.FILE_PATH_LEGAL_NATIONAL
|
||
|
,t.APPLICATION_STATUS
|
||
|
,t.APPLICATION_STATUS_CZRQ
|
||
|
,t.MCH_ID
|
||
|
,t.WD_TASKTIME
|
||
|
,t.WD_LASTTIME
|
||
|
,t.MCHT_NO
|
||
|
from PAY_EJSH t
|
||
|
where 1 = 1
|
||
|
and t.JGID = ?
|
||
|
]]>
|
||
|
</sql>
|
||
|
<tables>
|
||
|
<table name="PAY_EJSH" insert="true" update="true" delete="true">
|
||
|
<primary>PKEY</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="PKEY" table="PAY_EJSH" type="12" />
|
||
|
<f name="CZRQ" table="PAY_EJSH" type="93" />
|
||
|
<f name="CZR" table="PAY_EJSH" type="12" />
|
||
|
<f name="JGID" table="PAY_EJSH" type="12" />
|
||
|
<f name="ORGANIZATION_TYPE" table="PAY_EJSH" type="12" />
|
||
|
<f name="SHORT_NAME" table="PAY_EJSH" type="12" />
|
||
|
<f name="COMPANY_COPY" table="PAY_EJSH" type="12" />
|
||
|
<f name="COMPANY_NUMBER" table="PAY_EJSH" type="12" />
|
||
|
<f name="COMPANY_NAME" table="PAY_EJSH" type="12" />
|
||
|
<f name="COMPANY_ADDRESS" table="PAY_EJSH" type="12" />
|
||
|
<f name="COMPANY_VALID_TIME" table="PAY_EJSH" type="12" />
|
||
|
<f name="SETTLE_TYPE" table="PAY_EJSH" type="12" />
|
||
|
<f name="BANK_CODE" table="PAY_EJSH" type="12" />
|
||
|
<f name="SETTLE_NAME" table="PAY_EJSH" type="12" />
|
||
|
<f name="BANK_ADDRESS_CODE" table="PAY_EJSH" type="12" />
|
||
|
<f name="BANK_BRANCH_CODE" table="PAY_EJSH" type="12" />
|
||
|
<f name="BANK_ACCT_NO" table="PAY_EJSH" type="12" />
|
||
|
<f name="LEGAL_TYPE" table="PAY_EJSH" type="12" />
|
||
|
<f name="LEGAL_COPY" table="PAY_EJSH" type="12" />
|
||
|
<f name="LEGAL_NATIONAL" table="PAY_EJSH" type="12" />
|
||
|
<f name="LEGAL_NUMBER" table="PAY_EJSH" type="12" />
|
||
|
<f name="LEGAL_NAME" table="PAY_EJSH" type="12" />
|
||
|
<f name="LEGAL_VALID_TIME" table="PAY_EJSH" type="12" />
|
||
|
<f name="LEGAL_PERSON_MOBILE_NUMBER" table="PAY_EJSH" type="12" />
|
||
|
<f name="CONTACT_MOBILE_NUMBER" table="PAY_EJSH" type="12" />
|
||
|
<f name="CONTACT_EMAIL" table="PAY_EJSH" type="12" />
|
||
|
<f name="PASSWORD" table="PAY_EJSH" type="12" />
|
||
|
<f name="MCH_APPLICATION_ID" table="PAY_EJSH" type="12" />
|
||
|
<f name="OUT_REQUEST_NO" table="PAY_EJSH" type="12" />
|
||
|
<f name="FILE_PATH_COMPANY_COPY" table="PAY_EJSH" type="12" />
|
||
|
<f name="FILE_PATH_LEGAL_COPY" table="PAY_EJSH" type="12" />
|
||
|
<f name="FILE_PATH_LEGAL_NATIONAL" table="PAY_EJSH" type="12" />
|
||
|
<f name="APPLICATION_STATUS" table="PAY_EJSH" type="12" />
|
||
|
<f name="APPLICATION_STATUS_CZRQ" table="PAY_EJSH" type="93" />
|
||
|
<f name="MCH_ID" table="PAY_EJSH" type="12" />
|
||
|
<f name="WD_TASKTIME" table="PAY_EJSH" type="12" />
|
||
|
<f name="WD_LASTTIME" table="PAY_EJSH" type="93" />
|
||
|
<f name="MCHT_NO" table="PAY_EJSH" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="daoSysdsPayToPayServiceEjshForApiLog" type="1">
|
||
|
<sql>
|
||
|
<![CDATA[
|
||
|
select
|
||
|
t.PKEY
|
||
|
,t.CZRQ
|
||
|
,t.CZR
|
||
|
,t.RKEY_PAY_EJSH
|
||
|
,t.RKEY_PAY_API_REQ_LOG
|
||
|
,t.API_CODE
|
||
|
,t.API_FLAG
|
||
|
from PAY_EJSH_API_LOG t
|
||
|
where 1 = 1
|
||
|
and t.RKEY_PAY_EJSH = ?
|
||
|
order by t.PKEY
|
||
|
]]>
|
||
|
</sql>
|
||
|
<tables>
|
||
|
<table name="PAY_EJSH_API_LOG" insert="true" update="true" delete="false">
|
||
|
<primary>PKEY</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="PKEY" table="PAY_EJSH_API_LOG" type="12" />
|
||
|
<f name="CZRQ" table="PAY_EJSH_API_LOG" type="93" />
|
||
|
<f name="CZR" table="PAY_EJSH_API_LOG" type="12" />
|
||
|
<f name="RKEY_PAY_EJSH" table="PAY_EJSH_API_LOG" type="12" />
|
||
|
<f name="RKEY_PAY_API_REQ_LOG" table="PAY_EJSH_API_LOG" type="12" />
|
||
|
<f name="API_CODE" table="PAY_EJSH_API_LOG" type="12" />
|
||
|
<f name="API_FLAG" table="PAY_EJSH_API_LOG" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="daoSysdsPayToPayServiceEjshForQryApp0" type="1">
|
||
|
<sql>
|
||
|
<![CDATA[
|
||
|
select
|
||
|
t.PKEY
|
||
|
,t.CZRQ
|
||
|
,t.CZR
|
||
|
,t.JGID
|
||
|
,t.REQ_MCH_APPLICATION_ID
|
||
|
,t.REQ_OUT_REQUEST_NO
|
||
|
,t.APPLICATION_STATUS
|
||
|
,t.MCH_ID
|
||
|
,t.ACCT_VERIFIED_AT
|
||
|
,t.AUDITED_AT
|
||
|
,t.SUCCEEDED_AT
|
||
|
,t.FAILED_AT
|
||
|
,t.A_V_TYPE
|
||
|
,t.A_V_ACCT_NAME
|
||
|
,t.A_V_ACCT_NO
|
||
|
,t.A_V_PAY_AMOUNT
|
||
|
,t.A_V_D_A_NAME
|
||
|
,t.A_V_D_A_NO
|
||
|
,t.A_V_D_A_BANK_BRANCH_CODE
|
||
|
,t.A_V_D_A_BANK_ADDRESS_CODE
|
||
|
,t.A_V_MEMO
|
||
|
,t.A_V_DEADLINE
|
||
|
,t.OUT_REQUEST_NO
|
||
|
,t.MCH_APPLICATION_ID
|
||
|
,t.REL_ACCT_NO
|
||
|
,t.BIND_ACCT_NAME
|
||
|
,t.BALANCE_ACCT_ID
|
||
|
,t.SETTLE_ACCT_ID
|
||
|
,t.METADATA
|
||
|
,t.EXTRA_CONTRACT_NO
|
||
|
from PAY_EJSHJJCX t
|
||
|
where 1 = 1
|
||
|
and t.JGID = ?
|
||
|
]]>
|
||
|
</sql>
|
||
|
<tables>
|
||
|
<table name="PAY_EJSHJJCX" insert="true" update="true" delete="true">
|
||
|
<primary>PKEY</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="PKEY" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="CZRQ" table="PAY_EJSHJJCX" type="93" />
|
||
|
<f name="CZR" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="JGID" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="REQ_MCH_APPLICATION_ID" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="REQ_OUT_REQUEST_NO" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="APPLICATION_STATUS" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="MCH_ID" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="ACCT_VERIFIED_AT" table="PAY_EJSHJJCX" type="93" />
|
||
|
<f name="AUDITED_AT" table="PAY_EJSHJJCX" type="93" />
|
||
|
<f name="SUCCEEDED_AT" table="PAY_EJSHJJCX" type="93" />
|
||
|
<f name="FAILED_AT" table="PAY_EJSHJJCX" type="93" />
|
||
|
<f name="A_V_TYPE" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="A_V_ACCT_NAME" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="A_V_ACCT_NO" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="A_V_PAY_AMOUNT" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="A_V_D_A_NAME" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="A_V_D_A_NO" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="A_V_D_A_BANK_BRANCH_CODE" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="A_V_D_A_BANK_ADDRESS_CODE" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="A_V_MEMO" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="A_V_DEADLINE" table="PAY_EJSHJJCX" type="93" />
|
||
|
<f name="OUT_REQUEST_NO" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="MCH_APPLICATION_ID" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="REL_ACCT_NO" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="BIND_ACCT_NAME" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="BALANCE_ACCT_ID" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="SETTLE_ACCT_ID" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="METADATA" table="PAY_EJSHJJCX" type="12" />
|
||
|
<f name="EXTRA_CONTRACT_NO" table="PAY_EJSHJJCX" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<dao id="daoSysdsPayToPayServiceEjshForQryApp1" type="1">
|
||
|
<sql>
|
||
|
<![CDATA[
|
||
|
select
|
||
|
t.PKEY
|
||
|
,t.CZRQ
|
||
|
,t.CZR
|
||
|
,t.PAY_EJSHJJCX_PKEY
|
||
|
,t.PARAM
|
||
|
,t.REASON
|
||
|
from PAY_EJSHJJCX_FAIL_MSG t
|
||
|
where 1 = 1
|
||
|
and t.JGID = ?
|
||
|
]]>
|
||
|
</sql>
|
||
|
<tables>
|
||
|
<table name="PAY_EJSHJJCX_FAIL_MSG" insert="true" update="true" delete="true">
|
||
|
<primary>PKEY</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="PKEY" table="PAY_EJSHJJCX_FAIL_MSG" type="12" />
|
||
|
<f name="CZRQ" table="PAY_EJSHJJCX_FAIL_MSG" type="93" />
|
||
|
<f name="CZR" table="PAY_EJSHJJCX_FAIL_MSG" type="12" />
|
||
|
<f name="PAY_EJSHJJCX_PKEY" table="PAY_EJSHJJCX_FAIL_MSG" type="12" />
|
||
|
<f name="PARAM" table="PAY_EJSHJJCX_FAIL_MSG" type="12" />
|
||
|
<f name="REASON" table="PAY_EJSHJJCX_FAIL_MSG" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<!-- 电子账簿 -->
|
||
|
<dao id="daoSysdsPayToPayServiceDzzbForOpt" type="1">
|
||
|
<sql>
|
||
|
<![CDATA[
|
||
|
select
|
||
|
t.PKEY
|
||
|
,t.CZRQ
|
||
|
,t.CZR
|
||
|
,t.PAY_EJSH_PKEY
|
||
|
,t.OUT_REQUEST_NO
|
||
|
,t.BALANCE_ACCT_ID
|
||
|
,t.REL_ACCT_NO
|
||
|
,t.SETTLED_AMOUNT
|
||
|
,t.PENDING_AMOUNT
|
||
|
,t.EXPENSING_AMOUNT
|
||
|
,t.FROZEN_SETTLED_AMOUNT
|
||
|
,t.ACCT_TYPE
|
||
|
,t.IS_FROZEN
|
||
|
,t.REMARK
|
||
|
,t.IS_DELETED
|
||
|
from PAY_DZZB t
|
||
|
where 1 = 1
|
||
|
and (
|
||
|
t.PAY_EJSH_PKEY = ?
|
||
|
or t.BALANCE_ACCT_ID = ?
|
||
|
)
|
||
|
]]>
|
||
|
</sql>
|
||
|
<tables>
|
||
|
<table name="PAY_DZZB" insert="true" update="true" delete="true">
|
||
|
<primary>PKEY</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="PKEY" table="PAY_DZZB" type="12" />
|
||
|
<f name="CZRQ" table="PAY_DZZB" type="93" />
|
||
|
<f name="CZR" table="PAY_DZZB" type="12" />
|
||
|
<f name="PAY_EJSH_PKEY" table="PAY_DZZB" type="12" />
|
||
|
<f name="OUT_REQUEST_NO" table="PAY_DZZB" type="12" />
|
||
|
<f name="BALANCE_ACCT_ID" table="PAY_DZZB" type="12" />
|
||
|
<f name="REL_ACCT_NO" table="PAY_DZZB" type="12" />
|
||
|
<f name="SETTLED_AMOUNT" table="PAY_DZZB" type="8" />
|
||
|
<f name="PENDING_AMOUNT" table="PAY_DZZB" type="8" />
|
||
|
<f name="EXPENSING_AMOUNT" table="PAY_DZZB" type="8" />
|
||
|
<f name="FROZEN_SETTLED_AMOUNT" table="PAY_DZZB" type="8" />
|
||
|
<f name="ACCT_TYPE" table="PAY_DZZB" type="12" />
|
||
|
<f name="IS_FROZEN" table="PAY_DZZB" type="4" />
|
||
|
<f name="REMARK" table="PAY_DZZB" type="12" />
|
||
|
<f name="IS_DELETED" table="PAY_DZZB" type="4" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<!-- 电子账簿冻结表 操作用 -->
|
||
|
<dao id="daoSysdsPayToPayServiceDzzbFreezeForOpt" type="1">
|
||
|
<sql>
|
||
|
<![CDATA[
|
||
|
select
|
||
|
t.PKEY
|
||
|
,t.CZRQ
|
||
|
,t.CZR
|
||
|
,t.PAY_DZZB_PKEY
|
||
|
,t.FREEZE
|
||
|
,t.REMARK
|
||
|
,t.OUT_BALANCE_ACCT_FREEZE_ID
|
||
|
,t.OUT_OUT_REQUEST_NO
|
||
|
,t.OUT_FREEZE
|
||
|
,t.OUT_STATUS
|
||
|
,t.OUT_FINISHED_AT
|
||
|
,t.OUT_REMARK
|
||
|
,t.OUT_METADATA
|
||
|
from PAY_DZZB_FREEZE t
|
||
|
where 1 = 1
|
||
|
and t.PKEY = ?
|
||
|
]]>
|
||
|
</sql>
|
||
|
<tables>
|
||
|
<table name="PAY_DZZB_FREEZE" insert="true" update="true" delete="true">
|
||
|
<primary>PKEY</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="PKEY" table="PAY_DZZB_FREEZE" type="12" />
|
||
|
<f name="CZRQ" table="PAY_DZZB_FREEZE" type="93" />
|
||
|
<f name="CZR" table="PAY_DZZB_FREEZE" type="12" />
|
||
|
<f name="PAY_DZZB_PKEY" table="PAY_DZZB_FREEZE" type="12" />
|
||
|
<f name="FREEZE" table="PAY_DZZB_FREEZE" type="4" />
|
||
|
<f name="REMARK" table="PAY_DZZB_FREEZE" type="12" />
|
||
|
<f name="OUT_BALANCE_ACCT_FREEZE_ID" table="PAY_DZZB_FREEZE" type="12" />
|
||
|
<f name="OUT_OUT_REQUEST_NO" table="PAY_DZZB_FREEZE" type="12" />
|
||
|
<f name="OUT_FREEZE" table="PAY_DZZB_FREEZE" type="4" />
|
||
|
<f name="OUT_STATUS" table="PAY_DZZB_FREEZE" type="12" />
|
||
|
<f name="OUT_FINISHED_AT" table="PAY_DZZB_FREEZE" type="93" />
|
||
|
<f name="OUT_REMARK" table="PAY_DZZB_FREEZE" type="12" />
|
||
|
<f name="OUT_METADATA" table="PAY_DZZB_FREEZE" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<!-- 电子账簿冻结表 查询用 -->
|
||
|
<dao id="daoSysdsPayToPayServiceDzzbFreezeForQuery" type="1">
|
||
|
<sql>
|
||
|
<![CDATA[
|
||
|
select
|
||
|
t.PKEY
|
||
|
,t.CZRQ
|
||
|
,t.CZR
|
||
|
,t.PAY_DZZB_PKEY
|
||
|
,t.FREEZE
|
||
|
,t.REMARK
|
||
|
,t.OUT_BALANCE_ACCT_FREEZE_ID
|
||
|
,t.OUT_OUT_REQUEST_NO
|
||
|
,t.OUT_FREEZE
|
||
|
,t.OUT_STATUS
|
||
|
,t.OUT_FINISHED_AT
|
||
|
,t.OUT_REMARK
|
||
|
,t.OUT_METADATA
|
||
|
,b.BALANCE_ACCT_ID
|
||
|
from PAY_DZZB_FREEZE t
|
||
|
left join PAY_DZZB b on b.PKEY = t.PAY_DZZB_PKEY
|
||
|
where 1 = 1
|
||
|
and (
|
||
|
t.OUT_BALANCE_ACCT_FREEZE_ID = ?
|
||
|
or t.OUT_OUT_REQUEST_NO = ?
|
||
|
)
|
||
|
]]>
|
||
|
</sql>
|
||
|
<tables>
|
||
|
<table name="PAY_DZZB_FREEZE" insert="true" update="true" delete="true">
|
||
|
<primary>PKEY</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="PKEY" table="PAY_DZZB_FREEZE" type="12" />
|
||
|
<f name="CZRQ" table="PAY_DZZB_FREEZE" type="93" />
|
||
|
<f name="CZR" table="PAY_DZZB_FREEZE" type="12" />
|
||
|
<f name="PAY_DZZB_PKEY" table="PAY_DZZB_FREEZE" type="12" />
|
||
|
<f name="FREEZE" table="PAY_DZZB_FREEZE" type="4" />
|
||
|
<f name="REMARK" table="PAY_DZZB_FREEZE" type="12" />
|
||
|
<f name="OUT_BALANCE_ACCT_FREEZE_ID" table="PAY_DZZB_FREEZE" type="12" />
|
||
|
<f name="OUT_OUT_REQUEST_NO" table="PAY_DZZB_FREEZE" type="12" />
|
||
|
<f name="OUT_FREEZE" table="PAY_DZZB_FREEZE" type="4" />
|
||
|
<f name="OUT_STATUS" table="PAY_DZZB_FREEZE" type="12" />
|
||
|
<f name="OUT_FINISHED_AT" table="PAY_DZZB_FREEZE" type="93" />
|
||
|
<f name="OUT_REMARK" table="PAY_DZZB_FREEZE" type="12" />
|
||
|
<f name="OUT_METADATA" table="PAY_DZZB_FREEZE" type="12" />
|
||
|
<f name="BALANCE_ACCT_ID" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<!-- 电子账簿提现表 操作用 -->
|
||
|
<dao id="daoSysdsPayToPayServiceDzzbWithdrawForOpt" type="1">
|
||
|
<sql>
|
||
|
<![CDATA[
|
||
|
select
|
||
|
t.PKEY
|
||
|
,t.CZRQ
|
||
|
,t.CZR
|
||
|
,t.PAY_DZZB_PKEY
|
||
|
,t.MOBILE
|
||
|
,t.AMOUNT
|
||
|
,t.REMARK
|
||
|
,t.BANK_MEMO
|
||
|
,t.SERVICE_FEE
|
||
|
,t.BANK_ACCT_ACCT_NO
|
||
|
,t.BANK_ACCT_TYPE
|
||
|
,t.BANK_ACCT_BRANCH_CODE
|
||
|
,t.BANK_ACCT_BANK_CODE
|
||
|
,t.BANK_ACCT_USER_NAME
|
||
|
,t.METADATA
|
||
|
,t.DEPOSIT_ID
|
||
|
,t.STATUS
|
||
|
,t.CREDIT_STATUS
|
||
|
,t.REASON
|
||
|
,t.CREATED_AT
|
||
|
,t.FINISHED_AT
|
||
|
,t.OUT_ORDER_NO
|
||
|
,t.TOTAL_AMOUNT
|
||
|
,t.OUT_AMOUNT
|
||
|
,t.DISCOUNT_AMOUNT
|
||
|
,t.DISCOUNT_ID
|
||
|
,t.OUT_BALANCE_ACCT_ID
|
||
|
,t.PAYMENT_TYPE
|
||
|
,t.PAYMENT_TRADE_NO
|
||
|
,t.PAYMENT_SUCCEEDED_AT
|
||
|
,t.REFUNDED_AMOUNT
|
||
|
,t.OUT_REMARK
|
||
|
,t.EPI_ORDER_NO
|
||
|
,t.EPI_ORDER_AMOUNT
|
||
|
,t.EPI_PRODUCT_NAME
|
||
|
,t.EPI_PRODUCT_COUNT
|
||
|
,t.OUT_METADATA
|
||
|
,t.OUT_MSG
|
||
|
,t.OUT_INFCODE
|
||
|
from PAY_DZZB_WITHDRAW t
|
||
|
where 1 = 1
|
||
|
and t.PKEY = ?
|
||
|
]]>
|
||
|
</sql>
|
||
|
<tables>
|
||
|
<table name="PAY_DZZB_WITHDRAW" insert="true" update="true" delete="true">
|
||
|
<primary>PKEY</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="PKEY" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="CZRQ" table="PAY_DZZB_WITHDRAW" type="93" />
|
||
|
<f name="CZR" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="PAY_DZZB_PKEY" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="MOBILE" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="AMOUNT" table="PAY_DZZB_WITHDRAW" type="8" />
|
||
|
<f name="REMARK" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="BANK_MEMO" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="SERVICE_FEE" table="PAY_DZZB_WITHDRAW" type="8" />
|
||
|
<f name="BANK_ACCT_ACCT_NO" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="BANK_ACCT_TYPE" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="BANK_ACCT_BRANCH_CODE" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="BANK_ACCT_BANK_CODE" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="BANK_ACCT_USER_NAME" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="METADATA" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="DEPOSIT_ID" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="STATUS" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="CREDIT_STATUS" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="REASON" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="CREATED_AT" table="PAY_DZZB_WITHDRAW" type="93" />
|
||
|
<f name="FINISHED_AT" table="PAY_DZZB_WITHDRAW" type="93" />
|
||
|
<f name="OUT_ORDER_NO" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="TOTAL_AMOUNT" table="PAY_DZZB_WITHDRAW" type="8" />
|
||
|
<f name="OUT_AMOUNT" table="PAY_DZZB_WITHDRAW" type="8" />
|
||
|
<f name="DISCOUNT_AMOUNT" table="PAY_DZZB_WITHDRAW" type="8" />
|
||
|
<f name="DISCOUNT_ID" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="OUT_BALANCE_ACCT_ID" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="PAYMENT_TYPE" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="PAYMENT_TRADE_NO" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="PAYMENT_SUCCEEDED_AT" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="REFUNDED_AMOUNT" table="PAY_DZZB_WITHDRAW" type="8" />
|
||
|
<f name="OUT_REMARK" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="EPI_ORDER_NO" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="EPI_ORDER_AMOUNT" table="PAY_DZZB_WITHDRAW" type="8" />
|
||
|
<f name="EPI_PRODUCT_NAME" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="EPI_PRODUCT_COUNT" table="PAY_DZZB_WITHDRAW" type="8" />
|
||
|
<f name="OUT_METADATA" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="OUT_MSG" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="OUT_INFCODE" table="PAY_DZZB_WITHDRAW" type="4" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<!-- 电子账簿提现表 操作用 -->
|
||
|
<dao id="daoSysdsPayToPayServiceDzzbWithdrawForOptQuery" type="1">
|
||
|
<sql>
|
||
|
<![CDATA[
|
||
|
select
|
||
|
t.PKEY
|
||
|
,t.CZRQ
|
||
|
,t.CZR
|
||
|
,t.PAY_DZZB_PKEY
|
||
|
,t.MOBILE
|
||
|
,t.AMOUNT
|
||
|
,t.REMARK
|
||
|
,t.BANK_MEMO
|
||
|
,t.SERVICE_FEE
|
||
|
,t.BANK_ACCT_ACCT_NO
|
||
|
,t.BANK_ACCT_TYPE
|
||
|
,t.BANK_ACCT_BRANCH_CODE
|
||
|
,t.BANK_ACCT_BANK_CODE
|
||
|
,t.BANK_ACCT_USER_NAME
|
||
|
,t.METADATA
|
||
|
,t.DEPOSIT_ID
|
||
|
,t.STATUS
|
||
|
,t.CREDIT_STATUS
|
||
|
,t.REASON
|
||
|
,t.CREATED_AT
|
||
|
,t.FINISHED_AT
|
||
|
,t.OUT_ORDER_NO
|
||
|
,t.TOTAL_AMOUNT
|
||
|
,t.OUT_AMOUNT
|
||
|
,t.DISCOUNT_AMOUNT
|
||
|
,t.DISCOUNT_ID
|
||
|
,t.OUT_BALANCE_ACCT_ID
|
||
|
,t.PAYMENT_TYPE
|
||
|
,t.PAYMENT_TRADE_NO
|
||
|
,t.PAYMENT_SUCCEEDED_AT
|
||
|
,t.REFUNDED_AMOUNT
|
||
|
,t.OUT_REMARK
|
||
|
,t.EPI_ORDER_NO
|
||
|
,t.EPI_ORDER_AMOUNT
|
||
|
,t.EPI_PRODUCT_NAME
|
||
|
,t.EPI_PRODUCT_COUNT
|
||
|
,t.OUT_METADATA
|
||
|
,t.OUT_MSG
|
||
|
,t.OUT_INFCODE
|
||
|
from PAY_DZZB_WITHDRAW t
|
||
|
where 1 = 1
|
||
|
and (
|
||
|
t.OUT_ORDER_NO = ?
|
||
|
or t.DEPOSIT_ID = ?
|
||
|
)
|
||
|
]]>
|
||
|
</sql>
|
||
|
<tables>
|
||
|
<table name="PAY_DZZB_WITHDRAW" insert="true" update="true" delete="true">
|
||
|
<primary>PKEY</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="PKEY" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="CZRQ" table="PAY_DZZB_WITHDRAW" type="93" />
|
||
|
<f name="CZR" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="PAY_DZZB_PKEY" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="MOBILE" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="AMOUNT" table="PAY_DZZB_WITHDRAW" type="8" />
|
||
|
<f name="REMARK" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="BANK_MEMO" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="SERVICE_FEE" table="PAY_DZZB_WITHDRAW" type="8" />
|
||
|
<f name="BANK_ACCT_ACCT_NO" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="BANK_ACCT_TYPE" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="BANK_ACCT_BRANCH_CODE" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="BANK_ACCT_BANK_CODE" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="BANK_ACCT_USER_NAME" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="METADATA" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="DEPOSIT_ID" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="STATUS" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="CREDIT_STATUS" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="REASON" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="CREATED_AT" table="PAY_DZZB_WITHDRAW" type="93" />
|
||
|
<f name="FINISHED_AT" table="PAY_DZZB_WITHDRAW" type="93" />
|
||
|
<f name="OUT_ORDER_NO" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="TOTAL_AMOUNT" table="PAY_DZZB_WITHDRAW" type="8" />
|
||
|
<f name="OUT_AMOUNT" table="PAY_DZZB_WITHDRAW" type="8" />
|
||
|
<f name="DISCOUNT_AMOUNT" table="PAY_DZZB_WITHDRAW" type="8" />
|
||
|
<f name="DISCOUNT_ID" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="OUT_BALANCE_ACCT_ID" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="PAYMENT_TYPE" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="PAYMENT_TRADE_NO" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="PAYMENT_SUCCEEDED_AT" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="REFUNDED_AMOUNT" table="PAY_DZZB_WITHDRAW" type="8" />
|
||
|
<f name="OUT_REMARK" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="EPI_ORDER_NO" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="EPI_ORDER_AMOUNT" table="PAY_DZZB_WITHDRAW" type="8" />
|
||
|
<f name="EPI_PRODUCT_NAME" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="EPI_PRODUCT_COUNT" table="PAY_DZZB_WITHDRAW" type="8" />
|
||
|
<f name="OUT_METADATA" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="OUT_MSG" table="PAY_DZZB_WITHDRAW" type="12" />
|
||
|
<f name="OUT_INFCODE" table="PAY_DZZB_WITHDRAW" type="4" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<!-- 电子账簿提现 查询需要定时提现的机构 操作用 -->
|
||
|
<dao id="daoSysdsPayToThreadWithdrawForGetShxx" type="1">
|
||
|
<sql>
|
||
|
<![CDATA[
|
||
|
select
|
||
|
t.PKEY
|
||
|
,t.JGID
|
||
|
,s.JGMC
|
||
|
,t.MCH_ID
|
||
|
,t.BANK_ACCT_NO
|
||
|
,t.PASSWORD
|
||
|
,t.WD_TASKTIME
|
||
|
,t.WD_LASTTIME
|
||
|
from PAY_EJSH t
|
||
|
left join MAIN_YLJG s on s.PKEY = t.JGID
|
||
|
where 1 = 1
|
||
|
and t.MCH_ID is not null --有商户号
|
||
|
and t.WD_TASKTIME like '__:__:__' --有设定正常的提现时间
|
||
|
order by t.WD_TASKTIME,t.JGID
|
||
|
]]>
|
||
|
</sql>
|
||
|
<tables>
|
||
|
<table name="PAY_EJSH" insert="false" update="true" delete="false">
|
||
|
<primary>PKEY</primary>
|
||
|
<primary>JGID</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="PKEY" table="PAY_EJSH" type="12" />
|
||
|
<f name="JGID" table="PAY_EJSH" type="12" />
|
||
|
<f name="JGMC" type="12" />
|
||
|
<f name="MCH_ID" type="12" />
|
||
|
<f name="BANK_ACCT_NO" type="12" />
|
||
|
<f name="PASSWORD" type="12" />
|
||
|
<f name="WD_TASKTIME" table="PAY_EJSH" type="12" />
|
||
|
<f name="WD_LASTTIME" table="PAY_EJSH" type="93" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<!-- 电子账簿提现 查询需要定时提现的机构 操作用 -->
|
||
|
<dao id="daoSysdsPayToThreadWithdrawForForGetZbxx" type="1">
|
||
|
<sql>
|
||
|
<![CDATA[
|
||
|
select
|
||
|
t.BALANCE_ACCT_ID
|
||
|
,t.SETTLED_AMOUNT
|
||
|
from PAY_DZZB t
|
||
|
where 1 = 1
|
||
|
and t.IS_FROZEN = 0 --未冻结
|
||
|
and t.IS_DELETED = 0 --未删除
|
||
|
and t.SETTLED_AMOUNT > 0 --有余额
|
||
|
and t.PAY_EJSH_PKEY = ? --机构信息
|
||
|
]]>
|
||
|
</sql>
|
||
|
<fields>
|
||
|
<f name="BALANCE_ACCT_ID" type="12" />
|
||
|
<f name="SETTLED_AMOUNT" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<!-- 支付终端报备管理用 -->
|
||
|
<dao id="daoSysdsPayToPayServiceForZdbbOpt" type="1">
|
||
|
<sql>
|
||
|
<![CDATA[
|
||
|
select
|
||
|
t.PKEY
|
||
|
,t.JGID
|
||
|
,t.CZR
|
||
|
,t.CZRQ
|
||
|
,t.REMARK
|
||
|
,t.EXTERNAL_TYPE
|
||
|
,t.MCHT_ID
|
||
|
,t.SUB_APPID
|
||
|
,t.OPERATION_ID
|
||
|
,t.DEVICED_ID
|
||
|
,t.DEVICE_TYPE
|
||
|
,t.DEVICE_STATE
|
||
|
,t.DEVICE_ADDRESS
|
||
|
,t.VERSION
|
||
|
,t.TXN_CODE
|
||
|
,t.CHANNEL_ID
|
||
|
,t.PLATFORM_ID
|
||
|
,t.REQ_TRACE_ID
|
||
|
,t.REQ_DATE
|
||
|
,t.REQ_RESERVED
|
||
|
,t.CERT_NUM
|
||
|
,t.REQ_SYS_ID
|
||
|
,t.IS_SIGN
|
||
|
,t.SIGNATURE
|
||
|
,t.RESP_CD
|
||
|
,t.RESP_DESC
|
||
|
,t.WX_STATUS
|
||
|
,t.WX_DESC
|
||
|
,t.ALI_STATUS
|
||
|
,t.ALI_DESC
|
||
|
from PAY_ZDBB t
|
||
|
left join PAY_EJSH ejsh on ejsh.PKEY = t.JGID
|
||
|
where 1 = 1
|
||
|
and t.JGID = ?
|
||
|
and t.PKEY like ?
|
||
|
and t.DEVICED_ID like ?
|
||
|
order by t.CZRQ desc
|
||
|
]]>
|
||
|
</sql>
|
||
|
<tables>
|
||
|
<table name="PAY_ZDBB" insert="true" update="true" delete="false">
|
||
|
<primary>PKEY</primary>
|
||
|
<primary>JGID</primary>
|
||
|
<primary>CZRQ</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="PKEY" table="PAY_ZDBB" type="12" />
|
||
|
<f name="JGID" table="PAY_ZDBB" type="12" />
|
||
|
<f name="CZR" table="PAY_ZDBB" type="12" />
|
||
|
<f name="CZRQ" table="PAY_ZDBB" type="93" />
|
||
|
<f name="REMARK" table="PAY_ZDBB" type="12" />
|
||
|
<f name="EXTERNAL_TYPE" table="PAY_ZDBB" type="12" />
|
||
|
<f name="MCHT_ID" table="PAY_ZDBB" type="12" />
|
||
|
<f name="SUB_APPID" table="PAY_ZDBB" type="12" />
|
||
|
<f name="OPERATION_ID" table="PAY_ZDBB" type="12" />
|
||
|
<f name="DEVICED_ID" table="PAY_ZDBB" type="12" />
|
||
|
<f name="DEVICE_TYPE" table="PAY_ZDBB" type="12" />
|
||
|
<f name="DEVICE_STATE" table="PAY_ZDBB" type="12" />
|
||
|
<f name="DEVICE_ADDRESS" table="PAY_ZDBB" type="12" />
|
||
|
<f name="VERSION" table="PAY_ZDBB" type="12" />
|
||
|
<f name="TXN_CODE" table="PAY_ZDBB" type="12" />
|
||
|
<f name="CHANNEL_ID" table="PAY_ZDBB" type="12" />
|
||
|
<f name="PLATFORM_ID" table="PAY_ZDBB" type="12" />
|
||
|
<f name="REQ_TRACE_ID" table="PAY_ZDBB" type="12" />
|
||
|
<f name="REQ_DATE" table="PAY_ZDBB" type="12" />
|
||
|
<f name="REQ_RESERVED" table="PAY_ZDBB" type="12" />
|
||
|
<f name="CERT_NUM" table="PAY_ZDBB" type="12" />
|
||
|
<f name="REQ_SYS_ID" table="PAY_ZDBB" type="12" />
|
||
|
<f name="IS_SIGN" table="PAY_ZDBB" type="12" />
|
||
|
<f name="SIGNATURE" table="PAY_ZDBB" type="12" />
|
||
|
<f name="RESP_CD" table="PAY_ZDBB" type="12" />
|
||
|
<f name="RESP_DESC" table="PAY_ZDBB" type="12" />
|
||
|
<f name="WX_STATUS" table="PAY_ZDBB" type="12" />
|
||
|
<f name="WX_DESC" table="PAY_ZDBB" type="12" />
|
||
|
<f name="ALI_STATUS" table="PAY_ZDBB" type="12" />
|
||
|
<f name="ALI_DESC" table="PAY_ZDBB" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<!-- 支付终端报备管理用 -->
|
||
|
<dao id="daoSysdsPayToDicForZdbbEnable" type="1">
|
||
|
<sql>
|
||
|
<![CDATA[
|
||
|
select
|
||
|
t.PKEY
|
||
|
,t.JGID
|
||
|
,t.REMARK
|
||
|
,t.DEVICED_ID
|
||
|
,t.DEVICED_ID || ' : ' || t.REMARK as DEVICED_INFO
|
||
|
from PAY_ZDBB t
|
||
|
left join PAY_EJSH ejsh on ejsh.PKEY = t.JGID
|
||
|
where 1 = 1
|
||
|
and t.DEVICE_STATE = '00' --启用
|
||
|
and t.RESP_CD = '0000' --请求成功
|
||
|
and t.JGID = ?
|
||
|
order by t.DEVICED_ID
|
||
|
]]>
|
||
|
</sql>
|
||
|
<fields>
|
||
|
<f name="PKEY" type="12" />
|
||
|
<f name="JGID" type="12" />
|
||
|
<f name="REMARK" type="12" />
|
||
|
<f name="DEVICED_ID" type="12" />
|
||
|
<f name="DEVICED_INFO" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<!-- 支付 订单主表 管理用 -->
|
||
|
<dao id="daoSysdsPayToPayServiceForOrdOpt" type="1">
|
||
|
<sql>
|
||
|
<![CDATA[
|
||
|
select
|
||
|
t.PKEY
|
||
|
,t.CZR
|
||
|
,t.CZRQ
|
||
|
,t.JGID
|
||
|
,t.ORD_FROM
|
||
|
,t.MCHT_NO
|
||
|
,t.TXN_AMT
|
||
|
,t.CURRENCY_CODE
|
||
|
,t.ORDER_DATA_ORDER_FLAG
|
||
|
,t.ORDER_DATA_ORDER_TITLE
|
||
|
,t.ORDER_DATA_ORDER_AMT
|
||
|
,t.ORDER_DATA_ORDER_DCTAMT
|
||
|
,t.ORDER_DATA_SUB_ORDER_NUM
|
||
|
,t.TERM_ID
|
||
|
,t.TERM_INFO_LONGITUDE
|
||
|
,t.TERM_INFO_LATITUDE
|
||
|
,t.TERM_INFO_NETWORK_LICENSE
|
||
|
,t.TERM_INFO_DEVICE_TYPE
|
||
|
,t.TERM_INFO_SERIAL_NUM
|
||
|
,t.TERM_INFO_DEVICE_ID
|
||
|
,t.TERM_INFO_SECRET_TEXT
|
||
|
,t.TERM_INFO_APP_VERSION
|
||
|
,t.TERM_INFO_TERM_IP
|
||
|
,t.IS_CREDIT
|
||
|
,t.WHETHER_NOTIFY
|
||
|
,t.DETAIL_WX
|
||
|
,t.DETAIL_ALI
|
||
|
,t.GOODS_TAG
|
||
|
,t.SUB_APP_ID_WX
|
||
|
,t.WHETHER_CH
|
||
|
,t.CLOUD_HORN_SN
|
||
|
,t.TRANS_STATUS
|
||
|
,t.T2112_CZRQ
|
||
|
,t.T2112_CZR
|
||
|
,t.T2112_REQ_TRACE_ID
|
||
|
,t.T2112_REQ_DATE
|
||
|
,t.T2103_CZRQ
|
||
|
,t.T2103_CZR
|
||
|
,t.T2103_REQ_TRACE_ID
|
||
|
,t.T2103_REQ_DATE
|
||
|
,t.T2103_ORDER_NO
|
||
|
,t.T2106_CZRQ
|
||
|
,t.T2106_CZR
|
||
|
,t.T2106_REQ_TRACE_ID
|
||
|
,t.T2106_REQ_DATE
|
||
|
,t.T2106_ORDER_NO
|
||
|
,t.T2108_CZRQ
|
||
|
,t.T2108_CZR
|
||
|
,t.T2108_REQ_TRACE_ID
|
||
|
,t.T2108_REQ_DATE
|
||
|
,t.T2108_CLOSE_STA
|
||
|
from PAY_ORD t
|
||
|
where 1 = 1
|
||
|
and t.JGID = ?
|
||
|
and t.PKEY like ?
|
||
|
]]>
|
||
|
</sql>
|
||
|
<tables>
|
||
|
<table name="PAY_ORD" insert="true" update="true" delete="false">
|
||
|
<primary>PKEY</primary>
|
||
|
<primary>JGID</primary>
|
||
|
<primary>CZRQ</primary>
|
||
|
<primary>TRANS_STATUS</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="PKEY" table="PAY_ORD" type="12" />
|
||
|
<f name="CZR" table="PAY_ORD" type="12" />
|
||
|
<f name="CZRQ" table="PAY_ORD" type="93" />
|
||
|
<f name="JGID" table="PAY_ORD" type="12" />
|
||
|
<f name="ORD_FROM" table="PAY_ORD" type="12" />
|
||
|
<f name="MCHT_NO" table="PAY_ORD" type="12" />
|
||
|
<f name="TXN_AMT" table="PAY_ORD" type="12" />
|
||
|
<f name="CURRENCY_CODE" table="PAY_ORD" type="12" />
|
||
|
<f name="ORDER_DATA_ORDER_FLAG" table="PAY_ORD" type="12" />
|
||
|
<f name="ORDER_DATA_ORDER_TITLE" table="PAY_ORD" type="12" />
|
||
|
<f name="ORDER_DATA_ORDER_AMT" table="PAY_ORD" type="12" />
|
||
|
<f name="ORDER_DATA_ORDER_DCTAMT" table="PAY_ORD" type="12" />
|
||
|
<f name="ORDER_DATA_SUB_ORDER_NUM" table="PAY_ORD" type="8" />
|
||
|
<f name="TERM_ID" table="PAY_ORD" type="12" />
|
||
|
<f name="TERM_INFO_LONGITUDE" table="PAY_ORD" type="12" />
|
||
|
<f name="TERM_INFO_LATITUDE" table="PAY_ORD" type="12" />
|
||
|
<f name="TERM_INFO_NETWORK_LICENSE" table="PAY_ORD" type="12" />
|
||
|
<f name="TERM_INFO_DEVICE_TYPE" table="PAY_ORD" type="12" />
|
||
|
<f name="TERM_INFO_SERIAL_NUM" table="PAY_ORD" type="12" />
|
||
|
<f name="TERM_INFO_DEVICE_ID" table="PAY_ORD" type="12" />
|
||
|
<f name="TERM_INFO_SECRET_TEXT" table="PAY_ORD" type="12" />
|
||
|
<f name="TERM_INFO_APP_VERSION" table="PAY_ORD" type="12" />
|
||
|
<f name="TERM_INFO_TERM_IP" table="PAY_ORD" type="12" />
|
||
|
<f name="IS_CREDIT" table="PAY_ORD" type="12" />
|
||
|
<f name="WHETHER_NOTIFY" table="PAY_ORD" type="12" />
|
||
|
<f name="DETAIL_WX" table="PAY_ORD" type="12" />
|
||
|
<f name="DETAIL_ALI" table="PAY_ORD" type="12" />
|
||
|
<f name="GOODS_TAG" table="PAY_ORD" type="12" />
|
||
|
<f name="SUB_APP_ID_WX" table="PAY_ORD" type="12" />
|
||
|
<f name="WHETHER_CH" table="PAY_ORD" type="12" />
|
||
|
<f name="CLOUD_HORN_SN" table="PAY_ORD" type="12" />
|
||
|
<f name="TRANS_STATUS" table="PAY_ORD" type="12" />
|
||
|
<f name="T2112_CZRQ" table="PAY_ORD" type="93" />
|
||
|
<f name="T2112_CZR" table="PAY_ORD" type="12" />
|
||
|
<f name="T2112_REQ_TRACE_ID" table="PAY_ORD" type="12" />
|
||
|
<f name="T2112_REQ_DATE" table="PAY_ORD" type="12" />
|
||
|
<f name="T2103_CZRQ" table="PAY_ORD" type="93" />
|
||
|
<f name="T2103_CZR" table="PAY_ORD" type="12" />
|
||
|
<f name="T2103_REQ_TRACE_ID" table="PAY_ORD" type="12" />
|
||
|
<f name="T2103_REQ_DATE" table="PAY_ORD" type="12" />
|
||
|
<f name="T2103_ORDER_NO" table="PAY_ORD" type="12" />
|
||
|
<f name="T2106_CZRQ" table="PAY_ORD" type="93" />
|
||
|
<f name="T2106_CZR" table="PAY_ORD" type="12" />
|
||
|
<f name="T2106_REQ_TRACE_ID" table="PAY_ORD" type="12" />
|
||
|
<f name="T2106_REQ_DATE" table="PAY_ORD" type="12" />
|
||
|
<f name="T2106_ORDER_NO" table="PAY_ORD" type="12" />
|
||
|
<f name="T2108_CZRQ" table="PAY_ORD" type="93" />
|
||
|
<f name="T2108_CZR" table="PAY_ORD" type="12" />
|
||
|
<f name="T2108_REQ_TRACE_ID" table="PAY_ORD" type="12" />
|
||
|
<f name="T2108_REQ_DATE" table="PAY_ORD" type="12" />
|
||
|
<f name="T2108_CLOSE_STA" table="PAY_ORD" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<!-- 支付 订单 预消费结果表 管理用 -->
|
||
|
<dao id="daoSysdsPayToPayServiceForOrdTr2112Opt" type="1">
|
||
|
<sql>
|
||
|
<![CDATA[
|
||
|
select
|
||
|
t.PKEY
|
||
|
,t.CZR
|
||
|
,t.CZRQ
|
||
|
,t.JGID
|
||
|
,t.PAY_ORD_PKEY
|
||
|
,t.VERSION
|
||
|
,t.TXN_CODE
|
||
|
,t.CHANNEL_ID
|
||
|
,t.PLATFORM_ID
|
||
|
,t.REQ_TRACE_ID
|
||
|
,t.REQ_DATE
|
||
|
,t.REQ_RESERVED
|
||
|
,t.CERT_NUM
|
||
|
,t.REQ_SYSID
|
||
|
,t.IS_SIGN
|
||
|
,t.SIGNATURE
|
||
|
from PAY_ORD_TR2112 t
|
||
|
where 1 = 1
|
||
|
and t.JGID = ?
|
||
|
and t.PAY_ORD_PKEY = ?
|
||
|
and t.PKEY like ?
|
||
|
]]>
|
||
|
</sql>
|
||
|
<tables>
|
||
|
<table name="PAY_ORD_TR2112" insert="true" update="true" delete="false">
|
||
|
<primary>PKEY</primary>
|
||
|
<primary>JGID</primary>
|
||
|
<primary>CZRQ</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="PKEY" table="PAY_ORD_TR2112" type="12" />
|
||
|
<f name="CZR" table="PAY_ORD_TR2112" type="12" />
|
||
|
<f name="CZRQ" table="PAY_ORD_TR2112" type="93" />
|
||
|
<f name="JGID" table="PAY_ORD_TR2112" type="12" />
|
||
|
<f name="PAY_ORD_PKEY" table="PAY_ORD_TR2112" type="12" />
|
||
|
<f name="VERSION" table="PAY_ORD_TR2112" type="12" />
|
||
|
<f name="TXN_CODE" table="PAY_ORD_TR2112" type="12" />
|
||
|
<f name="CHANNEL_ID" table="PAY_ORD_TR2112" type="12" />
|
||
|
<f name="PLATFORM_ID" table="PAY_ORD_TR2112" type="12" />
|
||
|
<f name="REQ_TRACE_ID" table="PAY_ORD_TR2112" type="12" />
|
||
|
<f name="REQ_DATE" table="PAY_ORD_TR2112" type="12" />
|
||
|
<f name="REQ_RESERVED" table="PAY_ORD_TR2112" type="12" />
|
||
|
<f name="CERT_NUM" table="PAY_ORD_TR2112" type="12" />
|
||
|
<f name="REQ_SYSID" table="PAY_ORD_TR2112" type="12" />
|
||
|
<f name="IS_SIGN" table="PAY_ORD_TR2112" type="12" />
|
||
|
<f name="SIGNATURE" table="PAY_ORD_TR2112" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<!-- 支付 订单 关闭待支付结果 管理用 -->
|
||
|
<dao id="daoSysdsPayToPayServiceForOrdTr2108Opt" type="1">
|
||
|
<sql>
|
||
|
<![CDATA[
|
||
|
select
|
||
|
t.PKEY
|
||
|
,t.CZR
|
||
|
,t.CZRQ
|
||
|
,t.JGID
|
||
|
,t.PAY_ORD_PKEY
|
||
|
,t.VERSION
|
||
|
,t.TXN_CODE
|
||
|
,t.CHANNEL_ID
|
||
|
,t.PLATFORM_ID
|
||
|
,t.REQ_TRACE_ID
|
||
|
,t.REQ_DATE
|
||
|
,t.REQ_RESERVED
|
||
|
,t.CERT_NUM
|
||
|
,t.REQ_SYSID
|
||
|
,t.IS_SIGN
|
||
|
,t.SIGNATURE
|
||
|
,t.RESP_CD
|
||
|
,t.RESP_DESC
|
||
|
,t.CLOSE_STA
|
||
|
from PAY_ORD_TR2108 t
|
||
|
where 1 = 1
|
||
|
and t.JGID = ?
|
||
|
and t.PAY_ORD_PKEY = ?
|
||
|
and t.PKEY like ?
|
||
|
]]>
|
||
|
</sql>
|
||
|
<tables>
|
||
|
<table name="PAY_ORD_TR2108" insert="true" update="true" delete="false">
|
||
|
<primary>PKEY</primary>
|
||
|
<primary>JGID</primary>
|
||
|
<primary>CZRQ</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="PKEY" table="PAY_ORD_TR2108" type="12" />
|
||
|
<f name="CZR" table="PAY_ORD_TR2108" type="12" />
|
||
|
<f name="CZRQ" table="PAY_ORD_TR2108" type="93" />
|
||
|
<f name="JGID" table="PAY_ORD_TR2108" type="12" />
|
||
|
<f name="PAY_ORD_PKEY" table="PAY_ORD_TR2108" type="12" />
|
||
|
<f name="VERSION" table="PAY_ORD_TR2108" type="12" />
|
||
|
<f name="TXN_CODE" table="PAY_ORD_TR2108" type="12" />
|
||
|
<f name="CHANNEL_ID" table="PAY_ORD_TR2108" type="12" />
|
||
|
<f name="PLATFORM_ID" table="PAY_ORD_TR2108" type="12" />
|
||
|
<f name="REQ_TRACE_ID" table="PAY_ORD_TR2108" type="12" />
|
||
|
<f name="REQ_DATE" table="PAY_ORD_TR2108" type="12" />
|
||
|
<f name="REQ_RESERVED" table="PAY_ORD_TR2108" type="12" />
|
||
|
<f name="CERT_NUM" table="PAY_ORD_TR2108" type="12" />
|
||
|
<f name="REQ_SYSID" table="PAY_ORD_TR2108" type="12" />
|
||
|
<f name="IS_SIGN" table="PAY_ORD_TR2108" type="12" />
|
||
|
<f name="SIGNATURE" table="PAY_ORD_TR2108" type="12" />
|
||
|
<f name="RESP_CD" table="PAY_ORD_TR2108" type="12" />
|
||
|
<f name="RESP_DESC" table="PAY_ORD_TR2108" type="12" />
|
||
|
<f name="CLOSE_STA" table="PAY_ORD_TR2108" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<!-- 支付 订单 被扫二维码消费结果表 管理用 -->
|
||
|
<dao id="daoSysdsPayToPayServiceForOrdTr2103Opt" type="1">
|
||
|
<sql>
|
||
|
<![CDATA[
|
||
|
select
|
||
|
t.PKEY
|
||
|
,t.CZR
|
||
|
,t.CZRQ
|
||
|
,t.JGID
|
||
|
,t.PAY_ORD_PKEY
|
||
|
,t.VERSION
|
||
|
,t.TXN_CODE
|
||
|
,t.CHANNEL_ID
|
||
|
,t.PLATFORM_ID
|
||
|
,t.REQ_TRACE_ID
|
||
|
,t.REQ_DATE
|
||
|
,t.REQ_RESERVED
|
||
|
,t.CERT_NUM
|
||
|
,t.REQ_SYSID
|
||
|
,t.IS_SIGN
|
||
|
,t.SIGNATURE
|
||
|
,t.RESP_CD
|
||
|
,t.RESP_DESC
|
||
|
from PAY_ORD_TR2103 t
|
||
|
where 1 = 1
|
||
|
and t.JGID = ?
|
||
|
and t.PAY_ORD_PKEY = ?
|
||
|
and t.PKEY like ?
|
||
|
]]>
|
||
|
</sql>
|
||
|
<tables>
|
||
|
<table name="PAY_ORD_TR2103" insert="true" update="true" delete="false">
|
||
|
<primary>PKEY</primary>
|
||
|
<primary>JGID</primary>
|
||
|
<primary>CZRQ</primary>
|
||
|
</table>
|
||
|
</tables>
|
||
|
<fields>
|
||
|
<f name="PKEY" table="PAY_ORD_TR2103" type="12" />
|
||
|
<f name="CZR" table="PAY_ORD_TR2103" type="12" />
|
||
|
<f name="CZRQ" table="PAY_ORD_TR2103" type="93" />
|
||
|
<f name="JGID" table="PAY_ORD_TR2103" type="12" />
|
||
|
<f name="PAY_ORD_PKEY" table="PAY_ORD_TR2103" type="12" />
|
||
|
<f name="VERSION" table="PAY_ORD_TR2103" type="12" />
|
||
|
<f name="TXN_CODE" table="PAY_ORD_TR2103" type="12" />
|
||
|
<f name="CHANNEL_ID" table="PAY_ORD_TR2103" type="12" />
|
||
|
<f name="PLATFORM_ID" table="PAY_ORD_TR2103" type="12" />
|
||
|
<f name="REQ_TRACE_ID" table="PAY_ORD_TR2103" type="12" />
|
||
|
<f name="REQ_DATE" table="PAY_ORD_TR2103" type="12" />
|
||
|
<f name="REQ_RESERVED" table="PAY_ORD_TR2103" type="12" />
|
||
|
<f name="CERT_NUM" table="PAY_ORD_TR2103" type="12" />
|
||
|
<f name="REQ_SYSID" table="PAY_ORD_TR2103" type="12" />
|
||
|
<f name="IS_SIGN" table="PAY_ORD_TR2103" type="12" />
|
||
|
<f name="SIGNATURE" table="PAY_ORD_TR2103" type="12" />
|
||
|
<f name="RESP_CD" table="PAY_ORD_TR2103" type="12" />
|
||
|
<f name="RESP_DESC" table="PAY_ORD_TR2103" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
<!-- 支付 订单来源为门诊收费时,检核是否可以退费 -->
|
||
|
<dao id="daoSysdsPayToPayServiceForOrdpt2106TkForMS" type="1">
|
||
|
<sql>
|
||
|
<![CDATA[
|
||
|
select
|
||
|
t.PKEY
|
||
|
,t.MZFPPKEY
|
||
|
from HIS_MZJS_MZFPZFFSB t
|
||
|
where 1 = 1
|
||
|
and t.ZFLX = '800' --移动支付
|
||
|
and t.PJZT = '2' --作废
|
||
|
and t.ZFJE < 0 --退费
|
||
|
and t.PAY_ORD_PKEY = ?
|
||
|
]]>
|
||
|
</sql>
|
||
|
<fields>
|
||
|
<f name="PKEY" type="12" />
|
||
|
<f name="MZFPPKEY" type="12" />
|
||
|
</fields>
|
||
|
<parameter>
|
||
|
<p>12</p>
|
||
|
</parameter>
|
||
|
</dao>
|
||
|
</datasource>
|