Browse Source

考核修改接口补充

dev-pushdata-important
汤建军 12 months ago
parent
commit
fe36c15810
  1. 8
      blade-service/logpm-supervise/src/main/java/com/logpm/supervise/api/ClassifyApi.java
  2. 6
      blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/IndicatorsAnnexMapper.java
  3. 3
      blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/IndicatorsAnnexMapper.xml
  4. 7
      blade-service/logpm-supervise/src/main/java/com/logpm/supervise/service/IClassifyService.java

8
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;
}

6
blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/IndicatorsAnnexMapper.java

@ -12,4 +12,10 @@ public interface IndicatorsAnnexMapper extends BaseMapper<IndicatorsAnnexEntity>
List<IndicatorsAnnexEntity> findListByIndicatorsIdAndType(@Param("id") Long id, @Param("type") int type);
/**
* 删除考核所关联的附件资源
* @param id
*/
void deleteResourceByInstanceoId(@Param("") Long id);
}

3
blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/IndicatorsAnnexMapper.xml

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.logpm.supervise.mapper.IndicatorsAnnexMapper">
<delete id="deleteResourceByInstanceoId">
DELETE FROM sup_indicators_annex WHERE indicators_id = #{indicatorsId}
</delete>
<select id="findListByIndicatorsIdAndType" resultType="com.logpm.supervise.entity.IndicatorsAnnexEntity">
select *

7
blade-service/logpm-supervise/src/main/java/com/logpm/supervise/service/IClassifyService.java

@ -79,4 +79,11 @@ public interface IClassifyService extends BaseService<ClassifyEntity> {
* @return
*/
R myApiIndicatorsDetail(Long id);
/**
* 修改我的考核
* @param instanceofDTO
* @return
*/
R updateApiIndicators(IndicatorsDTO instanceofDTO);
}

Loading…
Cancel
Save