|
@@ -351,9 +351,13 @@ func GroupBuyCancel(c *gin.Context) {
|
|
|
|
|
|
activeCancel.ClientOpenID = transInfo.ClientOpenID
|
|
|
activeCancel.ActiveConfigID = transInfo.ActiveConfigID
|
|
|
+ activeCancel.GroupByProjectID = v.ID
|
|
|
|
|
|
- cancelNum := activeCancel.GetActiveCancelNum()
|
|
|
+ cancelNum := activeCancel.GetActiveCancelNumByProjectID()
|
|
|
fmt.Println("cancelNum = ", cancelNum)
|
|
|
+ fmt.Println("projectInfo.CancelNum = ", projectInfo.CancelNum)
|
|
|
+ fmt.Println("v.CancelNum = ", v.CancelNum)
|
|
|
+
|
|
|
if projectInfo.CancelNum >= cancelNum+v.CancelNum && v.CancelNum > 0 {
|
|
|
isCancel = true
|
|
|
for i := 0; i < v.CancelNum; i++ {
|