Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
d5d129bd
Commit
d5d129bd
authored
Jun 20, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
附属信息
parent
a6359d66
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
83 additions
and
5 deletions
+83
-5
TEmpDisabilityInfo.java
...loud/plus/v1/yifu/archives/entity/TEmpDisabilityInfo.java
+2
-0
TEmpEducation.java
...ifu/cloud/plus/v1/yifu/archives/entity/TEmpEducation.java
+2
-0
TEmpFamily.java
...m/yifu/cloud/plus/v1/yifu/archives/entity/TEmpFamily.java
+2
-0
TEmpProfessionalQualification.java
...1/yifu/archives/entity/TEmpProfessionalQualification.java
+2
-0
TEmpWorkRecording.java
...cloud/plus/v1/yifu/archives/entity/TEmpWorkRecording.java
+2
-0
TEmpFamilyController.java
...lus/v1/yifu/archives/controller/TEmpFamilyController.java
+24
-5
CommonConstants.java
...ud.plus.v1/yifu/common/core/constant/CommonConstants.java
+20
-0
Common.java
.../com/yifu.cloud.plus.v1/yifu/common/core/util/Common.java
+29
-0
No files found.
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TEmpDisabilityInfo.java
View file @
d5d129bd
...
@@ -18,6 +18,7 @@ package com.yifu.cloud.plus.v1.yifu.archives.entity;
...
@@ -18,6 +18,7 @@ package com.yifu.cloud.plus.v1.yifu.archives.entity;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
io.swagger.v3.oas.annotations.media.Schema
;
...
@@ -108,6 +109,7 @@ public class TEmpDisabilityInfo extends BaseEntity {
...
@@ -108,6 +109,7 @@ public class TEmpDisabilityInfo extends BaseEntity {
/**
/**
* 0删除作废1正常
* 0删除作废1正常
*/
*/
@TableLogic
@Schema
(
description
=
"0删除作废1正常"
)
@Schema
(
description
=
"0删除作废1正常"
)
private
String
deleteFlag
;
private
String
deleteFlag
;
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TEmpEducation.java
View file @
d5d129bd
...
@@ -18,6 +18,7 @@ package com.yifu.cloud.plus.v1.yifu.archives.entity;
...
@@ -18,6 +18,7 @@ package com.yifu.cloud.plus.v1.yifu.archives.entity;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
io.swagger.v3.oas.annotations.media.Schema
;
...
@@ -120,6 +121,7 @@ public class TEmpEducation extends BaseEntity {
...
@@ -120,6 +121,7 @@ public class TEmpEducation extends BaseEntity {
/**
/**
* 是否删除 0未删除/1删除
* 是否删除 0未删除/1删除
*/
*/
@TableLogic
@Schema
(
description
=
"是否删除 0未删除/1删除"
)
@Schema
(
description
=
"是否删除 0未删除/1删除"
)
private
String
deleteFlag
;
private
String
deleteFlag
;
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TEmpFamily.java
View file @
d5d129bd
...
@@ -18,6 +18,7 @@ package com.yifu.cloud.plus.v1.yifu.archives.entity;
...
@@ -18,6 +18,7 @@ package com.yifu.cloud.plus.v1.yifu.archives.entity;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
io.swagger.v3.oas.annotations.media.Schema
;
...
@@ -102,6 +103,7 @@ public class TEmpFamily extends BaseEntity {
...
@@ -102,6 +103,7 @@ public class TEmpFamily extends BaseEntity {
/**
/**
* 0删除作废1正常
* 0删除作废1正常
*/
*/
@TableLogic
@Schema
(
description
=
"0删除作废1正常"
)
@Schema
(
description
=
"0删除作废1正常"
)
private
String
deleteFlag
;
private
String
deleteFlag
;
/**
/**
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TEmpProfessionalQualification.java
View file @
d5d129bd
...
@@ -18,6 +18,7 @@ package com.yifu.cloud.plus.v1.yifu.archives.entity;
...
@@ -18,6 +18,7 @@ package com.yifu.cloud.plus.v1.yifu.archives.entity;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
io.swagger.v3.oas.annotations.media.Schema
;
...
@@ -112,6 +113,7 @@ public class TEmpProfessionalQualification extends BaseEntity {
...
@@ -112,6 +113,7 @@ public class TEmpProfessionalQualification extends BaseEntity {
/**
/**
* 0删除作废1正常
* 0删除作废1正常
*/
*/
@TableLogic
@Schema
(
description
=
"0删除作废1正常"
)
@Schema
(
description
=
"0删除作废1正常"
)
private
String
deleteFlag
;
private
String
deleteFlag
;
/**
/**
...
...
yifu-archives/yifu-archives-api/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/entity/TEmpWorkRecording.java
View file @
d5d129bd
...
@@ -18,6 +18,7 @@ package com.yifu.cloud.plus.v1.yifu.archives.entity;
...
@@ -18,6 +18,7 @@ package com.yifu.cloud.plus.v1.yifu.archives.entity;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
io.swagger.v3.oas.annotations.media.Schema
;
...
@@ -114,6 +115,7 @@ public class TEmpWorkRecording extends BaseEntity {
...
@@ -114,6 +115,7 @@ public class TEmpWorkRecording extends BaseEntity {
/**
/**
* 0删除作废1正常
* 0删除作废1正常
*/
*/
@TableLogic
@Schema
(
description
=
"0删除作废1正常"
)
@Schema
(
description
=
"0删除作废1正常"
)
private
String
deleteFlag
;
private
String
deleteFlag
;
/**
/**
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TEmpFamilyController.java
View file @
d5d129bd
...
@@ -17,14 +17,15 @@
...
@@ -17,14 +17,15 @@
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
controller
;
package
com
.
yifu
.
cloud
.
plus
.
v1
.
yifu
.
archives
.
controller
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.pig4cloud.plugin.excel.annotation.RequestExcel
;
import
com.pig4cloud.plugin.excel.annotation.RequestExcel
;
import
com.pig4cloud.plugin.excel.vo.ErrorMessage
;
import
com.pig4cloud.plugin.excel.vo.ErrorMessage
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpFamily
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpFamily
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TEmpFamilyService
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TEmpFamilyService
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.EmpDisabilityExcelVO
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.EmpFamilyExcelVO
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.EmpFamilyExcelVO
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
...
@@ -64,7 +65,7 @@ public class TEmpFamilyController {
...
@@ -64,7 +65,7 @@ public class TEmpFamilyController {
@Operation
(
summary
=
"分页查询"
,
description
=
"分页查询"
)
@Operation
(
summary
=
"分页查询"
,
description
=
"分页查询"
)
@GetMapping
(
"/page"
)
@GetMapping
(
"/page"
)
@PreAuthorize
(
"@pms.hasPermission('archives_tempfamily_get')"
)
@PreAuthorize
(
"@pms.hasPermission('archives_tempfamily_get')"
)
public
R
getTEmpFamilyPage
(
Page
page
,
TEmpFamily
tEmpFamily
)
{
public
R
<
IPage
<
TEmpFamily
>>
getTEmpFamilyPage
(
Page
page
,
TEmpFamily
tEmpFamily
)
{
return
R
.
ok
(
tEmpFamilyService
.
page
(
page
,
Wrappers
.
query
(
tEmpFamily
)));
return
R
.
ok
(
tEmpFamilyService
.
page
(
page
,
Wrappers
.
query
(
tEmpFamily
)));
}
}
...
@@ -77,7 +78,7 @@ public class TEmpFamilyController {
...
@@ -77,7 +78,7 @@ public class TEmpFamilyController {
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询"
)
@Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询"
)
@GetMapping
(
"/{id}"
)
@GetMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('archives_tempfamily_get')"
)
@PreAuthorize
(
"@pms.hasPermission('archives_tempfamily_get')"
)
public
R
getById
(
@PathVariable
(
"id"
)
Long
id
)
{
public
R
<
TEmpFamily
>
getById
(
@PathVariable
(
"id"
)
Long
id
)
{
return
R
.
ok
(
tEmpFamilyService
.
getById
(
id
));
return
R
.
ok
(
tEmpFamilyService
.
getById
(
id
));
}
}
...
@@ -107,7 +108,7 @@ public class TEmpFamilyController {
...
@@ -107,7 +108,7 @@ public class TEmpFamilyController {
@SysLog
(
"修改员工家庭信息表"
)
@SysLog
(
"修改员工家庭信息表"
)
@PutMapping
@PutMapping
@PreAuthorize
(
"@pms.hasPermission('archives_tempfamily_edit')"
)
@PreAuthorize
(
"@pms.hasPermission('archives_tempfamily_edit')"
)
public
R
updateById
(
@RequestBody
TEmpFamily
tEmpFamily
)
{
public
R
<
Boolean
>
updateById
(
@RequestBody
TEmpFamily
tEmpFamily
)
{
String
checkRes
=
tEmpFamilyService
.
checkRepeat
(
tEmpFamily
.
getEmpIdcard
(),
tEmpFamily
.
getFamilyName
(),
tEmpFamily
.
getId
());
String
checkRes
=
tEmpFamilyService
.
checkRepeat
(
tEmpFamily
.
getEmpIdcard
(),
tEmpFamily
.
getFamilyName
(),
tEmpFamily
.
getId
());
if
(
Common
.
isNotNull
(
checkRes
)){
if
(
Common
.
isNotNull
(
checkRes
)){
return
R
.
failed
(
checkRes
);
return
R
.
failed
(
checkRes
);
...
@@ -124,11 +125,29 @@ public class TEmpFamilyController {
...
@@ -124,11 +125,29 @@ public class TEmpFamilyController {
@SysLog
(
"通过id删除员工家庭信息表"
)
@SysLog
(
"通过id删除员工家庭信息表"
)
@DeleteMapping
(
"/{id}"
)
@DeleteMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('archives_tempfamily_del')"
)
@PreAuthorize
(
"@pms.hasPermission('archives_tempfamily_del')"
)
public
R
removeById
(
@PathVariable
Lo
ng
id
)
{
public
R
<
Boolean
>
removeById
(
@PathVariable
Stri
ng
id
)
{
return
R
.
ok
(
tEmpFamilyService
.
removeById
(
id
));
return
R
.
ok
(
tEmpFamilyService
.
removeById
(
id
));
}
}
/**
* 通过id删除员工家庭信息表
* @param ids
* @return R
*/
@Operation
(
summary
=
"通过id删除员工家庭信息表"
,
description
=
"通过id删除员工家庭信息表"
)
@SysLog
(
"通过id删除员工家庭信息表"
)
@DeleteMapping
(
"/removeByIds"
)
@PreAuthorize
(
"@pms.hasPermission('archives_tempfamily_del_batch')"
)
public
R
<
Boolean
>
removeByIds
(
String
ids
)
{
List
<
String
>
idList
=
null
;
if
(
Common
.
isNotNull
(
ids
)){
idList
=
Common
.
initStrToList
(
ids
,
CommonConstants
.
COMMA_STRING
);
}
return
R
.
ok
(
tEmpFamilyService
.
removeByIds
(
idList
));
}
/**
/**
* 批量新增员工家庭信息
* 批量新增员工家庭信息
*
*
...
...
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/constant/CommonConstants.java
View file @
d5d129bd
...
@@ -170,4 +170,24 @@ public interface CommonConstants {
...
@@ -170,4 +170,24 @@ public interface CommonConstants {
* @Author fxj
* @Author fxj
**/
**/
int
INTEGER_HUNDRED
=
100
;
int
INTEGER_HUNDRED
=
100
;
//,逗号
public
static
final
String
COMMA_STRING
=
","
;
//、顿号
public
static
final
String
DUNHAO_STRING
=
"、"
;
//- 横
public
static
final
char
DOWN_LINE_CHAR
=
'_'
;
// 冒号 :
public
static
final
String
COLON_STRING
=
":"
;
// - 横 分割线 中
public
static
final
String
CENTER_SPLIT_LINE_STRING
=
"-"
;
// 斜杠
public
static
final
String
SLASH_SPLIT_LINE_STRING
=
"/"
;
// = 等
public
static
final
char
ETC_CHAR
=
'='
;
// = 等
public
static
final
String
ETC_STRING
=
"="
;
//+ 加
public
static
final
char
ADD_CHAR
=
'+'
;
}
}
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/util/Common.java
View file @
d5d129bd
...
@@ -3,6 +3,7 @@ package com.yifu.cloud.plus.v1.yifu.common.core.util;
...
@@ -3,6 +3,7 @@ package com.yifu.cloud.plus.v1.yifu.common.core.util;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.regex.Matcher
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
import
java.util.regex.Pattern
;
...
@@ -94,4 +95,32 @@ public class Common {
...
@@ -94,4 +95,32 @@ public class Common {
+
1
,
fileName
.
length
());
+
1
,
fileName
.
length
());
}
}
/**
* 将字符串根据分割附转换为字符集合
*
* @param str
* @param regex
* @return
* @author: pwang
*/
public
static
List
<
String
>
initStrToList
(
String
str
,
String
regex
)
{
List
<
String
>
result
=
new
ArrayList
<
String
>();
try
{
if
(
isNotNull
(
str
)
&&
isNotNull
(
regex
))
{
String
[]
strTemp
=
str
.
split
(
regex
);
if
(
isNotNull
(
strTemp
))
{
for
(
String
temp
:
strTemp
)
{
if
(
isNotNull
(
temp
))
{
result
.
add
(
temp
);
}
}
}
}
}
catch
(
Exception
e
)
{
log
.
error
(
"字符串转LIST错误"
);
return
null
;
}
return
result
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment