mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-09 02:46:50 +08:00
注释代码
This commit is contained in:
@@ -55,5 +55,5 @@ public interface ICourseFileService {
|
|||||||
*/
|
*/
|
||||||
void delete(String id,boolean deleted);
|
void delete(String id,boolean deleted);
|
||||||
|
|
||||||
void updateDuration(String contentRefId, Integer duration);
|
// void updateDuration(String contentRefId, Integer duration);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ public class CourseContentServiceImpl implements ICourseContentService {
|
|||||||
ccDao.save(cc);
|
ccDao.save(cc);
|
||||||
}else {
|
}else {
|
||||||
ccDao.update(cc);
|
ccDao.update(cc);
|
||||||
courseFileService.updateDuration(cc.getContentRefId(),cc.getDuration());
|
// courseFileService.updateDuration(cc.getContentRefId(),cc.getDuration());
|
||||||
cc.setSysVersion(ccDao.getVersion(cc.getId()));
|
cc.setSysVersion(ccDao.getVersion(cc.getId()));
|
||||||
}
|
}
|
||||||
//添加或保存其它信息
|
//添加或保存其它信息
|
||||||
|
|||||||
@@ -100,12 +100,12 @@ public class CourseFileServiceImpl implements ICourseFileService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
// @Override
|
||||||
public void updateDuration(String contentRefId,Integer duration) {
|
// public void updateDuration(String contentRefId,Integer duration) {
|
||||||
if (duration == null) {
|
// if (duration == null) {
|
||||||
duration = 0;
|
// duration = 0;
|
||||||
}
|
// }
|
||||||
String sql = "UPDATE boe_course_file SET duration = "+ duration+" WHERE id = "+ contentRefId+" ";
|
// String sql = "UPDATE boe_course_file SET duration = "+ duration+" WHERE id = "+ contentRefId+" ";
|
||||||
courseFileDao.sqlUpdate(sql);
|
// courseFileDao.sqlUpdate(sql);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user