Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sunac_report
Overview
Overview
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
java-sunac-report
sunac_report
Commits
57181876
Commit
57181876
authored
Jul 26, 2019
by
sunxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人员管理修改区域二级显示
parent
855bc277
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
45 additions
and
12 deletions
+45
-12
workspace.xml
.idea/workspace.xml
+0
-0
ReportController.java
src/main/java/com/ejweb/modules/report/web/ReportController.java
+7
-7
User.java
src/main/java/com/ejweb/modules/sys/entity/User.java
+10
-0
UserDao.xml
src/main/resources/mappings/modules/sys/UserDao.xml
+17
-3
ReportController.class
src/main/webapp/WEB-INF/classes/com/ejweb/modules/report/web/ReportController.class
+0
-0
userForm.jsp
src/main/webapp/WEB-INF/views/modules/sys/userForm.jsp
+1
-1
userList.jsp
src/main/webapp/WEB-INF/views/modules/sys/userList.jsp
+10
-1
report_sunac.war
target/report_sunac.war
+0
-0
ReportController.class
target/report_sunac/WEB-INF/classes/com/ejweb/modules/report/web/ReportController.class
+0
-0
No files found.
.idea/workspace.xml
View file @
57181876
This diff is collapsed.
Click to expand it.
src/main/java/com/ejweb/modules/report/web/ReportController.java
View file @
57181876
...
...
@@ -518,22 +518,22 @@ public class ReportController extends BaseController {
}*/
/*封装拼接移交集团信息*/
String
transferGroup
=
reportEntity
.
getTransferGroup
();
String
transferGroup
=
reportEntity
1
.
getTransferGroup
();
if
(
StringUtils
.
isNoneBlank
(
transferGroup
)){
if
(
"3437402691677202102"
.
equals
(
transferGroup
)){
reportEntity
.
setTransferGroup
(
"集团本部"
);
reportEntity
1
.
setTransferGroup
(
"集团本部"
);
}
else
if
(
"3510129313047280678"
.
equals
(
transferGroup
)){
reportEntity
.
setTransferGroup
(
"区域集团"
);
reportEntity
1
.
setTransferGroup
(
"区域集团"
);
}
else
if
(
"3565898923067676254"
.
equals
(
transferGroup
)){
reportEntity
.
setTransferGroup
(
"服务集团"
);
reportEntity
1
.
setTransferGroup
(
"服务集团"
);
}
else
if
(
"3806696792996264972"
.
equals
(
transferGroup
)){
reportEntity
.
setTransferGroup
(
"文化集团"
);
reportEntity
1
.
setTransferGroup
(
"文化集团"
);
}
else
if
(
"3770618512934949260"
.
equals
(
transferGroup
)){
reportEntity
.
setTransferGroup
(
"文旅集团"
);
reportEntity
1
.
setTransferGroup
(
"文旅集团"
);
}
}
else
{
reportEntity
.
setTransferGroup
(
"--"
);
reportEntity
1
.
setTransferGroup
(
"--"
);
}
if
(
isAdmin
.
equals
(
"1"
)
||
isAdmin
.
equals
(
"2"
))
{
...
...
src/main/java/com/ejweb/modules/sys/entity/User.java
View file @
57181876
...
...
@@ -52,6 +52,16 @@ public class User extends DataEntity<User> {
private
String
roleId
;
private
Role
role
;
// 根据角色查询用户条件
private
String
areaName
;
//用户所属区域组织名字
public
String
getAreaName
()
{
return
areaName
;
}
public
void
setAreaName
(
String
areaName
)
{
this
.
areaName
=
areaName
;
}
private
List
<
Role
>
roleList
=
Lists
.
newArrayList
();
// 拥有角色列表
public
String
getSupplementGroup
()
{
...
...
src/main/resources/mappings/modules/sys/UserDao.xml
View file @
57181876
...
...
@@ -81,6 +81,7 @@
a.update_by AS "updateBy.id",
a.update_date,
a.del_flag,
a.supplement_group AS supplementGroup,
c.name AS "company.name",
c.parent_id AS "company.parent.id",
c.parent_ids AS "company.parentIds",
...
...
@@ -102,7 +103,10 @@
ou.id AS "office.primaryPerson.id",
ou.name AS "office.primaryPerson.name",
ou2.id AS "office.deputyPerson.id",
ou2.name AS "office.deputyPerson.name"
<!-- ,
ou2.name AS "office.deputyPerson.name"
<!-- ,
r.id AS "roleList.id",
r.office_id AS "roleList.office.id",
r.name AS "roleList.name",
...
...
@@ -119,9 +123,13 @@
LEFT JOIN ct_bbtc_sys_user cu ON cu.id = c.primary_person
LEFT JOIN ct_bbtc_sys_user cu2 ON cu2.id = c.deputy_person
LEFT JOIN ct_bbtc_sys_user ou ON ou.id = o.primary_person
LEFT JOIN ct_bbtc_sys_user ou2 ON ou2.id = o.deputy_person
<!--
LEFT JOIN ct_bbtc_sys_user ou2 ON ou2.id = o.deputy_person
<!--
LEFT JOIN ct_bbtc_sys_user2role ur ON ur.user_id = a.id
LEFT JOIN ct_bbtc_sys_role r ON r.id = ur.role_id -->
LEFT JOIN ct_bbtc_sys_role r ON r.id = ur.role_id
-->
</sql>
<!-- 根据编号获得用户 -->
...
...
@@ -148,9 +156,12 @@
<select
id=
"findList"
resultType=
"User"
>
SELECT
role.id AS roleId,
cr.name AS areaName,
<include
refid=
"userColumns"
/>
FROM ct_bbtc_sys_user a
<include
refid=
"userJoins"
/>
LEFT JOIN ct_bbtc_region CR ON a.area = CR.id
<if
test=
"role != null and role.id != null and role.id != ''"
>
JOIN ct_bbtc_sys_user2role ur ON ur.user_id = a.id AND ur.role_id = #{role.id}
</if>
...
...
@@ -210,9 +221,12 @@
<!-- 查询全部用户 -->
<select
id=
"findAllList"
resultType=
"User"
>
SELECT
cr.name AS areaName,
<include
refid=
"userColumns"
/>
FROM ct_bbtc_sys_user a
<include
refid=
"userJoins"
/>
LEFT JOIN ct_bbtc_region CR ON a.area = CR.id
WHERE a.del_flag = #{DEL_FLAG_NORMAL}
ORDER BY c.code, o.code, a.name
</select>
...
...
src/main/webapp/WEB-INF/classes/com/ejweb/modules/report/web/ReportController.class
View file @
57181876
No preview for this file type
src/main/webapp/WEB-INF/views/modules/sys/userForm.jsp
View file @
57181876
...
...
@@ -147,7 +147,7 @@
<label
class=
"control-label"
>
所属区域:
</label>
<div
class=
"controls"
>
<form:select
id=
"supplementArea"
path=
"area"
class=
"input-small required"
>
<form:option
value=
"
"
>
</form:option>
<form:option
value=
"
"
>
请选择
</form:option>
<
%
--
<
form:options
items=
"${fns:getDictList('supplement_area')}"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
--%>
</form:select>
...
...
src/main/webapp/WEB-INF/views/modules/sys/userList.jsp
View file @
57181876
...
...
@@ -62,7 +62,7 @@
</form:form>
<sys:message
content=
"${message}"
/>
<table
id=
"contentTable"
class=
"table table-striped table-bordered table-condensed"
>
<thead><tr><
%
--
<
th
>
归属公司
</th><th>
归属部门
</th>
--%>
<th
class=
"sort-column login_name"
>
登录名
</th><th
class=
"sort-column name"
>
姓名
</th><th>
电话
</th><th>
手机
</th><
%
--
<
th
>
角色
</th>
--%>
<shiro:hasPermission
name=
"sys:user:edit"
><th>
操作
</th></shiro:hasPermission></tr></thead>
<thead><tr><
%
--
<
th
>
归属公司
</th><th>
归属部门
</th>
--%>
<th
class=
"sort-column login_name"
>
登录名
</th><th
class=
"sort-column name"
>
姓名
</th><th>
所属集团
</th><th>
所属区域
</th><th>
电话
</th><th>
手机
</th><
%
--
<
th
>
角色
</th>
--%>
<shiro:hasPermission
name=
"sys:user:edit"
><th>
操作
</th></shiro:hasPermission></tr></thead>
<tbody>
<c:forEach
items=
"${page.list}"
var=
"user"
>
<tr>
...
...
@@ -70,6 +70,15 @@
<td>
${user.office.name}
</td>
--%>
<td><a
href=
"${ctx}/sys/user/form?id=${user.id}"
>
${user.loginName}
</a></td>
<td>
${user.name}
</td>
<td
align=
"center"
>
<c:if
test=
"${user.supplementGroup eq '3437402691677202102'}"
>
集团本部
</c:if>
<c:if
test=
"${user.supplementGroup eq '3510129313047280678'}"
>
区域集团
</c:if>
<c:if
test=
"${user.supplementGroup eq '3565898923067676254'}"
>
服务集团
</c:if>
<c:if
test=
"${user.supplementGroup eq '3806696792996264972'}"
>
文化集团
</c:if>
<c:if
test=
"${user.supplementGroup eq '3770618512934949260'}"
>
文旅集团
</c:if>
<c:if
test=
"${user.supplementGroup eq null}"
>
--
</c:if>
</td>
<td>
${user.areaName}
</td>
<td>
${user.phone}
</td>
<td>
${user.mobile}
</td><
%
--
<
td
>
${user.roleNames}
</td>
--%>
...
...
target/report_sunac.war
View file @
57181876
No preview for this file type
target/report_sunac/WEB-INF/classes/com/ejweb/modules/report/web/ReportController.class
View file @
57181876
No preview for this file type
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