Ejemplo n.º 1
0
 @Action("/pub/subject/subjectSaveOrUpdate")
 public void saveComSubjects() throws Exception {
   comSubjectService.saveOrUpdateComSubject(comSubject);
   Map<String, Object> map = new HashMap<String, Object>();
   map.put("success", true);
   map.put("message", "操作成功!");
   this.sendAjaxResultByJson(JSONObject.fromObject(map).toString());
 }
Ejemplo n.º 2
0
 @Action("/pub/subject/updateSeq")
 public String updateSeqs() throws Exception {
   try {
     comSubjectService.updateSeqs(subjectSeqs);
     this.sendAjaxMsg("success");
   } catch (Exception ex) {
     ex.printStackTrace();
     this.sendAjaxMsg("error");
   }
   return null;
 }
Ejemplo n.º 3
0
 @Action("/pub/subject/subjectEdie")
 public String editComSubjects() {
   comSubject.setSubjectType(subjectTypeStr);
   // 修改
   if (StringUtils.isNotBlank(comSubjectIdStr)) {
     comSubject.setComSubjectId(Long.parseLong(comSubjectIdStr));
     comSubject = comSubjectService.getComSubjectById(comSubject);
   } else {
     // 新增
     comSubject.setCreateTime(new Date());
     comSubject.setUpdateTime(new Date());
     comSubject.setUsedByCount(0L);
   }
   return "subjectEdit";
 }
Ejemplo n.º 4
0
 @Action("/pub/subject/subjectList")
 public String queryComSubjects() {
   comSubjectList = comSubjectService.findComSubjects(comSubject, Integer.MAX_VALUE);
   return "subjectList";
 }