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
406c9f7b
Commit
406c9f7b
authored
Jul 07, 2023
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二三期三级编码问题处理;
parent
0981a926
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
EntrustServiceImpl.java
...ud/service/lims/hmhj/service/impl/EntrustServiceImpl.java
+10
-10
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustServiceImpl.java
View file @
406c9f7b
...
@@ -472,16 +472,16 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
...
@@ -472,16 +472,16 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
String
factoryArea
=
material
.
getFactoryArea
(),
abbr
=
material
.
getAbbr
();
String
factoryArea
=
material
.
getFactoryArea
(),
abbr
=
material
.
getAbbr
();
RestAssert
.
fail
(
StringUtils
.
isBlank
(
factoryArea
),
"样品库-物资厂区为空"
);
RestAssert
.
fail
(
StringUtils
.
isBlank
(
factoryArea
),
"样品库-物资厂区为空"
);
RestAssert
.
fail
(
StringUtils
.
isBlank
(
abbr
),
"样品库-物资简写为空"
);
RestAssert
.
fail
(
StringUtils
.
isBlank
(
abbr
),
"样品库-物资简写为空"
);
String
type
=
""
;
//
String type = "";
// type 处理
// type 处理
:先注释掉,以后可能会启用
if
(
factoryArea
.
contains
(
"二三期"
))
{
//
if (factoryArea.contains("二三期")) {
String
period
=
userInfoService
.
getUserPeriod
(
LoginHelper
.
getAccount
());
//
String period = userInfoService.getUserPeriod(LoginHelper.getAccount());
type
=
HmConst
.
SECOND_PERIOD
.
equals
(
period
)
?
"A"
:
"B"
;
//
type = HmConst.SECOND_PERIOD.equals(period) ? "A" : "B";
type
=
type
+
(
abbr
.
length
()
>
2
?
abbr
:
abbr
+
"0"
);
//
type = type + (abbr.length() > 2 ? abbr : abbr + "0");
}
else
{
//
} else {
type
=
abbr
;
//
type = abbr;
}
//
}
String
code
=
codeRuleService
.
getKey
(
type
.
toUpperCase
(),
"SN&@yyMMdd"
,
sample
);
String
code
=
codeRuleService
.
getKey
(
abbr
.
toUpperCase
(),
"SN&@yyMMdd"
,
sample
);
return
code
;
return
code
;
}
}
...
...
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