1234567891011121314151617181920212223242526272829303132333435 |
- <?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.diagbot.mapper.ModuleInfoMapper">
- <!-- 通用查询映射结果 -->
- <resultMap id="BaseResultMap" type="com.diagbot.entity.ModuleInfo">
- <id column="id" property="id" />
- <result column="is_deleted" property="isDeleted" />
- <result column="gmt_create" property="gmtCreate" />
- <result column="gmt_modified" property="gmtModified" />
- <result column="creator" property="creator" />
- <result column="modifier" property="modifier" />
- <result column="name" property="name" />
- <result column="remark" property="remark" />
- </resultMap>
- <delete id="deleteByIds" parameterType="java.util.Map">
- update `icss_module_info`
- set gmt_modified = #{gmtModified}, modifier = #{modifier}, is_deleted = #{delete}
- where is_deleted = 'N'
- and id in
- <foreach item="id" collection="ids" open="(" separator="," close=")" >
- #{id}
- </foreach>
- </delete>
- <select id="getModuleInfoListByType" resultType="com.diagbot.dto.ModuleInfoListDTO">
- SELECT * FROM `icss_module_info` WHERE is_deleted = 'N'
- <if test="type != null and type != ''">
- and type = #{type}
- </if>
- order by gmt_modified desc
- </select>
- </mapper>
|