test:(电子围栏组和电子围栏)
parent
bacd7f18da
commit
ced68c06c0
|
@ -0,0 +1,33 @@
|
|||
package com.muyu.domain;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/** 电字围栏组
|
||||
* @ClassDescription:
|
||||
* @JdkVersion: 17
|
||||
* @Author: zhangxu
|
||||
* @Created: 2024/5/31 15:16
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class FenceGroups extends BaseEntity {
|
||||
/**
|
||||
*属性组id
|
||||
* */
|
||||
private Long id;
|
||||
/**
|
||||
*属性组名称
|
||||
* */
|
||||
private String groupName;
|
||||
/**
|
||||
*电子围栏集合
|
||||
* */
|
||||
private List<Fences> fencesList;
|
||||
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
package com.muyu.domain;
|
||||
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import org.apache.naming.factory.BeanFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
/** 电子围栏
|
||||
* @ClassDescription:
|
||||
* @JdkVersion: 17
|
||||
* @Author: zhangxu
|
||||
* @Created: 2024/5/31 15:11
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
public class Fences extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*围栏id
|
||||
* **/
|
||||
private Long id;
|
||||
/**
|
||||
*围栏组id
|
||||
*
|
||||
* **/
|
||||
private String groupId;
|
||||
/**
|
||||
*电子围栏名称
|
||||
*
|
||||
* **/
|
||||
private String fenceName;
|
||||
/**
|
||||
*
|
||||
*围栏类型 :原型 多边
|
||||
* **/
|
||||
private String fenceType;
|
||||
/**
|
||||
*
|
||||
*半径
|
||||
* **/
|
||||
private Double radius;
|
||||
/**
|
||||
* 驶入 驶出
|
||||
*
|
||||
* **/
|
||||
private String eventType;
|
||||
/**
|
||||
*围栏状态
|
||||
*
|
||||
* **/
|
||||
private String staut;
|
||||
/**
|
||||
*坐标
|
||||
*
|
||||
* **/
|
||||
private String polygonPoints;
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
package com.muyu.networking.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.domain.Fences;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @ClassDescription:
|
||||
* @JdkVersion: 17
|
||||
* @Author: zhangxu
|
||||
* @Created: 2024/5/31 16:21
|
||||
*/
|
||||
@Mapper
|
||||
public interface FenceMapper extends BaseMapper<Fences> {
|
||||
|
||||
int addFeace(Fences fences);
|
||||
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
package com.muyu.networking.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.domain.Fences;
|
||||
|
||||
/**
|
||||
* @ClassDescription:
|
||||
* @JdkVersion: 17
|
||||
* @Author: zhangxu
|
||||
* @Created: 2024/5/31 16:22
|
||||
*/
|
||||
public interface FenceService extends IService<Fences> {
|
||||
|
||||
int insertFence(Fences fences);
|
||||
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
package com.muyu.networking.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.domain.Information;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -11,7 +12,7 @@ import java.util.List;
|
|||
* @author ruoyi
|
||||
* @date 2024-05-27
|
||||
*/
|
||||
public interface IInformationService
|
||||
public interface IInformationService extends IService<Information>
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
package com.muyu.networking.service.impl;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.domain.Fences;
|
||||
import com.muyu.networking.mapper.FenceMapper;
|
||||
import com.muyu.networking.service.FenceService;
|
||||
import org.apache.http.HttpEntity;
|
||||
import org.apache.http.client.methods.CloseableHttpResponse;
|
||||
import org.apache.http.client.methods.HttpPost;
|
||||
import org.apache.http.entity.StringEntity;
|
||||
import org.apache.http.impl.client.CloseableHttpClient;
|
||||
import org.apache.http.impl.client.HttpClients;
|
||||
import org.apache.http.util.EntityUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @ClassDescription:
|
||||
* @JdkVersion: 17
|
||||
* @Author: zhangxu
|
||||
* @Created: 2024/5/31 16:23
|
||||
*/
|
||||
public class FenceServiceImpl extends ServiceImpl<FenceMapper, Fences> implements FenceService {
|
||||
|
||||
|
||||
@Override
|
||||
public int insertFence(Fences fences) {
|
||||
return 0;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue