Commit 45b484a1 authored by fangxinjiang's avatar fangxinjiang

客户获取接口

parent 1ba63982
...@@ -440,4 +440,8 @@ public class TEmployeeInfo extends BaseEntity { ...@@ -440,4 +440,8 @@ public class TEmployeeInfo extends BaseEntity {
@TableField(exist = false) @TableField(exist = false)
private String[] empNatureArray; private String[] empNatureArray;
@Schema(description = "姓名或身份证")
@TableField(exist = false)
private String[] nameOrIdcard;
} }
...@@ -297,6 +297,13 @@ ...@@ -297,6 +297,13 @@
<if test="tEmployeeInfo.empIdcard != null and tEmployeeInfo.empIdcard.trim() != ''"> <if test="tEmployeeInfo.empIdcard != null and tEmployeeInfo.empIdcard.trim() != ''">
AND a.EMP_IDCARD = #{tEmployeeInfo.empIdcard} AND a.EMP_IDCARD = #{tEmployeeInfo.empIdcard}
</if> </if>
<if test="tEmployeeInfo.nameOrIdcard != null and tEmployeeInfo.nameOrIdcard.trim() != ''">
AND (
a.EMP_NAME = like concat(#{tEmployeeInfo.nameOrIdcard},'%')
or
a.EMP_IDCARD = like concat(#{tEmployeeInfo.nameOrIdcard},'%')
)
</if>
<if test="tEmployeeInfo.validityStart != null"> <if test="tEmployeeInfo.validityStart != null">
AND a.VALIDITY_START = #{tEmployeeInfo.validityStart} AND a.VALIDITY_START = #{tEmployeeInfo.validityStart}
</if> </if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment