diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/bo/LearnNowPayLaterServiceOrderBo.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/bo/LearnNowPayLaterServiceOrderBo.java index f811093..dc874c1 100644 --- a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/bo/LearnNowPayLaterServiceOrderBo.java +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/bo/LearnNowPayLaterServiceOrderBo.java @@ -51,8 +51,6 @@ public class LearnNowPayLaterServiceOrderBo { @ApiModelProperty(value = "卡号",required = true) private String cardNo; - - /** * 课程信息 */ @@ -67,11 +65,4 @@ public class LearnNowPayLaterServiceOrderBo { @ApiModelProperty(value = "核销金额",required = true) private Integer price; - /** - * 是否是旧卡 - */ - @ApiModelProperty(value = "是否是旧卡") - private Boolean isOldCard; - - } diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/bo/LearnNowPayLaterStopUserSignPlansBo.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/bo/LearnNowPayLaterStopUserSignPlansBo.java index 6e10eb3..8170ef5 100644 --- a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/bo/LearnNowPayLaterStopUserSignPlansBo.java +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/bo/LearnNowPayLaterStopUserSignPlansBo.java @@ -4,6 +4,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import javax.validation.constraints.NotBlank; + /** * @author DB * @version 1.0.0 @@ -16,11 +18,14 @@ public class LearnNowPayLaterStopUserSignPlansBo { /** * 签约计划id */ - @ApiModelProperty(value = "签约计划id") + @NotBlank(message = "签约计划id不能为空") + @ApiModelProperty(value = "签约计划id",required = true) private String signPlanId; /** * 取消理由 */ + @NotBlank(message = "取消理由不能为空") + @ApiModelProperty(value = "取消理由",required = true) private String stopReason; } diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/mini/MiniEasyLearnController.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/mini/MiniEasyLearnController.java index 14f4a93..1743b56 100644 --- a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/mini/MiniEasyLearnController.java +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/controller/mini/MiniEasyLearnController.java @@ -84,7 +84,7 @@ public class MiniEasyLearnController { * @return R */ @ApiOperation("取消用户签约计划") - @PostMapping("/stopUserSignPlans/{signPlanId}") + @PostMapping("/stopUserSignPlans") public R stopUserSignPlans(@RequestBody @Validated LearnNowPayLaterStopUserSignPlansBo bo){ easyLearnOrderService.stopUserSignPlans(bo); return R.ok(); diff --git a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/EasyLearnOrderServiceImpl.java b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/EasyLearnOrderServiceImpl.java index b8252e9..9da9d65 100644 --- a/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/EasyLearnOrderServiceImpl.java +++ b/Cpop-Jambox/src/main/java/com/cpop/jambox/business/service/impl/EasyLearnOrderServiceImpl.java @@ -17,15 +17,9 @@ import com.cpop.core.utils.SpringUtils; import com.cpop.core.utils.sql.SqlUtils; import com.cpop.jambox.business.bo.*; import com.cpop.jambox.business.dto.EasyLearnPageDto; -import com.cpop.jambox.business.entity.BrandExtend; -import com.cpop.jambox.business.entity.EasyLearnOrder; -import com.cpop.jambox.business.entity.EasyLearnOrderDetail; -import com.cpop.jambox.business.entity.StoreExtend; +import com.cpop.jambox.business.entity.*; import com.cpop.jambox.business.mapper.EasyLearnOrderMapper; -import com.cpop.jambox.business.service.BrandExtendService; -import com.cpop.jambox.business.service.EasyLearnOrderDetailService; -import com.cpop.jambox.business.service.EasyLearnOrderService; -import com.cpop.jambox.business.service.StoreExtendService; +import com.cpop.jambox.business.service.*; import com.cpop.jambox.business.vo.EasyLearnPageVo; import com.cpop.jambox.framework.constant.JamboxCloudUrl; import com.cpop.jambox.framework.constant.JamboxRedisConstant; @@ -73,6 +67,7 @@ import java.util.concurrent.locks.Lock; import static com.cpop.jambox.business.entity.table.BrandExtendTableDef.BRAND_EXTEND; import static com.cpop.jambox.business.entity.table.EasyLearnOrderDetailTableDef.EASY_LEARN_ORDER_DETAIL; +import static com.cpop.jambox.business.entity.table.EasyLearnOrderExtendTableDef.EASY_LEARN_ORDER_EXTEND; import static com.cpop.jambox.business.entity.table.EasyLearnOrderTableDef.EASY_LEARN_ORDER; import static com.cpop.jambox.business.entity.table.StoreExtendTableDef.STORE_EXTEND; import static com.cpop.system.business.entity.table.StoreTableDef.STORE; @@ -774,6 +769,15 @@ public class EasyLearnOrderServiceImpl extends ServiceImpl= Math.ceil(1 / OrderSource.EASY_LEARN.getRate())) { //设置子商户 WxPayService wxPayService = wxPayHandler.getWxPayService(null, subMchId); diff --git a/Cpop-Oam/Cpop-Oam-Web/src/main/resources/application-prod.yml b/Cpop-Oam/Cpop-Oam-Web/src/main/resources/application-prod.yml index 0902d5c..f4364fc 100644 --- a/Cpop-Oam/Cpop-Oam-Web/src/main/resources/application-prod.yml +++ b/Cpop-Oam/Cpop-Oam-Web/src/main/resources/application-prod.yml @@ -56,7 +56,7 @@ mybatis-flex: configuration: log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl datasource: - mall: + oam: url: jdbc:mysql://sh-cynosdbmysql-grp-fggo83js.sql.tencentcdb.com:20965/cpop_union?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: root password: Customer0401 diff --git a/Cpop-Oam/Cpop-Oam-Web/src/main/resources/application-test.yml b/Cpop-Oam/Cpop-Oam-Web/src/main/resources/application-test.yml index d222961..fa09f93 100644 --- a/Cpop-Oam/Cpop-Oam-Web/src/main/resources/application-test.yml +++ b/Cpop-Oam/Cpop-Oam-Web/src/main/resources/application-test.yml @@ -56,7 +56,7 @@ mybatis-flex: configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl datasource: - mall: + oam: url: jdbc:mysql://sh-cynosdbmysql-grp-fggo83js.sql.tencentcdb.com:20965/cpop_test?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: root password: Customer0401