if(StringUtils.isNotEmptyOrNull(date) && date.length() > 0){
String[] time = date.split("~");
if(time.length == 2){
startTime = time[0]+" 00:00:00";
endTime = time[1] + " 23:59:59";
}
reportapply.setStartdate(startTime);
reportapply.setEnddate(endTime);
}
<if test="entity.startdate != null and entity.startdate !='' ">
AND APPLYTIME <![CDATA[ >= ]]> to_date(#{entity.startdate},'yyyy-MM-dd hh24:mi:ss')
</if>
<if test="entity.enddate!= null and entity.enddate !='' ">
AND APPLYTIME <![CDATA[ <= ]]> to_date( #{entity.enddate},'yyyy-MM-dd hh24:mi:ss')
</if>