Commit 68b9c9f7 by yuwei

项目初始化

parent 58db346b
...@@ -20,7 +20,7 @@ import java.util.List; ...@@ -20,7 +20,7 @@ import java.util.List;
@Data @Data
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Accessors(chain = true) @Accessors(chain = true)
@TableName(value = "sys_role", resultMap = "BaseResultMap") @TableName("sys_role")
public class RoleEntity extends BaseEntity { public class RoleEntity extends BaseEntity {
private static final long serialVersionUID=1L; private static final long serialVersionUID=1L;
......
...@@ -4,6 +4,8 @@ import cn.datax.common.base.BaseDao; ...@@ -4,6 +4,8 @@ import cn.datax.common.base.BaseDao;
import cn.datax.service.system.api.entity.RoleEntity; import cn.datax.service.system.api.entity.RoleEntity;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import java.io.Serializable;
/** /**
* <p> * <p>
* Mapper 接口 * Mapper 接口
...@@ -15,4 +17,6 @@ import org.apache.ibatis.annotations.Mapper; ...@@ -15,4 +17,6 @@ import org.apache.ibatis.annotations.Mapper;
@Mapper @Mapper
public interface RoleDao extends BaseDao<RoleEntity> { public interface RoleDao extends BaseDao<RoleEntity> {
@Override
RoleEntity selectById(Serializable id);
} }
...@@ -62,4 +62,11 @@ ...@@ -62,4 +62,11 @@
</if> </if>
</select> </select>
<select id="selectById" resultMap="BaseResultMap">
SELECT
<include refid="Base_Column_List"/>
FROM sys_role
WHERE 1 = 1 AND id = #{id}
</select>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment