forked from rongchao/epmet-cloud-rizhao
				
			
				 4 changed files with 79 additions and 3 deletions
			
			
		@ -0,0 +1,16 @@ | 
				
			|||
package com.epmet.dao; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.mybatis.dao.BaseDao; | 
				
			|||
import com.epmet.entity.UserCustomerEntity; | 
				
			|||
import org.apache.ibatis.annotations.Mapper; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Description 客户用户关系表 | 
				
			|||
 * @IntefaceName UserCustomerDao | 
				
			|||
 * @Author wangc | 
				
			|||
 * @date 2020.03.31 13:53 | 
				
			|||
 */ | 
				
			|||
@Mapper | 
				
			|||
public interface UserCustomerDao extends BaseDao<UserCustomerEntity>{ | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,31 @@ | 
				
			|||
package com.epmet.entity; | 
				
			|||
 | 
				
			|||
import com.baomidou.mybatisplus.annotation.TableName; | 
				
			|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; | 
				
			|||
import lombok.Data; | 
				
			|||
import lombok.EqualsAndHashCode; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Description | 
				
			|||
 * @ClassName UserCustomerEntity | 
				
			|||
 * @Author wangc | 
				
			|||
 * @date 2020.03.31 13:54 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
@EqualsAndHashCode(callSuper=false) | 
				
			|||
@TableName("user_customer") | 
				
			|||
public class UserCustomerEntity extends BaseEpmetEntity { | 
				
			|||
 | 
				
			|||
    private static final long serialVersionUID = 1L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 客户Id | 
				
			|||
     * */ | 
				
			|||
    private String customerId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 用户Id | 
				
			|||
     * */ | 
				
			|||
    private String userId; | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,20 @@ | 
				
			|||
<?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"> | 
				
			|||
 | 
				
			|||
<mapper namespace="com.epmet.dao.UserCustomerDao"> | 
				
			|||
 | 
				
			|||
 | 
				
			|||
    <resultMap type="com.epmet.entity.UserCustomerEntity" id="userCustomerMap"> | 
				
			|||
        <result property="id" column="ID"/> | 
				
			|||
        <result property="app" column="APP"/> | 
				
			|||
        <result property="roleName" column="ROLE_NAME"/> | 
				
			|||
        <result property="roleKey" column="ROLE_KEY"/> | 
				
			|||
        <result property="delFlag" column="DEL_FLAG"/> | 
				
			|||
        <result property="revision" column="REVISION"/> | 
				
			|||
        <result property="createdBy" column="CREATED_BY"/> | 
				
			|||
        <result property="createdTime" column="CREATED_TIME"/> | 
				
			|||
        <result property="updatedBy" column="UPDATED_BY"/> | 
				
			|||
        <result property="updatedTime" column="UPDATED_TIME"/> | 
				
			|||
    </resultMap> | 
				
			|||
 | 
				
			|||
</mapper> | 
				
			|||
					Loading…
					
					
				
		Reference in new issue