同分复评bug修复

dev
王家东 10 months ago
parent f303a7bae0
commit ae71672fef
  1. 4
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/mapper/AnnualCompPointMapper.java
  2. 6
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/service/impl/AnnualCompPointServiceImpl.java

@ -21,9 +21,7 @@ public interface AnnualCompPointMapper extends BaseMapper<AnnualCompPoint> {
@Select("select * from annual_comp_point where starttime > #{currentDate} or endtime < #{currentDate}")
List<AnnualCompPoint> getAnnualCompbet1(LocalDate currentDate);
@Select("SELECT CASE WHEN COUNT(*) > 1 THEN 'true' ELSE 'false' END AS has_duplicate FROM score_management WHERE annual_compid = #{id} GROUP BY score")
Boolean tongfenfupingiscftd(String id);
@Select("SELECT CASE WHEN COUNT(*) > 1 THEN 'true' ELSE 'false' END AS has_duplicate FROM score_persion WHERE annual_compid = #{id} GROUP BY score")
@Select("SELECT COUNT(DISTINCT score) AS unique_scores FROM score_management WHERE annual_compid = #{id} ")
Boolean tongfenfupingiscfgr(String id);
}

@ -305,9 +305,11 @@ public class AnnualCompPointServiceImpl extends ServiceImpl<AnnualCompPointMappe
String zbc = "";
//首先判断成绩有没有重复的
Boolean a = annualCompPointMapper.tongfenfupingiscfgr(id);
if (a){
if (a){
zbc = "1";
} else {
} else {
zbc = "0";
}

Loading…
Cancel
Save