feat: 优化人员拉取和数据字典部分
This commit is contained in:
@@ -98,6 +98,7 @@ public class Sys_user extends BaseModel implements Serializable {
|
|||||||
@Column
|
@Column
|
||||||
@Comment("证件类型")
|
@Comment("证件类型")
|
||||||
@ColDefine(type = ColType.VARCHAR, width = 30)
|
@ColDefine(type = ColType.VARCHAR, width = 30)
|
||||||
|
@DataCenterColumn(name = "证件类型", key = "SFZJLXDM", dict = "USER_ID_CARD_TYPE")
|
||||||
private String idCardType;
|
private String idCardType;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@@ -133,8 +134,15 @@ public class Sys_user extends BaseModel implements Serializable {
|
|||||||
@Column
|
@Column
|
||||||
@Comment("岗位类别")
|
@Comment("岗位类别")
|
||||||
@ColDefine(type = ColType.VARCHAR, width = 50)
|
@ColDefine(type = ColType.VARCHAR, width = 50)
|
||||||
|
@DataCenterColumn(name = "聘岗类型", key = "ZYJSGWLBDMMC")
|
||||||
private String jobCategory;
|
private String jobCategory;
|
||||||
|
|
||||||
|
@Column
|
||||||
|
@Comment("聘岗类型代码")
|
||||||
|
@ColDefine(type = ColType.VARCHAR, width = 50)
|
||||||
|
@DataCenterColumn(name = "聘岗类型代码", key = "ZYJSGWLBDM")
|
||||||
|
private String jobCategoryCode;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@Comment("职称")
|
@Comment("职称")
|
||||||
@ColDefine(type = ColType.VARCHAR, width = 50)
|
@ColDefine(type = ColType.VARCHAR, width = 50)
|
||||||
@@ -222,11 +230,17 @@ public class Sys_user extends BaseModel implements Serializable {
|
|||||||
private Integer pendingConfirmStatus;
|
private Integer pendingConfirmStatus;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@Comment("编制类别码")
|
@Comment("编制类别")
|
||||||
@ColDefine(type = ColType.VARCHAR, width = 30)
|
@ColDefine(type = ColType.VARCHAR, width = 30)
|
||||||
@DataCenterColumn(name = "编制类别", key = "BZLBDMMC")
|
@DataCenterColumn(name = "编制类别", key = "BZLBDMMC")
|
||||||
private String preparedBy;
|
private String preparedBy;
|
||||||
|
|
||||||
|
@Column
|
||||||
|
@Comment("编制类别代码")
|
||||||
|
@ColDefine(type = ColType.VARCHAR, width = 30)
|
||||||
|
@DataCenterColumn(name = "编制类别代码", key = "BZLBDM")
|
||||||
|
private String preparedByCode;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@Comment("从教年月")
|
@Comment("从教年月")
|
||||||
@ColDefine(type = ColType.DATE)
|
@ColDefine(type = ColType.DATE)
|
||||||
@@ -295,6 +309,7 @@ public class Sys_user extends BaseModel implements Serializable {
|
|||||||
@Comment("是否双肩挑")
|
@Comment("是否双肩挑")
|
||||||
@ColDefine(type = ColType.BOOLEAN)
|
@ColDefine(type = ColType.BOOLEAN)
|
||||||
@Default(value = "0")
|
@Default(value = "0")
|
||||||
|
@DataCenterColumn(name = "是否双肩挑", key = "SFSJT")
|
||||||
private Boolean manyUnit;
|
private Boolean manyUnit;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.budwk.app.sys.models;
|
package com.budwk.app.sys.models;
|
||||||
|
|
||||||
|
import com.budwk.app.sys.annotation.DataCenterColumn;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
@@ -31,6 +32,18 @@ public class Sys_user_source extends Sys_user {
|
|||||||
@ColDefine(type = ColType.VARCHAR, width = 255)
|
@ColDefine(type = ColType.VARCHAR, width = 255)
|
||||||
private String unitName;
|
private String unitName;
|
||||||
|
|
||||||
|
@Column
|
||||||
|
@Comment("最高学历名称")
|
||||||
|
@ColDefine(type = ColType.VARCHAR, width = 100)
|
||||||
|
@DataCenterColumn(name = "最高学历名称", key = "ZGXLMC")
|
||||||
|
private String educationDesc;
|
||||||
|
|
||||||
|
@Column
|
||||||
|
@Comment("最高学位名称")
|
||||||
|
@ColDefine(type = ColType.VARCHAR, width = 100)
|
||||||
|
@DataCenterColumn(name = "最高学位名称", key = "ZGXWMC")
|
||||||
|
private String academicDegreeDesc;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@Comment("拉取时间")
|
@Comment("拉取时间")
|
||||||
@ColDefine(type = ColType.DATETIME)
|
@ColDefine(type = ColType.DATETIME)
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ public class SysDataUserPullServiceImpl extends BaseServiceImpl<Sys_user_source>
|
|||||||
synchronized (SysDataUserPullServiceImpl.class) {
|
synchronized (SysDataUserPullServiceImpl.class) {
|
||||||
if (fieldMappings == null) {
|
if (fieldMappings == null) {
|
||||||
List<FieldMapping> mappings = new ArrayList<>();
|
List<FieldMapping> mappings = new ArrayList<>();
|
||||||
Field[] fields = Sys_user.class.getDeclaredFields();
|
Field[] fields = cn.hutool.core.util.ReflectUtil.getFields(Sys_user_source.class);
|
||||||
for (Field field : fields) {
|
for (Field field : fields) {
|
||||||
DataCenterColumn annotation = field.getAnnotation(DataCenterColumn.class);
|
DataCenterColumn annotation = field.getAnnotation(DataCenterColumn.class);
|
||||||
if (annotation != null) {
|
if (annotation != null) {
|
||||||
@@ -200,6 +200,8 @@ public class SysDataUserPullServiceImpl extends BaseServiceImpl<Sys_user_source>
|
|||||||
mapping.field.set(sysUser, raw.getStr(mapping.key));
|
mapping.field.set(sysUser, raw.getStr(mapping.key));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if (mapping.field.getType() == Boolean.class) {
|
||||||
|
mapping.field.set(sysUser, raw.getBool(mapping.key));
|
||||||
} else if (mapping.field.getType() == Date.class) {
|
} else if (mapping.field.getType() == Date.class) {
|
||||||
String dateText = StrUtil.trim(raw.getStr(mapping.key));
|
String dateText = StrUtil.trim(raw.getStr(mapping.key));
|
||||||
if (StrUtil.isNotBlank(dateText)) {
|
if (StrUtil.isNotBlank(dateText)) {
|
||||||
|
|||||||
@@ -25,6 +25,26 @@ public class MemberHistory extends Sys_user {
|
|||||||
@ColDefine(type = ColType.VARCHAR, width = 32)
|
@ColDefine(type = ColType.VARCHAR, width = 32)
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
|
@Column
|
||||||
|
@Comment("编制类别")
|
||||||
|
@ColDefine(type = ColType.TEXT)
|
||||||
|
private String preparedBy;
|
||||||
|
|
||||||
|
@Column
|
||||||
|
@Comment("编制类别代码")
|
||||||
|
@ColDefine(type = ColType.TEXT)
|
||||||
|
private String preparedByCode;
|
||||||
|
|
||||||
|
@Column
|
||||||
|
@Comment("岗位类别")
|
||||||
|
@ColDefine(type = ColType.TEXT)
|
||||||
|
private String jobCategory;
|
||||||
|
|
||||||
|
@Column
|
||||||
|
@Comment("聘岗类型代码")
|
||||||
|
@ColDefine(type = ColType.TEXT)
|
||||||
|
private String jobCategoryCode;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@Comment("年度")
|
@Comment("年度")
|
||||||
@ColDefine(type = ColType.INT, width = 4)
|
@ColDefine(type = ColType.INT, width = 4)
|
||||||
|
|||||||
+4
-1
@@ -851,7 +851,10 @@ layout("/platform/zhgh/staffbenefit/therapyRecuperation/layouts/platform.html"){
|
|||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(async () => {
|
}).then(async () => {
|
||||||
window.top.location.href = '/platform/inclusiveTherapyV3/lineXghSelect?mode=2'
|
const targetMenu = window.parent.document.querySelector('#sidebar-menu a[data-pjax][href="/platform/inclusiveTherapyV3/lineXghSelect?mode=2"]')
|
||||||
|
if (targetMenu) {
|
||||||
|
targetMenu.click()
|
||||||
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$refs.guava.index()
|
this.$refs.guava.index()
|
||||||
this.pageData()
|
this.pageData()
|
||||||
|
|||||||
+5
@@ -32,6 +32,11 @@ ELEMENT.Table.props.border.default = true;
|
|||||||
ELEMENT.TableColumn.props.headerAlign.default = 'center';
|
ELEMENT.TableColumn.props.headerAlign.default = 'center';
|
||||||
ELEMENT.TableColumn.props.align.default = 'center';
|
ELEMENT.TableColumn.props.align.default = 'center';
|
||||||
Vue.use(ELEMENT, {zIndex: 20000});
|
Vue.use(ELEMENT, {zIndex: 20000});
|
||||||
|
if (window.parent !== window) {
|
||||||
|
Vue.prototype.$confirm = function(...args) {
|
||||||
|
return window.parent.ELEMENT.MessageBox.confirm(...args);
|
||||||
|
};
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<script src="${base!}/assets/platform/plugins/wangEditor4/wangEditor.js"></script>
|
<script src="${base!}/assets/platform/plugins/wangEditor4/wangEditor.js"></script>
|
||||||
<script src="${base!}/assets/platform/plugins/sortablejs/sortable.min.js"></script>
|
<script src="${base!}/assets/platform/plugins/sortablejs/sortable.min.js"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user