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
87f17677
Commit
87f17677
authored
Jul 24, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一码通使用es
parent
a47bd1a0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
18 deletions
+39
-18
CategoryOtherInfoMapper.java
...s/boot/module/ymt/api/mapper/CategoryOtherInfoMapper.java
+2
-0
EquipmentCategoryMapper.java
...s/boot/module/ymt/api/mapper/EquipmentCategoryMapper.java
+1
-1
CategoryOtherInfoMapper.xml
...api/src/main/resources/mapper/CategoryOtherInfoMapper.xml
+8
-1
EquipmentCategoryMapper.xml
...api/src/main/resources/mapper/EquipmentCategoryMapper.xml
+25
-13
EquipmentCategoryController.java
...odule/ymt/biz/controller/EquipmentCategoryController.java
+3
-3
EquipmentCategoryServiceImpl.java
...le/ymt/biz/service/impl/EquipmentCategoryServiceImpl.java
+0
-0
No files found.
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/mapper/CategoryOtherInfoMapper.java
View file @
87f17677
...
...
@@ -31,4 +31,6 @@ public interface CategoryOtherInfoMapper extends BaseMapper<CategoryOtherInfo> {
Map
<
String
,
Object
>
selectDataById
(
String
id
);
CategoryOtherInfo
queryInitCode
(
@Param
(
"initCode"
)
@NonNull
String
initCode
);
void
updateEsStatus
(
String
id
);
}
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/mapper/EquipmentCategoryMapper.java
View file @
87f17677
...
...
@@ -47,7 +47,7 @@ public interface EquipmentCategoryMapper extends BaseMapper<EquipmentCategory> {
String
getUnitCodeByRecord
(
String
record
);
List
<
UseUnitCreditCodeCategoryDto
>
useUnitCreditCodeCategoryCount
();
List
<
UseUnitCreditCodeCategoryDto
>
useUnitCreditCodeCategoryCount
(
@Param
(
"unitCodes"
)
List
<
String
>
unitCodes
,
@Param
(
"orgBranchCodes"
)
List
<
String
>
orgBranchCodes
);
List
<
EquipExportVo
>
getEquipExportData
(
@Param
(
"dto"
)
EquipExportDto
dto
);
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/resources/mapper/CategoryOtherInfoMapper.xml
View file @
87f17677
...
...
@@ -50,6 +50,7 @@
</select>
<select
id=
"selectDataById"
resultType=
"java.util.Map"
>
SELECT SEQUENCE_NBR,
REC_DATE,
ORG_BRANCH_NAME,
ORG_BRANCH_CODE,
USE_UNIT_NAME,
...
...
@@ -61,7 +62,7 @@
CODE96333,
EQU_CODE,
SUPERVISORY_CODE,
USE_PLACE
,
USE_PLACE,
ADDRESS,
EQU_STATE,
STATUS
...
...
@@ -92,4 +93,10 @@
SET "EDIT_STATUS" = #{editStatus}
WHERE "SUPERVISORY_CODE" = #{supervisorCode}
</update>
<update
id=
"updateEsStatus"
>
UPDATE idx_biz_jg_use_info
SET "IS_NOT_ES" = '1'
WHERE "RECORD" = #{id}
</update>
</mapper>
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/resources/mapper/EquipmentCategoryMapper.xml
View file @
87f17677
...
...
@@ -306,21 +306,33 @@
<select
id=
"useUnitCreditCodeCategoryCount"
resultType=
"com.yeejoin.amos.boot.module.ymt.api.dto.UseUnitCreditCodeCategoryDto"
>
SELECT
ibjsi."ORG_BRANCH_CODE",
ibjui."USE_UNIT_CREDIT_CODE",
ibjoi."CLAIM_STATUS",
ibjri."EQU_LIST",
COUNT ( * ) as TOTAL
ibjsi."ORG_BRANCH_CODE",
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
LEFT JOIN idx_biz_jg_supervision_info ibjsi ON
ibjsi."RECORD" = ibjui."RECORD"
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
LEFT JOIN idx_biz_jg_supervision_info ibjsi ON
ibjsi."RECORD" = ibjui."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",ibjsi."ORG_BRANCH_CODE", ibjoi."CLAIM_STATUS",ibjri."EQU_LIST"
ibjoi."CLAIM_STATUS"
<![CDATA[ <> ]]>
''
and ibjui."USE_UNIT_CREDIT_CODE"
<![CDATA[ <> ]]>
''
and ibjri."EQU_LIST"
<![CDATA[ <> ]]>
''
<if
test=
"unitCodes !=null and unitCodes.size>0"
>
and ibjui.USE_UNIT_CREDIT_CODE in
<foreach
collection=
"unitCodes"
separator=
","
item=
"unitCode"
open=
"("
close=
")"
>
#{unitCode}
</foreach>
</if>
<if
test=
"orgBranchCodes !=null and orgBranchCodes.size>0"
>
and ibjsi.ORG_BRANCH_CODE in
<foreach
collection=
"orgBranchCodes"
separator=
","
item=
"orgBranchCode"
open=
"("
close=
")"
>
#{orgBranchCode}
</foreach>
</if>
GROUP BY ibjui."USE_UNIT_CREDIT_CODE",ibjsi."ORG_BRANCH_CODE", ibjoi."CLAIM_STATUS",ibjri."EQU_LIST"
</select>
<select
id=
"getEquipExportData"
resultType=
"com.yeejoin.amos.boot.module.ymt.api.vo.EquipExportVo"
>
select ORG_BRANCH_NAME as orgBranchName,
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/controller/EquipmentCategoryController.java
View file @
87f17677
...
...
@@ -368,9 +368,9 @@ public class EquipmentCategoryController extends BaseController {
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"
/test
"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"
test"
,
notes
=
"test
"
)
public
ResponseModel
<
String
>
test
()
{
@GetMapping
(
value
=
"
saveEquipmentCategoryToEs
"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"
一码通数据初始化至es"
,
notes
=
"一码通数据初始化至es
"
)
public
ResponseModel
<
String
>
saveEquipmentCategoryToEs
()
{
equipmentCategoryServiceImpl
.
saveEs
();
return
ResponseHelper
.
buildResponse
(
"success"
);
}
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/service/impl/EquipmentCategoryServiceImpl.java
View file @
87f17677
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