diff --git a/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkOrderMapper.xml b/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkOrderMapper.xml index d8492b8e..32550c7e 100644 --- a/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkOrderMapper.xml +++ b/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkOrderMapper.xml @@ -53,13 +53,15 @@ SELECT o.work_order_id as 'workOrderId', o.title as 'title', - o.type as 'type', + o.type as 'typeId', + td.name as 'typeName', u.dept_id as 'deptId', d.dept_name as 'deptName', u.work_user_id as 'userId', u.user_name as 'userName', o.`status` as 'status' from xhpc_work_order o + left join xhpc_work_type_dict td on td.work_type_id=o.type LEFT JOIN xhpc_work_order_user ou on o.work_order_id=ou.order_id LEFT JOIN xhpc_work_user u on ou.user_id=u.work_user_id LEFT JOIN xhpc_work_dept d on d.work_dept_id=u.dept_id