|
@@ -158,11 +158,11 @@ public class Ticket10047 extends TicketHelper {
|
|
|
") a left join ( "+
|
|
|
"select * from ly_std_ticket where ly_agent_id=? and (category_id=? or 1=?)) b on a.std_id=b.std_id ) f ";
|
|
|
//华侨港澳台联招where ticket_no is null
|
|
|
- private final static String GAT_LIST_STD_FS = " select distinct std_id from (select a.std_id,b.ticket_no from ( "+
|
|
|
- " select s.std_id from std_reg s,std_enrol e where s.std_id=e.std_id and e.agent_id=? and s.ticket_order=0 and e.pay_status='Active' "+
|
|
|
+ private final static String GAT_LIST_STD_FS = " select distinct std_id,std_province from (select a.std_id,b.ticket_no,std_province from ( "+
|
|
|
+ " select s.std_id,s.std_province from std_reg s,std_enrol e where s.std_id=e.std_id and e.agent_id=? and s.ticket_order=0 and e.pay_status='Active' "+
|
|
|
" and (e.category_id=? or 1=?) and s.std_province > 70 and s.std_province!=80 and e.aspect_id=? and e.back_note=1 "+
|
|
|
") a left join ( "+
|
|
|
- "select * from ly_std_ticket where ly_agent_id=? and (category_id=? or 1=?)) b on a.std_id=b.std_id ) f ";
|
|
|
+ "select * from ly_std_ticket where ly_agent_id=? and (category_id=? or 1=?)) b on a.std_id=b.std_id ) f order by std_province ";
|
|
|
//香港中学文凭where ticket_no is null
|
|
|
private final static String ZXWP_LIST_STD_FS = " select distinct std_id from (select a.std_id,b.ticket_no from ( "+
|
|
|
" select s.std_id from std_reg s,std_enrol e where s.std_id=e.std_id and e.agent_id=? and s.ticket_order=0 and e.pay_status='Active' "+
|
|
@@ -232,16 +232,13 @@ public class Ticket10047 extends TicketHelper {
|
|
|
daoTicket.insert(ticket);
|
|
|
}*/
|
|
|
}
|
|
|
-
|
|
|
- if (aspect_code == null || !aspect_code.equals(aspect.getAspect_code())) {
|
|
|
- ticket_seq_gat = 0;
|
|
|
- }
|
|
|
- ticketLength = 3;
|
|
|
+
|
|
|
+
|
|
|
//港澳台
|
|
|
stdArray = daoTicket.listBySql(StdReg.class, GAT_LIST_STD_FS, agent.getLy_agent_id(), category.getCategory_id(),
|
|
|
- category.getCategory_id() == null ? 1 : 2, aspect.getAspect_id(), agent.getLy_agent_id(), category.getCategory_id(),
|
|
|
- category.getCategory_id() == null ? 1 : 2);
|
|
|
-
|
|
|
+ category.getCategory_id() == null ? 1 : 2, aspect.getAspect_id(), agent.getLy_agent_id(), category.getCategory_id(),
|
|
|
+ category.getCategory_id() == null ? 1 : 2);
|
|
|
+
|
|
|
for(StdReg std : stdArray) {
|
|
|
LyStdTicket ticket = new LyStdTicket();
|
|
|
ticket.setCategory_id(category.getCategory_id());
|
|
@@ -249,19 +246,20 @@ public class Ticket10047 extends TicketHelper {
|
|
|
ticket.setStd_id(std.getStd_id());
|
|
|
ticket.setTicket_batch(2);
|
|
|
ticket.setTicket_seq(num++);
|
|
|
- ticket.setTicket_no("F" + ArtParamHelper.ArtYear.substring(2, 4) + "" + aspect.getAspect_code()+"H"
|
|
|
- + StringHelper.leftPadding((++ticket_seq_gat) + "", ticketLength, '0'));
|
|
|
+ ticket.setTicket_no("F" + ArtParamHelper.ArtYear.substring(2, 4) + aspect.getAspect_code()
|
|
|
+ + StringHelper.leftPadding((++ticket_seq) + "", ticketLength, '0'));
|
|
|
daoTicket.insert(ticket);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
//香港中学文凭考生
|
|
|
stdArray = daoTicket.listBySql(StdReg.class, ZXWP_LIST_STD_FS, agent.getLy_agent_id(), category.getCategory_id(),
|
|
|
- category.getCategory_id() == null ? 1 : 2, aspect.getAspect_id(), agent.getLy_agent_id(), category.getCategory_id(),
|
|
|
- category.getCategory_id() == null ? 1 : 2);
|
|
|
+ category.getCategory_id() == null ? 1 : 2, aspect.getAspect_id(), agent.getLy_agent_id(), category.getCategory_id(),
|
|
|
+ category.getCategory_id() == null ? 1 : 2);
|
|
|
|
|
|
- if (aspect_code == null || !aspect_code.equals(aspect.getAspect_code())) {
|
|
|
+ /*if (aspect_code == null || !aspect_code.equals(aspect.getAspect_code())) {
|
|
|
ticket_num = 0;
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
for(StdReg std : stdArray) {
|
|
|
LyStdTicket ticket = new LyStdTicket();
|
|
@@ -270,11 +268,16 @@ public class Ticket10047 extends TicketHelper {
|
|
|
ticket.setStd_id(std.getStd_id());
|
|
|
ticket.setTicket_batch(2);
|
|
|
ticket.setTicket_seq(num++);
|
|
|
- ticket.setTicket_no("F" + ArtParamHelper.ArtYear.substring(2, 4) + "" + aspect.getAspect_code()+"D"
|
|
|
- + StringHelper.leftPadding((++ticket_num) + "", ticketLength, '0'));
|
|
|
+ ticket.setTicket_no("F" + ArtParamHelper.ArtYear.substring(2, 4) + aspect.getAspect_code()
|
|
|
+ + StringHelper.leftPadding((++ticket_seq) + "", ticketLength, '0'));
|
|
|
daoTicket.insert(ticket);
|
|
|
}
|
|
|
|
|
|
+ /*if (aspect_code == null || !aspect_code.equals(aspect.getAspect_code())) {
|
|
|
+ ticket_seq_gat = 0;
|
|
|
+ }
|
|
|
+ ticketLength = 3;*/
|
|
|
+
|
|
|
aspect_code = aspect.getAspect_code();
|
|
|
}
|
|
|
}
|