新增美颜&线索基本信息修改相关接口
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
<?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.cool.store.mapper.BeautyCameraSettingMapper">
|
||||
<resultMap id="BaseResultMap" type="com.cool.store.entity.BeautyCameraSettingDO">
|
||||
<id column="id" jdbcType="BIGINT" property="id"/>
|
||||
<result column="user_id" jdbcType="VARCHAR" property="userId"/>
|
||||
<result column="beauty_status" jdbcType="BIT" property="beautyStatus"/>
|
||||
<result column="beauty" jdbcType="INTEGER" property="beauty"/>
|
||||
<result column="brightness" jdbcType="INTEGER" property="brightness"/>
|
||||
<result column="ruddy" jdbcType="INTEGER" property="ruddy"/>
|
||||
<result column="deleted" jdbcType="BIT" property="deleted"/>
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, user_id, beauty_status, beauty, brightness, ruddy, deleted, create_time, update_time
|
||||
</sql>
|
||||
|
||||
<insert id="insertOrUpdateBeautyCameraSetting" keyColumn="id" keyProperty="record.id" useGeneratedKeys="true">
|
||||
insert into beauty_camera_setting
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="record.userId != null">
|
||||
user_id,
|
||||
</if>
|
||||
<if test="record.beautyStatus != null">
|
||||
beauty_status,
|
||||
</if>
|
||||
<if test="record.beauty != null">
|
||||
beauty,
|
||||
</if>
|
||||
<if test="record.brightness != null">
|
||||
brightness,
|
||||
</if>
|
||||
<if test="record.ruddy != null">
|
||||
ruddy,
|
||||
</if>
|
||||
<if test="record.deleted != null">
|
||||
deleted,
|
||||
</if>
|
||||
<if test="record.createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="record.updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="record.userId != null">
|
||||
#{record.userId},
|
||||
</if>
|
||||
<if test="record.beautyStatus != null">
|
||||
#{record.beautyStatus},
|
||||
</if>
|
||||
<if test="record.beauty != null">
|
||||
#{record.beauty},
|
||||
</if>
|
||||
<if test="record.brightness != null">
|
||||
#{record.brightness},
|
||||
</if>
|
||||
<if test="record.ruddy != null">
|
||||
#{record.ruddy},
|
||||
</if>
|
||||
<if test="record.deleted != null">
|
||||
#{record.deleted},
|
||||
</if>
|
||||
<if test="record.createTime != null">
|
||||
#{record.createTime},
|
||||
</if>
|
||||
<if test="record.updateTime != null">
|
||||
#{record.updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
ON DUPLICATE KEY UPDATE beauty_status = values(beauty_status), beauty = values(beauty), brightness = values(brightness), ruddy = values(ruddy)
|
||||
</insert>
|
||||
|
||||
<select id="getBeautyCameraSetting" resultMap="BaseResultMap">
|
||||
select <include refid="Base_Column_List"/> from beauty_camera_setting where user_id = #{userId} and deleted = 0
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user