Commit 0cfe090e authored by liaoanyuan's avatar liaoanyuan

修改查询方案(专科体育)

parent 9f66456b
...@@ -4,6 +4,7 @@ import cn.wisenergy.common.utils.R; ...@@ -4,6 +4,7 @@ import cn.wisenergy.common.utils.R;
import cn.wisenergy.model.app.SchemeInfo; import cn.wisenergy.model.app.SchemeInfo;
import cn.wisenergy.model.app.Volunteer; import cn.wisenergy.model.app.Volunteer;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
...@@ -46,5 +47,4 @@ public interface VolunteerService extends IService<Volunteer> { ...@@ -46,5 +47,4 @@ public interface VolunteerService extends IService<Volunteer> {
* @throws IOException 异常 * @throws IOException 异常
*/ */
void ceshi(MultipartFile file, HttpServletResponse response) throws IOException; void ceshi(MultipartFile file, HttpServletResponse response) throws IOException;
} }
...@@ -600,23 +600,7 @@ public class SchemeServiceImpl extends ServiceImpl<SchemeMapper, SchemeInfo> imp ...@@ -600,23 +600,7 @@ public class SchemeServiceImpl extends ServiceImpl<SchemeMapper, SchemeInfo> imp
//2、考生是否能报取体育专科 //2、考生是否能报取体育专科
if (total >= secondRule.getCultureMin()) { if (total >= secondRule.getCultureMin()) {
//浮动分数 list = volunteerMapper.getVolunteerByType(SchemeTypeEnums.JUNIOR_COLLEGE_SPORTS.getCode());
double upGrade = total + secondRule.getUpMark();
double downGrade = total - secondRule.getDownMark();
if (downGrade < secondRule.getCultureMin()) {
downGrade = secondRule.getCultureMin();
}
map.put("upGrade", upGrade);
map.put("downGrade", downGrade);
map.put("type", SchemeTypeEnums.JUNIOR_COLLEGE_SPORTS.getCode());
list = volunteerMapper.getVolunteerList(map);
//如果数据不满足最大数量,取不限专业最低分补充
if (list.size() < secondRule.getNumber()) {
List<Volunteer> fillList = fillUpVolunteer(list, secondRule.getNumber(), upGrade, downGrade,
SchemeTypeEnums.JUNIOR_COLLEGE_SPORTS.getCode());
list.addAll(fillList);
}
} }
return list; return list;
......
...@@ -3,6 +3,7 @@ package cn.wisenergy.web.admin.controller.app; ...@@ -3,6 +3,7 @@ package cn.wisenergy.web.admin.controller.app;
import cn.wisenergy.common.expection.BaseException; import cn.wisenergy.common.expection.BaseException;
import cn.wisenergy.common.utils.R; import cn.wisenergy.common.utils.R;
import cn.wisenergy.model.app.SchemeInfo; import cn.wisenergy.model.app.SchemeInfo;
import cn.wisenergy.model.app.Volunteer;
import cn.wisenergy.model.vo.SchemeQueryVo; import cn.wisenergy.model.vo.SchemeQueryVo;
import cn.wisenergy.model.vo.SchemeVo; import cn.wisenergy.model.vo.SchemeVo;
import cn.wisenergy.model.vo.VolunteerVo; import cn.wisenergy.model.vo.VolunteerVo;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment