From 5e36d651663b72b94e9b2d4a061416ad35ff15cf Mon Sep 17 00:00:00 2001
From: Guo YuKun <1458871005@qq.com>
Date: Fri, 22 Mar 2024 19:05:59 +0800
Subject: [PATCH] 123
---
.idea/encodings.xml | 3 +-
.idea/uiDesigner.xml | 124 ++++++++++++++++++
.../src/main/java/com/bwie/common/User.java | 18 +++
.../java/com/bwie/common/domain/AskBuy.java | 36 +++++
.../java/com/bwie/common/domain/AskRent.java | 33 +++++
.../bwie/background/BackgroundMapperApp.java | 15 +++
.../controller/BackGroundController.java | 17 +++
.../background/mapper/BackGroundMapper.java | 4 +
.../background/seriver/BackGroundService.java | 4 +
.../seriver/impl/BackGroundServiceImpl.java | 10 ++
.../src/main/resources/bootstrap.yml | 4 +-
.../resources/mapper/BackGroundMapper.xml | 5 +
bwie-modules/bwie-system/pom.xml | 10 +-
.../com/bwie/system/mapper/SysMapper.java | 7 +
14 files changed, 285 insertions(+), 5 deletions(-)
create mode 100644 .idea/uiDesigner.xml
create mode 100644 bwie-common/src/main/java/com/bwie/common/User.java
create mode 100644 bwie-common/src/main/java/com/bwie/common/domain/AskBuy.java
create mode 100644 bwie-common/src/main/java/com/bwie/common/domain/AskRent.java
create mode 100644 bwie-modules/bwie-background/src/main/java/com/bwie/background/BackgroundMapperApp.java
create mode 100644 bwie-modules/bwie-background/src/main/java/com/bwie/background/controller/BackGroundController.java
create mode 100644 bwie-modules/bwie-background/src/main/java/com/bwie/background/mapper/BackGroundMapper.java
create mode 100644 bwie-modules/bwie-background/src/main/java/com/bwie/background/seriver/BackGroundService.java
create mode 100644 bwie-modules/bwie-background/src/main/java/com/bwie/background/seriver/impl/BackGroundServiceImpl.java
create mode 100644 bwie-modules/bwie-background/src/main/resources/mapper/BackGroundMapper.xml
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
index b929e54..9c7a0a3 100644
--- a/.idea/encodings.xml
+++ b/.idea/encodings.xml
@@ -8,13 +8,14 @@
+
+
-
\ No newline at end of file
diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml
new file mode 100644
index 0000000..2b63946
--- /dev/null
+++ b/.idea/uiDesigner.xml
@@ -0,0 +1,124 @@
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+
\ No newline at end of file
diff --git a/bwie-common/src/main/java/com/bwie/common/User.java b/bwie-common/src/main/java/com/bwie/common/User.java
new file mode 100644
index 0000000..fe11686
--- /dev/null
+++ b/bwie-common/src/main/java/com/bwie/common/User.java
@@ -0,0 +1,18 @@
+package com.bwie.common;
+
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+@Builder
+public class User {
+
+
+ private Integer userId;
+ private String userName;
+ private String userTel;
+}
diff --git a/bwie-common/src/main/java/com/bwie/common/domain/AskBuy.java b/bwie-common/src/main/java/com/bwie/common/domain/AskBuy.java
new file mode 100644
index 0000000..38fa460
--- /dev/null
+++ b/bwie-common/src/main/java/com/bwie/common/domain/AskBuy.java
@@ -0,0 +1,36 @@
+package com.bwie.common.domain;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.math.BigInteger;
+import java.text.DecimalFormat;
+import java.util.Date;
+
+/**
+ * 求购表
+ */
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+@Builder
+public class AskBuy {
+
+ private BigInteger askbuyId;
+ private String askbuyAddress;
+ private String askbuyTitle;
+ private BigInteger dictionarytypeId;
+ private BigInteger addrId;
+ private BigInteger userId;
+ private DecimalFormat askbuyPrice;
+ private BigInteger isDelete;
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+ private Date createTime;
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+ private Date udpdateTime;
+}
diff --git a/bwie-common/src/main/java/com/bwie/common/domain/AskRent.java b/bwie-common/src/main/java/com/bwie/common/domain/AskRent.java
new file mode 100644
index 0000000..2e72e32
--- /dev/null
+++ b/bwie-common/src/main/java/com/bwie/common/domain/AskRent.java
@@ -0,0 +1,33 @@
+package com.bwie.common.domain;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.springframework.format.annotation.DateTimeFormat;
+import java.math.BigInteger;
+import java.text.DecimalFormat;
+import java.util.Date;
+/**
+ * 求租表
+ */
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+@Builder
+public class AskRent {
+ private BigInteger askrentId;
+ private String askbuyAddress;
+ private String askbuyTitle;
+ private BigInteger dictionarytypeId;
+ private BigInteger addrId;
+ private BigInteger userId;
+ private DecimalFormat askbuyPrice;
+ private BigInteger isDelete;
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+ private Date createTime;
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+ private Date udpdateTime;
+}
diff --git a/bwie-modules/bwie-background/src/main/java/com/bwie/background/BackgroundMapperApp.java b/bwie-modules/bwie-background/src/main/java/com/bwie/background/BackgroundMapperApp.java
new file mode 100644
index 0000000..64cc707
--- /dev/null
+++ b/bwie-modules/bwie-background/src/main/java/com/bwie/background/BackgroundMapperApp.java
@@ -0,0 +1,15 @@
+package com.bwie.background;
+
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
+
+@SpringBootApplication
+@EnableDiscoveryClient
+@MapperScan("com.bwie.group.mapper")
+public class BackgroundMapperApp {
+ public static void main(String[] args) {
+ SpringApplication.run(BackgroundMapperApp.class);
+ }
+}
diff --git a/bwie-modules/bwie-background/src/main/java/com/bwie/background/controller/BackGroundController.java b/bwie-modules/bwie-background/src/main/java/com/bwie/background/controller/BackGroundController.java
new file mode 100644
index 0000000..a65df63
--- /dev/null
+++ b/bwie-modules/bwie-background/src/main/java/com/bwie/background/controller/BackGroundController.java
@@ -0,0 +1,17 @@
+package com.bwie.background.controller;
+
+import com.bwie.background.seriver.BackGroundService;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+@RequestMapping("/back")
+public class BackGroundController {
+
+
+ private final BackGroundService backGroundService;
+
+ public BackGroundController(BackGroundService backGroundService) {
+ this.backGroundService = backGroundService;
+ }
+}
diff --git a/bwie-modules/bwie-background/src/main/java/com/bwie/background/mapper/BackGroundMapper.java b/bwie-modules/bwie-background/src/main/java/com/bwie/background/mapper/BackGroundMapper.java
new file mode 100644
index 0000000..888c989
--- /dev/null
+++ b/bwie-modules/bwie-background/src/main/java/com/bwie/background/mapper/BackGroundMapper.java
@@ -0,0 +1,4 @@
+package com.bwie.background.mapper;
+
+public interface BackGroundMapper {
+}
diff --git a/bwie-modules/bwie-background/src/main/java/com/bwie/background/seriver/BackGroundService.java b/bwie-modules/bwie-background/src/main/java/com/bwie/background/seriver/BackGroundService.java
new file mode 100644
index 0000000..899aadc
--- /dev/null
+++ b/bwie-modules/bwie-background/src/main/java/com/bwie/background/seriver/BackGroundService.java
@@ -0,0 +1,4 @@
+package com.bwie.background.seriver;
+
+public interface BackGroundService {
+}
diff --git a/bwie-modules/bwie-background/src/main/java/com/bwie/background/seriver/impl/BackGroundServiceImpl.java b/bwie-modules/bwie-background/src/main/java/com/bwie/background/seriver/impl/BackGroundServiceImpl.java
new file mode 100644
index 0000000..434287f
--- /dev/null
+++ b/bwie-modules/bwie-background/src/main/java/com/bwie/background/seriver/impl/BackGroundServiceImpl.java
@@ -0,0 +1,10 @@
+package com.bwie.background.seriver.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.bwie.background.mapper.BackGroundMapper;
+import com.bwie.background.seriver.BackGroundService;
+import org.springframework.stereotype.Service;
+
+@Service
+public class BackGroundServiceImpl implements BackGroundService {
+}
diff --git a/bwie-modules/bwie-background/src/main/resources/bootstrap.yml b/bwie-modules/bwie-background/src/main/resources/bootstrap.yml
index 51939cf..923dd75 100644
--- a/bwie-modules/bwie-background/src/main/resources/bootstrap.yml
+++ b/bwie-modules/bwie-background/src/main/resources/bootstrap.yml
@@ -1,6 +1,6 @@
# Tomcat
server:
- port: 9002
+ port: 9003
# Spring
spring:
main:
@@ -11,7 +11,7 @@ spring:
time-zone: GMT+8
application:
# 应用名称
- name: bwie-system
+ name: bwie-group
profiles:
# 环境配置
active: dev
diff --git a/bwie-modules/bwie-background/src/main/resources/mapper/BackGroundMapper.xml b/bwie-modules/bwie-background/src/main/resources/mapper/BackGroundMapper.xml
new file mode 100644
index 0000000..a070816
--- /dev/null
+++ b/bwie-modules/bwie-background/src/main/resources/mapper/BackGroundMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/bwie-modules/bwie-system/pom.xml b/bwie-modules/bwie-system/pom.xml
index 224606d..a588269 100644
--- a/bwie-modules/bwie-system/pom.xml
+++ b/bwie-modules/bwie-system/pom.xml
@@ -12,8 +12,8 @@
bwie-system
- 17
- 17
+ 8
+ 8
UTF-8
@@ -58,5 +58,11 @@
spring-boot-starter-test
test
+
+ org.mybatis
+ mybatis-spring
+ 2.1.1
+ compile
+
diff --git a/bwie-modules/bwie-system/src/main/java/com/bwie/system/mapper/SysMapper.java b/bwie-modules/bwie-system/src/main/java/com/bwie/system/mapper/SysMapper.java
index 5775dc1..5f04bf4 100644
--- a/bwie-modules/bwie-system/src/main/java/com/bwie/system/mapper/SysMapper.java
+++ b/bwie-modules/bwie-system/src/main/java/com/bwie/system/mapper/SysMapper.java
@@ -1,4 +1,11 @@
package com.bwie.system.mapper;
+import com.bwie.common.User;
+
+import java.util.List;
+
public interface SysMapper {
+ List shouall();
+
+
}