Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz人力资源
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz人力资源
提交
f91e2a82
提交
f91e2a82
编写于
8月 12, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Miracle 部署微服务应用
上级
1b506940
变更
13
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
545 行增加
和
26 行删除
+545
-26
hrcertificates.ts
app_PIM/src/mock/entity/hrcertificates/hrcertificates.ts
+267
-0
hrcertificate-service-base.ts
...M/src/service/hrcertificate/hrcertificate-service-base.ts
+60
-0
config.xml
config.xml
+5
-5
Dockerfile
...urce-app/humanresource-app-pim/src/main/docker/Dockerfile
+1
-1
humanresource-app-pim.yaml
...source-app-pim/src/main/docker/humanresource-app-pim.yaml
+17
-1
HRCertificateMapper.java
...source/core/humanresource/mapper/HRCertificateMapper.java
+3
-0
IHRCertificateService.java
...rce/core/humanresource/service/IHRCertificateService.java
+3
-0
HRCertificateServiceImpl.java
.../humanresource/service/impl/HRCertificateServiceImpl.java
+27
-0
HRCertificateMapper.xml
...apper/humanresource/hrcertificate/HRCertificateMapper.xml
+27
-0
systemResource.json
...ce-core/src/main/resources/permission/systemResource.json
+1
-1
Dockerfile
...r/humanresource-provider-hrapi/src/main/docker/Dockerfile
+1
-1
humanresource-provider-hrapi.yaml
...r-hrapi/src/main/docker/humanresource-provider-hrapi.yaml
+1
-17
HRCertificateResource.java
...izlab/humanresource/hrapi/rest/HRCertificateResource.java
+132
-0
未找到文件。
app_PIM/src/mock/entity/hrcertificates/hrcertificates.ts
浏览文件 @
f91e2a82
此差异已折叠。
点击以展开。
app_PIM/src/service/hrcertificate/hrcertificate-service-base.ts
浏览文件 @
f91e2a82
...
...
@@ -225,6 +225,26 @@ export default class HRCertificateServiceBase extends EntityService {
return
res
;
}
/**
* FetchActive接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRCertificateServiceBase
*/
public
async
FetchActive
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrcertificates/fetchactive`
,
tempData
,
isloading
);
return
res
;
}
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrcertificates/fetchactive`
,
tempData
,
isloading
);
return
res
;
}
/**
* FetchDefault接口方法
*
...
...
@@ -244,4 +264,44 @@ export default class HRCertificateServiceBase extends EntityService {
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrcertificates/fetchdefault`
,
tempData
,
isloading
);
return
res
;
}
/**
* FetchInActive接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRCertificateServiceBase
*/
public
async
FetchInActive
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrcertificates/fetchinactive`
,
tempData
,
isloading
);
return
res
;
}
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrcertificates/fetchinactive`
,
tempData
,
isloading
);
return
res
;
}
/**
* FetchSoonExpired接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof HRCertificateServiceBase
*/
public
async
FetchSoonExpired
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
hremployee
&&
true
){
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hremployees/
${
context
.
hremployee
}
/hrcertificates/fetchsoonexpired`
,
tempData
,
isloading
);
return
res
;
}
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/hrcertificates/fetchsoonexpired`
,
tempData
,
isloading
);
return
res
;
}
}
\ No newline at end of file
config.xml
浏览文件 @
f91e2a82
...
...
@@ -37,11 +37,11 @@
git clone -b master $para2 ibizhumanresources/
export NODE_OPTIONS=--max-old-space-size=4096
cd ibizhumanresources/
mvn clean package -P
hrapi
cd humanresource-
provider/humanresource-provider-hrapi
mvn -P
hrapi
docker:build
mvn -P
hrapi
docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/humanresource-
provider-hrapi.yaml iBizEE --with-registry-auth
mvn clean package -P
pim
cd humanresource-
app/humanresource-app-pim
mvn -P
pim
docker:build
mvn -P
pim
docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/humanresource-
app-pim.yaml iBizEE --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
...
...
humanresource-app/humanresource-app-pim/src/main/docker/Dockerfile
浏览文件 @
f91e2a82
...
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /humanresource-app-pim.jar
EXPOSE
8080
EXPOSE
10327
ADD
humanresource-app-pim.jar /humanresource-app-pim.jar
humanresource-app/humanresource-app-pim/src/main/docker/humanresource-app-pim.yaml
浏览文件 @
f91e2a82
...
...
@@ -3,9 +3,25 @@ services:
humanresource-app-pim
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/humanresource-app-pim:latest
ports
:
-
"
8080:8080
"
-
"
10327:10327
"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
-
SERVER_PORT=10327
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
-
SPRING_REDIS_HOST=172.16.240.110
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
-
SPRING_DATASOURCE_PASSWORD=b1@@@772
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
-
CAS=https://passport.ibizlab.cn
-
NACOS=172.16.240.110:8848
-
SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
-
SEATA_ENABLED=true
deploy
:
resources
:
limits
:
...
...
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/humanresource/mapper/HRCertificateMapper.java
浏览文件 @
f91e2a82
...
...
@@ -19,7 +19,10 @@ import com.alibaba.fastjson.JSONObject;
public
interface
HRCertificateMapper
extends
BaseMapper
<
HRCertificate
>{
Page
<
HRCertificate
>
searchActive
(
IPage
page
,
@Param
(
"srf"
)
HRCertificateSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
HRCertificate
>
wrapper
)
;
Page
<
HRCertificate
>
searchDefault
(
IPage
page
,
@Param
(
"srf"
)
HRCertificateSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
HRCertificate
>
wrapper
)
;
Page
<
HRCertificate
>
searchInActive
(
IPage
page
,
@Param
(
"srf"
)
HRCertificateSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
HRCertificate
>
wrapper
)
;
Page
<
HRCertificate
>
searchSoonExpired
(
IPage
page
,
@Param
(
"srf"
)
HRCertificateSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
HRCertificate
>
wrapper
)
;
@Override
HRCertificate
selectById
(
Serializable
id
);
@Override
...
...
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/humanresource/service/IHRCertificateService.java
浏览文件 @
f91e2a82
...
...
@@ -36,7 +36,10 @@ public interface IHRCertificateService extends IService<HRCertificate>{
boolean
checkKey
(
HRCertificate
et
)
;
boolean
save
(
HRCertificate
et
)
;
void
saveBatch
(
List
<
HRCertificate
>
list
)
;
Page
<
HRCertificate
>
searchActive
(
HRCertificateSearchContext
context
)
;
Page
<
HRCertificate
>
searchDefault
(
HRCertificateSearchContext
context
)
;
Page
<
HRCertificate
>
searchInActive
(
HRCertificateSearchContext
context
)
;
Page
<
HRCertificate
>
searchSoonExpired
(
HRCertificateSearchContext
context
)
;
List
<
HRCertificate
>
selectByHremployeeid
(
String
employeeid
)
;
void
removeByHremployeeid
(
String
employeeid
)
;
List
<
HRCertificate
>
selectByRegisterorganizationid
(
String
organizationid
)
;
...
...
humanresource-core/src/main/java/cn/ibizlab/humanresource/core/humanresource/service/impl/HRCertificateServiceImpl.java
浏览文件 @
f91e2a82
...
...
@@ -174,6 +174,15 @@ public class HRCertificateServiceImpl extends ServiceImpl<HRCertificateMapper, H
}
/**
* 查询集合 有效证书
*/
@Override
public
Page
<
HRCertificate
>
searchActive
(
HRCertificateSearchContext
context
)
{
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
HRCertificate
>
pages
=
baseMapper
.
searchActive
(
context
.
getPages
(),
context
,
context
.
getSelectCond
());
return
new
PageImpl
<
HRCertificate
>(
pages
.
getRecords
(),
context
.
getPageable
(),
pages
.
getTotal
());
}
/**
* 查询集合 DEFAULT
*/
...
...
@@ -183,6 +192,24 @@ public class HRCertificateServiceImpl extends ServiceImpl<HRCertificateMapper, H
return
new
PageImpl
<
HRCertificate
>(
pages
.
getRecords
(),
context
.
getPageable
(),
pages
.
getTotal
());
}
/**
* 查询集合 有效证书
*/
@Override
public
Page
<
HRCertificate
>
searchInActive
(
HRCertificateSearchContext
context
)
{
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
HRCertificate
>
pages
=
baseMapper
.
searchInActive
(
context
.
getPages
(),
context
,
context
.
getSelectCond
());
return
new
PageImpl
<
HRCertificate
>(
pages
.
getRecords
(),
context
.
getPageable
(),
pages
.
getTotal
());
}
/**
* 查询集合 即将过期
*/
@Override
public
Page
<
HRCertificate
>
searchSoonExpired
(
HRCertificateSearchContext
context
)
{
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
HRCertificate
>
pages
=
baseMapper
.
searchSoonExpired
(
context
.
getPages
(),
context
,
context
.
getSelectCond
());
return
new
PageImpl
<
HRCertificate
>(
pages
.
getRecords
(),
context
.
getPageable
(),
pages
.
getTotal
());
}
/**
...
...
humanresource-core/src/main/resources/mapper/humanresource/hrcertificate/HRCertificateMapper.xml
浏览文件 @
f91e2a82
...
...
@@ -36,6 +36,15 @@
where registerorganizationid=#{organizationid}
</select>
<!--数据集合[Active]-->
<select
id=
"searchActive"
parameterType=
"cn.ibizlab.humanresource.core.humanresource.filter.HRCertificateSearchContext"
resultMap=
"HRCertificateResultMap"
>
select t1.* from (
<include
refid=
"Active"
/>
)t1
<where><if
test=
"ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere"
>
${ew.sqlSegment}
</if></where>
<if
test=
"ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere"
>
${ew.sqlSegment}
</if>
</select>
<!--数据集合[Default]-->
<select
id=
"searchDefault"
parameterType=
"cn.ibizlab.humanresource.core.humanresource.filter.HRCertificateSearchContext"
resultMap=
"HRCertificateResultMap"
>
select t1.* from (
...
...
@@ -45,6 +54,24 @@
<if
test=
"ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere"
>
${ew.sqlSegment}
</if>
</select>
<!--数据集合[InActive]-->
<select
id=
"searchInActive"
parameterType=
"cn.ibizlab.humanresource.core.humanresource.filter.HRCertificateSearchContext"
resultMap=
"HRCertificateResultMap"
>
select t1.* from (
<include
refid=
"InActive"
/>
)t1
<where><if
test=
"ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere"
>
${ew.sqlSegment}
</if></where>
<if
test=
"ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere"
>
${ew.sqlSegment}
</if>
</select>
<!--数据集合[SoonExpired]-->
<select
id=
"searchSoonExpired"
parameterType=
"cn.ibizlab.humanresource.core.humanresource.filter.HRCertificateSearchContext"
resultMap=
"HRCertificateResultMap"
>
select t1.* from (
<include
refid=
"SoonExpired"
/>
)t1
<where><if
test=
"ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere"
>
${ew.sqlSegment}
</if></where>
<if
test=
"ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere"
>
${ew.sqlSegment}
</if>
</select>
<!--数据查询[Active]-->
<sql
id=
"Active"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`ACTIVEFLAG`, t1.`ATTACHMENT`, t1.`AUTHDATE`, t1.`AUTHORGANIZATION`, t1.`CERTIFICATECODE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t11.`EMPLOYEECODE`, t11.`EMPSTATE`, t1.`EXPIREDATE`, t1.`HRCERTIFICATEID`, t1.`HRCERTIFICATENAME`, t1.`HREMPLOYEEID`, t11.`EMPLOYEENAME` AS `HREMPLOYEENAME`, t1.`MEMO`, t11.`ORGANIZATIONID`, t31.`ORGANIZATIONNAME`, t1.`REGISTERCODE`, t1.`REGISTERORGANIZATIONID`, t21.`ORGANIZATIONNAME` AS `REGISTERORGANIZATIONNAME`, t1.`REGISTERTIME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HRCERTIFICATE` t1 LEFT JOIN EMPLOYEE t11 ON t1.HREMPLOYEEID = t11.EMPLOYEEID LEFT JOIN ORGANIZATION t21 ON t1.REGISTERORGANIZATIONID = t21.ORGANIZATIONID LEFT JOIN ORGANIZATION t31 ON t11.ORGANIZATIONID = t31.ORGANIZATIONID
...
...
humanresource-core/src/main/resources/permission/systemResource.json
浏览文件 @
f91e2a82
...
...
@@ -47,7 +47,7 @@
"dename"
:
"HRCertificate"
,
"delogicname"
:
"证书信息"
,
"sysmoudle"
:{
"id"
:
"HUMANRESOURCE"
,
"name"
:
"人力"
},
"dedataset"
:[{
"id"
:
"
Default"
,
"name"
:
"DEFAULT
"
}],
"dedataset"
:[{
"id"
:
"
Active"
,
"name"
:
"有效证书"
},{
"id"
:
"Default"
,
"name"
:
"DEFAULT"
},{
"id"
:
"InActive"
,
"name"
:
"有效证书"
},{
"id"
:
"SoonExpired"
,
"name"
:
"即将过期
"
}],
"deaction"
:[{
"id"
:
"Create"
,
"name"
:
"Create"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Update"
,
"name"
:
"Update"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Remove"
,
"name"
:
"Remove"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Get"
,
"name"
:
"Get"
,
"type"
:
"BUILTIN"
},{
"id"
:
"GetDraft"
,
"name"
:
"GetDraft"
,
"type"
:
"BUILTIN"
},{
"id"
:
"CheckKey"
,
"name"
:
"CheckKey"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Save"
,
"name"
:
"Save"
,
"type"
:
"BUILTIN"
}],
"datascope"
:[{
"id"
:
"all"
,
"name"
:
"全部数据"
},
{
"id"
:
"createman"
,
"name"
:
"创建人"
}]
}
...
...
humanresource-provider/humanresource-provider-hrapi/src/main/docker/Dockerfile
浏览文件 @
f91e2a82
...
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /humanresource-provider-hrapi.jar
EXPOSE
10317
EXPOSE
8081
ADD
humanresource-provider-hrapi.jar /humanresource-provider-hrapi.jar
humanresource-provider/humanresource-provider-hrapi/src/main/docker/humanresource-provider-hrapi.yaml
浏览文件 @
f91e2a82
...
...
@@ -3,25 +3,9 @@ services:
humanresource-provider-hrapi
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/humanresource-provider-hrapi:latest
ports
:
-
"
10317:10317
"
-
"
8081:8081
"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
-
SERVER_PORT=10317
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
-
SPRING_REDIS_HOST=172.16.240.110
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
-
SPRING_DATASOURCE_PASSWORD=b1@@@772
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
-
CAS=https://passport.ibizlab.cn
-
NACOS=172.16.240.110:8848
-
SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
-
SEATA_ENABLED=true
deploy
:
resources
:
limits
:
...
...
humanresource-provider/humanresource-provider-hrapi/src/main/java/cn/ibizlab/humanresource/hrapi/rest/HRCertificateResource.java
浏览文件 @
f91e2a82
此差异已折叠。
点击以展开。
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录