|
@@ -45,11 +45,13 @@ public class StdEnrolControl extends ArtControl {
|
|
|
private ScStdAspectDao daoStdAspect;
|
|
|
|
|
|
@RequestMapping("std/enrol/map")
|
|
|
- public Ajax mapEnrol(int std_id) {
|
|
|
+ public Ajax mapEnrol(Integer std_id) {
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
- map.put("StdEnrolArray", getExamStatus(this.daoEnrol.mapStdEnrol(std_id)));
|
|
|
- map.put("PayBillArray", daoPay.listByCustomer(std_id + "", null));
|
|
|
- map.put("StdEnrolTracksArray", this.daoEnrol.listStdEnrolTracksByStd(std_id));
|
|
|
+ if(std_id != null) {
|
|
|
+ map.put("StdEnrolArray", getExamStatus(this.daoEnrol.mapStdEnrol(std_id)));
|
|
|
+ map.put("PayBillArray", daoPay.listByCustomer(std_id + "", null));
|
|
|
+ map.put("StdEnrolTracksArray", this.daoEnrol.listStdEnrolTracksByStd(std_id));
|
|
|
+ }
|
|
|
return new Ajax(map);
|
|
|
}
|
|
|
|