chenjiahe
2024-01-19 d83d729f80576bb4c7e73bcfff5c403a23f23b82
phi_platform_user/src/main/java/com/hx/phip/util/api/OrderCreateUtil.java
@@ -640,10 +640,10 @@
        //荣爷说项目疗程次数为空值,默认为1
        //设置一级子订单单次疗程数量,该值获取的是项目的疗程次数(为了计算订单的总疗程次数)
        if(project.getIsExecutable()!=null && project.getIsExecutable()==BaseEntity.YES){
            Integer useredTotal=project==null?0:project.getTreatmentItemsNum()==null?1:project.getTreatmentItemsNum()==0?1:project.getTreatmentItemsNum();
            Integer useredTotal= project.getTreatmentItemsNum() == null ?1: project.getTreatmentItemsNum() == 0 ?1:project.getTreatmentItemsNum();
            vo.setSingle(useredTotal);//订单单次疗程数量
        }else if(project.getIsExecutable()!=null && project.getIsExecutable()==BaseEntity.NO){
            Integer useredTotal=project==null?0:project.getTreatmentItemsNum()==null?0:project.getTreatmentItemsNum();
            Integer useredTotal= project.getTreatmentItemsNum() == null ?0:project.getTreatmentItemsNum();
            vo.setSingle(useredTotal);//订单单次疗程数量
        }else{
            vo.setSingle(0);//订单单次疗程数量