| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?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.sckw.transport.dao.KwtWaybillOrderMapper">
- <resultMap id="BaseResultMap" type="com.sckw.transport.model.KwtWaybillOrder">
- <id column="id" jdbcType="BIGINT" property="id" />
- <result column="ent_id" jdbcType="BIGINT" property="entId" />
- <result column="l_order_id" jdbcType="BIGINT" property="lOrderId" />
- <result column="w_order_no" jdbcType="VARCHAR" property="wOrderNo" />
- <result column="truck_no" jdbcType="VARCHAR" property="truckNo" />
- <result column="type" jdbcType="VARCHAR" property="type" />
- <result column="driver_id" jdbcType="BIGINT" property="driverId" />
- <result column="entrust_amount" jdbcType="DECIMAL" property="entrustAmount" />
- <result column="unload_amount" jdbcType="DECIMAL" property="unloadAmount" />
- <result column="load_amount" jdbcType="DECIMAL" property="loadAmount" />
- <result column="deficit_amount" jdbcType="DECIMAL" property="deficitAmount" />
- <result column="remark" jdbcType="VARCHAR" property="remark" />
- <result column="status" jdbcType="INTEGER" property="status" />
- <result column="create_by" jdbcType="BIGINT" property="createBy" />
- <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
- <result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
- <result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
- <result column="update_by" jdbcType="BIGINT" property="updateBy" />
- <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
- <result column="del_flag" jdbcType="INTEGER" property="delFlag" />
- </resultMap>
- <sql id="Base_Column_List">
- id, ent_id, l_order_id, w_order_no, truck_no, driver_id, entrust_amount, unload_amount,
- load_amount, deficit_amount, remark, `status`, create_by, create_time, update_by,
- update_time, del_flag,start_time,end_time
- </sql>
- <select id="selectWaybillOrderCarList" resultType="com.sckw.transport.model.dto.OrderCarDTO">
- SELECT a.id as wOrderId,
- a.w_order_no as wOrderNo,
- a.l_order_id as lOrderId,
- b.l_order_no as lOrderNo,
- b.t_order_id as tOrderId,
- b.t_order_no as tOrderNo
- FROM kwt_waybill_order a
- LEFT JOIN kwt_logistics_order b ON a.l_order_id = b.id
- WHERE a.del_flag = '0'
- and b.del_flag = '0'
- and b.t_order_id = #{id,jdbcType=VARCHAR}
- limit #{page},#{pageSize}
- </select>
- <select id="selectWaybillOrderCarCount" resultType="java.lang.Long">
- SELECT count(a.id)
- FROM kwt_waybill_order a
- LEFT JOIN kwt_logistics_order b ON a.l_order_id = b.id
- WHERE a.del_flag = '0'
- and b.del_flag = '0'
- and b.t_order_id = #{id,jdbcType=VARCHAR}
- </select>
- </mapper>
|