[修改] 已办
This commit is contained in:
@@ -4,6 +4,8 @@ import com.adc.da.report.eo.ReportFile;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ReportFileDao extends BaseMapper<ReportFile> {
|
||||
|
||||
void delByReportId(@Param("pageVO") ReportFile reportFile);
|
||||
@@ -11,4 +13,6 @@ public interface ReportFileDao extends BaseMapper<ReportFile> {
|
||||
void actEndDelReport(@Param("reportId")String reportId);
|
||||
|
||||
void updateState(@Param("reportId")String dataId);
|
||||
|
||||
List<ReportFile> selectByReport(@Param("pageVO")ReportFile reportFile);
|
||||
}
|
||||
|
||||
@@ -26,4 +26,16 @@
|
||||
</where>
|
||||
|
||||
</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>
|
||||
|
||||
Reference in New Issue
Block a user