Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
04c7e86b
Commit
04c7e86b
authored
Apr 20, 2020
by
xiaoer.li@freemud.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:isStaple
parent
de7030af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
order-application-service/src/main/java/cn/freemud/entities/dto/ProductComboListDto.java
+1
-1
order-application-service/src/main/java/cn/freemud/service/impl/ItemServiceImpl.java
+2
-2
No files found.
order-application-service/src/main/java/cn/freemud/entities/dto/ProductComboListDto.java
View file @
04c7e86b
...
@@ -40,7 +40,7 @@ public class ProductComboListDto {
...
@@ -40,7 +40,7 @@ public class ProductComboListDto {
private
Integer
stockLimit
;
private
Integer
stockLimit
;
private
String
unit
;
private
String
unit
;
/* 是否主食*/
/* 是否主食*/
private
Integer
stapleFood
;
private
Integer
isStaple
;
protected
List
<
ProductAttributeGroup
>
productAttributeGroupList
;
protected
List
<
ProductAttributeGroup
>
productAttributeGroupList
;
}
}
order-application-service/src/main/java/cn/freemud/service/impl/ItemServiceImpl.java
View file @
04c7e86b
...
@@ -135,8 +135,8 @@ public class ItemServiceImpl implements ItemService{
...
@@ -135,8 +135,8 @@ public class ItemServiceImpl implements ItemService{
GetProductsVo
comboProductsVo
=
new
GetProductsVo
();
GetProductsVo
comboProductsVo
=
new
GetProductsVo
();
comboProductsVo
.
setCustomerCode
(
productComboListDto
.
getCustomerCode
());
comboProductsVo
.
setCustomerCode
(
productComboListDto
.
getCustomerCode
());
comboProductsVo
.
setProductCode
(
productComboListDto
.
getProductCode
());
comboProductsVo
.
setProductCode
(
productComboListDto
.
getProductCode
());
if
(
productComboListDto
.
get
StapleFood
()!=
null
&&
stapleFood
.
contains
(
productComboListDto
.
getStapleFood
()))
{
if
(
productComboListDto
.
get
IsStaple
()!=
null
&&
stapleFood
.
contains
(
productComboListDto
.
getIsStaple
()))
{
comboProductsVo
.
setStapleFood
(
productComboListDto
.
get
StapleFood
());
comboProductsVo
.
setStapleFood
(
productComboListDto
.
get
IsStaple
());
}
else
{
}
else
{
comboProductsVo
.
setStapleFood
(
0
);
comboProductsVo
.
setStapleFood
(
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