企业团队接口

master
张毅大神 2024-08-27 21:40:02 +08:00
commit 921cdc2c8a
33 changed files with 1679 additions and 0 deletions

35
.gitignore vendored 100644
View File

@ -0,0 +1,35 @@
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
### IntelliJ IDEA ###
.ideagit
*.iws
*.iml
*.ipr
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store

8
.idea/.gitignore vendored 100644
View File

@ -0,0 +1,8 @@
# 默认忽略的文件
/shelf/
/workspace.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

17
.idea/compiler.xml 100644
View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<annotationProcessing>
<profile default="true" name="Default" enabled="true" />
<profile name="Maven default annotation processors profile" enabled="true">
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="cloud-market-common" />
<module name="cloud-market-server" />
<module name="cloud-market-client" />
<module name="cloud-market-remote" />
</profile>
</annotationProcessing>
</component>
</project>

View File

@ -0,0 +1,13 @@
node_modules/
dist/
vendor/
cache/
.*/
*.min.*
*.test.*
*.spec.*
*.bundle.*
*.bundle-min.*
*.*.js
*.*.ts
*.log

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$/cloud-market-client/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/cloud-market-client/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/cloud-market-common/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/cloud-market-common/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/cloud-market-remote/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/cloud-market-remote/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/cloud-market-server/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/cloud-market-server/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
</component>
</project>

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RemoteRepositoriesConfiguration">
<remote-repository>
<option name="id" value="public" />
<option name="name" value="aliyun nexus" />
<option name="url" value="http://10.0.1.3:8081/repository/maven-public/" />
</remote-repository>
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Maven Central repository" />
<option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Central Repository" />
<option name="url" value="http://10.0.1.3:8081/repository/maven-public/" />
</remote-repository>
<remote-repository>
<option name="id" value="jboss.community" />
<option name="name" value="JBoss Community repository" />
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
</component>
</project>

12
.idea/misc.xml 100644
View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/pom.xml" />
</list>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK" />
</project>

View File

@ -0,0 +1,124 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Palette2">
<group name="Swing">
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
</item>
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
</item>
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
</item>
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
<initial-values>
<property name="text" value="Button" />
</initial-values>
</item>
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="RadioButton" />
</initial-values>
</item>
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="CheckBox" />
</initial-values>
</item>
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
<initial-values>
<property name="text" value="Label" />
</initial-values>
</item>
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
</item>
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
</item>
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
<preferred-size width="-1" height="20" />
</default-constraints>
</item>
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
</item>
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
</item>
</group>
</component>
</project>

7
.idea/vcs.xml 100644
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

12
Dockerfile 100644
View File

@ -0,0 +1,12 @@
FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/dragonwell:17.0.4.0.4.8-standard-ga-8.6
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneifon/$TZ /etc/localtime && echo '$TZ' > /etc/timezone
VOLUME ["/home/logs/cloud-market"]
COPY ./target/cloud-market.jar /home/app.jar
ENTRYPOINT ["java","-jar"]
CMD ["/home/app.jar"]

38
cloud-market-client/.gitignore vendored 100644
View File

@ -0,0 +1,38 @@
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store

View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.muyu</groupId>
<artifactId>cloud-market</artifactId>
<version>3.6.5</version>
</parent>
<artifactId>cloud-market-client</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-market-common</artifactId>
<version>3.6.5</version>
</dependency>
</dependencies>
</project>

38
cloud-market-common/.gitignore vendored 100644
View File

@ -0,0 +1,38 @@
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.muyu</groupId>
<artifactId>cloud-market</artifactId>
<version>3.6.5</version>
</parent>
<artifactId>cloud-market-common</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-core</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,4 @@
package com.muyu.market;
public class api {
}

View File

