From a8d7f52f5f49978b4da057c4fdfe5150f83f0796 Mon Sep 17 00:00:00 2001 From: wu Date: Mon, 11 Mar 2024 15:12:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AC=A1=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 39 ++ pom.xml | 100 +++ src/main/java/com/mudu/MuduApplication.java | 19 + .../com/mudu/base/constant/HttpStatus.java | 93 +++ .../mudu/base/controller/BaseController.java | 78 +++ .../java/com/mudu/base/domain/AjaxResult.java | 202 ++++++ .../com/mudu/config/MybatisPlusConfig.java | 26 + .../mudu/controller/ASafeBmxxController.java | 105 +++ .../mudu/controller/ASafeFxdController.java | 50 ++ .../mudu/controller/ASafeFxdwzController.java | 105 +++ .../mudu/controller/ASafeFxkController.java | 105 +++ .../mudu/controller/ASafeGllbController.java | 105 +++ .../mudu/controller/ASafeJcydController.java | 105 +++ .../controller/ASafeQybhysbController.java | 105 +++ .../controller/ASafeQyfxwzController.java | 105 +++ .../controller/ASafeQyjcxxController.java | 117 ++++ .../mudu/controller/ASafeXcrwController.java | 105 +++ .../controller/ASafeXcrwjcxController.java | 105 +++ .../ASafeXcrwjcxzgxxController.java | 105 +++ .../controller/ASafeYhzgxxController.java | 105 +++ .../mudu/controller/ASafeZcrwController.java | 105 +++ .../controller/ASafeZcrwjlController.java | 105 +++ src/main/java/com/mudu/entity/ASafeBmxx.java | 69 ++ src/main/java/com/mudu/entity/ASafeFxd.java | 129 ++++ .../com/mudu/entity/ASafeFxd20231220.java | 128 ++++ src/main/java/com/mudu/entity/ASafeFxdwz.java | 73 +++ src/main/java/com/mudu/entity/ASafeFxk.java | 133 ++++ src/main/java/com/mudu/entity/ASafeGllb.java | 63 ++ src/main/java/com/mudu/entity/ASafeJcyd.java | 85 +++ .../java/com/mudu/entity/ASafeQybhysb.java | 63 ++ .../java/com/mudu/entity/ASafeQyfxwz.java | 68 ++ .../java/com/mudu/entity/ASafeQyjcxx.java | 609 ++++++++++++++++++ src/main/java/com/mudu/entity/ASafeXcrw.java | 103 +++ .../java/com/mudu/entity/ASafeXcrwjcx.java | 217 +++++++ .../com/mudu/entity/ASafeXcrwjcxzgxx.java | 93 +++ .../java/com/mudu/entity/ASafeYhzgxx.java | 148 +++++ src/main/java/com/mudu/entity/ASafeZcrw.java | 83 +++ .../java/com/mudu/entity/ASafeZcrwjl.java | 133 ++++ .../dto/response/EnterpriseResponse.java | 145 +++++ .../entity/dto/response/GeneralResponse.java | 37 ++ .../java/com/mudu/mapper/ASafeBmxxMapper.java | 15 + .../java/com/mudu/mapper/ASafeFxdMapper.java | 15 + .../com/mudu/mapper/ASafeFxdwzMapper.java | 15 + .../java/com/mudu/mapper/ASafeFxkMapper.java | 15 + .../java/com/mudu/mapper/ASafeGllbMapper.java | 15 + .../java/com/mudu/mapper/ASafeJcydMapper.java | 15 + .../com/mudu/mapper/ASafeQybhysbMapper.java | 15 + .../com/mudu/mapper/ASafeQyfxwzMapper.java | 15 + .../com/mudu/mapper/ASafeQyjcxxMapper.java | 24 + .../java/com/mudu/mapper/ASafeXcrwMapper.java | 15 + .../com/mudu/mapper/ASafeXcrwjcxMapper.java | 15 + .../mudu/mapper/ASafeXcrwjcxzgxxMapper.java | 15 + .../com/mudu/mapper/ASafeYhzgxxMapper.java | 15 + .../java/com/mudu/mapper/ASafeZcrwMapper.java | 15 + .../com/mudu/mapper/ASafeZcrwjlMapper.java | 15 + .../com/mudu/service/ASafeBmxxService.java | 15 + .../com/mudu/service/ASafeFxdService.java | 15 + .../com/mudu/service/ASafeFxdwzService.java | 15 + .../com/mudu/service/ASafeFxkService.java | 15 + .../com/mudu/service/ASafeGllbService.java | 15 + .../com/mudu/service/ASafeJcydService.java | 15 + .../com/mudu/service/ASafeQybhysbService.java | 15 + .../com/mudu/service/ASafeQyfxwzService.java | 15 + .../com/mudu/service/ASafeQyjcxxService.java | 28 + .../com/mudu/service/ASafeXcrwService.java | 15 + .../com/mudu/service/ASafeXcrwjcxService.java | 15 + .../mudu/service/ASafeXcrwjcxzgxxService.java | 15 + .../com/mudu/service/ASafeYhzgxxService.java | 15 + .../com/mudu/service/ASafeZcrwService.java | 15 + .../com/mudu/service/ASafeZcrwjlService.java | 15 + .../service/impl/ASafeBmxxServiceImpl.java | 19 + .../service/impl/ASafeFxdServiceImpl.java | 19 + .../service/impl/ASafeFxdwzServiceImpl.java | 19 + .../service/impl/ASafeFxkServiceImpl.java | 19 + .../service/impl/ASafeGllbServiceImpl.java | 19 + .../service/impl/ASafeJcydServiceImpl.java | 19 + .../service/impl/ASafeQybhysbServiceImpl.java | 19 + .../service/impl/ASafeQyfxwzServiceImpl.java | 19 + .../service/impl/ASafeQyjcxxServiceImpl.java | 90 +++ .../service/impl/ASafeXcrwServiceImpl.java | 19 + .../service/impl/ASafeXcrwjcxServiceImpl.java | 19 + .../impl/ASafeXcrwjcxzgxxServiceImpl.java | 19 + .../service/impl/ASafeYhzgxxServiceImpl.java | 19 + .../service/impl/ASafeZcrwServiceImpl.java | 19 + .../service/impl/ASafeZcrwjlServiceImpl.java | 19 + src/main/resources/application.yml | 32 + .../mapper/mudu/ASafeQyjcxxMapper.xml | 33 + 87 files changed, 5361 insertions(+) create mode 100644 .gitignore create mode 100644 pom.xml create mode 100644 src/main/java/com/mudu/MuduApplication.java create mode 100644 src/main/java/com/mudu/base/constant/HttpStatus.java create mode 100644 src/main/java/com/mudu/base/controller/BaseController.java create mode 100644 src/main/java/com/mudu/base/domain/AjaxResult.java create mode 100644 src/main/java/com/mudu/config/MybatisPlusConfig.java create mode 100644 src/main/java/com/mudu/controller/ASafeBmxxController.java create mode 100644 src/main/java/com/mudu/controller/ASafeFxdController.java create mode 100644 src/main/java/com/mudu/controller/ASafeFxdwzController.java create mode 100644 src/main/java/com/mudu/controller/ASafeFxkController.java create mode 100644 src/main/java/com/mudu/controller/ASafeGllbController.java create mode 100644 src/main/java/com/mudu/controller/ASafeJcydController.java create mode 100644 src/main/java/com/mudu/controller/ASafeQybhysbController.java create mode 100644 src/main/java/com/mudu/controller/ASafeQyfxwzController.java create mode 100644 src/main/java/com/mudu/controller/ASafeQyjcxxController.java create mode 100644 src/main/java/com/mudu/controller/ASafeXcrwController.java create mode 100644 src/main/java/com/mudu/controller/ASafeXcrwjcxController.java create mode 100644 src/main/java/com/mudu/controller/ASafeXcrwjcxzgxxController.java create mode 100644 src/main/java/com/mudu/controller/ASafeYhzgxxController.java create mode 100644 src/main/java/com/mudu/controller/ASafeZcrwController.java create mode 100644 src/main/java/com/mudu/controller/ASafeZcrwjlController.java create mode 100644 src/main/java/com/mudu/entity/ASafeBmxx.java create mode 100644 src/main/java/com/mudu/entity/ASafeFxd.java create mode 100644 src/main/java/com/mudu/entity/ASafeFxd20231220.java create mode 100644 src/main/java/com/mudu/entity/ASafeFxdwz.java create mode 100644 src/main/java/com/mudu/entity/ASafeFxk.java create mode 100644 src/main/java/com/mudu/entity/ASafeGllb.java create mode 100644 src/main/java/com/mudu/entity/ASafeJcyd.java create mode 100644 src/main/java/com/mudu/entity/ASafeQybhysb.java create mode 100644 src/main/java/com/mudu/entity/ASafeQyfxwz.java create mode 100644 src/main/java/com/mudu/entity/ASafeQyjcxx.java create mode 100644 src/main/java/com/mudu/entity/ASafeXcrw.java create mode 100644 src/main/java/com/mudu/entity/ASafeXcrwjcx.java create mode 100644 src/main/java/com/mudu/entity/ASafeXcrwjcxzgxx.java create mode 100644 src/main/java/com/mudu/entity/ASafeYhzgxx.java create mode 100644 src/main/java/com/mudu/entity/ASafeZcrw.java create mode 100644 src/main/java/com/mudu/entity/ASafeZcrwjl.java create mode 100644 src/main/java/com/mudu/entity/dto/response/EnterpriseResponse.java create mode 100644 src/main/java/com/mudu/entity/dto/response/GeneralResponse.java create mode 100644 src/main/java/com/mudu/mapper/ASafeBmxxMapper.java create mode 100644 src/main/java/com/mudu/mapper/ASafeFxdMapper.java create mode 100644 src/main/java/com/mudu/mapper/ASafeFxdwzMapper.java create mode 100644 src/main/java/com/mudu/mapper/ASafeFxkMapper.java create mode 100644 src/main/java/com/mudu/mapper/ASafeGllbMapper.java create mode 100644 src/main/java/com/mudu/mapper/ASafeJcydMapper.java create mode 100644 src/main/java/com/mudu/mapper/ASafeQybhysbMapper.java create mode 100644 src/main/java/com/mudu/mapper/ASafeQyfxwzMapper.java create mode 100644 src/main/java/com/mudu/mapper/ASafeQyjcxxMapper.java create mode 100644 src/main/java/com/mudu/mapper/ASafeXcrwMapper.java create mode 100644 src/main/java/com/mudu/mapper/ASafeXcrwjcxMapper.java create mode 100644 src/main/java/com/mudu/mapper/ASafeXcrwjcxzgxxMapper.java create mode 100644 src/main/java/com/mudu/mapper/ASafeYhzgxxMapper.java create mode 100644 src/main/java/com/mudu/mapper/ASafeZcrwMapper.java create mode 100644 src/main/java/com/mudu/mapper/ASafeZcrwjlMapper.java create mode 100644 src/main/java/com/mudu/service/ASafeBmxxService.java create mode 100644 src/main/java/com/mudu/service/ASafeFxdService.java create mode 100644 src/main/java/com/mudu/service/ASafeFxdwzService.java create mode 100644 src/main/java/com/mudu/service/ASafeFxkService.java create mode 100644 src/main/java/com/mudu/service/ASafeGllbService.java create mode 100644 src/main/java/com/mudu/service/ASafeJcydService.java create mode 100644 src/main/java/com/mudu/service/ASafeQybhysbService.java create mode 100644 src/main/java/com/mudu/service/ASafeQyfxwzService.java create mode 100644 src/main/java/com/mudu/service/ASafeQyjcxxService.java create mode 100644 src/main/java/com/mudu/service/ASafeXcrwService.java create mode 100644 src/main/java/com/mudu/service/ASafeXcrwjcxService.java create mode 100644 src/main/java/com/mudu/service/ASafeXcrwjcxzgxxService.java create mode 100644 src/main/java/com/mudu/service/ASafeYhzgxxService.java create mode 100644 src/main/java/com/mudu/service/ASafeZcrwService.java create mode 100644 src/main/java/com/mudu/service/ASafeZcrwjlService.java create mode 100644 src/main/java/com/mudu/service/impl/ASafeBmxxServiceImpl.java create mode 100644 src/main/java/com/mudu/service/impl/ASafeFxdServiceImpl.java create mode 100644 src/main/java/com/mudu/service/impl/ASafeFxdwzServiceImpl.java create mode 100644 src/main/java/com/mudu/service/impl/ASafeFxkServiceImpl.java create mode 100644 src/main/java/com/mudu/service/impl/ASafeGllbServiceImpl.java create mode 100644 src/main/java/com/mudu/service/impl/ASafeJcydServiceImpl.java create mode 100644 src/main/java/com/mudu/service/impl/ASafeQybhysbServiceImpl.java create mode 100644 src/main/java/com/mudu/service/impl/ASafeQyfxwzServiceImpl.java create mode 100644 src/main/java/com/mudu/service/impl/ASafeQyjcxxServiceImpl.java create mode 100644 src/main/java/com/mudu/service/impl/ASafeXcrwServiceImpl.java create mode 100644 src/main/java/com/mudu/service/impl/ASafeXcrwjcxServiceImpl.java create mode 100644 src/main/java/com/mudu/service/impl/ASafeXcrwjcxzgxxServiceImpl.java create mode 100644 src/main/java/com/mudu/service/impl/ASafeYhzgxxServiceImpl.java create mode 100644 src/main/java/com/mudu/service/impl/ASafeZcrwServiceImpl.java create mode 100644 src/main/java/com/mudu/service/impl/ASafeZcrwjlServiceImpl.java create mode 100644 src/main/resources/application.yml create mode 100644 src/main/resources/mapper/mudu/ASafeQyjcxxMapper.xml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b14a138 --- /dev/null +++ b/.gitignore @@ -0,0 +1,39 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### IntelliJ IDEA ### +.idea/modules.xml +.idea/jarRepositories.xml +.idea/compiler.xml +.idea/libraries/ +*.iws +*.iml +*.ipr +/.idea + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..7f75db4 --- /dev/null +++ b/pom.xml @@ -0,0 +1,100 @@ + + + 4.0.0 + com.mudu + mudu + 0.0.1-SNAPSHOT + mudu + 木渎数据同步中间服务 + + 1.8 + UTF-8 + UTF-8 + 2.7.6 + + + + org.springframework.boot + spring-boot-starter-web + + + com.mysql + mysql-connector-j + runtime + + + org.projectlombok + lombok + true + + + + com.baomidou + mybatis-plus-boot-starter + 3.5.5 + + + + com.github.xiaoymin + knife4j-openapi2-spring-boot-starter + 4.4.0 + + + + org.springframework.boot + spring-boot-starter-test + test + + + + + cn.hutool + hutool-all + 5.8.16 + + + + + + + org.springframework.boot + spring-boot-dependencies + ${spring-boot.version} + pom + import + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + 1.8 + 1.8 + UTF-8 + + + + org.springframework.boot + spring-boot-maven-plugin + ${spring-boot.version} + + com.mudu.mudu.MuduApplication + true + + + + repackage + + repackage + + + + + + + \ No newline at end of file diff --git a/src/main/java/com/mudu/MuduApplication.java b/src/main/java/com/mudu/MuduApplication.java new file mode 100644 index 0000000..6ee8ed3 --- /dev/null +++ b/src/main/java/com/mudu/MuduApplication.java @@ -0,0 +1,19 @@ +package com.mudu; + +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +/** + * @author wu + * @since 2024/2/26 10:24 + */ + +@SpringBootApplication +@MapperScan("com.mudu.mapper") +public class MuduApplication { + public static void main(String[] args) { + SpringApplication.run(MuduApplication.class, args); + + } +} \ No newline at end of file diff --git a/src/main/java/com/mudu/base/constant/HttpStatus.java b/src/main/java/com/mudu/base/constant/HttpStatus.java new file mode 100644 index 0000000..9218922 --- /dev/null +++ b/src/main/java/com/mudu/base/constant/HttpStatus.java @@ -0,0 +1,93 @@ +package com.mudu.base.constant; + +/** + * 返回状态码 + * + * @author ruoyi + */ +public class HttpStatus { + /** + * 操作成功 + */ + public static final int SUCCESS = 200; + + /** + * 对象创建成功 + */ + public static final int CREATED = 201; + + /** + * 请求已经被接受 + */ + public static final int ACCEPTED = 202; + + /** + * 操作已经执行成功,但是没有返回数据 + */ + public static final int NO_CONTENT = 204; + + /** + * 资源已被移除 + */ + public static final int MOVED_PERM = 301; + + /** + * 重定向 + */ + public static final int SEE_OTHER = 303; + + /** + * 资源没有被修改 + */ + public static final int NOT_MODIFIED = 304; + + /** + * 参数列表错误(缺少,格式不匹配) + */ + public static final int BAD_REQUEST = 400; + + /** + * 未授权 + */ + public static final int UNAUTHORIZED = 401; + + /** + * 访问受限,授权过期 + */ + public static final int FORBIDDEN = 403; + + /** + * 资源,服务未找到 + */ + public static final int NOT_FOUND = 404; + + /** + * 不允许的http方法 + */ + public static final int BAD_METHOD = 405; + + /** + * 资源冲突,或者资源被锁 + */ + public static final int CONFLICT = 409; + + /** + * 不支持的数据,媒体类型 + */ + public static final int UNSUPPORTED_TYPE = 415; + + /** + * 系统内部错误 + */ + public static final int ERROR = 500; + + /** + * 接口未实现 + */ + public static final int NOT_IMPLEMENTED = 501; + + /** + * 系统警告消息 + */ + public static final int WARN = 601; +} diff --git a/src/main/java/com/mudu/base/controller/BaseController.java b/src/main/java/com/mudu/base/controller/BaseController.java new file mode 100644 index 0000000..acd571e --- /dev/null +++ b/src/main/java/com/mudu/base/controller/BaseController.java @@ -0,0 +1,78 @@ +package com.mudu.base.controller; + +import com.mudu.base.domain.AjaxResult; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * web层通用数据处理 + * + * @author ruoyi + */ +public class BaseController { + protected final Logger logger = LoggerFactory.getLogger(this.getClass()); + + + /** + * 返回成功 + */ + public AjaxResult success() { + return AjaxResult.success(); + } + + /** + * 返回失败消息 + */ + public AjaxResult error() { + return AjaxResult.error(); + } + + /** + * 返回成功消息 + */ + public AjaxResult success(String message) { + return AjaxResult.success(message); + } + + /** + * 返回成功消息 + */ + public AjaxResult success(Object data) { + return AjaxResult.success(data); + } + + /** + * 返回失败消息 + */ + public AjaxResult error(String message) { + return AjaxResult.error(message); + } + + /** + * 返回警告消息 + */ + public AjaxResult warn(String message) { + return AjaxResult.warn(message); + } + + /** + * 响应返回结果 + * + * @param rows 影响行数 + * @return 操作结果 + */ + protected AjaxResult toAjax(int rows) { + return rows > 0 ? AjaxResult.success() : AjaxResult.error(); + } + + /** + * 响应返回结果 + * + * @param result 结果 + * @return 操作结果 + */ + protected AjaxResult toAjax(boolean result) { + return result ? success() : error(); + } + +} diff --git a/src/main/java/com/mudu/base/domain/AjaxResult.java b/src/main/java/com/mudu/base/domain/AjaxResult.java new file mode 100644 index 0000000..6166a86 --- /dev/null +++ b/src/main/java/com/mudu/base/domain/AjaxResult.java @@ -0,0 +1,202 @@ +package com.mudu.base.domain; + + +import cn.hutool.core.bean.BeanUtil; +import com.mudu.base.constant.HttpStatus; + +import java.util.HashMap; +import java.util.Objects; + +/** + * 操作消息提醒 + * + * @author ruoyi + */ +public class AjaxResult extends HashMap { + /** + * 状态码 + */ + public static final String CODE_TAG = "code"; + /** + * 返回内容 + */ + public static final String MSG_TAG = "msg"; + /** + * 数据对象 + */ + public static final String DATA_TAG = "data"; + private static final long serialVersionUID = 1L; + + /** + * 初始化一个新创建的 AjaxResult 对象,使其表示一个空消息。 + */ + public AjaxResult() { + } + + /** + * 初始化一个新创建的 AjaxResult 对象 + * + * @param code 状态码 + * @param msg 返回内容 + */ + public AjaxResult(int code, String msg) { + super.put(CODE_TAG, code); + super.put(MSG_TAG, msg); + } + + /** + * 初始化一个新创建的 AjaxResult 对象 + * + * @param code 状态码 + * @param msg 返回内容 + * @param data 数据对象 + */ + public AjaxResult(int code, String msg, Object data) { + super.put(CODE_TAG, code); + super.put(MSG_TAG, msg); + if (BeanUtil.isNotEmpty(data)) { + super.put(DATA_TAG, data); + } + } + + /** + * 返回成功消息 + * + * @return 成功消息 + */ + public static AjaxResult success() { + return AjaxResult.success("操作成功"); + } + + /** + * 返回成功数据 + * + * @return 成功消息 + */ + public static AjaxResult success(Object data) { + return AjaxResult.success("操作成功", data); + } + + /** + * 返回成功消息 + * + * @param msg 返回内容 + * @return 成功消息 + */ + public static AjaxResult success(String msg) { + return AjaxResult.success(msg, null); + } + + /** + * 返回成功消息 + * + * @param msg 返回内容 + * @param data 数据对象 + * @return 成功消息 + */ + public static AjaxResult success(String msg, Object data) { + return new AjaxResult(HttpStatus.SUCCESS, msg, data); + } + + /** + * 返回警告消息 + * + * @param msg 返回内容 + * @return 警告消息 + */ + public static AjaxResult warn(String msg) { + return AjaxResult.warn(msg, null); + } + + /** + * 返回警告消息 + * + * @param msg 返回内容 + * @param data 数据对象 + * @return 警告消息 + */ + public static AjaxResult warn(String msg, Object data) { + return new AjaxResult(HttpStatus.WARN, msg, data); + } + + /** + * 返回错误消息 + * + * @return 错误消息 + */ + public static AjaxResult error() { + return AjaxResult.error("操作失败"); + } + + /** + * 返回错误消息 + * + * @param msg 返回内容 + * @return 错误消息 + */ + public static AjaxResult error(String msg) { + return AjaxResult.error(msg, null); + } + + /** + * 返回错误消息 + * + * @param msg 返回内容 + * @param data 数据对象 + * @return 错误消息 + */ + public static AjaxResult error(String msg, Object data) { + return new AjaxResult(HttpStatus.ERROR, msg, data); + } + + /** + * 返回错误消息 + * + * @param code 状态码 + * @param msg 返回内容 + * @return 错误消息 + */ + public static AjaxResult error(int code, String msg) { + return new AjaxResult(code, msg, null); + } + + /** + * 是否为成功消息 + * + * @return 结果 + */ + public boolean isSuccess() { + return Objects.equals(HttpStatus.SUCCESS, this.get(CODE_TAG)); + } + + /** + * 是否为警告消息 + * + * @return 结果 + */ + public boolean isWarn() { + return Objects.equals(HttpStatus.WARN, this.get(CODE_TAG)); + } + + /** + * 是否为错误消息 + * + * @return 结果 + */ + public boolean isError() { + return Objects.equals(HttpStatus.ERROR, this.get(CODE_TAG)); + } + + /** + * 方便链式调用 + * + * @param key 键 + * @param value 值 + * @return 数据对象 + */ + @Override + public AjaxResult put(String key, Object value) { + super.put(key, value); + return this; + } +} diff --git a/src/main/java/com/mudu/config/MybatisPlusConfig.java b/src/main/java/com/mudu/config/MybatisPlusConfig.java new file mode 100644 index 0000000..04802ce --- /dev/null +++ b/src/main/java/com/mudu/config/MybatisPlusConfig.java @@ -0,0 +1,26 @@ +package com.mudu.config; + +import com.baomidou.mybatisplus.annotation.DbType; +import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; +import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +/** + * @author wu + * @since 2024/2/26 11:28 + */ +@Configuration +public class MybatisPlusConfig { + + /** + * 添加分页插件 + */ + @Bean + public MybatisPlusInterceptor mybatisPlusInterceptor() { + MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); + interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL));//如果配置多个插件,切记分页最后添加 + //interceptor.addInnerInterceptor(new PaginationInnerInterceptor()); 如果有多数据源可以不配具体类型 否则都建议配上具体的DbType + return interceptor; + } +} diff --git a/src/main/java/com/mudu/controller/ASafeBmxxController.java b/src/main/java/com/mudu/controller/ASafeBmxxController.java new file mode 100644 index 0000000..9843344 --- /dev/null +++ b/src/main/java/com/mudu/controller/ASafeBmxxController.java @@ -0,0 +1,105 @@ +package com.mudu.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.mudu.base.controller.BaseController; +import com.mudu.base.domain.AjaxResult; +import com.mudu.entity.ASafeBmxx; +import com.mudu.service.ASafeBmxxService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * 风险库部门信息表(ASafeBmxx)表控制层 + * + * @author wu + * @since 2024-02-26 10:43:21 + */ +@RestController +@RequestMapping("pharmaceuticals/aSafeBmxx") +@Api(tags = "风险库部门信息表") +@Transactional(rollbackFor = Exception.class) +public class ASafeBmxxController extends BaseController { + /** + * 服务对象 + */ + @Resource + private ASafeBmxxService aSafeBmxxService; + + /** + * 分页条件查询所有数据 + * + * @param page 分页条件 + * @param aSafeBmxx 查询条件 + * @return 所有数据 + */ + @GetMapping + @ApiOperation(value = "分页条件查询风险库部门信息表", response = ASafeBmxx.class) + public AjaxResult page(Page page, ASafeBmxx aSafeBmxx) { + return success(aSafeBmxxService.page(page, new QueryWrapper<>(aSafeBmxx))); + } + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("{id}") + @ApiOperation(value = "通过主键查询单条风险库部门信息表", response = ASafeBmxx.class) + public AjaxResult getById(@PathVariable Serializable id) { + return success(aSafeBmxxService.getById(id)); + } + + /** + * 新增数据 + * + * @param aSafeBmxx 实体对象 + * @return 新增结果 + */ + @PostMapping + @ApiOperation(value = "新增风险库部门信息表", response = ASafeBmxx.class) + public AjaxResult insert(@RequestBody ASafeBmxx aSafeBmxx) { + return success(aSafeBmxxService.save(aSafeBmxx)); + } + + /** + * 修改数据 + * + * @param aSafeBmxx 实体对象 + * @return 修改结果 + */ + @PutMapping + @ApiOperation(value = "修改风险库部门信息表") + public AjaxResult update(@RequestBody ASafeBmxx aSafeBmxx) { + return success(aSafeBmxxService.updateById(aSafeBmxx)); + } + + /** + * 删除数据 + * + * @param idList 主键集合 + * @return 删除结果 + */ + @DeleteMapping + @ApiOperation(value = "删除风险库部门信息表") + public AjaxResult delete(@RequestParam("idList") List idList) { + return success(aSafeBmxxService.removeByIds(idList)); + } +} + diff --git a/src/main/java/com/mudu/controller/ASafeFxdController.java b/src/main/java/com/mudu/controller/ASafeFxdController.java new file mode 100644 index 0000000..f55e6e6 --- /dev/null +++ b/src/main/java/com/mudu/controller/ASafeFxdController.java @@ -0,0 +1,50 @@ +package com.mudu.controller; + + +import com.mudu.base.controller.BaseController; +import com.mudu.base.domain.AjaxResult; +import com.mudu.entity.ASafeFxd; +import com.mudu.service.ASafeFxdService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.io.Serializable; + +/** + * (ASafeFxd)表控制层 + * + * @author wu + * @since 2024-02-26 10:43:22 + */ +@RestController +@RequestMapping("pharmaceuticals/aSafeFxd") +@Api(tags = "") +@Transactional(rollbackFor = Exception.class) +public class ASafeFxdController extends BaseController { + /** + * 服务对象 + */ + @Resource + private ASafeFxdService aSafeFxdService; + + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("{id}") + @ApiOperation(value = "通过主键查询单条", response = ASafeFxd.class) + public AjaxResult getById(@PathVariable Serializable id) { + return success(aSafeFxdService.getById(id)); + } + +} + diff --git a/src/main/java/com/mudu/controller/ASafeFxdwzController.java b/src/main/java/com/mudu/controller/ASafeFxdwzController.java new file mode 100644 index 0000000..cc2bc87 --- /dev/null +++ b/src/main/java/com/mudu/controller/ASafeFxdwzController.java @@ -0,0 +1,105 @@ +package com.mudu.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.mudu.base.controller.BaseController; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.mudu.base.domain.AjaxResult; +import com.mudu.entity.ASafeFxdwz; +import com.mudu.service.ASafeFxdwzService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * (ASafeFxdwz)表控制层 + * + * @author wu + * @since 2024-02-26 10:43:22 + */ +@RestController +@RequestMapping("pharmaceuticals/aSafeFxdwz") +@Api(tags = "") +@Transactional(rollbackFor = Exception.class) +public class ASafeFxdwzController extends BaseController { + /** + * 服务对象 + */ + @Resource + private ASafeFxdwzService aSafeFxdwzService; + + /** + * 分页条件查询所有数据 + * + * @param page 分页条件 + * @param aSafeFxdwz 查询条件 + * @return 所有数据 + */ + @GetMapping + @ApiOperation(value = "分页条件查询", response = ASafeFxdwz.class) + public AjaxResult page(Page page, ASafeFxdwz aSafeFxdwz) { + return success(aSafeFxdwzService.page(page, new QueryWrapper<>(aSafeFxdwz))); + } + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("{id}") + @ApiOperation(value = "通过主键查询单条", response = ASafeFxdwz.class) + public AjaxResult getById(@PathVariable Serializable id) { + return success(aSafeFxdwzService.getById(id)); + } + + /** + * 新增数据 + * + * @param aSafeFxdwz 实体对象 + * @return 新增结果 + */ + @PostMapping + @ApiOperation(value = "新增", response = ASafeFxdwz.class) + public AjaxResult insert(@RequestBody ASafeFxdwz aSafeFxdwz) { + return success(aSafeFxdwzService.save(aSafeFxdwz)); + } + + /** + * 修改数据 + * + * @param aSafeFxdwz 实体对象 + * @return 修改结果 + */ + @PutMapping + @ApiOperation(value = "修改") + public AjaxResult update(@RequestBody ASafeFxdwz aSafeFxdwz) { + return success(aSafeFxdwzService.updateById(aSafeFxdwz)); + } + + /** + * 删除数据 + * + * @param idList 主键集合 + * @return 删除结果 + */ + @DeleteMapping + @ApiOperation(value = "删除") + public AjaxResult delete(@RequestParam("idList") List idList) { + return success(aSafeFxdwzService.removeByIds(idList)); + } +} + diff --git a/src/main/java/com/mudu/controller/ASafeFxkController.java b/src/main/java/com/mudu/controller/ASafeFxkController.java new file mode 100644 index 0000000..92c9167 --- /dev/null +++ b/src/main/java/com/mudu/controller/ASafeFxkController.java @@ -0,0 +1,105 @@ +package com.mudu.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.mudu.base.controller.BaseController; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.mudu.base.domain.AjaxResult; +import com.mudu.entity.ASafeFxk; +import com.mudu.service.ASafeFxkService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * (ASafeFxk)表控制层 + * + * @author wu + * @since 2024-02-26 10:43:22 + */ +@RestController +@RequestMapping("pharmaceuticals/aSafeFxk") +@Api(tags = "") +@Transactional(rollbackFor = Exception.class) +public class ASafeFxkController extends BaseController { + /** + * 服务对象 + */ + @Resource + private ASafeFxkService aSafeFxkService; + + /** + * 分页条件查询所有数据 + * + * @param page 分页条件 + * @param aSafeFxk 查询条件 + * @return 所有数据 + */ + @GetMapping + @ApiOperation(value = "分页条件查询", response = ASafeFxk.class) + public AjaxResult page(Page page, ASafeFxk aSafeFxk) { + return success(aSafeFxkService.page(page, new QueryWrapper<>(aSafeFxk))); + } + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("{id}") + @ApiOperation(value = "通过主键查询单条", response = ASafeFxk.class) + public AjaxResult getById(@PathVariable Serializable id) { + return success(aSafeFxkService.getById(id)); + } + + /** + * 新增数据 + * + * @param aSafeFxk 实体对象 + * @return 新增结果 + */ + @PostMapping + @ApiOperation(value = "新增", response = ASafeFxk.class) + public AjaxResult insert(@RequestBody ASafeFxk aSafeFxk) { + return success(aSafeFxkService.save(aSafeFxk)); + } + + /** + * 修改数据 + * + * @param aSafeFxk 实体对象 + * @return 修改结果 + */ + @PutMapping + @ApiOperation(value = "修改") + public AjaxResult update(@RequestBody ASafeFxk aSafeFxk) { + return success(aSafeFxkService.updateById(aSafeFxk)); + } + + /** + * 删除数据 + * + * @param idList 主键集合 + * @return 删除结果 + */ + @DeleteMapping + @ApiOperation(value = "删除") + public AjaxResult delete(@RequestParam("idList") List idList) { + return success(aSafeFxkService.removeByIds(idList)); + } +} + diff --git a/src/main/java/com/mudu/controller/ASafeGllbController.java b/src/main/java/com/mudu/controller/ASafeGllbController.java new file mode 100644 index 0000000..de91977 --- /dev/null +++ b/src/main/java/com/mudu/controller/ASafeGllbController.java @@ -0,0 +1,105 @@ +package com.mudu.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.mudu.base.controller.BaseController; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.mudu.base.domain.AjaxResult; +import com.mudu.entity.ASafeGllb; +import com.mudu.service.ASafeGllbService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * (ASafeGllb)表控制层 + * + * @author wu + * @since 2024-02-26 10:43:23 + */ +@RestController +@RequestMapping("pharmaceuticals/aSafeGllb") +@Api(tags = "") +@Transactional(rollbackFor = Exception.class) +public class ASafeGllbController extends BaseController { + /** + * 服务对象 + */ + @Resource + private ASafeGllbService aSafeGllbService; + + /** + * 分页条件查询所有数据 + * + * @param page 分页条件 + * @param aSafeGllb 查询条件 + * @return 所有数据 + */ + @GetMapping + @ApiOperation(value = "分页条件查询", response = ASafeGllb.class) + public AjaxResult page(Page page, ASafeGllb aSafeGllb) { + return success(aSafeGllbService.page(page, new QueryWrapper<>(aSafeGllb))); + } + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("{id}") + @ApiOperation(value = "通过主键查询单条", response = ASafeGllb.class) + public AjaxResult getById(@PathVariable Serializable id) { + return success(aSafeGllbService.getById(id)); + } + + /** + * 新增数据 + * + * @param aSafeGllb 实体对象 + * @return 新增结果 + */ + @PostMapping + @ApiOperation(value = "新增", response = ASafeGllb.class) + public AjaxResult insert(@RequestBody ASafeGllb aSafeGllb) { + return success(aSafeGllbService.save(aSafeGllb)); + } + + /** + * 修改数据 + * + * @param aSafeGllb 实体对象 + * @return 修改结果 + */ + @PutMapping + @ApiOperation(value = "修改") + public AjaxResult update(@RequestBody ASafeGllb aSafeGllb) { + return success(aSafeGllbService.updateById(aSafeGllb)); + } + + /** + * 删除数据 + * + * @param idList 主键集合 + * @return 删除结果 + */ + @DeleteMapping + @ApiOperation(value = "删除") + public AjaxResult delete(@RequestParam("idList") List idList) { + return success(aSafeGllbService.removeByIds(idList)); + } +} + diff --git a/src/main/java/com/mudu/controller/ASafeJcydController.java b/src/main/java/com/mudu/controller/ASafeJcydController.java new file mode 100644 index 0000000..713ce39 --- /dev/null +++ b/src/main/java/com/mudu/controller/ASafeJcydController.java @@ -0,0 +1,105 @@ +package com.mudu.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.mudu.base.controller.BaseController; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.mudu.base.domain.AjaxResult; +import com.mudu.entity.ASafeJcyd; +import com.mudu.service.ASafeJcydService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * (ASafeJcyd)表控制层 + * + * @author wu + * @since 2024-02-26 10:43:23 + */ +@RestController +@RequestMapping("pharmaceuticals/aSafeJcyd") +@Api(tags = "") +@Transactional(rollbackFor = Exception.class) +public class ASafeJcydController extends BaseController { + /** + * 服务对象 + */ + @Resource + private ASafeJcydService aSafeJcydService; + + /** + * 分页条件查询所有数据 + * + * @param page 分页条件 + * @param aSafeJcyd 查询条件 + * @return 所有数据 + */ + @GetMapping + @ApiOperation(value = "分页条件查询", response = ASafeJcyd.class) + public AjaxResult page(Page page, ASafeJcyd aSafeJcyd) { + return success(aSafeJcydService.page(page, new QueryWrapper<>(aSafeJcyd))); + } + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("{id}") + @ApiOperation(value = "通过主键查询单条", response = ASafeJcyd.class) + public AjaxResult getById(@PathVariable Serializable id) { + return success(aSafeJcydService.getById(id)); + } + + /** + * 新增数据 + * + * @param aSafeJcyd 实体对象 + * @return 新增结果 + */ + @PostMapping + @ApiOperation(value = "新增", response = ASafeJcyd.class) + public AjaxResult insert(@RequestBody ASafeJcyd aSafeJcyd) { + return success(aSafeJcydService.save(aSafeJcyd)); + } + + /** + * 修改数据 + * + * @param aSafeJcyd 实体对象 + * @return 修改结果 + */ + @PutMapping + @ApiOperation(value = "修改") + public AjaxResult update(@RequestBody ASafeJcyd aSafeJcyd) { + return success(aSafeJcydService.updateById(aSafeJcyd)); + } + + /** + * 删除数据 + * + * @param idList 主键集合 + * @return 删除结果 + */ + @DeleteMapping + @ApiOperation(value = "删除") + public AjaxResult delete(@RequestParam("idList") List idList) { + return success(aSafeJcydService.removeByIds(idList)); + } +} + diff --git a/src/main/java/com/mudu/controller/ASafeQybhysbController.java b/src/main/java/com/mudu/controller/ASafeQybhysbController.java new file mode 100644 index 0000000..6bdb9b6 --- /dev/null +++ b/src/main/java/com/mudu/controller/ASafeQybhysbController.java @@ -0,0 +1,105 @@ +package com.mudu.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.mudu.base.controller.BaseController; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.mudu.base.domain.AjaxResult; +import com.mudu.entity.ASafeQybhysb; +import com.mudu.service.ASafeQybhysbService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * 企业编号映射表(ASafeQybhysb)表控制层 + * + * @author wu + * @since 2024-02-26 10:43:23 + */ +@RestController +@RequestMapping("pharmaceuticals/aSafeQybhysb") +@Api(tags = "企业编号映射表") +@Transactional(rollbackFor = Exception.class) +public class ASafeQybhysbController extends BaseController { + /** + * 服务对象 + */ + @Resource + private ASafeQybhysbService aSafeQybhysbService; + + /** + * 分页条件查询所有数据 + * + * @param page 分页条件 + * @param aSafeQybhysb 查询条件 + * @return 所有数据 + */ + @GetMapping + @ApiOperation(value = "分页条件查询企业编号映射表", response = ASafeQybhysb.class) + public AjaxResult page(Page page, ASafeQybhysb aSafeQybhysb) { + return success(aSafeQybhysbService.page(page, new QueryWrapper<>(aSafeQybhysb))); + } + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("{id}") + @ApiOperation(value = "通过主键查询单条企业编号映射表", response = ASafeQybhysb.class) + public AjaxResult getById(@PathVariable Serializable id) { + return success(aSafeQybhysbService.getById(id)); + } + + /** + * 新增数据 + * + * @param aSafeQybhysb 实体对象 + * @return 新增结果 + */ + @PostMapping + @ApiOperation(value = "新增企业编号映射表", response = ASafeQybhysb.class) + public AjaxResult insert(@RequestBody ASafeQybhysb aSafeQybhysb) { + return success(aSafeQybhysbService.save(aSafeQybhysb)); + } + + /** + * 修改数据 + * + * @param aSafeQybhysb 实体对象 + * @return 修改结果 + */ + @PutMapping + @ApiOperation(value = "修改企业编号映射表") + public AjaxResult update(@RequestBody ASafeQybhysb aSafeQybhysb) { + return success(aSafeQybhysbService.updateById(aSafeQybhysb)); + } + + /** + * 删除数据 + * + * @param idList 主键集合 + * @return 删除结果 + */ + @DeleteMapping + @ApiOperation(value = "删除企业编号映射表") + public AjaxResult delete(@RequestParam("idList") List idList) { + return success(aSafeQybhysbService.removeByIds(idList)); + } +} + diff --git a/src/main/java/com/mudu/controller/ASafeQyfxwzController.java b/src/main/java/com/mudu/controller/ASafeQyfxwzController.java new file mode 100644 index 0000000..b64761c --- /dev/null +++ b/src/main/java/com/mudu/controller/ASafeQyfxwzController.java @@ -0,0 +1,105 @@ +package com.mudu.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.mudu.base.controller.BaseController; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.mudu.base.domain.AjaxResult; +import com.mudu.entity.ASafeQyfxwz; +import com.mudu.service.ASafeQyfxwzService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * (ASafeQyfxwz)表控制层 + * + * @author wu + * @since 2024-02-26 10:43:23 + */ +@RestController +@RequestMapping("pharmaceuticals/aSafeQyfxwz") +@Api(tags = "") +@Transactional(rollbackFor = Exception.class) +public class ASafeQyfxwzController extends BaseController { + /** + * 服务对象 + */ + @Resource + private ASafeQyfxwzService aSafeQyfxwzService; + + /** + * 分页条件查询所有数据 + * + * @param page 分页条件 + * @param aSafeQyfxwz 查询条件 + * @return 所有数据 + */ + @GetMapping + @ApiOperation(value = "分页条件查询", response = ASafeQyfxwz.class) + public AjaxResult page(Page page, ASafeQyfxwz aSafeQyfxwz) { + return success(aSafeQyfxwzService.page(page, new QueryWrapper<>(aSafeQyfxwz))); + } + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("{id}") + @ApiOperation(value = "通过主键查询单条", response = ASafeQyfxwz.class) + public AjaxResult getById(@PathVariable Serializable id) { + return success(aSafeQyfxwzService.getById(id)); + } + + /** + * 新增数据 + * + * @param aSafeQyfxwz 实体对象 + * @return 新增结果 + */ + @PostMapping + @ApiOperation(value = "新增", response = ASafeQyfxwz.class) + public AjaxResult insert(@RequestBody ASafeQyfxwz aSafeQyfxwz) { + return success(aSafeQyfxwzService.save(aSafeQyfxwz)); + } + + /** + * 修改数据 + * + * @param aSafeQyfxwz 实体对象 + * @return 修改结果 + */ + @PutMapping + @ApiOperation(value = "修改") + public AjaxResult update(@RequestBody ASafeQyfxwz aSafeQyfxwz) { + return success(aSafeQyfxwzService.updateById(aSafeQyfxwz)); + } + + /** + * 删除数据 + * + * @param idList 主键集合 + * @return 删除结果 + */ + @DeleteMapping + @ApiOperation(value = "删除") + public AjaxResult delete(@RequestParam("idList") List idList) { + return success(aSafeQyfxwzService.removeByIds(idList)); + } +} + diff --git a/src/main/java/com/mudu/controller/ASafeQyjcxxController.java b/src/main/java/com/mudu/controller/ASafeQyjcxxController.java new file mode 100644 index 0000000..c99647d --- /dev/null +++ b/src/main/java/com/mudu/controller/ASafeQyjcxxController.java @@ -0,0 +1,117 @@ +package com.mudu.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.mudu.base.controller.BaseController; +import com.mudu.base.domain.AjaxResult; +import com.mudu.entity.ASafeQyjcxx; +import com.mudu.service.ASafeQyjcxxService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * (ASafeQyjcxx)表控制层 + * + * @author wu + * @since 2024-02-26 10:43:24 + */ +@RestController +@RequestMapping("pharmaceuticals/aSafeQyjcxx") +@Api(tags = "企业信息") +@Transactional(rollbackFor = Exception.class) +public class ASafeQyjcxxController extends BaseController { + /** + * 服务对象 + */ + @Resource + private ASafeQyjcxxService aSafeQyjcxxService; + + /** + * 分页条件查询所有数据 + * + * @param page 分页条件 + * @param aSafeQyjcxx 查询条件 + * @return 所有数据 + */ + @GetMapping + @ApiOperation(value = "分页条件查询", response = ASafeQyjcxx.class) + public AjaxResult page(Page page, ASafeQyjcxx aSafeQyjcxx) { + return success(aSafeQyjcxxService.page(page, new QueryWrapper<>(aSafeQyjcxx))); + } + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("{id}") + @ApiOperation(value = "通过主键查询单条", response = ASafeQyjcxx.class) + public AjaxResult getById(@PathVariable Serializable id) { + return success(aSafeQyjcxxService.getById(id)); + } + + /** + * 新增数据 + * + * @param aSafeQyjcxx 实体对象 + * @return 新增结果 + */ + @PostMapping + @ApiOperation(value = "新增", response = ASafeQyjcxx.class) + public AjaxResult insert(@RequestBody ASafeQyjcxx aSafeQyjcxx) { + return success(aSafeQyjcxxService.save(aSafeQyjcxx)); + } + + /** + * 修改数据 + * + * @param aSafeQyjcxx 实体对象 + * @return 修改结果 + */ + @PutMapping + @ApiOperation(value = "修改") + public AjaxResult update(@RequestBody ASafeQyjcxx aSafeQyjcxx) { + return success(aSafeQyjcxxService.updateById(aSafeQyjcxx)); + } + + /** + * 删除数据 + * + * @param idList 主键集合 + * @return 删除结果 + */ + @DeleteMapping + @ApiOperation(value = "删除") + public AjaxResult delete(@RequestParam("idList") List idList) { + return success(aSafeQyjcxxService.removeByIds(idList)); + } + + /** + * 数据同步 + * + * @return 响应类 + */ + @GetMapping("/dataSynchronous") + @ApiOperation(value = "数据同步") + public AjaxResult dataSynchronous() { + aSafeQyjcxxService.dataSynchronous(); + return success(); + } +} + diff --git a/src/main/java/com/mudu/controller/ASafeXcrwController.java b/src/main/java/com/mudu/controller/ASafeXcrwController.java new file mode 100644 index 0000000..c3262f8 --- /dev/null +++ b/src/main/java/com/mudu/controller/ASafeXcrwController.java @@ -0,0 +1,105 @@ +package com.mudu.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.mudu.base.controller.BaseController; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.mudu.base.domain.AjaxResult; +import com.mudu.entity.ASafeXcrw; +import com.mudu.service.ASafeXcrwService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * (ASafeXcrw)表控制层 + * + * @author wu + * @since 2024-02-26 10:43:24 + */ +@RestController +@RequestMapping("pharmaceuticals/aSafeXcrw") +@Api(tags = "") +@Transactional(rollbackFor = Exception.class) +public class ASafeXcrwController extends BaseController { + /** + * 服务对象 + */ + @Resource + private ASafeXcrwService aSafeXcrwService; + + /** + * 分页条件查询所有数据 + * + * @param page 分页条件 + * @param aSafeXcrw 查询条件 + * @return 所有数据 + */ + @GetMapping + @ApiOperation(value = "分页条件查询", response = ASafeXcrw.class) + public AjaxResult page(Page page, ASafeXcrw aSafeXcrw) { + return success(aSafeXcrwService.page(page, new QueryWrapper<>(aSafeXcrw))); + } + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("{id}") + @ApiOperation(value = "通过主键查询单条", response = ASafeXcrw.class) + public AjaxResult getById(@PathVariable Serializable id) { + return success(aSafeXcrwService.getById(id)); + } + + /** + * 新增数据 + * + * @param aSafeXcrw 实体对象 + * @return 新增结果 + */ + @PostMapping + @ApiOperation(value = "新增", response = ASafeXcrw.class) + public AjaxResult insert(@RequestBody ASafeXcrw aSafeXcrw) { + return success(aSafeXcrwService.save(aSafeXcrw)); + } + + /** + * 修改数据 + * + * @param aSafeXcrw 实体对象 + * @return 修改结果 + */ + @PutMapping + @ApiOperation(value = "修改") + public AjaxResult update(@RequestBody ASafeXcrw aSafeXcrw) { + return success(aSafeXcrwService.updateById(aSafeXcrw)); + } + + /** + * 删除数据 + * + * @param idList 主键集合 + * @return 删除结果 + */ + @DeleteMapping + @ApiOperation(value = "删除") + public AjaxResult delete(@RequestParam("idList") List idList) { + return success(aSafeXcrwService.removeByIds(idList)); + } +} + diff --git a/src/main/java/com/mudu/controller/ASafeXcrwjcxController.java b/src/main/java/com/mudu/controller/ASafeXcrwjcxController.java new file mode 100644 index 0000000..63ac86b --- /dev/null +++ b/src/main/java/com/mudu/controller/ASafeXcrwjcxController.java @@ -0,0 +1,105 @@ +package com.mudu.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.mudu.base.controller.BaseController; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.mudu.base.domain.AjaxResult; +import com.mudu.entity.ASafeXcrwjcx; +import com.mudu.service.ASafeXcrwjcxService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * (ASafeXcrwjcx)表控制层 + * + * @author wu + * @since 2024-02-26 10:43:24 + */ +@RestController +@RequestMapping("pharmaceuticals/aSafeXcrwjcx") +@Api(tags = "") +@Transactional(rollbackFor = Exception.class) +public class ASafeXcrwjcxController extends BaseController { + /** + * 服务对象 + */ + @Resource + private ASafeXcrwjcxService aSafeXcrwjcxService; + + /** + * 分页条件查询所有数据 + * + * @param page 分页条件 + * @param aSafeXcrwjcx 查询条件 + * @return 所有数据 + */ + @GetMapping + @ApiOperation(value = "分页条件查询", response = ASafeXcrwjcx.class) + public AjaxResult page(Page page, ASafeXcrwjcx aSafeXcrwjcx) { + return success(aSafeXcrwjcxService.page(page, new QueryWrapper<>(aSafeXcrwjcx))); + } + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("{id}") + @ApiOperation(value = "通过主键查询单条", response = ASafeXcrwjcx.class) + public AjaxResult getById(@PathVariable Serializable id) { + return success(aSafeXcrwjcxService.getById(id)); + } + + /** + * 新增数据 + * + * @param aSafeXcrwjcx 实体对象 + * @return 新增结果 + */ + @PostMapping + @ApiOperation(value = "新增", response = ASafeXcrwjcx.class) + public AjaxResult insert(@RequestBody ASafeXcrwjcx aSafeXcrwjcx) { + return success(aSafeXcrwjcxService.save(aSafeXcrwjcx)); + } + + /** + * 修改数据 + * + * @param aSafeXcrwjcx 实体对象 + * @return 修改结果 + */ + @PutMapping + @ApiOperation(value = "修改") + public AjaxResult update(@RequestBody ASafeXcrwjcx aSafeXcrwjcx) { + return success(aSafeXcrwjcxService.updateById(aSafeXcrwjcx)); + } + + /** + * 删除数据 + * + * @param idList 主键集合 + * @return 删除结果 + */ + @DeleteMapping + @ApiOperation(value = "删除") + public AjaxResult delete(@RequestParam("idList") List idList) { + return success(aSafeXcrwjcxService.removeByIds(idList)); + } +} + diff --git a/src/main/java/com/mudu/controller/ASafeXcrwjcxzgxxController.java b/src/main/java/com/mudu/controller/ASafeXcrwjcxzgxxController.java new file mode 100644 index 0000000..b60da04 --- /dev/null +++ b/src/main/java/com/mudu/controller/ASafeXcrwjcxzgxxController.java @@ -0,0 +1,105 @@ +package com.mudu.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.mudu.base.controller.BaseController; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.mudu.base.domain.AjaxResult; +import com.mudu.entity.ASafeXcrwjcxzgxx; +import com.mudu.service.ASafeXcrwjcxzgxxService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * (ASafeXcrwjcxzgxx)表控制层 + * + * @author wu + * @since 2024-02-26 10:43:24 + */ +@RestController +@RequestMapping("pharmaceuticals/aSafeXcrwjcxzgxx") +@Api(tags = "") +@Transactional(rollbackFor = Exception.class) +public class ASafeXcrwjcxzgxxController extends BaseController { + /** + * 服务对象 + */ + @Resource + private ASafeXcrwjcxzgxxService aSafeXcrwjcxzgxxService; + + /** + * 分页条件查询所有数据 + * + * @param page 分页条件 + * @param aSafeXcrwjcxzgxx 查询条件 + * @return 所有数据 + */ + @GetMapping + @ApiOperation(value = "分页条件查询", response = ASafeXcrwjcxzgxx.class) + public AjaxResult page(Page page, ASafeXcrwjcxzgxx aSafeXcrwjcxzgxx) { + return success(aSafeXcrwjcxzgxxService.page(page, new QueryWrapper<>(aSafeXcrwjcxzgxx))); + } + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("{id}") + @ApiOperation(value = "通过主键查询单条", response = ASafeXcrwjcxzgxx.class) + public AjaxResult getById(@PathVariable Serializable id) { + return success(aSafeXcrwjcxzgxxService.getById(id)); + } + + /** + * 新增数据 + * + * @param aSafeXcrwjcxzgxx 实体对象 + * @return 新增结果 + */ + @PostMapping + @ApiOperation(value = "新增", response = ASafeXcrwjcxzgxx.class) + public AjaxResult insert(@RequestBody ASafeXcrwjcxzgxx aSafeXcrwjcxzgxx) { + return success(aSafeXcrwjcxzgxxService.save(aSafeXcrwjcxzgxx)); + } + + /** + * 修改数据 + * + * @param aSafeXcrwjcxzgxx 实体对象 + * @return 修改结果 + */ + @PutMapping + @ApiOperation(value = "修改") + public AjaxResult update(@RequestBody ASafeXcrwjcxzgxx aSafeXcrwjcxzgxx) { + return success(aSafeXcrwjcxzgxxService.updateById(aSafeXcrwjcxzgxx)); + } + + /** + * 删除数据 + * + * @param idList 主键集合 + * @return 删除结果 + */ + @DeleteMapping + @ApiOperation(value = "删除") + public AjaxResult delete(@RequestParam("idList") List idList) { + return success(aSafeXcrwjcxzgxxService.removeByIds(idList)); + } +} + diff --git a/src/main/java/com/mudu/controller/ASafeYhzgxxController.java b/src/main/java/com/mudu/controller/ASafeYhzgxxController.java new file mode 100644 index 0000000..5e42da4 --- /dev/null +++ b/src/main/java/com/mudu/controller/ASafeYhzgxxController.java @@ -0,0 +1,105 @@ +package com.mudu.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.mudu.base.controller.BaseController; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.mudu.base.domain.AjaxResult; +import com.mudu.entity.ASafeYhzgxx; +import com.mudu.service.ASafeYhzgxxService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * (ASafeYhzgxx)表控制层 + * + * @author wu + * @since 2024-02-26 10:43:25 + */ +@RestController +@RequestMapping("pharmaceuticals/aSafeYhzgxx") +@Api(tags = "") +@Transactional(rollbackFor = Exception.class) +public class ASafeYhzgxxController extends BaseController { + /** + * 服务对象 + */ + @Resource + private ASafeYhzgxxService aSafeYhzgxxService; + + /** + * 分页条件查询所有数据 + * + * @param page 分页条件 + * @param aSafeYhzgxx 查询条件 + * @return 所有数据 + */ + @GetMapping + @ApiOperation(value = "分页条件查询", response = ASafeYhzgxx.class) + public AjaxResult page(Page page, ASafeYhzgxx aSafeYhzgxx) { + return success(aSafeYhzgxxService.page(page, new QueryWrapper<>(aSafeYhzgxx))); + } + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("{id}") + @ApiOperation(value = "通过主键查询单条", response = ASafeYhzgxx.class) + public AjaxResult getById(@PathVariable Serializable id) { + return success(aSafeYhzgxxService.getById(id)); + } + + /** + * 新增数据 + * + * @param aSafeYhzgxx 实体对象 + * @return 新增结果 + */ + @PostMapping + @ApiOperation(value = "新增", response = ASafeYhzgxx.class) + public AjaxResult insert(@RequestBody ASafeYhzgxx aSafeYhzgxx) { + return success(aSafeYhzgxxService.save(aSafeYhzgxx)); + } + + /** + * 修改数据 + * + * @param aSafeYhzgxx 实体对象 + * @return 修改结果 + */ + @PutMapping + @ApiOperation(value = "修改") + public AjaxResult update(@RequestBody ASafeYhzgxx aSafeYhzgxx) { + return success(aSafeYhzgxxService.updateById(aSafeYhzgxx)); + } + + /** + * 删除数据 + * + * @param idList 主键集合 + * @return 删除结果 + */ + @DeleteMapping + @ApiOperation(value = "删除") + public AjaxResult delete(@RequestParam("idList") List idList) { + return success(aSafeYhzgxxService.removeByIds(idList)); + } +} + diff --git a/src/main/java/com/mudu/controller/ASafeZcrwController.java b/src/main/java/com/mudu/controller/ASafeZcrwController.java new file mode 100644 index 0000000..3d3af25 --- /dev/null +++ b/src/main/java/com/mudu/controller/ASafeZcrwController.java @@ -0,0 +1,105 @@ +package com.mudu.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.mudu.base.controller.BaseController; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.mudu.base.domain.AjaxResult; +import com.mudu.entity.ASafeZcrw; +import com.mudu.service.ASafeZcrwService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * (ASafeZcrw)表控制层 + * + * @author wu + * @since 2024-02-26 10:43:25 + */ +@RestController +@RequestMapping("pharmaceuticals/aSafeZcrw") +@Api(tags = "") +@Transactional(rollbackFor = Exception.class) +public class ASafeZcrwController extends BaseController { + /** + * 服务对象 + */ + @Resource + private ASafeZcrwService aSafeZcrwService; + + /** + * 分页条件查询所有数据 + * + * @param page 分页条件 + * @param aSafeZcrw 查询条件 + * @return 所有数据 + */ + @GetMapping + @ApiOperation(value = "分页条件查询", response = ASafeZcrw.class) + public AjaxResult page(Page page, ASafeZcrw aSafeZcrw) { + return success(aSafeZcrwService.page(page, new QueryWrapper<>(aSafeZcrw))); + } + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("{id}") + @ApiOperation(value = "通过主键查询单条", response = ASafeZcrw.class) + public AjaxResult getById(@PathVariable Serializable id) { + return success(aSafeZcrwService.getById(id)); + } + + /** + * 新增数据 + * + * @param aSafeZcrw 实体对象 + * @return 新增结果 + */ + @PostMapping + @ApiOperation(value = "新增", response = ASafeZcrw.class) + public AjaxResult insert(@RequestBody ASafeZcrw aSafeZcrw) { + return success(aSafeZcrwService.save(aSafeZcrw)); + } + + /** + * 修改数据 + * + * @param aSafeZcrw 实体对象 + * @return 修改结果 + */ + @PutMapping + @ApiOperation(value = "修改") + public AjaxResult update(@RequestBody ASafeZcrw aSafeZcrw) { + return success(aSafeZcrwService.updateById(aSafeZcrw)); + } + + /** + * 删除数据 + * + * @param idList 主键集合 + * @return 删除结果 + */ + @DeleteMapping + @ApiOperation(value = "删除") + public AjaxResult delete(@RequestParam("idList") List idList) { + return success(aSafeZcrwService.removeByIds(idList)); + } +} + diff --git a/src/main/java/com/mudu/controller/ASafeZcrwjlController.java b/src/main/java/com/mudu/controller/ASafeZcrwjlController.java new file mode 100644 index 0000000..b7dd4aa --- /dev/null +++ b/src/main/java/com/mudu/controller/ASafeZcrwjlController.java @@ -0,0 +1,105 @@ +package com.mudu.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.mudu.base.controller.BaseController; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.mudu.base.domain.AjaxResult; +import com.mudu.entity.ASafeZcrwjl; +import com.mudu.service.ASafeZcrwjlService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * (ASafeZcrwjl)表控制层 + * + * @author wu + * @since 2024-02-26 10:43:25 + */ +@RestController +@RequestMapping("pharmaceuticals/aSafeZcrwjl") +@Api(tags = "") +@Transactional(rollbackFor = Exception.class) +public class ASafeZcrwjlController extends BaseController { + /** + * 服务对象 + */ + @Resource + private ASafeZcrwjlService aSafeZcrwjlService; + + /** + * 分页条件查询所有数据 + * + * @param page 分页条件 + * @param aSafeZcrwjl 查询条件 + * @return 所有数据 + */ + @GetMapping + @ApiOperation(value = "分页条件查询", response = ASafeZcrwjl.class) + public AjaxResult page(Page page, ASafeZcrwjl aSafeZcrwjl) { + return success(aSafeZcrwjlService.page(page, new QueryWrapper<>(aSafeZcrwjl))); + } + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("{id}") + @ApiOperation(value = "通过主键查询单条", response = ASafeZcrwjl.class) + public AjaxResult getById(@PathVariable Serializable id) { + return success(aSafeZcrwjlService.getById(id)); + } + + /** + * 新增数据 + * + * @param aSafeZcrwjl 实体对象 + * @return 新增结果 + */ + @PostMapping + @ApiOperation(value = "新增", response = ASafeZcrwjl.class) + public AjaxResult insert(@RequestBody ASafeZcrwjl aSafeZcrwjl) { + return success(aSafeZcrwjlService.save(aSafeZcrwjl)); + } + + /** + * 修改数据 + * + * @param aSafeZcrwjl 实体对象 + * @return 修改结果 + */ + @PutMapping + @ApiOperation(value = "修改") + public AjaxResult update(@RequestBody ASafeZcrwjl aSafeZcrwjl) { + return success(aSafeZcrwjlService.updateById(aSafeZcrwjl)); + } + + /** + * 删除数据 + * + * @param idList 主键集合 + * @return 删除结果 + */ + @DeleteMapping + @ApiOperation(value = "删除") + public AjaxResult delete(@RequestParam("idList") List idList) { + return success(aSafeZcrwjlService.removeByIds(idList)); + } +} + diff --git a/src/main/java/com/mudu/entity/ASafeBmxx.java b/src/main/java/com/mudu/entity/ASafeBmxx.java new file mode 100644 index 0000000..79d35da --- /dev/null +++ b/src/main/java/com/mudu/entity/ASafeBmxx.java @@ -0,0 +1,69 @@ +package com.mudu.entity; + +import java.util.Date; + +import java.io.Serializable; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableField; +import io.swagger.annotations.ApiModelProperty; +import io.swagger.annotations.ApiModel; +import lombok.Data; + + +/** + * 风险库部门信息表(ASafeBmxx)表实体类 + * + * @author wu + * @since 2024-02-26 10:43:22 + */ +@Data +@ApiModel("风险库部门信息表实体类") +@TableName(value = "a_safe_bmxx") +public class ASafeBmxx implements Serializable { + + private static final long serialVersionUID = -12700076800046848L; + /** + * 信息编号 + */ + @ApiModelProperty(value = "信息编号") + private String xxbh; + /** + * 部门编号 + */ + @ApiModelProperty(value = "部门编号") + private String bmbh; + /** + * 部门名称 + */ + @ApiModelProperty(value = "部门名称") + private String bmmc; + /** + * 父级编号 + */ + @ApiModelProperty(value = "父级编号") + private String pid; + /** + * 记录状态 0弃用 1正常 + */ + @ApiModelProperty(value = "记录状态 0弃用 1正常") + private Integer jlzt; + /** + * 入库时间 + */ + @ApiModelProperty(value = "入库时间") + private Date rksj; + private String gxry; + private String rkry; + /** + * 更新时间 + */ + @ApiModelProperty(value = "更新时间") + private Date gxsj; + /** + * 顺序 + */ + @ApiModelProperty(value = "顺序") + private Integer xssx; +} + diff --git a/src/main/java/com/mudu/entity/ASafeFxd.java b/src/main/java/com/mudu/entity/ASafeFxd.java new file mode 100644 index 0000000..baeae24 --- /dev/null +++ b/src/main/java/com/mudu/entity/ASafeFxd.java @@ -0,0 +1,129 @@ +package com.mudu.entity; + +import java.util.Date; + +import java.io.Serializable; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableField; +import io.swagger.annotations.ApiModelProperty; +import io.swagger.annotations.ApiModel; +import lombok.Data; + + +/** + * (ASafeFxd)表实体类 + * + * @author wu + * @since 2024-02-26 10:43:22 + */ +@Data +@ApiModel("实体类") +@TableName(value = "a_safe_fxd") +public class ASafeFxd implements Serializable { + + private static final long serialVersionUID = 524412765206425836L; + private String xxbh; + /** + * 企业编号 + */ + @ApiModelProperty(value = "企业编号") + private String qybh; + private String sfxdbh; + /** + * 风险点 + */ + @ApiModelProperty(value = "风险点") + private String fxd; + /** + * 风险点编号 + */ + @ApiModelProperty(value = "风险点编号") + private String fxdbh; + /** + * 风险名称 + */ + @ApiModelProperty(value = "风险名称") + private String fxmc; + /** + * 管理类别ID + */ + @ApiModelProperty(value = "管理类别ID") + private String gllbbh; + /** + * 管理类别VALUE + */ + @ApiModelProperty(value = "管理类别VALUE") + private String gllbvalue; + /** + * 风险等级ID + */ + @ApiModelProperty(value = "风险等级ID") + private String fxdjid; + /** + * 风险等级VALUE + */ + @ApiModelProperty(value = "风险等级VALUE") + private String fxdjvalue; + /** + * 事故类型 + */ + @ApiModelProperty(value = "事故类型") + private String sglx; + /** + * 具体管控措施 + */ + @ApiModelProperty(value = "具体管控措施") + private String jtgkcs; + /** + * 能否编辑 + */ + @ApiModelProperty(value = "能否编辑") + private Integer nfbj; + /** + * 能否删除 + */ + @ApiModelProperty(value = "能否删除") + private Integer nfsc; + /** + * 是否基础库 + */ + @ApiModelProperty(value = "是否基础库") + private Integer sfjck; + /** + * 启用状态 + */ + @ApiModelProperty(value = "启用状态") + private Integer qyzt; + /** + * 备注 + */ + @ApiModelProperty(value = "备注") + private String bz; + /** + * 入库人员 + */ + @ApiModelProperty(value = "入库人员") + private String rkry; + /** + * 更新人员 + */ + @ApiModelProperty(value = "更新人员") + private String gxry; + /** + * 入库时间 + */ + @ApiModelProperty(value = "入库时间") + private Date rksj; + /** + * 更新时间 + */ + @ApiModelProperty(value = "更新时间") + private Date gxsj; + /** + * 记录状态 + */ + @ApiModelProperty(value = "记录状态") + private Integer jlzt; +} + diff --git a/src/main/java/com/mudu/entity/ASafeFxd20231220.java b/src/main/java/com/mudu/entity/ASafeFxd20231220.java new file mode 100644 index 0000000..e14d64d --- /dev/null +++ b/src/main/java/com/mudu/entity/ASafeFxd20231220.java @@ -0,0 +1,128 @@ +package com.mudu.entity; + +import java.util.Date; + +import java.io.Serializable; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableField; +import io.swagger.annotations.ApiModelProperty; +import io.swagger.annotations.ApiModel; +import lombok.Data; + + +/** + * (ASafeFxd20231220)表实体类 + * + * @author wu + * @since 2024-02-26 10:43:22 + */ +@Data +@ApiModel("实体类") +@TableName(value = "a_safe_fxd20231220") +public class ASafeFxd20231220 implements Serializable { + + private static final long serialVersionUID = -22890239996510742L; + private String xxbh; + /** + * 企业编号 + */ + @ApiModelProperty(value = "企业编号") + private String qybh; + /** + * 风险点 + */ + @ApiModelProperty(value = "风险点") + private String fxd; + /** + * 风险点编号 + */ + @ApiModelProperty(value = "风险点编号") + private String fxdbh; + /** + * 风险名称 + */ + @ApiModelProperty(value = "风险名称") + private String fxmc; + /** + * 管理类别ID + */ + @ApiModelProperty(value = "管理类别ID") + private String gllbbh; + /** + * 管理类别VALUE + */ + @ApiModelProperty(value = "管理类别VALUE") + private String gllbvalue; + /** + * 风险等级ID + */ + @ApiModelProperty(value = "风险等级ID") + private String fxdjid; + /** + * 风险等级VALUE + */ + @ApiModelProperty(value = "风险等级VALUE") + private String fxdjvalue; + /** + * 事故类型 + */ + @ApiModelProperty(value = "事故类型") + private String sglx; + /** + * 具体管控措施 + */ + @ApiModelProperty(value = "具体管控措施") + private String jtgkcs; + /** + * 能否编辑 + */ + @ApiModelProperty(value = "能否编辑") + private Integer nfbj; + /** + * 能否删除 + */ + @ApiModelProperty(value = "能否删除") + private Integer nfsc; + /** + * 是否基础库 + */ + @ApiModelProperty(value = "是否基础库") + private Integer sfjck; + /** + * 启用状态 + */ + @ApiModelProperty(value = "启用状态") + private Integer qyzt; + /** + * 备注 + */ + @ApiModelProperty(value = "备注") + private String bz; + /** + * 入库人员 + */ + @ApiModelProperty(value = "入库人员") + private String rkry; + /** + * 更新人员 + */ + @ApiModelProperty(value = "更新人员") + private String gxry; + /** + * 入库时间 + */ + @ApiModelProperty(value = "入库时间") + private Date rksj; + /** + * 更新时间 + */ + @ApiModelProperty(value = "更新时间") + private Date gxsj; + /** + * 记录状态 + */ + @ApiModelProperty(value = "记录状态") + private Integer jlzt; +} + diff --git a/src/main/java/com/mudu/entity/ASafeFxdwz.java b/src/main/java/com/mudu/entity/ASafeFxdwz.java new file mode 100644 index 0000000..d412bdf --- /dev/null +++ b/src/main/java/com/mudu/entity/ASafeFxdwz.java @@ -0,0 +1,73 @@ +package com.mudu.entity; + +import java.util.Date; + +import java.io.Serializable; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableField; +import io.swagger.annotations.ApiModelProperty; +import io.swagger.annotations.ApiModel; +import lombok.Data; + + +/** + * (ASafeFxdwz)表实体类 + * + * @author wu + * @since 2024-02-26 10:43:22 + */ +@Data +@ApiModel("实体类") +@TableName(value = "a_safe_fxdwz") +public class ASafeFxdwz implements Serializable { + + private static final long serialVersionUID = -84222585664561710L; + private String xxbh; + /** + * 企业风险点编号 + */ + @ApiModelProperty(value = "企业风险点编号") + private String qyfxdbh; + /** + * 企业编号 + */ + @ApiModelProperty(value = "企业编号") + private String qybh; + /** + * 位置编号 + */ + @ApiModelProperty(value = "位置编号") + private String wzbh; + /** + * 设备数量 + */ + @ApiModelProperty(value = "设备数量") + private Integer sbsl; + /** + * 入库人员 + */ + @ApiModelProperty(value = "入库人员") + private String rkry; + /** + * 入库时间 + */ + @ApiModelProperty(value = "入库时间") + private Date rksj; + /** + * 更新人员 + */ + @ApiModelProperty(value = "更新人员") + private String gxry; + /** + * 更新时间 + */ + @ApiModelProperty(value = "更新时间") + private Date gxsj; + /** + * 记录状态 + */ + @ApiModelProperty(value = "记录状态") + private Integer jlzt; +} + diff --git a/src/main/java/com/mudu/entity/ASafeFxk.java b/src/main/java/com/mudu/entity/ASafeFxk.java new file mode 100644 index 0000000..5d69c35 --- /dev/null +++ b/src/main/java/com/mudu/entity/ASafeFxk.java @@ -0,0 +1,133 @@ +package com.mudu.entity; + +import java.util.Date; + +import java.io.Serializable; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableField; +import io.swagger.annotations.ApiModelProperty; +import io.swagger.annotations.ApiModel; +import lombok.Data; + + +/** + * (ASafeFxk)表实体类 + * + * @author wu + * @since 2024-02-26 10:43:23 + */ +@Data +@ApiModel("实体类") +@TableName(value = "a_safe_fxk") +public class ASafeFxk implements Serializable { + + private static final long serialVersionUID = 822617077832817726L; + private String xxbh; + /** + * 管理类别 + */ + @ApiModelProperty(value = "管理类别") + private String gllbbh; + /** + * 市风险点编号 + */ + @ApiModelProperty(value = "市风险点编号") + private String sfxdbh; + /** + * 风险名称 + */ + @ApiModelProperty(value = "风险名称") + private String fxd; + /** + * 风险点 + */ + @ApiModelProperty(value = "风险点") + private String fxdm; + /** + * 风险等级ID + */ + @ApiModelProperty(value = "风险等级ID") + private String fxdjid; + /** + * 风险等级VALUE + */ + @ApiModelProperty(value = "风险等级VALUE") + private String fxdjvalue; + /** + * 事故类型 + */ + @ApiModelProperty(value = "事故类型") + private String sglx; + /** + * 整改期限 + */ + @ApiModelProperty(value = "整改期限") + private String zgqx; + /** + * 关联企业类型id + */ + @ApiModelProperty(value = "关联企业类型id") + private String glqylxid; + /** + * 关联企业类型value + */ + @ApiModelProperty(value = "关联企业类型value") + private String glqylxvalue; + /** + * 工程技术 + */ + @ApiModelProperty(value = "工程技术") + private String gcjs; + /** + * 安全管理 + */ + @ApiModelProperty(value = "安全管理") + private String aqgl; + /** + * 培训教育 + */ + @ApiModelProperty(value = "培训教育") + private String pxjy; + /** + * 应急处置 + */ + @ApiModelProperty(value = "应急处置") + private String yjcz; + /** + * 个体防护 + */ + @ApiModelProperty(value = "个体防护") + private String gtfh; + /** + * 法律依据 + */ + @ApiModelProperty(value = "法律依据") + private String flyj; + /** + * 入库时间 + */ + @ApiModelProperty(value = "入库时间") + private Date rksj; + /** + * 入库人员 + */ + @ApiModelProperty(value = "入库人员") + private String rkry; + /** + * 更新时间 + */ + @ApiModelProperty(value = "更新时间") + private Date gxsj; + /** + * 人性人员 + */ + @ApiModelProperty(value = "人性人员") + private String gxry; + /** + * 记录状态 + */ + @ApiModelProperty(value = "记录状态") + private Integer jlzt; +} + diff --git a/src/main/java/com/mudu/entity/ASafeGllb.java b/src/main/java/com/mudu/entity/ASafeGllb.java new file mode 100644 index 0000000..5f0d4ab --- /dev/null +++ b/src/main/java/com/mudu/entity/ASafeGllb.java @@ -0,0 +1,63 @@ +package com.mudu.entity; + +import java.util.Date; + +import java.io.Serializable; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableField; +import io.swagger.annotations.ApiModelProperty; +import io.swagger.annotations.ApiModel; +import lombok.Data; + + +/** + * (ASafeGllb)表实体类 + * + * @author wu + * @since 2024-02-26 10:43:23 + */ +@Data +@ApiModel("实体类") +@TableName(value = "a_safe_gllb") +public class ASafeGllb implements Serializable { + + private static final long serialVersionUID = -76274677396325303L; + private String xxbh; + /** + * 管理类别编号 + */ + @ApiModelProperty(value = "管理类别编号") + private String gllbbh; + /** + * 管理类别 + */ + @ApiModelProperty(value = "管理类别") + private String gllb; + /** + * 记录状态 + */ + @ApiModelProperty(value = "记录状态") + private Integer jlzt; + /** + * 入库时间 + */ + @ApiModelProperty(value = "入库时间") + private Date rksj; + /** + * 跟新时间 + */ + @ApiModelProperty(value = "跟新时间") + private Date gxsj; + /** + * 入库人员 + */ + @ApiModelProperty(value = "入库人员") + private String rkry; + /** + * 更新人员 + */ + @ApiModelProperty(value = "更新人员") + private String gxry; +} + diff --git a/src/main/java/com/mudu/entity/ASafeJcyd.java b/src/main/java/com/mudu/entity/ASafeJcyd.java new file mode 100644 index 0000000..1a0f614 --- /dev/null +++ b/src/main/java/com/mudu/entity/ASafeJcyd.java @@ -0,0 +1,85 @@ +package com.mudu.entity; + +import java.util.Date; + +import java.io.Serializable; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableField; +import io.swagger.annotations.ApiModelProperty; +import io.swagger.annotations.ApiModel; +import lombok.Data; + + +/** + * (ASafeJcyd)表实体类 + * + * @author wu + * @since 2024-02-26 10:43:23 + */ +@Data +@ApiModel("实体类") +@TableName(value = "a_safe_jcyd") +public class ASafeJcyd implements Serializable { + + private static final long serialVersionUID = 878793166022196007L; + private String xxbh; + /** + * 检查要点 + */ + @ApiModelProperty(value = "检查要点") + private String jcyd; + /** + * 检查要点编号 + */ + @ApiModelProperty(value = "检查要点编号") + private String jcydbh; + /** + * 是否重点检查项 0否 1是 + */ + @ApiModelProperty(value = "是否重点检查项 0否 1是") + private Object sfzdjcx; + /** + * 整改期限 + */ + @ApiModelProperty(value = "整改期限") + private String zgqx; + /** + * 检查依据 + */ + @ApiModelProperty(value = "检查依据") + private String jcyj; + /** + * 违法条款 + */ + @ApiModelProperty(value = "违法条款") + private String wftk; + /** + * 父级编号 + */ + @ApiModelProperty(value = "父级编号") + private String pid; + /** + * 入库时间 + */ + @ApiModelProperty(value = "入库时间") + private Date rksj; + /** + * 更新时间 + */ + @ApiModelProperty(value = "更新时间") + private Date gxsj; + private String rkry; + private String gxry; + /** + * 记录状态 + */ + @ApiModelProperty(value = "记录状态") + private Integer jlzt; + /** + * 顺序 + */ + @ApiModelProperty(value = "顺序") + private Integer xssx; +} + diff --git a/src/main/java/com/mudu/entity/ASafeQybhysb.java b/src/main/java/com/mudu/entity/ASafeQybhysb.java new file mode 100644 index 0000000..fe20692 --- /dev/null +++ b/src/main/java/com/mudu/entity/ASafeQybhysb.java @@ -0,0 +1,63 @@ +package com.mudu.entity; + +import java.util.Date; + +import java.io.Serializable; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableField; +import io.swagger.annotations.ApiModelProperty; +import io.swagger.annotations.ApiModel; +import lombok.Data; + + +/** + * 企业编号映射表(ASafeQybhysb)表实体类 + * + * @author wu + * @since 2024-02-26 10:43:23 + */ +@Data +@ApiModel("企业编号映射表实体类") +@TableName(value = "a_safe_qybhysb") +public class ASafeQybhysb implements Serializable { + + private static final long serialVersionUID = 167333084636450946L; + private String xxbh; + /** + * 企业编号 + */ + @ApiModelProperty(value = "企业编号") + private String qybh; + /** + * 企业名称 + */ + @ApiModelProperty(value = "企业名称") + private String qymc; + /** + * 入库人员 + */ + @ApiModelProperty(value = "入库人员") + private String rkry; + /** + * 更新人员 + */ + @ApiModelProperty(value = "更新人员") + private String gxry; + /** + * 入库时间 + */ + @ApiModelProperty(value = "入库时间") + private Date rksj; + /** + * 更新时间 + */ + @ApiModelProperty(value = "更新时间") + private Date gxsj; + /** + * 记录状态 + */ + @ApiModelProperty(value = "记录状态") + private Integer jlzt; +} + diff --git a/src/main/java/com/mudu/entity/ASafeQyfxwz.java b/src/main/java/com/mudu/entity/ASafeQyfxwz.java new file mode 100644 index 0000000..8c8861a --- /dev/null +++ b/src/main/java/com/mudu/entity/ASafeQyfxwz.java @@ -0,0 +1,68 @@ +package com.mudu.entity; + +import java.util.Date; + +import java.io.Serializable; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableField; +import io.swagger.annotations.ApiModelProperty; +import io.swagger.annotations.ApiModel; +import lombok.Data; + + +/** + * (ASafeQyfxwz)表实体类 + * + * @author wu + * @since 2024-02-26 10:43:23 + */ +@Data +@ApiModel("实体类") +@TableName(value = "a_safe_qyfxwz") +public class ASafeQyfxwz implements Serializable { + + private static final long serialVersionUID = 816018157701927273L; + private String xxbh; + /** + * 位置名称 + */ + @ApiModelProperty(value = "位置名称") + private String wzmc; + /** + * 企业编号 + */ + @ApiModelProperty(value = "企业编号") + private String qybh; + /** + * 显示顺序 + */ + @ApiModelProperty(value = "显示顺序") + private Integer xssx; + /** + * 记录状态 + */ + @ApiModelProperty(value = "记录状态") + private Integer jlzt; + /** + * 入库人员 + */ + @ApiModelProperty(value = "入库人员") + private String rkry; + /** + * 入库时间 + */ + @ApiModelProperty(value = "入库时间") + private String gxry; + /** + * 更新时间 + */ + @ApiModelProperty(value = "更新时间") + private Date rksj; + /** + * 更新人员 + */ + @ApiModelProperty(value = "更新人员") + private Date gxsj; +} + diff --git a/src/main/java/com/mudu/entity/ASafeQyjcxx.java b/src/main/java/com/mudu/entity/ASafeQyjcxx.java new file mode 100644 index 0000000..442ca32 --- /dev/null +++ b/src/main/java/com/mudu/entity/ASafeQyjcxx.java @@ -0,0 +1,609 @@ +package com.mudu.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.mudu.entity.dto.response.EnterpriseResponse; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Getter; +import lombok.Setter; + +import java.io.Serializable; +import java.text.NumberFormat; +import java.util.Date; + + +/** + * (ASafeQyjcxx)表实体类 + * + * @author wu + * @since 2024-02-26 10:43:24 + */ +@Getter +@Setter +@ApiModel("实体类") +@TableName(value = "a_safe_qyjcxx") +public class ASafeQyjcxx implements Serializable { + + private static final long serialVersionUID = -50281110442061251L; + private String xxbh; + /** + * 企业名称 + */ + @ApiModelProperty(value = "企业名称") + private String qymc; + /** + * 其他名称 + */ + @ApiModelProperty(value = "其他名称") + private String qtmc; + /** + * 统一社会信用编码 + */ + @ApiModelProperty(value = "统一社会信用编码") + private String tyshxybm; + /** + * 经度 + */ + @ApiModelProperty(value = "经度") + private Double jd; + /** + * 纬度 + */ + @ApiModelProperty(value = "纬度") + private Double wd; + /** + * 注册地址 + */ + @ApiModelProperty(value = "注册地址") + private String zcdz; + /** + * 经营地址 + */ + @ApiModelProperty(value = "经营地址") + private String jydz; + /** + * 是否自有房屋 + */ + @ApiModelProperty(value = "是否自有房屋") + private Integer zyfw; + /** + * 房东性质 + */ + @ApiModelProperty(value = "房东性质") + private String fdxz; + /** + * 房东企业名称 + */ + @ApiModelProperty(value = "房东企业名称") + private String fdqymc; + /** + * 房东企业信用代码 + */ + @ApiModelProperty(value = "房东企业信用代码") + private String fdqyxydm; + /** + * 房东企业联系人 + */ + @ApiModelProperty(value = "房东企业联系人") + private String fdqylxr; + /** + * 房东企业联系电话 + */ + @ApiModelProperty(value = "房东企业联系电话") + private String fdqylxdh; + /** + * 是否发包出租 + */ + @ApiModelProperty(value = "是否发包出租") + private Integer sffbcz; + /** + * 是否异地经营 + */ + @ApiModelProperty(value = "是否异地经营") + private Integer sfydjy; + /** + * 行政区划编号 + */ + @ApiModelProperty(value = "行政区划编号") + private String xzqhbh; + /** + * 行政区划名称 + */ + @ApiModelProperty(value = "行政区划名称") + private String xzqhmc; + /** + * 行政区划内部编码 + */ + @ApiModelProperty(value = "行政区划内部编码") + private String xzqhnbbm; + /** + * 网格编号 + */ + @ApiModelProperty(value = "网格编号") + private String wgbh; + /** + * 网格名称 + */ + @ApiModelProperty(value = "网格名称") + private String wgmc; + /** + * 成立日期 + */ + @ApiModelProperty(value = "成立日期") + private Date clrq; + /** + * 企业性质ID + */ + @ApiModelProperty(value = "企业性质ID") + private String qyxzid; + /** + * 企业性质VALUE + */ + @ApiModelProperty(value = "企业性质VALUE") + private String qyxzvalue; + /** + * 行业类别门类ID + */ + @ApiModelProperty(value = "行业类别门类ID") + private String hylbmlid; + /** + * 行业类别门类VALUE + */ + @ApiModelProperty(value = "行业类别门类VALUE") + private String hylbmlvalue; + /** + * 行业类别大类ID + */ + @ApiModelProperty(value = "行业类别大类ID") + private String hylbdlid; + /** + * 行业类别大类VALUE + */ + @ApiModelProperty(value = "行业类别大类VALUE") + private String hylbdlvalue; + /** + * 行业类别中类ID + */ + @ApiModelProperty(value = "行业类别中类ID") + private String hylbzlid; + /** + * 行业类别中类VALUE + */ + @ApiModelProperty(value = "行业类别中类VALUE") + private String hylbzlvalue; + /** + * 行业类别小类ID + */ + @ApiModelProperty(value = "行业类别小类ID") + private String hylbxlid; + /** + * 行业类别小类VALUE + */ + @ApiModelProperty(value = "行业类别小类VALUE") + private String hylbxlvalue; + /** + * 注册资本 + */ + @ApiModelProperty(value = "注册资本") + private String zczb; + /** + * 企业规模ID + */ + @ApiModelProperty(value = "企业规模ID") + private String qygmid; + /** + * 企业国模VALUE + */ + @ApiModelProperty(value = "企业国模VALUE") + private String qygmvalue; + /** + * 从业人员数量 + */ + @ApiModelProperty(value = "从业人员数量") + private String cyrysl; + /** + * 行业监管大类id + */ + @ApiModelProperty(value = "行业监管大类id") + private String hyjgdlid; + /** + * 行业监管大类value + */ + @ApiModelProperty(value = "行业监管大类value") + private String hyjgdlvalue; + /** + * 行业监管种类ID + */ + @ApiModelProperty(value = "行业监管种类ID") + private String hyjgzlid; + /** + * 行业监管种类VALUE + */ + @ApiModelProperty(value = "行业监管种类VALUE") + private String hyjgzlvalue; + /** + * 行业监管小类ID + */ + @ApiModelProperty(value = "行业监管小类ID") + private String hyjgxlid; + /** + * 行业监管小类VALUE + */ + @ApiModelProperty(value = "行业监管小类VALUE") + private String hyjgxlvalue; + /** + * 安全生产标准化等级ID + */ + @ApiModelProperty(value = "安全生产标准化等级ID") + private String aqscdjid; + /** + * 经营范围 + */ + @ApiModelProperty(value = "经营范围") + private String jyfw; + /** + * 有限空间-主要危险因素 + */ + @ApiModelProperty(value = "有限空间-主要危险因素") + private String yxkjZywxys; + /** + * 粉尘涉爆-粉尘种类 + */ + @ApiModelProperty(value = "粉尘涉爆-粉尘种类") + private String fcsbFczl; + /** + * 粉尘涉爆-主要涉粉工艺 + */ + @ApiModelProperty(value = "粉尘涉爆-主要涉粉工艺") + private String fcsbZysffy; + /** + * 粉尘涉爆-单班涉粉作业人数 + */ + @ApiModelProperty(value = "粉尘涉爆-单班涉粉作业人数") + private String fcsbDbsfzyrs; + /** + * 粉尘涉爆-除尘器信息 + */ + @ApiModelProperty(value = "粉尘涉爆-除尘器信息") + private String fcsbCcqxx; + /** + * 粉尘涉爆-除尘系统是否经过验收 + */ + @ApiModelProperty(value = "粉尘涉爆-除尘系统是否经过验收") + private String fcsbSfjgys; + /** + * 粉尘涉爆-是否有安全评价 + */ + @ApiModelProperty(value = "粉尘涉爆-是否有安全评价") + private String fcsbSfyap; + /** + * 企业标签 + */ + @ApiModelProperty(value = "企业标签") + private String qybq; + /** + * 粉尘涉爆-备注 + */ + @ApiModelProperty(value = "粉尘涉爆-备注") + private String fcsbBz; + /** + * 涉氨制冷-液氨储存、使用量 + */ + @ApiModelProperty(value = "涉氨制冷-液氨储存、使用量") + private String sazlYaccsyl; + /** + * 涉案制冷-涉氨作业人数 + */ + @ApiModelProperty(value = "涉案制冷-涉氨作业人数") + private String sazlSazyrs; + /** + * 涉案制冷-进行重大危险源安全评估 + */ + @ApiModelProperty(value = "涉案制冷-进行重大危险源安全评估") + private String sazlZdwxyaqpg; + /** + * 机械铸造-年产量 + */ + @ApiModelProperty(value = "机械铸造-年产量") + private String jxzzNcl; + /** + * 机械铸造-主要产品/重点产品 + */ + @ApiModelProperty(value = "机械铸造-主要产品/重点产品") + private String jxzzZycpzdpz; + /** + * 机械铸造-高温熔融金属类型 + */ + @ApiModelProperty(value = "机械铸造-高温熔融金属类型") + private String jxzzGwrrjslx; + /** + * 机械铸造-涉高温熔融金属岗位人数 + */ + @ApiModelProperty(value = "机械铸造-涉高温熔融金属岗位人数") + private String jxzzSgwrrjsgwrs; + /** + * 机械铸造-吊运熔融金属起重机-数量 + */ + @ApiModelProperty(value = "机械铸造-吊运熔融金属起重机-数量") + private String jxzzQzjsl; + /** + * 机械铸造-是否检验 + */ + @ApiModelProperty(value = "机械铸造-是否检验") + private String jxzzSfjy; + /** + * 机械铸造-熔炼炉信息 + */ + @ApiModelProperty(value = "机械铸造-熔炼炉信息") + private String jxzzRlljrxx; + /** + * 机械铸造-铸造信息 + */ + @ApiModelProperty(value = "机械铸造-铸造信息") + private String jxzzZzxx; + /** + * 铝镁切削-废屑类型 + */ + @ApiModelProperty(value = "铝镁切削-废屑类型") + private String lmqxFxlx; + /** + * 铝镁切削-涉粉作业人员人数 + */ + @ApiModelProperty(value = "铝镁切削-涉粉作业人员人数") + private String lmqxSfzyryrs; + /** + * 铝镁切削-清理频次 + */ + @ApiModelProperty(value = "铝镁切削-清理频次") + private String lmqxQlpc; + /** + * 旅美切削-粉尘/废屑储存方式 + */ + @ApiModelProperty(value = "旅美切削-粉尘/废屑储存方式") + private String lmqxCcfs; + /** + * 旅美切削-粉尘/废屑回收单位 + */ + @ApiModelProperty(value = "旅美切削-粉尘/废屑回收单位") + private String lmqxFcfxhsdw; + /** + * 旅美切削-回收频次 + */ + @ApiModelProperty(value = "旅美切削-回收频次") + private String lmqxHspc; + /** + * 高镁合金-高美含量信息 + */ + @ApiModelProperty(value = "高镁合金-高美含量信息") + private String gmhjMhl; + /** + * 危险化学品-是否有安全三同时手续 + */ + @ApiModelProperty(value = "危险化学品-是否有安全三同时手续") + private String wxhxpSfyaqstssx; + /** + * 危险化学品-是否做安全评价 + */ + @ApiModelProperty(value = "危险化学品-是否做安全评价") + private String wxhxpSfzaqpj; + /** + * 危险化学品-开展安全评价及备案情况日期 + */ + @ApiModelProperty(value = "危险化学品-开展安全评价及备案情况日期") + private String wxhxpKzaqpjjbaqkrq; + /** + * 有色企业-年产量 + */ + @ApiModelProperty(value = "有色企业-年产量") + private String ysqyNcl; + /** + * 有色企业-主要产品/重点产品 + */ + @ApiModelProperty(value = "有色企业-主要产品/重点产品") + private String ysqyZycp; + /** + * 有色企业-高温熔融金属类型 + */ + @ApiModelProperty(value = "有色企业-高温熔融金属类型") + private String ysqyGwrrjslx; + /** + * 有色企业-涉高温熔融金属岗位人数 + */ + @ApiModelProperty(value = "有色企业-涉高温熔融金属岗位人数") + private String ysqySgwrrjsgwrs; + /** + * 有色企业-熔炼炉信息 + */ + @ApiModelProperty(value = "有色企业-熔炼炉信息") + private String ysqyRlljrxx; + /** + * 有色企业-铸造信息 + */ + @ApiModelProperty(value = "有色企业-铸造信息") + private String ysqyZzxx; + /** + * 入库时间 + */ + @ApiModelProperty(value = "入库时间") + private Date rksj; + /** + * 更新时间 + */ + @ApiModelProperty(value = "更新时间") + private Date gxsj; + /** + * 入库人员 + */ + @ApiModelProperty(value = "入库人员") + private String rkry; + /** + * 更新人员 + */ + @ApiModelProperty(value = "更新人员") + private String gxry; + /** + * 记录状态 + */ + @ApiModelProperty(value = "记录状态") + private Integer jlzt; + /** + * 安监办企业列表 + */ + @ApiModelProperty(value = "安监办企业列表") + private String ajbqylb; + /** + * 局内人员企业列表 + */ + @ApiModelProperty(value = "局内人员企业列表") + private String jnryqylb; + /** + * 安全生产标准化等级VALUE + */ + @ApiModelProperty(value = "安全生产标准化等级VALUE") + private String aqscdjvalue; + /** + * 启用状态 + */ + @ApiModelProperty(value = "启用状态") + private String qyzt; + /** + * 数据来源 + */ + @ApiModelProperty(value = "数据来源") + private String sjly; + /** + * 登陆账号 + */ + @ApiModelProperty(value = "登陆账号") + private String dlzh; + /** + * 风险评估等级 + */ + @ApiModelProperty(value = "风险评估等级") + private String fxpgdj; + /** + * 重大危险源等级id + */ + @ApiModelProperty(value = "重大危险源等级id") + private String zdwxydjid; + /** + * 重大危险源等级value + */ + @ApiModelProperty(value = "重大危险源等级value") + private String zdwxydjvalue; + /** + * 企业分类id + */ + @ApiModelProperty(value = "企业分类id") + private String qyflid; + /** + * 企业分类value + */ + @ApiModelProperty(value = "企业分类value") + private String qyflvalue; + /** + * 诚信管理-诚信等级 + */ + @ApiModelProperty(value = "诚信管理-诚信等级") + private String cxglcxdj; + /** + * 诚信管理-是否黑名单 + */ + @ApiModelProperty(value = "诚信管理-是否黑名单") + private String cxglsfhmd; + /** + * 诚信管理-不良记录数 + */ + @ApiModelProperty(value = "诚信管理-不良记录数") + private Integer cxglbljls; + /** + * 诚信管理-跟新时间 + */ + @ApiModelProperty(value = "诚信管理-跟新时间") + private Date cxglgxsj; + /** + * 法人代表姓名 + */ + @ApiModelProperty(value = "法人代表姓名") + private String frdbxm; + /** + * 法人代表电话 + */ + @ApiModelProperty(value = "法人代表电话") + private String frdbdh; + /** + * 房东姓名 + */ + @ApiModelProperty(value = "房东姓名") + private String fdxm; + /** + * 房东联系方式 + */ + @ApiModelProperty(value = "房东联系方式") + private String fdlxfs; + /** + * 所属部门 + */ + @ApiModelProperty(value = "所属部门") + private String ajbbmbh; + /** + * 所属部门 + */ + @ApiModelProperty(value = "所属部门") + private String jnrybmbh; + /** + * 是否推入市局 0否 1是 + */ + @ApiModelProperty(value = "是否推入市局 0否 1是") + private String sftrsj; + /** + * 科达企业编号,用来对照 + */ + @ApiModelProperty(value = "科达企业编号,用来对照") + private String kdqybh; + + public ASafeQyjcxx() { + } + + public ASafeQyjcxx(EnterpriseResponse res) { + + this.jd = conversion(res.getLongitude()); + this.wd = conversion(res.getLatitude()); + this.zcdz = res.getRegisterAddress(); + this.fdqymc = res.getParkName(); + this.fdqylxr = res.getPersonInCharge(); + this.fdqylxdh = res.getPersonInChargePhone(); + this.xzqhbh = "320506103"; + this.xzqhmc = "木渎镇"; + this.xzqhnbbm = "1.320000.320500.320506.320506103"; + this.wgbh = res.getLocationID(); + this.wgmc = res.getLocationName(); + +// this.qyxzid = res.getTypeID(); +// this.qyxzvalue = res.getTypeName(); +// this.hylbmlid = res.getIndustryID(); +// this.hylbmlvalue = res.getIndustryName(); +// this.qyzt = res.getStatus(); + + this.cyrysl = String.valueOf(res.getPerson()); + this.frdbxm = res.getPersonName(); + this.frdbdh = res.getPhone(); + + + } + + /** + * 字符串转double + * + * @param number 字符串 + * @return double + */ + private Double conversion(String number) { + double num = Double.parseDouble(number); + // 使用 NumberFormat 格式化保留 5 位小数 + NumberFormat nf = NumberFormat.getInstance(); + nf.setMaximumFractionDigits(5); + return Double.parseDouble(nf.format(num)); + } +} + diff --git a/src/main/java/com/mudu/entity/ASafeXcrw.java b/src/main/java/com/mudu/entity/ASafeXcrw.java new file mode 100644 index 0000000..5e49f49 --- /dev/null +++ b/src/main/java/com/mudu/entity/ASafeXcrw.java @@ -0,0 +1,103 @@ +package com.mudu.entity; + +import java.util.Date; + +import java.io.Serializable; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableField; +import io.swagger.annotations.ApiModelProperty; +import io.swagger.annotations.ApiModel; +import lombok.Data; + + +/** + * (ASafeXcrw)表实体类 + * + * @author wu + * @since 2024-02-26 10:43:24 + */ +@Data +@ApiModel("实体类") +@TableName(value = "a_safe_xcrw") +public class ASafeXcrw implements Serializable { + + private static final long serialVersionUID = -36857779780957488L; + private String xxbh; + /** + * 周期编号 + */ + @ApiModelProperty(value = "周期编号") + private String zqbh; + /** + * 企业编号 + */ + @ApiModelProperty(value = "企业编号") + private String qybh; + /** + * 巡查项 + */ + @ApiModelProperty(value = "巡查项") + private Integer xcx; + /** + * 完成项 + */ + @ApiModelProperty(value = "完成项") + private Integer wcx; + /** + * 发现隐患树 + */ + @ApiModelProperty(value = "发现隐患树") + private Integer fxyhs; + /** + * 完成状态 + */ + @ApiModelProperty(value = "完成状态") + private Integer wczt; + /** + * 检查时间 + */ + @ApiModelProperty(value = "检查时间") + private Date jcsj; + /** + * 其他人员 + */ + @ApiModelProperty(value = "其他人员") + private String qtry; + /** + * 专家意见 + */ + @ApiModelProperty(value = "专家意见") + private String zjyj; + /** + * 任务类型 + */ + @ApiModelProperty(value = "任务类型") + private String rwlx; + /** + * 入库时间 + */ + @ApiModelProperty(value = "入库时间") + private Date rksj; + /** + * 入库人员 + */ + @ApiModelProperty(value = "入库人员") + private String rkry; + /** + * 更新时间 + */ + @ApiModelProperty(value = "更新时间") + private Date gxsj; + /** + * 更新人员 + */ + @ApiModelProperty(value = "更新人员") + private String gxry; + /** + * 记录状态 + */ + @ApiModelProperty(value = "记录状态") + private Integer jlzt; +} + diff --git a/src/main/java/com/mudu/entity/ASafeXcrwjcx.java b/src/main/java/com/mudu/entity/ASafeXcrwjcx.java new file mode 100644 index 0000000..76dc110 --- /dev/null +++ b/src/main/java/com/mudu/entity/ASafeXcrwjcx.java @@ -0,0 +1,217 @@ +package com.mudu.entity; + +import java.util.Date; + +import java.io.Serializable; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableField; +import io.swagger.annotations.ApiModelProperty; +import io.swagger.annotations.ApiModel; +import lombok.Data; + + +/** + * (ASafeXcrwjcx)表实体类 + * + * @author wu + * @since 2024-02-26 10:43:24 + */ +@Data +@ApiModel("实体类") +@TableName(value = "a_safe_xcrwjcx") +public class ASafeXcrwjcx implements Serializable { + + private static final long serialVersionUID = 253429016629233219L; + /** + * 信息编号 + */ + @ApiModelProperty(value = "信息编号") + private String xxbh; + /** + * 企业编号 + */ + @ApiModelProperty(value = "企业编号") + private String qybh; + /** + * 企业风险点编号 + */ + @ApiModelProperty(value = "企业风险点编号") + private String qyfxdbh; + /** + * 周期编号 + */ + @ApiModelProperty(value = "周期编号") + private String zqbh; + /** + * 任务编号 + */ + @ApiModelProperty(value = "任务编号") + private String rwbh; + /** + * 检查时间 + */ + @ApiModelProperty(value = "检查时间") + private Date jcsj; + /** + * 检查项结果 + */ + @ApiModelProperty(value = "检查项结果") + private String jcxjg; + /** + * 检查要点 + */ + @ApiModelProperty(value = "检查要点") + private String jcyd; + /** + * 检查要点编号 + */ + @ApiModelProperty(value = "检查要点编号") + private String jcydbh; + /** + * 是否重点检查项 0否 1 是 + */ + @ApiModelProperty(value = "是否重点检查项 0否 1 是") + private Integer sfzdjcx; + /** + * 整改期限 + */ + @ApiModelProperty(value = "整改期限") + private Date zgqx; + /** + * 整改状态 + */ + @ApiModelProperty(value = "整改状态") + private Integer zgzt; + /** + * 完成状态 + */ + @ApiModelProperty(value = "完成状态") + private Integer wczt; + /** + * 整改时间 + */ + @ApiModelProperty(value = "整改时间") + private Date zgsj; + /** + * 整改描述 + */ + @ApiModelProperty(value = "整改描述") + private String zgms; + /** + * 整改逾期 + */ + @ApiModelProperty(value = "整改逾期") + private Integer zgyq; + /** + * 历史整改逾期 + */ + @ApiModelProperty(value = "历史整改逾期") + private Integer lszgyq; + /** + * 复查状态 + */ + @ApiModelProperty(value = "复查状态") + private Integer fczt; + /** + * 复查历史逾期 + */ + @ApiModelProperty(value = "复查历史逾期") + private Integer fclsyq; + /** + * 复查信息 + */ + @ApiModelProperty(value = "复查信息") + private String fcxx; + /** + * 复查逾期 + */ + @ApiModelProperty(value = "复查逾期") + private Integer fcyq; + /** + * 复查时间 + */ + @ApiModelProperty(value = "复查时间") + private Date fcsj; + /** + * 复查期限 + */ + @ApiModelProperty(value = "复查期限") + private Date fcqx; + /** + * 复查是否合格 + */ + @ApiModelProperty(value = "复查是否合格") + private Integer fcsfhg; + /** + * 复查不合格 + */ + @ApiModelProperty(value = "复查不合格") + private Integer fcbhg; + /** + * 位置编号 + */ + @ApiModelProperty(value = "位置编号") + private String wzbh; + /** + * 隐患描述 + */ + @ApiModelProperty(value = "隐患描述") + private String yhms; + /** + * 备注 + */ + @ApiModelProperty(value = "备注") + private String bz; + /** + * 是否多次发生隐患 + */ + @ApiModelProperty(value = "是否多次发生隐患") + private Integer sfdcfsyh; + /** + * 是否展示 + */ + @ApiModelProperty(value = "是否展示") + private Integer sfzs; + /** + * 巡查位置编号 + */ + @ApiModelProperty(value = "巡查位置编号") + private String xcwzbh; + /** + * 巡查风险点编号 + */ + @ApiModelProperty(value = "巡查风险点编号") + private String xcfxdbh; + /** + * 任务类型 + */ + @ApiModelProperty(value = "任务类型") + private Integer rwlx; + /** + * 入库时间 + */ + @ApiModelProperty(value = "入库时间") + private Date rksj; + /** + * 入库人员 + */ + @ApiModelProperty(value = "入库人员") + private String rkry; + /** + * 更新时间 + */ + @ApiModelProperty(value = "更新时间") + private Date gxsj; + /** + * 更新人员 + */ + @ApiModelProperty(value = "更新人员") + private String gxry; + /** + * 记录状态 + */ + @ApiModelProperty(value = "记录状态") + private Integer jlzt; +} + diff --git a/src/main/java/com/mudu/entity/ASafeXcrwjcxzgxx.java b/src/main/java/com/mudu/entity/ASafeXcrwjcxzgxx.java new file mode 100644 index 0000000..4ad3e44 --- /dev/null +++ b/src/main/java/com/mudu/entity/ASafeXcrwjcxzgxx.java @@ -0,0 +1,93 @@ +package com.mudu.entity; + +import java.util.Date; + +import java.io.Serializable; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableField; +import io.swagger.annotations.ApiModelProperty; +import io.swagger.annotations.ApiModel; +import lombok.Data; + + +/** + * (ASafeXcrwjcxzgxx)表实体类 + * + * @author wu + * @since 2024-02-26 10:43:25 + */ +@Data +@ApiModel("实体类") +@TableName(value = "a_safe_xcrwjcxzgxx") +public class ASafeXcrwjcxzgxx implements Serializable { + + private static final long serialVersionUID = 973627969644943727L; + private String xxbh; + /** + * 周期编号 + */ + @ApiModelProperty(value = "周期编号") + private String zqbh; + /** + * 任务编号 + */ + @ApiModelProperty(value = "任务编号") + private String rwbh; + /** + * 巡查检查项编号 + */ + @ApiModelProperty(value = "巡查检查项编号") + private String xcjcxbh; + /** + * 描述 + */ + @ApiModelProperty(value = "描述") + private String ms; + /** + * 数据来源 + */ + @ApiModelProperty(value = "数据来源") + private String sjlx; + /** + * 时间 + */ + @ApiModelProperty(value = "时间") + private Date sj; + /** + * 是否合格 + */ + @ApiModelProperty(value = "是否合格") + private Integer sfhg; + /** + * 到期日期 + */ + @ApiModelProperty(value = "到期日期") + private Date dqrq; + /** + * 记录状态 + */ + @ApiModelProperty(value = "记录状态") + private Integer jlzt; + /** + * 入库时间 + */ + @ApiModelProperty(value = "入库时间") + private Date rksj; + /** + * 跟新时间 + */ + @ApiModelProperty(value = "跟新时间") + private Date gxsj; + /** + * 入库人员 + */ + @ApiModelProperty(value = "入库人员") + private String rkry; + /** + * 跟新人员 + */ + @ApiModelProperty(value = "跟新人员") + private String gxry; +} + diff --git a/src/main/java/com/mudu/entity/ASafeYhzgxx.java b/src/main/java/com/mudu/entity/ASafeYhzgxx.java new file mode 100644 index 0000000..05d55eb --- /dev/null +++ b/src/main/java/com/mudu/entity/ASafeYhzgxx.java @@ -0,0 +1,148 @@ +package com.mudu.entity; + +import java.util.Date; + +import java.io.Serializable; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableField; +import io.swagger.annotations.ApiModelProperty; +import io.swagger.annotations.ApiModel; +import lombok.Data; + + +/** + * (ASafeYhzgxx)表实体类 + * + * @author wu + * @since 2024-02-26 10:43:25 + */ +@Data +@ApiModel("实体类") +@TableName(value = "a_safe_yhzgxx") +public class ASafeYhzgxx implements Serializable { + + private static final long serialVersionUID = -41863728980427289L; + private String xxbh; + /** + * 企业编号 + */ + @ApiModelProperty(value = "企业编号") + private String qybh; + /** + * 企业风险点编号 + */ + @ApiModelProperty(value = "企业风险点编号") + private String qyfxdbh; + /** + * 位置编号 + */ + @ApiModelProperty(value = "位置编号") + private String wzbh; + /** + * 隐患来源 + */ + @ApiModelProperty(value = "隐患来源") + private String yhly; + /** + * 检查时间 + */ + @ApiModelProperty(value = "检查时间") + private Date jcsj; + /** + * 整改期限 + */ + @ApiModelProperty(value = "整改期限") + private Date zgqx; + /** + * 不合格检查项 + */ + @ApiModelProperty(value = "不合格检查项") + private Integer bhgjcx; + /** + * 整改状态 + */ + @ApiModelProperty(value = "整改状态") + private Integer zgzt; + /** + * 是否展示 + */ + @ApiModelProperty(value = "是否展示") + private Integer sfzs; + /** + * 自查记录编号 + */ + @ApiModelProperty(value = "自查记录编号") + private String zcjlbh; + /** + * 任务编号 + */ + @ApiModelProperty(value = "任务编号") + private String rwbh; + /** + * 巡查位置编号 + */ + @ApiModelProperty(value = "巡查位置编号") + private String xcwzbh; + /** + * 复查是否合格 + */ + @ApiModelProperty(value = "复查是否合格") + private Integer fcsfhg; + /** + * 隐患描述 + */ + @ApiModelProperty(value = "隐患描述") + private String yhms; + /** + * 整改结果 + */ + @ApiModelProperty(value = "整改结果") + private String zgjg; + /** + * 整改时间 + */ + @ApiModelProperty(value = "整改时间") + private Date zgsj; + /** + * 历史逾期 + */ + @ApiModelProperty(value = "历史逾期") + private Integer lsyq; + /** + * 周期编号 + */ + @ApiModelProperty(value = "周期编号") + private String zqbh; + /** + * 完成状态 + */ + @ApiModelProperty(value = "完成状态") + private Integer wczt; + /** + * 入库时间 + */ + @ApiModelProperty(value = "入库时间") + private Date rksj; + /** + * 入库人员 + */ + @ApiModelProperty(value = "入库人员") + private String rkry; + /** + * 更新时间 + */ + @ApiModelProperty(value = "更新时间") + private Date gxsj; + /** + * 跟新人员 + */ + @ApiModelProperty(value = "跟新人员") + private String gxry; + /** + * 记录状态 + */ + @ApiModelProperty(value = "记录状态") + private Integer jlzt; +} + diff --git a/src/main/java/com/mudu/entity/ASafeZcrw.java b/src/main/java/com/mudu/entity/ASafeZcrw.java new file mode 100644 index 0000000..a01d8b4 --- /dev/null +++ b/src/main/java/com/mudu/entity/ASafeZcrw.java @@ -0,0 +1,83 @@ +package com.mudu.entity; + +import java.util.Date; + +import java.io.Serializable; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableField; +import io.swagger.annotations.ApiModelProperty; +import io.swagger.annotations.ApiModel; +import lombok.Data; + + +/** + * (ASafeZcrw)表实体类 + * + * @author wu + * @since 2024-02-26 10:43:25 + */ +@Data +@ApiModel("实体类") +@TableName(value = "a_safe_zcrw") +public class ASafeZcrw implements Serializable { + + private static final long serialVersionUID = 958781896969860908L; + private String xxbh; + /** + * 周期编号 + */ + @ApiModelProperty(value = "周期编号") + private String zqbh; + /** + * 企业编号 + */ + @ApiModelProperty(value = "企业编号") + private String qybh; + /** + * 自查项 + */ + @ApiModelProperty(value = "自查项") + private Integer zcx; + /** + * 完成项 + */ + @ApiModelProperty(value = "完成项") + private Integer wcx; + /** + * 发现隐患数 + */ + @ApiModelProperty(value = "发现隐患数") + private Integer fxyhs; + /** + * 完成状态 + */ + @ApiModelProperty(value = "完成状态") + private Integer wczt; + /** + * 入库时间 + */ + @ApiModelProperty(value = "入库时间") + private Date rksj; + /** + * 入库人员 + */ + @ApiModelProperty(value = "入库人员") + private String rkry; + /** + * 更新时间 + */ + @ApiModelProperty(value = "更新时间") + private Date gxsj; + /** + * 更新人员 + */ + @ApiModelProperty(value = "更新人员") + private String gxry; + /** + * 记录状态 + */ + @ApiModelProperty(value = "记录状态") + private Integer jlzt; +} + diff --git a/src/main/java/com/mudu/entity/ASafeZcrwjl.java b/src/main/java/com/mudu/entity/ASafeZcrwjl.java new file mode 100644 index 0000000..81df5b7 --- /dev/null +++ b/src/main/java/com/mudu/entity/ASafeZcrwjl.java @@ -0,0 +1,133 @@ +package com.mudu.entity; + +import java.util.Date; + +import java.io.Serializable; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableField; +import io.swagger.annotations.ApiModelProperty; +import io.swagger.annotations.ApiModel; +import lombok.Data; + + +/** + * (ASafeZcrwjl)表实体类 + * + * @author wu + * @since 2024-02-26 10:43:25 + */ +@Data +@ApiModel("实体类") +@TableName(value = "a_safe_zcrwjl") +public class ASafeZcrwjl implements Serializable { + + private static final long serialVersionUID = -25715805175164681L; + private String xxbh; + /** + * 周期编号 + */ + @ApiModelProperty(value = "周期编号") + private String zqbh; + /** + * 任务编号 + */ + @ApiModelProperty(value = "任务编号") + private String rwbh; + /** + * 企业编号 + */ + @ApiModelProperty(value = "企业编号") + private String qybh; + /** + * 企业风险点编号 + */ + @ApiModelProperty(value = "企业风险点编号") + private String qyfxdbh; + /** + * 企业风险点位置编号 + */ + @ApiModelProperty(value = "企业风险点位置编号") + private String qyfxdwzbh; + /** + * 位置编号 + */ + @ApiModelProperty(value = "位置编号") + private String wzbh; + /** + * 自查任务位置编号 + */ + @ApiModelProperty(value = "自查任务位置编号") + private String zcrwwzbh; + /** + * 设备数量 + */ + @ApiModelProperty(value = "设备数量") + private Integer sbsl; + /** + * 检查状态 + */ + @ApiModelProperty(value = "检查状态") + private Integer jczt; + /** + * 完成状态 + */ + @ApiModelProperty(value = "完成状态") + private Integer wczt; + /** + * 是否检查 + */ + @ApiModelProperty(value = "是否检查") + private Integer sfjc; + /** + * 检查时间 + */ + @ApiModelProperty(value = "检查时间") + private Date jcsj; + /** + * 是否采取有限管控措施 + */ + @ApiModelProperty(value = "是否采取有限管控措施") + private Integer sfcqyxgkcs; + /** + * 具体管控措施 + */ + @ApiModelProperty(value = "具体管控措施") + private String jtgkcs; + /** + * 是否发现隐患 + */ + @ApiModelProperty(value = "是否发现隐患") + private Integer sffxyh; + /** + * 隐患描述 + */ + @ApiModelProperty(value = "隐患描述") + private String yhms; + /** + * 入库时间 + */ + @ApiModelProperty(value = "入库时间") + private Date rksj; + /** + * 入库人员 + */ + @ApiModelProperty(value = "入库人员") + private String rkry; + /** + * 跟新时间 + */ + @ApiModelProperty(value = "跟新时间") + private Date gxsj; + /** + * 跟新人员 + */ + @ApiModelProperty(value = "跟新人员") + private String gxry; + /** + * 记录状态 + */ + @ApiModelProperty(value = "记录状态") + private Integer jlzt; +} + diff --git a/src/main/java/com/mudu/entity/dto/response/EnterpriseResponse.java b/src/main/java/com/mudu/entity/dto/response/EnterpriseResponse.java new file mode 100644 index 0000000..dcdeb7d --- /dev/null +++ b/src/main/java/com/mudu/entity/dto/response/EnterpriseResponse.java @@ -0,0 +1,145 @@ +package com.mudu.entity.dto.response; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; + +/** + * 企业信息响应类 + * + * @author wu + * @since 2024/2/22 16:48 + */ +@Data +@ApiModel(value = "企业信息响应类") +public class EnterpriseResponse implements Serializable { + private static final long serialVersionUID = -2964947748678034353L; + + /** + * 主键id + */ + @ApiModelProperty(value = "主键id") + private String id; + + /** + * 企业名称 + */ + @ApiModelProperty(value = "企业名称") + private String name; + + /** + * 机构代码证 + */ + @ApiModelProperty(value = "机构代码证") + private String certificateCode; + + /** + * 经度 + */ + @ApiModelProperty(value = "经度") + private String longitude; + + /** + * 维度 + */ + @ApiModelProperty(value = "维度") + private String latitude; + + /** + * 注册地 + */ + @ApiModelProperty(value = "注册地") + private String registerAddress; + + /** + * 经营地 + */ + @ApiModelProperty(value = "经营地") + private String businessAddress; + + /** + * 所属园区 + */ + @ApiModelProperty(value = "所属园区") + private String parkName; + + /** + * 房东企业联系人 + */ + @ApiModelProperty(value = "房东企业联系人") + private String personInCharge; + + /** + * 房东企业联系电话 + */ + @ApiModelProperty(value = "房东企业联系电话") + private String personInChargePhone; + + /** + * 网格编号 + */ + @ApiModelProperty(value = "网格编号") + private String locationID; + + /** + * 网格名称 + */ + @ApiModelProperty(value = "网格名称") + private String locationName; + + /** + * 企业性质类别 + */ + @ApiModelProperty(value = "企业性质类别") + private String typeID; + + /** + * 企业性质 + */ + @ApiModelProperty(value = "企业性质") + private String typeName; + + /** + * 行业列表代码 + */ + @ApiModelProperty(value = "行业列表代码") + private String industryID; + + /** + * 行业类别门类 + */ + @ApiModelProperty(value = "行业类别门类") + private String industryName; + + /** + * 从业人员数量 + */ + @ApiModelProperty(value = "从业人员数量") + private Integer person; + + /** + * 主营产品 + */ + @ApiModelProperty(value = "主营产品") + private String businessScope; + + /** + * 企业状态 + */ + @ApiModelProperty(value = "企业状态") + private String Status; + + /** + * 法人代表 + */ + @ApiModelProperty(value = "法人代表") + private String personName; + + /** + * 法人电话 + */ + @ApiModelProperty(value = "法人电话") + private String phone; +} diff --git a/src/main/java/com/mudu/entity/dto/response/GeneralResponse.java b/src/main/java/com/mudu/entity/dto/response/GeneralResponse.java new file mode 100644 index 0000000..23e431a --- /dev/null +++ b/src/main/java/com/mudu/entity/dto/response/GeneralResponse.java @@ -0,0 +1,37 @@ +package com.mudu.entity.dto.response; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; + +/** + * 通用响应类 + * + * @author wu + * @since 2024/2/26 14:23 + */ +@Data +@ApiModel(value = "通用响应类") +public class GeneralResponse implements Serializable { + + private static final long serialVersionUID = 6094594534125452950L; + /** + * 接口响应消息 + */ + @ApiModelProperty(value = "接口响应消息") + private String msg; + + /** + * 响应数据 + */ + @ApiModelProperty(value = "响应数据") + private Object data; + + /** + * 响应代码 + */ + @ApiModelProperty(value = "响应代码") + private String code; +} diff --git a/src/main/java/com/mudu/mapper/ASafeBmxxMapper.java b/src/main/java/com/mudu/mapper/ASafeBmxxMapper.java new file mode 100644 index 0000000..d9a76d9 --- /dev/null +++ b/src/main/java/com/mudu/mapper/ASafeBmxxMapper.java @@ -0,0 +1,15 @@ +package com.mudu.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mudu.entity.ASafeBmxx; + +/** + * 风险库部门信息表(ASafeBmxx)表数据库访问层 + * + * @author wu + * @since 2024-02-26 10:43:22 + */ +public interface ASafeBmxxMapper extends BaseMapper { + +} + diff --git a/src/main/java/com/mudu/mapper/ASafeFxdMapper.java b/src/main/java/com/mudu/mapper/ASafeFxdMapper.java new file mode 100644 index 0000000..f2b3e4b --- /dev/null +++ b/src/main/java/com/mudu/mapper/ASafeFxdMapper.java @@ -0,0 +1,15 @@ +package com.mudu.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mudu.entity.ASafeFxd; + +/** + * (ASafeFxd)表数据库访问层 + * + * @author wu + * @since 2024-02-26 10:43:22 + */ +public interface ASafeFxdMapper extends BaseMapper { + +} + diff --git a/src/main/java/com/mudu/mapper/ASafeFxdwzMapper.java b/src/main/java/com/mudu/mapper/ASafeFxdwzMapper.java new file mode 100644 index 0000000..6d13760 --- /dev/null +++ b/src/main/java/com/mudu/mapper/ASafeFxdwzMapper.java @@ -0,0 +1,15 @@ +package com.mudu.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mudu.entity.ASafeFxdwz; + +/** + * (ASafeFxdwz)表数据库访问层 + * + * @author wu + * @since 2024-02-26 10:43:22 + */ +public interface ASafeFxdwzMapper extends BaseMapper { + +} + diff --git a/src/main/java/com/mudu/mapper/ASafeFxkMapper.java b/src/main/java/com/mudu/mapper/ASafeFxkMapper.java new file mode 100644 index 0000000..6c36af0 --- /dev/null +++ b/src/main/java/com/mudu/mapper/ASafeFxkMapper.java @@ -0,0 +1,15 @@ +package com.mudu.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mudu.entity.ASafeFxk; + +/** + * (ASafeFxk)表数据库访问层 + * + * @author wu + * @since 2024-02-26 10:43:23 + */ +public interface ASafeFxkMapper extends BaseMapper { + +} + diff --git a/src/main/java/com/mudu/mapper/ASafeGllbMapper.java b/src/main/java/com/mudu/mapper/ASafeGllbMapper.java new file mode 100644 index 0000000..5aa24b7 --- /dev/null +++ b/src/main/java/com/mudu/mapper/ASafeGllbMapper.java @@ -0,0 +1,15 @@ +package com.mudu.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mudu.entity.ASafeGllb; + +/** + * (ASafeGllb)表数据库访问层 + * + * @author wu + * @since 2024-02-26 10:43:23 + */ +public interface ASafeGllbMapper extends BaseMapper { + +} + diff --git a/src/main/java/com/mudu/mapper/ASafeJcydMapper.java b/src/main/java/com/mudu/mapper/ASafeJcydMapper.java new file mode 100644 index 0000000..98d9301 --- /dev/null +++ b/src/main/java/com/mudu/mapper/ASafeJcydMapper.java @@ -0,0 +1,15 @@ +package com.mudu.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mudu.entity.ASafeJcyd; + +/** + * (ASafeJcyd)表数据库访问层 + * + * @author wu + * @since 2024-02-26 10:43:23 + */ +public interface ASafeJcydMapper extends BaseMapper { + +} + diff --git a/src/main/java/com/mudu/mapper/ASafeQybhysbMapper.java b/src/main/java/com/mudu/mapper/ASafeQybhysbMapper.java new file mode 100644 index 0000000..17a9470 --- /dev/null +++ b/src/main/java/com/mudu/mapper/ASafeQybhysbMapper.java @@ -0,0 +1,15 @@ +package com.mudu.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mudu.entity.ASafeQybhysb; + +/** + * 企业编号映射表(ASafeQybhysb)表数据库访问层 + * + * @author wu + * @since 2024-02-26 10:43:23 + */ +public interface ASafeQybhysbMapper extends BaseMapper { + +} + diff --git a/src/main/java/com/mudu/mapper/ASafeQyfxwzMapper.java b/src/main/java/com/mudu/mapper/ASafeQyfxwzMapper.java new file mode 100644 index 0000000..23a8c10 --- /dev/null +++ b/src/main/java/com/mudu/mapper/ASafeQyfxwzMapper.java @@ -0,0 +1,15 @@ +package com.mudu.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mudu.entity.ASafeQyfxwz; + +/** + * (ASafeQyfxwz)表数据库访问层 + * + * @author wu + * @since 2024-02-26 10:43:23 + */ +public interface ASafeQyfxwzMapper extends BaseMapper { + +} + diff --git a/src/main/java/com/mudu/mapper/ASafeQyjcxxMapper.java b/src/main/java/com/mudu/mapper/ASafeQyjcxxMapper.java new file mode 100644 index 0000000..8ec5d04 --- /dev/null +++ b/src/main/java/com/mudu/mapper/ASafeQyjcxxMapper.java @@ -0,0 +1,24 @@ +package com.mudu.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mudu.entity.ASafeQyjcxx; +import org.apache.ibatis.annotations.Param; + +/** + * (ASafeQyjcxx)表数据库访问层 + * + * @author wu + * @since 2024-02-26 10:43:24 + */ +public interface ASafeQyjcxxMapper extends BaseMapper { + + /** + * 根据企业名称或信用代码查询数据 + * + * @param qymc 企业名称 + * @param xybm 信用代码 + * @return 数据 + */ + ASafeQyjcxx findOneByqymcOrXybm(@Param("qymc") String qymc, @Param("xybm") String xybm); +} + diff --git a/src/main/java/com/mudu/mapper/ASafeXcrwMapper.java b/src/main/java/com/mudu/mapper/ASafeXcrwMapper.java new file mode 100644 index 0000000..20d1864 --- /dev/null +++ b/src/main/java/com/mudu/mapper/ASafeXcrwMapper.java @@ -0,0 +1,15 @@ +package com.mudu.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mudu.entity.ASafeXcrw; + +/** + * (ASafeXcrw)表数据库访问层 + * + * @author wu + * @since 2024-02-26 10:43:24 + */ +public interface ASafeXcrwMapper extends BaseMapper { + +} + diff --git a/src/main/java/com/mudu/mapper/ASafeXcrwjcxMapper.java b/src/main/java/com/mudu/mapper/ASafeXcrwjcxMapper.java new file mode 100644 index 0000000..89aae2e --- /dev/null +++ b/src/main/java/com/mudu/mapper/ASafeXcrwjcxMapper.java @@ -0,0 +1,15 @@ +package com.mudu.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mudu.entity.ASafeXcrwjcx; + +/** + * (ASafeXcrwjcx)表数据库访问层 + * + * @author wu + * @since 2024-02-26 10:43:24 + */ +public interface ASafeXcrwjcxMapper extends BaseMapper { + +} + diff --git a/src/main/java/com/mudu/mapper/ASafeXcrwjcxzgxxMapper.java b/src/main/java/com/mudu/mapper/ASafeXcrwjcxzgxxMapper.java new file mode 100644 index 0000000..98428f9 --- /dev/null +++ b/src/main/java/com/mudu/mapper/ASafeXcrwjcxzgxxMapper.java @@ -0,0 +1,15 @@ +package com.mudu.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mudu.entity.ASafeXcrwjcxzgxx; + +/** + * (ASafeXcrwjcxzgxx)表数据库访问层 + * + * @author wu + * @since 2024-02-26 10:43:25 + */ +public interface ASafeXcrwjcxzgxxMapper extends BaseMapper { + +} + diff --git a/src/main/java/com/mudu/mapper/ASafeYhzgxxMapper.java b/src/main/java/com/mudu/mapper/ASafeYhzgxxMapper.java new file mode 100644 index 0000000..0d89917 --- /dev/null +++ b/src/main/java/com/mudu/mapper/ASafeYhzgxxMapper.java @@ -0,0 +1,15 @@ +package com.mudu.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mudu.entity.ASafeYhzgxx; + +/** + * (ASafeYhzgxx)表数据库访问层 + * + * @author wu + * @since 2024-02-26 10:43:25 + */ +public interface ASafeYhzgxxMapper extends BaseMapper { + +} + diff --git a/src/main/java/com/mudu/mapper/ASafeZcrwMapper.java b/src/main/java/com/mudu/mapper/ASafeZcrwMapper.java new file mode 100644 index 0000000..f2cf8af --- /dev/null +++ b/src/main/java/com/mudu/mapper/ASafeZcrwMapper.java @@ -0,0 +1,15 @@ +package com.mudu.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mudu.entity.ASafeZcrw; + +/** + * (ASafeZcrw)表数据库访问层 + * + * @author wu + * @since 2024-02-26 10:43:25 + */ +public interface ASafeZcrwMapper extends BaseMapper { + +} + diff --git a/src/main/java/com/mudu/mapper/ASafeZcrwjlMapper.java b/src/main/java/com/mudu/mapper/ASafeZcrwjlMapper.java new file mode 100644 index 0000000..b01c90b --- /dev/null +++ b/src/main/java/com/mudu/mapper/ASafeZcrwjlMapper.java @@ -0,0 +1,15 @@ +package com.mudu.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mudu.entity.ASafeZcrwjl; + +/** + * (ASafeZcrwjl)表数据库访问层 + * + * @author wu + * @since 2024-02-26 10:43:25 + */ +public interface ASafeZcrwjlMapper extends BaseMapper { + +} + diff --git a/src/main/java/com/mudu/service/ASafeBmxxService.java b/src/main/java/com/mudu/service/ASafeBmxxService.java new file mode 100644 index 0000000..73670de --- /dev/null +++ b/src/main/java/com/mudu/service/ASafeBmxxService.java @@ -0,0 +1,15 @@ +package com.mudu.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.mudu.entity.ASafeBmxx; + +/** + * 风险库部门信息表(ASafeBmxx)表服务接口 + * + * @author wu + * @since 2024-02-26 10:43:22 + */ +public interface ASafeBmxxService extends IService { + +} + diff --git a/src/main/java/com/mudu/service/ASafeFxdService.java b/src/main/java/com/mudu/service/ASafeFxdService.java new file mode 100644 index 0000000..2ff8353 --- /dev/null +++ b/src/main/java/com/mudu/service/ASafeFxdService.java @@ -0,0 +1,15 @@ +package com.mudu.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.mudu.entity.ASafeFxd; + +/** + * (ASafeFxd)表服务接口 + * + * @author wu + * @since 2024-02-26 10:43:22 + */ +public interface ASafeFxdService extends IService { + +} + diff --git a/src/main/java/com/mudu/service/ASafeFxdwzService.java b/src/main/java/com/mudu/service/ASafeFxdwzService.java new file mode 100644 index 0000000..74a92f1 --- /dev/null +++ b/src/main/java/com/mudu/service/ASafeFxdwzService.java @@ -0,0 +1,15 @@ +package com.mudu.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.mudu.entity.ASafeFxdwz; + +/** + * (ASafeFxdwz)表服务接口 + * + * @author wu + * @since 2024-02-26 10:43:22 + */ +public interface ASafeFxdwzService extends IService { + +} + diff --git a/src/main/java/com/mudu/service/ASafeFxkService.java b/src/main/java/com/mudu/service/ASafeFxkService.java new file mode 100644 index 0000000..5169bd2 --- /dev/null +++ b/src/main/java/com/mudu/service/ASafeFxkService.java @@ -0,0 +1,15 @@ +package com.mudu.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.mudu.entity.ASafeFxk; + +/** + * (ASafeFxk)表服务接口 + * + * @author wu + * @since 2024-02-26 10:43:23 + */ +public interface ASafeFxkService extends IService { + +} + diff --git a/src/main/java/com/mudu/service/ASafeGllbService.java b/src/main/java/com/mudu/service/ASafeGllbService.java new file mode 100644 index 0000000..cbdf23d --- /dev/null +++ b/src/main/java/com/mudu/service/ASafeGllbService.java @@ -0,0 +1,15 @@ +package com.mudu.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.mudu.entity.ASafeGllb; + +/** + * (ASafeGllb)表服务接口 + * + * @author wu + * @since 2024-02-26 10:43:23 + */ +public interface ASafeGllbService extends IService { + +} + diff --git a/src/main/java/com/mudu/service/ASafeJcydService.java b/src/main/java/com/mudu/service/ASafeJcydService.java new file mode 100644 index 0000000..e7b905e --- /dev/null +++ b/src/main/java/com/mudu/service/ASafeJcydService.java @@ -0,0 +1,15 @@ +package com.mudu.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.mudu.entity.ASafeJcyd; + +/** + * (ASafeJcyd)表服务接口 + * + * @author wu + * @since 2024-02-26 10:43:23 + */ +public interface ASafeJcydService extends IService { + +} + diff --git a/src/main/java/com/mudu/service/ASafeQybhysbService.java b/src/main/java/com/mudu/service/ASafeQybhysbService.java new file mode 100644 index 0000000..68d9ad7 --- /dev/null +++ b/src/main/java/com/mudu/service/ASafeQybhysbService.java @@ -0,0 +1,15 @@ +package com.mudu.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.mudu.entity.ASafeQybhysb; + +/** + * 企业编号映射表(ASafeQybhysb)表服务接口 + * + * @author wu + * @since 2024-02-26 10:43:23 + */ +public interface ASafeQybhysbService extends IService { + +} + diff --git a/src/main/java/com/mudu/service/ASafeQyfxwzService.java b/src/main/java/com/mudu/service/ASafeQyfxwzService.java new file mode 100644 index 0000000..fede75e --- /dev/null +++ b/src/main/java/com/mudu/service/ASafeQyfxwzService.java @@ -0,0 +1,15 @@ +package com.mudu.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.mudu.entity.ASafeQyfxwz; + +/** + * (ASafeQyfxwz)表服务接口 + * + * @author wu + * @since 2024-02-26 10:43:24 + */ +public interface ASafeQyfxwzService extends IService { + +} + diff --git a/src/main/java/com/mudu/service/ASafeQyjcxxService.java b/src/main/java/com/mudu/service/ASafeQyjcxxService.java new file mode 100644 index 0000000..3480f86 --- /dev/null +++ b/src/main/java/com/mudu/service/ASafeQyjcxxService.java @@ -0,0 +1,28 @@ +package com.mudu.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.mudu.entity.ASafeQyjcxx; + +/** + * (ASafeQyjcxx)表服务接口 + * + * @author wu + * @since 2024-02-26 10:43:24 + */ +public interface ASafeQyjcxxService extends IService { + + /** + * 数据同步 + */ + void dataSynchronous(); + + /** + * 根据企业名称或信用代码查询数据 + * + * @param qymc 企业名称 + * @param xybm 信用代码 + * @return 数据 + */ + ASafeQyjcxx findOneByqymcOrXybm(String qymc, String xybm); +} + diff --git a/src/main/java/com/mudu/service/ASafeXcrwService.java b/src/main/java/com/mudu/service/ASafeXcrwService.java new file mode 100644 index 0000000..6f0b0c2 --- /dev/null +++ b/src/main/java/com/mudu/service/ASafeXcrwService.java @@ -0,0 +1,15 @@ +package com.mudu.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.mudu.entity.ASafeXcrw; + +/** + * (ASafeXcrw)表服务接口 + * + * @author wu + * @since 2024-02-26 10:43:24 + */ +public interface ASafeXcrwService extends IService { + +} + diff --git a/src/main/java/com/mudu/service/ASafeXcrwjcxService.java b/src/main/java/com/mudu/service/ASafeXcrwjcxService.java new file mode 100644 index 0000000..606daa7 --- /dev/null +++ b/src/main/java/com/mudu/service/ASafeXcrwjcxService.java @@ -0,0 +1,15 @@ +package com.mudu.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.mudu.entity.ASafeXcrwjcx; + +/** + * (ASafeXcrwjcx)表服务接口 + * + * @author wu + * @since 2024-02-26 10:43:24 + */ +public interface ASafeXcrwjcxService extends IService { + +} + diff --git a/src/main/java/com/mudu/service/ASafeXcrwjcxzgxxService.java b/src/main/java/com/mudu/service/ASafeXcrwjcxzgxxService.java new file mode 100644 index 0000000..ee220b5 --- /dev/null +++ b/src/main/java/com/mudu/service/ASafeXcrwjcxzgxxService.java @@ -0,0 +1,15 @@ +package com.mudu.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.mudu.entity.ASafeXcrwjcxzgxx; + +/** + * (ASafeXcrwjcxzgxx)表服务接口 + * + * @author wu + * @since 2024-02-26 10:43:25 + */ +public interface ASafeXcrwjcxzgxxService extends IService { + +} + diff --git a/src/main/java/com/mudu/service/ASafeYhzgxxService.java b/src/main/java/com/mudu/service/ASafeYhzgxxService.java new file mode 100644 index 0000000..a58cac6 --- /dev/null +++ b/src/main/java/com/mudu/service/ASafeYhzgxxService.java @@ -0,0 +1,15 @@ +package com.mudu.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.mudu.entity.ASafeYhzgxx; + +/** + * (ASafeYhzgxx)表服务接口 + * + * @author wu + * @since 2024-02-26 10:43:25 + */ +public interface ASafeYhzgxxService extends IService { + +} + diff --git a/src/main/java/com/mudu/service/ASafeZcrwService.java b/src/main/java/com/mudu/service/ASafeZcrwService.java new file mode 100644 index 0000000..193ee47 --- /dev/null +++ b/src/main/java/com/mudu/service/ASafeZcrwService.java @@ -0,0 +1,15 @@ +package com.mudu.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.mudu.entity.ASafeZcrw; + +/** + * (ASafeZcrw)表服务接口 + * + * @author wu + * @since 2024-02-26 10:43:25 + */ +public interface ASafeZcrwService extends IService { + +} + diff --git a/src/main/java/com/mudu/service/ASafeZcrwjlService.java b/src/main/java/com/mudu/service/ASafeZcrwjlService.java new file mode 100644 index 0000000..9cd1dac --- /dev/null +++ b/src/main/java/com/mudu/service/ASafeZcrwjlService.java @@ -0,0 +1,15 @@ +package com.mudu.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.mudu.entity.ASafeZcrwjl; + +/** + * (ASafeZcrwjl)表服务接口 + * + * @author wu + * @since 2024-02-26 10:43:25 + */ +public interface ASafeZcrwjlService extends IService { + +} + diff --git a/src/main/java/com/mudu/service/impl/ASafeBmxxServiceImpl.java b/src/main/java/com/mudu/service/impl/ASafeBmxxServiceImpl.java new file mode 100644 index 0000000..eaf9d41 --- /dev/null +++ b/src/main/java/com/mudu/service/impl/ASafeBmxxServiceImpl.java @@ -0,0 +1,19 @@ +package com.mudu.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.mudu.mapper.ASafeBmxxMapper; +import com.mudu.entity.ASafeBmxx; +import com.mudu.service.ASafeBmxxService; +import org.springframework.stereotype.Service; + +/** + * 风险库部门信息表(ASafeBmxx)表服务实现类 + * + * @author wu + * @since 2024-02-26 10:43:22 + */ +@Service("aSafeBmxxService") +public class ASafeBmxxServiceImpl extends ServiceImpl implements ASafeBmxxService { + +} + diff --git a/src/main/java/com/mudu/service/impl/ASafeFxdServiceImpl.java b/src/main/java/com/mudu/service/impl/ASafeFxdServiceImpl.java new file mode 100644 index 0000000..54758fb --- /dev/null +++ b/src/main/java/com/mudu/service/impl/ASafeFxdServiceImpl.java @@ -0,0 +1,19 @@ +package com.mudu.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.mudu.mapper.ASafeFxdMapper; +import com.mudu.entity.ASafeFxd; +import com.mudu.service.ASafeFxdService; +import org.springframework.stereotype.Service; + +/** + * (ASafeFxd)表服务实现类 + * + * @author wu + * @since 2024-02-26 10:43:22 + */ +@Service("aSafeFxdService") +public class ASafeFxdServiceImpl extends ServiceImpl implements ASafeFxdService { + +} + diff --git a/src/main/java/com/mudu/service/impl/ASafeFxdwzServiceImpl.java b/src/main/java/com/mudu/service/impl/ASafeFxdwzServiceImpl.java new file mode 100644 index 0000000..cafffd8 --- /dev/null +++ b/src/main/java/com/mudu/service/impl/ASafeFxdwzServiceImpl.java @@ -0,0 +1,19 @@ +package com.mudu.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.mudu.mapper.ASafeFxdwzMapper; +import com.mudu.entity.ASafeFxdwz; +import com.mudu.service.ASafeFxdwzService; +import org.springframework.stereotype.Service; + +/** + * (ASafeFxdwz)表服务实现类 + * + * @author wu + * @since 2024-02-26 10:43:22 + */ +@Service("aSafeFxdwzService") +public class ASafeFxdwzServiceImpl extends ServiceImpl implements ASafeFxdwzService { + +} + diff --git a/src/main/java/com/mudu/service/impl/ASafeFxkServiceImpl.java b/src/main/java/com/mudu/service/impl/ASafeFxkServiceImpl.java new file mode 100644 index 0000000..f5eddb6 --- /dev/null +++ b/src/main/java/com/mudu/service/impl/ASafeFxkServiceImpl.java @@ -0,0 +1,19 @@ +package com.mudu.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.mudu.mapper.ASafeFxkMapper; +import com.mudu.entity.ASafeFxk; +import com.mudu.service.ASafeFxkService; +import org.springframework.stereotype.Service; + +/** + * (ASafeFxk)表服务实现类 + * + * @author wu + * @since 2024-02-26 10:43:23 + */ +@Service("aSafeFxkService") +public class ASafeFxkServiceImpl extends ServiceImpl implements ASafeFxkService { + +} + diff --git a/src/main/java/com/mudu/service/impl/ASafeGllbServiceImpl.java b/src/main/java/com/mudu/service/impl/ASafeGllbServiceImpl.java new file mode 100644 index 0000000..9a9b85d --- /dev/null +++ b/src/main/java/com/mudu/service/impl/ASafeGllbServiceImpl.java @@ -0,0 +1,19 @@ +package com.mudu.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.mudu.mapper.ASafeGllbMapper; +import com.mudu.entity.ASafeGllb; +import com.mudu.service.ASafeGllbService; +import org.springframework.stereotype.Service; + +/** + * (ASafeGllb)表服务实现类 + * + * @author wu + * @since 2024-02-26 10:43:23 + */ +@Service("aSafeGllbService") +public class ASafeGllbServiceImpl extends ServiceImpl implements ASafeGllbService { + +} + diff --git a/src/main/java/com/mudu/service/impl/ASafeJcydServiceImpl.java b/src/main/java/com/mudu/service/impl/ASafeJcydServiceImpl.java new file mode 100644 index 0000000..2136fe1 --- /dev/null +++ b/src/main/java/com/mudu/service/impl/ASafeJcydServiceImpl.java @@ -0,0 +1,19 @@ +package com.mudu.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.mudu.mapper.ASafeJcydMapper; +import com.mudu.entity.ASafeJcyd; +import com.mudu.service.ASafeJcydService; +import org.springframework.stereotype.Service; + +/** + * (ASafeJcyd)表服务实现类 + * + * @author wu + * @since 2024-02-26 10:43:23 + */ +@Service("aSafeJcydService") +public class ASafeJcydServiceImpl extends ServiceImpl implements ASafeJcydService { + +} + diff --git a/src/main/java/com/mudu/service/impl/ASafeQybhysbServiceImpl.java b/src/main/java/com/mudu/service/impl/ASafeQybhysbServiceImpl.java new file mode 100644 index 0000000..1401215 --- /dev/null +++ b/src/main/java/com/mudu/service/impl/ASafeQybhysbServiceImpl.java @@ -0,0 +1,19 @@ +package com.mudu.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.mudu.mapper.ASafeQybhysbMapper; +import com.mudu.entity.ASafeQybhysb; +import com.mudu.service.ASafeQybhysbService; +import org.springframework.stereotype.Service; + +/** + * 企业编号映射表(ASafeQybhysb)表服务实现类 + * + * @author wu + * @since 2024-02-26 10:43:23 + */ +@Service("aSafeQybhysbService") +public class ASafeQybhysbServiceImpl extends ServiceImpl implements ASafeQybhysbService { + +} + diff --git a/src/main/java/com/mudu/service/impl/ASafeQyfxwzServiceImpl.java b/src/main/java/com/mudu/service/impl/ASafeQyfxwzServiceImpl.java new file mode 100644 index 0000000..2f0a408 --- /dev/null +++ b/src/main/java/com/mudu/service/impl/ASafeQyfxwzServiceImpl.java @@ -0,0 +1,19 @@ +package com.mudu.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.mudu.mapper.ASafeQyfxwzMapper; +import com.mudu.entity.ASafeQyfxwz; +import com.mudu.service.ASafeQyfxwzService; +import org.springframework.stereotype.Service; + +/** + * (ASafeQyfxwz)表服务实现类 + * + * @author wu + * @since 2024-02-26 10:43:24 + */ +@Service("aSafeQyfxwzService") +public class ASafeQyfxwzServiceImpl extends ServiceImpl implements ASafeQyfxwzService { + +} + diff --git a/src/main/java/com/mudu/service/impl/ASafeQyjcxxServiceImpl.java b/src/main/java/com/mudu/service/impl/ASafeQyjcxxServiceImpl.java new file mode 100644 index 0000000..aabe2f7 --- /dev/null +++ b/src/main/java/com/mudu/service/impl/ASafeQyjcxxServiceImpl.java @@ -0,0 +1,90 @@ +package com.mudu.service.impl; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.util.StrUtil; +import cn.hutool.http.HttpRequest; +import cn.hutool.json.JSONUtil; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.mudu.entity.ASafeQyjcxx; +import com.mudu.entity.dto.response.EnterpriseResponse; +import com.mudu.entity.dto.response.GeneralResponse; +import com.mudu.mapper.ASafeQyjcxxMapper; +import com.mudu.service.ASafeQyjcxxService; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.List; +import java.util.stream.Collectors; + +/** + * (ASafeQyjcxx)表服务实现类 + * + * @author wu + * @since 2024-02-26 10:43:24 + */ +@Service("aSafeQyjcxxService") +public class ASafeQyjcxxServiceImpl extends ServiceImpl implements ASafeQyjcxxService { + + @Value("${url}") + private String url; + + /** + * 将字符串中的中文括号替换为英文括号 + * + * @param str 字符串 + * @return 替换后的字符串 + */ + public static String replaceChineseBrackets(String str) { + if (StrUtil.isNotEmpty(str)) { + // 左括号 (Unicode 编码:\uFF08) + str = str.replace("\uFF08", "("); + // 右括号 (Unicode 编码:\uFF09) + str = str.replace("\uFF09", ")"); + } + return str; + } + + /** + * 数据同步 + */ + @Override + public void dataSynchronous() { + // 获取木渎企业数据 + String body = HttpRequest.get(url + "/mudu/enterprise/findAll").execute().body(); + GeneralResponse res = JSONUtil.toBean(body, GeneralResponse.class); + if (BeanUtil.isNotEmpty(res.getData())) { + String jsonStr = JSONUtil.toJsonStr(res.getData()); + List list = JSONUtil.toList(jsonStr, EnterpriseResponse.class); + // 相同的企业 + List arr = new ArrayList<>(); + // 只有木渎存在的企业 + List entList = new ArrayList<>(); + // 遍历企业数据对比 + list.forEach(x -> { + ASafeQyjcxx safeQyjcxx = findOneByqymcOrXybm(replaceChineseBrackets(x.getName()), x.getCertificateCode()); + if (BeanUtil.isNotEmpty(safeQyjcxx)) { + arr.add(safeQyjcxx); + } else { + entList.add(x); + } + }); + System.out.println("重复的数据" + arr.size()); + System.out.println("不重复的数据" + entList.size()); + } + // 填补我们ent表所有有点位的企业 + } + + /** + * 根据企业名称或信用代码查询数据 + * + * @param qymc 企业名称 + * @param xybm 信用代码 + * @return 数据 + */ + @Override + public ASafeQyjcxx findOneByqymcOrXybm(String qymc, String xybm) { + return baseMapper.findOneByqymcOrXybm(qymc, xybm); + } +} + diff --git a/src/main/java/com/mudu/service/impl/ASafeXcrwServiceImpl.java b/src/main/java/com/mudu/service/impl/ASafeXcrwServiceImpl.java new file mode 100644 index 0000000..973dfb8 --- /dev/null +++ b/src/main/java/com/mudu/service/impl/ASafeXcrwServiceImpl.java @@ -0,0 +1,19 @@ +package com.mudu.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.mudu.mapper.ASafeXcrwMapper; +import com.mudu.entity.ASafeXcrw; +import com.mudu.service.ASafeXcrwService; +import org.springframework.stereotype.Service; + +/** + * (ASafeXcrw)表服务实现类 + * + * @author wu + * @since 2024-02-26 10:43:24 + */ +@Service("aSafeXcrwService") +public class ASafeXcrwServiceImpl extends ServiceImpl implements ASafeXcrwService { + +} + diff --git a/src/main/java/com/mudu/service/impl/ASafeXcrwjcxServiceImpl.java b/src/main/java/com/mudu/service/impl/ASafeXcrwjcxServiceImpl.java new file mode 100644 index 0000000..b81cb6f --- /dev/null +++ b/src/main/java/com/mudu/service/impl/ASafeXcrwjcxServiceImpl.java @@ -0,0 +1,19 @@ +package com.mudu.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.mudu.mapper.ASafeXcrwjcxMapper; +import com.mudu.entity.ASafeXcrwjcx; +import com.mudu.service.ASafeXcrwjcxService; +import org.springframework.stereotype.Service; + +/** + * (ASafeXcrwjcx)表服务实现类 + * + * @author wu + * @since 2024-02-26 10:43:24 + */ +@Service("aSafeXcrwjcxService") +public class ASafeXcrwjcxServiceImpl extends ServiceImpl implements ASafeXcrwjcxService { + +} + diff --git a/src/main/java/com/mudu/service/impl/ASafeXcrwjcxzgxxServiceImpl.java b/src/main/java/com/mudu/service/impl/ASafeXcrwjcxzgxxServiceImpl.java new file mode 100644 index 0000000..2d9a2a9 --- /dev/null +++ b/src/main/java/com/mudu/service/impl/ASafeXcrwjcxzgxxServiceImpl.java @@ -0,0 +1,19 @@ +package com.mudu.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.mudu.mapper.ASafeXcrwjcxzgxxMapper; +import com.mudu.entity.ASafeXcrwjcxzgxx; +import com.mudu.service.ASafeXcrwjcxzgxxService; +import org.springframework.stereotype.Service; + +/** + * (ASafeXcrwjcxzgxx)表服务实现类 + * + * @author wu + * @since 2024-02-26 10:43:25 + */ +@Service("aSafeXcrwjcxzgxxService") +public class ASafeXcrwjcxzgxxServiceImpl extends ServiceImpl implements ASafeXcrwjcxzgxxService { + +} + diff --git a/src/main/java/com/mudu/service/impl/ASafeYhzgxxServiceImpl.java b/src/main/java/com/mudu/service/impl/ASafeYhzgxxServiceImpl.java new file mode 100644 index 0000000..042fae9 --- /dev/null +++ b/src/main/java/com/mudu/service/impl/ASafeYhzgxxServiceImpl.java @@ -0,0 +1,19 @@ +package com.mudu.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.mudu.mapper.ASafeYhzgxxMapper; +import com.mudu.entity.ASafeYhzgxx; +import com.mudu.service.ASafeYhzgxxService; +import org.springframework.stereotype.Service; + +/** + * (ASafeYhzgxx)表服务实现类 + * + * @author wu + * @since 2024-02-26 10:43:25 + */ +@Service("aSafeYhzgxxService") +public class ASafeYhzgxxServiceImpl extends ServiceImpl implements ASafeYhzgxxService { + +} + diff --git a/src/main/java/com/mudu/service/impl/ASafeZcrwServiceImpl.java b/src/main/java/com/mudu/service/impl/ASafeZcrwServiceImpl.java new file mode 100644 index 0000000..4e7bc19 --- /dev/null +++ b/src/main/java/com/mudu/service/impl/ASafeZcrwServiceImpl.java @@ -0,0 +1,19 @@ +package com.mudu.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.mudu.mapper.ASafeZcrwMapper; +import com.mudu.entity.ASafeZcrw; +import com.mudu.service.ASafeZcrwService; +import org.springframework.stereotype.Service; + +/** + * (ASafeZcrw)表服务实现类 + * + * @author wu + * @since 2024-02-26 10:43:25 + */ +@Service("aSafeZcrwService") +public class ASafeZcrwServiceImpl extends ServiceImpl implements ASafeZcrwService { + +} + diff --git a/src/main/java/com/mudu/service/impl/ASafeZcrwjlServiceImpl.java b/src/main/java/com/mudu/service/impl/ASafeZcrwjlServiceImpl.java new file mode 100644 index 0000000..22e906c --- /dev/null +++ b/src/main/java/com/mudu/service/impl/ASafeZcrwjlServiceImpl.java @@ -0,0 +1,19 @@ +package com.mudu.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.mudu.mapper.ASafeZcrwjlMapper; +import com.mudu.entity.ASafeZcrwjl; +import com.mudu.service.ASafeZcrwjlService; +import org.springframework.stereotype.Service; + +/** + * (ASafeZcrwjl)表服务实现类 + * + * @author wu + * @since 2024-02-26 10:43:25 + */ +@Service("aSafeZcrwjlService") +public class ASafeZcrwjlServiceImpl extends ServiceImpl implements ASafeZcrwjlService { + +} + diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..bf68c1b --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,32 @@ +server: + port: 9998 + +# DataSource Config +spring: + datasource: + url: jdbc:mysql://localhost:3306/wzawb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 + username: root + password: 123456 + driverClassName: com.mysql.cj.jdbc.Driver + +# 日志配置 +logging: + level: + com.mudu: debug + org.springframework: warn + +# MyBatis配置 +mybatis-plus: + # 指定实体类所在包的路径,MyBatis-Plus 会自动扫描该路径下的实体类 + typeAliasesPackage: com.mudu.entity + # 指定 Mapper 接口所在包的路径,MyBatis-Plus 会自动扫描该路径下的 Mapper 接口 + mapperLocations: classpath*:mapper/mudu/*Mapper.xml + +knife4j: + enable: true + openapi: + group: + test1: + group-name: 木渎 + +url: http://localhost:9028 \ No newline at end of file diff --git a/src/main/resources/mapper/mudu/ASafeQyjcxxMapper.xml b/src/main/resources/mapper/mudu/ASafeQyjcxxMapper.xml new file mode 100644 index 0000000..fdf98dd --- /dev/null +++ b/src/main/resources/mapper/mudu/ASafeQyjcxxMapper.xml @@ -0,0 +1,33 @@ + + + + + + + \ No newline at end of file