Merge branch 'refs/heads/cc_partner_init_zhuangxiu' into cc_partner_init
# Conflicts: # coolstore-partner-common/src/main/java/com/cool/store/enums/ErrorCodeEnum.java # coolstore-partner-dao/src/main/java/com/cool/store/mapper/ShopAuditInfoMapper.java # coolstore-partner-dao/src/main/resources/mapper/ShopAuditInfoMapper.xml
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
package com.cool.store.controller.webb;
|
||||
|
||||
import com.cool.store.mapper.OpeningOperationPlanMapper;
|
||||
import com.cool.store.request.OpeningOperationPlanAuditRequest;
|
||||
import com.cool.store.request.OpeningOperationPlanRequest;
|
||||
import com.cool.store.request.PlanListRequest;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.OpeningOperationPlanAuditService;
|
||||
import com.cool.store.service.OpeningOperationPlanService;
|
||||
import com.cool.store.vo.OpeningOperationPlanListVO;
|
||||
import com.cool.store.vo.OpeningOperationPlanVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Auther: WangShuo
|
||||
* @Date: 2024/04/22/下午5:28
|
||||
* @Version 1.0
|
||||
* @注释:
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("pc/openingOperationPlan")
|
||||
@Api(tags = "开业运营方案")
|
||||
public class OpeningOperationPlanController {
|
||||
|
||||
@Resource
|
||||
private OpeningOperationPlanService openingOperationPlanService;
|
||||
@Resource
|
||||
private OpeningOperationPlanAuditService openingOperationPlanAuditService;
|
||||
|
||||
@PostMapping("/submit")
|
||||
@ApiOperation("提交开业运营方案")
|
||||
public ResponseResult submitPlan(@RequestBody OpeningOperationPlanRequest request){
|
||||
Long planId = openingOperationPlanService.savePlan(request);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
@GetMapping("/getPlan")
|
||||
@ApiOperation("查询开业运营方案")
|
||||
public ResponseResult<OpeningOperationPlanVO> getPlan(@RequestParam Long planId){
|
||||
OpeningOperationPlanVO plan = openingOperationPlanService.getPlanById(planId);
|
||||
return ResponseResult.success(plan);
|
||||
}
|
||||
@PostMapping("/audit")
|
||||
@ApiOperation("审核运营方案")
|
||||
public ResponseResult auditPlan(@RequestBody OpeningOperationPlanAuditRequest request){
|
||||
openingOperationPlanAuditService.auditPlan(request);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
@GetMapping("/planList")
|
||||
@ApiOperation("查询运营方案列表")
|
||||
public ResponseResult<List<OpeningOperationPlanListVO>> planList(@RequestBody PlanListRequest request){
|
||||
openingOperationPlanService.getPlanListPage(request);
|
||||
return ResponseResult.success(openingOperationPlanService.getPlanListPage(request));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user