service/operation.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
service/operation.go
@@ -4,6 +4,7 @@ "errors" "fmt" "github.com/gin-gonic/gin" "github.com/mitchellh/mapstructure" "github.com/shopspring/decimal" "gorm.io/gorm" "strconv" @@ -246,7 +247,10 @@ return errors.New("当前仓库没有该产品,请先入库") } if v.IsInternalOutput { internalInputDetails = append(internalInputDetails, v) var inputDetail models.OperationDetails mapstructure.Decode(v, &inputDetail) inputDetail.OperationID = 0 internalInputDetails = append(internalInputDetails, &inputDetail) } } if len(internalInputDetails) > 0 {