Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 6af49c8e
由
zshaohui
编写于
2022-08-29 11:03:20 +0800
浏览文件
选项
浏览文件
标签
下载
差异文件
Merge remote-tracking branch 'origin/master' into micron1053
2 个父辈
d93c97ff
e949681c
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
21 行增加
和
32 行删除
src/main/java/com/neotel/smfcore/core/barcode/rest/bean/dto/BarcodeDto.java
src/main/java/com/neotel/smfcore/core/barcode/service/manager/impl/BarcodeManagerImpl.java
src/main/java/com/neotel/smfcore/core/barcode/service/po/Barcode.java
src/main/java/com/neotel/smfcore/core/device/handler/impl/BaseDeviceHandler.java
src/main/java/com/neotel/smfcore/core/device/handler/impl/NLShelfHandler.java
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
src/main/java/com/neotel/smfcore/core/storage/rest/query/StoragePosFindCriteria.java
src/main/java/com/neotel/smfcore/security/rest/UserController.java
src/main/java/com/neotel/smfcore/security/service/po/Menu.java
src/main/resources/config/application.yml
src/main/java/com/neotel/smfcore/core/barcode/rest/bean/dto/BarcodeDto.java
查看文件 @
6af49c8
...
...
@@ -225,7 +225,11 @@ public class BarcodeDto implements Serializable {
@ApiModelProperty
(
"料盒内所有物料条码"
)
private
List
<
Barcode
>
subCodeList
;
private
List
<
BarcodeDto
>
subCodeList
;
public
List
<
BarcodeDto
>
getChildren
(){
return
subCodeList
;
}
public
String
getPutInTimeStr
()
{
...
...
src/main/java/com/neotel/smfcore/core/barcode/service/manager/impl/BarcodeManagerImpl.java
查看文件 @
6af49c8
...
...
@@ -156,7 +156,6 @@ public class BarcodeManagerImpl implements IBarcodeManager {
resources
.
setType
(
component
.
getType
());
resources
.
setWarmTime
(
component
.
getWarmTime
());
resources
.
setMixTime
(
component
.
getMixTime
());
resources
.
setOtherField1
(
component
.
getProductionType
());
if
(
resources
.
getPlateSize
()
<=
0
){
log
.
info
(
"设置置["
+
resources
.
getBarcode
()+
"]的尺寸信息"
);
resources
.
setPlateSize
(
component
.
getPlateSize
());
...
...
src/main/java/com/neotel/smfcore/core/barcode/service/po/Barcode.java
查看文件 @
6af49c8
...
...
@@ -92,18 +92,6 @@ public class Barcode extends BasePo implements Serializable {
*/
private
String
msl
;
//备用字段1(配套单号))或 family
private
String
otherField1
;
//备用字段2 (产品型号)
private
String
otherField2
;
//备用字段3 (组件型号)
private
String
otherField3
;
//备用字段4 (元器件型号)
private
String
otherField4
;
//备用字段5 (检验编号)
private
String
otherField5
;
//备用字段5 (备注)
private
String
otherField6
;
/**
* 包装上带的过期时间
*/
...
...
src/main/java/com/neotel/smfcore/core/device/handler/impl/BaseDeviceHandler.java
查看文件 @
6af49c8
...
...
@@ -757,6 +757,7 @@ public class BaseDeviceHandler implements IDeviceHandler {
statusBean
.
setStatus
(
statusBeanToSave
.
getStatus
());
statusBean
.
setOp
(
statusBeanToSave
.
getOp
());
statusBean
.
setSeq
(
statusBeanToSave
.
getSeq
());
statusBean
.
setClientIp
(
statusBeanToSave
.
getClientIp
());
/**
* 已解除的报警信息存到数据库中
...
...
src/main/java/com/neotel/smfcore/core/device/handler/impl/NLShelfHandler.java
查看文件 @
6af49c8
...
...
@@ -330,7 +330,7 @@ public class NLShelfHandler extends BaseDeviceHandler {
if
(
inPos
!=
null
)
{
Collection
<
DataLog
>
allTasks
=
taskService
.
getQueueTasks
();
for
(
DataLog
task
:
allTasks
)
{
if
(
task
.
isCheckOutTask
()
&&
task
.
getBarcode
()
!=
null
&&
task
.
getBarcode
().
equals
(
code
))
{
if
(
task
.
isCheckOutTask
()
&&
task
.
getBarcode
()
!=
null
&&
task
.
getBarcode
().
equals
(
barcode
.
getBarcode
()
))
{
if
(
ObjectUtil
.
isNotEmpty
(
sourceId
)
&&
!
sourceId
.
equals
(
task
.
getSourceId
()))
{
LiteOrder
liteOrder
=
liteOrderManager
.
get
(
sourceId
);
if
(
liteOrder
!=
null
)
{
...
...
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
查看文件 @
6af49c8
...
...
@@ -11,6 +11,7 @@ import com.neotel.smfcore.common.utils.FileUtil;
import
com.neotel.smfcore.common.utils.QueryHelp
;
import
com.neotel.smfcore.common.utils.SecurityUtils
;
import
com.neotel.smfcore.core.barcode.bean.CodeBean
;
import
com.neotel.smfcore.core.barcode.rest.bean.dto.BarcodeDto
;
import
com.neotel.smfcore.core.barcode.rest.bean.dto.CodeDto
;
import
com.neotel.smfcore.core.barcode.rest.bean.mapstruct.CodeMapper
;
import
com.neotel.smfcore.core.barcode.service.po.Barcode
;
...
...
@@ -317,6 +318,12 @@ public class StoragePosController {
Query
query
=
getPosFindCriteria
(
criteria
);
PageData
<
StoragePos
>
pages
=
storagePosManager
.
findByPage
(
query
,
pageable
);
List
<
StoragePosDto
>
StoragePosDtos
=
storagePosMapper
.
toDto
(
pages
.
getContent
());
// for (StoragePosDto storagePosDto : StoragePosDtos) {
// BarcodeDto barcode = storagePosDto.getBarcode();
// List<BarcodeDto> subCodes = Lists.newArrayList(barcode);
// barcode.setSubCodeList(subCodes);
// storagePosDto.setBarcode(barcode);
// }
return
new
PageData
(
StoragePosDtos
,
pages
.
getTotalElements
());
}
...
...
src/main/java/com/neotel/smfcore/core/storage/rest/query/StoragePosFindCriteria.java
查看文件 @
6af49c8
...
...
@@ -14,7 +14,7 @@ import java.util.List;
@Data
public
class
StoragePosFindCriteria
{
@QueryCondition
(
blurry
=
"barcode.partNumber,barcode.barcode,posName"
)
@QueryCondition
(
blurry
=
"barcode.partNumber,barcode.barcode,
barcode.subCodeList.barcode,barcode.subCodeList.partNumber,
posName"
)
private
String
blurry
;
@QueryCondition
(
type
=
QueryCondition
.
Type
.
BETWEEN
,
propName
=
"barcode.putInDate"
)
...
...
@@ -67,16 +67,6 @@ public class StoragePosFindCriteria {
@QueryCondition
(
blurry
=
"barcode.provider"
)
private
String
provider
;
@QueryCondition
(
blurry
=
"barcode.otherField1"
)
private
String
otherField1
;
@QueryCondition
(
blurry
=
"barcode.otherField2"
)
private
String
otherField2
;
@QueryCondition
(
blurry
=
"barcode.otherField3"
)
private
String
otherField3
;
@QueryCondition
(
blurry
=
"barcode.otherField4"
)
private
String
otherField4
;
@QueryCondition
(
blurry
=
"barcode.otherField5"
)
private
String
otherField5
;
@QueryCondition
(
propName
=
"barcode.msl"
)
@ApiModelProperty
(
"等级"
)
...
...
src/main/java/com/neotel/smfcore/security/rest/UserController.java
查看文件 @
6af49c8
...
...
@@ -162,12 +162,11 @@ public class UserController {
if
(
id
==
null
)
{
throw
new
ValidateException
(
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"ID"
}
);
}
log
.
info
(
"重置用户["
+
id
+
"]密码"
);
User
resources
=
userManager
.
get
(
id
);
resources
.
setPassword
(
passwordEncoder
.
encode
(
Constants
.
USER_DEFAULTP_PWD
));
resources
.
setPwdResetTime
(
new
Date
());
userManager
.
update
(
resources
);
userManager
.
updatePass
(
resources
.
getUsername
(),
passwordEncoder
.
encode
(
Constants
.
USER_DEFAULTP_PWD
));
userCacheClean
.
cleanUserCache
(
resources
.
getUsername
());
return
ResultBean
.
newOkResult
(
""
);
return
ResultBean
.
newOkResult
(
""
);
}
@ApiOperation
(
"个人中心:获取个人资料"
)
@GetMapping
(
value
=
"/center"
)
...
...
src/main/java/com/neotel/smfcore/security/service/po/Menu.java
查看文件 @
6af49c8
...
...
@@ -40,6 +40,7 @@ public class Menu extends BasePo implements Serializable {
/**
* 子菜单
*/
@Transient
private
List
<
Menu
>
children
;
/**
* 菜单类型
...
...
src/main/resources/config/application.yml
查看文件 @
6af49c8
...
...
@@ -2,7 +2,7 @@ server:
port
:
8800
api
:
#name:
DaLu
#name:
Neotel
#inCheckUrl: DaLu
#outNotifyUrl: https://matlabel-tool.com:4434/SMD_BOXAPI/OutBox
#inNotifyUrl: https://matlabel-tool.com:4434/SMD_BOXAPI/InBox
...
...
@@ -18,7 +18,7 @@ spring:
freemarker
:
check-template-location
:
false
profiles
:
active
:
'
@package.environment@
'
active
:
'
prod
'
jackson
:
time-zone
:
GMT+8
data
:
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论