imp系统运维用到的sql文件版本仓库
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

查询当天各模块录入情况的sql.txt 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  1. 当天各模块数据录入
  2. --select * from SGGMIIP.v_user_model;
  3. select a.user_desc 用户名,bm.fdn 单位,bm.dn 部门,d.serviceType 采购合同类型,
  4. (NVL(b.ks,0) + NVL(c.zyh,0) + NVL(d.cg,0) + NVL(e.xs,0) + NVL(f.CGDD,0) + NVL(g.XSDD,0) + NVL(h.ps,0) + NVL(i.kzh,0) + NVL(j.KZJH,0)
  5. + NVL(k.KZSQ,0) + NVL(l.KZDJ,0) + NVL(m.DD,0) + NVL(n.SZDJ,0) + NVL(o.XM,0) + NVL(p.KSSX,0) + NVL(q.XSXY,0) + NVL(r.CGXY,0)
  6. + NVL(s.ZC,0) + NVL(t.CC,0) + NVL(u.JG,0) + NVL(v.QT,0) + NVL(w.GB,0) + NVL(x.GD,0) + NVL(y.QZ,0) + NVL(z.HH,0) + NVL(a1.TD,0)
  7. + NVL(a2.DZ,0) + NVL(a3.BG,0) + NVL(a4.ZJJH,0) + NVL(a5.SK,0) + NVL(a6.SKTZ,0) + NVL(a7.FK,0) + NVL(a8.FM,0) + NVL(a9.FY,0)
  8. + NVL(a10.RZSQ,0) + NVL(a11.RZFK,0) + NVL(a12.RZHK,0) + NVL(a13.DHTZ,0) + NVL(a14.CGRK,0) + NVL(a15.QTRK,0) + NVL(a16.RKTH,0)
  9. + NVL(a17.FH,0) + NVL(a18.XSCK,0) + NVL(a19.QTCK,0) + NVL(a20.JKDP,0) + NVL(a21.KPTZ,0) + NVL(a22.JXFP,0) + NVL(a23.FYFP,0)
  10. + NVL(a24.XSJS,0) + NVL(a25.XSFYKP,0) + NVL(a26.HZZG,0) + NVL(a27.FYZG,0) + NVL(a28.SPBMSQ,0)+ NVL(a30.zyjh,0) + NVL(a31.kcjg,0))合计录入,
  11. b.ks 客商管理,c.ZYH 资源号,d.cg 采购合同,e.xs 销售合同,
  12. f.CGDD 采购订单,g.XSDD 销售订单,h.ps 合同评审,i.kzh 开证行,j.KZJH 开证计划,k.KZSQ 开证申请,
  13. l.KZDJ 开证登记,m.DD 信用证到单,n.SZDJ 收证登记,o.XM 项目计划书,p.KSSX 客商授信评审,q.XSXY 代理销售协议,
  14. r.CGXY 代理采购协议,s.ZC 租船合同,t.CC 仓储合同,u.JG 加工合同,v.QT 其他合同,w.GB 合同关闭申请 ,x.GD 合同归档,y.QZ 合同签章工作台
  15. ,z.HH 换货合同,a1.TD 提单登记,a2.DZ 单证制作,a3.BG 报关单,a4.ZJJH 资金计划,a5.SK 收款,a6.SKTZ 收款调整,
  16. a7.FK 货款付款,a8.FM 非贸付款,a9.FY 费用付款,a10.RZSQ 融资申请,a11.RZFK 融资放款,a12.RZHK 融资还款,a13.DHTZ 到货通知,
  17. a14.CGRK 采购入库,a15.QTRK 其他入库,a16.RKTH 入库退回,a17.FH 放货申请,a18.XSCK 销售出库,a19.QTCK 其他出库,
  18. a20.JKDP 进口到票,a21.KPTZ 开票通知,a22.JXFP 进项发票登记,a23.FYFP 费用发票登记,a24.XSJS 销售结算开票,a25.XSFYKP 销售费用结算开票
  19. ,a26.HZZG 货值暂估,a27.FYZG 费用暂估,a28.SPBMSQ 商品编码申请,a30.zyjh 作业计划,a31.kcjg 库存加工
  20. from SGGMIIP.sys_user a
  21. LEFT JOIN SGGMIIP.SYS_USER_DEPARTMENT sud on a.id = sud.user_id
  22. LEFT JOIN (select fsd.dept_name as fdn,fsd.dept_code as fdc,sd.dept_name as dn,sd.dept_code as dc,sd.id from SGGMIIP.SYS_DEPARTMENT sd LEFT JOIN SGGMIIP.SYS_DEPARTMENT fsd
  23. on sd.f_id = fsd.dept_code)bm on bm.id = sud.dept_id
  24. left join
  25. (select create_by,count(*)ks from SGGMIIP.custctrl --客商
  26. where nvl(del_flag,0)<>1
  27. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  28. group by create_by ) b on a.USER_CODE=b.create_by
  29. left join
  30. (select create_by,count(*) zyh from SGGMIIP.resourcectrl --资源号
  31. where nvl(del_flag,0)<>1
  32. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  33. group by create_by ) c on a.USER_CODE=c.create_by
  34. left join
  35. (select create_by,serviceType,count(*)cg from SGGMIIP.purchaseContract --采购合同
  36. where nvl(del_flag,0)<>1
  37. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  38. and nvl(remark,'') != '期初导入-采购'
  39. group by create_by ,serviceType) d on a.USER_CODE=d.create_by
  40. left join
  41. (select create_by,count(*)xs from SGGMIIP.salesContract --销售合同
  42. where nvl(del_flag,0)<>1
  43. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  44. and nvl(remark,'') != '期初'
  45. group by create_by ) e on a.USER_CODE=e.create_by
  46. left join
  47. (select create_by,count(*)cgdd from SGGMIIP.purchaseOrder --采购订单
  48. where nvl(del_flag,0)<>1
  49. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  50. group by create_by ) f on a.USER_CODE=f.create_by
  51. left join
  52. (select create_by,count(*) xsdd from SGGMIIP.salesOrder --销售订单
  53. where nvl(del_flag,0)<>1
  54. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  55. group by create_by ) g on a.USER_CODE=g.create_by
  56. left join
  57. (select create_by,count(*)ps from SGGMIIP.ContractReview --合同评审
  58. where nvl(del_flag,0)<>1
  59. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  60. group by create_by ) h on a.USER_CODE=h.create_by
  61. left join
  62. (select create_by,count(*)kzh from SGGMIIP.LcBank --开证行
  63. where nvl(del_flag,0)<>1
  64. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  65. group by create_by ) i on a.USER_CODE=i.create_by
  66. left join
  67. (select create_by,count(*)kzjh from SGGMIIP.lcplan --开证计划
  68. where nvl(del_flag,0)<>1
  69. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  70. group by create_by ) j on a.USER_CODE=j.create_by
  71. left join
  72. (select create_by,count(*)kzsq from SGGMIIP.lcApplication --开证申请
  73. where nvl(del_flag,0)<>1
  74. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  75. group by create_by ) k on a.USER_CODE=k.create_by
  76. left join
  77. (select create_by,count(*)kzdj from SGGMIIP.Lcctrl --开证登记
  78. where nvl(del_flag,0)<>1
  79. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  80. group by create_by ) l on a.USER_CODE=l.create_by
  81. left join
  82. (select create_by,count(*)dd from SGGMIIP.lcrctrl --信用证到单
  83. where nvl(del_flag,0)<>1
  84. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  85. group by create_by ) m on a.USER_CODE=M.create_by
  86. left join
  87. (select create_by,count(*)szdj from SGGMIIP.breceiptctrl--收证登记
  88. where nvl(del_flag,0)<>1
  89. and nvl(create_by,'')<>'' and fmodalid =20 and create_time>='2025-12-04 17:00:01'
  90. group by create_by ) N on a.USER_CODE=n.create_by
  91. left join
  92. (select create_by,count(*)xm from SGGMIIP.ProjectPlan --项目计划书
  93. where nvl(del_flag,0)<>1
  94. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  95. group by create_by ) o on a.USER_CODE=o.create_by
  96. left join
  97. (select create_by,count(*)kssx from SGGMIIP.CtCredReview--客商授信评审
  98. where nvl(del_flag,0)<>1
  99. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  100. group by create_by ) p on a.USER_CODE=p.create_by
  101. left join
  102. (select create_by,count(*)xsxy from SGGMIIP.ExpAgencyAgt --代理销售协议
  103. where nvl(del_flag,0)<>1
  104. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  105. group by create_by ) q on a.USER_CODE=q.create_by
  106. left join
  107. (select create_by,count(*)cgxy from SGGMIIP.ImpAgencyAgt--代理采购协议
  108. where nvl(del_flag,0)<>1
  109. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  110. group by create_by ) r on a.USER_CODE=r.create_by
  111. left join
  112. (select create_by,count(*)zc from SGGMIIP.shippingContract --租船合同
  113. where nvl(del_flag,0)<>1
  114. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  115. group by create_by ) s on a.USER_CODE=s.create_by
  116. left join
  117. (select create_by,count(*)cc from SGGMIIP.whosContract--仓储合同
  118. where nvl(del_flag,0)<>1
  119. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  120. group by create_by ) t on a.USER_CODE=t.create_by
  121. left join
  122. (select create_by,count(*)jg from SGGMIIP.processContract --加工合同
  123. where nvl(del_flag,0)<>1
  124. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  125. group by create_by ) u on a.USER_CODE=u.create_by
  126. left join
  127. (select create_by,count(*)qt from SGGMIIP.otherTContract--其他合同
  128. where nvl(del_flag,0)<>1
  129. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  130. group by create_by ) v on a.USER_CODE=v.create_by
  131. left join
  132. (select create_by,count(*)gb from SGGMIIP.contrCloseReq --合同关闭
  133. where nvl(del_flag,0)<>1
  134. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  135. group by create_by ) w on a.USER_CODE=w.create_by
  136. left join
  137. (select create_by,count(*)gd from SGGMIIP.contractArchiving--合同归档
  138. where nvl(del_flag,0)<>1
  139. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  140. group by create_by ) x on a.USER_CODE=x.create_by
  141. left join
  142. (select create_by,count(*)qz from SGGMIIP.contractSignature --合同签章
  143. where nvl(del_flag,0)<>1
  144. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  145. group by create_by ) y on a.USER_CODE=y.create_by
  146. left join
  147. (select create_by,count(*)hh from SGGMIIP.exchangeContract--换货合同
  148. where nvl(del_flag,0)<>1
  149. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  150. group by create_by ) z on a.USER_CODE=z.create_by
  151. left join
  152. (select create_by,count(*)td from SGGMIIP.blReg --提单登记
  153. where nvl(del_flag,0)<>1
  154. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  155. group by create_by ) a1 on a.USER_CODE=a1.create_by
  156. left join
  157. (select create_by,count(*)dz from SGGMIIP.invList--单证制作
  158. where nvl(del_flag,0)<>1
  159. and nvl(create_by,'')<>'' and fmodalid='11' and create_time>='2025-12-04 17:00:01'
  160. group by create_by ) a2 on a.USER_CODE=a2.create_by
  161. left join
  162. (select create_by,count(*)bg from SGGMIIP.invList --报关
  163. where nvl(del_flag,0)<>1
  164. and nvl(create_by,'')<>'' and fmodalid='130' and create_time>='2025-12-04 17:00:01'
  165. group by create_by ) a3 on a.USER_CODE=a3.create_by
  166. left join
  167. (select create_by,count(*)zjjh from SGGMIIP.FundPlan--资金计划
  168. where nvl(del_flag,0)<>1
  169. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  170. group by create_by ) a4 on a.USER_CODE=a4.create_by
  171. left join
  172. (select create_by,count(*)sk from SGGMIIP.breceiptctrl --收款
  173. where nvl(del_flag,0)<>1
  174. and nvl(create_by,'')<>'' and fmodalid='19' and create_time>='2025-12-04 17:00:01'
  175. group by create_by ) a5 on a.USER_CODE=a5.create_by
  176. left join
  177. (select create_by,count(*)sktz from SGGMIIP.ReceiptAdjustLog --收款调整申请
  178. where nvl(del_flag,0)<>1
  179. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  180. group by create_by ) a6 on a.USER_CODE=a6.create_by
  181. left join
  182. (select create_by,count(*)fk from SGGMIIP.paymgrctrl --货款付款
  183. where nvl(del_flag,0)<>1
  184. and nvl(create_by,'')<>'' and fmodalid='15' and create_time>='2025-12-04 17:00:01'
  185. group by create_by ) a7 on a.USER_CODE=a7.create_by
  186. left join
  187. (select create_by,count(*)fm from SGGMIIP.paymgrctrl --非贸货款
  188. where nvl(del_flag,0)<>1
  189. and nvl(create_by,'')<>'' and fmodalid='17' and create_time>='2025-12-04 17:00:01'
  190. group by create_by ) a8 on a.USER_CODE=a8.create_by
  191. left join
  192. (select create_by,count(*)fy from SGGMIIP.paymgrctrl --费用付款
  193. where nvl(del_flag,0)<>1
  194. and nvl(create_by,'')<>'' and fmodalid='16' and create_time>='2025-12-04 17:00:01'
  195. group by create_by ) a9 on a.USER_CODE=a9.create_by
  196. left join
  197. (select create_by,count(*)rzsq from SGGMIIP.financingReq --融资申请
  198. where nvl(del_flag,0)<>1
  199. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  200. group by create_by ) a10 on a.USER_CODE=a10.create_by
  201. left join
  202. (select create_by,count(*)rzfk from SGGMIIP.loanReg --融资放款登记
  203. where nvl(del_flag,0)<>1
  204. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  205. group by create_by ) a11 on a.USER_CODE=a11.create_by
  206. left join
  207. (select create_by,count(*)rzhk from SGGMIIP.repayReq --融资还款申请
  208. where nvl(del_flag,0)<>1
  209. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  210. group by create_by ) a12 on a.USER_CODE=a12.create_by
  211. left join
  212. (select create_by,count(*)dhtz from SGGMIIP.grnctrl --到货通知
  213. where nvl(del_flag,0)<>1
  214. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  215. group by create_by ) a13 on a.USER_CODE=a13.create_by
  216. left join
  217. (select create_by,count(*)cgrk from SGGMIIP.mdkcctrl --采购入库
  218. where nvl(del_flag,0)<>1
  219. and nvl(create_by,'')<>'' and fmodalid='22' and create_time>='2025-12-04 17:00:01'
  220. group by create_by ) a14 on a.USER_CODE=a14.create_by
  221. left join
  222. (select create_by,count(*)qtrk from SGGMIIP.mdkcctrl --其他入库
  223. where nvl(del_flag,0)<>1
  224. and nvl(create_by,'')<>'' and fmodalid='27' and create_time>='2025-12-04 17:00:01'
  225. group by create_by ) a15 on a.USER_CODE=a15.create_by
  226. left join
  227. (select create_by,count(*)rkth from SGGMIIP.mdkcctrl --入库退回
  228. where nvl(del_flag,0)<>1
  229. and nvl(create_by,'')<>'' and fmodalid='86' and create_time>='2025-12-04 17:00:01'
  230. group by create_by ) a16 on a.USER_CODE=a16.create_by
  231. left join
  232. (select create_by,count(*)fh from SGGMIIP.delivNotiReq --放货申请
  233. where nvl(del_flag,0)<>1
  234. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  235. group by create_by ) a17 on a.USER_CODE=a17.create_by
  236. left join
  237. (select create_by,count(*)xsck from SGGMIIP.mdkcctrl --销售出库
  238. where nvl(del_flag,0)<>1
  239. and nvl(create_by,'')<>'' and fmodalid='24' and create_time>='2025-12-04 17:00:01'
  240. group by create_by ) a18 on a.USER_CODE=a18.create_by
  241. left join
  242. (select create_by,count(*)qtck from SGGMIIP.mdkcctrl --其他出库
  243. where nvl(del_flag,0)<>1
  244. and nvl(create_by,'')<>'' and fmodalid='28' and create_time>='2025-12-04 17:00:01'
  245. group by create_by ) a19 on a.USER_CODE=a19.create_by
  246. left join
  247. (select create_by,count(*)jkdp from SGGMIIP.purMultiSettle --进口到票
  248. where nvl(del_flag,0)<>1
  249. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  250. group by create_by ) a20 on a.USER_CODE=a20.create_by
  251. left join
  252. (select create_by,count(*)kptz from SGGMIIP.expPurInvNoti --开票通知
  253. where nvl(del_flag,0)<>1
  254. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  255. group by create_by ) a21 on a.USER_CODE=a21.create_by
  256. left join
  257. (select create_by,count(*)jxfp from SGGMIIP.inputInvReg --进项发票登记
  258. where nvl(del_flag,0)<>1
  259. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  260. group by create_by ) a22 on a.USER_CODE=a22.create_by
  261. left join
  262. (select create_by,count(*)fyfp from SGGMIIP.feelInvReq --费用发票登记
  263. where nvl(del_flag,0)<>1
  264. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  265. group by create_by ) a23 on a.USER_CODE=a23.create_by
  266. left join
  267. (select create_by,count(*)xsjs from SGGMIIP.saleSettle --销售结算开票
  268. where nvl(del_flag,0)<>1
  269. and nvl(create_by,'')<>'' and fmodalid='36' and create_time>='2025-12-04 17:00:01'
  270. group by create_by ) a24 on a.USER_CODE=a24.create_by
  271. left join
  272. (select create_by,count(*)xsfykp from SGGMIIP.saleSettle --销售费用结算开票
  273. where nvl(del_flag,0)<>1
  274. and nvl(create_by,'')<>'' and fmodalid='333' and create_time>='2025-12-04 17:00:01'
  275. group by create_by ) a25 on a.USER_CODE=a25.create_by
  276. left join
  277. (select create_by,count(*)hzzg from SGGMIIP.provIn --货值暂估
  278. where nvl(del_flag,0)<>1
  279. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  280. group by create_by ) a26 on a.USER_CODE=a26.create_by
  281. left join
  282. (select create_by,count(*)fyzg from SGGMIIP.estFeeInv --费用暂估
  283. where nvl(del_flag,0)<>1
  284. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  285. group by create_by ) a27 on a.USER_CODE=a27.create_by
  286. left join
  287. (select create_by,count(*)spbmsq from SGGMIIP.prodNoReq --商品编码申请
  288. where nvl(del_flag,0)<>1
  289. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  290. group by create_by ) a28 on a.USER_CODE=a28.create_by
  291. left join
  292. (select create_by,count(*)zyjh from SGGMIIP.mdkcctrl --作业计划
  293. where nvl(del_flag,0)<>1
  294. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  295. and fmodalid='155'
  296. group by create_by) a30 on a.USER_CODE=a30.create_by
  297. left join
  298. (select create_by,count(*)kcjg from SGGMIIP.mdkcctrl --库存加工
  299. where nvl(del_flag,0)<>1
  300. and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
  301. and fmodalid='168'
  302. group by create_by) a31 on a.USER_CODE=a31.create_by
  303. where (NVL(b.ks,0)+
  304. NVL(c.zyh,0)+
  305. NVL(d.cg,0)+
  306. NVL(e.xs,0)+
  307. NVL(f.cgdd,0)+
  308. NVL(g.xsdd,0)+
  309. NVL(h.ps,0)+
  310. NVL(i.kzh,0)+
  311. NVL(j.kzjh,0)+
  312. NVL(k.kzsq,0)+
  313. NVL(l.kzdj,0)+
  314. NVL(m.dd,0)+
  315. NVL(n.szdj,0)+
  316. NVL(o.xm,0)+
  317. NVL(p.kssx,0)+
  318. NVL(q.xsxy,0)+
  319. NVL(r.cgxy,0)+
  320. NVL(s.zc,0)+
  321. NVL(t.cc,0)+
  322. NVL(u.jg,0)+
  323. NVL(v.qt,0)+
  324. NVL(w.gb,0)+
  325. NVL(x.gd,0)+
  326. NVL(y.qz,0)+
  327. NVL(z.hh,0)+
  328. NVL(a1.td,0)+
  329. NVL(a2.dz,0)+
  330. NVL(a3.bg,0)+
  331. NVL(a4.zjjh,0)+
  332. NVL(a5.sk,0)+
  333. NVL(a6.sktz,0)+
  334. NVL(a7.fk,0)+
  335. NVL(a8.fm,0)+
  336. NVL(a9.fy,0)+
  337. NVL(a10.rzsq,0)+
  338. NVL(a11.rzfk,0)+
  339. NVL(a12.rzhk,0)+
  340. NVL(a13.dhtz,0)+
  341. NVL(a14.cgrk,0)+
  342. NVL(a15.qtrk,0)+
  343. NVL(a16.rkth,0)+
  344. NVL(a17.fh,0)+
  345. NVL(a18.xsck,0)+
  346. NVL(a19.qtck,0)+
  347. NVL(a20.jkdp,0)+
  348. NVL(a21.kptz,0)+
  349. NVL(a22.jxfp,0)+
  350. NVL(a23.fyfp,0)+
  351. NVL(a24.xsjs,0)+
  352. NVL(a25.xsfykp,0)+
  353. NVL(a26.hzzg,0)+
  354. NVL(a27.fyzg,0)+
  355. NVL(a28.spbmsq,0)+
  356. NVL(a30.zyjh,0)+
  357. NVL(a31.kcjg,0))>0
  358. order by USER_CODE