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