106 lines
4.1 KiB
XML
106 lines
4.1 KiB
XML
<?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.bawei.billing.mapper.BillingMapper">
|
|
|
|
|
|
<insert id="addBilling">
|
|
insert into billing_rule values
|
|
(0,
|
|
#{city},
|
|
#{serviceType},
|
|
#{channelName},
|
|
#{vehicleClass},
|
|
#{minimumConsumption},
|
|
#{basePrice},
|
|
#{mileageIncluded},
|
|
#{inclusiveDuration},
|
|
#{excessKilometerUnitPrice},
|
|
#{overtimeUnitPrice},
|
|
#{initialKilometer},
|
|
#{longDistanceUnitPrice},
|
|
#{nightTimePeriodBegin},
|
|
#{nightTimePeriodEnd},
|
|
#{additionalUnitPrice},
|
|
#{unitPricePerKilometer},
|
|
#{effectiveTime}
|
|
)
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<select id="serverList" resultType="com.boot.billing.domain.ServerType">
|
|
select server_type_id,type_name from server_type
|
|
</select>
|
|
|
|
|
|
<select id="channelList" resultType="com.boot.billing.domain.Channel">
|
|
select channel_id,channel_name from channel
|
|
</select>
|
|
|
|
<select id="BillingList" resultType="com.boot.billing.domain.BillingRule">
|
|
select *
|
|
from billing_rule
|
|
</select>
|
|
|
|
<select id="alarmOrder" resultType="com.boot.billing.domain.AlarmOrder">
|
|
select *
|
|
from alarm_order
|
|
</select>
|
|
|
|
<!-- <resultMap id="orderDetailsList" type="com.boot.billing.domain.CustomerOrder">-->
|
|
<!-- <result column="order_id" property="orderId"></result>-->
|
|
<!-- <result column="user_id" property="userId"></result>-->
|
|
<!-- <result column="phone" property="phone"></result>-->
|
|
<!-- <result column="starting_position" property="startingPosition"></result>-->
|
|
<!-- <result column="destination" property="destination"></result>-->
|
|
<!-- <result column="journey" property="journey"></result>-->
|
|
<!-- <result column="estimated_price" property="estimated"></result>-->
|
|
<!-- <result column="is_meal" property="isMeal"></result>-->
|
|
<!-- <result column="driver_id" property="driverId"></result>-->
|
|
<!-- <result column="start_time" property="startTime"></result>-->
|
|
<!-- <result column="order_status" property="orderStatus"></result>-->
|
|
<!-- <result column="reach_time" property="reachTime"></result>-->
|
|
<!-- <result column="actual_price" property="actualPrice"></result>-->
|
|
<!-- <result column="pay_status" property="payStatus"></result>-->
|
|
<!-- <result column="pay_id" property="payId"></result>-->
|
|
<!-- <result column="create_time" property="creatTime"></result>-->
|
|
<!-- <result column="city" property="city"></result>-->
|
|
<!-- <result column="service_type" property="serviceType"></result>-->
|
|
<!-- <result column="order_source" property="orderSource"></result>-->
|
|
<!-- <result column="payment_type" property="paymentType"></result>-->
|
|
<!-- <result column="note_information" property="noteInformation"></result>-->
|
|
<!-- </resultMap>-->
|
|
<select id="orderDetailsList" resultType="com.boot.billing.domain.CustomerOrder">
|
|
select *
|
|
from t_order where order_number = #{orderNumber}
|
|
</select>
|
|
|
|
<!-- 获取所有人员信息 -->
|
|
<select id="personnelList" resultType="com.boot.billing.domain.PersonnelInformation">
|
|
select *
|
|
from personnel_information where order_number = #{orderNumber}
|
|
</select>
|
|
|
|
<select id="timeInformationList" resultType="com.boot.billing.domain.TimeInformation">
|
|
select *
|
|
from time_information where order_number = #{orderNumber}
|
|
</select>
|
|
|
|
<select id="chargeInformation" resultType="com.boot.billing.domain.ChargeInformation">
|
|
select *
|
|
from charge_information where order_number = #{orderNumber}
|
|
</select>
|
|
<select id="cityList" resultType="com.boot.billing.domain.City">
|
|
select city_id,city_name from city
|
|
</select>
|
|
<select id="FindEvaluationInformation" resultType="com.boot.billing.domain.EvaluationInformation">
|
|
select *
|
|
from service_evaluation where order_number = #{orderNumber}
|
|
</select>
|
|
</mapper>
|