| | |
| | | import com.yeshi.fanli.entity.bus.lable.LabelGoods;
|
| | | import com.yeshi.fanli.entity.common.AdminUser;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
|
| | | import com.yeshi.fanli.exception.LabelClassException;
|
| | | import com.yeshi.fanli.exception.LabelGoodsException;
|
| | | import com.yeshi.fanli.exception.goods.quality.LabelClassException;
|
| | | import com.yeshi.fanli.exception.goods.quality.LabelGoodsException;
|
| | | import com.yeshi.fanli.service.inter.goods.TaoBaoGoodsBriefService;
|
| | | import com.yeshi.fanli.service.inter.lable.LabelGoodsService;
|
| | | import com.yeshi.fanli.service.inter.lable.LabelService;
|
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | @Transactional
|
| | | @Transactional(rollbackFor=Exception.class)
|
| | | public int deleteBatchById(long[] ids) throws LabelGoodsException{
|
| | | return labelGoodsMapper.deleteBatchByPrimaryKey(ids);
|
| | | }
|
| | |
|
| | |
|
| | | @Override
|
| | | @Transactional
|
| | | @Transactional(rollbackFor=Exception.class)
|
| | | public void deleteByGoodsId(List<String> ids) throws LabelGoodsException {
|
| | |
|
| | | if (ids != null && ids.size() > 0) {
|
| | |
| | |
|
| | | @Override
|
| | | public List<LabelGoods> queryByGoodsId(int start, int count, Long goodsId) throws LabelClassException {
|
| | | // TODO Auto-generated method stub
|
| | | return labelGoodsMapper.queryByGoodsId(start, count, goodsId);
|
| | | }
|
| | |
|
| | |
| | |
|
| | |
|
| | | @Override
|
| | | @Transactional
|
| | | @Transactional(rollbackFor=Exception.class)
|
| | | public void addBatchByLabId(TaoBaoGoodsBrief taoBaoGoodsBrief, List<String> labIdList, AdminUser admin) throws Exception {
|
| | |
|
| | | List<LabelGoods> addList = new ArrayList<LabelGoods>();
|
| | |
| | |
|
| | |
|
| | | @Override
|
| | | @Transactional
|
| | | @Transactional(rollbackFor=Exception.class)
|
| | | public void batchGoodsAddLables(List<Long> goodsIdList, List<Long> labIdList, AdminUser admin) throws Exception {
|
| | |
|
| | | /* 商品id 为空 不处理 */
|
| | |
| | |
|
| | |
|
| | | @Override
|
| | | @Transactional
|
| | | @Transactional(rollbackFor=Exception.class)
|
| | | public void singleGoodsAddLables(Long goodsId, List<Long> labIdList, AdminUser admin) throws Exception {
|
| | |
|
| | | /* 商品id 为空 不处理 */
|