zhangqian
2023-11-29 d1cb09e7a23e7221b6c090ad33e4481a5b79f615
controllers/report_forms_controller.go
@@ -260,11 +260,12 @@
      }
      if len(ids) == 0 {
         util.ResponseFormatList(c, code.Success, result, 0)
         return
      }
   }
   detailsSearch.Orm = detailsSearch.Orm.Model(&models.MoveHistory{}).
      Select("number, updated_at as date, product_name as product_name, from_location_id," +
      Select("number, updated_at as date, product_name as product_name, from_location_id, operation_id," +
         "to_location_id, amount, unit, operator as contacted_name, base_operation_type, weight, product_id, from_location, to_location").Order("id desc")
   if len(ids) > 0 {
      detailsSearch.Orm = detailsSearch.Orm.Where("id in ?", ids)