Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
car-database-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
中汽研标准应用数据库
car-database-api
Commits
a661e4d5
Commit
a661e4d5
authored
Sep 11, 2024
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车企和检测机构
parent
c3b8e7fc
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
TTestPlanRecordServiceImpl.java
...va/com/ruoyi/service/impl/TTestPlanRecordServiceImpl.java
+3
-1
application-druid.yml
ruoyi-admin/src/main/resources/application-druid.yml
+1
-1
SysUser.java
...ain/java/com/ruoyi/common/core/domain/entity/SysUser.java
+3
-0
SysUserMapper.xml
...system/src/main/resources/mapper/system/SysUserMapper.xml
+2
-1
No files found.
quality-review/src/main/java/com/ruoyi/service/impl/TTestPlanRecordServiceImpl.java
View file @
a661e4d5
...
@@ -2,6 +2,7 @@ package com.ruoyi.service.impl;
...
@@ -2,6 +2,7 @@ package com.ruoyi.service.impl;
import
com.alibaba.fastjson2.JSONObject
;
import
com.alibaba.fastjson2.JSONObject
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.ruoyi.common.core.domain.entity.SysUser
;
import
com.ruoyi.common.utils.SecurityUtils
;
import
com.ruoyi.common.utils.SecurityUtils
;
import
com.ruoyi.domain.TTestPlanRecord
;
import
com.ruoyi.domain.TTestPlanRecord
;
import
com.ruoyi.domain.vo.ItemsByUseCaseVO
;
import
com.ruoyi.domain.vo.ItemsByUseCaseVO
;
...
@@ -45,7 +46,8 @@ public class TTestPlanRecordServiceImpl extends ServiceImpl<TTestPlanRecordMappe
...
@@ -45,7 +46,8 @@ public class TTestPlanRecordServiceImpl extends ServiceImpl<TTestPlanRecordMappe
@Override
@Override
public
List
<
TTestPlanRecord
>
selectTestPlanRecordPage
(
TestPlanRecordPageRequest
testPlanRecordPageRequest
){
public
List
<
TTestPlanRecord
>
selectTestPlanRecordPage
(
TestPlanRecordPageRequest
testPlanRecordPageRequest
){
if
(
SecurityUtils
.
getLoginUser
().
getUser
().
getRoleId
().
equals
(
114
)){
Long
roleId
=
SecurityUtils
.
getLoginUser
().
getUser
().
getRoleId
();
if
(
roleId
.
equals
(
113
)){
testPlanRecordPageRequest
.
setTestOrganizationId
(
SecurityUtils
.
getDeptId
());
testPlanRecordPageRequest
.
setTestOrganizationId
(
SecurityUtils
.
getDeptId
());
}
}
return
tTestPlanRecordMapper
.
selectTestPlanRecordPage
(
testPlanRecordPageRequest
);
return
tTestPlanRecordMapper
.
selectTestPlanRecordPage
(
testPlanRecordPageRequest
);
...
...
ruoyi-admin/src/main/resources/application-druid.yml
View file @
a661e4d5
...
@@ -6,7 +6,7 @@ spring:
...
@@ -6,7 +6,7 @@ spring:
druid
:
druid
:
# 主库数据源
# 主库数据源
master
:
master
:
url
:
jdbc:mysql://10
6.3.99.64:20011
/vehicle-quality-review-2?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&sessionVariables=group_concat_max_len=3000
url
:
jdbc:mysql://10
.12.48.76:22030
/vehicle-quality-review-2?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&sessionVariables=group_concat_max_len=3000
username
:
root
username
:
root
password
:
1qaz@WSX
password
:
1qaz@WSX
# 从库数据源
# 从库数据源
...
...
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java
View file @
a661e4d5
...
@@ -90,6 +90,9 @@ public class SysUser extends BaseEntity
...
@@ -90,6 +90,9 @@ public class SysUser extends BaseEntity
/** 角色ID */
/** 角色ID */
private
Long
roleId
;
private
Long
roleId
;
/** 角色 */
private
String
roleKey
;
/** 用户签字图片 */
/** 用户签字图片 */
private
String
signaturePicture
;
private
String
signaturePicture
;
...
...
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
View file @
a661e4d5
...
@@ -23,6 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -23,6 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"roleId"
column=
"role_id"
/>
<result
property=
"signaturePicture"
column=
"signature_picture"
/>
<result
property=
"signaturePicture"
column=
"signature_picture"
/>
<association
property=
"dept"
javaType=
"SysDept"
resultMap=
"deptResult"
/>
<association
property=
"dept"
javaType=
"SysDept"
resultMap=
"deptResult"
/>
<collection
property=
"roles"
javaType=
"java.util.List"
resultMap=
"RoleResult"
/>
<collection
property=
"roles"
javaType=
"java.util.List"
resultMap=
"RoleResult"
/>
...
@@ -50,7 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -50,7 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql
id=
"selectUserVo"
>
<sql
id=
"selectUserVo"
>
select u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, u.signature_picture,
select u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, u.signature_picture,
d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.status as dept_status,
d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.status as dept_status,
r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status
r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status
,r.role_key as roleKey
from sys_user u
from sys_user u
left join sys_dept d on u.dept_id = d.dept_id
left join sys_dept d on u.dept_id = d.dept_id
left join sys_user_role ur on u.user_id = ur.user_id
left join sys_user_role ur on u.user_id = ur.user_id
...
...
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