|
|
@@ -562,7 +562,9 @@ func (r *Ermcp3ExpourseReport) buildSqlDay() string {
|
|
|
" t.NEEDARBITRAGEQTY," +
|
|
|
" g.middlegoodsname," +
|
|
|
" g.middlegoodscode," +
|
|
|
- " g.goodsunitid unitid" +
|
|
|
+ " g.goodsunitid unitid," +
|
|
|
+ " g.needhedgeratio MGNEEDHEDGERATIO," +
|
|
|
+ " g.needarbitrageratio" +
|
|
|
" FROM RECKON_ERMCP_AREAEXPOSURE t" +
|
|
|
" LEFT JOIN ERMS_MIDDLEGOODS g" +
|
|
|
" on t.middlegoodsid = g.middlegoodsid" +
|
|
|
@@ -1570,7 +1572,7 @@ func (r *Ermcp3AreaStockReportEx) buildSqlReckonSum(fields []string) string {
|
|
|
// 品牌id
|
|
|
sqlParam.AndEx("t.SPOTGOODSBRANDID", r.SPOTGOODSBRANDID, r.SPOTGOODSBRANDID > 0)
|
|
|
// 仓库id
|
|
|
- sqlId.AndEx("t.WAREHOUSEINFOID", r.WAREHOUSEINFOID, len(r.WAREHOUSEINFOID) > 0)
|
|
|
+ sqlParam.AndEx("t.WAREHOUSEINFOID", r.WAREHOUSEINFOID, len(r.WAREHOUSEINFOID) > 0)
|
|
|
var strFileds string
|
|
|
for _, v := range fields {
|
|
|
if len(strFileds) > 0 {
|
|
|
@@ -1610,7 +1612,7 @@ func (r *Ermcp3AreaStockReportEx) buildSqlReport() string {
|
|
|
" g.deliverygoodscode," +
|
|
|
" g.deliverygoodsname," +
|
|
|
" g.goodsunitid" +
|
|
|
- " FROM RECKON_ERMCP_AREASTOCK t" +
|
|
|
+ " FROM REPORT_ERMCP_AREASTOCK t" +
|
|
|
" LEFT JOIN WRSTANDARD w" +
|
|
|
" on t.wrstandardid = w.wrstandardid" +
|
|
|
" LEFT JOIN dgfactoryitem gb" +
|
|
|
@@ -1659,7 +1661,7 @@ func (r *Ermcp3AreaStockReportEx) buildSqlReportSum(fields []string) string {
|
|
|
// 品牌id
|
|
|
sqlParam.AndEx("t.SPOTGOODSBRANDID", r.SPOTGOODSBRANDID, r.SPOTGOODSBRANDID > 0)
|
|
|
// 仓库id
|
|
|
- sqlId.AndEx("t.WAREHOUSEINFOID", r.WAREHOUSEINFOID, len(r.WAREHOUSEINFOID) > 0)
|
|
|
+ sqlParam.AndEx("t.WAREHOUSEINFOID", r.WAREHOUSEINFOID, len(r.WAREHOUSEINFOID) > 0)
|
|
|
var strFileds string
|
|
|
for _, v := range fields {
|
|
|
if len(strFileds) > 0 {
|