智慧农业后台管理
tangzy
2022-06-29 1d98074869643dcf23b40d99e0f24b6048fc6ff0
src/main/java/org/springblade/modules/traceability/mapper/TraceabilityMapper.xml
@@ -10,5 +10,15 @@
        <if test="traceability.code!=null and traceability.code!=''">
            and st.code = #{traceability.code}
        </if>
        <if test="traceability.deptId!=null and traceability.deptId!=''">
            and st.dept_id = #{traceability.deptId}
        </if>
        <if test="traceability.tenantId!=null and traceability.tenantId!=''">
            and st.tenant_id = #{traceability.tenantId}
        </if>
    </select>
    <select id="selectRevorid" resultType="java.lang.String">
        select recovery_id from sys_traceability where code=#{code}
    </select>
</mapper>