ProposalInfoMapper.xml 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.ruoyi.system.mapper.ProposalInfoMapper">
  6. <resultMap type="ProposalInfo" id="ProposalInfoResult">
  7. <result property="proposalId" column="proposal_id" />
  8. <result property="proposalUserId" column="proposal_user_id" />
  9. <result property="proposalNumber" column="proposal_number" />
  10. <result property="title" column="title" />
  11. <result property="proposalName" column="proposal_name" />
  12. <result property="proposalPhone" column="proposal_phone" />
  13. <result property="boundary" column="boundary" />
  14. <result property="partyAffiliation" column="party_affiliation" />
  15. <result property="contactAddress" column="contact_address" />
  16. <result property="categoryId" column="category_id" />
  17. <result property="categoryName" column="category_name" />
  18. <result property="proposalType" column="proposal_type" />
  19. <result property="proposalContent" column="proposal_content" />
  20. <result property="isJointly" column="is_jointly" />
  21. <result property="isPublicity" column="is_publicity" />
  22. <result property="contentPublicity" column="content_publicity" />
  23. <result property="isSurvey" column="is_survey" />
  24. <result property="isFirst" column="is_first" />
  25. <result property="isPerson" column="is_person" />
  26. <result property="isRecord" column="is_record" />
  27. <result property="negotiateType" column="negotiate_type" />
  28. <result property="proposedContractor" column="proposed_contractor" />
  29. <result property="proposalProgress" column="proposal_progress" />
  30. <result property="backReason" column="back_reason" />
  31. <result property="rollingProcess" column="rolling_process" />
  32. <result property="complexType" column="complex_type" />
  33. <result property="isCasesTogether" column="is_cases_together" />
  34. <result property="uniteProposalId" column="unite_proposal_id" />
  35. <result property="satisfaction" column="satisfaction" />
  36. <result property="membersOpinion" column="members_opinion" />
  37. <result property="cbdwdfwy" column="cbdwdfwy" />
  38. <result property="zxSatisfaction" column="zx_satisfaction" />
  39. <result property="zxOpinion" column="zx_opinion" />
  40. <result property="isKeyPoint" column="is_key_point" />
  41. <result property="keyPointArgument" column="key_point_argument" />
  42. <result property="isOutstanding" column="is_outstanding" />
  43. <result property="outstandingArgument" column="outstanding_argument" />
  44. <result property="createBy" column="create_by" />
  45. <result property="createTime" column="create_time" />
  46. <result property="updateBy" column="update_by" />
  47. <result property="updateTime" column="update_time" />
  48. <result property="remark" column="remark" />
  49. <result property="isAgree" column="isAgree" />
  50. <result property="deptId" column="deptId" />
  51. <result property="dwType" column="dwType" />
  52. <collection property="proposalUserList" javaType="java.util.List" resultMap="ProposalUserResult" />
  53. </resultMap>
  54. <resultMap type="ProposalUser" id="ProposalUserResult">
  55. <result property="isAgree" column="is_agree" />
  56. </resultMap>
  57. <sql id="selectProposalInfoVo">
  58. 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,back_reason, rolling_process, complex_type, is_cases_together, unite_proposal_id, satisfaction, members_opinion,
  59. 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
  60. </sql>
  61. <select id="selectProposalInfoList" parameterType="ProposalInfo" resultMap="ProposalInfoResult">
  62. <include refid="selectProposalInfoVo"/>
  63. <where>
  64. <if test="proposalUserId != null "> and proposal_user_id = #{proposalUserId}</if>
  65. <if test="proposalNumber != null and proposalNumber != ''"> and proposal_number = #{proposalNumber}</if>
  66. <if test="title != null and title != ''"> and title = #{title}</if>
  67. <if test="proposalName != null and proposalName != ''"> and proposal_name like concat('%', #{proposalName}, '%')</if>
  68. <if test="proposalPhone != null and proposalPhone != ''"> and proposal_phone = #{proposalPhone}</if>
  69. <if test="boundary != null and boundary != ''"> and boundary = #{boundary}</if>
  70. <if test="partyAffiliation != null and partyAffiliation != ''"> and party_affiliation = #{partyAffiliation}</if>
  71. <if test="contactAddress != null and contactAddress != ''"> and contact_address = #{contactAddress}</if>
  72. <if test="categoryId != null "> and category_id = #{categoryId}</if>
  73. <if test="categoryName != null and categoryName != ''"> and category_name like concat('%', #{categoryName}, '%')</if>
  74. <if test="proposalType != null and proposalType != ''"> and proposal_type = #{proposalType}</if>
  75. <if test="proposalContent != null and proposalContent != ''"> and proposal_content = #{proposalContent}</if>
  76. <if test="isJointly != null and isJointly != ''"> and is_jointly = #{isJointly}</if>
  77. <if test="isPublicity != null and isPublicity != ''"> and is_publicity = #{isPublicity}</if>
  78. <if test="contentPublicity != null and contentPublicity != ''"> and content_publicity = #{contentPublicity}</if>
  79. <if test="isSurvey != null and isSurvey != ''"> and is_survey = #{isSurvey}</if>
  80. <if test="isFirst != null and isFirst != ''"> and is_first = #{isFirst}</if>
  81. <if test="isPerson != null and isPerson != ''"> and is_person = #{isPerson}</if>
  82. <if test="isRecord != null and isRecord != ''"> and is_record = #{isRecord}</if>
  83. <if test="negotiateType != null and negotiateType != ''"> and negotiate_type = #{negotiateType}</if>
  84. <if test="proposedContractor != null and proposedContractor != ''"> and proposed_contractor = #{proposedContractor}</if>
  85. <if test="proposalProgress != null and proposalProgress != ''"> and proposal_progress = #{proposalProgress}</if>
  86. <if test="rollingProcess != null and rollingProcess != ''"> and rolling_process = #{rollingProcess}</if>
  87. <if test="complexType != null and complexType != ''"> and complex_type = #{complexType}</if>
  88. <if test="isCasesTogether != null and isCasesTogether != ''"> and is_cases_together = #{isCasesTogether}</if>
  89. <if test="uniteProposalId != null "> and unite_proposal_id = #{uniteProposalId}</if>
  90. <if test="satisfaction != null and satisfaction != ''"> and satisfaction = #{satisfaction}</if>
  91. <if test="membersOpinion != null and membersOpinion != ''"> and members_opinion = #{membersOpinion}</if>
  92. <if test="zxSatisfaction != null and zxSatisfaction != ''"> and zx_satisfaction = #{zxSatisfaction}</if>
  93. <if test="zxOpinion != null and zxOpinion != ''"> and zx_opinion = #{zxOpinion}</if>
  94. <if test="isKeyPoint != null and isKeyPoint != ''"> and is_key_point = #{isKeyPoint}</if>
  95. <if test="keyPointArgument != null and keyPointArgument != ''"> and key_point_argument = #{keyPointArgument}</if>
  96. <if test="isOutstanding != null and isOutstanding != ''"> and is_outstanding = #{isOutstanding}</if>
  97. <if test="outstandingArgument != null and outstandingArgument != ''"> and outstanding_argument = #{outstandingArgument}</if>
  98. <if test="startTime != null and startTime != ''"><!-- 开始时间检索 -->
  99. AND date_format(create_time,'%y%m%d') &gt;= date_format(#{startTime},'%y%m%d')
  100. </if>
  101. <if test="endTime != null and endTime != ''"><!-- 结束时间检索 -->
  102. AND date_format(create_time,'%y%m%d') &lt;= date_format(#{endTime},'%y%m%d')
  103. </if>
  104. </where>
  105. order by create_time desc
  106. </select>
  107. <select id="selectProposalInfoByProposalId" parameterType="Long" resultMap="ProposalInfoResult">
  108. <include refid="selectProposalInfoVo"/>
  109. where proposal_id = #{proposalId}
  110. </select>
  111. <select id="selectProposalInfoListByUser" resultMap="ProposalInfoResult">
  112. select p.proposal_id, p.proposal_user_id, p.proposal_number, p.title, p.proposal_name, p.proposal_phone, p.boundary, p.party_affiliation,
  113. p.contact_address, p.category_id, p.category_name, p.proposal_type, p.proposal_content, p.is_jointly, p.is_publicity, p.content_publicity,
  114. p.is_survey, p.is_first, p.is_person, p.is_record, p.negotiate_type, p.proposed_contractor, p.proposal_progress,p.back_reason, p.rolling_process, p.complex_type,
  115. p.is_cases_together, p.unite_proposal_id, p.satisfaction, p.members_opinion,p.cbdwdfwy,
  116. 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,
  117. p.update_by, p.update_time, p.remark,u.is_agree as isAgree
  118. from proposal_info p
  119. left join proposal_user u on p.proposal_id = u.proposal_id
  120. <where>
  121. <if test="isAgree != null and isAgree != ''"> and u.is_agree = #{isAgree}</if>
  122. <if test="type != null and type != ''"> and u.type = #{type}</if>
  123. <if test="proposalUserId != null "> and u.user_id = #{proposalUserId}</if>
  124. <if test="proposalNumber != null and proposalNumber != ''"> and p.proposal_number = #{proposalNumber}</if>
  125. <if test="title != null and title != ''"> and p.title = #{title}</if>
  126. <if test="proposalName != null and proposalName != ''"> and p.proposal_name like concat('%', #{proposalName}, '%')</if>
  127. <if test="proposalPhone != null and proposalPhone != ''"> and p.proposal_phone = #{proposalPhone}</if>
  128. <if test="boundary != null and boundary != ''"> and p.boundary = #{boundary}</if>
  129. <if test="partyAffiliation != null and partyAffiliation != ''"> and p.party_affiliation = #{partyAffiliation}</if>
  130. <if test="contactAddress != null and contactAddress != ''"> and p.contact_address = #{contactAddress}</if>
  131. <if test="categoryId != null "> and p.category_id = #{categoryId}</if>
  132. <if test="categoryName != null and categoryName != ''"> and p.category_name like concat('%', #{categoryName}, '%')</if>
  133. <if test="proposalType != null and proposalType != ''"> and p.proposal_type = #{proposalType}</if>
  134. <if test="proposalContent != null and proposalContent != ''"> and p.proposal_content = #{proposalContent}</if>
  135. <if test="isJointly != null and isJointly != ''"> and p.is_jointly = #{isJointly}</if>
  136. <if test="isPublicity != null and isPublicity != ''"> and p.is_publicity = #{isPublicity}</if>
  137. <if test="contentPublicity != null and contentPublicity != ''"> and p.content_publicity = #{contentPublicity}</if>
  138. <if test="isSurvey != null and isSurvey != ''"> and p.is_survey = #{isSurvey}</if>
  139. <if test="isFirst != null and isFirst != ''"> and p.is_first = #{isFirst}</if>
  140. <if test="isPerson != null and isPerson != ''"> and p.is_person = #{isPerson}</if>
  141. <if test="isRecord != null and isRecord != ''"> and p.is_record = #{isRecord}</if>
  142. <if test="negotiateType != null and negotiateType != ''"> and p.negotiate_type = #{negotiateType}</if>
  143. <if test="proposedContractor != null and proposedContractor != ''"> and p.proposed_contractor = #{proposedContractor}</if>
  144. <if test="proposalProgress != null and proposalProgress != ''"> and p.proposal_progress = #{proposalProgress}</if>
  145. <if test="rollingProcess != null and rollingProcess != ''"> and p.rolling_process = #{rollingProcess}</if>
  146. <if test="complexType != null and complexType != ''"> and p.complex_type = #{complexType}</if>
  147. <if test="isCasesTogether != null and isCasesTogether != ''"> and p.is_cases_together = #{isCasesTogether}</if>
  148. <if test="uniteProposalId != null "> and p.unite_proposal_id = #{uniteProposalId}</if>
  149. <if test="satisfaction != null and satisfaction != ''"> and p.satisfaction = #{satisfaction}</if>
  150. <if test="membersOpinion != null and membersOpinion != ''"> and p.members_opinion = #{membersOpinion}</if>
  151. <if test="zxSatisfaction != null and zxSatisfaction != ''"> and p.zx_satisfaction = #{zxSatisfaction}</if>
  152. <if test="zxOpinion != null and zxOpinion != ''"> and p.zx_opinion = #{zxOpinion}</if>
  153. <if test="isKeyPoint != null and isKeyPoint != ''"> and p.is_key_point = #{isKeyPoint}</if>
  154. <if test="keyPointArgument != null and keyPointArgument != ''"> and p.key_point_argument = #{keyPointArgument}</if>
  155. <if test="isOutstanding != null and isOutstanding != ''"> and p.is_outstanding = #{isOutstanding}</if>
  156. <if test="outstandingArgument != null and outstandingArgument != ''"> and p.outstanding_argument = #{outstandingArgument}</if>
  157. <if test="proposalUserId != null and proposalUserId != ''"> and u.user_id = #{proposalUserId}</if>
  158. <if test="year != null and year != ''"><!-- 开始时间检索 -->
  159. AND date_format(p.update_time,'%y') = date_format(#{year},'%y')
  160. </if>
  161. </where>
  162. order by p.update_time desc
  163. </select>
  164. <select id="selectProposalInfoListByUnit" resultMap="ProposalInfoResult">
  165. select p.proposal_id, p.proposal_user_id, p.proposal_number, p.title, p.proposal_name, p.proposal_phone, p.boundary, p.party_affiliation,
  166. p.contact_address, p.category_id, p.category_name, p.proposal_type, p.proposal_content, p.is_jointly, p.is_publicity, p.content_publicity,
  167. p.is_survey, p.is_first, p.is_person, p.is_record, p.negotiate_type, p.proposed_contractor, p.proposal_progress,p.back_reason, p.rolling_process, p.complex_type,
  168. p.is_cases_together, p.unite_proposal_id, p.satisfaction, p.members_opinion,p.cbdwdfwy,
  169. 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,
  170. p.update_by, p.update_time, p.remark,u.type as dwType
  171. from proposal_info p
  172. left join proposal_unit_reply u on p.proposal_id = u.proposal_id
  173. where u.dept_id = #{deptId}
  174. <if test="dwType != null and dwType != ''"> and u.type = #{dwType}</if>
  175. <if test="proposalNumber != null and proposalNumber != ''"> and p.proposal_number = #{proposalNumber}</if>
  176. <if test="title != null and title != ''"> and p.title = #{title}</if>
  177. <if test="proposalName != null and proposalName != ''"> and p.proposal_name like concat('%', #{proposalName}, '%')</if>
  178. <if test="proposalPhone != null and proposalPhone != ''"> and p.proposal_phone = #{proposalPhone}</if>
  179. <if test="boundary != null and boundary != ''"> and p.boundary = #{boundary}</if>
  180. <if test="partyAffiliation != null and partyAffiliation != ''"> and p.party_affiliation = #{partyAffiliation}</if>
  181. <if test="contactAddress != null and contactAddress != ''"> and p.contact_address = #{contactAddress}</if>
  182. <if test="categoryId != null "> and p.category_id = #{categoryId}</if>
  183. <if test="categoryName != null and categoryName != ''"> and p.category_name like concat('%', #{categoryName}, '%')</if>
  184. <if test="proposalType != null and proposalType != ''"> and p.proposal_type = #{proposalType}</if>
  185. <if test="proposalContent != null and proposalContent != ''"> and p.proposal_content = #{proposalContent}</if>
  186. <if test="isJointly != null and isJointly != ''"> and p.is_jointly = #{isJointly}</if>
  187. <if test="isPublicity != null and isPublicity != ''"> and p.is_publicity = #{isPublicity}</if>
  188. <if test="contentPublicity != null and contentPublicity != ''"> and p.content_publicity = #{contentPublicity}</if>
  189. <if test="isSurvey != null and isSurvey != ''"> and p.is_survey = #{isSurvey}</if>
  190. <if test="isFirst != null and isFirst != ''"> and p.is_first = #{isFirst}</if>
  191. <if test="isPerson != null and isPerson != ''"> and p.is_person = #{isPerson}</if>
  192. <if test="isRecord != null and isRecord != ''"> and p.is_record = #{isRecord}</if>
  193. <if test="negotiateType != null and negotiateType != ''"> and p.negotiate_type = #{negotiateType}</if>
  194. <if test="proposedContractor != null and proposedContractor != ''"> and p.proposed_contractor = #{proposedContractor}</if>
  195. <if test="proposalProgress != null and proposalProgress != ''"> and p.proposal_progress = #{proposalProgress}</if>
  196. <if test="rollingProcess != null and rollingProcess != ''"> and p.rolling_process = #{rollingProcess}</if>
  197. <if test="complexType != null and complexType != ''"> and p.complex_type = #{complexType}</if>
  198. <if test="isCasesTogether != null and isCasesTogether != ''"> and p.is_cases_together = #{isCasesTogether}</if>
  199. <if test="uniteProposalId != null "> and p.unite_proposal_id = #{uniteProposalId}</if>
  200. <if test="satisfaction != null and satisfaction != ''"> and p.satisfaction = #{satisfaction}</if>
  201. <if test="membersOpinion != null and membersOpinion != ''"> and p.members_opinion = #{membersOpinion}</if>
  202. <if test="zxSatisfaction != null and zxSatisfaction != ''"> and p.zx_satisfaction = #{zxSatisfaction}</if>
  203. <if test="zxOpinion != null and zxOpinion != ''"> and p.zx_opinion = #{zxOpinion}</if>
  204. <if test="isKeyPoint != null and isKeyPoint != ''"> and p.is_key_point = #{isKeyPoint}</if>
  205. <if test="keyPointArgument != null and keyPointArgument != ''"> and p.key_point_argument = #{keyPointArgument}</if>
  206. <if test="isOutstanding != null and isOutstanding != ''"> and p.is_outstanding = #{isOutstanding}</if>
  207. <if test="outstandingArgument != null and outstandingArgument != ''"> and p.outstanding_argument = #{outstandingArgument}</if>
  208. order by p.update_time desc
  209. </select>
  210. <insert id="insertProposalInfo" parameterType="ProposalInfo" useGeneratedKeys="true" keyProperty="proposalId">
  211. insert into proposal_info
  212. <trim prefix="(" suffix=")" suffixOverrides=",">
  213. <if test="proposalUserId != null">proposal_user_id,</if>
  214. <if test="proposalNumber != null">proposal_number,</if>
  215. <if test="title != null and title != ''">title,</if>
  216. <if test="proposalName != null and proposalName != ''">proposal_name,</if>
  217. <if test="proposalPhone != null and proposalPhone != ''">proposal_phone,</if>
  218. <if test="boundary != null">boundary,</if>
  219. <if test="partyAffiliation != null">party_affiliation,</if>
  220. <if test="contactAddress != null">contact_address,</if>
  221. <if test="categoryId != null">category_id,</if>
  222. <if test="categoryName != null">category_name,</if>
  223. <if test="proposalType != null">proposal_type,</if>
  224. <if test="proposalContent != null">proposal_content,</if>
  225. <if test="isJointly != null">is_jointly,</if>
  226. <if test="isPublicity != null">is_publicity,</if>
  227. <if test="contentPublicity != null">content_publicity,</if>
  228. <if test="isSurvey != null">is_survey,</if>
  229. <if test="isFirst != null">is_first,</if>
  230. <if test="isPerson != null">is_person,</if>
  231. <if test="isRecord != null">is_record,</if>
  232. <if test="negotiateType != null">negotiate_type,</if>
  233. <if test="proposedContractor != null">proposed_contractor,</if>
  234. <if test="proposalProgress != null">proposal_progress,</if>
  235. <if test="backReason != null">back_reason,</if>
  236. <if test="rollingProcess != null">rolling_process,</if>
  237. <if test="complexType != null">complex_type,</if>
  238. <if test="isCasesTogether != null">is_cases_together,</if>
  239. <if test="uniteProposalId != null">unite_proposal_id,</if>
  240. <if test="satisfaction != null">satisfaction,</if>
  241. <if test="membersOpinion != null">members_opinion,</if>
  242. <if test="cbdwdfwy != null "> cbdwdfwy,</if>
  243. <if test="zxSatisfaction != null "> zx_satisfaction,</if>
  244. <if test="zxOpinion != null "> zx_opinion,</if>
  245. <if test="isKeyPoint != null "> is_key_point,</if>
  246. <if test="keyPointArgument != null "> key_point_argument, </if>
  247. <if test="isOutstanding != null "> is_outstanding ,</if>
  248. <if test="outstandingArgument != null "> outstanding_argument, </if>
  249. <if test="createBy != null">create_by,</if>
  250. <if test="createTime != null">create_time,</if>
  251. <if test="updateBy != null">update_by,</if>
  252. <if test="updateTime != null">update_time,</if>
  253. <if test="remark != null">remark,</if>
  254. </trim>
  255. <trim prefix="values (" suffix=")" suffixOverrides=",">
  256. <if test="proposalUserId != null">#{proposalUserId},</if>
  257. <if test="proposalNumber != null">#{proposalNumber},</if>
  258. <if test="title != null and title != ''">#{title},</if>
  259. <if test="proposalName != null and proposalName != ''">#{proposalName},</if>
  260. <if test="proposalPhone != null and proposalPhone != ''">#{proposalPhone},</if>
  261. <if test="boundary != null">#{boundary},</if>
  262. <if test="partyAffiliation != null">#{partyAffiliation},</if>
  263. <if test="contactAddress != null">#{contactAddress},</if>
  264. <if test="categoryId != null">#{categoryId},</if>
  265. <if test="categoryName != null">#{categoryName},</if>
  266. <if test="proposalType != null">#{proposalType},</if>
  267. <if test="proposalContent != null">#{proposalContent},</if>
  268. <if test="isJointly != null">#{isJointly},</if>
  269. <if test="isPublicity != null">#{isPublicity},</if>
  270. <if test="contentPublicity != null">#{contentPublicity},</if>
  271. <if test="isSurvey != null">#{isSurvey},</if>
  272. <if test="isFirst != null">#{isFirst},</if>
  273. <if test="isPerson != null">#{isPerson},</if>
  274. <if test="isRecord != null">#{isRecord},</if>
  275. <if test="negotiateType != null">#{negotiateType},</if>
  276. <if test="proposedContractor != null">#{proposedContractor},</if>
  277. <if test="proposalProgress != null">#{proposalProgress},</if>
  278. <if test="backReason != null">#{backReason},</if>
  279. <if test="rollingProcess != null">#{rollingProcess},</if>
  280. <if test="complexType != null">#{complexType},</if>
  281. <if test="isCasesTogether != null">#{isCasesTogether},</if>
  282. <if test="uniteProposalId != null">#{uniteProposalId},</if>
  283. <if test="satisfaction != null">#{satisfaction},</if>
  284. <if test="membersOpinion != null">#{membersOpinion},</if>
  285. <if test="cbdwdfwy != null "> #{cbdwdfwy},</if>
  286. <if test="zxSatisfaction != null "> #{zxSatisfaction},</if>
  287. <if test="zxOpinion != null ">#{zxOpinion},</if>
  288. <if test="isKeyPoint != null "> #{isKeyPoint},</if>
  289. <if test="keyPointArgument != null "> #{keyPointArgument},</if>
  290. <if test="isOutstanding != null "> #{isOutstanding},</if>
  291. <if test="outstandingArgument != null "> #{outstandingArgument},</if>
  292. <if test="createBy != null">#{createBy},</if>
  293. <if test="createTime != null">#{createTime},</if>
  294. <if test="updateBy != null">#{updateBy},</if>
  295. <if test="updateTime != null">#{updateTime},</if>
  296. <if test="remark != null">#{remark},</if>
  297. </trim>
  298. </insert>
  299. <update id="updateProposalInfo" parameterType="ProposalInfo">
  300. update proposal_info
  301. <trim prefix="SET" suffixOverrides=",">
  302. <if test="proposalUserId != null">proposal_user_id = #{proposalUserId},</if>
  303. <if test="proposalNumber != null">proposal_number = #{proposalNumber},</if>
  304. <if test="title != null and title != ''">title = #{title},</if>
  305. <if test="proposalName != null and proposalName != ''">proposal_name = #{proposalName},</if>
  306. <if test="proposalPhone != null and proposalPhone != ''">proposal_phone = #{proposalPhone},</if>
  307. <if test="boundary != null">boundary = #{boundary},</if>
  308. <if test="partyAffiliation != null">party_affiliation = #{partyAffiliation},</if>
  309. <if test="contactAddress != null">contact_address = #{contactAddress},</if>
  310. <if test="categoryId != null">category_id = #{categoryId},</if>
  311. <if test="categoryName != null">category_name = #{categoryName},</if>
  312. <if test="proposalType != null">proposal_type = #{proposalType},</if>
  313. <if test="proposalContent != null">proposal_content = #{proposalContent},</if>
  314. <if test="isJointly != null">is_jointly = #{isJointly},</if>
  315. <if test="isPublicity != null">is_publicity = #{isPublicity},</if>
  316. <if test="contentPublicity != null">content_publicity = #{contentPublicity},</if>
  317. <if test="isSurvey != null">is_survey = #{isSurvey},</if>
  318. <if test="isFirst != null">is_first = #{isFirst},</if>
  319. <if test="isPerson != null">is_person = #{isPerson},</if>
  320. <if test="isRecord != null">is_record = #{isRecord},</if>
  321. <if test="negotiateType != null">negotiate_type = #{negotiateType},</if>
  322. <if test="proposedContractor != null">proposed_contractor = #{proposedContractor},</if>
  323. <if test="proposalProgress != null">proposal_progress = #{proposalProgress},</if>
  324. <if test="backReason != null">back_reason = #{backReason},</if>
  325. <if test="rollingProcess != null">rolling_process = #{rollingProcess},</if>
  326. <if test="complexType != null">complex_type = #{complexType},</if>
  327. <if test="isCasesTogether != null">is_cases_together = #{isCasesTogether},</if>
  328. <if test="uniteProposalId != null">unite_proposal_id = #{uniteProposalId},</if>
  329. <if test="satisfaction != null">satisfaction = #{satisfaction},</if>
  330. <if test="membersOpinion != null">members_opinion = #{membersOpinion},</if>
  331. <if test="cbdwdfwy != null "> cbdwdfwy = #{cbdwdfwy},</if>
  332. <if test="zxSatisfaction != null "> zx_satisfaction = #{zxSatisfaction},</if>
  333. <if test="zxOpinion != null "> zx_opinion = #{zxOpinion},</if>
  334. <if test="isKeyPoint != null "> is_key_point = #{isKeyPoint},</if>
  335. <if test="keyPointArgument != null "> key_point_argument = #{keyPointArgument},</if>
  336. <if test="isOutstanding != null "> is_outstanding = #{isOutstanding},</if>
  337. <if test="outstandingArgument != null "> outstanding_argument = #{outstandingArgument},</if>
  338. <if test="createBy != null">create_by = #{createBy},</if>
  339. <if test="createTime != null">create_time = #{createTime},</if>
  340. <if test="updateBy != null">update_by = #{updateBy},</if>
  341. <if test="updateTime != null">update_time = #{updateTime},</if>
  342. <if test="remark != null">remark = #{remark},</if>
  343. </trim>
  344. where proposal_id = #{proposalId}
  345. </update>
  346. <delete id="deleteProposalInfoByProposalId" parameterType="Long">
  347. delete from proposal_info where proposal_id = #{proposalId}
  348. </delete>
  349. <delete id="deleteProposalInfoByProposalIds" parameterType="String">
  350. delete from proposal_info where proposal_id in
  351. <foreach item="proposalId" collection="array" open="(" separator="," close=")">
  352. #{proposalId}
  353. </foreach>
  354. </delete>
  355. </mapper>