上传后台管理系统代码

This commit is contained in:
xxy
2020-05-06 07:40:43 +08:00
parent 8ba73ed42b
commit ca9fd1c2f7
1182 changed files with 276446 additions and 0 deletions

View File

@ -0,0 +1,35 @@
package com.java2nb.common.dao;
import com.java2nb.common.domain.DictDO;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
/**
* 字典表
*
* @author xiongxy
* @email 1179705413@qq.com
* @date 2019-10-03 15:45:42
*/
@Mapper
public interface DictDao {
DictDO get(Long id);
List<DictDO> list(Map<String, Object> map);
int count(Map<String, Object> map);
int save(DictDO dict);
int update(DictDO dict);
int remove(Long id);
int batchRemove(Long[] ids);
List<DictDO> listType();
}

View File

@ -0,0 +1,32 @@
package com.java2nb.common.dao;
import com.java2nb.common.domain.FileDO;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
/**
* 文件上传
* @author xiongxy
* @email 1179705413@qq.com
* @date 2019-10-03 15:45:42
*/
@Mapper
public interface FileDao {
FileDO get(Long id);
List<FileDO> list(Map<String,Object> map);
int count(Map<String,Object> map);
int save(FileDO file);
int update(FileDO file);
int remove(Long id);
int batchRemove(Long[] ids);
}

View File

@ -0,0 +1,38 @@
package com.java2nb.common.dao;
import java.util.List;
import java.util.Map;
import com.java2nb.common.domain.GenColumnsDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
*
* @author xiongxy
* @email 1179705413@qq.com
* @date 2019-11-22 10:39:29
*/
@Mapper
public interface GenColumnsDao {
GenColumnsDO get(Long id);
List<GenColumnsDO> list(Map<String,Object> map);
int count(Map<String,Object> map);
int save(GenColumnsDO genColumns);
int update(GenColumnsDO genColumns);
int remove(Long id);
int batchRemove(Long[] ids);
void saveBatch(List<GenColumnsDO> list);
void deleteByTableName(@Param("tableName") String tableName);
}

View File

@ -0,0 +1,28 @@
package com.java2nb.common.dao;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
public interface GeneratorMapper {
@Select("select table_name tableName, engine, table_comment tableComment, create_time createTime from information_schema.tables"
+ " where table_schema = (select database()) and table_name like concat('%',#{tableName},'%')")
List<Map<String, Object>> list(@Param("tableName") String tableName);
@Select("select count(*) from information_schema.tables where table_schema = (select database())")
int count(Map<String, Object> map);
@Select("select table_name tableName, engine, table_comment tableComment, create_time createTime from information_schema.tables \r\n"
+ " where table_schema = (select database()) and table_name = #{tableName}")
Map<String, String> get(String tableName);
@Select("select column_name columnName, data_type dataType, column_comment columnComment, column_key columnKey, extra from information_schema.columns\r\n"
+ " where table_name = #{tableName} and table_schema = (select database()) order by ordinal_position")
List<Map<String, String>> listColumns(String tableName);
@Select("select column_name columnName, data_type dataType, column_comment columnComment, column_key columnKey, extra from information_schema.columns\r\n"
+ " where table_name = #{tableName} and table_schema = (select database()) and column_key = 'PRI' limit 1")
Map<String, String> getPriColumn(String tableName);
}

View File

@ -0,0 +1,32 @@
package com.java2nb.common.dao;
import com.java2nb.common.domain.LogDO;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
/**
* 系统日志
* @author xiongxy
* @email 1179705413@qq.com
* @date 2019-10-03 15:45:42
*/
@Mapper
public interface LogDao {
LogDO get(Long id);
List<LogDO> list(Map<String,Object> map);
int count(Map<String,Object> map);
int save(LogDO log);
int update(LogDO log);
int remove(Long id);
int batchRemove(Long[] ids);
}