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
747c9ec3
Commit
747c9ec3
authored
Jun 07, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
0159d832
69d10e90
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
182 additions
and
52 deletions
+182
-52
equipTemplates.xls
...jxiop-biz/src/main/resources/templates/equipTemplates.xls
+0
-0
ESEquipmentCategoryDto.java
.../amos/boot/module/tzs/api/dto/ESEquipmentCategoryDto.java
+2
-2
IEquipmentCategoryService.java
...oot/module/tzs/api/service/IEquipmentCategoryService.java
+1
-1
EquipmentCategoryMapper.xml
...api/src/main/resources/mapper/EquipmentCategoryMapper.xml
+144
-17
EquipmentCategoryController.java
...odule/tzs/biz/controller/EquipmentCategoryController.java
+1
-1
EquipmentCategoryServiceImpl.java
...le/tzs/biz/service/impl/EquipmentCategoryServiceImpl.java
+34
-31
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/resources/templates/equipTemplates.xls
View file @
747c9ec3
No preview for this file type
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/dto/ESEquipmentCategoryDto.java
View file @
747c9ec3
...
@@ -69,8 +69,8 @@ public class ESEquipmentCategoryDto {
...
@@ -69,8 +69,8 @@ public class ESEquipmentCategoryDto {
@Field
(
type
=
FieldType
.
Text
)
@Field
(
type
=
FieldType
.
Text
)
private
String
STATUS
;
private
String
STATUS
;
@Field
(
type
=
FieldType
.
Date
,
format
=
DateFormat
.
basic_date_time
,
index
=
false
)
@Field
(
type
=
FieldType
.
Long
)
private
Date
REC_DATE
;
private
Long
REC_DATE
;
}
}
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/service/IEquipmentCategoryService.java
View file @
747c9ec3
...
@@ -38,7 +38,7 @@ public interface IEquipmentCategoryService {
...
@@ -38,7 +38,7 @@ public interface IEquipmentCategoryService {
void
checkEsData
(
String
id
);
void
checkEsData
(
String
id
);
List
<
EquipmentCategoryData
>
createEquipmentCategoryData
(
String
unitCode
);
List
<
EquipmentCategoryData
>
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 @
747c9ec3
...
@@ -179,23 +179,150 @@
...
@@ -179,23 +179,150 @@
<select
id=
"getCategoryData"
resultType=
"java.util.Map"
>
<select
id=
"getCategoryData"
resultType=
"java.util.Map"
>
SELECT
SELECT
elevator,
(SELECT
lifting,
to_json ( b ) :: json
vehicle,
FROM
boiler,
(SELECT
vessel,
SUM ( int4 ( ( elevator :: json -> 'waitClaim' ) ) ) waitClaim,
pipeline,
SUM ( int4 ( ( elevator :: json -> 'alreadyClaim' ) ) ) alreadyClaim,
rides,
SUM ( int4 ( ( elevator :: json -> 'refuseClaim' ) ) ) refuseClaim
ropeway
FROM
FROM
biz_jg_equipment_category_data bjecd
biz_jg_equipment_category_data bjecd
WHERE
WHERE
<if
test=
"level == 'company'"
>
<if
test=
"level == 'company'"
>
bjecd."unit_code" LIKE CONCAT('%',#{companyCode},'%')
bjecd."unit_code" LIKE CONCAT('%',#{companyCode},'%')
</if>
</if>
<if
test=
"level != 'company'"
>
<if
test=
"level != 'company'"
>
bjecd."org_branch_code" LIKE CONCAT('%',#{orgCode},'%')
bjecd."org_branch_code" LIKE CONCAT('%',#{orgCode},'%')
</if>
</if>
) b
) elevator,
(SELECT
to_json ( b ) :: json
FROM
(SELECT
SUM ( int4 ( ( vehicle :: json -> 'waitClaim' ) ) ) waitClaim,
SUM ( int4 ( ( vehicle :: json -> 'alreadyClaim' ) ) ) alreadyClaim,
SUM ( int4 ( ( vehicle :: json -> 'refuseClaim' ) ) ) refuseClaim
FROM
biz_jg_equipment_category_data bjecd
WHERE
<if
test=
"level == 'company'"
>
bjecd."unit_code" LIKE CONCAT('%',#{companyCode},'%')
</if>
<if
test=
"level != 'company'"
>
bjecd."org_branch_code" LIKE CONCAT('%',#{orgCode},'%')
</if>
) b
) vehicle,
(SELECT
to_json ( b ) :: json
FROM
(SELECT
SUM ( int4 ( ( ropeway :: json -> 'waitClaim' ) ) ) waitClaim,
SUM ( int4 ( ( ropeway :: json -> 'alreadyClaim' ) ) ) alreadyClaim,
SUM ( int4 ( ( ropeway :: json -> 'refuseClaim' ) ) ) refuseClaim
FROM
biz_jg_equipment_category_data bjecd
WHERE
<if
test=
"level == 'company'"
>
bjecd."unit_code" LIKE CONCAT('%',#{companyCode},'%')
</if>
<if
test=
"level != 'company'"
>
bjecd."org_branch_code" LIKE CONCAT('%',#{orgCode},'%')
</if>
) b
) ropeway,
(SELECT
to_json ( b ) :: json
FROM
(SELECT
SUM ( int4 ( ( rides :: json -> 'waitClaim' ) ) ) waitClaim,
SUM ( int4 ( ( rides :: json -> 'alreadyClaim' ) ) ) alreadyClaim,
SUM ( int4 ( ( rides :: json -> 'refuseClaim' ) ) ) refuseClaim
FROM
biz_jg_equipment_category_data bjecd
WHERE
<if
test=
"level == 'company'"
>
bjecd."unit_code" LIKE CONCAT('%',#{companyCode},'%')
</if>
<if
test=
"level != 'company'"
>
bjecd."org_branch_code" LIKE CONCAT('%',#{orgCode},'%')
</if>
) b
) rides,
(SELECT
to_json ( b ) :: json
FROM
(SELECT
SUM ( int4 ( ( boiler :: json -> 'waitClaim' ) ) ) waitClaim,
SUM ( int4 ( ( boiler :: json -> 'alreadyClaim' ) ) ) alreadyClaim,
SUM ( int4 ( ( boiler :: json -> 'refuseClaim' ) ) ) refuseClaim
FROM
biz_jg_equipment_category_data bjecd
WHERE
<if
test=
"level == 'company'"
>
bjecd."unit_code" LIKE CONCAT('%',#{companyCode},'%')
</if>
<if
test=
"level != 'company'"
>
bjecd."org_branch_code" LIKE CONCAT('%',#{orgCode},'%')
</if>
) b
) boiler,
(SELECT
to_json ( b ) :: json
FROM
(SELECT
SUM ( int4 ( ( vessel :: json -> 'waitClaim' ) ) ) waitClaim,
SUM ( int4 ( ( vessel :: json -> 'alreadyClaim' ) ) ) alreadyClaim,
SUM ( int4 ( ( vessel :: json -> 'refuseClaim' ) ) ) refuseClaim
FROM
biz_jg_equipment_category_data bjecd
WHERE
<if
test=
"level == 'company'"
>
bjecd."unit_code" LIKE CONCAT('%',#{companyCode},'%')
</if>
<if
test=
"level != 'company'"
>
bjecd."org_branch_code" LIKE CONCAT('%',#{orgCode},'%')
</if>
) b
) vessel,
(SELECT
to_json ( b ) :: json
FROM
(SELECT
SUM ( int4 ( ( pipeline :: json -> 'waitClaim' ) ) ) waitClaim,
SUM ( int4 ( ( pipeline :: json -> 'alreadyClaim' ) ) ) alreadyClaim,
SUM ( int4 ( ( pipeline :: json -> 'refuseClaim' ) ) ) refuseClaim
FROM
biz_jg_equipment_category_data bjecd
WHERE
<if
test=
"level == 'company'"
>
bjecd."unit_code" LIKE CONCAT('%',#{companyCode},'%')
</if>
<if
test=
"level != 'company'"
>
bjecd."org_branch_code" LIKE CONCAT('%',#{orgCode},'%')
</if>
) b
) pipeline,
(SELECT
to_json ( b ) :: json
FROM
(SELECT
SUM ( int4 ( ( lifting :: json -> 'waitClaim' ) ) ) waitClaim,
SUM ( int4 ( ( lifting :: json -> 'alreadyClaim' ) ) ) alreadyClaim,
SUM ( int4 ( ( lifting :: json -> 'refuseClaim' ) ) ) refuseClaim
FROM
biz_jg_equipment_category_data bjecd
WHERE
<if
test=
"level == 'company'"
>
bjecd."unit_code" LIKE CONCAT('%',#{companyCode},'%')
</if>
<if
test=
"level != 'company'"
>
bjecd."org_branch_code" LIKE CONCAT('%',#{orgCode},'%')
</if>
) b
) lifting
</select>
</select>
<select
id=
"getUnitCodeByRecord"
resultType=
"java.lang.String"
>
<select
id=
"getUnitCodeByRecord"
resultType=
"java.lang.String"
>
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/EquipmentCategoryController.java
View file @
747c9ec3
...
@@ -247,7 +247,7 @@ public class EquipmentCategoryController extends BaseController {
...
@@ -247,7 +247,7 @@ public class EquipmentCategoryController extends BaseController {
@ApiOperation
(
httpMethod
=
"get"
,
value
=
"初始化一码通总览数据"
,
notes
=
"初始化一码通总览数据"
)
@ApiOperation
(
httpMethod
=
"get"
,
value
=
"初始化一码通总览数据"
,
notes
=
"初始化一码通总览数据"
)
public
ResponseModel
<
Object
>
createEquipmentCategoryData
(){
public
ResponseModel
<
Object
>
createEquipmentCategoryData
(){
return
ResponseHelper
.
buildResponse
(
equipmentCategoryService
.
createEquipmentCategoryData
(
null
));
return
ResponseHelper
.
buildResponse
(
equipmentCategoryService
.
createEquipmentCategoryData
());
}
}
/**
/**
...
...
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 @
747c9ec3
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