Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kwell-mes
Project
Project
Details
Activity
Releases
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
gavelinfo
kwell-mes
Commits
f3a790dc
Commit
f3a790dc
authored
Mar 11, 2022
by
yff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改BUG
parent
5e6e7019
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
10 deletions
+65
-10
GpfkDao.java
gavel/src/main/java/com/gavel/kwell/dao/GpfkDao.java
+1
-1
GpfkDaoImpl.java
...l/src/main/java/com/gavel/kwell/dao/impl/GpfkDaoImpl.java
+8
-4
GpfkService.java
gavel/src/main/java/com/gavel/kwell/service/GpfkService.java
+3
-1
GpfkServiceImpl.java
...in/java/com/gavel/kwell/service/impl/GpfkServiceImpl.java
+53
-4
No files found.
gavel/src/main/java/com/gavel/kwell/dao/GpfkDao.java
View file @
f3a790dc
...
...
@@ -128,6 +128,6 @@ public interface GpfkDao extends BaseDao {
public
Wogylx
getLastGx
(
Wogylx
wogylx
);
public
D
ouble
getNowGyFksl
(
Wogylx
wogylx
);
public
d
ouble
getNowGyFksl
(
Wogylx
wogylx
);
}
gavel/src/main/java/com/gavel/kwell/dao/impl/GpfkDaoImpl.java
View file @
f3a790dc
...
...
@@ -1277,15 +1277,19 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
sqlMap
.
append
(
" and BZGX_GZZXID = :pGZZXID "
);
sqlMap
.
setParamValue
(
"pGZZXID"
,
wogylx
.
getGzzxid
());
}
sqlMap
.
append
(
" and BZGX_XH < :pXH "
);
sqlMap
.
append
(
"order by BZGX_XH desc"
);
if
(
StringUtils
.
isNotEmpty
(
wogylx
.
getWoid
())){
sqlMap
.
append
(
" and WOGYLX_WOID = :pWOID "
);
sqlMap
.
setParamValue
(
"pWOID"
,
wogylx
.
getWoid
());
}
sqlMap
.
append
(
" and WOGYLX_XH < :pXH "
);
sqlMap
.
append
(
"order by WOGYLX_XH desc"
);
sqlMap
.
setParamValue
(
"pXH"
,
wogylx
.
getXh
());
return
sqlMap
.
queryEntity
(
Wogylx
.
class
);
}
@Override
public
D
ouble
getNowGyFksl
(
Wogylx
wogylx
)
{
public
d
ouble
getNowGyFksl
(
Wogylx
wogylx
)
{
SqlMap
sqlMap
=
new
SqlMap
();
sqlMap
.
append
(
"select count(1) "
);
sqlMap
.
append
(
"from GPFK "
);
...
...
@@ -1295,7 +1299,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
sqlMap
.
append
(
" and WOGYLX_ID = :pWOGTLXID "
);
sqlMap
.
setParamValue
(
"pWOGTLXID"
,
wogylx
.
getId
());
}
return
sqlMap
.
query
Entity
(
Double
.
class
);
return
sqlMap
.
query
Double
(
);
}
...
...
gavel/src/main/java/com/gavel/kwell/service/GpfkService.java
View file @
f3a790dc
...
...
@@ -106,7 +106,9 @@ public interface GpfkService extends BaseEditService {
public
BzgxVO
login
(
String
usersn
,
String
bzgxid
);
public
boolean
updatePcjh
();
public
void
updatePcjh
(
String
woid
,
String
fklx
,
boolean
hgbz
);
public
void
cancelPcjh
(
String
woid
,
String
fklx
,
boolean
hgbz
);
/** 科威尔mes工票反馈重写--end */
}
gavel/src/main/java/com/gavel/kwell/service/impl/GpfkServiceImpl.java
View file @
f3a790dc
...
...
@@ -68,8 +68,13 @@ import com.gavel.kzzx.vo.YymkCondition;
import
com.gavel.kzzx.vo.YymkVO
;
import
com.gavel.persistence.entity.EntityDataFactory
;
import
com.gavel.persistence.sql.RecordSet
;
import
com.gavel.wo.persistent.Pcjhmx
;
import
com.gavel.wo.persistent.Wogylx
;
import
com.gavel.wo.persistent.Wosn
;
import
com.gavel.wo.service.PcjhmxService
;
import
com.gavel.wo.vo.PcjhCondition
;
import
com.gavel.wo.vo.PcjhmxCondition
;
import
com.gavel.wo.vo.PcjhmxVO
;
import
com.gavel.wo.vo.WobomVO
;
...
...
@@ -96,6 +101,9 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
@Autowired
private
YymkService
yymkService
;
@Autowired
private
PcjhmxService
pcjhmxService
;
@Autowired
private
AttachmentService
attachmentService
;
...
...
@@ -760,7 +768,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
if
(!
NumberUtils
.
equals
(
wogylx
.
getXh
(),
0
)){
Wogylx
existLastWogylx
=
gpfkDao
.
getLastGx
(
wogylx
);
if
(
existLastWogylx
!=
null
){
D
ouble
gpfksl
=
gpfkDao
.
getNowGyFksl
(
existLastWogylx
);
d
ouble
gpfksl
=
gpfkDao
.
getNowGyFksl
(
existLastWogylx
);
if
(
gpfksl
<
existLastWogylx
.
getXqsl
())
{
throwReturnMessage
(
"上道工序未完成不能装配此道工序"
);
}
...
...
@@ -793,8 +801,10 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
EntityDataFactory
.
copyEntity
(
gpfkVo
,
gpfk
);
if
(
SmCodeEnum
.
OKBZ
.
getId
().
equals
(
hgsn
))
{
gpfk
.
setHgsl
(
1.0
);
gpfk
.
setBhgsl
(
0.0
);
}
else
if
(
SmCodeEnum
.
NGBZ
.
getId
().
equals
(
hgsn
))
{
gpfk
.
setHgsl
(
0.0
);
gpfk
.
setBhgsl
(
1.0
);
}
else
{
...
...
@@ -892,10 +902,49 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
return
bzgxVO
;
}
@Override
public
boolean
updatePcjh
()
{
// TODO Auto-generated method stub
return
false
;
public
void
updatePcjh
(
String
woid
,
String
fklx
,
boolean
hgbz
)
{
PcjhmxCondition
pcjhmxCondition
=
new
PcjhmxCondition
();
pcjhmxCondition
.
setWoid
(
woid
);
List
<
PcjhmxVO
>
pcjhmxVOs
=
pcjhmxService
.
query
(
pcjhmxCondition
).
getRecords
();
if
(
pcjhmxVOs
!=
null
&&
pcjhmxVOs
.
size
()>
0
)
{
for
(
PcjhmxVO
pcjhmxVO:
pcjhmxVOs
)
{
Pcjhmx
pcjhmx
=
new
Pcjhmx
();
EntityDataFactory
.
copyEntity
(
pcjhmxVO
,
pcjhmx
);
pcjhmx
.
setWgsl
(
pcjhmx
.
getWgsl
()+
1.0
);
if
(!
fklx
.
equals
(
YymkFKEnum
.
ZP
.
getId
()))
{
if
(
hgbz
)
{
pcjhmx
.
setHgsl
(
pcjhmx
.
getHgsl
()+
1.0
);
}
else
{
pcjhmx
.
setBhgsl
(
pcjhmx
.
getBhgsl
()+
1.0
);
}
}
}
}
}
@Override
public
void
cancelPcjh
(
String
woid
,
String
fklx
,
boolean
hgbz
)
{
PcjhmxCondition
pcjhmxCondition
=
new
PcjhmxCondition
();
pcjhmxCondition
.
setWoid
(
woid
);
List
<
PcjhmxVO
>
pcjhmxVOs
=
pcjhmxService
.
query
(
pcjhmxCondition
).
getRecords
();
if
(
pcjhmxVOs
!=
null
&&
pcjhmxVOs
.
size
()>
0
)
{
for
(
PcjhmxVO
pcjhmxVO:
pcjhmxVOs
)
{
Pcjhmx
pcjhmx
=
new
Pcjhmx
();
EntityDataFactory
.
copyEntity
(
pcjhmxVO
,
pcjhmx
);
pcjhmx
.
setWgsl
(
pcjhmx
.
getWgsl
()-
1.0
);
if
(!
fklx
.
equals
(
YymkFKEnum
.
ZP
.
getId
()))
{
if
(
hgbz
)
{
pcjhmx
.
setHgsl
(
pcjhmx
.
getHgsl
()-
1.0
);
}
else
{
pcjhmx
.
setBhgsl
(
pcjhmx
.
getBhgsl
()-
1.0
);
}
}
}
}
}
...
...
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