feat: 基本实现拆单收货--
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { prisma } from '../utils/prisma.js'
|
||||
|
||||
export const supplierDao = {
|
||||
findActiveByIdentification(supplierIdentification: string) {
|
||||
return prisma.supplierInfo.findFirst({
|
||||
where: { supplierIdentification, deleted: 0 }
|
||||
})
|
||||
},
|
||||
|
||||
findActiveBySupplierId(supplierId: string) {
|
||||
return prisma.supplierInfo.findFirst({
|
||||
where: { supplierId, deleted: 0 }
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user