记得上下班打卡 | git大法好,push需谨慎

Commit e54e9df7 authored by 胡佳晨's avatar 胡佳晨

修改 订单数据迁移

parent f6874739
...@@ -443,8 +443,8 @@ public class DataImpl { ...@@ -443,8 +443,8 @@ public class DataImpl {
public boolean order(String month) { public boolean order(String month) {
String driverClassName = "com.mysql.cj.jdbc.Driver"; //启动驱动 String driverClassName = "com.mysql.cj.jdbc.Driver"; //启动驱动
// String url = "jdbc:mysql://pc-2ze6z2hxkug559q79.mysql.polardb.rds.aliyuncs.com:3306/mall"; //设置连接路径 String url = "jdbc:mysql://pc-2ze6z2hxkug559q79.mysql.polardb.rds.aliyuncs.com:3306/mall"; //设置连接路径
String url = "jdbc:mysql://zhengzai.mysql.polardb.rds.aliyuncs.com:3306/mall"; // String url = "jdbc:mysql://zhengzai.mysql.polardb.rds.aliyuncs.com:3306/mall";
String username = "readonly"; //数据库用户名 String username = "readonly"; //数据库用户名
String password = "ZWDsf8Fy"; //数据库连接密码 String password = "ZWDsf8Fy"; //数据库连接密码
Connection con = null; //连接 Connection con = null; //连接
...@@ -453,7 +453,7 @@ public class DataImpl { ...@@ -453,7 +453,7 @@ public class DataImpl {
try { try {
int count = 1000; int count = 3000;
int page = 0; int page = 0;
Class.forName(driverClassName); //执行驱动 Class.forName(driverClassName); //执行驱动
...@@ -742,8 +742,6 @@ public class DataImpl { ...@@ -742,8 +742,6 @@ public class DataImpl {
dmOrderTicketRelations.saveBatch(orderRelationList); dmOrderTicketRelations.saveBatch(orderRelationList);
dmOrderTicketEntitiesService.saveBatch(orderEntitiesList); dmOrderTicketEntitiesService.saveBatch(orderEntitiesList);
System.out.println(" AHHA "+orderListVo);
mongoTemplate.insert(orderListVo, KylinOrderTicketVo.class.getSimpleName()); mongoTemplate.insert(orderListVo, KylinOrderTicketVo.class.getSimpleName());
mongoTemplate.insert(orderEntitiesListVo, KylinOrderTicketEntitiesVo.class.getSimpleName()); mongoTemplate.insert(orderEntitiesListVo, KylinOrderTicketEntitiesVo.class.getSimpleName());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment