xuhy
2025-09-02 5d2d6fdff67f8f9a7e65abdbb4b87dba07dcb32b
ruoyi-system/src/main/resources/mapper/system/TResultWorkEvaluateMapper.xml
@@ -46,7 +46,7 @@
            <if test="query.status == null">
                AND t1.status != -1
            </if>
            <if test="query.teamIds != null and query.teamIds > 0">
            <if test="query.teamIds != null and query.teamIds.size() > 0">
                AND t1.team_id in
                <foreach collection="query.teamIds" item="id" open="(" separator="," close=")">
                    #{id}
@@ -135,7 +135,7 @@
        select trwe.evaluate_time,CASE WHEN trwe.id IS NOT NULL THEN 1 ELSE 0 END AS isEvaluate,trwe.id,
        tedp.id AS participantsId,tpp.project_name AS projectName,tpp.project_stage AS projectStage,
        ted.experiment_code AS experimentCode,ted.experiment_name AS experimentName,su.nick_name AS laboratoryChemistName,
        tedp.dispatch_id AS dispatchId,tedp.result_evaluate_json AS resultEvaluateJson
        tedp.dispatch_id AS dispatchId,trwe.result_evaluate_json AS resultEvaluateJson
        from t_experiment_dispatch_participants tedp
        left join t_experiment_dispatch ted on ted.id = tedp.dispatch_id
        left join t_result_work_evaluate trwe on ted.id = trwe.dispatch_id and trwe.evaluate_type = 2
@@ -154,6 +154,9 @@
            <if test="query.userId != null">
                and tedp.user_id = #{query.userId}
            </if>
            <if test="query.userId != null">
                and trwe.user_id = #{query.userId}
            </if>
            <if test="query.startTime != null and query.startTime != '' and query.endTime != null and query.endTime != ''">
                AND trwe.evaluate_time BETWEEN #{query.startTime} AND #{query.endTime}
            </if>
@@ -168,7 +171,7 @@
        select trwe.evaluate_time,CASE WHEN trwe.id IS NOT NULL THEN 1 ELSE 0 END AS isEvaluate,trwe.id,
        tedp.id AS participantsId,tpp.project_name AS projectName,tpp.project_stage AS projectStage,
        ted.experiment_code AS experimentCode,ted.experiment_name AS experimentName,su.nick_name AS laboratoryTesterName,
        tedp.dispatch_id AS dispatchId
        tedp.dispatch_id AS dispatchId,trwe.result_evaluate_json AS resultEvaluateJson
        from t_experiment_dispatch_participants tedp
        left join t_experiment_dispatch ted on ted.id = tedp.dispatch_id
        left join t_result_work_evaluate trwe on ted.id = trwe.dispatch_id and trwe.evaluate_type = 3
@@ -187,6 +190,9 @@
            <if test="query.userId != null">
                and tedp.user_id = #{query.userId}
            </if>
            <if test="query.userId != null">
                and trwe.user_id = #{query.userId}
            </if>
            <if test="query.startTime != null and query.startTime != '' and query.endTime != null and query.endTime != ''">
                AND trwe.evaluate_time BETWEEN #{query.startTime} AND #{query.endTime}
            </if>