repo
stringclasses
1k values
file_url
stringlengths
96
373
file_path
stringlengths
11
294
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
6 values
commit_sha
stringclasses
1k values
retrieved_at
stringdate
2026-01-04 14:45:56
2026-01-04 18:30:23
truncated
bool
2 classes
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/PmsProductService.java
mall-admin/src/main/java/com/macro/mall/service/PmsProductService.java
package com.macro.mall.service; import com.macro.mall.dto.PmsProductParam; import com.macro.mall.dto.PmsProductQueryParam; import com.macro.mall.dto.PmsProductResult; import com.macro.mall.model.PmsProduct; import org.springframework.transaction.annotation.Isolation; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; import java.util.List; /** * 商品管理Service * Created by macro on 2018/4/26. */ public interface PmsProductService { /** * 创建商品 */ @Transactional(isolation = Isolation.DEFAULT,propagation = Propagation.REQUIRED) int create(PmsProductParam productParam); /** * 根据商品ID获取商品信息(用于更新商品) */ PmsProductResult getUpdateInfo(Long id); /** * 更新商品 */ @Transactional int update(Long id, PmsProductParam productParam); /** * 分页查询商品 */ List<PmsProduct> list(PmsProductQueryParam productQueryParam, Integer pageSize, Integer pageNum); /** * 批量修改审核状态 * @param ids 商品ID列表 * @param verifyStatus 审核状态 * @param detail 审核详情 */ @Transactional int updateVerifyStatus(List<Long> ids, Integer verifyStatus, String detail); /** * 批量修改商品上架状态 */ int updatePublishStatus(List<Long> ids, Integer publishStatus); /** * 批量修改商品推荐状态 */ int updateRecommendStatus(List<Long> ids, Integer recommendStatus); /** * 批量修改新品状态 */ int updateNewStatus(List<Long> ids, Integer newStatus); /** * 批量删除商品 */ int updateDeleteStatus(List<Long> ids, Integer deleteStatus); /** * 根据商品名称或者货号模糊查询 */ List<PmsProduct> list(String keyword); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/SmsHomeBrandService.java
mall-admin/src/main/java/com/macro/mall/service/SmsHomeBrandService.java
package com.macro.mall.service; import com.macro.mall.model.SmsHomeBrand; import org.springframework.transaction.annotation.Transactional; import java.util.List; /** * 首页品牌管理Service * Created by macro on 2018/11/6. */ public interface SmsHomeBrandService { /** * 添加品牌推荐 */ @Transactional int create(List<SmsHomeBrand> homeBrandList); /** * 修改品牌推荐排序 */ int updateSort(Long id, Integer sort); /** * 批量删除品牌推荐 */ int delete(List<Long> ids); /** * 批量更新品牌推荐状态 */ int updateRecommendStatus(List<Long> ids, Integer recommendStatus); /** * 分页查询品牌推荐 */ List<SmsHomeBrand> list(String brandName, Integer recommendStatus, Integer pageSize, Integer pageNum); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/CmsPrefrenceAreaService.java
mall-admin/src/main/java/com/macro/mall/service/CmsPrefrenceAreaService.java
package com.macro.mall.service; import com.macro.mall.model.CmsPrefrenceArea; import java.util.List; /** * 优选专区管理Service * Created by macro on 2018/6/1. */ public interface CmsPrefrenceAreaService { /** * 获取所有优选专区 */ List<CmsPrefrenceArea> listAll(); }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/SmsCouponHistoryServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/SmsCouponHistoryServiceImpl.java
package com.macro.mall.service.impl; import cn.hutool.core.util.StrUtil; import com.github.pagehelper.PageHelper; import com.macro.mall.mapper.SmsCouponHistoryMapper; import com.macro.mall.model.SmsCouponHistory; import com.macro.mall.model.SmsCouponHistoryExample; import com.macro.mall.service.SmsCouponHistoryService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * 优惠券领取记录管理Service实现类 * Created by macro on 2018/11/6. */ @Service public class SmsCouponHistoryServiceImpl implements SmsCouponHistoryService { @Autowired private SmsCouponHistoryMapper historyMapper; @Override public List<SmsCouponHistory> list(Long couponId, Integer useStatus, String orderSn, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum,pageSize); SmsCouponHistoryExample example = new SmsCouponHistoryExample(); SmsCouponHistoryExample.Criteria criteria = example.createCriteria(); if(couponId!=null){ criteria.andCouponIdEqualTo(couponId); } if(useStatus!=null){ criteria.andUseStatusEqualTo(useStatus); } if(!StrUtil.isEmpty(orderSn)){ criteria.andOrderSnEqualTo(orderSn); } return historyMapper.selectByExample(example); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/PmsProductAttributeServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/PmsProductAttributeServiceImpl.java
package com.macro.mall.service.impl; import com.github.pagehelper.PageHelper; import com.macro.mall.dao.PmsProductAttributeDao; import com.macro.mall.dto.PmsProductAttributeParam; import com.macro.mall.dto.ProductAttrInfo; import com.macro.mall.mapper.PmsProductAttributeCategoryMapper; import com.macro.mall.mapper.PmsProductAttributeMapper; import com.macro.mall.model.PmsProductAttribute; import com.macro.mall.model.PmsProductAttributeCategory; import com.macro.mall.model.PmsProductAttributeExample; import com.macro.mall.service.PmsProductAttributeService; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * 商品属性管理Service实现类 * Created by macro on 2018/4/26. */ @Service public class PmsProductAttributeServiceImpl implements PmsProductAttributeService { @Autowired private PmsProductAttributeMapper productAttributeMapper; @Autowired private PmsProductAttributeCategoryMapper productAttributeCategoryMapper; @Autowired private PmsProductAttributeDao productAttributeDao; @Override public List<PmsProductAttribute> getList(Long cid, Integer type, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum, pageSize); PmsProductAttributeExample example = new PmsProductAttributeExample(); example.setOrderByClause("sort desc"); example.createCriteria().andProductAttributeCategoryIdEqualTo(cid).andTypeEqualTo(type); return productAttributeMapper.selectByExample(example); } @Override public int create(PmsProductAttributeParam pmsProductAttributeParam) { PmsProductAttribute pmsProductAttribute = new PmsProductAttribute(); BeanUtils.copyProperties(pmsProductAttributeParam, pmsProductAttribute); int count = productAttributeMapper.insertSelective(pmsProductAttribute); //新增商品属性以后需要更新商品属性分类数量 PmsProductAttributeCategory pmsProductAttributeCategory = productAttributeCategoryMapper.selectByPrimaryKey(pmsProductAttribute.getProductAttributeCategoryId()); if(pmsProductAttribute.getType()==0){ pmsProductAttributeCategory.setAttributeCount(pmsProductAttributeCategory.getAttributeCount()+1); }else if(pmsProductAttribute.getType()==1){ pmsProductAttributeCategory.setParamCount(pmsProductAttributeCategory.getParamCount()+1); } productAttributeCategoryMapper.updateByPrimaryKey(pmsProductAttributeCategory); return count; } @Override public int update(Long id, PmsProductAttributeParam productAttributeParam) { PmsProductAttribute pmsProductAttribute = new PmsProductAttribute(); pmsProductAttribute.setId(id); BeanUtils.copyProperties(productAttributeParam, pmsProductAttribute); return productAttributeMapper.updateByPrimaryKeySelective(pmsProductAttribute); } @Override public PmsProductAttribute getItem(Long id) { return productAttributeMapper.selectByPrimaryKey(id); } @Override public int delete(List<Long> ids) { //获取分类 PmsProductAttribute pmsProductAttribute = productAttributeMapper.selectByPrimaryKey(ids.get(0)); Integer type = pmsProductAttribute.getType(); PmsProductAttributeCategory pmsProductAttributeCategory = productAttributeCategoryMapper.selectByPrimaryKey(pmsProductAttribute.getProductAttributeCategoryId()); PmsProductAttributeExample example = new PmsProductAttributeExample(); example.createCriteria().andIdIn(ids); int count = productAttributeMapper.deleteByExample(example); //删除完成后修改数量 if(type==0){ if(pmsProductAttributeCategory.getAttributeCount()>=count){ pmsProductAttributeCategory.setAttributeCount(pmsProductAttributeCategory.getAttributeCount()-count); }else{ pmsProductAttributeCategory.setAttributeCount(0); } }else if(type==1){ if(pmsProductAttributeCategory.getParamCount()>=count){ pmsProductAttributeCategory.setParamCount(pmsProductAttributeCategory.getParamCount()-count); }else{ pmsProductAttributeCategory.setParamCount(0); } } productAttributeCategoryMapper.updateByPrimaryKey(pmsProductAttributeCategory); return count; } @Override public List<ProductAttrInfo> getProductAttrInfo(Long productCategoryId) { return productAttributeDao.getProductAttrInfo(productCategoryId); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/UmsAdminCacheServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/UmsAdminCacheServiceImpl.java
package com.macro.mall.service.impl; import cn.hutool.core.collection.CollUtil; import com.macro.mall.common.service.RedisService; import com.macro.mall.dao.UmsAdminRoleRelationDao; import com.macro.mall.mapper.UmsAdminRoleRelationMapper; import com.macro.mall.model.UmsAdmin; import com.macro.mall.model.UmsAdminRoleRelation; import com.macro.mall.model.UmsAdminRoleRelationExample; import com.macro.mall.model.UmsResource; import com.macro.mall.service.UmsAdminCacheService; import com.macro.mall.service.UmsAdminService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import java.util.List; import java.util.stream.Collectors; /** * 后台用户缓存管理Service实现类 * Created by macro on 2020/3/13. */ @Service public class UmsAdminCacheServiceImpl implements UmsAdminCacheService { @Autowired private UmsAdminService adminService; @Autowired private RedisService redisService; @Autowired private UmsAdminRoleRelationMapper adminRoleRelationMapper; @Autowired private UmsAdminRoleRelationDao adminRoleRelationDao; @Value("${redis.database}") private String REDIS_DATABASE; @Value("${redis.expire.common}") private Long REDIS_EXPIRE; @Value("${redis.key.admin}") private String REDIS_KEY_ADMIN; @Value("${redis.key.resourceList}") private String REDIS_KEY_RESOURCE_LIST; @Override public void delAdmin(Long adminId) { UmsAdmin admin = adminService.getItem(adminId); if (admin != null) { String key = REDIS_DATABASE + ":" + REDIS_KEY_ADMIN + ":" + admin.getUsername(); redisService.del(key); } } @Override public void delResourceList(Long adminId) { String key = REDIS_DATABASE + ":" + REDIS_KEY_RESOURCE_LIST + ":" + adminId; redisService.del(key); } @Override public void delResourceListByRole(Long roleId) { UmsAdminRoleRelationExample example = new UmsAdminRoleRelationExample(); example.createCriteria().andRoleIdEqualTo(roleId); List<UmsAdminRoleRelation> relationList = adminRoleRelationMapper.selectByExample(example); if (CollUtil.isNotEmpty(relationList)) { String keyPrefix = REDIS_DATABASE + ":" + REDIS_KEY_RESOURCE_LIST + ":"; List<String> keys = relationList.stream().map(relation -> keyPrefix + relation.getAdminId()).collect(Collectors.toList()); redisService.del(keys); } } @Override public void delResourceListByRoleIds(List<Long> roleIds) { UmsAdminRoleRelationExample example = new UmsAdminRoleRelationExample(); example.createCriteria().andRoleIdIn(roleIds); List<UmsAdminRoleRelation> relationList = adminRoleRelationMapper.selectByExample(example); if (CollUtil.isNotEmpty(relationList)) { String keyPrefix = REDIS_DATABASE + ":" + REDIS_KEY_RESOURCE_LIST + ":"; List<String> keys = relationList.stream().map(relation -> keyPrefix + relation.getAdminId()).collect(Collectors.toList()); redisService.del(keys); } } @Override public void delResourceListByResource(Long resourceId) { List<Long> adminIdList = adminRoleRelationDao.getAdminIdList(resourceId); if (CollUtil.isNotEmpty(adminIdList)) { String keyPrefix = REDIS_DATABASE + ":" + REDIS_KEY_RESOURCE_LIST + ":"; List<String> keys = adminIdList.stream().map(adminId -> keyPrefix + adminId).collect(Collectors.toList()); redisService.del(keys); } } @Override public UmsAdmin getAdmin(String username) { String key = REDIS_DATABASE + ":" + REDIS_KEY_ADMIN + ":" + username; return (UmsAdmin) redisService.get(key); } @Override public void setAdmin(UmsAdmin admin) { String key = REDIS_DATABASE + ":" + REDIS_KEY_ADMIN + ":" + admin.getUsername(); redisService.set(key, admin, REDIS_EXPIRE); } @Override public List<UmsResource> getResourceList(Long adminId) { String key = REDIS_DATABASE + ":" + REDIS_KEY_RESOURCE_LIST + ":" + adminId; return (List<UmsResource>) redisService.get(key); } @Override public void setResourceList(Long adminId, List<UmsResource> resourceList) { String key = REDIS_DATABASE + ":" + REDIS_KEY_RESOURCE_LIST + ":" + adminId; redisService.set(key, resourceList, REDIS_EXPIRE); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/SmsFlashPromotionSessionServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/SmsFlashPromotionSessionServiceImpl.java
package com.macro.mall.service.impl; import com.macro.mall.dto.SmsFlashPromotionSessionDetail; import com.macro.mall.mapper.SmsFlashPromotionSessionMapper; import com.macro.mall.model.SmsFlashPromotionSession; import com.macro.mall.model.SmsFlashPromotionSessionExample; import com.macro.mall.service.SmsFlashPromotionProductRelationService; import com.macro.mall.service.SmsFlashPromotionSessionService; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.ArrayList; import java.util.Date; import java.util.List; /** * 限时购场次管理Service实现类 * Created by macro on 2018/11/16. */ @Service public class SmsFlashPromotionSessionServiceImpl implements SmsFlashPromotionSessionService { @Autowired private SmsFlashPromotionSessionMapper promotionSessionMapper; @Autowired private SmsFlashPromotionProductRelationService relationService; @Override public int create(SmsFlashPromotionSession promotionSession) { promotionSession.setCreateTime(new Date()); return promotionSessionMapper.insert(promotionSession); } @Override public int update(Long id, SmsFlashPromotionSession promotionSession) { promotionSession.setId(id); return promotionSessionMapper.updateByPrimaryKey(promotionSession); } @Override public int updateStatus(Long id, Integer status) { SmsFlashPromotionSession promotionSession = new SmsFlashPromotionSession(); promotionSession.setId(id); promotionSession.setStatus(status); return promotionSessionMapper.updateByPrimaryKeySelective(promotionSession); } @Override public int delete(Long id) { return promotionSessionMapper.deleteByPrimaryKey(id); } @Override public SmsFlashPromotionSession getItem(Long id) { return promotionSessionMapper.selectByPrimaryKey(id); } @Override public List<SmsFlashPromotionSession> list() { SmsFlashPromotionSessionExample example = new SmsFlashPromotionSessionExample(); return promotionSessionMapper.selectByExample(example); } @Override public List<SmsFlashPromotionSessionDetail> selectList(Long flashPromotionId) { List<SmsFlashPromotionSessionDetail> result = new ArrayList<>(); SmsFlashPromotionSessionExample example = new SmsFlashPromotionSessionExample(); example.createCriteria().andStatusEqualTo(1); List<SmsFlashPromotionSession> list = promotionSessionMapper.selectByExample(example); for (SmsFlashPromotionSession promotionSession : list) { SmsFlashPromotionSessionDetail detail = new SmsFlashPromotionSessionDetail(); BeanUtils.copyProperties(promotionSession, detail); long count = relationService.getCount(flashPromotionId, promotionSession.getId()); detail.setProductCount(count); result.add(detail); } return result; } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/OmsCompanyAddressServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/OmsCompanyAddressServiceImpl.java
package com.macro.mall.service.impl; import com.macro.mall.mapper.OmsCompanyAddressMapper; import com.macro.mall.model.OmsCompanyAddress; import com.macro.mall.model.OmsCompanyAddressExample; import com.macro.mall.service.OmsCompanyAddressService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * 收货地址管理Service实现类 * Created by macro on 2018/10/18. */ @Service public class OmsCompanyAddressServiceImpl implements OmsCompanyAddressService { @Autowired private OmsCompanyAddressMapper companyAddressMapper; @Override public List<OmsCompanyAddress> list() { return companyAddressMapper.selectByExample(new OmsCompanyAddressExample()); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/UmsMenuServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/UmsMenuServiceImpl.java
package com.macro.mall.service.impl; import com.github.pagehelper.PageHelper; import com.macro.mall.dto.UmsMenuNode; import com.macro.mall.mapper.UmsMenuMapper; import com.macro.mall.model.*; import com.macro.mall.service.UmsMenuService; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.Date; import java.util.List; import java.util.stream.Collectors; /** * 后台菜单管理Service实现类 * Created by macro on 2020/2/2. */ @Service public class UmsMenuServiceImpl implements UmsMenuService { @Autowired private UmsMenuMapper menuMapper; @Override public int create(UmsMenu umsMenu) { umsMenu.setCreateTime(new Date()); updateLevel(umsMenu); return menuMapper.insert(umsMenu); } /** * 修改菜单层级 */ private void updateLevel(UmsMenu umsMenu) { if (umsMenu.getParentId() == 0) { //没有父菜单时为一级菜单 umsMenu.setLevel(0); } else { //有父菜单时为父菜单的level+1 UmsMenu parentMenu = menuMapper.selectByPrimaryKey(umsMenu.getParentId()); if (parentMenu != null) { umsMenu.setLevel(parentMenu.getLevel() + 1); } else { umsMenu.setLevel(0); } } } @Override public int update(Long id, UmsMenu umsMenu) { umsMenu.setId(id); updateLevel(umsMenu); return menuMapper.updateByPrimaryKeySelective(umsMenu); } @Override public UmsMenu getItem(Long id) { return menuMapper.selectByPrimaryKey(id); } @Override public int delete(Long id) { return menuMapper.deleteByPrimaryKey(id); } @Override public List<UmsMenu> list(Long parentId, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum, pageSize); UmsMenuExample example = new UmsMenuExample(); example.setOrderByClause("sort desc"); example.createCriteria().andParentIdEqualTo(parentId); return menuMapper.selectByExample(example); } @Override public List<UmsMenuNode> treeList() { List<UmsMenu> menuList = menuMapper.selectByExample(new UmsMenuExample()); List<UmsMenuNode> result = menuList.stream() .filter(menu -> menu.getParentId().equals(0L)) .map(menu -> covertMenuNode(menu, menuList)) .collect(Collectors.toList()); return result; } @Override public int updateHidden(Long id, Integer hidden) { UmsMenu umsMenu = new UmsMenu(); umsMenu.setId(id); umsMenu.setHidden(hidden); return menuMapper.updateByPrimaryKeySelective(umsMenu); } /** * 将UmsMenu转化为UmsMenuNode并设置children属性 */ private UmsMenuNode covertMenuNode(UmsMenu menu, List<UmsMenu> menuList) { UmsMenuNode node = new UmsMenuNode(); BeanUtils.copyProperties(menu, node); List<UmsMenuNode> children = menuList.stream() .filter(subMenu -> subMenu.getParentId().equals(menu.getId())) .map(subMenu -> covertMenuNode(subMenu, menuList)).collect(Collectors.toList()); node.setChildren(children); return node; } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/OssServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/OssServiceImpl.java
package com.macro.mall.service.impl; import cn.hutool.json.JSONUtil; import com.aliyun.oss.OSSClient; import com.aliyun.oss.common.utils.BinaryUtil; import com.aliyun.oss.model.MatchMode; import com.aliyun.oss.model.PolicyConditions; import com.macro.mall.dto.OssCallbackParam; import com.macro.mall.dto.OssCallbackResult; import com.macro.mall.dto.OssPolicyResult; import com.macro.mall.service.OssService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import javax.servlet.http.HttpServletRequest; import java.text.SimpleDateFormat; import java.util.Date; /** * Oss对象存储管理Service实现类 * Created by macro on 2018/5/17. */ @Service public class OssServiceImpl implements OssService { private static final Logger LOGGER = LoggerFactory.getLogger(OssServiceImpl.class); @Value("${aliyun.oss.policy.expire}") private int ALIYUN_OSS_EXPIRE; @Value("${aliyun.oss.maxSize}") private int ALIYUN_OSS_MAX_SIZE; @Value("${aliyun.oss.callback}") private String ALIYUN_OSS_CALLBACK; @Value("${aliyun.oss.bucketName}") private String ALIYUN_OSS_BUCKET_NAME; @Value("${aliyun.oss.endpoint}") private String ALIYUN_OSS_ENDPOINT; @Value("${aliyun.oss.dir.prefix}") private String ALIYUN_OSS_DIR_PREFIX; @Autowired private OSSClient ossClient; /** * 签名生成 */ @Override public OssPolicyResult policy() { OssPolicyResult result = new OssPolicyResult(); // 存储目录 SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd"); String dir = ALIYUN_OSS_DIR_PREFIX+sdf.format(new Date()); // 签名有效期 long expireEndTime = System.currentTimeMillis() + ALIYUN_OSS_EXPIRE * 1000; Date expiration = new Date(expireEndTime); // 文件大小 long maxSize = ALIYUN_OSS_MAX_SIZE * 1024 * 1024; // 回调 OssCallbackParam callback = new OssCallbackParam(); callback.setCallbackUrl(ALIYUN_OSS_CALLBACK); callback.setCallbackBody("filename=${object}&size=${size}&mimeType=${mimeType}&height=${imageInfo.height}&width=${imageInfo.width}"); callback.setCallbackBodyType("application/x-www-form-urlencoded"); // 提交节点 String action = "http://" + ALIYUN_OSS_BUCKET_NAME + "." + ALIYUN_OSS_ENDPOINT; try { PolicyConditions policyConds = new PolicyConditions(); policyConds.addConditionItem(PolicyConditions.COND_CONTENT_LENGTH_RANGE, 0, maxSize); policyConds.addConditionItem(MatchMode.StartWith, PolicyConditions.COND_KEY, dir); String postPolicy = ossClient.generatePostPolicy(expiration, policyConds); byte[] binaryData = postPolicy.getBytes("utf-8"); String policy = BinaryUtil.toBase64String(binaryData); String signature = ossClient.calculatePostSignature(postPolicy); String callbackData = BinaryUtil.toBase64String(JSONUtil.parse(callback).toString().getBytes("utf-8")); // 返回结果 result.setAccessKeyId(ossClient.getCredentialsProvider().getCredentials().getAccessKeyId()); result.setPolicy(policy); result.setSignature(signature); result.setDir(dir); result.setCallback(callbackData); result.setHost(action); } catch (Exception e) { LOGGER.error("签名生成失败", e); } return result; } @Override public OssCallbackResult callback(HttpServletRequest request) { OssCallbackResult result= new OssCallbackResult(); String filename = request.getParameter("filename"); filename = "http://".concat(ALIYUN_OSS_BUCKET_NAME).concat(".").concat(ALIYUN_OSS_ENDPOINT).concat("/").concat(filename); result.setFilename(filename); result.setSize(request.getParameter("size")); result.setMimeType(request.getParameter("mimeType")); result.setWidth(request.getParameter("width")); result.setHeight(request.getParameter("height")); return result; } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/PmsBrandServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/PmsBrandServiceImpl.java
package com.macro.mall.service.impl; import cn.hutool.core.util.StrUtil; import com.github.pagehelper.PageHelper; import com.macro.mall.dto.PmsBrandParam; import com.macro.mall.mapper.PmsBrandMapper; import com.macro.mall.mapper.PmsProductMapper; import com.macro.mall.model.PmsBrand; import com.macro.mall.model.PmsBrandExample; import com.macro.mall.model.PmsProduct; import com.macro.mall.model.PmsProductExample; import com.macro.mall.service.PmsBrandService; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * 商品品牌管理Service实现类 * Created by macro on 2018/4/26. */ @Service public class PmsBrandServiceImpl implements PmsBrandService { @Autowired private PmsBrandMapper brandMapper; @Autowired private PmsProductMapper productMapper; @Override public List<PmsBrand> listAllBrand() { return brandMapper.selectByExample(new PmsBrandExample()); } @Override public int createBrand(PmsBrandParam pmsBrandParam) { PmsBrand pmsBrand = new PmsBrand(); BeanUtils.copyProperties(pmsBrandParam, pmsBrand); //如果创建时首字母为空,取名称的第一个为首字母 if (StrUtil.isEmpty(pmsBrand.getFirstLetter())) { pmsBrand.setFirstLetter(pmsBrand.getName().substring(0, 1)); } return brandMapper.insertSelective(pmsBrand); } @Override public int updateBrand(Long id, PmsBrandParam pmsBrandParam) { PmsBrand pmsBrand = new PmsBrand(); BeanUtils.copyProperties(pmsBrandParam, pmsBrand); pmsBrand.setId(id); //如果创建时首字母为空,取名称的第一个为首字母 if (StrUtil.isEmpty(pmsBrand.getFirstLetter())) { pmsBrand.setFirstLetter(pmsBrand.getName().substring(0, 1)); } //更新品牌时要更新商品中的品牌名称 PmsProduct product = new PmsProduct(); product.setBrandName(pmsBrand.getName()); PmsProductExample example = new PmsProductExample(); example.createCriteria().andBrandIdEqualTo(id); productMapper.updateByExampleSelective(product,example); return brandMapper.updateByPrimaryKeySelective(pmsBrand); } @Override public int deleteBrand(Long id) { return brandMapper.deleteByPrimaryKey(id); } @Override public int deleteBrand(List<Long> ids) { PmsBrandExample pmsBrandExample = new PmsBrandExample(); pmsBrandExample.createCriteria().andIdIn(ids); return brandMapper.deleteByExample(pmsBrandExample); } @Override public List<PmsBrand> listBrand(String keyword, Integer showStatus, int pageNum, int pageSize) { PageHelper.startPage(pageNum, pageSize); PmsBrandExample pmsBrandExample = new PmsBrandExample(); pmsBrandExample.setOrderByClause("sort desc"); PmsBrandExample.Criteria criteria = pmsBrandExample.createCriteria(); if (!StrUtil.isEmpty(keyword)) { criteria.andNameLike("%" + keyword + "%"); } if(showStatus!=null){ criteria.andShowStatusEqualTo(showStatus); } return brandMapper.selectByExample(pmsBrandExample); } @Override public PmsBrand getBrand(Long id) { return brandMapper.selectByPrimaryKey(id); } @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 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); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/PmsProductAttributeCategoryServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/PmsProductAttributeCategoryServiceImpl.java
package com.macro.mall.service.impl; import com.github.pagehelper.PageHelper; import com.macro.mall.dao.PmsProductAttributeCategoryDao; import com.macro.mall.dto.PmsProductAttributeCategoryItem; import com.macro.mall.mapper.PmsProductAttributeCategoryMapper; import com.macro.mall.model.PmsProductAttributeCategory; import com.macro.mall.model.PmsProductAttributeCategoryExample; import com.macro.mall.service.PmsProductAttributeCategoryService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * 商品属性分类管理Service实现类 * Created by macro on 2018/4/26. */ @Service public class PmsProductAttributeCategoryServiceImpl implements PmsProductAttributeCategoryService { @Autowired private PmsProductAttributeCategoryMapper productAttributeCategoryMapper; @Autowired private PmsProductAttributeCategoryDao productAttributeCategoryDao; @Override public int create(String name) { PmsProductAttributeCategory productAttributeCategory = new PmsProductAttributeCategory(); productAttributeCategory.setName(name); return productAttributeCategoryMapper.insertSelective(productAttributeCategory); } @Override public int update(Long id, String name) { PmsProductAttributeCategory productAttributeCategory = new PmsProductAttributeCategory(); productAttributeCategory.setName(name); productAttributeCategory.setId(id); return productAttributeCategoryMapper.updateByPrimaryKeySelective(productAttributeCategory); } @Override public int delete(Long id) { return productAttributeCategoryMapper.deleteByPrimaryKey(id); } @Override public PmsProductAttributeCategory getItem(Long id) { return productAttributeCategoryMapper.selectByPrimaryKey(id); } @Override public List<PmsProductAttributeCategory> getList(Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum,pageSize); return productAttributeCategoryMapper.selectByExample(new PmsProductAttributeCategoryExample()); } @Override public List<PmsProductAttributeCategoryItem> getListWithAttr() { return productAttributeCategoryDao.getListWithAttr(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeRecommendSubjectServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeRecommendSubjectServiceImpl.java
package com.macro.mall.service.impl; import cn.hutool.core.util.StrUtil; import com.github.pagehelper.PageHelper; import com.macro.mall.mapper.SmsHomeRecommendSubjectMapper; import com.macro.mall.model.SmsHomeRecommendSubject; import com.macro.mall.model.SmsHomeRecommendSubjectExample; import com.macro.mall.service.SmsHomeRecommendSubjectService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * 首页专题推荐管理Service实现类 * Created by macro on 2018/11/7. */ @Service public class SmsHomeRecommendSubjectServiceImpl implements SmsHomeRecommendSubjectService { @Autowired private SmsHomeRecommendSubjectMapper smsHomeRecommendSubjectMapper; @Override public int create(List<SmsHomeRecommendSubject> recommendSubjectList) { for (SmsHomeRecommendSubject recommendSubject : recommendSubjectList) { recommendSubject.setRecommendStatus(1); recommendSubject.setSort(0); smsHomeRecommendSubjectMapper.insert(recommendSubject); } return recommendSubjectList.size(); } @Override public int updateSort(Long id, Integer sort) { SmsHomeRecommendSubject recommendSubject = new SmsHomeRecommendSubject(); recommendSubject.setId(id); recommendSubject.setSort(sort); return smsHomeRecommendSubjectMapper.updateByPrimaryKeySelective(recommendSubject); } @Override public int delete(List<Long> ids) { SmsHomeRecommendSubjectExample example = new SmsHomeRecommendSubjectExample(); example.createCriteria().andIdIn(ids); return smsHomeRecommendSubjectMapper.deleteByExample(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 smsHomeRecommendSubjectMapper.updateByExampleSelective(record,example); } @Override public List<SmsHomeRecommendSubject> list(String subjectName, Integer recommendStatus, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum,pageSize); SmsHomeRecommendSubjectExample example = new SmsHomeRecommendSubjectExample(); SmsHomeRecommendSubjectExample.Criteria criteria = example.createCriteria(); if(!StrUtil.isEmpty(subjectName)){ criteria.andSubjectNameLike("%"+subjectName+"%"); } if(recommendStatus!=null){ criteria.andRecommendStatusEqualTo(recommendStatus); } example.setOrderByClause("sort desc"); return smsHomeRecommendSubjectMapper.selectByExample(example); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/PmsProductServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/PmsProductServiceImpl.java
package com.macro.mall.service.impl; import cn.hutool.core.collection.CollUtil; import cn.hutool.core.util.StrUtil; import com.github.pagehelper.PageHelper; import com.macro.mall.dao.*; import com.macro.mall.dto.PmsProductParam; import com.macro.mall.dto.PmsProductQueryParam; import com.macro.mall.dto.PmsProductResult; import com.macro.mall.mapper.*; import com.macro.mall.model.*; import com.macro.mall.service.PmsProductService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; import java.lang.reflect.Method; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.stream.Collectors; /** * 商品管理Service实现类 * Created by macro on 2018/4/26. */ @Service public class PmsProductServiceImpl implements PmsProductService { private static final Logger LOGGER = LoggerFactory.getLogger(PmsProductServiceImpl.class); @Autowired private PmsProductMapper productMapper; @Autowired private PmsMemberPriceDao memberPriceDao; @Autowired private PmsMemberPriceMapper memberPriceMapper; @Autowired private PmsProductLadderDao productLadderDao; @Autowired private PmsProductLadderMapper productLadderMapper; @Autowired private PmsProductFullReductionDao productFullReductionDao; @Autowired private PmsProductFullReductionMapper productFullReductionMapper; @Autowired private PmsSkuStockDao skuStockDao; @Autowired private PmsSkuStockMapper skuStockMapper; @Autowired private PmsProductAttributeValueDao productAttributeValueDao; @Autowired private PmsProductAttributeValueMapper productAttributeValueMapper; @Autowired private CmsSubjectProductRelationDao subjectProductRelationDao; @Autowired private CmsSubjectProductRelationMapper subjectProductRelationMapper; @Autowired private CmsPrefrenceAreaProductRelationDao prefrenceAreaProductRelationDao; @Autowired private CmsPrefrenceAreaProductRelationMapper prefrenceAreaProductRelationMapper; @Autowired private PmsProductDao productDao; @Autowired private PmsProductVertifyRecordDao productVertifyRecordDao; @Override public int create(PmsProductParam productParam) { int count; //创建商品 PmsProduct product = productParam; product.setId(null); productMapper.insertSelective(product); //根据促销类型设置价格:会员价格、阶梯价格、满减价格 Long productId = product.getId(); //会员价格 relateAndInsertList(memberPriceDao, productParam.getMemberPriceList(), productId); //阶梯价格 relateAndInsertList(productLadderDao, productParam.getProductLadderList(), productId); //满减价格 relateAndInsertList(productFullReductionDao, productParam.getProductFullReductionList(), productId); //处理sku的编码 handleSkuStockCode(productParam.getSkuStockList(),productId); //添加sku库存信息 relateAndInsertList(skuStockDao, productParam.getSkuStockList(), productId); //添加商品参数,添加自定义商品规格 relateAndInsertList(productAttributeValueDao, productParam.getProductAttributeValueList(), productId); //关联专题 relateAndInsertList(subjectProductRelationDao, productParam.getSubjectProductRelationList(), productId); //关联优选 relateAndInsertList(prefrenceAreaProductRelationDao, productParam.getPrefrenceAreaProductRelationList(), productId); count = 1; return count; } private void handleSkuStockCode(List<PmsSkuStock> skuStockList, Long productId) { if(CollectionUtils.isEmpty(skuStockList))return; for(int i=0;i<skuStockList.size();i++){ PmsSkuStock skuStock = skuStockList.get(i); if(StrUtil.isEmpty(skuStock.getSkuCode())){ SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd"); StringBuilder sb = new StringBuilder(); //日期 sb.append(sdf.format(new Date())); //四位商品id sb.append(String.format("%04d", productId)); //三位索引id sb.append(String.format("%03d", i+1)); skuStock.setSkuCode(sb.toString()); } } } @Override public PmsProductResult getUpdateInfo(Long id) { return productDao.getUpdateInfo(id); } @Override public int update(Long id, PmsProductParam productParam) { int count; //更新商品信息 PmsProduct product = productParam; product.setId(id); productMapper.updateByPrimaryKeySelective(product); //会员价格 PmsMemberPriceExample pmsMemberPriceExample = new PmsMemberPriceExample(); pmsMemberPriceExample.createCriteria().andProductIdEqualTo(id); memberPriceMapper.deleteByExample(pmsMemberPriceExample); relateAndInsertList(memberPriceDao, productParam.getMemberPriceList(), id); //阶梯价格 PmsProductLadderExample ladderExample = new PmsProductLadderExample(); ladderExample.createCriteria().andProductIdEqualTo(id); productLadderMapper.deleteByExample(ladderExample); relateAndInsertList(productLadderDao, productParam.getProductLadderList(), id); //满减价格 PmsProductFullReductionExample fullReductionExample = new PmsProductFullReductionExample(); fullReductionExample.createCriteria().andProductIdEqualTo(id); productFullReductionMapper.deleteByExample(fullReductionExample); relateAndInsertList(productFullReductionDao, productParam.getProductFullReductionList(), id); //修改sku库存信息 handleUpdateSkuStockList(id, productParam); //修改商品参数,添加自定义商品规格 PmsProductAttributeValueExample productAttributeValueExample = new PmsProductAttributeValueExample(); productAttributeValueExample.createCriteria().andProductIdEqualTo(id); productAttributeValueMapper.deleteByExample(productAttributeValueExample); relateAndInsertList(productAttributeValueDao, productParam.getProductAttributeValueList(), id); //关联专题 CmsSubjectProductRelationExample subjectProductRelationExample = new CmsSubjectProductRelationExample(); subjectProductRelationExample.createCriteria().andProductIdEqualTo(id); subjectProductRelationMapper.deleteByExample(subjectProductRelationExample); relateAndInsertList(subjectProductRelationDao, productParam.getSubjectProductRelationList(), id); //关联优选 CmsPrefrenceAreaProductRelationExample prefrenceAreaExample = new CmsPrefrenceAreaProductRelationExample(); prefrenceAreaExample.createCriteria().andProductIdEqualTo(id); prefrenceAreaProductRelationMapper.deleteByExample(prefrenceAreaExample); relateAndInsertList(prefrenceAreaProductRelationDao, productParam.getPrefrenceAreaProductRelationList(), id); count = 1; return count; } private void handleUpdateSkuStockList(Long id, PmsProductParam productParam) { //当前的sku信息 List<PmsSkuStock> currSkuList = productParam.getSkuStockList(); //当前没有sku直接删除 if(CollUtil.isEmpty(currSkuList)){ PmsSkuStockExample skuStockExample = new PmsSkuStockExample(); skuStockExample.createCriteria().andProductIdEqualTo(id); skuStockMapper.deleteByExample(skuStockExample); return; } //获取初始sku信息 PmsSkuStockExample skuStockExample = new PmsSkuStockExample(); skuStockExample.createCriteria().andProductIdEqualTo(id); List<PmsSkuStock> oriStuList = skuStockMapper.selectByExample(skuStockExample); //获取新增sku信息 List<PmsSkuStock> insertSkuList = currSkuList.stream().filter(item->item.getId()==null).collect(Collectors.toList()); //获取需要更新的sku信息 List<PmsSkuStock> updateSkuList = currSkuList.stream().filter(item->item.getId()!=null).collect(Collectors.toList()); List<Long> updateSkuIds = updateSkuList.stream().map(PmsSkuStock::getId).collect(Collectors.toList()); //获取需要删除的sku信息 List<PmsSkuStock> removeSkuList = oriStuList.stream().filter(item-> !updateSkuIds.contains(item.getId())).collect(Collectors.toList()); handleSkuStockCode(insertSkuList,id); handleSkuStockCode(updateSkuList,id); //新增sku if(CollUtil.isNotEmpty(insertSkuList)){ relateAndInsertList(skuStockDao, insertSkuList, id); } //删除sku if(CollUtil.isNotEmpty(removeSkuList)){ List<Long> removeSkuIds = removeSkuList.stream().map(PmsSkuStock::getId).collect(Collectors.toList()); PmsSkuStockExample removeExample = new PmsSkuStockExample(); removeExample.createCriteria().andIdIn(removeSkuIds); skuStockMapper.deleteByExample(removeExample); } //修改sku if(CollUtil.isNotEmpty(updateSkuList)){ for (PmsSkuStock pmsSkuStock : updateSkuList) { skuStockMapper.updateByPrimaryKeySelective(pmsSkuStock); } } } @Override public List<PmsProduct> list(PmsProductQueryParam productQueryParam, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum, pageSize); PmsProductExample productExample = new PmsProductExample(); PmsProductExample.Criteria criteria = productExample.createCriteria(); criteria.andDeleteStatusEqualTo(0); if (productQueryParam.getPublishStatus() != null) { criteria.andPublishStatusEqualTo(productQueryParam.getPublishStatus()); } if (productQueryParam.getVerifyStatus() != null) { criteria.andVerifyStatusEqualTo(productQueryParam.getVerifyStatus()); } if (!StrUtil.isEmpty(productQueryParam.getKeyword())) { criteria.andNameLike("%" + productQueryParam.getKeyword() + "%"); } if (!StrUtil.isEmpty(productQueryParam.getProductSn())) { criteria.andProductSnEqualTo(productQueryParam.getProductSn()); } if (productQueryParam.getBrandId() != null) { criteria.andBrandIdEqualTo(productQueryParam.getBrandId()); } if (productQueryParam.getProductCategoryId() != null) { criteria.andProductCategoryIdEqualTo(productQueryParam.getProductCategoryId()); } return productMapper.selectByExample(productExample); } @Override public int updateVerifyStatus(List<Long> ids, Integer verifyStatus, String detail) { PmsProduct product = new PmsProduct(); product.setVerifyStatus(verifyStatus); PmsProductExample example = new PmsProductExample(); example.createCriteria().andIdIn(ids); List<PmsProductVertifyRecord> list = new ArrayList<>(); int count = productMapper.updateByExampleSelective(product, example); //修改完审核状态后插入审核记录 for (Long id : ids) { PmsProductVertifyRecord record = new PmsProductVertifyRecord(); record.setProductId(id); record.setCreateTime(new Date()); record.setDetail(detail); record.setStatus(verifyStatus); record.setVertifyMan("test"); list.add(record); } productVertifyRecordDao.insertList(list); return count; } @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 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 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 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 List<PmsProduct> list(String keyword) { PmsProductExample productExample = new PmsProductExample(); PmsProductExample.Criteria criteria = productExample.createCriteria(); criteria.andDeleteStatusEqualTo(0); if(!StrUtil.isEmpty(keyword)){ criteria.andNameLike("%" + keyword + "%"); productExample.or().andDeleteStatusEqualTo(0).andProductSnLike("%" + keyword + "%"); } return productMapper.selectByExample(productExample); } /** * 建立和插入关系表操作 * * @param dao 可以操作的dao * @param dataList 要插入的数据 * @param productId 建立关系的id */ private void relateAndInsertList(Object dao, List dataList, Long productId) { try { if (CollectionUtils.isEmpty(dataList)) return; for (Object item : dataList) { Method setId = item.getClass().getMethod("setId", Long.class); setId.invoke(item, (Long) null); Method setProductId = item.getClass().getMethod("setProductId", Long.class); setProductId.invoke(item, productId); } Method insertList = dao.getClass().getMethod("insertList", List.class); insertList.invoke(dao, dataList); } catch (Exception e) { LOGGER.warn("创建商品出错:{}", e.getMessage()); throw new RuntimeException(e.getMessage()); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/SmsCouponServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/SmsCouponServiceImpl.java
package com.macro.mall.service.impl; import cn.hutool.core.util.StrUtil; import com.github.pagehelper.PageHelper; import com.macro.mall.dao.SmsCouponDao; import com.macro.mall.dao.SmsCouponProductCategoryRelationDao; import com.macro.mall.dao.SmsCouponProductRelationDao; import com.macro.mall.dto.SmsCouponParam; import com.macro.mall.mapper.SmsCouponMapper; import com.macro.mall.mapper.SmsCouponProductCategoryRelationMapper; import com.macro.mall.mapper.SmsCouponProductRelationMapper; import com.macro.mall.model.*; import com.macro.mall.service.SmsCouponService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * 优惠券管理Service实现类 * Created by macro on 2018/8/28. */ @Service public class SmsCouponServiceImpl implements SmsCouponService { @Autowired private SmsCouponMapper couponMapper; @Autowired private SmsCouponProductRelationMapper productRelationMapper; @Autowired private SmsCouponProductCategoryRelationMapper productCategoryRelationMapper; @Autowired private SmsCouponProductRelationDao productRelationDao; @Autowired private SmsCouponProductCategoryRelationDao productCategoryRelationDao; @Autowired private SmsCouponDao couponDao; @Override public int create(SmsCouponParam couponParam) { couponParam.setCount(couponParam.getPublishCount()); couponParam.setUseCount(0); couponParam.setReceiveCount(0); //插入优惠券表 int count = couponMapper.insert(couponParam); //插入优惠券和商品关系表 if(couponParam.getUseType().equals(2)){ for(SmsCouponProductRelation productRelation:couponParam.getProductRelationList()){ productRelation.setCouponId(couponParam.getId()); } productRelationDao.insertList(couponParam.getProductRelationList()); } //插入优惠券和商品分类关系表 if(couponParam.getUseType().equals(1)){ for (SmsCouponProductCategoryRelation couponProductCategoryRelation : couponParam.getProductCategoryRelationList()) { couponProductCategoryRelation.setCouponId(couponParam.getId()); } productCategoryRelationDao.insertList(couponParam.getProductCategoryRelationList()); } return count; } @Override public int delete(Long id) { //删除优惠券 int count = couponMapper.deleteByPrimaryKey(id); //删除商品关联 deleteProductRelation(id); //删除商品分类关联 deleteProductCategoryRelation(id); return count; } private void deleteProductCategoryRelation(Long id) { SmsCouponProductCategoryRelationExample productCategoryRelationExample = new SmsCouponProductCategoryRelationExample(); productCategoryRelationExample.createCriteria().andCouponIdEqualTo(id); productCategoryRelationMapper.deleteByExample(productCategoryRelationExample); } private void deleteProductRelation(Long id) { SmsCouponProductRelationExample productRelationExample = new SmsCouponProductRelationExample(); productRelationExample.createCriteria().andCouponIdEqualTo(id); productRelationMapper.deleteByExample(productRelationExample); } @Override public int update(Long id, SmsCouponParam couponParam) { couponParam.setId(id); int count =couponMapper.updateByPrimaryKey(couponParam); //删除后插入优惠券和商品关系表 if(couponParam.getUseType().equals(2)){ for(SmsCouponProductRelation productRelation:couponParam.getProductRelationList()){ productRelation.setCouponId(couponParam.getId()); } deleteProductRelation(id); productRelationDao.insertList(couponParam.getProductRelationList()); } //删除后插入优惠券和商品分类关系表 if(couponParam.getUseType().equals(1)){ for (SmsCouponProductCategoryRelation couponProductCategoryRelation : couponParam.getProductCategoryRelationList()) { couponProductCategoryRelation.setCouponId(couponParam.getId()); } deleteProductCategoryRelation(id); productCategoryRelationDao.insertList(couponParam.getProductCategoryRelationList()); } return count; } @Override public List<SmsCoupon> list(String name, Integer type, Integer pageSize, Integer pageNum) { SmsCouponExample example = new SmsCouponExample(); SmsCouponExample.Criteria criteria = example.createCriteria(); if(!StrUtil.isEmpty(name)){ criteria.andNameLike("%"+name+"%"); } if(type!=null){ criteria.andTypeEqualTo(type); } PageHelper.startPage(pageNum,pageSize); return couponMapper.selectByExample(example); } @Override public SmsCouponParam getItem(Long id) { return couponDao.getItem(id); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/SmsFlashPromotionServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/SmsFlashPromotionServiceImpl.java
package com.macro.mall.service.impl; import cn.hutool.core.util.StrUtil; import com.github.pagehelper.PageHelper; import com.macro.mall.mapper.SmsFlashPromotionMapper; import com.macro.mall.model.SmsFlashPromotion; import com.macro.mall.model.SmsFlashPromotionExample; import com.macro.mall.service.SmsFlashPromotionService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.Date; import java.util.List; /** * 限时购活动管理Service实现类 * Created by macro on 2018/11/16. */ @Service public class SmsFlashPromotionServiceImpl implements SmsFlashPromotionService { @Autowired private SmsFlashPromotionMapper flashPromotionMapper; @Override public int create(SmsFlashPromotion flashPromotion) { flashPromotion.setCreateTime(new Date()); return flashPromotionMapper.insert(flashPromotion); } @Override public int update(Long id, SmsFlashPromotion flashPromotion) { flashPromotion.setId(id); return flashPromotionMapper.updateByPrimaryKey(flashPromotion); } @Override public int delete(Long id) { return flashPromotionMapper.deleteByPrimaryKey(id); } @Override public int updateStatus(Long id, Integer status) { SmsFlashPromotion flashPromotion = new SmsFlashPromotion(); flashPromotion.setId(id); flashPromotion.setStatus(status); return flashPromotionMapper.updateByPrimaryKeySelective(flashPromotion); } @Override public SmsFlashPromotion getItem(Long id) { return flashPromotionMapper.selectByPrimaryKey(id); } @Override public List<SmsFlashPromotion> list(String keyword, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum, pageSize); SmsFlashPromotionExample example = new SmsFlashPromotionExample(); if (!StrUtil.isEmpty(keyword)) { example.createCriteria().andTitleLike("%" + keyword + "%"); } return flashPromotionMapper.selectByExample(example); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeRecommendProductServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeRecommendProductServiceImpl.java
package com.macro.mall.service.impl; import cn.hutool.core.util.StrUtil; import com.github.pagehelper.PageHelper; import com.macro.mall.mapper.SmsHomeRecommendProductMapper; import com.macro.mall.model.SmsHomeRecommendProduct; import com.macro.mall.model.SmsHomeRecommendProductExample; import com.macro.mall.service.SmsHomeRecommendProductService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * 首页人气推荐管理Service实现类 * Created by macro on 2018/11/7. */ @Service public class SmsHomeRecommendProductServiceImpl implements SmsHomeRecommendProductService { @Autowired private SmsHomeRecommendProductMapper recommendProductMapper; @Override public int create(List<SmsHomeRecommendProduct> homeRecommendProductList) { for (SmsHomeRecommendProduct recommendProduct : homeRecommendProductList) { recommendProduct.setRecommendStatus(1); recommendProduct.setSort(0); recommendProductMapper.insert(recommendProduct); } return homeRecommendProductList.size(); } @Override public int updateSort(Long id, Integer sort) { SmsHomeRecommendProduct recommendProduct = new SmsHomeRecommendProduct(); recommendProduct.setId(id); recommendProduct.setSort(sort); return recommendProductMapper.updateByPrimaryKeySelective(recommendProduct); } @Override public int delete(List<Long> ids) { SmsHomeRecommendProductExample example = new SmsHomeRecommendProductExample(); example.createCriteria().andIdIn(ids); return recommendProductMapper.deleteByExample(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 List<SmsHomeRecommendProduct> list(String productName, Integer recommendStatus, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum,pageSize); SmsHomeRecommendProductExample example = new SmsHomeRecommendProductExample(); SmsHomeRecommendProductExample.Criteria criteria = example.createCriteria(); if(!StrUtil.isEmpty(productName)){ criteria.andProductNameLike("%"+productName+"%"); } if(recommendStatus!=null){ criteria.andRecommendStatusEqualTo(recommendStatus); } example.setOrderByClause("sort desc"); return recommendProductMapper.selectByExample(example); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeAdvertiseServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeAdvertiseServiceImpl.java
package com.macro.mall.service.impl; import cn.hutool.core.util.StrUtil; import com.github.pagehelper.PageHelper; import com.macro.mall.mapper.SmsHomeAdvertiseMapper; import com.macro.mall.model.SmsHomeAdvertise; import com.macro.mall.model.SmsHomeAdvertiseExample; import com.macro.mall.service.SmsHomeAdvertiseService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; /** * 首页广告管理Service实现类 * Created by macro on 2018/11/7. */ @Service public class SmsHomeAdvertiseServiceImpl implements SmsHomeAdvertiseService { @Autowired private SmsHomeAdvertiseMapper advertiseMapper; @Override public int create(SmsHomeAdvertise advertise) { advertise.setClickCount(0); advertise.setOrderCount(0); return advertiseMapper.insert(advertise); } @Override public int delete(List<Long> ids) { SmsHomeAdvertiseExample example = new SmsHomeAdvertiseExample(); example.createCriteria().andIdIn(ids); return advertiseMapper.deleteByExample(example); } @Override public int updateStatus(Long id, Integer status) { SmsHomeAdvertise record = new SmsHomeAdvertise(); record.setId(id); record.setStatus(status); return advertiseMapper.updateByPrimaryKeySelective(record); } @Override public SmsHomeAdvertise getItem(Long id) { return advertiseMapper.selectByPrimaryKey(id); } @Override public int update(Long id, SmsHomeAdvertise advertise) { advertise.setId(id); return advertiseMapper.updateByPrimaryKeySelective(advertise); } @Override public List<SmsHomeAdvertise> list(String name, Integer type, String endTime, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum, pageSize); SmsHomeAdvertiseExample example = new SmsHomeAdvertiseExample(); SmsHomeAdvertiseExample.Criteria criteria = example.createCriteria(); if (!StrUtil.isEmpty(name)) { criteria.andNameLike("%" + name + "%"); } if (type != null) { criteria.andTypeEqualTo(type); } if (!StrUtil.isEmpty(endTime)) { String startStr = endTime + " 00:00:00"; String endStr = endTime + " 23:59:59"; SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date start = null; try { start = sdf.parse(startStr); } catch (ParseException e) { e.printStackTrace(); } Date end = null; try { end = sdf.parse(endStr); } catch (ParseException e) { e.printStackTrace(); } if (start != null && end != null) { criteria.andEndTimeBetween(start, end); } } example.setOrderByClause("sort desc"); return advertiseMapper.selectByExample(example); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/UmsRoleServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/UmsRoleServiceImpl.java
package com.macro.mall.service.impl; import cn.hutool.core.util.StrUtil; import com.github.pagehelper.PageHelper; import com.macro.mall.dao.UmsRoleDao; import com.macro.mall.mapper.UmsRoleMapper; import com.macro.mall.mapper.UmsRoleMenuRelationMapper; import com.macro.mall.mapper.UmsRoleResourceRelationMapper; import com.macro.mall.model.*; import com.macro.mall.service.UmsAdminCacheService; import com.macro.mall.service.UmsRoleService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.Date; import java.util.List; /** * 后台角色管理Service实现类 * Created by macro on 2018/9/30. */ @Service public class UmsRoleServiceImpl implements UmsRoleService { @Autowired private UmsRoleMapper roleMapper; @Autowired private UmsRoleMenuRelationMapper roleMenuRelationMapper; @Autowired private UmsRoleResourceRelationMapper roleResourceRelationMapper; @Autowired private UmsRoleDao roleDao; @Autowired private UmsAdminCacheService adminCacheService; @Override public int create(UmsRole role) { role.setCreateTime(new Date()); role.setAdminCount(0); role.setSort(0); return roleMapper.insert(role); } @Override public int update(Long id, UmsRole role) { role.setId(id); return roleMapper.updateByPrimaryKeySelective(role); } @Override public int delete(List<Long> ids) { UmsRoleExample example = new UmsRoleExample(); example.createCriteria().andIdIn(ids); int count = roleMapper.deleteByExample(example); adminCacheService.delResourceListByRoleIds(ids); return count; } @Override public List<UmsRole> list() { return roleMapper.selectByExample(new UmsRoleExample()); } @Override public List<UmsRole> list(String keyword, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum, pageSize); UmsRoleExample example = new UmsRoleExample(); if (!StrUtil.isEmpty(keyword)) { example.createCriteria().andNameLike("%" + keyword + "%"); } return roleMapper.selectByExample(example); } @Override public List<UmsMenu> getMenuList(Long adminId) { return roleDao.getMenuList(adminId); } @Override public List<UmsMenu> listMenu(Long roleId) { return roleDao.getMenuListByRoleId(roleId); } @Override public List<UmsResource> listResource(Long roleId) { return roleDao.getResourceListByRoleId(roleId); } @Override public int allocMenu(Long roleId, List<Long> menuIds) { //先删除原有关系 UmsRoleMenuRelationExample example=new UmsRoleMenuRelationExample(); example.createCriteria().andRoleIdEqualTo(roleId); roleMenuRelationMapper.deleteByExample(example); //批量插入新关系 for (Long menuId : menuIds) { UmsRoleMenuRelation relation = new UmsRoleMenuRelation(); relation.setRoleId(roleId); relation.setMenuId(menuId); roleMenuRelationMapper.insert(relation); } return menuIds.size(); } @Override public int allocResource(Long roleId, List<Long> resourceIds) { //先删除原有关系 UmsRoleResourceRelationExample example=new UmsRoleResourceRelationExample(); example.createCriteria().andRoleIdEqualTo(roleId); roleResourceRelationMapper.deleteByExample(example); //批量插入新关系 for (Long resourceId : resourceIds) { UmsRoleResourceRelation relation = new UmsRoleResourceRelation(); relation.setRoleId(roleId); relation.setResourceId(resourceId); roleResourceRelationMapper.insert(relation); } adminCacheService.delResourceListByRole(roleId); return resourceIds.size(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/UmsAdminServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/UmsAdminServiceImpl.java
package com.macro.mall.service.impl; import cn.hutool.core.collection.CollUtil; import cn.hutool.core.util.StrUtil; import com.github.pagehelper.PageHelper; import com.macro.mall.bo.AdminUserDetails; import com.macro.mall.common.exception.Asserts; import com.macro.mall.common.util.RequestUtil; import com.macro.mall.dao.UmsAdminRoleRelationDao; import com.macro.mall.dto.UmsAdminParam; import com.macro.mall.dto.UpdateAdminPasswordParam; import com.macro.mall.mapper.UmsAdminLoginLogMapper; import com.macro.mall.mapper.UmsAdminMapper; import com.macro.mall.mapper.UmsAdminRoleRelationMapper; import com.macro.mall.model.*; import com.macro.mall.security.util.JwtTokenUtil; import com.macro.mall.security.util.SpringUtil; import com.macro.mall.service.UmsAdminCacheService; import com.macro.mall.service.UmsAdminService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; import org.springframework.security.core.AuthenticationException; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UsernameNotFoundException; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; import org.springframework.web.context.request.RequestContextHolder; import org.springframework.web.context.request.ServletRequestAttributes; import javax.servlet.http.HttpServletRequest; import java.util.ArrayList; import java.util.Date; import java.util.List; /** * 后台用户管理Service实现类 * Created by macro on 2018/4/26. */ @Service public class UmsAdminServiceImpl implements UmsAdminService { private static final Logger LOGGER = LoggerFactory.getLogger(UmsAdminServiceImpl.class); @Autowired private JwtTokenUtil jwtTokenUtil; @Autowired private PasswordEncoder passwordEncoder; @Autowired private UmsAdminMapper adminMapper; @Autowired private UmsAdminRoleRelationMapper adminRoleRelationMapper; @Autowired private UmsAdminRoleRelationDao adminRoleRelationDao; @Autowired private UmsAdminLoginLogMapper loginLogMapper; @Override public UmsAdmin getAdminByUsername(String username) { //先从缓存中获取数据 UmsAdmin admin = getCacheService().getAdmin(username); if (admin != null) return admin; //缓存中没有再从数据库中获取 UmsAdminExample example = new UmsAdminExample(); example.createCriteria().andUsernameEqualTo(username); List<UmsAdmin> adminList = adminMapper.selectByExample(example); if (adminList != null && adminList.size() > 0) { admin = adminList.get(0); //将数据库中的数据存入缓存中 getCacheService().setAdmin(admin); return admin; } return null; } @Override public UmsAdmin register(UmsAdminParam umsAdminParam) { UmsAdmin umsAdmin = new UmsAdmin(); BeanUtils.copyProperties(umsAdminParam, umsAdmin); umsAdmin.setCreateTime(new Date()); umsAdmin.setStatus(1); //查询是否有相同用户名的用户 UmsAdminExample example = new UmsAdminExample(); example.createCriteria().andUsernameEqualTo(umsAdmin.getUsername()); List<UmsAdmin> umsAdminList = adminMapper.selectByExample(example); if (umsAdminList.size() > 0) { return null; } //将密码进行加密操作 String encodePassword = passwordEncoder.encode(umsAdmin.getPassword()); umsAdmin.setPassword(encodePassword); adminMapper.insert(umsAdmin); return umsAdmin; } @Override public String login(String username, String password) { String token = null; //密码需要客户端加密后传递 try { UserDetails userDetails = loadUserByUsername(username); if(!passwordEncoder.matches(password,userDetails.getPassword())){ Asserts.fail("密码不正确"); } if(!userDetails.isEnabled()){ Asserts.fail("帐号已被禁用"); } UsernamePasswordAuthenticationToken authentication = new UsernamePasswordAuthenticationToken(userDetails, null, userDetails.getAuthorities()); SecurityContextHolder.getContext().setAuthentication(authentication); token = jwtTokenUtil.generateToken(userDetails); // updateLoginTimeByUsername(username); insertLoginLog(username); } catch (AuthenticationException e) { LOGGER.warn("登录异常:{}", e.getMessage()); } return token; } /** * 添加登录记录 * @param username 用户名 */ private void insertLoginLog(String username) { UmsAdmin admin = getAdminByUsername(username); if(admin==null) return; UmsAdminLoginLog loginLog = new UmsAdminLoginLog(); loginLog.setAdminId(admin.getId()); loginLog.setCreateTime(new Date()); ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes(); HttpServletRequest request = attributes.getRequest(); loginLog.setIp(RequestUtil.getRequestIp(request)); loginLogMapper.insert(loginLog); } /** * 根据用户名修改登录时间 */ private void updateLoginTimeByUsername(String username) { UmsAdmin record = new UmsAdmin(); record.setLoginTime(new Date()); UmsAdminExample example = new UmsAdminExample(); example.createCriteria().andUsernameEqualTo(username); adminMapper.updateByExampleSelective(record, example); } @Override public String refreshToken(String oldToken) { return jwtTokenUtil.refreshHeadToken(oldToken); } @Override public UmsAdmin getItem(Long id) { return adminMapper.selectByPrimaryKey(id); } @Override public List<UmsAdmin> list(String keyword, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum, pageSize); UmsAdminExample example = new UmsAdminExample(); UmsAdminExample.Criteria criteria = example.createCriteria(); if (!StrUtil.isEmpty(keyword)) { criteria.andUsernameLike("%" + keyword + "%"); example.or(example.createCriteria().andNickNameLike("%" + keyword + "%")); } return adminMapper.selectByExample(example); } @Override public int update(Long id, UmsAdmin admin) { admin.setId(id); UmsAdmin rawAdmin = adminMapper.selectByPrimaryKey(id); if(rawAdmin.getPassword().equals(admin.getPassword())){ //与原加密密码相同的不需要修改 admin.setPassword(null); }else{ //与原加密密码不同的需要加密修改 if(StrUtil.isEmpty(admin.getPassword())){ admin.setPassword(null); }else{ admin.setPassword(passwordEncoder.encode(admin.getPassword())); } } int count = adminMapper.updateByPrimaryKeySelective(admin); getCacheService().delAdmin(id); return count; } @Override public int delete(Long id) { getCacheService().delAdmin(id); int count = adminMapper.deleteByPrimaryKey(id); getCacheService().delResourceList(id); return count; } @Override public int updateRole(Long adminId, List<Long> roleIds) { int count = roleIds == null ? 0 : roleIds.size(); //先删除原来的关系 UmsAdminRoleRelationExample adminRoleRelationExample = new UmsAdminRoleRelationExample(); adminRoleRelationExample.createCriteria().andAdminIdEqualTo(adminId); adminRoleRelationMapper.deleteByExample(adminRoleRelationExample); //建立新关系 if (!CollectionUtils.isEmpty(roleIds)) { List<UmsAdminRoleRelation> list = new ArrayList<>(); for (Long roleId : roleIds) { UmsAdminRoleRelation roleRelation = new UmsAdminRoleRelation(); roleRelation.setAdminId(adminId); roleRelation.setRoleId(roleId); list.add(roleRelation); } adminRoleRelationDao.insertList(list); } getCacheService().delResourceList(adminId); return count; } @Override public List<UmsRole> getRoleList(Long adminId) { return adminRoleRelationDao.getRoleList(adminId); } @Override public List<UmsResource> getResourceList(Long adminId) { //先从缓存中获取数据 List<UmsResource> resourceList = getCacheService().getResourceList(adminId); if(CollUtil.isNotEmpty(resourceList)){ return resourceList; } //缓存中没有从数据库中获取 resourceList = adminRoleRelationDao.getResourceList(adminId); if(CollUtil.isNotEmpty(resourceList)){ //将数据库中的数据存入缓存中 getCacheService().setResourceList(adminId,resourceList); } return resourceList; } @Override public int updatePassword(UpdateAdminPasswordParam param) { if(StrUtil.isEmpty(param.getUsername()) ||StrUtil.isEmpty(param.getOldPassword()) ||StrUtil.isEmpty(param.getNewPassword())){ return -1; } UmsAdminExample example = new UmsAdminExample(); example.createCriteria().andUsernameEqualTo(param.getUsername()); List<UmsAdmin> adminList = adminMapper.selectByExample(example); if(CollUtil.isEmpty(adminList)){ return -2; } UmsAdmin umsAdmin = adminList.get(0); if(!passwordEncoder.matches(param.getOldPassword(),umsAdmin.getPassword())){ return -3; } umsAdmin.setPassword(passwordEncoder.encode(param.getNewPassword())); adminMapper.updateByPrimaryKey(umsAdmin); getCacheService().delAdmin(umsAdmin.getId()); return 1; } @Override public UserDetails loadUserByUsername(String username){ //获取用户信息 UmsAdmin admin = getAdminByUsername(username); if (admin != null) { List<UmsResource> resourceList = getResourceList(admin.getId()); return new AdminUserDetails(admin,resourceList); } throw new UsernameNotFoundException("用户名或密码错误"); } @Override public UmsAdminCacheService getCacheService() { return SpringUtil.getBean(UmsAdminCacheService.class); } @Override public void logout(String username) { //清空缓存中的用户相关数据 UmsAdmin admin = getCacheService().getAdmin(username); getCacheService().delAdmin(admin.getId()); getCacheService().delResourceList(admin.getId()); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/OmsOrderSettingServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/OmsOrderSettingServiceImpl.java
package com.macro.mall.service.impl; import com.macro.mall.mapper.OmsOrderSettingMapper; import com.macro.mall.model.OmsOrderSetting; import com.macro.mall.service.OmsOrderSettingService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; /** * 订单设置管理Service实现类 * Created by macro on 2018/10/16. */ @Service public class OmsOrderSettingServiceImpl implements OmsOrderSettingService { @Autowired private OmsOrderSettingMapper orderSettingMapper; @Override public OmsOrderSetting getItem(Long id) { return orderSettingMapper.selectByPrimaryKey(id); } @Override public int update(Long id, OmsOrderSetting orderSetting) { orderSetting.setId(id); return orderSettingMapper.updateByPrimaryKey(orderSetting); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/OmsOrderServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/OmsOrderServiceImpl.java
package com.macro.mall.service.impl; import com.github.pagehelper.PageHelper; import com.macro.mall.dao.OmsOrderDao; import com.macro.mall.dao.OmsOrderOperateHistoryDao; import com.macro.mall.dto.*; import com.macro.mall.mapper.OmsOrderMapper; import com.macro.mall.mapper.OmsOrderOperateHistoryMapper; import com.macro.mall.model.OmsOrder; import com.macro.mall.model.OmsOrderExample; import com.macro.mall.model.OmsOrderOperateHistory; import com.macro.mall.service.OmsOrderService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.Date; import java.util.List; import java.util.stream.Collectors; /** * 订单管理Service实现类 * Created by macro on 2018/10/11. */ @Service public class OmsOrderServiceImpl implements OmsOrderService { @Autowired private OmsOrderMapper orderMapper; @Autowired private OmsOrderDao orderDao; @Autowired private OmsOrderOperateHistoryDao orderOperateHistoryDao; @Autowired private OmsOrderOperateHistoryMapper orderOperateHistoryMapper; @Override public List<OmsOrder> list(OmsOrderQueryParam queryParam, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum, pageSize); return orderDao.getList(queryParam); } @Override public int delivery(List<OmsOrderDeliveryParam> deliveryParamList) { //批量发货 int count = orderDao.delivery(deliveryParamList); //添加操作记录 List<OmsOrderOperateHistory> operateHistoryList = deliveryParamList.stream() .map(omsOrderDeliveryParam -> { OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(omsOrderDeliveryParam.getOrderId()); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(2); history.setNote("完成发货"); return history; }).collect(Collectors.toList()); orderOperateHistoryDao.insertList(operateHistoryList); return count; } @Override public int close(List<Long> ids, String note) { OmsOrder record = new OmsOrder(); record.setStatus(4); OmsOrderExample example = new OmsOrderExample(); example.createCriteria().andDeleteStatusEqualTo(0).andIdIn(ids); int count = orderMapper.updateByExampleSelective(record, example); List<OmsOrderOperateHistory> historyList = ids.stream().map(orderId -> { OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(orderId); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(4); history.setNote("订单关闭:"+note); return history; }).collect(Collectors.toList()); orderOperateHistoryDao.insertList(historyList); return count; } @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 OmsOrderDetail detail(Long id) { return orderDao.getDetail(id); } @Override public int updateReceiverInfo(OmsReceiverInfoParam receiverInfoParam) { OmsOrder order = new OmsOrder(); order.setId(receiverInfoParam.getOrderId()); order.setReceiverName(receiverInfoParam.getReceiverName()); order.setReceiverPhone(receiverInfoParam.getReceiverPhone()); order.setReceiverPostCode(receiverInfoParam.getReceiverPostCode()); order.setReceiverDetailAddress(receiverInfoParam.getReceiverDetailAddress()); order.setReceiverProvince(receiverInfoParam.getReceiverProvince()); order.setReceiverCity(receiverInfoParam.getReceiverCity()); order.setReceiverRegion(receiverInfoParam.getReceiverRegion()); order.setModifyTime(new Date()); int count = orderMapper.updateByPrimaryKeySelective(order); //插入操作记录 OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(receiverInfoParam.getOrderId()); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(receiverInfoParam.getStatus()); history.setNote("修改收货人信息"); orderOperateHistoryMapper.insert(history); return count; } @Override public int updateMoneyInfo(OmsMoneyInfoParam moneyInfoParam) { OmsOrder order = new OmsOrder(); order.setId(moneyInfoParam.getOrderId()); order.setFreightAmount(moneyInfoParam.getFreightAmount()); order.setDiscountAmount(moneyInfoParam.getDiscountAmount()); order.setModifyTime(new Date()); int count = orderMapper.updateByPrimaryKeySelective(order); //插入操作记录 OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(moneyInfoParam.getOrderId()); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(moneyInfoParam.getStatus()); history.setNote("修改费用信息"); orderOperateHistoryMapper.insert(history); return count; } @Override public int updateNote(Long id, String note, Integer status) { OmsOrder order = new OmsOrder(); order.setId(id); order.setNote(note); order.setModifyTime(new Date()); int count = orderMapper.updateByPrimaryKeySelective(order); OmsOrderOperateHistory history = new OmsOrderOperateHistory(); history.setOrderId(id); history.setCreateTime(new Date()); history.setOperateMan("后台管理员"); history.setOrderStatus(status); history.setNote("修改备注信息:"+note); orderOperateHistoryMapper.insert(history); return count; } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/SmsFlashPromotionProductRelationServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/SmsFlashPromotionProductRelationServiceImpl.java
package com.macro.mall.service.impl; import com.github.pagehelper.PageHelper; import com.macro.mall.dao.SmsFlashPromotionProductRelationDao; import com.macro.mall.dto.SmsFlashPromotionProduct; import com.macro.mall.mapper.SmsFlashPromotionProductRelationMapper; import com.macro.mall.model.SmsFlashPromotionProductRelation; import com.macro.mall.model.SmsFlashPromotionProductRelationExample; import com.macro.mall.service.SmsFlashPromotionProductRelationService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * 限时购商品关联管理Service实现类 * Created by macro on 2018/11/16. */ @Service public class SmsFlashPromotionProductRelationServiceImpl implements SmsFlashPromotionProductRelationService { @Autowired private SmsFlashPromotionProductRelationMapper relationMapper; @Autowired private SmsFlashPromotionProductRelationDao relationDao; @Override public int create(List<SmsFlashPromotionProductRelation> relationList) { for (SmsFlashPromotionProductRelation relation : relationList) { relationMapper.insert(relation); } return relationList.size(); } @Override public int update(Long id, SmsFlashPromotionProductRelation relation) { relation.setId(id); return relationMapper.updateByPrimaryKey(relation); } @Override public int delete(Long id) { return relationMapper.deleteByPrimaryKey(id); } @Override public SmsFlashPromotionProductRelation getItem(Long id) { return relationMapper.selectByPrimaryKey(id); } @Override public List<SmsFlashPromotionProduct> list(Long flashPromotionId, Long flashPromotionSessionId, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum,pageSize); return relationDao.getList(flashPromotionId,flashPromotionSessionId); } @Override public long getCount(Long flashPromotionId, Long flashPromotionSessionId) { SmsFlashPromotionProductRelationExample example = new SmsFlashPromotionProductRelationExample(); example.createCriteria() .andFlashPromotionIdEqualTo(flashPromotionId) .andFlashPromotionSessionIdEqualTo(flashPromotionSessionId); return relationMapper.countByExample(example); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/UmsResourceServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/UmsResourceServiceImpl.java
package com.macro.mall.service.impl; import cn.hutool.core.util.StrUtil; import com.github.pagehelper.PageHelper; import com.macro.mall.mapper.UmsResourceMapper; import com.macro.mall.model.UmsResource; import com.macro.mall.model.UmsResourceExample; import com.macro.mall.service.UmsAdminCacheService; import com.macro.mall.service.UmsResourceService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.Date; import java.util.List; /** * 后台资源管理Service实现类 * Created by macro on 2020/2/2. */ @Service public class UmsResourceServiceImpl implements UmsResourceService { @Autowired private UmsResourceMapper resourceMapper; @Autowired private UmsAdminCacheService adminCacheService; @Override public int create(UmsResource umsResource) { umsResource.setCreateTime(new Date()); return resourceMapper.insert(umsResource); } @Override public int update(Long id, UmsResource umsResource) { umsResource.setId(id); int count = resourceMapper.updateByPrimaryKeySelective(umsResource); adminCacheService.delResourceListByResource(id); return count; } @Override public UmsResource getItem(Long id) { return resourceMapper.selectByPrimaryKey(id); } @Override public int delete(Long id) { int count = resourceMapper.deleteByPrimaryKey(id); adminCacheService.delResourceListByResource(id); return count; } @Override public List<UmsResource> list(Long categoryId, String nameKeyword, String urlKeyword, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum,pageSize); UmsResourceExample example = new UmsResourceExample(); UmsResourceExample.Criteria criteria = example.createCriteria(); if(categoryId!=null){ criteria.andCategoryIdEqualTo(categoryId); } if(StrUtil.isNotEmpty(nameKeyword)){ criteria.andNameLike('%'+nameKeyword+'%'); } if(StrUtil.isNotEmpty(urlKeyword)){ criteria.andUrlLike('%'+urlKeyword+'%'); } return resourceMapper.selectByExample(example); } @Override public List<UmsResource> listAll() { return resourceMapper.selectByExample(new UmsResourceExample()); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/OmsOrderReturnReasonServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/OmsOrderReturnReasonServiceImpl.java
package com.macro.mall.service.impl; import com.github.pagehelper.PageHelper; import com.macro.mall.mapper.OmsOrderReturnReasonMapper; import com.macro.mall.model.OmsOrderReturnReason; import com.macro.mall.model.OmsOrderReturnReasonExample; import com.macro.mall.service.OmsOrderReturnReasonService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.Date; import java.util.List; /** * 订单原因管理Service实现类 * Created by macro on 2018/10/17. */ @Service public class OmsOrderReturnReasonServiceImpl implements OmsOrderReturnReasonService { @Autowired private OmsOrderReturnReasonMapper returnReasonMapper; @Override public int create(OmsOrderReturnReason returnReason) { returnReason.setCreateTime(new Date()); return returnReasonMapper.insert(returnReason); } @Override public int update(Long id, OmsOrderReturnReason returnReason) { returnReason.setId(id); return returnReasonMapper.updateByPrimaryKey(returnReason); } @Override public int delete(List<Long> ids) { OmsOrderReturnReasonExample example = new OmsOrderReturnReasonExample(); example.createCriteria().andIdIn(ids); return returnReasonMapper.deleteByExample(example); } @Override public List<OmsOrderReturnReason> list(Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum,pageSize); OmsOrderReturnReasonExample example = new OmsOrderReturnReasonExample(); example.setOrderByClause("sort desc"); return returnReasonMapper.selectByExample(example); } @Override public int updateStatus(List<Long> ids, Integer status) { if(!status.equals(0)&&!status.equals(1)){ return 0; } OmsOrderReturnReason record = new OmsOrderReturnReason(); record.setStatus(status); OmsOrderReturnReasonExample example = new OmsOrderReturnReasonExample(); example.createCriteria().andIdIn(ids); return returnReasonMapper.updateByExampleSelective(record,example); } @Override public OmsOrderReturnReason getItem(Long id) { return returnReasonMapper.selectByPrimaryKey(id); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/CmsSubjectServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/CmsSubjectServiceImpl.java
package com.macro.mall.service.impl; import cn.hutool.core.util.StrUtil; import com.github.pagehelper.PageHelper; import com.macro.mall.mapper.CmsSubjectMapper; import com.macro.mall.model.CmsSubject; import com.macro.mall.model.CmsSubjectExample; import com.macro.mall.service.CmsSubjectService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * 商品专题管理Service实现类 * Created by macro on 2018/6/1. */ @Service public class CmsSubjectServiceImpl implements CmsSubjectService { @Autowired private CmsSubjectMapper subjectMapper; @Override public List<CmsSubject> listAll() { return subjectMapper.selectByExample(new CmsSubjectExample()); } @Override public List<CmsSubject> list(String keyword, Integer pageNum, Integer pageSize) { PageHelper.startPage(pageNum, pageSize); CmsSubjectExample example = new CmsSubjectExample(); CmsSubjectExample.Criteria criteria = example.createCriteria(); if (!StrUtil.isEmpty(keyword)) { criteria.andTitleLike("%" + keyword + "%"); } return subjectMapper.selectByExample(example); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/OmsOrderReturnApplyServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/OmsOrderReturnApplyServiceImpl.java
package com.macro.mall.service.impl; import com.github.pagehelper.PageHelper; import com.macro.mall.dao.OmsOrderReturnApplyDao; import com.macro.mall.dto.OmsOrderReturnApplyResult; import com.macro.mall.dto.OmsReturnApplyQueryParam; import com.macro.mall.dto.OmsUpdateStatusParam; import com.macro.mall.mapper.OmsOrderReturnApplyMapper; import com.macro.mall.model.OmsOrderReturnApply; import com.macro.mall.model.OmsOrderReturnApplyExample; import com.macro.mall.service.OmsOrderReturnApplyService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.Date; import java.util.List; /** * 订单退货管理Service实现类 * Created by macro on 2018/10/18. */ @Service public class OmsOrderReturnApplyServiceImpl implements OmsOrderReturnApplyService { @Autowired private OmsOrderReturnApplyDao returnApplyDao; @Autowired private OmsOrderReturnApplyMapper returnApplyMapper; @Override public List<OmsOrderReturnApply> list(OmsReturnApplyQueryParam queryParam, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum,pageSize); return returnApplyDao.getList(queryParam); } @Override public int delete(List<Long> ids) { OmsOrderReturnApplyExample example = new OmsOrderReturnApplyExample(); example.createCriteria().andIdIn(ids).andStatusEqualTo(3); return returnApplyMapper.deleteByExample(example); } @Override public int updateStatus(Long id, OmsUpdateStatusParam statusParam) { Integer status = statusParam.getStatus(); OmsOrderReturnApply returnApply = new OmsOrderReturnApply(); if(status.equals(1)){ //确认退货 returnApply.setId(id); returnApply.setStatus(1); returnApply.setReturnAmount(statusParam.getReturnAmount()); returnApply.setCompanyAddressId(statusParam.getCompanyAddressId()); returnApply.setHandleTime(new Date()); returnApply.setHandleMan(statusParam.getHandleMan()); returnApply.setHandleNote(statusParam.getHandleNote()); }else if(status.equals(2)){ //完成退货 returnApply.setId(id); returnApply.setStatus(2); returnApply.setReceiveTime(new Date()); returnApply.setReceiveMan(statusParam.getReceiveMan()); returnApply.setReceiveNote(statusParam.getReceiveNote()); }else if(status.equals(3)){ //拒绝退货 returnApply.setId(id); returnApply.setStatus(3); returnApply.setHandleTime(new Date()); returnApply.setHandleMan(statusParam.getHandleMan()); returnApply.setHandleNote(statusParam.getHandleNote()); }else{ return 0; } return returnApplyMapper.updateByPrimaryKeySelective(returnApply); } @Override public OmsOrderReturnApplyResult getItem(Long id) { return returnApplyDao.getDetail(id); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeBrandServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeBrandServiceImpl.java
package com.macro.mall.service.impl; import cn.hutool.core.util.StrUtil; import com.github.pagehelper.PageHelper; import com.macro.mall.mapper.SmsHomeBrandMapper; import com.macro.mall.model.SmsHomeBrand; import com.macro.mall.model.SmsHomeBrandExample; import com.macro.mall.service.SmsHomeBrandService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * 首页品牌管理Service实现类 * Created by macro on 2018/11/6. */ @Service public class SmsHomeBrandServiceImpl implements SmsHomeBrandService { @Autowired private SmsHomeBrandMapper homeBrandMapper; @Override public int create(List<SmsHomeBrand> homeBrandList) { for (SmsHomeBrand smsHomeBrand : homeBrandList) { smsHomeBrand.setRecommendStatus(1); smsHomeBrand.setSort(0); homeBrandMapper.insert(smsHomeBrand); } return homeBrandList.size(); } @Override public int updateSort(Long id, Integer sort) { SmsHomeBrand homeBrand = new SmsHomeBrand(); homeBrand.setId(id); homeBrand.setSort(sort); return homeBrandMapper.updateByPrimaryKeySelective(homeBrand); } @Override public int delete(List<Long> ids) { SmsHomeBrandExample example = new SmsHomeBrandExample(); example.createCriteria().andIdIn(ids); return homeBrandMapper.deleteByExample(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 List<SmsHomeBrand> list(String brandName, Integer recommendStatus, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum,pageSize); SmsHomeBrandExample example = new SmsHomeBrandExample(); SmsHomeBrandExample.Criteria criteria = example.createCriteria(); if(!StrUtil.isEmpty(brandName)){ criteria.andBrandNameLike("%"+brandName+"%"); } if(recommendStatus!=null){ criteria.andRecommendStatusEqualTo(recommendStatus); } example.setOrderByClause("sort desc"); return homeBrandMapper.selectByExample(example); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeNewProductServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeNewProductServiceImpl.java
package com.macro.mall.service.impl; import cn.hutool.core.util.StrUtil; import com.github.pagehelper.PageHelper; import com.macro.mall.mapper.SmsHomeNewProductMapper; import com.macro.mall.model.SmsHomeNewProduct; import com.macro.mall.model.SmsHomeNewProductExample; import com.macro.mall.service.SmsHomeNewProductService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * 首页新品推荐管理Service实现类 * Created by macro on 2018/11/6. */ @Service public class SmsHomeNewProductServiceImpl implements SmsHomeNewProductService { @Autowired private SmsHomeNewProductMapper homeNewProductMapper; @Override public int create(List<SmsHomeNewProduct> homeNewProductList) { for (SmsHomeNewProduct SmsHomeNewProduct : homeNewProductList) { SmsHomeNewProduct.setRecommendStatus(1); SmsHomeNewProduct.setSort(0); homeNewProductMapper.insert(SmsHomeNewProduct); } return homeNewProductList.size(); } @Override public int updateSort(Long id, Integer sort) { SmsHomeNewProduct homeNewProduct = new SmsHomeNewProduct(); homeNewProduct.setId(id); homeNewProduct.setSort(sort); return homeNewProductMapper.updateByPrimaryKeySelective(homeNewProduct); } @Override public int delete(List<Long> ids) { SmsHomeNewProductExample example = new SmsHomeNewProductExample(); example.createCriteria().andIdIn(ids); return homeNewProductMapper.deleteByExample(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 List<SmsHomeNewProduct> list(String productName, Integer recommendStatus, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum,pageSize); SmsHomeNewProductExample example = new SmsHomeNewProductExample(); SmsHomeNewProductExample.Criteria criteria = example.createCriteria(); if(!StrUtil.isEmpty(productName)){ criteria.andProductNameLike("%"+productName+"%"); } if(recommendStatus!=null){ criteria.andRecommendStatusEqualTo(recommendStatus); } example.setOrderByClause("sort desc"); return homeNewProductMapper.selectByExample(example); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/PmsSkuStockServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/PmsSkuStockServiceImpl.java
package com.macro.mall.service.impl; import cn.hutool.core.util.StrUtil; import com.macro.mall.dao.PmsSkuStockDao; import com.macro.mall.mapper.PmsSkuStockMapper; import com.macro.mall.model.PmsSkuStock; import com.macro.mall.model.PmsSkuStockExample; import com.macro.mall.service.PmsSkuStockService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; import java.util.stream.Collectors; /** * 商品SKU库存管理Service实现类 * Created by macro on 2018/4/27. */ @Service public class PmsSkuStockServiceImpl implements PmsSkuStockService { @Autowired private PmsSkuStockMapper skuStockMapper; @Autowired private PmsSkuStockDao skuStockDao; @Override public List<PmsSkuStock> getList(Long pid, String keyword) { PmsSkuStockExample example = new PmsSkuStockExample(); PmsSkuStockExample.Criteria criteria = example.createCriteria().andProductIdEqualTo(pid); if (!StrUtil.isEmpty(keyword)) { criteria.andSkuCodeLike("%" + keyword + "%"); } return skuStockMapper.selectByExample(example); } @Override public int update(Long pid, List<PmsSkuStock> skuStockList) { List<PmsSkuStock> filterSkuList = skuStockList.stream() .filter(item -> pid.equals(item.getProductId())) .collect(Collectors.toList()); return skuStockDao.replaceList(filterSkuList); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/PmsProductCategoryServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/PmsProductCategoryServiceImpl.java
package com.macro.mall.service.impl; import com.github.pagehelper.PageHelper; import com.macro.mall.dao.PmsProductCategoryAttributeRelationDao; import com.macro.mall.dao.PmsProductCategoryDao; import com.macro.mall.dto.PmsProductCategoryParam; import com.macro.mall.dto.PmsProductCategoryWithChildrenItem; import com.macro.mall.mapper.PmsProductCategoryAttributeRelationMapper; import com.macro.mall.mapper.PmsProductCategoryMapper; import com.macro.mall.mapper.PmsProductMapper; import com.macro.mall.model.*; import com.macro.mall.service.PmsProductCategoryService; import org.apache.commons.collections.CollectionUtils; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.ArrayList; import java.util.List; /** * 商品分类管理Service实现类 * Created by macro on 2018/4/26. */ @Service public class PmsProductCategoryServiceImpl implements PmsProductCategoryService { @Autowired private PmsProductCategoryMapper productCategoryMapper; @Autowired private PmsProductMapper productMapper; @Autowired private PmsProductCategoryAttributeRelationDao productCategoryAttributeRelationDao; @Autowired private PmsProductCategoryAttributeRelationMapper productCategoryAttributeRelationMapper; @Autowired private PmsProductCategoryDao productCategoryDao; @Override public int create(PmsProductCategoryParam pmsProductCategoryParam) { PmsProductCategory productCategory = new PmsProductCategory(); productCategory.setProductCount(0); BeanUtils.copyProperties(pmsProductCategoryParam, productCategory); //没有父分类时为一级分类 setCategoryLevel(productCategory); int count = productCategoryMapper.insertSelective(productCategory); //创建筛选属性关联 List<Long> productAttributeIdList = pmsProductCategoryParam.getProductAttributeIdList(); if(!CollectionUtils.isEmpty(productAttributeIdList)){ insertRelationList(productCategory.getId(), productAttributeIdList); } return count; } /** * 批量插入商品分类与筛选属性关系表 * @param productCategoryId 商品分类id * @param productAttributeIdList 相关商品筛选属性id集合 */ private void insertRelationList(Long productCategoryId, List<Long> productAttributeIdList) { List<PmsProductCategoryAttributeRelation> relationList = new ArrayList<>(); for (Long productAttrId : productAttributeIdList) { PmsProductCategoryAttributeRelation relation = new PmsProductCategoryAttributeRelation(); relation.setProductAttributeId(productAttrId); relation.setProductCategoryId(productCategoryId); relationList.add(relation); } productCategoryAttributeRelationDao.insertList(relationList); } @Override public int update(Long id, PmsProductCategoryParam pmsProductCategoryParam) { PmsProductCategory productCategory = new PmsProductCategory(); productCategory.setId(id); BeanUtils.copyProperties(pmsProductCategoryParam, productCategory); setCategoryLevel(productCategory); //更新商品分类时要更新商品中的名称 PmsProduct product = new PmsProduct(); product.setProductCategoryName(productCategory.getName()); PmsProductExample example = new PmsProductExample(); example.createCriteria().andProductCategoryIdEqualTo(id); productMapper.updateByExampleSelective(product,example); //同时更新筛选属性的信息 if(!CollectionUtils.isEmpty(pmsProductCategoryParam.getProductAttributeIdList())){ PmsProductCategoryAttributeRelationExample relationExample = new PmsProductCategoryAttributeRelationExample(); relationExample.createCriteria().andProductCategoryIdEqualTo(id); productCategoryAttributeRelationMapper.deleteByExample(relationExample); insertRelationList(id,pmsProductCategoryParam.getProductAttributeIdList()); }else{ PmsProductCategoryAttributeRelationExample relationExample = new PmsProductCategoryAttributeRelationExample(); relationExample.createCriteria().andProductCategoryIdEqualTo(id); productCategoryAttributeRelationMapper.deleteByExample(relationExample); } return productCategoryMapper.updateByPrimaryKeySelective(productCategory); } @Override public List<PmsProductCategory> getList(Long parentId, Integer pageSize, Integer pageNum) { PageHelper.startPage(pageNum, pageSize); PmsProductCategoryExample example = new PmsProductCategoryExample(); example.setOrderByClause("sort desc"); example.createCriteria().andParentIdEqualTo(parentId); return productCategoryMapper.selectByExample(example); } @Override public int delete(Long id) { return productCategoryMapper.deleteByPrimaryKey(id); } @Override public PmsProductCategory getItem(Long id) { return productCategoryMapper.selectByPrimaryKey(id); } @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 List<PmsProductCategoryWithChildrenItem> listWithChildren() { return productCategoryDao.listWithChildren(); } /** * 根据分类的parentId设置分类的level */ private void setCategoryLevel(PmsProductCategory productCategory) { //没有父分类时为一级分类 if (productCategory.getParentId() == 0) { productCategory.setLevel(0); } else { //有父分类时选择根据父分类level设置 PmsProductCategory parentCategory = productCategoryMapper.selectByPrimaryKey(productCategory.getParentId()); if (parentCategory != null) { productCategory.setLevel(parentCategory.getLevel() + 1); } else { productCategory.setLevel(0); } } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/CmsPrefrenceAreaServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/CmsPrefrenceAreaServiceImpl.java
package com.macro.mall.service.impl; import com.macro.mall.mapper.CmsPrefrenceAreaMapper; import com.macro.mall.model.CmsPrefrenceArea; import com.macro.mall.model.CmsPrefrenceAreaExample; import com.macro.mall.service.CmsPrefrenceAreaService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * 商品优选管理Service实现类 * Created by macro on 2018/6/1. */ @Service public class CmsPrefrenceAreaServiceImpl implements CmsPrefrenceAreaService { @Autowired private CmsPrefrenceAreaMapper prefrenceAreaMapper; @Override public List<CmsPrefrenceArea> listAll() { return prefrenceAreaMapper.selectByExample(new CmsPrefrenceAreaExample()); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/UmsMemberLevelServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/UmsMemberLevelServiceImpl.java
package com.macro.mall.service.impl; import com.macro.mall.mapper.UmsMemberLevelMapper; import com.macro.mall.model.UmsMemberLevel; import com.macro.mall.model.UmsMemberLevelExample; import com.macro.mall.service.UmsMemberLevelService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * 会员等级管理Service实现类 * Created by macro on 2018/4/26. */ @Service public class UmsMemberLevelServiceImpl implements UmsMemberLevelService{ @Autowired private UmsMemberLevelMapper memberLevelMapper; @Override public List<UmsMemberLevel> list(Integer defaultStatus) { UmsMemberLevelExample example = new UmsMemberLevelExample(); example.createCriteria().andDefaultStatusEqualTo(defaultStatus); return memberLevelMapper.selectByExample(example); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/service/impl/UmsResourceCategoryServiceImpl.java
mall-admin/src/main/java/com/macro/mall/service/impl/UmsResourceCategoryServiceImpl.java
package com.macro.mall.service.impl; import com.macro.mall.mapper.UmsResourceCategoryMapper; import com.macro.mall.model.UmsResourceCategory; import com.macro.mall.model.UmsResourceCategoryExample; import com.macro.mall.service.UmsResourceCategoryService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.Date; import java.util.List; /** * 后台资源分类管理Service实现类 * Created by macro on 2020/2/5. */ @Service public class UmsResourceCategoryServiceImpl implements UmsResourceCategoryService { @Autowired private UmsResourceCategoryMapper resourceCategoryMapper; @Override public List<UmsResourceCategory> listAll() { UmsResourceCategoryExample example = new UmsResourceCategoryExample(); example.setOrderByClause("sort desc"); return resourceCategoryMapper.selectByExample(example); } @Override public int create(UmsResourceCategory umsResourceCategory) { umsResourceCategory.setCreateTime(new Date()); return resourceCategoryMapper.insert(umsResourceCategory); } @Override public int update(Long id, UmsResourceCategory umsResourceCategory) { umsResourceCategory.setId(id); return resourceCategoryMapper.updateByPrimaryKeySelective(umsResourceCategory); } @Override public int delete(Long id) { return resourceCategoryMapper.deleteByPrimaryKey(id); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/config/MyBatisConfig.java
mall-admin/src/main/java/com/macro/mall/config/MyBatisConfig.java
package com.macro.mall.config; import org.mybatis.spring.annotation.MapperScan; import org.springframework.context.annotation.Configuration; import org.springframework.transaction.annotation.EnableTransactionManagement; /** * MyBatis相关配置 * Created by macro on 2019/4/8. */ @Configuration @EnableTransactionManagement @MapperScan({"com.macro.mall.mapper","com.macro.mall.dao"}) public class MyBatisConfig { }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/config/GlobalCorsConfig.java
mall-admin/src/main/java/com/macro/mall/config/GlobalCorsConfig.java
package com.macro.mall.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.cors.CorsConfiguration; import org.springframework.web.cors.UrlBasedCorsConfigurationSource; import org.springframework.web.filter.CorsFilter; /** * 全局跨域配置 * Created by macro on 2019/7/27. */ @Configuration public class GlobalCorsConfig { /** * 允许跨域调用的过滤器 */ @Bean public CorsFilter corsFilter() { CorsConfiguration config = new CorsConfiguration(); //允许所有域名进行跨域调用 config.addAllowedOriginPattern("*"); //允许跨越发送cookie config.setAllowCredentials(true); //放行全部原始头信息 config.addAllowedHeader("*"); //允许所有请求方法跨域调用 config.addAllowedMethod("*"); UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); source.registerCorsConfiguration("/**", config); return new CorsFilter(source); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/config/OssConfig.java
mall-admin/src/main/java/com/macro/mall/config/OssConfig.java
package com.macro.mall.config; import com.aliyun.oss.OSSClient; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** * OSS对象存储相关配置 * Created by macro on 2018/5/17. */ @Configuration public class OssConfig { @Value("${aliyun.oss.endpoint}") private String ALIYUN_OSS_ENDPOINT; @Value("${aliyun.oss.accessKeyId}") private String ALIYUN_OSS_ACCESSKEYID; @Value("${aliyun.oss.accessKeySecret}") private String ALIYUN_OSS_ACCESSKEYSECRET; @Bean public OSSClient ossClient(){ return new OSSClient(ALIYUN_OSS_ENDPOINT,ALIYUN_OSS_ACCESSKEYID,ALIYUN_OSS_ACCESSKEYSECRET); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/config/MallSecurityConfig.java
mall-admin/src/main/java/com/macro/mall/config/MallSecurityConfig.java
package com.macro.mall.config; import com.macro.mall.model.UmsResource; import com.macro.mall.security.component.DynamicSecurityService; import com.macro.mall.service.UmsAdminService; import com.macro.mall.service.UmsResourceService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.access.ConfigAttribute; import org.springframework.security.core.userdetails.UserDetailsService; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; /** * mall-security模块相关配置 * Created by macro on 2019/11/9. */ @Configuration public class MallSecurityConfig { @Autowired private UmsAdminService adminService; @Autowired private UmsResourceService resourceService; @Bean public UserDetailsService userDetailsService() { //获取登录用户信息 return username -> adminService.loadUserByUsername(username); } @Bean public DynamicSecurityService dynamicSecurityService() { return new DynamicSecurityService() { @Override public Map<String, ConfigAttribute> loadDataSource() { Map<String, ConfigAttribute> map = new ConcurrentHashMap<>(); List<UmsResource> resourceList = resourceService.listAll(); for (UmsResource resource : resourceList) { map.put(resource.getUrl(), new org.springframework.security.access.SecurityConfig(resource.getId() + ":" + resource.getName())); } return map; } }; } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/config/SwaggerConfig.java
mall-admin/src/main/java/com/macro/mall/config/SwaggerConfig.java
package com.macro.mall.config; import com.macro.mall.common.config.BaseSwaggerConfig; import com.macro.mall.common.domain.SwaggerProperties; import org.springframework.beans.factory.config.BeanPostProcessor; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import springfox.documentation.swagger2.annotations.EnableSwagger2; /** * Swagger相关配置 * Created by macro on 2018/4/26. */ @Configuration @EnableSwagger2 public class SwaggerConfig extends BaseSwaggerConfig { @Override public SwaggerProperties swaggerProperties() { return SwaggerProperties.builder() .apiBasePackage("com.macro.mall.controller") .title("mall后台系统") .description("mall后台相关接口文档") .contactName("macro") .version("1.0") .enableSecurity(true) .build(); } @Bean public BeanPostProcessor springfoxHandlerProviderBeanPostProcessor() { return generateBeanPostProcessor(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/validator/FlagValidatorClass.java
mall-admin/src/main/java/com/macro/mall/validator/FlagValidatorClass.java
package com.macro.mall.validator; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; /** * 状态约束校验器 * Created by macro on 2018/4/26. */ public class FlagValidatorClass implements ConstraintValidator<FlagValidator,Integer> { private String[] values; @Override public void initialize(FlagValidator flagValidator) { this.values = flagValidator.value(); } @Override public boolean isValid(Integer value, ConstraintValidatorContext constraintValidatorContext) { boolean isValid = false; if(value==null){ //当状态为空时使用默认值 return true; } for(int i=0;i<values.length;i++){ if(values[i].equals(String.valueOf(value))){ isValid = true; break; } } return isValid; } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/validator/FlagValidator.java
mall-admin/src/main/java/com/macro/mall/validator/FlagValidator.java
package com.macro.mall.validator; import javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.*; /** * 用于验证状态是否在指定范围内的注解 * Created by macro on 2018/4/26. */ @Documented @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.FIELD,ElementType.PARAMETER}) @Constraint(validatedBy = FlagValidatorClass.class) public @interface FlagValidator { String[] value() default {}; String message() default "flag is not found"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-admin/src/main/java/com/macro/mall/bo/AdminUserDetails.java
mall-admin/src/main/java/com/macro/mall/bo/AdminUserDetails.java
package com.macro.mall.bo; import com.macro.mall.model.UmsAdmin; import com.macro.mall.model.UmsResource; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.authority.SimpleGrantedAuthority; import org.springframework.security.core.userdetails.UserDetails; import java.util.Collection; import java.util.List; import java.util.stream.Collectors; /** * SpringSecurity需要的用户信息封装类 * Created by macro on 2018/4/26. */ public class AdminUserDetails implements UserDetails { //后台用户 private final UmsAdmin umsAdmin; //拥有资源列表 private final List<UmsResource> resourceList; public AdminUserDetails(UmsAdmin umsAdmin,List<UmsResource> resourceList) { this.umsAdmin = umsAdmin; this.resourceList = resourceList; } @Override public Collection<? extends GrantedAuthority> getAuthorities() { //返回当前用户所拥有的资源 return resourceList.stream() .map(resource ->new SimpleGrantedAuthority(resource.getId()+":"+resource.getName())) .collect(Collectors.toList()); } @Override public String getPassword() { return umsAdmin.getPassword(); } @Override public String getUsername() { return umsAdmin.getUsername(); } @Override public boolean isAccountNonExpired() { return true; } @Override public boolean isAccountNonLocked() { return true; } @Override public boolean isCredentialsNonExpired() { return true; } @Override public boolean isEnabled() { return umsAdmin.getStatus().equals(1); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/Generator.java
mall-mbg/src/main/java/com/macro/mall/Generator.java
package com.macro.mall; import org.mybatis.generator.api.MyBatisGenerator; import org.mybatis.generator.config.Configuration; import org.mybatis.generator.config.xml.ConfigurationParser; import org.mybatis.generator.internal.DefaultShellCallback; import java.io.InputStream; import java.util.ArrayList; import java.util.List; /** * MBG代码生成工具 * Created by macro on 2018/4/26. */ public class Generator { public static void main(String[] args) throws Exception { //MBG 执行过程中的警告信息 List<String> warnings = new ArrayList<String>(); //当生成的代码重复时,覆盖原代码 boolean overwrite = true; //读取我们的 MBG 配置文件 InputStream is = Generator.class.getResourceAsStream("/generatorConfig.xml"); ConfigurationParser cp = new ConfigurationParser(warnings); Configuration config = cp.parseConfiguration(is); is.close(); DefaultShellCallback callback = new DefaultShellCallback(overwrite); //创建 MBG MyBatisGenerator myBatisGenerator = new MyBatisGenerator(config, callback, warnings); //执行生成代码 myBatisGenerator.generate(null); //输出警告信息 for (String warning : warnings) { System.out.println(warning); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/CommentGenerator.java
mall-mbg/src/main/java/com/macro/mall/CommentGenerator.java
package com.macro.mall; import org.mybatis.generator.api.IntrospectedColumn; import org.mybatis.generator.api.IntrospectedTable; import org.mybatis.generator.api.dom.java.CompilationUnit; import org.mybatis.generator.api.dom.java.Field; import org.mybatis.generator.api.dom.java.FullyQualifiedJavaType; import org.mybatis.generator.internal.DefaultCommentGenerator; import org.mybatis.generator.internal.util.StringUtility; import java.util.Properties; /** * 自定义注释生成器 * Created by macro on 2018/4/26. */ public class CommentGenerator extends DefaultCommentGenerator { private boolean addRemarkComments = false; private static final String EXAMPLE_SUFFIX="Example"; private static final String MAPPER_SUFFIX="Mapper"; private static final String API_MODEL_PROPERTY_FULL_CLASS_NAME="io.swagger.annotations.ApiModelProperty"; /** * 设置用户配置的参数 */ @Override public void addConfigurationProperties(Properties properties) { super.addConfigurationProperties(properties); this.addRemarkComments = StringUtility.isTrue(properties.getProperty("addRemarkComments")); } /** * 给字段添加注释 */ @Override public void addFieldComment(Field field, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn) { String remarks = introspectedColumn.getRemarks(); //根据参数和备注信息判断是否添加swagger注解信息 if(addRemarkComments&&StringUtility.stringHasValue(remarks)){ // addFieldJavaDoc(field, remarks); //数据库中特殊字符需要转义 if(remarks.contains("\"")){ remarks = remarks.replace("\"","'"); } //给model的字段添加swagger注解 field.addJavaDocLine("@ApiModelProperty(value = \""+remarks+"\")"); } } /** * 给model的字段添加注释 */ private void addFieldJavaDoc(Field field, String remarks) { //文档注释开始 field.addJavaDocLine("/**"); //获取数据库字段的备注信息 String[] remarkLines = remarks.split(System.getProperty("line.separator")); for(String remarkLine:remarkLines){ field.addJavaDocLine(" * "+remarkLine); } addJavadocTag(field, false); field.addJavaDocLine(" */"); } @Override public void addJavaFileComment(CompilationUnit compilationUnit) { super.addJavaFileComment(compilationUnit); //只在model中添加swagger注解类的导入 if(!compilationUnit.getType().getFullyQualifiedName().contains(MAPPER_SUFFIX)&&!compilationUnit.getType().getFullyQualifiedName().contains(EXAMPLE_SUFFIX)){ compilationUnit.addImportedType(new FullyQualifiedJavaType(API_MODEL_PROPERTY_FULL_CLASS_NAME)); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/UmsAdminRoleRelation.java
mall-mbg/src/main/java/com/macro/mall/model/UmsAdminRoleRelation.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; public class UmsAdminRoleRelation implements Serializable { private Long id; private Long adminId; private Long roleId; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getAdminId() { return adminId; } public void setAdminId(Long adminId) { this.adminId = adminId; } public Long getRoleId() { return roleId; } public void setRoleId(Long roleId) { this.roleId = roleId; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", adminId=").append(adminId); sb.append(", roleId=").append(roleId); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/PmsMemberPriceExample.java
mall-mbg/src/main/java/com/macro/mall/model/PmsMemberPriceExample.java
package com.macro.mall.model; import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; public class PmsMemberPriceExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public PmsMemberPriceExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andProductIdIsNull() { addCriterion("product_id is null"); return (Criteria) this; } public Criteria andProductIdIsNotNull() { addCriterion("product_id is not null"); return (Criteria) this; } public Criteria andProductIdEqualTo(Long value) { addCriterion("product_id =", value, "productId"); return (Criteria) this; } public Criteria andProductIdNotEqualTo(Long value) { addCriterion("product_id <>", value, "productId"); return (Criteria) this; } public Criteria andProductIdGreaterThan(Long value) { addCriterion("product_id >", value, "productId"); return (Criteria) this; } public Criteria andProductIdGreaterThanOrEqualTo(Long value) { addCriterion("product_id >=", value, "productId"); return (Criteria) this; } public Criteria andProductIdLessThan(Long value) { addCriterion("product_id <", value, "productId"); return (Criteria) this; } public Criteria andProductIdLessThanOrEqualTo(Long value) { addCriterion("product_id <=", value, "productId"); return (Criteria) this; } public Criteria andProductIdIn(List<Long> values) { addCriterion("product_id in", values, "productId"); return (Criteria) this; } public Criteria andProductIdNotIn(List<Long> values) { addCriterion("product_id not in", values, "productId"); return (Criteria) this; } public Criteria andProductIdBetween(Long value1, Long value2) { addCriterion("product_id between", value1, value2, "productId"); return (Criteria) this; } public Criteria andProductIdNotBetween(Long value1, Long value2) { addCriterion("product_id not between", value1, value2, "productId"); return (Criteria) this; } public Criteria andMemberLevelIdIsNull() { addCriterion("member_level_id is null"); return (Criteria) this; } public Criteria andMemberLevelIdIsNotNull() { addCriterion("member_level_id is not null"); return (Criteria) this; } public Criteria andMemberLevelIdEqualTo(Long value) { addCriterion("member_level_id =", value, "memberLevelId"); return (Criteria) this; } public Criteria andMemberLevelIdNotEqualTo(Long value) { addCriterion("member_level_id <>", value, "memberLevelId"); return (Criteria) this; } public Criteria andMemberLevelIdGreaterThan(Long value) { addCriterion("member_level_id >", value, "memberLevelId"); return (Criteria) this; } public Criteria andMemberLevelIdGreaterThanOrEqualTo(Long value) { addCriterion("member_level_id >=", value, "memberLevelId"); return (Criteria) this; } public Criteria andMemberLevelIdLessThan(Long value) { addCriterion("member_level_id <", value, "memberLevelId"); return (Criteria) this; } public Criteria andMemberLevelIdLessThanOrEqualTo(Long value) { addCriterion("member_level_id <=", value, "memberLevelId"); return (Criteria) this; } public Criteria andMemberLevelIdIn(List<Long> values) { addCriterion("member_level_id in", values, "memberLevelId"); return (Criteria) this; } public Criteria andMemberLevelIdNotIn(List<Long> values) { addCriterion("member_level_id not in", values, "memberLevelId"); return (Criteria) this; } public Criteria andMemberLevelIdBetween(Long value1, Long value2) { addCriterion("member_level_id between", value1, value2, "memberLevelId"); return (Criteria) this; } public Criteria andMemberLevelIdNotBetween(Long value1, Long value2) { addCriterion("member_level_id not between", value1, value2, "memberLevelId"); return (Criteria) this; } public Criteria andMemberPriceIsNull() { addCriterion("member_price is null"); return (Criteria) this; } public Criteria andMemberPriceIsNotNull() { addCriterion("member_price is not null"); return (Criteria) this; } public Criteria andMemberPriceEqualTo(BigDecimal value) { addCriterion("member_price =", value, "memberPrice"); return (Criteria) this; } public Criteria andMemberPriceNotEqualTo(BigDecimal value) { addCriterion("member_price <>", value, "memberPrice"); return (Criteria) this; } public Criteria andMemberPriceGreaterThan(BigDecimal value) { addCriterion("member_price >", value, "memberPrice"); return (Criteria) this; } public Criteria andMemberPriceGreaterThanOrEqualTo(BigDecimal value) { addCriterion("member_price >=", value, "memberPrice"); return (Criteria) this; } public Criteria andMemberPriceLessThan(BigDecimal value) { addCriterion("member_price <", value, "memberPrice"); return (Criteria) this; } public Criteria andMemberPriceLessThanOrEqualTo(BigDecimal value) { addCriterion("member_price <=", value, "memberPrice"); return (Criteria) this; } public Criteria andMemberPriceIn(List<BigDecimal> values) { addCriterion("member_price in", values, "memberPrice"); return (Criteria) this; } public Criteria andMemberPriceNotIn(List<BigDecimal> values) { addCriterion("member_price not in", values, "memberPrice"); return (Criteria) this; } public Criteria andMemberPriceBetween(BigDecimal value1, BigDecimal value2) { addCriterion("member_price between", value1, value2, "memberPrice"); return (Criteria) this; } public Criteria andMemberPriceNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("member_price not between", value1, value2, "memberPrice"); return (Criteria) this; } public Criteria andMemberLevelNameIsNull() { addCriterion("member_level_name is null"); return (Criteria) this; } public Criteria andMemberLevelNameIsNotNull() { addCriterion("member_level_name is not null"); return (Criteria) this; } public Criteria andMemberLevelNameEqualTo(String value) { addCriterion("member_level_name =", value, "memberLevelName"); return (Criteria) this; } public Criteria andMemberLevelNameNotEqualTo(String value) { addCriterion("member_level_name <>", value, "memberLevelName"); return (Criteria) this; } public Criteria andMemberLevelNameGreaterThan(String value) { addCriterion("member_level_name >", value, "memberLevelName"); return (Criteria) this; } public Criteria andMemberLevelNameGreaterThanOrEqualTo(String value) { addCriterion("member_level_name >=", value, "memberLevelName"); return (Criteria) this; } public Criteria andMemberLevelNameLessThan(String value) { addCriterion("member_level_name <", value, "memberLevelName"); return (Criteria) this; } public Criteria andMemberLevelNameLessThanOrEqualTo(String value) { addCriterion("member_level_name <=", value, "memberLevelName"); return (Criteria) this; } public Criteria andMemberLevelNameLike(String value) { addCriterion("member_level_name like", value, "memberLevelName"); return (Criteria) this; } public Criteria andMemberLevelNameNotLike(String value) { addCriterion("member_level_name not like", value, "memberLevelName"); return (Criteria) this; } public Criteria andMemberLevelNameIn(List<String> values) { addCriterion("member_level_name in", values, "memberLevelName"); return (Criteria) this; } public Criteria andMemberLevelNameNotIn(List<String> values) { addCriterion("member_level_name not in", values, "memberLevelName"); return (Criteria) this; } public Criteria andMemberLevelNameBetween(String value1, String value2) { addCriterion("member_level_name between", value1, value2, "memberLevelName"); return (Criteria) this; } public Criteria andMemberLevelNameNotBetween(String value1, String value2) { addCriterion("member_level_name not between", value1, value2, "memberLevelName"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/UmsMenu.java
mall-mbg/src/main/java/com/macro/mall/model/UmsMenu.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.util.Date; public class UmsMenu implements Serializable { private Long id; @ApiModelProperty(value = "父级ID") private Long parentId; @ApiModelProperty(value = "创建时间") private Date createTime; @ApiModelProperty(value = "菜单名称") private String title; @ApiModelProperty(value = "菜单级数") private Integer level; @ApiModelProperty(value = "菜单排序") private Integer sort; @ApiModelProperty(value = "前端名称") private String name; @ApiModelProperty(value = "前端图标") private String icon; @ApiModelProperty(value = "前端隐藏") private Integer hidden; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getParentId() { return parentId; } public void setParentId(Long parentId) { this.parentId = parentId; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public Integer getLevel() { return level; } public void setLevel(Integer level) { this.level = level; } public Integer getSort() { return sort; } public void setSort(Integer sort) { this.sort = sort; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getIcon() { return icon; } public void setIcon(String icon) { this.icon = icon; } public Integer getHidden() { return hidden; } public void setHidden(Integer hidden) { this.hidden = hidden; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", parentId=").append(parentId); sb.append(", createTime=").append(createTime); sb.append(", title=").append(title); sb.append(", level=").append(level); sb.append(", sort=").append(sort); sb.append(", name=").append(name); sb.append(", icon=").append(icon); sb.append(", hidden=").append(hidden); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttributeCategory.java
mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttributeCategory.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; public class PmsProductAttributeCategory implements Serializable { private Long id; private String name; @ApiModelProperty(value = "属性数量") private Integer attributeCount; @ApiModelProperty(value = "参数数量") private Integer paramCount; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Integer getAttributeCount() { return attributeCount; } public void setAttributeCount(Integer attributeCount) { this.attributeCount = attributeCount; } public Integer getParamCount() { return paramCount; } public void setParamCount(Integer paramCount) { this.paramCount = paramCount; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", name=").append(name); sb.append(", attributeCount=").append(attributeCount); sb.append(", paramCount=").append(paramCount); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectProductRelation.java
mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectProductRelation.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; public class CmsSubjectProductRelation implements Serializable { private Long id; private Long subjectId; private Long productId; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getSubjectId() { return subjectId; } public void setSubjectId(Long subjectId) { this.subjectId = subjectId; } public Long getProductId() { return productId; } public void setProductId(Long productId) { this.productId = productId; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", subjectId=").append(subjectId); sb.append(", productId=").append(productId); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/OmsCompanyAddress.java
mall-mbg/src/main/java/com/macro/mall/model/OmsCompanyAddress.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; public class OmsCompanyAddress implements Serializable { private Long id; @ApiModelProperty(value = "地址名称") private String addressName; @ApiModelProperty(value = "默认发货地址:0->否;1->是") private Integer sendStatus; @ApiModelProperty(value = "是否默认收货地址:0->否;1->是") private Integer receiveStatus; @ApiModelProperty(value = "收发货人姓名") private String name; @ApiModelProperty(value = "收货人电话") private String phone; @ApiModelProperty(value = "省/直辖市") private String province; @ApiModelProperty(value = "市") private String city; @ApiModelProperty(value = "区") private String region; @ApiModelProperty(value = "详细地址") private String detailAddress; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getAddressName() { return addressName; } public void setAddressName(String addressName) { this.addressName = addressName; } public Integer getSendStatus() { return sendStatus; } public void setSendStatus(Integer sendStatus) { this.sendStatus = sendStatus; } public Integer getReceiveStatus() { return receiveStatus; } public void setReceiveStatus(Integer receiveStatus) { this.receiveStatus = receiveStatus; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone; } public String getProvince() { return province; } public void setProvince(String province) { this.province = province; } public String getCity() { return city; } public void setCity(String city) { this.city = city; } public String getRegion() { return region; } public void setRegion(String region) { this.region = region; } public String getDetailAddress() { return detailAddress; } public void setDetailAddress(String detailAddress) { this.detailAddress = detailAddress; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", addressName=").append(addressName); sb.append(", sendStatus=").append(sendStatus); sb.append(", receiveStatus=").append(receiveStatus); sb.append(", name=").append(name); sb.append(", phone=").append(phone); sb.append(", province=").append(province); sb.append(", city=").append(city); sb.append(", region=").append(region); sb.append(", detailAddress=").append(detailAddress); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/UmsMemberMemberTagRelationExample.java
mall-mbg/src/main/java/com/macro/mall/model/UmsMemberMemberTagRelationExample.java
package com.macro.mall.model; import java.util.ArrayList; import java.util.List; public class UmsMemberMemberTagRelationExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public UmsMemberMemberTagRelationExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andMemberIdIsNull() { addCriterion("member_id is null"); return (Criteria) this; } public Criteria andMemberIdIsNotNull() { addCriterion("member_id is not null"); return (Criteria) this; } public Criteria andMemberIdEqualTo(Long value) { addCriterion("member_id =", value, "memberId"); return (Criteria) this; } public Criteria andMemberIdNotEqualTo(Long value) { addCriterion("member_id <>", value, "memberId"); return (Criteria) this; } public Criteria andMemberIdGreaterThan(Long value) { addCriterion("member_id >", value, "memberId"); return (Criteria) this; } public Criteria andMemberIdGreaterThanOrEqualTo(Long value) { addCriterion("member_id >=", value, "memberId"); return (Criteria) this; } public Criteria andMemberIdLessThan(Long value) { addCriterion("member_id <", value, "memberId"); return (Criteria) this; } public Criteria andMemberIdLessThanOrEqualTo(Long value) { addCriterion("member_id <=", value, "memberId"); return (Criteria) this; } public Criteria andMemberIdIn(List<Long> values) { addCriterion("member_id in", values, "memberId"); return (Criteria) this; } public Criteria andMemberIdNotIn(List<Long> values) { addCriterion("member_id not in", values, "memberId"); return (Criteria) this; } public Criteria andMemberIdBetween(Long value1, Long value2) { addCriterion("member_id between", value1, value2, "memberId"); return (Criteria) this; } public Criteria andMemberIdNotBetween(Long value1, Long value2) { addCriterion("member_id not between", value1, value2, "memberId"); return (Criteria) this; } public Criteria andTagIdIsNull() { addCriterion("tag_id is null"); return (Criteria) this; } public Criteria andTagIdIsNotNull() { addCriterion("tag_id is not null"); return (Criteria) this; } public Criteria andTagIdEqualTo(Long value) { addCriterion("tag_id =", value, "tagId"); return (Criteria) this; } public Criteria andTagIdNotEqualTo(Long value) { addCriterion("tag_id <>", value, "tagId"); return (Criteria) this; } public Criteria andTagIdGreaterThan(Long value) { addCriterion("tag_id >", value, "tagId"); return (Criteria) this; } public Criteria andTagIdGreaterThanOrEqualTo(Long value) { addCriterion("tag_id >=", value, "tagId"); return (Criteria) this; } public Criteria andTagIdLessThan(Long value) { addCriterion("tag_id <", value, "tagId"); return (Criteria) this; } public Criteria andTagIdLessThanOrEqualTo(Long value) { addCriterion("tag_id <=", value, "tagId"); return (Criteria) this; } public Criteria andTagIdIn(List<Long> values) { addCriterion("tag_id in", values, "tagId"); return (Criteria) this; } public Criteria andTagIdNotIn(List<Long> values) { addCriterion("tag_id not in", values, "tagId"); return (Criteria) this; } public Criteria andTagIdBetween(Long value1, Long value2) { addCriterion("tag_id between", value1, value2, "tagId"); return (Criteria) this; } public Criteria andTagIdNotBetween(Long value1, Long value2) { addCriterion("tag_id not between", value1, value2, "tagId"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/PmsCommentReplay.java
mall-mbg/src/main/java/com/macro/mall/model/PmsCommentReplay.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.util.Date; public class PmsCommentReplay implements Serializable { private Long id; private Long commentId; private String memberNickName; private String memberIcon; private String content; private Date createTime; @ApiModelProperty(value = "评论人员类型;0->会员;1->管理员") private Integer type; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getCommentId() { return commentId; } public void setCommentId(Long commentId) { this.commentId = commentId; } public String getMemberNickName() { return memberNickName; } public void setMemberNickName(String memberNickName) { this.memberNickName = memberNickName; } public String getMemberIcon() { return memberIcon; } public void setMemberIcon(String memberIcon) { this.memberIcon = memberIcon; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Integer getType() { return type; } public void setType(Integer type) { this.type = type; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", commentId=").append(commentId); sb.append(", memberNickName=").append(memberNickName); sb.append(", memberIcon=").append(memberIcon); sb.append(", content=").append(content); sb.append(", createTime=").append(createTime); sb.append(", type=").append(type); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/OmsOrderSetting.java
mall-mbg/src/main/java/com/macro/mall/model/OmsOrderSetting.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; public class OmsOrderSetting implements Serializable { private Long id; @ApiModelProperty(value = "秒杀订单超时关闭时间(分)") private Integer flashOrderOvertime; @ApiModelProperty(value = "正常订单超时时间(分)") private Integer normalOrderOvertime; @ApiModelProperty(value = "发货后自动确认收货时间(天)") private Integer confirmOvertime; @ApiModelProperty(value = "自动完成交易时间,不能申请售后(天)") private Integer finishOvertime; @ApiModelProperty(value = "订单完成后自动好评时间(天)") private Integer commentOvertime; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Integer getFlashOrderOvertime() { return flashOrderOvertime; } public void setFlashOrderOvertime(Integer flashOrderOvertime) { this.flashOrderOvertime = flashOrderOvertime; } public Integer getNormalOrderOvertime() { return normalOrderOvertime; } public void setNormalOrderOvertime(Integer normalOrderOvertime) { this.normalOrderOvertime = normalOrderOvertime; } public Integer getConfirmOvertime() { return confirmOvertime; } public void setConfirmOvertime(Integer confirmOvertime) { this.confirmOvertime = confirmOvertime; } public Integer getFinishOvertime() { return finishOvertime; } public void setFinishOvertime(Integer finishOvertime) { this.finishOvertime = finishOvertime; } public Integer getCommentOvertime() { return commentOvertime; } public void setCommentOvertime(Integer commentOvertime) { this.commentOvertime = commentOvertime; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", flashOrderOvertime=").append(flashOrderOvertime); sb.append(", normalOrderOvertime=").append(normalOrderOvertime); sb.append(", confirmOvertime=").append(confirmOvertime); sb.append(", finishOvertime=").append(finishOvertime); sb.append(", commentOvertime=").append(commentOvertime); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/UmsMemberLevelExample.java
mall-mbg/src/main/java/com/macro/mall/model/UmsMemberLevelExample.java
package com.macro.mall.model; import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; public class UmsMemberLevelExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public UmsMemberLevelExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andNameIsNull() { addCriterion("name is null"); return (Criteria) this; } public Criteria andNameIsNotNull() { addCriterion("name is not null"); return (Criteria) this; } public Criteria andNameEqualTo(String value) { addCriterion("name =", value, "name"); return (Criteria) this; } public Criteria andNameNotEqualTo(String value) { addCriterion("name <>", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThan(String value) { addCriterion("name >", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThanOrEqualTo(String value) { addCriterion("name >=", value, "name"); return (Criteria) this; } public Criteria andNameLessThan(String value) { addCriterion("name <", value, "name"); return (Criteria) this; } public Criteria andNameLessThanOrEqualTo(String value) { addCriterion("name <=", value, "name"); return (Criteria) this; } public Criteria andNameLike(String value) { addCriterion("name like", value, "name"); return (Criteria) this; } public Criteria andNameNotLike(String value) { addCriterion("name not like", value, "name"); return (Criteria) this; } public Criteria andNameIn(List<String> values) { addCriterion("name in", values, "name"); return (Criteria) this; } public Criteria andNameNotIn(List<String> values) { addCriterion("name not in", values, "name"); return (Criteria) this; } public Criteria andNameBetween(String value1, String value2) { addCriterion("name between", value1, value2, "name"); return (Criteria) this; } public Criteria andNameNotBetween(String value1, String value2) { addCriterion("name not between", value1, value2, "name"); return (Criteria) this; } public Criteria andGrowthPointIsNull() { addCriterion("growth_point is null"); return (Criteria) this; } public Criteria andGrowthPointIsNotNull() { addCriterion("growth_point is not null"); return (Criteria) this; } public Criteria andGrowthPointEqualTo(Integer value) { addCriterion("growth_point =", value, "growthPoint"); return (Criteria) this; } public Criteria andGrowthPointNotEqualTo(Integer value) { addCriterion("growth_point <>", value, "growthPoint"); return (Criteria) this; } public Criteria andGrowthPointGreaterThan(Integer value) { addCriterion("growth_point >", value, "growthPoint"); return (Criteria) this; } public Criteria andGrowthPointGreaterThanOrEqualTo(Integer value) { addCriterion("growth_point >=", value, "growthPoint"); return (Criteria) this; } public Criteria andGrowthPointLessThan(Integer value) { addCriterion("growth_point <", value, "growthPoint"); return (Criteria) this; } public Criteria andGrowthPointLessThanOrEqualTo(Integer value) { addCriterion("growth_point <=", value, "growthPoint"); return (Criteria) this; } public Criteria andGrowthPointIn(List<Integer> values) { addCriterion("growth_point in", values, "growthPoint"); return (Criteria) this; } public Criteria andGrowthPointNotIn(List<Integer> values) { addCriterion("growth_point not in", values, "growthPoint"); return (Criteria) this; } public Criteria andGrowthPointBetween(Integer value1, Integer value2) { addCriterion("growth_point between", value1, value2, "growthPoint"); return (Criteria) this; } public Criteria andGrowthPointNotBetween(Integer value1, Integer value2) { addCriterion("growth_point not between", value1, value2, "growthPoint"); return (Criteria) this; } public Criteria andDefaultStatusIsNull() { addCriterion("default_status is null"); return (Criteria) this; } public Criteria andDefaultStatusIsNotNull() { addCriterion("default_status is not null"); return (Criteria) this; } public Criteria andDefaultStatusEqualTo(Integer value) { addCriterion("default_status =", value, "defaultStatus"); return (Criteria) this; } public Criteria andDefaultStatusNotEqualTo(Integer value) { addCriterion("default_status <>", value, "defaultStatus"); return (Criteria) this; } public Criteria andDefaultStatusGreaterThan(Integer value) { addCriterion("default_status >", value, "defaultStatus"); return (Criteria) this; } public Criteria andDefaultStatusGreaterThanOrEqualTo(Integer value) { addCriterion("default_status >=", value, "defaultStatus"); return (Criteria) this; } public Criteria andDefaultStatusLessThan(Integer value) { addCriterion("default_status <", value, "defaultStatus"); return (Criteria) this; } public Criteria andDefaultStatusLessThanOrEqualTo(Integer value) { addCriterion("default_status <=", value, "defaultStatus"); return (Criteria) this; } public Criteria andDefaultStatusIn(List<Integer> values) { addCriterion("default_status in", values, "defaultStatus"); return (Criteria) this; } public Criteria andDefaultStatusNotIn(List<Integer> values) { addCriterion("default_status not in", values, "defaultStatus"); return (Criteria) this; } public Criteria andDefaultStatusBetween(Integer value1, Integer value2) { addCriterion("default_status between", value1, value2, "defaultStatus"); return (Criteria) this; } public Criteria andDefaultStatusNotBetween(Integer value1, Integer value2) { addCriterion("default_status not between", value1, value2, "defaultStatus"); return (Criteria) this; } public Criteria andFreeFreightPointIsNull() { addCriterion("free_freight_point is null"); return (Criteria) this; } public Criteria andFreeFreightPointIsNotNull() { addCriterion("free_freight_point is not null"); return (Criteria) this; } public Criteria andFreeFreightPointEqualTo(BigDecimal value) { addCriterion("free_freight_point =", value, "freeFreightPoint"); return (Criteria) this; } public Criteria andFreeFreightPointNotEqualTo(BigDecimal value) { addCriterion("free_freight_point <>", value, "freeFreightPoint"); return (Criteria) this; } public Criteria andFreeFreightPointGreaterThan(BigDecimal value) { addCriterion("free_freight_point >", value, "freeFreightPoint"); return (Criteria) this; } public Criteria andFreeFreightPointGreaterThanOrEqualTo(BigDecimal value) { addCriterion("free_freight_point >=", value, "freeFreightPoint"); return (Criteria) this; } public Criteria andFreeFreightPointLessThan(BigDecimal value) { addCriterion("free_freight_point <", value, "freeFreightPoint"); return (Criteria) this; } public Criteria andFreeFreightPointLessThanOrEqualTo(BigDecimal value) { addCriterion("free_freight_point <=", value, "freeFreightPoint"); return (Criteria) this; } public Criteria andFreeFreightPointIn(List<BigDecimal> values) { addCriterion("free_freight_point in", values, "freeFreightPoint"); return (Criteria) this; } public Criteria andFreeFreightPointNotIn(List<BigDecimal> values) { addCriterion("free_freight_point not in", values, "freeFreightPoint"); return (Criteria) this; } public Criteria andFreeFreightPointBetween(BigDecimal value1, BigDecimal value2) { addCriterion("free_freight_point between", value1, value2, "freeFreightPoint"); return (Criteria) this; } public Criteria andFreeFreightPointNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("free_freight_point not between", value1, value2, "freeFreightPoint"); return (Criteria) this; } public Criteria andCommentGrowthPointIsNull() { addCriterion("comment_growth_point is null"); return (Criteria) this; } public Criteria andCommentGrowthPointIsNotNull() { addCriterion("comment_growth_point is not null"); return (Criteria) this; } public Criteria andCommentGrowthPointEqualTo(Integer value) { addCriterion("comment_growth_point =", value, "commentGrowthPoint"); return (Criteria) this; } public Criteria andCommentGrowthPointNotEqualTo(Integer value) { addCriterion("comment_growth_point <>", value, "commentGrowthPoint"); return (Criteria) this; } public Criteria andCommentGrowthPointGreaterThan(Integer value) { addCriterion("comment_growth_point >", value, "commentGrowthPoint"); return (Criteria) this; } public Criteria andCommentGrowthPointGreaterThanOrEqualTo(Integer value) { addCriterion("comment_growth_point >=", value, "commentGrowthPoint"); return (Criteria) this; } public Criteria andCommentGrowthPointLessThan(Integer value) { addCriterion("comment_growth_point <", value, "commentGrowthPoint"); return (Criteria) this; } public Criteria andCommentGrowthPointLessThanOrEqualTo(Integer value) { addCriterion("comment_growth_point <=", value, "commentGrowthPoint"); return (Criteria) this; } public Criteria andCommentGrowthPointIn(List<Integer> values) { addCriterion("comment_growth_point in", values, "commentGrowthPoint"); return (Criteria) this; } public Criteria andCommentGrowthPointNotIn(List<Integer> values) { addCriterion("comment_growth_point not in", values, "commentGrowthPoint"); return (Criteria) this; } public Criteria andCommentGrowthPointBetween(Integer value1, Integer value2) { addCriterion("comment_growth_point between", value1, value2, "commentGrowthPoint"); return (Criteria) this; } public Criteria andCommentGrowthPointNotBetween(Integer value1, Integer value2) { addCriterion("comment_growth_point not between", value1, value2, "commentGrowthPoint"); return (Criteria) this; } public Criteria andPriviledgeFreeFreightIsNull() { addCriterion("priviledge_free_freight is null"); return (Criteria) this; } public Criteria andPriviledgeFreeFreightIsNotNull() { addCriterion("priviledge_free_freight is not null"); return (Criteria) this; } public Criteria andPriviledgeFreeFreightEqualTo(Integer value) { addCriterion("priviledge_free_freight =", value, "priviledgeFreeFreight"); return (Criteria) this; } public Criteria andPriviledgeFreeFreightNotEqualTo(Integer value) { addCriterion("priviledge_free_freight <>", value, "priviledgeFreeFreight"); return (Criteria) this; } public Criteria andPriviledgeFreeFreightGreaterThan(Integer value) { addCriterion("priviledge_free_freight >", value, "priviledgeFreeFreight"); return (Criteria) this; } public Criteria andPriviledgeFreeFreightGreaterThanOrEqualTo(Integer value) { addCriterion("priviledge_free_freight >=", value, "priviledgeFreeFreight"); return (Criteria) this; } public Criteria andPriviledgeFreeFreightLessThan(Integer value) { addCriterion("priviledge_free_freight <", value, "priviledgeFreeFreight"); return (Criteria) this; } public Criteria andPriviledgeFreeFreightLessThanOrEqualTo(Integer value) { addCriterion("priviledge_free_freight <=", value, "priviledgeFreeFreight"); return (Criteria) this; } public Criteria andPriviledgeFreeFreightIn(List<Integer> values) { addCriterion("priviledge_free_freight in", values, "priviledgeFreeFreight"); return (Criteria) this; } public Criteria andPriviledgeFreeFreightNotIn(List<Integer> values) { addCriterion("priviledge_free_freight not in", values, "priviledgeFreeFreight"); return (Criteria) this; } public Criteria andPriviledgeFreeFreightBetween(Integer value1, Integer value2) { addCriterion("priviledge_free_freight between", value1, value2, "priviledgeFreeFreight"); return (Criteria) this; } public Criteria andPriviledgeFreeFreightNotBetween(Integer value1, Integer value2) { addCriterion("priviledge_free_freight not between", value1, value2, "priviledgeFreeFreight"); return (Criteria) this; } public Criteria andPriviledgeSignInIsNull() { addCriterion("priviledge_sign_in is null"); return (Criteria) this; } public Criteria andPriviledgeSignInIsNotNull() { addCriterion("priviledge_sign_in is not null"); return (Criteria) this; } public Criteria andPriviledgeSignInEqualTo(Integer value) { addCriterion("priviledge_sign_in =", value, "priviledgeSignIn"); return (Criteria) this; } public Criteria andPriviledgeSignInNotEqualTo(Integer value) { addCriterion("priviledge_sign_in <>", value, "priviledgeSignIn"); return (Criteria) this; } public Criteria andPriviledgeSignInGreaterThan(Integer value) { addCriterion("priviledge_sign_in >", value, "priviledgeSignIn"); return (Criteria) this; } public Criteria andPriviledgeSignInGreaterThanOrEqualTo(Integer value) { addCriterion("priviledge_sign_in >=", value, "priviledgeSignIn"); return (Criteria) this; } public Criteria andPriviledgeSignInLessThan(Integer value) { addCriterion("priviledge_sign_in <", value, "priviledgeSignIn"); return (Criteria) this; } public Criteria andPriviledgeSignInLessThanOrEqualTo(Integer value) { addCriterion("priviledge_sign_in <=", value, "priviledgeSignIn"); return (Criteria) this; } public Criteria andPriviledgeSignInIn(List<Integer> values) { addCriterion("priviledge_sign_in in", values, "priviledgeSignIn"); return (Criteria) this; } public Criteria andPriviledgeSignInNotIn(List<Integer> values) { addCriterion("priviledge_sign_in not in", values, "priviledgeSignIn"); return (Criteria) this; } public Criteria andPriviledgeSignInBetween(Integer value1, Integer value2) { addCriterion("priviledge_sign_in between", value1, value2, "priviledgeSignIn"); return (Criteria) this; } public Criteria andPriviledgeSignInNotBetween(Integer value1, Integer value2) { addCriterion("priviledge_sign_in not between", value1, value2, "priviledgeSignIn"); return (Criteria) this; } public Criteria andPriviledgeCommentIsNull() { addCriterion("priviledge_comment is null"); return (Criteria) this; } public Criteria andPriviledgeCommentIsNotNull() { addCriterion("priviledge_comment is not null"); return (Criteria) this; } public Criteria andPriviledgeCommentEqualTo(Integer value) { addCriterion("priviledge_comment =", value, "priviledgeComment"); return (Criteria) this; } public Criteria andPriviledgeCommentNotEqualTo(Integer value) { addCriterion("priviledge_comment <>", value, "priviledgeComment"); return (Criteria) this; } public Criteria andPriviledgeCommentGreaterThan(Integer value) { addCriterion("priviledge_comment >", value, "priviledgeComment"); return (Criteria) this; } public Criteria andPriviledgeCommentGreaterThanOrEqualTo(Integer value) { addCriterion("priviledge_comment >=", value, "priviledgeComment"); return (Criteria) this; } public Criteria andPriviledgeCommentLessThan(Integer value) { addCriterion("priviledge_comment <", value, "priviledgeComment"); return (Criteria) this; } public Criteria andPriviledgeCommentLessThanOrEqualTo(Integer value) { addCriterion("priviledge_comment <=", value, "priviledgeComment"); return (Criteria) this; } public Criteria andPriviledgeCommentIn(List<Integer> values) { addCriterion("priviledge_comment in", values, "priviledgeComment"); return (Criteria) this; } public Criteria andPriviledgeCommentNotIn(List<Integer> values) { addCriterion("priviledge_comment not in", values, "priviledgeComment"); return (Criteria) this; } public Criteria andPriviledgeCommentBetween(Integer value1, Integer value2) { addCriterion("priviledge_comment between", value1, value2, "priviledgeComment"); return (Criteria) this; } public Criteria andPriviledgeCommentNotBetween(Integer value1, Integer value2) { addCriterion("priviledge_comment not between", value1, value2, "priviledgeComment"); return (Criteria) this; } public Criteria andPriviledgePromotionIsNull() { addCriterion("priviledge_promotion is null"); return (Criteria) this; } public Criteria andPriviledgePromotionIsNotNull() { addCriterion("priviledge_promotion is not null"); return (Criteria) this; } public Criteria andPriviledgePromotionEqualTo(Integer value) { addCriterion("priviledge_promotion =", value, "priviledgePromotion"); return (Criteria) this; } public Criteria andPriviledgePromotionNotEqualTo(Integer value) { addCriterion("priviledge_promotion <>", value, "priviledgePromotion"); return (Criteria) this; } public Criteria andPriviledgePromotionGreaterThan(Integer value) { addCriterion("priviledge_promotion >", value, "priviledgePromotion"); return (Criteria) this; } public Criteria andPriviledgePromotionGreaterThanOrEqualTo(Integer value) { addCriterion("priviledge_promotion >=", value, "priviledgePromotion"); return (Criteria) this; } public Criteria andPriviledgePromotionLessThan(Integer value) { addCriterion("priviledge_promotion <", value, "priviledgePromotion"); return (Criteria) this; } public Criteria andPriviledgePromotionLessThanOrEqualTo(Integer value) { addCriterion("priviledge_promotion <=", value, "priviledgePromotion"); return (Criteria) this; } public Criteria andPriviledgePromotionIn(List<Integer> values) { addCriterion("priviledge_promotion in", values, "priviledgePromotion"); return (Criteria) this; } public Criteria andPriviledgePromotionNotIn(List<Integer> values) { addCriterion("priviledge_promotion not in", values, "priviledgePromotion"); return (Criteria) this; } public Criteria andPriviledgePromotionBetween(Integer value1, Integer value2) { addCriterion("priviledge_promotion between", value1, value2, "priviledgePromotion"); return (Criteria) this; } public Criteria andPriviledgePromotionNotBetween(Integer value1, Integer value2) { addCriterion("priviledge_promotion not between", value1, value2, "priviledgePromotion"); return (Criteria) this; } public Criteria andPriviledgeMemberPriceIsNull() { addCriterion("priviledge_member_price is null"); return (Criteria) this; } public Criteria andPriviledgeMemberPriceIsNotNull() { addCriterion("priviledge_member_price is not null"); return (Criteria) this; } public Criteria andPriviledgeMemberPriceEqualTo(Integer value) { addCriterion("priviledge_member_price =", value, "priviledgeMemberPrice"); return (Criteria) this; } public Criteria andPriviledgeMemberPriceNotEqualTo(Integer value) { addCriterion("priviledge_member_price <>", value, "priviledgeMemberPrice"); return (Criteria) this; } public Criteria andPriviledgeMemberPriceGreaterThan(Integer value) { addCriterion("priviledge_member_price >", value, "priviledgeMemberPrice"); return (Criteria) this; } public Criteria andPriviledgeMemberPriceGreaterThanOrEqualTo(Integer value) { addCriterion("priviledge_member_price >=", value, "priviledgeMemberPrice"); return (Criteria) this; } public Criteria andPriviledgeMemberPriceLessThan(Integer value) { addCriterion("priviledge_member_price <", value, "priviledgeMemberPrice"); return (Criteria) this; } public Criteria andPriviledgeMemberPriceLessThanOrEqualTo(Integer value) { addCriterion("priviledge_member_price <=", value, "priviledgeMemberPrice"); return (Criteria) this; } public Criteria andPriviledgeMemberPriceIn(List<Integer> values) { addCriterion("priviledge_member_price in", values, "priviledgeMemberPrice"); return (Criteria) this; } public Criteria andPriviledgeMemberPriceNotIn(List<Integer> values) { addCriterion("priviledge_member_price not in", values, "priviledgeMemberPrice"); return (Criteria) this; } public Criteria andPriviledgeMemberPriceBetween(Integer value1, Integer value2) { addCriterion("priviledge_member_price between", value1, value2, "priviledgeMemberPrice"); return (Criteria) this; } public Criteria andPriviledgeMemberPriceNotBetween(Integer value1, Integer value2) { addCriterion("priviledge_member_price not between", value1, value2, "priviledgeMemberPrice"); return (Criteria) this; } public Criteria andPriviledgeBirthdayIsNull() { addCriterion("priviledge_birthday is null"); return (Criteria) this; } public Criteria andPriviledgeBirthdayIsNotNull() { addCriterion("priviledge_birthday is not null"); return (Criteria) this; } public Criteria andPriviledgeBirthdayEqualTo(Integer value) { addCriterion("priviledge_birthday =", value, "priviledgeBirthday"); return (Criteria) this; } public Criteria andPriviledgeBirthdayNotEqualTo(Integer value) { addCriterion("priviledge_birthday <>", value, "priviledgeBirthday"); return (Criteria) this; } public Criteria andPriviledgeBirthdayGreaterThan(Integer value) { addCriterion("priviledge_birthday >", value, "priviledgeBirthday"); return (Criteria) this; } public Criteria andPriviledgeBirthdayGreaterThanOrEqualTo(Integer value) { addCriterion("priviledge_birthday >=", value, "priviledgeBirthday"); return (Criteria) this; } public Criteria andPriviledgeBirthdayLessThan(Integer value) { addCriterion("priviledge_birthday <", value, "priviledgeBirthday"); return (Criteria) this; } public Criteria andPriviledgeBirthdayLessThanOrEqualTo(Integer value) { addCriterion("priviledge_birthday <=", value, "priviledgeBirthday"); return (Criteria) this; } public Criteria andPriviledgeBirthdayIn(List<Integer> values) { addCriterion("priviledge_birthday in", values, "priviledgeBirthday"); return (Criteria) this; } public Criteria andPriviledgeBirthdayNotIn(List<Integer> values) { addCriterion("priviledge_birthday not in", values, "priviledgeBirthday"); return (Criteria) this; } public Criteria andPriviledgeBirthdayBetween(Integer value1, Integer value2) { addCriterion("priviledge_birthday between", value1, value2, "priviledgeBirthday"); return (Criteria) this; } public Criteria andPriviledgeBirthdayNotBetween(Integer value1, Integer value2) { addCriterion("priviledge_birthday not between", value1, value2, "priviledgeBirthday"); return (Criteria) this; } public Criteria andNoteIsNull() { addCriterion("note is null"); return (Criteria) this; } public Criteria andNoteIsNotNull() { addCriterion("note is not null"); return (Criteria) this; } public Criteria andNoteEqualTo(String value) { addCriterion("note =", value, "note"); return (Criteria) this; } public Criteria andNoteNotEqualTo(String value) { addCriterion("note <>", value, "note"); return (Criteria) this; } public Criteria andNoteGreaterThan(String value) { addCriterion("note >", value, "note"); return (Criteria) this; } public Criteria andNoteGreaterThanOrEqualTo(String value) { addCriterion("note >=", value, "note"); return (Criteria) this; } public Criteria andNoteLessThan(String value) { addCriterion("note <", value, "note"); return (Criteria) this; } public Criteria andNoteLessThanOrEqualTo(String value) { addCriterion("note <=", value, "note"); return (Criteria) this; } public Criteria andNoteLike(String value) { addCriterion("note like", value, "note"); return (Criteria) this; } public Criteria andNoteNotLike(String value) { addCriterion("note not like", value, "note"); return (Criteria) this; } public Criteria andNoteIn(List<String> values) { addCriterion("note in", values, "note"); return (Criteria) this; } public Criteria andNoteNotIn(List<String> values) { addCriterion("note not in", values, "note"); return (Criteria) this; } public Criteria andNoteBetween(String value1, String value2) {
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
true
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/CmsTopicComment.java
mall-mbg/src/main/java/com/macro/mall/model/CmsTopicComment.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.util.Date; public class CmsTopicComment implements Serializable { private Long id; private String memberNickName; private Long topicId; private String memberIcon; private String content; private Date createTime; private Integer showStatus; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getMemberNickName() { return memberNickName; } public void setMemberNickName(String memberNickName) { this.memberNickName = memberNickName; } public Long getTopicId() { return topicId; } public void setTopicId(Long topicId) { this.topicId = topicId; } public String getMemberIcon() { return memberIcon; } public void setMemberIcon(String memberIcon) { this.memberIcon = memberIcon; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Integer getShowStatus() { return showStatus; } public void setShowStatus(Integer showStatus) { this.showStatus = showStatus; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", memberNickName=").append(memberNickName); sb.append(", topicId=").append(topicId); sb.append(", memberIcon=").append(memberIcon); sb.append(", content=").append(content); sb.append(", createTime=").append(createTime); sb.append(", showStatus=").append(showStatus); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/UmsMemberProductCategoryRelation.java
mall-mbg/src/main/java/com/macro/mall/model/UmsMemberProductCategoryRelation.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; public class UmsMemberProductCategoryRelation implements Serializable { private Long id; private Long memberId; private Long productCategoryId; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getMemberId() { return memberId; } public void setMemberId(Long memberId) { this.memberId = memberId; } public Long getProductCategoryId() { return productCategoryId; } public void setProductCategoryId(Long productCategoryId) { this.productCategoryId = productCategoryId; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", memberId=").append(memberId); sb.append(", productCategoryId=").append(productCategoryId); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionLogExample.java
mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionLogExample.java
package com.macro.mall.model; import java.util.ArrayList; import java.util.Date; import java.util.List; public class SmsFlashPromotionLogExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public SmsFlashPromotionLogExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Integer value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Integer value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Integer value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Integer value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Integer value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Integer value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Integer> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Integer> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Integer value1, Integer value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Integer value1, Integer value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andMemberIdIsNull() { addCriterion("member_id is null"); return (Criteria) this; } public Criteria andMemberIdIsNotNull() { addCriterion("member_id is not null"); return (Criteria) this; } public Criteria andMemberIdEqualTo(Integer value) { addCriterion("member_id =", value, "memberId"); return (Criteria) this; } public Criteria andMemberIdNotEqualTo(Integer value) { addCriterion("member_id <>", value, "memberId"); return (Criteria) this; } public Criteria andMemberIdGreaterThan(Integer value) { addCriterion("member_id >", value, "memberId"); return (Criteria) this; } public Criteria andMemberIdGreaterThanOrEqualTo(Integer value) { addCriterion("member_id >=", value, "memberId"); return (Criteria) this; } public Criteria andMemberIdLessThan(Integer value) { addCriterion("member_id <", value, "memberId"); return (Criteria) this; } public Criteria andMemberIdLessThanOrEqualTo(Integer value) { addCriterion("member_id <=", value, "memberId"); return (Criteria) this; } public Criteria andMemberIdIn(List<Integer> values) { addCriterion("member_id in", values, "memberId"); return (Criteria) this; } public Criteria andMemberIdNotIn(List<Integer> values) { addCriterion("member_id not in", values, "memberId"); return (Criteria) this; } public Criteria andMemberIdBetween(Integer value1, Integer value2) { addCriterion("member_id between", value1, value2, "memberId"); return (Criteria) this; } public Criteria andMemberIdNotBetween(Integer value1, Integer value2) { addCriterion("member_id not between", value1, value2, "memberId"); return (Criteria) this; } public Criteria andProductIdIsNull() { addCriterion("product_id is null"); return (Criteria) this; } public Criteria andProductIdIsNotNull() { addCriterion("product_id is not null"); return (Criteria) this; } public Criteria andProductIdEqualTo(Long value) { addCriterion("product_id =", value, "productId"); return (Criteria) this; } public Criteria andProductIdNotEqualTo(Long value) { addCriterion("product_id <>", value, "productId"); return (Criteria) this; } public Criteria andProductIdGreaterThan(Long value) { addCriterion("product_id >", value, "productId"); return (Criteria) this; } public Criteria andProductIdGreaterThanOrEqualTo(Long value) { addCriterion("product_id >=", value, "productId"); return (Criteria) this; } public Criteria andProductIdLessThan(Long value) { addCriterion("product_id <", value, "productId"); return (Criteria) this; } public Criteria andProductIdLessThanOrEqualTo(Long value) { addCriterion("product_id <=", value, "productId"); return (Criteria) this; } public Criteria andProductIdIn(List<Long> values) { addCriterion("product_id in", values, "productId"); return (Criteria) this; } public Criteria andProductIdNotIn(List<Long> values) { addCriterion("product_id not in", values, "productId"); return (Criteria) this; } public Criteria andProductIdBetween(Long value1, Long value2) { addCriterion("product_id between", value1, value2, "productId"); return (Criteria) this; } public Criteria andProductIdNotBetween(Long value1, Long value2) { addCriterion("product_id not between", value1, value2, "productId"); return (Criteria) this; } public Criteria andMemberPhoneIsNull() { addCriterion("member_phone is null"); return (Criteria) this; } public Criteria andMemberPhoneIsNotNull() { addCriterion("member_phone is not null"); return (Criteria) this; } public Criteria andMemberPhoneEqualTo(String value) { addCriterion("member_phone =", value, "memberPhone"); return (Criteria) this; } public Criteria andMemberPhoneNotEqualTo(String value) { addCriterion("member_phone <>", value, "memberPhone"); return (Criteria) this; } public Criteria andMemberPhoneGreaterThan(String value) { addCriterion("member_phone >", value, "memberPhone"); return (Criteria) this; } public Criteria andMemberPhoneGreaterThanOrEqualTo(String value) { addCriterion("member_phone >=", value, "memberPhone"); return (Criteria) this; } public Criteria andMemberPhoneLessThan(String value) { addCriterion("member_phone <", value, "memberPhone"); return (Criteria) this; } public Criteria andMemberPhoneLessThanOrEqualTo(String value) { addCriterion("member_phone <=", value, "memberPhone"); return (Criteria) this; } public Criteria andMemberPhoneLike(String value) { addCriterion("member_phone like", value, "memberPhone"); return (Criteria) this; } public Criteria andMemberPhoneNotLike(String value) { addCriterion("member_phone not like", value, "memberPhone"); return (Criteria) this; } public Criteria andMemberPhoneIn(List<String> values) { addCriterion("member_phone in", values, "memberPhone"); return (Criteria) this; } public Criteria andMemberPhoneNotIn(List<String> values) { addCriterion("member_phone not in", values, "memberPhone"); return (Criteria) this; } public Criteria andMemberPhoneBetween(String value1, String value2) { addCriterion("member_phone between", value1, value2, "memberPhone"); return (Criteria) this; } public Criteria andMemberPhoneNotBetween(String value1, String value2) { addCriterion("member_phone not between", value1, value2, "memberPhone"); return (Criteria) this; } public Criteria andProductNameIsNull() { addCriterion("product_name is null"); return (Criteria) this; } public Criteria andProductNameIsNotNull() { addCriterion("product_name is not null"); return (Criteria) this; } public Criteria andProductNameEqualTo(String value) { addCriterion("product_name =", value, "productName"); return (Criteria) this; } public Criteria andProductNameNotEqualTo(String value) { addCriterion("product_name <>", value, "productName"); return (Criteria) this; } public Criteria andProductNameGreaterThan(String value) { addCriterion("product_name >", value, "productName"); return (Criteria) this; } public Criteria andProductNameGreaterThanOrEqualTo(String value) { addCriterion("product_name >=", value, "productName"); return (Criteria) this; } public Criteria andProductNameLessThan(String value) { addCriterion("product_name <", value, "productName"); return (Criteria) this; } public Criteria andProductNameLessThanOrEqualTo(String value) { addCriterion("product_name <=", value, "productName"); return (Criteria) this; } public Criteria andProductNameLike(String value) { addCriterion("product_name like", value, "productName"); return (Criteria) this; } public Criteria andProductNameNotLike(String value) { addCriterion("product_name not like", value, "productName"); return (Criteria) this; } public Criteria andProductNameIn(List<String> values) { addCriterion("product_name in", values, "productName"); return (Criteria) this; } public Criteria andProductNameNotIn(List<String> values) { addCriterion("product_name not in", values, "productName"); return (Criteria) this; } public Criteria andProductNameBetween(String value1, String value2) { addCriterion("product_name between", value1, value2, "productName"); return (Criteria) this; } public Criteria andProductNameNotBetween(String value1, String value2) { addCriterion("product_name not between", value1, value2, "productName"); return (Criteria) this; } public Criteria andSubscribeTimeIsNull() { addCriterion("subscribe_time is null"); return (Criteria) this; } public Criteria andSubscribeTimeIsNotNull() { addCriterion("subscribe_time is not null"); return (Criteria) this; } public Criteria andSubscribeTimeEqualTo(Date value) { addCriterion("subscribe_time =", value, "subscribeTime"); return (Criteria) this; } public Criteria andSubscribeTimeNotEqualTo(Date value) { addCriterion("subscribe_time <>", value, "subscribeTime"); return (Criteria) this; } public Criteria andSubscribeTimeGreaterThan(Date value) { addCriterion("subscribe_time >", value, "subscribeTime"); return (Criteria) this; } public Criteria andSubscribeTimeGreaterThanOrEqualTo(Date value) { addCriterion("subscribe_time >=", value, "subscribeTime"); return (Criteria) this; } public Criteria andSubscribeTimeLessThan(Date value) { addCriterion("subscribe_time <", value, "subscribeTime"); return (Criteria) this; } public Criteria andSubscribeTimeLessThanOrEqualTo(Date value) { addCriterion("subscribe_time <=", value, "subscribeTime"); return (Criteria) this; } public Criteria andSubscribeTimeIn(List<Date> values) { addCriterion("subscribe_time in", values, "subscribeTime"); return (Criteria) this; } public Criteria andSubscribeTimeNotIn(List<Date> values) { addCriterion("subscribe_time not in", values, "subscribeTime"); return (Criteria) this; } public Criteria andSubscribeTimeBetween(Date value1, Date value2) { addCriterion("subscribe_time between", value1, value2, "subscribeTime"); return (Criteria) this; } public Criteria andSubscribeTimeNotBetween(Date value1, Date value2) { addCriterion("subscribe_time not between", value1, value2, "subscribeTime"); return (Criteria) this; } public Criteria andSendTimeIsNull() { addCriterion("send_time is null"); return (Criteria) this; } public Criteria andSendTimeIsNotNull() { addCriterion("send_time is not null"); return (Criteria) this; } public Criteria andSendTimeEqualTo(Date value) { addCriterion("send_time =", value, "sendTime"); return (Criteria) this; } public Criteria andSendTimeNotEqualTo(Date value) { addCriterion("send_time <>", value, "sendTime"); return (Criteria) this; } public Criteria andSendTimeGreaterThan(Date value) { addCriterion("send_time >", value, "sendTime"); return (Criteria) this; } public Criteria andSendTimeGreaterThanOrEqualTo(Date value) { addCriterion("send_time >=", value, "sendTime"); return (Criteria) this; } public Criteria andSendTimeLessThan(Date value) { addCriterion("send_time <", value, "sendTime"); return (Criteria) this; } public Criteria andSendTimeLessThanOrEqualTo(Date value) { addCriterion("send_time <=", value, "sendTime"); return (Criteria) this; } public Criteria andSendTimeIn(List<Date> values) { addCriterion("send_time in", values, "sendTime"); return (Criteria) this; } public Criteria andSendTimeNotIn(List<Date> values) { addCriterion("send_time not in", values, "sendTime"); return (Criteria) this; } public Criteria andSendTimeBetween(Date value1, Date value2) { addCriterion("send_time between", value1, value2, "sendTime"); return (Criteria) this; } public Criteria andSendTimeNotBetween(Date value1, Date value2) { addCriterion("send_time not between", value1, value2, "sendTime"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttributeValue.java
mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttributeValue.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; public class PmsProductAttributeValue implements Serializable { private Long id; private Long productId; private Long productAttributeId; @ApiModelProperty(value = "手动添加规格或参数的值,参数单值,规格有多个时以逗号隔开") private String value; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getProductId() { return productId; } public void setProductId(Long productId) { this.productId = productId; } public Long getProductAttributeId() { return productAttributeId; } public void setProductAttributeId(Long productAttributeId) { this.productAttributeId = productAttributeId; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", productId=").append(productId); sb.append(", productAttributeId=").append(productAttributeId); sb.append(", value=").append(value); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/PmsProductLadderExample.java
mall-mbg/src/main/java/com/macro/mall/model/PmsProductLadderExample.java
package com.macro.mall.model; import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; public class PmsProductLadderExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public PmsProductLadderExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andProductIdIsNull() { addCriterion("product_id is null"); return (Criteria) this; } public Criteria andProductIdIsNotNull() { addCriterion("product_id is not null"); return (Criteria) this; } public Criteria andProductIdEqualTo(Long value) { addCriterion("product_id =", value, "productId"); return (Criteria) this; } public Criteria andProductIdNotEqualTo(Long value) { addCriterion("product_id <>", value, "productId"); return (Criteria) this; } public Criteria andProductIdGreaterThan(Long value) { addCriterion("product_id >", value, "productId"); return (Criteria) this; } public Criteria andProductIdGreaterThanOrEqualTo(Long value) { addCriterion("product_id >=", value, "productId"); return (Criteria) this; } public Criteria andProductIdLessThan(Long value) { addCriterion("product_id <", value, "productId"); return (Criteria) this; } public Criteria andProductIdLessThanOrEqualTo(Long value) { addCriterion("product_id <=", value, "productId"); return (Criteria) this; } public Criteria andProductIdIn(List<Long> values) { addCriterion("product_id in", values, "productId"); return (Criteria) this; } public Criteria andProductIdNotIn(List<Long> values) { addCriterion("product_id not in", values, "productId"); return (Criteria) this; } public Criteria andProductIdBetween(Long value1, Long value2) { addCriterion("product_id between", value1, value2, "productId"); return (Criteria) this; } public Criteria andProductIdNotBetween(Long value1, Long value2) { addCriterion("product_id not between", value1, value2, "productId"); return (Criteria) this; } public Criteria andCountIsNull() { addCriterion("count is null"); return (Criteria) this; } public Criteria andCountIsNotNull() { addCriterion("count is not null"); return (Criteria) this; } public Criteria andCountEqualTo(Integer value) { addCriterion("count =", value, "count"); return (Criteria) this; } public Criteria andCountNotEqualTo(Integer value) { addCriterion("count <>", value, "count"); return (Criteria) this; } public Criteria andCountGreaterThan(Integer value) { addCriterion("count >", value, "count"); return (Criteria) this; } public Criteria andCountGreaterThanOrEqualTo(Integer value) { addCriterion("count >=", value, "count"); return (Criteria) this; } public Criteria andCountLessThan(Integer value) { addCriterion("count <", value, "count"); return (Criteria) this; } public Criteria andCountLessThanOrEqualTo(Integer value) { addCriterion("count <=", value, "count"); return (Criteria) this; } public Criteria andCountIn(List<Integer> values) { addCriterion("count in", values, "count"); return (Criteria) this; } public Criteria andCountNotIn(List<Integer> values) { addCriterion("count not in", values, "count"); return (Criteria) this; } public Criteria andCountBetween(Integer value1, Integer value2) { addCriterion("count between", value1, value2, "count"); return (Criteria) this; } public Criteria andCountNotBetween(Integer value1, Integer value2) { addCriterion("count not between", value1, value2, "count"); return (Criteria) this; } public Criteria andDiscountIsNull() { addCriterion("discount is null"); return (Criteria) this; } public Criteria andDiscountIsNotNull() { addCriterion("discount is not null"); return (Criteria) this; } public Criteria andDiscountEqualTo(BigDecimal value) { addCriterion("discount =", value, "discount"); return (Criteria) this; } public Criteria andDiscountNotEqualTo(BigDecimal value) { addCriterion("discount <>", value, "discount"); return (Criteria) this; } public Criteria andDiscountGreaterThan(BigDecimal value) { addCriterion("discount >", value, "discount"); return (Criteria) this; } public Criteria andDiscountGreaterThanOrEqualTo(BigDecimal value) { addCriterion("discount >=", value, "discount"); return (Criteria) this; } public Criteria andDiscountLessThan(BigDecimal value) { addCriterion("discount <", value, "discount"); return (Criteria) this; } public Criteria andDiscountLessThanOrEqualTo(BigDecimal value) { addCriterion("discount <=", value, "discount"); return (Criteria) this; } public Criteria andDiscountIn(List<BigDecimal> values) { addCriterion("discount in", values, "discount"); return (Criteria) this; } public Criteria andDiscountNotIn(List<BigDecimal> values) { addCriterion("discount not in", values, "discount"); return (Criteria) this; } public Criteria andDiscountBetween(BigDecimal value1, BigDecimal value2) { addCriterion("discount between", value1, value2, "discount"); return (Criteria) this; } public Criteria andDiscountNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("discount not between", value1, value2, "discount"); return (Criteria) this; } public Criteria andPriceIsNull() { addCriterion("price is null"); return (Criteria) this; } public Criteria andPriceIsNotNull() { addCriterion("price is not null"); return (Criteria) this; } public Criteria andPriceEqualTo(BigDecimal value) { addCriterion("price =", value, "price"); return (Criteria) this; } public Criteria andPriceNotEqualTo(BigDecimal value) { addCriterion("price <>", value, "price"); return (Criteria) this; } public Criteria andPriceGreaterThan(BigDecimal value) { addCriterion("price >", value, "price"); return (Criteria) this; } public Criteria andPriceGreaterThanOrEqualTo(BigDecimal value) { addCriterion("price >=", value, "price"); return (Criteria) this; } public Criteria andPriceLessThan(BigDecimal value) { addCriterion("price <", value, "price"); return (Criteria) this; } public Criteria andPriceLessThanOrEqualTo(BigDecimal value) { addCriterion("price <=", value, "price"); return (Criteria) this; } public Criteria andPriceIn(List<BigDecimal> values) { addCriterion("price in", values, "price"); return (Criteria) this; } public Criteria andPriceNotIn(List<BigDecimal> values) { addCriterion("price not in", values, "price"); return (Criteria) this; } public Criteria andPriceBetween(BigDecimal value1, BigDecimal value2) { addCriterion("price between", value1, value2, "price"); return (Criteria) this; } public Criteria andPriceNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("price not between", value1, value2, "price"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/UmsAdminPermissionRelationExample.java
mall-mbg/src/main/java/com/macro/mall/model/UmsAdminPermissionRelationExample.java
package com.macro.mall.model; import java.util.ArrayList; import java.util.List; public class UmsAdminPermissionRelationExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public UmsAdminPermissionRelationExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andAdminIdIsNull() { addCriterion("admin_id is null"); return (Criteria) this; } public Criteria andAdminIdIsNotNull() { addCriterion("admin_id is not null"); return (Criteria) this; } public Criteria andAdminIdEqualTo(Long value) { addCriterion("admin_id =", value, "adminId"); return (Criteria) this; } public Criteria andAdminIdNotEqualTo(Long value) { addCriterion("admin_id <>", value, "adminId"); return (Criteria) this; } public Criteria andAdminIdGreaterThan(Long value) { addCriterion("admin_id >", value, "adminId"); return (Criteria) this; } public Criteria andAdminIdGreaterThanOrEqualTo(Long value) { addCriterion("admin_id >=", value, "adminId"); return (Criteria) this; } public Criteria andAdminIdLessThan(Long value) { addCriterion("admin_id <", value, "adminId"); return (Criteria) this; } public Criteria andAdminIdLessThanOrEqualTo(Long value) { addCriterion("admin_id <=", value, "adminId"); return (Criteria) this; } public Criteria andAdminIdIn(List<Long> values) { addCriterion("admin_id in", values, "adminId"); return (Criteria) this; } public Criteria andAdminIdNotIn(List<Long> values) { addCriterion("admin_id not in", values, "adminId"); return (Criteria) this; } public Criteria andAdminIdBetween(Long value1, Long value2) { addCriterion("admin_id between", value1, value2, "adminId"); return (Criteria) this; } public Criteria andAdminIdNotBetween(Long value1, Long value2) { addCriterion("admin_id not between", value1, value2, "adminId"); return (Criteria) this; } public Criteria andPermissionIdIsNull() { addCriterion("permission_id is null"); return (Criteria) this; } public Criteria andPermissionIdIsNotNull() { addCriterion("permission_id is not null"); return (Criteria) this; } public Criteria andPermissionIdEqualTo(Long value) { addCriterion("permission_id =", value, "permissionId"); return (Criteria) this; } public Criteria andPermissionIdNotEqualTo(Long value) { addCriterion("permission_id <>", value, "permissionId"); return (Criteria) this; } public Criteria andPermissionIdGreaterThan(Long value) { addCriterion("permission_id >", value, "permissionId"); return (Criteria) this; } public Criteria andPermissionIdGreaterThanOrEqualTo(Long value) { addCriterion("permission_id >=", value, "permissionId"); return (Criteria) this; } public Criteria andPermissionIdLessThan(Long value) { addCriterion("permission_id <", value, "permissionId"); return (Criteria) this; } public Criteria andPermissionIdLessThanOrEqualTo(Long value) { addCriterion("permission_id <=", value, "permissionId"); return (Criteria) this; } public Criteria andPermissionIdIn(List<Long> values) { addCriterion("permission_id in", values, "permissionId"); return (Criteria) this; } public Criteria andPermissionIdNotIn(List<Long> values) { addCriterion("permission_id not in", values, "permissionId"); return (Criteria) this; } public Criteria andPermissionIdBetween(Long value1, Long value2) { addCriterion("permission_id between", value1, value2, "permissionId"); return (Criteria) this; } public Criteria andPermissionIdNotBetween(Long value1, Long value2) { addCriterion("permission_id not between", value1, value2, "permissionId"); return (Criteria) this; } public Criteria andTypeIsNull() { addCriterion("type is null"); return (Criteria) this; } public Criteria andTypeIsNotNull() { addCriterion("type is not null"); return (Criteria) this; } public Criteria andTypeEqualTo(Integer value) { addCriterion("type =", value, "type"); return (Criteria) this; } public Criteria andTypeNotEqualTo(Integer value) { addCriterion("type <>", value, "type"); return (Criteria) this; } public Criteria andTypeGreaterThan(Integer value) { addCriterion("type >", value, "type"); return (Criteria) this; } public Criteria andTypeGreaterThanOrEqualTo(Integer value) { addCriterion("type >=", value, "type"); return (Criteria) this; } public Criteria andTypeLessThan(Integer value) { addCriterion("type <", value, "type"); return (Criteria) this; } public Criteria andTypeLessThanOrEqualTo(Integer value) { addCriterion("type <=", value, "type"); return (Criteria) this; } public Criteria andTypeIn(List<Integer> values) { addCriterion("type in", values, "type"); return (Criteria) this; } public Criteria andTypeNotIn(List<Integer> values) { addCriterion("type not in", values, "type"); return (Criteria) this; } public Criteria andTypeBetween(Integer value1, Integer value2) { addCriterion("type between", value1, value2, "type"); return (Criteria) this; } public Criteria andTypeNotBetween(Integer value1, Integer value2) { addCriterion("type not between", value1, value2, "type"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectComment.java
mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectComment.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.util.Date; public class CmsSubjectComment implements Serializable { private Long id; private Long subjectId; private String memberNickName; private String memberIcon; private String content; private Date createTime; private Integer showStatus; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getSubjectId() { return subjectId; } public void setSubjectId(Long subjectId) { this.subjectId = subjectId; } public String getMemberNickName() { return memberNickName; } public void setMemberNickName(String memberNickName) { this.memberNickName = memberNickName; } public String getMemberIcon() { return memberIcon; } public void setMemberIcon(String memberIcon) { this.memberIcon = memberIcon; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Integer getShowStatus() { return showStatus; } public void setShowStatus(Integer showStatus) { this.showStatus = showStatus; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", subjectId=").append(subjectId); sb.append(", memberNickName=").append(memberNickName); sb.append(", memberIcon=").append(memberIcon); sb.append(", content=").append(content); sb.append(", createTime=").append(createTime); sb.append(", showStatus=").append(showStatus); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/CmsMemberReport.java
mall-mbg/src/main/java/com/macro/mall/model/CmsMemberReport.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.util.Date; public class CmsMemberReport implements Serializable { private Long id; @ApiModelProperty(value = "举报类型:0->商品评价;1->话题内容;2->用户评论") private Integer reportType; @ApiModelProperty(value = "举报人") private String reportMemberName; private Date createTime; private String reportObject; @ApiModelProperty(value = "举报状态:0->未处理;1->已处理") private Integer reportStatus; @ApiModelProperty(value = "处理结果:0->无效;1->有效;2->恶意") private Integer handleStatus; private String note; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Integer getReportType() { return reportType; } public void setReportType(Integer reportType) { this.reportType = reportType; } public String getReportMemberName() { return reportMemberName; } public void setReportMemberName(String reportMemberName) { this.reportMemberName = reportMemberName; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public String getReportObject() { return reportObject; } public void setReportObject(String reportObject) { this.reportObject = reportObject; } public Integer getReportStatus() { return reportStatus; } public void setReportStatus(Integer reportStatus) { this.reportStatus = reportStatus; } public Integer getHandleStatus() { return handleStatus; } public void setHandleStatus(Integer handleStatus) { this.handleStatus = handleStatus; } public String getNote() { return note; } public void setNote(String note) { this.note = note; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", reportType=").append(reportType); sb.append(", reportMemberName=").append(reportMemberName); sb.append(", createTime=").append(createTime); sb.append(", reportObject=").append(reportObject); sb.append(", reportStatus=").append(reportStatus); sb.append(", handleStatus=").append(handleStatus); sb.append(", note=").append(note); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/UmsAdminLoginLogExample.java
mall-mbg/src/main/java/com/macro/mall/model/UmsAdminLoginLogExample.java
package com.macro.mall.model; import java.util.ArrayList; import java.util.Date; import java.util.List; public class UmsAdminLoginLogExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public UmsAdminLoginLogExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andAdminIdIsNull() { addCriterion("admin_id is null"); return (Criteria) this; } public Criteria andAdminIdIsNotNull() { addCriterion("admin_id is not null"); return (Criteria) this; } public Criteria andAdminIdEqualTo(Long value) { addCriterion("admin_id =", value, "adminId"); return (Criteria) this; } public Criteria andAdminIdNotEqualTo(Long value) { addCriterion("admin_id <>", value, "adminId"); return (Criteria) this; } public Criteria andAdminIdGreaterThan(Long value) { addCriterion("admin_id >", value, "adminId"); return (Criteria) this; } public Criteria andAdminIdGreaterThanOrEqualTo(Long value) { addCriterion("admin_id >=", value, "adminId"); return (Criteria) this; } public Criteria andAdminIdLessThan(Long value) { addCriterion("admin_id <", value, "adminId"); return (Criteria) this; } public Criteria andAdminIdLessThanOrEqualTo(Long value) { addCriterion("admin_id <=", value, "adminId"); return (Criteria) this; } public Criteria andAdminIdIn(List<Long> values) { addCriterion("admin_id in", values, "adminId"); return (Criteria) this; } public Criteria andAdminIdNotIn(List<Long> values) { addCriterion("admin_id not in", values, "adminId"); return (Criteria) this; } public Criteria andAdminIdBetween(Long value1, Long value2) { addCriterion("admin_id between", value1, value2, "adminId"); return (Criteria) this; } public Criteria andAdminIdNotBetween(Long value1, Long value2) { addCriterion("admin_id not between", value1, value2, "adminId"); return (Criteria) this; } public Criteria andCreateTimeIsNull() { addCriterion("create_time is null"); return (Criteria) this; } public Criteria andCreateTimeIsNotNull() { addCriterion("create_time is not null"); return (Criteria) this; } public Criteria andCreateTimeEqualTo(Date value) { addCriterion("create_time =", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotEqualTo(Date value) { addCriterion("create_time <>", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeGreaterThan(Date value) { addCriterion("create_time >", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { addCriterion("create_time >=", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeLessThan(Date value) { addCriterion("create_time <", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeLessThanOrEqualTo(Date value) { addCriterion("create_time <=", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeIn(List<Date> values) { addCriterion("create_time in", values, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotIn(List<Date> values) { addCriterion("create_time not in", values, "createTime"); return (Criteria) this; } public Criteria andCreateTimeBetween(Date value1, Date value2) { addCriterion("create_time between", value1, value2, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotBetween(Date value1, Date value2) { addCriterion("create_time not between", value1, value2, "createTime"); return (Criteria) this; } public Criteria andIpIsNull() { addCriterion("ip is null"); return (Criteria) this; } public Criteria andIpIsNotNull() { addCriterion("ip is not null"); return (Criteria) this; } public Criteria andIpEqualTo(String value) { addCriterion("ip =", value, "ip"); return (Criteria) this; } public Criteria andIpNotEqualTo(String value) { addCriterion("ip <>", value, "ip"); return (Criteria) this; } public Criteria andIpGreaterThan(String value) { addCriterion("ip >", value, "ip"); return (Criteria) this; } public Criteria andIpGreaterThanOrEqualTo(String value) { addCriterion("ip >=", value, "ip"); return (Criteria) this; } public Criteria andIpLessThan(String value) { addCriterion("ip <", value, "ip"); return (Criteria) this; } public Criteria andIpLessThanOrEqualTo(String value) { addCriterion("ip <=", value, "ip"); return (Criteria) this; } public Criteria andIpLike(String value) { addCriterion("ip like", value, "ip"); return (Criteria) this; } public Criteria andIpNotLike(String value) { addCriterion("ip not like", value, "ip"); return (Criteria) this; } public Criteria andIpIn(List<String> values) { addCriterion("ip in", values, "ip"); return (Criteria) this; } public Criteria andIpNotIn(List<String> values) { addCriterion("ip not in", values, "ip"); return (Criteria) this; } public Criteria andIpBetween(String value1, String value2) { addCriterion("ip between", value1, value2, "ip"); return (Criteria) this; } public Criteria andIpNotBetween(String value1, String value2) { addCriterion("ip not between", value1, value2, "ip"); return (Criteria) this; } public Criteria andAddressIsNull() { addCriterion("address is null"); return (Criteria) this; } public Criteria andAddressIsNotNull() { addCriterion("address is not null"); return (Criteria) this; } public Criteria andAddressEqualTo(String value) { addCriterion("address =", value, "address"); return (Criteria) this; } public Criteria andAddressNotEqualTo(String value) { addCriterion("address <>", value, "address"); return (Criteria) this; } public Criteria andAddressGreaterThan(String value) { addCriterion("address >", value, "address"); return (Criteria) this; } public Criteria andAddressGreaterThanOrEqualTo(String value) { addCriterion("address >=", value, "address"); return (Criteria) this; } public Criteria andAddressLessThan(String value) { addCriterion("address <", value, "address"); return (Criteria) this; } public Criteria andAddressLessThanOrEqualTo(String value) { addCriterion("address <=", value, "address"); return (Criteria) this; } public Criteria andAddressLike(String value) { addCriterion("address like", value, "address"); return (Criteria) this; } public Criteria andAddressNotLike(String value) { addCriterion("address not like", value, "address"); return (Criteria) this; } public Criteria andAddressIn(List<String> values) { addCriterion("address in", values, "address"); return (Criteria) this; } public Criteria andAddressNotIn(List<String> values) { addCriterion("address not in", values, "address"); return (Criteria) this; } public Criteria andAddressBetween(String value1, String value2) { addCriterion("address between", value1, value2, "address"); return (Criteria) this; } public Criteria andAddressNotBetween(String value1, String value2) { addCriterion("address not between", value1, value2, "address"); return (Criteria) this; } public Criteria andUserAgentIsNull() { addCriterion("user_agent is null"); return (Criteria) this; } public Criteria andUserAgentIsNotNull() { addCriterion("user_agent is not null"); return (Criteria) this; } public Criteria andUserAgentEqualTo(String value) { addCriterion("user_agent =", value, "userAgent"); return (Criteria) this; } public Criteria andUserAgentNotEqualTo(String value) { addCriterion("user_agent <>", value, "userAgent"); return (Criteria) this; } public Criteria andUserAgentGreaterThan(String value) { addCriterion("user_agent >", value, "userAgent"); return (Criteria) this; } public Criteria andUserAgentGreaterThanOrEqualTo(String value) { addCriterion("user_agent >=", value, "userAgent"); return (Criteria) this; } public Criteria andUserAgentLessThan(String value) { addCriterion("user_agent <", value, "userAgent"); return (Criteria) this; } public Criteria andUserAgentLessThanOrEqualTo(String value) { addCriterion("user_agent <=", value, "userAgent"); return (Criteria) this; } public Criteria andUserAgentLike(String value) { addCriterion("user_agent like", value, "userAgent"); return (Criteria) this; } public Criteria andUserAgentNotLike(String value) { addCriterion("user_agent not like", value, "userAgent"); return (Criteria) this; } public Criteria andUserAgentIn(List<String> values) { addCriterion("user_agent in", values, "userAgent"); return (Criteria) this; } public Criteria andUserAgentNotIn(List<String> values) { addCriterion("user_agent not in", values, "userAgent"); return (Criteria) this; } public Criteria andUserAgentBetween(String value1, String value2) { addCriterion("user_agent between", value1, value2, "userAgent"); return (Criteria) this; } public Criteria andUserAgentNotBetween(String value1, String value2) { addCriterion("user_agent not between", value1, value2, "userAgent"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/SmsHomeRecommendProduct.java
mall-mbg/src/main/java/com/macro/mall/model/SmsHomeRecommendProduct.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; public class SmsHomeRecommendProduct implements Serializable { private Long id; private Long productId; private String productName; private Integer recommendStatus; private Integer sort; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getProductId() { return productId; } public void setProductId(Long productId) { this.productId = productId; } public String getProductName() { return productName; } public void setProductName(String productName) { this.productName = productName; } public Integer getRecommendStatus() { return recommendStatus; } public void setRecommendStatus(Integer recommendStatus) { this.recommendStatus = recommendStatus; } public Integer getSort() { return sort; } public void setSort(Integer sort) { this.sort = sort; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", productId=").append(productId); sb.append(", productName=").append(productName); sb.append(", recommendStatus=").append(recommendStatus); sb.append(", sort=").append(sort); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/UmsResourceCategoryExample.java
mall-mbg/src/main/java/com/macro/mall/model/UmsResourceCategoryExample.java
package com.macro.mall.model; import java.util.ArrayList; import java.util.Date; import java.util.List; public class UmsResourceCategoryExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public UmsResourceCategoryExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andCreateTimeIsNull() { addCriterion("create_time is null"); return (Criteria) this; } public Criteria andCreateTimeIsNotNull() { addCriterion("create_time is not null"); return (Criteria) this; } public Criteria andCreateTimeEqualTo(Date value) { addCriterion("create_time =", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotEqualTo(Date value) { addCriterion("create_time <>", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeGreaterThan(Date value) { addCriterion("create_time >", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { addCriterion("create_time >=", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeLessThan(Date value) { addCriterion("create_time <", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeLessThanOrEqualTo(Date value) { addCriterion("create_time <=", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeIn(List<Date> values) { addCriterion("create_time in", values, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotIn(List<Date> values) { addCriterion("create_time not in", values, "createTime"); return (Criteria) this; } public Criteria andCreateTimeBetween(Date value1, Date value2) { addCriterion("create_time between", value1, value2, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotBetween(Date value1, Date value2) { addCriterion("create_time not between", value1, value2, "createTime"); return (Criteria) this; } public Criteria andNameIsNull() { addCriterion("name is null"); return (Criteria) this; } public Criteria andNameIsNotNull() { addCriterion("name is not null"); return (Criteria) this; } public Criteria andNameEqualTo(String value) { addCriterion("name =", value, "name"); return (Criteria) this; } public Criteria andNameNotEqualTo(String value) { addCriterion("name <>", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThan(String value) { addCriterion("name >", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThanOrEqualTo(String value) { addCriterion("name >=", value, "name"); return (Criteria) this; } public Criteria andNameLessThan(String value) { addCriterion("name <", value, "name"); return (Criteria) this; } public Criteria andNameLessThanOrEqualTo(String value) { addCriterion("name <=", value, "name"); return (Criteria) this; } public Criteria andNameLike(String value) { addCriterion("name like", value, "name"); return (Criteria) this; } public Criteria andNameNotLike(String value) { addCriterion("name not like", value, "name"); return (Criteria) this; } public Criteria andNameIn(List<String> values) { addCriterion("name in", values, "name"); return (Criteria) this; } public Criteria andNameNotIn(List<String> values) { addCriterion("name not in", values, "name"); return (Criteria) this; } public Criteria andNameBetween(String value1, String value2) { addCriterion("name between", value1, value2, "name"); return (Criteria) this; } public Criteria andNameNotBetween(String value1, String value2) { addCriterion("name not between", value1, value2, "name"); return (Criteria) this; } public Criteria andSortIsNull() { addCriterion("sort is null"); return (Criteria) this; } public Criteria andSortIsNotNull() { addCriterion("sort is not null"); return (Criteria) this; } public Criteria andSortEqualTo(Integer value) { addCriterion("sort =", value, "sort"); return (Criteria) this; } public Criteria andSortNotEqualTo(Integer value) { addCriterion("sort <>", value, "sort"); return (Criteria) this; } public Criteria andSortGreaterThan(Integer value) { addCriterion("sort >", value, "sort"); return (Criteria) this; } public Criteria andSortGreaterThanOrEqualTo(Integer value) { addCriterion("sort >=", value, "sort"); return (Criteria) this; } public Criteria andSortLessThan(Integer value) { addCriterion("sort <", value, "sort"); return (Criteria) this; } public Criteria andSortLessThanOrEqualTo(Integer value) { addCriterion("sort <=", value, "sort"); return (Criteria) this; } public Criteria andSortIn(List<Integer> values) { addCriterion("sort in", values, "sort"); return (Criteria) this; } public Criteria andSortNotIn(List<Integer> values) { addCriterion("sort not in", values, "sort"); return (Criteria) this; } public Criteria andSortBetween(Integer value1, Integer value2) { addCriterion("sort between", value1, value2, "sort"); return (Criteria) this; } public Criteria andSortNotBetween(Integer value1, Integer value2) { addCriterion("sort not between", value1, value2, "sort"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/UmsPermission.java
mall-mbg/src/main/java/com/macro/mall/model/UmsPermission.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.util.Date; public class UmsPermission implements Serializable { private Long id; @ApiModelProperty(value = "父级权限id") private Long pid; @ApiModelProperty(value = "名称") private String name; @ApiModelProperty(value = "权限值") private String value; @ApiModelProperty(value = "图标") private String icon; @ApiModelProperty(value = "权限类型:0->目录;1->菜单;2->按钮(接口绑定权限)") private Integer type; @ApiModelProperty(value = "前端资源路径") private String uri; @ApiModelProperty(value = "启用状态;0->禁用;1->启用") private Integer status; @ApiModelProperty(value = "创建时间") private Date createTime; @ApiModelProperty(value = "排序") private Integer sort; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getPid() { return pid; } public void setPid(Long pid) { this.pid = pid; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } public String getIcon() { return icon; } public void setIcon(String icon) { this.icon = icon; } public Integer getType() { return type; } public void setType(Integer type) { this.type = type; } public String getUri() { return uri; } public void setUri(String uri) { this.uri = uri; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Integer getSort() { return sort; } public void setSort(Integer sort) { this.sort = sort; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", pid=").append(pid); sb.append(", name=").append(name); sb.append(", value=").append(value); sb.append(", icon=").append(icon); sb.append(", type=").append(type); sb.append(", uri=").append(uri); sb.append(", status=").append(status); sb.append(", createTime=").append(createTime); sb.append(", sort=").append(sort); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/UmsMemberRuleSetting.java
mall-mbg/src/main/java/com/macro/mall/model/UmsMemberRuleSetting.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.math.BigDecimal; public class UmsMemberRuleSetting implements Serializable { private Long id; @ApiModelProperty(value = "连续签到天数") private Integer continueSignDay; @ApiModelProperty(value = "连续签到赠送数量") private Integer continueSignPoint; @ApiModelProperty(value = "每消费多少元获取1个点") private BigDecimal consumePerPoint; @ApiModelProperty(value = "最低获取点数的订单金额") private BigDecimal lowOrderAmount; @ApiModelProperty(value = "每笔订单最高获取点数") private Integer maxPointPerOrder; @ApiModelProperty(value = "类型:0->积分规则;1->成长值规则") private Integer type; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Integer getContinueSignDay() { return continueSignDay; } public void setContinueSignDay(Integer continueSignDay) { this.continueSignDay = continueSignDay; } public Integer getContinueSignPoint() { return continueSignPoint; } public void setContinueSignPoint(Integer continueSignPoint) { this.continueSignPoint = continueSignPoint; } public BigDecimal getConsumePerPoint() { return consumePerPoint; } public void setConsumePerPoint(BigDecimal consumePerPoint) { this.consumePerPoint = consumePerPoint; } public BigDecimal getLowOrderAmount() { return lowOrderAmount; } public void setLowOrderAmount(BigDecimal lowOrderAmount) { this.lowOrderAmount = lowOrderAmount; } public Integer getMaxPointPerOrder() { return maxPointPerOrder; } public void setMaxPointPerOrder(Integer maxPointPerOrder) { this.maxPointPerOrder = maxPointPerOrder; } public Integer getType() { return type; } public void setType(Integer type) { this.type = type; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", continueSignDay=").append(continueSignDay); sb.append(", continueSignPoint=").append(continueSignPoint); sb.append(", consumePerPoint=").append(consumePerPoint); sb.append(", lowOrderAmount=").append(lowOrderAmount); sb.append(", maxPointPerOrder=").append(maxPointPerOrder); sb.append(", type=").append(type); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/UmsAdminPermissionRelation.java
mall-mbg/src/main/java/com/macro/mall/model/UmsAdminPermissionRelation.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; public class UmsAdminPermissionRelation implements Serializable { private Long id; private Long adminId; private Long permissionId; private Integer type; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getAdminId() { return adminId; } public void setAdminId(Long adminId) { this.adminId = adminId; } public Long getPermissionId() { return permissionId; } public void setPermissionId(Long permissionId) { this.permissionId = permissionId; } public Integer getType() { return type; } public void setType(Integer type) { this.type = type; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", adminId=").append(adminId); sb.append(", permissionId=").append(permissionId); sb.append(", type=").append(type); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionLog.java
mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionLog.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.util.Date; public class SmsFlashPromotionLog implements Serializable { private Integer id; private Integer memberId; private Long productId; private String memberPhone; private String productName; @ApiModelProperty(value = "会员订阅时间") private Date subscribeTime; private Date sendTime; private static final long serialVersionUID = 1L; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Integer getMemberId() { return memberId; } public void setMemberId(Integer memberId) { this.memberId = memberId; } public Long getProductId() { return productId; } public void setProductId(Long productId) { this.productId = productId; } public String getMemberPhone() { return memberPhone; } public void setMemberPhone(String memberPhone) { this.memberPhone = memberPhone; } public String getProductName() { return productName; } public void setProductName(String productName) { this.productName = productName; } public Date getSubscribeTime() { return subscribeTime; } public void setSubscribeTime(Date subscribeTime) { this.subscribeTime = subscribeTime; } public Date getSendTime() { return sendTime; } public void setSendTime(Date sendTime) { this.sendTime = sendTime; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", memberId=").append(memberId); sb.append(", productId=").append(productId); sb.append(", memberPhone=").append(memberPhone); sb.append(", productName=").append(productName); sb.append(", subscribeTime=").append(subscribeTime); sb.append(", sendTime=").append(sendTime); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/PmsBrand.java
mall-mbg/src/main/java/com/macro/mall/model/PmsBrand.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; public class PmsBrand implements Serializable { private Long id; private String name; @ApiModelProperty(value = "首字母") private String firstLetter; private Integer sort; @ApiModelProperty(value = "是否为品牌制造商:0->不是;1->是") private Integer factoryStatus; private Integer showStatus; @ApiModelProperty(value = "产品数量") private Integer productCount; @ApiModelProperty(value = "产品评论数量") private Integer productCommentCount; @ApiModelProperty(value = "品牌logo") private String logo; @ApiModelProperty(value = "专区大图") private String bigPic; @ApiModelProperty(value = "品牌故事") private String brandStory; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getFirstLetter() { return firstLetter; } public void setFirstLetter(String firstLetter) { this.firstLetter = firstLetter; } public Integer getSort() { return sort; } public void setSort(Integer sort) { this.sort = sort; } public Integer getFactoryStatus() { return factoryStatus; } public void setFactoryStatus(Integer factoryStatus) { this.factoryStatus = factoryStatus; } public Integer getShowStatus() { return showStatus; } public void setShowStatus(Integer showStatus) { this.showStatus = showStatus; } public Integer getProductCount() { return productCount; } public void setProductCount(Integer productCount) { this.productCount = productCount; } public Integer getProductCommentCount() { return productCommentCount; } public void setProductCommentCount(Integer productCommentCount) { this.productCommentCount = productCommentCount; } public String getLogo() { return logo; } public void setLogo(String logo) { this.logo = logo; } public String getBigPic() { return bigPic; } public void setBigPic(String bigPic) { this.bigPic = bigPic; } public String getBrandStory() { return brandStory; } public void setBrandStory(String brandStory) { this.brandStory = brandStory; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", name=").append(name); sb.append(", firstLetter=").append(firstLetter); sb.append(", sort=").append(sort); sb.append(", factoryStatus=").append(factoryStatus); sb.append(", showStatus=").append(showStatus); sb.append(", productCount=").append(productCount); sb.append(", productCommentCount=").append(productCommentCount); sb.append(", logo=").append(logo); sb.append(", bigPic=").append(bigPic); sb.append(", brandStory=").append(brandStory); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/SmsHomeRecommendSubjectExample.java
mall-mbg/src/main/java/com/macro/mall/model/SmsHomeRecommendSubjectExample.java
package com.macro.mall.model; import java.util.ArrayList; import java.util.List; public class SmsHomeRecommendSubjectExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public SmsHomeRecommendSubjectExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andSubjectIdIsNull() { addCriterion("subject_id is null"); return (Criteria) this; } public Criteria andSubjectIdIsNotNull() { addCriterion("subject_id is not null"); return (Criteria) this; } public Criteria andSubjectIdEqualTo(Long value) { addCriterion("subject_id =", value, "subjectId"); return (Criteria) this; } public Criteria andSubjectIdNotEqualTo(Long value) { addCriterion("subject_id <>", value, "subjectId"); return (Criteria) this; } public Criteria andSubjectIdGreaterThan(Long value) { addCriterion("subject_id >", value, "subjectId"); return (Criteria) this; } public Criteria andSubjectIdGreaterThanOrEqualTo(Long value) { addCriterion("subject_id >=", value, "subjectId"); return (Criteria) this; } public Criteria andSubjectIdLessThan(Long value) { addCriterion("subject_id <", value, "subjectId"); return (Criteria) this; } public Criteria andSubjectIdLessThanOrEqualTo(Long value) { addCriterion("subject_id <=", value, "subjectId"); return (Criteria) this; } public Criteria andSubjectIdIn(List<Long> values) { addCriterion("subject_id in", values, "subjectId"); return (Criteria) this; } public Criteria andSubjectIdNotIn(List<Long> values) { addCriterion("subject_id not in", values, "subjectId"); return (Criteria) this; } public Criteria andSubjectIdBetween(Long value1, Long value2) { addCriterion("subject_id between", value1, value2, "subjectId"); return (Criteria) this; } public Criteria andSubjectIdNotBetween(Long value1, Long value2) { addCriterion("subject_id not between", value1, value2, "subjectId"); return (Criteria) this; } public Criteria andSubjectNameIsNull() { addCriterion("subject_name is null"); return (Criteria) this; } public Criteria andSubjectNameIsNotNull() { addCriterion("subject_name is not null"); return (Criteria) this; } public Criteria andSubjectNameEqualTo(String value) { addCriterion("subject_name =", value, "subjectName"); return (Criteria) this; } public Criteria andSubjectNameNotEqualTo(String value) { addCriterion("subject_name <>", value, "subjectName"); return (Criteria) this; } public Criteria andSubjectNameGreaterThan(String value) { addCriterion("subject_name >", value, "subjectName"); return (Criteria) this; } public Criteria andSubjectNameGreaterThanOrEqualTo(String value) { addCriterion("subject_name >=", value, "subjectName"); return (Criteria) this; } public Criteria andSubjectNameLessThan(String value) { addCriterion("subject_name <", value, "subjectName"); return (Criteria) this; } public Criteria andSubjectNameLessThanOrEqualTo(String value) { addCriterion("subject_name <=", value, "subjectName"); return (Criteria) this; } public Criteria andSubjectNameLike(String value) { addCriterion("subject_name like", value, "subjectName"); return (Criteria) this; } public Criteria andSubjectNameNotLike(String value) { addCriterion("subject_name not like", value, "subjectName"); return (Criteria) this; } public Criteria andSubjectNameIn(List<String> values) { addCriterion("subject_name in", values, "subjectName"); return (Criteria) this; } public Criteria andSubjectNameNotIn(List<String> values) { addCriterion("subject_name not in", values, "subjectName"); return (Criteria) this; } public Criteria andSubjectNameBetween(String value1, String value2) { addCriterion("subject_name between", value1, value2, "subjectName"); return (Criteria) this; } public Criteria andSubjectNameNotBetween(String value1, String value2) { addCriterion("subject_name not between", value1, value2, "subjectName"); return (Criteria) this; } public Criteria andRecommendStatusIsNull() { addCriterion("recommend_status is null"); return (Criteria) this; } public Criteria andRecommendStatusIsNotNull() { addCriterion("recommend_status is not null"); return (Criteria) this; } public Criteria andRecommendStatusEqualTo(Integer value) { addCriterion("recommend_status =", value, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusNotEqualTo(Integer value) { addCriterion("recommend_status <>", value, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusGreaterThan(Integer value) { addCriterion("recommend_status >", value, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusGreaterThanOrEqualTo(Integer value) { addCriterion("recommend_status >=", value, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusLessThan(Integer value) { addCriterion("recommend_status <", value, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusLessThanOrEqualTo(Integer value) { addCriterion("recommend_status <=", value, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusIn(List<Integer> values) { addCriterion("recommend_status in", values, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusNotIn(List<Integer> values) { addCriterion("recommend_status not in", values, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusBetween(Integer value1, Integer value2) { addCriterion("recommend_status between", value1, value2, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusNotBetween(Integer value1, Integer value2) { addCriterion("recommend_status not between", value1, value2, "recommendStatus"); return (Criteria) this; } public Criteria andSortIsNull() { addCriterion("sort is null"); return (Criteria) this; } public Criteria andSortIsNotNull() { addCriterion("sort is not null"); return (Criteria) this; } public Criteria andSortEqualTo(Integer value) { addCriterion("sort =", value, "sort"); return (Criteria) this; } public Criteria andSortNotEqualTo(Integer value) { addCriterion("sort <>", value, "sort"); return (Criteria) this; } public Criteria andSortGreaterThan(Integer value) { addCriterion("sort >", value, "sort"); return (Criteria) this; } public Criteria andSortGreaterThanOrEqualTo(Integer value) { addCriterion("sort >=", value, "sort"); return (Criteria) this; } public Criteria andSortLessThan(Integer value) { addCriterion("sort <", value, "sort"); return (Criteria) this; } public Criteria andSortLessThanOrEqualTo(Integer value) { addCriterion("sort <=", value, "sort"); return (Criteria) this; } public Criteria andSortIn(List<Integer> values) { addCriterion("sort in", values, "sort"); return (Criteria) this; } public Criteria andSortNotIn(List<Integer> values) { addCriterion("sort not in", values, "sort"); return (Criteria) this; } public Criteria andSortBetween(Integer value1, Integer value2) { addCriterion("sort between", value1, value2, "sort"); return (Criteria) this; } public Criteria andSortNotBetween(Integer value1, Integer value2) { addCriterion("sort not between", value1, value2, "sort"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/SmsCouponHistory.java
mall-mbg/src/main/java/com/macro/mall/model/SmsCouponHistory.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.util.Date; public class SmsCouponHistory implements Serializable { private Long id; private Long couponId; private Long memberId; private String couponCode; @ApiModelProperty(value = "领取人昵称") private String memberNickname; @ApiModelProperty(value = "获取类型:0->后台赠送;1->主动获取") private Integer getType; private Date createTime; @ApiModelProperty(value = "使用状态:0->未使用;1->已使用;2->已过期") private Integer useStatus; @ApiModelProperty(value = "使用时间") private Date useTime; @ApiModelProperty(value = "订单编号") private Long orderId; @ApiModelProperty(value = "订单号码") private String orderSn; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getCouponId() { return couponId; } public void setCouponId(Long couponId) { this.couponId = couponId; } public Long getMemberId() { return memberId; } public void setMemberId(Long memberId) { this.memberId = memberId; } public String getCouponCode() { return couponCode; } public void setCouponCode(String couponCode) { this.couponCode = couponCode; } public String getMemberNickname() { return memberNickname; } public void setMemberNickname(String memberNickname) { this.memberNickname = memberNickname; } public Integer getGetType() { return getType; } public void setGetType(Integer getType) { this.getType = getType; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Integer getUseStatus() { return useStatus; } public void setUseStatus(Integer useStatus) { this.useStatus = useStatus; } public Date getUseTime() { return useTime; } public void setUseTime(Date useTime) { this.useTime = useTime; } public Long getOrderId() { return orderId; } public void setOrderId(Long orderId) { this.orderId = orderId; } public String getOrderSn() { return orderSn; } public void setOrderSn(String orderSn) { this.orderSn = orderSn; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", couponId=").append(couponId); sb.append(", memberId=").append(memberId); sb.append(", couponCode=").append(couponCode); sb.append(", memberNickname=").append(memberNickname); sb.append(", getType=").append(getType); sb.append(", createTime=").append(createTime); sb.append(", useStatus=").append(useStatus); sb.append(", useTime=").append(useTime); sb.append(", orderId=").append(orderId); sb.append(", orderSn=").append(orderSn); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/PmsBrandExample.java
mall-mbg/src/main/java/com/macro/mall/model/PmsBrandExample.java
package com.macro.mall.model; import java.util.ArrayList; import java.util.List; public class PmsBrandExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public PmsBrandExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andNameIsNull() { addCriterion("name is null"); return (Criteria) this; } public Criteria andNameIsNotNull() { addCriterion("name is not null"); return (Criteria) this; } public Criteria andNameEqualTo(String value) { addCriterion("name =", value, "name"); return (Criteria) this; } public Criteria andNameNotEqualTo(String value) { addCriterion("name <>", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThan(String value) { addCriterion("name >", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThanOrEqualTo(String value) { addCriterion("name >=", value, "name"); return (Criteria) this; } public Criteria andNameLessThan(String value) { addCriterion("name <", value, "name"); return (Criteria) this; } public Criteria andNameLessThanOrEqualTo(String value) { addCriterion("name <=", value, "name"); return (Criteria) this; } public Criteria andNameLike(String value) { addCriterion("name like", value, "name"); return (Criteria) this; } public Criteria andNameNotLike(String value) { addCriterion("name not like", value, "name"); return (Criteria) this; } public Criteria andNameIn(List<String> values) { addCriterion("name in", values, "name"); return (Criteria) this; } public Criteria andNameNotIn(List<String> values) { addCriterion("name not in", values, "name"); return (Criteria) this; } public Criteria andNameBetween(String value1, String value2) { addCriterion("name between", value1, value2, "name"); return (Criteria) this; } public Criteria andNameNotBetween(String value1, String value2) { addCriterion("name not between", value1, value2, "name"); return (Criteria) this; } public Criteria andFirstLetterIsNull() { addCriterion("first_letter is null"); return (Criteria) this; } public Criteria andFirstLetterIsNotNull() { addCriterion("first_letter is not null"); return (Criteria) this; } public Criteria andFirstLetterEqualTo(String value) { addCriterion("first_letter =", value, "firstLetter"); return (Criteria) this; } public Criteria andFirstLetterNotEqualTo(String value) { addCriterion("first_letter <>", value, "firstLetter"); return (Criteria) this; } public Criteria andFirstLetterGreaterThan(String value) { addCriterion("first_letter >", value, "firstLetter"); return (Criteria) this; } public Criteria andFirstLetterGreaterThanOrEqualTo(String value) { addCriterion("first_letter >=", value, "firstLetter"); return (Criteria) this; } public Criteria andFirstLetterLessThan(String value) { addCriterion("first_letter <", value, "firstLetter"); return (Criteria) this; } public Criteria andFirstLetterLessThanOrEqualTo(String value) { addCriterion("first_letter <=", value, "firstLetter"); return (Criteria) this; } public Criteria andFirstLetterLike(String value) { addCriterion("first_letter like", value, "firstLetter"); return (Criteria) this; } public Criteria andFirstLetterNotLike(String value) { addCriterion("first_letter not like", value, "firstLetter"); return (Criteria) this; } public Criteria andFirstLetterIn(List<String> values) { addCriterion("first_letter in", values, "firstLetter"); return (Criteria) this; } public Criteria andFirstLetterNotIn(List<String> values) { addCriterion("first_letter not in", values, "firstLetter"); return (Criteria) this; } public Criteria andFirstLetterBetween(String value1, String value2) { addCriterion("first_letter between", value1, value2, "firstLetter"); return (Criteria) this; } public Criteria andFirstLetterNotBetween(String value1, String value2) { addCriterion("first_letter not between", value1, value2, "firstLetter"); return (Criteria) this; } public Criteria andSortIsNull() { addCriterion("sort is null"); return (Criteria) this; } public Criteria andSortIsNotNull() { addCriterion("sort is not null"); return (Criteria) this; } public Criteria andSortEqualTo(Integer value) { addCriterion("sort =", value, "sort"); return (Criteria) this; } public Criteria andSortNotEqualTo(Integer value) { addCriterion("sort <>", value, "sort"); return (Criteria) this; } public Criteria andSortGreaterThan(Integer value) { addCriterion("sort >", value, "sort"); return (Criteria) this; } public Criteria andSortGreaterThanOrEqualTo(Integer value) { addCriterion("sort >=", value, "sort"); return (Criteria) this; } public Criteria andSortLessThan(Integer value) { addCriterion("sort <", value, "sort"); return (Criteria) this; } public Criteria andSortLessThanOrEqualTo(Integer value) { addCriterion("sort <=", value, "sort"); return (Criteria) this; } public Criteria andSortIn(List<Integer> values) { addCriterion("sort in", values, "sort"); return (Criteria) this; } public Criteria andSortNotIn(List<Integer> values) { addCriterion("sort not in", values, "sort"); return (Criteria) this; } public Criteria andSortBetween(Integer value1, Integer value2) { addCriterion("sort between", value1, value2, "sort"); return (Criteria) this; } public Criteria andSortNotBetween(Integer value1, Integer value2) { addCriterion("sort not between", value1, value2, "sort"); return (Criteria) this; } public Criteria andFactoryStatusIsNull() { addCriterion("factory_status is null"); return (Criteria) this; } public Criteria andFactoryStatusIsNotNull() { addCriterion("factory_status is not null"); return (Criteria) this; } public Criteria andFactoryStatusEqualTo(Integer value) { addCriterion("factory_status =", value, "factoryStatus"); return (Criteria) this; } public Criteria andFactoryStatusNotEqualTo(Integer value) { addCriterion("factory_status <>", value, "factoryStatus"); return (Criteria) this; } public Criteria andFactoryStatusGreaterThan(Integer value) { addCriterion("factory_status >", value, "factoryStatus"); return (Criteria) this; } public Criteria andFactoryStatusGreaterThanOrEqualTo(Integer value) { addCriterion("factory_status >=", value, "factoryStatus"); return (Criteria) this; } public Criteria andFactoryStatusLessThan(Integer value) { addCriterion("factory_status <", value, "factoryStatus"); return (Criteria) this; } public Criteria andFactoryStatusLessThanOrEqualTo(Integer value) { addCriterion("factory_status <=", value, "factoryStatus"); return (Criteria) this; } public Criteria andFactoryStatusIn(List<Integer> values) { addCriterion("factory_status in", values, "factoryStatus"); return (Criteria) this; } public Criteria andFactoryStatusNotIn(List<Integer> values) { addCriterion("factory_status not in", values, "factoryStatus"); return (Criteria) this; } public Criteria andFactoryStatusBetween(Integer value1, Integer value2) { addCriterion("factory_status between", value1, value2, "factoryStatus"); return (Criteria) this; } public Criteria andFactoryStatusNotBetween(Integer value1, Integer value2) { addCriterion("factory_status not between", value1, value2, "factoryStatus"); return (Criteria) this; } public Criteria andShowStatusIsNull() { addCriterion("show_status is null"); return (Criteria) this; } public Criteria andShowStatusIsNotNull() { addCriterion("show_status is not null"); return (Criteria) this; } public Criteria andShowStatusEqualTo(Integer value) { addCriterion("show_status =", value, "showStatus"); return (Criteria) this; } public Criteria andShowStatusNotEqualTo(Integer value) { addCriterion("show_status <>", value, "showStatus"); return (Criteria) this; } public Criteria andShowStatusGreaterThan(Integer value) { addCriterion("show_status >", value, "showStatus"); return (Criteria) this; } public Criteria andShowStatusGreaterThanOrEqualTo(Integer value) { addCriterion("show_status >=", value, "showStatus"); return (Criteria) this; } public Criteria andShowStatusLessThan(Integer value) { addCriterion("show_status <", value, "showStatus"); return (Criteria) this; } public Criteria andShowStatusLessThanOrEqualTo(Integer value) { addCriterion("show_status <=", value, "showStatus"); return (Criteria) this; } public Criteria andShowStatusIn(List<Integer> values) { addCriterion("show_status in", values, "showStatus"); return (Criteria) this; } public Criteria andShowStatusNotIn(List<Integer> values) { addCriterion("show_status not in", values, "showStatus"); return (Criteria) this; } public Criteria andShowStatusBetween(Integer value1, Integer value2) { addCriterion("show_status between", value1, value2, "showStatus"); return (Criteria) this; } public Criteria andShowStatusNotBetween(Integer value1, Integer value2) { addCriterion("show_status not between", value1, value2, "showStatus"); return (Criteria) this; } public Criteria andProductCountIsNull() { addCriterion("product_count is null"); return (Criteria) this; } public Criteria andProductCountIsNotNull() { addCriterion("product_count is not null"); return (Criteria) this; } public Criteria andProductCountEqualTo(Integer value) { addCriterion("product_count =", value, "productCount"); return (Criteria) this; } public Criteria andProductCountNotEqualTo(Integer value) { addCriterion("product_count <>", value, "productCount"); return (Criteria) this; } public Criteria andProductCountGreaterThan(Integer value) { addCriterion("product_count >", value, "productCount"); return (Criteria) this; } public Criteria andProductCountGreaterThanOrEqualTo(Integer value) { addCriterion("product_count >=", value, "productCount"); return (Criteria) this; } public Criteria andProductCountLessThan(Integer value) { addCriterion("product_count <", value, "productCount"); return (Criteria) this; } public Criteria andProductCountLessThanOrEqualTo(Integer value) { addCriterion("product_count <=", value, "productCount"); return (Criteria) this; } public Criteria andProductCountIn(List<Integer> values) { addCriterion("product_count in", values, "productCount"); return (Criteria) this; } public Criteria andProductCountNotIn(List<Integer> values) { addCriterion("product_count not in", values, "productCount"); return (Criteria) this; } public Criteria andProductCountBetween(Integer value1, Integer value2) { addCriterion("product_count between", value1, value2, "productCount"); return (Criteria) this; } public Criteria andProductCountNotBetween(Integer value1, Integer value2) { addCriterion("product_count not between", value1, value2, "productCount"); return (Criteria) this; } public Criteria andProductCommentCountIsNull() { addCriterion("product_comment_count is null"); return (Criteria) this; } public Criteria andProductCommentCountIsNotNull() { addCriterion("product_comment_count is not null"); return (Criteria) this; } public Criteria andProductCommentCountEqualTo(Integer value) { addCriterion("product_comment_count =", value, "productCommentCount"); return (Criteria) this; } public Criteria andProductCommentCountNotEqualTo(Integer value) { addCriterion("product_comment_count <>", value, "productCommentCount"); return (Criteria) this; } public Criteria andProductCommentCountGreaterThan(Integer value) { addCriterion("product_comment_count >", value, "productCommentCount"); return (Criteria) this; } public Criteria andProductCommentCountGreaterThanOrEqualTo(Integer value) { addCriterion("product_comment_count >=", value, "productCommentCount"); return (Criteria) this; } public Criteria andProductCommentCountLessThan(Integer value) { addCriterion("product_comment_count <", value, "productCommentCount"); return (Criteria) this; } public Criteria andProductCommentCountLessThanOrEqualTo(Integer value) { addCriterion("product_comment_count <=", value, "productCommentCount"); return (Criteria) this; } public Criteria andProductCommentCountIn(List<Integer> values) { addCriterion("product_comment_count in", values, "productCommentCount"); return (Criteria) this; } public Criteria andProductCommentCountNotIn(List<Integer> values) { addCriterion("product_comment_count not in", values, "productCommentCount"); return (Criteria) this; } public Criteria andProductCommentCountBetween(Integer value1, Integer value2) { addCriterion("product_comment_count between", value1, value2, "productCommentCount"); return (Criteria) this; } public Criteria andProductCommentCountNotBetween(Integer value1, Integer value2) { addCriterion("product_comment_count not between", value1, value2, "productCommentCount"); return (Criteria) this; } public Criteria andLogoIsNull() { addCriterion("logo is null"); return (Criteria) this; } public Criteria andLogoIsNotNull() { addCriterion("logo is not null"); return (Criteria) this; } public Criteria andLogoEqualTo(String value) { addCriterion("logo =", value, "logo"); return (Criteria) this; } public Criteria andLogoNotEqualTo(String value) { addCriterion("logo <>", value, "logo"); return (Criteria) this; } public Criteria andLogoGreaterThan(String value) { addCriterion("logo >", value, "logo"); return (Criteria) this; } public Criteria andLogoGreaterThanOrEqualTo(String value) { addCriterion("logo >=", value, "logo"); return (Criteria) this; } public Criteria andLogoLessThan(String value) { addCriterion("logo <", value, "logo"); return (Criteria) this; } public Criteria andLogoLessThanOrEqualTo(String value) { addCriterion("logo <=", value, "logo"); return (Criteria) this; } public Criteria andLogoLike(String value) { addCriterion("logo like", value, "logo"); return (Criteria) this; } public Criteria andLogoNotLike(String value) { addCriterion("logo not like", value, "logo"); return (Criteria) this; } public Criteria andLogoIn(List<String> values) { addCriterion("logo in", values, "logo"); return (Criteria) this; } public Criteria andLogoNotIn(List<String> values) { addCriterion("logo not in", values, "logo"); return (Criteria) this; } public Criteria andLogoBetween(String value1, String value2) { addCriterion("logo between", value1, value2, "logo"); return (Criteria) this; } public Criteria andLogoNotBetween(String value1, String value2) { addCriterion("logo not between", value1, value2, "logo"); return (Criteria) this; } public Criteria andBigPicIsNull() { addCriterion("big_pic is null"); return (Criteria) this; } public Criteria andBigPicIsNotNull() { addCriterion("big_pic is not null"); return (Criteria) this; } public Criteria andBigPicEqualTo(String value) { addCriterion("big_pic =", value, "bigPic"); return (Criteria) this; } public Criteria andBigPicNotEqualTo(String value) { addCriterion("big_pic <>", value, "bigPic"); return (Criteria) this; } public Criteria andBigPicGreaterThan(String value) { addCriterion("big_pic >", value, "bigPic"); return (Criteria) this; } public Criteria andBigPicGreaterThanOrEqualTo(String value) { addCriterion("big_pic >=", value, "bigPic"); return (Criteria) this; } public Criteria andBigPicLessThan(String value) { addCriterion("big_pic <", value, "bigPic"); return (Criteria) this; } public Criteria andBigPicLessThanOrEqualTo(String value) { addCriterion("big_pic <=", value, "bigPic"); return (Criteria) this; } public Criteria andBigPicLike(String value) { addCriterion("big_pic like", value, "bigPic"); return (Criteria) this; } public Criteria andBigPicNotLike(String value) { addCriterion("big_pic not like", value, "bigPic"); return (Criteria) this; } public Criteria andBigPicIn(List<String> values) { addCriterion("big_pic in", values, "bigPic"); return (Criteria) this; } public Criteria andBigPicNotIn(List<String> values) { addCriterion("big_pic not in", values, "bigPic"); return (Criteria) this; } public Criteria andBigPicBetween(String value1, String value2) { addCriterion("big_pic between", value1, value2, "bigPic"); return (Criteria) this; } public Criteria andBigPicNotBetween(String value1, String value2) { addCriterion("big_pic not between", value1, value2, "bigPic"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/OmsOrderExample.java
mall-mbg/src/main/java/com/macro/mall/model/OmsOrderExample.java
package com.macro.mall.model; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Date; import java.util.List; public class OmsOrderExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public OmsOrderExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andMemberIdIsNull() { addCriterion("member_id is null"); return (Criteria) this; } public Criteria andMemberIdIsNotNull() { addCriterion("member_id is not null"); return (Criteria) this; } public Criteria andMemberIdEqualTo(Long value) { addCriterion("member_id =", value, "memberId"); return (Criteria) this; } public Criteria andMemberIdNotEqualTo(Long value) { addCriterion("member_id <>", value, "memberId"); return (Criteria) this; } public Criteria andMemberIdGreaterThan(Long value) { addCriterion("member_id >", value, "memberId"); return (Criteria) this; } public Criteria andMemberIdGreaterThanOrEqualTo(Long value) { addCriterion("member_id >=", value, "memberId"); return (Criteria) this; } public Criteria andMemberIdLessThan(Long value) { addCriterion("member_id <", value, "memberId"); return (Criteria) this; } public Criteria andMemberIdLessThanOrEqualTo(Long value) { addCriterion("member_id <=", value, "memberId"); return (Criteria) this; } public Criteria andMemberIdIn(List<Long> values) { addCriterion("member_id in", values, "memberId"); return (Criteria) this; } public Criteria andMemberIdNotIn(List<Long> values) { addCriterion("member_id not in", values, "memberId"); return (Criteria) this; } public Criteria andMemberIdBetween(Long value1, Long value2) { addCriterion("member_id between", value1, value2, "memberId"); return (Criteria) this; } public Criteria andMemberIdNotBetween(Long value1, Long value2) { addCriterion("member_id not between", value1, value2, "memberId"); return (Criteria) this; } public Criteria andCouponIdIsNull() { addCriterion("coupon_id is null"); return (Criteria) this; } public Criteria andCouponIdIsNotNull() { addCriterion("coupon_id is not null"); return (Criteria) this; } public Criteria andCouponIdEqualTo(Long value) { addCriterion("coupon_id =", value, "couponId"); return (Criteria) this; } public Criteria andCouponIdNotEqualTo(Long value) { addCriterion("coupon_id <>", value, "couponId"); return (Criteria) this; } public Criteria andCouponIdGreaterThan(Long value) { addCriterion("coupon_id >", value, "couponId"); return (Criteria) this; } public Criteria andCouponIdGreaterThanOrEqualTo(Long value) { addCriterion("coupon_id >=", value, "couponId"); return (Criteria) this; } public Criteria andCouponIdLessThan(Long value) { addCriterion("coupon_id <", value, "couponId"); return (Criteria) this; } public Criteria andCouponIdLessThanOrEqualTo(Long value) { addCriterion("coupon_id <=", value, "couponId"); return (Criteria) this; } public Criteria andCouponIdIn(List<Long> values) { addCriterion("coupon_id in", values, "couponId"); return (Criteria) this; } public Criteria andCouponIdNotIn(List<Long> values) { addCriterion("coupon_id not in", values, "couponId"); return (Criteria) this; } public Criteria andCouponIdBetween(Long value1, Long value2) { addCriterion("coupon_id between", value1, value2, "couponId"); return (Criteria) this; } public Criteria andCouponIdNotBetween(Long value1, Long value2) { addCriterion("coupon_id not between", value1, value2, "couponId"); return (Criteria) this; } public Criteria andOrderSnIsNull() { addCriterion("order_sn is null"); return (Criteria) this; } public Criteria andOrderSnIsNotNull() { addCriterion("order_sn is not null"); return (Criteria) this; } public Criteria andOrderSnEqualTo(String value) { addCriterion("order_sn =", value, "orderSn"); return (Criteria) this; } public Criteria andOrderSnNotEqualTo(String value) { addCriterion("order_sn <>", value, "orderSn"); return (Criteria) this; } public Criteria andOrderSnGreaterThan(String value) { addCriterion("order_sn >", value, "orderSn"); return (Criteria) this; } public Criteria andOrderSnGreaterThanOrEqualTo(String value) { addCriterion("order_sn >=", value, "orderSn"); return (Criteria) this; } public Criteria andOrderSnLessThan(String value) { addCriterion("order_sn <", value, "orderSn"); return (Criteria) this; } public Criteria andOrderSnLessThanOrEqualTo(String value) { addCriterion("order_sn <=", value, "orderSn"); return (Criteria) this; } public Criteria andOrderSnLike(String value) { addCriterion("order_sn like", value, "orderSn"); return (Criteria) this; } public Criteria andOrderSnNotLike(String value) { addCriterion("order_sn not like", value, "orderSn"); return (Criteria) this; } public Criteria andOrderSnIn(List<String> values) { addCriterion("order_sn in", values, "orderSn"); return (Criteria) this; } public Criteria andOrderSnNotIn(List<String> values) { addCriterion("order_sn not in", values, "orderSn"); return (Criteria) this; } public Criteria andOrderSnBetween(String value1, String value2) { addCriterion("order_sn between", value1, value2, "orderSn"); return (Criteria) this; } public Criteria andOrderSnNotBetween(String value1, String value2) { addCriterion("order_sn not between", value1, value2, "orderSn"); return (Criteria) this; } public Criteria andCreateTimeIsNull() { addCriterion("create_time is null"); return (Criteria) this; } public Criteria andCreateTimeIsNotNull() { addCriterion("create_time is not null"); return (Criteria) this; } public Criteria andCreateTimeEqualTo(Date value) { addCriterion("create_time =", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotEqualTo(Date value) { addCriterion("create_time <>", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeGreaterThan(Date value) { addCriterion("create_time >", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { addCriterion("create_time >=", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeLessThan(Date value) { addCriterion("create_time <", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeLessThanOrEqualTo(Date value) { addCriterion("create_time <=", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeIn(List<Date> values) { addCriterion("create_time in", values, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotIn(List<Date> values) { addCriterion("create_time not in", values, "createTime"); return (Criteria) this; } public Criteria andCreateTimeBetween(Date value1, Date value2) { addCriterion("create_time between", value1, value2, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotBetween(Date value1, Date value2) { addCriterion("create_time not between", value1, value2, "createTime"); return (Criteria) this; } public Criteria andMemberUsernameIsNull() { addCriterion("member_username is null"); return (Criteria) this; } public Criteria andMemberUsernameIsNotNull() { addCriterion("member_username is not null"); return (Criteria) this; } public Criteria andMemberUsernameEqualTo(String value) { addCriterion("member_username =", value, "memberUsername"); return (Criteria) this; } public Criteria andMemberUsernameNotEqualTo(String value) { addCriterion("member_username <>", value, "memberUsername"); return (Criteria) this; } public Criteria andMemberUsernameGreaterThan(String value) { addCriterion("member_username >", value, "memberUsername"); return (Criteria) this; } public Criteria andMemberUsernameGreaterThanOrEqualTo(String value) { addCriterion("member_username >=", value, "memberUsername"); return (Criteria) this; } public Criteria andMemberUsernameLessThan(String value) { addCriterion("member_username <", value, "memberUsername"); return (Criteria) this; } public Criteria andMemberUsernameLessThanOrEqualTo(String value) { addCriterion("member_username <=", value, "memberUsername"); return (Criteria) this; } public Criteria andMemberUsernameLike(String value) { addCriterion("member_username like", value, "memberUsername"); return (Criteria) this; } public Criteria andMemberUsernameNotLike(String value) { addCriterion("member_username not like", value, "memberUsername"); return (Criteria) this; } public Criteria andMemberUsernameIn(List<String> values) { addCriterion("member_username in", values, "memberUsername"); return (Criteria) this; } public Criteria andMemberUsernameNotIn(List<String> values) { addCriterion("member_username not in", values, "memberUsername"); return (Criteria) this; } public Criteria andMemberUsernameBetween(String value1, String value2) { addCriterion("member_username between", value1, value2, "memberUsername"); return (Criteria) this; } public Criteria andMemberUsernameNotBetween(String value1, String value2) { addCriterion("member_username not between", value1, value2, "memberUsername"); return (Criteria) this; } public Criteria andTotalAmountIsNull() { addCriterion("total_amount is null"); return (Criteria) this; } public Criteria andTotalAmountIsNotNull() { addCriterion("total_amount is not null"); return (Criteria) this; } public Criteria andTotalAmountEqualTo(BigDecimal value) { addCriterion("total_amount =", value, "totalAmount"); return (Criteria) this; } public Criteria andTotalAmountNotEqualTo(BigDecimal value) { addCriterion("total_amount <>", value, "totalAmount"); return (Criteria) this; } public Criteria andTotalAmountGreaterThan(BigDecimal value) { addCriterion("total_amount >", value, "totalAmount"); return (Criteria) this; } public Criteria andTotalAmountGreaterThanOrEqualTo(BigDecimal value) { addCriterion("total_amount >=", value, "totalAmount"); return (Criteria) this; } public Criteria andTotalAmountLessThan(BigDecimal value) { addCriterion("total_amount <", value, "totalAmount"); return (Criteria) this; } public Criteria andTotalAmountLessThanOrEqualTo(BigDecimal value) { addCriterion("total_amount <=", value, "totalAmount"); return (Criteria) this; } public Criteria andTotalAmountIn(List<BigDecimal> values) { addCriterion("total_amount in", values, "totalAmount"); return (Criteria) this; } public Criteria andTotalAmountNotIn(List<BigDecimal> values) { addCriterion("total_amount not in", values, "totalAmount"); return (Criteria) this; } public Criteria andTotalAmountBetween(BigDecimal value1, BigDecimal value2) { addCriterion("total_amount between", value1, value2, "totalAmount"); return (Criteria) this; } public Criteria andTotalAmountNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("total_amount not between", value1, value2, "totalAmount"); return (Criteria) this; } public Criteria andPayAmountIsNull() { addCriterion("pay_amount is null"); return (Criteria) this; } public Criteria andPayAmountIsNotNull() { addCriterion("pay_amount is not null"); return (Criteria) this; } public Criteria andPayAmountEqualTo(BigDecimal value) { addCriterion("pay_amount =", value, "payAmount"); return (Criteria) this; } public Criteria andPayAmountNotEqualTo(BigDecimal value) { addCriterion("pay_amount <>", value, "payAmount"); return (Criteria) this; } public Criteria andPayAmountGreaterThan(BigDecimal value) { addCriterion("pay_amount >", value, "payAmount"); return (Criteria) this; } public Criteria andPayAmountGreaterThanOrEqualTo(BigDecimal value) { addCriterion("pay_amount >=", value, "payAmount"); return (Criteria) this; } public Criteria andPayAmountLessThan(BigDecimal value) { addCriterion("pay_amount <", value, "payAmount"); return (Criteria) this; } public Criteria andPayAmountLessThanOrEqualTo(BigDecimal value) { addCriterion("pay_amount <=", value, "payAmount"); return (Criteria) this; } public Criteria andPayAmountIn(List<BigDecimal> values) { addCriterion("pay_amount in", values, "payAmount"); return (Criteria) this; } public Criteria andPayAmountNotIn(List<BigDecimal> values) { addCriterion("pay_amount not in", values, "payAmount"); return (Criteria) this; } public Criteria andPayAmountBetween(BigDecimal value1, BigDecimal value2) { addCriterion("pay_amount between", value1, value2, "payAmount"); return (Criteria) this; } public Criteria andPayAmountNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("pay_amount not between", value1, value2, "payAmount"); return (Criteria) this; } public Criteria andFreightAmountIsNull() { addCriterion("freight_amount is null"); return (Criteria) this; } public Criteria andFreightAmountIsNotNull() { addCriterion("freight_amount is not null"); return (Criteria) this; } public Criteria andFreightAmountEqualTo(BigDecimal value) { addCriterion("freight_amount =", value, "freightAmount"); return (Criteria) this; } public Criteria andFreightAmountNotEqualTo(BigDecimal value) { addCriterion("freight_amount <>", value, "freightAmount"); return (Criteria) this; } public Criteria andFreightAmountGreaterThan(BigDecimal value) { addCriterion("freight_amount >", value, "freightAmount"); return (Criteria) this; } public Criteria andFreightAmountGreaterThanOrEqualTo(BigDecimal value) { addCriterion("freight_amount >=", value, "freightAmount"); return (Criteria) this; } public Criteria andFreightAmountLessThan(BigDecimal value) { addCriterion("freight_amount <", value, "freightAmount"); return (Criteria) this; } public Criteria andFreightAmountLessThanOrEqualTo(BigDecimal value) { addCriterion("freight_amount <=", value, "freightAmount"); return (Criteria) this; } public Criteria andFreightAmountIn(List<BigDecimal> values) { addCriterion("freight_amount in", values, "freightAmount"); return (Criteria) this; } public Criteria andFreightAmountNotIn(List<BigDecimal> values) { addCriterion("freight_amount not in", values, "freightAmount"); return (Criteria) this; } public Criteria andFreightAmountBetween(BigDecimal value1, BigDecimal value2) { addCriterion("freight_amount between", value1, value2, "freightAmount"); return (Criteria) this; } public Criteria andFreightAmountNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("freight_amount not between", value1, value2, "freightAmount"); return (Criteria) this; } public Criteria andPromotionAmountIsNull() { addCriterion("promotion_amount is null"); return (Criteria) this; } public Criteria andPromotionAmountIsNotNull() { addCriterion("promotion_amount is not null"); return (Criteria) this; } public Criteria andPromotionAmountEqualTo(BigDecimal value) { addCriterion("promotion_amount =", value, "promotionAmount"); return (Criteria) this; } public Criteria andPromotionAmountNotEqualTo(BigDecimal value) { addCriterion("promotion_amount <>", value, "promotionAmount"); return (Criteria) this; } public Criteria andPromotionAmountGreaterThan(BigDecimal value) { addCriterion("promotion_amount >", value, "promotionAmount"); return (Criteria) this; } public Criteria andPromotionAmountGreaterThanOrEqualTo(BigDecimal value) { addCriterion("promotion_amount >=", value, "promotionAmount"); return (Criteria) this; } public Criteria andPromotionAmountLessThan(BigDecimal value) { addCriterion("promotion_amount <", value, "promotionAmount"); return (Criteria) this; } public Criteria andPromotionAmountLessThanOrEqualTo(BigDecimal value) { addCriterion("promotion_amount <=", value, "promotionAmount"); return (Criteria) this; } public Criteria andPromotionAmountIn(List<BigDecimal> values) { addCriterion("promotion_amount in", values, "promotionAmount"); return (Criteria) this; } public Criteria andPromotionAmountNotIn(List<BigDecimal> values) { addCriterion("promotion_amount not in", values, "promotionAmount"); return (Criteria) this; } public Criteria andPromotionAmountBetween(BigDecimal value1, BigDecimal value2) { addCriterion("promotion_amount between", value1, value2, "promotionAmount"); return (Criteria) this; } public Criteria andPromotionAmountNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("promotion_amount not between", value1, value2, "promotionAmount"); return (Criteria) this; } public Criteria andIntegrationAmountIsNull() { addCriterion("integration_amount is null"); return (Criteria) this; } public Criteria andIntegrationAmountIsNotNull() { addCriterion("integration_amount is not null"); return (Criteria) this; } public Criteria andIntegrationAmountEqualTo(BigDecimal value) { addCriterion("integration_amount =", value, "integrationAmount"); return (Criteria) this; } public Criteria andIntegrationAmountNotEqualTo(BigDecimal value) { addCriterion("integration_amount <>", value, "integrationAmount"); return (Criteria) this; } public Criteria andIntegrationAmountGreaterThan(BigDecimal value) { addCriterion("integration_amount >", value, "integrationAmount"); return (Criteria) this; } public Criteria andIntegrationAmountGreaterThanOrEqualTo(BigDecimal value) { addCriterion("integration_amount >=", value, "integrationAmount"); return (Criteria) this; } public Criteria andIntegrationAmountLessThan(BigDecimal value) { addCriterion("integration_amount <", value, "integrationAmount"); return (Criteria) this; } public Criteria andIntegrationAmountLessThanOrEqualTo(BigDecimal value) { addCriterion("integration_amount <=", value, "integrationAmount"); return (Criteria) this; } public Criteria andIntegrationAmountIn(List<BigDecimal> values) { addCriterion("integration_amount in", values, "integrationAmount"); return (Criteria) this; } public Criteria andIntegrationAmountNotIn(List<BigDecimal> values) { addCriterion("integration_amount not in", values, "integrationAmount"); return (Criteria) this; } public Criteria andIntegrationAmountBetween(BigDecimal value1, BigDecimal value2) { addCriterion("integration_amount between", value1, value2, "integrationAmount"); return (Criteria) this; } public Criteria andIntegrationAmountNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("integration_amount not between", value1, value2, "integrationAmount"); return (Criteria) this; } public Criteria andCouponAmountIsNull() { addCriterion("coupon_amount is null"); return (Criteria) this; } public Criteria andCouponAmountIsNotNull() { addCriterion("coupon_amount is not null"); return (Criteria) this; } public Criteria andCouponAmountEqualTo(BigDecimal value) { addCriterion("coupon_amount =", value, "couponAmount"); return (Criteria) this; } public Criteria andCouponAmountNotEqualTo(BigDecimal value) { addCriterion("coupon_amount <>", value, "couponAmount"); return (Criteria) this; } public Criteria andCouponAmountGreaterThan(BigDecimal value) { addCriterion("coupon_amount >", value, "couponAmount"); return (Criteria) this; } public Criteria andCouponAmountGreaterThanOrEqualTo(BigDecimal value) { addCriterion("coupon_amount >=", value, "couponAmount"); return (Criteria) this; } public Criteria andCouponAmountLessThan(BigDecimal value) { addCriterion("coupon_amount <", value, "couponAmount"); return (Criteria) this; } public Criteria andCouponAmountLessThanOrEqualTo(BigDecimal value) { addCriterion("coupon_amount <=", value, "couponAmount"); return (Criteria) this; } public Criteria andCouponAmountIn(List<BigDecimal> values) { addCriterion("coupon_amount in", values, "couponAmount"); return (Criteria) this; } public Criteria andCouponAmountNotIn(List<BigDecimal> values) { addCriterion("coupon_amount not in", values, "couponAmount"); return (Criteria) this; } public Criteria andCouponAmountBetween(BigDecimal value1, BigDecimal value2) { addCriterion("coupon_amount between", value1, value2, "couponAmount"); return (Criteria) this; } public Criteria andCouponAmountNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("coupon_amount not between", value1, value2, "couponAmount"); return (Criteria) this; } public Criteria andDiscountAmountIsNull() { addCriterion("discount_amount is null"); return (Criteria) this; } public Criteria andDiscountAmountIsNotNull() { addCriterion("discount_amount is not null"); return (Criteria) this; } public Criteria andDiscountAmountEqualTo(BigDecimal value) { addCriterion("discount_amount =", value, "discountAmount"); return (Criteria) this; } public Criteria andDiscountAmountNotEqualTo(BigDecimal value) { addCriterion("discount_amount <>", value, "discountAmount"); return (Criteria) this; } public Criteria andDiscountAmountGreaterThan(BigDecimal value) { addCriterion("discount_amount >", value, "discountAmount"); return (Criteria) this; } public Criteria andDiscountAmountGreaterThanOrEqualTo(BigDecimal value) { addCriterion("discount_amount >=", value, "discountAmount"); return (Criteria) this; } public Criteria andDiscountAmountLessThan(BigDecimal value) { addCriterion("discount_amount <", value, "discountAmount"); return (Criteria) this; } public Criteria andDiscountAmountLessThanOrEqualTo(BigDecimal value) { addCriterion("discount_amount <=", value, "discountAmount"); return (Criteria) this; } public Criteria andDiscountAmountIn(List<BigDecimal> values) { addCriterion("discount_amount in", values, "discountAmount"); return (Criteria) this; } public Criteria andDiscountAmountNotIn(List<BigDecimal> values) { addCriterion("discount_amount not in", values, "discountAmount"); return (Criteria) this; } public Criteria andDiscountAmountBetween(BigDecimal value1, BigDecimal value2) { addCriterion("discount_amount between", value1, value2, "discountAmount"); return (Criteria) this; } public Criteria andDiscountAmountNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("discount_amount not between", value1, value2, "discountAmount"); return (Criteria) this; } public Criteria andPayTypeIsNull() { addCriterion("pay_type is null"); return (Criteria) this; } public Criteria andPayTypeIsNotNull() { addCriterion("pay_type is not null"); return (Criteria) this; } public Criteria andPayTypeEqualTo(Integer value) { addCriterion("pay_type =", value, "payType"); return (Criteria) this; } public Criteria andPayTypeNotEqualTo(Integer value) { addCriterion("pay_type <>", value, "payType"); return (Criteria) this; } public Criteria andPayTypeGreaterThan(Integer value) { addCriterion("pay_type >", value, "payType"); return (Criteria) this; } public Criteria andPayTypeGreaterThanOrEqualTo(Integer value) { addCriterion("pay_type >=", value, "payType");
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
true
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/OmsOrderReturnReason.java
mall-mbg/src/main/java/com/macro/mall/model/OmsOrderReturnReason.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.util.Date; public class OmsOrderReturnReason implements Serializable { private Long id; @ApiModelProperty(value = "退货类型") private String name; private Integer sort; @ApiModelProperty(value = "状态:0->不启用;1->启用") private Integer status; @ApiModelProperty(value = "添加时间") private Date createTime; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Integer getSort() { return sort; } public void setSort(Integer sort) { this.sort = sort; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", name=").append(name); sb.append(", sort=").append(sort); sb.append(", status=").append(status); sb.append(", createTime=").append(createTime); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/UmsMemberMemberTagRelation.java
mall-mbg/src/main/java/com/macro/mall/model/UmsMemberMemberTagRelation.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; public class UmsMemberMemberTagRelation implements Serializable { private Long id; private Long memberId; private Long tagId; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getMemberId() { return memberId; } public void setMemberId(Long memberId) { this.memberId = memberId; } public Long getTagId() { return tagId; } public void setTagId(Long tagId) { this.tagId = tagId; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", memberId=").append(memberId); sb.append(", tagId=").append(tagId); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/PmsCommentReplayExample.java
mall-mbg/src/main/java/com/macro/mall/model/PmsCommentReplayExample.java
package com.macro.mall.model; import java.util.ArrayList; import java.util.Date; import java.util.List; public class PmsCommentReplayExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public PmsCommentReplayExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andCommentIdIsNull() { addCriterion("comment_id is null"); return (Criteria) this; } public Criteria andCommentIdIsNotNull() { addCriterion("comment_id is not null"); return (Criteria) this; } public Criteria andCommentIdEqualTo(Long value) { addCriterion("comment_id =", value, "commentId"); return (Criteria) this; } public Criteria andCommentIdNotEqualTo(Long value) { addCriterion("comment_id <>", value, "commentId"); return (Criteria) this; } public Criteria andCommentIdGreaterThan(Long value) { addCriterion("comment_id >", value, "commentId"); return (Criteria) this; } public Criteria andCommentIdGreaterThanOrEqualTo(Long value) { addCriterion("comment_id >=", value, "commentId"); return (Criteria) this; } public Criteria andCommentIdLessThan(Long value) { addCriterion("comment_id <", value, "commentId"); return (Criteria) this; } public Criteria andCommentIdLessThanOrEqualTo(Long value) { addCriterion("comment_id <=", value, "commentId"); return (Criteria) this; } public Criteria andCommentIdIn(List<Long> values) { addCriterion("comment_id in", values, "commentId"); return (Criteria) this; } public Criteria andCommentIdNotIn(List<Long> values) { addCriterion("comment_id not in", values, "commentId"); return (Criteria) this; } public Criteria andCommentIdBetween(Long value1, Long value2) { addCriterion("comment_id between", value1, value2, "commentId"); return (Criteria) this; } public Criteria andCommentIdNotBetween(Long value1, Long value2) { addCriterion("comment_id not between", value1, value2, "commentId"); return (Criteria) this; } public Criteria andMemberNickNameIsNull() { addCriterion("member_nick_name is null"); return (Criteria) this; } public Criteria andMemberNickNameIsNotNull() { addCriterion("member_nick_name is not null"); return (Criteria) this; } public Criteria andMemberNickNameEqualTo(String value) { addCriterion("member_nick_name =", value, "memberNickName"); return (Criteria) this; } public Criteria andMemberNickNameNotEqualTo(String value) { addCriterion("member_nick_name <>", value, "memberNickName"); return (Criteria) this; } public Criteria andMemberNickNameGreaterThan(String value) { addCriterion("member_nick_name >", value, "memberNickName"); return (Criteria) this; } public Criteria andMemberNickNameGreaterThanOrEqualTo(String value) { addCriterion("member_nick_name >=", value, "memberNickName"); return (Criteria) this; } public Criteria andMemberNickNameLessThan(String value) { addCriterion("member_nick_name <", value, "memberNickName"); return (Criteria) this; } public Criteria andMemberNickNameLessThanOrEqualTo(String value) { addCriterion("member_nick_name <=", value, "memberNickName"); return (Criteria) this; } public Criteria andMemberNickNameLike(String value) { addCriterion("member_nick_name like", value, "memberNickName"); return (Criteria) this; } public Criteria andMemberNickNameNotLike(String value) { addCriterion("member_nick_name not like", value, "memberNickName"); return (Criteria) this; } public Criteria andMemberNickNameIn(List<String> values) { addCriterion("member_nick_name in", values, "memberNickName"); return (Criteria) this; } public Criteria andMemberNickNameNotIn(List<String> values) { addCriterion("member_nick_name not in", values, "memberNickName"); return (Criteria) this; } public Criteria andMemberNickNameBetween(String value1, String value2) { addCriterion("member_nick_name between", value1, value2, "memberNickName"); return (Criteria) this; } public Criteria andMemberNickNameNotBetween(String value1, String value2) { addCriterion("member_nick_name not between", value1, value2, "memberNickName"); return (Criteria) this; } public Criteria andMemberIconIsNull() { addCriterion("member_icon is null"); return (Criteria) this; } public Criteria andMemberIconIsNotNull() { addCriterion("member_icon is not null"); return (Criteria) this; } public Criteria andMemberIconEqualTo(String value) { addCriterion("member_icon =", value, "memberIcon"); return (Criteria) this; } public Criteria andMemberIconNotEqualTo(String value) { addCriterion("member_icon <>", value, "memberIcon"); return (Criteria) this; } public Criteria andMemberIconGreaterThan(String value) { addCriterion("member_icon >", value, "memberIcon"); return (Criteria) this; } public Criteria andMemberIconGreaterThanOrEqualTo(String value) { addCriterion("member_icon >=", value, "memberIcon"); return (Criteria) this; } public Criteria andMemberIconLessThan(String value) { addCriterion("member_icon <", value, "memberIcon"); return (Criteria) this; } public Criteria andMemberIconLessThanOrEqualTo(String value) { addCriterion("member_icon <=", value, "memberIcon"); return (Criteria) this; } public Criteria andMemberIconLike(String value) { addCriterion("member_icon like", value, "memberIcon"); return (Criteria) this; } public Criteria andMemberIconNotLike(String value) { addCriterion("member_icon not like", value, "memberIcon"); return (Criteria) this; } public Criteria andMemberIconIn(List<String> values) { addCriterion("member_icon in", values, "memberIcon"); return (Criteria) this; } public Criteria andMemberIconNotIn(List<String> values) { addCriterion("member_icon not in", values, "memberIcon"); return (Criteria) this; } public Criteria andMemberIconBetween(String value1, String value2) { addCriterion("member_icon between", value1, value2, "memberIcon"); return (Criteria) this; } public Criteria andMemberIconNotBetween(String value1, String value2) { addCriterion("member_icon not between", value1, value2, "memberIcon"); return (Criteria) this; } public Criteria andContentIsNull() { addCriterion("content is null"); return (Criteria) this; } public Criteria andContentIsNotNull() { addCriterion("content is not null"); return (Criteria) this; } public Criteria andContentEqualTo(String value) { addCriterion("content =", value, "content"); return (Criteria) this; } public Criteria andContentNotEqualTo(String value) { addCriterion("content <>", value, "content"); return (Criteria) this; } public Criteria andContentGreaterThan(String value) { addCriterion("content >", value, "content"); return (Criteria) this; } public Criteria andContentGreaterThanOrEqualTo(String value) { addCriterion("content >=", value, "content"); return (Criteria) this; } public Criteria andContentLessThan(String value) { addCriterion("content <", value, "content"); return (Criteria) this; } public Criteria andContentLessThanOrEqualTo(String value) { addCriterion("content <=", value, "content"); return (Criteria) this; } public Criteria andContentLike(String value) { addCriterion("content like", value, "content"); return (Criteria) this; } public Criteria andContentNotLike(String value) { addCriterion("content not like", value, "content"); return (Criteria) this; } public Criteria andContentIn(List<String> values) { addCriterion("content in", values, "content"); return (Criteria) this; } public Criteria andContentNotIn(List<String> values) { addCriterion("content not in", values, "content"); return (Criteria) this; } public Criteria andContentBetween(String value1, String value2) { addCriterion("content between", value1, value2, "content"); return (Criteria) this; } public Criteria andContentNotBetween(String value1, String value2) { addCriterion("content not between", value1, value2, "content"); return (Criteria) this; } public Criteria andCreateTimeIsNull() { addCriterion("create_time is null"); return (Criteria) this; } public Criteria andCreateTimeIsNotNull() { addCriterion("create_time is not null"); return (Criteria) this; } public Criteria andCreateTimeEqualTo(Date value) { addCriterion("create_time =", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotEqualTo(Date value) { addCriterion("create_time <>", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeGreaterThan(Date value) { addCriterion("create_time >", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { addCriterion("create_time >=", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeLessThan(Date value) { addCriterion("create_time <", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeLessThanOrEqualTo(Date value) { addCriterion("create_time <=", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeIn(List<Date> values) { addCriterion("create_time in", values, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotIn(List<Date> values) { addCriterion("create_time not in", values, "createTime"); return (Criteria) this; } public Criteria andCreateTimeBetween(Date value1, Date value2) { addCriterion("create_time between", value1, value2, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotBetween(Date value1, Date value2) { addCriterion("create_time not between", value1, value2, "createTime"); return (Criteria) this; } public Criteria andTypeIsNull() { addCriterion("type is null"); return (Criteria) this; } public Criteria andTypeIsNotNull() { addCriterion("type is not null"); return (Criteria) this; } public Criteria andTypeEqualTo(Integer value) { addCriterion("type =", value, "type"); return (Criteria) this; } public Criteria andTypeNotEqualTo(Integer value) { addCriterion("type <>", value, "type"); return (Criteria) this; } public Criteria andTypeGreaterThan(Integer value) { addCriterion("type >", value, "type"); return (Criteria) this; } public Criteria andTypeGreaterThanOrEqualTo(Integer value) { addCriterion("type >=", value, "type"); return (Criteria) this; } public Criteria andTypeLessThan(Integer value) { addCriterion("type <", value, "type"); return (Criteria) this; } public Criteria andTypeLessThanOrEqualTo(Integer value) { addCriterion("type <=", value, "type"); return (Criteria) this; } public Criteria andTypeIn(List<Integer> values) { addCriterion("type in", values, "type"); return (Criteria) this; } public Criteria andTypeNotIn(List<Integer> values) { addCriterion("type not in", values, "type"); return (Criteria) this; } public Criteria andTypeBetween(Integer value1, Integer value2) { addCriterion("type between", value1, value2, "type"); return (Criteria) this; } public Criteria andTypeNotBetween(Integer value1, Integer value2) { addCriterion("type not between", value1, value2, "type"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/SmsCouponProductCategoryRelation.java
mall-mbg/src/main/java/com/macro/mall/model/SmsCouponProductCategoryRelation.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; public class SmsCouponProductCategoryRelation implements Serializable { private Long id; private Long couponId; private Long productCategoryId; @ApiModelProperty(value = "产品分类名称") private String productCategoryName; @ApiModelProperty(value = "父分类名称") private String parentCategoryName; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getCouponId() { return couponId; } public void setCouponId(Long couponId) { this.couponId = couponId; } public Long getProductCategoryId() { return productCategoryId; } public void setProductCategoryId(Long productCategoryId) { this.productCategoryId = productCategoryId; } public String getProductCategoryName() { return productCategoryName; } public void setProductCategoryName(String productCategoryName) { this.productCategoryName = productCategoryName; } public String getParentCategoryName() { return parentCategoryName; } public void setParentCategoryName(String parentCategoryName) { this.parentCategoryName = parentCategoryName; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", couponId=").append(couponId); sb.append(", productCategoryId=").append(productCategoryId); sb.append(", productCategoryName=").append(productCategoryName); sb.append(", parentCategoryName=").append(parentCategoryName); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/PmsProductExample.java
mall-mbg/src/main/java/com/macro/mall/model/PmsProductExample.java
package com.macro.mall.model; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Date; import java.util.List; public class PmsProductExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public PmsProductExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andBrandIdIsNull() { addCriterion("brand_id is null"); return (Criteria) this; } public Criteria andBrandIdIsNotNull() { addCriterion("brand_id is not null"); return (Criteria) this; } public Criteria andBrandIdEqualTo(Long value) { addCriterion("brand_id =", value, "brandId"); return (Criteria) this; } public Criteria andBrandIdNotEqualTo(Long value) { addCriterion("brand_id <>", value, "brandId"); return (Criteria) this; } public Criteria andBrandIdGreaterThan(Long value) { addCriterion("brand_id >", value, "brandId"); return (Criteria) this; } public Criteria andBrandIdGreaterThanOrEqualTo(Long value) { addCriterion("brand_id >=", value, "brandId"); return (Criteria) this; } public Criteria andBrandIdLessThan(Long value) { addCriterion("brand_id <", value, "brandId"); return (Criteria) this; } public Criteria andBrandIdLessThanOrEqualTo(Long value) { addCriterion("brand_id <=", value, "brandId"); return (Criteria) this; } public Criteria andBrandIdIn(List<Long> values) { addCriterion("brand_id in", values, "brandId"); return (Criteria) this; } public Criteria andBrandIdNotIn(List<Long> values) { addCriterion("brand_id not in", values, "brandId"); return (Criteria) this; } public Criteria andBrandIdBetween(Long value1, Long value2) { addCriterion("brand_id between", value1, value2, "brandId"); return (Criteria) this; } public Criteria andBrandIdNotBetween(Long value1, Long value2) { addCriterion("brand_id not between", value1, value2, "brandId"); return (Criteria) this; } public Criteria andProductCategoryIdIsNull() { addCriterion("product_category_id is null"); return (Criteria) this; } public Criteria andProductCategoryIdIsNotNull() { addCriterion("product_category_id is not null"); return (Criteria) this; } public Criteria andProductCategoryIdEqualTo(Long value) { addCriterion("product_category_id =", value, "productCategoryId"); return (Criteria) this; } public Criteria andProductCategoryIdNotEqualTo(Long value) { addCriterion("product_category_id <>", value, "productCategoryId"); return (Criteria) this; } public Criteria andProductCategoryIdGreaterThan(Long value) { addCriterion("product_category_id >", value, "productCategoryId"); return (Criteria) this; } public Criteria andProductCategoryIdGreaterThanOrEqualTo(Long value) { addCriterion("product_category_id >=", value, "productCategoryId"); return (Criteria) this; } public Criteria andProductCategoryIdLessThan(Long value) { addCriterion("product_category_id <", value, "productCategoryId"); return (Criteria) this; } public Criteria andProductCategoryIdLessThanOrEqualTo(Long value) { addCriterion("product_category_id <=", value, "productCategoryId"); return (Criteria) this; } public Criteria andProductCategoryIdIn(List<Long> values) { addCriterion("product_category_id in", values, "productCategoryId"); return (Criteria) this; } public Criteria andProductCategoryIdNotIn(List<Long> values) { addCriterion("product_category_id not in", values, "productCategoryId"); return (Criteria) this; } public Criteria andProductCategoryIdBetween(Long value1, Long value2) { addCriterion("product_category_id between", value1, value2, "productCategoryId"); return (Criteria) this; } public Criteria andProductCategoryIdNotBetween(Long value1, Long value2) { addCriterion("product_category_id not between", value1, value2, "productCategoryId"); return (Criteria) this; } public Criteria andFeightTemplateIdIsNull() { addCriterion("feight_template_id is null"); return (Criteria) this; } public Criteria andFeightTemplateIdIsNotNull() { addCriterion("feight_template_id is not null"); return (Criteria) this; } public Criteria andFeightTemplateIdEqualTo(Long value) { addCriterion("feight_template_id =", value, "feightTemplateId"); return (Criteria) this; } public Criteria andFeightTemplateIdNotEqualTo(Long value) { addCriterion("feight_template_id <>", value, "feightTemplateId"); return (Criteria) this; } public Criteria andFeightTemplateIdGreaterThan(Long value) { addCriterion("feight_template_id >", value, "feightTemplateId"); return (Criteria) this; } public Criteria andFeightTemplateIdGreaterThanOrEqualTo(Long value) { addCriterion("feight_template_id >=", value, "feightTemplateId"); return (Criteria) this; } public Criteria andFeightTemplateIdLessThan(Long value) { addCriterion("feight_template_id <", value, "feightTemplateId"); return (Criteria) this; } public Criteria andFeightTemplateIdLessThanOrEqualTo(Long value) { addCriterion("feight_template_id <=", value, "feightTemplateId"); return (Criteria) this; } public Criteria andFeightTemplateIdIn(List<Long> values) { addCriterion("feight_template_id in", values, "feightTemplateId"); return (Criteria) this; } public Criteria andFeightTemplateIdNotIn(List<Long> values) { addCriterion("feight_template_id not in", values, "feightTemplateId"); return (Criteria) this; } public Criteria andFeightTemplateIdBetween(Long value1, Long value2) { addCriterion("feight_template_id between", value1, value2, "feightTemplateId"); return (Criteria) this; } public Criteria andFeightTemplateIdNotBetween(Long value1, Long value2) { addCriterion("feight_template_id not between", value1, value2, "feightTemplateId"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdIsNull() { addCriterion("product_attribute_category_id is null"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdIsNotNull() { addCriterion("product_attribute_category_id is not null"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdEqualTo(Long value) { addCriterion("product_attribute_category_id =", value, "productAttributeCategoryId"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdNotEqualTo(Long value) { addCriterion("product_attribute_category_id <>", value, "productAttributeCategoryId"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdGreaterThan(Long value) { addCriterion("product_attribute_category_id >", value, "productAttributeCategoryId"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdGreaterThanOrEqualTo(Long value) { addCriterion("product_attribute_category_id >=", value, "productAttributeCategoryId"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdLessThan(Long value) { addCriterion("product_attribute_category_id <", value, "productAttributeCategoryId"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdLessThanOrEqualTo(Long value) { addCriterion("product_attribute_category_id <=", value, "productAttributeCategoryId"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdIn(List<Long> values) { addCriterion("product_attribute_category_id in", values, "productAttributeCategoryId"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdNotIn(List<Long> values) { addCriterion("product_attribute_category_id not in", values, "productAttributeCategoryId"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdBetween(Long value1, Long value2) { addCriterion("product_attribute_category_id between", value1, value2, "productAttributeCategoryId"); return (Criteria) this; } public Criteria andProductAttributeCategoryIdNotBetween(Long value1, Long value2) { addCriterion("product_attribute_category_id not between", value1, value2, "productAttributeCategoryId"); return (Criteria) this; } public Criteria andNameIsNull() { addCriterion("name is null"); return (Criteria) this; } public Criteria andNameIsNotNull() { addCriterion("name is not null"); return (Criteria) this; } public Criteria andNameEqualTo(String value) { addCriterion("name =", value, "name"); return (Criteria) this; } public Criteria andNameNotEqualTo(String value) { addCriterion("name <>", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThan(String value) { addCriterion("name >", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThanOrEqualTo(String value) { addCriterion("name >=", value, "name"); return (Criteria) this; } public Criteria andNameLessThan(String value) { addCriterion("name <", value, "name"); return (Criteria) this; } public Criteria andNameLessThanOrEqualTo(String value) { addCriterion("name <=", value, "name"); return (Criteria) this; } public Criteria andNameLike(String value) { addCriterion("name like", value, "name"); return (Criteria) this; } public Criteria andNameNotLike(String value) { addCriterion("name not like", value, "name"); return (Criteria) this; } public Criteria andNameIn(List<String> values) { addCriterion("name in", values, "name"); return (Criteria) this; } public Criteria andNameNotIn(List<String> values) { addCriterion("name not in", values, "name"); return (Criteria) this; } public Criteria andNameBetween(String value1, String value2) { addCriterion("name between", value1, value2, "name"); return (Criteria) this; } public Criteria andNameNotBetween(String value1, String value2) { addCriterion("name not between", value1, value2, "name"); return (Criteria) this; } public Criteria andPicIsNull() { addCriterion("pic is null"); return (Criteria) this; } public Criteria andPicIsNotNull() { addCriterion("pic is not null"); return (Criteria) this; } public Criteria andPicEqualTo(String value) { addCriterion("pic =", value, "pic"); return (Criteria) this; } public Criteria andPicNotEqualTo(String value) { addCriterion("pic <>", value, "pic"); return (Criteria) this; } public Criteria andPicGreaterThan(String value) { addCriterion("pic >", value, "pic"); return (Criteria) this; } public Criteria andPicGreaterThanOrEqualTo(String value) { addCriterion("pic >=", value, "pic"); return (Criteria) this; } public Criteria andPicLessThan(String value) { addCriterion("pic <", value, "pic"); return (Criteria) this; } public Criteria andPicLessThanOrEqualTo(String value) { addCriterion("pic <=", value, "pic"); return (Criteria) this; } public Criteria andPicLike(String value) { addCriterion("pic like", value, "pic"); return (Criteria) this; } public Criteria andPicNotLike(String value) { addCriterion("pic not like", value, "pic"); return (Criteria) this; } public Criteria andPicIn(List<String> values) { addCriterion("pic in", values, "pic"); return (Criteria) this; } public Criteria andPicNotIn(List<String> values) { addCriterion("pic not in", values, "pic"); return (Criteria) this; } public Criteria andPicBetween(String value1, String value2) { addCriterion("pic between", value1, value2, "pic"); return (Criteria) this; } public Criteria andPicNotBetween(String value1, String value2) { addCriterion("pic not between", value1, value2, "pic"); return (Criteria) this; } public Criteria andProductSnIsNull() { addCriterion("product_sn is null"); return (Criteria) this; } public Criteria andProductSnIsNotNull() { addCriterion("product_sn is not null"); return (Criteria) this; } public Criteria andProductSnEqualTo(String value) { addCriterion("product_sn =", value, "productSn"); return (Criteria) this; } public Criteria andProductSnNotEqualTo(String value) { addCriterion("product_sn <>", value, "productSn"); return (Criteria) this; } public Criteria andProductSnGreaterThan(String value) { addCriterion("product_sn >", value, "productSn"); return (Criteria) this; } public Criteria andProductSnGreaterThanOrEqualTo(String value) { addCriterion("product_sn >=", value, "productSn"); return (Criteria) this; } public Criteria andProductSnLessThan(String value) { addCriterion("product_sn <", value, "productSn"); return (Criteria) this; } public Criteria andProductSnLessThanOrEqualTo(String value) { addCriterion("product_sn <=", value, "productSn"); return (Criteria) this; } public Criteria andProductSnLike(String value) { addCriterion("product_sn like", value, "productSn"); return (Criteria) this; } public Criteria andProductSnNotLike(String value) { addCriterion("product_sn not like", value, "productSn"); return (Criteria) this; } public Criteria andProductSnIn(List<String> values) { addCriterion("product_sn in", values, "productSn"); return (Criteria) this; } public Criteria andProductSnNotIn(List<String> values) { addCriterion("product_sn not in", values, "productSn"); return (Criteria) this; } public Criteria andProductSnBetween(String value1, String value2) { addCriterion("product_sn between", value1, value2, "productSn"); return (Criteria) this; } public Criteria andProductSnNotBetween(String value1, String value2) { addCriterion("product_sn not between", value1, value2, "productSn"); return (Criteria) this; } public Criteria andDeleteStatusIsNull() { addCriterion("delete_status is null"); return (Criteria) this; } public Criteria andDeleteStatusIsNotNull() { addCriterion("delete_status is not null"); return (Criteria) this; } public Criteria andDeleteStatusEqualTo(Integer value) { addCriterion("delete_status =", value, "deleteStatus"); return (Criteria) this; } public Criteria andDeleteStatusNotEqualTo(Integer value) { addCriterion("delete_status <>", value, "deleteStatus"); return (Criteria) this; } public Criteria andDeleteStatusGreaterThan(Integer value) { addCriterion("delete_status >", value, "deleteStatus"); return (Criteria) this; } public Criteria andDeleteStatusGreaterThanOrEqualTo(Integer value) { addCriterion("delete_status >=", value, "deleteStatus"); return (Criteria) this; } public Criteria andDeleteStatusLessThan(Integer value) { addCriterion("delete_status <", value, "deleteStatus"); return (Criteria) this; } public Criteria andDeleteStatusLessThanOrEqualTo(Integer value) { addCriterion("delete_status <=", value, "deleteStatus"); return (Criteria) this; } public Criteria andDeleteStatusIn(List<Integer> values) { addCriterion("delete_status in", values, "deleteStatus"); return (Criteria) this; } public Criteria andDeleteStatusNotIn(List<Integer> values) { addCriterion("delete_status not in", values, "deleteStatus"); return (Criteria) this; } public Criteria andDeleteStatusBetween(Integer value1, Integer value2) { addCriterion("delete_status between", value1, value2, "deleteStatus"); return (Criteria) this; } public Criteria andDeleteStatusNotBetween(Integer value1, Integer value2) { addCriterion("delete_status not between", value1, value2, "deleteStatus"); return (Criteria) this; } public Criteria andPublishStatusIsNull() { addCriterion("publish_status is null"); return (Criteria) this; } public Criteria andPublishStatusIsNotNull() { addCriterion("publish_status is not null"); return (Criteria) this; } public Criteria andPublishStatusEqualTo(Integer value) { addCriterion("publish_status =", value, "publishStatus"); return (Criteria) this; } public Criteria andPublishStatusNotEqualTo(Integer value) { addCriterion("publish_status <>", value, "publishStatus"); return (Criteria) this; } public Criteria andPublishStatusGreaterThan(Integer value) { addCriterion("publish_status >", value, "publishStatus"); return (Criteria) this; } public Criteria andPublishStatusGreaterThanOrEqualTo(Integer value) { addCriterion("publish_status >=", value, "publishStatus"); return (Criteria) this; } public Criteria andPublishStatusLessThan(Integer value) { addCriterion("publish_status <", value, "publishStatus"); return (Criteria) this; } public Criteria andPublishStatusLessThanOrEqualTo(Integer value) { addCriterion("publish_status <=", value, "publishStatus"); return (Criteria) this; } public Criteria andPublishStatusIn(List<Integer> values) { addCriterion("publish_status in", values, "publishStatus"); return (Criteria) this; } public Criteria andPublishStatusNotIn(List<Integer> values) { addCriterion("publish_status not in", values, "publishStatus"); return (Criteria) this; } public Criteria andPublishStatusBetween(Integer value1, Integer value2) { addCriterion("publish_status between", value1, value2, "publishStatus"); return (Criteria) this; } public Criteria andPublishStatusNotBetween(Integer value1, Integer value2) { addCriterion("publish_status not between", value1, value2, "publishStatus"); return (Criteria) this; } public Criteria andNewStatusIsNull() { addCriterion("new_status is null"); return (Criteria) this; } public Criteria andNewStatusIsNotNull() { addCriterion("new_status is not null"); return (Criteria) this; } public Criteria andNewStatusEqualTo(Integer value) { addCriterion("new_status =", value, "newStatus"); return (Criteria) this; } public Criteria andNewStatusNotEqualTo(Integer value) { addCriterion("new_status <>", value, "newStatus"); return (Criteria) this; } public Criteria andNewStatusGreaterThan(Integer value) { addCriterion("new_status >", value, "newStatus"); return (Criteria) this; } public Criteria andNewStatusGreaterThanOrEqualTo(Integer value) { addCriterion("new_status >=", value, "newStatus"); return (Criteria) this; } public Criteria andNewStatusLessThan(Integer value) { addCriterion("new_status <", value, "newStatus"); return (Criteria) this; } public Criteria andNewStatusLessThanOrEqualTo(Integer value) { addCriterion("new_status <=", value, "newStatus"); return (Criteria) this; } public Criteria andNewStatusIn(List<Integer> values) { addCriterion("new_status in", values, "newStatus"); return (Criteria) this; } public Criteria andNewStatusNotIn(List<Integer> values) { addCriterion("new_status not in", values, "newStatus"); return (Criteria) this; } public Criteria andNewStatusBetween(Integer value1, Integer value2) { addCriterion("new_status between", value1, value2, "newStatus"); return (Criteria) this; } public Criteria andNewStatusNotBetween(Integer value1, Integer value2) { addCriterion("new_status not between", value1, value2, "newStatus"); return (Criteria) this; } public Criteria andRecommandStatusIsNull() { addCriterion("recommand_status is null"); return (Criteria) this; } public Criteria andRecommandStatusIsNotNull() { addCriterion("recommand_status is not null"); return (Criteria) this; } public Criteria andRecommandStatusEqualTo(Integer value) { addCriterion("recommand_status =", value, "recommandStatus"); return (Criteria) this; } public Criteria andRecommandStatusNotEqualTo(Integer value) { addCriterion("recommand_status <>", value, "recommandStatus"); return (Criteria) this; } public Criteria andRecommandStatusGreaterThan(Integer value) { addCriterion("recommand_status >", value, "recommandStatus"); return (Criteria) this; } public Criteria andRecommandStatusGreaterThanOrEqualTo(Integer value) { addCriterion("recommand_status >=", value, "recommandStatus"); return (Criteria) this; } public Criteria andRecommandStatusLessThan(Integer value) { addCriterion("recommand_status <", value, "recommandStatus"); return (Criteria) this; } public Criteria andRecommandStatusLessThanOrEqualTo(Integer value) { addCriterion("recommand_status <=", value, "recommandStatus"); return (Criteria) this; } public Criteria andRecommandStatusIn(List<Integer> values) { addCriterion("recommand_status in", values, "recommandStatus"); return (Criteria) this; } public Criteria andRecommandStatusNotIn(List<Integer> values) { addCriterion("recommand_status not in", values, "recommandStatus"); return (Criteria) this; } public Criteria andRecommandStatusBetween(Integer value1, Integer value2) { addCriterion("recommand_status between", value1, value2, "recommandStatus"); return (Criteria) this; } public Criteria andRecommandStatusNotBetween(Integer value1, Integer value2) { addCriterion("recommand_status not between", value1, value2, "recommandStatus"); return (Criteria) this; } public Criteria andVerifyStatusIsNull() { addCriterion("verify_status is null"); return (Criteria) this; } public Criteria andVerifyStatusIsNotNull() { addCriterion("verify_status is not null"); return (Criteria) this; } public Criteria andVerifyStatusEqualTo(Integer value) { addCriterion("verify_status =", value, "verifyStatus"); return (Criteria) this; } public Criteria andVerifyStatusNotEqualTo(Integer value) { addCriterion("verify_status <>", value, "verifyStatus"); return (Criteria) this; } public Criteria andVerifyStatusGreaterThan(Integer value) { addCriterion("verify_status >", value, "verifyStatus"); return (Criteria) this; } public Criteria andVerifyStatusGreaterThanOrEqualTo(Integer value) { addCriterion("verify_status >=", value, "verifyStatus"); return (Criteria) this; } public Criteria andVerifyStatusLessThan(Integer value) { addCriterion("verify_status <", value, "verifyStatus"); return (Criteria) this; } public Criteria andVerifyStatusLessThanOrEqualTo(Integer value) { addCriterion("verify_status <=", value, "verifyStatus"); return (Criteria) this; } public Criteria andVerifyStatusIn(List<Integer> values) { addCriterion("verify_status in", values, "verifyStatus"); return (Criteria) this; } public Criteria andVerifyStatusNotIn(List<Integer> values) { addCriterion("verify_status not in", values, "verifyStatus"); return (Criteria) this; } public Criteria andVerifyStatusBetween(Integer value1, Integer value2) { addCriterion("verify_status between", value1, value2, "verifyStatus"); return (Criteria) this; } public Criteria andVerifyStatusNotBetween(Integer value1, Integer value2) { addCriterion("verify_status not between", value1, value2, "verifyStatus"); return (Criteria) this; } public Criteria andSortIsNull() { addCriterion("sort is null"); return (Criteria) this; } public Criteria andSortIsNotNull() { addCriterion("sort is not null"); return (Criteria) this; } public Criteria andSortEqualTo(Integer value) { addCriterion("sort =", value, "sort"); return (Criteria) this; } public Criteria andSortNotEqualTo(Integer value) { addCriterion("sort <>", value, "sort"); return (Criteria) this; } public Criteria andSortGreaterThan(Integer value) { addCriterion("sort >", value, "sort"); return (Criteria) this; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
true
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/UmsIntegrationConsumeSettingExample.java
mall-mbg/src/main/java/com/macro/mall/model/UmsIntegrationConsumeSettingExample.java
package com.macro.mall.model; import java.util.ArrayList; import java.util.List; public class UmsIntegrationConsumeSettingExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public UmsIntegrationConsumeSettingExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andDeductionPerAmountIsNull() { addCriterion("deduction_per_amount is null"); return (Criteria) this; } public Criteria andDeductionPerAmountIsNotNull() { addCriterion("deduction_per_amount is not null"); return (Criteria) this; } public Criteria andDeductionPerAmountEqualTo(Integer value) { addCriterion("deduction_per_amount =", value, "deductionPerAmount"); return (Criteria) this; } public Criteria andDeductionPerAmountNotEqualTo(Integer value) { addCriterion("deduction_per_amount <>", value, "deductionPerAmount"); return (Criteria) this; } public Criteria andDeductionPerAmountGreaterThan(Integer value) { addCriterion("deduction_per_amount >", value, "deductionPerAmount"); return (Criteria) this; } public Criteria andDeductionPerAmountGreaterThanOrEqualTo(Integer value) { addCriterion("deduction_per_amount >=", value, "deductionPerAmount"); return (Criteria) this; } public Criteria andDeductionPerAmountLessThan(Integer value) { addCriterion("deduction_per_amount <", value, "deductionPerAmount"); return (Criteria) this; } public Criteria andDeductionPerAmountLessThanOrEqualTo(Integer value) { addCriterion("deduction_per_amount <=", value, "deductionPerAmount"); return (Criteria) this; } public Criteria andDeductionPerAmountIn(List<Integer> values) { addCriterion("deduction_per_amount in", values, "deductionPerAmount"); return (Criteria) this; } public Criteria andDeductionPerAmountNotIn(List<Integer> values) { addCriterion("deduction_per_amount not in", values, "deductionPerAmount"); return (Criteria) this; } public Criteria andDeductionPerAmountBetween(Integer value1, Integer value2) { addCriterion("deduction_per_amount between", value1, value2, "deductionPerAmount"); return (Criteria) this; } public Criteria andDeductionPerAmountNotBetween(Integer value1, Integer value2) { addCriterion("deduction_per_amount not between", value1, value2, "deductionPerAmount"); return (Criteria) this; } public Criteria andMaxPercentPerOrderIsNull() { addCriterion("max_percent_per_order is null"); return (Criteria) this; } public Criteria andMaxPercentPerOrderIsNotNull() { addCriterion("max_percent_per_order is not null"); return (Criteria) this; } public Criteria andMaxPercentPerOrderEqualTo(Integer value) { addCriterion("max_percent_per_order =", value, "maxPercentPerOrder"); return (Criteria) this; } public Criteria andMaxPercentPerOrderNotEqualTo(Integer value) { addCriterion("max_percent_per_order <>", value, "maxPercentPerOrder"); return (Criteria) this; } public Criteria andMaxPercentPerOrderGreaterThan(Integer value) { addCriterion("max_percent_per_order >", value, "maxPercentPerOrder"); return (Criteria) this; } public Criteria andMaxPercentPerOrderGreaterThanOrEqualTo(Integer value) { addCriterion("max_percent_per_order >=", value, "maxPercentPerOrder"); return (Criteria) this; } public Criteria andMaxPercentPerOrderLessThan(Integer value) { addCriterion("max_percent_per_order <", value, "maxPercentPerOrder"); return (Criteria) this; } public Criteria andMaxPercentPerOrderLessThanOrEqualTo(Integer value) { addCriterion("max_percent_per_order <=", value, "maxPercentPerOrder"); return (Criteria) this; } public Criteria andMaxPercentPerOrderIn(List<Integer> values) { addCriterion("max_percent_per_order in", values, "maxPercentPerOrder"); return (Criteria) this; } public Criteria andMaxPercentPerOrderNotIn(List<Integer> values) { addCriterion("max_percent_per_order not in", values, "maxPercentPerOrder"); return (Criteria) this; } public Criteria andMaxPercentPerOrderBetween(Integer value1, Integer value2) { addCriterion("max_percent_per_order between", value1, value2, "maxPercentPerOrder"); return (Criteria) this; } public Criteria andMaxPercentPerOrderNotBetween(Integer value1, Integer value2) { addCriterion("max_percent_per_order not between", value1, value2, "maxPercentPerOrder"); return (Criteria) this; } public Criteria andUseUnitIsNull() { addCriterion("use_unit is null"); return (Criteria) this; } public Criteria andUseUnitIsNotNull() { addCriterion("use_unit is not null"); return (Criteria) this; } public Criteria andUseUnitEqualTo(Integer value) { addCriterion("use_unit =", value, "useUnit"); return (Criteria) this; } public Criteria andUseUnitNotEqualTo(Integer value) { addCriterion("use_unit <>", value, "useUnit"); return (Criteria) this; } public Criteria andUseUnitGreaterThan(Integer value) { addCriterion("use_unit >", value, "useUnit"); return (Criteria) this; } public Criteria andUseUnitGreaterThanOrEqualTo(Integer value) { addCriterion("use_unit >=", value, "useUnit"); return (Criteria) this; } public Criteria andUseUnitLessThan(Integer value) { addCriterion("use_unit <", value, "useUnit"); return (Criteria) this; } public Criteria andUseUnitLessThanOrEqualTo(Integer value) { addCriterion("use_unit <=", value, "useUnit"); return (Criteria) this; } public Criteria andUseUnitIn(List<Integer> values) { addCriterion("use_unit in", values, "useUnit"); return (Criteria) this; } public Criteria andUseUnitNotIn(List<Integer> values) { addCriterion("use_unit not in", values, "useUnit"); return (Criteria) this; } public Criteria andUseUnitBetween(Integer value1, Integer value2) { addCriterion("use_unit between", value1, value2, "useUnit"); return (Criteria) this; } public Criteria andUseUnitNotBetween(Integer value1, Integer value2) { addCriterion("use_unit not between", value1, value2, "useUnit"); return (Criteria) this; } public Criteria andCouponStatusIsNull() { addCriterion("coupon_status is null"); return (Criteria) this; } public Criteria andCouponStatusIsNotNull() { addCriterion("coupon_status is not null"); return (Criteria) this; } public Criteria andCouponStatusEqualTo(Integer value) { addCriterion("coupon_status =", value, "couponStatus"); return (Criteria) this; } public Criteria andCouponStatusNotEqualTo(Integer value) { addCriterion("coupon_status <>", value, "couponStatus"); return (Criteria) this; } public Criteria andCouponStatusGreaterThan(Integer value) { addCriterion("coupon_status >", value, "couponStatus"); return (Criteria) this; } public Criteria andCouponStatusGreaterThanOrEqualTo(Integer value) { addCriterion("coupon_status >=", value, "couponStatus"); return (Criteria) this; } public Criteria andCouponStatusLessThan(Integer value) { addCriterion("coupon_status <", value, "couponStatus"); return (Criteria) this; } public Criteria andCouponStatusLessThanOrEqualTo(Integer value) { addCriterion("coupon_status <=", value, "couponStatus"); return (Criteria) this; } public Criteria andCouponStatusIn(List<Integer> values) { addCriterion("coupon_status in", values, "couponStatus"); return (Criteria) this; } public Criteria andCouponStatusNotIn(List<Integer> values) { addCriterion("coupon_status not in", values, "couponStatus"); return (Criteria) this; } public Criteria andCouponStatusBetween(Integer value1, Integer value2) { addCriterion("coupon_status between", value1, value2, "couponStatus"); return (Criteria) this; } public Criteria andCouponStatusNotBetween(Integer value1, Integer value2) { addCriterion("coupon_status not between", value1, value2, "couponStatus"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/SmsCouponProductRelationExample.java
mall-mbg/src/main/java/com/macro/mall/model/SmsCouponProductRelationExample.java
package com.macro.mall.model; import java.util.ArrayList; import java.util.List; public class SmsCouponProductRelationExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public SmsCouponProductRelationExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andCouponIdIsNull() { addCriterion("coupon_id is null"); return (Criteria) this; } public Criteria andCouponIdIsNotNull() { addCriterion("coupon_id is not null"); return (Criteria) this; } public Criteria andCouponIdEqualTo(Long value) { addCriterion("coupon_id =", value, "couponId"); return (Criteria) this; } public Criteria andCouponIdNotEqualTo(Long value) { addCriterion("coupon_id <>", value, "couponId"); return (Criteria) this; } public Criteria andCouponIdGreaterThan(Long value) { addCriterion("coupon_id >", value, "couponId"); return (Criteria) this; } public Criteria andCouponIdGreaterThanOrEqualTo(Long value) { addCriterion("coupon_id >=", value, "couponId"); return (Criteria) this; } public Criteria andCouponIdLessThan(Long value) { addCriterion("coupon_id <", value, "couponId"); return (Criteria) this; } public Criteria andCouponIdLessThanOrEqualTo(Long value) { addCriterion("coupon_id <=", value, "couponId"); return (Criteria) this; } public Criteria andCouponIdIn(List<Long> values) { addCriterion("coupon_id in", values, "couponId"); return (Criteria) this; } public Criteria andCouponIdNotIn(List<Long> values) { addCriterion("coupon_id not in", values, "couponId"); return (Criteria) this; } public Criteria andCouponIdBetween(Long value1, Long value2) { addCriterion("coupon_id between", value1, value2, "couponId"); return (Criteria) this; } public Criteria andCouponIdNotBetween(Long value1, Long value2) { addCriterion("coupon_id not between", value1, value2, "couponId"); return (Criteria) this; } public Criteria andProductIdIsNull() { addCriterion("product_id is null"); return (Criteria) this; } public Criteria andProductIdIsNotNull() { addCriterion("product_id is not null"); return (Criteria) this; } public Criteria andProductIdEqualTo(Long value) { addCriterion("product_id =", value, "productId"); return (Criteria) this; } public Criteria andProductIdNotEqualTo(Long value) { addCriterion("product_id <>", value, "productId"); return (Criteria) this; } public Criteria andProductIdGreaterThan(Long value) { addCriterion("product_id >", value, "productId"); return (Criteria) this; } public Criteria andProductIdGreaterThanOrEqualTo(Long value) { addCriterion("product_id >=", value, "productId"); return (Criteria) this; } public Criteria andProductIdLessThan(Long value) { addCriterion("product_id <", value, "productId"); return (Criteria) this; } public Criteria andProductIdLessThanOrEqualTo(Long value) { addCriterion("product_id <=", value, "productId"); return (Criteria) this; } public Criteria andProductIdIn(List<Long> values) { addCriterion("product_id in", values, "productId"); return (Criteria) this; } public Criteria andProductIdNotIn(List<Long> values) { addCriterion("product_id not in", values, "productId"); return (Criteria) this; } public Criteria andProductIdBetween(Long value1, Long value2) { addCriterion("product_id between", value1, value2, "productId"); return (Criteria) this; } public Criteria andProductIdNotBetween(Long value1, Long value2) { addCriterion("product_id not between", value1, value2, "productId"); return (Criteria) this; } public Criteria andProductNameIsNull() { addCriterion("product_name is null"); return (Criteria) this; } public Criteria andProductNameIsNotNull() { addCriterion("product_name is not null"); return (Criteria) this; } public Criteria andProductNameEqualTo(String value) { addCriterion("product_name =", value, "productName"); return (Criteria) this; } public Criteria andProductNameNotEqualTo(String value) { addCriterion("product_name <>", value, "productName"); return (Criteria) this; } public Criteria andProductNameGreaterThan(String value) { addCriterion("product_name >", value, "productName"); return (Criteria) this; } public Criteria andProductNameGreaterThanOrEqualTo(String value) { addCriterion("product_name >=", value, "productName"); return (Criteria) this; } public Criteria andProductNameLessThan(String value) { addCriterion("product_name <", value, "productName"); return (Criteria) this; } public Criteria andProductNameLessThanOrEqualTo(String value) { addCriterion("product_name <=", value, "productName"); return (Criteria) this; } public Criteria andProductNameLike(String value) { addCriterion("product_name like", value, "productName"); return (Criteria) this; } public Criteria andProductNameNotLike(String value) { addCriterion("product_name not like", value, "productName"); return (Criteria) this; } public Criteria andProductNameIn(List<String> values) { addCriterion("product_name in", values, "productName"); return (Criteria) this; } public Criteria andProductNameNotIn(List<String> values) { addCriterion("product_name not in", values, "productName"); return (Criteria) this; } public Criteria andProductNameBetween(String value1, String value2) { addCriterion("product_name between", value1, value2, "productName"); return (Criteria) this; } public Criteria andProductNameNotBetween(String value1, String value2) { addCriterion("product_name not between", value1, value2, "productName"); return (Criteria) this; } public Criteria andProductSnIsNull() { addCriterion("product_sn is null"); return (Criteria) this; } public Criteria andProductSnIsNotNull() { addCriterion("product_sn is not null"); return (Criteria) this; } public Criteria andProductSnEqualTo(String value) { addCriterion("product_sn =", value, "productSn"); return (Criteria) this; } public Criteria andProductSnNotEqualTo(String value) { addCriterion("product_sn <>", value, "productSn"); return (Criteria) this; } public Criteria andProductSnGreaterThan(String value) { addCriterion("product_sn >", value, "productSn"); return (Criteria) this; } public Criteria andProductSnGreaterThanOrEqualTo(String value) { addCriterion("product_sn >=", value, "productSn"); return (Criteria) this; } public Criteria andProductSnLessThan(String value) { addCriterion("product_sn <", value, "productSn"); return (Criteria) this; } public Criteria andProductSnLessThanOrEqualTo(String value) { addCriterion("product_sn <=", value, "productSn"); return (Criteria) this; } public Criteria andProductSnLike(String value) { addCriterion("product_sn like", value, "productSn"); return (Criteria) this; } public Criteria andProductSnNotLike(String value) { addCriterion("product_sn not like", value, "productSn"); return (Criteria) this; } public Criteria andProductSnIn(List<String> values) { addCriterion("product_sn in", values, "productSn"); return (Criteria) this; } public Criteria andProductSnNotIn(List<String> values) { addCriterion("product_sn not in", values, "productSn"); return (Criteria) this; } public Criteria andProductSnBetween(String value1, String value2) { addCriterion("product_sn between", value1, value2, "productSn"); return (Criteria) this; } public Criteria andProductSnNotBetween(String value1, String value2) { addCriterion("product_sn not between", value1, value2, "productSn"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/SmsHomeBrandExample.java
mall-mbg/src/main/java/com/macro/mall/model/SmsHomeBrandExample.java
package com.macro.mall.model; import java.util.ArrayList; import java.util.List; public class SmsHomeBrandExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public SmsHomeBrandExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andBrandIdIsNull() { addCriterion("brand_id is null"); return (Criteria) this; } public Criteria andBrandIdIsNotNull() { addCriterion("brand_id is not null"); return (Criteria) this; } public Criteria andBrandIdEqualTo(Long value) { addCriterion("brand_id =", value, "brandId"); return (Criteria) this; } public Criteria andBrandIdNotEqualTo(Long value) { addCriterion("brand_id <>", value, "brandId"); return (Criteria) this; } public Criteria andBrandIdGreaterThan(Long value) { addCriterion("brand_id >", value, "brandId"); return (Criteria) this; } public Criteria andBrandIdGreaterThanOrEqualTo(Long value) { addCriterion("brand_id >=", value, "brandId"); return (Criteria) this; } public Criteria andBrandIdLessThan(Long value) { addCriterion("brand_id <", value, "brandId"); return (Criteria) this; } public Criteria andBrandIdLessThanOrEqualTo(Long value) { addCriterion("brand_id <=", value, "brandId"); return (Criteria) this; } public Criteria andBrandIdIn(List<Long> values) { addCriterion("brand_id in", values, "brandId"); return (Criteria) this; } public Criteria andBrandIdNotIn(List<Long> values) { addCriterion("brand_id not in", values, "brandId"); return (Criteria) this; } public Criteria andBrandIdBetween(Long value1, Long value2) { addCriterion("brand_id between", value1, value2, "brandId"); return (Criteria) this; } public Criteria andBrandIdNotBetween(Long value1, Long value2) { addCriterion("brand_id not between", value1, value2, "brandId"); return (Criteria) this; } public Criteria andBrandNameIsNull() { addCriterion("brand_name is null"); return (Criteria) this; } public Criteria andBrandNameIsNotNull() { addCriterion("brand_name is not null"); return (Criteria) this; } public Criteria andBrandNameEqualTo(String value) { addCriterion("brand_name =", value, "brandName"); return (Criteria) this; } public Criteria andBrandNameNotEqualTo(String value) { addCriterion("brand_name <>", value, "brandName"); return (Criteria) this; } public Criteria andBrandNameGreaterThan(String value) { addCriterion("brand_name >", value, "brandName"); return (Criteria) this; } public Criteria andBrandNameGreaterThanOrEqualTo(String value) { addCriterion("brand_name >=", value, "brandName"); return (Criteria) this; } public Criteria andBrandNameLessThan(String value) { addCriterion("brand_name <", value, "brandName"); return (Criteria) this; } public Criteria andBrandNameLessThanOrEqualTo(String value) { addCriterion("brand_name <=", value, "brandName"); return (Criteria) this; } public Criteria andBrandNameLike(String value) { addCriterion("brand_name like", value, "brandName"); return (Criteria) this; } public Criteria andBrandNameNotLike(String value) { addCriterion("brand_name not like", value, "brandName"); return (Criteria) this; } public Criteria andBrandNameIn(List<String> values) { addCriterion("brand_name in", values, "brandName"); return (Criteria) this; } public Criteria andBrandNameNotIn(List<String> values) { addCriterion("brand_name not in", values, "brandName"); return (Criteria) this; } public Criteria andBrandNameBetween(String value1, String value2) { addCriterion("brand_name between", value1, value2, "brandName"); return (Criteria) this; } public Criteria andBrandNameNotBetween(String value1, String value2) { addCriterion("brand_name not between", value1, value2, "brandName"); return (Criteria) this; } public Criteria andRecommendStatusIsNull() { addCriterion("recommend_status is null"); return (Criteria) this; } public Criteria andRecommendStatusIsNotNull() { addCriterion("recommend_status is not null"); return (Criteria) this; } public Criteria andRecommendStatusEqualTo(Integer value) { addCriterion("recommend_status =", value, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusNotEqualTo(Integer value) { addCriterion("recommend_status <>", value, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusGreaterThan(Integer value) { addCriterion("recommend_status >", value, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusGreaterThanOrEqualTo(Integer value) { addCriterion("recommend_status >=", value, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusLessThan(Integer value) { addCriterion("recommend_status <", value, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusLessThanOrEqualTo(Integer value) { addCriterion("recommend_status <=", value, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusIn(List<Integer> values) { addCriterion("recommend_status in", values, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusNotIn(List<Integer> values) { addCriterion("recommend_status not in", values, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusBetween(Integer value1, Integer value2) { addCriterion("recommend_status between", value1, value2, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusNotBetween(Integer value1, Integer value2) { addCriterion("recommend_status not between", value1, value2, "recommendStatus"); return (Criteria) this; } public Criteria andSortIsNull() { addCriterion("sort is null"); return (Criteria) this; } public Criteria andSortIsNotNull() { addCriterion("sort is not null"); return (Criteria) this; } public Criteria andSortEqualTo(Integer value) { addCriterion("sort =", value, "sort"); return (Criteria) this; } public Criteria andSortNotEqualTo(Integer value) { addCriterion("sort <>", value, "sort"); return (Criteria) this; } public Criteria andSortGreaterThan(Integer value) { addCriterion("sort >", value, "sort"); return (Criteria) this; } public Criteria andSortGreaterThanOrEqualTo(Integer value) { addCriterion("sort >=", value, "sort"); return (Criteria) this; } public Criteria andSortLessThan(Integer value) { addCriterion("sort <", value, "sort"); return (Criteria) this; } public Criteria andSortLessThanOrEqualTo(Integer value) { addCriterion("sort <=", value, "sort"); return (Criteria) this; } public Criteria andSortIn(List<Integer> values) { addCriterion("sort in", values, "sort"); return (Criteria) this; } public Criteria andSortNotIn(List<Integer> values) { addCriterion("sort not in", values, "sort"); return (Criteria) this; } public Criteria andSortBetween(Integer value1, Integer value2) { addCriterion("sort between", value1, value2, "sort"); return (Criteria) this; } public Criteria andSortNotBetween(Integer value1, Integer value2) { addCriterion("sort not between", value1, value2, "sort"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/UmsRoleExample.java
mall-mbg/src/main/java/com/macro/mall/model/UmsRoleExample.java
package com.macro.mall.model; import java.util.ArrayList; import java.util.Date; import java.util.List; public class UmsRoleExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public UmsRoleExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andNameIsNull() { addCriterion("name is null"); return (Criteria) this; } public Criteria andNameIsNotNull() { addCriterion("name is not null"); return (Criteria) this; } public Criteria andNameEqualTo(String value) { addCriterion("name =", value, "name"); return (Criteria) this; } public Criteria andNameNotEqualTo(String value) { addCriterion("name <>", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThan(String value) { addCriterion("name >", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThanOrEqualTo(String value) { addCriterion("name >=", value, "name"); return (Criteria) this; } public Criteria andNameLessThan(String value) { addCriterion("name <", value, "name"); return (Criteria) this; } public Criteria andNameLessThanOrEqualTo(String value) { addCriterion("name <=", value, "name"); return (Criteria) this; } public Criteria andNameLike(String value) { addCriterion("name like", value, "name"); return (Criteria) this; } public Criteria andNameNotLike(String value) { addCriterion("name not like", value, "name"); return (Criteria) this; } public Criteria andNameIn(List<String> values) { addCriterion("name in", values, "name"); return (Criteria) this; } public Criteria andNameNotIn(List<String> values) { addCriterion("name not in", values, "name"); return (Criteria) this; } public Criteria andNameBetween(String value1, String value2) { addCriterion("name between", value1, value2, "name"); return (Criteria) this; } public Criteria andNameNotBetween(String value1, String value2) { addCriterion("name not between", value1, value2, "name"); return (Criteria) this; } public Criteria andDescriptionIsNull() { addCriterion("description is null"); return (Criteria) this; } public Criteria andDescriptionIsNotNull() { addCriterion("description is not null"); return (Criteria) this; } public Criteria andDescriptionEqualTo(String value) { addCriterion("description =", value, "description"); return (Criteria) this; } public Criteria andDescriptionNotEqualTo(String value) { addCriterion("description <>", value, "description"); return (Criteria) this; } public Criteria andDescriptionGreaterThan(String value) { addCriterion("description >", value, "description"); return (Criteria) this; } public Criteria andDescriptionGreaterThanOrEqualTo(String value) { addCriterion("description >=", value, "description"); return (Criteria) this; } public Criteria andDescriptionLessThan(String value) { addCriterion("description <", value, "description"); return (Criteria) this; } public Criteria andDescriptionLessThanOrEqualTo(String value) { addCriterion("description <=", value, "description"); return (Criteria) this; } public Criteria andDescriptionLike(String value) { addCriterion("description like", value, "description"); return (Criteria) this; } public Criteria andDescriptionNotLike(String value) { addCriterion("description not like", value, "description"); return (Criteria) this; } public Criteria andDescriptionIn(List<String> values) { addCriterion("description in", values, "description"); return (Criteria) this; } public Criteria andDescriptionNotIn(List<String> values) { addCriterion("description not in", values, "description"); return (Criteria) this; } public Criteria andDescriptionBetween(String value1, String value2) { addCriterion("description between", value1, value2, "description"); return (Criteria) this; } public Criteria andDescriptionNotBetween(String value1, String value2) { addCriterion("description not between", value1, value2, "description"); return (Criteria) this; } public Criteria andAdminCountIsNull() { addCriterion("admin_count is null"); return (Criteria) this; } public Criteria andAdminCountIsNotNull() { addCriterion("admin_count is not null"); return (Criteria) this; } public Criteria andAdminCountEqualTo(Integer value) { addCriterion("admin_count =", value, "adminCount"); return (Criteria) this; } public Criteria andAdminCountNotEqualTo(Integer value) { addCriterion("admin_count <>", value, "adminCount"); return (Criteria) this; } public Criteria andAdminCountGreaterThan(Integer value) { addCriterion("admin_count >", value, "adminCount"); return (Criteria) this; } public Criteria andAdminCountGreaterThanOrEqualTo(Integer value) { addCriterion("admin_count >=", value, "adminCount"); return (Criteria) this; } public Criteria andAdminCountLessThan(Integer value) { addCriterion("admin_count <", value, "adminCount"); return (Criteria) this; } public Criteria andAdminCountLessThanOrEqualTo(Integer value) { addCriterion("admin_count <=", value, "adminCount"); return (Criteria) this; } public Criteria andAdminCountIn(List<Integer> values) { addCriterion("admin_count in", values, "adminCount"); return (Criteria) this; } public Criteria andAdminCountNotIn(List<Integer> values) { addCriterion("admin_count not in", values, "adminCount"); return (Criteria) this; } public Criteria andAdminCountBetween(Integer value1, Integer value2) { addCriterion("admin_count between", value1, value2, "adminCount"); return (Criteria) this; } public Criteria andAdminCountNotBetween(Integer value1, Integer value2) { addCriterion("admin_count not between", value1, value2, "adminCount"); return (Criteria) this; } public Criteria andCreateTimeIsNull() { addCriterion("create_time is null"); return (Criteria) this; } public Criteria andCreateTimeIsNotNull() { addCriterion("create_time is not null"); return (Criteria) this; } public Criteria andCreateTimeEqualTo(Date value) { addCriterion("create_time =", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotEqualTo(Date value) { addCriterion("create_time <>", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeGreaterThan(Date value) { addCriterion("create_time >", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { addCriterion("create_time >=", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeLessThan(Date value) { addCriterion("create_time <", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeLessThanOrEqualTo(Date value) { addCriterion("create_time <=", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeIn(List<Date> values) { addCriterion("create_time in", values, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotIn(List<Date> values) { addCriterion("create_time not in", values, "createTime"); return (Criteria) this; } public Criteria andCreateTimeBetween(Date value1, Date value2) { addCriterion("create_time between", value1, value2, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotBetween(Date value1, Date value2) { addCriterion("create_time not between", value1, value2, "createTime"); return (Criteria) this; } public Criteria andStatusIsNull() { addCriterion("status is null"); return (Criteria) this; } public Criteria andStatusIsNotNull() { addCriterion("status is not null"); return (Criteria) this; } public Criteria andStatusEqualTo(Integer value) { addCriterion("status =", value, "status"); return (Criteria) this; } public Criteria andStatusNotEqualTo(Integer value) { addCriterion("status <>", value, "status"); return (Criteria) this; } public Criteria andStatusGreaterThan(Integer value) { addCriterion("status >", value, "status"); return (Criteria) this; } public Criteria andStatusGreaterThanOrEqualTo(Integer value) { addCriterion("status >=", value, "status"); return (Criteria) this; } public Criteria andStatusLessThan(Integer value) { addCriterion("status <", value, "status"); return (Criteria) this; } public Criteria andStatusLessThanOrEqualTo(Integer value) { addCriterion("status <=", value, "status"); return (Criteria) this; } public Criteria andStatusIn(List<Integer> values) { addCriterion("status in", values, "status"); return (Criteria) this; } public Criteria andStatusNotIn(List<Integer> values) { addCriterion("status not in", values, "status"); return (Criteria) this; } public Criteria andStatusBetween(Integer value1, Integer value2) { addCriterion("status between", value1, value2, "status"); return (Criteria) this; } public Criteria andStatusNotBetween(Integer value1, Integer value2) { addCriterion("status not between", value1, value2, "status"); return (Criteria) this; } public Criteria andSortIsNull() { addCriterion("sort is null"); return (Criteria) this; } public Criteria andSortIsNotNull() { addCriterion("sort is not null"); return (Criteria) this; } public Criteria andSortEqualTo(Integer value) { addCriterion("sort =", value, "sort"); return (Criteria) this; } public Criteria andSortNotEqualTo(Integer value) { addCriterion("sort <>", value, "sort"); return (Criteria) this; } public Criteria andSortGreaterThan(Integer value) { addCriterion("sort >", value, "sort"); return (Criteria) this; } public Criteria andSortGreaterThanOrEqualTo(Integer value) { addCriterion("sort >=", value, "sort"); return (Criteria) this; } public Criteria andSortLessThan(Integer value) { addCriterion("sort <", value, "sort"); return (Criteria) this; } public Criteria andSortLessThanOrEqualTo(Integer value) { addCriterion("sort <=", value, "sort"); return (Criteria) this; } public Criteria andSortIn(List<Integer> values) { addCriterion("sort in", values, "sort"); return (Criteria) this; } public Criteria andSortNotIn(List<Integer> values) { addCriterion("sort not in", values, "sort"); return (Criteria) this; } public Criteria andSortBetween(Integer value1, Integer value2) { addCriterion("sort between", value1, value2, "sort"); return (Criteria) this; } public Criteria andSortNotBetween(Integer value1, Integer value2) { addCriterion("sort not between", value1, value2, "sort"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionSession.java
mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionSession.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.util.Date; public class SmsFlashPromotionSession implements Serializable { @ApiModelProperty(value = "编号") private Long id; @ApiModelProperty(value = "场次名称") private String name; @ApiModelProperty(value = "每日开始时间") private Date startTime; @ApiModelProperty(value = "每日结束时间") private Date endTime; @ApiModelProperty(value = "启用状态:0->不启用;1->启用") private Integer status; @ApiModelProperty(value = "创建时间") private Date createTime; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Date getStartTime() { return startTime; } public void setStartTime(Date startTime) { this.startTime = startTime; } public Date getEndTime() { return endTime; } public void setEndTime(Date endTime) { this.endTime = endTime; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", name=").append(name); sb.append(", startTime=").append(startTime); sb.append(", endTime=").append(endTime); sb.append(", status=").append(status); sb.append(", createTime=").append(createTime); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttribute.java
mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttribute.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; public class PmsProductAttribute implements Serializable { private Long id; private Long productAttributeCategoryId; private String name; @ApiModelProperty(value = "属性选择类型:0->唯一;1->单选;2->多选") private Integer selectType; @ApiModelProperty(value = "属性录入方式:0->手工录入;1->从列表中选取") private Integer inputType; @ApiModelProperty(value = "可选值列表,以逗号隔开") private String inputList; @ApiModelProperty(value = "排序字段:最高的可以单独上传图片") private Integer sort; @ApiModelProperty(value = "分类筛选样式:1->普通;1->颜色") private Integer filterType; @ApiModelProperty(value = "检索类型;0->不需要进行检索;1->关键字检索;2->范围检索") private Integer searchType; @ApiModelProperty(value = "相同属性产品是否关联;0->不关联;1->关联") private Integer relatedStatus; @ApiModelProperty(value = "是否支持手动新增;0->不支持;1->支持") private Integer handAddStatus; @ApiModelProperty(value = "属性的类型;0->规格;1->参数") private Integer type; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getProductAttributeCategoryId() { return productAttributeCategoryId; } public void setProductAttributeCategoryId(Long productAttributeCategoryId) { this.productAttributeCategoryId = productAttributeCategoryId; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Integer getSelectType() { return selectType; } public void setSelectType(Integer selectType) { this.selectType = selectType; } public Integer getInputType() { return inputType; } public void setInputType(Integer inputType) { this.inputType = inputType; } public String getInputList() { return inputList; } public void setInputList(String inputList) { this.inputList = inputList; } public Integer getSort() { return sort; } public void setSort(Integer sort) { this.sort = sort; } public Integer getFilterType() { return filterType; } public void setFilterType(Integer filterType) { this.filterType = filterType; } public Integer getSearchType() { return searchType; } public void setSearchType(Integer searchType) { this.searchType = searchType; } public Integer getRelatedStatus() { return relatedStatus; } public void setRelatedStatus(Integer relatedStatus) { this.relatedStatus = relatedStatus; } public Integer getHandAddStatus() { return handAddStatus; } public void setHandAddStatus(Integer handAddStatus) { this.handAddStatus = handAddStatus; } public Integer getType() { return type; } public void setType(Integer type) { this.type = type; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", productAttributeCategoryId=").append(productAttributeCategoryId); sb.append(", name=").append(name); sb.append(", selectType=").append(selectType); sb.append(", inputType=").append(inputType); sb.append(", inputList=").append(inputList); sb.append(", sort=").append(sort); sb.append(", filterType=").append(filterType); sb.append(", searchType=").append(searchType); sb.append(", relatedStatus=").append(relatedStatus); sb.append(", handAddStatus=").append(handAddStatus); sb.append(", type=").append(type); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/UmsRoleResourceRelation.java
mall-mbg/src/main/java/com/macro/mall/model/UmsRoleResourceRelation.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; public class UmsRoleResourceRelation implements Serializable { private Long id; @ApiModelProperty(value = "角色ID") private Long roleId; @ApiModelProperty(value = "资源ID") private Long resourceId; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getRoleId() { return roleId; } public void setRoleId(Long roleId) { this.roleId = roleId; } public Long getResourceId() { return resourceId; } public void setResourceId(Long resourceId) { this.resourceId = resourceId; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", roleId=").append(roleId); sb.append(", resourceId=").append(resourceId); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/UmsMemberStatisticsInfo.java
mall-mbg/src/main/java/com/macro/mall/model/UmsMemberStatisticsInfo.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; public class UmsMemberStatisticsInfo implements Serializable { private Long id; private Long memberId; @ApiModelProperty(value = "累计消费金额") private BigDecimal consumeAmount; @ApiModelProperty(value = "订单数量") private Integer orderCount; @ApiModelProperty(value = "优惠券数量") private Integer couponCount; @ApiModelProperty(value = "评价数") private Integer commentCount; @ApiModelProperty(value = "退货数量") private Integer returnOrderCount; @ApiModelProperty(value = "登录次数") private Integer loginCount; @ApiModelProperty(value = "关注数量") private Integer attendCount; @ApiModelProperty(value = "粉丝数量") private Integer fansCount; private Integer collectProductCount; private Integer collectSubjectCount; private Integer collectTopicCount; private Integer collectCommentCount; private Integer inviteFriendCount; @ApiModelProperty(value = "最后一次下订单时间") private Date recentOrderTime; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getMemberId() { return memberId; } public void setMemberId(Long memberId) { this.memberId = memberId; } public BigDecimal getConsumeAmount() { return consumeAmount; } public void setConsumeAmount(BigDecimal consumeAmount) { this.consumeAmount = consumeAmount; } public Integer getOrderCount() { return orderCount; } public void setOrderCount(Integer orderCount) { this.orderCount = orderCount; } public Integer getCouponCount() { return couponCount; } public void setCouponCount(Integer couponCount) { this.couponCount = couponCount; } public Integer getCommentCount() { return commentCount; } public void setCommentCount(Integer commentCount) { this.commentCount = commentCount; } public Integer getReturnOrderCount() { return returnOrderCount; } public void setReturnOrderCount(Integer returnOrderCount) { this.returnOrderCount = returnOrderCount; } public Integer getLoginCount() { return loginCount; } public void setLoginCount(Integer loginCount) { this.loginCount = loginCount; } public Integer getAttendCount() { return attendCount; } public void setAttendCount(Integer attendCount) { this.attendCount = attendCount; } public Integer getFansCount() { return fansCount; } public void setFansCount(Integer fansCount) { this.fansCount = fansCount; } public Integer getCollectProductCount() { return collectProductCount; } public void setCollectProductCount(Integer collectProductCount) { this.collectProductCount = collectProductCount; } public Integer getCollectSubjectCount() { return collectSubjectCount; } public void setCollectSubjectCount(Integer collectSubjectCount) { this.collectSubjectCount = collectSubjectCount; } public Integer getCollectTopicCount() { return collectTopicCount; } public void setCollectTopicCount(Integer collectTopicCount) { this.collectTopicCount = collectTopicCount; } public Integer getCollectCommentCount() { return collectCommentCount; } public void setCollectCommentCount(Integer collectCommentCount) { this.collectCommentCount = collectCommentCount; } public Integer getInviteFriendCount() { return inviteFriendCount; } public void setInviteFriendCount(Integer inviteFriendCount) { this.inviteFriendCount = inviteFriendCount; } public Date getRecentOrderTime() { return recentOrderTime; } public void setRecentOrderTime(Date recentOrderTime) { this.recentOrderTime = recentOrderTime; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", memberId=").append(memberId); sb.append(", consumeAmount=").append(consumeAmount); sb.append(", orderCount=").append(orderCount); sb.append(", couponCount=").append(couponCount); sb.append(", commentCount=").append(commentCount); sb.append(", returnOrderCount=").append(returnOrderCount); sb.append(", loginCount=").append(loginCount); sb.append(", attendCount=").append(attendCount); sb.append(", fansCount=").append(fansCount); sb.append(", collectProductCount=").append(collectProductCount); sb.append(", collectSubjectCount=").append(collectSubjectCount); sb.append(", collectTopicCount=").append(collectTopicCount); sb.append(", collectCommentCount=").append(collectCommentCount); sb.append(", inviteFriendCount=").append(inviteFriendCount); sb.append(", recentOrderTime=").append(recentOrderTime); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/PmsFeightTemplateExample.java
mall-mbg/src/main/java/com/macro/mall/model/PmsFeightTemplateExample.java
package com.macro.mall.model; import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; public class PmsFeightTemplateExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public PmsFeightTemplateExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andNameIsNull() { addCriterion("name is null"); return (Criteria) this; } public Criteria andNameIsNotNull() { addCriterion("name is not null"); return (Criteria) this; } public Criteria andNameEqualTo(String value) { addCriterion("name =", value, "name"); return (Criteria) this; } public Criteria andNameNotEqualTo(String value) { addCriterion("name <>", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThan(String value) { addCriterion("name >", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThanOrEqualTo(String value) { addCriterion("name >=", value, "name"); return (Criteria) this; } public Criteria andNameLessThan(String value) { addCriterion("name <", value, "name"); return (Criteria) this; } public Criteria andNameLessThanOrEqualTo(String value) { addCriterion("name <=", value, "name"); return (Criteria) this; } public Criteria andNameLike(String value) { addCriterion("name like", value, "name"); return (Criteria) this; } public Criteria andNameNotLike(String value) { addCriterion("name not like", value, "name"); return (Criteria) this; } public Criteria andNameIn(List<String> values) { addCriterion("name in", values, "name"); return (Criteria) this; } public Criteria andNameNotIn(List<String> values) { addCriterion("name not in", values, "name"); return (Criteria) this; } public Criteria andNameBetween(String value1, String value2) { addCriterion("name between", value1, value2, "name"); return (Criteria) this; } public Criteria andNameNotBetween(String value1, String value2) { addCriterion("name not between", value1, value2, "name"); return (Criteria) this; } public Criteria andChargeTypeIsNull() { addCriterion("charge_type is null"); return (Criteria) this; } public Criteria andChargeTypeIsNotNull() { addCriterion("charge_type is not null"); return (Criteria) this; } public Criteria andChargeTypeEqualTo(Integer value) { addCriterion("charge_type =", value, "chargeType"); return (Criteria) this; } public Criteria andChargeTypeNotEqualTo(Integer value) { addCriterion("charge_type <>", value, "chargeType"); return (Criteria) this; } public Criteria andChargeTypeGreaterThan(Integer value) { addCriterion("charge_type >", value, "chargeType"); return (Criteria) this; } public Criteria andChargeTypeGreaterThanOrEqualTo(Integer value) { addCriterion("charge_type >=", value, "chargeType"); return (Criteria) this; } public Criteria andChargeTypeLessThan(Integer value) { addCriterion("charge_type <", value, "chargeType"); return (Criteria) this; } public Criteria andChargeTypeLessThanOrEqualTo(Integer value) { addCriterion("charge_type <=", value, "chargeType"); return (Criteria) this; } public Criteria andChargeTypeIn(List<Integer> values) { addCriterion("charge_type in", values, "chargeType"); return (Criteria) this; } public Criteria andChargeTypeNotIn(List<Integer> values) { addCriterion("charge_type not in", values, "chargeType"); return (Criteria) this; } public Criteria andChargeTypeBetween(Integer value1, Integer value2) { addCriterion("charge_type between", value1, value2, "chargeType"); return (Criteria) this; } public Criteria andChargeTypeNotBetween(Integer value1, Integer value2) { addCriterion("charge_type not between", value1, value2, "chargeType"); return (Criteria) this; } public Criteria andFirstWeightIsNull() { addCriterion("first_weight is null"); return (Criteria) this; } public Criteria andFirstWeightIsNotNull() { addCriterion("first_weight is not null"); return (Criteria) this; } public Criteria andFirstWeightEqualTo(BigDecimal value) { addCriterion("first_weight =", value, "firstWeight"); return (Criteria) this; } public Criteria andFirstWeightNotEqualTo(BigDecimal value) { addCriterion("first_weight <>", value, "firstWeight"); return (Criteria) this; } public Criteria andFirstWeightGreaterThan(BigDecimal value) { addCriterion("first_weight >", value, "firstWeight"); return (Criteria) this; } public Criteria andFirstWeightGreaterThanOrEqualTo(BigDecimal value) { addCriterion("first_weight >=", value, "firstWeight"); return (Criteria) this; } public Criteria andFirstWeightLessThan(BigDecimal value) { addCriterion("first_weight <", value, "firstWeight"); return (Criteria) this; } public Criteria andFirstWeightLessThanOrEqualTo(BigDecimal value) { addCriterion("first_weight <=", value, "firstWeight"); return (Criteria) this; } public Criteria andFirstWeightIn(List<BigDecimal> values) { addCriterion("first_weight in", values, "firstWeight"); return (Criteria) this; } public Criteria andFirstWeightNotIn(List<BigDecimal> values) { addCriterion("first_weight not in", values, "firstWeight"); return (Criteria) this; } public Criteria andFirstWeightBetween(BigDecimal value1, BigDecimal value2) { addCriterion("first_weight between", value1, value2, "firstWeight"); return (Criteria) this; } public Criteria andFirstWeightNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("first_weight not between", value1, value2, "firstWeight"); return (Criteria) this; } public Criteria andFirstFeeIsNull() { addCriterion("first_fee is null"); return (Criteria) this; } public Criteria andFirstFeeIsNotNull() { addCriterion("first_fee is not null"); return (Criteria) this; } public Criteria andFirstFeeEqualTo(BigDecimal value) { addCriterion("first_fee =", value, "firstFee"); return (Criteria) this; } public Criteria andFirstFeeNotEqualTo(BigDecimal value) { addCriterion("first_fee <>", value, "firstFee"); return (Criteria) this; } public Criteria andFirstFeeGreaterThan(BigDecimal value) { addCriterion("first_fee >", value, "firstFee"); return (Criteria) this; } public Criteria andFirstFeeGreaterThanOrEqualTo(BigDecimal value) { addCriterion("first_fee >=", value, "firstFee"); return (Criteria) this; } public Criteria andFirstFeeLessThan(BigDecimal value) { addCriterion("first_fee <", value, "firstFee"); return (Criteria) this; } public Criteria andFirstFeeLessThanOrEqualTo(BigDecimal value) { addCriterion("first_fee <=", value, "firstFee"); return (Criteria) this; } public Criteria andFirstFeeIn(List<BigDecimal> values) { addCriterion("first_fee in", values, "firstFee"); return (Criteria) this; } public Criteria andFirstFeeNotIn(List<BigDecimal> values) { addCriterion("first_fee not in", values, "firstFee"); return (Criteria) this; } public Criteria andFirstFeeBetween(BigDecimal value1, BigDecimal value2) { addCriterion("first_fee between", value1, value2, "firstFee"); return (Criteria) this; } public Criteria andFirstFeeNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("first_fee not between", value1, value2, "firstFee"); return (Criteria) this; } public Criteria andContinueWeightIsNull() { addCriterion("continue_weight is null"); return (Criteria) this; } public Criteria andContinueWeightIsNotNull() { addCriterion("continue_weight is not null"); return (Criteria) this; } public Criteria andContinueWeightEqualTo(BigDecimal value) { addCriterion("continue_weight =", value, "continueWeight"); return (Criteria) this; } public Criteria andContinueWeightNotEqualTo(BigDecimal value) { addCriterion("continue_weight <>", value, "continueWeight"); return (Criteria) this; } public Criteria andContinueWeightGreaterThan(BigDecimal value) { addCriterion("continue_weight >", value, "continueWeight"); return (Criteria) this; } public Criteria andContinueWeightGreaterThanOrEqualTo(BigDecimal value) { addCriterion("continue_weight >=", value, "continueWeight"); return (Criteria) this; } public Criteria andContinueWeightLessThan(BigDecimal value) { addCriterion("continue_weight <", value, "continueWeight"); return (Criteria) this; } public Criteria andContinueWeightLessThanOrEqualTo(BigDecimal value) { addCriterion("continue_weight <=", value, "continueWeight"); return (Criteria) this; } public Criteria andContinueWeightIn(List<BigDecimal> values) { addCriterion("continue_weight in", values, "continueWeight"); return (Criteria) this; } public Criteria andContinueWeightNotIn(List<BigDecimal> values) { addCriterion("continue_weight not in", values, "continueWeight"); return (Criteria) this; } public Criteria andContinueWeightBetween(BigDecimal value1, BigDecimal value2) { addCriterion("continue_weight between", value1, value2, "continueWeight"); return (Criteria) this; } public Criteria andContinueWeightNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("continue_weight not between", value1, value2, "continueWeight"); return (Criteria) this; } public Criteria andContinmeFeeIsNull() { addCriterion("continme_fee is null"); return (Criteria) this; } public Criteria andContinmeFeeIsNotNull() { addCriterion("continme_fee is not null"); return (Criteria) this; } public Criteria andContinmeFeeEqualTo(BigDecimal value) { addCriterion("continme_fee =", value, "continmeFee"); return (Criteria) this; } public Criteria andContinmeFeeNotEqualTo(BigDecimal value) { addCriterion("continme_fee <>", value, "continmeFee"); return (Criteria) this; } public Criteria andContinmeFeeGreaterThan(BigDecimal value) { addCriterion("continme_fee >", value, "continmeFee"); return (Criteria) this; } public Criteria andContinmeFeeGreaterThanOrEqualTo(BigDecimal value) { addCriterion("continme_fee >=", value, "continmeFee"); return (Criteria) this; } public Criteria andContinmeFeeLessThan(BigDecimal value) { addCriterion("continme_fee <", value, "continmeFee"); return (Criteria) this; } public Criteria andContinmeFeeLessThanOrEqualTo(BigDecimal value) { addCriterion("continme_fee <=", value, "continmeFee"); return (Criteria) this; } public Criteria andContinmeFeeIn(List<BigDecimal> values) { addCriterion("continme_fee in", values, "continmeFee"); return (Criteria) this; } public Criteria andContinmeFeeNotIn(List<BigDecimal> values) { addCriterion("continme_fee not in", values, "continmeFee"); return (Criteria) this; } public Criteria andContinmeFeeBetween(BigDecimal value1, BigDecimal value2) { addCriterion("continme_fee between", value1, value2, "continmeFee"); return (Criteria) this; } public Criteria andContinmeFeeNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("continme_fee not between", value1, value2, "continmeFee"); return (Criteria) this; } public Criteria andDestIsNull() { addCriterion("dest is null"); return (Criteria) this; } public Criteria andDestIsNotNull() { addCriterion("dest is not null"); return (Criteria) this; } public Criteria andDestEqualTo(String value) { addCriterion("dest =", value, "dest"); return (Criteria) this; } public Criteria andDestNotEqualTo(String value) { addCriterion("dest <>", value, "dest"); return (Criteria) this; } public Criteria andDestGreaterThan(String value) { addCriterion("dest >", value, "dest"); return (Criteria) this; } public Criteria andDestGreaterThanOrEqualTo(String value) { addCriterion("dest >=", value, "dest"); return (Criteria) this; } public Criteria andDestLessThan(String value) { addCriterion("dest <", value, "dest"); return (Criteria) this; } public Criteria andDestLessThanOrEqualTo(String value) { addCriterion("dest <=", value, "dest"); return (Criteria) this; } public Criteria andDestLike(String value) { addCriterion("dest like", value, "dest"); return (Criteria) this; } public Criteria andDestNotLike(String value) { addCriterion("dest not like", value, "dest"); return (Criteria) this; } public Criteria andDestIn(List<String> values) { addCriterion("dest in", values, "dest"); return (Criteria) this; } public Criteria andDestNotIn(List<String> values) { addCriterion("dest not in", values, "dest"); return (Criteria) this; } public Criteria andDestBetween(String value1, String value2) { addCriterion("dest between", value1, value2, "dest"); return (Criteria) this; } public Criteria andDestNotBetween(String value1, String value2) { addCriterion("dest not between", value1, value2, "dest"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/SmsCouponExample.java
mall-mbg/src/main/java/com/macro/mall/model/SmsCouponExample.java
package com.macro.mall.model; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Date; import java.util.List; public class SmsCouponExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public SmsCouponExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andTypeIsNull() { addCriterion("type is null"); return (Criteria) this; } public Criteria andTypeIsNotNull() { addCriterion("type is not null"); return (Criteria) this; } public Criteria andTypeEqualTo(Integer value) { addCriterion("type =", value, "type"); return (Criteria) this; } public Criteria andTypeNotEqualTo(Integer value) { addCriterion("type <>", value, "type"); return (Criteria) this; } public Criteria andTypeGreaterThan(Integer value) { addCriterion("type >", value, "type"); return (Criteria) this; } public Criteria andTypeGreaterThanOrEqualTo(Integer value) { addCriterion("type >=", value, "type"); return (Criteria) this; } public Criteria andTypeLessThan(Integer value) { addCriterion("type <", value, "type"); return (Criteria) this; } public Criteria andTypeLessThanOrEqualTo(Integer value) { addCriterion("type <=", value, "type"); return (Criteria) this; } public Criteria andTypeIn(List<Integer> values) { addCriterion("type in", values, "type"); return (Criteria) this; } public Criteria andTypeNotIn(List<Integer> values) { addCriterion("type not in", values, "type"); return (Criteria) this; } public Criteria andTypeBetween(Integer value1, Integer value2) { addCriterion("type between", value1, value2, "type"); return (Criteria) this; } public Criteria andTypeNotBetween(Integer value1, Integer value2) { addCriterion("type not between", value1, value2, "type"); return (Criteria) this; } public Criteria andNameIsNull() { addCriterion("name is null"); return (Criteria) this; } public Criteria andNameIsNotNull() { addCriterion("name is not null"); return (Criteria) this; } public Criteria andNameEqualTo(String value) { addCriterion("name =", value, "name"); return (Criteria) this; } public Criteria andNameNotEqualTo(String value) { addCriterion("name <>", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThan(String value) { addCriterion("name >", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThanOrEqualTo(String value) { addCriterion("name >=", value, "name"); return (Criteria) this; } public Criteria andNameLessThan(String value) { addCriterion("name <", value, "name"); return (Criteria) this; } public Criteria andNameLessThanOrEqualTo(String value) { addCriterion("name <=", value, "name"); return (Criteria) this; } public Criteria andNameLike(String value) { addCriterion("name like", value, "name"); return (Criteria) this; } public Criteria andNameNotLike(String value) { addCriterion("name not like", value, "name"); return (Criteria) this; } public Criteria andNameIn(List<String> values) { addCriterion("name in", values, "name"); return (Criteria) this; } public Criteria andNameNotIn(List<String> values) { addCriterion("name not in", values, "name"); return (Criteria) this; } public Criteria andNameBetween(String value1, String value2) { addCriterion("name between", value1, value2, "name"); return (Criteria) this; } public Criteria andNameNotBetween(String value1, String value2) { addCriterion("name not between", value1, value2, "name"); return (Criteria) this; } public Criteria andPlatformIsNull() { addCriterion("platform is null"); return (Criteria) this; } public Criteria andPlatformIsNotNull() { addCriterion("platform is not null"); return (Criteria) this; } public Criteria andPlatformEqualTo(Integer value) { addCriterion("platform =", value, "platform"); return (Criteria) this; } public Criteria andPlatformNotEqualTo(Integer value) { addCriterion("platform <>", value, "platform"); return (Criteria) this; } public Criteria andPlatformGreaterThan(Integer value) { addCriterion("platform >", value, "platform"); return (Criteria) this; } public Criteria andPlatformGreaterThanOrEqualTo(Integer value) { addCriterion("platform >=", value, "platform"); return (Criteria) this; } public Criteria andPlatformLessThan(Integer value) { addCriterion("platform <", value, "platform"); return (Criteria) this; } public Criteria andPlatformLessThanOrEqualTo(Integer value) { addCriterion("platform <=", value, "platform"); return (Criteria) this; } public Criteria andPlatformIn(List<Integer> values) { addCriterion("platform in", values, "platform"); return (Criteria) this; } public Criteria andPlatformNotIn(List<Integer> values) { addCriterion("platform not in", values, "platform"); return (Criteria) this; } public Criteria andPlatformBetween(Integer value1, Integer value2) { addCriterion("platform between", value1, value2, "platform"); return (Criteria) this; } public Criteria andPlatformNotBetween(Integer value1, Integer value2) { addCriterion("platform not between", value1, value2, "platform"); return (Criteria) this; } public Criteria andCountIsNull() { addCriterion("count is null"); return (Criteria) this; } public Criteria andCountIsNotNull() { addCriterion("count is not null"); return (Criteria) this; } public Criteria andCountEqualTo(Integer value) { addCriterion("count =", value, "count"); return (Criteria) this; } public Criteria andCountNotEqualTo(Integer value) { addCriterion("count <>", value, "count"); return (Criteria) this; } public Criteria andCountGreaterThan(Integer value) { addCriterion("count >", value, "count"); return (Criteria) this; } public Criteria andCountGreaterThanOrEqualTo(Integer value) { addCriterion("count >=", value, "count"); return (Criteria) this; } public Criteria andCountLessThan(Integer value) { addCriterion("count <", value, "count"); return (Criteria) this; } public Criteria andCountLessThanOrEqualTo(Integer value) { addCriterion("count <=", value, "count"); return (Criteria) this; } public Criteria andCountIn(List<Integer> values) { addCriterion("count in", values, "count"); return (Criteria) this; } public Criteria andCountNotIn(List<Integer> values) { addCriterion("count not in", values, "count"); return (Criteria) this; } public Criteria andCountBetween(Integer value1, Integer value2) { addCriterion("count between", value1, value2, "count"); return (Criteria) this; } public Criteria andCountNotBetween(Integer value1, Integer value2) { addCriterion("count not between", value1, value2, "count"); return (Criteria) this; } public Criteria andAmountIsNull() { addCriterion("amount is null"); return (Criteria) this; } public Criteria andAmountIsNotNull() { addCriterion("amount is not null"); return (Criteria) this; } public Criteria andAmountEqualTo(BigDecimal value) { addCriterion("amount =", value, "amount"); return (Criteria) this; } public Criteria andAmountNotEqualTo(BigDecimal value) { addCriterion("amount <>", value, "amount"); return (Criteria) this; } public Criteria andAmountGreaterThan(BigDecimal value) { addCriterion("amount >", value, "amount"); return (Criteria) this; } public Criteria andAmountGreaterThanOrEqualTo(BigDecimal value) { addCriterion("amount >=", value, "amount"); return (Criteria) this; } public Criteria andAmountLessThan(BigDecimal value) { addCriterion("amount <", value, "amount"); return (Criteria) this; } public Criteria andAmountLessThanOrEqualTo(BigDecimal value) { addCriterion("amount <=", value, "amount"); return (Criteria) this; } public Criteria andAmountIn(List<BigDecimal> values) { addCriterion("amount in", values, "amount"); return (Criteria) this; } public Criteria andAmountNotIn(List<BigDecimal> values) { addCriterion("amount not in", values, "amount"); return (Criteria) this; } public Criteria andAmountBetween(BigDecimal value1, BigDecimal value2) { addCriterion("amount between", value1, value2, "amount"); return (Criteria) this; } public Criteria andAmountNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("amount not between", value1, value2, "amount"); return (Criteria) this; } public Criteria andPerLimitIsNull() { addCriterion("per_limit is null"); return (Criteria) this; } public Criteria andPerLimitIsNotNull() { addCriterion("per_limit is not null"); return (Criteria) this; } public Criteria andPerLimitEqualTo(Integer value) { addCriterion("per_limit =", value, "perLimit"); return (Criteria) this; } public Criteria andPerLimitNotEqualTo(Integer value) { addCriterion("per_limit <>", value, "perLimit"); return (Criteria) this; } public Criteria andPerLimitGreaterThan(Integer value) { addCriterion("per_limit >", value, "perLimit"); return (Criteria) this; } public Criteria andPerLimitGreaterThanOrEqualTo(Integer value) { addCriterion("per_limit >=", value, "perLimit"); return (Criteria) this; } public Criteria andPerLimitLessThan(Integer value) { addCriterion("per_limit <", value, "perLimit"); return (Criteria) this; } public Criteria andPerLimitLessThanOrEqualTo(Integer value) { addCriterion("per_limit <=", value, "perLimit"); return (Criteria) this; } public Criteria andPerLimitIn(List<Integer> values) { addCriterion("per_limit in", values, "perLimit"); return (Criteria) this; } public Criteria andPerLimitNotIn(List<Integer> values) { addCriterion("per_limit not in", values, "perLimit"); return (Criteria) this; } public Criteria andPerLimitBetween(Integer value1, Integer value2) { addCriterion("per_limit between", value1, value2, "perLimit"); return (Criteria) this; } public Criteria andPerLimitNotBetween(Integer value1, Integer value2) { addCriterion("per_limit not between", value1, value2, "perLimit"); return (Criteria) this; } public Criteria andMinPointIsNull() { addCriterion("min_point is null"); return (Criteria) this; } public Criteria andMinPointIsNotNull() { addCriterion("min_point is not null"); return (Criteria) this; } public Criteria andMinPointEqualTo(BigDecimal value) { addCriterion("min_point =", value, "minPoint"); return (Criteria) this; } public Criteria andMinPointNotEqualTo(BigDecimal value) { addCriterion("min_point <>", value, "minPoint"); return (Criteria) this; } public Criteria andMinPointGreaterThan(BigDecimal value) { addCriterion("min_point >", value, "minPoint"); return (Criteria) this; } public Criteria andMinPointGreaterThanOrEqualTo(BigDecimal value) { addCriterion("min_point >=", value, "minPoint"); return (Criteria) this; } public Criteria andMinPointLessThan(BigDecimal value) { addCriterion("min_point <", value, "minPoint"); return (Criteria) this; } public Criteria andMinPointLessThanOrEqualTo(BigDecimal value) { addCriterion("min_point <=", value, "minPoint"); return (Criteria) this; } public Criteria andMinPointIn(List<BigDecimal> values) { addCriterion("min_point in", values, "minPoint"); return (Criteria) this; } public Criteria andMinPointNotIn(List<BigDecimal> values) { addCriterion("min_point not in", values, "minPoint"); return (Criteria) this; } public Criteria andMinPointBetween(BigDecimal value1, BigDecimal value2) { addCriterion("min_point between", value1, value2, "minPoint"); return (Criteria) this; } public Criteria andMinPointNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("min_point not between", value1, value2, "minPoint"); return (Criteria) this; } public Criteria andStartTimeIsNull() { addCriterion("start_time is null"); return (Criteria) this; } public Criteria andStartTimeIsNotNull() { addCriterion("start_time is not null"); return (Criteria) this; } public Criteria andStartTimeEqualTo(Date value) { addCriterion("start_time =", value, "startTime"); return (Criteria) this; } public Criteria andStartTimeNotEqualTo(Date value) { addCriterion("start_time <>", value, "startTime"); return (Criteria) this; } public Criteria andStartTimeGreaterThan(Date value) { addCriterion("start_time >", value, "startTime"); return (Criteria) this; } public Criteria andStartTimeGreaterThanOrEqualTo(Date value) { addCriterion("start_time >=", value, "startTime"); return (Criteria) this; } public Criteria andStartTimeLessThan(Date value) { addCriterion("start_time <", value, "startTime"); return (Criteria) this; } public Criteria andStartTimeLessThanOrEqualTo(Date value) { addCriterion("start_time <=", value, "startTime"); return (Criteria) this; } public Criteria andStartTimeIn(List<Date> values) { addCriterion("start_time in", values, "startTime"); return (Criteria) this; } public Criteria andStartTimeNotIn(List<Date> values) { addCriterion("start_time not in", values, "startTime"); return (Criteria) this; } public Criteria andStartTimeBetween(Date value1, Date value2) { addCriterion("start_time between", value1, value2, "startTime"); return (Criteria) this; } public Criteria andStartTimeNotBetween(Date value1, Date value2) { addCriterion("start_time not between", value1, value2, "startTime"); return (Criteria) this; } public Criteria andEndTimeIsNull() { addCriterion("end_time is null"); return (Criteria) this; } public Criteria andEndTimeIsNotNull() { addCriterion("end_time is not null"); return (Criteria) this; } public Criteria andEndTimeEqualTo(Date value) { addCriterion("end_time =", value, "endTime"); return (Criteria) this; } public Criteria andEndTimeNotEqualTo(Date value) { addCriterion("end_time <>", value, "endTime"); return (Criteria) this; } public Criteria andEndTimeGreaterThan(Date value) { addCriterion("end_time >", value, "endTime"); return (Criteria) this; } public Criteria andEndTimeGreaterThanOrEqualTo(Date value) { addCriterion("end_time >=", value, "endTime"); return (Criteria) this; } public Criteria andEndTimeLessThan(Date value) { addCriterion("end_time <", value, "endTime"); return (Criteria) this; } public Criteria andEndTimeLessThanOrEqualTo(Date value) { addCriterion("end_time <=", value, "endTime"); return (Criteria) this; } public Criteria andEndTimeIn(List<Date> values) { addCriterion("end_time in", values, "endTime"); return (Criteria) this; } public Criteria andEndTimeNotIn(List<Date> values) { addCriterion("end_time not in", values, "endTime"); return (Criteria) this; } public Criteria andEndTimeBetween(Date value1, Date value2) { addCriterion("end_time between", value1, value2, "endTime"); return (Criteria) this; } public Criteria andEndTimeNotBetween(Date value1, Date value2) { addCriterion("end_time not between", value1, value2, "endTime"); return (Criteria) this; } public Criteria andUseTypeIsNull() { addCriterion("use_type is null"); return (Criteria) this; } public Criteria andUseTypeIsNotNull() { addCriterion("use_type is not null"); return (Criteria) this; } public Criteria andUseTypeEqualTo(Integer value) { addCriterion("use_type =", value, "useType"); return (Criteria) this; } public Criteria andUseTypeNotEqualTo(Integer value) { addCriterion("use_type <>", value, "useType"); return (Criteria) this; } public Criteria andUseTypeGreaterThan(Integer value) { addCriterion("use_type >", value, "useType"); return (Criteria) this; } public Criteria andUseTypeGreaterThanOrEqualTo(Integer value) { addCriterion("use_type >=", value, "useType"); return (Criteria) this; } public Criteria andUseTypeLessThan(Integer value) { addCriterion("use_type <", value, "useType"); return (Criteria) this; } public Criteria andUseTypeLessThanOrEqualTo(Integer value) { addCriterion("use_type <=", value, "useType"); return (Criteria) this; } public Criteria andUseTypeIn(List<Integer> values) { addCriterion("use_type in", values, "useType"); return (Criteria) this; } public Criteria andUseTypeNotIn(List<Integer> values) { addCriterion("use_type not in", values, "useType"); return (Criteria) this; } public Criteria andUseTypeBetween(Integer value1, Integer value2) { addCriterion("use_type between", value1, value2, "useType"); return (Criteria) this; } public Criteria andUseTypeNotBetween(Integer value1, Integer value2) { addCriterion("use_type not between", value1, value2, "useType"); return (Criteria) this; } public Criteria andNoteIsNull() { addCriterion("note is null"); return (Criteria) this; } public Criteria andNoteIsNotNull() { addCriterion("note is not null"); return (Criteria) this; } public Criteria andNoteEqualTo(String value) { addCriterion("note =", value, "note"); return (Criteria) this; } public Criteria andNoteNotEqualTo(String value) { addCriterion("note <>", value, "note"); return (Criteria) this; } public Criteria andNoteGreaterThan(String value) { addCriterion("note >", value, "note"); return (Criteria) this; } public Criteria andNoteGreaterThanOrEqualTo(String value) { addCriterion("note >=", value, "note"); return (Criteria) this; } public Criteria andNoteLessThan(String value) { addCriterion("note <", value, "note"); return (Criteria) this; } public Criteria andNoteLessThanOrEqualTo(String value) { addCriterion("note <=", value, "note"); return (Criteria) this; } public Criteria andNoteLike(String value) { addCriterion("note like", value, "note"); return (Criteria) this; } public Criteria andNoteNotLike(String value) { addCriterion("note not like", value, "note"); return (Criteria) this; } public Criteria andNoteIn(List<String> values) { addCriterion("note in", values, "note"); return (Criteria) this; } public Criteria andNoteNotIn(List<String> values) { addCriterion("note not in", values, "note"); return (Criteria) this; } public Criteria andNoteBetween(String value1, String value2) { addCriterion("note between", value1, value2, "note"); return (Criteria) this; } public Criteria andNoteNotBetween(String value1, String value2) { addCriterion("note not between", value1, value2, "note"); return (Criteria) this; } public Criteria andPublishCountIsNull() { addCriterion("publish_count is null"); return (Criteria) this; } public Criteria andPublishCountIsNotNull() { addCriterion("publish_count is not null"); return (Criteria) this; } public Criteria andPublishCountEqualTo(Integer value) { addCriterion("publish_count =", value, "publishCount"); return (Criteria) this; } public Criteria andPublishCountNotEqualTo(Integer value) { addCriterion("publish_count <>", value, "publishCount"); return (Criteria) this; } public Criteria andPublishCountGreaterThan(Integer value) { addCriterion("publish_count >", value, "publishCount"); return (Criteria) this; } public Criteria andPublishCountGreaterThanOrEqualTo(Integer value) { addCriterion("publish_count >=", value, "publishCount"); return (Criteria) this; } public Criteria andPublishCountLessThan(Integer value) { addCriterion("publish_count <", value, "publishCount"); return (Criteria) this; } public Criteria andPublishCountLessThanOrEqualTo(Integer value) { addCriterion("publish_count <=", value, "publishCount"); return (Criteria) this; } public Criteria andPublishCountIn(List<Integer> values) { addCriterion("publish_count in", values, "publishCount"); return (Criteria) this; } public Criteria andPublishCountNotIn(List<Integer> values) { addCriterion("publish_count not in", values, "publishCount"); return (Criteria) this; } public Criteria andPublishCountBetween(Integer value1, Integer value2) { addCriterion("publish_count between", value1, value2, "publishCount"); return (Criteria) this; } public Criteria andPublishCountNotBetween(Integer value1, Integer value2) { addCriterion("publish_count not between", value1, value2, "publishCount"); return (Criteria) this; } public Criteria andUseCountIsNull() { addCriterion("use_count is null"); return (Criteria) this; } public Criteria andUseCountIsNotNull() { addCriterion("use_count is not null"); return (Criteria) this; } public Criteria andUseCountEqualTo(Integer value) { addCriterion("use_count =", value, "useCount"); return (Criteria) this; } public Criteria andUseCountNotEqualTo(Integer value) { addCriterion("use_count <>", value, "useCount"); return (Criteria) this; } public Criteria andUseCountGreaterThan(Integer value) { addCriterion("use_count >", value, "useCount"); return (Criteria) this; } public Criteria andUseCountGreaterThanOrEqualTo(Integer value) { addCriterion("use_count >=", value, "useCount"); return (Criteria) this; } public Criteria andUseCountLessThan(Integer value) { addCriterion("use_count <", value, "useCount"); return (Criteria) this; } public Criteria andUseCountLessThanOrEqualTo(Integer value) { addCriterion("use_count <=", value, "useCount"); return (Criteria) this; } public Criteria andUseCountIn(List<Integer> values) { addCriterion("use_count in", values, "useCount"); return (Criteria) this; } public Criteria andUseCountNotIn(List<Integer> values) { addCriterion("use_count not in", values, "useCount"); return (Criteria) this; } public Criteria andUseCountBetween(Integer value1, Integer value2) { addCriterion("use_count between", value1, value2, "useCount"); return (Criteria) this; } public Criteria andUseCountNotBetween(Integer value1, Integer value2) { addCriterion("use_count not between", value1, value2, "useCount"); return (Criteria) this; } public Criteria andReceiveCountIsNull() { addCriterion("receive_count is null"); return (Criteria) this; } public Criteria andReceiveCountIsNotNull() { addCriterion("receive_count is not null"); return (Criteria) this; } public Criteria andReceiveCountEqualTo(Integer value) { addCriterion("receive_count =", value, "receiveCount"); return (Criteria) this; } public Criteria andReceiveCountNotEqualTo(Integer value) { addCriterion("receive_count <>", value, "receiveCount"); return (Criteria) this; } public Criteria andReceiveCountGreaterThan(Integer value) { addCriterion("receive_count >", value, "receiveCount"); return (Criteria) this; } public Criteria andReceiveCountGreaterThanOrEqualTo(Integer value) { addCriterion("receive_count >=", value, "receiveCount"); return (Criteria) this; }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
true
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/SmsHomeNewProductExample.java
mall-mbg/src/main/java/com/macro/mall/model/SmsHomeNewProductExample.java
package com.macro.mall.model; import java.util.ArrayList; import java.util.List; public class SmsHomeNewProductExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public SmsHomeNewProductExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andProductIdIsNull() { addCriterion("product_id is null"); return (Criteria) this; } public Criteria andProductIdIsNotNull() { addCriterion("product_id is not null"); return (Criteria) this; } public Criteria andProductIdEqualTo(Long value) { addCriterion("product_id =", value, "productId"); return (Criteria) this; } public Criteria andProductIdNotEqualTo(Long value) { addCriterion("product_id <>", value, "productId"); return (Criteria) this; } public Criteria andProductIdGreaterThan(Long value) { addCriterion("product_id >", value, "productId"); return (Criteria) this; } public Criteria andProductIdGreaterThanOrEqualTo(Long value) { addCriterion("product_id >=", value, "productId"); return (Criteria) this; } public Criteria andProductIdLessThan(Long value) { addCriterion("product_id <", value, "productId"); return (Criteria) this; } public Criteria andProductIdLessThanOrEqualTo(Long value) { addCriterion("product_id <=", value, "productId"); return (Criteria) this; } public Criteria andProductIdIn(List<Long> values) { addCriterion("product_id in", values, "productId"); return (Criteria) this; } public Criteria andProductIdNotIn(List<Long> values) { addCriterion("product_id not in", values, "productId"); return (Criteria) this; } public Criteria andProductIdBetween(Long value1, Long value2) { addCriterion("product_id between", value1, value2, "productId"); return (Criteria) this; } public Criteria andProductIdNotBetween(Long value1, Long value2) { addCriterion("product_id not between", value1, value2, "productId"); return (Criteria) this; } public Criteria andProductNameIsNull() { addCriterion("product_name is null"); return (Criteria) this; } public Criteria andProductNameIsNotNull() { addCriterion("product_name is not null"); return (Criteria) this; } public Criteria andProductNameEqualTo(String value) { addCriterion("product_name =", value, "productName"); return (Criteria) this; } public Criteria andProductNameNotEqualTo(String value) { addCriterion("product_name <>", value, "productName"); return (Criteria) this; } public Criteria andProductNameGreaterThan(String value) { addCriterion("product_name >", value, "productName"); return (Criteria) this; } public Criteria andProductNameGreaterThanOrEqualTo(String value) { addCriterion("product_name >=", value, "productName"); return (Criteria) this; } public Criteria andProductNameLessThan(String value) { addCriterion("product_name <", value, "productName"); return (Criteria) this; } public Criteria andProductNameLessThanOrEqualTo(String value) { addCriterion("product_name <=", value, "productName"); return (Criteria) this; } public Criteria andProductNameLike(String value) { addCriterion("product_name like", value, "productName"); return (Criteria) this; } public Criteria andProductNameNotLike(String value) { addCriterion("product_name not like", value, "productName"); return (Criteria) this; } public Criteria andProductNameIn(List<String> values) { addCriterion("product_name in", values, "productName"); return (Criteria) this; } public Criteria andProductNameNotIn(List<String> values) { addCriterion("product_name not in", values, "productName"); return (Criteria) this; } public Criteria andProductNameBetween(String value1, String value2) { addCriterion("product_name between", value1, value2, "productName"); return (Criteria) this; } public Criteria andProductNameNotBetween(String value1, String value2) { addCriterion("product_name not between", value1, value2, "productName"); return (Criteria) this; } public Criteria andRecommendStatusIsNull() { addCriterion("recommend_status is null"); return (Criteria) this; } public Criteria andRecommendStatusIsNotNull() { addCriterion("recommend_status is not null"); return (Criteria) this; } public Criteria andRecommendStatusEqualTo(Integer value) { addCriterion("recommend_status =", value, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusNotEqualTo(Integer value) { addCriterion("recommend_status <>", value, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusGreaterThan(Integer value) { addCriterion("recommend_status >", value, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusGreaterThanOrEqualTo(Integer value) { addCriterion("recommend_status >=", value, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusLessThan(Integer value) { addCriterion("recommend_status <", value, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusLessThanOrEqualTo(Integer value) { addCriterion("recommend_status <=", value, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusIn(List<Integer> values) { addCriterion("recommend_status in", values, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusNotIn(List<Integer> values) { addCriterion("recommend_status not in", values, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusBetween(Integer value1, Integer value2) { addCriterion("recommend_status between", value1, value2, "recommendStatus"); return (Criteria) this; } public Criteria andRecommendStatusNotBetween(Integer value1, Integer value2) { addCriterion("recommend_status not between", value1, value2, "recommendStatus"); return (Criteria) this; } public Criteria andSortIsNull() { addCriterion("sort is null"); return (Criteria) this; } public Criteria andSortIsNotNull() { addCriterion("sort is not null"); return (Criteria) this; } public Criteria andSortEqualTo(Integer value) { addCriterion("sort =", value, "sort"); return (Criteria) this; } public Criteria andSortNotEqualTo(Integer value) { addCriterion("sort <>", value, "sort"); return (Criteria) this; } public Criteria andSortGreaterThan(Integer value) { addCriterion("sort >", value, "sort"); return (Criteria) this; } public Criteria andSortGreaterThanOrEqualTo(Integer value) { addCriterion("sort >=", value, "sort"); return (Criteria) this; } public Criteria andSortLessThan(Integer value) { addCriterion("sort <", value, "sort"); return (Criteria) this; } public Criteria andSortLessThanOrEqualTo(Integer value) { addCriterion("sort <=", value, "sort"); return (Criteria) this; } public Criteria andSortIn(List<Integer> values) { addCriterion("sort in", values, "sort"); return (Criteria) this; } public Criteria andSortNotIn(List<Integer> values) { addCriterion("sort not in", values, "sort"); return (Criteria) this; } public Criteria andSortBetween(Integer value1, Integer value2) { addCriterion("sort between", value1, value2, "sort"); return (Criteria) this; } public Criteria andSortNotBetween(Integer value1, Integer value2) { addCriterion("sort not between", value1, value2, "sort"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/UmsMemberTagExample.java
mall-mbg/src/main/java/com/macro/mall/model/UmsMemberTagExample.java
package com.macro.mall.model; import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; public class UmsMemberTagExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public UmsMemberTagExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andNameIsNull() { addCriterion("name is null"); return (Criteria) this; } public Criteria andNameIsNotNull() { addCriterion("name is not null"); return (Criteria) this; } public Criteria andNameEqualTo(String value) { addCriterion("name =", value, "name"); return (Criteria) this; } public Criteria andNameNotEqualTo(String value) { addCriterion("name <>", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThan(String value) { addCriterion("name >", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThanOrEqualTo(String value) { addCriterion("name >=", value, "name"); return (Criteria) this; } public Criteria andNameLessThan(String value) { addCriterion("name <", value, "name"); return (Criteria) this; } public Criteria andNameLessThanOrEqualTo(String value) { addCriterion("name <=", value, "name"); return (Criteria) this; } public Criteria andNameLike(String value) { addCriterion("name like", value, "name"); return (Criteria) this; } public Criteria andNameNotLike(String value) { addCriterion("name not like", value, "name"); return (Criteria) this; } public Criteria andNameIn(List<String> values) { addCriterion("name in", values, "name"); return (Criteria) this; } public Criteria andNameNotIn(List<String> values) { addCriterion("name not in", values, "name"); return (Criteria) this; } public Criteria andNameBetween(String value1, String value2) { addCriterion("name between", value1, value2, "name"); return (Criteria) this; } public Criteria andNameNotBetween(String value1, String value2) { addCriterion("name not between", value1, value2, "name"); return (Criteria) this; } public Criteria andFinishOrderCountIsNull() { addCriterion("finish_order_count is null"); return (Criteria) this; } public Criteria andFinishOrderCountIsNotNull() { addCriterion("finish_order_count is not null"); return (Criteria) this; } public Criteria andFinishOrderCountEqualTo(Integer value) { addCriterion("finish_order_count =", value, "finishOrderCount"); return (Criteria) this; } public Criteria andFinishOrderCountNotEqualTo(Integer value) { addCriterion("finish_order_count <>", value, "finishOrderCount"); return (Criteria) this; } public Criteria andFinishOrderCountGreaterThan(Integer value) { addCriterion("finish_order_count >", value, "finishOrderCount"); return (Criteria) this; } public Criteria andFinishOrderCountGreaterThanOrEqualTo(Integer value) { addCriterion("finish_order_count >=", value, "finishOrderCount"); return (Criteria) this; } public Criteria andFinishOrderCountLessThan(Integer value) { addCriterion("finish_order_count <", value, "finishOrderCount"); return (Criteria) this; } public Criteria andFinishOrderCountLessThanOrEqualTo(Integer value) { addCriterion("finish_order_count <=", value, "finishOrderCount"); return (Criteria) this; } public Criteria andFinishOrderCountIn(List<Integer> values) { addCriterion("finish_order_count in", values, "finishOrderCount"); return (Criteria) this; } public Criteria andFinishOrderCountNotIn(List<Integer> values) { addCriterion("finish_order_count not in", values, "finishOrderCount"); return (Criteria) this; } public Criteria andFinishOrderCountBetween(Integer value1, Integer value2) { addCriterion("finish_order_count between", value1, value2, "finishOrderCount"); return (Criteria) this; } public Criteria andFinishOrderCountNotBetween(Integer value1, Integer value2) { addCriterion("finish_order_count not between", value1, value2, "finishOrderCount"); return (Criteria) this; } public Criteria andFinishOrderAmountIsNull() { addCriterion("finish_order_amount is null"); return (Criteria) this; } public Criteria andFinishOrderAmountIsNotNull() { addCriterion("finish_order_amount is not null"); return (Criteria) this; } public Criteria andFinishOrderAmountEqualTo(BigDecimal value) { addCriterion("finish_order_amount =", value, "finishOrderAmount"); return (Criteria) this; } public Criteria andFinishOrderAmountNotEqualTo(BigDecimal value) { addCriterion("finish_order_amount <>", value, "finishOrderAmount"); return (Criteria) this; } public Criteria andFinishOrderAmountGreaterThan(BigDecimal value) { addCriterion("finish_order_amount >", value, "finishOrderAmount"); return (Criteria) this; } public Criteria andFinishOrderAmountGreaterThanOrEqualTo(BigDecimal value) { addCriterion("finish_order_amount >=", value, "finishOrderAmount"); return (Criteria) this; } public Criteria andFinishOrderAmountLessThan(BigDecimal value) { addCriterion("finish_order_amount <", value, "finishOrderAmount"); return (Criteria) this; } public Criteria andFinishOrderAmountLessThanOrEqualTo(BigDecimal value) { addCriterion("finish_order_amount <=", value, "finishOrderAmount"); return (Criteria) this; } public Criteria andFinishOrderAmountIn(List<BigDecimal> values) { addCriterion("finish_order_amount in", values, "finishOrderAmount"); return (Criteria) this; } public Criteria andFinishOrderAmountNotIn(List<BigDecimal> values) { addCriterion("finish_order_amount not in", values, "finishOrderAmount"); return (Criteria) this; } public Criteria andFinishOrderAmountBetween(BigDecimal value1, BigDecimal value2) { addCriterion("finish_order_amount between", value1, value2, "finishOrderAmount"); return (Criteria) this; } public Criteria andFinishOrderAmountNotBetween(BigDecimal value1, BigDecimal value2) { addCriterion("finish_order_amount not between", value1, value2, "finishOrderAmount"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/UmsRoleMenuRelation.java
mall-mbg/src/main/java/com/macro/mall/model/UmsRoleMenuRelation.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; public class UmsRoleMenuRelation implements Serializable { private Long id; @ApiModelProperty(value = "角色ID") private Long roleId; @ApiModelProperty(value = "菜单ID") private Long menuId; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getRoleId() { return roleId; } public void setRoleId(Long roleId) { this.roleId = roleId; } public Long getMenuId() { return menuId; } public void setMenuId(Long menuId) { this.menuId = menuId; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", roleId=").append(roleId); sb.append(", menuId=").append(menuId); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/UmsRoleResourceRelationExample.java
mall-mbg/src/main/java/com/macro/mall/model/UmsRoleResourceRelationExample.java
package com.macro.mall.model; import java.util.ArrayList; import java.util.List; public class UmsRoleResourceRelationExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public UmsRoleResourceRelationExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andRoleIdIsNull() { addCriterion("role_id is null"); return (Criteria) this; } public Criteria andRoleIdIsNotNull() { addCriterion("role_id is not null"); return (Criteria) this; } public Criteria andRoleIdEqualTo(Long value) { addCriterion("role_id =", value, "roleId"); return (Criteria) this; } public Criteria andRoleIdNotEqualTo(Long value) { addCriterion("role_id <>", value, "roleId"); return (Criteria) this; } public Criteria andRoleIdGreaterThan(Long value) { addCriterion("role_id >", value, "roleId"); return (Criteria) this; } public Criteria andRoleIdGreaterThanOrEqualTo(Long value) { addCriterion("role_id >=", value, "roleId"); return (Criteria) this; } public Criteria andRoleIdLessThan(Long value) { addCriterion("role_id <", value, "roleId"); return (Criteria) this; } public Criteria andRoleIdLessThanOrEqualTo(Long value) { addCriterion("role_id <=", value, "roleId"); return (Criteria) this; } public Criteria andRoleIdIn(List<Long> values) { addCriterion("role_id in", values, "roleId"); return (Criteria) this; } public Criteria andRoleIdNotIn(List<Long> values) { addCriterion("role_id not in", values, "roleId"); return (Criteria) this; } public Criteria andRoleIdBetween(Long value1, Long value2) { addCriterion("role_id between", value1, value2, "roleId"); return (Criteria) this; } public Criteria andRoleIdNotBetween(Long value1, Long value2) { addCriterion("role_id not between", value1, value2, "roleId"); return (Criteria) this; } public Criteria andResourceIdIsNull() { addCriterion("resource_id is null"); return (Criteria) this; } public Criteria andResourceIdIsNotNull() { addCriterion("resource_id is not null"); return (Criteria) this; } public Criteria andResourceIdEqualTo(Long value) { addCriterion("resource_id =", value, "resourceId"); return (Criteria) this; } public Criteria andResourceIdNotEqualTo(Long value) { addCriterion("resource_id <>", value, "resourceId"); return (Criteria) this; } public Criteria andResourceIdGreaterThan(Long value) { addCriterion("resource_id >", value, "resourceId"); return (Criteria) this; } public Criteria andResourceIdGreaterThanOrEqualTo(Long value) { addCriterion("resource_id >=", value, "resourceId"); return (Criteria) this; } public Criteria andResourceIdLessThan(Long value) { addCriterion("resource_id <", value, "resourceId"); return (Criteria) this; } public Criteria andResourceIdLessThanOrEqualTo(Long value) { addCriterion("resource_id <=", value, "resourceId"); return (Criteria) this; } public Criteria andResourceIdIn(List<Long> values) { addCriterion("resource_id in", values, "resourceId"); return (Criteria) this; } public Criteria andResourceIdNotIn(List<Long> values) { addCriterion("resource_id not in", values, "resourceId"); return (Criteria) this; } public Criteria andResourceIdBetween(Long value1, Long value2) { addCriterion("resource_id between", value1, value2, "resourceId"); return (Criteria) this; } public Criteria andResourceIdNotBetween(Long value1, Long value2) { addCriterion("resource_id not between", value1, value2, "resourceId"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/UmsPermissionExample.java
mall-mbg/src/main/java/com/macro/mall/model/UmsPermissionExample.java
package com.macro.mall.model; import java.util.ArrayList; import java.util.Date; import java.util.List; public class UmsPermissionExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public UmsPermissionExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andPidIsNull() { addCriterion("pid is null"); return (Criteria) this; } public Criteria andPidIsNotNull() { addCriterion("pid is not null"); return (Criteria) this; } public Criteria andPidEqualTo(Long value) { addCriterion("pid =", value, "pid"); return (Criteria) this; } public Criteria andPidNotEqualTo(Long value) { addCriterion("pid <>", value, "pid"); return (Criteria) this; } public Criteria andPidGreaterThan(Long value) { addCriterion("pid >", value, "pid"); return (Criteria) this; } public Criteria andPidGreaterThanOrEqualTo(Long value) { addCriterion("pid >=", value, "pid"); return (Criteria) this; } public Criteria andPidLessThan(Long value) { addCriterion("pid <", value, "pid"); return (Criteria) this; } public Criteria andPidLessThanOrEqualTo(Long value) { addCriterion("pid <=", value, "pid"); return (Criteria) this; } public Criteria andPidIn(List<Long> values) { addCriterion("pid in", values, "pid"); return (Criteria) this; } public Criteria andPidNotIn(List<Long> values) { addCriterion("pid not in", values, "pid"); return (Criteria) this; } public Criteria andPidBetween(Long value1, Long value2) { addCriterion("pid between", value1, value2, "pid"); return (Criteria) this; } public Criteria andPidNotBetween(Long value1, Long value2) { addCriterion("pid not between", value1, value2, "pid"); return (Criteria) this; } public Criteria andNameIsNull() { addCriterion("name is null"); return (Criteria) this; } public Criteria andNameIsNotNull() { addCriterion("name is not null"); return (Criteria) this; } public Criteria andNameEqualTo(String value) { addCriterion("name =", value, "name"); return (Criteria) this; } public Criteria andNameNotEqualTo(String value) { addCriterion("name <>", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThan(String value) { addCriterion("name >", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThanOrEqualTo(String value) { addCriterion("name >=", value, "name"); return (Criteria) this; } public Criteria andNameLessThan(String value) { addCriterion("name <", value, "name"); return (Criteria) this; } public Criteria andNameLessThanOrEqualTo(String value) { addCriterion("name <=", value, "name"); return (Criteria) this; } public Criteria andNameLike(String value) { addCriterion("name like", value, "name"); return (Criteria) this; } public Criteria andNameNotLike(String value) { addCriterion("name not like", value, "name"); return (Criteria) this; } public Criteria andNameIn(List<String> values) { addCriterion("name in", values, "name"); return (Criteria) this; } public Criteria andNameNotIn(List<String> values) { addCriterion("name not in", values, "name"); return (Criteria) this; } public Criteria andNameBetween(String value1, String value2) { addCriterion("name between", value1, value2, "name"); return (Criteria) this; } public Criteria andNameNotBetween(String value1, String value2) { addCriterion("name not between", value1, value2, "name"); return (Criteria) this; } public Criteria andValueIsNull() { addCriterion("value is null"); return (Criteria) this; } public Criteria andValueIsNotNull() { addCriterion("value is not null"); return (Criteria) this; } public Criteria andValueEqualTo(String value) { addCriterion("value =", value, "value"); return (Criteria) this; } public Criteria andValueNotEqualTo(String value) { addCriterion("value <>", value, "value"); return (Criteria) this; } public Criteria andValueGreaterThan(String value) { addCriterion("value >", value, "value"); return (Criteria) this; } public Criteria andValueGreaterThanOrEqualTo(String value) { addCriterion("value >=", value, "value"); return (Criteria) this; } public Criteria andValueLessThan(String value) { addCriterion("value <", value, "value"); return (Criteria) this; } public Criteria andValueLessThanOrEqualTo(String value) { addCriterion("value <=", value, "value"); return (Criteria) this; } public Criteria andValueLike(String value) { addCriterion("value like", value, "value"); return (Criteria) this; } public Criteria andValueNotLike(String value) { addCriterion("value not like", value, "value"); return (Criteria) this; } public Criteria andValueIn(List<String> values) { addCriterion("value in", values, "value"); return (Criteria) this; } public Criteria andValueNotIn(List<String> values) { addCriterion("value not in", values, "value"); return (Criteria) this; } public Criteria andValueBetween(String value1, String value2) { addCriterion("value between", value1, value2, "value"); return (Criteria) this; } public Criteria andValueNotBetween(String value1, String value2) { addCriterion("value not between", value1, value2, "value"); return (Criteria) this; } public Criteria andIconIsNull() { addCriterion("icon is null"); return (Criteria) this; } public Criteria andIconIsNotNull() { addCriterion("icon is not null"); return (Criteria) this; } public Criteria andIconEqualTo(String value) { addCriterion("icon =", value, "icon"); return (Criteria) this; } public Criteria andIconNotEqualTo(String value) { addCriterion("icon <>", value, "icon"); return (Criteria) this; } public Criteria andIconGreaterThan(String value) { addCriterion("icon >", value, "icon"); return (Criteria) this; } public Criteria andIconGreaterThanOrEqualTo(String value) { addCriterion("icon >=", value, "icon"); return (Criteria) this; } public Criteria andIconLessThan(String value) { addCriterion("icon <", value, "icon"); return (Criteria) this; } public Criteria andIconLessThanOrEqualTo(String value) { addCriterion("icon <=", value, "icon"); return (Criteria) this; } public Criteria andIconLike(String value) { addCriterion("icon like", value, "icon"); return (Criteria) this; } public Criteria andIconNotLike(String value) { addCriterion("icon not like", value, "icon"); return (Criteria) this; } public Criteria andIconIn(List<String> values) { addCriterion("icon in", values, "icon"); return (Criteria) this; } public Criteria andIconNotIn(List<String> values) { addCriterion("icon not in", values, "icon"); return (Criteria) this; } public Criteria andIconBetween(String value1, String value2) { addCriterion("icon between", value1, value2, "icon"); return (Criteria) this; } public Criteria andIconNotBetween(String value1, String value2) { addCriterion("icon not between", value1, value2, "icon"); return (Criteria) this; } public Criteria andTypeIsNull() { addCriterion("type is null"); return (Criteria) this; } public Criteria andTypeIsNotNull() { addCriterion("type is not null"); return (Criteria) this; } public Criteria andTypeEqualTo(Integer value) { addCriterion("type =", value, "type"); return (Criteria) this; } public Criteria andTypeNotEqualTo(Integer value) { addCriterion("type <>", value, "type"); return (Criteria) this; } public Criteria andTypeGreaterThan(Integer value) { addCriterion("type >", value, "type"); return (Criteria) this; } public Criteria andTypeGreaterThanOrEqualTo(Integer value) { addCriterion("type >=", value, "type"); return (Criteria) this; } public Criteria andTypeLessThan(Integer value) { addCriterion("type <", value, "type"); return (Criteria) this; } public Criteria andTypeLessThanOrEqualTo(Integer value) { addCriterion("type <=", value, "type"); return (Criteria) this; } public Criteria andTypeIn(List<Integer> values) { addCriterion("type in", values, "type"); return (Criteria) this; } public Criteria andTypeNotIn(List<Integer> values) { addCriterion("type not in", values, "type"); return (Criteria) this; } public Criteria andTypeBetween(Integer value1, Integer value2) { addCriterion("type between", value1, value2, "type"); return (Criteria) this; } public Criteria andTypeNotBetween(Integer value1, Integer value2) { addCriterion("type not between", value1, value2, "type"); return (Criteria) this; } public Criteria andUriIsNull() { addCriterion("uri is null"); return (Criteria) this; } public Criteria andUriIsNotNull() { addCriterion("uri is not null"); return (Criteria) this; } public Criteria andUriEqualTo(String value) { addCriterion("uri =", value, "uri"); return (Criteria) this; } public Criteria andUriNotEqualTo(String value) { addCriterion("uri <>", value, "uri"); return (Criteria) this; } public Criteria andUriGreaterThan(String value) { addCriterion("uri >", value, "uri"); return (Criteria) this; } public Criteria andUriGreaterThanOrEqualTo(String value) { addCriterion("uri >=", value, "uri"); return (Criteria) this; } public Criteria andUriLessThan(String value) { addCriterion("uri <", value, "uri"); return (Criteria) this; } public Criteria andUriLessThanOrEqualTo(String value) { addCriterion("uri <=", value, "uri"); return (Criteria) this; } public Criteria andUriLike(String value) { addCriterion("uri like", value, "uri"); return (Criteria) this; } public Criteria andUriNotLike(String value) { addCriterion("uri not like", value, "uri"); return (Criteria) this; } public Criteria andUriIn(List<String> values) { addCriterion("uri in", values, "uri"); return (Criteria) this; } public Criteria andUriNotIn(List<String> values) { addCriterion("uri not in", values, "uri"); return (Criteria) this; } public Criteria andUriBetween(String value1, String value2) { addCriterion("uri between", value1, value2, "uri"); return (Criteria) this; } public Criteria andUriNotBetween(String value1, String value2) { addCriterion("uri not between", value1, value2, "uri"); return (Criteria) this; } public Criteria andStatusIsNull() { addCriterion("status is null"); return (Criteria) this; } public Criteria andStatusIsNotNull() { addCriterion("status is not null"); return (Criteria) this; } public Criteria andStatusEqualTo(Integer value) { addCriterion("status =", value, "status"); return (Criteria) this; } public Criteria andStatusNotEqualTo(Integer value) { addCriterion("status <>", value, "status"); return (Criteria) this; } public Criteria andStatusGreaterThan(Integer value) { addCriterion("status >", value, "status"); return (Criteria) this; } public Criteria andStatusGreaterThanOrEqualTo(Integer value) { addCriterion("status >=", value, "status"); return (Criteria) this; } public Criteria andStatusLessThan(Integer value) { addCriterion("status <", value, "status"); return (Criteria) this; } public Criteria andStatusLessThanOrEqualTo(Integer value) { addCriterion("status <=", value, "status"); return (Criteria) this; } public Criteria andStatusIn(List<Integer> values) { addCriterion("status in", values, "status"); return (Criteria) this; } public Criteria andStatusNotIn(List<Integer> values) { addCriterion("status not in", values, "status"); return (Criteria) this; } public Criteria andStatusBetween(Integer value1, Integer value2) { addCriterion("status between", value1, value2, "status"); return (Criteria) this; } public Criteria andStatusNotBetween(Integer value1, Integer value2) { addCriterion("status not between", value1, value2, "status"); return (Criteria) this; } public Criteria andCreateTimeIsNull() { addCriterion("create_time is null"); return (Criteria) this; } public Criteria andCreateTimeIsNotNull() { addCriterion("create_time is not null"); return (Criteria) this; } public Criteria andCreateTimeEqualTo(Date value) { addCriterion("create_time =", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotEqualTo(Date value) { addCriterion("create_time <>", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeGreaterThan(Date value) { addCriterion("create_time >", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { addCriterion("create_time >=", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeLessThan(Date value) { addCriterion("create_time <", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeLessThanOrEqualTo(Date value) { addCriterion("create_time <=", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeIn(List<Date> values) { addCriterion("create_time in", values, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotIn(List<Date> values) { addCriterion("create_time not in", values, "createTime"); return (Criteria) this; } public Criteria andCreateTimeBetween(Date value1, Date value2) { addCriterion("create_time between", value1, value2, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotBetween(Date value1, Date value2) { addCriterion("create_time not between", value1, value2, "createTime"); return (Criteria) this; } public Criteria andSortIsNull() { addCriterion("sort is null"); return (Criteria) this; } public Criteria andSortIsNotNull() { addCriterion("sort is not null"); return (Criteria) this; } public Criteria andSortEqualTo(Integer value) { addCriterion("sort =", value, "sort"); return (Criteria) this; } public Criteria andSortNotEqualTo(Integer value) { addCriterion("sort <>", value, "sort"); return (Criteria) this; } public Criteria andSortGreaterThan(Integer value) { addCriterion("sort >", value, "sort"); return (Criteria) this; } public Criteria andSortGreaterThanOrEqualTo(Integer value) { addCriterion("sort >=", value, "sort"); return (Criteria) this; } public Criteria andSortLessThan(Integer value) { addCriterion("sort <", value, "sort"); return (Criteria) this; } public Criteria andSortLessThanOrEqualTo(Integer value) { addCriterion("sort <=", value, "sort"); return (Criteria) this; } public Criteria andSortIn(List<Integer> values) { addCriterion("sort in", values, "sort"); return (Criteria) this; } public Criteria andSortNotIn(List<Integer> values) { addCriterion("sort not in", values, "sort"); return (Criteria) this; } public Criteria andSortBetween(Integer value1, Integer value2) { addCriterion("sort between", value1, value2, "sort"); return (Criteria) this; } public Criteria andSortNotBetween(Integer value1, Integer value2) { addCriterion("sort not between", value1, value2, "sort"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/OmsOrderOperateHistory.java
mall-mbg/src/main/java/com/macro/mall/model/OmsOrderOperateHistory.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.util.Date; public class OmsOrderOperateHistory implements Serializable { private Long id; @ApiModelProperty(value = "订单id") private Long orderId; @ApiModelProperty(value = "操作人:用户;系统;后台管理员") private String operateMan; @ApiModelProperty(value = "操作时间") private Date createTime; @ApiModelProperty(value = "订单状态:0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单") private Integer orderStatus; @ApiModelProperty(value = "备注") private String note; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getOrderId() { return orderId; } public void setOrderId(Long orderId) { this.orderId = orderId; } public String getOperateMan() { return operateMan; } public void setOperateMan(String operateMan) { this.operateMan = operateMan; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Integer getOrderStatus() { return orderStatus; } public void setOrderStatus(Integer orderStatus) { this.orderStatus = orderStatus; } public String getNote() { return note; } public void setNote(String note) { this.note = note; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", orderId=").append(orderId); sb.append(", operateMan=").append(operateMan); sb.append(", createTime=").append(createTime); sb.append(", orderStatus=").append(orderStatus); sb.append(", note=").append(note); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/UmsMemberTaskExample.java
mall-mbg/src/main/java/com/macro/mall/model/UmsMemberTaskExample.java
package com.macro.mall.model; import java.util.ArrayList; import java.util.List; public class UmsMemberTaskExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public UmsMemberTaskExample() { oredCriteria = new ArrayList<>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("id is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("id is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Long value) { addCriterion("id =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Long value) { addCriterion("id <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Long value) { addCriterion("id >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Long value) { addCriterion("id >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Long value) { addCriterion("id <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Long value) { addCriterion("id <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Long> values) { addCriterion("id in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Long> values) { addCriterion("id not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Long value1, Long value2) { addCriterion("id between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Long value1, Long value2) { addCriterion("id not between", value1, value2, "id"); return (Criteria) this; } public Criteria andNameIsNull() { addCriterion("name is null"); return (Criteria) this; } public Criteria andNameIsNotNull() { addCriterion("name is not null"); return (Criteria) this; } public Criteria andNameEqualTo(String value) { addCriterion("name =", value, "name"); return (Criteria) this; } public Criteria andNameNotEqualTo(String value) { addCriterion("name <>", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThan(String value) { addCriterion("name >", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThanOrEqualTo(String value) { addCriterion("name >=", value, "name"); return (Criteria) this; } public Criteria andNameLessThan(String value) { addCriterion("name <", value, "name"); return (Criteria) this; } public Criteria andNameLessThanOrEqualTo(String value) { addCriterion("name <=", value, "name"); return (Criteria) this; } public Criteria andNameLike(String value) { addCriterion("name like", value, "name"); return (Criteria) this; } public Criteria andNameNotLike(String value) { addCriterion("name not like", value, "name"); return (Criteria) this; } public Criteria andNameIn(List<String> values) { addCriterion("name in", values, "name"); return (Criteria) this; } public Criteria andNameNotIn(List<String> values) { addCriterion("name not in", values, "name"); return (Criteria) this; } public Criteria andNameBetween(String value1, String value2) { addCriterion("name between", value1, value2, "name"); return (Criteria) this; } public Criteria andNameNotBetween(String value1, String value2) { addCriterion("name not between", value1, value2, "name"); return (Criteria) this; } public Criteria andGrowthIsNull() { addCriterion("growth is null"); return (Criteria) this; } public Criteria andGrowthIsNotNull() { addCriterion("growth is not null"); return (Criteria) this; } public Criteria andGrowthEqualTo(Integer value) { addCriterion("growth =", value, "growth"); return (Criteria) this; } public Criteria andGrowthNotEqualTo(Integer value) { addCriterion("growth <>", value, "growth"); return (Criteria) this; } public Criteria andGrowthGreaterThan(Integer value) { addCriterion("growth >", value, "growth"); return (Criteria) this; } public Criteria andGrowthGreaterThanOrEqualTo(Integer value) { addCriterion("growth >=", value, "growth"); return (Criteria) this; } public Criteria andGrowthLessThan(Integer value) { addCriterion("growth <", value, "growth"); return (Criteria) this; } public Criteria andGrowthLessThanOrEqualTo(Integer value) { addCriterion("growth <=", value, "growth"); return (Criteria) this; } public Criteria andGrowthIn(List<Integer> values) { addCriterion("growth in", values, "growth"); return (Criteria) this; } public Criteria andGrowthNotIn(List<Integer> values) { addCriterion("growth not in", values, "growth"); return (Criteria) this; } public Criteria andGrowthBetween(Integer value1, Integer value2) { addCriterion("growth between", value1, value2, "growth"); return (Criteria) this; } public Criteria andGrowthNotBetween(Integer value1, Integer value2) { addCriterion("growth not between", value1, value2, "growth"); return (Criteria) this; } public Criteria andIntergrationIsNull() { addCriterion("intergration is null"); return (Criteria) this; } public Criteria andIntergrationIsNotNull() { addCriterion("intergration is not null"); return (Criteria) this; } public Criteria andIntergrationEqualTo(Integer value) { addCriterion("intergration =", value, "intergration"); return (Criteria) this; } public Criteria andIntergrationNotEqualTo(Integer value) { addCriterion("intergration <>", value, "intergration"); return (Criteria) this; } public Criteria andIntergrationGreaterThan(Integer value) { addCriterion("intergration >", value, "intergration"); return (Criteria) this; } public Criteria andIntergrationGreaterThanOrEqualTo(Integer value) { addCriterion("intergration >=", value, "intergration"); return (Criteria) this; } public Criteria andIntergrationLessThan(Integer value) { addCriterion("intergration <", value, "intergration"); return (Criteria) this; } public Criteria andIntergrationLessThanOrEqualTo(Integer value) { addCriterion("intergration <=", value, "intergration"); return (Criteria) this; } public Criteria andIntergrationIn(List<Integer> values) { addCriterion("intergration in", values, "intergration"); return (Criteria) this; } public Criteria andIntergrationNotIn(List<Integer> values) { addCriterion("intergration not in", values, "intergration"); return (Criteria) this; } public Criteria andIntergrationBetween(Integer value1, Integer value2) { addCriterion("intergration between", value1, value2, "intergration"); return (Criteria) this; } public Criteria andIntergrationNotBetween(Integer value1, Integer value2) { addCriterion("intergration not between", value1, value2, "intergration"); return (Criteria) this; } public Criteria andTypeIsNull() { addCriterion("type is null"); return (Criteria) this; } public Criteria andTypeIsNotNull() { addCriterion("type is not null"); return (Criteria) this; } public Criteria andTypeEqualTo(Integer value) { addCriterion("type =", value, "type"); return (Criteria) this; } public Criteria andTypeNotEqualTo(Integer value) { addCriterion("type <>", value, "type"); return (Criteria) this; } public Criteria andTypeGreaterThan(Integer value) { addCriterion("type >", value, "type"); return (Criteria) this; } public Criteria andTypeGreaterThanOrEqualTo(Integer value) { addCriterion("type >=", value, "type"); return (Criteria) this; } public Criteria andTypeLessThan(Integer value) { addCriterion("type <", value, "type"); return (Criteria) this; } public Criteria andTypeLessThanOrEqualTo(Integer value) { addCriterion("type <=", value, "type"); return (Criteria) this; } public Criteria andTypeIn(List<Integer> values) { addCriterion("type in", values, "type"); return (Criteria) this; } public Criteria andTypeNotIn(List<Integer> values) { addCriterion("type not in", values, "type"); return (Criteria) this; } public Criteria andTypeBetween(Integer value1, Integer value2) { addCriterion("type between", value1, value2, "type"); return (Criteria) this; } public Criteria andTypeNotBetween(Integer value1, Integer value2) { addCriterion("type not between", value1, value2, "type"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/CmsTopic.java
mall-mbg/src/main/java/com/macro/mall/model/CmsTopic.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.util.Date; public class CmsTopic implements Serializable { private Long id; private Long categoryId; private String name; private Date createTime; private Date startTime; private Date endTime; @ApiModelProperty(value = "参与人数") private Integer attendCount; @ApiModelProperty(value = "关注人数") private Integer attentionCount; private Integer readCount; @ApiModelProperty(value = "奖品名称") private String awardName; @ApiModelProperty(value = "参与方式") private String attendType; @ApiModelProperty(value = "话题内容") private String content; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getCategoryId() { return categoryId; } public void setCategoryId(Long categoryId) { this.categoryId = categoryId; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Date getStartTime() { return startTime; } public void setStartTime(Date startTime) { this.startTime = startTime; } public Date getEndTime() { return endTime; } public void setEndTime(Date endTime) { this.endTime = endTime; } public Integer getAttendCount() { return attendCount; } public void setAttendCount(Integer attendCount) { this.attendCount = attendCount; } public Integer getAttentionCount() { return attentionCount; } public void setAttentionCount(Integer attentionCount) { this.attentionCount = attentionCount; } public Integer getReadCount() { return readCount; } public void setReadCount(Integer readCount) { this.readCount = readCount; } public String getAwardName() { return awardName; } public void setAwardName(String awardName) { this.awardName = awardName; } public String getAttendType() { return attendType; } public void setAttendType(String attendType) { this.attendType = attendType; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", categoryId=").append(categoryId); sb.append(", name=").append(name); sb.append(", createTime=").append(createTime); sb.append(", startTime=").append(startTime); sb.append(", endTime=").append(endTime); sb.append(", attendCount=").append(attendCount); sb.append(", attentionCount=").append(attentionCount); sb.append(", readCount=").append(readCount); sb.append(", awardName=").append(awardName); sb.append(", attendType=").append(attendType); sb.append(", content=").append(content); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/OmsOrder.java
mall-mbg/src/main/java/com/macro/mall/model/OmsOrder.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; public class OmsOrder implements Serializable { @ApiModelProperty(value = "订单id") private Long id; private Long memberId; private Long couponId; @ApiModelProperty(value = "订单编号") private String orderSn; @ApiModelProperty(value = "提交时间") private Date createTime; @ApiModelProperty(value = "用户帐号") private String memberUsername; @ApiModelProperty(value = "订单总金额") private BigDecimal totalAmount; @ApiModelProperty(value = "应付金额(实际支付金额)") private BigDecimal payAmount; @ApiModelProperty(value = "运费金额") private BigDecimal freightAmount; @ApiModelProperty(value = "促销优化金额(促销价、满减、阶梯价)") private BigDecimal promotionAmount; @ApiModelProperty(value = "积分抵扣金额") private BigDecimal integrationAmount; @ApiModelProperty(value = "优惠券抵扣金额") private BigDecimal couponAmount; @ApiModelProperty(value = "管理员后台调整订单使用的折扣金额") private BigDecimal discountAmount; @ApiModelProperty(value = "支付方式:0->未支付;1->支付宝;2->微信") private Integer payType; @ApiModelProperty(value = "订单来源:0->PC订单;1->app订单") private Integer sourceType; @ApiModelProperty(value = "订单状态:0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单") private Integer status; @ApiModelProperty(value = "订单类型:0->正常订单;1->秒杀订单") private Integer orderType; @ApiModelProperty(value = "物流公司(配送方式)") private String deliveryCompany; @ApiModelProperty(value = "物流单号") private String deliverySn; @ApiModelProperty(value = "自动确认时间(天)") private Integer autoConfirmDay; @ApiModelProperty(value = "可以获得的积分") private Integer integration; @ApiModelProperty(value = "可以活动的成长值") private Integer growth; @ApiModelProperty(value = "活动信息") private String promotionInfo; @ApiModelProperty(value = "发票类型:0->不开发票;1->电子发票;2->纸质发票") private Integer billType; @ApiModelProperty(value = "发票抬头") private String billHeader; @ApiModelProperty(value = "发票内容") private String billContent; @ApiModelProperty(value = "收票人电话") private String billReceiverPhone; @ApiModelProperty(value = "收票人邮箱") private String billReceiverEmail; @ApiModelProperty(value = "收货人姓名") private String receiverName; @ApiModelProperty(value = "收货人电话") private String receiverPhone; @ApiModelProperty(value = "收货人邮编") private String receiverPostCode; @ApiModelProperty(value = "省份/直辖市") private String receiverProvince; @ApiModelProperty(value = "城市") private String receiverCity; @ApiModelProperty(value = "区") private String receiverRegion; @ApiModelProperty(value = "详细地址") private String receiverDetailAddress; @ApiModelProperty(value = "订单备注") private String note; @ApiModelProperty(value = "确认收货状态:0->未确认;1->已确认") private Integer confirmStatus; @ApiModelProperty(value = "删除状态:0->未删除;1->已删除") private Integer deleteStatus; @ApiModelProperty(value = "下单时使用的积分") private Integer useIntegration; @ApiModelProperty(value = "支付时间") private Date paymentTime; @ApiModelProperty(value = "发货时间") private Date deliveryTime; @ApiModelProperty(value = "确认收货时间") private Date receiveTime; @ApiModelProperty(value = "评价时间") private Date commentTime; @ApiModelProperty(value = "修改时间") private Date modifyTime; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getMemberId() { return memberId; } public void setMemberId(Long memberId) { this.memberId = memberId; } public Long getCouponId() { return couponId; } public void setCouponId(Long couponId) { this.couponId = couponId; } public String getOrderSn() { return orderSn; } public void setOrderSn(String orderSn) { this.orderSn = orderSn; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public String getMemberUsername() { return memberUsername; } public void setMemberUsername(String memberUsername) { this.memberUsername = memberUsername; } public BigDecimal getTotalAmount() { return totalAmount; } public void setTotalAmount(BigDecimal totalAmount) { this.totalAmount = totalAmount; } public BigDecimal getPayAmount() { return payAmount; } public void setPayAmount(BigDecimal payAmount) { this.payAmount = payAmount; } public BigDecimal getFreightAmount() { return freightAmount; } public void setFreightAmount(BigDecimal freightAmount) { this.freightAmount = freightAmount; } public BigDecimal getPromotionAmount() { return promotionAmount; } public void setPromotionAmount(BigDecimal promotionAmount) { this.promotionAmount = promotionAmount; } public BigDecimal getIntegrationAmount() { return integrationAmount; } public void setIntegrationAmount(BigDecimal integrationAmount) { this.integrationAmount = integrationAmount; } public BigDecimal getCouponAmount() { return couponAmount; } public void setCouponAmount(BigDecimal couponAmount) { this.couponAmount = couponAmount; } public BigDecimal getDiscountAmount() { return discountAmount; } public void setDiscountAmount(BigDecimal discountAmount) { this.discountAmount = discountAmount; } public Integer getPayType() { return payType; } public void setPayType(Integer payType) { this.payType = payType; } public Integer getSourceType() { return sourceType; } public void setSourceType(Integer sourceType) { this.sourceType = sourceType; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } public Integer getOrderType() { return orderType; } public void setOrderType(Integer orderType) { this.orderType = orderType; } public String getDeliveryCompany() { return deliveryCompany; } public void setDeliveryCompany(String deliveryCompany) { this.deliveryCompany = deliveryCompany; } public String getDeliverySn() { return deliverySn; } public void setDeliverySn(String deliverySn) { this.deliverySn = deliverySn; } public Integer getAutoConfirmDay() { return autoConfirmDay; } public void setAutoConfirmDay(Integer autoConfirmDay) { this.autoConfirmDay = autoConfirmDay; } public Integer getIntegration() { return integration; } public void setIntegration(Integer integration) { this.integration = integration; } public Integer getGrowth() { return growth; } public void setGrowth(Integer growth) { this.growth = growth; } public String getPromotionInfo() { return promotionInfo; } public void setPromotionInfo(String promotionInfo) { this.promotionInfo = promotionInfo; } public Integer getBillType() { return billType; } public void setBillType(Integer billType) { this.billType = billType; } public String getBillHeader() { return billHeader; } public void setBillHeader(String billHeader) { this.billHeader = billHeader; } public String getBillContent() { return billContent; } public void setBillContent(String billContent) { this.billContent = billContent; } public String getBillReceiverPhone() { return billReceiverPhone; } public void setBillReceiverPhone(String billReceiverPhone) { this.billReceiverPhone = billReceiverPhone; } public String getBillReceiverEmail() { return billReceiverEmail; } public void setBillReceiverEmail(String billReceiverEmail) { this.billReceiverEmail = billReceiverEmail; } public String getReceiverName() { return receiverName; } public void setReceiverName(String receiverName) { this.receiverName = receiverName; } public String getReceiverPhone() { return receiverPhone; } public void setReceiverPhone(String receiverPhone) { this.receiverPhone = receiverPhone; } public String getReceiverPostCode() { return receiverPostCode; } public void setReceiverPostCode(String receiverPostCode) { this.receiverPostCode = receiverPostCode; } public String getReceiverProvince() { return receiverProvince; } public void setReceiverProvince(String receiverProvince) { this.receiverProvince = receiverProvince; } public String getReceiverCity() { return receiverCity; } public void setReceiverCity(String receiverCity) { this.receiverCity = receiverCity; } public String getReceiverRegion() { return receiverRegion; } public void setReceiverRegion(String receiverRegion) { this.receiverRegion = receiverRegion; } public String getReceiverDetailAddress() { return receiverDetailAddress; } public void setReceiverDetailAddress(String receiverDetailAddress) { this.receiverDetailAddress = receiverDetailAddress; } public String getNote() { return note; } public void setNote(String note) { this.note = note; } public Integer getConfirmStatus() { return confirmStatus; } public void setConfirmStatus(Integer confirmStatus) { this.confirmStatus = confirmStatus; } public Integer getDeleteStatus() { return deleteStatus; } public void setDeleteStatus(Integer deleteStatus) { this.deleteStatus = deleteStatus; } public Integer getUseIntegration() { return useIntegration; } public void setUseIntegration(Integer useIntegration) { this.useIntegration = useIntegration; } public Date getPaymentTime() { return paymentTime; } public void setPaymentTime(Date paymentTime) { this.paymentTime = paymentTime; } public Date getDeliveryTime() { return deliveryTime; } public void setDeliveryTime(Date deliveryTime) { this.deliveryTime = deliveryTime; } public Date getReceiveTime() { return receiveTime; } public void setReceiveTime(Date receiveTime) { this.receiveTime = receiveTime; } public Date getCommentTime() { return commentTime; } public void setCommentTime(Date commentTime) { this.commentTime = commentTime; } public Date getModifyTime() { return modifyTime; } public void setModifyTime(Date modifyTime) { this.modifyTime = modifyTime; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", memberId=").append(memberId); sb.append(", couponId=").append(couponId); sb.append(", orderSn=").append(orderSn); sb.append(", createTime=").append(createTime); sb.append(", memberUsername=").append(memberUsername); sb.append(", totalAmount=").append(totalAmount); sb.append(", payAmount=").append(payAmount); sb.append(", freightAmount=").append(freightAmount); sb.append(", promotionAmount=").append(promotionAmount); sb.append(", integrationAmount=").append(integrationAmount); sb.append(", couponAmount=").append(couponAmount); sb.append(", discountAmount=").append(discountAmount); sb.append(", payType=").append(payType); sb.append(", sourceType=").append(sourceType); sb.append(", status=").append(status); sb.append(", orderType=").append(orderType); sb.append(", deliveryCompany=").append(deliveryCompany); sb.append(", deliverySn=").append(deliverySn); sb.append(", autoConfirmDay=").append(autoConfirmDay); sb.append(", integration=").append(integration); sb.append(", growth=").append(growth); sb.append(", promotionInfo=").append(promotionInfo); sb.append(", billType=").append(billType); sb.append(", billHeader=").append(billHeader); sb.append(", billContent=").append(billContent); sb.append(", billReceiverPhone=").append(billReceiverPhone); sb.append(", billReceiverEmail=").append(billReceiverEmail); sb.append(", receiverName=").append(receiverName); sb.append(", receiverPhone=").append(receiverPhone); sb.append(", receiverPostCode=").append(receiverPostCode); sb.append(", receiverProvince=").append(receiverProvince); sb.append(", receiverCity=").append(receiverCity); sb.append(", receiverRegion=").append(receiverRegion); sb.append(", receiverDetailAddress=").append(receiverDetailAddress); sb.append(", note=").append(note); sb.append(", confirmStatus=").append(confirmStatus); sb.append(", deleteStatus=").append(deleteStatus); sb.append(", useIntegration=").append(useIntegration); sb.append(", paymentTime=").append(paymentTime); sb.append(", deliveryTime=").append(deliveryTime); sb.append(", receiveTime=").append(receiveTime); sb.append(", commentTime=").append(commentTime); sb.append(", modifyTime=").append(modifyTime); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/PmsComment.java
mall-mbg/src/main/java/com/macro/mall/model/PmsComment.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.util.Date; public class PmsComment implements Serializable { private Long id; private Long productId; private String memberNickName; private String productName; @ApiModelProperty(value = "评价星数:0->5") private Integer star; @ApiModelProperty(value = "评价的ip") private String memberIp; private Date createTime; private Integer showStatus; @ApiModelProperty(value = "购买时的商品属性") private String productAttribute; private Integer collectCouont; private Integer readCount; @ApiModelProperty(value = "上传图片地址,以逗号隔开") private String pics; @ApiModelProperty(value = "评论用户头像") private String memberIcon; private Integer replayCount; private String content; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getProductId() { return productId; } public void setProductId(Long productId) { this.productId = productId; } public String getMemberNickName() { return memberNickName; } public void setMemberNickName(String memberNickName) { this.memberNickName = memberNickName; } public String getProductName() { return productName; } public void setProductName(String productName) { this.productName = productName; } public Integer getStar() { return star; } public void setStar(Integer star) { this.star = star; } public String getMemberIp() { return memberIp; } public void setMemberIp(String memberIp) { this.memberIp = memberIp; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Integer getShowStatus() { return showStatus; } public void setShowStatus(Integer showStatus) { this.showStatus = showStatus; } public String getProductAttribute() { return productAttribute; } public void setProductAttribute(String productAttribute) { this.productAttribute = productAttribute; } public Integer getCollectCouont() { return collectCouont; } public void setCollectCouont(Integer collectCouont) { this.collectCouont = collectCouont; } public Integer getReadCount() { return readCount; } public void setReadCount(Integer readCount) { this.readCount = readCount; } public String getPics() { return pics; } public void setPics(String pics) { this.pics = pics; } public String getMemberIcon() { return memberIcon; } public void setMemberIcon(String memberIcon) { this.memberIcon = memberIcon; } public Integer getReplayCount() { return replayCount; } public void setReplayCount(Integer replayCount) { this.replayCount = replayCount; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", productId=").append(productId); sb.append(", memberNickName=").append(memberNickName); sb.append(", productName=").append(productName); sb.append(", star=").append(star); sb.append(", memberIp=").append(memberIp); sb.append(", createTime=").append(createTime); sb.append(", showStatus=").append(showStatus); sb.append(", productAttribute=").append(productAttribute); sb.append(", collectCouont=").append(collectCouont); sb.append(", readCount=").append(readCount); sb.append(", pics=").append(pics); sb.append(", memberIcon=").append(memberIcon); sb.append(", replayCount=").append(replayCount); sb.append(", content=").append(content); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false
macrozheng/mall
https://github.com/macrozheng/mall/blob/dd6569c3558f79af5b21aad601349e0f029b9a6d/mall-mbg/src/main/java/com/macro/mall/model/SmsCoupon.java
mall-mbg/src/main/java/com/macro/mall/model/SmsCoupon.java
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; public class SmsCoupon implements Serializable { private Long id; @ApiModelProperty(value = "优惠券类型;0->全场赠券;1->会员赠券;2->购物赠券;3->注册赠券") private Integer type; private String name; @ApiModelProperty(value = "使用平台:0->全部;1->移动;2->PC") private Integer platform; @ApiModelProperty(value = "数量") private Integer count; @ApiModelProperty(value = "金额") private BigDecimal amount; @ApiModelProperty(value = "每人限领张数") private Integer perLimit; @ApiModelProperty(value = "使用门槛;0表示无门槛") private BigDecimal minPoint; private Date startTime; private Date endTime; @ApiModelProperty(value = "使用类型:0->全场通用;1->指定分类;2->指定商品") private Integer useType; @ApiModelProperty(value = "备注") private String note; @ApiModelProperty(value = "发行数量") private Integer publishCount; @ApiModelProperty(value = "已使用数量") private Integer useCount; @ApiModelProperty(value = "领取数量") private Integer receiveCount; @ApiModelProperty(value = "可以领取的日期") private Date enableTime; @ApiModelProperty(value = "优惠码") private String code; @ApiModelProperty(value = "可领取的会员类型:0->无限时") private Integer memberLevel; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Integer getType() { return type; } public void setType(Integer type) { this.type = type; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Integer getPlatform() { return platform; } public void setPlatform(Integer platform) { this.platform = platform; } public Integer getCount() { return count; } public void setCount(Integer count) { this.count = count; } public BigDecimal getAmount() { return amount; } public void setAmount(BigDecimal amount) { this.amount = amount; } public Integer getPerLimit() { return perLimit; } public void setPerLimit(Integer perLimit) { this.perLimit = perLimit; } public BigDecimal getMinPoint() { return minPoint; } public void setMinPoint(BigDecimal minPoint) { this.minPoint = minPoint; } public Date getStartTime() { return startTime; } public void setStartTime(Date startTime) { this.startTime = startTime; } public Date getEndTime() { return endTime; } public void setEndTime(Date endTime) { this.endTime = endTime; } public Integer getUseType() { return useType; } public void setUseType(Integer useType) { this.useType = useType; } public String getNote() { return note; } public void setNote(String note) { this.note = note; } public Integer getPublishCount() { return publishCount; } public void setPublishCount(Integer publishCount) { this.publishCount = publishCount; } public Integer getUseCount() { return useCount; } public void setUseCount(Integer useCount) { this.useCount = useCount; } public Integer getReceiveCount() { return receiveCount; } public void setReceiveCount(Integer receiveCount) { this.receiveCount = receiveCount; } public Date getEnableTime() { return enableTime; } public void setEnableTime(Date enableTime) { this.enableTime = enableTime; } public String getCode() { return code; } public void setCode(String code) { this.code = code; } public Integer getMemberLevel() { return memberLevel; } public void setMemberLevel(Integer memberLevel) { this.memberLevel = memberLevel; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", type=").append(type); sb.append(", name=").append(name); sb.append(", platform=").append(platform); sb.append(", count=").append(count); sb.append(", amount=").append(amount); sb.append(", perLimit=").append(perLimit); sb.append(", minPoint=").append(minPoint); sb.append(", startTime=").append(startTime); sb.append(", endTime=").append(endTime); sb.append(", useType=").append(useType); sb.append(", note=").append(note); sb.append(", publishCount=").append(publishCount); sb.append(", useCount=").append(useCount); sb.append(", receiveCount=").append(receiveCount); sb.append(", enableTime=").append(enableTime); sb.append(", code=").append(code); sb.append(", memberLevel=").append(memberLevel); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }
java
Apache-2.0
dd6569c3558f79af5b21aad601349e0f029b9a6d
2026-01-04T14:45:56.650249Z
false