chore: biz_org 合并 / BizProject 重构 / 各角色页面调整 (上次重构遗留)
涵盖改动范围: - 后端 BizOrg / BizProject / BizProjectRating / BizSpecialPlan controller + domain + mapper + service - 前端 admin (BizSpecialPlanAdmin, ProjectCategory) / executor / leader / manager / sponsor 多页调整 - api/dict.js + AdminLayout.vue 同步
This commit is contained in:
+13
-10
@@ -11,11 +11,13 @@
|
||||
<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" />
|
||||
<result property="projectId" column="project_id" />
|
||||
<result property="raterId" column="rater_id" />
|
||||
<result property="ratingTime" column="rating_time" />
|
||||
</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
|
||||
select rating_id, project_id, project_no, project_name, rater_id, rater_name, rater_role, quality_score, response_score, cooperation_score, compliance_score, remark, rating_time, create_by, create_time, update_by, update_time
|
||||
from biz_project_rating
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BizProjectRatingResult" parameterType="String">
|
||||
@@ -25,6 +27,9 @@
|
||||
<select id="selectList" resultMap="BizProjectRatingResult" parameterType="BizProjectRating">
|
||||
<include refid="selectFields"/>
|
||||
<where>
|
||||
<if test="projectId != null"> and project_id = #{projectId}</if>
|
||||
<if test="raterId != null"> and rater_id = #{raterId}</if>
|
||||
<if test="raterRole != null and raterRole != ''"> and rater_role = #{raterRole}</if>
|
||||
<if test="remark != null and remark != ''"> and remark = #{remark}</if>
|
||||
</where>
|
||||
order by rating_id desc
|
||||
@@ -49,11 +54,10 @@
|
||||
<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="qualityScore != null">quality_score = #{qualityScore},</if>
|
||||
<if test="responseScore != null">response_score = #{responseScore},</if>
|
||||
<if test="cooperationScore != null">cooperation_score = #{cooperationScore},</if>
|
||||
<if test="complianceScore != null">compliance_score = #{complianceScore},</if>
|
||||
<if test="ratingTime != null and ratingTime != ''">rating_time = #{ratingTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
@@ -73,11 +77,11 @@
|
||||
<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,
|
||||
quality_score, response_score, cooperation_score, compliance_score,
|
||||
remark, create_by, create_time, update_by, update_time)
|
||||
VALUES
|
||||
(#{projectId}, #{projectNo}, #{projectName}, #{raterId}, #{raterName}, #{raterRole},
|
||||
#{qualityScore}, #{responseScore}, #{cooperationScore}, #{complianceScore}, #{totalScore},
|
||||
#{qualityScore}, #{responseScore}, #{cooperationScore}, #{complianceScore},
|
||||
#{remark}, #{createBy}, sysdate(), #{updateBy}, sysdate())
|
||||
ON DUPLICATE KEY UPDATE
|
||||
project_no = VALUES(project_no),
|
||||
@@ -87,7 +91,6 @@
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user