仓库类pad接口删除多余代码
This commit is contained in:
parent
1667fe0470
commit
72d5fe88d1
|
|
@ -89,38 +89,4 @@ public class InvoicingDirectiveApi {
|
|||
return Result.OK("操作成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* PAD端编排护理流程-新增即时服务指令
|
||||
*
|
||||
* @param invoicingDirectiveInstantEntity
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/addInstant")
|
||||
public Result<?> addDirective(@RequestBody InvoicingDirectiveInstantEntity invoicingDirectiveInstantEntity) {
|
||||
return Result.OK(invoicingDirectivePlanApi.addInstant(invoicingDirectiveInstantEntity));
|
||||
}
|
||||
|
||||
/**
|
||||
* PAD端编排护理流程-修改即时服务指令
|
||||
*
|
||||
* @param invoicingDirectiveInstantEntity
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/editInstant")
|
||||
public Result<String> editInstant(@RequestBody InvoicingDirectiveInstantEntity invoicingDirectiveInstantEntity) {
|
||||
invoicingDirectivePlanApi.editInstant(invoicingDirectiveInstantEntity);
|
||||
return Result.OK("操作成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* PAD端编排护理流程-删除即时服务指令
|
||||
*
|
||||
* @param invoicingDirectiveInstantEntity
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/deleteInstant")
|
||||
public Result<String> deleteInstant(@RequestBody InvoicingDirectiveInstantEntity invoicingDirectiveInstantEntity) {
|
||||
invoicingDirectivePlanApi.deleteInstant(invoicingDirectiveInstantEntity);
|
||||
return Result.OK("操作成功");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,4 @@ public interface IInvoicingDirectivePlanApi {
|
|||
InvoicingDirectiveEntity addDirective(InvoicingDirectiveEntity invoicingDirectiveEntity);
|
||||
void editDirective(InvoicingDirectiveEntity invoicingDirectiveEntity);
|
||||
void deleteDirective(InvoicingDirectiveEntity invoicingDirectiveEntity);
|
||||
InvoicingDirectiveInstantEntity addInstant(InvoicingDirectiveInstantEntity invoicingDirectiveInstantEntity);
|
||||
void editInstant(InvoicingDirectiveInstantEntity invoicingDirectiveInstantEntity);
|
||||
void deleteInstant(InvoicingDirectiveInstantEntity invoicingDirectiveInstantEntity);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -89,30 +89,6 @@ public class InvoicingDirectivePlanServiceImpl extends ServiceImpl<InvoicingDire
|
|||
//TODO 增加日志
|
||||
}
|
||||
|
||||
@Override
|
||||
public InvoicingDirectiveInstantEntity addInstant(InvoicingDirectiveInstantEntity invoicingDirectiveInstantEntity) {
|
||||
InvoicingDirectivePlanInstant instant = new InvoicingDirectivePlanInstant();
|
||||
BeanUtils.copyProperties(invoicingDirectiveInstantEntity, instant);
|
||||
invoicingDirectivePlanInstantService.save(instant);
|
||||
//TODO 增加日志
|
||||
BeanUtils.copyProperties(instant, invoicingDirectiveInstantEntity);
|
||||
return invoicingDirectiveInstantEntity;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void editInstant(InvoicingDirectiveInstantEntity invoicingDirectiveInstantEntity) {
|
||||
InvoicingDirectivePlanInstant instant = new InvoicingDirectivePlanInstant();
|
||||
BeanUtils.copyProperties(invoicingDirectiveInstantEntity, instant);
|
||||
invoicingDirectivePlanInstantService.updateById(instant);
|
||||
//TODO 增加日志
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteInstant(InvoicingDirectiveInstantEntity invoicingDirectiveInstantEntity) {
|
||||
invoicingDirectivePlanInstantService.deleteByIdPhysic(invoicingDirectiveInstantEntity.getId());
|
||||
//TODO 增加日志
|
||||
}
|
||||
|
||||
@Override
|
||||
public int queryTotal(String nuId) {
|
||||
return baseMapper.queryTotal(nuId);
|
||||
|
|
|
|||
Loading…
Reference in New Issue