企业清单删除状态字段添加
This commit is contained in:
parent
a351ed1566
commit
c690a97a5f
|
|
@ -1,25 +0,0 @@
|
|||
package com.rzyc.mapper.ent;
|
||||
|
||||
import com.rzyc.model.ent.EntUser;
|
||||
import com.rzyc.model.ent.EntUserExample;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Repository
|
||||
public interface EntUserMapper {
|
||||
long countByExample(EntUserExample example);
|
||||
|
||||
int deleteByExample(EntUserExample example);
|
||||
|
||||
int insert(EntUser record);
|
||||
|
||||
int insertSelective(EntUser record);
|
||||
|
||||
List<EntUser> selectByExample(EntUserExample example);
|
||||
|
||||
int updateByExampleSelective(@Param("record") EntUser record, @Param("example") EntUserExample example);
|
||||
|
||||
int updateByExample(@Param("record") EntUser record, @Param("example") EntUserExample example);
|
||||
}
|
||||
|
|
@ -1,143 +0,0 @@
|
|||
package com.rzyc.model.ent;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author
|
||||
*/
|
||||
public class EntUser implements Serializable {
|
||||
/**
|
||||
* 企业用户关联
|
||||
*/
|
||||
private String entUserId;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 企业id
|
||||
*/
|
||||
private String entId;
|
||||
|
||||
private String modified;
|
||||
|
||||
private String created;
|
||||
|
||||
private Date modifyTime;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public String getEntUserId() {
|
||||
return entUserId;
|
||||
}
|
||||
|
||||
public void setEntUserId(String entUserId) {
|
||||
this.entUserId = entUserId;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getEntId() {
|
||||
return entId;
|
||||
}
|
||||
|
||||
public void setEntId(String entId) {
|
||||
this.entId = entId;
|
||||
}
|
||||
|
||||
public String getModified() {
|
||||
return modified;
|
||||
}
|
||||
|
||||
public void setModified(String modified) {
|
||||
this.modified = modified;
|
||||
}
|
||||
|
||||
public String getCreated() {
|
||||
return created;
|
||||
}
|
||||
|
||||
public void setCreated(String created) {
|
||||
this.created = created;
|
||||
}
|
||||
|
||||
public Date getModifyTime() {
|
||||
return modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
EntUser other = (EntUser) that;
|
||||
return (this.getEntUserId() == null ? other.getEntUserId() == null : this.getEntUserId().equals(other.getEntUserId()))
|
||||
&& (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
|
||||
&& (this.getEntId() == null ? other.getEntId() == null : this.getEntId().equals(other.getEntId()))
|
||||
&& (this.getModified() == null ? other.getModified() == null : this.getModified().equals(other.getModified()))
|
||||
&& (this.getCreated() == null ? other.getCreated() == null : this.getCreated().equals(other.getCreated()))
|
||||
&& (this.getModifyTime() == null ? other.getModifyTime() == null : this.getModifyTime().equals(other.getModifyTime()))
|
||||
&& (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 + ((getEntUserId() == null) ? 0 : getEntUserId().hashCode());
|
||||
result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
|
||||
result = prime * result + ((getEntId() == null) ? 0 : getEntId().hashCode());
|
||||
result = prime * result + ((getModified() == null) ? 0 : getModified().hashCode());
|
||||
result = prime * result + ((getCreated() == null) ? 0 : getCreated().hashCode());
|
||||
result = prime * result + ((getModifyTime() == null) ? 0 : getModifyTime().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(", entUserId=").append(entUserId);
|
||||
sb.append(", userId=").append(userId);
|
||||
sb.append(", entId=").append(entId);
|
||||
sb.append(", modified=").append(modified);
|
||||
sb.append(", created=").append(created);
|
||||
sb.append(", modifyTime=").append(modifyTime);
|
||||
sb.append(", createTime=").append(createTime);
|
||||
sb.append(", serialVersionUID=").append(serialVersionUID);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,693 +0,0 @@
|
|||
package com.rzyc.model.ent;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class EntUserExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
private Integer limit;
|
||||
|
||||
private Integer offset;
|
||||
|
||||
public EntUserExample() {
|
||||
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 andEntUserIdIsNull() {
|
||||
addCriterion("ent_user_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEntUserIdIsNotNull() {
|
||||
addCriterion("ent_user_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEntUserIdEqualTo(String value) {
|
||||
addCriterion("ent_user_id =", value, "entUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEntUserIdNotEqualTo(String value) {
|
||||
addCriterion("ent_user_id <>", value, "entUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEntUserIdGreaterThan(String value) {
|
||||
addCriterion("ent_user_id >", value, "entUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEntUserIdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("ent_user_id >=", value, "entUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEntUserIdLessThan(String value) {
|
||||
addCriterion("ent_user_id <", value, "entUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEntUserIdLessThanOrEqualTo(String value) {
|
||||
addCriterion("ent_user_id <=", value, "entUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEntUserIdLike(String value) {
|
||||
addCriterion("ent_user_id like", value, "entUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEntUserIdNotLike(String value) {
|
||||
addCriterion("ent_user_id not like", value, "entUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEntUserIdIn(List<String> values) {
|
||||
addCriterion("ent_user_id in", values, "entUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEntUserIdNotIn(List<String> values) {
|
||||
addCriterion("ent_user_id not in", values, "entUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEntUserIdBetween(String value1, String value2) {
|
||||
addCriterion("ent_user_id between", value1, value2, "entUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEntUserIdNotBetween(String value1, String value2) {
|
||||
addCriterion("ent_user_id not between", value1, value2, "entUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIsNull() {
|
||||
addCriterion("user_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIsNotNull() {
|
||||
addCriterion("user_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdEqualTo(String value) {
|
||||
addCriterion("user_id =", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotEqualTo(String value) {
|
||||
addCriterion("user_id <>", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdGreaterThan(String value) {
|
||||
addCriterion("user_id >", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("user_id >=", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLessThan(String value) {
|
||||
addCriterion("user_id <", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLessThanOrEqualTo(String value) {
|
||||
addCriterion("user_id <=", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLike(String value) {
|
||||
addCriterion("user_id like", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotLike(String value) {
|
||||
addCriterion("user_id not like", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIn(List<String> values) {
|
||||
addCriterion("user_id in", values, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotIn(List<String> values) {
|
||||
addCriterion("user_id not in", values, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdBetween(String value1, String value2) {
|
||||
addCriterion("user_id between", value1, value2, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotBetween(String value1, String value2) {
|
||||
addCriterion("user_id not between", value1, value2, "userId");
|
||||
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 andModifiedIsNull() {
|
||||
addCriterion("modified is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifiedIsNotNull() {
|
||||
addCriterion("modified is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifiedEqualTo(String value) {
|
||||
addCriterion("modified =", value, "modified");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifiedNotEqualTo(String value) {
|
||||
addCriterion("modified <>", value, "modified");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifiedGreaterThan(String value) {
|
||||
addCriterion("modified >", value, "modified");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifiedGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("modified >=", value, "modified");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifiedLessThan(String value) {
|
||||
addCriterion("modified <", value, "modified");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifiedLessThanOrEqualTo(String value) {
|
||||
addCriterion("modified <=", value, "modified");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifiedLike(String value) {
|
||||
addCriterion("modified like", value, "modified");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifiedNotLike(String value) {
|
||||
addCriterion("modified not like", value, "modified");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifiedIn(List<String> values) {
|
||||
addCriterion("modified in", values, "modified");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifiedNotIn(List<String> values) {
|
||||
addCriterion("modified not in", values, "modified");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifiedBetween(String value1, String value2) {
|
||||
addCriterion("modified between", value1, value2, "modified");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifiedNotBetween(String value1, String value2) {
|
||||
addCriterion("modified not between", value1, value2, "modified");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedIsNull() {
|
||||
addCriterion("created is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedIsNotNull() {
|
||||
addCriterion("created is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedEqualTo(String value) {
|
||||
addCriterion("created =", value, "created");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedNotEqualTo(String value) {
|
||||
addCriterion("created <>", value, "created");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedGreaterThan(String value) {
|
||||
addCriterion("created >", value, "created");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("created >=", value, "created");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedLessThan(String value) {
|
||||
addCriterion("created <", value, "created");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedLessThanOrEqualTo(String value) {
|
||||
addCriterion("created <=", value, "created");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedLike(String value) {
|
||||
addCriterion("created like", value, "created");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedNotLike(String value) {
|
||||
addCriterion("created not like", value, "created");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedIn(List<String> values) {
|
||||
addCriterion("created in", values, "created");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedNotIn(List<String> values) {
|
||||
addCriterion("created not in", values, "created");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedBetween(String value1, String value2) {
|
||||
addCriterion("created between", value1, value2, "created");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatedNotBetween(String value1, String value2) {
|
||||
addCriterion("created not between", value1, value2, "created");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifyTimeIsNull() {
|
||||
addCriterion("modify_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifyTimeIsNotNull() {
|
||||
addCriterion("modify_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifyTimeEqualTo(Date value) {
|
||||
addCriterion("modify_time =", value, "modifyTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifyTimeNotEqualTo(Date value) {
|
||||
addCriterion("modify_time <>", value, "modifyTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifyTimeGreaterThan(Date value) {
|
||||
addCriterion("modify_time >", value, "modifyTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifyTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("modify_time >=", value, "modifyTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifyTimeLessThan(Date value) {
|
||||
addCriterion("modify_time <", value, "modifyTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifyTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("modify_time <=", value, "modifyTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifyTimeIn(List<Date> values) {
|
||||
addCriterion("modify_time in", values, "modifyTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifyTimeNotIn(List<Date> values) {
|
||||
addCriterion("modify_time not in", values, "modifyTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifyTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("modify_time between", value1, value2, "modifyTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModifyTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("modify_time not between", value1, value2, "modifyTime");
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -70,6 +70,10 @@ public class InEntList implements Serializable {
|
|||
@TableField("sort_id")
|
||||
private Integer sortId;
|
||||
|
||||
@ApiModelProperty(value = "删除状态 1:正常 2:已删除")
|
||||
@TableField("del_state")
|
||||
private Integer delState;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("create_time")
|
||||
private Date createTime;
|
||||
|
|
|
|||
|
|
@ -34,6 +34,10 @@ public class InList implements Serializable {
|
|||
@TableField("sort_id")
|
||||
private Integer sortId;
|
||||
|
||||
@ApiModelProperty(value = "删除状态 1:正常 2:已删除")
|
||||
@TableField("del_state")
|
||||
private Integer delState;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("create_time")
|
||||
private Date createTime;
|
||||
|
|
|
|||
|
|
@ -66,6 +66,10 @@ public class InListItem implements Serializable {
|
|||
@TableField("sort_id")
|
||||
private Integer sortId;
|
||||
|
||||
@ApiModelProperty(value = "删除状态 1:正常 2:已删除")
|
||||
@TableField("del_state")
|
||||
private Integer delState;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("create_time")
|
||||
private Date createTime;
|
||||
|
|
|
|||
|
|
@ -1,207 +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.EntUserMapper">
|
||||
<resultMap id="BaseResultMap" type="com.rzyc.model.ent.EntUser">
|
||||
<result column="ent_user_id" jdbcType="VARCHAR" property="entUserId" />
|
||||
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
||||
<result column="ent_id" jdbcType="VARCHAR" property="entId" />
|
||||
<result column="modified" jdbcType="VARCHAR" property="modified" />
|
||||
<result column="created" jdbcType="VARCHAR" property="created" />
|
||||
<result column="modify_time" jdbcType="TIMESTAMP" property="modifyTime" />
|
||||
<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">
|
||||
ent_user_id, user_id, ent_id, modified, created, modify_time, create_time
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.rzyc.model.ent.EntUserExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from ent_user
|
||||
<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.EntUserExample">
|
||||
delete from ent_user
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.rzyc.model.ent.EntUser">
|
||||
insert into ent_user (ent_user_id, user_id, ent_id,
|
||||
modified, created, modify_time,
|
||||
create_time)
|
||||
values (#{entUserId,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{entId,jdbcType=VARCHAR},
|
||||
#{modified,jdbcType=VARCHAR}, #{created,jdbcType=VARCHAR}, #{modifyTime,jdbcType=TIMESTAMP},
|
||||
#{createTime,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.rzyc.model.ent.EntUser">
|
||||
insert into ent_user
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="entUserId != null">
|
||||
ent_user_id,
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id,
|
||||
</if>
|
||||
<if test="entId != null">
|
||||
ent_id,
|
||||
</if>
|
||||
<if test="modified != null">
|
||||
modified,
|
||||
</if>
|
||||
<if test="created != null">
|
||||
created,
|
||||
</if>
|
||||
<if test="modifyTime != null">
|
||||
modify_time,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="entUserId != null">
|
||||
#{entUserId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
#{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="entId != null">
|
||||
#{entId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="modified != null">
|
||||
#{modified,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="created != null">
|
||||
#{created,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="modifyTime != null">
|
||||
#{modifyTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.rzyc.model.ent.EntUserExample" resultType="java.lang.Long">
|
||||
select count(*) from ent_user
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update ent_user
|
||||
<set>
|
||||
<if test="record.entUserId != null">
|
||||
ent_user_id = #{record.entUserId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.userId != null">
|
||||
user_id = #{record.userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.entId != null">
|
||||
ent_id = #{record.entId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.modified != null">
|
||||
modified = #{record.modified,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.created != null">
|
||||
created = #{record.created,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.modifyTime != null">
|
||||
modify_time = #{record.modifyTime,jdbcType=TIMESTAMP},
|
||||
</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_user
|
||||
set ent_user_id = #{record.entUserId,jdbcType=VARCHAR},
|
||||
user_id = #{record.userId,jdbcType=VARCHAR},
|
||||
ent_id = #{record.entId,jdbcType=VARCHAR},
|
||||
modified = #{record.modified,jdbcType=VARCHAR},
|
||||
created = #{record.created,jdbcType=VARCHAR},
|
||||
modify_time = #{record.modifyTime,jdbcType=TIMESTAMP},
|
||||
create_time = #{record.createTime,jdbcType=TIMESTAMP}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
</mapper>
|
||||
|
|
@ -16,6 +16,7 @@
|
|||
<result column="item_proof" property="itemProof" />
|
||||
<result column="item_law" property="itemLaw" />
|
||||
<result column="sort_id" property="sortId" />
|
||||
<result column="del_state" property="delState" />
|
||||
<result column="create_time" property="createTime" />
|
||||
<result column="create_by" property="createBy" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
|
|
@ -24,7 +25,8 @@
|
|||
|
||||
<!-- 通用查询结果列 -->
|
||||
<sql id="Base_Column_List">
|
||||
ent_list_id, item_id, list_id, enterprise_id, item_content, standard, frequency, enclosure, item_basis, item_proof, item_law, sort_id, create_time, create_by, modify_time, modify_by
|
||||
ent_list_id, item_id, list_id, enterprise_id, item_content, standard, frequency, enclosure,
|
||||
item_basis, item_proof, item_law, sort_id,del_state, create_time, create_by, modify_time, modify_by
|
||||
</sql>
|
||||
|
||||
</mapper>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<result column="item_proof" property="itemProof" />
|
||||
<result column="item_law" property="itemLaw" />
|
||||
<result column="sort_id" property="sortId" />
|
||||
<result column="del_state" property="delState" />
|
||||
<result column="create_time" property="createTime" />
|
||||
<result column="create_by" property="createBy" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
|
|
@ -23,7 +24,8 @@
|
|||
|
||||
<!-- 通用查询结果列 -->
|
||||
<sql id="Base_Column_List">
|
||||
item_id, list_id, industry_id, item_content, standard, frequency, enclosure, item_basis, item_proof, item_law, sort_id, create_time, create_by, modify_time, modify_by
|
||||
item_id, list_id, industry_id, item_content, standard, frequency, enclosure,
|
||||
item_basis, item_proof, item_law, sort_id, del_state,create_time, create_by, modify_time, modify_by
|
||||
</sql>
|
||||
|
||||
</mapper>
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
<id column="list_id" property="listId" />
|
||||
<result column="name" property="name" />
|
||||
<result column="sort_id" property="sortId" />
|
||||
<result column="del_state" property="delState" />
|
||||
<result column="create_time" property="createTime" />
|
||||
<result column="create_by" property="createBy" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
|
|
@ -15,7 +16,7 @@
|
|||
|
||||
<!-- 通用查询结果列 -->
|
||||
<sql id="Base_Column_List">
|
||||
list_id, name, sort_id, create_time, create_by, modify_time, modify_by
|
||||
list_id, name, sort_id,del_state, create_time, create_by, modify_time, modify_by
|
||||
</sql>
|
||||
|
||||
</mapper>
|
||||
|
|
|
|||
|
|
@ -268,7 +268,7 @@ public class BaseController {
|
|||
@Autowired
|
||||
protected SysRoleResourceMapper sysRoleResourceMapper;
|
||||
|
||||
//浏览器对象
|
||||
//请求对象
|
||||
@Autowired
|
||||
protected HttpServletRequest request;
|
||||
|
||||
|
|
@ -336,10 +336,6 @@ public class BaseController {
|
|||
@Autowired
|
||||
protected IndustryWorkMapper industryWorkMapper;
|
||||
|
||||
//企业监管用户
|
||||
@Autowired
|
||||
protected EntUserMapper entUserMapper;
|
||||
|
||||
//责任树
|
||||
@Autowired
|
||||
protected DutyTreeMapper dutyTreeMapper;
|
||||
|
|
|
|||
|
|
@ -268,7 +268,7 @@ public class BaseController {
|
|||
@Autowired
|
||||
protected SysRoleResourceMapper sysRoleResourceMapper;
|
||||
|
||||
//浏览器对象
|
||||
//请求对象
|
||||
@Autowired
|
||||
protected HttpServletRequest request;
|
||||
|
||||
|
|
@ -336,10 +336,6 @@ public class BaseController {
|
|||
@Autowired
|
||||
protected IndustryWorkMapper industryWorkMapper;
|
||||
|
||||
//企业监管用户
|
||||
@Autowired
|
||||
protected EntUserMapper entUserMapper;
|
||||
|
||||
//责任树
|
||||
@Autowired
|
||||
protected DutyTreeMapper dutyTreeMapper;
|
||||
|
|
@ -2568,24 +2564,12 @@ public class BaseController {
|
|||
|
||||
//接收人列表
|
||||
List<OADistribution> distributions = new ArrayList<>();
|
||||
if("1".equals(oaTask.getTasklevel())){
|
||||
//修改任务读取状态
|
||||
sysUserId = getListPerformId(sysUserId);
|
||||
oaDistributionMapper.changeStatus(oaTask.getOataskid(),sysUserId);
|
||||
//查询部门
|
||||
distributions = oaDistributionMapper.receiveUnit(oaTask.getOataskid());
|
||||
}else if("2".equals(oaTask.getTasklevel())){
|
||||
//修改任务读取状态
|
||||
oaDistributionMapper.changeStatus(oaTask.getOataskid(),sysUserId);
|
||||
//查询用户
|
||||
distributions = oaDistributionMapper.receiveUser(oaTask.getOataskid());
|
||||
String unitName = getUnitName(oaTask.getTaskperson());
|
||||
if(null != distributions && distributions.size() > 0 && StringUtils.isNotBlank(unitName)){
|
||||
for (OADistribution distribution : distributions){
|
||||
distribution.setReceiveName(unitName + "-" + distribution.getReceiveName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
oaTask.setDistributions(distributions);
|
||||
|
||||
if("上级提醒".equals(oaTask.getTasktype())){
|
||||
|
|
|
|||
|
|
@ -2129,8 +2129,6 @@ public class MinWorkController extends BaseController{
|
|||
|
||||
//创建或者修改企业用户
|
||||
createEntUser(sysEnterprise,sysUser.getChinaname(),sysUser);
|
||||
//保存监管人员
|
||||
addUserEnt(sysEnterpriseDo.getUserId(),sysEnterprise.getSysenterpriseid(),sysUser.getChinaname());
|
||||
if (result > 0){
|
||||
singleResult.setMessage(Message.SUCCESS);
|
||||
singleResult.setCode(Code.SUCCESS.getCode());
|
||||
|
|
@ -2142,28 +2140,6 @@ public class MinWorkController extends BaseController{
|
|||
return singleResult;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存企业监管人员
|
||||
* @throws Exception
|
||||
*/
|
||||
private void addUserEnt(String userId,String entId,String chinaName)throws Exception{
|
||||
if(StringUtils.isNotBlank(userId)){
|
||||
String[] strs = userId.split(",");
|
||||
for (String str : strs){
|
||||
EntUser entUser = new EntUser();
|
||||
entUser.setEntUserId(RandomNumber.getUUid());
|
||||
entUser.setEntId(entId);
|
||||
entUser.setUserId(str);
|
||||
entUser.setCreateTime(new Date());
|
||||
entUser.setCreated(chinaName);
|
||||
entUser.setModifyTime(new Date());
|
||||
entUser.setModified(chinaName);
|
||||
entUserMapper.insert(entUser);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* PC新增最小工作单元格清单
|
||||
* */
|
||||
|
|
|
|||
|
|
@ -13,13 +13,11 @@ import com.rzyc.bean.SysEnterpriseDo;
|
|||
import com.rzyc.bean.check.dto.LawAddDto;
|
||||
import com.rzyc.bean.check.dto.TalkAddDto;
|
||||
import com.rzyc.bean.ent.*;
|
||||
import com.rzyc.bean.user.dto.LoginDto;
|
||||
import com.rzyc.bean.user.dto.WeChartLoginDto;
|
||||
import com.rzyc.model.*;
|
||||
import com.rzyc.model.check.*;
|
||||
import com.rzyc.model.ent.EntBillCon;
|
||||
import com.rzyc.model.ent.EntPromise;
|
||||
import com.rzyc.model.ent.EntUser;
|
||||
import com.rzyc.model.ent.SysEnterprise;
|
||||
import com.rzyc.model.user.SysUnit;
|
||||
import com.rzyc.model.user.SysUser;
|
||||
|
|
@ -597,8 +595,7 @@ public class PcCompanyController extends com.rzyc.controller.BaseController {
|
|||
|
||||
//创建或者修改企业用户
|
||||
createEntUser(sysEnterprise,sysUser.getChinaname(),sysUser);
|
||||
//保存监管人员
|
||||
addUserEnt(sysEnterpriseDo.getUserId(),sysEnterprise.getSysenterpriseid(),sysUser.getChinaname());
|
||||
|
||||
if (result > 0){
|
||||
singleResult.setMessage(Message.SUCCESS);
|
||||
singleResult.setCode(Code.SUCCESS.getCode());
|
||||
|
|
@ -610,27 +607,6 @@ public class PcCompanyController extends com.rzyc.controller.BaseController {
|
|||
return singleResult;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存企业监管人员
|
||||
* @throws Exception
|
||||
*/
|
||||
private void addUserEnt(String userId,String entId,String chinaName)throws Exception{
|
||||
if(StringUtils.isNotBlank(userId)){
|
||||
String[] strs = userId.split(",");
|
||||
for (String str : strs){
|
||||
EntUser entUser = new EntUser();
|
||||
entUser.setEntUserId(RandomNumber.getUUid());
|
||||
entUser.setEntId(entId);
|
||||
entUser.setUserId(str);
|
||||
entUser.setCreateTime(new Date());
|
||||
entUser.setCreated(chinaName);
|
||||
entUser.setModifyTime(new Date());
|
||||
entUser.setModified(chinaName);
|
||||
entUserMapper.insert(entUser);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user