Forráskód Böngészése

修改商家预约管理存过函数名

jyq 4 éve
szülő
commit
2e1f5c0e63

+ 6 - 6
assembly/base/repository/postgre/order.go

@@ -10,22 +10,22 @@ package postgre
 type PGOrder struct {
 }
 
-func (PGOrder) OrderListQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
-	err = getClient().Raw("select fn_order_List_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
+func (PGOrder) OrderListQueryByManager(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
+	err = getClient().Raw("select fn_order_list_query_by_manager(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
 		Scan(&result).Error
 
 	return
 }
 
-func (PGOrder) OrderAdd(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
-	err = getClient().Raw("select fn_order_add(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
+func (PGOrder) OrderAddByManager(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
+	err = getClient().Raw("select fn_order_add_by_manager(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
 		Scan(&result).Error
 
 	return
 }
 
-func (PGOrder) OrderCancel(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
-	err = getClient().Raw("select fn_order_cancel(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
+func (PGOrder) OrderCancelByManager(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
+	err = getClient().Raw("select fn_order_cancel_by_manager(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
 		Scan(&result).Error
 
 	return

+ 3 - 3
assembly/base/service/order.go

@@ -19,7 +19,7 @@ type Order struct {
 func (o Order) OrderListQuery(token string, objectShopId int64, jsonStr string, sign string) string {
 	optId := o.checkPermission(token, objectShopId)
 
-	rst, err := postgre.PGOrder{}.OrderListQuery(optId, objectShopId, jsonStr, sign)
+	rst, err := postgre.PGOrder{}.OrderListQueryByManager(optId, objectShopId, jsonStr, sign)
 	if err != nil {
 		panic(errors.PGError)
 	}
@@ -29,7 +29,7 @@ func (o Order) OrderListQuery(token string, objectShopId int64, jsonStr string,
 func (o Order) OrderAddByManager(token string, objectShopId int64, jsonStr string, sign string) string {
 	optId := o.checkPermission(token, objectShopId)
 
-	rst, err := postgre.PGOrder{}.OrderAdd(optId, objectShopId, jsonStr, sign)
+	rst, err := postgre.PGOrder{}.OrderAddByManager(optId, objectShopId, jsonStr, sign)
 	if err != nil {
 		panic(errors.PGError)
 	}
@@ -39,7 +39,7 @@ func (o Order) OrderAddByManager(token string, objectShopId int64, jsonStr strin
 func (o Order) OrderCancelByManager(token string, objectShopId int64, jsonStr string, sign string) string {
 	optId := o.checkPermission(token, objectShopId)
 
-	rst, err := postgre.PGOrder{}.OrderCancel(optId, objectShopId, jsonStr, sign)
+	rst, err := postgre.PGOrder{}.OrderCancelByManager(optId, objectShopId, jsonStr, sign)
 	if err != nil {
 		panic(errors.PGError)
 	}