作者 tangxvhui

调整短信发送

@@ -278,7 +278,9 @@ func TaskSendSummaryEvaluation() error { @@ -278,7 +278,9 @@ func TaskSendSummaryEvaluation() error {
278 // 添加待发送的短信通知 278 // 添加待发送的短信通知
279 func sendSmsEvalation(param []domain.SummaryEvaluation) error { 279 func sendSmsEvalation(param []domain.SummaryEvaluation) error {
280 for i := range param { 280 for i := range param {
281 - notify.AddNotifySummaryEvaluation(&param[i]) 281 + if param[i].Types == domain.EvaluationSelf {
  282 + notify.AddNotifySummaryEvaluation(&param[i])
  283 + }
282 } 284 }
283 return nil 285 return nil
284 } 286 }
@@ -84,9 +84,17 @@ ALTER TABLE public.evaluation_project @@ -84,9 +84,17 @@ ALTER TABLE public.evaluation_project
84 84
85 COMMENT ON COLUMN public.evaluation_project.summary_state IS '周期评估是否下发'; 85 COMMENT ON COLUMN public.evaluation_project.summary_state IS '周期评估是否下发';
86 86
87 --- 变更user表字段  
88 -ALTER TABLE "public"."user"  
89 - ADD COLUMN "parent_id" int8 DEFAULT 0; 87 +-- 处理evaluation_project表字段summary_state 初始值
  88 +UPDATE
  89 + evaluation_project
  90 +SET
  91 + summary_state = 1
  92 +WHERE
  93 + end_time <= now()
  94 + AND deleted_at ISNULL
  95 + -- 变更user表字段
  96 + ALTER TABLE "public"."user"
  97 + ADD COLUMN "parent_id" int8 DEFAULT 0;
90 98
91 COMMENT ON COLUMN "public"."user"."parent_id" IS '上级ID'; 99 COMMENT ON COLUMN "public"."user"."parent_id" IS '上级ID';
92 100