updates
This commit is contained in:
parent
b20413b7bd
commit
32d0fd1e78
|
|
@ -191,7 +191,7 @@ public class MiniUserScoreController {
|
||||||
yxUserScore.setId(null);
|
yxUserScore.setId(null);
|
||||||
yxUserScore.setCreateTime(null);
|
yxUserScore.setCreateTime(null);
|
||||||
yxUserScore.setUpdateTime(null);
|
yxUserScore.setUpdateTime(null);
|
||||||
yxUserScore.setCalculationTableName("yx_calculation_major");
|
yxUserScore.setCalculationTableName(YxConstant.newCalculationMajorName);
|
||||||
//保存当前用户的得分
|
//保存当前用户的得分
|
||||||
yxUserScoreService.save(yxUserScore);
|
yxUserScoreService.save(yxUserScore);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -157,4 +157,7 @@ public class RecommendMajorDTO implements Serializable {
|
||||||
private BigDecimal scoreLineDifference;
|
private BigDecimal scoreLineDifference;
|
||||||
@ApiModelProperty(value = "状态")
|
@ApiModelProperty(value = "状态")
|
||||||
private String state;
|
private String state;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "学费")
|
||||||
|
private String tuition;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -75,8 +75,8 @@ public class YxConstant {
|
||||||
|
|
||||||
public static BigDecimal bigDecimal7p5 = new BigDecimal("7.5");
|
public static BigDecimal bigDecimal7p5 = new BigDecimal("7.5");
|
||||||
public static BigDecimal bigDecimal50 = new BigDecimal("50");
|
public static BigDecimal bigDecimal50 = new BigDecimal("50");
|
||||||
public static String oldCalculationMajorName = "yx_calculation_major";
|
public static String oldCalculationMajorName = "yx_calculation_major_2025";
|
||||||
public static String newCalculationMajorName = "yx_calculation_major";
|
public static String newCalculationMajorName = "yx_calculation_major_2025";
|
||||||
public static BigDecimal bigDecimal10 = new BigDecimal("10");
|
public static BigDecimal bigDecimal10 = new BigDecimal("10");
|
||||||
public static BigDecimal bigDecimal025 = new BigDecimal("0.25");
|
public static BigDecimal bigDecimal025 = new BigDecimal("0.25");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ public class YxCalculationMajor implements Serializable {
|
||||||
/**学费*/
|
/**学费*/
|
||||||
@Excel(name = "学费", width = 15)
|
@Excel(name = "学费", width = 15)
|
||||||
@ApiModelProperty(value = "学费")
|
@ApiModelProperty(value = "学费")
|
||||||
private java.math.BigDecimal tuition;
|
private String tuition;
|
||||||
/**备注*/
|
/**备注*/
|
||||||
@Excel(name = "备注", width = 15)
|
@Excel(name = "备注", width = 15)
|
||||||
@ApiModelProperty(value = "备注")
|
@ApiModelProperty(value = "备注")
|
||||||
|
|
|
||||||
|
|
@ -24,4 +24,6 @@ public interface YxCalculationMajorMapper extends BaseMapper<YxCalculationMajor>
|
||||||
void insertBatchNew(@Param("tableName") String tableName,@Param("scoreId")String scoreId,@Param("list") List<YxCalculationMajor> list);
|
void insertBatchNew(@Param("tableName") String tableName,@Param("scoreId")String scoreId,@Param("list") List<YxCalculationMajor> list);
|
||||||
|
|
||||||
List<String> groupByBatchNumber(@Param(value = "tableName")String tableName,@Param("queryvo") QueryRecommendMajorVO queryRecommendMajorVO);
|
List<String> groupByBatchNumber(@Param(value = "tableName")String tableName,@Param("queryvo") QueryRecommendMajorVO queryRecommendMajorVO);
|
||||||
|
|
||||||
|
YxCalculationMajor getCalculationById(@Param("calculationTableName") String calculationTableName, @Param("calculationMajorId") String calculationMajorId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,6 @@
|
||||||
s.province as province,
|
s.province as province,
|
||||||
s.school_nature as schoolNature,
|
s.school_nature as schoolNature,
|
||||||
s.institution_type as institutionType
|
s.institution_type as institutionType
|
||||||
|
|
||||||
FROM ${tableName} cm
|
FROM ${tableName} cm
|
||||||
LEFT JOIN yx_school_child sc ON sc.school_code = cm.school_code
|
LEFT JOIN yx_school_child sc ON sc.school_code = cm.school_code
|
||||||
LEFT JOIN yx_school_research_teaching srt ON srt.school_id = sc.school_id
|
LEFT JOIN yx_school_research_teaching srt ON srt.school_id = sc.school_id
|
||||||
|
|
@ -558,5 +557,8 @@
|
||||||
AND cm.enroll_probability >=0
|
AND cm.enroll_probability >=0
|
||||||
GROUP BY cm.batch
|
GROUP BY cm.batch
|
||||||
</select>
|
</select>
|
||||||
|
<select id="getCalculationById" resultType="org.jeecg.modules.yx.entity.YxCalculationMajor">
|
||||||
|
SELECT * FROM ${calculationTableName} WHERE id = #{calculationMajorId}
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@
|
||||||
sm.batch as batch,
|
sm.batch as batch,
|
||||||
sm.enrollment_code as enrollmentCode,
|
sm.enrollment_code as enrollmentCode,
|
||||||
sm.major_code,
|
sm.major_code,
|
||||||
|
sm.tuition as tuition,
|
||||||
sm.tuition as studyCost,
|
sm.tuition as studyCost,
|
||||||
sm.kslx,
|
sm.kslx,
|
||||||
sm.plan_num as planNum
|
sm.plan_num as planNum
|
||||||
|
|
|
||||||
|
|
@ -62,4 +62,6 @@ public interface IYxCalculationMajorService extends IService<YxCalculationMajor>
|
||||||
void copyNew(String oldScoreId, String newScoreId, String oldCalculationMajorTableName, String newCalculationMajorTableName);
|
void copyNew(String oldScoreId, String newScoreId, String oldCalculationMajorTableName, String newCalculationMajorTableName);
|
||||||
|
|
||||||
List<String> groupByBatchNumber(QueryRecommendMajorVO queryRecommendMajorVO);
|
List<String> groupByBatchNumber(QueryRecommendMajorVO queryRecommendMajorVO);
|
||||||
|
|
||||||
|
YxCalculationMajor getCalculationById(String calculationTableName, String calculationMajorId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,7 @@ public class YxCalculationMajorServiceImpl extends ServiceImpl<YxCalculationMajo
|
||||||
otherScoreLimitation = new StringBuilder();
|
otherScoreLimitation = new StringBuilder();
|
||||||
yxCalculationMajor = new YxCalculationMajor();
|
yxCalculationMajor = new YxCalculationMajor();
|
||||||
BeanUtils.copyProperties(recommendMajorDTO, yxCalculationMajor);
|
BeanUtils.copyProperties(recommendMajorDTO, yxCalculationMajor);
|
||||||
|
yxCalculationMajor.setTuition(recommendMajorDTO.getTuition());
|
||||||
yxCalculationMajor.setDetail(recommendMajorDTO.getMajorDetail());
|
yxCalculationMajor.setDetail(recommendMajorDTO.getMajorDetail());
|
||||||
yxCalculationMajor.setScoreId(userScore.getId());
|
yxCalculationMajor.setScoreId(userScore.getId());
|
||||||
yxCalculationMajor.setStudentOldConvertedScore(recommendMajorDTO.getStudentScore());
|
yxCalculationMajor.setStudentOldConvertedScore(recommendMajorDTO.getStudentScore());
|
||||||
|
|
@ -428,6 +429,11 @@ public class YxCalculationMajorServiceImpl extends ServiceImpl<YxCalculationMajo
|
||||||
return baseMapper.groupByBatchNumber(activeCurrentUserScore.getCalculationTableName(),queryRecommendMajorVO);
|
return baseMapper.groupByBatchNumber(activeCurrentUserScore.getCalculationTableName(),queryRecommendMajorVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public YxCalculationMajor getCalculationById(String calculationTableName, String calculationMajorId) {
|
||||||
|
return baseMapper.getCalculationById(calculationTableName, calculationMajorId);
|
||||||
|
}
|
||||||
|
|
||||||
private void setSchoolTagsList(List<RecommendMajorDTO> recommendMajorList) {
|
private void setSchoolTagsList(List<RecommendMajorDTO> recommendMajorList) {
|
||||||
if (CollectionUtils.isNotEmpty(recommendMajorList)) {
|
if (CollectionUtils.isNotEmpty(recommendMajorList)) {
|
||||||
Set<String> schoolIdSet = recommendMajorList.stream().map(RecommendMajorDTO::getSchoolId).collect(Collectors.toSet());
|
Set<String> schoolIdSet = recommendMajorList.stream().map(RecommendMajorDTO::getSchoolId).collect(Collectors.toSet());
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ import org.apache.shiro.SecurityUtils;
|
||||||
import org.jeecg.common.system.vo.LoginUser;
|
import org.jeecg.common.system.vo.LoginUser;
|
||||||
import org.jeecg.common.util.AssertUtils;
|
import org.jeecg.common.util.AssertUtils;
|
||||||
import org.jeecg.common.util.RedisUtil;
|
import org.jeecg.common.util.RedisUtil;
|
||||||
|
import org.jeecg.modules.yx.constant.YxConstant;
|
||||||
import org.jeecg.modules.yx.dto.ProfessionalCategoryChildrenDTO;
|
import org.jeecg.modules.yx.dto.ProfessionalCategoryChildrenDTO;
|
||||||
import org.jeecg.modules.yx.dto.UserScoreUpdateDTO;
|
import org.jeecg.modules.yx.dto.UserScoreUpdateDTO;
|
||||||
import org.jeecg.modules.yx.entity.YxCalculationMajor;
|
import org.jeecg.modules.yx.entity.YxCalculationMajor;
|
||||||
|
|
@ -188,7 +189,7 @@ public class YxUserScoreServiceImpl extends ServiceImpl<YxUserScoreMapper, YxUse
|
||||||
if (CollectionUtil.isNotEmpty(userScoreUpdateDTO.getSubjectList())) {
|
if (CollectionUtil.isNotEmpty(userScoreUpdateDTO.getSubjectList())) {
|
||||||
yxUserScore.setSubjects(userScoreUpdateDTO.getSubjectList().stream().collect(Collectors.joining(",")));
|
yxUserScore.setSubjects(userScoreUpdateDTO.getSubjectList().stream().collect(Collectors.joining(",")));
|
||||||
}
|
}
|
||||||
yxUserScore.setCalculationTableName("yx_calculation_major");
|
yxUserScore.setCalculationTableName(YxConstant.newCalculationMajorName);
|
||||||
this.save(yxUserScore);
|
this.save(yxUserScore);
|
||||||
return yxUserScore;
|
return yxUserScore;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -426,14 +426,14 @@ public class YxVolunteerServiceImpl extends ServiceImpl<YxVolunteerMapper, YxVol
|
||||||
String volunteerId = activeByCreateVolunteerDto.getId();
|
String volunteerId = activeByCreateVolunteerDto.getId();
|
||||||
YxCalculationMajor calculationMajor = null;
|
YxCalculationMajor calculationMajor = null;
|
||||||
for (YxVolunteerRecord yxVolunteerRecord : volunteerRecordList) {
|
for (YxVolunteerRecord yxVolunteerRecord : volunteerRecordList) {
|
||||||
if (yxVolunteerRecord.getIndexs()>35) {
|
if (yxVolunteerRecord.getIndexs()>64) {
|
||||||
throw new JeecgBootException("各批次仅可加35个志愿");
|
throw new JeecgBootException("各批次仅可加64个志愿");
|
||||||
}
|
}
|
||||||
//判断有没有专业Id
|
//判断有没有专业Id
|
||||||
if (StringUtils.isBlank(yxVolunteerRecord.getCalculationMajorId())) {
|
if (StringUtils.isBlank(yxVolunteerRecord.getCalculationMajorId())) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
calculationMajor = yxCalculationMajorService.getById(yxVolunteerRecord.getCalculationMajorId());
|
calculationMajor = yxCalculationMajorService.getCalculationById(activeByCreateVolunteerDto.getUserScoreInfo().getCalculationTableName() ,yxVolunteerRecord.getCalculationMajorId());
|
||||||
if (calculationMajor == null) {
|
if (calculationMajor == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue