Commit 2d5e3518 by zhengxj

finish 映射文件,dao,实体类 on 20181229 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@16200 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 61642576
package com.glsx.manager.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.glsx.manager.pojo.menu.SysMenu;
import com.glsx.manager.pojo.menu.SysMenuExample;
public interface SysMenuMapper {
long countByExample(SysMenuExample example);
int deleteByExample(SysMenuExample example);
int deleteByPrimaryKey(Integer id);
int insert(SysMenu record);
int insertSelective(SysMenu record);
List<SysMenu> selectByExample(SysMenuExample example);
SysMenu selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") SysMenu record, @Param("example") SysMenuExample example);
int updateByExample(@Param("record") SysMenu record, @Param("example") SysMenuExample example);
int updateByPrimaryKeySelective(SysMenu record);
int updateByPrimaryKey(SysMenu record);
}
\ No newline at end of file \ No newline at end of file
package com.glsx.manager.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.glsx.manager.pojo.menu.SysOrganization;
import com.glsx.manager.pojo.menu.SysOrganizationExample;
public interface SysOrganizationMapper {
long countByExample(SysOrganizationExample example);
int deleteByExample(SysOrganizationExample example);
int deleteByPrimaryKey(Integer id);
int insert(SysOrganization record);
int insertSelective(SysOrganization record);
List<SysOrganization> selectByExample(SysOrganizationExample example);
SysOrganization selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") SysOrganization record, @Param("example") SysOrganizationExample example);
int updateByExample(@Param("record") SysOrganization record, @Param("example") SysOrganizationExample example);
int updateByPrimaryKeySelective(SysOrganization record);
int updateByPrimaryKey(SysOrganization record);
}
\ No newline at end of file \ No newline at end of file
package com.glsx.manager.pojo.menu;
import java.util.Date;
public class SysMenu {
private Integer id;
private String name;
private Integer parentId;
private Integer sort;
private String rightDes;
private String requestAdd;
private Byte menuStatus;
private Byte menuType;
private String menuIcon;
private Byte isShow;
private Date createTime;
private Date updateTime;
private String remark;
private String updateBy;
private String createBy;
private Byte label;
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 getParentId() {
return parentId;
}
public void setParentId(Integer parentId) {
this.parentId = parentId;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
public String getRightDes() {
return rightDes;
}
public void setRightDes(String rightDes) {
this.rightDes = rightDes == null ? null : rightDes.trim();
}
public String getRequestAdd() {
return requestAdd;
}
public void setRequestAdd(String requestAdd) {
this.requestAdd = requestAdd == null ? null : requestAdd.trim();
}
public Byte getMenuStatus() {
return menuStatus;
}
public void setMenuStatus(Byte menuStatus) {
this.menuStatus = menuStatus;
}
public Byte getMenuType() {
return menuType;
}
public void setMenuType(Byte menuType) {
this.menuType = menuType;
}
public String getMenuIcon() {
return menuIcon;
}
public void setMenuIcon(String menuIcon) {
this.menuIcon = menuIcon == null ? null : menuIcon.trim();
}
public Byte getIsShow() {
return isShow;
}
public void setIsShow(Byte isShow) {
this.isShow = isShow;
}
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 getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy == null ? null : updateBy.trim();
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy == null ? null : createBy.trim();
}
public Byte getLabel() {
return label;
}
public void setLabel(Byte label) {
this.label = label;
}
}
\ No newline at end of file \ No newline at end of file
package com.glsx.manager.pojo.menu;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class SysMenuExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SysMenuExample() {
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;
}
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 andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Integer value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("name is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("name is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("name =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("name <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("name >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("name >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("name <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("name <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("name like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("name not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("name in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("name not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("name between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("name not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andParentIdIsNull() {
addCriterion("parent_id is null");
return (Criteria) this;
}
public Criteria andParentIdIsNotNull() {
addCriterion("parent_id is not null");
return (Criteria) this;
}
public Criteria andParentIdEqualTo(Integer value) {
addCriterion("parent_id =", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdNotEqualTo(Integer value) {
addCriterion("parent_id <>", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdGreaterThan(Integer value) {
addCriterion("parent_id >", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdGreaterThanOrEqualTo(Integer value) {
addCriterion("parent_id >=", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdLessThan(Integer value) {
addCriterion("parent_id <", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdLessThanOrEqualTo(Integer value) {
addCriterion("parent_id <=", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdIn(List<Integer> values) {
addCriterion("parent_id in", values, "parentId");
return (Criteria) this;
}
public Criteria andParentIdNotIn(List<Integer> values) {
addCriterion("parent_id not in", values, "parentId");
return (Criteria) this;
}
public Criteria andParentIdBetween(Integer value1, Integer value2) {
addCriterion("parent_id between", value1, value2, "parentId");
return (Criteria) this;
}
public Criteria andParentIdNotBetween(Integer value1, Integer value2) {
addCriterion("parent_id not between", value1, value2, "parentId");
return (Criteria) this;
}
public Criteria andSortIsNull() {
addCriterion("sort is null");
return (Criteria) this;
}
public Criteria andSortIsNotNull() {
addCriterion("sort is not null");
return (Criteria) this;
}
public Criteria andSortEqualTo(Integer value) {
addCriterion("sort =", value, "sort");
return (Criteria) this;
}
public Criteria andSortNotEqualTo(Integer value) {
addCriterion("sort <>", value, "sort");
return (Criteria) this;
}
public Criteria andSortGreaterThan(Integer value) {
addCriterion("sort >", value, "sort");
return (Criteria) this;
}
public Criteria andSortGreaterThanOrEqualTo(Integer value) {
addCriterion("sort >=", value, "sort");
return (Criteria) this;
}
public Criteria andSortLessThan(Integer value) {
addCriterion("sort <", value, "sort");
return (Criteria) this;
}
public Criteria andSortLessThanOrEqualTo(Integer value) {
addCriterion("sort <=", value, "sort");
return (Criteria) this;
}
public Criteria andSortIn(List<Integer> values) {
addCriterion("sort in", values, "sort");
return (Criteria) this;
}
public Criteria andSortNotIn(List<Integer> values) {
addCriterion("sort not in", values, "sort");
return (Criteria) this;
}
public Criteria andSortBetween(Integer value1, Integer value2) {
addCriterion("sort between", value1, value2, "sort");
return (Criteria) this;
}
public Criteria andSortNotBetween(Integer value1, Integer value2) {
addCriterion("sort not between", value1, value2, "sort");
return (Criteria) this;
}
public Criteria andRightDesIsNull() {
addCriterion("right_des is null");
return (Criteria) this;
}
public Criteria andRightDesIsNotNull() {
addCriterion("right_des is not null");
return (Criteria) this;
}
public Criteria andRightDesEqualTo(String value) {
addCriterion("right_des =", value, "rightDes");
return (Criteria) this;
}
public Criteria andRightDesNotEqualTo(String value) {
addCriterion("right_des <>", value, "rightDes");
return (Criteria) this;
}
public Criteria andRightDesGreaterThan(String value) {
addCriterion("right_des >", value, "rightDes");
return (Criteria) this;
}
public Criteria andRightDesGreaterThanOrEqualTo(String value) {
addCriterion("right_des >=", value, "rightDes");
return (Criteria) this;
}
public Criteria andRightDesLessThan(String value) {
addCriterion("right_des <", value, "rightDes");
return (Criteria) this;
}
public Criteria andRightDesLessThanOrEqualTo(String value) {
addCriterion("right_des <=", value, "rightDes");
return (Criteria) this;
}
public Criteria andRightDesLike(String value) {
addCriterion("right_des like", value, "rightDes");
return (Criteria) this;
}
public Criteria andRightDesNotLike(String value) {
addCriterion("right_des not like", value, "rightDes");
return (Criteria) this;
}
public Criteria andRightDesIn(List<String> values) {
addCriterion("right_des in", values, "rightDes");
return (Criteria) this;
}
public Criteria andRightDesNotIn(List<String> values) {
addCriterion("right_des not in", values, "rightDes");
return (Criteria) this;
}
public Criteria andRightDesBetween(String value1, String value2) {
addCriterion("right_des between", value1, value2, "rightDes");
return (Criteria) this;
}
public Criteria andRightDesNotBetween(String value1, String value2) {
addCriterion("right_des not between", value1, value2, "rightDes");
return (Criteria) this;
}
public Criteria andRequestAddIsNull() {
addCriterion("request_add is null");
return (Criteria) this;
}
public Criteria andRequestAddIsNotNull() {
addCriterion("request_add is not null");
return (Criteria) this;
}
public Criteria andRequestAddEqualTo(String value) {
addCriterion("request_add =", value, "requestAdd");
return (Criteria) this;
}
public Criteria andRequestAddNotEqualTo(String value) {
addCriterion("request_add <>", value, "requestAdd");
return (Criteria) this;
}
public Criteria andRequestAddGreaterThan(String value) {
addCriterion("request_add >", value, "requestAdd");
return (Criteria) this;
}
public Criteria andRequestAddGreaterThanOrEqualTo(String value) {
addCriterion("request_add >=", value, "requestAdd");
return (Criteria) this;
}
public Criteria andRequestAddLessThan(String value) {
addCriterion("request_add <", value, "requestAdd");
return (Criteria) this;
}
public Criteria andRequestAddLessThanOrEqualTo(String value) {
addCriterion("request_add <=", value, "requestAdd");
return (Criteria) this;
}
public Criteria andRequestAddLike(String value) {
addCriterion("request_add like", value, "requestAdd");
return (Criteria) this;
}
public Criteria andRequestAddNotLike(String value) {
addCriterion("request_add not like", value, "requestAdd");
return (Criteria) this;
}
public Criteria andRequestAddIn(List<String> values) {
addCriterion("request_add in", values, "requestAdd");
return (Criteria) this;
}
public Criteria andRequestAddNotIn(List<String> values) {
addCriterion("request_add not in", values, "requestAdd");
return (Criteria) this;
}
public Criteria andRequestAddBetween(String value1, String value2) {
addCriterion("request_add between", value1, value2, "requestAdd");
return (Criteria) this;
}
public Criteria andRequestAddNotBetween(String value1, String value2) {
addCriterion("request_add not between", value1, value2, "requestAdd");
return (Criteria) this;
}
public Criteria andMenuStatusIsNull() {
addCriterion("menu_status is null");
return (Criteria) this;
}
public Criteria andMenuStatusIsNotNull() {
addCriterion("menu_status is not null");
return (Criteria) this;
}
public Criteria andMenuStatusEqualTo(Byte value) {
addCriterion("menu_status =", value, "menuStatus");
return (Criteria) this;
}
public Criteria andMenuStatusNotEqualTo(Byte value) {
addCriterion("menu_status <>", value, "menuStatus");
return (Criteria) this;
}
public Criteria andMenuStatusGreaterThan(Byte value) {
addCriterion("menu_status >", value, "menuStatus");
return (Criteria) this;
}
public Criteria andMenuStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("menu_status >=", value, "menuStatus");
return (Criteria) this;
}
public Criteria andMenuStatusLessThan(Byte value) {
addCriterion("menu_status <", value, "menuStatus");
return (Criteria) this;
}
public Criteria andMenuStatusLessThanOrEqualTo(Byte value) {
addCriterion("menu_status <=", value, "menuStatus");
return (Criteria) this;
}
public Criteria andMenuStatusIn(List<Byte> values) {
addCriterion("menu_status in", values, "menuStatus");
return (Criteria) this;
}
public Criteria andMenuStatusNotIn(List<Byte> values) {
addCriterion("menu_status not in", values, "menuStatus");
return (Criteria) this;
}
public Criteria andMenuStatusBetween(Byte value1, Byte value2) {
addCriterion("menu_status between", value1, value2, "menuStatus");
return (Criteria) this;
}
public Criteria andMenuStatusNotBetween(Byte value1, Byte value2) {
addCriterion("menu_status not between", value1, value2, "menuStatus");
return (Criteria) this;
}
public Criteria andMenuTypeIsNull() {
addCriterion("menu_type is null");
return (Criteria) this;
}
public Criteria andMenuTypeIsNotNull() {
addCriterion("menu_type is not null");
return (Criteria) this;
}
public Criteria andMenuTypeEqualTo(Byte value) {
addCriterion("menu_type =", value, "menuType");
return (Criteria) this;
}
public Criteria andMenuTypeNotEqualTo(Byte value) {
addCriterion("menu_type <>", value, "menuType");
return (Criteria) this;
}
public Criteria andMenuTypeGreaterThan(Byte value) {
addCriterion("menu_type >", value, "menuType");
return (Criteria) this;
}
public Criteria andMenuTypeGreaterThanOrEqualTo(Byte value) {
addCriterion("menu_type >=", value, "menuType");
return (Criteria) this;
}
public Criteria andMenuTypeLessThan(Byte value) {
addCriterion("menu_type <", value, "menuType");
return (Criteria) this;
}
public Criteria andMenuTypeLessThanOrEqualTo(Byte value) {
addCriterion("menu_type <=", value, "menuType");
return (Criteria) this;
}
public Criteria andMenuTypeIn(List<Byte> values) {
addCriterion("menu_type in", values, "menuType");
return (Criteria) this;
}
public Criteria andMenuTypeNotIn(List<Byte> values) {
addCriterion("menu_type not in", values, "menuType");
return (Criteria) this;
}
public Criteria andMenuTypeBetween(Byte value1, Byte value2) {
addCriterion("menu_type between", value1, value2, "menuType");
return (Criteria) this;
}
public Criteria andMenuTypeNotBetween(Byte value1, Byte value2) {
addCriterion("menu_type not between", value1, value2, "menuType");
return (Criteria) this;
}
public Criteria andMenuIconIsNull() {
addCriterion("menu_icon is null");
return (Criteria) this;
}
public Criteria andMenuIconIsNotNull() {
addCriterion("menu_icon is not null");
return (Criteria) this;
}
public Criteria andMenuIconEqualTo(String value) {
addCriterion("menu_icon =", value, "menuIcon");
return (Criteria) this;
}
public Criteria andMenuIconNotEqualTo(String value) {
addCriterion("menu_icon <>", value, "menuIcon");
return (Criteria) this;
}
public Criteria andMenuIconGreaterThan(String value) {
addCriterion("menu_icon >", value, "menuIcon");
return (Criteria) this;
}
public Criteria andMenuIconGreaterThanOrEqualTo(String value) {
addCriterion("menu_icon >=", value, "menuIcon");
return (Criteria) this;
}
public Criteria andMenuIconLessThan(String value) {
addCriterion("menu_icon <", value, "menuIcon");
return (Criteria) this;
}
public Criteria andMenuIconLessThanOrEqualTo(String value) {
addCriterion("menu_icon <=", value, "menuIcon");
return (Criteria) this;
}
public Criteria andMenuIconLike(String value) {
addCriterion("menu_icon like", value, "menuIcon");
return (Criteria) this;
}
public Criteria andMenuIconNotLike(String value) {
addCriterion("menu_icon not like", value, "menuIcon");
return (Criteria) this;
}
public Criteria andMenuIconIn(List<String> values) {
addCriterion("menu_icon in", values, "menuIcon");
return (Criteria) this;
}
public Criteria andMenuIconNotIn(List<String> values) {
addCriterion("menu_icon not in", values, "menuIcon");
return (Criteria) this;
}
public Criteria andMenuIconBetween(String value1, String value2) {
addCriterion("menu_icon between", value1, value2, "menuIcon");
return (Criteria) this;
}
public Criteria andMenuIconNotBetween(String value1, String value2) {
addCriterion("menu_icon not between", value1, value2, "menuIcon");
return (Criteria) this;
}
public Criteria andIsShowIsNull() {
addCriterion("\"is_ show\" is null");
return (Criteria) this;
}
public Criteria andIsShowIsNotNull() {
addCriterion("\"is_ show\" is not null");
return (Criteria) this;
}
public Criteria andIsShowEqualTo(Byte value) {
addCriterion("\"is_ show\" =", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowNotEqualTo(Byte value) {
addCriterion("\"is_ show\" <>", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowGreaterThan(Byte value) {
addCriterion("\"is_ show\" >", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowGreaterThanOrEqualTo(Byte value) {
addCriterion("\"is_ show\" >=", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowLessThan(Byte value) {
addCriterion("\"is_ show\" <", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowLessThanOrEqualTo(Byte value) {
addCriterion("\"is_ show\" <=", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowIn(List<Byte> values) {
addCriterion("\"is_ show\" in", values, "isShow");
return (Criteria) this;
}
public Criteria andIsShowNotIn(List<Byte> values) {
addCriterion("\"is_ show\" not in", values, "isShow");
return (Criteria) this;
}
public Criteria andIsShowBetween(Byte value1, Byte value2) {
addCriterion("\"is_ show\" between", value1, value2, "isShow");
return (Criteria) this;
}
public Criteria andIsShowNotBetween(Byte value1, Byte value2) {
addCriterion("\"is_ show\" not between", value1, value2, "isShow");
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 Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andRemarkIsNull() {
addCriterion("remark is null");
return (Criteria) this;
}
public Criteria andRemarkIsNotNull() {
addCriterion("remark is not null");
return (Criteria) this;
}
public Criteria andRemarkEqualTo(String value) {
addCriterion("remark =", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotEqualTo(String value) {
addCriterion("remark <>", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThan(String value) {
addCriterion("remark >", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
addCriterion("remark >=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThan(String value) {
addCriterion("remark <", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThanOrEqualTo(String value) {
addCriterion("remark <=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLike(String value) {
addCriterion("remark like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotLike(String value) {
addCriterion("remark not like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkIn(List<String> values) {
addCriterion("remark in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotIn(List<String> values) {
addCriterion("remark not in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkBetween(String value1, String value2) {
addCriterion("remark between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotBetween(String value1, String value2) {
addCriterion("remark not between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andUpdateByIsNull() {
addCriterion("update_by is null");
return (Criteria) this;
}
public Criteria andUpdateByIsNotNull() {
addCriterion("update_by is not null");
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(String value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(String value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(String value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(String value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(String value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLike(String value) {
addCriterion("update_by like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotLike(String value) {
addCriterion("update_by not like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<String> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<String> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(String value1, String value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(String value1, String value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andCreateByIsNull() {
addCriterion("create_by is null");
return (Criteria) this;
}
public Criteria andCreateByIsNotNull() {
addCriterion("create_by is not null");
return (Criteria) this;
}
public Criteria andCreateByEqualTo(String value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(String value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(String value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(String value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(String value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(String value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLike(String value) {
addCriterion("create_by like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotLike(String value) {
addCriterion("create_by not like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<String> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<String> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(String value1, String value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(String value1, String value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andLabelIsNull() {
addCriterion("label is null");
return (Criteria) this;
}
public Criteria andLabelIsNotNull() {
addCriterion("label is not null");
return (Criteria) this;
}
public Criteria andLabelEqualTo(Byte value) {
addCriterion("label =", value, "label");
return (Criteria) this;
}
public Criteria andLabelNotEqualTo(Byte value) {
addCriterion("label <>", value, "label");
return (Criteria) this;
}
public Criteria andLabelGreaterThan(Byte value) {
addCriterion("label >", value, "label");
return (Criteria) this;
}
public Criteria andLabelGreaterThanOrEqualTo(Byte value) {
addCriterion("label >=", value, "label");
return (Criteria) this;
}
public Criteria andLabelLessThan(Byte value) {
addCriterion("label <", value, "label");
return (Criteria) this;
}
public Criteria andLabelLessThanOrEqualTo(Byte value) {
addCriterion("label <=", value, "label");
return (Criteria) this;
}
public Criteria andLabelIn(List<Byte> values) {
addCriterion("label in", values, "label");
return (Criteria) this;
}
public Criteria andLabelNotIn(List<Byte> values) {
addCriterion("label not in", values, "label");
return (Criteria) this;
}
public Criteria andLabelBetween(Byte value1, Byte value2) {
addCriterion("label between", value1, value2, "label");
return (Criteria) this;
}
public Criteria andLabelNotBetween(Byte value1, Byte value2) {
addCriterion("label not between", value1, value2, "label");
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);
}
}
}
\ No newline at end of file \ No newline at end of file
package com.glsx.manager.pojo.menu;
import java.util.Date;
public class SysOrganization {
private Integer id;
private Integer parentId;
private String name;
private Byte orgStatus;
private Byte orgType;
private Integer sort;
private Date createTime;
private Date updateTime;
private String remark;
private String updateBy;
private String createBy;
private Byte label;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getParentId() {
return parentId;
}
public void setParentId(Integer parentId) {
this.parentId = parentId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
public Byte getOrgStatus() {
return orgStatus;
}
public void setOrgStatus(Byte orgStatus) {
this.orgStatus = orgStatus;
}
public Byte getOrgType() {
return orgType;
}
public void setOrgType(Byte orgType) {
this.orgType = orgType;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
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 getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy == null ? null : updateBy.trim();
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy == null ? null : createBy.trim();
}
public Byte getLabel() {
return label;
}
public void setLabel(Byte label) {
this.label = label;
}
}
\ No newline at end of file \ No newline at end of file
package com.glsx.manager.pojo.menu;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class SysOrganizationExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SysOrganizationExample() {
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;
}
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 andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Integer value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andParentIdIsNull() {
addCriterion("parent_id is null");
return (Criteria) this;
}
public Criteria andParentIdIsNotNull() {
addCriterion("parent_id is not null");
return (Criteria) this;
}
public Criteria andParentIdEqualTo(Integer value) {
addCriterion("parent_id =", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdNotEqualTo(Integer value) {
addCriterion("parent_id <>", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdGreaterThan(Integer value) {
addCriterion("parent_id >", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdGreaterThanOrEqualTo(Integer value) {
addCriterion("parent_id >=", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdLessThan(Integer value) {
addCriterion("parent_id <", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdLessThanOrEqualTo(Integer value) {
addCriterion("parent_id <=", value, "parentId");
return (Criteria) this;
}
public Criteria andParentIdIn(List<Integer> values) {
addCriterion("parent_id in", values, "parentId");
return (Criteria) this;
}
public Criteria andParentIdNotIn(List<Integer> values) {
addCriterion("parent_id not in", values, "parentId");
return (Criteria) this;
}
public Criteria andParentIdBetween(Integer value1, Integer value2) {
addCriterion("parent_id between", value1, value2, "parentId");
return (Criteria) this;
}
public Criteria andParentIdNotBetween(Integer value1, Integer value2) {
addCriterion("parent_id not between", value1, value2, "parentId");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("name is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("name is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("name =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("name <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("name >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("name >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("name <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("name <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("name like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("name not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("name in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("name not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("name between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("name not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andOrgStatusIsNull() {
addCriterion("org_status is null");
return (Criteria) this;
}
public Criteria andOrgStatusIsNotNull() {
addCriterion("org_status is not null");
return (Criteria) this;
}
public Criteria andOrgStatusEqualTo(Byte value) {
addCriterion("org_status =", value, "orgStatus");
return (Criteria) this;
}
public Criteria andOrgStatusNotEqualTo(Byte value) {
addCriterion("org_status <>", value, "orgStatus");
return (Criteria) this;
}
public Criteria andOrgStatusGreaterThan(Byte value) {
addCriterion("org_status >", value, "orgStatus");
return (Criteria) this;
}
public Criteria andOrgStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("org_status >=", value, "orgStatus");
return (Criteria) this;
}
public Criteria andOrgStatusLessThan(Byte value) {
addCriterion("org_status <", value, "orgStatus");
return (Criteria) this;
}
public Criteria andOrgStatusLessThanOrEqualTo(Byte value) {
addCriterion("org_status <=", value, "orgStatus");
return (Criteria) this;
}
public Criteria andOrgStatusIn(List<Byte> values) {
addCriterion("org_status in", values, "orgStatus");
return (Criteria) this;
}
public Criteria andOrgStatusNotIn(List<Byte> values) {
addCriterion("org_status not in", values, "orgStatus");
return (Criteria) this;
}
public Criteria andOrgStatusBetween(Byte value1, Byte value2) {
addCriterion("org_status between", value1, value2, "orgStatus");
return (Criteria) this;
}
public Criteria andOrgStatusNotBetween(Byte value1, Byte value2) {
addCriterion("org_status not between", value1, value2, "orgStatus");
return (Criteria) this;
}
public Criteria andOrgTypeIsNull() {
addCriterion("org_type is null");
return (Criteria) this;
}
public Criteria andOrgTypeIsNotNull() {
addCriterion("org_type is not null");
return (Criteria) this;
}
public Criteria andOrgTypeEqualTo(Byte value) {
addCriterion("org_type =", value, "orgType");
return (Criteria) this;
}
public Criteria andOrgTypeNotEqualTo(Byte value) {
addCriterion("org_type <>", value, "orgType");
return (Criteria) this;
}
public Criteria andOrgTypeGreaterThan(Byte value) {
addCriterion("org_type >", value, "orgType");
return (Criteria) this;
}
public Criteria andOrgTypeGreaterThanOrEqualTo(Byte value) {
addCriterion("org_type >=", value, "orgType");
return (Criteria) this;
}
public Criteria andOrgTypeLessThan(Byte value) {
addCriterion("org_type <", value, "orgType");
return (Criteria) this;
}
public Criteria andOrgTypeLessThanOrEqualTo(Byte value) {
addCriterion("org_type <=", value, "orgType");
return (Criteria) this;
}
public Criteria andOrgTypeIn(List<Byte> values) {
addCriterion("org_type in", values, "orgType");
return (Criteria) this;
}
public Criteria andOrgTypeNotIn(List<Byte> values) {
addCriterion("org_type not in", values, "orgType");
return (Criteria) this;
}
public Criteria andOrgTypeBetween(Byte value1, Byte value2) {
addCriterion("org_type between", value1, value2, "orgType");
return (Criteria) this;
}
public Criteria andOrgTypeNotBetween(Byte value1, Byte value2) {
addCriterion("org_type not between", value1, value2, "orgType");
return (Criteria) this;
}
public Criteria andSortIsNull() {
addCriterion("sort is null");
return (Criteria) this;
}
public Criteria andSortIsNotNull() {
addCriterion("sort is not null");
return (Criteria) this;
}
public Criteria andSortEqualTo(Integer value) {
addCriterion("sort =", value, "sort");
return (Criteria) this;
}
public Criteria andSortNotEqualTo(Integer value) {
addCriterion("sort <>", value, "sort");
return (Criteria) this;
}
public Criteria andSortGreaterThan(Integer value) {
addCriterion("sort >", value, "sort");
return (Criteria) this;
}
public Criteria andSortGreaterThanOrEqualTo(Integer value) {
addCriterion("sort >=", value, "sort");
return (Criteria) this;
}
public Criteria andSortLessThan(Integer value) {
addCriterion("sort <", value, "sort");
return (Criteria) this;
}
public Criteria andSortLessThanOrEqualTo(Integer value) {
addCriterion("sort <=", value, "sort");
return (Criteria) this;
}
public Criteria andSortIn(List<Integer> values) {
addCriterion("sort in", values, "sort");
return (Criteria) this;
}
public Criteria andSortNotIn(List<Integer> values) {
addCriterion("sort not in", values, "sort");
return (Criteria) this;
}
public Criteria andSortBetween(Integer value1, Integer value2) {
addCriterion("sort between", value1, value2, "sort");
return (Criteria) this;
}
public Criteria andSortNotBetween(Integer value1, Integer value2) {
addCriterion("sort not between", value1, value2, "sort");
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 Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andRemarkIsNull() {
addCriterion("remark is null");
return (Criteria) this;
}
public Criteria andRemarkIsNotNull() {
addCriterion("remark is not null");
return (Criteria) this;
}
public Criteria andRemarkEqualTo(String value) {
addCriterion("remark =", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotEqualTo(String value) {
addCriterion("remark <>", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThan(String value) {
addCriterion("remark >", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
addCriterion("remark >=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThan(String value) {
addCriterion("remark <", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThanOrEqualTo(String value) {
addCriterion("remark <=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLike(String value) {
addCriterion("remark like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotLike(String value) {
addCriterion("remark not like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkIn(List<String> values) {
addCriterion("remark in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotIn(List<String> values) {
addCriterion("remark not in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkBetween(String value1, String value2) {
addCriterion("remark between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotBetween(String value1, String value2) {
addCriterion("remark not between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andUpdateByIsNull() {
addCriterion("update_by is null");
return (Criteria) this;
}
public Criteria andUpdateByIsNotNull() {
addCriterion("update_by is not null");
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(String value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(String value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(String value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(String value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(String value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLike(String value) {
addCriterion("update_by like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotLike(String value) {
addCriterion("update_by not like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<String> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<String> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(String value1, String value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(String value1, String value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andCreateByIsNull() {
addCriterion("create_by is null");
return (Criteria) this;
}
public Criteria andCreateByIsNotNull() {
addCriterion("create_by is not null");
return (Criteria) this;
}
public Criteria andCreateByEqualTo(String value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(String value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(String value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(String value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(String value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(String value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLike(String value) {
addCriterion("create_by like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotLike(String value) {
addCriterion("create_by not like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<String> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<String> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(String value1, String value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(String value1, String value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andLabelIsNull() {
addCriterion("label is null");
return (Criteria) this;
}
public Criteria andLabelIsNotNull() {
addCriterion("label is not null");
return (Criteria) this;
}
public Criteria andLabelEqualTo(Byte value) {
addCriterion("label =", value, "label");
return (Criteria) this;
}
public Criteria andLabelNotEqualTo(Byte value) {
addCriterion("label <>", value, "label");
return (Criteria) this;
}
public Criteria andLabelGreaterThan(Byte value) {
addCriterion("label >", value, "label");
return (Criteria) this;
}
public Criteria andLabelGreaterThanOrEqualTo(Byte value) {
addCriterion("label >=", value, "label");
return (Criteria) this;
}
public Criteria andLabelLessThan(Byte value) {
addCriterion("label <", value, "label");
return (Criteria) this;
}
public Criteria andLabelLessThanOrEqualTo(Byte value) {
addCriterion("label <=", value, "label");
return (Criteria) this;
}
public Criteria andLabelIn(List<Byte> values) {
addCriterion("label in", values, "label");
return (Criteria) this;
}
public Criteria andLabelNotIn(List<Byte> values) {
addCriterion("label not in", values, "label");
return (Criteria) this;
}
public Criteria andLabelBetween(Byte value1, Byte value2) {
addCriterion("label between", value1, value2, "label");
return (Criteria) this;
}
public Criteria andLabelNotBetween(Byte value1, Byte value2) {
addCriterion("label not between", value1, value2, "label");
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);
}
}
}
\ No newline at end of file \ No newline at end of file
<?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.glsx.manager.mapper.SysMenuMapper">
<resultMap id="BaseResultMap" type="com.glsx.manager.pojo.menu.SysMenu">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="parent_id" jdbcType="INTEGER" property="parentId" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="right_des" jdbcType="VARCHAR" property="rightDes" />
<result column="request_add" jdbcType="VARCHAR" property="requestAdd" />
<result column="menu_status" jdbcType="TINYINT" property="menuStatus" />
<result column="menu_type" jdbcType="TINYINT" property="menuType" />
<result column="menu_icon" jdbcType="VARCHAR" property="menuIcon" />
<result column="is_ show" jdbcType="TINYINT" property="isShow" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="label" jdbcType="TINYINT" property="label" />
</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, parent_id, sort, right_des, request_add, menu_status, menu_type, menu_icon,
"is_ show", create_time, update_time, remark, update_by, create_by, label
</sql>
<select id="selectByExample" parameterType="com.glsx.manager.pojo.menu.SysMenuExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
'false' as QUERYID,
<include refid="Base_Column_List" />
from sys_menu
<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 sys_menu
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from sys_menu
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.glsx.manager.pojo.menu.SysMenuExample">
delete from sys_menu
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.glsx.manager.pojo.menu.SysMenu">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sys_menu (name, parent_id, sort,
right_des, request_add, menu_status,
menu_type, menu_icon, "is_ show",
create_time, update_time, remark,
update_by, create_by, label
)
values (#{name,jdbcType=VARCHAR}, #{parentId,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER},
#{rightDes,jdbcType=VARCHAR}, #{requestAdd,jdbcType=VARCHAR}, #{menuStatus,jdbcType=TINYINT},
#{menuType,jdbcType=TINYINT}, #{menuIcon,jdbcType=VARCHAR}, #{isShow,jdbcType=TINYINT},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR},
#{updateBy,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{label,jdbcType=TINYINT}
)
</insert>
<insert id="insertSelective" parameterType="com.glsx.manager.pojo.menu.SysMenu">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sys_menu
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="parentId != null">
parent_id,
</if>
<if test="sort != null">
sort,
</if>
<if test="rightDes != null">
right_des,
</if>
<if test="requestAdd != null">
request_add,
</if>
<if test="menuStatus != null">
menu_status,
</if>
<if test="menuType != null">
menu_type,
</if>
<if test="menuIcon != null">
menu_icon,
</if>
<if test="isShow != null">
"is_ show",
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="remark != null">
remark,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="label != null">
label,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="parentId != null">
#{parentId,jdbcType=INTEGER},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
<if test="rightDes != null">
#{rightDes,jdbcType=VARCHAR},
</if>
<if test="requestAdd != null">
#{requestAdd,jdbcType=VARCHAR},
</if>
<if test="menuStatus != null">
#{menuStatus,jdbcType=TINYINT},
</if>
<if test="menuType != null">
#{menuType,jdbcType=TINYINT},
</if>
<if test="menuIcon != null">
#{menuIcon,jdbcType=VARCHAR},
</if>
<if test="isShow != null">
#{isShow,jdbcType=TINYINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="remark != null">
#{remark,jdbcType=VARCHAR},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
</if>
<if test="label != null">
#{label,jdbcType=TINYINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.glsx.manager.pojo.menu.SysMenuExample" resultType="java.lang.Long">
select count(*) from sys_menu
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sys_menu
<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.parentId != null">
parent_id = #{record.parentId,jdbcType=INTEGER},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
<if test="record.rightDes != null">
right_des = #{record.rightDes,jdbcType=VARCHAR},
</if>
<if test="record.requestAdd != null">
request_add = #{record.requestAdd,jdbcType=VARCHAR},
</if>
<if test="record.menuStatus != null">
menu_status = #{record.menuStatus,jdbcType=TINYINT},
</if>
<if test="record.menuType != null">
menu_type = #{record.menuType,jdbcType=TINYINT},
</if>
<if test="record.menuIcon != null">
menu_icon = #{record.menuIcon,jdbcType=VARCHAR},
</if>
<if test="record.isShow != null">
"is_ show" = #{record.isShow,jdbcType=TINYINT},
</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.remark != null">
remark = #{record.remark,jdbcType=VARCHAR},
</if>
<if test="record.updateBy != null">
update_by = #{record.updateBy,jdbcType=VARCHAR},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
</if>
<if test="record.label != null">
label = #{record.label,jdbcType=TINYINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sys_menu
set id = #{record.id,jdbcType=INTEGER},
name = #{record.name,jdbcType=VARCHAR},
parent_id = #{record.parentId,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER},
right_des = #{record.rightDes,jdbcType=VARCHAR},
request_add = #{record.requestAdd,jdbcType=VARCHAR},
menu_status = #{record.menuStatus,jdbcType=TINYINT},
menu_type = #{record.menuType,jdbcType=TINYINT},
menu_icon = #{record.menuIcon,jdbcType=VARCHAR},
"is_ show" = #{record.isShow,jdbcType=TINYINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
remark = #{record.remark,jdbcType=VARCHAR},
update_by = #{record.updateBy,jdbcType=VARCHAR},
create_by = #{record.createBy,jdbcType=VARCHAR},
label = #{record.label,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.glsx.manager.pojo.menu.SysMenu">
update sys_menu
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="parentId != null">
parent_id = #{parentId,jdbcType=INTEGER},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
<if test="rightDes != null">
right_des = #{rightDes,jdbcType=VARCHAR},
</if>
<if test="requestAdd != null">
request_add = #{requestAdd,jdbcType=VARCHAR},
</if>
<if test="menuStatus != null">
menu_status = #{menuStatus,jdbcType=TINYINT},
</if>
<if test="menuType != null">
menu_type = #{menuType,jdbcType=TINYINT},
</if>
<if test="menuIcon != null">
menu_icon = #{menuIcon,jdbcType=VARCHAR},
</if>
<if test="isShow != null">
"is_ show" = #{isShow,jdbcType=TINYINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="remark != null">
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=VARCHAR},
</if>
<if test="label != null">
label = #{label,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.glsx.manager.pojo.menu.SysMenu">
update sys_menu
set name = #{name,jdbcType=VARCHAR},
parent_id = #{parentId,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER},
right_des = #{rightDes,jdbcType=VARCHAR},
request_add = #{requestAdd,jdbcType=VARCHAR},
menu_status = #{menuStatus,jdbcType=TINYINT},
menu_type = #{menuType,jdbcType=TINYINT},
menu_icon = #{menuIcon,jdbcType=VARCHAR},
"is_ show" = #{isShow,jdbcType=TINYINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR},
label = #{label,jdbcType=TINYINT}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file \ No newline at end of file
<?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.glsx.manager.mapper.SysOrganizationMapper">
<resultMap id="BaseResultMap" type="com.glsx.manager.pojo.menu.SysOrganization">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="parent_id" jdbcType="INTEGER" property="parentId" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="org_status" jdbcType="TINYINT" property="orgStatus" />
<result column="org_type" jdbcType="TINYINT" property="orgType" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="label" jdbcType="TINYINT" property="label" />
</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, parent_id, name, org_status, org_type, sort, create_time, update_time, remark,
update_by, create_by, label
</sql>
<select id="selectByExample" parameterType="com.glsx.manager.pojo.menu.SysOrganizationExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
'false' as QUERYID,
<include refid="Base_Column_List" />
from sys_organization
<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 sys_organization
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from sys_organization
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.glsx.manager.pojo.menu.SysOrganizationExample">
delete from sys_organization
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.glsx.manager.pojo.menu.SysOrganization">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sys_organization (parent_id, name, org_status,
org_type, sort, create_time,
update_time, remark, update_by,
create_by, label)
values (#{parentId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{orgStatus,jdbcType=TINYINT},
#{orgType,jdbcType=TINYINT}, #{sort,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR}, #{label,jdbcType=TINYINT})
</insert>
<insert id="insertSelective" parameterType="com.glsx.manager.pojo.menu.SysOrganization">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sys_organization
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="parentId != null">
parent_id,
</if>
<if test="name != null">
name,
</if>
<if test="orgStatus != null">
org_status,
</if>
<if test="orgType != null">
org_type,
</if>
<if test="sort != null">
sort,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="remark != null">
remark,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="label != null">
label,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="parentId != null">
#{parentId,jdbcType=INTEGER},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="orgStatus != null">
#{orgStatus,jdbcType=TINYINT},
</if>
<if test="orgType != null">
#{orgType,jdbcType=TINYINT},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="remark != null">
#{remark,jdbcType=VARCHAR},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
</if>
<if test="label != null">
#{label,jdbcType=TINYINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.glsx.manager.pojo.menu.SysOrganizationExample" resultType="java.lang.Long">
select count(*) from sys_organization
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sys_organization
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.parentId != null">
parent_id = #{record.parentId,jdbcType=INTEGER},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.orgStatus != null">
org_status = #{record.orgStatus,jdbcType=TINYINT},
</if>
<if test="record.orgType != null">
org_type = #{record.orgType,jdbcType=TINYINT},
</if>
<if test="record.sort != null">
sort = #{record.sort,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.remark != null">
remark = #{record.remark,jdbcType=VARCHAR},
</if>
<if test="record.updateBy != null">
update_by = #{record.updateBy,jdbcType=VARCHAR},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
</if>
<if test="record.label != null">
label = #{record.label,jdbcType=TINYINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sys_organization
set id = #{record.id,jdbcType=INTEGER},
parent_id = #{record.parentId,jdbcType=INTEGER},
name = #{record.name,jdbcType=VARCHAR},
org_status = #{record.orgStatus,jdbcType=TINYINT},
org_type = #{record.orgType,jdbcType=TINYINT},
sort = #{record.sort,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
remark = #{record.remark,jdbcType=VARCHAR},
update_by = #{record.updateBy,jdbcType=VARCHAR},
create_by = #{record.createBy,jdbcType=VARCHAR},
label = #{record.label,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.glsx.manager.pojo.menu.SysOrganization">
update sys_organization
<set>
<if test="parentId != null">
parent_id = #{parentId,jdbcType=INTEGER},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="orgStatus != null">
org_status = #{orgStatus,jdbcType=TINYINT},
</if>
<if test="orgType != null">
org_type = #{orgType,jdbcType=TINYINT},
</if>
<if test="sort != null">
sort = #{sort,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="remark != null">
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=VARCHAR},
</if>
<if test="label != null">
label = #{label,jdbcType=TINYINT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.glsx.manager.pojo.menu.SysOrganization">
update sys_organization
set parent_id = #{parentId,jdbcType=INTEGER},
name = #{name,jdbcType=VARCHAR},
org_status = #{orgStatus,jdbcType=TINYINT},
org_type = #{orgType,jdbcType=TINYINT},
sort = #{sort,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR},
label = #{label,jdbcType=TINYINT}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!