订单状态查询条件
This commit is contained in:
parent
da9fca3675
commit
eaef0920cc
|
|
@ -20,7 +20,7 @@
|
|||
订单号:<input type="text" name="code"/>
|
||||
</li>
|
||||
<li>
|
||||
订单状态:<select name="status" th:with="type=${@dict.getType('order_status')}">
|
||||
订单状态:<select name="orderStatus" th:with="type=${@dict.getType('order_status')}">
|
||||
<option value="">所有</option>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||
th:value="${dict.dictValue}"></option>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import com.ghy.common.core.text.Convert;
|
|||
import com.ghy.common.exception.ServiceException;
|
||||
import com.ghy.common.utils.StringUtils;
|
||||
import com.ghy.goods.domain.Goods;
|
||||
import com.ghy.goods.domain.GoodsArea;
|
||||
import com.ghy.goods.domain.GoodsStandard;
|
||||
import com.ghy.goods.mapper.GoodsMapper;
|
||||
import com.ghy.goods.request.AppGoodsRequest;
|
||||
|
|
@ -16,9 +15,11 @@ import com.ghy.goods.service.GoodsStandardService;
|
|||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.Assert;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
|
|
@ -47,8 +48,12 @@ public class GoodsServiceImpl implements GoodsService {
|
|||
int result = goodsMapper.insertGoods(goods);
|
||||
|
||||
// 给各组件插入商品主体id
|
||||
goods.getGoodsAreaList().forEach(goodsArea -> {goodsArea.setGoodsId(goods.getGoodsId());});
|
||||
goods.getGoodsImgsList().forEach(goodsImg -> {goodsImg.setGoodsId(goods.getGoodsId());});
|
||||
goods.getGoodsAreaList().forEach(goodsArea -> {
|
||||
goodsArea.setGoodsId(goods.getGoodsId());
|
||||
});
|
||||
goods.getGoodsImgsList().forEach(goodsImg -> {
|
||||
goodsImg.setGoodsId(goods.getGoodsId());
|
||||
});
|
||||
goods.getGoodsStandardList().forEach(goodsStandard -> {
|
||||
goodsStandard.setGoodsId(goods.getGoodsId());
|
||||
if (goodsStandard.getExtMoney() == null) {
|
||||
|
|
@ -146,6 +151,9 @@ public class GoodsServiceImpl implements GoodsService {
|
|||
|
||||
@Override
|
||||
public List<Goods> selectByIds(Collection<Long> ids) {
|
||||
if (CollectionUtils.isEmpty(ids)) {
|
||||
return new ArrayList<>(0);
|
||||
}
|
||||
return goodsMapper.selectByIds(ids);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue