122 lines
2.4 KiB
Java
122 lines
2.4 KiB
Java
package weaver.aiyh_pcn.async_organization.result;
|
||
|
||
/**
|
||
* @author EBU7-dev1-ayh
|
||
* @create 2021/7/23 0023 15:28
|
||
* api配置结果查询结果
|
||
*/
|
||
|
||
|
||
public class ApiAsyncConfigResult {
|
||
/**
|
||
* id
|
||
*/
|
||
private long id;
|
||
/**
|
||
* 同步类型,0表示部门信息,1表示人员信息,2表示职位信息
|
||
*/
|
||
private int asyncType;
|
||
/**
|
||
* 第三方api返回的数据对应字段
|
||
*/
|
||
private String apiField;
|
||
/**
|
||
* api对应字段的值需要插入到的OA系统的字段
|
||
*/
|
||
private String oAField;
|
||
/**
|
||
* OA字段类型,0表示系统自带的字段,1表示用户自定义的字段
|
||
*/
|
||
private int fieldType;
|
||
/**
|
||
* 同步数据时的转换规则,0表示不转换,1表示固定值,3表示自定义SQL转换
|
||
*/
|
||
private int changeRules;
|
||
/**
|
||
* 自定义的转换规则
|
||
*/
|
||
private String customRules;
|
||
|
||
public ApiAsyncConfigResult() {
|
||
}
|
||
|
||
public ApiAsyncConfigResult(long id, int asyncType, String apiField, String oAField, int fieldType, int changeRules, String customRules) {
|
||
this.id = id;
|
||
this.asyncType = asyncType;
|
||
this.apiField = apiField;
|
||
this.oAField = oAField;
|
||
this.fieldType = fieldType;
|
||
this.changeRules = changeRules;
|
||
this.customRules = customRules;
|
||
}
|
||
|
||
public long getId() {
|
||
return id;
|
||
}
|
||
|
||
public void setId(long id) {
|
||
this.id = id;
|
||
}
|
||
|
||
public int getAsyncType() {
|
||
return asyncType;
|
||
}
|
||
|
||
public void setAsyncType(int asyncType) {
|
||
this.asyncType = asyncType;
|
||
}
|
||
|
||
public String getApiField() {
|
||
return apiField;
|
||
}
|
||
|
||
public void setApiField(String apiField) {
|
||
this.apiField = apiField;
|
||
}
|
||
|
||
public String getoAField() {
|
||
return oAField;
|
||
}
|
||
|
||
public void setoAField(String oAField) {
|
||
this.oAField = oAField;
|
||
}
|
||
|
||
public int getFieldType() {
|
||
return fieldType;
|
||
}
|
||
|
||
public void setFieldType(int fieldType) {
|
||
this.fieldType = fieldType;
|
||
}
|
||
|
||
public int getChangeRules() {
|
||
return changeRules;
|
||
}
|
||
|
||
public void setChangeRules(int changeRules) {
|
||
this.changeRules = changeRules;
|
||
}
|
||
|
||
public String getCustomRules() {
|
||
return customRules;
|
||
}
|
||
|
||
public void setCustomRules(String customRules) {
|
||
this.customRules = customRules;
|
||
}
|
||
|
||
@Override
|
||
public String toString() {
|
||
return "ApiAsyncConfigResult{" +
|
||
"id=" + id +
|
||
", asyncType=" + asyncType +
|
||
", apiField='" + apiField + '\'' +
|
||
", oAField='" + oAField + '\'' +
|
||
", fieldType=" + fieldType +
|
||
", changeRules=" + changeRules +
|
||
", customRules='" + customRules + '\'' +
|
||
'}';
|
||
}
|
||
}
|