|
|
@@ -54,6 +54,7 @@ type ErmcpSpotContractModel struct {
|
|
|
SPOTGOODSBRANDID int32 `json:"spotgoodsbrandid" xorm:"'SPOTGOODSBRANDID'"` // 现货品牌ID
|
|
|
BRANDNAME string `json:"brandname" xorm:"'brandname'"` // 品牌名称
|
|
|
MODELNAME string `json:"modelname" xorm:"'modelname'"` // 型号名称
|
|
|
+ ATTACHMENT string `json:"attachment" xorm:"'ATTACHMENT'"` // 附件
|
|
|
}
|
|
|
|
|
|
func (r *ErmcpSpotContractModel) buildSql(nQueryType int32) string {
|
|
|
@@ -82,6 +83,7 @@ func (r *ErmcpSpotContractModel) buildSql(nQueryType int32) string {
|
|
|
" t.contractmargin," +
|
|
|
" t.remark," +
|
|
|
" t.auditremark," +
|
|
|
+ " to_char(t.contractattachment) attachment," +
|
|
|
" t.contractstatus," +
|
|
|
" t.SPOTGOODSMODELID," +
|
|
|
" t.SPOTGOODSBRANDID," +
|
|
|
@@ -176,6 +178,7 @@ type ErmcpModel struct {
|
|
|
Margin float64 `json:"margin" xorm:"'MARGIN'"` // 保证金
|
|
|
CONTRACTMARGIN float64 `json:"contractmargin" xorm:"'CONTRACTMARGIN'"` // 合同保证金
|
|
|
Remark string `json:"remark" xorm:"'Remark'"` // 备注
|
|
|
+ ATTACHMENT string `json:"attachment" xorm:"'ATTACHMENT'"` // 附件
|
|
|
ReckonRealQty float64 `json:"reckonrealqty" xorm:"'ReckonRealQty'"` // 已确定量
|
|
|
ReckonOtherAmount float64 `json:"reckonotheramount" xorm:"'ReckonOtherAmount'"` // 其它费用
|
|
|
ReckonAdjustAmount float64 `json:"reckonadjustamount" xorm:"'ReckonAdjustAmount'"` // 调整金额
|
|
|
@@ -236,6 +239,7 @@ func (r *ErmcpModel) buildSql(nContractType, nQueryType int32) string {
|
|
|
" t.producttype," +
|
|
|
" t.contracttype," +
|
|
|
" t.remark," +
|
|
|
+ " to_char(t.contractattachment) attachment," +
|
|
|
" t.margin," +
|
|
|
" t.contractmargin," +
|
|
|
" u.accountname," +
|