| | |
| | | import com.java110.utils.util.StringUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | return false; |
| | | } |
| | | if (MeterWaterDto.METER_TYPE_ROOM.equals(meterWaterDto.getObjType())) { |
| | | String[] nums = roomNum.split("-"); |
| | | String[] nums = roomNum.split("-",3); |
| | | if (nums.length != 3) { |
| | | return false; |
| | | } |
| | |
| | | meterWaterDto.setObjId(roomDtos.get(0).getRoomId()); |
| | | |
| | | } else { |
| | | String[] nums = roomNum.split("-"); |
| | | String[] nums = roomNum.split("-",2); |
| | | if (nums.length != 2) { |
| | | return false; |
| | | } |