35 lines
1.6 KiB
XML
35 lines
1.6 KiB
XML
<?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.sercurityControl.proteam.supplement.mapper.RemoteFaceMapper">
|
|
<insert id="addRemoteFace">
|
|
INSERT INTO t_remote_face
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="name != null and name != ''">name,</if>
|
|
<if test="isHg != null">is_hg,</if>
|
|
<if test="path != null and path != ''">path,</if>
|
|
<if test="uploadId != null">upload_id,</if>
|
|
<if test="uploadTime != null">upload_time</if>
|
|
</trim>
|
|
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
|
<if test="name != null and name != ''">#{name},</if>
|
|
<if test="isHg != null">#{isHg},</if>
|
|
<if test="path != null and path != ''">#{path},</if>
|
|
<if test="uploadId != null">#{uploadId},</if>
|
|
<if test="uploadTime != null">#{uploadTime}</if>
|
|
</trim>
|
|
</insert>
|
|
<update id="delRemoteFaceById">
|
|
update t_remote_face
|
|
set is_active = 0
|
|
where id = #{id}
|
|
</update>
|
|
|
|
<select id="getRemoteFaceList" resultType="com.sercurityControl.proteam.supplement.domain.vo.RemoteFaceEntity">
|
|
select id, name, is_hg as isHg, path, upload_id as uploadId, upload_time as uploadTime
|
|
from t_remote_face
|
|
where is_active = 1
|
|
<if test="keyWord != null and keyWord != ''">
|
|
and name like concat('%',#{keyWord},'%')
|
|
</if>
|
|
</select>
|
|
</mapper> |