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
238d38bc
Commit
238d38bc
authored
Aug 14, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.大屏-检验检测修改
parent
5b184cd0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
17 deletions
+11
-17
CommonMapper.java
.../yeejoin/amos/boot/module/jg/api/mapper/CommonMapper.java
+0
-2
JYJCDPStatisticsServiceImpl.java
...atistcs/biz/service/impl/JYJCDPStatisticsServiceImpl.java
+10
-14
TzsUserInfoMapper.xml
...e-ymt-api/src/main/resources/mapper/TzsUserInfoMapper.xml
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/mapper/CommonMapper.java
View file @
238d38bc
...
...
@@ -139,7 +139,5 @@ public interface CommonMapper extends BaseMapper<EquipmentCategory> {
* @return 统计数量数组
*/
List
<
Long
>
countAllInFlowingForDPNoFinishedBizData
(
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"dto"
)
DPFilterParamDto
dpFilterParamDto
);
List
<
Map
<
String
,
String
>>
getOrgCodesByCompanyCodes
(
@Param
(
"regionCodes"
)
List
<
Integer
>
regionCodes
);
}
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/service/impl/JYJCDPStatisticsServiceImpl.java
View file @
238d38bc
...
...
@@ -76,8 +76,6 @@ public class JYJCDPStatisticsServiceImpl {
*/
private
final
static
String
EQU_CATEGORY_CYLINDER
=
"2300"
;
private
EquipmentCategoryMapper
equipmentCategoryMapper
;
private
JyjcInspectionApplicationEquipMapper
inspectionApplicationEquipMapper
;
private
JyjcInspectionApplicationMapper
inspectionApplicationMapper
;
...
...
@@ -100,8 +98,7 @@ public class JYJCDPStatisticsServiceImpl {
@Value
(
"${jyjc.legal.companyCode:12610100750228848W,12610300MB2943942F,12610400435630992M,12610200435252143F,126105007326878566,12610600MB29845683,126108004366752362,12610700MB296441XY,12610900353680128G,126110004363154256,126100004352004822}"
)
private
String
legalCompanyCodes
;
public
JYJCDPStatisticsServiceImpl
(
EquipmentCategoryMapper
equipmentCategoryMapper
,
JyjcInspectionApplicationEquipMapper
inspectionApplicationEquipMapper
,
JyjcInspectionApplicationMapper
inspectionApplicationMapper
,
TzsUserInfoMapper
tzsUserInfoMapper
,
JyjcInspectionResultMapper
inspectionResultMapper
,
JyjcOpeningApplicationMapper
openingApplicationMapper
,
RestHighLevelClient
restHighLevelClient
,
StCommonServiceImpl
stCommonService
,
JYJCStatisticsMapper
jyjcStatisticsMapper
)
{
this
.
equipmentCategoryMapper
=
equipmentCategoryMapper
;
public
JYJCDPStatisticsServiceImpl
(
JyjcInspectionApplicationEquipMapper
inspectionApplicationEquipMapper
,
JyjcInspectionApplicationMapper
inspectionApplicationMapper
,
TzsUserInfoMapper
tzsUserInfoMapper
,
JyjcInspectionResultMapper
inspectionResultMapper
,
JyjcOpeningApplicationMapper
openingApplicationMapper
,
RestHighLevelClient
restHighLevelClient
,
StCommonServiceImpl
stCommonService
,
JYJCStatisticsMapper
jyjcStatisticsMapper
)
{
this
.
inspectionApplicationEquipMapper
=
inspectionApplicationEquipMapper
;
this
.
inspectionApplicationMapper
=
inspectionApplicationMapper
;
this
.
tzsUserInfoMapper
=
tzsUserInfoMapper
;
...
...
@@ -122,7 +119,7 @@ public class JYJCDPStatisticsServiceImpl {
List
<
BizTypeEnum
>
bizTypeEnums
=
getBizTypeList
();
result
.
put
(
"legendData"
,
this
.
getLegendData
(
bizTypeEnums
));
// 8大类设备种类
List
<
EquipmentCategoryDto
>
equipmentCategoryDtos
=
equipmentCategoryMapper
.
selectClassif
y
();
List
<
EquipmentCategoryDto
>
equipmentCategoryDtos
=
StCommonServiceImpl
.
getEquipmentCategor
y
();
//2.2 x轴数据构造
result
.
put
(
"xdata"
,
this
.
getXData
(
equipmentCategoryDtos
));
//2.3 y轴数据构造
...
...
@@ -272,12 +269,11 @@ public class JYJCDPStatisticsServiceImpl {
return
result
;
}
//2.3 y轴数据构造
this
.
buildYDataForPendingResultInspectApp
(
result
,
jyjcTypeEnums
,
dpFilterParamDto
);
this
.
buildYDataForPendingResultInspectApp
(
result
,
jyjcTypeEnums
,
dpFilterParamDto
,
orgCode
);
return
result
;
}
private
void
buildYDataForPendingResultInspectApp
(
Map
<
String
,
Object
>
result
,
JYJCTypeEnum
[]
jyjcTypeEnums
,
DPFilterParamDto
dpFilterParamDto
)
{
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
private
void
buildYDataForPendingResultInspectApp
(
Map
<
String
,
Object
>
result
,
JYJCTypeEnum
[]
jyjcTypeEnums
,
DPFilterParamDto
dpFilterParamDto
,
String
orgCode
)
{
List
<
CountDto
>
countDtoList
=
inspectionApplicationMapper
.
queryAllPendingResultInspectApp
(
orgCode
,
dpFilterParamDto
);
fillJYJCYData
(
result
,
jyjcTypeEnums
,
countDtoList
);
}
...
...
@@ -323,18 +319,18 @@ public class JYJCDPStatisticsServiceImpl {
this
.
setDefaultFilter
(
dpFilterParamDto
);
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
// 2.x轴数据构建
List
<
EquipmentCategoryDto
>
equipmentCategoryDtos
=
equipmentCategoryMapper
.
selectClassif
y
();
List
<
EquipmentCategoryDto
>
equipmentCategoryDtos
=
StCommonServiceImpl
.
getEquipmentCategor
y
();
this
.
setXDataForInspectionEquipByEquList
(
result
,
equipmentCategoryDtos
);
// 3.图列数据设置
this
.
setLegendDataForInspectionEquipByEquList
(
result
);
if
(
orgCode
==
null
){
return
result
;
}
//
3
.y轴数据设置
//
4
.y轴数据设置
// 目前都单设备报检故统计主表即可
List
<
CountDto
>
countDtos
=
inspectionApplicationMapper
.
queryAppByEquListForDP
(
orgCode
,
dpFilterParamDto
);
Map
<
String
,
List
<
CountDto
>>
groupByMap
=
countDtos
.
stream
().
collect
(
Collectors
.
groupingBy
(
CountDto:
:
getLabel
));
this
.
setYDataForInspectionEquipByEquList
(
result
,
groupByMap
,
equipmentCategoryDtos
);
// 4.图列数据设置
this
.
setLegendDataForInspectionEquipByEquList
(
result
);
return
result
;
}
...
...
@@ -490,7 +486,7 @@ public class JYJCDPStatisticsServiceImpl {
// 1.1 图列数据构造
result
.
put
(
"legendData"
,
this
.
getLegendDataForJyTime
());
// 8大类设备种类
List
<
EquipmentCategoryDto
>
equipmentCategoryDtos
=
equipmentCategoryMapper
.
selectClassif
y
();
List
<
EquipmentCategoryDto
>
equipmentCategoryDtos
=
StCommonServiceImpl
.
getEquipmentCategor
y
();
// 2.x轴数据构造
result
.
put
(
"xdata"
,
this
.
getEquListXDataCommon
(
equipmentCategoryDtos
));
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
...
...
@@ -519,7 +515,7 @@ public class JYJCDPStatisticsServiceImpl {
boolMust
.
must
(
QueryBuilders
.
wildcardQuery
(
"ORG_BRANCH_CODE.keyword"
,
QueryParser
.
escape
(
orgCode
)
+
"*"
));
// 且在用状态设备
boolMust
.
must
(
QueryBuilders
.
termQuery
(
"EQU_STATE"
,
EquimentEnum
.
ZAIYONG
.
getCode
()));
// 且下次检验日期大于等于当天 且查询 下次检验日期 <= 当前天+30天
极
为临期
// 且下次检验日期大于等于当天 且查询 下次检验日期 <= 当前天+30天
即
为临期
long
currentDayTime
=
DateUtil
.
parse
(
DateUtil
.
today
(),
"yyy-MM-dd"
).
getTime
();
long
currentDayAfter30DayTime
=
DateUtil
.
offsetDay
(
DateUtil
.
parse
(
DateUtil
.
today
(),
"yyy-MM-dd"
),
30
).
getTime
();
boolMust
.
must
(
QueryBuilders
.
rangeQuery
(
"NEXT_INSPECT_DATE"
).
gte
(
currentDayTime
).
lte
(
currentDayAfter30DayTime
));
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/resources/mapper/TzsUserInfoMapper.xml
View file @
238d38bc
...
...
@@ -56,7 +56,7 @@
tz_base_enterprise_info bi
WHERE
tui.unit_code = bi.use_code
and tui.post LIKE concat (
'%', #{post}, '%'
)
and tui.post LIKE concat (
'%', #{post}, '%'
)
and ((bi.supervise_org_code != '50' and bi.supervise_org_code LIKE CONCAT (#{orgCode}, '%')) or (bi.supervise_org_code = '50' and bi.office_region LIKE CONCAT ('%', #{regionCode}, '%')))
and tui.is_delete=false
</select>
...
...
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