|
|
@@ -1182,7 +1182,7 @@
|
|
1182
|
1182
|
a.cph as cphm, b.sjcfbh as cf, b.sjhwbh as hw, c.enumname as lspz, d.enumname scnf,
|
|
1183
|
1183
|
b.cpzsj as rq, b.xzklhjz as rksl, e.enumname lsdj, sf.sf, ccl.ccl, zjml.zjml, gwcm.gwcm,
|
|
1184
|
1184
|
hhl.hhl, zzzl.zzzl, wjzz.wjzz, yjzz.yjzz, bwslzl.bwslzl, wsl.wsl,csl.csl, bbl.bbl,syl.syl, sml.sml,
|
|
1185
|
|
- hlm.hlm, szqw.szqw, substr(be.enumname,0,2) ccfs
|
|
|
1185
|
+ hlm.hlm, szqw.szqw, substr(be.enumname,0,2) ccfs,zfsz.zfsz
|
|
1186
|
1186
|
FROM (select * from (select *,row_number() over(partition by BizNo order by 1) rn
|
|
1187
|
1187
|
from data_crkyw_rmdj_default)t1 where t1.rn = 1) a
|
|
1188
|
1188
|
inner JOIN data_crkyw_cpz_default b ON a.BizNo = b.BizNo
|
|
|
@@ -1353,6 +1353,16 @@
|
|
1353
|
1353
|
and jyxx.unitid = #{orgId}
|
|
1354
|
1354
|
</if>
|
|
1355
|
1355
|
) szqw on szqw.bizno = a.bizno
|
|
|
1356
|
+ left join(
|
|
|
1357
|
+ select jyxx.bizno,flt.jyz as zfsz
|
|
|
1358
|
+ from (select * from (select *,row_number() over(partition by BizNo order by 1) rn
|
|
|
1359
|
+ from data_crkyw_jyxx_default)t1 where t1.rn = 1) jyxx
|
|
|
1360
|
+ left join data_crkyw_jyxx_flt_001 flt on jyxx.DataID = flt.maindataid
|
|
|
1361
|
+ where flt.zbxmc = '2c9080d37394cccc0173992177eb0055'
|
|
|
1362
|
+ <if test="orgId != null">
|
|
|
1363
|
+ and jyxx.unitid = #{orgId}
|
|
|
1364
|
+ </if>
|
|
|
1365
|
+ ) zfsz on szqw.bizno = a.bizno
|
|
1356
|
1366
|
WHERE nvl(a.BizNo,'-1') != '-1' and a.lspz = '3166'
|
|
1357
|
1367
|
<if test="orgId != null">
|
|
1358
|
1368
|
and jyxx.unitid = #{orgId}
|
|
|
@@ -1376,7 +1386,7 @@
|
|
1376
|
1386
|
select rice.clbh cphm,rice.cfmc cf,rice.hwmc hw,rice.pzmc lspz,rice.scnd scnf,
|
|
1377
|
1387
|
rice.rkrq rq,rice.rksl*1000 rksl,rice.dj lsdj,rice.sf,rice.ccl,rice.zjml,
|
|
1378
|
1388
|
rice.gwcm,rice.hhl,rice.zzzl,rice.wjzz,rice.yjzz,rice.bwslzl,rice.wsl,rice.csl,rice.bbl,
|
|
1379
|
|
- rice.syl,rice.sml,rice.hlm,rice.szqw,rice.ccfs
|
|
|
1389
|
+ rice.syl,rice.sml,rice.hlm,rice.szqw,rice.ccfs,'' zfsz
|
|
1380
|
1390
|
from depot:record_rice_info rice
|
|
1381
|
1391
|
left join depot:basic_storehouse storehouse on storehouse.org_id = rice.org_id and storehouse.del_flag = 1
|
|
1382
|
1392
|
and storehouse.library_type = 0 and storehouse.storehouse_name = rice.cfmc
|