记得上下班打卡 | git大法好,push需谨慎

Commit c14cac55 authored by zhengfuxin's avatar zhengfuxin

修改查询param

parent c911cc9a
package com.liquidnet.service.goblin.param;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 轮播图
* </p>
*
* @author liquidnet
* @since 2021-12-27
*/
@ApiModel(value = "GoblinFrontBannerBuildParam", description = "轮播图param")
@Data
public class GoblinFrontBannerBuildParam implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@ApiModelProperty(value = "主键")
private Long mid;
/**
* 图片路径
*/
@ApiModelProperty(value = "图片路径")
private String picUrl;
/**
* 排序
*/
@ApiModelProperty(value = "排序")
private Integer indexs;
/**
* 1、票务2、H5
*/
@ApiModelProperty(value = "1、票务2、H5")
private String jumpType;
/**
* 开启时间
*/
@ApiModelProperty(value = "开启时间")
private LocalDateTime startTime;
/**
* 结束时间
*/
@ApiModelProperty(value = "结束时间")
private LocalDateTime endTime;
/**
* 活动url
*/
@ApiModelProperty(value = "活动url")
private String activityUrl;
/**
* 票务名字
*/
@ApiModelProperty(value = "票务名字")
private String ticketName;
/**
* 1、首页顶部位置2、首页中部位置
*/
@ApiModelProperty(value = "1、首页顶部位置2、首页中部位置")
private Integer bannerType;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
/**
* 修改时间
*/
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateTime;
/**
* bannerId
*/
@ApiModelProperty(value = "bannerId")
private String bannerId;
/**
* 0未删除1已删除
*/
@ApiModelProperty(value = "0未删除1已删除")
private Integer delTag;
}
package com.liquidnet.service.goblin.param;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 热词
* </p>
*
* @author liquidnet
* @since 2021-12-28
*/
@ApiModel(value = "GoblinFrontHotWordBuildParam", description = "热词")
@Data
public class GoblinFrontHotWordBuildParam implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@ApiModelProperty(value = "主键")
private Long mid;
/**
* 热词
*/
@ApiModelProperty(value = "热词")
private String word;
/**
* 1开启2未开启
*/
@ApiModelProperty(value = "1开启2未开启")
private Integer status;
/**
* 排序
*/
@ApiModelProperty(value = "排序")
private Integer indexs;
/**
* 1、滚动2、按时切换
*/
@ApiModelProperty(value = "1、滚动2、按时切换")
private Integer changeType;
/**
* 切换时间单位为s
*/
@ApiModelProperty(value = "切换时间单位为s")
private Integer changeTime;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
/**
* 修改时间
*/
@ApiModelProperty(value = "创建时间")
private LocalDateTime updateTime;
/**
* 热词id
*/
@ApiModelProperty(value = "热词id")
private String hotWordId;
/**
* 0未删除1已删除
*/
@ApiModelProperty(value = "0未删除1已删除")
private Integer delTag;
}
...@@ -8,8 +8,10 @@ import com.liquidnet.client.admin.zhengzai.goblin.service.impl.GoblinFrontBanner ...@@ -8,8 +8,10 @@ import com.liquidnet.client.admin.zhengzai.goblin.service.impl.GoblinFrontBanner
import com.liquidnet.client.admin.zhengzai.goblin.service.impl.GoblinFrontHotWordServiceImpl; import com.liquidnet.client.admin.zhengzai.goblin.service.impl.GoblinFrontHotWordServiceImpl;
import com.liquidnet.client.admin.zhengzai.goblin.service.impl.GoblinFrontNavigationServiceImpl; import com.liquidnet.client.admin.zhengzai.goblin.service.impl.GoblinFrontNavigationServiceImpl;
import com.liquidnet.service.goblin.entity.GoblinFrontBanner; import com.liquidnet.service.goblin.entity.GoblinFrontBanner;
import com.liquidnet.service.goblin.param.GoblinFrontBannerBuildParam;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -40,7 +42,9 @@ public class GoblinFrontBannerController extends BaseController { ...@@ -40,7 +42,9 @@ public class GoblinFrontBannerController extends BaseController {
@PostMapping("create") @PostMapping("create")
@ApiOperation(value = "增加banner") @ApiOperation(value = "增加banner")
@ResponseBody @ResponseBody
public AjaxResult create( @RequestBody GoblinFrontBanner goblinFrontBanner) { public AjaxResult create(@RequestBody GoblinFrontBannerBuildParam goblinFrontBannerBuildParam) {
GoblinFrontBanner goblinFrontBanner=new GoblinFrontBanner();
BeanUtils.copyProperties(goblinFrontBannerBuildParam,goblinFrontBanner);
logger.info("增加banner{}", JSON.toJSONString(goblinFrontBanner)); logger.info("增加banner{}", JSON.toJSONString(goblinFrontBanner));
boolean result=goblinFrontBannerService.create(goblinFrontBanner); boolean result=goblinFrontBannerService.create(goblinFrontBanner);
if (result ) { if (result ) {
...@@ -53,7 +57,9 @@ public class GoblinFrontBannerController extends BaseController { ...@@ -53,7 +57,9 @@ public class GoblinFrontBannerController extends BaseController {
@PostMapping("update") @PostMapping("update")
@ApiOperation(value = "修改banner") @ApiOperation(value = "修改banner")
@ResponseBody @ResponseBody
public AjaxResult update( @RequestBody GoblinFrontBanner goblinFrontBanner) { public AjaxResult update( @RequestBody GoblinFrontBannerBuildParam goblinFrontBannerBuildParam) {
GoblinFrontBanner goblinFrontBanner=new GoblinFrontBanner();
BeanUtils.copyProperties(goblinFrontBannerBuildParam,goblinFrontBanner);
logger.info("修改banner{}", JSON.toJSONString(goblinFrontBanner)); logger.info("修改banner{}", JSON.toJSONString(goblinFrontBanner));
boolean result=goblinFrontBannerService.update(goblinFrontBanner); boolean result=goblinFrontBannerService.update(goblinFrontBanner);
if (result ) { if (result ) {
...@@ -65,7 +71,9 @@ public class GoblinFrontBannerController extends BaseController { ...@@ -65,7 +71,9 @@ public class GoblinFrontBannerController extends BaseController {
@PostMapping("delete") @PostMapping("delete")
@ApiOperation(value = "删除banner") @ApiOperation(value = "删除banner")
@ResponseBody @ResponseBody
public AjaxResult delete( @RequestBody GoblinFrontBanner goblinFrontBanner) { public AjaxResult delete( @RequestBody GoblinFrontBannerBuildParam goblinFrontBannerBuildParam) {
GoblinFrontBanner goblinFrontBanner=new GoblinFrontBanner();
BeanUtils.copyProperties(goblinFrontBannerBuildParam,goblinFrontBanner);
logger.info("删除banner{}", JSON.toJSONString(goblinFrontBanner)); logger.info("删除banner{}", JSON.toJSONString(goblinFrontBanner));
boolean result=goblinFrontBannerService.delte(goblinFrontBanner.getMid()); boolean result=goblinFrontBannerService.delte(goblinFrontBanner.getMid());
if (result ) { if (result ) {
...@@ -77,7 +85,9 @@ public class GoblinFrontBannerController extends BaseController { ...@@ -77,7 +85,9 @@ public class GoblinFrontBannerController extends BaseController {
@PostMapping("getOne") @PostMapping("getOne")
@ApiOperation(value = "查看详情") @ApiOperation(value = "查看详情")
@ResponseBody @ResponseBody
public AjaxResult getOne( @RequestBody GoblinFrontBanner goblinFrontBanner) { public AjaxResult getOne( @RequestBody GoblinFrontBannerBuildParam goblinFrontBannerBuildParam) {
GoblinFrontBanner goblinFrontBanner=new GoblinFrontBanner();
BeanUtils.copyProperties(goblinFrontBannerBuildParam,goblinFrontBanner);
logger.info("查看详情{}", JSON.toJSONString(goblinFrontBanner)); logger.info("查看详情{}", JSON.toJSONString(goblinFrontBanner));
GoblinFrontBanner goblinFrontBanner1=goblinFrontBannerService.getOne(goblinFrontBanner.getMid()); GoblinFrontBanner goblinFrontBanner1=goblinFrontBannerService.getOne(goblinFrontBanner.getMid());
return AjaxResult.success(goblinFrontBanner1); return AjaxResult.success(goblinFrontBanner1);
...@@ -85,7 +95,9 @@ public class GoblinFrontBannerController extends BaseController { ...@@ -85,7 +95,9 @@ public class GoblinFrontBannerController extends BaseController {
@PostMapping("page") @PostMapping("page")
@ApiOperation(value = "分页") @ApiOperation(value = "分页")
@ResponseBody @ResponseBody
public AjaxResult page( @RequestParam(name = "pageSize", required = true) int pageSize,@RequestParam(name = "pageNumber", required = true)int pageNumber,@RequestBody GoblinFrontBanner goblinFrontBanner) { public AjaxResult page( @RequestParam(name = "pageSize", required = true) int pageSize,@RequestParam(name = "pageNumber", required = true)int pageNumber,@RequestBody GoblinFrontBannerBuildParam goblinFrontBannerBuildParam) {
GoblinFrontBanner goblinFrontBanner=new GoblinFrontBanner();
BeanUtils.copyProperties(goblinFrontBannerBuildParam,goblinFrontBanner);
logger.info("分页banner{}", JSON.toJSONString(goblinFrontBanner)); logger.info("分页banner{}", JSON.toJSONString(goblinFrontBanner));
return AjaxResult.success(goblinFrontBannerService.bannerPage(pageSize,pageNumber,null)); return AjaxResult.success(goblinFrontBannerService.bannerPage(pageSize,pageNumber,null));
} }
......
...@@ -6,8 +6,10 @@ import com.liquidnet.client.admin.common.core.controller.BaseController; ...@@ -6,8 +6,10 @@ import com.liquidnet.client.admin.common.core.controller.BaseController;
import com.liquidnet.client.admin.common.core.domain.AjaxResult; import com.liquidnet.client.admin.common.core.domain.AjaxResult;
import com.liquidnet.client.admin.zhengzai.goblin.service.impl.GoblinFrontHotWordServiceImpl; import com.liquidnet.client.admin.zhengzai.goblin.service.impl.GoblinFrontHotWordServiceImpl;
import com.liquidnet.service.goblin.entity.GoblinFrontHotWord; import com.liquidnet.service.goblin.entity.GoblinFrontHotWord;
import com.liquidnet.service.goblin.param.GoblinFrontHotWordBuildParam;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -20,7 +22,7 @@ import org.springframework.web.bind.annotation.*; ...@@ -20,7 +22,7 @@ import org.springframework.web.bind.annotation.*;
* @author liquidnet * @author liquidnet
* @since 2021-12-28 * @since 2021-12-28
*/ */
@Api(tags = "热管理") @Api(tags = "热管理")
@RestController @RestController
@RequestMapping("/hotWord") @RequestMapping("/hotWord")
public class GoblinFrontHotWordController extends BaseController { public class GoblinFrontHotWordController extends BaseController {
...@@ -34,7 +36,9 @@ public class GoblinFrontHotWordController extends BaseController { ...@@ -34,7 +36,9 @@ public class GoblinFrontHotWordController extends BaseController {
@PostMapping("create") @PostMapping("create")
@ApiOperation(value = "增加热词") @ApiOperation(value = "增加热词")
@ResponseBody @ResponseBody
public AjaxResult create(@RequestBody GoblinFrontHotWord goblinFrontHotWord) { public AjaxResult create(@RequestBody GoblinFrontHotWordBuildParam goblinFrontHotWordBuildParam) {
GoblinFrontHotWord goblinFrontHotWord=new GoblinFrontHotWord();
BeanUtils.copyProperties(goblinFrontHotWordBuildParam,goblinFrontHotWord);
logger.info("增加热词{}", JSON.toJSONString(goblinFrontHotWord)); logger.info("增加热词{}", JSON.toJSONString(goblinFrontHotWord));
boolean result=goblinFrontHotWordService.create(goblinFrontHotWord); boolean result=goblinFrontHotWordService.create(goblinFrontHotWord);
if (result ) { if (result ) {
...@@ -46,7 +50,9 @@ public class GoblinFrontHotWordController extends BaseController { ...@@ -46,7 +50,9 @@ public class GoblinFrontHotWordController extends BaseController {
@PostMapping("update") @PostMapping("update")
@ApiOperation(value = "修改热词") @ApiOperation(value = "修改热词")
@ResponseBody @ResponseBody
public AjaxResult update( @RequestBody GoblinFrontHotWord goblinFrontHotWord) { public AjaxResult update(@RequestBody GoblinFrontHotWordBuildParam goblinFrontHotWordBuildParam) {
GoblinFrontHotWord goblinFrontHotWord=new GoblinFrontHotWord();
BeanUtils.copyProperties(goblinFrontHotWordBuildParam,goblinFrontHotWord);
logger.info("修改热词{}", JSON.toJSONString(goblinFrontHotWord)); logger.info("修改热词{}", JSON.toJSONString(goblinFrontHotWord));
boolean result=goblinFrontHotWordService.update(goblinFrontHotWord); boolean result=goblinFrontHotWordService.update(goblinFrontHotWord);
if (result ) { if (result ) {
...@@ -58,7 +64,9 @@ public class GoblinFrontHotWordController extends BaseController { ...@@ -58,7 +64,9 @@ public class GoblinFrontHotWordController extends BaseController {
@PostMapping("delete") @PostMapping("delete")
@ApiOperation(value = "删除热词") @ApiOperation(value = "删除热词")
@ResponseBody @ResponseBody
public AjaxResult delete( @RequestBody GoblinFrontHotWord goblinFrontHotWord) { public AjaxResult delete( @RequestBody GoblinFrontHotWordBuildParam goblinFrontHotWordBuildParam) {
GoblinFrontHotWord goblinFrontHotWord=new GoblinFrontHotWord();
BeanUtils.copyProperties(goblinFrontHotWordBuildParam,goblinFrontHotWord);
logger.info("删除热词{}", JSON.toJSONString(goblinFrontHotWord)); logger.info("删除热词{}", JSON.toJSONString(goblinFrontHotWord));
boolean result=goblinFrontHotWordService.delete(goblinFrontHotWord.getMid()); boolean result=goblinFrontHotWordService.delete(goblinFrontHotWord.getMid());
if (result ) { if (result ) {
...@@ -70,7 +78,9 @@ public class GoblinFrontHotWordController extends BaseController { ...@@ -70,7 +78,9 @@ public class GoblinFrontHotWordController extends BaseController {
@PostMapping("getOne") @PostMapping("getOne")
@ApiOperation(value = "查看详情") @ApiOperation(value = "查看详情")
@ResponseBody @ResponseBody
public AjaxResult getOne( @RequestBody GoblinFrontHotWord goblinFrontHotWord) { public AjaxResult getOne( @RequestBody GoblinFrontHotWordBuildParam goblinFrontHotWordBuildParam) {
GoblinFrontHotWord goblinFrontHotWord=new GoblinFrontHotWord();
BeanUtils.copyProperties(goblinFrontHotWordBuildParam,goblinFrontHotWord);
logger.info("查看详情{}", JSON.toJSONString(goblinFrontHotWord)); logger.info("查看详情{}", JSON.toJSONString(goblinFrontHotWord));
goblinFrontHotWord=goblinFrontHotWordService.getOne(goblinFrontHotWord.getMid()); goblinFrontHotWord=goblinFrontHotWordService.getOne(goblinFrontHotWord.getMid());
return AjaxResult.success(goblinFrontHotWord); return AjaxResult.success(goblinFrontHotWord);
...@@ -78,7 +88,9 @@ public class GoblinFrontHotWordController extends BaseController { ...@@ -78,7 +88,9 @@ public class GoblinFrontHotWordController extends BaseController {
@PostMapping("page") @PostMapping("page")
@ApiOperation(value = "分页") @ApiOperation(value = "分页")
@ResponseBody @ResponseBody
public AjaxResult page( @RequestParam(name = "pageSize", required = true) int pageSize,@RequestParam(name = "pageNumber", required = true)int pageNumber,@RequestBody GoblinFrontHotWord goblinFrontHotWord) { public AjaxResult page( @RequestParam(name = "pageSize", required = true) int pageSize,@RequestParam(name = "pageNumber", required = true)int pageNumber,@RequestBody GoblinFrontHotWordBuildParam goblinFrontHotWordBuildParam) {
GoblinFrontHotWord goblinFrontHotWord=new GoblinFrontHotWord();
BeanUtils.copyProperties(goblinFrontHotWordBuildParam,goblinFrontHotWord);
logger.info("分页banner{}", JSON.toJSONString(goblinFrontHotWord)); logger.info("分页banner{}", JSON.toJSONString(goblinFrontHotWord));
return AjaxResult.success(goblinFrontHotWordService.page(pageSize,pageNumber,null)); return AjaxResult.success(goblinFrontHotWordService.page(pageSize,pageNumber,null));
} }
......
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