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
dacbb98e
Commit
dacbb98e
authored
Jun 01, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(cyl):资质附件,轮播图用
parent
e2c12ab5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
0 deletions
+35
-0
CylinderInfoMapper.java
...ot/module/cylinder/flc/api/mapper/CylinderInfoMapper.java
+2
-0
CylinderInfoMapper.xml
...nder-api/src/main/resources/mapper/CylinderInfoMapper.xml
+10
-0
CylinderInfoController.java
...e/cylinder/flc/biz/controller/CylinderInfoController.java
+23
-0
No files found.
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/java/com/yeejoin/amos/boot/module/cylinder/flc/api/mapper/CylinderInfoMapper.java
View file @
dacbb98e
...
...
@@ -111,7 +111,9 @@ public interface CylinderInfoMapper extends BaseMapper<CylinderInfo> {
List
<
CylinderInfoDto
>
queryCylinderOfInspectionOverdue
();
List
<
CylinderInfoDto
>
queryCylinderOfUnqualifiedQuestion
();
List
<
Map
<
String
,
Object
>>
countFillingTimesAndQuantityByCity
();
String
getAttachmentByUnitCode
(
@Param
(
"appId"
)
String
appId
);
}
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/resources/mapper/CylinderInfoMapper.xml
View file @
dacbb98e
...
...
@@ -414,6 +414,16 @@
GROUP BY regionCode
</select>
<select
id=
"getAttachmentByUnitCode"
resultType=
"java.lang.String"
>
select qualification_certificate_attachment as qualificationCertificateAttachment
FROM view_cylinder_unit_info
<where>
<if
test=
"appId != null and appId != ''"
>
"app_id" = #{appId}
</if>
</where>
</select>
<select
id=
"countNumber"
resultType=
"java.lang.Integer"
>
SELECT count(DISTINCT(onlyCode))
FROM(
...
...
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-biz/src/main/java/com/yeejoin/amos/boot/module/cylinder/flc/biz/controller/CylinderInfoController.java
View file @
dacbb98e
package
com
.
yeejoin
.
amos
.
boot
.
module
.
cylinder
.
flc
.
biz
.
controller
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
...
...
@@ -51,6 +52,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import
javax.servlet.http.HttpServletRequest
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
* 气瓶基本信息
...
...
@@ -1364,4 +1366,25 @@ public class CylinderInfoController extends BaseController {
public
ResponseModel
<
Map
<
String
,
Object
>>
countFillingTimesAndQuantityByCity
()
{
return
ResponseHelper
.
buildResponse
(
cylinderInfoServiceImpl
.
countFillingTimesAndQuantityByCity
());
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"资质附件,轮播图用"
)
@GetMapping
(
value
=
"/getAttachmentByUnitCode"
)
public
ResponseModel
<
List
<
String
>>
getAttachmentByUnitCode
(
String
unitCode
)
{
List
<
String
>
result
=
new
ArrayList
<>();
String
attachmentByUnitCode
=
cylinderInfoServiceImpl
.
getBaseMapper
().
getAttachmentByUnitCode
(
unitCode
);
if
(
attachmentByUnitCode
!=
null
&&
!
attachmentByUnitCode
.
isEmpty
())
{
JSONArray
jsonArray
=
JSON
.
parseArray
(
attachmentByUnitCode
);
if
(
jsonArray
!=
null
)
{
jsonArray
.
stream
()
.
filter
(
JSONObject
.
class
::
isInstance
)
.
map
(
JSONObject
.
class
::
cast
)
.
map
(
obj
->
obj
.
getString
(
"url"
))
.
filter
(
Objects:
:
nonNull
)
.
forEach
(
result:
:
add
);
}
}
return
ResponseHelper
.
buildResponse
(
result
);
}
}
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