Parcourir la source

修改抽签3

yuanjunhao il y a 1 jour
Parent
commit
79da56934d

+ 2 - 4
web/src/main/java/com/ynfy/buss/exam/chouqian/service/impl/CqXxxqServiceImpl.java

@@ -191,7 +191,6 @@ public class CqXxxqServiceImpl extends ServiceImpl<CqXxxqMapper, CqXxxq> impleme
                              ;
                             int ss=0;
                             while (ss!=2){
-                                System.out.println("开始");
                                 for (CqXxxq xxxq1 : cqXxList) {
                                     if(xxxq1.getSchoolcode().equals(""+xh)){
                                         ss=1;
@@ -204,7 +203,6 @@ public class CqXxxqServiceImpl extends ServiceImpl<CqXxxqMapper, CqXxxq> impleme
                                     ss=0;
                                 }
                             }
-                            System.out.println("补的学校:"+xh);
                             CqXxxq cqXxxq1=new CqXxxq();
                             for(CqXxxq cqXxxq2:cqXxxqList){
                                 if (cqXxxq2.getSchoolcode().equals(xh+"")){
@@ -224,6 +222,7 @@ public class CqXxxqServiceImpl extends ServiceImpl<CqXxxqMapper, CqXxxq> impleme
                             cqYcqxxbu.setBuid(cqYcqxx.getId());
                             cqYcqxxMapper.insert(cqYcqxxbu);
                         }else {
+                            cqYcqxx.setState("0");
                             cqYcqxxMapper.insert(cqYcqxx);
                         }
                     }
@@ -298,7 +297,7 @@ public class CqXxxqServiceImpl extends ServiceImpl<CqXxxqMapper, CqXxxq> impleme
     //班级抽签
     @Override
     public String bjcq(String districtname) {
-        if (districtname.isEmpty()){
+        if (districtname==null){
             return "数据为空";
         }
         String banji="";
@@ -760,7 +759,6 @@ public class CqXxxqServiceImpl extends ServiceImpl<CqXxxqMapper, CqXxxq> impleme
             chouqurenshu=studentamount-cqYcqxx.getSchoolpopulation();
             //获取补的学校
             cqYcqxxb=cqYcqxxMapper.chabu(cqYcqxx.getId());
-            System.out.println("显示补足的学校"+cqYcqxxb);
             rycqsjsbj(cqYcqxxb,cqCqbjxx,chouqurenshu);
         }
         return true;