|
|
@@ -0,0 +1,414 @@
|
|
|
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
|
+
|
|
|
30
|
+left join
|
|
|
31
|
+(select create_by,count(*) zyh from SGGMIIP.resourcectrl --资源号
|
|
|
32
|
+where nvl(del_flag,0)<>1
|
|
|
33
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
34
|
+group by create_by ) c on a.USER_CODE=c.create_by
|
|
|
35
|
+
|
|
|
36
|
+left join
|
|
|
37
|
+(select create_by,serviceType,count(*)cg from SGGMIIP.purchaseContract --采购合同
|
|
|
38
|
+where nvl(del_flag,0)<>1
|
|
|
39
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
40
|
+and nvl(remark,'') != '期初导入-采购'
|
|
|
41
|
+group by create_by ,serviceType) d on a.USER_CODE=d.create_by
|
|
|
42
|
+
|
|
|
43
|
+left join
|
|
|
44
|
+(select create_by,count(*)xs from SGGMIIP.salesContract --销售合同
|
|
|
45
|
+where nvl(del_flag,0)<>1
|
|
|
46
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
47
|
+and nvl(remark,'') != '期初'
|
|
|
48
|
+group by create_by ) e on a.USER_CODE=e.create_by
|
|
|
49
|
+
|
|
|
50
|
+left join
|
|
|
51
|
+(select create_by,count(*)cgdd from SGGMIIP.purchaseOrder --采购订单
|
|
|
52
|
+where nvl(del_flag,0)<>1
|
|
|
53
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
54
|
+group by create_by ) f on a.USER_CODE=f.create_by
|
|
|
55
|
+
|
|
|
56
|
+left join
|
|
|
57
|
+(select create_by,count(*) xsdd from SGGMIIP.salesOrder --销售订单
|
|
|
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 ) g on a.USER_CODE=g.create_by
|
|
|
61
|
+
|
|
|
62
|
+left join
|
|
|
63
|
+(select create_by,count(*)ps from SGGMIIP.ContractReview --合同评审
|
|
|
64
|
+where nvl(del_flag,0)<>1
|
|
|
65
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
66
|
+group by create_by ) h on a.USER_CODE=h.create_by
|
|
|
67
|
+
|
|
|
68
|
+left join
|
|
|
69
|
+(select create_by,count(*)kzh from SGGMIIP.LcBank --开证行
|
|
|
70
|
+where nvl(del_flag,0)<>1
|
|
|
71
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
72
|
+group by create_by ) i on a.USER_CODE=i.create_by
|
|
|
73
|
+
|
|
|
74
|
+left join
|
|
|
75
|
+(select create_by,count(*)kzjh from SGGMIIP.lcplan --开证计划
|
|
|
76
|
+where nvl(del_flag,0)<>1
|
|
|
77
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
78
|
+group by create_by ) j on a.USER_CODE=j.create_by
|
|
|
79
|
+
|
|
|
80
|
+left join
|
|
|
81
|
+(select create_by,count(*)kzsq from SGGMIIP.lcApplication --开证申请
|
|
|
82
|
+where nvl(del_flag,0)<>1
|
|
|
83
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
84
|
+group by create_by ) k on a.USER_CODE=k.create_by
|
|
|
85
|
+
|
|
|
86
|
+left join
|
|
|
87
|
+(select create_by,count(*)kzdj from SGGMIIP.Lcctrl --开证登记
|
|
|
88
|
+where nvl(del_flag,0)<>1
|
|
|
89
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
90
|
+group by create_by ) l on a.USER_CODE=l.create_by
|
|
|
91
|
+
|
|
|
92
|
+left join
|
|
|
93
|
+(select create_by,count(*)dd from SGGMIIP.lcrctrl --信用证到单
|
|
|
94
|
+where nvl(del_flag,0)<>1
|
|
|
95
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
96
|
+group by create_by ) m on a.USER_CODE=M.create_by
|
|
|
97
|
+
|
|
|
98
|
+left join
|
|
|
99
|
+(select create_by,count(*)szdj from SGGMIIP.breceiptctrl--收证登记
|
|
|
100
|
+where nvl(del_flag,0)<>1
|
|
|
101
|
+and nvl(create_by,'')<>'' and fmodalid =20 and create_time>='2025-12-04 17:00:01'
|
|
|
102
|
+group by create_by ) N on a.USER_CODE=n.create_by
|
|
|
103
|
+
|
|
|
104
|
+left join
|
|
|
105
|
+(select create_by,count(*)xm from SGGMIIP.ProjectPlan --项目计划书
|
|
|
106
|
+where nvl(del_flag,0)<>1
|
|
|
107
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
108
|
+group by create_by ) o on a.USER_CODE=o.create_by
|
|
|
109
|
+
|
|
|
110
|
+left join
|
|
|
111
|
+(select create_by,count(*)kssx from SGGMIIP.CtCredReview--客商授信评审
|
|
|
112
|
+where nvl(del_flag,0)<>1
|
|
|
113
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
114
|
+group by create_by ) p on a.USER_CODE=p.create_by
|
|
|
115
|
+
|
|
|
116
|
+left join
|
|
|
117
|
+(select create_by,count(*)xsxy from SGGMIIP.ExpAgencyAgt --代理销售协议
|
|
|
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 ) q on a.USER_CODE=q.create_by
|
|
|
121
|
+
|
|
|
122
|
+left join
|
|
|
123
|
+(select create_by,count(*)cgxy from SGGMIIP.ImpAgencyAgt--代理采购协议
|
|
|
124
|
+where nvl(del_flag,0)<>1
|
|
|
125
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
126
|
+group by create_by ) r on a.USER_CODE=r.create_by
|
|
|
127
|
+
|
|
|
128
|
+left join
|
|
|
129
|
+(select create_by,count(*)zc from SGGMIIP.shippingContract --租船合同
|
|
|
130
|
+where nvl(del_flag,0)<>1
|
|
|
131
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
132
|
+group by create_by ) s on a.USER_CODE=s.create_by
|
|
|
133
|
+
|
|
|
134
|
+left join
|
|
|
135
|
+(select create_by,count(*)cc from SGGMIIP.whosContract--仓储合同
|
|
|
136
|
+where nvl(del_flag,0)<>1
|
|
|
137
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
138
|
+group by create_by ) t on a.USER_CODE=t.create_by
|
|
|
139
|
+
|
|
|
140
|
+left join
|
|
|
141
|
+(select create_by,count(*)jg from SGGMIIP.processContract --加工合同
|
|
|
142
|
+where nvl(del_flag,0)<>1
|
|
|
143
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
144
|
+group by create_by ) u on a.USER_CODE=u.create_by
|
|
|
145
|
+
|
|
|
146
|
+left join
|
|
|
147
|
+(select create_by,count(*)qt from SGGMIIP.otherTContract--其他合同
|
|
|
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 ) v on a.USER_CODE=v.create_by
|
|
|
151
|
+
|
|
|
152
|
+left join
|
|
|
153
|
+(select create_by,count(*)gb from SGGMIIP.contrCloseReq --合同关闭
|
|
|
154
|
+where nvl(del_flag,0)<>1
|
|
|
155
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
156
|
+group by create_by ) w on a.USER_CODE=w.create_by
|
|
|
157
|
+
|
|
|
158
|
+left join
|
|
|
159
|
+(select create_by,count(*)gd from SGGMIIP.contractArchiving--合同归档
|
|
|
160
|
+where nvl(del_flag,0)<>1
|
|
|
161
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
162
|
+group by create_by ) x on a.USER_CODE=x.create_by
|
|
|
163
|
+
|
|
|
164
|
+left join
|
|
|
165
|
+(select create_by,count(*)qz from SGGMIIP.contractSignature --合同签章
|
|
|
166
|
+where nvl(del_flag,0)<>1
|
|
|
167
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
168
|
+group by create_by ) y on a.USER_CODE=y.create_by
|
|
|
169
|
+
|
|
|
170
|
+left join
|
|
|
171
|
+(select create_by,count(*)hh from SGGMIIP.exchangeContract--换货合同
|
|
|
172
|
+where nvl(del_flag,0)<>1
|
|
|
173
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
174
|
+group by create_by ) z on a.USER_CODE=z.create_by
|
|
|
175
|
+
|
|
|
176
|
+left join
|
|
|
177
|
+(select create_by,count(*)td from SGGMIIP.blReg --提单登记
|
|
|
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 ) a1 on a.USER_CODE=a1.create_by
|
|
|
181
|
+
|
|
|
182
|
+left join
|
|
|
183
|
+(select create_by,count(*)dz from SGGMIIP.invList--单证制作
|
|
|
184
|
+where nvl(del_flag,0)<>1
|
|
|
185
|
+and nvl(create_by,'')<>'' and fmodalid='11' and create_time>='2025-12-04 17:00:01'
|
|
|
186
|
+group by create_by ) a2 on a.USER_CODE=a2.create_by
|
|
|
187
|
+
|
|
|
188
|
+left join
|
|
|
189
|
+(select create_by,count(*)bg from SGGMIIP.invList --报关
|
|
|
190
|
+where nvl(del_flag,0)<>1
|
|
|
191
|
+and nvl(create_by,'')<>'' and fmodalid='130' and create_time>='2025-12-04 17:00:01'
|
|
|
192
|
+group by create_by ) a3 on a.USER_CODE=a3.create_by
|
|
|
193
|
+
|
|
|
194
|
+left join
|
|
|
195
|
+(select create_by,count(*)zjjh from SGGMIIP.FundPlan--资金计划
|
|
|
196
|
+where nvl(del_flag,0)<>1
|
|
|
197
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
198
|
+group by create_by ) a4 on a.USER_CODE=a4.create_by
|
|
|
199
|
+
|
|
|
200
|
+left join
|
|
|
201
|
+(select create_by,count(*)sk from SGGMIIP.breceiptctrl --收款
|
|
|
202
|
+where nvl(del_flag,0)<>1
|
|
|
203
|
+and nvl(create_by,'')<>'' and fmodalid='19' and create_time>='2025-12-04 17:00:01'
|
|
|
204
|
+group by create_by ) a5 on a.USER_CODE=a5.create_by
|
|
|
205
|
+
|
|
|
206
|
+left join
|
|
|
207
|
+(select create_by,count(*)sktz from SGGMIIP.ReceiptAdjustLog --收款调整申请
|
|
|
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 ) a6 on a.USER_CODE=a6.create_by
|
|
|
211
|
+
|
|
|
212
|
+left join
|
|
|
213
|
+(select create_by,count(*)fk from SGGMIIP.paymgrctrl --货款付款
|
|
|
214
|
+where nvl(del_flag,0)<>1
|
|
|
215
|
+and nvl(create_by,'')<>'' and fmodalid='15' and create_time>='2025-12-04 17:00:01'
|
|
|
216
|
+group by create_by ) a7 on a.USER_CODE=a7.create_by
|
|
|
217
|
+
|
|
|
218
|
+left join
|
|
|
219
|
+(select create_by,count(*)fm from SGGMIIP.paymgrctrl --非贸货款
|
|
|
220
|
+where nvl(del_flag,0)<>1
|
|
|
221
|
+and nvl(create_by,'')<>'' and fmodalid='17' and create_time>='2025-12-04 17:00:01'
|
|
|
222
|
+group by create_by ) a8 on a.USER_CODE=a8.create_by
|
|
|
223
|
+
|
|
|
224
|
+left join
|
|
|
225
|
+(select create_by,count(*)fy from SGGMIIP.paymgrctrl --费用付款
|
|
|
226
|
+where nvl(del_flag,0)<>1
|
|
|
227
|
+and nvl(create_by,'')<>'' and fmodalid='16' and create_time>='2025-12-04 17:00:01'
|
|
|
228
|
+group by create_by ) a9 on a.USER_CODE=a9.create_by
|
|
|
229
|
+
|
|
|
230
|
+left join
|
|
|
231
|
+(select create_by,count(*)rzsq from SGGMIIP.financingReq --融资申请
|
|
|
232
|
+where nvl(del_flag,0)<>1
|
|
|
233
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
234
|
+group by create_by ) a10 on a.USER_CODE=a10.create_by
|
|
|
235
|
+
|
|
|
236
|
+left join
|
|
|
237
|
+(select create_by,count(*)rzfk from SGGMIIP.loanReg --融资放款登记
|
|
|
238
|
+where nvl(del_flag,0)<>1
|
|
|
239
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
240
|
+group by create_by ) a11 on a.USER_CODE=a11.create_by
|
|
|
241
|
+
|
|
|
242
|
+left join
|
|
|
243
|
+(select create_by,count(*)rzhk from SGGMIIP.repayReq --融资还款申请
|
|
|
244
|
+where nvl(del_flag,0)<>1
|
|
|
245
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
246
|
+group by create_by ) a12 on a.USER_CODE=a12.create_by
|
|
|
247
|
+
|
|
|
248
|
+left join
|
|
|
249
|
+(select create_by,count(*)dhtz from SGGMIIP.grnctrl --到货通知
|
|
|
250
|
+where nvl(del_flag,0)<>1
|
|
|
251
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
252
|
+group by create_by ) a13 on a.USER_CODE=a13.create_by
|
|
|
253
|
+
|
|
|
254
|
+left join
|
|
|
255
|
+(select create_by,count(*)cgrk from SGGMIIP.mdkcctrl --采购入库
|
|
|
256
|
+where nvl(del_flag,0)<>1
|
|
|
257
|
+and nvl(create_by,'')<>'' and fmodalid='22' and create_time>='2025-12-04 17:00:01'
|
|
|
258
|
+group by create_by ) a14 on a.USER_CODE=a14.create_by
|
|
|
259
|
+
|
|
|
260
|
+left join
|
|
|
261
|
+(select create_by,count(*)qtrk from SGGMIIP.mdkcctrl --其他入库
|
|
|
262
|
+where nvl(del_flag,0)<>1
|
|
|
263
|
+and nvl(create_by,'')<>'' and fmodalid='27' and create_time>='2025-12-04 17:00:01'
|
|
|
264
|
+group by create_by ) a15 on a.USER_CODE=a15.create_by
|
|
|
265
|
+
|
|
|
266
|
+left join
|
|
|
267
|
+(select create_by,count(*)rkth from SGGMIIP.mdkcctrl --入库退回
|
|
|
268
|
+where nvl(del_flag,0)<>1
|
|
|
269
|
+and nvl(create_by,'')<>'' and fmodalid='86' and create_time>='2025-12-04 17:00:01'
|
|
|
270
|
+group by create_by ) a16 on a.USER_CODE=a16.create_by
|
|
|
271
|
+
|
|
|
272
|
+left join
|
|
|
273
|
+(select create_by,count(*)fh from SGGMIIP.delivNotiReq --放货申请
|
|
|
274
|
+where nvl(del_flag,0)<>1
|
|
|
275
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
276
|
+group by create_by ) a17 on a.USER_CODE=a17.create_by
|
|
|
277
|
+
|
|
|
278
|
+left join
|
|
|
279
|
+(select create_by,count(*)xsck from SGGMIIP.mdkcctrl --销售出库
|
|
|
280
|
+where nvl(del_flag,0)<>1
|
|
|
281
|
+and nvl(create_by,'')<>'' and fmodalid='24' and create_time>='2025-12-04 17:00:01'
|
|
|
282
|
+group by create_by ) a18 on a.USER_CODE=a18.create_by
|
|
|
283
|
+
|
|
|
284
|
+left join
|
|
|
285
|
+(select create_by,count(*)qtck from SGGMIIP.mdkcctrl --其他出库
|
|
|
286
|
+where nvl(del_flag,0)<>1
|
|
|
287
|
+and nvl(create_by,'')<>'' and fmodalid='28' and create_time>='2025-12-04 17:00:01'
|
|
|
288
|
+group by create_by ) a19 on a.USER_CODE=a19.create_by
|
|
|
289
|
+
|
|
|
290
|
+left join
|
|
|
291
|
+(select create_by,count(*)jkdp from SGGMIIP.purMultiSettle --进口到票
|
|
|
292
|
+where nvl(del_flag,0)<>1
|
|
|
293
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
294
|
+group by create_by ) a20 on a.USER_CODE=a20.create_by
|
|
|
295
|
+
|
|
|
296
|
+left join
|
|
|
297
|
+(select create_by,count(*)kptz from SGGMIIP.expPurInvNoti --开票通知
|
|
|
298
|
+where nvl(del_flag,0)<>1
|
|
|
299
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
300
|
+group by create_by ) a21 on a.USER_CODE=a21.create_by
|
|
|
301
|
+
|
|
|
302
|
+left join
|
|
|
303
|
+(select create_by,count(*)jxfp from SGGMIIP.inputInvReg --进项发票登记
|
|
|
304
|
+where nvl(del_flag,0)<>1
|
|
|
305
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
306
|
+group by create_by ) a22 on a.USER_CODE=a22.create_by
|
|
|
307
|
+
|
|
|
308
|
+left join
|
|
|
309
|
+(select create_by,count(*)fyfp from SGGMIIP.feelInvReq --费用发票登记
|
|
|
310
|
+where nvl(del_flag,0)<>1
|
|
|
311
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
312
|
+group by create_by ) a23 on a.USER_CODE=a23.create_by
|
|
|
313
|
+
|
|
|
314
|
+left join
|
|
|
315
|
+(select create_by,count(*)xsjs from SGGMIIP.saleSettle --销售结算开票
|
|
|
316
|
+where nvl(del_flag,0)<>1
|
|
|
317
|
+and nvl(create_by,'')<>'' and fmodalid='36' and create_time>='2025-12-04 17:00:01'
|
|
|
318
|
+group by create_by ) a24 on a.USER_CODE=a24.create_by
|
|
|
319
|
+
|
|
|
320
|
+left join
|
|
|
321
|
+(select create_by,count(*)xsfykp from SGGMIIP.saleSettle --销售费用结算开票
|
|
|
322
|
+where nvl(del_flag,0)<>1
|
|
|
323
|
+and nvl(create_by,'')<>'' and fmodalid='333' and create_time>='2025-12-04 17:00:01'
|
|
|
324
|
+group by create_by ) a25 on a.USER_CODE=a25.create_by
|
|
|
325
|
+
|
|
|
326
|
+left join
|
|
|
327
|
+(select create_by,count(*)hzzg from SGGMIIP.provIn --货值暂估
|
|
|
328
|
+where nvl(del_flag,0)<>1
|
|
|
329
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
330
|
+group by create_by ) a26 on a.USER_CODE=a26.create_by
|
|
|
331
|
+
|
|
|
332
|
+left join
|
|
|
333
|
+(select create_by,count(*)fyzg from SGGMIIP.estFeeInv --费用暂估
|
|
|
334
|
+where nvl(del_flag,0)<>1
|
|
|
335
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
336
|
+group by create_by ) a27 on a.USER_CODE=a27.create_by
|
|
|
337
|
+
|
|
|
338
|
+left join
|
|
|
339
|
+(select create_by,count(*)spbmsq from SGGMIIP.prodNoReq --商品编码申请
|
|
|
340
|
+where nvl(del_flag,0)<>1
|
|
|
341
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
342
|
+group by create_by ) a28 on a.USER_CODE=a28.create_by
|
|
|
343
|
+
|
|
|
344
|
+left join
|
|
|
345
|
+(select create_by,count(*)zyjh from SGGMIIP.mdkcctrl --作业计划
|
|
|
346
|
+where nvl(del_flag,0)<>1
|
|
|
347
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
348
|
+and fmodalid='155'
|
|
|
349
|
+group by create_by) a30 on a.USER_CODE=a30.create_by
|
|
|
350
|
+
|
|
|
351
|
+left join
|
|
|
352
|
+(select create_by,count(*)kcjg from SGGMIIP.mdkcctrl --库存加工
|
|
|
353
|
+where nvl(del_flag,0)<>1
|
|
|
354
|
+and nvl(create_by,'')<>'' and create_time>='2025-12-04 17:00:01'
|
|
|
355
|
+and fmodalid='168'
|
|
|
356
|
+group by create_by) a31 on a.USER_CODE=a31.create_by
|
|
|
357
|
+
|
|
|
358
|
+where (NVL(b.ks,0)+
|
|
|
359
|
+NVL(c.zyh,0)+
|
|
|
360
|
+NVL(d.cg,0)+
|
|
|
361
|
+NVL(e.xs,0)+
|
|
|
362
|
+NVL(f.cgdd,0)+
|
|
|
363
|
+NVL(g.xsdd,0)+
|
|
|
364
|
+NVL(h.ps,0)+
|
|
|
365
|
+NVL(i.kzh,0)+
|
|
|
366
|
+NVL(j.kzjh,0)+
|
|
|
367
|
+NVL(k.kzsq,0)+
|
|
|
368
|
+NVL(l.kzdj,0)+
|
|
|
369
|
+NVL(m.dd,0)+
|
|
|
370
|
+NVL(n.szdj,0)+
|
|
|
371
|
+NVL(o.xm,0)+
|
|
|
372
|
+NVL(p.kssx,0)+
|
|
|
373
|
+NVL(q.xsxy,0)+
|
|
|
374
|
+NVL(r.cgxy,0)+
|
|
|
375
|
+NVL(s.zc,0)+
|
|
|
376
|
+NVL(t.cc,0)+
|
|
|
377
|
+NVL(u.jg,0)+
|
|
|
378
|
+NVL(v.qt,0)+
|
|
|
379
|
+NVL(w.gb,0)+
|
|
|
380
|
+NVL(x.gd,0)+
|
|
|
381
|
+NVL(y.qz,0)+
|
|
|
382
|
+NVL(z.hh,0)+
|
|
|
383
|
+NVL(a1.td,0)+
|
|
|
384
|
+NVL(a2.dz,0)+
|
|
|
385
|
+NVL(a3.bg,0)+
|
|
|
386
|
+NVL(a4.zjjh,0)+
|
|
|
387
|
+NVL(a5.sk,0)+
|
|
|
388
|
+NVL(a6.sktz,0)+
|
|
|
389
|
+NVL(a7.fk,0)+
|
|
|
390
|
+NVL(a8.fm,0)+
|
|
|
391
|
+NVL(a9.fy,0)+
|
|
|
392
|
+NVL(a10.rzsq,0)+
|
|
|
393
|
+NVL(a11.rzfk,0)+
|
|
|
394
|
+NVL(a12.rzhk,0)+
|
|
|
395
|
+NVL(a13.dhtz,0)+
|
|
|
396
|
+NVL(a14.cgrk,0)+
|
|
|
397
|
+NVL(a15.qtrk,0)+
|
|
|
398
|
+NVL(a16.rkth,0)+
|
|
|
399
|
+NVL(a17.fh,0)+
|
|
|
400
|
+NVL(a18.xsck,0)+
|
|
|
401
|
+NVL(a19.qtck,0)+
|
|
|
402
|
+NVL(a20.jkdp,0)+
|
|
|
403
|
+NVL(a21.kptz,0)+
|
|
|
404
|
+NVL(a22.jxfp,0)+
|
|
|
405
|
+NVL(a23.fyfp,0)+
|
|
|
406
|
+NVL(a24.xsjs,0)+
|
|
|
407
|
+NVL(a25.xsfykp,0)+
|
|
|
408
|
+NVL(a26.hzzg,0)+
|
|
|
409
|
+NVL(a27.fyzg,0)+
|
|
|
410
|
+NVL(a28.spbmsq,0)+
|
|
|
411
|
+NVL(a30.zyjh,0)+
|
|
|
412
|
+NVL(a31.kcjg,0))>0
|
|
|
413
|
+
|
|
|
414
|
+order by USER_CODE
|