ariesy 去除数据源代码

release
yefei 2 years ago
parent 4d05bb33ac
commit 22a6220e82
  1. 8
      dxhy-core/src/main/resources/mapper/BbfpmxMapper.xml
  2. 8
      dxhy-core/src/main/resources/mapper/BbfpzhmxMapper.xml
  3. 2
      dxhy-core/src/main/resources/mapper/BbfpzhslMapper.xml
  4. 4
      dxhy-core/src/main/resources/mapper/BbycfpbbcxMapper.xml
  5. 8
      dxhy-core/src/main/resources/mapper/ExtPaperMapper.xml
  6. 4
      dxhy-core/src/main/resources/mapper/job/EnterpriseControlRulesDao.xml
  7. 8
      dxhy-core/src/main/resources/mapper/tab/TabDao.xml
  8. 4
      dxhy-erp/src/main/resources/mapper/AllTaxesDao.xml
  9. 2
      dxhy-erp/src/main/resources/mapper/AllTaxesSaleDao.xml
  10. 8
      dxhy-extend/src/main/resources/mapper/ExtBbfpmxMapper.xml
  11. 4
      dxhy-extend/src/main/resources/mapper/ExtBbycfpbbcxMapper.xml
  12. 4
      dxhy-extend/src/main/resources/mapper/ExtCompanyIndexMapper.xml
  13. 2
      dxhy-extend/src/main/resources/mapper/ExtSaleCountDao.xml
  14. 38
      dxhy-passengerTicket/src/main/resources/mapper/PassengerInvoiceStatisticsMapper.xml

