public String update() { lyff = lyffService.update(lyff); if (lyff.getLylx().getZdbm().equals(LylxDto.LYLX_DEPT)) { return "dept"; } else { return "person"; } }
public String save() { lyff.setSqr(getCurrentRyxx()); lyffService.save(lyff); return SUCCESS; }
public String editForZx() { lyff = lyffService.get(lyff); lyff.setLyzt(LyztDto.getwly()); return SUCCESS; }
public String addDept() { lyff.setLybh(DateUtils.format("yyyyMMddHHmm", new Date())); lyff.setLylx(LylxDto.getDept()); return SUCCESS; }