|
|
@@ -42,6 +42,7 @@ type ErmcpSpotContractModel struct {
|
|
|
STARTDATE string `json:"startdate" xorm:"'STARTDATE'"` //点价开始日期 [2:点价 3:暂定价]
|
|
|
ENDDATE string `json:"enddate" xorm:"'ENDDATE'"` //点价结束日期 [2:点价 3:暂定价]
|
|
|
MARGIN float64 `json:"margin" xorm:"'MARGIN'"` //当前保证金
|
|
|
+ CONTRACTMARGIN float64 `json:"contractmargin" xorm:"'CONTRACTMARGIN'"` //合同保证金
|
|
|
EnumdicName string `json:"enumdicname" xorm:"'ENUMDICNAME'"` //单位名称
|
|
|
CONTRACCTSTATUS int32 `json:"contracctstatus" xorm:"'CONTRACTSTATUS'"` //合同状态 - 0:未提交 1:待审核 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回
|
|
|
Remark string `json:"remark" xorm:"'Remark'"` //备注
|
|
|
@@ -70,6 +71,7 @@ func (r *ErmcpSpotContractModel) buildSql(nQueryType int32) string {
|
|
|
" to_char(t.STARTDATE, 'yyyy-mm-dd hh24:mi:ss') STARTDATE," +
|
|
|
" to_char(t.ENDDATE,'yyyy-mm-dd hh24:mi:ss') ENDDATE," +
|
|
|
" t.MARGIN," +
|
|
|
+ " t.contractmargin," +
|
|
|
" t.remark," +
|
|
|
" t.contractstatus," +
|
|
|
" to_char(t.audittime,'yyyy-mm-dd hh24:mi:ss') audittime," +
|
|
|
@@ -153,6 +155,7 @@ type ErmcpModel struct {
|
|
|
Pricedamount float64 `json:"pricedamount" xorm:"'PRICEDAMOUNT'"` // 已定价额
|
|
|
PricedAvg float64 `json:"pricedavg" xorm:"'PRICEDAVG'"` // 已点均价
|
|
|
Margin float64 `json:"margin" xorm:"'MARGIN'"` // 保证金
|
|
|
+ CONTRACTMARGIN float64 `json:"contractmargin" xorm:"'CONTRACTMARGIN'"` // 合同保证金
|
|
|
Remark string `json:"remark" xorm:"'Remark'"` // 备注
|
|
|
ReckonRealQty float64 `json:"reckonrealqty" xorm:"'ReckonRealQty'"` // 已确定量
|
|
|
ReckonOtherAmount float64 `json:"reckonotheramount" xorm:"'ReckonOtherAmount'"` // 其它费用
|
|
|
@@ -164,7 +167,7 @@ type ErmcpModel struct {
|
|
|
ReckonedAmount float64 `json:"reckonedamount" xorm:"'ReckonedAmount'"` // 已收付额(已确定额)
|
|
|
BUYUSERID int64 `json:"-" xorm:"'BUYUSERID'"` // 采购方ID
|
|
|
SELLUSERID int64 `json:"-" xorm:"'SELLUSERID'"` // 销售方ID
|
|
|
- AUDITTIME string `json:"audittime" xorm:"'AUDITTIME'"` // 审核时间
|
|
|
+ AUDITTIME string `json:"audittime" xorm:"'AUDITTIME'"` // 审核时间
|
|
|
}
|
|
|
|
|
|
func (r *ErmcpModel) calc() {
|
|
|
@@ -214,6 +217,7 @@ func (r *ErmcpModel) buildSql(nContractType, nQueryType int32) string {
|
|
|
" t.contracttype," +
|
|
|
" t.remark," +
|
|
|
" t.margin," +
|
|
|
+ " t.contractmargin," +
|
|
|
" u.accountname," +
|
|
|
" g.deliverygoodscode," +
|
|
|
" g.deliverygoodsname," +
|