Ver Fonte

feature(产品): 外购类的产品视为硬件

lk há 2 anos atrás
pai
commit
eeed304388

+ 1 - 1
opms_parent/app/service/base/base_product.go

@@ -41,7 +41,7 @@ func (s *productService) GetList(req *model.ProductSearchReq) (total int, produc
 		Dao = Dao.Where("prod_class = ?", req.ProdClass)
 	}
 	if req.OnlyHardware {
-		Dao = Dao.Where("prod_class in (40,50,60)")
+		Dao = Dao.Where("prod_class in (40,50,60,90)")
 	}
 	if req.OnlySoftware {
 		Dao = Dao.Where("prod_class in (10,20,30)")

+ 1 - 1
opms_parent/app/service/work/deliver_order.go

@@ -390,7 +390,7 @@ func DeliverOrderAdd(tx *gdb.TX, contractId int, userInfo request.UserInfo, prod
 			orderType = "10"
 		}
 		// 参考218上的产品类型设置
-		if p.ProdClass == "40" || p.ProdClass == "50" || p.ProdClass == "60" {
+		if p.ProdClass == "40" || p.ProdClass == "50" || p.ProdClass == "60" || p.ProdClass == "90" {
 			orderType = "20"
 		}