修改手工认证导出,加上暂挂相关字段

release
yishiqihuasheng 2 years ago
parent fbb4a64027
commit 8c4fef7c8c
  1. 4
      dxhy-core/src/main/java/com/dxhy/core/model/FpRzRespVO.java
  2. 5
      dxhy-core/src/main/java/com/dxhy/core/service/export/impl/RzFpxxServiceImpl.java
  3. 7
      dxhy-core/src/main/java/com/dxhy/core/thread/ManualAthensThread.java
  4. 13
      dxhy-core/src/main/resources/mapper/FpZhMapper.xml

@ -225,4 +225,8 @@ public class FpRzRespVO implements Serializable {
private String accountPeriod; private String accountPeriod;
private String bzr; private String bzr;
private String suspendStatus;
private String suspendDate;
} }

@ -71,7 +71,7 @@ public class RzFpxxServiceImpl extends MpBaseServiceImpl<FpxxZhDao, FpRzRespVO>
List<String[]> returnList = new ArrayList<>(); List<String[]> returnList = new ArrayList<>();
if (resultList != null && resultList.size() > 0) { if (resultList != null && resultList.size() > 0) {
for (int i = 0; i < pageList.size(); i++) { for (int i = 0; i < pageList.size(); i++) {
String[] dataArray = new String[23]; String[] dataArray = new String[25];
dataArray[0] = String.valueOf((curr - 1) * size + i + 1); dataArray[0] = String.valueOf((curr - 1) * size + i + 1);
dataArray[1] = pageList.get(i).getInvoiceCode(); dataArray[1] = pageList.get(i).getInvoiceCode();
dataArray[2] = pageList.get(i).getInvoiceNo(); dataArray[2] = pageList.get(i).getInvoiceNo();
@ -97,6 +97,8 @@ public class RzFpxxServiceImpl extends MpBaseServiceImpl<FpxxZhDao, FpRzRespVO>
dataArray[19] = pageList.get(i).getBzdh(); dataArray[19] = pageList.get(i).getBzdh();
dataArray[20] = pageList.get(i).getBzr(); dataArray[20] = pageList.get(i).getBzr();
dataArray[21] = pageList.get(i).getCompCode(); dataArray[21] = pageList.get(i).getCompCode();
dataArray[22] = pageList.get(i).getSuspendStatus();
dataArray[23] = pageList.get(i).getSuspendDate();
returnList.add(dataArray); returnList.add(dataArray);
} }
@ -199,6 +201,7 @@ public class RzFpxxServiceImpl extends MpBaseServiceImpl<FpxxZhDao, FpRzRespVO>
@Override @Override
public JSONObject selectByPramsMap(Map<String, Object> pramsMap, int curr, int size) { public JSONObject selectByPramsMap(Map<String, Object> pramsMap, int curr, int size) {
log.info("认证查询导出查询入参为{}",pramsMap);
DynamicContextHolder.push(pramsMap.get("dbName") + DbConstant.BUSINESS_READ); DynamicContextHolder.push(pramsMap.get("dbName") + DbConstant.BUSINESS_READ);
JSONObject json = new JSONObject(); JSONObject json = new JSONObject();
try { try {

@ -66,7 +66,8 @@ public class ManualAthensThread extends BaseThread {
* 导出excel的列名 * 导出excel的列名
*/ */
private final String[] titleColumns = {"序号", "发票代码", "发票号码", "发票类型","发票状态", "开票日期","购方名称", "销方名称", "金额", "税额", private final String[] titleColumns = {"序号", "发票代码", "发票号码", "发票类型","发票状态", "开票日期","购方名称", "销方名称", "金额", "税额",
"抵扣税额", "签收状态", "签收日期", "签收方式", "签收人","凭证号", "过账时间", "影像号", "账期", "报账单号", "报账人","所属组织"}; "抵扣税额", "签收状态", "签收日期", "签收方式", "签收人","凭证号", "过账时间", "影像号", "账期", "报账单号", "报账人","所属组织"
,"暂挂状态","暂挂区间"};
/** /**
@ -148,6 +149,8 @@ public class ManualAthensThread extends BaseThread {
String cjjsyf = prams.getString("cjjsyf"); String cjjsyf = prams.getString("cjjsyf");
String gfTaxNo = prams.getString("gfTaxNo"); String gfTaxNo = prams.getString("gfTaxNo");
String bzr = prams.getString("bzr"); String bzr = prams.getString("bzr");
String suspendStatus = prams.getString("suspendStastus");
String suspendDate = prams.getString("suspendDate");
String inAccountStatus = prams.getString("inAccountStatus"); String inAccountStatus = prams.getString("inAccountStatus");
String inAccountMonth = prams.getString("inAccountMonth"); String inAccountMonth = prams.getString("inAccountMonth");
JSONArray companyCodeArray = prams.getJSONArray("companyCodes"); JSONArray companyCodeArray = prams.getJSONArray("companyCodes");
@ -158,6 +161,8 @@ public class ManualAthensThread extends BaseThread {
pramsMap.put("bzdh",bzdh); pramsMap.put("bzdh",bzdh);
pramsMap.put("bzr",bzr); pramsMap.put("bzr",bzr);
pramsMap.put("businessCode",businessCode); pramsMap.put("businessCode",businessCode);
pramsMap.put("suspendStatus",suspendStatus);
pramsMap.put("suspendDate",suspendDate);
List<String> gfshList = new ArrayList<>(); List<String> gfshList = new ArrayList<>();
if (!StringHelper.isBlank(gfsh)) { if (!StringHelper.isBlank(gfsh)) {
gfshList = StringHelper.stringToList(gfsh); gfshList = StringHelper.stringToList(gfsh);

@ -487,6 +487,8 @@
<result column="ele_invoice_no" property="eleInvoiceNo"/> <result column="ele_invoice_no" property="eleInvoiceNo"/>
<result column="bzdh" property="bzdh"/> <result column="bzdh" property="bzdh"/>
<result column="bzr" property="bzr"/> <result column="bzr" property="bzr"/>
<result column="suspend_status" property="suspendStatus"/>
<result column="suspend_date" property="suspendDate"/>
<result column="comp_code" property="compCode"/> <result column="comp_code" property="compCode"/>
</resultMap> </resultMap>
<select id="selectByparams" parameterType="java.util.Map" <select id="selectByparams" parameterType="java.util.Map"
@ -497,7 +499,7 @@
,t.qs_type,t.qs_status,t.dk_tax_amount,t.qs_name,t.sn_voucher_number,t.posting_time,t.image_id,t.account_period, ,t.qs_type,t.qs_status,t.dk_tax_amount,t.qs_name,t.sn_voucher_number,t.posting_time,t.image_id,t.account_period,
case date_format(t.invoice_date,'%Y%m%d') between c.select_start_date and c.select_end_date when case date_format(t.invoice_date,'%Y%m%d') between c.select_start_date and c.select_end_date when
true then 1 true then 1
else 2 end authStatus,t.bzdh,t.bzr, else 2 end authStatus,t.bzdh,t.bzr,t.suspend_status,t.suspend_date,
t.inaccount_status,t.payment_status,DATE_FORMAT(t.payment_date,'%Y-%m-%d')payment_date,t.settlement_no,t.ele_invoice_no t.inaccount_status,t.payment_status,DATE_FORMAT(t.payment_date,'%Y-%m-%d')payment_date,t.settlement_no,t.ele_invoice_no
from t_dx_record_invoice t left join t_dx_tax_current c on t.gf_tax_no = c.taxno from t_dx_record_invoice t left join t_dx_tax_current c on t.gf_tax_no = c.taxno
left join t_dx_dk_count d on c.taxno = d.taxno and c.current_tax_period = d.skssq left join t_dx_dk_count d on c.taxno = d.taxno and c.current_tax_period = d.skssq
@ -541,6 +543,15 @@
<if test="bzr != null and bzr != '' and bzr != 'null'"> <if test="bzr != null and bzr != '' and bzr != 'null'">
and t.bzr like concat('%',#{bzr},'%') and t.bzr like concat('%',#{bzr},'%')
</if> </if>
<if test="suspendStatus != null and suspendStatus != '' and suspendStatus != 'null' and suspendStatus != '99' and suspendStatus == '1'.toString()">
and t.suspend_status = '1'
</if>
<if test="suspendStatus != null and suspendStatus != '' and suspendStatus != 'null' and suspendStatus != '99' and suspendStatus == '0'.toString()">
and (t.suspend_status = '' or t.suspend_status is null or t.suspend_status = '0')
</if>
<if test="suspendDate != null and suspendDate != '' and suspendDate != 'null' ">
and t.suspend_date = #{suspendDate}
</if>
<if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99'"> <if test="inAccountStatus != null and inAccountStatus != '' and inAccountStatus != 'null' and inAccountStatus != '99'">
and t.inaccount_status = #{inAccountStatus} and t.inaccount_status = #{inAccountStatus}
</if> </if>

Loading…
Cancel
Save