|
@@ -44,7 +44,7 @@ func (s BillService) PayProject(param *vo.PayParam) error {
|
|
|
if projectStatus != 6 {
|
|
|
return errors.New("状态异常")
|
|
|
}
|
|
|
- _, err2 := dao.EnterpriseDao{}.UpdateEnterpriseBalanceAndFrozen(projectInfo.EnterpriseID, projectInfo.PaymentAmount)
|
|
|
+ _, err2 := dao.EnterpriseDao{}.UpdateEnterpriseBalanceAndFrozen(projectInfo.EnterpriseID, projectInfo.NeedPay)
|
|
|
if err2 != nil {
|
|
|
return err2
|
|
|
}
|
|
@@ -67,7 +67,7 @@ func (s BillService) PayLocalLife(param *vo.PayParam) error {
|
|
|
if localStatus != 6 {
|
|
|
return errors.New("状态异常")
|
|
|
}
|
|
|
- _, err2 := dao.EnterpriseDao{}.UpdateEnterpriseBalanceAndFrozen(localInfo.EnterpriseID, localInfo.PaymentAmount)
|
|
|
+ _, err2 := dao.EnterpriseDao{}.UpdateEnterpriseBalanceAndFrozen(localInfo.EnterpriseID, localInfo.NeedPay)
|
|
|
if err2 != nil {
|
|
|
return err2
|
|
|
}
|