jl-jjsp-service/securityControl-modules/securityControl-proteam/target/classes/mapper/supplement/RectificationPunishmentMapp...

43 lines
1.9 KiB
XML
Raw Permalink Normal View History

2025-09-24 11:10:04 +08:00
<?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.RectificationPunishmentMapper">
<insert id="addRemoteFace">
INSERT INTO t_rectification_punishment
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null and name != ''">name,</if>
<if test="type != null">type,</if>
<if test="regulationsPath != null and regulationsPath != ''">regulationsPath,</if>
<if test="punishmentPath != null and punishmentPath != ''">punishmentPath,</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="type != null">#{type},</if>
<if test="regulationsPath != null and regulationsPath != ''">#{regulationsPath},</if>
<if test="punishmentPath != null and punishmentPath != ''">#{punishmentPath},</if>
<if test="uploadId != null">#{uploadId},</if>
<if test="uploadTime != null">#{uploadTime}</if>
</trim>
</insert>
<update id="delRemoteFaceById">
update t_rectification_punishment
set is_active = 0
where id = #{id}
</update>
<select id="getRectificationPunishmentList" resultType="com.sercurityControl.proteam.supplement.domain.vo.RectificationPunishmentEntity">
select id,
name,
type,
regulationsPath,
punishmentPath,
upload_id AS uploadId,
upload_time AS uploadTime
from t_rectification_punishment
where is_active = 1
<if test="keyWord != null and keyWord != ''">
and name like concat('%',#{keyWord},'%')
</if>
</select>
</mapper>