paychannel
This commit is contained in:
parent
ddf39c5145
commit
e39b14a4df
|
@ -9,9 +9,11 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
StaffSalaryStatusWait = 1
|
||||
StaffSalaryStatusPayed = 2
|
||||
StaffSalaryStatusPause = 3
|
||||
StaffSalaryStatusWait = 1
|
||||
StaffSalaryStatusPayed = 2
|
||||
StaffSalaryStatusPause = 3
|
||||
StaffSalaryPaymentBank = "bank"
|
||||
StaffSalaryPaymentAlipay = "alipay"
|
||||
)
|
||||
|
||||
type SalaryBillLine struct {
|
||||
|
|
|
@ -33,6 +33,7 @@ type UserConfig struct {
|
|||
SalaryCalcutor string `json:"salary_calcutor"` //工资计算器
|
||||
PerftTarget string `json:"perft_target"` //绩效目标
|
||||
UserRole string `json:"user_role"` //员工角色
|
||||
PayChannel string `json:"pay_channel"` //支付渠道
|
||||
}
|
||||
|
||||
type StaffUser struct {
|
||||
|
|
|
@ -182,6 +182,9 @@ func (s *StaffSalary) Agent(cid int64, month string, ctx *gin.Context) {
|
|||
if userInfo == nil {
|
||||
continue
|
||||
}
|
||||
if userInfo.GetConfig().PayChannel != model.StaffSalaryPaymentBank {
|
||||
continue
|
||||
}
|
||||
userSalary := userInfo.GetSalary()
|
||||
if userSalary.Base == "" {
|
||||
continue
|
||||
|
@ -245,6 +248,9 @@ func (s *StaffSalary) Bank(cid int64, month string, ctx *gin.Context) {
|
|||
if userInfo == nil {
|
||||
continue
|
||||
}
|
||||
if userInfo.GetConfig().PayChannel != model.StaffSalaryPaymentBank {
|
||||
continue
|
||||
}
|
||||
userSalary := userInfo.GetSalary()
|
||||
userPayee := userInfo.GetPayee()
|
||||
if userSalary.Base == "" {
|
||||
|
|
Loading…
Reference in New Issue