|
|
@@ -6,6 +6,7 @@ import com.ningdatech.pmapi.expert.manage.ReviewTemplateSettingsManage; |
|
|
|
import com.ningdatech.pmapi.expert.model.req.ReviewTemplateReq; |
|
|
|
import com.ningdatech.pmapi.expert.model.vo.ReviewTemplateVO; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiImplicitParam; |
|
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
@@ -45,12 +46,14 @@ public class ReviewTemplateSettingsController { |
|
|
|
|
|
|
|
@GetMapping("/template") |
|
|
|
@ApiModelProperty("根据模版ID获取评审模版") |
|
|
|
@ApiImplicitParam(name = "templateId", defaultValue = "模版ID") |
|
|
|
public ReviewTemplateVO getTemplateById(@RequestParam Long templateId) { |
|
|
|
return reviewTemplateSettingsManage.getReviewTemplateSettings(templateId); |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping("/templates") |
|
|
|
@ApiModelProperty("(批量)根据模版ID获取评审模版") |
|
|
|
@ApiImplicitParam(name = "templateIds", defaultValue = "模版ID集合") |
|
|
|
public List<ReviewTemplateVO> getTemplateById(@RequestParam List<Long> templateIds) { |
|
|
|
return reviewTemplateSettingsManage.listReviewTemplateSettings(templateIds); |
|
|
|
} |
|
|
|