|
@@ -539,19 +539,21 @@ func GetChartPermissionSpecialSurplusByCompany(companyId int) (userType int, tri
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-//func init() {
|
|
|
-// //ActivitySpecialCompanyApproval(7026, 1256, "测试销售绑定关系")
|
|
|
-//
|
|
|
-// //格式化合同开始时间
|
|
|
-// contractStartDate, tmpErr := time.Parse(utils.FormatDate, "2023-12-19")
|
|
|
-// if tmpErr != nil {
|
|
|
-// fmt.Println(tmpErr)
|
|
|
-// return
|
|
|
-// }
|
|
|
-// if time.Now().After(contractStartDate) {
|
|
|
-// fmt.Println("go")
|
|
|
-// }
|
|
|
-//}
|
|
|
+func init() {
|
|
|
+ ActivitySpecialCompanyApproval(7030, 1259, "怀民大套餐客户")
|
|
|
+
|
|
|
+ // //格式化合同开始时间
|
|
|
+ // contractStartDate, tmpErr := time.Parse(utils.FormatDate, "2023-12-19")
|
|
|
+ //
|
|
|
+ // if tmpErr != nil {
|
|
|
+ // fmt.Println(tmpErr)
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ //
|
|
|
+ // if time.Now().After(contractStartDate) {
|
|
|
+ // fmt.Println("go")
|
|
|
+ // }
|
|
|
+}
|
|
|
|
|
|
// 审批通过的时候专项调研次数更新
|
|
|
func ActivitySpecialCompanyApproval(companyId, companyContractId int, companyName string) (err error) {
|
|
@@ -656,7 +658,7 @@ func ActivitySpecialCompanyApproval(companyId, companyContractId int, companyNam
|
|
|
var condition string
|
|
|
var pars []interface{}
|
|
|
pars = make([]interface{}, 0)
|
|
|
- condition = " AND company_id = ? AND points > 0 "
|
|
|
+ condition = " AND company_id = ? AND points > 0 ORDER BY chart_permission_id DESC "
|
|
|
pars = append(pars, companyId)
|
|
|
activitySpecialPermissionPointsList, e := cygx.GetCygxActivitySpecialPermissionPointsList(condition, pars)
|
|
|
if e != nil && e.Error() != utils.ErrNoRow() {
|