Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz人力资源
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz人力资源
提交
ab819677
提交
ab819677
编写于
8月 12, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Miracle 部署微服务应用
上级
2f5e93c0
变更
22
隐藏空白字符变更
内嵌
并排
正在显示
22 个修改的文件
包含
260 行增加
和
187 行删除
+260
-187
hrarchives.ts
app_PIM/src/interface/entity/hrarchives.ts
+24
-0
hrarchives_en_US.ts
...src/locale/lanres/entities/hrarchives/hrarchives_en_US.ts
+4
-3
hrarchives_zh_CN.ts
...src/locale/lanres/entities/hrarchives/hrarchives_zh_CN.ts
+4
-3
hrtransfer-apply_en_US.ts
...anres/entities/hrtransfer-apply/hrtransfer-apply_en_US.ts
+4
-0
hrtransfer-apply_zh_CN.ts
...anres/entities/hrtransfer-apply/hrtransfer-apply_zh_CN.ts
+4
-0
hrtechnical-title-tab-exp-view.html
...al-title-tab-exp-view/hrtechnical-title-tab-exp-view.html
+0
-3
hrtransfer-apply-grid-view.html
...rtransfer-apply-grid-view/hrtransfer-apply-grid-view.html
+0
-3
hrtransfer-apply-v-005-base.tsx
...cm/hrtransfer-apply-v-005/hrtransfer-apply-v-005-base.tsx
+2
-0
main-grid-base.tsx
app_PIM/src/widgets/hrarchives/main-grid/main-grid-base.tsx
+4
-30
main-grid-model.ts
app_PIM/src/widgets/hrarchives/main-grid/main-grid-model.ts
+6
-11
main-grid.html
app_PIM/src/widgets/hrarchives/main-grid/main-grid.html
+4
-30
ef-001-form.html
...src/widgets/hrtransfer-apply/ef-001-form/ef-001-form.html
+0
-50
if-001-form.html
...src/widgets/hrtransfer-apply/if-001-form/if-001-form.html
+0
-10
HROrganizationServiceImpl.java
...rce/core/base/service/impl/HROrganizationServiceImpl.java
+3
-0
HRArchives.java
...b/humanresource/core/humanresource/domain/HRArchives.java
+45
-0
HRArchivesSearchContext.java
...ce/core/humanresource/filter/HRArchivesSearchContext.java
+28
-0
HRArchivesMapper.java
...nresource/core/humanresource/mapper/HRArchivesMapper.java
+2
-0
IHRArchivesService.java
...source/core/humanresource/service/IHRArchivesService.java
+2
-0
HRArchivesServiceImpl.java
...ore/humanresource/service/impl/HRArchivesServiceImpl.java
+23
-0
h2_table.xml
humanresource-core/src/main/resources/liquibase/h2_table.xml
+48
-41
HRArchivesMapper.xml
...rces/mapper/humanresource/hrarchives/HRArchivesMapper.xml
+13
-3
HRArchivesDTO.java
...ava/cn/ibizlab/humanresource/hrapi/dto/HRArchivesDTO.java
+40
-0
未找到文件。
app_PIM/src/interface/entity/hrarchives.ts
浏览文件 @
ab819677
...
...
@@ -189,4 +189,28 @@ export interface HRArchives {
* @memberof HRArchives
*/
memo
?:
any
;
/**
* 档案借阅状态
*
* @returns {*}
* @memberof HRArchives
*/
borrowstate
?:
any
;
/**
* 档案管理单位ID
*
* @returns {*}
* @memberof HRArchives
*/
hrorganizationid
?:
any
;
/**
* 档案管理单位
*
* @returns {*}
* @memberof HRArchives
*/
hrorganizationname
?:
any
;
}
\ No newline at end of file
app_PIM/src/locale/lanres/entities/hrarchives/hrarchives_en_US.ts
浏览文件 @
ab819677
...
...
@@ -24,6 +24,9 @@ export default {
activeflag
:
"是否有效"
,
attachment
:
"人事档案目录"
,
memo
:
"备注"
,
borrowstate
:
"档案借阅状态"
,
hrorganizationid
:
"档案管理单位ID"
,
hrorganizationname
:
"档案管理单位"
,
},
views
:
{
editview
:
{
...
...
@@ -61,9 +64,7 @@ export default {
},
main_grid
:
{
columns
:
{
hrarchivesname
:
"档案信息名称"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
archivescode
:
"档案编号"
,
},
uiactions
:
{
},
...
...
app_PIM/src/locale/lanres/entities/hrarchives/hrarchives_zh_CN.ts
浏览文件 @
ab819677
...
...
@@ -23,6 +23,9 @@ export default {
activeflag
:
"是否有效"
,
attachment
:
"人事档案目录"
,
memo
:
"备注"
,
borrowstate
:
"档案借阅状态"
,
hrorganizationid
:
"档案管理单位ID"
,
hrorganizationname
:
"档案管理单位"
,
},
views
:
{
editview
:
{
...
...
@@ -60,9 +63,7 @@ export default {
},
main_grid
:
{
columns
:
{
hrarchivesname
:
"档案信息名称"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
archivescode
:
"档案编号"
,
},
uiactions
:
{
},
...
...
app_PIM/src/locale/lanres/entities/hrtransfer-apply/hrtransfer-apply_en_US.ts
浏览文件 @
ab819677
...
...
@@ -465,6 +465,10 @@ export default {
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
tbitem1_saveandstart
:
{
caption
:
"Start workflow"
,
tip
:
"Start workflow"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
...
...
app_PIM/src/locale/lanres/entities/hrtransfer-apply/hrtransfer-apply_zh_CN.ts
浏览文件 @
ab819677
...
...
@@ -464,6 +464,10 @@ export default {
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
tbitem1_saveandstart
:
{
caption
:
"开始流程"
,
tip
:
"开始流程"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
...
...
app_PIM/src/pages/human-resource/hrtechnical-title-tab-exp-view/hrtechnical-title-tab-exp-view.html
浏览文件 @
ab819677
<studio-view-style2
viewName=
"hrtechnicaltitletabexpview"
viewTitle=
"职称"
class=
'detabexpview hrtechnical-title-tab-exp-view'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{viewCaption}}
</span>
</template>
<view
_tabexppanel
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
app_PIM/src/pages/pcm/hrtransfer-apply-grid-view/hrtransfer-apply-grid-view.html
浏览文件 @
ab819677
<studio-view-style2
viewName=
"hrtransferapplygridview"
viewTitle=
"调动申请表格视图"
class=
'degridview hrtransfer-apply-grid-view'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{viewCaption}}
</span>
</template>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
placeholder=
"调动申请名称"
search
@
on-search=
"onSearch($event)"
/>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click.apply(_self, arguments)"
/>
</template>
...
...
app_PIM/src/pages/pcm/hrtransfer-apply-v-005/hrtransfer-apply-v-005-base.tsx
浏览文件 @
ab819677
...
...
@@ -104,6 +104,8 @@ export class HRTransferApplyV_005Base extends TabExpViewBase {
tbitem1_remove
:
{
name
:
'tbitem1_remove'
,
caption
:
'删除并关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'删除并关闭'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Remove'
,
target
:
'SINGLEKEY'
,
class
:
''
}
},
tbitem1_saveandstart
:
{
name
:
'tbitem1_saveandstart'
,
caption
:
'开始流程'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'开始流程'
,
iconcls
:
'fa fa-play'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'SaveAndStart'
,
target
:
''
,
class
:
''
}
},
tbitem2
:
{
name
:
'tbitem2'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem22
:
{
name
:
'tbitem22'
,
caption
:
'关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'关闭'
,
iconcls
:
'fa fa-sign-out'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Exit'
,
target
:
''
,
class
:
''
}
},
...
...
app_PIM/src/widgets/hrarchives/main-grid/main-grid-base.tsx
浏览文件 @
ab819677
...
...
@@ -93,25 +93,9 @@ export class MainGridBase extends GridControlBase {
*/
public
allColumns
:
any
[]
=
[
{
name
:
'hrarchivesname'
,
label
:
'档案信息名称'
,
langtag
:
'entities.hrarchives.main_grid.columns.hrarchivesname'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'updateman'
,
label
:
'更新人'
,
langtag
:
'entities.hrarchives.main_grid.columns.updateman'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'updatedate'
,
label
:
'更新时间'
,
langtag
:
'entities.hrarchives.main_grid.columns.updatedate'
,
name
:
'archivescode'
,
label
:
'档案编号'
,
langtag
:
'entities.hrarchives.main_grid.columns.archivescode'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
...
...
@@ -150,9 +134,7 @@ export class MainGridBase extends GridControlBase {
* @memberof MainBase
*/
public
hasRowEdit
:
any
=
{
'hrarchivesname'
:
false
,
'updateman'
:
false
,
'updatedate'
:
false
,
'archivescode'
:
false
,
};
/**
...
...
@@ -178,14 +160,6 @@ export class MainGridBase extends GridControlBase {
*/
public
async
formatExcelData
(
filterVal
:
any
,
jsonData
:
any
,
codelistColumns
?:
any
[]):
Promise
<
any
>
{
return
super
.
formatExcelData
(
filterVal
,
jsonData
,
[
{
name
:
'updateman'
,
srfkey
:
'SysOperator'
,
codelistType
:
'DYNAMIC'
,
renderMode
:
'other'
,
textSeparator
:
'、'
,
valueSeparator
:
','
,
},
]);
}
...
...
app_PIM/src/widgets/hrarchives/main-grid/main-grid-model.ts
浏览文件 @
ab819677
...
...
@@ -32,14 +32,14 @@ export default class MainModel {
dataType
:
'PICKUP'
,
},
{
name
:
'
updateman
'
,
prop
:
'
updateman
'
,
dataType
:
'
TEXT
'
,
name
:
'
hrorganizationid
'
,
prop
:
'
hrorganizationid
'
,
dataType
:
'
PICKUP
'
,
},
{
name
:
'
updatedat
e'
,
prop
:
'
updatedat
e'
,
dataType
:
'
DATETIME
'
,
name
:
'
archivescod
e'
,
prop
:
'
archivescod
e'
,
dataType
:
'
TEXT
'
,
},
{
name
:
'srfmajortext'
,
...
...
@@ -57,11 +57,6 @@ export default class MainModel {
dataType
:
'GUID'
,
isEditable
:
true
},
{
name
:
'hrarchivesname'
,
prop
:
'hrarchivesname'
,
dataType
:
'TEXT'
,
},
{
name
:
'hrarchives'
,
prop
:
'hrarchivesid'
,
...
...
app_PIM/src/widgets/hrarchives/main-grid/main-grid.html
浏览文件 @
ab819677
...
...
@@ -23,41 +23,15 @@
<template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
</template>
<template
v-if=
"getColumnState('
hrarchivesnam
e')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'
hrarchivesname'"
:label=
"$t('entities.hrarchives.main_grid.columns.hrarchivesname')"
:width=
"15
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-if=
"getColumnState('
archivescod
e')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'
archivescode'"
:label=
"$t('entities.hrarchives.main_grid.columns.archivescode')"
:width=
"10
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrarchives.main_grid.columns.
hrarchivesnam
e')}}
{{$t('entities.hrarchives.main_grid.columns.
archivescod
e')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.hrarchivesname}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('updateman')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'updateman'"
:label=
"$t('entities.hrarchives.main_grid.columns.updateman')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrarchives.main_grid.columns.updateman')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<template
>
<codelist
:value=
"row.updateman"
tag=
'SysOperator'
codelistType=
'DYNAMIC'
></codelist>
</template>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('updatedate')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'updatedate'"
:label=
"$t('entities.hrarchives.main_grid.columns.updatedate')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrarchives.main_grid.columns.updatedate')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<app-format-data
format=
"YYYY-MM-DD HH:mm:ss"
:data=
"row.updatedate"
></app-format-data>
<span>
{{row.archivescode}}
</span>
</template>
</el-table-column>
</template>
...
...
app_PIM/src/widgets/hrtransfer-apply/ef-001-form/ef-001-form.html
浏览文件 @
ab819677
...
...
@@ -96,56 +96,6 @@
<app-file-upload
:formState=
"formState"
:ignorefieldvaluechange=
"ignorefieldvaluechange"
@
formitemvaluechange=
"onFormItemValueChange($event)"
:data=
"JSON.stringify(this.data)"
name=
'attachment'
:value=
"data.attachment"
:disabled=
"detailsModel.attachment.disabled"
:uploadparams=
'{}'
:exportparams=
'{}'
style=
"overflow: auto;"
></app-file-upload>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.organizationname.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'organizationname'
:itemRules=
"this.rules.organizationname"
class=
''
:caption=
"$t('entities.hrtransferapply.ef_001_form.details.organizationname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.organizationname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'organizationname'
:value=
"data.organizationname"
dataType=
"PICKUPDATA"
:precision=
"0"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
>
</app-span>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.hrpostname.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'hrpostname'
:itemRules=
"this.rules.hrpostname"
class=
''
:caption=
"$t('entities.hrtransferapply.ef_001_form.details.hrpostname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.hrpostname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'hrpostname'
:value=
"data.hrpostname"
dataType=
"PICKUPDATA"
:precision=
"0"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
>
</app-span>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.hrdutyname.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'hrdutyname'
:itemRules=
"this.rules.hrdutyname"
class=
''
:caption=
"$t('entities.hrtransferapply.ef_001_form.details.hrdutyname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.hrdutyname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'hrdutyname'
:value=
"data.hrdutyname"
dataType=
"PICKUPDATA"
:precision=
"0"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
>
</app-span>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.hrdutyname2.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'hrdutyname2'
:itemRules=
"this.rules.hrdutyname2"
class=
''
:caption=
"$t('entities.hrtransferapply.ef_001_form.details.hrdutyname2')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.hrdutyname2.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'hrdutyname2'
:value=
"data.hrdutyname2"
dataType=
"PICKUPDATA"
:precision=
"0"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
>
</app-span>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.organizationid.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'organizationid'
:itemRules=
"this.rules.organizationid"
class=
''
:caption=
"$t('entities.hrtransferapply.ef_001_form.details.organizationid')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.organizationid.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'organizationid'
:value=
"data.organizationid"
dataType=
"PICKUPDATA"
:precision=
"0"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
>
</app-span>
</app-form-item>
</i-col>
</row>
...
...
app_PIM/src/widgets/hrtransfer-apply/if-001-form/if-001-form.html
浏览文件 @
ab819677
...
...
@@ -91,16 +91,6 @@
<app-file-upload
:formState=
"formState"
:ignorefieldvaluechange=
"ignorefieldvaluechange"
@
formitemvaluechange=
"onFormItemValueChange($event)"
:data=
"JSON.stringify(this.data)"
name=
'attachment'
:value=
"data.attachment"
:disabled=
"detailsModel.attachment.disabled"
:uploadparams=
'{}'
:exportparams=
'{}'
style=
"overflow: auto;"
></app-file-upload>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.organizationid.visible"
:style=
"{}"
:sm=
"{ span: 24, offset: 0 }"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 6, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'organizationid'
:itemRules=
"this.rules.organizationid"
class=
''
:caption=
"$t('entities.hrtransferapply.if_001_form.details.organizationid')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.organizationid.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'organizationid'
:value=
"data.organizationid"
dataType=
"PICKUPDATA"
:precision=
"0"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
>
</app-span>
</app-form-item>
</i-col>
</row>
...
...
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/base/service/impl/HROrganizationServiceImpl.java
浏览文件 @
ab819677
...
...
@@ -50,6 +50,9 @@ public class HROrganizationServiceImpl extends ServiceImpl<HROrganizationMapper,
protected
cn
.
ibizlab
.
humanresource
.
core
.
humanresource
.
service
.
IHREmployeeService
hremployeeService
;
@Autowired
@Lazy
protected
cn
.
ibizlab
.
humanresource
.
core
.
humanresource
.
service
.
IHRArchivesService
hrarchivesService
;
@Autowired
@Lazy
protected
cn
.
ibizlab
.
humanresource
.
core
.
humanresource
.
service
.
IHRCertificateService
hrcertificateService
;
@Autowired
@Lazy
...
...
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/humanresource/domain/HRArchives.java
浏览文件 @
ab819677
...
...
@@ -211,6 +211,27 @@ public class HRArchives extends EntityMP implements Serializable {
@JSONField
(
name
=
"memo"
)
@JsonProperty
(
"memo"
)
private
String
memo
;
/**
* 档案借阅状态
*/
@TableField
(
value
=
"borrowstate"
)
@JSONField
(
name
=
"borrowstate"
)
@JsonProperty
(
"borrowstate"
)
private
String
borrowstate
;
/**
* 档案管理单位ID
*/
@TableField
(
value
=
"hrorganizationid"
)
@JSONField
(
name
=
"hrorganizationid"
)
@JsonProperty
(
"hrorganizationid"
)
private
String
hrorganizationid
;
/**
* 档案管理单位
*/
@TableField
(
exist
=
false
)
@JSONField
(
name
=
"hrorganizationname"
)
@JsonProperty
(
"hrorganizationname"
)
private
String
hrorganizationname
;
/**
* 员工
...
...
@@ -220,6 +241,14 @@ public class HRArchives extends EntityMP implements Serializable {
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
humanresource
.
core
.
humanresource
.
domain
.
HREmployee
hremployee
;
/**
* 档案管理单位
*/
@JsonIgnore
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
humanresource
.
core
.
base
.
domain
.
HROrganization
hrorganization
;
/**
...
...
@@ -356,6 +385,22 @@ public class HRArchives extends EntityMP implements Serializable {
this
.
modify
(
"memo"
,
memo
);
}
/**
* 设置 [档案借阅状态]
*/
public
void
setBorrowstate
(
String
borrowstate
){
this
.
borrowstate
=
borrowstate
;
this
.
modify
(
"borrowstate"
,
borrowstate
);
}
/**
* 设置 [档案管理单位ID]
*/
public
void
setHrorganizationid
(
String
hrorganizationid
){
this
.
hrorganizationid
=
hrorganizationid
;
this
.
modify
(
"hrorganizationid"
,
hrorganizationid
);
}
}
...
...
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/humanresource/filter/HRArchivesSearchContext.java
浏览文件 @
ab819677
...
...
@@ -69,6 +69,34 @@ public class HRArchivesSearchContext extends QueryWrapperContext<HRArchives> {
this
.
getSearchCond
().
eq
(
"degree"
,
n_degree_eq
);
}
}
private
String
n_borrowstate_eq
;
//[档案借阅状态]
public
void
setN_borrowstate_eq
(
String
n_borrowstate_eq
)
{
this
.
n_borrowstate_eq
=
n_borrowstate_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_borrowstate_eq
)){
this
.
getSearchCond
().
eq
(
"borrowstate"
,
n_borrowstate_eq
);
}
}
private
String
n_hrorganizationid_eq
;
//[档案管理单位ID]
public
void
setN_hrorganizationid_eq
(
String
n_hrorganizationid_eq
)
{
this
.
n_hrorganizationid_eq
=
n_hrorganizationid_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_hrorganizationid_eq
)){
this
.
getSearchCond
().
eq
(
"hrorganizationid"
,
n_hrorganizationid_eq
);
}
}
private
String
n_hrorganizationname_eq
;
//[档案管理单位]
public
void
setN_hrorganizationname_eq
(
String
n_hrorganizationname_eq
)
{
this
.
n_hrorganizationname_eq
=
n_hrorganizationname_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_hrorganizationname_eq
)){
this
.
getSearchCond
().
eq
(
"hrorganizationname"
,
n_hrorganizationname_eq
);
}
}
private
String
n_hrorganizationname_like
;
//[档案管理单位]
public
void
setN_hrorganizationname_like
(
String
n_hrorganizationname_like
)
{
this
.
n_hrorganizationname_like
=
n_hrorganizationname_like
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_hrorganizationname_like
)){
this
.
getSearchCond
().
like
(
"hrorganizationname"
,
n_hrorganizationname_like
);
}
}
/**
* 启用快速搜索
...
...
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/humanresource/mapper/HRArchivesMapper.java
浏览文件 @
ab819677
...
...
@@ -64,4 +64,6 @@ public interface HRArchivesMapper extends BaseMapper<HRArchives>{
List
<
HRArchives
>
selectByHremployeeid
(
@Param
(
"employeeid"
)
Serializable
employeeid
)
;
List
<
HRArchives
>
selectByHrorganizationid
(
@Param
(
"organizationid"
)
Serializable
organizationid
)
;
}
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/humanresource/service/IHRArchivesService.java
浏览文件 @
ab819677
...
...
@@ -39,6 +39,8 @@ public interface IHRArchivesService extends IService<HRArchives>{
Page
<
HRArchives
>
searchDefault
(
HRArchivesSearchContext
context
)
;
List
<
HRArchives
>
selectByHremployeeid
(
String
employeeid
)
;
void
removeByHremployeeid
(
String
employeeid
)
;
List
<
HRArchives
>
selectByHrorganizationid
(
String
organizationid
)
;
void
removeByHrorganizationid
(
String
organizationid
)
;
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
...
...
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/humanresource/service/impl/HRArchivesServiceImpl.java
浏览文件 @
ab819677
...
...
@@ -48,6 +48,9 @@ public class HRArchivesServiceImpl extends ServiceImpl<HRArchivesMapper, HRArchi
@Autowired
@Lazy
protected
cn
.
ibizlab
.
humanresource
.
core
.
humanresource
.
service
.
IHREmployeeService
hremployeeService
;
@Autowired
@Lazy
protected
cn
.
ibizlab
.
humanresource
.
core
.
base
.
service
.
IHROrganizationService
hrorganizationService
;
protected
int
batchSize
=
500
;
...
...
@@ -160,6 +163,16 @@ public class HRArchivesServiceImpl extends ServiceImpl<HRArchivesMapper, HRArchi
this
.
remove
(
new
QueryWrapper
<
HRArchives
>().
eq
(
"hremployeeid"
,
employeeid
));
}
@Override
public
List
<
HRArchives
>
selectByHrorganizationid
(
String
organizationid
)
{
return
baseMapper
.
selectByHrorganizationid
(
organizationid
);
}
@Override
public
void
removeByHrorganizationid
(
String
organizationid
)
{
this
.
remove
(
new
QueryWrapper
<
HRArchives
>().
eq
(
"hrorganizationid"
,
organizationid
));
}
/**
* 查询集合 DEFAULT
...
...
@@ -191,6 +204,16 @@ public class HRArchivesServiceImpl extends ServiceImpl<HRArchivesMapper, HRArchi
et
.
setOrganizationid
(
hremployee
.
getOrganizationid
());
et
.
setEmpstate
(
hremployee
.
getEmpstate
());
}
//实体关系[DER1N_HRARCHIVES_HRORGANIZATION_HRORGANIZATIONID_6BD9DC]
if
(!
ObjectUtils
.
isEmpty
(
et
.
getHrorganizationid
())){
cn
.
ibizlab
.
humanresource
.
core
.
base
.
domain
.
HROrganization
hrorganization
=
et
.
getHrorganization
();
if
(
ObjectUtils
.
isEmpty
(
hrorganization
)){
cn
.
ibizlab
.
humanresource
.
core
.
base
.
domain
.
HROrganization
majorEntity
=
hrorganizationService
.
get
(
et
.
getHrorganizationid
());
et
.
setHrorganization
(
majorEntity
);
hrorganization
=
majorEntity
;
}
et
.
setHrorganizationname
(
hrorganization
.
getOrganizationname
());
}
}
...
...
humanresource-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
ab819677
...
...
@@ -4,7 +4,7 @@
<!--输出实体[HRARCHIVES]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrarchives-
25
-1"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrarchives-
31
-1"
>
<createTable
tableName=
"T_HRARCHIVES"
>
<column
name=
"HRARCHIVESID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_HRARCHIVES_HRARCHIVESID"
/>
...
...
@@ -43,6 +43,10 @@
</column>
<column
name=
"MEMO"
remarks=
""
type=
"VARCHAR(2000)"
>
</column>
<column
name=
"BORROWSTATE"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
<column
name=
"HRORGANIZATIONID"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
</createTable>
</changeSet>
...
...
@@ -68,7 +72,7 @@
<!--输出实体[HRCERTIFICATE]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrcertificate-9
2
-3"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrcertificate-9
3
-3"
>
<createTable
tableName=
"T_HRCERTIFICATE"
>
<column
name=
"HRCERTIFICATEID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_HRCERTIFICATE_HRCERTIFICATE"
/>
...
...
@@ -738,7 +742,7 @@
<!--输出实体[HRORGANIZATION]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrorganization-3
6
-24"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrorganization-3
7
-24"
>
<createTable
tableName=
"ORGANIZATION"
>
<column
name=
"UPDATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
...
...
@@ -960,7 +964,7 @@
<!--输出实体[HRTECHNICALTITLE]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrtechnicaltitle-8
6
-31"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrtechnicaltitle-8
8
-31"
>
<createTable
tableName=
"T_HRTECHNICALTITLE"
>
<column
name=
"HRTECHNICALTITLEID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_HRTECHNICALTITLE_HRTECHNICA"
/>
...
...
@@ -1022,7 +1026,7 @@
<!--输出实体[HRTRANSFERAPPLY]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrtransferapply-1
65
-33"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrtransferapply-1
84
-33"
>
<createTable
tableName=
"T_HRTRANSFERAPPLY"
>
<column
name=
"HRTRANSFERAPPLYID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_HRTRANSFERAPPLY_HRTRANSFERA"
/>
...
...
@@ -1103,145 +1107,148 @@
</changeSet>
<!--输出实体[HRARCHIVES]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrarchives-
25
-35"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrarchives-
31
-35"
>
<addForeignKeyConstraint
baseColumnNames=
"HREMPLOYEEID"
baseTableName=
"T_HRARCHIVES"
constraintName=
"DER1N_HRARCHIVES_HREMPLOYEE_HR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EMPLOYEEID"
referencedTableName=
"EMPLOYEE"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrarchives-31-36"
>
<addForeignKeyConstraint
baseColumnNames=
"HRORGANIZATIONID"
baseTableName=
"T_HRARCHIVES"
constraintName=
"DER1N_HRARCHIVES_HRORGANIZATIO"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGANIZATIONID"
referencedTableName=
"ORGANIZATION"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRATTENDANCE]外键关系 -->
<!--输出实体[HRCERTIFICATE]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrcertificate-9
2-36
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrcertificate-9
3-37
"
>
<addForeignKeyConstraint
baseColumnNames=
"HREMPLOYEEID"
baseTableName=
"T_HRCERTIFICATE"
constraintName=
"DER1N_HRCERTIFICATE_HREMPLOYEE"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EMPLOYEEID"
referencedTableName=
"EMPLOYEE"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrcertificate-9
2-37
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrcertificate-9
3-38
"
>
<addForeignKeyConstraint
baseColumnNames=
"REGISTERORGANIZATIONID"
baseTableName=
"T_HRCERTIFICATE"
constraintName=
"DER1N_HRCERTIFICATE_HRORGANIZA"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGANIZATIONID"
referencedTableName=
"ORGANIZATION"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRCONTRACT]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrcontract-137-3
8
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrcontract-137-3
9
"
>
<addForeignKeyConstraint
baseColumnNames=
"HREMPLOYEEID"
baseTableName=
"T_HRCONTRACT"
constraintName=
"DER1N_HRCONTRACT_HREMPLOYEE_HR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EMPLOYEEID"
referencedTableName=
"EMPLOYEE"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrcontract-137-
39
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrcontract-137-
40
"
>
<addForeignKeyConstraint
baseColumnNames=
"MGRORGANIZATIONID"
baseTableName=
"T_HRCONTRACT"
constraintName=
"DER1N_HRCONTRACT_HRORGANIZATIO"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGANIZATIONID"
referencedTableName=
"ORGANIZATION"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRDISTRIBUTION]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrdistribution-39-4
1
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrdistribution-39-4
2
"
>
<addForeignKeyConstraint
baseColumnNames=
"HREMPLOYEEID"
baseTableName=
"T_HRDISTRIBUTION"
constraintName=
"DER1N_HRDISTRIBUTION_HREMPLOYE"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EMPLOYEEID"
referencedTableName=
"EMPLOYEE"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrdistribution-39-4
2
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrdistribution-39-4
3
"
>
<addForeignKeyConstraint
baseColumnNames=
"HRPOSTID"
baseTableName=
"T_HRDISTRIBUTION"
constraintName=
"DER1N_HRDISTRIBUTION_HRPOST_HR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"HRPOSTID"
referencedTableName=
"T_HRPOST"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRDUTY]外键关系 -->
<!--输出实体[HRDUTYCERT]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrdutycert-23-4
3
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrdutycert-23-4
4
"
>
<addForeignKeyConstraint
baseColumnNames=
"HRDUTYID"
baseTableName=
"T_HRDUTYCERT"
constraintName=
"DER1N_HRDUTYCERT_HRDUTY_HRDUTY"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"HRDUTYID"
referencedTableName=
"T_HRDUTY"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRDUTYEDU]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrdutyedu-22-4
4
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrdutyedu-22-4
5
"
>
<addForeignKeyConstraint
baseColumnNames=
"HRDUTYID"
baseTableName=
"T_HRDUTYEDU"
constraintName=
"DER1N_HRDUTYEDU_HRDUTY_HRDUTYI"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"HRDUTYID"
referencedTableName=
"T_HRDUTY"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRDUTYSKILL]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrdutyskill-21-4
5
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrdutyskill-21-4
6
"
>
<addForeignKeyConstraint
baseColumnNames=
"HRDUTYID"
baseTableName=
"T_HRDUTYSKILL"
constraintName=
"DER1N_HRDUTYSKILL_HRDUTY_HRDUT"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"HRDUTYID"
referencedTableName=
"T_HRDUTY"
validate=
"true"
/>
</changeSet>
<!--输出实体[HREDUCATION]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hreducation-44-4
6
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hreducation-44-4
7
"
>
<addForeignKeyConstraint
baseColumnNames=
"HREMPLOYEEID"
baseTableName=
"T_HREDUCATION"
constraintName=
"DER1N_HREDUCATION_HREMPLOYEE_H"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EMPLOYEEID"
referencedTableName=
"EMPLOYEE"
validate=
"true"
/>
</changeSet>
<!--输出实体[HREMPSTATE]外键关系 -->
<!--输出实体[HREMPLOYEE]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hremployee-290-4
7
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hremployee-290-4
8
"
>
<addForeignKeyConstraint
baseColumnNames=
"ORGANIZATIONID"
baseTableName=
"EMPLOYEE"
constraintName=
"DER1N_EMPLOYEE_ORGANIZATION_OR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGANIZATIONID"
referencedTableName=
"ORGANIZATION"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hremployee-290-4
8
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hremployee-290-4
9
"
>
<addForeignKeyConstraint
baseColumnNames=
"EMPSTATE"
baseTableName=
"EMPLOYEE"
constraintName=
"DER1N_HREMPLOYEE_HREMPSTATE_EM"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"HREMPSTATEID"
referencedTableName=
"T_HREMPSTATE"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hremployee-290-
49
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hremployee-290-
50
"
>
<addForeignKeyConstraint
baseColumnNames=
"HRPOSTID"
baseTableName=
"EMPLOYEE"
constraintName=
"DER1N_HREMPLOYEE_HRPOST_HRPOST"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"HRPOSTID"
referencedTableName=
"T_HRPOST"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRFAMILY]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrfamily-23-5
0
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrfamily-23-5
1
"
>
<addForeignKeyConstraint
baseColumnNames=
"HREMPLOYEEID"
baseTableName=
"T_HRFAMILY"
constraintName=
"DER1N_HRFAMILY_HREMPLOYEE_HREM"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EMPLOYEEID"
referencedTableName=
"EMPLOYEE"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRLANGUAGEABILITY]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrlanguageability-17-5
1
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrlanguageability-17-5
2
"
>
<addForeignKeyConstraint
baseColumnNames=
"HREMPLOYEEID"
baseTableName=
"T_HRLANGUAGEABILITY"
constraintName=
"DER1N_HRLANGUAGEABILITY_HREMPL"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EMPLOYEEID"
referencedTableName=
"EMPLOYEE"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRLEAVE]外键关系 -->
<!--输出实体[HRLEGAL]外键关系 -->
<!--输出实体[HROMHIERARCHYPURPOSE]外键关系 -->
<!--输出实体[HROMHIERARCHY]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hromhierarchy-76-5
2
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hromhierarchy-76-5
3
"
>
<addForeignKeyConstraint
baseColumnNames=
"HROMHIERARCHYCATID"
baseTableName=
"OMHIERARCHY"
constraintName=
"DER1N_HROMHIERARCHY_HROMHIERAR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"OMHIERARCHYCATID"
referencedTableName=
"OMHIERARCHYCAT"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hromhierarchy-76-5
3
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hromhierarchy-76-5
4
"
>
<addForeignKeyConstraint
baseColumnNames=
"POMHIERARCHYID"
baseTableName=
"OMHIERARCHY"
constraintName=
"DER1N_OMHIERARCHY_OMHIERARCHY_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"OMHIERARCHYID"
referencedTableName=
"OMHIERARCHY"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hromhierarchy-76-5
4
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hromhierarchy-76-5
5
"
>
<addForeignKeyConstraint
baseColumnNames=
"ORGANIZATIONID"
baseTableName=
"OMHIERARCHY"
constraintName=
"DER1N_OMHIERARCHY_ORGANIZATION"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGANIZATIONID"
referencedTableName=
"ORGANIZATION"
validate=
"true"
/>
</changeSet>
<!--输出实体[HROMHIERARCHYCAT]外键关系 -->
<!--输出实体[HROMHIERARCHYPURPOSEREF]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hromhierarchypurposeref-6-5
5
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hromhierarchypurposeref-6-5
6
"
>
<addForeignKeyConstraint
baseColumnNames=
"OMHIERARCHYCATID"
baseTableName=
"OMHIERARCHYPURPOSEREF"
constraintName=
"DER1N_OMHIERARCHYPURPOSEREF_OM"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"OMHIERARCHYCATID"
referencedTableName=
"OMHIERARCHYCAT"
validate=
"true"
/>
</changeSet>
<!--输出实体[HROPERATIONUNIT]外键关系 -->
<!--输出实体[HRORGADDRESS]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrorgaddress-29-5
7
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrorgaddress-29-5
8
"
>
<addForeignKeyConstraint
baseColumnNames=
"HRORGANIZATIONID"
baseTableName=
"T_HRORGADDRESS"
constraintName=
"DER1N_HRORGADDRESS_HRORGANIZAT"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGANIZATIONID"
referencedTableName=
"ORGANIZATION"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRORGCONTACT]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrorgcontact-24-5
8
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrorgcontact-24-5
9
"
>
<addForeignKeyConstraint
baseColumnNames=
"HRORGANIZATIONID"
baseTableName=
"T_HRORGCONTACT"
constraintName=
"DER1N_HRORGCONTACT_HRORGANIZAT"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGANIZATIONID"
referencedTableName=
"ORGANIZATION"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRORGANIZATION]外键关系 -->
<!--输出实体[HRPAPER]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrpaper-16-
59
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrpaper-16-
60
"
>
<addForeignKeyConstraint
baseColumnNames=
"HREMPLOYEEID"
baseTableName=
"T_HRPAPER"
constraintName=
"DER1N_HRPAPER_HREMPLOYEE_HREMP"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EMPLOYEEID"
referencedTableName=
"EMPLOYEE"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRPATENT]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrpatent-17-6
0
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrpatent-17-6
1
"
>
<addForeignKeyConstraint
baseColumnNames=
"HREMPLOYEEID"
baseTableName=
"T_HRPATENT"
constraintName=
"DER1N_HRPATENT_HREMPLOYEE_HREM"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EMPLOYEEID"
referencedTableName=
"EMPLOYEE"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRPOST]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrpost-109-6
1
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrpost-109-6
2
"
>
<addForeignKeyConstraint
baseColumnNames=
"HRDUTYID"
baseTableName=
"T_HRPOST"
constraintName=
"DER1N_HRPOST_HRDUTY_HRDUTYID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"HRDUTYID"
referencedTableName=
"T_HRDUTY"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrpost-109-6
2
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrpost-109-6
3
"
>
<addForeignKeyConstraint
baseColumnNames=
"HRORGANIZATIONID"
baseTableName=
"T_HRPOST"
constraintName=
"DER1N_HRPOST_HRORGANIZATION_HR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGANIZATIONID"
referencedTableName=
"ORGANIZATION"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRPOSTREL]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrpostrel-29-6
3
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrpostrel-29-6
4
"
>
<addForeignKeyConstraint
baseColumnNames=
"HRPOSTID"
baseTableName=
"T_HRPOSTREL"
constraintName=
"DER1N_HRPOSTREL_HRPOST_HRPOSTI"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"HRPOSTID"
referencedTableName=
"T_HRPOST"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrpostrel-29-6
4
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrpostrel-29-6
5
"
>
<addForeignKeyConstraint
baseColumnNames=
"PHRPOSTID"
baseTableName=
"T_HRPOSTREL"
constraintName=
"DER1N_HRPOSTREL_HRPOST_PHRPOST"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"HRPOSTID"
referencedTableName=
"T_HRPOST"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRRESEARCH]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrresearch-14-6
5
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrresearch-14-6
6
"
>
<addForeignKeyConstraint
baseColumnNames=
"HREMPLOYEEID"
baseTableName=
"T_HRRESEARCH"
constraintName=
"DER1N_HRRESEARCH_HREMPLOYEE_HR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EMPLOYEEID"
referencedTableName=
"EMPLOYEE"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRREWARD]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrreward-19-6
6
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrreward-19-6
7
"
>
<addForeignKeyConstraint
baseColumnNames=
"HREMPLOYEEID"
baseTableName=
"T_HRREWARD"
constraintName=
"DER1N_HRREWARD_HREMPLOYEE_HREM"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EMPLOYEEID"
referencedTableName=
"EMPLOYEE"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRTECHNICALTITLE]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrtechnicaltitle-8
6-67
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrtechnicaltitle-8
8-68
"
>
<addForeignKeyConstraint
baseColumnNames=
"HREMPLOYEEID"
baseTableName=
"T_HRTECHNICALTITLE"
constraintName=
"DER1N_HRTECHNICALTITLE_HREMPLO"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EMPLOYEEID"
referencedTableName=
"EMPLOYEE"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRTRAININGRECORD]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrtrainingrecord-8-6
8
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrtrainingrecord-8-6
9
"
>
<addForeignKeyConstraint
baseColumnNames=
"HREMPLOYEEID"
baseTableName=
"T_HRTRAININGRECORD"
constraintName=
"DER1N_HRTRAININGRECORD_HREMPLO"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EMPLOYEEID"
referencedTableName=
"EMPLOYEE"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRTRANSFERAPPLY]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrtransferapply-1
65-69
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrtransferapply-1
84-70
"
>
<addForeignKeyConstraint
baseColumnNames=
"HREMPLOYEEID"
baseTableName=
"T_HRTRANSFERAPPLY"
constraintName=
"DER1N_HRTRANSFERAPPLY_HREMPLOY"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EMPLOYEEID"
referencedTableName=
"EMPLOYEE"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrtransferapply-1
65-70
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrtransferapply-1
84-71
"
>
<addForeignKeyConstraint
baseColumnNames=
"HRORGANIZATIONID2"
baseTableName=
"T_HRTRANSFERAPPLY"
constraintName=
"DER1N_HRTRANSFERAPPLY_HRORGANI"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGANIZATIONID"
referencedTableName=
"ORGANIZATION"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrtransferapply-1
65-71
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrtransferapply-1
84-72
"
>
<addForeignKeyConstraint
baseColumnNames=
"HRPOSTID2"
baseTableName=
"T_HRTRANSFERAPPLY"
constraintName=
"DER1N_HRTRANSFERAPPLY_HRPOST_H"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"HRPOSTID"
referencedTableName=
"T_HRPOST"
validate=
"true"
/>
</changeSet>
<!--输出实体[HRWORKRECORD]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrworkrecord-16-7
2
"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-hrworkrecord-16-7
3
"
>
<addForeignKeyConstraint
baseColumnNames=
"HREMPLOYEEID"
baseTableName=
"T_HRWORKRECORD"
constraintName=
"DER1N_HRWORKRECORD_HREMPLOYEE_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"EMPLOYEEID"
referencedTableName=
"EMPLOYEE"
validate=
"true"
/>
</changeSet>
...
...
humanresource-core/src/main/resources/mapper/humanresource/hrarchives/HRArchivesMapper.xml
浏览文件 @
ab819677
...
...
@@ -5,17 +5,20 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"HRArchivesResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`ACTIVEFLAG`, t1.`ARCHIVESCODE`, t1.`ARCHIVESPLACE`, t1.`ARCHIVESPLACETYPE`, t1.`ARCHIVESROOM`, t1.`ATTACHMENT`, t1.`BIRTHDAY`, t1.`
CREATEDATE`, t1.`CREATEMAN`, t1.`DEGREE`, t11.`EMPLOYEECODE`, t11.`EMPSTATE`, t1.`HRARCHIVESID`, t1.`HRARCHIVESNAME`, t1.`HREMPLOYEEID`, t11.`EMPLOYEENAME` AS `HREMPLOYEENAME`, t1.`MEMO`, t11.`ORGANIZATIONID`, t21.`ORGANIZATIONNAME`, t1.`POLITICALTIME`, t1.`STARTWORKTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HRARCHIVES` t1 LEFT JOIN EMPLOYEE t11 ON t1.HREMPLOYEEID = t11.EMPLOYEEID LEFT JOIN ORGANIZATION t21 ON t11.ORGANIZATIONID = t2
1.ORGANIZATIONID ) t1 where hrarchivesid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`ACTIVEFLAG`, t1.`ARCHIVESCODE`, t1.`ARCHIVESPLACE`, t1.`ARCHIVESPLACETYPE`, t1.`ARCHIVESROOM`, t1.`ATTACHMENT`, t1.`BIRTHDAY`, t1.`
BORROWSTATE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DEGREE`, t11.`EMPLOYEECODE`, t11.`EMPSTATE`, t1.`HRARCHIVESID`, t1.`HRARCHIVESNAME`, t1.`HREMPLOYEEID`, t11.`EMPLOYEENAME` AS `HREMPLOYEENAME`, t1.`HRORGANIZATIONID`, t31.`ORGANIZATIONNAME` AS `HRORGANIZATIONNAME`, t1.`MEMO`, t11.`ORGANIZATIONID`, t21.`ORGANIZATIONNAME`, t1.`POLITICALTIME`, t1.`STARTWORKTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HRARCHIVES` t1 LEFT JOIN EMPLOYEE t11 ON t1.HREMPLOYEEID = t11.EMPLOYEEID LEFT JOIN ORGANIZATION t21 ON t11.ORGANIZATIONID = t21.ORGANIZATIONID LEFT JOIN ORGANIZATION t31 ON t1.HRORGANIZATIONID = t3
1.ORGANIZATIONID ) t1 where hrarchivesid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"HRArchivesResultMap"
type=
"cn.ibizlab.humanresource.core.humanresource.domain.HRArchives"
autoMapping=
"true"
>
<id
property=
"hrarchivesid"
column=
"hrarchivesid"
/>
<!--主键字段映射-->
<result
property=
"hremployeeid"
column=
"hremployeeid"
/>
<result
property=
"hrorganizationid"
column=
"hrorganizationid"
/>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association
property=
"hremployee"
javaType=
"cn.ibizlab.humanresource.core.humanresource.domain.HREmployee"
column=
"hremployeeid"
select=
"cn.ibizlab.humanresource.core.humanresource.mapper.HREmployeeMapper.selectById"
fetchType=
"lazy"
></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association
property=
"hrorganization"
javaType=
"cn.ibizlab.humanresource.core.base.domain.HROrganization"
column=
"hrorganizationid"
select=
"cn.ibizlab.humanresource.core.base.mapper.HROrganizationMapper.selectById"
fetchType=
"lazy"
></association>
</resultMap>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_HRARCHIVES_HREMPLOYEE_HREMPLOYEEID_327A4D] -->
...
...
@@ -24,6 +27,13 @@
<include
refid=
"Default"
/>
) t1
where hremployeeid=#{employeeid}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_HRARCHIVES_HRORGANIZATION_HRORGANIZATIONID_6BD9DC] -->
<select
id=
"selectByHrorganizationid"
resultMap=
"HRArchivesResultMap"
>
select t1.* from (
<include
refid=
"Default"
/>
) t1
where hrorganizationid=#{organizationid}
</select>
<!--数据集合[Default]-->
...
...
@@ -37,12 +47,12 @@
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`ACTIVEFLAG`, t1.`ARCHIVESCODE`, t1.`ARCHIVESPLACE`, t1.`ARCHIVESPLACETYPE`, t1.`ARCHIVESROOM`, t1.`ATTACHMENT`, t1.`BIRTHDAY`, t1.`
CREATEDATE`, t1.`CREATEMAN`, t1.`DEGREE`, t11.`EMPLOYEECODE`, t11.`EMPSTATE`, t1.`HRARCHIVESID`, t1.`HRARCHIVESNAME`, t1.`HREMPLOYEEID`, t11.`EMPLOYEENAME` AS `HREMPLOYEENAME`, t1.`MEMO`, t11.`ORGANIZATIONID`, t21.`ORGANIZATIONNAME`, t1.`POLITICALTIME`, t1.`STARTWORKTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HRARCHIVES` t1 LEFT JOIN EMPLOYEE t11 ON t1.HREMPLOYEEID = t11.EMPLOYEEID LEFT JOIN ORGANIZATION t21 ON t11.ORGANIZATIONID = t2
1.ORGANIZATIONID
<![CDATA[ SELECT t1.`ACTIVEFLAG`, t1.`ARCHIVESCODE`, t1.`ARCHIVESPLACE`, t1.`ARCHIVESPLACETYPE`, t1.`ARCHIVESROOM`, t1.`ATTACHMENT`, t1.`BIRTHDAY`, t1.`
BORROWSTATE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DEGREE`, t11.`EMPLOYEECODE`, t11.`EMPSTATE`, t1.`HRARCHIVESID`, t1.`HRARCHIVESNAME`, t1.`HREMPLOYEEID`, t11.`EMPLOYEENAME` AS `HREMPLOYEENAME`, t1.`HRORGANIZATIONID`, t31.`ORGANIZATIONNAME` AS `HRORGANIZATIONNAME`, t1.`MEMO`, t11.`ORGANIZATIONID`, t21.`ORGANIZATIONNAME`, t1.`POLITICALTIME`, t1.`STARTWORKTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HRARCHIVES` t1 LEFT JOIN EMPLOYEE t11 ON t1.HREMPLOYEEID = t11.EMPLOYEEID LEFT JOIN ORGANIZATION t21 ON t11.ORGANIZATIONID = t21.ORGANIZATIONID LEFT JOIN ORGANIZATION t31 ON t1.HRORGANIZATIONID = t3
1.ORGANIZATIONID
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`ACTIVEFLAG`, t1.`ARCHIVESCODE`, t1.`ARCHIVESPLACE`, t1.`ARCHIVESPLACETYPE`, t1.`ARCHIVESROOM`, t1.`ATTACHMENT`, t1.`BIRTHDAY`, t1.`
CREATEDATE`, t1.`CREATEMAN`, t1.`DEGREE`, t11.`EMPLOYEECODE`, t11.`EMPSTATE`, t1.`HRARCHIVESID`, t1.`HRARCHIVESNAME`, t1.`HREMPLOYEEID`, t11.`EMPLOYEENAME` AS `HREMPLOYEENAME`, t1.`MEMO`, t11.`ORGANIZATIONID`, t21.`ORGANIZATIONNAME`, t1.`POLITICALTIME`, t1.`STARTWORKTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HRARCHIVES` t1 LEFT JOIN EMPLOYEE t11 ON t1.HREMPLOYEEID = t11.EMPLOYEEID LEFT JOIN ORGANIZATION t21 ON t11.ORGANIZATIONID = t2
1.ORGANIZATIONID
<![CDATA[ SELECT t1.`ACTIVEFLAG`, t1.`ARCHIVESCODE`, t1.`ARCHIVESPLACE`, t1.`ARCHIVESPLACETYPE`, t1.`ARCHIVESROOM`, t1.`ATTACHMENT`, t1.`BIRTHDAY`, t1.`
BORROWSTATE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DEGREE`, t11.`EMPLOYEECODE`, t11.`EMPSTATE`, t1.`HRARCHIVESID`, t1.`HRARCHIVESNAME`, t1.`HREMPLOYEEID`, t11.`EMPLOYEENAME` AS `HREMPLOYEENAME`, t1.`HRORGANIZATIONID`, t31.`ORGANIZATIONNAME` AS `HRORGANIZATIONNAME`, t1.`MEMO`, t11.`ORGANIZATIONID`, t21.`ORGANIZATIONNAME`, t1.`POLITICALTIME`, t1.`STARTWORKTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HRARCHIVES` t1 LEFT JOIN EMPLOYEE t11 ON t1.HREMPLOYEEID = t11.EMPLOYEEID LEFT JOIN ORGANIZATION t21 ON t11.ORGANIZATIONID = t21.ORGANIZATIONID LEFT JOIN ORGANIZATION t31 ON t1.HRORGANIZATIONID = t3
1.ORGANIZATIONID
]]>
</sql>
</mapper>
...
...
humanresource-provider/humanresource-provider-hrapi/src/main/java/cn/ibizlab/humanresource/hrapi/dto/HRArchivesDTO.java
浏览文件 @
ab819677
...
...
@@ -213,6 +213,30 @@ public class HRArchivesDTO extends DTOBase implements Serializable {
@JsonProperty
(
"memo"
)
private
String
memo
;
/**
* 属性 [BORROWSTATE]
*
*/
@JSONField
(
name
=
"borrowstate"
)
@JsonProperty
(
"borrowstate"
)
private
String
borrowstate
;
/**
* 属性 [HRORGANIZATIONID]
*
*/
@JSONField
(
name
=
"hrorganizationid"
)
@JsonProperty
(
"hrorganizationid"
)
private
String
hrorganizationid
;
/**
* 属性 [HRORGANIZATIONNAME]
*
*/
@JSONField
(
name
=
"hrorganizationname"
)
@JsonProperty
(
"hrorganizationname"
)
private
String
hrorganizationname
;
/**
* 设置 [HRARCHIVESNAME]
...
...
@@ -318,6 +342,22 @@ public class HRArchivesDTO extends DTOBase implements Serializable {
this
.
modify
(
"memo"
,
memo
);
}
/**
* 设置 [BORROWSTATE]
*/
public
void
setBorrowstate
(
String
borrowstate
){
this
.
borrowstate
=
borrowstate
;
this
.
modify
(
"borrowstate"
,
borrowstate
);
}
/**
* 设置 [HRORGANIZATIONID]
*/
public
void
setHrorganizationid
(
String
hrorganizationid
){
this
.
hrorganizationid
=
hrorganizationid
;
this
.
modify
(
"hrorganizationid"
,
hrorganizationid
);
}
}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录