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 da22a3e7..bc65544c 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 @@ -116,6 +116,7 @@ public class PropCouponSendCmdExe { recordDO.setPropIcon(propCoupon.getPropIcon()); recordDO.setPropName(propCoupon.getPropName()); recordDO.setValidDays(propCoupon.getValidDays()); + recordDO.setPropDays(propCoupon.getPropDays()); recordDO.setActionType(2); // 2-赠送 recordDO.setReceiverId(receiverId); recordDO.setRemark("用户赠送道具券"); 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 db47404b..db7dd94b 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 @@ -288,6 +288,7 @@ public class PropCouponUseCmdExe { recordDO.setPropIcon(propCoupon.getPropIcon()); recordDO.setPropName(propCoupon.getPropName()); recordDO.setValidDays(propCoupon.getValidDays()); + recordDO.setPropDays(propCoupon.getPropDays()); recordDO.setActionType(1); // 1-使用 recordDO.setRemark("用户使用道具券"); recordDO.setCreateTime(LocalDateTime.now()); 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 6bbe2adc..5ca57612 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 @@ -39,6 +39,7 @@ public class PropCouponConvertor { co.setPropName(propCoupon.getPropName()); co.setPropIcon(propCoupon.getPropIcon()); co.setValidDays(propCoupon.getValidDays()); + co.setPropDays(propCoupon.getPropDays()); co.setStatus(propCoupon.getStatus().getCode()); co.setStatusName(propCoupon.getStatus().getDesc()); co.setSource(propCoupon.getSource().getCode()); @@ -75,6 +76,7 @@ public class PropCouponConvertor { co.setPropName(propCouponDO.getPropName()); co.setPropIcon(propCouponDO.getPropIcon()); co.setValidDays(propCouponDO.getValidDays()); + co.setPropDays(propCouponDO.getPropDays()); co.setStatus(propCouponDO.getStatus()); PropCouponStatus status = PropCouponStatus.getByCode(propCouponDO.getStatus()); @@ -118,6 +120,7 @@ public class PropCouponConvertor { co.setPropIcon(recordDO.getPropIcon()); co.setPropName(recordDO.getPropName()); co.setValidDays(recordDO.getValidDays()); + co.setPropDays(recordDO.getPropDays()); co.setActionType(recordDO.getActionType()); // 操作类型名称 diff --git a/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/dto/clientobject/PropCouponCO.java b/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/dto/clientobject/PropCouponCO.java index fb6977bd..247ccaa9 100644 --- a/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/dto/clientobject/PropCouponCO.java +++ b/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/dto/clientobject/PropCouponCO.java @@ -55,6 +55,11 @@ public class PropCouponCO { */ private Integer validDays; + /** + * 道具时长 + */ + private Integer propDays; + /** * 券状态(0未使用 1已使用 2已过期 3已赠送) */ 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 ffe673d3..5b27bd86 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 @@ -56,6 +56,11 @@ public class PropCouponRecordCO { */ private Integer validDays; + /** + * 道具时长 + */ + private Integer propDays; + /** * 操作类型(1使用 2赠送) */ 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 f5ecb0d4..1c03c610 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 @@ -58,6 +58,11 @@ public class PropCouponUseRecordDO { */ private Integer validDays; + /** + * 道具天数 + */ + private Integer propDays; + /** * 操作类型(1使用 2赠送) */