first commit
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
package com.wanji.software.tocc.infra.maint;
|
||||
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
|
||||
/**
|
||||
* 养护基础服务。表访问、Mapper、Feign 接口实现放在本进程。
|
||||
*/
|
||||
@SpringBootApplication
|
||||
@ComponentScan(basePackages = {
|
||||
"com.wanji.software.tocc.infra.maint",
|
||||
"com.wanji.software.tocc.maint.support"
|
||||
})
|
||||
@MapperScan("com.wanji.software.tocc.infra.maint.mapper")
|
||||
public class MaintInfraApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(MaintInfraApplication.class, args);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.ArchiveApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.ArchiveMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.ArchivePageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveSaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.Archive;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class ArchiveApiImpl implements ArchiveApi {
|
||||
|
||||
@Resource
|
||||
private ArchiveMapper archiveMapper;
|
||||
|
||||
@Override
|
||||
public Result<ArchiveResp> create(ArchiveSaveReq req) {
|
||||
return MaintRecords.create(archiveMapper, req, Archive.class, ArchiveResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<ArchiveResp> getById(String id) {
|
||||
return MaintRecords.get(archiveMapper, id, ArchiveResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(ArchiveSaveReq req) {
|
||||
return MaintRecords.update(archiveMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(archiveMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<ArchiveResp>> page(ArchivePageReq req) {
|
||||
return MaintRecords.page(archiveMapper, req, Archive.class, ArchiveResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.ArchiveAssetApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.ArchiveAssetMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveAssetPageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveAssetResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveAssetSaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.ArchiveAsset;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class ArchiveAssetApiImpl implements ArchiveAssetApi {
|
||||
|
||||
@Resource
|
||||
private ArchiveAssetMapper archiveAssetMapper;
|
||||
|
||||
@Override
|
||||
public Result<ArchiveAssetResp> create(ArchiveAssetSaveReq req) {
|
||||
return MaintRecords.create(archiveAssetMapper, req, ArchiveAsset.class, ArchiveAssetResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<ArchiveAssetResp> getById(String id) {
|
||||
return MaintRecords.get(archiveAssetMapper, id, ArchiveAssetResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(ArchiveAssetSaveReq req) {
|
||||
return MaintRecords.update(archiveAssetMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(archiveAssetMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<ArchiveAssetResp>> page(ArchiveAssetPageReq req) {
|
||||
return MaintRecords.page(archiveAssetMapper, req, ArchiveAsset.class, ArchiveAssetResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.ArchiveCategoryApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.ArchiveCategoryMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveCategoryPageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveCategoryResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveCategorySaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.ArchiveCategory;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class ArchiveCategoryApiImpl implements ArchiveCategoryApi {
|
||||
|
||||
@Resource
|
||||
private ArchiveCategoryMapper archiveCategoryMapper;
|
||||
|
||||
@Override
|
||||
public Result<ArchiveCategoryResp> create(ArchiveCategorySaveReq req) {
|
||||
return MaintRecords.create(archiveCategoryMapper, req, ArchiveCategory.class, ArchiveCategoryResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<ArchiveCategoryResp> getById(String id) {
|
||||
return MaintRecords.get(archiveCategoryMapper, id, ArchiveCategoryResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(ArchiveCategorySaveReq req) {
|
||||
return MaintRecords.update(archiveCategoryMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(archiveCategoryMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<ArchiveCategoryResp>> page(ArchiveCategoryPageReq req) {
|
||||
return MaintRecords.page(archiveCategoryMapper, req, ArchiveCategory.class, ArchiveCategoryResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.ArchiveFileApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.ArchiveFileMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveFilePageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveFileResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveFileSaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.ArchiveFile;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class ArchiveFileApiImpl implements ArchiveFileApi {
|
||||
|
||||
@Resource
|
||||
private ArchiveFileMapper archiveFileMapper;
|
||||
|
||||
@Override
|
||||
public Result<ArchiveFileResp> create(ArchiveFileSaveReq req) {
|
||||
return MaintRecords.create(archiveFileMapper, req, ArchiveFile.class, ArchiveFileResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<ArchiveFileResp> getById(String id) {
|
||||
return MaintRecords.get(archiveFileMapper, id, ArchiveFileResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(ArchiveFileSaveReq req) {
|
||||
return MaintRecords.update(archiveFileMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(archiveFileMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<ArchiveFileResp>> page(ArchiveFilePageReq req) {
|
||||
return MaintRecords.page(archiveFileMapper, req, ArchiveFile.class, ArchiveFileResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.ArchiveVolumeApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.ArchiveVolumeMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveVolumePageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveVolumeResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.ArchiveVolumeSaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.ArchiveVolume;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class ArchiveVolumeApiImpl implements ArchiveVolumeApi {
|
||||
|
||||
@Resource
|
||||
private ArchiveVolumeMapper archiveVolumeMapper;
|
||||
|
||||
@Override
|
||||
public Result<ArchiveVolumeResp> create(ArchiveVolumeSaveReq req) {
|
||||
return MaintRecords.create(archiveVolumeMapper, req, ArchiveVolume.class, ArchiveVolumeResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<ArchiveVolumeResp> getById(String id) {
|
||||
return MaintRecords.get(archiveVolumeMapper, id, ArchiveVolumeResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(ArchiveVolumeSaveReq req) {
|
||||
return MaintRecords.update(archiveVolumeMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(archiveVolumeMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<ArchiveVolumeResp>> page(ArchiveVolumePageReq req) {
|
||||
return MaintRecords.page(archiveVolumeMapper, req, ArchiveVolume.class, ArchiveVolumeResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.AssetInventoryApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.AssetInventoryMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.AssetInventoryPageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.AssetInventoryResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.AssetInventorySaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.AssetInventory;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class AssetInventoryApiImpl implements AssetInventoryApi {
|
||||
|
||||
@Resource
|
||||
private AssetInventoryMapper assetInventoryMapper;
|
||||
|
||||
@Override
|
||||
public Result<AssetInventoryResp> create(AssetInventorySaveReq req) {
|
||||
return MaintRecords.create(assetInventoryMapper, req, AssetInventory.class, AssetInventoryResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<AssetInventoryResp> getById(String id) {
|
||||
return MaintRecords.get(assetInventoryMapper, id, AssetInventoryResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(AssetInventorySaveReq req) {
|
||||
return MaintRecords.update(assetInventoryMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(assetInventoryMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<AssetInventoryResp>> page(AssetInventoryPageReq req) {
|
||||
return MaintRecords.page(assetInventoryMapper, req, AssetInventory.class, AssetInventoryResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.BridgeApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.BridgeMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.BridgePageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.BridgeResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.BridgeSaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.Bridge;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class BridgeApiImpl implements BridgeApi {
|
||||
|
||||
@Resource
|
||||
private BridgeMapper bridgeMapper;
|
||||
|
||||
@Override
|
||||
public Result<BridgeResp> create(BridgeSaveReq req) {
|
||||
return MaintRecords.create(bridgeMapper, req, Bridge.class, BridgeResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<BridgeResp> getById(String id) {
|
||||
return MaintRecords.get(bridgeMapper, id, BridgeResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(BridgeSaveReq req) {
|
||||
return MaintRecords.update(bridgeMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(bridgeMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<BridgeResp>> page(BridgePageReq req) {
|
||||
return MaintRecords.page(bridgeMapper, req, Bridge.class, BridgeResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.DefectApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.DefectMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.DefectPageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.DefectResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.DefectSaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.Defect;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class DefectApiImpl implements DefectApi {
|
||||
|
||||
@Resource
|
||||
private DefectMapper defectMapper;
|
||||
|
||||
@Override
|
||||
public Result<DefectResp> create(DefectSaveReq req) {
|
||||
return MaintRecords.create(defectMapper, req, Defect.class, DefectResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<DefectResp> getById(String id) {
|
||||
return MaintRecords.get(defectMapper, id, DefectResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(DefectSaveReq req) {
|
||||
return MaintRecords.update(defectMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(defectMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<DefectResp>> page(DefectPageReq req) {
|
||||
return MaintRecords.page(defectMapper, req, Defect.class, DefectResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.DefectAssetApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.DefectAssetMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.DefectAssetPageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.DefectAssetResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.DefectAssetSaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.DefectAsset;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class DefectAssetApiImpl implements DefectAssetApi {
|
||||
|
||||
@Resource
|
||||
private DefectAssetMapper defectAssetMapper;
|
||||
|
||||
@Override
|
||||
public Result<DefectAssetResp> create(DefectAssetSaveReq req) {
|
||||
return MaintRecords.create(defectAssetMapper, req, DefectAsset.class, DefectAssetResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<DefectAssetResp> getById(String id) {
|
||||
return MaintRecords.get(defectAssetMapper, id, DefectAssetResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(DefectAssetSaveReq req) {
|
||||
return MaintRecords.update(defectAssetMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(defectAssetMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<DefectAssetResp>> page(DefectAssetPageReq req) {
|
||||
return MaintRecords.page(defectAssetMapper, req, DefectAsset.class, DefectAssetResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.DefectTypeApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.DefectTypeMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.DefectTypePageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.DefectTypeResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.DefectTypeSaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.DefectType;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class DefectTypeApiImpl implements DefectTypeApi {
|
||||
|
||||
@Resource
|
||||
private DefectTypeMapper defectTypeMapper;
|
||||
|
||||
@Override
|
||||
public Result<DefectTypeResp> create(DefectTypeSaveReq req) {
|
||||
return MaintRecords.create(defectTypeMapper, req, DefectType.class, DefectTypeResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<DefectTypeResp> getById(String id) {
|
||||
return MaintRecords.get(defectTypeMapper, id, DefectTypeResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(DefectTypeSaveReq req) {
|
||||
return MaintRecords.update(defectTypeMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(defectTypeMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<DefectTypeResp>> page(DefectTypePageReq req) {
|
||||
return MaintRecords.page(defectTypeMapper, req, DefectType.class, DefectTypeResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.FacilityApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.FacilityMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.FacilityPageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.FacilityResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.FacilitySaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.Facility;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class FacilityApiImpl implements FacilityApi {
|
||||
|
||||
@Resource
|
||||
private FacilityMapper facilityMapper;
|
||||
|
||||
@Override
|
||||
public Result<FacilityResp> create(FacilitySaveReq req) {
|
||||
return MaintRecords.create(facilityMapper, req, Facility.class, FacilityResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<FacilityResp> getById(String id) {
|
||||
return MaintRecords.get(facilityMapper, id, FacilityResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(FacilitySaveReq req) {
|
||||
return MaintRecords.update(facilityMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(facilityMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<FacilityResp>> page(FacilityPageReq req) {
|
||||
return MaintRecords.page(facilityMapper, req, Facility.class, FacilityResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.FacilityTypeApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.FacilityTypeMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.FacilityTypePageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.FacilityTypeResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.FacilityTypeSaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.FacilityType;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class FacilityTypeApiImpl implements FacilityTypeApi {
|
||||
|
||||
@Resource
|
||||
private FacilityTypeMapper facilityTypeMapper;
|
||||
|
||||
@Override
|
||||
public Result<FacilityTypeResp> create(FacilityTypeSaveReq req) {
|
||||
return MaintRecords.create(facilityTypeMapper, req, FacilityType.class, FacilityTypeResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<FacilityTypeResp> getById(String id) {
|
||||
return MaintRecords.get(facilityTypeMapper, id, FacilityTypeResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(FacilityTypeSaveReq req) {
|
||||
return MaintRecords.update(facilityTypeMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(facilityTypeMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<FacilityTypeResp>> page(FacilityTypePageReq req) {
|
||||
return MaintRecords.page(facilityTypeMapper, req, FacilityType.class, FacilityTypeResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.FacilityTypeFieldApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.FacilityTypeFieldMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.FacilityTypeFieldPageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.FacilityTypeFieldResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.FacilityTypeFieldSaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.FacilityTypeField;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class FacilityTypeFieldApiImpl implements FacilityTypeFieldApi {
|
||||
|
||||
@Resource
|
||||
private FacilityTypeFieldMapper facilityTypeFieldMapper;
|
||||
|
||||
@Override
|
||||
public Result<FacilityTypeFieldResp> create(FacilityTypeFieldSaveReq req) {
|
||||
return MaintRecords.create(facilityTypeFieldMapper, req, FacilityTypeField.class, FacilityTypeFieldResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<FacilityTypeFieldResp> getById(String id) {
|
||||
return MaintRecords.get(facilityTypeFieldMapper, id, FacilityTypeFieldResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(FacilityTypeFieldSaveReq req) {
|
||||
return MaintRecords.update(facilityTypeFieldMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(facilityTypeFieldMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<FacilityTypeFieldResp>> page(FacilityTypeFieldPageReq req) {
|
||||
return MaintRecords.page(facilityTypeFieldMapper, req, FacilityTypeField.class, FacilityTypeFieldResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.InspectionPlanApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.InspectionPlanMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.InspectionPlanPageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.InspectionPlanResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.InspectionPlanSaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.InspectionPlan;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class InspectionPlanApiImpl implements InspectionPlanApi {
|
||||
|
||||
@Resource
|
||||
private InspectionPlanMapper inspectionPlanMapper;
|
||||
|
||||
@Override
|
||||
public Result<InspectionPlanResp> create(InspectionPlanSaveReq req) {
|
||||
return MaintRecords.create(inspectionPlanMapper, req, InspectionPlan.class, InspectionPlanResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<InspectionPlanResp> getById(String id) {
|
||||
return MaintRecords.get(inspectionPlanMapper, id, InspectionPlanResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(InspectionPlanSaveReq req) {
|
||||
return MaintRecords.update(inspectionPlanMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(inspectionPlanMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<InspectionPlanResp>> page(InspectionPlanPageReq req) {
|
||||
return MaintRecords.page(inspectionPlanMapper, req, InspectionPlan.class, InspectionPlanResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.InspectionRecordApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.InspectionRecordMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.InspectionRecordPageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.InspectionRecordResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.InspectionRecordSaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.InspectionRecord;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class InspectionRecordApiImpl implements InspectionRecordApi {
|
||||
|
||||
@Resource
|
||||
private InspectionRecordMapper inspectionRecordMapper;
|
||||
|
||||
@Override
|
||||
public Result<InspectionRecordResp> create(InspectionRecordSaveReq req) {
|
||||
return MaintRecords.create(inspectionRecordMapper, req, InspectionRecord.class, InspectionRecordResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<InspectionRecordResp> getById(String id) {
|
||||
return MaintRecords.get(inspectionRecordMapper, id, InspectionRecordResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(InspectionRecordSaveReq req) {
|
||||
return MaintRecords.update(inspectionRecordMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(inspectionRecordMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<InspectionRecordResp>> page(InspectionRecordPageReq req) {
|
||||
return MaintRecords.page(inspectionRecordMapper, req, InspectionRecord.class, InspectionRecordResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.KnowledgeApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.KnowledgeMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.KnowledgePageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.KnowledgeResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.KnowledgeSaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.Knowledge;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class KnowledgeApiImpl implements KnowledgeApi {
|
||||
|
||||
@Resource
|
||||
private KnowledgeMapper knowledgeMapper;
|
||||
|
||||
@Override
|
||||
public Result<KnowledgeResp> create(KnowledgeSaveReq req) {
|
||||
return MaintRecords.create(knowledgeMapper, req, Knowledge.class, KnowledgeResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<KnowledgeResp> getById(String id) {
|
||||
return MaintRecords.get(knowledgeMapper, id, KnowledgeResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(KnowledgeSaveReq req) {
|
||||
return MaintRecords.update(knowledgeMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(knowledgeMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<KnowledgeResp>> page(KnowledgePageReq req) {
|
||||
return MaintRecords.page(knowledgeMapper, req, Knowledge.class, KnowledgeResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.KnowledgeCategoryApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.KnowledgeCategoryMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.KnowledgeCategoryPageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.KnowledgeCategoryResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.KnowledgeCategorySaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.KnowledgeCategory;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class KnowledgeCategoryApiImpl implements KnowledgeCategoryApi {
|
||||
|
||||
@Resource
|
||||
private KnowledgeCategoryMapper knowledgeCategoryMapper;
|
||||
|
||||
@Override
|
||||
public Result<KnowledgeCategoryResp> create(KnowledgeCategorySaveReq req) {
|
||||
return MaintRecords.create(knowledgeCategoryMapper, req, KnowledgeCategory.class, KnowledgeCategoryResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<KnowledgeCategoryResp> getById(String id) {
|
||||
return MaintRecords.get(knowledgeCategoryMapper, id, KnowledgeCategoryResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(KnowledgeCategorySaveReq req) {
|
||||
return MaintRecords.update(knowledgeCategoryMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(knowledgeCategoryMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<KnowledgeCategoryResp>> page(KnowledgeCategoryPageReq req) {
|
||||
return MaintRecords.page(knowledgeCategoryMapper, req, KnowledgeCategory.class, KnowledgeCategoryResp.class);
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.MaintHealthApi;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class MaintHealthApiImpl implements MaintHealthApi {
|
||||
|
||||
@Override
|
||||
public Result<String> health() {
|
||||
return Result.ok("ok");
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.MaintenanceDeptApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.MaintenanceDeptMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.MaintenanceDeptPageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.MaintenanceDeptResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.MaintenanceDeptSaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.MaintenanceDept;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class MaintenanceDeptApiImpl implements MaintenanceDeptApi {
|
||||
|
||||
@Resource
|
||||
private MaintenanceDeptMapper maintenanceDeptMapper;
|
||||
|
||||
@Override
|
||||
public Result<MaintenanceDeptResp> create(MaintenanceDeptSaveReq req) {
|
||||
return MaintRecords.create(maintenanceDeptMapper, req, MaintenanceDept.class, MaintenanceDeptResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<MaintenanceDeptResp> getById(String id) {
|
||||
return MaintRecords.get(maintenanceDeptMapper, id, MaintenanceDeptResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(MaintenanceDeptSaveReq req) {
|
||||
return MaintRecords.update(maintenanceDeptMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(maintenanceDeptMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<MaintenanceDeptResp>> page(MaintenanceDeptPageReq req) {
|
||||
return MaintRecords.page(maintenanceDeptMapper, req, MaintenanceDept.class, MaintenanceDeptResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.MaintenanceEquipmentApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.MaintenanceEquipmentMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.MaintenanceEquipmentPageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.MaintenanceEquipmentResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.MaintenanceEquipmentSaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.MaintenanceEquipment;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class MaintenanceEquipmentApiImpl implements MaintenanceEquipmentApi {
|
||||
|
||||
@Resource
|
||||
private MaintenanceEquipmentMapper maintenanceEquipmentMapper;
|
||||
|
||||
@Override
|
||||
public Result<MaintenanceEquipmentResp> create(MaintenanceEquipmentSaveReq req) {
|
||||
return MaintRecords.create(maintenanceEquipmentMapper, req, MaintenanceEquipment.class, MaintenanceEquipmentResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<MaintenanceEquipmentResp> getById(String id) {
|
||||
return MaintRecords.get(maintenanceEquipmentMapper, id, MaintenanceEquipmentResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(MaintenanceEquipmentSaveReq req) {
|
||||
return MaintRecords.update(maintenanceEquipmentMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(maintenanceEquipmentMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<MaintenanceEquipmentResp>> page(MaintenanceEquipmentPageReq req) {
|
||||
return MaintRecords.page(maintenanceEquipmentMapper, req, MaintenanceEquipment.class, MaintenanceEquipmentResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.MaintenancePersonApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.MaintenancePersonMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.MaintenancePersonPageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.MaintenancePersonResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.MaintenancePersonSaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.MaintenancePerson;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class MaintenancePersonApiImpl implements MaintenancePersonApi {
|
||||
|
||||
@Resource
|
||||
private MaintenancePersonMapper maintenancePersonMapper;
|
||||
|
||||
@Override
|
||||
public Result<MaintenancePersonResp> create(MaintenancePersonSaveReq req) {
|
||||
return MaintRecords.create(maintenancePersonMapper, req, MaintenancePerson.class, MaintenancePersonResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<MaintenancePersonResp> getById(String id) {
|
||||
return MaintRecords.get(maintenancePersonMapper, id, MaintenancePersonResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(MaintenancePersonSaveReq req) {
|
||||
return MaintRecords.update(maintenancePersonMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(maintenancePersonMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<MaintenancePersonResp>> page(MaintenancePersonPageReq req) {
|
||||
return MaintRecords.page(maintenancePersonMapper, req, MaintenancePerson.class, MaintenancePersonResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.RoadApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.RoadMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.RoadPageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.RoadResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.RoadSaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.Road;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class RoadApiImpl implements RoadApi {
|
||||
|
||||
@Resource
|
||||
private RoadMapper roadMapper;
|
||||
|
||||
@Override
|
||||
public Result<RoadResp> create(RoadSaveReq req) {
|
||||
return MaintRecords.create(roadMapper, req, Road.class, RoadResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<RoadResp> getById(String id) {
|
||||
return MaintRecords.get(roadMapper, id, RoadResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(RoadSaveReq req) {
|
||||
return MaintRecords.update(roadMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(roadMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<RoadResp>> page(RoadPageReq req) {
|
||||
return MaintRecords.page(roadMapper, req, Road.class, RoadResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.RoadSectionApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.RoadSectionMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.RoadSectionPageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.RoadSectionResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.RoadSectionSaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.RoadSection;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class RoadSectionApiImpl implements RoadSectionApi {
|
||||
|
||||
@Resource
|
||||
private RoadSectionMapper roadSectionMapper;
|
||||
|
||||
@Override
|
||||
public Result<RoadSectionResp> create(RoadSectionSaveReq req) {
|
||||
return MaintRecords.create(roadSectionMapper, req, RoadSection.class, RoadSectionResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<RoadSectionResp> getById(String id) {
|
||||
return MaintRecords.get(roadSectionMapper, id, RoadSectionResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(RoadSectionSaveReq req) {
|
||||
return MaintRecords.update(roadSectionMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(roadSectionMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<RoadSectionResp>> page(RoadSectionPageReq req) {
|
||||
return MaintRecords.page(roadSectionMapper, req, RoadSection.class, RoadSectionResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.RoadUpgradingApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.RoadUpgradingMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.RoadUpgradingPageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.RoadUpgradingResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.RoadUpgradingSaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.RoadUpgrading;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class RoadUpgradingApiImpl implements RoadUpgradingApi {
|
||||
|
||||
@Resource
|
||||
private RoadUpgradingMapper roadUpgradingMapper;
|
||||
|
||||
@Override
|
||||
public Result<RoadUpgradingResp> create(RoadUpgradingSaveReq req) {
|
||||
return MaintRecords.create(roadUpgradingMapper, req, RoadUpgrading.class, RoadUpgradingResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<RoadUpgradingResp> getById(String id) {
|
||||
return MaintRecords.get(roadUpgradingMapper, id, RoadUpgradingResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(RoadUpgradingSaveReq req) {
|
||||
return MaintRecords.update(roadUpgradingMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(roadUpgradingMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<RoadUpgradingResp>> page(RoadUpgradingPageReq req) {
|
||||
return MaintRecords.page(roadUpgradingMapper, req, RoadUpgrading.class, RoadUpgradingResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.SlopeApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.SlopeMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.SlopePageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.SlopeResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.SlopeSaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.Slope;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class SlopeApiImpl implements SlopeApi {
|
||||
|
||||
@Resource
|
||||
private SlopeMapper slopeMapper;
|
||||
|
||||
@Override
|
||||
public Result<SlopeResp> create(SlopeSaveReq req) {
|
||||
return MaintRecords.create(slopeMapper, req, Slope.class, SlopeResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<SlopeResp> getById(String id) {
|
||||
return MaintRecords.get(slopeMapper, id, SlopeResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(SlopeSaveReq req) {
|
||||
return MaintRecords.update(slopeMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(slopeMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<SlopeResp>> page(SlopePageReq req) {
|
||||
return MaintRecords.page(slopeMapper, req, Slope.class, SlopeResp.class);
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.wanji.software.tocc.infra.maint.api.impl;
|
||||
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.infra.maint.api.UserRoadSectionApi;
|
||||
import com.wanji.software.tocc.infra.maint.mapper.UserRoadSectionMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.UserRoadSectionPageReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.UserRoadSectionResp;
|
||||
import com.wanji.software.tocc.infra.maint.model.dto.UserRoadSectionSaveReq;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.UserRoadSection;
|
||||
import com.wanji.software.tocc.infra.maint.support.MaintRecords;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@Validated
|
||||
public class UserRoadSectionApiImpl implements UserRoadSectionApi {
|
||||
|
||||
@Resource
|
||||
private UserRoadSectionMapper userRoadSectionMapper;
|
||||
|
||||
@Override
|
||||
public Result<UserRoadSectionResp> create(UserRoadSectionSaveReq req) {
|
||||
return MaintRecords.create(userRoadSectionMapper, req, UserRoadSection.class, UserRoadSectionResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<UserRoadSectionResp> getById(String id) {
|
||||
return MaintRecords.get(userRoadSectionMapper, id, UserRoadSectionResp.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> update(UserRoadSectionSaveReq req) {
|
||||
return MaintRecords.update(userRoadSectionMapper, req);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Boolean> delete(String id) {
|
||||
return MaintRecords.delete(userRoadSectionMapper, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<PageResult<UserRoadSectionResp>> page(UserRoadSectionPageReq req) {
|
||||
return MaintRecords.page(userRoadSectionMapper, req, UserRoadSection.class, UserRoadSectionResp.class);
|
||||
}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
package com.wanji.software.tocc.infra.maint.config;
|
||||
|
||||
import com.wanji.software.tocc.common.exception.BusinessException;
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.web.bind.annotation.ExceptionHandler;
|
||||
import org.springframework.web.bind.annotation.RestControllerAdvice;
|
||||
|
||||
import java.sql.SQLException;
|
||||
|
||||
/**
|
||||
* 统一异常处理。业务异常回短文案;系统异常记日志后返回固定提示,不把堆栈返回给调用方。
|
||||
*/
|
||||
@Slf4j
|
||||
@RestControllerAdvice
|
||||
public class ExceptionAdvice {
|
||||
|
||||
@ExceptionHandler(BusinessException.class)
|
||||
public Result<Void> handleBusiness(BusinessException exception) {
|
||||
log.warn("业务异常: {}", exception.getMessage());
|
||||
return Result.fail(exception.getCode() == null ? 1 : exception.getCode(),
|
||||
safeMsg(exception.getMessage(), "请求失败"));
|
||||
}
|
||||
|
||||
@ExceptionHandler({SQLException.class, DataAccessException.class})
|
||||
public Result<Void> handleSql(Exception exception) {
|
||||
log.error("数据库异常", exception);
|
||||
return Result.fail("服务异常");
|
||||
}
|
||||
|
||||
@ExceptionHandler(Exception.class)
|
||||
public Result<Void> handle(Exception exception) {
|
||||
log.error("系统异常", exception);
|
||||
return Result.fail("系统繁忙,请稍后再试");
|
||||
}
|
||||
|
||||
private String safeMsg(String message, String fallback) {
|
||||
return message == null || message.trim().isEmpty() ? fallback : message;
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.ArchiveAsset;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface ArchiveAssetMapper extends BaseMapper<ArchiveAsset> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.ArchiveCategory;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface ArchiveCategoryMapper extends BaseMapper<ArchiveCategory> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.ArchiveFile;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface ArchiveFileMapper extends BaseMapper<ArchiveFile> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.Archive;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface ArchiveMapper extends BaseMapper<Archive> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.ArchiveVolume;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface ArchiveVolumeMapper extends BaseMapper<ArchiveVolume> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.AssetInventory;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface AssetInventoryMapper extends BaseMapper<AssetInventory> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.Bridge;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface BridgeMapper extends BaseMapper<Bridge> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.DefectAsset;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface DefectAssetMapper extends BaseMapper<DefectAsset> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.Defect;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface DefectMapper extends BaseMapper<Defect> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.DefectType;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface DefectTypeMapper extends BaseMapper<DefectType> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.Facility;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface FacilityMapper extends BaseMapper<Facility> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.FacilityTypeField;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface FacilityTypeFieldMapper extends BaseMapper<FacilityTypeField> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.FacilityType;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface FacilityTypeMapper extends BaseMapper<FacilityType> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.InspectionPlan;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface InspectionPlanMapper extends BaseMapper<InspectionPlan> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.InspectionRecord;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface InspectionRecordMapper extends BaseMapper<InspectionRecord> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.KnowledgeCategory;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface KnowledgeCategoryMapper extends BaseMapper<KnowledgeCategory> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.Knowledge;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface KnowledgeMapper extends BaseMapper<Knowledge> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.MaintenanceDept;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface MaintenanceDeptMapper extends BaseMapper<MaintenanceDept> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.MaintenanceEquipment;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface MaintenanceEquipmentMapper extends BaseMapper<MaintenanceEquipment> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.MaintenancePerson;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface MaintenancePersonMapper extends BaseMapper<MaintenancePerson> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.Road;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface RoadMapper extends BaseMapper<Road> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.RoadSection;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface RoadSectionMapper extends BaseMapper<RoadSection> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.RoadUpgrading;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface RoadUpgradingMapper extends BaseMapper<RoadUpgrading> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.Slope;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface SlopeMapper extends BaseMapper<Slope> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.wanji.software.tocc.infra.maint.model.po.UserRoadSection;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface UserRoadSectionMapper extends BaseMapper<UserRoadSection> {
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
/**
|
||||
* 表的 Mapper 接口放在这个包,启动类已经扫描。
|
||||
*/
|
||||
package com.wanji.software.tocc.infra.maint.mapper;
|
||||
+99
@@ -0,0 +1,99 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 工程建设档案表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_ARCHIVE")
|
||||
@Schema(description = "工程建设档案表")
|
||||
public class Archive {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 档案分类ID */
|
||||
@Schema(description = "档案分类ID")
|
||||
private String archiveCategoryId;
|
||||
|
||||
/** 档案编号 */
|
||||
@Schema(description = "档案编号")
|
||||
private String archiveCode;
|
||||
|
||||
/** 档案名称 */
|
||||
@Schema(description = "档案名称")
|
||||
private String archiveName;
|
||||
|
||||
/** 工程名称 */
|
||||
@Schema(description = "工程名称")
|
||||
private String projectName;
|
||||
|
||||
/** 阶段(前期、设计、施工、监理、竣工、运维) */
|
||||
@Schema(description = "阶段(前期、设计、施工、监理、竣工、运维)")
|
||||
private Integer phase;
|
||||
|
||||
/** 编制人 */
|
||||
@Schema(description = "编制人")
|
||||
private String editor;
|
||||
|
||||
/** 审核人 */
|
||||
@Schema(description = "审核人")
|
||||
private String checker;
|
||||
|
||||
/** 批准人 */
|
||||
@Schema(description = "批准人")
|
||||
private String approver;
|
||||
|
||||
/** 形成日期 */
|
||||
@Schema(description = "形成日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate formDate;
|
||||
|
||||
/** 保管期限 */
|
||||
@Schema(description = "保管期限")
|
||||
private String retentionPeriod;
|
||||
|
||||
/** 总卷数(卷) */
|
||||
@Schema(description = "总卷数(卷)")
|
||||
private Integer totalVolumes;
|
||||
|
||||
/** 总件数(件) */
|
||||
@Schema(description = "总件数(件)")
|
||||
private Integer totalFiles;
|
||||
|
||||
/** 状态 */
|
||||
@Schema(description = "状态")
|
||||
private Integer status;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 工程建设档案-资产关联表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_ARCHIVE_ASSET")
|
||||
@Schema(description = "工程建设档案-资产关联表")
|
||||
public class ArchiveAsset {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 档案ID */
|
||||
@Schema(description = "档案ID")
|
||||
private String archiveId;
|
||||
|
||||
/** 资产类型(道路、桥梁、边坡、设施) */
|
||||
@Schema(description = "资产类型(道路、桥梁、边坡、设施)")
|
||||
private Integer assetType;
|
||||
|
||||
/** 资产ID */
|
||||
@Schema(description = "资产ID")
|
||||
private String assetId;
|
||||
|
||||
/** 排序 */
|
||||
@Schema(description = "排序")
|
||||
private Integer orderNum;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 工程建设档案分类表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_ARCHIVE_CATEGORY")
|
||||
@Schema(description = "工程建设档案分类表")
|
||||
public class ArchiveCategory {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 上级分类ID */
|
||||
@Schema(description = "上级分类ID")
|
||||
private String parentId;
|
||||
|
||||
/** 分类编码 */
|
||||
@Schema(description = "分类编码")
|
||||
private String code;
|
||||
|
||||
/** 分类名称 */
|
||||
@Schema(description = "分类名称")
|
||||
private String name;
|
||||
|
||||
/** 本层级排序 */
|
||||
@Schema(description = "本层级排序")
|
||||
private Integer orderNum;
|
||||
|
||||
/** 路径 */
|
||||
@Schema(description = "路径")
|
||||
@TableField("\"path\"")
|
||||
private String path;
|
||||
|
||||
/** 是否叶子节点 */
|
||||
@Schema(description = "是否叶子节点")
|
||||
private Integer isLeaf;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 工程建设档案文件表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_ARCHIVE_FILE")
|
||||
@Schema(description = "工程建设档案文件表")
|
||||
public class ArchiveFile {
|
||||
|
||||
/** id */
|
||||
@Schema(description = "id")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 档案ID */
|
||||
@Schema(description = "档案ID")
|
||||
private String archiveId;
|
||||
|
||||
/** 案卷ID */
|
||||
@Schema(description = "案卷ID")
|
||||
private String volumeId;
|
||||
|
||||
/** 件号 */
|
||||
@Schema(description = "件号")
|
||||
private Integer orderNum;
|
||||
|
||||
/** 文件题名 */
|
||||
@Schema(description = "文件题名")
|
||||
private String fileTitle;
|
||||
|
||||
/** 状态 */
|
||||
@Schema(description = "状态")
|
||||
private Integer status;
|
||||
|
||||
/** 附件ID */
|
||||
@Schema(description = "附件ID")
|
||||
private String attachmentId;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+105
@@ -0,0 +1,105 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 工程建设档案案卷表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_ARCHIVE_VOLUME")
|
||||
@Schema(description = "工程建设档案案卷表")
|
||||
public class ArchiveVolume {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 档案ID */
|
||||
@Schema(description = "档案ID")
|
||||
private String archiveId;
|
||||
|
||||
/** 卷号 */
|
||||
@Schema(description = "卷号")
|
||||
private Integer orderNum;
|
||||
|
||||
/** 卷内编号 */
|
||||
@Schema(description = "卷内编号")
|
||||
private String volumeCode;
|
||||
|
||||
/** 案卷题名 */
|
||||
@Schema(description = "案卷题名")
|
||||
private String volumeTitle;
|
||||
|
||||
/** 文件起始日期 */
|
||||
@Schema(description = "文件起始日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate startDate;
|
||||
|
||||
/** 文件终止日期 */
|
||||
@Schema(description = "文件终止日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate endDate;
|
||||
|
||||
/** 立卷人 */
|
||||
@Schema(description = "立卷人")
|
||||
private String filer;
|
||||
|
||||
/** 检查人 */
|
||||
@Schema(description = "检查人")
|
||||
private String inspector;
|
||||
|
||||
/** 审批人 */
|
||||
@Schema(description = "审批人")
|
||||
private String approver;
|
||||
|
||||
/** 立卷日期 */
|
||||
@Schema(description = "立卷日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate fileDate;
|
||||
|
||||
/** 库房位置(柜号/架号/层号) */
|
||||
@Schema(description = "库房位置(柜号/架号/层号)")
|
||||
private String storageLocation;
|
||||
|
||||
/** 保管期限 */
|
||||
@Schema(description = "保管期限")
|
||||
private String retentionPeriod;
|
||||
|
||||
/** 总件数(件) */
|
||||
@Schema(description = "总件数(件)")
|
||||
private Integer totalFiles;
|
||||
|
||||
/** 状态 */
|
||||
@Schema(description = "状态")
|
||||
private Integer status;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+100
@@ -0,0 +1,100 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 资产采集表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_ASSET_INVENTORY")
|
||||
@Schema(description = "资产采集表")
|
||||
public class AssetInventory {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 管养单位ID(冗余) */
|
||||
@Schema(description = "管养单位ID(冗余)")
|
||||
private String deptId;
|
||||
|
||||
/** 道路ID(冗余) */
|
||||
@Schema(description = "道路ID(冗余)")
|
||||
private String roadId;
|
||||
|
||||
/** 路段ID(冗余) */
|
||||
@Schema(description = "路段ID(冗余)")
|
||||
private String roadSectionId;
|
||||
|
||||
/** 资产类型(桥梁、边坡、设施) */
|
||||
@Schema(description = "资产类型(桥梁、边坡、设施)")
|
||||
private Integer assetType;
|
||||
|
||||
/** 资产ID */
|
||||
@Schema(description = "资产ID")
|
||||
private String assetId;
|
||||
|
||||
/** 资产状态(在建、在用、停用、待拆除、灭失) */
|
||||
@Schema(description = "资产状态(在建、在用、停用、待拆除、灭失)")
|
||||
private Integer assetStatus;
|
||||
|
||||
/** 附件(图片、视频) */
|
||||
@Schema(description = "附件(图片、视频)")
|
||||
private String attacmentIds;
|
||||
|
||||
/** 状态(草稿、已提交、审核通过、审核驳回) */
|
||||
@Schema(description = "状态(草稿、已提交、审核通过、审核驳回)")
|
||||
private Integer status;
|
||||
|
||||
/** 提交人 */
|
||||
@Schema(description = "提交人")
|
||||
private String submitter;
|
||||
|
||||
/** 提交时间 */
|
||||
@Schema(description = "提交时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate submitTime;
|
||||
|
||||
/** 审核人 */
|
||||
@Schema(description = "审核人")
|
||||
private String checker;
|
||||
|
||||
/** 审核时间 */
|
||||
@Schema(description = "审核时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate checkTime;
|
||||
|
||||
/** 审核意见 */
|
||||
@Schema(description = "审核意见")
|
||||
private String checkComment;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+131
@@ -0,0 +1,131 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 桥梁信息表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_BRIDGE")
|
||||
@Schema(description = "桥梁信息表")
|
||||
public class Bridge {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 管养单位ID */
|
||||
@Schema(description = "管养单位ID")
|
||||
private String deptId;
|
||||
|
||||
/** 道路ID */
|
||||
@Schema(description = "道路ID")
|
||||
private String roadId;
|
||||
|
||||
/** 路段ID */
|
||||
@Schema(description = "路段ID")
|
||||
private String roadSectionId;
|
||||
|
||||
/** 桥梁编码 */
|
||||
@Schema(description = "桥梁编码")
|
||||
private String bridgeCode;
|
||||
|
||||
/** 桥梁名称 */
|
||||
@Schema(description = "桥梁名称")
|
||||
private String bridgeName;
|
||||
|
||||
/** 起点桩号 */
|
||||
@Schema(description = "起点桩号")
|
||||
private String chainageStart;
|
||||
|
||||
/** 终点桩号 */
|
||||
@Schema(description = "终点桩号")
|
||||
private String chainageEnd;
|
||||
|
||||
/** 桥梁类型(梁式桥、拱桥、悬索桥、斜拉桥、其他) */
|
||||
@Schema(description = "桥梁类型(梁式桥、拱桥、悬索桥、斜拉桥、其他)")
|
||||
private Integer bridgeType;
|
||||
|
||||
/** 桥梁全长(m) */
|
||||
@Schema(description = "桥梁全长(m)")
|
||||
private BigDecimal bridgeLen;
|
||||
|
||||
/** 跨径总长(m) */
|
||||
@Schema(description = "跨径总长(m)")
|
||||
private BigDecimal totalSpanLen;
|
||||
|
||||
/** 桥面净宽(m) */
|
||||
@Schema(description = "桥面净宽(m)")
|
||||
private BigDecimal deckClearWidth;
|
||||
|
||||
/** 建设单位 */
|
||||
@Schema(description = "建设单位")
|
||||
private String owner;
|
||||
|
||||
/** 设计单位 */
|
||||
@Schema(description = "设计单位")
|
||||
private String designer;
|
||||
|
||||
/** 施工单位 */
|
||||
@Schema(description = "施工单位")
|
||||
private String contractor;
|
||||
|
||||
/** 监理单位 */
|
||||
@Schema(description = "监理单位")
|
||||
private String supervisor;
|
||||
|
||||
/** 行政区划ID */
|
||||
@Schema(description = "行政区划ID")
|
||||
private String regionId;
|
||||
|
||||
/** 经度 */
|
||||
@Schema(description = "经度")
|
||||
private BigDecimal longitude;
|
||||
|
||||
/** 纬度 */
|
||||
@Schema(description = "纬度")
|
||||
private BigDecimal latitude;
|
||||
|
||||
/** 状态(在建、在用、停用、待拆除、灭失) */
|
||||
@Schema(description = "状态(在建、在用、停用、待拆除、灭失)")
|
||||
private Integer status;
|
||||
|
||||
/** 技术状态(优、良、中、次、差) */
|
||||
@Schema(description = "技术状态(优、良、中、次、差)")
|
||||
private Integer techStatus;
|
||||
|
||||
/** 附件 */
|
||||
@Schema(description = "附件")
|
||||
private String attacmentIds;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+178
@@ -0,0 +1,178 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 隐患表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_DEFECT")
|
||||
@Schema(description = "隐患表")
|
||||
public class Defect {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 管养单位ID(冗余) */
|
||||
@Schema(description = "管养单位ID(冗余)")
|
||||
private String deptId;
|
||||
|
||||
/** 道路ID */
|
||||
@Schema(description = "道路ID")
|
||||
private String roadId;
|
||||
|
||||
/** 路段ID */
|
||||
@Schema(description = "路段ID")
|
||||
private String roadSectionId;
|
||||
|
||||
/** 隐患起点桩号 */
|
||||
@Schema(description = "隐患起点桩号")
|
||||
private String chainageStart;
|
||||
|
||||
/** 隐患终点桩号 */
|
||||
@Schema(description = "隐患终点桩号")
|
||||
private String chainageEnd;
|
||||
|
||||
/** 检测时间 */
|
||||
@Schema(description = "检测时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate inspectionDate;
|
||||
|
||||
/** 隐患类别ID */
|
||||
@Schema(description = "隐患类别ID")
|
||||
private String defectTypeId;
|
||||
|
||||
/** 隐患等级(低风险、一般风险、较大风险、重大风险) */
|
||||
@Schema(description = "隐患等级(低风险、一般风险、较大风险、重大风险)")
|
||||
private Integer defectGrade;
|
||||
|
||||
/** 治理措施 */
|
||||
@Schema(description = "治理措施")
|
||||
private String remedialMeasure;
|
||||
|
||||
/** 数量 */
|
||||
@Schema(description = "数量")
|
||||
private BigDecimal remedialQty;
|
||||
|
||||
/** 预估金额(元) */
|
||||
@Schema(description = "预估金额(元)")
|
||||
private BigDecimal estimatedAmt;
|
||||
|
||||
/** 病害描述 */
|
||||
@Schema(description = "病害描述")
|
||||
private String defectDescription;
|
||||
|
||||
/** 病害附件(图片、视频) */
|
||||
@Schema(description = "病害附件(图片、视频)")
|
||||
private String defectAttacmentIds;
|
||||
|
||||
/** 处置人(路长、巡查人员) */
|
||||
@Schema(description = "处置人(路长、巡查人员)")
|
||||
private String maintenancer;
|
||||
|
||||
/** 养护类型(日常养护、预防养护、修复养护、专项养护、应急养护) */
|
||||
@Schema(description = "养护类型(日常养护、预防养护、修复养护、专项养护、应急养护)")
|
||||
private Integer maintenanceType;
|
||||
|
||||
/** 养护开始日期 */
|
||||
@Schema(description = "养护开始日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate maintenanceStartDate;
|
||||
|
||||
/** 养护结束日期 */
|
||||
@Schema(description = "养护结束日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate maintenanceEndDate;
|
||||
|
||||
/** 养护内容 */
|
||||
@Schema(description = "养护内容")
|
||||
private String maintenanceContent;
|
||||
|
||||
/** 养护附件(图片、视频) */
|
||||
@Schema(description = "养护附件(图片、视频)")
|
||||
private String maintenanceAttacmentIds;
|
||||
|
||||
/** 状态(草稿、已提交、病害审核通过、病害审核驳回、已处置、处置审核通过、处置审核驳回) */
|
||||
@Schema(description = "状态(草稿、已提交、病害审核通过、病害审核驳回、已处置、处置审核通过、处置审核驳回)")
|
||||
private Integer status;
|
||||
|
||||
/** 病害提交人(路长、巡查人员) */
|
||||
@Schema(description = "病害提交人(路长、巡查人员)")
|
||||
private String submitter;
|
||||
|
||||
/** 病害提交时间 */
|
||||
@Schema(description = "病害提交时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate submitTime;
|
||||
|
||||
/** 病害审核人(管理员) */
|
||||
@Schema(description = "病害审核人(管理员)")
|
||||
private String checker;
|
||||
|
||||
/** 病害审核时间 */
|
||||
@Schema(description = "病害审核时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate checkTime;
|
||||
|
||||
/** 病害审核意见 */
|
||||
@Schema(description = "病害审核意见")
|
||||
private String checkComment;
|
||||
|
||||
/** 处置结果提交人(路长、巡查人员) */
|
||||
@Schema(description = "处置结果提交人(路长、巡查人员)")
|
||||
private String maintenanceSubmitter;
|
||||
|
||||
/** 处置结果提交时间 */
|
||||
@Schema(description = "处置结果提交时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate maintenanceSubmitTime;
|
||||
|
||||
/** 处置结果审核人(管理员) */
|
||||
@Schema(description = "处置结果审核人(管理员)")
|
||||
private String maintenanceChecker;
|
||||
|
||||
/** 处置结果审核时间 */
|
||||
@Schema(description = "处置结果审核时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate maintenanceCheckTime;
|
||||
|
||||
/** 处置结果审核意见 */
|
||||
@Schema(description = "处置结果审核意见")
|
||||
private String maintenanceCheckComment;
|
||||
|
||||
/** 来源(APP端、PC端、历史数据) */
|
||||
@Schema(description = "来源(APP端、PC端、历史数据)")
|
||||
private Integer source;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 隐患-资产关联表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_DEFECT_ASSET")
|
||||
@Schema(description = "隐患-资产关联表")
|
||||
public class DefectAsset {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 隐患ID */
|
||||
@Schema(description = "隐患ID")
|
||||
private String defectId;
|
||||
|
||||
/** 资产类型(桥梁、边坡、设施) */
|
||||
@Schema(description = "资产类型(桥梁、边坡、设施)")
|
||||
private Integer assetType;
|
||||
|
||||
/** 资产ID */
|
||||
@Schema(description = "资产ID")
|
||||
private String assetId;
|
||||
|
||||
/** 排序 */
|
||||
@Schema(description = "排序")
|
||||
private Integer orderNum;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 隐患类别表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_DEFECT_TYPE")
|
||||
@Schema(description = "隐患类别表")
|
||||
public class DefectType {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 名称 */
|
||||
@Schema(description = "名称")
|
||||
private String name;
|
||||
|
||||
/** 计量单位(㎡、m³) */
|
||||
@Schema(description = "计量单位(㎡、m³)")
|
||||
private String unit;
|
||||
|
||||
/** 排序 */
|
||||
@Schema(description = "排序")
|
||||
private Integer orderNum;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 设施信息表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_FACILITY")
|
||||
@Schema(description = "设施信息表")
|
||||
public class Facility {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 管养单位ID */
|
||||
@Schema(description = "管养单位ID")
|
||||
private String deptId;
|
||||
|
||||
/** 道路ID */
|
||||
@Schema(description = "道路ID")
|
||||
private String roadId;
|
||||
|
||||
/** 路段ID */
|
||||
@Schema(description = "路段ID")
|
||||
private String roadSectionId;
|
||||
|
||||
/** 设施类型ID */
|
||||
@Schema(description = "设施类型ID")
|
||||
private String facilityTypeId;
|
||||
|
||||
/** 设施编码 */
|
||||
@Schema(description = "设施编码")
|
||||
private String facilityCode;
|
||||
|
||||
/** 设施名称 */
|
||||
@Schema(description = "设施名称")
|
||||
private String facilityName;
|
||||
|
||||
/** 桩号 */
|
||||
@Schema(description = "桩号")
|
||||
private String chainage;
|
||||
|
||||
/** 版面形状 */
|
||||
@Schema(description = "版面形状")
|
||||
private String faceShape;
|
||||
|
||||
/** 版面材质 */
|
||||
@Schema(description = "版面材质")
|
||||
private String faceMaterial;
|
||||
|
||||
/** 版面尺寸 */
|
||||
@Schema(description = "版面尺寸")
|
||||
private String faceDimension;
|
||||
|
||||
/** 支撑方式(单柱式、双柱式、悬臂式、门架式、附着式、标志桥、桁架式、落地式、其他) */
|
||||
@Schema(description = "支撑方式(单柱式、双柱式、悬臂式、门架式、附着式、标志桥、桁架式、落地式、其他)")
|
||||
private Integer mountingType;
|
||||
|
||||
/** 行政区划ID */
|
||||
@Schema(description = "行政区划ID")
|
||||
private String regionId;
|
||||
|
||||
/** 经度 */
|
||||
@Schema(description = "经度")
|
||||
private BigDecimal longitude;
|
||||
|
||||
/** 纬度 */
|
||||
@Schema(description = "纬度")
|
||||
private BigDecimal latitude;
|
||||
|
||||
/** 状态(在建、在用、停用、待拆除、灭失) */
|
||||
@Schema(description = "状态(在建、在用、停用、待拆除、灭失)")
|
||||
private Integer status;
|
||||
|
||||
/** 技术状态(优、良、中、次、差) */
|
||||
@Schema(description = "技术状态(优、良、中、次、差)")
|
||||
private Integer techStatus;
|
||||
|
||||
/** 附件 */
|
||||
@Schema(description = "附件")
|
||||
private String attacmentIds;
|
||||
|
||||
/** 自定义扩展属性 */
|
||||
@Schema(description = "自定义扩展属性")
|
||||
private String customProp;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 设施类型表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_FACILITY_TYPE")
|
||||
@Schema(description = "设施类型表")
|
||||
public class FacilityType {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 名称 */
|
||||
@Schema(description = "名称")
|
||||
private String name;
|
||||
|
||||
/** 排序 */
|
||||
@Schema(description = "排序")
|
||||
private Integer orderNum;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 设施类型字段配置表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_FACILITY_TYPE_FIELD")
|
||||
@Schema(description = "设施类型字段配置表")
|
||||
public class FacilityTypeField {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 设施类型ID */
|
||||
@Schema(description = "设施类型ID")
|
||||
private String facilityTypeId;
|
||||
|
||||
/** 字段编码 */
|
||||
@Schema(description = "字段编码")
|
||||
private String fieldCode;
|
||||
|
||||
/** 字段名称 */
|
||||
@Schema(description = "字段名称")
|
||||
private String fieldName;
|
||||
|
||||
/** 字段类型(字符、文本、数字、日期、字典) */
|
||||
@Schema(description = "字段类型(字符、文本、数字、日期、字典)")
|
||||
private Integer fieldType;
|
||||
|
||||
/** 字典编码 */
|
||||
@Schema(description = "字典编码")
|
||||
private String dictCode;
|
||||
|
||||
/** 排序 */
|
||||
@Schema(description = "排序")
|
||||
private Integer orderNum;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 巡查计划表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_INSPECTION_PLAN")
|
||||
@Schema(description = "巡查计划表")
|
||||
public class InspectionPlan {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 管养单位ID(冗余) */
|
||||
@Schema(description = "管养单位ID(冗余)")
|
||||
private String deptId;
|
||||
|
||||
/** 计划名称 */
|
||||
@Schema(description = "计划名称")
|
||||
private String planName;
|
||||
|
||||
/** 巡查类型(日常巡查、经常检查、定期检查) */
|
||||
@Schema(description = "巡查类型(日常巡查、经常检查、定期检查)")
|
||||
private Integer inspectionType;
|
||||
|
||||
/** 道路ID */
|
||||
@Schema(description = "道路ID")
|
||||
private String roadId;
|
||||
|
||||
/** 路段ID */
|
||||
@Schema(description = "路段ID")
|
||||
private String roadSectionId;
|
||||
|
||||
/** 开始日期 */
|
||||
@Schema(description = "开始日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate startDate;
|
||||
|
||||
/** 结束日期 */
|
||||
@Schema(description = "结束日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate endDate;
|
||||
|
||||
/** 频率 */
|
||||
@Schema(description = "频率")
|
||||
private String frequency;
|
||||
|
||||
/** 状态(启用、停用) */
|
||||
@Schema(description = "状态(启用、停用)")
|
||||
private Integer status;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 巡查日志表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_INSPECTION_RECORD")
|
||||
@Schema(description = "巡查日志表")
|
||||
public class InspectionRecord {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 管养单位ID(冗余) */
|
||||
@Schema(description = "管养单位ID(冗余)")
|
||||
private String deptId;
|
||||
|
||||
/** 巡查人员ID(冗余) */
|
||||
@Schema(description = "巡查人员ID(冗余)")
|
||||
private String userId;
|
||||
|
||||
/** 巡查计划ID */
|
||||
@Schema(description = "巡查计划ID")
|
||||
private String inspectionPlanId;
|
||||
|
||||
/** 道路ID */
|
||||
@Schema(description = "道路ID")
|
||||
private String roadId;
|
||||
|
||||
/** 路段ID */
|
||||
@Schema(description = "路段ID")
|
||||
private String roadSectionId;
|
||||
|
||||
/** 巡查开始时间 */
|
||||
@Schema(description = "巡查开始时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate inspectionStartTime;
|
||||
|
||||
/** 巡查结束时间 */
|
||||
@Schema(description = "巡查结束时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate inspectionEndTime;
|
||||
|
||||
/** 巡查轨迹 */
|
||||
@Schema(description = "巡查轨迹")
|
||||
private String inspectionRoute;
|
||||
|
||||
/** 状态(草稿、已提交) */
|
||||
@Schema(description = "状态(草稿、已提交)")
|
||||
private Integer status;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 知识表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_KNOWLEDGE")
|
||||
@Schema(description = "知识表")
|
||||
public class Knowledge {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 知识分类ID */
|
||||
@Schema(description = "知识分类ID")
|
||||
private String knowledgeCategoryId;
|
||||
|
||||
/** 标题 */
|
||||
@Schema(description = "标题")
|
||||
private String title;
|
||||
|
||||
/** 内容 */
|
||||
@Schema(description = "内容")
|
||||
private String content;
|
||||
|
||||
/** 附件ID */
|
||||
@Schema(description = "附件ID")
|
||||
private String attachmentId;
|
||||
|
||||
/** 状态(上架、下架) */
|
||||
@Schema(description = "状态(上架、下架)")
|
||||
private Integer status;
|
||||
|
||||
/** 排序 */
|
||||
@Schema(description = "排序")
|
||||
private Integer orderNum;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 知识分类表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_KNOWLEDGE_CATEGORY")
|
||||
@Schema(description = "知识分类表")
|
||||
public class KnowledgeCategory {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 上级分类ID */
|
||||
@Schema(description = "上级分类ID")
|
||||
private String parentId;
|
||||
|
||||
/** 分类编码 */
|
||||
@Schema(description = "分类编码")
|
||||
private String code;
|
||||
|
||||
/** 分类名称 */
|
||||
@Schema(description = "分类名称")
|
||||
private String name;
|
||||
|
||||
/** 本层级排序 */
|
||||
@Schema(description = "本层级排序")
|
||||
private Integer orderNum;
|
||||
|
||||
/** 路径 */
|
||||
@Schema(description = "路径")
|
||||
@TableField("\"path\"")
|
||||
private String path;
|
||||
|
||||
/** 是否叶子节点 */
|
||||
@Schema(description = "是否叶子节点")
|
||||
private Integer isLeaf;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 养护单位表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_MAINTENANCE_DEPT")
|
||||
@Schema(description = "养护单位表")
|
||||
public class MaintenanceDept {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 单位名称 */
|
||||
@Schema(description = "单位名称")
|
||||
private String deptName;
|
||||
|
||||
/** 联系人 */
|
||||
@Schema(description = "联系人")
|
||||
private String linkman;
|
||||
|
||||
/** 联系方式 */
|
||||
@Schema(description = "联系方式")
|
||||
private String mobile;
|
||||
|
||||
/** 单位地址 */
|
||||
@Schema(description = "单位地址")
|
||||
private String address;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 养护设备表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_MAINTENANCE_EQUIPMENT")
|
||||
@Schema(description = "养护设备表")
|
||||
public class MaintenanceEquipment {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 养护单位ID */
|
||||
@Schema(description = "养护单位ID")
|
||||
private String maintenanceDeptId;
|
||||
|
||||
/** 设备编码 */
|
||||
@Schema(description = "设备编码")
|
||||
private String equipmentCode;
|
||||
|
||||
/** 设备名称 */
|
||||
@Schema(description = "设备名称")
|
||||
private String equipmentName;
|
||||
|
||||
/** 规格型号 */
|
||||
@Schema(description = "规格型号")
|
||||
private String specification;
|
||||
|
||||
/** 生成厂家 */
|
||||
@Schema(description = "生成厂家")
|
||||
private String manufacturer;
|
||||
|
||||
/** 状态(合格、降级、停用、报废) */
|
||||
@Schema(description = "状态(合格、降级、停用、报废)")
|
||||
private Integer status;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 养护人员表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_MAINTENANCE_PERSON")
|
||||
@Schema(description = "养护人员表")
|
||||
public class MaintenancePerson {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 养护单位ID */
|
||||
@Schema(description = "养护单位ID")
|
||||
private String maintenanceDeptId;
|
||||
|
||||
/** 姓名 */
|
||||
@Schema(description = "姓名")
|
||||
private String name;
|
||||
|
||||
/** 性别(男、女) */
|
||||
@Schema(description = "性别(男、女)")
|
||||
private Integer gender;
|
||||
|
||||
/** 手机号 */
|
||||
@Schema(description = "手机号")
|
||||
private String mobile;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 道路信息表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_ROAD")
|
||||
@Schema(description = "道路信息表")
|
||||
public class Road {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 管养单位ID */
|
||||
@Schema(description = "管养单位ID")
|
||||
private String deptId;
|
||||
|
||||
/** 道路编码 */
|
||||
@Schema(description = "道路编码")
|
||||
private String roadCode;
|
||||
|
||||
/** 道路名称 */
|
||||
@Schema(description = "道路名称")
|
||||
private String roadName;
|
||||
|
||||
/** 起点桩号 */
|
||||
@Schema(description = "起点桩号")
|
||||
private String chainageStart;
|
||||
|
||||
/** 终点桩号 */
|
||||
@Schema(description = "终点桩号")
|
||||
private String chainageEnd;
|
||||
|
||||
/** 行政等级(国道、省道、县道、乡道) */
|
||||
@Schema(description = "行政等级(国道、省道、县道、乡道)")
|
||||
private Integer adminLevel;
|
||||
|
||||
/** 道路长度(㎞) */
|
||||
@Schema(description = "道路长度(㎞)")
|
||||
private BigDecimal roadLen;
|
||||
|
||||
/** 路基 */
|
||||
@Schema(description = "路基")
|
||||
private String subgrade;
|
||||
|
||||
/** 路面 */
|
||||
@Schema(description = "路面")
|
||||
private String pavement;
|
||||
|
||||
/** 主要构筑物 */
|
||||
@Schema(description = "主要构筑物")
|
||||
private String majorStructure;
|
||||
|
||||
/** 沿线设施 */
|
||||
@Schema(description = "沿线设施")
|
||||
private String roadsideFacility;
|
||||
|
||||
/** 沿线环境 */
|
||||
@Schema(description = "沿线环境")
|
||||
private String roadsideEnv;
|
||||
|
||||
/** 行政区划ID */
|
||||
@Schema(description = "行政区划ID")
|
||||
private String regionId;
|
||||
|
||||
/** 状态(在建、在用、停用、待拆除、灭失) */
|
||||
@Schema(description = "状态(在建、在用、停用、待拆除、灭失)")
|
||||
private Integer status;
|
||||
|
||||
/** 技术状态(优、良、中、次、差) */
|
||||
@Schema(description = "技术状态(优、良、中、次、差)")
|
||||
private Integer techStatus;
|
||||
|
||||
/** 附件 */
|
||||
@Schema(description = "附件")
|
||||
private String attacmentIds;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+87
@@ -0,0 +1,87 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 路段信息表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_ROAD_SECTION")
|
||||
@Schema(description = "路段信息表")
|
||||
public class RoadSection {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 管养单位ID */
|
||||
@Schema(description = "管养单位ID")
|
||||
private String deptId;
|
||||
|
||||
/** 道路ID */
|
||||
@Schema(description = "道路ID")
|
||||
private String roadId;
|
||||
|
||||
/** 路段编码 */
|
||||
@Schema(description = "路段编码")
|
||||
private String sectionCode;
|
||||
|
||||
/** 路段名称 */
|
||||
@Schema(description = "路段名称")
|
||||
private String sectionName;
|
||||
|
||||
/** 起点桩号 */
|
||||
@Schema(description = "起点桩号")
|
||||
private String chainageStart;
|
||||
|
||||
/** 终点桩号 */
|
||||
@Schema(description = "终点桩号")
|
||||
private String chainageEnd;
|
||||
|
||||
/** 路段长度(㎞) */
|
||||
@Schema(description = "路段长度(㎞)")
|
||||
private BigDecimal sectionLen;
|
||||
|
||||
/** 行政区划ID */
|
||||
@Schema(description = "行政区划ID")
|
||||
private String regionId;
|
||||
|
||||
/** 附件 */
|
||||
@Schema(description = "附件")
|
||||
private String attacmentIds;
|
||||
|
||||
/** 排序 */
|
||||
@Schema(description = "排序")
|
||||
private Integer orderNum;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 改扩建信息表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_ROAD_UPGRADING")
|
||||
@Schema(description = "改扩建信息表")
|
||||
public class RoadUpgrading {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 道路ID */
|
||||
@Schema(description = "道路ID")
|
||||
private String roadId;
|
||||
|
||||
/** 项目编码 */
|
||||
@Schema(description = "项目编码")
|
||||
private String projectCode;
|
||||
|
||||
/** 项目名称 */
|
||||
@Schema(description = "项目名称")
|
||||
private String projectName;
|
||||
|
||||
/** 项目类型(新建、改建、扩建、路面改造、加宽、改线) */
|
||||
@Schema(description = "项目类型(新建、改建、扩建、路面改造、加宽、改线)")
|
||||
private Integer projectType;
|
||||
|
||||
/** 起点桩号 */
|
||||
@Schema(description = "起点桩号")
|
||||
private String chainageStart;
|
||||
|
||||
/** 终点桩号 */
|
||||
@Schema(description = "终点桩号")
|
||||
private String chainageEnd;
|
||||
|
||||
/** 项目来源 */
|
||||
@Schema(description = "项目来源")
|
||||
private String projectSource;
|
||||
|
||||
/** 开工日期 */
|
||||
@Schema(description = "开工日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate commencementDate;
|
||||
|
||||
/** 竣工日期 */
|
||||
@Schema(description = "竣工日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate completionDate;
|
||||
|
||||
/** 验收日期 */
|
||||
@Schema(description = "验收日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate handoverDate;
|
||||
|
||||
/** 工程内容 */
|
||||
@Schema(description = "工程内容")
|
||||
private String content;
|
||||
|
||||
/** 附件 */
|
||||
@Schema(description = "附件")
|
||||
private String attacmentIds;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 边坡信息表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_SLOPE")
|
||||
@Schema(description = "边坡信息表")
|
||||
public class Slope {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 管养单位ID */
|
||||
@Schema(description = "管养单位ID")
|
||||
private String deptId;
|
||||
|
||||
/** 道路ID */
|
||||
@Schema(description = "道路ID")
|
||||
private String roadId;
|
||||
|
||||
/** 路段ID */
|
||||
@Schema(description = "路段ID")
|
||||
private String roadSectionId;
|
||||
|
||||
/** 边坡编码 */
|
||||
@Schema(description = "边坡编码")
|
||||
private String slopeCode;
|
||||
|
||||
/** 边坡名称 */
|
||||
@Schema(description = "边坡名称")
|
||||
private String slopeName;
|
||||
|
||||
/** 起点桩号 */
|
||||
@Schema(description = "起点桩号")
|
||||
private String chainageStart;
|
||||
|
||||
/** 终点桩号 */
|
||||
@Schema(description = "终点桩号")
|
||||
private String chainageEnd;
|
||||
|
||||
/** 边坡类型(挖方边坡、填方边坡 、半填半挖边坡) */
|
||||
@Schema(description = "边坡类型(挖方边坡、填方边坡 、半填半挖边坡)")
|
||||
private Integer slopeType;
|
||||
|
||||
/** 边坡位置(左侧、右侧、中央分隔带) */
|
||||
@Schema(description = "边坡位置(左侧、右侧、中央分隔带)")
|
||||
private Integer slopePosition;
|
||||
|
||||
/** 边坡高度(m) */
|
||||
@Schema(description = "边坡高度(m)")
|
||||
private BigDecimal slopeHeight;
|
||||
|
||||
/** 行政区划ID */
|
||||
@Schema(description = "行政区划ID")
|
||||
private String regionId;
|
||||
|
||||
/** 经度 */
|
||||
@Schema(description = "经度")
|
||||
private BigDecimal longitude;
|
||||
|
||||
/** 纬度 */
|
||||
@Schema(description = "纬度")
|
||||
private BigDecimal latitude;
|
||||
|
||||
/** 状态(在建、在用、停用、待拆除、灭失) */
|
||||
@Schema(description = "状态(在建、在用、停用、待拆除、灭失)")
|
||||
private Integer status;
|
||||
|
||||
/** 技术状态(优、良、中、次、差) */
|
||||
@Schema(description = "技术状态(优、良、中、次、差)")
|
||||
private Integer techStatus;
|
||||
|
||||
/** 附件 */
|
||||
@Schema(description = "附件")
|
||||
private String attacmentIds;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
package com.wanji.software.tocc.infra.maint.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.time.LocalDate;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 用户-路段关联表
|
||||
*/
|
||||
@Data
|
||||
@TableName("MTC_USER_ROAD_SECTION")
|
||||
@Schema(description = "用户-路段关联表")
|
||||
public class UserRoadSection {
|
||||
|
||||
/** 主键 */
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "ID", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/** 用户ID(路长、巡查人员) */
|
||||
@Schema(description = "用户ID(路长、巡查人员)")
|
||||
private String userId;
|
||||
|
||||
/** 道路ID */
|
||||
@Schema(description = "道路ID")
|
||||
private String roadId;
|
||||
|
||||
/** 路段ID */
|
||||
@Schema(description = "路段ID")
|
||||
private String roadSectionId;
|
||||
|
||||
/** 排序 */
|
||||
@Schema(description = "排序")
|
||||
private Integer orderNum;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 创建人 */
|
||||
@Schema(description = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate createTime;
|
||||
|
||||
/** 最近修改人 */
|
||||
@Schema(description = "最近修改人")
|
||||
private String updateBy;
|
||||
|
||||
/** 最近修改时间 */
|
||||
@Schema(description = "最近修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate updateTime;
|
||||
}
|
||||
+167
@@ -0,0 +1,167 @@
|
||||
package com.wanji.software.tocc.infra.maint.support;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.wanji.software.tocc.common.model.Result;
|
||||
import com.wanji.software.tocc.maint.support.CurrentUser;
|
||||
import com.wanji.software.tocc.maint.support.CurrentUserHolder;
|
||||
import com.wanji.software.tocc.maint.support.PageResult;
|
||||
import org.springframework.beans.BeanWrapper;
|
||||
import org.springframework.beans.BeanWrapperImpl;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
import java.beans.PropertyDescriptor;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.UUID;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 各表通用的增删改查。创建人和修改人取当前请求用户。
|
||||
*/
|
||||
public final class MaintRecords {
|
||||
|
||||
private MaintRecords() {
|
||||
}
|
||||
|
||||
public static <E, R> Result<R> create(BaseMapper<E> mapper, Object request, Class<E> entityClass, Class<R> responseClass) {
|
||||
E entity = newInstance(entityClass);
|
||||
copyNonNull(request, entity);
|
||||
if (!StringUtils.hasText(readString(entity, "id"))) {
|
||||
write(entity, "id", UUID.randomUUID().toString());
|
||||
}
|
||||
CurrentUser user = CurrentUserHolder.get();
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
write(entity, "createBy", user.getUserId());
|
||||
write(entity, "createTime", now);
|
||||
write(entity, "updateBy", user.getUserId());
|
||||
write(entity, "updateTime", now);
|
||||
mapper.insert(entity);
|
||||
return Result.ok(copy(entity, responseClass));
|
||||
}
|
||||
|
||||
public static <E, R> Result<R> get(BaseMapper<E> mapper, String id, Class<R> responseClass) {
|
||||
E entity = mapper.selectById(id);
|
||||
if (entity == null) {
|
||||
return Result.fail("数据不存在");
|
||||
}
|
||||
return Result.ok(copy(entity, responseClass));
|
||||
}
|
||||
|
||||
public static <E> Result<Boolean> update(BaseMapper<E> mapper, Object request) {
|
||||
String id = readString(request, "id");
|
||||
if (!StringUtils.hasText(id)) {
|
||||
return Result.fail("主键不能为空");
|
||||
}
|
||||
E entity = mapper.selectById(id);
|
||||
if (entity == null) {
|
||||
return Result.fail("数据不存在");
|
||||
}
|
||||
copyNonNull(request, entity);
|
||||
CurrentUser user = CurrentUserHolder.get();
|
||||
write(entity, "updateBy", user.getUserId());
|
||||
write(entity, "updateTime", LocalDateTime.now());
|
||||
return Result.ok(mapper.updateById(entity) > 0);
|
||||
}
|
||||
|
||||
public static <E> Result<Boolean> delete(BaseMapper<E> mapper, String id) {
|
||||
if (!StringUtils.hasText(id)) {
|
||||
return Result.fail("主键不能为空");
|
||||
}
|
||||
return Result.ok(mapper.deleteById(id) > 0);
|
||||
}
|
||||
|
||||
public static <E, R> Result<PageResult<R>> page(BaseMapper<E> mapper, Object request, Class<E> entityClass, Class<R> responseClass) {
|
||||
long pageNo = readLong(request, "pageNo", 1L);
|
||||
long pageSize = readLong(request, "pageSize", 10L);
|
||||
QueryWrapper<E> wrapper = new QueryWrapper<E>();
|
||||
BeanWrapper source = new BeanWrapperImpl(request);
|
||||
for (PropertyDescriptor descriptor : source.getPropertyDescriptors()) {
|
||||
String name = descriptor.getName();
|
||||
if ("class".equals(name) || "pageNo".equals(name) || "pageSize".equals(name)) {
|
||||
continue;
|
||||
}
|
||||
Object value = source.getPropertyValue(name);
|
||||
if (value == null) {
|
||||
continue;
|
||||
}
|
||||
if (value instanceof String && !StringUtils.hasText((String) value)) {
|
||||
continue;
|
||||
}
|
||||
wrapper.eq(column(name), value);
|
||||
}
|
||||
wrapper.orderByDesc("CREATE_TIME");
|
||||
Page<E> page = mapper.selectPage(new Page<E>(pageNo, pageSize), wrapper);
|
||||
PageResult<R> result = new PageResult<R>();
|
||||
result.setTotal(page.getTotal());
|
||||
result.setPageNo(page.getCurrent());
|
||||
result.setPageSize(page.getSize());
|
||||
result.setRecords(page.getRecords().stream().map(item -> copy(item, responseClass)).collect(Collectors.toList()));
|
||||
return Result.ok(result);
|
||||
}
|
||||
|
||||
private static String column(String property) {
|
||||
if ("path".equals(property)) {
|
||||
return "\"path\"";
|
||||
}
|
||||
StringBuilder column = new StringBuilder();
|
||||
for (int i = 0; i < property.length(); i++) {
|
||||
char current = property.charAt(i);
|
||||
if (Character.isUpperCase(current) && i > 0) {
|
||||
column.append('_');
|
||||
}
|
||||
column.append(Character.toUpperCase(current));
|
||||
}
|
||||
return column.toString();
|
||||
}
|
||||
|
||||
private static void copyNonNull(Object source, Object target) {
|
||||
BeanWrapper src = new BeanWrapperImpl(source);
|
||||
BeanWrapper dst = new BeanWrapperImpl(target);
|
||||
for (PropertyDescriptor descriptor : src.getPropertyDescriptors()) {
|
||||
String name = descriptor.getName();
|
||||
if ("class".equals(name)) {
|
||||
continue;
|
||||
}
|
||||
Object value = src.getPropertyValue(name);
|
||||
if (value != null && dst.isWritableProperty(name)) {
|
||||
dst.setPropertyValue(name, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static <T> T copy(Object source, Class<T> targetClass) {
|
||||
T target = newInstance(targetClass);
|
||||
copyNonNull(source, target);
|
||||
return target;
|
||||
}
|
||||
|
||||
private static <T> T newInstance(Class<T> type) {
|
||||
try {
|
||||
return type.getDeclaredConstructor().newInstance();
|
||||
} catch (ReflectiveOperationException ex) {
|
||||
throw new IllegalStateException("无法创建 " + type.getSimpleName(), ex);
|
||||
}
|
||||
}
|
||||
|
||||
private static String readString(Object bean, String property) {
|
||||
Object value = new BeanWrapperImpl(bean).getPropertyValue(property);
|
||||
return value == null ? null : String.valueOf(value);
|
||||
}
|
||||
|
||||
private static long readLong(Object bean, String property, long fallback) {
|
||||
Object value = new BeanWrapperImpl(bean).getPropertyValue(property);
|
||||
if (value instanceof Number) {
|
||||
long number = ((Number) value).longValue();
|
||||
return number > 0 ? number : fallback;
|
||||
}
|
||||
return fallback;
|
||||
}
|
||||
|
||||
private static void write(Object bean, String property, Object value) {
|
||||
BeanWrapper wrapper = new BeanWrapperImpl(bean);
|
||||
if (wrapper.isWritableProperty(property)) {
|
||||
wrapper.setPropertyValue(property, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
server:
|
||||
port: 7424
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: maint-infra
|
||||
jackson:
|
||||
serialization:
|
||||
write-dates-as-timestamps: false
|
||||
date-format: yyyy-MM-dd HH:mm:ss
|
||||
time-zone: GMT+8
|
||||
datasource:
|
||||
url: jdbc:dm://127.0.0.1:5236?schema=SZ_MAINT&compatibleMode=4&characterEncoding=UTF-8
|
||||
username: SYSDBA
|
||||
password: 请改成你本机达梦的口令
|
||||
driver-class-name: dm.jdbc.driver.DmDriver
|
||||
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath:/mapper/*Mapper.xml
|
||||
type-aliases-package: com.wanji.software.tocc.infra.maint.model.po
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
global-config:
|
||||
db-config:
|
||||
id-type: input
|
||||
|
||||
springdoc:
|
||||
api-docs:
|
||||
enabled: true
|
||||
path: /v3/api-docs
|
||||
swagger-ui:
|
||||
enabled: true
|
||||
path: /swagger-ui.html
|
||||
|
||||
knife4j:
|
||||
enable: true
|
||||
setting:
|
||||
language: zh_cn
|
||||
Reference in New Issue
Block a user