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