feat(oa): 增加项目ID和进度明细ID字段及相关查询功能
- 在 OaFileOperationRecord 实体类中新增 projectId 和 trackId 字段 - 在 OaFileOperationRecordBo 业务对象中新增 projectId 和 trackId 字段 - 在 OaFileOperationRecordMapper 中新增 selectVoPagePlus 方法用于分页查询 - 在 OaFileOperationRecordMapper.xml 中配置 selectVoPagePlus 的 SQL 映射 - 新增 buildQueryWrapperPlus 方法支持关联表的条件查询 - 在 OaFileOperationRecordVo 视图对象中新增项目及节点相关字段 - 更新 queryPageList 方法使用新的
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
<resultMap type="com.ruoyi.oa.domain.OaFileOperationRecord" id="OaFileOperationRecordResult">
|
||||
<result property="recordId" column="record_id"/>
|
||||
<result property="fileId" column="file_id"/>
|
||||
<result property="projectId" column="project_id"/>
|
||||
<result property="trackId" column="track_id"/>
|
||||
<result property="fileName" column="file_name"/>
|
||||
<result property="operatorName" column="operator_name"/>
|
||||
<result property="type" column="type"/>
|
||||
@@ -17,6 +19,31 @@
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
<select id="selectVoPagePlus" resultType="com.ruoyi.oa.domain.vo.OaFileOperationRecordVo">
|
||||
SELECT
|
||||
ofor.record_id,
|
||||
ofor.file_id,
|
||||
ofor.project_id,
|
||||
ofor.track_id,
|
||||
ofor.file_name,
|
||||
ofor.operator_name,
|
||||
ofor.type,
|
||||
ofor.remark,
|
||||
ofor.create_by,
|
||||
ofor.create_time,
|
||||
ofor.update_by,
|
||||
ofor.update_time,
|
||||
ofor.del_flag,
|
||||
sop.project_name AS projectName,
|
||||
opss.tab_node AS tabNode,
|
||||
opss.first_level_node AS firstLevelNode,
|
||||
opss.second_level_node AS secondLevelNode,
|
||||
opss.node_header AS nodeHeader
|
||||
FROM oa_file_operation_record ofor
|
||||
LEFT JOIN sys_oa_project sop ON ofor.project_id = sop.project_id
|
||||
LEFT JOIN oa_project_schedule_step opss ON ofor.track_id = opss.track_id
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user