Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
37c6dd6c
提交
37c6dd6c
authored
3月 10, 2023
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(装备模块): 提供手动调用接口
提供手动调用接口
上级
080dd14c
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
52 行增加
和
2 行删除
+52
-2
AllotBillController.java
...tykj/dev/device/allot/controller/AllotBillController.java
+50
-0
application-dev.properties
dev-union/src/main/resources/application-dev.properties
+1
-1
SecurityConfig.java
.../java/com/tykj/dev/device/user/config/SecurityConfig.java
+1
-1
没有找到文件。
dev-allot/src/main/java/com/tykj/dev/device/allot/controller/AllotBillController.java
浏览文件 @
37c6dd6c
...
@@ -897,6 +897,22 @@ public class AllotBillController {
...
@@ -897,6 +897,22 @@ public class AllotBillController {
});
});
return
deviceVoList
;
return
deviceVoList
;
}
}
private
List
<
DeviceVo
>
getDeviceVoList1
(
List
<
ScriptSaveVo
>
scriptSaveVos
)
{
List
<
DeviceVo
>
deviceVoList
=
new
ArrayList
<>();
scriptSaveVos
.
forEach
(
scriptSaveVo
->
{
DeviceVo
deviceVo
=
new
DeviceVo
();
deviceVo
.
setModel
(
scriptSaveVo
.
getModel
());
deviceVo
.
setParts
(
scriptSaveVo
.
getName
());
deviceVo
.
setRemark
(
scriptSaveVo
.
getRemark
());
deviceVo
.
setNum
(
scriptSaveVo
.
getSeqNumber
());
deviceVo
.
setVisible
(
scriptSaveVo
.
getInvisibleRange
());
deviceVo
.
setWith
(
scriptSaveVo
.
getAllotType
());
deviceVo
.
setSecurityClassification
(
scriptSaveVo
.
getSecretLevel
());
deviceVo
.
setCount
(
scriptSaveVo
.
getNum
()
+
""
);
deviceVoList
.
add
(
deviceVo
);
});
return
deviceVoList
;
}
@ApiOperation
(
value
=
"上传发送方配发单"
,
notes
=
"上传配发单"
)
@ApiOperation
(
value
=
"上传发送方配发单"
,
notes
=
"上传配发单"
)
@PostMapping
(
value
=
"/uploadFile"
)
@PostMapping
(
value
=
"/uploadFile"
)
...
@@ -1135,6 +1151,40 @@ public class AllotBillController {
...
@@ -1135,6 +1151,40 @@ public class AllotBillController {
return
ResponseEntity
.
ok
(
allotBillService
.
updateFiles
(
updateFilesVO
));
return
ResponseEntity
.
ok
(
allotBillService
.
updateFiles
(
updateFilesVO
));
}
}
@GetMapping
(
"/dataToZt"
)
@ApiOperation
(
"主动推送数据给zt"
)
public
ResponseEntity
dataToZt
(
Integer
billId
){
//调用载体
AllotBill
allotBill
=
allotBillService
.
getOne
(
billId
);
List
<
ScriptSaveVo
>
scriptSaveVos
=
JacksonUtil
.
readValue
(
allotBill
.
getScriptJson
(),
new
TypeReference
<
List
<
ScriptSaveVo
>>()
{});
List
<
DeviceVo
>
deviceVoList
=
getDeviceVoList1
(
scriptSaveVos
);
if
(
deviceVoList
.
size
()
>
0
)
{
log
.
info
(
"开始调用载体接口"
);
ConfigUration
configUration
=
ConfigUration
.
builder
()
//出库时间
.
outboundTime
(
DateUtil
.
getLocalDateTime
(
allotBill
.
getCreateTime
()))
//收方a
.
debitMemberThatAName
(
userCache
.
findById
(
allotBill
.
getReceiveUseraId
()).
getName
())
//收方b
.
debitMemberThatBName
(
userCache
.
findById
(
allotBill
.
getReceiveUserbId
()).
getName
())
//发起单位
.
initiateUnit
(
unitsCache
.
findById
(
allotBill
.
getSendUnitId
()).
getName
())
//接收单位
.
receiveUnit
(
unitsCache
.
findById
(
allotBill
.
getReceiveUnitId
()).
getName
())
//state 状态 zjm说默认传1
.
state
(
1
)
.
deviceVos
(
deviceVoList
)
// senderMemberThatAName 发方A
.
senderMemberThatAName
(
userCache
.
findById
(
allotBill
.
getSendUseraId
()).
getName
())
// senderMemberThatAName senderMemberThatBName
.
senderMemberThatBName
(
userCache
.
findById
(
allotBill
.
getSendUserbId
()).
getName
())
.
signatureStatus
(
0
)
.
build
();
restTemplate
.
postForEntity
(
carrierUrl
,
configUration
,
String
.
class
);
}
return
ResponseEntity
.
ok
(
"成功"
);
}
//递归取出最大目录
//递归取出最大目录
public
PackingLibrary
getPackingLibrary
(
PackingLibrary
packingLibrary
)
{
public
PackingLibrary
getPackingLibrary
(
PackingLibrary
packingLibrary
)
{
...
...
dev-union/src/main/resources/application-dev.properties
浏览文件 @
37c6dd6c
...
@@ -22,6 +22,6 @@ readMachine.ip=192.168.101.201
...
@@ -22,6 +22,6 @@ readMachine.ip=192.168.101.201
qrcode.path
=
C:/Users/zsp/Desktop/qrcode/
qrcode.path
=
C:/Users/zsp/Desktop/qrcode/
qrcode.preview.path
=
http://192.168.101.133:8087/code/
qrcode.preview.path
=
http://192.168.101.133:8087/code/
carrier.url
=
http://192.168.0.
101
:8087/configuration/saveConfiguration
carrier.url
=
http://192.168.0.
30
:8087/configuration/saveConfiguration
file.matching.excel
=
/Users/zhoushaopan/excel/
file.matching.excel
=
/Users/zhoushaopan/excel/
dev-user/src/main/java/com/tykj/dev/device/user/config/SecurityConfig.java
浏览文件 @
37c6dd6c
...
@@ -114,7 +114,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
...
@@ -114,7 +114,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
.
antMatchers
(
"/packageVersion/getVersion"
,
"/equip/packageVersion/getVersion"
).
permitAll
()
//
.
antMatchers
(
"/packageVersion/getVersion"
,
"/equip/packageVersion/getVersion"
).
permitAll
()
//
.
antMatchers
(
"/equip/file/llq/**"
).
permitAll
()
.
antMatchers
(
"/equip/file/llq/**"
).
permitAll
()
.
antMatchers
(
"/code/**"
,
"/equip/code/**"
).
permitAll
()
.
antMatchers
(
"/code/**"
,
"/equip/code/**"
).
permitAll
()
.
antMatchers
(
"/upload"
,
"/device/queryByOwnUnit"
).
permitAll
()
.
antMatchers
(
"/upload"
,
"/device/queryByOwnUnit"
,
"/allot/dataToZt"
).
permitAll
()
.
antMatchers
(
HttpMethod
.
OPTIONS
,
"/**"
).
permitAll
()
.
antMatchers
(
HttpMethod
.
OPTIONS
,
"/**"
).
permitAll
()
// .withObjectPostProcessor(new ObjectPostProcessor<FilterSecurityInterceptor>() {
// .withObjectPostProcessor(new ObjectPostProcessor<FilterSecurityInterceptor>() {
// @Override
// @Override
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论