Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
chnmuseum-party
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liqin
chnmuseum-party
Commits
375c4109
Commit
375c4109
authored
Apr 17, 2021
by
liqin
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed
parent
30c210e7
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
396 additions
and
1 deletion
+396
-1
MysqlGenerator.java
...energy/chnmuseum/party/common/mybatis/MysqlGenerator.java
+1
-1
ExhibitionBoardTmpMapper.java
...ergy/chnmuseum/party/mapper/ExhibitionBoardTmpMapper.java
+16
-0
LearningContentTmpMapper.java
...ergy/chnmuseum/party/mapper/LearningContentTmpMapper.java
+16
-0
VideoContentTmpMapper.java
...senergy/chnmuseum/party/mapper/VideoContentTmpMapper.java
+16
-0
ExhibitionBoardTmp.java
...n/wisenergy/chnmuseum/party/model/ExhibitionBoardTmp.java
+47
-0
LearningContentTmp.java
...n/wisenergy/chnmuseum/party/model/LearningContentTmp.java
+47
-0
VideoContentTmp.java
...a/cn/wisenergy/chnmuseum/party/model/VideoContentTmp.java
+47
-0
ExhibitionBoardTmpService.java
...gy/chnmuseum/party/service/ExhibitionBoardTmpService.java
+16
-0
LearningContentTmpService.java
...gy/chnmuseum/party/service/LearningContentTmpService.java
+16
-0
VideoContentTmpService.java
...nergy/chnmuseum/party/service/VideoContentTmpService.java
+16
-0
ExhibitionBoardTmpServiceImpl.java
...eum/party/service/impl/ExhibitionBoardTmpServiceImpl.java
+22
-0
LearningContentTmpServiceImpl.java
...eum/party/service/impl/LearningContentTmpServiceImpl.java
+22
-0
VideoContentTmpServiceImpl.java
...museum/party/service/impl/VideoContentTmpServiceImpl.java
+22
-0
ExhibitionBoardController.java
...useum/party/web/controller/ExhibitionBoardController.java
+8
-0
ExhibitionBoardTmpMapper.xml
src/main/resources/mapper/ExhibitionBoardTmpMapper.xml
+33
-0
LearningContentTmpMapper.xml
src/main/resources/mapper/LearningContentTmpMapper.xml
+27
-0
VideoContentTmpMapper.xml
src/main/resources/mapper/VideoContentTmpMapper.xml
+24
-0
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/common/mybatis/MysqlGenerator.java
View file @
375c4109
...
...
@@ -3,7 +3,7 @@ package cn.wisenergy.chnmuseum.party.common.mybatis;
public
class
MysqlGenerator
{
private
static
final
String
[]
tableNames
=
new
String
[]{
"
asset
"
"
video_content_tmp"
,
"exhibition_board_tmp"
,
"learning_content_tmp
"
};
// private static final String projectPath = "D:\\develop\\Project\\chnmuseum-party";
private
static
final
String
projectPath
=
"/opt/ss"
;
...
...
src/main/java/cn/wisenergy/chnmuseum/party/mapper/ExhibitionBoardTmpMapper.java
0 → 100644
View file @
375c4109
package
cn
.
wisenergy
.
chnmuseum
.
party
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.wisenergy.chnmuseum.party.model.ExhibitionBoardTmp
;
/**
* <pre>
* 展板临时 Mapper 接口
* </pre>
*
* @author Danny Lee
* @since 2021-04-17
*/
public
interface
ExhibitionBoardTmpMapper
extends
BaseMapper
<
ExhibitionBoardTmp
>
{
}
src/main/java/cn/wisenergy/chnmuseum/party/mapper/LearningContentTmpMapper.java
0 → 100644
View file @
375c4109
package
cn
.
wisenergy
.
chnmuseum
.
party
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.wisenergy.chnmuseum.party.model.LearningContentTmp
;
/**
* <pre>
* 学习内容临时 Mapper 接口
* </pre>
*
* @author Danny Lee
* @since 2021-04-17
*/
public
interface
LearningContentTmpMapper
extends
BaseMapper
<
LearningContentTmp
>
{
}
src/main/java/cn/wisenergy/chnmuseum/party/mapper/VideoContentTmpMapper.java
0 → 100644
View file @
375c4109
package
cn
.
wisenergy
.
chnmuseum
.
party
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
cn.wisenergy.chnmuseum.party.model.VideoContentTmp
;
/**
* <pre>
* 视频内容临时 Mapper 接口
* </pre>
*
* @author Danny Lee
* @since 2021-04-17
*/
public
interface
VideoContentTmpMapper
extends
BaseMapper
<
VideoContentTmp
>
{
}
src/main/java/cn/wisenergy/chnmuseum/party/model/ExhibitionBoardTmp.java
0 → 100644
View file @
375c4109
package
cn
.
wisenergy
.
chnmuseum
.
party
.
model
;
import
cn.wisenergy.chnmuseum.party.common.validator.groups.Add
;
import
cn.wisenergy.chnmuseum.party.common.validator.groups.Update
;
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.*
;
import
lombok.experimental.Accessors
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
/**
* <p>
* 展板临时
* </p>
*
* @author Danny Lee
* @since 2021-04-17
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors
(
chain
=
true
)
@EqualsAndHashCode
(
callSuper
=
false
)
@TableName
(
"exhibition_board_tmp"
)
@ApiModel
(
value
=
"展板临时"
,
description
=
"展板临时"
)
public
class
ExhibitionBoardTmp
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"展板内容ID"
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
INPUT
)
@NotNull
(
message
=
"展板内容ID不能为空"
,
groups
=
{
Update
.
class
})
private
String
id
;
@TableField
(
"data"
)
@NotBlank
(
message
=
"不能为空"
,
groups
=
{
Add
.
class
,
Update
.
class
})
private
String
data
;
}
src/main/java/cn/wisenergy/chnmuseum/party/model/LearningContentTmp.java
0 → 100644
View file @
375c4109
package
cn
.
wisenergy
.
chnmuseum
.
party
.
model
;
import
cn.wisenergy.chnmuseum.party.common.validator.groups.Add
;
import
cn.wisenergy.chnmuseum.party.common.validator.groups.Update
;
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.*
;
import
lombok.experimental.Accessors
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
/**
* <p>
* 学习内容临时
* </p>
*
* @author Danny Lee
* @since 2021-04-17
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors
(
chain
=
true
)
@EqualsAndHashCode
(
callSuper
=
false
)
@TableName
(
"learning_content_tmp"
)
@ApiModel
(
value
=
"学习内容临时"
,
description
=
"学习内容临时"
)
public
class
LearningContentTmp
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"学习内容ID"
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
INPUT
)
@NotNull
(
message
=
"学习内容ID不能为空"
,
groups
=
{
Update
.
class
})
private
String
id
;
@TableField
(
"data"
)
@NotBlank
(
message
=
"不能为空"
,
groups
=
{
Add
.
class
,
Update
.
class
})
private
String
data
;
}
src/main/java/cn/wisenergy/chnmuseum/party/model/VideoContentTmp.java
0 → 100644
View file @
375c4109
package
cn
.
wisenergy
.
chnmuseum
.
party
.
model
;
import
cn.wisenergy.chnmuseum.party.common.validator.groups.Add
;
import
cn.wisenergy.chnmuseum.party.common.validator.groups.Update
;
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.*
;
import
lombok.experimental.Accessors
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
/**
* <p>
* 视频内容临时
* </p>
*
* @author Danny Lee
* @since 2021-04-17
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors
(
chain
=
true
)
@EqualsAndHashCode
(
callSuper
=
false
)
@TableName
(
"video_content_tmp"
)
@ApiModel
(
value
=
"视频内容临时"
,
description
=
"视频内容临时"
)
public
class
VideoContentTmp
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"视频内容ID"
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
INPUT
)
@NotNull
(
message
=
"视频内容ID不能为空"
,
groups
=
{
Update
.
class
})
private
String
id
;
@TableField
(
"data"
)
@NotBlank
(
message
=
"不能为空"
,
groups
=
{
Add
.
class
,
Update
.
class
})
private
String
data
;
}
src/main/java/cn/wisenergy/chnmuseum/party/service/ExhibitionBoardTmpService.java
0 → 100644
View file @
375c4109
package
cn
.
wisenergy
.
chnmuseum
.
party
.
service
;
import
cn.wisenergy.chnmuseum.party.model.ExhibitionBoardTmp
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* <p>
* 展板临时 服务接口
* </p>
*
* @author Danny Lee
* @since 2021-04-17
*/
public
interface
ExhibitionBoardTmpService
extends
IService
<
ExhibitionBoardTmp
>
{
}
src/main/java/cn/wisenergy/chnmuseum/party/service/LearningContentTmpService.java
0 → 100644
View file @
375c4109
package
cn
.
wisenergy
.
chnmuseum
.
party
.
service
;
import
cn.wisenergy.chnmuseum.party.model.LearningContentTmp
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* <p>
* 学习内容临时 服务接口
* </p>
*
* @author Danny Lee
* @since 2021-04-17
*/
public
interface
LearningContentTmpService
extends
IService
<
LearningContentTmp
>
{
}
src/main/java/cn/wisenergy/chnmuseum/party/service/VideoContentTmpService.java
0 → 100644
View file @
375c4109
package
cn
.
wisenergy
.
chnmuseum
.
party
.
service
;
import
cn.wisenergy.chnmuseum.party.model.VideoContentTmp
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* <p>
* 视频内容临时 服务接口
* </p>
*
* @author Danny Lee
* @since 2021-04-17
*/
public
interface
VideoContentTmpService
extends
IService
<
VideoContentTmp
>
{
}
src/main/java/cn/wisenergy/chnmuseum/party/service/impl/ExhibitionBoardTmpServiceImpl.java
0 → 100644
View file @
375c4109
package
cn
.
wisenergy
.
chnmuseum
.
party
.
service
.
impl
;
import
cn.wisenergy.chnmuseum.party.mapper.ExhibitionBoardTmpMapper
;
import
cn.wisenergy.chnmuseum.party.model.ExhibitionBoardTmp
;
import
cn.wisenergy.chnmuseum.party.service.ExhibitionBoardTmpService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
/**
* <pre>
* 展板临时 服务实现类
* </pre>
*
* @author Danny Lee
* @since 2021-04-17
*/
@Slf4j
@Service
public
class
ExhibitionBoardTmpServiceImpl
extends
ServiceImpl
<
ExhibitionBoardTmpMapper
,
ExhibitionBoardTmp
>
implements
ExhibitionBoardTmpService
{
}
src/main/java/cn/wisenergy/chnmuseum/party/service/impl/LearningContentTmpServiceImpl.java
0 → 100644
View file @
375c4109
package
cn
.
wisenergy
.
chnmuseum
.
party
.
service
.
impl
;
import
cn.wisenergy.chnmuseum.party.mapper.LearningContentTmpMapper
;
import
cn.wisenergy.chnmuseum.party.model.LearningContentTmp
;
import
cn.wisenergy.chnmuseum.party.service.LearningContentTmpService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
/**
* <pre>
* 学习内容临时 服务实现类
* </pre>
*
* @author Danny Lee
* @since 2021-04-17
*/
@Slf4j
@Service
public
class
LearningContentTmpServiceImpl
extends
ServiceImpl
<
LearningContentTmpMapper
,
LearningContentTmp
>
implements
LearningContentTmpService
{
}
src/main/java/cn/wisenergy/chnmuseum/party/service/impl/VideoContentTmpServiceImpl.java
0 → 100644
View file @
375c4109
package
cn
.
wisenergy
.
chnmuseum
.
party
.
service
.
impl
;
import
cn.wisenergy.chnmuseum.party.mapper.VideoContentTmpMapper
;
import
cn.wisenergy.chnmuseum.party.model.VideoContentTmp
;
import
cn.wisenergy.chnmuseum.party.service.VideoContentTmpService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
/**
* <pre>
* 视频内容临时 服务实现类
* </pre>
*
* @author Danny Lee
* @since 2021-04-17
*/
@Slf4j
@Service
public
class
VideoContentTmpServiceImpl
extends
ServiceImpl
<
VideoContentTmpMapper
,
VideoContentTmp
>
implements
VideoContentTmpService
{
}
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/ExhibitionBoardController.java
View file @
375c4109
...
...
@@ -120,6 +120,14 @@ public class ExhibitionBoardController extends BaseController {
exhibitionBoard
.
setAuditStatus
(
AuditStatusEnum
.
TBC
.
name
());
exhibitionBoard
.
setPublished
(
false
);
boolean
flag
=
exhibitionBoardService
.
updateById
(
exhibitionBoard
);
if
(
flag
)
{
final
List
<
String
>
audioIdList
=
exhibitionBoard
.
getAudioIdList
();
if
(
audioIdList
!=
null
&&
!
audioIdList
.
isEmpty
())
{
...
...
src/main/resources/mapper/ExhibitionBoardTmpMapper.xml
0 → 100644
View file @
375c4109
<?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=
"cn.wisenergy.chnmuseum.party.mapper.ExhibitionBoardTmpMapper"
>
<!-- 通用查询映射结果 -->
<resultMap
id=
"BaseResultMap"
type=
"cn.wisenergy.chnmuseum.party.model.ExhibitionBoardTmp"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"name"
property=
"name"
/>
<result
column=
"serial_no"
property=
"serialNo"
/>
<result
column=
"board_copyright_owner_id"
property=
"boardCopyrightOwnerId"
/>
<result
column=
"exhibition_board_cat_id"
property=
"exhibitionBoardCatId"
/>
<result
column=
"cover"
property=
"cover"
/>
<result
column=
"qrcode_url"
property=
"qrcodeUrl"
/>
<result
column=
"remarks"
property=
"remarks"
/>
<result
column=
"video_content_copyright_owner_id"
property=
"videoContentCopyrightOwnerId"
/>
<result
column=
"video_content_cat_id"
property=
"videoContentCatId"
/>
<result
column=
"video_content_id"
property=
"videoContentId"
/>
<result
column=
"ref_material_dir"
property=
"refMaterialDir"
/>
<result
column=
"audit_status"
property=
"auditStatus"
/>
<result
column=
"is_published"
property=
"isPublished"
/>
<result
column=
"is_deleted"
property=
"isDeleted"
/>
<result
column=
"create_time"
property=
"createTime"
/>
<result
column=
"update_time"
property=
"updateTime"
/>
</resultMap>
<!-- 通用查询结果列 -->
<sql
id=
"Base_Column_List"
>
id, name, serial_no, board_copyright_owner_id, exhibition_board_cat_id, cover, qrcode_url, remarks,
video_content_copyright_owner_id, video_content_cat_id, video_content_id, ref_material_dir, audit_status,
is_published, is_deleted, create_time, update_time
</sql>
</mapper>
src/main/resources/mapper/LearningContentTmpMapper.xml
0 → 100644
View file @
375c4109
<?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=
"cn.wisenergy.chnmuseum.party.mapper.LearningContentTmpMapper"
>
<!-- 通用查询映射结果 -->
<resultMap
id=
"BaseResultMap"
type=
"cn.wisenergy.chnmuseum.party.model.LearningContentTmp"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"name"
property=
"name"
/>
<result
column=
"cover"
property=
"cover"
/>
<result
column=
"applicable_scope"
property=
"applicableScope"
/>
<result
column=
"organ_code"
property=
"organCode"
/>
<result
column=
"learning_project_id"
property=
"learningProjectId"
/>
<result
column=
"creator_name"
property=
"creatorName"
/>
<result
column=
"audit_status"
property=
"auditStatus"
/>
<result
column=
"is_published"
property=
"isPublished"
/>
<result
column=
"is_deleted"
property=
"isDeleted"
/>
<result
column=
"sortorder"
property=
"sortorder"
/>
<result
column=
"create_time"
property=
"createTime"
/>
<result
column=
"update_time"
property=
"updateTime"
/>
</resultMap>
<!-- 通用查询结果列 -->
<sql
id=
"Base_Column_List"
>
id, name, cover, applicable_scope, organ_code, learning_project_id, creator_name, audit_status, is_published, is_deleted, sortorder, create_time, update_time
</sql>
</mapper>
src/main/resources/mapper/VideoContentTmpMapper.xml
0 → 100644
View file @
375c4109
<?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=
"cn.wisenergy.chnmuseum.party.mapper.VideoContentTmpMapper"
>
<!-- 通用查询映射结果 -->
<resultMap
id=
"BaseResultMap"
type=
"cn.wisenergy.chnmuseum.party.model.VideoContentTmp"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"name"
property=
"name"
/>
<result
column=
"video_content_copyright_owner_id"
property=
"videoContentCopyrightOwnerId"
/>
<result
column=
"video_content_cat_id"
property=
"videoContentCatId"
/>
<result
column=
"thumbnail"
property=
"thumbnail"
/>
<result
column=
"audit_status"
property=
"auditStatus"
/>
<result
column=
"is_published"
property=
"isPublished"
/>
<result
column=
"is_deleted"
property=
"isDeleted"
/>
<result
column=
"create_time"
property=
"createTime"
/>
<result
column=
"update_time"
property=
"updateTime"
/>
</resultMap>
<!-- 通用查询结果列 -->
<sql
id=
"Base_Column_List"
>
id, name, video_content_copyright_owner_id, video_content_cat_id, thumbnail, audit_status, is_published, is_deleted, create_time, update_time
</sql>
</mapper>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment