|
|
@@ -2,4 +2,46 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="org.jeecg.modules.company.mapper.CompanyAuthenticationMapper">
|
|
|
|
|
|
+ <sql id="companyColumns">
|
|
|
+ a.id as "id",
|
|
|
+ a.user_id as "userId",
|
|
|
+ a.license_front as "licenseFront",
|
|
|
+ a.other_license as "otherLicense",
|
|
|
+ a.enterprise_name as "enterpriseName",
|
|
|
+ a.expiry_date as "expiryDate",
|
|
|
+ a.is_human_resource as "isHumanResource",
|
|
|
+ a.authentication_status as "authenticationStatus",
|
|
|
+ a.create_time as "createTime",
|
|
|
+ a.update_time as "updateTime",
|
|
|
+ a.del_flag as "delFlag"
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <sql id="companyJoins">
|
|
|
+
|
|
|
+ </sql>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="queryPageList1" resultType="org.jeecg.modules.company.entity.CompanyAuthentication">
|
|
|
+ SELECT
|
|
|
+ <include refid="companyColumns"/>
|
|
|
+ FROM dp_enterprise_authentication a
|
|
|
+ <include refid="companyJoins"/>
|
|
|
+ <where>
|
|
|
+ 1=1
|
|
|
+
|
|
|
+ <if test="CompanyAuthentication.enterpriseName != null and CompanyAuthentication.enterpriseName != ''">
|
|
|
+ and a.enterprise_name LIKE concat('%',#{CompanyAuthentication.enterpriseName},'%')
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="CompanyAuthentication.isHumanResource != null and (CompanyAuthentication.isHumanResource).toString != ''">
|
|
|
+ AND a.is_human_resource=#{CompanyAuthentication.isHumanResource}
|
|
|
+ </if>
|
|
|
+ <if test="CompanyAuthentication.authenticationStatus != null and (CompanyAuthentication.authenticationStatus).toString != ''">
|
|
|
+ AND a.authentication_status=#{CompanyAuthentication.authenticationStatus}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ </where>
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
</mapper>
|