ZsyzSbbzbMapper.xml 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863
  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="deptId" column="dept_id"/>
  45. <result property="createTime" column="create_time"/>
  46. <result property="updateBy" column="update_by"/>
  47. <result property="isDel" column="is_del"/>
  48. <result property="updateTime" column="update_time"/>
  49. <result property="remark" column="remark"/>
  50. <result property="cjdId" column="cjd_id"/>
  51. <result property="cjdName" column="cjd_name"/>
  52. <result property="isMeet" column="is_meet"/>
  53. <result property="meetRemark" column="meet_remark"/>
  54. <result property="shjg" column="shjg"/>
  55. <association property="zsyzQyxx" javaType="ZsyzQyxx" resultMap="ZsyzQyxxResult"/>
  56. <association property="zsyzKgxx" javaType="ZsyzKgxx" resultMap="ZsyzKgxxResult"/>
  57. <association property="zsyzTcxx" javaType="ZsyzTcxx" resultMap="ZsyzTcxxResult"/>
  58. <collection property="shyjList" javaType="java.util.List" resultMap="ZsyzShyjResult"/>
  59. </resultMap>
  60. <!--签约信息-->
  61. <resultMap type="ZsyzQyxx" id="ZsyzQyxxResult">
  62. <result property="id" column="id"/>
  63. <result property="xmId" column="xm_id"/>
  64. <result property="xmbh" column="xmbh"/>
  65. <result property="xmmc" column="xmmc"/>
  66. <result property="dfqyr" column="dfqyr"/>
  67. <result property="wfqyr" column="wfqyr"/>
  68. <result property="tbrq" column="tbrq"/>
  69. <result property="qyrq" column="qyrq"/>
  70. <result property="xytze" column="xytze"/>
  71. <result property="swzj" column="swzj"/>
  72. <result property="gdzctze" column="gdzctze"/>
  73. <result property="xmgjrxm" column="xmgjrxm"/>
  74. <result property="xmgjrzw" column="xmgjrzw"/>
  75. <result property="xmgjrsjh" column="xmgjrsjh"/>
  76. <result property="xmszd" column="xmszd"/>
  77. <result property="sshy" column="sshy"/>
  78. <result property="tzfs" column="tzfs"/>
  79. <result property="jsfs" column="jsfs"/>
  80. <result property="sfys" column="sfys"/>
  81. <result property="jsnr" column="jsnr"/>
  82. <result property="zlcf" column="zlcf"/>
  83. <result property="gdmj" column="gdmj"/>
  84. <result property="zcqymc" column="zcqymc"/>
  85. <result property="zcrq" column="zcrq"/>
  86. <result property="zczb" column="zczb"/>
  87. <result property="frdb" column="frdb"/>
  88. <result property="lxfs" column="lxfs"/>
  89. <result property="jyfw" column="jyfw"/>
  90. <result property="lxrq" column="lxrq"/>
  91. <result property="nkgrq" column="nkgrq"/>
  92. <result property="path" column="path"/>
  93. <result property="createBy" column="create_by"/>
  94. <result property="createTime" column="create_time"/>
  95. <result property="updateBy" column="update_by"/>
  96. <result property="updateTime" column="update_time"/>
  97. <result property="remark" column="remark"/>
  98. </resultMap>
  99. <!--开工信息-->
  100. <resultMap type="ZsyzKgxx" id="ZsyzKgxxResult">
  101. <result property="id" column="id"/>
  102. <result property="xmId" column="xm_id"/>
  103. <result property="xmbh" column="xmbh"/>
  104. <result property="xmmc" column="xmmc"/>
  105. <result property="kgrq" column="kgrq"/>
  106. <result property="njgrq" column="njgrq"/>
  107. <result property="sscrq" column="sscrq"/>
  108. <result property="ntcsj" column="ntcsj"/>
  109. <result property="rtsj" column="rtsj"/>
  110. <result property="nrtsj" column="nrtsj"/>
  111. <result property="kggjrsjh" column="kggjrsjh"/>
  112. <result property="createBy" column="create_by"/>
  113. <result property="createTime" column="create_time"/>
  114. <result property="updateBy" column="update_by"/>
  115. <result property="updateTime" column="update_time"/>
  116. <result property="remark" column="remark"/>
  117. </resultMap>
  118. <!--投产信息-->
  119. <resultMap type="ZsyzTcxx" id="ZsyzTcxxResult">
  120. <result property="id" column="id"/>
  121. <result property="xmId" column="xm_id"/>
  122. <result property="xmbh" column="xmbh"/>
  123. <result property="xmmc" column="xmmc"/>
  124. <result property="tcrq" column="tcrq"/>
  125. <result property="rgsj" column="rgsj"/>
  126. <result property="nrgsj" column="nrgsj"/>
  127. <result property="tcgjrsjh" column="tcgjrsjh"/>
  128. <result property="sjdze" column="sjdze"/>
  129. <result property="ydmj" column="ydmj"/>
  130. <result property="tdcr" column="tdcr"/>
  131. <result property="xjcf" column="xjcf"/>
  132. <result property="cftr" column="cftr"/>
  133. <result property="sbqd" column="sbqd"/>
  134. <result property="sbfp" column="sbfp"/>
  135. <result property="sbht" column="sbht"/>
  136. <result property="fkpz" column="fkpz"/>
  137. <result property="zlcf" column="zlcf"/>
  138. <result property="zlcftr" column="zlcftr"/>
  139. <result property="zlsbqd" column="zlsbqd"/>
  140. <result property="zlsbfp" column="zlsbfp"/>
  141. <result property="zlsbht" column="zlsbht"/>
  142. <result property="zlfkpz" column="zlfkpz"/>
  143. <result property="sjss" column="sjss"/>
  144. <result property="lxy" column="lxy"/>
  145. <result property="jnsb" column="jnsb"/>
  146. <result property="zbtr" column="zbtr"/>
  147. <result property="ndsjss" column="ndsjss"/>
  148. <result property="qt" column="qt"/>
  149. <result property="createBy" column="create_by"/>
  150. <result property="createTime" column="create_time"/>
  151. <result property="updateBy" column="update_by"/>
  152. <result property="updateTime" column="update_time"/>
  153. <result property="remark" column="remark"/>
  154. </resultMap>
  155. <resultMap type="ZsyzShyj" id="ZsyzShyjResult">
  156. <result property="id" column="id"/>
  157. <result property="xmId" column="xm_id"/>
  158. <result property="xmbh" column="xmbh"/>
  159. <result property="deptId" column="dept_id"/>
  160. <result property="shrxm" column="shrxm"/>
  161. <result property="xmjd" column="xmjd"/>
  162. <result property="xmmc" column="xmmc"/>
  163. <result property="shjg" column="shjg"/>
  164. <result property="shyj" column="shyj"/>
  165. <result property="shsj" column="shsj"/>
  166. <result property="createBy" column="create_by"/>
  167. <result property="createTime" column="create_time"/>
  168. <result property="updateBy" column="update_by"/>
  169. <result property="updateTime" column="update_time"/>
  170. <result property="remark" column="remark"/>
  171. </resultMap>
  172. <sql id="selectZsyzSbbzbVo">
  173. select id,
  174. sbdw,
  175. tbrq,
  176. zszxfzr,
  177. xmbh,
  178. xmxsmc,
  179. sfwlhxxxm,
  180. yzdq_id,
  181. yzdq_name,
  182. yzss_name,
  183. ntze,
  184. cylx_id,
  185. cylx_name,
  186. xmlb,
  187. tzlb,
  188. nlhd,
  189. czpt,
  190. tzzt,
  191. xmjz,
  192. gtzzrsfzhm,
  193. qytzrxyzdm,
  194. qybj,
  195. tzfjj,
  196. sndxse,
  197. sndnse,
  198. tzrxm,
  199. tzrzw,
  200. tzrdh,
  201. xmjj,
  202. name,
  203. strq,
  204. phone,
  205. zw,
  206. user_id,
  207. create_by,
  208. type,
  209. progress,
  210. dept_id,
  211. create_time,
  212. update_by,
  213. is_del,
  214. update_time,
  215. remark,
  216. cjd_id,
  217. cjd_name,
  218. is_meet,
  219. meet_remark,
  220. shjg
  221. from zsyz_sbbzb
  222. </sql>
  223. <select id="selectZsyzSbbzbList" parameterType="ZsyzSbbzb" resultMap="ZsyzSbbzbResult">
  224. select s.id, s.sbdw, s.tbrq, s.zszxfzr, s.xmbh, s.xmxsmc, s.sfwlhxxxm, s.yzdq_id, s.yzdq_name, s.yzss_name,
  225. s.ntze, s.cylx_id, s.cylx_name, s.xmlb,
  226. s.tzlb, s.nlhd, s.czpt, s.tzzt, s.xmjz, s.gtzzrsfzhm, s.qytzrxyzdm, s.qybj, s.tzfjj, s.sndxse, s.sndnse,
  227. s.tzrxm, s.tzrzw, s.tzrdh, s.xmjj, s.name,
  228. s.strq, s.phone, s.zw, s.user_id, s.create_by, s.type, s.progress, s.dept_id, s.create_time, s.update_by,
  229. s.is_del, s.update_time, s.remark, s.cjd_id,
  230. s.cjd_name, s.is_meet, s.meet_remark,s.shjg,
  231. 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,
  232. q.xmgjrxm,q.xmgjrzw,q.xmgjrsjh,
  233. q.xmszd, q.sshy, q.tzfs, q.jsfs, q.sfys, q.jsnr,
  234. 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,
  235. q.create_time,
  236. q.update_by, q.update_time, q.remark,
  237. 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,
  238. k.create_time, k.update_by,
  239. k.update_time, k.remark,
  240. 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,
  241. t.sbqd, t.sbfp, t.sbht, t.fkpz, t.zlcf,
  242. 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,
  243. t.create_time, t.update_by,
  244. t.update_time, t.remark
  245. from zsyz_sbbzb s
  246. left join zsyz_qyxx q on s.id = q.xm_id
  247. left join zsyz_kgxx k on s.id = k.xm_id
  248. left join zsyz_tcxx t on s.id = t.xm_id
  249. <where>
  250. s.is_del = 'N'
  251. <if test="sbdw != null and sbdw != ''">and s.sbdw = #{sbdw}</if>
  252. <if test="tbrq != null ">and s.tbrq = #{tbrq}</if>
  253. <if test="zszxfzr != null and zszxfzr != ''">and s.zszxfzr = #{zszxfzr}</if>
  254. <if test="xmbh != null and xmbh != ''">and s.xmbh = #{xmbh}</if>
  255. <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc = #{xmxsmc}</if>
  256. <if test="sfwlhxxxm != null and sfwlhxxxm != ''">and s.sfwlhxxxm = #{sfwlhxxxm}</if>
  257. <if test="yzdqId != null and yzdqId != ''">and s.yzdq_id = #{yzdqId}</if>
  258. <if test="yzdqName != null and yzdqName != ''">and s.yzdq_name like concat('%', #{yzdqName}, '%')</if>
  259. <if test="yzssName != null and yzssName != ''">and s.yzss_name like concat('%', #{yzssName}, '%')</if>
  260. <if test="ntze != null and ntze != ''">and s.ntze = #{ntze}</if>
  261. <if test="cylxId != null and cylxId != ''">and s.cylx_id = #{cylxId}</if>
  262. <if test="cylxName != null and cylxName != ''">and s.cylx_name like concat('%', #{cylxName}, '%')</if>
  263. <if test="xmlb != null and xmlb != ''">and s.xmlb = #{xmlb}</if>
  264. <if test="tzlb != null and tzlb != ''">and s.tzlb = #{tzlb}</if>
  265. <if test="nlhd != null and nlhd != ''">and s.nlhd = #{nlhd}</if>
  266. <if test="czpt != null and czpt != ''">and s.czpt = #{czpt}</if>
  267. <if test="tzzt != null and tzzt != ''">and s.tzzt = #{tzzt}</if>
  268. <if test="xmjz != null and xmjz != ''">and s.xmjz = #{xmjz}</if>
  269. <if test="gtzzrsfzhm != null and gtzzrsfzhm != ''">and s.gtzzrsfzhm = #{gtzzrsfzhm}</if>
  270. <if test="qytzrxyzdm != null and qytzrxyzdm != ''">and s.qytzrxyzdm = #{qytzrxyzdm}</if>
  271. <if test="qybj != null and qybj != ''">and s.qybj = #{qybj}</if>
  272. <if test="tzfjj != null and tzfjj != ''">and s.tzfjj = #{tzfjj}</if>
  273. <if test="sndxse != null and sndxse != ''">and s.sndxse = #{sndxse}</if>
  274. <if test="sndnse != null and sndnse != ''">and s.sndnse = #{sndnse}</if>
  275. <if test="tzrxm != null and tzrxm != ''">and s.tzrxm = #{tzrxm}</if>
  276. <if test="tzrzw != null and tzrzw != ''">and s.tzrzw = #{tzrzw}</if>
  277. <if test="tzrdh != null and tzrdh != ''">and s.tzrdh = #{tzrdh}</if>
  278. <if test="xmjj != null and xmjj != ''">and s.xmjj = #{xmjj}</if>
  279. <if test="name != null and name != ''">and s.name like concat('%', #{name}, '%')</if>
  280. <if test="strq != null ">and s.strq = #{strq}</if>
  281. <if test="phone != null and phone != ''">and s.phone = #{phone}</if>
  282. <if test="zw != null and zw != ''">and s.zw = #{zw}</if>
  283. <if test="userId != null ">and s.user_id = #{userId}</if>
  284. <if test="type != null and type != ''">and s.type = #{type}</if>
  285. <if test="progress != null and progress != ''">and find_in_set(s.progress , #{progress})</if>
  286. <if test="isDel != null and isDel != ''">and s.is_del = #{isDel}</if>
  287. <if test="cjdId != null ">and s.cjd_id = #{cjdId}</if>
  288. <if test="cjdName != null and cjdName != ''">and s.cjd_name like concat('%', #{cjdName}, '%')</if>
  289. <if test="isMeet != null and isMeet != ''">and s.is_meet = #{isMeet}</if>
  290. <if test="meetRemark != null and meetRemark != ''">and s.meet_remark = #{meetRemark}</if>
  291. <if test="shjg != null and shjg != ''">and s.shjg = #{shjg}</if>
  292. <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
  293. AND date_format(s.create_time,'%Y%m%d') &gt;= date_format(#{params.beginTime},'%Y%m%d')
  294. </if>
  295. <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
  296. AND date_format(s.create_time,'%Y%m%d') &lt;= date_format(#{params.endTime},'%Y%m%d')
  297. </if>
  298. </where>
  299. <!-- 数据范围过滤 -->
  300. ${params.dataScope}
  301. order by s.create_time desc
  302. </select>
  303. <select id="selectZsyzSbbzbById" parameterType="Long" resultMap="ZsyzSbbzbResult">
  304. select s.id, s.sbdw, s.tbrq, s.zszxfzr, s.xmbh, s.xmxsmc, s.sfwlhxxxm, s.yzdq_id, s.yzdq_name, s.yzss_name,
  305. s.ntze, s.cylx_id, s.cylx_name, s.xmlb,
  306. s.tzlb, s.nlhd, s.czpt, s.tzzt, s.xmjz, s.gtzzrsfzhm, s.qytzrxyzdm, s.qybj, s.tzfjj, s.sndxse, s.sndnse,
  307. s.tzrxm, s.tzrzw, s.tzrdh, s.xmjj, s.name,
  308. s.strq, s.phone, s.zw, s.user_id, s.create_by, s.type, s.progress, s.dept_id, s.create_time, s.update_by,
  309. s.is_del, s.update_time, s.remark, s.cjd_id,
  310. s.cjd_name, s.is_meet, s.meet_remark,s.shjg
  311. from zsyz_sbbzb s
  312. where s.id = #{id} and s.is_del = 'N'
  313. </select>
  314. <select id="selectZsyzSbbzbListDc" parameterType="ZsyzSbbzb" resultMap="ZsyzSbbzbResult">
  315. select s.id, s.sbdw, s.tbrq, s.zszxfzr, s.xmbh, s.xmxsmc, s.sfwlhxxxm, s.yzdq_id, s.yzdq_name, s.yzss_name,
  316. s.ntze, s.cylx_id, s.cylx_name, s.xmlb,
  317. s.tzlb, s.nlhd, s.czpt, s.tzzt, s.xmjz, s.gtzzrsfzhm, s.qytzrxyzdm, s.qybj, s.tzfjj, s.sndxse, s.sndnse,
  318. s.tzrxm, s.tzrzw, s.tzrdh, s.xmjj, s.name,
  319. s.strq, s.phone, s.zw, s.user_id, s.create_by, s.type, s.progress, s.dept_id, s.create_time, s.update_by,
  320. s.is_del, s.update_time, s.remark, s.cjd_id,
  321. s.cjd_name, s.is_meet, s.meet_remark,
  322. 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,
  323. q.xmgjrxm,q.xmgjrzw,q.xmgjrsjh,
  324. q.xmszd, q.sshy, q.tzfs, q.jsfs, q.sfys, q.jsnr,
  325. 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,
  326. q.create_time,
  327. q.update_by, q.update_time, q.remark,
  328. 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,
  329. k.create_time, k.update_by,
  330. k.update_time, k.remark,
  331. 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,
  332. t.sbqd, t.sbfp, t.sbht, t.fkpz, t.zlcf,
  333. 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,
  334. t.create_time, t.update_by,
  335. t.update_time, t.remark
  336. from zsyz_sbbzb s
  337. left join zsyz_qyxx q on s.id = q.xm_id
  338. left join zsyz_kgxx k on s.id = k.xm_id
  339. left join zsyz_tcxx t on s.id = t.xm_id
  340. <where>
  341. s.is_del = 'N'
  342. <if test="sbdw != null and sbdw != ''">and s.sbdw = #{sbdw}</if>
  343. <if test="tbrq != null ">and s.tbrq = #{tbrq}</if>
  344. <if test="zszxfzr != null and zszxfzr != ''">and s.zszxfzr = #{zszxfzr}</if>
  345. <if test="xmbh != null and xmbh != ''">and s.xmbh = #{xmbh}</if>
  346. <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc = #{xmxsmc}</if>
  347. <if test="sfwlhxxxm != null and sfwlhxxxm != ''">and s.sfwlhxxxm = #{sfwlhxxxm}</if>
  348. <if test="yzdqId != null and yzdqId != ''">and s.yzdq_id = #{yzdqId}</if>
  349. <if test="yzdqName != null and yzdqName != ''">and s.yzdq_name like concat('%', #{yzdqName}, '%')</if>
  350. <if test="yzssName != null and yzssName != ''">and s.yzss_name like concat('%', #{yzssName}, '%')</if>
  351. <if test="ntze != null and ntze != ''">and s.ntze = #{ntze}</if>
  352. <if test="cylxId != null and cylxId != ''">and s.cylx_id = #{cylxId}</if>
  353. <if test="cylxName != null and cylxName != ''">and s.cylx_name like concat('%', #{cylxName}, '%')</if>
  354. <if test="xmlb != null and xmlb != ''">and s.xmlb = #{xmlb}</if>
  355. <if test="tzlb != null and tzlb != ''">and s.tzlb = #{tzlb}</if>
  356. <if test="nlhd != null and nlhd != ''">and s.nlhd = #{nlhd}</if>
  357. <if test="czpt != null and czpt != ''">and s.czpt = #{czpt}</if>
  358. <if test="tzzt != null and tzzt != ''">and s.tzzt = #{tzzt}</if>
  359. <if test="xmjz != null and xmjz != ''">and s.xmjz = #{xmjz}</if>
  360. <if test="gtzzrsfzhm != null and gtzzrsfzhm != ''">and s.gtzzrsfzhm = #{gtzzrsfzhm}</if>
  361. <if test="qytzrxyzdm != null and qytzrxyzdm != ''">and s.qytzrxyzdm = #{qytzrxyzdm}</if>
  362. <if test="qybj != null and qybj != ''">and s.qybj = #{qybj}</if>
  363. <if test="tzfjj != null and tzfjj != ''">and s.tzfjj = #{tzfjj}</if>
  364. <if test="sndxse != null and sndxse != ''">and s.sndxse = #{sndxse}</if>
  365. <if test="sndnse != null and sndnse != ''">and s.sndnse = #{sndnse}</if>
  366. <if test="tzrxm != null and tzrxm != ''">and s.tzrxm = #{tzrxm}</if>
  367. <if test="tzrzw != null and tzrzw != ''">and s.tzrzw = #{tzrzw}</if>
  368. <if test="tzrdh != null and tzrdh != ''">and s.tzrdh = #{tzrdh}</if>
  369. <if test="xmjj != null and xmjj != ''">and s.xmjj = #{xmjj}</if>
  370. <if test="name != null and name != ''">and s.name like concat('%', #{name}, '%')</if>
  371. <if test="strq != null ">and s.strq = #{strq}</if>
  372. <if test="phone != null and phone != ''">and s.phone = #{phone}</if>
  373. <if test="zw != null and zw != ''">and s.zw = #{zw}</if>
  374. <if test="userId != null ">and s.user_id = #{userId}</if>
  375. <if test="type != null and type != ''">and s.type = #{type}</if>
  376. <if test="progress != null and progress != ''">and s.progress = #{progress}</if>
  377. <if test="deptId != null ">and s.dept_id = #{deptId}</if>
  378. <if test="isDel != null and isDel != ''">and s.is_del = #{isDel}</if>
  379. <if test="cjdId != null ">and s.cjd_id = #{cjdId}</if>
  380. <if test="cjdName != null and cjdName != ''">and s.cjd_name like concat('%', #{cjdName}, '%')</if>
  381. <if test="isMeet != null and isMeet != ''">and s.is_meet = #{isMeet}</if>
  382. <if test="meetRemark != null and meetRemark != ''">and s.meet_remark = #{meetRemark}</if>
  383. <if test="shjg != null and shjg != ''">and s.shjg = #{shjg}</if>
  384. <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
  385. AND date_format(s.create_time,'%Y%m%d') &gt;= date_format(#{params.beginTime},'%Y%m%d')
  386. </if>
  387. <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
  388. AND date_format(s.create_time,'%Y%m%d') &lt;= date_format(#{params.endTime},'%Y%m%d')
  389. </if>
  390. </where>
  391. <!-- 数据范围过滤 -->
  392. ${params.dataScope}
  393. order by s.create_time desc
  394. </select>
  395. <select id="selectZsyzSbbzbListByZp" resultType="com.ruoyi.system.domain.projectV2.ZsyzSbbzb">
  396. select s.id,
  397. s.sbdw,
  398. s.tbrq,
  399. s.zszxfzr,
  400. s.xmbh,
  401. s.xmxsmc,
  402. s.sfwlhxxxm,
  403. s.yzdq_id,
  404. s.yzdq_name,
  405. s.yzss_name,
  406. s.ntze,
  407. s.cylx_id,
  408. s.cylx_name,
  409. s.xmlb,
  410. s.tzlb,
  411. s.nlhd,
  412. s.czpt,
  413. s.tzzt,
  414. s.xmjz,
  415. s.gtzzrsfzhm,
  416. s.qytzrxyzdm,
  417. s.qybj,
  418. s.tzfjj,
  419. s.sndxse,
  420. s.sndnse,
  421. s.tzrxm,
  422. s.tzrzw,
  423. s.tzrdh,
  424. s.xmjj,
  425. s.name,
  426. s.strq,
  427. s.phone,
  428. s.zw,
  429. s.user_id,
  430. s.create_by,
  431. s.type,
  432. s.progress,
  433. s.dept_id,
  434. s.create_time,
  435. s.update_by,
  436. s.is_del,
  437. s.update_time,
  438. s.remark,
  439. s.cjd_id,
  440. s.cjd_name,
  441. s.is_meet,
  442. s.meet_remark
  443. from zsyz_project_dept d
  444. left join zsyz_sbbzb s on s.id = d.xm_id
  445. where s.is_del = 'N'
  446. and d.dept_id = #{deptId}
  447. <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc = #{xmxsmc}</if>
  448. <if test="progress != null and progress != ''">and find_in_set(s.progress , #{progress})</if>
  449. <if test="cjdId != null ">and cjd_id = #{cjdId}</if>
  450. <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
  451. AND date_format(s.create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
  452. </if>
  453. <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
  454. AND date_format(s.create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
  455. </if>
  456. order by d.create_time desc
  457. </select>
  458. <select id="ldpsList" parameterType="ZsyzSbbzb" resultMap="ZsyzSbbzbResult">
  459. select s.id, s.sbdw, s.tbrq, s.zszxfzr, s.xmbh, s.xmxsmc, s.sfwlhxxxm, s.yzdq_id, s.yzdq_name, s.yzss_name,
  460. s.ntze, s.cylx_id, s.cylx_name, s.xmlb,
  461. s.tzlb, s.nlhd, s.czpt, s.tzzt, s.xmjz, s.gtzzrsfzhm, s.qytzrxyzdm, s.qybj, s.tzfjj, s.sndxse, s.sndnse,
  462. s.tzrxm, s.tzrzw, s.tzrdh, s.xmjj, s.name,
  463. s.strq, s.phone, s.zw, s.user_id, s.create_by, s.type, s.progress, s.dept_id, s.create_time, s.update_by,
  464. s.is_del, s.update_time, s.remark, s.cjd_id,
  465. s.cjd_name, s.is_meet, s.meet_remark,
  466. j.id,j.xm_id,j.xmbh,j.xmmc,j.dept_id,j.shrxm,j.xmjd,j.shjg,j.shyj,j.shsj
  467. from zsyz_sbbzb s
  468. left join zsyz_shyj j on s.id = j.xm_id
  469. left join zsyz_ldps l on l.source_id = j.id
  470. <where>
  471. s.is_del = 'N' and l.psnr is not null
  472. <if test="sbdw != null and sbdw != ''">and s.sbdw = #{sbdw}</if>
  473. <if test="tbrq != null ">and s.tbrq = #{tbrq}</if>
  474. <if test="zszxfzr != null and zszxfzr != ''">and s.zszxfzr = #{zszxfzr}</if>
  475. <if test="xmbh != null and xmbh != ''">and s.xmbh = #{xmbh}</if>
  476. <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc = #{xmxsmc}</if>
  477. <if test="sfwlhxxxm != null and sfwlhxxxm != ''">and s.sfwlhxxxm = #{sfwlhxxxm}</if>
  478. <if test="yzdqId != null and yzdqId != ''">and s.yzdq_id = #{yzdqId}</if>
  479. <if test="yzdqName != null and yzdqName != ''">and s.yzdq_name like concat('%', #{yzdqName}, '%')</if>
  480. <if test="yzssName != null and yzssName != ''">and s.yzss_name like concat('%', #{yzssName}, '%')</if>
  481. <if test="ntze != null and ntze != ''">and s.ntze = #{ntze}</if>
  482. <if test="cylxId != null and cylxId != ''">and s.cylx_id = #{cylxId}</if>
  483. <if test="cylxName != null and cylxName != ''">and s.cylx_name like concat('%', #{cylxName}, '%')</if>
  484. <if test="xmlb != null and xmlb != ''">and s.xmlb = #{xmlb}</if>
  485. <if test="tzlb != null and tzlb != ''">and s.tzlb = #{tzlb}</if>
  486. <if test="nlhd != null and nlhd != ''">and s.nlhd = #{nlhd}</if>
  487. <if test="czpt != null and czpt != ''">and s.czpt = #{czpt}</if>
  488. <if test="tzzt != null and tzzt != ''">and s.tzzt = #{tzzt}</if>
  489. <if test="xmjz != null and xmjz != ''">and s.xmjz = #{xmjz}</if>
  490. <if test="gtzzrsfzhm != null and gtzzrsfzhm != ''">and s.gtzzrsfzhm = #{gtzzrsfzhm}</if>
  491. <if test="qytzrxyzdm != null and qytzrxyzdm != ''">and s.qytzrxyzdm = #{qytzrxyzdm}</if>
  492. <if test="qybj != null and qybj != ''">and s.qybj = #{qybj}</if>
  493. <if test="tzfjj != null and tzfjj != ''">and s.tzfjj = #{tzfjj}</if>
  494. <if test="sndxse != null and sndxse != ''">and s.sndxse = #{sndxse}</if>
  495. <if test="sndnse != null and sndnse != ''">and s.sndnse = #{sndnse}</if>
  496. <if test="tzrxm != null and tzrxm != ''">and s.tzrxm = #{tzrxm}</if>
  497. <if test="tzrzw != null and tzrzw != ''">and s.tzrzw = #{tzrzw}</if>
  498. <if test="tzrdh != null and tzrdh != ''">and s.tzrdh = #{tzrdh}</if>
  499. <if test="xmjj != null and xmjj != ''">and s.xmjj = #{xmjj}</if>
  500. <if test="name != null and name != ''">and s.name like concat('%', #{name}, '%')</if>
  501. <if test="strq != null ">and s.strq = #{strq}</if>
  502. <if test="phone != null and phone != ''">and s.phone = #{phone}</if>
  503. <if test="zw != null and zw != ''">and s.zw = #{zw}</if>
  504. <if test="userId != null ">and s.user_id = #{userId}</if>
  505. <if test="type != null and type != ''">and s.type = #{type}</if>
  506. <if test="progress != null and progress != ''">and s.progress in (#{progress})</if>
  507. <if test="isDel != null and isDel != ''">and s.is_del = #{isDel}</if>
  508. <if test="cjdId != null ">and s.cjd_id = #{cjdId}</if>
  509. <if test="cjdName != null and cjdName != ''">and s.cjd_name like concat('%', #{cjdName}, '%')</if>
  510. <if test="isMeet != null and isMeet != ''">and s.is_meet = #{isMeet}</if>
  511. <if test="meetRemark != null and meetRemark != ''">and s.meet_remark = #{meetRemark}</if>
  512. <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
  513. AND date_format(s.create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
  514. </if>
  515. <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
  516. AND date_format(s.create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
  517. </if>
  518. </where>
  519. <!-- 数据范围过滤 -->
  520. ${params.dataScope}
  521. order by cjsj desc
  522. </select>
  523. <select id="ldpsListCount" resultType="java.lang.Long">
  524. select count(1)
  525. from (select s.id
  526. from zsyz_sbbzb s
  527. left join zsyz_shyj j on s.id = j.xm_id
  528. left join zsyz_ldps l on l.source_id = j.id
  529. where s.is_del = 'N' and l.psnr is not null
  530. <if test="sbdw != null and sbdw != ''">and s.sbdw = #{sbdw}</if>
  531. <if test="tbrq != null ">and s.tbrq = #{tbrq}</if>
  532. <if test="zszxfzr != null and zszxfzr != ''">and s.zszxfzr = #{zszxfzr}</if>
  533. <if test="xmbh != null and xmbh != ''">and s.xmbh = #{xmbh}</if>
  534. <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc = #{xmxsmc}</if>
  535. <if test="sfwlhxxxm != null and sfwlhxxxm != ''">and s.sfwlhxxxm = #{sfwlhxxxm}</if>
  536. <if test="yzdqId != null and yzdqId != ''">and s.yzdq_id = #{yzdqId}</if>
  537. <if test="yzdqName != null and yzdqName != ''">and s.yzdq_name like concat('%', #{yzdqName}, '%')</if>
  538. <if test="yzssName != null and yzssName != ''">and s.yzss_name like concat('%', #{yzssName}, '%')</if>
  539. <if test="ntze != null and ntze != ''">and s.ntze = #{ntze}</if>
  540. <if test="cylxId != null and cylxId != ''">and s.cylx_id = #{cylxId}</if>
  541. <if test="cylxName != null and cylxName != ''">and s.cylx_name like concat('%', #{cylxName}, '%')</if>
  542. <if test="xmlb != null and xmlb != ''">and s.xmlb = #{xmlb}</if>
  543. <if test="tzlb != null and tzlb != ''">and s.tzlb = #{tzlb}</if>
  544. <if test="nlhd != null and nlhd != ''">and s.nlhd = #{nlhd}</if>
  545. <if test="czpt != null and czpt != ''">and s.czpt = #{czpt}</if>
  546. <if test="tzzt != null and tzzt != ''">and s.tzzt = #{tzzt}</if>
  547. <if test="xmjz != null and xmjz != ''">and s.xmjz = #{xmjz}</if>
  548. <if test="gtzzrsfzhm != null and gtzzrsfzhm != ''">and s.gtzzrsfzhm = #{gtzzrsfzhm}</if>
  549. <if test="qytzrxyzdm != null and qytzrxyzdm != ''">and s.qytzrxyzdm = #{qytzrxyzdm}</if>
  550. <if test="qybj != null and qybj != ''">and s.qybj = #{qybj}</if>
  551. <if test="tzfjj != null and tzfjj != ''">and s.tzfjj = #{tzfjj}</if>
  552. <if test="sndxse != null and sndxse != ''">and s.sndxse = #{sndxse}</if>
  553. <if test="sndnse != null and sndnse != ''">and s.sndnse = #{sndnse}</if>
  554. <if test="tzrxm != null and tzrxm != ''">and s.tzrxm = #{tzrxm}</if>
  555. <if test="tzrzw != null and tzrzw != ''">and s.tzrzw = #{tzrzw}</if>
  556. <if test="tzrdh != null and tzrdh != ''">and s.tzrdh = #{tzrdh}</if>
  557. <if test="xmjj != null and xmjj != ''">and s.xmjj = #{xmjj}</if>
  558. <if test="name != null and name != ''">and s.name like concat('%', #{name}, '%')</if>
  559. <if test="strq != null ">and s.strq = #{strq}</if>
  560. <if test="phone != null and phone != ''">and s.phone = #{phone}</if>
  561. <if test="zw != null and zw != ''">and s.zw = #{zw}</if>
  562. <if test="userId != null ">and s.user_id = #{userId}</if>
  563. <if test="type != null and type != ''">and s.type = #{type}</if>
  564. <if test="progress != null and progress != ''">and s.progress in (#{progress})</if>
  565. <if test="isDel != null and isDel != ''">and s.is_del = #{isDel}</if>
  566. <if test="cjdId != null ">and s.cjd_id = #{cjdId}</if>
  567. <if test="cjdName != null and cjdName != ''">and s.cjd_name like concat('%', #{cjdName}, '%')</if>
  568. <if test="isMeet != null and isMeet != ''">and s.is_meet = #{isMeet}</if>
  569. <if test="meetRemark != null and meetRemark != ''">and s.meet_remark = #{meetRemark}</if>
  570. <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
  571. AND date_format(s.create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
  572. </if>
  573. <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
  574. AND date_format(s.create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
  575. </if>
  576. group by s.id ) a
  577. </select>
  578. <select id="selectZsyzSbbzbListCount" resultType="java.lang.Long">
  579. select count(1)
  580. from (
  581. select s.id
  582. from zsyz_sbbzb s
  583. left join zsyz_shyj j on s.id = j.xm_id
  584. <where>
  585. s.is_del = 'N'
  586. <if test="sbdw != null and sbdw != ''">and s.sbdw = #{sbdw}</if>
  587. <if test="tbrq != null ">and s.tbrq = #{tbrq}</if>
  588. <if test="zszxfzr != null and zszxfzr != ''">and s.zszxfzr = #{zszxfzr}</if>
  589. <if test="xmbh != null and xmbh != ''">and s.xmbh = #{xmbh}</if>
  590. <if test="xmxsmc != null and xmxsmc != ''">and s.xmxsmc = #{xmxsmc}</if>
  591. <if test="sfwlhxxxm != null and sfwlhxxxm != ''">and s.sfwlhxxxm = #{sfwlhxxxm}</if>
  592. <if test="yzdqId != null and yzdqId != ''">and s.yzdq_id = #{yzdqId}</if>
  593. <if test="yzdqName != null and yzdqName != ''">and s.yzdq_name like concat('%', #{yzdqName}, '%')</if>
  594. <if test="yzssName != null and yzssName != ''">and s.yzss_name like concat('%', #{yzssName}, '%')</if>
  595. <if test="ntze != null and ntze != ''">and s.ntze = #{ntze}</if>
  596. <if test="cylxId != null and cylxId != ''">and s.cylx_id = #{cylxId}</if>
  597. <if test="cylxName != null and cylxName != ''">and s.cylx_name like concat('%', #{cylxName}, '%')</if>
  598. <if test="xmlb != null and xmlb != ''">and s.xmlb = #{xmlb}</if>
  599. <if test="tzlb != null and tzlb != ''">and s.tzlb = #{tzlb}</if>
  600. <if test="nlhd != null and nlhd != ''">and s.nlhd = #{nlhd}</if>
  601. <if test="czpt != null and czpt != ''">and s.czpt = #{czpt}</if>
  602. <if test="tzzt != null and tzzt != ''">and s.tzzt = #{tzzt}</if>
  603. <if test="xmjz != null and xmjz != ''">and s.xmjz = #{xmjz}</if>
  604. <if test="gtzzrsfzhm != null and gtzzrsfzhm != ''">and s.gtzzrsfzhm = #{gtzzrsfzhm}</if>
  605. <if test="qytzrxyzdm != null and qytzrxyzdm != ''">and s.qytzrxyzdm = #{qytzrxyzdm}</if>
  606. <if test="qybj != null and qybj != ''">and s.qybj = #{qybj}</if>
  607. <if test="tzfjj != null and tzfjj != ''">and s.tzfjj = #{tzfjj}</if>
  608. <if test="sndxse != null and sndxse != ''">and s.sndxse = #{sndxse}</if>
  609. <if test="sndnse != null and sndnse != ''">and s.sndnse = #{sndnse}</if>
  610. <if test="tzrxm != null and tzrxm != ''">and s.tzrxm = #{tzrxm}</if>
  611. <if test="tzrzw != null and tzrzw != ''">and s.tzrzw = #{tzrzw}</if>
  612. <if test="tzrdh != null and tzrdh != ''">and s.tzrdh = #{tzrdh}</if>
  613. <if test="xmjj != null and xmjj != ''">and s.xmjj = #{xmjj}</if>
  614. <if test="name != null and name != ''">and s.name like concat('%', #{name}, '%')</if>
  615. <if test="strq != null ">and s.strq = #{strq}</if>
  616. <if test="phone != null and phone != ''">and s.phone = #{phone}</if>
  617. <if test="zw != null and zw != ''">and s.zw = #{zw}</if>
  618. <if test="userId != null ">and s.user_id = #{userId}</if>
  619. <if test="type != null and type != ''">and s.type = #{type}</if>
  620. <if test="progress != null and progress != ''">and s.progress in (#{progress})</if>
  621. <if test="isDel != null and isDel != ''">and s.is_del = #{isDel}</if>
  622. <if test="cjdId != null ">and s.cjd_id = #{cjdId}</if>
  623. <if test="cjdName != null and cjdName != ''">and s.cjd_name like concat('%', #{cjdName}, '%')</if>
  624. <if test="isMeet != null and isMeet != ''">and s.is_meet = #{isMeet}</if>
  625. <if test="meetRemark != null and meetRemark != ''">and s.meet_remark = #{meetRemark}</if>
  626. <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
  627. AND date_format(s.create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
  628. </if>
  629. <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
  630. AND date_format(s.create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
  631. </if>
  632. </where>
  633. group by s.id ) a
  634. </select>
  635. <select id="selectZsyzSbbzbCjdList" parameterType="ZsyzSbbzb" resultMap="ZsyzSbbzbResult">
  636. <include refid="selectZsyzSbbzbVo"/>
  637. <where>
  638. is_del = 'N'
  639. <if test="xmxsmc != null and xmxsmc != ''">and xmxsmc = #{xmxsmc}</if>
  640. <if test="cjdId != null ">and cjd_id = #{cjdId}</if>
  641. <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
  642. AND date_format(create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
  643. </if>
  644. <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
  645. AND date_format(create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
  646. </if>
  647. </where>
  648. order by create_time desc
  649. </select>
  650. <insert id="insertZsyzSbbzb" parameterType="ZsyzSbbzb" useGeneratedKeys="true" keyProperty="id">
  651. insert into zsyz_sbbzb
  652. <trim prefix="(" suffix=")" suffixOverrides=",">
  653. <if test="sbdw != null and sbdw != ''">sbdw,</if>
  654. <if test="tbrq != null">tbrq,</if>
  655. <if test="zszxfzr != null and zszxfzr != ''">zszxfzr,</if>
  656. <if test="xmbh != null">xmbh,</if>
  657. <if test="xmxsmc != null and xmxsmc != ''">xmxsmc,</if>
  658. <if test="sfwlhxxxm != null and sfwlhxxxm != ''">sfwlhxxxm,</if>
  659. <if test="yzdqId != null and yzdqId != ''">yzdq_id,</if>
  660. <if test="yzdqName != null and yzdqName != ''">yzdq_name,</if>
  661. <if test="yzssName != null and yzssName != ''">yzss_name,</if>
  662. <if test="ntze != null and ntze != ''">ntze,</if>
  663. <if test="cylxId != null and cylxId != ''">cylx_id,</if>
  664. <if test="cylxName != null and cylxName != ''">cylx_name,</if>
  665. <if test="xmlb != null and xmlb != ''">xmlb,</if>
  666. <if test="tzlb != null and tzlb != ''">tzlb,</if>
  667. <if test="nlhd != null and nlhd != ''">nlhd,</if>
  668. <if test="czpt != null and czpt != ''">czpt,</if>
  669. <if test="tzzt != null and tzzt != ''">tzzt,</if>
  670. <if test="xmjz != null and xmjz != ''">xmjz,</if>
  671. <if test="gtzzrsfzhm != null">gtzzrsfzhm,</if>
  672. <if test="qytzrxyzdm != null">qytzrxyzdm,</if>
  673. <if test="qybj != null and qybj != ''">qybj,</if>
  674. <if test="tzfjj != null">tzfjj,</if>
  675. <if test="sndxse != null">sndxse,</if>
  676. <if test="sndnse != null">sndnse,</if>
  677. <if test="tzrxm != null">tzrxm,</if>
  678. <if test="tzrzw != null">tzrzw,</if>
  679. <if test="tzrdh != null">tzrdh,</if>
  680. <if test="xmjj != null">xmjj,</if>
  681. <if test="name != null and name != ''">name,</if>
  682. <if test="strq != null">strq,</if>
  683. <if test="phone != null and phone != ''">phone,</if>
  684. <if test="zw != null and zw != ''">zw,</if>
  685. <if test="userId != null">user_id,</if>
  686. <if test="createBy != null">create_by,</if>
  687. <if test="type != null">type,</if>
  688. <if test="progress != null">progress,</if>
  689. <if test="deptId != null">dept_id,</if>
  690. <if test="createTime != null">create_time,</if>
  691. <if test="updateBy != null">update_by,</if>
  692. <if test="isDel != null">is_del,</if>
  693. <if test="updateTime != null">update_time,</if>
  694. <if test="remark != null">remark,</if>
  695. <if test="cjdId != null">cjd_id,</if>
  696. <if test="cjdName != null">cjd_name,</if>
  697. <if test="isMeet != null">is_meet,</if>
  698. <if test="meetRemark != null">meet_remark,</if>
  699. <if test="shjg != null">shjg,</if>
  700. </trim>
  701. <trim prefix="values (" suffix=")" suffixOverrides=",">
  702. <if test="sbdw != null and sbdw != ''">#{sbdw},</if>
  703. <if test="tbrq != null">#{tbrq},</if>
  704. <if test="zszxfzr != null and zszxfzr != ''">#{zszxfzr},</if>
  705. <if test="xmbh != null">#{xmbh},</if>
  706. <if test="xmxsmc != null and xmxsmc != ''">#{xmxsmc},</if>
  707. <if test="sfwlhxxxm != null and sfwlhxxxm != ''">#{sfwlhxxxm},</if>
  708. <if test="yzdqId != null and yzdqId != ''">#{yzdqId},</if>
  709. <if test="yzdqName != null and yzdqName != ''">#{yzdqName},</if>
  710. <if test="yzssName != null and yzssName != ''">#{yzssName},</if>
  711. <if test="ntze != null and ntze != ''">#{ntze},</if>
  712. <if test="cylxId != null and cylxId != ''">#{cylxId},</if>
  713. <if test="cylxName != null and cylxName != ''">#{cylxName},</if>
  714. <if test="xmlb != null and xmlb != ''">#{xmlb},</if>
  715. <if test="tzlb != null and tzlb != ''">#{tzlb},</if>
  716. <if test="nlhd != null and nlhd != ''">#{nlhd},</if>
  717. <if test="czpt != null and czpt != ''">#{czpt},</if>
  718. <if test="tzzt != null and tzzt != ''">#{tzzt},</if>
  719. <if test="xmjz != null and xmjz != ''">#{xmjz},</if>
  720. <if test="gtzzrsfzhm != null">#{gtzzrsfzhm},</if>
  721. <if test="qytzrxyzdm != null">#{qytzrxyzdm},</if>
  722. <if test="qybj != null and qybj != ''">#{qybj},</if>
  723. <if test="tzfjj != null">#{tzfjj},</if>
  724. <if test="sndxse != null">#{sndxse},</if>
  725. <if test="sndnse != null">#{sndnse},</if>
  726. <if test="tzrxm != null">#{tzrxm},</if>
  727. <if test="tzrzw != null">#{tzrzw},</if>
  728. <if test="tzrdh != null">#{tzrdh},</if>
  729. <if test="xmjj != null">#{xmjj},</if>
  730. <if test="name != null and name != ''">#{name},</if>
  731. <if test="strq != null">#{strq},</if>
  732. <if test="phone != null and phone != ''">#{phone},</if>
  733. <if test="zw != null and zw != ''">#{zw},</if>
  734. <if test="userId != null">#{userId},</if>
  735. <if test="createBy != null">#{createBy},</if>
  736. <if test="type != null">#{type},</if>
  737. <if test="progress != null">#{progress},</if>
  738. <if test="deptId != null">#{deptId},</if>
  739. <if test="createTime != null">#{createTime},</if>
  740. <if test="updateBy != null">#{updateBy},</if>
  741. <if test="isDel != null">#{isDel},</if>
  742. <if test="updateTime != null">#{updateTime},</if>
  743. <if test="remark != null">#{remark},</if>
  744. <if test="cjdId != null">#{cjdId},</if>
  745. <if test="cjdName != null">#{cjdName},</if>
  746. <if test="isMeet != null">#{isMeet},</if>
  747. <if test="meetRemark != null">#{meetRemark},</if>
  748. <if test="shjg != null">#{shjg},</if>
  749. </trim>
  750. </insert>
  751. <update id="updateZsyzSbbzb" parameterType="ZsyzSbbzb">
  752. update zsyz_sbbzb
  753. <trim prefix="SET" suffixOverrides=",">
  754. <if test="sbdw != null and sbdw != ''">sbdw = #{sbdw},</if>
  755. <if test="tbrq != null">tbrq = #{tbrq},</if>
  756. <if test="zszxfzr != null and zszxfzr != ''">zszxfzr = #{zszxfzr},</if>
  757. <if test="xmbh != null">xmbh = #{xmbh},</if>
  758. <if test="xmxsmc != null and xmxsmc != ''">xmxsmc = #{xmxsmc},</if>
  759. <if test="sfwlhxxxm != null and sfwlhxxxm != ''">sfwlhxxxm = #{sfwlhxxxm},</if>
  760. <if test="yzdqId != null and yzdqId != ''">yzdq_id = #{yzdqId},</if>
  761. <if test="yzdqName != null and yzdqName != ''">yzdq_name = #{yzdqName},</if>
  762. <if test="yzssName != null and yzssName != ''">yzss_name = #{yzssName},</if>
  763. <if test="ntze != null and ntze != ''">ntze = #{ntze},</if>
  764. <if test="cylxId != null and cylxId != ''">cylx_id = #{cylxId},</if>
  765. <if test="cylxName != null and cylxName != ''">cylx_name = #{cylxName},</if>
  766. <if test="xmlb != null and xmlb != ''">xmlb = #{xmlb},</if>
  767. <if test="tzlb != null and tzlb != ''">tzlb = #{tzlb},</if>
  768. <if test="nlhd != null and nlhd != ''">nlhd = #{nlhd},</if>
  769. <if test="czpt != null and czpt != ''">czpt = #{czpt},</if>
  770. <if test="tzzt != null and tzzt != ''">tzzt = #{tzzt},</if>
  771. <if test="xmjz != null and xmjz != ''">xmjz = #{xmjz},</if>
  772. <if test="gtzzrsfzhm != null">gtzzrsfzhm = #{gtzzrsfzhm},</if>
  773. <if test="qytzrxyzdm != null">qytzrxyzdm = #{qytzrxyzdm},</if>
  774. <if test="qybj != null and qybj != ''">qybj = #{qybj},</if>
  775. <if test="tzfjj != null">tzfjj = #{tzfjj},</if>
  776. <if test="sndxse != null">sndxse = #{sndxse},</if>
  777. <if test="sndnse != null">sndnse = #{sndnse},</if>
  778. <if test="tzrxm != null">tzrxm = #{tzrxm},</if>
  779. <if test="tzrzw != null">tzrzw = #{tzrzw},</if>
  780. <if test="tzrdh != null">tzrdh = #{tzrdh},</if>
  781. <if test="xmjj != null">xmjj = #{xmjj},</if>
  782. <if test="name != null and name != ''">name = #{name},</if>
  783. <if test="strq != null">strq = #{strq},</if>
  784. <if test="phone != null and phone != ''">phone = #{phone},</if>
  785. <if test="zw != null and zw != ''">zw = #{zw},</if>
  786. <if test="userId != null">user_id = #{userId},</if>
  787. <if test="createBy != null">create_by = #{createBy},</if>
  788. <if test="type != null">type = #{type},</if>
  789. <if test="progress != null">progress = #{progress},</if>
  790. <if test="deptId != null">dept_id = #{deptId},</if>
  791. <if test="createTime != null">create_time = #{createTime},</if>
  792. <if test="updateBy != null">update_by = #{updateBy},</if>
  793. <if test="isDel != null">is_del = #{isDel},</if>
  794. <if test="updateTime != null">update_time = #{updateTime},</if>
  795. <if test="remark != null">remark = #{remark},</if>
  796. <if test="cjdId != null">cjd_id = #{cjdId},</if>
  797. <if test="cjdName != null">cjd_name = #{cjdName},</if>
  798. <if test="isMeet != null">is_meet = #{isMeet},</if>
  799. <if test="meetRemark != null">meet_remark = #{meetRemark},</if>
  800. <if test="shjg != null">shjg = #{shjg},</if>
  801. </trim>
  802. where id = #{id}
  803. </update>
  804. <update id="updateZsyzSbbzbCjd" parameterType="ZsyzSbbzb">
  805. update zsyz_sbbzb
  806. <trim prefix="SET" suffixOverrides=",">
  807. <if test="progress != null">progress = #{progress},</if>
  808. <if test="cjdId != null">cjd_id = #{cjdId},</if>
  809. <if test="cjdName != null">cjd_name = #{cjdName},</if>
  810. </trim>
  811. where id = #{id}
  812. </update>
  813. <update id="updateZsyzSbbzbForZc" parameterType="ZsyzSbbzb">
  814. update zsyz_sbbzb
  815. <trim prefix="SET" suffixOverrides=",">
  816. <if test="type != null and type != ''">type = #{type},</if>
  817. <if test="isDel != null and isDel != ''">is_del = #{isDel},</if>
  818. </trim>
  819. where id = #{id}
  820. </update>
  821. <update id="updateZsyzSbbzbProgress" parameterType="ZsyzSbbzb">
  822. update zsyz_sbbzb
  823. <trim prefix="SET" suffixOverrides=",">
  824. <if test="progress != null and progress != ''">progress = #{progress},</if>
  825. <if test="shjg != null and shjg != ''">shjg = #{shjg},</if>
  826. <if test=" progress == 2">cjd_id = null,</if>
  827. <if test=" progress == 2">cjd_name = null,</if>
  828. </trim>
  829. where id = #{id}
  830. </update>
  831. <update id="updateZsyzSbbzbMeet" parameterType="ZsyzSbbzb">
  832. update zsyz_sbbzb
  833. set is_meet = #{isMeet}
  834. where id = #{id}
  835. </update>
  836. <delete id="deleteZsyzSbbzbById" parameterType="Long">
  837. delete
  838. from zsyz_sbbzb
  839. where id = #{id}
  840. </delete>
  841. <delete id="deleteZsyzSbbzbByIds" parameterType="String">
  842. delete from zsyz_sbbzb where id in
  843. <foreach item="id" collection="array" open="(" separator="," close=")">
  844. #{id}
  845. </foreach>
  846. </delete>
  847. </mapper>