@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)); } }
@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)); } }