fix(用例管理): 批量编辑标签问题修复
--bug=1035961 --user=王旭 【用例管理】功能用例-批量编辑所有页的标签除了第一页其他页都不生效 https://www.tapd.cn/55049933/s/1464188
This commit is contained in:
parent
8bba1cdc64
commit
1e674497e5
|
@ -765,20 +765,21 @@ public class FunctionalCaseService {
|
|||
handleTags(request, userId, ids);
|
||||
//自定义字段处理
|
||||
handleCustomFields(request, userId, ids);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void handleCustomFields(FunctionalCaseBatchEditRequest request, String userId, List<String> ids) {
|
||||
Optional.ofNullable(request.getCustomField()).ifPresent(customField -> {
|
||||
functionalCaseCustomFieldService.batchUpdate(customField, ids);
|
||||
|
||||
//基本信息
|
||||
FunctionalCase functionalCase = new FunctionalCase();
|
||||
functionalCase.setProjectId(request.getProjectId());
|
||||
functionalCase.setUpdateTime(System.currentTimeMillis());
|
||||
functionalCase.setUpdateUser(userId);
|
||||
extFunctionalCaseMapper.batchUpdate(functionalCase, ids);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void handleCustomFields(FunctionalCaseBatchEditRequest request, String userId, List<String> ids) {
|
||||
boolean customField = Optional.ofNullable(request.getCustomField()).map(o -> o.getFieldId()).isPresent();
|
||||
if(customField){
|
||||
functionalCaseCustomFieldService.batchUpdate(request.getCustomField(), ids);
|
||||
}
|
||||
}
|
||||
|
||||
private void handleTags(FunctionalCaseBatchEditRequest request, String userId, List<String> ids) {
|
||||
|
|
Loading…
Reference in New Issue