@ -130,18 +130,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id= "selectDmsInspectInstanceDetailProjectJoinList" parameterType= "DmsInspectInstanceDetailProject" resultMap= "DmsInspectInstanceDetailProjectResult" >
<include refid= "selectDmsInspectInstanceDetailProjectJoinVo" />
<where >
<if test= "deviceId != null " > and exists (select 1 from dms_inspect_project_device dipd where dipd.target_type=2
and dipd.target_id = #{deviceId} and dipd.inspect_project_id = dbip.inspect_project_id)</if>
<if test= "instanceDetailId != null " > and instance_detail_id = #{instanceDetailId}</if>
<if test= "inspectProjectId != null " > and inspect_project_id = #{inspectProjectId}</if>
<if test= "inspectProjectStatus != null and inspectProjectStatus != ''" > and inspect_project_status = #{inspectProjectStatus}</if>
<if test= "inspectProjectResult != null " > and inspect_project_result = #{inspectProjectResult}</if>
<if test= "projectStepOrder != null " > and project_step_order = #{projectStepOrder}</if>
<if test= "defValue != null " > and def_value = #{defValue}</if>
<if test= "inspectProjectName != null and inspectProjectName != ''" > and inspect_project_name like concat('%', #{inspectProjectName}, '%')</if>
<if test= "inspectProjectProperty != null and inspectProjectProperty != ''" > and inspect_project_property = #{inspectProjectProperty}</if>
<if test= "upLimit != null " > and up_limit = #{upLimit}</if>
<if test= "lowLimit != null " > and low_limit = #{lowLimit}</if>
dbip.inspect_project_id = #{inspectProjectId} and diidp.instance_detail_id = #{instanceDetailId}
<!-- <if test="deviceId != null "> and exists (select 1 from dms_inspect_project_device dipd where dipd.target_type=2 -->
<!-- and dipd.target_id = #{deviceId} and dipd.inspect_project_id = dbip.inspect_project_id)</if> -->
<!-- <if test="instanceDetailId != null "> and instance_detail_id = #{instanceDetailId}</if> -->
<!-- <if test="inspectProjectId != null "> and inspect_project_id = #{inspectProjectId}</if> -->
<!-- <if test="inspectProjectStatus != null and inspectProjectStatus != ''"> and inspect_project_status = #{inspectProjectStatus}</if> -->
<!-- <if test="inspectProjectResult != null "> and inspect_project_result = #{inspectProjectResult}</if> -->
<!-- <if test="projectStepOrder != null "> and project_step_order = #{projectStepOrder}</if> -->
<!-- <if test="defValue != null "> and def_value = #{defValue}</if> -->
<!-- <if test="inspectProjectName != null and inspectProjectName != ''"> and inspect_project_name like concat('%', #{inspectProjectName}, '%')</if> -->
<!-- <if test="inspectProjectProperty != null and inspectProjectProperty != ''"> and inspect_project_property = #{inspectProjectProperty}</if> -->
<!-- <if test="upLimit != null "> and up_limit = #{upLimit}</if> -->
<!-- <if test="lowLimit != null "> and low_limit = #{lowLimit}</if> -->
</where>
</select>
@ -150,5 +151,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where instance_detail_id =(
select instance_detail_id from dms_inspect_instance_detail where inspect_instance_id = #{inspectInstanceId} and line_step = #{lineStep})
</select>
<select id= "selectProjectByStandardId" resultType= "java.lang.Long" parameterType= "java.lang.String" >
SELECT x.inspect_project_id FROM `hwjy-cloud`.dms_base_inspect_standard x where x.inspect_standard_id = 6
</select>
</mapper>