8 小时以前 8e52d3e600ff49869cc612fd9bf1cc64ac304f50
feat(sales): 添加销售报价单ID查询条件支持

- 在SalesQuotationMapper.xml中新增ID查询条件判断
- 当salesQuotationDto.id不为null时添加精确匹配条件
- 保持原有查询逻辑不变,仅增加ID筛选功能
- 查询结果仍按ID降序排列
已修改1个文件
3 ■■■■■ 文件已修改
src/main/resources/mapper/sales/SalesQuotationMapper.xml 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/sales/SalesQuotationMapper.xml
@@ -16,6 +16,9 @@
            <if test="salesQuotationDto.status != null and salesQuotationDto.status != '' ">
                AND t1.status = #{salesQuotationDto.status}
            </if>
            <if test="salesQuotationDto.id != null">
                AND t1.id = #{salesQuotationDto.id}
            </if>
        </where>
        order by t1.id desc
    </select>