Commit 12701b7e by duanhq

文件移至用户中心 by duanht 2019/1/23

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@16941 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent ffd0d397
Showing 58 changed files with 1230 additions and 3662 deletions
package com.glsx.manager.mapper;
import java.util.List;
import java.util.Map;
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);
List<SysMenu> findMenuByParams(Map map);
SysMenu findMenuByParentId(@Param("id")Integer id);
}
\ No newline at end of file \ No newline at end of file
package com.glsx.manager.mapper;
import com.glsx.manager.pojo.user.SysMerchantServices;
import com.glsx.manager.pojo.user.SysMerchantServicesExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SysMerchantServicesMapper {
long countByExample(SysMerchantServicesExample example);
int deleteByExample(SysMerchantServicesExample example);
int deleteByPrimaryKey(Integer id);
int insert(SysMerchantServices record);
int insertSelective(SysMerchantServices record);
List<SysMerchantServices> selectByExample(SysMerchantServicesExample example);
SysMerchantServices selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") SysMerchantServices record, @Param("example") SysMerchantServicesExample example);
int updateByExample(@Param("record") SysMerchantServices record, @Param("example") SysMerchantServicesExample example);
int updateByPrimaryKeySelective(SysMerchantServices record);
int updateByPrimaryKey(SysMerchantServices 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 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;
import java.util.List;
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;
private String menuGroup;
private String funcType;
private List<SysMenu> children;
public List<SysMenu> getChildren() {
return children;
}
public void setChildren(List<SysMenu> children) {
this.children = children;
}
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;
}
public String getMenuGroup() {
return menuGroup;
}
public void setMenuGroup(String menuGroup) {
this.menuGroup = menuGroup == null ? null : menuGroup.trim();
}
public String getFuncType() {
return funcType;
}
public void setFuncType(String funcType) {
this.funcType = funcType == null ? null : funcType.trim();
}
}
\ 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 Criteria andMenuGroupIsNull() {
addCriterion("menu_group is null");
return (Criteria) this;
}
public Criteria andMenuGroupIsNotNull() {
addCriterion("menu_group is not null");
return (Criteria) this;
}
public Criteria andMenuGroupEqualTo(String value) {
addCriterion("menu_group =", value, "menuGroup");
return (Criteria) this;
}
public Criteria andMenuGroupNotEqualTo(String value) {
addCriterion("menu_group <>", value, "menuGroup");
return (Criteria) this;
}
public Criteria andMenuGroupGreaterThan(String value) {
addCriterion("menu_group >", value, "menuGroup");
return (Criteria) this;
}
public Criteria andMenuGroupGreaterThanOrEqualTo(String value) {
addCriterion("menu_group >=", value, "menuGroup");
return (Criteria) this;
}
public Criteria andMenuGroupLessThan(String value) {
addCriterion("menu_group <", value, "menuGroup");
return (Criteria) this;
}
public Criteria andMenuGroupLessThanOrEqualTo(String value) {
addCriterion("menu_group <=", value, "menuGroup");
return (Criteria) this;
}
public Criteria andMenuGroupLike(String value) {
addCriterion("menu_group like", value, "menuGroup");
return (Criteria) this;
}
public Criteria andMenuGroupNotLike(String value) {
addCriterion("menu_group not like", value, "menuGroup");
return (Criteria) this;
}
public Criteria andMenuGroupIn(List<String> values) {
addCriterion("menu_group in", values, "menuGroup");
return (Criteria) this;
}
public Criteria andMenuGroupNotIn(List<String> values) {
addCriterion("menu_group not in", values, "menuGroup");
return (Criteria) this;
}
public Criteria andMenuGroupBetween(String value1, String value2) {
addCriterion("menu_group between", value1, value2, "menuGroup");
return (Criteria) this;
}
public Criteria andMenuGroupNotBetween(String value1, String value2) {
addCriterion("menu_group not between", value1, value2, "menuGroup");
return (Criteria) this;
}
public Criteria andFuncTypeIsNull() {
addCriterion("func_type is null");
return (Criteria) this;
}
public Criteria andFuncTypeIsNotNull() {
addCriterion("func_type is not null");
return (Criteria) this;
}
public Criteria andFuncTypeEqualTo(String value) {
addCriterion("func_type =", value, "funcType");
return (Criteria) this;
}
public Criteria andFuncTypeNotEqualTo(String value) {
addCriterion("func_type <>", value, "funcType");
return (Criteria) this;
}
public Criteria andFuncTypeGreaterThan(String value) {
addCriterion("func_type >", value, "funcType");
return (Criteria) this;
}
public Criteria andFuncTypeGreaterThanOrEqualTo(String value) {
addCriterion("func_type >=", value, "funcType");
return (Criteria) this;
}
public Criteria andFuncTypeLessThan(String value) {
addCriterion("func_type <", value, "funcType");
return (Criteria) this;
}
public Criteria andFuncTypeLessThanOrEqualTo(String value) {
addCriterion("func_type <=", value, "funcType");
return (Criteria) this;
}
public Criteria andFuncTypeLike(String value) {
addCriterion("func_type like", value, "funcType");
return (Criteria) this;
}
public Criteria andFuncTypeNotLike(String value) {
addCriterion("func_type not like", value, "funcType");
return (Criteria) this;
}
public Criteria andFuncTypeIn(List<String> values) {
addCriterion("func_type in", values, "funcType");
return (Criteria) this;
}
public Criteria andFuncTypeNotIn(List<String> values) {
addCriterion("func_type not in", values, "funcType");
return (Criteria) this;
}
public Criteria andFuncTypeBetween(String value1, String value2) {
addCriterion("func_type between", value1, value2, "funcType");
return (Criteria) this;
}
public Criteria andFuncTypeNotBetween(String value1, String value2) {
addCriterion("func_type not between", value1, value2, "funcType");
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;
private String orgGroup;
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;
}
public String getOrgGroup() {
return orgGroup;
}
public void setOrgGroup(String orgGroup) {
this.orgGroup = orgGroup == null ? null : orgGroup.trim();
}
}
\ 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 Criteria andOrgGroupIsNull() {
addCriterion("org_group is null");
return (Criteria) this;
}
public Criteria andOrgGroupIsNotNull() {
addCriterion("org_group is not null");
return (Criteria) this;
}
public Criteria andOrgGroupEqualTo(String value) {
addCriterion("org_group =", value, "orgGroup");
return (Criteria) this;
}
public Criteria andOrgGroupNotEqualTo(String value) {
addCriterion("org_group <>", value, "orgGroup");
return (Criteria) this;
}
public Criteria andOrgGroupGreaterThan(String value) {
addCriterion("org_group >", value, "orgGroup");
return (Criteria) this;
}
public Criteria andOrgGroupGreaterThanOrEqualTo(String value) {
addCriterion("org_group >=", value, "orgGroup");
return (Criteria) this;
}
public Criteria andOrgGroupLessThan(String value) {
addCriterion("org_group <", value, "orgGroup");
return (Criteria) this;
}
public Criteria andOrgGroupLessThanOrEqualTo(String value) {
addCriterion("org_group <=", value, "orgGroup");
return (Criteria) this;
}
public Criteria andOrgGroupLike(String value) {
addCriterion("org_group like", value, "orgGroup");
return (Criteria) this;
}
public Criteria andOrgGroupNotLike(String value) {
addCriterion("org_group not like", value, "orgGroup");
return (Criteria) this;
}
public Criteria andOrgGroupIn(List<String> values) {
addCriterion("org_group in", values, "orgGroup");
return (Criteria) this;
}
public Criteria andOrgGroupNotIn(List<String> values) {
addCriterion("org_group not in", values, "orgGroup");
return (Criteria) this;
}
public Criteria andOrgGroupBetween(String value1, String value2) {
addCriterion("org_group between", value1, value2, "orgGroup");
return (Criteria) this;
}
public Criteria andOrgGroupNotBetween(String value1, String value2) {
addCriterion("org_group not between", value1, value2, "orgGroup");
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" />
<result column="menu_group" jdbcType="VARCHAR" property="menuGroup" />
<result column="func_type" jdbcType="VARCHAR" property="funcType" />
</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="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,
func_type
</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>
<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,
menu_group, func_type)
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},
#{menuGroup,jdbcType=VARCHAR}, #{funcType,jdbcType=VARCHAR})
</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>
<if test="menuGroup != null">
menu_group,
</if>
<if test="funcType != null">
func_type,
</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>
<if test="menuGroup != null">
#{menuGroup,jdbcType=VARCHAR},
</if>
<if test="funcType != null">
#{funcType,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<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>
<if test="menuGroup != null">
menu_group = #{menuGroup,jdbcType=VARCHAR},
</if>
<if test="funcType != null">
func_type = #{funcType,jdbcType=VARCHAR},
</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},
menu_group = #{menuGroup,jdbcType=VARCHAR},
func_type = #{funcType,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<resultMap id="recursionMenuMap" type="com.glsx.manager.pojo.menu.SysMenu" extends="BaseResultMap" >
<collection property="children" ofType="com.glsx.manager.pojo.menu.SysMenu" column="{id=id,menu_status=menu_status}"
select="findMenuByParams" />
</resultMap>
<select id="findAllRecursion" resultMap="recursionMenuMap">
SELECT
<include refid="Base_Column_List" />
WHERE parent_id ='' or parent_id is
NULL ORDER BY `sort` ASC
</select>
<select id="findMenuByParams" resultMap="recursionMenuMap" parameterType="java.util.Map" >
SELECT
<include refid="Base_Column_List" />
from sys_menu WHERE 1=1
<if test="id != null">
and parent_id = #{id}
</if>
<if test="menu_status != null">
and menu_status = #{menu_status}
</if>
ORDER BY
`sort` ASC
</select>
<resultMap id="recursionMenuResultMap" type="com.glsx.manager.pojo.menu.SysMenu" extends="BaseResultMap" >
<collection property="children" ofType="com.glsx.manager.pojo.menu.SysMenu" column="{id=id,menu_status=menu_status}"
select="findMenuByParentId" />
</resultMap>
<select id="findMenuByParentId" resultMap="recursionMenuResultMap">
SELECT
<include refid="Base_Column_List" />
from sys_menu WHERE parent_id = #{id}
and menu_status in (0,1)
ORDER BY
`sort` ASC
</select>
</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" />
<result column="org_group" jdbcType="VARCHAR" property="orgGroup" />
</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="Base_Column_List">
id, parent_id, name, org_status, org_type, sort, create_time, update_time, remark,
update_by, create_by, label, org_group
</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>
<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, org_group
)
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}, #{orgGroup,jdbcType=VARCHAR}
)
</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>
<if test="orgGroup != null">
org_group,
</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>
<if test="orgGroup != null">
#{orgGroup,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<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>
<if test="orgGroup != null">
org_group = #{orgGroup,jdbcType=VARCHAR},
</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},
org_group = #{orgGroup,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<resultMap id="recursionOrgMap" type="com.glsx.manager.pojo.menu.SysOrganization" extends="BaseResultMap" >
<collection property="children" ofType="com.glsx.manager.pojo.menu.SysOrganization" column="{id=id,org_status=,org_status}"
select="findOrgByParams" />
</resultMap>
<select id="findOrgByParams" resultMap="recursionOrgMap" parameterType="java.util.Map" >
SELECT
<include refid="Base_Column_List" />
from sys_organization WHERE 1=1
<if test="id != null">
and parent_id = #{id}
</if>
<if test="orgStatus != null">
and org_status = #{orgStatus}
</if>
ORDER BY
`sort` ASC
</select>
<resultMap id="recursionOrgResultMap" type="com.glsx.manager.pojo.menu.SysOrganization" extends="BaseResultMap" >
<collection property="children" ofType="com.glsx.manager.pojo.menu.SysOrganization" column="{id=id,org_status=org_status}"
select="findOrgByParentId" />
</resultMap>
<select id="findOrgByParentId" resultMap="recursionOrgResultMap">
SELECT
<include refid="Base_Column_List" />
from sys_organization WHERE parent_id = #{id}
and org_status in (0,1)
ORDER BY
`sort` ASC
</select>
</mapper>
\ No newline at end of file \ No newline at end of file
package com.glsx.manager.controller; package com.glsx.usercenter.controller;
import java.util.Date; import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
...@@ -7,6 +7,10 @@ import java.util.Map; ...@@ -7,6 +7,10 @@ import java.util.Map;
import javax.validation.groups.Default; import javax.validation.groups.Default;
import com.glsx.usercenter.constants.ResultCodeEnum;
import com.glsx.usercenter.pojo.GroupA;
import com.glsx.usercenter.pojo.dictionary.DictionaryType;
import com.glsx.usercenter.service.DictionaryTypeService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import org.springframework.validation.BindingResult; import org.springframework.validation.BindingResult;
...@@ -18,10 +22,7 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -18,10 +22,7 @@ import org.springframework.web.bind.annotation.RestController;
import com.glsx.common.constants.ResultObject; import com.glsx.common.constants.ResultObject;
import com.glsx.common.utils.Page; import com.glsx.common.utils.Page;
import com.glsx.manager.constants.ResultCodeEnum;
import com.glsx.manager.pojo.GroupA;
import com.glsx.manager.pojo.dictionary.DictionaryType;
import com.glsx.manager.service.DictionaryTypeService;
/** /**
* *
......
package com.glsx.manager.controller; package com.glsx.usercenter.controller;
import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageHelper;
import com.glsx.common.constants.ResultObject; import com.glsx.common.constants.ResultObject;
import com.glsx.common.utils.DateUtil; import com.glsx.common.utils.DateUtil;
import com.glsx.common.utils.Page; import com.glsx.common.utils.Page;
import com.glsx.common.utils.StringUtils; import com.glsx.usercenter.constants.ResultCodeEnum;
import com.glsx.manager.constants.ResultCodeEnum; import com.glsx.usercenter.pojo.role.SysRole;
import com.glsx.manager.pojo.role.SysRole; import com.glsx.usercenter.pojo.vo.RoleQueryVo;
import com.glsx.manager.pojo.vo.RoleQueryVo; import com.glsx.usercenter.service.SysRoleService;
import com.glsx.manager.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.BindingResult; import org.springframework.validation.BindingResult;
......
package com.glsx.manager.controller; package com.glsx.usercenter.controller;
import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageHelper;
import com.glsx.common.constants.ResultObject; import com.glsx.common.constants.ResultObject;
...@@ -6,22 +6,23 @@ import com.glsx.common.utils.DateUtil; ...@@ -6,22 +6,23 @@ import com.glsx.common.utils.DateUtil;
import com.glsx.common.utils.EncryptUtil; import com.glsx.common.utils.EncryptUtil;
import com.glsx.common.utils.Page; import com.glsx.common.utils.Page;
import com.glsx.common.utils.StringUtils; import com.glsx.common.utils.StringUtils;
import com.glsx.manager.constants.Constants;
import com.glsx.manager.constants.ResultCodeEnum; import com.glsx.manager.constants.ResultCodeEnum;
import com.glsx.manager.pojo.user.SysManager; import com.glsx.manager.exception.GlobalExceptionHandler;
import com.glsx.manager.pojo.user.SysMechanic; import com.glsx.manager.pojo.menu.SysOrganization;
import com.glsx.manager.pojo.user.SysMerchant; import com.glsx.manager.pojo.user.*;
import com.glsx.manager.pojo.user.SysUser;
import com.glsx.manager.pojo.vo.UserQueryVo; import com.glsx.manager.pojo.vo.UserQueryVo;
import com.glsx.manager.service.SysUserService; import com.glsx.manager.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.BindingResult; import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.validation.Valid; import javax.validation.Valid;
import java.util.HashMap; import java.io.IOException;
import java.util.List; import java.io.InputStream;
import java.util.Map; import java.util.*;
/** /**
* @author duanht * @author duanht
...@@ -154,6 +155,7 @@ public class UserController extends BaseController { ...@@ -154,6 +155,7 @@ public class UserController extends BaseController {
sysMerchant.setCreateTime(DateUtil.getCurrentDate()); sysMerchant.setCreateTime(DateUtil.getCurrentDate());
//测试 //测试
sysMerchant.setCreateBy("1"); sysMerchant.setCreateBy("1");
sysMerchant.setRolesId(new ArrayList<>(3));
} }
//性别默认为未知 //性别默认为未知
if (StringUtils.isEmpty(sysMerchant.getSex())) { if (StringUtils.isEmpty(sysMerchant.getSex())) {
...@@ -180,11 +182,12 @@ public class UserController extends BaseController { ...@@ -180,11 +182,12 @@ public class UserController extends BaseController {
if (!sysUserService.findByUserName(sysMechanic.getUsername()).isEmpty()) { if (!sysUserService.findByUserName(sysMechanic.getUsername()).isEmpty()) {
return new ResultObject(ResultCodeEnum.FAIL.getCode(), "技工信息已存在"); return new ResultObject(ResultCodeEnum.FAIL.getCode(), "技工信息已存在");
} }
sysMechanic.setUserStatus(3); sysMechanic.setUserStatus(1);
sysMechanic.setPassword(EncryptUtil.PBEEncrypt(sysMechanic.getPassword())); sysMechanic.setPassword(EncryptUtil.PBEEncrypt(sysMechanic.getPassword()));
sysMechanic.setCreateTime(DateUtil.getCurrentDate()); sysMechanic.setCreateTime(DateUtil.getCurrentDate());
//测试 //测试
sysMechanic.setCreateBy("1"); sysMechanic.setCreateBy("1");
sysMechanic.setRolesId(new ArrayList<>(4));
} }
//性别默认为未知 //性别默认为未知
if (StringUtils.isEmpty(sysMechanic.getSex())) { if (StringUtils.isEmpty(sysMechanic.getSex())) {
...@@ -207,7 +210,7 @@ public class UserController extends BaseController { ...@@ -207,7 +210,7 @@ public class UserController extends BaseController {
@ResponseBody @ResponseBody
public ResultObject updatePassword(SysUser sysUser) { public ResultObject updatePassword(SysUser sysUser) {
sysUser.setPassword(EncryptUtil.PBEEncrypt(sysUser.getPassword())); sysUser.setPassword(EncryptUtil.PBEEncrypt(sysUser.getPassword()));
int result = sysUserService.updatePassword(sysUser); int result = sysUserService.updateByPrimaryKeySelective(sysUser);
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(), result); return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(), result);
} }
...@@ -217,7 +220,7 @@ public class UserController extends BaseController { ...@@ -217,7 +220,7 @@ public class UserController extends BaseController {
* @return ResultObject * @return ResultObject
* @author duanht * @author duanht
* @Title: getUserById * @Title: getUserById
* @Description: TODO 根据用户id获取用户信息 * @Description: TODO 根据用户id获取主体信息
*/ */
@RequestMapping(value = "/getUserById", method = {RequestMethod.GET, RequestMethod.POST}) @RequestMapping(value = "/getUserById", method = {RequestMethod.GET, RequestMethod.POST})
@ResponseBody @ResponseBody
...@@ -241,4 +244,45 @@ public class UserController extends BaseController { ...@@ -241,4 +244,45 @@ public class UserController extends BaseController {
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(), result); return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(), result);
} }
/**
* @param sysUser
* @return ResultObject
* @author duanht
* @Title: deleteUser
* @Description: TODO 技工审核
*/
@RequestMapping(value = "/checkSysMechanic", method = {RequestMethod.GET, RequestMethod.POST})
@ResponseBody
@Transactional(rollbackFor = Exception.class)
public ResultObject checkSysMechanic(SysUser sysUser) {
int result = sysUserService.updateByPrimaryKeySelective(sysUser);
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(), result);
}
/**
* @return ResultObject
* @author duanht
* @Title: getUserOrg
* @Description: TODO 获取当前用户下的数据权限
*/
@RequestMapping(value = "/getUserOrg", method = {RequestMethod.GET, RequestMethod.POST})
@ResponseBody
@Transactional(rollbackFor = Exception.class)
public ResultObject getUserOrg() {
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(),sysUserService.getUserOrg(1));
}
/**
* @return ResultObject
* @author duanht
* @Title: bindingService
* @Description: TODO 绑定服务商
*/
@RequestMapping(value = "/bindingService", method = {RequestMethod.GET, RequestMethod.POST})
@ResponseBody
@Transactional(rollbackFor = Exception.class)
public ResultObject bindingService(SysResourceMatching sysResourceMatching , String serviceItem) {
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(),sysUserService.bindingService(sysResourceMatching,serviceItem));
}
} }
package com.glsx.manager.mapper; package com.glsx.usercenter.mapper;
import java.util.List;
import com.glsx.manager.pojo.dictionary.DictionaryType; import com.glsx.usercenter.pojo.dictionary.DictionaryType;
import java.util.List;
/** /**
* *
......
package com.glsx.usercenter.mapper;
import com.glsx.usercenter.pojo.user.SysResourceMatching;
import com.glsx.usercenter.pojo.user.SysResourceMatchingExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface SysResourceMatchingMapper {
long countByExample(SysResourceMatchingExample example);
int deleteByExample(SysResourceMatchingExample example);
int deleteByPrimaryKey(Integer id);
int insert(SysResourceMatching record);
int insertSelective(SysResourceMatching record);
List<SysResourceMatching> selectByExample(SysResourceMatchingExample example);
SysResourceMatching selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") SysResourceMatching record, @Param("example") SysResourceMatchingExample example);
int updateByExample(@Param("record") SysResourceMatching record, @Param("example") SysResourceMatchingExample example);
int updateByPrimaryKeySelective(SysResourceMatching record);
int updateByPrimaryKey(SysResourceMatching record);
}
\ No newline at end of file \ No newline at end of file
package com.glsx.manager.mapper; package com.glsx.usercenter.mapper;
import com.glsx.manager.pojo.menu.SysMenu;
import com.glsx.manager.pojo.role.SysRole; import com.glsx.usercenter.pojo.menu.SysMenu;
import com.glsx.manager.pojo.role.SysRoleExample; import com.glsx.usercenter.pojo.role.SysRole;
import com.glsx.manager.pojo.vo.RoleQueryVo; import com.glsx.usercenter.pojo.role.SysRoleExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
......
package com.glsx.manager.mapper; package com.glsx.usercenter.mapper;
import com.glsx.manager.pojo.role.SysRoleMenu;
import com.glsx.manager.pojo.role.SysRoleMenuExample; import com.glsx.usercenter.pojo.role.SysRoleMenu;
import java.util.List; import com.glsx.usercenter.pojo.role.SysRoleMenuExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface SysRoleMenuMapper { public interface SysRoleMenuMapper {
long countByExample(SysRoleMenuExample example); long countByExample(SysRoleMenuExample example);
......
package com.glsx.manager.mapper; package com.glsx.usercenter.mapper;
import java.util.List;
import com.glsx.manager.pojo.user.*; import com.glsx.usercenter.pojo.user.*;
import com.glsx.manager.pojo.vo.UserQueryVo; import com.glsx.usercenter.pojo.vo.UserQueryVo;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface SysUserMapper { public interface SysUserMapper {
long countByExample(SysUserExample example); long countByExample(SysUserExample example);
......
package com.glsx.manager.mapper; package com.glsx.usercenter.mapper;
import com.glsx.manager.pojo.user.SysUserOrg;
import com.glsx.usercenter.pojo.user.SysUserOrg;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
......
package com.glsx.manager.mapper; package com.glsx.usercenter.mapper;
import java.util.List;
import com.glsx.manager.pojo.user.SysUserRole; import com.glsx.usercenter.pojo.user.SysUserRole;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface SysUserRoleMapper { public interface SysUserRoleMapper {
int deleteByPrimaryKey(Long id); int deleteByPrimaryKey(Long id);
......
package com.glsx.usercenter.mapper;
import com.glsx.usercenter.pojo.user.SysUserServices;
import com.glsx.usercenter.pojo.user.SysUserServicesExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface SysUserServicesMapper {
long countByExample(SysUserServicesExample example);
int deleteByExample(SysUserServicesExample example);
int deleteByPrimaryKey(Integer id);
int insert(SysUserServices record);
int insertSelective(SysUserServices record);
List<SysUserServices> selectByExample(SysUserServicesExample example);
SysUserServices selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") SysUserServices record, @Param("example") SysUserServicesExample example);
int updateByExample(@Param("record") SysUserServices record, @Param("example") SysUserServicesExample example);
int updateByPrimaryKeySelective(SysUserServices record);
int updateByPrimaryKey(SysUserServices record);
int deleteByUserId(@Param(value = "userId") int userId);
}
\ No newline at end of file \ No newline at end of file
package com.glsx.manager.pojo; package com.glsx.usercenter.pojo;
import java.util.Date; import java.util.Date;
......
package com.glsx.manager.pojo; package com.glsx.usercenter.pojo;
/** /**
* *
* @Title GroupA.java * @Title GroupA.java
......
package com.glsx.manager.pojo.dictionary; package com.glsx.usercenter.pojo.dictionary;
public class DictionaryData { public class DictionaryData {
......
package com.glsx.manager.pojo.dictionary; package com.glsx.usercenter.pojo.dictionary;
import com.glsx.usercenter.pojo.BaseModel;
import com.glsx.usercenter.pojo.GroupA;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
import javax.validation.groups.Default; import javax.validation.groups.Default;
import com.glsx.manager.pojo.BaseModel;
import com.glsx.manager.pojo.GroupA;
/** /**
* *
* @Title DictionaryType.java * @Title DictionaryType.java
...@@ -15,7 +17,7 @@ import com.glsx.manager.pojo.GroupA; ...@@ -15,7 +17,7 @@ import com.glsx.manager.pojo.GroupA;
* @date 2019年1月3日 下午4:24:51 * @date 2019年1月3日 下午4:24:51
* @version 1.0.0 * @version 1.0.0
*/ */
public class DictionaryType extends BaseModel{ public class DictionaryType extends BaseModel {
/** /**
* 主键id * 主键id
......
package com.glsx.manager.pojo.role; package com.glsx.usercenter.pojo.role;
import com.glsx.usercenter.pojo.BaseModel;
import com.glsx.usercenter.pojo.menu.SysMenu;
import com.glsx.manager.pojo.BaseModel;
import com.glsx.manager.pojo.menu.SysMenu;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
......
package com.glsx.manager.pojo.role; package com.glsx.usercenter.pojo.role;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
......
package com.glsx.manager.pojo.role; package com.glsx.usercenter.pojo.role;
public class SysRoleMenu { public class SysRoleMenu {
private Integer id; private Integer id;
......
package com.glsx.manager.pojo.role; package com.glsx.usercenter.pojo.role;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
......
package com.glsx.manager.pojo.user; package com.glsx.usercenter.pojo.user;
/** /**
* @author duanht * @author duanht
......
package com.glsx.manager.pojo.user; package com.glsx.usercenter.pojo.user;
import java.util.Date; import java.util.Date;
...@@ -42,14 +42,14 @@ public class SysMechanic extends SysUser{ ...@@ -42,14 +42,14 @@ public class SysMechanic extends SysUser{
private Integer serviceType; private Integer serviceType;
/** /**
*服务项 *身份证号
*/ */
private String dataValue; private String IDCard;
/** /**
*服务项 *技工审核状态(1:待审核 2:审核不通过 3:审核通过)
*/ */
private String IDCard; private Integer mechanicStatus;
public Integer getDistrict() { public Integer getDistrict() {
return district; return district;
...@@ -91,14 +91,6 @@ public class SysMechanic extends SysUser{ ...@@ -91,14 +91,6 @@ public class SysMechanic extends SysUser{
this.dispatchType = dispatchType; this.dispatchType = dispatchType;
} }
public String getDataValue() {
return dataValue;
}
public void setDataValue(String dataValue) {
this.dataValue = dataValue;
}
public Integer getServiceType() { public Integer getServiceType() {
return serviceType; return serviceType;
} }
...@@ -114,4 +106,12 @@ public class SysMechanic extends SysUser{ ...@@ -114,4 +106,12 @@ public class SysMechanic extends SysUser{
public void setIDCard(String IDCard) { public void setIDCard(String IDCard) {
this.IDCard = IDCard; this.IDCard = IDCard;
} }
public Integer getMechanicStatus() {
return mechanicStatus;
}
public void setMechanicStatus(Integer mechanicStatus) {
this.mechanicStatus = mechanicStatus;
}
} }
package com.glsx.manager.pojo.user; package com.glsx.usercenter.pojo.user;
/** /**
* @author duanht * @author duanht
...@@ -32,9 +32,9 @@ public class SysMerchant extends SysUser{ ...@@ -32,9 +32,9 @@ public class SysMerchant extends SysUser{
private Integer serviceType; private Integer serviceType;
/** /**
*服务项 *商户资源匹配状态(1:未绑定服务商;2:已绑定服务商未绑定技工;3:两者都绑定)
*/ */
private String dataValue; private Integer merchantStatus;
public Integer getDistrict() { public Integer getDistrict() {
return district; return district;
...@@ -68,11 +68,11 @@ public class SysMerchant extends SysUser{ ...@@ -68,11 +68,11 @@ public class SysMerchant extends SysUser{
this.serviceType = serviceType; this.serviceType = serviceType;
} }
public String getDataValue() { public Integer getMerchantStatus() {
return dataValue; return merchantStatus;
} }
public void setDataValue(String dataValue) { public void setMerchantStatus(Integer merchantStatus) {
this.dataValue = dataValue; this.merchantStatus = merchantStatus;
} }
} }
package com.glsx.manager.pojo.user; package com.glsx.usercenter.pojo.user;
public class SysMerchantServices { public class SysResourceMatching {
private Integer id; private Integer id;
private Integer merchantId; private Integer merchantId;
private Integer userId;
private Integer serviceId; private Integer serviceId;
public Integer getId() { public Integer getId() {
...@@ -23,6 +25,14 @@ public class SysMerchantServices { ...@@ -23,6 +25,14 @@ public class SysMerchantServices {
this.merchantId = merchantId; this.merchantId = merchantId;
} }
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getServiceId() { public Integer getServiceId() {
return serviceId; return serviceId;
} }
......
package com.glsx.manager.pojo.user; package com.glsx.usercenter.pojo.user;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
public class SysMerchantServicesExample { public class SysResourceMatchingExample {
protected String orderByClause; protected String orderByClause;
protected boolean distinct; protected boolean distinct;
protected List<Criteria> oredCriteria; protected List<Criteria> oredCriteria;
public SysMerchantServicesExample() { public SysResourceMatchingExample() {
oredCriteria = new ArrayList<Criteria>(); oredCriteria = new ArrayList<Criteria>();
} }
...@@ -224,6 +224,66 @@ public class SysMerchantServicesExample { ...@@ -224,6 +224,66 @@ public class SysMerchantServicesExample {
return (Criteria) this; 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(Integer value) {
addCriterion("user_id =", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotEqualTo(Integer value) {
addCriterion("user_id <>", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThan(Integer value) {
addCriterion("user_id >", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
addCriterion("user_id >=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThan(Integer value) {
addCriterion("user_id <", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThanOrEqualTo(Integer value) {
addCriterion("user_id <=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdIn(List<Integer> values) {
addCriterion("user_id in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotIn(List<Integer> values) {
addCriterion("user_id not in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdBetween(Integer value1, Integer value2) {
addCriterion("user_id between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
addCriterion("user_id not between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andServiceIdIsNull() { public Criteria andServiceIdIsNull() {
addCriterion("service_id is null"); addCriterion("service_id is null");
return (Criteria) this; return (Criteria) this;
......
package com.glsx.manager.pojo.user; package com.glsx.usercenter.pojo.user;
import com.glsx.usercenter.pojo.BaseModel;
import com.glsx.manager.pojo.BaseModel;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
...@@ -61,6 +63,11 @@ public class SysUser extends BaseModel { ...@@ -61,6 +63,11 @@ public class SysUser extends BaseModel {
*/ */
private String orgName; private String orgName;
/**
*服务项
*/
private String serviceItems;
private List<Integer> rolesId = new ArrayList<>(); private List<Integer> rolesId = new ArrayList<>();
private List<Integer> orgsId = new ArrayList<>(); private List<Integer> orgsId = new ArrayList<>();
...@@ -189,5 +196,12 @@ public class SysUser extends BaseModel { ...@@ -189,5 +196,12 @@ public class SysUser extends BaseModel {
this.orgName = orgName; this.orgName = orgName;
} }
public String getServiceItems() {
return serviceItems;
}
public void setServiceItems(String serviceItems) {
this.serviceItems = serviceItems;
}
} }
package com.glsx.manager.pojo.user; package com.glsx.usercenter.pojo.user;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
......
package com.glsx.manager.pojo.user; package com.glsx.usercenter.pojo.user;
public class SysUserOrg { public class SysUserOrg {
......
package com.glsx.manager.pojo.user; package com.glsx.usercenter.pojo.user;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
......
package com.glsx.manager.pojo.user; package com.glsx.usercenter.pojo.user;
public class SysUserRole { public class SysUserRole {
......
package com.glsx.manager.pojo.user; package com.glsx.usercenter.pojo.user;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
......
package com.glsx.usercenter.pojo.user;
public class SysUserServices {
private Integer id;
private Integer userId;
private Integer serviceId;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getServiceId() {
return serviceId;
}
public void setServiceId(Integer serviceId) {
this.serviceId = serviceId;
}
}
\ No newline at end of file \ No newline at end of file
package com.glsx.usercenter.pojo.user;
import java.util.ArrayList;
import java.util.List;
public class SysUserServicesExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SysUserServicesExample() {
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 andUserIdIsNull() {
addCriterion("User_id is null");
return (Criteria) this;
}
public Criteria andUserIdIsNotNull() {
addCriterion("User_id is not null");
return (Criteria) this;
}
public Criteria andUserIdEqualTo(Integer value) {
addCriterion("User_id =", value, "UserId");
return (Criteria) this;
}
public Criteria andUserIdNotEqualTo(Integer value) {
addCriterion("User_id <>", value, "UserId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThan(Integer value) {
addCriterion("User_id >", value, "UserId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
addCriterion("User_id >=", value, "UserId");
return (Criteria) this;
}
public Criteria andUserIdLessThan(Integer value) {
addCriterion("User_id <", value, "UserId");
return (Criteria) this;
}
public Criteria andUserIdLessThanOrEqualTo(Integer value) {
addCriterion("User_id <=", value, "UserId");
return (Criteria) this;
}
public Criteria andUserIdIn(List<Integer> values) {
addCriterion("User_id in", values, "UserId");
return (Criteria) this;
}
public Criteria andUserIdNotIn(List<Integer> values) {
addCriterion("User_id not in", values, "UserId");
return (Criteria) this;
}
public Criteria andUserIdBetween(Integer value1, Integer value2) {
addCriterion("User_id between", value1, value2, "UserId");
return (Criteria) this;
}
public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
addCriterion("User_id not between", value1, value2, "UserId");
return (Criteria) this;
}
public Criteria andServiceIdIsNull() {
addCriterion("service_id is null");
return (Criteria) this;
}
public Criteria andServiceIdIsNotNull() {
addCriterion("service_id is not null");
return (Criteria) this;
}
public Criteria andServiceIdEqualTo(Integer value) {
addCriterion("service_id =", value, "serviceId");
return (Criteria) this;
}
public Criteria andServiceIdNotEqualTo(Integer value) {
addCriterion("service_id <>", value, "serviceId");
return (Criteria) this;
}
public Criteria andServiceIdGreaterThan(Integer value) {
addCriterion("service_id >", value, "serviceId");
return (Criteria) this;
}
public Criteria andServiceIdGreaterThanOrEqualTo(Integer value) {
addCriterion("service_id >=", value, "serviceId");
return (Criteria) this;
}
public Criteria andServiceIdLessThan(Integer value) {
addCriterion("service_id <", value, "serviceId");
return (Criteria) this;
}
public Criteria andServiceIdLessThanOrEqualTo(Integer value) {
addCriterion("service_id <=", value, "serviceId");
return (Criteria) this;
}
public Criteria andServiceIdIn(List<Integer> values) {
addCriterion("service_id in", values, "serviceId");
return (Criteria) this;
}
public Criteria andServiceIdNotIn(List<Integer> values) {
addCriterion("service_id not in", values, "serviceId");
return (Criteria) this;
}
public Criteria andServiceIdBetween(Integer value1, Integer value2) {
addCriterion("service_id between", value1, value2, "serviceId");
return (Criteria) this;
}
public Criteria andServiceIdNotBetween(Integer value1, Integer value2) {
addCriterion("service_id not between", value1, value2, "serviceId");
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.vo; package com.glsx.usercenter.pojo.vo;
import java.io.Serializable; import java.io.Serializable;
import java.util.List; import java.util.List;
......
package com.glsx.manager.pojo.vo; package com.glsx.usercenter.pojo.vo;
import java.util.List; import java.util.List;
......
package com.glsx.manager.pojo.vo; package com.glsx.usercenter.pojo.vo;
import java.util.List; import java.util.List;
...@@ -31,6 +31,11 @@ public class UserQueryVo extends BaseQueryVo { ...@@ -31,6 +31,11 @@ public class UserQueryVo extends BaseQueryVo {
private String shopName; private String shopName;
/** /**
* 门店联系人信息(包括手机号和用户名称)
*/
private String shopContactsInfo;
/**
* 所属总部 * 所属总部
*/ */
private String orgName; private String orgName;
...@@ -51,10 +56,12 @@ public class UserQueryVo extends BaseQueryVo { ...@@ -51,10 +56,12 @@ public class UserQueryVo extends BaseQueryVo {
private String name; private String name;
/** /**
* 技工列表类型(0:技工管理列表;1:技工审核列表) * 技工列表类型(0:技工管理列表;1:技工审核列表;2:商户管理列表;3:服务商资源管理列表;4:技工资源管理列表)
*/ */
private String listType; private String listType;
public List<Integer> getIdList() { public List<Integer> getIdList() {
return idList; return idList;
} }
...@@ -135,4 +142,12 @@ public class UserQueryVo extends BaseQueryVo { ...@@ -135,4 +142,12 @@ public class UserQueryVo extends BaseQueryVo {
public void setListType(String listType) { public void setListType(String listType) {
this.listType = listType; this.listType = listType;
} }
public String getShopContactsInfo() {
return shopContactsInfo;
}
public void setShopContactsInfo(String shopContactsInfo) {
this.shopContactsInfo = shopContactsInfo;
}
} }
package com.glsx.manager.service; package com.glsx.usercenter.service;
import java.util.List; import java.util.List;
import com.glsx.common.utils.Page; import com.glsx.common.utils.Page;
import com.glsx.manager.pojo.dictionary.DictionaryType; import com.glsx.usercenter.pojo.dictionary.DictionaryType;
/** /**
* *
......
package com.glsx.manager.service; package com.glsx.usercenter.service;
import com.glsx.manager.pojo.role.SysRole;
import com.glsx.manager.pojo.user.SysUser; import com.glsx.usercenter.pojo.role.SysRole;
import com.glsx.manager.pojo.vo.RoleQueryVo; import com.glsx.usercenter.pojo.vo.RoleQueryVo;
import javax.validation.Valid; import javax.validation.Valid;
import java.util.List; import java.util.List;
......
package com.glsx.manager.service; package com.glsx.usercenter.service;
import com.glsx.manager.pojo.user.SysManager;
import com.glsx.manager.pojo.user.SysMechanic;
import com.glsx.manager.pojo.user.SysMerchant; import com.glsx.usercenter.pojo.menu.SysOrganization;
import com.glsx.manager.pojo.user.SysUser; import com.glsx.usercenter.pojo.user.*;
import com.glsx.manager.pojo.vo.UserQueryVo; import com.glsx.usercenter.pojo.vo.UserQueryVo;
import java.util.List; import java.util.List;
...@@ -99,14 +99,6 @@ public interface SysUserService { ...@@ -99,14 +99,6 @@ public interface SysUserService {
*/ */
int saveSysMechanic(SysMechanic sysMechanic); int saveSysMechanic(SysMechanic sysMechanic);
/**
* @param sysUser
* @return int
* @author duanht
* @Title: resetPassword
* @Description: TODO 修改用户密码
*/
int updatePassword(SysUser sysUser);
/** /**
* @param id * @param id
...@@ -117,6 +109,30 @@ public interface SysUserService { ...@@ -117,6 +109,30 @@ public interface SysUserService {
*/ */
SysUser getUserById(Integer id); SysUser getUserById(Integer id);
/**
* @param sysUser
* @return SysUser
* @author duanht
* @Title: getUserById
* @Description: TODO
*/
int updateByPrimaryKeySelective(SysUser sysUser);
/**
* @param id
* @return SysUser
* @author duanht
* @Title: getUserById
* @Description: TODO 根据id查询数据权限
*/
List<SysOrganization> getUserOrg(int id);
/**
* @param sysResourceMatching,serviceItem
* @return SysUser
* @author duanht
* @Title: getUserById
* @Description: TODO 绑定服务商
*/
int bindingService(SysResourceMatching sysResourceMatching, String serviceItem);
} }
package com.glsx.manager.service.impl; package com.glsx.usercenter.service.impl;
import java.util.List; import java.util.List;
import com.glsx.usercenter.mapper.DictionaryTypeMapper;
import com.glsx.usercenter.pojo.dictionary.DictionaryType;
import com.glsx.usercenter.service.DictionaryTypeService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.github.pagehelper.page.PageMethod; import com.github.pagehelper.page.PageMethod;
import com.glsx.common.utils.Page; import com.glsx.common.utils.Page;
import com.glsx.manager.mapper.DictionaryTypeMapper;
import com.glsx.manager.pojo.dictionary.DictionaryType;
import com.glsx.manager.service.DictionaryTypeService;
/** /**
* *
* @Title DictionaryTypeServiceImpl.java * @Title DictionaryTypeServiceImpl.java
......
package com.glsx.manager.service.impl; package com.glsx.usercenter.service.impl;
import com.glsx.common.utils.DateUtil; import com.glsx.common.utils.DateUtil;
import com.glsx.common.utils.StringUtils; import com.glsx.common.utils.StringUtils;
import com.glsx.manager.mapper.SysRoleMapper; import com.glsx.usercenter.mapper.SysRoleMapper;
import com.glsx.manager.mapper.SysRoleMenuMapper; import com.glsx.usercenter.mapper.SysRoleMenuMapper;
import com.glsx.manager.mapper.SysUserRoleMapper; import com.glsx.usercenter.mapper.SysUserRoleMapper;
import com.glsx.manager.pojo.menu.SysMenu; import com.glsx.usercenter.pojo.menu.SysMenu;
import com.glsx.manager.pojo.role.SysRole; import com.glsx.usercenter.pojo.role.SysRole;
import com.glsx.manager.pojo.role.SysRoleExample; import com.glsx.usercenter.pojo.role.SysRoleExample;
import com.glsx.manager.pojo.role.SysRoleMenu; import com.glsx.usercenter.pojo.role.SysRoleMenu;
import com.glsx.manager.pojo.user.*; import com.glsx.usercenter.pojo.vo.RoleQueryVo;
import com.glsx.manager.pojo.vo.RoleQueryVo; import com.glsx.usercenter.service.SysRoleService;
import com.glsx.manager.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
......
package com.glsx.manager.service.impl; package com.glsx.usercenter.service.impl;
import com.glsx.manager.mapper.SysMerchantServicesMapper;
import com.glsx.manager.mapper.SysUserMapper; import com.glsx.usercenter.mapper.SysUserMapper;
import com.glsx.manager.mapper.SysUserOrgMapper; import com.glsx.usercenter.mapper.SysUserOrgMapper;
import com.glsx.manager.mapper.SysUserRoleMapper; import com.glsx.usercenter.mapper.SysUserRoleMapper;
import com.glsx.manager.pojo.user.*; import com.glsx.usercenter.mapper.SysUserServicesMapper;
import com.glsx.manager.pojo.vo.UserQueryVo; import com.glsx.usercenter.pojo.menu.SysOrganization;
import com.glsx.manager.service.SysUserService; import com.glsx.usercenter.pojo.user.*;
import com.glsx.usercenter.pojo.vo.UserQueryVo;
import com.glsx.usercenter.service.SysUserService;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -36,7 +39,7 @@ public class SysUserServiceImpl implements SysUserService { ...@@ -36,7 +39,7 @@ public class SysUserServiceImpl implements SysUserService {
private SysUserOrgMapper sysUserOrgMapper; private SysUserOrgMapper sysUserOrgMapper;
@Autowired @Autowired
private SysMerchantServicesMapper sysMerchantServicesMapper; private SysUserServicesMapper sysUserServicesMapper;
@Override @Override
public List<SysUser> getAllUserList(UserQueryVo userQueryVo) { public List<SysUser> getAllUserList(UserQueryVo userQueryVo) {
...@@ -55,10 +58,23 @@ public class SysUserServiceImpl implements SysUserService { ...@@ -55,10 +58,23 @@ public class SysUserServiceImpl implements SysUserService {
@Override @Override
public List<SysMerchant> getSysMerchantList(UserQueryVo userQueryVo) { public List<SysMerchant> getSysMerchantList(UserQueryVo userQueryVo) {
String shopContactsInfo = userQueryVo.getShopContactsInfo();
if(StringUtils.isNotEmpty(shopContactsInfo)){
//传入的为手机号
if( StringUtils.isNumeric(shopContactsInfo)){
userQueryVo.setPhoneNumber(shopContactsInfo);
}else{
userQueryVo.setName(shopContactsInfo);
}
}
List<SysMerchant> sysMerchantList = sysUserMapper.getSysMerchantList(userQueryVo); List<SysMerchant> sysMerchantList = sysUserMapper.getSysMerchantList(userQueryVo);
//匹配集团
for (SysMerchant sysMerchant : sysMerchantList) { for (SysMerchant sysMerchant : sysMerchantList) {
//根据商户组织id查询出集团id
} }
return sysMerchantList; return sysMerchantList;
} }
...@@ -109,6 +125,10 @@ public class SysUserServiceImpl implements SysUserService { ...@@ -109,6 +125,10 @@ public class SysUserServiceImpl implements SysUserService {
BeanUtils.copyProperties(sysManager, sysUser); BeanUtils.copyProperties(sysManager, sysUser);
updateRole(userId, sysUser); updateRole(userId, sysUser);
updateData(userId, sysUser); updateData(userId, sysUser);
//服务商需要配置服务项
if (sysUser.getUserType() == 1) {
updateServiceItem(userId, sysUser);
}
return 1; return 1;
} }
...@@ -195,28 +215,14 @@ public class SysUserServiceImpl implements SysUserService { ...@@ -195,28 +215,14 @@ public class SysUserServiceImpl implements SysUserService {
//更新商户详细表 //更新商户详细表
sysUserMapper.updateSysMerchant(sysMerchant); sysUserMapper.updateSysMerchant(sysMerchant);
} }
// 更新服务项 // 更新角色和服务项
updateServiceItem(userId, sysMerchant.getUserId(),sysMerchant.getDataValue()); SysUser sysUser = new SysUser();
BeanUtils.copyProperties(sysMerchant, sysUser);
updateRole(userId, sysUser);
updateServiceItem(userId, sysUser);
return 1; return 1;
} }
private void updateServiceItem(Integer userId, Integer user_id , String serviceItems) {
//如果是更新角色和数据需要先删除原有的连接数据
if (userId == null) {
//普通用户需要根据user_id删除数据而不是自身的主键id
sysUserOrgMapper.deleteByUserId(user_id);
}
for(String item : serviceItems.split(",")){
//根据服务项名称查询id
SysMerchantServices sysMerchantServices = new SysMerchantServices();
sysMerchantServices.setMerchantId(user_id);
// sysMerchantServices.setServiceId();
// sysMerchantServicesMapper.insert();
}
}
@Override @Override
public int saveSysMechanic(SysMechanic sysMechanic) { public int saveSysMechanic(SysMechanic sysMechanic) {
Integer userId = null; Integer userId = null;
...@@ -232,18 +238,51 @@ public class SysUserServiceImpl implements SysUserService { ...@@ -232,18 +238,51 @@ public class SysUserServiceImpl implements SysUserService {
//更新技工详细表 //更新技工详细表
sysUserMapper.updateSysMechanic(sysMechanic); sysUserMapper.updateSysMechanic(sysMechanic);
} }
// 更新服务项 // 更新角色和服务项
updateServiceItem(userId, sysMechanic.getUserId(),sysMechanic.getDataValue()); SysUser sysUser = new SysUser();
BeanUtils.copyProperties(sysMechanic, sysUser);
updateRole(userId, sysUser);
updateServiceItem(userId, sysUser);
return 1; return 1;
} }
private void updateServiceItem(Integer userId, SysUser sysUser) {
//如果是更新角色和数据需要先删除原有的连接数据
if (userId == null) {
//普通用户需要根据user_id删除数据而不是自身的主键id
sysUserOrgMapper.deleteByUserId(sysUser.getUserId());
}
for (String item : sysUser.getServiceItems().split(",")) {
//根据服务项名称查询id
SysUserServices sysMerchantServices = new SysUserServices();
sysMerchantServices.setUserId(sysUser.getUserId());
// sysMerchantServices.setServiceId();
// sysMerchantServicesMapper.insert();
}
}
@Override @Override
public int updatePassword(SysUser sysUser) { public int updateByPrimaryKeySelective(SysUser sysUser) {
return sysUserMapper.updateByPrimaryKeySelective(sysUser); return sysUserMapper.updateByPrimaryKeySelective(sysUser);
} }
@Override @Override
public List<SysOrganization> getUserOrg(int id) {
return null;
}
@Override
public int bindingService(SysResourceMatching sysResourceMatching, String serviceItem) {
return 0;
}
@Override
public SysUser getUserById(Integer id) { public SysUser getUserById(Integer id) {
return sysUserMapper.selectByPrimaryKey(id); return sysUserMapper.selectByPrimaryKey(id);
} }
} }
<?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.usercenter.mapper.SysResourceMatchingMapper">
<resultMap id="BaseResultMap" type="com.glsx.manager.pojo.SysResourceMatching">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="merchant_id" jdbcType="INTEGER" property="merchantId" />
<result column="user_id" jdbcType="INTEGER" property="userId" />
<result column="service_id" jdbcType="INTEGER" property="serviceId" />
</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, merchant_id, user_id, service_id
</sql>
<select id="selectByExample" parameterType="com.glsx.manager.pojo.SysResourceMatchingExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
'false' as QUERYID,
<include refid="Base_Column_List" />
from sys_resource_matching
<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_resource_matching
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from sys_resource_matching
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.glsx.manager.pojo.SysResourceMatchingExample">
delete from sys_resource_matching
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.glsx.manager.pojo.SysResourceMatching">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sys_resource_matching (merchant_id, user_id, service_id
)
values (#{merchantId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{serviceId,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.glsx.manager.pojo.SysResourceMatching">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sys_resource_matching
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="merchantId != null">
merchant_id,
</if>
<if test="userId != null">
user_id,
</if>
<if test="serviceId != null">
service_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="merchantId != null">
#{merchantId,jdbcType=INTEGER},
</if>
<if test="userId != null">
#{userId,jdbcType=INTEGER},
</if>
<if test="serviceId != null">
#{serviceId,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.glsx.manager.pojo.SysResourceMatchingExample" resultType="java.lang.Long">
select count(*) from sys_resource_matching
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sys_resource_matching
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.merchantId != null">
merchant_id = #{record.merchantId,jdbcType=INTEGER},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=INTEGER},
</if>
<if test="record.serviceId != null">
service_id = #{record.serviceId,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sys_resource_matching
set id = #{record.id,jdbcType=INTEGER},
merchant_id = #{record.merchantId,jdbcType=INTEGER},
user_id = #{record.userId,jdbcType=INTEGER},
service_id = #{record.serviceId,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.glsx.manager.pojo.SysResourceMatching">
update sys_resource_matching
<set>
<if test="merchantId != null">
merchant_id = #{merchantId,jdbcType=INTEGER},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=INTEGER},
</if>
<if test="serviceId != null">
service_id = #{serviceId,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.glsx.manager.pojo.SysResourceMatching">
update sys_resource_matching
set merchant_id = #{merchantId,jdbcType=INTEGER},
user_id = #{userId,jdbcType=INTEGER},
service_id = #{serviceId,jdbcType=INTEGER}
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"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glsx.manager.mapper.SysRoleMapper"> <mapper namespace="com.glsx.usercenter.mapper.SysRoleMapper">
<resultMap id="BaseResultMap" type="com.glsx.manager.pojo.role.SysRole"> <resultMap id="BaseResultMap" type="com.glsx.usercenter.pojo.role.SysRole">
<id column="id" jdbcType="INTEGER" property="id"/> <id column="id" jdbcType="INTEGER" property="id"/>
<result column="name" jdbcType="VARCHAR" property="name"/> <result column="name" jdbcType="VARCHAR" property="name"/>
<result column="permission_character" jdbcType="VARCHAR" property="permissionCharacter"/> <result column="permission_character" jdbcType="VARCHAR" property="permissionCharacter"/>
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
id, name, permission_character, sort, role_remark, role_status, create_by, id, name, permission_character, sort, role_remark, role_status, create_by,
create_time, update_by, update_time create_time, update_by, update_time
</sql> </sql>
<select id="selectByExample" parameterType="com.glsx.manager.pojo.role.SysRoleExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.glsx.usercenter.pojo.role.SysRoleExample" resultMap="BaseResultMap">
select select
<if test="distinct"> <if test="distinct">
distinct distinct
...@@ -102,13 +102,13 @@ ...@@ -102,13 +102,13 @@
DELETE FROM sys_role DELETE FROM sys_role
WHERE id = #{id,jdbcType=INTEGER} WHERE id = #{id,jdbcType=INTEGER}
</delete> </delete>
<delete id="deleteByExample" parameterType="com.glsx.manager.pojo.role.SysRoleExample"> <delete id="deleteByExample" parameterType="com.glsx.usercenter.pojo.role.SysRoleExample">
delete from sys_role delete from sys_role
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Example_Where_Clause"/> <include refid="Example_Where_Clause"/>
</if> </if>
</delete> </delete>
<insert id="insert" parameterType="com.glsx.manager.pojo.role.SysRole"> <insert id="insert" parameterType="com.glsx.usercenter.pojo.role.SysRole">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID() SELECT LAST_INSERT_ID()
</selectKey> </selectKey>
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP} #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}
) )
</insert> </insert>
<insert id="insertSelective" parameterType="com.glsx.manager.pojo.role.SysRole"> <insert id="insertSelective" parameterType="com.glsx.usercenter.pojo.role.SysRole">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID() SELECT LAST_INSERT_ID()
</selectKey> </selectKey>
...@@ -185,7 +185,7 @@ ...@@ -185,7 +185,7 @@
</if> </if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="com.glsx.manager.pojo.role.SysRoleExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="com.glsx.usercenter.pojo.role.SysRoleExample" resultType="java.lang.Long">
select count(*) from sys_role select count(*) from sys_role
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Example_Where_Clause"/> <include refid="Example_Where_Clause"/>
...@@ -245,7 +245,7 @@ ...@@ -245,7 +245,7 @@
<include refid="Update_By_Example_Where_Clause"/> <include refid="Update_By_Example_Where_Clause"/>
</if> </if>
</update> </update>
<update id="updateByPrimaryKeySelective" parameterType="com.glsx.manager.pojo.role.SysRole"> <update id="updateByPrimaryKeySelective" parameterType="com.glsx.usercenter.pojo.role.SysRole">
update sys_role update sys_role
<set> <set>
<if test="name != null"> <if test="name != null">
...@@ -278,7 +278,7 @@ ...@@ -278,7 +278,7 @@
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.glsx.manager.pojo.role.SysRole"> <update id="updateByPrimaryKey" parameterType="com.glsx.usercenter.pojo.role.SysRole">
UPDATE sys_role UPDATE sys_role
SET role_name = #{name,jdbcType=VARCHAR}, SET role_name = #{name,jdbcType=VARCHAR},
permission_character = #{permissionCharacter,jdbcType=VARCHAR}, permission_character = #{permissionCharacter,jdbcType=VARCHAR},
......
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glsx.manager.mapper.SysRoleMenuMapper"> <mapper namespace="com.glsx.usercenter.mapper.SysRoleMenuMapper">
<resultMap id="BaseResultMap" type="com.glsx.manager.pojo.role.SysRoleMenu"> <resultMap id="BaseResultMap" type="com.glsx.usercenter.pojo.role.SysRoleMenu">
<id column="id" jdbcType="INTEGER" property="id" /> <id column="id" jdbcType="INTEGER" property="id" />
<result column="role_id" jdbcType="INTEGER" property="roleId" /> <result column="role_id" jdbcType="INTEGER" property="roleId" />
<result column="menu_id" jdbcType="INTEGER" property="menuId" /> <result column="menu_id" jdbcType="INTEGER" property="menuId" />
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, role_id, menu_id id, role_id, menu_id
</sql> </sql>
<select id="selectByExample" parameterType="com.glsx.manager.pojo.role.SysRoleMenuExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.glsx.usercenter.pojo.role.SysRoleMenuExample" resultMap="BaseResultMap">
select select
<if test="distinct"> <if test="distinct">
distinct distinct
...@@ -92,20 +92,20 @@ ...@@ -92,20 +92,20 @@
delete from sys_role_menu delete from sys_role_menu
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</delete> </delete>
<delete id="deleteByExample" parameterType="com.glsx.manager.pojo.role.SysRoleMenuExample"> <delete id="deleteByExample" parameterType="com.glsx.usercenter.pojo.role.SysRoleMenuExample">
delete from sys_role_menu delete from sys_role_menu
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Example_Where_Clause" /> <include refid="Example_Where_Clause" />
</if> </if>
</delete> </delete>
<insert id="insert" parameterType="com.glsx.manager.pojo.role.SysRoleMenu"> <insert id="insert" parameterType="com.glsx.usercenter.pojo.role.SysRoleMenu">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID() SELECT LAST_INSERT_ID()
</selectKey> </selectKey>
insert into sys_role_menu (role_id, menu_id) insert into sys_role_menu (role_id, menu_id)
values (#{roleId,jdbcType=INTEGER}, #{menuId,jdbcType=INTEGER}) values (#{roleId,jdbcType=INTEGER}, #{menuId,jdbcType=INTEGER})
</insert> </insert>
<insert id="insertSelective" parameterType="com.glsx.manager.pojo.role.SysRoleMenu"> <insert id="insertSelective" parameterType="com.glsx.usercenter.pojo.role.SysRoleMenu">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID() SELECT LAST_INSERT_ID()
</selectKey> </selectKey>
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
</if> </if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="com.glsx.manager.pojo.role.SysRoleMenuExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="com.glsx.usercenter.pojo.role.SysRoleMenuExample" resultType="java.lang.Long">
select count(*) from sys_role_menu select count(*) from sys_role_menu
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Example_Where_Clause" /> <include refid="Example_Where_Clause" />
...@@ -159,7 +159,7 @@ ...@@ -159,7 +159,7 @@
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
</update> </update>
<update id="updateByPrimaryKeySelective" parameterType="com.glsx.manager.pojo.role.SysRoleMenu"> <update id="updateByPrimaryKeySelective" parameterType="com.glsx.usercenter.pojo.role.SysRoleMenu">
update sys_role_menu update sys_role_menu
<set> <set>
<if test="roleId != null"> <if test="roleId != null">
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.glsx.manager.pojo.role.SysRoleMenu"> <update id="updateByPrimaryKey" parameterType="com.glsx.usercenter.pojo.role.SysRoleMenu">
update sys_role_menu update sys_role_menu
set role_id = #{roleId,jdbcType=INTEGER}, set role_id = #{roleId,jdbcType=INTEGER},
menu_id = #{menuId,jdbcType=INTEGER} menu_id = #{menuId,jdbcType=INTEGER}
......
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glsx.manager.mapper.SysUserMapper"> <mapper namespace="com.glsx.usercenter.mapper.SysUserMapper">
<resultMap id="BaseResultMap" type="com.glsx.manager.pojo.user.SysUser"> <resultMap id="BaseResultMap" type="com.glsx.usercenter.pojo.user.SysUser">
<id column="id" jdbcType="INTEGER" property="id"/> <id column="id" jdbcType="INTEGER" property="id"/>
<result column="username" jdbcType="VARCHAR" property="username"/> <result column="username" jdbcType="VARCHAR" property="username"/>
<result column="name" jdbcType="VARCHAR" property="name"/> <result column="name" jdbcType="VARCHAR" property="name"/>
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
id, username, name, org_id, phone_number, user_status, create_by, create_time, update_by, id, username, name, org_id, phone_number, user_status, create_by, create_time, update_by,
update_time, password, sex, remark update_time, password, sex, remark
</sql> </sql>
<select id="selectByExample" parameterType="com.glsx.manager.pojo.user.SysUserExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.glsx.usercenter.pojo.user.SysUserExample" resultMap="BaseResultMap">
select select
<if test="distinct"> <if test="distinct">
distinct distinct
...@@ -106,13 +106,13 @@ ...@@ -106,13 +106,13 @@
DELETE FROM sys_user DELETE FROM sys_user
WHERE id = #{id,jdbcType=INTEGER} WHERE id = #{id,jdbcType=INTEGER}
</delete> </delete>
<delete id="deleteByExample" parameterType="com.glsx.manager.pojo.user.SysUserExample"> <delete id="deleteByExample" parameterType="com.glsx.usercenter.pojo.user.SysUserExample">
delete from sys_user delete from sys_user
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Example_Where_Clause"/> <include refid="Example_Where_Clause"/>
</if> </if>
</delete> </delete>
<insert id="insert" parameterType="com.glsx.manager.pojo.user.SysUser"> <insert id="insert" parameterType="com.glsx.usercenter.pojo.user.SysUser">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID() SELECT LAST_INSERT_ID()
</selectKey> </selectKey>
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
#{password,jdbcType=VARCHAR}, #{sex,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{sex,jdbcType=VARCHAR},
#{remark,jdbcType=VARCHAR}) #{remark,jdbcType=VARCHAR})
</insert> </insert>
<insert id="insertSelective" parameterType="com.glsx.manager.pojo.user.SysUser"> <insert id="insertSelective" parameterType="com.glsx.usercenter.pojo.user.SysUser">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID() SELECT LAST_INSERT_ID()
</selectKey> </selectKey>
...@@ -216,7 +216,7 @@ ...@@ -216,7 +216,7 @@
</trim> </trim>
</insert> </insert>
<insert id="insertManager" parameterType="com.glsx.manager.pojo.user.SysManager"> <insert id="insertManager" parameterType="com.glsx.usercenter.pojo.user.SysManager">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID() SELECT LAST_INSERT_ID()
</selectKey> </selectKey>
...@@ -246,7 +246,7 @@ ...@@ -246,7 +246,7 @@
</insert> </insert>
<insert id="insertSysMerchant" parameterType="com.glsx.manager.pojo.user.SysMerchant"> <insert id="insertSysMerchant" parameterType="com.glsx.usercenter.pojo.user.SysMerchant">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID() SELECT LAST_INSERT_ID()
</selectKey> </selectKey>
...@@ -288,7 +288,7 @@ ...@@ -288,7 +288,7 @@
</insert> </insert>
<insert id="insertSysMechanic" parameterType="com.glsx.manager.pojo.user.SysMechanic"> <insert id="insertSysMechanic" parameterType="com.glsx.usercenter.pojo.user.SysMechanic">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID() SELECT LAST_INSERT_ID()
</selectKey> </selectKey>
...@@ -348,7 +348,7 @@ ...@@ -348,7 +348,7 @@
</insert> </insert>
<select id="countByExample" parameterType="com.glsx.manager.pojo.user.SysUserExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="com.glsx.usercenter.pojo.user.SysUserExample" resultType="java.lang.Long">
select count(*) from sys_user select count(*) from sys_user
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Example_Where_Clause"/> <include refid="Example_Where_Clause"/>
...@@ -422,7 +422,7 @@ ...@@ -422,7 +422,7 @@
</update> </update>
<update id="updateByPrimaryKeySelective" parameterType="com.glsx.manager.pojo.user.SysUser"> <update id="updateByPrimaryKeySelective" parameterType="com.glsx.usercenter.pojo.user.SysUser">
update sys_user update sys_user
<set> <set>
<if test="username != null"> <if test="username != null">
...@@ -466,20 +466,20 @@ ...@@ -466,20 +466,20 @@
</update> </update>
<update id="updateManager" parameterType="com.glsx.manager.pojo.user.SysManager"> <update id="updateManager" parameterType="com.glsx.usercenter.pojo.user.SysManager">
update sys_manager update sys_manager
<set> <set>
<if test="mail != null"> <if test="mail != null">
mail = #{mail,jdbcType=VARCHAR}, mail = #{mail,jdbcType=VARCHAR},
</if> </if>
<if test="occupation != null"> <if test="occupation != null">
occupation = #{occupation,jdbcType=VARCHAR}, occupation = #{occupation,jdbcType=VARCHAR},
</if> </if>
</set> </set>
where user_id = #{id,jdbcType=INTEGER} where user_id = #{id,jdbcType=INTEGER}
</update> </update>
<update id="updateSysMerchant" parameterType="com.glsx.manager.pojo.user.SysMerchant"> <update id="updateSysMerchant" parameterType="com.glsx.usercenter.pojo.user.SysMerchant">
update sys_merchant update sys_merchant
<set> <set>
<if test="district != null"> <if test="district != null">
...@@ -499,7 +499,7 @@ ...@@ -499,7 +499,7 @@
</update> </update>
<update id="updateSysMechanic" parameterType="com.glsx.manager.pojo.user.SysMechanic"> <update id="updateSysMechanic" parameterType="com.glsx.usercenter.pojo.user.SysMechanic">
update sys_merchant update sys_merchant
<set> <set>
<if test="district != null"> <if test="district != null">
...@@ -528,7 +528,7 @@ ...@@ -528,7 +528,7 @@
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.glsx.manager.pojo.user.SysUser"> <update id="updateByPrimaryKey" parameterType="com.glsx.usercenter.pojo.user.SysUser">
UPDATE sys_user UPDATE sys_user
SET username = #{username,jdbcType=VARCHAR}, SET username = #{username,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR}, name = #{name,jdbcType=VARCHAR},
...@@ -545,8 +545,8 @@ ...@@ -545,8 +545,8 @@
WHERE id = #{id,jdbcType=INTEGER} WHERE id = #{id,jdbcType=INTEGER}
</update> </update>
<select id="getAllUserList" parameterType="com.glsx.manager.pojo.vo.UserQueryVo" <select id="getAllUserList" parameterType="com.glsx.usercenter.pojo.vo.UserQueryVo"
resultType="com.glsx.manager.pojo.user.SysManager"> resultType="com.glsx.usercenter.pojo.user.SysManager">
SELECT SELECT
u.id, u.id,
username, username,
...@@ -591,8 +591,8 @@ ...@@ -591,8 +591,8 @@
ORDER BY u.id DESC ORDER BY u.id DESC
</select> </select>
<select id="getSysMerchantList" parameterType="com.glsx.manager.pojo.vo.UserQueryVo" <select id="getSysMerchantList" parameterType="com.glsx.usercenter.pojo.vo.UserQueryVo"
resultType="com.glsx.manager.pojo.user.SysMerchant"> resultType="com.glsx.usercenter.pojo.user.SysMerchant">
SELECT SELECT
u.id, u.id,
u.org_id orgId, u.org_id orgId,
...@@ -603,7 +603,8 @@ ...@@ -603,7 +603,8 @@
phone_number phoneNumber, phone_number phoneNumber,
sm.district district, sm.district district,
sm.address address, sm.address address,
sdd.data_value dataValue sdd.data_value dataValue,
sm.merchant_status
FROM FROM
sys_user_org uo sys_user_org uo
LEFT JOIN sys_user u ON uo.org_id = u.org_id LEFT JOIN sys_user u ON uo.org_id = u.org_id
...@@ -633,20 +634,46 @@ ...@@ -633,20 +634,46 @@
and u.phone_number like #{phoneNumber,jdbcType=VARCHAR} and u.phone_number like #{phoneNumber,jdbcType=VARCHAR}
</if> </if>
<choose> <if test="listType == 2">
<when test="userStatus != null"> <choose>
and u.user_status = #{userStatus,jdbcType=TINYINT} <when test="userStatus != null">
</when> and u.user_status = #{userStatus,jdbcType=TINYINT}
<otherwise> </when>
and u.user_status &lt;&gt; 2 <otherwise>
</otherwise> and u.user_status IN (0,1)
</choose> </otherwise>
</choose>
</if>
<if test="listType == 3">
<choose>
<when test="userStatus != null">
and u.user_status = #{userStatus,jdbcType=TINYINT}
</when>
<otherwise>
and u.user_status IN (1)
and sm.merchant_status IN (1,2,3)
</otherwise>
</choose>
</if>
<if test="listType == 4">
<choose>
<when test="userStatus != null">
and u.user_status = #{userStatus,jdbcType=TINYINT}
</when>
<otherwise>
and u.user_status IN (1)
and sm.merchant_status IN (2,3)
</otherwise>
</choose>
</if>
ORDER BY u.id DESC ORDER BY u.id DESC
</select> </select>
<select id="getSysMechanicList" parameterType="com.glsx.manager.pojo.vo.UserQueryVo" <select id="getSysMechanicList" parameterType="com.glsx.usercenter.pojo.vo.UserQueryVo"
resultType="com.glsx.manager.pojo.user.SysMechanic"> resultType="com.glsx.usercenter.pojo.user.SysMechanic">
SELECT SELECT
u.id, u.id,
u.org_id orgId, u.org_id orgId,
...@@ -658,7 +685,8 @@ ...@@ -658,7 +685,8 @@
u.create_time createTime, u.create_time createTime,
GROUP_CONCAT(sdd.data_value SEPARATOR '/') dataValue, GROUP_CONCAT(sdd.data_value SEPARATOR '/') dataValue,
sm.service_type serviceType, sm.service_type serviceType,
sm.IDCard sm.IDCard,
sm.mechanic_status mechanicStatus
FROM FROM
sys_user_org uo sys_user_org uo
LEFT JOIN sys_user u ON uo.org_id = u.org_id LEFT JOIN sys_user u ON uo.org_id = u.org_id
...@@ -693,7 +721,7 @@ ...@@ -693,7 +721,7 @@
</choose> </choose>
</if> </if>
<if test="listType == 2"> <if test="listType == 1">
<choose> <choose>
<when test="userStatus != null"> <when test="userStatus != null">
and u.user_status = #{userStatus,jdbcType=TINYINT} and u.user_status = #{userStatus,jdbcType=TINYINT}
......
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glsx.manager.mapper.SysUserOrgMapper"> <mapper namespace="com.glsx.usercenter.mapper.SysUserOrgMapper">
<resultMap id="BaseResultMap" type="com.glsx.manager.pojo.user.SysUserOrg"> <resultMap id="BaseResultMap" type="com.glsx.usercenter.pojo.user.SysUserOrg">
<id column="id" jdbcType="INTEGER" property="id"/> <id column="id" jdbcType="INTEGER" property="id"/>
<result column="user_id" jdbcType="INTEGER" property="userId"/> <result column="user_id" jdbcType="INTEGER" property="userId"/>
<result column="org_id" jdbcType="INTEGER" property="org_id"/> <result column="org_id" jdbcType="INTEGER" property="org_id"/>
...@@ -19,13 +19,13 @@ ...@@ -19,13 +19,13 @@
DELETE FROM sys_user_org DELETE FROM sys_user_org
WHERE id = #{id,jdbcType=INTEGER} WHERE id = #{id,jdbcType=INTEGER}
</delete> </delete>
<insert id="insert" parameterType="com.glsx.manager.pojo.user.SysUserOrg"> <insert id="insert" parameterType="com.glsx.usercenter.pojo.user.SysUserOrg">
INSERT INTO sys_user_org (id, user_id, org_id INSERT INTO sys_user_org (id, user_id, org_id
) )
VALUES (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{orgId,jdbcType=INTEGER} VALUES (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{orgId,jdbcType=INTEGER}
) )
</insert> </insert>
<insert id="insertSelective" parameterType="com.glsx.manager.pojo.user.SysUserOrg"> <insert id="insertSelective" parameterType="com.glsx.usercenter.pojo.user.SysUserOrg">
insert into sys_user_org insert into sys_user_org
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</if> </if>
</trim> </trim>
</insert> </insert>
<update id="updateByPrimaryKeySelective" parameterType="com.glsx.manager.pojo.user.SysUserOrg"> <update id="updateByPrimaryKeySelective" parameterType="com.glsx.usercenter.pojo.user.SysUserOrg">
update sys_user_org update sys_user_org
<set> <set>
<if test="userId != null"> <if test="userId != null">
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.glsx.manager.pojo.user.SysUserOrg"> <update id="updateByPrimaryKey" parameterType="com.glsx.usercenter.pojo.user.SysUserOrg">
UPDATE sys_user_org UPDATE sys_user_org
SET user_id = #{userId,jdbcType=INTEGER}, SET user_id = #{userId,jdbcType=INTEGER},
org_id = #{orgId,jdbcType=INTEGER} org_id = #{orgId,jdbcType=INTEGER}
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
WHERE user_id = #{userId,jdbcType=INTEGER} WHERE user_id = #{userId,jdbcType=INTEGER}
</delete> </delete>
<select id="getOrgByUserId" parameterType="java.lang.Integer" resultType="com.glsx.manager.pojo.user.SysUserOrg"> <select id="getOrgByUserId" parameterType="java.lang.Integer" resultType="com.glsx.usercenter.pojo.user.SysUserOrg">
SELECT SELECT
so.id orgId, so.id orgId,
so.name orgName so.name orgName
......
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glsx.manager.mapper.SysUserRoleMapper"> <mapper namespace="com.glsx.usercenter.mapper.SysUserRoleMapper">
<resultMap id="BaseResultMap" type="com.glsx.manager.pojo.user.SysUserRole"> <resultMap id="BaseResultMap" type="com.glsx.usercenter.pojo.user.SysUserRole">
<id column="id" jdbcType="INTEGER" property="id"/> <id column="id" jdbcType="INTEGER" property="id"/>
<result column="user_id" jdbcType="INTEGER" property="userId"/> <result column="user_id" jdbcType="INTEGER" property="userId"/>
<result column="role_id" jdbcType="INTEGER" property="roleId"/> <result column="role_id" jdbcType="INTEGER" property="roleId"/>
...@@ -19,13 +19,13 @@ ...@@ -19,13 +19,13 @@
DELETE FROM sys_user_role DELETE FROM sys_user_role
WHERE id = #{id,jdbcType=INTEGER} WHERE id = #{id,jdbcType=INTEGER}
</delete> </delete>
<insert id="insert" parameterType="com.glsx.manager.pojo.user.SysUserRole"> <insert id="insert" parameterType="com.glsx.usercenter.pojo.user.SysUserRole">
INSERT INTO sys_user_role (id, user_id, role_id INSERT INTO sys_user_role (id, user_id, role_id
) )
VALUES (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{roleId,jdbcType=INTEGER} VALUES (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{roleId,jdbcType=INTEGER}
) )
</insert> </insert>
<insert id="insertSelective" parameterType="com.glsx.manager.pojo.user.SysUserRole"> <insert id="insertSelective" parameterType="com.glsx.usercenter.pojo.user.SysUserRole">
insert into sys_user_role insert into sys_user_role
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</if> </if>
</trim> </trim>
</insert> </insert>
<update id="updateByPrimaryKeySelective" parameterType="com.glsx.manager.pojo.user.SysUserRole"> <update id="updateByPrimaryKeySelective" parameterType="com.glsx.usercenter.pojo.user.SysUserRole">
update sys_user_role update sys_user_role
<set> <set>
<if test="userId != null"> <if test="userId != null">
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.glsx.manager.pojo.user.SysUserRole"> <update id="updateByPrimaryKey" parameterType="com.glsx.usercenter.pojo.user.SysUserRole">
UPDATE sys_user_role UPDATE sys_user_role
SET user_id = #{userId,jdbcType=INTEGER}, SET user_id = #{userId,jdbcType=INTEGER},
role_id = #{roleId,jdbcType=INTEGER} role_id = #{roleId,jdbcType=INTEGER}
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
WHERE user_id = #{userId,jdbcType=INTEGER} WHERE user_id = #{userId,jdbcType=INTEGER}
</delete> </delete>
<select id="getRoleByUserId" parameterType="java.lang.Integer" resultType="com.glsx.manager.pojo.user.SysUserRole"> <select id="getRoleByUserId" parameterType="java.lang.Integer" resultType="com.glsx.usercenter.pojo.user.SysUserRole">
SELECT SELECT
sr.id roleId, sr.id roleId,
sr.name roleName sr.name roleName
......
<?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.usercenter.mapper.SysUserServicesMapper">
<resultMap id="BaseResultMap" type="com.glsx.usercenter.pojo.user.SysUserServices">
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="user_id" jdbcType="INTEGER" property="userId"/>
<result column="service_id" jdbcType="INTEGER" property="service_id"/>
</resultMap>
<sql id="Base_Column_List">
id, user_id, service_id
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from sys_user_services
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
DELETE FROM sys_user_services
WHERE id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.glsx.usercenter.pojo.user.SysUserServices">
INSERT INTO sys_user_services (id, user_id, service_id
)
VALUES (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{serviceId,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.glsx.usercenter.pojo.user.SysUserServices">
insert into sys_user_services
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="userId != null">
user_id,
</if>
<if test="serviceId != null">
service_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="userId != null">
#{userId,jdbcType=INTEGER},
</if>
<if test="serviceId != null">
#{serviceId,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.glsx.usercenter.pojo.user.SysUserServices">
update sys_user_services
<set>
<if test="userId != null">
user_id = #{userId,jdbcType=INTEGER},
</if>
<if test="serviceId != null">
service_id = #{serviceId,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.glsx.usercenter.pojo.user.SysUserServices">
UPDATE sys_user_services
SET user_id = #{userId,jdbcType=INTEGER},
service_id = #{serviceId,jdbcType=INTEGER}
WHERE id = #{id,jdbcType=INTEGER}
</update>
<delete id="deleteByUserId" parameterType="java.lang.Integer">
DELETE FROM sys_user_services
WHERE user_id = #{userId,jdbcType=INTEGER}
</delete>
<!--<select id="getOrgByUserId" parameterType="java.lang.Integer" resultTySysUserServicesices">-->
<!--SELECT-->
<!--so.id serviceId,-->
<!--so.name orgName-->
<!--FROM sys_user su LEFT JOIN sys_user_services suo ON su.id = suo.user_id-->
<!--LEFT JOIN sys_organization so ON suo.service_id = so.id-->
<!--WHERE su.id = #{id,jdbcType=TINYINT}-->
<!--</select>-->
</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!