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
745a2fb6
Commit
745a2fb6
authored
Nov 06, 2024
by
温志超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新生产版本新增逻辑
parent
903d563c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
49 additions
and
3 deletions
+49
-3
messages.properties
admin/src/main/resources/i18n/messages.properties
+3
-0
messages_en.properties
admin/src/main/resources/i18n/messages_en.properties
+3
-0
messages_th.properties
admin/src/main/resources/i18n/messages_th.properties
+4
-1
messages_zh_CN.properties
admin/src/main/resources/i18n/messages_zh_CN.properties
+3
-0
ProProductionSolutionMapper.java
...apper/productionSolution/ProProductionSolutionMapper.java
+2
-0
ProProductionSolutionServiceImpl.java
.../productionSolution/ProProductionSolutionServiceImpl.java
+22
-2
ProProductionSolutionMapper.xml
...er/pro/productionSolution/ProProductionSolutionMapper.xml
+12
-0
No files found.
admin/src/main/resources/i18n/messages.properties
View file @
745a2fb6
...
...
@@ -78,6 +78,9 @@ md.factory.error.not.exist=\u5DE5\u5382\u4E0D\u5B58\u5728
md.workShop.error.not.exist
=
\u
8F66
\u
95F4
\u
4E0D
\u
5B58
\u5728
#md.workStation
md.workStation.error.not.exist
=
\u
5DE5
\u
4F5C
\u
4E2D
\u
5FC3
\u
4E0D
\u
5B58
\u5728
md.workStation.error.not.productionSolutionCode
=
\u
751f
\u
4ea7
\u7248\u
672c
\u
53f7
\u
4e0d
\u5141\u
8bb8
\u
4e3a
\u
7a7a
md.workStation.error.productionSolutionCode.unique
=
\u
8be5
\u
4ea7
\u
54c1
\u
4e0b
\u
5df2
\u6709\u
76f8
\u5173\u
751f
\u
4ea7
\u7248\u
672c
\u
53f7
md.workStation.error.productionSolutionCode.size
=
\u
8be5
\u
4ea7
\u
54c1
\u
4e0b
\u
5df2
\u6709\u
76f8
\u5173\u
751f
\u
4ea7
\u7248\u
672c
\u
53f7
\u
5df2
\u6709\u6570\u
503c
\u
8f83
\u5927\u7684\u
5b58
\u5728
md.workStation.error.cannot.remove
=
\u
8BE5
\u
5DE5
\u
4F5C
\u
4E2D
\u
5FC3
\u
5DF2
\u
7ECF
\u
4F7F
\u7528\u
FF0C
\u
4E0D
\u
80FD
\u5173\u
95ED
#md.workUnit
md.workUnit.error.not.exist
=
\u
5DE5
\u
4F5C
\u5355\u5143\u
4E0D
\u
5B58
\u5728
...
...
admin/src/main/resources/i18n/messages_en.properties
View file @
745a2fb6
...
...
@@ -76,6 +76,9 @@ md.factory.error.not.exist=Factory does not exist.
md.workShop.error.not.exist
=
Workshop does not exist.
#md.workStation
md.workStation.error.not.exist
=
Work center does not exist.
md.workStation.error.not.productionSolutionCode
=
not productionSolutionCode.
md.workStation.error.productionSolutionCode.unique
=
unique productionSolutionCode.
md.workStation.error.productionSolutionCode.size
=
productionSolutionCode : A larger value already exists
md.workStation.error.cannot.remove
=
This work center has been used and cannot be closed.
#md.workUnit
md.workUnit.error.not.exist
=
Work unit does not exist.
...
...
admin/src/main/resources/i18n/messages_th.properties
View file @
745a2fb6
...
...
@@ -213,4 +213,7 @@ qc.error.error5=\u0E1C\u0E25\u0E34\u0E15\u0E20\u0E31\u0E13\u0E11\u0E4C\u0E17\u0E
qc.error.error6
=
\u
0E2B
\u
0E21
\u
0E32
\u
0E22
\u
0E40
\u
0E25
\u
0E02
\u
0E01
\u
0E32
\u
0E23
\u
0E15
\u
0E23
\u
0E27
\u
0E08
\u
0E2A
\u
0E2D
\u
0E1A
\u
0E21
\u
0E35
\u
0E2D
\u
0E22
\u
0E39
\u
0E48
\u
0E41
\u
0E25
\u
0E49
\u
0E27
qc.error.error7
=
\u
0E21
\u
0E35
\u
0E0A
\u
0E37
\u
0E48
\u
0E2D
\u
0E23
\u
0E32
\u
0E22
\u
0E01
\u
0E32
\u
0E23
\u
0E15
\u
0E23
\u
0E27
\u
0E08
\u
0E2A
\u
0E2D
\u
0E1A
\u
0E2D
\u
0E22
\u
0E39
\u
0E48
\u
0E41
\u
0E25
\u
0E49
\u
0E27
#system.printer
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
\ No newline at end of file
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.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
\ No newline at end of file
admin/src/main/resources/i18n/messages_zh_CN.properties
View file @
745a2fb6
...
...
@@ -78,6 +78,9 @@ md.factory.error.not.exist=\u5DE5\u5382\u4E0D\u5B58\u5728
md.workShop.error.not.exist
=
\u
8F66
\u
95F4
\u
4E0D
\u
5B58
\u5728
#md.workStation
md.workStation.error.not.exist
=
\u
5DE5
\u
4F5C
\u
4E2D
\u
5FC3
\u
4E0D
\u
5B58
\u5728
md.workStation.error.not.productionSolutionCode
=
\u
751f
\u
4ea7
\u7248\u
672c
\u
53f7
\u
4e0d
\u5141\u
8bb8
\u
4e3a
\u
7a7a
md.workStation.error.productionSolutionCode.unique
=
\u
8be5
\u
4ea7
\u
54c1
\u
4e0b
\u
5df2
\u6709\u
76f8
\u5173\u
751f
\u
4ea7
\u7248\u
672c
\u
53f7
md.workStation.error.productionSolutionCode.size
=
\u
8be5
\u
4ea7
\u
54c1
\u
4e0b
\u
5df2
\u6709\u
76f8
\u5173\u
751f
\u
4ea7
\u7248\u
672c
\u
53f7
\u
5df2
\u6709\u6570\u
503c
\u
8f83
\u5927\u7684\u
5b58
\u5728
md.workStation.error.cannot.remove
=
\u
8BE5
\u
5DE5
\u
4F5C
\u
4E2D
\u
5FC3
\u
5DF2
\u
7ECF
\u
4F7F
\u7528\u
FF0C
\u
4E0D
\u
80FD
\u5173\u
95ED
#md.workUnit
md.workUnit.error.not.exist
=
\u
5DE5
\u
4F5C
\u5355\u5143\u
4E0D
\u
5B58
\u5728
...
...
mes/src/main/java/com/ximai/mes/pro/mapper/productionSolution/ProProductionSolutionMapper.java
View file @
745a2fb6
...
...
@@ -81,4 +81,6 @@ public interface ProProductionSolutionMapper extends BaseMapper<ProProductionSol
" on pps.production_solution_id=s.production_solution_id \n"
+
" where CONCAT(group_key, group_counter) like concat('%', #{groupCounter}, '%') "
)
ProProductionSolutionSpecificationSheet
selectModule
(
@Param
(
"groupCounter"
)
String
groupCounter
);
List
<
ProProductionSolution
>
selectProductionSolutionCode
(
@Param
(
"itemId"
)
Long
itemId
,
@Param
(
"productionSolutionCode"
)
String
productionSolutionCode
);
}
mes/src/main/java/com/ximai/mes/pro/service/impl/productionSolution/ProProductionSolutionServiceImpl.java
View file @
745a2fb6
...
...
@@ -191,14 +191,34 @@ public class ProProductionSolutionServiceImpl implements IProProductionSolutionS
// 数据转换
String
itemCode
=
proProductionSolutionVo
.
getItemCode
();
MdItem
mdItem
=
null
;
if
(
StringUtils
.
isNotNull
(
itemCode
))
{
MdItem
mdItem
=
mdItemMapper
.
selectMdItemByCodes
(
itemCode
);
mdItem
=
mdItemMapper
.
selectMdItemByCodes
(
itemCode
);
ExceptionUtil
.
checkTrueThrowException
(
ObjectUtil
.
isEmpty
(
mdItem
),
MessageUtils
.
message
(
"pro.material.error.not.exist"
));
if
(
ObjectUtil
.
isNotEmpty
(
mdItem
))
{
proProductionSolution
.
setItemId
(
mdItem
.
getItemId
());
}
}
if
(
StringUtils
.
isEmpty
(
proProductionSolutionVo
.
getProductionSolutionCode
())){
//不允许为空
ExceptionUtil
.
checkTrueThrowException
(
true
,
MessageUtils
.
message
(
"md.workStation.error.not.productionSolutionCode"
));
}
else
{
if
(
mdItem
!=
null
){
//判断编号是否未使用
List
<
ProProductionSolution
>
proProductionSolutions
=
proProductionSolutionMapper
.
selectProductionSolutionCode
(
mdItem
.
getItemId
(),
proProductionSolutionVo
.
getProductionSolutionCode
());
ExceptionUtil
.
checkTrueThrowException
(
proProductionSolutions
.
size
()
>
0
,
MessageUtils
.
message
(
"md.workStation.error.productionSolutionCode.unique"
));
//判断产品相关编号大小
proProductionSolutions
=
proProductionSolutionMapper
.
selectProductionSolutionCode
(
mdItem
.
getItemId
(),
null
);
if
(
proProductionSolutions
.
size
()
>
0
){
if
(
StringUtils
.
isNotEmpty
(
proProductionSolutions
.
get
(
0
).
getProductionSolutionCode
())
&&
proProductionSolutions
.
get
(
0
).
getProductionSolutionCode
().
compareTo
(
proProductionSolutionVo
.
getProductionSolutionCode
())
>
0
){
ExceptionUtil
.
checkTrueThrowException
(
true
,
MessageUtils
.
message
(
"md.workStation.error.productionSolutionCode.size"
));
}
}
}
}
// 保存主数据
int
i
=
proProductionSolutionMapper
.
insertProProductionSolution
(
proProductionSolution
);
...
...
@@ -331,7 +351,7 @@ public class ProProductionSolutionServiceImpl implements IProProductionSolutionS
for
(
ProProductionSolutionProcessToolVo
proProductionSolutionProcessToolVo
:
toolList
)
{
ProProductionSolutionProcessTool
proProductionSolutionProcessTool
=
new
ProProductionSolutionProcessTool
();
BeanUtils
.
copyProperties
(
proProductionSolutionProcessToolVo
,
proProductionSolutionProcessTool
);
MdItem
mdItem
=
mdItemMapper
.
selectMdItemByCodea
(
proProductionSolutionProcessToolVo
.
getItemCode
());
mdItem
=
mdItemMapper
.
selectMdItemByCodea
(
proProductionSolutionProcessToolVo
.
getItemCode
());
proProductionSolutionProcessTool
.
setToolId
(
mdItem
.
getItemId
());
proProductionSolutionProcessTool
.
setPrototypeSolutionId
(
productionSolutionId
);
proProductionSolutionProcessTool
.
setPrototypeSolutionProcessId
(
productionSolutionProcessId
);
...
...
mes/src/main/resources/mapper/pro/productionSolution/ProProductionSolutionMapper.xml
View file @
745a2fb6
...
...
@@ -129,6 +129,18 @@
where pps.sap_prototype_make_code = #{sapPrototypeMakeCode}
</select>
<select
id=
"selectProductionSolutionCode"
resultType=
"com.ximai.mes.pro.domain.productionSolution.ProProductionSolution"
>
select * from pro_production_solution
<where>
<if
test=
"productionSolutionCode != null"
>
production_solution_code = #{productionSolutionCode}
</if>
and item_id = #{itemId}
</where>
order by production_solution_code desc
</select>
<insert
id=
"insertProProductionSolution"
parameterType=
"ProProductionSolution"
useGeneratedKeys=
"true"
...
...
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