Browse Source

实现了打包记录查询的路由

pull/153/head
allanwei 3 years ago
parent
commit
617abf88f9
1 changed files with 36 additions and 0 deletions
  1. +36
    -0
      web/controllers/report/CustomizedQuery.rest.go

+ 36
- 0
web/controllers/report/CustomizedQuery.rest.go View File

@ -29,6 +29,7 @@ func RegisterRouteMappingOfCustomizedQuery(party router.Party) {
var service = svr.NewCustomizedQueryService()
RegisterRouteOfProductFamilyInventoryQueryInCustomizedQuery(party, service)
RegisterRouteMappingOfSeatQueryInCustomizedQuery(party, service)
RegisterRouteMappingOfPackingRecordQueryInCustomizedQuery(party, service)
}
/******************************************************************************
@ -113,3 +114,38 @@ func RegisterRouteMappingOfSeatQueryInCustomizedQuery(party router.Party, servic
supports.Ok(ctx, supports.OptionSuccess, result)
})
}
/******************************************************************************
*
* @Function Name : RegisterRouteMappingOfPackingRecordQueryInCustomizedQuery
*-----------------------------------------------------------------------------
*
* @Description : 注册自定义查询中打包记录查询的路由
*
* @Function Parameters : 路由分组
*
* @Author : chenglei.wei@le-it.com.cn
*
* @Date : 2022-03-10 17:38
*
******************************************************************************/
func RegisterRouteMappingOfPackingRecordQueryInCustomizedQuery(party router.Party, service svr.CustomizedQueryService) {
party.Get("/packingrecordquery", func(ctx iris.Context) {
user, ok := jwts.ParseToken(ctx)
if !ok {
return
}
urlParameters := ctx.URLParams()
var serialOrderId string
if serialOrderId, ok = urlParameters["serialorderid"]; !ok {
serialOrderId = ""
}
result, err := service.PackingRecordQuery(user, serialOrderId)
if err != nil {
supports.Error(ctx, iris.StatusBadRequest, err.Error(), nil)
return
}
supports.Ok(ctx, supports.OptionSuccess, result)
})
}

Loading…
Cancel
Save