jiangbiao 2 lat temu
rodzic
commit
85c52f2e29

+ 1 - 27
master/src/main/resources/mybatis/check/TCheckCheckpointsMapper.xml

@@ -124,37 +124,11 @@
 
 
     <select id="selectTCheckCheckpointByEntity" parameterType="TCheckCheckpoints" resultMap="TCheckCheckpointsResult">
-        select d.* from t_check_checkpoints d
+        select d.plant_type,d.point_type,d.medium_type from t_check_checkpoints d
         <where>
-            <if test="pointId != null ">and d.point_id = #{pointId}</if>
-            <if test="instrumentId != null ">and d.instrument_id = #{instrumentId}</if>
-            <if test="inspectionId != null ">and d.inspection_id = #{inspectionId}</if>
-            <if test="testValue != null  and testValue != ''">and d.test_value = #{testValue}</if>
-            <if test="netTestValue != null  and netTestValue != ''">and d.net_test_value = #{netTestValue}</if>
             <if test="plantId != null  and plantId != ''">and d.plant_id = #{plantId}</if>
-            <if test="plantName != null  and plantName != ''">and d.plant_name like concat('%', #{plantName}, '%')</if>
-            <if test="regionId != null  and regionId != ''">and d.region_id= #{regionId}</if>
-            <if test="regionName != null  and regionName != ''">and d.region_name like concat('%', #{regionName}, '%')
-            </if>
-            <if test="layer != null  and layer != ''">and d.layer = #{layer}</if>
-            <if test="devId != null  and devId != ''">and d.dev_id = #{devId}</if>
-            <if test="devName != null  and devName != ''">and d.dev_name like concat('%', #{devName}, '%')</if>
-            <if test="devCode != null  and devCode != ''">and d.dev_code = #{devCode}</if>
             <if test="groupCode != null  and groupCode != ''">and d.group_code = #{groupCode}</if>
             <if test="extendCode != null  and extendCode != ''">and d.extend_code = #{extendCode}</if>
-            <if test="pointType != null  and pointType != ''">and d.point_type = #{pointType}</if>
-            <if test="instrumentCode != null  and instrumentCode != ''">and d.instrument_code = #{instrumentCode}</if>
-            <if test="leakagePosition != null  and leakagePosition != ''">and d.leakage_position = #{leakagePosition}
-            </if>
-            <if test="checker != null  and checker != ''">and d.checker = #{checker}</if>
-            <if test="checkDate != null ">and d.check_date = #{checkDate}</if>
-            <if test="leakageDegree != null  and leakageDegree != ''">and d.leakage_degree = #{leakageDegree}</if>
-            <if test="remarks != null  and remarks != ''">and d.remarks = #{remarks}</if>
-            <if test="approveStatus != null ">and d.approve_status = #{approveStatus}</if>
-            <if test="approveTime != null ">and d.approve_time = #{approveTime}</if>
-            <if test="deptId != null ">and d.dept_id = #{deptId}</if>
-            <if test="choose != null ">and d.inspection_id is null</if>
-            <if test="planId != null">and d.plan_id=#{planId}</if>
             and d.del_flag = 0
         </where>
     </select>