动态、话题
parent
24da9e70e3
commit
d6754f1b37
|
|
@ -0,0 +1,108 @@
|
||||||
|
package com.ruoyi.app.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.io.IOException;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import com.ruoyi.common.log.annotation.Log;
|
||||||
|
import com.ruoyi.common.log.enums.BusinessType;
|
||||||
|
import com.ruoyi.common.security.annotation.RequiresPermissions;
|
||||||
|
import com.ruoyi.app.domain.AppDynamicImg;
|
||||||
|
import com.ruoyi.app.service.IAppDynamicImgService;
|
||||||
|
import com.ruoyi.common.core.web.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.web.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.web.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* App用户动态图片信息Controller
|
||||||
|
*
|
||||||
|
* @author wyh
|
||||||
|
* @date 2024-04-23
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/img")
|
||||||
|
@Api(tags = "app用户动态图片信息" , description = "app用户动态图片信息")
|
||||||
|
public class AppDynamicImgController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IAppDynamicImgService appDynamicImgService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询App用户动态图片信息列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("app:img:list")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(AppDynamicImg appDynamicImg)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<AppDynamicImg> list = appDynamicImgService.selectAppDynamicImgList(appDynamicImg);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出App用户动态图片信息列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("app:img:export")
|
||||||
|
@Log(title = "App用户动态图片信息", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, AppDynamicImg appDynamicImg)
|
||||||
|
{
|
||||||
|
List<AppDynamicImg> list = appDynamicImgService.selectAppDynamicImgList(appDynamicImg);
|
||||||
|
ExcelUtil<AppDynamicImg> util = new ExcelUtil<AppDynamicImg>(AppDynamicImg.class);
|
||||||
|
util.exportExcel(response, list, "App用户动态图片信息数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取App用户动态图片信息详细信息
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("app:img:query")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return success(appDynamicImgService.selectAppDynamicImgById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增App用户动态图片信息
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("app:img:add")
|
||||||
|
@Log(title = "App用户动态图片信息", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody AppDynamicImg appDynamicImg)
|
||||||
|
{
|
||||||
|
return toAjax(appDynamicImgService.insertAppDynamicImg(appDynamicImg));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改App用户动态图片信息
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("app:img:edit")
|
||||||
|
@Log(title = "App用户动态图片信息", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody AppDynamicImg appDynamicImg)
|
||||||
|
{
|
||||||
|
return toAjax(appDynamicImgService.updateAppDynamicImg(appDynamicImg));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除App用户动态图片信息
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("app:img:remove")
|
||||||
|
@Log(title = "App用户动态图片信息", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(appDynamicImgService.deleteAppDynamicImgByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,115 @@
|
||||||
|
package com.ruoyi.app.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.io.IOException;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import com.ruoyi.common.log.annotation.Log;
|
||||||
|
import com.ruoyi.common.log.enums.BusinessType;
|
||||||
|
import com.ruoyi.common.security.annotation.RequiresPermissions;
|
||||||
|
import com.ruoyi.app.domain.AppTopic;
|
||||||
|
import com.ruoyi.app.service.IAppTopicService;
|
||||||
|
import com.ruoyi.common.core.web.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.web.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.web.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 话题信息Controller
|
||||||
|
*
|
||||||
|
* @author wyh
|
||||||
|
* @date 2024-04-23
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/topic")
|
||||||
|
@Api(tags = "话题信息" , description = "话题信息")
|
||||||
|
public class AppTopicController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IAppTopicService appTopicService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询话题信息列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("app:topic:list")
|
||||||
|
@GetMapping("/list")
|
||||||
|
@ApiOperation(value = "查询话题信息列表", notes = "查询话题信息列表", httpMethod = "GET")
|
||||||
|
public TableDataInfo list(AppTopic appTopic)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<AppTopic> list = appTopicService.selectAppTopicList(appTopic);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出话题信息列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("app:topic:export")
|
||||||
|
@Log(title = "话题信息", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
@ApiOperation(value = "导出话题信息列表", notes = "导出话题信息列表", httpMethod = "POST")
|
||||||
|
public void export(HttpServletResponse response, AppTopic appTopic)
|
||||||
|
{
|
||||||
|
List<AppTopic> list = appTopicService.selectAppTopicList(appTopic);
|
||||||
|
ExcelUtil<AppTopic> util = new ExcelUtil<AppTopic>(AppTopic.class);
|
||||||
|
util.exportExcel(response, list, "话题信息数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取话题信息详细信息
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("app:topic:query")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
@ApiOperation(value = "获取话题信息详细信息", notes = "获取话题信息详细信息", httpMethod = "GET")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return success(appTopicService.selectAppTopicById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增话题信息
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("app:topic:add")
|
||||||
|
@Log(title = "话题信息", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping(value = "/add")
|
||||||
|
@ApiOperation(value = "新增话题信息", notes = "新增话题信息", httpMethod = "POST")
|
||||||
|
public AjaxResult add(@RequestBody AppTopic appTopic)
|
||||||
|
{
|
||||||
|
return toAjax(appTopicService.insertAppTopic(appTopic));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改话题信息
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("app:topic:edit")
|
||||||
|
@Log(title = "话题信息", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping(value = "/edit")
|
||||||
|
@ApiOperation(value = "修改话题信息", notes = "修改话题信息", httpMethod = "PUT")
|
||||||
|
public AjaxResult edit(@RequestBody AppTopic appTopic)
|
||||||
|
{
|
||||||
|
return toAjax(appTopicService.updateAppTopic(appTopic));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除话题信息
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("app:topic:remove")
|
||||||
|
@Log(title = "话题信息", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
@ApiOperation(value = "删除话题信息", notes = "删除话题信息", httpMethod = "DELETE")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(appTopicService.deleteAppTopicByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,115 @@
|
||||||
|
package com.ruoyi.app.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.io.IOException;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import com.ruoyi.common.log.annotation.Log;
|
||||||
|
import com.ruoyi.common.log.enums.BusinessType;
|
||||||
|
import com.ruoyi.common.security.annotation.RequiresPermissions;
|
||||||
|
import com.ruoyi.app.domain.AppUserDynamic;
|
||||||
|
import com.ruoyi.app.service.IAppUserDynamicService;
|
||||||
|
import com.ruoyi.common.core.web.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.web.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.web.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* App用户动态Controller
|
||||||
|
*
|
||||||
|
* @author wyh
|
||||||
|
* @date 2024-04-23
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/dynamic")
|
||||||
|
@Api(tags = "app用户动态信息" , description = "app用户动态信息")
|
||||||
|
public class AppUserDynamicController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IAppUserDynamicService appUserDynamicService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询App用户动态列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("app:dynamic:list")
|
||||||
|
@GetMapping("/list")
|
||||||
|
@ApiOperation(value = "app用户动态列表", notes = "app用户动态列表", httpMethod = "GET")
|
||||||
|
public TableDataInfo list(AppUserDynamic appUserDynamic)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<AppUserDynamic> list = appUserDynamicService.selectAppUserDynamicList(appUserDynamic);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出App用户动态列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("app:dynamic:export")
|
||||||
|
@Log(title = "App用户动态", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
@ApiOperation(value = "app用户动态导出", notes = "app用户动态导出", httpMethod = "POST")
|
||||||
|
public void export(HttpServletResponse response, AppUserDynamic appUserDynamic)
|
||||||
|
{
|
||||||
|
List<AppUserDynamic> list = appUserDynamicService.selectAppUserDynamicList(appUserDynamic);
|
||||||
|
ExcelUtil<AppUserDynamic> util = new ExcelUtil<AppUserDynamic>(AppUserDynamic.class);
|
||||||
|
util.exportExcel(response, list, "App用户动态数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取App用户动态详细信息
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("app:dynamic:query")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
@ApiOperation(value = "获取App用户动态详细信息", notes = "获取App用户动态详细信息", httpMethod = "GET")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return success(appUserDynamicService.selectAppUserDynamicById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增App用户动态
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("app:dynamic:add")
|
||||||
|
@Log(title = "App用户动态", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping(value = "/add")
|
||||||
|
@ApiOperation(value = "新增App用户动态", notes = "新增App用户动态", httpMethod = "POST")
|
||||||
|
public AjaxResult add(@RequestBody AppUserDynamic appUserDynamic)
|
||||||
|
{
|
||||||
|
return toAjax(appUserDynamicService.insertAppUserDynamic(appUserDynamic));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改App用户动态
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("app:dynamic:edit")
|
||||||
|
@Log(title = "App用户动态", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping(value = "/edit")
|
||||||
|
@ApiOperation(value = "修改App用户动态", notes = "修改App用户动态", httpMethod = "PUT")
|
||||||
|
public AjaxResult edit(@RequestBody AppUserDynamic appUserDynamic)
|
||||||
|
{
|
||||||
|
return toAjax(appUserDynamicService.updateAppUserDynamic(appUserDynamic));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除App用户动态
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("app:dynamic:remove")
|
||||||
|
@Log(title = "App用户动态", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
@ApiOperation(value = "删除App用户动态", notes = "删除App用户动态", httpMethod = "DELETE")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(appUserDynamicService.deleteAppUserDynamicByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,70 @@
|
||||||
|
package com.ruoyi.app.domain;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.core.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.web.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* App用户动态图片信息对象 app_dynamic_img
|
||||||
|
*
|
||||||
|
* @author wyh
|
||||||
|
* @date 2024-04-23
|
||||||
|
*/
|
||||||
|
public class AppDynamicImg extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 关联用户动态id */
|
||||||
|
@Excel(name = "关联用户动态id")
|
||||||
|
private Long userDynamicId;
|
||||||
|
|
||||||
|
/** 图片地址 */
|
||||||
|
@Excel(name = "图片地址")
|
||||||
|
private String imgUrl;
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setUserDynamicId(Long userDynamicId)
|
||||||
|
{
|
||||||
|
this.userDynamicId = userDynamicId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getUserDynamicId()
|
||||||
|
{
|
||||||
|
return userDynamicId;
|
||||||
|
}
|
||||||
|
public void setImgUrl(String imgUrl)
|
||||||
|
{
|
||||||
|
this.imgUrl = imgUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getImgUrl()
|
||||||
|
{
|
||||||
|
return imgUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("userDynamicId", getUserDynamicId())
|
||||||
|
.append("imgUrl", getImgUrl())
|
||||||
|
.append("remark", getRemark())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("updateBy", getUpdateBy())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,56 @@
|
||||||
|
package com.ruoyi.app.domain;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.core.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.web.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 话题信息对象 app_topic
|
||||||
|
*
|
||||||
|
* @author wyh
|
||||||
|
* @date 2024-04-23
|
||||||
|
*/
|
||||||
|
public class AppTopic extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 学校id */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 学校名称 */
|
||||||
|
@Excel(name = "学校名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setName(String name)
|
||||||
|
{
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName()
|
||||||
|
{
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("name", getName())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("updateBy", getUpdateBy())
|
||||||
|
.append("remark", getRemark())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,138 @@
|
||||||
|
package com.ruoyi.app.domain;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.core.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.web.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* App用户动态对象 app_user_dynamic
|
||||||
|
*
|
||||||
|
* @author wyh
|
||||||
|
* @date 2024-04-23
|
||||||
|
*/
|
||||||
|
public class AppUserDynamic extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 关联用户id */
|
||||||
|
@Excel(name = "关联用户id")
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
|
/** 内容 */
|
||||||
|
@Excel(name = "内容")
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
/** 视频地址 */
|
||||||
|
@Excel(name = "视频地址")
|
||||||
|
private String videoUrl;
|
||||||
|
|
||||||
|
/** 关联话题id,多个话题逗号隔开 */
|
||||||
|
@Excel(name = "关联话题id,多个话题逗号隔开")
|
||||||
|
private Long topicId;
|
||||||
|
|
||||||
|
/** 地区 */
|
||||||
|
@Excel(name = "地区")
|
||||||
|
private String address;
|
||||||
|
|
||||||
|
/** 隐私状态:0公开1好友2自己 */
|
||||||
|
@Excel(name = "隐私状态:0公开1好友2自己")
|
||||||
|
private Long privacyStatus;
|
||||||
|
|
||||||
|
@Excel(name = "文件地址,多个地址用逗号隔开")
|
||||||
|
private String imgUrls;
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setUserId(Long userId)
|
||||||
|
{
|
||||||
|
this.userId = userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getUserId()
|
||||||
|
{
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
public void setContent(String content)
|
||||||
|
{
|
||||||
|
this.content = content;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getContent()
|
||||||
|
{
|
||||||
|
return content;
|
||||||
|
}
|
||||||
|
public void setVideoUrl(String videoUrl)
|
||||||
|
{
|
||||||
|
this.videoUrl = videoUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getVideoUrl()
|
||||||
|
{
|
||||||
|
return videoUrl;
|
||||||
|
}
|
||||||
|
public void setTopicId(Long topicId)
|
||||||
|
{
|
||||||
|
this.topicId = topicId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getTopicId()
|
||||||
|
{
|
||||||
|
return topicId;
|
||||||
|
}
|
||||||
|
public void setAddress(String address)
|
||||||
|
{
|
||||||
|
this.address = address;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAddress()
|
||||||
|
{
|
||||||
|
return address;
|
||||||
|
}
|
||||||
|
public void setPrivacyStatus(Long privacyStatus)
|
||||||
|
{
|
||||||
|
this.privacyStatus = privacyStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getPrivacyStatus()
|
||||||
|
{
|
||||||
|
return privacyStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setImgUrls(String imgUrls) {
|
||||||
|
this.imgUrls = imgUrls;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getImgUrls() {
|
||||||
|
return imgUrls;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("userId", getUserId())
|
||||||
|
.append("content", getContent())
|
||||||
|
.append("videoUrl", getVideoUrl())
|
||||||
|
.append("topicId", getTopicId())
|
||||||
|
.append("address", getAddress())
|
||||||
|
.append("privacyStatus", getPrivacyStatus())
|
||||||
|
.append("remark", getRemark())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("updateBy", getUpdateBy())
|
||||||
|
.append("imgUrls", getImgUrls())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,63 @@
|
||||||
|
package com.ruoyi.app.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.app.domain.AppDynamicImg;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* App用户动态图片信息Mapper接口
|
||||||
|
*
|
||||||
|
* @author wyh
|
||||||
|
* @date 2024-04-23
|
||||||
|
*/
|
||||||
|
public interface AppDynamicImgMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询App用户动态图片信息
|
||||||
|
*
|
||||||
|
* @param id App用户动态图片信息主键
|
||||||
|
* @return App用户动态图片信息
|
||||||
|
*/
|
||||||
|
public AppDynamicImg selectAppDynamicImgById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询App用户动态图片信息列表
|
||||||
|
*
|
||||||
|
* @param appDynamicImg App用户动态图片信息
|
||||||
|
* @return App用户动态图片信息集合
|
||||||
|
*/
|
||||||
|
public List<AppDynamicImg> selectAppDynamicImgList(AppDynamicImg appDynamicImg);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增App用户动态图片信息
|
||||||
|
*
|
||||||
|
* @param appDynamicImg App用户动态图片信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertAppDynamicImg(AppDynamicImg appDynamicImg);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改App用户动态图片信息
|
||||||
|
*
|
||||||
|
* @param appDynamicImg App用户动态图片信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateAppDynamicImg(AppDynamicImg appDynamicImg);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除App用户动态图片信息
|
||||||
|
*
|
||||||
|
* @param id App用户动态图片信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteAppDynamicImgById(Long id);
|
||||||
|
|
||||||
|
public int deleteAppDynamicImgByDynamicId(Long userDynamicId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除App用户动态图片信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteAppDynamicImgByIds(Long[] ids);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.app.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.app.domain.AppTopic;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 话题信息Mapper接口
|
||||||
|
*
|
||||||
|
* @author wyh
|
||||||
|
* @date 2024-04-23
|
||||||
|
*/
|
||||||
|
public interface AppTopicMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询话题信息
|
||||||
|
*
|
||||||
|
* @param id 话题信息主键
|
||||||
|
* @return 话题信息
|
||||||
|
*/
|
||||||
|
public AppTopic selectAppTopicById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询话题信息列表
|
||||||
|
*
|
||||||
|
* @param appTopic 话题信息
|
||||||
|
* @return 话题信息集合
|
||||||
|
*/
|
||||||
|
public List<AppTopic> selectAppTopicList(AppTopic appTopic);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增话题信息
|
||||||
|
*
|
||||||
|
* @param appTopic 话题信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertAppTopic(AppTopic appTopic);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改话题信息
|
||||||
|
*
|
||||||
|
* @param appTopic 话题信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateAppTopic(AppTopic appTopic);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除话题信息
|
||||||
|
*
|
||||||
|
* @param id 话题信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteAppTopicById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除话题信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteAppTopicByIds(Long[] ids);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.app.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.app.domain.AppUserDynamic;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* App用户动态Mapper接口
|
||||||
|
*
|
||||||
|
* @author wyh
|
||||||
|
* @date 2024-04-23
|
||||||
|
*/
|
||||||
|
public interface AppUserDynamicMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询App用户动态
|
||||||
|
*
|
||||||
|
* @param id App用户动态主键
|
||||||
|
* @return App用户动态
|
||||||
|
*/
|
||||||
|
public AppUserDynamic selectAppUserDynamicById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询App用户动态列表
|
||||||
|
*
|
||||||
|
* @param appUserDynamic App用户动态
|
||||||
|
* @return App用户动态集合
|
||||||
|
*/
|
||||||
|
public List<AppUserDynamic> selectAppUserDynamicList(AppUserDynamic appUserDynamic);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增App用户动态
|
||||||
|
*
|
||||||
|
* @param appUserDynamic App用户动态
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertAppUserDynamic(AppUserDynamic appUserDynamic);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改App用户动态
|
||||||
|
*
|
||||||
|
* @param appUserDynamic App用户动态
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateAppUserDynamic(AppUserDynamic appUserDynamic);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除App用户动态
|
||||||
|
*
|
||||||
|
* @param id App用户动态主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteAppUserDynamicById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除App用户动态
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteAppUserDynamicByIds(Long[] ids);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.app.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.app.domain.AppDynamicImg;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* App用户动态图片信息Service接口
|
||||||
|
*
|
||||||
|
* @author wyh
|
||||||
|
* @date 2024-04-23
|
||||||
|
*/
|
||||||
|
public interface IAppDynamicImgService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询App用户动态图片信息
|
||||||
|
*
|
||||||
|
* @param id App用户动态图片信息主键
|
||||||
|
* @return App用户动态图片信息
|
||||||
|
*/
|
||||||
|
public AppDynamicImg selectAppDynamicImgById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询App用户动态图片信息列表
|
||||||
|
*
|
||||||
|
* @param appDynamicImg App用户动态图片信息
|
||||||
|
* @return App用户动态图片信息集合
|
||||||
|
*/
|
||||||
|
public List<AppDynamicImg> selectAppDynamicImgList(AppDynamicImg appDynamicImg);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增App用户动态图片信息
|
||||||
|
*
|
||||||
|
* @param appDynamicImg App用户动态图片信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertAppDynamicImg(AppDynamicImg appDynamicImg);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改App用户动态图片信息
|
||||||
|
*
|
||||||
|
* @param appDynamicImg App用户动态图片信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateAppDynamicImg(AppDynamicImg appDynamicImg);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除App用户动态图片信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的App用户动态图片信息主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteAppDynamicImgByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除App用户动态图片信息信息
|
||||||
|
*
|
||||||
|
* @param id App用户动态图片信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteAppDynamicImgById(Long id);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.app.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.app.domain.AppTopic;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 话题信息Service接口
|
||||||
|
*
|
||||||
|
* @author wyh
|
||||||
|
* @date 2024-04-23
|
||||||
|
*/
|
||||||
|
public interface IAppTopicService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询话题信息
|
||||||
|
*
|
||||||
|
* @param id 话题信息主键
|
||||||
|
* @return 话题信息
|
||||||
|
*/
|
||||||
|
public AppTopic selectAppTopicById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询话题信息列表
|
||||||
|
*
|
||||||
|
* @param appTopic 话题信息
|
||||||
|
* @return 话题信息集合
|
||||||
|
*/
|
||||||
|
public List<AppTopic> selectAppTopicList(AppTopic appTopic);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增话题信息
|
||||||
|
*
|
||||||
|
* @param appTopic 话题信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertAppTopic(AppTopic appTopic);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改话题信息
|
||||||
|
*
|
||||||
|
* @param appTopic 话题信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateAppTopic(AppTopic appTopic);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除话题信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的话题信息主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteAppTopicByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除话题信息信息
|
||||||
|
*
|
||||||
|
* @param id 话题信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteAppTopicById(Long id);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.app.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.app.domain.AppUserDynamic;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* App用户动态Service接口
|
||||||
|
*
|
||||||
|
* @author wyh
|
||||||
|
* @date 2024-04-23
|
||||||
|
*/
|
||||||
|
public interface IAppUserDynamicService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询App用户动态
|
||||||
|
*
|
||||||
|
* @param id App用户动态主键
|
||||||
|
* @return App用户动态
|
||||||
|
*/
|
||||||
|
public AppUserDynamic selectAppUserDynamicById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询App用户动态列表
|
||||||
|
*
|
||||||
|
* @param appUserDynamic App用户动态
|
||||||
|
* @return App用户动态集合
|
||||||
|
*/
|
||||||
|
public List<AppUserDynamic> selectAppUserDynamicList(AppUserDynamic appUserDynamic);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增App用户动态
|
||||||
|
*
|
||||||
|
* @param appUserDynamic App用户动态
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertAppUserDynamic(AppUserDynamic appUserDynamic);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改App用户动态
|
||||||
|
*
|
||||||
|
* @param appUserDynamic App用户动态
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateAppUserDynamic(AppUserDynamic appUserDynamic);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除App用户动态
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的App用户动态主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteAppUserDynamicByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除App用户动态信息
|
||||||
|
*
|
||||||
|
* @param id App用户动态主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteAppUserDynamicById(Long id);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,96 @@
|
||||||
|
package com.ruoyi.app.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.common.core.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.app.mapper.AppDynamicImgMapper;
|
||||||
|
import com.ruoyi.app.domain.AppDynamicImg;
|
||||||
|
import com.ruoyi.app.service.IAppDynamicImgService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* App用户动态图片信息Service业务层处理
|
||||||
|
*
|
||||||
|
* @author wyh
|
||||||
|
* @date 2024-04-23
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class AppDynamicImgServiceImpl implements IAppDynamicImgService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private AppDynamicImgMapper appDynamicImgMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询App用户动态图片信息
|
||||||
|
*
|
||||||
|
* @param id App用户动态图片信息主键
|
||||||
|
* @return App用户动态图片信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AppDynamicImg selectAppDynamicImgById(Long id)
|
||||||
|
{
|
||||||
|
return appDynamicImgMapper.selectAppDynamicImgById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询App用户动态图片信息列表
|
||||||
|
*
|
||||||
|
* @param appDynamicImg App用户动态图片信息
|
||||||
|
* @return App用户动态图片信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<AppDynamicImg> selectAppDynamicImgList(AppDynamicImg appDynamicImg)
|
||||||
|
{
|
||||||
|
return appDynamicImgMapper.selectAppDynamicImgList(appDynamicImg);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增App用户动态图片信息
|
||||||
|
*
|
||||||
|
* @param appDynamicImg App用户动态图片信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertAppDynamicImg(AppDynamicImg appDynamicImg)
|
||||||
|
{
|
||||||
|
appDynamicImg.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return appDynamicImgMapper.insertAppDynamicImg(appDynamicImg);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改App用户动态图片信息
|
||||||
|
*
|
||||||
|
* @param appDynamicImg App用户动态图片信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateAppDynamicImg(AppDynamicImg appDynamicImg)
|
||||||
|
{
|
||||||
|
appDynamicImg.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return appDynamicImgMapper.updateAppDynamicImg(appDynamicImg);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除App用户动态图片信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的App用户动态图片信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteAppDynamicImgByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return appDynamicImgMapper.deleteAppDynamicImgByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除App用户动态图片信息信息
|
||||||
|
*
|
||||||
|
* @param id App用户动态图片信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteAppDynamicImgById(Long id)
|
||||||
|
{
|
||||||
|
return appDynamicImgMapper.deleteAppDynamicImgById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,96 @@
|
||||||
|
package com.ruoyi.app.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.common.core.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.app.mapper.AppTopicMapper;
|
||||||
|
import com.ruoyi.app.domain.AppTopic;
|
||||||
|
import com.ruoyi.app.service.IAppTopicService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 话题信息Service业务层处理
|
||||||
|
*
|
||||||
|
* @author wyh
|
||||||
|
* @date 2024-04-23
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class AppTopicServiceImpl implements IAppTopicService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private AppTopicMapper appTopicMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询话题信息
|
||||||
|
*
|
||||||
|
* @param id 话题信息主键
|
||||||
|
* @return 话题信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AppTopic selectAppTopicById(Long id)
|
||||||
|
{
|
||||||
|
return appTopicMapper.selectAppTopicById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询话题信息列表
|
||||||
|
*
|
||||||
|
* @param appTopic 话题信息
|
||||||
|
* @return 话题信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<AppTopic> selectAppTopicList(AppTopic appTopic)
|
||||||
|
{
|
||||||
|
return appTopicMapper.selectAppTopicList(appTopic);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增话题信息
|
||||||
|
*
|
||||||
|
* @param appTopic 话题信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertAppTopic(AppTopic appTopic)
|
||||||
|
{
|
||||||
|
appTopic.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return appTopicMapper.insertAppTopic(appTopic);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改话题信息
|
||||||
|
*
|
||||||
|
* @param appTopic 话题信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateAppTopic(AppTopic appTopic)
|
||||||
|
{
|
||||||
|
appTopic.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return appTopicMapper.updateAppTopic(appTopic);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除话题信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的话题信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteAppTopicByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return appTopicMapper.deleteAppTopicByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除话题信息信息
|
||||||
|
*
|
||||||
|
* @param id 话题信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteAppTopicById(Long id)
|
||||||
|
{
|
||||||
|
return appTopicMapper.deleteAppTopicById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,127 @@
|
||||||
|
package com.ruoyi.app.service.impl;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.ruoyi.app.domain.AppDynamicImg;
|
||||||
|
import com.ruoyi.app.mapper.AppDynamicImgMapper;
|
||||||
|
import com.ruoyi.common.core.utils.DateUtils;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.app.mapper.AppUserDynamicMapper;
|
||||||
|
import com.ruoyi.app.domain.AppUserDynamic;
|
||||||
|
import com.ruoyi.app.service.IAppUserDynamicService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* App用户动态Service业务层处理
|
||||||
|
*
|
||||||
|
* @author wyh
|
||||||
|
* @date 2024-04-23
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class AppUserDynamicServiceImpl implements IAppUserDynamicService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private AppUserDynamicMapper appUserDynamicMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private AppDynamicImgMapper appDynamicImgMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询App用户动态
|
||||||
|
*
|
||||||
|
* @param id App用户动态主键
|
||||||
|
* @return App用户动态
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AppUserDynamic selectAppUserDynamicById(Long id)
|
||||||
|
{
|
||||||
|
return appUserDynamicMapper.selectAppUserDynamicById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询App用户动态列表
|
||||||
|
*
|
||||||
|
* @param appUserDynamic App用户动态
|
||||||
|
* @return App用户动态
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<AppUserDynamic> selectAppUserDynamicList(AppUserDynamic appUserDynamic)
|
||||||
|
{
|
||||||
|
return appUserDynamicMapper.selectAppUserDynamicList(appUserDynamic);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增App用户动态
|
||||||
|
*
|
||||||
|
* @param appUserDynamic App用户动态
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertAppUserDynamic(AppUserDynamic appUserDynamic) {
|
||||||
|
appUserDynamicMapper.insertAppUserDynamic(appUserDynamic);
|
||||||
|
appUserDynamic.setCreateTime(DateUtils.getNowDate());
|
||||||
|
if (StringUtils.isNotBlank(appUserDynamic.getImgUrls())) {
|
||||||
|
List<String> imgs = Arrays.asList(appUserDynamic.getImgUrls().split(","));
|
||||||
|
for (String img : imgs) {
|
||||||
|
AppDynamicImg appDynamicImg = new AppDynamicImg();
|
||||||
|
appDynamicImg.setUserDynamicId(appUserDynamic.getId());
|
||||||
|
appDynamicImg.setImgUrl(img);
|
||||||
|
appDynamicImg.setCreateTime(DateUtils.getNowDate());
|
||||||
|
appDynamicImgMapper.insertAppDynamicImg(appDynamicImg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改App用户动态
|
||||||
|
*
|
||||||
|
* @param appUserDynamic App用户动态
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateAppUserDynamic(AppUserDynamic appUserDynamic)
|
||||||
|
{
|
||||||
|
appUserDynamic.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
if (StringUtils.isNotBlank(appUserDynamic.getImgUrls())) {
|
||||||
|
appDynamicImgMapper.deleteAppDynamicImgByDynamicId(appUserDynamic.getId());
|
||||||
|
List<String> imgs = Arrays.asList(appUserDynamic.getImgUrls().split(","));
|
||||||
|
for (String img : imgs) {
|
||||||
|
AppDynamicImg appDynamicImg = new AppDynamicImg();
|
||||||
|
appDynamicImg.setUserDynamicId(appUserDynamic.getId());
|
||||||
|
appDynamicImg.setImgUrl(img);
|
||||||
|
appDynamicImg.setCreateTime(DateUtils.getNowDate());
|
||||||
|
appDynamicImgMapper.insertAppDynamicImg(appDynamicImg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return appUserDynamicMapper.updateAppUserDynamic(appUserDynamic);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除App用户动态
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的App用户动态主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteAppUserDynamicByIds(Long[] ids) {
|
||||||
|
for (Long id : ids) {
|
||||||
|
appDynamicImgMapper.deleteAppDynamicImgByDynamicId(id);
|
||||||
|
}
|
||||||
|
return appUserDynamicMapper.deleteAppUserDynamicByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除App用户动态信息
|
||||||
|
*
|
||||||
|
* @param id App用户动态主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteAppUserDynamicById(Long id) {
|
||||||
|
appDynamicImgMapper.deleteAppDynamicImgByDynamicId(id);
|
||||||
|
return appUserDynamicMapper.deleteAppUserDynamicById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,86 @@
|
||||||
|
<?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="com.ruoyi.app.mapper.AppDynamicImgMapper">
|
||||||
|
|
||||||
|
<resultMap type="AppDynamicImg" id="AppDynamicImgResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="userDynamicId" column="user_dynamic_id" />
|
||||||
|
<result property="imgUrl" column="img_url" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="updateBy" column="updateBy" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectAppDynamicImgVo">
|
||||||
|
select id, user_dynamic_id, img_url, remark, create_time, update_time, create_by, updateBy from app_dynamic_img
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectAppDynamicImgList" parameterType="AppDynamicImg" resultMap="AppDynamicImgResult">
|
||||||
|
<include refid="selectAppDynamicImgVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="userDynamicId != null "> and user_dynamic_id = #{userDynamicId}</if>
|
||||||
|
<if test="imgUrl != null and imgUrl != ''"> and img_url = #{imgUrl}</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''"> and updateBy = #{updateBy}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectAppDynamicImgById" parameterType="Long" resultMap="AppDynamicImgResult">
|
||||||
|
<include refid="selectAppDynamicImgVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertAppDynamicImg" parameterType="AppDynamicImg" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into app_dynamic_img
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="userDynamicId != null">user_dynamic_id,</if>
|
||||||
|
<if test="imgUrl != null">img_url,</if>
|
||||||
|
<if test="remark != null">remark,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="updateBy != null">updateBy,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="userDynamicId != null">#{userDynamicId},</if>
|
||||||
|
<if test="imgUrl != null">#{imgUrl},</if>
|
||||||
|
<if test="remark != null">#{remark},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateAppDynamicImg" parameterType="AppDynamicImg">
|
||||||
|
update app_dynamic_img
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="userDynamicId != null">user_dynamic_id = #{userDynamicId},</if>
|
||||||
|
<if test="imgUrl != null">img_url = #{imgUrl},</if>
|
||||||
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="updateBy != null">updateBy = #{updateBy},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteAppDynamicImgById" parameterType="Long">
|
||||||
|
delete from app_dynamic_img where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteAppDynamicImgByDynamicId" parameterType="Long">
|
||||||
|
delete from app_dynamic_img where user_dynamic_id = #{userDynamicId}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteAppDynamicImgByIds" parameterType="String">
|
||||||
|
delete from app_dynamic_img where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
|
|
@ -0,0 +1,77 @@
|
||||||
|
<?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="com.ruoyi.app.mapper.AppTopicMapper">
|
||||||
|
|
||||||
|
<resultMap type="AppTopic" id="AppTopicResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="name" column="name" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="updateBy" column="updateBy" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectAppTopicVo">
|
||||||
|
select id, name, create_time, update_time, create_by, updateBy, remark from app_topic
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectAppTopicList" parameterType="AppTopic" resultMap="AppTopicResult">
|
||||||
|
<include refid="selectAppTopicVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''"> and updateBy = #{updateBy}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectAppTopicById" parameterType="Long" resultMap="AppTopicResult">
|
||||||
|
<include refid="selectAppTopicVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertAppTopic" parameterType="AppTopic" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into app_topic
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="name != null">name,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="updateBy != null">updateBy,</if>
|
||||||
|
<if test="remark != null">remark,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="name != null">#{name},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
<if test="remark != null">#{remark},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateAppTopic" parameterType="AppTopic">
|
||||||
|
update app_topic
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="name != null">name = #{name},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="updateBy != null">updateBy = #{updateBy},</if>
|
||||||
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteAppTopicById" parameterType="Long">
|
||||||
|
delete from app_topic where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteAppTopicByIds" parameterType="String">
|
||||||
|
delete from app_topic where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
|
|
@ -0,0 +1,102 @@
|
||||||
|
<?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="com.ruoyi.app.mapper.AppUserDynamicMapper">
|
||||||
|
|
||||||
|
<resultMap type="AppUserDynamic" id="AppUserDynamicResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="userId" column="user_id" />
|
||||||
|
<result property="content" column="content" />
|
||||||
|
<result property="videoUrl" column="video_url" />
|
||||||
|
<result property="topicId" column="topic_id" />
|
||||||
|
<result property="address" column="address" />
|
||||||
|
<result property="privacyStatus" column="privacy_status" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="updateBy" column="updateBy" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectAppUserDynamicVo">
|
||||||
|
select id, user_id, content, video_url, topic_id, address, privacy_status, remark, create_time, update_time, create_by, updateBy from app_user_dynamic
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectAppUserDynamicList" parameterType="AppUserDynamic" resultMap="AppUserDynamicResult">
|
||||||
|
<include refid="selectAppUserDynamicVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="userId != null "> and user_id = #{userId}</if>
|
||||||
|
<if test="content != null and content != ''"> and content = #{content}</if>
|
||||||
|
<if test="videoUrl != null and videoUrl != ''"> and video_url = #{videoUrl}</if>
|
||||||
|
<if test="topicId != null "> and topic_id = #{topicId}</if>
|
||||||
|
<if test="address != null and address != ''"> and address = #{address}</if>
|
||||||
|
<if test="privacyStatus != null "> and privacy_status = #{privacyStatus}</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''"> and updateBy = #{updateBy}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectAppUserDynamicById" parameterType="Long" resultMap="AppUserDynamicResult">
|
||||||
|
<include refid="selectAppUserDynamicVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertAppUserDynamic" parameterType="AppUserDynamic" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into app_user_dynamic
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="userId != null">user_id,</if>
|
||||||
|
<if test="content != null">content,</if>
|
||||||
|
<if test="videoUrl != null">video_url,</if>
|
||||||
|
<if test="topicId != null">topic_id,</if>
|
||||||
|
<if test="address != null">address,</if>
|
||||||
|
<if test="privacyStatus != null">privacy_status,</if>
|
||||||
|
<if test="remark != null">remark,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="updateBy != null">updateBy,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="userId != null">#{userId},</if>
|
||||||
|
<if test="content != null">#{content},</if>
|
||||||
|
<if test="videoUrl != null">#{videoUrl},</if>
|
||||||
|
<if test="topicId != null">#{topicId},</if>
|
||||||
|
<if test="address != null">#{address},</if>
|
||||||
|
<if test="privacyStatus != null">#{privacyStatus},</if>
|
||||||
|
<if test="remark != null">#{remark},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateAppUserDynamic" parameterType="AppUserDynamic">
|
||||||
|
update app_user_dynamic
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="userId != null">user_id = #{userId},</if>
|
||||||
|
<if test="content != null">content = #{content},</if>
|
||||||
|
<if test="videoUrl != null">video_url = #{videoUrl},</if>
|
||||||
|
<if test="topicId != null">topic_id = #{topicId},</if>
|
||||||
|
<if test="address != null">address = #{address},</if>
|
||||||
|
<if test="privacyStatus != null">privacy_status = #{privacyStatus},</if>
|
||||||
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="updateBy != null">updateBy = #{updateBy},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteAppUserDynamicById" parameterType="Long">
|
||||||
|
delete from app_user_dynamic where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteAppUserDynamicByIds" parameterType="String">
|
||||||
|
delete from app_user_dynamic where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
Loading…
Reference in New Issue