Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit cbf09ea5
由
LN
编写于
2021-12-02 16:41:29 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
料盒增加描述功能
1 个父辈
fad11784
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
41 行增加
和
7 行删除
src/main/java/com/neotel/smfcore/core/barcode/rest/bean/dto/ComponentDto.java
src/main/java/com/neotel/smfcore/core/barcode/service/po/Barcode.java
src/main/java/com/neotel/smfcore/core/device/handler/impl/XLCBoxHandler.java
src/main/java/com/neotel/smfcore/core/storage/rest/MaterialBoxController.java
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
src/main/java/com/neotel/smfcore/core/barcode/rest/bean/dto/ComponentDto.java
查看文件 @
cbf09ea
...
...
@@ -116,6 +116,8 @@ public class ComponentDto implements Serializable {
@ApiModelProperty
(
"展示的图片"
)
private
String
showImg
=
""
;
@ApiModelProperty
(
"厚度"
)
private
String
thickness
=
""
;
@ApiModelProperty
(
"有效时长(生产日期+此天数为过期日期),设置默认有效期为2年"
)
private
int
validDay
=
0
;
...
...
src/main/java/com/neotel/smfcore/core/barcode/service/po/Barcode.java
查看文件 @
cbf09ea
package
com
.
neotel
.
smfcore
.
core
.
barcode
.
service
.
po
;
import
cn.hutool.core.date.DateTime
;
import
com.google.common.collect.Lists
;
import
com.neotel.smfcore.common.base.BasePo
;
import
com.neotel.smfcore.common.utils.DateUtil
;
...
...
@@ -86,6 +87,9 @@ public class Barcode extends BasePo implements Serializable {
* 批次
*/
private
String
batch
=
""
;
/**
* 等级
*/
private
String
msl
;
//备用字段1(配套单号))或 family
...
...
@@ -209,13 +213,20 @@ public class Barcode extends BasePo implements Serializable {
/**
* 开包时间
*/
private
String
openTime
;
private
Date
openTime
;
/**
* 描述
*/
private
String
describe
;
/**
* 厚度
* 请选择
*<2.1mm
* 2.1mm~3.1mm
* >=3.1mm
*/
private
String
thickness
=
""
;
/**
* 添加相关联条码
*
...
...
src/main/java/com/neotel/smfcore/core/device/handler/impl/XLCBoxHandler.java
查看文件 @
cbf09ea
...
...
@@ -17,6 +17,7 @@ import com.neotel.smfcore.core.device.enums.OP_STATUS;
import
com.neotel.smfcore.core.device.rest.dto.XLCPosBarcodeDto
;
import
com.neotel.smfcore.core.device.rest.dto.XLCPosDetailDto
;
import
com.neotel.smfcore.core.storage.enums.DeviceType
;
import
com.neotel.smfcore.core.storage.rest.dto.CheckOutDto
;
import
com.neotel.smfcore.core.storage.rest.dto.StoragePosDto
;
import
com.neotel.smfcore.core.storage.rest.mapstruct.StoragePosMapper
;
import
com.neotel.smfcore.core.storage.rest.query.StoragePosQueryCriteria
;
...
...
@@ -33,10 +34,8 @@ import org.springframework.data.mongodb.core.query.Query;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.*
;
...
...
src/main/java/com/neotel/smfcore/core/storage/rest/MaterialBoxController.java
查看文件 @
cbf09ea
...
...
@@ -88,6 +88,27 @@ public class MaterialBoxController {
}
return
barcodeDto
;
}
@ApiOperation
(
"修改料盒描述信息"
)
@PostMapping
(
"updateDescribe"
)
@PreAuthorize
(
"@el.check('materialBox')"
)
public
ResultBean
updateDescribe
(
@RequestBody
Map
<
String
,
String
>
paramMap
)
{
String
code
=
paramMap
.
get
(
"barcode"
);
//料盒条码
String
describe
=
paramMap
.
get
(
"describe"
);
//物料条码
Barcode
barcode
=
barcodeManager
.
findByBarcode
(
code
);
if
(
barcode
==
null
)
{
throw
new
ValidateException
(
"smfcode.materialBox.invalid"
,
"未找到料盒信息{0}"
,
new
String
[]{
code
});
}
if
(
describe
==
null
){
throw
new
ValidateException
(
"smfcode.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"describe"
}
);
}
barcode
.
setDescribe
(
describe
);
barcodeManager
.
saveBarcode
(
barcode
);
log
.
info
(
"更改料盒["
+
code
+
"]的描述信息为:"
+
describe
);
return
ResultBean
.
newOkResult
(
""
);
}
@ApiOperation
(
"取出物料"
)
@PostMapping
(
"exeOut"
)
...
...
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
查看文件 @
cbf09ea
...
...
@@ -87,6 +87,7 @@ public class StoragePosController {
Query
query
=
QueryHelp
.
getQuery
(
criteria
);
PageData
<
StoragePos
>
pages
=
storagePosManager
.
findByPage
(
query
,
pageable
);
List
<
StoragePosDto
>
StoragePosDtos
=
storagePosMapper
.
toDto
(
pages
.
getContent
());
return
new
PageData
(
StoragePosDtos
,
pages
.
getTotalElements
());
}
...
...
@@ -298,7 +299,7 @@ public class StoragePosController {
return
new
PageData
(
StoragePosDtos
,
pages
.
getTotalElements
());
}
@ApiOperation
(
"
查找出库
"
)
@ApiOperation
(
"
出库操作
"
)
@PutMapping
(
"/checkout"
)
public
ResultBean
checkout
(
@Validated
@RequestBody
CheckOutDto
checkOutDto
)
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论