Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
entrance_api
Project
Project
Details
Activity
Releases
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
王琮
entrance_api
Commits
62f32768
Commit
62f32768
authored
Dec 08, 2022
by
王琮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改获取二维码以及撤销
parent
c8be5624
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
9 deletions
+16
-9
SysUserController.java
...org/rcisoft/sys/sysuser/controller/SysUserController.java
+9
-7
VisitInfomationServiceImpl.java
...ft/sys/visit/service/impl/VisitInfomationServiceImpl.java
+3
-0
UserDto.java
src/main/java/org/rcisoft/tencent/dto/UserDto.java
+2
-1
SysUserRepositorys.xml
src/main/resources/mapper/SysUserRepositorys.xml
+2
-1
No files found.
src/main/java/org/rcisoft/sys/sysuser/controller/SysUserController.java
View file @
62f32768
...
...
@@ -14,7 +14,7 @@ import org.rcisoft.core.operlog.enums.CyLogTypeEnum;
import
org.rcisoft.core.result.enums.CyReSysExcEnum
;
import
org.rcisoft.core.util.CyEpExcelUtil
;
import
org.rcisoft.core.util.CyQrCodeUtil
;
import
org.rcisoft.
sys.sysuser.dao.SysUserRepositorys
;
import
org.rcisoft.
integration.jieLink.service.IJieLinkService
;
import
org.rcisoft.sys.sysuser.dto.ExportUserDTO
;
import
org.rcisoft.sys.sysuser.entity.SysUser
;
import
org.springframework.validation.BindingResult
;
...
...
@@ -36,9 +36,6 @@ import org.springframework.web.multipart.MultipartFile;
import
java.awt.image.BufferedImage
;
import
java.io.ByteArrayOutputStream
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
/**
...
...
@@ -52,6 +49,9 @@ public class SysUserController extends CyPaginationController<SysUser> {
@Autowired
private
SysUserService
sysUserServiceImpl
;
@Autowired
private
IJieLinkService
jieLinkServiceImpl
;
//@PreAuthorize("@cyPerm.hasPerm('sys:user:add')")
@CyOpeLogAnno
(
title
=
"system-用户表管理-新增用户表"
,
businessType
=
CyLogTypeEnum
.
INSERT
)
@ApiOperation
(
value
=
"添加用户表"
,
notes
=
"添加用户表"
)
...
...
@@ -221,14 +221,16 @@ public class SysUserController extends CyPaginationController<SysUser> {
* 获取 二维码接口地址
* 配置文件需要 配置 前缀
*
* @param
business
Id
* @param
person
Id
* @return
* @deprecated 前端生成 二维码
* 后端返回 base64
*/
@GetMapping
(
"/getTradeScan/{
business
Id:\\w+}"
)
@GetMapping
(
"/getTradeScan/{
person
Id:\\w+}"
)
@ResponseBody
public
CyResult
getTradeScan
(
@PathVariable
Integer
businessId
)
{
public
CyResult
getTradeScan
(
@PathVariable
String
personId
)
{
// 根据用户id获取personId
// String codeUrl = jieLinkServiceImpl.pullVisitUserQrCode(personId);
String
codeUrl
=
"sysUserServiceImpl.findById(businessId).toString()"
;
String
png_base64
=
null
;
//返回二维码 并且构造支付包web支付对象
...
...
src/main/java/org/rcisoft/sys/visit/service/impl/VisitInfomationServiceImpl.java
View file @
62f32768
...
...
@@ -183,7 +183,10 @@ public class VisitInfomationServiceImpl extends ServiceImpl<VisitInfomationRepos
*/
public
CyPersistModel
forbidden
(
VisitInfoMation
visitInfomation
){
visitInfomation
.
setVisitStatus
(
"2"
);
// 禁用邀访信息
int
line
=
baseMapper
.
updateById
(
visitInfomation
);
// 撤销邀访
//jieLinkService.cancelVisitorData(null, visitInfomation.getItemId());
return
new
CyPersistModel
(
line
);
}
...
...
src/main/java/org/rcisoft/tencent/dto/UserDto.java
View file @
62f32768
...
...
@@ -11,7 +11,8 @@ public class UserDto extends SysUserRbac {
private
String
positionLabel
;
@Transient
private
String
position
;
@Transient
private
String
personId
;
//黑名单状态(0不存在1存在)
@Transient
private
String
blacklistFlag
;
...
...
src/main/resources/mapper/SysUserRepositorys.xml
View file @
62f32768
...
...
@@ -8,7 +8,6 @@
<result
column=
"person_id"
jdbcType=
"VARCHAR"
property=
"personId"
/>
<result
column=
"nick_name"
jdbcType=
"VARCHAR"
property=
"nickName"
/>
<result
column=
"user_type"
jdbcType=
"VARCHAR"
property=
"userType"
/>
<result
column=
"person_id"
jdbcType=
"VARCHAR"
property=
"personId"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"email"
jdbcType=
"VARCHAR"
property=
"email"
/>
<result
column=
"phone"
jdbcType=
"VARCHAR"
property=
"phone"
/>
...
...
@@ -45,6 +44,7 @@
<result
column=
"position"
jdbcType=
"VARCHAR"
property=
"position"
/>
<result
column=
"position_label"
jdbcType=
"VARCHAR"
property=
"positionLabel"
/>
<result
column=
"username"
jdbcType=
"VARCHAR"
property=
"username"
/>
<result
column=
"person_id"
jdbcType=
"VARCHAR"
property=
"personId"
/>
<result
column=
"password"
jdbcType=
"VARCHAR"
property=
"password"
/>
<result
column=
"nick_name"
jdbcType=
"VARCHAR"
property=
"nickName"
/>
<result
column=
"user_type"
jdbcType=
"VARCHAR"
property=
"userType"
/>
...
...
@@ -79,6 +79,7 @@
<result
column=
"position"
jdbcType=
"VARCHAR"
property=
"position"
/>
<result
column=
"position_label"
jdbcType=
"VARCHAR"
property=
"positionLabel"
/>
<result
column=
"username"
jdbcType=
"VARCHAR"
property=
"username"
/>
<result
column=
"person_id"
jdbcType=
"VARCHAR"
property=
"personId"
/>
<result
column=
"password"
jdbcType=
"VARCHAR"
property=
"password"
/>
<result
column=
"nick_name"
jdbcType=
"VARCHAR"
property=
"nickName"
/>
<result
column=
"user_type"
jdbcType=
"VARCHAR"
property=
"userType"
/>
...
...
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