inspect-server/src/main/resources/mapper/InsOrderRatesMapper.xml
@@ -22,8 +22,18 @@
        <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
            ${ew.customSqlSegment}
        </if>
        order by a.sample_date desc, a.id desc
    </select>
    <!-- 更新订单的费用优惠与备注 -->
    <update id="updateOrderFee">
        update ins_order
        set is_discount = #{isDiscount},
            discount_amount = #{discountAmount},
            fee_remark = #{feeRemark}
        where id = #{id}
    </update>
    <!-- 查询订单费用详情(模板价格) -->
    <select id="selectTemplateRatesDetail" resultType="com.ruoyi.inspect.dto.TemplateRateDto">
        select iost.number, iost.name, COALESCE(st.price, 0) as price