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
746ff7d8
Commit
746ff7d8
authored
Jun 27, 2023
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.总览数据刷新优化33秒左右
parent
18c8b218
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
137 additions
and
47 deletions
+137
-47
UseUnitCreditCodeCategoryDto.java
...boot/module/tzs/api/dto/UseUnitCreditCodeCategoryDto.java
+28
-0
EquipmentCategoryMapper.java
...s/boot/module/tzs/api/mapper/EquipmentCategoryMapper.java
+5
-0
IEquipmentCategoryService.java
...oot/module/tzs/api/service/IEquipmentCategoryService.java
+1
-1
EquipmentCategoryMapper.xml
...api/src/main/resources/mapper/EquipmentCategoryMapper.xml
+19
-2
EquipmentCategoryController.java
...odule/tzs/biz/controller/EquipmentCategoryController.java
+2
-2
EquipmentCategoryServiceImpl.java
...le/tzs/biz/service/impl/EquipmentCategoryServiceImpl.java
+82
-42
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/dto/UseUnitCreditCodeCategoryDto.java
0 → 100644
View file @
746ff7d8
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
dto
;
import
lombok.Data
;
/**
* @author Administrator
*/
@Data
public
class
UseUnitCreditCodeCategoryDto
{
/**
* 使用单位编码
*/
private
String
useUnitCreditCode
;
/**
* 状态
*/
private
String
claimStatus
;
/**
* 设备定义编码
*/
private
String
equList
;
/**
* 数量
*/
private
Long
total
;
}
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/mapper/EquipmentCategoryMapper.java
View file @
746ff7d8
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.tzs.api.mapper;
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.tzs.api.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.EquipmentCategoryDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.EquipmentCategoryDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.UseUnitCreditCodeCategoryDto
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.EquipmentCategory
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.EquipmentCategory
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
org.apache.ibatis.annotations.Select
;
...
@@ -22,6 +23,7 @@ public interface EquipmentCategoryMapper extends BaseMapper<EquipmentCategory> {
...
@@ -22,6 +23,7 @@ public interface EquipmentCategoryMapper extends BaseMapper<EquipmentCategory> {
List
<
Map
<
String
,
Object
>>
getCategoryCount
(
@Param
(
"companyCode"
)
String
companyCode
);
List
<
Map
<
String
,
Object
>>
getCategoryCount
(
@Param
(
"companyCode"
)
String
companyCode
);
Map
<
String
,
Object
>
getAdministrativeDivision
(
@Param
(
"division"
)
String
division
,
@Param
(
"county"
)
String
county
);
Map
<
String
,
Object
>
getAdministrativeDivision
(
@Param
(
"division"
)
String
division
,
@Param
(
"county"
)
String
county
);
...
@@ -40,4 +42,7 @@ public interface EquipmentCategoryMapper extends BaseMapper<EquipmentCategory> {
...
@@ -40,4 +42,7 @@ public interface EquipmentCategoryMapper extends BaseMapper<EquipmentCategory> {
List
<
Map
<
String
,
Object
>>
getCategoryData
(
String
level
,
String
orgCode
,
String
companyCode
);
List
<
Map
<
String
,
Object
>>
getCategoryData
(
String
level
,
String
orgCode
,
String
companyCode
);
String
getUnitCodeByRecord
(
String
record
);
String
getUnitCodeByRecord
(
String
record
);
List
<
UseUnitCreditCodeCategoryDto
>
useUnitCreditCodeCategoryCount
();
}
}
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/service/IEquipmentCategoryService.java
View file @
746ff7d8
...
@@ -39,7 +39,7 @@ public interface IEquipmentCategoryService {
...
@@ -39,7 +39,7 @@ public interface IEquipmentCategoryService {
void
checkEsData
(
String
id
);
void
checkEsData
(
String
id
);
List
<
EquipmentCategoryData
>
createEquipmentCategoryData
();
void
createEquipmentCategoryData
();
EquipmentCategoryData
updateEquipmentCategoryData
(
String
id
);
EquipmentCategoryData
updateEquipmentCategoryData
(
String
id
);
...
...
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/EquipmentCategoryMapper.xml
View file @
746ff7d8
...
@@ -135,8 +135,7 @@
...
@@ -135,8 +135,7 @@
idx_biz_jg_use_info ibjui
idx_biz_jg_use_info ibjui
LEFT JOIN idx_biz_jg_supervision_info ibjsi ON ibjui."RECORD" = ibjsi."RECORD"
LEFT JOIN idx_biz_jg_supervision_info ibjsi ON ibjui."RECORD" = ibjsi."RECORD"
WHERE
WHERE
USE_UNIT_CREDIT_CODE is NOT NULL
USE_UNIT_CREDIT_CODE
<![CDATA[ <> ]]>
''
AND USE_UNIT_CREDIT_CODE
<![CDATA[ <> ]]>
''
AND (lengthb(USE_UNIT_CREDIT_CODE)= 15 or lengthb(USE_UNIT_CREDIT_CODE)= 18)
AND (lengthb(USE_UNIT_CREDIT_CODE)= 15 or lengthb(USE_UNIT_CREDIT_CODE)= 18)
<if
test=
"unitCodes !=null and unitCodes.size>0"
>
<if
test=
"unitCodes !=null and unitCodes.size>0"
>
and USE_UNIT_CREDIT_CODE in
and USE_UNIT_CREDIT_CODE in
...
@@ -299,4 +298,22 @@
...
@@ -299,4 +298,22 @@
<select
id=
"getUnitCodeByRecord"
resultType=
"java.lang.String"
>
<select
id=
"getUnitCodeByRecord"
resultType=
"java.lang.String"
>
select "USE_UNIT_CREDIT_CODE" from idx_biz_jg_use_info where "RECORD" = #{id}
select "USE_UNIT_CREDIT_CODE" from idx_biz_jg_use_info where "RECORD" = #{id}
</select>
</select>
<select
id=
"useUnitCreditCodeCategoryCount"
resultType=
"com.yeejoin.amos.boot.module.tzs.api.dto.UseUnitCreditCodeCategoryDto"
>
SELECT
ibjui."USE_UNIT_CREDIT_CODE",
ibjoi."CLAIM_STATUS",
ibjri."EQU_LIST",
COUNT ( * ) as TOTAL
FROM
idx_biz_jg_use_info ibjui
LEFT JOIN idx_biz_jg_register_info ibjri ON ibjui.RECORD = ibjri.RECORD
LEFT JOIN idx_biz_jg_other_info ibjoi ON ibjui.RECORD = ibjoi.RECORD
where
ibjoi."CLAIM_STATUS"
<![CDATA[ <> ]]>
''
and ibjui."USE_UNIT_CREDIT_CODE"
<![CDATA[ <> ]]>
''
and ibjri."EQU_LIST"
<![CDATA[ <> ]]>
''
GROUP BY ibjui."USE_UNIT_CREDIT_CODE", ibjoi."CLAIM_STATUS",ibjri."EQU_LIST"
ORDER BY ibjui."USE_UNIT_CREDIT_CODE"
</select>
</mapper>
</mapper>
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/EquipmentCategoryController.java
View file @
746ff7d8
...
@@ -260,8 +260,8 @@ public class EquipmentCategoryController extends BaseController {
...
@@ -260,8 +260,8 @@ public class EquipmentCategoryController extends BaseController {
@RequestMapping
(
value
=
"/createEquipmentCategoryData"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/createEquipmentCategoryData"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"get"
,
value
=
"初始化一码通总览数据"
,
notes
=
"初始化一码通总览数据"
)
@ApiOperation
(
httpMethod
=
"get"
,
value
=
"初始化一码通总览数据"
,
notes
=
"初始化一码通总览数据"
)
public
ResponseModel
<
Object
>
createEquipmentCategoryData
(){
public
ResponseModel
<
Object
>
createEquipmentCategoryData
(){
equipmentCategoryService
.
createEquipmentCategoryData
();
return
ResponseHelper
.
buildResponse
(
equipmentCategoryService
.
createEquipmentCategoryData
()
);
return
ResponseHelper
.
buildResponse
(
"SUCCESS"
);
}
}
/**
/**
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/EquipmentCategoryServiceImpl.java
View file @
746ff7d8
This diff is collapsed.
Click to expand it.
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