Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cmszMonitorAnalysis
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
liuna
cmszMonitorAnalysis
Commits
e3191b72
Commit
e3191b72
authored
Dec 06, 2017
by
莫林毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug .
parent
c7cfe40d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
52 deletions
+55
-52
AssociateDiagosisConfigurationService.java
...nitoroperation/AssociateDiagosisConfigurationService.java
+9
-7
AssociateDiagosisConfigurationController.java
...oroperation/AssociateDiagosisConfigurationController.java
+43
-42
UpdateAnaInfo.jsp
...n/webapp/WEB-INF/views/MonitorOperation/UpdateAnaInfo.jsp
+3
-0
associatediagosisconfiguration.js
src/main/webapp/static/js/associatediagosisconfiguration.js
+0
-3
No files found.
src/main/java/com/hp/cmsz/service/monitoroperation/AssociateDiagosisConfigurationService.java
View file @
e3191b72
...
@@ -39,8 +39,6 @@ public class AssociateDiagosisConfigurationService {
...
@@ -39,8 +39,6 @@ public class AssociateDiagosisConfigurationService {
DimKpiAssociationRelInfo
d
=
dimKpiAssociationRelInfoDao
.
findOne
(
1L
);
DimKpiAssociationRelInfo
d
=
dimKpiAssociationRelInfoDao
.
findOne
(
1L
);
System
.
out
.
println
(
d
.
getDimAssociationAnaInfo
().
getAssociationType
());
System
.
out
.
println
(
d
.
getDimAssociationAnaInfo
().
getAssociationType
());
DimAssociationAnaInfo
info
=
dimAssociationAnaInfoDao
.
findOne
(
1
l
);
DimAssociationAnaInfo
info
=
dimAssociationAnaInfoDao
.
findOne
(
1
l
);
System
.
out
.
println
(
d
.
toString
());
System
.
out
.
println
(
info
.
toString
());
}
}
...
@@ -131,22 +129,30 @@ public class AssociateDiagosisConfigurationService {
...
@@ -131,22 +129,30 @@ public class AssociateDiagosisConfigurationService {
List
<
Object
>
objList
=
businessDao
.
findBusinessIdListBychannelDataSourceMapId
(
channelDataSourceMapId
);
List
<
Object
>
objList
=
businessDao
.
findBusinessIdListBychannelDataSourceMapId
(
channelDataSourceMapId
);
List
<
Long
>
longList
=
new
ArrayList
<
Long
>();
List
<
Long
>
longList
=
new
ArrayList
<
Long
>();
System
.
out
.
println
(
objList
==
null
?
"null"
:
"size "
+
objList
.
size
());
if
(
objList
==
null
||
objList
.
size
()
<
1
)
{
return
longList
;
}
else
{
for
(
Object
o
:
objList
)
{
for
(
Object
o
:
objList
)
{
longList
.
add
((
Long
)
o
);
longList
.
add
((
Long
)
o
);
}
}
return
longList
;
return
longList
;
}
}
}
public
List
<
Long
>
findBusinessIdListBychannelDataSourceMapIdList
(
List
<
Long
>
channelDataSourceMapIdList
)
{
public
List
<
Long
>
findBusinessIdListBychannelDataSourceMapIdList
(
List
<
Long
>
channelDataSourceMapIdList
)
{
List
<
Object
>
objList
=
businessDao
.
findBusinessIdListBychannelDataSourceMapIdList
(
channelDataSourceMapIdList
);
List
<
Object
>
objList
=
businessDao
.
findBusinessIdListBychannelDataSourceMapIdList
(
channelDataSourceMapIdList
);
List
<
Long
>
longList
=
new
ArrayList
<
Long
>();
List
<
Long
>
longList
=
new
ArrayList
<
Long
>();
if
(
objList
==
null
||
objList
.
size
()
<
1
)
{
return
longList
;
}
else
{
for
(
Object
o
:
objList
)
{
for
(
Object
o
:
objList
)
{
longList
.
add
((
Long
)
o
);
longList
.
add
((
Long
)
o
);
}
}
return
longList
;
return
longList
;
}
}
}
//
//
public
List
<
DimKpi
>
findDimKpiListBybusnameIdList
(
List
<
Long
>
busnameIdList
)
{
public
List
<
DimKpi
>
findDimKpiListBybusnameIdList
(
List
<
Long
>
busnameIdList
)
{
return
dimKpiDao
.
findDimKpiListBybusnameIdList
(
busnameIdList
);
return
dimKpiDao
.
findDimKpiListBybusnameIdList
(
busnameIdList
);
...
@@ -162,10 +168,8 @@ public class AssociateDiagosisConfigurationService {
...
@@ -162,10 +168,8 @@ public class AssociateDiagosisConfigurationService {
//1 删除 指标表 数据
//1 删除 指标表 数据
int
n
=
dimKpiAssociationRelInfoDao
.
deleteByAssociationId
(
associationIdL
);
int
n
=
dimKpiAssociationRelInfoDao
.
deleteByAssociationId
(
associationIdL
);
System
.
out
.
println
(
"n=="
+
n
);
//更新 指标表和 配置表
//更新 指标表和 配置表
List
<
DimKpiAssociationRelInfo
>
relInfos
=
(
List
<
DimKpiAssociationRelInfo
>)
dimKpiAssociationRelInfoDao
.
save
(
dimKpiAssociationRelInfoList
);
List
<
DimKpiAssociationRelInfo
>
relInfos
=
(
List
<
DimKpiAssociationRelInfo
>)
dimKpiAssociationRelInfoDao
.
save
(
dimKpiAssociationRelInfoList
);
System
.
out
.
println
(
"*** "
+
relInfos
.
size
());
}
}
...
@@ -177,13 +181,11 @@ public class AssociateDiagosisConfigurationService {
...
@@ -177,13 +181,11 @@ public class AssociateDiagosisConfigurationService {
// System.out.println("n===="+n);
// System.out.println("n===="+n);
//更新 指标表和 配置表
//更新 指标表和 配置表
DimAssociationAnaInfo
info
=
dimAssociationAnaInfoDao
.
save
(
dimAssociationAnaInfo
);
DimAssociationAnaInfo
info
=
dimAssociationAnaInfoDao
.
save
(
dimAssociationAnaInfo
);
System
.
out
.
println
(
"_-_ "
+
info
.
getAssociationId
());
}
}
public
void
deleteAssociDigConfig
(
Long
associationId
)
{
public
void
deleteAssociDigConfig
(
Long
associationId
)
{
dimAssociationAnaInfoDao
.
delete
(
associationId
);
dimAssociationAnaInfoDao
.
delete
(
associationId
);
System
.
out
.
println
(
"delete---"
);
}
}
...
...
src/main/java/com/hp/cmsz/web/monitoroperation/AssociateDiagosisConfigurationController.java
View file @
e3191b72
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/views/MonitorOperation/UpdateAnaInfo.jsp
View file @
e3191b72
...
@@ -374,6 +374,8 @@
...
@@ -374,6 +374,8 @@
return
;
return
;
}
}
$
(
"#updateAnaInfo"
).
attr
(
"disabled"
,
"disabled"
);
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
async
:
true
,
async
:
true
,
...
@@ -396,6 +398,7 @@
...
@@ -396,6 +398,7 @@
}
}
});
});
//$("#updateAnaInfo").removeAttr("disabled");
/*$.ajax({
/*$.ajax({
type: 'GET',
type: 'GET',
...
...
src/main/webapp/static/js/associatediagosisconfiguration.js
View file @
e3191b72
...
@@ -25,7 +25,6 @@ function failureDelete(){
...
@@ -25,7 +25,6 @@ function failureDelete(){
function
radioChoose
(
e
){
function
radioChoose
(
e
){
$
(
"#updateIndicatorsBtn"
).
removeAttr
(
"disabled"
);
$
(
"#updateIndicatorsBtn"
).
removeAttr
(
"disabled"
);
$
(
"#anaInfoSelected"
).
val
(
e
.
id
);
$
(
"#anaInfoSelected"
).
val
(
e
.
id
);
console
.
log
(
e
.
id
);
}
}
...
@@ -205,7 +204,6 @@ table_pagging.prototype={
...
@@ -205,7 +204,6 @@ table_pagging.prototype={
tdContext
=
context
;
tdContext
=
context
;
}
else
{
}
else
{
console
.
log
(
this
.
objectlist
);
if
(
k
==
1
){
if
(
k
==
1
){
tdContext
=
this
.
getProviceData
(
this
.
objectlist
[
i
],
this
.
header
[
k
][
1
]);
tdContext
=
this
.
getProviceData
(
this
.
objectlist
[
i
],
this
.
header
[
k
][
1
]);
...
@@ -227,7 +225,6 @@ table_pagging.prototype={
...
@@ -227,7 +225,6 @@ table_pagging.prototype={
}
}
if
(
k
==
0
)
{
if
(
k
==
0
)
{
tdContext
=
"<input type='radio' name='update'id='"
+
this
.
getData
(
this
.
objectlist
[
i
],
this
.
header
[
0
][
1
])
+
"' onclick='radioChoose(this);'/>"
;
tdContext
=
"<input type='radio' name='update'id='"
+
this
.
getData
(
this
.
objectlist
[
i
],
this
.
header
[
0
][
1
])
+
"' onclick='radioChoose(this);'/>"
;
console
.
log
(
tdContext
)
}
}
if
(
k
==
4
){
if
(
k
==
4
){
...
...
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