Browse Source

发票打印相关

609324174@qq.com 4 years ago
parent
commit
2c93ed56d5

+ 1 - 0
smart-city-platform/src/main/java/com/bz/smart_city/dto/pay/InvoicePrintInfoResult.java

@@ -13,6 +13,7 @@ public class InvoicePrintInfoResult {
 	private String  c_msg;
 	private String c_url;
 	private String c_jpg_url;
+	private String c_imgUrls;
 	private String c_kprq;
 	private String c_fpdm;
 	private String c_fphm;

+ 2 - 0
smart-city-platform/src/main/java/com/bz/smart_city/entity/pay/PayInvoiceprinted.java

@@ -69,6 +69,8 @@ public class PayInvoiceprinted extends PayBaseInfo {
 	private String orderNo;
 	@ApiModelProperty(value = "发票PDF路径")
 	private String pdfUrl;
+	@ApiModelProperty(value = "发票图片路径")
+	private String imgUrl;
 	@ApiModelProperty(value = "发票JPG路径")
 	private String jpgUrl;
 	@ApiModelProperty(value = "购方名称")

+ 1 - 0
smart-city-platform/src/main/java/com/bz/smart_city/quartz/job/InvoicePrintResultJob.java

@@ -28,6 +28,7 @@ public class InvoicePrintResultJob {
     private PrintInvoiceQueryResultServiceImpl printInvoiceQueryResultService;
 
     @Scheduled(cron = "0 0 0/1 * * ?")
+    //@Scheduled(cron = "0 33 15 ? * *")   //定时执行,秒分时日月年
     private void queryResult() {
         List<PayInvoiceprinted> payInvoiceprinteds = printInvoicePrintService.findListByState();
         for (PayInvoiceprinted item : payInvoiceprinteds) {

+ 1 - 0
smart-city-platform/src/main/java/com/bz/smart_city/service/impl/pay/PrintInvoiceQueryResultServiceImpl.java

@@ -64,6 +64,7 @@ public class PrintInvoiceQueryResultServiceImpl {
                             payInvoiceprinted.setTotalPrintAmount(totalPrintAmount);
                         }
                         payInvoiceprinted.setCheckCode(item.getC_jym());
+                        payInvoiceprinted.setImgUrl(item.getC_imgUrls());
                         payInvoiceprinted.setPdfUrl(item.getC_url());
                         payInvoiceprinted.setJpgUrl(item.getC_jpg_url());
                         payInvoiceprinted.setRemarks(item.getC_resultmsg());

+ 1 - 0
smart-city-platform/src/main/resources/mapper/pay/PayInvoicePrintMapper.xml

@@ -105,6 +105,7 @@
 			<if test="payInvoiceprinted.checkCode != null">check_code=#{payInvoiceprinted.checkCode},</if>
 			<if test="payInvoiceprinted.pdfUrl != null">pdf_url=#{payInvoiceprinted.pdfUrl},</if>
 			<if test="payInvoiceprinted.jpgUrl != null">jpg_url=#{payInvoiceprinted.jpgUrl},</if>
+			<if test="payInvoiceprinted.imgUrl != null">img_url=#{payInvoiceprinted.imgUrl},</if>
 			<if test="payInvoiceprinted.remarks != null">remarks=#{payInvoiceprinted.remarks},</if>
 			<if test="payInvoiceprinted.buyername != null">buyername=#{payInvoiceprinted.buyername},</if>
 			<if test="payInvoiceprinted.taxnum != null">taxnum=#{payInvoiceprinted.taxnum},</if>