| | |
| | | String hql = "from ExerciseCompleteInfo where studentId=? and deleteFlag is false"; |
| | | List<Object> Params = CollectionUtils.newList(studentId); |
| | | ExerciseCompleteInfo unique = findUnique(hql, Params, ExerciseCompleteInfo.class); |
| | | unique.setDeleteFlag(false); |
| | | commonDAO.update(unique); |
| | | if(unique!=null) { |
| | | unique.setDeleteFlag(false); |
| | | commonDAO.update(unique); |
| | | } |
| | | }else { |
| | | String hql = "from ExerciseCompleteInfo where studentId=? and deleteFlag is false"; |
| | | List<Object> Params = CollectionUtils.newList(studentId); |
| | | ExerciseCompleteInfo unique = findUnique(hql, Params, ExerciseCompleteInfo.class); |
| | | unique.setDeleteFlag(true); |
| | | commonDAO.update(unique); |
| | | if(unique!=null){ |
| | | unique.setDeleteFlag(true); |
| | | commonDAO.update(unique); |
| | | } |
| | | } |
| | | return new Result(true); |
| | | } |