发票综合查询税率导出

release
yishiqihuasheng 2 years ago
parent 760a933df2
commit 29c5ee612d
  1. 4
      dxhy-core/src/main/java/com/dxhy/core/service/export/impl/FpzhcxslServiceImpl.java
  2. 1
      dxhy-core/src/main/resources/mapper/BbfpzhslMapper.xml

@ -46,9 +46,9 @@ public class FpzhcxslServiceImpl extends MpBaseServiceImpl<BbfpzhslDao, Bbfpzhsl
DynamicContextHolder.push(pramsMap.get("dbName") + DbConstant.BUSINESS_READ); DynamicContextHolder.push(pramsMap.get("dbName") + DbConstant.BUSINESS_READ);
try { try {
List<String> gfshList = (List<String>)pramsMap.get("gfsh"); String gfsh = (String) pramsMap.get("gfsh");
String inAccountStatus = (String)pramsMap.get("inAccountStatus"); String inAccountStatus = (String)pramsMap.get("inAccountStatus");
if (gfshList.size() == 0) { if (StringUtils.isBlank(gfsh)) {
// 未从getUserInfo()获取到购方税号信息 // 未从getUserInfo()获取到购方税号信息
json.put("hjsl", "0"); json.put("hjsl", "0");
json.put("hjje", "0"); json.put("hjje", "0");

@ -31,6 +31,7 @@
where where
t.invoice_date between #{kpksrq} and #{kpjsrq} t.invoice_date between #{kpksrq} and #{kpjsrq}
and t.gf_tax_no = #{gfsh} and t.gf_tax_no = #{gfsh}
and t.comp_code = #{companyCode}
<if test="invoiceStatus != null and invoiceStatus != '' and invoiceStatus != 'null' and invoiceStatus != '99' "> <if test="invoiceStatus != null and invoiceStatus != '' and invoiceStatus != 'null' and invoiceStatus != '99' ">
and t.invoice_status = #{invoiceStatus} and t.invoice_status = #{invoiceStatus}
</if> </if>

Loading…
Cancel
Save