@ -36,8 +36,8 @@
b.detail_no,b.unit,b.goods_name,b.model,b.num,b.unit_price,b.detail_amount,b.tax_rate,b.tax_amount, b.detail_no,b.unit,b.goods_name,b.model,b.num,b.unit_price,b.detail_amount,b.tax_rate,b.tax_amount,
b.cph,b.lx,b.txrqq,b.txrqz b.cph,b.lx,b.txrqq,b.txrqz
FROM FROM
${dxhyTertiary}.t_dx_record_invoice t t_dx_record_invoice t
left join ${dxhyDetail}.t_dx_record_invoice_detail b on t.uuid = b.uuid left join t_dx_record_invoice_detail b on t.uuid = b.uuid
where t.invoice_date between #{kpksrq} and #{kpjsrq} where t.invoice_date between #{kpksrq} and #{kpjsrq}
and t.gf_tax_no in and t.gf_tax_no in
<foreach collection="gfsh" index="index" item="item" open="(" separator="," close=")"> <foreach collection="gfsh" index="index" item="item" open="(" separator="," close=")">
@ -75,8 +75,8 @@
b.detail_no,b.unit,b.goods_name,b.model,b.num,b.unit_price,b.detail_amount,b.tax_rate,b.tax_amount, b.detail_no,b.unit,b.goods_name,b.model,b.num,b.unit_price,b.detail_amount,b.tax_rate,b.tax_amount,
b.cph,b.lx,b.txrqq,b.txrqz b.cph,b.lx,b.txrqq,b.txrqz
FROM FROM
${dxhyTertiary}.t_dx_record_invoice t t_dx_record_invoice t
left join ${dxhyDetail}.t_dx_record_invoice_detail b on t.uuid = b.uuid left join t_dx_record_invoice_detail b on t.uuid = b.uuid
where t.invoice_date between to_date(#{kpksrq},'yyyy-mm-dd hh24:mi:ss') and to_date(#{kpjsrq},'yyyy-mm-dd hh24:mi:ss') where t.invoice_date between to_date(#{kpksrq},'yyyy-mm-dd hh24:mi:ss') and to_date(#{kpjsrq},'yyyy-mm-dd hh24:mi:ss')
and t.gf_tax_no in and t.gf_tax_no in
<foreach collection="gfsh" index="index" item="item" open="(" separator="," close=")"> <foreach collection="gfsh" index="index" item="item" open="(" separator="," close=")">

@ -49,8 +49,8 @@
dj,b.detail_amount je,b.tax_amount se,b.tax_rate sl, dj,b.detail_amount je,b.tax_amount se,b.tax_rate sl,
t.inaccount_status,b.cph,b.lx,b.txrqq,b.txrqz t.inaccount_status,b.cph,b.lx,b.txrqq,b.txrqz
from from
${dxhyTertiary}.t_dx_record_invoice t t_dx_record_invoice t
left JOIN ${dxhyDetail}.t_dx_record_invoice_detail b ON t.uuid = b.uuid left JOIN t_dx_record_invoice_detail b ON t.uuid = b.uuid
WHERE t.invoice_date between #{kpksrq} and #{kpjsrq} WHERE t.invoice_date between #{kpksrq} and #{kpjsrq}
and t.gf_tax_no = #{gfsh} and t.gf_tax_no = #{gfsh}
and (t.comp_code = #{companyCode} or t.comp_code is null or t.comp_code = '') and (t.comp_code = #{companyCode} or t.comp_code is null or t.comp_code = '')
@ -198,8 +198,8 @@
dj,b.detail_amount je,b.tax_amount se,b.tax_rate sl, dj,b.detail_amount je,b.tax_amount se,b.tax_rate sl,
t.in_account_status,b.cph,b.lx,b.txrqq,b.txrqz t.in_account_status,b.cph,b.lx,b.txrqq,b.txrqz
from from
${dxhyTertiary}.t_dx_record_invoice t t_dx_record_invoice t
left JOIN ${dxhyDetail}.t_dx_record_invoice_detail b ON t.uuid = b.uuid left JOIN t_dx_record_invoice_detail b ON t.uuid = b.uuid
where where
t.invoice_date between to_date(#{kpksrq},'yyyy-mm-dd hh24:mi:ss') and to_date(#{kpjsrq},'yyyy-mm-dd hh24:mi:ss') t.invoice_date between to_date(#{kpksrq},'yyyy-mm-dd hh24:mi:ss') and to_date(#{kpjsrq},'yyyy-mm-dd hh24:mi:ss')
and t.gf_tax_no in and t.gf_tax_no in

@ -25,7 +25,7 @@
tdis.tax_rate taxRate, tdis.tax_rate taxRate,
t.inaccount_status t.inaccount_status
from t_dx_record_invoice t from t_dx_record_invoice t
left join dxhy_detail.t_dx_record_invoice_detail tdis left join t_dx_record_invoice_detail tdis
<!--on t.invoice_code = tdis.invoice_code and t.invoice_no = tdis.invoice_no--> <!--on t.invoice_code = tdis.invoice_code and t.invoice_no = tdis.invoice_no-->
on t.uuid = tdis.uuid on t.uuid = tdis.uuid
where where

@ -49,7 +49,7 @@
select t.invoice_status yczt,o.taxno gfsh,o.taxname gfmc,count(1) select t.invoice_status yczt,o.taxno gfsh,o.taxname gfmc,count(1)
hjsl,sum(t.invoice_amount)hjje,sum(t.tax_amount)hjse hjsl,sum(t.invoice_amount)hjje,sum(t.tax_amount)hjse
from ${dxhyTertiary}.t_dx_record_invoice t from t_dx_record_invoice t
where t.invoice_status != '0' where t.invoice_status != '0'
and t.invoice_type in ('01','03','08','14') and t.invoice_type in ('01','03','08','14')
and to_char(t.invoice_date,'yyyy-mm-dd') between #{kpksrq} and #{kpjsrq} and to_char(t.invoice_date,'yyyy-mm-dd') between #{kpksrq} and #{kpjsrq}
@ -95,7 +95,7 @@
<select id="selectHjxx" parameterType="java.util.Map" <select id="selectHjxx" parameterType="java.util.Map"
resultMap="hjxxMap" databaseId="oracle"> resultMap="hjxxMap" databaseId="oracle">
select count(1) hjsl,sum(t.invoice_amount)hjje,sum(t.tax_amount)hjse select count(1) hjsl,sum(t.invoice_amount)hjje,sum(t.tax_amount)hjse
from ${dxhyTertiary}.t_dx_record_invoice t from t_dx_record_invoice t
where t.invoice_status != '0' where t.invoice_status != '0'
and t.invoice_type in ('01','03','14') and t.invoice_type in ('01','03','14')
and t.invoice_date between to_date(#{kpksrq},'yyyy-mm-dd hh24:mi:ss') and to_date(#{kpjsrq},'yyyy-mm-dd and t.invoice_date between to_date(#{kpksrq},'yyyy-mm-dd hh24:mi:ss') and to_date(#{kpjsrq},'yyyy-mm-dd

@ -519,8 +519,8 @@
dj,b.detail_amount je,b.tax_amount se,b.tax_rate sl,b.cph cph, b.lx lx,b.txrqq txrqq,b.txrqz txrqz, dj,b.detail_amount je,b.tax_amount se,b.tax_rate sl,b.cph cph, b.lx lx,b.txrqq txrqq,b.txrqz txrqz,
t.in_account_status t.in_account_status
from from
${dxhyTertiary}.t_dx_record_invoice t t_dx_record_invoice t
left JOIN ${dxhyDetail}.t_dx_record_invoice_detail b ON t.uuid = b.uuid left JOIN t_dx_record_invoice_detail b ON t.uuid = b.uuid
where '1' = '1' where '1' = '1'
<if test="cjksyf != null and cjksyf!= '' and cjjsyf != null and cjjsyf != ''"> <if test="cjksyf != null and cjksyf!= '' and cjjsyf != null and cjjsyf != ''">
AND t.create_date BETWEEN #{cjksyf} and #{cjjsyf} AND t.create_date BETWEEN #{cjksyf} and #{cjjsyf}
@ -632,8 +632,8 @@
dj,b.detail_amount je,b.tax_amount se,b.tax_rate sl,b.cph cph, b.lx lx,b.txrqq txrqq,b.txrqz txrqz, dj,b.detail_amount je,b.tax_amount se,b.tax_rate sl,b.cph cph, b.lx lx,b.txrqq txrqq,b.txrqz txrqz,
t.in_account_status,b.incentive_flag incentiveFlag t.in_account_status,b.incentive_flag incentiveFlag
from from
${dxhyTertiary}.t_dx_sale_record_invoice t t_dx_sale_record_invoice t
left JOIN ${dxhyDetail}.t_dx_record_invoice_detail_sales b ON t.uuid = b.uuid left JOIN t_dx_record_invoice_detail_sales b ON t.uuid = b.uuid
where 1 = 1 where 1 = 1
<if test="cjksyf != null and cjksyf!= '' and cjjsyf != null and cjjsyf != ''"> <if test="cjksyf != null and cjksyf!= '' and cjjsyf != null and cjjsyf != ''">
AND t.create_date between #{cjksyf} and #{cjjsyf} AND t.create_date between #{cjksyf} and #{cjjsyf}

@ -66,8 +66,8 @@
t.gf_address_and_phone,t.gf_bank_and_no,t.xf_tax_no,t.xf_name,t.xf_address_and_phone, t.gf_address_and_phone,t.gf_bank_and_no,t.xf_tax_no,t.xf_name,t.xf_address_and_phone,
t.xf_bank_and_no,t.remark,t.total_amount,b.model,b.unit,b.num,b.unit_price,b.goods_name t.xf_bank_and_no,t.remark,t.total_amount,b.model,b.unit,b.num,b.unit_price,b.goods_name
FROM FROM
${dxhyTertiary}.t_dx_record_invoice t t_dx_record_invoice t
left join ${dxhyDetail}.t_dx_record_invoice_detail b on t.uuid = b.uuid left join t_dx_record_invoice_detail b on t.uuid = b.uuid
where t.gf_tax_no = #{taxNo} and invoice_status ='0' where t.gf_tax_no = #{taxNo} and invoice_status ='0'
<if test="vatInvoiceType!=null and vatInvoiceType!=''"> <if test="vatInvoiceType!=null and vatInvoiceType!=''">
and t.invoice_type in and t.invoice_type in

@ -62,7 +62,7 @@
sum(if(a.invoice_type = '185', truncate(a.tax_amount,2), 0)) qdzzTaxAmount, sum(if(a.invoice_type = '185', truncate(a.tax_amount,2), 0)) qdzzTaxAmount,
sum(if(a.invoice_type = '32', truncate(a.tax_amount,2), 0)) qdpTaxAmount sum(if(a.invoice_type = '32', truncate(a.tax_amount,2), 0)) qdpTaxAmount
FROM FROM
${dxhyTertiary}.t_dx_record_invoice a INNER JOIN ${dxhyAdmin}.sys_dept b t_dx_record_invoice a INNER JOIN sys_dept b
where where
a.gf_tax_no = b.taxno a.gf_tax_no = b.taxno
AND AND
@ -231,8 +231,8 @@
count(1) invoiceNum, count(1) invoiceNum,
TRUNC(sum(t.invoice_amount),2) invoiceAmount TRUNC(sum(t.invoice_amount),2) invoiceAmount
FROM FROM
${dxhyTertiary}.t_dx_record_invoice t_dx_record_invoice
left join ${dxhyAdmin}.sys_dept a on t.gf_tax_no = a.taxno left join sys_dept a on t.gf_tax_no = a.taxno
where where
t.gf_tax_no = #{taxno} t.gf_tax_no = #{taxno}
AND AND
@ -282,7 +282,7 @@
sum(case when a.invoice_type = '185'then a.tax_amount else 0 end) qdzzTaxAmount, sum(case when a.invoice_type = '185'then a.tax_amount else 0 end) qdzzTaxAmount,
sum(case when a.invoice_type = '32'then a.tax_amount else 0 end) qdpTaxAmount sum(case when a.invoice_type = '32'then a.tax_amount else 0 end) qdpTaxAmount
FROM FROM
${dxhyTertiary}.T_DX_RECORD_INVOICE a INNER JOIN ${dxhyAdmin}.SYS_DEPT b T_DX_RECORD_INVOICE a INNER JOIN SYS_DEPT b
on a.gf_tax_no = b.taxno on a.gf_tax_no = b.taxno
where where
a.gf_tax_no = #{taxno} a.gf_tax_no = #{taxno}

@ -196,7 +196,7 @@
a.dk_taxname replaceCompanyName a.dk_taxname replaceCompanyName
FROM FROM
t_dx_record_invoice a t_dx_record_invoice a
INNER JOIN ${dxhyDetail}.t_dx_record_invoice_detail b INNER JOIN t_dx_record_invoice_detail b
WHERE WHERE
a.uuid = b.uuid a.uuid = b.uuid
AND a.rzh_belong_date = #{rzhBelongDate} AND a.rzh_belong_date = #{rzhBelongDate}
@ -429,7 +429,7 @@
unit_price unitPrice, unit_price unitPrice,
model specificationModel, model specificationModel,
unit unit unit unit
FROM ${dxhyDetail}.t_dx_record_invoice_detail FROM t_dx_record_invoice_detail
WHERE uuid = #{uuid} WHERE uuid = #{uuid}
</select> </select>
<!-- 查询汇总表正常状态 --> <!-- 查询汇总表正常状态 -->

@ -92,7 +92,7 @@
<select id="getInvoiceCountByTaxRate" resultType="com.dxhy.erp.entity.alltax.SaleInvoiceRatePo"> <select id="getInvoiceCountByTaxRate" resultType="com.dxhy.erp.entity.alltax.SaleInvoiceRatePo">
select t.invoice_type,t.invoice_status,ifnull(t1.tax_rate,0) taxRate,ifnull(sum(t1.detail_amount*100)/100,0) select t.invoice_type,t.invoice_status,ifnull(t1.tax_rate,0) taxRate,ifnull(sum(t1.detail_amount*100)/100,0)
invoiceAmount,ifnull(sum(t1.tax_amount*100)/100,0) taxAmount from t_dx_sale_record_invoice t left join invoiceAmount,ifnull(sum(t1.tax_amount*100)/100,0) taxAmount from t_dx_sale_record_invoice t left join
dxhy_detail.t_dx_record_invoice_detail_sales t1 on t.uuid=t1.uuid where t.xf_tax_no = #{taxno} t_dx_record_invoice_detail_sales t1 on t.uuid=t1.uuid where t.xf_tax_no = #{taxno}
and t.invoice_type in ('01','08','04','10','11') and t.invoice_type in ('01','08','04','10','11')
and date_format(t.invoice_date,'%Y%m') in and date_format(t.invoice_date,'%Y%m') in
<foreach collection="monthList" item="item" separator="," open="(" close=")"> <foreach collection="monthList" item="item" separator="," open="(" close=")">

@ -36,8 +36,8 @@
b.detail_no,b.unit,b.goods_name,b.model,b.num,b.unit_price,b.detail_amount,b.tax_rate,b.tax_amount, b.detail_no,b.unit,b.goods_name,b.model,b.num,b.unit_price,b.detail_amount,b.tax_rate,b.tax_amount,
b.cph,b.lx,b.txrqq,b.txrqz b.cph,b.lx,b.txrqq,b.txrqz
FROM FROM
${dxhyTertiary}.t_dx_record_invoice t t_dx_record_invoice t
left join ${dxhyDetail}.t_dx_record_invoice_detail b on t.uuid = b.uuid left join t_dx_record_invoice_detail b on t.uuid = b.uuid
where t.invoice_date between #{kpksrq} and #{kpjsrq} where t.invoice_date between #{kpksrq} and #{kpjsrq}
and t.gf_tax_no = #{gfsh} and t.gf_tax_no = #{gfsh}
and (t.comp_code = #{companyCode} or t.comp_code = '' or t.comp_code is null) and (t.comp_code = #{companyCode} or t.comp_code = '' or t.comp_code is null)
@ -70,8 +70,8 @@
b.detail_no,b.unit,b.goods_name,b.model,b.num,b.unit_price,b.detail_amount,b.tax_rate,b.tax_amount, b.detail_no,b.unit,b.goods_name,b.model,b.num,b.unit_price,b.detail_amount,b.tax_rate,b.tax_amount,
b.cph,b.lx,b.txrqq,b.txrqz b.cph,b.lx,b.txrqq,b.txrqz
FROM FROM
${dxhyTertiary}.t_dx_record_invoice t t_dx_record_invoice t
left join ${dxhyDetail}.t_dx_record_invoice_detail b on t.uuid = b.uuid left join t_dx_record_invoice_detail b on t.uuid = b.uuid
where t.invoice_date between to_date(#{kpksrq},'yyyy-mm-dd hh24:mi:ss') and to_date(#{kpjsrq},'yyyy-mm-dd hh24:mi:ss') where t.invoice_date between to_date(#{kpksrq},'yyyy-mm-dd hh24:mi:ss') and to_date(#{kpjsrq},'yyyy-mm-dd hh24:mi:ss')
and t.gf_tax_no in and t.gf_tax_no in
<foreach collection="gfsh" index="index" item="item" open="(" separator="," close=")"> <foreach collection="gfsh" index="index" item="item" open="(" separator="," close=")">

@ -48,7 +48,7 @@
select t.invoice_status yczt,o.taxno gfsh,o.taxname gfmc,count(1) select t.invoice_status yczt,o.taxno gfsh,o.taxname gfmc,count(1)
hjsl,sum(t.invoice_amount)hjje,sum(t.tax_amount)hjse hjsl,sum(t.invoice_amount)hjje,sum(t.tax_amount)hjse
from ${dxhyTertiary}.t_dx_record_invoice t from t_dx_record_invoice t
where t.invoice_status != '0' where t.invoice_status != '0'
and t.invoice_type in ('01','03','08','14') and t.invoice_type in ('01','03','08','14')
and t.company = #{company} and t.company = #{company}
@ -93,7 +93,7 @@
resultMap="hjxxMap" databaseId="oracle"> resultMap="hjxxMap" databaseId="oracle">
select count(1) hjsl,sum(t.invoice_amount)hjje,sum(t.tax_amount)hjse select count(1) hjsl,sum(t.invoice_amount)hjje,sum(t.tax_amount)hjse
from ${dxhyTertiary}.t_dx_record_invoice t from t_dx_record_invoice t
where t.invoice_status != '0' where t.invoice_status != '0'
and t.invoice_type in ('01','03','08','14') and t.invoice_type in ('01','03','08','14')
and t.company = #{company} and t.company = #{company}

@ -150,7 +150,7 @@
dictcode, dictcode,
dictname dictname
FROM FROM
dxhy_admin.sys_dictdeta sys_dictdeta
WHERE WHERE
dicttypecode = 'XXPCLX_ALL' dicttypecode = 'XXPCLX_ALL'
AND dictcode !=99 AND dictcode !=99
@ -193,7 +193,7 @@
dictcode, dictcode,
dictname dictname
FROM FROM
dxhy_admin.sys_dictdeta sys_dictdeta
WHERE WHERE
dicttypecode = 'XXPCLX_ALL' dicttypecode = 'XXPCLX_ALL'
AND dictcode !=99 AND dictcode !=99

@ -70,7 +70,7 @@
<select id="querySaleItemInvoices" resultType="com.dxhy.extend.entity.ExtSaleItemInvoiceModel"> <select id="querySaleItemInvoices" resultType="com.dxhy.extend.entity.ExtSaleItemInvoiceModel">
select distinct DATE_FORMAT(t.invoice_date,'%Y-%m-%d') select distinct DATE_FORMAT(t.invoice_date,'%Y-%m-%d')
invoiceDate,t.invoice_code,t.invoice_no,t.gf_name,t.gf_tax_no,t.invoice_amount,t.tax_amount,t.total_amount,t.invoice_type,t.invoice_status invoiceDate,t.invoice_code,t.invoice_no,t.gf_name,t.gf_tax_no,t.invoice_amount,t.tax_amount,t.total_amount,t.invoice_type,t.invoice_status
from t_dx_sale_record_invoice t left join dxhy_detail.t_dx_record_invoice_detail_sales t1 on t.uuid = t1.uuid from t_dx_sale_record_invoice t left join t_dx_record_invoice_detail_sales t1 on t.uuid = t1.uuid
where where
t1.incentive_flag like CONCAT('%',#{yhzc},'%') and t1.tax_rate in t1.incentive_flag like CONCAT('%',#{yhzc},'%') and t1.tax_rate in
<foreach collection="taxRate" index="index" item="item" open="(" separator="," close=")"> <foreach collection="taxRate" index="index" item="item" open="(" separator="," close=")">

@ -93,7 +93,7 @@
SELECT count(t.id) AS monthCount, SELECT count(t.id) AS monthCount,
sum(t.tax_amount) AS monthTaxAmount sum(t.tax_amount) AS monthTaxAmount
FROM ${dxhyTertiary}.t_dx_invoice_reimburse t FROM t_dx_invoice_reimburse t
WHERE t.gf_tax_no = #{gfTaxNo} WHERE t.gf_tax_no = #{gfTaxNo}
AND t.is_deduction = '0' AND t.is_deduction = '0'
@ -104,8 +104,8 @@
AND ( AND (
(t.is_domestic = '0' AND t.invoice_type IN ('92', '89', '88', '87')) (t.is_domestic = '0' AND t.invoice_type IN ('92', '89', '88', '87'))
OR (t.invoice_type = '90' AND OR (t.invoice_type = '90' AND
exists(select area_name from ${dxhyAdmin}.sys_city where locate(area_name, t.departure_city)) exists(select area_name from sys_city where locate(area_name, t.departure_city))
AND exists(select area_name from ${dxhyAdmin}.sys_city where locate(area_name, t.reaching_city))) AND exists(select area_name from sys_city where locate(area_name, t.reaching_city)))
OR ( OR (
t.invoice_type = '10' t.invoice_type = '10'
AND t.invoice_date > '2019-04-01 00:00:00' AND t.invoice_date > '2019-04-01 00:00:00'
@ -119,7 +119,7 @@
databaseId="mysql"> databaseId="mysql">
SELECT count(t.id) AS yearCount, SELECT count(t.id) AS yearCount,
sum(t.tax_amount) AS yearTaxAmount sum(t.tax_amount) AS yearTaxAmount
FROM ${dxhyTertiary}.t_dx_invoice_reimburse t FROM t_dx_invoice_reimburse t
WHERE t.gf_tax_no = #{gfTaxNo} WHERE t.gf_tax_no = #{gfTaxNo}
AND YEAR(t.create_date) = #{year} AND YEAR(t.create_date) = #{year}
@ -127,8 +127,8 @@
AND ( AND (
(t.is_domestic = '0' AND t.invoice_type IN ('92', '89', '88', '87')) (t.is_domestic = '0' AND t.invoice_type IN ('92', '89', '88', '87'))
OR (t.invoice_type = '90' AND OR (t.invoice_type = '90' AND
exists(select area_name from ${dxhyAdmin}.sys_city where locate(area_name, t.departure_city)) exists(select area_name from sys_city where locate(area_name, t.departure_city))
AND exists(select area_name from ${dxhyAdmin}.sys_city where locate(area_name, t.reaching_city))) AND exists(select area_name from sys_city where locate(area_name, t.reaching_city)))
OR (t.invoice_type = '10' AND t.invoice_date > '2019-04-01 00:00:00' AND t.tag LIKE '%运输服务%') OR (t.invoice_type = '10' AND t.invoice_date > '2019-04-01 00:00:00' AND t.tag LIKE '%运输服务%')
) )
</select> </select>
@ -258,7 +258,7 @@
SELECT count(t.id) count, SELECT count(t.id) count,
sum(t.tax_amount) taxAmountsum, sum(t.tax_amount) taxAmountsum,
sum(t.tax_amount) authenticationTaxAmountsum sum(t.tax_amount) authenticationTaxAmountsum
FROM ${dxhyTertiary}.t_dx_invoice_reimburse t FROM t_dx_invoice_reimburse t
WHERE t.gf_tax_no = #{gfTaxNo} WHERE t.gf_tax_no = #{gfTaxNo}
AND date_format(t.create_date, '%Y-%m-%d') &gt;= date_format(#{monthStart}, '%Y-%m-%d') AND date_format(t.create_date, '%Y-%m-%d') &gt;= date_format(#{monthStart}, '%Y-%m-%d')
@ -267,8 +267,8 @@
AND t.invoice_type = '90' AND t.invoice_type = '90'
AND t.is_deduction = '0' AND t.is_deduction = '0'
AND exists(select area_name from ${dxhyAdmin}.sys_city where locate(area_name, t.departure_city)) AND exists(select area_name from sys_city where locate(area_name, t.departure_city))
AND exists(select area_name from ${dxhyAdmin}.sys_city where locate(area_name, t.reaching_city)) AND exists(select area_name from sys_city where locate(area_name, t.reaching_city))
</select> </select>
<select id="slelectPassengerTicketaHighwayVo" <select id="slelectPassengerTicketaHighwayVo"
@ -410,15 +410,15 @@
SELECT count(t.id) AS monthCount, SELECT count(t.id) AS monthCount,
sum(t.tax_amount) AS monthTaxAmount sum(t.tax_amount) AS monthTaxAmount
FROM ${dxhyTertiary}.t_dx_invoice_reimburse t FROM t_dx_invoice_reimburse t
WHERE t.gf_tax_no = #{ gfTaxNo } WHERE t.gf_tax_no = #{ gfTaxNo }
AND t.is_deduction = '0' AND t.is_deduction = '0'
AND t.create_date &gt;= to_date(#{ monthStart }, 'yyyy-mm-dd') AND t.create_date &gt;= to_date(#{ monthStart }, 'yyyy-mm-dd')
AND t.create_date &lt; to_date(#{ monthEnd }, 'yyyy-mm-dd') AND t.create_date &lt; to_date(#{ monthEnd }, 'yyyy-mm-dd')
AND ( AND (
(t.is_domestic = '0' AND t.invoice_type IN ('92', '89', '88', '87')) (t.is_domestic = '0' AND t.invoice_type IN ('92', '89', '88', '87'))
OR (t.invoice_type = '90' AND t.departure_city in (select area_name from ${dxhyAdmin}.sys_city) OR (t.invoice_type = '90' AND t.departure_city in (select area_name from sys_city)
AND t.reaching_city in (select area_name from ${dxhyAdmin}.sys_city)) AND t.reaching_city in (select area_name from sys_city))
OR ( OR (
t.invoice_type = '10' t.invoice_type = '10'
AND t.invoice_date > '2019-04-01 00:00:00' AND t.invoice_date > '2019-04-01 00:00:00'
@ -432,15 +432,15 @@
databaseId="oracle"> databaseId="oracle">
SELECT count(t.id) AS yearCount, SELECT count(t.id) AS yearCount,
sum(t.tax_amount) AS yearTaxAmount sum(t.tax_amount) AS yearTaxAmount
FROM ${dxhyTertiary}.t_dx_invoice_reimburse t, FROM t_dx_invoice_reimburse t,
${dxhyAdmin}.sys_city c sys_city c
WHERE t.gf_tax_no = #{ gfTaxNo } WHERE t.gf_tax_no = #{ gfTaxNo }
AND to_char(t.invoice_date, 'yyyy') = #{ year } AND to_char(t.invoice_date, 'yyyy') = #{ year }
AND t.is_deduction = '0' AND t.is_deduction = '0'
AND ( AND (
(t.is_domestic = '0' AND t.invoice_type IN ('92', '89', '88', '87')) (t.is_domestic = '0' AND t.invoice_type IN ('92', '89', '88', '87'))
OR (t.invoice_type = '90' AND t.departure_city in (select area_name from ${dxhyAdmin}.sys_city) OR (t.invoice_type = '90' AND t.departure_city in (select area_name from sys_city)
AND t.reaching_city in (select area_name from ${dxhyAdmin}.sys_city)) AND t.reaching_city in (select area_name from sys_city))
OR (t.invoice_type = '10' AND t.invoice_date > '2019-04-01 00:00:00' AND t.tag LIKE '%运输服务%')) OR (t.invoice_type = '10' AND t.invoice_date > '2019-04-01 00:00:00' AND t.tag LIKE '%运输服务%'))
</select> </select>
<select id="selectReimOtherInvoiceMonthCar" <select id="selectReimOtherInvoiceMonthCar"
@ -538,14 +538,14 @@
SELECT count(t.id) AS count, SELECT count(t.id) AS count,
sum(t.tax_amount) AS taxAmountsum, sum(t.tax_amount) AS taxAmountsum,
sum(t.tax_amount) AS authenticationTaxAmountsum sum(t.tax_amount) AS authenticationTaxAmountsum
FROM ${dxhyTertiary}.t_dx_invoice_reimburse t FROM t_dx_invoice_reimburse t
WHERE t.gf_tax_no = #{gfTaxNo} WHERE t.gf_tax_no = #{gfTaxNo}
and t.create_date &gt;= to_date(#{monthStart}, 'yyyy-mm-dd') and t.create_date &gt;= to_date(#{monthStart}, 'yyyy-mm-dd')
and t.create_date &lt; to_date(#{monthEnd}, 'yyyy-mm-dd') and t.create_date &lt; to_date(#{monthEnd}, 'yyyy-mm-dd')
and t.invoice_type = '90' and t.invoice_type = '90'
and t.is_deduction = '0' and t.is_deduction = '0'
AND t.departure_city in (select area_name from ${dxhyAdmin}.sys_city) AND t.departure_city in (select area_name from sys_city)
AND t.reaching_city in (select area_name from ${dxhyAdmin}.sys_city) AND t.reaching_city in (select area_name from sys_city)
</select> </select>
<select id="slelectPassengerTicketaHighwayVo" <select id="slelectPassengerTicketaHighwayVo"

Loading…
Cancel
Save