<?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.gk.hotwork.Mapper.WorkCertInfoMapper" >
|
<resultMap id="BaseResultMap" type="com.gk.hotwork.Domain.WorkCertInfo" >
|
<!-- -->
|
<id column="id" property="id" jdbcType="BIGINT" />
|
<result column="realname" property="realname" jdbcType="VARCHAR" />
|
<result column="mobile" property="mobile" jdbcType="VARCHAR" />
|
<result column="idcard" property="idcard" jdbcType="VARCHAR" />
|
<result column="certname" property="certname" jdbcType="VARCHAR" />
|
<result column="certpath" property="certpath" jdbcType="VARCHAR" />
|
<result column="starttime" property="starttime" jdbcType="TIMESTAMP" />
|
<result column="endtime" property="endtime" jdbcType="TIMESTAMP" />
|
<result column="createby" property="createby" jdbcType="VARCHAR" />
|
<result column="createtime" property="createtime" jdbcType="TIMESTAMP" />
|
<result column="isdel" property="isdel" jdbcType="TINYINT" />
|
<result column="branch" property="branch" jdbcType="VARCHAR" />
|
<result column="ishealth" property="ishealth" jdbcType="TINYINT" />
|
</resultMap>
|
<sql id="Base_Column_List" >
|
<!-- -->
|
id, realname, mobile, idcard, certname, certpath, starttime, endtime, createby, createtime,
|
isdel, branch, ishealth
|
</sql>
|
<select id="selectByMobile" resultType="com.gk.hotwork.Domain.WorkCertInfo">
|
select *
|
from workcert
|
where isdel = 0
|
and mobile = #{mobile}
|
order by createtime desc
|
</select>
|
|
</mapper>
|