|
|
|
@ -29,24 +29,43 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</sql> |
|
|
|
|
|
|
|
|
|
<select id="selectBusMassageClubList" parameterType="BusMassageClub" resultMap="BusMassageClubResult"> |
|
|
|
|
<include refid="selectBusMassageClubAll"/> |
|
|
|
|
SELECT |
|
|
|
|
msg.massage_id, |
|
|
|
|
msg.massage_name, |
|
|
|
|
msg.massage_title, |
|
|
|
|
msg.massage_content, |
|
|
|
|
msg.club_id, |
|
|
|
|
msg.member_id, |
|
|
|
|
msg.user_id, |
|
|
|
|
msg.record_status, |
|
|
|
|
msg.REVISION, |
|
|
|
|
msg.CREATED_BY, |
|
|
|
|
msg.CREATED_TIME, |
|
|
|
|
msg.UPDATED_BY, |
|
|
|
|
msg.UPDATED_TIME, |
|
|
|
|
msg.notes, |
|
|
|
|
( SELECT user_photo FROM bus_user_info AS bus WHERE bus.user_id = msg.user_id ) user_photo, |
|
|
|
|
( SELECT nickname FROM bus_user_info AS buss WHERE buss.user_id = msg.user_id ) member_name, |
|
|
|
|
( SELECT club_name FROM bus_club_info AS busClub WHERE busClub.club_id = msg.club_id ) club_name |
|
|
|
|
FROM |
|
|
|
|
bus_massage_club msg |
|
|
|
|
<where> |
|
|
|
|
<if test="massageName != null and massageName != ''"> and massage_name like concat('%', #{massageName}, '%')</if> |
|
|
|
|
<if test="massageTitle != null and massageTitle != ''"> and massage_title = #{massageTitle}</if> |
|
|
|
|
<if test="massageContent != null and massageContent != ''"> and massage_content = #{massageContent}</if> |
|
|
|
|
<if test="clubId != null and clubId != ''"> and club_id = #{clubId}</if> |
|
|
|
|
<if test="clubName != null and clubName != ''"> and club_name like concat('%', #{clubName}, '%')</if> |
|
|
|
|
<if test="memberId != null and memberId != ''"> and member_id = #{memberId}</if> |
|
|
|
|
<if test="memberName != null and memberName != ''"> and member_name like concat('%', #{memberName}, '%')</if> |
|
|
|
|
<if test="userId != null and userId != ''"> and user_id = #{userId}</if> |
|
|
|
|
<if test="userPhoto != null and userPhoto != ''"> and user_photo = #{userPhoto}</if> |
|
|
|
|
<if test="recordStatus != null and recordStatus != ''"> and record_status = #{recordStatus}</if> |
|
|
|
|
<if test="revision != null "> and REVISION = #{revision}</if> |
|
|
|
|
<if test="createdBy != null and createdBy != ''"> and CREATED_BY = #{createdBy}</if> |
|
|
|
|
<if test="createdTime != null "> and CREATED_TIME = #{createdTime}</if> |
|
|
|
|
<if test="updatedBy != null and updatedBy != ''"> and UPDATED_BY = #{updatedBy}</if> |
|
|
|
|
<if test="updatedTime != null "> and UPDATED_TIME = #{updatedTime}</if> |
|
|
|
|
<if test="notes != null and notes != ''"> and notes = #{notes}</if> |
|
|
|
|
<if test="massageName != null and massageName != ''"> and msg.massage_name like concat('%', #{massageName}, '%')</if> |
|
|
|
|
<if test="massageTitle != null and massageTitle != ''"> and msg.massage_title = #{massageTitle}</if> |
|
|
|
|
<if test="massageContent != null and massageContent != ''"> and msg.massage_content = #{massageContent}</if> |
|
|
|
|
<if test="clubId != null and clubId != ''"> and msg.club_id = #{clubId}</if> |
|
|
|
|
<if test="clubName != null and clubName != ''"> and msg.club_name like concat('%', #{clubName}, '%')</if> |
|
|
|
|
<if test="memberId != null and memberId != ''"> and msg.member_id = #{memberId}</if> |
|
|
|
|
<if test="memberName != null and memberName != ''"> and msg.member_name like concat('%', #{memberName}, '%')</if> |
|
|
|
|
<if test="userId != null and userId != ''"> and msg.user_id = #{userId}</if> |
|
|
|
|
<if test="userPhoto != null and userPhoto != ''"> and msg.user_photo = #{userPhoto}</if> |
|
|
|
|
<if test="recordStatus != null and recordStatus != ''"> and msg.record_status = #{recordStatus}</if> |
|
|
|
|
<if test="revision != null "> and msg.REVISION = #{revision}</if> |
|
|
|
|
<if test="createdBy != null and createdBy != ''"> and msg.CREATED_BY = #{createdBy}</if> |
|
|
|
|
<if test="createdTime != null "> and msg.CREATED_TIME = #{createdTime}</if> |
|
|
|
|
<if test="updatedBy != null and updatedBy != ''"> and msg.UPDATED_BY = #{updatedBy}</if> |
|
|
|
|
<if test="updatedTime != null "> and msg.UPDATED_TIME = #{updatedTime}</if> |
|
|
|
|
<if test="notes != null and notes != ''"> and msg.notes = #{notes}</if> |
|
|
|
|
</where> |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|