zhitong.yu
7 天以前 7fc9c42987a13c1d8d2159591a5803e70518827f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.hxzk.gps.util.UDP;
 
import com.hxzk.gps.entity.Department.TbDepartment;
import com.hxzk.gps.entity.Gather.TbPergather;
import com.hxzk.gps.service.System.TbSystemOperationLogService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
 
public class UDP_Gather {
    private static final Logger log = LoggerFactory.getLogger(TbSystemOperationLogService.class);
 
    /*
     * 修改聚集围栏
     * */
    public static void UpGather(TbPergather pergather) {
        String xieyi = "BSTOCS1,ALTERGATHER," + pergather.getName() + "," + pergather.getPernum() + ","+pergather.getTypec2() + ","+pergather.getRedius()+","+pergather.getShichang()+","+pergather.getWeixianpin()+",END";
        Udp_Out.udp_to_cs(xieyi);
        log.info("发送UDP消息到CS端:" + xieyi);
    }
}