|
@@ -4,8 +4,10 @@ package com.ylx.web.controller.massage;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
+import com.ylx.common.annotation.Log;
|
|
import com.ylx.common.core.controller.BaseController;
|
|
import com.ylx.common.core.controller.BaseController;
|
|
import com.ylx.common.core.domain.model.WxLoginUser;
|
|
import com.ylx.common.core.domain.model.WxLoginUser;
|
|
|
|
+import com.ylx.common.enums.BusinessType;
|
|
import com.ylx.massage.domain.BusinessDevelopment;
|
|
import com.ylx.massage.domain.BusinessDevelopment;
|
|
import com.ylx.massage.service.BusinessDevelopmentService;
|
|
import com.ylx.massage.service.BusinessDevelopmentService;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
@@ -15,6 +17,7 @@ import com.ylx.common.core.domain.R;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
|
|
+import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -42,6 +45,7 @@ public class BusinessDevelopmentController extends BaseController {
|
|
*/
|
|
*/
|
|
@GetMapping("selectAll")
|
|
@GetMapping("selectAll")
|
|
@ApiOperation("分页查询所有数据")
|
|
@ApiOperation("分页查询所有数据")
|
|
|
|
+ @Log(title = "招商新增查看", businessType = BusinessType.OTHER)
|
|
public R selectAll(Page<BusinessDevelopment> page, BusinessDevelopment businessDevelopment) {
|
|
public R selectAll(Page<BusinessDevelopment> page, BusinessDevelopment businessDevelopment) {
|
|
return R.ok(this.businessDevelopmentService.page(page, new QueryWrapper<>(businessDevelopment)));
|
|
return R.ok(this.businessDevelopmentService.page(page, new QueryWrapper<>(businessDevelopment)));
|
|
}
|
|
}
|
|
@@ -66,6 +70,7 @@ public class BusinessDevelopmentController extends BaseController {
|
|
*/
|
|
*/
|
|
@PostMapping("add")
|
|
@PostMapping("add")
|
|
@ApiOperation("新增数据")
|
|
@ApiOperation("新增数据")
|
|
|
|
+ @Log(title = "招商新增数据", businessType = BusinessType.INSERT)
|
|
public R insert(@RequestBody BusinessDevelopment businessDevelopment) {
|
|
public R insert(@RequestBody BusinessDevelopment businessDevelopment) {
|
|
|
|
|
|
WxLoginUser wxLoginUser = this.getWxLoginUser();
|
|
WxLoginUser wxLoginUser = this.getWxLoginUser();
|
|
@@ -87,6 +92,7 @@ public class BusinessDevelopmentController extends BaseController {
|
|
*/
|
|
*/
|
|
@PostMapping("update")
|
|
@PostMapping("update")
|
|
@ApiOperation("修改数据")
|
|
@ApiOperation("修改数据")
|
|
|
|
+ @Log(title = "招商新增修改数据", businessType = BusinessType.UPDATE)
|
|
public R update(@RequestBody BusinessDevelopment businessDevelopment) {
|
|
public R update(@RequestBody BusinessDevelopment businessDevelopment) {
|
|
return R.ok(this.businessDevelopmentService.updateById(businessDevelopment));
|
|
return R.ok(this.businessDevelopmentService.updateById(businessDevelopment));
|
|
}
|
|
}
|
|
@@ -99,7 +105,8 @@ public class BusinessDevelopmentController extends BaseController {
|
|
*/
|
|
*/
|
|
@PostMapping("delete")
|
|
@PostMapping("delete")
|
|
@ApiOperation("删除数据")
|
|
@ApiOperation("删除数据")
|
|
- public R delete(@RequestBody List<String> idList) {
|
|
|
|
|
|
+ @Log(title = "招商新增删除数据", businessType = BusinessType.UPDATE)
|
|
|
|
+ public R delete(@RequestBody ArrayList<String> idList) {
|
|
return R.ok(this.businessDevelopmentService.removeByIds(idList));
|
|
return R.ok(this.businessDevelopmentService.removeByIds(idList));
|
|
}
|
|
}
|
|
}
|
|
}
|