|  | @@ -5,6 +5,7 @@ import com.ym.mec.auth.api.entity.SysUser;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.dao.EmployeeDao;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.dto.ReplacementInstrumentActivityStatDto;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.Employee;
 | 
	
		
			
				|  |  | +import com.ym.mec.biz.dal.entity.ReplacementInstrumentActivity;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.page.ManagerDownloadQueryInfo;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.page.ReplacementInstrumentActivityQueryInfo;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.service.ReplacementInstrumentActivityService;
 | 
	
	
		
			
				|  | @@ -77,4 +78,16 @@ public class ReplacementInstrumentActivityController extends BaseController {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          return succeed(replacementInstrumentActivityService.queryReplacementsStat(queryInfo));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    @ApiOperation(value = "修改")
 | 
	
		
			
				|  |  | +    @GetMapping("/update")
 | 
	
		
			
				|  |  | +    @PreAuthorize("@pcs.hasPermissions('replacementInstrumentActivity/update')")
 | 
	
		
			
				|  |  | +    public HttpResponseResult<ReplacementInstrumentActivity> update(ReplacementInstrumentActivity replacementInstrumentActivity) {
 | 
	
		
			
				|  |  | +        ReplacementInstrumentActivity old = replacementInstrumentActivityService.get(replacementInstrumentActivity.getId());
 | 
	
		
			
				|  |  | +        if (old.getInstrumentsId().equals(replacementInstrumentActivity.getInstrumentsId())) {
 | 
	
		
			
				|  |  | +            return succeed();
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        replacementInstrumentActivityService.update(replacementInstrumentActivity);
 | 
	
		
			
				|  |  | +        return succeed(replacementInstrumentActivity);
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |  }
 |