|
|
@ -200,8 +200,9 @@ public class RetailAppController {
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/daily_transactions/date/{dateStr}", method = RequestMethod.GET)
|
|
|
|
@RequestMapping(value = "/daily_transactions/date/{dateStr}", method = RequestMethod.GET)
|
|
|
|
public JSONObject listDailyTransactions(@PathVariable String dateStr, @RequestParam(defaultValue = "Australia/Melbourne") String timezone,
|
|
|
|
public JSONObject listDailyTransactions(@PathVariable String dateStr, @RequestParam(defaultValue = "Australia/Melbourne") String timezone,
|
|
|
|
|
|
|
|
@RequestParam(defaultValue = "false") boolean thisdevice,
|
|
|
|
@ModelAttribute(CommonConsts.RETAIL_DEVICE) JSONObject device) {
|
|
|
|
@ModelAttribute(CommonConsts.RETAIL_DEVICE) JSONObject device) {
|
|
|
|
return retailAppService.listDailyTransactions(dateStr, timezone, device);
|
|
|
|
return retailAppService.listDailyTransactions(dateStr, timezone, thisdevice, device);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/modify/retail_surcharge", method = RequestMethod.PUT)
|
|
|
|
@RequestMapping(value = "/modify/retail_surcharge", method = RequestMethod.PUT)
|
|
|
@ -289,6 +290,7 @@ public class RetailAppController {
|
|
|
|
public JSONObject getAd(@ModelAttribute(CommonConsts.RETAIL_DEVICE) JSONObject device) {
|
|
|
|
public JSONObject getAd(@ModelAttribute(CommonConsts.RETAIL_DEVICE) JSONObject device) {
|
|
|
|
return retailAppService.getAd(device);
|
|
|
|
return retailAppService.getAd(device);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/ads/{article_id}", method = RequestMethod.GET)
|
|
|
|
@RequestMapping(value = "/ads/{article_id}", method = RequestMethod.GET)
|
|
|
|
public JSONObject getAdDetail(@PathVariable String article_id, @ModelAttribute(CommonConsts.RETAIL_DEVICE) JSONObject device) {
|
|
|
|
public JSONObject getAdDetail(@PathVariable String article_id, @ModelAttribute(CommonConsts.RETAIL_DEVICE) JSONObject device) {
|
|
|
|
return retailAppService.getAdDetail(device, article_id);
|
|
|
|
return retailAppService.getAdDetail(device, article_id);
|
|
|
|