|
|
@@ -23,6 +23,8 @@ import com.fs.his.param.PrescribePhoneParam;
|
|
|
import com.fs.his.service.IFsDoctorPatientService;
|
|
|
import com.fs.his.service.IFsPrescribeDataScrmService;
|
|
|
import com.fs.his.service.IFsPrescribeService;
|
|
|
+import com.fs.his.service.IFsShareMaterialService;
|
|
|
+import com.fs.his.vo.QrcRedPackageConfigVO;
|
|
|
import com.fs.hisStore.dto.CreatePhoneQRCodeDTO;
|
|
|
import com.fs.hisStore.param.FsCompanyCustomerOrderParam;
|
|
|
import com.fs.hisStore.service.IFsUserInformationCollectionService;
|
|
|
@@ -87,10 +89,16 @@ public class FsCompanyCustomerController extends BaseController {
|
|
|
@Autowired
|
|
|
private ISysConfigService sysConfigService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IFsShareMaterialService fsShareMaterialService;
|
|
|
+
|
|
|
//商城小程序appId配置常量
|
|
|
private static final String APP_ID_CONFIG_KEY = "appStore.appId.config";
|
|
|
+
|
|
|
private static final String DEFAULT_APP_ID = "wx50bcb040b4963a7e";
|
|
|
|
|
|
+ private static final String QRC_RED_PACKAGE_CONFIG_KEY = "qrcRedPackage.config";
|
|
|
+
|
|
|
/**
|
|
|
* 查询客户列表
|
|
|
*/
|
|
|
@@ -493,6 +501,18 @@ public class FsCompanyCustomerController extends BaseController {
|
|
|
return fsCompanyCustomerService.createPhoneQRCode(qrCodeDTO,companyUserId, appId);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取待选择的素材列表
|
|
|
+ * */
|
|
|
+ @GetMapping("/getShareMaterialList")
|
|
|
+ public AjaxResult getShareMaterialList() {
|
|
|
+ QrcRedPackageConfigVO config = sysConfigService.getConfig(QRC_RED_PACKAGE_CONFIG_KEY, QrcRedPackageConfigVO.class);
|
|
|
+ if (config==null){
|
|
|
+ return AjaxResult.error("未找到分享收集手机号的二维码配置");
|
|
|
+ }
|
|
|
+ return AjaxResult.success(fsShareMaterialService.getShareMaterialListByType(config.getType()));
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 获取分享素材小程序码
|
|
|
* @param shareMaterialId 分享素材ID
|