智慧农业后台管理
zengh
2022-06-30 14abea221d9284d2c04a726ca039defa60f205e2
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>