iot设备code字符问题修改
This commit is contained in:
parent
4f2454d7dd
commit
0bfae9191a
|
|
@ -16,6 +16,7 @@ import com.bonus.sgzb.material.domain.*;
|
|||
import com.bonus.sgzb.material.mapper.IotMachineMapper;
|
||||
import com.bonus.sgzb.material.service.IotMachineService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.transaction.interceptor.TransactionAspectSupport;
|
||||
|
|
@ -288,7 +289,7 @@ public class IotMachineServiceImpl implements IotMachineService {
|
|||
@Override
|
||||
public AjaxResult getLocation(IotDto iotDto) {
|
||||
log.info("getLocation:{}", iotDto);
|
||||
if (iotDto == null || iotDto.getIotId() == null) {
|
||||
if (iotDto == null || StringUtils.isBlank(iotDto.getIotId())) {
|
||||
throw new RuntimeException(ExceptionEnum.PARAM_NULL.getMsg());
|
||||
}
|
||||
List<String> list=new ArrayList<>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue