fanli/src/main/java/com/yeshi/fanli/dto/msg/MsgOtherSystemGiveDTO.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
fanli/src/main/java/com/yeshi/fanli/util/factory/msg/MsgOtherSystemGiveDTOFactory.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
fanli/src/main/java/com/yeshi/fanli/util/jd/JDUtil.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
fanli/src/main/java/com/yeshi/fanli/dto/msg/MsgOtherSystemGiveDTO.java
New file @@ -0,0 +1,65 @@ package com.yeshi.fanli.dto.msg; /** * 系统赠送 * * @author Administrator * */ public class MsgOtherSystemGiveDTO { private String name;// 赠送名称 private Integer count;// 赠送数量 private String reason;// 赠送原因 private Integer orderType;// 订单类型 private String orderId;// 订单号 private String desc;// 说明 public String getName() { return name; } public void setName(String name) { this.name = name; } public Integer getCount() { return count; } public void setCount(Integer count) { this.count = count; } public String getReason() { return reason; } public void setReason(String reason) { this.reason = reason; } public Integer getOrderType() { return orderType; } public void setOrderType(Integer orderType) { this.orderType = orderType; } public String getOrderId() { return orderId; } public void setOrderId(String orderId) { this.orderId = orderId; } public String getDesc() { return desc; } public void setDesc(String desc) { this.desc = desc; } } fanli/src/main/java/com/yeshi/fanli/util/factory/msg/MsgOtherSystemGiveDTOFactory.java
New file @@ -0,0 +1,23 @@ package com.yeshi.fanli.util.factory.msg; import com.yeshi.fanli.dto.msg.MsgOtherSystemGiveDTO; import com.yeshi.fanli.util.StringUtil; public class MsgOtherSystemGiveDTOFactory { // 奖励券 public static MsgOtherSystemGiveDTO createRewardCouponGive(int count, String desc, String name, String orderId, int orderType, String reason) { if (StringUtil.isNullOrEmpty(name)) return null; MsgOtherSystemGiveDTO dto = new MsgOtherSystemGiveDTO(); dto.setCount(count); dto.setDesc(desc); dto.setName(name); dto.setOrderId(orderId); dto.setOrderType(orderType); dto.setReason(reason); return dto; } } fanli/src/main/java/com/yeshi/fanli/util/jd/JDUtil.java
@@ -43,7 +43,6 @@ public class JDUtil { public static final String TM_PHONE_URL = "https://item.m.jd.com/product/%s.html"; public void test() { @@ -386,9 +385,9 @@ new BigDecimal("0.01")), MoneyBigDecimalUtil.div(rate, new BigDecimal(100))); } } return BigDecimalUtil.getWithNoZera(money); // 返利比例为原来的90% return BigDecimalUtil.getWithNoZera(MoneyBigDecimalUtil.mul(money, new BigDecimal("0.9"))); } /** @@ -575,9 +574,9 @@ return null; } /** * 查询天猫商品图片、标题 * * @param auctionId * @return */