客户管理-附件保存与查询
This commit is contained in:
@ -85,7 +85,7 @@ public class CustomerController {
|
||||
@ApiOperation(value="根据id查询LngCustomer信息")
|
||||
@SaCheckPermission("customer:detail")
|
||||
public R info(@RequestParam Long id){
|
||||
LngCustomer lngCustomer = customerService.getByIdDeep(id);
|
||||
LngCustomer lngCustomer = customerService.getCustomerById(id);
|
||||
if (lngCustomer == null) {
|
||||
return R.error("找不到此数据!");
|
||||
}
|
||||
@ -147,7 +147,7 @@ public class CustomerController {
|
||||
@ApiOperation(value = "删除")
|
||||
@SaCheckPermission("customer:delete")
|
||||
public R delete(@Valid @RequestBody List<Long> ids){
|
||||
return R.ok(customerService.delete(ids));
|
||||
return R.ok(dataService.delete(ids));
|
||||
|
||||
}
|
||||
|
||||
@ -155,7 +155,7 @@ public class CustomerController {
|
||||
@ApiOperation(value = "启用LngCustomer")
|
||||
@SaCheckPermission("customer:enable")
|
||||
public R enable(@Valid @RequestBody List<Long> ids){
|
||||
return R.ok(dataService.enable(UpdateLngCustomerDto.class,ids));
|
||||
return R.ok(dataService.enable(UpdateLngCustomerDto.class,ids));
|
||||
}
|
||||
|
||||
|
||||
@ -163,7 +163,7 @@ public class CustomerController {
|
||||
@ApiOperation(value = "禁用LngCustomer")
|
||||
@SaCheckPermission("customer:disable")
|
||||
public R disable(@Valid @RequestBody List<Long> ids){
|
||||
return R.ok(dataService.disable(UpdateLngCustomerDto.class,ids));
|
||||
return R.ok(dataService.disable(UpdateLngCustomerDto.class,ids));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user