导出历史订单增加订单号

master
ljw 2026-01-26 11:20:21 +08:00
parent 261ba3d295
commit 6eab64015c
3 changed files with 8 additions and 0 deletions

View File

@ -16,6 +16,11 @@ public class OrderExportResult {
*/
private Long id;
/**
*
*/
private String sn;
/**
*
*/

View File

@ -1792,6 +1792,7 @@ public class OrderInfoService extends ServiceImpl<OrderInfoMapper, OrderInfoEnti
for (OrderExportResult result : list) {
Map<String, Object> map = new LinkedHashMap<>();
map.put("序号", i);
map.put("订单号", result.getSn());
map.put("日期", result.getTransTime());
map.put("中转站", result.getStationName());
map.put("运输公司", result.getTransCompanyName());

View File

@ -214,6 +214,7 @@
<resultMap id="OrderExportResultMap" type="com.njzscloud.supervisory.order.pojo.result.OrderExportResult">
<result property="id" column="id"/>
<result property="sn" column="sn"/>
<result property="transTime" column="trans_time"/>
<result property="stationName" column="station_name"/>
<result property="transCompanyName" column="trans_company_name"/>
@ -248,6 +249,7 @@
<select id="exportList" resultMap="OrderExportResultMap">
SELECT
a.id,
a.sn,
DATE_FORMAT( a.trans_time, '%Y-%m-%d' ) AS trans_time,
b.station_name,
g.company_name AS trans_company_name,