对比新文件 |
| | |
| | | <?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> |