Merge remote-tracking branch 'origin/master' into feature/vue3

This commit is contained in:
xingyu 2022-11-23 22:55:15 +08:00
commit 61a6039fce
2 changed files with 2 additions and 1 deletions

View File

@ -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"),

View File

@ -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);
}