yuan
12 小时以前 47806d9e390ee00e1d29ad1da8c1aa908882a758
src/main/resources/mapper/sales/SalesQuotationMapper.xml
@@ -4,9 +4,12 @@
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.sales.mapper.SalesQuotationMapper">
    <select id="listPage" resultType="com.ruoyi.sales.dto.SalesQuotationDto">
        SELECT t1.*
        SELECT t1.*,
               t2.approve_user_ids
        FROM sales_quotation t1
        <where>
        LEFT JOIN approve_process t2 ON t1.quotation_no = t2.approve_reason and t2.approve_type = 6
        WHERE 1=1
          and t2.approve_delete = 0
            <if test="salesQuotationDto.quotationNo != null and salesQuotationDto.quotationNo != '' ">
                AND t1.quotation_no LIKE CONCAT('%',#{salesQuotationDto.quotationNo},'%')
            </if>
@@ -16,7 +19,6 @@
            <if test="salesQuotationDto.status != null and salesQuotationDto.status != '' ">
                AND t1.status = #{salesQuotationDto.status}
            </if>
        </where>
        order by t1.id desc
        order by t1.quotation_no desc
    </select>
</mapper>