智慧农业后台管理
guoshilong
2022-11-08 72b971c98c46531064d74b68fc8fe8864ed0b544
src/main/java/org/springblade/modules/traceability/mapper/TraceabilityMapper.xml
@@ -17,6 +17,12 @@
        <if test="traceability.tenantId!=null and traceability.tenantId!=''">
            and st.tenant_id = #{traceability.tenantId}
        </if>
        <if test="traceability.deptId != null and traceability.deptId != ''">
            and st.dept_id = #{traceability.deptId}
        </if>
        <if test="traceability.bind !=null and traceability.bind !=''">
            and st.bind = #{traceability.bind}
        </if>
    </select>
    <!--自定义查询溯源码分页数据-->