| | |
| | | import io.netty.util.internal.StringUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | * 播种墙拍灯,ESS调用 |
| | | */ |
| | | @PostMapping("/light/off") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R lightOff(@RequestBody Map<String, Object> request) { |
| | | if (Objects.isNull(request)) { |
| | | throw new CoolException("参数不能为空!!"); |
| | |
| | | |
| | | WaveSeed waveSeed = waveSeedService.getOne(new LambdaQueryWrapper<WaveSeed>() |
| | | .eq(WaveSeed::getExceStatus, 1) |
| | | .eq(WaveSeed::getSiteNo, request.get("tagCode").toString())); |
| | | .eq(WaveSeed::getSiteNo, request.get("tagCode").toString()), false); |
| | | if (Objects.isNull(waveSeed)) { |
| | | throw new CoolException("播种墙地标未绑定!!"); |
| | | } |