Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
87cfc741
提交
87cfc741
authored
1月 06, 2021
作者:
邓砥奕
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改配发
上级
0fb29fc5
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
66 行增加
和
23 行删除
+66
-23
AllotBillController.java
...tykj/dev/device/allot/controller/AllotBillController.java
+35
-4
AllotBillSaveVo.java
...com/tykj/dev/device/allot/subject/vo/AllotBillSaveVo.java
+9
-4
LogType.java
dev-config/src/main/java/com/tykj/dev/config/LogType.java
+4
-3
StatusEnum.java
...misc/src/main/java/com/tykj/dev/misc/base/StatusEnum.java
+6
-1
StorageBillController.java
.../dev/device/storage/controller/StorageBillController.java
+1
-1
StorageBillSaveVo.java
...tykj/dev/device/storage/subject/vo/StorageBillSaveVo.java
+11
-10
没有找到文件。
dev-allot/src/main/java/com/tykj/dev/device/allot/controller/AllotBillController.java
浏览文件 @
87cfc741
...
@@ -38,10 +38,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -38,10 +38,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Calendar
;
import
java.util.Calendar
;
...
@@ -376,4 +373,38 @@ public class AllotBillController {
...
@@ -376,4 +373,38 @@ public class AllotBillController {
return
ResponseEntity
.
ok
(
"status只能为0或1"
);
return
ResponseEntity
.
ok
(
"status只能为0或1"
);
}
}
}
}
@ApiOperation
(
value
=
"保存配发操作"
,
notes
=
"可以通过这个接口保存配发操作"
)
@PostMapping
(
value
=
"/saveAllotBill"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ResponseEntity
saveAllotBill
(
@RequestBody
AllotBillSaveVo
allotBillSaveVo
)
{
//第一次保存
if
(
allotBillSaveVo
.
getTaskId
()==
null
){
//保存入库单
//发起任务
return
null
;
}
else
{
//更新账单
return
null
;
}
}
@ApiOperation
(
value
=
"删除配发单草稿"
,
notes
=
"可以通过这个接口删除配发单草稿"
)
@PostMapping
(
value
=
"/deleteAllotBill/{taskId}"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ResponseEntity
deleteAllotBill
(
@PathVariable
(
"taskId"
)
int
taskId
)
{
//任务封存
TaskBto
taskBto
=
taskService
.
get
(
taskId
);
taskService
.
moveToArchive
(
taskBto
);
return
ResponseEntity
.
ok
(
"删除成功"
);
}
@ApiOperation
(
value
=
"查询配发草稿详情"
,
notes
=
"可以通过这个接口查询配发草稿详情"
)
@PostMapping
(
value
=
"/selectAllotDetail/{taskId}"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ResponseEntity
selectAllotDetail
(
@PathVariable
(
"taskId"
)
int
taskId
)
{
return
null
;
}
}
}
dev-allot/src/main/java/com/tykj/dev/device/allot/subject/vo/AllotBillSaveVo.java
浏览文件 @
87cfc741
...
@@ -7,6 +7,7 @@ import io.swagger.annotations.ApiModelProperty;
...
@@ -7,6 +7,7 @@ import io.swagger.annotations.ApiModelProperty;
import
lombok.Data
;
import
lombok.Data
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
javax.validation.constraints.Min
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
/**
/**
...
@@ -16,14 +17,18 @@ import javax.validation.constraints.NotNull;
...
@@ -16,14 +17,18 @@ import javax.validation.constraints.NotNull;
@ApiModel
(
"配发单类"
)
@ApiModel
(
"配发单类"
)
public
class
AllotBillSaveVo
{
public
class
AllotBillSaveVo
{
@Min
(
value
=
1
,
message
=
"taskId不能小于1"
)
@ApiModelProperty
(
value
=
"任务Id"
)
private
Integer
taskId
;
@ApiModelProperty
(
value
=
"配发标题"
)
@ApiModelProperty
(
value
=
"配发标题"
)
private
String
title
;
private
String
title
;
@NotNull
(
message
=
"applyNumber不能为空"
)
//
@NotNull(message = "applyNumber不能为空")
@ApiModelProperty
(
value
=
"申请文号"
)
@ApiModelProperty
(
value
=
"申请文号"
)
private
String
applyNumber
;
private
String
applyNumber
;
@NotNull
(
message
=
"replayNumber不能为空"
)
//
@NotNull(message = "replayNumber不能为空")
@ApiModelProperty
(
value
=
"批复文号"
)
@ApiModelProperty
(
value
=
"批复文号"
)
private
String
replayNumber
;
private
String
replayNumber
;
...
@@ -40,8 +45,8 @@ public class AllotBillSaveVo {
...
@@ -40,8 +45,8 @@ public class AllotBillSaveVo {
@ApiModelProperty
(
value
=
"发件方(B岗位)"
)
@ApiModelProperty
(
value
=
"发件方(B岗位)"
)
private
Integer
sendUserbId
;
private
Integer
sendUserbId
;
//
@NotNull(message = "receiveUseraId不能为空")
@NotNull
(
message
=
"receiveUseraId不能为空"
)
//
@Min(value = 1,message = "receiveUseraId不能小于1")
@Min
(
value
=
1
,
message
=
"receiveUseraId不能小于1"
)
@ApiModelProperty
(
value
=
"收件方(A岗位)"
)
@ApiModelProperty
(
value
=
"收件方(A岗位)"
)
private
Integer
receiveUseraId
;
private
Integer
receiveUseraId
;
...
...
dev-config/src/main/java/com/tykj/dev/config/LogType.java
浏览文件 @
87cfc741
...
@@ -30,11 +30,11 @@ public enum LogType {
...
@@ -30,11 +30,11 @@ public enum LogType {
STORAGE_3
(
6
,
STORAGE
.
id
,
ORIGIN_STATUS
.
id
,
WAIT_STORAGE
.
id
,
"保存入库草稿"
),
STORAGE_3
(
6
,
STORAGE
.
id
,
ORIGIN_STATUS
.
id
,
WAIT_STORAGE
.
id
,
"保存入库草稿"
),
ALLOT_1
(
7
,
ALLOT
.
id
,
ORIGIN_STATUS
.
id
,
ALLOT_SEND_CONFIRM
.
id
,
"对(%receiveUnit)发起配发"
),
ALLOT_1
(
7
,
ALLOT
.
id
,
ALLOT_DRAFT
.
id
,
ALLOTING
.
id
,
"对(%receiveUnit)发起配发"
),
ALLOT_2
(
8
,
ALLOT
.
id
,
WAIT_ALLOT
.
id
,
ALLOT_SEND_CONFIRM
.
id
,
"对(%receiveUnit)发起配发
"
),
ALLOT_2
(
8
,
ALLOT
.
id
,
ORIGIN_STATUS
.
id
,
ALLOT_DRAFT
.
id
,
"保存配发草稿
"
),
ALLOT_3
(
9
,
ALLOT
.
id
,
ALLOT_
SEND_CONFIRM
.
id
,
ARCHIVE
.
id
,
"配发出库审核失败
"
),
ALLOT_3
(
9
,
ALLOT
.
id
,
ALLOT_
DRAFT
.
id
,
ARCHIVE
.
id
,
"删除配发草稿
"
),
ALLOT_4
(
10
,
ALLOT
.
id
,
ALLOT_SEND_CONFIRM
.
id
,
ALLOTING
.
id
,
"审核成功并出库"
),
ALLOT_4
(
10
,
ALLOT
.
id
,
ALLOT_SEND_CONFIRM
.
id
,
ALLOTING
.
id
,
"审核成功并出库"
),
...
@@ -172,6 +172,7 @@ public enum LogType {
...
@@ -172,6 +172,7 @@ public enum LogType {
ALLOT_BACK_5
(
86
,
ALLOT_BACK
.
id
,
ALLOT_BACKING
.
id
,
END
.
id
,
"接收配发退回装备"
),
ALLOT_BACK_5
(
86
,
ALLOT_BACK
.
id
,
ALLOT_BACKING
.
id
,
END
.
id
,
"接收配发退回装备"
),
REPAIR_SEND_10
(
87
,
REPAIR
.
id
,
ORIGIN_STATUS
.
id
,
COUNTRY_REPAIRING
.
id
,
"向(%receiveUnit)发起装备维修"
),
REPAIR_SEND_10
(
87
,
REPAIR
.
id
,
ORIGIN_STATUS
.
id
,
COUNTRY_REPAIRING
.
id
,
"向(%receiveUnit)发起装备维修"
),
REPAIR_BACK_7
(
88
,
REPAIR_BACK
.
id
,
ORIGIN_STATUS
.
id
,
END
.
id
,
"维修退回装备接收并发起入库"
),
REPAIR_BACK_7
(
88
,
REPAIR_BACK
.
id
,
ORIGIN_STATUS
.
id
,
END
.
id
,
"维修退回装备接收并发起入库"
),
STORAGE_4
(
89
,
STORAGE
.
id
,
WAIT_STORAGE
.
id
,
ARCHIVE
.
id
,
"删除入库草稿"
),
;
;
public
Integer
id
;
public
Integer
id
;
...
...
dev-misc/src/main/java/com/tykj/dev/misc/base/StatusEnum.java
浏览文件 @
87cfc741
...
@@ -116,7 +116,7 @@ public enum StatusEnum {
...
@@ -116,7 +116,7 @@ public enum StatusEnum {
* 入库待审核
* 入库待审核
*/
*/
STORAGE_CONFIRM
(
200
,
"入库待审核"
),
STORAGE_CONFIRM
(
200
,
"入库待审核"
),
WAIT_STORAGE
(
201
,
"
待入库
"
),
WAIT_STORAGE
(
201
,
"
草稿
"
),
/**
/**
* 待配发
* 待配发
*/
*/
...
@@ -137,6 +137,11 @@ public enum StatusEnum {
...
@@ -137,6 +137,11 @@ public enum StatusEnum {
*/
*/
ALLOT_RECEIVE_CONFIRM
(
303
,
"配发入库待审核"
),
ALLOT_RECEIVE_CONFIRM
(
303
,
"配发入库待审核"
),
/**
* 草稿
*/
ALLOT_DRAFT
(
333
,
"草稿"
),
/**
/**
* 待自查
* 待自查
*/
*/
...
...
dev-storage/src/main/java/com/tykj/dev/device/storage/controller/StorageBillController.java
浏览文件 @
87cfc741
...
@@ -314,7 +314,7 @@ public class StorageBillController {
...
@@ -314,7 +314,7 @@ public class StorageBillController {
@ApiOperation
(
value
=
"保存入库单"
,
notes
=
"可以通过这个接口保存入库单"
)
@ApiOperation
(
value
=
"保存入库单"
,
notes
=
"可以通过这个接口保存入库单"
)
@PostMapping
(
value
=
"/saveStorageBill"
)
@PostMapping
(
value
=
"/saveStorageBill"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ResponseEntity
saveStorageBill
(
@RequestBody
@Validated
StorageBillSaveVo
storageBillSaveVo
)
{
public
ResponseEntity
saveStorageBill
(
@RequestBody
StorageBillSaveVo
storageBillSaveVo
)
{
//第一次保存
//第一次保存
if
(
storageBillSaveVo
.
getTaskId
()==
null
){
if
(
storageBillSaveVo
.
getTaskId
()==
null
){
//保存入库单
//保存入库单
...
...
dev-storage/src/main/java/com/tykj/dev/device/storage/subject/vo/StorageBillSaveVo.java
浏览文件 @
87cfc741
...
@@ -9,6 +9,7 @@ import lombok.Data;
...
@@ -9,6 +9,7 @@ import lombok.Data;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
javax.validation.constraints.Min
;
import
javax.validation.constraints.Min
;
import
javax.validation.constraints.NotNull
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
@@ -32,37 +33,37 @@ public class StorageBillSaveVo {
...
@@ -32,37 +33,37 @@ public class StorageBillSaveVo {
@ApiModelProperty
(
value
=
"批复文号"
)
@ApiModelProperty
(
value
=
"批复文号"
)
private
String
replayNumber
;
private
String
replayNumber
;
//
@NotNull(message = "sendUnit不能为空")
@NotNull
(
message
=
"sendUnit不能为空"
)
@ApiModelProperty
(
value
=
"配送单位"
)
@ApiModelProperty
(
value
=
"配送单位"
)
private
String
sendUnit
;
private
String
sendUnit
;
//
@NotNull(message = "sendUserId不能为空")
@NotNull
(
message
=
"sendUserId不能为空"
)
@ApiModelProperty
(
value
=
"发件方"
)
@ApiModelProperty
(
value
=
"发件方"
)
private
String
sendUserId
;
private
String
sendUserId
;
//
@NotNull(message = "approver不能为空")
@NotNull
(
message
=
"approver不能为空"
)
@ApiModelProperty
(
value
=
"核发人"
)
@ApiModelProperty
(
value
=
"核发人"
)
private
String
approver
;
private
String
approver
;
//
@NotNull(message = "sendTime不能为空")
@NotNull
(
message
=
"sendTime不能为空"
)
@ApiModelProperty
(
value
=
"配发时间"
)
@ApiModelProperty
(
value
=
"配发时间"
)
private
Date
sendTime
;
private
Date
sendTime
;
//
@NotNull(message = "receiveUseraId不能为空")
@NotNull
(
message
=
"receiveUseraId不能为空"
)
//
@Min(value = 1,message = "receiveUseraId不能小于1")
@Min
(
value
=
1
,
message
=
"receiveUseraId不能小于1"
)
@ApiModelProperty
(
value
=
"接收单位A岗"
)
@ApiModelProperty
(
value
=
"接收单位A岗"
)
private
Integer
receiveUseraId
;
private
Integer
receiveUseraId
;
//
@NotNull(message = "receiveUserbId不能为空")
@NotNull
(
message
=
"receiveUserbId不能为空"
)
//
@Min(value = 1,message = "receiveUserbId不能小于1")
@Min
(
value
=
1
,
message
=
"receiveUserbId不能小于1"
)
@ApiModelProperty
(
value
=
"接收单位B岗"
)
@ApiModelProperty
(
value
=
"接收单位B岗"
)
private
Integer
receiveUserbId
;
private
Integer
receiveUserbId
;
//
@NotNull(message = "fileName不能为空")
@NotNull
(
message
=
"fileName不能为空"
)
@ApiModelProperty
(
value
=
"配发单附件名"
)
@ApiModelProperty
(
value
=
"配发单附件名"
)
private
String
fileName
;
private
String
fileName
;
//
@NotNull(message = "fileUrl不能为空")
@NotNull
(
message
=
"fileUrl不能为空"
)
@ApiModelProperty
(
value
=
"配发单附件url"
)
@ApiModelProperty
(
value
=
"配发单附件url"
)
private
String
fileUrl
;
private
String
fileUrl
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论