[修改] 流程监听器的名称
This commit is contained in:
@@ -49,5 +49,7 @@ public interface PowerApplyActDao extends BaseMapper<PowerApplyAct> {
|
||||
|
||||
List<PowerApplyActPageVO> selectListBydataIdNodel(@Param("dataId")String dataId);
|
||||
|
||||
List<PowerApplyAct> selectActListBydataId(@Param("dataId")String dataId);
|
||||
|
||||
int batchDel(@Param("ids") List<String> ids);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.adc.da.report.dao.mysql;
|
||||
|
||||
import com.adc.da.report.eo.ReportEntity;
|
||||
import com.adc.da.report.eo.TtReportManageAct;
|
||||
import com.adc.da.report.vo.ReportQueryVo;
|
||||
import com.adc.da.report.vo.ReportVo;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
@@ -59,4 +60,6 @@ public interface ReportDao extends BaseMapper<ReportEntity> {
|
||||
List<String> isAct(@Param("Vo") ReportQueryVo vo);
|
||||
|
||||
long selectByidAndName(@Param("Vo")ReportEntity entity);
|
||||
|
||||
void saveReportAct(@Param("Vo") TtReportManageAct ttReportManageAct);
|
||||
}
|
||||
|
||||
@@ -18,4 +18,6 @@ public interface ITtReportManageActService {
|
||||
void saveOrUpdateSingle(TtReportManageAct ttReportManageAct);
|
||||
|
||||
void deleteById(DeleteParamRequestVO deleteParamVO);
|
||||
|
||||
void saveReport(TtReportManageAct ttReportManageAct);
|
||||
}
|
||||
|
||||
+19
@@ -1,7 +1,10 @@
|
||||
package com.adc.da.report.service.impl;
|
||||
|
||||
|
||||
import com.adc.da.report.dao.mysql.PowerApplyDao;
|
||||
import com.adc.da.report.dao.mysql.ReportDao;
|
||||
import com.adc.da.report.dao.mysql.TtReportManageActDao;
|
||||
import com.adc.da.report.eo.PowerApplyAct;
|
||||
import com.adc.da.report.eo.TtReportManageAct;
|
||||
import com.adc.da.report.service.ITtReportManageActService;
|
||||
import com.adc.da.report.vo.DeleteParamRequestVO;
|
||||
@@ -11,6 +14,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.util.ObjectUtils;
|
||||
|
||||
@@ -27,6 +31,12 @@ import java.util.List;
|
||||
@Service
|
||||
public class ITtReportManageActServiceImpl extends ServiceImpl<TtReportManageActDao, TtReportManageAct> implements ITtReportManageActService {
|
||||
|
||||
@Autowired
|
||||
ReportDao reportDao;
|
||||
|
||||
@Autowired
|
||||
PowerApplyDao powerApplyDao;
|
||||
|
||||
/**
|
||||
* @param ttReportManageActPageVO
|
||||
* @return <com.adc.da.report.entity.TtReportManageAct>
|
||||
@@ -108,4 +118,13 @@ public class ITtReportManageActServiceImpl extends ServiceImpl<TtReportManageAct
|
||||
ttReportManageAct.setDelFlag(1);
|
||||
baseMapper.update(ttReportManageAct,wrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void saveReport(TtReportManageAct ttReportManageAct) {
|
||||
//保存报告
|
||||
reportDao.saveReportAct(ttReportManageAct);
|
||||
//保存报告权限数据
|
||||
List<PowerApplyAct> powerList = ttReportManageAct.getPowerList();
|
||||
powerApplyDao.saveBatch(powerList);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -113,4 +113,9 @@
|
||||
left join TT_REPORT_MANAGE rep on a.report_id = rep.id
|
||||
where a.data_id = #{dataId}
|
||||
</select>
|
||||
<select id="selectActListBydataId" resultType="com.adc.da.report.eo.PowerApplyAct">
|
||||
select a.*
|
||||
from <include refid="TableName"/> a
|
||||
where a.data_id = #{dataId} and a.del_flag = 0
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
@@ -2,6 +2,25 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.adc.da.report.dao.mysql.ReportDao">
|
||||
|
||||
<!-- 通用查询结果列 -->
|
||||
<sql id="BaseColumnList">
|
||||
id,
|
||||
data_id, name, keycontent, maincontent, department, year, fileId, confidentialLevel, privacyLevel, createUserId, createDate, updateDate, del_flag
|
||||
</sql>
|
||||
|
||||
<sql id="BaseColumnValue">
|
||||
#{Vo.id},
|
||||
#{Vo.dataId},#{Vo.name},#{Vo.keycontent},#{Vo.maincontent},#{Vo.department},#{Vo.year},#{Vo.fileId},
|
||||
#{Vo.confidentialLevel},#{Vo.privacyLevel},
|
||||
#{Vo.createUserId},
|
||||
#{Vo.createDate},#{Vo.updateDate},#{Vo.del_flag}
|
||||
</sql>
|
||||
|
||||
<insert id="saveReportAct">
|
||||
insert into TT_REPORT_MANAGE (<include refid="BaseColumnList"/>)
|
||||
value (<include refid="BaseColumnValue"/>)
|
||||
</insert>
|
||||
|
||||
<select id="getReportDateList" parameterType="string" resultType="string">
|
||||
select distinct year from TT_REPORT_MANAGE t1
|
||||
left join TR_REPORT_USER t2 on t1.id=t2.reportId
|
||||
|
||||
Reference in New Issue
Block a user