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
eee9fe4f
Commit
eee9fe4f
authored
Mar 30, 2022
by
黄自鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整bug
parent
6a4b51ac
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
22 deletions
+28
-22
GpfkDaoImpl.java
...l/src/main/java/com/gavel/kwell/dao/impl/GpfkDaoImpl.java
+3
-3
GpfkcxDaoImpl.java
...src/main/java/com/gavel/kwell/dao/impl/GpfkcxDaoImpl.java
+1
-1
GpfkServiceImpl.java
...in/java/com/gavel/kwell/service/impl/GpfkServiceImpl.java
+24
-18
No files found.
gavel/src/main/java/com/gavel/kwell/dao/impl/GpfkDaoImpl.java
View file @
eee9fe4f
...
@@ -1475,7 +1475,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
...
@@ -1475,7 +1475,7 @@ public class GpfkDaoImpl extends BaseDaoImpl implements GpfkDao {
public
FkVO
queryKwellWxWoBySnidUptoDate
(
String
wosnid
)
{
public
FkVO
queryKwellWxWoBySnidUptoDate
(
String
wosnid
)
{
SqlMap
sqlMap
=
new
SqlMap
();
SqlMap
sqlMap
=
new
SqlMap
();
sqlMap
.
append
(
"select top 1 WO_ID,WO_ZT,WLXX_CODE,WLXX_GG,WLXX_ID,WOSN_CODE,WOSN_ID,"
);
sqlMap
.
append
(
"select top 1 WO_ID,WO_ZT,WLXX_CODE,WLXX_GG,WLXX_ID,WOSN_CODE,WOSN_ID,"
);
sqlMap
.
append
(
" W
LXX_GG,WO_DJID,WOSN_CODE
"
);
sqlMap
.
append
(
" W
O_DJID
"
);
sqlMap
.
append
(
"from WOSN "
);
sqlMap
.
append
(
"from WOSN "
);
sqlMap
.
append
(
" left join WO on WO_ID=WOSN_WOID"
);
sqlMap
.
append
(
" left join WO on WO_ID=WOSN_WOID"
);
sqlMap
.
append
(
" left join WLXX on wlxx_id = wo_wlid"
);
sqlMap
.
append
(
" left join WLXX on wlxx_id = wo_wlid"
);
...
...
gavel/src/main/java/com/gavel/kwell/dao/impl/GpfkcxDaoImpl.java
View file @
eee9fe4f
...
@@ -37,7 +37,7 @@ public class GpfkcxDaoImpl extends BaseDaoImpl implements GpfkcxDao {
...
@@ -37,7 +37,7 @@ public class GpfkcxDaoImpl extends BaseDaoImpl implements GpfkcxDao {
sqlMap
.
append
(
" left join WO on WO_ID = WOSN_WOID "
);
sqlMap
.
append
(
" left join WO on WO_ID = WOSN_WOID "
);
sqlMap
.
append
(
" left join WLXX on WLXX_ID = WO_WLID "
);
sqlMap
.
append
(
" left join WLXX on WLXX_ID = WO_WLID "
);
sqlMap
.
append
(
" left join WOGYLX on WOGYLX_ID = GPFK_FKGX "
);
sqlMap
.
append
(
" left join WOGYLX on WOGYLX_ID = GPFK_FKGX "
);
sqlMap
.
append
(
" left join BZGX on BZGX_ID =
WOGYLX
_BZGXID "
);
sqlMap
.
append
(
" left join BZGX on BZGX_ID =
U_GPFK
_BZGXID "
);
sqlMap
.
append
(
" left join GZZX on GZZX_ID = BZGX_GZZXID "
);
sqlMap
.
append
(
" left join GZZX on GZZX_ID = BZGX_GZZXID "
);
sqlMap
.
append
(
" where 1=1 "
);
sqlMap
.
append
(
" where 1=1 "
);
if
(
StringUtils
.
isNotEmpty
(
condition
.
getGzzxid
())){
if
(
StringUtils
.
isNotEmpty
(
condition
.
getGzzxid
())){
...
...
gavel/src/main/java/com/gavel/kwell/service/impl/GpfkServiceImpl.java
View file @
eee9fe4f
...
@@ -1800,11 +1800,15 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -1800,11 +1800,15 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
GpfkCondition
gpfkCondition
=
new
GpfkCondition
();
GpfkCondition
gpfkCondition
=
new
GpfkCondition
();
gpfkCondition
.
setWosnid
(
fkCondition
.
getSncode
());
gpfkCondition
.
setWosnid
(
fkCondition
.
getSncode
());
gpfkCondition
.
setBzgxid
(
fkCondition
.
getBzgxid
());
gpfkCondition
.
setBzgxid
(
fkCondition
.
getBzgxid
());
FkVO
curFkVo
=
gpfkDao
.
queryKwellWxWoBySnidUptoDate
(
fkCondition
.
getSncode
());
//FkVO curFkVo = gpfkDao.queryKwellWxWoBySnidUptoDate(fkCondition.getSncode());
checkLastBzgxIfComplete
(
curFkVo
);
//checkLastBzgxIfComplete(curFkVo);
checkNextBzgxIfExistFk
(
curFkVo
);
//checkNextBzgxIfExistFk(curFkVo);
if
(
StringUtils
.
isNotEmpty
(
curFkVo
.
getId
()))
{
// if(StringUtils.isNotEmpty(curFkVo.getId())) {
curFkVo
=
gpfkDao
.
queryWxWowithIfExistGpfkByWosnAndBzgxidInNewDate
(
fkCondition
.
getSncode
(),
fkCondition
.
getBzgxid
());
// curFkVo = gpfkDao.queryWxWowithIfExistGpfkByWosnAndBzgxidInNewDate(fkCondition.getSncode(), fkCondition.getBzgxid());
// }
FkVO
curFkVo
=
gpfkDao
.
queryWxWowithIfExistGpfkByWosnAndBzgxidInNewDate
(
fkCondition
.
getSncode
(),
fkCondition
.
getBzgxid
());
if
(
curFkVo
==
null
)
{
curFkVo
=
gpfkDao
.
queryKwellWxWoBySnidUptoDate
(
fkCondition
.
getSncode
());
}
}
curFkVo
.
setSntype
(
snType
);
curFkVo
.
setSntype
(
snType
);
return
curFkVo
;
return
curFkVo
;
...
@@ -1826,9 +1830,10 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -1826,9 +1830,10 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
gpfk
.
setHgsl
(
1.0
);
gpfk
.
setHgsl
(
1.0
);
gpfk
.
setBhgsl
(
0.0
);
gpfk
.
setBhgsl
(
0.0
);
gpfk
.
setBzgxid
(
fkCondition
.
getBzgxid
());
gpfk
.
setBzgxid
(
fkCondition
.
getBzgxid
());
gpfk
.
setFkgx
(
fkCondition
.
getBzgxid
());
insert
(
gpfk
);
insert
(
gpfk
);
FkVO
newFkVo
=
gpfkDao
.
queryWxWowithIfExistGpfkByWosnAndBzgxidInNewDate
(
fkCondition
.
getWosncode
(),
fkCondition
.
getBzgxid
());
FkVO
newFkVo
=
gpfkDao
.
queryWxWowithIfExistGpfkByWosnAndBzgxidInNewDate
(
fkCondition
.
getWosncode
(),
fkCondition
.
getBzgxid
());
addOrUpdateGpfkjg
(
curFkVo
.
getWlid
(),
fkCondition
.
getBzgxid
(),
null
,
curFkVo
.
getWosnCode
(),
HGBZ
);
addOrUpdateGpfkjg
(
curFkVo
.
getWlid
(),
fkCondition
.
getBzgxid
(),
fkCondition
.
getBzgxid
()
,
curFkVo
.
getWosnCode
(),
HGBZ
);
newFkVo
.
setSntype
(
snType
);
newFkVo
.
setSntype
(
snType
);
return
newFkVo
;
return
newFkVo
;
}
}
...
@@ -1849,9 +1854,10 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
...
@@ -1849,9 +1854,10 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
gpfk
.
setHgsl
(
1.0
);
gpfk
.
setHgsl
(
1.0
);
gpfk
.
setBhgsl
(
0.0
);
gpfk
.
setBhgsl
(
0.0
);
gpfk
.
setBzgxid
(
fkCondition
.
getBzgxid
());
gpfk
.
setBzgxid
(
fkCondition
.
getBzgxid
());
gpfk
.
setFkgx
(
fkCondition
.
getBzgxid
());
insert
(
gpfk
);
insert
(
gpfk
);
FkVO
newFkVo
=
gpfkDao
.
queryWxWowithIfExistGpfkByWosnAndBzgxidInNewDate
(
fkCondition
.
getWosncode
(),
fkCondition
.
getBzgxid
());
FkVO
newFkVo
=
gpfkDao
.
queryWxWowithIfExistGpfkByWosnAndBzgxidInNewDate
(
fkCondition
.
getWosncode
(),
fkCondition
.
getBzgxid
());
addOrUpdateGpfkjg
(
curFkVo
.
getWlid
(),
fkCondition
.
getBzgxid
(),
null
,
curFkVo
.
getWosnCode
(),
BHGBZ
);
addOrUpdateGpfkjg
(
curFkVo
.
getWlid
(),
fkCondition
.
getBzgxid
(),
fkCondition
.
getBzgxid
()
,
curFkVo
.
getWosnCode
(),
BHGBZ
);
newFkVo
.
setSntype
(
snType
);
newFkVo
.
setSntype
(
snType
);
return
newFkVo
;
return
newFkVo
;
}
}
...
...
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