wangning 7 years ago
commit e363faba95

@ -429,7 +429,7 @@ public class RetailAppServiceImp implements RetailAppService {
default: default:
break; break;
} }
Calendar calendar = (Calendar) order.get("create_time"); Calendar calendar = (Calendar) order.get("transaction_time");
String trade_date = DateFormatUtils.format(calendar, "yyyy-MM-dd"); String trade_date = DateFormatUtils.format(calendar, "yyyy-MM-dd");
String trade_time = DateFormatUtils.format(calendar, "HH:mm:ss"); String trade_time = DateFormatUtils.format(calendar, "HH:mm:ss");
order.put("trade_date", trade_date); order.put("trade_date", trade_date);

@ -669,7 +669,7 @@
<if test="client_ids==null and client_id !=null"> <if test="client_ids==null and client_id !=null">
and o.client_id=#{client_id} and o.client_id=#{client_id}
</if> </if>
<if test="from!=null">and t.transaciton_time &gt;= #{from}</if> <if test="from!=null">and t.transaction_time &gt;= #{from}</if>
<if test="to!=null">and t.transaction_time &lt; #{to}</if> <if test="to!=null">and t.transaction_time &lt; #{to}</if>
<if test="date!=null">and date(t.transaction_time)=date(#{date}) <if test="date!=null">and date(t.transaction_time)=date(#{date})
</if> </if>

Loading…
Cancel
Save