分页报错解决

This commit is contained in:
韩国东 2022-09-21 17:12:15 +08:00
parent fc57df3f7d
commit 24c4085561
10 changed files with 1 additions and 1092 deletions

View File

@ -1,31 +0,0 @@
package com.rzyc.mapper.ent;
import com.rzyc.model.ent.EntDutyer;
import com.rzyc.model.ent.EntDutyerExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface EntDutyerMapper {
long countByExample(EntDutyerExample example);
int deleteByExample(EntDutyerExample example);
int insert(EntDutyer record);
int insertSelective(EntDutyer record);
List<EntDutyer> selectByExample(EntDutyerExample example);
int updateByExampleSelective(@Param("record") EntDutyer record, @Param("example") EntDutyerExample example);
int updateByExample(@Param("record") EntDutyer record, @Param("example") EntDutyerExample example);
/*删除企业责任人*/
Integer delEntId(@Param("entId") String entId);
/*企业负责人*/
EntDutyer findByEntId(@Param("entId") String entId);
}

View File

@ -1,139 +0,0 @@
package com.rzyc.model.ent;
import java.io.Serializable;
import java.util.Date;
/**
* @author
*/
public class EntDutyer implements Serializable {
/**
* 企业责任人id
*/
private String dutyerId;
/**
* 企业id
*/
private String entId;
/**
* 镇街包片领导id
*/
private String leaderId;
/**
* 镇街定点干部id
*/
private String cadreId;
/**
* 村社定点干部id
*/
private String villageId;
/**
* 创建时间
*/
private Date createTime;
private static final long serialVersionUID = 1L;
public String getDutyerId() {
return dutyerId;
}
public void setDutyerId(String dutyerId) {
this.dutyerId = dutyerId;
}
public String getEntId() {
return entId;
}
public void setEntId(String entId) {
this.entId = entId;
}
public String getLeaderId() {
return leaderId;
}
public void setLeaderId(String leaderId) {
this.leaderId = leaderId;
}
public String getCadreId() {
return cadreId;
}
public void setCadreId(String cadreId) {
this.cadreId = cadreId;
}
public String getVillageId() {
return villageId;
}
public void setVillageId(String villageId) {
this.villageId = villageId;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
EntDutyer other = (EntDutyer) that;
return (this.getDutyerId() == null ? other.getDutyerId() == null : this.getDutyerId().equals(other.getDutyerId()))
&& (this.getEntId() == null ? other.getEntId() == null : this.getEntId().equals(other.getEntId()))
&& (this.getLeaderId() == null ? other.getLeaderId() == null : this.getLeaderId().equals(other.getLeaderId()))
&& (this.getCadreId() == null ? other.getCadreId() == null : this.getCadreId().equals(other.getCadreId()))
&& (this.getVillageId() == null ? other.getVillageId() == null : this.getVillageId().equals(other.getVillageId()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getDutyerId() == null) ? 0 : getDutyerId().hashCode());
result = prime * result + ((getEntId() == null) ? 0 : getEntId().hashCode());
result = prime * result + ((getLeaderId() == null) ? 0 : getLeaderId().hashCode());
result = prime * result + ((getCadreId() == null) ? 0 : getCadreId().hashCode());
result = prime * result + ((getVillageId() == null) ? 0 : getVillageId().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", dutyerId=").append(dutyerId);
sb.append(", entId=").append(entId);
sb.append(", leaderId=").append(leaderId);
sb.append(", cadreId=").append(cadreId);
sb.append(", villageId=").append(villageId);
sb.append(", createTime=").append(createTime);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}

View File

@ -1,633 +0,0 @@
package com.rzyc.model.ent;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class EntDutyerExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
private Integer limit;
private Integer offset;
public EntDutyerExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
public Integer getLimit() {
return limit;
}
public void setOffset(Integer offset) {
this.offset = offset;
}
public Integer getOffset() {
return offset;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andDutyerIdIsNull() {
addCriterion("dutyer_id is null");
return (Criteria) this;
}
public Criteria andDutyerIdIsNotNull() {
addCriterion("dutyer_id is not null");
return (Criteria) this;
}
public Criteria andDutyerIdEqualTo(String value) {
addCriterion("dutyer_id =", value, "dutyerId");
return (Criteria) this;
}
public Criteria andDutyerIdNotEqualTo(String value) {
addCriterion("dutyer_id <>", value, "dutyerId");
return (Criteria) this;
}
public Criteria andDutyerIdGreaterThan(String value) {
addCriterion("dutyer_id >", value, "dutyerId");
return (Criteria) this;
}
public Criteria andDutyerIdGreaterThanOrEqualTo(String value) {
addCriterion("dutyer_id >=", value, "dutyerId");
return (Criteria) this;
}
public Criteria andDutyerIdLessThan(String value) {
addCriterion("dutyer_id <", value, "dutyerId");
return (Criteria) this;
}
public Criteria andDutyerIdLessThanOrEqualTo(String value) {
addCriterion("dutyer_id <=", value, "dutyerId");
return (Criteria) this;
}
public Criteria andDutyerIdLike(String value) {
addCriterion("dutyer_id like", value, "dutyerId");
return (Criteria) this;
}
public Criteria andDutyerIdNotLike(String value) {
addCriterion("dutyer_id not like", value, "dutyerId");
return (Criteria) this;
}
public Criteria andDutyerIdIn(List<String> values) {
addCriterion("dutyer_id in", values, "dutyerId");
return (Criteria) this;
}
public Criteria andDutyerIdNotIn(List<String> values) {
addCriterion("dutyer_id not in", values, "dutyerId");
return (Criteria) this;
}
public Criteria andDutyerIdBetween(String value1, String value2) {
addCriterion("dutyer_id between", value1, value2, "dutyerId");
return (Criteria) this;
}
public Criteria andDutyerIdNotBetween(String value1, String value2) {
addCriterion("dutyer_id not between", value1, value2, "dutyerId");
return (Criteria) this;
}
public Criteria andEntIdIsNull() {
addCriterion("ent_id is null");
return (Criteria) this;
}
public Criteria andEntIdIsNotNull() {
addCriterion("ent_id is not null");
return (Criteria) this;
}
public Criteria andEntIdEqualTo(String value) {
addCriterion("ent_id =", value, "entId");
return (Criteria) this;
}
public Criteria andEntIdNotEqualTo(String value) {
addCriterion("ent_id <>", value, "entId");
return (Criteria) this;
}
public Criteria andEntIdGreaterThan(String value) {
addCriterion("ent_id >", value, "entId");
return (Criteria) this;
}
public Criteria andEntIdGreaterThanOrEqualTo(String value) {
addCriterion("ent_id >=", value, "entId");
return (Criteria) this;
}
public Criteria andEntIdLessThan(String value) {
addCriterion("ent_id <", value, "entId");
return (Criteria) this;
}
public Criteria andEntIdLessThanOrEqualTo(String value) {
addCriterion("ent_id <=", value, "entId");
return (Criteria) this;
}
public Criteria andEntIdLike(String value) {
addCriterion("ent_id like", value, "entId");
return (Criteria) this;
}
public Criteria andEntIdNotLike(String value) {
addCriterion("ent_id not like", value, "entId");
return (Criteria) this;
}
public Criteria andEntIdIn(List<String> values) {
addCriterion("ent_id in", values, "entId");
return (Criteria) this;
}
public Criteria andEntIdNotIn(List<String> values) {
addCriterion("ent_id not in", values, "entId");
return (Criteria) this;
}
public Criteria andEntIdBetween(String value1, String value2) {
addCriterion("ent_id between", value1, value2, "entId");
return (Criteria) this;
}
public Criteria andEntIdNotBetween(String value1, String value2) {
addCriterion("ent_id not between", value1, value2, "entId");
return (Criteria) this;
}
public Criteria andLeaderIdIsNull() {
addCriterion("leader_id is null");
return (Criteria) this;
}
public Criteria andLeaderIdIsNotNull() {
addCriterion("leader_id is not null");
return (Criteria) this;
}
public Criteria andLeaderIdEqualTo(String value) {
addCriterion("leader_id =", value, "leaderId");
return (Criteria) this;
}
public Criteria andLeaderIdNotEqualTo(String value) {
addCriterion("leader_id <>", value, "leaderId");
return (Criteria) this;
}
public Criteria andLeaderIdGreaterThan(String value) {
addCriterion("leader_id >", value, "leaderId");
return (Criteria) this;
}
public Criteria andLeaderIdGreaterThanOrEqualTo(String value) {
addCriterion("leader_id >=", value, "leaderId");
return (Criteria) this;
}
public Criteria andLeaderIdLessThan(String value) {
addCriterion("leader_id <", value, "leaderId");
return (Criteria) this;
}
public Criteria andLeaderIdLessThanOrEqualTo(String value) {
addCriterion("leader_id <=", value, "leaderId");
return (Criteria) this;
}
public Criteria andLeaderIdLike(String value) {
addCriterion("leader_id like", value, "leaderId");
return (Criteria) this;
}
public Criteria andLeaderIdNotLike(String value) {
addCriterion("leader_id not like", value, "leaderId");
return (Criteria) this;
}
public Criteria andLeaderIdIn(List<String> values) {
addCriterion("leader_id in", values, "leaderId");
return (Criteria) this;
}
public Criteria andLeaderIdNotIn(List<String> values) {
addCriterion("leader_id not in", values, "leaderId");
return (Criteria) this;
}
public Criteria andLeaderIdBetween(String value1, String value2) {
addCriterion("leader_id between", value1, value2, "leaderId");
return (Criteria) this;
}
public Criteria andLeaderIdNotBetween(String value1, String value2) {
addCriterion("leader_id not between", value1, value2, "leaderId");
return (Criteria) this;
}
public Criteria andCadreIdIsNull() {
addCriterion("cadre_id is null");
return (Criteria) this;
}
public Criteria andCadreIdIsNotNull() {
addCriterion("cadre_id is not null");
return (Criteria) this;
}
public Criteria andCadreIdEqualTo(String value) {
addCriterion("cadre_id =", value, "cadreId");
return (Criteria) this;
}
public Criteria andCadreIdNotEqualTo(String value) {
addCriterion("cadre_id <>", value, "cadreId");
return (Criteria) this;
}
public Criteria andCadreIdGreaterThan(String value) {
addCriterion("cadre_id >", value, "cadreId");
return (Criteria) this;
}
public Criteria andCadreIdGreaterThanOrEqualTo(String value) {
addCriterion("cadre_id >=", value, "cadreId");
return (Criteria) this;
}
public Criteria andCadreIdLessThan(String value) {
addCriterion("cadre_id <", value, "cadreId");
return (Criteria) this;
}
public Criteria andCadreIdLessThanOrEqualTo(String value) {
addCriterion("cadre_id <=", value, "cadreId");
return (Criteria) this;
}
public Criteria andCadreIdLike(String value) {
addCriterion("cadre_id like", value, "cadreId");
return (Criteria) this;
}
public Criteria andCadreIdNotLike(String value) {
addCriterion("cadre_id not like", value, "cadreId");
return (Criteria) this;
}
public Criteria andCadreIdIn(List<String> values) {
addCriterion("cadre_id in", values, "cadreId");
return (Criteria) this;
}
public Criteria andCadreIdNotIn(List<String> values) {
addCriterion("cadre_id not in", values, "cadreId");
return (Criteria) this;
}
public Criteria andCadreIdBetween(String value1, String value2) {
addCriterion("cadre_id between", value1, value2, "cadreId");
return (Criteria) this;
}
public Criteria andCadreIdNotBetween(String value1, String value2) {
addCriterion("cadre_id not between", value1, value2, "cadreId");
return (Criteria) this;
}
public Criteria andVillageIdIsNull() {
addCriterion("village_id is null");
return (Criteria) this;
}
public Criteria andVillageIdIsNotNull() {
addCriterion("village_id is not null");
return (Criteria) this;
}
public Criteria andVillageIdEqualTo(String value) {
addCriterion("village_id =", value, "villageId");
return (Criteria) this;
}
public Criteria andVillageIdNotEqualTo(String value) {
addCriterion("village_id <>", value, "villageId");
return (Criteria) this;
}
public Criteria andVillageIdGreaterThan(String value) {
addCriterion("village_id >", value, "villageId");
return (Criteria) this;
}
public Criteria andVillageIdGreaterThanOrEqualTo(String value) {
addCriterion("village_id >=", value, "villageId");
return (Criteria) this;
}
public Criteria andVillageIdLessThan(String value) {
addCriterion("village_id <", value, "villageId");
return (Criteria) this;
}
public Criteria andVillageIdLessThanOrEqualTo(String value) {
addCriterion("village_id <=", value, "villageId");
return (Criteria) this;
}
public Criteria andVillageIdLike(String value) {
addCriterion("village_id like", value, "villageId");
return (Criteria) this;
}
public Criteria andVillageIdNotLike(String value) {
addCriterion("village_id not like", value, "villageId");
return (Criteria) this;
}
public Criteria andVillageIdIn(List<String> values) {
addCriterion("village_id in", values, "villageId");
return (Criteria) this;
}
public Criteria andVillageIdNotIn(List<String> values) {
addCriterion("village_id not in", values, "villageId");
return (Criteria) this;
}
public Criteria andVillageIdBetween(String value1, String value2) {
addCriterion("village_id between", value1, value2, "villageId");
return (Criteria) this;
}
public Criteria andVillageIdNotBetween(String value1, String value2) {
addCriterion("village_id not between", value1, value2, "villageId");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
/**
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

View File

@ -1,206 +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.rzyc.mapper.ent.EntDutyerMapper">
<resultMap id="BaseResultMap" type="com.rzyc.model.ent.EntDutyer">
<result column="dutyer_id" jdbcType="VARCHAR" property="dutyerId" />
<result column="ent_id" jdbcType="VARCHAR" property="entId" />
<result column="leader_id" jdbcType="VARCHAR" property="leaderId" />
<result column="cadre_id" jdbcType="VARCHAR" property="cadreId" />
<result column="village_id" jdbcType="VARCHAR" property="villageId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
</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">
dutyer_id, ent_id, leader_id, cadre_id, village_id, create_time
</sql>
<select id="selectByExample" parameterType="com.rzyc.model.ent.EntDutyerExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ent_dutyer
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
<if test="limit != null">
<if test="offset != null">
limit ${offset}, ${limit}
</if>
<if test="offset == null">
limit ${limit}
</if>
</if>
</select>
<delete id="deleteByExample" parameterType="com.rzyc.model.ent.EntDutyerExample">
delete from ent_dutyer
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.rzyc.model.ent.EntDutyer">
insert into ent_dutyer (dutyer_id, ent_id, leader_id,
cadre_id, village_id, create_time
)
values (#{dutyerId,jdbcType=VARCHAR}, #{entId,jdbcType=VARCHAR}, #{leaderId,jdbcType=VARCHAR},
#{cadreId,jdbcType=VARCHAR}, #{villageId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.rzyc.model.ent.EntDutyer">
insert into ent_dutyer
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="dutyerId != null">
dutyer_id,
</if>
<if test="entId != null">
ent_id,
</if>
<if test="leaderId != null">
leader_id,
</if>
<if test="cadreId != null">
cadre_id,
</if>
<if test="villageId != null">
village_id,
</if>
<if test="createTime != null">
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="dutyerId != null">
#{dutyerId,jdbcType=VARCHAR},
</if>
<if test="entId != null">
#{entId,jdbcType=VARCHAR},
</if>
<if test="leaderId != null">
#{leaderId,jdbcType=VARCHAR},
</if>
<if test="cadreId != null">
#{cadreId,jdbcType=VARCHAR},
</if>
<if test="villageId != null">
#{villageId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.rzyc.model.ent.EntDutyerExample" resultType="java.lang.Long">
select count(*) from ent_dutyer
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update ent_dutyer
<set>
<if test="record.dutyerId != null">
dutyer_id = #{record.dutyerId,jdbcType=VARCHAR},
</if>
<if test="record.entId != null">
ent_id = #{record.entId,jdbcType=VARCHAR},
</if>
<if test="record.leaderId != null">
leader_id = #{record.leaderId,jdbcType=VARCHAR},
</if>
<if test="record.cadreId != null">
cadre_id = #{record.cadreId,jdbcType=VARCHAR},
</if>
<if test="record.villageId != null">
village_id = #{record.villageId,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update ent_dutyer
set dutyer_id = #{record.dutyerId,jdbcType=VARCHAR},
ent_id = #{record.entId,jdbcType=VARCHAR},
leader_id = #{record.leaderId,jdbcType=VARCHAR},
cadre_id = #{record.cadreId,jdbcType=VARCHAR},
village_id = #{record.villageId,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<!--删除企业责任人-->
<delete id="delEntId">
delete from ent_dutyer where ent_id = #{entId}
</delete>
<!--企业负责人-->
<select id="findByEntId" resultMap="BaseResultMap">
select * from ent_dutyer ed where ed.ent_id = #{entId}
</select>
</mapper>

View File

@ -70,38 +70,6 @@
<!-- aop end --> <!-- aop end -->
<!-- mysql start -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.12</version>
</dependency>
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>2.3.30</version>
</dependency>
<!-- mysql end -->
<!-- mybatis start -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-generator</artifactId>
<version>3.3.2</version>
</dependency>
<!-- mybatis end -->

View File

@ -340,10 +340,6 @@ public class BaseController {
@Autowired @Autowired
protected DutyTreeMapper dutyTreeMapper; protected DutyTreeMapper dutyTreeMapper;
//企业责任人
@Autowired
protected EntDutyerMapper entDutyerMapper;
//第三方机构 //第三方机构
@Autowired @Autowired
protected OrganizationMapper organizationMapper; protected OrganizationMapper organizationMapper;

View File

@ -70,38 +70,6 @@
<!-- aop end --> <!-- aop end -->
<!-- mysql start -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.30</version>
</dependency>
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>2.3.30</version>
</dependency>
<!-- mysql end -->
<!-- mybatis start -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-generator</artifactId>
<version>3.3.2</version>
</dependency>
<!-- mybatis end -->

View File

@ -340,10 +340,6 @@ public class BaseController {
@Autowired @Autowired
protected DutyTreeMapper dutyTreeMapper; protected DutyTreeMapper dutyTreeMapper;
//企业责任人
@Autowired
protected EntDutyerMapper entDutyerMapper;
//第三方机构 //第三方机构
@Autowired @Autowired
protected OrganizationMapper organizationMapper; protected OrganizationMapper organizationMapper;

View File

@ -1501,16 +1501,6 @@ public class ImportController extends com.rzyc.controller.BaseController {
} }
} }
EntDutyer entDutyer = new EntDutyer();
entDutyer.setDutyerId(RandomNumber.getUUid());
entDutyer.setEntId(enterprise.getSysenterpriseid());
entDutyer.setLeaderId(leaderId);
entDutyer.setCadreId(cadreId);
entDutyer.setVillageId(villageId);
entDutyer.setCreateTime(new Date());
entDutyerMapper.delEntId(enterprise.getSysenterpriseid());
entDutyerMapper.insert(entDutyer);
createEntUser(enterprise, "管理员",null); createEntUser(enterprise, "管理员",null);
index++; index++;