| | |
| | | order_num, |
| | | matter_id, |
| | | matter_name, |
| | | (select organization_name from automessage_organization_chart where a.department_id=id)organizationName, |
| | | concat( |
| | | (select classify_name from automessage_classify_administration where id=(select parent_id from automessage_classify_administration where id=a.classify_id)), |
| | | '-',(select classify_name from automessage_classify_administration where id=a.classify_id) |
| | | ) sumClassifyName, |
| | | department_id, |
| | | classify_id, |
| | | consult_content, |
| | | concat(consult_user_name,consult_user_phone) consultUser, |
| | | consult_user_name, |
| | | concat((select user_name from automessage_sys_user where a.submit_user_id=user_id ), submit_user_phone) submitUser, |
| | | submit_user_id, |
| | | concat((select user_name from automessage_sys_user where a.guide_user_id=user_id ), guide_user_phone) guideUser, |
| | | guide_user_id, |
| | | (select organization_name from automessage_organization_chart where a.guide_department_id=id)guideDepartmentName, |
| | | guide_department_id, |
| | | state, |
| | | consult_user_phone, |
| | |
| | | video, |
| | | images |
| | | FROM |
| | | automessage_guide_repair_order |
| | | automessage_guide_repair_order a |
| | | </sql> |
| | | |
| | | <select id="selectConfigList" resultMap="GuideRepairOrderResult"> |
| | | <include refid="selectGuideRepairOrderVo"/> |
| | | <where> |
| | | <if test="matterName != null and matterName != ''"> |
| | | AND matterName=#{matterName} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="countConfigList" resultType="integer"> |
| | | select count(id) from automessage_guide_repair_order |
| | | <where> |
| | | <if test="matterName != null and matterName != ''"> |
| | | AND matterName=#{matterName} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectConfigData" resultMap="GuideRepairOrderResult"> |
| | | <include refid="selectGuideRepairOrderVo"/> |
| | | <where> |