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
b2d65fc9
Commit
b2d65fc9
authored
Jun 14, 2023
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
8eb340bf
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
7 deletions
+17
-7
TzBaseEnterpriseInfo.java
...amos/boot/module/tzs/api/entity/TzBaseEnterpriseInfo.java
+3
-0
CylinderInfoMapper.xml
...-tzs-api/src/main/resources/mapper/CylinderInfoMapper.xml
+2
-3
TzBaseEnterpriseInfoMapper.xml
.../src/main/resources/mapper/TzBaseEnterpriseInfoMapper.xml
+5
-2
TzBaseEnterpriseInfoController.java
...le/tzs/biz/controller/TzBaseEnterpriseInfoController.java
+1
-2
TzBaseEnterpriseInfoServiceImpl.java
...tzs/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
+6
-0
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/entity/TzBaseEnterpriseInfo.java
View file @
b2d65fc9
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.FieldStrategy
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
io.swagger.annotations.ApiModel
;
...
...
@@ -183,5 +185,6 @@ public class TzBaseEnterpriseInfo extends BaseEntity {
private
String
industrySupervisor
;
@ApiModelProperty
(
value
=
"企业标签信息"
)
@TableField
(
updateStrategy
=
FieldStrategy
.
IGNORED
)
private
String
regulatoryLabels
;
}
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/CylinderInfoMapper.xml
View file @
b2d65fc9
...
...
@@ -9,14 +9,13 @@
count( CASE WHEN i.next_inspection_date
<![CDATA[ < ]]>
now() THEN 1 END ) AS outOfDateNum
FROM
tz_cylinder_unit U
LEFT JOIN tz_cylinder_info AS t ON
u.credit_code = t.credit_code and
t.app_id = u.app_id
LEFT JOIN tz_cylinder_info AS t ON t.app_id = u.app_id
LEFT JOIN tz_cylinder_inspection AS i ON i.sequence_code = t.sequence_code
LEFT JOIN (SELECT * FROM tz_base_unit_licence
GROUP BY unit_code
ORDER BY expiry_date DESC) AS l ON l.unit_code = u.credit_code
WHERE
t.sequence_nbr IN ( SELECT max( tt.sequence_nbr ) FROM tz_cylinder_info tt GROUP BY tt.sequence_code )
AND u.sequence_nbr = #{sequenceNbr}
u.sequence_nbr = #{sequenceNbr}
GROUP BY u.sequence_nbr
</select>
...
...
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/TzBaseEnterpriseInfoMapper.xml
View file @
b2d65fc9
...
...
@@ -139,10 +139,12 @@
test=
"tzBaseEnterpriseInfoDto.address!=null and tzBaseEnterpriseInfoDto.address!='' "
>
AND supervise_org_code LIKE CONCAT('%',#{tzBaseEnterpriseInfoDto.address},'%')
</if>
<if
test=
"tzBaseEnterpriseInfoDto.regulatoryLabels!=null and tzBaseEnterpriseInfoDto.regulatoryLabels!='' "
>
AND regulatory_labels LIKE CONCAT('%',#{tzBaseEnterpriseInfoDto.regulatoryLabels},'%')
</if>
<if
test=
"orgCodeList != null and ! orgCodeList.isEmpty() and orgCodeList.size() > 0"
>
1=1
<foreach
collection=
"orgCodeList"
item=
"item"
index=
"index"
>
<if
test=
"index==0"
>
AND
...
...
@@ -155,6 +157,7 @@
</if>
AND is_delete = 0
</where>
order by rec_date desc
</select>
<select
id=
"selectByUseUnit"
resultType=
"com.yeejoin.amos.boot.module.tzs.api.entity.TzBaseEnterpriseInfo"
>
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/TzBaseEnterpriseInfoController.java
View file @
b2d65fc9
...
...
@@ -242,10 +242,9 @@ public class TzBaseEnterpriseInfoController {
public
ResponseModel
<
Object
>
setLabel
(
@RequestBody
Map
<
String
,
Object
>
map
)
{
ArrayList
<
String
>
enterpriseLabel
=
new
ArrayList
<>();
ArrayList
<
Long
>
enterpriseIds
=
new
ArrayList
<>(
);
ArrayList
<
Long
>
enterpriseIds
=
(
ArrayList
)
map
.
get
(
"enterpriseIds"
);
if
(!
ObjectUtils
.
isEmpty
(
map
)
&&
!
ObjectUtils
.
isEmpty
(
map
.
get
(
"enterpriseLabel"
))
&&
!
ObjectUtils
.
isEmpty
(
map
.
get
(
"enterpriseIds"
)))
{
enterpriseLabel
=
(
ArrayList
)
map
.
get
(
"enterpriseLabel"
);
enterpriseIds
=
(
ArrayList
)
map
.
get
(
"enterpriseIds"
);
}
return
ResponseHelper
.
buildResponse
(
iTzBaseEnterpriseInfoService
.
setLabel
(
enterpriseIds
,
enterpriseLabel
));
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
View file @
b2d65fc9
...
...
@@ -479,6 +479,7 @@ public class TzBaseEnterpriseInfoServiceImpl
@Override
public
String
setLabel
(
List
<
Long
>
enterpriseIds
,
List
<
String
>
enterpriseLabels
)
{
List
<
TzBaseEnterpriseInfo
>
tzBaseEnterpriseInfos
=
tzBaseEnterpriseInfoMapper
.
selectBatchIds
(
enterpriseIds
);
if
(!
ObjectUtils
.
isEmpty
(
enterpriseLabels
))
{
for
(
TzBaseEnterpriseInfo
tzBaseEnterpriseInfo
:
tzBaseEnterpriseInfos
)
{
// 标签递增逻辑
// if (!ObjectUtils.isEmpty(tzBaseEnterpriseInfo.getRegulatoryLabels())) {
...
...
@@ -491,6 +492,11 @@ public class TzBaseEnterpriseInfoServiceImpl
String
labels
=
String
.
join
(
","
,
enterpriseLabels
);
tzBaseEnterpriseInfo
.
setRegulatoryLabels
(
labels
);
}
}
else
{
tzBaseEnterpriseInfos
.
forEach
(
item
->
{
item
.
setRegulatoryLabels
(
null
);
});
}
this
.
updateBatchById
(
tzBaseEnterpriseInfos
);
return
"success"
;
}
...
...
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