|
@@ -0,0 +1,201 @@
|
|
|
+<?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="mobile_phone" property="mobile_phone" jdbcType="VARCHAR" />
|
|
|
+ <result column="idcard" property="idcard" jdbcType="VARCHAR" />
|
|
|
+ <result column="gender" property="gender" jdbcType="INTEGER" />
|
|
|
+ <result column="create_time" property="create_time" jdbcType="DATE" />
|
|
|
+ <result column="birthday" property="birthday" jdbcType="DATE" />
|
|
|
+ <result column="address" property="address" jdbcType="VARCHAR" />
|
|
|
+ <result column="province" property="province" jdbcType="INTEGER" />
|
|
|
+ <result column="city" property="city" jdbcType="INTEGER" />
|
|
|
+ <result column="district" property="district" jdbcType="INTEGER" />
|
|
|
+ <result column="experience" property="experience" 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
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <!-- 得到所有的月嫂信息 -->
|
|
|
+ <select id="getAll" resultMap="BaseResultMap" >
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from jl_service_user_info
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <!-- 根据id查找某个月嫂信息 -->
|
|
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from jl_service_user_info
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </select>
|
|
|
+ <!-- 根据id删除某个月嫂信息 -->
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
+ delete from jl_service_user_info
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <!-- 插入一条月嫂信息 -->
|
|
|
+ <insert id="insertSelective" parameterType="com.ygj.yuemum.domain.maternitymatron.JlServiceUserInfo" >
|
|
|
+ insert into jl_service_user_info
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="mobile_phone != null" >
|
|
|
+ mobile_phone,
|
|
|
+ </if>
|
|
|
+ <if test="idcard != null" >
|
|
|
+ idcard,
|
|
|
+ </if>
|
|
|
+ <if test="gender != null" >
|
|
|
+ gender,
|
|
|
+ </if>
|
|
|
+ <if test="create_time != null" >
|
|
|
+ create_time,
|
|
|
+ </if>
|
|
|
+ <if test="birthday != null" >
|
|
|
+ birthday,
|
|
|
+ </if>
|
|
|
+ <if test="address != null" >
|
|
|
+ address,
|
|
|
+ </if>
|
|
|
+ <if test="province != null" >
|
|
|
+ province,
|
|
|
+ </if>
|
|
|
+ <if test="city != null" >
|
|
|
+ city,
|
|
|
+ </if>
|
|
|
+ <if test="district != null" >
|
|
|
+ district,
|
|
|
+ </if>
|
|
|
+ <if test="experience != null" >
|
|
|
+ experience,
|
|
|
+ </if>
|
|
|
+ <if test="babynumber != null" >
|
|
|
+ babynumber,
|
|
|
+ </if>
|
|
|
+ <if test="constellation != null" >
|
|
|
+ constellation,
|
|
|
+ </if>
|
|
|
+ <if test="zodiac != null" >
|
|
|
+ zodiac,
|
|
|
+ </if>
|
|
|
+ <if test="update_uid != null" >
|
|
|
+ update_uid,
|
|
|
+ </if>
|
|
|
+ <if test="updated_at != null" >
|
|
|
+ updated_at,
|
|
|
+ </if>
|
|
|
+
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="mobile_phone != null" >
|
|
|
+ #{mobile_phone,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="idcard != null" >
|
|
|
+ #{idcard,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="gender != null" >
|
|
|
+ #{gender,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="create_time != null" >
|
|
|
+ #{create_time,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="birthday != null" >
|
|
|
+ #{birthday,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="address != null" >
|
|
|
+ #{address,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="province != null" >
|
|
|
+ #{province,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="city != null" >
|
|
|
+ #{city,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="district != null" >
|
|
|
+ #{district,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="experience != null" >
|
|
|
+ #{experience,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="babynumber != null" >
|
|
|
+ #{babynumber,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="constellation != null" >
|
|
|
+ #{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},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <!-- 根据id更新一条月嫂信息 -->
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.ygj.yuemum.domain.maternitymatron.JlServiceUserInfo" >
|
|
|
+ update jl_service_user_info
|
|
|
+ <set >
|
|
|
+ <if test="mobile_phone != null" >
|
|
|
+ mobile_phone = #{mobile_phone,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="idcard != null" >
|
|
|
+ idcard = #{idcard,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="gender != null" >
|
|
|
+ gender = #{gender,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="create_time != null" >
|
|
|
+ create_time = #{create_time,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="birthday != null" >
|
|
|
+ birthday = #{birthday,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="address != null" >
|
|
|
+ address = #{address,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="province != null" >
|
|
|
+ province = #{province,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="city != null" >
|
|
|
+ city = #{city,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="district != null" >
|
|
|
+ district = #{district,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="experience != null" >
|
|
|
+ experience = #{experience,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="babynumber != null" >
|
|
|
+ babynumber = #{babynumber,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="constellation != null" >
|
|
|
+ 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},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+
|
|
|
+</mapper>
|