| | |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | @ConfigurationProperties(prefix="code.applypersonanddept") |
| | | @ConfigurationProperties(prefix="org.applypersonanddept") |
| | | @Component |
| | | public class PersonAndDeptConfig { |
| | | /*** |
| | |
| | | * 部门分类编码 |
| | | */ |
| | | private String deptClassCode; |
| | | |
| | | /** |
| | | * 人员是否申请集团码 |
| | | */ |
| | | private boolean personApplyGroupCode; |
| | | /** |
| | | * 组织机构是否申请集团码 |
| | | */ |
| | | private boolean deptApplyGroupCode; |
| | | /*** |
| | | * 是否开启 |
| | | */ |
| | |
| | | isUsedFlag = usedFlag; |
| | | } |
| | | |
| | | public boolean isPersonApplyGroupCode() { |
| | | return personApplyGroupCode; |
| | | } |
| | | |
| | | public void setPersonApplyGroupCode(boolean personApplyGroupCode) { |
| | | this.personApplyGroupCode = personApplyGroupCode; |
| | | } |
| | | |
| | | public boolean isDeptApplyGroupCode() { |
| | | return deptApplyGroupCode; |
| | | } |
| | | |
| | | public void setDeptApplyGroupCode(boolean deptApplyGroupCode) { |
| | | this.deptApplyGroupCode = deptApplyGroupCode; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "PersonAndDeptConfig{" + |
| | |
| | | ", personClassCode='" + personClassCode + '\'' + |
| | | ", deptLibrary='" + deptLibrary + '\'' + |
| | | ", deptClassCode='" + deptClassCode + '\'' + |
| | | ", personApplyGroupCode=" + personApplyGroupCode + |
| | | ", deptApplyGroupCode=" + deptApplyGroupCode + |
| | | ", isUsedFlag=" + isUsedFlag + |
| | | '}'; |
| | | } |