Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1-office-web-sit
Commits
88f14de3
Commit
88f14de3
authored
Dec 26, 2021
by
唐功亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【新增】 用户查询历史文件判断接口
parent
37ca461b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
0 deletions
+44
-0
TycpdmFirmController.java
...ffice/modules/manage/controller/TycpdmFirmController.java
+10
-0
TycpdmFirmDao.java
...main/java/io/office/modules/manage/dao/TycpdmFirmDao.java
+1
-0
TycpdmFirmService.java
...a/io/office/modules/manage/service/TycpdmFirmService.java
+2
-0
TycpdmFirmServiceImpl.java
...ce/modules/manage/service/impl/TycpdmFirmServiceImpl.java
+31
-0
No files found.
src/main/java/io/office/modules/manage/controller/TycpdmFirmController.java
View file @
88f14de3
...
@@ -260,6 +260,16 @@ public class TycpdmFirmController extends AbstractController {
...
@@ -260,6 +260,16 @@ public class TycpdmFirmController extends AbstractController {
return
R
.
ok
();
return
R
.
ok
();
}
}
/**
* 返回文件 url
*/
@RequestMapping
(
"/authApi/returnFileUrl"
)
public
R
returnFileUrl
(
@RequestBody
Map
name
){
String
url
=
tycpdmFirmService
.
returnFileUrl
(
name
);
return
R
.
ok
().
put
(
"data"
,
url
);
}
/**
/**
* 切换分中心管理员
* 切换分中心管理员
*/
*/
...
...
src/main/java/io/office/modules/manage/dao/TycpdmFirmDao.java
View file @
88f14de3
...
@@ -42,4 +42,5 @@ public interface TycpdmFirmDao extends BaseMapper<TycpdmFirmEntity> {
...
@@ -42,4 +42,5 @@ public interface TycpdmFirmDao extends BaseMapper<TycpdmFirmEntity> {
@Update
(
"UPDATE tycpdm_firm SET branchCode = #{branchCode} WHERE f_id = #{id}"
)
@Update
(
"UPDATE tycpdm_firm SET branchCode = #{branchCode} WHERE f_id = #{id}"
)
void
updateByIdBranchCode
(
@Param
(
"id"
)
Integer
id
,
@Param
(
"branchCode"
)
Integer
branchCode
);
void
updateByIdBranchCode
(
@Param
(
"id"
)
Integer
id
,
@Param
(
"branchCode"
)
Integer
branchCode
);
String
returnFileUrl
(
Map
name
);
}
}
src/main/java/io/office/modules/manage/service/TycpdmFirmService.java
View file @
88f14de3
...
@@ -53,5 +53,7 @@ public interface TycpdmFirmService extends IService<TycpdmFirmEntity> {
...
@@ -53,5 +53,7 @@ public interface TycpdmFirmService extends IService<TycpdmFirmEntity> {
String
redirectGDSGLN
(
MemberEntity
memberUser
);
String
redirectGDSGLN
(
MemberEntity
memberUser
);
String
redirectBusinessHall
(
Map
map
,
MemberEntity
memberUser
);
String
redirectBusinessHall
(
Map
map
,
MemberEntity
memberUser
);
String
returnFileUrl
(
Map
name
);
}
}
src/main/java/io/office/modules/manage/service/impl/TycpdmFirmServiceImpl.java
View file @
88f14de3
...
@@ -441,6 +441,36 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
...
@@ -441,6 +441,36 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
}
}
}
}
@Override
public
String
returnFileUrl
(
Map
params
)
{
Integer
status
=
Integer
.
valueOf
(
String
.
valueOf
(
params
.
get
(
"status"
)));
//1.首次 2.变更
Integer
fileType
=
Integer
.
valueOf
(
String
.
valueOf
(
params
.
get
(
"fileType"
)));
//1.第一步文件 2.第二步文件
String
id
=
String
.
valueOf
(
params
.
get
(
"id"
));
//各个表的主键
String
filePath
=
""
;
if
(
status
==
1
){
TycpdmFirmEntity
tycpdmFirmEntity
=
tycpdmFirmDao
.
selectById
(
id
);
if
(
fileType
==
1
){
filePath
=
tycpdmFirmEntity
.
getFirmbusinesslicensefile
();
}
else
if
(
fileType
==
2
){
filePath
=
tycpdmFirmEntity
.
getFirmArchivesfile
();
}
}
else
if
(
status
==
2
){
TycpdmFirmChangeEntity
tycpdmFirmChangeEntity
=
tycpdmFirmChangeDao
.
selectById
(
id
);
if
(
fileType
==
1
){
filePath
=
tycpdmFirmChangeEntity
.
getFirmbusinesslicensefile
();
}
else
if
(
fileType
==
2
){
filePath
=
tycpdmFirmChangeEntity
.
getFirmArchivesfile
();
}
}
File
file
=
new
File
(
filePath
);
if
(!
file
.
exists
()){
return
"不存在"
;
}
return
"存在"
;
}
@Override
@Override
public
void
updateSystem
(
Map
<
String
,
Object
>
params
)
{
public
void
updateSystem
(
Map
<
String
,
Object
>
params
)
{
Integer
id
=
Integer
.
valueOf
(
String
.
valueOf
(
params
.
get
(
"id"
)));
//id为 各个表得ID 变更表和主表
Integer
id
=
Integer
.
valueOf
(
String
.
valueOf
(
params
.
get
(
"id"
)));
//id为 各个表得ID 变更表和主表
...
@@ -537,6 +567,7 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
...
@@ -537,6 +567,7 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
}
}
/**
/**
* 验证手机号 由于号码段不断的更新,只需要判断手机号有11位,并且全是数字以及1开头等
* 验证手机号 由于号码段不断的更新,只需要判断手机号有11位,并且全是数字以及1开头等
* @param phoneNumber 手机号码
* @param phoneNumber 手机号码
...
...
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