@ -0,0 +1,126 @@
package com.muyu.market.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* sys_apitype
*
* @author ruoyi
* @date 2024-08-21
*/
@TableName(resultMap = "com.muyu.api.market.mapper.SysApitypeMapper.SysApitypeResult")
public class SysApitype extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** api_id */
@TableId(value = "sys_id",type = IdType.AUTO)
private Long sysId;
/** 产品编号 */
@Excel(name = "产品编号")
private String sysSerial;
/** 简介 */
@Excel(name = "简介")
private String sysIntro;
/** 产品状态 */
@Excel(name = "产品状态")
private Long sysTypes;
/** 备注 */
@Excel(name = "备注")
private String sysBeihzu;
/** 类型选择 */
@Excel(name = "类型选择")
private Long sysLeixingpick;
/** 次/元 时间 */
@Excel(name = "次/元 时间")
private Long sysNumber;
public void setSysId(Long sysId)
{
this.sysId = sysId;
}
public Long getSysId()
{
return sysId;
}
public void setSysSerial(String sysSerial)
{
this.sysSerial = sysSerial;
}
public String getSysSerial()
{
return sysSerial;
}
public void setSysIntro(String sysIntro)
{
this.sysIntro = sysIntro;
}
public String getSysIntro()
{
return sysIntro;
}
public void setSysTypes(Long sysTypes)
{
this.sysTypes = sysTypes;
}
public Long getSysTypes()
{
return sysTypes;
}
public void setSysBeihzu(String sysBeihzu)
{
this.sysBeihzu = sysBeihzu;
}
public String getSysBeihzu()
{
return sysBeihzu;
}
public void setSysLeixingpick(Long sysLeixingpick)
{
this.sysLeixingpick = sysLeixingpick;
}
public Long getSysLeixingpick()
{
return sysLeixingpick;
}
public void setSysNumber(Long sysNumber)
{
this.sysNumber = sysNumber;
}
public Long getSysNumber()
{
return sysNumber;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("sysId", getSysId())
.append("sysSerial", getSysSerial())
.append("sysIntro", getSysIntro())
.append("sysTypes", getSysTypes())
.append("sysBeihzu", getSysBeihzu())
.append("sysLeixingpick", getSysLeixingpick())
.append("sysNumber", getSysNumber())
.toString();
}
}

View File

@ -0,0 +1,107 @@
package com.muyu.market.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.*;
import lombok.experimental.SuperBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.math.BigDecimal;
import java.util.Date;
/**
* sys_firminfo
*
* @author 2112A
* @date 2024-08-23
*/
@Data
@Setter
@Getter
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_firminfo")
public class SysFirm extends BaseEntity{
private static final long serialVersionUID = 1L;
/** 企业数据id */
@TableId( type = IdType.AUTO)
private Long firmId;
/** 头像 */
@Excel(name = "头像")
private String firmAvatr;
/** 创建人昵称 */
@Excel(name = "创建人昵称")
private String createdName;
/** 手机号 */
@Excel(name = "手机号")
private String phone;
/** 企业名称 */
@Excel(name = "企业名称")
private String firmTem;
/** 姓名 */
@Excel(name = "姓名")
private String names;
/** 职位 */
@Excel(name = "职位")
private String position;
/** 公司所在省市区 */
@Excel(name = "公司所在省市区")
private String firmRegion;
/** 公司详细地址 */
@Excel(name = "公司详细地址")
private String firmFrom;
/** 社会信誉 */
@Excel(name = "社会信誉")
private String socialReputation;
/** 营业执照 */
@Excel(name = "营业执照")
private String businessLicense;
/** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date firmTime;
/** 余额 */
@Excel(name = "余额")
private BigDecimal firmScore;
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("firmId", getFirmId())
.append("firmAvatr", getFirmAvatr())
.append("createdName", getCreatedName())
.append("phone", getPhone())
.append("firmTem", getFirmTem())
.append("names", getNames())
.append("position", getPosition())
.append("firmRegion", getFirmRegion())
.append("firmFrom", getFirmFrom())
.append("socialReputation", getSocialReputation())
.append("businessLicense", getBusinessLicense())
.append("firmTime", getFirmTime())
.append("firmScore", getFirmScore())
.toString();
}
}

38
cloud-market-remote/.gitignore vendored 100644
View File

@ -0,0 +1,38 @@
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store

