|
@@ -295,9 +295,21 @@ public class EnterInquiryTask extends AbstractTask{
|
|
|
private void saveInquiryEnRemind(List<InquiryEnRemind> downs) throws Exception {
|
|
private void saveInquiryEnRemind(List<InquiryEnRemind> downs) throws Exception {
|
|
|
Map<String, Object> model = new HashMap<String, Object>();
|
|
Map<String, Object> model = new HashMap<String, Object>();
|
|
|
model.put("inquiryEnRemind", downs);
|
|
model.put("inquiryEnRemind", downs);
|
|
|
- String sql = SqlTemplate.fromXmlFile("database/template/inquiryEnRemind.xml", model);
|
|
|
|
|
- //System.out.println(sql);
|
|
|
|
|
- jdbcTemplate.execute(sql);
|
|
|
|
|
|
|
+ try{
|
|
|
|
|
+ String sql = SqlTemplate.fromXmlFile("database/template/inquiryEnRemind.xml", model);
|
|
|
|
|
+ jdbcTemplate.execute(sql);
|
|
|
|
|
+ }catch (Exception e){
|
|
|
|
|
+ for(int i = 0; i < downs.size(); i=i+2){
|
|
|
|
|
+ try {
|
|
|
|
|
+ List<InquiryEnRemind> tempList = downs.subList(i,i+2);
|
|
|
|
|
+ model.put("inquiryEnRemind", tempList);
|
|
|
|
|
+ String sql = SqlTemplate.fromXmlFile("database/template/inquiryEnRemind.xml", model);
|
|
|
|
|
+ jdbcTemplate.execute(sql);
|
|
|
|
|
+ }catch (Exception e1){
|
|
|
|
|
+ continue;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|