ZsyzSbbzbMapper.xml 57 KB

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