|
@@ -363,6 +363,7 @@ public class QwSopTempServiceImpl implements IQwSopTempService
|
|
|
if(temp.getTime() == null){
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
FsUserCourse fsUserCourse = fsUserCourseMapper.selectFsUserCourseByCourseId(temp.getCourseId());
|
|
|
temp.setProject(fsUserCourse.getProject());
|
|
|
qwSopTempMapper.updateQwSopTemp(temp);
|
|
@@ -389,7 +390,12 @@ public class QwSopTempServiceImpl implements IQwSopTempService
|
|
|
QwSopTempRules rules = new QwSopTempRules();
|
|
|
rules.setTempId(temp.getId());
|
|
|
rules.setName(day.getName());
|
|
|
- rules.setIsOfficial(sorts.get() == 0 ? "1" : "0");
|
|
|
+ if (temp.getOpenOfficial().equals("1")){
|
|
|
+ rules.setIsOfficial(sorts.get() == 0 ? "1" : "0");
|
|
|
+ }else {
|
|
|
+ rules.setIsOfficial("0");
|
|
|
+ }
|
|
|
+
|
|
|
rules.setTime(time);
|
|
|
rules.setContentType(2);
|
|
|
rules.setType(2);
|
|
@@ -423,6 +429,19 @@ public class QwSopTempServiceImpl implements IQwSopTempService
|
|
|
content2.setContent(JSON.toJSONString(setting2));
|
|
|
qwSopTempContents.add(content2);
|
|
|
}
|
|
|
+ if (sorts.get() > 0){
|
|
|
+
|
|
|
+ QwSopTempContent content3 = new QwSopTempContent();
|
|
|
+ content3.setTempId(temp.getId());
|
|
|
+ content3.setContentType(3);
|
|
|
+ QwSopTempSetting2.Content.Setting setting3 = new QwSopTempSetting2.Content.Setting();
|
|
|
+ setting3.setValue(temp.getTimeDesc().get(sorts.get()-1));
|
|
|
+ setting3.setContentType("1");
|
|
|
+ content3.setContent(JSON.toJSONString(setting3));
|
|
|
+ qwSopTempContents.add(content3);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
rules.setSorts(sorts.getAndIncrement());
|
|
|
if(rules.getSorts() == 0){
|
|
|
rules.setCourseType(0);
|