|
|
@@ -40,7 +40,7 @@ func SuggestedFeedbackList(c *gin.Context) { |
|
|
|
if req.Phone != "" { |
|
|
|
sess.And("user.phone like ?", "%"+req.Phone+"%") |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
admin := svc.GetUser(c) |
|
|
|
if admin.IsSuperAdministrator != enum2.IsSuperAdministratorTure { |
|
|
|
adminWithEnterpriseDb := db.AdminWithEnterpriseDb{} |
|
|
@@ -57,7 +57,7 @@ func SuggestedFeedbackList(c *gin.Context) { |
|
|
|
if len(enterPriseIds) == 0 { |
|
|
|
return |
|
|
|
} |
|
|
|
sess.In("device.enterprise_id", enterPriseIds) |
|
|
|
sess.In("suggested_feedback.enterprise_id", enterPriseIds) |
|
|
|
} |
|
|
|
|
|
|
|
var m []*db.SuggestedFeedbackWithUserIdentity |
|
|
|