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);
|
||||
|
||||
@Mappings({
|
||||
@Mapping(target = "id", ignore = true),
|
||||
@Mapping(source = "createReqVO.couponId", target = "couponId"),
|
||||
@Mapping(target = "remark", ignore = true),
|
||||
@Mapping(source = "createReqVO.remark", target = "userRemark"),
|
||||
|
@ -156,7 +156,7 @@ public class TradeOrderServiceImpl implements TradeOrderService {
|
||||
* @return 收件地址
|
||||
*/
|
||||
private AddressRespDTO validateAddress(Long userId, Long addressId) {
|
||||
AddressRespDTO address = addressApi.getAddress(userId, addressId);
|
||||
AddressRespDTO address = addressApi.getAddress(addressId, userId);
|
||||
if (Objects.isNull(address)) {
|
||||
throw exception(ErrorCodeConstants.ORDER_CREATE_ADDRESS_NOT_FOUND);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user