Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 91682e0a
由
zshaohui
编写于
2023-09-20 11:38:18 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.生产日期解析修改
2.没有别名的,看板出入库趋势不展示
1 个父辈
c1ccdf48
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
14 行增加
和
3 行删除
src/main/java/com/neotel/smfcore/core/barcode/bean/BarcodeRule.java
src/main/java/com/neotel/smfcore/hikvision/service/manager/impl/HikTaskCountManagerImpl.java
src/main/java/com/neotel/smfcore/core/barcode/bean/BarcodeRule.java
查看文件 @
91682e0
...
...
@@ -427,8 +427,16 @@ public class BarcodeRule {
String
value
=
getStrValue
(
codeArr
);
if
(!
Strings
.
isNullOrEmpty
(
value
)){
try
{
if
(
value
.
startsWith
(
"00"
)){
value
=
value
.
substring
(
2
);
return
DateUtil
.
toDate
(
value
,
formatStr
);
}
else
{
String
format
=
"yyMMdd"
;
value
=
value
.
substring
(
2
,
value
.
length
()-
2
);
return
DateUtil
.
toDate
(
value
,
format
);
}
//阳光电源有可能是年周,需要转换一下
if
(
value
.
endsWith
(
"00"
)){
/*
if(value.endsWith("00")){
log.info("转换日期");
Date time = DateUtil.toDate(value.substring(0,2),"yy");
Calendar c = Calendar.getInstance();
...
...
@@ -437,7 +445,7 @@ public class BarcodeRule {
c.set(Calendar.WEEK_OF_YEAR,weekOfYear);
return c.getTime();
}
return
DateUtil
.
toDate
(
value
,
formatStr
);
return DateUtil.toDate(value,formatStr);
*/
}
catch
(
Exception
ex
){
log
.
warn
(
value
+
" is not a validate date"
);
}
...
...
src/main/java/com/neotel/smfcore/hikvision/service/manager/impl/HikTaskCountManagerImpl.java
查看文件 @
91682e0
...
...
@@ -12,6 +12,7 @@ import lombok.extern.slf4j.Slf4j;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -61,6 +62,7 @@ public class HikTaskCountManagerImpl implements IHikTaskCountManager {
@Override
public
List
<
TaskCount
>
findTaskCountByDate
(
Date
date
)
{
List
<
TaskCount
>
resultList
=
new
ArrayList
<>();
List
<
TaskCount
>
taskCountList
=
hikTaskCountDao
.
findTaskCountByDate
(
date
);
if
(
taskCountList
!=
null
&&
!
taskCountList
.
isEmpty
())
{
for
(
TaskCount
taskCount
:
taskCountList
)
{
...
...
@@ -68,9 +70,10 @@ public class HikTaskCountManagerImpl implements IHikTaskCountManager {
User
user
=
userManager
.
findByUserName
(
name
);
if
(
user
!=
null
&&
StringUtils
.
isNotBlank
(
user
.
getOtherName
()))
{
taskCount
.
setName
(
user
.
getOtherName
());
resultList
.
add
(
taskCount
);
}
}
}
return
taskCoun
tList
;
return
resul
tList
;
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论