fixbug daily_transactions

master
wangning 7 years ago
parent d95e848045
commit 9acc33a509

@ -1133,8 +1133,9 @@ public class RetailAppServiceImp implements RetailAppService {
@Override
public JSONObject listDailyTransactions(String dateStr, String timezone, boolean thisDevOnly, JSONObject device,String app_client_ids) {
try {
JSONObject client = clientManager.getClientInfo(device.getIntValue("client_id"));
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
dateFormat.setTimeZone(TimeZone.getTimeZone(timezone));
dateFormat.setTimeZone(TimeZone.getTimeZone(client.getString("timezone")));
Date date = dateFormat.parse(dateStr);
String clientType = device.getString("client_type");
DeviceRegister register = deviceSupport.findRegister(clientType);

Loading…
Cancel
Save