heheng
2025-12-30 805ce96dd132a055e93213e47d5868328f234be2
修复sql
1 files modified
6 ■■■■ changed files
expert-system/src/main/resources/mapper/system/ProjectManagementMapper.xml 6 ●●●● patch | view | raw | blame | history
expert-system/src/main/resources/mapper/system/ProjectManagementMapper.xml
@@ -118,8 +118,8 @@
        select  a.dept_name deptName,c.name expertName,b.tax_expert_fee expertFee,a.create_time createTime,a.project_name projectName,
        b.major_dangers majorDangers,b.general_hazards generalHazards,b.travel_expenses travelExpenses,b.accommodation_fee accommodationFee
        from project_management a
                 left join project_expert b on a.id = b.project_id and b.del_flag = 0 and b.evaluation_state = 1
                 left join sys_expert_info c on b.expert_id = c.id
                 inner join project_expert b on a.id = b.project_id and b.del_flag = 0 and b.evaluation_state = 1
                 inner join sys_expert_info c on b.expert_id = c.id
        where a.del_flag = 0 and a.state = 4 and a.evaluation_state = 1
        <if test="projectName != null  and projectName != ''"> and a.project_name like concat('%', #{projectName}, '%')</if>
        <if test="projectCode != null  and projectCode != ''"> and a.project_code like concat('%', #{projectCode}, '%')</if>
@@ -138,7 +138,7 @@
        select  a.dept_name deptName,b.name expertName,b.tax_expert_fee expertFee,a.create_time createTime,a.project_name projectName,
        b.major_dangers majorDangers,b.general_hazards generalHazards,b.travel_expenses travelExpenses,b.accommodation_fee accommodationFee
        from project_management a
        left join out_project_expert b on a.id = b.project_id and b.del_flag = 0 and b.evaluation_state = 1
        inner join out_project_expert b on a.id = b.project_id and b.del_flag = 0 and b.evaluation_state = 1
        where a.del_flag = 0 and a.state = 4 and a.evaluation_state = 1
        <if test="projectName != null  and projectName != ''"> and a.project_name like concat('%', #{projectName}, '%')</if>
        <if test="projectCode != null  and projectCode != ''"> and a.project_code like concat('%', #{projectCode}, '%')</if>