Merge remote-tracking branch 'origin/release' into release

release
yishiqihuasheng 2 years ago
commit 39aff62c8c
  1. 1
      dxhy-erp/src/main/java/com/dxhy/erp/controller/SDNYMainProcessController.java
  2. 18
      dxhy-erp/src/main/java/com/dxhy/erp/service/SNPushCheckRecordService.java
  3. 9
      pom.xml

@ -588,6 +588,7 @@ public class SDNYMainProcessController extends AbstractController {
} }
} }
} catch (Exception exception) { } catch (Exception exception) {
log.error("同步SAP失败,报错信息为:{}",exception);
exception.printStackTrace(); exception.printStackTrace();
} }
return ResponseEntity.ok(JSONObject.toJSONString(R.error(CommonConstants.MSG_ERR_PUSH_SDNY))); return ResponseEntity.ok(JSONObject.toJSONString(R.error(CommonConstants.MSG_ERR_PUSH_SDNY)));

@ -779,14 +779,18 @@ public class SNPushCheckRecordService extends AbstractServiceAdapter {
InvoiceInfo invoice = new InvoiceInfo(); InvoiceInfo invoice = new InvoiceInfo();
invoice.setInvoiceTypeCode(snInvoice.getInvoiceType()); invoice.setInvoiceTypeCode(snInvoice.getInvoiceType());
Date date = new Date(); if(snInvoice.getBillingDate() != null) {
SimpleDateFormat ft = new SimpleDateFormat("yyyy-MM-dd"); Date date = new Date();
try { SimpleDateFormat ft = new SimpleDateFormat("yyyy-MM-dd");
date = ft.parse(snInvoice.getBillingDate()); try {
} catch (ParseException e) { date = ft.parse(snInvoice.getBillingDate());
e.printStackTrace(); } catch (ParseException e) {
e.printStackTrace();
}
invoice.setInvoiceDate(date);
}else{
log.error("开票日期为空");
} }
invoice.setInvoiceDate(date);
invoice.setIdentityNumber(snInvoice.getIdcardNo()); invoice.setIdentityNumber(snInvoice.getIdcardNo());
invoice.setPassenger(snInvoice.getRiderName()); invoice.setPassenger(snInvoice.getRiderName());

@ -187,10 +187,7 @@
<deployType>test</deployType> <deployType>test</deployType>
<logging.file>/home/dxhy/logs/</logging.file> <logging.file>/home/dxhy/logs/</logging.file>
</properties> </properties>
<!-- 默认激活 -->
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile> </profile>
<!-- 伊利测试环境 --> <!-- 伊利测试环境 -->
<profile> <profile>
@ -223,6 +220,10 @@
<deployType>std</deployType> <deployType>std</deployType>
<logging.file>/home/dxhy/logs/</logging.file> <logging.file>/home/dxhy/logs/</logging.file>
</properties> </properties>
<!-- 默认激活 -->
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile> </profile>
</profiles> </profiles>

Loading…
Cancel
Save