SELECT t0.FBILLNO,t0.FID
	,t0f.FBILLALLAMOUNT
	,ROUND(t0f.FBILLALLAMOUNT,6)
	,t0f.FCONTRACTAMOUNT
	,ROUND(t0f.FCONTRACTAMOUNT,6)
	,t0f.FBILLALLAMOUNT_LC
	,ROUND(t0f.FBILLALLAMOUNT_LC,6)
	,t0f.FCONTRACTAMOUNT_LC
	,ROUND(t0f.FCONTRACTAMOUNT_LC,6)
	--,t0p.FRECADVANCEAMOUNT
FROM T_CRM_CONTRACT t0
	INNER JOIN T_CRM_CONTRACTFIN t0f on t0.FID = t0f.FID
	--INNER JOIN T_CRM_CONTRACTPLAN t0p on t0.FID = t0p.FID
--WHERE t0.FBILLNO IN ('XSHT000963','XSHT000976','XSHT001066','XSHT001094','XSHT001485','XSHT002308','XSHT002572','XSHT002670','XSHT002732','XSHT003418','XSHT003461','XSHT003889')
WHERE t0.FBILLNO IN ('XSHT002732','XSHT002793','XSHT003877','XSHT003424')

--UPDATE t0f SET-- t0.FBILLNO,t0.FID
--	t0f.FBILLALLAMOUNT = ROUND(t0f.FBILLALLAMOUNT,6)
--	,t0f.FCONTRACTAMOUNT = ROUND(t0f.FCONTRACTAMOUNT,6)
--	,t0f.FBILLALLAMOUNT_LC = ROUND(t0f.FBILLALLAMOUNT_LC,6)
--	,t0f.FCONTRACTAMOUNT_LC = ROUND(t0f.FCONTRACTAMOUNT_LC,6)
--	--,t0p.FRECADVANCEAMOUNT
--FROM T_CRM_CONTRACT t0
--	INNER JOIN T_CRM_CONTRACTFIN t0f on t0.FID = t0f.FID
--	--INNER JOIN T_CRM_CONTRACTPLAN t0p on t0.FID = t0p.FID
--WHERE t0.FBILLNO 
--IN ('XSHT002732','XSHT002793','XSHT003877','XSHT003424')
--IN ('XSHT000963','XSHT000976','XSHT001066','XSHT001094','XSHT001485','XSHT002308','XSHT002572','XSHT002670','XSHT002732','XSHT003418','XSHT003461','XSHT003889')