fix(优惠券中心):用户订单新增是否展示一键成片字段,数据库时间格式设置

This commit is contained in:
2025-08-29 14:14:10 +08:00
parent 6999bb79a5
commit d3a2f1c053
3 changed files with 15 additions and 3 deletions
@@ -766,6 +766,11 @@ public class OrderController {
}
orderFileMap.put("videoList", videoList);
// 添加showVideoEditOnly字段
QrCode qrCode = qrCodeService.getByCodeId(order.getCodeId());
Integer showVideoEditOnly = qrCode != null ? qrCode.getShowVideoEditOnly() : 1; // 默认值为1
orderFileMap.put("showVideoEditOnly", showVideoEditOnly);
return Result.succeed(orderFileMap, "查询成功");
}
@@ -358,12 +358,17 @@ public class OrderFileController {
String tip = "素材上传完成";
String orderName = tourism.getTourismName();
String pageUrl = "pages/album/album";
// 处理支付时间为空的情况
String payTimeStr = "";
if (order.getPayTime() != null) {
payTimeStr = DateUtils.sdf.format(order.getPayTime());
}
wxMiniSubscribeService.sendServiceProcessMsg(
sysUser.getOpenId(),
orderName,
tip,
order.getOrderNo(),
DateUtils.sdf.format(order.getPayTime()),
payTimeStr,
"",
pageUrl
);