Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
0e3d4776
提交
0e3d4776
authored
11月 29, 2022
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(配套模块): 修改导入excel
修改导入excel
上级
06e8aabb
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
13 行增加
和
4 行删除
+13
-4
DeviceLibraryServiceImpl.java
...device/library/service/impl/DeviceLibraryServiceImpl.java
+4
-1
MatchingDeviceLibraryServiceImpl.java
...tching/service/impl/MatchingDeviceLibraryServiceImpl.java
+1
-1
MatchingDeviceBillSaveVo.java
.../device/matching/subject/vo/MatchingDeviceBillSaveVo.java
+3
-0
MatchingDeviceSaveVo.java
.../dev/device/matching/subject/vo/MatchingDeviceSaveVo.java
+4
-1
SecurityConfig.java
.../java/com/tykj/dev/device/user/config/SecurityConfig.java
+1
-1
没有找到文件。
dev-library/src/main/java/com/tykj/dev/device/library/service/impl/DeviceLibraryServiceImpl.java
浏览文件 @
0e3d4776
...
@@ -157,7 +157,10 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
...
@@ -157,7 +157,10 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
//型号 名称
//型号 名称
predicateBuilder
.
eq
(
deviceLibrarySelectVo
.
getModel
()
!=
null
,
"model"
,
deviceLibrarySelectVo
.
getModel
());
predicateBuilder
.
eq
(
deviceLibrarySelectVo
.
getModel
()
!=
null
,
"model"
,
deviceLibrarySelectVo
.
getModel
());
predicateBuilder
.
eq
(
deviceLibrarySelectVo
.
getName
()
!=
null
,
"name"
,
deviceLibrarySelectVo
.
getName
());
predicateBuilder
.
eq
(
deviceLibrarySelectVo
.
getName
()
!=
null
,
"name"
,
deviceLibrarySelectVo
.
getName
());
return
deviceLibraryDao
.
findAll
(
predicateBuilder
.
build
());
List
<
DeviceLibrary
>
deviceLibraryList
=
deviceLibraryDao
.
findAll
(
predicateBuilder
.
build
());
deviceLibraryList
.
forEach
(
DeviceLibrary:
:
setConfigName
);
return
deviceLibraryList
;
}
}
@Override
@Override
...
...
dev-matching/src/main/java/com/tykj/dev/device/matching/service/impl/MatchingDeviceLibraryServiceImpl.java
浏览文件 @
0e3d4776
...
@@ -516,7 +516,7 @@ public class MatchingDeviceLibraryServiceImpl implements MatchingDeviceLibrarySe
...
@@ -516,7 +516,7 @@ public class MatchingDeviceLibraryServiceImpl implements MatchingDeviceLibrarySe
// file.createNewFile();
// file.createNewFile();
log
.
info
(
"创建文件夹"
);
log
.
info
(
"创建文件夹"
);
}
}
FileOutputStream
fileOutputStream
=
new
FileOutputStream
(
file
+
uuid
+
".xlsx"
);
FileOutputStream
fileOutputStream
=
new
FileOutputStream
(
file
Excel
+
uuid
+
".xlsx"
);
workbook
.
write
(
fileOutputStream
);
workbook
.
write
(
fileOutputStream
);
fileOutputStream
.
close
();
fileOutputStream
.
close
();
return
uuid
+
".xlsx"
;
return
uuid
+
".xlsx"
;
...
...
dev-matching/src/main/java/com/tykj/dev/device/matching/subject/vo/MatchingDeviceBillSaveVo.java
浏览文件 @
0e3d4776
package
com
.
tykj
.
dev
.
device
.
matching
.
subject
.
vo
;
package
com
.
tykj
.
dev
.
device
.
matching
.
subject
.
vo
;
import
com.tykj.dev.device.file.entity.FileRet
;
import
com.tykj.dev.device.file.entity.FileRet
;
import
com.tykj.dev.device.file.service.FilesUtil
;
import
com.tykj.dev.device.matching.subject.domin.MatchingDeviceBill
;
import
com.tykj.dev.device.matching.subject.domin.MatchingDeviceBill
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -61,6 +62,8 @@ public class MatchingDeviceBillSaveVo {
...
@@ -61,6 +62,8 @@ public class MatchingDeviceBillSaveVo {
BeanUtils
.
copyProperties
(
this
,
matchingDeviceBillEntity
);
BeanUtils
.
copyProperties
(
this
,
matchingDeviceBillEntity
);
matchingDeviceBillEntity
.
setBillStatus
(
2
);
matchingDeviceBillEntity
.
setBillStatus
(
2
);
matchingDeviceBillEntity
.
setDeviceDetail
(
"x"
);
matchingDeviceBillEntity
.
setDeviceDetail
(
"x"
);
//单独处理单据
matchingDeviceBillEntity
.
setFileRets
(
FilesUtil
.
stringFileToList
(
this
.
getFileRets
()));
return
matchingDeviceBillEntity
;
return
matchingDeviceBillEntity
;
}
}
}
}
dev-matching/src/main/java/com/tykj/dev/device/matching/subject/vo/MatchingDeviceSaveVo.java
浏览文件 @
0e3d4776
...
@@ -93,6 +93,7 @@ public class MatchingDeviceSaveVo {
...
@@ -93,6 +93,7 @@ public class MatchingDeviceSaveVo {
private
String
signDate
;
private
String
signDate
;
@ApiModelProperty
(
value
=
"备注"
)
@ApiModelProperty
(
value
=
"备注"
)
@Excel
(
name
=
"备注"
)
private
String
remake
;
private
String
remake
;
// @NotNull(message = "type不能为空")
// @NotNull(message = "type不能为空")
...
@@ -143,7 +144,9 @@ public class MatchingDeviceSaveVo {
...
@@ -143,7 +144,9 @@ public class MatchingDeviceSaveVo {
matchingDeviceLibraryEntity
.
setLifeStatus
(
2
);
matchingDeviceLibraryEntity
.
setLifeStatus
(
2
);
matchingDeviceLibraryEntity
.
setDeviceId
(
0
);
matchingDeviceLibraryEntity
.
setDeviceId
(
0
);
matchingDeviceLibraryEntity
.
setLocationUnitId
(
this
.
createUnitId
);
matchingDeviceLibraryEntity
.
setLocationUnitId
(
this
.
createUnitId
);
matchingDeviceLibraryEntity
.
setSignDate
(
DateUtil
.
string2LocalDate
(
this
.
signDate
));
if
(
this
.
signDate
!=
null
&&
!
""
.
equals
(
this
.
signDate
)){
matchingDeviceLibraryEntity
.
setSignDate
(
DateUtil
.
string2LocalDate
(
this
.
signDate
));
}
//签订日期进行时间的转换
//签订日期进行时间的转换
// matchingDeviceLibraryEntity.setSignDate(DateUtil.string2LocalDate(this.signDate));
// matchingDeviceLibraryEntity.setSignDate(DateUtil.string2LocalDate(this.signDate));
// if (matchingDeviceLibraryEntity.getRfidCardId()==null||"".equals(matchingDeviceLibraryEntity.getRfidCardId())){
// if (matchingDeviceLibraryEntity.getRfidCardId()==null||"".equals(matchingDeviceLibraryEntity.getRfidCardId())){
...
...
dev-user/src/main/java/com/tykj/dev/device/user/config/SecurityConfig.java
浏览文件 @
0e3d4776
...
@@ -107,7 +107,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
...
@@ -107,7 +107,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
.
cors
()
.
cors
()
.
and
()
.
and
()
.
authorizeRequests
()
.
authorizeRequests
()
.
antMatchers
(
"/file/**"
,
"/actuator/**"
,
"/admin/**"
).
permitAll
()
.
antMatchers
(
"/file/**"
,
"/actuator/**"
,
"/admin/**"
,
"/excel/**"
).
permitAll
()
.
antMatchers
(
"/file/llq/**"
).
permitAll
()
.
antMatchers
(
"/file/llq/**"
).
permitAll
()
.
antMatchers
(
"/login/impersonate*"
).
permitAll
()
.
antMatchers
(
"/login/impersonate*"
).
permitAll
()
.
antMatchers
(
"/logout/impersonate*"
).
permitAll
()
.
antMatchers
(
"/logout/impersonate*"
).
permitAll
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论