|
|
@ -1,12 +1,15 @@ |
|
|
|
package org.dromara.platform.controller; |
|
|
|
|
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import jakarta.servlet.http.HttpServletResponse; |
|
|
|
import jakarta.validation.constraints.*; |
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission; |
|
|
|
import org.apache.ibatis.annotations.Param; |
|
|
|
import org.dromara.platform.domain.dto.EvaluationDto; |
|
|
|
import org.springframework.format.annotation.DateTimeFormat; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.validation.annotation.Validated; |
|
|
|
import org.dromara.common.idempotent.annotation.RepeatSubmit; |
|
|
@ -119,4 +122,15 @@ public class EvaluationInfoController extends BaseController { |
|
|
|
evaluationInfoService.addBySelect(dto); |
|
|
|
return R.ok("创建成功!"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@SaCheckPermission("platform:evaluationInfo:isScoreExits") |
|
|
|
@GetMapping("/isScoreExits") |
|
|
|
public R<Boolean> isScoreExits(EvaluationInfoBo bo) { |
|
|
|
Date checkTime = bo.getCheckTime(); |
|
|
|
String ioCompany = bo.getIoCompany(); |
|
|
|
Boolean flag = evaluationInfoService.isScoreExits(ioCompany,checkTime); |
|
|
|
return R.ok(flag); |
|
|
|
} |
|
|
|
} |
|
|
|