自动化立体仓库 - WMS系统
src/main/resources/mapper/ManPakOutMapper.xml
@@ -18,6 +18,9 @@
        <if test="userId != null">
            and (create_by = #{userId} or create_by is null)
        </if>
        <if test="roleId == 24">
            and TRY_CAST(specs AS datetime) &lt;= DATEADD(hour, 16, CAST(CAST(GETDATE() AS date) AS datetime))
        </if>
    </sql>