|
@@ -34,17 +34,30 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="uniteProposalId" column="unite_proposal_id" />
|
|
|
<result property="satisfaction" column="satisfaction" />
|
|
|
<result property="membersOpinion" column="members_opinion" />
|
|
|
+
|
|
|
+ <result property="cbdwdfwy" column="cbdwdfwy" />
|
|
|
+
|
|
|
<result property="zxSatisfaction" column="zx_satisfaction" />
|
|
|
<result property="zxOpinion" column="zx_opinion" />
|
|
|
+
|
|
|
+ <result property="isKeyPoint" column="is_key_point" />
|
|
|
+ <result property="keyPointArgument" column="key_point_argument" />
|
|
|
+ <result property="isOutstanding" column="is_outstanding" />
|
|
|
+ <result property="outstandingArgument" column="outstanding_argument" />
|
|
|
+
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="remark" column="remark" />
|
|
|
+
|
|
|
+
|
|
|
+ <result property="isAgree" column="isAgree" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectProposalInfoVo">
|
|
|
- select proposal_id, proposal_user_id, proposal_number, title, proposal_name, proposal_phone, boundary, party_affiliation, contact_address, category_id, category_name, proposal_type, proposal_content, is_jointly, is_publicity, content_publicity, is_survey, is_first, is_person, is_record, negotiate_type, proposed_contractor, proposal_progress, rolling_process, complex_type, is_cases_together, unite_proposal_id, satisfaction, members_opinion, create_by, create_time, update_by, update_time, remark from proposal_info
|
|
|
+ select proposal_id, proposal_user_id, proposal_number, title, proposal_name, proposal_phone, boundary, party_affiliation, contact_address, category_id, category_name, proposal_type, proposal_content, is_jointly, is_publicity, content_publicity, is_survey, is_first, is_person, is_record, negotiate_type, proposed_contractor, proposal_progress, rolling_process, complex_type, is_cases_together, unite_proposal_id, satisfaction, members_opinion,
|
|
|
+ cbdwdfwy,zx_satisfaction,zx_opinion,is_key_point,key_point_argument,is_outstanding,outstanding_argument,create_by, create_time, update_by, update_time, remark from proposal_info
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectProposalInfoList" parameterType="ProposalInfo" resultMap="ProposalInfoResult">
|
|
@@ -80,6 +93,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="membersOpinion != null and membersOpinion != ''"> and members_opinion = #{membersOpinion}</if>
|
|
|
<if test="zxSatisfaction != null and zxSatisfaction != ''"> and zx_satisfaction = #{zxSatisfaction}</if>
|
|
|
<if test="zxOpinion != null and zxOpinion != ''"> and zx_opinion = #{zxOpinion}</if>
|
|
|
+
|
|
|
+ <if test="isKeyPoint != null and isKeyPoint != ''"> and is_key_point = #{isKeyPoint}</if>
|
|
|
+ <if test="keyPointArgument != null and keyPointArgument != ''"> and key_point_argument = #{keyPointArgument}</if>
|
|
|
+ <if test="isOutstanding != null and isOutstanding != ''"> and is_outstanding = #{isOutstanding}</if>
|
|
|
+ <if test="outstandingArgument != null and outstandingArgument != ''"> and outstanding_argument = #{outstandingArgument}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -87,7 +105,53 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<include refid="selectProposalInfoVo"/>
|
|
|
where proposal_id = #{proposalId}
|
|
|
</select>
|
|
|
-
|
|
|
+ <select id="selectProposalInfoListByUser" resultMap="ProposalInfoResult">
|
|
|
+ select p.proposal_id, p.proposal_user_id, p.proposal_number, p.title, p.proposal_name, p.proposal_phone, p.boundary, p.party_affiliation,
|
|
|
+ p.contact_address, p.category_id, p.category_name, p.proposal_type, p.proposal_content, p.is_jointly, p.is_publicity, p.content_publicity,
|
|
|
+ p.is_survey, p.is_first, p.is_person, p.is_record, p.negotiate_type, p.proposed_contractor, p.proposal_progress, p.rolling_process, p.complex_type,
|
|
|
+ p.is_cases_together, p.unite_proposal_id, p.satisfaction, p.members_opinion,p.cbdwdfwy,
|
|
|
+ p.zx_satisfaction,p.zx_opinion,p.is_key_point,p.key_point_argument,p.is_outstanding,p.outstanding_argument,p.create_by, p.create_time,
|
|
|
+ p.update_by, p.update_time, p.remark,u.is_agree as isAgree
|
|
|
+ from proposal_info p
|
|
|
+ left join proposal_user u on p.proposal_id = u.proposal_id
|
|
|
+ where u.user_id = #{proposalUserId} and u.type = '2'
|
|
|
+ <if test="isAgree != null and isAgree != ''"> and u.is_agree = #{isAgree}</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="proposalName != null and proposalName != ''"> and p.proposal_name like concat('%', #{proposalName}, '%')</if>
|
|
|
+ <if test="proposalPhone != null and proposalPhone != ''"> and p.proposal_phone = #{proposalPhone}</if>
|
|
|
+ <if test="boundary != null and boundary != ''"> and p.boundary = #{boundary}</if>
|
|
|
+ <if test="partyAffiliation != null and partyAffiliation != ''"> and p.party_affiliation = #{partyAffiliation}</if>
|
|
|
+ <if test="contactAddress != null and contactAddress != ''"> and p.contact_address = #{contactAddress}</if>
|
|
|
+ <if test="categoryId != null "> and p.category_id = #{categoryId}</if>
|
|
|
+ <if test="categoryName != null and categoryName != ''"> and p.category_name like concat('%', #{categoryName}, '%')</if>
|
|
|
+ <if test="proposalType != null and proposalType != ''"> and p.proposal_type = #{proposalType}</if>
|
|
|
+ <if test="proposalContent != null and proposalContent != ''"> and p.proposal_content = #{proposalContent}</if>
|
|
|
+ <if test="isJointly != null and isJointly != ''"> and p.is_jointly = #{isJointly}</if>
|
|
|
+ <if test="isPublicity != null and isPublicity != ''"> and p.is_publicity = #{isPublicity}</if>
|
|
|
+ <if test="contentPublicity != null and contentPublicity != ''"> and p.content_publicity = #{contentPublicity}</if>
|
|
|
+ <if test="isSurvey != null and isSurvey != ''"> and p.is_survey = #{isSurvey}</if>
|
|
|
+ <if test="isFirst != null and isFirst != ''"> and p.is_first = #{isFirst}</if>
|
|
|
+ <if test="isPerson != null and isPerson != ''"> and p.is_person = #{isPerson}</if>
|
|
|
+ <if test="isRecord != null and isRecord != ''"> and p.is_record = #{isRecord}</if>
|
|
|
+ <if test="negotiateType != null and negotiateType != ''"> and p.negotiate_type = #{negotiateType}</if>
|
|
|
+ <if test="proposedContractor != null and proposedContractor != ''"> and p.proposed_contractor = #{proposedContractor}</if>
|
|
|
+ <if test="proposalProgress != null and proposalProgress != ''"> and p.proposal_progress = #{proposalProgress}</if>
|
|
|
+ <if test="rollingProcess != null and rollingProcess != ''"> and p.rolling_process = #{rollingProcess}</if>
|
|
|
+ <if test="complexType != null and complexType != ''"> and p.complex_type = #{complexType}</if>
|
|
|
+ <if test="isCasesTogether != null and isCasesTogether != ''"> and p.is_cases_together = #{isCasesTogether}</if>
|
|
|
+ <if test="uniteProposalId != null "> and p.unite_proposal_id = #{uniteProposalId}</if>
|
|
|
+ <if test="satisfaction != null and satisfaction != ''"> and p.satisfaction = #{satisfaction}</if>
|
|
|
+ <if test="membersOpinion != null and membersOpinion != ''"> and p.members_opinion = #{membersOpinion}</if>
|
|
|
+ <if test="zxSatisfaction != null and zxSatisfaction != ''"> and p.zx_satisfaction = #{zxSatisfaction}</if>
|
|
|
+ <if test="zxOpinion != null and zxOpinion != ''"> and p.zx_opinion = #{zxOpinion}</if>
|
|
|
+ <if test="isKeyPoint != null and isKeyPoint != ''"> and p.is_key_point = #{isKeyPoint}</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="outstandingArgument != null and outstandingArgument != ''"> and p.outstanding_argument = #{outstandingArgument}</if>
|
|
|
+ order by p.update_time desc
|
|
|
+ </select>
|
|
|
+
|
|
|
<insert id="insertProposalInfo" parameterType="ProposalInfo" useGeneratedKeys="true" keyProperty="proposalId">
|
|
|
insert into proposal_info
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -119,8 +183,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="uniteProposalId != null">unite_proposal_id,</if>
|
|
|
<if test="satisfaction != null">satisfaction,</if>
|
|
|
<if test="membersOpinion != null">members_opinion,</if>
|
|
|
- <if test="zxSatisfaction != null "> zx_satisfaction</if>
|
|
|
- <if test="zxOpinion != null "> zx_opinion</if>
|
|
|
+ <if test="cbdwdfwy != null "> cbdwdfwy,</if>
|
|
|
+ <if test="zxSatisfaction != null "> zx_satisfaction,</if>
|
|
|
+ <if test="zxOpinion != null "> zx_opinion,</if>
|
|
|
+ <if test="isKeyPoint != null "> is_key_point,</if>
|
|
|
+ <if test="keyPointArgument != null "> key_point_argument, </if>
|
|
|
+ <if test="isOutstanding != null "> is_outstanding ,</if>
|
|
|
+ <if test="outstandingArgument != null "> outstanding_argument, </if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
@@ -156,8 +225,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="uniteProposalId != null">#{uniteProposalId},</if>
|
|
|
<if test="satisfaction != null">#{satisfaction},</if>
|
|
|
<if test="membersOpinion != null">#{membersOpinion},</if>
|
|
|
- <if test="zxSatisfaction != null "> #{zxSatisfaction}</if>
|
|
|
- <if test="zxOpinion != null ">#{zxOpinion}</if>
|
|
|
+ <if test="cbdwdfwy != null "> #{cbdwdfwy},</if>
|
|
|
+ <if test="zxSatisfaction != null "> #{zxSatisfaction},</if>
|
|
|
+ <if test="zxOpinion != null ">#{zxOpinion},</if>
|
|
|
+ <if test="isKeyPoint != null "> #{isKeyPoint},</if>
|
|
|
+ <if test="keyPointArgument != null "> #{keyPointArgument},</if>
|
|
|
+ <if test="isOutstanding != null "> #{isOutstanding},</if>
|
|
|
+ <if test="outstandingArgument != null "> #{outstandingArgument},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
@@ -197,8 +271,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="uniteProposalId != null">unite_proposal_id = #{uniteProposalId},</if>
|
|
|
<if test="satisfaction != null">satisfaction = #{satisfaction},</if>
|
|
|
<if test="membersOpinion != null">members_opinion = #{membersOpinion},</if>
|
|
|
- <if test="zxSatisfaction != null "> zx_satisfaction = #{zxSatisfaction}</if>
|
|
|
- <if test="zxOpinion != null "> zx_opinion = #{zxOpinion}</if>
|
|
|
+ <if test="cbdwdfwy != null "> cbdwdfwy = #{cbdwdfwy},</if>
|
|
|
+ <if test="zxSatisfaction != null "> zx_satisfaction = #{zxSatisfaction},</if>
|
|
|
+ <if test="zxOpinion != null "> zx_opinion = #{zxOpinion},</if>
|
|
|
+ <if test="isKeyPoint != null "> is_key_point = #{isKeyPoint},</if>
|
|
|
+ <if test="keyPointArgument != null "> key_point_argument = #{keyPointArgument},</if>
|
|
|
+ <if test="isOutstanding != null "> is_outstanding = #{isOutstanding},</if>
|
|
|
+ <if test="outstandingArgument != null "> outstanding_argument = #{outstandingArgument},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|