MrShi
18 小时以前 e4f9739d74323aacf09d139700f22a383910ee97
server/dmmall_service/src/main/java/com/doumee/dao/business/model/MemberCoupon.java
@@ -114,6 +114,12 @@
    @ApiModelProperty(value = "折扣卷满减上限金额")
    private BigDecimal maxPrice;
    @ApiModelProperty(value = "过期通知:0=未通知;1=已通知", example = "1")
    private Integer noticeStatus;
    @ApiModelProperty(value = "通知时间", example = "1")
    private Date noticeTime;
    @ApiModelProperty(value = "昵称")
    @TableField(exist = false)
    @ExcelColumn(name="用户",width = 10,index = 1)
@@ -146,6 +152,10 @@
    @ExcelColumn(name="优惠金额(元)",width = 10,index = 7)
    @TableField(exist = false)
    private BigDecimal   couponPrice     ;
    @ApiModelProperty(value = "是否过期 0未过期 1已过期", example = "1")
    @ExcelColumn(name="是否过期",width = 10,index = 14,valueMapping = "0=未过期;1=已过期;")
    @TableField(exist = false)
    private Integer isexpire;
    public static MemberCoupon couponToBean(Coupon coupon, Member member , Date now, Integer getMethod, LoginUserInfo loginUserInfo){
@@ -159,7 +169,7 @@
        insert.setMemberId(member.getId());
        insert.setShopId(coupon.getShopId());
        insert.setType(coupon.getType());
        insert.setCouponType(coupon.getType());
        insert.setCouponType(coupon.getCouponType());
        insert.setLimitPrice(coupon.getLimitPrice());
        insert.setPrice(coupon.getPrice());
        if(Constants.equalsObject(coupon.getUseType(),Constants.ZERO)){
@@ -179,6 +189,7 @@
        insert.setApplyIds(coupon.getApplyIds());
        insert.setApplyType(coupon.getApplyType());
        insert.setCouponId(coupon.getId());
        insert.setMaxPrice(coupon.getMaxPrice());
        return  insert;
    }