1
This commit is contained in:
parent
e02e370fbb
commit
97edaf4046
@ -18,5 +18,6 @@ public class RepairRecordsRespVO extends RepairRecords {
|
||||
private String images;
|
||||
/**角色、岗位名称*/
|
||||
private String roleName;
|
||||
|
||||
/**项目名称*/
|
||||
private String projectName;
|
||||
}
|
||||
|
@ -10,24 +10,26 @@
|
||||
-->
|
||||
|
||||
<select id="queryRepairRecords" resultType="cn.iocoder.yudao.module.base.vo.RepairRecordsRespVO">
|
||||
SELECT *
|
||||
FROM dl_repair_records
|
||||
SELECT main.*,
|
||||
drt.item_name AS projectName
|
||||
FROM dl_repair_records main
|
||||
LEFT JOIN dl_repair_titem drt ON main.repair_item_id = drt.id AND drt.deleted = 0
|
||||
<where>
|
||||
deleted = '0'
|
||||
main.deleted = '0'
|
||||
<if test="entity.ticketId != null and entity.ticketId != ''">
|
||||
AND ticket_id = #{entity.ticketId}
|
||||
AND main.ticket_id = #{entity.ticketId}
|
||||
</if>
|
||||
<if test="entity.repairItemId != null and entity.repairItemId != ''">
|
||||
AND repair_item_id = #{entity.repairItemId}
|
||||
AND main.repair_item_id = #{entity.repairItemId}
|
||||
</if>
|
||||
<if test="entity.dealUserId != null and entity.dealUserId != ''">
|
||||
AND deal_user_id = #{entity.dealUserId}
|
||||
AND main.deal_user_id = #{entity.dealUserId}
|
||||
</if>
|
||||
<if test="entity.type != null and entity.type != ''">
|
||||
AND type = #{entity.type}
|
||||
AND main.type = #{entity.type}
|
||||
</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
order by main.create_time desc
|
||||
</select>
|
||||
<select id="selectNowRepairByTicketId" resultType="java.util.Map">
|
||||
SELECT
|
||||
|
Loading…
Reference in New Issue
Block a user