|
@@ -64,7 +64,7 @@
|
|
]]>
|
|
]]>
|
|
</insert>
|
|
</insert>
|
|
<delete id="delete" parameterType="long">
|
|
<delete id="delete" parameterType="long">
|
|
- delete from base_person_info where id_=#{id,jdbcType=LONG}
|
|
|
|
|
|
+ delete from base_person_info where id_=#{id,jdbcType=NUMERIC}
|
|
</delete>
|
|
</delete>
|
|
<update id="update" parameterType="com.jpsoft.smart.modules.base.entity.PersonInfo">
|
|
<update id="update" parameterType="com.jpsoft.smart.modules.base.entity.PersonInfo">
|
|
update base_person_info
|
|
update base_person_info
|
|
@@ -151,34 +151,34 @@
|
|
<where>
|
|
<where>
|
|
del_flag = 0
|
|
del_flag = 0
|
|
<if test="searchParams.id != null">
|
|
<if test="searchParams.id != null">
|
|
- and ID_ = #{searchParams.id}
|
|
|
|
|
|
+ and a.ID_ like #{searchParams.id}
|
|
</if>
|
|
</if>
|
|
<if test="searchParams.companyId != null">
|
|
<if test="searchParams.companyId != null">
|
|
- and company_id like #{searchParams.companyId}
|
|
|
|
|
|
+ and a.company_id like #{searchParams.companyId}
|
|
</if>
|
|
</if>
|
|
<if test="searchParams.name != null">
|
|
<if test="searchParams.name != null">
|
|
- and name_ like #{searchParams.name}
|
|
|
|
|
|
+ and a.name_ like #{searchParams.name}
|
|
</if>
|
|
</if>
|
|
<if test="searchParams.idCard != null">
|
|
<if test="searchParams.idCard != null">
|
|
- and id_card like #{searchParams.idCard}
|
|
|
|
|
|
+ and a.id_card like #{searchParams.idCard}
|
|
</if>
|
|
</if>
|
|
<if test="searchParams.phone != null">
|
|
<if test="searchParams.phone != null">
|
|
- and phone_ like #{searchParams.phone}
|
|
|
|
|
|
+ and a.phone_ like #{searchParams.phone}
|
|
</if>
|
|
</if>
|
|
<if test="searchParams.position1 != null">
|
|
<if test="searchParams.position1 != null">
|
|
- and position1_ like #{searchParams.position1}
|
|
|
|
|
|
+ and a.position1_ like #{searchParams.position1}
|
|
</if>
|
|
</if>
|
|
<if test="searchParams.position2 != null">
|
|
<if test="searchParams.position2 != null">
|
|
- and position2_ like #{searchParams.position2}
|
|
|
|
|
|
+ and a.position2_ like #{searchParams.position2}
|
|
</if>
|
|
</if>
|
|
<if test="searchParams.position3 != null">
|
|
<if test="searchParams.position3 != null">
|
|
- and position3_ like #{searchParams.position3}
|
|
|
|
|
|
+ and a.position3_ like #{searchParams.position3}
|
|
</if>
|
|
</if>
|
|
<if test="searchParams.position4 != null">
|
|
<if test="searchParams.position4 != null">
|
|
- and position4_ like #{searchParams.position4}
|
|
|
|
|
|
+ and a.position4_ like #{searchParams.position4}
|
|
</if>
|
|
</if>
|
|
<if test="searchParams.position5 != null">
|
|
<if test="searchParams.position5 != null">
|
|
- and position5_ like #{searchParams.position5}
|
|
|
|
|
|
+ and a.position5_ like #{searchParams.position5}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
<foreach item="sort" collection="sortList" open="order by" separator=",">
|
|
<foreach item="sort" collection="sortList" open="order by" separator=",">
|