|
@@ -1,15 +1,15 @@
|
|
|
package cygxService
|
|
|
|
|
|
import (
|
|
|
- "fmt"
|
|
|
"errors"
|
|
|
+ "fmt"
|
|
|
"hongze/hongze_mobile_admin/models/tables/chart_permission"
|
|
|
+ "hongze/hongze_mobile_admin/models/tables/company_contract"
|
|
|
"hongze/hongze_mobile_admin/models/tables/company_contract_permission"
|
|
|
"hongze/hongze_mobile_admin/models/tables/cygx_allocation_company_contract"
|
|
|
"hongze/hongze_mobile_admin/services/alarm_msg"
|
|
|
"hongze/hongze_mobile_admin/utils"
|
|
|
"time"
|
|
|
- "hongze/hongze_mobile_admin/models/tables/company_contract"
|
|
|
)
|
|
|
|
|
|
// 如果合同只有研选的时候,自动处理派点
|
|
@@ -30,10 +30,6 @@ func HandleAllocationCompanyContractByYanXuan(companyContractId int) (err error)
|
|
|
err = errors.New("GetCompanyContractPermissionList, Err: " + e.Error())
|
|
|
return
|
|
|
}
|
|
|
- if e != nil && e.Error() != utils.ErrNoRow() {
|
|
|
- err = errors.New("GetCygxAllocationCompanyContractPermissionListById, Err: " + e.Error())
|
|
|
- return
|
|
|
- }
|
|
|
|
|
|
if len(companyContractPermissionList) > 1 {
|
|
|
return
|
|
@@ -48,7 +44,7 @@ func HandleAllocationCompanyContractByYanXuan(companyContractId int) (err error)
|
|
|
expensiveYxmoney = 5
|
|
|
} else if v.ExpensiveYx == 2 {
|
|
|
expensiveYxmoney = 10
|
|
|
- } else{
|
|
|
+ } else {
|
|
|
expensiveYxmoney = 3
|
|
|
}
|
|
|
}
|
|
@@ -90,7 +86,6 @@ func HandleAllocationCompanyContractByYanXuan(companyContractId int) (err error)
|
|
|
|
|
|
}
|
|
|
|
|
|
-
|
|
|
// HandleCompanyContractPackageDifference 更新与上一份合同的金额的对比 '增加套餐','减少套餐','维持套餐'
|
|
|
func HandleCompanyContractPackageDifference(companyContractId int) (err error) {
|
|
|
defer func() {
|
|
@@ -223,4 +218,4 @@ func HandleCompanyContractPermissionContractType(companyContractId int) (err err
|
|
|
return
|
|
|
}
|
|
|
return
|
|
|
-}
|
|
|
+}
|