sap转出字段标记

release
wangzhikun 2 years ago
parent 568ccd409f
commit a625425cb5
  1. 2
      dxhy-base/src/main/java/com/dxhy/base/model/BaseReceiptInvoiceView.java
  2. 3
      dxhy-base/src/main/resources/mapper/BaseInvoiceOutMapper.xml
  3. 1
      dxhy-erp/src/main/java/com/dxhy/erp/entity/BaseTDxRecordInvoice.java
  4. 2
      dxhy-erp/src/main/java/com/dxhy/erp/service/impl/ReceiptOutServiceImpl.java
  5. 4
      dxhy-extend/src/main/java/com/dxhy/extend/controller/VouncherSyncController.java

@ -117,4 +117,6 @@ public class BaseReceiptInvoiceView implements Serializable {
private String certDate; private String certDate;
private String outBelongDate; private String outBelongDate;
//转出来源 1 sap
private String outResource;
} }

@ -26,6 +26,7 @@
<result column="tax_amount" property="taxAmount"/> <result column="tax_amount" property="taxAmount"/>
<result column="rzh_date" property="certDate"/> <result column="rzh_date" property="certDate"/>
<result column="invoice_type" property="invoiceType"/> <result column="invoice_type" property="invoiceType"/>
<result column="out_resource" property="outResource"/>
</resultMap> </resultMap>
@ -90,7 +91,7 @@
SELECT SELECT
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
, b.gf_tax_no,b.gf_name,b.xf_name,b.invoice_date,b.invoice_status,b.invoice_amount,b.tax_amount , b.gf_tax_no,b.gf_name,b.xf_name,b.invoice_date,b.invoice_status,b.invoice_amount,b.tax_amount
, b.rzh_date,b.invoice_type , b.rzh_date,b.invoice_type,b.out_resource
FROM t_dx_record_invoice_out a FROM t_dx_record_invoice_out a
LEFT JOIN t_dx_record_invoice b ON a.uuid = b.uuid LEFT JOIN t_dx_record_invoice b ON a.uuid = b.uuid
<where> <where>

@ -475,5 +475,6 @@ public class BaseTDxRecordInvoice implements Serializable {
* g公司id * g公司id
*/ */
private String compCode; private String compCode;
private String outResource;
} }

@ -120,6 +120,8 @@ public class ReceiptOutServiceImpl extends MpBaseServiceImpl<BaseReceiptOutDao,
condRecord.setId(record.getId()); condRecord.setId(record.getId());
// 转出状态 // 转出状态
condRecord.setOutStatus(condVO.getOutStatus()); condRecord.setOutStatus(condVO.getOutStatus());
//表示转出来源是sap
condRecord.setOutResource("1");
// 转出原因 // 转出原因
condRecord.setOutReason(condVO.getOutReason()); condRecord.setOutReason(condVO.getOutReason());
// 备注 // 备注

@ -45,8 +45,9 @@ public class VouncherSyncController {
String companyCode = map.get("companyCode"); String companyCode = map.get("companyCode");
//开始日期 //开始日期
String startTime= map.get("startTime"); String startTime= map.get("startTime");
String endTime = map.get("endTime");
//结束日期 //结束日期
String month=map.get("endTime"); String month=map.get("monat");
//GJAHR nian //GJAHR nian
String gjahr=map.get("gjahr"); String gjahr=map.get("gjahr");
@ -67,6 +68,7 @@ public class VouncherSyncController {
requestMap.put("GJAHR",gjahr); requestMap.put("GJAHR",gjahr);
requestMap.put("MONAT",month); requestMap.put("MONAT",month);
requestMap.put("ZDATEF",startTime); requestMap.put("ZDATEF",startTime);
requestMap.put("ZDATET",endTime);
requestMap.put("ZFLAG",ifAll); requestMap.put("ZFLAG",ifAll);
object.setZDATA(JSONObject.toJSONString(requestMap)); object.setZDATA(JSONObject.toJSONString(requestMap));
JSONObject request = new JSONObject(); JSONObject request = new JSONObject();

Loading…
Cancel
Save