bill job
This commit is contained in:
27
business/jxstore/financial/bill.go
Normal file
27
business/jxstore/financial/bill.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package financial
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
"git.rosy.net.cn/jx-callback/business/model/dao"
|
||||
)
|
||||
|
||||
func AddBillIncome(db *dao.DaoDB, billID int64, billType, incomePrice int) (err error) {
|
||||
billIncome := &model.BillIncome{
|
||||
BillID: billID,
|
||||
Type: billType,
|
||||
IncomePrice: incomePrice,
|
||||
}
|
||||
dao.WrapAddIDCULEntity(billIncome, jxcontext.AdminCtx.GetUserName())
|
||||
return dao.CreateEntity(db, billIncome)
|
||||
}
|
||||
|
||||
func AddBillExpend(db *dao.DaoDB, billID int64, billType, expendPrice int) (err error) {
|
||||
billExpend := &model.BillExpend{
|
||||
BillID: billID,
|
||||
Type: billType,
|
||||
ExpendPrice: expendPrice,
|
||||
}
|
||||
dao.WrapAddIDCULEntity(billExpend, jxcontext.AdminCtx.GetUserName())
|
||||
return dao.CreateEntity(db, billExpend)
|
||||
}
|
||||
Reference in New Issue
Block a user