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
e50ed5c9
Commit
e50ed5c9
authored
Aug 28, 2023
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EKP 权限-- 配置文件
parent
abe0b70b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
12 deletions
+18
-12
SalaryProveController.java
...us/v1/yifu/archives/controller/SalaryProveController.java
+2
-2
TProveApplyService.java
...oud/plus/v1/yifu/archives/service/TProveApplyService.java
+3
-2
TProveApplyServiceImpl.java
...v1/yifu/archives/service/impl/TProveApplyServiceImpl.java
+12
-7
TCompanyInfoMapper.xml
...ives-biz/src/main/resources/mapper/TCompanyInfoMapper.xml
+1
-1
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/SalaryProveController.java
View file @
e50ed5c9
...
@@ -216,7 +216,7 @@ public class SalaryProveController {
...
@@ -216,7 +216,7 @@ public class SalaryProveController {
return
R
.
failed
(
"参数出错!"
);
return
R
.
failed
(
"参数出错!"
);
}
}
// 存储最近一次选择的档案信息
// 存储最近一次选择的档案信息
tProveApplyService
.
setCompanyRedisInfo
(
record
.
getUnitName
());
tProveApplyService
.
setCompanyRedisInfo
(
record
.
getUnitName
()
,
record
.
getUnitAddr
(),
record
.
getPhone
()
);
return
R
.
ok
(
record
);
return
R
.
ok
(
record
);
}
}
...
@@ -436,7 +436,7 @@ public class SalaryProveController {
...
@@ -436,7 +436,7 @@ public class SalaryProveController {
* @date 2023-08-23 17:31:05
* @date 2023-08-23 17:31:05
**/
**/
@GetMapping
(
"/getLastCompanyName"
)
@GetMapping
(
"/getLastCompanyName"
)
public
R
<
String
>
getLastCompanyName
()
{
public
R
<
TCompanyInfo
>
getLastCompanyName
()
{
return
tProveApplyService
.
getLastCompanyName
();
return
tProveApplyService
.
getLastCompanyName
();
}
}
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TProveApplyService.java
View file @
e50ed5c9
...
@@ -3,6 +3,7 @@ package com.yifu.cloud.plus.v1.yifu.archives.service;
...
@@ -3,6 +3,7 @@ package com.yifu.cloud.plus.v1.yifu.archives.service;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TCompanyInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TProveApply
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TProveApply
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
...
@@ -23,7 +24,7 @@ public interface TProveApplyService extends IService<TProveApply> {
...
@@ -23,7 +24,7 @@ public interface TProveApplyService extends IService<TProveApply> {
R
<
String
>
validSave
(
TProveApply
proveApply
,
String
[]
attaIdArray
);
R
<
String
>
validSave
(
TProveApply
proveApply
,
String
[]
attaIdArray
);
R
<
String
>
getLastCompanyName
();
R
<
TCompanyInfo
>
getLastCompanyName
();
void
setCompanyRedisInfo
(
String
unitName
);
void
setCompanyRedisInfo
(
String
unitName
,
String
unitAddr
,
String
phone
);
}
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TProveApplyServiceImpl.java
View file @
e50ed5c9
...
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
...
@@ -5,6 +5,7 @@ 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.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TAttaInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TAttaInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TCompanyInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TProveApply
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TProveApply
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.TProveApplyMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.mapper.TProveApplyMapper
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TAttaInfoService
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TAttaInfoService
;
...
@@ -83,25 +84,29 @@ public class TProveApplyServiceImpl extends ServiceImpl<TProveApplyMapper, TProv
...
@@ -83,25 +84,29 @@ public class TProveApplyServiceImpl extends ServiceImpl<TProveApplyMapper, TProv
}
}
@Override
@Override
public
R
<
String
>
getLastCompanyName
()
{
public
R
<
TCompanyInfo
>
getLastCompanyName
()
{
YifuUser
user
=
SecurityUtils
.
getUser
();
YifuUser
user
=
SecurityUtils
.
getUser
();
if
(
Common
.
isEmpty
(
user
)){
if
(
Common
.
isEmpty
(
user
)){
return
R
.
failed
(
CommonConstants
.
USER_FAIL
);
return
R
.
failed
(
CommonConstants
.
USER_FAIL
);
}
}
String
userKey
=
CacheConstants
.
WXHR_LAST_SELECT_COMPANY_NAME
+
"_"
+
user
.
getId
();
String
userKey
=
CacheConstants
.
WXHR_LAST_SELECT_COMPANY_NAME
+
"_"
+
user
.
getId
();
Object
companyName
=
redisUtil
.
get
(
userKey
);
Object
info
=
redisUtil
.
get
(
userKey
);
if
(
Common
.
isEmpty
(
companyName
)){
if
(
Common
.
isEmpty
(
info
)){
return
R
.
ok
(
CommonConstants
.
EMPTY_STRING
);
return
R
.
ok
(
null
);
}
}
return
R
.
ok
(
companyName
.
toString
()
);
return
R
.
ok
(
(
TCompanyInfo
)
info
);
}
}
@Override
@Override
public
void
setCompanyRedisInfo
(
String
unitName
)
{
public
void
setCompanyRedisInfo
(
String
unitName
,
String
unitAddr
,
String
phone
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
YifuUser
user
=
SecurityUtils
.
getUser
();
if
(!
Common
.
isEmpty
(
user
)){
if
(!
Common
.
isEmpty
(
user
)){
String
userKey
=
CacheConstants
.
WXHR_LAST_SELECT_COMPANY_NAME
+
"_"
+
user
.
getId
();
String
userKey
=
CacheConstants
.
WXHR_LAST_SELECT_COMPANY_NAME
+
"_"
+
user
.
getId
();
redisUtil
.
set
(
userKey
,
unitName
);
TCompanyInfo
info
=
new
TCompanyInfo
();
info
.
setCompanyName
(
unitName
);
info
.
setCompanyTel
(
phone
);
info
.
setCompanyAddress
(
unitAddr
);
redisUtil
.
set
(
userKey
,
info
);
}
}
}
}
}
}
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TCompanyInfoMapper.xml
View file @
e50ed5c9
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
AND a.id = #{tCompanyInfo.id}
AND a.id = #{tCompanyInfo.id}
</if>
</if>
<if
test=
"tCompanyInfo.companyName != null and tCompanyInfo.companyName.trim() != ''"
>
<if
test=
"tCompanyInfo.companyName != null and tCompanyInfo.companyName.trim() != ''"
>
AND a.COMPANY_NAME
= #{tCompanyInfo.companyName}
AND a.COMPANY_NAME
like CONCAT('%',#{tCompanyInfo.companyName},'%')
</if>
</if>
<if
test=
"tCompanyInfo.companyAddress != null and tCompanyInfo.companyAddress.trim() != ''"
>
<if
test=
"tCompanyInfo.companyAddress != null and tCompanyInfo.companyAddress.trim() != ''"
>
AND a.COMPANY_ADDRESS = #{tCompanyInfo.companyAddress}
AND a.COMPANY_ADDRESS = #{tCompanyInfo.companyAddress}
...
...
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