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
c1f27223
Commit
c1f27223
authored
Sep 10, 2024
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交NGN工作票数据
parent
972320ea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
+13
-8
DZMTSJServiceImpl.java
...boot/module/jxiop/biz/jxdz/factory/DZMTSJServiceImpl.java
+6
-4
application-dev1.properties
...onitor-biz/src/main/resources/application-dev1.properties
+4
-1
JXDZMapper.xml
...itor-biz/src/main/resources/mapper/cluster/JXDZMapper.xml
+3
-3
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/jxdz/factory/DZMTSJServiceImpl.java
View file @
c1f27223
...
...
@@ -19,6 +19,7 @@ import org.slf4j.LoggerFactory;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.text.ParseException
;
import
java.time.LocalDate
;
...
...
@@ -50,6 +51,7 @@ public class DZMTSJServiceImpl implements IJXDZService {
}
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
List
buildData
(
Integer
accessType
,
Long
dateTime
)
{
List
<
StationDailyDataVO
>
list
=
new
ArrayList
<>();
if
(
JXDZAccessTypeEnum
.
BULU
.
getCode
().
equals
(
accessType
))
{
...
...
@@ -80,14 +82,14 @@ public class DZMTSJServiceImpl implements IJXDZService {
stationDailyDataVO
.
setName
(
name
);
stationDailyDataVO
.
setWorkTicketTotalNums
(
jxdzMapper
.
countWorkTicketTotalByCode
(
code
).
doubleValue
());
stationDailyDataVO
.
setWorkTicketProcessingNums
(
jxdzMapper
.
countWorkTicketProcessingByCode
(
code
).
doubleValue
());
stationDailyDataVO
.
setWorkTicketInvalidatedNums
(
jxdzMapper
.
countWork
Order
InvalidatedByCode
(
code
).
doubleValue
());
stationDailyDataVO
.
setWorkTicketExecutingNums
(
jxdzMapper
.
countWorkTicketInvalidatedByCode
(
code
).
doubleValue
(
));
stationDailyDataVO
.
setWorkTicketInvalidatedNums
(
jxdzMapper
.
countWork
Ticket
InvalidatedByCode
(
code
).
doubleValue
());
stationDailyDataVO
.
setWorkTicketExecutingNums
(
Double
.
valueOf
(
0
));
stationDailyDataVO
.
setWorkTicketTerminatedNums
(
jxdzMapper
.
countWorkTicketTerminatedByCode
(
code
).
doubleValue
());
stationDailyDataVO
.
setRegularTasksNums
(
jxdzMapper
.
countRegularTasksByCode
(
code
).
doubleValue
());
stationDailyDataVO
.
setInspectionTasksNums
(
jxdzMapper
.
countInspectionTasksByCode
(
code
).
doubleValue
());
stationDailyDataVO
.
setWorkOrderTotalNums
(
jxdzMapper
.
countWorkOrderTotalByCode
(
code
).
doubleValue
());
stationDailyDataVO
.
setWorkOrderInvalidatedNums
(
jxdzMapper
.
countWorkOrder
ToBeOpen
edByCode
(
code
).
doubleValue
());
stationDailyDataVO
.
setWorkOrderToBeOpenedNums
(
jxdzMapper
.
countWorkOrderTo
tal
ByCode
(
code
).
doubleValue
());
stationDailyDataVO
.
setWorkOrderInvalidatedNums
(
jxdzMapper
.
countWorkOrder
Invalidat
edByCode
(
code
).
doubleValue
());
stationDailyDataVO
.
setWorkOrderToBeOpenedNums
(
jxdzMapper
.
countWorkOrderTo
BeOpened
ByCode
(
code
).
doubleValue
());
stationDailyDataVO
.
setWorkOrderTerminatedNums
(
jxdzMapper
.
countWorkOrderTerminatedByCode
(
code
).
doubleValue
());
stationDailyDataVO
.
setWorkOrderStartNums
(
jxdzMapper
.
countWorkOrderStartByCode
(
code
).
doubleValue
());
//调用core 接口
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/resources/application-dev1.properties
View file @
c1f27223
...
...
@@ -169,7 +169,10 @@ jxdzTokenUserName=jiangxi_epc
jxdzTokenPassword
=
123456
jxdzPublicKey
=
04508e9c4df8463c784df2dde2536e792851a8f3fd0e5ff29b7bf1a5d9e3f566aa49a7a5fe7683e3dc4dc30dd7bc8773838a9e4fbcf7dfac53461c8777a6aed691
jxdzScheduledEnable
=
false
amos.system.user.user-name
=
hygf_robot
amos.system.user.password
=
a123456789
amos.system.user.app-key
=
AMOS_STUDIO
amos.system.user.product
=
AMOS_STUDIO_WEB
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/resources/mapper/cluster/JXDZMapper.xml
View file @
c1f27223
...
...
@@ -9,15 +9,15 @@
<select
id=
"countWorkTicketProcessingByCode"
resultType=
"java.lang.Integer"
>
select COUNT(1) from yxgl_gzp_main where WERKS=#{code} and ZSTAT in
('01','02','03','04','05','06','07','08','09','10','11','12','15','17','20','21','22','23','24','25','26','27','28','29','30','31','32','33')
('01','02','03','04','05','06','07','08','09','10','11','12','15','1
6','1
7','20','21','22','23','24','25','26','27','28','29','30','31','32','33')
</select>
<select
id=
"countWorkTicketInvalidatedByCode"
resultType=
"java.lang.Integer"
>
select COUNT(1) from yxgl_gzp_main where WERKS=#{code} and ZSTAT
='19'
select COUNT(1) from yxgl_gzp_main where WERKS=#{code} and ZSTAT
in ('19','18')
</select>
<select
id=
"countWorkTicketTerminatedByCode"
resultType=
"java.lang.Integer"
>
select COUNT(1) from yxgl_gzp_main where WERKS=#{code} and ZSTAT
='13'
select COUNT(1) from yxgl_gzp_main where WERKS=#{code} and ZSTAT
in ('13','14')
</select>
<select
id=
"countRegularTasksByCode"
resultType=
"java.lang.Integer"
>
...
...
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