From 1e4f78bc2b34d95c10b9125b1722014848e8a0c3 Mon Sep 17 00:00:00 2001 From: zhang xu <2125563902@qq.com> Date: Fri, 24 May 2024 22:36:41 +0800 Subject: [PATCH] =?UTF-8?q?test:(=E4=BC=81=E4=B8=9A=E5=85=A5=E9=A9=BB)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- muyu-auth/src/main/resources/bootstrap.yml | 4 +- .../muyu/common/core/utils/ip/IpUtils.java | 6 +- muyu-gateway/src/main/resources/bootstrap.yml | 8 +- .../src/main/resources/bootstrap.yml | 4 +- .../muyu-gen/src/main/resources/bootstrap.yml | 4 +- .../muyu-job/src/main/resources/bootstrap.yml | 4 +- .../muyu-networking-common/pom.xml | 99 +++++++++ .../main/java/com/muyu/domain/AddService.java | 33 +++ .../java/com/muyu/domain/Certification.java | 38 ++++ .../main/java/com/muyu/domain/Enterprise.java | 203 ++++++++++++++++++ .../java/com/muyu/domain/ModeOfPayment.java | 31 +++ .../java/com/muyu/domain/OpenServiceAdd.java | 34 +++ .../src/main/java/com/muyu/domain/PayOf.java | 39 ++++ .../muyu-networking-service/pom.xml | 136 ++++++++++++ .../networking/NetworkingApplication.java | 23 ++ .../controller/AddServiceController.java | 107 +++++++++ .../controller/CertificationController.java | 106 +++++++++ .../controller/EnterpriseController.java | 107 +++++++++ .../controller/ModeOfPaymentIdController.java | 110 ++++++++++ .../controller/OpenServiceController.java | 109 ++++++++++ .../controller/PayForController.java | 108 ++++++++++ .../networking/mapper/AddServiceMapper.java | 63 ++++++ .../mapper/CertificationMapper.java | 63 ++++++ .../networking/mapper/EnterpriseMapper.java | 62 ++++++ .../mapper/ModeOfPaymentIdMapper.java | 63 ++++++ .../networking/mapper/OpenServiceMapper.java | 63 ++++++ .../muyu/networking/mapper/PayOfMapper.java | 61 ++++++ .../networking/service/AddServiceService.java | 63 ++++++ .../service/CertificationService.java | 63 ++++++ .../networking/service/EnterpriseService.java | 61 ++++++ .../service/ModeOfPaymentIdService.java | 63 ++++++ .../service/OpenServiceService.java | 63 ++++++ .../muyu/networking/service/PayOfService.java | 63 ++++++ .../service/impl/AddServiceServiceImpl.java | 97 +++++++++ .../impl/CertificationServiceImpl.java | 99 +++++++++ .../service/impl/EnterpriseServiceImpl.java | 103 +++++++++ .../impl/ModeOfPaymentIdServiceImpl.java | 99 +++++++++ .../service/impl/OpenServiceServiceImpl.java | 97 +++++++++ .../service/impl/PayOfServiceImpl.java | 97 +++++++++ .../src/main/resources/banner.txt | 2 + .../src/main/resources/bootstrap.yml | 30 +++ .../src/main/resources/logback.xml | 74 +++++++ .../resources/mapper/AddServiceMapper.xml | 76 +++++++ .../resources/mapper/CertificationMapper.xml | 86 ++++++++ .../resources/mapper/EnterpriseMapper.xml | 141 ++++++++++++ .../mapper/ModeOfPaymentIdMapper.xml | 76 +++++++ .../resources/mapper/OpenServiceMapper.xml | 76 +++++++ .../main/resources/mapper/PayForMapper.xml | 86 ++++++++ muyu-modules/muyu-networking/pom.xml | 93 ++++++++ .../src/main/resources/bootstrap.yml | 4 +- muyu-modules/pom.xml | 1 + .../src/main/resources/bootstrap.yml | 4 +- sql/ry_20230706.sql | 4 +- sql/ry_config_20220929.sql | 2 +- 54 files changed, 3389 insertions(+), 22 deletions(-) create mode 100644 muyu-modules/muyu-networking/muyu-networking-common/pom.xml create mode 100644 muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/AddService.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/Certification.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/Enterprise.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/ModeOfPayment.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/OpenServiceAdd.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/PayOf.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/pom.xml create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/NetworkingApplication.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/AddServiceController.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/CertificationController.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/EnterpriseController.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/ModeOfPaymentIdController.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/OpenServiceController.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/PayForController.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/AddServiceMapper.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/CertificationMapper.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/EnterpriseMapper.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/ModeOfPaymentIdMapper.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/OpenServiceMapper.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/PayOfMapper.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/AddServiceService.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/CertificationService.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/EnterpriseService.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/ModeOfPaymentIdService.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/OpenServiceService.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/PayOfService.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/AddServiceServiceImpl.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/CertificationServiceImpl.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/EnterpriseServiceImpl.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/ModeOfPaymentIdServiceImpl.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/OpenServiceServiceImpl.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/PayOfServiceImpl.java create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/banner.txt create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/bootstrap.yml create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/logback.xml create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/AddServiceMapper.xml create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/CertificationMapper.xml create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/EnterpriseMapper.xml create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/ModeOfPaymentIdMapper.xml create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/OpenServiceMapper.xml create mode 100644 muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/PayForMapper.xml create mode 100644 muyu-modules/muyu-networking/pom.xml diff --git a/muyu-auth/src/main/resources/bootstrap.yml b/muyu-auth/src/main/resources/bootstrap.yml index b309a3d..02ac350 100644 --- a/muyu-auth/src/main/resources/bootstrap.yml +++ b/muyu-auth/src/main/resources/bootstrap.yml @@ -14,10 +14,10 @@ spring: nacos: discovery: # 服务注册地址 - server-addr: 127.0.0.1:8848 + server-addr: 115.159.67.205:8848 config: # 配置中心地址 - server-addr: 127.0.0.1:8848 + server-addr: 115.159.67.205:8848 # 配置文件格式 file-extension: yml # 共享配置 diff --git a/muyu-common/muyu-common-core/src/main/java/com/muyu/common/core/utils/ip/IpUtils.java b/muyu-common/muyu-common-core/src/main/java/com/muyu/common/core/utils/ip/IpUtils.java index f7ad9bf..66fa70b 100644 --- a/muyu-common/muyu-common-core/src/main/java/com/muyu/common/core/utils/ip/IpUtils.java +++ b/muyu-common/muyu-common-core/src/main/java/com/muyu/common/core/utils/ip/IpUtils.java @@ -58,7 +58,7 @@ public class IpUtils { ip = request.getRemoteAddr(); } - return "0:0:0:0:0:0:0:1".equals(ip) ? "127.0.0.1" : getMultistageReverseProxyIp(ip); + return "0:0:0:0:0:0:0:1".equals(ip) ? "115.159.67.205" : getMultistageReverseProxyIp(ip); } /** @@ -70,7 +70,7 @@ public class IpUtils { */ public static boolean internalIp (String ip) { byte[] addr = textToNumericFormatV4(ip); - return internalIp(addr) || "127.0.0.1".equals(ip); + return internalIp(addr) || "115.159.67.205".equals(ip); } /** @@ -197,7 +197,7 @@ public class IpUtils { return InetAddress.getLocalHost().getHostAddress(); } catch (UnknownHostException e) { } - return "127.0.0.1"; + return "115.159.67.205"; } /** diff --git a/muyu-gateway/src/main/resources/bootstrap.yml b/muyu-gateway/src/main/resources/bootstrap.yml index d7367b4..651a85b 100644 --- a/muyu-gateway/src/main/resources/bootstrap.yml +++ b/muyu-gateway/src/main/resources/bootstrap.yml @@ -14,10 +14,10 @@ spring: nacos: discovery: # 服务注册地址 - server-addr: 127.0.0.1:8848 + server-addr: 115.159.67.205:8848 config: # 配置中心地址 - server-addr: 127.0.0.1:8848 + server-addr: 115.159.67.205:8848 # 配置文件格式 file-extension: yml # 共享配置 @@ -28,12 +28,12 @@ spring: eager: true transport: # 控制台地址 - dashboard: 127.0.0.1:8718 + dashboard: 115.159.67.205:8718 # nacos配置持久化 datasource: ds1: nacos: - server-addr: 127.0.0.1:8848 + server-addr: 115.159.67.205:8848 dataId: sentinel-muyu-gateway groupId: DEFAULT_GROUP data-type: json diff --git a/muyu-modules/muyu-file/src/main/resources/bootstrap.yml b/muyu-modules/muyu-file/src/main/resources/bootstrap.yml index 0cb85bd..74d6346 100644 --- a/muyu-modules/muyu-file/src/main/resources/bootstrap.yml +++ b/muyu-modules/muyu-file/src/main/resources/bootstrap.yml @@ -14,10 +14,10 @@ spring: nacos: discovery: # 服务注册地址 - server-addr: 127.0.0.1:8848 + server-addr: 115.159.67.205:8848 config: # 配置中心地址 - server-addr: 127.0.0.1:8848 + server-addr: 115.159.67.205:8848 # 配置文件格式 file-extension: yml # 共享配置 diff --git a/muyu-modules/muyu-gen/src/main/resources/bootstrap.yml b/muyu-modules/muyu-gen/src/main/resources/bootstrap.yml index b628931..ed6e483 100644 --- a/muyu-modules/muyu-gen/src/main/resources/bootstrap.yml +++ b/muyu-modules/muyu-gen/src/main/resources/bootstrap.yml @@ -14,10 +14,10 @@ spring: nacos: discovery: # 服务注册地址 - server-addr: 127.0.0.1:8848 + server-addr: 115.159.67.205:8848 config: # 配置中心地址 - server-addr: 127.0.0.1:8848 + server-addr: 115.159.67.205:8848 # 配置文件格式 file-extension: yml # 共享配置 diff --git a/muyu-modules/muyu-job/src/main/resources/bootstrap.yml b/muyu-modules/muyu-job/src/main/resources/bootstrap.yml index 618f3e8..2d493c6 100644 --- a/muyu-modules/muyu-job/src/main/resources/bootstrap.yml +++ b/muyu-modules/muyu-job/src/main/resources/bootstrap.yml @@ -14,10 +14,10 @@ spring: nacos: discovery: # 服务注册地址 - server-addr: 127.0.0.1:8848 + server-addr: 115.159.67.205:8848 config: # 配置中心地址 - server-addr: 127.0.0.1:8848 + server-addr: 115.159.67.205:8848 # 配置文件格式 file-extension: yml # 共享配置 diff --git a/muyu-modules/muyu-networking/muyu-networking-common/pom.xml b/muyu-modules/muyu-networking/muyu-networking-common/pom.xml new file mode 100644 index 0000000..a4d8e8c --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-common/pom.xml @@ -0,0 +1,99 @@ + + + 4.0.0 + + com.muyu + muyu-networking + 3.6.3 + + + muyu-networking-common + + + 17 + 17 + UTF-8 + + + + + com.muyu + muyu-modules-system + 3.6.3 + + + + org.postgresql + postgresql + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-config + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-sentinel + + + + + org.springframework.boot + spring-boot-starter-actuator + + + + + io.springfox + springfox-swagger-ui + ${swagger.fox.version} + + + + + com.mysql + mysql-connector-j + + + + + com.muyu + muyu-common-datasource + + + + + com.muyu + muyu-common-datascope + + + + + com.muyu + muyu-common-log + + + + + com.muyu + muyu-common-swagger + + + org.projectlombok + lombok + + + + + diff --git a/muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/AddService.java b/muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/AddService.java new file mode 100644 index 0000000..74a5e42 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/AddService.java @@ -0,0 +1,33 @@ +package com.muyu.domain; + +import com.muyu.common.core.web.domain.BaseEntity; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.SuperBuilder; + +/** 增值服务 + * @ClassDescription: + * @JdkVersion: 17 + * @Author: zhangxu + * @Created: 2024/5/25 9:03 + */ +@Data +@AllArgsConstructor +@NoArgsConstructor +@SuperBuilder +public class AddService extends BaseEntity { + /** + *增值服务id + * */ + private Long id; + /** + *增值类型 + * */ + private Integer addValue; + + + + + +} diff --git a/muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/Certification.java b/muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/Certification.java new file mode 100644 index 0000000..f478782 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/Certification.java @@ -0,0 +1,38 @@ +package com.muyu.domain; + +import com.muyu.common.core.web.domain.BaseEntity; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.SuperBuilder; + +/** 企业认证表 + * @ClassDescription: + * @JdkVersion: 17 + * @Author: zhangxu + * @Created: 2024/5/25 9:05 + */ +@Data +@AllArgsConstructor +@NoArgsConstructor +@SuperBuilder +public class Certification extends BaseEntity { + /** + *企业认证id + * **/ + private Long id; + /** + *审核报告人 + * **/ + private String auditor; + /** + *待审核,已通过,未通过 + * **/ + private String stat; + /** + *审核报告 + * **/ + private String auditReason; + + +} diff --git a/muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/Enterprise.java b/muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/Enterprise.java new file mode 100644 index 0000000..d28321a --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/Enterprise.java @@ -0,0 +1,203 @@ +package com.muyu.domain; + +import com.muyu.common.core.web.domain.BaseEntity; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.util.Date; + +/** 企业入驻 + * @ClassDescription: + * @JdkVersion: 17 + * @Author: zhangxu + * @Created: 2024/5/25 8:51 + */ +@Data +@AllArgsConstructor +@NoArgsConstructor +public class Enterprise extends BaseEntity { + /** + *q企业入驻id + * **/ + private Long id; + /** + *企业名称 + * **/ + private String enterpriseName; + /** + *法定代表人 + * **/ + private String legalPerson; + /** + *企业注册时获得的合法经营码 + * **/ + private String businessLicenseNumber; + /** + *企业成立的日期 + * **/ + private Date establishmentDate; + /** + *经营范围 + * **/ + private String businessScope; + /** + *注册地址 + * **/ + private String address; + /** + *联系企业的电话 + * **/ + private String contactPhone; + /** + *公司邮箱 + * **/ + private String email; + /** + *企业当前的状态 + * **/ + private String status; + /** + *企业入驻平台的日期 + * **/ + private Date registrationDate; + /** + *企业认证 + * **/ + private String certification; + /** + *开通服务id + * **/ + private Long openServiceId; + /** + *增值服务id + * **/ + private Integer addServiceId; + + /*** + * 开通服务 + * */ + private String openAdd; + + + public String getOpenAdd() { + return openAdd; + } + + public void setOpenAdd(String openAdd) { + this.openAdd = openAdd; + } + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getEnterpriseName() { + return enterpriseName; + } + + public void setEnterpriseName(String enterpriseName) { + this.enterpriseName = enterpriseName; + } + + public String getLegalPerson() { + return legalPerson; + } + + public void setLegalPerson(String legalPerson) { + this.legalPerson = legalPerson; + } + + public String getBusinessLicenseNumber() { + return businessLicenseNumber; + } + + public void setBusinessLicenseNumber(String businessLicenseNumber) { + this.businessLicenseNumber = businessLicenseNumber; + } + + public Date getEstablishmentDate() { + return establishmentDate; + } + + public void setEstablishmentDate(Date establishmentData) { + this.establishmentDate = establishmentData; + } + + public String getBusinessScope() { + return businessScope; + } + + public void setBusinessScope(String businessScope) { + this.businessScope = businessScope; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public String getContactPhone() { + return contactPhone; + } + + public void setContactPhone(String contactPhone) { + this.contactPhone = contactPhone; + } + + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public Date getRegistrationDate() { + return registrationDate; + } + + public void setRegistrationDate(Date registrationDate) { + this.registrationDate = registrationDate; + } + + + public String getCertification() { + return certification; + } + + public void setCertification(String certification) { + this.certification = certification; + } + + public Long getOpenServiceId() { + return openServiceId; + } + + public void setOpenServiceId(Long openServiceId) { + this.openServiceId = openServiceId; + } + + public Integer getAddServiceId() { + return addServiceId; + } + + public void setAddServiceId(Integer addServiceId) { + this.addServiceId = addServiceId; + } + } diff --git a/muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/ModeOfPayment.java b/muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/ModeOfPayment.java new file mode 100644 index 0000000..ad87d33 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/ModeOfPayment.java @@ -0,0 +1,31 @@ +package com.muyu.domain; + + +import com.muyu.common.core.web.domain.BaseEntity; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.SuperBuilder; + +/** 支付方式 + * @ClassDescription: + * @JdkVersion: 17 + * @Author: zhangxu + * @Created: 2024/5/25 9:35 + */ +@Data +@AllArgsConstructor +@NoArgsConstructor +@SuperBuilder +public class ModeOfPayment extends BaseEntity { + /*** + * 支付id + * */ + private Long id; + /*** + * 支付方式/类型 + * */ + private String payment; + + +} diff --git a/muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/OpenServiceAdd.java b/muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/OpenServiceAdd.java new file mode 100644 index 0000000..38c86b9 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/OpenServiceAdd.java @@ -0,0 +1,34 @@ +package com.muyu.domain; + +import com.muyu.common.core.web.domain.BaseEntity; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.SuperBuilder; + +/**开通服务 + * @ClassDescription: + * @JdkVersion: 17 + * @Author: zhangxu + * @Created: 2024/5/26 9:19 + */ +@Data +@AllArgsConstructor +@NoArgsConstructor +@SuperBuilder +public class OpenServiceAdd extends BaseEntity { + + + /** + * + *开通服务id + * */ + private Long id; + /** + *1开通 2未开通 + * + * */ + private String ActivateTheService; + + +} diff --git a/muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/PayOf.java b/muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/PayOf.java new file mode 100644 index 0000000..7424ee2 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-common/src/main/java/com/muyu/domain/PayOf.java @@ -0,0 +1,39 @@ +package com.muyu.domain; + +import com.muyu.common.core.web.domain.BaseEntity; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.SuperBuilder; + +import javax.naming.ldap.PagedResultsControl; + +/** 支付表 + * @ClassDescription: + * @JdkVersion: 17 + * @Author: zhangxu + * @Created: 2024/5/25 9:33 + */ +@Data +@AllArgsConstructor +@NoArgsConstructor@SuperBuilder +public class PayOf extends BaseEntity { + /** + * 支付id + * */ + private Long id; + /** + * 企业id + * */ + private Long enterpriseId; + /** + * 支付方式/类型(id) + * */ + private Long modeOfPaymentId; + /** + * 需要支付的金额 + * */ + private Double price; + + +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/pom.xml b/muyu-modules/muyu-networking/muyu-networking-service/pom.xml new file mode 100644 index 0000000..8213ec0 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/pom.xml @@ -0,0 +1,136 @@ + + + 4.0.0 + + com.muyu + muyu-networking + 3.6.3 + + + muyu-networking-service + + + 17 + 17 + UTF-8 + + + + + com.muyu + muyu-networking-common + 3.6.3 + + + + + + + org.apache.skywalking + apm-toolkit-logback-1.x + 8.16.0 + + + + org.apache.skywalking + apm-toolkit-trace + 8.16.0 + + + + + net.logstash.logback + logstash-logback-encoder + 6.6 + + + + org.springframework.cloud + spring-cloud-starter-sleuth + + + + + com.muyu + muyu-modules-system + 3.6.3 + + + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-config + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-sentinel + + + + + org.springframework.boot + spring-boot-starter-actuator + + + + + io.springfox + springfox-swagger-ui + ${swagger.fox.version} + + + + + com.mysql + mysql-connector-j + + + + + + + + + + + com.muyu + muyu-common-log + + + + + com.muyu + muyu-common-swagger + + + + + org.springframework.cloud + spring-cloud-starter-openfeign + + + + + com.muyu + muyu-common-system + + + com.rabbitmq + amqp-client + + + + + diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/NetworkingApplication.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/NetworkingApplication.java new file mode 100644 index 0000000..3ac951f --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/NetworkingApplication.java @@ -0,0 +1,23 @@ +package com.muyu.networking; + +import com.muyu.common.security.annotation.EnableCustomConfig; +import com.muyu.common.security.annotation.EnableMyFeignClients; +import com.muyu.common.swagger.annotation.EnableCustomSwagger2; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +/** + * @ClassDescription: + * @JdkVersion: 17 + * @Author: zhangxu + * @Created: 2024/5/25 8:45 + */ +@EnableCustomConfig +@EnableCustomSwagger2 +@EnableMyFeignClients +@SpringBootApplication +public class NetworkingApplication { + public static void main(String[] args) { + SpringApplication.run(NetworkingApplication.class, args); + } +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/AddServiceController.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/AddServiceController.java new file mode 100644 index 0000000..5c9632d --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/AddServiceController.java @@ -0,0 +1,107 @@ +package com.muyu.networking.controller; + +import java.util.List; + +import javax.servlet.http.HttpServletResponse; + +import com.muyu.domain.AddService; +import com.muyu.networking.service.AddServiceService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.muyu.common.log.annotation.Log; +import com.muyu.common.log.enums.BusinessType; +import com.muyu.common.security.annotation.RequiresPermissions; + +import com.muyu.common.core.web.controller.BaseController; +import com.muyu.common.core.domain.Result; +import com.muyu.common.core.utils.poi.ExcelUtil; +import com.muyu.common.core.web.page.TableDataInfo; + +/** + * 【请填写功能名称】Controller + * + * @author ruoyi + * @date 2024-05-25 + */ +@RestController +@RequestMapping("/addService") +public class AddServiceController extends BaseController +{ + @Autowired + private AddServiceService addServiceService; + + /** + * 查询【请填写功能名称】列表 + */ + @RequiresPermissions("system:service:list") + @GetMapping("/list") + public Result> list(AddService addService) + { + startPage(); + List list = addServiceService.selectAddServiceList(addService); + return getDataTable(list); + } + + /** + * 导出【请填写功能名称】列表 + */ + @RequiresPermissions("system:service:export") + @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, AddService addService) + { + List list = addServiceService.selectAddServiceList(addService); + ExcelUtil util = new ExcelUtil(AddService.class); + util.exportExcel(response, list, "【请填写功能名称】数据"); + } + + /** + * 获取【请填写功能名称】详细信息 + */ + @RequiresPermissions("system:service:query") + @GetMapping(value = "/{id}") + public Result getInfo(@PathVariable("id") Long id) + { + return success(addServiceService.selectAddServiceById(id)); + } + + /** + * 新增【请填写功能名称】 + */ + @RequiresPermissions("system:service:add") + @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) + @PostMapping + public Result add(@RequestBody AddService addService) + { + return toAjax(addServiceService.insertAddService(addService)); + } + + /** + * 修改【请填写功能名称】 + */ + @RequiresPermissions("system:service:edit") + @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) + @PutMapping + public Result edit(@RequestBody AddService addService) + { + return toAjax(addServiceService.updateAddService(addService)); + } + + /** + * 删除【请填写功能名称】 + */ + @RequiresPermissions("system:service:remove") + @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public Result remove(@PathVariable Long[] ids) + { + return toAjax(addServiceService.deleteAddServiceByIds(ids)); + } +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/CertificationController.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/CertificationController.java new file mode 100644 index 0000000..9a42efa --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/CertificationController.java @@ -0,0 +1,106 @@ +package com.muyu.networking.controller; + +import java.util.List; + +import javax.servlet.http.HttpServletResponse; + +import com.muyu.common.core.utils.poi.ExcelUtil; +import com.muyu.domain.Certification; +import com.muyu.networking.service.CertificationService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.muyu.common.log.annotation.Log; +import com.muyu.common.log.enums.BusinessType; +import com.muyu.common.security.annotation.RequiresPermissions; +import com.muyu.common.core.web.controller.BaseController; +import com.muyu.common.core.domain.Result; +import com.muyu.common.core.web.page.TableDataInfo; + +/** + * 【请填写功能名称】Controller + * + * @author ruoyi + * @date 2024-05-25 + */ +@RestController +@RequestMapping("/certification") +public class CertificationController extends BaseController +{ + @Autowired + private CertificationService certificationService; + + /** + * 查询【请填写功能名称】列表 + */ + @RequiresPermissions("system:certification:list") + @GetMapping("/list") + public Result> list(Certification certification) + { + startPage(); + List list = certificationService.selectCertificationList(certification); + return getDataTable(list); + } + + /** + * 导出【请填写功能名称】列表 + */ + @RequiresPermissions("system:certification:export") + @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, Certification certification) + { + List list = certificationService.selectCertificationList(certification); + ExcelUtil util = new ExcelUtil(Certification.class); + util.exportExcel(response, list, "【请填写功能名称】数据"); + } + + /** + * 获取【请填写功能名称】详细信息 + */ + @RequiresPermissions("system:certification:query") + @GetMapping(value = "/{id}") + public Result getInfo(@PathVariable("id") Long id) + { + return success(certificationService.selectCertificationById(id)); + } + + /** + * 新增【请填写功能名称】 + */ + @RequiresPermissions("system:certification:add") + @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) + @PostMapping + public Result add(@RequestBody Certification certification) + { + return toAjax(certificationService.insertCertification(certification)); + } + + /** + * 修改【请填写功能名称】 + */ + @RequiresPermissions("system:certification:edit") + @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) + @PutMapping + public Result edit(@RequestBody Certification certification) + { + return toAjax(certificationService.updateCertification(certification)); + } + + /** + * 删除【请填写功能名称】 + */ + @RequiresPermissions("system:certification:remove") + @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public Result remove(@PathVariable Long[] ids) + { + return toAjax(certificationService.deleteCertificationByIds(ids)); + } +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/EnterpriseController.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/EnterpriseController.java new file mode 100644 index 0000000..0960194 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/EnterpriseController.java @@ -0,0 +1,107 @@ +package com.muyu.networking.controller; + +import java.util.List; + +import javax.servlet.http.HttpServletResponse; + +import com.muyu.domain.Enterprise; +import com.muyu.networking.service.EnterpriseService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.muyu.common.log.annotation.Log; +import com.muyu.common.log.enums.BusinessType; +import com.muyu.common.security.annotation.RequiresPermissions; + +import com.muyu.common.core.web.controller.BaseController; +import com.muyu.common.core.domain.Result; +import com.muyu.common.core.utils.poi.ExcelUtil; +import com.muyu.common.core.web.page.TableDataInfo; + +/** + * 【请填写功能名称】Controller + * + * @author ruoyi + * @date 2024-05-25 + */ +@RestController +@RequestMapping("/enterprise") +public class EnterpriseController extends BaseController +{ + @Autowired + private EnterpriseService enterpriseService; + + /** + * 查询【请填写功能名称】列表 + */ + @RequiresPermissions("system:enterprise:list") + @GetMapping("/list") + public Result> list(Enterprise enterprise) + { + startPage(); + List list = enterpriseService.selectEnterpriseList(enterprise); + return getDataTable(list); + } + + /** + * 导出【请填写功能名称】列表 + */ + @RequiresPermissions("system:enterprise:export") + @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, Enterprise enterprise) + { + List list = enterpriseService.selectEnterpriseList(enterprise); + ExcelUtil util = new ExcelUtil(Enterprise.class); + util.exportExcel(response, list, "【请填写功能名称】数据"); + } + + /** + * 获取【请填写功能名称】详细信息 + */ + @RequiresPermissions("system:enterprise:query") + @GetMapping(value = "/{id}") + public Result getInfo(@PathVariable("id") Long id) + { + return success(enterpriseService.selectEnterpriseById(id)); + } + + /** + * 新增【请填写功能名称】 + */ + @RequiresPermissions("system:enterprise:add") + @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) + @PostMapping + public Result add(@RequestBody Enterprise enterprise) + { + return toAjax(enterpriseService.insertEnterprise(enterprise)); + } + + /** + * 修改【请填写功能名称】 + */ + @RequiresPermissions("system:enterprise:edit") + @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) + @PutMapping + public Result edit(@RequestBody Enterprise enterprise) + { + return toAjax(enterpriseService.updateEnterprise(enterprise)); + } + + /** + * 删除【请填写功能名称】 + */ + @RequiresPermissions("system:enterprise:remove") + @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public Result remove(@PathVariable Long[] ids) + { + return toAjax(enterpriseService.deleteEnterpriseByIds(ids)); + } +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/ModeOfPaymentIdController.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/ModeOfPaymentIdController.java new file mode 100644 index 0000000..c9ca085 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/ModeOfPaymentIdController.java @@ -0,0 +1,110 @@ +package com.muyu.networking.controller; + +import javax.servlet.http.HttpServletResponse; + + +import com.muyu.common.core.utils.poi.ExcelUtil; +import com.muyu.domain.ModeOfPayment; +import com.muyu.networking.service.ModeOfPaymentIdService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.muyu.common.log.annotation.Log; +import com.muyu.common.log.enums.BusinessType; +import com.muyu.common.security.annotation.RequiresPermissions; + + +import com.muyu.common.core.web.controller.BaseController; +import com.muyu.common.core.domain.Result; + +import com.muyu.common.core.web.page.TableDataInfo; + +import java.util.List; + +/** + * 【请填写功能名称】Controller + * + * @author ruoyi + * @date 2024-05-25 + */ +@RestController +@RequestMapping("/id") +public class ModeOfPaymentIdController extends BaseController +{ + @Autowired + private ModeOfPaymentIdService modeOfPaymentIdService; + + /** + * 查询【请填写功能名称】列表 + */ + @RequiresPermissions("system:id:list") + @GetMapping("/list") + public Result> list(ModeOfPayment modeOfPaymentId) + { + startPage(); + List list = modeOfPaymentIdService.selectModeOfPaymentIdList(modeOfPaymentId); + return getDataTable(list); + } + + /** + * 导出【请填写功能名称】列表 + */ + @RequiresPermissions("system:id:export") + @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, ModeOfPayment modeOfPaymentId) + { + List list = modeOfPaymentIdService.selectModeOfPaymentIdList(modeOfPaymentId); + ExcelUtil util = new ExcelUtil(ModeOfPayment.class); + util.exportExcel(response, list, "【请填写功能名称】数据"); + } + + /** + * 获取【请填写功能名称】详细信息 + */ + @RequiresPermissions("system:id:query") + @GetMapping(value = "/{id}") + public Result getInfo(@PathVariable("id") Long id) + { + return success(modeOfPaymentIdService.selectModeOfPaymentIdById(id)); + } + + /** + * 新增【请填写功能名称】 + */ + @RequiresPermissions("system:id:add") + @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) + @PostMapping + public Result add(@RequestBody ModeOfPayment modeOfPaymentId) + { + return toAjax(modeOfPaymentIdService.insertModeOfPaymentId(modeOfPaymentId)); + } + + /** + * 修改【请填写功能名称】 + */ + @RequiresPermissions("system:id:edit") + @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) + @PutMapping + public Result edit(@RequestBody ModeOfPayment modeOfPaymentId) + { + return toAjax(modeOfPaymentIdService.updateModeOfPaymentId(modeOfPaymentId)); + } + + /** + * 删除【请填写功能名称】 + */ + @RequiresPermissions("system:id:remove") + @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public Result remove(@PathVariable Long[] ids) + { + return toAjax(modeOfPaymentIdService.deleteModeOfPaymentIdByIds(ids)); + } +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/OpenServiceController.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/OpenServiceController.java new file mode 100644 index 0000000..8cdb636 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/OpenServiceController.java @@ -0,0 +1,109 @@ +package com.muyu.networking.controller; + +import javax.servlet.http.HttpServletResponse; + + +import com.muyu.common.core.utils.poi.ExcelUtil; +import com.muyu.domain.OpenServiceAdd; +import com.muyu.networking.service.OpenServiceService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.muyu.common.log.annotation.Log; +import com.muyu.common.log.enums.BusinessType; +import com.muyu.common.security.annotation.RequiresPermissions; + +import com.muyu.common.core.web.controller.BaseController; +import com.muyu.common.core.domain.Result; + +import com.muyu.common.core.web.page.TableDataInfo; + +import java.util.List; + +/** + * 【请填写功能名称】Controller + * + * @author ruoyi + * @date 2024-05-25 + */ +@RestController +@RequestMapping("/service") +public class OpenServiceController extends BaseController +{ + @Autowired + private OpenServiceService openServiceService; + + /** + * 查询【请填写功能名称】列表 + */ + @RequiresPermissions("system:service:list") + @GetMapping("/list") + public Result> list(OpenServiceAdd openService) + { + startPage(); + List list = openServiceService.selectOpenServiceList(openService); + return getDataTable(list); + } + + /** + * 导出【请填写功能名称】列表 + */ + @RequiresPermissions("system:service:export") + @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, OpenServiceAdd openService) + { + List list = openServiceService.selectOpenServiceList(openService); + ExcelUtil util = new ExcelUtil(OpenServiceAdd.class); + util.exportExcel(response, list, "【请填写功能名称】数据"); + } + + /** + * 获取【请填写功能名称】详细信息 + */ + @RequiresPermissions("system:service:query") + @GetMapping(value = "/{id}") + public Result getInfo(@PathVariable("id") Long id) + { + return success(openServiceService.selectOpenServiceById(id)); + } + + /** + * 新增【请填写功能名称】 + */ + @RequiresPermissions("system:service:add") + @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) + @PostMapping + public Result add(@RequestBody OpenServiceAdd openService) + { + return toAjax(openServiceService.insertOpenService(openService)); + } + + /** + * 修改【请填写功能名称】 + */ + @RequiresPermissions("system:service:edit") + @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) + @PutMapping + public Result edit(@RequestBody OpenServiceAdd openService) + { + return toAjax(openServiceService.updateOpenService(openService)); + } + + /** + * 删除【请填写功能名称】 + */ + @RequiresPermissions("system:service:remove") + @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public Result remove(@PathVariable Long[] ids) + { + return toAjax(openServiceService.deleteOpenServiceByIds(ids)); + } +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/PayForController.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/PayForController.java new file mode 100644 index 0000000..71ef0da --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/controller/PayForController.java @@ -0,0 +1,108 @@ +package com.muyu.networking.controller; + +import java.util.List; + +import javax.servlet.http.HttpServletResponse; + +import com.muyu.domain.PayOf; +import com.muyu.networking.service.PayOfService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.muyu.common.log.annotation.Log; +import com.muyu.common.log.enums.BusinessType; +import com.muyu.common.security.annotation.RequiresPermissions; + + +import com.muyu.common.core.web.controller.BaseController; +import com.muyu.common.core.domain.Result; +import com.muyu.common.core.utils.poi.ExcelUtil; +import com.muyu.common.core.web.page.TableDataInfo; + +/** + * 【请填写功能名称】Controller + * + * @author ruoyi + * @date 2024-05-25 + */ +@RestController +@RequestMapping("/for") +public class PayForController extends BaseController +{ + @Autowired + private PayOfService payForService; + + /** + * 查询【请填写功能名称】列表 + */ + @RequiresPermissions("system:for:list") + @GetMapping("/list") + public Result> list(PayOf payFor) + { + startPage(); + List list = payForService.selectPayOfList(payFor); + return getDataTable(list); + } + + /** + * 导出【请填写功能名称】列表 + */ + @RequiresPermissions("system:for:export") + @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, PayOf payFor) + { + List list = payForService.selectPayOfList(payFor); + ExcelUtil util = new ExcelUtil(PayOf.class); + util.exportExcel(response, list, "【请填写功能名称】数据"); + } + + /** + * 获取【请填写功能名称】详细信息 + */ + @RequiresPermissions("system:for:query") + @GetMapping(value = "/{id}") + public Result getInfo(@PathVariable("id") Long id) + { + return success(payForService.selectPayOfById(id)); + } + + /** + * 新增【请填写功能名称】 + */ + @RequiresPermissions("system:for:add") + @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) + @PostMapping + public Result add(@RequestBody PayOf payFor) + { + return toAjax(payForService.insertPayOf(payFor)); + } + + /** + * 修改【请填写功能名称】 + */ + @RequiresPermissions("system:for:edit") + @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) + @PutMapping + public Result edit(@RequestBody PayOf payFor) + { + return toAjax(payForService.updatePayOf(payFor)); + } + + /** + * 删除【请填写功能名称】 + */ + @RequiresPermissions("system:for:remove") + @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public Result remove(@PathVariable Long[] ids) + { + return toAjax(payForService.deletePayOfByIds(ids)); + } +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/AddServiceMapper.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/AddServiceMapper.java new file mode 100644 index 0000000..c0220ad --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/AddServiceMapper.java @@ -0,0 +1,63 @@ +package com.muyu.networking.mapper; + + +import com.muyu.domain.AddService; + +import java.util.List; + +/** + * 【请填写功能名称】Mapper接口 + * + * @author ruoyi + * @date 2024-05-25 + */ +public interface AddServiceMapper +{ + /** + * 查询【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 【请填写功能名称】 + */ + public AddService selectAddServiceById(Long id); + + /** + * 查询【请填写功能名称】列表 + * + * @param addService 【请填写功能名称】 + * @return 【请填写功能名称】集合 + */ + public List selectAddServiceList(AddService addService); + + /** + * 新增【请填写功能名称】 + * + * @param addService 【请填写功能名称】 + * @return 结果 + */ + public int insertAddService(AddService addService); + + /** + * 修改【请填写功能名称】 + * + * @param addService 【请填写功能名称】 + * @return 结果 + */ + public int updateAddService(AddService addService); + + /** + * 删除【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 结果 + */ + public int deleteAddServiceById(Long id); + + /** + * 批量删除【请填写功能名称】 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteAddServiceByIds(Long[] ids); +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/CertificationMapper.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/CertificationMapper.java new file mode 100644 index 0000000..d9cbce2 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/CertificationMapper.java @@ -0,0 +1,63 @@ +package com.muyu.networking.mapper; + + +import com.muyu.domain.Certification; + +import java.util.List; + +/** + * 【请填写功能名称】Mapper接口 + * + * @author ruoyi + * @date 2024-05-25 + */ +public interface CertificationMapper +{ + /** + * 查询【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 【请填写功能名称】 + */ + public Certification selectCertificationById(Long id); + + /** + * 查询【请填写功能名称】列表 + * + * @param certification 【请填写功能名称】 + * @return 【请填写功能名称】集合 + */ + public List selectCertificationList(Certification certification); + + /** + * 新增【请填写功能名称】 + * + * @param certification 【请填写功能名称】 + * @return 结果 + */ + public int insertCertification(Certification certification); + + /** + * 修改【请填写功能名称】 + * + * @param certification 【请填写功能名称】 + * @return 结果 + */ + public int updateCertification(Certification certification); + + /** + * 删除【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 结果 + */ + public int deleteCertificationById(Long id); + + /** + * 批量删除【请填写功能名称】 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteCertificationByIds(Long[] ids); +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/EnterpriseMapper.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/EnterpriseMapper.java new file mode 100644 index 0000000..0c96975 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/EnterpriseMapper.java @@ -0,0 +1,62 @@ +package com.muyu.networking.mapper; + +import com.muyu.domain.Enterprise; + +import java.util.List; + +/** + * 【请填写功能名称】Mapper接口 + * + * @author ruoyi + * @date 2024-05-25 + */ +public interface EnterpriseMapper +{ + /** + * 查询【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 【请填写功能名称】 + */ + public Enterprise selectEnterpriseById(Long id); + + /** + * 查询【请填写功能名称】列表 + * + * @param enterprise 【请填写功能名称】 + * @return 【请填写功能名称】集合 + */ + public List selectEnterpriseList(Enterprise enterprise); + + /** + * 新增【请填写功能名称】 + * + * @param enterprise 【请填写功能名称】 + * @return 结果 + */ + public int insertEnterprise(Enterprise enterprise); + + /** + * 修改【请填写功能名称】 + * + * @param enterprise 【请填写功能名称】 + * @return 结果 + */ + public int updateEnterprise(Enterprise enterprise); + + /** + * 删除【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 结果 + */ + public int deleteEnterpriseById(Long id); + + /** + * 批量删除【请填写功能名称】 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteEnterpriseByIds(Long[] ids); +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/ModeOfPaymentIdMapper.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/ModeOfPaymentIdMapper.java new file mode 100644 index 0000000..3d43c1d --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/ModeOfPaymentIdMapper.java @@ -0,0 +1,63 @@ +package com.muyu.networking.mapper; + + +import com.muyu.domain.ModeOfPayment; + +import java.util.List; + +/** + * 【请填写功能名称】Mapper接口 + * + * @author ruoyi + * @date 2024-05-25 + */ +public interface ModeOfPaymentIdMapper +{ + /** + * 查询【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 【请填写功能名称】 + */ + public ModeOfPayment selectModeOfPaymentIdById(Long id); + + /** + * 查询【请填写功能名称】列表 + * + * @param modeOfPaymentId 【请填写功能名称】 + * @return 【请填写功能名称】集合 + */ + public List selectModeOfPaymentIdList(ModeOfPayment modeOfPaymentId); + + /** + * 新增【请填写功能名称】 + * + * @param modeOfPaymentId 【请填写功能名称】 + * @return 结果 + */ + public int insertModeOfPaymentId(ModeOfPayment modeOfPaymentId); + + /** + * 修改【请填写功能名称】 + * + * @param modeOfPaymentId 【请填写功能名称】 + * @return 结果 + */ + public int updateModeOfPaymentId(ModeOfPayment modeOfPaymentId); + + /** + * 删除【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 结果 + */ + public int deleteModeOfPaymentIdById(Long id); + + /** + * 批量删除【请填写功能名称】 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteModeOfPaymentIdByIds(Long[] ids); +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/OpenServiceMapper.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/OpenServiceMapper.java new file mode 100644 index 0000000..3782ec8 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/OpenServiceMapper.java @@ -0,0 +1,63 @@ +package com.muyu.networking.mapper; + +import java.util.List; + +import com.muyu.domain.OpenServiceAdd; + + +/** + * 【请填写功能名称】Mapper接口 + * + * @author ruoyi + * @date 2024-05-25 + */ +public interface OpenServiceMapper +{ + /** + * 查询【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 【请填写功能名称】 + */ + public OpenServiceAdd selectOpenServiceById(Long id); + + /** + * 查询【请填写功能名称】列表 + * + * @param openService 【请填写功能名称】 + * @return 【请填写功能名称】集合 + */ + public List selectOpenServiceList(OpenServiceAdd openService); + + /** + * 新增【请填写功能名称】 + * + * @param openService 【请填写功能名称】 + * @return 结果 + */ + public int insertOpenService(OpenServiceAdd openService); + + /** + * 修改【请填写功能名称】 + * + * @param openService 【请填写功能名称】 + * @return 结果 + */ + public int updateOpenService(OpenServiceAdd openService); + + /** + * 删除【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 结果 + */ + public int deleteOpenServiceById(Long id); + + /** + * 批量删除【请填写功能名称】 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteOpenServiceByIds(Long[] ids); +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/PayOfMapper.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/PayOfMapper.java new file mode 100644 index 0000000..8319180 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/mapper/PayOfMapper.java @@ -0,0 +1,61 @@ +package com.muyu.networking.mapper; + +import com.muyu.domain.PayOf; +import java.util.List; + +/** + * 【请填写功能名称】Mapper接口 + * + * @author ruoyi + * @date 2024-05-25 + */ +public interface PayOfMapper +{ + /** + * 查询【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 【请填写功能名称】 + */ + public PayOf selectPayOfById(Long id); + + /** + * 查询【请填写功能名称】列表 + * + * @param PayOf 【请填写功能名称】 + * @return 【请填写功能名称】集合 + */ + public List selectPayOfList(PayOf PayOf); + + /** + * 新增【请填写功能名称】 + * + * @param PayOf 【请填写功能名称】 + * @return 结果 + */ + public int insertPayOf(PayOf PayOf); + + /** + * 修改【请填写功能名称】 + * + * @param PayOf 【请填写功能名称】 + * @return 结果 + */ + public int updatePayOf(PayOf PayOf); + + /** + * 删除【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 结果 + */ + public int deletePayOfById(Long id); + + /** + * 批量删除【请填写功能名称】 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deletePayOfByIds(Long[] ids); +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/AddServiceService.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/AddServiceService.java new file mode 100644 index 0000000..3007a55 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/AddServiceService.java @@ -0,0 +1,63 @@ +package com.muyu.networking.service; + + +import com.muyu.domain.AddService; + +import java.util.List; + +/** + * 【请填写功能名称】Service接口 + * + * @author ruoyi + * @date 2024-05-25 + */ +public interface AddServiceService +{ + /** + * 查询【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 【请填写功能名称】 + */ + public AddService selectAddServiceById(Long id); + + /** + * 查询【请填写功能名称】列表 + * + * @param addService 【请填写功能名称】 + * @return 【请填写功能名称】集合 + */ + public List selectAddServiceList(AddService addService); + + /** + * 新增【请填写功能名称】 + * + * @param addService 【请填写功能名称】 + * @return 结果 + */ + public int insertAddService(AddService addService); + + /** + * 修改【请填写功能名称】 + * + * @param addService 【请填写功能名称】 + * @return 结果 + */ + public int updateAddService(AddService addService); + + /** + * 批量删除【请填写功能名称】 + * + * @param ids 需要删除的【请填写功能名称】主键集合 + * @return 结果 + */ + public int deleteAddServiceByIds(Long[] ids); + + /** + * 删除【请填写功能名称】信息 + * + * @param id 【请填写功能名称】主键 + * @return 结果 + */ + public int deleteAddServiceById(Long id); +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/CertificationService.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/CertificationService.java new file mode 100644 index 0000000..bae4ad1 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/CertificationService.java @@ -0,0 +1,63 @@ +package com.muyu.networking.service; + + +import com.muyu.domain.Certification; + +import java.util.List; + +/** + * 【请填写功能名称】Service接口 + * + * @author ruoyi + * @date 2024-05-25 + */ +public interface CertificationService +{ + /** + * 查询【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 【请填写功能名称】 + */ + public Certification selectCertificationById(Long id); + + /** + * 查询【请填写功能名称】列表 + * + * @param certification 【请填写功能名称】 + * @return 【请填写功能名称】集合 + */ + public List selectCertificationList(Certification certification); + + /** + * 新增【请填写功能名称】 + * + * @param certification 【请填写功能名称】 + * @return 结果 + */ + public int insertCertification(Certification certification); + + /** + * 修改【请填写功能名称】 + * + * @param certification 【请填写功能名称】 + * @return 结果 + */ + public int updateCertification(Certification certification); + + /** + * 批量删除【请填写功能名称】 + * + * @param ids 需要删除的【请填写功能名称】主键集合 + * @return 结果 + */ + public int deleteCertificationByIds(Long[] ids); + + /** + * 删除【请填写功能名称】信息 + * + * @param id 【请填写功能名称】主键 + * @return 结果 + */ + public int deleteCertificationById(Long id); +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/EnterpriseService.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/EnterpriseService.java new file mode 100644 index 0000000..671dc52 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/EnterpriseService.java @@ -0,0 +1,61 @@ +package com.muyu.networking.service; +import com.muyu.domain.Enterprise; + +import java.util.List; + +/** + * 【请填写功能名称】Service接口 + * + * @author ruoyi + * @date 2024-05-25 + */ +public interface EnterpriseService +{ + /** + * 查询【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 【请填写功能名称】 + */ + public Enterprise selectEnterpriseById(Long id); + + /** + * 查询【请填写功能名称】列表 + * + * @param enterprise 【请填写功能名称】 + * @return 【请填写功能名称】集合 + */ + public List selectEnterpriseList(Enterprise enterprise); + + /** + * 新增【请填写功能名称】 + * + * @param enterprise 【请填写功能名称】 + * @return 结果 + */ + public int insertEnterprise(Enterprise enterprise); + + /** + * 修改【请填写功能名称】 + * + * @param enterprise 【请填写功能名称】 + * @return 结果 + */ + public int updateEnterprise(Enterprise enterprise); + + /** + * 批量删除【请填写功能名称】 + * + * @param ids 需要删除的【请填写功能名称】主键集合 + * @return 结果 + */ + public int deleteEnterpriseByIds(Long[] ids); + + /** + * 删除【请填写功能名称】信息 + * + * @param id 【请填写功能名称】主键 + * @return 结果 + */ + public int deleteEnterpriseById(Long id); +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/ModeOfPaymentIdService.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/ModeOfPaymentIdService.java new file mode 100644 index 0000000..c783389 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/ModeOfPaymentIdService.java @@ -0,0 +1,63 @@ +package com.muyu.networking.service; + + +import com.muyu.domain.ModeOfPayment; + +import java.util.List; + +/** + * 【请填写功能名称】Service接口 + * + * @author ruoyi + * @date 2024-05-25 + */ +public interface ModeOfPaymentIdService +{ + /** + * 查询【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 【请填写功能名称】 + */ + public ModeOfPayment selectModeOfPaymentIdById(Long id); + + /** + * 查询【请填写功能名称】列表 + * + * @param modeOfPaymentId 【请填写功能名称】 + * @return 【请填写功能名称】集合 + */ + public List selectModeOfPaymentIdList(ModeOfPayment modeOfPaymentId); + + /** + * 新增【请填写功能名称】 + * + * @param modeOfPaymentId 【请填写功能名称】 + * @return 结果 + */ + public int insertModeOfPaymentId(ModeOfPayment modeOfPaymentId); + + /** + * 修改【请填写功能名称】 + * + * @param modeOfPaymentId 【请填写功能名称】 + * @return 结果 + */ + public int updateModeOfPaymentId(ModeOfPayment modeOfPaymentId); + + /** + * 批量删除【请填写功能名称】 + * + * @param ids 需要删除的【请填写功能名称】主键集合 + * @return 结果 + */ + public int deleteModeOfPaymentIdByIds(Long[] ids); + + /** + * 删除【请填写功能名称】信息 + * + * @param id 【请填写功能名称】主键 + * @return 结果 + */ + public int deleteModeOfPaymentIdById(Long id); +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/OpenServiceService.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/OpenServiceService.java new file mode 100644 index 0000000..d606ee8 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/OpenServiceService.java @@ -0,0 +1,63 @@ +package com.muyu.networking.service; + + +import com.muyu.domain.OpenServiceAdd; + +import java.util.List; + +/** + * 【请填写功能名称】Service接口 + * + * @author ruoyi + * @date 2024-05-25 + */ +public interface OpenServiceService +{ + /** + * 查询【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 【请填写功能名称】 + */ + public OpenServiceAdd selectOpenServiceById(Long id); + + /** + * 查询【请填写功能名称】列表 + * + * @param openService 【请填写功能名称】 + * @return 【请填写功能名称】集合 + */ + public List selectOpenServiceList(OpenServiceAdd openService); + + /** + * 新增【请填写功能名称】 + * + * @param openService 【请填写功能名称】 + * @return 结果 + */ + public int insertOpenService(OpenServiceAdd openService); + + /** + * 修改【请填写功能名称】 + * + * @param openService 【请填写功能名称】 + * @return 结果 + */ + public int updateOpenService(OpenServiceAdd openService); + + /** + * 批量删除【请填写功能名称】 + * + * @param ids 需要删除的【请填写功能名称】主键集合 + * @return 结果 + */ + public int deleteOpenServiceByIds(Long[] ids); + + /** + * 删除【请填写功能名称】信息 + * + * @param id 【请填写功能名称】主键 + * @return 结果 + */ + public int deleteOpenServiceById(Long id); +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/PayOfService.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/PayOfService.java new file mode 100644 index 0000000..9d94ff8 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/PayOfService.java @@ -0,0 +1,63 @@ +package com.muyu.networking.service; + + +import com.muyu.domain.PayOf; + +import java.util.List; + +/** + * 【请填写功能名称】Service接口 + * + * @author ruoyi + * @date 2024-05-25 + */ +public interface PayOfService +{ + /** + * 查询【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 【请填写功能名称】 + */ + public PayOf selectPayOfById(Long id); + + /** + * 查询【请填写功能名称】列表 + * + * @param PayOf 【请填写功能名称】 + * @return 【请填写功能名称】集合 + */ + public List selectPayOfList(PayOf PayOf); + + /** + * 新增【请填写功能名称】 + * + * @param PayOf 【请填写功能名称】 + * @return 结果 + */ + public int insertPayOf(PayOf PayOf); + + /** + * 修改【请填写功能名称】 + * + * @param PayOf 【请填写功能名称】 + * @return 结果 + */ + public int updatePayOf(PayOf PayOf); + + /** + * 批量删除【请填写功能名称】 + * + * @param ids 需要删除的【请填写功能名称】主键集合 + * @return 结果 + */ + public int deletePayOfByIds(Long[] ids); + + /** + * 删除【请填写功能名称】信息 + * + * @param id 【请填写功能名称】主键 + * @return 结果 + */ + public int deletePayOfById(Long id); +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/AddServiceServiceImpl.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/AddServiceServiceImpl.java new file mode 100644 index 0000000..b0f3a3d --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/AddServiceServiceImpl.java @@ -0,0 +1,97 @@ +package com.muyu.networking.service.impl; + +import com.muyu.common.core.utils.DateUtils; +import com.muyu.domain.AddService; +import com.muyu.networking.mapper.AddServiceMapper; +import com.muyu.networking.service.AddServiceService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 【请填写功能名称】Service业务层处理 + * + * @author ruoyi + * @date 2024-05-25 + */ +@Service +public class AddServiceServiceImpl implements AddServiceService +{ + @Autowired + private AddServiceMapper addServiceMapper; + + /** + * 查询【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 【请填写功能名称】 + */ + @Override + public AddService selectAddServiceById(Long id) + { + return addServiceMapper.selectAddServiceById(id); + } + + /** + * 查询【请填写功能名称】列表 + * + * @param addService 【请填写功能名称】 + * @return 【请填写功能名称】 + */ + @Override + public List selectAddServiceList(AddService addService) + { + return addServiceMapper.selectAddServiceList(addService); + } + + /** + * 新增【请填写功能名称】 + * + * @param addService 【请填写功能名称】 + * @return 结果 + */ + @Override + public int insertAddService(AddService addService) + { + addService.setCreateTime(DateUtils.getNowDate()); + return addServiceMapper.insertAddService(addService); + } + + /** + * 修改【请填写功能名称】 + * + * @param addService 【请填写功能名称】 + * @return 结果 + */ + @Override + public int updateAddService(AddService addService) + { + addService.setUpdateTime(DateUtils.getNowDate()); + return addServiceMapper.updateAddService(addService); + } + + /** + * 批量删除【请填写功能名称】 + * + * @param ids 需要删除的【请填写功能名称】主键 + * @return 结果 + */ + @Override + public int deleteAddServiceByIds(Long[] ids) + { + return addServiceMapper.deleteAddServiceByIds(ids); + } + + /** + * 删除【请填写功能名称】信息 + * + * @param id 【请填写功能名称】主键 + * @return 结果 + */ + @Override + public int deleteAddServiceById(Long id) + { + return addServiceMapper.deleteAddServiceById(id); + } +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/CertificationServiceImpl.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/CertificationServiceImpl.java new file mode 100644 index 0000000..9023eb0 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/CertificationServiceImpl.java @@ -0,0 +1,99 @@ +package com.muyu.networking.service.impl; + + +import com.muyu.common.core.utils.DateUtils; +import com.muyu.domain.Certification; +import com.muyu.networking.mapper.CertificationMapper; +import com.muyu.networking.service.CertificationService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + + +/** + * 【请填写功能名称】Service业务层处理 + * + * @author ruoyi + * @date 2024-05-25 + */ +@Service +public class CertificationServiceImpl implements CertificationService +{ + @Autowired + private CertificationMapper certificationMapper; + + /** + * 查询【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 【请填写功能名称】 + */ + @Override + public Certification selectCertificationById(Long id) + { + return certificationMapper.selectCertificationById(id); + } + + /** + * 查询【请填写功能名称】列表 + * + * @param certification 【请填写功能名称】 + * @return 【请填写功能名称】 + */ + @Override + public List selectCertificationList(Certification certification) + { + return certificationMapper.selectCertificationList(certification); + } + + /** + * 新增【请填写功能名称】 + * + * @param certification 【请填写功能名称】 + * @return 结果 + */ + @Override + public int insertCertification(Certification certification) + { + certification.setCreateTime(DateUtils.getNowDate()); + return certificationMapper.insertCertification(certification); + } + + /** + * 修改【请填写功能名称】 + * + * @param certification 【请填写功能名称】 + * @return 结果 + */ + @Override + public int updateCertification(Certification certification) + { + certification.setUpdateTime(DateUtils.getNowDate()); + return certificationMapper.updateCertification(certification); + } + + /** + * 批量删除【请填写功能名称】 + * + * @param ids 需要删除的【请填写功能名称】主键 + * @return 结果 + */ + @Override + public int deleteCertificationByIds(Long[] ids) + { + return certificationMapper.deleteCertificationByIds(ids); + } + + /** + * 删除【请填写功能名称】信息 + * + * @param id 【请填写功能名称】主键 + * @return 结果 + */ + @Override + public int deleteCertificationById(Long id) + { + return certificationMapper.deleteCertificationById(id); + } +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/EnterpriseServiceImpl.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/EnterpriseServiceImpl.java new file mode 100644 index 0000000..dd9ae5c --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/EnterpriseServiceImpl.java @@ -0,0 +1,103 @@ +package com.muyu.networking.service.impl; + + +import com.muyu.common.core.utils.DateUtils; +import com.muyu.common.security.utils.SecurityUtils; +import com.muyu.domain.Enterprise; +import com.muyu.networking.mapper.EnterpriseMapper; +import com.muyu.networking.service.EnterpriseService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; +import java.util.UUID; + + +/** + * 【请填写功能名称】Service业务层处理 + * + * @author ruoyi + * @date 2024-05-25 + */ +@Service +public class EnterpriseServiceImpl implements EnterpriseService +{ + @Autowired + private EnterpriseMapper enterpriseMapper; + + /** + * 查询【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 【请填写功能名称】 + */ + @Override + public Enterprise selectEnterpriseById(Long id) + { + return enterpriseMapper.selectEnterpriseById(id); + } + + /** + * 查询【请填写功能名称】列表 + * + * @param enterprise 【请填写功能名称】 + * @return 【请填写功能名称】 + */ + @Override + public List selectEnterpriseList(Enterprise enterprise) + { + return enterpriseMapper.selectEnterpriseList(enterprise); + } + + /** + * 新增【请填写功能名称】 + * + * @param enterprise 【请填写功能名称】 + * @return 结果 + */ + @Override + public int insertEnterprise(Enterprise enterprise) + { + enterprise.setCreateBy(SecurityUtils.getUsername()); + enterprise.setCreateTime(DateUtils.getNowDate()); + enterprise.setBusinessLicenseNumber(UUID.randomUUID().toString()); + return enterpriseMapper.insertEnterprise(enterprise); + } + + /** + * 修改【请填写功能名称】 + * + * @param enterprise 【请填写功能名称】 + * @return 结果 + */ + @Override + public int updateEnterprise(Enterprise enterprise) + { + enterprise.setUpdateTime(DateUtils.getNowDate()); + return enterpriseMapper.updateEnterprise(enterprise); + } + + /** + * 批量删除【请填写功能名称】 + * + * @param ids 需要删除的【请填写功能名称】主键 + * @return 结果 + */ + @Override + public int deleteEnterpriseByIds(Long[] ids) + { + return enterpriseMapper.deleteEnterpriseByIds(ids); + } + + /** + * 删除【请填写功能名称】信息 + * + * @param id 【请填写功能名称】主键 + * @return 结果 + */ + @Override + public int deleteEnterpriseById(Long id) + { + return enterpriseMapper.deleteEnterpriseById(id); + } +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/ModeOfPaymentIdServiceImpl.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/ModeOfPaymentIdServiceImpl.java new file mode 100644 index 0000000..ba379ae --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/ModeOfPaymentIdServiceImpl.java @@ -0,0 +1,99 @@ +package com.muyu.networking.service.impl; + + +import com.muyu.common.core.utils.DateUtils; +import com.muyu.domain.ModeOfPayment; +import com.muyu.networking.mapper.ModeOfPaymentIdMapper; +import com.muyu.networking.service.ModeOfPaymentIdService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + + +/** + * 【请填写功能名称】Service业务层处理 + * + * @author ruoyi + * @date 2024-05-25 + */ +@Service +public class ModeOfPaymentIdServiceImpl implements ModeOfPaymentIdService +{ + @Autowired + private ModeOfPaymentIdMapper modeOfPaymentIdMapper; + + /** + * 查询【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 【请填写功能名称】 + */ + @Override + public ModeOfPayment selectModeOfPaymentIdById(Long id) + { + return modeOfPaymentIdMapper.selectModeOfPaymentIdById(id); + } + + /** + * 查询【请填写功能名称】列表 + * + * @param modeOfPaymentId 【请填写功能名称】 + * @return 【请填写功能名称】 + */ + @Override + public List selectModeOfPaymentIdList(ModeOfPayment modeOfPaymentId) + { + return modeOfPaymentIdMapper.selectModeOfPaymentIdList(modeOfPaymentId); + } + + /** + * 新增【请填写功能名称】 + * + * @param modeOfPaymentId 【请填写功能名称】 + * @return 结果 + */ + @Override + public int insertModeOfPaymentId(ModeOfPayment modeOfPaymentId) + { + modeOfPaymentId.setCreateTime(DateUtils.getNowDate()); + return modeOfPaymentIdMapper.insertModeOfPaymentId(modeOfPaymentId); + } + + /** + * 修改【请填写功能名称】 + * + * @param modeOfPaymentId 【请填写功能名称】 + * @return 结果 + */ + @Override + public int updateModeOfPaymentId(ModeOfPayment modeOfPaymentId) + { + modeOfPaymentId.setUpdateTime(DateUtils.getNowDate()); + return modeOfPaymentIdMapper.updateModeOfPaymentId(modeOfPaymentId); + } + + /** + * 批量删除【请填写功能名称】 + * + * @param ids 需要删除的【请填写功能名称】主键 + * @return 结果 + */ + @Override + public int deleteModeOfPaymentIdByIds(Long[] ids) + { + return modeOfPaymentIdMapper.deleteModeOfPaymentIdByIds(ids); + } + + /** + * 删除【请填写功能名称】信息 + * + * @param id 【请填写功能名称】主键 + * @return 结果 + */ + @Override + public int deleteModeOfPaymentIdById(Long id) + { + return modeOfPaymentIdMapper.deleteModeOfPaymentIdById(id); + } +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/OpenServiceServiceImpl.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/OpenServiceServiceImpl.java new file mode 100644 index 0000000..a12f4b9 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/OpenServiceServiceImpl.java @@ -0,0 +1,97 @@ +package com.muyu.networking.service.impl; + +import java.util.List; +import com.muyu.common.core.utils.DateUtils; +import com.muyu.domain.OpenServiceAdd; +import com.muyu.networking.mapper.OpenServiceMapper; +import com.muyu.networking.service.OpenServiceService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + + +/** + * 【请填写功能名称】Service业务层处理 + * + * @author ruoyi + * @date 2024-05-25 + */ +@Service +public class OpenServiceServiceImpl implements OpenServiceService +{ + @Autowired + private OpenServiceMapper openServiceMapper; + + /** + * 查询【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 【请填写功能名称】 + */ + @Override + public OpenServiceAdd selectOpenServiceById(Long id) + { + return openServiceMapper.selectOpenServiceById(id); + } + + /** + * 查询【请填写功能名称】列表 + * + * @param openService 【请填写功能名称】 + * @return 【请填写功能名称】 + */ + @Override + public List selectOpenServiceList(OpenServiceAdd openService) + { + return openServiceMapper.selectOpenServiceList(openService); + } + + /** + * 新增【请填写功能名称】 + * + * @param openService 【请填写功能名称】 + * @return 结果 + */ + @Override + public int insertOpenService(OpenServiceAdd openService) + { + openService.setCreateTime(DateUtils.getNowDate()); + return openServiceMapper.insertOpenService(openService); + } + + /** + * 修改【请填写功能名称】 + * + * @param openService 【请填写功能名称】 + * @return 结果 + */ + @Override + public int updateOpenService(OpenServiceAdd openService) + { + openService.setUpdateTime(DateUtils.getNowDate()); + return openServiceMapper.updateOpenService(openService); + } + + /** + * 批量删除【请填写功能名称】 + * + * @param ids 需要删除的【请填写功能名称】主键 + * @return 结果 + */ + @Override + public int deleteOpenServiceByIds(Long[] ids) + { + return openServiceMapper.deleteOpenServiceByIds(ids); + } + + /** + * 删除【请填写功能名称】信息 + * + * @param id 【请填写功能名称】主键 + * @return 结果 + */ + @Override + public int deleteOpenServiceById(Long id) + { + return openServiceMapper.deleteOpenServiceById(id); + } +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/PayOfServiceImpl.java b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/PayOfServiceImpl.java new file mode 100644 index 0000000..9c93f17 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/java/com/muyu/networking/service/impl/PayOfServiceImpl.java @@ -0,0 +1,97 @@ +package com.muyu.networking.service.impl; + +import java.util.List; +import com.muyu.common.core.utils.DateUtils; +import com.muyu.domain.PayOf; +import com.muyu.networking.mapper.PayOfMapper; +import com.muyu.networking.service.PayOfService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + + +/** + * 【请填写功能名称】Service业务层处理 + * + * @author ruoyi + * @date 2024-05-25 + */ +@Service +public class PayOfServiceImpl implements PayOfService +{ + @Autowired + private PayOfMapper payOfMapper; + + /** + * 查询【请填写功能名称】 + * + * @param id 【请填写功能名称】主键 + * @return 【请填写功能名称】 + */ + @Override + public PayOf selectPayOfById(Long id) + { + return payOfMapper.selectPayOfById(id); + } + + /** + * 查询【请填写功能名称】列表 + * + * @param PayOf 【请填写功能名称】 + * @return 【请填写功能名称】 + */ + @Override + public List selectPayOfList(PayOf PayOf) + { + return payOfMapper.selectPayOfList(PayOf); + } + + /** + * 新增【请填写功能名称】 + * + * @param PayOf 【请填写功能名称】 + * @return 结果 + */ + @Override + public int insertPayOf(PayOf PayOf) + { + PayOf.setCreateTime(DateUtils.getNowDate()); + return payOfMapper.insertPayOf(PayOf); + } + + /** + * 修改【请填写功能名称】 + * + * @param PayOf 【请填写功能名称】 + * @return 结果 + */ + @Override + public int updatePayOf(PayOf PayOf) + { + PayOf.setUpdateTime(DateUtils.getNowDate()); + return payOfMapper.updatePayOf(PayOf); + } + + /** + * 批量删除【请填写功能名称】 + * + * @param ids 需要删除的【请填写功能名称】主键 + * @return 结果 + */ + @Override + public int deletePayOfByIds(Long[] ids) + { + return payOfMapper.deletePayOfByIds(ids); + } + + /** + * 删除【请填写功能名称】信息 + * + * @param id 【请填写功能名称】主键 + * @return 结果 + */ + @Override + public int deletePayOfById(Long id) + { + return payOfMapper.deletePayOfById(id); + } +} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/banner.txt b/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/banner.txt new file mode 100644 index 0000000..0dd5eee --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/banner.txt @@ -0,0 +1,2 @@ +Spring Boot Version: ${spring-boot.version} +Spring Application Name: ${spring.application.name} diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/bootstrap.yml b/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/bootstrap.yml new file mode 100644 index 0000000..3bc3898 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/bootstrap.yml @@ -0,0 +1,30 @@ +# Tomcat +server: + port: 9204 + +# Spring +spring: + application: + # 应用名称 + name: muyu-networking + profiles: + # 环境配置 + active: dev + cloud: + nacos: + discovery: + # 服务注册地址 + server-addr: 115.159.67.205:8848 + config: + # 配置中心地址 + server-addr: 115.159.67.205:8848 + # 配置文件格式 + file-extension: yml + # 共享配置 + shared-configs: + - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} + +logging: + config: classpath:logback-spring.xml + level: + com.muyu.networking.mapper: DEBUG diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/logback.xml b/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/logback.xml new file mode 100644 index 0000000..9bcd923 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/logback.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + ${log.pattern} + + + + + + ${log.path}/info.log + + + + ${log.path}/info.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + INFO + + ACCEPT + + DENY + + + + + ${log.path}/error.log + + + + ${log.path}/error.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + ERROR + + ACCEPT + + DENY + + + + + + + + + + + + + + + + + + diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/AddServiceMapper.xml b/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/AddServiceMapper.xml new file mode 100644 index 0000000..813e61f --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/AddServiceMapper.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + select id, add_value, remark, create_by, create_time, update_time, update_by from add_service + + + + + + + + insert into add_service + + add_value, + remark, + create_by, + create_time, + update_time, + update_by, + + + #{addValue}, + #{remark}, + #{createBy}, + #{createTime}, + #{updateTime}, + #{updateBy}, + + + + + update add_service + + add_value = #{addValue}, + remark = #{remark}, + create_by = #{createBy}, + create_time = #{createTime}, + update_time = #{updateTime}, + update_by = #{updateBy}, + + where id = #{id} + + + + delete from add_service where id = #{id} + + + + delete from add_service where id in + + #{id} + + + diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/CertificationMapper.xml b/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/CertificationMapper.xml new file mode 100644 index 0000000..5718ea6 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/CertificationMapper.xml @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + select id, auditor, stat, audit_reason, remark, create_by, create_time, update_by, update_time from certification + + + + + + + + insert into certification + + auditor, + stat, + audit_reason, + remark, + create_by, + create_time, + update_by, + update_time, + + + #{auditor}, + #{stat}, + #{auditReason}, + #{remark}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + + + + + update certification + + auditor = #{auditor}, + stat = #{stat}, + audit_reason = #{auditReason}, + remark = #{remark}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + + where id = #{id} + + + + delete from certification where id = #{id} + + + + delete from certification where id in + + #{id} + + + diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/EnterpriseMapper.xml b/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/EnterpriseMapper.xml new file mode 100644 index 0000000..8af1351 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/EnterpriseMapper.xml @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, enterprise_name,open_add, legal_person, business_license_number, establishment_date, business_scope, address, contact_phone, email, status, registration_date, certification, open_service_id, add_service_id, remark, create_by, create_time, update_time, update_by from enterprise + + + + + + + + insert into enterprise + + enterprise_name, + legal_person, + business_license_number, + establishment_date, + business_scope, + address, + contact_phone, + email, + status, + registration_date, + certification, + open_service_id, + add_service_id, + remark, + create_by, + create_time, + update_time, + update_by, + open_add, + + + #{enterpriseName}, + #{legalPerson}, + #{businessLicenseNumber}, + #{establishmentDate}, + #{businessScope}, + #{address}, + #{contactPhone}, + #{email}, + #{status}, + #{registrationDate}, + #{certification}, + #{openServiceId}, + #{addServiceId}, + #{remark}, + #{createBy}, + #{createTime}, + #{updateTime}, + #{updateBy}, + #{openAdd}, + + + + + update enterprise + + enterprise_name = #{enterpriseName}, + legal_person = #{legalPerson}, + business_license_number = #{businessLicenseNumber}, + establishment_date = #{establishmentDate}, + business_scope = #{businessScope}, + address = #{address}, + contact_phone = #{contactPhone}, + email = #{email}, + status = #{status}, + registration_date = #{registrationDate}, + certification = #{certification}, + open_service_id = #{openServiceId}, + add_service_id = #{addServiceId}, + remark = #{remark}, + create_by = #{createBy}, + create_time = #{createTime}, + update_time = #{updateTime}, + update_by = #{updateBy}, + open_add = #{openAdd}, + + where id = #{id} + + + + delete from enterprise where id = #{id} + + + + delete from enterprise where id in + + #{id} + + + diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/ModeOfPaymentIdMapper.xml b/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/ModeOfPaymentIdMapper.xml new file mode 100644 index 0000000..e9c171e --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/ModeOfPaymentIdMapper.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + select id, payment, remark, create_by, create_time, update_time, update_by from mode_of_payment_id + + + + + + + + insert into mode_of_payment_id + + payment, + remark, + create_by, + create_time, + update_time, + update_by, + + + #{payment}, + #{remark}, + #{createBy}, + #{createTime}, + #{updateTime}, + #{updateBy}, + + + + + update mode_of_payment_id + + payment = #{payment}, + remark = #{remark}, + create_by = #{createBy}, + create_time = #{createTime}, + update_time = #{updateTime}, + update_by = #{updateBy}, + + where id = #{id} + + + + delete from mode_of_payment_id where id = #{id} + + + + delete from mode_of_payment_id where id in + + #{id} + + + diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/OpenServiceMapper.xml b/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/OpenServiceMapper.xml new file mode 100644 index 0000000..26c162b --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/OpenServiceMapper.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + select id, activate_the_service, remark, create_by, create_time, update_time, update_by from open_service + + + + + + + + insert into open_service + + activate_the_service, + remark, + create_by, + create_time, + update_time, + update_by, + + + #{activateTheService}, + #{remark}, + #{createBy}, + #{createTime}, + #{updateTime}, + #{updateBy}, + + + + + update open_service + + activate_the_service = #{activateTheService}, + remark = #{remark}, + create_by = #{createBy}, + create_time = #{createTime}, + update_time = #{updateTime}, + update_by = #{updateBy}, + + where id = #{id} + + + + delete from open_service where id = #{id} + + + + delete from open_service where id in + + #{id} + + + diff --git a/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/PayForMapper.xml b/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/PayForMapper.xml new file mode 100644 index 0000000..951f496 --- /dev/null +++ b/muyu-modules/muyu-networking/muyu-networking-service/src/main/resources/mapper/PayForMapper.xml @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + select id, enterprise_id, mode_of_payment_id, price, remark, create_by, create_time, update_time, update_by from pay_for + + + + + + + + insert into pay_for + + enterprise_id, + mode_of_payment_id, + price, + remark, + create_by, + create_time, + update_time, + update_by, + + + #{enterpriseId}, + #{modeOfPaymentId}, + #{price}, + #{remark}, + #{createBy}, + #{createTime}, + #{updateTime}, + #{updateBy}, + + + + + update pay_for + + enterprise_id = #{enterpriseId}, + mode_of_payment_id = #{modeOfPaymentId}, + price = #{price}, + remark = #{remark}, + create_by = #{createBy}, + create_time = #{createTime}, + update_time = #{updateTime}, + update_by = #{updateBy}, + + where id = #{id} + + + + delete from pay_for where id = #{id} + + + + delete from pay_for where id in + + #{id} + + + diff --git a/muyu-modules/muyu-networking/pom.xml b/muyu-modules/muyu-networking/pom.xml new file mode 100644 index 0000000..ef15bb2 --- /dev/null +++ b/muyu-modules/muyu-networking/pom.xml @@ -0,0 +1,93 @@ + + + 4.0.0 + + com.muyu + muyu-modules + 3.6.3 + + + muyu-networking + pom + + muyu-networking-common + muyu-networking-service + + + + 17 + 17 + UTF-8 + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-config + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-sentinel + + + + + org.springframework.boot + spring-boot-starter-actuator + + + + + io.springfox + springfox-swagger-ui + ${swagger.fox.version} + + + + + com.mysql + mysql-connector-j + + + + + com.muyu + muyu-common-datasource + + + + + com.muyu + muyu-common-datascope + + + + + com.muyu + muyu-common-log + + + + + com.muyu + muyu-common-swagger + + + + + org.springframework.cloud + spring-cloud-starter-openfeign + + + + diff --git a/muyu-modules/muyu-system/src/main/resources/bootstrap.yml b/muyu-modules/muyu-system/src/main/resources/bootstrap.yml index a66fd4c..ae61d7d 100644 --- a/muyu-modules/muyu-system/src/main/resources/bootstrap.yml +++ b/muyu-modules/muyu-system/src/main/resources/bootstrap.yml @@ -14,10 +14,10 @@ spring: nacos: discovery: # 服务注册地址 - server-addr: 127.0.0.1:8848 + server-addr: 115.159.67.205:8848 config: # 配置中心地址 - server-addr: 127.0.0.1:8848 + server-addr: 115.159.67.205:8848 # 配置文件格式 file-extension: yml # 共享配置 diff --git a/muyu-modules/pom.xml b/muyu-modules/pom.xml index 846198c..b42fb1d 100644 --- a/muyu-modules/pom.xml +++ b/muyu-modules/pom.xml @@ -13,6 +13,7 @@ muyu-gen muyu-job muyu-file + muyu-networking muyu-modules diff --git a/muyu-visual/muyu-monitor/src/main/resources/bootstrap.yml b/muyu-visual/muyu-monitor/src/main/resources/bootstrap.yml index 1276c8e..dd3a139 100644 --- a/muyu-visual/muyu-monitor/src/main/resources/bootstrap.yml +++ b/muyu-visual/muyu-monitor/src/main/resources/bootstrap.yml @@ -14,10 +14,10 @@ spring: nacos: discovery: # 服务注册地址 - server-addr: 127.0.0.1:8848 + server-addr: 115.159.67.205:8848 config: # 配置中心地址 - server-addr: 127.0.0.1:8848 + server-addr: 115.159.67.205:8848 # 配置文件格式 file-extension: yml # 共享配置 diff --git a/sql/ry_20230706.sql b/sql/ry_20230706.sql index 8365034..98998f5 100644 --- a/sql/ry_20230706.sql +++ b/sql/ry_20230706.sql @@ -67,8 +67,8 @@ create table sys_user ( -- ---------------------------- -- 初始化-用户信息表数据 -- ---------------------------- -insert into sys_user values(1, 103, 'admin', '若依', '00', 'ry@163.com', '15888888888', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', sysdate(), 'admin', sysdate(), '', null, '管理员'); -insert into sys_user values(2, 105, 'ry', '若依', '00', 'ry@qq.com', '15666666666', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', sysdate(), 'admin', sysdate(), '', null, '测试员'); +insert into sys_user values(1, 103, 'admin', '若依', '00', 'ry@163.com', '15888888888', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '115.159.67.205', sysdate(), 'admin', sysdate(), '', null, '管理员'); +insert into sys_user values(2, 105, 'ry', '若依', '00', 'ry@qq.com', '15666666666', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '115.159.67.205', sysdate(), 'admin', sysdate(), '', null, '测试员'); -- ---------------------------- diff --git a/sql/ry_config_20220929.sql b/sql/ry_config_20220929.sql index a426ae7..57d6748 100644 --- a/sql/ry_config_20220929.sql +++ b/sql/ry_config_20220929.sql @@ -40,7 +40,7 @@ insert into config_info(id, data_id, group_id, content, md5, gmt_create, gmt_mod (5,'muyu-system-dev.yml','DEFAULT_GROUP','# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: root\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.muyu.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By muyu\n licenseUrl: https://muyu.vip','48e0ed4a040c402bdc2444213a82c910','2020-11-20 00:00:00','2022-09-29 02:49:09','nacos','0:0:0:0:0:0:0:1','','','系统模块','null','null','yaml','',''), (6,'muyu-gen-dev.yml','DEFAULT_GROUP','# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: root\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.muyu.gen.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 代码生成接口文档\n license: Powered By muyu\n licenseUrl: https://muyu.vip\n\n# 代码生成\ngen:\n # 作者\n author: muyu\n # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool\n packageName: com.muyu.system\n # 自动去除表前缀,默认是false\n autoRemovePre: false\n # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)\n tablePrefix: sys_\n','eb592420b3fceae1402881887b8a6a0d','2020-11-20 00:00:00','2022-09-29 02:49:42','nacos','0:0:0:0:0:0:0:1','','','代码生成','null','null','yaml','',''), (7,'muyu-job-dev.yml','DEFAULT_GROUP','# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password: \n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: root\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.muyu.job.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 定时任务接口文档\n license: Powered By muyu\n licenseUrl: https://muyu.vip\n','edcf0e3fe13fea07b4ec08b1088f30b3','2020-11-20 00:00:00','2022-09-29 02:50:50','nacos','0:0:0:0:0:0:0:1','','','定时任务','null','null','yaml','',''), -(8,'muyu-file-dev.yml','DEFAULT_GROUP','# 本地文件上传 \r\nfile:\r\n domain: http://127.0.0.1:9300\r\n path: D:/muyu/uploadPath\r\n prefix: /statics\r\n\r\n# FastDFS配置\r\nfdfs:\r\n domain: http://8.129.231.12\r\n soTimeout: 3000\r\n connectTimeout: 2000\r\n trackerList: 8.129.231.12:22122\r\n\r\n# Minio配置\r\nminio:\r\n url: http://8.129.231.12:9000\r\n accessKey: minioadmin\r\n secretKey: minioadmin\r\n bucketName: test','5382b93f3d8059d6068c0501fdd41195','2020-11-20 00:00:00','2020-12-21 21:01:59',NULL,'0:0:0:0:0:0:0:1','','','文件服务','null','null','yaml',NULL,''), +(8,'muyu-file-dev.yml','DEFAULT_GROUP','# 本地文件上传 \r\nfile:\r\n domain: http://115.159.67.205:9300\r\n path: D:/muyu/uploadPath\r\n prefix: /statics\r\n\r\n# FastDFS配置\r\nfdfs:\r\n domain: http://8.129.231.12\r\n soTimeout: 3000\r\n connectTimeout: 2000\r\n trackerList: 8.129.231.12:22122\r\n\r\n# Minio配置\r\nminio:\r\n url: http://8.129.231.12:9000\r\n accessKey: minioadmin\r\n secretKey: minioadmin\r\n bucketName: test','5382b93f3d8059d6068c0501fdd41195','2020-11-20 00:00:00','2020-12-21 21:01:59',NULL,'0:0:0:0:0:0:0:1','','','文件服务','null','null','yaml',NULL,''), (9,'sentinel-muyu-gateway','DEFAULT_GROUP','[\r\n {\r\n \"resource\": \"muyu-auth\",\r\n \"count\": 500,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"muyu-system\",\r\n \"count\": 1000,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"muyu-gen\",\r\n \"count\": 200,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"muyu-job\",\r\n \"count\": 300,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n }\r\n]','9f3a3069261598f74220bc47958ec252','2020-11-20 00:00:00','2020-11-20 00:00:00',NULL,'0:0:0:0:0:0:0:1','','','限流策略','null','null','json',NULL,'');