salary4
This commit is contained in:
parent
d7c3256850
commit
0b457499ae
|
@ -11,7 +11,6 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"github.com/smbrave/goutil"
|
|
||||||
"github.com/spf13/cast"
|
"github.com/spf13/cast"
|
||||||
excelize "github.com/xuri/excelize/v2"
|
excelize "github.com/xuri/excelize/v2"
|
||||||
"os"
|
"os"
|
||||||
|
@ -143,12 +142,10 @@ func (s *StaffSalary) Pay(sess *session.AdminSession, req *api.PaySalaryReq) {
|
||||||
|
|
||||||
title := fmt.Sprintf("%s工资", salary.Month)
|
title := fmt.Sprintf("%s工资", salary.Month)
|
||||||
|
|
||||||
log.Errorf("title[%s] stalary:%s req:%s", title, goutil.EncodeJSON(salary), goutil.EncodeJSON(req))
|
|
||||||
salary.Status = model.StaffSalaryStatusPayed
|
salary.Status = model.StaffSalaryStatusPayed
|
||||||
dao.NewStaffSalaryDao().Update(salary)
|
dao.NewStaffSalaryDao().Update(salary)
|
||||||
|
|
||||||
return
|
NewPay().Pay(corp, user, title, req.PayType, int64(salary.GetRealSalary()*100))
|
||||||
//NewPay().Pay(corp, user, title, req.PayType, int64(salary.GetRealSalary()*100))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *StaffSalary) Agent(cid int64, month string, ctx *gin.Context) {
|
func (s *StaffSalary) Agent(cid int64, month string, ctx *gin.Context) {
|
||||||
|
|
Loading…
Reference in New Issue