增加功能配置域字典管理表,功能业务字典管理表两张表的pojo以及dao
This commit is contained in:
184
src/main/java/com/nis/domain/function/FunctionRegionDict.java
Normal file
184
src/main/java/com/nis/domain/function/FunctionRegionDict.java
Normal file
@@ -0,0 +1,184 @@
|
|||||||
|
/**
|
||||||
|
*@Title: FunctionRegionDict.java
|
||||||
|
*@Package com.nis.domain
|
||||||
|
*@Description TODO
|
||||||
|
*@author dell
|
||||||
|
*@date 2018年5月17日 下午2:57:54
|
||||||
|
*@version 版本号
|
||||||
|
*/
|
||||||
|
package com.nis.domain.function;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import com.nis.domain.BaseEntity;
|
||||||
|
import com.nis.domain.SysUser;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ClassName: FunctionRegionDict.java
|
||||||
|
* @Description: TODO
|
||||||
|
* @author (dell)
|
||||||
|
* @date 2018年5月17日 下午2:57:54
|
||||||
|
* @version V1.0
|
||||||
|
*/
|
||||||
|
public class FunctionRegionDict extends BaseEntity<FunctionRegionDict> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么)
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 2488479859091710939L;
|
||||||
|
private Long dictId;
|
||||||
|
private Integer functionId;
|
||||||
|
private String configRegion;
|
||||||
|
private String configDistrict;
|
||||||
|
private String configDesc;
|
||||||
|
private Integer isValid;
|
||||||
|
private SysUser creator;
|
||||||
|
private Date createTime;
|
||||||
|
private SysUser editor;
|
||||||
|
private Date editTime;
|
||||||
|
/**
|
||||||
|
* dictId
|
||||||
|
* @return dictId
|
||||||
|
*/
|
||||||
|
|
||||||
|
public Long getDictId() {
|
||||||
|
return dictId;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param dictId the dictId to set
|
||||||
|
*/
|
||||||
|
public void setDictId(Long dictId) {
|
||||||
|
this.dictId = dictId;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* functionId
|
||||||
|
* @return functionId
|
||||||
|
*/
|
||||||
|
|
||||||
|
public Integer getFunctionId() {
|
||||||
|
return functionId;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param functionId the functionId to set
|
||||||
|
*/
|
||||||
|
public void setFunctionId(Integer functionId) {
|
||||||
|
this.functionId = functionId;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* configRegion
|
||||||
|
* @return configRegion
|
||||||
|
*/
|
||||||
|
|
||||||
|
public String getConfigRegion() {
|
||||||
|
return configRegion;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param configRegion the configRegion to set
|
||||||
|
*/
|
||||||
|
public void setConfigRegion(String configRegion) {
|
||||||
|
this.configRegion = configRegion;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* configDistrict
|
||||||
|
* @return configDistrict
|
||||||
|
*/
|
||||||
|
|
||||||
|
public String getConfigDistrict() {
|
||||||
|
return configDistrict;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param configDistrict the configDistrict to set
|
||||||
|
*/
|
||||||
|
public void setConfigDistrict(String configDistrict) {
|
||||||
|
this.configDistrict = configDistrict;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* configDesc
|
||||||
|
* @return configDesc
|
||||||
|
*/
|
||||||
|
|
||||||
|
public String getConfigDesc() {
|
||||||
|
return configDesc;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param configDesc the configDesc to set
|
||||||
|
*/
|
||||||
|
public void setConfigDesc(String configDesc) {
|
||||||
|
this.configDesc = configDesc;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* isValid
|
||||||
|
* @return isValid
|
||||||
|
*/
|
||||||
|
|
||||||
|
public Integer getIsValid() {
|
||||||
|
return isValid;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param isValid the isValid to set
|
||||||
|
*/
|
||||||
|
public void setIsValid(Integer isValid) {
|
||||||
|
this.isValid = isValid;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* creator
|
||||||
|
* @return creator
|
||||||
|
*/
|
||||||
|
|
||||||
|
public SysUser getCreator() {
|
||||||
|
return creator;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param creator the creator to set
|
||||||
|
*/
|
||||||
|
public void setCreator(SysUser creator) {
|
||||||
|
this.creator = creator;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* createTime
|
||||||
|
* @return createTime
|
||||||
|
*/
|
||||||
|
|
||||||
|
public Date getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param createTime the createTime to set
|
||||||
|
*/
|
||||||
|
public void setCreateTime(Date createTime) {
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* editor
|
||||||
|
* @return editor
|
||||||
|
*/
|
||||||
|
|
||||||
|
public SysUser getEditor() {
|
||||||
|
return editor;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param editor the editor to set
|
||||||
|
*/
|
||||||
|
public void setEditor(SysUser editor) {
|
||||||
|
this.editor = editor;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* editTime
|
||||||
|
* @return editTime
|
||||||
|
*/
|
||||||
|
|
||||||
|
public Date getEditTime() {
|
||||||
|
return editTime;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param editTime the editTime to set
|
||||||
|
*/
|
||||||
|
public void setEditTime(Date editTime) {
|
||||||
|
this.editTime = editTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
213
src/main/java/com/nis/domain/function/FunctionServiceDict.java
Normal file
213
src/main/java/com/nis/domain/function/FunctionServiceDict.java
Normal file
@@ -0,0 +1,213 @@
|
|||||||
|
/**
|
||||||
|
*@Title: FunctionRegionDict.java
|
||||||
|
*@Package com.nis.domain
|
||||||
|
*@Description TODO
|
||||||
|
*@author dell
|
||||||
|
*@date 2018年5月17日 下午2:57:54
|
||||||
|
*@version 版本号
|
||||||
|
*/
|
||||||
|
package com.nis.domain.function;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import com.nis.domain.BaseEntity;
|
||||||
|
import com.nis.domain.SysUser;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ClassName: FunctionRegionDict.java
|
||||||
|
* @Description: TODO
|
||||||
|
* @author (dell)
|
||||||
|
* @date 2018年5月17日 下午2:57:54
|
||||||
|
* @version V1.0
|
||||||
|
*/
|
||||||
|
public class FunctionServiceDict extends BaseEntity<FunctionServiceDict> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么)
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -1000395010820223752L;
|
||||||
|
private Long dictId;
|
||||||
|
private Integer functionId;
|
||||||
|
private Integer protocolId;
|
||||||
|
private Integer action;
|
||||||
|
private Integer serviceId;
|
||||||
|
private String serviceName;
|
||||||
|
private String serviceDesc;
|
||||||
|
private Integer isValid;
|
||||||
|
private SysUser creator;
|
||||||
|
private Date createTime;
|
||||||
|
private SysUser editor;
|
||||||
|
private Date editTime;
|
||||||
|
/**
|
||||||
|
* dictId
|
||||||
|
* @return dictId
|
||||||
|
*/
|
||||||
|
|
||||||
|
public Long getDictId() {
|
||||||
|
return dictId;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param dictId the dictId to set
|
||||||
|
*/
|
||||||
|
public void setDictId(Long dictId) {
|
||||||
|
this.dictId = dictId;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* functionId
|
||||||
|
* @return functionId
|
||||||
|
*/
|
||||||
|
|
||||||
|
public Integer getFunctionId() {
|
||||||
|
return functionId;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param functionId the functionId to set
|
||||||
|
*/
|
||||||
|
public void setFunctionId(Integer functionId) {
|
||||||
|
this.functionId = functionId;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* protocolId
|
||||||
|
* @return protocolId
|
||||||
|
*/
|
||||||
|
|
||||||
|
public Integer getProtocolId() {
|
||||||
|
return protocolId;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param protocolId the protocolId to set
|
||||||
|
*/
|
||||||
|
public void setProtocolId(Integer protocolId) {
|
||||||
|
this.protocolId = protocolId;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* action
|
||||||
|
* @return action
|
||||||
|
*/
|
||||||
|
|
||||||
|
public Integer getAction() {
|
||||||
|
return action;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param action the action to set
|
||||||
|
*/
|
||||||
|
public void setAction(Integer action) {
|
||||||
|
this.action = action;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* serviceId
|
||||||
|
* @return serviceId
|
||||||
|
*/
|
||||||
|
|
||||||
|
public Integer getServiceId() {
|
||||||
|
return serviceId;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param serviceId the serviceId to set
|
||||||
|
*/
|
||||||
|
public void setServiceId(Integer serviceId) {
|
||||||
|
this.serviceId = serviceId;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* serviceName
|
||||||
|
* @return serviceName
|
||||||
|
*/
|
||||||
|
|
||||||
|
public String getServiceName() {
|
||||||
|
return serviceName;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param serviceName the serviceName to set
|
||||||
|
*/
|
||||||
|
public void setServiceName(String serviceName) {
|
||||||
|
this.serviceName = serviceName;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* serviceDesc
|
||||||
|
* @return serviceDesc
|
||||||
|
*/
|
||||||
|
|
||||||
|
public String getServiceDesc() {
|
||||||
|
return serviceDesc;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param serviceDesc the serviceDesc to set
|
||||||
|
*/
|
||||||
|
public void setServiceDesc(String serviceDesc) {
|
||||||
|
this.serviceDesc = serviceDesc;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* isValid
|
||||||
|
* @return isValid
|
||||||
|
*/
|
||||||
|
|
||||||
|
public Integer getIsValid() {
|
||||||
|
return isValid;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param isValid the isValid to set
|
||||||
|
*/
|
||||||
|
public void setIsValid(Integer isValid) {
|
||||||
|
this.isValid = isValid;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* creator
|
||||||
|
* @return creator
|
||||||
|
*/
|
||||||
|
|
||||||
|
public SysUser getCreator() {
|
||||||
|
return creator;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param creator the creator to set
|
||||||
|
*/
|
||||||
|
public void setCreator(SysUser creator) {
|
||||||
|
this.creator = creator;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* createTime
|
||||||
|
* @return createTime
|
||||||
|
*/
|
||||||
|
|
||||||
|
public Date getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param createTime the createTime to set
|
||||||
|
*/
|
||||||
|
public void setCreateTime(Date createTime) {
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* editor
|
||||||
|
* @return editor
|
||||||
|
*/
|
||||||
|
|
||||||
|
public SysUser getEditor() {
|
||||||
|
return editor;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param editor the editor to set
|
||||||
|
*/
|
||||||
|
public void setEditor(SysUser editor) {
|
||||||
|
this.editor = editor;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* editTime
|
||||||
|
* @return editTime
|
||||||
|
*/
|
||||||
|
|
||||||
|
public Date getEditTime() {
|
||||||
|
return editTime;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param editTime the editTime to set
|
||||||
|
*/
|
||||||
|
public void setEditTime(Date editTime) {
|
||||||
|
this.editTime = editTime;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package com.nis.web.dao.function;
|
||||||
|
|
||||||
|
import com.nis.web.dao.CrudDao;
|
||||||
|
import com.nis.web.dao.MyBatisDao;
|
||||||
|
@MyBatisDao
|
||||||
|
public interface FunctionRegionDictDao extends CrudDao<FunctionRegionDictDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package com.nis.web.dao.function;
|
||||||
|
|
||||||
|
import com.nis.web.dao.CrudDao;
|
||||||
|
import com.nis.web.dao.MyBatisDao;
|
||||||
|
@MyBatisDao
|
||||||
|
public interface FunctionServiceDictDao extends CrudDao<FunctionServiceDictDao> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<?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.nis.web.dao.function.FunctionServiceDictDao">
|
||||||
|
<resultMap id="functionServiceDictMap" type="com.nis.domain.function.FunctionServiceDict">
|
||||||
|
<id column="dict_id" property="dictId"/>
|
||||||
|
<result column="function_id" property="functionId"/>
|
||||||
|
<result column="protocol_id" property="protocolId"/>
|
||||||
|
<result column="action" property="action"/>
|
||||||
|
<result column="service_id" property="serviceId"/>
|
||||||
|
<result column="service_name" property="serviceName"/>
|
||||||
|
<result column="service_desc" property="serviceDesc"/>
|
||||||
|
<result column="is_valid" property="isValid"/>
|
||||||
|
<result column="creator_id" property="creator.id"/>
|
||||||
|
<result column="create_time" property="createTime"/>
|
||||||
|
<result column="editor_id" property="editor.id"/>
|
||||||
|
<result column="edit_time" property="editTime"/>
|
||||||
|
</resultMap>
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
<?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.nis.web.dao.function.FunctionRegionDictDao">
|
||||||
|
<resultMap id="functionRegionDictMap" type="com.nis.domain.function.FunctionRegionDict">
|
||||||
|
<id column="dict_id" property="dictId"/>
|
||||||
|
<result column="config_region" property="configRegion"/>
|
||||||
|
<result column="config_district" property="configDistrict"/>
|
||||||
|
<result column="config_desc" property="configDesc"/>
|
||||||
|
<result column="is_valid" property="isValid"/>
|
||||||
|
<result column="creator_id" property="creator.id"/>
|
||||||
|
<result column="create_time" property="createTime"/>
|
||||||
|
<result column="editor_id" property="editor.id"/>
|
||||||
|
<result column="edit_time" property="editTime"/>
|
||||||
|
</resultMap>
|
||||||
|
</mapper>
|
||||||
Reference in New Issue
Block a user