Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
H
Hgs
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
徐州
Hgs
Commits
2b5256cb
Commit
2b5256cb
authored
Jun 24, 2022
by
徐州
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1,新增查詢城市的員工
2,權限選擇改爲單選
parent
a94ec1e6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
22 deletions
+55
-22
authorize.jsp
...eb/src/main/webapp/WEB-INF/views/user/pages/authorize.jsp
+18
-12
IUser.java
...rc/main/java/com/house365/ws/interfaces/server/IUser.java
+13
-2
UserMapper.java
.../src/main/java/com/house365/ws/dao/mapper/UserMapper.java
+4
-2
UserImpl.java
...c/main/java/com/house365/ws/interfaces/impl/UserImpl.java
+15
-6
UserMapper.xml
...-ws/src/main/resources/development/mybatis/UserMapper.xml
+5
-0
No files found.
house365-hgs-web/src/main/webapp/WEB-INF/views/user/pages/authorize.jsp
View file @
2b5256cb
...
...
@@ -87,21 +87,27 @@
//单选
function
checkMember
(
btn
)
{
if
(
btn
.
checked
)
{
var
checkAll
=
true
;
if
(
btn
.
checked
)
{
for
(
i
=
0
;
i
<
document
.
all
(
"memberCheck"
).
length
;
i
++
)
{
if
(
document
.
all
(
"memberCheck"
)[
i
].
checked
==
false
)
{
checkAll
=
false
;
}
}
if
(
checkAll
)
{
document
.
getElementById
(
"memberCheckAll"
).
checked
=
true
;
document
.
all
(
"memberCheck"
)[
i
].
checked
=
false
;
}
btn
.
checked
=
true
;
}
else
{
document
.
getElementById
(
"memberCheckAll"
).
checked
=
false
;
}
// if (btn.checked) {
// var checkAll = true;
// for (i = 0; i
<
document
.
all
(
"memberCheck"
).
length
;
i
++
)
{
// if (document.all("memberCheck")[i].checked == false) {
// checkAll = false;
// }
// }
//
// if (checkAll) {
// document.getElementById("memberCheckAll").checked = true;
// }
// }
// else {
// document.getElementById("memberCheckAll").checked = false;
// }
}
var
authorizeById
=
function
(
selectedId
)
{
...
...
house365-hgs-ws-interfaces/src/main/java/com/house365/ws/interfaces/server/IUser.java
View file @
2b5256cb
...
...
@@ -134,8 +134,6 @@ public interface IUser extends IService {
List
<
DutyStaffEntity
>
getOndutyById
(
Integer
uid
);
List
<
UserEntity
>
getDutyUserByCity
(
String
cityCodes
);
List
<
UserEntity
>
getManagerByPid
(
Integer
uid
,
String
managername
);
UserEntity
getLimitLoginById
(
String
name
);
...
...
@@ -189,4 +187,17 @@ public interface IUser extends IService {
String
getCityById
(
String
userId
);
/**
* 查询城市值班人员
* @param cityCode nj
* @return
*/
List
<
UserEntity
>
getDutyUserByCity
(
String
cityCode
);
/**
* 查询城市全部可用员工
* @param cityCode nj
* @return
*/
List
<
UserEntity
>
getUserByCity
(
String
cityCode
);
}
house365-hgs-ws/src/main/java/com/house365/ws/dao/mapper/UserMapper.java
View file @
2b5256cb
...
...
@@ -25,8 +25,6 @@ public interface UserMapper {
List
<
DutyStaffEntity
>
getStaffDutyList
();
List
<
UserEntity
>
getDutyUserByCity
(
Map
<
String
,
Object
>
map
);
UserEntity
getLimitLoginById
(
String
name
);
void
updateDutyStaff
(
DutyStaffEntity
staff
);
...
...
@@ -55,4 +53,8 @@ public interface UserMapper {
String
getCityById
(
String
userId
);
List
<
UserEntity
>
getDutyUserByCity
(
Map
<
String
,
Object
>
map
);
List
<
UserEntity
>
getUserByCity
(
Map
<
String
,
Object
>
map
);
}
house365-hgs-ws/src/main/java/com/house365/ws/interfaces/impl/UserImpl.java
View file @
2b5256cb
...
...
@@ -131,12 +131,7 @@ public class UserImpl implements IUser {
return
userMapper
.
getOndutyById
(
uid
);
}
@Override
public
List
<
UserEntity
>
getDutyUserByCity
(
String
cityCode
)
{
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
param
.
put
(
"cityCode"
,
cityCode
);
return
userMapper
.
getDutyUserByCity
(
param
);
}
@Override
public
List
<
LabelEntity
>
getCustomerLabelById
(
LabelEntity
labelentity
)
{
...
...
@@ -1147,4 +1142,18 @@ public class UserImpl implements IUser {
@Override
public
void
commit
()
{
}
@Override
public
List
<
UserEntity
>
getDutyUserByCity
(
String
cityCode
)
{
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
param
.
put
(
"cityCode"
,
cityCode
);
return
userMapper
.
getDutyUserByCity
(
param
);
}
@Override
public
List
<
UserEntity
>
getUserByCity
(
String
cityCode
)
{
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
param
.
put
(
"cityCode"
,
cityCode
);
return
userMapper
.
getUserByCity
(
param
);
}
}
house365-hgs-ws/src/main/resources/development/mybatis/UserMapper.xml
View file @
2b5256cb
...
...
@@ -196,6 +196,11 @@
where a.`deptUrlPath` REGEXP CONCAT('^', (select urlPath from `department` where `descripition` = #{cityCode})) order by 'b.order'
</select>
<select
id=
"getUserByCity"
resultMap=
"infoMap"
>
select a.id,a.realName from user a where a.enabled=1 and
a.`deptUrlPath` REGEXP CONCAT('^', (select urlPath from `department` where `descripition` = #{cityCode}))
</select>
<select
id=
"getDutyByCondition"
resultMap=
"infoMap3"
parameterType=
"map"
>
select id,name,userId,onduty
FROM duty_staff
...
...
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