提交 ced0e704 authored 作者: inroi's avatar inroi

完成代码

上级 94c7f9be
...@@ -137,7 +137,7 @@ public class KingDeeCommonPushApi { ...@@ -137,7 +137,7 @@ public class KingDeeCommonPushApi {
String defaultValue = field.get("defaultValue"); String defaultValue = field.get("defaultValue");
if(StringUtil.isNotBlank(thirdPartyField)) if(StringUtil.isBlank(thirdPartyField))
{ {
SetDefaultValue(temp, defaultValue, retrievalField, kingDeeField); SetDefaultValue(temp, defaultValue, retrievalField, kingDeeField);
return; return;
...@@ -146,7 +146,7 @@ public class KingDeeCommonPushApi { ...@@ -146,7 +146,7 @@ public class KingDeeCommonPushApi {
Object curValue = ExcuteScript(thirdPartyField, map); Object curValue = ExcuteScript(thirdPartyField, map);
if(curValue == null) if(Constants.NULL.equals(curValue))
{ {
SetDefaultValue(temp, defaultValue, retrievalField, kingDeeField); SetDefaultValue(temp, defaultValue, retrievalField, kingDeeField);
return; return;
......
...@@ -148,11 +148,14 @@ public class KingDeeCommonPushServiceImpl implements IKingDeeCommonPushService { ...@@ -148,11 +148,14 @@ public class KingDeeCommonPushServiceImpl implements IKingDeeCommonPushService {
{ {
for(Map<String, Object> resultData: (List<Map<String, Object>>)temp.get("resultData")) for(Map<String, Object> resultData: (List<Map<String, Object>>)temp.get("resultData"))
{ {
int curId = Integer.parseInt(resultData.get("id").toString()); if(attachments.size() > 0)
for(String attachment:attachments) {
{ int curId = Integer.parseInt(resultData.get("id").toString());
kingDeeCommonPushApi.uploadAttachment(attachment, curId); for(String attachment:attachments)
} {
kingDeeCommonPushApi.uploadAttachment(attachment, curId);
}
}
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论