ZsyzSbbzbMapper.xml 49 KB

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