智慧农业后台管理
guoshilong
2022-09-05 4e8eedbcaa35a3cce9e50dad54db9633e71d169f
src/main/java/org/springblade/modules/stockrecord/mapper/StockrecordMapper.xml
@@ -89,6 +89,15 @@
        <if test="stockrecord.sid!=null and stockrecord.sid != ''">
            and st.sid = #{stockrecord.sid}
        </if>
        <if test="stockrecord.deptId != null and stockrecord.deptId !=''">
            and st.dept_id = #{stockrecord.deptId}
        </if>
        <if test="stockrecord.startTime!=null and stockrecord.startTime!=''">
            and st.create_time &gt;= #{stockrecord.startTime}
        </if>
        <if test="stockrecord.endTime!=null and stockrecord.endTime!=''">
            and st.create_time &lt;= #{stockrecord.endTime}
        </if>
        ORDER BY st.create_time desc
    </select>