|
|
@ -39,13 +39,14 @@ |
|
|
<result column="receiving_user_name" jdbcType="VARCHAR" property="receivingUserName" /> |
|
|
<result column="receiving_user_name" jdbcType="VARCHAR" property="receivingUserName" /> |
|
|
<result column="image_path" jdbcType="VARCHAR" property="imagePath" /> |
|
|
<result column="image_path" jdbcType="VARCHAR" property="imagePath" /> |
|
|
<result column="payment_for_goods" jdbcType="VARCHAR" property="paymentForGoods" /> |
|
|
<result column="payment_for_goods" jdbcType="VARCHAR" property="paymentForGoods" /> |
|
|
|
|
|
<result column="transfer_addition" jdbcType="VARCHAR" property="transferAddition" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<sql id="Base_Column_List"> |
|
|
<sql id="Base_Column_List"> |
|
|
id, create_by, create_by_name, create_time, del_flag, update_by, update_time,company_id, company_name, circuit_id, circuit_name, |
|
|
id, create_by, create_by_name, create_time, del_flag, update_by, update_time,company_id, company_name, circuit_id, circuit_name, |
|
|
shipper_name, shipper_mobile, shipper_address, receiver_name, receiver_mobile, receiver_address, |
|
|
shipper_name, shipper_mobile, shipper_address, receiver_name, receiver_mobile, receiver_address, |
|
|
go_station_id, go_station_name, arrival_station_id, arrival_station_name, weight, count, freight, premium, |
|
|
go_station_id, go_station_name, arrival_station_id, arrival_station_name, weight, count, freight, premium, |
|
|
transit_fee, tips, method_of_settlement, cost, all_cost, order_number, object_name, remark, receiving_user_id, receiving_user_name,image_path, payment_for_goods |
|
|
transit_fee, tips, method_of_settlement, cost, all_cost, order_number, object_name, remark, receiving_user_id, receiving_user_name,image_path, payment_for_goods, transfer_addition |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> |
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> |
|
|
@ -65,7 +66,7 @@ |
|
|
(id, create_by, create_by_name, create_time, del_flag, update_by, update_time,company_id, company_name, circuit_id, circuit_name, |
|
|
(id, create_by, create_by_name, create_time, del_flag, update_by, update_time,company_id, company_name, circuit_id, circuit_name, |
|
|
shipper_name, shipper_mobile, shipper_address, receiver_name, receiver_mobile, receiver_address, |
|
|
shipper_name, shipper_mobile, shipper_address, receiver_name, receiver_mobile, receiver_address, |
|
|
go_station_id, go_station_name, arrival_station_id, arrival_station_name, weight, count, freight, premium, |
|
|
go_station_id, go_station_name, arrival_station_id, arrival_station_name, weight, count, freight, premium, |
|
|
transit_fee, tips, method_of_settlement, cost, all_cost, order_number, object_name, remark, receiving_user_id, receiving_user_name,image_path, payment_for_goods) |
|
|
transit_fee, tips, method_of_settlement, cost, all_cost, order_number, object_name, remark, receiving_user_id, receiving_user_name,image_path, payment_for_goods, transfer_addition) |
|
|
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createByName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|
|
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createByName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|
|
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, |
|
|
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, |
|
|
#{companyId,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR}, #{circuitId,jdbcType=VARCHAR}, #{circuitName,jdbcType=VARCHAR}, |
|
|
#{companyId,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR}, #{circuitId,jdbcType=VARCHAR}, #{circuitName,jdbcType=VARCHAR}, |
|
|
@ -75,7 +76,8 @@ |
|
|
#{weight,jdbcType=DECIMAL}, #{count,jdbcType=INTEGER}, #{freight,jdbcType=DECIMAL}, #{premium,jdbcType=DECIMAL}, |
|
|
#{weight,jdbcType=DECIMAL}, #{count,jdbcType=INTEGER}, #{freight,jdbcType=DECIMAL}, #{premium,jdbcType=DECIMAL}, |
|
|
#{transitFee,jdbcType=DECIMAL}, #{tips,jdbcType=DECIMAL}, #{methodOfSettlement,jdbcType=VARCHAR}, #{cost,jdbcType=DECIMAL}, |
|
|
#{transitFee,jdbcType=DECIMAL}, #{tips,jdbcType=DECIMAL}, #{methodOfSettlement,jdbcType=VARCHAR}, #{cost,jdbcType=DECIMAL}, |
|
|
#{allCost,jdbcType=DECIMAL}, #{orderNumber,jdbcType=VARCHAR}, #{objectName,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, |
|
|
#{allCost,jdbcType=DECIMAL}, #{orderNumber,jdbcType=VARCHAR}, #{objectName,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, |
|
|
#{receivingUserId,jdbcType=VARCHAR}, #{receivingUserName,jdbcType=VARCHAR},#{imagePath,jdbcType=VARCHAR}, #{paymentForGoods,jdbcType=VARCHAR}) |
|
|
#{receivingUserId,jdbcType=VARCHAR}, #{receivingUserName,jdbcType=VARCHAR},#{imagePath,jdbcType=VARCHAR}, #{paymentForGoods,jdbcType=VARCHAR}, |
|
|
|
|
|
#{transferAddition,jdbcType=VARCHAR}) |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
|
<!--管理商品分页列表--> |
|
|
<!--管理商品分页列表--> |
|
|
@ -128,11 +130,21 @@ |
|
|
<if test='queryParams.orderNumber!=null and queryParams.orderNumber.trim() neq ""'> |
|
|
<if test='queryParams.orderNumber!=null and queryParams.orderNumber.trim() neq ""'> |
|
|
AND order_number like concat('%',#{queryParams.orderNumber},'%') |
|
|
AND order_number like concat('%',#{queryParams.orderNumber},'%') |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
|
|
|
<!--开始时间、结束时间--> |
|
|
<!--开始时间、结束时间--> |
|
|
<if test="queryParams.startDate!=null and queryParams.endDate!=null"> |
|
|
<if test="queryParams.startDate!=null and queryParams.endDate!=null"> |
|
|
AND create_time BETWEEN #{queryParams.startDate} AND #{queryParams.endDate} |
|
|
AND create_time BETWEEN #{queryParams.startDate} AND #{queryParams.endDate} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<!-- 开单模糊搜索前台应该传一个字段,搜几个条件 --> |
|
|
|
|
|
<if test="queryParams.searchStr != null and queryParams.searchStr != ''"> |
|
|
|
|
|
and ( |
|
|
|
|
|
company_name like concat('%',#{queryParams.searchStr},'%') |
|
|
|
|
|
or circuit_name like concat('%',#{queryParams.searchStr},'%') |
|
|
|
|
|
or shipper_name like concat('%',#{queryParams.searchStr},'%') |
|
|
|
|
|
or shipper_mobile like concat('%',#{queryParams.searchStr},'%') |
|
|
|
|
|
or receiver_name like concat('%',#{queryParams.searchStr},'%') |
|
|
|
|
|
or receiver_mobile like concat('%',#{queryParams.searchStr},'%') |
|
|
|
|
|
) |
|
|
|
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
ORDER BY |
|
|
ORDER BY |
|
|
create_time desc |
|
|
create_time desc |
|
|
|