This commit is contained in:
Lemon
2023-04-17 17:02:55 +08:00
parent 31807d325d
commit 1c097ffe03
2 changed files with 8 additions and 1 deletions

View File

@@ -10,6 +10,12 @@ import lombok.Data;
*/ */
@Data @Data
public class AccumulativeInfoVO { public class AccumulativeInfoVO {
/**
* 订单编号
*/
private String orderCode;
/** /**
* 枪口编号 * 枪口编号
*/ */

View File

@@ -925,10 +925,11 @@
<select id="getAccumulativeInfoForLianLian" resultType="com.jsowell.pile.vo.lianlian.AccumulativeInfoVO"> <select id="getAccumulativeInfoForLianLian" resultType="com.jsowell.pile.vo.lianlian.AccumulativeInfoVO">
SELECT SELECT
t1.order_code as orderCode,
t1.pile_connector_code as pileConnectorCode, t1.pile_connector_code as pileConnectorCode,
t1.pile_sn as pileSn, t1.pile_sn as pileSn,
t1.station_id as stationId, t1.station_id as stationId,
t2.total_used_electricity as connectorElectricity IFNULL(t2.total_used_electricity,0.00) as connectorElectricity
FROM FROM
order_basic_info t1 order_basic_info t1
JOIN order_detail t2 ON t1.order_code = t2.order_code JOIN order_detail t2 ON t1.order_code = t2.order_code