Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
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
耿迪迪
gassafety-progress
Commits
77f0e548
Commit
77f0e548
authored
Oct 25, 2023
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
气瓶管理修改
parent
5e6165ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
55 deletions
+55
-55
TGasBottleInfoMapper.xml
...src/main/resources/mapper/system/TGasBottleInfoMapper.xml
+55
-55
No files found.
gassafetyprogress-system/src/main/resources/mapper/system/TGasBottleInfoMapper.xml
View file @
77f0e548
...
@@ -39,73 +39,73 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -39,73 +39,73 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql
id=
"selectTGasBottleInfoVo"
>
<sql
id=
"selectTGasBottleInfoVo"
>
SELECT
SELECT
bottle_id,
bottle
.bottle
_id,
station_id,
bottle.
station_id,
bottle_code,
bottle
.bottle
_code,
myself_num,
bottle.
myself_num,
produce_unit,
bottle.
produce_unit,
produce_date,
bottle.
produce_date,
produce_code,
bottle.
produce_code,
bottle_status,
bottle
.bottle
_status,
last_charge_date,
bottle.
last_charge_date,
longitude,
bottle.
longitude,
latitude,
bottle.
latitude,
charge_medium,
bottle.
charge_medium,
bottle_specs,
bottle
.bottle
_specs,
rated_presure,
bottle.
rated_presure,
bottle_capacity,
bottle_capacity,
wall_thickness,
bottle.
wall_thickness,
tare,
bottle.
tare,
use_register_code,
bottle.
use_register_code,
register_date,
bottle.
register_date,
last_check_date,
bottle.
last_check_date,
next_check_date,
bottle.
next_check_date,
scrap_date,
bottle.
scrap_date,
current_status,
bottle.
current_status,
empty_type,
bottle.
empty_type,
create_time,
bottle.
create_time,
update_time,
bottle.
update_time,
is_del,
bottle.
is_del,
remark,
bottle.
remark,
(SELECT station_name FROM t_gas_storage_station_info info WHERE info.station_id = station_id) as station_name
(SELECT station_name FROM t_gas_storage_station_info info WHERE info.station_id =
bottle.
station_id) as station_name
FROM
FROM
t_gas_bottle_info
t_gas_bottle_info
bottle
</sql>
</sql>
<select
id=
"selectTGasBottleInfoList"
parameterType=
"TGasBottleInfo"
resultMap=
"TGasBottleInfoResult"
>
<select
id=
"selectTGasBottleInfoList"
parameterType=
"TGasBottleInfo"
resultMap=
"TGasBottleInfoResult"
>
<include
refid=
"selectTGasBottleInfoVo"
/>
<include
refid=
"selectTGasBottleInfoVo"
/>
<where>
<where>
<if
test=
"stationId != null "
>
and station_id = #{stationId}
</if>
<if
test=
"stationId != null "
>
and station_id = #{stationId}
</if>
<if
test=
"bottleCode != null and bottleCode != ''"
>
and bottle_code = #{bottleCode}
</if>
<if
test=
"bottleCode != null and bottleCode != ''"
>
and bottle
.bottle
_code = #{bottleCode}
</if>
<if
test=
"myselfNum != null and myselfNum != ''"
>
and myself_num = #{myselfNum}
</if>
<if
test=
"myselfNum != null and myselfNum != ''"
>
and
bottle.
myself_num = #{myselfNum}
</if>
<if
test=
"produceUnit != null and produceUnit != ''"
>
and produce_unit = #{produceUnit}
</if>
<if
test=
"produceUnit != null and produceUnit != ''"
>
and
bottle.
produce_unit = #{produceUnit}
</if>
<if
test=
"produceDate != null "
>
and produce_date = #{produceDate}
</if>
<if
test=
"produceDate != null "
>
and
bottle.
produce_date = #{produceDate}
</if>
<if
test=
"produceBeginTime != null and produceEndTime"
>
and produce_date between #{produceBeginTime} and #{produceEndTime}
</if>
<if
test=
"produceBeginTime != null and produceEndTime"
>
and
bottle.
produce_date between #{produceBeginTime} and #{produceEndTime}
</if>
<if
test=
"produceCode != null and produceCode != ''"
>
and produce_code = #{produceCode}
</if>
<if
test=
"produceCode != null and produceCode != ''"
>
and
bottle.
produce_code = #{produceCode}
</if>
<if
test=
"bottleStatus != null and bottleStatus != ''"
>
and bottle_status = #{bottleStatus}
</if>
<if
test=
"bottleStatus != null and bottleStatus != ''"
>
and bottle
.bottle
_status = #{bottleStatus}
</if>
<if
test=
"lastChargeDate != null "
>
and last_charge_date = #{lastChargeDate}
</if>
<if
test=
"lastChargeDate != null "
>
and
bottle.
last_charge_date = #{lastChargeDate}
</if>
<if
test=
"longitude != null "
>
and longitude = #{longitude}
</if>
<if
test=
"longitude != null "
>
and
bottle.
longitude = #{longitude}
</if>
<if
test=
"latitude != null "
>
and latitude = #{latitude}
</if>
<if
test=
"latitude != null "
>
and
bottle.
latitude = #{latitude}
</if>
<if
test=
"chargeMedium != null and chargeMedium != ''"
>
and charge_medium = #{chargeMedium}
</if>
<if
test=
"chargeMedium != null and chargeMedium != ''"
>
and
bottle.
charge_medium = #{chargeMedium}
</if>
<if
test=
"bottleSpecs != null and bottleSpecs != ''"
>
and bottle_specs = #{bottleSpecs}
</if>
<if
test=
"bottleSpecs != null and bottleSpecs != ''"
>
and bottle
.bottle
_specs = #{bottleSpecs}
</if>
<if
test=
"ratedPresure != null and ratedPresure != ''"
>
and rated_presure = #{ratedPresure}
</if>
<if
test=
"ratedPresure != null and ratedPresure != ''"
>
and
bottle.
rated_presure = #{ratedPresure}
</if>
<if
test=
"bottleCapacity != null and bottleCapacity != ''"
>
and bottle_capacity = #{bottleCapacity}
</if>
<if
test=
"bottleCapacity != null and bottleCapacity != ''"
>
and bottle
.bottle
_capacity = #{bottleCapacity}
</if>
<if
test=
"wallThickness != null and wallThickness != ''"
>
and wall_thickness = #{wallThickness}
</if>
<if
test=
"wallThickness != null and wallThickness != ''"
>
and
bottle.
wall_thickness = #{wallThickness}
</if>
<if
test=
"tare != null and tare != ''"
>
and tare = #{tare}
</if>
<if
test=
"tare != null and tare != ''"
>
and
bottle.
tare = #{tare}
</if>
<if
test=
"useRegisterCode != null and useRegisterCode != ''"
>
and use_register_code = #{useRegisterCode}
</if>
<if
test=
"useRegisterCode != null and useRegisterCode != ''"
>
and
bottle.
use_register_code = #{useRegisterCode}
</if>
<if
test=
"registerDate != null "
>
and register_date = #{registerDate}
</if>
<if
test=
"registerDate != null "
>
and
bottle.
register_date = #{registerDate}
</if>
<if
test=
"lastCheckDate != null "
>
and last_check_date = #{lastCheckDate}
</if>
<if
test=
"lastCheckDate != null "
>
and
bottle.
last_check_date = #{lastCheckDate}
</if>
<if
test=
"nextCheckDate != null "
>
and next_check_date = #{nextCheckDate}
</if>
<if
test=
"nextCheckDate != null "
>
and
bottle.
next_check_date = #{nextCheckDate}
</if>
<if
test=
"scrapDate != null "
>
and scrap_date = #{scrapDate}
</if>
<if
test=
"scrapDate != null "
>
and
bottle.
scrap_date = #{scrapDate}
</if>
<if
test=
"currentStatus != null and currentStatus != ''"
>
and current_status = #{currentStatus}
</if>
<if
test=
"currentStatus != null and currentStatus != ''"
>
and
bottle.
current_status = #{currentStatus}
</if>
<if
test=
"emptyType != null and emptyType != ''"
>
and empty_type = #{emptyType}
</if>
<if
test=
"emptyType != null and emptyType != ''"
>
and
bottle.
empty_type = #{emptyType}
</if>
<if
test=
"isDel != null and isDel != ''"
>
and is_del = #{isDel}
</if>
<if
test=
"isDel != null and isDel != ''"
>
and
bottle.
is_del = #{isDel}
</if>
</where>
</where>
</select>
</select>
<select
id=
"selectTGasBottleInfoById"
parameterType=
"Long"
resultMap=
"TGasBottleInfoResult"
>
<select
id=
"selectTGasBottleInfoById"
parameterType=
"Long"
resultMap=
"TGasBottleInfoResult"
>
<include
refid=
"selectTGasBottleInfoVo"
/>
<include
refid=
"selectTGasBottleInfoVo"
/>
where bottle_id = #{bottleId}
where bottle
.bottle
_id = #{bottleId}
</select>
</select>
<insert
id=
"insertTGasBottleInfo"
parameterType=
"TGasBottleInfo"
useGeneratedKeys=
"true"
keyProperty=
"bottleId"
>
<insert
id=
"insertTGasBottleInfo"
parameterType=
"TGasBottleInfo"
useGeneratedKeys=
"true"
keyProperty=
"bottleId"
>
...
@@ -245,6 +245,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -245,6 +245,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!--查询气瓶详细信息-->
<!--查询气瓶详细信息-->
<select
id=
"getInf"
resultMap=
"TGasBottleInfoResult"
parameterType=
"java.lang.String"
>
<select
id=
"getInf"
resultMap=
"TGasBottleInfoResult"
parameterType=
"java.lang.String"
>
<include
refid=
"selectTGasBottleInfoVo"
/>
<include
refid=
"selectTGasBottleInfoVo"
/>
where bottle_code = #{bottleId}
where bottle
.bottle
_code = #{bottleId}
</select>
</select>
</mapper>
</mapper>
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