Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
707efc83
Commit
707efc83
authored
Sep 26, 2018
by
frank.xa.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed db sql error
parent
a7e0ea48
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
TaxRuleSettingMapper.java
.../main/java/pwc/taxtech/atms/dao/TaxRuleSettingMapper.java
+1
-1
UserMapper.java
atms-dao/src/main/java/pwc/taxtech/atms/dao/UserMapper.java
+9
-8
UserOrganizationRoleMapper.java
...java/pwc/taxtech/atms/dao/UserOrganizationRoleMapper.java
+1
-1
No files found.
atms-dao/src/main/java/pwc/taxtech/atms/dao/TaxRuleSettingMapper.java
View file @
707efc83
...
...
@@ -111,7 +111,7 @@ public interface TaxRuleSettingMapper extends MyMapper {
*/
int
updateByPrimaryKey
(
TaxRuleSetting
record
);
@Select
(
"SELECT TRS.GROUP_NAME,TRS.ID,TRS.IS_DEFAULT,TRS.NAME,TRS.TAX_BASE,TRS.TAX_RATE*100 AS TAX_RATE,TRSO.ORGANZATION_ID"
@Select
(
"SELECT TRS.GROUP_NAME,TRS.ID,TRS.IS_DEFAULT,TRS.NAME,TRS.TAX_BASE,TRS.TAX_RATE*100 AS TAX_RATE,TRSO.ORGAN
I
ZATION_ID"
+
" FROM TAX_RULE_SETTING TRS "
+
"LEFT JOIN TAX_RULE_SETTING_ORGANIZATION TRSO ON TRS.ID=TRSO.TAX_SETTING_ID"
)
List
<
TaxRuleSettingDto
>
GetTaxRuleSetting
();
...
...
atms-dao/src/main/java/pwc/taxtech/atms/dao/UserMapper.java
View file @
707efc83
...
...
@@ -144,23 +144,23 @@ public interface UserMapper extends MyMapper {
@Select
(
"select u.USER_NAME as UserName, o.id as Organization_ID, o.Name as OrganizationName, "
+
"u.EMAIL as Email, u.STATUS as Status, u.ATTEMPT_TIMES as AttemptTimes, u.CREATE_TIME as CreateTime, "
+
"u.EXPIRATION_DATE as ExpirationDate, u.IS_ADMIN as IsAdmin, u.ID as id, u.LOCKED_TIME as LockedTime, "
+
"u.LOGIN_TYPE as LoginType, u.PASSWORD as Password, u.PASSWORD_UPDATE
TIME as Password_UpdateTime, u.UPDATE_TIME as UpdateTime from USER as u
"
+
"left join ORGANIZATION
as
o on u.ORGANIZATIONID = o.id "
+
"u.LOGIN_TYPE as LoginType, u.PASSWORD as Password, u.PASSWORD_UPDATE
_TIME as Password_UpdateTime, u.UPDATE_TIME as UpdateTime from \"USER\"
"
+
"left join ORGANIZATION o on u.ORGANIZATIONID = o.id "
+
"where u.ID = #{userId}"
)
List
<
UserDto
>
selectUserWithOrgInfoById
(
@Param
(
value
=
"userId"
)
String
userId
);
@Select
(
"select R.ID AS id, R.NAME AS name FROM USER_ROLE
AS
U "
+
"JOIN ROLE
AS
R ON U.ROLE_ID = R.ID "
@Select
(
"select R.ID AS id, R.NAME AS name FROM USER_ROLE U "
+
"JOIN ROLE R ON U.ROLE_ID = R.ID "
+
"WHERE U.USER_ID = #{userId}"
)
List
<
RoleInfo
>
selectUserRoleInfoById
(
@Param
(
value
=
"userId"
)
String
userId
);
@Select
(
"select udv.ROLE_ID as roleID, r.NAME as roleName, udv.USER_DIMENSION_VALUE_ID as id "
+
"FROM USER_DIMENSION_VALUE_ROLE
AS
UDV "
+
"JOIN ROLE
AS
R ON UDV.ROLE_ID = R.ID"
)
+
"FROM USER_DIMENSION_VALUE_ROLE UDV "
+
"JOIN ROLE R ON UDV.ROLE_ID = R.ID"
)
List
<
UserOrgRoleDto
>
selectUserDimensionValueRole
();
@Select
(
"select q.ROLE_ID as roleID, r.NAME as roleName, q.USER_ORGANIZATION_ID as id "
+
"from USER_ORGANIZATION_ROLE
as
q "
+
"join ROLE
as r on q.ROLE
ID = r.id"
)
+
"from USER_ORGANIZATION_ROLE q "
+
"join ROLE
r on q.ROLE_
ID = r.id"
)
List
<
UserOrgRoleDto
>
selectUserOrganizationRole
();
}
\ No newline at end of file
atms-dao/src/main/java/pwc/taxtech/atms/dao/UserOrganizationRoleMapper.java
View file @
707efc83
...
...
@@ -111,7 +111,7 @@ public interface UserOrganizationRoleMapper extends MyMapper {
List
<
UserOrgRoleDto
>
getUserOrganizationRoleList
();
@Select
(
"SELECT USER_ORGANIZATION.USERID FROM USER_ORGANIZATION_ROLE "
@Select
(
"SELECT USER_ORGANIZATION.USER
_
ID FROM USER_ORGANIZATION_ROLE "
+
"JOIN USER_ORGANIZATION ON USER_ORGANIZATION_ROLE.USER_ORGANIZATION_ID = USER_ORGANIZATION.ID "
+
"WHERE USER_ORGANIZATION_ROLE.ROLEID=#{roleId}"
)
List
<
String
>
getUserIdByUserOrganizationRole
(
@Param
(
"roleId"
)
String
roleId
);
...
...
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