|
@@ -909,18 +909,18 @@ public class SysZuoybController extends BaseController {
|
|
|
//获取年级
|
|
|
List<Sort> list = sortService.getParamValByCode("grade");
|
|
|
for (Sort sort : list) {
|
|
|
- ZuoybKnowHowDetailsSort howsort = new ZuoybKnowHowDetailsSort();
|
|
|
- howsort.setCreateTime(new Date());
|
|
|
- howsort.setType(o.getVersionType());
|
|
|
- howsort.setHowId(finalHow.getId());
|
|
|
- howsort.setCourseName(finalHow.getCourseName());
|
|
|
- howsort.setNum(finalHow.getNum());
|
|
|
- howsort.setAlias(finalHow.getName());
|
|
|
- howsort.setLibId(finalHow.getLibId());
|
|
|
- howsort.setStat(1);
|
|
|
- howsort.setGrade(sort.getName());
|
|
|
- howsort.setGradeNum(Integer.parseInt(sort.getAliases()));
|
|
|
for(int i=1;i<3;i++){
|
|
|
+ ZuoybKnowHowDetailsSort howsort = new ZuoybKnowHowDetailsSort();
|
|
|
+ howsort.setCreateTime(new Date());
|
|
|
+ howsort.setType(o.getVersionType());
|
|
|
+ howsort.setHowId(finalHow.getId());
|
|
|
+ howsort.setCourseName(finalHow.getCourseName());
|
|
|
+ howsort.setNum(finalHow.getNum());
|
|
|
+ howsort.setAlias(finalHow.getName());
|
|
|
+ howsort.setLibId(finalHow.getLibId());
|
|
|
+ howsort.setStat(1);
|
|
|
+ howsort.setGrade(sort.getName());
|
|
|
+ howsort.setGradeNum(Integer.parseInt(sort.getAliases()));
|
|
|
howsort.setSemester(i);
|
|
|
zuoybKnowHowDetailsSortService.save(howsort);
|
|
|
}
|
|
@@ -1332,33 +1332,32 @@ public class SysZuoybController extends BaseController {
|
|
|
//获取年级
|
|
|
List<Sort> list = sortService.getParamValByCode("grade");
|
|
|
for (Sort sort : list) {
|
|
|
- ZuoybKnowHowDetailsSort howsort = new ZuoybKnowHowDetailsSort();
|
|
|
- howsort.setCreateTime(new Date());
|
|
|
- howsort.setHowDetailsId(finalHow.getId());
|
|
|
- howsort.setType(o.getVersionType());
|
|
|
- howsort.setHowId(finalHow.getHowId());
|
|
|
- howsort.setCourseName(zuoybKnowHow.getCourseName());
|
|
|
- howsort.setNum(finalHow.getNum());
|
|
|
- howsort.setAlias(finalHow.getName());
|
|
|
- howsort.setLibId(finalHow.getLibId());
|
|
|
- howsort.setStat(2);
|
|
|
- howsort.setGrade(sort.getName());
|
|
|
- howsort.setGradeNum(Integer.parseInt(sort.getAliases()));
|
|
|
-
|
|
|
-
|
|
|
- howsort.setMemorize(finalHow.getMemorize());
|
|
|
- howsort.setUnderstanding(finalHow.getUnderstanding());
|
|
|
- howsort.setApply(finalHow.getApply());
|
|
|
- howsort.setModule(finalHow.getModule());
|
|
|
- howsort.setTwoModule(finalHow.getTwoModule());
|
|
|
- howsort.setJxmb(finalHow.getJxmb());
|
|
|
- howsort.setZdbx(finalHow.getZdbx());
|
|
|
- howsort.setYdsl(finalHow.getYdsl());
|
|
|
for(int i=1;i<3;i++){
|
|
|
+ ZuoybKnowHowDetailsSort howsort = new ZuoybKnowHowDetailsSort();
|
|
|
+ howsort.setCreateTime(new Date());
|
|
|
+ howsort.setHowDetailsId(finalHow.getId());
|
|
|
+ howsort.setType(o.getVersionType());
|
|
|
+ howsort.setHowId(finalHow.getHowId());
|
|
|
+ howsort.setCourseName(zuoybKnowHow.getCourseName());
|
|
|
+ howsort.setNum(finalHow.getNum());
|
|
|
+ howsort.setAlias(finalHow.getName());
|
|
|
+ howsort.setLibId(finalHow.getLibId());
|
|
|
+ howsort.setStat(2);
|
|
|
+ howsort.setGrade(sort.getName());
|
|
|
+ howsort.setGradeNum(Integer.parseInt(sort.getAliases()));
|
|
|
+
|
|
|
+
|
|
|
+ howsort.setMemorize(finalHow.getMemorize());
|
|
|
+ howsort.setUnderstanding(finalHow.getUnderstanding());
|
|
|
+ howsort.setApply(finalHow.getApply());
|
|
|
+ howsort.setModule(finalHow.getModule());
|
|
|
+ howsort.setTwoModule(finalHow.getTwoModule());
|
|
|
+ howsort.setJxmb(finalHow.getJxmb());
|
|
|
+ howsort.setZdbx(finalHow.getZdbx());
|
|
|
+ howsort.setYdsl(finalHow.getYdsl());
|
|
|
howsort.setSemester(i);
|
|
|
zuoybKnowHowDetailsSortService.save(howsort);
|
|
|
}
|
|
|
- zuoybKnowHowDetailsSortService.save(howsort);
|
|
|
}
|
|
|
});
|
|
|
}else{
|
|
@@ -1490,20 +1489,21 @@ public class SysZuoybController extends BaseController {
|
|
|
//获取年级
|
|
|
List<Sort> list = sortService.getParamValByCode("grade");
|
|
|
for (Sort sort : list) {
|
|
|
- ZuoybKnowHowDetailsSort howsort = new ZuoybKnowHowDetailsSort();
|
|
|
- howsort.setCreateTime(new Date());
|
|
|
- howsort.setHowDetailsId(finalHow.getHowDetailsId());
|
|
|
- howsort.setHowDetailsKdId(finalHow.getId());
|
|
|
- howsort.setType(o.getVersionType());
|
|
|
- howsort.setHowId(finalHow.getHowId());
|
|
|
- howsort.setCourseName(zuoybKnowHow.getCourseName());
|
|
|
- howsort.setNum(finalHow.getNum());
|
|
|
- howsort.setAlias(finalHow.getName());
|
|
|
- howsort.setLibId(zuoybKnowHow.getLibId());
|
|
|
- howsort.setStat(3);
|
|
|
- howsort.setGrade(sort.getName());
|
|
|
- howsort.setGradeNum(Integer.parseInt(sort.getAliases()));
|
|
|
+
|
|
|
for(int i=1;i<3;i++){
|
|
|
+ ZuoybKnowHowDetailsSort howsort = new ZuoybKnowHowDetailsSort();
|
|
|
+ howsort.setCreateTime(new Date());
|
|
|
+ howsort.setHowDetailsId(finalHow.getHowDetailsId());
|
|
|
+ howsort.setHowDetailsKdId(finalHow.getId());
|
|
|
+ howsort.setType(o.getVersionType());
|
|
|
+ howsort.setHowId(finalHow.getHowId());
|
|
|
+ howsort.setCourseName(zuoybKnowHow.getCourseName());
|
|
|
+ howsort.setNum(finalHow.getNum());
|
|
|
+ howsort.setAlias(finalHow.getName());
|
|
|
+ howsort.setLibId(zuoybKnowHow.getLibId());
|
|
|
+ howsort.setStat(3);
|
|
|
+ howsort.setGrade(sort.getName());
|
|
|
+ howsort.setGradeNum(Integer.parseInt(sort.getAliases()));
|
|
|
howsort.setSemester(i);
|
|
|
zuoybKnowHowDetailsSortService.save(howsort);
|
|
|
}
|