pad端:服务计划编排接口

This commit is contained in:
1378012178@qq.com 2025-11-06 13:37:31 +08:00
parent 0b80db757e
commit 92b936af1e
3 changed files with 266 additions and 64 deletions

View File

@ -1,7 +1,9 @@
package com.nu.modules.NuBizNuCustomerServer.controller; package com.nu.modules.NuBizNuCustomerServer.controller;
import com.nu.modules.NuBizNuCustomerServer.entity.DirectivePackageDto; import com.nu.modules.NuBizNuCustomerServer.entity.DirectivePackageDto;
import com.nu.modules.NuBizNuCustomerServer.entity.NuBizNuCustomerElderTag;
import com.nu.modules.NuBizNuCustomerServer.entity.NuBizNuCustomerServer; import com.nu.modules.NuBizNuCustomerServer.entity.NuBizNuCustomerServer;
import com.nu.modules.NuBizNuCustomerServer.entity.NuBizNuCustomerServerInstant;
import com.nu.modules.NuBizNuCustomerServer.service.INuBizNuCustomerServerService; import com.nu.modules.NuBizNuCustomerServer.service.INuBizNuCustomerServerService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
@ -136,4 +138,129 @@ public class NuBizNuCustomerServerController extends JeecgController<NuBizNuCust
return Result.OK(pageList); return Result.OK(pageList);
} }
/**
* PAD端编排护理流程-新增服务指令
*
* @param nuBizNuCustomerServer
* @return
*/
@AutoLog(value = "编排护理流程-新增服务指令")
@ApiOperation(value="编排护理流程-新增服务指令", notes="编排护理流程-新增服务指令")
@PostMapping(value = "/addDirective")
public Result<NuBizNuCustomerServer> addDirective(@RequestBody NuBizNuCustomerServer nuBizNuCustomerServer) {
nuBizNuCustomerServerService.addDirective(nuBizNuCustomerServer);
return Result.OK("操作成功");
}
/**
* PAD端编排护理流程-新增即时服务指令
*
* @param customerServerInstant
* @return
*/
@AutoLog(value = "编排护理流程-新增即时服务指令")
@ApiOperation(value="编排护理流程-新增即时服务指令", notes="编排护理流程-新增即时服务指令")
@PostMapping(value = "/addInstant")
public Result<?> addDirective(@RequestBody NuBizNuCustomerServerInstant customerServerInstant) {
nuBizNuCustomerServerService.addInstant(customerServerInstant);
return Result.OK("操作成功");
}
/**
* PAD端编排护理流程-新增情绪/体型标签
*
* @param customerElderTag
* @return
*/
@AutoLog(value = "编排护理流程-新增情绪/体型标签")
@ApiOperation(value="编排护理流程-新增情绪/体型标签", notes="编排护理流程-新增情绪/体型标签")
@PostMapping(value = "/addElderTag")
public Result<?> addElderTag(@RequestBody NuBizNuCustomerElderTag customerElderTag) {
nuBizNuCustomerServerService.addElderTag(customerElderTag);
return Result.OK("操作成功");
}
/**
* PAD端编排护理流程-删除服务指令
*
* @param nuBizNuCustomerServer
* @return
*/
@AutoLog(value = "编排护理流程-删除服务指令")
@ApiOperation(value="编排护理流程-删除服务指令", notes="编排护理流程-删除服务指令")
@PostMapping(value = "/deleteDirective")
public Result<NuBizNuCustomerServer> deleteDirective(@RequestBody NuBizNuCustomerServer nuBizNuCustomerServer) {
nuBizNuCustomerServerService.deleteDirective(nuBizNuCustomerServer);
return Result.OK("操作成功");
}
/**
* PAD端编排护理流程-删除即时服务指令
*
* @param customerServerInstant
* @return
*/
@AutoLog(value = "编排护理流程-删除即时服务指令")
@ApiOperation(value="编排护理流程-删除即时服务指令", notes="编排护理流程-删除即时服务指令")
@PostMapping(value = "/deleteInstant")
public Result<?> deleteInstant(@RequestBody NuBizNuCustomerServerInstant customerServerInstant) {
nuBizNuCustomerServerService.deleteInstant(customerServerInstant);
return Result.OK("操作成功");
}
/**
* PAD端编排护理流程-删除情绪/体型标签
*
* @param customerElderTag
* @return
*/
@AutoLog(value = "编排护理流程-删除情绪/体型标签")
@ApiOperation(value="编排护理流程-删除情绪/体型标签", notes="编排护理流程-删除情绪/体型标签")
@PostMapping(value = "/deleteElderTag")
public Result<?> deleteElderTag(@RequestBody NuBizNuCustomerElderTag customerElderTag) {
nuBizNuCustomerServerService.deleteElderTag(customerElderTag);
return Result.OK("操作成功");
}
/**
* PAD端编排护理流程-修改服务指令
*
* @param nuBizNuCustomerServer
* @return
*/
@AutoLog(value = "编排护理流程-修改服务指令")
@ApiOperation(value="编排护理流程-修改服务指令", notes="编排护理流程-修改服务指令")
@PostMapping(value = "/editDirective")
public Result<NuBizNuCustomerServer> editDirective(@RequestBody NuBizNuCustomerServer nuBizNuCustomerServer) {
nuBizNuCustomerServerService.editDirective(nuBizNuCustomerServer);
return Result.OK("操作成功");
}
/**
* PAD端编排护理流程-修改即时服务指令
*
* @param customerServerInstant
* @return
*/
@AutoLog(value = "编排护理流程-修改即时服务指令")
@ApiOperation(value="编排护理流程修改除即时服务指令", notes="编排护理流程-修改即时服务指令")
@PostMapping(value = "/editInstant")
public Result<?> editInstant(@RequestBody NuBizNuCustomerServerInstant customerServerInstant) {
nuBizNuCustomerServerService.editInstant(customerServerInstant);
return Result.OK("操作成功");
}
/**
* PAD端编排护理流程-修改情绪/体型标签
*
* @param customerElderTag
* @return
*/
@AutoLog(value = "编排护理流程-修改情绪/体型标签")
@ApiOperation(value="编排护理流程-修改情绪/体型标签", notes="编排护理流程-修改情绪/体型标签")
@PostMapping(value = "/editElderTag")
public Result<?> editElderTag(@RequestBody NuBizNuCustomerElderTag customerElderTag) {
nuBizNuCustomerServerService.editElderTag(customerElderTag);
return Result.OK("操作成功");
}
} }

