Commit 80e567b0 authored by liqin's avatar liqin 💬

bug fixed

parent 8cd9aafc
...@@ -25,7 +25,6 @@ public interface AssetMapper extends BaseMapper<Asset> { ...@@ -25,7 +25,6 @@ public interface AssetMapper extends BaseMapper<Asset> {
"and vc.video_content_cat_id = vcc.id " + "and vc.video_content_cat_id = vcc.id " +
"and vc.video_content_copyright_owner_id = co.id " + "and vc.video_content_copyright_owner_id = co.id " +
"and vc.is_published = 1 and vc.is_deleted = 0 " + "and vc.is_published = 1 and vc.is_deleted = 0 " +
"and co.is_deleted = 0 and vcc.is_deleted = 0 " +
"<![CDATA[and co.expire_date_start <= DATE_FORMAT(now(), '%Y-%m-%d') ]]>" + "<![CDATA[and co.expire_date_start <= DATE_FORMAT(now(), '%Y-%m-%d') ]]>" +
"<![CDATA[and co.expire_date_end >= DATE_FORMAT(now(), '%Y-%m-%d') ]]>" + "<![CDATA[and co.expire_date_end >= DATE_FORMAT(now(), '%Y-%m-%d') ]]>" +
"<if test='videoContentCatId != null'>and vcc.id = #{videoContentCatId} </if>" + "<if test='videoContentCatId != null'>and vcc.id = #{videoContentCatId} </if>" +
......
...@@ -67,11 +67,6 @@ public class CopyrightOwner implements Serializable { ...@@ -67,11 +67,6 @@ public class CopyrightOwner implements Serializable {
@Length(min = 0, max = 100, message = "备注的字数超过最大限制100") @Length(min = 0, max = 100, message = "备注的字数超过最大限制100")
private String remarks; private String remarks;
@ApiModelProperty("是否已删除")
@TableField("is_deleted")
@TableLogic
private Boolean deleted;
@ApiModelProperty("创建日期") @ApiModelProperty("创建日期")
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
private LocalDateTime createTime; private LocalDateTime createTime;
......
...@@ -54,11 +54,6 @@ public class VideoContentCat implements Serializable { ...@@ -54,11 +54,6 @@ public class VideoContentCat implements Serializable {
@Length(min = 0, max = 100, message = "备注的字数超过最大限制100") @Length(min = 0, max = 100, message = "备注的字数超过最大限制100")
private String remarks; private String remarks;
@ApiModelProperty("是否已删除")
@TableField("is_deleted")
@TableLogic
private Boolean deleted;
@ApiModelProperty("创建日期") @ApiModelProperty("创建日期")
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
private LocalDateTime createTime; private LocalDateTime createTime;
......
...@@ -66,6 +66,9 @@ public class CopyrightOwnerController extends BaseController { ...@@ -66,6 +66,9 @@ public class CopyrightOwnerController extends BaseController {
@Resource @Resource
private ExhibitionBoardService exhibitionBoardService; private ExhibitionBoardService exhibitionBoardService;
@Resource
private LearningContentCopyrightOwnerService learningContentCopyrightOwnerService;
@PostMapping("/save") @PostMapping("/save")
@RequiresAuthentication //@RequiresPermissions("copyright:owner:save") @RequiresAuthentication //@RequiresPermissions("copyright:owner:save")
@ApiOperation(value = "添加版权方", notes = "添加版权方") @ApiOperation(value = "添加版权方", notes = "添加版权方")
...@@ -299,6 +302,9 @@ public class CopyrightOwnerController extends BaseController { ...@@ -299,6 +302,9 @@ public class CopyrightOwnerController extends BaseController {
LambdaUpdateWrapper<CopyrightOwnerVideoContentCat> deleteWrapper1 = Wrappers.<CopyrightOwnerVideoContentCat>lambdaUpdate().eq(CopyrightOwnerVideoContentCat::getCopyrightOwnerId, id); LambdaUpdateWrapper<CopyrightOwnerVideoContentCat> deleteWrapper1 = Wrappers.<CopyrightOwnerVideoContentCat>lambdaUpdate().eq(CopyrightOwnerVideoContentCat::getCopyrightOwnerId, id);
this.copyrightOwnerVideoContentCatService.remove(deleteWrapper1); this.copyrightOwnerVideoContentCatService.remove(deleteWrapper1);
LambdaUpdateWrapper<LearningContentCopyrightOwner> deleteWrapper2 = Wrappers.<LearningContentCopyrightOwner>lambdaUpdate().eq(LearningContentCopyrightOwner::getCopyrightOwnerId, id);
this.learningContentCopyrightOwnerService.remove(deleteWrapper2);
return getSuccessResult(); return getSuccessResult();
} }
......
...@@ -192,7 +192,7 @@ public class ExhibitionBoardCatController extends BaseController { ...@@ -192,7 +192,7 @@ public class ExhibitionBoardCatController extends BaseController {
@RequiresAuthentication //@RequiresPermissions("exhibition:board:cat:delete") @RequiresAuthentication //@RequiresPermissions("exhibition:board:cat:delete")
@ApiOperation(value = "根据ID删除展板分类", notes = "根据ID删除展板分类") @ApiOperation(value = "根据ID删除展板分类", notes = "根据ID删除展板分类")
@ApiImplicitParams(value = { @ApiImplicitParams(value = {
@ApiImplicitParam(name = "id", value = "标识ID", paramType = "path", dataType = "String") @ApiImplicitParam(name = "id", value = "标识ID", paramType = "path", dataType = "String", required = true)
}) })
@MethodLog(operModule = OperModule.DISPLAYCLASSIFY, operType = OperType.DELETE) @MethodLog(operModule = OperModule.DISPLAYCLASSIFY, operType = OperType.DELETE)
public Map<String, Object> deleteExhibitionBoardCat(@PathVariable("id") String id) { public Map<String, Object> deleteExhibitionBoardCat(@PathVariable("id") String id) {
......
...@@ -75,17 +75,6 @@ public class LearningProjectController extends BaseController { ...@@ -75,17 +75,6 @@ public class LearningProjectController extends BaseController {
return getFailResult(); return getFailResult();
} }
@DeleteMapping("/delete/{id}")
@RequiresAuthentication //@RequiresPermissions("learning:project:delete")
@ApiOperation(value = "根据ID下架学习项目", notes = "根据ID下架学习项目")
@ApiImplicitParams(value = {
@ApiImplicitParam(name = "id", value = "标识ID", paramType = "path", dataType = "String")
})
@MethodLog(operModule = OperModule.LEARNPROJECT, operType = OperType.DELETE)
public Map<String, Object> deleteLearningProject(@PathVariable("id") String id) {
return getSuccessResult();
}
@GetMapping("/getList") @GetMapping("/getList")
@RequiresAuthentication //@RequiresPermissions("learning:project:list") @RequiresAuthentication //@RequiresPermissions("learning:project:list")
@ApiOperation(value = "获取全部列表(无分页)", notes = "获取全部列表(无分页)") @ApiOperation(value = "获取全部列表(无分页)", notes = "获取全部列表(无分页)")
...@@ -139,7 +128,7 @@ public class LearningProjectController extends BaseController { ...@@ -139,7 +128,7 @@ public class LearningProjectController extends BaseController {
@ApiOperation(value = "获取详情", notes = "获取详情") @ApiOperation(value = "获取详情", notes = "获取详情")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = "id", value = "标识ID", dataType = "String", paramType = "path") @ApiImplicitParam(name = "id", value = "标识ID", dataType = "String", paramType = "path", required = true)
}) })
@GetMapping("/get/{id}") @GetMapping("/get/{id}")
@RequiresAuthentication //@RequiresPermissions("learning:project:get:id") @RequiresAuthentication //@RequiresPermissions("learning:project:get:id")
...@@ -149,5 +138,17 @@ public class LearningProjectController extends BaseController { ...@@ -149,5 +138,17 @@ public class LearningProjectController extends BaseController {
return getResult(learningProject); return getResult(learningProject);
} }
@DeleteMapping("/delete/{id}")
@RequiresAuthentication //@RequiresPermissions("learning:project:delete")
@ApiOperation(value = "根据ID下架学习项目", notes = "根据ID下架学习项目")
@ApiImplicitParams(value = {
@ApiImplicitParam(name = "id", value = "标识ID", paramType = "path", dataType = "String", required = true)
})
@MethodLog(operModule = OperModule.LEARNPROJECT, operType = OperType.DELETE)
public Map<String, Object> deleteLearningProject(@PathVariable("id") String id) {
this.learningProjectService.removeById(id);
return getSuccessResult();
}
} }
...@@ -10,14 +10,13 @@ ...@@ -10,14 +10,13 @@
<result column="expire_date_start" property="expireDateStart"/> <result column="expire_date_start" property="expireDateStart"/>
<result column="expire_date_end" property="expireDateEnd"/> <result column="expire_date_end" property="expireDateEnd"/>
<result column="remarks" property="remarks"/> <result column="remarks" property="remarks"/>
<result column="is_deleted" property="deleted"/>
<result column="create_time" property="createTime"/> <result column="create_time" property="createTime"/>
<result column="update_time" property="updateTime"/> <result column="update_time" property="updateTime"/>
</resultMap> </resultMap>
<!-- 通用查询结果列 --> <!-- 通用查询结果列 -->
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, name, owner_type, expire_date_start, expire_date_end, remarks, is_deleted, create_time, update_time id, name, owner_type, expire_date_start, expire_date_end, remarks, create_time, update_time
</sql> </sql>
</mapper> </mapper>
...@@ -8,14 +8,13 @@ ...@@ -8,14 +8,13 @@
<result column="name" property="name"/> <result column="name" property="name"/>
<result column="copyright_owner_id" property="copyrightOwnerId"/> <result column="copyright_owner_id" property="copyrightOwnerId"/>
<result column="remarks" property="remarks"/> <result column="remarks" property="remarks"/>
<result column="is_deleted" property="deleted"/>
<result column="create_time" property="createTime"/> <result column="create_time" property="createTime"/>
<result column="update_time" property="updateTime"/> <result column="update_time" property="updateTime"/>
</resultMap> </resultMap>
<!-- 通用查询结果列 --> <!-- 通用查询结果列 -->
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, name, copyright_owner_id, remarks, is_deleted, create_time, update_time id, name, copyright_owner_id, remarks, create_time, update_time
</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