diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/propcoupon/PropCouponSendCmdExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/propcoupon/PropCouponSendCmdExe.java index d0d6d058..da22a3e7 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/propcoupon/PropCouponSendCmdExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/propcoupon/PropCouponSendCmdExe.java @@ -113,6 +113,7 @@ public class PropCouponSendCmdExe { recordDO.setUserId(senderId); recordDO.setCouponType(propCoupon.getCouponType().getCode()); recordDO.setPropId(propCoupon.getPropId()); + recordDO.setPropIcon(propCoupon.getPropIcon()); recordDO.setPropName(propCoupon.getPropName()); recordDO.setValidDays(propCoupon.getValidDays()); recordDO.setActionType(2); // 2-赠送 diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/propcoupon/PropCouponUseCmdExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/propcoupon/PropCouponUseCmdExe.java index 2e5a1ec4..2f92d801 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/propcoupon/PropCouponUseCmdExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/propcoupon/PropCouponUseCmdExe.java @@ -277,6 +277,7 @@ public class PropCouponUseCmdExe { recordDO.setUserId(userId); recordDO.setCouponType(propCoupon.getCouponType().getCode()); recordDO.setPropId(propCoupon.getPropId()); + recordDO.setPropIcon(propCoupon.getPropIcon()); recordDO.setPropName(propCoupon.getPropName()); recordDO.setValidDays(propCoupon.getValidDays()); recordDO.setActionType(1); // 1-使用 diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/convertor/PropCouponConvertor.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/convertor/PropCouponConvertor.java index 1c6e1d9d..41bac69f 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/convertor/PropCouponConvertor.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/convertor/PropCouponConvertor.java @@ -33,6 +33,7 @@ public class PropCouponConvertor { co.setCouponTypeName(propCoupon.getCouponType().getDesc()); co.setPropId(propCoupon.getPropId()); co.setPropName(propCoupon.getPropName()); + co.setPropIcon(propCoupon.getPropIcon()); co.setValidDays(propCoupon.getValidDays()); co.setStatus(propCoupon.getStatus().getCode()); co.setStatusName(propCoupon.getStatus().getDesc()); @@ -108,6 +109,7 @@ public class PropCouponConvertor { } co.setPropId(recordDO.getPropId()); + co.setPropIcon(recordDO.getPropIcon()); co.setPropName(recordDO.getPropName()); co.setValidDays(recordDO.getValidDays()); co.setActionType(recordDO.getActionType()); diff --git a/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/dto/clientobject/PropCouponRecordCO.java b/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/dto/clientobject/PropCouponRecordCO.java index 3354fc32..8668550b 100644 --- a/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/dto/clientobject/PropCouponRecordCO.java +++ b/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/dto/clientobject/PropCouponRecordCO.java @@ -40,6 +40,12 @@ public class PropCouponRecordCO { */ private Long propId; + + /** + * 道具图标 + */ + private String propIcon; + /** * 道具名称 */ diff --git a/rc-service/rc-service-other/other-domain/src/main/java/com/red/circle/other/domain/propcoupon/PropCoupon.java b/rc-service/rc-service-other/other-domain/src/main/java/com/red/circle/other/domain/propcoupon/PropCoupon.java index 9f4b1627..0bfc7075 100644 --- a/rc-service/rc-service-other/other-domain/src/main/java/com/red/circle/other/domain/propcoupon/PropCoupon.java +++ b/rc-service/rc-service-other/other-domain/src/main/java/com/red/circle/other/domain/propcoupon/PropCoupon.java @@ -38,6 +38,12 @@ public class PropCoupon { */ private Long propId; + + /** + * 道具图标 + */ + private String propIcon; + /** * 道具名称 */ diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/entity/props/PropCouponUseRecordDO.java b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/entity/props/PropCouponUseRecordDO.java index 1a82850c..f5ecb0d4 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/entity/props/PropCouponUseRecordDO.java +++ b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/entity/props/PropCouponUseRecordDO.java @@ -44,6 +44,11 @@ public class PropCouponUseRecordDO { private Long propId; /** + * 道具图标 + */ + private String propIcon; + + /** * 道具名称 */ private String propName; diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/gateway/PropCouponGatewayImpl.java b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/gateway/PropCouponGatewayImpl.java index c9494b5d..95f5d395 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/gateway/PropCouponGatewayImpl.java +++ b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/gateway/PropCouponGatewayImpl.java @@ -134,6 +134,7 @@ public class PropCouponGatewayImpl implements PropCouponGateway { propCoupon.setUserId(propCouponDO.getUserId()); propCoupon.setCouponType(PropCouponType.getByCode(propCouponDO.getCouponType())); propCoupon.setPropId(propCouponDO.getPropId()); + propCoupon.setPropIcon(propCouponDO.getPropIcon()); propCoupon.setPropName(propCouponDO.getPropName()); propCoupon.setValidDays(propCouponDO.getValidDays()); propCoupon.setStatus(PropCouponStatus.getByCode(propCouponDO.getStatus()));