parent
dce615180c
commit
bfb2d12013
|
@ -573,6 +573,10 @@ public class ApiService {
|
|||
} else {
|
||||
value = "";
|
||||
}
|
||||
} else if ("associatedflownumber".equals(parts[0])) {
|
||||
String receiptno = billObject.getString("receiptno");
|
||||
DynamicObject[] dynamicObjects = BusinessDataServiceHelper.load("bei_transdetail_cas", "id,billno,receiptno", new QFilter("receiptno", QCP.equals, receiptno).toArray());
|
||||
value = dynamicObjects[0].getString("billno");
|
||||
} else {
|
||||
value = billObject.get(parts[0]);
|
||||
}
|
||||
|
@ -1036,6 +1040,7 @@ public class ApiService {
|
|||
|
||||
/**
|
||||
* 构建星空K3CloudApi对象
|
||||
*
|
||||
* @param dataEntity
|
||||
* @return
|
||||
*/
|
||||
|
@ -1052,9 +1057,10 @@ public class ApiService {
|
|||
|
||||
/**
|
||||
* 查询星空收付款单(司库推送星空)
|
||||
* @param dataEntity API映射元数据对象
|
||||
* @param billMark 单据类型(收、付、上划、下拨)
|
||||
* @param billNumber 单据编码(星瀚单据编码)
|
||||
*
|
||||
* @param dataEntity API映射元数据对象
|
||||
* @param billMark 单据类型(收、付、上划、下拨)
|
||||
* @param billNumber 单据编码(星瀚单据编码)
|
||||
* @return
|
||||
*/
|
||||
public static HashMap<String, Object> getSKPushXKBill(DynamicObject dataEntity, String billMark, String billNumber) {
|
||||
|
@ -1101,9 +1107,10 @@ public class ApiService {
|
|||
|
||||
/**
|
||||
* 查询星空收付款单(星空推送司库)
|
||||
* @param dataEntity API映射元数据对象
|
||||
* @param billMark 单据类型(收、付、上划、下拨)
|
||||
* @param billNumber 推送单据编码(星空单据编码)
|
||||
*
|
||||
* @param dataEntity API映射元数据对象
|
||||
* @param billMark 单据类型(收、付、上划、下拨)
|
||||
* @param billNumber 推送单据编码(星空单据编码)
|
||||
* @return
|
||||
*/
|
||||
public static HashMap<String, Object> getXKPushSKBill(DynamicObject dataEntity, String billMark, String billNumber) {
|
||||
|
@ -1149,6 +1156,7 @@ public class ApiService {
|
|||
|
||||
/**
|
||||
* 推送星空单据附件(测试推送附件 → 此附件为API映射元数据的单据附件)
|
||||
*
|
||||
* @param dataEntity API映射元数据对象
|
||||
* @return
|
||||
*/
|
||||
|
@ -1162,7 +1170,7 @@ public class ApiService {
|
|||
logger.info("获取推送单据编码 → billNumber:{}", billNumber);
|
||||
HashMap<String, Object> xkBillData = getSKPushXKBill(dataEntity, billMark, billNumber);
|
||||
String uploadAttachmentResult = null;
|
||||
if ((Boolean)xkBillData.get("result")) {
|
||||
if ((Boolean) xkBillData.get("result")) {
|
||||
List<Map<String, String>> attachmentData = get_attachment(dataEntity);
|
||||
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
|
@ -1188,7 +1196,7 @@ public class ApiService {
|
|||
* @param dataEntity API映射元数据对象
|
||||
* @return
|
||||
*/
|
||||
public static List<Map<String, String>> get_attachment(DynamicObject dataEntity) {
|
||||
public static List<Map<String, String>> get_attachment(DynamicObject dataEntity) {
|
||||
String entityId = dataEntity.getDataEntityType().toString();
|
||||
List<Map<String, Object>> list = AttachmentServiceHelper.getAttachments(entityId, dataEntity.get("id"), "shkd_attachmentpanelap");
|
||||
List<Map<String, String>> attachments = new ArrayList<>();
|
||||
|
|
Loading…
Reference in New Issue