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
4904df27
Commit
4904df27
authored
Sep 29, 2017
by
Java-张振楠
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
9ec220f8
11cee393
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
4 deletions
+16
-4
ReportController.java
src/main/java/com/ejweb/modules/report/web/ReportController.java
+2
-2
User.java
src/main/java/com/ejweb/modules/sys/entity/User.java
+9
-0
ReportDao.xml
src/main/resources/mappings/modules/report/ReportDao.xml
+4
-1
reportDeliver.jsp
src/main/webapp/WEB-INF/views/modules/report/reportDeliver.jsp
+1
-1
No files found.
src/main/java/com/ejweb/modules/report/web/ReportController.java
View file @
4904df27
...
...
@@ -250,7 +250,7 @@ public class ReportController extends BaseController {
html
.
append
(
" <td>"
+
i
+
"</td>"
);
html
.
append
(
" <td>"
+
(
userEntity
.
getLoginName
()
==
null
?
""
:
userEntity
.
getLoginName
())
+
"</td>"
);
html
.
append
(
" <td>"
+
(
userEntity
.
getName
()
==
null
?
""
:
userEntity
.
getName
())
+
"</td>"
);
html
.
append
(
" <td></td>"
);
html
.
append
(
" <td>
"
+
(
userEntity
.
getDevision
()
==
null
?
""
:
userEntity
.
getDevision
())
+
"
</td>"
);
html
.
append
(
" <td>"
+
(
userEntity
.
getMobile
()
==
null
?
""
:
userEntity
.
getMobile
())
+
"</td>"
);
html
.
append
(
" <td>"
+
(
userEntity
.
getRole
().
getName
()
==
null
?
""
:
userEntity
.
getRole
().
getName
())
+
"</td>"
);
}
...
...
@@ -304,7 +304,7 @@ public class ReportController extends BaseController {
}
Page
<
ReportEntity
>
page
=
reportService
.
getChooseReportPage
(
new
Page
<
ReportEntity
>(
request
,
response
),
reportEntity
);
User
userEntity
=
new
User
();
Page
<
User
>
userPage
=
reportService
.
findUserPage
(
new
Page
<
User
>(
request
,
response
),
userEntity
);
Page
<
User
>
userPage
=
reportService
.
findUserPage
(
new
Page
<
User
>(
1
,
10
),
userEntity
);
model
.
addAttribute
(
"page"
,
page
);
model
.
addAttribute
(
"userPage"
,
userPage
);
model
.
addAttribute
(
"user"
,
userEntity
);
...
...
src/main/java/com/ejweb/modules/sys/entity/User.java
View file @
4904df27
...
...
@@ -54,6 +54,7 @@ public class User extends DataEntity<User> {
private
Position
position
;
//职位
private
String
devision
;
//组织
public
User
()
{
super
();
...
...
@@ -319,6 +320,14 @@ public class User extends DataEntity<User> {
this
.
position
=
position
;
}
public
String
getDevision
()
{
return
devision
;
}
public
void
setDevision
(
String
devision
)
{
this
.
devision
=
devision
;
}
/**
* 用户拥有的角色名称字符串, 多个角色名称用','分隔.
*/
...
...
src/main/resources/mappings/modules/report/ReportDao.xml
View file @
4904df27
...
...
@@ -222,7 +222,8 @@
so1.`name` AS "company.name",
so2.`name` AS "office.name",
sp.position_name AS "position.name",
sr.`name` AS "role.name"
sr.`name` AS "role.name",
CONCAT(IFNULL(sac.`name`,""),"-",IFNULL(sao.`name`,"")) AS "devision"
FROM
ct_bbtc_sys_user su
LEFT JOIN ct_bbtc_sys_office so1 ON so1.id = su.company_id
...
...
@@ -231,6 +232,8 @@
LEFT JOIN ct_bbtc_sys_position sp ON sp.id = sup.position_id
LEFT JOIN ct_bbtc_sys_user2role sur ON su.id = sur.user_id
LEFT JOIN ct_bbtc_sys_role sr ON sr.id = sur.role_id
LEFT JOIN ct_bbtc_sys_area sac ON sac.id = so1.area_id
LEFT JOIN ct_bbtc_sys_area sao ON sao.id = so2.area_id
<where>
1 = 1
<if
test=
"no != null and no != ''"
>
...
...
src/main/webapp/WEB-INF/views/modules/report/reportDeliver.jsp
View file @
4904df27
...
...
@@ -277,7 +277,7 @@
<td>
${vs.count}
</td>
<td>
${user.loginName}
</td>
<td>
${user.name}
</td>
<td></td>
<td>
${user.devision}
</td>
<td>
${user.mobile}
</td>
<td>
${user.role.name}
</td>
</tr>
...
...
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