mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-23 14:55:42 +00:00
FIX[BE]: if project flocs deleted kandangs reset to non_active and add filter get all project_flock by area,kandangs,period and location
This commit is contained in:
@@ -8,24 +8,24 @@ import (
|
||||
)
|
||||
|
||||
type ProjectFlockBaseDTO struct {
|
||||
Id uint `json:"id"`
|
||||
Id uint `json:"id"`
|
||||
// FlockId uint `json:"flock_id"`
|
||||
// AreaId uint `json:"area_id"`
|
||||
// ProductCategoryId uint `json:"product_category_id"`
|
||||
// FcrId uint `json:"fcr_id"`
|
||||
// LocationId uint `json:"location_id"`
|
||||
Period int `json:"period"`
|
||||
Period int `json:"period"`
|
||||
}
|
||||
|
||||
func ToProjectFlockBaseDTO(e entity.ProjectFlock) ProjectFlockBaseDTO {
|
||||
return ProjectFlockBaseDTO{
|
||||
Id: e.Id,
|
||||
Id: e.Id,
|
||||
// FlockId: e.FlockId,
|
||||
// AreaId: e.AreaId,
|
||||
// ProductCategoryId: e.ProductCategoryId,
|
||||
// FcrId: e.FcrId,
|
||||
// LocationId: e.LocationId,
|
||||
Period: e.Period,
|
||||
Period: e.Period,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user