Browse Source

delete:删除无效代码

yonge 5 years ago
parent
commit
30c3128150

+ 0 - 92
mec-auth/mec-auth-api/src/main/java/com/ym/mec/auth/api/entity/SysDept.java

@@ -1,92 +0,0 @@
-package com.ym.mec.auth.api.entity;
-
-import org.apache.commons.lang3.builder.ToStringBuilder;
-
-/**
- * 对应数据库表(sys_dept):
- */
-public class SysDept {
-
-	/**  */
-	private Integer id;
-	
-	/** 部门名称 */
-	private String name;
-	
-	/** 排序 */
-	private Integer sort;
-	
-	/** 创建时间 */
-	private java.util.Date createTime;
-	
-	/** 修改时间 */
-	private java.util.Date updateTime;
-	
-	/** 是否删除  -1:已删除  0:正常 */
-	private String delFlag;
-	
-	/**  */
-	private Integer parentId;
-
-	public Integer getId() {
-		return id;
-	}
-
-	public void setId(Integer id) {
-		this.id = id;
-	}
-
-	public void setName(String name){
-		this.name = name;
-	}
-	
-	public String getName(){
-		return this.name;
-	}
-			
-	public void setSort(Integer sort){
-		this.sort = sort;
-	}
-	
-	public Integer getSort(){
-		return this.sort;
-	}
-			
-	public void setCreateTime(java.util.Date createTime){
-		this.createTime = createTime;
-	}
-	
-	public java.util.Date getCreateTime(){
-		return this.createTime;
-	}
-			
-	public void setUpdateTime(java.util.Date updateTime){
-		this.updateTime = updateTime;
-	}
-	
-	public java.util.Date getUpdateTime(){
-		return this.updateTime;
-	}
-			
-	public void setDelFlag(String delFlag){
-		this.delFlag = delFlag;
-	}
-	
-	public String getDelFlag(){
-		return this.delFlag;
-	}
-			
-	public void setParentId(Integer parentId){
-		this.parentId = parentId;
-	}
-	
-	public Integer getParentId(){
-		return this.parentId;
-	}
-			
-	@Override
-	public String toString() {
-		return ToStringBuilder.reflectionToString(this);
-	}
-
-}

+ 0 - 37
mec-auth/mec-auth-api/src/main/java/com/ym/mec/auth/api/entity/SysDeptRelation.java

@@ -1,37 +0,0 @@
-package com.ym.mec.auth.api.entity;
-
-import org.apache.commons.lang3.builder.ToStringBuilder;
-
-/**
- * 对应数据库表(sys_dept_relation):
- */
-public class SysDeptRelation {
-
-	/** 祖先节点 */
-	private Integer ancestor;
-	
-	/** 后代节点 */
-	private Integer descendant;
-	
-	public void setAncestor(Integer ancestor){
-		this.ancestor = ancestor;
-	}
-	
-	public Integer getAncestor(){
-		return this.ancestor;
-	}
-			
-	public void setDescendant(Integer descendant){
-		this.descendant = descendant;
-	}
-	
-	public Integer getDescendant(){
-		return this.descendant;
-	}
-			
-	@Override
-	public String toString() {
-		return ToStringBuilder.reflectionToString(this);
-	}
-
-}

+ 0 - 9
mec-auth/mec-auth-server/src/main/java/com/ym/mec/auth/dal/dao/SysDeptDao.java

@@ -1,9 +0,0 @@
-package com.ym.mec.auth.dal.dao;
-
-import com.ym.mec.auth.api.entity.SysDept;
-import com.ym.mec.common.dal.BaseDAO;
-
-public interface SysDeptDao extends BaseDAO<Integer, SysDept> {
-
-	
-}

+ 0 - 9
mec-auth/mec-auth-server/src/main/java/com/ym/mec/auth/dal/dao/SysDeptRelationDao.java

@@ -1,9 +0,0 @@
-package com.ym.mec.auth.dal.dao;
-
-import com.ym.mec.auth.api.entity.SysDeptRelation;
-import com.ym.mec.common.dal.BaseDAO;
-
-public interface SysDeptRelationDao extends BaseDAO<Integer, SysDeptRelation> {
-
-	
-}

+ 0 - 8
mec-auth/mec-auth-server/src/main/java/com/ym/mec/auth/service/SysDeptRelationService.java

@@ -1,8 +0,0 @@
-package com.ym.mec.auth.service;
-
-import com.ym.mec.auth.api.entity.SysDeptRelation;
-import com.ym.mec.common.service.BaseService;
-
-public interface SysDeptRelationService extends BaseService<Integer, SysDeptRelation> {
-
-}

+ 0 - 8
mec-auth/mec-auth-server/src/main/java/com/ym/mec/auth/service/SysDeptService.java

@@ -1,8 +0,0 @@
-package com.ym.mec.auth.service;
-
-import com.ym.mec.auth.api.entity.SysDept;
-import com.ym.mec.common.service.BaseService;
-
-public interface SysDeptService extends BaseService<Integer, SysDept> {
-
-}

+ 0 - 23
mec-auth/mec-auth-server/src/main/java/com/ym/mec/auth/service/impl/SysDeptRelationServiceImpl.java

@@ -1,23 +0,0 @@
-package com.ym.mec.auth.service.impl;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-
-import com.ym.mec.auth.api.entity.SysDeptRelation;
-import com.ym.mec.auth.dal.dao.SysDeptRelationDao;
-import com.ym.mec.auth.service.SysDeptRelationService;
-import com.ym.mec.common.dal.BaseDAO;
-import com.ym.mec.common.service.impl.BaseServiceImpl;
-
-@Service
-public class SysDeptRelationServiceImpl extends BaseServiceImpl<Integer, SysDeptRelation> implements SysDeptRelationService {
-
-	@Autowired
-	private SysDeptRelationDao sysDeptRelationDao;
-
-	@Override
-	public BaseDAO<Integer, SysDeptRelation> getDAO() {
-		return sysDeptRelationDao;
-	}
-
-}

+ 0 - 23
mec-auth/mec-auth-server/src/main/java/com/ym/mec/auth/service/impl/SysDeptServiceImpl.java

@@ -1,23 +0,0 @@
-package com.ym.mec.auth.service.impl;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-
-import com.ym.mec.auth.api.entity.SysDept;
-import com.ym.mec.auth.dal.dao.SysDeptDao;
-import com.ym.mec.auth.service.SysDeptService;
-import com.ym.mec.common.dal.BaseDAO;
-import com.ym.mec.common.service.impl.BaseServiceImpl;
-
-@Service
-public class SysDeptServiceImpl extends BaseServiceImpl<Integer, SysDept>  implements SysDeptService {
-	
-	@Autowired
-	private SysDeptDao sysDeptDao;
-
-	@Override
-	public BaseDAO<Integer, SysDept> getDAO() {
-		return sysDeptDao;
-	}
-	
-}

+ 0 - 76
mec-auth/mec-auth-server/src/main/resources/config/mybatis/SysDeptMapper.xml

@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<!--
-这个文件是自动生成的。
-不要修改此文件。所有改动将在下次重新自动生成时丢失。
--->
-<mapper namespace="com.ym.mec.auth.dal.dao.SysDeptDao">
-	
-	<resultMap type="com.ym.mec.auth.api.entity.SysDept" id="SysDept">
-		<result column="id_" property="id" />
-		<result column="name_" property="name" />
-		<result column="sort_" property="sort" />
-		<result column="create_time_" property="createTime" />
-		<result column="update_time_" property="updateTime" />
-		<result column="del_flag_" property="delFlag" />
-		<result column="parent_id_" property="parentId" />
-	</resultMap>
-	
-	<!-- 根据主键查询一条记录 -->
-	<select id="get" resultMap="SysDept" >
-		SELECT * FROM sys_dept WHERE id_ = #{id}
-	</select>
-	
-	<!-- 全查询 -->
-	<select id="findAll" resultMap="SysDept">
-		SELECT * FROM sys_dept ORDER BY id_
-	</select>
-	
-	<!-- 向数据库增加一条记录 -->
-	<insert id="insert" parameterType="com.ym.mec.auth.api.entity.SysDept" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
-		<!--
-		<selectKey resultClass="int" keyProperty="id" > 
-		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
-		</selectKey>
-		-->
-		INSERT INTO sys_dept (id_,name_,sort,create_time_,update_time_,del_flag_,parent_id_) VALUES(#{id},#{name},#{sort},#{createTime},#{updateTime},#{delFlag},#{parentId})
-	</insert>
-	
-	<!-- 根据主键查询一条记录 -->
-	<update id="update" parameterType="com.ym.mec.auth.api.entity.SysDept">
-		UPDATE sys_dept
-		 <set>
-			 <if test="delFlag != null">
-				 del_flag_ = #{delFlag},
-			 </if>
-			 <if test="updateTime != null">
-				 update_time_ = #{updateTime},
-			 </if>
-			 <if test="parentId != null">
-				 parent_id_ = #{parentId},
-			 </if>
-			 <if test="name != null">
-				 name_ = #{name},
-			 </if>
-			 <if test="sort != null">
-				 sort_ = #{sort},
-			 </if>
-		 </set>
-		 WHERE id_ = #{id}
-	</update>
-	
-	<!-- 根据主键删除一条记录 -->
-	<delete id="delete" >
-		DELETE FROM sys_dept WHERE id_ = #{id}
-	</delete>
-	
-	<!-- 分页查询 -->
-	<select id="queryPage" resultMap="SysDept" parameterType="map">
-		SELECT * FROM sys_dept ORDER BY id_ <include refid="global.limit"/>
-	</select>
-	
-	<!-- 查询当前表的总记录数 -->
-	<select id="queryCount" resultType="int">
-		SELECT COUNT(*) FROM sys_dept
-	</select>
-</mapper>

+ 0 - 48
mec-auth/mec-auth-server/src/main/resources/config/mybatis/SysDeptRelationMapper.xml

@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<!--
-这个文件是自动生成的。
-不要修改此文件。所有改动将在下次重新自动生成时丢失。
--->
-<mapper namespace="com.ym.mec.auth.dal.dao.SysDeptRelationDao">
-	
-	<resultMap type="com.ym.mec.auth.api.entity.SysDeptRelation" id="SysDeptRelation">
-		<result column="ancestor_" property="ancestor" />
-		<result column="descendant_" property="descendant" />
-	</resultMap>
-	
-	<!-- 根据主键查询一条记录 -->
-	<select id="get" resultMap="SysDeptRelation" parameterType="java.util.Map">
-		SELECT * FROM sys_dept_relation WHERE ancestor_ = #{ancestor} AND descendant_ = #{descendant}
-	</select>
-	
-	<!-- 全查询 -->
-	<select id="findAll" resultMap="SysDeptRelation">
-		SELECT * FROM sys_dept_relation ORDER BY ancestor_,descendant_
-	</select>
-	
-	<!-- 向数据库增加一条记录 -->
-	<insert id="insert" parameterType="com.ym.mec.auth.api.entity.SysDeptRelation" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
-		<!--
-		<selectKey resultClass="int" keyProperty="id" > 
-		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
-		</selectKey>
-		-->
-		INSERT INTO sys_dept_relation (ancestor_,descendant_) VALUES(#{ancestor},#{descendant})
-	</insert>
-	
-	<!-- 根据主键删除一条记录 -->
-	<delete id="delete" parameterType="java.util.Map">
-		DELETE FROM sys_dept_relation WHERE ancestor_ = #{ancestor} AND descendant_ = #{descendant}
-	</delete>
-	
-	<!-- 分页查询 -->
-	<select id="queryPage" resultMap="SysDeptRelation" parameterType="map">
-		SELECT * FROM sys_dept_relation ORDER BY ancestor_,descendant_ <include refid="global.limit"/>
-	</select>
-	
-	<!-- 查询当前表的总记录数 -->
-	<select id="queryCount" resultType="int">
-		SELECT COUNT(*) FROM sys_dept_relation
-	</select>
-</mapper>