|
@@ -23,11 +23,12 @@ import com.fs.company.param.CompanyLiveShowParam;
|
|
|
import com.fs.company.param.CompanyParam;
|
|
import com.fs.company.param.CompanyParam;
|
|
|
import com.fs.company.service.*;
|
|
import com.fs.company.service.*;
|
|
|
import com.fs.company.vo.*;
|
|
import com.fs.company.vo.*;
|
|
|
|
|
+import com.fs.course.config.AppConfig;
|
|
|
import com.fs.course.config.CourseConfig;
|
|
import com.fs.course.config.CourseConfig;
|
|
|
import com.fs.course.config.RedPacketConfig;
|
|
import com.fs.course.config.RedPacketConfig;
|
|
|
import com.fs.course.domain.FsCourseRedPacketLog;
|
|
import com.fs.course.domain.FsCourseRedPacketLog;
|
|
|
import com.fs.course.mapper.FsCourseRedPacketLogMapper;
|
|
import com.fs.course.mapper.FsCourseRedPacketLogMapper;
|
|
|
-import com.fs.course.service.IFsCourseRedPacketLogService;
|
|
|
|
|
|
|
+import com.fs.his.config.AppRedPacketConfig;
|
|
|
import com.fs.his.config.StoreConfig;
|
|
import com.fs.his.config.StoreConfig;
|
|
|
import com.fs.his.domain.FsInquiryOrder;
|
|
import com.fs.his.domain.FsInquiryOrder;
|
|
|
import com.fs.his.domain.FsStoreOrder;
|
|
import com.fs.his.domain.FsStoreOrder;
|
|
@@ -275,7 +276,7 @@ public class CompanyServiceImpl implements ICompanyService
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public R checkMchTransferStatusByBatchID(String batchId, Long companyId) {
|
|
|
|
|
|
|
+ public R checkMchTransferStatusByBatchID(String batchId, Long companyId, String appId) {
|
|
|
// 获取配置信息
|
|
// 获取配置信息
|
|
|
CourseConfig courseConfig = JSONUtil.toBean(configService.selectConfigByKey("course.config"), CourseConfig.class);
|
|
CourseConfig courseConfig = JSONUtil.toBean(configService.selectConfigByKey("course.config"), CourseConfig.class);
|
|
|
|
|
|
|
@@ -301,7 +302,18 @@ public class CompanyServiceImpl implements ICompanyService
|
|
|
|
|
|
|
|
//创建微信订单
|
|
//创建微信订单
|
|
|
WxPayConfig payConfig = new WxPayConfig();
|
|
WxPayConfig payConfig = new WxPayConfig();
|
|
|
- BeanUtils.copyProperties(config,payConfig);
|
|
|
|
|
|
|
+ // 如果是应用app
|
|
|
|
|
+ String appJson = configService.selectConfigByKey("app.config");
|
|
|
|
|
+ AppConfig app = JSONUtil.toBean(appJson, AppConfig.class);
|
|
|
|
|
+ if(StringUtils.equals(app.getAppId(),appId)){
|
|
|
|
|
+ json = configService.selectConfigByKey("his.AppRedPacket");
|
|
|
|
|
+ AppRedPacketConfig appRedPacketConfig = JSONUtil.toBean(json, AppRedPacketConfig.class);
|
|
|
|
|
+ BeanUtils.copyProperties(appRedPacketConfig,payConfig);
|
|
|
|
|
+ }else {
|
|
|
|
|
+ BeanUtils.copyProperties(config,payConfig);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
WxPayService wxPayService = new WxPayServiceImpl();
|
|
WxPayService wxPayService = new WxPayServiceImpl();
|
|
|
wxPayService.setConfig(payConfig);
|
|
wxPayService.setConfig(payConfig);
|
|
|
TransferService transferService=wxPayService.getTransferService();
|
|
TransferService transferService=wxPayService.getTransferService();
|
|
@@ -1890,7 +1902,7 @@ public class CompanyServiceImpl implements ICompanyService
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if(!StringUtils.isEmpty(redLogs.getBatchId())){
|
|
if(!StringUtils.isEmpty(redLogs.getBatchId())){
|
|
|
- R result=checkMchTransferStatusByBatchID(redLogs.getBatchId(),redLogs.getCompanyId());
|
|
|
|
|
|
|
+ R result=checkMchTransferStatusByBatchID(redLogs.getBatchId(),redLogs.getCompanyId(),redLogs.getAppId());
|
|
|
if("200".equals(String.valueOf(result.get("code")))){
|
|
if("200".equals(String.valueOf(result.get("code")))){
|
|
|
FsCourseRedPacketLog update = new FsCourseRedPacketLog();
|
|
FsCourseRedPacketLog update = new FsCourseRedPacketLog();
|
|
|
update.setUpdateTime(new Date());
|
|
update.setUpdateTime(new Date());
|