【泛微接口】

采购供应商推送泛微、分类标准判空修改
其他出库单推送泛微修改
This commit is contained in:
tanfengling@x-ri.com 2025-11-04 17:33:47 +08:00
parent 6d3d1ed290
commit d307f9c9ca
3 changed files with 15 additions and 2 deletions

View File

@ -22,7 +22,7 @@ public class OtherOutSubmitToFwOp extends AbstractOperationServicePlugIn {
List<Object> successPkIds = operationResult.getSuccessPkIds();
for (Object successPkId : successPkIds) {
DynamicObject bill = BusinessDataServiceHelper.loadSingle(successPkId, "im_otheroutbill");
DynamicObject tqq9_biztype = bill.getDynamicObject("tqq9_biztype");
DynamicObject tqq9_biztype = bill.getDynamicObject("billtype");
if(tqq9_biztype != null){
//样品 礼品 拍照 展会 四类不推泛微
String biztypenumber = tqq9_biztype.getString("number");

View File

@ -40,7 +40,6 @@ public class SupplierAuditPushFwOp extends AbstractOperationServicePlugIn {
SaveServiceHelper.save(new DynamicObject[]{dataEntity});
}
}
break;
}
}

View File

@ -519,6 +519,20 @@ public class FWImpl {
mainTable.put("KDBillType", "bd_supplier");
mainTable.put("ywgz", ywgz);
JSONArray fjArr = new JSONArray();
List<Map<String, Object>> attachments = AttachmentServiceHelper.getAttachments("bd_supplier", bill.getPkValue(), "tqq9_attachmentpanelap");
for (Map<String, Object> attachment : attachments) {
String filePath = (String) attachment.get("url");
String fileName = (String) attachment.get("name");
byte[] bytes = HttpUtil.downloadBytes(filePath);
String str = "base64:" + cn.hutool.core.codec.Base64.encode(bytes);
JSONObject fj = new JSONObject();
fj.put("content", str);
fj.put("name", fileName);
fjArr.add(fj);
}
mainTable.put("htfj", fjArr);
FWRestfulUtils fwRestfulUtils = new FWRestfulUtils();
return fwRestfulUtils.pushBaseData(mainTable, cjr, gysbh, "bd_supplier", recordsArr1, recordsArr2);
}