新增企业任务配置表,心跳表

cert
anthonywj 2 years ago
parent c039a6fa47
commit 27fddad1d3

@ -0,0 +1,12 @@
package com.glxp.api.controller.sup;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;
@RestController
@Slf4j
public class UserOnLineController {
}

@ -1,13 +1,16 @@
package com.glxp.api.controller.trace;
import cn.hutool.core.lang.UUID;
import com.alibaba.fastjson2.JSON;
import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.common.util.ResultVOUtils;
import com.glxp.api.config.rabbit.TopicRabbitConfig;
import com.glxp.api.entity.trace.MqTraceMessage;
import com.glxp.api.util.DateUtil;
import lombok.RequiredArgsConstructor;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

@ -0,0 +1,9 @@
package com.glxp.api.dao.sup;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.api.entity.sup.UserCompanyConfigEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface UserCompanyConfigMapper extends BaseMapper<UserCompanyConfigEntity> {
}

@ -0,0 +1,9 @@
package com.glxp.api.dao.sup;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.api.entity.sup.UserCompanyOnlineEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface UserCompanyOnlineMapper extends BaseMapper<UserCompanyOnlineEntity> {
}

@ -0,0 +1,31 @@
package com.glxp.api.entity.sup;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;
@Data
@TableName(value = "user_company_config")
public class UserCompanyConfigEntity implements Serializable {
@TableId(value = "id", type = IdType.INPUT)
private Integer id;
/**
* ID
*/
@TableField(value = "companyId")
private Long companyId;
/**
* (
*/
@TableField(value = "heartRate")
private Integer heartRate;
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,26 @@
package com.glxp.api.entity.sup;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
@Data
@TableName(value = "user_company_online")
public class UserCompanyOnlineEntity implements Serializable {
@TableId(value = "companyId", type = IdType.INPUT)
private Long companyId;
@TableField(value = "userId")
private Long userId;
@TableField(value = "updateTime")
private Date updateTime;
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,10 @@
package com.glxp.api.service.sup;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.api.dao.sup.UserCompanyConfigMapper;
import com.glxp.api.entity.sup.UserCompanyConfigEntity;
@Service
public class UserCompanyConfigService extends ServiceImpl<UserCompanyConfigMapper, UserCompanyConfigEntity> {
}

@ -0,0 +1,10 @@
package com.glxp.api.service.sup;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.api.dao.sup.UserCompanyOnlineMapper;
import com.glxp.api.entity.sup.UserCompanyOnlineEntity;
@Service
public class UserCompanyOnlineService extends ServiceImpl<UserCompanyOnlineMapper, UserCompanyOnlineEntity> {
}

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.api.dao.sup.UserCompanyConfigMapper">
</mapper>

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.api.dao.sup.UserCompanyOnlineMapper">
</mapper>
Loading…
Cancel
Save