|
@@ -57,18 +57,18 @@ public class GPressureRegulatingBoxServiceImpl extends ServicePlusImpl<GPressure
|
|
|
if (StringUtils.isNotEmpty(vo.getNumber())) {
|
|
|
successNum++;
|
|
|
GPressureRegulatingBox gPressureRegulatingBox = baseMapper.getByNumber(vo.getNumber(),vo.getName(),vo.getManagementOffice());
|
|
|
- String type = sysDictDataMapper.queryDictTextByKey("tyx_type", vo.getType());
|
|
|
- if (StringUtils.isBlank(type)) {
|
|
|
- throw new ServiceException( "第" + (n + 1) + "行类型填写错误,导入失败!");
|
|
|
- }
|
|
|
- String getNature = sysDictDataMapper.queryDictTextByKey("tyx_nature", vo.getNature());
|
|
|
- if (StringUtils.isBlank(getNature)) {
|
|
|
- throw new ServiceException("第" + (n + 1) + "行性质填写错误,导入失败!");
|
|
|
- }
|
|
|
- String getNumberOfRoutes = sysDictDataMapper.queryDictTextByKey("tyx_numberOfRoutes", vo.getNumberOfRoutes());
|
|
|
- if (StringUtils.isBlank(getNumberOfRoutes)) {
|
|
|
- throw new ServiceException( "第" + (n + 1) + "行路数填写错误,导入失败!");
|
|
|
- }
|
|
|
+// String type = sysDictDataMapper.queryDictTextByKey("tyx_type", vo.getType());
|
|
|
+// if (StringUtils.isBlank(type)) {
|
|
|
+// throw new ServiceException( "第" + (n + 1) + "行类型填写错误,导入失败!");
|
|
|
+// }
|
|
|
+// String getNature = sysDictDataMapper.queryDictTextByKey("tyx_nature", vo.getNature());
|
|
|
+// if (StringUtils.isBlank(getNature)) {
|
|
|
+// throw new ServiceException("第" + (n + 1) + "行性质填写错误,导入失败!");
|
|
|
+// }
|
|
|
+// String getNumberOfRoutes = sysDictDataMapper.queryDictTextByKey("tyx_numberOfRoutes", vo.getNumberOfRoutes());
|
|
|
+// if (StringUtils.isBlank(getNumberOfRoutes)) {
|
|
|
+// throw new ServiceException( "第" + (n + 1) + "行路数填写错误,导入失败!");
|
|
|
+// }
|
|
|
String getManagementOffice = sysDictDataMapper.queryDictTextByKey("administrative_office", vo.getManagementOffice());
|
|
|
if (StringUtils.isBlank(getManagementOffice)) {
|
|
|
throw new ServiceException( "第" + (n + 1) + "行管理所填写错误,导入失败!");
|