first commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="top.ysoft.admin.system.mapper.RuleRelationMapper">
|
||||
|
||||
|
||||
<delete id="deleteByRuleId" parameterType="top.ysoft.admin.system.model.entity.RuleRelationDO">
|
||||
DELETE FROM equipment_rule_relation
|
||||
WHERE 1=1
|
||||
<!-- 判空规则:字段不为 null 且 不为空字符串(兼容字符串/数字类型) -->
|
||||
<if test="ruleId != null and ruleId != ''">
|
||||
AND rule_id = #{ruleId}
|
||||
</if>
|
||||
<if test="equipmentId != null and equipmentId != ''">
|
||||
AND equipment_id = #{equipmentId}
|
||||
</if>
|
||||
<if test="equipmentRuleId != null and equipmentRuleId != ''">
|
||||
AND equipment_rule_id = #{equipmentRuleId}
|
||||
</if>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user