Browse Source

update

add_mode
DengBiao 1 year ago
parent
commit
df828715f7
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go

+ 3
- 3
app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go View File

@@ -855,7 +855,7 @@ func CentralKitchenForSchoolBatchAskForLeave(req md.CentralKitchenForSchoolBatch
} }
if len(m) > 0 { if len(m) > 0 {
//2、更改 `central_kitchen_for_school_user_with_day` 的 state 为 退款中 //2、更改 `central_kitchen_for_school_user_with_day` 的 state 为 退款中
sql := "update central_kitchen_for_school_user_with_day set state = %d where identity_id In (%s) and date = %s and kind = %d"
sql := "update central_kitchen_for_school_user_with_day set state = %d where identity_id In (%s) and date = '%s' and kind = %d"
idsStr := strings.Join(identityIds, ",") idsStr := strings.Join(identityIds, ",")
sql = fmt.Sprintf(sql, enum2.CentralKitchenForSchoolUserWithDayStateForCanceling, idsStr, req.Date, enum2.CentralKitchenForSchoolUserWithDayKindForBreakfast) sql = fmt.Sprintf(sql, enum2.CentralKitchenForSchoolUserWithDayStateForCanceling, idsStr, req.Date, enum2.CentralKitchenForSchoolUserWithDayKindForBreakfast)
fmt.Println(sql) fmt.Println(sql)
@@ -911,7 +911,7 @@ func CentralKitchenForSchoolBatchAskForLeave(req md.CentralKitchenForSchoolBatch


if len(m) > 0 { if len(m) > 0 {
//2、更改 `central_kitchen_for_school_user_with_day` 的 state 为 退款中 //2、更改 `central_kitchen_for_school_user_with_day` 的 state 为 退款中
sql := "update central_kitchen_for_school_user_with_day set state = %d where identity_id In (%s) and date = %s and kind = %d"
sql := "update central_kitchen_for_school_user_with_day set state = %d where identity_id In (%s) and date = '%s' and kind = %d"
idsStr := strings.Join(identityIds, ",") idsStr := strings.Join(identityIds, ",")
sql = fmt.Sprintf(sql, enum2.CentralKitchenForSchoolUserWithDayStateForCanceling, idsStr, req.Date, enum2.CentralKitchenForSchoolUserWithDayKindForLunch) sql = fmt.Sprintf(sql, enum2.CentralKitchenForSchoolUserWithDayStateForCanceling, idsStr, req.Date, enum2.CentralKitchenForSchoolUserWithDayKindForLunch)
fmt.Println(sql) fmt.Println(sql)
@@ -967,7 +967,7 @@ func CentralKitchenForSchoolBatchAskForLeave(req md.CentralKitchenForSchoolBatch
} }
if len(m) < 0 { if len(m) < 0 {
//2、更改 `central_kitchen_for_school_user_with_day` 的 state 为 退款中 //2、更改 `central_kitchen_for_school_user_with_day` 的 state 为 退款中
sql := "update central_kitchen_for_school_user_with_day set state = %d where identity_id In (%s) and date = %s and kind = %d"
sql := "update central_kitchen_for_school_user_with_day set state = %d where identity_id In (%s) and date = '%s' and kind = %d"
idsStr := strings.Join(identityIds, ",") idsStr := strings.Join(identityIds, ",")
sql = fmt.Sprintf(sql, enum2.CentralKitchenForSchoolUserWithDayStateForCanceling, idsStr, req.Date, enum2.CentralKitchenForSchoolUserWithDayKindForDinner) sql = fmt.Sprintf(sql, enum2.CentralKitchenForSchoolUserWithDayStateForCanceling, idsStr, req.Date, enum2.CentralKitchenForSchoolUserWithDayKindForDinner)
fmt.Println(sql) fmt.Println(sql)


Loading…
Cancel
Save