This commit is contained in:
linfso 2024-04-22 22:09:00 +08:00
parent ae27244f36
commit 01aa14f069

View File

@ -126,10 +126,9 @@
where a.quote_id = #{quoteId}
</select>
<insert id="insertEmisQuotePrice" parameterType="EmisQuotePrice">
<insert id="insertEmisQuotePrice" parameterType="EmisQuotePrice" useGeneratedKeys="true" keyProperty="quoteId">
insert into emis_quote_price
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="quoteId != null">quote_id,</if>
<if test="quoteName != null and quoteName != ''">quote_name,</if>
<if test="quoteCode != null and quoteCode != ''">quote_code,</if>
<if test="useSiteCode != null and useSiteCode != ''">use_site_code,</if>
@ -173,7 +172,6 @@
<if test="updateSite != null and updateSite != ''">update_site,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="quoteId != null">#{quoteId},</if>
<if test="quoteName != null and quoteName != ''">#{quoteName},</if>
<if test="quoteCode != null and quoteCode != ''">#{quoteCode},</if>
<if test="useSiteCode != null and useSiteCode != ''">#{useSiteCode},</if>