正在显示
1 个修改的文件
包含
5 行增加
和
2 行删除
| @@ -18,9 +18,12 @@ | @@ -18,9 +18,12 @@ | ||
| 18 | <result column="age" property="age" jdbcType="INTEGER" /> | 18 | <result column="age" property="age" jdbcType="INTEGER" /> |
| 19 | </resultMap> | 19 | </resultMap> |
| 20 | <sql id="Base_Column_List" > | 20 | <sql id="Base_Column_List" > |
| 21 | - user_id, username, birthday, sex, address, state, mobilePhone, creatTime, | 21 | + user_id, username, password, birthday, sex, address, state, mobilePhone, creatTime, |
| 22 | updateTime, userFace, realName, email, age | 22 | updateTime, userFace, realName, email, age |
| 23 | </sql> | 23 | </sql> |
| 24 | + <sql id="user_List" > | ||
| 25 | + user_id, username, birthday, sex, address, state, mobilePhone,userFace, realName, email, age | ||
| 26 | + </sql> | ||
| 24 | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" > | 27 | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" > |
| 25 | select | 28 | select |
| 26 | <include refid="Base_Column_List" /> | 29 | <include refid="Base_Column_List" /> |
| @@ -35,7 +38,7 @@ | @@ -35,7 +38,7 @@ | ||
| 35 | </select> | 38 | </select> |
| 36 | <select id="selectAllUser" resultMap="BaseResultMap" > | 39 | <select id="selectAllUser" resultMap="BaseResultMap" > |
| 37 | select | 40 | select |
| 38 | - <include refid="Base_Column_List" /> | 41 | + <include refid="user_List" /> |
| 39 | from USERS | 42 | from USERS |
| 40 | </select> | 43 | </select> |
| 41 | <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" > | 44 | <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" > |
-
请 注册 或 登录 后发表评论