|
|
|
<?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.glxp.api.dao.sup.UserCertMapper">
|
|
|
|
<resultMap id="BaseResultMap" type="com.glxp.api.entity.sup.UserCertEntity">
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
<!--@Table user_cert-->
|
|
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
|
|
<result column="businessId" jdbcType="BIGINT" property="businessId" />
|
|
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
|
|
<result column="code" jdbcType="VARCHAR" property="code" />
|
|
|
|
<result column="filePath" jdbcType="LONGVARCHAR" property="filePath" />
|
|
|
|
<result column="validDate" jdbcType="TIMESTAMP" property="validDate" />
|
|
|
|
<result column="expireDate" jdbcType="TIMESTAMP" property="expireDate" />
|
|
|
|
<result column="checkStatus" jdbcType="CHAR" property="checkStatus" />
|
|
|
|
<result column="checkComment" jdbcType="VARCHAR" property="checkComment" />
|
|
|
|
<result column="status" jdbcType="CHAR" property="status" />
|
|
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
|
|
|
<result column="createUser" jdbcType="VARCHAR" property="createUser" />
|
|
|
|
<result column="createTime" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
<result column="updateUser" jdbcType="VARCHAR" property="updateUser" />
|
|
|
|
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
|
</resultMap>
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
id, businessId, `name`, code, filePath, validDate, expireDate, checkStatus, checkComment,
|
|
|
|
`status`, remark, `createUser`, createTime, updateUser, updateTime
|
|
|
|
</sql>
|
|
|
|
<select id="selectByRegisterId" parameterType="java.lang.String"
|
|
|
|
resultType="com.glxp.api.entity.sup.UserCertEntity">
|
|
|
|
SELECT a.id,c.name,c.isNeed,ifnull(a.businessId,#{registerId}) businessId,a.companyId,a.code,a.filePath,a.validDate,a.expireDate,a.checkStatus,a.checkTime,a.checkComment,a.status,a.remark
|
|
|
|
FROM user_cert_set c LEFT JOIN
|
|
|
|
(SELECT * from user_cert WHERE businessId=#{registerId}) a ON c.name = a.name
|
|
|
|
</select>
|
|
|
|
</mapper>
|