| | |
| | | ) |
| | | end |
| | | </select> |
| | | |
| | | <!-- 根据编码列表查询分公司 --> |
| | | <select id="selectBranchCompaniesByOrderCodes" resultMap="SysDeptResult"> |
| | | select dept_id, dept_name, parent_id, ancestors, service_order_class, dispatch_order_class |
| | | from sys_dept |
| | | where parent_id = 100 |
| | | and del_flag = '0' |
| | | and ( |
| | | <foreach collection="orderCodes" item="code" separator=" or "> |
| | | service_order_class = #{code} or dispatch_order_class = #{code} |
| | | </foreach> |
| | | ) |
| | | </select> |
| | | |
| | | <!-- 根据service_class查询部门信息 --> |
| | | <select id="selectDeptByServiceClass" parameterType="String" resultMap="SysDeptResult"> |
| | | <include refid="selectDeptVo"/> |
| | | where d.service_order_class = #{serviceClass} and d.del_flag = '0' |
| | | limit 1 |
| | | </select> |
| | | |
| | | </mapper> |