mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 后管sim卡列表
This commit is contained in:
@@ -155,34 +155,31 @@
|
||||
|
||||
<select id="getSimInfoList" resultType="com.jsowell.pile.vo.web.SimCardInfoVO">
|
||||
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,
|
||||
t1.STATUS as simCardStatus,
|
||||
t1.total_data as totalData,
|
||||
t1.surplus_data as surplusData,
|
||||
t1.expire_time as expireTime,
|
||||
t1.update_time as lastUpdateTime,
|
||||
t1.operator
|
||||
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
|
||||
t1.sn AS pileSn,
|
||||
t1.iccid AS iccId,
|
||||
t3.station_name AS stationName,
|
||||
t2.NAME as name,
|
||||
t2.sim_supplier AS simSupplier,
|
||||
t2.total_data AS totalData,
|
||||
t2.surplus_data AS surplusData,
|
||||
t2.expire_time AS expireTime,
|
||||
t2.update_time AS lastUpdateTime
|
||||
FROM
|
||||
pile_basic_info t1
|
||||
JOIN pile_sim_info t2 ON t1.iccid = t2.iccid
|
||||
JOIN pile_station_info t3 ON t1.station_id = t3.id
|
||||
where t1.del_flag = '0'
|
||||
<if test="dto.pileSn != null and dto.pileSn != ''">
|
||||
and t2.sn = #{dto.pileSn,jdbcType=VARCHAR}
|
||||
and t1.sn = #{dto.pileSn,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="dto.simSupplier != null and dto.simSupplier != ''">
|
||||
and t1.sim_supplier = #{dto.simSupplier,jdbcType=VARCHAR}
|
||||
and t2.sim_supplier = #{dto.simSupplier,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="dto.iccId != null and dto.iccId != ''">
|
||||
and t1.iccid = #{dto.iccId,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="dto.expiredTime != null and dto.expiredTime != ''">
|
||||
and t1.expire_time <![CDATA[ <= ]]> #{dto.expiredTime,jdbcType=VARCHAR}
|
||||
and t2.expire_time <![CDATA[ <= ]]> #{dto.expiredTime,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="dto.stationId != null and dto.stationId != ''">
|
||||
and t3.id = #{dto.stationId,jdbcType=BIGINT}
|
||||
|
||||
Reference in New Issue
Block a user