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
31441b62
Commit
31441b62
authored
Oct 19, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
c6edc020
33ad570d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
13 deletions
+11
-13
TzCylinderMapper.java
...boot/module/cylinder/flc/api/mapper/TzCylinderMapper.java
+3
-3
CylinderInfoMapper.xml
...nder-api/src/main/resources/mapper/CylinderInfoMapper.xml
+1
-4
TzCylinderMapper.xml
...linder-api/src/main/resources/mapper/TzCylinderMapper.xml
+4
-3
TzCylinderServiceImpl.java
.../cylinder/flc/biz/service/impl/TzCylinderServiceImpl.java
+3
-3
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/TzCylinderMapper.java
View file @
31441b62
...
@@ -29,13 +29,13 @@ public interface TzCylinderMapper extends BaseMapper<CylinderInfo> {
...
@@ -29,13 +29,13 @@ public interface TzCylinderMapper extends BaseMapper<CylinderInfo> {
List
<
TzCylinderInspectionDto
>
getTzCylinderInspectionDto
(
String
sequenceCode
,
String
appId
);
List
<
TzCylinderInspectionDto
>
getTzCylinderInspectionDto
(
String
sequenceCode
,
String
appId
);
List
<
TzCylinderFillingDto
>
getTzCylinderFillingDto
(
String
sequenceCode
);
List
<
TzCylinderFillingDto
>
getTzCylinderFillingDto
(
String
sequenceCode
,
String
appId
);
TzCylinderBeforeCheckDto
getTzCylinderBeforeCheck
(
String
fillingBeforeId
);
TzCylinderBeforeCheckDto
getTzCylinderBeforeCheck
(
String
appId
,
String
fillingBeforeId
);
List
<
TzCylinderCheckDto
>
getTzCylinderCheckItem
();
List
<
TzCylinderCheckDto
>
getTzCylinderCheckItem
();
TzCylinderAfterCheckDto
getTzCylinderAfterCheck
(
String
fillingCheckId
);
TzCylinderAfterCheckDto
getTzCylinderAfterCheck
(
String
appId
,
String
fillingCheckId
);
List
<
TzCylinderCheckDto
>
getTzCylinderAfterCheckItem
();
List
<
TzCylinderCheckDto
>
getTzCylinderAfterCheckItem
();
...
...
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/resources/mapper/CylinderInfoMapper.xml
View file @
31441b62
...
@@ -5,15 +5,12 @@
...
@@ -5,15 +5,12 @@
<select
id=
"queryNumAndOutOfDateNum"
resultType=
"java.util.Map"
>
<select
id=
"queryNumAndOutOfDateNum"
resultType=
"java.util.Map"
>
SELECT
SELECT
count( t.sequence_nbr ) AS cylinderNum,
count( t.sequence_nbr ) AS cylinderNum,
l.expiry_date
AS fillingPermitDate,
(select expiry_date from tz_base_unit_licence where unit_code = u.credit_code ORDER BY expiry_date desc limit 1)
AS fillingPermitDate,
count( CASE WHEN i.next_inspection_date
<![CDATA[ < ]]>
now() THEN 1 END ) AS outOfDateNum
count( CASE WHEN i.next_inspection_date
<![CDATA[ < ]]>
now() THEN 1 END ) AS outOfDateNum
FROM
FROM
tz_cylinder_unit U
tz_cylinder_unit U
LEFT JOIN tz_cylinder_info AS t ON 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 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
WHERE
u.sequence_nbr = #{sequenceNbr}
u.sequence_nbr = #{sequenceNbr}
GROUP BY u.sequence_nbr
GROUP BY u.sequence_nbr
...
...
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/src/main/resources/mapper/TzCylinderMapper.xml
View file @
31441b62
...
@@ -166,7 +166,8 @@
...
@@ -166,7 +166,8 @@
LEFT JOIN tz_cylinder_filling AS CF ON CF.filling_before_id = FR.filling_before_id
LEFT JOIN tz_cylinder_filling AS CF ON CF.filling_before_id = FR.filling_before_id
LEFT JOIN tz_cylinder_filling_check AS FC ON FC.filling_check_id = FR.filling_check_id
LEFT JOIN tz_cylinder_filling_check AS FC ON FC.filling_check_id = FR.filling_check_id
WHERE
WHERE
CF.sequence_code = #{sequence_code}
CF.sequence_code = #{sequenceCode}
and FR.app_id = #{appId}
ORDER BY FR.filling_startTime DESC
ORDER BY FR.filling_startTime DESC
</select>
</select>
...
@@ -181,7 +182,7 @@
...
@@ -181,7 +182,7 @@
CF.have_security_documents,
CF.have_security_documents,
CF.fill_before_item
CF.fill_before_item
FROM tz_cylinder_filling AS CF
FROM tz_cylinder_filling AS CF
WHERE CF.filling_before_id=#{fillingBeforeId}
WHERE CF.
app_id=#{appId} and CF.
filling_before_id=#{fillingBeforeId}
</select>
</select>
<select
id=
"getTzCylinderCheckItem"
resultType=
"com.yeejoin.amos.boot.module.cylinder.flc.api.dto.TzCylinderCheckDto"
>
<select
id=
"getTzCylinderCheckItem"
resultType=
"com.yeejoin.amos.boot.module.cylinder.flc.api.dto.TzCylinderCheckDto"
>
...
@@ -200,7 +201,7 @@
...
@@ -200,7 +201,7 @@
FC.abnormal_temperature,
FC.abnormal_temperature,
FC.warning_sign
FC.warning_sign
FROM tz_cylinder_filling_check AS FC
FROM tz_cylinder_filling_check AS FC
WHERE FC.filling_check_id=#{fillingCheckId}
WHERE FC.
app_id=#{appId} and FC.
filling_check_id=#{fillingCheckId}
</select>
</select>
<select
id=
"getTzCylinderAfterCheckItem"
resultType=
"com.yeejoin.amos.boot.module.cylinder.flc.api.dto.TzCylinderCheckDto"
>
<select
id=
"getTzCylinderAfterCheckItem"
resultType=
"com.yeejoin.amos.boot.module.cylinder.flc.api.dto.TzCylinderCheckDto"
>
...
...
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-biz/src/main/java/com/yeejoin/amos/boot/module/cylinder/flc/biz/service/impl/TzCylinderServiceImpl.java
View file @
31441b62
...
@@ -113,7 +113,7 @@ public class TzCylinderServiceImpl extends BaseService<TzCylinderInfoDto, Cylind
...
@@ -113,7 +113,7 @@ public class TzCylinderServiceImpl extends BaseService<TzCylinderInfoDto, Cylind
}
}
List
<
TzCylinderInspectionDto
>
tzCylinderInspectionDtoList
=
tzCylinderMapper
List
<
TzCylinderInspectionDto
>
tzCylinderInspectionDtoList
=
tzCylinderMapper
.
getTzCylinderInspectionDto
(
sequenceCode
,
appId
);
.
getTzCylinderInspectionDto
(
sequenceCode
,
appId
);
List
<
TzCylinderFillingDto
>
tzCylinderFillingDtoList
=
tzCylinderMapper
.
getTzCylinderFillingDto
(
sequenceCode
);
List
<
TzCylinderFillingDto
>
tzCylinderFillingDtoList
=
tzCylinderMapper
.
getTzCylinderFillingDto
(
sequenceCode
,
appId
);
/**
/**
* 取气瓶追溯详情 充装前检查项 名称和结果列表
* 取气瓶追溯详情 充装前检查项 名称和结果列表
...
@@ -132,7 +132,7 @@ public class TzCylinderServiceImpl extends BaseService<TzCylinderInfoDto, Cylind
...
@@ -132,7 +132,7 @@ public class TzCylinderServiceImpl extends BaseService<TzCylinderInfoDto, Cylind
}
}
List
<
TzCylinderCheckDto
>
tzCylinderCheckDtoListResult
=
new
ArrayList
<>();
List
<
TzCylinderCheckDto
>
tzCylinderCheckDtoListResult
=
new
ArrayList
<>();
TzCylinderBeforeCheckDto
tzcylinderBeforeCheckDto
=
tzCylinderMapper
TzCylinderBeforeCheckDto
tzcylinderBeforeCheckDto
=
tzCylinderMapper
.
getTzCylinderBeforeCheck
(
tzCylinderFillingDto
.
getFillingBeforeId
());
.
getTzCylinderBeforeCheck
(
appId
,
tzCylinderFillingDto
.
getFillingBeforeId
());
JSONObject
obj
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
tzcylinderBeforeCheckDto
));
JSONObject
obj
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
tzcylinderBeforeCheckDto
));
for
(
String
str
:
obj
.
keySet
())
{
for
(
String
str
:
obj
.
keySet
())
{
String
explain
=
map
.
get
(
str
);
String
explain
=
map
.
get
(
str
);
...
@@ -157,7 +157,7 @@ public class TzCylinderServiceImpl extends BaseService<TzCylinderInfoDto, Cylind
...
@@ -157,7 +157,7 @@ public class TzCylinderServiceImpl extends BaseService<TzCylinderInfoDto, Cylind
for
(
TzCylinderFillingDto
tzCylinderFillingDto
:
tzCylinderFillingDtoList
)
{
for
(
TzCylinderFillingDto
tzCylinderFillingDto
:
tzCylinderFillingDtoList
)
{
List
<
TzCylinderCheckDto
>
tzCylinderAfterCheckDtoListResult
=
new
ArrayList
<>();
List
<
TzCylinderCheckDto
>
tzCylinderAfterCheckDtoListResult
=
new
ArrayList
<>();
TzCylinderAfterCheckDto
tzcylinderAfterCheckDto
=
tzCylinderMapper
TzCylinderAfterCheckDto
tzcylinderAfterCheckDto
=
tzCylinderMapper
.
getTzCylinderAfterCheck
(
tzCylinderFillingDto
.
getFillingCheckId
())
;
.
getTzCylinderAfterCheck
(
appId
,
tzCylinderFillingDto
.
getFillingCheckId
());
;
if
(!
ValidationUtil
.
isEmpty
(
tzcylinderAfterCheckDto
))
{
if
(!
ValidationUtil
.
isEmpty
(
tzcylinderAfterCheckDto
))
{
JSONObject
obj
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
tzcylinderAfterCheckDto
));
JSONObject
obj
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
tzcylinderAfterCheckDto
));
for
(
String
str
:
obj
.
keySet
())
{
for
(
String
str
:
obj
.
keySet
())
{
...
...
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