feat(): 更改信息

1127/donghongyang
donghongyang 2024-11-30 11:58:52 +08:00
parent 62efa5e9de
commit 0a5e8071d1
7 changed files with 35 additions and 25 deletions

View File

@ -79,6 +79,9 @@ public class ActivityTeamInfo extends BaseEntity {
* ID
*/
private Long strategyId;
/**
*
*/
/**

View File

@ -48,7 +48,6 @@ public class ActivityTeamInfoAddModel {
/**
*
*/
private String imageList;
/**
*

View File

@ -0,0 +1,10 @@
package com.muyu.marketing.domain.req;
import com.muyu.marketing.domain.ActivityTeamInfo;
import lombok.Data;
@Data
public class ActivityTeamInfoReq extends ActivityTeamInfo {
private Integer pageNum=1;
private Integer pageSize=2;
}

View File

@ -75,4 +75,5 @@ public class ActivityTeamInfoSaveReq extends BaseEntity {
* ID
*/
private Long strategyId;
}

View File

@ -22,7 +22,6 @@ public class TeamInfoListReq extends PageDomain {
*/
private String status;
/**
*
* @return

View File

@ -1,26 +1,30 @@
package com.muyu.marketing.team.controller;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.web.page.TableDataInfo;
import com.muyu.marketing.domain.ActivityTeamInfo;
import com.muyu.marketing.domain.model.ActivityTeamInfoAddModel;
import com.muyu.marketing.domain.model.ActivityTeamInfoListModel;
import com.muyu.marketing.domain.model.ActivityTeamInfoModel;
import com.muyu.marketing.domain.req.ActivityTeamInfoReq;
import com.muyu.marketing.domain.req.ActivityTeamInfoSaveReq;
import com.muyu.marketing.domain.req.ActivityTeamProductReq;
import com.muyu.marketing.domain.req.TeamInfoListReq;
import com.muyu.marketing.domain.resp.ActivityTeamInfoDatailResp;
import com.muyu.marketing.domain.resp.TeamInfoListResp;
import com.muyu.marketing.team.service.ActivityTeamInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
*
*
* @author
* @author DongZeLiang
* @date 2024-11-20 14:25
*/
@RestController
@ -28,7 +32,7 @@ import java.util.List;
public class ActivityTeamController {
@Autowired
private ActivityTeamInfoService activityTeamInfoService;
private ActivityTeamInfoService activityTeamInfoService;;
/**
*
@ -53,31 +57,23 @@ public class ActivityTeamController {
* @param activityTeamInfoSaveReq
* @return
*/
@PostMapping
@PostMapping("/add")
public Result<String> save(@RequestBody ActivityTeamInfoSaveReq activityTeamInfoSaveReq) {
activityTeamInfoService.save(ActivityTeamInfoAddModel.addReqBuild(activityTeamInfoSaveReq));
return Result.success();
}
/**
* Id
* @param
*
* @param activityTeamInfo
* @return
*/
@GetMapping("/{id}")
public Result<ActivityTeamInfoDatailResp> findById(@PathVariable Long id) {
ActivityTeamInfoDatailResp activityById = activityTeamInfoService.findActivityById(id);
return Result.success(activityById);
}
/**
*
*/
@PostMapping("/update")
public Result<ActivityTeamProductReq> updDate(@RequestBody ActivityTeamProductReq activityTeamProductReq){
ActivityTeamInfoModel activityTeamInfoModel = ActivityTeamInfoModel.activityTeamBuilder(activityTeamProductReq);
activityTeamInfoService.bateUpdate(activityTeamInfoModel);
return Result.success();
@PostMapping("/listTeam")
public Result listTeam(@RequestBody ActivityTeamInfoReq activityTeamInfo){
PageHelper.startPage(activityTeamInfo.getPageNum(),activityTeamInfo.getPageSize());
List<ActivityTeamInfo> list = activityTeamInfoService.list();
PageInfo<ActivityTeamInfo> activityTeamInfoPageInfo = new PageInfo<>(list);
return Result.success(activityTeamInfoPageInfo);
}
}

View File

@ -3,6 +3,8 @@ package com.muyu.marketing.team.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.muyu.common.core.utils.StringUtils;
import com.muyu.common.core.web.page.TableDataInfo;
import com.muyu.marketing.domain.ActivityTeamInfo;