refactor: 合并 biz_support_unit/biz_execution_unit/biz_service_org 为 biz_org, 删除 2 张孤儿表, 改 biz_person.work_unit → org_id FK

主要改动:
- SQL: biz_support_unit → biz_org, 加 org_type, 加 business_nature; 删 biz_execution_unit, biz_service_org
- SQL: biz_project.support_unit_id/name + service_org_id/name → org_id/name/type
- SQL: biz_meeting.support_unit_name → org_name
- SQL: biz_person.work_unit → org_id (FK)
- 后端: 新 BizOrg entity/mapper/service/controller
- 后端: BizProject/BizMeeting 字段重命名
- 后端: 删 12 个 BizSupportUnit/BizExecutionUnit/BizServiceOrg Java 文件
- 后端: BizPersonImportVO.workUnit → orgName (导入时查 biz_org 取 org_id)
- 后端: BizAuthController.registerExecutor 完整实现 (原 registerSupplier stub)
- 前端: 新 admin/Orgs.vue + manager/Orgs.vue (原 SupportUnits)
- 前端: RegisterExecutor.vue (原 RegisterSupplier, 单页 2 步)
- 前端: sponsor/executor/manager 多个文件 workUnit → orgId/orgName 重命名
- 前端: 统一 supplier → executor, 业务命名 sponsor(赞助方) / executor(执行方=供应商)
- 前端: 全工程 execution → executor (company type / role / person unit_type)
This commit is contained in:
郭庆泰
2026-08-15 12:41:10 +08:00
commit cf5790229a
694 changed files with 102090 additions and 0 deletions
@@ -0,0 +1,95 @@
<?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.BizProjectRatingMapper">
<resultMap type="BizProjectRating" id="BizProjectRatingResult">
<id property="ratingId" column="rating_id" />
<result property="projectNo" column="project_no" />
<result property="projectName" column="project_name" />
<result property="raterName" column="rater_name" />
<result property="raterRole" column="rater_role" />
<result property="qualityScore" column="quality_score" />
<result property="responseScore" column="response_score" />
<result property="cooperationScore" column="cooperation_score" />
<result property="complianceScore" column="compliance_score" />
<result property="totalScore" column="total_score" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectFields">
select rating_id, project_no, project_name, rater_name, rater_role, quality_score, response_score, cooperation_score, compliance_score, total_score, remark, create_by, create_time, update_by, update_time
from biz_project_rating
</sql>
<select id="selectByPrimaryKey" resultMap="BizProjectRatingResult" parameterType="String">
<include refid="selectFields"/>
where rating_id = #{ratingId}
</select>
<select id="selectList" resultMap="BizProjectRatingResult" parameterType="BizProjectRating">
<include refid="selectFields"/>
<where>
<if test="remark != null and remark != ''"> and remark = #{remark}</if>
</where>
order by rating_id desc
</select>
<insert id="insert" parameterType="BizProjectRating">
insert into biz_project_rating
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="ratingId != null and ratingId != ''">rating_id,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="ratingId != null and ratingId != ''">#{ratingId},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateByPrimaryKey" parameterType="BizProjectRating">
update biz_project_rating
<trim prefix="SET" suffixOverrides=",">
<if test="projectId != null and projectId != ''">project_id = #{projectId},</if>
<if test="projectNo != null and projectNo != ''">project_no = #{projectNo},</if>
<if test="projectName != null and projectName != ''">project_name = #{projectName},</if>
<if test="raterId != null and raterId != ''">rater_id = #{raterId},</if>
<if test="raterName != null and raterName != ''">rater_name = #{raterName},</if>
<if test="raterRole != null and raterRole != ''">rater_role = #{raterRole},</if>
<if test="qualityScore != null and qualityScore != ''">quality_score = #{qualityScore},</if>
<if test="responseScore != null and responseScore != ''">response_score = #{responseScore},</if>
<if test="cooperationScore != null and cooperationScore != ''">cooperation_score = #{cooperationScore},</if>
<if test="complianceScore != null and complianceScore != ''">compliance_score = #{complianceScore},</if>
<if test="totalScore != null and totalScore != ''">total_score = #{totalScore},</if>
<if test="ratingTime != null and ratingTime != ''">rating_time = #{ratingTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where rating_id = #{ratingId}
</update>
<delete id="deleteByPrimaryKey" parameterType="String">
delete from biz_project_rating where rating_id = #{ratingId}
</delete>
<delete id="deleteByPrimaryKeys" parameterType="String">
delete from biz_project_rating where rating_id in
<foreach collection="ratingIds" item="ratingId" open="(" separator="," close=")">
#{ratingId}
</foreach>
</delete>
<!-- 按 (project_id + rater_id + rater_role) upsert 评分 -->
<insert id="upsertRating" parameterType="BizProjectRating">
INSERT INTO biz_project_rating
(project_id, project_no, project_name, rater_id, rater_name, rater_role,
quality_score, response_score, cooperation_score, compliance_score, total_score,
remark, create_by, create_time, update_by, update_time)
VALUES
(#{projectId}, #{projectNo}, #{projectName}, #{raterId}, #{raterName}, #{raterRole},
#{qualityScore}, #{responseScore}, #{cooperationScore}, #{complianceScore}, #{totalScore},
#{remark}, #{createBy}, sysdate(), #{updateBy}, sysdate())
ON DUPLICATE KEY UPDATE
project_no = VALUES(project_no),
project_name = VALUES(project_name),
rater_name = VALUES(rater_name),
quality_score = VALUES(quality_score),
response_score = VALUES(response_score),
cooperation_score= VALUES(cooperation_score),
compliance_score = VALUES(compliance_score),
total_score = VALUES(total_score),
remark = VALUES(remark),
update_by = VALUES(update_by),
update_time = sysdate()
</insert>
</mapper>