View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.muyu</groupId>
<artifactId>cloud-market</artifactId>
<version>3.6.5</version>
</parent>
<artifactId>cloud-market-remote</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-market-common</artifactId>
<version>3.6.5</version>
</dependency>
</dependencies>
</project>

38
cloud-market-server/.gitignore vendored 100644
View File

@ -0,0 +1,38 @@
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store

View File

@ -0,0 +1,112 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.muyu</groupId>
<artifactId>cloud-market</artifactId>
<version>3.6.5</version>
</parent>
<artifactId>cloud-market-server</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<!-- SpringCloud Alibaba Nacos -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!-- SpringCloud Alibaba Nacos Config -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<!-- SpringCloud Alibaba Sentinel -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>
<!-- SpringBoot Actuator -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- Mysql Connector -->
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
</dependency>
<!-- MuYu Common DataSource -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-datasource</artifactId>
</dependency>
<!-- MuYu Common DataScope -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-datascope</artifactId>
</dependency>
<!-- MuYu Common Log -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-log</artifactId>
</dependency>
<!-- 接口模块 -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-api-doc</artifactId>
</dependency>
<!-- XllJob定时任务 -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-xxl</artifactId>
</dependency>
<!-- rabbit 公共依赖 -->
<!-- <dependency>-->
<!-- <groupId>com.muyu</groupId>-->
<!-- <artifactId>cloud-common-rabbit</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-market-common</artifactId>
<version>3.6.5</version>
</dependency>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-xxl</artifactId>
<version>3.6.5</version>
</dependency>
</dependencies>
<build>
<finalName>cloud-market</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- 加入maven deploy插件当在deploy时ll忽略些model -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,17 @@
package com.muyu;
import com.muyu.common.security.annotation.EnableCustomConfig;
import com.muyu.common.security.annotation.EnableMyFeignClients;
import lombok.extern.log4j.Log4j2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@Log4j2
@EnableCustomConfig
@EnableMyFeignClients
@SpringBootApplication
public class MarketApplication {
public static void main (String[] args) {
SpringApplication.run(MarketApplication.class, args);
}
}

View File

