Commit 5c5f87aa by 陶光胜

取数平台调整

parent 1615e3e4
......@@ -163,6 +163,17 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
String overDate = queryCondition.getExtendFilter() + "";
//curFilterText = "\"" + queryCondition.getFieldName() + "\" >= '" + startDate + "' AND \"" + queryCondition.getFieldName() + "\" <= '" + overDate + "'";
curFilterText = " " + queryCondition.getFieldName() + " >= '" + startDate + "' AND " + queryCondition.getFieldName() + " <= '" + overDate + "'";
if("extract_order_information".equals(tableId) && "receipts_date".equals(queryCondition.getFieldName())){
//订单表如果使用了单据时间,增加分区字段
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM");
try {
String startMonth = sdf.format(sdf.parse(startDate));
String endMonth = sdf.format(sdf.parse(overDate));
curFilterText += " AND ds >='" + startMonth + "' AND ds<='" + endMonth +"' ";
} catch (ParseException e) {
e.printStackTrace();
}
}
}
// 合并到主查询过滤中
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment