后管sim卡页面添加字段

This commit is contained in:
Lemon
2023-06-01 10:39:48 +08:00
parent 6ccfd5f7cf
commit bc32bd8238
6 changed files with 133 additions and 9 deletions

View File

@@ -39,6 +39,8 @@
</where>
</select>
<select id="selectPileSimInfoById" parameterType="Long" resultMap="PileSimInfoResult">
<include refid="selectPileSimInfoVo"/>
where id = #{id}
@@ -155,6 +157,8 @@
SELECT
t2.sn as pileSn,
t2.sim_id as id,
t3.id as stationId,
t3.station_name as stationName,
t1.iccid as iccId,
t1.NAME as name,
t1.sim_supplier as simSupplier,
@@ -163,7 +167,9 @@
t1.surplus_data as surplusData,
t1.expire_time as expireTime,
t1.operator
from pile_sim_info t1 left join pile_basic_info t2 on t1.id = t2.sim_id
from pile_sim_info t1
left join pile_basic_info t2 on t1.id = t2.sim_id
join pile_station_info t3 on t2.station_id = t3.id
where t1.del_flag = '0'
<if test="dto.pileSn != null and dto.pileSn != ''">
and t2.sn = #{dto.pileSn,jdbcType=VARCHAR}
@@ -175,7 +181,10 @@
and t1.iccid = #{dto.iccId,jdbcType=VARCHAR}
</if>
<if test="dto.expiredTime != null and dto.expiredTime != ''">
and t1.expire_time = #{dto.expiredTime,jdbcType=VARCHAR}
and t1.expire_time <![CDATA[ <= ]]> #{dto.expiredTime,jdbcType=VARCHAR}
</if>
<if test="dto.stationId != null and dto.stationId != ''">
and t3.id = #{dto.stationId,jdbcType=BIGINT}
</if>
</select>