Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-service-hmhj
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangweidong
patzn-cloud-service-hmhj
Commits
0981a926
Commit
0981a926
authored
Jun 14, 2023
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加日志及编号调整;
parent
0c0291e2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
EntrustSampleItemServiceImpl.java
.../lims/hmhj/service/impl/EntrustSampleItemServiceImpl.java
+5
-3
EntrustServiceImpl.java
...ud/service/lims/hmhj/service/impl/EntrustServiceImpl.java
+1
-1
EntrustSampleItemIndexMapper.xml
...in/resources/mapper/hmhj/EntrustSampleItemIndexMapper.xml
+1
-1
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustSampleItemServiceImpl.java
View file @
0981a926
...
...
@@ -1543,6 +1543,7 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
// == search data loop
boolean
finalCpSample
=
cpSample
;
dataList
.
forEach
(
t
->
{
logger
.
error
(
"INIT ITEM DATA: {}"
,
t
);
// 根据有无ID判断是属于哪一种数据来源
Object
oid
=
t
.
get
(
"id"
),
obrand
=
t
.
get
(
"brand"
);
logger
.
error
(
"循环处理牌号:样品id:{},牌号:{}"
,
oid
,
obrand
);
...
...
@@ -1555,8 +1556,9 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
if
(
Objects
.
nonNull
(
retakeSampleId
))
{
sampleId
=
retakeSampleId
;
}
String
brand
=
""
;
if
(
StringUtils
.
isNotBlank
(
brand
=
sampleBrandMap
.
get
(
sampleId
)))
{
String
brand
=
sampleBrandMap
.
get
(
sampleId
);
logger
.
error
(
"perhaps filled brand: {}"
,
brand
);
if
(
StringUtils
.
isNotBlank
(
brand
))
{
t
.
put
(
"brand"
,
brand
);
}
t
.
remove
(
"id"
);
...
...
@@ -1566,7 +1568,7 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
String
testTimeStr
=
t
.
get
(
"test_time"
).
toString
();
t
.
put
(
"shift"
,
DateKit
.
getShiftByDate
(
DateUtils
.
dateStringtoDate
(
testTimeStr
,
DateKit
.
FORMAT_DEFAULT
)));
}
logger
.
error
(
"
DATA_ITEM
: {}"
,
t
);
logger
.
error
(
"
HANDLE ITEM DATA
: {}"
,
t
);
});
try
{
logger
.
info
(
"==== EntrustSampleItemServiceImpl ==== sendTestDataToErp ====> 开始准备发送ERP数据!"
);
...
...
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustServiceImpl.java
View file @
0981a926
...
...
@@ -357,7 +357,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
logger
.
info
(
"==== EntrustServiceImpl ==== initSampleCode ====> [timestamp]: {}"
,
timestamp
);
String
randomStr
=
RandomUtils
.
getRandomStr
(
4
);
// 保证二级加密编码不重复
secondCode
=
abbr
+
sn
+
timestamp
+
randomStr
;
secondCode
=
abbr
+
timestamp
+
sn
+
randomStr
;
logger
.
info
(
"==== EntrustServiceImpl ==== initSampleCode ====> [secondCode]: {}"
,
secondCode
);
}
...
...
src/main/resources/mapper/hmhj/EntrustSampleItemIndexMapper.xml
View file @
0981a926
...
...
@@ -121,7 +121,7 @@
es.slot_no, es.sample_grading, esi.period, esii.name ,esii.test_value,
substr(es.code, 0,strpos(es.code,'C')) "cs_code"
from entrust_sample_item_index esii
join
entrust_sample_item esi on esi.id = esii.entrust_sample_item_id and esi.deleted = 0
join entrust_sample_item esi on esi.id = esii.entrust_sample_item_id and esi.deleted = 0
join entrust_sample es on es.id = esi.entrust_sample_id and es.deleted = 0
where esii.deleted = 0 and es.name = '原铝重取'
order by esii.ctime desc
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment