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
7c5dacbb
Commit
7c5dacbb
authored
Oct 30, 2024
by
温志超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改异常单据的BUG
parent
8329f4d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
ProWorkorderVo.java
...main/java/com/ximai/mes/pro/domain/vo/ProWorkorderVo.java
+19
-0
QcAbnormalReportServiceImpl.java
...imai/mes/qc/service/impl/QcAbnormalReportServiceImpl.java
+11
-2
No files found.
mes/src/main/java/com/ximai/mes/pro/domain/vo/ProWorkorderVo.java
View file @
7c5dacbb
...
@@ -298,4 +298,23 @@ public class ProWorkorderVo extends BaseEntity {
...
@@ -298,4 +298,23 @@ public class ProWorkorderVo extends BaseEntity {
@ApiModelProperty
(
"生产版本名称"
)
@ApiModelProperty
(
"生产版本名称"
)
private
String
productionSolutionName
;
private
String
productionSolutionName
;
@ApiModelProperty
(
"订单单别"
)
private
String
orderType
;
@ApiModelProperty
(
"订单单号"
)
private
String
orderCode
;
@ApiModelProperty
(
"订单序号"
)
private
String
orderSerial
;
@ApiModelProperty
(
"内部图号"
)
private
String
inDrawingNo
;
@ApiModelProperty
(
"客户图号"
)
private
String
customerDrawingNo
;
@ApiModelProperty
(
"客户项目号"
)
private
String
customerProjectNo
;
}
}
mes/src/main/java/com/ximai/mes/qc/service/impl/QcAbnormalReportServiceImpl.java
View file @
7c5dacbb
...
@@ -173,9 +173,18 @@ public class QcAbnormalReportServiceImpl implements IQcAbnormalReportService {
...
@@ -173,9 +173,18 @@ public class QcAbnormalReportServiceImpl implements IQcAbnormalReportService {
@Override
@Override
public
void
updateQcAbnormalReportAbmornalStatud
(
QcAbnormalReport
qcAbnormalReportInput
)
{
public
void
updateQcAbnormalReportAbmornalStatud
(
QcAbnormalReport
qcAbnormalReportInput
)
{
QcAbnormalReport
qcAbnormalReport
=
qcAbnormalReportMapper
.
selectQcAbnormalReportByAbnormalReportId
(
qcAbnormalReportInput
.
getAbnormalReportId
());
QcAbnormalReport
qcAbnormalReport
=
qcAbnormalReportMapper
.
selectQcAbnormalReportByAbnormalReportId
(
qcAbnormalReportInput
.
getAbnormalReportId
());
if
(!
qcAbnormalReport
.
getAbnormalStatus
().
equals
(
"SUBMIT"
))
{
if
(
qcAbnormalReportInput
.
getAbnormalStatus
().
equals
(
"CLOSE"
)){
throw
new
ServiceException
(
MessageUtils
.
message
(
"车间异常单不处于处理中状态无法完成"
));
//CLOSE
if
(!
qcAbnormalReport
.
getAbnormalStatus
().
equals
(
"SUBMIT"
)
&&
!
qcAbnormalReport
.
getAbnormalStatus
().
equals
(
"NOT"
))
{
throw
new
ServiceException
(
MessageUtils
.
message
(
"车间异常单不处于处理中或者待处理状态无法关闭"
));
}
}
else
{
//FINISH
if
(!
qcAbnormalReport
.
getAbnormalStatus
().
equals
(
"SUBMIT"
))
{
throw
new
ServiceException
(
MessageUtils
.
message
(
"车间异常单不处于处理中状态无法完成"
));
}
}
}
//修改关联名称的工作单元的故障状态
//修改关联名称的工作单元的故障状态
MdWorkunitVo
mdWorkunitVo
=
iMdWorkunitService
.
selectMdWorkunitByWorkunitId
(
qcAbnormalReport
.
getWorkstationId
());
MdWorkunitVo
mdWorkunitVo
=
iMdWorkunitService
.
selectMdWorkunitByWorkunitId
(
qcAbnormalReport
.
getWorkstationId
());
if
(
mdWorkunitVo
.
getFaultFlag
().
equals
(
"Y"
))
{
if
(
mdWorkunitVo
.
getFaultFlag
().
equals
(
"Y"
))
{
...
...
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