|
@@ -247,14 +247,14 @@ public class EsDenseVectorService {
|
|
|
Product product = productMapper.selectById(productId);
|
|
|
searchCondition = product.getSearchCondition();
|
|
|
|
|
|
- Date now = new Date();
|
|
|
- String nowFormat = format.format(now);
|
|
|
- Calendar calendar = Calendar.getInstance();
|
|
|
- calendar.setTime(now);
|
|
|
- calendar.add(Calendar.YEAR, -3);
|
|
|
- Date beforeDate = calendar.getTime();
|
|
|
- String agoFormat = format1.format(beforeDate) + "0101";
|
|
|
- String s = agoFormat + "~" + nowFormat;
|
|
|
+// Date now = new Date();
|
|
|
+// String nowFormat = format.format(now);
|
|
|
+// Calendar calendar = Calendar.getInstance();
|
|
|
+// calendar.setTime(now);
|
|
|
+// calendar.add(Calendar.YEAR, -3);
|
|
|
+// Date beforeDate = calendar.getTime();
|
|
|
+// String agoFormat = format1.format(beforeDate) + "0101";
|
|
|
+// String s = agoFormat + "~" + nowFormat;
|
|
|
// if (StringUtils.isNotEmpty(searchCondition)) {
|
|
|
// searchCondition = searchCondition + " AND " + "AD = " + "(" + s + ")";
|
|
|
// }
|