feat: 恢复不必要的判断写法,valuse不可能为空,不必要打问号
This commit is contained in:
parent
44259e8260
commit
8368ca0f62
@ -35,7 +35,7 @@ export class RecordService {
|
||||
return;
|
||||
}
|
||||
// 运输单的创建会走订单的update,如果存在waybill一定是在录运输单
|
||||
if (values?.waybill) return;
|
||||
if (values.waybill) return;
|
||||
if (values.record_category === RecordTypes.purchaseDirect || values.record_category === RecordTypes.rentDirect) {
|
||||
const deleteDatas = await this.db.getRepository('records').find({ where: { direct_record_id: model.id } });
|
||||
// 删除订单多对多项目表数据
|
||||
|
Loading…
Reference in New Issue
Block a user