Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes
Project
Project
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
ximai
mes
Commits
e25d849e
Commit
e25d849e
authored
Nov 08, 2024
by
温志超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工序序列号不够时报错
parent
3d81b9ea
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
6 deletions
+20
-6
messages.properties
admin/src/main/resources/i18n/messages.properties
+2
-1
messages_en.properties
admin/src/main/resources/i18n/messages_en.properties
+2
-1
messages_th.properties
admin/src/main/resources/i18n/messages_th.properties
+2
-1
messages_zh_CN.properties
admin/src/main/resources/i18n/messages_zh_CN.properties
+2
-1
ProductQrcodeBuild.java
.../ximai/mes/pro/schedule/impl/busi/ProductQrcodeBuild.java
+2
-2
ProProductQrcodeRuleServiceImpl.java
...mes/pro/service/impl/ProProductQrcodeRuleServiceImpl.java
+10
-0
No files found.
admin/src/main/resources/i18n/messages.properties
View file @
e25d849e
...
@@ -214,4 +214,5 @@ qc.error.error5=\u5F53\u524D\u5DE5\u5355\u751F\u4EA7\u7684\u4EA7\u54C1\u672A\u91
...
@@ -214,4 +214,5 @@ qc.error.error5=\u5F53\u524D\u5DE5\u5355\u751F\u4EA7\u7684\u4EA7\u54C1\u672A\u91
qc.error.error6=
\u
68C0
\u
6D4B
\u9879\u
7F16
\u
53F7
\u
5DF2
\u
5B58
\u5728
qc.error.error6=
\u
68C0
\u
6D4B
\u9879\u
7F16
\u
53F7
\u
5DF2
\u
5B58
\u5728
qc.error.error7=
\u
68C0
\u
6D4B
\u9879\u
540D
\u
79F0
\u
5DF2
\u
5B58
\u5728
qc.error.error7=
\u
68C0
\u
6D4B
\u9879\u
540D
\u
79F0
\u
5DF2
\u
5B58
\u5728
#system.printer
#system.printer
system.printer.error.repeat.bind=
\u
8BE5
\u6253\u5370\u
673A
\u
5DF2
\u
7ED1
\u
5B9A
\u
4E86
system.printer.error.repeat.bind=
\u
8BE5
\u6253\u5370\u
673A
\u
5DF2
\u
7ED1
\u
5B9A
\u
4E86
\ No newline at end of file
rule.currentSerial.error=
\u
8be5
\u
4ea7
\u
54c1
\u
5e8f
\u5217\u
53f7
\u5269\u
4f59
\u
003a{0}
\u
4e0d
\u
6ee1
\u
8db3
\u
5de5
\u5355\u6570\u
91cf
\u
003a{1}
\ No newline at end of file
admin/src/main/resources/i18n/messages_en.properties
View file @
e25d849e
...
@@ -211,4 +211,5 @@ qc.error.error5=The product produced by the current work order is not configured
...
@@ -211,4 +211,5 @@ qc.error.error5=The product produced by the current work order is not configured
qc.error.error6=Inspection item number already exists.
qc.error.error6=Inspection item number already exists.
qc.error.error7=Inspection item name already exists.
qc.error.error7=Inspection item name already exists.
#system.printer
#system.printer
system.printer.error.repeat.bind=This printer has been bound.
system.printer.error.repeat.bind=This printer has been bound.
\ No newline at end of file
rule.currentSerial.error= The remaining quantity of the product serial number is insufficient :{0} , workorder quantity : {1}
\ No newline at end of file
admin/src/main/resources/i18n/messages_th.properties
View file @
e25d849e
...
@@ -216,4 +216,5 @@ qc.error.error7=\u0E21\u0E35\u0E0A\u0E37\u0E48\u0E2D\u0E23\u0E32\u0E22\u0E01\u0E
...
@@ -216,4 +216,5 @@ qc.error.error7=\u0E21\u0E35\u0E0A\u0E37\u0E48\u0E2D\u0E23\u0E32\u0E22\u0E01\u0E
system.printer.error.repeat.bind
=
\u
0E40
\u
0E04
\u
0E23
\u
0E37
\u
0E48
\u
0E2D
\u
0E07
\u
0E1E
\u
0E34
\u
0E21
\u
0E1E
\u
0E4C
\u
0E16
\u
0E39
\u
0E01
\u
0E1C
\u
0E39
\u
0E01
\u
0E44
\u
0E27
\u
0E49
system.printer.error.repeat.bind
=
\u
0E40
\u
0E04
\u
0E23
\u
0E37
\u
0E48
\u
0E2D
\u
0E07
\u
0E1E
\u
0E34
\u
0E21
\u
0E1E
\u
0E4C
\u
0E16
\u
0E39
\u
0E01
\u
0E1C
\u
0E39
\u
0E01
\u
0E44
\u
0E27
\u
0E49
md.workStation.error.not.productionSolutionCode
=
\u0050\u0072\u
006f
\u0064\u0075\u0063\u0074\u0069\u
006f
\u
006e
\u0053\u
006f
\u
006c
\u0075\u0074\u0069\u
006f
\u
006e
\u0043\u
006f
\u0064\u0065\u0020\u
0e44
\u
0e21
\u
0e48
\u
0e44
\u
0e14
\u
0e49
\u
0e01
\u
0e23
\u
0e2d
\u
0e01
md.workStation.error.not.productionSolutionCode
=
\u0050\u0072\u
006f
\u0064\u0075\u0063\u0074\u0069\u
006f
\u
006e
\u0053\u
006f
\u
006c
\u0075\u0074\u0069\u
006f
\u
006e
\u0043\u
006f
\u0064\u0065\u0020\u
0e44
\u
0e21
\u
0e48
\u
0e44
\u
0e14
\u
0e49
\u
0e01
\u
0e23
\u
0e2d
\u
0e01
md.workStation.error.productionSolutionCode.unique
=
\u0050\u0072\u
006f
\u0064\u0075\u0063\u0074\u0069\u
006f
\u
006e
\u0053\u
006f
\u
006c
\u0075\u0074\u0069\u
006f
\u
006e
\u0043\u
006f
\u0064\u0065\u
003a
\u0020\u
0e44
\u
0e21
\u
0e48
\u
0e40
\u
0e09
\u
0e1e
\u
0e32
\u
0e30
md.workStation.error.productionSolutionCode.unique
=
\u0050\u0072\u
006f
\u0064\u0075\u0063\u0074\u0069\u
006f
\u
006e
\u0053\u
006f
\u
006c
\u0075\u0074\u0069\u
006f
\u
006e
\u0043\u
006f
\u0064\u0065\u
003a
\u0020\u
0e44
\u
0e21
\u
0e48
\u
0e40
\u
0e09
\u
0e1e
\u
0e32
\u
0e30
md.workStation.error.productionSolutionCode.size
=
\u0050\u0072\u
006f
\u0064\u0075\u0063\u0074\u0069\u
006f
\u
006e
\u0053\u
006f
\u
006c
\u0075\u0074\u0069\u
006f
\u
006e
\u0043\u
006f
\u0064\u0065\u
003a
\u0020\u
0e21
\u
0e35
\u
0e04
\u
0e48
\u
0e32
\u
0e21
\u
0e32
\u
0e01
\u
0e02
\u
0e36
\u
0e49
\u
0e19
\u
0e2d
\u
0e22
\u
0e39
\u
0e48
\u
0e41
\u
0e25
\u
0e49
\u
0e27
md.workStation.error.productionSolutionCode.size
=
\u0050\u0072\u
006f
\u0064\u0075\u0063\u0074\u0069\u
006f
\u
006e
\u0053\u
006f
\u
006c
\u0075\u0074\u0069\u
006f
\u
006e
\u0043\u
006f
\u0064\u0065\u
003a
\u0020\u
0e21
\u
0e35
\u
0e04
\u
0e48
\u
0e32
\u
0e21
\u
0e32
\u
0e01
\u
0e02
\u
0e36
\u
0e49
\u
0e19
\u
0e2d
\u
0e22
\u
0e39
\u
0e48
\u
0e41
\u
0e25
\u
0e49
\u
0e27
\ No newline at end of file
rule.currentSerial.error
=
\u
0e2b
\u
0e21
\u
0e32
\u
0e22
\u
0e40
\u
0e25
\u
0e02
\u
0e1c
\u
0e25
\u
0e34
\u
0e15
\u
0e20
\u
0e31
\u
0e13
\u
0e11
\u
0e4c
\u0020\u
0e40
\u
0e2b
\u
0e25
\u
0e37
\u
0e2d {0},
\u
0e44
\u
0e21
\u
0e48
\u
0e40
\u
0e1b
\u
0e47
\u
0e19
\u
0e44
\u
0e1b
\u
0e15
\u
0e32
\u
0e21
\u
0e08
\u
0e33
\u
0e19
\u
0e27
\u
0e19
\u
0e43
\u
0e1a
\u
0e2a
\u
0e31
\u
0e48
\u
0e07
\u
0e07
\u
0e32
\u
0e19{1}
\ No newline at end of file
admin/src/main/resources/i18n/messages_zh_CN.properties
View file @
e25d849e
...
@@ -214,4 +214,5 @@ qc.error.error5=\u5F53\u524D\u5DE5\u5355\u751F\u4EA7\u7684\u4EA7\u54C1\u672A\u91
...
@@ -214,4 +214,5 @@ qc.error.error5=\u5F53\u524D\u5DE5\u5355\u751F\u4EA7\u7684\u4EA7\u54C1\u672A\u91
qc.error.error6=
\u
68C0
\u
6D4B
\u9879\u
7F16
\u
53F7
\u
5DF2
\u
5B58
\u5728
qc.error.error6=
\u
68C0
\u
6D4B
\u9879\u
7F16
\u
53F7
\u
5DF2
\u
5B58
\u5728
qc.error.error7=
\u
68C0
\u
6D4B
\u9879\u
540D
\u
79F0
\u
5DF2
\u
5B58
\u5728
qc.error.error7=
\u
68C0
\u
6D4B
\u9879\u
540D
\u
79F0
\u
5DF2
\u
5B58
\u5728
#system.printer
#system.printer
system.printer.error.repeat.bind=
\u
8BE5
\u6253\u5370\u
673A
\u
5DF2
\u
7ED1
\u
5B9A
\u
4E86
system.printer.error.repeat.bind=
\u
8BE5
\u6253\u5370\u
673A
\u
5DF2
\u
7ED1
\u
5B9A
\u
4E86
\ No newline at end of file
rule.currentSerial.error=
\u
8be5
\u
4ea7
\u
54c1
\u
5e8f
\u5217\u
53f7
\u5269\u
4f59
\u
003a{0}
\u
4e0d
\u
6ee1
\u
8db3
\u
5de5
\u5355\u6570\u
91cf
\u
003a{1}
\ No newline at end of file
mes/src/main/java/com/ximai/mes/pro/schedule/impl/busi/ProductQrcodeBuild.java
View file @
e25d849e
...
@@ -56,8 +56,8 @@ public class ProductQrcodeBuild implements ScheduleBusiProcess{
...
@@ -56,8 +56,8 @@ public class ProductQrcodeBuild implements ScheduleBusiProcess{
}
}
if
(
proProductQrcodeRuleDto
==
null
||
StringUtils
.
isEmpty
(
proProductQrcodeRuleDto
.
getTemplateName
())){
if
(
proProductQrcodeRuleDto
==
null
||
StringUtils
.
isEmpty
(
proProductQrcodeRuleDto
.
getTemplateName
())){
//后续再看是否需要报错
//后续再看是否需要报错
ExceptionUtil
.
checkTrueThrowException
(
true
,
//
ExceptionUtil.checkTrueThrowException(true,
"未能匹配到打印模板,请先到产品二维码规则维护"
);
//
"未能匹配到打印模板,请先到产品二维码规则维护");
}
}
List
<
String
>
qrcodes
=
productQrcodeRuleService
.
buildQrcode
(
rule
,
job
.
getQuantity
().
intValue
());
List
<
String
>
qrcodes
=
productQrcodeRuleService
.
buildQrcode
(
rule
,
job
.
getQuantity
().
intValue
());
for
(
String
qrcode
:
qrcodes
){
for
(
String
qrcode
:
qrcodes
){
...
...
mes/src/main/java/com/ximai/mes/pro/service/impl/ProProductQrcodeRuleServiceImpl.java
View file @
e25d849e
...
@@ -3,8 +3,10 @@ package com.ximai.mes.pro.service.impl;
...
@@ -3,8 +3,10 @@ package com.ximai.mes.pro.service.impl;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.ximai.common.utils.MessageUtils
;
import
com.ximai.common.utils.data.DateUtils
;
import
com.ximai.common.utils.data.DateUtils
;
import
com.ximai.common.utils.SecurityUtils
;
import
com.ximai.common.utils.SecurityUtils
;
import
com.ximai.common.utils.data.ExceptionUtil
;
import
com.ximai.common.utils.data.StringUtils
;
import
com.ximai.common.utils.data.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -152,6 +154,14 @@ public class ProProductQrcodeRuleServiceImpl implements IProProductQrcodeRuleSer
...
@@ -152,6 +154,14 @@ public class ProProductQrcodeRuleServiceImpl implements IProProductQrcodeRuleSer
@Override
@Override
public
List
<
String
>
buildQrcode
(
ProProductQrcodeRule
rule
,
Integer
quantity
)
{
public
List
<
String
>
buildQrcode
(
ProProductQrcodeRule
rule
,
Integer
quantity
)
{
if
(
rule
.
getCurrentSerial
()
!=
null
&&
rule
.
getSerialLen
()
!=
null
&&
rule
.
getSerialLen
()
>
0
){
double
maxCurrentSerial
=
9
;
for
(
int
i
=
1
;
i
<
rule
.
getSerialLen
();
i
++){
maxCurrentSerial
=
9
*
Math
.
pow
(
10
,
i
);
}
Integer
size
=
rule
.
getCurrentSerial
()
+
quantity
;
ExceptionUtil
.
checkTrueThrowException
(
maxCurrentSerial
<
size
,
MessageUtils
.
message
(
"rule.currentSerial.error"
,
maxCurrentSerial
-
rule
.
getCurrentSerial
(),
quantity
));
}
List
<
String
>
rst
=
new
ArrayList
<>();
List
<
String
>
rst
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
quantity
;
i
++){
for
(
int
i
=
0
;
i
<
quantity
;
i
++){
String
temp
=
rule
.
buildQrcode
();
String
temp
=
rule
.
buildQrcode
();
...
...
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