refactor(sip): 优化项目信息查询功能

- 在项目信息查询中,如果 t4.work_time 为空,则使用 t1.update_time 作为 last_work_update_time
- 添加按项目代码降序排序,以优化查询结果的展示顺序
master
chenhao 2025-07-07 09:18:18 +08:00
parent c8a5ee7930
commit cd1a854fc6
1 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
t1.customer_user_name,t1.customer_phone,t1.partner_email,t1.partner_user_name,t1.h3c_person,t1.poc,t1.h3c_phone,
t2.agent_name,t2.contact_email,t2.contact_phone,t2.contact_person,
t3.user_name as hz_support_user_name,
t4.work_time as last_work_update_time
ifnull(t4.work_time,t1.update_time) as last_work_update_time
from project_info t1
left join agent_info t2 on t1.agent_code = t2.agent_code
left join sys_user t3 on t1.hz_support_user=t3.user_id
@ -170,6 +170,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="keyProblem != null and keyProblem != ''"> and t1.key_problem = #{keyProblem}</if>
<if test="projectDesc != null and projectDesc != ''"> and t1.project_desc = #{projectDesc}</if>
</where>
order by t1.project_code desc
</select>
<select id="selectProjectInfoById" parameterType="Long" resultMap="ProjectInfoResult">