Commit e8bb39cb authored by machengbo's avatar machengbo

mall

parent 1fcaba78
package com.jz.common.base;
public class BaseController {
/*public User getCurrentUser(){
User user = (User) SecurityUtils.getSubject().getPrincipals().iterator().next();
return user;
}
public Integer getCurrentUserId(){
return getCurrentUser().getUserId();
}*/
}
package com.itheima.health.constant; package com.jz.common.constant;
public interface RedisMessageConstant { public interface RedisMessageConstant {
static final String SENDTYPE_ORDER = "001";//用于缓存体检预约时发送的验证码 static final String SENDTYPE_ORDER = "001";//用于缓存体检预约时发送的验证码
......
package com.jz.dm.mall.moduls.controller.customer; package com.jz.dm.mall.moduls.controller.customer;
import com.jz.common.base.BaseController;
import com.jz.common.constant.RedisMessageConstant; import com.jz.common.constant.RedisMessageConstant;
import com.jz.common.entity.MallCustomer; import com.jz.common.entity.MallCustomer;
import com.jz.common.entity.SysUser; import com.jz.common.entity.SysUser;
import com.jz.common.utils.Result; import com.jz.common.utils.Result;
import com.jz.common.utils.StatusCode; import com.jz.common.utils.StatusCode;
import com.jz.dm.mall.moduls.service.MallCustomerService; import com.jz.dm.mall.moduls.service.MallCustomerService;
import com.jz.manage.moduls.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
......
...@@ -2,6 +2,7 @@ package com.jz.dm.mall.moduls.controller.order.bean; ...@@ -2,6 +2,7 @@ package com.jz.dm.mall.moduls.controller.order.bean;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
/** /**
...@@ -33,7 +34,7 @@ public class OrderDto { ...@@ -33,7 +34,7 @@ public class OrderDto {
/** /**
* 订单金额 * 订单金额
*/ */
private Double orderMoney; private BigDecimal orderMoney;
/** /**
* 订单时间 * 订单时间
*/ */
...@@ -45,7 +46,7 @@ public class OrderDto { ...@@ -45,7 +46,7 @@ public class OrderDto {
/** /**
* 支付金额 * 支付金额
*/ */
private Double paymentMoney; private BigDecimal paymentMoney;
/** /**
* 支付时间 * 支付时间
*/ */
...@@ -57,7 +58,7 @@ public class OrderDto { ...@@ -57,7 +58,7 @@ public class OrderDto {
/** /**
* 优惠金额 * 优惠金额
*/ */
private Double districtMoney; private BigDecimal districtMoney;
/** /**
* 购买方式:01年,02季,03月,04次(服务类型) * 购买方式:01年,02季,03月,04次(服务类型)
*/ */
...@@ -148,11 +149,11 @@ public class OrderDto { ...@@ -148,11 +149,11 @@ public class OrderDto {
this.orderStatus = orderStatus; this.orderStatus = orderStatus;
} }
public Double getOrderMoney() { public BigDecimal getOrderMoney() {
return orderMoney; return orderMoney;
} }
public void setOrderMoney(Double orderMoney) { public void setOrderMoney(BigDecimal orderMoney) {
this.orderMoney = orderMoney; this.orderMoney = orderMoney;
} }
...@@ -172,11 +173,11 @@ public class OrderDto { ...@@ -172,11 +173,11 @@ public class OrderDto {
this.sellerId = sellerId; this.sellerId = sellerId;
} }
public Double getPaymentMoney() { public BigDecimal getPaymentMoney() {
return paymentMoney; return paymentMoney;
} }
public void setPaymentMoney(Double paymentMoney) { public void setPaymentMoney(BigDecimal paymentMoney) {
this.paymentMoney = paymentMoney; this.paymentMoney = paymentMoney;
} }
...@@ -196,11 +197,11 @@ public class OrderDto { ...@@ -196,11 +197,11 @@ public class OrderDto {
this.paymentMethod = paymentMethod; this.paymentMethod = paymentMethod;
} }
public Double getDistrictMoney() { public BigDecimal getDistrictMoney() {
return districtMoney; return districtMoney;
} }
public void setDistrictMoney(Double districtMoney) { public void setDistrictMoney(BigDecimal districtMoney) {
this.districtMoney = districtMoney; this.districtMoney = districtMoney;
} }
......
...@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.TableName; ...@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import java.io.Serializable; import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
/** /**
...@@ -35,7 +36,7 @@ public class Order implements Serializable { ...@@ -35,7 +36,7 @@ public class Order implements Serializable {
/** /**
* 订单金额 * 订单金额
*/ */
private Double orderMoney; private BigDecimal orderMoney;
/** /**
* 订单时间 * 订单时间
*/ */
...@@ -47,7 +48,7 @@ public class Order implements Serializable { ...@@ -47,7 +48,7 @@ public class Order implements Serializable {
/** /**
* 支付金额 * 支付金额
*/ */
private Double paymentMoney; private BigDecimal paymentMoney;
/** /**
* 支付时间 * 支付时间
*/ */
...@@ -59,7 +60,7 @@ public class Order implements Serializable { ...@@ -59,7 +60,7 @@ public class Order implements Serializable {
/** /**
* 优惠金额 * 优惠金额
*/ */
private Double districtMoney; private BigDecimal districtMoney;
/** /**
* 购买方式:01年,02季,03月,04次(服务类型) * 购买方式:01年,02季,03月,04次(服务类型)
*/ */
...@@ -142,11 +143,11 @@ public class Order implements Serializable { ...@@ -142,11 +143,11 @@ public class Order implements Serializable {
this.orderStatus = orderStatus; this.orderStatus = orderStatus;
} }
public Double getOrderMoney() { public BigDecimal getOrderMoney() {
return orderMoney; return orderMoney;
} }
public void setOrderMoney(Double orderMoney) { public void setOrderMoney(BigDecimal orderMoney) {
this.orderMoney = orderMoney; this.orderMoney = orderMoney;
} }
...@@ -166,11 +167,11 @@ public class Order implements Serializable { ...@@ -166,11 +167,11 @@ public class Order implements Serializable {
this.sellerId = sellerId; this.sellerId = sellerId;
} }
public Double getPaymentMoney() { public BigDecimal getPaymentMoney() {
return paymentMoney; return paymentMoney;
} }
public void setPaymentMoney(Double paymentMoney) { public void setPaymentMoney(BigDecimal paymentMoney) {
this.paymentMoney = paymentMoney; this.paymentMoney = paymentMoney;
} }
...@@ -190,11 +191,11 @@ public class Order implements Serializable { ...@@ -190,11 +191,11 @@ public class Order implements Serializable {
this.paymentMethod = paymentMethod; this.paymentMethod = paymentMethod;
} }
public Double getDistrictMoney() { public BigDecimal getDistrictMoney() {
return districtMoney; return districtMoney;
} }
public void setDistrictMoney(Double districtMoney) { public void setDistrictMoney(BigDecimal districtMoney) {
this.districtMoney = districtMoney; this.districtMoney = districtMoney;
} }
......
...@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.TableName; ...@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import java.io.Serializable; import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
/** /**
...@@ -31,7 +32,7 @@ public class OrderPayment implements Serializable { ...@@ -31,7 +32,7 @@ public class OrderPayment implements Serializable {
/** /**
* 支付金额 * 支付金额
*/ */
private Double paymentMoney; private BigDecimal paymentMoney;
/** /**
* 支付时间 * 支付时间
*/ */
...@@ -43,7 +44,7 @@ public class OrderPayment implements Serializable { ...@@ -43,7 +44,7 @@ public class OrderPayment implements Serializable {
/** /**
* 优惠金额 * 优惠金额
*/ */
private Double districtMoney; private BigDecimal districtMoney;
/** /**
* 支付状态 * 支付状态
*/ */
...@@ -86,11 +87,11 @@ public class OrderPayment implements Serializable { ...@@ -86,11 +87,11 @@ public class OrderPayment implements Serializable {
this.sellerId = sellerId; this.sellerId = sellerId;
} }
public Double getPaymentMoney() { public BigDecimal getPaymentMoney() {
return paymentMoney; return paymentMoney;
} }
public void setPaymentMoney(Double paymentMoney) { public void setPaymentMoney(BigDecimal paymentMoney) {
this.paymentMoney = paymentMoney; this.paymentMoney = paymentMoney;
} }
...@@ -110,11 +111,11 @@ public class OrderPayment implements Serializable { ...@@ -110,11 +111,11 @@ public class OrderPayment implements Serializable {
this.paymentMethod = paymentMethod; this.paymentMethod = paymentMethod;
} }
public Double getDistrictMoney() { public BigDecimal getDistrictMoney() {
return districtMoney; return districtMoney;
} }
public void setDistrictMoney(Double districtMoney) { public void setDistrictMoney(BigDecimal districtMoney) {
this.districtMoney = districtMoney; this.districtMoney = districtMoney;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment