ZsyzSbbzbMapper.xml 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226
  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.projectV2.ZsyzSbbzbMapper">
  6. <resultMap type="ZsyzSbbzb" id="ZsyzSbbzbResult">
  7. <result property="id" column="id"/>
  8. <result property="sbdw" column="sbdw"/>
  9. <result property="tbrq" column="tbrq"/>
  10. <result property="zszxfzr" column="zszxfzr"/>
  11. <result property="xmbh" column="xmbh"/>
  12. <result property="xmxsmc" column="xmxsmc"/>
  13. <result property="sfwlhxxxm" column="sfwlhxxxm"/>
  14. <result property="yzdqId" column="yzdq_id"/>
  15. <result property="yzdqName" column="yzdq_name"/>
  16. <result property="yzssName" column="yzss_name"/>
  17. <result property="ntze" column="ntze"/>
  18. <result property="cylxId" column="cylx_id"/>
  19. <result property="cylxName" column="cylx_name"/>
  20. <result property="xmlb" column="xmlb"/>
  21. <result property="tzlb" column="tzlb"/>
  22. <result property="nlhd" column="nlhd"/>
  23. <result property="czpt" column="czpt"/>
  24. <result property="tzzt" column="tzzt"/>
  25. <result property="xmjz" column="xmjz"/>
  26. <result property="gtzzrsfzhm" column="gtzzrsfzhm"/>
  27. <result property="qytzrxyzdm" column="qytzrxyzdm"/>
  28. <result property="qybj" column="qybj"/>
  29. <result property="tzfjj" column="tzfjj"/>
  30. <result property="sndxse" column="sndxse"/>
  31. <result property="sndnse" column="sndnse"/>
  32. <result property="tzrxm" column="tzrxm"/>
  33. <result property="tzrzw" column="tzrzw"/>
  34. <result property="tzrdh" column="tzrdh"/>
  35. <result property="xmjj" column="xmjj"/>
  36. <result property="name" column="name"/>
  37. <result property="strq" column="strq"/>
  38. <result property="phone" column="phone"/>
  39. <result property="zw" column="zw"/>
  40. <result property="userId" column="user_id"/>
  41. <result property="createBy" column="create_by"/>
  42. <result property="type" column="type"/>
  43. <result property="progress" column="progress"/>
  44. <result property="xmStatus" column="xm_status"/>
  45. <result property="deptId" column="dept_id"/>
  46. <result property="createTime" column="create_time"/>
  47. <result property="updateBy" column="update_by"/>
  48. <result property="isDel" column="is_del"/>
  49. <result property="updateTime" column="update_time"/>
  50. <result property="remark" column="remark"/>
  51. <result property="cjdId" column="cjd_id"/>
  52. <result property="cjdName" column="cjd_name"/>
  53. <result property="isMeet" column="is_meet"/>
  54. <result property="meetRemark" column="meet_remark"/>
  55. <result property="shjg" column="shjg"/>
  56. <result property="shsj" column="shsj"/>
  57. <result property="psnr" column="psnr"/>
  58. <result property="czwt" column="czwt"/>
  59. <association property="zsyzQyxx" javaType="ZsyzQyxx" resultMap="ZsyzQyxxResult"/>
  60. <association property="zsyzKgxx" javaType="ZsyzKgxx" resultMap="ZsyzKgxxResult"/>
  61. <association property="zsyzTcxx" javaType="ZsyzTcxx" resultMap="ZsyzTcxxResult"/>
  62. <collection property="shyjList" javaType="java.util.List" resultMap="ZsyzShyjResult"/>
  63. <collection property="zsyzJzqkList" javaType="java.util.List" resultMap="ZsyzJzqkResult"/>
  64. </resultMap>
  65. <!--签约信息-->
  66. <resultMap type="ZsyzQyxx" id="ZsyzQyxxResult">
  67. <result property="id" column="id"/>
  68. <result property="xmId" column="xm_id"/>
  69. <result property="xmbh" column="xmbh"/>
  70. <result property="xmmc" column="xmmc"/>
  71. <result property="dfqyr" column="dfqyr"/>
  72. <result property="wfqyr" column="wfqyr"/>
  73. <result property="tbrq" column="tbrq"/>
  74. <result property="qyrq" column="qyrq"/>
  75. <result property="xytze" column="xytze"/>
  76. <result property="swzj" column="swzj"/>
  77. <result property="gdzctze" column="gdzctze"/>
  78. <result property="xmgjrxm" column="xmgjrxm"/>
  79. <result property="xmgjrzw" column="xmgjrzw"/>
  80. <result property="xmgjrsjh" column="xmgjrsjh"/>
  81. <result property="xmszd" column="xmszd"/>
  82. <result property="sshy" column="sshy"/>
  83. <result property="tzfs" column="tzfs"/>
  84. <result property="jsfs" column="jsfs"/>
  85. <result property="sfys" column="sfys"/>
  86. <result property="jsnr" column="jsnr"/>
  87. <result property="zlcf" column="zlcf"/>
  88. <result property="gdmj" column="gdmj"/>
  89. <result property="zcqymc" column="zcqymc"/>
  90. <result property="zcrq" column="zcrq"/>
  91. <result property="zczb" column="zczb"/>
  92. <result property="frdb" column="frdb"/>
  93. <result property="lxfs" column="lxfs"/>
  94. <result property="jyfw" column="jyfw"/>
  95. <result property="lxrq" column="lxrq"/>
  96. <result property="nkgrq" column="nkgrq"/>
  97. <result property="path" column="path"/>
  98. <result property="createBy" column="create_by"/>
  99. <result property="createTime" column="create_time"/>
  100. <result property="updateBy" column="update_by"/>
  101. <result property="updateTime" column="update_time"/>
  102. <result property="remark" column="remark"/>
  103. <result property="czwt" column="czwt"/>
  104. </resultMap>
  105. <!--开工信息-->
  106. <resultMap type="ZsyzKgxx" id="ZsyzKgxxResult">
  107. <result property="id" column="id"/>
  108. <result property="xmId" column="xm_id"/>
  109. <result property="xmbh" column="xmbh"/>
  110. <result property="xmmc" column="xmmc"/>
  111. <result property="kgrq" column="kgrq"/>
  112. <result property="njgrq" column="njgrq"/>
  113. <result property="sscrq" column="sscrq"/>
  114. <result property="ntcsj" column="ntcsj"/>
  115. <result property="rtsj" column="rtsj"/>
  116. <result property="nrtsj" column="nrtsj"/>
  117. <result property="kggjrsjh" column="kggjrsjh"/>
  118. <result property="createBy" column="create_by"/>
  119. <result property="createTime" column="create_time"/>
  120. <result property="updateBy" column="update_by"/>
  121. <result property="updateTime" column="update_time"/>
  122. <result property="remark" column="remark"/>
  123. <result property="czwt" column="czwt"/>
  124. </resultMap>
  125. <!--投产信息-->
  126. <resultMap type="ZsyzTcxx" id="ZsyzTcxxResult">
  127. <result property="id" column="id"/>
  128. <result property="xmId" column="xm_id"/>
  129. <result property="xmbh" column="xmbh"/>
  130. <result property="xmmc" column="xmmc"/>
  131. <result property="tcrq" column="tcrq"/>
  132. <result property="rgsj" column="rgsj"/>
  133. <result property="nrgsj" column="nrgsj"/>
  134. <result property="tcgjrsjh" column="tcgjrsjh"/>
  135. <result property="sjdze" column="sjdze"/>
  136. <result property="ydmj" column="ydmj"/>
  137. <result property="tdcr" column="tdcr"/>
  138. <result property="xjcf" column="xjcf"/>
  139. <result property="cftr" column="cftr"/>
  140. <result property="sbqd" column="sbqd"/>
  141. <result property="sbfp" column="sbfp"/>
  142. <result property="sbht" column="sbht"/>
  143. <result property="fkpz" column="fkpz"/>
  144. <result property="zlcf" column="zlcf"/>
  145. <result property="zlcftr" column="zlcftr"/>
  146. <result property="zlsbqd" column="zlsbqd"/>
  147. <result property="zlsbfp" column="zlsbfp"/>
  148. <result property="zlsbht" column="zlsbht"/>
  149. <result property="zlfkpz" column="zlfkpz"/>
  150. <result property="sjss" column="sjss"/>
  151. <result property="lxy" column="lxy"/>
  152. <result property="jnsb" column="jnsb"/>
  153. <result property="zbtr" column="zbtr"/>
  154. <result property="ndsjss" column="ndsjss"/>
  155. <result property="qt" column="qt"/>
  156. <result property="createBy" column="create_by"/>
  157. <result property="createTime" column="create_time"/>
  158. <result property="updateBy" column="update_by"/>
  159. <result property="updateTime" column="update_time"/>
  160. <result property="remark" column="remark"/>
  161. <result property="czwt" column="czwt"/>
  162. </resultMap>
  163. <resultMap type="ZsyzShyj" id="ZsyzShyjResult">
  164. <result property="id" column="id"/>
  165. <result property="xmId" column="xm_id"/>
  166. <result property="xmbh" column="xmbh"/>
  167. <result property="deptId" column="dept_id"/>
  168. <result property="shrxm" column="shrxm"/>
  169. <result property="xmjd" column="xmjd"/>
  170. <result property="xmmc" column="xmmc"/>
  171. <result property="shjg" column="shjg"/>
  172. <result property="shyj" column="shyj"/>
  173. <result property="shsj" column="shsj"/>
  174. <result property="createBy" column="create_by"/>
  175. <result property="createTime" column="create_time"/>
  176. <result property="updateBy" column="update_by"/>
  177. <result property="updateTime" column="update_time"/>
  178. <result property="remark" column="remark"/>
  179. </resultMap>
  180. <resultMap type="ZsyzJzqk" id="ZsyzJzqkResult">
  181. <result property="id" column="id" />
  182. <result property="xmId" column="xm_id" />
  183. <result property="xmbh" column="xmbh" />
  184. <result property="xmmc" column="xmmc" />
  185. <result property="deptId" column="dept_id" />
  186. <result property="deptName" column="dept_name" />
  187. <result property="qtrName" column="qtr_name" />
  188. <result property="qtTime" column="qt_time" />
  189. <result property="qtrxz" column="qtrxz" />
  190. <result property="qtrdwzw" column="qtrdwzw" />
  191. <result property="phone" column="phone" />
  192. <result property="blsx" column="blsx" />
  193. <result property="dbsx" column="dbsx" />
  194. <result property="jzqk" column="jzqk" />
  195. <result property="czwt" column="czwt" />
  196. <result property="jjjy" column="jjjy" />
  197. <result property="gzjh" column="gzjh" />
  198. <result property="createBy" column="create_by" />
  199. <result property="createTime" column="create_time" />
  200. <result property="updateBy" column="update_by" />
  201. <result property="updateTime" column="update_time" />
  202. <result property="remark" column="remark" />
  203. </resultMap>
  204. <sql id="selectZsyzSbbzbVo">
  205. select id,
  206. sbdw,
  207. tbrq,
  208. zszxfzr,
  209. xmbh,
  210. xmxsmc,
  211. sfwlhxxxm,
  212. yzdq_id,
  213. yzdq_name,
  214. yzss_name,
  215. ntze,
  216. cylx_id,
  217. cylx_name,
  218. xmlb,
  219. tzlb,
  220. nlhd,
  221. czpt,
  222. tzzt,
  223. xmjz,
  224. gtzzrsfzhm,
  225. qytzrxyzdm,
  226. qybj,
  227. tzfjj,
  228. sndxse,
  229. sndnse,
  230. tzrxm,
  231. tzrzw,
  232. tzrdh,
  233. xmjj,
  234. name,
  235. strq,
  236. phone,
  237. zw,
  238. user_id,
  239. create_by,
  240. type,
  241. progress,
  242. xm_status,
  243. dept_id,
  244. create_time,
  245. update_by,
  246. is_del,
  247. update_time,
  248. remark,
  249. cjd_id,
  250. cjd_name,
  251. is_meet,
  252. meet_remark,
  253. shjg,psnr,czwt
  254. from zsyz_sbbzb
  255. </sql>
  256. <select id="selectZsyzSbbzbList" parameterType="ZsyzSbbzb" resultMap="ZsyzSbbzbResult">
  257. select s.id, s.sbdw, s.tbrq, s.zszxfzr, s.xmbh, s.xmxsmc, s.sfwlhxxxm, s.yzdq_id, s.yzdq_name, s.yzss_name,
  258. s.ntze, s.cylx_id, s.cylx_name, s.xmlb,
  259. s.tzlb, s.nlhd, s.czpt, s.tzzt, s.xmjz, s.gtzzrsfzhm, s.qytzrxyzdm, s.qybj, s.tzfjj, s.sndxse, s.sndnse,
  260. s.tzrxm, s.tzrzw, s.tzrdh, s.xmjj, s.name,
  261. s.strq, s.phone, s.zw, s.user_id, s.create_by, s.type, s.progress,s.xm_status, s.dept_id, s.create_time, s.update_by,
  262. s.is_del, s.update_time, s.remark, s.cjd_id,
  263. s.cjd_name, s.is_meet, s.meet_remark,s.shjg,s.psnr,s.czwt,
  264. q.id, q.xm_id, q.xmbh, q.xmmc, q.dfqyr, q.wfqyr, q.tbrq, q.qyrq,q.xytzely, q.xytze, q.swzj, q.gdzctze,
  265. q.xmgjrxm,q.xmgjrzw,q.xmgjrsjh,
  266. q.xmszd, q.sshy, q.tzfs, q.jsfs, q.sfys, q.jsnr,
  267. q.zlcf,q.gdmj, q.zcqymc, q.zcrq, q.zczb, q.frdb, q.lxfs, q.jyfw, q.lxrq, q.nkgrq,q. path, q.create_by,
  268. q.create_time,
  269. q.update_by, q.update_time, q.remark,
  270. k.id, k.xm_id, k.xmbh, k.xmmc, k.kgrq, k.njgrq, k.sscrq, k.ntcsj, k.rtsj, k.nrtsj, k.kggjrsjh, k.create_by,
  271. k.create_time, k.update_by,
  272. k.update_time, k.remark,
  273. t.id, t.xm_id, t.xmbh, t.xmmc, t.tcrq, t.rgsj, t.nrgsj, t.tcgjrsjh, t.sjdze, t.ydmj, t.tdcr, t.xjcf, t.cftr,
  274. t.sbqd, t.sbfp, t.sbht, t.fkpz, t.zlcf,
  275. t.zlcftr, t.zlsbqd, t.zlsbfp, t.zlsbht, t.zlfkpz, t.sjss, t.lxy, t.jnsb, t.zbtr, t.ndsjss, t.qt, t.create_by,
  276. t.create_time, t.update_by,
  277. t.update_time, t.remark
  278. from zsyz_sbbzb s
  279. left join zsyz_qyxx q on s.id = q.xm_id
  280. left join zsyz_kgxx k on s.id = k.xm_id
  281. left join zsyz_tcxx t on s.id = t.xm_id
  282. <where>
  283. s.is_del = 'N'
  284. <if test="sbdw != null and sbdw != ''">and s.sbdw = #{sbdw}</if>
  285. <if test="tbrq != null ">and s.tbrq = #{tbrq}</if>
  286. <if test="zszxfzr != null and zszxfzr != ''">and s.zszxfzr = #{zszxfzr}</if>
  287. <if test="xmbh != null and xmbh != ''">and s.xmbh like concat('%', #{xmbh}, '%')</if>
  288. <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc like concat('%', #{xmxsmc}, '%')</if>
  289. <if test="sfwlhxxxm != null and sfwlhxxxm != ''">and s.sfwlhxxxm = #{sfwlhxxxm}</if>
  290. <if test="yzdqId != null and yzdqId != ''">and s.yzdq_id = #{yzdqId}</if>
  291. <if test="yzdqName != null and yzdqName != ''">and s.yzdq_name like concat('%', #{yzdqName}, '%')</if>
  292. <if test="yzssName != null and yzssName != ''">and s.yzss_name like concat('%', #{yzssName}, '%')</if>
  293. <if test="ntze != null and ntze != ''">and s.ntze = #{ntze}</if>
  294. <if test="cylxId != null and cylxId != ''">and s.cylx_id = #{cylxId}</if>
  295. <if test="cylxName != null and cylxName != ''">and s.cylx_name like concat('%', #{cylxName}, '%')</if>
  296. <if test="xmlb != null and xmlb != ''">and s.xmlb = #{xmlb}</if>
  297. <if test="tzlb != null and tzlb != ''">and s.tzlb = #{tzlb}</if>
  298. <if test="nlhd != null and nlhd != ''">and s.nlhd = #{nlhd}</if>
  299. <if test="czpt != null and czpt != ''">and s.czpt = #{czpt}</if>
  300. <if test="tzzt != null and tzzt != ''">and s.tzzt = #{tzzt}</if>
  301. <if test="xmjz != null and xmjz != ''">and s.xmjz = #{xmjz}</if>
  302. <if test="gtzzrsfzhm != null and gtzzrsfzhm != ''">and s.gtzzrsfzhm = #{gtzzrsfzhm}</if>
  303. <if test="qytzrxyzdm != null and qytzrxyzdm != ''">and s.qytzrxyzdm = #{qytzrxyzdm}</if>
  304. <if test="qybj != null and qybj != ''">and s.qybj = #{qybj}</if>
  305. <if test="tzfjj != null and tzfjj != ''">and s.tzfjj = #{tzfjj}</if>
  306. <if test="sndxse != null and sndxse != ''">and s.sndxse = #{sndxse}</if>
  307. <if test="sndnse != null and sndnse != ''">and s.sndnse = #{sndnse}</if>
  308. <if test="tzrxm != null and tzrxm != ''">and s.tzrxm = #{tzrxm}</if>
  309. <if test="tzrzw != null and tzrzw != ''">and s.tzrzw = #{tzrzw}</if>
  310. <if test="tzrdh != null and tzrdh != ''">and s.tzrdh = #{tzrdh}</if>
  311. <if test="xmjj != null and xmjj != ''">and s.xmjj = #{xmjj}</if>
  312. <if test="name != null and name != ''">and s.name like concat('%', #{name}, '%')</if>
  313. <if test="strq != null ">and s.strq = #{strq}</if>
  314. <if test="phone != null and phone != ''">and s.phone = #{phone}</if>
  315. <if test="zw != null and zw != ''">and s.zw = #{zw}</if>
  316. <if test="userId != null ">and s.user_id = #{userId}</if>
  317. <if test="type != null and type != ''">and s.type = #{type}</if>
  318. <if test="progress != null and progress != ''">and find_in_set(s.progress , #{progress})</if>
  319. <if test="xmStatus != null and xmStatus != ''">and s.xm_status = #{xmStatus}</if>
  320. <if test="isDel != null and isDel != ''">and s.is_del = #{isDel}</if>
  321. <if test="cjdId != null ">and s.cjd_id = #{cjdId}</if>
  322. <if test="cjdName != null and cjdName != ''">and s.cjd_name like concat('%', #{cjdName}, '%')</if>
  323. <if test="isMeet != null and isMeet != ''">and s.is_meet = #{isMeet}</if>
  324. <if test="meetRemark != null and meetRemark != ''">and s.meet_remark = #{meetRemark}</if>
  325. <if test="shjg != null and shjg != ''">and s.shjg = #{shjg}</if>
  326. <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
  327. AND date_format(s.create_time,'%Y%m%d') &gt;= date_format(#{params.beginTime},'%Y%m%d')
  328. </if>
  329. <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
  330. AND date_format(s.create_time,'%Y%m%d') &lt;= date_format(#{params.endTime},'%Y%m%d')
  331. </if>
  332. </where>
  333. <!-- 数据范围过滤 -->
  334. ${params.dataScope}
  335. order by s.update_time desc
  336. </select>
  337. <select id="selectZsyzSbbzbListPs" parameterType="ZsyzSbbzb" resultMap="ZsyzSbbzbResult">
  338. select s.id, s.sbdw, s.tbrq, s.zszxfzr, s.xmbh, s.xmxsmc, s.sfwlhxxxm, s.yzdq_id, s.yzdq_name, s.yzss_name,
  339. s.ntze, s.cylx_id, s.cylx_name, s.xmlb,
  340. s.tzlb, s.nlhd, s.czpt, s.tzzt, s.xmjz, s.gtzzrsfzhm, s.qytzrxyzdm, s.qybj, s.tzfjj, s.sndxse, s.sndnse,
  341. s.tzrxm, s.tzrzw, s.tzrdh, s.xmjj, s.name,
  342. s.strq, s.phone, s.zw, s.user_id, s.create_by, s.type, s.progress,s.xm_status, s.dept_id, s.create_time, s.update_by,
  343. s.is_del, s.update_time, s.remark, s.cjd_id,
  344. s.cjd_name, s.is_meet, s.meet_remark,s.shjg,s.psnr,s.czwt,
  345. q.id, q.xm_id, q.xmbh, q.xmmc, q.dfqyr, q.wfqyr, q.tbrq, q.qyrq,q.xytzely, q.xytze, q.swzj, q.gdzctze,
  346. q.xmgjrxm,q.xmgjrzw,q.xmgjrsjh,
  347. q.xmszd, q.sshy, q.tzfs, q.jsfs, q.sfys, q.jsnr,
  348. q.zlcf,q.gdmj, q.zcqymc, q.zcrq, q.zczb, q.frdb, q.lxfs, q.jyfw, q.lxrq, q.nkgrq,q. path, q.create_by,
  349. q.create_time,
  350. q.update_by, q.update_time, q.remark,
  351. k.id, k.xm_id, k.xmbh, k.xmmc, k.kgrq, k.njgrq, k.sscrq, k.ntcsj, k.rtsj, k.nrtsj, k.kggjrsjh, k.create_by,
  352. k.create_time, k.update_by,
  353. k.update_time, k.remark,
  354. t.id, t.xm_id, t.xmbh, t.xmmc, t.tcrq, t.rgsj, t.nrgsj, t.tcgjrsjh, t.sjdze, t.ydmj, t.tdcr, t.xjcf, t.cftr,
  355. t.sbqd, t.sbfp, t.sbht, t.fkpz, t.zlcf,
  356. t.zlcftr, t.zlsbqd, t.zlsbfp, t.zlsbht, t.zlfkpz, t.sjss, t.lxy, t.jnsb, t.zbtr, t.ndsjss, t.qt, t.create_by,
  357. t.create_time, t.update_by,
  358. t.update_time, t.remark
  359. from zsyz_sbbzb s
  360. left join zsyz_qyxx q on s.id = q.xm_id
  361. left join zsyz_kgxx k on s.id = k.xm_id
  362. left join zsyz_tcxx t on s.id = t.xm_id
  363. <where>
  364. s.is_del = 'N' and s.psnr is not null
  365. <if test="sbdw != null and sbdw != ''">and s.sbdw = #{sbdw}</if>
  366. <if test="tbrq != null ">and s.tbrq = #{tbrq}</if>
  367. <if test="zszxfzr != null and zszxfzr != ''">and s.zszxfzr = #{zszxfzr}</if>
  368. <if test="xmbh != null and xmbh != ''">and s.xmbh like concat('%', #{xmbh}, '%')</if>
  369. <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc like concat('%', #{xmxsmc}, '%')</if>
  370. <if test="sfwlhxxxm != null and sfwlhxxxm != ''">and s.sfwlhxxxm = #{sfwlhxxxm}</if>
  371. <if test="yzdqId != null and yzdqId != ''">and s.yzdq_id = #{yzdqId}</if>
  372. <if test="yzdqName != null and yzdqName != ''">and s.yzdq_name like concat('%', #{yzdqName}, '%')</if>
  373. <if test="yzssName != null and yzssName != ''">and s.yzss_name like concat('%', #{yzssName}, '%')</if>
  374. <if test="ntze != null and ntze != ''">and s.ntze = #{ntze}</if>
  375. <if test="cylxId != null and cylxId != ''">and s.cylx_id = #{cylxId}</if>
  376. <if test="cylxName != null and cylxName != ''">and s.cylx_name like concat('%', #{cylxName}, '%')</if>
  377. <if test="xmlb != null and xmlb != ''">and s.xmlb = #{xmlb}</if>
  378. <if test="tzlb != null and tzlb != ''">and s.tzlb = #{tzlb}</if>
  379. <if test="nlhd != null and nlhd != ''">and s.nlhd = #{nlhd}</if>
  380. <if test="czpt != null and czpt != ''">and s.czpt = #{czpt}</if>
  381. <if test="tzzt != null and tzzt != ''">and s.tzzt = #{tzzt}</if>
  382. <if test="xmjz != null and xmjz != ''">and s.xmjz = #{xmjz}</if>
  383. <if test="gtzzrsfzhm != null and gtzzrsfzhm != ''">and s.gtzzrsfzhm = #{gtzzrsfzhm}</if>
  384. <if test="qytzrxyzdm != null and qytzrxyzdm != ''">and s.qytzrxyzdm = #{qytzrxyzdm}</if>
  385. <if test="qybj != null and qybj != ''">and s.qybj = #{qybj}</if>
  386. <if test="tzfjj != null and tzfjj != ''">and s.tzfjj = #{tzfjj}</if>
  387. <if test="sndxse != null and sndxse != ''">and s.sndxse = #{sndxse}</if>
  388. <if test="sndnse != null and sndnse != ''">and s.sndnse = #{sndnse}</if>
  389. <if test="tzrxm != null and tzrxm != ''">and s.tzrxm = #{tzrxm}</if>
  390. <if test="tzrzw != null and tzrzw != ''">and s.tzrzw = #{tzrzw}</if>
  391. <if test="tzrdh != null and tzrdh != ''">and s.tzrdh = #{tzrdh}</if>
  392. <if test="xmjj != null and xmjj != ''">and s.xmjj = #{xmjj}</if>
  393. <if test="name != null and name != ''">and s.name like concat('%', #{name}, '%')</if>
  394. <if test="strq != null ">and s.strq = #{strq}</if>
  395. <if test="phone != null and phone != ''">and s.phone = #{phone}</if>
  396. <if test="zw != null and zw != ''">and s.zw = #{zw}</if>
  397. <if test="userId != null ">and s.user_id = #{userId}</if>
  398. <if test="type != null and type != ''">and s.type = #{type}</if>
  399. <if test="progress != null and progress != ''">and find_in_set(s.progress , #{progress})</if>
  400. <if test="xmStatus != null and xmStatus != ''">and xm_status = #{xmStatus})</if>
  401. <if test="isDel != null and isDel != ''">and s.is_del = #{isDel}</if>
  402. <if test="cjdId != null ">and s.cjd_id = #{cjdId}</if>
  403. <if test="cjdName != null and cjdName != ''">and s.cjd_name like concat('%', #{cjdName}, '%')</if>
  404. <if test="isMeet != null and isMeet != ''">and s.is_meet = #{isMeet}</if>
  405. <if test="meetRemark != null and meetRemark != ''">and s.meet_remark = #{meetRemark}</if>
  406. <if test="shjg != null and shjg != ''">and s.shjg = #{shjg}</if>
  407. <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
  408. AND date_format(s.create_time,'%Y%m%d') &gt;= date_format(#{params.beginTime},'%Y%m%d')
  409. </if>
  410. <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
  411. AND date_format(s.create_time,'%Y%m%d') &lt;= date_format(#{params.endTime},'%Y%m%d')
  412. </if>
  413. </where>
  414. <!-- 数据范围过滤 -->
  415. ${params.dataScope}
  416. order by s.update_time desc
  417. </select>
  418. <select id="selectZsyzSbbzbById" parameterType="Long" resultMap="ZsyzSbbzbResult">
  419. select s.id, s.sbdw, s.tbrq, s.zszxfzr, s.xmbh, s.xmxsmc, s.sfwlhxxxm, s.yzdq_id, s.yzdq_name, s.yzss_name,
  420. s.ntze, s.cylx_id, s.cylx_name, s.xmlb,
  421. s.tzlb, s.nlhd, s.czpt, s.tzzt, s.xmjz, s.gtzzrsfzhm, s.qytzrxyzdm, s.qybj, s.tzfjj, s.sndxse, s.sndnse,
  422. s.tzrxm, s.tzrzw, s.tzrdh, s.xmjj, s.name,
  423. s.strq, s.phone, s.zw, s.user_id, s.create_by, s.type, s.progress,s.xm_status, s.dept_id, s.create_time, s.update_by,
  424. s.is_del, s.update_time, s.remark, s.cjd_id,
  425. s.cjd_name, s.is_meet, s.meet_remark,s.shjg,s.psnr,s.czwt
  426. from zsyz_sbbzb s
  427. where s.id = #{id} and s.is_del = 'N'
  428. </select>
  429. <select id="selectZsyzSbbzbListDc" parameterType="ZsyzSbbzb" resultMap="ZsyzSbbzbResult">
  430. select s.id, s.sbdw, s.tbrq, s.zszxfzr, s.xmbh, s.xmxsmc, s.sfwlhxxxm, s.yzdq_id, s.yzdq_name, s.yzss_name,
  431. s.ntze, s.cylx_id, s.cylx_name, s.xmlb,
  432. s.tzlb, s.nlhd, s.czpt, s.tzzt, s.xmjz, s.gtzzrsfzhm, s.qytzrxyzdm, s.qybj, s.tzfjj, s.sndxse, s.sndnse,
  433. s.tzrxm, s.tzrzw, s.tzrdh, s.xmjj, s.name,
  434. s.strq, s.phone, s.zw, s.user_id, s.create_by, s.type, s.progress,s.xm_status, s.dept_id, s.create_time, s.update_by,
  435. s.is_del, s.update_time, s.remark, s.cjd_id,
  436. s.cjd_name, s.is_meet, s.meet_remark,s.psnr,s.czwt,
  437. q.id, q.xm_id, q.xmbh, q.xmmc, q.dfqyr, q.wfqyr, q.tbrq, q.qyrq,q.xytzely, q.xytze, q.swzj, q.gdzctze,
  438. q.xmgjrxm,q.xmgjrzw,q.xmgjrsjh,
  439. q.xmszd, q.sshy, q.tzfs, q.jsfs, q.sfys, q.jsnr,
  440. q.zlcf,q.gdmj, q.zcqymc, q.zcrq, q.zczb, q.frdb, q.lxfs, q.jyfw, q.lxrq, q.nkgrq,q. path, q.create_by,
  441. q.create_time,
  442. q.update_by, q.update_time, q.remark,
  443. k.id, k.xm_id, k.xmbh, k.xmmc, k.kgrq, k.njgrq, k.sscrq, k.ntcsj, k.rtsj, k.nrtsj, k.kggjrsjh, k.create_by,
  444. k.create_time, k.update_by,
  445. k.update_time, k.remark,
  446. t.id, t.xm_id, t.xmbh, t.xmmc, t.tcrq, t.rgsj, t.nrgsj, t.tcgjrsjh, t.sjdze, t.ydmj, t.tdcr, t.xjcf, t.cftr,
  447. t.sbqd, t.sbfp, t.sbht, t.fkpz, t.zlcf,
  448. t.zlcftr, t.zlsbqd, t.zlsbfp, t.zlsbht, t.zlfkpz, t.sjss, t.lxy, t.jnsb, t.zbtr, t.ndsjss, t.qt, t.create_by,
  449. t.create_time, t.update_by,
  450. t.update_time, t.remark,
  451. j.id, j.xm_id, j.xmbh, j.xmmc, j.dept_id, j.dept_name, j.qtr_name, j.qt_time, j.qtrxz, j.qtrdwzw, j.phone, j.blsx,
  452. j.dbsx, j.jzqk, j.czwt, j.jjjy, j.gzjh
  453. from zsyz_sbbzb s
  454. left join zsyz_qyxx q on s.id = q.xm_id
  455. left join zsyz_kgxx k on s.id = k.xm_id
  456. left join zsyz_tcxx t on s.id = t.xm_id
  457. left join zsyz_jzqk j on s.id = j.xm_id
  458. <where>
  459. s.is_del = 'N'
  460. <if test="sbdw != null and sbdw != ''">and s.sbdw = #{sbdw}</if>
  461. <if test="tbrq != null ">and s.tbrq = #{tbrq}</if>
  462. <if test="zszxfzr != null and zszxfzr != ''">and s.zszxfzr = #{zszxfzr}</if>
  463. <if test="xmbh != null and xmbh != ''">and s.xmbh like concat('%', #{xmbh}, '%')</if>
  464. <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc like concat('%', #{xmxsmc}, '%')</if>
  465. <if test="sfwlhxxxm != null and sfwlhxxxm != ''">and s.sfwlhxxxm = #{sfwlhxxxm}</if>
  466. <if test="yzdqId != null and yzdqId != ''">and s.yzdq_id = #{yzdqId}</if>
  467. <if test="yzdqName != null and yzdqName != ''">and s.yzdq_name like concat('%', #{yzdqName}, '%')</if>
  468. <if test="yzssName != null and yzssName != ''">and s.yzss_name like concat('%', #{yzssName}, '%')</if>
  469. <if test="ntze != null and ntze != ''">and s.ntze = #{ntze}</if>
  470. <if test="cylxId != null and cylxId != ''">and s.cylx_id = #{cylxId}</if>
  471. <if test="cylxName != null and cylxName != ''">and s.cylx_name like concat('%', #{cylxName}, '%')</if>
  472. <if test="xmlb != null and xmlb != ''">and s.xmlb = #{xmlb}</if>
  473. <if test="tzlb != null and tzlb != ''">and s.tzlb = #{tzlb}</if>
  474. <if test="nlhd != null and nlhd != ''">and s.nlhd = #{nlhd}</if>
  475. <if test="czpt != null and czpt != ''">and s.czpt = #{czpt}</if>
  476. <if test="tzzt != null and tzzt != ''">and s.tzzt = #{tzzt}</if>
  477. <if test="xmjz != null and xmjz != ''">and s.xmjz = #{xmjz}</if>
  478. <if test="gtzzrsfzhm != null and gtzzrsfzhm != ''">and s.gtzzrsfzhm = #{gtzzrsfzhm}</if>
  479. <if test="qytzrxyzdm != null and qytzrxyzdm != ''">and s.qytzrxyzdm = #{qytzrxyzdm}</if>
  480. <if test="qybj != null and qybj != ''">and s.qybj = #{qybj}</if>
  481. <if test="tzfjj != null and tzfjj != ''">and s.tzfjj = #{tzfjj}</if>
  482. <if test="sndxse != null and sndxse != ''">and s.sndxse = #{sndxse}</if>
  483. <if test="sndnse != null and sndnse != ''">and s.sndnse = #{sndnse}</if>
  484. <if test="tzrxm != null and tzrxm != ''">and s.tzrxm = #{tzrxm}</if>
  485. <if test="tzrzw != null and tzrzw != ''">and s.tzrzw = #{tzrzw}</if>
  486. <if test="tzrdh != null and tzrdh != ''">and s.tzrdh = #{tzrdh}</if>
  487. <if test="xmjj != null and xmjj != ''">and s.xmjj = #{xmjj}</if>
  488. <if test="name != null and name != ''">and s.name like concat('%', #{name}, '%')</if>
  489. <if test="strq != null ">and s.strq = #{strq}</if>
  490. <if test="phone != null and phone != ''">and s.phone = #{phone}</if>
  491. <if test="zw != null and zw != ''">and s.zw = #{zw}</if>
  492. <if test="userId != null ">and s.user_id = #{userId}</if>
  493. <if test="type != null and type != ''">and s.type = #{type}</if>
  494. <if test="progress != null and progress != ''">and find_in_set(s.progress , #{progress})</if>
  495. <if test="xmStatus != null and xmStatus != ''">and s.xm_status = #{xmStatus}</if>
  496. <if test="deptId != null ">and s.dept_id = #{deptId}</if>
  497. <if test="isDel != null and isDel != ''">and s.is_del = #{isDel}</if>
  498. <if test="cjdId != null ">and s.cjd_id = #{cjdId}</if>
  499. <if test="cjdName != null and cjdName != ''">and s.cjd_name like concat('%', #{cjdName}, '%')</if>
  500. <if test="isMeet != null and isMeet != ''">and s.is_meet = #{isMeet}</if>
  501. <if test="meetRemark != null and meetRemark != ''">and s.meet_remark = #{meetRemark}</if>
  502. <if test="shjg != null and shjg != ''">and s.shjg = #{shjg}</if>
  503. <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
  504. AND date_format(s.create_time,'%Y%m%d') &gt;= date_format(#{params.beginTime},'%Y%m%d')
  505. </if>
  506. <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
  507. AND date_format(s.create_time,'%Y%m%d') &lt;= date_format(#{params.endTime},'%Y%m%d')
  508. </if>
  509. </where>
  510. <!-- 数据范围过滤 -->
  511. ${params.dataScope}
  512. order by s.update_time desc
  513. </select>
  514. <select id="selectZsyzSbbzbListByZp" resultMap="ZsyzSbbzbResult">
  515. SELECT * from ( select s.id,
  516. s.sbdw,
  517. s.tbrq,
  518. s.zszxfzr,
  519. s.xmbh,
  520. s.xmxsmc,
  521. s.sfwlhxxxm,
  522. s.yzdq_id,
  523. s.yzdq_name,
  524. s.yzss_name,
  525. s.ntze,
  526. s.cylx_id,
  527. s.cylx_name,
  528. s.xmlb,
  529. s.tzlb,
  530. s.nlhd,
  531. s.czpt,
  532. s.tzzt,
  533. s.xmjz,
  534. s.gtzzrsfzhm,
  535. s.qytzrxyzdm,
  536. s.qybj,
  537. s.tzfjj,
  538. s.sndxse,
  539. s.sndnse,
  540. s.tzrxm,
  541. s.tzrzw,
  542. s.tzrdh,
  543. s.xmjj,
  544. s.name,
  545. s.strq,
  546. s.phone,
  547. s.zw,
  548. s.user_id,
  549. s.create_by,
  550. s.type,
  551. s.progress,
  552. s.xm_status,
  553. s.dept_id,
  554. s.create_time,
  555. s.update_by,
  556. s.is_del,
  557. s.update_time,
  558. s.remark,
  559. s.cjd_id,
  560. s.cjd_name,
  561. s.is_meet,
  562. s.meet_remark,s.psnr,s.czwt
  563. from zsyz_project_dept d
  564. left join zsyz_sbbzb s on s.id = d.xm_id
  565. where s.is_del = 'N'
  566. and d.dept_id = #{deptId} and d.is_del = 'N' and d.dept_type = '2'
  567. <if test="xmbh != null and xmbh != ''">and s.xmbh like concat('%', #{xmbh}, '%')</if>
  568. <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc like concat('%', #{xmxsmc}, '%')</if>
  569. <if test="progress != null and progress != ''">and find_in_set(s.progress , #{progress})</if>
  570. <if test="xmStatus != null and xmStatus != ''">and s.xm_status = #{xmStatus}</if>
  571. <if test="cjdId != null ">and cjd_id = #{cjdId}</if>
  572. <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
  573. AND date_format(s.create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
  574. </if>
  575. <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
  576. AND date_format(s.create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
  577. </if>
  578. UNION
  579. select s.id,
  580. s.sbdw,
  581. s.tbrq,
  582. s.zszxfzr,
  583. s.xmbh,
  584. s.xmxsmc,
  585. s.sfwlhxxxm,
  586. s.yzdq_id,
  587. s.yzdq_name,
  588. s.yzss_name,
  589. s.ntze,
  590. s.cylx_id,
  591. s.cylx_name,
  592. s.xmlb,
  593. s.tzlb,
  594. s.nlhd,
  595. s.czpt,
  596. s.tzzt,
  597. s.xmjz,
  598. s.gtzzrsfzhm,
  599. s.qytzrxyzdm,
  600. s.qybj,
  601. s.tzfjj,
  602. s.sndxse,
  603. s.sndnse,
  604. s.tzrxm,
  605. s.tzrzw,
  606. s.tzrdh,
  607. s.xmjj,
  608. s.name,
  609. s.strq,
  610. s.phone,
  611. s.zw,
  612. s.user_id,
  613. s.create_by,
  614. s.type,
  615. s.progress,
  616. s.xm_status,
  617. s.dept_id,
  618. s.create_time,
  619. s.update_by,
  620. s.is_del,
  621. s.update_time,
  622. s.remark,
  623. s.cjd_id,
  624. s.cjd_name,
  625. s.is_meet,
  626. s.meet_remark,s.psnr,s.czwt
  627. from zsyz_sbbzb s
  628. where s.is_del = 'N'
  629. <if test="deptId != null and deptId != ''">and s.dept_id = #{deptId}</if>
  630. <if test="xmbh != null and xmbh != ''">and s.xmbh like concat('%', #{xmbh}, '%')</if>
  631. <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc like concat('%', #{xmxsmc}, '%')</if>
  632. <if test="progress != null and progress != ''">and find_in_set(s.progress , #{progress})</if>
  633. <if test="xmStatus != null and xmStatus != ''">and s.xm_status = #{xmStatus}</if>
  634. <if test="cjdId != null ">and cjd_id = #{cjdId}</if>
  635. <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
  636. AND date_format(s.create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
  637. </if>
  638. <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
  639. AND date_format(s.create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
  640. </if>
  641. )d
  642. order by d.update_time desc
  643. </select>
  644. <select id="selectZsyzSbbzbListByZpPs" resultMap="ZsyzSbbzbResult">
  645. SELECT * from ( select s.id,
  646. s.sbdw,
  647. s.tbrq,
  648. s.zszxfzr,
  649. s.xmbh,
  650. s.xmxsmc,
  651. s.sfwlhxxxm,
  652. s.yzdq_id,
  653. s.yzdq_name,
  654. s.yzss_name,
  655. s.ntze,
  656. s.cylx_id,
  657. s.cylx_name,
  658. s.xmlb,
  659. s.tzlb,
  660. s.nlhd,
  661. s.czpt,
  662. s.tzzt,
  663. s.xmjz,
  664. s.gtzzrsfzhm,
  665. s.qytzrxyzdm,
  666. s.qybj,
  667. s.tzfjj,
  668. s.sndxse,
  669. s.sndnse,
  670. s.tzrxm,
  671. s.tzrzw,
  672. s.tzrdh,
  673. s.xmjj,
  674. s.name,
  675. s.strq,
  676. s.phone,
  677. s.zw,
  678. s.user_id,
  679. s.create_by,
  680. s.type,
  681. s.progress,
  682. s.xm_status,
  683. s.dept_id,
  684. s.create_time,
  685. s.update_by,
  686. s.is_del,
  687. s.update_time,
  688. s.remark,
  689. s.cjd_id,
  690. s.cjd_name,
  691. s.is_meet,
  692. s.meet_remark,s.psnr,s.czwt
  693. from zsyz_project_dept d
  694. left join zsyz_sbbzb s on s.id = d.xm_id
  695. where s.is_del = 'N'
  696. and d.dept_id = #{deptId} and d.is_del = 'N' and d.dept_type = '2'
  697. <if test="xmbh != null and xmbh != ''">and s.xmbh like concat('%', #{xmbh}, '%')</if>
  698. <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc like concat('%', #{xmxsmc}, '%')</if>
  699. <if test="progress != null and progress != ''">and find_in_set(s.progress , #{progress})</if>
  700. <if test="xmStatus != null and xmStatus != ''">and s.xm_status = #{xmStatus}</if>
  701. <if test="cjdId != null ">and cjd_id = #{cjdId}</if>
  702. <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
  703. AND date_format(s.create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
  704. </if>
  705. <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
  706. AND date_format(s.create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
  707. </if>
  708. UNION
  709. select s.id,
  710. s.sbdw,
  711. s.tbrq,
  712. s.zszxfzr,
  713. s.xmbh,
  714. s.xmxsmc,
  715. s.sfwlhxxxm,
  716. s.yzdq_id,
  717. s.yzdq_name,
  718. s.yzss_name,
  719. s.ntze,
  720. s.cylx_id,
  721. s.cylx_name,
  722. s.xmlb,
  723. s.tzlb,
  724. s.nlhd,
  725. s.czpt,
  726. s.tzzt,
  727. s.xmjz,
  728. s.gtzzrsfzhm,
  729. s.qytzrxyzdm,
  730. s.qybj,
  731. s.tzfjj,
  732. s.sndxse,
  733. s.sndnse,
  734. s.tzrxm,
  735. s.tzrzw,
  736. s.tzrdh,
  737. s.xmjj,
  738. s.name,
  739. s.strq,
  740. s.phone,
  741. s.zw,
  742. s.user_id,
  743. s.create_by,
  744. s.type,
  745. s.progress,
  746. s.xm_status,
  747. s.dept_id,
  748. s.create_time,
  749. s.update_by,
  750. s.is_del,
  751. s.update_time,
  752. s.remark,
  753. s.cjd_id,
  754. s.cjd_name,
  755. s.is_meet,
  756. s.meet_remark,s.psnr,s.czwt
  757. from zsyz_sbbzb s
  758. where s.is_del = 'N'
  759. <if test="deptId != null and deptId != ''">and s.dept_id = #{deptId}</if>
  760. <if test="xmbh != null and xmbh != ''">and s.xmbh like concat('%', #{xmbh}, '%')</if>
  761. <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc like concat('%', #{xmxsmc}, '%')</if>
  762. <if test="progress != null and progress != ''">and find_in_set(s.progress , #{progress})</if>
  763. <if test="xmStatus != null and xmStatus != ''">and s.xm_status = #{xmStatus}</if>
  764. <if test="cjdId != null ">and cjd_id = #{cjdId}</if>
  765. <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
  766. AND date_format(s.create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
  767. </if>
  768. <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
  769. AND date_format(s.create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
  770. </if>
  771. )d
  772. ${params.dataScope}
  773. order by d.update_time desc
  774. </select>
  775. <select id="selectZsyzSbbzbListCount" resultType="java.lang.Long">
  776. select count(1)
  777. from (
  778. select s.id
  779. from zsyz_sbbzb s
  780. left join zsyz_shyj j on s.id = j.xm_id
  781. <where>
  782. s.is_del = 'N'
  783. <if test="sbdw != null and sbdw != ''">and s.sbdw = #{sbdw}</if>
  784. <if test="tbrq != null ">and s.tbrq = #{tbrq}</if>
  785. <if test="zszxfzr != null and zszxfzr != ''">and s.zszxfzr = #{zszxfzr}</if>
  786. <if test="xmbh != null and xmbh != ''">and s.xmbh like concat('%', #{xmbh}, '%')</if>
  787. <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc like concat('%', #{xmxsmc}, '%')</if>
  788. <if test="sfwlhxxxm != null and sfwlhxxxm != ''">and s.sfwlhxxxm = #{sfwlhxxxm}</if>
  789. <if test="yzdqId != null and yzdqId != ''">and s.yzdq_id = #{yzdqId}</if>
  790. <if test="yzdqName != null and yzdqName != ''">and s.yzdq_name like concat('%', #{yzdqName}, '%')</if>
  791. <if test="yzssName != null and yzssName != ''">and s.yzss_name like concat('%', #{yzssName}, '%')</if>
  792. <if test="ntze != null and ntze != ''">and s.ntze = #{ntze}</if>
  793. <if test="cylxId != null and cylxId != ''">and s.cylx_id = #{cylxId}</if>
  794. <if test="cylxName != null and cylxName != ''">and s.cylx_name like concat('%', #{cylxName}, '%')</if>
  795. <if test="xmlb != null and xmlb != ''">and s.xmlb = #{xmlb}</if>
  796. <if test="tzlb != null and tzlb != ''">and s.tzlb = #{tzlb}</if>
  797. <if test="nlhd != null and nlhd != ''">and s.nlhd = #{nlhd}</if>
  798. <if test="czpt != null and czpt != ''">and s.czpt = #{czpt}</if>
  799. <if test="tzzt != null and tzzt != ''">and s.tzzt = #{tzzt}</if>
  800. <if test="xmjz != null and xmjz != ''">and s.xmjz = #{xmjz}</if>
  801. <if test="gtzzrsfzhm != null and gtzzrsfzhm != ''">and s.gtzzrsfzhm = #{gtzzrsfzhm}</if>
  802. <if test="qytzrxyzdm != null and qytzrxyzdm != ''">and s.qytzrxyzdm = #{qytzrxyzdm}</if>
  803. <if test="qybj != null and qybj != ''">and s.qybj = #{qybj}</if>
  804. <if test="tzfjj != null and tzfjj != ''">and s.tzfjj = #{tzfjj}</if>
  805. <if test="sndxse != null and sndxse != ''">and s.sndxse = #{sndxse}</if>
  806. <if test="sndnse != null and sndnse != ''">and s.sndnse = #{sndnse}</if>
  807. <if test="tzrxm != null and tzrxm != ''">and s.tzrxm = #{tzrxm}</if>
  808. <if test="tzrzw != null and tzrzw != ''">and s.tzrzw = #{tzrzw}</if>
  809. <if test="tzrdh != null and tzrdh != ''">and s.tzrdh = #{tzrdh}</if>
  810. <if test="xmjj != null and xmjj != ''">and s.xmjj = #{xmjj}</if>
  811. <if test="name != null and name != ''">and s.name like concat('%', #{name}, '%')</if>
  812. <if test="strq != null ">and s.strq = #{strq}</if>
  813. <if test="phone != null and phone != ''">and s.phone = #{phone}</if>
  814. <if test="zw != null and zw != ''">and s.zw = #{zw}</if>
  815. <if test="userId != null ">and s.user_id = #{userId}</if>
  816. <if test="type != null and type != ''">and s.type = #{type}</if>
  817. <if test="progress != null and progress != ''">and find_in_set(s.progress , #{progress})</if>
  818. <if test="xmStatus != null and xmStatus != ''">and s.xm_status = #{xmStatus}</if>
  819. <if test="cjdId != null ">and s.cjd_id = #{cjdId}</if>
  820. <if test="cjdName != null and cjdName != ''">and s.cjd_name like concat('%', #{cjdName}, '%')</if>
  821. <if test="isMeet != null and isMeet != ''">and s.is_meet = #{isMeet}</if>
  822. <if test="meetRemark != null and meetRemark != ''">and s.meet_remark = #{meetRemark}</if>
  823. <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
  824. AND date_format(s.create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
  825. </if>
  826. <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
  827. AND date_format(s.create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
  828. </if>
  829. </where>
  830. group by s.id ) a
  831. </select>
  832. <select id="selectZsyzSbbzbCjdList" parameterType="ZsyzSbbzb" resultMap="ZsyzSbbzbResult">
  833. <include refid="selectZsyzSbbzbVo"/>
  834. <where>
  835. is_del = 'N'
  836. <if test="xmbh != null and xmbh != ''">and s.xmbh like concat('%', #{xmbh}, '%')</if>
  837. <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc like concat('%', #{xmxsmc}, '%')</if>
  838. <if test="cjdId != null ">and (cjd_id = #{cjdId} or dept_id = #{cjdId})</if>
  839. <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
  840. AND date_format(create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
  841. </if>
  842. <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
  843. AND date_format(create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
  844. </if>
  845. </where>
  846. order by update_time desc
  847. </select>
  848. <select id="selectZsyzSbbzbListYz" resultMap="ZsyzSbbzbResult">
  849. select s.id,
  850. s.sbdw,
  851. s.tbrq,
  852. s.zszxfzr,
  853. s.xmbh,
  854. s.xmxsmc,
  855. s.sfwlhxxxm,
  856. s.yzdq_id,
  857. s.yzdq_name,
  858. s.yzss_name,
  859. s.ntze,
  860. s.cylx_id,
  861. s.cylx_name,
  862. s.xmlb,
  863. s.tzlb,
  864. s.nlhd,
  865. s.czpt,
  866. s.tzzt,
  867. s.xmjz,
  868. s.gtzzrsfzhm,
  869. s.qytzrxyzdm,
  870. s.qybj,
  871. s.tzfjj,
  872. s.sndxse,
  873. s.sndnse,
  874. s.tzrxm,
  875. s.tzrzw,
  876. s.tzrdh,
  877. s.xmjj,
  878. s.name,
  879. s.strq,
  880. s.phone,
  881. s.zw,
  882. s.user_id,
  883. s.create_by,
  884. s.type,
  885. s.progress,
  886. s.xm_status,
  887. s.dept_id,
  888. s.create_time,
  889. s.update_by,
  890. s.is_del,
  891. s.update_time,
  892. s.remark,
  893. s.cjd_id,
  894. s.cjd_name,
  895. s.is_meet,
  896. s.meet_remark,s.psnr,s.czwt
  897. from zsyz_project_dept d
  898. left join zsyz_sbbzb s on s.id = d.xm_id
  899. where s.is_del = 'N'
  900. and d.dept_id = #{deptId} and d.is_del = 'N' and d.dept_type = '3'
  901. <if test="xmbh != null and xmbh != ''">and s.xmbh like concat('%', #{xmbh}, '%')</if>
  902. <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc like concat('%', #{xmxsmc}, '%')</if>
  903. <if test="progress != null and progress != ''">and find_in_set(s.progress , #{progress})</if>
  904. <if test="xmStatus != null and xmStatus != ''">and s.xm_status = #{xmStatus}</if>
  905. <if test="cjdId != null ">and cjd_id = #{cjdId}</if>
  906. <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
  907. AND date_format(s.create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
  908. </if>
  909. <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
  910. AND date_format(s.create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
  911. </if>
  912. order by d.update_time desc
  913. </select>
  914. <select id="selectZsyzSbbzbListTz" resultMap="ZsyzSbbzbResult">
  915. SELECT
  916. ANY_VALUE(a.id) AS id,
  917. ANY_VALUE(a.xmbh) AS xmbh,
  918. ANY_VALUE(a.xmxsmc) AS xmxsmc,
  919. ANY_VALUE(a.user_id) AS user_id,
  920. ANY_VALUE(a.progress) AS progress,
  921. ANY_VALUE(a.xm_status) AS xm_status,
  922. ANY_VALUE(a.dept_id) AS dept_id,
  923. ANY_VALUE(MAX(a.shsj)) AS shsj
  924. FROM
  925. (
  926. SELECT
  927. s.id as id,
  928. s.xmbh as xmbh,
  929. s.xmxsmc as xmxsmc,
  930. s.user_id as user_id,
  931. s.progress as progress,
  932. s.xm_status as xm_status,
  933. s.dept_id as dept_id,
  934. j.shsj as shsj
  935. FROM
  936. zsyz_sbbzb s
  937. LEFT JOIN zsyz_shyj j ON s.xmbh = j.xmbh
  938. WHERE
  939. s.is_del = 'N'
  940. AND j.xmjd = '项目首谈'
  941. AND j.shjg = 2
  942. <if test="year != null and year != ''">and j.shsj like concat( #{year}, '%')</if>
  943. <if test="deptId != null ">and s.dept_id = #{deptId}</if>
  944. ) a
  945. GROUP BY
  946. a.xmbh
  947. </select>
  948. <!--<select id="selectZsyzSbbzbListTz" resultMap="ZsyzSbbzbResult">
  949. SELECT
  950. a.id,
  951. a.xmbh,
  952. a.xmxsmc,
  953. a.user_id,
  954. a.progress,
  955. a.xm_status,
  956. a.dept_id,
  957. MAX(a.shsj) AS shsj
  958. FROM
  959. (
  960. SELECT
  961. s.id as id,
  962. s.xmbh as xmbh,
  963. s.xmxsmc as xmxsmc,
  964. s.user_id as user_id,
  965. s.progress as progress,
  966. s.xm_status as xm_status,
  967. s.dept_id as dept_id,
  968. j.shsj as shsj
  969. FROM
  970. zsyz_sbbzb s
  971. LEFT JOIN zsyz_shyj j ON s.xmbh = j.xmbh
  972. WHERE
  973. s.is_del = 'N'
  974. AND j.xmjd = '项目首谈'
  975. AND j.shjg = 2
  976. <if test="year != null and year != ''">and s.cjd_name like concat( #{year}, '%')</if>
  977. ) a
  978. GROUP BY
  979. a.xmbh
  980. </select>-->
  981. <insert id="insertZsyzSbbzb" parameterType="ZsyzSbbzb" useGeneratedKeys="true" keyProperty="id">
  982. insert into zsyz_sbbzb
  983. <trim prefix="(" suffix=")" suffixOverrides=",">
  984. <if test="sbdw != null and sbdw != ''">sbdw,</if>
  985. <if test="tbrq != null">tbrq,</if>
  986. <if test="zszxfzr != null and zszxfzr != ''">zszxfzr,</if>
  987. <if test="xmbh != null">xmbh,</if>
  988. <if test="xmxsmc != null and xmxsmc != ''">xmxsmc,</if>
  989. <if test="sfwlhxxxm != null and sfwlhxxxm != ''">sfwlhxxxm,</if>
  990. <if test="yzdqId != null and yzdqId != ''">yzdq_id,</if>
  991. <if test="yzdqName != null and yzdqName != ''">yzdq_name,</if>
  992. <if test="yzssName != null and yzssName != ''">yzss_name,</if>
  993. <if test="ntze != null and ntze != ''">ntze,</if>
  994. <if test="cylxId != null and cylxId != ''">cylx_id,</if>
  995. <if test="cylxName != null and cylxName != ''">cylx_name,</if>
  996. <if test="xmlb != null and xmlb != ''">xmlb,</if>
  997. <if test="tzlb != null and tzlb != ''">tzlb,</if>
  998. <if test="nlhd != null and nlhd != ''">nlhd,</if>
  999. <if test="czpt != null and czpt != ''">czpt,</if>
  1000. <if test="tzzt != null and tzzt != ''">tzzt,</if>
  1001. <if test="xmjz != null and xmjz != ''">xmjz,</if>
  1002. <if test="gtzzrsfzhm != null">gtzzrsfzhm,</if>
  1003. <if test="qytzrxyzdm != null">qytzrxyzdm,</if>
  1004. <if test="qybj != null and qybj != ''">qybj,</if>
  1005. <if test="tzfjj != null">tzfjj,</if>
  1006. <if test="sndxse != null">sndxse,</if>
  1007. <if test="sndnse != null">sndnse,</if>
  1008. <if test="tzrxm != null">tzrxm,</if>
  1009. <if test="tzrzw != null">tzrzw,</if>
  1010. <if test="tzrdh != null">tzrdh,</if>
  1011. <if test="xmjj != null">xmjj,</if>
  1012. <if test="name != null and name != ''">name,</if>
  1013. <if test="strq != null">strq,</if>
  1014. <if test="phone != null and phone != ''">phone,</if>
  1015. <if test="zw != null and zw != ''">zw,</if>
  1016. <if test="userId != null">user_id,</if>
  1017. <if test="createBy != null">create_by,</if>
  1018. <if test="type != null">type,</if>
  1019. <if test="progress != null">progress,</if>
  1020. <if test="xmStatus != null">xm_status,</if>
  1021. <if test="deptId != null">dept_id,</if>
  1022. <if test="createTime != null">create_time,</if>
  1023. <if test="updateBy != null">update_by,</if>
  1024. <if test="isDel != null">is_del,</if>
  1025. <if test="updateTime != null">update_time,</if>
  1026. <if test="remark != null">remark,</if>
  1027. <if test="cjdId != null">cjd_id,</if>
  1028. <if test="cjdName != null">cjd_name,</if>
  1029. <if test="isMeet != null">is_meet,</if>
  1030. <if test="meetRemark != null">meet_remark,</if>
  1031. <if test="shjg != null">shjg,</if>
  1032. <if test="psnr != null">psnr,</if>
  1033. <if test="czwt != null">czwt,</if>
  1034. </trim>
  1035. <trim prefix="values (" suffix=")" suffixOverrides=",">
  1036. <if test="sbdw != null and sbdw != ''">#{sbdw},</if>
  1037. <if test="tbrq != null">#{tbrq},</if>
  1038. <if test="zszxfzr != null and zszxfzr != ''">#{zszxfzr},</if>
  1039. <if test="xmbh != null">#{xmbh},</if>
  1040. <if test="xmxsmc != null and xmxsmc != ''">#{xmxsmc},</if>
  1041. <if test="sfwlhxxxm != null and sfwlhxxxm != ''">#{sfwlhxxxm},</if>
  1042. <if test="yzdqId != null and yzdqId != ''">#{yzdqId},</if>
  1043. <if test="yzdqName != null and yzdqName != ''">#{yzdqName},</if>
  1044. <if test="yzssName != null and yzssName != ''">#{yzssName},</if>
  1045. <if test="ntze != null and ntze != ''">#{ntze},</if>
  1046. <if test="cylxId != null and cylxId != ''">#{cylxId},</if>
  1047. <if test="cylxName != null and cylxName != ''">#{cylxName},</if>
  1048. <if test="xmlb != null and xmlb != ''">#{xmlb},</if>
  1049. <if test="tzlb != null and tzlb != ''">#{tzlb},</if>
  1050. <if test="nlhd != null and nlhd != ''">#{nlhd},</if>
  1051. <if test="czpt != null and czpt != ''">#{czpt},</if>
  1052. <if test="tzzt != null and tzzt != ''">#{tzzt},</if>
  1053. <if test="xmjz != null and xmjz != ''">#{xmjz},</if>
  1054. <if test="gtzzrsfzhm != null">#{gtzzrsfzhm},</if>
  1055. <if test="qytzrxyzdm != null">#{qytzrxyzdm},</if>
  1056. <if test="qybj != null and qybj != ''">#{qybj},</if>
  1057. <if test="tzfjj != null">#{tzfjj},</if>
  1058. <if test="sndxse != null">#{sndxse},</if>
  1059. <if test="sndnse != null">#{sndnse},</if>
  1060. <if test="tzrxm != null">#{tzrxm},</if>
  1061. <if test="tzrzw != null">#{tzrzw},</if>
  1062. <if test="tzrdh != null">#{tzrdh},</if>
  1063. <if test="xmjj != null">#{xmjj},</if>
  1064. <if test="name != null and name != ''">#{name},</if>
  1065. <if test="strq != null">#{strq},</if>
  1066. <if test="phone != null and phone != ''">#{phone},</if>
  1067. <if test="zw != null and zw != ''">#{zw},</if>
  1068. <if test="userId != null">#{userId},</if>
  1069. <if test="createBy != null">#{createBy},</if>
  1070. <if test="type != null">#{type},</if>
  1071. <if test="progress != null">#{progress},</if>
  1072. <if test="xmStatus != null">#{xmStatus},</if>
  1073. <if test="deptId != null">#{deptId},</if>
  1074. <if test="createTime != null">#{createTime},</if>
  1075. <if test="updateBy != null">#{updateBy},</if>
  1076. <if test="isDel != null">#{isDel},</if>
  1077. <if test="updateTime != null">#{updateTime},</if>
  1078. <if test="remark != null">#{remark},</if>
  1079. <if test="cjdId != null">#{cjdId},</if>
  1080. <if test="cjdName != null">#{cjdName},</if>
  1081. <if test="isMeet != null">#{isMeet},</if>
  1082. <if test="meetRemark != null">#{meetRemark},</if>
  1083. <if test="shjg != null">#{shjg},</if>
  1084. <if test="psnr != null">#{psnr},</if>
  1085. <if test="czwt != null">#{czwt},</if>
  1086. </trim>
  1087. </insert>
  1088. <update id="updateZsyzSbbzb" parameterType="ZsyzSbbzb">
  1089. update zsyz_sbbzb
  1090. <trim prefix="SET" suffixOverrides=",">
  1091. <if test="sbdw != null and sbdw != ''">sbdw = #{sbdw},</if>
  1092. <if test="tbrq != null">tbrq = #{tbrq},</if>
  1093. <if test="zszxfzr != null and zszxfzr != ''">zszxfzr = #{zszxfzr},</if>
  1094. <if test="xmbh != null">xmbh = #{xmbh},</if>
  1095. <if test="xmxsmc != null and xmxsmc != ''">xmxsmc = #{xmxsmc},</if>
  1096. <if test="sfwlhxxxm != null and sfwlhxxxm != ''">sfwlhxxxm = #{sfwlhxxxm},</if>
  1097. <if test="yzdqId != null and yzdqId != ''">yzdq_id = #{yzdqId},</if>
  1098. <if test="yzdqName != null and yzdqName != ''">yzdq_name = #{yzdqName},</if>
  1099. <if test="yzssName != null and yzssName != ''">yzss_name = #{yzssName},</if>
  1100. <if test="ntze != null and ntze != ''">ntze = #{ntze},</if>
  1101. <if test="cylxId != null and cylxId != ''">cylx_id = #{cylxId},</if>
  1102. <if test="cylxName != null and cylxName != ''">cylx_name = #{cylxName},</if>
  1103. <if test="xmlb != null and xmlb != ''">xmlb = #{xmlb},</if>
  1104. <if test="tzlb != null and tzlb != ''">tzlb = #{tzlb},</if>
  1105. <if test="nlhd != null and nlhd != ''">nlhd = #{nlhd},</if>
  1106. <if test="czpt != null and czpt != ''">czpt = #{czpt},</if>
  1107. <if test="tzzt != null and tzzt != ''">tzzt = #{tzzt},</if>
  1108. <if test="xmjz != null and xmjz != ''">xmjz = #{xmjz},</if>
  1109. <if test="gtzzrsfzhm != null">gtzzrsfzhm = #{gtzzrsfzhm},</if>
  1110. <if test="qytzrxyzdm != null">qytzrxyzdm = #{qytzrxyzdm},</if>
  1111. <if test="qybj != null and qybj != ''">qybj = #{qybj},</if>
  1112. <if test="tzfjj != null">tzfjj = #{tzfjj},</if>
  1113. <if test="sndxse != null">sndxse = #{sndxse},</if>
  1114. <if test="sndnse != null">sndnse = #{sndnse},</if>
  1115. <if test="tzrxm != null">tzrxm = #{tzrxm},</if>
  1116. <if test="tzrzw != null">tzrzw = #{tzrzw},</if>
  1117. <if test="tzrdh != null">tzrdh = #{tzrdh},</if>
  1118. <if test="xmjj != null">xmjj = #{xmjj},</if>
  1119. <if test="name != null and name != ''">name = #{name},</if>
  1120. <if test="strq != null">strq = #{strq},</if>
  1121. <if test="phone != null and phone != ''">phone = #{phone},</if>
  1122. <if test="zw != null and zw != ''">zw = #{zw},</if>
  1123. <if test="userId != null">user_id = #{userId},</if>
  1124. <if test="createBy != null">create_by = #{createBy},</if>
  1125. <if test="type != null">type = #{type},</if>
  1126. <if test="progress != null">progress = #{progress},</if>
  1127. <if test="xmStatus != null">xm_status = #{xmStatus},</if>
  1128. <if test="deptId != null">dept_id = #{deptId},</if>
  1129. <if test="createTime != null">create_time = #{createTime},</if>
  1130. <if test="updateBy != null">update_by = #{updateBy},</if>
  1131. <if test="isDel != null">is_del = #{isDel},</if>
  1132. <if test="updateTime != null">update_time = #{updateTime},</if>
  1133. <if test="remark != null">remark = #{remark},</if>
  1134. <if test="cjdId != null">cjd_id = #{cjdId},</if>
  1135. <if test="cjdName != null">cjd_name = #{cjdName},</if>
  1136. <if test="isMeet != null">is_meet = #{isMeet},</if>
  1137. <if test="meetRemark != null">meet_remark = #{meetRemark},</if>
  1138. <if test="shjg != null">shjg = #{shjg},</if>
  1139. <if test="psnr != null">psnr = #{psnr},</if>
  1140. <if test="czwt != null">czwt = #{czwt},</if>
  1141. </trim>
  1142. where id = #{id}
  1143. </update>
  1144. <update id="updateZsyzSbbzbCjd" parameterType="ZsyzSbbzb">
  1145. update zsyz_sbbzb
  1146. <trim prefix="SET" suffixOverrides=",">
  1147. <if test="progress != null">progress = #{progress},</if>
  1148. <if test="xmStatus != null">xm_status = #{xmStatus},</if>
  1149. <if test="cjdId != null">cjd_id = #{cjdId},</if>
  1150. <if test="cjdName != null">cjd_name = #{cjdName},</if>
  1151. </trim>
  1152. where id = #{id}
  1153. </update>
  1154. <update id="updateZsyzSbbzbForZc" parameterType="ZsyzSbbzb">
  1155. update zsyz_sbbzb
  1156. <trim prefix="SET" suffixOverrides=",">
  1157. <if test="type != null and type != ''">type = #{type},</if>
  1158. <if test="isDel != null and isDel != ''">is_del = #{isDel},</if>
  1159. </trim>
  1160. where id = #{id}
  1161. </update>
  1162. <update id="updateZsyzSbbzbProgress" parameterType="ZsyzSbbzb">
  1163. update zsyz_sbbzb
  1164. <trim prefix="SET" suffixOverrides=",">
  1165. <if test="progress != null and progress != ''">progress = #{progress},</if>
  1166. <if test="xmStatus != null and xmStatus != ''">xm_status = #{xmStatus},</if>
  1167. <if test="shjg != null and shjg != ''">shjg = #{shjg},</if>
  1168. <if test=" progress == 1">cjd_id = null,</if>
  1169. <if test=" progress == 1">cjd_name = null,</if>
  1170. <if test=" sfwlhxxxm != null">sfwlhxxxm = #{sfwlhxxxm},</if>
  1171. <if test="updateTime != null">update_time = #{updateTime},</if>
  1172. </trim>
  1173. where id = #{id}
  1174. </update>
  1175. <update id="updateZsyzSbbzbMeet" parameterType="ZsyzSbbzb">
  1176. update zsyz_sbbzb
  1177. set is_meet = #{isMeet}
  1178. where id = #{id}
  1179. </update>
  1180. <delete id="deleteZsyzSbbzbById" parameterType="Long">
  1181. delete
  1182. from zsyz_sbbzb
  1183. where id = #{id}
  1184. </delete>
  1185. <delete id="deleteZsyzSbbzbByIds" parameterType="String">
  1186. delete from zsyz_sbbzb where id in
  1187. <foreach item="id" collection="array" open="(" separator="," close=")">
  1188. #{id}
  1189. </foreach>
  1190. </delete>
  1191. </mapper>