public Criteria andPicNotBetween(String value1, String value2) { addCriterion("pic not between", value1, value2, "pic"); return (Criteria) this; } }
public Criteria andCategoryNameNotBetween(String value1, String value2) { addCriterion("category_name not between", value1, value2, "categoryName"); return (Criteria) this; } }
public Criteria andMemberLevelNotBetween(Integer value1, Integer value2) { addCriterion("member_level not between", value1, value2, "memberLevel"); return (Criteria) this; } }
@Override public int delete(List<Long> ids) { OmsOrder record = new OmsOrder(); record.setDeleteStatus(1); OmsOrderExample example = new OmsOrderExample(); example.createCriteria().andDeleteStatusEqualTo(0).andIdIn(ids); return orderMapper.updateByExampleSelective(record, example); }
@Override public int updateQuantity(Long id, Long memberId, Integer quantity) { OmsCartItem cartItem = new OmsCartItem(); cartItem.setQuantity(quantity); OmsCartItemExample example = new OmsCartItemExample(); example.createCriteria().andDeleteStatusEqualTo(0) .andIdEqualTo(id).andMemberIdEqualTo(memberId); return cartItemMapper.updateByExampleSelective(cartItem, example); }
@Override public int updateNewStatus(List<Long> ids, Integer newStatus) { PmsProduct record = new PmsProduct(); record.setNewStatus(newStatus); PmsProductExample example = new PmsProductExample(); example.createCriteria().andIdIn(ids); return productMapper.updateByExampleSelective(record, example); }
@Override public int updateRecommendStatus(List<Long> ids, Integer recommendStatus) { PmsProduct record = new PmsProduct(); record.setRecommandStatus(recommendStatus); PmsProductExample example = new PmsProductExample(); example.createCriteria().andIdIn(ids); return productMapper.updateByExampleSelective(record, example); }
@Override public int updateFactoryStatus(List<Long> ids, Integer factoryStatus) { PmsBrand pmsBrand = new PmsBrand(); pmsBrand.setFactoryStatus(factoryStatus); PmsBrandExample pmsBrandExample = new PmsBrandExample(); pmsBrandExample.createCriteria().andIdIn(ids); return brandMapper.updateByExampleSelective(pmsBrand, pmsBrandExample); } }
@Override public int updateNavStatus(List<Long> ids, Integer navStatus) { PmsProductCategory productCategory = new PmsProductCategory(); productCategory.setNavStatus(navStatus); PmsProductCategoryExample example = new PmsProductCategoryExample(); example.createCriteria().andIdIn(ids); return productCategoryMapper.updateByExampleSelective(productCategory, example); }
@Override public int updateShowStatus(List<Long> ids, Integer showStatus) { PmsProductCategory productCategory = new PmsProductCategory(); productCategory.setShowStatus(showStatus); PmsProductCategoryExample example = new PmsProductCategoryExample(); example.createCriteria().andIdIn(ids); return productCategoryMapper.updateByExampleSelective(productCategory, example); }
@Override public int updateShowStatus(List<Long> ids, Integer showStatus) { PmsBrand pmsBrand = new PmsBrand(); pmsBrand.setShowStatus(showStatus); PmsBrandExample pmsBrandExample = new PmsBrandExample(); pmsBrandExample.createCriteria().andIdIn(ids); return brandMapper.updateByExampleSelective(pmsBrand, pmsBrandExample); }
@Override public int updateDeleteStatus(List<Long> ids, Integer deleteStatus) { PmsProduct record = new PmsProduct(); record.setDeleteStatus(deleteStatus); PmsProductExample example = new PmsProductExample(); example.createCriteria().andIdIn(ids); return productMapper.updateByExampleSelective(record, example); }
@Override public int updatePublishStatus(List<Long> ids, Integer publishStatus) { PmsProduct record = new PmsProduct(); record.setPublishStatus(publishStatus); PmsProductExample example = new PmsProductExample(); example.createCriteria().andIdIn(ids); return productMapper.updateByExampleSelective(record, example); }
@Override public int delete(Long memberId, List<Long> ids) { OmsCartItem record = new OmsCartItem(); record.setDeleteStatus(1); OmsCartItemExample example = new OmsCartItemExample(); example.createCriteria().andIdIn(ids).andMemberIdEqualTo(memberId); return cartItemMapper.updateByExampleSelective(record, example); }
@Override public int update(Long id, UmsMemberReceiveAddress address) { address.setId(null); UmsMember currentMember = memberService.getCurrentMember(); UmsMemberReceiveAddressExample example = new UmsMemberReceiveAddressExample(); example.createCriteria().andMemberIdEqualTo(currentMember.getId()).andIdEqualTo(id); return addressMapper.updateByExampleSelective(address,example); }
@Override public int updateRecommendStatus(List<Long> ids, Integer recommendStatus) { SmsHomeNewProductExample example = new SmsHomeNewProductExample(); example.createCriteria().andIdIn(ids); SmsHomeNewProduct record = new SmsHomeNewProduct(); record.setRecommendStatus(recommendStatus); return homeNewProductMapper.updateByExampleSelective(record,example); }
@Override public int updateRecommendStatus(List<Long> ids, Integer recommendStatus) { SmsHomeBrandExample example = new SmsHomeBrandExample(); example.createCriteria().andIdIn(ids); SmsHomeBrand record = new SmsHomeBrand(); record.setRecommendStatus(recommendStatus); return homeBrandMapper.updateByExampleSelective(record,example); }
@Override public int updateRecommendStatus(List<Long> ids, Integer recommendStatus) { SmsHomeRecommendSubjectExample example = new SmsHomeRecommendSubjectExample(); example.createCriteria().andIdIn(ids); SmsHomeRecommendSubject record = new SmsHomeRecommendSubject(); record.setRecommendStatus(recommendStatus); return recommendProductMapper.updateByExampleSelective(record,example); }
@Override public int updateRecommendStatus(List<Long> ids, Integer recommendStatus) { SmsHomeRecommendProductExample example = new SmsHomeRecommendProductExample(); example.createCriteria().andIdIn(ids); SmsHomeRecommendProduct record = new SmsHomeRecommendProduct(); record.setRecommendStatus(recommendStatus); return recommendProductMapper.updateByExampleSelective(record,example); }
@Override public int clear(Long memberId) { OmsCartItem record = new OmsCartItem(); record.setDeleteStatus(1); OmsCartItemExample example = new OmsCartItemExample(); example.createCriteria().andMemberIdEqualTo(memberId); return cartItemMapper.updateByExampleSelective(record,example); } }