|
@@ -16,7 +16,7 @@
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<sql id="hlgUserJoins">
|
|
<sql id="hlgUserJoins">
|
|
|
-
|
|
|
|
|
|
|
+ left join hlg_platform_subcontractor hps on hps.sys_org_code=a.sys_org_code
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -42,9 +42,17 @@
|
|
|
<if test="hlgUser.idcardNumber != null and hlgUser.idcardNumber != ''">
|
|
<if test="hlgUser.idcardNumber != null and hlgUser.idcardNumber != ''">
|
|
|
AND a.idcard_number LIKE concat('%',#{hlgUser.idcardNumber},'%')
|
|
AND a.idcard_number LIKE concat('%',#{hlgUser.idcardNumber},'%')
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="hlgUser.idcardPicture != null and hlgUser.idcardPicture != ''">
|
|
|
|
|
- AND a.idcard_picture = #{hlgUser.idcardPicture}
|
|
|
|
|
|
|
+ <if test="hlgUser.idcardPictureType != null">
|
|
|
|
|
+ <if test="hlgUser.idcardPictureType==1">
|
|
|
|
|
+ AND a.idcard_picture is null
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="hlgUser.idcardPictureType ==2">
|
|
|
|
|
+ AND a.idcard_picture is not null
|
|
|
|
|
+ </if>
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="hlgUser.subcontractorId != null and hlgUser.subcontractorId != ''">
|
|
|
|
|
+ AND hps.subcontractor_id =#{hlgUser.subcontractorId}
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
ORDER BY a.update_time DESC,id asc
|
|
ORDER BY a.update_time DESC,id asc
|
|
|
</select>
|
|
</select>
|