<?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.youbus.springbootdemo.dao.UserMapper" >
<resultMap id="BaseResultMap" type="com.youbus.springbootdemo.pojo.User" >
<constructor >
<idArg column="ID" jdbcType="INTEGER" javaType="java.lang.Integer" />
<arg column="USER_NAME" jdbcType="VARCHAR" javaType="java.lang.String" />
<arg column="PASSWORD" jdbcType="VARCHAR" javaType="java.lang.String" />
<arg column="EMAIL" jdbcType="VARCHAR" javaType="java.lang.String" />
<arg column="PHONE" jdbcType="VARCHAR" javaType="java.lang.String" />
<arg column="QUESTION" jdbcType="VARCHAR" javaType="java.lang.String" />
<arg column="ANSWER" jdbcType="VARCHAR" javaType="java.lang.String" />
<arg column="ROLE" jdbcType="INTEGER" javaType="java.lang.Integer" />
<arg column="IS_DELETE" jdbcType="BIT" javaType="java.lang.Boolean" />
<arg column="CREATE_TIME" jdbcType="TIMESTAMP" javaType="java.util.Date" />
<arg column="CREATE_BY" jdbcType="INTEGER" javaType="java.lang.Integer" />
<arg column="UPDATE_TIME" jdbcType="TIMESTAMP" javaType="java.util.Date" />
<arg column="UPDATE_BY" jdbcType="INTEGER" javaType="java.lang.Integer" />
</constructor>
</resultMap>
<sql id="Base_Column_List" >
ID, USER_NAME, PASSWORD, EMAIL, PHONE, QUESTION, ANSWER, ROLE, IS_DELETE, CREATE_TIME,
CREATE_BY, UPDATE_TIME, UPDATE_BY
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from hw_user
where ID = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from hw_user
where ID = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.youbus.springbootdemo.pojo.User" >
insert into hw_user (ID, USER_NAME, PASSWORD,
EMAIL, PHONE, QUESTION,
ANSWER, ROLE, IS_DELETE,
CREATE_TIME, CREATE_BY, UPDATE_TIME,
UPDATE_BY)
values (#{id,jdbcType=INTEGER}, #{userName,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
#{email,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{question,jdbcType=VARCHAR},
#{answer,jdbcType=VARCHAR}, #{role,jdbcType=INTEGER}, #{isDelete,jdbcType=BIT},
#{createTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.youbus.springbootdemo.pojo.User" >
insert into hw_user
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
ID,
</if>
<if test="userName != null" >
USER_NAME,
</if>
<if test="password != null" >
PASSWORD,
</if>
<if test="email != null" >
EMAIL,
</if>
<if test="phone != null" >
PHONE,
</if>
<if test="question != null" >
QUESTION,
</if>
<if test="answer != null" >
ANSWER,
</if>
<if test="role != null" >
ROLE,
</if>
<if test="isDelete != null" >
IS_DELETE,
</if>
<if test="createTime != null" >
CREATE_TIME,
</if>
<if test="createBy != null" >
CREATE_BY,
</if>
<if test="updateTime != null" >
UPDATE_TIME,
</if>
<if test="updateBy != null" >
UPDATE_BY,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="userName != null" >
#{userName,jdbcType=VARCHAR},
</if>
<if test="password != null" >
#{password,jdbcType=VARCHAR},
</if>
<if test="email != null" >
#{email,jdbcType=VARCHAR},
</if>
<if test="phone != null" >
#{phone,jdbcType=VARCHAR},
</if>
<if test="question != null" >
#{question,jdbcType=VARCHAR},
</if>
<if test="answer != null" >
#{answer,jdbcType=VARCHAR},
</if>
<if test="role != null" >
#{role,jdbcType=INTEGER},
</if>
<if test="isDelete != null" >
#{isDelete,jdbcType=BIT},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null" >
#{createBy,jdbcType=INTEGER},
</if>
<if test="updateTime != null" >
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null" >
#{updateBy,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.youbus.springbootdemo.pojo.User" >
update hw_user
<set >
<if test="userName != null" >
USER_NAME = #{userName,jdbcType=VARCHAR},
</if>
<if test="password != null" >
PASSWORD = #{password,jdbcType=VARCHAR},
</if>
<if test="email != null" >
EMAIL = #{email,jdbcType=VARCHAR},
</if>
<if test="phone != null" >
PHONE = #{phone,jdbcType=VARCHAR},
</if>
<if test="question != null" >
QUESTION = #{question,jdbcType=VARCHAR},
</if>
<if test="answer != null" >
ANSWER = #{answer,jdbcType=VARCHAR},
</if>
<if test="role != null" >
ROLE = #{role,jdbcType=INTEGER},
</if>
<if test="isDelete != null" >
IS_DELETE = #{isDelete,jdbcType=BIT},
</if>
<if test="createTime != null" >
CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="createBy != null" >
CREATE_BY = #{createBy,jdbcType=INTEGER},
</if>
<if test="updateTime != null" >
UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null" >
UPDATE_BY = #{updateBy,jdbcType=INTEGER},
</if>
</set>
where ID = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.youbus.springbootdemo.pojo.User" >
update hw_user
set USER_NAME = #{userName,jdbcType=VARCHAR},
PASSWORD = #{password,jdbcType=VARCHAR},
EMAIL = #{email,jdbcType=VARCHAR},
PHONE = #{phone,jdbcType=VARCHAR},
QUESTION = #{question,jdbcType=VARCHAR},
ANSWER = #{answer,jdbcType=VARCHAR},
ROLE = #{role,jdbcType=INTEGER},
IS_DELETE = #{isDelete,jdbcType=BIT},
CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
CREATE_BY = #{createBy,jdbcType=INTEGER},
UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
UPDATE_BY = #{updateBy,jdbcType=INTEGER}
where ID = #{id,jdbcType=INTEGER}
</update>
</mapper>
没有合适的资源?快使用搜索试试~ 我知道了~
springboot项目demo

共73个文件
jar:44个
class:18个
xml:4个


温馨提示
承接我的上一篇博客《springboot项目部署到tomcat容器》,这是完整的demo代码,包括pom文件中依赖的引入,mybatis的配置,日志的配置,mybatis自动生成代码的配置,部署到tomcat的配置。 还有各种接口返回:String对象,单个对象,多个不同对象,List对象的返回。非常全面
资源推荐
资源详情
资源评论













收起资源包目录




























































































共 73 条
- 1
资源评论

- qq_255896972019-05-17看了评论之后 我还不相信的 买下来下载...结果 真的浪费积分 无奈......这LZ 真的很坑.. 实体类连 get set 都没有 log 报错. 处理完成之后 项目也根本启动不了 ..并且分析代码 也没什么值得学习的 都运行不起来.... 不知道哪里有错误 奉劝各位还是不要入坑下载 浪费....日月星辰ACE2019-05-18下载过感觉好用的同学,麻烦给个好评吧,这是我的心血啊。日月星辰ACE2019-05-18log 是使用的 lombok 中的 @Slf4j 这个注解,麻烦同学再看一下。idea中安装lombok插件即可使用。pom文件中已引入。日月星辰ACE2019-05-18同学,lombok插件了解一下,看到上边的 @Data 注解没,这就是 lombok 注解中的一种,不需要 get set 方法,lombok主要就是简化代码,idea中使用lombok需要安装插件,这个网上有很多教程,然后pom问加你中引入一下就好了,我这个代码的pom文件中有的,不用更改。
- qq_282052332019-04-08这个文件真不错日月星辰ACE2019-04-12还有没有之前下载过感觉好用的同学,帮我给个好评啊,我的心血啊,被人给抹黑了。日月星辰ACE2019-04-12谢谢您的夸赞。
- 编程求索人2019-01-16真的用不了,不要这样坑人,tomcat启动报错日月星辰ACE2019-02-27下载过感觉好用的同学,出来给我评价一下啊,这俩人是过来捣乱的吧,这是我的心血啊。日月星辰ACE2019-01-17是不是环境没搭好?日月星辰ACE2019-01-17报什么错,我给你解决。
- 我是刀客19852018-11-12浪费我的积分,各种错误。日月星辰ACE2019-02-27下载过感觉好用的同学,出来给我评价一下啊,这俩人是过来捣乱的吧,这是我的心血啊。日月星辰ACE2019-01-17是不是环境没搭好?日月星辰ACE2019-01-17报什么错,我给你解决

日月星辰ACE
- 粉丝: 8
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 信息化背景下企业财务管理对策分析(1).docx
- 自考电子商务网站设计原理复习资料(1).doc
- 大数据时代物流管理企业的机遇与挑战研究(1).docx
- 自动化系统分部电气设备分部工程监理实施细则(1).doc
- 【推荐】日常财务软件使用心得(1)(1).doc
- 苏宁易购电子商务模式分析案例分析(1).pptx
- 互联网时代现代农产品流通问题成因分析(1).docx
- 毕业设计(论文)-基于PLC的包装码垛机的控制系统设计(1).doc
- 互联网经济对高中生的影响及应对(1).docx
- 计算机科学技术在计算机教育中的应用(2)(1).docx
- 浅谈大数据信息技术在档案管理中的应用(1).docx
- 高职院校图书馆数据库建设的探索与思考(1).docx
- 初中计算机教学中激发听障学生学习兴趣的策略(1).docx
- 分析数字档案在档案信息化建设中的重要性(1).docx
- 初中生物信息化教学探究(1)(1).docx
- 2017年事业单位计算机考试真题及答案(1).doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
