Browse Source

update

add_mode
DengBiao 1 year ago
parent
commit
208299da56
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      app/admin/hdl/enterprise_manage/hdl_central_kitchen_for_school.go

+ 3
- 2
app/admin/hdl/enterprise_manage/hdl_central_kitchen_for_school.go View File

@@ -1029,11 +1029,12 @@ func CentralKitchenForSchoolReserveDetail(c *gin.Context) {
return
}
var resp []map[string]interface{}
var ishas map[int]bool
for _, v := range m {
if v.CentralKitchenForSchoolUserRefundDay.State == enum.NursingHomeUserRefundDayStateForAuditReject {
//TODO::审核拒绝会导致左连接查询数据过多
if ishas[v.CentralKitchenForSchoolUserWithDay.Id] {
continue
}
ishas[v.CentralKitchenForSchoolUserWithDay.Id] = true
resp = append(resp, map[string]interface{}{
"id": v.CentralKitchenForSchoolUserWithDay.Id,
"ord_no": v.CentralKitchenForSchoolUserWithDay.OrdNo,


Loading…
Cancel
Save