|
|
@ -35,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<include refid="selectBaseExpenseAccountChildVo"/> |
|
|
|
<where> |
|
|
|
<if test="quoteId != null and quoteId != ''"> and quote_id = #{quoteId}</if> |
|
|
|
<if test="cost type != null and cost type != ''"> and cost_type = #{costType}</if> |
|
|
|
<if test="costType != null and costType != ''"> and cost_type = #{costType}</if> |
|
|
|
<if test="costSmallType != null and costSmallType != ''"> and cost_small_type = #{costSmallType}</if> |
|
|
|
<if test="purpose != null and purpose != ''"> and purpose = #{purpose}</if> |
|
|
|
<if test="amounts != null and amounts != ''"> and amounts = #{amounts}</if> |
|
|
@ -55,7 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
insert into base_expense_account_child |
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
<if test="quoteId != null">quote_id,</if> |
|
|
|
<if test="cost type != null">cost_type,</if> |
|
|
|
<if test="cost_type != null">cost_type,</if> |
|
|
|
<if test="costSmallType != null">cost_small_type,</if> |
|
|
|
<if test="purpose != null">purpose,</if> |
|
|
|
<if test="amounts != null">amounts,</if> |
|
|
@ -72,7 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="quoteId != null">#{quoteId},</if> |
|
|
|
<if test="cost type != null">#{costType},</if> |
|
|
|
<if test="costType != null">#{costType},</if> |
|
|
|
<if test="costSmallType != null">#{costSmallType},</if> |
|
|
|
<if test="purpose != null">#{purpose},</if> |
|
|
|
<if test="amounts != null">#{amounts},</if> |
|
|
@ -93,7 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
update base_expense_account_child |
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
<if test="quoteId != null">quote_id = #{quoteId},</if> |
|
|
|
<if test="cost type != null">cost_type = #{costType},</if> |
|
|
|
<if test="costType != null">cost_type = #{costType},</if> |
|
|
|
<if test="costSmallType != null">cost_small_type = #{costSmallType},</if> |
|
|
|
<if test="purpose != null">purpose = #{purpose},</if> |
|
|
|
<if test="amounts != null">amounts = #{amounts},</if> |
|
|
|