2024-03-01 03:56:25 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
< !DOCTYPE mapper
2024-03-07 11:19:34 +00:00
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
2024-03-01 03:56:25 +00:00
<mapper namespace= "com.xdadan.erp.emis.mapper.EmisCustomerUserMapper" >
2024-03-07 11:19:34 +00:00
2024-03-01 03:56:25 +00:00
<resultMap type= "EmisCustomerUser" id= "EmisCustomerUserResult" >
<result property= "id" column= "id" />
2024-03-07 11:19:34 +00:00
<result property= "customerCode" column= "customer_code" />
2024-03-01 03:56:25 +00:00
<result property= "shortName" column= "short_name" />
2024-03-07 11:19:34 +00:00
<result property= "customerNameEn" column= "customer_name_en" />
<result property= "customerFullName" column= "customer_full_name" />
2024-03-01 03:56:25 +00:00
<result property= "customerType" column= "customer_type" />
2024-03-07 11:19:34 +00:00
<result property= "userType" column= "user_type" />
<result property= "company" column= "company" />
2024-03-01 03:56:25 +00:00
<result property= "deptId" column= "dept_id" />
2024-03-07 11:19:34 +00:00
<result property= "mobile" column= "mobile" />
2024-03-01 03:56:25 +00:00
<result property= "phone" column= "phone" />
<result property= "avatar" column= "avatar" />
<result property= "sex" column= "sex" />
<result property= "invitationInfo" column= "invitation_info" />
<result property= "loginIp" column= "login_ip" />
<result property= "loginDate" column= "login_date" />
<result property= "nickName" column= "nick_name" />
<result property= "unionId" column= "union_id" />
<result property= "openid" column= "openid" />
<result property= "monthlyPayCode" column= "monthly_pay_code" />
<result property= "userName" column= "user_name" />
<result property= "password" column= "password" />
<result property= "ownerSite" column= "owner_site" />
<result property= "siteCode" column= "site_code" />
<result property= "balanceMode" column= "balance_mode" />
<result property= "linkman" column= "linkman" />
<result property= "fax" column= "fax" />
<result property= "address" column= "address" />
<result property= "email" column= "email" />
<result property= "country" column= "country" />
<result property= "province" column= "province" />
<result property= "city" column= "city" />
<result property= "district" column= "district" />
<result property= "town" column= "town" />
<result property= "sendCountry" column= "send_country" />
<result property= "sendProvince" column= "send_province" />
<result property= "sendDistrict" column= "send_district" />
<result property= "sendTown" column= "send_town" />
<result property= "postCode" column= "post_code" />
<result property= "status" column= "status" />
<result property= "realName" column= "real_name" />
<result property= "idNo" column= "id_no" />
<result property= "payee" column= "payee" />
<result property= "salesmen" column= "salesmen" />
<result property= "createMan" column= "create_man" />
<result property= "createSite" column= "create_site" />
<result property= "createSiteCode" column= "create_site_code" />
<result property= "modifySiteCode" column= "modify_site_code" />
<result property= "blOpenOms" column= "bl_open_oms" />
<result property= "blSms" column= "bl_sms" />
<result property= "operationEmployee" column= "operation_employee" />
<result property= "operationEmployeeCode" column= "operation_employee_code" />
<result property= "createManCode" column= "create_man_code" />
<result property= "modifier" column= "modifier" />
<result property= "modifierCode" column= "modifier_code" />
<result property= "modifySite" column= "modify_site" />
<result property= "orderNum" column= "order_num" />
<result property= "remark" column= "remark" />
<result property= "delFlag" column= "del_flag" />
<result property= "createBy" column= "create_by" />
<result property= "createTime" column= "create_time" />
<result property= "updateBy" column= "update_by" />
<result property= "updateTime" column= "update_time" />
</resultMap>
<sql id= "selectEmisCustomerUserVo" >
2024-03-07 11:19:34 +00:00
select id, customer_code, short_name, customer_name_en, customer_full_name, customer_type, user_type, company, dept_id, mobile, phone, avatar, sex, invitation_info, login_ip, login_date, nick_name, union_id, openid, monthly_pay_code, user_name, password, owner_site, site_code, balance_mode, linkman, fax, address, email, country, province, city, district, town, send_country, send_province, send_district, send_town, post_code, status, real_name, id_no, payee, salesmen, create_man, create_site, create_site_code, modify_site_code, bl_open_oms, bl_sms, operation_employee, operation_employee_code, create_man_code, modifier, modifier_code, modify_site, order_num, remark, del_flag, create_by, create_time, update_by, update_time from emis_customer_user
2024-03-01 03:56:25 +00:00
</sql>
<select id= "selectEmisCustomerUserList" parameterType= "EmisCustomerUser" resultMap= "EmisCustomerUserResult" >
<include refid= "selectEmisCustomerUserVo" />
2024-03-07 11:19:34 +00:00
<where >
2024-03-01 03:56:25 +00:00
<if test= "id != null " > and id = #{id}</if>
2024-03-07 11:19:34 +00:00
<if test= "customerCode != null and customerCode != ''" > and customer_code like concat('%', #{customerCode}, '%')</if>
2024-03-01 03:56:25 +00:00
<if test= "shortName != null and shortName != ''" > and short_name like concat('%', #{shortName}, '%')</if>
2024-03-07 11:19:34 +00:00
<if test= "customerNameEn != null and customerNameEn != ''" > and customer_name_en like concat('%', #{customerNameEn}, '%')</if>
<if test= "customerFullName != null and customerFullName != ''" > and customer_full_name like concat('%', #{customerFullName}, '%')</if>
2024-03-01 03:56:25 +00:00
<if test= "customerType != null and customerType != ''" > and customer_type like concat('%', #{customerType}, '%')</if>
2024-03-07 11:19:34 +00:00
<if test= "userType != null and userType != ''" > and user_type like concat('%', #{userType}, '%')</if>
<if test= "company != null and company != ''" > and company like concat('%', #{company}, '%')</if>
2024-03-01 03:56:25 +00:00
<if test= "deptId != null and deptId != ''" > and dept_id like concat('%', #{deptId}, '%')</if>
2024-03-07 11:19:34 +00:00
<if test= "mobile != null and mobile != ''" > and mobile like concat('%', #{mobile}, '%')</if>
2024-03-01 03:56:25 +00:00
<if test= "phone != null and phone != ''" > and phone like concat('%', #{phone}, '%')</if>
<if test= "avatar != null and avatar != ''" > and avatar like concat('%', #{avatar}, '%')</if>
<if test= "sex != null and sex != ''" > and sex like concat('%', #{sex}, '%')</if>
<if test= "invitationInfo != null and invitationInfo != ''" > and invitation_info like concat('%', #{invitationInfo}, '%')</if>
<if test= "loginIp != null and loginIp != ''" > and login_ip like concat('%', #{loginIp}, '%')</if>
<if test= "loginDate != null and loginDate != ''" > and login_date like concat('%', #{loginDate}, '%')</if>
<if test= "nickName != null and nickName != ''" > and nick_name like concat('%', #{nickName}, '%')</if>
<if test= "unionId != null and unionId != ''" > and union_id like concat('%', #{unionId}, '%')</if>
<if test= "openid != null and openid != ''" > and openid like concat('%', #{openid}, '%')</if>
<if test= "monthlyPayCode != null and monthlyPayCode != ''" > and monthly_pay_code like concat('%', #{monthlyPayCode}, '%')</if>
<if test= "userName != null and userName != ''" > and user_name like concat('%', #{userName}, '%')</if>
<if test= "password != null and password != ''" > and password like concat('%', #{password}, '%')</if>
<if test= "ownerSite != null and ownerSite != ''" > and owner_site like concat('%', #{ownerSite}, '%')</if>
<if test= "siteCode != null and siteCode != ''" > and site_code like concat('%', #{siteCode}, '%')</if>
<if test= "balanceMode != null and balanceMode != ''" > and balance_mode like concat('%', #{balanceMode}, '%')</if>
<if test= "linkman != null and linkman != ''" > and linkman like concat('%', #{linkman}, '%')</if>
<if test= "fax != null and fax != ''" > and fax like concat('%', #{fax}, '%')</if>
<if test= "address != null and address != ''" > and address like concat('%', #{address}, '%')</if>
<if test= "email != null and email != ''" > and email like concat('%', #{email}, '%')</if>
<if test= "country != null and country != ''" > and country like concat('%', #{country}, '%')</if>
<if test= "province != null and province != ''" > and province like concat('%', #{province}, '%')</if>
<if test= "city != null and city != ''" > and city like concat('%', #{city}, '%')</if>
<if test= "district != null and district != ''" > and district like concat('%', #{district}, '%')</if>
<if test= "town != null and town != ''" > and town like concat('%', #{town}, '%')</if>
<if test= "sendCountry != null and sendCountry != ''" > and send_country like concat('%', #{sendCountry}, '%')</if>
<if test= "sendProvince != null and sendProvince != ''" > and send_province like concat('%', #{sendProvince}, '%')</if>
<if test= "sendDistrict != null and sendDistrict != ''" > and send_district like concat('%', #{sendDistrict}, '%')</if>
<if test= "sendTown != null and sendTown != ''" > and send_town like concat('%', #{sendTown}, '%')</if>
<if test= "postCode != null and postCode != ''" > and post_code like concat('%', #{postCode}, '%')</if>
<if test= "status != null and status != ''" > and status like concat('%', #{status}, '%')</if>
<if test= "realName != null and realName != ''" > and real_name like concat('%', #{realName}, '%')</if>
<if test= "idNo != null and idNo != ''" > and id_no like concat('%', #{idNo}, '%')</if>
<if test= "payee != null and payee != ''" > and payee like concat('%', #{payee}, '%')</if>
<if test= "salesmen != null and salesmen != ''" > and salesmen like concat('%', #{salesmen}, '%')</if>
<if test= "createMan != null and createMan != ''" > and create_man like concat('%', #{createMan}, '%')</if>
<if test= "createSite != null and createSite != ''" > and create_site like concat('%', #{createSite}, '%')</if>
<if test= "createSiteCode != null and createSiteCode != ''" > and create_site_code like concat('%', #{createSiteCode}, '%')</if>
<if test= "modifySiteCode != null and modifySiteCode != ''" > and modify_site_code like concat('%', #{modifySiteCode}, '%')</if>
<if test= "blOpenOms != null and blOpenOms != ''" > and bl_open_oms like concat('%', #{blOpenOms}, '%')</if>
<if test= "blSms != null and blSms != ''" > and bl_sms like concat('%', #{blSms}, '%')</if>
<if test= "operationEmployee != null and operationEmployee != ''" > and operation_employee like concat('%', #{operationEmployee}, '%')</if>
<if test= "operationEmployeeCode != null and operationEmployeeCode != ''" > and operation_employee_code like concat('%', #{operationEmployeeCode}, '%')</if>
<if test= "createManCode != null and createManCode != ''" > and create_man_code like concat('%', #{createManCode}, '%')</if>
<if test= "modifier != null and modifier != ''" > and modifier like concat('%', #{modifier}, '%')</if>
<if test= "modifierCode != null and modifierCode != ''" > and modifier_code like concat('%', #{modifierCode}, '%')</if>
<if test= "modifySite != null and modifySite != ''" > and modify_site like concat('%', #{modifySite}, '%')</if>
<if test= "orderNum != null and orderNum != ''" > and order_num like concat('%', #{orderNum}, '%')</if>
<if test= "remark != null and remark != ''" > and remark like concat('%', #{remark}, '%')</if>
<if test= "delFlag != null and delFlag != ''" > and del_flag like concat('%', #{delFlag}, '%')</if>
<if test= "createBy != null and createBy != ''" > and create_by like concat('%', #{createBy}, '%')</if>
<if test= "createTime != null " > and create_time = #{createTime}</if>
<if test= "updateBy != null and updateBy != ''" > and update_by like concat('%', #{updateBy}, '%')</if>
<if test= "updateTime != null " > and update_time = #{updateTime}</if>
</where>
order by create_time desc
</select>
2024-03-07 11:19:34 +00:00
2024-03-01 03:56:25 +00:00
<select id= "selectEmisCustomerUserById" parameterType= "Long" resultMap= "EmisCustomerUserResult" >
2024-03-07 11:19:34 +00:00
select id, customer_code, short_name, customer_name_en, customer_full_name, customer_type, user_type, company, dept_id, mobile, phone, avatar, sex, invitation_info, login_ip, login_date, nick_name, union_id, openid, monthly_pay_code, user_name, password, owner_site, site_code, balance_mode, linkman, fax, address, email, country, province, city, district, town, send_country, send_province, send_district, send_town, post_code, status, real_name, id_no, payee, salesmen, create_man, create_site, create_site_code, modify_site_code, bl_open_oms, bl_sms, operation_employee, operation_employee_code, create_man_code, modifier, modifier_code, modify_site, order_num, remark, del_flag, create_by, create_time, update_by, update_time
2024-03-01 03:56:25 +00:00
from emis_customer_user a
where a.id = #{id}
</select>
2024-03-07 11:19:34 +00:00
2024-03-01 03:56:25 +00:00
<insert id= "insertEmisCustomerUser" parameterType= "EmisCustomerUser" >
insert into emis_customer_user
<trim prefix= "(" suffix= ")" suffixOverrides= "," >
<if test= "id != null" > id,</if>
2024-03-07 11:19:34 +00:00
<if test= "customerCode != null and customerCode != ''" > customer_code,</if>
2024-03-01 03:56:25 +00:00
<if test= "shortName != null and shortName != ''" > short_name,</if>
2024-03-07 11:19:34 +00:00
<if test= "customerNameEn != null and customerNameEn != ''" > customer_name_en,</if>
<if test= "customerFullName != null and customerFullName != ''" > customer_full_name,</if>
2024-03-01 03:56:25 +00:00
<if test= "customerType != null and customerType != ''" > customer_type,</if>
2024-03-07 11:19:34 +00:00
<if test= "userType != null and userType != ''" > user_type,</if>
<if test= "company != null and company != ''" > company,</if>
2024-03-01 03:56:25 +00:00
<if test= "deptId != null and deptId != ''" > dept_id,</if>
2024-03-07 11:19:34 +00:00
<if test= "mobile != null and mobile != ''" > mobile,</if>
2024-03-01 03:56:25 +00:00
<if test= "phone != null and phone != ''" > phone,</if>
<if test= "avatar != null and avatar != ''" > avatar,</if>
<if test= "sex != null and sex != ''" > sex,</if>
<if test= "invitationInfo != null and invitationInfo != ''" > invitation_info,</if>
<if test= "loginIp != null and loginIp != ''" > login_ip,</if>
<if test= "loginDate != null and loginDate != ''" > login_date,</if>
<if test= "nickName != null and nickName != ''" > nick_name,</if>
<if test= "unionId != null and unionId != ''" > union_id,</if>
<if test= "openid != null and openid != ''" > openid,</if>
<if test= "monthlyPayCode != null and monthlyPayCode != ''" > monthly_pay_code,</if>
<if test= "userName != null and userName != ''" > user_name,</if>
<if test= "password != null and password != ''" > password,</if>
<if test= "ownerSite != null and ownerSite != ''" > owner_site,</if>
<if test= "siteCode != null and siteCode != ''" > site_code,</if>
<if test= "balanceMode != null and balanceMode != ''" > balance_mode,</if>
<if test= "linkman != null and linkman != ''" > linkman,</if>
<if test= "fax != null and fax != ''" > fax,</if>
<if test= "address != null and address != ''" > address,</if>
<if test= "email != null and email != ''" > email,</if>
<if test= "country != null and country != ''" > country,</if>
<if test= "province != null and province != ''" > province,</if>
<if test= "city != null and city != ''" > city,</if>
<if test= "district != null and district != ''" > district,</if>
<if test= "town != null and town != ''" > town,</if>
<if test= "sendCountry != null and sendCountry != ''" > send_country,</if>
<if test= "sendProvince != null and sendProvince != ''" > send_province,</if>
<if test= "sendDistrict != null and sendDistrict != ''" > send_district,</if>
<if test= "sendTown != null and sendTown != ''" > send_town,</if>
<if test= "postCode != null and postCode != ''" > post_code,</if>
<if test= "status != null and status != ''" > status,</if>
<if test= "realName != null and realName != ''" > real_name,</if>
<if test= "idNo != null and idNo != ''" > id_no,</if>
<if test= "payee != null and payee != ''" > payee,</if>
<if test= "salesmen != null and salesmen != ''" > salesmen,</if>
<if test= "createMan != null and createMan != ''" > create_man,</if>
<if test= "createSite != null and createSite != ''" > create_site,</if>
<if test= "createSiteCode != null and createSiteCode != ''" > create_site_code,</if>
<if test= "modifySiteCode != null and modifySiteCode != ''" > modify_site_code,</if>
<if test= "blOpenOms != null and blOpenOms != ''" > bl_open_oms,</if>
<if test= "blSms != null and blSms != ''" > bl_sms,</if>
<if test= "operationEmployee != null and operationEmployee != ''" > operation_employee,</if>
<if test= "operationEmployeeCode != null and operationEmployeeCode != ''" > operation_employee_code,</if>
<if test= "createManCode != null and createManCode != ''" > create_man_code,</if>
<if test= "modifier != null and modifier != ''" > modifier,</if>
<if test= "modifierCode != null and modifierCode != ''" > modifier_code,</if>
<if test= "modifySite != null and modifySite != ''" > modify_site,</if>
<if test= "orderNum != null and orderNum != ''" > order_num,</if>
<if test= "remark != null and remark != ''" > remark,</if>
<if test= "delFlag != null and delFlag != ''" > del_flag,</if>
<if test= "createBy != null and createBy != ''" > create_by,</if>
<if test= "createTime != null" > create_time,</if>
<if test= "updateBy != null and updateBy != ''" > update_by,</if>
<if test= "updateTime != null" > update_time,</if>
2024-03-07 11:19:34 +00:00
</trim>
2024-03-01 03:56:25 +00:00
<trim prefix= "values (" suffix= ")" suffixOverrides= "," >
<if test= "id != null" > #{id},</if>
2024-03-07 11:19:34 +00:00
<if test= "customerCode != null and customerCode != ''" > #{customerCode},</if>
2024-03-01 03:56:25 +00:00
<if test= "shortName != null and shortName != ''" > #{shortName},</if>
2024-03-07 11:19:34 +00:00
<if test= "customerNameEn != null and customerNameEn != ''" > #{customerNameEn},</if>
<if test= "customerFullName != null and customerFullName != ''" > #{customerFullName},</if>
2024-03-01 03:56:25 +00:00
<if test= "customerType != null and customerType != ''" > #{customerType},</if>
2024-03-07 11:19:34 +00:00
<if test= "userType != null and userType != ''" > #{userType},</if>
<if test= "company != null and company != ''" > #{company},</if>
2024-03-01 03:56:25 +00:00
<if test= "deptId != null and deptId != ''" > #{deptId},</if>
2024-03-07 11:19:34 +00:00
<if test= "mobile != null and mobile != ''" > #{mobile},</if>
2024-03-01 03:56:25 +00:00
<if test= "phone != null and phone != ''" > #{phone},</if>
<if test= "avatar != null and avatar != ''" > #{avatar},</if>
<if test= "sex != null and sex != ''" > #{sex},</if>
<if test= "invitationInfo != null and invitationInfo != ''" > #{invitationInfo},</if>
<if test= "loginIp != null and loginIp != ''" > #{loginIp},</if>
<if test= "loginDate != null and loginDate != ''" > #{loginDate},</if>
<if test= "nickName != null and nickName != ''" > #{nickName},</if>
<if test= "unionId != null and unionId != ''" > #{unionId},</if>
<if test= "openid != null and openid != ''" > #{openid},</if>
<if test= "monthlyPayCode != null and monthlyPayCode != ''" > #{monthlyPayCode},</if>
<if test= "userName != null and userName != ''" > #{userName},</if>
<if test= "password != null and password != ''" > #{password},</if>
<if test= "ownerSite != null and ownerSite != ''" > #{ownerSite},</if>
<if test= "siteCode != null and siteCode != ''" > #{siteCode},</if>
<if test= "balanceMode != null and balanceMode != ''" > #{balanceMode},</if>
<if test= "linkman != null and linkman != ''" > #{linkman},</if>
<if test= "fax != null and fax != ''" > #{fax},</if>
<if test= "address != null and address != ''" > #{address},</if>
<if test= "email != null and email != ''" > #{email},</if>
<if test= "country != null and country != ''" > #{country},</if>
<if test= "province != null and province != ''" > #{province},</if>
<if test= "city != null and city != ''" > #{city},</if>
<if test= "district != null and district != ''" > #{district},</if>
<if test= "town != null and town != ''" > #{town},</if>
<if test= "sendCountry != null and sendCountry != ''" > #{sendCountry},</if>
<if test= "sendProvince != null and sendProvince != ''" > #{sendProvince},</if>
<if test= "sendDistrict != null and sendDistrict != ''" > #{sendDistrict},</if>
<if test= "sendTown != null and sendTown != ''" > #{sendTown},</if>
<if test= "postCode != null and postCode != ''" > #{postCode},</if>
<if test= "status != null and status != ''" > #{status},</if>
<if test= "realName != null and realName != ''" > #{realName},</if>
<if test= "idNo != null and idNo != ''" > #{idNo},</if>
<if test= "payee != null and payee != ''" > #{payee},</if>
<if test= "salesmen != null and salesmen != ''" > #{salesmen},</if>
<if test= "createMan != null and createMan != ''" > #{createMan},</if>
<if test= "createSite != null and createSite != ''" > #{createSite},</if>
<if test= "createSiteCode != null and createSiteCode != ''" > #{createSiteCode},</if>
<if test= "modifySiteCode != null and modifySiteCode != ''" > #{modifySiteCode},</if>
<if test= "blOpenOms != null and blOpenOms != ''" > #{blOpenOms},</if>
<if test= "blSms != null and blSms != ''" > #{blSms},</if>
<if test= "operationEmployee != null and operationEmployee != ''" > #{operationEmployee},</if>
<if test= "operationEmployeeCode != null and operationEmployeeCode != ''" > #{operationEmployeeCode},</if>
<if test= "createManCode != null and createManCode != ''" > #{createManCode},</if>
<if test= "modifier != null and modifier != ''" > #{modifier},</if>
<if test= "modifierCode != null and modifierCode != ''" > #{modifierCode},</if>
<if test= "modifySite != null and modifySite != ''" > #{modifySite},</if>
<if test= "orderNum != null and orderNum != ''" > #{orderNum},</if>
<if test= "remark != null and remark != ''" > #{remark},</if>
<if test= "delFlag != null and delFlag != ''" > #{delFlag},</if>
<if test= "createBy != null and createBy != ''" > #{createBy},</if>
<if test= "createTime != null" > #{createTime},</if>
<if test= "updateBy != null and updateBy != ''" > #{updateBy},</if>
<if test= "updateTime != null" > #{updateTime},</if>
2024-03-07 11:19:34 +00:00
</trim>
2024-03-01 03:56:25 +00:00
</insert>
<update id= "updateEmisCustomerUser" parameterType= "EmisCustomerUser" >
update emis_customer_user
<trim prefix= "SET" suffixOverrides= "," >
2024-03-07 11:19:34 +00:00
<if test= "customerCode != null and customerCode != ''" > customer_code = #{customerCode},</if>
2024-03-01 03:56:25 +00:00
<if test= "shortName != null and shortName != ''" > short_name = #{shortName},</if>
2024-03-07 11:19:34 +00:00
<if test= "customerNameEn != null and customerNameEn != ''" > customer_name_en = #{customerNameEn},</if>
<if test= "customerFullName != null and customerFullName != ''" > customer_full_name = #{customerFullName},</if>
2024-03-01 03:56:25 +00:00
<if test= "customerType != null and customerType != ''" > customer_type = #{customerType},</if>
2024-03-07 11:19:34 +00:00
<if test= "userType != null and userType != ''" > user_type = #{userType},</if>
<if test= "company != null and company != ''" > company = #{company},</if>
2024-03-01 03:56:25 +00:00
<if test= "deptId != null and deptId != ''" > dept_id = #{deptId},</if>
2024-03-07 11:19:34 +00:00
<if test= "mobile != null and mobile != ''" > mobile = #{mobile},</if>
2024-03-01 03:56:25 +00:00
<if test= "phone != null and phone != ''" > phone = #{phone},</if>
<if test= "avatar != null and avatar != ''" > avatar = #{avatar},</if>
<if test= "sex != null and sex != ''" > sex = #{sex},</if>
<if test= "invitationInfo != null and invitationInfo != ''" > invitation_info = #{invitationInfo},</if>
<if test= "loginIp != null and loginIp != ''" > login_ip = #{loginIp},</if>
<if test= "loginDate != null and loginDate != ''" > login_date = #{loginDate},</if>
<if test= "nickName != null and nickName != ''" > nick_name = #{nickName},</if>
<if test= "unionId != null and unionId != ''" > union_id = #{unionId},</if>
<if test= "openid != null and openid != ''" > openid = #{openid},</if>
<if test= "monthlyPayCode != null and monthlyPayCode != ''" > monthly_pay_code = #{monthlyPayCode},</if>
<if test= "userName != null and userName != ''" > user_name = #{userName},</if>
<if test= "password != null and password != ''" > password = #{password},</if>
<if test= "ownerSite != null and ownerSite != ''" > owner_site = #{ownerSite},</if>
<if test= "siteCode != null and siteCode != ''" > site_code = #{siteCode},</if>
<if test= "balanceMode != null and balanceMode != ''" > balance_mode = #{balanceMode},</if>
<if test= "linkman != null and linkman != ''" > linkman = #{linkman},</if>
<if test= "fax != null and fax != ''" > fax = #{fax},</if>
<if test= "address != null and address != ''" > address = #{address},</if>
<if test= "email != null and email != ''" > email = #{email},</if>
<if test= "country != null and country != ''" > country = #{country},</if>
<if test= "province != null and province != ''" > province = #{province},</if>
<if test= "city != null and city != ''" > city = #{city},</if>
<if test= "district != null and district != ''" > district = #{district},</if>
<if test= "town != null and town != ''" > town = #{town},</if>
<if test= "sendCountry != null and sendCountry != ''" > send_country = #{sendCountry},</if>
<if test= "sendProvince != null and sendProvince != ''" > send_province = #{sendProvince},</if>
<if test= "sendDistrict != null and sendDistrict != ''" > send_district = #{sendDistrict},</if>
<if test= "sendTown != null and sendTown != ''" > send_town = #{sendTown},</if>
<if test= "postCode != null and postCode != ''" > post_code = #{postCode},</if>
<if test= "status != null and status != ''" > status = #{status},</if>
<if test= "realName != null and realName != ''" > real_name = #{realName},</if>
<if test= "idNo != null and idNo != ''" > id_no = #{idNo},</if>
<if test= "payee != null and payee != ''" > payee = #{payee},</if>
<if test= "salesmen != null and salesmen != ''" > salesmen = #{salesmen},</if>
<if test= "createMan != null and createMan != ''" > create_man = #{createMan},</if>
<if test= "createSite != null and createSite != ''" > create_site = #{createSite},</if>
<if test= "createSiteCode != null and createSiteCode != ''" > create_site_code = #{createSiteCode},</if>
<if test= "modifySiteCode != null and modifySiteCode != ''" > modify_site_code = #{modifySiteCode},</if>
<if test= "blOpenOms != null and blOpenOms != ''" > bl_open_oms = #{blOpenOms},</if>
<if test= "blSms != null and blSms != ''" > bl_sms = #{blSms},</if>
<if test= "operationEmployee != null and operationEmployee != ''" > operation_employee = #{operationEmployee},</if>
<if test= "operationEmployeeCode != null and operationEmployeeCode != ''" > operation_employee_code = #{operationEmployeeCode},</if>
<if test= "createManCode != null and createManCode != ''" > create_man_code = #{createManCode},</if>
<if test= "modifier != null and modifier != ''" > modifier = #{modifier},</if>
<if test= "modifierCode != null and modifierCode != ''" > modifier_code = #{modifierCode},</if>
<if test= "modifySite != null and modifySite != ''" > modify_site = #{modifySite},</if>
<if test= "orderNum != null and orderNum != ''" > order_num = #{orderNum},</if>
<if test= "remark != null and remark != ''" > remark = #{remark},</if>
<if test= "delFlag != null and delFlag != ''" > del_flag = #{delFlag},</if>
<if test= "createBy != null and createBy != ''" > create_by = #{createBy},</if>
<if test= "createTime != null" > create_time = #{createTime},</if>
<if test= "updateBy != null and updateBy != ''" > update_by = #{updateBy},</if>
<if test= "updateTime != null" > update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id= "deleteEmisCustomerUserById" parameterType= "Long" >
delete from emis_customer_user where id = #{id}
</delete>
<delete id= "deleteEmisCustomerUserByIds" parameterType= "String" >
2024-03-07 11:19:34 +00:00
delete from emis_customer_user where id in
2024-03-01 03:56:25 +00:00
<foreach item= "id" collection= "array" open= "(" separator= "," close= ")" >
#{id}
</foreach>
</delete>
</mapper>