---数据服务操作增加操作对象生命周期
This commit is contained in:
@ -102,7 +102,7 @@ public class CategoryController {
|
||||
@ApiOperation(value = "启用LngBCategory")
|
||||
@SaCheckPermission("category:enable")
|
||||
public R enable(@Valid @RequestBody List<Long> ids){
|
||||
return R.ok(categoryService.enable(ids));
|
||||
return R.ok(dataService.enable(UpdateLngBCategoryDto.class,ids));
|
||||
}
|
||||
|
||||
@PostMapping("/disable")
|
||||
|
||||
@ -121,7 +121,6 @@ public class CountryRegionController {
|
||||
@SaCheckPermission("countryRegion:delete")
|
||||
public R delete(@Valid @RequestBody List<Long> ids){
|
||||
return R.ok(dataService.deleteByIds(UpdateLngBRegionDto.class, ids));
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
package com.xjrsoft;
|
||||
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
@ -14,6 +15,7 @@ import com.xjrsoft.common.annotation.UniqueNameGenerator;
|
||||
* 主数据服务---开发使用
|
||||
* 使用时集成到其它模块使用,不作为单独的服务
|
||||
*/
|
||||
@MapperScan("com.xjrsoft.module.*.mapper")
|
||||
@SpringBootApplication
|
||||
@EnableAspectJAutoProxy(exposeProxy = true)
|
||||
@ComponentScan(nameGenerator = UniqueNameGenerator.class)
|
||||
|
||||
Reference in New Issue
Block a user