|
@@ -13,18 +13,20 @@
|
|
|
<result property="contentname" column="contentname" />
|
|
|
<result property="equipdefid" column="equipdefid" />
|
|
|
<result property="equipdefname" column="equipdefname" />
|
|
|
+ <result property="status" column="status" />
|
|
|
<result property="sysOrgCode" column="sys_org_code" />
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="getCmmsInspectSpotList" parameterType="org.jeecg.modules.cmmsInspectSpot.entity.CmmsInspectSpot" resultMap="CmmsInspectContentResult">
|
|
|
select c.id, c.create_by, c.create_time, c.update_by, c.update_time, c.remark,
|
|
|
- c.contentcode, c.contentname, c.equipdefid, c.sys_org_code, t.name as equipdefname
|
|
|
+ c.contentcode, c.contentname, c.equipdefid, c.status, c.sys_org_code, t.name as equipdefname
|
|
|
from cmms_inspect_spot as c
|
|
|
left join tpm_equipment_tree as t
|
|
|
on c.equipdefid = t.id
|
|
|
<where>
|
|
|
<if test="cmmsInspectSpot.contentcode != null and cmmsInspectSpot.contentcode != ''"> and (c.contentcode like concat('%', #{cmmsInspectSpot.contentcode}, '%') or c.contentname like concat('%', #{cmmsInspectSpot.contentcode}, '%'))</if>
|
|
|
<if test="cmmsInspectSpot.equipdefid != null "> and c.equipdefid = #{cmmsInspectSpot.equipdefid}</if>
|
|
|
+ <if test="cmmsInspectSpot.status != null "> and c.status = #{cmmsInspectSpot.status}</if>
|
|
|
</where>
|
|
|
order by c.create_time desc
|
|
|
</select>
|