parent
6d3d1ed290
commit
d307f9c9ca
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@ public class SupplierAuditPushFwOp extends AbstractOperationServicePlugIn {
|
|||
SaveServiceHelper.save(new DynamicObject[]{dataEntity});
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue