zhangqian
2024-07-03 b7eb56d137d10512a97d11450d8db852b980cfb6
位置报表支持传入位置数据参数
2个文件已修改
3 ■■■■ 已修改文件
request/report_forms_request.go 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service/location_forms.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
request/report_forms_request.go
@@ -24,6 +24,7 @@
    WareHouseCode string `json:"wareHouseCode"`
    ProductId     string `json:"productId"`
    LocationId    int    `json:"locationId"`
    LocationIds   []int  `json:"locationIds"`
}
type GetMonthStats struct {
service/location_forms.go
@@ -46,7 +46,7 @@
}
func (slf *LocationFormsService) BuildSearch(params request.GetLocationForms) (search *models.LocationProductAmountSearch, err error) {
    ids := make([]int, 0)
    ids := params.LocationIds
    if params.LocationId != 0 {
        ids = append(ids, params.LocationId)
    } else {