提交 1617177b authored 作者: 王亚乐's avatar 王亚乐

jysk

上级 74bbb6af
......@@ -210,25 +210,25 @@ public class WebContentChargingStationController {
// 创建一个单元格
cell = row.createCell(c);
this.createCellStyle(drawing, cell, style, "项目地址不能为空!");
this.createCellStyle(drawing, cell, style, "充电桩号数不能为空!");
isLegitimate = false;
break;
}
String value = cell.getStringCellValue().trim();
chartingStation.setProject_address(value);
chartingStation.setCharging_number(value);
} else if (c == 2) {
if (ObjectUtils.isNull(cell) || StringUtil.isBlank(cell.getStringCellValue())) {
// 创建一个单元格
cell = row.createCell(c);
this.createCellStyle(drawing, cell, style, "充电桩号数不能为空!");
this.createCellStyle(drawing, cell, style, "项目地址不能为空!");
isLegitimate = false;
break;
}
String value = cell.getStringCellValue().trim();
chartingStation.setCharging_number(value);
chartingStation.setProject_address(value);
}else if (c == 3) {
if (ObjectUtils.isNull(cell) || StringUtil.isBlank(cell.getStringCellValue())) {
// 创建一个单元格
......
......@@ -27,8 +27,8 @@ spring:
type: com.alibaba.druid.pool.DruidDataSource
druid:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://47.105.205.210:3316/jysk?serverTimezone=GMT%2B8&useUnicode=true&nullCatalogMeansCurrent=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
username: root
url: jdbc:mysql://127.0.0.1:3306/jysk?serverTimezone=GMT%2B8&useUnicode=true&nullCatalogMeansCurrent=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
username: jysk
password: abc@123...
#初始化 最小 最大
initial-size: 5
......@@ -111,7 +111,7 @@ mybatis-plus:
file:
#网站目录
webFolder: /data/sunyan/wwwrooten/
webFolder: /data/jysk/wwwroot/
#程序访问入口
serverurl:
url: http://192.168.0.123:8001/
......
......@@ -27,8 +27,8 @@ spring:
type: com.alibaba.druid.pool.DruidDataSource
druid:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://47.105.205.210:3316/jysk?serverTimezone=GMT%2B8&useUnicode=true&nullCatalogMeansCurrent=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
username: root
url: jdbc:mysql://127.0.0.1:3306/jysk?serverTimezone=GMT%2B8&useUnicode=true&nullCatalogMeansCurrent=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
username: jysk
password: abc@123...
#初始化 最小 最大
initial-size: 5
......@@ -111,7 +111,7 @@ mybatis-plus:
file:
#网站目录
webFolder: /data/sunyan/wwwrooten/
webFolder: /data/jysk/wwwroot/
#程序访问入口
serverurl:
url: http://192.168.0.123:8001/
......
......@@ -153,6 +153,7 @@
}
});
okUtils.tableSuccessMsg(data.msg);
userTable.reload();
}
});
})
......@@ -186,28 +187,29 @@
}
//执行实例
upload.render({
var uploadInst =upload.render({
elem: '#upload' //绑定元素
, url: '/jysk/chargingStation/batchImport' //上传接口
, accept: 'file' //允许上传的文件类型,不写默认是图片
, acceptMime: ".xlsx,.xls,.DAT,.dat" //不写默认验证图片格式,一定要省略【exts】参数
, auto: true //选择文件后不自动上传
, before: function (obj) {
layer.load(); //上传loading
}
,done: function (res) {
console.log(res)
layer.closeAll('loading'); //关闭loading
if(res.code == 200){
okUtils.tableSuccessMsg(res.msg);
table.reload(userTable);
}else{
layer.msg(res.msg, {
icon: 2, // 图标,2表示错误
time: 2000 // 显示时间,单位为毫秒
okLayer.redCryMsg(res.msg, function () {
table.reload(userTable);
});
}
}
});
uploadInst.reload({
elem: '#upload'
})
})
</script>
......
artifactId=jysk.common
artifactId=common
groupId=com.jysk.demo
version=1.0
No preview for this file type
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论