|
@@ -40,6 +40,7 @@
|
|
<resultMap id="queryStockResultMap" type="com.ygj.yuemum.domain.maternitymatron.JlServiceUser">
|
|
<resultMap id="queryStockResultMap" type="com.ygj.yuemum.domain.maternitymatron.JlServiceUser">
|
|
<id column="id" property="id" jdbcType="INTEGER"/>
|
|
<id column="id" property="id" jdbcType="INTEGER"/>
|
|
<result column="truename" property="truename" jdbcType="VARCHAR"/>
|
|
<result column="truename" property="truename" jdbcType="VARCHAR"/>
|
|
|
|
+ <result column="idcard" property="idcard" jdbcType="VARCHAR"/>
|
|
<result column="age" property="age" jdbcType="VARCHAR"/>
|
|
<result column="age" property="age" jdbcType="VARCHAR"/>
|
|
<result column="status" property="status" jdbcType="VARCHAR"/>
|
|
<result column="status" property="status" jdbcType="VARCHAR"/>
|
|
<result column="cityname" property="cityname" jdbcType="VARCHAR"/>
|
|
<result column="cityname" property="cityname" jdbcType="VARCHAR"/>
|
|
@@ -55,7 +56,9 @@
|
|
<result column="height" property="height" jdbcType="VARCHAR"/>
|
|
<result column="height" property="height" jdbcType="VARCHAR"/>
|
|
<result column="marriage" property="marriage" jdbcType="VARCHAR"/>
|
|
<result column="marriage" property="marriage" jdbcType="VARCHAR"/>
|
|
<result column="highlight" property="highlight" jdbcType="VARCHAR"/>
|
|
<result column="highlight" property="highlight" jdbcType="VARCHAR"/>
|
|
-
|
|
|
|
|
|
+ <result column="citycode" property="citycode" jdbcType="VARCHAR"/>
|
|
|
|
+ <result column="weight" property="weight" jdbcType="VARCHAR"/>
|
|
|
|
+ <result column="city" property="city" jdbcType="VARCHAR"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
id, password, truename,mobile_phone,status,last_login_time,last_login_ip,salt,token,zone_code,updated_at,stock_status,usertype
|
|
id, password, truename,mobile_phone,status,last_login_time,last_login_ip,salt,token,zone_code,updated_at,stock_status,usertype
|
|
@@ -78,6 +81,9 @@
|
|
<if test="ids != null and ids != ''">
|
|
<if test="ids != null and ids != ''">
|
|
and jl_service_user.id not in ( #{ids,jdbcType=INTEGER} )
|
|
and jl_service_user.id not in ( #{ids,jdbcType=INTEGER} )
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="id != null and id != ''">
|
|
|
|
+ and jl_service_user.id = #{id,jdbcType=INTEGER}
|
|
|
|
+ </if>
|
|
<if test="truename != null and truename !=''">
|
|
<if test="truename != null and truename !=''">
|
|
and jl_service_user.truename like "%"#{truename,jdbcType=VARCHAR}"%"
|
|
and jl_service_user.truename like "%"#{truename,jdbcType=VARCHAR}"%"
|
|
</if>
|
|
</if>
|
|
@@ -260,14 +266,23 @@
|
|
jl_service_user.id,
|
|
jl_service_user.id,
|
|
jl_service_user.truename,
|
|
jl_service_user.truename,
|
|
jl_service_user_info.constellation,
|
|
jl_service_user_info.constellation,
|
|
|
|
+ jl_service_user_info.idcard,
|
|
year(CURDATE())-substring(jl_service_user_info.idcard,7,4) age,
|
|
year(CURDATE())-substring(jl_service_user_info.idcard,7,4) age,
|
|
jl_service_user_info.zodiac,
|
|
jl_service_user_info.zodiac,
|
|
fgetcityname(CONCAT(substring(jl_service_user_info.idcard,1,4),'00')) np,
|
|
fgetcityname(CONCAT(substring(jl_service_user_info.idcard,1,4),'00')) np,
|
|
city.cityname,
|
|
city.cityname,
|
|
jl_service_user_info.seniority,
|
|
jl_service_user_info.seniority,
|
|
jl_service_user_info.gender,
|
|
jl_service_user_info.gender,
|
|
|
|
+ jl_service_user_info.city,
|
|
jl_service_user.status,
|
|
jl_service_user.status,
|
|
- jl_service_user_info.babynumber
|
|
|
|
|
|
+ jl_service_user_info.babynumber,
|
|
|
|
+ jl_service_user_info.ethnicgroup,
|
|
|
|
+ jl_service_user_info.education,
|
|
|
|
+ jl_service_user_info.height,
|
|
|
|
+ jl_service_user_info.marriage,
|
|
|
|
+ jl_service_user_info.highlight,
|
|
|
|
+ jl_service_user_info.weight,
|
|
|
|
+ city.citycode
|
|
from jl_service_user
|
|
from jl_service_user
|
|
LEFT JOIN jl_service_user_info on jl_service_user.id = jl_service_user_info.id
|
|
LEFT JOIN jl_service_user_info on jl_service_user.id = jl_service_user_info.id
|
|
LEFT JOIN (select service_id,GROUP_CONCAT(jl_region.`name`) cityname,GROUP_CONCAT(store_id) citycode from jl_store_service LEFT JOIN jl_region
|
|
LEFT JOIN (select service_id,GROUP_CONCAT(jl_region.`name`) cityname,GROUP_CONCAT(store_id) citycode from jl_store_service LEFT JOIN jl_region
|
|
@@ -480,5 +495,14 @@
|
|
</set>
|
|
</set>
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</update>
|
|
</update>
|
|
|
|
+ <update id="upDateStatus" parameterType="com.ygj.yuemum.domain.maternitymatron.JlServiceUser">
|
|
|
|
+ update jl_service_user
|
|
|
|
+ <set>
|
|
|
|
+ <if test="status != null">
|
|
|
|
+ status = #{status,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ </set>
|
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
|
+ </update>
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|