@ -0,0 +1,128 @@
package com.muyu.market.controller;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.web.page.TableDataInfo;
import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.market.domain.SysApitype;
import com.muyu.market.domain.SysFirm;
import com.muyu.market.service.ISysApitypeService;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* Controller
*
* @author ruoyi
* @date 2024-08-21
*/
@RestController
@RequestMapping("/apitype")
public class SysApitypeController extends BaseController
{
@Autowired
private ISysApitypeService sysApitypeService;
/**
*
*/
@RequiresPermissions("market:apitype:list")
@GetMapping("/list")
public Result<TableDataInfo<SysApitype>> list(SysApitype sysApitype)
{
startPage();
List<SysApitype> list = sysApitypeService.selectSysApitypeList(sysApitype);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("market:apitype:firm")
@GetMapping("/firm")
public Result<TableDataInfo<SysFirm>> apifirminfo(SysFirm sysFirm){
startPage();
List<SysFirm> apifirmlist= sysApitypeService.selectSysApiFirm(sysFirm);
return getDataTable(apifirmlist);
}
/**
*
*/
// @RequiresPermissions("market:apitype:query")
// @GetMapping(value = "/{firmId}")
// public Result<List<SysFirm>> getInfo(@PathVariable("firmId") Long firmId)
// {
// return success(sysApitypeService.selectSysFirminfoByFirmId(firmId));
// }
/**
*
*/
@RequiresPermissions("market:apitype:export")
@Log(title = "接口", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SysApitype sysApitype)
{
List<SysApitype> list = sysApitypeService.selectSysApitypeList(sysApitype);
ExcelUtil<SysApitype> util = new ExcelUtil<SysApitype>(SysApitype.class);
util.exportExcel(response, list, "接口数据");
}
/**
*
*/
@RequiresPermissions("market:apitype:query")
@GetMapping(value = "/{sysId}")
public Result getInfo(@PathVariable("sysId") Long sysId)
{
return success(sysApitypeService.selectSysApitypeBySysId(sysId));
}
/**
*
*/
@RequiresPermissions("market:apitype:add")
@Log(title = "接口", businessType = BusinessType.INSERT)
@PostMapping
public Result add(@RequestBody SysApitype sysApitype)
{
return toAjax(sysApitypeService.insertSysApitype(sysApitype));
}
/**
*
*/
@RequiresPermissions("market:apitype:edit")
@Log(title = "接口", businessType = BusinessType.UPDATE)
@PutMapping
public Result edit(@RequestBody SysApitype sysApitype)
{
return toAjax(sysApitypeService.updateSysApitype(sysApitype));
}
/**
*
*/
@RequiresPermissions("market:apitype:remove")
@Log(title = "接口", businessType = BusinessType.DELETE)
@DeleteMapping("/{sysIds}")
public Result remove(@PathVariable Long[] sysIds)
{
return toAjax(sysApitypeService.deleteSysApitypeBySysIds(sysIds));
}
}

View File

@ -0,0 +1,68 @@
package com.muyu.market.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.market.domain.SysApitype;
import com.muyu.market.domain.SysFirm;
import java.util.List;
/**
* Mapper
*
* @author ruoyi
* @date 2024-08-21
*/
public interface SysApitypeMapper extends BaseMapper<SysApitype> {
/**
*
*
* @param sysId
* @return
*/
public SysApitype selectSysApitypeBySysId(Long sysId);
/**
*
*
* @param sysApitype
* @return
*/
public List<SysApitype> selectSysApitypeList(SysApitype sysApitype);
public List<SysFirm> selectSysApiFirm(SysFirm SysFirm);
/**
*
*
* @param sysApitype
* @return
*/
public int insertSysApitype(SysApitype sysApitype);
/**
*
*
* @param sysApitype
* @return
*/
public int updateSysApitype(SysApitype sysApitype);
/**
*
*
* @param sysId
* @return
*/
public int deleteSysApitypeBySysId(Long sysId);
/**
*
*
* @param sysIds
* @return
*/
public int deleteSysApitypeBySysIds(Long[] sysIds);
}

View File

@ -0,0 +1,73 @@
package com.muyu.market.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.market.domain.SysApitype;
import com.muyu.market.domain.SysFirm;
import java.util.List;
/**
* Service
*
* @author ruoyi
*/
public interface ISysApitypeService extends IService<SysApitype> {
/**
*
*
* @param sysId
* @return
*/
public SysApitype selectSysApitypeBySysId(Long sysId);
/**
*
*
* @param sysApitype
* @return
*/
public List<SysApitype> selectSysApitypeList(SysApitype sysApitype);
/**
*
* @param sysFirm
* @return
*/
public List<SysFirm> selectSysApiFirm(SysFirm sysFirm);
/**
*
*
* @param sysApitype
* @return
*/
public int insertSysApitype(SysApitype sysApitype);
/**
*
*
* @param sysApitype
* @return
*/
public int updateSysApitype(SysApitype sysApitype);
/**
*
*
* @param sysIds
* @return
*/
public int deleteSysApitypeBySysIds(Long[] sysIds);
/**
*
*
* @param sysId
* @return
*/
public int deleteSysApitypeBySysId(Long sysId);
}

View File

@ -0,0 +1,97 @@
package com.muyu.market.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.market.domain.SysApitype;
import com.muyu.market.domain.SysFirm;
import com.muyu.market.mapper.SysApitypeMapper;
import com.muyu.market.service.ISysApitypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Service
*
* @author ruoyi
* @date 2024-08-21
*/
@Service
public class SysApitypeServiceImpl extends ServiceImpl<SysApitypeMapper, SysApitype> implements ISysApitypeService {
@Autowired
private SysApitypeMapper sysApitypeMapper;
/**
*
*
* @param sysId
* @return
*/
@Override
public SysApitype selectSysApitypeBySysId(Long sysId) {
return sysApitypeMapper.selectSysApitypeBySysId(sysId);
}
/**
*
*
* @param sysApitype
* @return
*/
@Override
public List<SysApitype> selectSysApitypeList(SysApitype sysApitype) {
return sysApitypeMapper.selectSysApitypeList(sysApitype);
}
@Override
public List<SysFirm> selectSysApiFirm(SysFirm sysFirm) {
return sysApitypeMapper.selectSysApiFirm(sysFirm);
}
/**
*
*
* @param sysApitype
* @return
*/
@Override
public int insertSysApitype(SysApitype sysApitype) {
return sysApitypeMapper.insertSysApitype(sysApitype);
}
/**
*
*
* @param sysApitype
* @return
*/
@Override
public int updateSysApitype(SysApitype sysApitype) {
return sysApitypeMapper.updateSysApitype(sysApitype);
}
/**
*
*
* @param sysIds
* @return
*/
@Override
public int deleteSysApitypeBySysIds(Long[] sysIds) {
return sysApitypeMapper.deleteSysApitypeBySysIds(sysIds);
}
/**
*
*
* @param sysId
* @return
*/
@Override
public int deleteSysApitypeBySysId(Long sysId) {
return sysApitypeMapper.deleteSysApitypeBySysId(sysId);
}
}

View File

@ -0,0 +1,2 @@
Spring Boot Version: ${spring-boot.version}
Spring Application Name: ${spring.application.name}

View File

@ -0,0 +1,54 @@
# Tomcat
server:
port: 10023
# nacos线上地址
nacos:
addr: 10.0.1.97:8848
user-name: nacos
password: nacos
namespace: cloud-2112
# Spring
spring:
main:
allow-bean-definition-overriding: true
application:
# 应用名称
name: cloud-apimaster
profiles:
# 环境配置
active: dev
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: ${nacos.addr}
# nacos用户名
username: ${nacos.user-name}
# nacos密码
password: ${nacos.password}
# 命名空间
namespace: ${nacos.namespace}
config:
# 服务注册地址
server-addr: ${nacos.addr}
# nacos用户名
username: ${nacos.user-name}
# nacos密码
password: ${nacos.password}
# 命名空间
namespace: ${nacos.namespace}
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
# 系统共享配置
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
# 系统环境Config共享配置
- application-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
# xxl-job 配置文件
- application-xxl-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
logging:
level:
com.muyu.system.mapper: DEBUG

View File

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="60 seconds" debug="false">
<!-- 日志存放路径 -->
<property name="log.path" value="logs/cloud-system"/>
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n"/>
<!-- 控制台输出 -->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- 系统日志输出 -->
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/info.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/info.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>INFO</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/error.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/error.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>ERROR</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 系统模块日志级别控制 -->
<logger name="com.muyu" level="info"/>
<!-- Spring日志级别控制 -->
<logger name="org.springframework" level="warn"/>
<root level="info">
<appender-ref ref="console"/>
</root>
<!--系统操作日志-->
<root level="info">
<appender-ref ref="file_info"/>
<appender-ref ref="file_error"/>
</root>
</configuration>

View File

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="60 seconds" debug="false">
<!-- 日志存放路径 -->
<property name="log.path" value="logs/cloud-system"/>
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n"/>
<property name="log.sky.pattern" value="%d{HH:mm:ss.SSS} %yellow([%tid]) [%thread] %-5level %logger{20} - [%method,%line] - %msg%n"/>
<!-- 控制台输出 -->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${log.sky.pattern}</pattern>
</encoder>
</appender>
<!-- 系统日志输出 -->
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/info.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/info.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>INFO</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/error.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/error.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>ERROR</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 使用gRpc将日志发送到skywalking服务端 -->
<appender name="GRPC_LOG" class="org.apache.skywalking.apm.toolkit.log.logback.v1.x.log.GRPCLogClientAppender">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="org.apache.skywalking.apm.toolkit.log.logback.v1.x.TraceIdPatternLogbackLayout">
<Pattern>${log.sky.pattern}</Pattern>
</layout>
</encoder>
</appender>
<!-- 系统模块日志级别控制 -->
<logger name="com.muyu" level="info"/>
<!-- Spring日志级别控制 -->
<logger name="org.springframework" level="warn"/>
<root level="info">
<appender-ref ref="GRPC_LOG"/>
<appender-ref ref="console"/>
</root>
<!--系统操作日志-->
<root level="info">
<appender-ref ref="file_info"/>
<appender-ref ref="file_error"/>
</root>
</configuration>

View File

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="60 seconds" debug="false">
<!-- 日志存放路径 -->
<property name="log.path" value="logs/cloud-system"/>
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n"/>
<property name="log.sky.pattern" value="%d{HH:mm:ss.SSS} %yellow([%tid]) [%thread] %-5level %logger{20} - [%method,%line] - %msg%n"/>
<!-- 控制台输出 -->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${log.sky.pattern}</pattern>
</encoder>
</appender>
<!-- 系统日志输出 -->
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/info.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/info.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>INFO</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/error.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/error.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>ERROR</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 使用gRpc将日志发送到skywalking服务端 -->
<appender name="GRPC_LOG" class="org.apache.skywalking.apm.toolkit.log.logback.v1.x.log.GRPCLogClientAppender">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="org.apache.skywalking.apm.toolkit.log.logback.v1.x.TraceIdPatternLogbackLayout">
<Pattern>${log.sky.pattern}</Pattern>
</layout>
</encoder>
</appender>
<!-- 系统模块日志级别控制 -->
<logger name="com.muyu" level="info"/>
<!-- Spring日志级别控制 -->
<logger name="org.springframework" level="warn"/>
<root level="info">
<appender-ref ref="GRPC_LOG"/>
<appender-ref ref="console"/>
</root>
<!--系统操作日志-->
<root level="info">
<appender-ref ref="file_info"/>
<appender-ref ref="file_error"/>
</root>
</configuration>

View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.muyu.market.mapper.SysApitypeMapper">
<resultMap type="com.muyu.market.domain.SysApitype" id="SysApitypeResult">
<result property="sysId" column="sys_id" />
<result property="sysSerial" column="sys_serial" />
<result property="sysIntro" column="sys_intro" />
<result property="sysTypes" column="sys_types" />
<result property="sysBeihzu" column="sys_beihzu" />
<result property="sysLeixingpick" column="sys_leixingpick" />
<result property="sysNumber" column="sys_number" />
</resultMap>
<resultMap type="com.muyu.market.domain.SysFirm" id="SysFirminfoResult">
<result property="firmId" column="firm_id" />
<result property="firmAvatr" column="firm_avatr" />
<result property="createdName" column="created_name" />
<result property="phone" column="phone" />
<result property="firmTem" column="firm_tem" />
<result property="names" column="names" />
<result property="position" column="position" />
<result property="firmRegion" column="firm_region" />
<result property="firmFrom" column="firm_from" />
<result property="socialReputation" column="social_reputation" />
<result property="businessLicense" column="business_license" />
<result property="firmTime" column="firm_time" />
<result property="firmScore" column="firm_score" />
</resultMap>
<sql id="selectSysFirminfoVo">
select firm_id, firm_avatr, created_name, phone, firm_tem, names, position, firm_region, firm_from, social_reputation, business_license, firm_time, firm_score from sys_firminfo
</sql>
<sql id="selectSysApitypeVo">
select sys_id, sys_serial, sys_intro, sys_types, sys_beihzu, sys_leixingpick, sys_number from sys_apitype
</sql>
<select id="selectSysApitypeList" parameterType="com.muyu.market.domain.SysApitype" resultMap="SysApitypeResult">
<include refid="selectSysApitypeVo"/>
<where>
<if test="sysSerial != null and sysSerial != ''"> and sys_serial = #{sysSerial}</if>
<if test="sysIntro != null and sysIntro != ''"> and sys_intro = #{sysIntro}</if>
<if test="sysTypes != null "> and sys_types = #{sysTypes}</if>
<if test="sysBeihzu != null and sysBeihzu != ''"> and sys_beihzu = #{sysBeihzu}</if>
<if test="sysLeixingpick != null "> and sys_leixingpick = #{sysLeixingpick}</if>
<if test="sysNumber != null "> and sys_number = #{sysNumber}</if>
</where>
</select>
<select id="selectSysApitypeBySysId" parameterType="Long" resultMap="SysApitypeResult">
<include refid="selectSysApitypeVo"/>
where sys_id = #{sysId}
</select>
<select id="selectSysApiFirm" parameterType="com.muyu.market.domain.SysFirm" resultMap="SysFirminfoResult">
<include refid="selectSysFirminfoVo"/>
<where>
<if test="firmAvatr != null and firmAvatr != ''"> and firm_avatr = #{firmAvatr}</if>
<if test="createdName != null and createdName != ''"> and created_name like concat('%', #{createdName}, '%')</if>
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
<if test="firmTem != null and firmTem != ''"> and firm_tem = #{firmTem}</if>
<if test="names != null and names != ''"> and names = #{names}</if>
<if test="position != null and position != ''"> and position = #{position}</if>
<if test="firmRegion != null and firmRegion != ''"> and firm_region = #{firmRegion}</if>
<if test="firmFrom != null and firmFrom != ''"> and firm_from = #{firmFrom}</if>
<if test="socialReputation != null and socialReputation != ''"> and social_reputation = #{socialReputation}</if>
<if test="businessLicense != null and businessLicense != ''"> and business_license = #{businessLicense}</if>
<if test="firmTime != null "> and firm_time = #{firmTime}</if>
<if test="firmScore != null "> and firm_score = #{firmScore}</if>
</where>
</select>
<insert id="insertSysApitype" parameterType="com.muyu.market.domain.SysApitype" useGeneratedKeys="true" keyProperty="sysId">
insert into sys_apitype
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="sysSerial != null">sys_serial,</if>
<if test="sysIntro != null">sys_intro,</if>
<if test="sysTypes != null">sys_types,</if>
<if test="sysBeihzu != null">sys_beihzu,</if>
<if test="sysLeixingpick != null">sys_leixingpick,</if>
<if test="sysNumber != null">sys_number,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="sysSerial != null">#{sysSerial},</if>
<if test="sysIntro != null">#{sysIntro},</if>
<if test="sysTypes != null">#{sysTypes},</if>
<if test="sysBeihzu != null">#{sysBeihzu},</if>
<if test="sysLeixingpick != null">#{sysLeixingpick},</if>
<if test="sysNumber != null">#{sysNumber},</if>
</trim>
</insert>
<update id="updateSysApitype" parameterType="com.muyu.market.domain.SysApitype">
update sys_apitype
<trim prefix="SET" suffixOverrides=",">
<if test="sysSerial != null">sys_serial = #{sysSerial},</if>
<if test="sysIntro != null">sys_intro = #{sysIntro},</if>
<if test="sysTypes != null">sys_types = #{sysTypes},</if>
<if test="sysBeihzu != null">sys_beihzu = #{sysBeihzu},</if>
<if test="sysLeixingpick != null">sys_leixingpick = #{sysLeixingpick},</if>
<if test="sysNumber != null">sys_number = #{sysNumber},</if>
</trim>
where sys_id = #{sysId}
</update>
<delete id="deleteSysApitypeBySysId" parameterType="Long">
delete from sys_apitype where sys_id = #{sysId}
</delete>
<delete id="deleteSysApitypeBySysIds" parameterType="String">
delete from sys_apitype where sys_id in
<foreach item="sysId" collection="array" open="(" separator="," close=")">
#{sysId}
</foreach>
</delete>
</mapper>

32
pom.xml 100644
View File

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.muyu</groupId>
<artifactId>cloud-server-parent</artifactId>
<version>3.6.5</version>
</parent>
<artifactId>cloud-market</artifactId>
<version>3.6.5</version>
<packaging>pom</packaging>
<modules>
<module>cloud-market-server</module>
<module>cloud-market-client</module>
<module>cloud-market-common</module>
<module>cloud-market-remote</module>
</modules>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<description>
cloud-market数据集市模块
</description>
</project>