|
|
|
@ -252,6 +252,22 @@ public class RetailAppServiceImp implements RetailAppService {
|
|
|
|
|
merchantInfoProvider.changeSurchargeEnable(device,updateSurchargeDTO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public JSONObject getInvoiceData(JSONObject device, AppQueryBean appQueryBean) throws Exception {
|
|
|
|
|
String clientType = device.getString("client_type");
|
|
|
|
|
deviceSupport.findRegister(clientType);
|
|
|
|
|
int client_id = device.getIntValue("client_id") ;
|
|
|
|
|
JSONObject client = clientManager.getClientInfo(client_id);
|
|
|
|
|
String timezone = client.getString("timezone");
|
|
|
|
|
appQueryBean.setTimezone(timezone);
|
|
|
|
|
JSONObject params = appQueryBean.toParams();
|
|
|
|
|
setAllClientIds(params, client_id);
|
|
|
|
|
clientManager.validateClients(client_id, params);
|
|
|
|
|
params.put("client_id", client_id);
|
|
|
|
|
JSONObject analysis = transactionMapper.analysisTransFlow(params);
|
|
|
|
|
return analysis;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void updateClient(JSONObject device, AppClientBean appClientBean) {
|
|
|
|
|
String clientType = device.getString("client_type");
|
|
|
|
|