权限接口修改

dev
liuguijing 1 year ago
parent bc22efb746
commit ddf9568f31

@ -1,24 +0,0 @@
package com.shxy.xymanager_common.entity;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
@Data
public class DyLevelBak implements Serializable {
private Integer id;
private String name;
private Integer dyValue;
private Integer status;
private Date createTime;
private Date updateTime;
private static final long serialVersionUID = 1L;
}

@ -1,28 +0,0 @@
package com.shxy.xymanager_common.entity;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
@Data
public class LinesBak implements Serializable {
private Integer id;
private String name;
private String bsManufacturer;
private Integer dyLevelId;
private Integer status;
private Date createTime;
private Date updateTime;
private Float tes;
private static final long serialVersionUID = 1L;
}

@ -1,258 +0,0 @@
package com.shxy.xymanager_common.entity;
import java.io.Serializable;
import java.util.Date;
public class TerminalsBak implements Serializable {
private Integer id;
private Integer lineId;
private Integer towerId;
private String cmdid;
private Integer status;
private Short orgId;
private String equipName;
private String displayName;
private String model;
private String essentialInfoVersion;
private Byte hasPan;
private String bsManufacturer;
private Date bsProductionDate;
private String bsIdentifier;
private Double latitude;
private Double longitude;
private Date createTime;
private Date updateTime;
private String sim;
private Date workingDate;
private Integer netType;
private Integer isfavor;
private Integer protocol;
private String phase;
private String equipmentType;
private static final long serialVersionUID = 1L;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getLineId() {
return lineId;
}
public void setLineId(Integer lineId) {
this.lineId = lineId;
}
public Integer getTowerId() {
return towerId;
}
public void setTowerId(Integer towerId) {
this.towerId = towerId;
}
public String getCmdid() {
return cmdid;
}
public void setCmdid(String cmdid) {
this.cmdid = cmdid == null ? null : cmdid.trim();
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Short getOrgId() {
return orgId;
}
public void setOrgId(Short orgId) {
this.orgId = orgId;
}
public String getEquipName() {
return equipName;
}
public void setEquipName(String equipName) {
this.equipName = equipName == null ? null : equipName.trim();
}
public String getDisplayName() {
return displayName;
}
public void setDisplayName(String displayName) {
this.displayName = displayName == null ? null : displayName.trim();
}
public String getModel() {
return model;
}
public void setModel(String model) {
this.model = model == null ? null : model.trim();
}
public String getEssentialInfoVersion() {
return essentialInfoVersion;
}
public void setEssentialInfoVersion(String essentialInfoVersion) {
this.essentialInfoVersion = essentialInfoVersion == null ? null : essentialInfoVersion.trim();
}
public Byte getHasPan() {
return hasPan;
}
public void setHasPan(Byte hasPan) {
this.hasPan = hasPan;
}
public String getBsManufacturer() {
return bsManufacturer;
}
public void setBsManufacturer(String bsManufacturer) {
this.bsManufacturer = bsManufacturer == null ? null : bsManufacturer.trim();
}
public Date getBsProductionDate() {
return bsProductionDate;
}
public void setBsProductionDate(Date bsProductionDate) {
this.bsProductionDate = bsProductionDate;
}
public String getBsIdentifier() {
return bsIdentifier;
}
public void setBsIdentifier(String bsIdentifier) {
this.bsIdentifier = bsIdentifier == null ? null : bsIdentifier.trim();
}
public Double getLatitude() {
return latitude;
}
public void setLatitude(Double latitude) {
this.latitude = latitude;
}
public Double getLongitude() {
return longitude;
}
public void setLongitude(Double longitude) {
this.longitude = longitude;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public String getSim() {
return sim;
}
public void setSim(String sim) {
this.sim = sim == null ? null : sim.trim();
}
public Date getWorkingDate() {
return workingDate;
}
public void setWorkingDate(Date workingDate) {
this.workingDate = workingDate;
}
public Integer getNetType() {
return netType;
}
public void setNetType(Integer netType) {
this.netType = netType;
}
public Integer getIsfavor() {
return isfavor;
}
public void setIsfavor(Integer isfavor) {
this.isfavor = isfavor;
}
public Integer getProtocol() {
return protocol;
}
public void setProtocol(Integer protocol) {
this.protocol = protocol;
}
public String getPhase() {
return phase;
}
public void setPhase(String phase) {
this.phase = phase == null ? null : phase.trim();
}
public String getEquipmentType() {
return equipmentType;
}
public void setEquipmentType(String equipmentType) {
this.equipmentType = equipmentType == null ? null : equipmentType.trim();
}
}

@ -1,88 +0,0 @@
package com.shxy.xymanager_common.entity;
import java.io.Serializable;
import java.util.Date;
public class TowersBak implements Serializable {
private Integer id;
private String name;
private Integer lineId;
private Date createTime;
private Date updateTime;
private Integer status;
private Integer order;
private String address;
private static final long serialVersionUID = 1L;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
public Integer getLineId() {
return lineId;
}
public void setLineId(Integer lineId) {
this.lineId = lineId;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Integer getOrder() {
return order;
}
public void setOrder(Integer order) {
this.order = order;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address == null ? null : address.trim();
}
}

@ -1,31 +0,0 @@
package com.shxy.xymanager_dao.dao;
import com.shxy.xymanager_common.entity.DyLevel;
import com.shxy.xymanager_common.entity.DyLevelBak;
import com.shxy.xymanager_common.entity.DyLevelExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface DyLevelBakDao {
long countByExample(DyLevelExample example);
int deleteByExample(DyLevelExample example);
int deleteByPrimaryKey(Integer id);
int insert(DyLevelBak record);
int insertSelective(DyLevel record);
List<DyLevelBak> selectByExample(DyLevelExample example);
DyLevelBak selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") DyLevel record, @Param("example") DyLevelExample example);
int updateByExample(@Param("record") DyLevel record, @Param("example") DyLevelExample example);
int updateByPrimaryKeySelective(DyLevelBak record);
int updateByPrimaryKey(DyLevelBak record);
}

@ -5,7 +5,6 @@ import com.shxy.xymanager_common.dto.DyLineAndTerminalNoHeartDto;
import com.shxy.xymanager_common.dto.DyLineAndTerminalWithHeartDto;
import com.shxy.xymanager_common.dto.DyLineAndTowertDto;
import com.shxy.xymanager_common.entity.DyLevel;
import com.shxy.xymanager_common.entity.DyLevelBak;
import com.shxy.xymanager_common.entity.DyLevelExample;
import org.apache.ibatis.annotations.Param;

@ -1,30 +0,0 @@
package com.shxy.xymanager_dao.dao;
import com.shxy.xymanager_common.entity.LinesBak;
import com.shxy.xymanager_common.entity.LinesExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface LinesBakDao {
long countByExample(LinesExample example);
int deleteByExample(LinesExample example);
int deleteByPrimaryKey(Integer id);
int insert(LinesBak record);
int insertSelective(LinesBak record);
List<LinesBak> selectByExample(LinesExample example);
LinesBak selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") LinesBak record, @Param("example") LinesExample example);
int updateByExample(@Param("record") LinesBak record, @Param("example") LinesExample example);
int updateByPrimaryKeySelective(LinesBak record);
int updateByPrimaryKey(LinesBak record);
}

@ -1,30 +0,0 @@
package com.shxy.xymanager_dao.dao;
import com.shxy.xymanager_common.entity.TerminalsBak;
import com.shxy.xymanager_common.entity.TerminalsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TerminalsBakDao {
long countByExample(TerminalsExample example);
int deleteByExample(TerminalsExample example);
int deleteByPrimaryKey(Integer id);
int insert(TerminalsBak record);
int insertSelective(TerminalsBak record);
List<TerminalsBak> selectByExample(TerminalsExample example);
TerminalsBak selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TerminalsBak record, @Param("example") TerminalsExample example);
int updateByExample(@Param("record") TerminalsBak record, @Param("example") TerminalsExample example);
int updateByPrimaryKeySelective(TerminalsBak record);
int updateByPrimaryKey(TerminalsBak record);
}

@ -1,30 +0,0 @@
package com.shxy.xymanager_dao.dao;
import com.shxy.xymanager_common.entity.TowersBak;
import com.shxy.xymanager_common.entity.TowersExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TowersBakDao {
long countByExample(TowersExample example);
int deleteByExample(TowersExample example);
int deleteByPrimaryKey(Integer id);
int insert(TowersBak record);
int insertSelective(TowersBak record);
List<TowersBak> selectByExample(TowersExample example);
TowersBak selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TowersBak record, @Param("example") TowersExample example);
int updateByExample(@Param("record") TowersBak record, @Param("example") TowersExample example);
int updateByPrimaryKeySelective(TowersBak record);
int updateByPrimaryKey(TowersBak record);
}

@ -1,228 +0,0 @@
<?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.DyLevelBakDao">
<resultMap id="BaseResultMap" type="com.shxy.xymanager_common.entity.DyLevelBak">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="dy_value" jdbcType="INTEGER" property="dyValue" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, dy_value, status, create_time, update_time
</sql>
<select id="selectByExample" parameterType="com.shxy.xymanager_common.entity.DyLevelExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from dy_level
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from dy_level
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from dy_level
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.shxy.xymanager_common.entity.DyLevelExample">
delete from dy_level
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.shxy.xymanager_common.entity.DyLevel">
insert into dy_level (id, name, dy_value,
status, create_time, update_time
)
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{dyValue,jdbcType=INTEGER},
#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.DyLevel">
insert into dy_level
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null">
name,
</if>
<if test="dyValue != null">
dy_value,
</if>
<if test="status != null">
status,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="dyValue != null">
#{dyValue,jdbcType=INTEGER},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.shxy.xymanager_common.entity.DyLevelExample" resultType="java.lang.Long">
select count(*) from dy_level
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update dy_level
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.dyValue != null">
dy_value = #{record.dyValue,jdbcType=INTEGER},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update dy_level
set id = #{record.id,jdbcType=INTEGER},
name = #{record.name,jdbcType=VARCHAR},
dy_value = #{record.dyValue,jdbcType=INTEGER},
status = #{record.status,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.shxy.xymanager_common.entity.DyLevel">
update dy_level
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="dyValue != null">
dy_value = #{dyValue,jdbcType=INTEGER},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.shxy.xymanager_common.entity.DyLevel">
update dy_level
set name = #{name,jdbcType=VARCHAR},
dy_value = #{dyValue,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

@ -1,244 +0,0 @@
<?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.LinesBakDao">
<resultMap id="BaseResultMap" type="com.shxy.xymanager_common.entity.LinesBak">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="bs_manufacturer" jdbcType="VARCHAR" property="bsManufacturer" />
<result column="dy_level_id" jdbcType="INTEGER" property="dyLevelId" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, bs_manufacturer, dy_level_id, status, create_time, update_time
</sql>
<select id="selectByExample" parameterType="com.shxy.xymanager_common.entity.LinesExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from lines
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from lines
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from lines
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.shxy.xymanager_common.entity.LinesExample">
delete from lines
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.shxy.xymanager_common.entity.LinesBak">
insert into lines (id, name, bs_manufacturer,
dy_level_id, status, create_time,
update_time)
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{bsManufacturer,jdbcType=VARCHAR},
#{dyLevelId,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.LinesBak">
insert into lines
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null">
name,
</if>
<if test="bsManufacturer != null">
bs_manufacturer,
</if>
<if test="dyLevelId != null">
dy_level_id,
</if>
<if test="status != null">
status,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="bsManufacturer != null">
#{bsManufacturer,jdbcType=VARCHAR},
</if>
<if test="dyLevelId != null">
#{dyLevelId,jdbcType=INTEGER},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.shxy.xymanager_common.entity.LinesExample" resultType="java.lang.Long">
select count(*) from lines
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update lines
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.bsManufacturer != null">
bs_manufacturer = #{record.bsManufacturer,jdbcType=VARCHAR},
</if>
<if test="record.dyLevelId != null">
dy_level_id = #{record.dyLevelId,jdbcType=INTEGER},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update lines
set id = #{record.id,jdbcType=INTEGER},
name = #{record.name,jdbcType=VARCHAR},
bs_manufacturer = #{record.bsManufacturer,jdbcType=VARCHAR},
dy_level_id = #{record.dyLevelId,jdbcType=INTEGER},
status = #{record.status,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.shxy.xymanager_common.entity.LinesBak">
update lines
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="bsManufacturer != null">
bs_manufacturer = #{bsManufacturer,jdbcType=VARCHAR},
</if>
<if test="dyLevelId != null">
dy_level_id = #{dyLevelId,jdbcType=INTEGER},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.shxy.xymanager_common.entity.LinesBak">
update lines
set name = #{name,jdbcType=VARCHAR},
bs_manufacturer = #{bsManufacturer,jdbcType=VARCHAR},
dy_level_id = #{dyLevelId,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

@ -1,466 +0,0 @@
<?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.TerminalsBakDao">
<resultMap id="BaseResultMap" type="com.shxy.xymanager_common.entity.TerminalsBak">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="line_id" jdbcType="INTEGER" property="lineId" />
<result column="tower_id" jdbcType="INTEGER" property="towerId" />
<result column="cmdid" jdbcType="VARCHAR" property="cmdid" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="org_id" jdbcType="SMALLINT" property="orgId" />
<result column="iccid" jdbcType="VARCHAR" property="iccid" />
<result column="protocol" jdbcType="INTEGER" property="protocol" />
<result column="cellphone" jdbcType="VARCHAR" property="cellphone" />
<result column="equip_name" jdbcType="VARCHAR" property="equipName" />
<result column="display_name" jdbcType="VARCHAR" property="displayName" />
<result column="model" jdbcType="VARCHAR" property="model" />
<result column="essential_info_version" jdbcType="VARCHAR" property="essentialInfoVersion" />
<result column="has_pan" jdbcType="TINYINT" property="hasPan" />
<result column="bs_manufacturer" jdbcType="VARCHAR" property="bsManufacturer" />
<result column="bs_production_date" jdbcType="DATE" property="bsProductionDate" />
<result column="bs_identifier" jdbcType="VARCHAR" property="bsIdentifier" />
<result column="latitude" jdbcType="DOUBLE" property="latitude" />
<result column="longitude" jdbcType="DOUBLE" property="longitude" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, line_id, tower_id, cmdid, status, org_id, iccid, protocol, cellphone, equip_name,
display_name, model, essential_info_version, has_pan, bs_manufacturer, bs_production_date,
bs_identifier, latitude, longitude, create_time, update_time
</sql>
<select id="selectByExample" parameterType="com.shxy.xymanager_common.entity.TerminalsExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from terminals
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from terminals
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from terminals
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.shxy.xymanager_common.entity.TerminalsExample">
delete from terminals
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.shxy.xymanager_common.entity.TerminalsBak">
insert into terminals (id, line_id, tower_id,
cmdid, status, org_id,
iccid, protocol, cellphone,
equip_name, display_name, model,
essential_info_version, has_pan, bs_manufacturer,
bs_production_date, bs_identifier, latitude,
longitude, create_time, update_time
)
values (#{id,jdbcType=INTEGER}, #{lineId,jdbcType=INTEGER}, #{towerId,jdbcType=INTEGER},
#{cmdid,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{orgId,jdbcType=SMALLINT},
#{iccid,jdbcType=VARCHAR}, #{protocol,jdbcType=INTEGER}, #{cellphone,jdbcType=VARCHAR},
#{equipName,jdbcType=VARCHAR}, #{displayName,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR},
#{essentialInfoVersion,jdbcType=VARCHAR}, #{hasPan,jdbcType=TINYINT}, #{bsManufacturer,jdbcType=VARCHAR},
#{bsProductionDate,jdbcType=DATE}, #{bsIdentifier,jdbcType=VARCHAR}, #{latitude,jdbcType=DOUBLE},
#{longitude,jdbcType=DOUBLE}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.TerminalsBak">
insert into terminals
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="lineId != null">
line_id,
</if>
<if test="towerId != null">
tower_id,
</if>
<if test="cmdid != null">
cmdid,
</if>
<if test="status != null">
status,
</if>
<if test="orgId != null">
org_id,
</if>
<if test="iccid != null">
iccid,
</if>
<if test="protocol != null">
protocol,
</if>
<if test="cellphone != null">
cellphone,
</if>
<if test="equipName != null">
equip_name,
</if>
<if test="displayName != null">
display_name,
</if>
<if test="model != null">
model,
</if>
<if test="essentialInfoVersion != null">
essential_info_version,
</if>
<if test="hasPan != null">
has_pan,
</if>
<if test="bsManufacturer != null">
bs_manufacturer,
</if>
<if test="bsProductionDate != null">
bs_production_date,
</if>
<if test="bsIdentifier != null">
bs_identifier,
</if>
<if test="latitude != null">
latitude,
</if>
<if test="longitude != null">
longitude,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="lineId != null">
#{lineId,jdbcType=INTEGER},
</if>
<if test="towerId != null">
#{towerId,jdbcType=INTEGER},
</if>
<if test="cmdid != null">
#{cmdid,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="orgId != null">
#{orgId,jdbcType=SMALLINT},
</if>
<if test="iccid != null">
#{iccid,jdbcType=VARCHAR},
</if>
<if test="protocol != null">
#{protocol,jdbcType=INTEGER},
</if>
<if test="cellphone != null">
#{cellphone,jdbcType=VARCHAR},
</if>
<if test="equipName != null">
#{equipName,jdbcType=VARCHAR},
</if>
<if test="displayName != null">
#{displayName,jdbcType=VARCHAR},
</if>
<if test="model != null">
#{model,jdbcType=VARCHAR},
</if>
<if test="essentialInfoVersion != null">
#{essentialInfoVersion,jdbcType=VARCHAR},
</if>
<if test="hasPan != null">
#{hasPan,jdbcType=TINYINT},
</if>
<if test="bsManufacturer != null">
#{bsManufacturer,jdbcType=VARCHAR},
</if>
<if test="bsProductionDate != null">
#{bsProductionDate,jdbcType=DATE},
</if>
<if test="bsIdentifier != null">
#{bsIdentifier,jdbcType=VARCHAR},
</if>
<if test="latitude != null">
#{latitude,jdbcType=DOUBLE},
</if>
<if test="longitude != null">
#{longitude,jdbcType=DOUBLE},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.shxy.xymanager_common.entity.TerminalsExample" resultType="java.lang.Long">
select count(*) from terminals
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update terminals
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.lineId != null">
line_id = #{record.lineId,jdbcType=INTEGER},
</if>
<if test="record.towerId != null">
tower_id = #{record.towerId,jdbcType=INTEGER},
</if>
<if test="record.cmdid != null">
cmdid = #{record.cmdid,jdbcType=VARCHAR},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=INTEGER},
</if>
<if test="record.orgId != null">
org_id = #{record.orgId,jdbcType=SMALLINT},
</if>
<if test="record.iccid != null">
iccid = #{record.iccid,jdbcType=VARCHAR},
</if>
<if test="record.protocol != null">
protocol = #{record.protocol,jdbcType=INTEGER},
</if>
<if test="record.cellphone != null">
cellphone = #{record.cellphone,jdbcType=VARCHAR},
</if>
<if test="record.equipName != null">
equip_name = #{record.equipName,jdbcType=VARCHAR},
</if>
<if test="record.displayName != null">
display_name = #{record.displayName,jdbcType=VARCHAR},
</if>
<if test="record.model != null">
model = #{record.model,jdbcType=VARCHAR},
</if>
<if test="record.essentialInfoVersion != null">
essential_info_version = #{record.essentialInfoVersion,jdbcType=VARCHAR},
</if>
<if test="record.hasPan != null">
has_pan = #{record.hasPan,jdbcType=TINYINT},
</if>
<if test="record.bsManufacturer != null">
bs_manufacturer = #{record.bsManufacturer,jdbcType=VARCHAR},
</if>
<if test="record.bsProductionDate != null">
bs_production_date = #{record.bsProductionDate,jdbcType=DATE},
</if>
<if test="record.bsIdentifier != null">
bs_identifier = #{record.bsIdentifier,jdbcType=VARCHAR},
</if>
<if test="record.latitude != null">
latitude = #{record.latitude,jdbcType=DOUBLE},
</if>
<if test="record.longitude != null">
longitude = #{record.longitude,jdbcType=DOUBLE},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update terminals
set id = #{record.id,jdbcType=INTEGER},
line_id = #{record.lineId,jdbcType=INTEGER},
tower_id = #{record.towerId,jdbcType=INTEGER},
cmdid = #{record.cmdid,jdbcType=VARCHAR},
status = #{record.status,jdbcType=INTEGER},
org_id = #{record.orgId,jdbcType=SMALLINT},
iccid = #{record.iccid,jdbcType=VARCHAR},
protocol = #{record.protocol,jdbcType=INTEGER},
cellphone = #{record.cellphone,jdbcType=VARCHAR},
equip_name = #{record.equipName,jdbcType=VARCHAR},
display_name = #{record.displayName,jdbcType=VARCHAR},
model = #{record.model,jdbcType=VARCHAR},
essential_info_version = #{record.essentialInfoVersion,jdbcType=VARCHAR},
has_pan = #{record.hasPan,jdbcType=TINYINT},
bs_manufacturer = #{record.bsManufacturer,jdbcType=VARCHAR},
bs_production_date = #{record.bsProductionDate,jdbcType=DATE},
bs_identifier = #{record.bsIdentifier,jdbcType=VARCHAR},
latitude = #{record.latitude,jdbcType=DOUBLE},
longitude = #{record.longitude,jdbcType=DOUBLE},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.shxy.xymanager_common.entity.TerminalsBak">
update terminals
<set>
<if test="lineId != null">
line_id = #{lineId,jdbcType=INTEGER},
</if>
<if test="towerId != null">
tower_id = #{towerId,jdbcType=INTEGER},
</if>
<if test="cmdid != null">
cmdid = #{cmdid,jdbcType=VARCHAR},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="orgId != null">
org_id = #{orgId,jdbcType=SMALLINT},
</if>
<if test="iccid != null">
iccid = #{iccid,jdbcType=VARCHAR},
</if>
<if test="protocol != null">
protocol = #{protocol,jdbcType=INTEGER},
</if>
<if test="cellphone != null">
cellphone = #{cellphone,jdbcType=VARCHAR},
</if>
<if test="equipName != null">
equip_name = #{equipName,jdbcType=VARCHAR},
</if>
<if test="displayName != null">
display_name = #{displayName,jdbcType=VARCHAR},
</if>
<if test="model != null">
model = #{model,jdbcType=VARCHAR},
</if>
<if test="essentialInfoVersion != null">
essential_info_version = #{essentialInfoVersion,jdbcType=VARCHAR},
</if>
<if test="hasPan != null">
has_pan = #{hasPan,jdbcType=TINYINT},
</if>
<if test="bsManufacturer != null">
bs_manufacturer = #{bsManufacturer,jdbcType=VARCHAR},
</if>
<if test="bsProductionDate != null">
bs_production_date = #{bsProductionDate,jdbcType=DATE},
</if>
<if test="bsIdentifier != null">
bs_identifier = #{bsIdentifier,jdbcType=VARCHAR},
</if>
<if test="latitude != null">
latitude = #{latitude,jdbcType=DOUBLE},
</if>
<if test="longitude != null">
longitude = #{longitude,jdbcType=DOUBLE},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.shxy.xymanager_common.entity.TerminalsBak">
update terminals
set line_id = #{lineId,jdbcType=INTEGER},
tower_id = #{towerId,jdbcType=INTEGER},
cmdid = #{cmdid,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
org_id = #{orgId,jdbcType=SMALLINT},
iccid = #{iccid,jdbcType=VARCHAR},
protocol = #{protocol,jdbcType=INTEGER},
cellphone = #{cellphone,jdbcType=VARCHAR},
equip_name = #{equipName,jdbcType=VARCHAR},
display_name = #{displayName,jdbcType=VARCHAR},
model = #{model,jdbcType=VARCHAR},
essential_info_version = #{essentialInfoVersion,jdbcType=VARCHAR},
has_pan = #{hasPan,jdbcType=TINYINT},
bs_manufacturer = #{bsManufacturer,jdbcType=VARCHAR},
bs_production_date = #{bsProductionDate,jdbcType=DATE},
bs_identifier = #{bsIdentifier,jdbcType=VARCHAR},
latitude = #{latitude,jdbcType=DOUBLE},
longitude = #{longitude,jdbcType=DOUBLE},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

@ -1,244 +0,0 @@
<?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.TowersBakDao">
<resultMap id="BaseResultMap" type="com.shxy.xymanager_common.entity.TowersBak">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="line_id" jdbcType="INTEGER" property="lineId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="order" jdbcType="INTEGER" property="order" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, line_id, create_time, update_time, status, order
</sql>
<select id="selectByExample" parameterType="com.shxy.xymanager_common.entity.TowersExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from towers
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from towers
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from towers
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.shxy.xymanager_common.entity.TowersExample">
delete from towers
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.shxy.xymanager_common.entity.TowersBak">
insert into towers (id, name, line_id,
create_time, update_time, status,
order)
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{lineId,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER},
#{order,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.TowersBak">
insert into towers
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="name != null">
name,
</if>
<if test="lineId != null">
line_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="status != null">
status,
</if>
<if test="order != null">
order,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="lineId != null">
#{lineId,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="order != null">
#{order,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.shxy.xymanager_common.entity.TowersExample" resultType="java.lang.Long">
select count(*) from towers
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update towers
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.lineId != null">
line_id = #{record.lineId,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=INTEGER},
</if>
<if test="record.order != null">
order = #{record.order,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update towers
set id = #{record.id,jdbcType=INTEGER},
name = #{record.name,jdbcType=VARCHAR},
line_id = #{record.lineId,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
status = #{record.status,jdbcType=INTEGER},
order = #{record.order,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.shxy.xymanager_common.entity.TowersBak">
update towers
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="lineId != null">
line_id = #{lineId,jdbcType=INTEGER},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="order != null">
order = #{order,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.shxy.xymanager_common.entity.TowersBak">
update towers
set name = #{name,jdbcType=VARCHAR},
line_id = #{lineId,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
status = #{status,jdbcType=INTEGER},
order = #{order,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
Loading…
Cancel
Save