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
d4b3d7c4
Commit
d4b3d7c4
authored
May 19, 2023
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改气瓶企业统计所属区域字段
parent
5440238c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
CylinderTableDto.java
...in/amos/boot/module/tzs/flc/api/dto/CylinderTableDto.java
+1
-1
CylinderDateInfoServiceImpl.java
...tzs/flc/biz/service/impl/CylinderDateInfoServiceImpl.java
+17
-17
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/dto/CylinderTableDto.java
View file @
d4b3d7c4
...
@@ -65,5 +65,5 @@ public class CylinderTableDto {
...
@@ -65,5 +65,5 @@ public class CylinderTableDto {
/**
/**
* 所属区域
* 所属区域
*/
*/
private
String
developerAgency
;
private
String
regionName
;
}
}
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 @
d4b3d7c4
...
@@ -95,7 +95,7 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto
...
@@ -95,7 +95,7 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto
temp
.
setCylinderTagInfo
(
tags
);
temp
.
setCylinderTagInfo
(
tags
);
temp
.
setCylinderInfo
(
cylinder
);
temp
.
setCylinderInfo
(
cylinder
);
temp
.
setCylinderTotal
(
total
);
temp
.
setCylinderTotal
(
total
);
temp
.
set
DeveloperAgency
(
token
.
getDeveloperAgency
());
temp
.
set
RegionName
(
token
.
getDeveloperAgency
());
result
.
add
(
temp
);
result
.
add
(
temp
);
}
}
return
result
;
return
result
;
...
@@ -104,21 +104,21 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto
...
@@ -104,21 +104,21 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto
public
Page
<
CylinderTableDto
>
selectTodayDatePage
(
String
pageNumber
,
String
pageSize
,
String
developerAgency
,
String
unitName
)
{
public
Page
<
CylinderTableDto
>
selectTodayDatePage
(
String
pageNumber
,
String
pageSize
,
String
regionName
,
String
unitName
)
{
Page
<
CylinderTableDto
>
page
=
new
Page
<>();
Page
<
CylinderTableDto
>
page
=
new
Page
<>();
List
<
CylinderTableDto
>
result
=
new
ArrayList
<>();
List
<
CylinderTableDto
>
result
=
new
ArrayList
<>();
Page
<
CylinderUnit
>
cylinderUnitPage
=
new
Page
<>(
Long
.
parseLong
(
pageNumber
),
Long
.
parseLong
(
pageSize
));
Page
<
CylinderUnit
>
cylinderUnitPage
=
new
Page
<>(
Long
.
parseLong
(
pageNumber
),
Long
.
parseLong
(
pageSize
));
LambdaQueryWrapper
<
CylinderUnit
>
lambda
=
new
QueryWrapper
<
CylinderUnit
>().
lambda
();
LambdaQueryWrapper
<
CylinderUnit
>
lambda
=
new
QueryWrapper
<
CylinderUnit
>().
lambda
();
if
(!
ObjectUtils
.
isEmpty
(
developerAgency
)){
if
(!
ObjectUtils
.
isEmpty
(
regionName
)){
lambda
.
like
(
CylinderUnit:
:
get
DeveloperAgency
,
developerAgency
);
lambda
.
like
(
CylinderUnit:
:
get
RegionName
,
regionName
);
}
}
if
(!
ObjectUtils
.
isEmpty
(
unitName
)){
if
(!
ObjectUtils
.
isEmpty
(
unitName
)){
lambda
.
like
(
CylinderUnit:
:
getUnitName
,
unitName
);
lambda
.
like
(
CylinderUnit:
:
getUnitName
,
unitName
);
}
}
IPage
<
CylinderUnit
>
cylinderUnitIPage
=
cylinderUnitMapper
.
selectPage
(
cylinderUnitPage
,
lambda
);
IPage
<
CylinderUnit
>
cylinderUnitIPage
=
cylinderUnitMapper
.
selectPage
(
cylinderUnitPage
,
lambda
);
for
(
CylinderUnit
token
:
cylinderUnitIPage
.
getRecords
())
{
for
(
CylinderUnit
unit
:
cylinderUnitIPage
.
getRecords
())
{
CylinderTableDto
temp
=
new
CylinderTableDto
();
CylinderTableDto
temp
=
new
CylinderTableDto
();
temp
.
setUnitName
(
token
.
getUnitName
());
temp
.
setUnitName
(
unit
.
getUnitName
());
// 获取气瓶基本信息
// 获取气瓶基本信息
Integer
cylinderUnit
=
0
;
Integer
cylinderUnit
=
0
;
Integer
cylinder
=
0
;
Integer
cylinder
=
0
;
...
@@ -130,7 +130,7 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto
...
@@ -130,7 +130,7 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto
Integer
examine
=
0
;
Integer
examine
=
0
;
Integer
total
=
0
;
Integer
total
=
0
;
// 获取气瓶基本信息
// 获取气瓶基本信息
List
<
CylinderDateInfo
>
list
=
this
.
list
(
new
LambdaQueryWrapper
<
CylinderDateInfo
>().
eq
(
CylinderDateInfo:
:
getAppId
,
token
.
getAppId
()));
List
<
CylinderDateInfo
>
list
=
this
.
list
(
new
LambdaQueryWrapper
<
CylinderDateInfo
>().
eq
(
CylinderDateInfo:
:
getAppId
,
unit
.
getAppId
()));
for
(
CylinderDateInfo
info
:
list
)
{
for
(
CylinderDateInfo
info
:
list
)
{
cylinder
+=
info
.
getCylinderInfo
();
cylinder
+=
info
.
getCylinderInfo
();
cylinderUnit
+=
info
.
getCylinderUnit
();
cylinderUnit
+=
info
.
getCylinderUnit
();
...
@@ -151,7 +151,7 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto
...
@@ -151,7 +151,7 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto
temp
.
setCylinderTagInfo
(
tags
);
temp
.
setCylinderTagInfo
(
tags
);
temp
.
setCylinderInfo
(
cylinder
);
temp
.
setCylinderInfo
(
cylinder
);
temp
.
setCylinderTotal
(
total
);
temp
.
setCylinderTotal
(
total
);
temp
.
set
DeveloperAgency
(
token
.
getDeveloperAgency
());
temp
.
set
RegionName
(
unit
.
getRegionName
());
result
.
add
(
temp
);
result
.
add
(
temp
);
}
}
page
.
setRecords
(
result
);
page
.
setRecords
(
result
);
...
@@ -204,16 +204,16 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto
...
@@ -204,16 +204,16 @@ public class CylinderDateInfoServiceImpl extends BaseService<CylinderDateInfoDto
this
.
createWithModel
(
temp
);
this
.
createWithModel
(
temp
);
}
else
{
}
else
{
list
.
forEach
(
info
->
{
list
.
forEach
(
info
->
{
String
app
i
d
=
token
.
getAppId
();
String
app
I
d
=
token
.
getAppId
();
// 获取气瓶基本信息
// 获取气瓶基本信息
Integer
cylinder
=
cylinderInfoService
.
count
(
new
LambdaQueryWrapper
<
CylinderInfo
>().
eq
(
CylinderInfo:
:
getAppId
,
app
i
d
).
between
(
CylinderInfo:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
cylinder
=
cylinderInfoService
.
count
(
new
LambdaQueryWrapper
<
CylinderInfo
>().
eq
(
CylinderInfo:
:
getAppId
,
app
I
d
).
between
(
CylinderInfo:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
cylinderUnit
=
cylinderUnitService
.
count
(
new
LambdaQueryWrapper
<
CylinderUnit
>().
eq
(
CylinderUnit:
:
getAppId
,
app
i
d
).
between
(
CylinderUnit:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
cylinderUnit
=
cylinderUnitService
.
count
(
new
LambdaQueryWrapper
<
CylinderUnit
>().
eq
(
CylinderUnit:
:
getAppId
,
app
I
d
).
between
(
CylinderUnit:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
tags
=
cylinderTagsService
.
count
(
new
LambdaQueryWrapper
<
CylinderTags
>().
eq
(
CylinderTags:
:
getAppId
,
app
i
d
).
between
(
CylinderTags:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
tags
=
cylinderTagsService
.
count
(
new
LambdaQueryWrapper
<
CylinderTags
>().
eq
(
CylinderTags:
:
getAppId
,
app
I
d
).
between
(
CylinderTags:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
inspection
=
cylinderInspectionService
.
count
(
new
LambdaQueryWrapper
<
CylinderInspection
>().
eq
(
CylinderInspection:
:
getAppId
,
app
i
d
).
between
(
CylinderInspection:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
inspection
=
cylinderInspectionService
.
count
(
new
LambdaQueryWrapper
<
CylinderInspection
>().
eq
(
CylinderInspection:
:
getAppId
,
app
I
d
).
between
(
CylinderInspection:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
filling
=
cylinderFillingService
.
count
(
new
LambdaQueryWrapper
<
CylinderFilling
>().
eq
(
CylinderFilling:
:
getAppId
,
app
i
d
).
between
(
CylinderFilling:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
filling
=
cylinderFillingService
.
count
(
new
LambdaQueryWrapper
<
CylinderFilling
>().
eq
(
CylinderFilling:
:
getAppId
,
app
I
d
).
between
(
CylinderFilling:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
fillingRecord
=
cylinderFillingRecordService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingRecord
>().
eq
(
CylinderFillingRecord:
:
getAppId
,
app
i
d
).
between
(
CylinderFillingRecord:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
fillingRecord
=
cylinderFillingRecordService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingRecord
>().
eq
(
CylinderFillingRecord:
:
getAppId
,
app
I
d
).
between
(
CylinderFillingRecord:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
fillingCheck
=
cylinderFillingCheckService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingCheck
>().
eq
(
CylinderFillingCheck:
:
getAppId
,
app
i
d
).
between
(
CylinderFillingCheck:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
fillingCheck
=
cylinderFillingCheckService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingCheck
>().
eq
(
CylinderFillingCheck:
:
getAppId
,
app
I
d
).
between
(
CylinderFillingCheck:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
examine
=
cylinderFillingExamineService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingExamine
>().
eq
(
CylinderFillingExamine:
:
getAppId
,
app
i
d
).
between
(
CylinderFillingExamine:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
examine
=
cylinderFillingExamineService
.
count
(
new
LambdaQueryWrapper
<
CylinderFillingExamine
>().
eq
(
CylinderFillingExamine:
:
getAppId
,
app
I
d
).
between
(
CylinderFillingExamine:
:
getSyncDate
,
todayStr
+
" 00:00:00"
,
todayStr
+
" 23:59:59"
));
Integer
total
=
cylinder
+
cylinderUnit
+
tags
+
inspection
+
filling
+
fillingRecord
+
fillingCheck
+
examine
;
Integer
total
=
cylinder
+
cylinderUnit
+
tags
+
inspection
+
filling
+
fillingRecord
+
fillingCheck
+
examine
;
info
.
setCylinderExamineInfo
(
examine
);
info
.
setCylinderExamineInfo
(
examine
);
info
.
setCylinderUnit
(
cylinderUnit
);
info
.
setCylinderUnit
(
cylinderUnit
);
...
...
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