Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
c8ad6cff
Commit
c8ad6cff
authored
Jun 13, 2022
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8小时后台--
增加一个可以设置审批人的权限
parent
cf8a390b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
src/main/java/cn/timer/api/controller/LoginController.java
+10
-0
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
+4
-4
No files found.
src/main/java/cn/timer/api/controller/LoginController.java
View file @
c8ad6cff
...
...
@@ -12,6 +12,7 @@ import javax.servlet.http.HttpServletRequest;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpSession
;
import
com.beust.jcommander.internal.Lists
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
...
...
@@ -853,6 +854,15 @@ public class LoginController {
QyzxAdminColour
cdys
=
QyzxAdminColour
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
QyzxAdminColour
>().
lambda
().
eq
(
QyzxAdminColour:
:
getOrgCode
,
qyzxEmpLogin1
.
getOrgId
()));
qyzxEmpLogin1
.
setZdyys
(
cdys
);
/*不知为何去掉了权限所以只能写死权限,设置审核人的权限路径为/ApprovalSummaryshenpi020102*/
ZzglAuth
zzglAuth
=
ZzglAuth
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
ZzglAuth
>().
lambda
().
eq
(
ZzglAuth:
:
getMenuId
,
"/ApprovalSummaryshenpi020102"
)
.
eq
(
ZzglAuth:
:
getOrgCode
,
qyzxEmpLogin1
.
getOrgId
()).
eq
(
ZzglAuth:
:
getBmgwId
,
qyzxEmpLogin1
.
getYgglMainEmp
().
getBmgwId
()));
if
(
zzglAuth
!=
null
){
List
menus
=
Lists
.
newArrayList
();
menus
.
add
(
zzglAuth
.
getMenuId
());
qyzxEmpLogin1
.
setMenus
(
menus
);
}
// 可操作企业
// 需要更新最后一次登陆信息
...
...
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
View file @
c8ad6cff
...
...
@@ -103,7 +103,7 @@ public class InsureContorll {
}
@PostMapping
(
value
=
"/insured_add"
)
@ApiOperation
(
value
=
"1.投保申请"
,
httpMethod
=
"P
ost
"
,
notes
=
"投保申请"
)
@ApiOperation
(
value
=
"1.投保申请"
,
httpMethod
=
"P
OST
"
,
notes
=
"投保申请"
)
@ApiOperationSupport
(
order
=
2
)
public
Result
<
Object
>
insured_add
(
@CurrentUser
UserBean
userBean
,
@RequestParam
(
required
=
true
)
String
url
)
{
QyzxEntInfoM
qyzxEntInfoM
=
QyzxEntInfoM
.
builder
().
id
(
userBean
.
getOrgCode
()).
build
().
selectById
();
// 企业信息
...
...
@@ -212,7 +212,7 @@ public class InsureContorll {
@PostMapping
(
value
=
"/file_upload"
)
@ApiOperation
(
value
=
"3.投保上传文件"
,
httpMethod
=
"P
ost
"
,
notes
=
"上传文件"
)
@ApiOperation
(
value
=
"3.投保上传文件"
,
httpMethod
=
"P
OST
"
,
notes
=
"上传文件"
)
@ApiOperationSupport
(
order
=
2
)
public
Result
<
Object
>
fileUpload
(
@CurrentUser
UserBean
userBean
,
@RequestParam
(
required
=
true
)
MultipartFile
file
)
{
if
(
file
==
null
)
{
...
...
@@ -238,7 +238,7 @@ public class InsureContorll {
return
ResultUtil
.
data
(
message
(
data
));
};
@PostMapping
(
value
=
"/file_upload2"
)
@ApiOperation
(
value
=
"3.保全上传文件"
,
httpMethod
=
"P
ost
"
,
notes
=
"上传文件"
)
@ApiOperation
(
value
=
"3.保全上传文件"
,
httpMethod
=
"P
OST
"
,
notes
=
"上传文件"
)
@ApiOperationSupport
(
order
=
2
)
public
Result
<
Object
>
fileUpload2
(
@CurrentUser
UserBean
userBean
,
@RequestParam
(
required
=
true
)
MultipartFile
file
)
{
if
(
file
==
null
)
{
...
...
@@ -285,7 +285,7 @@ public class InsureContorll {
}
@GetMapping
(
value
=
"/downExcel"
)
@ApiOperation
(
value
=
"2.下载投保文件"
,
httpMethod
=
"G
et
"
,
notes
=
"下载投保文件"
)
@ApiOperation
(
value
=
"2.下载投保文件"
,
httpMethod
=
"G
ET
"
,
notes
=
"下载投保文件"
)
@ApiOperationSupport
(
order
=
2
)
public
void
downExcel
(
@CurrentUser
UserBean
userBean
,
HttpServletRequest
request
,
HttpServletResponse
resp
){
LocalDate
localDate
=
LocalDate
.
now
();
...
...
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