|
|
@@ -30,6 +30,10 @@ import com.fs.hisStore.param.FsStorePaymentParam;
|
|
|
import com.fs.hisStore.service.IFsStoreOrderScrmService;
|
|
|
import com.fs.hisStore.service.IFsStorePaymentScrmService;
|
|
|
import com.fs.hisStore.vo.FsStorePaymentVO;
|
|
|
+import com.fs.hisStore.vo.FsMiniProgramOptionVO;
|
|
|
+import com.fs.course.service.IFsCoursePlaySourceConfigService;
|
|
|
+import com.fs.course.domain.FsCoursePlaySourceConfig;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.fs.system.service.ISysConfigService;
|
|
|
import com.ijpay.alipay.AliPayApi;
|
|
|
import com.ijpay.alipay.AliPayApiConfig;
|
|
|
@@ -74,6 +78,9 @@ public class FsStorePaymentScrmController extends BaseController
|
|
|
private CloudHostProper cloudHostProper;
|
|
|
@Autowired
|
|
|
private ISysConfigService configService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private IFsCoursePlaySourceConfigService coursePlaySourceConfigService;
|
|
|
/**
|
|
|
* 查询支付明细列表
|
|
|
*/
|
|
|
@@ -104,6 +111,40 @@ public class FsStorePaymentScrmController extends BaseController
|
|
|
return dataTable;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 查询小程序列表(用于下拉选择)
|
|
|
+ */
|
|
|
+ @ApiOperation("查询小程序列表")
|
|
|
+ @GetMapping("/getMiniProgramList")
|
|
|
+ public AjaxResult getMiniProgramList()
|
|
|
+ {
|
|
|
+ try {
|
|
|
+ // 查询所有未删除的小程序配置(排除公众号)
|
|
|
+ QueryWrapper<FsCoursePlaySourceConfig> queryWrapper = new QueryWrapper<>();
|
|
|
+ queryWrapper.eq("is_del", 0) // 未删除
|
|
|
+ .ne("type", 2) // 不是公众号
|
|
|
+ .orderByDesc("create_time");
|
|
|
+
|
|
|
+ List<FsCoursePlaySourceConfig> configList = coursePlaySourceConfigService.list(queryWrapper);
|
|
|
+
|
|
|
+ List<FsMiniProgramOptionVO> optionList = new java.util.ArrayList<>();
|
|
|
+ for (FsCoursePlaySourceConfig config : configList) {
|
|
|
+ FsMiniProgramOptionVO vo = new FsMiniProgramOptionVO();
|
|
|
+ vo.setId(config.getId());
|
|
|
+ vo.setName(config.getName());
|
|
|
+ vo.setAppid(config.getAppid());
|
|
|
+ vo.setType(config.getType());
|
|
|
+ optionList.add(vo);
|
|
|
+ }
|
|
|
+
|
|
|
+ logger.info("查询小程序列表成功,数量:{}", optionList.size());
|
|
|
+ return AjaxResult.success(optionList);
|
|
|
+ } catch (Exception e) {
|
|
|
+ logger.error("查询小程序列表失败", e);
|
|
|
+ return AjaxResult.error("查询小程序列表失败:" + e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 导出支付明细列表
|
|
|
*/
|