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
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
137 additions
and
116 deletions
+137
-116
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
+70
-66
WorkbenchController.java
src/main/java/com/ejweb/modules/workbench/web/WorkbenchController.java
+4
-4
ReportDao.xml
src/main/resources/mappings/modules/report/ReportDao.xml
+48
-40
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 {
}
private
String
area
;
//角色
private
String
userRoleName
=
""
;
...
...
src/main/java/com/ejweb/modules/workbench/service/WorkbenchService.java
View file @
d43e465c
...
...
@@ -95,88 +95,92 @@ public class WorkbenchService extends CrudService<ReportDao, ReportEntity> {
workbench
.
setRepStatusTotal
(
workbench
.
getUnProcess
()
+
workbench
.
getProcessing
()
+
workbench
.
getProcessed
()
+
workbench
.
getClosed
());
List
<
HashMap
>
types
=
reportDao
.
getReportType
(
workbench
);
for
(
HashMap
type
:
types
)
{
//营销
Object
sale
=
type
.
get
(
"sale"
);
workbench
.
setSale
(
Integer
.
valueOf
(
sale
.
toString
()));
//工程
Object
project
=
type
.
get
(
"project"
);
workbench
.
setProject
(
Integer
.
valueOf
(
project
.
toString
()));
//成本
Object
cost
=
type
.
get
(
"cost"
);
workbench
.
setCost
(
Integer
.
valueOf
(
cost
.
toString
()));
//招采
Object
forMining
=
type
.
get
(
"forMining"
);
workbench
.
setForMining
(
Integer
.
valueOf
(
forMining
.
toString
()));
//财务
Object
finance
=
type
.
get
(
"finance"
);
workbench
.
setFinance
(
Integer
.
valueOf
(
finance
.
toString
()));
//法务
Object
forensic
=
type
.
get
(
"forensic"
);
workbench
.
setForensic
(
Integer
.
valueOf
(
forensic
.
toString
()));
//行政
Object
administration
=
type
.
get
(
"administration"
);
workbench
.
setAdministration
(
Integer
.
valueOf
(
administration
.
toString
()));
//人力
Object
manpower
=
type
.
get
(
"manpower"
);
workbench
.
setManpower
(
Integer
.
valueOf
(
manpower
.
toString
()));
//开发
Object
development
=
type
.
get
(
"development"
);
workbench
.
setDevelopment
(
Integer
.
valueOf
(
development
.
toString
()));
//研发
Object
rAndD
=
type
.
get
(
"rAndD"
);
workbench
.
setrAndD
(
Integer
.
valueOf
(
rAndD
.
toString
()));
//投资
Object
iAndD
=
type
.
get
(
"iAndD"
);
workbench
.
setiAndD
(
Integer
.
valueOf
(
iAndD
.
toString
()));
//其他
Object
Other
=
type
.
get
(
"Other"
);
workbench
.
setOther
(
Integer
.
valueOf
(
Other
.
toString
()));
//物业管理
Object
propertyManagement
=
type
.
get
(
"propertyManagement"
);
workbench
.
setPropertyManagement
(
Integer
.
valueOf
(
propertyManagement
.
toString
()));
//酒店管理
Object
hotelManagement
=
type
.
get
(
"hotelManagement"
);
workbench
.
setHotelManagement
(
Integer
.
valueOf
(
hotelManagement
.
toString
()));
//商业管理
Object
syManagement
=
type
.
get
(
"businessManagement"
);
workbench
.
setBusinessManagement
(
Integer
.
valueOf
(
syManagement
.
toString
()));
}
/* for (HashMap type : types) {
//营销
Object sale = type.get("sale");
workbench.setSale(Integer.valueOf(sale.toString()));
//工程
Object project = type.get("project");
workbench.setProject(Integer.valueOf(project.toString()));
//成本
Object cost = type.get("cost");
workbench.setCost(Integer.valueOf(cost.toString()));
//招采
Object forMining = type.get("forMining");
workbench.setForMining(Integer.valueOf(forMining.toString()));
//财务
Object finance = type.get("finance");
workbench.setFinance(Integer.valueOf(finance.toString()));
//法务
Object forensic = type.get("forensic");
workbench.setForensic(Integer.valueOf(forensic.toString()));
//行政
Object administration = type.get("administration");
workbench.setAdministration(Integer.valueOf(administration.toString()));
//人力
Object manpower = type.get("manpower");
workbench.setManpower(Integer.valueOf(manpower.toString()));
//开发
Object development = type.get("development");
workbench.setDevelopment(Integer.valueOf(development.toString()));
//研发
Object rAndD = type.get("rAndD");
workbench.setrAndD(Integer.valueOf(rAndD.toString()));
//投资
Object iAndD = type.get("iAndD");
workbench.setiAndD(Integer.valueOf(iAndD.toString()));
//其他
Object Other = type.get("Other");
workbench.setOther(Integer.valueOf(Other.toString()));
//物业管理
Object propertyManagement = type.get("propertyManagement");
workbench.setPropertyManagement(Integer.valueOf(propertyManagement.toString()));
//酒店管理
Object hotelManagement = type.get("hotelManagement");
workbench.setHotelManagement(Integer.valueOf(hotelManagement.toString()));
//商业管理
Object syManagement = type.get("businessManagement");
workbench.setBusinessManagement(Integer.valueOf(syManagement.toString()));
}*/
List
<
HashMap
>
totals
=
reportDao
.
getTotal
(
workbench
);
for
(
HashMap
total
:
totals
)
{
if
(
StringUtils
.
isNotBlank
((
String
)
total
.
get
(
"
report_source
"
)))
{
if
(
"web"
.
equals
((
String
)
total
.
get
(
"
report_source
"
)))
{
if
(
StringUtils
.
isNotBlank
((
String
)
total
.
get
(
"
REPORT_SOURCE
"
)))
{
if
(
"web"
.
equals
((
String
)
total
.
get
(
"
REPORT_SOURCE
"
)))
{
//官网
workbench
.
setWeb
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
report_source
)"
))));
}
else
if
(
"oa"
.
contains
((
String
)
total
.
get
(
"
report_source
"
)))
{
workbench
.
setWeb
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
REPORT_SOURCE
)"
))));
}
else
if
(
"oa"
.
contains
((
String
)
total
.
get
(
"
REPORT_SOURCE
"
)))
{
//融创oa
workbench
.
setOa
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
report_source
)"
))));
}
else
if
(
"supplier"
.
equals
(
String
.
valueOf
(
total
.
get
(
"
report_source
"
))))
{
workbench
.
setOa
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
REPORT_SOURCE
)"
))));
}
else
if
(
"supplier"
.
equals
(
String
.
valueOf
(
total
.
get
(
"
REPORT_SOURCE
"
))))
{
//供应商
workbench
.
setSupplier
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
report_source
)"
))));
}
else
if
(
"wechat"
.
equals
(
String
.
valueOf
(
total
.
get
(
"
report_source
"
))))
{
workbench
.
setSupplier
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
REPORT_SOURCE
)"
))));
}
else
if
(
"wechat"
.
equals
(
String
.
valueOf
(
total
.
get
(
"
REPORT_SOURCE
"
))))
{
//微信公众号
workbench
.
setWeChat
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
report_source
)"
))));
}
else
if
(
"sunacE"
.
equals
(
String
.
valueOf
(
total
.
get
(
"
report_source
"
))))
{
workbench
.
setWeChat
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
REPORT_SOURCE
)"
))));
}
else
if
(
"sunacE"
.
equals
(
String
.
valueOf
(
total
.
get
(
"
REPORT_SOURCE
"
))))
{
//融E
workbench
.
setSunacE
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
report_source
)"
))));
}
else
if
(
"offline"
.
equals
(
String
.
valueOf
(
total
.
get
(
"
report_source
"
))))
{
workbench
.
setSunacE
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
REPORT_SOURCE
)"
))));
}
else
if
(
"offline"
.
equals
(
String
.
valueOf
(
total
.
get
(
"
REPORT_SOURCE
"
))))
{
//线下扫码
workbench
.
setOffline
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
report_source
)"
))));
}
else
if
(
"tel"
.
equals
(
String
.
valueOf
(
total
.
get
(
"
report_source
"
))))
{
workbench
.
setOffline
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
REPORT_SOURCE
)"
))));
}
else
if
(
"tel"
.
equals
(
String
.
valueOf
(
total
.
get
(
"
REPORT_SOURCE
"
))))
{
//电话
workbench
.
setPhone
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
report_source
)"
))));
}
else
if
(
"email"
.
equals
((
String
)
total
.
get
(
"
report_source
"
)))
{
workbench
.
setPhone
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
REPORT_SOURCE
)"
))));
}
else
if
(
"email"
.
equals
((
String
)
total
.
get
(
"
REPORT_SOURCE
"
)))
{
//邮件
workbench
.
setEmail
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
report_source
)"
))));
}
else
if
(
"visit"
.
equals
((
String
)
total
.
get
(
"
report_source
"
)))
{
workbench
.
setEmail
(
Integer
.
valueOf
(
String
.
valueOf
(
total
.
get
(
"COUNT(
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
.
getSunacE
()
+
workbench
.
getOffline
()
+
workbench
.
getPhone
()
+
workbench
.
getEmail
()
+
workbench
.
getVisit
());
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;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.PrintWriter
;
import
java.util.List
;
...
...
@@ -45,16 +46,14 @@ public class WorkbenchController extends BaseController {
private
String
selAreaTemp
;
//所选择的区域
@RequiresPermissions
(
"workbench:view"
)
@RequestMapping
(
value
=
{
"list"
,
""
})
public
String
getWorkbench
(
Model
model
,
WorkbenchBean
bean
)
{
System
.
out
.
println
(
"处理状态:======================================"
+
bean
.
getProcessStatus
());
WorkbenchBean
workbench
;
selAreaTemp
=
bean
.
getArea
();
try
{
User
user
=
UserUtils
.
getUser
();
bean
=
getWorkbenchByUser
(
user
,
bean
);
...
...
@@ -63,6 +62,7 @@ public class WorkbenchController extends BaseController {
}
else
if
(
"1"
.
equals
(
bean
.
getProcessStatus
()))
{
bean
.
setProcessStatus
(
"1"
);
}
System
.
out
.
println
(
"处理状态:======================================"
+
bean
.
getProcessStatus
());
List
<
ReportEntity
>
repList
=
workbenchService
.
getRepList
(
bean
);
/*封装类型 类别数据*/
...
...
@@ -121,6 +121,7 @@ public class WorkbenchController extends BaseController {
res
.
put
(
"bench"
,
bean
);
//区域
res
.
put
(
"supplementGroup"
,
bean
.
getSupplementGroup
());
res
.
put
(
"area"
,
bean
.
getArea
());
//1.举报状态
res
.
put
(
"unProcess"
,
bean
.
getUnProcess
());
...
...
@@ -188,7 +189,6 @@ public class WorkbenchController extends BaseController {
bean
.
setIsAdmin
(
user
.
getId
());
}
}
bean
.
setArea
(
selAreaTemp
);
bean
=
workbenchService
.
getWorkbench
(
bean
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
src/main/resources/mappings/modules/report/ReportDao.xml
View file @
d43e465c
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/views/modules/workbench/workbench.jsp
View file @
d43e465c
...
...
@@ -11,18 +11,23 @@
<script
src=
"${pageContext.request.contextPath}/assets/My97DatePicker/WdatePicker.js"
></script>
<script>
$
(
function
()
{
/*每次加载页面时去查询区域*/
getRegion
();
var
startDate
=
$
(
"#startDate"
).
val
();
var
endDate
=
$
(
"#endDate"
).
val
();
var
supplementGroup
=
$
(
"#supplementGroup"
).
val
();
var
selectedArea
=
"${workbench.area}"
;
var
start
=
startDate
.
substring
(
5
).
replace
(
"-"
,
"."
);
var
end
=
endDate
.
substring
(
5
).
replace
(
"-"
,
"."
);
var
selectedArea
=
$
(
"#area"
).
val
();
console
.
log
(
"区域"
+
selectedArea
);
console
.
log
(
"开始"
+
start
);
console
.
log
(
"结束"
+
end
);
$
.
ajax
({
type
:
"POST"
,
dataType
:
"JSON"
,
data
:
{
"startDate"
:
startDate
,
"endDate"
:
endDate
},
data
:
{
"startDate"
:
startDate
,
"endDate"
:
endDate
,
"supplementGroup"
:
supplementGroup
,
"area"
:
selectedArea
},
url
:
"getHighcharts.action"
,
success
:
function
(
result
)
{
...
...
@@ -483,8 +488,6 @@
/* $('#total').highcharts({
});*/
getRegion
();
});
//选择区域
// function selectArea(value){
...
...
@@ -515,6 +518,10 @@
slsb
.
append
(
new
Option
(
data1
[
i
].
name
,
data1
[
i
].
id
));
}
}
var
area
=
"${workbench.area}"
;
if
(
area
!=
null
&&
area
!=
''
){
$
(
"#area"
).
val
(
area
);
}
},
error
:
function
(
data
){
alert
(
系统错误
);
...
...
@@ -650,11 +657,12 @@
<td>
${vs.index + 1}
</td>
<td>
${report.supplementTitle}
</td>
<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 '3565898923067676254'}"
>
服务集团
</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>
</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