Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
8f350363
提交
8f350363
authored
1月 11, 2021
作者:
陆
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
商品属性添加了定时器
上级
3373dd18
全部展开
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
56 行增加
和
53 行删除
+56
-53
uploadController.java
...in/java/com/platform/controller/api/uploadController.java
+19
-19
BASE64DecodedMultipartFile.java
.../java/com/platform/entity/BASE64DecodedMultipartFile.java
+19
-20
tbcfstationitem.js
platform-admin/src/main/webapp/js/sys/tbcfstationitem.js
+17
-14
Excel2003Reader.java
...c/main/java/com/platform/utils/excel/Excel2003Reader.java
+1
-0
没有找到文件。
platform-admin/src/main/java/com/platform/controller/api/uploadController.java
浏览文件 @
8f350363
差异被折叠。
点击展开。
platform-admin/src/main/java/com/platform/entity/BASE64DecodedMultipartFile.java
浏览文件 @
8f350363
...
...
@@ -2,7 +2,6 @@ package com.platform.entity;
import
cn.hutool.core.codec.Base64
;
import
org.springframework.web.multipart.MultipartFile
;
import
sun.misc.BASE64Decoder
;
import
java.io.*
;
...
...
@@ -61,25 +60,25 @@ public class BASE64DecodedMultipartFile implements MultipartFile {
new
FileOutputStream
(
dest
).
write
(
imgContent
);
}
public
static
MultipartFile
base64ToMultipart
(
String
base64
)
{
try
{
String
[]
baseStrs
=
base64
.
split
(
","
);
BASE64Decoder
decoder
=
new
BASE64Decoder
();
byte
[]
b
=
new
byte
[
0
];
b
=
decoder
.
decodeBuffer
(
baseStrs
[
1
]);
for
(
int
i
=
0
;
i
<
b
.
length
;
++
i
)
{
if
(
b
[
i
]
<
0
)
{
b
[
i
]
+=
256
;
}
}
return
new
BASE64DecodedMultipartFile
(
b
,
baseStrs
[
0
]);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
return
null
;
}
}
//
public static MultipartFile base64ToMultipart(String base64) {
//
try {
//
String[] baseStrs = base64.split(",");
//
//
BASE64Decoder decoder = new BASE64Decoder();
//
byte[] b = new byte[0];
//
b = decoder.decodeBuffer(baseStrs[1]);
//
//
for (int i = 0; i < b.length; ++i) {
//
if (b[i] < 0) {
//
b[i] += 256;
//
}
//
}
//
return new BASE64DecodedMultipartFile(b, baseStrs[0]);
//
} catch (IOException e) {
//
e.printStackTrace();
//
return null;
//
}
//
}
public
static
File
base64ToFile
(
String
base64
)
{
if
(
base64
==
null
||
""
.
equals
(
base64
))
{
...
...
platform-admin/src/main/webapp/js/sys/tbcfstationitem.js
浏览文件 @
8f350363
...
...
@@ -1256,6 +1256,7 @@ let vm = new Vue({
},
//商品参数
getAttrName
(){
setTimeout
(
function
(){
this
.
paramsters
=
[]
$
.
get
(
'../attributes/queryAttrNames'
,
res
=>
{
let
Attr
=
JSON
.
parse
(
res
).
list
...
...
@@ -1272,6 +1273,8 @@ let vm = new Vue({
vm
.
paramsters
=
Attr
console
.
log
(
Attr
)
})
},
1300
)
},
//限制输入
verifyInput
(
e
){
...
...
platform-common/src/main/java/com/platform/utils/excel/Excel2003Reader.java
浏览文件 @
8f350363
...
...
@@ -10,6 +10,7 @@ import org.apache.poi.hssf.eventusermodel.dummyrecord.LastCellOfRowDummyRecord;
import
org.apache.poi.hssf.eventusermodel.dummyrecord.MissingCellDummyRecord
;
import
org.apache.poi.hssf.model.HSSFFormulaParser
;
import
org.apache.poi.hssf.record.*
;
import
org.apache.poi.hssf.record.Record
;
import
org.apache.poi.hssf.usermodel.HSSFWorkbook
;
import
org.apache.poi.poifs.filesystem.POIFSFileSystem
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论