备考FCRP(提问者) 回复 张洪威
select t1.C_VRECEIVECODE,t1.C_CCUSTMANNAME,t1.C_DBILLDATE,t1.C_VALUATIONMETHODS,
t1.N_NNUMBER,t1.N_REMAIN,t1.C_DSENDDATE,t1.C_VALUETOP,t1.C_VALUEDOWN,t1.C_XSZZ,
t1.C_KCZZ,t1.C_SHDW,t1.C_SW07,t1.C_SW08,C_SW09,sum(t2.jpjs)
from pm_planlistxs t1 left join st_fhb t2 on t1.C_VRECEIVECODE = t2.ddh
and t2.del_flag = 0
and t2.fhdzt != 4
and t1.C_BIFCLOSE = \'N\'
and t1.C_DR = 0
and t1.C_DBILLDATE between \'2020-11-01\' and \'2020-11-02\'
group by t1.C_VRECEIVECODE,t1.C_CCUSTMANNAME,t1.C_DBILLDATE,t1.C_VALUATIONMETHODS,
t1.N_NNUMBER,t1.N_REMAIN,t1.C_DSENDDATE,t1.C_VALUETOP,t1.C_VALUEDOWN,t1.C_XSZZ,
t1.C_KCZZ,t1.C_SHDW,t1.C_SW07,t1.C_SW08,C_SW09
order by t1.C_DBILLDATE