|
@@ -167,7 +167,7 @@ func AssignPlan(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
|
|
|
- if err := db.Model(&model.Plan2Group{}).Where("group_id = ?", groupId).
|
|
|
+ if err := db.Model(&model.Plan2Group{}).Where("group_id = ? and plan_id = ?", groupId, groupVo.PlanId).
|
|
|
First(&model.Plan2Group{}).Error; err == nil {
|
|
|
response.Fail(c, nil, "分配失败,小组已被该计划分配")
|
|
|
return
|