refactor: small adjustment
This commit is contained in:
parent
e61111cac7
commit
856bdef0f6
1 changed files with 3 additions and 3 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
import { Controller, Get, Query, Route, Security } from "tsoa";
|
import { Controller, Get, Query, Route, Security } from "tsoa";
|
||||||
import prisma from "../db";
|
|
||||||
import { Prisma, Product, Service } from "@prisma/client";
|
|
||||||
import { sql } from "kysely";
|
import { sql } from "kysely";
|
||||||
|
|
||||||
|
import prisma from "../db";
|
||||||
|
|
||||||
@Route("/api/v1/product-service")
|
@Route("/api/v1/product-service")
|
||||||
export class ProductServiceController extends Controller {
|
export class ProductServiceController extends Controller {
|
||||||
@Get()
|
@Get()
|
||||||
|
|
@ -51,7 +51,7 @@ export class ProductServiceController extends Controller {
|
||||||
sql<number>`-1`.as("agentPrice"),
|
sql<number>`-1`.as("agentPrice"),
|
||||||
sql<number>`-1`.as("serviceCharge"),
|
sql<number>`-1`.as("serviceCharge"),
|
||||||
sql<number>`-1`.as("process"),
|
sql<number>`-1`.as("process"),
|
||||||
sql<string>`'-'`.as("remark"),
|
sql<string>`''`.as("remark"),
|
||||||
"status",
|
"status",
|
||||||
"statusOrder",
|
"statusOrder",
|
||||||
"productGroupId",
|
"productGroupId",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue