mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-29 18:51:53 +08:00
Merge remote-tracking branch 'origin/master' into feature/vue3
This commit is contained in:
commit
61a6039fce
@ -30,6 +30,7 @@ public interface TradeOrderConvert {
|
|||||||
TradeOrderConvert INSTANCE = Mappers.getMapper(TradeOrderConvert.class);
|
TradeOrderConvert INSTANCE = Mappers.getMapper(TradeOrderConvert.class);
|
||||||
|
|
||||||
@Mappings({
|
@Mappings({
|
||||||
|
@Mapping(target = "id", ignore = true),
|
||||||
@Mapping(source = "createReqVO.couponId", target = "couponId"),
|
@Mapping(source = "createReqVO.couponId", target = "couponId"),
|
||||||
@Mapping(target = "remark", ignore = true),
|
@Mapping(target = "remark", ignore = true),
|
||||||
@Mapping(source = "createReqVO.remark", target = "userRemark"),
|
@Mapping(source = "createReqVO.remark", target = "userRemark"),
|
||||||
|
@ -156,7 +156,7 @@ public class TradeOrderServiceImpl implements TradeOrderService {
|
|||||||
* @return 收件地址
|
* @return 收件地址
|
||||||
*/
|
*/
|
||||||
private AddressRespDTO validateAddress(Long userId, Long addressId) {
|
private AddressRespDTO validateAddress(Long userId, Long addressId) {
|
||||||
AddressRespDTO address = addressApi.getAddress(userId, addressId);
|
AddressRespDTO address = addressApi.getAddress(addressId, userId);
|
||||||
if (Objects.isNull(address)) {
|
if (Objects.isNull(address)) {
|
||||||
throw exception(ErrorCodeConstants.ORDER_CREATE_ADDRESS_NOT_FOUND);
|
throw exception(ErrorCodeConstants.ORDER_CREATE_ADDRESS_NOT_FOUND);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user