Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
5beb80d5
提交
5beb80d5
authored
9月 28, 2020
作者:
邓砥奕
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[业务模块]添加了存储电子签章id的统一接口
上级
38c8be57
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
185 行增加
和
11 行删除
+185
-11
AllotBackBill.java
...om/tykj/dev/device/allot/subject/domin/AllotBackBill.java
+6
-0
AllotBill.java
...va/com/tykj/dev/device/allot/subject/domin/AllotBill.java
+6
-0
TaskBeanConfig.java
...fig/src/main/java/com/tykj/dev/config/TaskBeanConfig.java
+1
-1
RepairBackBill.java
.../tykj/dev/device/repair/subject/domin/RepairBackBill.java
+6
-0
RepairBill.java
.../com/tykj/dev/device/repair/subject/domin/RepairBill.java
+5
-0
SendBackBillDetail.java
...dev/device/sendback/entity/domain/SendBackBillDetail.java
+5
-0
pom.xml
dev-taskselect/pom.xml
+9
-0
TaskSelectController.java
...ev/device/taskselect/controller/TaskSelectController.java
+113
-5
SignatureSaveVo.java
...va/com/tykj/dev/device/taskselect/vo/SignatureSaveVo.java
+22
-0
LogAspect.java
dev-union/src/main/java/com/tykj/dev/union/LogAspect.java
+11
-4
application-dev.properties
dev-union/src/main/resources/application-dev.properties
+1
-1
没有找到文件。
dev-allot/src/main/java/com/tykj/dev/device/allot/subject/domin/AllotBackBill.java
浏览文件 @
5beb80d5
...
...
@@ -132,4 +132,10 @@ public class AllotBackBill {
@ApiModelProperty
(
value
=
"退回单号"
)
private
String
num
;
@ApiModelProperty
(
value
=
"发件单位签章id"
)
private
String
leftSignatureId
;
@ApiModelProperty
(
value
=
"收件单位签章id"
)
private
String
rightSignatureId
;
}
dev-allot/src/main/java/com/tykj/dev/device/allot/subject/domin/AllotBill.java
浏览文件 @
5beb80d5
...
...
@@ -220,4 +220,10 @@ public class AllotBill {
@ApiModelProperty
(
value
=
"配发单号"
)
private
String
num
;
@ApiModelProperty
(
value
=
"发件单位签章id"
)
private
String
leftSignatureId
;
@ApiModelProperty
(
value
=
"收件单位签章id"
)
private
String
rightSignatureId
;
}
dev-config/src/main/java/com/tykj/dev/config/BeanConfig.java
→
dev-config/src/main/java/com/tykj/dev/config/
Task
BeanConfig.java
浏览文件 @
5beb80d5
...
...
@@ -6,7 +6,7 @@ import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
import
org.springframework.stereotype.Component
;
@Component
public
class
BeanConfig
{
public
class
Task
BeanConfig
{
@Bean
public
TaskScheduler
taskScheduler
()
{
...
...
dev-repair/src/main/java/com/tykj/dev/device/repair/subject/domin/RepairBackBill.java
浏览文件 @
5beb80d5
...
...
@@ -218,4 +218,10 @@ public class RepairBackBill {
@ApiModelProperty
(
value
=
"接收确认人"
)
@Transient
private
String
receiveUserB
;
@ApiModelProperty
(
value
=
"发件单位签章id"
)
private
String
leftSignatureId
;
@ApiModelProperty
(
value
=
"收件单位签章id"
)
private
String
rightSignatureId
;
}
dev-repair/src/main/java/com/tykj/dev/device/repair/subject/domin/RepairBill.java
浏览文件 @
5beb80d5
...
...
@@ -118,4 +118,9 @@ public class RepairBill {
@ApiModelProperty
(
value
=
"维修单档案号"
)
private
String
docNum
;
@ApiModelProperty
(
value
=
"发件单位签章id"
)
private
String
leftSignatureId
;
@ApiModelProperty
(
value
=
"收件单位签章id"
)
private
String
rightSignatureId
;
}
dev-sendback/src/main/java/com/tykj/dev/device/sendback/entity/domain/SendBackBillDetail.java
浏览文件 @
5beb80d5
...
...
@@ -242,4 +242,9 @@ public class SendBackBillDetail {
@ApiModelProperty
(
value
=
"截至日期"
)
private
Date
time
;
@ApiModelProperty
(
value
=
"发件单位签章id"
)
private
String
leftSignatureId
;
@ApiModelProperty
(
value
=
"收件单位签章id"
)
private
String
rightSignatureId
;
}
dev-taskselect/pom.xml
浏览文件 @
5beb80d5
...
...
@@ -55,6 +55,14 @@
<groupId>
com.tykj.dev
</groupId>
<artifactId>
config
</artifactId>
</dependency>
<dependency>
<groupId>
com.tykj
</groupId>
<artifactId>
dev-repair
</artifactId>
</dependency>
<dependency>
<groupId>
com.tykj
</groupId>
<artifactId>
dev-sendback
</artifactId>
</dependency>
</dependencies>
</project>
\ No newline at end of file
dev-taskselect/src/main/java/com/tykj/dev/device/taskselect/controller/TaskSelectController.java
浏览文件 @
5beb80d5
...
...
@@ -12,23 +12,31 @@ import com.tykj.dev.device.library.subject.domin.DeviceLibrary;
import
com.tykj.dev.device.library.subject.vo.DeviceLibrarySelectVo
;
import
com.tykj.dev.device.packing.service.PackingLibraryService
;
import
com.tykj.dev.device.packing.subject.domin.PackingLibrary
;
import
com.tykj.dev.device.repair.service.RepairBackBillService
;
import
com.tykj.dev.device.repair.service.RepairBillService
;
import
com.tykj.dev.device.repair.subject.domin.RepairBackBill
;
import
com.tykj.dev.device.repair.subject.domin.RepairBill
;
import
com.tykj.dev.device.selfcheck.service.SelfCheckBillService
;
import
com.tykj.dev.device.selfcheck.subject.domin.SelfCheckBill
;
import
com.tykj.dev.device.sendback.entity.domain.SendBackBill
;
import
com.tykj.dev.device.sendback.entity.domain.SendBackBillDetail
;
import
com.tykj.dev.device.sendback.repository.SendBackBillDao
;
import
com.tykj.dev.device.sendback.repository.SendBackBillDetailDao
;
import
com.tykj.dev.device.storage.service.StorageBillService
;
import
com.tykj.dev.device.storage.subject.domin.StorageBill
;
import
com.tykj.dev.device.task.service.TaskService
;
import
com.tykj.dev.device.task.subject.bto.TaskBto
;
import
com.tykj.dev.device.taskselect.vo.SignatureSaveVo
;
import
com.tykj.dev.device.user.subject.service.UserPublicService
;
import
com.tykj.dev.misc.base.ResultObj
;
import
com.tykj.dev.misc.exception.ApiException
;
import
com.tykj.dev.misc.utils.ResultUtil
;
import
com.tykj.dev.misc.utils.StringSplitUtil
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
com.tykj.dev.device.matching.service.MatchingDeviceBillService
;
import
com.tykj.dev.device.matching.service.MatchingDeviceLibraryService
;
...
...
@@ -81,6 +89,18 @@ public class TaskSelectController {
@Autowired
private
AllotBackBillService
allotBackBillService
;
@Autowired
private
RepairBillService
repairBillService
;
@Autowired
private
RepairBackBillService
repairBackBillService
;
@Autowired
private
SendBackBillDao
sendBackBillDao
;
@Autowired
private
SendBackBillDetailDao
sendBackBillDetailDao
;
@ApiOperation
(
value
=
"查询业务对应页面的数据"
,
notes
=
"可以通过这个接口查询业务对应页面的数据"
)
@GetMapping
(
"/manage/detail/{id}"
)
public
ResponseEntity
selectData
(
@PathVariable
(
"id"
)
int
taskId
)
{
...
...
@@ -310,7 +330,95 @@ public class TaskSelectController {
list
.
add
(
packingLibraryEntityList
);
list
.
add
(
deviceLibraryService
.
getAllotList
(
new
DeviceLibrarySelectVo
()).
stream
().
filter
(
deviceLibraryEntity
->
packingIdList
.
contains
(
deviceLibraryEntity
.
getPackingId
())).
sorted
(
Comparator
.
comparing
(
DeviceLibrary:
:
getPackingId
)).
collect
(
Collectors
.
toList
()));
return
ResponseEntity
.
ok
(
new
ResultObj
(
list
,
"查询成功"
));
default
:
return
null
;
default
:
throw
new
ApiException
(
ResultUtil
.
failed
(
"该接口不支持当前task业务类型"
));
}
}
@ApiOperation
(
value
=
"业务账单添加电子签章"
,
notes
=
"可以通过这个接口业务账单添加电子签章"
)
@GetMapping
(
"/signature/form"
)
public
ResponseEntity
addSignature
(
@RequestBody
SignatureSaveVo
signatureSaveVo
)
{
//找到对应task
TaskBto
taskBto
=
taskService
.
get
(
signatureSaveVo
.
getTaskId
());
//判断task类型
Integer
businessType
=
taskBto
.
getBusinessType
();
switch
(
businessType
){
case
3
:
if
(
taskBto
.
getBillId
()>
0
){
AllotBill
allotBill
=
allotBillService
.
getOne
(
taskBto
.
getBillId
());
if
(
signatureSaveVo
.
getType
()==
1
){
allotBill
.
setLeftSignatureId
(
signatureSaveVo
.
getSignatureId
());
}
if
(
signatureSaveVo
.
getType
()==
2
){
allotBill
.
setRightSignatureId
(
signatureSaveVo
.
getSignatureId
());
}
allotBillService
.
update
(
allotBill
);
return
ResponseEntity
.
ok
(
"添加成功"
);
}
else
{
throw
new
ApiException
(
ResultUtil
.
failed
(
"当前task不存在账单id"
));
}
case
22
:
if
(
taskBto
.
getBillId
()>
0
){
AllotBackBill
allotBackBill
=
allotBackBillService
.
getOne
(
taskBto
.
getBillId
());
if
(
signatureSaveVo
.
getType
()==
1
){
allotBackBill
.
setLeftSignatureId
(
signatureSaveVo
.
getSignatureId
());
}
if
(
signatureSaveVo
.
getType
()==
2
){
allotBackBill
.
setRightSignatureId
(
signatureSaveVo
.
getSignatureId
());
}
allotBackBillService
.
update
(
allotBackBill
);
return
ResponseEntity
.
ok
(
"添加成功"
);
}
else
{
throw
new
ApiException
(
ResultUtil
.
failed
(
"当前task不存在账单id"
));
}
case
5
:
if
(
taskBto
.
getBillId
()>
0
){
RepairBill
repairBill
=
repairBillService
.
getOne
(
taskBto
.
getBillId
());
if
(
signatureSaveVo
.
getType
()==
1
){
repairBill
.
setLeftSignatureId
(
signatureSaveVo
.
getSignatureId
());
}
if
(
signatureSaveVo
.
getType
()==
2
){
repairBill
.
setRightSignatureId
(
signatureSaveVo
.
getSignatureId
());
}
repairBillService
.
update
(
repairBill
);
return
ResponseEntity
.
ok
(
"添加成功"
);
}
else
{
throw
new
ApiException
(
ResultUtil
.
failed
(
"当前task不存在账单id"
));
}
case
10
:
if
(
taskBto
.
getBillId
()>
0
){
RepairBackBill
repairBackBill
=
repairBackBillService
.
getOne
(
taskBto
.
getBillId
());
if
(
signatureSaveVo
.
getType
()==
1
){
repairBackBill
.
setLeftSignatureId
(
signatureSaveVo
.
getSignatureId
());
}
if
(
signatureSaveVo
.
getType
()==
2
){
repairBackBill
.
setRightSignatureId
(
signatureSaveVo
.
getSignatureId
());
}
repairBackBillService
.
update
(
repairBackBill
);
return
ResponseEntity
.
ok
(
"添加成功"
);
}
else
{
throw
new
ApiException
(
ResultUtil
.
failed
(
"当前task不存在账单id"
));
}
case
16
:
if
(
taskBto
.
getBillId
()>
0
){
SendBackBill
sendBackBill
=
sendBackBillDao
.
getOne
(
taskBto
.
getBillId
());
SendBackBillDetail
sendBackBillDetail
=
sendBackBillDetailDao
.
findSendBackBillDetailById
(
sendBackBill
.
getFormId
());
if
(
signatureSaveVo
.
getType
()==
1
){
sendBackBillDetail
.
setLeftSignatureId
(
signatureSaveVo
.
getSignatureId
());
}
if
(
signatureSaveVo
.
getType
()==
2
){
sendBackBillDetail
.
setRightSignatureId
(
signatureSaveVo
.
getSignatureId
());
}
sendBackBillDetailDao
.
save
(
sendBackBillDetail
);
return
ResponseEntity
.
ok
(
"添加成功"
);
}
else
{
throw
new
ApiException
(
ResultUtil
.
failed
(
"当前task不存在账单id"
));
}
default
:
throw
new
ApiException
(
ResultUtil
.
failed
(
"该接口不支持当前task业务类型"
));
}
}
}
dev-taskselect/src/main/java/com/tykj/dev/device/taskselect/vo/SignatureSaveVo.java
0 → 100644
浏览文件 @
5beb80d5
package
com
.
tykj
.
dev
.
device
.
taskselect
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
/**
* @author dengdiyi
*/
@Data
@ApiModel
(
"电子签章存储类"
)
public
class
SignatureSaveVo
{
@ApiModelProperty
(
value
=
"业务主键id"
)
private
Integer
taskId
;
@ApiModelProperty
(
value
=
"存储类型(1:发件单位签章,2:收件单位签章)"
)
private
Integer
type
;
@ApiModelProperty
(
value
=
"电子签章id"
)
private
String
signatureId
;
}
dev-union/src/main/java/com/tykj/dev/union/LogAspect.java
浏览文件 @
5beb80d5
...
...
@@ -26,7 +26,9 @@ import com.tykj.dev.device.repair.subject.domin.RepairSendBill;
import
com.tykj.dev.device.retired.service.DeviceRetiredBillService
;
import
com.tykj.dev.device.selfcheck.service.SelfCheckBillService
;
import
com.tykj.dev.device.sendback.entity.domain.SendBackBill
;
import
com.tykj.dev.device.sendback.entity.domain.SendBackBillDetail
;
import
com.tykj.dev.device.sendback.repository.SendBackBillDao
;
import
com.tykj.dev.device.sendback.repository.SendBackBillDetailDao
;
import
com.tykj.dev.device.storage.service.StorageBillService
;
import
com.tykj.dev.device.storage.subject.domin.StorageBill
;
import
com.tykj.dev.device.task.service.TaskLogService
;
...
...
@@ -382,12 +384,17 @@ public class LogAspect {
break
;
case
16
:
SendBackBillDao
sendBackBillDao
=
SpringUtils
.
getBean
(
"sendBackBillDao"
);
if
(
sendBackBillDao
!=
null
)
{
SendBackBillDetailDao
sendBackBillDetailDao
=
SpringUtils
.
getBean
(
"sendBackBillDetailDao"
);
if
(
sendBackBillDao
!=
null
&&
sendBackBillDetailDao
!=
null
)
{
SendBackBill
sendBackBill
=
sendBackBillDao
.
getOne
(
outPutTask
.
getBillId
());
SendBackBillDetail
sendBackBillDetail
=
sendBackBillDetailDao
.
findSendBackBillDetailById
(
sendBackBill
.
getFormId
());
getFieldsParam
(
sendBackBill
);
// if (){
//
// }
if
((
this
.
oldStatus
.
equals
(
StatusEnum
.
SEND_BACK_1203
.
id
)&&
this
.
newStatus
.
equals
(
StatusEnum
.
SEND_BACK_1202
.
id
))){
this
.
fileVos
.
add
(
new
FileVo
(
"出库确认单"
,
sendBackBillDetail
.
getFileName
(),
sendBackBillDetail
.
getFileUrl
()));
}
if
((
this
.
oldStatus
.
equals
(
StatusEnum
.
SEND_BACK_1206
.
id
)&&
this
.
newStatus
.
equals
(
StatusEnum
.
SEND_BACK_1204
.
id
))){
this
.
fileVos
.
add
(
new
FileVo
(
"清退单"
,
sendBackBillDetail
.
getBillFileName
(),
sendBackBillDetail
.
getBillFileUrl
()));
}
}
break
;
case
19
:
...
...
dev-union/src/main/resources/application-dev.properties
浏览文件 @
5beb80d5
spring.datasource.url
=
jdbc:mysql://
localhost
:3306/device?serverTimezone=Asia/Shanghai&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false
spring.datasource.url
=
jdbc:mysql://
192.168.100.249
:3306/device?serverTimezone=Asia/Shanghai&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.username
=
root
spring.datasource.password
=
root
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论