Commit c9a69a15 authored by liqin's avatar liqin 💬

bug fixed

parent d9c5bb47
......@@ -289,6 +289,7 @@
<include>**/*.jpg</include>
<include>**/*.ico</include>
<include>**/*.key</include>
<include>**/*.vm</include>
</includes>
<filtering>false</filtering>
</resource>
......
......@@ -13,7 +13,10 @@ import com.baomidou.mybatisplus.generator.config.rules.NamingStrategy;
import org.apache.commons.lang3.StringUtils;
import java.io.File;
import java.util.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class CodeGenerator {
......@@ -187,7 +190,7 @@ public class CodeGenerator {
// 数据源配置
DataSourceConfig dsc = new DataSourceConfig();
dsc.setUrl("jdbc:mysql://192.168.110.93:3306/national_museum?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&allowMultiQueries=true&useSSL=false&serverTimezone=Asia/Shanghai");
dsc.setUrl("jdbc:mysql://192.168.110.93:3306/chnmuseum-party?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&allowMultiQueries=true&useSSL=false&serverTimezone=Asia/Shanghai");
dsc.setDriverName("com.mysql.cj.jdbc.Driver");
dsc.setUsername("root");
dsc.setPassword("password");
......@@ -207,8 +210,8 @@ public class CodeGenerator {
// 自定义需要填充的字段 数据库中的字段
List<TableFill> tableFillList = new ArrayList<>();
tableFillList.add(new TableFill("CREATE_DATE", FieldFill.INSERT));
tableFillList.add(new TableFill("MODIFY_DATE", FieldFill.INSERT_UPDATE));
tableFillList.add(new TableFill("CREATE_TIME", FieldFill.INSERT));
tableFillList.add(new TableFill("UPDATE_TIME", FieldFill.INSERT_UPDATE));
tableFillList.add(new TableFill("VERSION", FieldFill.INSERT));
// 策略配置
......@@ -227,7 +230,7 @@ public class CodeGenerator {
sc.setVersionFieldName(GeneratorConstant.VERSION);
sc.setLogicDeleteFieldName(GeneratorConstant.DELETED);
sc.setTablePrefix("M_");//表前缀
// sc.setTablePrefix("M_");//表前缀
// 表名生成策略(下划线转驼峰命名)
sc.setNaming(NamingStrategy.underline_to_camel);
// 列名生成策略(下划线转驼峰命名)
......@@ -243,8 +246,8 @@ public class CodeGenerator {
InjectionConfig injectionConfig = new InjectionConfig() {
@Override
public void initMap() {
Set<String> tablePrefixSet = this.getConfig().getStrategyConfig().getTablePrefix();
String entityName = StringUtils.removeStart(tableName, tablePrefixSet.stream().findFirst().get());
// Set<String> tablePrefixSet = this.getConfig().getStrategyConfig().getInclude();
String entityName = tableName;
String camelTableName = underlineToCamel(entityName);
String pascalTableName = underlineToPascal(entityName);
String colonTableName = underlineToColon(entityName);
......@@ -259,7 +262,6 @@ public class CodeGenerator {
map.put("pageParamPath", paramPackage + StringPool.DOT + pascalTableName + "PageParam");
// 查询参数共公包路径
System.out.println("superPageParam = " + superPageParam);
map.put("superPageParamPath", superPageParam);
map.put("superPageOrderParamPath", superPageOrderParam);
map.put("commonPageUtilPath", commonPageUtil);
......@@ -302,25 +304,24 @@ public class CodeGenerator {
this.setMap(map);
}
};
List<FileOutConfig> focList = new ArrayList<>();
focList.add(new FileOutConfig("/templates/mapper.xml.vm") {
@Override
public String outputFile(TableInfo tableInfo) {
return projectPath + "/src/main/resources/mapper/app/" + tableInfo.getEntityName() + "Mapper" + StringPool.DOT_XML;
return projectPath + "/src/main/resources/mapper/" + tableInfo.getEntityName() + "Mapper" + StringPool.DOT_XML;
}
});
focList.add(new FileOutConfig("/templates/controller.java.vm") {
@Override
public String outputFile(TableInfo tableInfo) {
return projectPath + "/src/main/java/cn/wisenergy/chnmuseum/party/web/api/standard/design/controller/" + tableInfo.getEntityName() + "Controller" + StringPool.DOT_JAVA;
return projectPath + "/src/main/java/cn/wisenergy/chnmuseum/party/web/controller/" + tableInfo.getEntityName() + "Controller" + StringPool.DOT_JAVA;
}
});
injectionConfig.setFileOutConfigList(focList);
TemplateConfig templateConfig = new TemplateConfig();
templateConfig.setController(null);
templateConfig.setXml(null);
templateConfig.setController("/templates/controller.java.vm");
templateConfig.setXml("/templates/mapper.java.vm");
templateConfig.setEntity("/templates/entity.java.vm");
new AutoGenerator()
......
......@@ -2,7 +2,22 @@ package cn.wisenergy.chnmuseum.party.common.mybatis;
public class MysqlGenerator {
private static final String[] tableNames = new String[]{"M_QUALITY_JOB"};
private static final String[] tableNames = new String[] {
"asset",
"asset_type",
"board_talking",
"copyright_owner",
"copytight_owner_asset_type",
"copytight_owner_board_type",
"exhibition_board",
"exhibition_board_cat",
"learning_content",
"learning_content_board",
"learning_content_board_cat",
"learning_content_copyright_owner",
"sys_log",
"run_log"
};
private static final String projectPath = "/opt/ss";
public static void main(String[] args) {
......
package cn.wisenergy.chnmuseum.party.mapper;
import cn.wisenergy.chnmuseum.party.model.Asset;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 视频 Mapper 接口
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface AssetMapper extends BaseMapper<Asset> {
}
package cn.wisenergy.chnmuseum.party.mapper;
import cn.wisenergy.chnmuseum.party.model.AssetType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 视频分类 Mapper 接口
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface AssetTypeMapper extends BaseMapper<AssetType> {
}
package cn.wisenergy.chnmuseum.party.mapper;
import cn.wisenergy.chnmuseum.party.model.BoardTalking;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 展板互动 Mapper 接口
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface BoardTalkingMapper extends BaseMapper<BoardTalking> {
}
package cn.wisenergy.chnmuseum.party.mapper;
import cn.wisenergy.chnmuseum.party.model.CopyrightOwner;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 版权方 Mapper 接口
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface CopyrightOwnerMapper extends BaseMapper<CopyrightOwner> {
}
package cn.wisenergy.chnmuseum.party.mapper;
import cn.wisenergy.chnmuseum.party.model.CopytightOwnerAssetType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 版权方视频分类 Mapper 接口
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface CopytightOwnerAssetTypeMapper extends BaseMapper<CopytightOwnerAssetType> {
}
package cn.wisenergy.chnmuseum.party.mapper;
import cn.wisenergy.chnmuseum.party.model.CopytightOwnerBoardType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 版权方展板分类 Mapper 接口
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface CopytightOwnerBoardTypeMapper extends BaseMapper<CopytightOwnerBoardType> {
}
package cn.wisenergy.chnmuseum.party.mapper;
import cn.wisenergy.chnmuseum.party.model.ExhibitionBoardCat;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 展板分类 Mapper 接口
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface ExhibitionBoardCatMapper extends BaseMapper<ExhibitionBoardCat> {
}
package cn.wisenergy.chnmuseum.party.mapper;
import cn.wisenergy.chnmuseum.party.model.ExhibitionBoard;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 展板 Mapper 接口
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface ExhibitionBoardMapper extends BaseMapper<ExhibitionBoard> {
}
package cn.wisenergy.chnmuseum.party.mapper;
import cn.wisenergy.chnmuseum.party.model.LearningContentBoardCat;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 学习内容展板分类 Mapper 接口
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface LearningContentBoardCatMapper extends BaseMapper<LearningContentBoardCat> {
}
package cn.wisenergy.chnmuseum.party.mapper;
import cn.wisenergy.chnmuseum.party.model.LearningContentBoard;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 学习内容展板 Mapper 接口
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface LearningContentBoardMapper extends BaseMapper<LearningContentBoard> {
}
package cn.wisenergy.chnmuseum.party.mapper;
import cn.wisenergy.chnmuseum.party.model.LearningContentCopyrightOwner;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 学习内容版权方 Mapper 接口
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface LearningContentCopyrightOwnerMapper extends BaseMapper<LearningContentCopyrightOwner> {
}
package cn.wisenergy.chnmuseum.party.mapper;
import cn.wisenergy.chnmuseum.party.model.LearningContent;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 学习内容 Mapper 接口
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface LearningContentMapper extends BaseMapper<LearningContent> {
}
package cn.wisenergy.chnmuseum.party.mapper;
import cn.wisenergy.chnmuseum.party.model.RunLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface RunLogMapper extends BaseMapper<RunLog> {
}
......@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* 用户/平台操作日志 Mapper 接口
* </p>
*
* @author 杨智平
* @since 2018-09-03
* @author Danny Lee
* @since 2021-03-16
*/
public interface SysLogMapper extends BaseMapper<SysLog> {
......
package cn.wisenergy.chnmuseum.party.model;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 视频
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("asset")
@ApiModel(value = "Asset对象", description = "视频")
public class Asset implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "视频ID")
@TableId(value = "id", type = IdType.ASSIGN_ID)
private String id;
@ApiModelProperty(value = "视频名称")
@TableField("name")
private String name;
@ApiModelProperty(value = "视频版权方ID")
@TableField("asset_copyright_owner_id")
private String assetCopyrightOwnerId;
@ApiModelProperty(value = "视频类别ID")
@TableField("asset_type_id")
private String assetTypeId;
@ApiModelProperty(value = "视频缩略图")
@TableField("thumbnail")
private String thumbnail;
@ApiModelProperty(value = "视频链接")
@TableField("video_url")
private String videoUrl;
@ApiModelProperty(value = "审核状态")
@TableField("audit_status")
private Integer auditStatus;
@ApiModelProperty(value = "创建日期")
@TableField(value = "create_time", fill = FieldFill.INSERT)
private LocalDateTime createTime;
@ApiModelProperty(value = "修改日期")
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
}
package cn.wisenergy.chnmuseum.party.model;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 视频分类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("asset_type")
@ApiModel(value = "AssetType对象", description = "视频分类")
public class AssetType implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "视频分类ID")
@TableId(value = "id", type = IdType.ASSIGN_ID)
private String id;
@ApiModelProperty(value = "视频分类名称")
@TableField("name")
private String name;
@ApiModelProperty(value = "备注")
@TableField("remarks")
private String remarks;
@ApiModelProperty(value = "版权方ID")
@TableField("copyright_owner_id")
private String copyrightOwnerId;
@ApiModelProperty(value = "创建日期")
@TableField(value = "create_time", fill = FieldFill.INSERT)
private LocalDateTime createTime;
@ApiModelProperty(value = "更新日期")
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
}
package cn.wisenergy.chnmuseum.party.model;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 展板互动
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("board_talking")
@ApiModel(value = "BoardTalking对象", description = "展板互动")
public class BoardTalking implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "展板互动信息ID")
@TableId(value = "id", type = IdType.ASSIGN_ID)
private String id;
@ApiModelProperty(value = "展板ID")
@TableField("board_id")
private String boardId;
@ApiModelProperty(value = "真实姓名")
@TableField("real_name")
private String realName;
@ApiModelProperty(value = "评论")
@TableField("comment")
private String comment;
@ApiModelProperty(value = "附件URL")
@TableField("asset")
private String asset;
@ApiModelProperty(value = "创建日期")
@TableField(value = "create_time", fill = FieldFill.INSERT)
private LocalDateTime createTime;
}
package cn.wisenergy.chnmuseum.party.model;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 版权方
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("copyright_owner")
@ApiModel(value = "CopyrightOwner对象", description = "版权方")
public class CopyrightOwner implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "版权方ID")
@TableId(value = "id", type = IdType.ASSIGN_ID)
private String id;
@ApiModelProperty(value = "版权方名称")
@TableField("name")
private String name;
@ApiModelProperty(value = "版权方类型")
@TableField("owner_type")
private Integer ownerType;
@ApiModelProperty(value = "版权方有效期开始")
@TableField("expire_date_start")
private LocalDateTime expireDateStart;
@ApiModelProperty(value = "版权方有效期结束")
@TableField("expire_date_end")
private LocalDateTime expireDateEnd;
@ApiModelProperty(value = "备注")
@TableField("remarks")
private String remarks;
@ApiModelProperty(value = "创建日期")
@TableField(value = "create_time", fill = FieldFill.INSERT)
private LocalDateTime createTime;
@ApiModelProperty(value = "更新日期")
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
}
package cn.wisenergy.chnmuseum.party.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* <p>
* 版权方视频分类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("copytight_owner_asset_type")
@ApiModel(value = "CopytightOwnerAssetType对象", description = "版权方视频分类")
public class CopytightOwnerAssetType implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.ASSIGN_ID)
private String id;
@ApiModelProperty(value = "版权方ID")
@TableField("copyright_owner_id")
private String copyrightOwnerId;
@ApiModelProperty(value = "视频分类ID")
@TableField("asset_type_id")
private String assetTypeId;
}
package cn.wisenergy.chnmuseum.party.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* <p>
* 版权方展板分类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("copytight_owner_board_type")
@ApiModel(value = "CopytightOwnerBoardType对象", description = "版权方展板分类")
public class CopytightOwnerBoardType implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.ASSIGN_ID)
private String id;
@ApiModelProperty(value = "版权方ID")
@TableField("copyright_owner_id")
private String copyrightOwnerId;
@ApiModelProperty(value = "展板分类ID")
@TableField("board_type_id")
private String boardTypeId;
}
package cn.wisenergy.chnmuseum.party.model;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 展板
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("exhibition_board")
@ApiModel(value = "ExhibitionBoard对象", description = "展板")
public class ExhibitionBoard implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "展板内容ID")
@TableId(value = "id", type = IdType.ASSIGN_ID)
private String id;
@ApiModelProperty(value = "展板分类名称")
@TableField("name")
private String name;
@ApiModelProperty(value = "展板版权方ID")
@TableField("board_copyright_owner_id")
private String boardCopyrightOwnerId;
@ApiModelProperty(value = "展板分类ID")
@TableField("exhibition_board_cat_id")
private String exhibitionBoardCatId;
@ApiModelProperty(value = "展板图片URL")
@TableField("board_img_url")
private String boardImgUrl;
@ApiModelProperty(value = "展板二维码URL")
@TableField("board_qrcode_url")
private String boardQrcodeUrl;
@ApiModelProperty(value = "简介")
@TableField("introduction")
private String introduction;
@ApiModelProperty(value = "视频版权方ID")
@TableField("asset_copyright_owner_id")
private String assetCopyrightOwnerId;
@ApiModelProperty(value = "视频类别ID")
@TableField("asset_type")
private String assetType;
@ApiModelProperty(value = "视频ID")
@TableField("asset_id")
private String assetId;
@ApiModelProperty(value = "导览音频URL")
@TableField("guide_audio_url")
private String guideAudioUrl;
@ApiModelProperty(value = "参考资料")
@TableField("reference_material")
private String referenceMaterial;
@ApiModelProperty(value = "创建日期")
@TableField(value = "create_time", fill = FieldFill.INSERT)
private LocalDateTime createTime;
@ApiModelProperty(value = "修改日期")
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
@ApiModelProperty(value = "审核状态")
@TableField("audit_status")
private Integer auditStatus;
}
package cn.wisenergy.chnmuseum.party.model;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 展板分类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("exhibition_board_cat")
@ApiModel(value = "ExhibitionBoardCat对象", description = "展板分类")
public class ExhibitionBoardCat implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.ASSIGN_ID)
private String id;
@ApiModelProperty(value = "展板分类名称")
@TableField("name")
private String name;
@ApiModelProperty(value = "所属版权方ID")
@TableField("copyright_owner")
private String copyrightOwner;
@ApiModelProperty(value = "创建日期")
@TableField(value = "create_time", fill = FieldFill.INSERT)
private LocalDateTime createTime;
@ApiModelProperty(value = "修改日期")
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
@ApiModelProperty(value = "备注")
@TableField("remarks")
private String remarks;
}
package cn.wisenergy.chnmuseum.party.model;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 学习内容
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("learning_content")
@ApiModel(value = "LearningContent对象", description = "学习内容")
public class LearningContent implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "学习内容ID")
@TableId(value = "id", type = IdType.ASSIGN_ID)
private String id;
@ApiModelProperty(value = "学习内容名称")
@TableField("name")
private String name;
@ApiModelProperty(value = "学习内容宣传图")
@TableField("avartar")
private String avartar;
@ApiModelProperty(value = "适用范围")
@TableField("applicable_scope")
private Integer applicableScope;
@ApiModelProperty(value = "审核状态")
@TableField("audit_status")
private Integer auditStatus;
@ApiModelProperty(value = "创建日期")
@TableField(value = "create_time", fill = FieldFill.INSERT)
private LocalDateTime createTime;
@ApiModelProperty(value = "更新日期")
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
}
package cn.wisenergy.chnmuseum.party.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* <p>
* 学习内容展板
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("learning_content_board")
@ApiModel(value = "LearningContentBoard对象", description = "学习内容展板")
public class LearningContentBoard implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.ASSIGN_ID)
private String id;
@ApiModelProperty(value = "学习内容ID")
@TableField("learning_content_id")
private String learningContentId;
@ApiModelProperty(value = "展板ID")
@TableField("exhibition_board_id")
private String exhibitionBoardId;
}
package cn.wisenergy.chnmuseum.party.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* <p>
* 学习内容展板分类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("learning_content_board_cat")
@ApiModel(value = "LearningContentBoardCat对象", description = "学习内容展板分类")
public class LearningContentBoardCat implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.ASSIGN_ID)
private String id;
@ApiModelProperty(value = "学习内容ID")
@TableField("learning_content_id")
private String learningContentId;
@ApiModelProperty(value = "展板类别ID")
@TableField("exhibition_board_cat_id")
private String exhibitionBoardCatId;
}
package cn.wisenergy.chnmuseum.party.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* <p>
* 学习内容版权方
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("learning_content_copyright_owner")
@ApiModel(value = "LearningContentCopyrightOwner对象", description = "学习内容版权方")
public class LearningContentCopyrightOwner implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.ASSIGN_ID)
private String id;
@ApiModelProperty(value = "学习内容ID")
@TableField("learning_content_id")
private String learningContentId;
@ApiModelProperty(value = "版权方ID")
@TableField("copyright_owner_id")
private String copyrightOwnerId;
}
package cn.wisenergy.chnmuseum.party.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
*
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("run_log")
@ApiModel(value = "RunLog对象", description = "")
public class RunLog implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "运行日志ID")
@TableId(value = "id", type = IdType.ASSIGN_ID)
private String id;
@ApiModelProperty(value = "机顶盒MAC地址")
@TableField("mac_addr")
private String macAddr;
@ApiModelProperty(value = "所属单位ID")
@TableField("organ_id")
private String organId;
@ApiModelProperty(value = "学习内容ID")
@TableField("learning_content_id")
private String learningContentId;
@ApiModelProperty(value = "开始时间")
@TableField("start_time")
private LocalDateTime startTime;
@ApiModelProperty(value = "结束时间")
@TableField("end_time")
private LocalDateTime endTime;
}
......@@ -4,98 +4,56 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
import java.time.LocalDateTime;
/**
* <p>
*
* 用户/平台操作日志
* </p>
*
* @author 杨智平
* @since 2018-09-03
* @author Danny Lee
* @since 2021-03-16
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_log")
public class SysLog extends Model<SysLog> {
@ApiModel(value = "SysLog对象", description = "用户/平台操作日志")
public class SysLog implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty("唯一标识")
@TableId(value = "id", type = IdType.UUID)
@ApiModelProperty(value = "操作日志ID")
@TableId(value = "id", type = IdType.ASSIGN_ID)
private String id;
@TableField("operation_content")
private String operationContent;
/**
* 操作者
*/
private String operator;
/**
* 操作时间
*/
@TableField("operation_time")
private Date operationTime;
/**
* 操作电脑IP
*/
@TableField("operation_ip")
private String operationIp;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getOperationContent() {
return operationContent;
}
public void setOperationContent(String operationContent) {
this.operationContent = operationContent;
}
public String getOperator() {
return operator;
}
public void setOperator(String operator) {
this.operator = operator;
}
@ApiModelProperty(value = "操作者")
@TableField("operator")
private String operator;
public Date getOperationTime() {
return operationTime;
}
@ApiModelProperty(value = "操作类型")
@TableField("operation_type")
private String operationType;
public void setOperationTime(Date operationTime) {
this.operationTime = operationTime;
}
@ApiModelProperty(value = "操作对象")
@TableField("operation_object")
private String operationObject;
public String getOperationIp() {
return operationIp;
}
@ApiModelProperty(value = "操作内容")
@TableField("operation_content")
private String operationContent;
public void setOperationIp(String operationIp) {
this.operationIp = operationIp;
}
@ApiModelProperty(value = "操作时间")
@TableField("operation_time")
private LocalDateTime operationTime;
@Override
protected Serializable pkVal() {
return this.id;
}
@ApiModelProperty(value = "远程IP")
@TableField("operation_ip")
private String operationIp;
@Override
public String toString() {
return "SysLog{" +
", id=" + id +
", operationContent=" + operationContent +
", operator=" + operator +
", operationTime=" + operationTime +
", operationIp=" + operationIp +
"}";
}
}
package cn.wisenergy.chnmuseum.party.service;
import cn.wisenergy.chnmuseum.party.model.Asset;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 视频 服务类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface AssetService extends IService<Asset> {
}
package cn.wisenergy.chnmuseum.party.service;
import cn.wisenergy.chnmuseum.party.model.AssetType;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 视频分类 服务类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface AssetTypeService extends IService<AssetType> {
}
package cn.wisenergy.chnmuseum.party.service;
import cn.wisenergy.chnmuseum.party.model.BoardTalking;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 展板互动 服务类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface BoardTalkingService extends IService<BoardTalking> {
}
package cn.wisenergy.chnmuseum.party.service;
import cn.wisenergy.chnmuseum.party.model.CopyrightOwner;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 版权方 服务类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface CopyrightOwnerService extends IService<CopyrightOwner> {
}
package cn.wisenergy.chnmuseum.party.service;
import cn.wisenergy.chnmuseum.party.model.CopytightOwnerAssetType;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 版权方视频分类 服务类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface CopytightOwnerAssetTypeService extends IService<CopytightOwnerAssetType> {
}
package cn.wisenergy.chnmuseum.party.service;
import cn.wisenergy.chnmuseum.party.model.CopytightOwnerBoardType;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 版权方展板分类 服务类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface CopytightOwnerBoardTypeService extends IService<CopytightOwnerBoardType> {
}
package cn.wisenergy.chnmuseum.party.service;
import cn.wisenergy.chnmuseum.party.model.ExhibitionBoardCat;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 展板分类 服务类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface ExhibitionBoardCatService extends IService<ExhibitionBoardCat> {
}
package cn.wisenergy.chnmuseum.party.service;
import cn.wisenergy.chnmuseum.party.model.ExhibitionBoard;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 展板 服务类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface ExhibitionBoardService extends IService<ExhibitionBoard> {
}
package cn.wisenergy.chnmuseum.party.service;
import cn.wisenergy.chnmuseum.party.model.LearningContentBoardCat;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 学习内容展板分类 服务类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface LearningContentBoardCatService extends IService<LearningContentBoardCat> {
}
package cn.wisenergy.chnmuseum.party.service;
import cn.wisenergy.chnmuseum.party.model.LearningContentBoard;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 学习内容展板 服务类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface LearningContentBoardService extends IService<LearningContentBoard> {
}
package cn.wisenergy.chnmuseum.party.service;
import cn.wisenergy.chnmuseum.party.model.LearningContentCopyrightOwner;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 学习内容版权方 服务类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface LearningContentCopyrightOwnerService extends IService<LearningContentCopyrightOwner> {
}
package cn.wisenergy.chnmuseum.party.service;
import cn.wisenergy.chnmuseum.party.model.LearningContent;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 学习内容 服务类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface LearningContentService extends IService<LearningContent> {
}
package cn.wisenergy.chnmuseum.party.service;
import cn.wisenergy.chnmuseum.party.model.RunLog;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface RunLogService extends IService<RunLog> {
}
package cn.wisenergy.chnmuseum.party.service;
import cn.wisenergy.chnmuseum.party.model.SysLog;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 用户/平台操作日志 服务类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
public interface SysLogService extends IService<SysLog> {
}
package cn.wisenergy.chnmuseum.party.service.impl;
import cn.wisenergy.chnmuseum.party.model.Asset;
import cn.wisenergy.chnmuseum.party.mapper.AssetMapper;
import cn.wisenergy.chnmuseum.party.service.AssetService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 视频 服务实现类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Service
public class AssetServiceImpl extends ServiceImpl<AssetMapper, Asset> implements AssetService {
}
package cn.wisenergy.chnmuseum.party.service.impl;
import cn.wisenergy.chnmuseum.party.model.AssetType;
import cn.wisenergy.chnmuseum.party.mapper.AssetTypeMapper;
import cn.wisenergy.chnmuseum.party.service.AssetTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 视频分类 服务实现类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Service
public class AssetTypeServiceImpl extends ServiceImpl<AssetTypeMapper, AssetType> implements AssetTypeService {
}
package cn.wisenergy.chnmuseum.party.service.impl;
import cn.wisenergy.chnmuseum.party.model.BoardTalking;
import cn.wisenergy.chnmuseum.party.mapper.BoardTalkingMapper;
import cn.wisenergy.chnmuseum.party.service.BoardTalkingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 展板互动 服务实现类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Service
public class BoardTalkingServiceImpl extends ServiceImpl<BoardTalkingMapper, BoardTalking> implements BoardTalkingService {
}
package cn.wisenergy.chnmuseum.party.service.impl;
import cn.wisenergy.chnmuseum.party.model.CopyrightOwner;
import cn.wisenergy.chnmuseum.party.mapper.CopyrightOwnerMapper;
import cn.wisenergy.chnmuseum.party.service.CopyrightOwnerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 版权方 服务实现类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Service
public class CopyrightOwnerServiceImpl extends ServiceImpl<CopyrightOwnerMapper, CopyrightOwner> implements CopyrightOwnerService {
}
package cn.wisenergy.chnmuseum.party.service.impl;
import cn.wisenergy.chnmuseum.party.model.CopytightOwnerAssetType;
import cn.wisenergy.chnmuseum.party.mapper.CopytightOwnerAssetTypeMapper;
import cn.wisenergy.chnmuseum.party.service.CopytightOwnerAssetTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 版权方视频分类 服务实现类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Service
public class CopytightOwnerAssetTypeServiceImpl extends ServiceImpl<CopytightOwnerAssetTypeMapper, CopytightOwnerAssetType> implements CopytightOwnerAssetTypeService {
}
package cn.wisenergy.chnmuseum.party.service.impl;
import cn.wisenergy.chnmuseum.party.model.CopytightOwnerBoardType;
import cn.wisenergy.chnmuseum.party.mapper.CopytightOwnerBoardTypeMapper;
import cn.wisenergy.chnmuseum.party.service.CopytightOwnerBoardTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 版权方展板分类 服务实现类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Service
public class CopytightOwnerBoardTypeServiceImpl extends ServiceImpl<CopytightOwnerBoardTypeMapper, CopytightOwnerBoardType> implements CopytightOwnerBoardTypeService {
}
package cn.wisenergy.chnmuseum.party.service.impl;
import cn.wisenergy.chnmuseum.party.model.ExhibitionBoardCat;
import cn.wisenergy.chnmuseum.party.mapper.ExhibitionBoardCatMapper;
import cn.wisenergy.chnmuseum.party.service.ExhibitionBoardCatService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 展板分类 服务实现类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Service
public class ExhibitionBoardCatServiceImpl extends ServiceImpl<ExhibitionBoardCatMapper, ExhibitionBoardCat> implements ExhibitionBoardCatService {
}
package cn.wisenergy.chnmuseum.party.service.impl;
import cn.wisenergy.chnmuseum.party.model.ExhibitionBoard;
import cn.wisenergy.chnmuseum.party.mapper.ExhibitionBoardMapper;
import cn.wisenergy.chnmuseum.party.service.ExhibitionBoardService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 展板 服务实现类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Service
public class ExhibitionBoardServiceImpl extends ServiceImpl<ExhibitionBoardMapper, ExhibitionBoard> implements ExhibitionBoardService {
}
package cn.wisenergy.chnmuseum.party.service.impl;
import cn.wisenergy.chnmuseum.party.model.LearningContentBoardCat;
import cn.wisenergy.chnmuseum.party.mapper.LearningContentBoardCatMapper;
import cn.wisenergy.chnmuseum.party.service.LearningContentBoardCatService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 学习内容展板分类 服务实现类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Service
public class LearningContentBoardCatServiceImpl extends ServiceImpl<LearningContentBoardCatMapper, LearningContentBoardCat> implements LearningContentBoardCatService {
}
package cn.wisenergy.chnmuseum.party.service.impl;
import cn.wisenergy.chnmuseum.party.model.LearningContentBoard;
import cn.wisenergy.chnmuseum.party.mapper.LearningContentBoardMapper;
import cn.wisenergy.chnmuseum.party.service.LearningContentBoardService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 学习内容展板 服务实现类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Service
public class LearningContentBoardServiceImpl extends ServiceImpl<LearningContentBoardMapper, LearningContentBoard> implements LearningContentBoardService {
}
package cn.wisenergy.chnmuseum.party.service.impl;
import cn.wisenergy.chnmuseum.party.model.LearningContentCopyrightOwner;
import cn.wisenergy.chnmuseum.party.mapper.LearningContentCopyrightOwnerMapper;
import cn.wisenergy.chnmuseum.party.service.LearningContentCopyrightOwnerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 学习内容版权方 服务实现类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Service
public class LearningContentCopyrightOwnerServiceImpl extends ServiceImpl<LearningContentCopyrightOwnerMapper, LearningContentCopyrightOwner> implements LearningContentCopyrightOwnerService {
}
package cn.wisenergy.chnmuseum.party.service.impl;
import cn.wisenergy.chnmuseum.party.model.LearningContent;
import cn.wisenergy.chnmuseum.party.mapper.LearningContentMapper;
import cn.wisenergy.chnmuseum.party.service.LearningContentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 学习内容 服务实现类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Service
public class LearningContentServiceImpl extends ServiceImpl<LearningContentMapper, LearningContent> implements LearningContentService {
}
package cn.wisenergy.chnmuseum.party.service.impl;
import cn.wisenergy.chnmuseum.party.model.RunLog;
import cn.wisenergy.chnmuseum.party.mapper.RunLogMapper;
import cn.wisenergy.chnmuseum.party.service.RunLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@Service
public class RunLogServiceImpl extends ServiceImpl<RunLogMapper, RunLog> implements RunLogService {
}
package cn.wisenergy.chnmuseum.party.service.impl;
import cn.wisenergy.chnmuseum.party.service.ISysLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.wisenergy.chnmuseum.party.mapper.SysLogMapper;
import cn.wisenergy.chnmuseum.party.model.SysLog;
import cn.wisenergy.chnmuseum.party.mapper.SysLogMapper;
import cn.wisenergy.chnmuseum.party.service.SysLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* 用户/平台操作日志 服务实现类
* </p>
*
* @author 杨智平
* @since 2018-09-03
* @author Danny Lee
* @since 2021-03-16
*/
@Service
public class SysLogServiceImpl extends ServiceImpl<SysLogMapper, SysLog> implements ISysLogService {
public class SysLogServiceImpl extends ServiceImpl<SysLogMapper, SysLog> implements SysLogService {
}
package cn.wisenergy.chnmuseum.party.web.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import cn.wisenergy.chnmuseum.party.web.controller.base.BaseController;
/**
* <p>
* 视频 前端控制器
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@RestController
@RequestMapping("/party/asset")
public class AssetController extends BaseController {
}
package cn.wisenergy.chnmuseum.party.web.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import cn.wisenergy.chnmuseum.party.web.controller.base.BaseController;
/**
* <p>
* 视频分类 前端控制器
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@RestController
@RequestMapping("/party/asset-type")
public class AssetTypeController extends BaseController {
}
package cn.wisenergy.chnmuseum.party.web.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import cn.wisenergy.chnmuseum.party.web.controller.base.BaseController;
/**
* <p>
* 展板互动 前端控制器
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@RestController
@RequestMapping("/party/board-talking")
public class BoardTalkingController extends BaseController {
}
package cn.wisenergy.chnmuseum.party.web.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import cn.wisenergy.chnmuseum.party.web.controller.base.BaseController;
/**
* <p>
* 版权方 前端控制器
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@RestController
@RequestMapping("/party/copyright-owner")
public class CopyrightOwnerController extends BaseController {
}
package cn.wisenergy.chnmuseum.party.web.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import cn.wisenergy.chnmuseum.party.web.controller.base.BaseController;
/**
* <p>
* 版权方视频分类 前端控制器
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@RestController
@RequestMapping("/party/copytight-owner-asset-type")
public class CopytightOwnerAssetTypeController extends BaseController {
}
package cn.wisenergy.chnmuseum.party.web.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import cn.wisenergy.chnmuseum.party.web.controller.base.BaseController;
/**
* <p>
* 版权方展板分类 前端控制器
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@RestController
@RequestMapping("/party/copytight-owner-board-type")
public class CopytightOwnerBoardTypeController extends BaseController {
}
package cn.wisenergy.chnmuseum.party.web.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import cn.wisenergy.chnmuseum.party.web.controller.base.BaseController;
/**
* <p>
* 展板分类 前端控制器
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@RestController
@RequestMapping("/party/exhibition-board-cat")
public class ExhibitionBoardCatController extends BaseController {
}
package cn.wisenergy.chnmuseum.party.web.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import cn.wisenergy.chnmuseum.party.web.controller.base.BaseController;
/**
* <p>
* 展板 前端控制器
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@RestController
@RequestMapping("/party/exhibition-board")
public class ExhibitionBoardController extends BaseController {
}
package cn.wisenergy.chnmuseum.party.web.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import cn.wisenergy.chnmuseum.party.web.controller.base.BaseController;
/**
* <p>
* 学习内容展板分类 前端控制器
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@RestController
@RequestMapping("/party/learning-content-board-cat")
public class LearningContentBoardCatController extends BaseController {
}
package cn.wisenergy.chnmuseum.party.web.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import cn.wisenergy.chnmuseum.party.web.controller.base.BaseController;
/**
* <p>
* 学习内容展板 前端控制器
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@RestController
@RequestMapping("/party/learning-content-board")
public class LearningContentBoardController extends BaseController {
}
package cn.wisenergy.chnmuseum.party.web.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import cn.wisenergy.chnmuseum.party.web.controller.base.BaseController;
/**
* <p>
* 学习内容 前端控制器
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@RestController
@RequestMapping("/party/learning-content")
public class LearningContentController extends BaseController {
}
package cn.wisenergy.chnmuseum.party.web.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import cn.wisenergy.chnmuseum.party.web.controller.base.BaseController;
/**
* <p>
* 学习内容版权方 前端控制器
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@RestController
@RequestMapping("/party/learning-content-copyright-owner")
public class LearningContentCopyrightOwnerController extends BaseController {
}
package cn.wisenergy.chnmuseum.party.web.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import cn.wisenergy.chnmuseum.party.web.controller.base.BaseController;
/**
* <p>
* 前端控制器
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@RestController
@RequestMapping("/party/run-log")
public class RunLogController extends BaseController {
}
package cn.wisenergy.chnmuseum.party.web.controller;
import cn.wisenergy.chnmuseum.party.common.util.DateUtil80;
import cn.wisenergy.chnmuseum.party.common.util.NetWorkUtil;
import cn.wisenergy.chnmuseum.party.model.SysLog;
import cn.wisenergy.chnmuseum.party.service.impl.SysLogServiceImpl;
......@@ -21,7 +22,6 @@ import org.springframework.web.context.request.ServletRequestAttributes;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.Date;
@RestController
@RequestMapping("/sysLog")
......@@ -38,7 +38,7 @@ public class SysLogController extends BaseController {
public Boolean insertSysLog(String operationContent, String username) {
SysLog sysLog = new SysLog();
//日志时间
sysLog.setOperationTime(new Date(System.currentTimeMillis()));
sysLog.setOperationTime(DateUtil80.getDateTimeOfTimestamp(System.currentTimeMillis()));
//获取登录IP并插入
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
HttpServletRequest request = attributes.getRequest();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment