zs 1 year ago
parent
commit
49094a04ef

+ 2 - 2
src/interface/car.interface.ts

@@ -86,8 +86,8 @@ export class FVO_car {
 
 export class QDTO_car extends SearchBase {
   constructor() {
-    const like_prop = [];
-    const props = [];
+    const like_prop = ['brand'];
+    const props = ['shop','status'];
     const mapping = [];
     super({ like_prop, props, mapping });
   }

+ 13 - 19
src/interface/estimate.interface.ts

@@ -32,17 +32,15 @@ export class FVO_estimate {
   'status': string = undefined;
 }
 
-
 export class QDTO_estimate extends SearchBase {
   constructor() {
     const like_prop = [];
-    const props = [];
+    const props = ['contacts', 'tel', 'status'];
     const mapping = [];
     super({ like_prop, props, mapping });
   }
 }
 
-
 export class QVO_estimate extends FVO_estimate {
   constructor(data: object) {
     super(data);
@@ -50,35 +48,33 @@ export class QVO_estimate extends FVO_estimate {
   }
 }
 
-
 export class CDTO_estimate {
   @ApiProperty({ description: '微信用户' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'openid': string = undefined;
   @ApiProperty({ description: '品牌' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'brand': string = undefined;
   @ApiProperty({ description: '上牌日期' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'start': string = undefined;
   @ApiProperty({ description: '所在地区' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'place': string = undefined;
   @ApiProperty({ description: '联系人' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'contacts': string = undefined;
   @ApiProperty({ description: '联系电话' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'tel': string = undefined;
   @ApiProperty({ description: '预估金额' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'estimate': string = undefined;
   @ApiProperty({ description: '状态' })
-@Rule(RuleType['string']().empty(''))
+  @Rule(RuleType['string']().empty(''))
   'status': string = undefined;
 }
 
-
 export class CVO_estimate extends FVO_estimate {
   constructor(data: object) {
     super(data);
@@ -86,17 +82,15 @@ export class CVO_estimate extends FVO_estimate {
   }
 }
 
-
 export class UDTO_estimate extends CDTO_estimate {
-    @ApiProperty({ description: '数据id' })
-    @Rule(RuleType['string']().empty(''))
-    _id: string = undefined;
+  @ApiProperty({ description: '数据id' })
+  @Rule(RuleType['string']().empty(''))
+  _id: string = undefined;
 }
 
-
 export class UVAO_estimate extends FVO_estimate {
   constructor(data: object) {
     super(data);
     dealVO(this, data);
   }
-}
+}

+ 2 - 2
src/interface/shop.interface.ts

@@ -32,8 +32,8 @@ export class FVO_shop {
 
 export class QDTO_shop extends SearchBase {
   constructor() {
-    const like_prop = [];
-    const props = [];
+    const like_prop = ['name', 'contacts'];
+    const props = ['is_use', 'tel'];
     const mapping = [];
     super({ like_prop, props, mapping });
   }

+ 2 - 2
src/interface/system/brand.interface.ts

@@ -26,8 +26,8 @@ export class FVO_brand {
 
 export class QDTO_brand extends SearchBase {
   constructor() {
-    const like_prop = [];
-    const props = [];
+    const like_prop = ['name'];
+    const props = ['letter', 'is_use'];
     const mapping = [];
     super({ like_prop, props, mapping });
   }