|
|
|
@ -159,16 +159,16 @@ public class ManageAppController {
|
|
|
|
|
return manageAppService.getOrgPrizeList(device);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/org_prize/{monthStr}", method = RequestMethod.GET)
|
|
|
|
|
public List<JSONObject> getOrgPrizeDetail(@ModelAttribute(CommonConsts.MANAGER_DEVICE) JSONObject device,@PathVariable String monthStr) {
|
|
|
|
|
Date date;
|
|
|
|
|
try {
|
|
|
|
|
date = DateUtils.parseDate(monthStr, new String[] { "yyyy-MM" });
|
|
|
|
|
} catch (ParseException e) {
|
|
|
|
|
throw new BadRequestException("Invalid month format");
|
|
|
|
|
}
|
|
|
|
|
return manageAppService.getOrgPrizeDetail(device, date);
|
|
|
|
|
}
|
|
|
|
|
// @RequestMapping(value = "/org_prize/{monthStr}", method = RequestMethod.GET)
|
|
|
|
|
// public List<JSONObject> getOrgPrizeDetail(@ModelAttribute(CommonConsts.MANAGER_DEVICE) JSONObject device,@PathVariable String monthStr) {
|
|
|
|
|
// Date date;
|
|
|
|
|
// try {
|
|
|
|
|
// date = DateUtils.parseDate(monthStr, new String[] { "yyyy-MM" });
|
|
|
|
|
// } catch (ParseException e) {
|
|
|
|
|
// throw new BadRequestException("Invalid month format");
|
|
|
|
|
// }
|
|
|
|
|
// return manageAppService.getOrgPrizeDetail(device, date);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/bd/kpi", method = RequestMethod.GET)
|
|
|
|
|
public JSONObject getBdConfigKpi(@ModelAttribute(CommonConsts.MANAGER_DEVICE) JSONObject device) {
|
|
|
|
|