| | |
| | | <result property="ServiceOrdNo" column="ServiceOrdNo" /> |
| | | <result property="CreateTime" column="CreateTime" /> |
| | | <result property="UpdateTime" column="UpdateTime" /> |
| | | <result property="OrderStatus" column="OrderStatus" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectTbOrdersVo"> |
| | | select OrderID, LinkPerson, LinkTel, AlarmTel, PatientName, Sex, Age, Kg, Sense, LocalAddress, LocalLongitude, LocalLatitude, LocalProvince, LocalCity, LocalDistrict, SendAddress, SendLongitude, SendLatitude, SendProvince, SendCity, SendDistrict, BookingPrice, BookingDate, Remark, Complaint, PatientCount, BookingKM, EscortCode, LiftingCode, LiftingFloor, RequirementCode, TypeCode, ThirdPartyResult, ServiceOrdID, ServiceOrdNo, CreateTime, UpdateTime from tb_orders |
| | | select OrderID, LinkPerson, LinkTel, AlarmTel, PatientName, Sex, Age, Kg, Sense, LocalAddress, LocalLongitude, LocalLatitude, LocalProvince, LocalCity, LocalDistrict, SendAddress, SendLongitude, SendLatitude, SendProvince, SendCity, SendDistrict, BookingPrice, BookingDate, Remark, Complaint, PatientCount, BookingKM, EscortCode, LiftingCode, LiftingFloor, RequirementCode, TypeCode, ThirdPartyResult, ServiceOrdID, ServiceOrdNo, CreateTime, UpdateTime, OrderStatus from tb_orders |
| | | </sql> |
| | | |
| | | <select id="selectTbOrdersList" parameterType="TbOrders" resultMap="TbOrdersResult"> |
| | |
| | | <if test="ServiceOrdNo != null and ServiceOrdNo != ''"> and ServiceOrdNo = #{ServiceOrdNo}</if> |
| | | <if test="CreateTime != null "> and CreateTime = #{CreateTime}</if> |
| | | <if test="UpdateTime != null "> and UpdateTime = #{UpdateTime}</if> |
| | | <if test="OrderStatus != null "> and OrderStatus = #{OrderStatus}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="ServiceOrdNo != null">ServiceOrdNo,</if> |
| | | <if test="CreateTime != null">CreateTime,</if> |
| | | <if test="UpdateTime != null">UpdateTime,</if> |
| | | <if test="OrderStatus != null">OrderStatus,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="OrderID != null">#{OrderID},</if> |
| | |
| | | <if test="ServiceOrdNo != null">#{ServiceOrdNo},</if> |
| | | <if test="CreateTime != null">#{CreateTime},</if> |
| | | <if test="UpdateTime != null">#{UpdateTime},</if> |
| | | <if test="OrderStatus != null">#{OrderStatus},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="ServiceOrdNo != null">ServiceOrdNo = #{ServiceOrdNo},</if> |
| | | <if test="CreateTime != null">CreateTime = #{CreateTime},</if> |
| | | <if test="UpdateTime != null">UpdateTime = #{UpdateTime},</if> |
| | | <if test="OrderStatus != null">OrderStatus = #{OrderStatus},</if> |
| | | </trim> |
| | | where OrderID = #{OrderID} |
| | | </update> |
| | |
| | | #{OrderID} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="checkServiceOrdIDExists" parameterType="String" resultType="Integer"> |
| | | select count(1) from tb_orders where ServiceOrdID = #{ServiceOrdID} |
| | | </select> |
| | | |
| | | <select id="selectTbOrdersByServiceOrdID" parameterType="String" resultMap="TbOrdersResult"> |
| | | <include refid="selectTbOrdersVo"/> |
| | | where ServiceOrdID = #{ServiceOrdID} |
| | | </select> |
| | | |
| | | </mapper> |