Esempio n. 1
0
 @RequestMapping("/WorkJoinAction/edit")
 @ResponseBody
 public String edit(WorkJoin workJoin) {
   try {
     workJoinService.edit(workJoin);
     employeeService.editEmpWorkJoinDay(
         workJoin.getEmpCode(), workJoin.getJoinDate(), workJoin.getJoinType());
     return convertJson(getJsonStatus(null));
   } catch (Exception e) {
     e.printStackTrace();
     return convertJson(getJsonStatus(e));
   }
 }
Esempio n. 2
0
 @RequestMapping("/WorkJoinAction/del")
 @ResponseBody
 public String del(Long id) {
   try {
     WorkJoin workJoin = workJoinService.getEntity(id);
     workJoinService.del(workJoin);
     employeeService.editEmpWorkJoinDay(workJoin.getEmpCode(), "", workJoin.getJoinType());
     return convertJson(getJsonStatus(null));
   } catch (Exception e) {
     e.printStackTrace();
     return convertJson(getJsonStatus(e));
   }
 }