打印日志

This commit is contained in:
Guoqs
2024-08-23 10:37:08 +08:00
parent 498d4a3e09
commit a83a1f186e
2 changed files with 4 additions and 5 deletions

View File

@@ -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

View File

@@ -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<>();