//8、医院设置锁定和解锁:锁定时则无法对医院设置进行操作,只有status=1解锁了才能操作 @PutMapping("lockHospitalSet/{id}/{status}") public Result lockHospitalSet(@PathVariable long id, @PathVariable Integer status){ //根据id查询医院设置信息 HospitalSet hospitalSet = hospitalSetService.getById(id); //设置医院状态 hospitalSet.setStatus(status); hospitalSetService.updateById(hospitalSet); return Result.ok(); } //9、发送签名密钥 @PutMapping("sendKey/{id}") public Result lockHospitalSet(@PathVariable Long id){ HospitalSet hospitalSet = hospitalSetService.getById(id); String signKey = hospitalSet.getSignKey(); String hoscode = hospitalSet.getHoscode(); //TODO 发送短信 return Result.ok(); }
标签:status,PathVariable,发送,hospitalSet,签名,设置,锁定,id,Result From: https://www.cnblogs.com/fxzm/p/17483029.html