会议材料分轨 (material_audit_stage 单轨 → labor/service 双轨): - biz_meeting: labor_audit_stage/labor_compliance_approved + service_audit_stage/service_compliance_approved 四列替换原单轨两列 - StageDeriver: 单轨状态机(R/N/C0/C1/A) + 角色优先级选代表轨 + 会议物理态取两轨最小进度 - MeetingAuditStageEnum / 前端 meetingStage.js 镜像: 分轨推导 + 颜色跟随角色展示阶段(避免文案与颜色错位) - BizMeetingController/ServiceImpl/AuditLog + mapper + MeetingStageScheduler 同步分轨字段 - MeetingDetail/Meetings/doctor/executor Meetings/ManagerProjectDetail/ManagerProjectsAssign/PublicityDetail 同步双轨 其它: - 注册页 (执行单位/专家/支持单位) 加居中页标题 - DoctorDeptSelect/DoctorTitleSelect 空字符串统一 null, 避免挂载必填项飘红 - BizOrgMapper sponsor/executor options 加 status 字段 - sponsor/NewPerson 编辑态 orgName 只读
107 lines
6.0 KiB
XML
107 lines
6.0 KiB
XML
<?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.ruoyi.business.mapper.BizMeetingAuditLogMapper">
|
|
|
|
<resultMap type="BizMeetingAuditLog" id="BizMeetingAuditLogResult">
|
|
<id property="id" column="id" />
|
|
<result property="meetingId" column="meeting_id" />
|
|
<result property="auditor" column="auditor" />
|
|
<result property="opinion" column="opinion" />
|
|
<result property="executorStage" column="executor_stage" />
|
|
<result property="sponsorStage" column="sponsor_stage" />
|
|
<result property="managerStage" column="manager_stage" />
|
|
<result property="adminStage" column="admin_stage" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="auditTime" column="audit_time" />
|
|
<result property="auditType" column="audit_type" />
|
|
<result property="auditResult" column="audit_result" />
|
|
<result property="materialType" column="material_type" />
|
|
<result property="isDeleted" column="is_deleted" />
|
|
</resultMap>
|
|
|
|
<sql id="selectFields">
|
|
select id, meeting_id, auditor, opinion, executor_stage, sponsor_stage, manager_stage, admin_stage, create_time, audit_time, audit_type, audit_result, material_type, is_deleted
|
|
from biz_meeting_audit_log
|
|
</sql>
|
|
|
|
<select id="selectByPrimaryKey" resultMap="BizMeetingAuditLogResult" parameterType="Long">
|
|
<include refid="selectFields"/>
|
|
where id = #{id} and is_deleted = 0
|
|
</select>
|
|
|
|
<select id="selectList" resultMap="BizMeetingAuditLogResult" parameterType="BizMeetingAuditLog">
|
|
<include refid="selectFields"/>
|
|
<where>
|
|
is_deleted = 0
|
|
<if test="meetingId != null">and meeting_id = #{meetingId}</if>
|
|
<if test="auditor != null and auditor != ''">and auditor = #{auditor}</if>
|
|
</where>
|
|
order by id desc
|
|
</select>
|
|
|
|
<insert id="insert" parameterType="BizMeetingAuditLog" useGeneratedKeys="true" keyProperty="id">
|
|
insert into biz_meeting_audit_log
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="meetingId != null">meeting_id,</if>
|
|
<if test="auditor != null and auditor != ''">auditor,</if>
|
|
<if test="opinion != null and opinion != ''">opinion,</if>
|
|
<if test="executorStage != null and executorStage != ''">executor_stage,</if>
|
|
<if test="sponsorStage != null and sponsorStage != ''">sponsor_stage,</if>
|
|
<if test="managerStage != null and managerStage != ''">manager_stage,</if>
|
|
<if test="adminStage != null and adminStage != ''">admin_stage,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="auditTime != null">audit_time,</if>
|
|
<if test="auditType != null and auditType != ''">audit_type,</if>
|
|
<if test="auditResult != null and auditResult != ''">audit_result,</if>
|
|
<if test="materialType != null and materialType != ''">material_type,</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="meetingId != null">#{meetingId},</if>
|
|
<if test="auditor != null and auditor != ''">#{auditor},</if>
|
|
<if test="opinion != null and opinion != ''">#{opinion},</if>
|
|
<if test="executorStage != null and executorStage != ''">#{executorStage},</if>
|
|
<if test="sponsorStage != null and sponsorStage != ''">#{sponsorStage},</if>
|
|
<if test="managerStage != null and managerStage != ''">#{managerStage},</if>
|
|
<if test="adminStage != null and adminStage != ''">#{adminStage},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="auditTime != null">#{auditTime},</if>
|
|
<if test="auditType != null and auditType != ''">#{auditType},</if>
|
|
<if test="auditResult != null and auditResult != ''">#{auditResult},</if>
|
|
<if test="materialType != null and materialType != ''">#{materialType},</if>
|
|
</trim>
|
|
</insert>
|
|
|
|
<update id="updateByPrimaryKey" parameterType="BizMeetingAuditLog">
|
|
update biz_meeting_audit_log
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="auditor != null and auditor != ''">auditor = #{auditor},</if>
|
|
<if test="opinion != null and opinion != ''">opinion = #{opinion},</if>
|
|
<if test="executorStage != null and executorStage != ''">executor_stage = #{executorStage},</if>
|
|
<if test="sponsorStage != null and sponsorStage != ''">sponsor_stage = #{sponsorStage},</if>
|
|
<if test="managerStage != null and managerStage != ''">manager_stage = #{managerStage},</if>
|
|
<if test="adminStage != null and adminStage != ''">admin_stage = #{adminStage},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="auditTime != null">audit_time = #{auditTime},</if>
|
|
<if test="auditType != null and auditType != ''">audit_type = #{auditType},</if>
|
|
<if test="auditResult != null and auditResult != ''">audit_result = #{auditResult},</if>
|
|
</trim>
|
|
where id = #{id}
|
|
</update>
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="Long">
|
|
delete from biz_meeting_audit_log where id = #{id}
|
|
</delete>
|
|
|
|
<delete id="deleteByPrimaryKeys" parameterType="Long">
|
|
delete from biz_meeting_audit_log where id in
|
|
<foreach collection="ids" item="id" open="(" separator="," close=")">
|
|
#{id}
|
|
</foreach>
|
|
</delete>
|
|
|
|
<!-- 软删除: admin 删除会议时级联置 is_deleted=1 (audit_log 历史保留为后续审计; 但不再随会议显示) -->
|
|
<update id="softDeleteByMeetingId" parameterType="Long">
|
|
update biz_meeting_audit_log set is_deleted = 1 where meeting_id = #{meetingId}
|
|
</update>
|
|
|
|
</mapper> |