|
|
@@ -44,8 +44,8 @@ public class TurnoverController {
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/substitute", method = RequestMethod.GET)
|
|
|
- public List<Turnover> findSubstitute() {
|
|
|
- return turnoverService.findSubstitute();
|
|
|
+ public String findSubstitute() throws UnsupportedEncodingException {
|
|
|
+ return URLEncoder.encode(turnoverService.findSubstitute().toString(), Consts.UTF_8.toString());
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -66,7 +66,7 @@ public class TurnoverController {
|
|
|
*/
|
|
|
@RequestMapping(value = "/substitute/monthly", method = RequestMethod.GET)
|
|
|
public String findSubstituteMonthly() throws UnsupportedEncodingException {
|
|
|
- return URLEncoder.encode(turnoverService.findSubstituteMonthly().toString(), Consts.UTF_8.toString());
|
|
|
+ return URLEncoder.encode(turnoverService.findSubstituteMonthly().toString(), Consts.UTF_8.toString());
|
|
|
}
|
|
|
|
|
|
/**
|