| | |
| | | //荣爷说项目疗程次数为空值,默认为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);//订单单次疗程数量 |