|
@@ -124,8 +124,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
p.update_by, p.update_time, p.remark,u.is_agree as isAgree
|
|
p.update_by, p.update_time, p.remark,u.is_agree as isAgree
|
|
from proposal_info p
|
|
from proposal_info p
|
|
left join proposal_user u on p.proposal_id = u.proposal_id
|
|
left join proposal_user u on p.proposal_id = u.proposal_id
|
|
- where u.user_id = #{proposalUserId} and u.type = '2'
|
|
|
|
|
|
+ <where>
|
|
<if test="isAgree != null and isAgree != ''"> and u.is_agree = #{isAgree}</if>
|
|
<if test="isAgree != null and isAgree != ''"> and u.is_agree = #{isAgree}</if>
|
|
|
|
+ <if test="type != null and type != ''"> and u.type = #{type}</if>
|
|
<if test="proposalNumber != null and proposalNumber != ''"> and p.proposal_number = #{proposalNumber}</if>
|
|
<if test="proposalNumber != null and proposalNumber != ''"> and p.proposal_number = #{proposalNumber}</if>
|
|
<if test="title != null and title != ''"> and p.title = #{title}</if>
|
|
<if test="title != null and title != ''"> and p.title = #{title}</if>
|
|
<if test="proposalName != null and proposalName != ''"> and p.proposal_name like concat('%', #{proposalName}, '%')</if>
|
|
<if test="proposalName != null and proposalName != ''"> and p.proposal_name like concat('%', #{proposalName}, '%')</if>
|
|
@@ -159,6 +160,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="keyPointArgument != null and keyPointArgument != ''"> and p.key_point_argument = #{keyPointArgument}</if>
|
|
<if test="keyPointArgument != null and keyPointArgument != ''"> and p.key_point_argument = #{keyPointArgument}</if>
|
|
<if test="isOutstanding != null and isOutstanding != ''"> and p.is_outstanding = #{isOutstanding}</if>
|
|
<if test="isOutstanding != null and isOutstanding != ''"> and p.is_outstanding = #{isOutstanding}</if>
|
|
<if test="outstandingArgument != null and outstandingArgument != ''"> and p.outstanding_argument = #{outstandingArgument}</if>
|
|
<if test="outstandingArgument != null and outstandingArgument != ''"> and p.outstanding_argument = #{outstandingArgument}</if>
|
|
|
|
+ <if test="proposalUserId != null and proposalUserId != ''"> and u.user_id = #{proposalUserId}</if>
|
|
|
|
+ <if test="year != null and year != ''"><!-- 开始时间检索 -->
|
|
|
|
+ AND date_format(p.update_time,'%y') = date_format(#{year},'%y')
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
order by p.update_time desc
|
|
order by p.update_time desc
|
|
</select>
|
|
</select>
|
|
|
|
|