郑永安
2023-09-19 69185134fcfaf913ea45f1255677225a2cc311a4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?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>