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
9439cba9
Commit
9439cba9
authored
Jun 08, 2023
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
4a054b34
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
46 deletions
+43
-46
EnterpriseStatisticController.java
...tzs/flc/biz/controller/EnterpriseStatisticController.java
+2
-3
CylinderDateInfoServiceImpl.java
...tzs/flc/biz/service/impl/CylinderDateInfoServiceImpl.java
+41
-43
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/controller/EnterpriseStatisticController.java
View file @
9439cba9
...
...
@@ -39,8 +39,8 @@ public class EnterpriseStatisticController extends BaseController {
@ApiOperation
(
value
=
"根据搜索信息获取表格数据"
)
@GetMapping
(
value
=
"/getTableInfoPage"
)
public
ResponseModel
<
Page
<
CylinderTableDto
>>
cylinderTableInfoPage
(
String
pageNumber
,
String
pageSize
,
@RequestParam
(
value
=
"regionName"
,
required
=
false
)
String
regionName
,
@RequestParam
(
value
=
"unitName"
,
required
=
false
)
String
unitName
)
{
@RequestParam
(
value
=
"regionName"
,
required
=
false
)
String
regionName
,
@RequestParam
(
value
=
"unitName"
,
required
=
false
)
String
unitName
)
{
Page
<
CylinderTableDto
>
cylinderTableDtoPage
=
cylinderDateInfoService
.
selectTodayDatePage
(
pageNumber
,
pageSize
,
regionName
,
unitName
);
return
ResponseHelper
.
buildResponse
(
cylinderTableDtoPage
);
}
...
...
@@ -55,7 +55,6 @@ public class EnterpriseStatisticController extends BaseController {
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
value
=
"初始化统计数据"
)
@GetMapping
(
value
=
"/initializeData"
)
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/service/impl/CylinderDateInfoServiceImpl.java
View file @
9439cba9
...
...
@@ -18,6 +18,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.Calendar
;
...
...
@@ -105,17 +106,15 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto
}
public
Page
<
CylinderTableDto
>
selectTodayDatePage
(
String
pageNumber
,
String
pageSize
,
String
regionName
,
String
unitName
)
{
public
Page
<
CylinderTableDto
>
selectTodayDatePage
(
String
pageNumber
,
String
pageSize
,
String
regionName
,
String
unitName
)
{
Page
<
CylinderTableDto
>
page
=
new
Page
<>();
List
<
CylinderTableDto
>
result
=
new
ArrayList
<>();
Page
<
CylinderUnit
>
cylinderUnitPage
=
new
Page
<>(
Long
.
parseLong
(
pageNumber
),
Long
.
parseLong
(
pageSize
));
LambdaQueryWrapper
<
CylinderUnit
>
lambda
=
new
QueryWrapper
<
CylinderUnit
>().
lambda
();
if
(!
ObjectUtils
.
isEmpty
(
regionName
))
{
if
(!
ObjectUtils
.
isEmpty
(
regionName
))
{
lambda
.
like
(
CylinderUnit:
:
getRegionCode
,
regionName
);
}
if
(!
ObjectUtils
.
isEmpty
(
unitName
))
{
if
(!
ObjectUtils
.
isEmpty
(
unitName
))
{
lambda
.
like
(
CylinderUnit:
:
getUnitName
,
unitName
);
}
IPage
<
CylinderUnit
>
cylinderUnitIPage
=
cylinderUnitMapper
.
selectPage
(
cylinderUnitPage
,
lambda
);
...
...
@@ -163,22 +162,22 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto
}
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//每天凌晨两点执行
public
void
fixedDelayJob
()
{
public
void
fixedDelayJob
()
{
// 每天更新或者添加昨天的数据
Date
date
=
new
Date
();
//取时间
Calendar
calendar
=
Calendar
.
getInstance
();
calendar
.
setTime
(
date
);
calendar
.
add
(
Calendar
.
DATE
,
-
1
);
calendar
.
add
(
Calendar
.
DATE
,
-
1
);
//这个时间就是日期往后推一天的结果
date
=
calendar
.
getTime
();
date
=
calendar
.
getTime
();
LambdaQueryWrapper
<
CylinderUnit
>
lambda
=
new
QueryWrapper
<
CylinderUnit
>().
lambda
();
List
<
CylinderUnit
>
cylinderUnits
=
cylinderUnitMapper
.
selectList
(
lambda
);
for
(
CylinderUnit
token
:
cylinderUnits
)
{
for
(
CylinderUnit
token
:
cylinderUnits
)
{
try
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
String
todayStr
=
sdf
.
format
(
date
);
List
<
CylinderDateInfo
>
list
=
this
.
list
(
new
LambdaQueryWrapper
<
CylinderDateInfo
>().
between
(
CylinderDateInfo:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
).
eq
(
CylinderDateInfo:
:
getAppId
,
token
.
getAppId
()));
if
(
ObjectUtils
.
isEmpty
(
list
))
{
List
<
CylinderDateInfo
>
list
=
this
.
list
(
new
LambdaQueryWrapper
<
CylinderDateInfo
>().
between
(
CylinderDateInfo:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
).
eq
(
CylinderDateInfo:
:
getAppId
,
token
.
getAppId
()));
if
(
ObjectUtils
.
isEmpty
(
list
))
{
CylinderDateInfoDto
temp
=
new
CylinderDateInfoDto
();
temp
.
setSyncDate
(
date
);
String
appid
=
token
.
getAppId
();
...
...
@@ -186,15 +185,15 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto
temp
.
setAppId
(
appid
);
temp
.
setDeveloperAgency
(
token
.
getDeveloperAgency
());
// 获取气瓶基本信息
Integer
cylinder
=
cylinderInfoService
.
count
(
new
LambdaQueryWrapper
<
CylinderInfo
>().
eq
(
CylinderInfo:
:
getAppId
,
appid
).
between
(
CylinderInfo:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
cylinderUnit
=
cylinderUnitService
.
count
(
new
LambdaQueryWrapper
<
CylinderUnit
>().
eq
(
CylinderUnit:
:
getAppId
,
appid
).
between
(
CylinderUnit:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
tags
=
cylinderTagsService
.
count
(
new
LambdaQueryWrapper
<
CylinderTags
>().
eq
(
CylinderTags:
:
getAppId
,
appid
).
between
(
CylinderTags:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
inspection
=
cylinderInspectionService
.
count
(
new
LambdaQueryWrapper
<
CylinderInspection
>().
eq
(
CylinderInspection:
:
getAppId
,
appid
).
between
(
CylinderInspection:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
filling
=
cylinderFillingService
.
count
(
new
LambdaQueryWrapper
<
CylinderFilling
>().
eq
(
CylinderFilling:
:
getAppId
,
appid
).
between
(
CylinderFilling:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
fillingRecord
=
cylinderFillingRecordService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingRecord
>().
eq
(
CylinderFillingRecord:
:
getAppId
,
appid
).
between
(
CylinderFillingRecord:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
fillingCheck
=
cylinderFillingCheckService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingCheck
>().
eq
(
CylinderFillingCheck:
:
getAppId
,
appid
).
between
(
CylinderFillingCheck:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
examine
=
cylinderFillingExamineService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingExamine
>().
eq
(
CylinderFillingExamine:
:
getAppId
,
appid
).
between
(
CylinderFillingExamine:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
total
=
cylinder
+
cylinderUnit
+
tags
+
inspection
+
filling
+
fillingRecord
+
fillingCheck
+
examine
;
Integer
cylinder
=
cylinderInfoService
.
count
(
new
LambdaQueryWrapper
<
CylinderInfo
>().
eq
(
CylinderInfo:
:
getAppId
,
appid
).
between
(
CylinderInfo:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
cylinderUnit
=
cylinderUnitService
.
count
(
new
LambdaQueryWrapper
<
CylinderUnit
>().
eq
(
CylinderUnit:
:
getAppId
,
appid
).
between
(
CylinderUnit:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
tags
=
cylinderTagsService
.
count
(
new
LambdaQueryWrapper
<
CylinderTags
>().
eq
(
CylinderTags:
:
getAppId
,
appid
).
between
(
CylinderTags:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
inspection
=
cylinderInspectionService
.
count
(
new
LambdaQueryWrapper
<
CylinderInspection
>().
eq
(
CylinderInspection:
:
getAppId
,
appid
).
between
(
CylinderInspection:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
filling
=
cylinderFillingService
.
count
(
new
LambdaQueryWrapper
<
CylinderFilling
>().
eq
(
CylinderFilling:
:
getAppId
,
appid
).
between
(
CylinderFilling:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
fillingRecord
=
cylinderFillingRecordService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingRecord
>().
eq
(
CylinderFillingRecord:
:
getAppId
,
appid
).
between
(
CylinderFillingRecord:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
fillingCheck
=
cylinderFillingCheckService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingCheck
>().
eq
(
CylinderFillingCheck:
:
getAppId
,
appid
).
between
(
CylinderFillingCheck:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
examine
=
cylinderFillingExamineService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingExamine
>().
eq
(
CylinderFillingExamine:
:
getAppId
,
appid
).
between
(
CylinderFillingExamine:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
total
=
cylinder
+
cylinderUnit
+
tags
+
inspection
+
filling
+
fillingRecord
+
fillingCheck
+
examine
;
temp
.
setCylinderExamineInfo
(
examine
);
temp
.
setCylinderUnit
(
cylinderUnit
);
temp
.
setCylinderFillingCheckInfo
(
fillingCheck
);
...
...
@@ -206,18 +205,18 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto
temp
.
setCylinderTotal
(
total
);
this
.
createWithModel
(
temp
);
}
else
{
list
.
forEach
(
info
->
{
list
.
forEach
(
info
->
{
String
appId
=
token
.
getAppId
();
// 获取气瓶基本信息
Integer
cylinder
=
cylinderInfoService
.
count
(
new
LambdaQueryWrapper
<
CylinderInfo
>().
eq
(
CylinderInfo:
:
getAppId
,
appId
).
between
(
CylinderInfo:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
cylinderUnit
=
cylinderUnitService
.
count
(
new
LambdaQueryWrapper
<
CylinderUnit
>().
eq
(
CylinderUnit:
:
getAppId
,
appId
).
between
(
CylinderUnit:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
tags
=
cylinderTagsService
.
count
(
new
LambdaQueryWrapper
<
CylinderTags
>().
eq
(
CylinderTags:
:
getAppId
,
appId
).
between
(
CylinderTags:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
inspection
=
cylinderInspectionService
.
count
(
new
LambdaQueryWrapper
<
CylinderInspection
>().
eq
(
CylinderInspection:
:
getAppId
,
appId
).
between
(
CylinderInspection:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
filling
=
cylinderFillingService
.
count
(
new
LambdaQueryWrapper
<
CylinderFilling
>().
eq
(
CylinderFilling:
:
getAppId
,
appId
).
between
(
CylinderFilling:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
fillingRecord
=
cylinderFillingRecordService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingRecord
>().
eq
(
CylinderFillingRecord:
:
getAppId
,
appId
).
between
(
CylinderFillingRecord:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
fillingCheck
=
cylinderFillingCheckService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingCheck
>().
eq
(
CylinderFillingCheck:
:
getAppId
,
appId
).
between
(
CylinderFillingCheck:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
examine
=
cylinderFillingExamineService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingExamine
>().
eq
(
CylinderFillingExamine:
:
getAppId
,
appId
).
between
(
CylinderFillingExamine:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
total
=
cylinder
+
cylinderUnit
+
tags
+
inspection
+
filling
+
fillingRecord
+
fillingCheck
+
examine
;
Integer
cylinder
=
cylinderInfoService
.
count
(
new
LambdaQueryWrapper
<
CylinderInfo
>().
eq
(
CylinderInfo:
:
getAppId
,
appId
).
between
(
CylinderInfo:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
cylinderUnit
=
cylinderUnitService
.
count
(
new
LambdaQueryWrapper
<
CylinderUnit
>().
eq
(
CylinderUnit:
:
getAppId
,
appId
).
between
(
CylinderUnit:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
tags
=
cylinderTagsService
.
count
(
new
LambdaQueryWrapper
<
CylinderTags
>().
eq
(
CylinderTags:
:
getAppId
,
appId
).
between
(
CylinderTags:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
inspection
=
cylinderInspectionService
.
count
(
new
LambdaQueryWrapper
<
CylinderInspection
>().
eq
(
CylinderInspection:
:
getAppId
,
appId
).
between
(
CylinderInspection:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
filling
=
cylinderFillingService
.
count
(
new
LambdaQueryWrapper
<
CylinderFilling
>().
eq
(
CylinderFilling:
:
getAppId
,
appId
).
between
(
CylinderFilling:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
fillingRecord
=
cylinderFillingRecordService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingRecord
>().
eq
(
CylinderFillingRecord:
:
getAppId
,
appId
).
between
(
CylinderFillingRecord:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
fillingCheck
=
cylinderFillingCheckService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingCheck
>().
eq
(
CylinderFillingCheck:
:
getAppId
,
appId
).
between
(
CylinderFillingCheck:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
examine
=
cylinderFillingExamineService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingExamine
>().
eq
(
CylinderFillingExamine:
:
getAppId
,
appId
).
between
(
CylinderFillingExamine:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
total
=
cylinder
+
cylinderUnit
+
tags
+
inspection
+
filling
+
fillingRecord
+
fillingCheck
+
examine
;
info
.
setCylinderExamineInfo
(
examine
);
info
.
setCylinderUnit
(
cylinderUnit
);
info
.
setCylinderFillingCheckInfo
(
fillingCheck
);
...
...
@@ -238,18 +237,18 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto
}
public
void
initializeData
()
{
public
void
initializeData
()
{
// 每天更新或者添加昨天的数据
Date
date
=
new
Date
();
//取时间
Calendar
calendar
=
Calendar
.
getInstance
();
calendar
.
setTime
(
date
);
//这个时间就是日期往后推一天的结果
date
=
calendar
.
getTime
();
date
=
calendar
.
getTime
();
LambdaQueryWrapper
<
CylinderUnit
>
lambda
=
new
QueryWrapper
<
CylinderUnit
>().
lambda
();
List
<
CylinderUnit
>
cylinderUnits
=
cylinderUnitMapper
.
selectList
(
lambda
);
logger
.
info
(
"清除cylinder_date_info表已有数据"
);
this
.
baseMapper
.
delete
(
null
);
for
(
CylinderUnit
token
:
cylinderUnits
)
{
for
(
CylinderUnit
token
:
cylinderUnits
)
{
try
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
String
todayStr
=
sdf
.
format
(
date
);
...
...
@@ -262,15 +261,15 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto
logger
.
info
(
"初始化数据时间{}"
,
todayStr
);
// 获取气瓶基本信息
Integer
cylinder
=
cylinderInfoService
.
count
(
new
LambdaQueryWrapper
<
CylinderInfo
>().
eq
(
CylinderInfo:
:
getAppId
,
appid
).
notLike
(
CylinderInfo:
:
getSyncDate
,
todayStr
));
Integer
cylinderUnit
=
cylinderUnitService
.
count
(
new
LambdaQueryWrapper
<
CylinderUnit
>().
eq
(
CylinderUnit:
:
getAppId
,
appid
).
notLike
(
CylinderUnit:
:
getSyncDate
,
todayStr
));
Integer
tags
=
cylinderTagsService
.
count
(
new
LambdaQueryWrapper
<
CylinderTags
>().
eq
(
CylinderTags:
:
getAppId
,
appid
).
notLike
(
CylinderTags:
:
getSyncDate
,
todayStr
));
Integer
inspection
=
cylinderInspectionService
.
count
(
new
LambdaQueryWrapper
<
CylinderInspection
>().
eq
(
CylinderInspection:
:
getAppId
,
appid
).
notLike
(
CylinderInspection:
:
getSyncDate
,
todayStr
));
Integer
filling
=
cylinderFillingService
.
count
(
new
LambdaQueryWrapper
<
CylinderFilling
>().
eq
(
CylinderFilling:
:
getAppId
,
appid
).
notLike
(
CylinderFilling:
:
getSyncDate
,
todayStr
));
Integer
fillingRecord
=
cylinderFillingRecordService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingRecord
>().
eq
(
CylinderFillingRecord:
:
getAppId
,
appid
).
notLike
(
CylinderFillingRecord:
:
getSyncDate
,
todayStr
));
Integer
fillingCheck
=
cylinderFillingCheckService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingCheck
>().
eq
(
CylinderFillingCheck:
:
getAppId
,
appid
).
notLike
(
CylinderFillingCheck:
:
getSyncDate
,
todayStr
));
Integer
examine
=
cylinderFillingExamineService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingExamine
>().
eq
(
CylinderFillingExamine:
:
getAppId
,
appid
).
notLike
(
CylinderFillingExamine:
:
getSyncDate
,
todayStr
));
Integer
total
=
cylinder
+
cylinderUnit
+
tags
+
inspection
+
filling
+
fillingRecord
+
fillingCheck
+
examine
;
Integer
cylinder
=
cylinderInfoService
.
count
(
new
LambdaQueryWrapper
<
CylinderInfo
>().
eq
(
CylinderInfo:
:
getAppId
,
appid
).
notLike
(
CylinderInfo:
:
getSyncDate
,
todayStr
));
Integer
cylinderUnit
=
cylinderUnitService
.
count
(
new
LambdaQueryWrapper
<
CylinderUnit
>().
eq
(
CylinderUnit:
:
getAppId
,
appid
).
notLike
(
CylinderUnit:
:
getSyncDate
,
todayStr
));
Integer
tags
=
cylinderTagsService
.
count
(
new
LambdaQueryWrapper
<
CylinderTags
>().
eq
(
CylinderTags:
:
getAppId
,
appid
).
notLike
(
CylinderTags:
:
getSyncDate
,
todayStr
));
Integer
inspection
=
cylinderInspectionService
.
count
(
new
LambdaQueryWrapper
<
CylinderInspection
>().
eq
(
CylinderInspection:
:
getAppId
,
appid
).
notLike
(
CylinderInspection:
:
getSyncDate
,
todayStr
));
Integer
filling
=
cylinderFillingService
.
count
(
new
LambdaQueryWrapper
<
CylinderFilling
>().
eq
(
CylinderFilling:
:
getAppId
,
appid
).
notLike
(
CylinderFilling:
:
getSyncDate
,
todayStr
));
Integer
fillingRecord
=
cylinderFillingRecordService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingRecord
>().
eq
(
CylinderFillingRecord:
:
getAppId
,
appid
).
notLike
(
CylinderFillingRecord:
:
getSyncDate
,
todayStr
));
Integer
fillingCheck
=
cylinderFillingCheckService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingCheck
>().
eq
(
CylinderFillingCheck:
:
getAppId
,
appid
).
notLike
(
CylinderFillingCheck:
:
getSyncDate
,
todayStr
));
Integer
examine
=
cylinderFillingExamineService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingExamine
>().
eq
(
CylinderFillingExamine:
:
getAppId
,
appid
).
notLike
(
CylinderFillingExamine:
:
getSyncDate
,
todayStr
));
Integer
total
=
cylinder
+
cylinderUnit
+
tags
+
inspection
+
filling
+
fillingRecord
+
fillingCheck
+
examine
;
temp
.
setCylinderExamineInfo
(
examine
);
temp
.
setCylinderUnit
(
cylinderUnit
);
temp
.
setCylinderFillingCheckInfo
(
fillingCheck
);
...
...
@@ -289,5 +288,4 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto
}
}
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