Procházet zdrojové kódy

zyp --销售后台配置修改

zyp před 3 týdny
rodič
revize
57fc64a203

+ 12 - 8
fs-service-system/src/main/java/com/fs/company/mapper/CompanyConfigMapper.java

@@ -9,15 +9,15 @@ import java.util.List;
 
 /**
  * 参数配置Mapper接口
- * 
+ *
  * @author fs
  * @date 2021-05-25
  */
-public interface CompanyConfigMapper 
+public interface CompanyConfigMapper
 {
     /**
      * 查询参数配置
-     * 
+     *
      * @param configId 参数配置ID
      * @return 参数配置
      */
@@ -25,7 +25,7 @@ public interface CompanyConfigMapper
 
     /**
      * 查询参数配置列表
-     * 
+     *
      * @param companyConfig 参数配置
      * @return 参数配置集合
      */
@@ -33,7 +33,7 @@ public interface CompanyConfigMapper
 
     /**
      * 新增参数配置
-     * 
+     *
      * @param companyConfig 参数配置
      * @return 结果
      */
@@ -41,7 +41,7 @@ public interface CompanyConfigMapper
 
     /**
      * 修改参数配置
-     * 
+     *
      * @param companyConfig 参数配置
      * @return 结果
      */
@@ -49,7 +49,7 @@ public interface CompanyConfigMapper
 
     /**
      * 删除参数配置
-     * 
+     *
      * @param configId 参数配置ID
      * @return 结果
      */
@@ -57,7 +57,7 @@ public interface CompanyConfigMapper
 
     /**
      * 批量删除参数配置
-     * 
+     *
      * @param configIds 需要删除的数据ID
      * @return 结果
      */
@@ -68,4 +68,8 @@ public interface CompanyConfigMapper
     String selectConfigByKey(String key);
     @Select("select * from company_config where config_key=#{key} limit 1")
     SysConfig selectConfig(String key);
+
+
+    @Select("select config_value from company_config where company_id=#{companyId} and config_key='redPacket:config' ")
+    String selectRedPacketConfigByKey(Long companyId);
 }

+ 2 - 0
fs-service-system/src/main/java/com/fs/course/config/CourseConfig.java

@@ -17,4 +17,6 @@ public class CourseConfig implements Serializable {
     private String courseDomainName;//链接域名
     private Integer rewardType; // 奖励类型 1红包 2积分
 
+    private Integer rewardType;//奖励类型
+
 }

+ 0 - 18
fs-user-app/src/main/java/com/fs/app/controller/CourseController.java

@@ -465,24 +465,6 @@ public class CourseController extends  AppBaseController{
     }
 
 
-//    @Login
-//    @ApiOperation("H5看课绑定手机号")
-//    @PostMapping("/bindUserPhone")
-//    public R bindUserPhone(@RequestBody FsCourseH5PhoneParam param) {
-//        Long userId = Long.parseLong(getUserId());
-//        param.setUserId(userId);
-//        return courseVideoService.bindUserPhone(param);
-//    }
-
-//    @GetMapping("/genOrderSn")
-//    public R genOrderSn() {
-//        String orderCode = OrderCodeUtils.getOrderSn();
-//        System.out.println(orderCode);
-//        redisCache.setCacheObject("orderCode"+orderCode,orderCode);
-//        return R.ok(orderCode);
-//    }
-
-
     @Login
     @PostMapping("/getErrMsg")
     public void getErrMsg(@RequestParam("msg") String msg) {