bug修复
This commit is contained in:
parent
c1831ef48c
commit
d0ac33d5e3
|
|
@ -149,6 +149,11 @@ public class TbBdRecord implements Serializable {
|
|||
*/
|
||||
private Integer bdTotal;
|
||||
|
||||
/**
|
||||
* 杆塔id
|
||||
*/
|
||||
private Long powerId;
|
||||
|
||||
/**
|
||||
* 边带设备记录
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -59,6 +59,9 @@
|
|||
<if test="areaName != null and areaName != ''">
|
||||
area_name,
|
||||
</if>
|
||||
<if test="powerId != null">
|
||||
power_id,
|
||||
</if>
|
||||
<if test="devUser != null and devUser != ''">
|
||||
dev_user,
|
||||
</if>
|
||||
|
|
@ -85,6 +88,9 @@
|
|||
<if test="areaName != null and areaName != ''">
|
||||
#{areaName},
|
||||
</if>
|
||||
<if test="powerId != null">
|
||||
#{powerId},
|
||||
</if>
|
||||
<if test="devUser != null and devUser != ''">
|
||||
#{devUser},
|
||||
</if>
|
||||
|
|
@ -251,15 +257,19 @@
|
|||
b.audit_status = 1
|
||||
<if test="proName != null and proName != ''">
|
||||
and b.pro_name like concat('%',#{proName},'%')
|
||||
and b.pro_name NOT LIKE '%_%' ESCAPE '/'
|
||||
</if>
|
||||
<if test="departName != null and departName != ''">
|
||||
and b.depart_name like concat('%',#{departName},'%')
|
||||
and b.depart_name NOT LIKE '%_%' ESCAPE '/'
|
||||
</if>
|
||||
<if test="devName != null and devName != ''">
|
||||
and a.dev_name like concat('%',#{devName},'%')
|
||||
and a.dev_name NOT LIKE '%_%' ESCAPE '/'
|
||||
</if>
|
||||
<if test="devCode != null and devCode != ''">
|
||||
and a.dev_code like concat('%',#{devCode},'%')
|
||||
and a.dev_code NOT LIKE '%_%' ESCAPE '/'
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
|
|
|||
|
|
@ -82,10 +82,12 @@
|
|||
select
|
||||
tbdr.id as id, tbdr.record_id as recordId, tbdr.dev_name as devName, tbdr.dev_code as devCode, tbdr.unit_name as unitName, tbdr.area_name as areaName,
|
||||
tbdr.dev_user as devUser, tbdr.dev_user_phone as devUserPhone,
|
||||
tbr.audit_user as auditUser, tbr.audit_time as auditTime, su.nick_name as auditUserName
|
||||
tbr.audit_user as auditUser, tbr.audit_time as auditTime, su.nick_name as auditUserName,
|
||||
tbdr.power_id as powerId, tpp.gt_name as powerName
|
||||
from tb_bd_device_record tbdr
|
||||
left join tb_bd_record tbr on tbdr.record_id = tbr.id
|
||||
left join sys_user su on tbr.audit_user = su.user_id
|
||||
left join tb_pro_power tpp on tbdr.power_id = tpp.id
|
||||
where tbdr.record_id = #{id}
|
||||
</select>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue