| | |
| | | SetPage(params.Page, params.PageSize). |
| | | SetOrder("id desc"). |
| | | SetPreload(true). |
| | | SetCategoryIds(params.CategoryIds). |
| | | FindByPage() |
| | | if err != nil { |
| | | util.ResponseFormat(c, code.InternalError, "查询失败") |
| | |
| | | // @Tags 库存盘点 |
| | | // @Summary 添加库存盘点信息 |
| | | // @Produce application/json |
| | | // @Param Authorization header string true "token" |
| | | // @Param object body request.UpdateLocationProductAmount true "入库/出库信息" |
| | | // @Success 200 {object} util.Response "成功" |
| | | // @Router /api-wms/v1/locationProductAmount/add [post] |
| | |
| | | // @Tags 库存盘点 |
| | | // @Summary 修改库存盘点信息 |
| | | // @Produce application/json |
| | | // @Param Authorization header string true "token" |
| | | // @Param object body request.UpdateLocationProductAmount true "入库/出库信息" |
| | | // @Success 200 {object} util.Response "成功" |
| | | // @Router /api-wms/v1/locationProductAmount/update [post] |
| | |
| | | } |
| | | |
| | | // Finish |
| | | // deprecated |
| | | // |
| | | // @Tags 库存盘点 |
| | | // @Tags 库存盘点 |
| | | // @Summary 应用、验证 |
| | | // @Produce application/json |
| | | // @Param object body request.FinishLocationProductAmount true "入参" |
| | | // @Param Authorization header string true "token" |
| | | // @Param object body request.FinishLocationProductAmount true "入参" |
| | | // @Success 200 {object} util.Response "成功" |
| | | // @Router /api-wms/v1/locationProductAmount/finish [post] |
| | | // @Router /api-wms/v1/locationProductAmount/finish [post] |
| | | func (slf LocationProductAmountController) Finish(c *gin.Context) { |
| | | var reqParams request.FinishLocationProductAmount |
| | | if err := c.BindJSON(&reqParams); err != nil { |