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
2280bcde
Commit
2280bcde
authored
Apr 18, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加校验A110
parent
bc3b6040
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
+29
-0
JgVehicleInformationMapper.java
...boot/module/jg/api/mapper/JgVehicleInformationMapper.java
+2
-0
JgVehicleInformationMapper.xml
.../src/main/resources/mapper/JgVehicleInformationMapper.xml
+19
-0
JgVehicleInformationServiceImpl.java
.../jg/biz/service/impl/JgVehicleInformationServiceImpl.java
+8
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/mapper/JgVehicleInformationMapper.java
View file @
2280bcde
...
...
@@ -25,4 +25,6 @@ public interface JgVehicleInformationMapper extends BaseMapper<JgVehicleInformat
@MapKey
(
"id"
)
List
<
Map
<
String
,
Object
>>
selectEquipList
(
@Param
(
"id"
)
Long
id
);
Long
countVesselCylinderIsUsedNumber
(
@Param
(
"vehicleId"
)
Long
currentVehicleId
,
@Param
(
"equIds"
)
List
<
String
>
records
);
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgVehicleInformationMapper.xml
View file @
2280bcde
...
...
@@ -186,4 +186,23 @@
WHERE tjvie.vehicle_id = #{id}
</select>
<select
id=
"countVesselCylinderIsUsedNumber"
resultType=
"java.lang.Long"
>
SELECT
count(1)
FROM
tzs_jg_vehicle_information v,
tzs_jg_vehicle_information_eq ve
WHERE
v.sequence_nbr = ve.vehicle_id
and ve.equ_id = ui."RECORD"
and v.status !='使用单位待提交'
and v.status !='一级受理已驳回'
and v.status !='使用单位已撤回'
and v.sequence_nbr !=#{vehicleId}
and ve.equ_id in
<foreach
collection=
"records"
item=
"record"
open=
"("
close=
")"
separator=
","
>
#{record}
</foreach>
</select>
</mapper>
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgVehicleInformationServiceImpl.java
View file @
2280bcde
...
...
@@ -940,4 +940,11 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
useFlagParamDto
.
setInspectionUnitName
(
vehicleInformation
.
getInspectUnitName
());
return
useFlagParamDto
;
}
private
void
checkVesselCylinderIsUsed
(
Long
currentVehicleId
,
List
<
String
>
records
){
Long
usedNumber
=
this
.
getBaseMapper
().
countVesselCylinderIsUsedNumber
(
currentVehicleId
,
records
);
if
(
usedNumber
>
0
){
throw
new
BadRequest
(
"存在已经登记过的气瓶!"
);
}
}
}
\ 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