Skip to content

Commit

Permalink
Merge branch 'feature-superlee' into 'master'
Browse files Browse the repository at this point in the history
[ADD] 更新自定义字段的值,同步到燕千云

See merge request hand-yanqianyun-yq-pm/agile-service!1539
  • Loading branch information
李楷文 committed Jun 15, 2023
2 parents d789956 + 40faaf3 commit 23bb094
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.apache.commons.collections4.SetUtils;
import org.apache.commons.lang3.StringUtils;
import org.modelmapper.ModelMapper;
import org.modelmapper.TypeToken;
Expand Down Expand Up @@ -167,6 +168,9 @@ public void checkCreateCustomFieldWithoutRuleNotice(Long projectId, Long id, Str
if (!fieldValueList.isEmpty()) {
fieldValueMapper.batchInsert(projectId, id, schemeCode, fieldValueList);
}
if (agilePluginService != null) {
agilePluginService.syncThirdPartyDataAfterUpdate(projectId, SetUtils.unmodifiableSet(id), InstanceType.ISSUE.value());
}
//创建问题通知自定义字段人员
IssueDetailDTO issue = issueMapper.queryIssueDetail(projectId, id);
IssueVO result = issueAssembler.issueDetailDTOToVO(issue, new HashMap<>(), new HashMap<>(), new HashMap<>());
Expand Down Expand Up @@ -368,6 +372,9 @@ public List<FieldValueVO> updateFieldValue(Long organizationId, Long projectId,
FieldValueUtil.handleDataLog(organizationId, projectId, instanceId, fieldId, updateDTO.getFieldType(), schemeCode, oldFieldValues, newFieldValues);
// 更新issue更新时间
BaseFieldUtil.updateIssueLastUpdateInfo(instanceId, projectId);
if (agilePluginService != null) {
agilePluginService.syncThirdPartyDataAfterUpdate(projectId, SetUtils.unmodifiableSet(instanceId), InstanceType.ISSUE.value());
}
return modelMapper.map(fieldValueMapper.queryList(projectId, instanceId, schemeCode, fieldId), new TypeToken<List<FieldValueVO>>() {
}.getType());
}
Expand Down

0 comments on commit 23bb094

Please sign in to comment.