|
|
@@ -47,6 +47,8 @@ type ErmcpSpotContractModel struct {
|
|
|
CONTRACCTSTATUS int32 `json:"contracctstatus" xorm:"'CONTRACTSTATUS'"` //合同状态 - 0:未提交 1:待审核 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回
|
|
|
Remark string `json:"remark" xorm:"'Remark'"` //备注
|
|
|
AUDITTIME string `json:"audittime" xorm:"'AUDITTIME'"` //审核时间
|
|
|
+ SPOTGOODSMODELID int32 `json:"spotgoodsmodelid" xorm:"'SPOTGOODSMODELID'"` // 现货型号ID
|
|
|
+ SPOTGOODSBRANDID int32 `json:"spotgoodsbrandid" xorm:"'SPOTGOODSBRANDID'"` // 现货品牌ID
|
|
|
}
|
|
|
|
|
|
func (r *ErmcpSpotContractModel) buildSql(nQueryType int32) string {
|
|
|
@@ -74,6 +76,8 @@ func (r *ErmcpSpotContractModel) buildSql(nQueryType int32) string {
|
|
|
" t.contractmargin," +
|
|
|
" t.remark," +
|
|
|
" t.contractstatus," +
|
|
|
+ " t.SPOTGOODSMODELID," +
|
|
|
+ " t.SPOTGOODSBRANDID," +
|
|
|
" to_char(t.audittime,'yyyy-mm-dd hh24:mi:ss') audittime," +
|
|
|
" u1.accountname BuyUserName," +
|
|
|
" u2.accountname SellUserName," +
|