View File

@ -1,8 +1,10 @@
package com.nu.modules.NuBizNuCustomerServer.service; package com.nu.modules.NuBizNuCustomerServer.service;
import com.nu.modules.NuBizNuCustomerServer.entity.DirectivePackageDto; import com.nu.modules.NuBizNuCustomerServer.entity.DirectivePackageDto;
import com.nu.modules.NuBizNuCustomerServer.entity.NuBizNuCustomerElderTag;
import com.nu.modules.NuBizNuCustomerServer.entity.NuBizNuCustomerServer; import com.nu.modules.NuBizNuCustomerServer.entity.NuBizNuCustomerServer;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.nu.modules.NuBizNuCustomerServer.entity.NuBizNuCustomerServerInstant;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -24,4 +26,22 @@ public interface INuBizNuCustomerServerService extends IService<NuBizNuCustomerS
void addBatch(NuBizNuCustomerServer nuBizNuCustomerServer); void addBatch(NuBizNuCustomerServer nuBizNuCustomerServer);
List<DirectivePackageDto> getNcPackagelist(DirectivePackageDto directivePackageDto); List<DirectivePackageDto> getNcPackagelist(DirectivePackageDto directivePackageDto);
void addDirective(NuBizNuCustomerServer nuBizNuCustomerServer);
void addInstant(NuBizNuCustomerServerInstant customerServerInstant);
void addElderTag(NuBizNuCustomerElderTag customerElderTag);
void deleteDirective(NuBizNuCustomerServer nuBizNuCustomerServer);
void deleteInstant(NuBizNuCustomerServerInstant customerServerInstant);
void deleteElderTag(NuBizNuCustomerElderTag customerElderTag);
void editDirective(NuBizNuCustomerServer nuBizNuCustomerServer);
void editInstant(NuBizNuCustomerServerInstant customerServerInstant);
void editElderTag(NuBizNuCustomerElderTag customerElderTag);
} }

View File

@ -352,8 +352,63 @@ public class NuBizNuCustomerServerServiceImpl extends ServiceImpl<NuBizNuCustome
return list; return list;
} }
@Override
public void addDirective(NuBizNuCustomerServer nuBizNuCustomerServer) {
baseMapper.insert(nuBizNuCustomerServer);
//TODO 增加日志
}
@Override
public void addInstant(NuBizNuCustomerServerInstant customerServerInstant) {
nuBizNuCustomerServerInstantService.save(customerServerInstant);
//TODO 增加日志
}
@Override
public void addElderTag(NuBizNuCustomerElderTag customerElderTag) {
nuBizNuCustomerElderTagService.save(customerElderTag);
//TODO 增加日志
}
@Override
public void deleteDirective(NuBizNuCustomerServer nuBizNuCustomerServer) {
baseMapper.deleteById(nuBizNuCustomerServer);
//TODO 增加日志
}
@Override
public void deleteInstant(NuBizNuCustomerServerInstant customerServerInstant) {
nuBizNuCustomerServerInstantService.removeById(customerServerInstant);
//TODO 增加日志
}
@Override
public void deleteElderTag(NuBizNuCustomerElderTag customerElderTag) {
nuBizNuCustomerElderTagService.removeById(customerElderTag);
//TODO 增加日志
}
@Override
public void editDirective(NuBizNuCustomerServer nuBizNuCustomerServer) {
baseMapper.updateById(nuBizNuCustomerServer);
//TODO 增加日志
}
@Override
public void editInstant(NuBizNuCustomerServerInstant customerServerInstant) {
nuBizNuCustomerServerInstantService.updateById(customerServerInstant);
//TODO 增加日志
}
@Override
public void editElderTag(NuBizNuCustomerElderTag customerElderTag) {
nuBizNuCustomerElderTagService.updateById(customerElderTag);
//TODO 增加日志
}
/** /**
* 获取管理平台静态资源路径 * 获取管理平台静态资源路径
*
* @return * @return
*/ */
private void getOpeMediaAddress() { private void getOpeMediaAddress() {