| | |
| | | public AjaxResult add(@RequestBody LiveStreaming liveStreaming) throws ParseException { |
| | | return liveStreamingService.addData(liveStreaming); |
| | | } |
| | | /** |
| | | * 批量删除直播 |
| | | */ |
| | | @Log(title = "直播", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return liveStreamingService.deleteData(ids); |
| | | } |
| | | |
| | | } |
| | |
| | | List<LiveStreaming> selectByIds(Long[] ids); |
| | | |
| | | AjaxResult addData(LiveStreaming liveStreaming) throws ParseException; |
| | | |
| | | public AjaxResult deleteData(Long[] ids); |
| | | } |
| | |
| | | |
| | | } |
| | | } |
| | | @Override |
| | | public AjaxResult deleteData(Long[] ids) { |
| | | List<LiveStreaming> liveStreaming = selectByIds(ids); |
| | | for (LiveStreaming liveStreaming1:liveStreaming) { |
| | | liveStreaming1.setStatus(1); |
| | | updateById(liveStreaming1); |
| | | } |
| | | return AjaxResult.success(); |
| | | } |
| | | } |
| | |
| | | throw new RuntimeException(e); |
| | | } |
| | | log.info("数据列表为:{}", dataList); |
| | | |
| | | for (ZfClean zfClean : dataList) { |
| | | if (zfClean.getMethod().length() != 0 && zfClean.getPlace().length() != 0 && zfClean.getSuitable().length() != 0) { |
| | | zfCleanService.addData(zfClean); |
| | | } |
| | | } |
| | | |
| | | return AjaxResult.success("导入数据成功"); |
| | | |
| | |
| | | log.info("数据列表为:{}", dataList); |
| | | |
| | | for (ZfContact zfContact : dataList) { |
| | | if (zfContact.getNickName().length() != 0 && zfContact.getName().length() != 0 && zfContact.getMyName().length() != 0 ) { |
| | | zfContactService.addData(zfContact); |
| | | } |
| | | } |
| | | |
| | | return AjaxResult.success("导入数据成功"); |
| | | |