|
@@ -188,10 +188,12 @@ public class OutputController {
|
|
|
@CrossOrigin(origins = "*", maxAge = 3600)
|
|
|
public R dayilyList(@RequestParam(value = "tid",required = true)Integer tid,
|
|
|
@RequestParam(value = "wpid",required = false)String wpid,
|
|
|
- @RequestParam(value = "date",required = false)String date){
|
|
|
- List<Object> resultList = outputService.dayilyList(tid,wpid,date);
|
|
|
+ @RequestParam(value = "date",required = false)String date,
|
|
|
+ @RequestParam(value = "wt1",required = false)String wt1,
|
|
|
+ @RequestParam(value = "wt2",required = false)String wt2){
|
|
|
+ List<Object> resultList = outputService.dayilyList(tid,wpid,date,wt1,wt2);
|
|
|
if (StringUtils.isNotNull(resultList)) {
|
|
|
- return R.ok().data(resultList);
|
|
|
+ return R.ok((long) resultList.size()).data(resultList);
|
|
|
}else{
|
|
|
return R.error().message("访问失败");
|
|
|
}
|
|
@@ -206,10 +208,12 @@ public class OutputController {
|
|
|
@CrossOrigin(origins = "*", maxAge = 3600)
|
|
|
public R monthlyList(@RequestParam(value = "tid",required = true)Integer tid,
|
|
|
@RequestParam(value = "wpid",required = false)String wpid,
|
|
|
- @RequestParam(value = "date",required = false)String date){
|
|
|
- List<Object> resultList = outputService.monthlyList(tid,wpid,date);
|
|
|
+ @RequestParam(value = "date",required = false)String date,
|
|
|
+ @RequestParam(value = "wt1",required = false)String wt1,
|
|
|
+ @RequestParam(value = "wt2",required = false)String wt2){
|
|
|
+ List<Object> resultList = outputService.monthlyList(tid,wpid,date,wt1,wt2);
|
|
|
if (StringUtils.isNotNull(resultList)) {
|
|
|
- return R.ok().data(resultList);
|
|
|
+ return R.ok((long) resultList.size()).data(resultList);
|
|
|
}else{
|
|
|
return R.error().message("访问失败");
|
|
|
}
|
|
@@ -223,10 +227,12 @@ public class OutputController {
|
|
|
@CrossOrigin(origins = "*", maxAge = 3600)
|
|
|
public R yearlyList(@RequestParam(value = "tid",required = true)Integer tid,
|
|
|
@RequestParam(value = "wpid",required = false)String wpid,
|
|
|
- @RequestParam(value = "date",required = false)String date){
|
|
|
- List<Object> resultList = outputService.yearlyList(tid,wpid,date);
|
|
|
+ @RequestParam(value = "date",required = false)String date,
|
|
|
+ @RequestParam(value = "wt1",required = false)String wt1,
|
|
|
+ @RequestParam(value = "wt2",required = false)String wt2){
|
|
|
+ List<Object> resultList = outputService.yearlyList(tid,wpid,date,wt1,wt2);
|
|
|
if (StringUtils.isNotNull(resultList)) {
|
|
|
- return R.ok().data(resultList);
|
|
|
+ return R.ok((long) resultList.size()).data(resultList);
|
|
|
}else{
|
|
|
return R.error().message("访问失败");
|
|
|
}
|