| | |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ycl.platform.mapper.CheckIndexVideoMapper"> |
| | | |
| | | |
| | | <resultMap type="com.ycl.platform.domain.entity.CheckIndexVideo" id="CheckIndexVideoResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="deptId" column="dept_id" /> |
| | |
| | | <select id="selectCheckIndexVideoList" parameterType="CheckIndexVideo" resultMap="CheckIndexVideoResult"> |
| | | select tciv.*,sd.dept_name |
| | | from t_check_index_video tciv left join sys_dept sd on tciv.dept_id = sd.dept_id |
| | | <where> |
| | | <where> |
| | | <if test="deptId != null "> and tciv.dept_id = #{deptId}</if> |
| | | <if test="examineTag != null "> and examine_tag = #{examineTag}</if> |
| | | <if test="date != null "> and date_format(tciv.create_time,'%Y-%m') = #{date}</if> |
| | |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | <select id="selectCheckIndexVideoById" resultMap="CheckIndexVideoResult"> |
| | | <include refid="selectCheckIndexVideoVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | |
| | | <insert id="insertCheckIndexVideo" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_check_index_video |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | |
| | | </delete> |
| | | |
| | | <delete id="deleteCheckIndexVideoByIds" > |
| | | delete from t_check_index_video where id in |
| | | delete from t_check_index_video where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | | |
| | | <select id="selectToday"> |
| | | select * from t_check_index_video where DATE(create_time) = #{today} |
| | | </select> |
| | | </mapper> |