Commit be9309db authored by shiyu's avatar shiyu

商品设置新增字段

parent 5000a39e
...@@ -111,7 +111,9 @@ public class ItemServiceImpl implements ItemService { ...@@ -111,7 +111,9 @@ public class ItemServiceImpl implements ItemService {
EntityMapper.copyAttribute(coinRequestDto, item); EntityMapper.copyAttribute(coinRequestDto, item);
item.setIsStd(coinRequestDto.getIsStd() == 0 ? false : true); item.setIsStd(coinRequestDto.getIsStd() == 0 ? false : true);
item.setImages(com.qiniu.util.StringUtils.join(coinRequestDto.getImages(), ";")); item.setImages(com.qiniu.util.StringUtils.join(coinRequestDto.getImages(), ";"));
item.setName(coinRequestDto.getName());
item.setDetail(coinRequestDto.getDetail());
item.setPrice((long) (coinRequestDto.getPrice() * 100));
//如果该商品为标准件则替换原有的标准件 //如果该商品为标准件则替换原有的标准件
if (item.getIsStd()) { if (item.getIsStd()) {
//查询出该分类下原有的标准件 //查询出该分类下原有的标准件
......
...@@ -94,4 +94,8 @@ public class CoinRequestDto extends BaseRequestDto implements Entity { ...@@ -94,4 +94,8 @@ public class CoinRequestDto extends BaseRequestDto implements Entity {
*/ */
private Date startUpdateTime; private Date startUpdateTime;
private String detail;
private Double price;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment