查看历史试算功能

This commit is contained in:
wuweihua
2026-09-08 16:48:47 +08:00
parent 789d145a7c
commit b4d97d6333
9 changed files with 247 additions and 7 deletions
@@ -66,6 +66,40 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where quote_id = #{quoteId}
</select>
<select id="selectPrcQuoteList" parameterType="PrcQuote" resultMap="PrcQuoteResult">
<include refid="selectPrcQuoteVo"/>
<where>
<if test="customerId != null">
AND customer_id = #{customerId}
</if>
<if test="productCode != null and productCode != ''">
AND product_code like concat('%', #{productCode}, '%')
</if>
<if test="productName != null and productName != ''">
AND product_name like concat('%', #{productName}, '%')
</if>
<if test="countryCode != null and countryCode != ''">
AND country_code = #{countryCode}
</if>
<if test="priceSetName != null and priceSetName != ''">
AND price_set_name like concat('%', #{priceSetName}, '%')
</if>
<if test="matchSource != null and matchSource != ''">
AND match_source = #{matchSource}
</if>
<if test="bizDate != null">
AND biz_date = #{bizDate}
</if>
<if test="params.beginTime != null and params.beginTime != ''">
AND date_format(created_at,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
</if>
<if test="params.endTime != null and params.endTime != ''">
AND date_format(created_at,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
</if>
</where>
order by quote_id desc
</select>
<insert id="insertPrcQuote" parameterType="PrcQuote" useGeneratedKeys="true" keyProperty="quoteId">
insert into prc_quote (
quote_key, customer_id, product_code, product_name,