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
e7f62226
Commit
e7f62226
authored
May 18, 2022
by
yff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改文件
parent
8eb78347
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
18 deletions
+24
-18
ShiroConfig.java
gavel/src/main/java/com/gavel/kwell/config/ShiroConfig.java
+1
-0
GpfkServiceImpl.java
...in/java/com/gavel/kwell/service/impl/GpfkServiceImpl.java
+22
-17
module.xml
gavel/src/main/resources/module.xml
+1
-1
No files found.
gavel/src/main/java/com/gavel/kwell/config/ShiroConfig.java
View file @
e7f62226
...
...
@@ -110,6 +110,7 @@ public class ShiroConfig {
shiroFilterFactoryBean
.
setFilters
(
filters
);
Map
<
String
,
String
>
filterChainDefinitionMap
=
GavelAuthResource
.
init
();
filterChainDefinitionMap
.
put
(
"/kmes/gpfk/login"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/kmes/gpfk/testFeedBack"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/loginscan_view"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/logout"
,
"logout"
);
filterChainDefinitionMap
.
put
(
"/**"
,
"permFilter"
);
...
...
gavel/src/main/java/com/gavel/kwell/service/impl/GpfkServiceImpl.java
View file @
e7f62226
...
...
@@ -2087,10 +2087,12 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
GpfkCondition
gpfkCondition
=
new
GpfkCondition
();
gpfkCondition
.
setWosnid
(
fkCondition
.
getSncode
());
gpfkCondition
.
setBzgxid
(
fkCondition
.
getBzgxid
());
FkVO
curFkVo
=
gpfkDao
.
queryWxWowithIfExistGpfkByWosnAndBzgxidInNewDate
(
fkCondition
.
getSncode
(),
fkCondition
.
getBzgxid
());
if
(
curFkVo
==
null
)
{
curFkVo
=
gpfkDao
.
queryKwellWxWoBySnidUptoDate
(
fkCondition
.
getSncode
());
}
FkVO
curFkVo
=
gpfkDao
.
queryKwellWoBySnidUptoDate
(
fkCondition
.
getSncode
(),
fkCondition
.
getBzgxid
());
checkLastBzgxIfComplete
(
curFkVo
);
checkNextBzgxIfExistFk
(
curFkVo
);
if
(
StringUtils
.
isNotEmpty
(
curFkVo
.
getId
()))
{
curFkVo
=
gpfkDao
.
queryWowithIfExistGpfkByWosnAndBzgxidInNewDate
(
fkCondition
.
getSncode
(),
fkCondition
.
getBzgxid
());
}
curFkVo
.
setSntype
(
snType
);
return
curFkVo
;
}
...
...
@@ -2099,8 +2101,10 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
throwReturnMessage
(
"该订单序列号未输入,请重新确认!"
);
}
Gpfk
gpfk
=
new
Gpfk
();
FkVO
curFkVo
=
gpfkDao
.
queryKwellW
xWoBySnidUptoDate
(
fkCondition
.
getWosncode
());
FkVO
curFkVo
=
gpfkDao
.
queryKwellW
oBySnidUptoDate
(
fkCondition
.
getWosncode
(),
fkCondition
.
getBzgxid
());
gpfk
.
setWosnid
(
curFkVo
.
getWosnCode
());
gpfk
.
setWogylx
(
curFkVo
.
getWogylxid
());
gpfk
.
setFkgx
(
curFkVo
.
getWogylxid
());
gpfk
.
setFkrid
(
UserInfoUtil
.
getId
());
gpfk
.
setFkr
(
UserInfoUtil
.
getUserName
());
gpfk
.
setFksj
(
DateUtils
.
getDateTime
());
...
...
@@ -2108,14 +2112,14 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
gpfk
.
setYwrq
(
DateUtils
.
getDate
());
gpfk
.
setHgbz
(
HGBZ
);
gpfk
.
setFklx
(
GpfkFklxEnum
.
WO
.
getId
());
gpfk
.
setHgsl
(
1.0
);
gpfk
.
setBhgsl
(
0.0
);
gpfk
.
setHgsl
(
1.0d
);
gpfk
.
setFksl
(
1.0d
);
gpfk
.
setBhgsl
(
0.0d
);
gpfk
.
setBzgxid
(
fkCondition
.
getBzgxid
());
gpfk
.
setFkgx
(
fkCondition
.
getBzgxid
());
insert
(
gpfk
);
FkVO
newFkVo
=
gpfkDao
.
queryWxWowithIfExistGpfkByWosnAndBzgxidInNewDate
(
fkCondition
.
getWosncode
(),
fkCondition
.
getBzgxid
());
addOrUpdateGpfkjg
(
curFkVo
.
getWlid
(),
fkCondition
.
getBzgxid
(),
fkCondition
.
getBzgxid
(),
curFkVo
.
getWosnCode
(),
HGBZ
);
FkVO
newFkVo
=
gpfkDao
.
queryWowithIfExistGpfkByWosnAndBzgxidInNewDate
(
fkCondition
.
getWosncode
(),
fkCondition
.
getBzgxid
());
newFkVo
.
setSntype
(
snType
);
addOrUpdateGpfkjg
(
newFkVo
.
getWlid
(),
fkCondition
.
getBzgxid
(),
newFkVo
.
getFkgx
(),
fkCondition
.
getWosncode
(),
HGBZ
);
return
newFkVo
;
}
else
if
(
snType
.
equals
(
SmCodeEnum
.
NGBZ
.
getId
()))
{
...
...
@@ -2123,23 +2127,24 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
throwReturnMessage
(
"该订单序列号未输入,请重新确认!"
);
}
Gpfk
gpfk
=
new
Gpfk
();
FkVO
curFkVo
=
gpfkDao
.
queryKwellW
xWoBySnidUptoDate
(
fkCondition
.
getWosncode
());
FkVO
curFkVo
=
gpfkDao
.
queryKwellW
oBySnidUptoDate
(
fkCondition
.
getWosncode
(),
fkCondition
.
getBzgxid
());
gpfk
.
setWosnid
(
curFkVo
.
getWosnCode
());
gpfk
.
setWogylx
(
curFkVo
.
getWogylxid
());
gpfk
.
setFkgx
(
curFkVo
.
getWogylxid
());
gpfk
.
setFkrid
(
UserInfoUtil
.
getId
());
gpfk
.
setFkr
(
UserInfoUtil
.
getUserName
());
gpfk
.
setFksj
(
DateUtils
.
getDateTime
());
gpfk
.
setWlid
(
curFkVo
.
getWlid
());
gpfk
.
setYwrq
(
DateUtils
.
getDate
());
gpfk
.
setHgbz
(
BHGBZ
);
gpfk
.
setFklx
(
GpfkFklxEnum
.
WO
.
getId
());
gpfk
.
setHgsl
(
1.0
);
gpfk
.
setBhgsl
(
0.0
);
gpfk
.
setYwrq
(
DateUtils
.
getDate
());
gpfk
.
setHgsl
(
0.0
);
gpfk
.
setBhgsl
(
1.0
);
gpfk
.
setBzgxid
(
fkCondition
.
getBzgxid
());
gpfk
.
setFkgx
(
fkCondition
.
getBzgxid
());
insert
(
gpfk
);
FkVO
newFkVo
=
gpfkDao
.
queryWxWowithIfExistGpfkByWosnAndBzgxidInNewDate
(
fkCondition
.
getWosncode
(),
fkCondition
.
getBzgxid
());
addOrUpdateGpfkjg
(
curFkVo
.
getWlid
(),
fkCondition
.
getBzgxid
(),
fkCondition
.
getBzgxid
(),
curFkVo
.
getWosnCode
(),
BHGBZ
);
FkVO
newFkVo
=
gpfkDao
.
queryWowithIfExistGpfkByWosnAndBzgxidInNewDate
(
fkCondition
.
getWosncode
(),
fkCondition
.
getBzgxid
());
newFkVo
.
setSntype
(
snType
);
addOrUpdateGpfkjg
(
newFkVo
.
getWlid
(),
fkCondition
.
getBzgxid
(),
newFkVo
.
getFkgx
(),
fkCondition
.
getWosncode
(),
BHGBZ
);
return
newFkVo
;
}
else
{
...
...
gavel/src/main/resources/module.xml
View file @
e7f62226
...
...
@@ -14,7 +14,7 @@
<print
entity=
"com.gavel.kwell.vo.GpfkVO"
/>
<mkcz
czid =
"21"
czmc =
"取消改制"
value=
"Y"
/>
</menu>
<menu
mkid=
"90100
200
0"
mkmc=
"测试反馈"
url=
"kmes/csfk/zpindex"
>
<menu
mkid=
"90100
182
0"
mkmc=
"测试反馈"
url=
"kmes/csfk/zpindex"
>
<print
entity=
"com.gavel.kwell.vo.GpfkVO"
/>
</menu>
<menu
mkid=
"901000200"
mkmc=
"装配反馈"
url=
"kmes/gphy/zpindex"
>
...
...
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