|
|
@@ -19,6 +19,8 @@
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
+
|
|
|
+ <result property="headImg" column="head_img" />
|
|
|
</resultMap>
|
|
|
<insert id="insert" parameterType="com.jpsoft.employment.modules.base.entity.MessageBoard">
|
|
|
<!--
|
|
|
@@ -120,10 +122,12 @@
|
|
|
and b.real_name like #{searchParams.name}
|
|
|
</if>
|
|
|
<if test="searchParams.status != null">
|
|
|
- and a.status_ = #{searchParams.status}
|
|
|
- </if>
|
|
|
- <if test="searchParams.regUserId != null">
|
|
|
- or a.reg_user_id = #{searchParams.regUserId}
|
|
|
+ <if test="searchParams.regUserId == null">
|
|
|
+ and a.status_ = #{searchParams.status}
|
|
|
+ </if>
|
|
|
+ <if test="searchParams.regUserId != null">
|
|
|
+ and (a.status_ = #{searchParams.status} or a.reg_user_id = #{searchParams.regUserId})
|
|
|
+ </if>
|
|
|
</if>
|
|
|
</where>
|
|
|
<foreach item="sort" collection="sortList" open="order by" separator=",">
|