Commit 7d9b2e91 authored by liqin's avatar liqin 💬

bug fixed

parent 93db1527
...@@ -8,8 +8,8 @@ import java.util.stream.Collectors; ...@@ -8,8 +8,8 @@ import java.util.stream.Collectors;
*/ */
public enum CopyrightOwnerTypeEnum { public enum CopyrightOwnerTypeEnum {
ASSET(1, "视频"), VIDEO_CONTENT(1, "视频内容"),
EXHIBITION_BOARD(2, "展板"); EXHIBITION_BOARD(2, "展板内容");
public String name; public String name;
public static String names; public static String names;
......
...@@ -3,7 +3,7 @@ package cn.wisenergy.chnmuseum.party.common.mybatis; ...@@ -3,7 +3,7 @@ package cn.wisenergy.chnmuseum.party.common.mybatis;
public class MysqlGenerator { public class MysqlGenerator {
private static final String[] tableNames = new String[]{ private static final String[] tableNames = new String[]{
"asset", "video_content", "video_content_cat" "copyright_owner_video_content_cat"
}; };
// private static final String projectPath = "D:\\develop\\Project\\chnmuseum-party"; // private static final String projectPath = "D:\\develop\\Project\\chnmuseum-party";
private static final String projectPath = "/opt/ss"; private static final String projectPath = "/opt/ss";
......
package cn.wisenergy.chnmuseum.party.mapper; package cn.wisenergy.chnmuseum.party.mapper;
import cn.wisenergy.chnmuseum.party.model.CopyrightOwnerAssetType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository; import cn.wisenergy.chnmuseum.party.model.CopyrightOwnerVideoContentCat;
/** /**
* <pre> * <pre>
...@@ -10,9 +9,8 @@ import org.springframework.stereotype.Repository; ...@@ -10,9 +9,8 @@ import org.springframework.stereotype.Repository;
* </pre> * </pre>
* *
* @author Danny Lee * @author Danny Lee
* @since 2021-03-18 * @since 2021-04-02
*/ */
@Repository public interface CopyrightOwnerVideoContentCatMapper extends BaseMapper<CopyrightOwnerVideoContentCat> {
public interface CopyrightOwnerAssetTypeMapper extends BaseMapper<CopyrightOwnerAssetType> {
} }
...@@ -45,7 +45,7 @@ public class CopyrightOwner implements Serializable { ...@@ -45,7 +45,7 @@ public class CopyrightOwner implements Serializable {
@NotBlank(message = "版权方名称不能为空", groups = {Add.class, Update.class}) @NotBlank(message = "版权方名称不能为空", groups = {Add.class, Update.class})
private String name; private String name;
@ApiModelProperty(value = "版权方类型", allowableValues = "ASSET, EXHIBITION_BOARD") @ApiModelProperty(value = "版权方类型", allowableValues = "VIDEO_CONTENT, EXHIBITION_BOARD")
@TableField("owner_type") @TableField("owner_type")
@NotBlank(message = "版权方类型不能为空", groups = {Add.class, Update.class}) @NotBlank(message = "版权方类型不能为空", groups = {Add.class, Update.class})
private String ownerType; private String ownerType;
...@@ -72,16 +72,16 @@ public class CopyrightOwner implements Serializable { ...@@ -72,16 +72,16 @@ public class CopyrightOwner implements Serializable {
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE) @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime; private LocalDateTime updateTime;
@ApiModelProperty("视频分类ID集合(详情使用)") @ApiModelProperty("视频内容分类ID集合(详情使用)")
@TableField(exist = false) @TableField(exist = false)
private List<String> assetTypeIdList; private List<String> videoContentCatIdList;
@ApiModelProperty("视频分类名称集合(详情使用)") @ApiModelProperty("视频内容分类名称集合(详情使用)")
@TableField(exist = false) @TableField(exist = false)
private List<String> assetTypeNameList; private List<String> videoContentCatNameList;
@ApiModelProperty("视频分类名称(列表使用)") @ApiModelProperty("视频内容分类名称(列表使用)")
@TableField(exist = false) @TableField(exist = false)
private String assetTypeNames; private String videoContentCatNames;
} }
...@@ -21,7 +21,7 @@ import java.io.Serializable; ...@@ -21,7 +21,7 @@ import java.io.Serializable;
* </p> * </p>
* *
* @author Danny Lee * @author Danny Lee
* @since 2021-03-23 * @since 2021-04-02
*/ */
@Data @Data
@Builder @Builder
...@@ -29,9 +29,9 @@ import java.io.Serializable; ...@@ -29,9 +29,9 @@ import java.io.Serializable;
@NoArgsConstructor @NoArgsConstructor
@Accessors(chain = true) @Accessors(chain = true)
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@TableName("copyright_owner_asset_type") @TableName("copyright_owner_video_content_cat")
@ApiModel(value = "版权方视频分类", description = "版权方视频分类") @ApiModel(value = "版权方视频分类", description = "版权方视频分类")
public class CopyrightOwnerAssetType implements Serializable { public class CopyrightOwnerVideoContentCat implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -40,14 +40,17 @@ public class CopyrightOwnerAssetType implements Serializable { ...@@ -40,14 +40,17 @@ public class CopyrightOwnerAssetType implements Serializable {
@NotNull(message = "标识ID不能为空", groups = {Update.class}) @NotNull(message = "标识ID不能为空", groups = {Update.class})
private String id; private String id;
@ApiModelProperty("视频版权方ID") @ApiModelProperty("视频内容版权方ID")
@TableField("copyright_owner_id") @TableField("copyright_owner_id")
@NotBlank(message = "视频版权方ID不能为空", groups = {Add.class, Update.class}) @NotBlank(message = "视频内容版权方ID不能为空", groups = {Add.class, Update.class})
private String copyrightOwnerId; private String copyrightOwnerId;
@ApiModelProperty("视频分类ID") @ApiModelProperty("视频内容分类ID")
@TableField("asset_type_id") @TableField("video_content_cat_id")
@NotBlank(message = "视频分类ID不能为空", groups = {Add.class, Update.class}) @NotBlank(message = "视频内容分类ID不能为空", groups = {Add.class, Update.class})
private String assetTypeId; private String videoContentCatId;
} }
package cn.wisenergy.chnmuseum.party.service; package cn.wisenergy.chnmuseum.party.service;
import cn.wisenergy.chnmuseum.party.model.CopyrightOwnerAssetType; import cn.wisenergy.chnmuseum.party.model.CopyrightOwnerVideoContentCat;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
/** /**
...@@ -9,8 +9,8 @@ import com.baomidou.mybatisplus.extension.service.IService; ...@@ -9,8 +9,8 @@ import com.baomidou.mybatisplus.extension.service.IService;
* </p> * </p>
* *
* @author Danny Lee * @author Danny Lee
* @since 2021-03-18 * @since 2021-04-02
*/ */
public interface CopyrightOwnerAssetTypeService extends IService<CopyrightOwnerAssetType> { public interface CopyrightOwnerVideoContentCatService extends IService<CopyrightOwnerVideoContentCat> {
} }
...@@ -103,7 +103,7 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements ...@@ -103,7 +103,7 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
break; break;
case ACCOUNT: case ACCOUNT:
break; break;
case ASSET: case VIDEO_CONTENT:
selectPage = auditMapper.getAssetPage(auditPage, ew); selectPage = auditMapper.getAssetPage(auditPage, ew);
default: default:
} }
......
package cn.wisenergy.chnmuseum.party.service.impl; package cn.wisenergy.chnmuseum.party.service.impl;
import cn.wisenergy.chnmuseum.party.mapper.CopyrightOwnerAssetTypeMapper; import cn.wisenergy.chnmuseum.party.mapper.CopyrightOwnerVideoContentCatMapper;
import cn.wisenergy.chnmuseum.party.model.CopyrightOwnerAssetType; import cn.wisenergy.chnmuseum.party.model.CopyrightOwnerVideoContentCat;
import cn.wisenergy.chnmuseum.party.service.CopyrightOwnerAssetTypeService; import cn.wisenergy.chnmuseum.party.service.CopyrightOwnerVideoContentCatService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -13,11 +13,10 @@ import org.springframework.stereotype.Service; ...@@ -13,11 +13,10 @@ import org.springframework.stereotype.Service;
* </pre> * </pre>
* *
* @author Danny Lee * @author Danny Lee
* @since 2021-03-18 * @since 2021-04-02
*/ */
@Slf4j @Slf4j
@Service @Service
public class CopyrightOwnerAssetTypeServiceImpl extends ServiceImpl<CopyrightOwnerAssetTypeMapper, CopyrightOwnerAssetType> implements CopyrightOwnerAssetTypeService { public class CopyrightOwnerVideoContentCatServiceImpl extends ServiceImpl<CopyrightOwnerVideoContentCatMapper, CopyrightOwnerVideoContentCat> implements CopyrightOwnerVideoContentCatService {
} }
<?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="cn.wisenergy.chnmuseum.party.mapper.CopyrightOwnerAssetTypeMapper"> <mapper namespace="cn.wisenergy.chnmuseum.party.mapper.CopyrightOwnerVideoContentCatMapper">
<!-- 通用查询映射结果 --> <!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="cn.wisenergy.chnmuseum.party.model.CopyrightOwnerAssetType"> <resultMap id="BaseResultMap" type="cn.wisenergy.chnmuseum.party.model.CopyrightOwnerVideoContentCat">
<id column="id" property="id" /> <id column="id" property="id"/>
<result column="copyright_owner_id" property="copyrightOwnerId" /> <result column="copyright_owner_id" property="copyrightOwnerId"/>
<result column="asset_type_id" property="assetTypeId" /> <result column="video_content_cat_id" property="videoContentCatId"/>
</resultMap> </resultMap>
<!-- 通用查询结果列 --> <!-- 通用查询结果列 -->
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, copyright_owner_id, asset_type_id id, copyright_owner_id, video_content_cat_id
</sql> </sql>
</mapper> </mapper>
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