<?xml version="1.0" encoding="UTF-8" ?>
|
<!DOCTYPE mapper
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="com.ruoyi.system.mapper.OrderClassMapper">
|
|
<resultMap type="OrderClassDTO" id="OrderClassResult">
|
<result property="vID" column="vID" />
|
<result property="vtext" column="vtext" />
|
<result property="vOrder2" column="vOrder2" />
|
<result property="vType" column="vType" />
|
</resultMap>
|
|
<!-- 查询服务单编码列表 -->
|
<select id="selectServiceOrderClass" resultMap="OrderClassResult">
|
SELECT vtext, vOrder2, vType
|
FROM dictionary
|
WHERE vtitle = 'OrderClass' AND vType = 1
|
ORDER BY vOrder2
|
</select>
|
|
<!-- 查询调度单编码列表 -->
|
<select id="selectDispatchOrderClass" resultMap="OrderClassResult">
|
SELECT vtext, vOrder2, vType
|
FROM dictionary
|
WHERE vtitle = 'OrderClass' AND vType = 2
|
ORDER BY vOrder2
|
</select>
|
|
<!-- 查询单据类型列表(ServiceOrdAreaType) -->
|
<select id="selectServiceOrdAreaTypes" resultMap="OrderClassResult">
|
SELECT vID, vtext
|
FROM dictionary
|
WHERE vtitle = 'ServiceOrdAreaType' AND vType = 1
|
ORDER BY vOrder
|
</select>
|
|
<!-- 查询服务订单类型列表(ServiceOrderType) -->
|
<select id="selectServiceOrderTypes" resultMap="OrderClassResult">
|
SELECT vID, vtext
|
FROM dictionary
|
WHERE vtitle = 'ServiceOrderType' AND vType >= 1
|
ORDER BY vOrder
|
</select>
|
|
<!-- 查询医院科室列表(HospitalDepartment) -->
|
<select id="selectHospitalDepartments" resultMap="OrderClassResult">
|
SELECT vID, vtext
|
FROM dictionary
|
WHERE vtitle = 'HospitalDepartment' AND vType = 1
|
ORDER BY vOrder
|
</select>
|
|
</mapper>
|