|
@@ -2,16 +2,15 @@ package com.sky.ioc.controller.security;
|
|
|
|
|
|
import com.sky.ioc.entity.params.IocParam;
|
|
|
import com.sky.ioc.service.personnel.PersonnelService;
|
|
|
+import com.sky.ioc.service.security.SecurityPersonService;
|
|
|
import com.sky.ioc.service.security.SecurityService;
|
|
|
import com.sky.ioc.tool.ReturnMsg;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
|
* TODO
|
|
@@ -33,6 +32,9 @@ public class PersonController {
|
|
|
@Autowired
|
|
|
private SecurityService securityService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private SecurityPersonService securityPersonService;
|
|
|
+
|
|
|
@Autowired
|
|
|
private PersonnelService personnelService;
|
|
|
|
|
@@ -56,4 +58,11 @@ public class PersonController {
|
|
|
return personnelService.getPassengerFlow(iocParam);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("今日值班情况")
|
|
|
+ @PostMapping("/getDuty")
|
|
|
+ public ReturnMsg getDuty(@RequestParam(value = "type", required=true) Integer type){
|
|
|
+ return securityPersonService.getPersonList(type);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|