作者 tangxvhui

调整短信发送

... ... @@ -278,7 +278,9 @@ func TaskSendSummaryEvaluation() error {
// 添加待发送的短信通知
func sendSmsEvalation(param []domain.SummaryEvaluation) error {
for i := range param {
notify.AddNotifySummaryEvaluation(&param[i])
if param[i].Types == domain.EvaluationSelf {
notify.AddNotifySummaryEvaluation(&param[i])
}
}
return nil
}
... ...
... ... @@ -84,9 +84,17 @@ ALTER TABLE public.evaluation_project
COMMENT ON COLUMN public.evaluation_project.summary_state IS '周期评估是否下发';
-- 变更user表字段
ALTER TABLE "public"."user"
ADD COLUMN "parent_id" int8 DEFAULT 0;
-- 处理evaluation_project表字段summary_state 初始值
UPDATE
evaluation_project
SET
summary_state = 1
WHERE
end_time <= now()
AND deleted_at ISNULL
-- 变更user表字段
ALTER TABLE "public"."user"
ADD COLUMN "parent_id" int8 DEFAULT 0;
COMMENT ON COLUMN "public"."user"."parent_id" IS '上级ID';
... ...