1234567891011121314151617181920212223242526272829303132 |
- <?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.zhgd.scs.mapper.SaeVrRecordMapper">
- <resultMap id="BaseResultMap" type="com.zhgd.scs.domain.SaeVrRecord">
- <id property="id" column="id" jdbcType="BIGINT"/>
- <result property="type" column="type" jdbcType="INTEGER"/>
- <result property="personId" column="person_id" jdbcType="BIGINT"/>
- <result property="unitName" column="unit_name" jdbcType="VARCHAR"/>
- <result property="personName" column="person_name" jdbcType="VARCHAR"/>
- <result property="eduTime" column="edu_time" jdbcType="TIMESTAMP"/>
- <result property="fileUrl" column="file_url" jdbcType="VARCHAR"/>
- </resultMap>
- <select id="pagelist" resultType="com.zhgd.scs.domain.vo.SaeVrRecordPageVo">
- SELECT r.*
- FROM sae_vr_record r
- LEFT JOIN sys_worker_type wt ON wt.id=r.worker_type_id
- WHERE 1=1
- <if test="type!=null">
- AND r.type = #{type}
- </if>
- <if test="personName!=null and personName!= ''">
- AND r.person_name LIKE concat('%',#{personName},'%')
- </if>
- <if test="startTime!=null and endTime!=null">
- AND r.edu_time BETWEEN #{startTime} AND #{endTime}
- </if>
- </select>
- </mapper>
|