@@ -96,4 +96,9 @@ public class ProductInfoSelectDto extends BaseSelectDto {
*/
private String customsCode;
+ /**
+ * 销售状态
+ */
+ private String salesStatus;
+
}
@@ -106,6 +106,8 @@ public class ProductInfoServiceImpl extends ServiceImpl<ProductInfoMapper, Produ
wrapper.eq("IF(DATEDIFF(now(),pi.create_time)> json_unquote( victoriatourist_json -> '$.growUpDay' ),3,IF( DATEDIFF(now(),pi.create_time)> json_unquote( victoriatourist_json -> '$.newProductsDay' ), 2, 1 ))", dto.getLifeCycle());
//过滤组合产品
wrapper.eq("json_unquote( victoriatourist_json -> '$.combination' )", dto.getCombination());
+ //销售状态过滤
+ wrapper.eq("json_unquote( victoriatourist_json -> '$.salesStatus' )", dto.getSalesStatus());
Page<ProductInfoVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);