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
* @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
hy_inspection_setting
where
deleted = '0' and inspection_user_id = #{excludeInspectionSettingId}
deleted = '0' and inspection_user_id = #{inspectionUserId}
<if test="excludeInspectionSettingId != null">
and id != #{excludeInspectionSettingId}
</if>