mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
打印日志
This commit is contained in:
@@ -11,7 +11,7 @@ import java.io.Serializable;
|
||||
public class AppletTemplateMessageSendDTO implements Serializable {
|
||||
private static final long serialVersionUID = 2234575457450378840L;
|
||||
|
||||
// 场景类型(1-开始充电;2-结束充电)
|
||||
// 场景类型(1-开始充电;2-结束充电; 3-预约充电启动结果通知)
|
||||
private String type;
|
||||
|
||||
//接收者(用户)的 openid
|
||||
|
||||
@@ -14,10 +14,9 @@ import com.jsowell.common.util.DateUtils;
|
||||
import com.jsowell.common.util.StringUtils;
|
||||
import com.jsowell.common.util.http.HttpUtils;
|
||||
import com.jsowell.pile.domain.MemberBasicInfo;
|
||||
import com.jsowell.pile.dto.ReservationChargingStartupResult;
|
||||
import com.jsowell.pile.service.MemberBasicInfoService;
|
||||
import com.jsowell.pile.service.PileBillingTemplateService;
|
||||
import com.jsowell.pile.service.OrderBasicInfoService;
|
||||
import com.jsowell.pile.service.PileBillingTemplateService;
|
||||
import com.jsowell.pile.vo.uniapp.customer.CurrentTimePriceDetails;
|
||||
import com.jsowell.pile.vo.uniapp.customer.SendMessageVO;
|
||||
import com.jsowell.wxpay.config.WeixinLoginProperties;
|
||||
@@ -278,7 +277,7 @@ public class WxAppletRemoteService {
|
||||
*/
|
||||
public Map<String, String> reservationStartupResultSendMsg(String openId, String startTime, String endTime, String startUpResult, String failReason) {
|
||||
AppletTemplateMessageSendDTO msgInfo = new AppletTemplateMessageSendDTO();
|
||||
msgInfo.setType("2"); // 2-结束充电推送消息
|
||||
msgInfo.setType(Constants.THREE); // 2-结束充电推送消息
|
||||
msgInfo.setTouser(openId);
|
||||
// 封装对象并调用发送消息的方法
|
||||
AppletTemplateMessageSendDTO.StartUpResultMessage startUpResultMessage = new AppletTemplateMessageSendDTO.StartUpResultMessage();
|
||||
@@ -322,7 +321,7 @@ public class WxAppletRemoteService {
|
||||
map.put("number13", ImmutableMap.of("value", dto.getStopChargingMessage().getChargingDegree())); // 充电度数
|
||||
dto.setData(map);
|
||||
} else if (StringUtils.equals("3", type)) {
|
||||
// 结束充电
|
||||
// 预约充电启动通知
|
||||
String templateId = stopChargingTmpId;
|
||||
dto.setTemplate_id(templateId);
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
|
||||
Reference in New Issue
Block a user