| 
														
															@@ -100,7 +100,7 @@ module.exports = class ProductsController extends ManagerController { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         .number(), 
														 | 
														
														 | 
														
															         .number(), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       is_hot: that.ctx.rules.default(0) 
														 | 
														
														 | 
														
															       is_hot: that.ctx.rules.default(0) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         .number(), 
														 | 
														
														 | 
														
															         .number(), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      is_best: that.ctx.rules.default(0) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      is_home: that.ctx.rules.default(0) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         .number(), 
														 | 
														
														 | 
														
															         .number(), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       content_id: that.ctx.rules.default(0) 
														 | 
														
														 | 
														
															       content_id: that.ctx.rules.default(0) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         .required() 
														 | 
														
														 | 
														
															         .required() 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -177,6 +177,8 @@ module.exports = class ProductsController extends ManagerController { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         .number(), 
														 | 
														
														 | 
														
															         .number(), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       product_name: that.ctx.rules.default('') 
														 | 
														
														 | 
														
															       product_name: that.ctx.rules.default('') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         .required(), 
														 | 
														
														 | 
														
															         .required(), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      product_sn: that.ctx.rules.default('') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        .required(), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       supplier_id: that.ctx.rules.default(0) 
														 | 
														
														 | 
														
															       supplier_id: that.ctx.rules.default(0) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         .number(), 
														 | 
														
														 | 
														
															         .number(), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       is_new: that.ctx.rules.default('') 
														 | 
														
														 | 
														
															       is_new: that.ctx.rules.default('') 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -185,7 +187,7 @@ module.exports = class ProductsController extends ManagerController { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         .required(), 
														 | 
														
														 | 
														
															         .required(), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       is_hot: that.ctx.rules.default('') 
														 | 
														
														 | 
														
															       is_hot: that.ctx.rules.default('') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         .required(), 
														 | 
														
														 | 
														
															         .required(), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      is_best: that.ctx.rules.default('') 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      is_home: that.ctx.rules.default('') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         .required(), 
														 | 
														
														 | 
														
															         .required(), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       category_id: that.ctx.rules.default(0) 
														 | 
														
														 | 
														
															       category_id: that.ctx.rules.default(0) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         .number(), 
														 | 
														
														 | 
														
															         .number(), 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -383,10 +385,11 @@ module.exports = class ProductsController extends ManagerController { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       } 
														 | 
														
														 | 
														
															       } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       if (data.carousel_id) options.where.carousel_id = data.carousel_id; 
														 | 
														
														 | 
														
															       if (data.carousel_id) options.where.carousel_id = data.carousel_id; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       if (data.product_name) options.where.product_name = { [seq.Op.regexp]: data.product_name }; 
														 | 
														
														 | 
														
															       if (data.product_name) options.where.product_name = { [seq.Op.regexp]: data.product_name }; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      if (data.product_sn) options.where.product_sn = { [seq.Op.regexp]: data.product_sn }; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       if (data.is_hot !== '') options.where.is_hot = Number(data.is_hot); 
														 | 
														
														 | 
														
															       if (data.is_hot !== '') options.where.is_hot = Number(data.is_hot); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       if (data.is_top !== '') options.where.is_top = Number(data.is_top); 
														 | 
														
														 | 
														
															       if (data.is_top !== '') options.where.is_top = Number(data.is_top); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       if (data.is_new !== '') options.where.is_new = Number(data.is_new); 
														 | 
														
														 | 
														
															       if (data.is_new !== '') options.where.is_new = Number(data.is_new); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      if (data.is_best !== '') options.where.is_best = Number(data.is_best); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      if (data.is_home !== '') options.where.is_home = Number(data.is_home); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       if (data.is_sale !== '') options.where.is_sale = Number(data.is_sale); 
														 | 
														
														 | 
														
															       if (data.is_sale !== '') options.where.is_sale = Number(data.is_sale); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       if (data.product_type) options.where.product_type = data.product_type; 
														 | 
														
														 | 
														
															       if (data.product_type) options.where.product_type = data.product_type; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       if (data.supplier_id) options.where.supplier_id = data.supplier_id; 
														 | 
														
														 | 
														
															       if (data.supplier_id) options.where.supplier_id = data.supplier_id; 
														 |