|
@@ -3,6 +3,7 @@ package com.ruoyi.web.controller.invest;
|
|
|
import java.util.List;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
+import com.ruoyi.common.utils.StringUtils;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
@@ -42,7 +43,6 @@ public class TProjectScoringController extends BaseController
|
|
|
* 查询打分列表
|
|
|
*/
|
|
|
@ApiOperation("查询打分列表")
|
|
|
- @PreAuthorize("@ss.hasPermi('invest:scoring:list')")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(TProjectScoring tProjectScoring)
|
|
|
{
|
|
@@ -69,7 +69,6 @@ public class TProjectScoringController extends BaseController
|
|
|
* 获取打分详细信息
|
|
|
*/
|
|
|
@ApiOperation("获取打分详细信息")
|
|
|
- @PreAuthorize("@ss.hasPermi('invest:scoring:query')")
|
|
|
@GetMapping(value = "/{id}")
|
|
|
public AjaxResult getInfo(@PathVariable("id") String id)
|
|
|
{
|
|
@@ -80,7 +79,6 @@ public class TProjectScoringController extends BaseController
|
|
|
* 新增打分
|
|
|
*/
|
|
|
@ApiOperation("新增打分")
|
|
|
- @PreAuthorize("@ss.hasPermi('invest:scoring:add')")
|
|
|
@Log(title = "打分", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
public AjaxResult add(@RequestBody TProjectScoring tProjectScoring)
|
|
@@ -112,4 +110,36 @@ public class TProjectScoringController extends BaseController
|
|
|
{
|
|
|
return toAjax(tProjectScoringService.updateTProjectScoringByIds(ids));
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ * 根据会议ID查询汇总分数和平均分数
|
|
|
+ */
|
|
|
+ @ApiOperation("根据会议ID查询汇总分数和平均分数")
|
|
|
+ @GetMapping(value = "/selectMeetingId")
|
|
|
+ public AjaxResult selectMeetingId(String meetingId)
|
|
|
+ {
|
|
|
+ if (StringUtils.isEmpty(meetingId))
|
|
|
+ {
|
|
|
+ return error("查询打分数据'" + getNickName() + "'失败,请选择会议!");
|
|
|
+ }
|
|
|
+ return success(tProjectScoringService.selectMeetingId(meetingId));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ * 根据会议ID查询汇总分数和平均分数
|
|
|
+ */
|
|
|
+ @ApiOperation("根据会议ID查询是否打分和打分数据")
|
|
|
+ @GetMapping(value = "/getCanScoringMeetingId")
|
|
|
+ public AjaxResult getCanScoringMeetingId(String meetingId)
|
|
|
+ {
|
|
|
+ if (StringUtils.isEmpty(meetingId))
|
|
|
+ {
|
|
|
+ return error("查询打分数据'" + getNickName() + "'失败,请选择会议!");
|
|
|
+ }
|
|
|
+ TProjectScoring tProjectScoring = tProjectScoringService.getCanScoringMeetingId(meetingId,getUserId());
|
|
|
+ AjaxResult ajax = AjaxResult.success();
|
|
|
+ ajax.put("tProjectScoring", tProjectScoring);
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+
|
|
|
}
|