boweniac há 1 dia atrás
pai
commit
72d889ff6e
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      internal/service/wechat/wx_safe_change.go

+ 3 - 3
internal/service/wechat/wx_safe_change.go

@@ -140,7 +140,7 @@ func (w *WxSafeChange) LabelSafe() error {
 		Where(
 			label.DeletedAtIsNil(),
 			label.HasLabelRelationshipsWith(
-				labelrelationship.DeletedAtIsNil(),
+				//labelrelationship.DeletedAtIsNil(),
 				labelrelationship.HasContactsWith(
 					contact.WxWxidEQ(w.WxId),
 				),
@@ -220,7 +220,7 @@ func (w *WxSafeChange) LabelSafe() error {
 	// 建立新的标签关系
 	labelRelationships, err := w.Tx.LabelRelationship.Query().
 		Where(
-			labelrelationship.DeletedAtIsNil(),
+			//labelrelationship.DeletedAtIsNil(),
 			labelrelationship.HasContactsWith(
 				contact.WxWxidEQ(w.WxId),
 			),
@@ -245,7 +245,7 @@ func (w *WxSafeChange) LabelSafe() error {
 	// 删除旧的标签关系
 	_, err = w.Tx.LabelRelationship.Delete().
 		Where(
-			labelrelationship.DeletedAtIsNil(),
+			//labelrelationship.DeletedAtIsNil(),
 			labelrelationship.HasLabelsWith(
 				label.OrganizationIDNEQ(wxinfo.OrganizationID)),
 			labelrelationship.HasContactsWith(