Commit 5cc096ed authored by hezhen's avatar hezhen

123

parent 84c3e246
...@@ -124,7 +124,8 @@ public class TourGoodSpeBiz extends BaseBiz<TourGoodSpePriceMapper, TourGoodSpeP ...@@ -124,7 +124,8 @@ public class TourGoodSpeBiz extends BaseBiz<TourGoodSpePriceMapper, TourGoodSpeP
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
long startDateTime = dateFormat.parse(dateFormat.format(startTime)).getTime(); long startDateTime = dateFormat.parse(dateFormat.format(startTime)).getTime();
long endDateTime = dateFormat.parse(dateFormat.format(endTime)).getTime(); long endDateTime = dateFormat.parse(dateFormat.format(endTime)).getTime();
if (startDateTime<=endDateTime){ log.info("----startDateTime==="+startDateTime+"----endDateTime===="+endDateTime);
if (startDateTime<endDateTime){
return false; return false;
} }
int days=(int)((startDateTime - endDateTime) / (1000 * 3600 * 24)); int days=(int)((startDateTime - endDateTime) / (1000 * 3600 * 24));
......
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