郑永安
2023-06-19 f65443d8abeaedc9d102324565e8368e7c9d90c8
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
<?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.firework.Mapper.AuthorizationInfoMapper" >
  <resultMap id="BaseResultMap" type="com.gk.firework.Domain.AuthorizationInfo" >
    <!--          -->
    <id column="id" property="id" jdbcType="BIGINT" />
    <result column="enterprisenumber" property="enterprisenumber" jdbcType="VARCHAR" />
    <result column="authcode" property="authcode" jdbcType="VARCHAR" />
    <result column="authcodeprefix" property="authcodeprefix" jdbcType="VARCHAR" />
    <result column="contractcode" property="contractcode" jdbcType="VARCHAR" />
    <result column="createdat" property="createdat" jdbcType="TIMESTAMP" />
    <result column="createdby" property="createdby" jdbcType="VARCHAR" />
    <result column="flag" property="flag" jdbcType="TINYINT" />
    <result column="lasttime" property="lasttime" jdbcType="TIMESTAMP" />
    <result column="status" property="status" jdbcType="TINYINT" />
  </resultMap>
  <sql id="Base_Column_List" >
    <!--          -->
    id, enterprisenumber, authcode, authcodeprefix, contractcode, createdat, createdby,
    flag, lasttime, status
  </sql>
  <select id="selectByUser" resultType="com.gk.firework.Domain.AuthorizationInfo">
    select *
    from authorization
    where
        enterprisenumber = #{enterprisenumber}
    and authcode = #{authcode}
    and status = 1
  </select>
 
</mapper>