|  | @@ -157,13 +157,13 @@ public class PrescribeController extends  AppBaseController {
 | 
											
												
													
														|  |          BeanUtils.copyProperties(param,doctorPrescribe);
 |  |          BeanUtils.copyProperties(param,doctorPrescribe);
 | 
											
												
													
														|  |          doctorPrescribe.setDoctorId(Long.parseLong(getDoctorId()));
 |  |          doctorPrescribe.setDoctorId(Long.parseLong(getDoctorId()));
 | 
											
												
													
														|  |          doctorPrescribeService.insertFsDoctorPrescribe(doctorPrescribe);
 |  |          doctorPrescribeService.insertFsDoctorPrescribe(doctorPrescribe);
 | 
											
												
													
														|  | -        HashSet<Long> set = new HashSet<>();
 |  | 
 | 
											
												
													
														|  | 
 |  | +//        HashSet<Long> set = new HashSet<>();
 | 
											
												
													
														|  |          List<FsDoctorPrescribeDrug> drugs = param.getDrugs();
 |  |          List<FsDoctorPrescribeDrug> drugs = param.getDrugs();
 | 
											
												
													
														|  | -        for (FsDoctorPrescribeDrug drug : drugs) {
 |  | 
 | 
											
												
													
														|  | -            if (!set.add(drug.getProductId())) {
 |  | 
 | 
											
												
													
														|  | -                return R.error("存在重复药品");
 |  | 
 | 
											
												
													
														|  | -            }
 |  | 
 | 
											
												
													
														|  | -        }
 |  | 
 | 
											
												
													
														|  | 
 |  | +//        for (FsDoctorPrescribeDrug drug : drugs) {
 | 
											
												
													
														|  | 
 |  | +//            if (!set.add(drug.getProductId())) {
 | 
											
												
													
														|  | 
 |  | +//                return R.error("存在重复药品");
 | 
											
												
													
														|  | 
 |  | +//            }
 | 
											
												
													
														|  | 
 |  | +//        }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          for(FsDoctorPrescribeDrug drug:drugs){
 |  |          for(FsDoctorPrescribeDrug drug:drugs){
 | 
											
												
													
														|  |              drug.setPrescribeId(doctorPrescribe.getPrescribeId());
 |  |              drug.setPrescribeId(doctorPrescribe.getPrescribeId());
 | 
											
										
											
												
													
														|  | @@ -178,12 +178,12 @@ public class PrescribeController extends  AppBaseController {
 | 
											
												
													
														|  |      public R editPrescribe(@Validated @RequestBody FsDoctorPrescribeAddEditParam param, HttpServletRequest request){
 |  |      public R editPrescribe(@Validated @RequestBody FsDoctorPrescribeAddEditParam param, HttpServletRequest request){
 | 
											
												
													
														|  |          FsDoctorPrescribe prescribe=doctorPrescribeService.selectFsDoctorPrescribeByPrescribeId(param.getPrescribeId());
 |  |          FsDoctorPrescribe prescribe=doctorPrescribeService.selectFsDoctorPrescribeByPrescribeId(param.getPrescribeId());
 | 
											
												
													
														|  |          List<FsDoctorPrescribeDrug> drugs = param.getDrugs();
 |  |          List<FsDoctorPrescribeDrug> drugs = param.getDrugs();
 | 
											
												
													
														|  | -        HashSet<Long> set = new HashSet<>();
 |  | 
 | 
											
												
													
														|  | -        for (FsDoctorPrescribeDrug drug : drugs) {
 |  | 
 | 
											
												
													
														|  | -            if (!set.add(drug.getProductId())) {
 |  | 
 | 
											
												
													
														|  | -                return R.error("存在重复药品");
 |  | 
 | 
											
												
													
														|  | -            }
 |  | 
 | 
											
												
													
														|  | -        }
 |  | 
 | 
											
												
													
														|  | 
 |  | +//        HashSet<Long> set = new HashSet<>();
 | 
											
												
													
														|  | 
 |  | +//        for (FsDoctorPrescribeDrug drug : drugs) {
 | 
											
												
													
														|  | 
 |  | +//            if (!set.add(drug.getProductId())) {
 | 
											
												
													
														|  | 
 |  | +//                return R.error("存在重复药品");
 | 
											
												
													
														|  | 
 |  | +//            }
 | 
											
												
													
														|  | 
 |  | +//        }
 | 
											
												
													
														|  |          BeanUtils.copyProperties(param,prescribe);
 |  |          BeanUtils.copyProperties(param,prescribe);
 | 
											
												
													
														|  |          prescribe.setDoctorId(Long.parseLong(getDoctorId()));
 |  |          prescribe.setDoctorId(Long.parseLong(getDoctorId()));
 | 
											
												
													
														|  |          doctorPrescribeService.updateFsDoctorPrescribe(prescribe);
 |  |          doctorPrescribeService.updateFsDoctorPrescribe(prescribe);
 |