xuhy
2024-12-13 4d84802f381a447171c5dda28d44a0e53e93f3f4
manage/src/main/resources/mapping/TWarehousingMapper.xml
@@ -18,7 +18,24 @@
    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, status, type, storeId, remark, createTime, updateTime, createBy, updateBy, isDelete
        id, status, `type`, storeId, remark, createTime, updateTime, createBy, updateBy, isDelete
    </sql>
    <select id="inventoryReceiptList" resultType="com.jilongda.manage.vo.TWarehousingVO">
        select <include refid="Base_Column_List"></include>
        from t_warehousing
        <where>
            <if test="query.storeId != null">
                and storeId = #{query.storeId}
            </if>
            <if test="query.status != null">
                and status = #{query.status}
            </if>
            <if test="query.startTime != null and query.startTime != '' and query.endTime != null and query.endTime != ''">
                and createTime between #{query.startTime} and #{query.endTime}
            </if>
            and isDelete =  ${@com.jilongda.common.enums.DisabledEnum@NO.getCode()}
        </where>
        ORDER BY createTime DESC
    </select>
</mapper>