Commit b30f901c by Huang Linyu

套餐查询错误修复

parent dc1c3ac7
......@@ -55,7 +55,7 @@ public class TourBasicDao extends GenericHibernateDao<TourBasic, Integer> {
*/
public PagedResponseBean<TourBean> search(TourBasicQuery tourBasicQuery) {
Map<String, Object> parameters = new HashMap<String, Object>();
String subSql = "select GROUP_CONCAT(DATE_FORMAT(priceDate,\"%c/%e\") ORDER BY priceDate ASC) as departureDays,min(adultPrice) as adultPrice,tourId from tur_price tp inner join tur_tourbasic tour1 on tp.tourId=tour1.id where tp.status=:priceStatus and priceDate>=DATE_ADD('"
String subSql = "select GROUP_CONCAT(DATE_FORMAT(priceDate,'%c/%e') ORDER BY priceDate ASC) as departureDays,min(adultPrice) as adultPrice,tourId from tur_price tp inner join tur_tourbasic tour1 on tp.tourId=tour1.id where tp.status=:priceStatus and priceDate>=DATE_ADD('"
+ DateUtil.getDateStr(new Date()) + "',INTERVAL advanceDays day)";
if (tourBasicQuery.getPriceDate() != null) {
subSql = subSql + " and priceDate=:priceDate";
......
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 sign in to comment