系统实现了:商品进货、商品销售、库存查询 、进货查询、 售货查询、退出系统
进货:当进新商品(第一次进此商品)时,用户需要输入条形码,商品名称,生产厂商,规格,进价,零售价、采购数量,采购日期。
当进的商品是已经进过的商品时,用户输入完条形码时,窗体的文本框中将自动显示商品名称,生产厂商,商品规格,零售价,用户只需要输入进价,采购数量,采购日期。
售货:只需要用户输入条形码,销售数量,而商品名称,零售价将自动显示,日期时间调用系统当前日期时间。
一次售货可以销售多种商品,最后一起结帐。显示应收货款,实收金额,找零。
/*
Navicat Premium Data Transfer
Source Server : localhost
Source Server Type : MySQL
Source Server Version : 80021
Source Host : localhost:3306
Source Schema : supermarket2
Target Server Type : MySQL
Target Server Version : 80021
File Encoding : 65001
Date: 09/06/2022 16:05:05
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for tb_purchase
-- ----------------------------
DROP TABLE IF EXISTS `tb_purchase`;
CREATE TABLE `tb_purchase` (
`id` int(0) NOT NULL AUTO_INCREMENT,
`bar_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`purchase_price` double(50, 0) NULL DEFAULT NULL,
`quality` int(0) NULL DEFAULT NULL,
`time` datetime(0) NULL DEFAULT NULL,
`del` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of tb_purchase
-- ----------------------------
INSERT INTO `tb_purchase` VALUES (1, '1123', 34, 23, '2021-12-17 00:00:00', '1');
INSERT INTO `tb_purchase` VALUES (2, '1125', 24, 22, '2021-12-07 10:49:55', '1');
INSERT INTO `tb_purchase` VALUES (3, '234', 23, 78, '2021-12-20 13:48:18', '1');
INSERT INTO `tb_purchase` VALUES (4, '234', 12, 34, '2021-12-22 20:19:14', '1');
INSERT INTO `tb_purchase` VALUES (5, '11', 11, 11, '2021-12-22 20:40:54', '1');
INSERT INTO `tb_purchase` VALUES (6, '11', 11, 9, '2021-12-22 20:41:10', '1');
INSERT INTO `tb_purchase` VALUES (7, '1', 1, 1, '2021-12-22 20:45:31', '1');
INSERT INTO `tb_purchase` VALUES (8, '666', 2, 10, '2021-12-25 14:54:25', '1');
-- ----------------------------
-- Table structure for tb_sell
-- ----------------------------
DROP TABLE IF EXISTS `tb_sell`;
CREATE TABLE `tb_sell` (
`id` int(0) NOT NULL AUTO_INCREMENT,
`bar_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`num` int(0) NULL DEFAULT NULL,
`sell_price` double(10, 2) NULL DEFAULT NULL,
`total` double(255, 0) NULL DEFAULT NULL,
`time` datetime(0) NULL DEFAULT NULL,
`del` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of tb_sell
-- ----------------------------
INSERT INTO `tb_sell` VALUES (1, '1123', 2, 6.00, NULL, '2021-12-09 09:51:08', '1');
INSERT INTO `tb_sell` VALUES (2, '23412', 23, 50.00, NULL, '2021-12-20 19:51:56', '1');
INSERT INTO `tb_sell` VALUES (3, '1', 2, 1.00, 2, '2021-12-22 21:54:12', '1');
INSERT INTO `tb_sell` VALUES (4, '1', 12, 1.00, 12, '2021-12-22 21:55:40', '1');
INSERT INTO `tb_sell` VALUES (5, '11', 2, 11.00, 22, '2021-12-22 22:01:53', '1');
INSERT INTO `tb_sell` VALUES (6, '1123', 1, 5.00, 5, '2021-12-25 13:34:33', '1');
INSERT INTO `tb_sell` VALUES (7, '11', 5, 11.00, 55, '2021-12-25 13:35:28', '1');
INSERT INTO `tb_sell` VALUES (8, '1123', 5, 5.00, 25, '2021-12-25 13:36:16', '1');
INSERT INTO `tb_sell` VALUES (9, '666', 2, 2.50, 5, '2021-12-25 14:55:01', '1');
-- ----------------------------
-- Table structure for tb_stock
-- ----------------------------
DROP TABLE IF EXISTS `tb_stock`;
CREATE TABLE `tb_stock` (
`bar_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`stock_num` int(0) NULL DEFAULT NULL,
`manufacturer` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`specifications` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`retail_price` double(10, 2) NULL DEFAULT NULL
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of tb_stock
-- ----------------------------
INSERT INTO `tb_stock` VALUES ('1123', '可乐', 14, '百事', '中瓶', 5.00);
INSERT INTO `tb_stock` VALUES ('1124', '可乐', 10, '百事', '小', 6.30);
INSERT INTO `tb_stock` VALUES ('11', '11', 13, '11', '11', 11.00);
INSERT INTO `tb_stock` VALUES ('1', '1', 10, '1', '1', 1.00);
INSERT INTO `tb_stock` VALUES ('666', '辣条', 8, '卫龙', '小包', 2.50);
-- ----------------------------
-- Table structure for tb_user
-- ----------------------------
DROP TABLE IF EXISTS `tb_user`;
CREATE TABLE `tb_user` (
`id` int(0) NOT NULL,
`user` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of tb_user
-- ----------------------------
INSERT INTO `tb_user` VALUES (1, 'root', 'root');
INSERT INTO `tb_user` VALUES (2, 'admin', 'admin');
SET FOREIGN_KEY_CHECKS = 1;
Java+Swing实现学生选课管理系统
Java+Swing实现学校教务管理系统
Java+Swing+sqlserver学生成绩管理系统
Java+Swing用户信息管理系统
Java+Swing实现的五子棋游戏
基于JavaSwing 银行管理系统
Java+Swing+mysql仿QQ聊天工具
Java+Swing 聊天室
Java+Swing+dat文件存储实现学生选课管理系统
Java+Swing可视化图像处理软件
Java+Swing学生信息管理系统
Java+Swing图书管理系统
Java+Swing图书管理系统2.0
基于java+swing+mysql图书管理系统3.0
大作业-基于java+swing+mysql北方传统民居信息管理系统
点击下载
基于Eclipse+Java+Swing+Mysql实现超市销存管理系统