(1)、处方记录页面
一、患者端获取患者处方列表页
患者端获取患者处方列表页
service : ‘eh.recipeListService’,
method : ‘findRecipesForPatientAndTabStatusNew’
二、获取配置中心的配置,获取支付配置,配置项的key
service : ‘eh.configurationCenterUtils’,
method : ‘getConfiguration’
(2)、处方详情页面
一、获取处方详情
service : ‘ ‘eh.recipeService’,
method : ‘’getPatientRecipeById’
二、获取处方字段配置信息
service : ‘’eh.recipeService’,
method : ‘ ‘queryRecipeLabelById’
报错信息
java.lang.NoSuchMethodException: com.ngari.recipe.dto.RecipeInfoDTO.getRecipeDetail()
问题:想调用service类中的私有方法时, Method target=clz.getMethod(“say”, String.class);用Class的getMethod报错java.lang.NoSuchMethodException。
解决方案:查了下Class的文档,该类下原来有两个方法:getMethod,getDeclaredMethod。看了下说明大概的意思就是getMethod只能调用public声明的方法,而getDeclaredMethod基本可以调用任何类型声明的方法
//忽略访问权限修饰符,获取方法
Method method = this.getClass().getDeclaredMethod(methedname, HttpServletRequest.class, HttpServletResponse.class);
//暴力放射
method.setAccessible(true);
method.invoke(this,req,resp);
记录:以后用放射多用getDeclaredMethod,尽量少用getMethod。
(3)、点击配送到家,选择配送方式页面
一、获取配送方式
service : ‘eh.purchaseService’,
method : ‘filterSupportDepList
(4)、选择完配送方式,跳订单确认页面
一、.判断是否是卫宁付,原来的 机构配置-电子处方中的配送到家-处方支付类型配置项 改为 运营平台-支付管理-支付设置管理-处方支付设置里面药企的支付配置项
service: ‘eh.payService’,
method: ‘checkIsWnPayChannel’
二、根据userId 查询用户收货地址列表
service: ‘mi.addressService’,
method: ‘findByUserId’
三、 获取购药方式配置文案
service: ‘eh.recipeService’,
method: ‘getGiveModeTextByKey’
四、优惠卷信息
service: ‘eh.couponService’,
method: ‘getBusCouponsForRecipe’
五、批量获取运营配置信息
service: ‘eh.configurationCenterUtils’,
method: ‘findConfigurations’
六、获取药企信息:期望配送时间; 是否支持省医保等
service: ‘eh.takeDrugService’,
method: ‘findByEnterpriseId’
七、获取处方信息
service: ‘eh.recipeService’,
method: ‘findPatientRecipesByIds’
八、获得订单信息
service: ‘eh.payService’,
method: ‘findConfirmOrderInfoExt’
(5).地址维护
1、根据userId 查询用户收货地址列表
service: ‘mi.addressService’,
method: ‘findByUserId’
2、 根据userId 删除默认地址、设置默认地址 修改地址
service: ‘basic.addressService’,
method: [‘deleteUserAddressByAddressId’, ‘addUserAddress’, ‘updateUserAddress’]