装置分辨率功能
parent
64cf4d6f1d
commit
d7f0900a83
@ -0,0 +1,16 @@
|
||||
package com.shxy.xymanager_common.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class Resolution implements Serializable {
|
||||
|
||||
private Integer id;
|
||||
|
||||
private String name;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package com.shxy.xymanager_common.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 分辨率返回对象
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "分辨率返回对象", description = "分辨率返回对象")
|
||||
public class ResolutionModel implements Serializable {
|
||||
@ApiModelProperty(value = "分辨率列表", example = "[]")
|
||||
private List<ResolutionBean> list;
|
||||
|
||||
@Data
|
||||
public static class ResolutionBean {
|
||||
|
||||
@ApiModelProperty(value = "编号", example = "120")
|
||||
private Integer id;
|
||||
@ApiModelProperty(value = "名称编号", example = "120")
|
||||
private String name;
|
||||
|
||||
}
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package com.shxy.xymanager_dao.dao;
|
||||
|
||||
import com.shxy.xymanager_common.entity.Resolution;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface TerminalResolutionDao {
|
||||
|
||||
List<Resolution> selectAllList();
|
||||
|
||||
int insert(Resolution record);
|
||||
|
||||
int insertSelective(Resolution record);
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
<?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.shxy.xymanager_dao.dao.TerminalResolutionDao">
|
||||
<resultMap id="BaseResultMap" type="com.shxy.xymanager_common.entity.Resolution">
|
||||
<result column="id" jdbcType="INTEGER" property="id"/>
|
||||
<result column="name" jdbcType="VARCHAR" property="name"/>
|
||||
</resultMap>
|
||||
<select id="selectAllList" resultMap="BaseResultMap">
|
||||
select
|
||||
id,name
|
||||
from resolution
|
||||
</select>
|
||||
<insert id="insert" parameterType="com.shxy.xymanager_common.entity.Resolution">
|
||||
insert into resolution (id, name)
|
||||
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.Resolution">
|
||||
insert into resolution
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
</mapper>
|
Loading…
Reference in New Issue