正在显示
1 个修改的文件
包含
18 行增加
和
18 行删除
| @@ -25,12 +25,12 @@ | @@ -25,12 +25,12 @@ | ||
| 25 | <result column="del_flag" property="delFlag" jdbcType="CHAR" /> | 25 | <result column="del_flag" property="delFlag" jdbcType="CHAR" /> |
| 26 | </resultMap> | 26 | </resultMap> |
| 27 | <sql id="Base_Column_List" > | 27 | <sql id="Base_Column_List" > |
| 28 | - id, company_id, office_id, login_name, password, no, name, email, phone, mobile, | ||
| 29 | - user_type, photo, login_ip, login_date, login_flag, create_by, create_date, update_by, | 28 | + id, company_id, office_id, login_name, password, no, name, email, phone, mobile, |
| 29 | + user_type, photo, login_ip, login_date, login_flag, create_by, create_date, update_by, | ||
| 30 | update_date, remarks, del_flag | 30 | update_date, remarks, del_flag |
| 31 | </sql> | 31 | </sql> |
| 32 | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > | 32 | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > |
| 33 | - select | 33 | + select |
| 34 | <include refid="Base_Column_List" /> | 34 | <include refid="Base_Column_List" /> |
| 35 | from sys_user | 35 | from sys_user |
| 36 | where id = #{id,jdbcType=VARCHAR} | 36 | where id = #{id,jdbcType=VARCHAR} |
| @@ -42,10 +42,10 @@ | @@ -42,10 +42,10 @@ | ||
| 42 | WHERE 1=1 | 42 | WHERE 1=1 |
| 43 | and del_flag= '0' | 43 | and del_flag= '0' |
| 44 | <if test=" loginName != null" > | 44 | <if test=" loginName != null" > |
| 45 | - and login_name = #{loginName,jdbcType=VARCHAR} | 45 | + and login_name like concat('%',#{loginName,jdbcType=VARCHAR},'%') |
| 46 | </if> | 46 | </if> |
| 47 | <if test="name != null" > | 47 | <if test="name != null" > |
| 48 | - and name = #{name,jdbcType=VARCHAR} | 48 | + and name like concat('%',#{name,jdbcType=VARCHAR},'%') |
| 49 | </if> | 49 | </if> |
| 50 | </select> | 50 | </select> |
| 51 | <select id="selectByUsername" resultMap="BaseResultMap" parameterType="java.lang.String" > | 51 | <select id="selectByUsername" resultMap="BaseResultMap" parameterType="java.lang.String" > |
| @@ -61,20 +61,20 @@ | @@ -61,20 +61,20 @@ | ||
| 61 | where id = #{id,jdbcType=VARCHAR} | 61 | where id = #{id,jdbcType=VARCHAR} |
| 62 | </update> | 62 | </update> |
| 63 | <insert id="insert" parameterType="com.tianbo.warehouse.model.KakoUser" > | 63 | <insert id="insert" parameterType="com.tianbo.warehouse.model.KakoUser" > |
| 64 | - insert into sys_user (id, company_id, office_id, | ||
| 65 | - login_name, password, no, | ||
| 66 | - name, email, phone, | ||
| 67 | - mobile, user_type, photo, | ||
| 68 | - login_ip, login_date, login_flag, | ||
| 69 | - create_by, create_date, update_by, | 64 | + insert into sys_user (id, company_id, office_id, |
| 65 | + login_name, password, no, | ||
| 66 | + name, email, phone, | ||
| 67 | + mobile, user_type, photo, | ||
| 68 | + login_ip, login_date, login_flag, | ||
| 69 | + create_by, create_date, update_by, | ||
| 70 | update_date, remarks, del_flag | 70 | update_date, remarks, del_flag |
| 71 | ) | 71 | ) |
| 72 | - values (#{id,jdbcType=VARCHAR}, #{companyId,jdbcType=VARCHAR}, #{officeId,jdbcType=VARCHAR}, | ||
| 73 | - #{loginName,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{no,jdbcType=VARCHAR}, | ||
| 74 | - #{name,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, | ||
| 75 | - #{mobile,jdbcType=VARCHAR}, #{userType,jdbcType=CHAR}, #{photo,jdbcType=VARCHAR}, | ||
| 76 | - #{loginIp,jdbcType=VARCHAR}, #{loginDate,jdbcType=TIMESTAMP}, #{loginFlag,jdbcType=VARCHAR}, | ||
| 77 | - #{createBy,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, | 72 | + values (#{id,jdbcType=VARCHAR}, #{companyId,jdbcType=VARCHAR}, #{officeId,jdbcType=VARCHAR}, |
| 73 | + #{loginName,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{no,jdbcType=VARCHAR}, | ||
| 74 | + #{name,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, | ||
| 75 | + #{mobile,jdbcType=VARCHAR}, #{userType,jdbcType=CHAR}, #{photo,jdbcType=VARCHAR}, | ||
| 76 | + #{loginIp,jdbcType=VARCHAR}, #{loginDate,jdbcType=TIMESTAMP}, #{loginFlag,jdbcType=VARCHAR}, | ||
| 77 | + #{createBy,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, | ||
| 78 | #{updateDate,jdbcType=TIMESTAMP}, #{remarks,jdbcType=VARCHAR}, #{delFlag,jdbcType=CHAR} | 78 | #{updateDate,jdbcType=TIMESTAMP}, #{remarks,jdbcType=VARCHAR}, #{delFlag,jdbcType=CHAR} |
| 79 | ) | 79 | ) |
| 80 | </insert> | 80 | </insert> |
| @@ -308,4 +308,4 @@ | @@ -308,4 +308,4 @@ | ||
| 308 | login_flag = #{loginFlag,jdbcType=VARCHAR} | 308 | login_flag = #{loginFlag,jdbcType=VARCHAR} |
| 309 | where login_name = #{loginName,jdbcType=VARCHAR} | 309 | where login_name = #{loginName,jdbcType=VARCHAR} |
| 310 | </update> | 310 | </update> |
| 311 | -</mapper> | ||
| 311 | +</mapper> |
-
请 注册 或 登录 后发表评论