| | |
| | | import com.doumee.service.system.SystemDictDataService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.apache.shiro.mgt.DefaultSecurityManager; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | * @date 2023/11/30 15:33 |
| | | */ |
| | | @Api(tags = "交控中心客户定时器") |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/timer/jkCustomer") |
| | | public class JkCustomerTimerController extends BaseController { |
| | |
| | | @ApiOperation("更新交控中心客户经纬度信息") |
| | | @PostMapping("/getCustomerLocationInfo") |
| | | public ApiResponse getCustomerLocationInfo() { |
| | | log.info("定时任务执行开始:getCustomerLocationInfo-更新客户经纬度"); |
| | | DefaultSecurityManager securityManager = new DefaultSecurityManager(); |
| | | SecurityUtils.setSecurityManager(securityManager); |
| | | jkCustomerService.checkNullLocation(); |