<?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.ycl.platform.mapper.ImageResourceSecurityMapper">
|
|
<resultMap type="com.ycl.platform.domain.entity.ImageResourceSecurity" id="ImageResourceSecurityResult">
|
<result property="id" column="id" />
|
<result property="deptId" column="dept_id" />
|
<result property="platformOnline" column="platform_online" />
|
<result property="propertyAccuracy" column="property_accuracy" />
|
<result property="weakPassword" column="weak_password" />
|
<result property="riskProperty" column="risk_property" />
|
<result property="boundaryIntegrity" column="boundary_integrity" />
|
<result property="createTime" column="create_time" />
|
</resultMap>
|
|
<sql id="selectImageResourceSecurityVo">
|
select id, dept_id, platform_online, property_accuracy, weak_password, risk_property, boundary_integrity, create_time from t_image_resource_security
|
</sql>
|
|
<select id="selectImageResourceSecurityList" resultMap="ImageResourceSecurityResult">
|
<include refid="selectImageResourceSecurityVo"/>
|
<where>
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
<if test="platformOnline != null "> and platform_online = #{platformOnline}</if>
|
<if test="propertyAccuracy != null "> and property_accuracy = #{propertyAccuracy}</if>
|
<if test="weakPassword != null "> and weak_password = #{weakPassword}</if>
|
<if test="riskProperty != null "> and risk_property = #{riskProperty}</if>
|
<if test="boundaryIntegrity != null "> and boundary_integrity = #{boundaryIntegrity}</if>
|
</where>
|
</select>
|
|
<select id="selectImageResourceSecurityById" resultMap="ImageResourceSecurityResult">
|
<include refid="selectImageResourceSecurityVo"/>
|
where id = #{id}
|
</select>
|
|
<insert id="insertImageResourceSecurity" useGeneratedKeys="true" keyProperty="id">
|
insert into t_image_resource_security
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="deptId != null">dept_id,</if>
|
<if test="platformOnline != null">platform_online,</if>
|
<if test="propertyAccuracy != null">property_accuracy,</if>
|
<if test="weakPassword != null">weak_password,</if>
|
<if test="riskProperty != null">risk_property,</if>
|
<if test="boundaryIntegrity != null">boundary_integrity,</if>
|
<if test="createTime != null">create_time,</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="deptId != null">#{deptId},</if>
|
<if test="platformOnline != null">#{platformOnline},</if>
|
<if test="propertyAccuracy != null">#{propertyAccuracy},</if>
|
<if test="weakPassword != null">#{weakPassword},</if>
|
<if test="riskProperty != null">#{riskProperty},</if>
|
<if test="boundaryIntegrity != null">#{boundaryIntegrity},</if>
|
<if test="createTime != null">#{createTime},</if>
|
</trim>
|
</insert>
|
|
<update id="updateImageResourceSecurity">
|
update t_image_resource_security
|
<trim prefix="SET" suffixOverrides=",">
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
<if test="platformOnline != null">platform_online = #{platformOnline},</if>
|
<if test="propertyAccuracy != null">property_accuracy = #{propertyAccuracy},</if>
|
<if test="weakPassword != null">weak_password = #{weakPassword},</if>
|
<if test="riskProperty != null">risk_property = #{riskProperty},</if>
|
<if test="boundaryIntegrity != null">boundary_integrity = #{boundaryIntegrity},</if>
|
<if test="createTime != null">create_time = #{createTime},</if>
|
</trim>
|
where id = #{id}
|
</update>
|
|
<delete id="deleteImageResourceSecurityById">
|
delete from t_image_resource_security where id = #{id}
|
</delete>
|
|
<delete id="deleteImageResourceSecurityByIds">
|
delete from t_image_resource_security where id in
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
#{id}
|
</foreach>
|
</delete>
|
</mapper>
|