md
This commit is contained in:
parent
0b442a9b2a
commit
b5fca51d5b
@ -1,10 +1,10 @@
|
||||
/**
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCustomerUser.java
|
||||
* @author linfso
|
||||
* @date 2024-03-01 03:51:54
|
||||
* @date 2024-03-07 11:18:02
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @version v1.0
|
||||
* @Description: <p> 快递客户用户 实体类 </p>
|
||||
*/
|
||||
|
||||
@ -17,6 +17,7 @@ import com.xdadan.erp.common.annotation.Excel;
|
||||
import com.xdadan.erp.common.core.domain.BaseEntity;
|
||||
import com.xdadan.erp.common.core.domain.TreeEntity;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
@ -25,9 +26,9 @@ import lombok.Data;
|
||||
* @ClassName EmisCustomerUser
|
||||
* @Description 快递客户用户
|
||||
* @author linfso
|
||||
* @date 2024-03-01 03:51:54
|
||||
* @date 2024-03-07 11:18:02
|
||||
*/
|
||||
@Data
|
||||
@Data
|
||||
public class EmisCustomerUser extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
@ -35,25 +36,29 @@ public class EmisCustomerUser extends BaseEntity
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 客户编码 */
|
||||
private String code;
|
||||
private String customerCode;
|
||||
/* 客户名称 */
|
||||
private String shortName;
|
||||
/* 英文简称 */
|
||||
private String nameEn;
|
||||
private String customerNameEn;
|
||||
/* 全名 */
|
||||
private String customerFullName;
|
||||
/* 客户类型 1-普通客户 2-月结客户 */
|
||||
private String customerType;
|
||||
/* 用户类型 1-个人 2-公司 */
|
||||
private String userType;
|
||||
/* 所属公司 */
|
||||
private String company;
|
||||
/* 部门id */
|
||||
private String deptId;
|
||||
/* 手机号 */
|
||||
private String mobile;
|
||||
/* 电话 */
|
||||
private String phone;
|
||||
/* 寄件人 */
|
||||
private String customerFullName;
|
||||
/* 头像 */
|
||||
private String avatar;
|
||||
/* 性别 */
|
||||
private String sex;
|
||||
/* 所属公司 */
|
||||
private String company;
|
||||
/* 邀请人 */
|
||||
private String invitationInfo;
|
||||
/* 最后登录ip */
|
||||
|
||||
@ -1,21 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xdadan.erp.emis.mapper.EmisCustomerUserMapper">
|
||||
|
||||
|
||||
<resultMap type="EmisCustomerUser" id="EmisCustomerUserResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="code" column="code" />
|
||||
<result property="customerCode" column="customer_code" />
|
||||
<result property="shortName" column="short_name" />
|
||||
<result property="nameEn" column="name_en" />
|
||||
<result property="customerType" column="customer_type" />
|
||||
<result property="deptId" column="dept_id" />
|
||||
<result property="phone" column="phone" />
|
||||
<result property="customerNameEn" column="customer_name_en" />
|
||||
<result property="customerFullName" column="customer_full_name" />
|
||||
<result property="customerType" column="customer_type" />
|
||||
<result property="userType" column="user_type" />
|
||||
<result property="company" column="company" />
|
||||
<result property="deptId" column="dept_id" />
|
||||
<result property="mobile" column="mobile" />
|
||||
<result property="phone" column="phone" />
|
||||
<result property="avatar" column="avatar" />
|
||||
<result property="sex" column="sex" />
|
||||
<result property="company" column="company" />
|
||||
<result property="invitationInfo" column="invitation_info" />
|
||||
<result property="loginIp" column="login_ip" />
|
||||
<result property="loginDate" column="login_date" />
|
||||
@ -69,23 +71,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisCustomerUserVo">
|
||||
select id, code, short_name, name_en, customer_type, dept_id, phone, customer_full_name, avatar, sex, company, 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
|
||||
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
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisCustomerUserList" parameterType="EmisCustomerUser" resultMap="EmisCustomerUserResult">
|
||||
<include refid="selectEmisCustomerUserVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="code != null and code != ''"> and code like concat('%', #{code}, '%')</if>
|
||||
<if test="customerCode != null and customerCode != ''"> and customer_code like concat('%', #{customerCode}, '%')</if>
|
||||
<if test="shortName != null and shortName != ''"> and short_name like concat('%', #{shortName}, '%')</if>
|
||||
<if test="nameEn != null and nameEn != ''"> and name_en like concat('%', #{nameEn}, '%')</if>
|
||||
<if test="customerType != null and customerType != ''"> and customer_type like concat('%', #{customerType}, '%')</if>
|
||||
<if test="deptId != null and deptId != ''"> and dept_id like concat('%', #{deptId}, '%')</if>
|
||||
<if test="phone != null and phone != ''"> and phone like concat('%', #{phone}, '%')</if>
|
||||
<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>
|
||||
<if test="customerType != null and customerType != ''"> and customer_type like concat('%', #{customerType}, '%')</if>
|
||||
<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>
|
||||
<if test="deptId != null and deptId != ''"> and dept_id like concat('%', #{deptId}, '%')</if>
|
||||
<if test="mobile != null and mobile != ''"> and mobile like concat('%', #{mobile}, '%')</if>
|
||||
<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="company != null and company != ''"> and company like concat('%', #{company}, '%')</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>
|
||||
@ -139,27 +143,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectEmisCustomerUserById" parameterType="Long" resultMap="EmisCustomerUserResult">
|
||||
select id, code, short_name, name_en, customer_type, dept_id, phone, customer_full_name, avatar, sex, company, 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
|
||||
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 a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertEmisCustomerUser" parameterType="EmisCustomerUser">
|
||||
insert into emis_customer_user
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="code != null and code != ''">code,</if>
|
||||
<if test="customerCode != null and customerCode != ''">customer_code,</if>
|
||||
<if test="shortName != null and shortName != ''">short_name,</if>
|
||||
<if test="nameEn != null and nameEn != ''">name_en,</if>
|
||||
<if test="customerType != null and customerType != ''">customer_type,</if>
|
||||
<if test="deptId != null and deptId != ''">dept_id,</if>
|
||||
<if test="phone != null and phone != ''">phone,</if>
|
||||
<if test="customerNameEn != null and customerNameEn != ''">customer_name_en,</if>
|
||||
<if test="customerFullName != null and customerFullName != ''">customer_full_name,</if>
|
||||
<if test="customerType != null and customerType != ''">customer_type,</if>
|
||||
<if test="userType != null and userType != ''">user_type,</if>
|
||||
<if test="company != null and company != ''">company,</if>
|
||||
<if test="deptId != null and deptId != ''">dept_id,</if>
|
||||
<if test="mobile != null and mobile != ''">mobile,</if>
|
||||
<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="company != null and company != ''">company,</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>
|
||||
@ -210,19 +216,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="code != null and code != ''">#{code},</if>
|
||||
<if test="customerCode != null and customerCode != ''">#{customerCode},</if>
|
||||
<if test="shortName != null and shortName != ''">#{shortName},</if>
|
||||
<if test="nameEn != null and nameEn != ''">#{nameEn},</if>
|
||||
<if test="customerType != null and customerType != ''">#{customerType},</if>
|
||||
<if test="deptId != null and deptId != ''">#{deptId},</if>
|
||||
<if test="phone != null and phone != ''">#{phone},</if>
|
||||
<if test="customerNameEn != null and customerNameEn != ''">#{customerNameEn},</if>
|
||||
<if test="customerFullName != null and customerFullName != ''">#{customerFullName},</if>
|
||||
<if test="customerType != null and customerType != ''">#{customerType},</if>
|
||||
<if test="userType != null and userType != ''">#{userType},</if>
|
||||
<if test="company != null and company != ''">#{company},</if>
|
||||
<if test="deptId != null and deptId != ''">#{deptId},</if>
|
||||
<if test="mobile != null and mobile != ''">#{mobile},</if>
|
||||
<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="company != null and company != ''">#{company},</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>
|
||||
@ -273,22 +281,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisCustomerUser" parameterType="EmisCustomerUser">
|
||||
update emis_customer_user
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="code != null and code != ''">code = #{code},</if>
|
||||
<if test="customerCode != null and customerCode != ''">customer_code = #{customerCode},</if>
|
||||
<if test="shortName != null and shortName != ''">short_name = #{shortName},</if>
|
||||
<if test="nameEn != null and nameEn != ''">name_en = #{nameEn},</if>
|
||||
<if test="customerType != null and customerType != ''">customer_type = #{customerType},</if>
|
||||
<if test="deptId != null and deptId != ''">dept_id = #{deptId},</if>
|
||||
<if test="phone != null and phone != ''">phone = #{phone},</if>
|
||||
<if test="customerNameEn != null and customerNameEn != ''">customer_name_en = #{customerNameEn},</if>
|
||||
<if test="customerFullName != null and customerFullName != ''">customer_full_name = #{customerFullName},</if>
|
||||
<if test="customerType != null and customerType != ''">customer_type = #{customerType},</if>
|
||||
<if test="userType != null and userType != ''">user_type = #{userType},</if>
|
||||
<if test="company != null and company != ''">company = #{company},</if>
|
||||
<if test="deptId != null and deptId != ''">dept_id = #{deptId},</if>
|
||||
<if test="mobile != null and mobile != ''">mobile = #{mobile},</if>
|
||||
<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="company != null and company != ''">company = #{company},</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>
|
||||
@ -348,7 +358,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisCustomerUserByIds" parameterType="String">
|
||||
delete from emis_customer_user where id in
|
||||
delete from emis_customer_user where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user