[修改] 已办
This commit is contained in:
@@ -4,6 +4,8 @@ import com.adc.da.report.eo.ReportFile;
|
|||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public interface ReportFileDao extends BaseMapper<ReportFile> {
|
public interface ReportFileDao extends BaseMapper<ReportFile> {
|
||||||
|
|
||||||
void delByReportId(@Param("pageVO") ReportFile reportFile);
|
void delByReportId(@Param("pageVO") ReportFile reportFile);
|
||||||
@@ -11,4 +13,6 @@ public interface ReportFileDao extends BaseMapper<ReportFile> {
|
|||||||
void actEndDelReport(@Param("reportId")String reportId);
|
void actEndDelReport(@Param("reportId")String reportId);
|
||||||
|
|
||||||
void updateState(@Param("reportId")String dataId);
|
void updateState(@Param("reportId")String dataId);
|
||||||
|
|
||||||
|
List<ReportFile> selectByReport(@Param("pageVO")ReportFile reportFile);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,4 +26,16 @@
|
|||||||
</where>
|
</where>
|
||||||
|
|
||||||
</delete>
|
</delete>
|
||||||
|
<select id="selectByReport" resultType="com.adc.da.report.eo.ReportFile">
|
||||||
|
select rf.*,f.file_name as fileName from ts_report_file rf
|
||||||
|
LEFT JOIN ts_file f on f.FILE_ID = rf.file_id
|
||||||
|
<where>
|
||||||
|
<if test="pageVO.reportId !=null and pageVO.reportId !=''">
|
||||||
|
AND report_id = #{pageVO.reportId}
|
||||||
|
</if>
|
||||||
|
<if test="pageVO.state !=null">
|
||||||
|
AND state = #{pageVO.state}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
+17
-4
@@ -2,11 +2,9 @@ package com.adc.da.wkflow.business_activiti.task;
|
|||||||
|
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.adc.da.login.util.UserUtils;
|
import com.adc.da.login.util.UserUtils;
|
||||||
import com.adc.da.report.dao.mysql.PowerApplyActDao;
|
import com.adc.da.report.dao.mysql.*;
|
||||||
import com.adc.da.report.dao.mysql.ReportDao;
|
|
||||||
import com.adc.da.report.dao.mysql.TreeLabelDao;
|
|
||||||
import com.adc.da.report.dao.mysql.TtReportManageActDao;
|
|
||||||
import com.adc.da.report.eo.ReportEntity;
|
import com.adc.da.report.eo.ReportEntity;
|
||||||
|
import com.adc.da.report.eo.ReportFile;
|
||||||
import com.adc.da.report.eo.TtReportManageAct;
|
import com.adc.da.report.eo.TtReportManageAct;
|
||||||
import com.adc.da.report.vo.PowerApplyActPageVO;
|
import com.adc.da.report.vo.PowerApplyActPageVO;
|
||||||
import com.adc.da.sys.service.iservice.IUserEoService;
|
import com.adc.da.sys.service.iservice.IUserEoService;
|
||||||
@@ -87,6 +85,9 @@ public class TodoTaskController {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private TtReportManageActDao ttReportManageActDao;
|
private TtReportManageActDao ttReportManageActDao;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ReportFileDao reportFileDao;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ReportDao reportDao;
|
private ReportDao reportDao;
|
||||||
|
|
||||||
@@ -619,6 +620,12 @@ public class TodoTaskController {
|
|||||||
}else {
|
}else {
|
||||||
ttReportManageAct = ttReportManageActDao.selectByPrcId(pId);
|
ttReportManageAct = ttReportManageActDao.selectByPrcId(pId);
|
||||||
}
|
}
|
||||||
|
// 为空说明流程已经结束
|
||||||
|
if (ttReportManageAct.getFileList().size() == 0){
|
||||||
|
List<ReportFile> reportFiles =
|
||||||
|
reportFileDao.selectByReport(new ReportFile(ttReportManageAct.getDataId(),2));
|
||||||
|
ttReportManageAct.setFileList(reportFiles);
|
||||||
|
}
|
||||||
List<String> labelList = treeLableDao.selectIdByReport(ttReportManageAct.getDataId());
|
List<String> labelList = treeLableDao.selectIdByReport(ttReportManageAct.getDataId());
|
||||||
ttReportManageAct.setLabelList(labelList);
|
ttReportManageAct.setLabelList(labelList);
|
||||||
String string = JSONArray.toJSONString(ttReportManageAct);
|
String string = JSONArray.toJSONString(ttReportManageAct);
|
||||||
@@ -633,6 +640,12 @@ public class TodoTaskController {
|
|||||||
}else {
|
}else {
|
||||||
ttReportManageAct = ttReportManageActDao.selectByPrcId(pId);
|
ttReportManageAct = ttReportManageActDao.selectByPrcId(pId);
|
||||||
}
|
}
|
||||||
|
// 为空说明流程已经结束
|
||||||
|
if (ttReportManageAct.getFileList().size() == 0){
|
||||||
|
List<ReportFile> reportFiles =
|
||||||
|
reportFileDao.selectByReport(new ReportFile(ttReportManageAct.getDataId(),2));
|
||||||
|
ttReportManageAct.setFileList(reportFiles);
|
||||||
|
}
|
||||||
List<String> labelList = treeLableDao.selectIdByReport(ttReportManageAct.getDataId());
|
List<String> labelList = treeLableDao.selectIdByReport(ttReportManageAct.getDataId());
|
||||||
ttReportManageAct.setLabelList(labelList);
|
ttReportManageAct.setLabelList(labelList);
|
||||||
String string = JSONArray.toJSONString(ttReportManageAct);
|
String string = JSONArray.toJSONString(ttReportManageAct);
|
||||||
|
|||||||
Reference in New Issue
Block a user