Commit ba2b2c1b authored by Quxl's avatar Quxl

x

parent dec47f77
...@@ -47,21 +47,23 @@ public class WebUtilController { ...@@ -47,21 +47,23 @@ public class WebUtilController {
for(Fc_member_film film : films) { for(Fc_member_film film : films) {
Integer enroll_1_2 = null; Integer enroll_1_2 = null;
String enroll_type_name = film.getEnroll_type_name(); String enroll_type_name = film.getEnroll_type_name();
String[] enrolls = enroll_type_name.split(","); if(enroll_type_name != null && enroll_type_name.length() > 0) {
for(String enroll_str : enrolls) { String[] enrolls = enroll_type_name.split(",");
Integer enroll_type_id = Integer.valueOf(enroll_str); for(String enroll_str : enrolls) {
if(enroll_type_id == 1 || enroll_type_id == 2) { Integer enroll_type_id = Integer.valueOf(enroll_str);
if(enroll_1_2 == null) { if(enroll_type_id == 1 || enroll_type_id == 2) {
enroll_1_2 = enroll_type_id; if(enroll_1_2 == null) {
} else { enroll_1_2 = enroll_type_id;
throw new XRException("申报影片" + film.getId() + "中同时包含亚新和金爵流程"); } else {
throw new XRException("申报影片" + film.getId() + "中同时包含亚新和金爵流程");
}
} }
} }
} if(enroll_1_2 != null) {
if(enroll_1_2 != null) { service.toFirstRound(film.getId(), enroll_1_2);
service.toFirstRound(film.getId(), enroll_1_2); } else {
} else { service.toFirstRound(film.getId(), 4);
service.toFirstRound(film.getId(), 4); }
} }
} }
return Rjx.jsonOk(); return Rjx.jsonOk();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment