|
@@ -1,28 +1,39 @@
|
|
|
<?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.ygj.yuemum.dao.maternitymatron.JlServiceUserInfoDao" >
|
|
|
-
|
|
|
<resultMap id="BaseResultMap" type="com.ygj.yuemum.domain.maternitymatron.JlServiceUserInfo" >
|
|
|
<id column="id" property="id" jdbcType="INTEGER" />
|
|
|
+ <result column="truename" property="truename" jdbcType="VARCHAR" />
|
|
|
<result column="mobile_phone" property="mobile_phone" jdbcType="VARCHAR" />
|
|
|
- <result column="idcard" property="idcard" jdbcType="VARCHAR" />
|
|
|
- <result column="gender" property="gender" jdbcType="INTEGER" />
|
|
|
+ <result column="level" property="level" jdbcType="INTEGER" />
|
|
|
+ <result column="is_fulltime" property="is_fulltime" jdbcType="INTEGER" />
|
|
|
+ <result column="total_score" property="total_score" jdbcType="INTEGER" />
|
|
|
+ <result column="email" property="email" jdbcType="VARCHAR" />
|
|
|
+ <result column="tel" property="tel" jdbcType="VARCHAR" />
|
|
|
<result column="create_time" property="create_time" jdbcType="DATE" />
|
|
|
+ <result column="gender" property="gender" jdbcType="INTEGER" />
|
|
|
+ <result column="portrait" property="portrait" jdbcType="VARCHAR" />
|
|
|
<result column="birthday" property="birthday" jdbcType="DATE" />
|
|
|
+ <result column="qq" property="qq" jdbcType="VARCHAR" />
|
|
|
+ <result column="update_time" property="update_time" jdbcType="DATE" />
|
|
|
<result column="address" property="address" jdbcType="VARCHAR" />
|
|
|
- <result column="province" property="province" jdbcType="INTEGER" />
|
|
|
+ <result column="brief" property="brief" jdbcType="VARCHAR" />
|
|
|
+ <result column="idcard" property="idcard" jdbcType="VARCHAR" />
|
|
|
+ <result column="education" property="education" jdbcType="VARCHAR" />
|
|
|
<result column="city" property="city" jdbcType="INTEGER" />
|
|
|
<result column="district" property="district" jdbcType="INTEGER" />
|
|
|
- <result column="experience" property="experience" jdbcType="VARCHAR" />
|
|
|
+ <result column="service_number" property="service_number" jdbcType="VARCHAR" />
|
|
|
+ <result column="province" property="province" jdbcType="INTEGER" />
|
|
|
+ <result column="update_uid" property="update_uid" jdbcType="INTEGER" />
|
|
|
+ <result column="updated_at" property="updated_at" jdbcType="DATE" />
|
|
|
+ <result column="seniority" property="seniority" jdbcType="VARCHAR" />
|
|
|
<result column="babynumber" property="babynumber" jdbcType="VARCHAR" />
|
|
|
<result column="constellation" property="constellation" jdbcType="VARCHAR" />
|
|
|
<result column="zodiac" property="zodiac" jdbcType="VARCHAR" />
|
|
|
- <result column="update_uid" property="update_uid" jdbcType="INTEGER" />
|
|
|
- <result column="updated_at" property="updated_at" jdbcType="DATE" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List" >
|
|
|
- id, mobile_phone, idcard,gender,create_time,birthday,address,province,city,district,experience,babynumber,constellation,zodiac,update_uid,updated_at
|
|
|
+ id,truename,mobile_phone,level,is_fulltime,total_score,email,tel,create_time,gender,portrait,birthday,qq,update_time,address,brief,idcard,education,city,district,service_number,province,update_uid,updated_at,seniority,babynumber,constellation,zodiac
|
|
|
</sql>
|
|
|
|
|
|
<!-- 得到所有的月嫂信息 -->
|
|
@@ -49,26 +60,59 @@
|
|
|
<insert id="insertSelective" parameterType="com.ygj.yuemum.domain.maternitymatron.JlServiceUserInfo" >
|
|
|
insert into jl_service_user_info
|
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="id != null" >
|
|
|
+ id,
|
|
|
+ </if>
|
|
|
+ <if test="truename != null" >
|
|
|
+ truename,
|
|
|
+ </if>
|
|
|
<if test="mobile_phone != null" >
|
|
|
mobile_phone,
|
|
|
</if>
|
|
|
- <if test="idcard != null" >
|
|
|
- idcard,
|
|
|
+ <if test="level != null" >
|
|
|
+ level,
|
|
|
</if>
|
|
|
- <if test="gender != null" >
|
|
|
- gender,
|
|
|
+ <if test="is_fulltime != null" >
|
|
|
+ is_fulltime,
|
|
|
+ </if>
|
|
|
+ <if test="total_score != null" >
|
|
|
+ total_score,
|
|
|
+ </if>
|
|
|
+ <if test="email != null" >
|
|
|
+ email,
|
|
|
+ </if>
|
|
|
+ <if test="tel != null" >
|
|
|
+ tel,
|
|
|
</if>
|
|
|
<if test="create_time != null" >
|
|
|
create_time,
|
|
|
</if>
|
|
|
+ <if test="gender != null" >
|
|
|
+ gender,
|
|
|
+ </if>
|
|
|
+ <if test="portrait != null" >
|
|
|
+ portrait,
|
|
|
+ </if>
|
|
|
<if test="birthday != null" >
|
|
|
birthday,
|
|
|
</if>
|
|
|
+ <if test="qq != null" >
|
|
|
+ qq,
|
|
|
+ </if>
|
|
|
+ <if test="update_time != null" >
|
|
|
+ update_time,
|
|
|
+ </if>
|
|
|
<if test="address != null" >
|
|
|
address,
|
|
|
</if>
|
|
|
- <if test="province != null" >
|
|
|
- province,
|
|
|
+ <if test="brief != null" >
|
|
|
+ brief,
|
|
|
+ </if>
|
|
|
+ <if test="idcard != null" >
|
|
|
+ idcard,
|
|
|
+ </if>
|
|
|
+ <if test="education != null" >
|
|
|
+ education,
|
|
|
</if>
|
|
|
<if test="city != null" >
|
|
|
city,
|
|
@@ -76,8 +120,20 @@
|
|
|
<if test="district != null" >
|
|
|
district,
|
|
|
</if>
|
|
|
- <if test="experience != null" >
|
|
|
- experience,
|
|
|
+ <if test="service_number != null" >
|
|
|
+ service_number,
|
|
|
+ </if>
|
|
|
+ <if test="province != null" >
|
|
|
+ province,
|
|
|
+ </if>
|
|
|
+ <if test="update_uid != null" >
|
|
|
+ update_uid,
|
|
|
+ </if>
|
|
|
+ <if test="updated_at != null" >
|
|
|
+ updated_at,
|
|
|
+ </if>
|
|
|
+ <if test="seniority != null" >
|
|
|
+ seniority,
|
|
|
</if>
|
|
|
<if test="babynumber != null" >
|
|
|
babynumber,
|
|
@@ -86,37 +142,63 @@
|
|
|
constellation,
|
|
|
</if>
|
|
|
<if test="zodiac != null" >
|
|
|
- zodiac,
|
|
|
- </if>
|
|
|
- <if test="update_uid != null" >
|
|
|
- update_uid,
|
|
|
- </if>
|
|
|
- <if test="updated_at != null" >
|
|
|
- updated_at,
|
|
|
+ zodiac
|
|
|
</if>
|
|
|
-
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="id != null" >
|
|
|
+ #{id,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="truename != null" >
|
|
|
+ #{truename,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="mobile_phone != null" >
|
|
|
#{mobile_phone,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="idcard != null" >
|
|
|
- #{idcard,jdbcType=VARCHAR},
|
|
|
+ <if test="level != null" >
|
|
|
+ #{level,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="gender != null" >
|
|
|
- #{gender,jdbcType=INTEGER},
|
|
|
+ <if test="is_fulltime != null" >
|
|
|
+ #{is_fulltime,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="total_score != null" >
|
|
|
+ #{total_score,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="email != null" >
|
|
|
+ #{email,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="tel != null" >
|
|
|
+ #{tel,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="create_time != null" >
|
|
|
#{create_time,jdbcType=DATE},
|
|
|
</if>
|
|
|
+ <if test="gender != null" >
|
|
|
+ #{gender,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="portrait != null" >
|
|
|
+ #{portrait,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="birthday != null" >
|
|
|
#{birthday,jdbcType=DATE},
|
|
|
</if>
|
|
|
+ <if test="qq != null" >
|
|
|
+ #{qq,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="update_time != null" >
|
|
|
+ #{update_time,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
<if test="address != null" >
|
|
|
#{address,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="province != null" >
|
|
|
- #{province,jdbcType=INTEGER},
|
|
|
+ <if test="brief != null" >
|
|
|
+ #{brief,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="idcard != null" >
|
|
|
+ #{idcard,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="education != null" >
|
|
|
+ #{education,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="city != null" >
|
|
|
#{city,jdbcType=INTEGER},
|
|
@@ -124,8 +206,20 @@
|
|
|
<if test="district != null" >
|
|
|
#{district,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="experience != null" >
|
|
|
- #{experience,jdbcType=VARCHAR},
|
|
|
+ <if test="service_number != null" >
|
|
|
+ #{service_number,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="province != null" >
|
|
|
+ #{province,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="update_uid != null" >
|
|
|
+ #{update_uid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="updated_at != null" >
|
|
|
+ #{updated_at,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="seniority != null" >
|
|
|
+ #{seniority,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="babynumber != null" >
|
|
|
#{babynumber,jdbcType=VARCHAR},
|
|
@@ -134,41 +228,64 @@
|
|
|
#{constellation,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="zodiac != null" >
|
|
|
- #{zodiac,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="update_uid != null" >
|
|
|
- #{update_uid,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="updated_at != null" >
|
|
|
- #{updated_at,jdbcType=DATAE},
|
|
|
+ #{zodiac,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
-
|
|
|
<!-- 根据id更新一条月嫂信息 -->
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.ygj.yuemum.domain.maternitymatron.JlServiceUserInfo" >
|
|
|
update jl_service_user_info
|
|
|
<set >
|
|
|
+ <if test="truename != null" >
|
|
|
+ truename = #{truename,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="mobile_phone != null" >
|
|
|
mobile_phone = #{mobile_phone,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="idcard != null" >
|
|
|
- idcard = #{idcard,jdbcType=VARCHAR},
|
|
|
+ <if test="level != null" >
|
|
|
+ level = #{level,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="gender != null" >
|
|
|
- gender = #{gender,jdbcType=INTEGER},
|
|
|
+ <if test="is_fulltime != null" >
|
|
|
+ is_fulltime = #{is_fulltime,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="total_score != null" >
|
|
|
+ total_score = #{total_score,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="email != null" >
|
|
|
+ email = #{email,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="tel != null" >
|
|
|
+ tel = #{tel,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="create_time != null" >
|
|
|
create_time = #{create_time,jdbcType=DATE},
|
|
|
</if>
|
|
|
+ <if test="gender != null" >
|
|
|
+ gender = #{gender,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="portrait != null" >
|
|
|
+ portrait = #{portrait,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="birthday != null" >
|
|
|
birthday = #{birthday,jdbcType=DATE},
|
|
|
</if>
|
|
|
+ <if test="qq != null" >
|
|
|
+ qq = #{qq,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="update_time != null" >
|
|
|
+ update_time = #{update_time,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
<if test="address != null" >
|
|
|
address = #{address,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="province != null" >
|
|
|
- province = #{province,jdbcType=INTEGER},
|
|
|
+ <if test="brief != null" >
|
|
|
+ brief = #{brief,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="idcard != null" >
|
|
|
+ idcard = #{idcard,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="education != null" >
|
|
|
+ education = #{education,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="city != null" >
|
|
|
city = #{city,jdbcType=INTEGER},
|
|
@@ -176,8 +293,20 @@
|
|
|
<if test="district != null" >
|
|
|
district = #{district,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="experience != null" >
|
|
|
- experience = #{experience,jdbcType=VARCHAR},
|
|
|
+ <if test="service_number != null" >
|
|
|
+ service_number = #{service_number,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="province != null" >
|
|
|
+ province = #{province,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="update_uid != null" >
|
|
|
+ update_uid = #{update_uid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="updated_at != null" >
|
|
|
+ updated_at = #{updated_at,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="seniority != null" >
|
|
|
+ seniority = #{seniority,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="babynumber != null" >
|
|
|
babynumber = #{babynumber,jdbcType=VARCHAR},
|
|
@@ -186,13 +315,7 @@
|
|
|
constellation = #{constellation,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="zodiac != null" >
|
|
|
- zodiac = #{zodiac,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="update_uid != null" >
|
|
|
- update_uid = #{update_uid,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="updated_at != null" >
|
|
|
- updated_at = #{updated_at,jdbcType=DATE},
|
|
|
+ zodiac = #{zodiac,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|