Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
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
12b48924
Commit
12b48924
authored
Mar 25, 2022
by
黄自鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整bug
parent
ddd5d6d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
59 deletions
+59
-59
GpfkDaoImpl.java
...l/src/main/java/com/gavel/kwell/dao/impl/GpfkDaoImpl.java
+16
-16
GpfkServiceImpl.java
...in/java/com/gavel/kwell/service/impl/GpfkServiceImpl.java
+43
-43
No files found.
gavel/src/main/java/com/gavel/kwell/dao/impl/GpfkDaoImpl.java
View file @
12b48924
...
@@ -900,9 +900,9 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
...
@@ -900,9 +900,9 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
return
sqlMap
.
getRecordSet
();
return
sqlMap
.
getRecordSet
();
}
}
@Override
@Override
public
GpfkVO
queryDailyFkInfo
(
GpfkCondition
condition
){
public
GpfkVO
queryDailyFkInfo
(
GpfkCondition
condition
){
SqlMap
sqlMap
=
new
SqlMap
();
SqlMap
sqlMap
=
new
SqlMap
();
...
@@ -1084,7 +1084,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
...
@@ -1084,7 +1084,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
return
sqlMap
.
queryEntity
(
GpfkVO
.
class
);
return
sqlMap
.
queryEntity
(
GpfkVO
.
class
);
}
}
@Override
@Override
public
WosngzVO
queryKwellWoBySnid
(
String
snid
){
public
WosngzVO
queryKwellWoBySnid
(
String
snid
){
SqlMap
sqlMap
=
new
SqlMap
();
SqlMap
sqlMap
=
new
SqlMap
();
...
@@ -1174,7 +1174,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
...
@@ -1174,7 +1174,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
}
}
return
sqlMap
.
queryEntity
(
GylxVO
.
class
);
return
sqlMap
.
queryEntity
(
GylxVO
.
class
);
}
}
@Override
@Override
public
FkVO
queryKwellGpfkByWosnAndGxid
(
FkCondition
condition
){
public
FkVO
queryKwellGpfkByWosnAndGxid
(
FkCondition
condition
){
SqlMap
sqlMap
=
new
SqlMap
();
SqlMap
sqlMap
=
new
SqlMap
();
...
@@ -1251,7 +1251,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
...
@@ -1251,7 +1251,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
sqlMap
.
setParamValue
(
" pBZGXID "
,
bzgx
);
sqlMap
.
setParamValue
(
" pBZGXID "
,
bzgx
);
return
sqlMap
.
queryEntity
(
FkVO
.
class
);
return
sqlMap
.
queryEntity
(
FkVO
.
class
);
}
}
...
@@ -1287,7 +1287,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
...
@@ -1287,7 +1287,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
}
}
return
sqlMap
.
queryDouble
();
return
sqlMap
.
queryDouble
();
}
}
@Override
@Override
public
List
<
WobomVO
>
queryWobomByFkidAndWlid
(
String
fkid
,
String
wlid
,
String
bzlx
)
{
public
List
<
WobomVO
>
queryWobomByFkidAndWlid
(
String
fkid
,
String
wlid
,
String
bzlx
)
{
SqlMap
sqlMap
=
new
SqlMap
();
SqlMap
sqlMap
=
new
SqlMap
();
...
@@ -1376,7 +1376,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
...
@@ -1376,7 +1376,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
sqlMap
.
append
(
"LEFT JOIN WLXX ON WLXX_ID = GPHY_WLID "
);
sqlMap
.
append
(
"LEFT JOIN WLXX ON WLXX_ID = GPHY_WLID "
);
sqlMap
.
append
(
"where 1 = 1 "
);
sqlMap
.
append
(
"where 1 = 1 "
);
if
(
StringUtils
.
isNotEmpty
(
condition
.
getSnid
())){
if
(
StringUtils
.
isNotEmpty
(
condition
.
getSnid
())){
sqlMap
.
append
(
" and (
WLXX_CODE
= :pSnid) "
);
sqlMap
.
append
(
" and (
GPHY_WLSNID
= :pSnid) "
);
sqlMap
.
setParamValue
(
"pSnid"
,
condition
.
getSnid
());
sqlMap
.
setParamValue
(
"pSnid"
,
condition
.
getSnid
());
}
}
if
(
StringUtils
.
isNotEmpty
(
condition
.
getMid
())){
if
(
StringUtils
.
isNotEmpty
(
condition
.
getMid
())){
...
@@ -1447,7 +1447,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
...
@@ -1447,7 +1447,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
sqlMap
.
append
(
"order by GPFK_FKSJ desc "
);
sqlMap
.
append
(
"order by GPFK_FKSJ desc "
);
return
sqlMap
.
query
(
FkVO
.
class
);
return
sqlMap
.
query
(
FkVO
.
class
);
}
}
@Override
@Override
public
FkVO
queryKwellWoBySnidUptoDate
(
String
wosnid
,
String
bzgx
)
{
public
FkVO
queryKwellWoBySnidUptoDate
(
String
wosnid
,
String
bzgx
)
{
SqlMap
sqlMap
=
new
SqlMap
();
SqlMap
sqlMap
=
new
SqlMap
();
...
@@ -1468,7 +1468,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
...
@@ -1468,7 +1468,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
sqlMap
.
append
(
" order by GPFK_FKSJ DESC "
);
sqlMap
.
append
(
" order by GPFK_FKSJ DESC "
);
return
sqlMap
.
queryEntity
(
FkVO
.
class
);
return
sqlMap
.
queryEntity
(
FkVO
.
class
);
}
}
@Override
@Override
public
List
<
FkVO
>
queryKwellAllGpfkByWosnAndGxid
(
FkCondition
condition
){
public
List
<
FkVO
>
queryKwellAllGpfkByWosnAndGxid
(
FkCondition
condition
){
SqlMap
sqlMap
=
new
SqlMap
();
SqlMap
sqlMap
=
new
SqlMap
();
...
@@ -1530,7 +1530,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
...
@@ -1530,7 +1530,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
return
sqlMap
.
queryEntity
(
GpfkVO
.
class
);
return
sqlMap
.
queryEntity
(
GpfkVO
.
class
);
}
}
@Override
@Override
public
Wogylx
getLastGx
(
Wogylx
wogylx
)
{
public
Wogylx
getLastGx
(
Wogylx
wogylx
)
{
SqlMap
sqlMap
=
new
SqlMap
();
SqlMap
sqlMap
=
new
SqlMap
();
...
@@ -1558,8 +1558,8 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
...
@@ -1558,8 +1558,8 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
sqlMap
.
setParamValue
(
"pXH"
,
wogylx
.
getXh
());
sqlMap
.
setParamValue
(
"pXH"
,
wogylx
.
getXh
());
return
sqlMap
.
queryEntity
(
Wogylx
.
class
);
return
sqlMap
.
queryEntity
(
Wogylx
.
class
);
}
}
@Override
@Override
public
Wogylx
getNextGxUpdate
(
Wogylx
wogylx
)
{
public
Wogylx
getNextGxUpdate
(
Wogylx
wogylx
)
{
SqlMap
sqlMap
=
new
SqlMap
();
SqlMap
sqlMap
=
new
SqlMap
();
...
@@ -1731,7 +1731,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
...
@@ -1731,7 +1731,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
sqlMap
.
setParamValue
(
"WOBOM_WLID"
,
wlid
);
sqlMap
.
setParamValue
(
"WOBOM_WLID"
,
wlid
);
}
}
sqlMap
.
append
(
" group by WOSN_CODE,bzgx_id,wobom_wlid "
);
sqlMap
.
append
(
" group by WOSN_CODE,bzgx_id,wobom_wlid "
);
return
sqlMap
.
queryDouble
();
return
sqlMap
.
queryDouble
();
}
}
...
@@ -1761,7 +1761,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
...
@@ -1761,7 +1761,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
sqlMap
.
append
(
"order by GPFK_FKSJ desc, GPFK_FKGX "
);
sqlMap
.
append
(
"order by GPFK_FKSJ desc, GPFK_FKGX "
);
return
sqlMap
.
queryEntity
(
GpfkVO
.
class
);
return
sqlMap
.
queryEntity
(
GpfkVO
.
class
);
}
}
}
}
gavel/src/main/java/com/gavel/kwell/service/impl/GpfkServiceImpl.java
View file @
12b48924
...
@@ -86,43 +86,43 @@ import com.gavel.wo.vo.WobomVO;
...
@@ -86,43 +86,43 @@ import com.gavel.wo.vo.WobomVO;
@Service
(
"gpfkService"
)
@Service
(
"gpfkService"
)
@Transactional
@Transactional
public
class
GpfkServiceImpl
extends
BaseEditServiceImpl
implements
GpfkService
{
public
class
GpfkServiceImpl
extends
BaseEditServiceImpl
implements
GpfkService
{
@Autowired
@Autowired
private
GpfkDao
gpfkDao
;
private
GpfkDao
gpfkDao
;
@Autowired
@Autowired
private
GphyDao
gphyDao
;
private
GphyDao
gphyDao
;
@Autowired
@Autowired
private
GphyDao
gphydao
;
private
GphyDao
gphydao
;
@Autowired
@Autowired
private
CommonService
commonService
;
private
CommonService
commonService
;
@Autowired
@Autowired
private
BzgxService
bzgxService
;
private
BzgxService
bzgxService
;
@Autowired
@Autowired
private
UserRoleService
userRoleService
;
private
UserRoleService
userRoleService
;
@Autowired
@Autowired
private
GphyService
gphyService
;
private
GphyService
gphyService
;
@Autowired
@Autowired
private
YymkService
yymkService
;
private
YymkService
yymkService
;
@Autowired
@Autowired
private
PcjhmxService
pcjhmxService
;
private
PcjhmxService
pcjhmxService
;
@Autowired
@Autowired
private
AttachmentService
attachmentService
;
private
AttachmentService
attachmentService
;
@Autowired
@Autowired
private
CoderuleService
coderuleService
;
private
CoderuleService
coderuleService
;
@Autowired
@Autowired
private
UserDao
userDao
;
private
UserDao
userDao
;
@Override
@Override
public
void
initService
()
{
public
void
initService
()
{
...
@@ -183,7 +183,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -183,7 +183,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
else
{
else
{
cancelPcjh
(
wogylx
.
getWoid
(),
wogylx
.
getGxlx
(),
true
);
cancelPcjh
(
wogylx
.
getWoid
(),
wogylx
.
getGxlx
(),
true
);
}
}
}
}
}
}
}
}
...
@@ -772,7 +772,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -772,7 +772,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
throwReturnMessage
(
"用户不存在!"
);
throwReturnMessage
(
"用户不存在!"
);
}
}
if
(
StringUtils
.
equalsIgnoreCase
(
user
.
getTybz
(),
"Y"
))
{
if
(
StringUtils
.
equalsIgnoreCase
(
user
.
getTybz
(),
"Y"
))
{
throwReturnMessage
(
"用户禁用!"
);
throwReturnMessage
(
"用户禁用!"
);
}
}
if
(!
BooleanEnum
.
equalsYes
(
user
.
getLogin
())){
if
(!
BooleanEnum
.
equalsYes
(
user
.
getLogin
())){
throwReturnMessage
(
"用户非登录用户!"
);
throwReturnMessage
(
"用户非登录用户!"
);
...
@@ -900,9 +900,9 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -900,9 +900,9 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
}
}
return
null
;
return
null
;
}
}
@Override
@Override
public
FkVO
jyfk
(
FkCondition
fkCondition
)
{
public
FkVO
jyfk
(
FkCondition
fkCondition
)
{
...
@@ -1005,7 +1005,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -1005,7 +1005,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
else
{
else
{
updatePcjh
(
wogylx
.
getWoid
(),
wogylx
.
getGxlx
(),
true
);
updatePcjh
(
wogylx
.
getWoid
(),
wogylx
.
getGxlx
(),
true
);
}
}
}
}
return
newFkVo
;
return
newFkVo
;
}
}
else
if
(
snType
.
equals
(
SmCodeEnum
.
NGBZ
.
getId
()))
{
else
if
(
snType
.
equals
(
SmCodeEnum
.
NGBZ
.
getId
()))
{
...
@@ -1051,13 +1051,13 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -1051,13 +1051,13 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
else
{
else
{
updatePcjh
(
wogylx
.
getWoid
(),
wogylx
.
getGxlx
(),
true
);
updatePcjh
(
wogylx
.
getWoid
(),
wogylx
.
getGxlx
(),
true
);
}
}
}
}
return
newFkVo
;
return
newFkVo
;
}
}
else
{
else
{
throwReturnMessage
(
"序列号类型错误,请重新确认!"
);
throwReturnMessage
(
"序列号类型错误,请重新确认!"
);
}
}
return
fkVO
;
return
fkVO
;
}
}
...
@@ -1162,7 +1162,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -1162,7 +1162,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
else
{
else
{
updatePcjh
(
wogylx
.
getWoid
(),
wogylx
.
getGxlx
(),
true
);
updatePcjh
(
wogylx
.
getWoid
(),
wogylx
.
getGxlx
(),
true
);
}
}
}
}
return
newFkVo
;
return
newFkVo
;
}
}
else
if
(
snType
.
equals
(
SmCodeEnum
.
NGBZ
.
getId
()))
{
else
if
(
snType
.
equals
(
SmCodeEnum
.
NGBZ
.
getId
()))
{
...
@@ -1208,16 +1208,16 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -1208,16 +1208,16 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
else
{
else
{
updatePcjh
(
wogylx
.
getWoid
(),
wogylx
.
getGxlx
(),
true
);
updatePcjh
(
wogylx
.
getWoid
(),
wogylx
.
getGxlx
(),
true
);
}
}
}
}
return
newFkVo
;
return
newFkVo
;
}
}
else
{
else
{
throwReturnMessage
(
"序列号类型错误,请重新确认!"
);
throwReturnMessage
(
"序列号类型错误,请重新确认!"
);
}
}
return
fkVO
;
return
fkVO
;
}
}
@Override
@Override
public
FkVO
zpfk
(
FkCondition
fkCondition
)
{
public
FkVO
zpfk
(
FkCondition
fkCondition
)
{
if
(
StringUtils
.
isEmpty
(
fkCondition
.
getSncode
()))
{
if
(
StringUtils
.
isEmpty
(
fkCondition
.
getSncode
()))
{
...
@@ -1269,7 +1269,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -1269,7 +1269,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
if
(!
curFkVo
.
getWozt
().
equals
(
"R"
))
{
if
(!
curFkVo
.
getWozt
().
equals
(
"R"
))
{
throwReturnMessage
(
"该订单未下达无法进行反馈,请重新确认!"
);
throwReturnMessage
(
"该订单未下达无法进行反馈,请重新确认!"
);
}
}
if
(
StringUtils
.
isNotEmpty
(
curFkVo
.
getId
()))
{
if
(
StringUtils
.
isNotEmpty
(
curFkVo
.
getId
()))
{
GphyCondition
hyCondition
=
new
GphyCondition
();
GphyCondition
hyCondition
=
new
GphyCondition
();
hyCondition
.
setMid
(
curFkVo
.
getId
());
hyCondition
.
setMid
(
curFkVo
.
getId
());
...
@@ -1348,7 +1348,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -1348,7 +1348,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
else
{
else
{
updatePcjh
(
wogylx
.
getWoid
(),
wogylx
.
getGxlx
(),
true
);
updatePcjh
(
wogylx
.
getWoid
(),
wogylx
.
getGxlx
(),
true
);
}
}
}
}
}
}
gpfkVo
.
setSntype
(
SmCodeEnum
.
WLID
.
getId
());
gpfkVo
.
setSntype
(
SmCodeEnum
.
WLID
.
getId
());
Wlxx
cuwlxx
=
gpfkDao
.
queryById
(
Wlxx
.
class
,
wlid
);
Wlxx
cuwlxx
=
gpfkDao
.
queryById
(
Wlxx
.
class
,
wlid
);
...
@@ -1360,7 +1360,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -1360,7 +1360,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
throwReturnMessage
(
"序列号类型错误,请重新确认!"
);
throwReturnMessage
(
"序列号类型错误,请重新确认!"
);
}
}
return
fkVO
;
return
fkVO
;
}
}
/************ -------------------科威尔反馈升级--BEGIN--------- ******/
/************ -------------------科威尔反馈升级--BEGIN--------- ******/
...
@@ -1388,7 +1388,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -1388,7 +1388,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
}
}
if
((
existLastWogylx
.
getGxlx
()).
equals
(
YymkFKEnum
.
JY
.
getId
()))
{
if
((
existLastWogylx
.
getGxlx
()).
equals
(
YymkFKEnum
.
JY
.
getId
()))
{
if
(
StringUtils
.
isNotEmpty
(
gpfkVo2
.
getHgbz
())&&(
gpfkVo2
.
getHgbz
().
equals
(
"Y"
)||
gpfkVo2
.
getHgdj
().
equals
(
GpfkHgEnum
.
JYHG
.
getId
())||
gpfkVo2
.
getHgdj
().
equals
(
GpfkHgEnum
.
WXHG
.
getId
())))
{
if
(
StringUtils
.
isNotEmpty
(
gpfkVo2
.
getHgbz
())&&(
gpfkVo2
.
getHgbz
().
equals
(
"Y"
)||
gpfkVo2
.
getHgdj
().
equals
(
GpfkHgEnum
.
JYHG
.
getId
())||
gpfkVo2
.
getHgdj
().
equals
(
GpfkHgEnum
.
WXHG
.
getId
())))
{
}
}
else
{
else
{
throwReturnMessage
(
"上道工序检验不合格不能反馈此道工序,请重新确认!"
);
throwReturnMessage
(
"上道工序检验不合格不能反馈此道工序,请重新确认!"
);
...
@@ -1404,7 +1404,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -1404,7 +1404,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
throwReturnMessage
(
"该订单未下达无法进行反馈,请重新确认!"
);
throwReturnMessage
(
"该订单未下达无法进行反馈,请重新确认!"
);
}
}
}
}
/** 判断下一道工序是否存在反馈记录 */
/** 判断下一道工序是否存在反馈记录 */
public
void
checkNextBzgxIfExistFk
(
FkVO
curFkVo
)
{
public
void
checkNextBzgxIfExistFk
(
FkVO
curFkVo
)
{
if
(
curFkVo
==
null
)
{
if
(
curFkVo
==
null
)
{
...
@@ -1428,18 +1428,18 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -1428,18 +1428,18 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
throwReturnMessage
(
"该订单未下达无法进行反馈,请重新确认!"
);
throwReturnMessage
(
"该订单未下达无法进行反馈,请重新确认!"
);
}
}
}
}
/** 判断下一道工序是否存在反馈记录 */
/** 判断下一道工序是否存在反馈记录 */
public
boolean
checkIsCurrentGx
(
FkVO
curFkVo
)
{
public
boolean
checkIsCurrentGx
(
FkVO
curFkVo
)
{
boolean
flag
=
false
;
boolean
flag
=
false
;
GpfkVO
gpfk
=
gpfkDao
.
queryGpfkByWosnUptoDate
(
curFkVo
.
getWosnCode
());
GpfkVO
gpfk
=
gpfkDao
.
queryGpfkByWosnUptoDate
(
curFkVo
.
getWosnCode
());
if
((
curFkVo
!=
null
&&
gpfk
!=
null
&&
StringUtils
.
isNotEmpty
(
gpfk
.
getFkgx
())&&
StringUtils
.
isNotEmpty
(
curFkVo
.
getWogylx
())&&
gpfk
.
getFkgx
().
equals
(
curFkVo
.
getWogylx
())))
if
((
curFkVo
!=
null
&&
gpfk
!=
null
&&
StringUtils
.
isNotEmpty
(
gpfk
.
getFkgx
())&&
StringUtils
.
isNotEmpty
(
curFkVo
.
getWogylxid
())&&
gpfk
.
getFkgx
().
equals
(
curFkVo
.
getWogylxid
())))
{
{
flag
=
true
;
flag
=
true
;
}
}
return
flag
;
return
flag
;
}
}
/** 判断装配工序是否装配完成*/
/** 判断装配工序是否装配完成*/
public
boolean
checkIfZpCompleteByWosnAndBzgx
(
String
wosnid
,
String
bzgx
)
{
public
boolean
checkIfZpCompleteByWosnAndBzgx
(
String
wosnid
,
String
bzgx
)
{
boolean
flag
=
false
;
boolean
flag
=
false
;
...
@@ -1448,7 +1448,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -1448,7 +1448,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
}
}
return
flag
;
return
flag
;
}
}
/** 判断该物料是否装配完成*/
/** 判断该物料是否装配完成*/
public
void
compareIsZpComplete
(
GphyCondition
gphyCondition
)
{
public
void
compareIsZpComplete
(
GphyCondition
gphyCondition
)
{
WlslItem
wlslItem
=
gpfkDao
.
queryKwellZpslGphy
(
gphyCondition
);
WlslItem
wlslItem
=
gpfkDao
.
queryKwellZpslGphy
(
gphyCondition
);
...
@@ -1459,14 +1459,14 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -1459,14 +1459,14 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
}
}
}
}
}
}
/** 查询订单清单及已经装配数量 */
/** 查询订单清单及已经装配数量 */
@Override
@Override
public
List
<
WobomVO
>
queryWobomByWoUpgrade
(
String
wosn
,
String
bzgx
)
{
public
List
<
WobomVO
>
queryWobomByWoUpgrade
(
String
wosn
,
String
bzgx
)
{
return
gpfkDao
.
queryWobomByWosnAndBzgx
(
wosn
,
bzgx
);
return
gpfkDao
.
queryWobomByWosnAndBzgx
(
wosn
,
bzgx
);
}
}
/**
/**
* 装配反馈流程升级
* 装配反馈流程升级
*/
*/
...
@@ -1577,7 +1577,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -1577,7 +1577,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
else
{
else
{
updatePcjh
(
wogylx
.
getWoid
(),
wogylx
.
getGxlx
(),
true
);
updatePcjh
(
wogylx
.
getWoid
(),
wogylx
.
getGxlx
(),
true
);
}
}
}
}
}
}
gpfkVo
.
setSntype
(
SmCodeEnum
.
WLID
.
getId
());
gpfkVo
.
setSntype
(
SmCodeEnum
.
WLID
.
getId
());
Wlxx
cuwlxx
=
gpfkDao
.
queryById
(
Wlxx
.
class
,
wlid
);
Wlxx
cuwlxx
=
gpfkDao
.
queryById
(
Wlxx
.
class
,
wlid
);
...
@@ -1628,7 +1628,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -1628,7 +1628,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
if
(
StringUtils
.
isEmpty
(
fkCondition
.
getWosncode
()))
{
if
(
StringUtils
.
isEmpty
(
fkCondition
.
getWosncode
()))
{
throwReturnMessage
(
"该订单序列号未输入,请重新确认!"
);
throwReturnMessage
(
"该订单序列号未输入,请重新确认!"
);
}
}
FkVO
gpfkVo
=
gpfkDao
.
queryWowithIfExistGpfkByWosnAndBzgxidInNewDate
(
fkCondition
.
get
S
ncode
(),
fkCondition
.
getBzgxid
());
FkVO
gpfkVo
=
gpfkDao
.
queryWowithIfExistGpfkByWosnAndBzgxidInNewDate
(
fkCondition
.
get
Wos
ncode
(),
fkCondition
.
getBzgxid
());
if
(
gpfkVo
==
null
)
{
if
(
gpfkVo
==
null
)
{
Gpfk
gpfk
=
new
Gpfk
();
Gpfk
gpfk
=
new
Gpfk
();
FkVO
curFkVo
=
gpfkDao
.
queryKwellWoBySnidUptoDate
(
fkCondition
.
getWosncode
(),
fkCondition
.
getBzgxid
());
FkVO
curFkVo
=
gpfkDao
.
queryKwellWoBySnidUptoDate
(
fkCondition
.
getWosncode
(),
fkCondition
.
getBzgxid
());
...
@@ -1659,7 +1659,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -1659,7 +1659,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
gpfk
.
setHgdj
(
GpfkHgEnum
.
JYHG
.
getId
());
gpfk
.
setHgdj
(
GpfkHgEnum
.
JYHG
.
getId
());
update
(
gpfk
);
update
(
gpfk
);
}
}
FkVO
newFkVo
=
gpfkDao
.
queryWowithIfExistGpfkByWosnAndBzgxidInNewDate
(
fkCondition
.
get
S
ncode
(),
fkCondition
.
getBzgxid
());
FkVO
newFkVo
=
gpfkDao
.
queryWowithIfExistGpfkByWosnAndBzgxidInNewDate
(
fkCondition
.
get
Wos
ncode
(),
fkCondition
.
getBzgxid
());
newFkVo
.
setSntype
(
snType
);
newFkVo
.
setSntype
(
snType
);
Wogylx
wogylx
=
(
Wogylx
)
GavelSql
.
selectEntityByKey
(
Wogylx
.
class
,
newFkVo
.
getWogylxid
());
Wogylx
wogylx
=
(
Wogylx
)
GavelSql
.
selectEntityByKey
(
Wogylx
.
class
,
newFkVo
.
getWogylxid
());
if
(
wogylx
!=
null
&&
StringUtils
.
isNotEmpty
(
wogylx
.
getGxbz
())&&(
wogylx
.
getGxbz
().
equals
(
"D"
)||
wogylx
.
getGxbz
().
equals
(
"M"
)))
{
if
(
wogylx
!=
null
&&
StringUtils
.
isNotEmpty
(
wogylx
.
getGxbz
())&&(
wogylx
.
getGxbz
().
equals
(
"D"
)||
wogylx
.
getGxbz
().
equals
(
"M"
)))
{
...
@@ -1669,14 +1669,14 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -1669,14 +1669,14 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
else
{
else
{
updatePcjh
(
wogylx
.
getWoid
(),
wogylx
.
getGxlx
(),
true
);
updatePcjh
(
wogylx
.
getWoid
(),
wogylx
.
getGxlx
(),
true
);
}
}
}
}
return
newFkVo
;
return
newFkVo
;
}
}
else
if
(
snType
.
equals
(
SmCodeEnum
.
NGBZ
.
getId
()))
{
else
if
(
snType
.
equals
(
SmCodeEnum
.
NGBZ
.
getId
()))
{
if
(
StringUtils
.
isEmpty
(
fkCondition
.
getWosncode
()))
{
if
(
StringUtils
.
isEmpty
(
fkCondition
.
getWosncode
()))
{
throwReturnMessage
(
"该订单序列号未输入,请重新确认!"
);
throwReturnMessage
(
"该订单序列号未输入,请重新确认!"
);
}
}
FkVO
gpfkVo
=
gpfkDao
.
queryWowithIfExistGpfkByWosnAndBzgxidInNewDate
(
fkCondition
.
get
S
ncode
(),
fkCondition
.
getBzgxid
());
FkVO
gpfkVo
=
gpfkDao
.
queryWowithIfExistGpfkByWosnAndBzgxidInNewDate
(
fkCondition
.
get
Wos
ncode
(),
fkCondition
.
getBzgxid
());
if
(
gpfkVo
==
null
)
{
if
(
gpfkVo
==
null
)
{
Gpfk
gpfk
=
new
Gpfk
();
Gpfk
gpfk
=
new
Gpfk
();
FkVO
curFkVo
=
gpfkDao
.
queryKwellWoBySnidUptoDate
(
fkCondition
.
getWosncode
(),
fkCondition
.
getBzgxid
());
FkVO
curFkVo
=
gpfkDao
.
queryKwellWoBySnidUptoDate
(
fkCondition
.
getWosncode
(),
fkCondition
.
getBzgxid
());
...
@@ -1717,7 +1717,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -1717,7 +1717,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
else
{
else
{
cancelPcjh
(
wogylx
.
getWoid
(),
wogylx
.
getGxlx
(),
true
);
cancelPcjh
(
wogylx
.
getWoid
(),
wogylx
.
getGxlx
(),
true
);
}
}
}
}
return
newFkVo
;
return
newFkVo
;
}
}
return
null
;
return
null
;
...
@@ -1806,7 +1806,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -1806,7 +1806,7 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
else
{
else
{
updatePcjh
(
wogylx
.
getWoid
(),
wogylx
.
getGxlx
(),
true
);
updatePcjh
(
wogylx
.
getWoid
(),
wogylx
.
getGxlx
(),
true
);
}
}
}
}
return
newFkVo
;
return
newFkVo
;
}
}
else
if
(
snType
.
equals
(
SmCodeEnum
.
NGBZ
.
getId
()))
{
else
if
(
snType
.
equals
(
SmCodeEnum
.
NGBZ
.
getId
()))
{
...
@@ -1852,11 +1852,11 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -1852,11 +1852,11 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
else
{
else
{
cancelPcjh
(
wogylx
.
getWoid
(),
wogylx
.
getGxlx
(),
true
);
cancelPcjh
(
wogylx
.
getWoid
(),
wogylx
.
getGxlx
(),
true
);
}
}
}
}
return
newFkVo
;
return
newFkVo
;
}
}
return
null
;
return
null
;
}
}
/************ -------------------科威尔反馈升级--END--------- ******/
/************ -------------------科威尔反馈升级--END--------- ******/
}
}
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