From fe36c158108ddbbce90421644ef5b16132061942 Mon Sep 17 00:00:00 2001 From: PigBaoBei <2739175034@qq.com> Date: Fri, 26 Jan 2024 10:00:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E6=A0=B8=E4=BF=AE=E6=94=B9=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/logpm/supervise/api/ClassifyApi.java | 8 ++++++++ .../com/logpm/supervise/mapper/IndicatorsAnnexMapper.java | 6 ++++++ .../com/logpm/supervise/mapper/IndicatorsAnnexMapper.xml | 3 +++ .../com/logpm/supervise/service/IClassifyService.java | 7 +++++++ 4 files changed, 24 insertions(+) diff --git a/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/api/ClassifyApi.java b/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/api/ClassifyApi.java index 923f924f6..07de253b7 100644 --- a/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/api/ClassifyApi.java +++ b/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/api/ClassifyApi.java @@ -67,6 +67,14 @@ public class ClassifyApi { return r; } + @PostMapping("/updateApiIndicators") + @ApiOperationSupport(order = 1) + @ApiOperation(value = "小程序保存考核内容", notes = "传入classify") + public R updateApiIndicators(@RequestBody IndicatorsDTO instanceofDTO) { + R r = classifyService.updateApiIndicators(instanceofDTO); + return r; + } + diff --git a/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/IndicatorsAnnexMapper.java b/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/IndicatorsAnnexMapper.java index 91c5096d6..34ae2968f 100644 --- a/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/IndicatorsAnnexMapper.java +++ b/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/IndicatorsAnnexMapper.java @@ -12,4 +12,10 @@ public interface IndicatorsAnnexMapper extends BaseMapper List findListByIndicatorsIdAndType(@Param("id") Long id, @Param("type") int type); + + /** + * 删除考核所关联的附件资源 + * @param id + */ + void deleteResourceByInstanceoId(@Param("") Long id); } diff --git a/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/IndicatorsAnnexMapper.xml b/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/IndicatorsAnnexMapper.xml index e400c49bf..bd8a5728b 100644 --- a/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/IndicatorsAnnexMapper.xml +++ b/blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/IndicatorsAnnexMapper.xml @@ -1,6 +1,9 @@ + + DELETE FROM sup_indicators_annex WHERE indicators_id = #{indicatorsId} +