fix:奖项评分提交

dev
wangxy 12 months ago
parent 3a6a80347b
commit 49c8857de1

@ -1,17 +1,25 @@
package com.hyp.web.controller.manager;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.convert.Convert;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.hyp.common.core.domain.model.LoginUser;
import com.hyp.common.utils.SecurityUtils;
import com.hyp.common.utils.StringUtils;
import com.hyp.system.domain.RewApplyInfoList;
import com.hyp.system.domain.RewFileRelation;
import com.hyp.system.domain.RewScoreInfo;
import com.hyp.system.domain.dto.ScoreInfoSaveDTO;
import com.hyp.system.domain.vo.ApplyInfoListVO;
import com.hyp.system.domain.vo.FileRelationVO;
import com.hyp.system.service.RewScoreInfoService;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
import java.util.Objects;
/**
* packageName com.hyp.web.controller.manager
@ -51,4 +59,21 @@ public class ScoreInfoManager {
}
/**
*
*
* @param applyId
* @param createId
* @return java.util.List<com.hyp.system.domain.RewScoreInfo>
*/
public List<RewScoreInfo> getScoreInfo(String applyId,Long createId){
LambdaQueryWrapper<RewScoreInfo> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(RewScoreInfo::getApplyId,applyId);
queryWrapper.eq(Objects.nonNull(createId), RewScoreInfo::getCreateId, createId);
return scoreInfoService.list(queryWrapper);
}
}

@ -9,10 +9,7 @@ import com.hyp.web.controller.manager.ScoreInfoManager;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@ -42,6 +39,18 @@ 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));
}

Loading…
Cancel
Save