Commit 671a9325 authored by kiritoausna's avatar kiritoausna

2022-11.07

parent 38fcbe66
package me.zhengjie.gemho.entity.sys;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
*
* </p>
*
* @author llj
* @since 2022-07-20
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tab_devtype_extend")
@ApiModel(value="DevtypeExtend对象", description="")
public class DevtypeExtend implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
@ApiModelProperty(value = "城市全拼,如: 威海=weihai")
private String city_weather;
@ApiModelProperty(value = "监测项ID")
private Integer e_sumid;
}
package me.zhengjie.gemho.mapper.sys;
import me.zhengjie.gemho.entity.sys.DevtypeExtend;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import me.zhengjie.gemho.x_datavo.sys.DevtypeExtendVo;
import me.zhengjie.gemho.x_datavo.sys.MonitorvideoVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
/**
* <p>
* Mapper 接口
* </p>
*
* @author llj
* @since 2022-07-20
*/
public interface DevtypeExtendMapper extends BaseMapper<DevtypeExtend> {
@Select(value = "SELECT b.* FROM `sys_summary` a JOIN tab_devtype_extend b ON a.id = b.e_sumid where a.id = #{id}")
DevtypeExtendVo getBySumid(int id);
@Delete(value = "DELETE from tab_devtype_extend where e_sumid=#{id}")
int deletebyid(int id);
}
package me.zhengjie.gemho.service.sys;
import me.zhengjie.gemho.entity.sys.DevtypeExtend;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author llj
* @since 2022-07-20
*/
public interface IDevtypeExtendService extends IService<DevtypeExtend> {
}
package me.zhengjie.gemho.servicesys.impl;
import me.zhengjie.gemho.entity.sys.DevtypeExtend;
import me.zhengjie.gemho.mapper.sys.DevtypeExtendMapper;
import me.zhengjie.gemho.service.sys.IDevtypeExtendService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author llj
* @since 2022-07-20
*/
@Service
public class DevtypeExtendServiceImpl extends ServiceImpl<DevtypeExtendMapper, DevtypeExtend> implements IDevtypeExtendService {
}
<?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="me.zhengjie.gemho.mapper.sys.DevtypeExtendMapper">
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment