Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
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
鲁鑫
topsun-bpm
Commits
6446174d
Commit
6446174d
authored
May 29, 2024
by
刘学辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物料查询品牌调整
parent
c2678360
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
NonProdApplyNextController.java
...p/nonProdApply/controller/NonProdApplyNextController.java
+7
-5
No files found.
topsun/src/main/java/com/huigou/topsun/sap/nonProdApply/controller/NonProdApplyNextController.java
View file @
6446174d
...
@@ -293,16 +293,18 @@ public class NonProdApplyNextController extends CommonController {
...
@@ -293,16 +293,18 @@ public class NonProdApplyNextController extends CommonController {
return
forward
(
"nonProdApplyClass"
,
nonProdApplyDept
);
return
forward
(
"nonProdApplyClass"
,
nonProdApplyDept
);
case
"V"
:
//销售
case
"V"
:
//销售
if
(
StringUtils
.
isNotBlank
(
nonProdApplyDept
.
getMatnr
()))
{
if
(
StringUtils
.
isNotBlank
(
nonProdApplyDept
.
getMatnr
()))
{
String
url
=
"
/md/mditem/queryBrandByItemCode?sapItemcode=
"
+
nonProdApplyDept
.
getMatnr
();
String
url
=
"
md/mditem/queryBrandByItemCode/
"
+
nonProdApplyDept
.
getMatnr
();
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
try
{
try
{
//{msg:"","code":"",data:{"code":"","name":}}
//{msg:"","code":"",data:{"code":"","name":}}
String
result
=
defaultHttpClient
.
executeForEp
(
map
,
url
);
String
result
=
defaultHttpClient
.
executeForEp
(
map
,
url
);
EpResult
epResult
=
JSONObject
.
parseObject
(
result
,
EpResult
.
class
);
EpResult
epResult
=
JSONObject
.
parseObject
(
result
,
EpResult
.
class
);
if
(
""
.
equals
(
epResult
.
getMsg
()))
{
if
(
"200"
.
equals
(
epResult
.
getCode
()))
{
nonProdApplyDept
.
setBrand
(
epResult
.
getData
().
getCode
());
if
(
epResult
.
getData
()!=
null
){
nonProdApplyDept
.
setBrandName
(
epResult
.
getData
().
getName
());
nonProdApplyDept
.
setBrand
(
epResult
.
getData
().
getCode
());
nonProdApplyDept
.
setMvgr2
(
epResult
.
getData
().
getCode
());
nonProdApplyDept
.
setBrandName
(
epResult
.
getData
().
getName
());
nonProdApplyDept
.
setMvgr2
(
epResult
.
getData
().
getCode
());
}
}
else
{
}
else
{
throw
new
RuntimeException
(
"从EP查询品牌错误:"
+
epResult
.
getMsg
());
throw
new
RuntimeException
(
"从EP查询品牌错误:"
+
epResult
.
getMsg
());
}
}
...
...
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