|
@@ -182,12 +182,7 @@ func (this *ActivitySpecialTripCoAntroller) AddUser() {
|
|
|
}
|
|
|
items = append(items, item)
|
|
|
} else {
|
|
|
- updateParams := make(map[string]interface{})
|
|
|
- updateParams["IsValid"] = 1
|
|
|
- updateParams["CreateTime"] = time.Now()
|
|
|
- updateParams["IsCancel"] = 0
|
|
|
- whereParam := map[string]interface{}{"user_id": uid, "activity_id": activityId}
|
|
|
- err = cygx.UpdateByExpr(cygx.CygxActivitySpecialTrip{}, whereParam, updateParams)
|
|
|
+ err = cygx.UpdateSpecialTrip(1,0,uid, activityId)
|
|
|
if err != nil {
|
|
|
br.Msg = "报名失败,"
|
|
|
br.ErrMsg = "二次报名,更改报名是否有效状态失败,Err:" + err.Error()
|
|
@@ -206,7 +201,7 @@ func (this *ActivitySpecialTripCoAntroller) AddUser() {
|
|
|
return
|
|
|
}
|
|
|
if userType == 2 {
|
|
|
- tripRemaining = tripRemaining+itemBill.BillDetailed-i
|
|
|
+ tripRemaining = tripRemaining + itemBill.BillDetailed-i
|
|
|
itemBill.Total = strconv.Itoa(tripRemaining) + "次"
|
|
|
} else {
|
|
|
for k, num := range mapChartName {
|