|
@@ -38,17 +38,13 @@
|
|
|
</select>
|
|
|
<delete id="physicalDelete">
|
|
|
DELETE FROM biz_archive_input_detail
|
|
|
- <trim prefix=" WHERE" suffix="" suffixOverrides="AND">
|
|
|
+ <where>
|
|
|
<if test="id != null">
|
|
|
- id = #{id} AND
|
|
|
- </if>
|
|
|
- <if test="contractId != null ">
|
|
|
- contract_id = #{contractId} AND
|
|
|
+ AND id = #{id}
|
|
|
</if>
|
|
|
- <if test="companyId != null ">
|
|
|
- company_id = #{companyId} AND
|
|
|
+ <if test="tenantId != null">
|
|
|
+ AND tenant_id = #{tenantId}
|
|
|
</if>
|
|
|
- <!-- 删除条件为其他外键可以在这里加 -->
|
|
|
- </trim>
|
|
|
+ </where>
|
|
|
</delete>
|
|
|
</mapper>
|