refactor(sip): 优化项目信息查询功能
- 在项目信息查询中,如果 t4.work_time 为空,则使用 t1.update_time 作为 last_work_update_time - 添加按项目代码降序排序,以优化查询结果的展示顺序master
parent
c8a5ee7930
commit
cd1a854fc6
|
@ -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,
|
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,
|
t2.agent_name,t2.contact_email,t2.contact_phone,t2.contact_person,
|
||||||
t3.user_name as hz_support_user_name,
|
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
|
from project_info t1
|
||||||
left join agent_info t2 on t1.agent_code = t2.agent_code
|
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
|
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="keyProblem != null and keyProblem != ''"> and t1.key_problem = #{keyProblem}</if>
|
||||||
<if test="projectDesc != null and projectDesc != ''"> and t1.project_desc = #{projectDesc}</if>
|
<if test="projectDesc != null and projectDesc != ''"> and t1.project_desc = #{projectDesc}</if>
|
||||||
</where>
|
</where>
|
||||||
|
order by t1.project_code desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectProjectInfoById" parameterType="Long" resultMap="ProjectInfoResult">
|
<select id="selectProjectInfoById" parameterType="Long" resultMap="ProjectInfoResult">
|
||||||
|
|
Loading…
Reference in New Issue