|
@@ -49,7 +49,7 @@ import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
* @Description:
|
|
|
- * @Author:zhaops
|
|
|
+ * @Author:zhoutg
|
|
|
* @time: 2018/11/23 11:37
|
|
|
*/
|
|
|
@Component
|
|
@@ -342,7 +342,7 @@ public class QuestionInfoFacade extends QuestionInfoServiceImpl {
|
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
.eq("type", questionInfo.getType())
|
|
|
.ne("id", questionInfo.getId() == null ? -1 : questionInfo.getId()));
|
|
|
- if (questionInfoList.size() > 0) { //标签type、tagName唯一
|
|
|
+ if (ListUtil.isNotEmpty(questionInfoList)) { //标签type、tagName唯一
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "标签名称已重复,无法建立");
|
|
|
}
|
|
|
if ("save".equals(param.getSaveOrUpdate())) {
|
|
@@ -451,6 +451,7 @@ public class QuestionInfoFacade extends QuestionInfoServiceImpl {
|
|
|
paramMap.put("type", questionIndexVO.getType());
|
|
|
paramMap.put("controlType", questionIndexVO.getControlType());
|
|
|
paramMap.put("notIds", questionIndexVO.getNotIds());
|
|
|
+ paramMap.put("tagType", questionIndexVO.getTagType());
|
|
|
return this.index(paramMap);
|
|
|
}
|
|
|
|
|
@@ -471,21 +472,6 @@ public class QuestionInfoFacade extends QuestionInfoServiceImpl {
|
|
|
}
|
|
|
|
|
|
|
|
|
- /**
|
|
|
- * 根据标签名获取标签信息
|
|
|
- *
|
|
|
- * @param questionInfo
|
|
|
- * @return
|
|
|
- */
|
|
|
- public QuestionInfo getQuestionInfos(QuestionInfo questionInfo) {
|
|
|
- QueryWrapper<QuestionInfo> queryWrapper = new QueryWrapper<QuestionInfo>();
|
|
|
- queryWrapper.eq("is_deleted", "N");
|
|
|
- queryWrapper.eq("type", 1);
|
|
|
- queryWrapper.eq("name", questionInfo.getName());
|
|
|
- return this.getOne(queryWrapper);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* 根据标签名获取标签信息
|
|
|
*
|