服务编排新增接口增加返回值

This commit is contained in:
1378012178@qq.com 2025-11-06 13:47:28 +08:00
parent 92b936af1e
commit 1293a629ad
3 changed files with 12 additions and 12 deletions

View File

@ -148,8 +148,7 @@ public class NuBizNuCustomerServerController extends JeecgController<NuBizNuCust
@ApiOperation(value="编排护理流程-新增服务指令", notes="编排护理流程-新增服务指令")
@PostMapping(value = "/addDirective")
public Result<NuBizNuCustomerServer> addDirective(@RequestBody NuBizNuCustomerServer nuBizNuCustomerServer) {
nuBizNuCustomerServerService.addDirective(nuBizNuCustomerServer);
return Result.OK("操作成功");
return Result.OK(nuBizNuCustomerServerService.addDirective(nuBizNuCustomerServer));
}
/**
@ -162,8 +161,7 @@ public class NuBizNuCustomerServerController extends JeecgController<NuBizNuCust
@ApiOperation(value="编排护理流程-新增即时服务指令", notes="编排护理流程-新增即时服务指令")
@PostMapping(value = "/addInstant")
public Result<?> addDirective(@RequestBody NuBizNuCustomerServerInstant customerServerInstant) {
nuBizNuCustomerServerService.addInstant(customerServerInstant);
return Result.OK("操作成功");
return Result.OK(nuBizNuCustomerServerService.addInstant(customerServerInstant));
}
/**
@ -176,8 +174,7 @@ public class NuBizNuCustomerServerController extends JeecgController<NuBizNuCust
@ApiOperation(value="编排护理流程-新增情绪/体型标签", notes="编排护理流程-新增情绪/体型标签")
@PostMapping(value = "/addElderTag")
public Result<?> addElderTag(@RequestBody NuBizNuCustomerElderTag customerElderTag) {
nuBizNuCustomerServerService.addElderTag(customerElderTag);
return Result.OK("操作成功");
return Result.OK(nuBizNuCustomerServerService.addElderTag(customerElderTag));
}
/**

View File

@ -27,11 +27,11 @@ public interface INuBizNuCustomerServerService extends IService<NuBizNuCustomerS
List<DirectivePackageDto> getNcPackagelist(DirectivePackageDto directivePackageDto);
void addDirective(NuBizNuCustomerServer nuBizNuCustomerServer);
NuBizNuCustomerServer addDirective(NuBizNuCustomerServer nuBizNuCustomerServer);
void addInstant(NuBizNuCustomerServerInstant customerServerInstant);
NuBizNuCustomerServerInstant addInstant(NuBizNuCustomerServerInstant customerServerInstant);
void addElderTag(NuBizNuCustomerElderTag customerElderTag);
NuBizNuCustomerElderTag addElderTag(NuBizNuCustomerElderTag customerElderTag);
void deleteDirective(NuBizNuCustomerServer nuBizNuCustomerServer);

View File

@ -353,21 +353,24 @@ public class NuBizNuCustomerServerServiceImpl extends ServiceImpl<NuBizNuCustome
}
@Override
public void addDirective(NuBizNuCustomerServer nuBizNuCustomerServer) {
public NuBizNuCustomerServer addDirective(NuBizNuCustomerServer nuBizNuCustomerServer) {
baseMapper.insert(nuBizNuCustomerServer);
//TODO 增加日志
return nuBizNuCustomerServer;
}
@Override
public void addInstant(NuBizNuCustomerServerInstant customerServerInstant) {
public NuBizNuCustomerServerInstant addInstant(NuBizNuCustomerServerInstant customerServerInstant) {
nuBizNuCustomerServerInstantService.save(customerServerInstant);
//TODO 增加日志
return customerServerInstant;
}
@Override
public void addElderTag(NuBizNuCustomerElderTag customerElderTag) {
public NuBizNuCustomerElderTag addElderTag(NuBizNuCustomerElderTag customerElderTag) {
nuBizNuCustomerElderTagService.save(customerElderTag);
//TODO 增加日志
return customerElderTag;
}
@Override