Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
df258108
Commit
df258108
authored
Nov 22, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
9622e363
b647104c
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
75 additions
and
39 deletions
+75
-39
DataDictionaryServiceImpl.java
...ot/biz/common/service/impl/DataDictionaryServiceImpl.java
+1
-0
IAlertDispatchStatisticsService.java
...elevator/api/service/IAlertDispatchStatisticsService.java
+1
-1
IAlertMaintenanceUnitStatisticsService.java
...r/api/service/IAlertMaintenanceUnitStatisticsService.java
+1
-1
IAlertPlaceStatisticsService.java
...le/elevator/api/service/IAlertPlaceStatisticsService.java
+1
-1
IAlertRescueStatisticsService.java
...e/elevator/api/service/IAlertRescueStatisticsService.java
+1
-1
IAlertStatisticsService.java
.../module/elevator/api/service/IAlertStatisticsService.java
+1
-1
IAlertUseUnitStatisticsService.java
.../elevator/api/service/IAlertUseUnitStatisticsService.java
+1
-1
StatisticsController.java
.../module/elevator/biz/controller/StatisticsController.java
+12
-12
AlertDispatchStatisticsServiceImpl.java
.../biz/service/impl/AlertDispatchStatisticsServiceImpl.java
+10
-3
AlertMaintenanceUnitStatisticsServiceImpl.java
...rvice/impl/AlertMaintenanceUnitStatisticsServiceImpl.java
+10
-3
AlertPlaceStatisticsServiceImpl.java
...tor/biz/service/impl/AlertPlaceStatisticsServiceImpl.java
+9
-3
AlertRescueStatisticsServiceImpl.java
...or/biz/service/impl/AlertRescueStatisticsServiceImpl.java
+8
-3
AlertStatisticsServiceImpl.java
...elevator/biz/service/impl/AlertStatisticsServiceImpl.java
+9
-4
AlertUseUnitStatisticsServiceImpl.java
...r/biz/service/impl/AlertUseUnitStatisticsServiceImpl.java
+9
-4
PlanTaskUtil.java
...a/com/yeejoin/amos/patrol/business/util/PlanTaskUtil.java
+1
-1
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/service/impl/DataDictionaryServiceImpl.java
View file @
df258108
...
@@ -62,6 +62,7 @@ public class DataDictionaryServiceImpl extends BaseService<DataDictionaryDto, Da
...
@@ -62,6 +62,7 @@ public class DataDictionaryServiceImpl extends BaseService<DataDictionaryDto, Da
public
Object
gwmcDataDictionary
(
String
type
)
throws
Exception
{
public
Object
gwmcDataDictionary
(
String
type
)
throws
Exception
{
QueryWrapper
<
DataDictionary
>
queryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
DataDictionary
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"type"
,
type
);
queryWrapper
.
eq
(
"type"
,
type
);
queryWrapper
.
eq
(
"is_delete"
,
false
);
queryWrapper
.
orderByAsc
(
"sort_num"
);
queryWrapper
.
orderByAsc
(
"sort_num"
);
if
(
redisUtils
.
hasKey
(
RedisKey
.
DATA_DICTIONARY_CODE
+
type
))
{
if
(
redisUtils
.
hasKey
(
RedisKey
.
DATA_DICTIONARY_CODE
+
type
))
{
...
...
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-api/src/main/java/com/yeejoin/amos/boot/module/elevator/api/service/IAlertDispatchStatisticsService.java
View file @
df258108
...
@@ -13,7 +13,7 @@ import java.util.List;
...
@@ -13,7 +13,7 @@ import java.util.List;
*/
*/
public
interface
IAlertDispatchStatisticsService
{
public
interface
IAlertDispatchStatisticsService
{
void
statisticalGeneration
();
void
statisticalGeneration
(
String
type
);
List
<
AlertDispatchStatistics
>
getList
(
String
date
);
List
<
AlertDispatchStatistics
>
getList
(
String
date
);
}
}
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-api/src/main/java/com/yeejoin/amos/boot/module/elevator/api/service/IAlertMaintenanceUnitStatisticsService.java
View file @
df258108
...
@@ -13,7 +13,7 @@ import java.util.List;
...
@@ -13,7 +13,7 @@ import java.util.List;
*/
*/
public
interface
IAlertMaintenanceUnitStatisticsService
{
public
interface
IAlertMaintenanceUnitStatisticsService
{
void
statisticalGeneration
();
void
statisticalGeneration
(
String
type
);
List
<
AlertMaintenanceUnitStatistics
>
getList
(
String
date
);
List
<
AlertMaintenanceUnitStatistics
>
getList
(
String
date
);
...
...
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-api/src/main/java/com/yeejoin/amos/boot/module/elevator/api/service/IAlertPlaceStatisticsService.java
View file @
df258108
...
@@ -13,7 +13,7 @@ import java.util.List;
...
@@ -13,7 +13,7 @@ import java.util.List;
*/
*/
public
interface
IAlertPlaceStatisticsService
{
public
interface
IAlertPlaceStatisticsService
{
void
statisticalGeneration
();
void
statisticalGeneration
(
String
type
);
List
<
AlertPlaceStatistics
>
placeList
(
String
date
);
List
<
AlertPlaceStatistics
>
placeList
(
String
date
);
}
}
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-api/src/main/java/com/yeejoin/amos/boot/module/elevator/api/service/IAlertRescueStatisticsService.java
View file @
df258108
...
@@ -13,7 +13,7 @@ import java.util.List;
...
@@ -13,7 +13,7 @@ import java.util.List;
*/
*/
public
interface
IAlertRescueStatisticsService
{
public
interface
IAlertRescueStatisticsService
{
void
statisticalGeneration
();
void
statisticalGeneration
(
String
type
);
List
<
AlertRescueStatistics
>
getList
(
String
date
);
List
<
AlertRescueStatistics
>
getList
(
String
date
);
}
}
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-api/src/main/java/com/yeejoin/amos/boot/module/elevator/api/service/IAlertStatisticsService.java
View file @
df258108
...
@@ -8,7 +8,7 @@ import java.util.List;
...
@@ -8,7 +8,7 @@ import java.util.List;
public
interface
IAlertStatisticsService
{
public
interface
IAlertStatisticsService
{
void
statisticalGeneration
();
void
statisticalGeneration
(
String
type
);
List
<
AlertStatistics
>
getList
(
String
date
)
throws
ParseException
;
List
<
AlertStatistics
>
getList
(
String
date
)
throws
ParseException
;
}
}
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-api/src/main/java/com/yeejoin/amos/boot/module/elevator/api/service/IAlertUseUnitStatisticsService.java
View file @
df258108
...
@@ -13,7 +13,7 @@ import java.util.List;
...
@@ -13,7 +13,7 @@ import java.util.List;
*/
*/
public
interface
IAlertUseUnitStatisticsService
{
public
interface
IAlertUseUnitStatisticsService
{
void
statisticalGeneration
();
void
statisticalGeneration
(
String
type
);
List
<
AlertUseUnitStatistics
>
getList
(
String
date
);
List
<
AlertUseUnitStatistics
>
getList
(
String
date
);
}
}
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/biz/controller/StatisticsController.java
View file @
df258108
...
@@ -55,8 +55,8 @@ public class StatisticsController extends BaseController {
...
@@ -55,8 +55,8 @@ public class StatisticsController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/statisticalGeneration"
)
@GetMapping
(
value
=
"/statisticalGeneration"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"生成统计数据"
,
notes
=
"生成统计数据"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"生成统计数据"
,
notes
=
"生成统计数据"
)
public
ResponseModel
<
Object
>
statisticalGeneration
()
{
public
ResponseModel
<
Object
>
statisticalGeneration
(
@RequestParam
(
value
=
"type"
,
required
=
false
)
String
type
)
{
alertStatisticsService
.
statisticalGeneration
();
alertStatisticsService
.
statisticalGeneration
(
type
);
return
ResponseHelper
.
buildResponse
(
"success"
);
return
ResponseHelper
.
buildResponse
(
"success"
);
}
}
...
@@ -106,8 +106,8 @@ public class StatisticsController extends BaseController {
...
@@ -106,8 +106,8 @@ public class StatisticsController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/rescueStatisticalGeneration"
)
@GetMapping
(
value
=
"/rescueStatisticalGeneration"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"生成统计数据"
,
notes
=
"生成统计数据"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"生成统计数据"
,
notes
=
"生成统计数据"
)
public
ResponseModel
<
Object
>
rescueStatisticalGeneration
()
{
public
ResponseModel
<
Object
>
rescueStatisticalGeneration
(
@RequestParam
(
value
=
"type"
,
required
=
false
)
String
type
)
{
alertRescueStatisticsService
.
statisticalGeneration
();
alertRescueStatisticsService
.
statisticalGeneration
(
type
);
return
ResponseHelper
.
buildResponse
(
"success"
);
return
ResponseHelper
.
buildResponse
(
"success"
);
}
}
...
@@ -156,8 +156,8 @@ public class StatisticsController extends BaseController {
...
@@ -156,8 +156,8 @@ public class StatisticsController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/statisticalPlaceGeneration"
)
@GetMapping
(
value
=
"/statisticalPlaceGeneration"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"生成统计数据"
,
notes
=
"生成统计数据"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"生成统计数据"
,
notes
=
"生成统计数据"
)
public
ResponseModel
<
Object
>
statisticalPlaceGeneration
()
{
public
ResponseModel
<
Object
>
statisticalPlaceGeneration
(
@RequestParam
(
value
=
"type"
,
required
=
false
)
String
type
)
{
alertPlaceStatisticsService
.
statisticalGeneration
();
alertPlaceStatisticsService
.
statisticalGeneration
(
type
);
return
ResponseHelper
.
buildResponse
(
"success"
);
return
ResponseHelper
.
buildResponse
(
"success"
);
}
}
...
@@ -205,8 +205,8 @@ public class StatisticsController extends BaseController {
...
@@ -205,8 +205,8 @@ public class StatisticsController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/statisticalUseUnitGeneration"
)
@GetMapping
(
value
=
"/statisticalUseUnitGeneration"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"生成统计数据"
,
notes
=
"生成统计数据"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"生成统计数据"
,
notes
=
"生成统计数据"
)
public
ResponseModel
<
Object
>
statisticalUseUnitGeneration
()
{
public
ResponseModel
<
Object
>
statisticalUseUnitGeneration
(
@RequestParam
(
value
=
"type"
,
required
=
false
)
String
type
)
{
alertUseUnitStatisticsService
.
statisticalGeneration
();
alertUseUnitStatisticsService
.
statisticalGeneration
(
type
);
return
ResponseHelper
.
buildResponse
(
"success"
);
return
ResponseHelper
.
buildResponse
(
"success"
);
}
}
...
@@ -254,8 +254,8 @@ public class StatisticsController extends BaseController {
...
@@ -254,8 +254,8 @@ public class StatisticsController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/statisticalMaintenanceUnitGeneration"
)
@GetMapping
(
value
=
"/statisticalMaintenanceUnitGeneration"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"生成统计数据"
,
notes
=
"生成统计数据"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"生成统计数据"
,
notes
=
"生成统计数据"
)
public
ResponseModel
<
Object
>
statisticalMaintenanceUnitGeneration
()
{
public
ResponseModel
<
Object
>
statisticalMaintenanceUnitGeneration
(
@RequestParam
(
value
=
"type"
,
required
=
false
)
String
type
)
{
alertMaintenanceUnitStatisticsService
.
statisticalGeneration
();
alertMaintenanceUnitStatisticsService
.
statisticalGeneration
(
type
);
return
ResponseHelper
.
buildResponse
(
"success"
);
return
ResponseHelper
.
buildResponse
(
"success"
);
}
}
...
@@ -302,8 +302,8 @@ public class StatisticsController extends BaseController {
...
@@ -302,8 +302,8 @@ public class StatisticsController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/statisticalDispatchGeneration"
)
@GetMapping
(
value
=
"/statisticalDispatchGeneration"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"生成统计数据"
,
notes
=
"生成统计数据"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"生成统计数据"
,
notes
=
"生成统计数据"
)
public
ResponseModel
<
Object
>
statisticalDispatchGeneration
()
{
public
ResponseModel
<
Object
>
statisticalDispatchGeneration
(
@RequestParam
(
value
=
"type"
,
required
=
false
)
String
type
)
{
alertDispatchStatisticsService
.
statisticalGeneration
();
alertDispatchStatisticsService
.
statisticalGeneration
(
type
);
return
ResponseHelper
.
buildResponse
(
"success"
);
return
ResponseHelper
.
buildResponse
(
"success"
);
}
}
...
...
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/biz/service/impl/AlertDispatchStatisticsServiceImpl.java
View file @
df258108
...
@@ -31,14 +31,21 @@ public class AlertDispatchStatisticsServiceImpl extends BaseService<AlertDispatc
...
@@ -31,14 +31,21 @@ public class AlertDispatchStatisticsServiceImpl extends BaseService<AlertDispatc
@Autowired
@Autowired
private
AlertStatisticsServiceImpl
alertStatisticsService
;
private
AlertStatisticsServiceImpl
alertStatisticsService
;
@Override
@Scheduled
(
cron
=
"0 0 0 1 * ?"
)
@Scheduled
(
cron
=
"0 0 0 1 * ?"
)
@SchedulerLock
(
name
=
"AlertDispatchStatisticsServiceImpl"
,
lockAtMostFor
=
"PT10M"
,
lockAtLeastFor
=
"PT10M"
)
@SchedulerLock
(
name
=
"AlertDispatchStatisticsServiceImpl"
,
lockAtMostFor
=
"PT10M"
,
lockAtLeastFor
=
"PT10M"
)
public
void
statisticalGeneration
()
{
public
void
statisticalGenerationTask
()
{
statisticalGeneration
(
null
);
}
@Override
public
void
statisticalGeneration
(
String
type
)
{
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
Calendar
cal
=
Calendar
.
getInstance
();
Calendar
cal
=
Calendar
.
getInstance
();
cal
.
setTime
(
new
Date
());
cal
.
setTime
(
new
Date
());
cal
.
add
(
Calendar
.
MONTH
,
-
1
);
if
(
ObjectUtils
.
isEmpty
(
type
))
{
cal
.
add
(
Calendar
.
MONTH
,
-
1
);
}
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMinimum
(
Calendar
.
DAY_OF_MONTH
));
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMinimum
(
Calendar
.
DAY_OF_MONTH
));
Date
firstDayOfMonth
=
cal
.
getTime
();
Date
firstDayOfMonth
=
cal
.
getTime
();
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMaximum
(
Calendar
.
DAY_OF_MONTH
));
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMaximum
(
Calendar
.
DAY_OF_MONTH
));
...
...
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/biz/service/impl/AlertMaintenanceUnitStatisticsServiceImpl.java
View file @
df258108
...
@@ -33,16 +33,23 @@ public class AlertMaintenanceUnitStatisticsServiceImpl extends BaseService<Alert
...
@@ -33,16 +33,23 @@ public class AlertMaintenanceUnitStatisticsServiceImpl extends BaseService<Alert
@Autowired
@Autowired
private
AlertStatisticsServiceImpl
alertStatisticsService
;
private
AlertStatisticsServiceImpl
alertStatisticsService
;
@Override
@Scheduled
(
cron
=
"0 0 0 1 * ?"
)
@Scheduled
(
cron
=
"0 0 0 1 * ?"
)
@SchedulerLock
(
name
=
"AlertMaintenanceUnitStatisticsServiceImpl"
,
lockAtMostFor
=
"PT10M"
,
lockAtLeastFor
=
"PT10M"
)
@SchedulerLock
(
name
=
"AlertMaintenanceUnitStatisticsServiceImpl"
,
lockAtMostFor
=
"PT10M"
,
lockAtLeastFor
=
"PT10M"
)
public
void
statisticalGeneration
()
{
public
void
statisticalGenerationTask
(){
statisticalGeneration
(
null
);
}
@Override
public
void
statisticalGeneration
(
String
type
)
{
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"0.00"
);
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"0.00"
);
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
ArrayList
<
AlertMaintenanceUnitStatistics
>
list
=
new
ArrayList
<>();
ArrayList
<
AlertMaintenanceUnitStatistics
>
list
=
new
ArrayList
<>();
Calendar
cal
=
Calendar
.
getInstance
();
Calendar
cal
=
Calendar
.
getInstance
();
cal
.
setTime
(
new
Date
());
cal
.
setTime
(
new
Date
());
cal
.
add
(
Calendar
.
MONTH
,
-
1
);
if
(
ObjectUtils
.
isEmpty
(
type
)){
cal
.
add
(
Calendar
.
MONTH
,
-
1
);
}
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMinimum
(
Calendar
.
DAY_OF_MONTH
));
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMinimum
(
Calendar
.
DAY_OF_MONTH
));
Date
firstDayOfMonth
=
cal
.
getTime
();
Date
firstDayOfMonth
=
cal
.
getTime
();
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMaximum
(
Calendar
.
DAY_OF_MONTH
));
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMaximum
(
Calendar
.
DAY_OF_MONTH
));
...
...
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/biz/service/impl/AlertPlaceStatisticsServiceImpl.java
View file @
df258108
...
@@ -27,15 +27,21 @@ import java.util.*;
...
@@ -27,15 +27,21 @@ import java.util.*;
public
class
AlertPlaceStatisticsServiceImpl
extends
BaseService
<
AlertPlaceStatisticsDto
,
AlertPlaceStatistics
,
AlertPlaceStatisticsMapper
>
implements
IAlertPlaceStatisticsService
{
public
class
AlertPlaceStatisticsServiceImpl
extends
BaseService
<
AlertPlaceStatisticsDto
,
AlertPlaceStatistics
,
AlertPlaceStatisticsMapper
>
implements
IAlertPlaceStatisticsService
{
@Override
@Scheduled
(
cron
=
"0 0 0 1 * ?"
)
@Scheduled
(
cron
=
"0 0 0 1 * ?"
)
@SchedulerLock
(
name
=
"AlertPlaceStatisticsServiceImpl"
,
lockAtMostFor
=
"PT10M"
,
lockAtLeastFor
=
"PT10M"
)
@SchedulerLock
(
name
=
"AlertPlaceStatisticsServiceImpl"
,
lockAtMostFor
=
"PT10M"
,
lockAtLeastFor
=
"PT10M"
)
public
void
statisticalGeneration
()
{
public
void
statisticalGenerationTask
(){
statisticalGeneration
(
null
);
}
@Override
public
void
statisticalGeneration
(
String
type
)
{
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"0.00"
);
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"0.00"
);
Calendar
cal
=
Calendar
.
getInstance
();
Calendar
cal
=
Calendar
.
getInstance
();
cal
.
setTime
(
new
Date
());
cal
.
setTime
(
new
Date
());
cal
.
add
(
Calendar
.
MONTH
,
-
1
);
if
(
ObjectUtils
.
isEmpty
(
type
)){
cal
.
add
(
Calendar
.
MONTH
,
-
1
);
}
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMinimum
(
Calendar
.
DAY_OF_MONTH
));
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMinimum
(
Calendar
.
DAY_OF_MONTH
));
Date
firstDayOfMonth
=
cal
.
getTime
();
Date
firstDayOfMonth
=
cal
.
getTime
();
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMaximum
(
Calendar
.
DAY_OF_MONTH
));
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMaximum
(
Calendar
.
DAY_OF_MONTH
));
...
...
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/biz/service/impl/AlertRescueStatisticsServiceImpl.java
View file @
df258108
...
@@ -32,14 +32,19 @@ public class AlertRescueStatisticsServiceImpl extends BaseService<AlertRescueSta
...
@@ -32,14 +32,19 @@ public class AlertRescueStatisticsServiceImpl extends BaseService<AlertRescueSta
@Autowired
@Autowired
private
AlertStatisticsServiceImpl
alertStatisticsService
;
private
AlertStatisticsServiceImpl
alertStatisticsService
;
@Override
@Scheduled
(
cron
=
"0 0 0 1 * ?"
)
@Scheduled
(
cron
=
"0 0 0 1 * ?"
)
@SchedulerLock
(
name
=
"AlertRescueStatisticsServiceImpl"
,
lockAtMostFor
=
"PT10M"
,
lockAtLeastFor
=
"PT10M"
)
@SchedulerLock
(
name
=
"AlertRescueStatisticsServiceImpl"
,
lockAtMostFor
=
"PT10M"
,
lockAtLeastFor
=
"PT10M"
)
public
void
statisticalGeneration
()
{
public
void
statisticalGenerationTask
(){
statisticalGeneration
(
null
);
}
@Override
public
void
statisticalGeneration
(
String
type
)
{
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
Calendar
cal
=
Calendar
.
getInstance
();
Calendar
cal
=
Calendar
.
getInstance
();
cal
.
setTime
(
new
Date
());
cal
.
setTime
(
new
Date
());
cal
.
add
(
Calendar
.
MONTH
,
-
1
);
if
(
ObjectUtils
.
isEmpty
(
type
)){
cal
.
add
(
Calendar
.
MONTH
,
-
1
);
}
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMinimum
(
Calendar
.
DAY_OF_MONTH
));
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMinimum
(
Calendar
.
DAY_OF_MONTH
));
Date
firstDayOfMonth
=
cal
.
getTime
();
Date
firstDayOfMonth
=
cal
.
getTime
();
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMaximum
(
Calendar
.
DAY_OF_MONTH
));
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMaximum
(
Calendar
.
DAY_OF_MONTH
));
...
...
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/biz/service/impl/AlertStatisticsServiceImpl.java
View file @
df258108
...
@@ -31,15 +31,20 @@ public class AlertStatisticsServiceImpl extends BaseService<AlertStatisticsDto,
...
@@ -31,15 +31,20 @@ public class AlertStatisticsServiceImpl extends BaseService<AlertStatisticsDto,
@Autowired
@Autowired
RedisUtils
redisUtils
;
RedisUtils
redisUtils
;
@Override
@Scheduled
(
cron
=
"0 0 0 1 * ?"
)
@Scheduled
(
cron
=
"0 0 0 1 * ?"
)
@SchedulerLock
(
name
=
"AlertStatisticsServiceImpl"
,
lockAtMostFor
=
"PT10M"
,
lockAtLeastFor
=
"PT10M"
)
@SchedulerLock
(
name
=
"AlertStatisticsServiceImpl"
,
lockAtMostFor
=
"PT10M"
,
lockAtLeastFor
=
"PT10M"
)
public
void
statisticalGeneration
()
{
public
void
statisticalGenerationTask
(){
statisticalGeneration
(
null
);
}
@Override
public
void
statisticalGeneration
(
String
type
)
{
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
Calendar
cal
=
Calendar
.
getInstance
();
Calendar
cal
=
Calendar
.
getInstance
();
cal
.
setTime
(
new
Date
());
cal
.
setTime
(
new
Date
());
cal
.
add
(
Calendar
.
MONTH
,
-
1
);
if
(
ObjectUtils
.
isEmpty
(
type
)){
cal
.
add
(
Calendar
.
MONTH
,
-
1
);
}
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMinimum
(
Calendar
.
DAY_OF_MONTH
));
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMinimum
(
Calendar
.
DAY_OF_MONTH
));
Date
firstDayOfMonth
=
cal
.
getTime
();
Date
firstDayOfMonth
=
cal
.
getTime
();
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMaximum
(
Calendar
.
DAY_OF_MONTH
));
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMaximum
(
Calendar
.
DAY_OF_MONTH
));
...
...
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/biz/service/impl/AlertUseUnitStatisticsServiceImpl.java
View file @
df258108
...
@@ -27,15 +27,20 @@ import java.util.*;
...
@@ -27,15 +27,20 @@ import java.util.*;
@Service
@Service
public
class
AlertUseUnitStatisticsServiceImpl
extends
BaseService
<
AlertUseUnitStatisticsDto
,
AlertUseUnitStatistics
,
AlertUseUnitStatisticsMapper
>
implements
IAlertUseUnitStatisticsService
{
public
class
AlertUseUnitStatisticsServiceImpl
extends
BaseService
<
AlertUseUnitStatisticsDto
,
AlertUseUnitStatistics
,
AlertUseUnitStatisticsMapper
>
implements
IAlertUseUnitStatisticsService
{
@Override
@Scheduled
(
cron
=
"0 0 0 1 * ?"
)
@Scheduled
(
cron
=
"0 0 0 1 * ?"
)
@SchedulerLock
(
name
=
"AlertUseUnitStatisticsServiceImpl"
,
lockAtMostFor
=
"PT10M"
,
lockAtLeastFor
=
"PT10M"
)
@SchedulerLock
(
name
=
"AlertUseUnitStatisticsServiceImpl"
,
lockAtMostFor
=
"PT10M"
,
lockAtLeastFor
=
"PT10M"
)
public
void
statisticalGeneration
()
{
public
void
statisticalGenerationTask
(){
statisticalGeneration
(
null
);
}
@Override
public
void
statisticalGeneration
(
String
type
)
{
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
Calendar
cal
=
Calendar
.
getInstance
();
Calendar
cal
=
Calendar
.
getInstance
();
cal
.
setTime
(
new
Date
());
cal
.
setTime
(
new
Date
());
cal
.
add
(
Calendar
.
MONTH
,
-
1
);
if
(
ObjectUtils
.
isEmpty
(
type
)){
cal
.
add
(
Calendar
.
MONTH
,
-
1
);
}
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMinimum
(
Calendar
.
DAY_OF_MONTH
));
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMinimum
(
Calendar
.
DAY_OF_MONTH
));
Date
firstDayOfMonth
=
cal
.
getTime
();
Date
firstDayOfMonth
=
cal
.
getTime
();
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMaximum
(
Calendar
.
DAY_OF_MONTH
));
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
cal
.
getActualMaximum
(
Calendar
.
DAY_OF_MONTH
));
...
...
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/java/com/yeejoin/amos/patrol/business/util/PlanTaskUtil.java
View file @
df258108
...
@@ -520,7 +520,7 @@ public static List<HashMap<String, Object>> genWholeExeData(List<HashMap<String,
...
@@ -520,7 +520,7 @@ public static List<HashMap<String, Object>> genWholeExeData(List<HashMap<String,
if
(!
CollectionUtils
.
isEmpty
(
userDetailsDtoList
))
{
if
(!
CollectionUtils
.
isEmpty
(
userDetailsDtoList
))
{
Map
<
String
,
List
<
UserDetailsDto
>>
userDetailsDtoMap
=
userDetailsDtoList
.
stream
().
Map
<
String
,
List
<
UserDetailsDto
>>
userDetailsDtoMap
=
userDetailsDtoList
.
stream
().
filter
(
obj
->
obj
.
getEquipCategoryCode
().
contains
(
deviceType
)
&&
obj
.
getUnitTypeCode
().
contains
(
unitType
))
filter
(
obj
->
obj
.
getEquipCategoryCode
().
contains
(
deviceType
)
&&
obj
.
getUnitTypeCode
().
contains
(
unitType
))
.
collect
(
Collectors
.
groupingBy
(
UserDetailsDto:
:
getUnit
Org
Code
));
.
collect
(
Collectors
.
groupingBy
(
UserDetailsDto:
:
getUnitCode
));
for
(
HashMap
<
String
,
Object
>
stringObjectHashMap
:
timeList
)
{
for
(
HashMap
<
String
,
Object
>
stringObjectHashMap
:
timeList
)
{
HashMap
<
String
,
Object
>
tempMap
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
tempMap
=
new
HashMap
<>();
Object
strBeginTime
=
stringObjectHashMap
.
get
(
"BEGIN_TIME"
);
Object
strBeginTime
=
stringObjectHashMap
.
get
(
"BEGIN_TIME"
);
...
...
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