|
|
|
@ -7,6 +7,7 @@ import java.util.*; |
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.apache.commons.lang.StringUtils; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
@ -44,6 +45,7 @@ import cn.hutool.core.codec.Base64; |
|
|
|
|
* @author dxhy |
|
|
|
|
*/ |
|
|
|
|
@SuppressWarnings("AlibabaMethodTooLong") |
|
|
|
|
@Slf4j |
|
|
|
|
@Service |
|
|
|
|
public class DomesticExportInvoiceCkServiceImpl extends ServiceImpl<DomesticExportInvoiceDao, TdxExportInvoice> |
|
|
|
|
implements DomesticExportInvoiceCkService { |
|
|
|
@ -89,20 +91,22 @@ public class DomesticExportInvoiceCkServiceImpl extends ServiceImpl<DomesticExpo |
|
|
|
|
for (int i = 0; i < page.getRecords().size(); i++) { |
|
|
|
|
Map<String, Object> map = result.getRecords().get(i); |
|
|
|
|
|
|
|
|
|
String invoiceStatus = (String)map.get("invoiceStatus"); |
|
|
|
|
String invoiceStatus = (String) map.get("invoiceStatus"); |
|
|
|
|
|
|
|
|
|
map.put("xh", |
|
|
|
|
String.valueOf((((page.getCurrent() == 0 ? 1 : page.getCurrent()) - 1) * page.getSize()) + i + 1)); |
|
|
|
|
map.put("xh", String.valueOf((((page.getCurrent() == 0 ? 1 : page.getCurrent()) - 1) * page.getSize()) + i + 1)); |
|
|
|
|
if (map.get("invoiceDate") != null) { |
|
|
|
|
map.put("invoiceDate", sdf.format(map.get("invoiceDate"))); |
|
|
|
|
String invoiceDate = map.get("invoiceDate").toString(); |
|
|
|
|
log.info("invoiceDate={}", invoiceDate); |
|
|
|
|
if (invoiceDate != null && StringUtils.isNotBlank(invoiceDate)) |
|
|
|
|
map.put("invoiceDate", sdf.format(invoiceDate)); |
|
|
|
|
} |
|
|
|
|
map.put("invoiceStatus", dictdetaServcice.queryDictName(DictConstant.INVOICE_STATUS, invoiceStatus)); |
|
|
|
|
|
|
|
|
|
map.put("exportAmount", AmountFormatUtil |
|
|
|
|
.fmtMicrometer(MathUtil.round(((BigDecimal)map.get("exportAmount")).toPlainString()))); |
|
|
|
|
.fmtMicrometer(MathUtil.round(((BigDecimal) map.get("exportAmount")).toPlainString()))); |
|
|
|
|
map.put("exportTaxAmount", AmountFormatUtil |
|
|
|
|
.fmtMicrometer(MathUtil.round(((BigDecimal)map.get("exportTaxAmount")).toPlainString()))); |
|
|
|
|
map.put("exportYxse", MathUtil.round(((BigDecimal)map.get("exportYxse")).toPlainString())); |
|
|
|
|
.fmtMicrometer(MathUtil.round(((BigDecimal) map.get("exportTaxAmount")).toPlainString()))); |
|
|
|
|
map.put("exportYxse", MathUtil.round(((BigDecimal) map.get("exportYxse")).toPlainString())); |
|
|
|
|
map.put("select", true); |
|
|
|
|
map.put("upgradeStatus", "1"); |
|
|
|
|
|
|
|
|
@ -128,7 +132,7 @@ public class DomesticExportInvoiceCkServiceImpl extends ServiceImpl<DomesticExpo |
|
|
|
|
tDxDkCount = tdxDkCounts.get(0); |
|
|
|
|
|
|
|
|
|
if (!DateUtil.isInTwoDate(tDxTaxCurrent.getSelectStartDate(), tDxTaxCurrent.getSelectEndDate(), |
|
|
|
|
(String)map.get("invoiceDate"))) { |
|
|
|
|
(String) map.get("invoiceDate"))) { |
|
|
|
|
map.put("select", false); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
@ -400,15 +404,19 @@ public class DomesticExportInvoiceCkServiceImpl extends ServiceImpl<DomesticExpo |
|
|
|
|
for (int i = 0; i < page.getRecords().size(); i++) { |
|
|
|
|
Map<String, Object> map = result.getRecords().get(i); |
|
|
|
|
|
|
|
|
|
String authStatus = (String)map.get("authStatus"); |
|
|
|
|
String cxbdkStatus = (String)map.get("cxbdkStatus"); |
|
|
|
|
String invoiceStatus = (String)map.get("invoiceStatus"); |
|
|
|
|
String bdkStatus = (String)map.get("bdkStatus"); |
|
|
|
|
String authStatus = (String) map.get("authStatus"); |
|
|
|
|
String cxbdkStatus = (String) map.get("cxbdkStatus"); |
|
|
|
|
String invoiceStatus = (String) map.get("invoiceStatus"); |
|
|
|
|
String bdkStatus = (String) map.get("bdkStatus"); |
|
|
|
|
|
|
|
|
|
map.put("xh", |
|
|
|
|
String.valueOf((((page.getCurrent() == 0 ? 1 : page.getCurrent()) - 1) * page.getSize()) + i + 1)); |
|
|
|
|
map.put("xh", String.valueOf((((page.getCurrent() == 0 ? 1 : page.getCurrent()) - 1) * page.getSize()) + i + 1)); |
|
|
|
|
if (map.get("invoiceDate") != null) { |
|
|
|
|
map.put("invoiceDate", sdf.format(map.get("invoiceDate"))); |
|
|
|
|
String invoiceDate = map.get("invoiceDate").toString(); |
|
|
|
|
if (invoiceDate.length() > 10) |
|
|
|
|
invoiceDate = invoiceDate.substring(0, 10); |
|
|
|
|
log.info("invoiceDate={}", invoiceDate); |
|
|
|
|
if (invoiceDate != null && StringUtils.isNotBlank(invoiceDate)) |
|
|
|
|
map.put("invoiceDate", sdf.format(invoiceDate)); |
|
|
|
|
} |
|
|
|
|
// 字典转换
|
|
|
|
|
map.put("invoiceStatus", dictdetaServcice.queryDictName(DictConstant.INVOICE_STATUS, invoiceStatus)); |
|
|
|
@ -416,11 +424,11 @@ public class DomesticExportInvoiceCkServiceImpl extends ServiceImpl<DomesticExpo |
|
|
|
|
map.put("cxbdkStatus", dictdetaServcice.queryDictName(DictConstant.BDK_UNDO_STATUS, cxbdkStatus)); |
|
|
|
|
|
|
|
|
|
map.put("exportAmount", AmountFormatUtil |
|
|
|
|
.fmtMicrometer(MathUtil.round(((BigDecimal)map.get("exportAmount")).toPlainString()))); |
|
|
|
|
.fmtMicrometer(MathUtil.round(((BigDecimal) map.get("exportAmount")).toPlainString()))); |
|
|
|
|
map.put("exportTaxAmount", AmountFormatUtil |
|
|
|
|
.fmtMicrometer(MathUtil.round(((BigDecimal)map.get("exportTaxAmount")).toPlainString()))); |
|
|
|
|
.fmtMicrometer(MathUtil.round(((BigDecimal) map.get("exportTaxAmount")).toPlainString()))); |
|
|
|
|
map.put("exportYxse", AmountFormatUtil |
|
|
|
|
.fmtMicrometer(MathUtil.round(((BigDecimal)map.get("exportYxse")).toPlainString()))); |
|
|
|
|
.fmtMicrometer(MathUtil.round(((BigDecimal) map.get("exportYxse")).toPlainString()))); |
|
|
|
|
map.put("select", true); |
|
|
|
|
|
|
|
|
|
TdxDkCount tDxDkCount; |
|
|
|
@ -463,7 +471,7 @@ public class DomesticExportInvoiceCkServiceImpl extends ServiceImpl<DomesticExpo |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String invoiceDate = (String)map.get("invoiceDate"); |
|
|
|
|
String invoiceDate = (String) map.get("invoiceDate"); |
|
|
|
|
if (!DateUtil.isInTwoDate(tDxTaxCurrent.getSelectStartDate(), tDxTaxCurrent.getSelectEndDate(), |
|
|
|
|
invoiceDate)) { |
|
|
|
|
map.put("select", false); |
|
|
|
@ -514,11 +522,11 @@ public class DomesticExportInvoiceCkServiceImpl extends ServiceImpl<DomesticExpo |
|
|
|
|
for (int i = 0; i < page.getRecords().size(); i++) { |
|
|
|
|
Map<String, Object> map = result.getRecords().get(i); |
|
|
|
|
|
|
|
|
|
String bdkStatus = (String)map.get("bdkStatus"); |
|
|
|
|
String cxrzStatus = (String)map.get("cxrzStatus"); |
|
|
|
|
String rzhYesorno = (String)map.get("rzhYesorno"); |
|
|
|
|
String invoiceStatus = (String)map.get("invoiceStatus"); |
|
|
|
|
String authStatus = (String)map.get("authStatus"); |
|
|
|
|
String bdkStatus = (String) map.get("bdkStatus"); |
|
|
|
|
String cxrzStatus = (String) map.get("cxrzStatus"); |
|
|
|
|
String rzhYesorno = (String) map.get("rzhYesorno"); |
|
|
|
|
String invoiceStatus = (String) map.get("invoiceStatus"); |
|
|
|
|
String authStatus = (String) map.get("authStatus"); |
|
|
|
|
|
|
|
|
|
map.put("xh", |
|
|
|
|
String.valueOf((((page.getCurrent() == 0 ? 1 : page.getCurrent()) - 1) * page.getSize()) + i + 1)); |
|
|
|
@ -539,11 +547,11 @@ public class DomesticExportInvoiceCkServiceImpl extends ServiceImpl<DomesticExpo |
|
|
|
|
map.put("bdkStatusBak", bdkStatus); |
|
|
|
|
|
|
|
|
|
map.put("exportAmount", AmountFormatUtil |
|
|
|
|
.fmtMicrometer(MathUtil.round(((BigDecimal)map.get("exportAmount")).toPlainString()))); |
|
|
|
|
.fmtMicrometer(MathUtil.round(((BigDecimal) map.get("exportAmount")).toPlainString()))); |
|
|
|
|
map.put("exportTaxAmount", AmountFormatUtil |
|
|
|
|
.fmtMicrometer(MathUtil.round(((BigDecimal)map.get("exportTaxAmount")).toPlainString()))); |
|
|
|
|
.fmtMicrometer(MathUtil.round(((BigDecimal) map.get("exportTaxAmount")).toPlainString()))); |
|
|
|
|
map.put("exportYxse", AmountFormatUtil |
|
|
|
|
.fmtMicrometer(MathUtil.round(((BigDecimal)map.get("exportYxse")).toPlainString()))); |
|
|
|
|
.fmtMicrometer(MathUtil.round(((BigDecimal) map.get("exportYxse")).toPlainString()))); |
|
|
|
|
map.put("select", true); |
|
|
|
|
|
|
|
|
|
TdxDkCount tDxDkCount; |
|
|
|
|