//通过id查询 | //通过id查询 | ||||
ZfdAuditor findById(String id); | ZfdAuditor findById(String id); | ||||
//通过id删除 | //通过id删除 | ||||
@Transactional | @Transactional |
//添加审批人 | //添加审批人 | ||||
public void add(@Valid AddModel add) throws ManagerException { | public void add(@Valid AddModel add) throws ManagerException { | ||||
add.valid(); | add.valid(); | ||||
ZfdAuditor zfdAuditor = new ZfdAuditor(); | ZfdAuditor zfdAuditor = new ZfdAuditor(); | ||||
User user =uRepo.findByNameId(add.getAddName()); | User user =uRepo.findByNameId(add.getAddName()); | ||||
if(zfdAuditorRepo.findAllByName(user.getName())==null){ | if(zfdAuditorRepo.findAllByName(user.getName())==null){ |
@Transactional | @Transactional | ||||
@Override | @Override | ||||
public void update(@Valid OrganizationPersonnel opm) { | public void update(@Valid OrganizationPersonnel opm) { | ||||
System.out.println(opm); | |||||
OrganizationPersonnel organizationPersonnel=opmRepo.findById(opm.getId()).get(); | OrganizationPersonnel organizationPersonnel=opmRepo.findById(opm.getId()).get(); | ||||
System.out.println(organizationPersonnel); | System.out.println(organizationPersonnel); | ||||
BeanTools.copyProperties(opm, organizationPersonnel, new String[] { "id", "insertTime"}); | BeanTools.copyProperties(opm, organizationPersonnel, new String[] { "id", "insertTime"}); |
package cn.com.yskj.zfdm.model.zfdAuditor; | |||||
import cn.com.taiji.common.model.BaseModel; | |||||
public class AuditorMobileAjaxResponse extends BaseModel { | |||||
private String mobile; | |||||
public String getMobile() { | |||||
return mobile; | |||||
} | |||||
public void setMobile(String mobile) { | |||||
this.mobile = mobile; | |||||
} | |||||
} |