智慧保安后台管理-外网项目备份
钟日健
2022-03-18 a762b18a2904bd4212de73d9a14221ef3d3915eb
人员,车辆定位任务修改
3 files modified
13 ■■■■ changed files
deploy/deploy.yml 2 ●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/equipage/controller/fixed.java 10 ●●●● patch | view | raw | blame | history
src/main/resources/application.yml 1 ●●●● patch | view | raw | blame | history
deploy/deploy.yml
@@ -25,7 +25,7 @@
      imagePullSecrets:
        - name: aliyun  #提前在项目下配置访问阿里云的账号密码
      containers:
        - image: registry.cn-hangzhou.aliyuncs.com/arsn/zhbaw:SNAPSHOT-8
        - image: registry.cn-hangzhou.aliyuncs.com/arsn/zhbaw:SNAPSHOT-1
#        - image: $REGISTRY/$DOCKERHUB_NAMESPACE/zhba:SNAPSHOT-$BUILD_NUMBER
          imagePullPolicy: Always
          name: zhbaw
src/main/java/org/springblade/modules/equipage/controller/fixed.java
@@ -24,7 +24,7 @@
import java.text.SimpleDateFormat;
import java.util.*;
@Component
@Component("fixed")
public class fixed {
    private static final DateFormat JSON = null;
    @Autowired
@@ -44,7 +44,7 @@
     * @return
     * @throws Exception
     */
    @Scheduled(cron = "0 */5 * * * ?")
//    @Scheduled(cron = "0 */5 * * * ?")
    public void Peo() throws Exception {
        String url = "http://47.104.104.46/api/client/getgis.php";
        //查询有押运人员的数据
@@ -140,7 +140,7 @@
     * @return
     * @throws Exception
     */
    @Scheduled(cron = "0 0 * * * ?")
//    @Scheduled(cron = "0 0 * * * ?")
    public void Peog() throws Exception {
        System.out.println("押运人员");
        String url = "http://47.104.104.46/api/client/getgistrack.php";
@@ -210,7 +210,7 @@
    /**
     * 车辆实时位置
     */
    @Scheduled(cron = "0 */5 * * * ?")
//    @Scheduled(cron = "0 */5 * * * ?")
    public void locationcar() {
        String url = "http://dvopenapi.aimap.net.cn/openapi/device/location";
        String res = null;
@@ -309,7 +309,7 @@
    /**
     * 查询车辆轨迹
     */
    @Scheduled(cron = "0 0 * * * ?")
//    @Scheduled(cron = "0 0 * * * ?")
    public void locationhistoryTrack() {
        Calendar calendar = Calendar.getInstance();
        /* HOUR_OF_DAY 指示一天中的小时 */
src/main/resources/application.yml
@@ -225,6 +225,7 @@
      - /blade-user/getNotUpdatePwdInfo
      - /attendance/AppSave
      - /electronRail/**
      - /scheduled/**
    #授权认证配置
    auth: