|
|
@@ -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, |
|
|
|