Your ROOT_URL in app.ini is http://git.zky.com/ but you are visiting http://61.178.84.89:8998/wangxy/hyp-web/commit/67904276196649ff26ea809c9713dcf6fcc2f265?style=unified&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
7 additions and
6 deletions
@ -2,6 +2,7 @@ package com.hyp.web.controller.manager;
import cn.hutool.core.convert.Convert ;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper ;
import com.hyp.common.core.domain.entity.SysUser ;
import com.hyp.common.core.domain.model.LoginUser ;
import com.hyp.common.enums.ApplyStatusEnum ;
import com.hyp.common.utils.SecurityUtils ;
@ -65,13 +66,14 @@ public class ScoreInfoManager {
*
* 查 询 评 分
* @param applyId
* @param createId
* @return java . util . List < com . hyp . system . domain . RewScoreInfo >
* /
public List < RewScoreInfo > getScoreInfo ( String applyId ,Long createId ){
public List < RewScoreInfo > getScoreInfo ( String applyId ){
LambdaQueryWrapper < RewScoreInfo > queryWrapper = new LambdaQueryWrapper < > ( ) ;
queryWrapper . eq ( RewScoreInfo : : getApplyId , applyId ) ;
queryWrapper . eq ( Objects . nonNull ( createId ) , RewScoreInfo : : getCreateId , createId ) ;
if ( ! SysUser . isAdmin ( SecurityUtils . getUserId ( ) ) ) {
queryWrapper . eq ( RewScoreInfo : : getCreateId , SecurityUtils . getUserId ( ) ) ;
}
return scoreInfoService . list ( queryWrapper ) ;
}
@ -59,9 +59,8 @@ public class ScoreInfoController extends BaseController {
@ApiOperation ( "评分查询" )
@GetMapping ( "/getScoreInfo" )
public AjaxResult getScoreInfo ( @RequestParam String applyId ,
@RequestParam ( required = false ) Long createId ) {
return success ( scoreInfoManager . getScoreInfo ( applyId , createId ) ) ;
public AjaxResult getScoreInfo ( @RequestParam String applyId ) {
return success ( scoreInfoManager . getScoreInfo ( applyId ) ) ;
}
@ApiOperation ( "评分提交" )