Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
f3eee565
Commit
f3eee565
authored
Jul 11, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
e8f320a1
69d4e8d0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
35 deletions
+44
-35
BasicGridAcceptanceServiceImpl.java
...hygf/biz/service/impl/BasicGridAcceptanceServiceImpl.java
+5
-8
OverviewQuestionDto.java
...n/amos/boot/module/jxiop/api/dto/OverviewQuestionDto.java
+3
-2
McbWarningServiceImpl.java
.../module/jxiop/biz/service/impl/McbWarningServiceImpl.java
+36
-25
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/BasicGridAcceptanceServiceImpl.java
View file @
f3eee565
...
@@ -87,18 +87,15 @@ public class BasicGridAcceptanceServiceImpl
...
@@ -87,18 +87,15 @@ public class BasicGridAcceptanceServiceImpl
return
pageNew
;
return
pageNew
;
}
}
public
HygfOnGrid
saveEntity
(
HygfOnGrid
grid
)
{
public
synchronized
HygfOnGrid
saveEntity
(
HygfOnGrid
grid
)
{
if
(
grid
.
getSequenceNbr
()
!=
null
)
{
LambdaQueryWrapper
<
HygfOnGrid
>
hog
=
new
LambdaQueryWrapper
<>();
onGridMapper
.
updateById
(
grid
);
hog
.
eq
(
HygfOnGrid:
:
getPeasantHouseholdId
,
grid
.
getPeasantHouseholdId
());
}
else
{
hygfOnGridServiceImpl
.
saveOrUpdate
(
grid
,
hog
);
onGridMapper
.
insert
(
grid
);
}
return
grid
;
return
grid
;
}
}
@GlobalTransactional
@GlobalTransactional
public
HygfOnGrid
saveAndCommit
(
HygfOnGrid
grid
,
String
userId
)
{
public
synchronized
HygfOnGrid
saveAndCommit
(
HygfOnGrid
grid
,
String
userId
)
{
BasicGridAcceptance
basicGridAcceptance
=
basicGridAcceptanceMapper
BasicGridAcceptance
basicGridAcceptance
=
basicGridAcceptanceMapper
.
selectOne
(
new
LambdaQueryWrapper
<
BasicGridAcceptance
>()
.
selectOne
(
new
LambdaQueryWrapper
<
BasicGridAcceptance
>()
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/OverviewQuestionDto.java
View file @
f3eee565
...
@@ -13,8 +13,9 @@ public class OverviewQuestionDto {
...
@@ -13,8 +13,9 @@ public class OverviewQuestionDto {
private
String
createDate
;
private
String
createDate
;
@ApiModelProperty
(
value
=
"问题内容"
)
@ApiModelProperty
(
value
=
"问题内容"
)
private
String
warningContent
;
private
String
content
;
@ApiModelProperty
(
value
=
"问题内容"
)
private
String
content_
;
@ApiModelProperty
(
value
=
"问题完成情况描述"
)
@ApiModelProperty
(
value
=
"问题完成情况描述"
)
private
String
completionStatusDesc
;
private
String
completionStatusDesc
;
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/McbWarningServiceImpl.java
View file @
f3eee565
...
@@ -3,8 +3,6 @@ package com.yeejoin.amos.boot.module.jxiop.biz.service.impl;
...
@@ -3,8 +3,6 @@ package com.yeejoin.amos.boot.module.jxiop.biz.service.impl;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.OverviewQuestionDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.OverviewQuestionDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.RectificationUnitClassifyTreeDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.RectificationUnitClassifyTreeDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.feign.McbWarningFeign
;
import
com.yeejoin.amos.boot.module.jxiop.api.feign.McbWarningFeign
;
...
@@ -13,7 +11,6 @@ import com.yeejoin.amos.boot.module.jxiop.api.service.IPermissionService;
...
@@ -13,7 +11,6 @@ import com.yeejoin.amos.boot.module.jxiop.api.service.IPermissionService;
import
com.yeejoin.amos.boot.module.jxiop.biz.mcbwarningmapper.McbWarningMapper
;
import
com.yeejoin.amos.boot.module.jxiop.biz.mcbwarningmapper.McbWarningMapper
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.ibatis.annotations.Param
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -75,7 +72,7 @@ public class McbWarningServiceImpl implements IMcbWarningService {
...
@@ -75,7 +72,7 @@ public class McbWarningServiceImpl implements IMcbWarningService {
*/
*/
@Override
@Override
public
Page
<
Map
<
String
,
Object
>>
queryWarningPage
(
Page
<
Map
<
String
,
Object
>>
page
,
Integer
processingStatus
,
public
Page
<
Map
<
String
,
Object
>>
queryWarningPage
(
Page
<
Map
<
String
,
Object
>>
page
,
Integer
processingStatus
,
String
eventLevel
,
String
createDate
,
String
startTime
,
String
endTime
,
String
warningSourceType
,
String
objectName
,
String
overView
)
{
String
eventLevel
,
String
createDate
,
String
startTime
,
String
endTime
,
String
warningSourceType
,
String
objectName
,
String
overView
)
{
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
long
start
=
(
page
.
getCurrent
()
-
1
)
*
page
.
getSize
();
long
start
=
(
page
.
getCurrent
()
-
1
)
*
page
.
getSize
();
long
size
=
page
.
getSize
();
long
size
=
page
.
getSize
();
...
@@ -83,9 +80,14 @@ public class McbWarningServiceImpl implements IMcbWarningService {
...
@@ -83,9 +80,14 @@ public class McbWarningServiceImpl implements IMcbWarningService {
projectOrgCodes
.
add
(
"NULL"
);
projectOrgCodes
.
add
(
"NULL"
);
}
}
List
<
Map
<
String
,
Object
>>
records
=
mcbWarningMapper
.
queryWarningList
(
start
,
size
,
projectOrgCodes
,
List
<
Map
<
String
,
Object
>>
records
=
mcbWarningMapper
.
queryWarningList
(
start
,
size
,
projectOrgCodes
,
processingStatus
,
eventLevel
,
createDate
,
startTime
,
endTime
,
warningSourceType
,
objectName
,
overView
);
processingStatus
,
eventLevel
,
createDate
,
startTime
,
endTime
,
warningSourceType
,
objectName
,
overView
);
Long
total
=
mcbWarningMapper
.
queryWarningCount
(
projectOrgCodes
,
processingStatus
,
eventLevel
,
createDate
,
startTime
,
endTime
,
if
(
CollectionUtil
.
isNotEmpty
(
records
))
{
warningSourceType
,
objectName
,
overView
);
for
(
Map
<
String
,
Object
>
record
:
records
)
{
record
.
put
(
"CONTENT"
,
record
.
get
(
"CONTENT_"
));
}
}
Long
total
=
mcbWarningMapper
.
queryWarningCount
(
projectOrgCodes
,
processingStatus
,
eventLevel
,
createDate
,
startTime
,
endTime
,
warningSourceType
,
objectName
,
overView
);
page
.
setRecords
(
records
);
page
.
setRecords
(
records
);
page
.
setTotal
(
total
);
page
.
setTotal
(
total
);
return
page
;
return
page
;
...
@@ -96,15 +98,20 @@ public class McbWarningServiceImpl implements IMcbWarningService {
...
@@ -96,15 +98,20 @@ public class McbWarningServiceImpl implements IMcbWarningService {
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
if
(
startTime
!=
null
&&
startTime
!=
""
)
{
if
(
startTime
!=
null
&&
startTime
!=
""
)
{
startTime
+=
" 00:00:00"
;
startTime
+=
" 00:00:00"
;
}
}
if
(
endTime
!=
null
&&
endTime
!=
""
)
{
if
(
endTime
!=
null
&&
endTime
!=
""
)
{
endTime
+=
" 23:59:59"
;
endTime
+=
" 23:59:59"
;
}
}
List
<
OverviewQuestionDto
>
list
=
mcbWarningMapper
.
overviewQuestionList
(
(
current
-
1
)
*
size
,
size
,
projectOrgCodes
,
startTime
,
endTime
);
List
<
OverviewQuestionDto
>
list
=
mcbWarningMapper
.
overviewQuestionList
((
current
-
1
)
*
size
,
size
,
projectOrgCodes
,
startTime
,
endTime
);
if
(
CollectionUtil
.
isNotEmpty
(
list
))
{
for
(
OverviewQuestionDto
overviewQuestionDto
:
list
)
{
overviewQuestionDto
.
setContent
(
overviewQuestionDto
.
getContent_
());
}
}
Integer
total
=
mcbWarningMapper
.
overviewQuestionListTotal
(
projectOrgCodes
,
startTime
,
endTime
);
Integer
total
=
mcbWarningMapper
.
overviewQuestionListTotal
(
projectOrgCodes
,
startTime
,
endTime
);
Page
<
OverviewQuestionDto
>
pagenew
=
new
Page
<>();
Page
<
OverviewQuestionDto
>
pagenew
=
new
Page
<>();
pagenew
.
setCurrent
(
current
);
pagenew
.
setCurrent
(
current
);
...
@@ -122,14 +129,14 @@ public class McbWarningServiceImpl implements IMcbWarningService {
...
@@ -122,14 +129,14 @@ public class McbWarningServiceImpl implements IMcbWarningService {
* @return 预警信息总数
* @return 预警信息总数
*/
*/
@Override
@Override
public
Long
queryWarningCount
(
Integer
processingStatus
,
String
eventLevel
,
String
createDate
,
String
startTime
,
String
endTime
,
public
Long
queryWarningCount
(
Integer
processingStatus
,
String
eventLevel
,
String
createDate
,
String
startTime
,
String
endTime
,
String
warningSourceType
,
String
objectName
,
String
overView
)
{
String
warningSourceType
,
String
objectName
,
String
overView
)
{
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
List
<
String
>
projectOrgCodes
=
this
.
getProjectOrgCodes
();
if
(
projectOrgCodes
.
isEmpty
())
{
if
(
projectOrgCodes
.
isEmpty
())
{
projectOrgCodes
.
add
(
"NULL"
);
projectOrgCodes
.
add
(
"NULL"
);
}
}
return
mcbWarningMapper
.
queryWarningCount
(
projectOrgCodes
,
processingStatus
,
eventLevel
,
createDate
,
startTime
,
endTime
,
return
mcbWarningMapper
.
queryWarningCount
(
projectOrgCodes
,
processingStatus
,
eventLevel
,
createDate
,
startTime
,
endTime
,
warningSourceType
,
objectName
,
overView
);
warningSourceType
,
objectName
,
overView
);
}
}
/**
/**
...
@@ -148,8 +155,13 @@ public class McbWarningServiceImpl implements IMcbWarningService {
...
@@ -148,8 +155,13 @@ public class McbWarningServiceImpl implements IMcbWarningService {
projectOrgCodes
.
add
(
"NULL"
);
projectOrgCodes
.
add
(
"NULL"
);
}
}
List
<
Map
<
String
,
Object
>>
records
=
mcbWarningMapper
.
queryQuestionList
(
start
,
offset
,
projectOrgCodes
,
List
<
Map
<
String
,
Object
>>
records
=
mcbWarningMapper
.
queryQuestionList
(
start
,
offset
,
projectOrgCodes
,
completionStatus
,
startTime
,
endTime
);
completionStatus
,
startTime
,
endTime
);
Long
total
=
mcbWarningMapper
.
queryQuestionCount
(
projectOrgCodes
,
completionStatus
,
startTime
,
endTime
);
if
(
CollectionUtil
.
isNotEmpty
(
records
))
{
for
(
Map
<
String
,
Object
>
record
:
records
)
{
record
.
put
(
"CONTENT"
,
record
.
get
(
"CONTENT_"
));
}
}
Long
total
=
mcbWarningMapper
.
queryQuestionCount
(
projectOrgCodes
,
completionStatus
,
startTime
,
endTime
);
page
.
setRecords
(
records
);
page
.
setRecords
(
records
);
page
.
setTotal
(
total
);
page
.
setTotal
(
total
);
return
page
;
return
page
;
...
@@ -167,7 +179,7 @@ public class McbWarningServiceImpl implements IMcbWarningService {
...
@@ -167,7 +179,7 @@ public class McbWarningServiceImpl implements IMcbWarningService {
if
(
projectOrgCodes
.
isEmpty
())
{
if
(
projectOrgCodes
.
isEmpty
())
{
projectOrgCodes
.
add
(
"NULL"
);
projectOrgCodes
.
add
(
"NULL"
);
}
}
return
mcbWarningMapper
.
queryQuestionCount
(
projectOrgCodes
,
completionStatus
,
startTime
,
endTime
);
return
mcbWarningMapper
.
queryQuestionCount
(
projectOrgCodes
,
completionStatus
,
startTime
,
endTime
);
}
}
/**
/**
...
@@ -338,20 +350,19 @@ public class McbWarningServiceImpl implements IMcbWarningService {
...
@@ -338,20 +350,19 @@ public class McbWarningServiceImpl implements IMcbWarningService {
return
projectOrgCodes
;
return
projectOrgCodes
;
}
}
public
List
<
Map
<
String
,
Object
>>
stationOverNum
(
String
sourceAttribution
)
{
public
List
<
Map
<
String
,
Object
>>
stationOverNum
(
String
sourceAttribution
)
{
return
mcbWarningMapper
.
stationOverNum
(
sourceAttribution
);
return
mcbWarningMapper
.
stationOverNum
(
sourceAttribution
);
}
}
public
Map
<
String
,
Object
>
stationOverTotal
(
String
province
,
String
sourceAttribution
)
{
public
Map
<
String
,
Object
>
stationOverTotal
(
String
province
,
String
sourceAttribution
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"dayNum"
,
mcbWarningMapper
.
getDayTotal
(
province
,
sourceAttribution
));
map
.
put
(
"dayNum"
,
mcbWarningMapper
.
getDayTotal
(
province
,
sourceAttribution
));
map
.
put
(
"monNum"
,
mcbWarningMapper
.
getMonthTotal
(
province
,
sourceAttribution
));
map
.
put
(
"monNum"
,
mcbWarningMapper
.
getMonthTotal
(
province
,
sourceAttribution
));
map
.
put
(
"yearNum"
,
mcbWarningMapper
.
getYearTotal
(
province
,
sourceAttribution
));
map
.
put
(
"yearNum"
,
mcbWarningMapper
.
getYearTotal
(
province
,
sourceAttribution
));
return
map
;
return
map
;
}
}
}
}
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