|
|
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.ningdatech.basic.exception.BizException; |
|
|
|
import com.ningdatech.basic.util.CollUtils; |
|
|
|
import com.ningdatech.pmapi.common.constant.BizConst; |
|
|
|
import com.ningdatech.pmapi.expert.model.dto.ReviewTemplateSettingsDTO; |
|
|
|
import com.ningdatech.pmapi.expert.model.entity.ReviewTemplateSettings; |
|
|
@@ -16,6 +17,8 @@ import lombok.AllArgsConstructor; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
/** |
|
|
|
* <p> |
|
|
|
* ReviewTemplateSettingsManage |
|
|
@@ -62,6 +65,11 @@ public class ReviewTemplateSettingsManage { |
|
|
|
return buildTemplateDetail(settings); |
|
|
|
} |
|
|
|
|
|
|
|
public List<ReviewTemplateVO> listReviewTemplateSettings(List<Long> templateIds) { |
|
|
|
List<ReviewTemplateSettings> settings = reviewTemplateSettingsService.listByIds(templateIds); |
|
|
|
return CollUtils.convert(settings, this::buildTemplateDetail); |
|
|
|
} |
|
|
|
|
|
|
|
private ReviewTemplateVO buildTemplateDetail(ReviewTemplateSettings settings) { |
|
|
|
if (settings == null) { |
|
|
|
throw BizException.wrap("模版不存在"); |
|
|
|