mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-06 17:36:47 +08:00
在线课作业重复提交报错修复
This commit is contained in:
@@ -68,13 +68,6 @@ public class StudyHomeWorkServiceImpl implements IStudyHomeWorkService{
|
||||
//dao.save(homework);
|
||||
//设置id。然后进行悠
|
||||
homework.setId(obj.toString());
|
||||
String sql = "select id,content_id,course_id,hw_name,study_id,study_item_id from boe_study_homework where content_id = '"+homework.getContentId()+"' and study_id = '"+homework.getStudyId()+"' and course_id = '"+homework.getCourseId()+"' and hw.id = '"+homework.getHwId()+"' ";;
|
||||
if (!sql.isEmpty()) {
|
||||
List<Object[]> list = dao.sqlFindList(sql);
|
||||
for (Object[] objs : list) {
|
||||
homework.setStudyItemId(objs[5].toString());
|
||||
}
|
||||
}
|
||||
dao.update(homework);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user