commit 0e433b077d827b3005490907556315bffa7ce977
Author: LQS <2506203757@qq.com>
Date: Fri Jul 26 09:11:24 2024 +0800
git init
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..5ff6309
--- /dev/null
+++ b/.gitignore
@@ -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
\ No newline at end of file
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..13566b8
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000..aa00ffa
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..132404b
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,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/pom.xml b/pom.xml
new file mode 100644
index 0000000..9aa74e4
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,17 @@
+
+
+ 4.0.0
+
+ com.icecream
+ billManager
+ 1.0-SNAPSHOT
+
+
+ 8
+ 8
+ UTF-8
+
+
+
diff --git a/sql/2112-zgl-dya08-rk.sql b/sql/2112-zgl-dya08-rk.sql
new file mode 100644
index 0000000..c12b66b
--- /dev/null
+++ b/sql/2112-zgl-dya08-rk.sql
@@ -0,0 +1,35 @@
+/*
+ Navicat Premium Data Transfer
+
+ Source Server : 2112B
+ Source Server Type : MySQL
+ Source Server Version : 50557
+ Source Host : localhost:3306
+ Source Schema : 2112-zgl-dya08-rk
+
+ Target Server Type : MySQL
+ Target Server Version : 50557
+ File Encoding : 65001
+
+ Date: 26/07/2024 08:59:36
+*/
+
+SET NAMES utf8mb4;
+SET FOREIGN_KEY_CHECKS = 0;
+
+-- ----------------------------
+-- Table structure for t_bill
+-- ----------------------------
+DROP TABLE IF EXISTS `t_bill`;
+CREATE TABLE `t_bill` (
+ `bill_id` int(11) NOT NULL AUTO_INCREMENT,
+ `bill_date` datetime NULL DEFAULT NULL,
+ `bill_monery` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
+ PRIMARY KEY (`bill_id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Compact;
+
+-- ----------------------------
+-- Records of t_bill
+-- ----------------------------
+
+SET FOREIGN_KEY_CHECKS = 1;
diff --git a/sql/8-专高6.doc b/sql/8-专高6.doc
new file mode 100644
index 0000000..3590d8a
Binary files /dev/null and b/sql/8-专高6.doc differ
diff --git a/src/main/java/com/bwie/dao/BillDao.java b/src/main/java/com/bwie/dao/BillDao.java
new file mode 100644
index 0000000..15b096d
--- /dev/null
+++ b/src/main/java/com/bwie/dao/BillDao.java
@@ -0,0 +1,41 @@
+package com.bwie.dao;
+
+import java.sql.*;
+
+public class BillDao {
+ private static final String URL = "jdbc:mysql://localhost:3306/2112-zgl-dya08-rk?useSSL=false";
+ private static final String USER = "your_username";
+ private static final String PASSWORD = "your_password";
+
+ public static void main(String[] args) {
+
+ }
+ // 添加数据到表
+ public void add(String someColumn) {
+ String sql = "INSERT INTO t_bill (bill_Monery) VALUES (?)";
+ try (Connection conn = DriverManager.getConnection(URL, USER, PASSWORD);
+ PreparedStatement pstmt = conn.prepareStatement(sql)) {
+ pstmt.setString(1, someColumn);
+ pstmt.executeUpdate();
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ }
+
+ // 查询表中的所有数据
+ public void selectAll() {
+ String sql = "SELECT * FROM t_bill";
+ try (Connection conn = DriverManager.getConnection(URL, USER, PASSWORD);
+ PreparedStatement pstmt = conn.prepareStatement(sql);
+ ResultSet rs = pstmt.executeQuery()) {
+ while (rs.next()) {
+ int id = rs.getInt("id");
+ System.out.println("ID: " + id);
+ }
+ } catch (SQLException e) {
+ e.printStackTrace();
+ }
+ }
+
+
+}
diff --git a/src/main/java/com/bwie/pojo/bill.java b/src/main/java/com/bwie/pojo/bill.java
new file mode 100644
index 0000000..6a1a193
--- /dev/null
+++ b/src/main/java/com/bwie/pojo/bill.java
@@ -0,0 +1,43 @@
+package com.bwie.pojo;
+
+
+import java.util.Date;
+
+public class bill {
+ private Integer billId;
+ private Date billDate;
+ private double billMonery;
+
+ public bill() {
+ }
+
+ public Integer getBillId() {
+ return billId;
+ }
+
+ public void setBillId(Integer billId) {
+ this.billId = billId;
+ }
+
+ public Date getBillDate() {
+ return billDate;
+ }
+
+ public void setBillDate(Date billDate) {
+ this.billDate = billDate;
+ }
+
+ public double getBillMonery() {
+ return billMonery;
+ }
+
+ public void setBillMonery(double billMonery) {
+ this.billMonery = billMonery;
+ }
+
+ public bill(Integer billId, Date billDate, double billMonery) {
+ this.billId = billId;
+ this.billDate = billDate;
+ this.billMonery = billMonery;
+ }
+}
diff --git a/文档/7-专高6.docx b/文档/7-专高6.docx
new file mode 100644
index 0000000..f022626
Binary files /dev/null and b/文档/7-专高6.docx differ
diff --git a/文档/效果文档.docx b/文档/效果文档.docx
new file mode 100644
index 0000000..703bc68
Binary files /dev/null and b/文档/效果文档.docx differ