| | |
| | | // throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"【"+baseGoods.getName()+"】已存在"); |
| | | // } |
| | | |
| | | Integer integer = baseGoodsMapper.selectCount(new QueryWrapper<BaseGoods>().eq("ISDELETED", Constants.ZERO)); |
| | | Long integer = baseGoodsMapper.selectCount(new QueryWrapper<BaseGoods>().eq("ISDELETED", Constants.ZERO)); |
| | | BaseGoods insert = new BaseGoods(); |
| | | insert.setCreator(user.getId()); |
| | | insert.setCreateDate(new Date()); |
| | |
| | | insert.setPinyin(PinYinUtil.getFullSpell(insert.getName())); |
| | | insert.setShortPinyin(PinYinUtil.getFirstSpell(insert.getName())); |
| | | baseGoodsMapper.insert(insert); |
| | | |
| | | |
| | | List<Multifile> multifileList = baseGoods.getMultifileList(); |
| | | if(!Objects.isNull(multifileList)&&multifileList.size()>Constants.ZERO){ |
| | | for (int i = 0; i < multifileList.size(); i++) { |
| | |
| | | multifileMapper.insert(multifile); |
| | | } |
| | | } |
| | | |
| | | |
| | | List<BaseGoodsParamCreatRequest> goodsParamList = baseGoods.getBaseGoodsParamList(); |
| | | if(!Objects.isNull(goodsParamList)&&goodsParamList.size()>0){ |
| | | for (int i = 0; i < goodsParamList.size(); i++) { |