From 4328f5c3698142c7e7295142bc650d3d5a8ec38e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=86=E6=98=9F=E9=9C=96?= <729219176@qq.com> Date: Fri, 15 Mar 2024 00:07:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=AD=E5=89=A7=E5=9F=BA=E7=A1=80=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E4=BB=A3=E7=A0=81=E6=9B=B4=E6=96=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/PlayletItemAppController.java | 37 +++++ .../system/PlayletItemController.java | 127 +++++++++++++++++ .../resp/PlayletItemSearchRequestResp.java | 53 +++++++ .../core/controller/BaseController.java | 15 ++ .../playlet/system/domain/PlayletItem.java | 75 ++++++++++ .../system/mapper/PlayletItemMapper.java | 62 ++++++++ .../pojo/dto/PlayletItemSearchRequestDTO.java | 65 +++++++++ .../system/service/IPlayletItemService.java | 73 ++++++++++ .../service/impl/PlayletItemServiceImpl.java | 124 ++++++++++++++++ .../mapper/system/PlayletItemMapper.xml | 132 ++++++++++++++++++ 10 files changed, 763 insertions(+) create mode 100644 playlet-admin/src/main/java/com/playlet/web/controller/app/PlayletItemAppController.java create mode 100644 playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletItemController.java create mode 100644 playlet-admin/src/main/java/com/playlet/web/resp/PlayletItemSearchRequestResp.java create mode 100644 playlet-system/src/main/java/com/playlet/system/domain/PlayletItem.java create mode 100644 playlet-system/src/main/java/com/playlet/system/mapper/PlayletItemMapper.java create mode 100644 playlet-system/src/main/java/com/playlet/system/pojo/dto/PlayletItemSearchRequestDTO.java create mode 100644 playlet-system/src/main/java/com/playlet/system/service/IPlayletItemService.java create mode 100644 playlet-system/src/main/java/com/playlet/system/service/impl/PlayletItemServiceImpl.java create mode 100644 playlet-system/src/main/resources/mapper/system/PlayletItemMapper.xml diff --git a/playlet-admin/src/main/java/com/playlet/web/controller/app/PlayletItemAppController.java b/playlet-admin/src/main/java/com/playlet/web/controller/app/PlayletItemAppController.java new file mode 100644 index 0000000..3ebe0cb --- /dev/null +++ b/playlet-admin/src/main/java/com/playlet/web/controller/app/PlayletItemAppController.java @@ -0,0 +1,37 @@ +package com.playlet.web.controller.app; + +import com.playlet.common.core.controller.BaseController; +import com.playlet.common.core.page.TableDataInfo; +import com.playlet.system.service.IPlayletItemService; +import com.playlet.web.resp.PlayletItemSearchRequestResp; +import io.swagger.annotations.Api; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +/** + * @Date: 2024-03-14-22:59 + * @Author: 但星霖 + * @Version: v1.0 + * @Description: 短剧基础app Controller Controller + */ +@Slf4j +@Api(tags = "短剧基础app控制层") +@RestController +@RequestMapping(value = "/app/playlet/item") +@RequiredArgsConstructor(onConstructor = @__(@Autowired)) +public class PlayletItemAppController extends BaseController { + + private final IPlayletItemService playletItemService; + + /** + * 查询短剧基础列表 + */ + @RequiresPermissions("system:item:list") + @PostMapping("/search") + @ResponseBody + public TableDataInfo search(@RequestBody PlayletItemSearchRequestResp requestResp) { + return getDataTableInPage(playletItemService.search(PlayletItemSearchRequestResp.toDto(requestResp))); + } +} diff --git a/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletItemController.java b/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletItemController.java new file mode 100644 index 0000000..2674a14 --- /dev/null +++ b/playlet-admin/src/main/java/com/playlet/web/controller/system/PlayletItemController.java @@ -0,0 +1,127 @@ +package com.playlet.web.controller.system; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.playlet.common.annotation.Log; +import com.playlet.common.enums.BusinessType; +import com.playlet.system.domain.PlayletItem; +import com.playlet.system.service.IPlayletItemService; +import com.playlet.common.core.controller.BaseController; +import com.playlet.common.core.domain.AjaxResult; +import com.playlet.common.utils.poi.ExcelUtil; +import com.playlet.common.core.page.TableDataInfo; + + +/** + * @Date: 2024-03-14-22:57 + * @Author: 但星霖 + * @Version: v1.0 + * @Description: 短剧基础Controller + */ +@Controller +@RequestMapping("/system/playlet/item") +public class PlayletItemController extends BaseController { + private String prefix = "system/playlet/item"; + + @Autowired + private IPlayletItemService playletItemService; + + @RequiresPermissions("system:playlet:item:view") + @GetMapping() + public String item() + { + return prefix + "/item"; + } + + /** + * 查询短剧基础列表 + */ + @RequiresPermissions("system:item:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(PlayletItem playletItem) + { + startPage(); + List list = playletItemService.selectPlayletItemList(playletItem); + return getDataTable(list); + } + + /** + * 导出短剧基础列表 + */ + @RequiresPermissions("system:item:export") + @Log(title = "短剧基础", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(PlayletItem playletItem) + { + List list = playletItemService.selectPlayletItemList(playletItem); + ExcelUtil util = new ExcelUtil(PlayletItem.class); + return util.exportExcel(list, "短剧基础数据"); + } + + /** + * 新增短剧基础 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存短剧基础 + */ + @RequiresPermissions("system:item:add") + @Log(title = "短剧基础", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(PlayletItem playletItem) + { + return toAjax(playletItemService.insertPlayletItem(playletItem)); + } + + /** + * 修改短剧基础 + */ + @RequiresPermissions("system:item:edit") + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Long id, ModelMap mmap) + { + PlayletItem playletItem = playletItemService.selectPlayletItemById(id); + mmap.put("playletItem", playletItem); + return prefix + "/edit"; + } + + /** + * 修改保存短剧基础 + */ + @RequiresPermissions("system:item:edit") + @Log(title = "短剧基础", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(PlayletItem playletItem) + { + return toAjax(playletItemService.updatePlayletItem(playletItem)); + } + + /** + * 删除短剧基础 + */ + @RequiresPermissions("system:item:remove") + @Log(title = "短剧基础", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(playletItemService.deletePlayletItemByIds(ids)); + } +} diff --git a/playlet-admin/src/main/java/com/playlet/web/resp/PlayletItemSearchRequestResp.java b/playlet-admin/src/main/java/com/playlet/web/resp/PlayletItemSearchRequestResp.java new file mode 100644 index 0000000..982d08f --- /dev/null +++ b/playlet-admin/src/main/java/com/playlet/web/resp/PlayletItemSearchRequestResp.java @@ -0,0 +1,53 @@ +package com.playlet.web.resp; + +import com.playlet.common.annotation.Excel; +import com.playlet.system.pojo.dto.PlayletItemSearchRequestDTO; +import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.beans.BeanUtils; + +import java.util.Date; + +/** + * @Date: 2024-03-14-23:49 + * @Author: 但星霖 + * @Version: v1.0 + * @Description: 短剧基础对象 查询相应对象 + */ +public class PlayletItemSearchRequestResp { + + @Schema(description = "主键id") + private Long id; + + @Schema(description = "视频名称") + private String videoName; + + @Schema(description = "上映年份") + private String releaseDate; + + @Excel(name = "地区") + private String region; + + @Schema(description = "视频类型1 科幻 2 爱情 3 恐怖 4 悬疑..") + private Long videoType; + + @Schema(description = "评分 大于等于") + private Long score; + + @Schema(description = "集数 大于等于") + private Long numberEpisode; + + @Schema(description = "上映时间") + private Date releaseTime; + + @Schema(description = "页条数") + private Integer pageSize = 10; + + @Schema(description = "当前页") + private Integer current = 1; + + public static PlayletItemSearchRequestDTO toDto(PlayletItemSearchRequestResp vo){ + PlayletItemSearchRequestDTO dto = new PlayletItemSearchRequestDTO(); + BeanUtils.copyProperties(vo, dto); + return dto; + } +} diff --git a/playlet-common/src/main/java/com/playlet/common/core/controller/BaseController.java b/playlet-common/src/main/java/com/playlet/common/core/controller/BaseController.java index a6dcb86..fd7e14f 100644 --- a/playlet-common/src/main/java/com/playlet/common/core/controller/BaseController.java +++ b/playlet-common/src/main/java/com/playlet/common/core/controller/BaseController.java @@ -6,6 +6,8 @@ import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; + +import com.baomidou.mybatisplus.core.metadata.IPage; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.bind.WebDataBinder; @@ -117,6 +119,19 @@ public class BaseController return rspData; } + /** + * 响应请求分页数据 + */ + @SuppressWarnings({ "rawtypes", "unchecked" }) + protected TableDataInfo getDataTableInPage(IPage page) + { + TableDataInfo rspData = new TableDataInfo(); + rspData.setCode(0); + rspData.setRows(page.getRecords()); + rspData.setTotal(page.getTotal()); + return rspData; + } + /** * 响应返回结果 * diff --git a/playlet-system/src/main/java/com/playlet/system/domain/PlayletItem.java b/playlet-system/src/main/java/com/playlet/system/domain/PlayletItem.java new file mode 100644 index 0000000..9ea8199 --- /dev/null +++ b/playlet-system/src/main/java/com/playlet/system/domain/PlayletItem.java @@ -0,0 +1,75 @@ +package com.playlet.system.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.playlet.common.core.domain.BaseEntity; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import lombok.EqualsAndHashCode; +import com.playlet.common.annotation.Excel; + +/** + * @Date: 2024-03-14-22:50 + * @Author: 但星霖 + * @Version: v1.0 + * @Description: 短剧基础对象 playlet_item + */ +@Data +@EqualsAndHashCode(callSuper = false) +@TableName(value = "playlet_item") +public class PlayletItem extends BaseEntity{ + + private static final long serialVersionUID = 1L; + + /** 主键id */ + private Long id; + + /** 来源类型 1.抖音 2.快手 3.视频号 */ + @Excel(name = "来源类型 1.抖音 2.快手 3.视频号") + private Long sourceType; + + /** 视频名称 */ + @Excel(name = "视频名称") + private String videoName; + + /** 视频是否完结 0 未完结 1 完结 */ + @Excel(name = "视频是否完结 0 未完结 1 完结 ") + private Long completeNot; + + /** 视频封面图 */ + @Excel(name = "视频封面图") + private String coverPic; + + /** 连接地址 */ + @Excel(name = "连接地址") + private String connectSite; + + /** 上映年份 */ + @Excel(name = "上映年份") + private String releaseDate; + + /** 地区 */ + @Excel(name = "地区") + private String region; + + /** 视频类型1 科幻 2 爱情 3 恐怖 4 悬疑.. */ + @Excel(name = "视频类型1 科幻 2 爱情 3 恐怖 4 悬疑..") + private Long videoType; + + /** 评分 */ + @Excel(name = "评分") + private Long score; + + /** 集数 */ + @Excel(name = "集数") + private Long numberEpisode; + + /** 是否删除 1 正常 0 删除 */ + @Excel(name = "是否删除 1 正常 0 删除") + private Long isDelete; + + /** 上映时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "上映时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date releaseTime; +} diff --git a/playlet-system/src/main/java/com/playlet/system/mapper/PlayletItemMapper.java b/playlet-system/src/main/java/com/playlet/system/mapper/PlayletItemMapper.java new file mode 100644 index 0000000..03d69f6 --- /dev/null +++ b/playlet-system/src/main/java/com/playlet/system/mapper/PlayletItemMapper.java @@ -0,0 +1,62 @@ +package com.playlet.system.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.playlet.system.domain.PlayletItem; + +import java.util.List; + +/** + * @Date: 2024-03-14-22:51 + * @Author: 但星霖 + * @Version: v1.0 + * @Description: 短剧基础Mapper接口 + */ +public interface PlayletItemMapper extends BaseMapper { + /** + * 查询短剧基础 + * + * @param id 短剧基础主键 + * @return 短剧基础 + */ + public PlayletItem selectPlayletItemById(Long id); + + /** + * 查询短剧基础列表 + * + * @param playletItem 短剧基础 + * @return 短剧基础集合 + */ + public List selectPlayletItemList(PlayletItem playletItem); + + /** + * 新增短剧基础 + * + * @param playletItem 短剧基础 + * @return 结果 + */ + public int insertPlayletItem(PlayletItem playletItem); + + /** + * 修改短剧基础 + * + * @param playletItem 短剧基础 + * @return 结果 + */ + public int updatePlayletItem(PlayletItem playletItem); + + /** + * 删除短剧基础 + * + * @param id 短剧基础主键 + * @return 结果 + */ + public int deletePlayletItemById(Long id); + + /** + * 批量删除短剧基础 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deletePlayletItemByIds(String[] ids); +} diff --git a/playlet-system/src/main/java/com/playlet/system/pojo/dto/PlayletItemSearchRequestDTO.java b/playlet-system/src/main/java/com/playlet/system/pojo/dto/PlayletItemSearchRequestDTO.java new file mode 100644 index 0000000..1d349e8 --- /dev/null +++ b/playlet-system/src/main/java/com/playlet/system/pojo/dto/PlayletItemSearchRequestDTO.java @@ -0,0 +1,65 @@ +package com.playlet.system.pojo.dto; + +import lombok.Data; + +import java.util.Date; + +/** + * @Date: 2024-03-14-23:56 + * @Author: 但星霖 + * @Version: v1.0 + * @Description: 短剧基础对象 查询相应对象DTO + */ +@Data +public class PlayletItemSearchRequestDTO { + + /** + * 主键id + */ + private Long id; + + /** + * 视频名称 + */ + private String videoName; + + /** + * 上映年份 + */ + private String releaseDate; + + /** + * 地区 + */ + private String region; + + /** + * 视频类型1 科幻 2 爱情 3 恐怖 4 悬疑.. + */ + private Long videoType; + + /** + * 评分 大于等于 + */ + private Long score; + + /** + * 集数 大于等于 + */ + private Long numberEpisode; + + /** + * 上映时间 + */ + private Date releaseTime; + + /** + * 页条数 + */ + private Integer pageSize; + + /** + * 当前页 + */ + private Integer current; +} diff --git a/playlet-system/src/main/java/com/playlet/system/service/IPlayletItemService.java b/playlet-system/src/main/java/com/playlet/system/service/IPlayletItemService.java new file mode 100644 index 0000000..0764d39 --- /dev/null +++ b/playlet-system/src/main/java/com/playlet/system/service/IPlayletItemService.java @@ -0,0 +1,73 @@ +package com.playlet.system.service; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.IService; +import com.playlet.system.domain.PlayletItem; +import com.playlet.system.pojo.dto.PlayletItemSearchRequestDTO; + +import java.util.List; + +/** + * @Date: 2024-03-14-22:52 + * @Author: 但星霖 + * @Version: v1.0 + * @Description: 短剧基础Service接口 + */ +public interface IPlayletItemService extends IService { + + /** + * 查询短剧基础 + * + * @param id 短剧基础主键 + * @return 短剧基础 + */ + public PlayletItem selectPlayletItemById(Long id); + + /** + * 查询短剧基础列表 + * + * @param playletItem 短剧基础 + * @return 短剧基础集合 + */ + public List selectPlayletItemList(PlayletItem playletItem); + + /** + * 新增短剧基础 + * + * @param playletItem 短剧基础 + * @return 结果 + */ + public int insertPlayletItem(PlayletItem playletItem); + + /** + * 修改短剧基础 + * + * @param playletItem 短剧基础 + * @return 结果 + */ + public int updatePlayletItem(PlayletItem playletItem); + + /** + * 批量删除短剧基础 + * + * @param ids 需要删除的短剧基础主键集合 + * @return 结果 + */ + public int deletePlayletItemByIds(String ids); + + /** + * 删除短剧基础信息 + * + * @param id 短剧基础主键 + * @return 结果 + */ + public int deletePlayletItemById(Long id); + + /** + * 短剧分也数据查询 + * + * @param requestResp 分页请求dto + * @return 分页数据实体 + */ + public IPage search(PlayletItemSearchRequestDTO requestResp); +} diff --git a/playlet-system/src/main/java/com/playlet/system/service/impl/PlayletItemServiceImpl.java b/playlet-system/src/main/java/com/playlet/system/service/impl/PlayletItemServiceImpl.java new file mode 100644 index 0000000..90580fe --- /dev/null +++ b/playlet-system/src/main/java/com/playlet/system/service/impl/PlayletItemServiceImpl.java @@ -0,0 +1,124 @@ +package com.playlet.system.service.impl; + + +import java.util.Date; +import java.util.List; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.playlet.common.utils.DateUtils; +import com.playlet.system.pojo.dto.PlayletItemSearchRequestDTO; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.playlet.system.mapper.PlayletItemMapper; +import com.playlet.system.domain.PlayletItem; +import com.playlet.system.service.IPlayletItemService; +import com.playlet.common.core.text.Convert; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Date: 2024-03-14-22:53 + * @Author: 但星霖 + * @Version: v1.0 + * @Description: 短剧基础Service业务层处理 + */ +@Service +public class PlayletItemServiceImpl extends ServiceImpl implements IPlayletItemService { + @Autowired + private PlayletItemMapper playletItemMapper; + + /** + * 查询短剧基础 + * + * @param id 短剧基础主键 + * @return 短剧基础 + */ + @Override + public PlayletItem selectPlayletItemById(Long id) { + return playletItemMapper.selectPlayletItemById(id); + } + + /** + * 查询短剧基础列表 + * + * @param playletItem 短剧基础 + * @return 短剧基础 + */ + @Override + public List selectPlayletItemList(PlayletItem playletItem) { + return playletItemMapper.selectPlayletItemList(playletItem); + } + + /** + * 新增短剧基础 + * + * @param playletItem 短剧基础 + * @return 结果 + */ + @Override + public int insertPlayletItem(PlayletItem playletItem) { + playletItem.setCreateTime(DateUtils.getNowDate()); + return playletItemMapper.insertPlayletItem(playletItem); + } + + /** + * 修改短剧基础 + * + * @param playletItem 短剧基础 + * @return 结果 + */ + @Override + public int updatePlayletItem(PlayletItem playletItem) { + playletItem.setUpdateTime(DateUtils.getNowDate()); + return playletItemMapper.updatePlayletItem(playletItem); + } + + /** + * 批量删除短剧基础 + * + * @param ids 需要删除的短剧基础主键 + * @return 结果 + */ + @Override + public int deletePlayletItemByIds(String ids) { + return playletItemMapper.deletePlayletItemByIds(Convert.toStrArray(ids)); + } + + /** + * 删除短剧基础信息 + * + * @param id 短剧基础主键 + * @return 结果 + */ + @Override + public int deletePlayletItemById(Long id) { + return playletItemMapper.deletePlayletItemById(id); + } + + @Override + public IPage search(PlayletItemSearchRequestDTO requestResp) { + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.select() + .lambda() + // id 精准 + .eq(ObjectUtils.isNotNull(requestResp.getId()), PlayletItem::getId, requestResp.getId()) + // 视频名称 + .like(ObjectUtils.isNotNull(requestResp.getVideoName()), PlayletItem::getVideoName, requestResp.getVideoName()) + // 上映年份 + .eq(ObjectUtils.isNotNull(requestResp.getReleaseDate()), PlayletItem::getReleaseDate, requestResp.getReleaseDate()) + // 地区 + .eq(ObjectUtils.isNotNull(requestResp.getRegion()), PlayletItem::getRegion, requestResp.getRegion()) + // 视频类型1 科幻 2 爱情 3 恐怖 4 悬疑.. + .eq(ObjectUtils.isNotNull(requestResp.getVideoType()), PlayletItem::getVideoType, requestResp.getVideoType()) + + // 评分 大于等于 + .ge(ObjectUtils.isNotNull(requestResp.getScore()), PlayletItem::getScore, requestResp.getScore()) + // 集数 大于等于 + .like(ObjectUtils.isNotNull(requestResp.getNumberEpisode()), PlayletItem::getNumberEpisode, requestResp.getNumberEpisode()) + // 上映时间 + .like(ObjectUtils.isNotNull(requestResp.getReleaseTime()), PlayletItem::getReleaseTime, requestResp.getReleaseTime()); + return baseMapper.selectPage(new Page<>(requestResp.getCurrent(), requestResp.getPageSize()), wrapper); + } +} diff --git a/playlet-system/src/main/resources/mapper/system/PlayletItemMapper.xml b/playlet-system/src/main/resources/mapper/system/PlayletItemMapper.xml new file mode 100644 index 0000000..29a6007 --- /dev/null +++ b/playlet-system/src/main/resources/mapper/system/PlayletItemMapper.xml @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, create_by, create_time, update_by, update_time, remark, source_type, video_name, complete_not, cover_pic, connect_site, release_date, region, video_type, score, number_episode, is_delete, release_time from playlet_item + + + + + + + + insert into playlet_item + + create_by, + create_time, + update_by, + update_time, + remark, + source_type, + video_name, + complete_not, + cover_pic, + connect_site, + release_date, + region, + video_type, + score, + number_episode, + is_delete, + release_time, + + + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{sourceType}, + #{videoName}, + #{completeNot}, + #{coverPic}, + #{connectSite}, + #{releaseDate}, + #{region}, + #{videoType}, + #{score}, + #{numberEpisode}, + #{isDelete}, + #{releaseTime}, + + + + + update playlet_item + + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + source_type = #{sourceType}, + video_name = #{videoName}, + complete_not = #{completeNot}, + cover_pic = #{coverPic}, + connect_site = #{connectSite}, + release_date = #{releaseDate}, + region = #{region}, + video_type = #{videoType}, + score = #{score}, + number_episode = #{numberEpisode}, + is_delete = #{isDelete}, + release_time = #{releaseTime}, + + where id = #{id} + + + + delete from playlet_item where id = #{id} + + + + delete from playlet_item where id in + + #{id} + + + + \ No newline at end of file