mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-07 01:46:47 +08:00
Merge branch 'zcwy1108-llf' into dev1107-121
This commit is contained in:
@@ -55,5 +55,5 @@ public interface ICourseFileService {
|
||||
*/
|
||||
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);
|
||||
}else {
|
||||
ccDao.update(cc);
|
||||
courseFileService.updateDuration(cc.getContentRefId(),cc.getDuration());
|
||||
// courseFileService.updateDuration(cc.getContentRefId(),cc.getDuration());
|
||||
cc.setSysVersion(ccDao.getVersion(cc.getId()));
|
||||
}
|
||||
//添加或保存其它信息
|
||||
|
||||
@@ -100,12 +100,12 @@ public class CourseFileServiceImpl implements ICourseFileService {
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void updateDuration(String contentRefId,Integer duration) {
|
||||
if (duration == null) {
|
||||
duration = 0;
|
||||
}
|
||||
String sql = "UPDATE boe_course_file SET duration = "+ duration+" WHERE id = "+ contentRefId+" ";
|
||||
courseFileDao.sqlUpdate(sql);
|
||||
}
|
||||
// @Override
|
||||
// public void updateDuration(String contentRefId,Integer duration) {
|
||||
// if (duration == null) {
|
||||
// duration = 0;
|
||||
// }
|
||||
// String sql = "UPDATE boe_course_file SET duration = "+ duration+" WHERE id = "+ contentRefId+" ";
|
||||
// courseFileDao.sqlUpdate(sql);
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user