This commit is contained in:
14391 2025-10-20 17:27:06 +08:00
parent 61ffe0d181
commit 07bff1f917
1 changed files with 17 additions and 10 deletions

View File

@ -11,6 +11,7 @@ import kd.bos.orm.query.QCP;
import kd.bos.orm.query.QFilter;
import kd.bos.servicehelper.AttachmentServiceHelper;
import kd.bos.servicehelper.BusinessDataServiceHelper;
import kd.bos.util.StringUtils;
import kd.sdk.plugin.Plugin;
import tqq9.lc123.cloud.app.plugin.utils.HttpRequestUtils;
@ -57,11 +58,17 @@ public class wmsZczPostApi extends AbstractBillPlugIn implements Plugin {
if (tqq9_e_supplier != null) {
HashMap<String, String> map = new HashMap<>();
String number2 = tqq9_e_supplier.getString("number");
DynamicObject file2 = BusinessDataServiceHelper.loadSingle("tqq9_proxyandfactory", "id,number,name,tqq9_prolicense",
DynamicObject file2 = BusinessDataServiceHelper.loadSingle("tqq9_proxyandfactory", "id,number,name,tqq9_prolicense,tqq9_type",
new QFilter[]{new QFilter("number", QFilter.equals, number2)});
String MFCode = file2.getString("number");
String name = file2.getString("name");
String ProLicenceCode = file2.getString("tqq9_prolicense");
String tqq9_type = file2.getString("tqq9_type");//厂商类型
if (StringUtils.isNotEmpty(tqq9_type) && tqq9_type.contains("B")) {
map.put("isAgent", "Y");//代理商
} else {
map.put("isAgent", "N");
}
map.put("manufactoryCode", MFCode);
map.put("manufactoryName", name);
map.put("proLicenceCode", ProLicenceCode);
@ -93,14 +100,13 @@ public class wmsZczPostApi extends AbstractBillPlugIn implements Plugin {
String yxqs = "";
Date tqq9_startdate = dataEntity.getDate("tqq9_startdate");
if (tqq9_startdate != null) {
yxqs = sdf.format(dataEntity.getDate("tqq9_startdate"));//有效期至
yxqs = sdf.format(tqq9_startdate);//有效期至
}
String yxqz = "";
String tqq9_enddate = sdf.format(dataEntity.getDate("tqq9_enddate"));//有效期至
Date tqq9_enddate = dataEntity.getDate("tqq9_enddate");//有效期至
if (tqq9_enddate != null) {
yxqs = sdf.format(dataEntity.getDate("tqq9_enddate"));//有效期至
yxqz = sdf.format(tqq9_enddate);//有效期至
}
String cRemark = dataEntity.getString("tqq9_remark");//备注
String modifytime = sdf.format(dataEntity.getDate("modifytime"));//修改时间
String IsImportation = dataEntity.getString("tqq9_type").equals("A") ? "Y" : "N";//是否进口
Map<String, Object> request = new HashMap<>();
@ -114,6 +120,7 @@ public class wmsZczPostApi extends AbstractBillPlugIn implements Plugin {
request.put("updateTime", modifytime);
request.put("urlPathList", urlPathList);
request.put("manufactoryList", manufactoryList);
request.put("key1", dataEntity.getString("tqq9_remark"));//备注
// 最终的外层Map
Map<String, Object> finalMap = new HashMap<>();
finalMap.put("request", request);