|
|
@@ -142,7 +142,7 @@ type ErmcpModel struct {
|
|
|
DeliveryendDate string `json:"deliveryenddate" xorm:"'DELIVERYENDDATE'"` // 交割结束日
|
|
|
Convertfactor float64 `json:"convertfactor" xorm:"'CONVERTFACTOR'"` // 标仓系数
|
|
|
EnumdicName string `json:"enumdicname" xorm:"'ENUMDICNAME'"` // 单位名称
|
|
|
- Contracctstatus uint `json:"contracctstatus" xorm:"'CONTRACCTSTATUS'"` // 合同状态- 0:未提交 1:待审核 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回
|
|
|
+ Contracctstatus uint `json:"contracctstatus" xorm:"'CONTRACTSTATUS'"` // 合同状态- 0:未提交 1:待审核 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回
|
|
|
PriceType int `json:"pricetype" xorm:"'PRICETYPE'"` // 定价类型 - 1:一口价 2:点价 3:暂定价
|
|
|
ProductType int `json:"producttype" xorm:"'PRODUCTTYPE'"` // 产品类型 - 1:标准仓单 2:等标 3:非标
|
|
|
}
|
|
|
@@ -175,7 +175,7 @@ func (r *ErmcpModel) buildSql(nContractType, nQueryType int32) string {
|
|
|
" to_char(t.deliverystartdate, 'mmdd') deliverystartdate," +
|
|
|
" to_char(t.deliveryenddate, 'mmdd') deliveryenddate," +
|
|
|
" t.convertfactor," +
|
|
|
- " t.contracctstatus," +
|
|
|
+ " t.contractstatus," +
|
|
|
" t.pricetype," +
|
|
|
" t.producttype," +
|
|
|
" t.contracttype," +
|
|
|
@@ -197,7 +197,7 @@ func (r *ErmcpModel) buildSql(nContractType, nQueryType int32) string {
|
|
|
" left join enumdicitem e" +
|
|
|
" on wr.unitid = e.enumitemname" +
|
|
|
" and e.enumdiccode = 'goodsunit'" +
|
|
|
- " where t.contracctstatus in (%v)" +
|
|
|
+ " where t.contractstatus in (%v)" +
|
|
|
" and t.contracttype in (%v) and t.userid=%v"
|
|
|
|
|
|
var status string
|