成绩管理-接口增加systemid

hehai
jiakun.lin 4 years ago
parent 2bc3217070
commit 30566635a2
  1. 1
      src/main/java/com/msdw/tms/api/AchievementManagementApi.java
  2. 4
      src/main/java/com/msdw/tms/controller/AchievementManagementController.java

@ -35,6 +35,7 @@ public interface AchievementManagementApi {
@RequestParam(value = "开始时间", required = false) String startTime,
@RequestParam(value = "结束时间", required = false) String endTime,
@RequestParam(value = "月份", required = false) Integer month,
@RequestParam(value = "系统",required = true) Integer systemId,
@RequestParam(value = "页码", required = true) Integer page,
@RequestParam(value = "页数大小", required = true) Integer size);

@ -108,6 +108,7 @@ public class AchievementManagementController implements AchievementManagementApi
@RequestParam(required = false) String startTime,
@RequestParam(required = false) String endTime,
@RequestParam(required = false) Integer month,
@RequestParam(required = true) Integer systemId,
@RequestParam(required = true) Integer page,
@RequestParam(required = true) Integer size) {
ResultsVo vo = new ResultsVo();
@ -125,6 +126,9 @@ public class AchievementManagementController implements AchievementManagementApi
if (endTime != null) {
vo.setEndTime(endTime);
}
if (systemId != null){
vo.setSystemId(systemId);
}
PageInfo<ResultsEntity> result = service.newList(vo, page, size);
return R.ok().put("data", result);
}

Loading…
Cancel
Save