md
This commit is contained in:
parent
2e5bdf3a7a
commit
a31a8aa4d7
@ -23,7 +23,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectEmisCreditSalesmenList" parameterType="EmisCreditSalesmen" resultMap="EmisCreditSalesmenResult">
|
<select id="selectEmisCreditSalesmenList" parameterType="EmisCreditSalesmen" resultMap="EmisCreditSalesmenResult">
|
||||||
<include refid="selectEmisCreditSalesmenVo"/>
|
select id, salesmen, cur_money, cur_money_rate, credit_money, currency, trans_type, start_date, end_date, bl_open, bl_lock, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||||
|
from emis_credit_salesmen a
|
||||||
<where>
|
<where>
|
||||||
del_flag='0'
|
del_flag='0'
|
||||||
<if test="id != null "> and id = #{id}</if>
|
<if test="id != null "> and id = #{id}</if>
|
||||||
@ -46,6 +47,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||||
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
||||||
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
|
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
|
||||||
|
|
||||||
|
|
||||||
|
<if test="params.beginCurMoney != null and params.beginCurMoney != ''">
|
||||||
|
and a.curMoney <![CDATA[ >= ]]> #{params.beginCurMoney}
|
||||||
|
</if>
|
||||||
|
<if test="params.endCurMoney != null and params.endCurMoney != ''">
|
||||||
|
and a.curMoney <![CDATA[ <= ]]> #{params.endCurMoney}
|
||||||
|
</if>
|
||||||
|
|
||||||
|
<if test="params.beginCurMoneyRate != null and params.beginCurMoneyRate != ''">
|
||||||
|
and a.cur_money_rate <![CDATA[ >= ]]> #{params.beginCurMoneyRate}
|
||||||
|
</if>
|
||||||
|
<if test="params.endCurMoneyRate != null and params.endCurMoneyRate != ''">
|
||||||
|
and a.cur_money_rate <![CDATA[ <= ]]> #{params.endCurMoneyRate}
|
||||||
|
</if>
|
||||||
|
|
||||||
</where>
|
</where>
|
||||||
order by create_time desc
|
order by create_time desc
|
||||||
</select>
|
</select>
|
||||||
@ -85,7 +102,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<insert id="insertEmisCreditSalesmen" parameterType="EmisCreditSalesmen" useGeneratedKeys="true" keyProperty="id">
|
<insert id="insertEmisCreditSalesmen" parameterType="EmisCreditSalesmen" useGeneratedKeys="true" keyProperty="id">
|
||||||
insert into emis_credit_salesmen
|
insert into emis_credit_salesmen
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">id,</if>
|
|
||||||
<if test="salesmen != null and salesmen != ''">salesmen,</if>
|
<if test="salesmen != null and salesmen != ''">salesmen,</if>
|
||||||
<if test="curMoney != null">cur_money,</if>
|
<if test="curMoney != null">cur_money,</if>
|
||||||
<if test="curMoneyRate != null">cur_money_rate,</if>
|
<if test="curMoneyRate != null">cur_money_rate,</if>
|
||||||
@ -107,7 +123,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">#{id},</if>
|
|
||||||
<if test="salesmen != null and salesmen != ''">#{salesmen},</if>
|
<if test="salesmen != null and salesmen != ''">#{salesmen},</if>
|
||||||
<if test="curMoney != null">#{curMoney},</if>
|
<if test="curMoney != null">#{curMoney},</if>
|
||||||
<if test="curMoneyRate != null">#{curMoneyRate},</if>
|
<if test="curMoneyRate != null">#{curMoneyRate},</if>
|
||||||
@ -157,11 +172,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</update>
|
</update>
|
||||||
|
|
||||||
<delete id="deleteEmisCreditSalesmenById" parameterType="Long">
|
<delete id="deleteEmisCreditSalesmenById" parameterType="Long">
|
||||||
delete from emis_credit_salesmen where id = #{id}
|
update emis_credit_salesmen set del_flag='1' where id = #{id}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<delete id="deleteEmisCreditSalesmenByIds" parameterType="String">
|
<delete id="deleteEmisCreditSalesmenByIds" parameterType="String">
|
||||||
delete from emis_credit_salesmen where id in
|
update emis_credit_salesmen set del_flag='1' where id in
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
#{id}
|
#{id}
|
||||||
</foreach>
|
</foreach>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user