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
e768ba01
Commit
e768ba01
authored
Dec 05, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 气瓶安全追溯系统,液化石油气瓶,总览页面,地图上充装企业许可有效期时间已经超时,地图标点依然为正常图标 的问题
parent
8c6e7dad
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
2 deletions
+27
-2
CylinderUnitMapper.java
...os/boot/module/tzs/flc/api/mapper/CylinderUnitMapper.java
+7
-0
CylinderUnitMapper.xml
...-tzs-api/src/main/resources/mapper/CylinderUnitMapper.xml
+3
-0
CylinderUnitController.java
...module/tzs/flc/biz/controller/CylinderUnitController.java
+7
-2
CylinderUnitServiceImpl.java
...ule/tzs/flc/biz/service/impl/CylinderUnitServiceImpl.java
+10
-0
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/mapper/CylinderUnitMapper.java
View file @
e768ba01
...
@@ -34,4 +34,11 @@ public interface CylinderUnitMapper extends BaseMapper<CylinderUnit> {
...
@@ -34,4 +34,11 @@ public interface CylinderUnitMapper extends BaseMapper<CylinderUnit> {
Integer
getWarnNum
(
String
code
);
Integer
getWarnNum
(
String
code
);
Integer
getWarnNumByAppId
(
String
appId
);
Integer
getWarnNumByAppId
(
String
appId
);
/**
* 根据creditCode查询该企业是否存在许可超期
* @param creditCode 统一社会信用代码
* @return
*/
Integer
getLicenseOutOfDate
(
String
creditCode
);
}
}
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/CylinderUnitMapper.xml
View file @
e768ba01
...
@@ -24,4 +24,7 @@
...
@@ -24,4 +24,7 @@
select count(1) from view_cylider_outofdate v where v.app_id =#{appId}
select count(1) from view_cylider_outofdate v where v.app_id =#{appId}
</select>
</select>
<select
id=
"getLicenseOutOfDate"
resultType=
"java.lang.Integer"
>
select count(1) from view_unit_outofdate v where v.credit_code = #{creditCode}
</select>
</mapper>
</mapper>
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/controller/CylinderUnitController.java
View file @
e768ba01
...
@@ -43,6 +43,8 @@ public class CylinderUnitController extends BaseController {
...
@@ -43,6 +43,8 @@ public class CylinderUnitController extends BaseController {
@Autowired
@Autowired
ICylinderInfoService
iCylinderInfoService
;
ICylinderInfoService
iCylinderInfoService
;
/**
/**
* 通过regionCode查询气瓶企业
* 通过regionCode查询气瓶企业
*
*
...
@@ -59,11 +61,14 @@ public class CylinderUnitController extends BaseController {
...
@@ -59,11 +61,14 @@ public class CylinderUnitController extends BaseController {
unitList
.
stream
().
forEach
(
t
->
{
unitList
.
stream
().
forEach
(
t
->
{
CylinderUnitDto
temp
=
new
CylinderUnitDto
();
CylinderUnitDto
temp
=
new
CylinderUnitDto
();
BeanUtils
.
copyProperties
(
t
,
temp
);
BeanUtils
.
copyProperties
(
t
,
temp
);
temp
.
setOutOfDate
(
false
);
int
num
=
cylinderUnitServiceImpl
.
getWarnNumByAppId
(
t
.
getAppId
());
int
num
=
cylinderUnitServiceImpl
.
getWarnNumByAppId
(
t
.
getAppId
());
if
(
num
>
0
)
{
if
(
num
>
0
)
{
temp
.
setOutOfDate
(
true
);
temp
.
setOutOfDate
(
true
);
}
else
{
}
temp
.
setOutOfDate
(
false
);
num
=
cylinderUnitServiceImpl
.
getLicenseOutOfDate
(
temp
.
getCreditCode
());
if
(
num
>
0
){
temp
.
setOutOfDate
(
true
);
}
}
result
.
add
(
temp
);
result
.
add
(
temp
);
});
});
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/service/impl/CylinderUnitServiceImpl.java
View file @
e768ba01
...
@@ -137,4 +137,13 @@ public class CylinderUnitServiceImpl extends BaseService<CylinderUnitDto, Cylind
...
@@ -137,4 +137,13 @@ public class CylinderUnitServiceImpl extends BaseService<CylinderUnitDto, Cylind
tzBaseEnterpriseInfoDto
.
setRegUnitIcDto
(
regUnitIcDto
);
tzBaseEnterpriseInfoDto
.
setRegUnitIcDto
(
regUnitIcDto
);
return
tzBaseEnterpriseInfoDto
;
return
tzBaseEnterpriseInfoDto
;
}
}
/**
* 根据creditCode查询该企业是否存在许可超期
* @param creditCode 统一社会信用代码
* @return
*/
public
Integer
getLicenseOutOfDate
(
String
creditCode
){
return
baseMapper
.
getLicenseOutOfDate
(
creditCode
);
}
}
}
\ No newline at end of file
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