Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张雷
/
skboot-zhongye
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
构建
提交
问题看板
文件
提交
网络
比较
分支
标签
a0265072
由
康伟
编写于
2024-12-23 16:40:47 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
kangwei: 地图隐患排查巡检统计,添加yhNum 、yclNum属性,
1 个父辈
aa8e181b
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
31 行增加
和
3 行删除
sk-base-common/src/main/java/com/skua/common/report/vo/ReportItemVO.java
sk-module-biz/src/main/java/com/skua/modules/emergency/vo/MapDatabaseResult.java
sk-module-datafill/src/main/java/com/skua/modules/report/service/impl/OperationReportServiceImpl.java
sk-base-common/src/main/java/com/skua/common/report/vo/ReportItemVO.java
查看文件 @
a026507
...
...
@@ -68,12 +68,12 @@ public class ReportItemVO {
}
public
String
getValueTbBl
()
{
valueTbBl
=
JSUtils
.
executeExpression
(
"("
+
this
.
getValue
()
+
" - "
+
this
.
getValueTb
()
+
") / "
+
this
.
getValueTb
(),
"0.0"
)
;
valueTbBl
=
JSUtils
.
executeExpression
(
"("
+
this
.
getValue
()
+
" - "
+
this
.
getValueTb
()
+
")
*100
/ "
+
this
.
getValueTb
(),
"0.0"
)
;
return
valueTbBl
;
}
public
String
getValueHbBl
()
{
valueHbBl
=
JSUtils
.
executeExpression
(
"("
+
this
.
getValue
()
+
" - "
+
this
.
getValueHb
()
+
") / "
+
this
.
getValueHb
(),
"0.0"
)
;
valueHbBl
=
JSUtils
.
executeExpression
(
"("
+
this
.
getValue
()
+
" - "
+
this
.
getValueHb
()
+
")
*100
/ "
+
this
.
getValueHb
(),
"0.0"
)
;
return
valueHbBl
;
}
}
...
...
sk-module-biz/src/main/java/com/skua/modules/emergency/vo/MapDatabaseResult.java
查看文件 @
a026507
...
...
@@ -25,8 +25,36 @@ public class MapDatabaseResult {
/**纬度*/
@ApiModelProperty
(
value
=
"纬度"
)
private
String
latitude
;
@ApiModelProperty
(
value
=
"隐患未处理数量"
)
private
Integer
yhNum
;
@ApiModelProperty
(
value
=
"已处理数量"
)
private
Integer
yclNum
;
/**隐患排查事件*/
@ApiModelProperty
(
value
=
"隐患排查事件"
)
private
List
<
DangerDatabaseResult
>
yhList
;
public
Integer
getYhNum
()
{
yhNum
=
0
;
if
(
yhList
!=
null
){
for
(
DangerDatabaseResult
result:
yhList
){
if
(
"1"
.
equals
(
result
.
getStatus
())){
yhNum
++
;
}
}
}
return
yhNum
;
}
public
Integer
getYclNum
()
{
yclNum
=
0
;
if
(
yhList
!=
null
){
for
(
DangerDatabaseResult
result:
yhList
){
if
(
"2"
.
equals
(
result
.
getStatus
())){
yclNum
++
;
}
}
}
return
yclNum
;
}
}
...
...
sk-module-datafill/src/main/java/com/skua/modules/report/service/impl/OperationReportServiceImpl.java
查看文件 @
a026507
...
...
@@ -126,7 +126,7 @@ public class OperationReportServiceImpl implements IOperationReportService {
//药剂成本高于控制目标--水务公司列表
dataViewName4411
=
ReportViewUtil
.
buildView
(
ReportConstant
.
view4411
,
"yyh,yhcyqyy"
,
departId
,
seasonTimeVO
.
getStartTime
(),
seasonTimeVO
.
getEndTime
());
sql
=
"select * from ( "
;
sql
+=
" select d.depart_name 'departName', aaa.depart_id , avg(aaa.yyh) realConsume , IFNULL(tc.target_
power
,2) 'targetConsume' ,GROUP_CONCAT(aaa.yhcyqyy) 'causeAnalysis' from "
+
dataViewName4411
+
" aaa"
;;
sql
+=
" select d.depart_name 'departName', aaa.depart_id , avg(aaa.yyh) realConsume , IFNULL(tc.target_
drug
,2) 'targetConsume' ,GROUP_CONCAT(aaa.yhcyqyy) 'causeAnalysis' from "
+
dataViewName4411
+
" aaa"
;;
sql
+=
" left join report_target_config tc on (tc.depart_id = aaa.depart_id and tc.target_year='2024')"
;
sql
+=
" left join sys_depart d on d.id = aaa.depart_id "
;
sql
+=
" group by aaa.depart_id )bbb where bbb.realConsume > bbb.targetConsume "
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论