| | |
| | | </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 |
| | | 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"/> |
| | | <select id="selectImageResourceSecurityList" resultType="com.ycl.platform.domain.entity.ImageResourceSecurity"> |
| | | select id, a.dept_id, dept_name, platform_online, property_accuracy, weak_password, risk_property, boundary_integrity from t_image_resource_security a |
| | | LEFT JOIN sys_dept b ON a.dept_id = b.dept_id AND b.del_flag = 0 |
| | | <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> |
| | | ORDER BY a.create_time DESC |
| | | limit 7 |
| | | </select> |
| | | |
| | | <select id="selectImageResourceSecurityById" resultMap="ImageResourceSecurityResult"> |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <insert id="saveBatch"> |
| | | insert into t_image_resource_security (dept_id, platform_online, property_accuracy, weak_password, risk_property, boundary_integrity, create_time) VALUES |
| | | <foreach collection="list" item="item" separator=","> |
| | | (#{item.deptId}, #{item.platformOnline}, #{item.propertyAccuracy}, #{item.weakPassword}, #{item.riskProperty}, #{item.boundaryIntegrity}, NOW()) |
| | | </foreach> |
| | | </insert> |
| | | |
| | | <update id="updateImageResourceSecurity"> |
| | | update t_image_resource_security |
| | | <trim prefix="SET" suffixOverrides=","> |
| | |
| | | </update> |
| | | |
| | | <delete id="deleteImageResourceSecurityById"> |
| | | delete from t_image_resource_security where id = #{id} |
| | | DELETE |
| | | FROM t_image_resource_security |
| | | WHERE id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteImageResourceSecurityByIds"> |