This commit is contained in:
zhangchenbiao
2023-07-20 15:14:26 +08:00
parent 0013d70903
commit 1bf5889662
2 changed files with 2 additions and 2 deletions

View File

@@ -57,5 +57,5 @@ public interface HyInspectionSettingMapper {
* @param inspectionUserId * @param inspectionUserId
* @return * @return
*/ */
List<HyInspectionSettingDO> getHyInspectionSettingByUserId(String inspectionUserId, Long excludeInspectionSettingId); List<HyInspectionSettingDO> getHyInspectionSettingByUserId(@Param("inspectionUserId") String inspectionUserId, @Param("excludeInspectionSettingId") Long excludeInspectionSettingId);
} }

View File

@@ -130,7 +130,7 @@
from from
hy_inspection_setting hy_inspection_setting
where where
deleted = '0' and inspection_user_id = #{excludeInspectionSettingId} deleted = '0' and inspection_user_id = #{inspectionUserId}
<if test="excludeInspectionSettingId != null"> <if test="excludeInspectionSettingId != null">
and id != #{excludeInspectionSettingId} and id != #{excludeInspectionSettingId}
</if> </if>