|  | @@ -157,13 +157,13 @@ public class PrescribeController extends  AppBaseController {
 | 
	
		
			
				|  |  |          BeanUtils.copyProperties(param,doctorPrescribe);
 | 
	
		
			
				|  |  |          doctorPrescribe.setDoctorId(Long.parseLong(getDoctorId()));
 | 
	
		
			
				|  |  |          doctorPrescribeService.insertFsDoctorPrescribe(doctorPrescribe);
 | 
	
		
			
				|  |  | -        HashSet<Long> set = new HashSet<>();
 | 
	
		
			
				|  |  | +//        HashSet<Long> set = new HashSet<>();
 | 
	
		
			
				|  |  |          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){
 | 
	
		
			
				|  |  |              drug.setPrescribeId(doctorPrescribe.getPrescribeId());
 | 
	
	
		
			
				|  | @@ -178,12 +178,12 @@ public class PrescribeController extends  AppBaseController {
 | 
	
		
			
				|  |  |      public R editPrescribe(@Validated @RequestBody FsDoctorPrescribeAddEditParam param, HttpServletRequest request){
 | 
	
		
			
				|  |  |          FsDoctorPrescribe prescribe=doctorPrescribeService.selectFsDoctorPrescribeByPrescribeId(param.getPrescribeId());
 | 
	
		
			
				|  |  |          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);
 | 
	
		
			
				|  |  |          prescribe.setDoctorId(Long.parseLong(getDoctorId()));
 | 
	
		
			
				|  |  |          doctorPrescribeService.updateFsDoctorPrescribe(prescribe);
 |