md
This commit is contained in:
parent
84f47a3d7d
commit
26bbfdc50e
@ -35,6 +35,8 @@ public class EmisCreditCustomer extends BaseEntity
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 账户编号,按规则生成 */
|
||||
private String accCode;
|
||||
/* 客户编码 */
|
||||
private String customerCode;
|
||||
/* 月结卡号 */
|
||||
|
||||
@ -35,6 +35,8 @@ public class EmisCreditCustomerRecord extends BaseEntity
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 账户编号,按规则生成 */
|
||||
private String accCode;
|
||||
/* 客户编码 */
|
||||
private String customerCode;
|
||||
/* 运单号 */
|
||||
|
||||
@ -35,6 +35,8 @@ public class EmisCreditSalesmen extends BaseEntity
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 账户编号,按规则生成 */
|
||||
private String accCode;
|
||||
/* 销售名称 */
|
||||
private String salesmen;
|
||||
/* 当前余额 */
|
||||
|
||||
@ -35,6 +35,8 @@ public class EmisCreditSalesmenRecord extends BaseEntity
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 账户编号,按规则生成 */
|
||||
private String accCode;
|
||||
/* 销售名称 */
|
||||
private String salesmen;
|
||||
/* 运单号 */
|
||||
|
||||
@ -6,6 +6,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<resultMap type="EmisCreditCustomer" id="EmisCreditCustomerResult" extends="com.xdadan.erp.emis.mapper.EmisBaseMapper.EmisBaseResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="accCode" column="acc_code" />
|
||||
<result property="customerCode" column="customer_code" />
|
||||
<result property="monthlyPayCode" column="monthly_pay_code" />
|
||||
<result property="curMoney" column="cur_money" />
|
||||
@ -23,13 +24,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisCreditCustomerVo">
|
||||
select id, customer_code, monthly_pay_code, cur_money, cur_money_rate, credit_money, currency, trans_type, start_date, end_date, bl_open, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_credit_customer
|
||||
select id, acc_code, customer_code, monthly_pay_code, cur_money, cur_money_rate, credit_money, currency, trans_type, start_date, end_date, bl_open, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_credit_customer
|
||||
from emis_credit_customer
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisCreditCustomerList" parameterType="EmisCreditCustomer" resultMap="EmisCreditCustomerResult">
|
||||
select
|
||||
a.id, a.customer_code, a.monthly_pay_code,a.cur_money, a.cur_money_rate,
|
||||
a.id,a.acc_code, a.customer_code, a.monthly_pay_code,a.cur_money, a.cur_money_rate,
|
||||
a.credit_money, a.currency, a.trans_type, a.start_date, a.end_date,
|
||||
a.bl_open, a.remark, a.tenant_id, a.del_flag, a.create_by, a.create_time,
|
||||
a.update_by, a.update_time, a.create_site, a.update_site,
|
||||
@ -38,6 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<where>
|
||||
a.del_flag='0' and b.del_flag='0' and a.customer_code=b.customer_code
|
||||
<if test="id != null "> and a.id = #{id}</if>
|
||||
<if test="accCode != null and accCode != ''"> and acc_code=#{accCode}</if>
|
||||
<if test="customerCode != null and customerCode != ''"> and a.customer_code=#{customerCode}</if>
|
||||
<if test="monthlyPayCode != null and monthlyPayCode != ''"> and monthly_pay_code=#{monthlyPayCode}</if>
|
||||
<if test="curMoney != null "> and a.cur_money = #{curMoney}</if>
|
||||
@ -115,7 +117,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectEmisCreditCustomerById" parameterType="Long" resultMap="EmisCreditCustomerResult">
|
||||
select
|
||||
a.id, a.customer_code,a.monthly_pay_code, a.cur_money, a.cur_money_rate,
|
||||
a.id,a.acc_code, a.customer_code,a.monthly_pay_code, a.cur_money, a.cur_money_rate,
|
||||
a.credit_money, a.currency, a.trans_type, a.start_date, a.end_date,
|
||||
a.bl_open, a.remark, a.tenant_id, a.del_flag, a.create_by, a.create_time,
|
||||
a.update_by, a.update_time, a.create_site, a.update_site,
|
||||
@ -127,6 +129,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<insert id="insertEmisCreditCustomer" parameterType="EmisCreditCustomer" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_credit_customer
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="accCode != null and accCode != ''">acc_code,</if>
|
||||
<if test="customerCode != null and customerCode != ''">customer_code,</if>
|
||||
<if test="monthlyPayCode != null and monthlyPayCode != ''">monthly_pay_code,</if>
|
||||
<if test="curMoney != null">cur_money,</if>
|
||||
@ -148,6 +151,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="accCode != null and accCode != ''">#{accCode},</if>
|
||||
<if test="customerCode != null and customerCode != ''">#{customerCode},</if>
|
||||
<if test="monthlyPayCode != null and monthlyPayCode != ''">#{monthlyPayCode},</if>
|
||||
<if test="curMoney != null">#{curMoney},</if>
|
||||
@ -173,6 +177,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<update id="updateEmisCreditCustomer" parameterType="EmisCreditCustomer">
|
||||
update emis_credit_customer
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="accCode != null and accCode != ''">acc_code = #{accCode},</if>
|
||||
<if test="customerCode != null and customerCode != ''">customer_code = #{customerCode},</if>
|
||||
<if test="monthlyPayCode != null and monthlyPayCode != ''">monthly_pay_code = #{monthlyPayCode},</if>
|
||||
<if test="curMoney != null">cur_money = #{curMoney},</if>
|
||||
|
||||
@ -6,6 +6,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<resultMap type="EmisCreditCustomerRecord" id="EmisCreditCustomerRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="accCode" column="acc_code" />
|
||||
<result property="customerCode" column="customer_code" />
|
||||
<result property="billCode" column="bill_code" />
|
||||
<result property="changeType" column="change_type" />
|
||||
@ -16,7 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisCreditCustomerRecordVo">
|
||||
select id, customer_code, bill_code, change_type, change_money, pre_balance, back_balance, currency, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_credit_customer_record
|
||||
select id, acc_code, customer_code, bill_code, change_type, change_money, pre_balance, back_balance, currency, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_credit_customer_record
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisCreditCustomerRecordList" parameterType="EmisCreditCustomerRecord" resultMap="EmisCreditCustomerRecordResult">
|
||||
@ -24,6 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="accCode != null and accCode != ''"> and acc_code=#{accCode}</if>
|
||||
<if test="customerCode != null and customerCode != ''"> and customer_code like concat('%', #{customerCode}, '%')</if>
|
||||
<if test="billCode != null and billCode != ''"> and bill_code like concat('%', #{billCode}, '%')</if>
|
||||
<if test="changeType != null and changeType != ''"> and change_type like concat('%', #{changeType}, '%')</if>
|
||||
@ -66,15 +68,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</select>
|
||||
|
||||
<select id="selectEmisCreditCustomerRecordById" parameterType="Long" resultMap="EmisCreditCustomerRecordResult">
|
||||
select id, customer_code, bill_code, change_type, change_money, pre_balance, back_balance, currency, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
select id, acc_code, customer_code, bill_code, change_type, change_money, pre_balance, back_balance, currency, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_credit_customer_record a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertEmisCreditCustomerRecord" parameterType="EmisCreditCustomerRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_credit_customer_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="accCode != null and accCode != ''">acc_code,</if>
|
||||
<if test="customerCode != null and customerCode != ''">customer_code,</if>
|
||||
<if test="billCode != null and billCode != ''">bill_code,</if>
|
||||
<if test="changeType != null and changeType != ''">change_type,</if>
|
||||
@ -90,9 +93,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createSite != null and createSite != ''">create_site,</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
||||
</trim>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="accCode != null and accCode != ''">#{accCode},</if>
|
||||
<if test="customerCode != null and customerCode != ''">#{customerCode},</if>
|
||||
<if test="billCode != null and billCode != ''">#{billCode},</if>
|
||||
<if test="changeType != null and changeType != ''">#{changeType},</if>
|
||||
@ -108,12 +112,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">#{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
|
||||
</trim>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisCreditCustomerRecord" parameterType="EmisCreditCustomerRecord">
|
||||
update emis_credit_customer_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="accCode != null and accCode != ''">acc_code = #{accCode},</if>
|
||||
<if test="customerCode != null and customerCode != ''">customer_code = #{customerCode},</if>
|
||||
<if test="billCode != null and billCode != ''">bill_code = #{billCode},</if>
|
||||
<if test="changeType != null and changeType != ''">change_type = #{changeType},</if>
|
||||
@ -134,11 +139,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</update>
|
||||
|
||||
<delete id="deleteEmisCreditCustomerRecordById" parameterType="Long">
|
||||
delete from emis_credit_customer_record where id = #{id}
|
||||
update emis_credit_customer_record set del_flag='1' where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisCreditCustomerRecordByIds" parameterType="String">
|
||||
delete from emis_credit_customer_record where id in
|
||||
update emis_credit_customer_record set del_flag='1' where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
|
||||
@ -6,6 +6,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<resultMap type="EmisCreditSalesmen" id="EmisCreditSalesmenResult" extends="com.xdadan.erp.emis.mapper.EmisBaseMapper.EmisBaseResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="accCode" column="acc_code" />
|
||||
<result property="salesmen" column="salesmen" />
|
||||
<result property="curMoney" column="cur_money" />
|
||||
<result property="curMoneyRate" column="cur_money_rate" />
|
||||
@ -19,16 +20,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="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
|
||||
select id, acc_code, 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
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisCreditSalesmenList" parameterType="EmisCreditSalesmen" resultMap="EmisCreditSalesmenResult">
|
||||
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
|
||||
select id, acc_code, 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>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="salesmen != null and salesmen != ''"> and salesmen like concat('%', #{salesmen}, '%')</if>
|
||||
<if test="accCode != null and accCode != ''"> and acc_code=#{accCode}</if>
|
||||
<if test="salesmen != null and salesmen != ''"> and salesmen=#{salesmen}</if>
|
||||
<if test="curMoney != null "> and cur_money = #{curMoney}</if>
|
||||
<if test="curMoneyRate != null "> and cur_money_rate = #{curMoneyRate}</if>
|
||||
<if test="creditMoney != null "> and credit_money = #{creditMoney}</if>
|
||||
@ -56,6 +58,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
and a.curMoney <![CDATA[ <= ]]> #{params.endCurMoney}
|
||||
</if>
|
||||
|
||||
<if test="params.sendDate != null ">
|
||||
and ( a.start_date <![CDATA[ < ]]> #{params.sendDate} ) and ( #{params.sendDate} <![CDATA[ <= ]]> a.end_date )
|
||||
</if>
|
||||
|
||||
<if test="params.beginCurMoneyRate != null and params.beginCurMoneyRate != ''">
|
||||
and a.cur_money_rate <![CDATA[ >= ]]> #{params.beginCurMoneyRate}
|
||||
</if>
|
||||
@ -94,14 +100,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</select>
|
||||
|
||||
<select id="selectEmisCreditSalesmenById" parameterType="Long" resultMap="EmisCreditSalesmenResult">
|
||||
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
|
||||
select id, acc_code, 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 a.id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertEmisCreditSalesmen" parameterType="EmisCreditSalesmen" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_credit_salesmen
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="accCode != null and accCode != ''">acc_code,</if>
|
||||
<if test="salesmen != null and salesmen != ''">salesmen,</if>
|
||||
<if test="curMoney != null">cur_money,</if>
|
||||
<if test="curMoneyRate != null">cur_money_rate,</if>
|
||||
@ -121,8 +128,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createSite != null and createSite != ''">create_site,</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
||||
</trim>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="accCode != null and accCode != ''">#{accCode},</if>
|
||||
<if test="salesmen != null and salesmen != ''">#{salesmen},</if>
|
||||
<if test="curMoney != null">#{curMoney},</if>
|
||||
<if test="curMoneyRate != null">#{curMoneyRate},</if>
|
||||
@ -142,12 +150,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">#{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
|
||||
</trim>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisCreditSalesmen" parameterType="EmisCreditSalesmen">
|
||||
update emis_credit_salesmen
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="accCode != null and accCode != ''">acc_code = #{accCode},</if>
|
||||
<if test="salesmen != null and salesmen != ''">salesmen = #{salesmen},</if>
|
||||
<if test="curMoney != null">cur_money = #{curMoney},</if>
|
||||
<if test="curMoneyRate != null">cur_money_rate = #{curMoneyRate},</if>
|
||||
|
||||
@ -6,6 +6,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<resultMap type="EmisCreditSalesmenRecord" id="EmisCreditSalesmenRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="accCode" column="acc_code" />
|
||||
<result property="salesmen" column="salesmen" />
|
||||
<result property="billCode" column="bill_code" />
|
||||
<result property="changeType" column="change_type" />
|
||||
@ -16,14 +17,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisCreditSalesmenRecordVo">
|
||||
select id, salesmen, bill_code, change_type, change_money, pre_balance, back_balance, currency, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_credit_salesmen_record
|
||||
select id, acc_code, salesmen, bill_code, change_type, change_money, pre_balance, back_balance, currency, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_credit_salesmen_record
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisCreditSalesmenRecordList" parameterType="EmisCreditSalesmenRecord" resultMap="EmisCreditSalesmenRecordResult">
|
||||
<include refid="selectEmisCreditSalesmenRecordVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="accCode != null and accCode != ''"> and acc_code like concat('%', #{accCode}, '%')</if>
|
||||
<if test="salesmen != null and salesmen != ''"> and salesmen like concat('%', #{salesmen}, '%')</if>
|
||||
<if test="billCode != null and billCode != ''"> and bill_code like concat('%', #{billCode}, '%')</if>
|
||||
<if test="changeType != null and changeType != ''"> and change_type like concat('%', #{changeType}, '%')</if>
|
||||
@ -47,6 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
select count(1) from emis_credit_salesmen_record
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and acc_code = #{accCode}
|
||||
and salesmen = #{salesmen}
|
||||
and bill_code = #{billCode}
|
||||
and change_type = #{changeType}
|
||||
@ -64,17 +67,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
and update_site = #{updateSite}
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectEmisCreditSalesmenRecordById" parameterType="Long" resultMap="EmisCreditSalesmenRecordResult">
|
||||
select id, salesmen, bill_code, change_type, change_money, pre_balance, back_balance, currency, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
select id, acc_code, salesmen, bill_code, change_type, change_money, pre_balance, back_balance, currency, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_credit_salesmen_record a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertEmisCreditSalesmenRecord" parameterType="EmisCreditSalesmenRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_credit_salesmen_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="accCode != null and accCode != ''">acc_code,</if>
|
||||
<if test="salesmen != null and salesmen != ''">salesmen,</if>
|
||||
<if test="billCode != null and billCode != ''">bill_code,</if>
|
||||
<if test="changeType != null and changeType != ''">change_type,</if>
|
||||
@ -90,9 +94,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createSite != null and createSite != ''">create_site,</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
||||
</trim>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="accCode != null and accCode != ''">#{accCode},</if>
|
||||
<if test="salesmen != null and salesmen != ''">#{salesmen},</if>
|
||||
<if test="billCode != null and billCode != ''">#{billCode},</if>
|
||||
<if test="changeType != null and changeType != ''">#{changeType},</if>
|
||||
@ -108,12 +113,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">#{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
|
||||
</trim>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisCreditSalesmenRecord" parameterType="EmisCreditSalesmenRecord">
|
||||
update emis_credit_salesmen_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="accCode != null and accCode != ''">acc_code = #{accCode},</if>
|
||||
<if test="salesmen != null and salesmen != ''">salesmen = #{salesmen},</if>
|
||||
<if test="billCode != null and billCode != ''">bill_code = #{billCode},</if>
|
||||
<if test="changeType != null and changeType != ''">change_type = #{changeType},</if>
|
||||
@ -134,11 +140,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</update>
|
||||
|
||||
<delete id="deleteEmisCreditSalesmenRecordById" parameterType="Long">
|
||||
delete from emis_credit_salesmen_record where id = #{id}
|
||||
update emis_credit_salesmen_record set del_flag='1' where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisCreditSalesmenRecordByIds" parameterType="String">
|
||||
delete from emis_credit_salesmen_record where id in
|
||||
update emis_credit_salesmen_record set del_flag='1' where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user