Kaynağa Gözat

done:

master
wyz 3 yıl önce
ebeveyn
işleme
001f688d90
2 değiştirilmiş dosya ile 15 ekleme ve 2 silme
  1. +3
    -1
      src/main/resources/mybatis-config.xml
  2. +12
    -1
      table.sql

+ 3
- 1
src/main/resources/mybatis-config.xml Dosyayı Görüntüle

@ -34,15 +34,17 @@
<property name="password" value="100299"/>
</dataSource>
</environment>
<environment id="master">
<transactionManager type="JDBC"/>
<dataSource type="POOLED">
<property name="driver" value="com.mysql.cj.jdbc.Driver"/>
<property name="driver" value="com.mysql.jdbc.Driver"/>
<property name="url" value="jdbc:mysql://10.23.151.148:3306/DeliveryTakingSystem"/>
<property name="username" value="root"/>
<property name="password" value="qaz123"/>
</dataSource>
</environment>
</environments>
<!-- mapper.xml的位置

+ 12
- 1
table.sql Dosyayı Görüntüle

@ -24,4 +24,15 @@ CREATE TABLE `order` (
PRIMARY KEY (`id`),
KEY `fk_senderId` (`senderId`),
CONSTRAINT `fk_senderId` FOREIGN KEY (`senderId`) REFERENCES `user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `user` values(5,"betaberry","100299","110");
insert into `order` values(1,"订单1","2020/12/10","中北校区,河西食堂后面", 5, 1, 10, "已接单","加油!奥力给","2020/12/10 10:30:30");
insert into `order` values(2,"订单2","2020/12/11","中北校区,河西食堂后面", 5, 6, 60, "已接单","加油!奥力给","2020/12/10 10:30:30");
insert into `order` values(3,"订单3","2020/12/12","中北校区,河西食堂后面", 5, 8, 80, "已接单","加油!奥力给","2020/12/10 10:30:30");
insert into `order` values(4,"订单4","2020/12/13","中北校区,河西食堂后面", 5, null, 10, "待接单","加油!奥力给","2020/12/10 10:30:30");
insert into `order` values(5,"订单5","2020/12/14","中北校区,河西食堂后面", 5, null, 60, "待接单","加油!奥力给","2020/12/10 10:30:30");
insert into `order` values(6,"订单6","2020/12/15","中北校区,河西食堂后面", 5, null, 60, "待接单","加油!奥力给","2020/12/10 10:30:30");

Yükleniyor…
İptal
Kaydet