|
|
@@ -513,7 +513,7 @@ func (r *Ermcpjrlinkpos) calc() {
|
|
|
|
|
|
func (r *Ermcpjrlinkpos) buildSql() string {
|
|
|
var sqlId utils.SQLVal = `
|
|
|
- SELECT
|
|
|
+ SELECT DISTINCT
|
|
|
to_char(t.SPOTCONTRACTID) SPOTCONTRACTID,
|
|
|
t.ORDERTYPE,
|
|
|
t.OPTIONCODE,
|
|
|
@@ -922,7 +922,7 @@ func (r *InternalEnableTradeDetail) buildSql() string {
|
|
|
t.UNEXESPOTQTY,
|
|
|
t.UNEXEHEDGEQTY,
|
|
|
t.FUTUREHEDGEQTY,
|
|
|
- T.HEDGEDITEMID,
|
|
|
+ to_char(T.HEDGEDITEMID,
|
|
|
G.AGREEUNIT,
|
|
|
GC.CONVERTRATIO
|
|
|
FROM ERMCP2_HIMiddleGoods t
|