temp commit

master
luoyang 6 years ago
parent e4427468a9
commit 3c19d2ae93

@ -345,7 +345,11 @@ public class ManageAppServiceImp implements ManageAppService {
String clientType = device.getString("client_type");
manageDeviceSupport.findRegister(clientType);
JSONObject manager = managerMapper.findById(device.getString("manager_id"));
return financialPartnerCommissionMapper.getOrgPrizeList(manager.getString("org_id"));
List<JSONObject> orgPrizeList = financialPartnerCommissionMapper.getOrgPrizeList(manager.getString("org_id"));
for (JSONObject params : orgPrizeList) {
params.put("data", financialPartnerCommissionMapper.find(params.getIntValue("year"), params.getIntValue("month"), manager.getString("org_id")));
}
return orgPrizeList;
}
@Override

@ -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) {

Loading…
Cancel
Save