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
9c6b6a3d
Commit
9c6b6a3d
authored
Nov 03, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限配置页面
parent
d59103f9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
11 deletions
+33
-11
TEmployeeContractAreaResController.java
...chives/controller/TEmployeeContractAreaResController.java
+16
-6
ExcelUtil.java
...m/yifu/cloud/plus/v1/yifu/common/core/util/ExcelUtil.java
+3
-0
TInsuranceAreaResController.java
...fu/insurances/controller/TInsuranceAreaResController.java
+14
-5
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TEmployeeContractAreaResController.java
View file @
9c6b6a3d
...
...
@@ -108,12 +108,22 @@ public class TEmployeeContractAreaResController {
@PostMapping
@PreAuthorize
(
"@pms.hasPermission('temployeecontractareares_add')"
)
public
R
<
Boolean
>
save
(
@RequestBody
TEmployeeContractAreaRes
areaRes
)
{
TEmployeeContractAreaRes
res
=
tEmployeeContractAreaResService
.
getOne
(
Wrappers
.<
TEmployeeContractAreaRes
>
query
().
lambda
()
.
eq
(
TEmployeeContractAreaRes:
:
getFileProvince
,
areaRes
.
getFileProvince
())
.
eq
(
TEmployeeContractAreaRes:
:
getFileCity
,
areaRes
.
getFileCity
())
.
eq
(
TEmployeeContractAreaRes:
:
getFileTown
,
areaRes
.
getFileTown
())
.
eq
(
TEmployeeContractAreaRes:
:
getUserId
,
areaRes
.
getUserId
())
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
TEmployeeContractAreaRes
res
=
null
;
if
(
Common
.
isEmpty
(
areaRes
.
getFileTown
())){
res
=
tEmployeeContractAreaResService
.
getOne
(
Wrappers
.<
TEmployeeContractAreaRes
>
query
().
lambda
()
.
eq
(
TEmployeeContractAreaRes:
:
getFileProvince
,
areaRes
.
getFileProvince
())
.
eq
(
TEmployeeContractAreaRes:
:
getFileCity
,
areaRes
.
getFileCity
())
.
isNull
(
TEmployeeContractAreaRes:
:
getFileTown
)
.
eq
(
TEmployeeContractAreaRes:
:
getUserId
,
areaRes
.
getUserId
())
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
}
if
(
Common
.
isEmpty
(
areaRes
.
getFileCity
())){
res
=
tEmployeeContractAreaResService
.
getOne
(
Wrappers
.<
TEmployeeContractAreaRes
>
query
().
lambda
()
.
eq
(
TEmployeeContractAreaRes:
:
getFileProvince
,
areaRes
.
getFileProvince
())
.
isNull
(
TEmployeeContractAreaRes:
:
getFileCity
)
.
eq
(
TEmployeeContractAreaRes:
:
getUserId
,
areaRes
.
getUserId
())
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
}
if
(
Common
.
isNotNull
(
res
)){
return
R
.
failed
(
"已存在对应审核人及地市配置!"
);
}
...
...
yifu-common/yifu-common-core/src/main/java/com/yifu/cloud/plus/v1/yifu/common/core/util/ExcelUtil.java
View file @
9c6b6a3d
...
...
@@ -1100,6 +1100,9 @@ public class ExcelUtil <T> implements Serializable {
field
.
set
(
vo
,
Common
.
isNotNull
(
value
)?
value:
field
.
get
(
vo
));
}
catch
(
Exception
e
){
log
.
error
(
"字典数据解析异常"
);
}
finally
{
fields
.
clear
();
allField
.
clear
();
}
}
}
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/controller/TInsuranceAreaResController.java
View file @
9c6b6a3d
...
...
@@ -107,11 +107,20 @@ public class TInsuranceAreaResController {
@PostMapping
@PreAuthorize
(
"@pms.hasPermission('tinsuranceareares_add')"
)
public
R
<
Boolean
>
save
(
@RequestBody
TInsuranceAreaRes
areaRes
)
{
TInsuranceAreaRes
res
=
tInsuranceAreaResService
.
getOne
(
Wrappers
.<
TInsuranceAreaRes
>
query
().
lambda
()
.
eq
(
TInsuranceAreaRes:
:
getProvince
,
areaRes
.
getProvince
())
.
eq
(
TInsuranceAreaRes:
:
getCity
,
areaRes
.
getCity
())
.
eq
(
TInsuranceAreaRes:
:
getUserId
,
areaRes
.
getUserId
())
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
TInsuranceAreaRes
res
=
null
;
if
(
Common
.
isEmpty
(
areaRes
.
getCity
())){
res
=
tInsuranceAreaResService
.
getOne
(
Wrappers
.<
TInsuranceAreaRes
>
query
().
lambda
()
.
eq
(
TInsuranceAreaRes:
:
getProvince
,
areaRes
.
getProvince
())
.
isNull
(
TInsuranceAreaRes:
:
getCity
)
.
eq
(
TInsuranceAreaRes:
:
getUserId
,
areaRes
.
getUserId
())
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
}
else
{
res
=
tInsuranceAreaResService
.
getOne
(
Wrappers
.<
TInsuranceAreaRes
>
query
().
lambda
()
.
eq
(
TInsuranceAreaRes:
:
getProvince
,
areaRes
.
getProvince
())
.
eq
(
TInsuranceAreaRes:
:
getCity
,
areaRes
.
getCity
())
.
eq
(
TInsuranceAreaRes:
:
getUserId
,
areaRes
.
getUserId
())
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
}
if
(
Common
.
isNotNull
(
res
)){
return
R
.
failed
(
"已存在对应审核人及地市配置!"
);
}
...
...
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