员工用户对象忽略refObj的json数据返回,因为与employee重复。
This commit is contained in:
@@ -5,6 +5,7 @@ package com.jeesite.modules.sys.entity;
|
|||||||
|
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
import com.jeesite.common.entity.BaseEntity;
|
import com.jeesite.common.entity.BaseEntity;
|
||||||
import com.jeesite.common.entity.DataEntity;
|
import com.jeesite.common.entity.DataEntity;
|
||||||
import com.jeesite.common.entity.TreeEntity;
|
import com.jeesite.common.entity.TreeEntity;
|
||||||
@@ -122,6 +123,12 @@ public class EmpUser extends User {
|
|||||||
public void setEmployee(Employee employee){
|
public void setEmployee(Employee employee){
|
||||||
super.setRefObj(employee);
|
super.setRefObj(employee);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@JsonIgnore
|
||||||
|
public <E> E getRefObj() {
|
||||||
|
return super.getRefObj();
|
||||||
|
}
|
||||||
|
|
||||||
public String[] getCodes() {
|
public String[] getCodes() {
|
||||||
return codes;
|
return codes;
|
||||||
|
|||||||
Reference in New Issue
Block a user