|
@@ -730,12 +730,12 @@
|
730
|
730
|
t1.hwxz,
|
731
|
731
|
t1.dj,
|
732
|
732
|
t1.kcsl,
|
733
|
|
- to_date(t1.rq, 'yyyy') AS rq,
|
734
|
|
- to_date(t1.rq, 'yyyy-mm-dd') AS rcrq,
|
735
|
|
- to_date(t1.cjsj, 'yyyy-mm-dd') AS cjsj,
|
|
733
|
+ STR_TO_DATE(t1.rq, 'yyyy') AS rq,
|
|
734
|
+ STR_TO_DATE(t1.rq, 'yyyy-mm-dd') AS rcrq,
|
|
735
|
+ STR_TO_DATE(t1.cjsj, 'yyyy-mm-dd') AS cjsj,
|
736
|
736
|
t1.UnitID _unit_i_d
|
737
|
737
|
FROM
|
738
|
|
- lsreport_ts:data_kcgl_kcsw_default t1
|
|
738
|
+ crk_qh.data_kcgl_kcsw_default t1
|
739
|
739
|
LEFT JOIN basic_storehouse t2 ON t1.UnitID = t2.org_id
|
740
|
740
|
AND t1.ch = t2.storehouse_id
|
741
|
741
|
AND t2.del_flag = 1
|