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
d43e465c
Commit
d43e465c
authored
Aug 26, 2019
by
sunxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作台模块bug修复
parent
a2a1de96
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
91 additions
and
70 deletions
+91
-70
WorkbenchBean.java
src/main/java/com/ejweb/modules/workbench/Bean/WorkbenchBean.java
+1
-0
WorkbenchService.java
src/main/java/com/ejweb/modules/workbench/service/WorkbenchService.java
+25
-21
WorkbenchController.java
src/main/java/com/ejweb/modules/workbench/web/WorkbenchController.java
+4
-4
ReportDao.xml
src/main/resources/mappings/modules/report/ReportDao.xml
+47
-39
workbench.jsp
src/main/webapp/WEB-INF/views/modules/workbench/workbench.jsp
+14
-6
No files found.
src/main/java/com/ejweb/modules/workbench/Bean/WorkbenchBean.java
View file @
d43e465c
...
@@ -80,6 +80,7 @@ public class WorkbenchBean {
...
@@ -80,6 +80,7 @@ public class WorkbenchBean {
}
}
private
String
area
;
private
String
area
;
//角色
//角色
private
String
userRoleName
=
""
;
private
String
userRoleName
=
""
;
...
...
src/main/java/com/ejweb/modules/workbench/service/WorkbenchService.java
View file @
d43e465c
...
@@ -95,7 +95,8 @@ public class WorkbenchService extends CrudService<ReportDao, ReportEntity> {
...
@@ -95,7 +95,8 @@ public class WorkbenchService extends CrudService<ReportDao, ReportEntity> {
workbench
.
setRepStatusTotal
(
workbench
.
getUnProcess
()
+
workbench
.
getProcessing
()
+
workbench
.
getProcessed
()
+
workbench
.
getClosed
());
workbench
.
setRepStatusTotal
(
workbench
.
getUnProcess
()
+
workbench
.
getProcessing
()
+
workbench
.
getProcessed
()
+
workbench
.
getClosed
());
List
<
HashMap
>
types
=
reportDao
.
getReportType
(
workbench
);
List
<
HashMap
>
types
=
reportDao
.
getReportType
(
workbench
);
for
(
HashMap
type
:
types
)
{
/* for (HashMap type : types) {
//营销
//营销
Object sale = type.get("sale");
Object sale = type.get("sale");
workbench.setSale(Integer.valueOf(sale.toString()));
workbench.setSale(Integer.valueOf(sale.toString()));
...
@@ -141,42 +142,45 @@ public class WorkbenchService extends CrudService<ReportDao, ReportEntity> {
...
@@ -141,42 +142,45 @@ public class WorkbenchService extends CrudService<ReportDao, ReportEntity> {
//商业管理
//商业管理
Object syManagement = type.get("businessManagement");
Object syManagement = type.get("businessManagement");
workbench.setBusinessManagement(Integer.valueOf(syManagement.toString()));
workbench.setBusinessManagement(Integer.valueOf(syManagement.toString()));
}
}*/
List
<
HashMap
>
totals
=
reportDao
.
getTotal
(
workbench
);
List
<
HashMap
>
totals
=
reportDao
.
getTotal
(
workbench
);
for
(
HashMap
total
:
totals
)
{
for
(
HashMap
total
:
totals
)
{
if
(
StringUtils
.
isNotBlank
((
String
)
total
.
get
(
"
report_source
"
)))
{
if
(
StringUtils
.
isNotBlank
((
String
)
total
.
get
(
"
REPORT_SOURCE
"
)))
{
if
(
"web"
.
equals
((
String
)
total
.
get
(
"
report_source
"
)))
{
if
(
"web"
.
equals
((
String
)
total
.
get
(
"
REPORT_SOURCE
"
)))
{
//官网
//官网
workbench
.
setWeb
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
report_source
)"
))));
workbench
.
setWeb
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
REPORT_SOURCE
)"
))));
}
else
if
(
"oa"
.
contains
((
String
)
total
.
get
(
"
report_source
"
)))
{
}
else
if
(
"oa"
.
contains
((
String
)
total
.
get
(
"
REPORT_SOURCE
"
)))
{
//融创oa
//融创oa
workbench
.
setOa
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
report_source
)"
))));
workbench
.
setOa
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
REPORT_SOURCE
)"
))));
}
else
if
(
"supplier"
.
equals
(
String
.
valueOf
(
total
.
get
(
"
report_source
"
))))
{
}
else
if
(
"supplier"
.
equals
(
String
.
valueOf
(
total
.
get
(
"
REPORT_SOURCE
"
))))
{
//供应商
//供应商
workbench
.
setSupplier
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
report_source
)"
))));
workbench
.
setSupplier
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
REPORT_SOURCE
)"
))));
}
else
if
(
"wechat"
.
equals
(
String
.
valueOf
(
total
.
get
(
"
report_source
"
))))
{
}
else
if
(
"wechat"
.
equals
(
String
.
valueOf
(
total
.
get
(
"
REPORT_SOURCE
"
))))
{
//微信公众号
//微信公众号
workbench
.
setWeChat
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
report_source
)"
))));
workbench
.
setWeChat
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
REPORT_SOURCE
)"
))));
}
else
if
(
"sunacE"
.
equals
(
String
.
valueOf
(
total
.
get
(
"
report_source
"
))))
{
}
else
if
(
"sunacE"
.
equals
(
String
.
valueOf
(
total
.
get
(
"
REPORT_SOURCE
"
))))
{
//融E
//融E
workbench
.
setSunacE
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
report_source
)"
))));
workbench
.
setSunacE
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
REPORT_SOURCE
)"
))));
}
else
if
(
"offline"
.
equals
(
String
.
valueOf
(
total
.
get
(
"
report_source
"
))))
{
}
else
if
(
"offline"
.
equals
(
String
.
valueOf
(
total
.
get
(
"
REPORT_SOURCE
"
))))
{
//线下扫码
//线下扫码
workbench
.
setOffline
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
report_source
)"
))));
workbench
.
setOffline
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
REPORT_SOURCE
)"
))));
}
else
if
(
"tel"
.
equals
(
String
.
valueOf
(
total
.
get
(
"
report_source
"
))))
{
}
else
if
(
"tel"
.
equals
(
String
.
valueOf
(
total
.
get
(
"
REPORT_SOURCE
"
))))
{
//电话
//电话
workbench
.
setPhone
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
report_source
)"
))));
workbench
.
setPhone
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
REPORT_SOURCE
)"
))));
}
else
if
(
"email"
.
equals
((
String
)
total
.
get
(
"
report_source
"
)))
{
}
else
if
(
"email"
.
equals
((
String
)
total
.
get
(
"
REPORT_SOURCE
"
)))
{
//邮件
//邮件
workbench
.
setEmail
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
report_source
)"
))));
workbench
.
setEmail
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
REPORT_SOURCE
)"
))));
}
else
if
(
"visit"
.
equals
((
String
)
total
.
get
(
"
report_source
"
)))
{
}
else
if
(
"visit"
.
equals
((
String
)
total
.
get
(
"
REPORT_SOURCE
"
)))
{
//来访
//来访
workbench
.
setVisit
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
report_source
)"
))));
workbench
.
setVisit
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
REPORT_SOURCE
)"
))));
}
}
}
}
}
}
workbench
.
setTotal
(
workbench
.
getWeb
()
+
workbench
.
getOa
()
+
workbench
.
getSupplier
()
+
workbench
.
getWeChat
()
+
workbench
.
setTotal
(
workbench
.
getWeb
()
+
workbench
.
getOa
()
+
workbench
.
getSupplier
()
+
workbench
.
getWeChat
()
+
workbench
.
getSunacE
()
+
workbench
.
getOffline
()
+
workbench
.
getPhone
()
+
workbench
.
getEmail
()
+
workbench
.
getVisit
());
workbench
.
getSunacE
()
+
workbench
.
getOffline
()
+
workbench
.
getPhone
()
+
workbench
.
getEmail
()
+
workbench
.
getVisit
());
return
workbench
;
return
workbench
;
}
}
...
...
src/main/java/com/ejweb/modules/workbench/web/WorkbenchController.java
View file @
d43e465c
...
@@ -21,6 +21,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -21,6 +21,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.PrintWriter
;
import
java.io.PrintWriter
;
import
java.util.List
;
import
java.util.List
;
...
@@ -45,16 +46,14 @@ public class WorkbenchController extends BaseController {
...
@@ -45,16 +46,14 @@ public class WorkbenchController extends BaseController {
private
String
selAreaTemp
;
//所选择的区域
@RequiresPermissions
(
"workbench:view"
)
@RequiresPermissions
(
"workbench:view"
)
@RequestMapping
(
value
=
{
"list"
,
""
})
@RequestMapping
(
value
=
{
"list"
,
""
})
public
String
getWorkbench
(
Model
model
,
WorkbenchBean
bean
)
{
public
String
getWorkbench
(
Model
model
,
WorkbenchBean
bean
)
{
System
.
out
.
println
(
"处理状态:======================================"
+
bean
.
getProcessStatus
());
WorkbenchBean
workbench
;
WorkbenchBean
workbench
;
selAreaTemp
=
bean
.
getArea
();
try
{
try
{
User
user
=
UserUtils
.
getUser
();
User
user
=
UserUtils
.
getUser
();
bean
=
getWorkbenchByUser
(
user
,
bean
);
bean
=
getWorkbenchByUser
(
user
,
bean
);
...
@@ -63,6 +62,7 @@ public class WorkbenchController extends BaseController {
...
@@ -63,6 +62,7 @@ public class WorkbenchController extends BaseController {
}
else
if
(
"1"
.
equals
(
bean
.
getProcessStatus
()))
{
}
else
if
(
"1"
.
equals
(
bean
.
getProcessStatus
()))
{
bean
.
setProcessStatus
(
"1"
);
bean
.
setProcessStatus
(
"1"
);
}
}
System
.
out
.
println
(
"处理状态:======================================"
+
bean
.
getProcessStatus
());
List
<
ReportEntity
>
repList
=
workbenchService
.
getRepList
(
bean
);
List
<
ReportEntity
>
repList
=
workbenchService
.
getRepList
(
bean
);
/*封装类型 类别数据*/
/*封装类型 类别数据*/
...
@@ -121,6 +121,7 @@ public class WorkbenchController extends BaseController {
...
@@ -121,6 +121,7 @@ public class WorkbenchController extends BaseController {
res
.
put
(
"bench"
,
bean
);
res
.
put
(
"bench"
,
bean
);
//区域
//区域
res
.
put
(
"supplementGroup"
,
bean
.
getSupplementGroup
());
res
.
put
(
"area"
,
bean
.
getArea
());
res
.
put
(
"area"
,
bean
.
getArea
());
//1.举报状态
//1.举报状态
res
.
put
(
"unProcess"
,
bean
.
getUnProcess
());
res
.
put
(
"unProcess"
,
bean
.
getUnProcess
());
...
@@ -188,7 +189,6 @@ public class WorkbenchController extends BaseController {
...
@@ -188,7 +189,6 @@ public class WorkbenchController extends BaseController {
bean
.
setIsAdmin
(
user
.
getId
());
bean
.
setIsAdmin
(
user
.
getId
());
}
}
}
}
bean
.
setArea
(
selAreaTemp
);
bean
=
workbenchService
.
getWorkbench
(
bean
);
bean
=
workbenchService
.
getWorkbench
(
bean
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
...
src/main/resources/mappings/modules/report/ReportDao.xml
View file @
d43e465c
...
@@ -17,11 +17,7 @@
...
@@ -17,11 +17,7 @@
r.supplement_department AS "supplementDepartment",
r.supplement_department AS "supplementDepartment",
r.supplement_informant AS "supplementInformant",
r.supplement_informant AS "supplementInformant",
r.supplement_title AS "supplementTitle",
r.supplement_title AS "supplementTitle",
/*r.supplement_type AS "supplementType",*/
ct.name AS "transferDepartment",
ct.name AS "transferDepartment",
b2.label AS "transferGroup",
b3.name AS "transferArea",
/*r.supplement_area AS "supplementArea",*/
r.supplement_project AS "supplementProject",
r.supplement_project AS "supplementProject",
r.supplement_content AS "supplementContent",
r.supplement_content AS "supplementContent",
r.deal_person_name AS "dealPersonName",
r.deal_person_name AS "dealPersonName",
...
@@ -46,7 +42,6 @@
...
@@ -46,7 +42,6 @@
r.report_qq AS "qq",
r.report_qq AS "qq",
r.report_weixin AS "weixin",
r.report_weixin AS "weixin",
r.report_ifClue AS "ifClue" ,
r.report_ifClue AS "ifClue" ,
b.label AS "supplementGroup",
r.supplement_category AS "supplementCategory",
r.supplement_category AS "supplementCategory",
r.supplement_type AS "supplementType"
r.supplement_type AS "supplementType"
...
@@ -62,14 +57,17 @@
...
@@ -62,14 +57,17 @@
SELECT
SELECT
<include
refid=
"reportColumns"
/>
<include
refid=
"reportColumns"
/>
,su.name AS "transferName"
,su.name AS "transferName"
,b.label AS "supplementGroup"
,b2.label AS "transferGroup"
,cr2.name AS "transferArea"
,cr.name AS "supplementArea"
,cr.name AS "supplementArea"
FROM ct_bbtc_report r
FROM ct_bbtc_report r
LEFT JOIN ct_bbtc_sys_user su ON r.exchange_after_user = su.id
LEFT JOIN ct_bbtc_sys_user su ON r.exchange_after_user = su.id
LEFT JOIN ct_bbtc_region CR ON r.supplement_area = CR.id
LEFT JOIN ct_bbtc_region CR ON r.supplement_area = CR.id
LEFT JOIN ct_bbtc_bus_type CT ON r.transfer_department = CT.id
LEFT JOIN ct_bbtc_bus_type CT ON r.transfer_department = CT.id
LEFT JOIN ct_bbtc_sys_dict b on b.id = r.supplement_group
LEFT JOIN ct_bbtc_sys_dict b on b.id = r.supplement_group
LEFT JOIN ct_bbtc_sys_dict b2 on b2.id = r.
TRANSFERGROUP
LEFT JOIN ct_bbtc_sys_dict b2 on b2.id = r.
transferGroup
LEFT JOIN ct_bbtc_region
b3 on b3.id = r.transferArea
LEFT JOIN ct_bbtc_region
CR2 ON r.transferArea = CR2.id
/* LEFT JOIN ct_bbtc_bus_type CT
/* LEFT JOIN ct_bbtc_bus_type CT
ON R.supplement_group = CT.supplement_group
ON R.supplement_group = CT.supplement_group
...
@@ -82,6 +80,9 @@
...
@@ -82,6 +80,9 @@
SELECT
SELECT
<include
refid=
"reportColumns"
/>
<include
refid=
"reportColumns"
/>
,su.name AS "transferName"
,su.name AS "transferName"
,b.label AS "supplementGroup"
,b2.label AS "transferGroup"
,cr2.name AS "transferArea"
,cr.name AS "supplementArea"
,cr.name AS "supplementArea"
FROM CT_BBTC_REPORT R
FROM CT_BBTC_REPORT R
LEFT JOIN CT_BBTC_SYS_USER SU
LEFT JOIN CT_BBTC_SYS_USER SU
...
@@ -91,12 +92,11 @@
...
@@ -91,12 +92,11 @@
LEFT JOIN CT_BBTC_SYS_ROLE RL
LEFT JOIN CT_BBTC_SYS_ROLE RL
ON RL.ID = UR.ROLE_ID
ON RL.ID = UR.ROLE_ID
LEFT JOIN ct_bbtc_sys_dict b on b.id = r.supplement_group
LEFT JOIN ct_bbtc_sys_dict b on b.id = r.supplement_group
LEFT JOIN ct_bbtc_sys_dict b2 on b2.id = r.TRANSFERGROUP
LEFT JOIN ct_bbtc_region CR ON r.supplement_area = CR.id
LEFT JOIN ct_bbtc_region b3 on b3.id = r.transferArea
LEFT JOIN ct_bbtc_region CR
ON r.supplement_area = CR.id
LEFT JOIN ct_bbtc_bus_type CT
LEFT JOIN ct_bbtc_bus_type CT
ON r.transfer_department = CT.id
ON r.transfer_department = CT.id
LEFT JOIN ct_bbtc_sys_dict b2 on b2.id = r.transferGroup
LEFT JOIN ct_bbtc_region CR2 ON r.transferArea = CR2.id
<where>
<where>
1 = 1
1 = 1
<if
test=
"isAdmin == null and isFzAdmin == null"
>
<if
test=
"isAdmin == null and isFzAdmin == null"
>
...
@@ -217,6 +217,9 @@
...
@@ -217,6 +217,9 @@
SELECT
SELECT
<include
refid=
"reportColumns"
/>
<include
refid=
"reportColumns"
/>
,su.name AS "transferName"
,su.name AS "transferName"
,b.label AS "supplementGroup"
,b2.label AS "transferGroup"
,cr2.name AS "transferArea"
,cr.name AS "supplementArea"
,cr.name AS "supplementArea"
FROM CT_BBTC_REPORT R
FROM CT_BBTC_REPORT R
LEFT JOIN CT_BBTC_SYS_USER SU
LEFT JOIN CT_BBTC_SYS_USER SU
...
@@ -226,12 +229,12 @@
...
@@ -226,12 +229,12 @@
LEFT JOIN CT_BBTC_SYS_ROLE RL
LEFT JOIN CT_BBTC_SYS_ROLE RL
ON RL.ID = UR.ROLE_ID
ON RL.ID = UR.ROLE_ID
LEFT JOIN ct_bbtc_sys_dict b on b.id = r.supplement_group
LEFT JOIN ct_bbtc_sys_dict b on b.id = r.supplement_group
LEFT JOIN ct_bbtc_sys_dict b2 on b2.id = r.TRANSFERGROUP
LEFT JOIN ct_bbtc_region b3 on b3.id = r.transferArea
LEFT JOIN ct_bbtc_region CR
LEFT JOIN ct_bbtc_region CR
ON r.supplement_area = CR.id
ON r.supplement_area = CR.id
LEFT JOIN ct_bbtc_bus_type CT
LEFT JOIN ct_bbtc_bus_type CT
ON r.transfer_department = CT.id
ON r.transfer_department = CT.id
LEFT JOIN ct_bbtc_sys_dict b2 on b2.id = r.transferGroup
LEFT JOIN ct_bbtc_region CR2 ON r.transferArea = CR2.id
<where>
<where>
1 = 1
1 = 1
<if
test=
"supplementType != null and supplementType != ''"
>
<if
test=
"supplementType != null and supplementType != ''"
>
...
@@ -272,6 +275,9 @@
...
@@ -272,6 +275,9 @@
SELECT
SELECT
<include
refid=
"reportColumns"
/>
<include
refid=
"reportColumns"
/>
,su.name AS "transferName"
,su.name AS "transferName"
,b.label AS "supplementGroup"
,b2.label AS "transferGroup"
,cr2.name AS "transferArea"
,cr.name AS "supplementArea"
,cr.name AS "supplementArea"
FROM ct_bbtc_report r
FROM ct_bbtc_report r
...
@@ -280,12 +286,12 @@
...
@@ -280,12 +286,12 @@
LEFT JOIN CT_BBTC_SYS_ROLE RL
LEFT JOIN CT_BBTC_SYS_ROLE RL
ON RL.ID = UR.ROLE_ID
ON RL.ID = UR.ROLE_ID
LEFT JOIN ct_bbtc_sys_dict b on b.id = r.supplement_group
LEFT JOIN ct_bbtc_sys_dict b on b.id = r.supplement_group
LEFT JOIN ct_bbtc_sys_dict b2 on b2.id = r.TRANSFERGROUP
LEFT JOIN ct_bbtc_region b3 on b3.id = r.transferArea
LEFT JOIN ct_bbtc_region CR
LEFT JOIN ct_bbtc_region CR
ON r.supplement_area = CR.id
ON r.supplement_area = CR.id
LEFT JOIN ct_bbtc_bus_type CT
LEFT JOIN ct_bbtc_bus_type CT
ON r.transfer_department = CT.id
ON r.transfer_department = CT.id
LEFT JOIN ct_bbtc_sys_dict b2 on b2.id = r.transferGroup
LEFT JOIN ct_bbtc_region CR2 ON r.transferArea = CR2.id
/* LEFT JOIN ct_bbtc_bus_type CT
/* LEFT JOIN ct_bbtc_bus_type CT
ON R.supplement_group = CT.supplement_group
ON R.supplement_group = CT.supplement_group
LEFT JOIN ct_bbtc_bus_category CC
LEFT JOIN ct_bbtc_bus_category CC
...
@@ -433,6 +439,9 @@
...
@@ -433,6 +439,9 @@
<select
id=
"findAllList"
parameterType=
"ReportEntity"
resultType=
"ReportEntity"
>
<select
id=
"findAllList"
parameterType=
"ReportEntity"
resultType=
"ReportEntity"
>
SELECT
SELECT
<include
refid=
"reportColumns"
/>
<include
refid=
"reportColumns"
/>
,b.label AS "supplementGroup"
,b2.label AS "transferGroup"
,cr2.name AS "transferArea"
,cr.name AS "supplementArea"
,cr.name AS "supplementArea"
FROM ct_bbtc_report r
FROM ct_bbtc_report r
LEFT JOIN ct_bbtc_region CR
LEFT JOIN ct_bbtc_region CR
...
@@ -440,8 +449,8 @@
...
@@ -440,8 +449,8 @@
LEFT JOIN ct_bbtc_bus_type CT
LEFT JOIN ct_bbtc_bus_type CT
ON r.transfer_department = CT.id
ON r.transfer_department = CT.id
LEFT JOIN ct_bbtc_sys_dict b on b.id = r.supplement_group
LEFT JOIN ct_bbtc_sys_dict b on b.id = r.supplement_group
LEFT JOIN ct_bbtc_sys_dict b2 on b2.id = r.
TRANSFERGROUP
LEFT JOIN ct_bbtc_sys_dict b2 on b2.id = r.
transferGroup
LEFT JOIN ct_bbtc_region
b3 on b3.id = r.transferArea
LEFT JOIN ct_bbtc_region
CR2 ON r.transferArea = CR2.id
/* LEFT JOIN ct_bbtc_bus_type CT
/* LEFT JOIN ct_bbtc_bus_type CT
ON R.supplement_group = CT.supplement_group
ON R.supplement_group = CT.supplement_group
LEFT JOIN ct_bbtc_bus_category CC
LEFT JOIN ct_bbtc_bus_category CC
...
@@ -928,7 +937,6 @@
...
@@ -928,7 +937,6 @@
r.supplement_informant AS "supplementInformant",
r.supplement_informant AS "supplementInformant",
r.supplement_title AS "supplementTitle",
r.supplement_title AS "supplementTitle",
r.supplement_type AS "supplementType",
r.supplement_type AS "supplementType",
b.label AS "supplementGroup",
r.supplement_category AS "supplementCategory",
r.supplement_category AS "supplementCategory",
r.supplement_project AS "supplementProject",
r.supplement_project AS "supplementProject",
r.supplement_content AS "supplementContent",
r.supplement_content AS "supplementContent",
...
@@ -940,15 +948,17 @@
...
@@ -940,15 +948,17 @@
r.create_by AS "createBy",
r.create_by AS "createBy",
r.create_date AS "createDate",
r.create_date AS "createDate",
r.update_by AS "updateBy",
r.update_by AS "updateBy",
r.update_date AS "updateDate"
r.update_date AS "updateDate",
,cr.name AS "supplementArea"
cr.name AS "supplementArea",
b.label AS "supplementGroup",
b2.label AS "transferGroup",
cr2.name AS "transferArea"
FROM ct_bbtc_report r
FROM ct_bbtc_report r
LEFT JOIN ct_bbtc_region CR
LEFT JOIN ct_bbtc_region cr ON r.supplement_area = cr.id
ON r.supplement_area = CR.id
LEFT JOIN ct_bbtc_region cr2 ON r.transferArea = cr2.id
LEFT JOIN ct_bbtc_bus_type CT
ON r.transfer_department = CT.id
LEFT JOIN ct_bbtc_sys_dict b on b.id = r.supplement_group
LEFT JOIN ct_bbtc_sys_dict b on b.id = r.supplement_group
LEFT JOIN ct_bbtc_sys_dict b2 on b2.id = r.transferGroup
<where>
<where>
r.report_status = #{processStatus}
r.report_status = #{processStatus}
...
@@ -956,14 +966,14 @@
...
@@ -956,14 +966,14 @@
AND r.exchange_after_user = #{isAdmin}
AND r.exchange_after_user = #{isAdmin}
</if>
</if>
<if
test=
"startDate != null"
>
<if
test=
"startDate != null"
>
<if
test=
"dbName == 'oracle'"
>
AND create_date >= to_date(#{startDate}, 'yyyy-MM-dd')
</if>
<if
test=
"dbName == 'oracle'"
>
AND
r.
create_date >= to_date(#{startDate}, 'yyyy-MM-dd')
</if>
<if
test=
"dbName == 'mysql'"
>
AND DATE(create_date) >= #{startDate}
</if>
<if
test=
"dbName == 'mysql'"
>
AND DATE(
r.
create_date) >= #{startDate}
</if>
</if>
</if>
<if
test=
"endDate != null"
>
<if
test=
"endDate != null"
>
<if
test=
"dbName == 'oracle'"
>
AND create_date
<
= to_date( #{endDate}|| ' 23:59:59', 'yyyy-MM-dd
<if
test=
"dbName == 'oracle'"
>
AND
r.
create_date
<
= to_date( #{endDate}|| ' 23:59:59', 'yyyy-MM-dd
hh24:mi:ss')
hh24:mi:ss')
</if>
</if>
<if
test=
"dbName == 'mysql'"
>
AND DATE(create_date)
<
= #{endDate}
</if>
<if
test=
"dbName == 'mysql'"
>
AND DATE(
r.
create_date)
<
= #{endDate}
</if>
</if>
</if>
<if
test=
"supplementGroup != null and supplementGroup != ''"
>
<if
test=
"supplementGroup != null and supplementGroup != ''"
>
...
@@ -977,9 +987,9 @@
...
@@ -977,9 +987,9 @@
</where>
</where>
order by r.create_date desc
order by r.create_date desc
)
AS W
)
w
<if
test=
"dbName == 'oracle'"
>
rownum
<
= 10
</if>
<if
test=
"dbName == 'oracle'"
>
WHERE
rownum
<
= 10
</if>
<if
test=
"dbName == 'mysql'"
>
limit 0,10
</if>
<if
test=
"dbName == 'mysql'"
>
limit 0,10
</if>
</select>
</select>
<select
id=
"getChooseReportList"
parameterType=
"com.ejweb.modules.report.entity.ReportEntity"
<select
id=
"getChooseReportList"
parameterType=
"com.ejweb.modules.report.entity.ReportEntity"
...
@@ -994,6 +1004,7 @@
...
@@ -994,6 +1004,7 @@
r.supplement_title AS "supplementTitle",
r.supplement_title AS "supplementTitle",
r.supplement_type AS "supplementType",
r.supplement_type AS "supplementType",
b.label AS "supplementGroup",
b.label AS "supplementGroup",
b2.label AS "transferGroup",
r.supplement_category AS "supplementCategory",
r.supplement_category AS "supplementCategory",
r.supplement_department AS "supplementDepartment",
r.supplement_department AS "supplementDepartment",
r.supplement_informant AS "supplementInformant",
r.supplement_informant AS "supplementInformant",
...
@@ -1002,15 +1013,16 @@
...
@@ -1002,15 +1013,16 @@
r.exchange_type AS "exchangeType",
r.exchange_type AS "exchangeType",
su.name AS "transferName"
su.name AS "transferName"
,cr.name AS "supplementArea"
,cr.name AS "supplementArea"
,cr2.name AS "transferArea"
FROM ct_bbtc_report r
FROM ct_bbtc_report r
LEFT JOIN ct_bbtc_sys_user su ON r.exchange_after_user = su.id
LEFT JOIN ct_bbtc_sys_user su ON r.exchange_after_user = su.id
LEFT JOIN ct_bbtc_region CR
LEFT JOIN ct_bbtc_region CR ON r.supplement_area = CR.id
ON r.supplement_area = CR.id
LEFT JOIN ct_bbtc_bus_type CT ON r.transfer_department = CT.id
LEFT JOIN ct_bbtc_bus_type CT
ON r.transfer_department = CT.id
LEFT JOIN ct_bbtc_sys_dict b on b.id = r.supplement_group
LEFT JOIN ct_bbtc_sys_dict b on b.id = r.supplement_group
LEFT JOIN ct_bbtc_region cr2 ON r.transferArea = cr2.id
LEFT JOIN ct_bbtc_sys_dict b2 on b2.id = r.transferGroup
<where>
<where>
1 = 1
1 = 1
<if
test=
"exchangeAfterUser != null and exchangeAfterUser != ''"
>
<if
test=
"exchangeAfterUser != null and exchangeAfterUser != ''"
>
...
@@ -1079,10 +1091,6 @@
...
@@ -1079,10 +1091,6 @@
<select
id=
"getTotalNum"
parameterType=
"com.ejweb.modules.workbench.Bean.WorkbenchBean"
resultType=
"Integer"
>
<select
id=
"getTotalNum"
parameterType=
"com.ejweb.modules.workbench.Bean.WorkbenchBean"
resultType=
"Integer"
>
SELECT count(*) AS "totalCount"
SELECT count(*) AS "totalCount"
FROM ct_bbtc_report r
FROM ct_bbtc_report r
LEFT JOIN ct_bbtc_region CR
ON r.supplement_area = CR.id
LEFT JOIN ct_bbtc_bus_type CT
ON r.transfer_department = CT.id
WHERE 1 = 1
WHERE 1 = 1
<if
test=
"isAdmin != null"
>
<if
test=
"isAdmin != null"
>
AND exchange_after_user = #{isAdmin}
AND exchange_after_user = #{isAdmin}
...
...
src/main/webapp/WEB-INF/views/modules/workbench/workbench.jsp
View file @
d43e465c
...
@@ -11,18 +11,23 @@
...
@@ -11,18 +11,23 @@
<script
src=
"${pageContext.request.contextPath}/assets/My97DatePicker/WdatePicker.js"
></script>
<script
src=
"${pageContext.request.contextPath}/assets/My97DatePicker/WdatePicker.js"
></script>
<script>
<script>
$
(
function
()
{
$
(
function
()
{
/*每次加载页面时去查询区域*/
getRegion
();
var
startDate
=
$
(
"#startDate"
).
val
();
var
startDate
=
$
(
"#startDate"
).
val
();
var
endDate
=
$
(
"#endDate"
).
val
();
var
endDate
=
$
(
"#endDate"
).
val
();
var
supplementGroup
=
$
(
"#supplementGroup"
).
val
();
var
selectedArea
=
"${workbench.area}"
;
var
start
=
startDate
.
substring
(
5
).
replace
(
"-"
,
"."
);
var
start
=
startDate
.
substring
(
5
).
replace
(
"-"
,
"."
);
var
end
=
endDate
.
substring
(
5
).
replace
(
"-"
,
"."
);
var
end
=
endDate
.
substring
(
5
).
replace
(
"-"
,
"."
);
var
selectedArea
=
$
(
"#area"
).
val
();
console
.
log
(
"区域"
+
selectedArea
);
console
.
log
(
"区域"
+
selectedArea
);
console
.
log
(
"开始"
+
start
);
console
.
log
(
"开始"
+
start
);
console
.
log
(
"结束"
+
end
);
console
.
log
(
"结束"
+
end
);
$
.
ajax
({
$
.
ajax
({
type
:
"POST"
,
type
:
"POST"
,
dataType
:
"JSON"
,
dataType
:
"JSON"
,
data
:
{
"startDate"
:
startDate
,
"endDate"
:
endDate
},
data
:
{
"startDate"
:
startDate
,
"endDate"
:
endDate
,
"supplementGroup"
:
supplementGroup
,
"area"
:
selectedArea
},
url
:
"getHighcharts.action"
,
url
:
"getHighcharts.action"
,
success
:
function
(
result
)
{
success
:
function
(
result
)
{
...
@@ -483,8 +488,6 @@
...
@@ -483,8 +488,6 @@
/* $('#total').highcharts({
/* $('#total').highcharts({
});*/
});*/
getRegion
();
});
});
//选择区域
//选择区域
// function selectArea(value){
// function selectArea(value){
...
@@ -515,6 +518,10 @@
...
@@ -515,6 +518,10 @@
slsb
.
append
(
new
Option
(
data1
[
i
].
name
,
data1
[
i
].
id
));
slsb
.
append
(
new
Option
(
data1
[
i
].
name
,
data1
[
i
].
id
));
}
}
}
}
var
area
=
"${workbench.area}"
;
if
(
area
!=
null
&&
area
!=
''
){
$
(
"#area"
).
val
(
area
);
}
},
error
:
function
(
data
){
},
error
:
function
(
data
){
alert
(
系统错误
);
alert
(
系统错误
);
...
@@ -650,11 +657,12 @@
...
@@ -650,11 +657,12 @@
<td>
${vs.index + 1}
</td>
<td>
${vs.index + 1}
</td>
<td>
${report.supplementTitle}
</td>
<td>
${report.supplementTitle}
</td>
<td
align=
"center"
>
<td
align=
"center"
>
<c:if
test=
"${report.supplementGroup eq '3437402691677202102'}"
>
集团本部
</c:if>
${report.supplementGroup}
<
%
--
<
c:if
test=
"${report.supplementGroup eq '3437402691677202102'}"
>
集团本部
</c:if>
<c:if
test=
"${report.supplementGroup eq '3510129313047280678'}"
>
区域集团
</c:if>
<c:if
test=
"${report.supplementGroup eq '3510129313047280678'}"
>
区域集团
</c:if>
<c:if
test=
"${report.supplementGroup eq '3565898923067676254'}"
>
服务集团
</c:if>
<c:if
test=
"${report.supplementGroup eq '3565898923067676254'}"
>
服务集团
</c:if>
<c:if
test=
"${report.supplementGroup eq '3806696792996264972'}"
>
文化集团
</c:if>
<c:if
test=
"${report.supplementGroup eq '3806696792996264972'}"
>
文化集团
</c:if>
<c:if
test=
"${report.supplementGroup eq '3770618512934949260'}"
>
文旅集团
</c:if>
<c:if
test=
"${report.supplementGroup eq '3770618512934949260'}"
>
文旅集团
</c:if>
--%>
<c:if
test=
"${report.supplementGroup eq null}"
>
--
</c:if>
<c:if
test=
"${report.supplementGroup eq null}"
>
--
</c:if>
</td>
</td>
...
...
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