Commit a2d8287f5c2ba785bd55ff3de61527e012b020b1
1 parent
aa4d9869
feat add db model
Showing
26 changed files
with
2276 additions
and
20 deletions
cashier-mall/src/main/java/com/diligrp/cashier/mall/api/MallAuthApi.java
| ... | ... | @@ -6,7 +6,9 @@ import com.diligrp.cashier.mall.domain.rtmall.RtMarkMessage; |
| 6 | 6 | import com.diligrp.cashier.mall.domain.rtmall.co.AuthLoginCO; |
| 7 | 7 | import com.diligrp.cashier.mall.domain.rtmall.co.UserInfoCO; |
| 8 | 8 | import com.diligrp.cashier.mall.domain.rtmall.vo.UserInfoVO; |
| 9 | +import com.diligrp.cashier.mall.exception.RtMartMallException; | |
| 9 | 10 | import com.diligrp.cashier.mall.sign.RtMallSign; |
| 11 | +import com.diligrp.cashier.mall.type.RtMarkErrorCode; | |
| 10 | 12 | import com.diligrp.cashier.shared.annotation.ParamLogPrint; |
| 11 | 13 | import com.diligrp.cashier.shared.annotation.Sign; |
| 12 | 14 | import com.diligrp.cashier.shared.domain.Message; |
| ... | ... | @@ -31,7 +33,7 @@ import java.util.Objects; |
| 31 | 33 | * @Description MallAuthApi |
| 32 | 34 | */ |
| 33 | 35 | @RestController |
| 34 | -@RequestMapping("/mall") | |
| 36 | +@RequestMapping("/mall/auth") | |
| 35 | 37 | @Validated |
| 36 | 38 | public class MallAuthApi { |
| 37 | 39 | private static final Logger log = LoggerFactory.getLogger(MallAuthApi.class); |
| ... | ... | @@ -41,7 +43,7 @@ public class MallAuthApi { |
| 41 | 43 | /** |
| 42 | 44 | * 获取授权连接 |
| 43 | 45 | */ |
| 44 | - @PostMapping("/auth") | |
| 46 | + @PostMapping("") | |
| 45 | 47 | @ParamLogPrint(outPrint = true) |
| 46 | 48 | public Message<String> authLogin(@RequestBody @Valid AuthLoginCO authLogin) { |
| 47 | 49 | return Message.success(MallInitializeContext.getByChannel(authLogin.getChannel()).authLogin(authLogin)); |
| ... | ... | @@ -55,7 +57,11 @@ public class MallAuthApi { |
| 55 | 57 | @Sign(sign = RtMallSign.class) |
| 56 | 58 | public RtMarkMessage<UserInfoVO> userInfo(@RequestBody @Valid Object req) { |
| 57 | 59 | UserInfoCO userInfo = JsonUtils.convertValue(req, UserInfoCO.class); |
| 58 | - AuthLoginCO authLogin = JsonUtils.fromJsonString(Objects.requireNonNull(redisTemplate.opsForValue().get(MallConstants.MALL_TOKEN + userInfo.getToken())).toString(), AuthLoginCO.class); | |
| 60 | + Object cache = redisTemplate.opsForValue().get(MallConstants.MALL_TOKEN + userInfo.getToken()); | |
| 61 | + if (Objects.isNull(cache)) { | |
| 62 | + throw new RtMartMallException(RtMarkErrorCode.E5001); | |
| 63 | + } | |
| 64 | + AuthLoginCO authLogin = JsonUtils.fromJsonString(Objects.requireNonNull(cache).toString(), AuthLoginCO.class); | |
| 59 | 65 | UserInfoVO userInfoVO = MallInitializeContext.getByChannel(authLogin.getChannel()).userInfo(authLogin); |
| 60 | 66 | return RtMarkMessage.success(userInfoVO); |
| 61 | 67 | } | ... | ... |
cashier-mall/src/main/java/com/diligrp/cashier/mall/dao/MallBizOrderAddressDao.java
0 → 100644
| 1 | +package com.diligrp.cashier.mall.dao; | |
| 2 | + | |
| 3 | +import com.diligrp.cashier.mall.model.MallBizOrderAddress; | |
| 4 | +import com.diligrp.cashier.shared.mybatis.MybatisMapperSupport; | |
| 5 | + | |
| 6 | +public interface MallBizOrderAddressDao extends MybatisMapperSupport { | |
| 7 | + int deleteByPrimaryKey(Long id); | |
| 8 | + | |
| 9 | + int insert(MallBizOrderAddress record); | |
| 10 | + | |
| 11 | + int insertSelective(MallBizOrderAddress record); | |
| 12 | + | |
| 13 | + MallBizOrderAddress selectByPrimaryKey(Long id); | |
| 14 | + | |
| 15 | + int updateByPrimaryKeySelective(MallBizOrderAddress record); | |
| 16 | + | |
| 17 | + int updateByPrimaryKey(MallBizOrderAddress record); | |
| 18 | +} | ... | ... |
cashier-mall/src/main/java/com/diligrp/cashier/mall/dao/MallBizOrderDao.java
0 → 100644
| 1 | +package com.diligrp.cashier.mall.dao; | |
| 2 | + | |
| 3 | + | |
| 4 | +import com.diligrp.cashier.mall.model.MallBizOrder; | |
| 5 | +import com.diligrp.cashier.shared.mybatis.MybatisMapperSupport; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * MallBizOrderDao | |
| 9 | + * | |
| 10 | + */ | |
| 11 | +public interface MallBizOrderDao extends MybatisMapperSupport { | |
| 12 | + int deleteByPrimaryKey(Long id); | |
| 13 | + | |
| 14 | + int insert(MallBizOrder record); | |
| 15 | + | |
| 16 | + int insertSelective(MallBizOrder record); | |
| 17 | + | |
| 18 | + MallBizOrder selectByPrimaryKey(Long id); | |
| 19 | + | |
| 20 | + int updateByPrimaryKeySelective(MallBizOrder record); | |
| 21 | + | |
| 22 | + int updateByPrimaryKey(MallBizOrder record); | |
| 23 | +} | ... | ... |
cashier-mall/src/main/java/com/diligrp/cashier/mall/dao/MallBizOrderItemDao.java
0 → 100644
| 1 | +package com.diligrp.cashier.mall.dao; | |
| 2 | + | |
| 3 | + | |
| 4 | +import com.diligrp.cashier.mall.model.MallBizOrderItem; | |
| 5 | +import com.diligrp.cashier.shared.mybatis.MybatisMapperSupport; | |
| 6 | + | |
| 7 | +public interface MallBizOrderItemDao extends MybatisMapperSupport { | |
| 8 | + int deleteByPrimaryKey(Long id); | |
| 9 | + | |
| 10 | + int insert(MallBizOrderItem record); | |
| 11 | + | |
| 12 | + int insertSelective(MallBizOrderItem record); | |
| 13 | + | |
| 14 | + MallBizOrderItem selectByPrimaryKey(Long id); | |
| 15 | + | |
| 16 | + int updateByPrimaryKeySelective(MallBizOrderItem record); | |
| 17 | + | |
| 18 | + int updateByPrimaryKey(MallBizOrderItem record); | |
| 19 | +} | ... | ... |
cashier-mall/src/main/java/com/diligrp/cashier/mall/dao/MallBizPaymentDao.java
0 → 100644
| 1 | +package com.diligrp.cashier.mall.dao; | |
| 2 | + | |
| 3 | +import com.diligrp.cashier.mall.model.MallBizPayment; | |
| 4 | +import com.diligrp.cashier.shared.mybatis.MybatisMapperSupport; | |
| 5 | + | |
| 6 | +public interface MallBizPaymentDao extends MybatisMapperSupport { | |
| 7 | + int deleteByPrimaryKey(Long id); | |
| 8 | + | |
| 9 | + int insert(MallBizPayment record); | |
| 10 | + | |
| 11 | + int insertSelective(MallBizPayment record); | |
| 12 | + | |
| 13 | + MallBizPayment selectByPrimaryKey(Long id); | |
| 14 | + | |
| 15 | + int updateByPrimaryKeySelective(MallBizPayment record); | |
| 16 | + | |
| 17 | + int updateByPrimaryKey(MallBizPayment record); | |
| 18 | +} | ... | ... |
cashier-mall/src/main/java/com/diligrp/cashier/mall/dao/MallBizRefundItemDao.java
0 → 100644
| 1 | +package com.diligrp.cashier.mall.dao; | |
| 2 | + | |
| 3 | + | |
| 4 | +import com.diligrp.cashier.mall.model.MallBizRefundItem; | |
| 5 | +import com.diligrp.cashier.shared.mybatis.MybatisMapperSupport; | |
| 6 | + | |
| 7 | +public interface MallBizRefundItemDao extends MybatisMapperSupport { | |
| 8 | + int deleteByPrimaryKey(Long id); | |
| 9 | + | |
| 10 | + int insert(MallBizRefundItem record); | |
| 11 | + | |
| 12 | + int insertSelective(MallBizRefundItem record); | |
| 13 | + | |
| 14 | + MallBizRefundItem selectByPrimaryKey(Long id); | |
| 15 | + | |
| 16 | + int updateByPrimaryKeySelective(MallBizRefundItem record); | |
| 17 | + | |
| 18 | + int updateByPrimaryKey(MallBizRefundItem record); | |
| 19 | +} | ... | ... |
cashier-mall/src/main/java/com/diligrp/cashier/mall/dao/package-info.java deleted
100644 → 0
cashier-mall/src/main/java/com/diligrp/cashier/mall/exception/RtMartMallException.java
| ... | ... | @@ -23,4 +23,8 @@ public class RtMartMallException extends MallException { |
| 23 | 23 | public RtMartMallException(String code, String message) { |
| 24 | 24 | super(code, message); |
| 25 | 25 | } |
| 26 | + | |
| 27 | + public RtMartMallException(RtMarkErrorCode errorCode) { | |
| 28 | + super(errorCode.getCode(), errorCode.getMessage()); | |
| 29 | + } | |
| 26 | 30 | } | ... | ... |
cashier-mall/src/main/java/com/diligrp/cashier/mall/model/MallBizOrder.java
0 → 100644
| 1 | +package com.diligrp.cashier.mall.model; | |
| 2 | + | |
| 3 | +import com.diligrp.cashier.shared.domain.BaseDO; | |
| 4 | + | |
| 5 | +import java.time.LocalDateTime; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * MallBizOrder | |
| 9 | + * | |
| 10 | + */ | |
| 11 | +public class MallBizOrder extends BaseDO { | |
| 12 | + /** | |
| 13 | + * 订单单号-系统生成 | |
| 14 | + */ | |
| 15 | + private String orderNo; | |
| 16 | + | |
| 17 | + /** | |
| 18 | + * 业务侧订单号 | |
| 19 | + */ | |
| 20 | + private String orderId; | |
| 21 | + | |
| 22 | + /** | |
| 23 | + * 业务侧支付单号 | |
| 24 | + */ | |
| 25 | + private String tradeId; | |
| 26 | + | |
| 27 | + /** | |
| 28 | + * dili侧渠道(中瑞 地利) | |
| 29 | + * @see com.diligrp.cashier.mall.type.OrderChannel | |
| 30 | + */ | |
| 31 | + private String channel; | |
| 32 | + | |
| 33 | + /** | |
| 34 | + * 商户ID | |
| 35 | + */ | |
| 36 | + private String mchId; | |
| 37 | + | |
| 38 | + /** | |
| 39 | + * 订单来源(1大润发 2山姆)-换取回调地址 | |
| 40 | + * @see com.diligrp.cashier.mall.type.OrderSource | |
| 41 | + */ | |
| 42 | + private Integer source; | |
| 43 | + | |
| 44 | + /** | |
| 45 | + * 支付单类型: 1线下扫码购,2 接口扫码购,3小程序 | |
| 46 | + * @see com.diligrp.cashier.mall.type.OrderType | |
| 47 | + */ | |
| 48 | + private Integer orderType; | |
| 49 | + | |
| 50 | + /** | |
| 51 | + * 用户编号 | |
| 52 | + */ | |
| 53 | + private String userCode; | |
| 54 | + | |
| 55 | + /** | |
| 56 | + * 用户名称 | |
| 57 | + */ | |
| 58 | + private String username; | |
| 59 | + | |
| 60 | + /** | |
| 61 | + * 企业组编号 | |
| 62 | + */ | |
| 63 | + private String companyCode; | |
| 64 | + | |
| 65 | + /** | |
| 66 | + * 门店编号 | |
| 67 | + */ | |
| 68 | + private String shopCode; | |
| 69 | + | |
| 70 | + /** | |
| 71 | + * 门店名称 | |
| 72 | + */ | |
| 73 | + private String shopName; | |
| 74 | + | |
| 75 | + /** | |
| 76 | + * 订单总金额(分) | |
| 77 | + */ | |
| 78 | + private Long totalAmount; | |
| 79 | + | |
| 80 | + /** | |
| 81 | + * 运费(分) | |
| 82 | + */ | |
| 83 | + private Long freightFee; | |
| 84 | + | |
| 85 | + /** | |
| 86 | + * 订单状态(0-notpay-未支付-1-payed-已支付 2-notpaycancel-未支付取消 3-payedcancel-已支付取消 4-done-订单完成 5-buyer_confirm-待用户收货) | |
| 87 | + * @see com.diligrp.cashier.mall.type.OrderStatus | |
| 88 | + */ | |
| 89 | + private Integer status; | |
| 90 | + | |
| 91 | + /** | |
| 92 | + * 配送状态(1-transfer-转单 2-package-打包 3-collect-揽件 4-delivery-配达) | |
| 93 | + * @see com.diligrp.cashier.mall.type.RtmartStatus | |
| 94 | + */ | |
| 95 | + private Integer rtmartStatus; | |
| 96 | + | |
| 97 | + /** | |
| 98 | + * 下单时间 | |
| 99 | + */ | |
| 100 | + private LocalDateTime orderTime; | |
| 101 | + | |
| 102 | + /** | |
| 103 | + * 订单有效期分钟-超时自动取消 | |
| 104 | + */ | |
| 105 | + private Integer orderExpire; | |
| 106 | + | |
| 107 | + public String getOrderNo() { | |
| 108 | + return orderNo; | |
| 109 | + } | |
| 110 | + | |
| 111 | + public void setOrderNo(String orderNo) { | |
| 112 | + this.orderNo = orderNo == null ? null : orderNo.trim(); | |
| 113 | + } | |
| 114 | + | |
| 115 | + public String getOrderId() { | |
| 116 | + return orderId; | |
| 117 | + } | |
| 118 | + | |
| 119 | + public void setOrderId(String orderId) { | |
| 120 | + this.orderId = orderId == null ? null : orderId.trim(); | |
| 121 | + } | |
| 122 | + | |
| 123 | + public String getTradeId() { | |
| 124 | + return tradeId; | |
| 125 | + } | |
| 126 | + | |
| 127 | + public void setTradeId(String tradeId) { | |
| 128 | + this.tradeId = tradeId == null ? null : tradeId.trim(); | |
| 129 | + } | |
| 130 | + | |
| 131 | + public String getChannel() { | |
| 132 | + return channel; | |
| 133 | + } | |
| 134 | + | |
| 135 | + public void setChannel(String channel) { | |
| 136 | + this.channel = channel == null ? null : channel.trim(); | |
| 137 | + } | |
| 138 | + | |
| 139 | + public String getMchId() { | |
| 140 | + return mchId; | |
| 141 | + } | |
| 142 | + | |
| 143 | + public void setMchId(String mchId) { | |
| 144 | + this.mchId = mchId == null ? null : mchId.trim(); | |
| 145 | + } | |
| 146 | + | |
| 147 | + public String getUserCode() { | |
| 148 | + return userCode; | |
| 149 | + } | |
| 150 | + | |
| 151 | + public void setUserCode(String userCode) { | |
| 152 | + this.userCode = userCode == null ? null : userCode.trim(); | |
| 153 | + } | |
| 154 | + | |
| 155 | + public String getUsername() { | |
| 156 | + return username; | |
| 157 | + } | |
| 158 | + | |
| 159 | + public void setUsername(String username) { | |
| 160 | + this.username = username == null ? null : username.trim(); | |
| 161 | + } | |
| 162 | + | |
| 163 | + public String getCompanyCode() { | |
| 164 | + return companyCode; | |
| 165 | + } | |
| 166 | + | |
| 167 | + public void setCompanyCode(String companyCode) { | |
| 168 | + this.companyCode = companyCode == null ? null : companyCode.trim(); | |
| 169 | + } | |
| 170 | + | |
| 171 | + public String getShopCode() { | |
| 172 | + return shopCode; | |
| 173 | + } | |
| 174 | + | |
| 175 | + public void setShopCode(String shopCode) { | |
| 176 | + this.shopCode = shopCode == null ? null : shopCode.trim(); | |
| 177 | + } | |
| 178 | + | |
| 179 | + public String getShopName() { | |
| 180 | + return shopName; | |
| 181 | + } | |
| 182 | + | |
| 183 | + public void setShopName(String shopName) { | |
| 184 | + this.shopName = shopName == null ? null : shopName.trim(); | |
| 185 | + } | |
| 186 | + | |
| 187 | + public Long getTotalAmount() { | |
| 188 | + return totalAmount; | |
| 189 | + } | |
| 190 | + | |
| 191 | + public void setTotalAmount(Long totalAmount) { | |
| 192 | + this.totalAmount = totalAmount; | |
| 193 | + } | |
| 194 | + | |
| 195 | + public Long getFreightFee() { | |
| 196 | + return freightFee; | |
| 197 | + } | |
| 198 | + | |
| 199 | + public void setFreightFee(Long freightFee) { | |
| 200 | + this.freightFee = freightFee; | |
| 201 | + } | |
| 202 | + | |
| 203 | + public LocalDateTime getOrderTime() { | |
| 204 | + return orderTime; | |
| 205 | + } | |
| 206 | + | |
| 207 | + public void setOrderTime(LocalDateTime orderTime) { | |
| 208 | + this.orderTime = orderTime; | |
| 209 | + } | |
| 210 | + | |
| 211 | + public Integer getOrderExpire() { | |
| 212 | + return orderExpire; | |
| 213 | + } | |
| 214 | + | |
| 215 | + public void setOrderExpire(Integer orderExpire) { | |
| 216 | + this.orderExpire = orderExpire; | |
| 217 | + } | |
| 218 | +} | ... | ... |
cashier-mall/src/main/java/com/diligrp/cashier/mall/model/MallBizOrderAddress.java
0 → 100644
| 1 | +package com.diligrp.cashier.mall.model; | |
| 2 | + | |
| 3 | +import com.diligrp.cashier.shared.domain.BaseDO; | |
| 4 | + | |
| 5 | +/** | |
| 6 | + * 购物中心订单地址 | |
| 7 | + * | |
| 8 | + * @author dengwei | |
| 9 | + */ | |
| 10 | +public class MallBizOrderAddress extends BaseDO { | |
| 11 | + | |
| 12 | + /** | |
| 13 | + *接收名称 | |
| 14 | + */ | |
| 15 | + private String receiverName; | |
| 16 | + | |
| 17 | + /** | |
| 18 | + * 接收手机号 | |
| 19 | + */ | |
| 20 | + private String receiverMobile; | |
| 21 | + | |
| 22 | + /** | |
| 23 | + * 接收地址 | |
| 24 | + */ | |
| 25 | + private String receiverAddress; | |
| 26 | + | |
| 27 | + public String getReceiverName() { | |
| 28 | + return receiverName; | |
| 29 | + } | |
| 30 | + | |
| 31 | + public void setReceiverName(String receiverName) { | |
| 32 | + this.receiverName = receiverName == null ? null : receiverName.trim(); | |
| 33 | + } | |
| 34 | + | |
| 35 | + public String getReceiverMobile() { | |
| 36 | + return receiverMobile; | |
| 37 | + } | |
| 38 | + | |
| 39 | + public void setReceiverMobile(String receiverMobile) { | |
| 40 | + this.receiverMobile = receiverMobile == null ? null : receiverMobile.trim(); | |
| 41 | + } | |
| 42 | + | |
| 43 | + public String getReceiverAddress() { | |
| 44 | + return receiverAddress; | |
| 45 | + } | |
| 46 | + | |
| 47 | + public void setReceiverAddress(String receiverAddress) { | |
| 48 | + this.receiverAddress = receiverAddress == null ? null : receiverAddress.trim(); | |
| 49 | + } | |
| 50 | +} | ... | ... |
cashier-mall/src/main/java/com/diligrp/cashier/mall/model/MallBizOrderItem.java
0 → 100644
| 1 | +package com.diligrp.cashier.mall.model; | |
| 2 | + | |
| 3 | +import com.diligrp.cashier.shared.domain.BaseDO; | |
| 4 | + | |
| 5 | +/** | |
| 6 | + * 购物中心订单 | |
| 7 | + * | |
| 8 | + * @author dengwei | |
| 9 | + */ | |
| 10 | +public class MallBizOrderItem extends BaseDO { | |
| 11 | + /** | |
| 12 | + * 订单主单id | |
| 13 | + */ | |
| 14 | + private Long bizOrderId; | |
| 15 | + | |
| 16 | + /** | |
| 17 | + * 业务侧订单号 | |
| 18 | + */ | |
| 19 | + private String orderId; | |
| 20 | + | |
| 21 | + /** | |
| 22 | + * 业务侧子订单号 | |
| 23 | + */ | |
| 24 | + private String subOrderId; | |
| 25 | + | |
| 26 | + /** | |
| 27 | + * 店铺编码 | |
| 28 | + */ | |
| 29 | + private String shopCode; | |
| 30 | + | |
| 31 | + /** | |
| 32 | + * 店铺名称 | |
| 33 | + */ | |
| 34 | + private String shopName; | |
| 35 | + | |
| 36 | + /** | |
| 37 | + * 商品编码 | |
| 38 | + */ | |
| 39 | + private String itemBn; | |
| 40 | + | |
| 41 | + /** | |
| 42 | + * 商品名称 | |
| 43 | + */ | |
| 44 | + private String itemName; | |
| 45 | + | |
| 46 | + /** | |
| 47 | + * 商品数量 | |
| 48 | + */ | |
| 49 | + private Integer num; | |
| 50 | + | |
| 51 | + /** | |
| 52 | + * 商品单价 | |
| 53 | + */ | |
| 54 | + private Long price; | |
| 55 | + | |
| 56 | + /** | |
| 57 | + * 商品金额 | |
| 58 | + */ | |
| 59 | + private Long amount; | |
| 60 | + | |
| 61 | + /** | |
| 62 | + * 商品图片 | |
| 63 | + */ | |
| 64 | + private String pic; | |
| 65 | + | |
| 66 | + /** | |
| 67 | + * 商品税率 | |
| 68 | + */ | |
| 69 | + private String taxOutputRate; | |
| 70 | + | |
| 71 | + /** | |
| 72 | + * 商品税率分类编码 | |
| 73 | + */ | |
| 74 | + private String taxClassificationCode; | |
| 75 | + | |
| 76 | + /** | |
| 77 | + * 商品税率分类名称 | |
| 78 | + */ | |
| 79 | + private String taxClassificationName; | |
| 80 | + | |
| 81 | + public Long getBizOrderId() { | |
| 82 | + return bizOrderId; | |
| 83 | + } | |
| 84 | + | |
| 85 | + public void setBizOrderId(Long bizOrderId) { | |
| 86 | + this.bizOrderId = bizOrderId; | |
| 87 | + } | |
| 88 | + | |
| 89 | + public String getOrderId() { | |
| 90 | + return orderId; | |
| 91 | + } | |
| 92 | + | |
| 93 | + public void setOrderId(String orderId) { | |
| 94 | + this.orderId = orderId == null ? null : orderId.trim(); | |
| 95 | + } | |
| 96 | + | |
| 97 | + public String getSubOrderId() { | |
| 98 | + return subOrderId; | |
| 99 | + } | |
| 100 | + | |
| 101 | + public void setSubOrderId(String subOrderId) { | |
| 102 | + this.subOrderId = subOrderId == null ? null : subOrderId.trim(); | |
| 103 | + } | |
| 104 | + | |
| 105 | + public String getShopCode() { | |
| 106 | + return shopCode; | |
| 107 | + } | |
| 108 | + | |
| 109 | + public void setShopCode(String shopCode) { | |
| 110 | + this.shopCode = shopCode == null ? null : shopCode.trim(); | |
| 111 | + } | |
| 112 | + | |
| 113 | + public String getShopName() { | |
| 114 | + return shopName; | |
| 115 | + } | |
| 116 | + | |
| 117 | + public void setShopName(String shopName) { | |
| 118 | + this.shopName = shopName == null ? null : shopName.trim(); | |
| 119 | + } | |
| 120 | + | |
| 121 | + public String getItemBn() { | |
| 122 | + return itemBn; | |
| 123 | + } | |
| 124 | + | |
| 125 | + public void setItemBn(String itemBn) { | |
| 126 | + this.itemBn = itemBn == null ? null : itemBn.trim(); | |
| 127 | + } | |
| 128 | + | |
| 129 | + public String getItemName() { | |
| 130 | + return itemName; | |
| 131 | + } | |
| 132 | + | |
| 133 | + public void setItemName(String itemName) { | |
| 134 | + this.itemName = itemName == null ? null : itemName.trim(); | |
| 135 | + } | |
| 136 | + | |
| 137 | + public Integer getNum() { | |
| 138 | + return num; | |
| 139 | + } | |
| 140 | + | |
| 141 | + public void setNum(Integer num) { | |
| 142 | + this.num = num; | |
| 143 | + } | |
| 144 | + | |
| 145 | + public Long getPrice() { | |
| 146 | + return price; | |
| 147 | + } | |
| 148 | + | |
| 149 | + public void setPrice(Long price) { | |
| 150 | + this.price = price; | |
| 151 | + } | |
| 152 | + | |
| 153 | + public Long getAmount() { | |
| 154 | + return amount; | |
| 155 | + } | |
| 156 | + | |
| 157 | + public void setAmount(Long amount) { | |
| 158 | + this.amount = amount; | |
| 159 | + } | |
| 160 | + | |
| 161 | + public String getPic() { | |
| 162 | + return pic; | |
| 163 | + } | |
| 164 | + | |
| 165 | + public void setPic(String pic) { | |
| 166 | + this.pic = pic == null ? null : pic.trim(); | |
| 167 | + } | |
| 168 | + | |
| 169 | + public String getTaxOutputRate() { | |
| 170 | + return taxOutputRate; | |
| 171 | + } | |
| 172 | + | |
| 173 | + public void setTaxOutputRate(String taxOutputRate) { | |
| 174 | + this.taxOutputRate = taxOutputRate == null ? null : taxOutputRate.trim(); | |
| 175 | + } | |
| 176 | + | |
| 177 | + public String getTaxClassificationCode() { | |
| 178 | + return taxClassificationCode; | |
| 179 | + } | |
| 180 | + | |
| 181 | + public void setTaxClassificationCode(String taxClassificationCode) { | |
| 182 | + this.taxClassificationCode = taxClassificationCode == null ? null : taxClassificationCode.trim(); | |
| 183 | + } | |
| 184 | + | |
| 185 | + public String getTaxClassificationName() { | |
| 186 | + return taxClassificationName; | |
| 187 | + } | |
| 188 | + | |
| 189 | + public void setTaxClassificationName(String taxClassificationName) { | |
| 190 | + this.taxClassificationName = taxClassificationName == null ? null : taxClassificationName.trim(); | |
| 191 | + } | |
| 192 | +} | ... | ... |
cashier-mall/src/main/java/com/diligrp/cashier/mall/model/MallBizPayment.java
0 → 100644
| 1 | +package com.diligrp.cashier.mall.model; | |
| 2 | + | |
| 3 | +import com.diligrp.cashier.shared.domain.BaseDO; | |
| 4 | + | |
| 5 | +import java.time.LocalDateTime; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * MallBizPayment | |
| 9 | + * | |
| 10 | + * @author dengwei | |
| 11 | + */ | |
| 12 | +public class MallBizPayment extends BaseDO { | |
| 13 | + /** | |
| 14 | + * 支付单号-系统生成 | |
| 15 | + */ | |
| 16 | + private String payTradeNo; | |
| 17 | + | |
| 18 | + /** | |
| 19 | + * 订单id(biz_order) | |
| 20 | + */ | |
| 21 | + private Long bizOrderId; | |
| 22 | + | |
| 23 | + /** | |
| 24 | + * 业务侧订单号 | |
| 25 | + */ | |
| 26 | + private String orderId; | |
| 27 | + | |
| 28 | + /** | |
| 29 | + * 业务侧支付单号 | |
| 30 | + */ | |
| 31 | + private String tradeId; | |
| 32 | + | |
| 33 | + /** | |
| 34 | + * dili交易流水号 | |
| 35 | + */ | |
| 36 | + private String payPaymentId; | |
| 37 | + | |
| 38 | + /** | |
| 39 | + * 商户id | |
| 40 | + */ | |
| 41 | + private String mchId; | |
| 42 | + | |
| 43 | + /** | |
| 44 | + * 支付卡号 | |
| 45 | + */ | |
| 46 | + private String cardNo; | |
| 47 | + | |
| 48 | + /** | |
| 49 | + * 用户名 | |
| 50 | + */ | |
| 51 | + private String username; | |
| 52 | + | |
| 53 | + /** | |
| 54 | + * 用户id | |
| 55 | + */ | |
| 56 | + private Long userId; | |
| 57 | + | |
| 58 | + /** | |
| 59 | + * 账户id | |
| 60 | + */ | |
| 61 | + private Long accountId; | |
| 62 | + | |
| 63 | + /** | |
| 64 | + * 资金账户id | |
| 65 | + */ | |
| 66 | + private Long fundAccountId; | |
| 67 | + | |
| 68 | + /** | |
| 69 | + * 支付金额(分) | |
| 70 | + */ | |
| 71 | + private Long payFee; | |
| 72 | + | |
| 73 | + /** | |
| 74 | + * 支付状态 | |
| 75 | + * @see com.diligrp.cashier.mall.type.PayStatus | |
| 76 | + */ | |
| 77 | + private Integer payStatus; | |
| 78 | + | |
| 79 | + /** | |
| 80 | + * dili支付成功时间 | |
| 81 | + */ | |
| 82 | + private LocalDateTime payTime; | |
| 83 | + | |
| 84 | + /** | |
| 85 | + * 支付渠道(微信 园区卡) | |
| 86 | + */ | |
| 87 | + private Integer channelId; | |
| 88 | + | |
| 89 | + /** | |
| 90 | + * 收银台url | |
| 91 | + */ | |
| 92 | + private String cashierUrl; | |
| 93 | + | |
| 94 | + /** | |
| 95 | + * 支付回调url | |
| 96 | + */ | |
| 97 | + private String paymentCallback; | |
| 98 | + | |
| 99 | + public String getPayTradeNo() { | |
| 100 | + return payTradeNo; | |
| 101 | + } | |
| 102 | + | |
| 103 | + public void setPayTradeNo(String payTradeNo) { | |
| 104 | + this.payTradeNo = payTradeNo == null ? null : payTradeNo.trim(); | |
| 105 | + } | |
| 106 | + | |
| 107 | + public Long getBizOrderId() { | |
| 108 | + return bizOrderId; | |
| 109 | + } | |
| 110 | + | |
| 111 | + public void setBizOrderId(Long bizOrderId) { | |
| 112 | + this.bizOrderId = bizOrderId; | |
| 113 | + } | |
| 114 | + | |
| 115 | + public String getOrderId() { | |
| 116 | + return orderId; | |
| 117 | + } | |
| 118 | + | |
| 119 | + public void setOrderId(String orderId) { | |
| 120 | + this.orderId = orderId == null ? null : orderId.trim(); | |
| 121 | + } | |
| 122 | + | |
| 123 | + public String getTradeId() { | |
| 124 | + return tradeId; | |
| 125 | + } | |
| 126 | + | |
| 127 | + public void setTradeId(String tradeId) { | |
| 128 | + this.tradeId = tradeId == null ? null : tradeId.trim(); | |
| 129 | + } | |
| 130 | + | |
| 131 | + public String getPayPaymentId() { | |
| 132 | + return payPaymentId; | |
| 133 | + } | |
| 134 | + | |
| 135 | + public void setPayPaymentId(String payPaymentId) { | |
| 136 | + this.payPaymentId = payPaymentId == null ? null : payPaymentId.trim(); | |
| 137 | + } | |
| 138 | + | |
| 139 | + public String getMchId() { | |
| 140 | + return mchId; | |
| 141 | + } | |
| 142 | + | |
| 143 | + public void setMchId(String mchId) { | |
| 144 | + this.mchId = mchId == null ? null : mchId.trim(); | |
| 145 | + } | |
| 146 | + | |
| 147 | + public String getCardNo() { | |
| 148 | + return cardNo; | |
| 149 | + } | |
| 150 | + | |
| 151 | + public void setCardNo(String cardNo) { | |
| 152 | + this.cardNo = cardNo == null ? null : cardNo.trim(); | |
| 153 | + } | |
| 154 | + | |
| 155 | + public String getUsername() { | |
| 156 | + return username; | |
| 157 | + } | |
| 158 | + | |
| 159 | + public void setUsername(String username) { | |
| 160 | + this.username = username == null ? null : username.trim(); | |
| 161 | + } | |
| 162 | + | |
| 163 | + public Long getUserId() { | |
| 164 | + return userId; | |
| 165 | + } | |
| 166 | + | |
| 167 | + public void setUserId(Long userId) { | |
| 168 | + this.userId = userId; | |
| 169 | + } | |
| 170 | + | |
| 171 | + public Long getAccountId() { | |
| 172 | + return accountId; | |
| 173 | + } | |
| 174 | + | |
| 175 | + public void setAccountId(Long accountId) { | |
| 176 | + this.accountId = accountId; | |
| 177 | + } | |
| 178 | + | |
| 179 | + public Long getFundAccountId() { | |
| 180 | + return fundAccountId; | |
| 181 | + } | |
| 182 | + | |
| 183 | + public void setFundAccountId(Long fundAccountId) { | |
| 184 | + this.fundAccountId = fundAccountId; | |
| 185 | + } | |
| 186 | + | |
| 187 | + public Long getPayFee() { | |
| 188 | + return payFee; | |
| 189 | + } | |
| 190 | + | |
| 191 | + public void setPayFee(Long payFee) { | |
| 192 | + this.payFee = payFee; | |
| 193 | + } | |
| 194 | + | |
| 195 | + public Integer getPayStatus() { | |
| 196 | + return payStatus; | |
| 197 | + } | |
| 198 | + | |
| 199 | + public void setPayStatus(Integer payStatus) { | |
| 200 | + this.payStatus = payStatus; | |
| 201 | + } | |
| 202 | + | |
| 203 | + public LocalDateTime getPayTime() { | |
| 204 | + return payTime; | |
| 205 | + } | |
| 206 | + | |
| 207 | + public void setPayTime(LocalDateTime payTime) { | |
| 208 | + this.payTime = payTime; | |
| 209 | + } | |
| 210 | + | |
| 211 | + public Integer getChannelId() { | |
| 212 | + return channelId; | |
| 213 | + } | |
| 214 | + | |
| 215 | + public void setChannelId(Integer channelId) { | |
| 216 | + this.channelId = channelId; | |
| 217 | + } | |
| 218 | + | |
| 219 | + public String getCashierUrl() { | |
| 220 | + return cashierUrl; | |
| 221 | + } | |
| 222 | + | |
| 223 | + public void setCashierUrl(String cashierUrl) { | |
| 224 | + this.cashierUrl = cashierUrl == null ? null : cashierUrl.trim(); | |
| 225 | + } | |
| 226 | + | |
| 227 | + public String getPaymentCallback() { | |
| 228 | + return paymentCallback; | |
| 229 | + } | |
| 230 | + | |
| 231 | + public void setPaymentCallback(String paymentCallback) { | |
| 232 | + this.paymentCallback = paymentCallback == null ? null : paymentCallback.trim(); | |
| 233 | + } | |
| 234 | +} | ... | ... |
cashier-mall/src/main/java/com/diligrp/cashier/mall/model/MallBizRefund.java
0 → 100644
| 1 | +package com.diligrp.cashier.mall.model; | |
| 2 | + | |
| 3 | +import com.diligrp.cashier.shared.domain.BaseDO; | |
| 4 | + | |
| 5 | +import java.time.LocalDateTime; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * MallBizRefund | |
| 9 | + * | |
| 10 | + * @author dengwei | |
| 11 | + */ | |
| 12 | +public class MallBizRefund extends BaseDO { | |
| 13 | + /** | |
| 14 | + * 退款单号-系统生成 | |
| 15 | + */ | |
| 16 | + private String refundTradeNo; | |
| 17 | + | |
| 18 | + /** | |
| 19 | + * 支付单号(biz_payment) | |
| 20 | + */ | |
| 21 | + private String payTradeNo; | |
| 22 | + | |
| 23 | + /** | |
| 24 | + * 业务侧退款单号 | |
| 25 | + */ | |
| 26 | + private String refundBn; | |
| 27 | + | |
| 28 | + /** | |
| 29 | + * 业务侧订单号 | |
| 30 | + */ | |
| 31 | + private String orderId; | |
| 32 | + | |
| 33 | + /** | |
| 34 | + * 业务侧流水号 | |
| 35 | + */ | |
| 36 | + private String tradeId; | |
| 37 | + | |
| 38 | + /** | |
| 39 | + * dili退款流水号 | |
| 40 | + */ | |
| 41 | + private String refundPaymentId; | |
| 42 | + | |
| 43 | + /** | |
| 44 | + * dili交易流水号 | |
| 45 | + */ | |
| 46 | + private String payPaymentId; | |
| 47 | + | |
| 48 | + /** | |
| 49 | + * dili客户卡号 | |
| 50 | + */ | |
| 51 | + private String refundCardNo; | |
| 52 | + | |
| 53 | + /** | |
| 54 | + * dili客户id | |
| 55 | + */ | |
| 56 | + private Long refundUserId; | |
| 57 | + | |
| 58 | + /** | |
| 59 | + * dili客户名称 | |
| 60 | + */ | |
| 61 | + private String refundUsername; | |
| 62 | + | |
| 63 | + /** | |
| 64 | + * dili账号id | |
| 65 | + */ | |
| 66 | + private Long refundAccountId; | |
| 67 | + | |
| 68 | + /** | |
| 69 | + * dili退款成功时间 | |
| 70 | + */ | |
| 71 | + private LocalDateTime refundTime; | |
| 72 | + | |
| 73 | + /** | |
| 74 | + * 退款金额分 | |
| 75 | + */ | |
| 76 | + private Long refundFee; | |
| 77 | + | |
| 78 | + /** | |
| 79 | + * 退运费分 | |
| 80 | + */ | |
| 81 | + private Long freightFee; | |
| 82 | + | |
| 83 | + /** | |
| 84 | + * 退款状态 | |
| 85 | + * @see com.diligrp.cashier.mall.type.RefundStatus | |
| 86 | + */ | |
| 87 | + private Integer refundStatus; | |
| 88 | + | |
| 89 | + /** | |
| 90 | + * 退款原因 | |
| 91 | + */ | |
| 92 | + private String refundReason; | |
| 93 | + | |
| 94 | + /** | |
| 95 | + * 退款回调地址 | |
| 96 | + */ | |
| 97 | + private String refundCallback; | |
| 98 | + | |
| 99 | + /** | |
| 100 | + * 拒绝原因 | |
| 101 | + */ | |
| 102 | + private String refuseReason; | |
| 103 | + | |
| 104 | + public String getRefundTradeNo() { | |
| 105 | + return refundTradeNo; | |
| 106 | + } | |
| 107 | + | |
| 108 | + public void setRefundTradeNo(String refundTradeNo) { | |
| 109 | + this.refundTradeNo = refundTradeNo == null ? null : refundTradeNo.trim(); | |
| 110 | + } | |
| 111 | + | |
| 112 | + public String getPayTradeNo() { | |
| 113 | + return payTradeNo; | |
| 114 | + } | |
| 115 | + | |
| 116 | + public void setPayTradeNo(String payTradeNo) { | |
| 117 | + this.payTradeNo = payTradeNo == null ? null : payTradeNo.trim(); | |
| 118 | + } | |
| 119 | + | |
| 120 | + public String getRefundBn() { | |
| 121 | + return refundBn; | |
| 122 | + } | |
| 123 | + | |
| 124 | + public void setRefundBn(String refundBn) { | |
| 125 | + this.refundBn = refundBn == null ? null : refundBn.trim(); | |
| 126 | + } | |
| 127 | + | |
| 128 | + public String getOrderId() { | |
| 129 | + return orderId; | |
| 130 | + } | |
| 131 | + | |
| 132 | + public void setOrderId(String orderId) { | |
| 133 | + this.orderId = orderId == null ? null : orderId.trim(); | |
| 134 | + } | |
| 135 | + | |
| 136 | + public String getTradeId() { | |
| 137 | + return tradeId; | |
| 138 | + } | |
| 139 | + | |
| 140 | + public void setTradeId(String tradeId) { | |
| 141 | + this.tradeId = tradeId == null ? null : tradeId.trim(); | |
| 142 | + } | |
| 143 | + | |
| 144 | + public String getRefundPaymentId() { | |
| 145 | + return refundPaymentId; | |
| 146 | + } | |
| 147 | + | |
| 148 | + public void setRefundPaymentId(String refundPaymentId) { | |
| 149 | + this.refundPaymentId = refundPaymentId == null ? null : refundPaymentId.trim(); | |
| 150 | + } | |
| 151 | + | |
| 152 | + public String getPayPaymentId() { | |
| 153 | + return payPaymentId; | |
| 154 | + } | |
| 155 | + | |
| 156 | + public void setPayPaymentId(String payPaymentId) { | |
| 157 | + this.payPaymentId = payPaymentId == null ? null : payPaymentId.trim(); | |
| 158 | + } | |
| 159 | + | |
| 160 | + public String getRefundCardNo() { | |
| 161 | + return refundCardNo; | |
| 162 | + } | |
| 163 | + | |
| 164 | + public void setRefundCardNo(String refundCardNo) { | |
| 165 | + this.refundCardNo = refundCardNo == null ? null : refundCardNo.trim(); | |
| 166 | + } | |
| 167 | + | |
| 168 | + public Long getRefundUserId() { | |
| 169 | + return refundUserId; | |
| 170 | + } | |
| 171 | + | |
| 172 | + public void setRefundUserId(Long refundUserId) { | |
| 173 | + this.refundUserId = refundUserId; | |
| 174 | + } | |
| 175 | + | |
| 176 | + public String getRefundUsername() { | |
| 177 | + return refundUsername; | |
| 178 | + } | |
| 179 | + | |
| 180 | + public void setRefundUsername(String refundUsername) { | |
| 181 | + this.refundUsername = refundUsername == null ? null : refundUsername.trim(); | |
| 182 | + } | |
| 183 | + | |
| 184 | + public Long getRefundAccountId() { | |
| 185 | + return refundAccountId; | |
| 186 | + } | |
| 187 | + | |
| 188 | + public void setRefundAccountId(Long refundAccountId) { | |
| 189 | + this.refundAccountId = refundAccountId; | |
| 190 | + } | |
| 191 | + | |
| 192 | + public LocalDateTime getRefundTime() { | |
| 193 | + return refundTime; | |
| 194 | + } | |
| 195 | + | |
| 196 | + public void setRefundTime(LocalDateTime refundTime) { | |
| 197 | + this.refundTime = refundTime; | |
| 198 | + } | |
| 199 | + | |
| 200 | + public Long getRefundFee() { | |
| 201 | + return refundFee; | |
| 202 | + } | |
| 203 | + | |
| 204 | + public void setRefundFee(Long refundFee) { | |
| 205 | + this.refundFee = refundFee; | |
| 206 | + } | |
| 207 | + | |
| 208 | + public Long getFreightFee() { | |
| 209 | + return freightFee; | |
| 210 | + } | |
| 211 | + | |
| 212 | + public void setFreightFee(Long freightFee) { | |
| 213 | + this.freightFee = freightFee; | |
| 214 | + } | |
| 215 | + | |
| 216 | + public Integer getRefundStatus() { | |
| 217 | + return refundStatus; | |
| 218 | + } | |
| 219 | + | |
| 220 | + public void setRefundStatus(Integer refundStatus) { | |
| 221 | + this.refundStatus = refundStatus; | |
| 222 | + } | |
| 223 | + | |
| 224 | + public String getRefundReason() { | |
| 225 | + return refundReason; | |
| 226 | + } | |
| 227 | + | |
| 228 | + public void setRefundReason(String refundReason) { | |
| 229 | + this.refundReason = refundReason == null ? null : refundReason.trim(); | |
| 230 | + } | |
| 231 | + | |
| 232 | + public String getRefundCallback() { | |
| 233 | + return refundCallback; | |
| 234 | + } | |
| 235 | + | |
| 236 | + public void setRefundCallback(String refundCallback) { | |
| 237 | + this.refundCallback = refundCallback == null ? null : refundCallback.trim(); | |
| 238 | + } | |
| 239 | + | |
| 240 | + public String getRefuseReason() { | |
| 241 | + return refuseReason; | |
| 242 | + } | |
| 243 | + | |
| 244 | + public void setRefuseReason(String refuseReason) { | |
| 245 | + this.refuseReason = refuseReason == null ? null : refuseReason.trim(); | |
| 246 | + } | |
| 247 | +} | ... | ... |
cashier-mall/src/main/java/com/diligrp/cashier/mall/model/MallBizRefundItem.java
0 → 100644
| 1 | +package com.diligrp.cashier.mall.model; | |
| 2 | + | |
| 3 | +import com.diligrp.cashier.shared.domain.BaseDO; | |
| 4 | + | |
| 5 | +/** | |
| 6 | + * 商场商业退款项目 | |
| 7 | + * | |
| 8 | + * @author dengwei | |
| 9 | + */ | |
| 10 | +public class MallBizRefundItem extends BaseDO { | |
| 11 | + /** | |
| 12 | + * 退款主单id | |
| 13 | + */ | |
| 14 | + private Long bizRefundId; | |
| 15 | + | |
| 16 | + /** | |
| 17 | + * 业务子订单ID | |
| 18 | + */ | |
| 19 | + private Long subOrderId; | |
| 20 | + | |
| 21 | + /** | |
| 22 | + * 商品SKU编号 | |
| 23 | + */ | |
| 24 | + private String itemBn; | |
| 25 | + | |
| 26 | + /** | |
| 27 | + * 商品名称 | |
| 28 | + */ | |
| 29 | + private String itemName; | |
| 30 | + | |
| 31 | + /** | |
| 32 | + * 退款数量 | |
| 33 | + */ | |
| 34 | + private Integer num; | |
| 35 | + | |
| 36 | + /** | |
| 37 | + * 退款金额(单位:分) | |
| 38 | + */ | |
| 39 | + private Long refundFee; | |
| 40 | + | |
| 41 | + public Long getBizRefundId() { | |
| 42 | + return bizRefundId; | |
| 43 | + } | |
| 44 | + | |
| 45 | + public void setBizRefundId(Long bizRefundId) { | |
| 46 | + this.bizRefundId = bizRefundId; | |
| 47 | + } | |
| 48 | + | |
| 49 | + public Long getSubOrderId() { | |
| 50 | + return subOrderId; | |
| 51 | + } | |
| 52 | + | |
| 53 | + public void setSubOrderId(Long subOrderId) { | |
| 54 | + this.subOrderId = subOrderId; | |
| 55 | + } | |
| 56 | + | |
| 57 | + public String getItemBn() { | |
| 58 | + return itemBn; | |
| 59 | + } | |
| 60 | + | |
| 61 | + public void setItemBn(String itemBn) { | |
| 62 | + this.itemBn = itemBn == null ? null : itemBn.trim(); | |
| 63 | + } | |
| 64 | + | |
| 65 | + public String getItemName() { | |
| 66 | + return itemName; | |
| 67 | + } | |
| 68 | + | |
| 69 | + public void setItemName(String itemName) { | |
| 70 | + this.itemName = itemName == null ? null : itemName.trim(); | |
| 71 | + } | |
| 72 | + | |
| 73 | + public Integer getNum() { | |
| 74 | + return num; | |
| 75 | + } | |
| 76 | + | |
| 77 | + public void setNum(Integer num) { | |
| 78 | + this.num = num; | |
| 79 | + } | |
| 80 | + | |
| 81 | + public Long getRefundFee() { | |
| 82 | + return refundFee; | |
| 83 | + } | |
| 84 | + | |
| 85 | + public void setRefundFee(Long refundFee) { | |
| 86 | + this.refundFee = refundFee; | |
| 87 | + } | |
| 88 | +} | ... | ... |
cashier-mall/src/main/java/com/diligrp/cashier/mall/sign/RtMallSign.java
| ... | ... | @@ -41,18 +41,18 @@ public class RtMallSign implements SecuritySign { |
| 41 | 41 | |
| 42 | 42 | Object appKey = paramMap.get("app_key"); |
| 43 | 43 | if (Objects.isNull(appKey)) { |
| 44 | - throw new RtMartMallException(RtMarkErrorCode.E4003.getCode(), RtMarkErrorCode.E4003.getMessage()); | |
| 44 | + throw new RtMartMallException(RtMarkErrorCode.E4003); | |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | Object sign = paramMap.get("sign"); |
| 48 | 48 | if (Objects.isNull(sign)) { |
| 49 | - throw new RtMartMallException(RtMarkErrorCode.E4004.getCode(), RtMarkErrorCode.E4004.getMessage()); | |
| 49 | + throw new RtMartMallException(RtMarkErrorCode.E4004); | |
| 50 | 50 | } |
| 51 | 51 | paramMap.remove("sign"); |
| 52 | 52 | |
| 53 | 53 | RtMallDynamicProperty.AppSecretDynamicProperty property = mallDynamicProperty.getByAppKey(appKey.toString()); |
| 54 | 54 | if (Objects.isNull(property)) { |
| 55 | - throw new RtMartMallException(RtMarkErrorCode.E4003.getCode(), RtMarkErrorCode.E4003.getMessage()); | |
| 55 | + throw new RtMartMallException(RtMarkErrorCode.E4003); | |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | try { |
| ... | ... | @@ -60,7 +60,7 @@ public class RtMallSign implements SecuritySign { |
| 60 | 60 | String signKey = RtMallSignMd5Utils.generateSign(paramMap, property.getAppSecret()); |
| 61 | 61 | Assert.isTrue(Objects.equals(signKey, sign.toString()), "验签失败!"); |
| 62 | 62 | } catch (Exception e) { |
| 63 | - throw new RtMartMallException(RtMarkErrorCode.E4004.getCode(), RtMarkErrorCode.E4004.getMessage()); | |
| 63 | + throw new RtMartMallException(RtMarkErrorCode.E4004); | |
| 64 | 64 | } |
| 65 | 65 | } |
| 66 | 66 | } | ... | ... |
cashier-mall/src/main/java/com/diligrp/cashier/mall/type/OrderStatus.java
0 → 100644
| 1 | +package com.diligrp.cashier.mall.type; | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * @ClassName OrderStatus.java | |
| 5 | + * @author dengwei | |
| 6 | + * @version 1.0.0 | |
| 7 | + * @Description OrderStatus | |
| 8 | + */ | |
| 9 | +public enum OrderStatus { | |
| 10 | + NOT_PAY(0, "notpay", "未支付"), | |
| 11 | + PAYED(1, "payed", "已支付"), | |
| 12 | + NOT_PAY_CANCEL(2, "notpaycancel", "未支付取消"), | |
| 13 | + PAYED_CANCEL(3, "payedcancel", "已支付取消"), | |
| 14 | + DONE(4, "done", "订单完成"), | |
| 15 | + BUYER_CONFIRM(5, "buyer_confirm", "待用户收货"), | |
| 16 | + ; | |
| 17 | + | |
| 18 | + public final int code; | |
| 19 | + public final String key; | |
| 20 | + public final String name; | |
| 21 | + | |
| 22 | + OrderStatus(int code, String key, String name) { | |
| 23 | + this.code = code; | |
| 24 | + this.key = key; | |
| 25 | + this.name = name; | |
| 26 | + } | |
| 27 | + | |
| 28 | + public int getCode() { | |
| 29 | + return code; | |
| 30 | + } | |
| 31 | + | |
| 32 | + public String getKey() { | |
| 33 | + return key; | |
| 34 | + } | |
| 35 | + | |
| 36 | + public String getName() { | |
| 37 | + return name; | |
| 38 | + } | |
| 39 | +} | ... | ... |
cashier-mall/src/main/java/com/diligrp/cashier/mall/type/OrderType.java
| ... | ... | @@ -12,8 +12,8 @@ public enum OrderType { |
| 12 | 12 | API_SCAN(2, "接口扫码购"), |
| 13 | 13 | MINI_PROGRAM(3, "小程序"); |
| 14 | 14 | |
| 15 | - private final int code; | |
| 16 | - private final String description; | |
| 15 | + public final int code; | |
| 16 | + public final String description; | |
| 17 | 17 | |
| 18 | 18 | OrderType(int code, String description) { |
| 19 | 19 | this.code = code; | ... | ... |
cashier-mall/src/main/java/com/diligrp/cashier/mall/type/PayStatus.java
0 → 100644
| 1 | +package com.diligrp.cashier.mall.type; | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * @ClassName PayStatus.java | |
| 5 | + * @author dengwei | |
| 6 | + * @version 1.0.0 | |
| 7 | + * @Description PayStatus | |
| 8 | + * @date 2025-12-26 11:01 | |
| 9 | + */ | |
| 10 | +public enum PayStatus { | |
| 11 | + PENDING(0, "待支付"), | |
| 12 | + SUCCESS(1, "成功"), | |
| 13 | + FAILED(2, "失败"), | |
| 14 | + ; | |
| 15 | + | |
| 16 | + public final int code; | |
| 17 | + public final String description; | |
| 18 | + | |
| 19 | + PayStatus(int code, String description) { | |
| 20 | + this.code = code; | |
| 21 | + this.description = description; | |
| 22 | + } | |
| 23 | + | |
| 24 | + public int getCode() { | |
| 25 | + return code; | |
| 26 | + } | |
| 27 | + | |
| 28 | + public String getDescription() { | |
| 29 | + return description; | |
| 30 | + } | |
| 31 | +} | ... | ... |
cashier-mall/src/main/java/com/diligrp/cashier/mall/type/RefundStatus.java
0 → 100644
| 1 | +package com.diligrp.cashier.mall.type; | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * @ClassName RefundStatus.java | |
| 5 | + * @author dengwei | |
| 6 | + * @version 1.0.0 | |
| 7 | + * @Description RefundStatus | |
| 8 | + * @date 2025-12-26 11:08 | |
| 9 | + */ | |
| 10 | +public enum RefundStatus { | |
| 11 | + PENDING(0, "待退款"), | |
| 12 | + SUCCESS(1, "成功"), | |
| 13 | + FAILED(2, "失败"), | |
| 14 | + ; | |
| 15 | + | |
| 16 | + public final int code; | |
| 17 | + public final String description; | |
| 18 | + | |
| 19 | + RefundStatus(int code, String description) { | |
| 20 | + this.code = code; | |
| 21 | + this.description = description; | |
| 22 | + } | |
| 23 | + | |
| 24 | + public int getCode() { | |
| 25 | + return code; | |
| 26 | + } | |
| 27 | + | |
| 28 | + public String getDescription() { | |
| 29 | + return description; | |
| 30 | + } | |
| 31 | +} | ... | ... |
cashier-mall/src/main/java/com/diligrp/cashier/mall/type/RtMarkErrorCode.java
| ... | ... | @@ -13,10 +13,11 @@ public enum RtMarkErrorCode { |
| 13 | 13 | E4002("E4002", "timestamp 不合法"), |
| 14 | 14 | E4003("E4003", "app_key 错误"), |
| 15 | 15 | E4004("E4004", "签名错误"), |
| 16 | - E5000("E5000", "未知错误"); | |
| 16 | + E5000("E5000", "未知错误"), | |
| 17 | + E5001("E5001", "认证失败"); | |
| 17 | 18 | |
| 18 | - private final String code; | |
| 19 | - private final String message; | |
| 19 | + public final String code; | |
| 20 | + public final String message; | |
| 20 | 21 | |
| 21 | 22 | RtMarkErrorCode(String code, String message) { |
| 22 | 23 | this.code = code; | ... | ... |
cashier-mall/src/main/java/com/diligrp/cashier/mall/type/RtmartStatus.java
0 → 100644
| 1 | +package com.diligrp.cashier.mall.type; | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * @ClassName RtmartStatus.java | |
| 5 | + * @author dengwei | |
| 6 | + * @version 1.0.0 | |
| 7 | + * @Description RtmartStatus | |
| 8 | + * @date 2025-12-26 10:03 | |
| 9 | + */ | |
| 10 | +public enum RtmartStatus { | |
| 11 | + TRANSFER(1, "transfer", "转单"), | |
| 12 | + PACKAGE(2, "package", "打包"), | |
| 13 | + COLLECT(3, "collect", "揽件"), | |
| 14 | + DELIVERY(4, "delivery", "配达"), | |
| 15 | + ; | |
| 16 | + | |
| 17 | + public final int code; | |
| 18 | + public final String key; | |
| 19 | + public final String name; | |
| 20 | + | |
| 21 | + RtmartStatus(int code, String key, String name) { | |
| 22 | + this.code = code; | |
| 23 | + this.key = key; | |
| 24 | + this.name = name; | |
| 25 | + } | |
| 26 | + | |
| 27 | + public int getCode() { | |
| 28 | + return code; | |
| 29 | + } | |
| 30 | + | |
| 31 | + public String getKey() { | |
| 32 | + return key; | |
| 33 | + } | |
| 34 | + | |
| 35 | + public String getName() { | |
| 36 | + return name; | |
| 37 | + } | |
| 38 | +} | ... | ... |
cashier-mall/src/main/resources/com/diligrp/cashier/dao/mapper/MallBizOrderAddressDao.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
| 3 | +<mapper namespace="com.diligrp.cashier.mall.dao.MallBizOrderAddressDao"> | |
| 4 | + <resultMap id="BaseResultMap" type="com.diligrp.cashier.mall.model.MallBizOrderAddress"> | |
| 5 | + <id column="id" jdbcType="BIGINT" property="id" /> | |
| 6 | + <result column="receiver_name" jdbcType="VARCHAR" property="receiverName" /> | |
| 7 | + <result column="receiver_mobile" jdbcType="VARCHAR" property="receiverMobile" /> | |
| 8 | + <result column="receiver_address" jdbcType="VARCHAR" property="receiverAddress" /> | |
| 9 | + </resultMap> | |
| 10 | + <sql id="Base_Column_List"> | |
| 11 | + id, receiver_name, receiver_mobile, receiver_address | |
| 12 | + </sql> | |
| 13 | + <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> | |
| 14 | + select | |
| 15 | + <include refid="Base_Column_List" /> | |
| 16 | + from mall_biz_order_address | |
| 17 | + where id = #{id,jdbcType=BIGINT} | |
| 18 | + </select> | |
| 19 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> | |
| 20 | + delete from mall_biz_order_address | |
| 21 | + where id = #{id,jdbcType=BIGINT} | |
| 22 | + </delete> | |
| 23 | + <insert id="insert" parameterType="com.diligrp.cashier.mall.model.MallBizOrderAddress"> | |
| 24 | + insert into mall_biz_order_address (id, receiver_name, receiver_mobile, | |
| 25 | + receiver_address) | |
| 26 | + values (#{id,jdbcType=BIGINT}, #{receiverName,jdbcType=VARCHAR}, #{receiverMobile,jdbcType=VARCHAR}, | |
| 27 | + #{receiverAddress,jdbcType=VARCHAR}) | |
| 28 | + </insert> | |
| 29 | + <insert id="insertSelective" parameterType="com.diligrp.cashier.mall.model.MallBizOrderAddress"> | |
| 30 | + insert into mall_biz_order_address | |
| 31 | + <trim prefix="(" suffix=")" suffixOverrides=","> | |
| 32 | + <if test="id != null"> | |
| 33 | + id, | |
| 34 | + </if> | |
| 35 | + <if test="receiverName != null"> | |
| 36 | + receiver_name, | |
| 37 | + </if> | |
| 38 | + <if test="receiverMobile != null"> | |
| 39 | + receiver_mobile, | |
| 40 | + </if> | |
| 41 | + <if test="receiverAddress != null"> | |
| 42 | + receiver_address, | |
| 43 | + </if> | |
| 44 | + </trim> | |
| 45 | + <trim prefix="values (" suffix=")" suffixOverrides=","> | |
| 46 | + <if test="id != null"> | |
| 47 | + #{id,jdbcType=BIGINT}, | |
| 48 | + </if> | |
| 49 | + <if test="receiverName != null"> | |
| 50 | + #{receiverName,jdbcType=VARCHAR}, | |
| 51 | + </if> | |
| 52 | + <if test="receiverMobile != null"> | |
| 53 | + #{receiverMobile,jdbcType=VARCHAR}, | |
| 54 | + </if> | |
| 55 | + <if test="receiverAddress != null"> | |
| 56 | + #{receiverAddress,jdbcType=VARCHAR}, | |
| 57 | + </if> | |
| 58 | + </trim> | |
| 59 | + </insert> | |
| 60 | + <update id="updateByPrimaryKeySelective" parameterType="com.diligrp.cashier.mall.model.MallBizOrderAddress"> | |
| 61 | + update mall_biz_order_address | |
| 62 | + <set> | |
| 63 | + <if test="receiverName != null"> | |
| 64 | + receiver_name = #{receiverName,jdbcType=VARCHAR}, | |
| 65 | + </if> | |
| 66 | + <if test="receiverMobile != null"> | |
| 67 | + receiver_mobile = #{receiverMobile,jdbcType=VARCHAR}, | |
| 68 | + </if> | |
| 69 | + <if test="receiverAddress != null"> | |
| 70 | + receiver_address = #{receiverAddress,jdbcType=VARCHAR}, | |
| 71 | + </if> | |
| 72 | + </set> | |
| 73 | + where id = #{id,jdbcType=BIGINT} | |
| 74 | + </update> | |
| 75 | + <update id="updateByPrimaryKey" parameterType="com.diligrp.cashier.mall.model.MallBizOrderAddress"> | |
| 76 | + update mall_biz_order_address | |
| 77 | + set receiver_name = #{receiverName,jdbcType=VARCHAR}, | |
| 78 | + receiver_mobile = #{receiverMobile,jdbcType=VARCHAR}, | |
| 79 | + receiver_address = #{receiverAddress,jdbcType=VARCHAR} | |
| 80 | + where id = #{id,jdbcType=BIGINT} | |
| 81 | + </update> | |
| 82 | +</mapper> | ... | ... |
cashier-mall/src/main/resources/com/diligrp/cashier/dao/mapper/MallBizOrderDao.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
| 3 | +<mapper namespace="com.diligrp.cashier.mall.dao.MallBizOrderDao"> | |
| 4 | + <resultMap id="BaseResultMap" type="com.diligrp.cashier.mall.model.MallBizOrder"> | |
| 5 | + <id column="id" jdbcType="BIGINT" property="id" /> | |
| 6 | + <result column="order_no" jdbcType="VARCHAR" property="orderNo" /> | |
| 7 | + <result column="order_id" jdbcType="VARCHAR" property="orderId" /> | |
| 8 | + <result column="trade_id" jdbcType="VARCHAR" property="tradeId" /> | |
| 9 | + <result column="channel" jdbcType="VARCHAR" property="channel" /> | |
| 10 | + <result column="mch_id" jdbcType="VARCHAR" property="mchId" /> | |
| 11 | + <result column="source" jdbcType="TINYINT" property="source" /> | |
| 12 | + <result column="order_type" jdbcType="TINYINT" property="orderType" /> | |
| 13 | + <result column="user_code" jdbcType="VARCHAR" property="userCode" /> | |
| 14 | + <result column="username" jdbcType="VARCHAR" property="username" /> | |
| 15 | + <result column="company_code" jdbcType="VARCHAR" property="companyCode" /> | |
| 16 | + <result column="shop_code" jdbcType="VARCHAR" property="shopCode" /> | |
| 17 | + <result column="shop_name" jdbcType="VARCHAR" property="shopName" /> | |
| 18 | + <result column="total_amount" jdbcType="BIGINT" property="totalAmount" /> | |
| 19 | + <result column="freight_fee" jdbcType="BIGINT" property="freightFee" /> | |
| 20 | + <result column="status" jdbcType="TINYINT" property="status" /> | |
| 21 | + <result column="rtmart_status" jdbcType="TINYINT" property="rtmartStatus" /> | |
| 22 | + <result column="order_time" jdbcType="TIMESTAMP" property="orderTime" /> | |
| 23 | + <result column="order_expire" jdbcType="INTEGER" property="orderExpire" /> | |
| 24 | + <result column="version" jdbcType="INTEGER" property="version" /> | |
| 25 | + <result column="created_time" jdbcType="TIMESTAMP" property="createdTime" /> | |
| 26 | + <result column="modified_time" jdbcType="TIMESTAMP" property="modifiedTime" /> | |
| 27 | + </resultMap> | |
| 28 | + <sql id="Base_Column_List"> | |
| 29 | + id, order_no, order_id, trade_id, channel, mch_id, source, order_type, user_code, | |
| 30 | + username, company_code, shop_code, shop_name, total_amount, freight_fee, status, | |
| 31 | + rtmart_status, order_time, order_expire, version, created_time, modified_time | |
| 32 | + </sql> | |
| 33 | + <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> | |
| 34 | + select | |
| 35 | + <include refid="Base_Column_List" /> | |
| 36 | + from mall_biz_order | |
| 37 | + where id = #{id,jdbcType=BIGINT} | |
| 38 | + </select> | |
| 39 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> | |
| 40 | + delete from mall_biz_order | |
| 41 | + where id = #{id,jdbcType=BIGINT} | |
| 42 | + </delete> | |
| 43 | + <insert id="insert" parameterType="com.diligrp.cashier.mall.model.MallBizOrder"> | |
| 44 | + insert into mall_biz_order (id, order_no, order_id, | |
| 45 | + trade_id, channel, mch_id, | |
| 46 | + source, order_type, user_code, | |
| 47 | + username, company_code, shop_code, | |
| 48 | + shop_name, total_amount, freight_fee, | |
| 49 | + status, rtmart_status, order_time, | |
| 50 | + order_expire, version, created_time, | |
| 51 | + modified_time) | |
| 52 | + values (#{id,jdbcType=BIGINT}, #{orderNo,jdbcType=VARCHAR}, #{orderId,jdbcType=VARCHAR}, | |
| 53 | + #{tradeId,jdbcType=VARCHAR}, #{channel,jdbcType=VARCHAR}, #{mchId,jdbcType=VARCHAR}, | |
| 54 | + #{source,jdbcType=TINYINT}, #{orderType,jdbcType=TINYINT}, #{userCode,jdbcType=VARCHAR}, | |
| 55 | + #{username,jdbcType=VARCHAR}, #{companyCode,jdbcType=VARCHAR}, #{shopCode,jdbcType=VARCHAR}, | |
| 56 | + #{shopName,jdbcType=VARCHAR}, #{totalAmount,jdbcType=BIGINT}, #{freightFee,jdbcType=BIGINT}, | |
| 57 | + #{status,jdbcType=TINYINT}, #{rtmartStatus,jdbcType=TINYINT}, #{orderTime,jdbcType=TIMESTAMP}, | |
| 58 | + #{orderExpire,jdbcType=INTEGER}, #{version,jdbcType=INTEGER}, #{createdTime,jdbcType=TIMESTAMP}, | |
| 59 | + #{modifiedTime,jdbcType=TIMESTAMP}) | |
| 60 | + </insert> | |
| 61 | + <insert id="insertSelective" parameterType="com.diligrp.cashier.mall.model.MallBizOrder"> | |
| 62 | + insert into mall_biz_order | |
| 63 | + <trim prefix="(" suffix=")" suffixOverrides=","> | |
| 64 | + <if test="id != null"> | |
| 65 | + id, | |
| 66 | + </if> | |
| 67 | + <if test="orderNo != null"> | |
| 68 | + order_no, | |
| 69 | + </if> | |
| 70 | + <if test="orderId != null"> | |
| 71 | + order_id, | |
| 72 | + </if> | |
| 73 | + <if test="tradeId != null"> | |
| 74 | + trade_id, | |
| 75 | + </if> | |
| 76 | + <if test="channel != null"> | |
| 77 | + channel, | |
| 78 | + </if> | |
| 79 | + <if test="mchId != null"> | |
| 80 | + mch_id, | |
| 81 | + </if> | |
| 82 | + <if test="source != null"> | |
| 83 | + source, | |
| 84 | + </if> | |
| 85 | + <if test="orderType != null"> | |
| 86 | + order_type, | |
| 87 | + </if> | |
| 88 | + <if test="userCode != null"> | |
| 89 | + user_code, | |
| 90 | + </if> | |
| 91 | + <if test="username != null"> | |
| 92 | + username, | |
| 93 | + </if> | |
| 94 | + <if test="companyCode != null"> | |
| 95 | + company_code, | |
| 96 | + </if> | |
| 97 | + <if test="shopCode != null"> | |
| 98 | + shop_code, | |
| 99 | + </if> | |
| 100 | + <if test="shopName != null"> | |
| 101 | + shop_name, | |
| 102 | + </if> | |
| 103 | + <if test="totalAmount != null"> | |
| 104 | + total_amount, | |
| 105 | + </if> | |
| 106 | + <if test="freightFee != null"> | |
| 107 | + freight_fee, | |
| 108 | + </if> | |
| 109 | + <if test="status != null"> | |
| 110 | + status, | |
| 111 | + </if> | |
| 112 | + <if test="rtmartStatus != null"> | |
| 113 | + rtmart_status, | |
| 114 | + </if> | |
| 115 | + <if test="orderTime != null"> | |
| 116 | + order_time, | |
| 117 | + </if> | |
| 118 | + <if test="orderExpire != null"> | |
| 119 | + order_expire, | |
| 120 | + </if> | |
| 121 | + <if test="version != null"> | |
| 122 | + version, | |
| 123 | + </if> | |
| 124 | + <if test="createdTime != null"> | |
| 125 | + created_time, | |
| 126 | + </if> | |
| 127 | + <if test="modifiedTime != null"> | |
| 128 | + modified_time, | |
| 129 | + </if> | |
| 130 | + </trim> | |
| 131 | + <trim prefix="values (" suffix=")" suffixOverrides=","> | |
| 132 | + <if test="id != null"> | |
| 133 | + #{id,jdbcType=BIGINT}, | |
| 134 | + </if> | |
| 135 | + <if test="orderNo != null"> | |
| 136 | + #{orderNo,jdbcType=VARCHAR}, | |
| 137 | + </if> | |
| 138 | + <if test="orderId != null"> | |
| 139 | + #{orderId,jdbcType=VARCHAR}, | |
| 140 | + </if> | |
| 141 | + <if test="tradeId != null"> | |
| 142 | + #{tradeId,jdbcType=VARCHAR}, | |
| 143 | + </if> | |
| 144 | + <if test="channel != null"> | |
| 145 | + #{channel,jdbcType=VARCHAR}, | |
| 146 | + </if> | |
| 147 | + <if test="mchId != null"> | |
| 148 | + #{mchId,jdbcType=VARCHAR}, | |
| 149 | + </if> | |
| 150 | + <if test="source != null"> | |
| 151 | + #{source,jdbcType=TINYINT}, | |
| 152 | + </if> | |
| 153 | + <if test="orderType != null"> | |
| 154 | + #{orderType,jdbcType=TINYINT}, | |
| 155 | + </if> | |
| 156 | + <if test="userCode != null"> | |
| 157 | + #{userCode,jdbcType=VARCHAR}, | |
| 158 | + </if> | |
| 159 | + <if test="username != null"> | |
| 160 | + #{username,jdbcType=VARCHAR}, | |
| 161 | + </if> | |
| 162 | + <if test="companyCode != null"> | |
| 163 | + #{companyCode,jdbcType=VARCHAR}, | |
| 164 | + </if> | |
| 165 | + <if test="shopCode != null"> | |
| 166 | + #{shopCode,jdbcType=VARCHAR}, | |
| 167 | + </if> | |
| 168 | + <if test="shopName != null"> | |
| 169 | + #{shopName,jdbcType=VARCHAR}, | |
| 170 | + </if> | |
| 171 | + <if test="totalAmount != null"> | |
| 172 | + #{totalAmount,jdbcType=BIGINT}, | |
| 173 | + </if> | |
| 174 | + <if test="freightFee != null"> | |
| 175 | + #{freightFee,jdbcType=BIGINT}, | |
| 176 | + </if> | |
| 177 | + <if test="status != null"> | |
| 178 | + #{status,jdbcType=TINYINT}, | |
| 179 | + </if> | |
| 180 | + <if test="rtmartStatus != null"> | |
| 181 | + #{rtmartStatus,jdbcType=TINYINT}, | |
| 182 | + </if> | |
| 183 | + <if test="orderTime != null"> | |
| 184 | + #{orderTime,jdbcType=TIMESTAMP}, | |
| 185 | + </if> | |
| 186 | + <if test="orderExpire != null"> | |
| 187 | + #{orderExpire,jdbcType=INTEGER}, | |
| 188 | + </if> | |
| 189 | + <if test="version != null"> | |
| 190 | + #{version,jdbcType=INTEGER}, | |
| 191 | + </if> | |
| 192 | + <if test="createdTime != null"> | |
| 193 | + #{createdTime,jdbcType=TIMESTAMP}, | |
| 194 | + </if> | |
| 195 | + <if test="modifiedTime != null"> | |
| 196 | + #{modifiedTime,jdbcType=TIMESTAMP}, | |
| 197 | + </if> | |
| 198 | + </trim> | |
| 199 | + </insert> | |
| 200 | + <update id="updateByPrimaryKeySelective" parameterType="com.diligrp.cashier.mall.model.MallBizOrder"> | |
| 201 | + update mall_biz_order | |
| 202 | + <set> | |
| 203 | + <if test="orderNo != null"> | |
| 204 | + order_no = #{orderNo,jdbcType=VARCHAR}, | |
| 205 | + </if> | |
| 206 | + <if test="orderId != null"> | |
| 207 | + order_id = #{orderId,jdbcType=VARCHAR}, | |
| 208 | + </if> | |
| 209 | + <if test="tradeId != null"> | |
| 210 | + trade_id = #{tradeId,jdbcType=VARCHAR}, | |
| 211 | + </if> | |
| 212 | + <if test="channel != null"> | |
| 213 | + channel = #{channel,jdbcType=VARCHAR}, | |
| 214 | + </if> | |
| 215 | + <if test="mchId != null"> | |
| 216 | + mch_id = #{mchId,jdbcType=VARCHAR}, | |
| 217 | + </if> | |
| 218 | + <if test="source != null"> | |
| 219 | + source = #{source,jdbcType=TINYINT}, | |
| 220 | + </if> | |
| 221 | + <if test="orderType != null"> | |
| 222 | + order_type = #{orderType,jdbcType=TINYINT}, | |
| 223 | + </if> | |
| 224 | + <if test="userCode != null"> | |
| 225 | + user_code = #{userCode,jdbcType=VARCHAR}, | |
| 226 | + </if> | |
| 227 | + <if test="username != null"> | |
| 228 | + username = #{username,jdbcType=VARCHAR}, | |
| 229 | + </if> | |
| 230 | + <if test="companyCode != null"> | |
| 231 | + company_code = #{companyCode,jdbcType=VARCHAR}, | |
| 232 | + </if> | |
| 233 | + <if test="shopCode != null"> | |
| 234 | + shop_code = #{shopCode,jdbcType=VARCHAR}, | |
| 235 | + </if> | |
| 236 | + <if test="shopName != null"> | |
| 237 | + shop_name = #{shopName,jdbcType=VARCHAR}, | |
| 238 | + </if> | |
| 239 | + <if test="totalAmount != null"> | |
| 240 | + total_amount = #{totalAmount,jdbcType=BIGINT}, | |
| 241 | + </if> | |
| 242 | + <if test="freightFee != null"> | |
| 243 | + freight_fee = #{freightFee,jdbcType=BIGINT}, | |
| 244 | + </if> | |
| 245 | + <if test="status != null"> | |
| 246 | + status = #{status,jdbcType=TINYINT}, | |
| 247 | + </if> | |
| 248 | + <if test="rtmartStatus != null"> | |
| 249 | + rtmart_status = #{rtmartStatus,jdbcType=TINYINT}, | |
| 250 | + </if> | |
| 251 | + <if test="orderTime != null"> | |
| 252 | + order_time = #{orderTime,jdbcType=TIMESTAMP}, | |
| 253 | + </if> | |
| 254 | + <if test="orderExpire != null"> | |
| 255 | + order_expire = #{orderExpire,jdbcType=INTEGER}, | |
| 256 | + </if> | |
| 257 | + <if test="version != null"> | |
| 258 | + version = #{version,jdbcType=INTEGER}, | |
| 259 | + </if> | |
| 260 | + <if test="createdTime != null"> | |
| 261 | + created_time = #{createdTime,jdbcType=TIMESTAMP}, | |
| 262 | + </if> | |
| 263 | + <if test="modifiedTime != null"> | |
| 264 | + modified_time = #{modifiedTime,jdbcType=TIMESTAMP}, | |
| 265 | + </if> | |
| 266 | + </set> | |
| 267 | + where id = #{id,jdbcType=BIGINT} | |
| 268 | + </update> | |
| 269 | + <update id="updateByPrimaryKey" parameterType="com.diligrp.cashier.mall.model.MallBizOrder"> | |
| 270 | + update mall_biz_order | |
| 271 | + set order_no = #{orderNo,jdbcType=VARCHAR}, | |
| 272 | + order_id = #{orderId,jdbcType=VARCHAR}, | |
| 273 | + trade_id = #{tradeId,jdbcType=VARCHAR}, | |
| 274 | + channel = #{channel,jdbcType=VARCHAR}, | |
| 275 | + mch_id = #{mchId,jdbcType=VARCHAR}, | |
| 276 | + source = #{source,jdbcType=TINYINT}, | |
| 277 | + order_type = #{orderType,jdbcType=TINYINT}, | |
| 278 | + user_code = #{userCode,jdbcType=VARCHAR}, | |
| 279 | + username = #{username,jdbcType=VARCHAR}, | |
| 280 | + company_code = #{companyCode,jdbcType=VARCHAR}, | |
| 281 | + shop_code = #{shopCode,jdbcType=VARCHAR}, | |
| 282 | + shop_name = #{shopName,jdbcType=VARCHAR}, | |
| 283 | + total_amount = #{totalAmount,jdbcType=BIGINT}, | |
| 284 | + freight_fee = #{freightFee,jdbcType=BIGINT}, | |
| 285 | + status = #{status,jdbcType=TINYINT}, | |
| 286 | + rtmart_status = #{rtmartStatus,jdbcType=TINYINT}, | |
| 287 | + order_time = #{orderTime,jdbcType=TIMESTAMP}, | |
| 288 | + order_expire = #{orderExpire,jdbcType=INTEGER}, | |
| 289 | + version = #{version,jdbcType=INTEGER}, | |
| 290 | + created_time = #{createdTime,jdbcType=TIMESTAMP}, | |
| 291 | + modified_time = #{modifiedTime,jdbcType=TIMESTAMP} | |
| 292 | + where id = #{id,jdbcType=BIGINT} | |
| 293 | + </update> | |
| 294 | +</mapper> | ... | ... |
cashier-mall/src/main/resources/com/diligrp/cashier/dao/mapper/MallBizOrderItemDao.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
| 3 | +<mapper namespace="com.diligrp.cashier.mall.dao.MallBizOrderItemDao"> | |
| 4 | + <resultMap id="BaseResultMap" type="com.diligrp.cashier.mall.model.MallBizOrderItem"> | |
| 5 | + <id column="id" jdbcType="BIGINT" property="id" /> | |
| 6 | + <result column="biz_order_id" jdbcType="BIGINT" property="bizOrderId" /> | |
| 7 | + <result column="order_id" jdbcType="VARCHAR" property="orderId" /> | |
| 8 | + <result column="sub_order_id" jdbcType="VARCHAR" property="subOrderId" /> | |
| 9 | + <result column="shop_code" jdbcType="VARCHAR" property="shopCode" /> | |
| 10 | + <result column="shop_name" jdbcType="VARCHAR" property="shopName" /> | |
| 11 | + <result column="item_bn" jdbcType="VARCHAR" property="itemBn" /> | |
| 12 | + <result column="item_name" jdbcType="VARCHAR" property="itemName" /> | |
| 13 | + <result column="num" jdbcType="INTEGER" property="num" /> | |
| 14 | + <result column="price" jdbcType="BIGINT" property="price" /> | |
| 15 | + <result column="amount" jdbcType="BIGINT" property="amount" /> | |
| 16 | + <result column="pic" jdbcType="VARCHAR" property="pic" /> | |
| 17 | + <result column="tax_output_rate" jdbcType="VARCHAR" property="taxOutputRate" /> | |
| 18 | + <result column="tax_classification_code" jdbcType="VARCHAR" property="taxClassificationCode" /> | |
| 19 | + <result column="tax_classification_name" jdbcType="VARCHAR" property="taxClassificationName" /> | |
| 20 | + </resultMap> | |
| 21 | + <sql id="Base_Column_List"> | |
| 22 | + id, biz_order_id, order_id, sub_order_id, shop_code, shop_name, item_bn, item_name, | |
| 23 | + num, price, amount, pic, tax_output_rate, tax_classification_code, tax_classification_name | |
| 24 | + </sql> | |
| 25 | + <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> | |
| 26 | + select | |
| 27 | + <include refid="Base_Column_List" /> | |
| 28 | + from mall_biz_order_item | |
| 29 | + where id = #{id,jdbcType=BIGINT} | |
| 30 | + </select> | |
| 31 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> | |
| 32 | + delete from mall_biz_order_item | |
| 33 | + where id = #{id,jdbcType=BIGINT} | |
| 34 | + </delete> | |
| 35 | + <insert id="insert" parameterType="com.diligrp.cashier.mall.model.MallBizOrderItem"> | |
| 36 | + insert into mall_biz_order_item (id, biz_order_id, order_id, | |
| 37 | + sub_order_id, shop_code, shop_name, | |
| 38 | + item_bn, item_name, num, | |
| 39 | + price, amount, pic, tax_output_rate, | |
| 40 | + tax_classification_code, tax_classification_name | |
| 41 | + ) | |
| 42 | + values (#{id,jdbcType=BIGINT}, #{bizOrderId,jdbcType=BIGINT}, #{orderId,jdbcType=VARCHAR}, | |
| 43 | + #{subOrderId,jdbcType=VARCHAR}, #{shopCode,jdbcType=VARCHAR}, #{shopName,jdbcType=VARCHAR}, | |
| 44 | + #{itemBn,jdbcType=VARCHAR}, #{itemName,jdbcType=VARCHAR}, #{num,jdbcType=INTEGER}, | |
| 45 | + #{price,jdbcType=BIGINT}, #{amount,jdbcType=BIGINT}, #{pic,jdbcType=VARCHAR}, #{taxOutputRate,jdbcType=VARCHAR}, | |
| 46 | + #{taxClassificationCode,jdbcType=VARCHAR}, #{taxClassificationName,jdbcType=VARCHAR} | |
| 47 | + ) | |
| 48 | + </insert> | |
| 49 | + <insert id="insertSelective" parameterType="com.diligrp.cashier.mall.model.MallBizOrderItem"> | |
| 50 | + insert into mall_biz_order_item | |
| 51 | + <trim prefix="(" suffix=")" suffixOverrides=","> | |
| 52 | + <if test="id != null"> | |
| 53 | + id, | |
| 54 | + </if> | |
| 55 | + <if test="bizOrderId != null"> | |
| 56 | + biz_order_id, | |
| 57 | + </if> | |
| 58 | + <if test="orderId != null"> | |
| 59 | + order_id, | |
| 60 | + </if> | |
| 61 | + <if test="subOrderId != null"> | |
| 62 | + sub_order_id, | |
| 63 | + </if> | |
| 64 | + <if test="shopCode != null"> | |
| 65 | + shop_code, | |
| 66 | + </if> | |
| 67 | + <if test="shopName != null"> | |
| 68 | + shop_name, | |
| 69 | + </if> | |
| 70 | + <if test="itemBn != null"> | |
| 71 | + item_bn, | |
| 72 | + </if> | |
| 73 | + <if test="itemName != null"> | |
| 74 | + item_name, | |
| 75 | + </if> | |
| 76 | + <if test="num != null"> | |
| 77 | + num, | |
| 78 | + </if> | |
| 79 | + <if test="price != null"> | |
| 80 | + price, | |
| 81 | + </if> | |
| 82 | + <if test="amount != null"> | |
| 83 | + amount, | |
| 84 | + </if> | |
| 85 | + <if test="pic != null"> | |
| 86 | + pic, | |
| 87 | + </if> | |
| 88 | + <if test="taxOutputRate != null"> | |
| 89 | + tax_output_rate, | |
| 90 | + </if> | |
| 91 | + <if test="taxClassificationCode != null"> | |
| 92 | + tax_classification_code, | |
| 93 | + </if> | |
| 94 | + <if test="taxClassificationName != null"> | |
| 95 | + tax_classification_name, | |
| 96 | + </if> | |
| 97 | + </trim> | |
| 98 | + <trim prefix="values (" suffix=")" suffixOverrides=","> | |
| 99 | + <if test="id != null"> | |
| 100 | + #{id,jdbcType=BIGINT}, | |
| 101 | + </if> | |
| 102 | + <if test="bizOrderId != null"> | |
| 103 | + #{bizOrderId,jdbcType=BIGINT}, | |
| 104 | + </if> | |
| 105 | + <if test="orderId != null"> | |
| 106 | + #{orderId,jdbcType=VARCHAR}, | |
| 107 | + </if> | |
| 108 | + <if test="subOrderId != null"> | |
| 109 | + #{subOrderId,jdbcType=VARCHAR}, | |
| 110 | + </if> | |
| 111 | + <if test="shopCode != null"> | |
| 112 | + #{shopCode,jdbcType=VARCHAR}, | |
| 113 | + </if> | |
| 114 | + <if test="shopName != null"> | |
| 115 | + #{shopName,jdbcType=VARCHAR}, | |
| 116 | + </if> | |
| 117 | + <if test="itemBn != null"> | |
| 118 | + #{itemBn,jdbcType=VARCHAR}, | |
| 119 | + </if> | |
| 120 | + <if test="itemName != null"> | |
| 121 | + #{itemName,jdbcType=VARCHAR}, | |
| 122 | + </if> | |
| 123 | + <if test="num != null"> | |
| 124 | + #{num,jdbcType=INTEGER}, | |
| 125 | + </if> | |
| 126 | + <if test="price != null"> | |
| 127 | + #{price,jdbcType=BIGINT}, | |
| 128 | + </if> | |
| 129 | + <if test="amount != null"> | |
| 130 | + #{amount,jdbcType=BIGINT}, | |
| 131 | + </if> | |
| 132 | + <if test="pic != null"> | |
| 133 | + #{pic,jdbcType=VARCHAR}, | |
| 134 | + </if> | |
| 135 | + <if test="taxOutputRate != null"> | |
| 136 | + #{taxOutputRate,jdbcType=VARCHAR}, | |
| 137 | + </if> | |
| 138 | + <if test="taxClassificationCode != null"> | |
| 139 | + #{taxClassificationCode,jdbcType=VARCHAR}, | |
| 140 | + </if> | |
| 141 | + <if test="taxClassificationName != null"> | |
| 142 | + #{taxClassificationName,jdbcType=VARCHAR}, | |
| 143 | + </if> | |
| 144 | + </trim> | |
| 145 | + </insert> | |
| 146 | + <update id="updateByPrimaryKeySelective" parameterType="com.diligrp.cashier.mall.model.MallBizOrderItem"> | |
| 147 | + update mall_biz_order_item | |
| 148 | + <set> | |
| 149 | + <if test="bizOrderId != null"> | |
| 150 | + biz_order_id = #{bizOrderId,jdbcType=BIGINT}, | |
| 151 | + </if> | |
| 152 | + <if test="orderId != null"> | |
| 153 | + order_id = #{orderId,jdbcType=VARCHAR}, | |
| 154 | + </if> | |
| 155 | + <if test="subOrderId != null"> | |
| 156 | + sub_order_id = #{subOrderId,jdbcType=VARCHAR}, | |
| 157 | + </if> | |
| 158 | + <if test="shopCode != null"> | |
| 159 | + shop_code = #{shopCode,jdbcType=VARCHAR}, | |
| 160 | + </if> | |
| 161 | + <if test="shopName != null"> | |
| 162 | + shop_name = #{shopName,jdbcType=VARCHAR}, | |
| 163 | + </if> | |
| 164 | + <if test="itemBn != null"> | |
| 165 | + item_bn = #{itemBn,jdbcType=VARCHAR}, | |
| 166 | + </if> | |
| 167 | + <if test="itemName != null"> | |
| 168 | + item_name = #{itemName,jdbcType=VARCHAR}, | |
| 169 | + </if> | |
| 170 | + <if test="num != null"> | |
| 171 | + num = #{num,jdbcType=INTEGER}, | |
| 172 | + </if> | |
| 173 | + <if test="price != null"> | |
| 174 | + price = #{price,jdbcType=BIGINT}, | |
| 175 | + </if> | |
| 176 | + <if test="amount != null"> | |
| 177 | + amount = #{amount,jdbcType=BIGINT}, | |
| 178 | + </if> | |
| 179 | + <if test="pic != null"> | |
| 180 | + pic = #{pic,jdbcType=VARCHAR}, | |
| 181 | + </if> | |
| 182 | + <if test="taxOutputRate != null"> | |
| 183 | + tax_output_rate = #{taxOutputRate,jdbcType=VARCHAR}, | |
| 184 | + </if> | |
| 185 | + <if test="taxClassificationCode != null"> | |
| 186 | + tax_classification_code = #{taxClassificationCode,jdbcType=VARCHAR}, | |
| 187 | + </if> | |
| 188 | + <if test="taxClassificationName != null"> | |
| 189 | + tax_classification_name = #{taxClassificationName,jdbcType=VARCHAR}, | |
| 190 | + </if> | |
| 191 | + </set> | |
| 192 | + where id = #{id,jdbcType=BIGINT} | |
| 193 | + </update> | |
| 194 | + <update id="updateByPrimaryKey" parameterType="com.diligrp.cashier.mall.model.MallBizOrderItem"> | |
| 195 | + update mall_biz_order_item | |
| 196 | + set biz_order_id = #{bizOrderId,jdbcType=BIGINT}, | |
| 197 | + order_id = #{orderId,jdbcType=VARCHAR}, | |
| 198 | + sub_order_id = #{subOrderId,jdbcType=VARCHAR}, | |
| 199 | + shop_code = #{shopCode,jdbcType=VARCHAR}, | |
| 200 | + shop_name = #{shopName,jdbcType=VARCHAR}, | |
| 201 | + item_bn = #{itemBn,jdbcType=VARCHAR}, | |
| 202 | + item_name = #{itemName,jdbcType=VARCHAR}, | |
| 203 | + num = #{num,jdbcType=INTEGER}, | |
| 204 | + price = #{price,jdbcType=BIGINT}, | |
| 205 | + amount = #{amount,jdbcType=BIGINT}, | |
| 206 | + pic = #{pic,jdbcType=VARCHAR}, | |
| 207 | + tax_output_rate = #{taxOutputRate,jdbcType=VARCHAR}, | |
| 208 | + tax_classification_code = #{taxClassificationCode,jdbcType=VARCHAR}, | |
| 209 | + tax_classification_name = #{taxClassificationName,jdbcType=VARCHAR} | |
| 210 | + where id = #{id,jdbcType=BIGINT} | |
| 211 | + </update> | |
| 212 | +</mapper> | ... | ... |
cashier-mall/src/main/resources/com/diligrp/cashier/dao/mapper/MallBizPaymentDao.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
| 3 | +<mapper namespace="com.diligrp.cashier.mall.dao.MallBizPaymentDao"> | |
| 4 | + <resultMap id="BaseResultMap" type="com.diligrp.cashier.mall.model.MallBizPayment"> | |
| 5 | + <id column="id" jdbcType="BIGINT" property="id" /> | |
| 6 | + <result column="pay_trade_no" jdbcType="VARCHAR" property="payTradeNo" /> | |
| 7 | + <result column="biz_order_id" jdbcType="BIGINT" property="bizOrderId" /> | |
| 8 | + <result column="order_id" jdbcType="VARCHAR" property="orderId" /> | |
| 9 | + <result column="trade_id" jdbcType="VARCHAR" property="tradeId" /> | |
| 10 | + <result column="pay_payment_id" jdbcType="VARCHAR" property="payPaymentId" /> | |
| 11 | + <result column="mch_id" jdbcType="VARCHAR" property="mchId" /> | |
| 12 | + <result column="card_no" jdbcType="VARCHAR" property="cardNo" /> | |
| 13 | + <result column="username" jdbcType="VARCHAR" property="username" /> | |
| 14 | + <result column="user_id" jdbcType="BIGINT" property="userId" /> | |
| 15 | + <result column="account_id" jdbcType="BIGINT" property="accountId" /> | |
| 16 | + <result column="fund_account_id" jdbcType="BIGINT" property="fundAccountId" /> | |
| 17 | + <result column="pay_fee" jdbcType="BIGINT" property="payFee" /> | |
| 18 | + <result column="pay_status" jdbcType="TINYINT" property="payStatus" /> | |
| 19 | + <result column="pay_time" jdbcType="TIMESTAMP" property="payTime" /> | |
| 20 | + <result column="channel_id" jdbcType="TINYINT" property="channelId" /> | |
| 21 | + <result column="cashier_url" jdbcType="VARCHAR" property="cashierUrl" /> | |
| 22 | + <result column="payment_callback" jdbcType="VARCHAR" property="paymentCallback" /> | |
| 23 | + <result column="version" jdbcType="INTEGER" property="version" /> | |
| 24 | + <result column="created_time" jdbcType="TIMESTAMP" property="createdTime" /> | |
| 25 | + <result column="modified_time" jdbcType="TIMESTAMP" property="modifiedTime" /> | |
| 26 | + </resultMap> | |
| 27 | + <sql id="Base_Column_List"> | |
| 28 | + id, pay_trade_no, biz_order_id, order_id, trade_id, pay_payment_id, mch_id, card_no, | |
| 29 | + username, user_id, account_id, fund_account_id, pay_fee, pay_status, pay_time, channel_id, | |
| 30 | + cashier_url, payment_callback, version, created_time, modified_time | |
| 31 | + </sql> | |
| 32 | + <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> | |
| 33 | + select | |
| 34 | + <include refid="Base_Column_List" /> | |
| 35 | + from mall_biz_payment | |
| 36 | + where id = #{id,jdbcType=BIGINT} | |
| 37 | + </select> | |
| 38 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> | |
| 39 | + delete from mall_biz_payment | |
| 40 | + where id = #{id,jdbcType=BIGINT} | |
| 41 | + </delete> | |
| 42 | + <insert id="insert" parameterType="com.diligrp.cashier.mall.model.MallBizPayment"> | |
| 43 | + insert into mall_biz_payment (id, pay_trade_no, biz_order_id, | |
| 44 | + order_id, trade_id, pay_payment_id, | |
| 45 | + mch_id, card_no, username, | |
| 46 | + user_id, account_id, fund_account_id, | |
| 47 | + pay_fee, pay_status, pay_time, | |
| 48 | + channel_id, cashier_url, payment_callback, | |
| 49 | + version, created_time, modified_time | |
| 50 | + ) | |
| 51 | + values (#{id,jdbcType=BIGINT}, #{payTradeNo,jdbcType=VARCHAR}, #{bizOrderId,jdbcType=BIGINT}, | |
| 52 | + #{orderId,jdbcType=VARCHAR}, #{tradeId,jdbcType=VARCHAR}, #{payPaymentId,jdbcType=VARCHAR}, | |
| 53 | + #{mchId,jdbcType=VARCHAR}, #{cardNo,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, | |
| 54 | + #{userId,jdbcType=BIGINT}, #{accountId,jdbcType=BIGINT}, #{fundAccountId,jdbcType=BIGINT}, | |
| 55 | + #{payFee,jdbcType=BIGINT}, #{payStatus,jdbcType=TINYINT}, #{payTime,jdbcType=TIMESTAMP}, | |
| 56 | + #{channelId,jdbcType=TINYINT}, #{cashierUrl,jdbcType=VARCHAR}, #{paymentCallback,jdbcType=VARCHAR}, | |
| 57 | + #{version,jdbcType=INTEGER}, #{createdTime,jdbcType=TIMESTAMP}, #{modifiedTime,jdbcType=TIMESTAMP} | |
| 58 | + ) | |
| 59 | + </insert> | |
| 60 | + <insert id="insertSelective" parameterType="com.diligrp.cashier.mall.model.MallBizPayment"> | |
| 61 | + insert into mall_biz_payment | |
| 62 | + <trim prefix="(" suffix=")" suffixOverrides=","> | |
| 63 | + <if test="id != null"> | |
| 64 | + id, | |
| 65 | + </if> | |
| 66 | + <if test="payTradeNo != null"> | |
| 67 | + pay_trade_no, | |
| 68 | + </if> | |
| 69 | + <if test="bizOrderId != null"> | |
| 70 | + biz_order_id, | |
| 71 | + </if> | |
| 72 | + <if test="orderId != null"> | |
| 73 | + order_id, | |
| 74 | + </if> | |
| 75 | + <if test="tradeId != null"> | |
| 76 | + trade_id, | |
| 77 | + </if> | |
| 78 | + <if test="payPaymentId != null"> | |
| 79 | + pay_payment_id, | |
| 80 | + </if> | |
| 81 | + <if test="mchId != null"> | |
| 82 | + mch_id, | |
| 83 | + </if> | |
| 84 | + <if test="cardNo != null"> | |
| 85 | + card_no, | |
| 86 | + </if> | |
| 87 | + <if test="username != null"> | |
| 88 | + username, | |
| 89 | + </if> | |
| 90 | + <if test="userId != null"> | |
| 91 | + user_id, | |
| 92 | + </if> | |
| 93 | + <if test="accountId != null"> | |
| 94 | + account_id, | |
| 95 | + </if> | |
| 96 | + <if test="fundAccountId != null"> | |
| 97 | + fund_account_id, | |
| 98 | + </if> | |
| 99 | + <if test="payFee != null"> | |
| 100 | + pay_fee, | |
| 101 | + </if> | |
| 102 | + <if test="payStatus != null"> | |
| 103 | + pay_status, | |
| 104 | + </if> | |
| 105 | + <if test="payTime != null"> | |
| 106 | + pay_time, | |
| 107 | + </if> | |
| 108 | + <if test="channelId != null"> | |
| 109 | + channel_id, | |
| 110 | + </if> | |
| 111 | + <if test="cashierUrl != null"> | |
| 112 | + cashier_url, | |
| 113 | + </if> | |
| 114 | + <if test="paymentCallback != null"> | |
| 115 | + payment_callback, | |
| 116 | + </if> | |
| 117 | + <if test="version != null"> | |
| 118 | + version, | |
| 119 | + </if> | |
| 120 | + <if test="createdTime != null"> | |
| 121 | + created_time, | |
| 122 | + </if> | |
| 123 | + <if test="modifiedTime != null"> | |
| 124 | + modified_time, | |
| 125 | + </if> | |
| 126 | + </trim> | |
| 127 | + <trim prefix="values (" suffix=")" suffixOverrides=","> | |
| 128 | + <if test="id != null"> | |
| 129 | + #{id,jdbcType=BIGINT}, | |
| 130 | + </if> | |
| 131 | + <if test="payTradeNo != null"> | |
| 132 | + #{payTradeNo,jdbcType=VARCHAR}, | |
| 133 | + </if> | |
| 134 | + <if test="bizOrderId != null"> | |
| 135 | + #{bizOrderId,jdbcType=BIGINT}, | |
| 136 | + </if> | |
| 137 | + <if test="orderId != null"> | |
| 138 | + #{orderId,jdbcType=VARCHAR}, | |
| 139 | + </if> | |
| 140 | + <if test="tradeId != null"> | |
| 141 | + #{tradeId,jdbcType=VARCHAR}, | |
| 142 | + </if> | |
| 143 | + <if test="payPaymentId != null"> | |
| 144 | + #{payPaymentId,jdbcType=VARCHAR}, | |
| 145 | + </if> | |
| 146 | + <if test="mchId != null"> | |
| 147 | + #{mchId,jdbcType=VARCHAR}, | |
| 148 | + </if> | |
| 149 | + <if test="cardNo != null"> | |
| 150 | + #{cardNo,jdbcType=VARCHAR}, | |
| 151 | + </if> | |
| 152 | + <if test="username != null"> | |
| 153 | + #{username,jdbcType=VARCHAR}, | |
| 154 | + </if> | |
| 155 | + <if test="userId != null"> | |
| 156 | + #{userId,jdbcType=BIGINT}, | |
| 157 | + </if> | |
| 158 | + <if test="accountId != null"> | |
| 159 | + #{accountId,jdbcType=BIGINT}, | |
| 160 | + </if> | |
| 161 | + <if test="fundAccountId != null"> | |
| 162 | + #{fundAccountId,jdbcType=BIGINT}, | |
| 163 | + </if> | |
| 164 | + <if test="payFee != null"> | |
| 165 | + #{payFee,jdbcType=BIGINT}, | |
| 166 | + </if> | |
| 167 | + <if test="payStatus != null"> | |
| 168 | + #{payStatus,jdbcType=TINYINT}, | |
| 169 | + </if> | |
| 170 | + <if test="payTime != null"> | |
| 171 | + #{payTime,jdbcType=TIMESTAMP}, | |
| 172 | + </if> | |
| 173 | + <if test="channelId != null"> | |
| 174 | + #{channelId,jdbcType=TINYINT}, | |
| 175 | + </if> | |
| 176 | + <if test="cashierUrl != null"> | |
| 177 | + #{cashierUrl,jdbcType=VARCHAR}, | |
| 178 | + </if> | |
| 179 | + <if test="paymentCallback != null"> | |
| 180 | + #{paymentCallback,jdbcType=VARCHAR}, | |
| 181 | + </if> | |
| 182 | + <if test="version != null"> | |
| 183 | + #{version,jdbcType=INTEGER}, | |
| 184 | + </if> | |
| 185 | + <if test="createdTime != null"> | |
| 186 | + #{createdTime,jdbcType=TIMESTAMP}, | |
| 187 | + </if> | |
| 188 | + <if test="modifiedTime != null"> | |
| 189 | + #{modifiedTime,jdbcType=TIMESTAMP}, | |
| 190 | + </if> | |
| 191 | + </trim> | |
| 192 | + </insert> | |
| 193 | + <update id="updateByPrimaryKeySelective" parameterType="com.diligrp.cashier.mall.model.MallBizPayment"> | |
| 194 | + update mall_biz_payment | |
| 195 | + <set> | |
| 196 | + <if test="payTradeNo != null"> | |
| 197 | + pay_trade_no = #{payTradeNo,jdbcType=VARCHAR}, | |
| 198 | + </if> | |
| 199 | + <if test="bizOrderId != null"> | |
| 200 | + biz_order_id = #{bizOrderId,jdbcType=BIGINT}, | |
| 201 | + </if> | |
| 202 | + <if test="orderId != null"> | |
| 203 | + order_id = #{orderId,jdbcType=VARCHAR}, | |
| 204 | + </if> | |
| 205 | + <if test="tradeId != null"> | |
| 206 | + trade_id = #{tradeId,jdbcType=VARCHAR}, | |
| 207 | + </if> | |
| 208 | + <if test="payPaymentId != null"> | |
| 209 | + pay_payment_id = #{payPaymentId,jdbcType=VARCHAR}, | |
| 210 | + </if> | |
| 211 | + <if test="mchId != null"> | |
| 212 | + mch_id = #{mchId,jdbcType=VARCHAR}, | |
| 213 | + </if> | |
| 214 | + <if test="cardNo != null"> | |
| 215 | + card_no = #{cardNo,jdbcType=VARCHAR}, | |
| 216 | + </if> | |
| 217 | + <if test="username != null"> | |
| 218 | + username = #{username,jdbcType=VARCHAR}, | |
| 219 | + </if> | |
| 220 | + <if test="userId != null"> | |
| 221 | + user_id = #{userId,jdbcType=BIGINT}, | |
| 222 | + </if> | |
| 223 | + <if test="accountId != null"> | |
| 224 | + account_id = #{accountId,jdbcType=BIGINT}, | |
| 225 | + </if> | |
| 226 | + <if test="fundAccountId != null"> | |
| 227 | + fund_account_id = #{fundAccountId,jdbcType=BIGINT}, | |
| 228 | + </if> | |
| 229 | + <if test="payFee != null"> | |
| 230 | + pay_fee = #{payFee,jdbcType=BIGINT}, | |
| 231 | + </if> | |
| 232 | + <if test="payStatus != null"> | |
| 233 | + pay_status = #{payStatus,jdbcType=TINYINT}, | |
| 234 | + </if> | |
| 235 | + <if test="payTime != null"> | |
| 236 | + pay_time = #{payTime,jdbcType=TIMESTAMP}, | |
| 237 | + </if> | |
| 238 | + <if test="channelId != null"> | |
| 239 | + channel_id = #{channelId,jdbcType=TINYINT}, | |
| 240 | + </if> | |
| 241 | + <if test="cashierUrl != null"> | |
| 242 | + cashier_url = #{cashierUrl,jdbcType=VARCHAR}, | |
| 243 | + </if> | |
| 244 | + <if test="paymentCallback != null"> | |
| 245 | + payment_callback = #{paymentCallback,jdbcType=VARCHAR}, | |
| 246 | + </if> | |
| 247 | + <if test="version != null"> | |
| 248 | + version = #{version,jdbcType=INTEGER}, | |
| 249 | + </if> | |
| 250 | + <if test="createdTime != null"> | |
| 251 | + created_time = #{createdTime,jdbcType=TIMESTAMP}, | |
| 252 | + </if> | |
| 253 | + <if test="modifiedTime != null"> | |
| 254 | + modified_time = #{modifiedTime,jdbcType=TIMESTAMP}, | |
| 255 | + </if> | |
| 256 | + </set> | |
| 257 | + where id = #{id,jdbcType=BIGINT} | |
| 258 | + </update> | |
| 259 | + <update id="updateByPrimaryKey" parameterType="com.diligrp.cashier.mall.model.MallBizPayment"> | |
| 260 | + update mall_biz_payment | |
| 261 | + set pay_trade_no = #{payTradeNo,jdbcType=VARCHAR}, | |
| 262 | + biz_order_id = #{bizOrderId,jdbcType=BIGINT}, | |
| 263 | + order_id = #{orderId,jdbcType=VARCHAR}, | |
| 264 | + trade_id = #{tradeId,jdbcType=VARCHAR}, | |
| 265 | + pay_payment_id = #{payPaymentId,jdbcType=VARCHAR}, | |
| 266 | + mch_id = #{mchId,jdbcType=VARCHAR}, | |
| 267 | + card_no = #{cardNo,jdbcType=VARCHAR}, | |
| 268 | + username = #{username,jdbcType=VARCHAR}, | |
| 269 | + user_id = #{userId,jdbcType=BIGINT}, | |
| 270 | + account_id = #{accountId,jdbcType=BIGINT}, | |
| 271 | + fund_account_id = #{fundAccountId,jdbcType=BIGINT}, | |
| 272 | + pay_fee = #{payFee,jdbcType=BIGINT}, | |
| 273 | + pay_status = #{payStatus,jdbcType=TINYINT}, | |
| 274 | + pay_time = #{payTime,jdbcType=TIMESTAMP}, | |
| 275 | + channel_id = #{channelId,jdbcType=TINYINT}, | |
| 276 | + cashier_url = #{cashierUrl,jdbcType=VARCHAR}, | |
| 277 | + payment_callback = #{paymentCallback,jdbcType=VARCHAR}, | |
| 278 | + version = #{version,jdbcType=INTEGER}, | |
| 279 | + created_time = #{createdTime,jdbcType=TIMESTAMP}, | |
| 280 | + modified_time = #{modifiedTime,jdbcType=TIMESTAMP} | |
| 281 | + where id = #{id,jdbcType=BIGINT} | |
| 282 | + </update> | |
| 283 | +</mapper> | ... | ... |
cashier-mall/src/main/resources/com/diligrp/cashier/dao/mapper/MallBizRefundItemDao.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
| 3 | +<mapper namespace="com.diligrp.cashier.mall.dao.MallBizRefundItemDao"> | |
| 4 | + <resultMap id="BaseResultMap" type="com.diligrp.cashier.mall.model.MallBizRefundItem"> | |
| 5 | + <id column="id" jdbcType="BIGINT" property="id" /> | |
| 6 | + <result column="biz_refund_id" jdbcType="BIGINT" property="bizRefundId" /> | |
| 7 | + <result column="sub_order_id" jdbcType="BIGINT" property="subOrderId" /> | |
| 8 | + <result column="item_bn" jdbcType="VARCHAR" property="itemBn" /> | |
| 9 | + <result column="item_name" jdbcType="VARCHAR" property="itemName" /> | |
| 10 | + <result column="num" jdbcType="INTEGER" property="num" /> | |
| 11 | + <result column="refund_fee" jdbcType="BIGINT" property="refundFee" /> | |
| 12 | + </resultMap> | |
| 13 | + <sql id="Base_Column_List"> | |
| 14 | + id, biz_refund_id, sub_order_id, item_bn, item_name, num, refund_fee | |
| 15 | + </sql> | |
| 16 | + <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> | |
| 17 | + select | |
| 18 | + <include refid="Base_Column_List" /> | |
| 19 | + from mall_biz_refund_item | |
| 20 | + where id = #{id,jdbcType=BIGINT} | |
| 21 | + </select> | |
| 22 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> | |
| 23 | + delete from mall_biz_refund_item | |
| 24 | + where id = #{id,jdbcType=BIGINT} | |
| 25 | + </delete> | |
| 26 | + <insert id="insert" parameterType="com.diligrp.cashier.mall.model.MallBizRefundItem"> | |
| 27 | + insert into mall_biz_refund_item (id, biz_refund_id, sub_order_id, | |
| 28 | + item_bn, item_name, num, | |
| 29 | + refund_fee) | |
| 30 | + values (#{id,jdbcType=BIGINT}, #{bizRefundId,jdbcType=BIGINT}, #{subOrderId,jdbcType=BIGINT}, | |
| 31 | + #{itemBn,jdbcType=VARCHAR}, #{itemName,jdbcType=VARCHAR}, #{num,jdbcType=INTEGER}, | |
| 32 | + #{refundFee,jdbcType=BIGINT}) | |
| 33 | + </insert> | |
| 34 | + <insert id="insertSelective" parameterType="com.diligrp.cashier.mall.model.MallBizRefundItem"> | |
| 35 | + insert into mall_biz_refund_item | |
| 36 | + <trim prefix="(" suffix=")" suffixOverrides=","> | |
| 37 | + <if test="id != null"> | |
| 38 | + id, | |
| 39 | + </if> | |
| 40 | + <if test="bizRefundId != null"> | |
| 41 | + biz_refund_id, | |
| 42 | + </if> | |
| 43 | + <if test="subOrderId != null"> | |
| 44 | + sub_order_id, | |
| 45 | + </if> | |
| 46 | + <if test="itemBn != null"> | |
| 47 | + item_bn, | |
| 48 | + </if> | |
| 49 | + <if test="itemName != null"> | |
| 50 | + item_name, | |
| 51 | + </if> | |
| 52 | + <if test="num != null"> | |
| 53 | + num, | |
| 54 | + </if> | |
| 55 | + <if test="refundFee != null"> | |
| 56 | + refund_fee, | |
| 57 | + </if> | |
| 58 | + </trim> | |
| 59 | + <trim prefix="values (" suffix=")" suffixOverrides=","> | |
| 60 | + <if test="id != null"> | |
| 61 | + #{id,jdbcType=BIGINT}, | |
| 62 | + </if> | |
| 63 | + <if test="bizRefundId != null"> | |
| 64 | + #{bizRefundId,jdbcType=BIGINT}, | |
| 65 | + </if> | |
| 66 | + <if test="subOrderId != null"> | |
| 67 | + #{subOrderId,jdbcType=BIGINT}, | |
| 68 | + </if> | |
| 69 | + <if test="itemBn != null"> | |
| 70 | + #{itemBn,jdbcType=VARCHAR}, | |
| 71 | + </if> | |
| 72 | + <if test="itemName != null"> | |
| 73 | + #{itemName,jdbcType=VARCHAR}, | |
| 74 | + </if> | |
| 75 | + <if test="num != null"> | |
| 76 | + #{num,jdbcType=INTEGER}, | |
| 77 | + </if> | |
| 78 | + <if test="refundFee != null"> | |
| 79 | + #{refundFee,jdbcType=BIGINT}, | |
| 80 | + </if> | |
| 81 | + </trim> | |
| 82 | + </insert> | |
| 83 | + <update id="updateByPrimaryKeySelective" parameterType="com.diligrp.cashier.mall.model.MallBizRefundItem"> | |
| 84 | + update mall_biz_refund_item | |
| 85 | + <set> | |
| 86 | + <if test="bizRefundId != null"> | |
| 87 | + biz_refund_id = #{bizRefundId,jdbcType=BIGINT}, | |
| 88 | + </if> | |
| 89 | + <if test="subOrderId != null"> | |
| 90 | + sub_order_id = #{subOrderId,jdbcType=BIGINT}, | |
| 91 | + </if> | |
| 92 | + <if test="itemBn != null"> | |
| 93 | + item_bn = #{itemBn,jdbcType=VARCHAR}, | |
| 94 | + </if> | |
| 95 | + <if test="itemName != null"> | |
| 96 | + item_name = #{itemName,jdbcType=VARCHAR}, | |
| 97 | + </if> | |
| 98 | + <if test="num != null"> | |
| 99 | + num = #{num,jdbcType=INTEGER}, | |
| 100 | + </if> | |
| 101 | + <if test="refundFee != null"> | |
| 102 | + refund_fee = #{refundFee,jdbcType=BIGINT}, | |
| 103 | + </if> | |
| 104 | + </set> | |
| 105 | + where id = #{id,jdbcType=BIGINT} | |
| 106 | + </update> | |
| 107 | + <update id="updateByPrimaryKey" parameterType="com.diligrp.cashier.mall.model.MallBizRefundItem"> | |
| 108 | + update mall_biz_refund_item | |
| 109 | + set biz_refund_id = #{bizRefundId,jdbcType=BIGINT}, | |
| 110 | + sub_order_id = #{subOrderId,jdbcType=BIGINT}, | |
| 111 | + item_bn = #{itemBn,jdbcType=VARCHAR}, | |
| 112 | + item_name = #{itemName,jdbcType=VARCHAR}, | |
| 113 | + num = #{num,jdbcType=INTEGER}, | |
| 114 | + refund_fee = #{refundFee,jdbcType=BIGINT} | |
| 115 | + where id = #{id,jdbcType=BIGINT} | |
| 116 | + </update> | |
| 117 | +</mapper> | ... | ... |