aa
This commit is contained in:
@@ -1138,12 +1138,19 @@ func GetStoreAcctExpendTotal(db *DaoDB, storeID int, expendTypes []int, vendorOr
|
|||||||
}
|
}
|
||||||
|
|
||||||
type GetStoreAcctExpendLastCreateWayBillFeeResult struct {
|
type GetStoreAcctExpendLastCreateWayBillFeeResult struct {
|
||||||
|
ID int `orm:"column(id)" json:"id"`
|
||||||
|
ExpID int `orm:"column(exp_id)" json:"expID"` //少扣的钱
|
||||||
|
IncID int `orm:"column(inc_id)" json:"incID"` //多扣的钱
|
||||||
|
ExpendPrice int `json:"expendPrice"`
|
||||||
|
MulitExpendPrice int `json:"mulitExpendPrice"`
|
||||||
|
MulitIncomePrice int `json:"mulitIncomePrice"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetStoreAcctExpendLastCreateWayBillFee(db *DaoDB, vendorOrderID string) (lastFee int, err error) {
|
func GetStoreAcctExpendLastCreateWayBillFee(db *DaoDB, vendorOrderID string) (lastFee int, err error) {
|
||||||
var expend *model.StoreAcctExpend
|
var expend *GetStoreAcctExpendLastCreateWayBillFeeResult
|
||||||
sql := `
|
sql := `
|
||||||
SELECT a.id, b.id exp_id, c.id inc_id
|
SELECT a.id, b.id exp_id, c.id inc_id,
|
||||||
|
a.expend_price, b.expend_price mulit_expend_price, c.income_price mulit_income_price
|
||||||
FROM store_acct_expend a
|
FROM store_acct_expend a
|
||||||
LEFT JOIN store_acct_expend b ON a.id = b.exp_id
|
LEFT JOIN store_acct_expend b ON a.id = b.exp_id
|
||||||
LEFT JOIN store_acct_income c ON a.id = c.exp_id
|
LEFT JOIN store_acct_income c ON a.id = c.exp_id
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ func (p *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri
|
|||||||
}
|
}
|
||||||
vendorInfoMap := storeVendorOrgCodeMap[vendorOrgCode]
|
vendorInfoMap := storeVendorOrgCodeMap[vendorOrgCode]
|
||||||
poiSettleSaveParam := &mtwmapi.PoiSettleSaveParam{
|
poiSettleSaveParam := &mtwmapi.PoiSettleSaveParam{
|
||||||
Type: 0, //创建
|
Type: 1, //创建
|
||||||
ApplyInfos: []*mtwmapi.ApplyInfo{
|
ApplyInfos: []*mtwmapi.ApplyInfo{
|
||||||
&mtwmapi.ApplyInfo{
|
&mtwmapi.ApplyInfo{
|
||||||
AppPoiCode: utils.Int2Str(storeDetail.ID),
|
AppPoiCode: utils.Int2Str(storeDetail.ID),
|
||||||
|
|||||||
Reference in New Issue
Block a user