|
@@ -28,8 +28,8 @@ public class LyStdSubjectDao extends PlatformDaoSupport<LyStdSubject> {
|
|
*/
|
|
*/
|
|
public List<StdReg> listGroupStdByAspectTicketNum(int ly_group_id) {
|
|
public List<StdReg> listGroupStdByAspectTicketNum(int ly_group_id) {
|
|
String sql = "select aspect_ticket_num,std.std_id,std.std_province from ly_std_subject sb,std_reg std where std.std_id=sb.std_id and ly_group_id=? group by aspect_ticket_num,std.std_id,std.std_province order by aspect_ticket_num";
|
|
String sql = "select aspect_ticket_num,std.std_id,std.std_province from ly_std_subject sb,std_reg std where std.std_id=sb.std_id and ly_group_id=? group by aspect_ticket_num,std.std_id,std.std_province order by aspect_ticket_num";
|
|
- //TODO 临时处理
|
|
|
|
-// String sql = "select aspect_ticket_num,std.std_id,std.std_province from ly_std_subject sb,std_reg std where std.std_id=sb.std_id and ly_group_id=? group by aspect_ticket_num,std.std_id,std.std_province order by std.STD_PARAM1+0";
|
|
|
|
|
|
+ //TODO 央美附中临时处理
|
|
|
|
+ //String sql = "select aspect_ticket_num,std.std_id,std.std_province from ly_std_subject sb,std_reg std where std.std_id=sb.std_id and ly_group_id=? group by aspect_ticket_num,std.std_id,std.std_province order by std.STD_PARAM1+0";
|
|
return this.listBySql(StdReg.class, sql, ly_group_id);
|
|
return this.listBySql(StdReg.class, sql, ly_group_id);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -691,4 +691,9 @@ public class LyStdSubjectDao extends PlatformDaoSupport<LyStdSubject> {
|
|
+ " ORDER BY ss.subject_name,mp.seq ";
|
|
+ " ORDER BY ss.subject_name,mp.seq ";
|
|
return this.listBySql(ModelPhotoBean.class, sql, stdId);
|
|
return this.listBySql(ModelPhotoBean.class, sql, stdId);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public void updateStdWrittenSeat(Integer stdId, Integer groupId, int seatNum) {
|
|
|
|
+ String sql = " UPDATE ly_std_subject set ly_room_seq=? where std_id=? and ly_group_id=? ";
|
|
|
|
+ this.updateBySql(sql, seatNum, stdId, groupId);
|
|
|
|
+ }
|
|
}
|
|
}
|