mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-19 18:45:03 +08:00
update 小程序订单详情接口增加参数
This commit is contained in:
@@ -42,14 +42,7 @@ import com.jsowell.pile.dto.SettleOrderDTO;
|
||||
import com.jsowell.pile.dto.StopChargingDTO;
|
||||
import com.jsowell.pile.dto.UniAppQueryOrderDTO;
|
||||
import com.jsowell.pile.dto.WeixinPayDTO;
|
||||
import com.jsowell.pile.service.IMemberBasicInfoService;
|
||||
import com.jsowell.pile.service.IMemberTransactionRecordService;
|
||||
import com.jsowell.pile.service.IOrderBasicInfoService;
|
||||
import com.jsowell.pile.service.IOrderPayRecordService;
|
||||
import com.jsowell.pile.service.IPileBillingTemplateService;
|
||||
import com.jsowell.pile.service.IPileConnectorInfoService;
|
||||
import com.jsowell.pile.service.WechatPayService;
|
||||
import com.jsowell.pile.service.WxpayCallbackRecordService;
|
||||
import com.jsowell.pile.service.*;
|
||||
import com.jsowell.pile.transaction.dto.OrderTransactionDTO;
|
||||
import com.jsowell.pile.transaction.service.TransactionService;
|
||||
import com.jsowell.pile.vo.base.PileInfoVO;
|
||||
@@ -59,6 +52,7 @@ import com.jsowell.pile.vo.uniapp.PileConnectorDetailVO;
|
||||
import com.jsowell.pile.vo.uniapp.UniAppOrderVO;
|
||||
import com.jsowell.pile.vo.web.BillingTemplateVO;
|
||||
import com.jsowell.pile.vo.web.OrderDetailInfoVO;
|
||||
import com.jsowell.pile.vo.web.PileStationVO;
|
||||
import com.jsowell.pile.vo.web.UpdateMemberBalanceDTO;
|
||||
import com.jsowell.wxpay.dto.WeChatRefundDTO;
|
||||
import com.jsowell.wxpay.response.WechatPayNotifyParameter;
|
||||
@@ -72,12 +66,7 @@ import javax.servlet.http.HttpServletRequest;
|
||||
import java.math.BigDecimal;
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
||||
@@ -130,6 +119,9 @@ public class OrderService {
|
||||
@Autowired
|
||||
private RedisCache redisCache;
|
||||
|
||||
@Autowired
|
||||
private IPileStationInfoService pileStationInfoService;
|
||||
|
||||
/**
|
||||
* 生成订单
|
||||
*
|
||||
@@ -705,6 +697,16 @@ public class OrderService {
|
||||
vo.setPileConnectorCode(orderBasicInfo.getPileSn() + orderBasicInfo.getConnectorCode());
|
||||
String orderStatus = orderBasicInfo.getOrderStatus();
|
||||
vo.setOrderStatus(orderStatus);
|
||||
vo.setStartChargingTime(DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, orderBasicInfo.getChargeStartTime()));
|
||||
Date chargeEndTime = orderBasicInfo.getChargeEndTime();
|
||||
if (Objects.nonNull(chargeEndTime)) {
|
||||
vo.setEndChargingTime(DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, chargeEndTime));
|
||||
}
|
||||
PileStationVO stationInfo = pileStationInfoService.getStationInfo(orderBasicInfo.getStationId());
|
||||
vo.setStationName(stationInfo.getStationName());
|
||||
vo.setReason(orderBasicInfo.getReason());
|
||||
vo.setOrderAmount(String.valueOf(orderBasicInfo.getOrderAmount()));
|
||||
vo.setPayAmount(String.valueOf(orderBasicInfo.getPayAmount()));
|
||||
|
||||
// 订单状态描述
|
||||
String orderStatusDescribe;
|
||||
|
||||
@@ -21,7 +21,7 @@ public class Constants {
|
||||
public static final Integer SOCKET_PORT = 9011;
|
||||
|
||||
public static final String updateServerIP = "192.168.2.2";
|
||||
public static final int port = 0x21;
|
||||
public static final int port = 0x15;
|
||||
|
||||
public static final byte[] updateServerPort = new byte[]{port};
|
||||
|
||||
@@ -29,7 +29,7 @@ public class Constants {
|
||||
|
||||
public static final String updateServerPassword = "vuser1";
|
||||
|
||||
public static final String filePath = "/pevc1xx_main_update_v2.0.0.8.bin";
|
||||
public static final String filePath = "/test.bin";
|
||||
|
||||
public static final String partnerId = "1632405339"; // 商户号Id
|
||||
|
||||
|
||||
@@ -13,6 +13,11 @@ import java.util.List;
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
public class UniAppOrderVO {
|
||||
/**
|
||||
* 站点名称
|
||||
*/
|
||||
private String stationName;
|
||||
|
||||
/**
|
||||
* 订单编号
|
||||
*/
|
||||
@@ -33,6 +38,11 @@ public class UniAppOrderVO {
|
||||
*/
|
||||
private String pileConnectorCode;
|
||||
|
||||
/**
|
||||
* 异常原因
|
||||
*/
|
||||
private String reason;
|
||||
|
||||
/**
|
||||
* 订单状态
|
||||
*/
|
||||
@@ -43,6 +53,16 @@ public class UniAppOrderVO {
|
||||
*/
|
||||
private String orderStatusDescribe;
|
||||
|
||||
/**
|
||||
* 用户支付金额
|
||||
*/
|
||||
private String payAmount;
|
||||
|
||||
/**
|
||||
* 订单金额
|
||||
*/
|
||||
private String orderAmount;
|
||||
|
||||
/**
|
||||
* 当前SOC
|
||||
*/
|
||||
@@ -93,6 +113,16 @@ public class UniAppOrderVO {
|
||||
*/
|
||||
private String batteryMaxTemperature;
|
||||
|
||||
/**
|
||||
* 开始充电时间
|
||||
*/
|
||||
private String startChargingTime;
|
||||
|
||||
/**
|
||||
* 结束充电时间
|
||||
*/
|
||||
private String endChargingTime;
|
||||
|
||||
/**
|
||||
* 充电实时数据列表
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user