diff --git a/ruoyi-saas-app/pom.xml b/ruoyi-saas-app/pom.xml new file mode 100644 index 000000000..4876f3837 --- /dev/null +++ b/ruoyi-saas-app/pom.xml @@ -0,0 +1,23 @@ + + + + ruoyi-vue-plus + org.dromara + ${revision} + + 4.0.0 + + + ruoyi-mall + + + ruoyi-saas-app + pom + + + ruoyi-saas-app 业务模块 + + + diff --git a/ruoyi-saas-app/ruoyi-mall/pom.xml b/ruoyi-saas-app/ruoyi-mall/pom.xml new file mode 100644 index 000000000..e4f506466 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/pom.xml @@ -0,0 +1,25 @@ + + + + ruoyi-vue-plus + ruoyi-saas-app + ${revision} + + 4.0.0 + + + ruoyi-mall-admin + ruoyi-mall-common + ruoyi-mall-mbg + + + ruoyi-mall + pom + + + ruoyi-mall 业务模块 + + + diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/pom.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/pom.xml new file mode 100644 index 000000000..2b3dd0a41 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/pom.xml @@ -0,0 +1,80 @@ + + 4.0.0 + + ruoyi-mall-admin + ${revision} + jar + + ruoyi-mall-admin + ruoyi-mall-admin project for mall + + + ruoyi-vue-plus + ruoyi-mall + ${revision} + + + + + com.macro.mall + mall-mbg + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-config + + + org.springframework.boot + spring-boot-starter-data-redis + + + com.aliyun.oss + aliyun-sdk-oss + + + io.minio + minio + + + org.springframework.cloud + spring-cloud-starter-openfeign + + + cn.dev33 + sa-token-spring-boot3-starter + + + cn.dev33 + sa-token-redis-jackson + + + org.apache.commons + commons-pool2 + + + cn.dev33 + sa-token-jwt + + + de.codecentric + spring-boot-admin-starter-client + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + io.fabric8 + docker-maven-plugin + + + + diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/MallAdminApplication.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/MallAdminApplication.java new file mode 100644 index 000000000..8e1e27be4 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/MallAdminApplication.java @@ -0,0 +1,19 @@ +package com.macro.mall; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.client.discovery.EnableDiscoveryClient; +import org.springframework.cloud.openfeign.EnableFeignClients; + +/** + * 应用启动入口 + * Created by macro on 2018/4/26. + */ +@EnableFeignClients +@EnableDiscoveryClient +@SpringBootApplication +public class MallAdminApplication { + public static void main(String[] args) { + SpringApplication.run(MallAdminApplication.class, args); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/component/PathResourceRulesHolder.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/component/PathResourceRulesHolder.java new file mode 100644 index 000000000..3b1876c73 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/component/PathResourceRulesHolder.java @@ -0,0 +1,23 @@ +package com.macro.mall.component; + +import com.macro.mall.service.UmsResourceService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; + +import jakarta.annotation.PostConstruct; + +/** + * 路径与资源访问对应关系操作组件 + * Created by macro on 2020/7/17. + */ +@Component +public class PathResourceRulesHolder { + + @Autowired + private UmsResourceService resourceService; + + @PostConstruct + public void initPathResourceMap(){ + resourceService.initPathResourceMap(); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/config/MyBatisConfig.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/config/MyBatisConfig.java new file mode 100644 index 000000000..11642560a --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/config/MyBatisConfig.java @@ -0,0 +1,15 @@ +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 { +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/config/OssConfig.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/config/OssConfig.java new file mode 100644 index 000000000..9f7da2a36 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/config/OssConfig.java @@ -0,0 +1,24 @@ +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); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/config/RedisConfig.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/config/RedisConfig.java new file mode 100644 index 000000000..90bba12a6 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/config/RedisConfig.java @@ -0,0 +1,19 @@ +package com.macro.mall.config; + +import com.macro.mall.common.config.BaseRedisConfig; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.data.redis.connection.RedisConnectionFactory; +import org.springframework.data.redis.core.RedisTemplate; +import org.springframework.data.redis.repository.configuration.EnableRedisRepositories; +import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer; +import org.springframework.data.redis.serializer.StringRedisSerializer; + +/** + * Redis相关配置 + * Created by macro on 2020/6/19. + */ +@Configuration +public class RedisConfig extends BaseRedisConfig { + +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/config/SaTokenConfigure.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/config/SaTokenConfigure.java new file mode 100644 index 000000000..020d05991 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/config/SaTokenConfigure.java @@ -0,0 +1,22 @@ +package com.macro.mall.config; + +import cn.dev33.satoken.jwt.StpLogicJwtForSimple; +import cn.dev33.satoken.stp.StpLogic; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +/** + * @auther macrozheng + * @description Sa-Token相关配置 + * @date 2023/11/28 + * @github https://github.com/macrozheng + */ +@Configuration +public class SaTokenConfigure { + // Sa-Token 整合 jwt (Simple 简单模式) + @Bean + public StpLogic getStpLogicJwt() { + return new StpLogicJwtForSimple(); + } +} + diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/config/SpringDocConfig.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/config/SpringDocConfig.java new file mode 100644 index 000000000..190aea58b --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/config/SpringDocConfig.java @@ -0,0 +1,68 @@ +package com.macro.mall.config; + +import io.swagger.v3.oas.models.Components; +import io.swagger.v3.oas.models.ExternalDocumentation; +import io.swagger.v3.oas.models.OpenAPI; +import io.swagger.v3.oas.models.info.Info; +import io.swagger.v3.oas.models.info.License; +import io.swagger.v3.oas.models.security.SecurityRequirement; +import io.swagger.v3.oas.models.security.SecurityScheme; +import org.springdoc.core.customizers.GlobalOpenApiCustomizer; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; +import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; + +/** + * SpringDoc相关配置 + * Created by macro on 2024/3/5. + */ +@Configuration +public class SpringDocConfig implements WebMvcConfigurer { + + private static final String SECURITY_SCHEME_NAME = "Authorization"; + + @Bean + public OpenAPI mallAdminOpenAPI() { + return new OpenAPI() + .info(new Info().title("mall后台系统") + .description("mall后台相关接口文档") + .version("v1.0.0") + .license(new License().name("Apache 2.0") + .url("https://github.com/macrozheng/mall-learning"))) + .externalDocs(new ExternalDocumentation() + .description("SpringBoot实战电商项目mall(60K+Star)全套文档") + .url("http://www.macrozheng.com")) + .addSecurityItem(new SecurityRequirement().addList(SECURITY_SCHEME_NAME)) + .components(new Components() + .addSecuritySchemes(SECURITY_SCHEME_NAME, + new SecurityScheme() + .name(SECURITY_SCHEME_NAME) + .type(SecurityScheme.Type.HTTP) + .scheme("bearer") + .bearerFormat("JWT"))); + } + + @Override + public void addViewControllers(ViewControllerRegistry registry) { + //配置访问`/swagger-ui/`路径时可以直接跳转到`/swagger-ui/index.html` + registry.addViewController("/swagger-ui/").setViewName("redirect:/swagger-ui/index.html"); + } + + @Bean + public GlobalOpenApiCustomizer orderGlobalOpenApiCustomizer() { + //解决Knife4j配置认证后无法自动添加认证头的问题 + return openApi -> { + //全局添加鉴权参数 + if (openApi.getPaths() != null) { + openApi.getPaths().forEach((s, pathItem) -> { + pathItem.readOperations().forEach(operation -> { + operation.addSecurityItem(new SecurityRequirement().addList(SECURITY_SCHEME_NAME)); + }); + }); + } + }; + } + +} + diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/CmsPrefrenceAreaController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/CmsPrefrenceAreaController.java new file mode 100644 index 000000000..5dfb965f7 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/CmsPrefrenceAreaController.java @@ -0,0 +1,34 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.model.CmsPrefrenceArea; +import com.macro.mall.service.CmsPrefrenceAreaService; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.List; + +/** + * 商品优选管理Controller + * Created by macro on 2018/6/1. + */ +@Controller +@Tag(name = "CmsPrefrenceAreaController", description = "商品优选管理") +@RequestMapping("/prefrenceArea") +public class CmsPrefrenceAreaController { + @Autowired + private CmsPrefrenceAreaService prefrenceAreaService; + + @Operation(summary = "获取所有商品优选") + @RequestMapping(value = "/listAll", method = RequestMethod.GET) + @ResponseBody + public CommonResult> listAll() { + List prefrenceAreaList = prefrenceAreaService.listAll(); + return CommonResult.success(prefrenceAreaList); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/CmsSubjectController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/CmsSubjectController.java new file mode 100644 index 000000000..b037c9837 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/CmsSubjectController.java @@ -0,0 +1,47 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonPage; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.model.CmsSubject; +import com.macro.mall.service.CmsSubjectService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.List; + +/** + * 商品专题管理Controller + * Created by macro on 2018/6/1. + */ +@Controller +@Tag(name = "CmsSubjectController", description = "商品专题管理") +@RequestMapping("/subject") +public class CmsSubjectController { + @Autowired + private CmsSubjectService subjectService; + + @Operation(summary = "获取全部商品专题") + @RequestMapping(value = "/listAll", method = RequestMethod.GET) + @ResponseBody + public CommonResult> listAll() { + List subjectList = subjectService.listAll(); + return CommonResult.success(subjectList); + } + + @Operation(summary = "根据专题名称分页获取专题") + @RequestMapping(value = "/list", method = RequestMethod.GET) + @ResponseBody + public CommonResult> getList(@RequestParam(value = "keyword", required = false) String keyword, + @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, + @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize) { + List subjectList = subjectService.list(keyword, pageNum, pageSize); + return CommonResult.success(CommonPage.restPage(subjectList)); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/MinioController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/MinioController.java new file mode 100644 index 000000000..3432c3c2f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/MinioController.java @@ -0,0 +1,115 @@ +package com.macro.mall.controller; + +import cn.hutool.core.collection.CollUtil; +import cn.hutool.json.JSONUtil; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.dto.BucketPolicyConfigDto; +import com.macro.mall.dto.MinioUploadDto; +import io.minio.*; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; + +import java.text.SimpleDateFormat; +import java.util.Date; + +/** + * MinIO对象存储管理 + * Created by macro on 2019/12/25. + */ +@Tag(name = "MinioController", description = "MinIO对象存储管理") +@Controller +@RequestMapping("/minio") +public class MinioController { + + private static final Logger LOGGER = LoggerFactory.getLogger(MinioController.class); + @Value("${minio.endpoint}") + private String ENDPOINT; + @Value("${minio.bucketName}") + private String BUCKET_NAME; + @Value("${minio.accessKey}") + private String ACCESS_KEY; + @Value("${minio.secretKey}") + private String SECRET_KEY; + + @Operation(summary = "文件上传") + @RequestMapping(value = "/upload", method = RequestMethod.POST) + @ResponseBody + public CommonResult upload(@RequestPart("file") MultipartFile file) { + try { + //创建一个MinIO的Java客户端 + MinioClient minioClient =MinioClient.builder() + .endpoint(ENDPOINT) + .credentials(ACCESS_KEY,SECRET_KEY) + .build(); + boolean isExist = minioClient.bucketExists(BucketExistsArgs.builder().bucket(BUCKET_NAME).build()); + if (isExist) { + LOGGER.info("存储桶已经存在!"); + } else { + //创建存储桶并设置只读权限 + minioClient.makeBucket(MakeBucketArgs.builder().bucket(BUCKET_NAME).build()); + BucketPolicyConfigDto bucketPolicyConfigDto = createBucketPolicyConfigDto(BUCKET_NAME); + SetBucketPolicyArgs setBucketPolicyArgs = SetBucketPolicyArgs.builder() + .bucket(BUCKET_NAME) + .config(JSONUtil.toJsonStr(bucketPolicyConfigDto)) + .build(); + minioClient.setBucketPolicy(setBucketPolicyArgs); + } + String filename = file.getOriginalFilename(); + SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd"); + // 设置存储对象名称 + String objectName = sdf.format(new Date()) + "/" + filename; + // 使用putObject上传一个文件到存储桶中 + PutObjectArgs putObjectArgs = PutObjectArgs.builder() + .bucket(BUCKET_NAME) + .object(objectName) + .contentType(file.getContentType()) + .stream(file.getInputStream(), file.getSize(), ObjectWriteArgs.MIN_MULTIPART_SIZE).build(); + minioClient.putObject(putObjectArgs); + LOGGER.info("文件上传成功!"); + MinioUploadDto minioUploadDto = new MinioUploadDto(); + minioUploadDto.setName(filename); + minioUploadDto.setUrl(ENDPOINT + "/" + BUCKET_NAME + "/" + objectName); + return CommonResult.success(minioUploadDto); + } catch (Exception e) { + e.printStackTrace(); + LOGGER.info("上传发生错误: {}!", e.getMessage()); + } + return CommonResult.failed(); + } + + private BucketPolicyConfigDto createBucketPolicyConfigDto(String bucketName) { + BucketPolicyConfigDto.Statement statement = BucketPolicyConfigDto.Statement.builder() + .Effect("Allow") + .Principal("*") + .Action("s3:GetObject") + .Resource("arn:aws:s3:::"+bucketName+"/*.**").build(); + return BucketPolicyConfigDto.builder() + .Version("2012-10-17") + .Statement(CollUtil.toList(statement)) + .build(); + } + + @Operation(summary = "文件删除") + @RequestMapping(value = "/delete", method = RequestMethod.POST) + @ResponseBody + public CommonResult delete(@RequestParam("objectName") String objectName) { + try { + MinioClient minioClient = MinioClient.builder() + .endpoint(ENDPOINT) + .credentials(ACCESS_KEY,SECRET_KEY) + .build(); + minioClient.removeObject(RemoveObjectArgs.builder().bucket(BUCKET_NAME).object(objectName).build()); + return CommonResult.success(null); + } catch (Exception e) { + e.printStackTrace(); + } + return CommonResult.failed(); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/OmsCompanyAddressController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/OmsCompanyAddressController.java new file mode 100644 index 000000000..c0149b904 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/OmsCompanyAddressController.java @@ -0,0 +1,35 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.model.OmsCompanyAddress; +import com.macro.mall.service.OmsCompanyAddressService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.List; + +/** + * 收货地址管理Controller + * Created by macro on 2018/10/18. + */ +@Controller +@Tag(name = "OmsCompanyAddressController", description = "收货地址管理") +@RequestMapping("/companyAddress") +public class OmsCompanyAddressController { + @Autowired + private OmsCompanyAddressService companyAddressService; + + @Operation(summary = "获取所有收货地址") + @RequestMapping(value = "/list", method = RequestMethod.GET) + @ResponseBody + public CommonResult> list() { + List companyAddressList = companyAddressService.list(); + return CommonResult.success(companyAddressList); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/OmsOrderController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/OmsOrderController.java new file mode 100644 index 000000000..b2cb42a7d --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/OmsOrderController.java @@ -0,0 +1,113 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonPage; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.dto.*; +import com.macro.mall.model.OmsOrder; +import com.macro.mall.service.OmsOrderService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 订单管理Controller + * Created by macro on 2018/10/11. + */ +@Controller +@Tag(name = "OmsOrderController", description = "订单管理") +@RequestMapping("/order") +public class OmsOrderController { + @Autowired + private OmsOrderService orderService; + + @Operation(summary = "查询订单") + @RequestMapping(value = "/list", method = RequestMethod.GET) + @ResponseBody + public CommonResult> list(OmsOrderQueryParam queryParam, + @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, + @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { + List orderList = orderService.list(queryParam, pageSize, pageNum); + return CommonResult.success(CommonPage.restPage(orderList)); + } + + @Operation(summary = "批量发货") + @RequestMapping(value = "/update/delivery", method = RequestMethod.POST) + @ResponseBody + public CommonResult delivery(@RequestBody List deliveryParamList) { + int count = orderService.delivery(deliveryParamList); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "批量关闭订单") + @RequestMapping(value = "/update/close", method = RequestMethod.POST) + @ResponseBody + public CommonResult close(@RequestParam("ids") List ids, @RequestParam String note) { + int count = orderService.close(ids, note); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "批量删除订单") + @RequestMapping(value = "/delete", method = RequestMethod.POST) + @ResponseBody + public CommonResult delete(@RequestParam("ids") List ids) { + int count = orderService.delete(ids); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "获取订单详情:订单信息、商品信息、操作记录") + @RequestMapping(value = "/{id}", method = RequestMethod.GET) + @ResponseBody + public CommonResult detail(@PathVariable Long id) { + OmsOrderDetail orderDetailResult = orderService.detail(id); + return CommonResult.success(orderDetailResult); + } + + @Operation(summary = "修改收货人信息") + @RequestMapping(value = "/update/receiverInfo", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateReceiverInfo(@RequestBody OmsReceiverInfoParam receiverInfoParam) { + int count = orderService.updateReceiverInfo(receiverInfoParam); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "修改订单费用信息") + @RequestMapping(value = "/update/moneyInfo", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateReceiverInfo(@RequestBody OmsMoneyInfoParam moneyInfoParam) { + int count = orderService.updateMoneyInfo(moneyInfoParam); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "备注订单") + @RequestMapping(value = "/update/note", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateNote(@RequestParam("id") Long id, + @RequestParam("note") String note, + @RequestParam("status") Integer status) { + int count = orderService.updateNote(id, note, status); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/OmsOrderReturnApplyController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/OmsOrderReturnApplyController.java new file mode 100644 index 000000000..e2b89af40 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/OmsOrderReturnApplyController.java @@ -0,0 +1,70 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonPage; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.dto.OmsOrderReturnApplyResult; +import com.macro.mall.dto.OmsReturnApplyQueryParam; +import com.macro.mall.dto.OmsUpdateStatusParam; +import com.macro.mall.model.OmsOrderReturnApply; +import com.macro.mall.service.OmsOrderReturnApplyService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 订单退货申请管理 + * Created by macro on 2018/10/18. + */ +@Controller +@Tag(name = "OmsOrderReturnApplyController", description = "订单退货申请管理") +@RequestMapping("/returnApply") +public class OmsOrderReturnApplyController { + @Autowired + private OmsOrderReturnApplyService returnApplyService; + + @Operation(summary = "分页查询退货申请") + @RequestMapping(value = "/list", method = RequestMethod.GET) + @ResponseBody + public CommonResult> list(OmsReturnApplyQueryParam queryParam, + @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, + @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { + List returnApplyList = returnApplyService.list(queryParam, pageSize, pageNum); + return CommonResult.success(CommonPage.restPage(returnApplyList)); + } + + @Operation(summary = "批量删除申请") + @RequestMapping(value = "/delete", method = RequestMethod.POST) + @ResponseBody + public CommonResult delete(@RequestParam("ids") List ids) { + int count = returnApplyService.delete(ids); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "获取退货申请详情") + @RequestMapping(value = "/{id}", method = RequestMethod.GET) + @ResponseBody + public CommonResult getItem(@PathVariable Long id) { + OmsOrderReturnApplyResult result = returnApplyService.getItem(id); + return CommonResult.success(result); + } + + @Operation(summary = "修改申请状态") + @RequestMapping(value = "/update/status/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateStatus(@PathVariable Long id, @RequestBody OmsUpdateStatusParam statusParam) { + int count = returnApplyService.updateStatus(id, statusParam); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/OmsOrderReturnReasonController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/OmsOrderReturnReasonController.java new file mode 100644 index 000000000..119387f68 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/OmsOrderReturnReasonController.java @@ -0,0 +1,88 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonPage; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.model.OmsOrderReturnReason; +import com.macro.mall.service.OmsOrderReturnReasonService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 退货原因管理Controller + * Created by macro on 2018/10/17. + */ +@Controller +@Tag(name = "OmsOrderReturnReasonController", description = "退货原因管理") +@RequestMapping("/returnReason") +public class OmsOrderReturnReasonController { + @Autowired + private OmsOrderReturnReasonService orderReturnReasonService; + + @Operation(summary = "添加退货原因") + @RequestMapping(value = "/create", method = RequestMethod.POST) + @ResponseBody + public CommonResult create(@RequestBody OmsOrderReturnReason returnReason) { + int count = orderReturnReasonService.create(returnReason); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "修改退货原因") + @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult update(@PathVariable Long id, @RequestBody OmsOrderReturnReason returnReason) { + int count = orderReturnReasonService.update(id, returnReason); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "批量删除退货原因") + @RequestMapping(value = "/delete", method = RequestMethod.POST) + @ResponseBody + public CommonResult delete(@RequestParam("ids") List ids) { + int count = orderReturnReasonService.delete(ids); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "分页查询全部退货原因") + @RequestMapping(value = "/list", method = RequestMethod.GET) + @ResponseBody + public CommonResult> list(@RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, + @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { + List reasonList = orderReturnReasonService.list(pageSize, pageNum); + return CommonResult.success(CommonPage.restPage(reasonList)); + } + + @Operation(summary = "获取单个退货原因详情信息") + @RequestMapping(value = "/{id}", method = RequestMethod.GET) + @ResponseBody + public CommonResult getItem(@PathVariable Long id) { + OmsOrderReturnReason reason = orderReturnReasonService.getItem(id); + return CommonResult.success(reason); + } + + @Operation(summary = "修改退货原因启用状态") + @RequestMapping(value = "/update/status", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateStatus(@RequestParam(value = "status") Integer status, + @RequestParam("ids") List ids) { + int count = orderReturnReasonService.updateStatus(ids, status); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/OmsOrderSettingController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/OmsOrderSettingController.java new file mode 100644 index 000000000..be2de563b --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/OmsOrderSettingController.java @@ -0,0 +1,42 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.model.OmsOrderSetting; +import com.macro.mall.service.OmsOrderSettingService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +/** + * 订单设置Controller + * Created by macro on 2018/10/16. + */ +@Controller +@Tag(name = "OmsOrderSettingController", description = "订单设置管理") +@RequestMapping("/orderSetting") +public class OmsOrderSettingController { + @Autowired + private OmsOrderSettingService orderSettingService; + + @Operation(summary = "获取指定订单设置") + @RequestMapping(value = "/{id}", method = RequestMethod.GET) + @ResponseBody + public CommonResult getItem(@PathVariable Long id) { + OmsOrderSetting orderSetting = orderSettingService.getItem(id); + return CommonResult.success(orderSetting); + } + + @Operation(summary = "修改指定订单设置") + @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult update(@PathVariable Long id, @RequestBody OmsOrderSetting orderSetting) { + int count = orderSettingService.update(id,orderSetting); + if(count>0){ + return CommonResult.success(count); + } + return CommonResult.failed(); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/OssController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/OssController.java new file mode 100644 index 000000000..90ae90064 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/OssController.java @@ -0,0 +1,43 @@ +package com.macro.mall.controller; + + +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.dto.OssCallbackResult; +import com.macro.mall.dto.OssPolicyResult; +import com.macro.mall.service.impl.OssServiceImpl; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +import jakarta.servlet.http.HttpServletRequest; + +/** + * Oss相关操作接口 + * Created by macro on 2018/4/26. + */ +@Controller +@Tag(name = "OssController", description = "Oss管理") +@RequestMapping("/aliyun/oss") +public class OssController { + @Autowired + private OssServiceImpl ossService; + + @Operation(summary = "oss上传签名生成") + @RequestMapping(value = "/policy", method = RequestMethod.GET) + @ResponseBody + public CommonResult policy() { + OssPolicyResult result = ossService.policy(); + return CommonResult.success(result); + } + + @Operation(summary = "oss上传成功回调") + @RequestMapping(value = "callback", method = RequestMethod.POST) + @ResponseBody + public CommonResult callback(HttpServletRequest request) { + OssCallbackResult ossCallbackResult = ossService.callback(request); + return CommonResult.success(ossCallbackResult); + } + +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/PmsBrandController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/PmsBrandController.java new file mode 100644 index 000000000..c9e60cf88 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/PmsBrandController.java @@ -0,0 +1,131 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonPage; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.dto.PmsBrandParam; +import com.macro.mall.model.PmsBrand; +import com.macro.mall.service.PmsBrandService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 品牌功能Controller + * Created by macro on 2018/4/26. + */ +@Controller +@Tag(name = "PmsBrandController", description = "商品品牌管理") +@RequestMapping("/brand") +public class PmsBrandController { + @Autowired + private PmsBrandService brandService; + + @Operation(summary = "获取全部品牌列表") + @RequestMapping(value = "/listAll", method = RequestMethod.GET) + @ResponseBody + public CommonResult> getList() { + return CommonResult.success(brandService.listAllBrand()); + } + + @Operation(summary = "添加品牌") + @RequestMapping(value = "/create", method = RequestMethod.POST) + @ResponseBody + public CommonResult create(@Validated @RequestBody PmsBrandParam pmsBrand) { + CommonResult commonResult; + int count = brandService.createBrand(pmsBrand); + if (count == 1) { + commonResult = CommonResult.success(count); + } else { + commonResult = CommonResult.failed(); + } + return commonResult; + } + + @Operation(summary = "更新品牌") + @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult update(@PathVariable("id") Long id, + @Validated @RequestBody PmsBrandParam pmsBrandParam) { + CommonResult commonResult; + int count = brandService.updateBrand(id, pmsBrandParam); + if (count == 1) { + commonResult = CommonResult.success(count); + } else { + commonResult = CommonResult.failed(); + } + return commonResult; + } + + @Operation(summary = "删除品牌") + @RequestMapping(value = "/delete/{id}", method = RequestMethod.GET) + @ResponseBody + public CommonResult delete(@PathVariable("id") Long id) { + int count = brandService.deleteBrand(id); + if (count == 1) { + return CommonResult.success(null); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "根据品牌名称分页获取品牌列表") + @RequestMapping(value = "/list", method = RequestMethod.GET) + @ResponseBody + public CommonResult> getList(@RequestParam(value = "keyword", required = false) String keyword, + @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, + @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize) { + List brandList = brandService.listBrand(keyword, pageNum, pageSize); + return CommonResult.success(CommonPage.restPage(brandList)); + } + + @Operation(summary = "根据编号查询品牌信息") + @RequestMapping(value = "/{id}", method = RequestMethod.GET) + @ResponseBody + public CommonResult getItem(@PathVariable("id") Long id) { + return CommonResult.success(brandService.getBrand(id)); + } + + @Operation(summary = "批量删除品牌") + @RequestMapping(value = "/delete/batch", method = RequestMethod.POST) + @ResponseBody + public CommonResult deleteBatch(@RequestParam("ids") List ids) { + int count = brandService.deleteBrand(ids); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "批量更新显示状态") + @RequestMapping(value = "/update/showStatus", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateShowStatus(@RequestParam("ids") List ids, + @RequestParam("showStatus") Integer showStatus) { + int count = brandService.updateShowStatus(ids, showStatus); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "批量更新厂家制造商状态") + @RequestMapping(value = "/update/factoryStatus", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateFactoryStatus(@RequestParam("ids") List ids, + @RequestParam("factoryStatus") Integer factoryStatus) { + int count = brandService.updateFactoryStatus(ids, factoryStatus); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/PmsProductAttributeCategoryController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/PmsProductAttributeCategoryController.java new file mode 100644 index 000000000..72a23ba93 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/PmsProductAttributeCategoryController.java @@ -0,0 +1,87 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonPage; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.dto.PmsProductAttributeCategoryItem; +import com.macro.mall.model.PmsProductAttributeCategory; +import com.macro.mall.service.PmsProductAttributeCategoryService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 商品属性分类Controller + * Created by macro on 2018/4/26. + */ +@Controller +@Tag(name = "PmsProductAttributeCategoryController", description = "商品属性分类管理") +@RequestMapping("/productAttribute/category") +public class PmsProductAttributeCategoryController { + @Autowired + private PmsProductAttributeCategoryService productAttributeCategoryService; + + @Operation(summary = "添加商品属性分类") + @RequestMapping(value = "/create", method = RequestMethod.POST) + @ResponseBody + public CommonResult create(@RequestParam String name) { + int count = productAttributeCategoryService.create(name); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "修改商品属性分类") + @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult update(@PathVariable Long id, @RequestParam String name) { + int count = productAttributeCategoryService.update(id, name); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "删除单个商品属性分类") + @RequestMapping(value = "/delete/{id}", method = RequestMethod.GET) + @ResponseBody + public CommonResult delete(@PathVariable Long id) { + int count = productAttributeCategoryService.delete(id); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "获取单个商品属性分类信息") + @RequestMapping(value = "/{id}", method = RequestMethod.GET) + @ResponseBody + public CommonResult getItem(@PathVariable Long id) { + PmsProductAttributeCategory productAttributeCategory = productAttributeCategoryService.getItem(id); + return CommonResult.success(productAttributeCategory); + } + + @Operation(summary = "分页获取所有商品属性分类") + @RequestMapping(value = "/list", method = RequestMethod.GET) + @ResponseBody + public CommonResult> getList(@RequestParam(defaultValue = "5") Integer pageSize, @RequestParam(defaultValue = "1") Integer pageNum) { + List productAttributeCategoryList = productAttributeCategoryService.getList(pageSize, pageNum); + return CommonResult.success(CommonPage.restPage(productAttributeCategoryList)); + } + + @Operation(summary = "获取所有商品属性分类及其下属性") + @RequestMapping(value = "/list/withAttr", method = RequestMethod.GET) + @ResponseBody + public CommonResult> getListWithAttr() { + List productAttributeCategoryResultList = productAttributeCategoryService.getListWithAttr(); + return CommonResult.success(productAttributeCategoryResultList); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/PmsProductAttributeController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/PmsProductAttributeController.java new file mode 100644 index 000000000..8ae3a421c --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/PmsProductAttributeController.java @@ -0,0 +1,95 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonPage; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.dto.PmsProductAttributeParam; +import com.macro.mall.dto.ProductAttrInfo; +import com.macro.mall.model.PmsProductAttribute; +import com.macro.mall.service.PmsProductAttributeService; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.Parameter; +import io.swagger.v3.oas.annotations.Parameters; +import io.swagger.v3.oas.annotations.enums.ParameterIn; +import io.swagger.v3.oas.annotations.media.Schema; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 商品属性管理Controller + * Created by macro on 2018/4/26. + */ +@Controller +@Tag(name = "PmsProductAttributeController", description = "商品属性管理") +@RequestMapping("/productAttribute") +public class PmsProductAttributeController { + @Autowired + private PmsProductAttributeService productAttributeService; + + @Operation(summary = "根据分类查询属性列表或参数列表") + @Parameters({@Parameter(name = "type", description = "0表示属性,1表示参数", required = true,in = ParameterIn.QUERY, schema = @Schema(type = "integer"))}) + @RequestMapping(value = "/list/{cid}", method = RequestMethod.GET) + @ResponseBody + public CommonResult> getList(@PathVariable Long cid, + @RequestParam(value = "type") Integer type, + @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, + @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { + List productAttributeList = productAttributeService.getList(cid, type, pageSize, pageNum); + return CommonResult.success(CommonPage.restPage(productAttributeList)); + } + + @Operation(summary = "添加商品属性信息") + @RequestMapping(value = "/create", method = RequestMethod.POST) + @ResponseBody + public CommonResult create(@RequestBody PmsProductAttributeParam productAttributeParam) { + int count = productAttributeService.create(productAttributeParam); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "修改商品属性信息") + @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult update(@PathVariable Long id, @RequestBody PmsProductAttributeParam productAttributeParam) { + int count = productAttributeService.update(id, productAttributeParam); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "查询单个商品属性") + @RequestMapping(value = "/{id}", method = RequestMethod.GET) + @ResponseBody + public CommonResult getItem(@PathVariable Long id) { + PmsProductAttribute productAttribute = productAttributeService.getItem(id); + return CommonResult.success(productAttribute); + } + + @Operation(summary = "批量删除商品属性") + @RequestMapping(value = "/delete", method = RequestMethod.POST) + @ResponseBody + public CommonResult delete(@RequestParam("ids") List ids) { + int count = productAttributeService.delete(ids); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "根据商品分类的id获取商品属性及属性分类") + @RequestMapping(value = "/attrInfo/{productCategoryId}", method = RequestMethod.GET) + @ResponseBody + public CommonResult> getAttrInfo(@PathVariable Long productCategoryId) { + List productAttrInfoList = productAttributeService.getProductAttrInfo(productCategoryId); + return CommonResult.success(productAttrInfoList); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/PmsProductCategoryController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/PmsProductCategoryController.java new file mode 100644 index 000000000..65a091927 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/PmsProductCategoryController.java @@ -0,0 +1,117 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonPage; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.dto.PmsProductCategoryParam; +import com.macro.mall.dto.PmsProductCategoryWithChildrenItem; +import com.macro.mall.model.PmsProductCategory; +import com.macro.mall.service.PmsProductCategoryService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 商品分类模块Controller + * Created by macro on 2018/4/26. + */ +@Controller +@Tag(name = "PmsProductCategoryController", description = "商品分类管理") +@RequestMapping("/productCategory") +public class PmsProductCategoryController { + @Autowired + private PmsProductCategoryService productCategoryService; + + @Operation(summary = "添加产品分类") + @RequestMapping(value = "/create", method = RequestMethod.POST) + @ResponseBody + public CommonResult create(@Validated @RequestBody PmsProductCategoryParam productCategoryParam) { + int count = productCategoryService.create(productCategoryParam); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "修改商品分类") + @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult update(@PathVariable Long id, + @Validated + @RequestBody PmsProductCategoryParam productCategoryParam) { + int count = productCategoryService.update(id, productCategoryParam); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "分页查询商品分类") + @RequestMapping(value = "/list/{parentId}", method = RequestMethod.GET) + @ResponseBody + public CommonResult> getList(@PathVariable Long parentId, + @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, + @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { + List productCategoryList = productCategoryService.getList(parentId, pageSize, pageNum); + return CommonResult.success(CommonPage.restPage(productCategoryList)); + } + + @Operation(summary = "根据id获取商品分类") + @RequestMapping(value = "/{id}", method = RequestMethod.GET) + @ResponseBody + public CommonResult getItem(@PathVariable Long id) { + PmsProductCategory productCategory = productCategoryService.getItem(id); + return CommonResult.success(productCategory); + } + + @Operation(summary = "删除商品分类") + @RequestMapping(value = "/delete/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult delete(@PathVariable Long id) { + int count = productCategoryService.delete(id); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "修改导航栏显示状态") + @RequestMapping(value = "/update/navStatus", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateNavStatus(@RequestParam("ids") List ids, @RequestParam("navStatus") Integer navStatus) { + int count = productCategoryService.updateNavStatus(ids, navStatus); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "修改显示状态") + @RequestMapping(value = "/update/showStatus", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateShowStatus(@RequestParam("ids") List ids, @RequestParam("showStatus") Integer showStatus) { + int count = productCategoryService.updateShowStatus(ids, showStatus); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "查询所有一级分类及子分类") + @RequestMapping(value = "/list/withChildren", method = RequestMethod.GET) + @ResponseBody + public CommonResult> listWithChildren() { + List list = productCategoryService.listWithChildren(); + return CommonResult.success(list); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/PmsProductController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/PmsProductController.java new file mode 100644 index 000000000..114a26931 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/PmsProductController.java @@ -0,0 +1,145 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonPage; +import com.macro.mall.common.api.CommonResult; +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 com.macro.mall.service.PmsProductService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 商品管理Controller + * Created by macro on 2018/4/26. + */ +@Controller +@Tag(name = "PmsProductController", description = "商品管理") +@RequestMapping("/product") +public class PmsProductController { + @Autowired + private PmsProductService productService; + + @Operation(summary = "创建商品") + @RequestMapping(value = "/create", method = RequestMethod.POST) + @ResponseBody + public CommonResult create(@RequestBody PmsProductParam productParam) { + int count = productService.create(productParam); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "根据商品id获取商品编辑信息") + @RequestMapping(value = "/updateInfo/{id}", method = RequestMethod.GET) + @ResponseBody + public CommonResult getUpdateInfo(@PathVariable Long id) { + PmsProductResult productResult = productService.getUpdateInfo(id); + return CommonResult.success(productResult); + } + + @Operation(summary = "更新商品") + @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult update(@PathVariable Long id, @RequestBody PmsProductParam productParam) { + int count = productService.update(id, productParam); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "查询商品") + @RequestMapping(value = "/list", method = RequestMethod.GET) + @ResponseBody + public CommonResult> getList(PmsProductQueryParam productQueryParam, + @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, + @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { + List productList = productService.list(productQueryParam, pageSize, pageNum); + return CommonResult.success(CommonPage.restPage(productList)); + } + + @Operation(summary = "根据商品名称或货号模糊查询") + @RequestMapping(value = "/simpleList", method = RequestMethod.GET) + @ResponseBody + public CommonResult> getList(String keyword) { + List productList = productService.list(keyword); + return CommonResult.success(productList); + } + + @Operation(summary = "批量修改审核状态") + @RequestMapping(value = "/update/verifyStatus", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateVerifyStatus(@RequestParam("ids") List ids, + @RequestParam("verifyStatus") Integer verifyStatus, + @RequestParam("detail") String detail) { + int count = productService.updateVerifyStatus(ids, verifyStatus, detail); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "批量上下架") + @RequestMapping(value = "/update/publishStatus", method = RequestMethod.POST) + @ResponseBody + public CommonResult updatePublishStatus(@RequestParam("ids") List ids, + @RequestParam("publishStatus") Integer publishStatus) { + int count = productService.updatePublishStatus(ids, publishStatus); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "批量推荐商品") + @RequestMapping(value = "/update/recommendStatus", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateRecommendStatus(@RequestParam("ids") List ids, + @RequestParam("recommendStatus") Integer recommendStatus) { + int count = productService.updateRecommendStatus(ids, recommendStatus); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "批量设为新品") + @RequestMapping(value = "/update/newStatus", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateNewStatus(@RequestParam("ids") List ids, + @RequestParam("newStatus") Integer newStatus) { + int count = productService.updateNewStatus(ids, newStatus); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "批量修改删除状态") + @RequestMapping(value = "/update/deleteStatus", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateDeleteStatus(@RequestParam("ids") List ids, + @RequestParam("deleteStatus") Integer deleteStatus) { + int count = productService.updateDeleteStatus(ids, deleteStatus); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/PmsSkuStockController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/PmsSkuStockController.java new file mode 100644 index 000000000..44c0adf43 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/PmsSkuStockController.java @@ -0,0 +1,44 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.model.PmsSkuStock; +import com.macro.mall.service.PmsSkuStockService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * sku库存Controller + * Created by macro on 2018/4/27. + */ +@Controller +@Tag(name = "PmsSkuStockController", description = "sku商品库存管理") +@RequestMapping("/sku") +public class PmsSkuStockController { + @Autowired + private PmsSkuStockService skuStockService; + + @Operation(summary = "根据商品编号及编号模糊搜索sku库存") + @RequestMapping(value = "/{pid}", method = RequestMethod.GET) + @ResponseBody + public CommonResult> getList(@PathVariable Long pid, @RequestParam(value = "keyword",required = false) String keyword) { + List skuStockList = skuStockService.getList(pid, keyword); + return CommonResult.success(skuStockList); + } + @Operation(summary = "批量更新库存信息") + @RequestMapping(value ="/update/{pid}",method = RequestMethod.POST) + @ResponseBody + public CommonResult update(@PathVariable Long pid,@RequestBody List skuStockList){ + int count = skuStockService.update(pid,skuStockList); + if(count>0){ + return CommonResult.success(count); + }else{ + return CommonResult.failed(); + } + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsCouponController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsCouponController.java new file mode 100644 index 000000000..044a32833 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsCouponController.java @@ -0,0 +1,79 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonPage; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.dto.SmsCouponParam; +import com.macro.mall.model.SmsCoupon; +import com.macro.mall.service.SmsCouponService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 优惠券管理Controller + * Created by macro on 2018/8/28. + */ +@Controller +@Tag(name = "SmsCouponController", description = "优惠券管理") +@RequestMapping("/coupon") +public class SmsCouponController { + @Autowired + private SmsCouponService couponService; + @Operation(summary = "添加优惠券") + @RequestMapping(value = "/create", method = RequestMethod.POST) + @ResponseBody + public CommonResult add(@RequestBody SmsCouponParam couponParam) { + int count = couponService.create(couponParam); + if(count>0){ + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "删除优惠券") + @RequestMapping(value = "/delete/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult delete(@PathVariable Long id) { + int count = couponService.delete(id); + if(count>0){ + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "修改优惠券") + @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult update(@PathVariable Long id,@RequestBody SmsCouponParam couponParam) { + int count = couponService.update(id,couponParam); + if(count>0){ + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "根据优惠券名称和类型分页获取优惠券列表") + @RequestMapping(value = "/list", method = RequestMethod.GET) + @ResponseBody + public CommonResult> list( + @RequestParam(value = "name",required = false) String name, + @RequestParam(value = "type",required = false) Integer type, + @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, + @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { + List couponList = couponService.list(name,type,pageSize,pageNum); + return CommonResult.success(CommonPage.restPage(couponList)); + } + + @Operation(summary = "获取单个优惠券的详细信息") + @RequestMapping(value = "/{id}", method = RequestMethod.GET) + @ResponseBody + public CommonResult getItem(@PathVariable Long id) { + SmsCouponParam couponParam = couponService.getItem(id); + return CommonResult.success(couponParam); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsCouponHistoryController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsCouponHistoryController.java new file mode 100644 index 000000000..324d1cbba --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsCouponHistoryController.java @@ -0,0 +1,41 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonPage; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.model.SmsCouponHistory; +import com.macro.mall.service.SmsCouponHistoryService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.List; + +/** + * 优惠券领取记录管理Controller + * Created by macro on 2018/11/6. + */ +@Controller +@Tag(name = "SmsCouponHistoryController", description = "优惠券领取记录管理") +@RequestMapping("/couponHistory") +public class SmsCouponHistoryController { + @Autowired + private SmsCouponHistoryService historyService; + + @Operation(summary = "根据优惠券id,使用状态,订单编号分页获取领取记录") + @RequestMapping(value = "/list", method = RequestMethod.GET) + @ResponseBody + public CommonResult> list(@RequestParam(value = "couponId", required = false) Long couponId, + @RequestParam(value = "useStatus", required = false) Integer useStatus, + @RequestParam(value = "orderSn", required = false) String orderSn, + @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, + @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { + List historyList = historyService.list(couponId, useStatus, orderSn, pageSize, pageNum); + return CommonResult.success(CommonPage.restPage(historyList)); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsFlashPromotionController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsFlashPromotionController.java new file mode 100644 index 000000000..6e0068e16 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsFlashPromotionController.java @@ -0,0 +1,87 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonPage; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.model.SmsFlashPromotion; +import com.macro.mall.service.SmsFlashPromotionService; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 限时购活动管理Controller + * Created by macro on 2018/11/16. + */ +@Controller +@Tag(name = "SmsFlashPromotionController", description = "限时购活动管理") +@RequestMapping("/flash") +public class SmsFlashPromotionController { + @Autowired + private SmsFlashPromotionService flashPromotionService; + + @Operation(summary = "添加活动") + @RequestMapping(value = "/create", method = RequestMethod.POST) + @ResponseBody + public CommonResult create(@RequestBody SmsFlashPromotion flashPromotion) { + int count = flashPromotionService.create(flashPromotion); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "编辑活动信息") + @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) + @ResponseBody + public Object update(@PathVariable Long id, @RequestBody SmsFlashPromotion flashPromotion) { + int count = flashPromotionService.update(id, flashPromotion); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "删除活动信息") + @RequestMapping(value = "/delete/{id}", method = RequestMethod.POST) + @ResponseBody + public Object delete(@PathVariable Long id) { + int count = flashPromotionService.delete(id); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "修改上下线状态") + @RequestMapping(value = "/update/status/{id}", method = RequestMethod.POST) + @ResponseBody + public Object update(@PathVariable Long id, Integer status) { + int count = flashPromotionService.updateStatus(id, status); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "获取活动详情") + @RequestMapping(value = "/{id}", method = RequestMethod.GET) + @ResponseBody + public Object getItem(@PathVariable Long id) { + SmsFlashPromotion flashPromotion = flashPromotionService.getItem(id); + return CommonResult.success(flashPromotion); + } + + @Operation(summary = "根据活动名称分页查询") + @RequestMapping(value = "/list", method = RequestMethod.GET) + @ResponseBody + public Object getItem(@RequestParam(value = "keyword", required = false) String keyword, + @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, + @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { + List flashPromotionList = flashPromotionService.list(keyword, pageSize, pageNum); + return CommonResult.success(CommonPage.restPage(flashPromotionList)); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsFlashPromotionProductRelationController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsFlashPromotionProductRelationController.java new file mode 100644 index 000000000..7f86e4159 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsFlashPromotionProductRelationController.java @@ -0,0 +1,79 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonPage; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.dto.SmsFlashPromotionProduct; +import com.macro.mall.model.SmsFlashPromotionProductRelation; +import com.macro.mall.service.SmsFlashPromotionProductRelationService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 限时购和商品关系管理Controller + * Created by macro on 2018/11/16. + */ +@Controller +@Tag(name = "SmsFlashPromotionProductRelationController", description = "限时购和商品关系管理") +@RequestMapping("/flashProductRelation") +public class SmsFlashPromotionProductRelationController { + @Autowired + private SmsFlashPromotionProductRelationService relationService; + + @Operation(summary = "批量选择商品添加关联") + @RequestMapping(value = "/create", method = RequestMethod.POST) + @ResponseBody + public CommonResult create(@RequestBody List relationList) { + int count = relationService.create(relationList); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "修改关联相关信息") + @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult update(@PathVariable Long id, @RequestBody SmsFlashPromotionProductRelation relation) { + int count = relationService.update(id, relation); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "删除关联") + @RequestMapping(value = "/delete/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult delete(@PathVariable Long id) { + int count = relationService.delete(id); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "获取管理商品促销信息") + @RequestMapping(value = "/{id}", method = RequestMethod.GET) + @ResponseBody + public CommonResult getItem(@PathVariable Long id) { + SmsFlashPromotionProductRelation relation = relationService.getItem(id); + return CommonResult.success(relation); + } + + @Operation(summary = "分页查询不同场次关联及商品信息") + @RequestMapping(value = "/list", method = RequestMethod.GET) + @ResponseBody + public CommonResult> list(@RequestParam(value = "flashPromotionId") Long flashPromotionId, + @RequestParam(value = "flashPromotionSessionId") Long flashPromotionSessionId, + @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, + @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { + List flashPromotionProductList = relationService.list(flashPromotionId, flashPromotionSessionId, pageSize, pageNum); + return CommonResult.success(CommonPage.restPage(flashPromotionProductList)); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsFlashPromotionSessionController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsFlashPromotionSessionController.java new file mode 100644 index 000000000..d6384da90 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsFlashPromotionSessionController.java @@ -0,0 +1,94 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.dto.SmsFlashPromotionSessionDetail; +import com.macro.mall.model.SmsFlashPromotionSession; +import com.macro.mall.service.SmsFlashPromotionSessionService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 限时购场次管理Controller + * Created by macro on 2018/11/16. + */ +@Controller +@Tag(name = "SmsFlashPromotionSessionController", description = "限时购场次管理") +@RequestMapping("/flashSession") +public class SmsFlashPromotionSessionController { + @Autowired + private SmsFlashPromotionSessionService flashPromotionSessionService; + + @Operation(summary = "添加场次") + @RequestMapping(value = "/create", method = RequestMethod.POST) + @ResponseBody + public CommonResult create(@RequestBody SmsFlashPromotionSession promotionSession) { + int count = flashPromotionSessionService.create(promotionSession); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "修改场次") + @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult update(@PathVariable Long id, @RequestBody SmsFlashPromotionSession promotionSession) { + int count = flashPromotionSessionService.update(id, promotionSession); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "修改启用状态") + @RequestMapping(value = "/update/status/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateStatus(@PathVariable Long id, Integer status) { + int count = flashPromotionSessionService.updateStatus(id, status); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "删除场次") + @RequestMapping(value = "/delete/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult delete(@PathVariable Long id) { + int count = flashPromotionSessionService.delete(id); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "获取场次详情") + @RequestMapping(value = "/{id}", method = RequestMethod.GET) + @ResponseBody + public CommonResult getItem(@PathVariable Long id) { + SmsFlashPromotionSession promotionSession = flashPromotionSessionService.getItem(id); + return CommonResult.success(promotionSession); + } + + @Operation(summary = "获取全部场次") + @RequestMapping(value = "/list", method = RequestMethod.GET) + @ResponseBody + public CommonResult> list() { + List promotionSessionList = flashPromotionSessionService.list(); + return CommonResult.success(promotionSessionList); + } + + @Operation(summary = "获取全部可选场次及其数量") + @RequestMapping(value = "/selectList", method = RequestMethod.GET) + @ResponseBody + public CommonResult> selectList(Long flashPromotionId) { + List promotionSessionList = flashPromotionSessionService.selectList(flashPromotionId); + return CommonResult.success(promotionSessionList); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsHomeAdvertiseController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsHomeAdvertiseController.java new file mode 100644 index 000000000..e019b634d --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsHomeAdvertiseController.java @@ -0,0 +1,86 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonPage; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.model.SmsHomeAdvertise; +import com.macro.mall.service.SmsHomeAdvertiseService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 首页轮播广告管理Controller + * Created by macro on 2018/11/7. + */ +@Controller +@Tag(name = "SmsHomeAdvertiseController", description = "首页轮播广告管理") +@RequestMapping("/home/advertise") +public class SmsHomeAdvertiseController { + @Autowired + private SmsHomeAdvertiseService advertiseService; + + @Operation(summary = "添加广告") + @RequestMapping(value = "/create", method = RequestMethod.POST) + @ResponseBody + public CommonResult create(@RequestBody SmsHomeAdvertise advertise) { + int count = advertiseService.create(advertise); + if (count > 0) + return CommonResult.success(count); + return CommonResult.failed(); + } + + @Operation(summary = "删除广告") + @RequestMapping(value = "/delete", method = RequestMethod.POST) + @ResponseBody + public CommonResult delete(@RequestParam("ids") List ids) { + int count = advertiseService.delete(ids); + if (count > 0) + return CommonResult.success(count); + return CommonResult.failed(); + } + + @Operation(summary = "修改上下线状态") + @RequestMapping(value = "/update/status/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateStatus(@PathVariable Long id, Integer status) { + int count = advertiseService.updateStatus(id, status); + if (count > 0) + return CommonResult.success(count); + return CommonResult.failed(); + } + + @Operation(summary = "获取广告详情") + @RequestMapping(value = "/{id}", method = RequestMethod.GET) + @ResponseBody + public CommonResult getItem(@PathVariable Long id) { + SmsHomeAdvertise advertise = advertiseService.getItem(id); + return CommonResult.success(advertise); + } + + @Operation(summary = "修改广告") + @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult update(@PathVariable Long id, @RequestBody SmsHomeAdvertise advertise) { + int count = advertiseService.update(id, advertise); + if (count > 0) + return CommonResult.success(count); + return CommonResult.failed(); + } + + @Operation(summary = "分页查询广告") + @RequestMapping(value = "/list", method = RequestMethod.GET) + @ResponseBody + public CommonResult> list(@RequestParam(value = "name", required = false) String name, + @RequestParam(value = "type", required = false) Integer type, + @RequestParam(value = "endTime", required = false) String endTime, + @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, + @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { + List advertiseList = advertiseService.list(name, type, endTime, pageSize, pageNum); + return CommonResult.success(CommonPage.restPage(advertiseList)); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsHomeBrandController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsHomeBrandController.java new file mode 100644 index 000000000..8e20caa19 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsHomeBrandController.java @@ -0,0 +1,81 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonPage; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.model.SmsHomeBrand; +import com.macro.mall.service.SmsHomeBrandService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 首页品牌管理Controller + * Created by macro on 2018/11/6. + */ +@Controller +@Tag(name = "SmsHomeBrandController", description = "首页品牌管理") +@RequestMapping("/home/brand") +public class SmsHomeBrandController { + @Autowired + private SmsHomeBrandService homeBrandService; + + @Operation(summary = "添加首页推荐品牌") + @RequestMapping(value = "/create", method = RequestMethod.POST) + @ResponseBody + public CommonResult create(@RequestBody List homeBrandList) { + int count = homeBrandService.create(homeBrandList); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "修改品牌排序") + @RequestMapping(value = "/update/sort/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateSort(@PathVariable Long id, Integer sort) { + int count = homeBrandService.updateSort(id, sort); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "批量删除推荐品牌") + @RequestMapping(value = "/delete", method = RequestMethod.POST) + @ResponseBody + public CommonResult delete(@RequestParam("ids") List ids) { + int count = homeBrandService.delete(ids); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "批量修改推荐状态") + @RequestMapping(value = "/update/recommendStatus", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateRecommendStatus(@RequestParam("ids") List ids, @RequestParam Integer recommendStatus) { + int count = homeBrandService.updateRecommendStatus(ids, recommendStatus); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "分页查询推荐品牌") + @RequestMapping(value = "/list", method = RequestMethod.GET) + @ResponseBody + public CommonResult> list(@RequestParam(value = "brandName", required = false) String brandName, + @RequestParam(value = "recommendStatus", required = false) Integer recommendStatus, + @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, + @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { + List homeBrandList = homeBrandService.list(brandName, recommendStatus, pageSize, pageNum); + return CommonResult.success(CommonPage.restPage(homeBrandList)); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsHomeNewProductController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsHomeNewProductController.java new file mode 100644 index 000000000..2369160b7 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsHomeNewProductController.java @@ -0,0 +1,81 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonPage; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.model.SmsHomeNewProduct; +import com.macro.mall.service.SmsHomeNewProductService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 首页新品管理Controller + * Created by macro on 2018/11/6. + */ +@Controller +@Tag(name = "SmsHomeNewProductController", description = "首页新品管理") +@RequestMapping("/home/newProduct") +public class SmsHomeNewProductController { + @Autowired + private SmsHomeNewProductService homeNewProductService; + + @Operation(summary = "添加首页推荐品牌") + @RequestMapping(value = "/create", method = RequestMethod.POST) + @ResponseBody + public CommonResult create(@RequestBody List homeBrandList) { + int count = homeNewProductService.create(homeBrandList); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "修改推荐排序") + @RequestMapping(value = "/update/sort/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateSort(@PathVariable Long id, Integer sort) { + int count = homeNewProductService.updateSort(id, sort); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "批量删除推荐") + @RequestMapping(value = "/delete", method = RequestMethod.POST) + @ResponseBody + public CommonResult delete(@RequestParam("ids") List ids) { + int count = homeNewProductService.delete(ids); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "批量修改推荐状态") + @RequestMapping(value = "/update/recommendStatus", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateRecommendStatus(@RequestParam("ids") List ids, @RequestParam Integer recommendStatus) { + int count = homeNewProductService.updateRecommendStatus(ids, recommendStatus); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "分页查询推荐") + @RequestMapping(value = "/list", method = RequestMethod.GET) + @ResponseBody + public CommonResult> list(@RequestParam(value = "productName", required = false) String productName, + @RequestParam(value = "recommendStatus", required = false) Integer recommendStatus, + @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, + @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { + List homeBrandList = homeNewProductService.list(productName, recommendStatus, pageSize, pageNum); + return CommonResult.success(CommonPage.restPage(homeBrandList)); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsHomeRecommendProductController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsHomeRecommendProductController.java new file mode 100644 index 000000000..112757096 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsHomeRecommendProductController.java @@ -0,0 +1,81 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonPage; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.model.SmsHomeRecommendProduct; +import com.macro.mall.service.SmsHomeRecommendProductService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 首页人气推荐管理Controller + * Created by macro on 2018/11/6. + */ +@Controller +@Tag(name = "SmsHomeRecommendProductController", description = "首页人气推荐管理") +@RequestMapping("/home/recommendProduct") +public class SmsHomeRecommendProductController { + @Autowired + private SmsHomeRecommendProductService recommendProductService; + + @Operation(summary = "添加首页推荐") + @RequestMapping(value = "/create", method = RequestMethod.POST) + @ResponseBody + public CommonResult create(@RequestBody List homeBrandList) { + int count = recommendProductService.create(homeBrandList); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "修改推荐排序") + @RequestMapping(value = "/update/sort/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateSort(@PathVariable Long id, Integer sort) { + int count = recommendProductService.updateSort(id, sort); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "批量删除推荐") + @RequestMapping(value = "/delete", method = RequestMethod.POST) + @ResponseBody + public CommonResult delete(@RequestParam("ids") List ids) { + int count = recommendProductService.delete(ids); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "批量修改推荐状态") + @RequestMapping(value = "/update/recommendStatus", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateRecommendStatus(@RequestParam("ids") List ids, @RequestParam Integer recommendStatus) { + int count = recommendProductService.updateRecommendStatus(ids, recommendStatus); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "分页查询推荐") + @RequestMapping(value = "/list", method = RequestMethod.GET) + @ResponseBody + public CommonResult> list(@RequestParam(value = "productName", required = false) String productName, + @RequestParam(value = "recommendStatus", required = false) Integer recommendStatus, + @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, + @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { + List homeBrandList = recommendProductService.list(productName, recommendStatus, pageSize, pageNum); + return CommonResult.success(CommonPage.restPage(homeBrandList)); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsHomeRecommendSubjectController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsHomeRecommendSubjectController.java new file mode 100644 index 000000000..ca3b4898f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/SmsHomeRecommendSubjectController.java @@ -0,0 +1,81 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonPage; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.model.SmsHomeRecommendSubject; +import com.macro.mall.service.SmsHomeRecommendSubjectService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 首页专题推荐管理Controller + * Created by macro on 2018/11/6. + */ +@Controller +@Tag(name = "SmsHomeRecommendSubjectController", description = "首页专题推荐管理") +@RequestMapping("/home/recommendSubject") +public class SmsHomeRecommendSubjectController { + @Autowired + private SmsHomeRecommendSubjectService recommendSubjectService; + + @Operation(summary = "添加首页推荐专题") + @RequestMapping(value = "/create", method = RequestMethod.POST) + @ResponseBody + public CommonResult create(@RequestBody List homeBrandList) { + int count = recommendSubjectService.create(homeBrandList); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "修改推荐排序") + @RequestMapping(value = "/update/sort/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateSort(@PathVariable Long id, Integer sort) { + int count = recommendSubjectService.updateSort(id, sort); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "批量删除推荐") + @RequestMapping(value = "/delete", method = RequestMethod.POST) + @ResponseBody + public CommonResult delete(@RequestParam("ids") List ids) { + int count = recommendSubjectService.delete(ids); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "批量修改推荐状态") + @RequestMapping(value = "/update/recommendStatus", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateRecommendStatus(@RequestParam("ids") List ids, @RequestParam Integer recommendStatus) { + int count = recommendSubjectService.updateRecommendStatus(ids, recommendStatus); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "分页查询推荐") + @RequestMapping(value = "/list", method = RequestMethod.GET) + @ResponseBody + public CommonResult> list(@RequestParam(value = "subjectName", required = false) String subjectName, + @RequestParam(value = "recommendStatus", required = false) Integer recommendStatus, + @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, + @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { + List homeBrandList = recommendSubjectService.list(subjectName, recommendStatus, pageSize, pageNum); + return CommonResult.success(CommonPage.restPage(homeBrandList)); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/UmsAdminController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/UmsAdminController.java new file mode 100644 index 000000000..4d400d3f8 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/UmsAdminController.java @@ -0,0 +1,183 @@ +package com.macro.mall.controller; + +import cn.dev33.satoken.stp.SaTokenInfo; +import cn.hutool.core.collection.CollUtil; +import com.macro.mall.common.api.CommonPage; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.dto.UmsAdminLoginParam; +import com.macro.mall.dto.UmsAdminParam; +import com.macro.mall.dto.UpdateAdminPasswordParam; +import com.macro.mall.model.UmsAdmin; +import com.macro.mall.model.UmsRole; +import com.macro.mall.service.UmsAdminService; +import com.macro.mall.service.UmsRoleService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Controller; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +/** + * 后台用户管理 + * Created by macro on 2018/4/26. + */ +@Controller +@Tag(name = "UmsAdminController", description = "后台用户管理") +@RequestMapping("/admin") +public class UmsAdminController { + @Autowired + private UmsAdminService adminService; + @Autowired + private UmsRoleService roleService; + @Value("${sa-token.token-prefix}") + private String tokenHead; + + @Operation(summary = "用户注册") + @RequestMapping(value = "/register", method = RequestMethod.POST) + @ResponseBody + public CommonResult register(@Validated @RequestBody UmsAdminParam umsAdminParam) { + UmsAdmin umsAdmin = adminService.register(umsAdminParam); + if (umsAdmin == null) { + return CommonResult.failed(); + } + return CommonResult.success(umsAdmin); + } + + @Operation(summary = "登录以后返回token") + @RequestMapping(value = "/login", method = RequestMethod.POST) + @ResponseBody + public CommonResult login(@Validated @RequestBody UmsAdminLoginParam umsAdminLoginParam) { + SaTokenInfo saTokenInfo = adminService.login(umsAdminLoginParam.getUsername(), umsAdminLoginParam.getPassword()); + if (saTokenInfo == null) { + return CommonResult.validateFailed("用户名或密码错误"); + } + Map tokenMap = new HashMap<>(); + tokenMap.put("token", saTokenInfo.getTokenValue() ); + tokenMap.put("tokenHead", tokenHead+" "); + return CommonResult.success(tokenMap); + } + + @Operation(summary = "获取当前登录用户信息") + @RequestMapping(value = "/info", method = RequestMethod.GET) + @ResponseBody + public CommonResult getAdminInfo() { + UmsAdmin umsAdmin = adminService.getCurrentAdmin(); + Map data = new HashMap<>(); + data.put("username", umsAdmin.getUsername()); + data.put("menus", roleService.getMenuList(umsAdmin.getId())); + data.put("icon", umsAdmin.getIcon()); + List roleList = adminService.getRoleList(umsAdmin.getId()); + if(CollUtil.isNotEmpty(roleList)){ + List roles = roleList.stream().map(UmsRole::getName).collect(Collectors.toList()); + data.put("roles",roles); + } + return CommonResult.success(data); + } + + @Operation(summary = "登出功能") + @RequestMapping(value = "/logout", method = RequestMethod.POST) + @ResponseBody + public CommonResult logout() { + adminService.logout(); + return CommonResult.success(null); + } + + @Operation(summary = "根据用户名或姓名分页获取用户列表") + @RequestMapping(value = "/list", method = RequestMethod.GET) + @ResponseBody + public CommonResult> list(@RequestParam(value = "keyword", required = false) String keyword, + @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, + @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { + List adminList = adminService.list(keyword, pageSize, pageNum); + return CommonResult.success(CommonPage.restPage(adminList)); + } + + @Operation(summary = "获取指定用户信息") + @RequestMapping(value = "/{id}", method = RequestMethod.GET) + @ResponseBody + public CommonResult getItem(@PathVariable Long id) { + UmsAdmin admin = adminService.getItem(id); + return CommonResult.success(admin); + } + + @Operation(summary = "修改指定用户信息") + @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult update(@PathVariable Long id, @RequestBody UmsAdmin admin) { + int count = adminService.update(id, admin); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "修改指定用户密码") + @RequestMapping(value = "/updatePassword", method = RequestMethod.POST) + @ResponseBody + public CommonResult updatePassword(@RequestBody UpdateAdminPasswordParam updatePasswordParam) { + int status = adminService.updatePassword(updatePasswordParam); + if (status > 0) { + return CommonResult.success(status); + } else if (status == -1) { + return CommonResult.failed("提交参数不合法"); + } else if (status == -2) { + return CommonResult.failed("找不到该用户"); + } else if (status == -3) { + return CommonResult.failed("旧密码错误"); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "删除指定用户信息") + @RequestMapping(value = "/delete/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult delete(@PathVariable Long id) { + int count = adminService.delete(id); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "修改帐号状态") + @RequestMapping(value = "/updateStatus/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateStatus(@PathVariable Long id,@RequestParam(value = "status") Integer status) { + UmsAdmin umsAdmin = new UmsAdmin(); + umsAdmin.setStatus(status); + int count = adminService.update(id,umsAdmin); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "给用户分配角色") + @RequestMapping(value = "/role/update", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateRole(@RequestParam("adminId") Long adminId, + @RequestParam("roleIds") List roleIds) { + int count = adminService.updateRole(adminId, roleIds); + if (count >= 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "获取指定用户的角色") + @RequestMapping(value = "/role/{adminId}", method = RequestMethod.GET) + @ResponseBody + public CommonResult> getRoleList(@PathVariable Long adminId) { + List roleList = adminService.getRoleList(adminId); + return CommonResult.success(roleList); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/UmsMemberLevelController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/UmsMemberLevelController.java new file mode 100644 index 000000000..c23a49859 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/UmsMemberLevelController.java @@ -0,0 +1,36 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.model.UmsMemberLevel; +import com.macro.mall.service.UmsMemberLevelService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.List; + +/** + * 会员等级管理Controller + * Created by macro on 2018/4/26. + */ +@Controller +@Tag(name = "UmsMemberLevelController", description = "会员等级管理") +@RequestMapping("/memberLevel") +public class UmsMemberLevelController { + @Autowired + private UmsMemberLevelService memberLevelService; + + @RequestMapping(value = "/list", method = RequestMethod.GET) + @Operation(summary = "查询所有会员等级") + @ResponseBody + public CommonResult> list(@RequestParam("defaultStatus") Integer defaultStatus) { + List memberLevelList = memberLevelService.list(defaultStatus); + return CommonResult.success(memberLevelList); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/UmsMenuController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/UmsMenuController.java new file mode 100644 index 000000000..fde503973 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/UmsMenuController.java @@ -0,0 +1,103 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonPage; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.dto.UmsMenuNode; +import com.macro.mall.model.UmsMenu; +import com.macro.mall.service.UmsMenuService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 后台菜单管理Controller + * Created by macro on 2020/2/4. + */ +@Controller +@Tag(name = "UmsMenuController", description = "后台菜单管理") +@RequestMapping("/menu") +public class UmsMenuController { + + @Autowired + private UmsMenuService menuService; + + @Operation(summary = "添加后台菜单") + @RequestMapping(value = "/create", method = RequestMethod.POST) + @ResponseBody + public CommonResult create(@RequestBody UmsMenu umsMenu) { + int count = menuService.create(umsMenu); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "修改后台菜单") + @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult update(@PathVariable Long id, + @RequestBody UmsMenu umsMenu) { + int count = menuService.update(id, umsMenu); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "根据ID获取菜单详情") + @RequestMapping(value = "/{id}", method = RequestMethod.GET) + @ResponseBody + public CommonResult getItem(@PathVariable Long id) { + UmsMenu umsMenu = menuService.getItem(id); + return CommonResult.success(umsMenu); + } + + @Operation(summary = "根据ID删除后台菜单") + @RequestMapping(value = "/delete/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult delete(@PathVariable Long id) { + int count = menuService.delete(id); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "分页查询后台菜单") + @RequestMapping(value = "/list/{parentId}", method = RequestMethod.GET) + @ResponseBody + public CommonResult> list(@PathVariable Long parentId, + @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, + @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { + List menuList = menuService.list(parentId, pageSize, pageNum); + return CommonResult.success(CommonPage.restPage(menuList)); + } + + @Operation(summary = "树形结构返回所有菜单列表") + @RequestMapping(value = "/treeList", method = RequestMethod.GET) + @ResponseBody + public CommonResult> treeList() { + List list = menuService.treeList(); + return CommonResult.success(list); + } + + @Operation(summary = "修改菜单显示状态") + @RequestMapping(value = "/updateHidden/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateHidden(@PathVariable Long id, @RequestParam("hidden") Integer hidden) { + int count = menuService.updateHidden(id, hidden); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/UmsResourceCategoryController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/UmsResourceCategoryController.java new file mode 100644 index 000000000..3c35c4d68 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/UmsResourceCategoryController.java @@ -0,0 +1,70 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.model.UmsResourceCategory; +import com.macro.mall.service.UmsResourceCategoryService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 后台资源分类管理Controller + * Created by macro on 2020/2/5. + */ +@Controller +@Tag(name = "UmsResourceCategoryController", description = "后台资源分类管理") +@RequestMapping("/resourceCategory") +public class UmsResourceCategoryController { + @Autowired + private UmsResourceCategoryService resourceCategoryService; + + @Operation(summary = "查询所有后台资源分类") + @RequestMapping(value = "/listAll", method = RequestMethod.GET) + @ResponseBody + public CommonResult> listAll() { + List resourceList = resourceCategoryService.listAll(); + return CommonResult.success(resourceList); + } + + @Operation(summary = "添加后台资源分类") + @RequestMapping(value = "/create", method = RequestMethod.POST) + @ResponseBody + public CommonResult create(@RequestBody UmsResourceCategory umsResourceCategory) { + int count = resourceCategoryService.create(umsResourceCategory); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "修改后台资源分类") + @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult update(@PathVariable Long id, + @RequestBody UmsResourceCategory umsResourceCategory) { + int count = resourceCategoryService.update(id, umsResourceCategory); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "根据ID删除后台资源") + @RequestMapping(value = "/delete/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult delete(@PathVariable Long id) { + int count = resourceCategoryService.delete(id); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/UmsResourceController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/UmsResourceController.java new file mode 100644 index 000000000..e0f3665f3 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/UmsResourceController.java @@ -0,0 +1,101 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonPage; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.model.UmsResource; +import com.macro.mall.service.UmsResourceService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +import java.util.List; +import java.util.Map; + +/** + * 后台资源管理Controller + * Created by macro on 2020/2/4. + */ +@Controller +@Tag(name = "UmsResourceController", description = "后台资源管理") +@RequestMapping("/resource") +public class UmsResourceController { + + @Autowired + private UmsResourceService resourceService; + + @Operation(summary = "添加后台资源") + @RequestMapping(value = "/create", method = RequestMethod.POST) + @ResponseBody + public CommonResult create(@RequestBody UmsResource umsResource) { + int count = resourceService.create(umsResource); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "修改后台资源") + @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult update(@PathVariable Long id, + @RequestBody UmsResource umsResource) { + int count = resourceService.update(id, umsResource); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "根据ID获取资源详情") + @RequestMapping(value = "/{id}", method = RequestMethod.GET) + @ResponseBody + public CommonResult getItem(@PathVariable Long id) { + UmsResource umsResource = resourceService.getItem(id); + return CommonResult.success(umsResource); + } + + @Operation(summary = "根据ID删除后台资源") + @RequestMapping(value = "/delete/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult delete(@PathVariable Long id) { + int count = resourceService.delete(id); + if (count > 0) { + return CommonResult.success(count); + } else { + return CommonResult.failed(); + } + } + + @Operation(summary = "分页模糊查询后台资源") + @RequestMapping(value = "/list", method = RequestMethod.GET) + @ResponseBody + public CommonResult> list(@RequestParam(required = false) Long categoryId, + @RequestParam(required = false) String nameKeyword, + @RequestParam(required = false) String urlKeyword, + @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, + @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { + List resourceList = resourceService.list(categoryId,nameKeyword, urlKeyword, pageSize, pageNum); + return CommonResult.success(CommonPage.restPage(resourceList)); + } + + @Operation(summary = "查询所有后台资源") + @RequestMapping(value = "/listAll", method = RequestMethod.GET) + @ResponseBody + public CommonResult> listAll() { + List resourceList = resourceService.listAll(); + return CommonResult.success(resourceList); + } + + @Operation(summary = "初始化路径和资源的关联数据") + @RequestMapping(value = "/initPathResourceMap", method = RequestMethod.GET) + @ResponseBody + public CommonResult initPathResourceMap() { + Map pathResourceMap = resourceService.initPathResourceMap(); + return CommonResult.success(pathResourceMap); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/UmsRoleController.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/UmsRoleController.java new file mode 100644 index 000000000..f061b519d --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/controller/UmsRoleController.java @@ -0,0 +1,123 @@ +package com.macro.mall.controller; + +import com.macro.mall.common.api.CommonPage; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.model.*; +import com.macro.mall.service.UmsRoleService; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 后台用户角色管理 + * Created by macro on 2018/9/30. + */ +@Controller +@Tag(name = "UmsRoleController", description = "后台用户角色管理") +@RequestMapping("/role") +public class UmsRoleController { + @Autowired + private UmsRoleService roleService; + + @Operation(summary = "添加角色") + @RequestMapping(value = "/create", method = RequestMethod.POST) + @ResponseBody + public CommonResult create(@RequestBody UmsRole role) { + int count = roleService.create(role); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "修改角色") + @RequestMapping(value = "/update/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult update(@PathVariable Long id, @RequestBody UmsRole role) { + int count = roleService.update(id, role); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "批量删除角色") + @RequestMapping(value = "/delete", method = RequestMethod.POST) + @ResponseBody + public CommonResult delete(@RequestParam("ids") List ids) { + int count = roleService.delete(ids); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "获取所有角色") + @RequestMapping(value = "/listAll", method = RequestMethod.GET) + @ResponseBody + public CommonResult> listAll() { + List roleList = roleService.list(); + return CommonResult.success(roleList); + } + + @Operation(summary = "根据角色名称分页获取角色列表") + @RequestMapping(value = "/list", method = RequestMethod.GET) + @ResponseBody + public CommonResult> list(@RequestParam(value = "keyword", required = false) String keyword, + @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, + @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { + List roleList = roleService.list(keyword, pageSize, pageNum); + return CommonResult.success(CommonPage.restPage(roleList)); + } + + @Operation(summary = "修改角色状态") + @RequestMapping(value = "/updateStatus/{id}", method = RequestMethod.POST) + @ResponseBody + public CommonResult updateStatus(@PathVariable Long id, @RequestParam(value = "status") Integer status) { + UmsRole umsRole = new UmsRole(); + umsRole.setStatus(status); + int count = roleService.update(id, umsRole); + if (count > 0) { + return CommonResult.success(count); + } + return CommonResult.failed(); + } + + @Operation(summary = "获取角色相关菜单") + @RequestMapping(value = "/listMenu/{roleId}", method = RequestMethod.GET) + @ResponseBody + public CommonResult> listMenu(@PathVariable Long roleId) { + List roleList = roleService.listMenu(roleId); + return CommonResult.success(roleList); + } + + @Operation(summary = "获取角色相关资源") + @RequestMapping(value = "/listResource/{roleId}", method = RequestMethod.GET) + @ResponseBody + public CommonResult> listResource(@PathVariable Long roleId) { + List roleList = roleService.listResource(roleId); + return CommonResult.success(roleList); + } + + @Operation(summary = "给角色分配菜单") + @RequestMapping(value = "/allocMenu", method = RequestMethod.POST) + @ResponseBody + public CommonResult allocMenu(@RequestParam Long roleId, @RequestParam List menuIds) { + int count = roleService.allocMenu(roleId, menuIds); + return CommonResult.success(count); + } + + @Operation(summary = "给角色分配资源") + @RequestMapping(value = "/allocResource", method = RequestMethod.POST) + @ResponseBody + public CommonResult allocResource(@RequestParam Long roleId, @RequestParam List resourceIds) { + int count = roleService.allocResource(roleId, resourceIds); + return CommonResult.success(count); + } + +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/CmsPrefrenceAreaProductRelationDao.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/CmsPrefrenceAreaProductRelationDao.java new file mode 100644 index 000000000..9f8216fc3 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/CmsPrefrenceAreaProductRelationDao.java @@ -0,0 +1,17 @@ +package com.macro.mall.dao; + +import com.macro.mall.model.CmsPrefrenceAreaProductRelation; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 自定义优选和商品关系操作Dao + * Created by macro on 2018/4/26. + */ +public interface CmsPrefrenceAreaProductRelationDao { + /** + * 批量创建 + */ + int insertList(@Param("list") List prefrenceAreaProductRelationList); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/CmsSubjectProductRelationDao.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/CmsSubjectProductRelationDao.java new file mode 100644 index 000000000..749aee6c8 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/CmsSubjectProductRelationDao.java @@ -0,0 +1,17 @@ +package com.macro.mall.dao; + +import com.macro.mall.model.CmsSubjectProductRelation; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 自定义商品和专题关系操作Dao + * Created by macro on 2018/4/26. + */ +public interface CmsSubjectProductRelationDao { + /** + * 批量创建 + */ + int insertList(@Param("list") List subjectProductRelationList); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/OmsOrderDao.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/OmsOrderDao.java new file mode 100644 index 000000000..0bd91f644 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/OmsOrderDao.java @@ -0,0 +1,30 @@ +package com.macro.mall.dao; + +import com.macro.mall.dto.OmsOrderDeliveryParam; +import com.macro.mall.dto.OmsOrderDetail; +import com.macro.mall.dto.OmsOrderQueryParam; +import com.macro.mall.model.OmsOrder; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 订单自定义查询Dao + * Created by macro on 2018/10/12. + */ +public interface OmsOrderDao { + /** + * 条件查询订单 + */ + List getList(@Param("queryParam") OmsOrderQueryParam queryParam); + + /** + * 批量发货 + */ + int delivery(@Param("list") List deliveryParamList); + + /** + * 获取订单详情 + */ + OmsOrderDetail getDetail(@Param("id") Long id); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/OmsOrderOperateHistoryDao.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/OmsOrderOperateHistoryDao.java new file mode 100644 index 000000000..23cfbca7b --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/OmsOrderOperateHistoryDao.java @@ -0,0 +1,17 @@ +package com.macro.mall.dao; + +import com.macro.mall.model.OmsOrderOperateHistory; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 订单操作记录自定义Dao + * Created by macro on 2018/10/12. + */ +public interface OmsOrderOperateHistoryDao { + /** + * 批量创建 + */ + int insertList(@Param("list") List orderOperateHistoryList); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/OmsOrderReturnApplyDao.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/OmsOrderReturnApplyDao.java new file mode 100644 index 000000000..0c82b3b94 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/OmsOrderReturnApplyDao.java @@ -0,0 +1,24 @@ +package com.macro.mall.dao; + +import com.macro.mall.dto.OmsOrderReturnApplyResult; +import com.macro.mall.dto.OmsReturnApplyQueryParam; +import com.macro.mall.model.OmsOrderReturnApply; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 订单退货申请自定义Dao + * Created by macro on 2018/10/18. + */ +public interface OmsOrderReturnApplyDao { + /** + * 查询申请列表 + */ + List getList(@Param("queryParam") OmsReturnApplyQueryParam queryParam); + + /** + * 获取申请详情 + */ + OmsOrderReturnApplyResult getDetail(@Param("id")Long id); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsMemberPriceDao.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsMemberPriceDao.java new file mode 100644 index 000000000..22b6cec81 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsMemberPriceDao.java @@ -0,0 +1,17 @@ +package com.macro.mall.dao; + +import com.macro.mall.model.PmsMemberPrice; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 自定义会员价格Dao + * Created by macro on 2018/4/26. + */ +public interface PmsMemberPriceDao { + /** + * 批量创建 + */ + int insertList(@Param("list") List memberPriceList); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductAttributeCategoryDao.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductAttributeCategoryDao.java new file mode 100644 index 000000000..b126010d2 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductAttributeCategoryDao.java @@ -0,0 +1,16 @@ +package com.macro.mall.dao; + +import com.macro.mall.dto.PmsProductAttributeCategoryItem; + +import java.util.List; + +/** + * 自定义商品属性分类Dao + * Created by macro on 2018/5/24. + */ +public interface PmsProductAttributeCategoryDao { + /** + * 获取包含属性的商品属性分类 + */ + List getListWithAttr(); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductAttributeDao.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductAttributeDao.java new file mode 100644 index 000000000..080108b48 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductAttributeDao.java @@ -0,0 +1,17 @@ +package com.macro.mall.dao; + +import com.macro.mall.dto.ProductAttrInfo; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 自定义商品属性Dao + * Created by macro on 2018/5/23. + */ +public interface PmsProductAttributeDao { + /** + * 获取商品属性信息 + */ + List getProductAttrInfo(@Param("id") Long productCategoryId); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductAttributeValueDao.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductAttributeValueDao.java new file mode 100644 index 000000000..1d1d9ff19 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductAttributeValueDao.java @@ -0,0 +1,17 @@ +package com.macro.mall.dao; + +import com.macro.mall.model.PmsProductAttributeValue; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 商品参数,商品自定义规格属性Dao + * Created by macro on 2018/4/26. + */ +public interface PmsProductAttributeValueDao { + /** + * 批量创建 + */ + int insertList(@Param("list")List productAttributeValueList); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductCategoryAttributeRelationDao.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductCategoryAttributeRelationDao.java new file mode 100644 index 000000000..dad6e2834 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductCategoryAttributeRelationDao.java @@ -0,0 +1,17 @@ +package com.macro.mall.dao; + +import com.macro.mall.model.PmsProductCategoryAttributeRelation; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 自定义商品分类和属性关系Dao + * Created by macro on 2018/5/23. + */ +public interface PmsProductCategoryAttributeRelationDao { + /** + * 批量创建 + */ + int insertList(@Param("list") List productCategoryAttributeRelationList); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductCategoryDao.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductCategoryDao.java new file mode 100644 index 000000000..9ac86daeb --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductCategoryDao.java @@ -0,0 +1,16 @@ +package com.macro.mall.dao; + +import com.macro.mall.dto.PmsProductCategoryWithChildrenItem; + +import java.util.List; + +/** + * 商品分类自定义Dao + * Created by macro on 2018/5/25. + */ +public interface PmsProductCategoryDao { + /** + * 获取商品分类及其子分类 + */ + List listWithChildren(); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductDao.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductDao.java new file mode 100644 index 000000000..982b482dd --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductDao.java @@ -0,0 +1,16 @@ +package com.macro.mall.dao; + +import com.macro.mall.dto.PmsProductResult; +import org.apache.ibatis.annotations.Param; + + +/** + * 自定义商品管理Dao + * Created by macro on 2018/4/26. + */ +public interface PmsProductDao { + /** + * 获取商品编辑信息 + */ + PmsProductResult getUpdateInfo(@Param("id") Long id); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductFullReductionDao.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductFullReductionDao.java new file mode 100644 index 000000000..871fe7640 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductFullReductionDao.java @@ -0,0 +1,17 @@ +package com.macro.mall.dao; + +import com.macro.mall.model.PmsProductFullReduction; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 自定义商品满减Dao + * Created by macro on 2018/4/26. + */ +public interface PmsProductFullReductionDao { + /** + * 批量创建 + */ + int insertList(@Param("list") List productFullReductionList); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductLadderDao.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductLadderDao.java new file mode 100644 index 000000000..ef95cb88f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductLadderDao.java @@ -0,0 +1,17 @@ +package com.macro.mall.dao; + +import com.macro.mall.model.PmsProductLadder; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 自定义会员阶梯价格Dao + * Created by macro on 2018/4/26. + */ +public interface PmsProductLadderDao { + /** + * 批量创建 + */ + int insertList(@Param("list") List productLadderList); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductVertifyRecordDao.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductVertifyRecordDao.java new file mode 100644 index 000000000..71c6ce7cd --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsProductVertifyRecordDao.java @@ -0,0 +1,17 @@ +package com.macro.mall.dao; + +import com.macro.mall.model.PmsProductVertifyRecord; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 自定义商品审核日志管理Dao + * Created by macro on 2018/4/27. + */ +public interface PmsProductVertifyRecordDao { + /** + * 批量创建 + */ + int insertList(@Param("list") List list); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsSkuStockDao.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsSkuStockDao.java new file mode 100644 index 000000000..05684742f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/PmsSkuStockDao.java @@ -0,0 +1,22 @@ +package com.macro.mall.dao; + +import com.macro.mall.model.PmsSkuStock; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 自定义商品SKU管理Dao + * Created by macro on 2018/4/26. + */ +public interface PmsSkuStockDao { + /** + * 批量插入操作 + */ + int insertList(@Param("list")List skuStockList); + + /** + * 批量插入或替换操作 + */ + int replaceList(@Param("list")List skuStockList); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/SmsCouponDao.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/SmsCouponDao.java new file mode 100644 index 000000000..603c03dbc --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/SmsCouponDao.java @@ -0,0 +1,15 @@ +package com.macro.mall.dao; + +import com.macro.mall.dto.SmsCouponParam; +import org.apache.ibatis.annotations.Param; + +/** + * 自定义优惠券管理Dao + * Created by macro on 2018/8/29. + */ +public interface SmsCouponDao { + /** + * 获取优惠券详情包括绑定关系 + */ + SmsCouponParam getItem(@Param("id") Long id); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/SmsCouponProductCategoryRelationDao.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/SmsCouponProductCategoryRelationDao.java new file mode 100644 index 000000000..ae5054f7b --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/SmsCouponProductCategoryRelationDao.java @@ -0,0 +1,17 @@ +package com.macro.mall.dao; + +import com.macro.mall.model.SmsCouponProductCategoryRelation; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 自定义优惠券和商品分类关系管理Dao + * Created by macro on 2018/8/28. + */ +public interface SmsCouponProductCategoryRelationDao { + /** + * 批量创建 + */ + int insertList(@Param("list")List productCategoryRelationList); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/SmsCouponProductRelationDao.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/SmsCouponProductRelationDao.java new file mode 100644 index 000000000..10d7e0170 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/SmsCouponProductRelationDao.java @@ -0,0 +1,17 @@ +package com.macro.mall.dao; + +import com.macro.mall.model.SmsCouponProductRelation; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 自定义优惠券和商品关系关系Dao + * Created by macro on 2018/8/28. + */ +public interface SmsCouponProductRelationDao { + /** + * 批量创建 + */ + int insertList(@Param("list")List productRelationList); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/SmsFlashPromotionProductRelationDao.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/SmsFlashPromotionProductRelationDao.java new file mode 100644 index 000000000..2e4b02da0 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/SmsFlashPromotionProductRelationDao.java @@ -0,0 +1,17 @@ +package com.macro.mall.dao; + +import com.macro.mall.dto.SmsFlashPromotionProduct; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 自定义限时购商品关系管理Dao + * Created by macro on 2018/11/16. + */ +public interface SmsFlashPromotionProductRelationDao { + /** + * 获取限时购及相关商品信息 + */ + List getList(@Param("flashPromotionId") Long flashPromotionId, @Param("flashPromotionSessionId") Long flashPromotionSessionId); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/UmsAdminRoleRelationDao.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/UmsAdminRoleRelationDao.java new file mode 100644 index 000000000..d96a416d6 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/UmsAdminRoleRelationDao.java @@ -0,0 +1,34 @@ +package com.macro.mall.dao; + +import com.macro.mall.model.UmsAdminRoleRelation; +import com.macro.mall.model.UmsResource; +import com.macro.mall.model.UmsRole; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 自定义后台用户与角色管理Dao + * Created by macro on 2018/10/8. + */ +public interface UmsAdminRoleRelationDao { + /** + * 批量插入用户角色关系 + */ + int insertList(@Param("list") List adminRoleRelationList); + + /** + * 获取用于所有角色 + */ + List getRoleList(@Param("adminId") Long adminId); + + /** + * 获取用户所有可访问资源 + */ + List getResourceList(@Param("adminId") Long adminId); + + /** + * 获取资源相关用户ID列表 + */ + List getAdminIdList(@Param("resourceId") Long resourceId); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/UmsRoleDao.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/UmsRoleDao.java new file mode 100644 index 000000000..04873d87d --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dao/UmsRoleDao.java @@ -0,0 +1,26 @@ +package com.macro.mall.dao; + +import com.macro.mall.model.UmsMenu; +import com.macro.mall.model.UmsResource; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 自定义后台角色管理Dao + * Created by macro on 2020/2/2. + */ +public interface UmsRoleDao { + /** + * 根据后台用户ID获取菜单 + */ + List getMenuList(@Param("adminId") Long adminId); + /** + * 根据角色ID获取菜单 + */ + List getMenuListByRoleId(@Param("roleId") Long roleId); + /** + * 根据角色ID获取资源 + */ + List getResourceListByRoleId(@Param("roleId") Long roleId); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/BucketPolicyConfigDto.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/BucketPolicyConfigDto.java new file mode 100644 index 000000000..c37f8986d --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/BucketPolicyConfigDto.java @@ -0,0 +1,31 @@ +package com.macro.mall.dto; + +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.List; + +/** + * Minio Bucket访问策略配置 + * Created by macro on 2020/8/11. + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Builder +public class BucketPolicyConfigDto { + + private String Version; + private List Statement; + + @Data + @EqualsAndHashCode(callSuper = false) + @Builder + public static class Statement { + private String Effect; + private String Principal; + private String Action; + private String Resource; + + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/MinioUploadDto.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/MinioUploadDto.java new file mode 100644 index 000000000..5df39799d --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/MinioUploadDto.java @@ -0,0 +1,18 @@ +package com.macro.mall.dto; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 文件上传返回结果 + * Created by macro on 2019/12/25. + */ +@Data +@EqualsAndHashCode(callSuper = false) +public class MinioUploadDto { + @Schema(title = "文件访问URL") + private String url; + @Schema(title = "文件名称") + private String name; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsMoneyInfoParam.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsMoneyInfoParam.java new file mode 100644 index 000000000..c48e3d338 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsMoneyInfoParam.java @@ -0,0 +1,24 @@ +package com.macro.mall.dto; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Getter; +import lombok.Setter; + +import java.math.BigDecimal; + +/** + * 修改订单费用信息参数 + * Created by macro on 2018/10/29. + */ +@Getter +@Setter +public class OmsMoneyInfoParam { + @Schema(title = "订单ID") + private Long orderId; + @Schema(title = "运费金额") + private BigDecimal freightAmount; + @Schema(title = "管理员后台调整订单使用的折扣金额") + private BigDecimal discountAmount; + @Schema(title = "订单状态:0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单") + private Integer status; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsOrderDeliveryParam.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsOrderDeliveryParam.java new file mode 100644 index 000000000..9929bbf99 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsOrderDeliveryParam.java @@ -0,0 +1,20 @@ +package com.macro.mall.dto; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Getter; +import lombok.Setter; + +/** + * 订单发货参数 + * Created by macro on 2018/10/12. + */ +@Getter +@Setter +public class OmsOrderDeliveryParam { + @Schema(title = "订单id") + private Long orderId; + @Schema(title = "物流公司") + private String deliveryCompany; + @Schema(title = "物流单号") + private String deliverySn; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsOrderDetail.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsOrderDetail.java new file mode 100644 index 000000000..323d79ce6 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsOrderDetail.java @@ -0,0 +1,25 @@ +package com.macro.mall.dto; + +import com.macro.mall.model.OmsOrder; +import com.macro.mall.model.OmsOrderItem; +import com.macro.mall.model.OmsOrderOperateHistory; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Getter; +import lombok.Setter; + +import java.util.List; + +/** + * 订单详情信息 + * Created by macro on 2018/10/11. + */ +public class OmsOrderDetail extends OmsOrder { + @Getter + @Setter + @Schema(title = "订单商品列表") + private List orderItemList; + @Getter + @Setter + @Schema(title = "订单操作记录列表") + private List historyList; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsOrderQueryParam.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsOrderQueryParam.java new file mode 100644 index 000000000..ef9ec60ad --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsOrderQueryParam.java @@ -0,0 +1,26 @@ +package com.macro.mall.dto; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Getter; +import lombok.Setter; + +/** + * 订单查询参数 + * Created by macro on 2018/10/11. + */ +@Getter +@Setter +public class OmsOrderQueryParam { + @Schema(title = "订单编号") + private String orderSn; + @Schema(title = "收货人姓名/号码") + private String receiverKeyword; + @Schema(title = "订单状态:0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单") + private Integer status; + @Schema(title = "订单类型:0->正常订单;1->秒杀订单") + private Integer orderType; + @Schema(title = "订单来源:0->PC订单;1->app订单") + private Integer sourceType; + @Schema(title = "订单提交时间") + private String createTime; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsOrderReturnApplyResult.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsOrderReturnApplyResult.java new file mode 100644 index 000000000..47012a622 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsOrderReturnApplyResult.java @@ -0,0 +1,18 @@ +package com.macro.mall.dto; + +import com.macro.mall.model.OmsCompanyAddress; +import com.macro.mall.model.OmsOrderReturnApply; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Getter; +import lombok.Setter; + +/** + * 申请信息封装 + * Created by macro on 2018/10/18. + */ +public class OmsOrderReturnApplyResult extends OmsOrderReturnApply { + @Getter + @Setter + @Schema(title = "公司收货地址") + private OmsCompanyAddress companyAddress; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsReceiverInfoParam.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsReceiverInfoParam.java new file mode 100644 index 000000000..a69c4386f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsReceiverInfoParam.java @@ -0,0 +1,32 @@ +package com.macro.mall.dto; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Getter; +import lombok.Setter; + +/** + * 订单修改收货人信息参数 + * Created by macro on 2018/10/29. + */ +@Getter +@Setter +public class OmsReceiverInfoParam { + @Schema(title = "订单ID") + private Long orderId; + @Schema(title = "收货人姓名") + private String receiverName; + @Schema(title = "收货人电话") + private String receiverPhone; + @Schema(title = "收货人邮编") + private String receiverPostCode; + @Schema(title = "详细地址") + private String receiverDetailAddress; + @Schema(title = "省份/直辖市") + private String receiverProvince; + @Schema(title = "城市") + private String receiverCity; + @Schema(title = "区") + private String receiverRegion; + @Schema(title = "订单状态:0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单") + private Integer status; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsReturnApplyQueryParam.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsReturnApplyQueryParam.java new file mode 100644 index 000000000..b77f02326 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsReturnApplyQueryParam.java @@ -0,0 +1,26 @@ +package com.macro.mall.dto; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Getter; +import lombok.Setter; + +/** + * 订单退货申请查询参数 + * Created by macro on 2018/10/18. + */ +@Getter +@Setter +public class OmsReturnApplyQueryParam { + @Schema(title = "服务单号") + private Long id; + @Schema(title = "收货人姓名/号码") + private String receiverKeyword; + @Schema(title = "申请状态:0->待处理;1->退货中;2->已完成;3->已拒绝") + private Integer status; + @Schema(title = "申请时间") + private String createTime; + @Schema(title = "处理人员") + private String handleMan; + @Schema(title = "处理时间") + private String handleTime; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsUpdateStatusParam.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsUpdateStatusParam.java new file mode 100644 index 000000000..f12c70d01 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OmsUpdateStatusParam.java @@ -0,0 +1,32 @@ +package com.macro.mall.dto; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Getter; +import lombok.Setter; + +import java.math.BigDecimal; + +/** + * 确认收货提交参数 + * Created by macro on 2018/10/18. + */ +@Getter +@Setter +public class OmsUpdateStatusParam { + @Schema(title = "服务单号") + private Long id; + @Schema(title = "收货地址关联id") + private Long companyAddressId; + @Schema(title = "确认退款金额") + private BigDecimal returnAmount; + @Schema(title = "处理备注") + private String handleNote; + @Schema(title = "处理人") + private String handleMan; + @Schema(title = "收货备注") + private String receiveNote; + @Schema(title = "收货人") + private String receiveMan; + @Schema(title = "申请状态:1->退货中;2->已完成;3->已拒绝") + private Integer status; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OssCallbackParam.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OssCallbackParam.java new file mode 100644 index 000000000..d376a25da --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OssCallbackParam.java @@ -0,0 +1,20 @@ +package com.macro.mall.dto; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * oss上传成功后的回调参数 + * Created by macro on 2018/5/17. + */ +@Data +@EqualsAndHashCode(callSuper = false) +public class OssCallbackParam { + @Schema(title = "请求的回调地址") + private String callbackUrl; + @Schema(title = "回调是传入request中的参数") + private String callbackBody; + @Schema(title = "回调时传入参数的格式,比如表单提交形式") + private String callbackBodyType; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OssCallbackResult.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OssCallbackResult.java new file mode 100644 index 000000000..992ad684f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OssCallbackResult.java @@ -0,0 +1,24 @@ +package com.macro.mall.dto; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * oss上传文件的回调结果 + * Created by macro on 2018/5/17. + */ +@Data +@EqualsAndHashCode(callSuper = false) +public class OssCallbackResult { + @Schema(title = "文件名称") + private String filename; + @Schema(title = "文件大小") + private String size; + @Schema(title = "文件的mimeType") + private String mimeType; + @Schema(title = "图片文件的宽") + private String width; + @Schema(title = "图片文件的高") + private String height; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OssPolicyResult.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OssPolicyResult.java new file mode 100644 index 000000000..407a90d81 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/OssPolicyResult.java @@ -0,0 +1,26 @@ +package com.macro.mall.dto; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 获取OSS上传文件授权返回结果 + * Created by macro on 2018/5/17. + */ +@Data +@EqualsAndHashCode(callSuper = false) +public class OssPolicyResult { + @Schema(title = "访问身份验证中用到用户标识") + private String accessKeyId; + @Schema(title = "用户表单上传的策略,经过base64编码过的字符串") + private String policy; + @Schema(title = "对policy签名后的字符串") + private String signature; + @Schema(title = "上传文件夹路径前缀") + private String dir; + @Schema(title = "oss对外服务的访问域名") + private String host; + @Schema(title = "上传成功后的回调设置") + private String callback; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsBrandParam.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsBrandParam.java new file mode 100644 index 000000000..92237db6d --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsBrandParam.java @@ -0,0 +1,39 @@ +package com.macro.mall.dto; + +import com.macro.mall.validator.FlagValidator; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.NotEmpty; + +/** + * 品牌传递参数 + * Created by macro on 2018/4/26. + */ +@Data +@EqualsAndHashCode(callSuper = false) +public class PmsBrandParam { + @NotEmpty + @Schema(title = "品牌名称",required = true) + private String name; + @Schema(title = "品牌首字母") + private String firstLetter; + @Min(value = 0) + @Schema(title = "排序字段") + private Integer sort; + @FlagValidator(value = {"0","1"}, message = "厂家状态不正确") + @Schema(title = "是否为厂家制造商") + private Integer factoryStatus; + @FlagValidator(value = {"0","1"}, message = "显示状态不正确") + @Schema(title = "是否进行显示") + private Integer showStatus; + @NotEmpty + @Schema(title = "品牌logo",required = true) + private String logo; + @Schema(title = "品牌大图") + private String bigPic; + @Schema(title = "品牌故事") + private String brandStory; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsProductAttributeCategoryItem.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsProductAttributeCategoryItem.java new file mode 100644 index 000000000..b33ba0316 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsProductAttributeCategoryItem.java @@ -0,0 +1,21 @@ +package com.macro.mall.dto; + +import com.macro.mall.model.PmsProductAttribute; +import com.macro.mall.model.PmsProductAttributeCategory; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.Getter; +import lombok.Setter; + +import java.util.List; + +/** + * 包含有分类下属性的dto + * Created by macro on 2018/5/24. + */ +public class PmsProductAttributeCategoryItem extends PmsProductAttributeCategory { + @Getter + @Setter + @Schema(title = "商品属性列表") + private List productAttributeList; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsProductAttributeParam.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsProductAttributeParam.java new file mode 100644 index 000000000..71e4df8cb --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsProductAttributeParam.java @@ -0,0 +1,48 @@ +package com.macro.mall.dto; + +import com.macro.mall.validator.FlagValidator; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import jakarta.validation.constraints.NotEmpty; + +/** + * 商品属性参数 + * Created by macro on 2018/4/26. + */ +@Data +@EqualsAndHashCode(callSuper = false) +public class PmsProductAttributeParam { + @NotEmpty + @Schema(title = "属性分类ID") + private Long productAttributeCategoryId; + @NotEmpty + @Schema(title = "属性名称") + private String name; + @FlagValidator({"0","1","2"}) + @Schema(title = "属性选择类型:0->唯一;1->单选;2->多选") + private Integer selectType; + @FlagValidator({"0","1"}) + @Schema(title = "属性录入方式:0->手工录入;1->从列表中选取") + private Integer inputType; + @Schema(title = "可选值列表,以逗号隔开") + private String inputList; + + private Integer sort; + @FlagValidator({"0","1"}) + @Schema(title = "分类筛选样式:0->普通;1->颜色") + private Integer filterType; + @FlagValidator({"0","1","2"}) + @Schema(title = "检索类型;0->不需要进行检索;1->关键字检索;2->范围检索") + private Integer searchType; + @FlagValidator({"0","1"}) + @Schema(title = "相同属性产品是否关联;0->不关联;1->关联") + private Integer relatedStatus; + @FlagValidator({"0","1"}) + @Schema(title = "是否支持手动新增;0->不支持;1->支持") + private Integer handAddStatus; + @FlagValidator({"0","1"}) + @Schema(title = "属性的类型;0->规格;1->参数") + private Integer type; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsProductCategoryParam.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsProductCategoryParam.java new file mode 100644 index 000000000..59ea12b27 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsProductCategoryParam.java @@ -0,0 +1,43 @@ +package com.macro.mall.dto; + +import com.macro.mall.validator.FlagValidator; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.NotEmpty; +import java.util.List; + +/** + * 添加更新产品分类的参数 + * Created by macro on 2018/4/26. + */ +@Data +@EqualsAndHashCode(callSuper = false) +public class PmsProductCategoryParam { + @Schema(title = "父分类的编号") + private Long parentId; + @NotEmpty + @Schema(title = "商品分类名称",required = true) + private String name; + @Schema(title = "分类单位") + private String productUnit; + @FlagValidator(value = {"0","1"},message = "状态只能为0或1") + @Schema(title = "是否在导航栏显示") + private Integer navStatus; + @FlagValidator(value = {"0","1"},message = "状态只能为0或1") + @Schema(title = "是否进行显示") + private Integer showStatus; + @Min(value = 0) + @Schema(title = "排序") + private Integer sort; + @Schema(title = "图标") + private String icon; + @Schema(title = "关键字") + private String keywords; + @Schema(title = "描述") + private String description; + @Schema(title = "产品相关筛选属性集合") + private List productAttributeIdList; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsProductCategoryWithChildrenItem.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsProductCategoryWithChildrenItem.java new file mode 100644 index 000000000..aa9414e4c --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsProductCategoryWithChildrenItem.java @@ -0,0 +1,18 @@ +package com.macro.mall.dto; + +import com.macro.mall.model.PmsProductCategory; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Getter; +import lombok.Setter; + +import java.util.List; + +/** + * Created by macro on 2018/5/25. + */ +public class PmsProductCategoryWithChildrenItem extends PmsProductCategory { + @Getter + @Setter + @Schema(title = "子级分类") + private List children; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsProductParam.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsProductParam.java new file mode 100644 index 000000000..4fd40d7a5 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsProductParam.java @@ -0,0 +1,31 @@ +package com.macro.mall.dto; + +import com.macro.mall.model.*; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.List; + +/** + * 创建和修改商品时使用的参数 + * Created by macro on 2018/4/26. + */ +@Data +@EqualsAndHashCode(callSuper = false) +public class PmsProductParam extends PmsProduct{ + @Schema(title = "商品阶梯价格设置") + private List productLadderList; + @Schema(title = "商品满减价格设置") + private List productFullReductionList; + @Schema(title = "商品会员价格设置") + private List memberPriceList; + @Schema(title = "商品的sku库存信息") + private List skuStockList; + @Schema(title = "商品参数及自定义规格属性") + private List productAttributeValueList; + @Schema(title = "专题和商品关系") + private List subjectProductRelationList; + @Schema(title = "优选专区和商品的关系") + private List prefrenceAreaProductRelationList; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsProductQueryParam.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsProductQueryParam.java new file mode 100644 index 000000000..9a641290f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsProductQueryParam.java @@ -0,0 +1,26 @@ +package com.macro.mall.dto; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 产品查询参数 + * Created by macro on 2018/4/27. + */ +@Data +@EqualsAndHashCode(callSuper = false) +public class PmsProductQueryParam { + @Schema(title = "上架状态") + private Integer publishStatus; + @Schema(title = "审核状态") + private Integer verifyStatus; + @Schema(title = "商品名称模糊关键字") + private String keyword; + @Schema(title = "商品货号") + private String productSn; + @Schema(title = "商品分类编号") + private Long productCategoryId; + @Schema(title = "商品品牌编号") + private Long brandId; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsProductResult.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsProductResult.java new file mode 100644 index 000000000..f60c601a8 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/PmsProductResult.java @@ -0,0 +1,16 @@ +package com.macro.mall.dto; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Getter; +import lombok.Setter; + +/** + * 查询单个产品进行修改时返回的结果 + * Created by macro on 2018/4/26. + */ +public class PmsProductResult extends PmsProductParam { + @Getter + @Setter + @Schema(title = "商品所选分类的父id") + private Long cateParentId; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/ProductAttrInfo.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/ProductAttrInfo.java new file mode 100644 index 000000000..7546326c7 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/ProductAttrInfo.java @@ -0,0 +1,19 @@ +package com.macro.mall.dto; + + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 商品分类对应属性信息 + * Created by macro on 2018/5/23. + */ +@Data +@EqualsAndHashCode(callSuper = false) +public class ProductAttrInfo { + @Schema(title = "商品属性ID") + private Long attributeId; + @Schema(title = "商品属性分类ID") + private Long attributeCategoryId; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/SmsCouponParam.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/SmsCouponParam.java new file mode 100644 index 000000000..12530e0ff --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/SmsCouponParam.java @@ -0,0 +1,25 @@ +package com.macro.mall.dto; + +import com.macro.mall.model.SmsCoupon; +import com.macro.mall.model.SmsCouponProductCategoryRelation; +import com.macro.mall.model.SmsCouponProductRelation; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Getter; +import lombok.Setter; + +import java.util.List; + +/** + * 优惠券信息封装,包括绑定商品和绑定分类 + * Created by macro on 2018/8/28. + */ +public class SmsCouponParam extends SmsCoupon { + @Getter + @Setter + @Schema(title = "优惠券绑定的商品") + private List productRelationList; + @Getter + @Setter + @Schema(title = "优惠券绑定的商品分类") + private List productCategoryRelationList; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/SmsFlashPromotionProduct.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/SmsFlashPromotionProduct.java new file mode 100644 index 000000000..117df3b91 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/SmsFlashPromotionProduct.java @@ -0,0 +1,18 @@ +package com.macro.mall.dto; + +import com.macro.mall.model.PmsProduct; +import com.macro.mall.model.SmsFlashPromotionProductRelation; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Getter; +import lombok.Setter; + +/** + * 限时购及商品信息封装 + * Created by macro on 2018/11/16. + */ +public class SmsFlashPromotionProduct extends SmsFlashPromotionProductRelation{ + @Getter + @Setter + @Schema(title = "关联商品") + private PmsProduct product; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/SmsFlashPromotionSessionDetail.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/SmsFlashPromotionSessionDetail.java new file mode 100644 index 000000000..906628be7 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/SmsFlashPromotionSessionDetail.java @@ -0,0 +1,17 @@ +package com.macro.mall.dto; + +import com.macro.mall.model.SmsFlashPromotionSession; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Getter; +import lombok.Setter; + +/** + * 包含商品数量的场次信息 + * Created by macro on 2018/11/19. + */ +public class SmsFlashPromotionSessionDetail extends SmsFlashPromotionSession { + @Setter + @Getter + @Schema(title = "商品数量") + private Long productCount; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/UmsAdminLoginParam.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/UmsAdminLoginParam.java new file mode 100644 index 000000000..af680f4c7 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/UmsAdminLoginParam.java @@ -0,0 +1,22 @@ +package com.macro.mall.dto; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import jakarta.validation.constraints.NotEmpty; + +/** + * 用户登录参数 + * Created by macro on 2018/4/26. + */ +@Data +@EqualsAndHashCode(callSuper = false) +public class UmsAdminLoginParam { + @NotEmpty + @Schema(title = "用户名", required = true) + private String username; + @NotEmpty + @Schema(title = "密码", required = true) + private String password; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/UmsAdminParam.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/UmsAdminParam.java new file mode 100644 index 000000000..94e93e4b3 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/UmsAdminParam.java @@ -0,0 +1,32 @@ +package com.macro.mall.dto; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Getter; +import lombok.Setter; + +import jakarta.validation.constraints.Email; +import jakarta.validation.constraints.NotEmpty; + +/** + * 用户登录参数 + * Created by macro on 2018/4/26. + */ +@Getter +@Setter +public class UmsAdminParam { + @Schema(title = "用户名", required = true) + @NotEmpty + private String username; + @Schema(title = "密码", required = true) + @NotEmpty + private String password; + @Schema(title = "用户头像") + private String icon; + @Schema(title = "邮箱") + @Email + private String email; + @Schema(title = "用户昵称") + private String nickName; + @Schema(title = "备注") + private String note; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/UmsMenuNode.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/UmsMenuNode.java new file mode 100644 index 000000000..4c8d5b370 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/UmsMenuNode.java @@ -0,0 +1,19 @@ +package com.macro.mall.dto; + +import com.macro.mall.model.UmsMenu; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Getter; +import lombok.Setter; + +import java.util.List; + +/** + * 后台菜单节点封装 + * Created by macro on 2020/2/4. + */ +@Getter +@Setter +public class UmsMenuNode extends UmsMenu { + @Schema(title = "子级菜单") + private List children; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/UpdateAdminPasswordParam.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/UpdateAdminPasswordParam.java new file mode 100644 index 000000000..ae96275a1 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/dto/UpdateAdminPasswordParam.java @@ -0,0 +1,25 @@ +package com.macro.mall.dto; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Getter; +import lombok.Setter; + +import jakarta.validation.constraints.NotEmpty; + +/** + * 修改用户名密码参数 + * Created by macro on 2019/10/9. + */ +@Getter +@Setter +public class UpdateAdminPasswordParam { + @NotEmpty + @Schema(title = "用户名", required = true) + private String username; + @NotEmpty + @Schema(title = "旧密码", required = true) + private String oldPassword; + @NotEmpty + @Schema(title = "新密码", required = true) + private String newPassword; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/CmsPrefrenceAreaService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/CmsPrefrenceAreaService.java new file mode 100644 index 000000000..9a6d2181d --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/CmsPrefrenceAreaService.java @@ -0,0 +1,16 @@ +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 listAll(); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/CmsSubjectService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/CmsSubjectService.java new file mode 100644 index 000000000..b7657d9cd --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/CmsSubjectService.java @@ -0,0 +1,21 @@ +package com.macro.mall.service; + +import com.macro.mall.model.CmsSubject; + +import java.util.List; + +/** + * 商品专题管理Service + * Created by macro on 2018/6/1. + */ +public interface CmsSubjectService { + /** + * 查询所有专题 + */ + List listAll(); + + /** + * 分页查询专题 + */ + List list(String keyword, Integer pageNum, Integer pageSize); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/OmsCompanyAddressService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/OmsCompanyAddressService.java new file mode 100644 index 000000000..d8f9ac6b1 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/OmsCompanyAddressService.java @@ -0,0 +1,16 @@ +package com.macro.mall.service; + +import com.macro.mall.model.OmsCompanyAddress; + +import java.util.List; + +/** + * 收货地址管Service + * Created by macro on 2018/10/18. + */ +public interface OmsCompanyAddressService { + /** + * 获取全部收货地址 + */ + List list(); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/OmsOrderReturnApplyService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/OmsOrderReturnApplyService.java new file mode 100644 index 000000000..597744e5f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/OmsOrderReturnApplyService.java @@ -0,0 +1,34 @@ +package com.macro.mall.service; + +import com.macro.mall.dto.OmsOrderReturnApplyResult; +import com.macro.mall.dto.OmsReturnApplyQueryParam; +import com.macro.mall.dto.OmsUpdateStatusParam; +import com.macro.mall.model.OmsOrderReturnApply; + +import java.util.List; + +/** + * 退货申请管理Service + * Created by macro on 2018/10/18. + */ +public interface OmsOrderReturnApplyService { + /** + * 分页查询申请 + */ + List list(OmsReturnApplyQueryParam queryParam, Integer pageSize, Integer pageNum); + + /** + * 批量删除申请 + */ + int delete(List ids); + + /** + * 修改申请状态 + */ + int updateStatus(Long id, OmsUpdateStatusParam statusParam); + + /** + * 获取指定申请详情 + */ + OmsOrderReturnApplyResult getItem(Long id); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/OmsOrderReturnReasonService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/OmsOrderReturnReasonService.java new file mode 100644 index 000000000..f46844ced --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/OmsOrderReturnReasonService.java @@ -0,0 +1,41 @@ +package com.macro.mall.service; + +import com.macro.mall.model.OmsOrderReturnReason; + +import java.util.List; + +/** + * 订单原因管理Service + * Created by macro on 2018/10/17. + */ +public interface OmsOrderReturnReasonService { + /** + * 添加订单原因 + */ + int create(OmsOrderReturnReason returnReason); + + /** + * 修改退货原因 + */ + int update(Long id, OmsOrderReturnReason returnReason); + + /** + * 批量删除退货原因 + */ + int delete(List ids); + + /** + * 分页获取退货原因 + */ + List list(Integer pageSize, Integer pageNum); + + /** + * 批量修改退货原因状态 + */ + int updateStatus(List ids, Integer status); + + /** + * 获取单个退货原因详情信息 + */ + OmsOrderReturnReason getItem(Long id); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/OmsOrderService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/OmsOrderService.java new file mode 100644 index 000000000..86abe7140 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/OmsOrderService.java @@ -0,0 +1,58 @@ +package com.macro.mall.service; + +import com.macro.mall.dto.*; +import com.macro.mall.model.OmsOrder; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * 订单管理Service + * Created by macro on 2018/10/11. + */ +public interface OmsOrderService { + /** + * 订单查询 + */ + List list(OmsOrderQueryParam queryParam, Integer pageSize, Integer pageNum); + + /** + * 批量发货 + */ + @Transactional + int delivery(List deliveryParamList); + + /** + * 批量关闭订单 + */ + @Transactional + int close(List ids, String note); + + /** + * 批量删除订单 + */ + int delete(List ids); + + /** + * 获取指定订单详情 + */ + OmsOrderDetail detail(Long id); + + /** + * 修改订单收货人信息 + */ + @Transactional + int updateReceiverInfo(OmsReceiverInfoParam receiverInfoParam); + + /** + * 修改订单费用信息 + */ + @Transactional + int updateMoneyInfo(OmsMoneyInfoParam moneyInfoParam); + + /** + * 修改订单备注 + */ + @Transactional + int updateNote(Long id, String note, Integer status); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/OmsOrderSettingService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/OmsOrderSettingService.java new file mode 100644 index 000000000..374a976d4 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/OmsOrderSettingService.java @@ -0,0 +1,19 @@ +package com.macro.mall.service; + +import com.macro.mall.model.OmsOrderSetting; + +/** + * 订单设置Service + * Created by macro on 2018/10/16. + */ +public interface OmsOrderSettingService { + /** + * 获取指定订单设置 + */ + OmsOrderSetting getItem(Long id); + + /** + * 修改指定订单设置 + */ + int update(Long id, OmsOrderSetting orderSetting); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/OssService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/OssService.java new file mode 100644 index 000000000..36ebf4df3 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/OssService.java @@ -0,0 +1,21 @@ +package com.macro.mall.service; + +import com.macro.mall.dto.OssCallbackResult; +import com.macro.mall.dto.OssPolicyResult; + +import jakarta.servlet.http.HttpServletRequest; + +/** + * oss上传管理Service + * Created by macro on 2018/5/17. + */ +public interface OssService { + /** + * oss上传策略生成 + */ + OssPolicyResult policy(); + /** + * oss上传成功回调 + */ + OssCallbackResult callback(HttpServletRequest request); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/PmsBrandService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/PmsBrandService.java new file mode 100644 index 000000000..8b1e11b81 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/PmsBrandService.java @@ -0,0 +1,59 @@ +package com.macro.mall.service; + +import com.macro.mall.dto.PmsBrandParam; +import com.macro.mall.model.PmsBrand; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * 商品品牌Service + * Created by macro on 2018/4/26. + */ +public interface PmsBrandService { + /** + * 获取所有品牌 + */ + List listAllBrand(); + + /** + * 创建品牌 + */ + int createBrand(PmsBrandParam pmsBrandParam); + + /** + * 修改品牌 + */ + @Transactional + int updateBrand(Long id, PmsBrandParam pmsBrandParam); + + /** + * 删除品牌 + */ + int deleteBrand(Long id); + + /** + * 批量删除品牌 + */ + int deleteBrand(List ids); + + /** + * 分页查询品牌 + */ + List listBrand(String keyword, int pageNum, int pageSize); + + /** + * 获取品牌 + */ + PmsBrand getBrand(Long id); + + /** + * 修改显示状态 + */ + int updateShowStatus(List ids, Integer showStatus); + + /** + * 修改厂家制造商状态 + */ + int updateFactoryStatus(List ids, Integer factoryStatus); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/PmsProductAttributeCategoryService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/PmsProductAttributeCategoryService.java new file mode 100644 index 000000000..7a3c82834 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/PmsProductAttributeCategoryService.java @@ -0,0 +1,42 @@ +package com.macro.mall.service; + +import com.macro.mall.dto.PmsProductAttributeCategoryItem; +import com.macro.mall.model.PmsProductAttributeCategory; + +import java.util.List; + +/** + * 商品属性分类Service + * Created by macro on 2018/4/26. + */ +public interface PmsProductAttributeCategoryService { + /** + * 创建属性分类 + */ + int create(String name); + + /** + * 修改属性分类 + */ + int update(Long id, String name); + + /** + * 删除属性分类 + */ + int delete(Long id); + + /** + * 获取属性分类详情 + */ + PmsProductAttributeCategory getItem(Long id); + + /** + * 分页查询属性分类 + */ + List getList(Integer pageSize, Integer pageNum); + + /** + * 获取包含属性的属性分类 + */ + List getListWithAttr(); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/PmsProductAttributeService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/PmsProductAttributeService.java new file mode 100644 index 000000000..2f1b6b850 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/PmsProductAttributeService.java @@ -0,0 +1,42 @@ +package com.macro.mall.service; + +import com.macro.mall.dto.PmsProductAttributeParam; +import com.macro.mall.dto.ProductAttrInfo; +import com.macro.mall.model.PmsProductAttribute; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * 商品属性Service + * Created by macro on 2018/4/26. + */ +public interface PmsProductAttributeService { + /** + * 根据分类分页获取商品属性 + * @param cid 分类id + * @param type 0->属性;2->参数 + */ + List getList(Long cid, Integer type, Integer pageSize, Integer pageNum); + + /** + * 添加商品属性 + */ + @Transactional + int create(PmsProductAttributeParam pmsProductAttributeParam); + + /** + * 修改商品属性 + */ + int update(Long id, PmsProductAttributeParam productAttributeParam); + + /** + * 获取单个商品属性信息 + */ + PmsProductAttribute getItem(Long id); + + @Transactional + int delete(List ids); + + List getProductAttrInfo(Long productCategoryId); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/PmsProductCategoryService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/PmsProductCategoryService.java new file mode 100644 index 000000000..ed422b2eb --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/PmsProductCategoryService.java @@ -0,0 +1,58 @@ +package com.macro.mall.service; + +import com.macro.mall.dto.PmsProductCategoryParam; +import com.macro.mall.dto.PmsProductCategoryWithChildrenItem; +import com.macro.mall.model.PmsProductCategory; +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 PmsProductCategoryService { + /** + * 创建商品分类 + */ + @Transactional + int create(PmsProductCategoryParam pmsProductCategoryParam); + + /** + * 修改商品分类 + */ + @Transactional + int update(Long id, PmsProductCategoryParam pmsProductCategoryParam); + + /** + * 分页获取商品分类 + */ + List getList(Long parentId, Integer pageSize, Integer pageNum); + + /** + * 删除商品分类 + */ + int delete(Long id); + + /** + * 根据ID获取商品分类 + */ + PmsProductCategory getItem(Long id); + + /** + * 批量修改导航状态 + */ + int updateNavStatus(List ids, Integer navStatus); + + /** + * 批量修改显示状态 + */ + int updateShowStatus(List ids, Integer showStatus); + + /** + * 以层级形式获取商品分类 + */ + List listWithChildren(); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/PmsProductService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/PmsProductService.java new file mode 100644 index 000000000..ceeae5c49 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/PmsProductService.java @@ -0,0 +1,73 @@ +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); + + /** + * 根据商品编号获取更新信息 + */ + PmsProductResult getUpdateInfo(Long id); + + /** + * 更新商品 + */ + @Transactional + int update(Long id, PmsProductParam productParam); + + /** + * 分页查询商品 + */ + List list(PmsProductQueryParam productQueryParam, Integer pageSize, Integer pageNum); + + /** + * 批量修改审核状态 + * @param ids 产品id + * @param verifyStatus 审核状态 + * @param detail 审核详情 + */ + @Transactional + int updateVerifyStatus(List ids, Integer verifyStatus, String detail); + + /** + * 批量修改商品上架状态 + */ + int updatePublishStatus(List ids, Integer publishStatus); + + /** + * 批量修改商品推荐状态 + */ + int updateRecommendStatus(List ids, Integer recommendStatus); + + /** + * 批量修改新品状态 + */ + int updateNewStatus(List ids, Integer newStatus); + + /** + * 批量删除商品 + */ + int updateDeleteStatus(List ids, Integer deleteStatus); + + /** + * 根据商品名称或者货号模糊查询 + */ + List list(String keyword); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/PmsSkuStockService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/PmsSkuStockService.java new file mode 100644 index 000000000..e3c485efd --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/PmsSkuStockService.java @@ -0,0 +1,21 @@ +package com.macro.mall.service; + +import com.macro.mall.model.PmsSkuStock; + +import java.util.List; + +/** + * sku商品库存管理Service + * Created by macro on 2018/4/27. + */ +public interface PmsSkuStockService { + /** + * 根据产品id和skuCode模糊搜索 + */ + List getList(Long pid, String keyword); + + /** + * 批量更新商品库存信息 + */ + int update(Long pid, List skuStockList); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsCouponHistoryService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsCouponHistoryService.java new file mode 100644 index 000000000..27c8cea0f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsCouponHistoryService.java @@ -0,0 +1,19 @@ +package com.macro.mall.service; + +import com.macro.mall.model.SmsCouponHistory; + +import java.util.List; + +/** + * 优惠券领取记录管理Service + * Created by macro on 2018/11/6. + */ +public interface SmsCouponHistoryService { + /** + * 分页查询优惠券领取记录 + * @param couponId 优惠券id + * @param useStatus 使用状态 + * @param orderSn 使用订单号码 + */ + List list(Long couponId, Integer useStatus, String orderSn, Integer pageSize, Integer pageNum); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsCouponService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsCouponService.java new file mode 100644 index 000000000..ba9f49333 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsCouponService.java @@ -0,0 +1,42 @@ +package com.macro.mall.service; + +import com.macro.mall.dto.SmsCouponParam; +import com.macro.mall.model.SmsCoupon; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * 优惠券管理Service + * Created by macro on 2018/8/28. + */ +public interface SmsCouponService { + /** + * 添加优惠券 + */ + @Transactional + int create(SmsCouponParam couponParam); + + /** + * 根据优惠券id删除优惠券 + */ + @Transactional + int delete(Long id); + + /** + * 根据优惠券id更新优惠券信息 + */ + @Transactional + int update(Long id, SmsCouponParam couponParam); + + /** + * 分页获取优惠券列表 + */ + List list(String name, Integer type, Integer pageSize, Integer pageNum); + + /** + * 获取优惠券详情 + * @param id 优惠券表id + */ + SmsCouponParam getItem(Long id); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsFlashPromotionProductRelationService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsFlashPromotionProductRelationService.java new file mode 100644 index 000000000..758fecb91 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsFlashPromotionProductRelationService.java @@ -0,0 +1,50 @@ +package com.macro.mall.service; + +import com.macro.mall.dto.SmsFlashPromotionProduct; +import com.macro.mall.model.SmsFlashPromotionProductRelation; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * 限时购商品关联管理Service + * Created by macro on 2018/11/16. + */ +public interface SmsFlashPromotionProductRelationService { + /** + * 批量添加关联 + */ + @Transactional + int create(List relationList); + + /** + * 修改关联相关信息 + */ + int update(Long id, SmsFlashPromotionProductRelation relation); + + /** + * 删除关联 + */ + int delete(Long id); + + /** + * 获取关联详情 + */ + SmsFlashPromotionProductRelation getItem(Long id); + + /** + * 分页查询相关商品及促销信息 + * + * @param flashPromotionId 限时购id + * @param flashPromotionSessionId 限时购场次id + */ + List list(Long flashPromotionId, Long flashPromotionSessionId, Integer pageSize, Integer pageNum); + + /** + * 根据活动和场次id获取商品关系数量 + * @param flashPromotionId + * @param flashPromotionSessionId + * @return + */ + long getCount(Long flashPromotionId,Long flashPromotionSessionId); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsFlashPromotionService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsFlashPromotionService.java new file mode 100644 index 000000000..eb8ced210 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsFlashPromotionService.java @@ -0,0 +1,41 @@ +package com.macro.mall.service; + +import com.macro.mall.model.SmsFlashPromotion; + +import java.util.List; + +/** + * 限时购活动管理Service + * Created by macro on 2018/11/16. + */ +public interface SmsFlashPromotionService { + /** + * 添加活动 + */ + int create(SmsFlashPromotion flashPromotion); + + /** + * 修改指定活动 + */ + int update(Long id, SmsFlashPromotion flashPromotion); + + /** + * 删除单个活动 + */ + int delete(Long id); + + /** + * 修改上下线状态 + */ + int updateStatus(Long id, Integer status); + + /** + * 获取详细信息 + */ + SmsFlashPromotion getItem(Long id); + + /** + * 分页查询活动 + */ + List list(String keyword, Integer pageSize, Integer pageNum); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsFlashPromotionSessionService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsFlashPromotionSessionService.java new file mode 100644 index 000000000..d54178b3b --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsFlashPromotionSessionService.java @@ -0,0 +1,47 @@ +package com.macro.mall.service; + +import com.macro.mall.dto.SmsFlashPromotionSessionDetail; +import com.macro.mall.model.SmsFlashPromotionSession; + +import java.util.List; + +/** + * 限时购场次管理Service + * Created by macro on 2018/11/16. + */ +public interface SmsFlashPromotionSessionService { + /** + * 添加场次 + */ + int create(SmsFlashPromotionSession promotionSession); + + /** + * 修改场次 + */ + int update(Long id, SmsFlashPromotionSession promotionSession); + + /** + * 修改场次启用状态 + */ + int updateStatus(Long id, Integer status); + + /** + * 删除场次 + */ + int delete(Long id); + + /** + * 获取详情 + */ + SmsFlashPromotionSession getItem(Long id); + + /** + * 根据启用状态获取场次列表 + */ + List list(); + + /** + * 获取全部可选场次及其数量 + */ + List selectList(Long flashPromotionId); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsHomeAdvertiseService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsHomeAdvertiseService.java new file mode 100644 index 000000000..c83313a57 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsHomeAdvertiseService.java @@ -0,0 +1,41 @@ +package com.macro.mall.service; + +import com.macro.mall.model.SmsHomeAdvertise; + +import java.util.List; + +/** + * 首页广告管理Service + * Created by macro on 2018/11/7. + */ +public interface SmsHomeAdvertiseService { + /** + * 添加广告 + */ + int create(SmsHomeAdvertise advertise); + + /** + * 批量删除广告 + */ + int delete(List ids); + + /** + * 修改上、下线状态 + */ + int updateStatus(Long id, Integer status); + + /** + * 获取广告详情 + */ + SmsHomeAdvertise getItem(Long id); + + /** + * 更新广告 + */ + int update(Long id, SmsHomeAdvertise advertise); + + /** + * 分页查询广告 + */ + List list(String name, Integer type, String endTime, Integer pageSize, Integer pageNum); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsHomeBrandService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsHomeBrandService.java new file mode 100644 index 000000000..7394ec363 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsHomeBrandService.java @@ -0,0 +1,38 @@ +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 homeBrandList); + + /** + * 修改品牌推荐排序 + */ + int updateSort(Long id, Integer sort); + + /** + * 批量删除品牌推荐 + */ + int delete(List ids); + + /** + * 更新推荐状态 + */ + int updateRecommendStatus(List ids, Integer recommendStatus); + + /** + * 分页查询品牌推荐 + */ + List list(String brandName, Integer recommendStatus, Integer pageSize, Integer pageNum); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsHomeNewProductService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsHomeNewProductService.java new file mode 100644 index 000000000..e64731021 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsHomeNewProductService.java @@ -0,0 +1,38 @@ +package com.macro.mall.service; + +import com.macro.mall.model.SmsHomeNewProduct; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * 首页新品管理Service + * Created by macro on 2018/11/6. + */ +public interface SmsHomeNewProductService { + /** + * 添加首页推荐 + */ + @Transactional + int create(List homeNewProductList); + + /** + * 修改推荐排序 + */ + int updateSort(Long id, Integer sort); + + /** + * 批量删除推荐 + */ + int delete(List ids); + + /** + * 更新推荐状态 + */ + int updateRecommendStatus(List ids, Integer recommendStatus); + + /** + * 分页查询推荐 + */ + List list(String productName, Integer recommendStatus, Integer pageSize, Integer pageNum); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsHomeRecommendProductService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsHomeRecommendProductService.java new file mode 100644 index 000000000..ec5651372 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsHomeRecommendProductService.java @@ -0,0 +1,38 @@ +package com.macro.mall.service; + +import com.macro.mall.model.SmsHomeRecommendProduct; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * 首页人气推荐管理Service + * Created by macro on 2018/11/7. + */ +public interface SmsHomeRecommendProductService { + /** + * 添加首页推荐 + */ + @Transactional + int create(List homeRecommendProductList); + + /** + * 修改推荐排序 + */ + int updateSort(Long id, Integer sort); + + /** + * 批量删除推荐 + */ + int delete(List ids); + + /** + * 更新推荐状态 + */ + int updateRecommendStatus(List ids, Integer recommendStatus); + + /** + * 分页查询推荐 + */ + List list(String productName, Integer recommendStatus, Integer pageSize, Integer pageNum); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsHomeRecommendSubjectService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsHomeRecommendSubjectService.java new file mode 100644 index 000000000..2df5ae8e9 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/SmsHomeRecommendSubjectService.java @@ -0,0 +1,38 @@ +package com.macro.mall.service; + +import com.macro.mall.model.SmsHomeRecommendSubject; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * 首页专题推荐管理Service + * Created by macro on 2018/11/7. + */ +public interface SmsHomeRecommendSubjectService { + /** + * 添加首页推荐 + */ + @Transactional + int create(List recommendSubjectList); + + /** + * 修改推荐排序 + */ + int updateSort(Long id, Integer sort); + + /** + * 批量删除推荐 + */ + int delete(List ids); + + /** + * 更新推荐状态 + */ + int updateRecommendStatus(List ids, Integer recommendStatus); + + /** + * 分页查询推荐 + */ + List list(String subjectName, Integer recommendStatus, Integer pageSize, Integer pageNum); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/UmsAdminCacheService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/UmsAdminCacheService.java new file mode 100644 index 000000000..030fd8c2b --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/UmsAdminCacheService.java @@ -0,0 +1,27 @@ +package com.macro.mall.service; + +import com.macro.mall.model.UmsAdmin; +import com.macro.mall.model.UmsResource; + +import java.util.List; + +/** + * 后台用户缓存操作类 + * Created by macro on 2020/3/13. + */ +public interface UmsAdminCacheService { + /** + * 删除后台用户缓存 + */ + void delAdmin(Long adminId); + + /** + * 获取缓存后台用户信息 + */ + UmsAdmin getAdmin(Long adminId); + + /** + * 设置缓存后台用户信息 + */ + void setAdmin(UmsAdmin admin); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/UmsAdminService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/UmsAdminService.java new file mode 100644 index 000000000..79d6b2f9b --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/UmsAdminService.java @@ -0,0 +1,83 @@ +package com.macro.mall.service; + +import cn.dev33.satoken.stp.SaTokenInfo; +import com.macro.mall.dto.UmsAdminParam; +import com.macro.mall.dto.UpdateAdminPasswordParam; +import com.macro.mall.model.*; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * 后台管理员Service + * Created by macro on 2018/4/26. + */ +public interface UmsAdminService { + /** + * 根据用户名获取后台管理员 + */ + UmsAdmin getAdminByUsername(String username); + + /** + * 注册功能 + */ + UmsAdmin register(UmsAdminParam umsAdminParam); + + /** + * 登录功能 + * @param username 用户名 + * @param password 密码 + */ + SaTokenInfo login(String username, String password); + + /** + * 根据用户id获取用户 + */ + UmsAdmin getItem(Long id); + + /** + * 根据用户名或昵称分页查询用户 + */ + List list(String keyword, Integer pageSize, Integer pageNum); + + /** + * 修改指定用户信息 + */ + int update(Long id, UmsAdmin admin); + + /** + * 删除指定用户 + */ + int delete(Long id); + + /** + * 修改用户角色关系 + */ + @Transactional + int updateRole(Long adminId, List roleIds); + + /** + * 获取用户对于角色 + */ + List getRoleList(Long adminId); + + /** + * 获取指定用户的可访问资源 + */ + List getResourceList(Long adminId); + + /** + * 修改密码 + */ + int updatePassword(UpdateAdminPasswordParam updatePasswordParam); + + /** + * 获取当前登录后台用户 + */ + UmsAdmin getCurrentAdmin(); + + /** + * 登出操作 + */ + void logout(); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/UmsMemberLevelService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/UmsMemberLevelService.java new file mode 100644 index 000000000..b0bc8c941 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/UmsMemberLevelService.java @@ -0,0 +1,17 @@ +package com.macro.mall.service; + +import com.macro.mall.model.UmsMemberLevel; + +import java.util.List; + +/** + * 会员等级管理Service + * Created by macro on 2018/4/26. + */ +public interface UmsMemberLevelService { + /** + * 获取所有会员登录 + * @param defaultStatus 是否为默认会员 + */ + List list(Integer defaultStatus); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/UmsMenuService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/UmsMenuService.java new file mode 100644 index 000000000..2863d9d56 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/UmsMenuService.java @@ -0,0 +1,47 @@ +package com.macro.mall.service; + +import com.macro.mall.dto.UmsMenuNode; +import com.macro.mall.model.UmsMenu; + +import java.util.List; + +/** + * 后台菜单管理Service + * Created by macro on 2020/2/2. + */ +public interface UmsMenuService { + /** + * 创建后台菜单 + */ + int create(UmsMenu umsMenu); + + /** + * 修改后台菜单 + */ + int update(Long id, UmsMenu umsMenu); + + /** + * 根据ID获取菜单详情 + */ + UmsMenu getItem(Long id); + + /** + * 根据ID删除菜单 + */ + int delete(Long id); + + /** + * 分页查询后台菜单 + */ + List list(Long parentId, Integer pageSize, Integer pageNum); + + /** + * 树形结构返回所有菜单列表 + */ + List treeList(); + + /** + * 修改菜单显示状态 + */ + int updateHidden(Long id, Integer hidden); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/UmsResourceCategoryService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/UmsResourceCategoryService.java new file mode 100644 index 000000000..1ee56a279 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/UmsResourceCategoryService.java @@ -0,0 +1,32 @@ +package com.macro.mall.service; + +import com.macro.mall.model.UmsResourceCategory; + +import java.util.List; + +/** + * 后台资源分类管理Service + * Created by macro on 2020/2/5. + */ +public interface UmsResourceCategoryService { + + /** + * 获取所有资源分类 + */ + List listAll(); + + /** + * 创建资源分类 + */ + int create(UmsResourceCategory umsResourceCategory); + + /** + * 修改资源分类 + */ + int update(Long id, UmsResourceCategory umsResourceCategory); + + /** + * 删除资源分类 + */ + int delete(Long id); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/UmsResourceService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/UmsResourceService.java new file mode 100644 index 000000000..ed2e2f519 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/UmsResourceService.java @@ -0,0 +1,47 @@ +package com.macro.mall.service; + +import com.macro.mall.model.UmsResource; + +import java.util.List; +import java.util.Map; + +/** + * 后台资源管理Service + * Created by macro on 2020/2/2. + */ +public interface UmsResourceService { + /** + * 添加资源 + */ + int create(UmsResource umsResource); + + /** + * 修改资源 + */ + int update(Long id, UmsResource umsResource); + + /** + * 获取资源详情 + */ + UmsResource getItem(Long id); + + /** + * 删除资源 + */ + int delete(Long id); + + /** + * 分页查询资源 + */ + List list(Long categoryId, String nameKeyword, String urlKeyword, Integer pageSize, Integer pageNum); + + /** + * 查询全部资源 + */ + List listAll(); + + /** + * 初始化路径与资源访问规则 + */ + Map initPathResourceMap(); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/UmsRoleService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/UmsRoleService.java new file mode 100644 index 000000000..c54cefbb4 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/UmsRoleService.java @@ -0,0 +1,66 @@ +package com.macro.mall.service; + +import com.macro.mall.model.UmsMenu; +import com.macro.mall.model.UmsResource; +import com.macro.mall.model.UmsRole; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * 后台角色管理Service + * Created by macro on 2018/9/30. + */ +public interface UmsRoleService { + /** + * 添加角色 + */ + int create(UmsRole role); + + /** + * 修改角色信息 + */ + int update(Long id, UmsRole role); + + /** + * 批量删除角色 + */ + int delete(List ids); + + /** + * 获取所有角色列表 + */ + List list(); + + /** + * 分页获取角色列表 + */ + List list(String keyword, Integer pageSize, Integer pageNum); + + /** + * 根据管理员ID获取对应菜单 + */ + List getMenuList(Long adminId); + + /** + * 获取角色相关菜单 + */ + List listMenu(Long roleId); + + /** + * 获取角色相关资源 + */ + List listResource(Long roleId); + + /** + * 给角色分配菜单 + */ + @Transactional + int allocMenu(Long roleId, List menuIds); + + /** + * 给角色分配资源 + */ + @Transactional + int allocResource(Long roleId, List resourceIds); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/CmsPrefrenceAreaServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/CmsPrefrenceAreaServiceImpl.java new file mode 100644 index 000000000..8e95af17e --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/CmsPrefrenceAreaServiceImpl.java @@ -0,0 +1,25 @@ +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 listAll() { + return prefrenceAreaMapper.selectByExample(new CmsPrefrenceAreaExample()); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/CmsSubjectServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/CmsSubjectServiceImpl.java new file mode 100644 index 000000000..2c3b51a28 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/CmsSubjectServiceImpl.java @@ -0,0 +1,38 @@ +package com.macro.mall.service.impl; + +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 org.springframework.util.StringUtils; + +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 listAll() { + return subjectMapper.selectByExample(new CmsSubjectExample()); + } + + @Override + public List list(String keyword, Integer pageNum, Integer pageSize) { + PageHelper.startPage(pageNum, pageSize); + CmsSubjectExample example = new CmsSubjectExample(); + CmsSubjectExample.Criteria criteria = example.createCriteria(); + if (!StringUtils.isEmpty(keyword)) { + criteria.andTitleLike("%" + keyword + "%"); + } + return subjectMapper.selectByExample(example); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/OmsCompanyAddressServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/OmsCompanyAddressServiceImpl.java new file mode 100644 index 000000000..fc2d2feb6 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/OmsCompanyAddressServiceImpl.java @@ -0,0 +1,24 @@ +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 list() { + return companyAddressMapper.selectByExample(new OmsCompanyAddressExample()); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/OmsOrderReturnApplyServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/OmsOrderReturnApplyServiceImpl.java new file mode 100644 index 000000000..d736f267a --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/OmsOrderReturnApplyServiceImpl.java @@ -0,0 +1,78 @@ +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 list(OmsReturnApplyQueryParam queryParam, Integer pageSize, Integer pageNum) { + PageHelper.startPage(pageNum,pageSize); + return returnApplyDao.getList(queryParam); + } + + @Override + public int delete(List 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); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/OmsOrderReturnReasonServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/OmsOrderReturnReasonServiceImpl.java new file mode 100644 index 000000000..69718d7e9 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/OmsOrderReturnReasonServiceImpl.java @@ -0,0 +1,65 @@ +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 ids) { + OmsOrderReturnReasonExample example = new OmsOrderReturnReasonExample(); + example.createCriteria().andIdIn(ids); + return returnReasonMapper.deleteByExample(example); + } + + @Override + public List 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 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); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/OmsOrderServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/OmsOrderServiceImpl.java new file mode 100644 index 000000000..d552526a4 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/OmsOrderServiceImpl.java @@ -0,0 +1,153 @@ +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 list(OmsOrderQueryParam queryParam, Integer pageSize, Integer pageNum) { + PageHelper.startPage(pageNum, pageSize); + return orderDao.getList(queryParam); + } + + @Override + public int delivery(List deliveryParamList) { + //批量发货 + int count = orderDao.delivery(deliveryParamList); + //添加操作记录 + List 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 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 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 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; + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/OmsOrderSettingServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/OmsOrderSettingServiceImpl.java new file mode 100644 index 000000000..ecead7b32 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/OmsOrderSettingServiceImpl.java @@ -0,0 +1,28 @@ +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); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/OssServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/OssServiceImpl.java new file mode 100644 index 000000000..8d9ee7c32 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/OssServiceImpl.java @@ -0,0 +1,102 @@ +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 jakarta.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; + } + +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/PmsBrandServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/PmsBrandServiceImpl.java new file mode 100644 index 000000000..4245a4542 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/PmsBrandServiceImpl.java @@ -0,0 +1,110 @@ +package com.macro.mall.service.impl; + +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 org.springframework.util.StringUtils; + +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 listAllBrand() { + return brandMapper.selectByExample(new PmsBrandExample()); + } + + @Override + public int createBrand(PmsBrandParam pmsBrandParam) { + PmsBrand pmsBrand = new PmsBrand(); + BeanUtils.copyProperties(pmsBrandParam, pmsBrand); + //如果创建时首字母为空,取名称的第一个为首字母 + if (StringUtils.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 (StringUtils.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 ids) { + PmsBrandExample pmsBrandExample = new PmsBrandExample(); + pmsBrandExample.createCriteria().andIdIn(ids); + return brandMapper.deleteByExample(pmsBrandExample); + } + + @Override + public List listBrand(String keyword, int pageNum, int pageSize) { + PageHelper.startPage(pageNum, pageSize); + PmsBrandExample pmsBrandExample = new PmsBrandExample(); + pmsBrandExample.setOrderByClause("sort desc"); + PmsBrandExample.Criteria criteria = pmsBrandExample.createCriteria(); + if (!StringUtils.isEmpty(keyword)) { + criteria.andNameLike("%" + keyword + "%"); + } + return brandMapper.selectByExample(pmsBrandExample); + } + + @Override + public PmsBrand getBrand(Long id) { + return brandMapper.selectByPrimaryKey(id); + } + + @Override + public int updateShowStatus(List 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 ids, Integer factoryStatus) { + PmsBrand pmsBrand = new PmsBrand(); + pmsBrand.setFactoryStatus(factoryStatus); + PmsBrandExample pmsBrandExample = new PmsBrandExample(); + pmsBrandExample.createCriteria().andIdIn(ids); + return brandMapper.updateByExampleSelective(pmsBrand, pmsBrandExample); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/PmsProductAttributeCategoryServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/PmsProductAttributeCategoryServiceImpl.java new file mode 100644 index 000000000..c8b3bacb5 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/PmsProductAttributeCategoryServiceImpl.java @@ -0,0 +1,61 @@ +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; + +/** + * PmsProductAttributeCategoryService实现类 + * 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 getList(Integer pageSize, Integer pageNum) { + PageHelper.startPage(pageNum,pageSize); + return productAttributeCategoryMapper.selectByExample(new PmsProductAttributeCategoryExample()); + } + + @Override + public List getListWithAttr() { + return productAttributeCategoryDao.getListWithAttr(); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/PmsProductAttributeServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/PmsProductAttributeServiceImpl.java new file mode 100644 index 000000000..7024a66cb --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/PmsProductAttributeServiceImpl.java @@ -0,0 +1,101 @@ +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 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 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 getProductAttrInfo(Long productCategoryId) { + return productAttributeDao.getProductAttrInfo(productCategoryId); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/PmsProductCategoryServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/PmsProductCategoryServiceImpl.java new file mode 100644 index 000000000..ed2d34f98 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/PmsProductCategoryServiceImpl.java @@ -0,0 +1,154 @@ +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; + +/** + * PmsProductCategoryService实现类 + * 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 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 productAttributeIdList) { + List 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 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 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 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 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); + } + } + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/PmsProductServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/PmsProductServiceImpl.java new file mode 100644 index 000000000..8c327a428 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/PmsProductServiceImpl.java @@ -0,0 +1,327 @@ +package com.macro.mall.service.impl; + +import cn.hutool.core.collection.CollUtil; +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 org.springframework.util.StringUtils; + +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 skuStockList, Long productId) { + if(CollectionUtils.isEmpty(skuStockList))return; + for(int i=0;i 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 oriStuList = skuStockMapper.selectByExample(skuStockExample); + //获取新增sku信息 + List insertSkuList = currSkuList.stream().filter(item->item.getId()==null).collect(Collectors.toList()); + //获取需要更新的sku信息 + List updateSkuList = currSkuList.stream().filter(item->item.getId()!=null).collect(Collectors.toList()); + List updateSkuIds = updateSkuList.stream().map(PmsSkuStock::getId).collect(Collectors.toList()); + //获取需要删除的sku信息 + List 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 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 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 (!StringUtils.isEmpty(productQueryParam.getKeyword())) { + criteria.andNameLike("%" + productQueryParam.getKeyword() + "%"); + } + if (!StringUtils.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 ids, Integer verifyStatus, String detail) { + PmsProduct product = new PmsProduct(); + product.setVerifyStatus(verifyStatus); + PmsProductExample example = new PmsProductExample(); + example.createCriteria().andIdIn(ids); + List 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 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 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 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 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 list(String keyword) { + PmsProductExample productExample = new PmsProductExample(); + PmsProductExample.Criteria criteria = productExample.createCriteria(); + criteria.andDeleteStatusEqualTo(0); + if(!StringUtils.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()); + } + } + +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/PmsSkuStockServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/PmsSkuStockServiceImpl.java new file mode 100644 index 000000000..457d06584 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/PmsSkuStockServiceImpl.java @@ -0,0 +1,39 @@ +package com.macro.mall.service.impl; + +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 org.springframework.util.StringUtils; + +import java.util.List; + +/** + * 商品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 getList(Long pid, String keyword) { + PmsSkuStockExample example = new PmsSkuStockExample(); + PmsSkuStockExample.Criteria criteria = example.createCriteria().andProductIdEqualTo(pid); + if (!StringUtils.isEmpty(keyword)) { + criteria.andSkuCodeLike("%" + keyword + "%"); + } + return skuStockMapper.selectByExample(example); + } + + @Override + public int update(Long pid, List skuStockList) { + return skuStockDao.replaceList(skuStockList); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsCouponHistoryServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsCouponHistoryServiceImpl.java new file mode 100644 index 000000000..5969f57cf --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsCouponHistoryServiceImpl.java @@ -0,0 +1,38 @@ +package com.macro.mall.service.impl; + +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 org.springframework.util.StringUtils; + +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 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(!StringUtils.isEmpty(orderSn)){ + criteria.andOrderSnEqualTo(orderSn); + } + return historyMapper.selectByExample(example); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsCouponServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsCouponServiceImpl.java new file mode 100644 index 000000000..fe779e3cb --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsCouponServiceImpl.java @@ -0,0 +1,125 @@ +package com.macro.mall.service.impl; + +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 org.springframework.util.StringUtils; + +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 list(String name, Integer type, Integer pageSize, Integer pageNum) { + SmsCouponExample example = new SmsCouponExample(); + SmsCouponExample.Criteria criteria = example.createCriteria(); + if(!StringUtils.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); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsFlashPromotionProductRelationServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsFlashPromotionProductRelationServiceImpl.java new file mode 100644 index 000000000..12e425189 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsFlashPromotionProductRelationServiceImpl.java @@ -0,0 +1,63 @@ +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 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 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); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsFlashPromotionServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsFlashPromotionServiceImpl.java new file mode 100644 index 000000000..d8f09caac --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsFlashPromotionServiceImpl.java @@ -0,0 +1,63 @@ +package com.macro.mall.service.impl; + +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 org.springframework.util.StringUtils; + +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 list(String keyword, Integer pageSize, Integer pageNum) { + PageHelper.startPage(pageNum, pageSize); + SmsFlashPromotionExample example = new SmsFlashPromotionExample(); + if (!StringUtils.isEmpty(keyword)) { + example.createCriteria().andTitleLike("%" + keyword + "%"); + } + return flashPromotionMapper.selectByExample(example); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsFlashPromotionSessionServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsFlashPromotionSessionServiceImpl.java new file mode 100644 index 000000000..c83067604 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsFlashPromotionSessionServiceImpl.java @@ -0,0 +1,79 @@ +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 list() { + SmsFlashPromotionSessionExample example = new SmsFlashPromotionSessionExample(); + return promotionSessionMapper.selectByExample(example); + } + + @Override + public List selectList(Long flashPromotionId) { + List result = new ArrayList<>(); + SmsFlashPromotionSessionExample example = new SmsFlashPromotionSessionExample(); + example.createCriteria().andStatusEqualTo(1); + List 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; + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeAdvertiseServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeAdvertiseServiceImpl.java new file mode 100644 index 000000000..a8c1dd10f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeAdvertiseServiceImpl.java @@ -0,0 +1,93 @@ +package com.macro.mall.service.impl; + +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 org.springframework.util.StringUtils; + +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 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 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 (!StringUtils.isEmpty(name)) { + criteria.andNameLike("%" + name + "%"); + } + if (type != null) { + criteria.andTypeEqualTo(type); + } + if (!StringUtils.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); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeBrandServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeBrandServiceImpl.java new file mode 100644 index 000000000..b7afa122b --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeBrandServiceImpl.java @@ -0,0 +1,70 @@ +package com.macro.mall.service.impl; + +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 org.springframework.util.StringUtils; + +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 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 ids) { + SmsHomeBrandExample example = new SmsHomeBrandExample(); + example.createCriteria().andIdIn(ids); + return homeBrandMapper.deleteByExample(example); + } + + @Override + public int updateRecommendStatus(List 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 list(String brandName, Integer recommendStatus, Integer pageSize, Integer pageNum) { + PageHelper.startPage(pageNum,pageSize); + SmsHomeBrandExample example = new SmsHomeBrandExample(); + SmsHomeBrandExample.Criteria criteria = example.createCriteria(); + if(!StringUtils.isEmpty(brandName)){ + criteria.andBrandNameLike("%"+brandName+"%"); + } + if(recommendStatus!=null){ + criteria.andRecommendStatusEqualTo(recommendStatus); + } + example.setOrderByClause("sort desc"); + return homeBrandMapper.selectByExample(example); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeNewProductServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeNewProductServiceImpl.java new file mode 100644 index 000000000..69e552c30 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeNewProductServiceImpl.java @@ -0,0 +1,70 @@ +package com.macro.mall.service.impl; + +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 org.springframework.util.StringUtils; + +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 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 ids) { + SmsHomeNewProductExample example = new SmsHomeNewProductExample(); + example.createCriteria().andIdIn(ids); + return homeNewProductMapper.deleteByExample(example); + } + + @Override + public int updateRecommendStatus(List 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 list(String productName, Integer recommendStatus, Integer pageSize, Integer pageNum) { + PageHelper.startPage(pageNum,pageSize); + SmsHomeNewProductExample example = new SmsHomeNewProductExample(); + SmsHomeNewProductExample.Criteria criteria = example.createCriteria(); + if(!StringUtils.isEmpty(productName)){ + criteria.andProductNameLike("%"+productName+"%"); + } + if(recommendStatus!=null){ + criteria.andRecommendStatusEqualTo(recommendStatus); + } + example.setOrderByClause("sort desc"); + return homeNewProductMapper.selectByExample(example); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeRecommendProductServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeRecommendProductServiceImpl.java new file mode 100644 index 000000000..0fb061984 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeRecommendProductServiceImpl.java @@ -0,0 +1,70 @@ +package com.macro.mall.service.impl; + +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 org.springframework.util.StringUtils; + +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 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 ids) { + SmsHomeRecommendProductExample example = new SmsHomeRecommendProductExample(); + example.createCriteria().andIdIn(ids); + return recommendProductMapper.deleteByExample(example); + } + + @Override + public int updateRecommendStatus(List 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 list(String productName, Integer recommendStatus, Integer pageSize, Integer pageNum) { + PageHelper.startPage(pageNum,pageSize); + SmsHomeRecommendProductExample example = new SmsHomeRecommendProductExample(); + SmsHomeRecommendProductExample.Criteria criteria = example.createCriteria(); + if(!StringUtils.isEmpty(productName)){ + criteria.andProductNameLike("%"+productName+"%"); + } + if(recommendStatus!=null){ + criteria.andRecommendStatusEqualTo(recommendStatus); + } + example.setOrderByClause("sort desc"); + return recommendProductMapper.selectByExample(example); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeRecommendSubjectServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeRecommendSubjectServiceImpl.java new file mode 100644 index 000000000..00cfda94b --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/SmsHomeRecommendSubjectServiceImpl.java @@ -0,0 +1,70 @@ +package com.macro.mall.service.impl; + +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 org.springframework.util.StringUtils; + +import java.util.List; + +/** + * 首页专题推荐管理Service实现类 + * Created by macro on 2018/11/7. + */ +@Service +public class SmsHomeRecommendSubjectServiceImpl implements SmsHomeRecommendSubjectService { + @Autowired + private SmsHomeRecommendSubjectMapper recommendProductMapper; + @Override + public int create(List recommendSubjectList) { + for (SmsHomeRecommendSubject recommendProduct : recommendSubjectList) { + recommendProduct.setRecommendStatus(1); + recommendProduct.setSort(0); + recommendProductMapper.insert(recommendProduct); + } + return recommendSubjectList.size(); + } + + @Override + public int updateSort(Long id, Integer sort) { + SmsHomeRecommendSubject recommendProduct = new SmsHomeRecommendSubject(); + recommendProduct.setId(id); + recommendProduct.setSort(sort); + return recommendProductMapper.updateByPrimaryKeySelective(recommendProduct); + } + + @Override + public int delete(List ids) { + SmsHomeRecommendSubjectExample example = new SmsHomeRecommendSubjectExample(); + example.createCriteria().andIdIn(ids); + return recommendProductMapper.deleteByExample(example); + } + + @Override + public int updateRecommendStatus(List ids, Integer recommendStatus) { + SmsHomeRecommendSubjectExample example = new SmsHomeRecommendSubjectExample(); + example.createCriteria().andIdIn(ids); + SmsHomeRecommendSubject record = new SmsHomeRecommendSubject(); + record.setRecommendStatus(recommendStatus); + return recommendProductMapper.updateByExampleSelective(record,example); + } + + @Override + public List list(String subjectName, Integer recommendStatus, Integer pageSize, Integer pageNum) { + PageHelper.startPage(pageNum,pageSize); + SmsHomeRecommendSubjectExample example = new SmsHomeRecommendSubjectExample(); + SmsHomeRecommendSubjectExample.Criteria criteria = example.createCriteria(); + if(!StringUtils.isEmpty(subjectName)){ + criteria.andSubjectNameLike("%"+subjectName+"%"); + } + if(recommendStatus!=null){ + criteria.andRecommendStatusEqualTo(recommendStatus); + } + example.setOrderByClause("sort desc"); + return recommendProductMapper.selectByExample(example); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/UmsAdminCacheServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/UmsAdminCacheServiceImpl.java new file mode 100644 index 000000000..8843b532c --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/UmsAdminCacheServiceImpl.java @@ -0,0 +1,43 @@ +package com.macro.mall.service.impl; + +import com.macro.mall.common.service.RedisService; +import com.macro.mall.model.UmsAdmin; +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; + +/** + * UmsAdminCacheService实现类 + * Created by macro on 2020/3/13. + */ +@Service +public class UmsAdminCacheServiceImpl implements UmsAdminCacheService { + @Autowired + private RedisService redisService; + @Value("${redis.database}") + private String REDIS_DATABASE; + @Value("${redis.expire.common}") + private Long REDIS_EXPIRE; + @Value("${redis.key.admin}") + private String REDIS_KEY_ADMIN; + + @Override + public void delAdmin(Long adminId) { + String key = REDIS_DATABASE + ":" + REDIS_KEY_ADMIN + ":" + adminId; + redisService.del(key); + } + + @Override + public UmsAdmin getAdmin(Long adminId) { + String key = REDIS_DATABASE + ":" + REDIS_KEY_ADMIN + ":" + adminId; + return (UmsAdmin) redisService.get(key); + } + + @Override + public void setAdmin(UmsAdmin admin) { + String key = REDIS_DATABASE + ":" + REDIS_KEY_ADMIN + ":" + admin.getId(); + redisService.set(key, admin, REDIS_EXPIRE); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/UmsAdminServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/UmsAdminServiceImpl.java new file mode 100644 index 000000000..4657af675 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/UmsAdminServiceImpl.java @@ -0,0 +1,262 @@ +package com.macro.mall.service.impl; + +import cn.dev33.satoken.stp.SaTokenInfo; +import cn.dev33.satoken.stp.StpUtil; +import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.util.StrUtil; +import cn.hutool.crypto.digest.BCrypt; +import cn.hutool.extra.spring.SpringUtil; +import cn.hutool.json.JSONUtil; +import com.github.pagehelper.PageHelper; +import com.macro.mall.common.api.CommonResult; +import com.macro.mall.common.api.ResultCode; +import com.macro.mall.common.constant.AuthConstant; +import com.macro.mall.common.dto.UserDto; +import com.macro.mall.common.exception.Asserts; +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.service.UmsAdminCacheService; +import com.macro.mall.service.UmsAdminService; +import jakarta.servlet.http.HttpServletRequest; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.util.CollectionUtils; +import org.springframework.util.StringUtils; +import org.springframework.web.context.request.RequestContextHolder; +import org.springframework.web.context.request.ServletRequestAttributes; + +import java.util.*; +import java.util.stream.Collectors; + +/** + * UmsAdminService实现类 + * Created by macro on 2018/4/26. + */ +@Service +public class UmsAdminServiceImpl implements UmsAdminService { + private static final Logger LOGGER = LoggerFactory.getLogger(UmsAdminServiceImpl.class); + @Autowired + private UmsAdminMapper adminMapper; + @Autowired + private UmsAdminRoleRelationMapper adminRoleRelationMapper; + @Autowired + private UmsAdminRoleRelationDao adminRoleRelationDao; + @Autowired + private UmsAdminLoginLogMapper loginLogMapper; + @Autowired + private UmsAdminCacheService adminCacheService; + + @Override + public UmsAdmin getAdminByUsername(String username) { + UmsAdminExample example = new UmsAdminExample(); + example.createCriteria().andUsernameEqualTo(username); + List adminList = adminMapper.selectByExample(example); + if (adminList != null && adminList.size() > 0) { + return adminList.get(0); + } + 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 umsAdminList = adminMapper.selectByExample(example); + if (umsAdminList.size() > 0) { + return null; + } + //将密码进行加密操作 + String encodePassword = BCrypt.hashpw(umsAdmin.getPassword()); + umsAdmin.setPassword(encodePassword); + adminMapper.insert(umsAdmin); + return umsAdmin; + } + + @Override + public SaTokenInfo login(String username, String password) { + if(StrUtil.isEmpty(username)||StrUtil.isEmpty(password)){ + Asserts.fail("用户名或密码不能为空!"); + } + UmsAdmin admin = getAdminByUsername(username); + if(admin==null){ + Asserts.fail("找不到该用户!"); + } + if (!BCrypt.checkpw(password, admin.getPassword())) { + Asserts.fail("密码不正确!"); + } + if(admin.getStatus()!=1){ + Asserts.fail("该账号已被禁用!"); + } + // 登录校验成功后,一行代码实现登录 + StpUtil.login(admin.getId()); + UserDto userDto = new UserDto(); + userDto.setId(admin.getId()); + userDto.setUsername(admin.getUsername()); + userDto.setClientId(AuthConstant.ADMIN_CLIENT_ID); + List resourceList = getResourceList(admin.getId()); + List permissionList = resourceList.stream().map(item -> item.getId() + ":" + item.getName()).toList(); + userDto.setPermissionList(permissionList); + // 将用户信息存储到Session中 + StpUtil.getSession().set(AuthConstant.STP_ADMIN_INFO,userDto); + // 获取当前登录用户Token信息 + SaTokenInfo saTokenInfo = StpUtil.getTokenInfo(); +// updateLoginTimeByUsername(username); + insertLoginLog(admin); + return saTokenInfo; + } + + /** + * 添加登录记录 + */ + private void insertLoginLog(UmsAdmin admin) { + 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(request.getRemoteAddr()); + 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 UmsAdmin getItem(Long id) { + return adminMapper.selectByPrimaryKey(id); + } + + @Override + public List list(String keyword, Integer pageSize, Integer pageNum) { + PageHelper.startPage(pageNum, pageSize); + UmsAdminExample example = new UmsAdminExample(); + UmsAdminExample.Criteria criteria = example.createCriteria(); + if (!StringUtils.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(BCrypt.hashpw(admin.getPassword())); + } + } + int count = adminMapper.updateByPrimaryKeySelective(admin); + adminCacheService.delAdmin(id); + return count; + } + + @Override + public int delete(Long id) { + int count = adminMapper.deleteByPrimaryKey(id); + adminCacheService.delAdmin(id); + return count; + } + + @Override + public int updateRole(Long adminId, List roleIds) { + int count = roleIds == null ? 0 : roleIds.size(); + //先删除原来的关系 + UmsAdminRoleRelationExample adminRoleRelationExample = new UmsAdminRoleRelationExample(); + adminRoleRelationExample.createCriteria().andAdminIdEqualTo(adminId); + adminRoleRelationMapper.deleteByExample(adminRoleRelationExample); + //建立新关系 + if (!CollectionUtils.isEmpty(roleIds)) { + List list = new ArrayList<>(); + for (Long roleId : roleIds) { + UmsAdminRoleRelation roleRelation = new UmsAdminRoleRelation(); + roleRelation.setAdminId(adminId); + roleRelation.setRoleId(roleId); + list.add(roleRelation); + } + adminRoleRelationDao.insertList(list); + } + return count; + } + + @Override + public List getRoleList(Long adminId) { + return adminRoleRelationDao.getRoleList(adminId); + } + + @Override + public List getResourceList(Long adminId) { + return adminRoleRelationDao.getResourceList(adminId); + } + + @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 adminList = adminMapper.selectByExample(example); + if(CollUtil.isEmpty(adminList)){ + return -2; + } + UmsAdmin umsAdmin = adminList.get(0); + if(!BCrypt.checkpw(param.getOldPassword(),umsAdmin.getPassword())){ + return -3; + } + umsAdmin.setPassword(BCrypt.hashpw(param.getNewPassword())); + adminMapper.updateByPrimaryKey(umsAdmin); + adminCacheService.delAdmin(umsAdmin.getId()); + return 1; + } + + @Override + public UmsAdmin getCurrentAdmin() { + UserDto userDto = (UserDto) StpUtil.getSession().get(AuthConstant.STP_ADMIN_INFO); + UmsAdmin admin = adminCacheService.getAdmin(userDto.getId()); + if (admin == null) { + admin = adminMapper.selectByPrimaryKey(userDto.getId()); + adminCacheService.setAdmin(admin); + } + return admin; + } + @Override + public void logout() { + //先清空缓存 + UserDto userDto = (UserDto) StpUtil.getSession().get(AuthConstant.STP_ADMIN_INFO); + adminCacheService.delAdmin(userDto.getId()); + //再调用sa-token的登出方法 + StpUtil.logout(); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/UmsMemberLevelServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/UmsMemberLevelServiceImpl.java new file mode 100644 index 000000000..4daf0911c --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/UmsMemberLevelServiceImpl.java @@ -0,0 +1,26 @@ +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 list(Integer defaultStatus) { + UmsMemberLevelExample example = new UmsMemberLevelExample(); + example.createCriteria().andDefaultStatusEqualTo(defaultStatus); + return memberLevelMapper.selectByExample(example); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/UmsMenuServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/UmsMenuServiceImpl.java new file mode 100644 index 000000000..ad27616aa --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/UmsMenuServiceImpl.java @@ -0,0 +1,105 @@ +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设置 + 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 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 treeList() { + List menuList = menuMapper.selectByExample(new UmsMenuExample()); + List 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 menuList) { + UmsMenuNode node = new UmsMenuNode(); + BeanUtils.copyProperties(menu, node); + List children = menuList.stream() + .filter(subMenu -> subMenu.getParentId().equals(menu.getId())) + .map(subMenu -> covertMenuNode(subMenu, menuList)).collect(Collectors.toList()); + node.setChildren(children); + return node; + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/UmsResourceCategoryServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/UmsResourceCategoryServiceImpl.java new file mode 100644 index 000000000..c6e59382e --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/UmsResourceCategoryServiceImpl.java @@ -0,0 +1,45 @@ +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 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); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/UmsResourceServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/UmsResourceServiceImpl.java new file mode 100644 index 000000000..3ee85bd2c --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/UmsResourceServiceImpl.java @@ -0,0 +1,90 @@ +package com.macro.mall.service.impl; + +import cn.hutool.core.util.StrUtil; +import com.github.pagehelper.PageHelper; +import com.macro.mall.common.constant.AuthConstant; +import com.macro.mall.common.service.RedisService; +import com.macro.mall.mapper.UmsResourceMapper; +import com.macro.mall.model.*; +import com.macro.mall.service.UmsResourceService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; + +import java.util.*; + +/** + * 后台资源管理Service实现类 + * Created by macro on 2020/2/2. + */ +@Service +public class UmsResourceServiceImpl implements UmsResourceService { + @Autowired + private UmsResourceMapper resourceMapper; + @Autowired + private RedisService redisService; + @Value("${spring.application.name}") + private String applicationName; + @Override + public int create(UmsResource umsResource) { + umsResource.setCreateTime(new Date()); + int count = resourceMapper.insert(umsResource); + initPathResourceMap(); + return count; + } + + @Override + public int update(Long id, UmsResource umsResource) { + umsResource.setId(id); + int count = resourceMapper.updateByPrimaryKeySelective(umsResource); + initPathResourceMap(); + return count; + } + + @Override + public UmsResource getItem(Long id) { + return resourceMapper.selectByPrimaryKey(id); + } + + @Override + public int delete(Long id) { + int count = resourceMapper.deleteByPrimaryKey(id); + initPathResourceMap(); + return count; + } + + @Override + public List 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 listAll() { + return resourceMapper.selectByExample(new UmsResourceExample()); + } + + @Override + public Map initPathResourceMap() { + Map pathResourceMap = new TreeMap<>(); + List resourceList = resourceMapper.selectByExample(new UmsResourceExample()); + for (UmsResource resource : resourceList) { + pathResourceMap.put("/"+applicationName+resource.getUrl(),resource.getId()+":"+resource.getName()); + } + redisService.del(AuthConstant.PATH_RESOURCE_MAP); + redisService.hSetAll(AuthConstant.PATH_RESOURCE_MAP, pathResourceMap); + return pathResourceMap; + + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/UmsRoleServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/UmsRoleServiceImpl.java new file mode 100644 index 000000000..401941ffb --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/service/impl/UmsRoleServiceImpl.java @@ -0,0 +1,119 @@ +package com.macro.mall.service.impl; + +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.UmsResourceService; +import com.macro.mall.service.UmsRoleService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.util.StringUtils; + +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 UmsResourceService resourceService; + @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 ids) { + UmsRoleExample example = new UmsRoleExample(); + example.createCriteria().andIdIn(ids); + int count = roleMapper.deleteByExample(example); + resourceService.initPathResourceMap(); + return count; + } + + @Override + public List list() { + return roleMapper.selectByExample(new UmsRoleExample()); + } + + @Override + public List list(String keyword, Integer pageSize, Integer pageNum) { + PageHelper.startPage(pageNum, pageSize); + UmsRoleExample example = new UmsRoleExample(); + if (!StringUtils.isEmpty(keyword)) { + example.createCriteria().andNameLike("%" + keyword + "%"); + } + return roleMapper.selectByExample(example); + } + + @Override + public List getMenuList(Long adminId) { + return roleDao.getMenuList(adminId); + } + + @Override + public List listMenu(Long roleId) { + return roleDao.getMenuListByRoleId(roleId); + } + + @Override + public List listResource(Long roleId) { + return roleDao.getResourceListByRoleId(roleId); + } + + @Override + public int allocMenu(Long roleId, List 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 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); + } + resourceService.initPathResourceMap(); + return resourceIds.size(); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/validator/FlagValidator.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/validator/FlagValidator.java new file mode 100644 index 000000000..6d63ea5af --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/validator/FlagValidator.java @@ -0,0 +1,23 @@ +package com.macro.mall.validator; + +import jakarta.validation.Constraint; +import jakarta.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[] payload() default {}; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/validator/FlagValidatorClass.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/validator/FlagValidatorClass.java new file mode 100644 index 000000000..b8aa6f80d --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/java/com/macro/mall/validator/FlagValidatorClass.java @@ -0,0 +1,32 @@ +package com.macro.mall.validator; + +import jakarta.validation.ConstraintValidator; +import jakarta.validation.ConstraintValidatorContext; + +/** + * 状态标记校验器 + * Created by macro on 2018/4/26. + */ +public class FlagValidatorClass implements ConstraintValidator { + 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 + + + + insert into cms_prefrence_area_product_relation (prefrence_area_id, product_id) values + + (#{item.prefrenceAreaId,jdbcType=BIGINT}, + #{item.productId,jdbcType=BIGINT}) + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/CmsSubjectProductRelationDao.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/CmsSubjectProductRelationDao.xml new file mode 100644 index 000000000..653c7679c --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/CmsSubjectProductRelationDao.xml @@ -0,0 +1,11 @@ + + + + + insert into cms_subject_product_relation (subject_id, product_id) values + + (#{item.subjectId,jdbcType=BIGINT}, + #{item.productId,jdbcType=BIGINT}) + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/OmsOrderDao.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/OmsOrderDao.xml new file mode 100644 index 000000000..89f4d2a3c --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/OmsOrderDao.xml @@ -0,0 +1,90 @@ + + + + + + + + + + UPDATE oms_order + SET + delivery_sn = CASE id + + WHEN #{item.orderId} THEN #{item.deliverySn} + + END, + delivery_company = CASE id + + WHEN #{item.orderId} THEN #{item.deliveryCompany} + + END, + delivery_time = CASE id + + WHEN #{item.orderId} THEN now() + + END, + `status` = CASE id + + WHEN #{item.orderId} THEN 2 + + END + WHERE + id IN + + #{item.orderId} + + AND `status` = 1 + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/OmsOrderOperateHistoryDao.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/OmsOrderOperateHistoryDao.xml new file mode 100644 index 000000000..ce9880af3 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/OmsOrderOperateHistoryDao.xml @@ -0,0 +1,14 @@ + + + + + INSERT INTO oms_order_operate_history (order_id, operate_man, create_time, order_status, note) VALUES + + (#{item.orderId}, + #{item.operateMan}, + #{item.createTime,jdbcType=TIMESTAMP}, + #{item.orderStatus}, + #{item.note}) + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/OmsOrderReturnApplyDao.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/OmsOrderReturnApplyDao.xml new file mode 100644 index 000000000..971e7413e --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/OmsOrderReturnApplyDao.xml @@ -0,0 +1,59 @@ + + + + + + + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsMemberPriceDao.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsMemberPriceDao.xml new file mode 100644 index 000000000..d33425fb9 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsMemberPriceDao.xml @@ -0,0 +1,14 @@ + + + + + + INSERT INTO pms_member_price (product_id, member_level_id, member_price,member_level_name) VALUES + + (#{item.productId,jdbcType=BIGINT}, + #{item.memberLevelId,jdbcType=BIGINT}, + #{item.memberPrice,jdbcType=DECIMAL}, + #{item.memberLevelName,jdbcType=VARCHAR}) + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductAttributeCategoryDao.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductAttributeCategoryDao.xml new file mode 100644 index 000000000..3239a50fe --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductAttributeCategoryDao.xml @@ -0,0 +1,19 @@ + + + + + + + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductAttributeDao.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductAttributeDao.xml new file mode 100644 index 000000000..3a4d71311 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductAttributeDao.xml @@ -0,0 +1,15 @@ + + + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductAttributeValueDao.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductAttributeValueDao.xml new file mode 100644 index 000000000..75236d449 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductAttributeValueDao.xml @@ -0,0 +1,12 @@ + + + + + insert into pms_product_attribute_value (product_id,product_attribute_id,value) values + + (#{item.productId,jdbcType=BIGINT}, + #{item.productAttributeId,jdbcType=BIGINT}, + #{item.value,jdbcType=VARCHAR}) + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductCategoryAttributeRelationDao.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductCategoryAttributeRelationDao.xml new file mode 100644 index 000000000..e35716351 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductCategoryAttributeRelationDao.xml @@ -0,0 +1,12 @@ + + + + + + INSERT INTO pms_product_category_attribute_relation (product_category_id, product_attribute_id) VALUES + + (#{item.productCategoryId,jdbcType=BIGINT}, + #{item.productAttributeId,jdbcType=BIGINT}) + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductCategoryDao.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductCategoryDao.xml new file mode 100644 index 000000000..33be6e1c9 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductCategoryDao.xml @@ -0,0 +1,18 @@ + + + + + + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductDao.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductDao.xml new file mode 100644 index 000000000..9872b31df --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductDao.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductFullReductionDao.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductFullReductionDao.xml new file mode 100644 index 000000000..38fea50fe --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductFullReductionDao.xml @@ -0,0 +1,12 @@ + + + + + INSERT INTO pms_product_full_reduction (product_id, full_price, reduce_price) VALUES + + (#{item.productId,jdbcType=BIGINT}, + #{item.fullPrice,jdbcType=DECIMAL}, + #{item.reducePrice,jdbcType=DECIMAL}) + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductLadderDao.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductLadderDao.xml new file mode 100644 index 000000000..7be6e284f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductLadderDao.xml @@ -0,0 +1,13 @@ + + + + + INSERT INTO pms_product_ladder (product_id, count, discount, price) VALUES + + (#{item.productId,jdbcType=BIGINT}, + #{item.count,jdbcType=INTEGER}, + #{item.discount,jdbcType=DECIMAL}, + #{item.price,jdbcType=DECIMAL}) + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductVertifyRecordDao.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductVertifyRecordDao.xml new file mode 100644 index 000000000..70359054a --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsProductVertifyRecordDao.xml @@ -0,0 +1,15 @@ + + + + + + insert into pms_product_vertify_record (product_id, create_time, vertify_man,status, detail) values + + (#{item.productId,jdbcType=BIGINT}, + #{item.createTime,jdbcType=TIMESTAMP}, + #{item.vertifyMan,jdbcType=VARCHAR}, + #{item.status,jdbcType=INTEGER}, + #{item.detail,jdbcType=VARCHAR}) + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsSkuStockDao.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsSkuStockDao.xml new file mode 100644 index 000000000..af39fd379 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/PmsSkuStockDao.xml @@ -0,0 +1,31 @@ + + + + + INSERT INTO pms_sku_stock (product_id, sku_code, price, stock, low_stock, pic, sale, sp_data) VALUES + + (#{item.productId,jdbcType=BIGINT}, + #{item.skuCode,jdbcType=VARCHAR}, + #{item.price,jdbcType=DECIMAL}, + #{item.stock,jdbcType=INTEGER}, + #{item.lowStock,jdbcType=INTEGER}, + #{item.pic,jdbcType=VARCHAR}, + #{item.sale,jdbcType=INTEGER}, + #{item.spData,jdbcType=VARCHAR}) + + + + REPLACE INTO pms_sku_stock (id,product_id, sku_code, price, stock, low_stock,pic, sale, sp_data) VALUES + + (#{item.id,jdbcType=BIGINT}, + #{item.productId,jdbcType=BIGINT}, + #{item.skuCode,jdbcType=VARCHAR}, + #{item.price,jdbcType=DECIMAL}, + #{item.stock,jdbcType=INTEGER}, + #{item.lowStock,jdbcType=INTEGER}, + #{item.pic,jdbcType=VARCHAR}, + #{item.sale,jdbcType=INTEGER}, + #{item.spData,jdbcType=VARCHAR}) + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/SmsCouponDao.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/SmsCouponDao.xml new file mode 100644 index 000000000..e3da46064 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/SmsCouponDao.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/SmsCouponProductCategoryRelationDao.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/SmsCouponProductCategoryRelationDao.xml new file mode 100644 index 000000000..a138a2451 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/SmsCouponProductCategoryRelationDao.xml @@ -0,0 +1,13 @@ + + + + + INSERT INTO sms_coupon_product_category_relation (product_category_id,product_category_name,parent_category_name,coupon_id) VALUES + + (#{item.productCategoryId,jdbcType=BIGINT}, + #{item.productCategoryName,jdbcType=VARCHAR}, + #{item.parentCategoryName,jdbcType=VARCHAR}, + #{item.couponId,jdbcType=BIGINT}) + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/SmsCouponProductRelationDao.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/SmsCouponProductRelationDao.xml new file mode 100644 index 000000000..74bff5d88 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/SmsCouponProductRelationDao.xml @@ -0,0 +1,13 @@ + + + + + INSERT INTO sms_coupon_product_relation (product_id,product_name,product_sn,coupon_id) VALUES + + (#{item.productId,jdbcType=BIGINT}, + #{item.productName,jdbcType=VARCHAR}, + #{item.productSn,jdbcType=VARCHAR}, + #{item.couponId,jdbcType=INTEGER}) + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/SmsFlashPromotionProductRelationDao.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/SmsFlashPromotionProductRelationDao.xml new file mode 100644 index 000000000..f00afc2a5 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/SmsFlashPromotionProductRelationDao.xml @@ -0,0 +1,30 @@ + + + + + + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/UmsAdminRoleRelationDao.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/UmsAdminRoleRelationDao.xml new file mode 100644 index 000000000..d43ecb849 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/UmsAdminRoleRelationDao.xml @@ -0,0 +1,44 @@ + + + + + + INSERT INTO ums_admin_role_relation (admin_id, role_id) VALUES + + (#{item.adminId,jdbcType=BIGINT}, + #{item.roleId,jdbcType=BIGINT}) + + + + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/UmsRoleDao.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/UmsRoleDao.xml new file mode 100644 index 000000000..508988973 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/main/resources/dao/UmsRoleDao.xml @@ -0,0 +1,64 @@ + + + + + + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/test/com/macro/mall/PmsDaoTests.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/test/com/macro/mall/PmsDaoTests.java new file mode 100644 index 000000000..169e6e572 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-admin/src/test/com/macro/mall/PmsDaoTests.java @@ -0,0 +1,52 @@ +package com.macro.mall; + + +import cn.hutool.json.JSONUtil; +import com.macro.mall.dao.PmsMemberPriceDao; +import com.macro.mall.dao.PmsProductDao; +import com.macro.mall.dto.PmsProductResult; +import com.macro.mall.model.PmsMemberPrice; +import org.junit.jupiter.api.Test; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.annotation.Rollback; +import org.springframework.transaction.annotation.Transactional; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +@SpringBootTest +public class PmsDaoTests { + @Autowired + private PmsMemberPriceDao memberPriceDao; + @Autowired + private PmsProductDao productDao; + private static final Logger LOGGER = LoggerFactory.getLogger(PmsDaoTests.class); + @Test + @Transactional + @Rollback + public void testInsertBatch(){ + List list = new ArrayList<>(); + for(int i=0;i<5;i++){ + PmsMemberPrice memberPrice = new PmsMemberPrice(); + memberPrice.setProductId(1L); + memberPrice.setMemberLevelId((long) (i+1)); + memberPrice.setMemberPrice(new BigDecimal("22")); + list.add(memberPrice); + } + int count = memberPriceDao.insertList(list); + assertEquals(5,count); + } + + @Test + public void testGetProductUpdateInfo(){ + PmsProductResult productResult = productDao.getUpdateInfo(7L); + String json = JSONUtil.parse(productResult).toString(); + LOGGER.info(json); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/pom.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/pom.xml new file mode 100644 index 000000000..38376105d --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/pom.xml @@ -0,0 +1,57 @@ + + + 4.0.0 + ruoyi-mall-common + 1.0-SNAPSHOT + jar + + ruoyi-mall-common + + + ruoyi-vue-plus + mall-swarm + 1.0-SNAPSHOT + + + + + com.github.pagehelper + pagehelper + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-data-redis + + + org.springframework.data + spring-data-commons + + + com.github.xiaoymin + knife4j-openapi3-jakarta-spring-boot-starter + + + net.logstash.logback + logstash-logback-encoder + + + org.springframework.boot + spring-boot-starter-validation + + + org.springframework.cloud + spring-cloud-starter-bootstrap + + + org.springframework.cloud + spring-cloud-starter-loadbalancer + + + + diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/annotation/CacheException.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/annotation/CacheException.java new file mode 100644 index 000000000..fc37d5caf --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/annotation/CacheException.java @@ -0,0 +1,12 @@ +package com.macro.mall.common.annotation; + +import java.lang.annotation.*; + +/** + * 自定义注解,有该注解的缓存方法会抛出异常 + */ +@Documented +@Target(ElementType.METHOD) +@Retention(RetentionPolicy.RUNTIME) +public @interface CacheException { +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/api/CommonPage.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/api/CommonPage.java new file mode 100644 index 000000000..dfbac0402 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/api/CommonPage.java @@ -0,0 +1,85 @@ +package com.macro.mall.common.api; + +import com.github.pagehelper.PageInfo; +import org.springframework.data.domain.Page; + +import java.util.List; + +/** + * 分页数据封装类 + * Created by macro on 2019/4/19. + */ +public class CommonPage { + private Integer pageNum; + private Integer pageSize; + private Integer totalPage; + private Long total; + private List list; + + /** + * 将PageHelper分页后的list转为分页信息 + */ + public static CommonPage restPage(List list) { + CommonPage result = new CommonPage(); + PageInfo pageInfo = new PageInfo(list); + result.setTotalPage(pageInfo.getPages()); + result.setPageNum(pageInfo.getPageNum()); + result.setPageSize(pageInfo.getPageSize()); + result.setTotal(pageInfo.getTotal()); + result.setList(pageInfo.getList()); + return result; + } + + /** + * 将SpringData分页后的list转为分页信息 + */ + public static CommonPage restPage(Page pageInfo) { + CommonPage result = new CommonPage(); + result.setTotalPage(pageInfo.getTotalPages()); + result.setPageNum(pageInfo.getNumber()); + result.setPageSize(pageInfo.getSize()); + result.setTotal(pageInfo.getTotalElements()); + result.setList(pageInfo.getContent()); + return result; + } + + public Integer getPageNum() { + return pageNum; + } + + public void setPageNum(Integer pageNum) { + this.pageNum = pageNum; + } + + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public Integer getTotalPage() { + return totalPage; + } + + public void setTotalPage(Integer totalPage) { + this.totalPage = totalPage; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public Long getTotal() { + return total; + } + + public void setTotal(Long total) { + this.total = total; + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/api/CommonResult.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/api/CommonResult.java new file mode 100644 index 000000000..a9952cd86 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/api/CommonResult.java @@ -0,0 +1,131 @@ +package com.macro.mall.common.api; + +import cn.hutool.json.JSONUtil; + +/** + * 通用返回对象 + * Created by macro on 2019/4/19. + */ +public class CommonResult { + private long code; + private String message; + private T data; + + protected CommonResult() { + } + + protected CommonResult(long code, String message, T data) { + this.code = code; + this.message = message; + this.data = data; + } + + /** + * 成功返回结果 + * + * @param data 获取的数据 + */ + public static CommonResult success(T data) { + return new CommonResult(ResultCode.SUCCESS.getCode(), ResultCode.SUCCESS.getMessage(), data); + } + + /** + * 成功返回结果 + * + * @param data 获取的数据 + * @param message 提示信息 + */ + public static CommonResult success(T data, String message) { + return new CommonResult(ResultCode.SUCCESS.getCode(), message, data); + } + + /** + * 失败返回结果 + * @param errorCode 错误码 + */ + public static CommonResult failed(IErrorCode errorCode) { + return new CommonResult(errorCode.getCode(), errorCode.getMessage(), null); + } + + /** + * 失败返回结果 + * @param errorCode 错误码 + * @param message 错误信息 + */ + public static CommonResult failed(IErrorCode errorCode,String message) { + return new CommonResult(errorCode.getCode(), message, null); + } + + /** + * 失败返回结果 + * @param message 提示信息 + */ + public static CommonResult failed(String message) { + return new CommonResult(ResultCode.FAILED.getCode(), message, null); + } + + /** + * 失败返回结果 + */ + public static CommonResult failed() { + return failed(ResultCode.FAILED); + } + + /** + * 参数验证失败返回结果 + */ + public static CommonResult validateFailed() { + return failed(ResultCode.VALIDATE_FAILED); + } + + /** + * 参数验证失败返回结果 + * @param message 提示信息 + */ + public static CommonResult validateFailed(String message) { + return new CommonResult(ResultCode.VALIDATE_FAILED.getCode(), message, null); + } + + /** + * 未登录返回结果 + */ + public static CommonResult unauthorized(T data) { + return new CommonResult(ResultCode.UNAUTHORIZED.getCode(), ResultCode.UNAUTHORIZED.getMessage(), data); + } + + /** + * 未授权返回结果 + */ + public static CommonResult forbidden(T data) { + return new CommonResult(ResultCode.FORBIDDEN.getCode(), ResultCode.FORBIDDEN.getMessage(), data); + } + + public long getCode() { + return code; + } + + public void setCode(long code) { + this.code = code; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public T getData() { + return data; + } + + public void setData(T data) { + this.data = data; + } + + @Override + public String toString() { + return JSONUtil.toJsonStr(this); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/api/IErrorCode.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/api/IErrorCode.java new file mode 100644 index 000000000..6a3cad91c --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/api/IErrorCode.java @@ -0,0 +1,11 @@ +package com.macro.mall.common.api; + +/** + * 封装API的错误码 + * Created by macro on 2019/4/19. + */ +public interface IErrorCode { + long getCode(); + + String getMessage(); +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/api/ResultCode.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/api/ResultCode.java new file mode 100644 index 000000000..acde04bc0 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/api/ResultCode.java @@ -0,0 +1,28 @@ +package com.macro.mall.common.api; + +/** + * 枚举了一些常用API操作码 + * Created by macro on 2019/4/19. + */ +public enum ResultCode implements IErrorCode { + SUCCESS(200, "操作成功"), + FAILED(500, "操作失败"), + VALIDATE_FAILED(404, "参数检验失败"), + UNAUTHORIZED(401, "暂未登录或token已经过期"), + FORBIDDEN(403, "没有相关权限"); + private long code; + private String message; + + private ResultCode(long code, String message) { + this.code = code; + this.message = message; + } + + public long getCode() { + return code; + } + + public String getMessage() { + return message; + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/config/BaseRedisConfig.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/config/BaseRedisConfig.java new file mode 100644 index 000000000..27a137ddf --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/config/BaseRedisConfig.java @@ -0,0 +1,69 @@ +package com.macro.mall.common.config; + +import com.fasterxml.jackson.annotation.JsonAutoDetect; +import com.fasterxml.jackson.annotation.PropertyAccessor; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.jsontype.impl.LaissezFaireSubTypeValidator; +import com.macro.mall.common.service.RedisService; +import com.macro.mall.common.service.impl.RedisServiceImpl; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.data.redis.cache.RedisCacheConfiguration; +import org.springframework.data.redis.cache.RedisCacheManager; +import org.springframework.data.redis.cache.RedisCacheWriter; +import org.springframework.data.redis.connection.RedisConnectionFactory; +import org.springframework.data.redis.core.RedisTemplate; +import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer; +import org.springframework.data.redis.serializer.RedisSerializationContext; +import org.springframework.data.redis.serializer.RedisSerializer; +import org.springframework.data.redis.serializer.StringRedisSerializer; + +import java.time.Duration; + +/** + * Redis基础配置 + * Created by macro on 2020/6/19. + */ +public class BaseRedisConfig { + + @Bean + public RedisTemplate redisTemplate(RedisConnectionFactory redisConnectionFactory) { + RedisSerializer serializer = redisSerializer(); + RedisTemplate redisTemplate = new RedisTemplate<>(); + redisTemplate.setConnectionFactory(redisConnectionFactory); + redisTemplate.setKeySerializer(new StringRedisSerializer()); + redisTemplate.setValueSerializer(serializer); + redisTemplate.setHashKeySerializer(new StringRedisSerializer()); + redisTemplate.setHashValueSerializer(serializer); + redisTemplate.afterPropertiesSet(); + return redisTemplate; + } + + @Bean + public RedisSerializer redisSerializer() { + //创建JSON序列化器 + Jackson2JsonRedisSerializer serializer = new Jackson2JsonRedisSerializer<>(Object.class); + ObjectMapper objectMapper = new ObjectMapper(); + objectMapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY); + //必须设置,否则无法将JSON转化为对象,会转化成Map类型 + objectMapper.activateDefaultTyping(LaissezFaireSubTypeValidator.instance,ObjectMapper.DefaultTyping.NON_FINAL); + serializer.setObjectMapper(objectMapper); + return serializer; + } + + @Bean + public RedisCacheManager redisCacheManager(RedisConnectionFactory redisConnectionFactory) { + RedisCacheWriter redisCacheWriter = RedisCacheWriter.nonLockingRedisCacheWriter(redisConnectionFactory); + //设置Redis缓存有效期为1天 + RedisCacheConfiguration redisCacheConfiguration = RedisCacheConfiguration.defaultCacheConfig() + .serializeValuesWith(RedisSerializationContext.SerializationPair.fromSerializer(redisSerializer())).entryTtl(Duration.ofDays(1)); + return new RedisCacheManager(redisCacheWriter, redisCacheConfiguration); + } + + + @Bean + public RedisService redisService(){ + return new RedisServiceImpl(); + } + +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/constant/AuthConstant.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/constant/AuthConstant.java new file mode 100644 index 000000000..4c9892cfd --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/constant/AuthConstant.java @@ -0,0 +1,64 @@ +package com.macro.mall.common.constant; + +/** + * 权限相关常量定义 + * Created by macro on 2020/6/19. + */ +public interface AuthConstant { + + /** + * JWT存储权限前缀 + */ + String AUTHORITY_PREFIX = "ROLE_"; + + /** + * JWT存储权限属性 + */ + String AUTHORITY_CLAIM_NAME = "authorities"; + + /** + * 后台管理client_id + */ + String ADMIN_CLIENT_ID = "admin-app"; + + /** + * 前台商城client_id + */ + String PORTAL_CLIENT_ID = "portal-app"; + + /** + * 后台管理接口路径匹配 + */ + String ADMIN_URL_PATTERN = "/mall-admin/**"; + + /** + * Redis缓存权限规则(路径->资源) + */ + String PATH_RESOURCE_MAP = "auth:pathResourceMap"; + + /** + * 认证信息Http请求头 + */ + String JWT_TOKEN_HEADER = "Authorization"; + + /** + * JWT令牌前缀 + */ + String JWT_TOKEN_PREFIX = "Bearer "; + + /** + * 用户信息Http请求头 + */ + String USER_TOKEN_HEADER = "user"; + + /** + * sa-token session中存储的会员信息 + */ + String STP_MEMBER_INFO = "memberInfo"; + + /** + * sa-token session中存储的后台管理员信息 + */ + String STP_ADMIN_INFO = "adminInfo"; + +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/domain/WebLog.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/domain/WebLog.java new file mode 100644 index 000000000..e4faf97d2 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/domain/WebLog.java @@ -0,0 +1,68 @@ +package com.macro.mall.common.domain; + +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * Controller层的日志封装类 + * Created by macro on 2018/4/26. + */ +@Data +@EqualsAndHashCode(callSuper = false) +public class WebLog { + /** + * 操作描述 + */ + private String description; + + /** + * 操作用户 + */ + private String username; + + /** + * 操作时间 + */ + private Long startTime; + + /** + * 消耗时间 + */ + private Integer spendTime; + + /** + * 根路径 + */ + private String basePath; + + /** + * URI + */ + private String uri; + + /** + * URL + */ + private String url; + + /** + * 请求类型 + */ + private String method; + + /** + * IP地址 + */ + private String ip; + + /** + * 请求参数 + */ + private Object parameter; + + /** + * 返回结果 + */ + private Object result; + +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/dto/UserDto.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/dto/UserDto.java new file mode 100644 index 000000000..85bafbd91 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/dto/UserDto.java @@ -0,0 +1,23 @@ +package com.macro.mall.common.dto; + +import lombok.*; + +import java.util.List; + +/** + * @auther macrozheng + * @description 权限框架中使用的用户信息封装类 + * @date 2024/1/30 + * @github https://github.com/macrozheng + */ +@Data +@EqualsAndHashCode(callSuper = false) +@NoArgsConstructor +@AllArgsConstructor +@Builder +public class UserDto { + private Long id; + private String username; + private String clientId; + private List permissionList; +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/exception/ApiException.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/exception/ApiException.java new file mode 100644 index 000000000..b1099ab4f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/exception/ApiException.java @@ -0,0 +1,32 @@ +package com.macro.mall.common.exception; + +import com.macro.mall.common.api.IErrorCode; + +/** + * 自定义API异常 + * Created by macro on 2020/2/27. + */ +public class ApiException extends RuntimeException { + private IErrorCode errorCode; + + public ApiException(IErrorCode errorCode) { + super(errorCode.getMessage()); + this.errorCode = errorCode; + } + + public ApiException(String message) { + super(message); + } + + public ApiException(Throwable cause) { + super(cause); + } + + public ApiException(String message, Throwable cause) { + super(message, cause); + } + + public IErrorCode getErrorCode() { + return errorCode; + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/exception/Asserts.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/exception/Asserts.java new file mode 100644 index 000000000..96756b72f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/exception/Asserts.java @@ -0,0 +1,17 @@ +package com.macro.mall.common.exception; + +import com.macro.mall.common.api.IErrorCode; + +/** + * 断言处理类,用于抛出各种API异常 + * Created by macro on 2020/2/27. + */ +public class Asserts { + public static void fail(String message) { + throw new ApiException(message); + } + + public static void fail(IErrorCode errorCode) { + throw new ApiException(errorCode); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/exception/GlobalExceptionHandler.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/exception/GlobalExceptionHandler.java new file mode 100644 index 000000000..e95fd8a58 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/exception/GlobalExceptionHandler.java @@ -0,0 +1,55 @@ +package com.macro.mall.common.exception; + +import com.macro.mall.common.api.CommonResult; +import org.springframework.validation.BindException; +import org.springframework.validation.BindingResult; +import org.springframework.validation.FieldError; +import org.springframework.web.bind.MethodArgumentNotValidException; +import org.springframework.web.bind.annotation.ControllerAdvice; +import org.springframework.web.bind.annotation.ExceptionHandler; +import org.springframework.web.bind.annotation.ResponseBody; + +/** + * 全局异常处理 + * Created by macro on 2020/2/27. + */ +@ControllerAdvice +public class GlobalExceptionHandler { + + @ResponseBody + @ExceptionHandler(value = ApiException.class) + public CommonResult handle(ApiException e) { + if (e.getErrorCode() != null) { + return CommonResult.failed(e.getErrorCode()); + } + return CommonResult.failed(e.getMessage()); + } + + @ResponseBody + @ExceptionHandler(value = MethodArgumentNotValidException.class) + public CommonResult handleValidException(MethodArgumentNotValidException e) { + BindingResult bindingResult = e.getBindingResult(); + String message = null; + if (bindingResult.hasErrors()) { + FieldError fieldError = bindingResult.getFieldError(); + if (fieldError != null) { + message = fieldError.getField()+fieldError.getDefaultMessage(); + } + } + return CommonResult.validateFailed(message); + } + + @ResponseBody + @ExceptionHandler(value = BindException.class) + public CommonResult handleValidException(BindException e) { + BindingResult bindingResult = e.getBindingResult(); + String message = null; + if (bindingResult.hasErrors()) { + FieldError fieldError = bindingResult.getFieldError(); + if (fieldError != null) { + message = fieldError.getField()+fieldError.getDefaultMessage(); + } + } + return CommonResult.validateFailed(message); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/log/WebLogAspect.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/log/WebLogAspect.java new file mode 100644 index 000000000..a198e2ef0 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/log/WebLogAspect.java @@ -0,0 +1,124 @@ +package com.macro.mall.common.log; + +import cn.hutool.core.util.StrUtil; +import cn.hutool.core.util.URLUtil; +import cn.hutool.json.JSONUtil; +import com.macro.mall.common.domain.WebLog; +import io.swagger.v3.oas.annotations.Operation; +import net.logstash.logback.marker.Markers; +import org.aspectj.lang.JoinPoint; +import org.aspectj.lang.ProceedingJoinPoint; +import org.aspectj.lang.Signature; +import org.aspectj.lang.annotation.*; +import org.aspectj.lang.reflect.MethodSignature; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.core.annotation.Order; +import org.springframework.stereotype.Component; +import org.springframework.util.StringUtils; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.context.request.RequestContextHolder; +import org.springframework.web.context.request.ServletRequestAttributes; + +import jakarta.servlet.http.HttpServletRequest; +import java.lang.reflect.Method; +import java.lang.reflect.Parameter; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 统一日志处理切面 + * Created by macro on 2018/4/26. + */ +@Aspect +@Component +@Order(1) +public class WebLogAspect { + private static final Logger LOGGER = LoggerFactory.getLogger(WebLogAspect.class); + + @Pointcut("execution(public * com.macro.mall.controller.*.*(..))||execution(public * com.macro.mall.*.controller.*.*(..))") + public void webLog() { + } + + @Before("webLog()") + public void doBefore(JoinPoint joinPoint) throws Throwable { + } + + @AfterReturning(value = "webLog()", returning = "ret") + public void doAfterReturning(Object ret) throws Throwable { + } + + @Around("webLog()") + public Object doAround(ProceedingJoinPoint joinPoint) throws Throwable { + long startTime = System.currentTimeMillis(); + //获取当前请求对象 + ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes(); + HttpServletRequest request = attributes.getRequest(); + //记录请求信息(通过Logstash传入Elasticsearch) + WebLog webLog = new WebLog(); + Object result = joinPoint.proceed(); + Signature signature = joinPoint.getSignature(); + MethodSignature methodSignature = (MethodSignature) signature; + Method method = methodSignature.getMethod(); + if (method.isAnnotationPresent(Operation.class)) { + Operation log = method.getAnnotation(Operation.class); + webLog.setDescription(log.summary()); + } + long endTime = System.currentTimeMillis(); + String urlStr = request.getRequestURL().toString(); + webLog.setBasePath(StrUtil.removeSuffix(urlStr, URLUtil.url(urlStr).getPath())); + webLog.setIp(request.getRemoteUser()); + webLog.setMethod(request.getMethod()); + webLog.setParameter(getParameter(method, joinPoint.getArgs())); + webLog.setResult(result); + webLog.setSpendTime((int) (endTime - startTime)); + webLog.setStartTime(startTime); + webLog.setUri(request.getRequestURI()); + webLog.setUrl(request.getRequestURL().toString()); + Map logMap = new HashMap<>(); + logMap.put("url",webLog.getUrl()); + logMap.put("method",webLog.getMethod()); + logMap.put("parameter",webLog.getParameter()); + logMap.put("spendTime",webLog.getSpendTime()); + logMap.put("description",webLog.getDescription()); +// LOGGER.info("{}", JSONUtil.parse(webLog)); + LOGGER.info(Markers.appendEntries(logMap), JSONUtil.parse(webLog).toString()); + return result; + } + + /** + * 根据方法和传入的参数获取请求参数 + */ + private Object getParameter(Method method, Object[] args) { + List argList = new ArrayList<>(); + Parameter[] parameters = method.getParameters(); + for (int i = 0; i < parameters.length; i++) { + //将RequestBody注解修饰的参数作为请求参数 + RequestBody requestBody = parameters[i].getAnnotation(RequestBody.class); + if (requestBody != null) { + argList.add(args[i]); + } + //将RequestParam注解修饰的参数作为请求参数 + RequestParam requestParam = parameters[i].getAnnotation(RequestParam.class); + if (requestParam != null) { + Map map = new HashMap<>(); + String key = parameters[i].getName(); + if (!StringUtils.isEmpty(requestParam.value())) { + key = requestParam.value(); + } + map.put(key, args[i]); + argList.add(map); + } + } + if (argList.size() == 0) { + return null; + } else if (argList.size() == 1) { + return argList.get(0); + } else { + return argList; + } + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/service/RedisService.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/service/RedisService.java new file mode 100644 index 000000000..9f2de5efd --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/service/RedisService.java @@ -0,0 +1,182 @@ +package com.macro.mall.common.service; + +import java.util.List; +import java.util.Map; +import java.util.Set; + +/** + * redis操作Service + * Created by macro on 2020/3/3. + */ +public interface RedisService { + + /** + * 保存属性 + */ + void set(String key, Object value, long time); + + /** + * 保存属性 + */ + void set(String key, Object value); + + /** + * 获取属性 + */ + Object get(String key); + + /** + * 删除属性 + */ + Boolean del(String key); + + /** + * 批量删除属性 + */ + Long del(List keys); + + /** + * 设置过期时间 + */ + Boolean expire(String key, long time); + + /** + * 获取过期时间 + */ + Long getExpire(String key); + + /** + * 判断是否有该属性 + */ + Boolean hasKey(String key); + + /** + * 按delta递增 + */ + Long incr(String key, long delta); + + /** + * 按delta递减 + */ + Long decr(String key, long delta); + + /** + * 获取Hash结构中的属性 + */ + Object hGet(String key, String hashKey); + + /** + * 向Hash结构中放入一个属性 + */ + Boolean hSet(String key, String hashKey, Object value, long time); + + /** + * 向Hash结构中放入一个属性 + */ + void hSet(String key, String hashKey, Object value); + + /** + * 直接获取整个Hash结构 + */ + Map hGetAll(String key); + + /** + * 直接设置整个Hash结构 + */ + Boolean hSetAll(String key, Map map, long time); + + /** + * 直接设置整个Hash结构 + */ + void hSetAll(String key, Map map); + + /** + * 删除Hash结构中的属性 + */ + void hDel(String key, Object... hashKey); + + /** + * 判断Hash结构中是否有该属性 + */ + Boolean hHasKey(String key, String hashKey); + + /** + * Hash结构中属性递增 + */ + Long hIncr(String key, String hashKey, Long delta); + + /** + * Hash结构中属性递减 + */ + Long hDecr(String key, String hashKey, Long delta); + + /** + * 获取Set结构 + */ + Set sMembers(String key); + + /** + * 向Set结构中添加属性 + */ + Long sAdd(String key, Object... values); + + /** + * 向Set结构中添加属性 + */ + Long sAdd(String key, long time, Object... values); + + /** + * 是否为Set中的属性 + */ + Boolean sIsMember(String key, Object value); + + /** + * 获取Set结构的长度 + */ + Long sSize(String key); + + /** + * 删除Set结构中的属性 + */ + Long sRemove(String key, Object... values); + + /** + * 获取List结构中的属性 + */ + List lRange(String key, long start, long end); + + /** + * 获取List结构的长度 + */ + Long lSize(String key); + + /** + * 根据索引获取List中的属性 + */ + Object lIndex(String key, long index); + + /** + * 向List结构中添加属性 + */ + Long lPush(String key, Object value); + + /** + * 向List结构中添加属性 + */ + Long lPush(String key, Object value, long time); + + /** + * 向List结构中批量添加属性 + */ + Long lPushAll(String key, Object... values); + + /** + * 向List结构中批量添加属性 + */ + Long lPushAll(String key, Long time, Object... values); + + /** + * 从List结构中移除属性 + */ + Long lRemove(String key, long count, Object value); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/service/impl/RedisServiceImpl.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/service/impl/RedisServiceImpl.java new file mode 100644 index 000000000..8720014cf --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/java/com/macro/mall/common/service/impl/RedisServiceImpl.java @@ -0,0 +1,198 @@ +package com.macro.mall.common.service.impl; + +import com.macro.mall.common.service.RedisService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.data.redis.core.RedisTemplate; +import org.springframework.stereotype.Service; + +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.concurrent.TimeUnit; + +/** + * redis操作实现类 + * Created by macro on 2020/3/3. + */ +public class RedisServiceImpl implements RedisService { + @Autowired + private RedisTemplate redisTemplate; + + @Override + public void set(String key, Object value, long time) { + redisTemplate.opsForValue().set(key, value, time, TimeUnit.SECONDS); + } + + @Override + public void set(String key, Object value) { + redisTemplate.opsForValue().set(key, value); + } + + @Override + public Object get(String key) { + return redisTemplate.opsForValue().get(key); + } + + @Override + public Boolean del(String key) { + return redisTemplate.delete(key); + } + + @Override + public Long del(List keys) { + return redisTemplate.delete(keys); + } + + @Override + public Boolean expire(String key, long time) { + return redisTemplate.expire(key, time, TimeUnit.SECONDS); + } + + @Override + public Long getExpire(String key) { + return redisTemplate.getExpire(key, TimeUnit.SECONDS); + } + + @Override + public Boolean hasKey(String key) { + return redisTemplate.hasKey(key); + } + + @Override + public Long incr(String key, long delta) { + return redisTemplate.opsForValue().increment(key, delta); + } + + @Override + public Long decr(String key, long delta) { + return redisTemplate.opsForValue().increment(key, -delta); + } + + @Override + public Object hGet(String key, String hashKey) { + return redisTemplate.opsForHash().get(key, hashKey); + } + + @Override + public Boolean hSet(String key, String hashKey, Object value, long time) { + redisTemplate.opsForHash().put(key, hashKey, value); + return expire(key, time); + } + + @Override + public void hSet(String key, String hashKey, Object value) { + redisTemplate.opsForHash().put(key, hashKey, value); + } + + @Override + public Map hGetAll(String key) { + return redisTemplate.opsForHash().entries(key); + } + + @Override + public Boolean hSetAll(String key, Map map, long time) { + redisTemplate.opsForHash().putAll(key, map); + return expire(key, time); + } + + @Override + public void hSetAll(String key, Map map) { + redisTemplate.opsForHash().putAll(key, map); + } + + @Override + public void hDel(String key, Object... hashKey) { + redisTemplate.opsForHash().delete(key, hashKey); + } + + @Override + public Boolean hHasKey(String key, String hashKey) { + return redisTemplate.opsForHash().hasKey(key, hashKey); + } + + @Override + public Long hIncr(String key, String hashKey, Long delta) { + return redisTemplate.opsForHash().increment(key, hashKey, delta); + } + + @Override + public Long hDecr(String key, String hashKey, Long delta) { + return redisTemplate.opsForHash().increment(key, hashKey, -delta); + } + + @Override + public Set sMembers(String key) { + return redisTemplate.opsForSet().members(key); + } + + @Override + public Long sAdd(String key, Object... values) { + return redisTemplate.opsForSet().add(key, values); + } + + @Override + public Long sAdd(String key, long time, Object... values) { + Long count = redisTemplate.opsForSet().add(key, values); + expire(key, time); + return count; + } + + @Override + public Boolean sIsMember(String key, Object value) { + return redisTemplate.opsForSet().isMember(key, value); + } + + @Override + public Long sSize(String key) { + return redisTemplate.opsForSet().size(key); + } + + @Override + public Long sRemove(String key, Object... values) { + return redisTemplate.opsForSet().remove(key, values); + } + + @Override + public List lRange(String key, long start, long end) { + return redisTemplate.opsForList().range(key, start, end); + } + + @Override + public Long lSize(String key) { + return redisTemplate.opsForList().size(key); + } + + @Override + public Object lIndex(String key, long index) { + return redisTemplate.opsForList().index(key, index); + } + + @Override + public Long lPush(String key, Object value) { + return redisTemplate.opsForList().rightPush(key, value); + } + + @Override + public Long lPush(String key, Object value, long time) { + Long index = redisTemplate.opsForList().rightPush(key, value); + expire(key, time); + return index; + } + + @Override + public Long lPushAll(String key, Object... values) { + return redisTemplate.opsForList().rightPushAll(key, values); + } + + @Override + public Long lPushAll(String key, Long time, Object... values) { + Long count = redisTemplate.opsForList().rightPushAll(key, values); + expire(key, time); + return count; + } + + @Override + public Long lRemove(String key, long count, Object value) { + return redisTemplate.opsForList().remove(key, count, value); + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/resources/logback-spring.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/resources/logback-spring.xml new file mode 100644 index 000000000..08aaa422a --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-common/src/main/resources/logback-spring.xml @@ -0,0 +1,204 @@ + + + + + + + + + + + + + + + + + + + + + + DEBUG + + + + ${FILE_LOG_PATTERN} + UTF-8 + + + + ${LOG_FILE_PATH}/debug/${APP_NAME}-%d{yyyy-MM-dd}-%i.log + + ${LOG_FILE_MAX_SIZE:-10MB} + + ${LOG_FILE_MAX_HISTORY:-30} + + + + + + + + ERROR + ACCEPT + DENY + + + + ${FILE_LOG_PATTERN} + UTF-8 + + + + ${LOG_FILE_PATH}/error/${APP_NAME}-%d{yyyy-MM-dd}-%i.log + + ${LOG_FILE_MAX_SIZE:-10MB} + + ${LOG_FILE_MAX_HISTORY:-30} + + + + + + + DEBUG + + ${LOG_STASH_HOST}:4560 + ${ENABLE_INNER_LOG} + + + + Asia/Shanghai + + + + + { + "project": "mall-swarm", + "level": "%level", + "service": "${APP_NAME:-}", + "pid": "${PID:-}", + "thread": "%thread", + "class": "%logger", + "message": "%message", + "stack_trace": "%exception{20}" + } + + + + + + + + + + ERROR + ACCEPT + DENY + + ${LOG_STASH_HOST}:4561 + ${ENABLE_INNER_LOG} + + + + Asia/Shanghai + + + + + { + "project": "mall-swarm", + "level": "%level", + "service": "${APP_NAME:-}", + "pid": "${PID:-}", + "thread": "%thread", + "class": "%logger", + "message": "%message", + "stack_trace": "%exception{20}" + } + + + + + + + + + ${LOG_STASH_HOST}:4562 + ${ENABLE_INNER_LOG} + + + + Asia/Shanghai + + + + + { + "project": "mall-swarm", + "level": "%level", + "service": "${APP_NAME:-}", + "pid": "${PID:-}", + "thread": "%thread", + "class": "%logger", + "message": "%message", + "stack_trace": "%exception{20}" + } + + + + + + + + + ${LOG_STASH_HOST}:4563 + ${ENABLE_INNER_LOG} + + + + Asia/Shanghai + + + + + { + "project": "mall-swarm", + "level": "%level", + "service": "${APP_NAME:-}", + "class": "%logger", + "message": "%message" + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/pom.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/pom.xml new file mode 100644 index 000000000..6be95919d --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/pom.xml @@ -0,0 +1,48 @@ + + + 4.0.0 + + com.macro.mall + ruoyi-mall-mbg + 1.0-SNAPSHOT + jar + + ruoyi-mall-mbg + ruoyi-mall-mbg project for mall + + + com.macro.mall + mall-swarm + 1.0-SNAPSHOT + + + + + com.macro.mall + mall-common + + + com.github.pagehelper + pagehelper-spring-boot-starter + + + org.mybatis.spring.boot + mybatis-spring-boot-starter + + + com.alibaba + druid-spring-boot-starter + + + org.mybatis.generator + mybatis-generator-core + + + mysql + mysql-connector-java + + + + diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/CommentGenerator.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/CommentGenerator.java new file mode 100644 index 000000000..9aca6e8ba --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/CommentGenerator.java @@ -0,0 +1,74 @@ +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.v3.oas.annotations.media.Schema"; + + /** + * 设置用户配置的参数 + */ + @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("@Schema(title = \""+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)); + } + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/Generator.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/Generator.java new file mode 100644 index 000000000..9542860a4 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/Generator.java @@ -0,0 +1,38 @@ +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 warnings = new ArrayList(); + //当生成的代码重复时,覆盖原代码 + 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); + } + } +} diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsHelpCategoryMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsHelpCategoryMapper.java new file mode 100644 index 000000000..f458690cd --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsHelpCategoryMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.CmsHelpCategory; +import com.macro.mall.model.CmsHelpCategoryExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CmsHelpCategoryMapper { + long countByExample(CmsHelpCategoryExample example); + + int deleteByExample(CmsHelpCategoryExample example); + + int deleteByPrimaryKey(Long id); + + int insert(CmsHelpCategory row); + + int insertSelective(CmsHelpCategory row); + + List selectByExample(CmsHelpCategoryExample example); + + CmsHelpCategory selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") CmsHelpCategory row, @Param("example") CmsHelpCategoryExample example); + + int updateByExample(@Param("row") CmsHelpCategory row, @Param("example") CmsHelpCategoryExample example); + + int updateByPrimaryKeySelective(CmsHelpCategory row); + + int updateByPrimaryKey(CmsHelpCategory row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsHelpMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsHelpMapper.java new file mode 100644 index 000000000..3e9af18b1 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsHelpMapper.java @@ -0,0 +1,36 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.CmsHelp; +import com.macro.mall.model.CmsHelpExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CmsHelpMapper { + long countByExample(CmsHelpExample example); + + int deleteByExample(CmsHelpExample example); + + int deleteByPrimaryKey(Long id); + + int insert(CmsHelp row); + + int insertSelective(CmsHelp row); + + List selectByExampleWithBLOBs(CmsHelpExample example); + + List selectByExample(CmsHelpExample example); + + CmsHelp selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") CmsHelp row, @Param("example") CmsHelpExample example); + + int updateByExampleWithBLOBs(@Param("row") CmsHelp row, @Param("example") CmsHelpExample example); + + int updateByExample(@Param("row") CmsHelp row, @Param("example") CmsHelpExample example); + + int updateByPrimaryKeySelective(CmsHelp row); + + int updateByPrimaryKeyWithBLOBs(CmsHelp row); + + int updateByPrimaryKey(CmsHelp row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsMemberReportMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsMemberReportMapper.java new file mode 100644 index 000000000..0a1569f39 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsMemberReportMapper.java @@ -0,0 +1,22 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.CmsMemberReport; +import com.macro.mall.model.CmsMemberReportExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CmsMemberReportMapper { + long countByExample(CmsMemberReportExample example); + + int deleteByExample(CmsMemberReportExample example); + + int insert(CmsMemberReport row); + + int insertSelective(CmsMemberReport row); + + List selectByExample(CmsMemberReportExample example); + + int updateByExampleSelective(@Param("row") CmsMemberReport row, @Param("example") CmsMemberReportExample example); + + int updateByExample(@Param("row") CmsMemberReport row, @Param("example") CmsMemberReportExample example); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsPrefrenceAreaMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsPrefrenceAreaMapper.java new file mode 100644 index 000000000..b148de9d7 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsPrefrenceAreaMapper.java @@ -0,0 +1,36 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.CmsPrefrenceArea; +import com.macro.mall.model.CmsPrefrenceAreaExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CmsPrefrenceAreaMapper { + long countByExample(CmsPrefrenceAreaExample example); + + int deleteByExample(CmsPrefrenceAreaExample example); + + int deleteByPrimaryKey(Long id); + + int insert(CmsPrefrenceArea row); + + int insertSelective(CmsPrefrenceArea row); + + List selectByExampleWithBLOBs(CmsPrefrenceAreaExample example); + + List selectByExample(CmsPrefrenceAreaExample example); + + CmsPrefrenceArea selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") CmsPrefrenceArea row, @Param("example") CmsPrefrenceAreaExample example); + + int updateByExampleWithBLOBs(@Param("row") CmsPrefrenceArea row, @Param("example") CmsPrefrenceAreaExample example); + + int updateByExample(@Param("row") CmsPrefrenceArea row, @Param("example") CmsPrefrenceAreaExample example); + + int updateByPrimaryKeySelective(CmsPrefrenceArea row); + + int updateByPrimaryKeyWithBLOBs(CmsPrefrenceArea row); + + int updateByPrimaryKey(CmsPrefrenceArea row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsPrefrenceAreaProductRelationMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsPrefrenceAreaProductRelationMapper.java new file mode 100644 index 000000000..c31163cb8 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsPrefrenceAreaProductRelationMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.CmsPrefrenceAreaProductRelation; +import com.macro.mall.model.CmsPrefrenceAreaProductRelationExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CmsPrefrenceAreaProductRelationMapper { + long countByExample(CmsPrefrenceAreaProductRelationExample example); + + int deleteByExample(CmsPrefrenceAreaProductRelationExample example); + + int deleteByPrimaryKey(Long id); + + int insert(CmsPrefrenceAreaProductRelation row); + + int insertSelective(CmsPrefrenceAreaProductRelation row); + + List selectByExample(CmsPrefrenceAreaProductRelationExample example); + + CmsPrefrenceAreaProductRelation selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") CmsPrefrenceAreaProductRelation row, @Param("example") CmsPrefrenceAreaProductRelationExample example); + + int updateByExample(@Param("row") CmsPrefrenceAreaProductRelation row, @Param("example") CmsPrefrenceAreaProductRelationExample example); + + int updateByPrimaryKeySelective(CmsPrefrenceAreaProductRelation row); + + int updateByPrimaryKey(CmsPrefrenceAreaProductRelation row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectCategoryMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectCategoryMapper.java new file mode 100644 index 000000000..ce783d1f2 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectCategoryMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.CmsSubjectCategory; +import com.macro.mall.model.CmsSubjectCategoryExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CmsSubjectCategoryMapper { + long countByExample(CmsSubjectCategoryExample example); + + int deleteByExample(CmsSubjectCategoryExample example); + + int deleteByPrimaryKey(Long id); + + int insert(CmsSubjectCategory row); + + int insertSelective(CmsSubjectCategory row); + + List selectByExample(CmsSubjectCategoryExample example); + + CmsSubjectCategory selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") CmsSubjectCategory row, @Param("example") CmsSubjectCategoryExample example); + + int updateByExample(@Param("row") CmsSubjectCategory row, @Param("example") CmsSubjectCategoryExample example); + + int updateByPrimaryKeySelective(CmsSubjectCategory row); + + int updateByPrimaryKey(CmsSubjectCategory row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectCommentMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectCommentMapper.java new file mode 100644 index 000000000..932c55aea --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectCommentMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.CmsSubjectComment; +import com.macro.mall.model.CmsSubjectCommentExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CmsSubjectCommentMapper { + long countByExample(CmsSubjectCommentExample example); + + int deleteByExample(CmsSubjectCommentExample example); + + int deleteByPrimaryKey(Long id); + + int insert(CmsSubjectComment row); + + int insertSelective(CmsSubjectComment row); + + List selectByExample(CmsSubjectCommentExample example); + + CmsSubjectComment selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") CmsSubjectComment row, @Param("example") CmsSubjectCommentExample example); + + int updateByExample(@Param("row") CmsSubjectComment row, @Param("example") CmsSubjectCommentExample example); + + int updateByPrimaryKeySelective(CmsSubjectComment row); + + int updateByPrimaryKey(CmsSubjectComment row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectMapper.java new file mode 100644 index 000000000..499591f52 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectMapper.java @@ -0,0 +1,36 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.CmsSubject; +import com.macro.mall.model.CmsSubjectExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CmsSubjectMapper { + long countByExample(CmsSubjectExample example); + + int deleteByExample(CmsSubjectExample example); + + int deleteByPrimaryKey(Long id); + + int insert(CmsSubject row); + + int insertSelective(CmsSubject row); + + List selectByExampleWithBLOBs(CmsSubjectExample example); + + List selectByExample(CmsSubjectExample example); + + CmsSubject selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") CmsSubject row, @Param("example") CmsSubjectExample example); + + int updateByExampleWithBLOBs(@Param("row") CmsSubject row, @Param("example") CmsSubjectExample example); + + int updateByExample(@Param("row") CmsSubject row, @Param("example") CmsSubjectExample example); + + int updateByPrimaryKeySelective(CmsSubject row); + + int updateByPrimaryKeyWithBLOBs(CmsSubject row); + + int updateByPrimaryKey(CmsSubject row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectProductRelationMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectProductRelationMapper.java new file mode 100644 index 000000000..a627855df --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsSubjectProductRelationMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.CmsSubjectProductRelation; +import com.macro.mall.model.CmsSubjectProductRelationExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CmsSubjectProductRelationMapper { + long countByExample(CmsSubjectProductRelationExample example); + + int deleteByExample(CmsSubjectProductRelationExample example); + + int deleteByPrimaryKey(Long id); + + int insert(CmsSubjectProductRelation row); + + int insertSelective(CmsSubjectProductRelation row); + + List selectByExample(CmsSubjectProductRelationExample example); + + CmsSubjectProductRelation selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") CmsSubjectProductRelation row, @Param("example") CmsSubjectProductRelationExample example); + + int updateByExample(@Param("row") CmsSubjectProductRelation row, @Param("example") CmsSubjectProductRelationExample example); + + int updateByPrimaryKeySelective(CmsSubjectProductRelation row); + + int updateByPrimaryKey(CmsSubjectProductRelation row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsTopicCategoryMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsTopicCategoryMapper.java new file mode 100644 index 000000000..ada71c3c8 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsTopicCategoryMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.CmsTopicCategory; +import com.macro.mall.model.CmsTopicCategoryExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CmsTopicCategoryMapper { + long countByExample(CmsTopicCategoryExample example); + + int deleteByExample(CmsTopicCategoryExample example); + + int deleteByPrimaryKey(Long id); + + int insert(CmsTopicCategory row); + + int insertSelective(CmsTopicCategory row); + + List selectByExample(CmsTopicCategoryExample example); + + CmsTopicCategory selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") CmsTopicCategory row, @Param("example") CmsTopicCategoryExample example); + + int updateByExample(@Param("row") CmsTopicCategory row, @Param("example") CmsTopicCategoryExample example); + + int updateByPrimaryKeySelective(CmsTopicCategory row); + + int updateByPrimaryKey(CmsTopicCategory row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsTopicCommentMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsTopicCommentMapper.java new file mode 100644 index 000000000..197bf3530 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsTopicCommentMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.CmsTopicComment; +import com.macro.mall.model.CmsTopicCommentExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CmsTopicCommentMapper { + long countByExample(CmsTopicCommentExample example); + + int deleteByExample(CmsTopicCommentExample example); + + int deleteByPrimaryKey(Long id); + + int insert(CmsTopicComment row); + + int insertSelective(CmsTopicComment row); + + List selectByExample(CmsTopicCommentExample example); + + CmsTopicComment selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") CmsTopicComment row, @Param("example") CmsTopicCommentExample example); + + int updateByExample(@Param("row") CmsTopicComment row, @Param("example") CmsTopicCommentExample example); + + int updateByPrimaryKeySelective(CmsTopicComment row); + + int updateByPrimaryKey(CmsTopicComment row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsTopicMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsTopicMapper.java new file mode 100644 index 000000000..fdbd1aac3 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/CmsTopicMapper.java @@ -0,0 +1,36 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.CmsTopic; +import com.macro.mall.model.CmsTopicExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CmsTopicMapper { + long countByExample(CmsTopicExample example); + + int deleteByExample(CmsTopicExample example); + + int deleteByPrimaryKey(Long id); + + int insert(CmsTopic row); + + int insertSelective(CmsTopic row); + + List selectByExampleWithBLOBs(CmsTopicExample example); + + List selectByExample(CmsTopicExample example); + + CmsTopic selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") CmsTopic row, @Param("example") CmsTopicExample example); + + int updateByExampleWithBLOBs(@Param("row") CmsTopic row, @Param("example") CmsTopicExample example); + + int updateByExample(@Param("row") CmsTopic row, @Param("example") CmsTopicExample example); + + int updateByPrimaryKeySelective(CmsTopic row); + + int updateByPrimaryKeyWithBLOBs(CmsTopic row); + + int updateByPrimaryKey(CmsTopic row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsCartItemMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsCartItemMapper.java new file mode 100644 index 000000000..c305630e2 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsCartItemMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.OmsCartItem; +import com.macro.mall.model.OmsCartItemExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OmsCartItemMapper { + long countByExample(OmsCartItemExample example); + + int deleteByExample(OmsCartItemExample example); + + int deleteByPrimaryKey(Long id); + + int insert(OmsCartItem row); + + int insertSelective(OmsCartItem row); + + List selectByExample(OmsCartItemExample example); + + OmsCartItem selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") OmsCartItem row, @Param("example") OmsCartItemExample example); + + int updateByExample(@Param("row") OmsCartItem row, @Param("example") OmsCartItemExample example); + + int updateByPrimaryKeySelective(OmsCartItem row); + + int updateByPrimaryKey(OmsCartItem row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsCompanyAddressMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsCompanyAddressMapper.java new file mode 100644 index 000000000..e3d6d637a --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsCompanyAddressMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.OmsCompanyAddress; +import com.macro.mall.model.OmsCompanyAddressExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OmsCompanyAddressMapper { + long countByExample(OmsCompanyAddressExample example); + + int deleteByExample(OmsCompanyAddressExample example); + + int deleteByPrimaryKey(Long id); + + int insert(OmsCompanyAddress row); + + int insertSelective(OmsCompanyAddress row); + + List selectByExample(OmsCompanyAddressExample example); + + OmsCompanyAddress selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") OmsCompanyAddress row, @Param("example") OmsCompanyAddressExample example); + + int updateByExample(@Param("row") OmsCompanyAddress row, @Param("example") OmsCompanyAddressExample example); + + int updateByPrimaryKeySelective(OmsCompanyAddress row); + + int updateByPrimaryKey(OmsCompanyAddress row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderItemMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderItemMapper.java new file mode 100644 index 000000000..78c80346f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderItemMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.OmsOrderItem; +import com.macro.mall.model.OmsOrderItemExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OmsOrderItemMapper { + long countByExample(OmsOrderItemExample example); + + int deleteByExample(OmsOrderItemExample example); + + int deleteByPrimaryKey(Long id); + + int insert(OmsOrderItem row); + + int insertSelective(OmsOrderItem row); + + List selectByExample(OmsOrderItemExample example); + + OmsOrderItem selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") OmsOrderItem row, @Param("example") OmsOrderItemExample example); + + int updateByExample(@Param("row") OmsOrderItem row, @Param("example") OmsOrderItemExample example); + + int updateByPrimaryKeySelective(OmsOrderItem row); + + int updateByPrimaryKey(OmsOrderItem row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderMapper.java new file mode 100644 index 000000000..88433ab0c --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.OmsOrder; +import com.macro.mall.model.OmsOrderExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OmsOrderMapper { + long countByExample(OmsOrderExample example); + + int deleteByExample(OmsOrderExample example); + + int deleteByPrimaryKey(Long id); + + int insert(OmsOrder row); + + int insertSelective(OmsOrder row); + + List selectByExample(OmsOrderExample example); + + OmsOrder selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") OmsOrder row, @Param("example") OmsOrderExample example); + + int updateByExample(@Param("row") OmsOrder row, @Param("example") OmsOrderExample example); + + int updateByPrimaryKeySelective(OmsOrder row); + + int updateByPrimaryKey(OmsOrder row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderOperateHistoryMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderOperateHistoryMapper.java new file mode 100644 index 000000000..4a98317da --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderOperateHistoryMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.OmsOrderOperateHistory; +import com.macro.mall.model.OmsOrderOperateHistoryExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OmsOrderOperateHistoryMapper { + long countByExample(OmsOrderOperateHistoryExample example); + + int deleteByExample(OmsOrderOperateHistoryExample example); + + int deleteByPrimaryKey(Long id); + + int insert(OmsOrderOperateHistory row); + + int insertSelective(OmsOrderOperateHistory row); + + List selectByExample(OmsOrderOperateHistoryExample example); + + OmsOrderOperateHistory selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") OmsOrderOperateHistory row, @Param("example") OmsOrderOperateHistoryExample example); + + int updateByExample(@Param("row") OmsOrderOperateHistory row, @Param("example") OmsOrderOperateHistoryExample example); + + int updateByPrimaryKeySelective(OmsOrderOperateHistory row); + + int updateByPrimaryKey(OmsOrderOperateHistory row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderReturnApplyMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderReturnApplyMapper.java new file mode 100644 index 000000000..c24faeba4 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderReturnApplyMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.OmsOrderReturnApply; +import com.macro.mall.model.OmsOrderReturnApplyExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OmsOrderReturnApplyMapper { + long countByExample(OmsOrderReturnApplyExample example); + + int deleteByExample(OmsOrderReturnApplyExample example); + + int deleteByPrimaryKey(Long id); + + int insert(OmsOrderReturnApply row); + + int insertSelective(OmsOrderReturnApply row); + + List selectByExample(OmsOrderReturnApplyExample example); + + OmsOrderReturnApply selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") OmsOrderReturnApply row, @Param("example") OmsOrderReturnApplyExample example); + + int updateByExample(@Param("row") OmsOrderReturnApply row, @Param("example") OmsOrderReturnApplyExample example); + + int updateByPrimaryKeySelective(OmsOrderReturnApply row); + + int updateByPrimaryKey(OmsOrderReturnApply row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderReturnReasonMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderReturnReasonMapper.java new file mode 100644 index 000000000..d2c42efdf --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderReturnReasonMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.OmsOrderReturnReason; +import com.macro.mall.model.OmsOrderReturnReasonExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OmsOrderReturnReasonMapper { + long countByExample(OmsOrderReturnReasonExample example); + + int deleteByExample(OmsOrderReturnReasonExample example); + + int deleteByPrimaryKey(Long id); + + int insert(OmsOrderReturnReason row); + + int insertSelective(OmsOrderReturnReason row); + + List selectByExample(OmsOrderReturnReasonExample example); + + OmsOrderReturnReason selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") OmsOrderReturnReason row, @Param("example") OmsOrderReturnReasonExample example); + + int updateByExample(@Param("row") OmsOrderReturnReason row, @Param("example") OmsOrderReturnReasonExample example); + + int updateByPrimaryKeySelective(OmsOrderReturnReason row); + + int updateByPrimaryKey(OmsOrderReturnReason row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderSettingMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderSettingMapper.java new file mode 100644 index 000000000..c2fc85405 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderSettingMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.OmsOrderSetting; +import com.macro.mall.model.OmsOrderSettingExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OmsOrderSettingMapper { + long countByExample(OmsOrderSettingExample example); + + int deleteByExample(OmsOrderSettingExample example); + + int deleteByPrimaryKey(Long id); + + int insert(OmsOrderSetting row); + + int insertSelective(OmsOrderSetting row); + + List selectByExample(OmsOrderSettingExample example); + + OmsOrderSetting selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") OmsOrderSetting row, @Param("example") OmsOrderSettingExample example); + + int updateByExample(@Param("row") OmsOrderSetting row, @Param("example") OmsOrderSettingExample example); + + int updateByPrimaryKeySelective(OmsOrderSetting row); + + int updateByPrimaryKey(OmsOrderSetting row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsAlbumMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsAlbumMapper.java new file mode 100644 index 000000000..1d842be95 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsAlbumMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.PmsAlbum; +import com.macro.mall.model.PmsAlbumExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PmsAlbumMapper { + long countByExample(PmsAlbumExample example); + + int deleteByExample(PmsAlbumExample example); + + int deleteByPrimaryKey(Long id); + + int insert(PmsAlbum row); + + int insertSelective(PmsAlbum row); + + List selectByExample(PmsAlbumExample example); + + PmsAlbum selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") PmsAlbum row, @Param("example") PmsAlbumExample example); + + int updateByExample(@Param("row") PmsAlbum row, @Param("example") PmsAlbumExample example); + + int updateByPrimaryKeySelective(PmsAlbum row); + + int updateByPrimaryKey(PmsAlbum row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsAlbumPicMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsAlbumPicMapper.java new file mode 100644 index 000000000..93ba7fa6b --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsAlbumPicMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.PmsAlbumPic; +import com.macro.mall.model.PmsAlbumPicExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PmsAlbumPicMapper { + long countByExample(PmsAlbumPicExample example); + + int deleteByExample(PmsAlbumPicExample example); + + int deleteByPrimaryKey(Long id); + + int insert(PmsAlbumPic row); + + int insertSelective(PmsAlbumPic row); + + List selectByExample(PmsAlbumPicExample example); + + PmsAlbumPic selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") PmsAlbumPic row, @Param("example") PmsAlbumPicExample example); + + int updateByExample(@Param("row") PmsAlbumPic row, @Param("example") PmsAlbumPicExample example); + + int updateByPrimaryKeySelective(PmsAlbumPic row); + + int updateByPrimaryKey(PmsAlbumPic row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsBrandMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsBrandMapper.java new file mode 100644 index 000000000..948d139c3 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsBrandMapper.java @@ -0,0 +1,36 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.PmsBrand; +import com.macro.mall.model.PmsBrandExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PmsBrandMapper { + long countByExample(PmsBrandExample example); + + int deleteByExample(PmsBrandExample example); + + int deleteByPrimaryKey(Long id); + + int insert(PmsBrand row); + + int insertSelective(PmsBrand row); + + List selectByExampleWithBLOBs(PmsBrandExample example); + + List selectByExample(PmsBrandExample example); + + PmsBrand selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") PmsBrand row, @Param("example") PmsBrandExample example); + + int updateByExampleWithBLOBs(@Param("row") PmsBrand row, @Param("example") PmsBrandExample example); + + int updateByExample(@Param("row") PmsBrand row, @Param("example") PmsBrandExample example); + + int updateByPrimaryKeySelective(PmsBrand row); + + int updateByPrimaryKeyWithBLOBs(PmsBrand row); + + int updateByPrimaryKey(PmsBrand row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsCommentMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsCommentMapper.java new file mode 100644 index 000000000..934c69836 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsCommentMapper.java @@ -0,0 +1,36 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.PmsComment; +import com.macro.mall.model.PmsCommentExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PmsCommentMapper { + long countByExample(PmsCommentExample example); + + int deleteByExample(PmsCommentExample example); + + int deleteByPrimaryKey(Long id); + + int insert(PmsComment row); + + int insertSelective(PmsComment row); + + List selectByExampleWithBLOBs(PmsCommentExample example); + + List selectByExample(PmsCommentExample example); + + PmsComment selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") PmsComment row, @Param("example") PmsCommentExample example); + + int updateByExampleWithBLOBs(@Param("row") PmsComment row, @Param("example") PmsCommentExample example); + + int updateByExample(@Param("row") PmsComment row, @Param("example") PmsCommentExample example); + + int updateByPrimaryKeySelective(PmsComment row); + + int updateByPrimaryKeyWithBLOBs(PmsComment row); + + int updateByPrimaryKey(PmsComment row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsCommentReplayMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsCommentReplayMapper.java new file mode 100644 index 000000000..a15905166 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsCommentReplayMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.PmsCommentReplay; +import com.macro.mall.model.PmsCommentReplayExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PmsCommentReplayMapper { + long countByExample(PmsCommentReplayExample example); + + int deleteByExample(PmsCommentReplayExample example); + + int deleteByPrimaryKey(Long id); + + int insert(PmsCommentReplay row); + + int insertSelective(PmsCommentReplay row); + + List selectByExample(PmsCommentReplayExample example); + + PmsCommentReplay selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") PmsCommentReplay row, @Param("example") PmsCommentReplayExample example); + + int updateByExample(@Param("row") PmsCommentReplay row, @Param("example") PmsCommentReplayExample example); + + int updateByPrimaryKeySelective(PmsCommentReplay row); + + int updateByPrimaryKey(PmsCommentReplay row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsFeightTemplateMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsFeightTemplateMapper.java new file mode 100644 index 000000000..15e7f12b9 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsFeightTemplateMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.PmsFeightTemplate; +import com.macro.mall.model.PmsFeightTemplateExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PmsFeightTemplateMapper { + long countByExample(PmsFeightTemplateExample example); + + int deleteByExample(PmsFeightTemplateExample example); + + int deleteByPrimaryKey(Long id); + + int insert(PmsFeightTemplate row); + + int insertSelective(PmsFeightTemplate row); + + List selectByExample(PmsFeightTemplateExample example); + + PmsFeightTemplate selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") PmsFeightTemplate row, @Param("example") PmsFeightTemplateExample example); + + int updateByExample(@Param("row") PmsFeightTemplate row, @Param("example") PmsFeightTemplateExample example); + + int updateByPrimaryKeySelective(PmsFeightTemplate row); + + int updateByPrimaryKey(PmsFeightTemplate row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsMemberPriceMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsMemberPriceMapper.java new file mode 100644 index 000000000..8394a1711 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsMemberPriceMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.PmsMemberPrice; +import com.macro.mall.model.PmsMemberPriceExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PmsMemberPriceMapper { + long countByExample(PmsMemberPriceExample example); + + int deleteByExample(PmsMemberPriceExample example); + + int deleteByPrimaryKey(Long id); + + int insert(PmsMemberPrice row); + + int insertSelective(PmsMemberPrice row); + + List selectByExample(PmsMemberPriceExample example); + + PmsMemberPrice selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") PmsMemberPrice row, @Param("example") PmsMemberPriceExample example); + + int updateByExample(@Param("row") PmsMemberPrice row, @Param("example") PmsMemberPriceExample example); + + int updateByPrimaryKeySelective(PmsMemberPrice row); + + int updateByPrimaryKey(PmsMemberPrice row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductAttributeCategoryMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductAttributeCategoryMapper.java new file mode 100644 index 000000000..10624c5b5 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductAttributeCategoryMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.PmsProductAttributeCategory; +import com.macro.mall.model.PmsProductAttributeCategoryExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PmsProductAttributeCategoryMapper { + long countByExample(PmsProductAttributeCategoryExample example); + + int deleteByExample(PmsProductAttributeCategoryExample example); + + int deleteByPrimaryKey(Long id); + + int insert(PmsProductAttributeCategory row); + + int insertSelective(PmsProductAttributeCategory row); + + List selectByExample(PmsProductAttributeCategoryExample example); + + PmsProductAttributeCategory selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") PmsProductAttributeCategory row, @Param("example") PmsProductAttributeCategoryExample example); + + int updateByExample(@Param("row") PmsProductAttributeCategory row, @Param("example") PmsProductAttributeCategoryExample example); + + int updateByPrimaryKeySelective(PmsProductAttributeCategory row); + + int updateByPrimaryKey(PmsProductAttributeCategory row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductAttributeMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductAttributeMapper.java new file mode 100644 index 000000000..503751d54 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductAttributeMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.PmsProductAttribute; +import com.macro.mall.model.PmsProductAttributeExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PmsProductAttributeMapper { + long countByExample(PmsProductAttributeExample example); + + int deleteByExample(PmsProductAttributeExample example); + + int deleteByPrimaryKey(Long id); + + int insert(PmsProductAttribute row); + + int insertSelective(PmsProductAttribute row); + + List selectByExample(PmsProductAttributeExample example); + + PmsProductAttribute selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") PmsProductAttribute row, @Param("example") PmsProductAttributeExample example); + + int updateByExample(@Param("row") PmsProductAttribute row, @Param("example") PmsProductAttributeExample example); + + int updateByPrimaryKeySelective(PmsProductAttribute row); + + int updateByPrimaryKey(PmsProductAttribute row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductAttributeValueMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductAttributeValueMapper.java new file mode 100644 index 000000000..bd2406c75 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductAttributeValueMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.PmsProductAttributeValue; +import com.macro.mall.model.PmsProductAttributeValueExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PmsProductAttributeValueMapper { + long countByExample(PmsProductAttributeValueExample example); + + int deleteByExample(PmsProductAttributeValueExample example); + + int deleteByPrimaryKey(Long id); + + int insert(PmsProductAttributeValue row); + + int insertSelective(PmsProductAttributeValue row); + + List selectByExample(PmsProductAttributeValueExample example); + + PmsProductAttributeValue selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") PmsProductAttributeValue row, @Param("example") PmsProductAttributeValueExample example); + + int updateByExample(@Param("row") PmsProductAttributeValue row, @Param("example") PmsProductAttributeValueExample example); + + int updateByPrimaryKeySelective(PmsProductAttributeValue row); + + int updateByPrimaryKey(PmsProductAttributeValue row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductCategoryAttributeRelationMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductCategoryAttributeRelationMapper.java new file mode 100644 index 000000000..7d604af92 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductCategoryAttributeRelationMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.PmsProductCategoryAttributeRelation; +import com.macro.mall.model.PmsProductCategoryAttributeRelationExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PmsProductCategoryAttributeRelationMapper { + long countByExample(PmsProductCategoryAttributeRelationExample example); + + int deleteByExample(PmsProductCategoryAttributeRelationExample example); + + int deleteByPrimaryKey(Long id); + + int insert(PmsProductCategoryAttributeRelation row); + + int insertSelective(PmsProductCategoryAttributeRelation row); + + List selectByExample(PmsProductCategoryAttributeRelationExample example); + + PmsProductCategoryAttributeRelation selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") PmsProductCategoryAttributeRelation row, @Param("example") PmsProductCategoryAttributeRelationExample example); + + int updateByExample(@Param("row") PmsProductCategoryAttributeRelation row, @Param("example") PmsProductCategoryAttributeRelationExample example); + + int updateByPrimaryKeySelective(PmsProductCategoryAttributeRelation row); + + int updateByPrimaryKey(PmsProductCategoryAttributeRelation row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductCategoryMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductCategoryMapper.java new file mode 100644 index 000000000..f93340653 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductCategoryMapper.java @@ -0,0 +1,36 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.PmsProductCategory; +import com.macro.mall.model.PmsProductCategoryExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PmsProductCategoryMapper { + long countByExample(PmsProductCategoryExample example); + + int deleteByExample(PmsProductCategoryExample example); + + int deleteByPrimaryKey(Long id); + + int insert(PmsProductCategory row); + + int insertSelective(PmsProductCategory row); + + List selectByExampleWithBLOBs(PmsProductCategoryExample example); + + List selectByExample(PmsProductCategoryExample example); + + PmsProductCategory selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") PmsProductCategory row, @Param("example") PmsProductCategoryExample example); + + int updateByExampleWithBLOBs(@Param("row") PmsProductCategory row, @Param("example") PmsProductCategoryExample example); + + int updateByExample(@Param("row") PmsProductCategory row, @Param("example") PmsProductCategoryExample example); + + int updateByPrimaryKeySelective(PmsProductCategory row); + + int updateByPrimaryKeyWithBLOBs(PmsProductCategory row); + + int updateByPrimaryKey(PmsProductCategory row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductFullReductionMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductFullReductionMapper.java new file mode 100644 index 000000000..33035676e --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductFullReductionMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.PmsProductFullReduction; +import com.macro.mall.model.PmsProductFullReductionExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PmsProductFullReductionMapper { + long countByExample(PmsProductFullReductionExample example); + + int deleteByExample(PmsProductFullReductionExample example); + + int deleteByPrimaryKey(Long id); + + int insert(PmsProductFullReduction row); + + int insertSelective(PmsProductFullReduction row); + + List selectByExample(PmsProductFullReductionExample example); + + PmsProductFullReduction selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") PmsProductFullReduction row, @Param("example") PmsProductFullReductionExample example); + + int updateByExample(@Param("row") PmsProductFullReduction row, @Param("example") PmsProductFullReductionExample example); + + int updateByPrimaryKeySelective(PmsProductFullReduction row); + + int updateByPrimaryKey(PmsProductFullReduction row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductLadderMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductLadderMapper.java new file mode 100644 index 000000000..9738f3d85 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductLadderMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.PmsProductLadder; +import com.macro.mall.model.PmsProductLadderExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PmsProductLadderMapper { + long countByExample(PmsProductLadderExample example); + + int deleteByExample(PmsProductLadderExample example); + + int deleteByPrimaryKey(Long id); + + int insert(PmsProductLadder row); + + int insertSelective(PmsProductLadder row); + + List selectByExample(PmsProductLadderExample example); + + PmsProductLadder selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") PmsProductLadder row, @Param("example") PmsProductLadderExample example); + + int updateByExample(@Param("row") PmsProductLadder row, @Param("example") PmsProductLadderExample example); + + int updateByPrimaryKeySelective(PmsProductLadder row); + + int updateByPrimaryKey(PmsProductLadder row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductMapper.java new file mode 100644 index 000000000..8fd9f9ec3 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductMapper.java @@ -0,0 +1,36 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.PmsProduct; +import com.macro.mall.model.PmsProductExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PmsProductMapper { + long countByExample(PmsProductExample example); + + int deleteByExample(PmsProductExample example); + + int deleteByPrimaryKey(Long id); + + int insert(PmsProduct row); + + int insertSelective(PmsProduct row); + + List selectByExampleWithBLOBs(PmsProductExample example); + + List selectByExample(PmsProductExample example); + + PmsProduct selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") PmsProduct row, @Param("example") PmsProductExample example); + + int updateByExampleWithBLOBs(@Param("row") PmsProduct row, @Param("example") PmsProductExample example); + + int updateByExample(@Param("row") PmsProduct row, @Param("example") PmsProductExample example); + + int updateByPrimaryKeySelective(PmsProduct row); + + int updateByPrimaryKeyWithBLOBs(PmsProduct row); + + int updateByPrimaryKey(PmsProduct row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductOperateLogMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductOperateLogMapper.java new file mode 100644 index 000000000..3d9049b08 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductOperateLogMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.PmsProductOperateLog; +import com.macro.mall.model.PmsProductOperateLogExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PmsProductOperateLogMapper { + long countByExample(PmsProductOperateLogExample example); + + int deleteByExample(PmsProductOperateLogExample example); + + int deleteByPrimaryKey(Long id); + + int insert(PmsProductOperateLog row); + + int insertSelective(PmsProductOperateLog row); + + List selectByExample(PmsProductOperateLogExample example); + + PmsProductOperateLog selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") PmsProductOperateLog row, @Param("example") PmsProductOperateLogExample example); + + int updateByExample(@Param("row") PmsProductOperateLog row, @Param("example") PmsProductOperateLogExample example); + + int updateByPrimaryKeySelective(PmsProductOperateLog row); + + int updateByPrimaryKey(PmsProductOperateLog row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductVertifyRecordMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductVertifyRecordMapper.java new file mode 100644 index 000000000..1246a7df6 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductVertifyRecordMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.PmsProductVertifyRecord; +import com.macro.mall.model.PmsProductVertifyRecordExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PmsProductVertifyRecordMapper { + long countByExample(PmsProductVertifyRecordExample example); + + int deleteByExample(PmsProductVertifyRecordExample example); + + int deleteByPrimaryKey(Long id); + + int insert(PmsProductVertifyRecord row); + + int insertSelective(PmsProductVertifyRecord row); + + List selectByExample(PmsProductVertifyRecordExample example); + + PmsProductVertifyRecord selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") PmsProductVertifyRecord row, @Param("example") PmsProductVertifyRecordExample example); + + int updateByExample(@Param("row") PmsProductVertifyRecord row, @Param("example") PmsProductVertifyRecordExample example); + + int updateByPrimaryKeySelective(PmsProductVertifyRecord row); + + int updateByPrimaryKey(PmsProductVertifyRecord row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsSkuStockMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsSkuStockMapper.java new file mode 100644 index 000000000..dc3d47019 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/PmsSkuStockMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.PmsSkuStock; +import com.macro.mall.model.PmsSkuStockExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PmsSkuStockMapper { + long countByExample(PmsSkuStockExample example); + + int deleteByExample(PmsSkuStockExample example); + + int deleteByPrimaryKey(Long id); + + int insert(PmsSkuStock row); + + int insertSelective(PmsSkuStock row); + + List selectByExample(PmsSkuStockExample example); + + PmsSkuStock selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") PmsSkuStock row, @Param("example") PmsSkuStockExample example); + + int updateByExample(@Param("row") PmsSkuStock row, @Param("example") PmsSkuStockExample example); + + int updateByPrimaryKeySelective(PmsSkuStock row); + + int updateByPrimaryKey(PmsSkuStock row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponHistoryMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponHistoryMapper.java new file mode 100644 index 000000000..6dabeae7d --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponHistoryMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.SmsCouponHistory; +import com.macro.mall.model.SmsCouponHistoryExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface SmsCouponHistoryMapper { + long countByExample(SmsCouponHistoryExample example); + + int deleteByExample(SmsCouponHistoryExample example); + + int deleteByPrimaryKey(Long id); + + int insert(SmsCouponHistory row); + + int insertSelective(SmsCouponHistory row); + + List selectByExample(SmsCouponHistoryExample example); + + SmsCouponHistory selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") SmsCouponHistory row, @Param("example") SmsCouponHistoryExample example); + + int updateByExample(@Param("row") SmsCouponHistory row, @Param("example") SmsCouponHistoryExample example); + + int updateByPrimaryKeySelective(SmsCouponHistory row); + + int updateByPrimaryKey(SmsCouponHistory row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponMapper.java new file mode 100644 index 000000000..dda3535bd --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.SmsCoupon; +import com.macro.mall.model.SmsCouponExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface SmsCouponMapper { + long countByExample(SmsCouponExample example); + + int deleteByExample(SmsCouponExample example); + + int deleteByPrimaryKey(Long id); + + int insert(SmsCoupon row); + + int insertSelective(SmsCoupon row); + + List selectByExample(SmsCouponExample example); + + SmsCoupon selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") SmsCoupon row, @Param("example") SmsCouponExample example); + + int updateByExample(@Param("row") SmsCoupon row, @Param("example") SmsCouponExample example); + + int updateByPrimaryKeySelective(SmsCoupon row); + + int updateByPrimaryKey(SmsCoupon row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponProductCategoryRelationMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponProductCategoryRelationMapper.java new file mode 100644 index 000000000..1d3d99e67 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponProductCategoryRelationMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.SmsCouponProductCategoryRelation; +import com.macro.mall.model.SmsCouponProductCategoryRelationExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface SmsCouponProductCategoryRelationMapper { + long countByExample(SmsCouponProductCategoryRelationExample example); + + int deleteByExample(SmsCouponProductCategoryRelationExample example); + + int deleteByPrimaryKey(Long id); + + int insert(SmsCouponProductCategoryRelation row); + + int insertSelective(SmsCouponProductCategoryRelation row); + + List selectByExample(SmsCouponProductCategoryRelationExample example); + + SmsCouponProductCategoryRelation selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") SmsCouponProductCategoryRelation row, @Param("example") SmsCouponProductCategoryRelationExample example); + + int updateByExample(@Param("row") SmsCouponProductCategoryRelation row, @Param("example") SmsCouponProductCategoryRelationExample example); + + int updateByPrimaryKeySelective(SmsCouponProductCategoryRelation row); + + int updateByPrimaryKey(SmsCouponProductCategoryRelation row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponProductRelationMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponProductRelationMapper.java new file mode 100644 index 000000000..967ed0314 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponProductRelationMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.SmsCouponProductRelation; +import com.macro.mall.model.SmsCouponProductRelationExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface SmsCouponProductRelationMapper { + long countByExample(SmsCouponProductRelationExample example); + + int deleteByExample(SmsCouponProductRelationExample example); + + int deleteByPrimaryKey(Long id); + + int insert(SmsCouponProductRelation row); + + int insertSelective(SmsCouponProductRelation row); + + List selectByExample(SmsCouponProductRelationExample example); + + SmsCouponProductRelation selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") SmsCouponProductRelation row, @Param("example") SmsCouponProductRelationExample example); + + int updateByExample(@Param("row") SmsCouponProductRelation row, @Param("example") SmsCouponProductRelationExample example); + + int updateByPrimaryKeySelective(SmsCouponProductRelation row); + + int updateByPrimaryKey(SmsCouponProductRelation row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionLogMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionLogMapper.java new file mode 100644 index 000000000..71395609d --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionLogMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.SmsFlashPromotionLog; +import com.macro.mall.model.SmsFlashPromotionLogExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface SmsFlashPromotionLogMapper { + long countByExample(SmsFlashPromotionLogExample example); + + int deleteByExample(SmsFlashPromotionLogExample example); + + int deleteByPrimaryKey(Integer id); + + int insert(SmsFlashPromotionLog row); + + int insertSelective(SmsFlashPromotionLog row); + + List selectByExample(SmsFlashPromotionLogExample example); + + SmsFlashPromotionLog selectByPrimaryKey(Integer id); + + int updateByExampleSelective(@Param("row") SmsFlashPromotionLog row, @Param("example") SmsFlashPromotionLogExample example); + + int updateByExample(@Param("row") SmsFlashPromotionLog row, @Param("example") SmsFlashPromotionLogExample example); + + int updateByPrimaryKeySelective(SmsFlashPromotionLog row); + + int updateByPrimaryKey(SmsFlashPromotionLog row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionMapper.java new file mode 100644 index 000000000..250123247 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.SmsFlashPromotion; +import com.macro.mall.model.SmsFlashPromotionExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface SmsFlashPromotionMapper { + long countByExample(SmsFlashPromotionExample example); + + int deleteByExample(SmsFlashPromotionExample example); + + int deleteByPrimaryKey(Long id); + + int insert(SmsFlashPromotion row); + + int insertSelective(SmsFlashPromotion row); + + List selectByExample(SmsFlashPromotionExample example); + + SmsFlashPromotion selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") SmsFlashPromotion row, @Param("example") SmsFlashPromotionExample example); + + int updateByExample(@Param("row") SmsFlashPromotion row, @Param("example") SmsFlashPromotionExample example); + + int updateByPrimaryKeySelective(SmsFlashPromotion row); + + int updateByPrimaryKey(SmsFlashPromotion row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionProductRelationMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionProductRelationMapper.java new file mode 100644 index 000000000..78fc8f950 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionProductRelationMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.SmsFlashPromotionProductRelation; +import com.macro.mall.model.SmsFlashPromotionProductRelationExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface SmsFlashPromotionProductRelationMapper { + long countByExample(SmsFlashPromotionProductRelationExample example); + + int deleteByExample(SmsFlashPromotionProductRelationExample example); + + int deleteByPrimaryKey(Long id); + + int insert(SmsFlashPromotionProductRelation row); + + int insertSelective(SmsFlashPromotionProductRelation row); + + List selectByExample(SmsFlashPromotionProductRelationExample example); + + SmsFlashPromotionProductRelation selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") SmsFlashPromotionProductRelation row, @Param("example") SmsFlashPromotionProductRelationExample example); + + int updateByExample(@Param("row") SmsFlashPromotionProductRelation row, @Param("example") SmsFlashPromotionProductRelationExample example); + + int updateByPrimaryKeySelective(SmsFlashPromotionProductRelation row); + + int updateByPrimaryKey(SmsFlashPromotionProductRelation row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionSessionMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionSessionMapper.java new file mode 100644 index 000000000..a939a3182 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionSessionMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.SmsFlashPromotionSession; +import com.macro.mall.model.SmsFlashPromotionSessionExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface SmsFlashPromotionSessionMapper { + long countByExample(SmsFlashPromotionSessionExample example); + + int deleteByExample(SmsFlashPromotionSessionExample example); + + int deleteByPrimaryKey(Long id); + + int insert(SmsFlashPromotionSession row); + + int insertSelective(SmsFlashPromotionSession row); + + List selectByExample(SmsFlashPromotionSessionExample example); + + SmsFlashPromotionSession selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") SmsFlashPromotionSession row, @Param("example") SmsFlashPromotionSessionExample example); + + int updateByExample(@Param("row") SmsFlashPromotionSession row, @Param("example") SmsFlashPromotionSessionExample example); + + int updateByPrimaryKeySelective(SmsFlashPromotionSession row); + + int updateByPrimaryKey(SmsFlashPromotionSession row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeAdvertiseMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeAdvertiseMapper.java new file mode 100644 index 000000000..97a54f7ca --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeAdvertiseMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.SmsHomeAdvertise; +import com.macro.mall.model.SmsHomeAdvertiseExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface SmsHomeAdvertiseMapper { + long countByExample(SmsHomeAdvertiseExample example); + + int deleteByExample(SmsHomeAdvertiseExample example); + + int deleteByPrimaryKey(Long id); + + int insert(SmsHomeAdvertise row); + + int insertSelective(SmsHomeAdvertise row); + + List selectByExample(SmsHomeAdvertiseExample example); + + SmsHomeAdvertise selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") SmsHomeAdvertise row, @Param("example") SmsHomeAdvertiseExample example); + + int updateByExample(@Param("row") SmsHomeAdvertise row, @Param("example") SmsHomeAdvertiseExample example); + + int updateByPrimaryKeySelective(SmsHomeAdvertise row); + + int updateByPrimaryKey(SmsHomeAdvertise row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeBrandMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeBrandMapper.java new file mode 100644 index 000000000..fcaa6ee71 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeBrandMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.SmsHomeBrand; +import com.macro.mall.model.SmsHomeBrandExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface SmsHomeBrandMapper { + long countByExample(SmsHomeBrandExample example); + + int deleteByExample(SmsHomeBrandExample example); + + int deleteByPrimaryKey(Long id); + + int insert(SmsHomeBrand row); + + int insertSelective(SmsHomeBrand row); + + List selectByExample(SmsHomeBrandExample example); + + SmsHomeBrand selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") SmsHomeBrand row, @Param("example") SmsHomeBrandExample example); + + int updateByExample(@Param("row") SmsHomeBrand row, @Param("example") SmsHomeBrandExample example); + + int updateByPrimaryKeySelective(SmsHomeBrand row); + + int updateByPrimaryKey(SmsHomeBrand row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeNewProductMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeNewProductMapper.java new file mode 100644 index 000000000..19fad8d52 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeNewProductMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.SmsHomeNewProduct; +import com.macro.mall.model.SmsHomeNewProductExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface SmsHomeNewProductMapper { + long countByExample(SmsHomeNewProductExample example); + + int deleteByExample(SmsHomeNewProductExample example); + + int deleteByPrimaryKey(Long id); + + int insert(SmsHomeNewProduct row); + + int insertSelective(SmsHomeNewProduct row); + + List selectByExample(SmsHomeNewProductExample example); + + SmsHomeNewProduct selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") SmsHomeNewProduct row, @Param("example") SmsHomeNewProductExample example); + + int updateByExample(@Param("row") SmsHomeNewProduct row, @Param("example") SmsHomeNewProductExample example); + + int updateByPrimaryKeySelective(SmsHomeNewProduct row); + + int updateByPrimaryKey(SmsHomeNewProduct row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeRecommendProductMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeRecommendProductMapper.java new file mode 100644 index 000000000..b4360d8b4 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeRecommendProductMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.SmsHomeRecommendProduct; +import com.macro.mall.model.SmsHomeRecommendProductExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface SmsHomeRecommendProductMapper { + long countByExample(SmsHomeRecommendProductExample example); + + int deleteByExample(SmsHomeRecommendProductExample example); + + int deleteByPrimaryKey(Long id); + + int insert(SmsHomeRecommendProduct row); + + int insertSelective(SmsHomeRecommendProduct row); + + List selectByExample(SmsHomeRecommendProductExample example); + + SmsHomeRecommendProduct selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") SmsHomeRecommendProduct row, @Param("example") SmsHomeRecommendProductExample example); + + int updateByExample(@Param("row") SmsHomeRecommendProduct row, @Param("example") SmsHomeRecommendProductExample example); + + int updateByPrimaryKeySelective(SmsHomeRecommendProduct row); + + int updateByPrimaryKey(SmsHomeRecommendProduct row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeRecommendSubjectMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeRecommendSubjectMapper.java new file mode 100644 index 000000000..a910136d1 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/SmsHomeRecommendSubjectMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.SmsHomeRecommendSubject; +import com.macro.mall.model.SmsHomeRecommendSubjectExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface SmsHomeRecommendSubjectMapper { + long countByExample(SmsHomeRecommendSubjectExample example); + + int deleteByExample(SmsHomeRecommendSubjectExample example); + + int deleteByPrimaryKey(Long id); + + int insert(SmsHomeRecommendSubject row); + + int insertSelective(SmsHomeRecommendSubject row); + + List selectByExample(SmsHomeRecommendSubjectExample example); + + SmsHomeRecommendSubject selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") SmsHomeRecommendSubject row, @Param("example") SmsHomeRecommendSubjectExample example); + + int updateByExample(@Param("row") SmsHomeRecommendSubject row, @Param("example") SmsHomeRecommendSubjectExample example); + + int updateByPrimaryKeySelective(SmsHomeRecommendSubject row); + + int updateByPrimaryKey(SmsHomeRecommendSubject row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsAdminLoginLogMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsAdminLoginLogMapper.java new file mode 100644 index 000000000..d8dfd50a4 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsAdminLoginLogMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsAdminLoginLog; +import com.macro.mall.model.UmsAdminLoginLogExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsAdminLoginLogMapper { + long countByExample(UmsAdminLoginLogExample example); + + int deleteByExample(UmsAdminLoginLogExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsAdminLoginLog row); + + int insertSelective(UmsAdminLoginLog row); + + List selectByExample(UmsAdminLoginLogExample example); + + UmsAdminLoginLog selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsAdminLoginLog row, @Param("example") UmsAdminLoginLogExample example); + + int updateByExample(@Param("row") UmsAdminLoginLog row, @Param("example") UmsAdminLoginLogExample example); + + int updateByPrimaryKeySelective(UmsAdminLoginLog row); + + int updateByPrimaryKey(UmsAdminLoginLog row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsAdminMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsAdminMapper.java new file mode 100644 index 000000000..cb1c8f159 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsAdminMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsAdmin; +import com.macro.mall.model.UmsAdminExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsAdminMapper { + long countByExample(UmsAdminExample example); + + int deleteByExample(UmsAdminExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsAdmin row); + + int insertSelective(UmsAdmin row); + + List selectByExample(UmsAdminExample example); + + UmsAdmin selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsAdmin row, @Param("example") UmsAdminExample example); + + int updateByExample(@Param("row") UmsAdmin row, @Param("example") UmsAdminExample example); + + int updateByPrimaryKeySelective(UmsAdmin row); + + int updateByPrimaryKey(UmsAdmin row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsAdminPermissionRelationMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsAdminPermissionRelationMapper.java new file mode 100644 index 000000000..640be7442 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsAdminPermissionRelationMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsAdminPermissionRelation; +import com.macro.mall.model.UmsAdminPermissionRelationExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsAdminPermissionRelationMapper { + long countByExample(UmsAdminPermissionRelationExample example); + + int deleteByExample(UmsAdminPermissionRelationExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsAdminPermissionRelation row); + + int insertSelective(UmsAdminPermissionRelation row); + + List selectByExample(UmsAdminPermissionRelationExample example); + + UmsAdminPermissionRelation selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsAdminPermissionRelation row, @Param("example") UmsAdminPermissionRelationExample example); + + int updateByExample(@Param("row") UmsAdminPermissionRelation row, @Param("example") UmsAdminPermissionRelationExample example); + + int updateByPrimaryKeySelective(UmsAdminPermissionRelation row); + + int updateByPrimaryKey(UmsAdminPermissionRelation row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsAdminRoleRelationMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsAdminRoleRelationMapper.java new file mode 100644 index 000000000..846de6031 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsAdminRoleRelationMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsAdminRoleRelation; +import com.macro.mall.model.UmsAdminRoleRelationExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsAdminRoleRelationMapper { + long countByExample(UmsAdminRoleRelationExample example); + + int deleteByExample(UmsAdminRoleRelationExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsAdminRoleRelation row); + + int insertSelective(UmsAdminRoleRelation row); + + List selectByExample(UmsAdminRoleRelationExample example); + + UmsAdminRoleRelation selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsAdminRoleRelation row, @Param("example") UmsAdminRoleRelationExample example); + + int updateByExample(@Param("row") UmsAdminRoleRelation row, @Param("example") UmsAdminRoleRelationExample example); + + int updateByPrimaryKeySelective(UmsAdminRoleRelation row); + + int updateByPrimaryKey(UmsAdminRoleRelation row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsGrowthChangeHistoryMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsGrowthChangeHistoryMapper.java new file mode 100644 index 000000000..9a3de70bf --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsGrowthChangeHistoryMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsGrowthChangeHistory; +import com.macro.mall.model.UmsGrowthChangeHistoryExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsGrowthChangeHistoryMapper { + long countByExample(UmsGrowthChangeHistoryExample example); + + int deleteByExample(UmsGrowthChangeHistoryExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsGrowthChangeHistory row); + + int insertSelective(UmsGrowthChangeHistory row); + + List selectByExample(UmsGrowthChangeHistoryExample example); + + UmsGrowthChangeHistory selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsGrowthChangeHistory row, @Param("example") UmsGrowthChangeHistoryExample example); + + int updateByExample(@Param("row") UmsGrowthChangeHistory row, @Param("example") UmsGrowthChangeHistoryExample example); + + int updateByPrimaryKeySelective(UmsGrowthChangeHistory row); + + int updateByPrimaryKey(UmsGrowthChangeHistory row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsIntegrationChangeHistoryMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsIntegrationChangeHistoryMapper.java new file mode 100644 index 000000000..e126a9954 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsIntegrationChangeHistoryMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsIntegrationChangeHistory; +import com.macro.mall.model.UmsIntegrationChangeHistoryExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsIntegrationChangeHistoryMapper { + long countByExample(UmsIntegrationChangeHistoryExample example); + + int deleteByExample(UmsIntegrationChangeHistoryExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsIntegrationChangeHistory row); + + int insertSelective(UmsIntegrationChangeHistory row); + + List selectByExample(UmsIntegrationChangeHistoryExample example); + + UmsIntegrationChangeHistory selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsIntegrationChangeHistory row, @Param("example") UmsIntegrationChangeHistoryExample example); + + int updateByExample(@Param("row") UmsIntegrationChangeHistory row, @Param("example") UmsIntegrationChangeHistoryExample example); + + int updateByPrimaryKeySelective(UmsIntegrationChangeHistory row); + + int updateByPrimaryKey(UmsIntegrationChangeHistory row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsIntegrationConsumeSettingMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsIntegrationConsumeSettingMapper.java new file mode 100644 index 000000000..6c7c5fc55 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsIntegrationConsumeSettingMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsIntegrationConsumeSetting; +import com.macro.mall.model.UmsIntegrationConsumeSettingExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsIntegrationConsumeSettingMapper { + long countByExample(UmsIntegrationConsumeSettingExample example); + + int deleteByExample(UmsIntegrationConsumeSettingExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsIntegrationConsumeSetting row); + + int insertSelective(UmsIntegrationConsumeSetting row); + + List selectByExample(UmsIntegrationConsumeSettingExample example); + + UmsIntegrationConsumeSetting selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsIntegrationConsumeSetting row, @Param("example") UmsIntegrationConsumeSettingExample example); + + int updateByExample(@Param("row") UmsIntegrationConsumeSetting row, @Param("example") UmsIntegrationConsumeSettingExample example); + + int updateByPrimaryKeySelective(UmsIntegrationConsumeSetting row); + + int updateByPrimaryKey(UmsIntegrationConsumeSetting row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberLevelMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberLevelMapper.java new file mode 100644 index 000000000..21a0bce9f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberLevelMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsMemberLevel; +import com.macro.mall.model.UmsMemberLevelExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsMemberLevelMapper { + long countByExample(UmsMemberLevelExample example); + + int deleteByExample(UmsMemberLevelExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsMemberLevel row); + + int insertSelective(UmsMemberLevel row); + + List selectByExample(UmsMemberLevelExample example); + + UmsMemberLevel selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsMemberLevel row, @Param("example") UmsMemberLevelExample example); + + int updateByExample(@Param("row") UmsMemberLevel row, @Param("example") UmsMemberLevelExample example); + + int updateByPrimaryKeySelective(UmsMemberLevel row); + + int updateByPrimaryKey(UmsMemberLevel row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberLoginLogMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberLoginLogMapper.java new file mode 100644 index 000000000..22a81dbcf --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberLoginLogMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsMemberLoginLog; +import com.macro.mall.model.UmsMemberLoginLogExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsMemberLoginLogMapper { + long countByExample(UmsMemberLoginLogExample example); + + int deleteByExample(UmsMemberLoginLogExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsMemberLoginLog row); + + int insertSelective(UmsMemberLoginLog row); + + List selectByExample(UmsMemberLoginLogExample example); + + UmsMemberLoginLog selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsMemberLoginLog row, @Param("example") UmsMemberLoginLogExample example); + + int updateByExample(@Param("row") UmsMemberLoginLog row, @Param("example") UmsMemberLoginLogExample example); + + int updateByPrimaryKeySelective(UmsMemberLoginLog row); + + int updateByPrimaryKey(UmsMemberLoginLog row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberMapper.java new file mode 100644 index 000000000..c950488fe --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsMember; +import com.macro.mall.model.UmsMemberExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsMemberMapper { + long countByExample(UmsMemberExample example); + + int deleteByExample(UmsMemberExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsMember row); + + int insertSelective(UmsMember row); + + List selectByExample(UmsMemberExample example); + + UmsMember selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsMember row, @Param("example") UmsMemberExample example); + + int updateByExample(@Param("row") UmsMember row, @Param("example") UmsMemberExample example); + + int updateByPrimaryKeySelective(UmsMember row); + + int updateByPrimaryKey(UmsMember row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberMemberTagRelationMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberMemberTagRelationMapper.java new file mode 100644 index 000000000..d2acf9ca6 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberMemberTagRelationMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsMemberMemberTagRelation; +import com.macro.mall.model.UmsMemberMemberTagRelationExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsMemberMemberTagRelationMapper { + long countByExample(UmsMemberMemberTagRelationExample example); + + int deleteByExample(UmsMemberMemberTagRelationExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsMemberMemberTagRelation row); + + int insertSelective(UmsMemberMemberTagRelation row); + + List selectByExample(UmsMemberMemberTagRelationExample example); + + UmsMemberMemberTagRelation selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsMemberMemberTagRelation row, @Param("example") UmsMemberMemberTagRelationExample example); + + int updateByExample(@Param("row") UmsMemberMemberTagRelation row, @Param("example") UmsMemberMemberTagRelationExample example); + + int updateByPrimaryKeySelective(UmsMemberMemberTagRelation row); + + int updateByPrimaryKey(UmsMemberMemberTagRelation row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberProductCategoryRelationMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberProductCategoryRelationMapper.java new file mode 100644 index 000000000..692fd7866 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberProductCategoryRelationMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsMemberProductCategoryRelation; +import com.macro.mall.model.UmsMemberProductCategoryRelationExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsMemberProductCategoryRelationMapper { + long countByExample(UmsMemberProductCategoryRelationExample example); + + int deleteByExample(UmsMemberProductCategoryRelationExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsMemberProductCategoryRelation row); + + int insertSelective(UmsMemberProductCategoryRelation row); + + List selectByExample(UmsMemberProductCategoryRelationExample example); + + UmsMemberProductCategoryRelation selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsMemberProductCategoryRelation row, @Param("example") UmsMemberProductCategoryRelationExample example); + + int updateByExample(@Param("row") UmsMemberProductCategoryRelation row, @Param("example") UmsMemberProductCategoryRelationExample example); + + int updateByPrimaryKeySelective(UmsMemberProductCategoryRelation row); + + int updateByPrimaryKey(UmsMemberProductCategoryRelation row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberReceiveAddressMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberReceiveAddressMapper.java new file mode 100644 index 000000000..1b29e5f66 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberReceiveAddressMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsMemberReceiveAddress; +import com.macro.mall.model.UmsMemberReceiveAddressExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsMemberReceiveAddressMapper { + long countByExample(UmsMemberReceiveAddressExample example); + + int deleteByExample(UmsMemberReceiveAddressExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsMemberReceiveAddress row); + + int insertSelective(UmsMemberReceiveAddress row); + + List selectByExample(UmsMemberReceiveAddressExample example); + + UmsMemberReceiveAddress selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsMemberReceiveAddress row, @Param("example") UmsMemberReceiveAddressExample example); + + int updateByExample(@Param("row") UmsMemberReceiveAddress row, @Param("example") UmsMemberReceiveAddressExample example); + + int updateByPrimaryKeySelective(UmsMemberReceiveAddress row); + + int updateByPrimaryKey(UmsMemberReceiveAddress row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberRuleSettingMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberRuleSettingMapper.java new file mode 100644 index 000000000..951b6d41b --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberRuleSettingMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsMemberRuleSetting; +import com.macro.mall.model.UmsMemberRuleSettingExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsMemberRuleSettingMapper { + long countByExample(UmsMemberRuleSettingExample example); + + int deleteByExample(UmsMemberRuleSettingExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsMemberRuleSetting row); + + int insertSelective(UmsMemberRuleSetting row); + + List selectByExample(UmsMemberRuleSettingExample example); + + UmsMemberRuleSetting selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsMemberRuleSetting row, @Param("example") UmsMemberRuleSettingExample example); + + int updateByExample(@Param("row") UmsMemberRuleSetting row, @Param("example") UmsMemberRuleSettingExample example); + + int updateByPrimaryKeySelective(UmsMemberRuleSetting row); + + int updateByPrimaryKey(UmsMemberRuleSetting row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberStatisticsInfoMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberStatisticsInfoMapper.java new file mode 100644 index 000000000..b70d51ec4 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberStatisticsInfoMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsMemberStatisticsInfo; +import com.macro.mall.model.UmsMemberStatisticsInfoExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsMemberStatisticsInfoMapper { + long countByExample(UmsMemberStatisticsInfoExample example); + + int deleteByExample(UmsMemberStatisticsInfoExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsMemberStatisticsInfo row); + + int insertSelective(UmsMemberStatisticsInfo row); + + List selectByExample(UmsMemberStatisticsInfoExample example); + + UmsMemberStatisticsInfo selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsMemberStatisticsInfo row, @Param("example") UmsMemberStatisticsInfoExample example); + + int updateByExample(@Param("row") UmsMemberStatisticsInfo row, @Param("example") UmsMemberStatisticsInfoExample example); + + int updateByPrimaryKeySelective(UmsMemberStatisticsInfo row); + + int updateByPrimaryKey(UmsMemberStatisticsInfo row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberTagMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberTagMapper.java new file mode 100644 index 000000000..6ea43c82e --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberTagMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsMemberTag; +import com.macro.mall.model.UmsMemberTagExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsMemberTagMapper { + long countByExample(UmsMemberTagExample example); + + int deleteByExample(UmsMemberTagExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsMemberTag row); + + int insertSelective(UmsMemberTag row); + + List selectByExample(UmsMemberTagExample example); + + UmsMemberTag selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsMemberTag row, @Param("example") UmsMemberTagExample example); + + int updateByExample(@Param("row") UmsMemberTag row, @Param("example") UmsMemberTagExample example); + + int updateByPrimaryKeySelective(UmsMemberTag row); + + int updateByPrimaryKey(UmsMemberTag row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberTaskMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberTaskMapper.java new file mode 100644 index 000000000..abfb4a308 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMemberTaskMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsMemberTask; +import com.macro.mall.model.UmsMemberTaskExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsMemberTaskMapper { + long countByExample(UmsMemberTaskExample example); + + int deleteByExample(UmsMemberTaskExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsMemberTask row); + + int insertSelective(UmsMemberTask row); + + List selectByExample(UmsMemberTaskExample example); + + UmsMemberTask selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsMemberTask row, @Param("example") UmsMemberTaskExample example); + + int updateByExample(@Param("row") UmsMemberTask row, @Param("example") UmsMemberTaskExample example); + + int updateByPrimaryKeySelective(UmsMemberTask row); + + int updateByPrimaryKey(UmsMemberTask row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMenuMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMenuMapper.java new file mode 100644 index 000000000..389c98388 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsMenuMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsMenu; +import com.macro.mall.model.UmsMenuExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsMenuMapper { + long countByExample(UmsMenuExample example); + + int deleteByExample(UmsMenuExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsMenu row); + + int insertSelective(UmsMenu row); + + List selectByExample(UmsMenuExample example); + + UmsMenu selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsMenu row, @Param("example") UmsMenuExample example); + + int updateByExample(@Param("row") UmsMenu row, @Param("example") UmsMenuExample example); + + int updateByPrimaryKeySelective(UmsMenu row); + + int updateByPrimaryKey(UmsMenu row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsPermissionMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsPermissionMapper.java new file mode 100644 index 000000000..d443ea856 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsPermissionMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsPermission; +import com.macro.mall.model.UmsPermissionExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsPermissionMapper { + long countByExample(UmsPermissionExample example); + + int deleteByExample(UmsPermissionExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsPermission row); + + int insertSelective(UmsPermission row); + + List selectByExample(UmsPermissionExample example); + + UmsPermission selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsPermission row, @Param("example") UmsPermissionExample example); + + int updateByExample(@Param("row") UmsPermission row, @Param("example") UmsPermissionExample example); + + int updateByPrimaryKeySelective(UmsPermission row); + + int updateByPrimaryKey(UmsPermission row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsResourceCategoryMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsResourceCategoryMapper.java new file mode 100644 index 000000000..0bdc51db0 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsResourceCategoryMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsResourceCategory; +import com.macro.mall.model.UmsResourceCategoryExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsResourceCategoryMapper { + long countByExample(UmsResourceCategoryExample example); + + int deleteByExample(UmsResourceCategoryExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsResourceCategory row); + + int insertSelective(UmsResourceCategory row); + + List selectByExample(UmsResourceCategoryExample example); + + UmsResourceCategory selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsResourceCategory row, @Param("example") UmsResourceCategoryExample example); + + int updateByExample(@Param("row") UmsResourceCategory row, @Param("example") UmsResourceCategoryExample example); + + int updateByPrimaryKeySelective(UmsResourceCategory row); + + int updateByPrimaryKey(UmsResourceCategory row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsResourceMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsResourceMapper.java new file mode 100644 index 000000000..c9f585807 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsResourceMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsResource; +import com.macro.mall.model.UmsResourceExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsResourceMapper { + long countByExample(UmsResourceExample example); + + int deleteByExample(UmsResourceExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsResource row); + + int insertSelective(UmsResource row); + + List selectByExample(UmsResourceExample example); + + UmsResource selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsResource row, @Param("example") UmsResourceExample example); + + int updateByExample(@Param("row") UmsResource row, @Param("example") UmsResourceExample example); + + int updateByPrimaryKeySelective(UmsResource row); + + int updateByPrimaryKey(UmsResource row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsRoleMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsRoleMapper.java new file mode 100644 index 000000000..7ce2ff945 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsRoleMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsRole; +import com.macro.mall.model.UmsRoleExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsRoleMapper { + long countByExample(UmsRoleExample example); + + int deleteByExample(UmsRoleExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsRole row); + + int insertSelective(UmsRole row); + + List selectByExample(UmsRoleExample example); + + UmsRole selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsRole row, @Param("example") UmsRoleExample example); + + int updateByExample(@Param("row") UmsRole row, @Param("example") UmsRoleExample example); + + int updateByPrimaryKeySelective(UmsRole row); + + int updateByPrimaryKey(UmsRole row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsRoleMenuRelationMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsRoleMenuRelationMapper.java new file mode 100644 index 000000000..af4b97945 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsRoleMenuRelationMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsRoleMenuRelation; +import com.macro.mall.model.UmsRoleMenuRelationExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsRoleMenuRelationMapper { + long countByExample(UmsRoleMenuRelationExample example); + + int deleteByExample(UmsRoleMenuRelationExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsRoleMenuRelation row); + + int insertSelective(UmsRoleMenuRelation row); + + List selectByExample(UmsRoleMenuRelationExample example); + + UmsRoleMenuRelation selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsRoleMenuRelation row, @Param("example") UmsRoleMenuRelationExample example); + + int updateByExample(@Param("row") UmsRoleMenuRelation row, @Param("example") UmsRoleMenuRelationExample example); + + int updateByPrimaryKeySelective(UmsRoleMenuRelation row); + + int updateByPrimaryKey(UmsRoleMenuRelation row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsRolePermissionRelationMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsRolePermissionRelationMapper.java new file mode 100644 index 000000000..a4ca9a7f4 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsRolePermissionRelationMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsRolePermissionRelation; +import com.macro.mall.model.UmsRolePermissionRelationExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsRolePermissionRelationMapper { + long countByExample(UmsRolePermissionRelationExample example); + + int deleteByExample(UmsRolePermissionRelationExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsRolePermissionRelation row); + + int insertSelective(UmsRolePermissionRelation row); + + List selectByExample(UmsRolePermissionRelationExample example); + + UmsRolePermissionRelation selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsRolePermissionRelation row, @Param("example") UmsRolePermissionRelationExample example); + + int updateByExample(@Param("row") UmsRolePermissionRelation row, @Param("example") UmsRolePermissionRelationExample example); + + int updateByPrimaryKeySelective(UmsRolePermissionRelation row); + + int updateByPrimaryKey(UmsRolePermissionRelation row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsRoleResourceRelationMapper.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsRoleResourceRelationMapper.java new file mode 100644 index 000000000..6b22700e6 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/mapper/UmsRoleResourceRelationMapper.java @@ -0,0 +1,30 @@ +package com.macro.mall.mapper; + +import com.macro.mall.model.UmsRoleResourceRelation; +import com.macro.mall.model.UmsRoleResourceRelationExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UmsRoleResourceRelationMapper { + long countByExample(UmsRoleResourceRelationExample example); + + int deleteByExample(UmsRoleResourceRelationExample example); + + int deleteByPrimaryKey(Long id); + + int insert(UmsRoleResourceRelation row); + + int insertSelective(UmsRoleResourceRelation row); + + List selectByExample(UmsRoleResourceRelationExample example); + + UmsRoleResourceRelation selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("row") UmsRoleResourceRelation row, @Param("example") UmsRoleResourceRelationExample example); + + int updateByExample(@Param("row") UmsRoleResourceRelation row, @Param("example") UmsRoleResourceRelationExample example); + + int updateByPrimaryKeySelective(UmsRoleResourceRelation row); + + int updateByPrimaryKey(UmsRoleResourceRelation row); +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsHelp.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsHelp.java new file mode 100644 index 000000000..b7f375a6c --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsHelp.java @@ -0,0 +1,108 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.util.Date; + +public class CmsHelp implements Serializable { + private Long id; + + private Long categoryId; + + private String icon; + + private String title; + + private Integer showStatus; + + private Date createTime; + + private Integer readCount; + + 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 getIcon() { + return icon; + } + + public void setIcon(String icon) { + this.icon = icon; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public Integer getShowStatus() { + return showStatus; + } + + public void setShowStatus(Integer showStatus) { + this.showStatus = showStatus; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Integer getReadCount() { + return readCount; + } + + public void setReadCount(Integer readCount) { + this.readCount = readCount; + } + + 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(", icon=").append(icon); + sb.append(", title=").append(title); + sb.append(", showStatus=").append(showStatus); + sb.append(", createTime=").append(createTime); + sb.append(", readCount=").append(readCount); + sb.append(", content=").append(content); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsHelpCategory.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsHelpCategory.java new file mode 100644 index 000000000..0a74ca405 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsHelpCategory.java @@ -0,0 +1,87 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class CmsHelpCategory implements Serializable { + private Long id; + + private String name; + + @Schema(title = "分类图标") + private String icon; + + @Schema(title = "专题数量") + private Integer helpCount; + + private Integer showStatus; + + private Integer sort; + + 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 getIcon() { + return icon; + } + + public void setIcon(String icon) { + this.icon = icon; + } + + public Integer getHelpCount() { + return helpCount; + } + + public void setHelpCount(Integer helpCount) { + this.helpCount = helpCount; + } + + public Integer getShowStatus() { + return showStatus; + } + + public void setShowStatus(Integer showStatus) { + this.showStatus = showStatus; + } + + 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(", name=").append(name); + sb.append(", icon=").append(icon); + sb.append(", helpCount=").append(helpCount); + sb.append(", showStatus=").append(showStatus); + sb.append(", sort=").append(sort); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsHelpCategoryExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsHelpCategoryExample.java new file mode 100644 index 000000000..0f97d9d1a --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsHelpCategoryExample.java @@ -0,0 +1,579 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class CmsHelpCategoryExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CmsHelpCategoryExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 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 values) { + addCriterion("icon in", values, "icon"); + return (Criteria) this; + } + + public Criteria andIconNotIn(List 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 andHelpCountIsNull() { + addCriterion("help_count is null"); + return (Criteria) this; + } + + public Criteria andHelpCountIsNotNull() { + addCriterion("help_count is not null"); + return (Criteria) this; + } + + public Criteria andHelpCountEqualTo(Integer value) { + addCriterion("help_count =", value, "helpCount"); + return (Criteria) this; + } + + public Criteria andHelpCountNotEqualTo(Integer value) { + addCriterion("help_count <>", value, "helpCount"); + return (Criteria) this; + } + + public Criteria andHelpCountGreaterThan(Integer value) { + addCriterion("help_count >", value, "helpCount"); + return (Criteria) this; + } + + public Criteria andHelpCountGreaterThanOrEqualTo(Integer value) { + addCriterion("help_count >=", value, "helpCount"); + return (Criteria) this; + } + + public Criteria andHelpCountLessThan(Integer value) { + addCriterion("help_count <", value, "helpCount"); + return (Criteria) this; + } + + public Criteria andHelpCountLessThanOrEqualTo(Integer value) { + addCriterion("help_count <=", value, "helpCount"); + return (Criteria) this; + } + + public Criteria andHelpCountIn(List values) { + addCriterion("help_count in", values, "helpCount"); + return (Criteria) this; + } + + public Criteria andHelpCountNotIn(List values) { + addCriterion("help_count not in", values, "helpCount"); + return (Criteria) this; + } + + public Criteria andHelpCountBetween(Integer value1, Integer value2) { + addCriterion("help_count between", value1, value2, "helpCount"); + return (Criteria) this; + } + + public Criteria andHelpCountNotBetween(Integer value1, Integer value2) { + addCriterion("help_count not between", value1, value2, "helpCount"); + 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 values) { + addCriterion("show_status in", values, "showStatus"); + return (Criteria) this; + } + + public Criteria andShowStatusNotIn(List 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 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsHelpExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsHelpExample.java new file mode 100644 index 000000000..d60579b4a --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsHelpExample.java @@ -0,0 +1,640 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class CmsHelpExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CmsHelpExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 andCategoryIdIsNull() { + addCriterion("category_id is null"); + return (Criteria) this; + } + + public Criteria andCategoryIdIsNotNull() { + addCriterion("category_id is not null"); + return (Criteria) this; + } + + public Criteria andCategoryIdEqualTo(Long value) { + addCriterion("category_id =", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdNotEqualTo(Long value) { + addCriterion("category_id <>", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdGreaterThan(Long value) { + addCriterion("category_id >", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdGreaterThanOrEqualTo(Long value) { + addCriterion("category_id >=", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdLessThan(Long value) { + addCriterion("category_id <", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdLessThanOrEqualTo(Long value) { + addCriterion("category_id <=", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdIn(List values) { + addCriterion("category_id in", values, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdNotIn(List values) { + addCriterion("category_id not in", values, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdBetween(Long value1, Long value2) { + addCriterion("category_id between", value1, value2, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdNotBetween(Long value1, Long value2) { + addCriterion("category_id not between", value1, value2, "categoryId"); + 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 values) { + addCriterion("icon in", values, "icon"); + return (Criteria) this; + } + + public Criteria andIconNotIn(List 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 andTitleIsNull() { + addCriterion("title is null"); + return (Criteria) this; + } + + public Criteria andTitleIsNotNull() { + addCriterion("title is not null"); + return (Criteria) this; + } + + public Criteria andTitleEqualTo(String value) { + addCriterion("title =", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotEqualTo(String value) { + addCriterion("title <>", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleGreaterThan(String value) { + addCriterion("title >", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleGreaterThanOrEqualTo(String value) { + addCriterion("title >=", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLessThan(String value) { + addCriterion("title <", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLessThanOrEqualTo(String value) { + addCriterion("title <=", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLike(String value) { + addCriterion("title like", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotLike(String value) { + addCriterion("title not like", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleIn(List values) { + addCriterion("title in", values, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotIn(List values) { + addCriterion("title not in", values, "title"); + return (Criteria) this; + } + + public Criteria andTitleBetween(String value1, String value2) { + addCriterion("title between", value1, value2, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotBetween(String value1, String value2) { + addCriterion("title not between", value1, value2, "title"); + 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 values) { + addCriterion("show_status in", values, "showStatus"); + return (Criteria) this; + } + + public Criteria andShowStatusNotIn(List 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 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 andReadCountIsNull() { + addCriterion("read_count is null"); + return (Criteria) this; + } + + public Criteria andReadCountIsNotNull() { + addCriterion("read_count is not null"); + return (Criteria) this; + } + + public Criteria andReadCountEqualTo(Integer value) { + addCriterion("read_count =", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountNotEqualTo(Integer value) { + addCriterion("read_count <>", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountGreaterThan(Integer value) { + addCriterion("read_count >", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountGreaterThanOrEqualTo(Integer value) { + addCriterion("read_count >=", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountLessThan(Integer value) { + addCriterion("read_count <", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountLessThanOrEqualTo(Integer value) { + addCriterion("read_count <=", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountIn(List values) { + addCriterion("read_count in", values, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountNotIn(List values) { + addCriterion("read_count not in", values, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountBetween(Integer value1, Integer value2) { + addCriterion("read_count between", value1, value2, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountNotBetween(Integer value1, Integer value2) { + addCriterion("read_count not between", value1, value2, "readCount"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsMemberReport.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsMemberReport.java new file mode 100644 index 000000000..f96a17f91 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsMemberReport.java @@ -0,0 +1,112 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.util.Date; + +public class CmsMemberReport implements Serializable { + private Long id; + + @Schema(title = "举报类型:0->商品评价;1->话题内容;2->用户评论") + private Integer reportType; + + @Schema(title = "举报人") + private String reportMemberName; + + private Date createTime; + + private String reportObject; + + @Schema(title = "举报状态:0->未处理;1->已处理") + private Integer reportStatus; + + @Schema(title = "处理结果: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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsMemberReportExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsMemberReportExample.java new file mode 100644 index 000000000..f2189436f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsMemberReportExample.java @@ -0,0 +1,710 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class CmsMemberReportExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CmsMemberReportExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 andReportTypeIsNull() { + addCriterion("report_type is null"); + return (Criteria) this; + } + + public Criteria andReportTypeIsNotNull() { + addCriterion("report_type is not null"); + return (Criteria) this; + } + + public Criteria andReportTypeEqualTo(Integer value) { + addCriterion("report_type =", value, "reportType"); + return (Criteria) this; + } + + public Criteria andReportTypeNotEqualTo(Integer value) { + addCriterion("report_type <>", value, "reportType"); + return (Criteria) this; + } + + public Criteria andReportTypeGreaterThan(Integer value) { + addCriterion("report_type >", value, "reportType"); + return (Criteria) this; + } + + public Criteria andReportTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("report_type >=", value, "reportType"); + return (Criteria) this; + } + + public Criteria andReportTypeLessThan(Integer value) { + addCriterion("report_type <", value, "reportType"); + return (Criteria) this; + } + + public Criteria andReportTypeLessThanOrEqualTo(Integer value) { + addCriterion("report_type <=", value, "reportType"); + return (Criteria) this; + } + + public Criteria andReportTypeIn(List values) { + addCriterion("report_type in", values, "reportType"); + return (Criteria) this; + } + + public Criteria andReportTypeNotIn(List values) { + addCriterion("report_type not in", values, "reportType"); + return (Criteria) this; + } + + public Criteria andReportTypeBetween(Integer value1, Integer value2) { + addCriterion("report_type between", value1, value2, "reportType"); + return (Criteria) this; + } + + public Criteria andReportTypeNotBetween(Integer value1, Integer value2) { + addCriterion("report_type not between", value1, value2, "reportType"); + return (Criteria) this; + } + + public Criteria andReportMemberNameIsNull() { + addCriterion("report_member_name is null"); + return (Criteria) this; + } + + public Criteria andReportMemberNameIsNotNull() { + addCriterion("report_member_name is not null"); + return (Criteria) this; + } + + public Criteria andReportMemberNameEqualTo(String value) { + addCriterion("report_member_name =", value, "reportMemberName"); + return (Criteria) this; + } + + public Criteria andReportMemberNameNotEqualTo(String value) { + addCriterion("report_member_name <>", value, "reportMemberName"); + return (Criteria) this; + } + + public Criteria andReportMemberNameGreaterThan(String value) { + addCriterion("report_member_name >", value, "reportMemberName"); + return (Criteria) this; + } + + public Criteria andReportMemberNameGreaterThanOrEqualTo(String value) { + addCriterion("report_member_name >=", value, "reportMemberName"); + return (Criteria) this; + } + + public Criteria andReportMemberNameLessThan(String value) { + addCriterion("report_member_name <", value, "reportMemberName"); + return (Criteria) this; + } + + public Criteria andReportMemberNameLessThanOrEqualTo(String value) { + addCriterion("report_member_name <=", value, "reportMemberName"); + return (Criteria) this; + } + + public Criteria andReportMemberNameLike(String value) { + addCriterion("report_member_name like", value, "reportMemberName"); + return (Criteria) this; + } + + public Criteria andReportMemberNameNotLike(String value) { + addCriterion("report_member_name not like", value, "reportMemberName"); + return (Criteria) this; + } + + public Criteria andReportMemberNameIn(List values) { + addCriterion("report_member_name in", values, "reportMemberName"); + return (Criteria) this; + } + + public Criteria andReportMemberNameNotIn(List values) { + addCriterion("report_member_name not in", values, "reportMemberName"); + return (Criteria) this; + } + + public Criteria andReportMemberNameBetween(String value1, String value2) { + addCriterion("report_member_name between", value1, value2, "reportMemberName"); + return (Criteria) this; + } + + public Criteria andReportMemberNameNotBetween(String value1, String value2) { + addCriterion("report_member_name not between", value1, value2, "reportMemberName"); + 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 andReportObjectIsNull() { + addCriterion("report_object is null"); + return (Criteria) this; + } + + public Criteria andReportObjectIsNotNull() { + addCriterion("report_object is not null"); + return (Criteria) this; + } + + public Criteria andReportObjectEqualTo(String value) { + addCriterion("report_object =", value, "reportObject"); + return (Criteria) this; + } + + public Criteria andReportObjectNotEqualTo(String value) { + addCriterion("report_object <>", value, "reportObject"); + return (Criteria) this; + } + + public Criteria andReportObjectGreaterThan(String value) { + addCriterion("report_object >", value, "reportObject"); + return (Criteria) this; + } + + public Criteria andReportObjectGreaterThanOrEqualTo(String value) { + addCriterion("report_object >=", value, "reportObject"); + return (Criteria) this; + } + + public Criteria andReportObjectLessThan(String value) { + addCriterion("report_object <", value, "reportObject"); + return (Criteria) this; + } + + public Criteria andReportObjectLessThanOrEqualTo(String value) { + addCriterion("report_object <=", value, "reportObject"); + return (Criteria) this; + } + + public Criteria andReportObjectLike(String value) { + addCriterion("report_object like", value, "reportObject"); + return (Criteria) this; + } + + public Criteria andReportObjectNotLike(String value) { + addCriterion("report_object not like", value, "reportObject"); + return (Criteria) this; + } + + public Criteria andReportObjectIn(List values) { + addCriterion("report_object in", values, "reportObject"); + return (Criteria) this; + } + + public Criteria andReportObjectNotIn(List values) { + addCriterion("report_object not in", values, "reportObject"); + return (Criteria) this; + } + + public Criteria andReportObjectBetween(String value1, String value2) { + addCriterion("report_object between", value1, value2, "reportObject"); + return (Criteria) this; + } + + public Criteria andReportObjectNotBetween(String value1, String value2) { + addCriterion("report_object not between", value1, value2, "reportObject"); + return (Criteria) this; + } + + public Criteria andReportStatusIsNull() { + addCriterion("report_status is null"); + return (Criteria) this; + } + + public Criteria andReportStatusIsNotNull() { + addCriterion("report_status is not null"); + return (Criteria) this; + } + + public Criteria andReportStatusEqualTo(Integer value) { + addCriterion("report_status =", value, "reportStatus"); + return (Criteria) this; + } + + public Criteria andReportStatusNotEqualTo(Integer value) { + addCriterion("report_status <>", value, "reportStatus"); + return (Criteria) this; + } + + public Criteria andReportStatusGreaterThan(Integer value) { + addCriterion("report_status >", value, "reportStatus"); + return (Criteria) this; + } + + public Criteria andReportStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("report_status >=", value, "reportStatus"); + return (Criteria) this; + } + + public Criteria andReportStatusLessThan(Integer value) { + addCriterion("report_status <", value, "reportStatus"); + return (Criteria) this; + } + + public Criteria andReportStatusLessThanOrEqualTo(Integer value) { + addCriterion("report_status <=", value, "reportStatus"); + return (Criteria) this; + } + + public Criteria andReportStatusIn(List values) { + addCriterion("report_status in", values, "reportStatus"); + return (Criteria) this; + } + + public Criteria andReportStatusNotIn(List values) { + addCriterion("report_status not in", values, "reportStatus"); + return (Criteria) this; + } + + public Criteria andReportStatusBetween(Integer value1, Integer value2) { + addCriterion("report_status between", value1, value2, "reportStatus"); + return (Criteria) this; + } + + public Criteria andReportStatusNotBetween(Integer value1, Integer value2) { + addCriterion("report_status not between", value1, value2, "reportStatus"); + return (Criteria) this; + } + + public Criteria andHandleStatusIsNull() { + addCriterion("handle_status is null"); + return (Criteria) this; + } + + public Criteria andHandleStatusIsNotNull() { + addCriterion("handle_status is not null"); + return (Criteria) this; + } + + public Criteria andHandleStatusEqualTo(Integer value) { + addCriterion("handle_status =", value, "handleStatus"); + return (Criteria) this; + } + + public Criteria andHandleStatusNotEqualTo(Integer value) { + addCriterion("handle_status <>", value, "handleStatus"); + return (Criteria) this; + } + + public Criteria andHandleStatusGreaterThan(Integer value) { + addCriterion("handle_status >", value, "handleStatus"); + return (Criteria) this; + } + + public Criteria andHandleStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("handle_status >=", value, "handleStatus"); + return (Criteria) this; + } + + public Criteria andHandleStatusLessThan(Integer value) { + addCriterion("handle_status <", value, "handleStatus"); + return (Criteria) this; + } + + public Criteria andHandleStatusLessThanOrEqualTo(Integer value) { + addCriterion("handle_status <=", value, "handleStatus"); + return (Criteria) this; + } + + public Criteria andHandleStatusIn(List values) { + addCriterion("handle_status in", values, "handleStatus"); + return (Criteria) this; + } + + public Criteria andHandleStatusNotIn(List values) { + addCriterion("handle_status not in", values, "handleStatus"); + return (Criteria) this; + } + + public Criteria andHandleStatusBetween(Integer value1, Integer value2) { + addCriterion("handle_status between", value1, value2, "handleStatus"); + return (Criteria) this; + } + + public Criteria andHandleStatusNotBetween(Integer value1, Integer value2) { + addCriterion("handle_status not between", value1, value2, "handleStatus"); + 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 values) { + addCriterion("note in", values, "note"); + return (Criteria) this; + } + + public Criteria andNoteNotIn(List 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 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsPrefrenceArea.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsPrefrenceArea.java new file mode 100644 index 000000000..3448a2a15 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsPrefrenceArea.java @@ -0,0 +1,86 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class CmsPrefrenceArea implements Serializable { + private Long id; + + private String name; + + private String subTitle; + + private Integer sort; + + private Integer showStatus; + + @Schema(title = "展示图片") + private byte[] pic; + + 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 getSubTitle() { + return subTitle; + } + + public void setSubTitle(String subTitle) { + this.subTitle = subTitle; + } + + public Integer getSort() { + return sort; + } + + public void setSort(Integer sort) { + this.sort = sort; + } + + public Integer getShowStatus() { + return showStatus; + } + + public void setShowStatus(Integer showStatus) { + this.showStatus = showStatus; + } + + public byte[] getPic() { + return pic; + } + + public void setPic(byte[] pic) { + this.pic = pic; + } + + @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(", subTitle=").append(subTitle); + sb.append(", sort=").append(sort); + sb.append(", showStatus=").append(showStatus); + sb.append(", pic=").append(pic); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsPrefrenceAreaExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsPrefrenceAreaExample.java new file mode 100644 index 000000000..92b11eaa2 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsPrefrenceAreaExample.java @@ -0,0 +1,519 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class CmsPrefrenceAreaExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CmsPrefrenceAreaExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 andSubTitleIsNull() { + addCriterion("sub_title is null"); + return (Criteria) this; + } + + public Criteria andSubTitleIsNotNull() { + addCriterion("sub_title is not null"); + return (Criteria) this; + } + + public Criteria andSubTitleEqualTo(String value) { + addCriterion("sub_title =", value, "subTitle"); + return (Criteria) this; + } + + public Criteria andSubTitleNotEqualTo(String value) { + addCriterion("sub_title <>", value, "subTitle"); + return (Criteria) this; + } + + public Criteria andSubTitleGreaterThan(String value) { + addCriterion("sub_title >", value, "subTitle"); + return (Criteria) this; + } + + public Criteria andSubTitleGreaterThanOrEqualTo(String value) { + addCriterion("sub_title >=", value, "subTitle"); + return (Criteria) this; + } + + public Criteria andSubTitleLessThan(String value) { + addCriterion("sub_title <", value, "subTitle"); + return (Criteria) this; + } + + public Criteria andSubTitleLessThanOrEqualTo(String value) { + addCriterion("sub_title <=", value, "subTitle"); + return (Criteria) this; + } + + public Criteria andSubTitleLike(String value) { + addCriterion("sub_title like", value, "subTitle"); + return (Criteria) this; + } + + public Criteria andSubTitleNotLike(String value) { + addCriterion("sub_title not like", value, "subTitle"); + return (Criteria) this; + } + + public Criteria andSubTitleIn(List values) { + addCriterion("sub_title in", values, "subTitle"); + return (Criteria) this; + } + + public Criteria andSubTitleNotIn(List values) { + addCriterion("sub_title not in", values, "subTitle"); + return (Criteria) this; + } + + public Criteria andSubTitleBetween(String value1, String value2) { + addCriterion("sub_title between", value1, value2, "subTitle"); + return (Criteria) this; + } + + public Criteria andSubTitleNotBetween(String value1, String value2) { + addCriterion("sub_title not between", value1, value2, "subTitle"); + 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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 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 values) { + addCriterion("show_status in", values, "showStatus"); + return (Criteria) this; + } + + public Criteria andShowStatusNotIn(List 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 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsPrefrenceAreaProductRelation.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsPrefrenceAreaProductRelation.java new file mode 100644 index 000000000..bf37d79b2 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsPrefrenceAreaProductRelation.java @@ -0,0 +1,52 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class CmsPrefrenceAreaProductRelation implements Serializable { + private Long id; + + private Long prefrenceAreaId; + + private Long productId; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getPrefrenceAreaId() { + return prefrenceAreaId; + } + + public void setPrefrenceAreaId(Long prefrenceAreaId) { + this.prefrenceAreaId = prefrenceAreaId; + } + + 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(", prefrenceAreaId=").append(prefrenceAreaId); + sb.append(", productId=").append(productId); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsPrefrenceAreaProductRelationExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsPrefrenceAreaProductRelationExample.java new file mode 100644 index 000000000..a3ad81c2c --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsPrefrenceAreaProductRelationExample.java @@ -0,0 +1,379 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class CmsPrefrenceAreaProductRelationExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CmsPrefrenceAreaProductRelationExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 andPrefrenceAreaIdIsNull() { + addCriterion("prefrence_area_id is null"); + return (Criteria) this; + } + + public Criteria andPrefrenceAreaIdIsNotNull() { + addCriterion("prefrence_area_id is not null"); + return (Criteria) this; + } + + public Criteria andPrefrenceAreaIdEqualTo(Long value) { + addCriterion("prefrence_area_id =", value, "prefrenceAreaId"); + return (Criteria) this; + } + + public Criteria andPrefrenceAreaIdNotEqualTo(Long value) { + addCriterion("prefrence_area_id <>", value, "prefrenceAreaId"); + return (Criteria) this; + } + + public Criteria andPrefrenceAreaIdGreaterThan(Long value) { + addCriterion("prefrence_area_id >", value, "prefrenceAreaId"); + return (Criteria) this; + } + + public Criteria andPrefrenceAreaIdGreaterThanOrEqualTo(Long value) { + addCriterion("prefrence_area_id >=", value, "prefrenceAreaId"); + return (Criteria) this; + } + + public Criteria andPrefrenceAreaIdLessThan(Long value) { + addCriterion("prefrence_area_id <", value, "prefrenceAreaId"); + return (Criteria) this; + } + + public Criteria andPrefrenceAreaIdLessThanOrEqualTo(Long value) { + addCriterion("prefrence_area_id <=", value, "prefrenceAreaId"); + return (Criteria) this; + } + + public Criteria andPrefrenceAreaIdIn(List values) { + addCriterion("prefrence_area_id in", values, "prefrenceAreaId"); + return (Criteria) this; + } + + public Criteria andPrefrenceAreaIdNotIn(List values) { + addCriterion("prefrence_area_id not in", values, "prefrenceAreaId"); + return (Criteria) this; + } + + public Criteria andPrefrenceAreaIdBetween(Long value1, Long value2) { + addCriterion("prefrence_area_id between", value1, value2, "prefrenceAreaId"); + return (Criteria) this; + } + + public Criteria andPrefrenceAreaIdNotBetween(Long value1, Long value2) { + addCriterion("prefrence_area_id not between", value1, value2, "prefrenceAreaId"); + 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 values) { + addCriterion("product_id in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotIn(List 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 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubject.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubject.java new file mode 100644 index 000000000..4f9d62302 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubject.java @@ -0,0 +1,202 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.util.Date; + +public class CmsSubject implements Serializable { + private Long id; + + private Long categoryId; + + private String title; + + @Schema(title = "专题主图") + private String pic; + + @Schema(title = "关联产品数量") + private Integer productCount; + + private Integer recommendStatus; + + private Date createTime; + + private Integer collectCount; + + private Integer readCount; + + private Integer commentCount; + + @Schema(title = "画册图片用逗号分割") + private String albumPics; + + private String description; + + @Schema(title = "显示状态:0->不显示;1->显示") + private Integer showStatus; + + @Schema(title = "转发数") + private Integer forwardCount; + + @Schema(title = "专题分类名称") + private String categoryName; + + 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 getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getPic() { + return pic; + } + + public void setPic(String pic) { + this.pic = pic; + } + + public Integer getProductCount() { + return productCount; + } + + public void setProductCount(Integer productCount) { + this.productCount = productCount; + } + + public Integer getRecommendStatus() { + return recommendStatus; + } + + public void setRecommendStatus(Integer recommendStatus) { + this.recommendStatus = recommendStatus; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Integer getCollectCount() { + return collectCount; + } + + public void setCollectCount(Integer collectCount) { + this.collectCount = collectCount; + } + + public Integer getReadCount() { + return readCount; + } + + public void setReadCount(Integer readCount) { + this.readCount = readCount; + } + + public Integer getCommentCount() { + return commentCount; + } + + public void setCommentCount(Integer commentCount) { + this.commentCount = commentCount; + } + + public String getAlbumPics() { + return albumPics; + } + + public void setAlbumPics(String albumPics) { + this.albumPics = albumPics; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getShowStatus() { + return showStatus; + } + + public void setShowStatus(Integer showStatus) { + this.showStatus = showStatus; + } + + public Integer getForwardCount() { + return forwardCount; + } + + public void setForwardCount(Integer forwardCount) { + this.forwardCount = forwardCount; + } + + public String getCategoryName() { + return categoryName; + } + + public void setCategoryName(String categoryName) { + this.categoryName = categoryName; + } + + 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(", title=").append(title); + sb.append(", pic=").append(pic); + sb.append(", productCount=").append(productCount); + sb.append(", recommendStatus=").append(recommendStatus); + sb.append(", createTime=").append(createTime); + sb.append(", collectCount=").append(collectCount); + sb.append(", readCount=").append(readCount); + sb.append(", commentCount=").append(commentCount); + sb.append(", albumPics=").append(albumPics); + sb.append(", description=").append(description); + sb.append(", showStatus=").append(showStatus); + sb.append(", forwardCount=").append(forwardCount); + sb.append(", categoryName=").append(categoryName); + sb.append(", content=").append(content); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectCategory.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectCategory.java new file mode 100644 index 000000000..916484db8 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectCategory.java @@ -0,0 +1,87 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class CmsSubjectCategory implements Serializable { + private Long id; + + private String name; + + @Schema(title = "分类图标") + private String icon; + + @Schema(title = "专题数量") + private Integer subjectCount; + + private Integer showStatus; + + private Integer sort; + + 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 getIcon() { + return icon; + } + + public void setIcon(String icon) { + this.icon = icon; + } + + public Integer getSubjectCount() { + return subjectCount; + } + + public void setSubjectCount(Integer subjectCount) { + this.subjectCount = subjectCount; + } + + public Integer getShowStatus() { + return showStatus; + } + + public void setShowStatus(Integer showStatus) { + this.showStatus = showStatus; + } + + 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(", name=").append(name); + sb.append(", icon=").append(icon); + sb.append(", subjectCount=").append(subjectCount); + sb.append(", showStatus=").append(showStatus); + sb.append(", sort=").append(sort); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectCategoryExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectCategoryExample.java new file mode 100644 index 000000000..697fec075 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectCategoryExample.java @@ -0,0 +1,579 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class CmsSubjectCategoryExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CmsSubjectCategoryExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 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 values) { + addCriterion("icon in", values, "icon"); + return (Criteria) this; + } + + public Criteria andIconNotIn(List 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 andSubjectCountIsNull() { + addCriterion("subject_count is null"); + return (Criteria) this; + } + + public Criteria andSubjectCountIsNotNull() { + addCriterion("subject_count is not null"); + return (Criteria) this; + } + + public Criteria andSubjectCountEqualTo(Integer value) { + addCriterion("subject_count =", value, "subjectCount"); + return (Criteria) this; + } + + public Criteria andSubjectCountNotEqualTo(Integer value) { + addCriterion("subject_count <>", value, "subjectCount"); + return (Criteria) this; + } + + public Criteria andSubjectCountGreaterThan(Integer value) { + addCriterion("subject_count >", value, "subjectCount"); + return (Criteria) this; + } + + public Criteria andSubjectCountGreaterThanOrEqualTo(Integer value) { + addCriterion("subject_count >=", value, "subjectCount"); + return (Criteria) this; + } + + public Criteria andSubjectCountLessThan(Integer value) { + addCriterion("subject_count <", value, "subjectCount"); + return (Criteria) this; + } + + public Criteria andSubjectCountLessThanOrEqualTo(Integer value) { + addCriterion("subject_count <=", value, "subjectCount"); + return (Criteria) this; + } + + public Criteria andSubjectCountIn(List values) { + addCriterion("subject_count in", values, "subjectCount"); + return (Criteria) this; + } + + public Criteria andSubjectCountNotIn(List values) { + addCriterion("subject_count not in", values, "subjectCount"); + return (Criteria) this; + } + + public Criteria andSubjectCountBetween(Integer value1, Integer value2) { + addCriterion("subject_count between", value1, value2, "subjectCount"); + return (Criteria) this; + } + + public Criteria andSubjectCountNotBetween(Integer value1, Integer value2) { + addCriterion("subject_count not between", value1, value2, "subjectCount"); + 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 values) { + addCriterion("show_status in", values, "showStatus"); + return (Criteria) this; + } + + public Criteria andShowStatusNotIn(List 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 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectComment.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectComment.java new file mode 100644 index 000000000..d7ea0dfcb --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectComment.java @@ -0,0 +1,97 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectCommentExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectCommentExample.java new file mode 100644 index 000000000..bee2327e5 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectCommentExample.java @@ -0,0 +1,650 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class CmsSubjectCommentExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CmsSubjectCommentExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("subject_id in", values, "subjectId"); + return (Criteria) this; + } + + public Criteria andSubjectIdNotIn(List 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 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 values) { + addCriterion("member_nick_name in", values, "memberNickName"); + return (Criteria) this; + } + + public Criteria andMemberNickNameNotIn(List 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 values) { + addCriterion("member_icon in", values, "memberIcon"); + return (Criteria) this; + } + + public Criteria andMemberIconNotIn(List 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 values) { + addCriterion("content in", values, "content"); + return (Criteria) this; + } + + public Criteria andContentNotIn(List 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 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 values) { + addCriterion("show_status in", values, "showStatus"); + return (Criteria) this; + } + + public Criteria andShowStatusNotIn(List 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 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectExample.java new file mode 100644 index 000000000..62e2333df --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectExample.java @@ -0,0 +1,1150 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class CmsSubjectExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CmsSubjectExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 andCategoryIdIsNull() { + addCriterion("category_id is null"); + return (Criteria) this; + } + + public Criteria andCategoryIdIsNotNull() { + addCriterion("category_id is not null"); + return (Criteria) this; + } + + public Criteria andCategoryIdEqualTo(Long value) { + addCriterion("category_id =", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdNotEqualTo(Long value) { + addCriterion("category_id <>", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdGreaterThan(Long value) { + addCriterion("category_id >", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdGreaterThanOrEqualTo(Long value) { + addCriterion("category_id >=", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdLessThan(Long value) { + addCriterion("category_id <", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdLessThanOrEqualTo(Long value) { + addCriterion("category_id <=", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdIn(List values) { + addCriterion("category_id in", values, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdNotIn(List values) { + addCriterion("category_id not in", values, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdBetween(Long value1, Long value2) { + addCriterion("category_id between", value1, value2, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdNotBetween(Long value1, Long value2) { + addCriterion("category_id not between", value1, value2, "categoryId"); + return (Criteria) this; + } + + public Criteria andTitleIsNull() { + addCriterion("title is null"); + return (Criteria) this; + } + + public Criteria andTitleIsNotNull() { + addCriterion("title is not null"); + return (Criteria) this; + } + + public Criteria andTitleEqualTo(String value) { + addCriterion("title =", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotEqualTo(String value) { + addCriterion("title <>", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleGreaterThan(String value) { + addCriterion("title >", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleGreaterThanOrEqualTo(String value) { + addCriterion("title >=", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLessThan(String value) { + addCriterion("title <", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLessThanOrEqualTo(String value) { + addCriterion("title <=", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLike(String value) { + addCriterion("title like", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotLike(String value) { + addCriterion("title not like", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleIn(List values) { + addCriterion("title in", values, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotIn(List values) { + addCriterion("title not in", values, "title"); + return (Criteria) this; + } + + public Criteria andTitleBetween(String value1, String value2) { + addCriterion("title between", value1, value2, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotBetween(String value1, String value2) { + addCriterion("title not between", value1, value2, "title"); + 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 values) { + addCriterion("pic in", values, "pic"); + return (Criteria) this; + } + + public Criteria andPicNotIn(List 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 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 values) { + addCriterion("product_count in", values, "productCount"); + return (Criteria) this; + } + + public Criteria andProductCountNotIn(List 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 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 values) { + addCriterion("recommend_status in", values, "recommendStatus"); + return (Criteria) this; + } + + public Criteria andRecommendStatusNotIn(List 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 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 andCollectCountIsNull() { + addCriterion("collect_count is null"); + return (Criteria) this; + } + + public Criteria andCollectCountIsNotNull() { + addCriterion("collect_count is not null"); + return (Criteria) this; + } + + public Criteria andCollectCountEqualTo(Integer value) { + addCriterion("collect_count =", value, "collectCount"); + return (Criteria) this; + } + + public Criteria andCollectCountNotEqualTo(Integer value) { + addCriterion("collect_count <>", value, "collectCount"); + return (Criteria) this; + } + + public Criteria andCollectCountGreaterThan(Integer value) { + addCriterion("collect_count >", value, "collectCount"); + return (Criteria) this; + } + + public Criteria andCollectCountGreaterThanOrEqualTo(Integer value) { + addCriterion("collect_count >=", value, "collectCount"); + return (Criteria) this; + } + + public Criteria andCollectCountLessThan(Integer value) { + addCriterion("collect_count <", value, "collectCount"); + return (Criteria) this; + } + + public Criteria andCollectCountLessThanOrEqualTo(Integer value) { + addCriterion("collect_count <=", value, "collectCount"); + return (Criteria) this; + } + + public Criteria andCollectCountIn(List values) { + addCriterion("collect_count in", values, "collectCount"); + return (Criteria) this; + } + + public Criteria andCollectCountNotIn(List values) { + addCriterion("collect_count not in", values, "collectCount"); + return (Criteria) this; + } + + public Criteria andCollectCountBetween(Integer value1, Integer value2) { + addCriterion("collect_count between", value1, value2, "collectCount"); + return (Criteria) this; + } + + public Criteria andCollectCountNotBetween(Integer value1, Integer value2) { + addCriterion("collect_count not between", value1, value2, "collectCount"); + return (Criteria) this; + } + + public Criteria andReadCountIsNull() { + addCriterion("read_count is null"); + return (Criteria) this; + } + + public Criteria andReadCountIsNotNull() { + addCriterion("read_count is not null"); + return (Criteria) this; + } + + public Criteria andReadCountEqualTo(Integer value) { + addCriterion("read_count =", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountNotEqualTo(Integer value) { + addCriterion("read_count <>", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountGreaterThan(Integer value) { + addCriterion("read_count >", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountGreaterThanOrEqualTo(Integer value) { + addCriterion("read_count >=", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountLessThan(Integer value) { + addCriterion("read_count <", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountLessThanOrEqualTo(Integer value) { + addCriterion("read_count <=", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountIn(List values) { + addCriterion("read_count in", values, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountNotIn(List values) { + addCriterion("read_count not in", values, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountBetween(Integer value1, Integer value2) { + addCriterion("read_count between", value1, value2, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountNotBetween(Integer value1, Integer value2) { + addCriterion("read_count not between", value1, value2, "readCount"); + return (Criteria) this; + } + + public Criteria andCommentCountIsNull() { + addCriterion("comment_count is null"); + return (Criteria) this; + } + + public Criteria andCommentCountIsNotNull() { + addCriterion("comment_count is not null"); + return (Criteria) this; + } + + public Criteria andCommentCountEqualTo(Integer value) { + addCriterion("comment_count =", value, "commentCount"); + return (Criteria) this; + } + + public Criteria andCommentCountNotEqualTo(Integer value) { + addCriterion("comment_count <>", value, "commentCount"); + return (Criteria) this; + } + + public Criteria andCommentCountGreaterThan(Integer value) { + addCriterion("comment_count >", value, "commentCount"); + return (Criteria) this; + } + + public Criteria andCommentCountGreaterThanOrEqualTo(Integer value) { + addCriterion("comment_count >=", value, "commentCount"); + return (Criteria) this; + } + + public Criteria andCommentCountLessThan(Integer value) { + addCriterion("comment_count <", value, "commentCount"); + return (Criteria) this; + } + + public Criteria andCommentCountLessThanOrEqualTo(Integer value) { + addCriterion("comment_count <=", value, "commentCount"); + return (Criteria) this; + } + + public Criteria andCommentCountIn(List values) { + addCriterion("comment_count in", values, "commentCount"); + return (Criteria) this; + } + + public Criteria andCommentCountNotIn(List values) { + addCriterion("comment_count not in", values, "commentCount"); + return (Criteria) this; + } + + public Criteria andCommentCountBetween(Integer value1, Integer value2) { + addCriterion("comment_count between", value1, value2, "commentCount"); + return (Criteria) this; + } + + public Criteria andCommentCountNotBetween(Integer value1, Integer value2) { + addCriterion("comment_count not between", value1, value2, "commentCount"); + return (Criteria) this; + } + + public Criteria andAlbumPicsIsNull() { + addCriterion("album_pics is null"); + return (Criteria) this; + } + + public Criteria andAlbumPicsIsNotNull() { + addCriterion("album_pics is not null"); + return (Criteria) this; + } + + public Criteria andAlbumPicsEqualTo(String value) { + addCriterion("album_pics =", value, "albumPics"); + return (Criteria) this; + } + + public Criteria andAlbumPicsNotEqualTo(String value) { + addCriterion("album_pics <>", value, "albumPics"); + return (Criteria) this; + } + + public Criteria andAlbumPicsGreaterThan(String value) { + addCriterion("album_pics >", value, "albumPics"); + return (Criteria) this; + } + + public Criteria andAlbumPicsGreaterThanOrEqualTo(String value) { + addCriterion("album_pics >=", value, "albumPics"); + return (Criteria) this; + } + + public Criteria andAlbumPicsLessThan(String value) { + addCriterion("album_pics <", value, "albumPics"); + return (Criteria) this; + } + + public Criteria andAlbumPicsLessThanOrEqualTo(String value) { + addCriterion("album_pics <=", value, "albumPics"); + return (Criteria) this; + } + + public Criteria andAlbumPicsLike(String value) { + addCriterion("album_pics like", value, "albumPics"); + return (Criteria) this; + } + + public Criteria andAlbumPicsNotLike(String value) { + addCriterion("album_pics not like", value, "albumPics"); + return (Criteria) this; + } + + public Criteria andAlbumPicsIn(List values) { + addCriterion("album_pics in", values, "albumPics"); + return (Criteria) this; + } + + public Criteria andAlbumPicsNotIn(List values) { + addCriterion("album_pics not in", values, "albumPics"); + return (Criteria) this; + } + + public Criteria andAlbumPicsBetween(String value1, String value2) { + addCriterion("album_pics between", value1, value2, "albumPics"); + return (Criteria) this; + } + + public Criteria andAlbumPicsNotBetween(String value1, String value2) { + addCriterion("album_pics not between", value1, value2, "albumPics"); + 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 values) { + addCriterion("description in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotIn(List 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 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 values) { + addCriterion("show_status in", values, "showStatus"); + return (Criteria) this; + } + + public Criteria andShowStatusNotIn(List 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 andForwardCountIsNull() { + addCriterion("forward_count is null"); + return (Criteria) this; + } + + public Criteria andForwardCountIsNotNull() { + addCriterion("forward_count is not null"); + return (Criteria) this; + } + + public Criteria andForwardCountEqualTo(Integer value) { + addCriterion("forward_count =", value, "forwardCount"); + return (Criteria) this; + } + + public Criteria andForwardCountNotEqualTo(Integer value) { + addCriterion("forward_count <>", value, "forwardCount"); + return (Criteria) this; + } + + public Criteria andForwardCountGreaterThan(Integer value) { + addCriterion("forward_count >", value, "forwardCount"); + return (Criteria) this; + } + + public Criteria andForwardCountGreaterThanOrEqualTo(Integer value) { + addCriterion("forward_count >=", value, "forwardCount"); + return (Criteria) this; + } + + public Criteria andForwardCountLessThan(Integer value) { + addCriterion("forward_count <", value, "forwardCount"); + return (Criteria) this; + } + + public Criteria andForwardCountLessThanOrEqualTo(Integer value) { + addCriterion("forward_count <=", value, "forwardCount"); + return (Criteria) this; + } + + public Criteria andForwardCountIn(List values) { + addCriterion("forward_count in", values, "forwardCount"); + return (Criteria) this; + } + + public Criteria andForwardCountNotIn(List values) { + addCriterion("forward_count not in", values, "forwardCount"); + return (Criteria) this; + } + + public Criteria andForwardCountBetween(Integer value1, Integer value2) { + addCriterion("forward_count between", value1, value2, "forwardCount"); + return (Criteria) this; + } + + public Criteria andForwardCountNotBetween(Integer value1, Integer value2) { + addCriterion("forward_count not between", value1, value2, "forwardCount"); + return (Criteria) this; + } + + public Criteria andCategoryNameIsNull() { + addCriterion("category_name is null"); + return (Criteria) this; + } + + public Criteria andCategoryNameIsNotNull() { + addCriterion("category_name is not null"); + return (Criteria) this; + } + + public Criteria andCategoryNameEqualTo(String value) { + addCriterion("category_name =", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameNotEqualTo(String value) { + addCriterion("category_name <>", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameGreaterThan(String value) { + addCriterion("category_name >", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameGreaterThanOrEqualTo(String value) { + addCriterion("category_name >=", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameLessThan(String value) { + addCriterion("category_name <", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameLessThanOrEqualTo(String value) { + addCriterion("category_name <=", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameLike(String value) { + addCriterion("category_name like", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameNotLike(String value) { + addCriterion("category_name not like", value, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameIn(List values) { + addCriterion("category_name in", values, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameNotIn(List values) { + addCriterion("category_name not in", values, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameBetween(String value1, String value2) { + addCriterion("category_name between", value1, value2, "categoryName"); + return (Criteria) this; + } + + public Criteria andCategoryNameNotBetween(String value1, String value2) { + addCriterion("category_name not between", value1, value2, "categoryName"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectProductRelation.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectProductRelation.java new file mode 100644 index 000000000..88ac2c393 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectProductRelation.java @@ -0,0 +1,52 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectProductRelationExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectProductRelationExample.java new file mode 100644 index 000000000..d57412529 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsSubjectProductRelationExample.java @@ -0,0 +1,379 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class CmsSubjectProductRelationExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CmsSubjectProductRelationExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("subject_id in", values, "subjectId"); + return (Criteria) this; + } + + public Criteria andSubjectIdNotIn(List 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 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 values) { + addCriterion("product_id in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotIn(List 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 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsTopic.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsTopic.java new file mode 100644 index 000000000..b27a177d9 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsTopic.java @@ -0,0 +1,157 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +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; + + @Schema(title = "参与人数") + private Integer attendCount; + + @Schema(title = "关注人数") + private Integer attentionCount; + + private Integer readCount; + + @Schema(title = "奖品名称") + private String awardName; + + @Schema(title = "参与方式") + private String attendType; + + @Schema(title = "话题内容") + 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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsTopicCategory.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsTopicCategory.java new file mode 100644 index 000000000..a332439b9 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsTopicCategory.java @@ -0,0 +1,87 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class CmsTopicCategory implements Serializable { + private Long id; + + private String name; + + @Schema(title = "分类图标") + private String icon; + + @Schema(title = "专题数量") + private Integer subjectCount; + + private Integer showStatus; + + private Integer sort; + + 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 getIcon() { + return icon; + } + + public void setIcon(String icon) { + this.icon = icon; + } + + public Integer getSubjectCount() { + return subjectCount; + } + + public void setSubjectCount(Integer subjectCount) { + this.subjectCount = subjectCount; + } + + public Integer getShowStatus() { + return showStatus; + } + + public void setShowStatus(Integer showStatus) { + this.showStatus = showStatus; + } + + 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(", name=").append(name); + sb.append(", icon=").append(icon); + sb.append(", subjectCount=").append(subjectCount); + sb.append(", showStatus=").append(showStatus); + sb.append(", sort=").append(sort); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsTopicCategoryExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsTopicCategoryExample.java new file mode 100644 index 000000000..59ac1f2d5 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsTopicCategoryExample.java @@ -0,0 +1,579 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class CmsTopicCategoryExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CmsTopicCategoryExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 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 values) { + addCriterion("icon in", values, "icon"); + return (Criteria) this; + } + + public Criteria andIconNotIn(List 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 andSubjectCountIsNull() { + addCriterion("subject_count is null"); + return (Criteria) this; + } + + public Criteria andSubjectCountIsNotNull() { + addCriterion("subject_count is not null"); + return (Criteria) this; + } + + public Criteria andSubjectCountEqualTo(Integer value) { + addCriterion("subject_count =", value, "subjectCount"); + return (Criteria) this; + } + + public Criteria andSubjectCountNotEqualTo(Integer value) { + addCriterion("subject_count <>", value, "subjectCount"); + return (Criteria) this; + } + + public Criteria andSubjectCountGreaterThan(Integer value) { + addCriterion("subject_count >", value, "subjectCount"); + return (Criteria) this; + } + + public Criteria andSubjectCountGreaterThanOrEqualTo(Integer value) { + addCriterion("subject_count >=", value, "subjectCount"); + return (Criteria) this; + } + + public Criteria andSubjectCountLessThan(Integer value) { + addCriterion("subject_count <", value, "subjectCount"); + return (Criteria) this; + } + + public Criteria andSubjectCountLessThanOrEqualTo(Integer value) { + addCriterion("subject_count <=", value, "subjectCount"); + return (Criteria) this; + } + + public Criteria andSubjectCountIn(List values) { + addCriterion("subject_count in", values, "subjectCount"); + return (Criteria) this; + } + + public Criteria andSubjectCountNotIn(List values) { + addCriterion("subject_count not in", values, "subjectCount"); + return (Criteria) this; + } + + public Criteria andSubjectCountBetween(Integer value1, Integer value2) { + addCriterion("subject_count between", value1, value2, "subjectCount"); + return (Criteria) this; + } + + public Criteria andSubjectCountNotBetween(Integer value1, Integer value2) { + addCriterion("subject_count not between", value1, value2, "subjectCount"); + 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 values) { + addCriterion("show_status in", values, "showStatus"); + return (Criteria) this; + } + + public Criteria andShowStatusNotIn(List 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 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsTopicComment.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsTopicComment.java new file mode 100644 index 000000000..648da7e69 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsTopicComment.java @@ -0,0 +1,97 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsTopicCommentExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsTopicCommentExample.java new file mode 100644 index 000000000..a10fb551b --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsTopicCommentExample.java @@ -0,0 +1,650 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class CmsTopicCommentExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CmsTopicCommentExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 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 values) { + addCriterion("member_nick_name in", values, "memberNickName"); + return (Criteria) this; + } + + public Criteria andMemberNickNameNotIn(List 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 andTopicIdIsNull() { + addCriterion("topic_id is null"); + return (Criteria) this; + } + + public Criteria andTopicIdIsNotNull() { + addCriterion("topic_id is not null"); + return (Criteria) this; + } + + public Criteria andTopicIdEqualTo(Long value) { + addCriterion("topic_id =", value, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdNotEqualTo(Long value) { + addCriterion("topic_id <>", value, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdGreaterThan(Long value) { + addCriterion("topic_id >", value, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdGreaterThanOrEqualTo(Long value) { + addCriterion("topic_id >=", value, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdLessThan(Long value) { + addCriterion("topic_id <", value, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdLessThanOrEqualTo(Long value) { + addCriterion("topic_id <=", value, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdIn(List values) { + addCriterion("topic_id in", values, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdNotIn(List values) { + addCriterion("topic_id not in", values, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdBetween(Long value1, Long value2) { + addCriterion("topic_id between", value1, value2, "topicId"); + return (Criteria) this; + } + + public Criteria andTopicIdNotBetween(Long value1, Long value2) { + addCriterion("topic_id not between", value1, value2, "topicId"); + 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 values) { + addCriterion("member_icon in", values, "memberIcon"); + return (Criteria) this; + } + + public Criteria andMemberIconNotIn(List 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 values) { + addCriterion("content in", values, "content"); + return (Criteria) this; + } + + public Criteria andContentNotIn(List 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 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 values) { + addCriterion("show_status in", values, "showStatus"); + return (Criteria) this; + } + + public Criteria andShowStatusNotIn(List 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 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsTopicExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsTopicExample.java new file mode 100644 index 000000000..6cc6c321b --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/CmsTopicExample.java @@ -0,0 +1,890 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class CmsTopicExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CmsTopicExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 andCategoryIdIsNull() { + addCriterion("category_id is null"); + return (Criteria) this; + } + + public Criteria andCategoryIdIsNotNull() { + addCriterion("category_id is not null"); + return (Criteria) this; + } + + public Criteria andCategoryIdEqualTo(Long value) { + addCriterion("category_id =", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdNotEqualTo(Long value) { + addCriterion("category_id <>", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdGreaterThan(Long value) { + addCriterion("category_id >", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdGreaterThanOrEqualTo(Long value) { + addCriterion("category_id >=", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdLessThan(Long value) { + addCriterion("category_id <", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdLessThanOrEqualTo(Long value) { + addCriterion("category_id <=", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdIn(List values) { + addCriterion("category_id in", values, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdNotIn(List values) { + addCriterion("category_id not in", values, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdBetween(Long value1, Long value2) { + addCriterion("category_id between", value1, value2, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdNotBetween(Long value1, Long value2) { + addCriterion("category_id not between", value1, value2, "categoryId"); + 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 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 values) { + addCriterion("start_time in", values, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotIn(List 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 values) { + addCriterion("end_time in", values, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotIn(List 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 andAttendCountIsNull() { + addCriterion("attend_count is null"); + return (Criteria) this; + } + + public Criteria andAttendCountIsNotNull() { + addCriterion("attend_count is not null"); + return (Criteria) this; + } + + public Criteria andAttendCountEqualTo(Integer value) { + addCriterion("attend_count =", value, "attendCount"); + return (Criteria) this; + } + + public Criteria andAttendCountNotEqualTo(Integer value) { + addCriterion("attend_count <>", value, "attendCount"); + return (Criteria) this; + } + + public Criteria andAttendCountGreaterThan(Integer value) { + addCriterion("attend_count >", value, "attendCount"); + return (Criteria) this; + } + + public Criteria andAttendCountGreaterThanOrEqualTo(Integer value) { + addCriterion("attend_count >=", value, "attendCount"); + return (Criteria) this; + } + + public Criteria andAttendCountLessThan(Integer value) { + addCriterion("attend_count <", value, "attendCount"); + return (Criteria) this; + } + + public Criteria andAttendCountLessThanOrEqualTo(Integer value) { + addCriterion("attend_count <=", value, "attendCount"); + return (Criteria) this; + } + + public Criteria andAttendCountIn(List values) { + addCriterion("attend_count in", values, "attendCount"); + return (Criteria) this; + } + + public Criteria andAttendCountNotIn(List values) { + addCriterion("attend_count not in", values, "attendCount"); + return (Criteria) this; + } + + public Criteria andAttendCountBetween(Integer value1, Integer value2) { + addCriterion("attend_count between", value1, value2, "attendCount"); + return (Criteria) this; + } + + public Criteria andAttendCountNotBetween(Integer value1, Integer value2) { + addCriterion("attend_count not between", value1, value2, "attendCount"); + return (Criteria) this; + } + + public Criteria andAttentionCountIsNull() { + addCriterion("attention_count is null"); + return (Criteria) this; + } + + public Criteria andAttentionCountIsNotNull() { + addCriterion("attention_count is not null"); + return (Criteria) this; + } + + public Criteria andAttentionCountEqualTo(Integer value) { + addCriterion("attention_count =", value, "attentionCount"); + return (Criteria) this; + } + + public Criteria andAttentionCountNotEqualTo(Integer value) { + addCriterion("attention_count <>", value, "attentionCount"); + return (Criteria) this; + } + + public Criteria andAttentionCountGreaterThan(Integer value) { + addCriterion("attention_count >", value, "attentionCount"); + return (Criteria) this; + } + + public Criteria andAttentionCountGreaterThanOrEqualTo(Integer value) { + addCriterion("attention_count >=", value, "attentionCount"); + return (Criteria) this; + } + + public Criteria andAttentionCountLessThan(Integer value) { + addCriterion("attention_count <", value, "attentionCount"); + return (Criteria) this; + } + + public Criteria andAttentionCountLessThanOrEqualTo(Integer value) { + addCriterion("attention_count <=", value, "attentionCount"); + return (Criteria) this; + } + + public Criteria andAttentionCountIn(List values) { + addCriterion("attention_count in", values, "attentionCount"); + return (Criteria) this; + } + + public Criteria andAttentionCountNotIn(List values) { + addCriterion("attention_count not in", values, "attentionCount"); + return (Criteria) this; + } + + public Criteria andAttentionCountBetween(Integer value1, Integer value2) { + addCriterion("attention_count between", value1, value2, "attentionCount"); + return (Criteria) this; + } + + public Criteria andAttentionCountNotBetween(Integer value1, Integer value2) { + addCriterion("attention_count not between", value1, value2, "attentionCount"); + return (Criteria) this; + } + + public Criteria andReadCountIsNull() { + addCriterion("read_count is null"); + return (Criteria) this; + } + + public Criteria andReadCountIsNotNull() { + addCriterion("read_count is not null"); + return (Criteria) this; + } + + public Criteria andReadCountEqualTo(Integer value) { + addCriterion("read_count =", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountNotEqualTo(Integer value) { + addCriterion("read_count <>", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountGreaterThan(Integer value) { + addCriterion("read_count >", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountGreaterThanOrEqualTo(Integer value) { + addCriterion("read_count >=", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountLessThan(Integer value) { + addCriterion("read_count <", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountLessThanOrEqualTo(Integer value) { + addCriterion("read_count <=", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountIn(List values) { + addCriterion("read_count in", values, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountNotIn(List values) { + addCriterion("read_count not in", values, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountBetween(Integer value1, Integer value2) { + addCriterion("read_count between", value1, value2, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountNotBetween(Integer value1, Integer value2) { + addCriterion("read_count not between", value1, value2, "readCount"); + return (Criteria) this; + } + + public Criteria andAwardNameIsNull() { + addCriterion("award_name is null"); + return (Criteria) this; + } + + public Criteria andAwardNameIsNotNull() { + addCriterion("award_name is not null"); + return (Criteria) this; + } + + public Criteria andAwardNameEqualTo(String value) { + addCriterion("award_name =", value, "awardName"); + return (Criteria) this; + } + + public Criteria andAwardNameNotEqualTo(String value) { + addCriterion("award_name <>", value, "awardName"); + return (Criteria) this; + } + + public Criteria andAwardNameGreaterThan(String value) { + addCriterion("award_name >", value, "awardName"); + return (Criteria) this; + } + + public Criteria andAwardNameGreaterThanOrEqualTo(String value) { + addCriterion("award_name >=", value, "awardName"); + return (Criteria) this; + } + + public Criteria andAwardNameLessThan(String value) { + addCriterion("award_name <", value, "awardName"); + return (Criteria) this; + } + + public Criteria andAwardNameLessThanOrEqualTo(String value) { + addCriterion("award_name <=", value, "awardName"); + return (Criteria) this; + } + + public Criteria andAwardNameLike(String value) { + addCriterion("award_name like", value, "awardName"); + return (Criteria) this; + } + + public Criteria andAwardNameNotLike(String value) { + addCriterion("award_name not like", value, "awardName"); + return (Criteria) this; + } + + public Criteria andAwardNameIn(List values) { + addCriterion("award_name in", values, "awardName"); + return (Criteria) this; + } + + public Criteria andAwardNameNotIn(List values) { + addCriterion("award_name not in", values, "awardName"); + return (Criteria) this; + } + + public Criteria andAwardNameBetween(String value1, String value2) { + addCriterion("award_name between", value1, value2, "awardName"); + return (Criteria) this; + } + + public Criteria andAwardNameNotBetween(String value1, String value2) { + addCriterion("award_name not between", value1, value2, "awardName"); + return (Criteria) this; + } + + public Criteria andAttendTypeIsNull() { + addCriterion("attend_type is null"); + return (Criteria) this; + } + + public Criteria andAttendTypeIsNotNull() { + addCriterion("attend_type is not null"); + return (Criteria) this; + } + + public Criteria andAttendTypeEqualTo(String value) { + addCriterion("attend_type =", value, "attendType"); + return (Criteria) this; + } + + public Criteria andAttendTypeNotEqualTo(String value) { + addCriterion("attend_type <>", value, "attendType"); + return (Criteria) this; + } + + public Criteria andAttendTypeGreaterThan(String value) { + addCriterion("attend_type >", value, "attendType"); + return (Criteria) this; + } + + public Criteria andAttendTypeGreaterThanOrEqualTo(String value) { + addCriterion("attend_type >=", value, "attendType"); + return (Criteria) this; + } + + public Criteria andAttendTypeLessThan(String value) { + addCriterion("attend_type <", value, "attendType"); + return (Criteria) this; + } + + public Criteria andAttendTypeLessThanOrEqualTo(String value) { + addCriterion("attend_type <=", value, "attendType"); + return (Criteria) this; + } + + public Criteria andAttendTypeLike(String value) { + addCriterion("attend_type like", value, "attendType"); + return (Criteria) this; + } + + public Criteria andAttendTypeNotLike(String value) { + addCriterion("attend_type not like", value, "attendType"); + return (Criteria) this; + } + + public Criteria andAttendTypeIn(List values) { + addCriterion("attend_type in", values, "attendType"); + return (Criteria) this; + } + + public Criteria andAttendTypeNotIn(List values) { + addCriterion("attend_type not in", values, "attendType"); + return (Criteria) this; + } + + public Criteria andAttendTypeBetween(String value1, String value2) { + addCriterion("attend_type between", value1, value2, "attendType"); + return (Criteria) this; + } + + public Criteria andAttendTypeNotBetween(String value1, String value2) { + addCriterion("attend_type not between", value1, value2, "attendType"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsCartItem.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsCartItem.java new file mode 100644 index 000000000..a4f6e5401 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsCartItem.java @@ -0,0 +1,231 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +public class OmsCartItem implements Serializable { + private Long id; + + private Long productId; + + private Long productSkuId; + + private Long memberId; + + @Schema(title = "购买数量") + private Integer quantity; + + @Schema(title = "添加到购物车的价格") + private BigDecimal price; + + @Schema(title = "商品主图") + private String productPic; + + @Schema(title = "商品名称") + private String productName; + + @Schema(title = "商品副标题(卖点)") + private String productSubTitle; + + @Schema(title = "商品sku条码") + private String productSkuCode; + + @Schema(title = "会员昵称") + private String memberNickname; + + @Schema(title = "创建时间") + private Date createDate; + + @Schema(title = "修改时间") + private Date modifyDate; + + @Schema(title = "是否删除") + private Integer deleteStatus; + + @Schema(title = "商品分类") + private Long productCategoryId; + + private String productBrand; + + private String productSn; + + @Schema(title = "商品销售属性:[{'key':'颜色','value':'颜色'},{'key':'容量','value':'4G'}]") + private String productAttr; + + 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 getProductSkuId() { + return productSkuId; + } + + public void setProductSkuId(Long productSkuId) { + this.productSkuId = productSkuId; + } + + public Long getMemberId() { + return memberId; + } + + public void setMemberId(Long memberId) { + this.memberId = memberId; + } + + public Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } + + public BigDecimal getPrice() { + return price; + } + + public void setPrice(BigDecimal price) { + this.price = price; + } + + public String getProductPic() { + return productPic; + } + + public void setProductPic(String productPic) { + this.productPic = productPic; + } + + public String getProductName() { + return productName; + } + + public void setProductName(String productName) { + this.productName = productName; + } + + public String getProductSubTitle() { + return productSubTitle; + } + + public void setProductSubTitle(String productSubTitle) { + this.productSubTitle = productSubTitle; + } + + public String getProductSkuCode() { + return productSkuCode; + } + + public void setProductSkuCode(String productSkuCode) { + this.productSkuCode = productSkuCode; + } + + public String getMemberNickname() { + return memberNickname; + } + + public void setMemberNickname(String memberNickname) { + this.memberNickname = memberNickname; + } + + public Date getCreateDate() { + return createDate; + } + + public void setCreateDate(Date createDate) { + this.createDate = createDate; + } + + public Date getModifyDate() { + return modifyDate; + } + + public void setModifyDate(Date modifyDate) { + this.modifyDate = modifyDate; + } + + public Integer getDeleteStatus() { + return deleteStatus; + } + + public void setDeleteStatus(Integer deleteStatus) { + this.deleteStatus = deleteStatus; + } + + public Long getProductCategoryId() { + return productCategoryId; + } + + public void setProductCategoryId(Long productCategoryId) { + this.productCategoryId = productCategoryId; + } + + public String getProductBrand() { + return productBrand; + } + + public void setProductBrand(String productBrand) { + this.productBrand = productBrand; + } + + public String getProductSn() { + return productSn; + } + + public void setProductSn(String productSn) { + this.productSn = productSn; + } + + public String getProductAttr() { + return productAttr; + } + + public void setProductAttr(String productAttr) { + this.productAttr = productAttr; + } + + @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(", productSkuId=").append(productSkuId); + sb.append(", memberId=").append(memberId); + sb.append(", quantity=").append(quantity); + sb.append(", price=").append(price); + sb.append(", productPic=").append(productPic); + sb.append(", productName=").append(productName); + sb.append(", productSubTitle=").append(productSubTitle); + sb.append(", productSkuCode=").append(productSkuCode); + sb.append(", memberNickname=").append(memberNickname); + sb.append(", createDate=").append(createDate); + sb.append(", modifyDate=").append(modifyDate); + sb.append(", deleteStatus=").append(deleteStatus); + sb.append(", productCategoryId=").append(productCategoryId); + sb.append(", productBrand=").append(productBrand); + sb.append(", productSn=").append(productSn); + sb.append(", productAttr=").append(productAttr); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsCartItemExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsCartItemExample.java new file mode 100644 index 000000000..ce3a1d500 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsCartItemExample.java @@ -0,0 +1,1361 @@ +package com.macro.mall.model; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class OmsCartItemExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OmsCartItemExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("product_id in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotIn(List 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 andProductSkuIdIsNull() { + addCriterion("product_sku_id is null"); + return (Criteria) this; + } + + public Criteria andProductSkuIdIsNotNull() { + addCriterion("product_sku_id is not null"); + return (Criteria) this; + } + + public Criteria andProductSkuIdEqualTo(Long value) { + addCriterion("product_sku_id =", value, "productSkuId"); + return (Criteria) this; + } + + public Criteria andProductSkuIdNotEqualTo(Long value) { + addCriterion("product_sku_id <>", value, "productSkuId"); + return (Criteria) this; + } + + public Criteria andProductSkuIdGreaterThan(Long value) { + addCriterion("product_sku_id >", value, "productSkuId"); + return (Criteria) this; + } + + public Criteria andProductSkuIdGreaterThanOrEqualTo(Long value) { + addCriterion("product_sku_id >=", value, "productSkuId"); + return (Criteria) this; + } + + public Criteria andProductSkuIdLessThan(Long value) { + addCriterion("product_sku_id <", value, "productSkuId"); + return (Criteria) this; + } + + public Criteria andProductSkuIdLessThanOrEqualTo(Long value) { + addCriterion("product_sku_id <=", value, "productSkuId"); + return (Criteria) this; + } + + public Criteria andProductSkuIdIn(List values) { + addCriterion("product_sku_id in", values, "productSkuId"); + return (Criteria) this; + } + + public Criteria andProductSkuIdNotIn(List values) { + addCriterion("product_sku_id not in", values, "productSkuId"); + return (Criteria) this; + } + + public Criteria andProductSkuIdBetween(Long value1, Long value2) { + addCriterion("product_sku_id between", value1, value2, "productSkuId"); + return (Criteria) this; + } + + public Criteria andProductSkuIdNotBetween(Long value1, Long value2) { + addCriterion("product_sku_id not between", value1, value2, "productSkuId"); + 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 values) { + addCriterion("member_id in", values, "memberId"); + return (Criteria) this; + } + + public Criteria andMemberIdNotIn(List 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 andQuantityIsNull() { + addCriterion("quantity is null"); + return (Criteria) this; + } + + public Criteria andQuantityIsNotNull() { + addCriterion("quantity is not null"); + return (Criteria) this; + } + + public Criteria andQuantityEqualTo(Integer value) { + addCriterion("quantity =", value, "quantity"); + return (Criteria) this; + } + + public Criteria andQuantityNotEqualTo(Integer value) { + addCriterion("quantity <>", value, "quantity"); + return (Criteria) this; + } + + public Criteria andQuantityGreaterThan(Integer value) { + addCriterion("quantity >", value, "quantity"); + return (Criteria) this; + } + + public Criteria andQuantityGreaterThanOrEqualTo(Integer value) { + addCriterion("quantity >=", value, "quantity"); + return (Criteria) this; + } + + public Criteria andQuantityLessThan(Integer value) { + addCriterion("quantity <", value, "quantity"); + return (Criteria) this; + } + + public Criteria andQuantityLessThanOrEqualTo(Integer value) { + addCriterion("quantity <=", value, "quantity"); + return (Criteria) this; + } + + public Criteria andQuantityIn(List values) { + addCriterion("quantity in", values, "quantity"); + return (Criteria) this; + } + + public Criteria andQuantityNotIn(List values) { + addCriterion("quantity not in", values, "quantity"); + return (Criteria) this; + } + + public Criteria andQuantityBetween(Integer value1, Integer value2) { + addCriterion("quantity between", value1, value2, "quantity"); + return (Criteria) this; + } + + public Criteria andQuantityNotBetween(Integer value1, Integer value2) { + addCriterion("quantity not between", value1, value2, "quantity"); + 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 values) { + addCriterion("price in", values, "price"); + return (Criteria) this; + } + + public Criteria andPriceNotIn(List 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 Criteria andProductPicIsNull() { + addCriterion("product_pic is null"); + return (Criteria) this; + } + + public Criteria andProductPicIsNotNull() { + addCriterion("product_pic is not null"); + return (Criteria) this; + } + + public Criteria andProductPicEqualTo(String value) { + addCriterion("product_pic =", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicNotEqualTo(String value) { + addCriterion("product_pic <>", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicGreaterThan(String value) { + addCriterion("product_pic >", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicGreaterThanOrEqualTo(String value) { + addCriterion("product_pic >=", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicLessThan(String value) { + addCriterion("product_pic <", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicLessThanOrEqualTo(String value) { + addCriterion("product_pic <=", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicLike(String value) { + addCriterion("product_pic like", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicNotLike(String value) { + addCriterion("product_pic not like", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicIn(List values) { + addCriterion("product_pic in", values, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicNotIn(List values) { + addCriterion("product_pic not in", values, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicBetween(String value1, String value2) { + addCriterion("product_pic between", value1, value2, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicNotBetween(String value1, String value2) { + addCriterion("product_pic not between", value1, value2, "productPic"); + 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 values) { + addCriterion("product_name in", values, "productName"); + return (Criteria) this; + } + + public Criteria andProductNameNotIn(List 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 andProductSubTitleIsNull() { + addCriterion("product_sub_title is null"); + return (Criteria) this; + } + + public Criteria andProductSubTitleIsNotNull() { + addCriterion("product_sub_title is not null"); + return (Criteria) this; + } + + public Criteria andProductSubTitleEqualTo(String value) { + addCriterion("product_sub_title =", value, "productSubTitle"); + return (Criteria) this; + } + + public Criteria andProductSubTitleNotEqualTo(String value) { + addCriterion("product_sub_title <>", value, "productSubTitle"); + return (Criteria) this; + } + + public Criteria andProductSubTitleGreaterThan(String value) { + addCriterion("product_sub_title >", value, "productSubTitle"); + return (Criteria) this; + } + + public Criteria andProductSubTitleGreaterThanOrEqualTo(String value) { + addCriterion("product_sub_title >=", value, "productSubTitle"); + return (Criteria) this; + } + + public Criteria andProductSubTitleLessThan(String value) { + addCriterion("product_sub_title <", value, "productSubTitle"); + return (Criteria) this; + } + + public Criteria andProductSubTitleLessThanOrEqualTo(String value) { + addCriterion("product_sub_title <=", value, "productSubTitle"); + return (Criteria) this; + } + + public Criteria andProductSubTitleLike(String value) { + addCriterion("product_sub_title like", value, "productSubTitle"); + return (Criteria) this; + } + + public Criteria andProductSubTitleNotLike(String value) { + addCriterion("product_sub_title not like", value, "productSubTitle"); + return (Criteria) this; + } + + public Criteria andProductSubTitleIn(List values) { + addCriterion("product_sub_title in", values, "productSubTitle"); + return (Criteria) this; + } + + public Criteria andProductSubTitleNotIn(List values) { + addCriterion("product_sub_title not in", values, "productSubTitle"); + return (Criteria) this; + } + + public Criteria andProductSubTitleBetween(String value1, String value2) { + addCriterion("product_sub_title between", value1, value2, "productSubTitle"); + return (Criteria) this; + } + + public Criteria andProductSubTitleNotBetween(String value1, String value2) { + addCriterion("product_sub_title not between", value1, value2, "productSubTitle"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeIsNull() { + addCriterion("product_sku_code is null"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeIsNotNull() { + addCriterion("product_sku_code is not null"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeEqualTo(String value) { + addCriterion("product_sku_code =", value, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeNotEqualTo(String value) { + addCriterion("product_sku_code <>", value, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeGreaterThan(String value) { + addCriterion("product_sku_code >", value, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeGreaterThanOrEqualTo(String value) { + addCriterion("product_sku_code >=", value, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeLessThan(String value) { + addCriterion("product_sku_code <", value, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeLessThanOrEqualTo(String value) { + addCriterion("product_sku_code <=", value, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeLike(String value) { + addCriterion("product_sku_code like", value, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeNotLike(String value) { + addCriterion("product_sku_code not like", value, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeIn(List values) { + addCriterion("product_sku_code in", values, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeNotIn(List values) { + addCriterion("product_sku_code not in", values, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeBetween(String value1, String value2) { + addCriterion("product_sku_code between", value1, value2, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeNotBetween(String value1, String value2) { + addCriterion("product_sku_code not between", value1, value2, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andMemberNicknameIsNull() { + addCriterion("member_nickname is null"); + return (Criteria) this; + } + + public Criteria andMemberNicknameIsNotNull() { + addCriterion("member_nickname is not null"); + return (Criteria) this; + } + + public Criteria andMemberNicknameEqualTo(String value) { + addCriterion("member_nickname =", value, "memberNickname"); + return (Criteria) this; + } + + public Criteria andMemberNicknameNotEqualTo(String value) { + addCriterion("member_nickname <>", value, "memberNickname"); + return (Criteria) this; + } + + public Criteria andMemberNicknameGreaterThan(String value) { + addCriterion("member_nickname >", value, "memberNickname"); + return (Criteria) this; + } + + public Criteria andMemberNicknameGreaterThanOrEqualTo(String value) { + addCriterion("member_nickname >=", value, "memberNickname"); + return (Criteria) this; + } + + public Criteria andMemberNicknameLessThan(String value) { + addCriterion("member_nickname <", value, "memberNickname"); + return (Criteria) this; + } + + public Criteria andMemberNicknameLessThanOrEqualTo(String value) { + addCriterion("member_nickname <=", value, "memberNickname"); + return (Criteria) this; + } + + public Criteria andMemberNicknameLike(String value) { + addCriterion("member_nickname like", value, "memberNickname"); + return (Criteria) this; + } + + public Criteria andMemberNicknameNotLike(String value) { + addCriterion("member_nickname not like", value, "memberNickname"); + return (Criteria) this; + } + + public Criteria andMemberNicknameIn(List values) { + addCriterion("member_nickname in", values, "memberNickname"); + return (Criteria) this; + } + + public Criteria andMemberNicknameNotIn(List values) { + addCriterion("member_nickname not in", values, "memberNickname"); + return (Criteria) this; + } + + public Criteria andMemberNicknameBetween(String value1, String value2) { + addCriterion("member_nickname between", value1, value2, "memberNickname"); + return (Criteria) this; + } + + public Criteria andMemberNicknameNotBetween(String value1, String value2) { + addCriterion("member_nickname not between", value1, value2, "memberNickname"); + return (Criteria) this; + } + + public Criteria andCreateDateIsNull() { + addCriterion("create_date is null"); + return (Criteria) this; + } + + public Criteria andCreateDateIsNotNull() { + addCriterion("create_date is not null"); + return (Criteria) this; + } + + public Criteria andCreateDateEqualTo(Date value) { + addCriterion("create_date =", value, "createDate"); + return (Criteria) this; + } + + public Criteria andCreateDateNotEqualTo(Date value) { + addCriterion("create_date <>", value, "createDate"); + return (Criteria) this; + } + + public Criteria andCreateDateGreaterThan(Date value) { + addCriterion("create_date >", value, "createDate"); + return (Criteria) this; + } + + public Criteria andCreateDateGreaterThanOrEqualTo(Date value) { + addCriterion("create_date >=", value, "createDate"); + return (Criteria) this; + } + + public Criteria andCreateDateLessThan(Date value) { + addCriterion("create_date <", value, "createDate"); + return (Criteria) this; + } + + public Criteria andCreateDateLessThanOrEqualTo(Date value) { + addCriterion("create_date <=", value, "createDate"); + return (Criteria) this; + } + + public Criteria andCreateDateIn(List values) { + addCriterion("create_date in", values, "createDate"); + return (Criteria) this; + } + + public Criteria andCreateDateNotIn(List values) { + addCriterion("create_date not in", values, "createDate"); + return (Criteria) this; + } + + public Criteria andCreateDateBetween(Date value1, Date value2) { + addCriterion("create_date between", value1, value2, "createDate"); + return (Criteria) this; + } + + public Criteria andCreateDateNotBetween(Date value1, Date value2) { + addCriterion("create_date not between", value1, value2, "createDate"); + return (Criteria) this; + } + + public Criteria andModifyDateIsNull() { + addCriterion("modify_date is null"); + return (Criteria) this; + } + + public Criteria andModifyDateIsNotNull() { + addCriterion("modify_date is not null"); + return (Criteria) this; + } + + public Criteria andModifyDateEqualTo(Date value) { + addCriterion("modify_date =", value, "modifyDate"); + return (Criteria) this; + } + + public Criteria andModifyDateNotEqualTo(Date value) { + addCriterion("modify_date <>", value, "modifyDate"); + return (Criteria) this; + } + + public Criteria andModifyDateGreaterThan(Date value) { + addCriterion("modify_date >", value, "modifyDate"); + return (Criteria) this; + } + + public Criteria andModifyDateGreaterThanOrEqualTo(Date value) { + addCriterion("modify_date >=", value, "modifyDate"); + return (Criteria) this; + } + + public Criteria andModifyDateLessThan(Date value) { + addCriterion("modify_date <", value, "modifyDate"); + return (Criteria) this; + } + + public Criteria andModifyDateLessThanOrEqualTo(Date value) { + addCriterion("modify_date <=", value, "modifyDate"); + return (Criteria) this; + } + + public Criteria andModifyDateIn(List values) { + addCriterion("modify_date in", values, "modifyDate"); + return (Criteria) this; + } + + public Criteria andModifyDateNotIn(List values) { + addCriterion("modify_date not in", values, "modifyDate"); + return (Criteria) this; + } + + public Criteria andModifyDateBetween(Date value1, Date value2) { + addCriterion("modify_date between", value1, value2, "modifyDate"); + return (Criteria) this; + } + + public Criteria andModifyDateNotBetween(Date value1, Date value2) { + addCriterion("modify_date not between", value1, value2, "modifyDate"); + 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 values) { + addCriterion("delete_status in", values, "deleteStatus"); + return (Criteria) this; + } + + public Criteria andDeleteStatusNotIn(List 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 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 values) { + addCriterion("product_category_id in", values, "productCategoryId"); + return (Criteria) this; + } + + public Criteria andProductCategoryIdNotIn(List 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 andProductBrandIsNull() { + addCriterion("product_brand is null"); + return (Criteria) this; + } + + public Criteria andProductBrandIsNotNull() { + addCriterion("product_brand is not null"); + return (Criteria) this; + } + + public Criteria andProductBrandEqualTo(String value) { + addCriterion("product_brand =", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandNotEqualTo(String value) { + addCriterion("product_brand <>", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandGreaterThan(String value) { + addCriterion("product_brand >", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandGreaterThanOrEqualTo(String value) { + addCriterion("product_brand >=", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandLessThan(String value) { + addCriterion("product_brand <", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandLessThanOrEqualTo(String value) { + addCriterion("product_brand <=", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandLike(String value) { + addCriterion("product_brand like", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandNotLike(String value) { + addCriterion("product_brand not like", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandIn(List values) { + addCriterion("product_brand in", values, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandNotIn(List values) { + addCriterion("product_brand not in", values, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandBetween(String value1, String value2) { + addCriterion("product_brand between", value1, value2, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandNotBetween(String value1, String value2) { + addCriterion("product_brand not between", value1, value2, "productBrand"); + 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 values) { + addCriterion("product_sn in", values, "productSn"); + return (Criteria) this; + } + + public Criteria andProductSnNotIn(List 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 andProductAttrIsNull() { + addCriterion("product_attr is null"); + return (Criteria) this; + } + + public Criteria andProductAttrIsNotNull() { + addCriterion("product_attr is not null"); + return (Criteria) this; + } + + public Criteria andProductAttrEqualTo(String value) { + addCriterion("product_attr =", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrNotEqualTo(String value) { + addCriterion("product_attr <>", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrGreaterThan(String value) { + addCriterion("product_attr >", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrGreaterThanOrEqualTo(String value) { + addCriterion("product_attr >=", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrLessThan(String value) { + addCriterion("product_attr <", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrLessThanOrEqualTo(String value) { + addCriterion("product_attr <=", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrLike(String value) { + addCriterion("product_attr like", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrNotLike(String value) { + addCriterion("product_attr not like", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrIn(List values) { + addCriterion("product_attr in", values, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrNotIn(List values) { + addCriterion("product_attr not in", values, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrBetween(String value1, String value2) { + addCriterion("product_attr between", value1, value2, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrNotBetween(String value1, String value2) { + addCriterion("product_attr not between", value1, value2, "productAttr"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsCompanyAddress.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsCompanyAddress.java new file mode 100644 index 000000000..0ee50c27f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsCompanyAddress.java @@ -0,0 +1,138 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class OmsCompanyAddress implements Serializable { + private Long id; + + @Schema(title = "地址名称") + private String addressName; + + @Schema(title = "默认发货地址:0->否;1->是") + private Integer sendStatus; + + @Schema(title = "是否默认收货地址:0->否;1->是") + private Integer receiveStatus; + + @Schema(title = "收发货人姓名") + private String name; + + @Schema(title = "收货人电话") + private String phone; + + @Schema(title = "省/直辖市") + private String province; + + @Schema(title = "市") + private String city; + + @Schema(title = "区") + private String region; + + @Schema(title = "详细地址") + 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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsCompanyAddressExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsCompanyAddressExample.java new file mode 100644 index 000000000..29dc3a7c7 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsCompanyAddressExample.java @@ -0,0 +1,869 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class OmsCompanyAddressExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OmsCompanyAddressExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 andAddressNameIsNull() { + addCriterion("address_name is null"); + return (Criteria) this; + } + + public Criteria andAddressNameIsNotNull() { + addCriterion("address_name is not null"); + return (Criteria) this; + } + + public Criteria andAddressNameEqualTo(String value) { + addCriterion("address_name =", value, "addressName"); + return (Criteria) this; + } + + public Criteria andAddressNameNotEqualTo(String value) { + addCriterion("address_name <>", value, "addressName"); + return (Criteria) this; + } + + public Criteria andAddressNameGreaterThan(String value) { + addCriterion("address_name >", value, "addressName"); + return (Criteria) this; + } + + public Criteria andAddressNameGreaterThanOrEqualTo(String value) { + addCriterion("address_name >=", value, "addressName"); + return (Criteria) this; + } + + public Criteria andAddressNameLessThan(String value) { + addCriterion("address_name <", value, "addressName"); + return (Criteria) this; + } + + public Criteria andAddressNameLessThanOrEqualTo(String value) { + addCriterion("address_name <=", value, "addressName"); + return (Criteria) this; + } + + public Criteria andAddressNameLike(String value) { + addCriterion("address_name like", value, "addressName"); + return (Criteria) this; + } + + public Criteria andAddressNameNotLike(String value) { + addCriterion("address_name not like", value, "addressName"); + return (Criteria) this; + } + + public Criteria andAddressNameIn(List values) { + addCriterion("address_name in", values, "addressName"); + return (Criteria) this; + } + + public Criteria andAddressNameNotIn(List values) { + addCriterion("address_name not in", values, "addressName"); + return (Criteria) this; + } + + public Criteria andAddressNameBetween(String value1, String value2) { + addCriterion("address_name between", value1, value2, "addressName"); + return (Criteria) this; + } + + public Criteria andAddressNameNotBetween(String value1, String value2) { + addCriterion("address_name not between", value1, value2, "addressName"); + return (Criteria) this; + } + + public Criteria andSendStatusIsNull() { + addCriterion("send_status is null"); + return (Criteria) this; + } + + public Criteria andSendStatusIsNotNull() { + addCriterion("send_status is not null"); + return (Criteria) this; + } + + public Criteria andSendStatusEqualTo(Integer value) { + addCriterion("send_status =", value, "sendStatus"); + return (Criteria) this; + } + + public Criteria andSendStatusNotEqualTo(Integer value) { + addCriterion("send_status <>", value, "sendStatus"); + return (Criteria) this; + } + + public Criteria andSendStatusGreaterThan(Integer value) { + addCriterion("send_status >", value, "sendStatus"); + return (Criteria) this; + } + + public Criteria andSendStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("send_status >=", value, "sendStatus"); + return (Criteria) this; + } + + public Criteria andSendStatusLessThan(Integer value) { + addCriterion("send_status <", value, "sendStatus"); + return (Criteria) this; + } + + public Criteria andSendStatusLessThanOrEqualTo(Integer value) { + addCriterion("send_status <=", value, "sendStatus"); + return (Criteria) this; + } + + public Criteria andSendStatusIn(List values) { + addCriterion("send_status in", values, "sendStatus"); + return (Criteria) this; + } + + public Criteria andSendStatusNotIn(List values) { + addCriterion("send_status not in", values, "sendStatus"); + return (Criteria) this; + } + + public Criteria andSendStatusBetween(Integer value1, Integer value2) { + addCriterion("send_status between", value1, value2, "sendStatus"); + return (Criteria) this; + } + + public Criteria andSendStatusNotBetween(Integer value1, Integer value2) { + addCriterion("send_status not between", value1, value2, "sendStatus"); + return (Criteria) this; + } + + public Criteria andReceiveStatusIsNull() { + addCriterion("receive_status is null"); + return (Criteria) this; + } + + public Criteria andReceiveStatusIsNotNull() { + addCriterion("receive_status is not null"); + return (Criteria) this; + } + + public Criteria andReceiveStatusEqualTo(Integer value) { + addCriterion("receive_status =", value, "receiveStatus"); + return (Criteria) this; + } + + public Criteria andReceiveStatusNotEqualTo(Integer value) { + addCriterion("receive_status <>", value, "receiveStatus"); + return (Criteria) this; + } + + public Criteria andReceiveStatusGreaterThan(Integer value) { + addCriterion("receive_status >", value, "receiveStatus"); + return (Criteria) this; + } + + public Criteria andReceiveStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("receive_status >=", value, "receiveStatus"); + return (Criteria) this; + } + + public Criteria andReceiveStatusLessThan(Integer value) { + addCriterion("receive_status <", value, "receiveStatus"); + return (Criteria) this; + } + + public Criteria andReceiveStatusLessThanOrEqualTo(Integer value) { + addCriterion("receive_status <=", value, "receiveStatus"); + return (Criteria) this; + } + + public Criteria andReceiveStatusIn(List values) { + addCriterion("receive_status in", values, "receiveStatus"); + return (Criteria) this; + } + + public Criteria andReceiveStatusNotIn(List values) { + addCriterion("receive_status not in", values, "receiveStatus"); + return (Criteria) this; + } + + public Criteria andReceiveStatusBetween(Integer value1, Integer value2) { + addCriterion("receive_status between", value1, value2, "receiveStatus"); + return (Criteria) this; + } + + public Criteria andReceiveStatusNotBetween(Integer value1, Integer value2) { + addCriterion("receive_status not between", value1, value2, "receiveStatus"); + 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 andPhoneIsNull() { + addCriterion("phone is null"); + return (Criteria) this; + } + + public Criteria andPhoneIsNotNull() { + addCriterion("phone is not null"); + return (Criteria) this; + } + + public Criteria andPhoneEqualTo(String value) { + addCriterion("phone =", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotEqualTo(String value) { + addCriterion("phone <>", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneGreaterThan(String value) { + addCriterion("phone >", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneGreaterThanOrEqualTo(String value) { + addCriterion("phone >=", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLessThan(String value) { + addCriterion("phone <", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLessThanOrEqualTo(String value) { + addCriterion("phone <=", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLike(String value) { + addCriterion("phone like", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotLike(String value) { + addCriterion("phone not like", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneIn(List values) { + addCriterion("phone in", values, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotIn(List values) { + addCriterion("phone not in", values, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneBetween(String value1, String value2) { + addCriterion("phone between", value1, value2, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotBetween(String value1, String value2) { + addCriterion("phone not between", value1, value2, "phone"); + return (Criteria) this; + } + + public Criteria andProvinceIsNull() { + addCriterion("province is null"); + return (Criteria) this; + } + + public Criteria andProvinceIsNotNull() { + addCriterion("province is not null"); + return (Criteria) this; + } + + public Criteria andProvinceEqualTo(String value) { + addCriterion("province =", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceNotEqualTo(String value) { + addCriterion("province <>", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceGreaterThan(String value) { + addCriterion("province >", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceGreaterThanOrEqualTo(String value) { + addCriterion("province >=", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceLessThan(String value) { + addCriterion("province <", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceLessThanOrEqualTo(String value) { + addCriterion("province <=", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceLike(String value) { + addCriterion("province like", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceNotLike(String value) { + addCriterion("province not like", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceIn(List values) { + addCriterion("province in", values, "province"); + return (Criteria) this; + } + + public Criteria andProvinceNotIn(List values) { + addCriterion("province not in", values, "province"); + return (Criteria) this; + } + + public Criteria andProvinceBetween(String value1, String value2) { + addCriterion("province between", value1, value2, "province"); + return (Criteria) this; + } + + public Criteria andProvinceNotBetween(String value1, String value2) { + addCriterion("province not between", value1, value2, "province"); + return (Criteria) this; + } + + public Criteria andCityIsNull() { + addCriterion("city is null"); + return (Criteria) this; + } + + public Criteria andCityIsNotNull() { + addCriterion("city is not null"); + return (Criteria) this; + } + + public Criteria andCityEqualTo(String value) { + addCriterion("city =", value, "city"); + return (Criteria) this; + } + + public Criteria andCityNotEqualTo(String value) { + addCriterion("city <>", value, "city"); + return (Criteria) this; + } + + public Criteria andCityGreaterThan(String value) { + addCriterion("city >", value, "city"); + return (Criteria) this; + } + + public Criteria andCityGreaterThanOrEqualTo(String value) { + addCriterion("city >=", value, "city"); + return (Criteria) this; + } + + public Criteria andCityLessThan(String value) { + addCriterion("city <", value, "city"); + return (Criteria) this; + } + + public Criteria andCityLessThanOrEqualTo(String value) { + addCriterion("city <=", value, "city"); + return (Criteria) this; + } + + public Criteria andCityLike(String value) { + addCriterion("city like", value, "city"); + return (Criteria) this; + } + + public Criteria andCityNotLike(String value) { + addCriterion("city not like", value, "city"); + return (Criteria) this; + } + + public Criteria andCityIn(List values) { + addCriterion("city in", values, "city"); + return (Criteria) this; + } + + public Criteria andCityNotIn(List values) { + addCriterion("city not in", values, "city"); + return (Criteria) this; + } + + public Criteria andCityBetween(String value1, String value2) { + addCriterion("city between", value1, value2, "city"); + return (Criteria) this; + } + + public Criteria andCityNotBetween(String value1, String value2) { + addCriterion("city not between", value1, value2, "city"); + return (Criteria) this; + } + + public Criteria andRegionIsNull() { + addCriterion("region is null"); + return (Criteria) this; + } + + public Criteria andRegionIsNotNull() { + addCriterion("region is not null"); + return (Criteria) this; + } + + public Criteria andRegionEqualTo(String value) { + addCriterion("region =", value, "region"); + return (Criteria) this; + } + + public Criteria andRegionNotEqualTo(String value) { + addCriterion("region <>", value, "region"); + return (Criteria) this; + } + + public Criteria andRegionGreaterThan(String value) { + addCriterion("region >", value, "region"); + return (Criteria) this; + } + + public Criteria andRegionGreaterThanOrEqualTo(String value) { + addCriterion("region >=", value, "region"); + return (Criteria) this; + } + + public Criteria andRegionLessThan(String value) { + addCriterion("region <", value, "region"); + return (Criteria) this; + } + + public Criteria andRegionLessThanOrEqualTo(String value) { + addCriterion("region <=", value, "region"); + return (Criteria) this; + } + + public Criteria andRegionLike(String value) { + addCriterion("region like", value, "region"); + return (Criteria) this; + } + + public Criteria andRegionNotLike(String value) { + addCriterion("region not like", value, "region"); + return (Criteria) this; + } + + public Criteria andRegionIn(List values) { + addCriterion("region in", values, "region"); + return (Criteria) this; + } + + public Criteria andRegionNotIn(List values) { + addCriterion("region not in", values, "region"); + return (Criteria) this; + } + + public Criteria andRegionBetween(String value1, String value2) { + addCriterion("region between", value1, value2, "region"); + return (Criteria) this; + } + + public Criteria andRegionNotBetween(String value1, String value2) { + addCriterion("region not between", value1, value2, "region"); + return (Criteria) this; + } + + public Criteria andDetailAddressIsNull() { + addCriterion("detail_address is null"); + return (Criteria) this; + } + + public Criteria andDetailAddressIsNotNull() { + addCriterion("detail_address is not null"); + return (Criteria) this; + } + + public Criteria andDetailAddressEqualTo(String value) { + addCriterion("detail_address =", value, "detailAddress"); + return (Criteria) this; + } + + public Criteria andDetailAddressNotEqualTo(String value) { + addCriterion("detail_address <>", value, "detailAddress"); + return (Criteria) this; + } + + public Criteria andDetailAddressGreaterThan(String value) { + addCriterion("detail_address >", value, "detailAddress"); + return (Criteria) this; + } + + public Criteria andDetailAddressGreaterThanOrEqualTo(String value) { + addCriterion("detail_address >=", value, "detailAddress"); + return (Criteria) this; + } + + public Criteria andDetailAddressLessThan(String value) { + addCriterion("detail_address <", value, "detailAddress"); + return (Criteria) this; + } + + public Criteria andDetailAddressLessThanOrEqualTo(String value) { + addCriterion("detail_address <=", value, "detailAddress"); + return (Criteria) this; + } + + public Criteria andDetailAddressLike(String value) { + addCriterion("detail_address like", value, "detailAddress"); + return (Criteria) this; + } + + public Criteria andDetailAddressNotLike(String value) { + addCriterion("detail_address not like", value, "detailAddress"); + return (Criteria) this; + } + + public Criteria andDetailAddressIn(List values) { + addCriterion("detail_address in", values, "detailAddress"); + return (Criteria) this; + } + + public Criteria andDetailAddressNotIn(List values) { + addCriterion("detail_address not in", values, "detailAddress"); + return (Criteria) this; + } + + public Criteria andDetailAddressBetween(String value1, String value2) { + addCriterion("detail_address between", value1, value2, "detailAddress"); + return (Criteria) this; + } + + public Criteria andDetailAddressNotBetween(String value1, String value2) { + addCriterion("detail_address not between", value1, value2, "detailAddress"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrder.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrder.java new file mode 100644 index 000000000..709c5c9a4 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrder.java @@ -0,0 +1,547 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +public class OmsOrder implements Serializable { + @Schema(title = "订单id") + private Long id; + + private Long memberId; + + private Long couponId; + + @Schema(title = "订单编号") + private String orderSn; + + @Schema(title = "提交时间") + private Date createTime; + + @Schema(title = "用户帐号") + private String memberUsername; + + @Schema(title = "订单总金额") + private BigDecimal totalAmount; + + @Schema(title = "应付金额(实际支付金额)") + private BigDecimal payAmount; + + @Schema(title = "运费金额") + private BigDecimal freightAmount; + + @Schema(title = "促销优化金额(促销价、满减、阶梯价)") + private BigDecimal promotionAmount; + + @Schema(title = "积分抵扣金额") + private BigDecimal integrationAmount; + + @Schema(title = "优惠券抵扣金额") + private BigDecimal couponAmount; + + @Schema(title = "管理员后台调整订单使用的折扣金额") + private BigDecimal discountAmount; + + @Schema(title = "支付方式:0->未支付;1->支付宝;2->微信") + private Integer payType; + + @Schema(title = "订单来源:0->PC订单;1->app订单") + private Integer sourceType; + + @Schema(title = "订单状态:0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单") + private Integer status; + + @Schema(title = "订单类型:0->正常订单;1->秒杀订单") + private Integer orderType; + + @Schema(title = "物流公司(配送方式)") + private String deliveryCompany; + + @Schema(title = "物流单号") + private String deliverySn; + + @Schema(title = "自动确认时间(天)") + private Integer autoConfirmDay; + + @Schema(title = "可以获得的积分") + private Integer integration; + + @Schema(title = "可以活动的成长值") + private Integer growth; + + @Schema(title = "活动信息") + private String promotionInfo; + + @Schema(title = "发票类型:0->不开发票;1->电子发票;2->纸质发票") + private Integer billType; + + @Schema(title = "发票抬头") + private String billHeader; + + @Schema(title = "发票内容") + private String billContent; + + @Schema(title = "收票人电话") + private String billReceiverPhone; + + @Schema(title = "收票人邮箱") + private String billReceiverEmail; + + @Schema(title = "收货人姓名") + private String receiverName; + + @Schema(title = "收货人电话") + private String receiverPhone; + + @Schema(title = "收货人邮编") + private String receiverPostCode; + + @Schema(title = "省份/直辖市") + private String receiverProvince; + + @Schema(title = "城市") + private String receiverCity; + + @Schema(title = "区") + private String receiverRegion; + + @Schema(title = "详细地址") + private String receiverDetailAddress; + + @Schema(title = "订单备注") + private String note; + + @Schema(title = "确认收货状态:0->未确认;1->已确认") + private Integer confirmStatus; + + @Schema(title = "删除状态:0->未删除;1->已删除") + private Integer deleteStatus; + + @Schema(title = "下单时使用的积分") + private Integer useIntegration; + + @Schema(title = "支付时间") + private Date paymentTime; + + @Schema(title = "发货时间") + private Date deliveryTime; + + @Schema(title = "确认收货时间") + private Date receiveTime; + + @Schema(title = "评价时间") + private Date commentTime; + + @Schema(title = "修改时间") + 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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderExample.java new file mode 100644 index 000000000..abf494a27 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderExample.java @@ -0,0 +1,3011 @@ +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 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("member_id in", values, "memberId"); + return (Criteria) this; + } + + public Criteria andMemberIdNotIn(List 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 values) { + addCriterion("coupon_id in", values, "couponId"); + return (Criteria) this; + } + + public Criteria andCouponIdNotIn(List 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 values) { + addCriterion("order_sn in", values, "orderSn"); + return (Criteria) this; + } + + public Criteria andOrderSnNotIn(List 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 values) { + addCriterion("member_username in", values, "memberUsername"); + return (Criteria) this; + } + + public Criteria andMemberUsernameNotIn(List 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 values) { + addCriterion("total_amount in", values, "totalAmount"); + return (Criteria) this; + } + + public Criteria andTotalAmountNotIn(List 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 values) { + addCriterion("pay_amount in", values, "payAmount"); + return (Criteria) this; + } + + public Criteria andPayAmountNotIn(List 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 values) { + addCriterion("freight_amount in", values, "freightAmount"); + return (Criteria) this; + } + + public Criteria andFreightAmountNotIn(List 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 values) { + addCriterion("promotion_amount in", values, "promotionAmount"); + return (Criteria) this; + } + + public Criteria andPromotionAmountNotIn(List 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 values) { + addCriterion("integration_amount in", values, "integrationAmount"); + return (Criteria) this; + } + + public Criteria andIntegrationAmountNotIn(List 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 values) { + addCriterion("coupon_amount in", values, "couponAmount"); + return (Criteria) this; + } + + public Criteria andCouponAmountNotIn(List 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 values) { + addCriterion("discount_amount in", values, "discountAmount"); + return (Criteria) this; + } + + public Criteria andDiscountAmountNotIn(List 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"); + return (Criteria) this; + } + + public Criteria andPayTypeLessThan(Integer value) { + addCriterion("pay_type <", value, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeLessThanOrEqualTo(Integer value) { + addCriterion("pay_type <=", value, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeIn(List values) { + addCriterion("pay_type in", values, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeNotIn(List values) { + addCriterion("pay_type not in", values, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeBetween(Integer value1, Integer value2) { + addCriterion("pay_type between", value1, value2, "payType"); + return (Criteria) this; + } + + public Criteria andPayTypeNotBetween(Integer value1, Integer value2) { + addCriterion("pay_type not between", value1, value2, "payType"); + return (Criteria) this; + } + + public Criteria andSourceTypeIsNull() { + addCriterion("source_type is null"); + return (Criteria) this; + } + + public Criteria andSourceTypeIsNotNull() { + addCriterion("source_type is not null"); + return (Criteria) this; + } + + public Criteria andSourceTypeEqualTo(Integer value) { + addCriterion("source_type =", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeNotEqualTo(Integer value) { + addCriterion("source_type <>", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeGreaterThan(Integer value) { + addCriterion("source_type >", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("source_type >=", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeLessThan(Integer value) { + addCriterion("source_type <", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeLessThanOrEqualTo(Integer value) { + addCriterion("source_type <=", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeIn(List values) { + addCriterion("source_type in", values, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeNotIn(List values) { + addCriterion("source_type not in", values, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeBetween(Integer value1, Integer value2) { + addCriterion("source_type between", value1, value2, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeNotBetween(Integer value1, Integer value2) { + addCriterion("source_type not between", value1, value2, "sourceType"); + 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 values) { + addCriterion("status in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List 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 andOrderTypeIsNull() { + addCriterion("order_type is null"); + return (Criteria) this; + } + + public Criteria andOrderTypeIsNotNull() { + addCriterion("order_type is not null"); + return (Criteria) this; + } + + public Criteria andOrderTypeEqualTo(Integer value) { + addCriterion("order_type =", value, "orderType"); + return (Criteria) this; + } + + public Criteria andOrderTypeNotEqualTo(Integer value) { + addCriterion("order_type <>", value, "orderType"); + return (Criteria) this; + } + + public Criteria andOrderTypeGreaterThan(Integer value) { + addCriterion("order_type >", value, "orderType"); + return (Criteria) this; + } + + public Criteria andOrderTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("order_type >=", value, "orderType"); + return (Criteria) this; + } + + public Criteria andOrderTypeLessThan(Integer value) { + addCriterion("order_type <", value, "orderType"); + return (Criteria) this; + } + + public Criteria andOrderTypeLessThanOrEqualTo(Integer value) { + addCriterion("order_type <=", value, "orderType"); + return (Criteria) this; + } + + public Criteria andOrderTypeIn(List values) { + addCriterion("order_type in", values, "orderType"); + return (Criteria) this; + } + + public Criteria andOrderTypeNotIn(List values) { + addCriterion("order_type not in", values, "orderType"); + return (Criteria) this; + } + + public Criteria andOrderTypeBetween(Integer value1, Integer value2) { + addCriterion("order_type between", value1, value2, "orderType"); + return (Criteria) this; + } + + public Criteria andOrderTypeNotBetween(Integer value1, Integer value2) { + addCriterion("order_type not between", value1, value2, "orderType"); + return (Criteria) this; + } + + public Criteria andDeliveryCompanyIsNull() { + addCriterion("delivery_company is null"); + return (Criteria) this; + } + + public Criteria andDeliveryCompanyIsNotNull() { + addCriterion("delivery_company is not null"); + return (Criteria) this; + } + + public Criteria andDeliveryCompanyEqualTo(String value) { + addCriterion("delivery_company =", value, "deliveryCompany"); + return (Criteria) this; + } + + public Criteria andDeliveryCompanyNotEqualTo(String value) { + addCriterion("delivery_company <>", value, "deliveryCompany"); + return (Criteria) this; + } + + public Criteria andDeliveryCompanyGreaterThan(String value) { + addCriterion("delivery_company >", value, "deliveryCompany"); + return (Criteria) this; + } + + public Criteria andDeliveryCompanyGreaterThanOrEqualTo(String value) { + addCriterion("delivery_company >=", value, "deliveryCompany"); + return (Criteria) this; + } + + public Criteria andDeliveryCompanyLessThan(String value) { + addCriterion("delivery_company <", value, "deliveryCompany"); + return (Criteria) this; + } + + public Criteria andDeliveryCompanyLessThanOrEqualTo(String value) { + addCriterion("delivery_company <=", value, "deliveryCompany"); + return (Criteria) this; + } + + public Criteria andDeliveryCompanyLike(String value) { + addCriterion("delivery_company like", value, "deliveryCompany"); + return (Criteria) this; + } + + public Criteria andDeliveryCompanyNotLike(String value) { + addCriterion("delivery_company not like", value, "deliveryCompany"); + return (Criteria) this; + } + + public Criteria andDeliveryCompanyIn(List values) { + addCriterion("delivery_company in", values, "deliveryCompany"); + return (Criteria) this; + } + + public Criteria andDeliveryCompanyNotIn(List values) { + addCriterion("delivery_company not in", values, "deliveryCompany"); + return (Criteria) this; + } + + public Criteria andDeliveryCompanyBetween(String value1, String value2) { + addCriterion("delivery_company between", value1, value2, "deliveryCompany"); + return (Criteria) this; + } + + public Criteria andDeliveryCompanyNotBetween(String value1, String value2) { + addCriterion("delivery_company not between", value1, value2, "deliveryCompany"); + return (Criteria) this; + } + + public Criteria andDeliverySnIsNull() { + addCriterion("delivery_sn is null"); + return (Criteria) this; + } + + public Criteria andDeliverySnIsNotNull() { + addCriterion("delivery_sn is not null"); + return (Criteria) this; + } + + public Criteria andDeliverySnEqualTo(String value) { + addCriterion("delivery_sn =", value, "deliverySn"); + return (Criteria) this; + } + + public Criteria andDeliverySnNotEqualTo(String value) { + addCriterion("delivery_sn <>", value, "deliverySn"); + return (Criteria) this; + } + + public Criteria andDeliverySnGreaterThan(String value) { + addCriterion("delivery_sn >", value, "deliverySn"); + return (Criteria) this; + } + + public Criteria andDeliverySnGreaterThanOrEqualTo(String value) { + addCriterion("delivery_sn >=", value, "deliverySn"); + return (Criteria) this; + } + + public Criteria andDeliverySnLessThan(String value) { + addCriterion("delivery_sn <", value, "deliverySn"); + return (Criteria) this; + } + + public Criteria andDeliverySnLessThanOrEqualTo(String value) { + addCriterion("delivery_sn <=", value, "deliverySn"); + return (Criteria) this; + } + + public Criteria andDeliverySnLike(String value) { + addCriterion("delivery_sn like", value, "deliverySn"); + return (Criteria) this; + } + + public Criteria andDeliverySnNotLike(String value) { + addCriterion("delivery_sn not like", value, "deliverySn"); + return (Criteria) this; + } + + public Criteria andDeliverySnIn(List values) { + addCriterion("delivery_sn in", values, "deliverySn"); + return (Criteria) this; + } + + public Criteria andDeliverySnNotIn(List values) { + addCriterion("delivery_sn not in", values, "deliverySn"); + return (Criteria) this; + } + + public Criteria andDeliverySnBetween(String value1, String value2) { + addCriterion("delivery_sn between", value1, value2, "deliverySn"); + return (Criteria) this; + } + + public Criteria andDeliverySnNotBetween(String value1, String value2) { + addCriterion("delivery_sn not between", value1, value2, "deliverySn"); + return (Criteria) this; + } + + public Criteria andAutoConfirmDayIsNull() { + addCriterion("auto_confirm_day is null"); + return (Criteria) this; + } + + public Criteria andAutoConfirmDayIsNotNull() { + addCriterion("auto_confirm_day is not null"); + return (Criteria) this; + } + + public Criteria andAutoConfirmDayEqualTo(Integer value) { + addCriterion("auto_confirm_day =", value, "autoConfirmDay"); + return (Criteria) this; + } + + public Criteria andAutoConfirmDayNotEqualTo(Integer value) { + addCriterion("auto_confirm_day <>", value, "autoConfirmDay"); + return (Criteria) this; + } + + public Criteria andAutoConfirmDayGreaterThan(Integer value) { + addCriterion("auto_confirm_day >", value, "autoConfirmDay"); + return (Criteria) this; + } + + public Criteria andAutoConfirmDayGreaterThanOrEqualTo(Integer value) { + addCriterion("auto_confirm_day >=", value, "autoConfirmDay"); + return (Criteria) this; + } + + public Criteria andAutoConfirmDayLessThan(Integer value) { + addCriterion("auto_confirm_day <", value, "autoConfirmDay"); + return (Criteria) this; + } + + public Criteria andAutoConfirmDayLessThanOrEqualTo(Integer value) { + addCriterion("auto_confirm_day <=", value, "autoConfirmDay"); + return (Criteria) this; + } + + public Criteria andAutoConfirmDayIn(List values) { + addCriterion("auto_confirm_day in", values, "autoConfirmDay"); + return (Criteria) this; + } + + public Criteria andAutoConfirmDayNotIn(List values) { + addCriterion("auto_confirm_day not in", values, "autoConfirmDay"); + return (Criteria) this; + } + + public Criteria andAutoConfirmDayBetween(Integer value1, Integer value2) { + addCriterion("auto_confirm_day between", value1, value2, "autoConfirmDay"); + return (Criteria) this; + } + + public Criteria andAutoConfirmDayNotBetween(Integer value1, Integer value2) { + addCriterion("auto_confirm_day not between", value1, value2, "autoConfirmDay"); + return (Criteria) this; + } + + public Criteria andIntegrationIsNull() { + addCriterion("integration is null"); + return (Criteria) this; + } + + public Criteria andIntegrationIsNotNull() { + addCriterion("integration is not null"); + return (Criteria) this; + } + + public Criteria andIntegrationEqualTo(Integer value) { + addCriterion("integration =", value, "integration"); + return (Criteria) this; + } + + public Criteria andIntegrationNotEqualTo(Integer value) { + addCriterion("integration <>", value, "integration"); + return (Criteria) this; + } + + public Criteria andIntegrationGreaterThan(Integer value) { + addCriterion("integration >", value, "integration"); + return (Criteria) this; + } + + public Criteria andIntegrationGreaterThanOrEqualTo(Integer value) { + addCriterion("integration >=", value, "integration"); + return (Criteria) this; + } + + public Criteria andIntegrationLessThan(Integer value) { + addCriterion("integration <", value, "integration"); + return (Criteria) this; + } + + public Criteria andIntegrationLessThanOrEqualTo(Integer value) { + addCriterion("integration <=", value, "integration"); + return (Criteria) this; + } + + public Criteria andIntegrationIn(List values) { + addCriterion("integration in", values, "integration"); + return (Criteria) this; + } + + public Criteria andIntegrationNotIn(List values) { + addCriterion("integration not in", values, "integration"); + return (Criteria) this; + } + + public Criteria andIntegrationBetween(Integer value1, Integer value2) { + addCriterion("integration between", value1, value2, "integration"); + return (Criteria) this; + } + + public Criteria andIntegrationNotBetween(Integer value1, Integer value2) { + addCriterion("integration not between", value1, value2, "integration"); + 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 values) { + addCriterion("growth in", values, "growth"); + return (Criteria) this; + } + + public Criteria andGrowthNotIn(List 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 andPromotionInfoIsNull() { + addCriterion("promotion_info is null"); + return (Criteria) this; + } + + public Criteria andPromotionInfoIsNotNull() { + addCriterion("promotion_info is not null"); + return (Criteria) this; + } + + public Criteria andPromotionInfoEqualTo(String value) { + addCriterion("promotion_info =", value, "promotionInfo"); + return (Criteria) this; + } + + public Criteria andPromotionInfoNotEqualTo(String value) { + addCriterion("promotion_info <>", value, "promotionInfo"); + return (Criteria) this; + } + + public Criteria andPromotionInfoGreaterThan(String value) { + addCriterion("promotion_info >", value, "promotionInfo"); + return (Criteria) this; + } + + public Criteria andPromotionInfoGreaterThanOrEqualTo(String value) { + addCriterion("promotion_info >=", value, "promotionInfo"); + return (Criteria) this; + } + + public Criteria andPromotionInfoLessThan(String value) { + addCriterion("promotion_info <", value, "promotionInfo"); + return (Criteria) this; + } + + public Criteria andPromotionInfoLessThanOrEqualTo(String value) { + addCriterion("promotion_info <=", value, "promotionInfo"); + return (Criteria) this; + } + + public Criteria andPromotionInfoLike(String value) { + addCriterion("promotion_info like", value, "promotionInfo"); + return (Criteria) this; + } + + public Criteria andPromotionInfoNotLike(String value) { + addCriterion("promotion_info not like", value, "promotionInfo"); + return (Criteria) this; + } + + public Criteria andPromotionInfoIn(List values) { + addCriterion("promotion_info in", values, "promotionInfo"); + return (Criteria) this; + } + + public Criteria andPromotionInfoNotIn(List values) { + addCriterion("promotion_info not in", values, "promotionInfo"); + return (Criteria) this; + } + + public Criteria andPromotionInfoBetween(String value1, String value2) { + addCriterion("promotion_info between", value1, value2, "promotionInfo"); + return (Criteria) this; + } + + public Criteria andPromotionInfoNotBetween(String value1, String value2) { + addCriterion("promotion_info not between", value1, value2, "promotionInfo"); + return (Criteria) this; + } + + public Criteria andBillTypeIsNull() { + addCriterion("bill_type is null"); + return (Criteria) this; + } + + public Criteria andBillTypeIsNotNull() { + addCriterion("bill_type is not null"); + return (Criteria) this; + } + + public Criteria andBillTypeEqualTo(Integer value) { + addCriterion("bill_type =", value, "billType"); + return (Criteria) this; + } + + public Criteria andBillTypeNotEqualTo(Integer value) { + addCriterion("bill_type <>", value, "billType"); + return (Criteria) this; + } + + public Criteria andBillTypeGreaterThan(Integer value) { + addCriterion("bill_type >", value, "billType"); + return (Criteria) this; + } + + public Criteria andBillTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("bill_type >=", value, "billType"); + return (Criteria) this; + } + + public Criteria andBillTypeLessThan(Integer value) { + addCriterion("bill_type <", value, "billType"); + return (Criteria) this; + } + + public Criteria andBillTypeLessThanOrEqualTo(Integer value) { + addCriterion("bill_type <=", value, "billType"); + return (Criteria) this; + } + + public Criteria andBillTypeIn(List values) { + addCriterion("bill_type in", values, "billType"); + return (Criteria) this; + } + + public Criteria andBillTypeNotIn(List values) { + addCriterion("bill_type not in", values, "billType"); + return (Criteria) this; + } + + public Criteria andBillTypeBetween(Integer value1, Integer value2) { + addCriterion("bill_type between", value1, value2, "billType"); + return (Criteria) this; + } + + public Criteria andBillTypeNotBetween(Integer value1, Integer value2) { + addCriterion("bill_type not between", value1, value2, "billType"); + return (Criteria) this; + } + + public Criteria andBillHeaderIsNull() { + addCriterion("bill_header is null"); + return (Criteria) this; + } + + public Criteria andBillHeaderIsNotNull() { + addCriterion("bill_header is not null"); + return (Criteria) this; + } + + public Criteria andBillHeaderEqualTo(String value) { + addCriterion("bill_header =", value, "billHeader"); + return (Criteria) this; + } + + public Criteria andBillHeaderNotEqualTo(String value) { + addCriterion("bill_header <>", value, "billHeader"); + return (Criteria) this; + } + + public Criteria andBillHeaderGreaterThan(String value) { + addCriterion("bill_header >", value, "billHeader"); + return (Criteria) this; + } + + public Criteria andBillHeaderGreaterThanOrEqualTo(String value) { + addCriterion("bill_header >=", value, "billHeader"); + return (Criteria) this; + } + + public Criteria andBillHeaderLessThan(String value) { + addCriterion("bill_header <", value, "billHeader"); + return (Criteria) this; + } + + public Criteria andBillHeaderLessThanOrEqualTo(String value) { + addCriterion("bill_header <=", value, "billHeader"); + return (Criteria) this; + } + + public Criteria andBillHeaderLike(String value) { + addCriterion("bill_header like", value, "billHeader"); + return (Criteria) this; + } + + public Criteria andBillHeaderNotLike(String value) { + addCriterion("bill_header not like", value, "billHeader"); + return (Criteria) this; + } + + public Criteria andBillHeaderIn(List values) { + addCriterion("bill_header in", values, "billHeader"); + return (Criteria) this; + } + + public Criteria andBillHeaderNotIn(List values) { + addCriterion("bill_header not in", values, "billHeader"); + return (Criteria) this; + } + + public Criteria andBillHeaderBetween(String value1, String value2) { + addCriterion("bill_header between", value1, value2, "billHeader"); + return (Criteria) this; + } + + public Criteria andBillHeaderNotBetween(String value1, String value2) { + addCriterion("bill_header not between", value1, value2, "billHeader"); + return (Criteria) this; + } + + public Criteria andBillContentIsNull() { + addCriterion("bill_content is null"); + return (Criteria) this; + } + + public Criteria andBillContentIsNotNull() { + addCriterion("bill_content is not null"); + return (Criteria) this; + } + + public Criteria andBillContentEqualTo(String value) { + addCriterion("bill_content =", value, "billContent"); + return (Criteria) this; + } + + public Criteria andBillContentNotEqualTo(String value) { + addCriterion("bill_content <>", value, "billContent"); + return (Criteria) this; + } + + public Criteria andBillContentGreaterThan(String value) { + addCriterion("bill_content >", value, "billContent"); + return (Criteria) this; + } + + public Criteria andBillContentGreaterThanOrEqualTo(String value) { + addCriterion("bill_content >=", value, "billContent"); + return (Criteria) this; + } + + public Criteria andBillContentLessThan(String value) { + addCriterion("bill_content <", value, "billContent"); + return (Criteria) this; + } + + public Criteria andBillContentLessThanOrEqualTo(String value) { + addCriterion("bill_content <=", value, "billContent"); + return (Criteria) this; + } + + public Criteria andBillContentLike(String value) { + addCriterion("bill_content like", value, "billContent"); + return (Criteria) this; + } + + public Criteria andBillContentNotLike(String value) { + addCriterion("bill_content not like", value, "billContent"); + return (Criteria) this; + } + + public Criteria andBillContentIn(List values) { + addCriterion("bill_content in", values, "billContent"); + return (Criteria) this; + } + + public Criteria andBillContentNotIn(List values) { + addCriterion("bill_content not in", values, "billContent"); + return (Criteria) this; + } + + public Criteria andBillContentBetween(String value1, String value2) { + addCriterion("bill_content between", value1, value2, "billContent"); + return (Criteria) this; + } + + public Criteria andBillContentNotBetween(String value1, String value2) { + addCriterion("bill_content not between", value1, value2, "billContent"); + return (Criteria) this; + } + + public Criteria andBillReceiverPhoneIsNull() { + addCriterion("bill_receiver_phone is null"); + return (Criteria) this; + } + + public Criteria andBillReceiverPhoneIsNotNull() { + addCriterion("bill_receiver_phone is not null"); + return (Criteria) this; + } + + public Criteria andBillReceiverPhoneEqualTo(String value) { + addCriterion("bill_receiver_phone =", value, "billReceiverPhone"); + return (Criteria) this; + } + + public Criteria andBillReceiverPhoneNotEqualTo(String value) { + addCriterion("bill_receiver_phone <>", value, "billReceiverPhone"); + return (Criteria) this; + } + + public Criteria andBillReceiverPhoneGreaterThan(String value) { + addCriterion("bill_receiver_phone >", value, "billReceiverPhone"); + return (Criteria) this; + } + + public Criteria andBillReceiverPhoneGreaterThanOrEqualTo(String value) { + addCriterion("bill_receiver_phone >=", value, "billReceiverPhone"); + return (Criteria) this; + } + + public Criteria andBillReceiverPhoneLessThan(String value) { + addCriterion("bill_receiver_phone <", value, "billReceiverPhone"); + return (Criteria) this; + } + + public Criteria andBillReceiverPhoneLessThanOrEqualTo(String value) { + addCriterion("bill_receiver_phone <=", value, "billReceiverPhone"); + return (Criteria) this; + } + + public Criteria andBillReceiverPhoneLike(String value) { + addCriterion("bill_receiver_phone like", value, "billReceiverPhone"); + return (Criteria) this; + } + + public Criteria andBillReceiverPhoneNotLike(String value) { + addCriterion("bill_receiver_phone not like", value, "billReceiverPhone"); + return (Criteria) this; + } + + public Criteria andBillReceiverPhoneIn(List values) { + addCriterion("bill_receiver_phone in", values, "billReceiverPhone"); + return (Criteria) this; + } + + public Criteria andBillReceiverPhoneNotIn(List values) { + addCriterion("bill_receiver_phone not in", values, "billReceiverPhone"); + return (Criteria) this; + } + + public Criteria andBillReceiverPhoneBetween(String value1, String value2) { + addCriterion("bill_receiver_phone between", value1, value2, "billReceiverPhone"); + return (Criteria) this; + } + + public Criteria andBillReceiverPhoneNotBetween(String value1, String value2) { + addCriterion("bill_receiver_phone not between", value1, value2, "billReceiverPhone"); + return (Criteria) this; + } + + public Criteria andBillReceiverEmailIsNull() { + addCriterion("bill_receiver_email is null"); + return (Criteria) this; + } + + public Criteria andBillReceiverEmailIsNotNull() { + addCriterion("bill_receiver_email is not null"); + return (Criteria) this; + } + + public Criteria andBillReceiverEmailEqualTo(String value) { + addCriterion("bill_receiver_email =", value, "billReceiverEmail"); + return (Criteria) this; + } + + public Criteria andBillReceiverEmailNotEqualTo(String value) { + addCriterion("bill_receiver_email <>", value, "billReceiverEmail"); + return (Criteria) this; + } + + public Criteria andBillReceiverEmailGreaterThan(String value) { + addCriterion("bill_receiver_email >", value, "billReceiverEmail"); + return (Criteria) this; + } + + public Criteria andBillReceiverEmailGreaterThanOrEqualTo(String value) { + addCriterion("bill_receiver_email >=", value, "billReceiverEmail"); + return (Criteria) this; + } + + public Criteria andBillReceiverEmailLessThan(String value) { + addCriterion("bill_receiver_email <", value, "billReceiverEmail"); + return (Criteria) this; + } + + public Criteria andBillReceiverEmailLessThanOrEqualTo(String value) { + addCriterion("bill_receiver_email <=", value, "billReceiverEmail"); + return (Criteria) this; + } + + public Criteria andBillReceiverEmailLike(String value) { + addCriterion("bill_receiver_email like", value, "billReceiverEmail"); + return (Criteria) this; + } + + public Criteria andBillReceiverEmailNotLike(String value) { + addCriterion("bill_receiver_email not like", value, "billReceiverEmail"); + return (Criteria) this; + } + + public Criteria andBillReceiverEmailIn(List values) { + addCriterion("bill_receiver_email in", values, "billReceiverEmail"); + return (Criteria) this; + } + + public Criteria andBillReceiverEmailNotIn(List values) { + addCriterion("bill_receiver_email not in", values, "billReceiverEmail"); + return (Criteria) this; + } + + public Criteria andBillReceiverEmailBetween(String value1, String value2) { + addCriterion("bill_receiver_email between", value1, value2, "billReceiverEmail"); + return (Criteria) this; + } + + public Criteria andBillReceiverEmailNotBetween(String value1, String value2) { + addCriterion("bill_receiver_email not between", value1, value2, "billReceiverEmail"); + return (Criteria) this; + } + + public Criteria andReceiverNameIsNull() { + addCriterion("receiver_name is null"); + return (Criteria) this; + } + + public Criteria andReceiverNameIsNotNull() { + addCriterion("receiver_name is not null"); + return (Criteria) this; + } + + public Criteria andReceiverNameEqualTo(String value) { + addCriterion("receiver_name =", value, "receiverName"); + return (Criteria) this; + } + + public Criteria andReceiverNameNotEqualTo(String value) { + addCriterion("receiver_name <>", value, "receiverName"); + return (Criteria) this; + } + + public Criteria andReceiverNameGreaterThan(String value) { + addCriterion("receiver_name >", value, "receiverName"); + return (Criteria) this; + } + + public Criteria andReceiverNameGreaterThanOrEqualTo(String value) { + addCriterion("receiver_name >=", value, "receiverName"); + return (Criteria) this; + } + + public Criteria andReceiverNameLessThan(String value) { + addCriterion("receiver_name <", value, "receiverName"); + return (Criteria) this; + } + + public Criteria andReceiverNameLessThanOrEqualTo(String value) { + addCriterion("receiver_name <=", value, "receiverName"); + return (Criteria) this; + } + + public Criteria andReceiverNameLike(String value) { + addCriterion("receiver_name like", value, "receiverName"); + return (Criteria) this; + } + + public Criteria andReceiverNameNotLike(String value) { + addCriterion("receiver_name not like", value, "receiverName"); + return (Criteria) this; + } + + public Criteria andReceiverNameIn(List values) { + addCriterion("receiver_name in", values, "receiverName"); + return (Criteria) this; + } + + public Criteria andReceiverNameNotIn(List values) { + addCriterion("receiver_name not in", values, "receiverName"); + return (Criteria) this; + } + + public Criteria andReceiverNameBetween(String value1, String value2) { + addCriterion("receiver_name between", value1, value2, "receiverName"); + return (Criteria) this; + } + + public Criteria andReceiverNameNotBetween(String value1, String value2) { + addCriterion("receiver_name not between", value1, value2, "receiverName"); + return (Criteria) this; + } + + public Criteria andReceiverPhoneIsNull() { + addCriterion("receiver_phone is null"); + return (Criteria) this; + } + + public Criteria andReceiverPhoneIsNotNull() { + addCriterion("receiver_phone is not null"); + return (Criteria) this; + } + + public Criteria andReceiverPhoneEqualTo(String value) { + addCriterion("receiver_phone =", value, "receiverPhone"); + return (Criteria) this; + } + + public Criteria andReceiverPhoneNotEqualTo(String value) { + addCriterion("receiver_phone <>", value, "receiverPhone"); + return (Criteria) this; + } + + public Criteria andReceiverPhoneGreaterThan(String value) { + addCriterion("receiver_phone >", value, "receiverPhone"); + return (Criteria) this; + } + + public Criteria andReceiverPhoneGreaterThanOrEqualTo(String value) { + addCriterion("receiver_phone >=", value, "receiverPhone"); + return (Criteria) this; + } + + public Criteria andReceiverPhoneLessThan(String value) { + addCriterion("receiver_phone <", value, "receiverPhone"); + return (Criteria) this; + } + + public Criteria andReceiverPhoneLessThanOrEqualTo(String value) { + addCriterion("receiver_phone <=", value, "receiverPhone"); + return (Criteria) this; + } + + public Criteria andReceiverPhoneLike(String value) { + addCriterion("receiver_phone like", value, "receiverPhone"); + return (Criteria) this; + } + + public Criteria andReceiverPhoneNotLike(String value) { + addCriterion("receiver_phone not like", value, "receiverPhone"); + return (Criteria) this; + } + + public Criteria andReceiverPhoneIn(List values) { + addCriterion("receiver_phone in", values, "receiverPhone"); + return (Criteria) this; + } + + public Criteria andReceiverPhoneNotIn(List values) { + addCriterion("receiver_phone not in", values, "receiverPhone"); + return (Criteria) this; + } + + public Criteria andReceiverPhoneBetween(String value1, String value2) { + addCriterion("receiver_phone between", value1, value2, "receiverPhone"); + return (Criteria) this; + } + + public Criteria andReceiverPhoneNotBetween(String value1, String value2) { + addCriterion("receiver_phone not between", value1, value2, "receiverPhone"); + return (Criteria) this; + } + + public Criteria andReceiverPostCodeIsNull() { + addCriterion("receiver_post_code is null"); + return (Criteria) this; + } + + public Criteria andReceiverPostCodeIsNotNull() { + addCriterion("receiver_post_code is not null"); + return (Criteria) this; + } + + public Criteria andReceiverPostCodeEqualTo(String value) { + addCriterion("receiver_post_code =", value, "receiverPostCode"); + return (Criteria) this; + } + + public Criteria andReceiverPostCodeNotEqualTo(String value) { + addCriterion("receiver_post_code <>", value, "receiverPostCode"); + return (Criteria) this; + } + + public Criteria andReceiverPostCodeGreaterThan(String value) { + addCriterion("receiver_post_code >", value, "receiverPostCode"); + return (Criteria) this; + } + + public Criteria andReceiverPostCodeGreaterThanOrEqualTo(String value) { + addCriterion("receiver_post_code >=", value, "receiverPostCode"); + return (Criteria) this; + } + + public Criteria andReceiverPostCodeLessThan(String value) { + addCriterion("receiver_post_code <", value, "receiverPostCode"); + return (Criteria) this; + } + + public Criteria andReceiverPostCodeLessThanOrEqualTo(String value) { + addCriterion("receiver_post_code <=", value, "receiverPostCode"); + return (Criteria) this; + } + + public Criteria andReceiverPostCodeLike(String value) { + addCriterion("receiver_post_code like", value, "receiverPostCode"); + return (Criteria) this; + } + + public Criteria andReceiverPostCodeNotLike(String value) { + addCriterion("receiver_post_code not like", value, "receiverPostCode"); + return (Criteria) this; + } + + public Criteria andReceiverPostCodeIn(List values) { + addCriterion("receiver_post_code in", values, "receiverPostCode"); + return (Criteria) this; + } + + public Criteria andReceiverPostCodeNotIn(List values) { + addCriterion("receiver_post_code not in", values, "receiverPostCode"); + return (Criteria) this; + } + + public Criteria andReceiverPostCodeBetween(String value1, String value2) { + addCriterion("receiver_post_code between", value1, value2, "receiverPostCode"); + return (Criteria) this; + } + + public Criteria andReceiverPostCodeNotBetween(String value1, String value2) { + addCriterion("receiver_post_code not between", value1, value2, "receiverPostCode"); + return (Criteria) this; + } + + public Criteria andReceiverProvinceIsNull() { + addCriterion("receiver_province is null"); + return (Criteria) this; + } + + public Criteria andReceiverProvinceIsNotNull() { + addCriterion("receiver_province is not null"); + return (Criteria) this; + } + + public Criteria andReceiverProvinceEqualTo(String value) { + addCriterion("receiver_province =", value, "receiverProvince"); + return (Criteria) this; + } + + public Criteria andReceiverProvinceNotEqualTo(String value) { + addCriterion("receiver_province <>", value, "receiverProvince"); + return (Criteria) this; + } + + public Criteria andReceiverProvinceGreaterThan(String value) { + addCriterion("receiver_province >", value, "receiverProvince"); + return (Criteria) this; + } + + public Criteria andReceiverProvinceGreaterThanOrEqualTo(String value) { + addCriterion("receiver_province >=", value, "receiverProvince"); + return (Criteria) this; + } + + public Criteria andReceiverProvinceLessThan(String value) { + addCriterion("receiver_province <", value, "receiverProvince"); + return (Criteria) this; + } + + public Criteria andReceiverProvinceLessThanOrEqualTo(String value) { + addCriterion("receiver_province <=", value, "receiverProvince"); + return (Criteria) this; + } + + public Criteria andReceiverProvinceLike(String value) { + addCriterion("receiver_province like", value, "receiverProvince"); + return (Criteria) this; + } + + public Criteria andReceiverProvinceNotLike(String value) { + addCriterion("receiver_province not like", value, "receiverProvince"); + return (Criteria) this; + } + + public Criteria andReceiverProvinceIn(List values) { + addCriterion("receiver_province in", values, "receiverProvince"); + return (Criteria) this; + } + + public Criteria andReceiverProvinceNotIn(List values) { + addCriterion("receiver_province not in", values, "receiverProvince"); + return (Criteria) this; + } + + public Criteria andReceiverProvinceBetween(String value1, String value2) { + addCriterion("receiver_province between", value1, value2, "receiverProvince"); + return (Criteria) this; + } + + public Criteria andReceiverProvinceNotBetween(String value1, String value2) { + addCriterion("receiver_province not between", value1, value2, "receiverProvince"); + return (Criteria) this; + } + + public Criteria andReceiverCityIsNull() { + addCriterion("receiver_city is null"); + return (Criteria) this; + } + + public Criteria andReceiverCityIsNotNull() { + addCriterion("receiver_city is not null"); + return (Criteria) this; + } + + public Criteria andReceiverCityEqualTo(String value) { + addCriterion("receiver_city =", value, "receiverCity"); + return (Criteria) this; + } + + public Criteria andReceiverCityNotEqualTo(String value) { + addCriterion("receiver_city <>", value, "receiverCity"); + return (Criteria) this; + } + + public Criteria andReceiverCityGreaterThan(String value) { + addCriterion("receiver_city >", value, "receiverCity"); + return (Criteria) this; + } + + public Criteria andReceiverCityGreaterThanOrEqualTo(String value) { + addCriterion("receiver_city >=", value, "receiverCity"); + return (Criteria) this; + } + + public Criteria andReceiverCityLessThan(String value) { + addCriterion("receiver_city <", value, "receiverCity"); + return (Criteria) this; + } + + public Criteria andReceiverCityLessThanOrEqualTo(String value) { + addCriterion("receiver_city <=", value, "receiverCity"); + return (Criteria) this; + } + + public Criteria andReceiverCityLike(String value) { + addCriterion("receiver_city like", value, "receiverCity"); + return (Criteria) this; + } + + public Criteria andReceiverCityNotLike(String value) { + addCriterion("receiver_city not like", value, "receiverCity"); + return (Criteria) this; + } + + public Criteria andReceiverCityIn(List values) { + addCriterion("receiver_city in", values, "receiverCity"); + return (Criteria) this; + } + + public Criteria andReceiverCityNotIn(List values) { + addCriterion("receiver_city not in", values, "receiverCity"); + return (Criteria) this; + } + + public Criteria andReceiverCityBetween(String value1, String value2) { + addCriterion("receiver_city between", value1, value2, "receiverCity"); + return (Criteria) this; + } + + public Criteria andReceiverCityNotBetween(String value1, String value2) { + addCriterion("receiver_city not between", value1, value2, "receiverCity"); + return (Criteria) this; + } + + public Criteria andReceiverRegionIsNull() { + addCriterion("receiver_region is null"); + return (Criteria) this; + } + + public Criteria andReceiverRegionIsNotNull() { + addCriterion("receiver_region is not null"); + return (Criteria) this; + } + + public Criteria andReceiverRegionEqualTo(String value) { + addCriterion("receiver_region =", value, "receiverRegion"); + return (Criteria) this; + } + + public Criteria andReceiverRegionNotEqualTo(String value) { + addCriterion("receiver_region <>", value, "receiverRegion"); + return (Criteria) this; + } + + public Criteria andReceiverRegionGreaterThan(String value) { + addCriterion("receiver_region >", value, "receiverRegion"); + return (Criteria) this; + } + + public Criteria andReceiverRegionGreaterThanOrEqualTo(String value) { + addCriterion("receiver_region >=", value, "receiverRegion"); + return (Criteria) this; + } + + public Criteria andReceiverRegionLessThan(String value) { + addCriterion("receiver_region <", value, "receiverRegion"); + return (Criteria) this; + } + + public Criteria andReceiverRegionLessThanOrEqualTo(String value) { + addCriterion("receiver_region <=", value, "receiverRegion"); + return (Criteria) this; + } + + public Criteria andReceiverRegionLike(String value) { + addCriterion("receiver_region like", value, "receiverRegion"); + return (Criteria) this; + } + + public Criteria andReceiverRegionNotLike(String value) { + addCriterion("receiver_region not like", value, "receiverRegion"); + return (Criteria) this; + } + + public Criteria andReceiverRegionIn(List values) { + addCriterion("receiver_region in", values, "receiverRegion"); + return (Criteria) this; + } + + public Criteria andReceiverRegionNotIn(List values) { + addCriterion("receiver_region not in", values, "receiverRegion"); + return (Criteria) this; + } + + public Criteria andReceiverRegionBetween(String value1, String value2) { + addCriterion("receiver_region between", value1, value2, "receiverRegion"); + return (Criteria) this; + } + + public Criteria andReceiverRegionNotBetween(String value1, String value2) { + addCriterion("receiver_region not between", value1, value2, "receiverRegion"); + return (Criteria) this; + } + + public Criteria andReceiverDetailAddressIsNull() { + addCriterion("receiver_detail_address is null"); + return (Criteria) this; + } + + public Criteria andReceiverDetailAddressIsNotNull() { + addCriterion("receiver_detail_address is not null"); + return (Criteria) this; + } + + public Criteria andReceiverDetailAddressEqualTo(String value) { + addCriterion("receiver_detail_address =", value, "receiverDetailAddress"); + return (Criteria) this; + } + + public Criteria andReceiverDetailAddressNotEqualTo(String value) { + addCriterion("receiver_detail_address <>", value, "receiverDetailAddress"); + return (Criteria) this; + } + + public Criteria andReceiverDetailAddressGreaterThan(String value) { + addCriterion("receiver_detail_address >", value, "receiverDetailAddress"); + return (Criteria) this; + } + + public Criteria andReceiverDetailAddressGreaterThanOrEqualTo(String value) { + addCriterion("receiver_detail_address >=", value, "receiverDetailAddress"); + return (Criteria) this; + } + + public Criteria andReceiverDetailAddressLessThan(String value) { + addCriterion("receiver_detail_address <", value, "receiverDetailAddress"); + return (Criteria) this; + } + + public Criteria andReceiverDetailAddressLessThanOrEqualTo(String value) { + addCriterion("receiver_detail_address <=", value, "receiverDetailAddress"); + return (Criteria) this; + } + + public Criteria andReceiverDetailAddressLike(String value) { + addCriterion("receiver_detail_address like", value, "receiverDetailAddress"); + return (Criteria) this; + } + + public Criteria andReceiverDetailAddressNotLike(String value) { + addCriterion("receiver_detail_address not like", value, "receiverDetailAddress"); + return (Criteria) this; + } + + public Criteria andReceiverDetailAddressIn(List values) { + addCriterion("receiver_detail_address in", values, "receiverDetailAddress"); + return (Criteria) this; + } + + public Criteria andReceiverDetailAddressNotIn(List values) { + addCriterion("receiver_detail_address not in", values, "receiverDetailAddress"); + return (Criteria) this; + } + + public Criteria andReceiverDetailAddressBetween(String value1, String value2) { + addCriterion("receiver_detail_address between", value1, value2, "receiverDetailAddress"); + return (Criteria) this; + } + + public Criteria andReceiverDetailAddressNotBetween(String value1, String value2) { + addCriterion("receiver_detail_address not between", value1, value2, "receiverDetailAddress"); + 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 values) { + addCriterion("note in", values, "note"); + return (Criteria) this; + } + + public Criteria andNoteNotIn(List 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 andConfirmStatusIsNull() { + addCriterion("confirm_status is null"); + return (Criteria) this; + } + + public Criteria andConfirmStatusIsNotNull() { + addCriterion("confirm_status is not null"); + return (Criteria) this; + } + + public Criteria andConfirmStatusEqualTo(Integer value) { + addCriterion("confirm_status =", value, "confirmStatus"); + return (Criteria) this; + } + + public Criteria andConfirmStatusNotEqualTo(Integer value) { + addCriterion("confirm_status <>", value, "confirmStatus"); + return (Criteria) this; + } + + public Criteria andConfirmStatusGreaterThan(Integer value) { + addCriterion("confirm_status >", value, "confirmStatus"); + return (Criteria) this; + } + + public Criteria andConfirmStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("confirm_status >=", value, "confirmStatus"); + return (Criteria) this; + } + + public Criteria andConfirmStatusLessThan(Integer value) { + addCriterion("confirm_status <", value, "confirmStatus"); + return (Criteria) this; + } + + public Criteria andConfirmStatusLessThanOrEqualTo(Integer value) { + addCriterion("confirm_status <=", value, "confirmStatus"); + return (Criteria) this; + } + + public Criteria andConfirmStatusIn(List values) { + addCriterion("confirm_status in", values, "confirmStatus"); + return (Criteria) this; + } + + public Criteria andConfirmStatusNotIn(List values) { + addCriterion("confirm_status not in", values, "confirmStatus"); + return (Criteria) this; + } + + public Criteria andConfirmStatusBetween(Integer value1, Integer value2) { + addCriterion("confirm_status between", value1, value2, "confirmStatus"); + return (Criteria) this; + } + + public Criteria andConfirmStatusNotBetween(Integer value1, Integer value2) { + addCriterion("confirm_status not between", value1, value2, "confirmStatus"); + 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 values) { + addCriterion("delete_status in", values, "deleteStatus"); + return (Criteria) this; + } + + public Criteria andDeleteStatusNotIn(List 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 andUseIntegrationIsNull() { + addCriterion("use_integration is null"); + return (Criteria) this; + } + + public Criteria andUseIntegrationIsNotNull() { + addCriterion("use_integration is not null"); + return (Criteria) this; + } + + public Criteria andUseIntegrationEqualTo(Integer value) { + addCriterion("use_integration =", value, "useIntegration"); + return (Criteria) this; + } + + public Criteria andUseIntegrationNotEqualTo(Integer value) { + addCriterion("use_integration <>", value, "useIntegration"); + return (Criteria) this; + } + + public Criteria andUseIntegrationGreaterThan(Integer value) { + addCriterion("use_integration >", value, "useIntegration"); + return (Criteria) this; + } + + public Criteria andUseIntegrationGreaterThanOrEqualTo(Integer value) { + addCriterion("use_integration >=", value, "useIntegration"); + return (Criteria) this; + } + + public Criteria andUseIntegrationLessThan(Integer value) { + addCriterion("use_integration <", value, "useIntegration"); + return (Criteria) this; + } + + public Criteria andUseIntegrationLessThanOrEqualTo(Integer value) { + addCriterion("use_integration <=", value, "useIntegration"); + return (Criteria) this; + } + + public Criteria andUseIntegrationIn(List values) { + addCriterion("use_integration in", values, "useIntegration"); + return (Criteria) this; + } + + public Criteria andUseIntegrationNotIn(List values) { + addCriterion("use_integration not in", values, "useIntegration"); + return (Criteria) this; + } + + public Criteria andUseIntegrationBetween(Integer value1, Integer value2) { + addCriterion("use_integration between", value1, value2, "useIntegration"); + return (Criteria) this; + } + + public Criteria andUseIntegrationNotBetween(Integer value1, Integer value2) { + addCriterion("use_integration not between", value1, value2, "useIntegration"); + return (Criteria) this; + } + + public Criteria andPaymentTimeIsNull() { + addCriterion("payment_time is null"); + return (Criteria) this; + } + + public Criteria andPaymentTimeIsNotNull() { + addCriterion("payment_time is not null"); + return (Criteria) this; + } + + public Criteria andPaymentTimeEqualTo(Date value) { + addCriterion("payment_time =", value, "paymentTime"); + return (Criteria) this; + } + + public Criteria andPaymentTimeNotEqualTo(Date value) { + addCriterion("payment_time <>", value, "paymentTime"); + return (Criteria) this; + } + + public Criteria andPaymentTimeGreaterThan(Date value) { + addCriterion("payment_time >", value, "paymentTime"); + return (Criteria) this; + } + + public Criteria andPaymentTimeGreaterThanOrEqualTo(Date value) { + addCriterion("payment_time >=", value, "paymentTime"); + return (Criteria) this; + } + + public Criteria andPaymentTimeLessThan(Date value) { + addCriterion("payment_time <", value, "paymentTime"); + return (Criteria) this; + } + + public Criteria andPaymentTimeLessThanOrEqualTo(Date value) { + addCriterion("payment_time <=", value, "paymentTime"); + return (Criteria) this; + } + + public Criteria andPaymentTimeIn(List values) { + addCriterion("payment_time in", values, "paymentTime"); + return (Criteria) this; + } + + public Criteria andPaymentTimeNotIn(List values) { + addCriterion("payment_time not in", values, "paymentTime"); + return (Criteria) this; + } + + public Criteria andPaymentTimeBetween(Date value1, Date value2) { + addCriterion("payment_time between", value1, value2, "paymentTime"); + return (Criteria) this; + } + + public Criteria andPaymentTimeNotBetween(Date value1, Date value2) { + addCriterion("payment_time not between", value1, value2, "paymentTime"); + return (Criteria) this; + } + + public Criteria andDeliveryTimeIsNull() { + addCriterion("delivery_time is null"); + return (Criteria) this; + } + + public Criteria andDeliveryTimeIsNotNull() { + addCriterion("delivery_time is not null"); + return (Criteria) this; + } + + public Criteria andDeliveryTimeEqualTo(Date value) { + addCriterion("delivery_time =", value, "deliveryTime"); + return (Criteria) this; + } + + public Criteria andDeliveryTimeNotEqualTo(Date value) { + addCriterion("delivery_time <>", value, "deliveryTime"); + return (Criteria) this; + } + + public Criteria andDeliveryTimeGreaterThan(Date value) { + addCriterion("delivery_time >", value, "deliveryTime"); + return (Criteria) this; + } + + public Criteria andDeliveryTimeGreaterThanOrEqualTo(Date value) { + addCriterion("delivery_time >=", value, "deliveryTime"); + return (Criteria) this; + } + + public Criteria andDeliveryTimeLessThan(Date value) { + addCriterion("delivery_time <", value, "deliveryTime"); + return (Criteria) this; + } + + public Criteria andDeliveryTimeLessThanOrEqualTo(Date value) { + addCriterion("delivery_time <=", value, "deliveryTime"); + return (Criteria) this; + } + + public Criteria andDeliveryTimeIn(List values) { + addCriterion("delivery_time in", values, "deliveryTime"); + return (Criteria) this; + } + + public Criteria andDeliveryTimeNotIn(List values) { + addCriterion("delivery_time not in", values, "deliveryTime"); + return (Criteria) this; + } + + public Criteria andDeliveryTimeBetween(Date value1, Date value2) { + addCriterion("delivery_time between", value1, value2, "deliveryTime"); + return (Criteria) this; + } + + public Criteria andDeliveryTimeNotBetween(Date value1, Date value2) { + addCriterion("delivery_time not between", value1, value2, "deliveryTime"); + return (Criteria) this; + } + + public Criteria andReceiveTimeIsNull() { + addCriterion("receive_time is null"); + return (Criteria) this; + } + + public Criteria andReceiveTimeIsNotNull() { + addCriterion("receive_time is not null"); + return (Criteria) this; + } + + public Criteria andReceiveTimeEqualTo(Date value) { + addCriterion("receive_time =", value, "receiveTime"); + return (Criteria) this; + } + + public Criteria andReceiveTimeNotEqualTo(Date value) { + addCriterion("receive_time <>", value, "receiveTime"); + return (Criteria) this; + } + + public Criteria andReceiveTimeGreaterThan(Date value) { + addCriterion("receive_time >", value, "receiveTime"); + return (Criteria) this; + } + + public Criteria andReceiveTimeGreaterThanOrEqualTo(Date value) { + addCriterion("receive_time >=", value, "receiveTime"); + return (Criteria) this; + } + + public Criteria andReceiveTimeLessThan(Date value) { + addCriterion("receive_time <", value, "receiveTime"); + return (Criteria) this; + } + + public Criteria andReceiveTimeLessThanOrEqualTo(Date value) { + addCriterion("receive_time <=", value, "receiveTime"); + return (Criteria) this; + } + + public Criteria andReceiveTimeIn(List values) { + addCriterion("receive_time in", values, "receiveTime"); + return (Criteria) this; + } + + public Criteria andReceiveTimeNotIn(List values) { + addCriterion("receive_time not in", values, "receiveTime"); + return (Criteria) this; + } + + public Criteria andReceiveTimeBetween(Date value1, Date value2) { + addCriterion("receive_time between", value1, value2, "receiveTime"); + return (Criteria) this; + } + + public Criteria andReceiveTimeNotBetween(Date value1, Date value2) { + addCriterion("receive_time not between", value1, value2, "receiveTime"); + return (Criteria) this; + } + + public Criteria andCommentTimeIsNull() { + addCriterion("comment_time is null"); + return (Criteria) this; + } + + public Criteria andCommentTimeIsNotNull() { + addCriterion("comment_time is not null"); + return (Criteria) this; + } + + public Criteria andCommentTimeEqualTo(Date value) { + addCriterion("comment_time =", value, "commentTime"); + return (Criteria) this; + } + + public Criteria andCommentTimeNotEqualTo(Date value) { + addCriterion("comment_time <>", value, "commentTime"); + return (Criteria) this; + } + + public Criteria andCommentTimeGreaterThan(Date value) { + addCriterion("comment_time >", value, "commentTime"); + return (Criteria) this; + } + + public Criteria andCommentTimeGreaterThanOrEqualTo(Date value) { + addCriterion("comment_time >=", value, "commentTime"); + return (Criteria) this; + } + + public Criteria andCommentTimeLessThan(Date value) { + addCriterion("comment_time <", value, "commentTime"); + return (Criteria) this; + } + + public Criteria andCommentTimeLessThanOrEqualTo(Date value) { + addCriterion("comment_time <=", value, "commentTime"); + return (Criteria) this; + } + + public Criteria andCommentTimeIn(List values) { + addCriterion("comment_time in", values, "commentTime"); + return (Criteria) this; + } + + public Criteria andCommentTimeNotIn(List values) { + addCriterion("comment_time not in", values, "commentTime"); + return (Criteria) this; + } + + public Criteria andCommentTimeBetween(Date value1, Date value2) { + addCriterion("comment_time between", value1, value2, "commentTime"); + return (Criteria) this; + } + + public Criteria andCommentTimeNotBetween(Date value1, Date value2) { + addCriterion("comment_time not between", value1, value2, "commentTime"); + return (Criteria) this; + } + + public Criteria andModifyTimeIsNull() { + addCriterion("modify_time is null"); + return (Criteria) this; + } + + public Criteria andModifyTimeIsNotNull() { + addCriterion("modify_time is not null"); + return (Criteria) this; + } + + public Criteria andModifyTimeEqualTo(Date value) { + addCriterion("modify_time =", value, "modifyTime"); + return (Criteria) this; + } + + public Criteria andModifyTimeNotEqualTo(Date value) { + addCriterion("modify_time <>", value, "modifyTime"); + return (Criteria) this; + } + + public Criteria andModifyTimeGreaterThan(Date value) { + addCriterion("modify_time >", value, "modifyTime"); + return (Criteria) this; + } + + public Criteria andModifyTimeGreaterThanOrEqualTo(Date value) { + addCriterion("modify_time >=", value, "modifyTime"); + return (Criteria) this; + } + + public Criteria andModifyTimeLessThan(Date value) { + addCriterion("modify_time <", value, "modifyTime"); + return (Criteria) this; + } + + public Criteria andModifyTimeLessThanOrEqualTo(Date value) { + addCriterion("modify_time <=", value, "modifyTime"); + return (Criteria) this; + } + + public Criteria andModifyTimeIn(List values) { + addCriterion("modify_time in", values, "modifyTime"); + return (Criteria) this; + } + + public Criteria andModifyTimeNotIn(List values) { + addCriterion("modify_time not in", values, "modifyTime"); + return (Criteria) this; + } + + public Criteria andModifyTimeBetween(Date value1, Date value2) { + addCriterion("modify_time between", value1, value2, "modifyTime"); + return (Criteria) this; + } + + public Criteria andModifyTimeNotBetween(Date value1, Date value2) { + addCriterion("modify_time not between", value1, value2, "modifyTime"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderItem.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderItem.java new file mode 100644 index 000000000..d904f3127 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderItem.java @@ -0,0 +1,264 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.math.BigDecimal; + +public class OmsOrderItem implements Serializable { + private Long id; + + @Schema(title = "订单id") + private Long orderId; + + @Schema(title = "订单编号") + private String orderSn; + + private Long productId; + + private String productPic; + + private String productName; + + private String productBrand; + + private String productSn; + + @Schema(title = "销售价格") + private BigDecimal productPrice; + + @Schema(title = "购买数量") + private Integer productQuantity; + + @Schema(title = "商品sku编号") + private Long productSkuId; + + @Schema(title = "商品sku条码") + private String productSkuCode; + + @Schema(title = "商品分类id") + private Long productCategoryId; + + @Schema(title = "商品促销名称") + private String promotionName; + + @Schema(title = "商品促销分解金额") + private BigDecimal promotionAmount; + + @Schema(title = "优惠券优惠分解金额") + private BigDecimal couponAmount; + + @Schema(title = "积分优惠分解金额") + private BigDecimal integrationAmount; + + @Schema(title = "该商品经过优惠后的分解金额") + private BigDecimal realAmount; + + private Integer giftIntegration; + + private Integer giftGrowth; + + @Schema(title = "商品销售属性:[{'key':'颜色','value':'颜色'},{'key':'容量','value':'4G'}]") + private String productAttr; + + 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 getOrderSn() { + return orderSn; + } + + public void setOrderSn(String orderSn) { + this.orderSn = orderSn; + } + + public Long getProductId() { + return productId; + } + + public void setProductId(Long productId) { + this.productId = productId; + } + + public String getProductPic() { + return productPic; + } + + public void setProductPic(String productPic) { + this.productPic = productPic; + } + + public String getProductName() { + return productName; + } + + public void setProductName(String productName) { + this.productName = productName; + } + + public String getProductBrand() { + return productBrand; + } + + public void setProductBrand(String productBrand) { + this.productBrand = productBrand; + } + + public String getProductSn() { + return productSn; + } + + public void setProductSn(String productSn) { + this.productSn = productSn; + } + + public BigDecimal getProductPrice() { + return productPrice; + } + + public void setProductPrice(BigDecimal productPrice) { + this.productPrice = productPrice; + } + + public Integer getProductQuantity() { + return productQuantity; + } + + public void setProductQuantity(Integer productQuantity) { + this.productQuantity = productQuantity; + } + + public Long getProductSkuId() { + return productSkuId; + } + + public void setProductSkuId(Long productSkuId) { + this.productSkuId = productSkuId; + } + + public String getProductSkuCode() { + return productSkuCode; + } + + public void setProductSkuCode(String productSkuCode) { + this.productSkuCode = productSkuCode; + } + + public Long getProductCategoryId() { + return productCategoryId; + } + + public void setProductCategoryId(Long productCategoryId) { + this.productCategoryId = productCategoryId; + } + + public String getPromotionName() { + return promotionName; + } + + public void setPromotionName(String promotionName) { + this.promotionName = promotionName; + } + + public BigDecimal getPromotionAmount() { + return promotionAmount; + } + + public void setPromotionAmount(BigDecimal promotionAmount) { + this.promotionAmount = promotionAmount; + } + + public BigDecimal getCouponAmount() { + return couponAmount; + } + + public void setCouponAmount(BigDecimal couponAmount) { + this.couponAmount = couponAmount; + } + + public BigDecimal getIntegrationAmount() { + return integrationAmount; + } + + public void setIntegrationAmount(BigDecimal integrationAmount) { + this.integrationAmount = integrationAmount; + } + + public BigDecimal getRealAmount() { + return realAmount; + } + + public void setRealAmount(BigDecimal realAmount) { + this.realAmount = realAmount; + } + + public Integer getGiftIntegration() { + return giftIntegration; + } + + public void setGiftIntegration(Integer giftIntegration) { + this.giftIntegration = giftIntegration; + } + + public Integer getGiftGrowth() { + return giftGrowth; + } + + public void setGiftGrowth(Integer giftGrowth) { + this.giftGrowth = giftGrowth; + } + + public String getProductAttr() { + return productAttr; + } + + public void setProductAttr(String productAttr) { + this.productAttr = productAttr; + } + + @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(", orderSn=").append(orderSn); + sb.append(", productId=").append(productId); + sb.append(", productPic=").append(productPic); + sb.append(", productName=").append(productName); + sb.append(", productBrand=").append(productBrand); + sb.append(", productSn=").append(productSn); + sb.append(", productPrice=").append(productPrice); + sb.append(", productQuantity=").append(productQuantity); + sb.append(", productSkuId=").append(productSkuId); + sb.append(", productSkuCode=").append(productSkuCode); + sb.append(", productCategoryId=").append(productCategoryId); + sb.append(", promotionName=").append(promotionName); + sb.append(", promotionAmount=").append(promotionAmount); + sb.append(", couponAmount=").append(couponAmount); + sb.append(", integrationAmount=").append(integrationAmount); + sb.append(", realAmount=").append(realAmount); + sb.append(", giftIntegration=").append(giftIntegration); + sb.append(", giftGrowth=").append(giftGrowth); + sb.append(", productAttr=").append(productAttr); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderItemExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderItemExample.java new file mode 100644 index 000000000..e3b06a5c0 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderItemExample.java @@ -0,0 +1,1540 @@ +package com.macro.mall.model; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +public class OmsOrderItemExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OmsOrderItemExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 andOrderIdIsNull() { + addCriterion("order_id is null"); + return (Criteria) this; + } + + public Criteria andOrderIdIsNotNull() { + addCriterion("order_id is not null"); + return (Criteria) this; + } + + public Criteria andOrderIdEqualTo(Long value) { + addCriterion("order_id =", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotEqualTo(Long value) { + addCriterion("order_id <>", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdGreaterThan(Long value) { + addCriterion("order_id >", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdGreaterThanOrEqualTo(Long value) { + addCriterion("order_id >=", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdLessThan(Long value) { + addCriterion("order_id <", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdLessThanOrEqualTo(Long value) { + addCriterion("order_id <=", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdIn(List values) { + addCriterion("order_id in", values, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotIn(List values) { + addCriterion("order_id not in", values, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdBetween(Long value1, Long value2) { + addCriterion("order_id between", value1, value2, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotBetween(Long value1, Long value2) { + addCriterion("order_id not between", value1, value2, "orderId"); + 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 values) { + addCriterion("order_sn in", values, "orderSn"); + return (Criteria) this; + } + + public Criteria andOrderSnNotIn(List 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 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 values) { + addCriterion("product_id in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotIn(List 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 andProductPicIsNull() { + addCriterion("product_pic is null"); + return (Criteria) this; + } + + public Criteria andProductPicIsNotNull() { + addCriterion("product_pic is not null"); + return (Criteria) this; + } + + public Criteria andProductPicEqualTo(String value) { + addCriterion("product_pic =", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicNotEqualTo(String value) { + addCriterion("product_pic <>", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicGreaterThan(String value) { + addCriterion("product_pic >", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicGreaterThanOrEqualTo(String value) { + addCriterion("product_pic >=", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicLessThan(String value) { + addCriterion("product_pic <", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicLessThanOrEqualTo(String value) { + addCriterion("product_pic <=", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicLike(String value) { + addCriterion("product_pic like", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicNotLike(String value) { + addCriterion("product_pic not like", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicIn(List values) { + addCriterion("product_pic in", values, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicNotIn(List values) { + addCriterion("product_pic not in", values, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicBetween(String value1, String value2) { + addCriterion("product_pic between", value1, value2, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicNotBetween(String value1, String value2) { + addCriterion("product_pic not between", value1, value2, "productPic"); + 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 values) { + addCriterion("product_name in", values, "productName"); + return (Criteria) this; + } + + public Criteria andProductNameNotIn(List 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 andProductBrandIsNull() { + addCriterion("product_brand is null"); + return (Criteria) this; + } + + public Criteria andProductBrandIsNotNull() { + addCriterion("product_brand is not null"); + return (Criteria) this; + } + + public Criteria andProductBrandEqualTo(String value) { + addCriterion("product_brand =", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandNotEqualTo(String value) { + addCriterion("product_brand <>", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandGreaterThan(String value) { + addCriterion("product_brand >", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandGreaterThanOrEqualTo(String value) { + addCriterion("product_brand >=", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandLessThan(String value) { + addCriterion("product_brand <", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandLessThanOrEqualTo(String value) { + addCriterion("product_brand <=", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandLike(String value) { + addCriterion("product_brand like", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandNotLike(String value) { + addCriterion("product_brand not like", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandIn(List values) { + addCriterion("product_brand in", values, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandNotIn(List values) { + addCriterion("product_brand not in", values, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandBetween(String value1, String value2) { + addCriterion("product_brand between", value1, value2, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandNotBetween(String value1, String value2) { + addCriterion("product_brand not between", value1, value2, "productBrand"); + 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 values) { + addCriterion("product_sn in", values, "productSn"); + return (Criteria) this; + } + + public Criteria andProductSnNotIn(List 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 andProductPriceIsNull() { + addCriterion("product_price is null"); + return (Criteria) this; + } + + public Criteria andProductPriceIsNotNull() { + addCriterion("product_price is not null"); + return (Criteria) this; + } + + public Criteria andProductPriceEqualTo(BigDecimal value) { + addCriterion("product_price =", value, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceNotEqualTo(BigDecimal value) { + addCriterion("product_price <>", value, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceGreaterThan(BigDecimal value) { + addCriterion("product_price >", value, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("product_price >=", value, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceLessThan(BigDecimal value) { + addCriterion("product_price <", value, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("product_price <=", value, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceIn(List values) { + addCriterion("product_price in", values, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceNotIn(List values) { + addCriterion("product_price not in", values, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("product_price between", value1, value2, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("product_price not between", value1, value2, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductQuantityIsNull() { + addCriterion("product_quantity is null"); + return (Criteria) this; + } + + public Criteria andProductQuantityIsNotNull() { + addCriterion("product_quantity is not null"); + return (Criteria) this; + } + + public Criteria andProductQuantityEqualTo(Integer value) { + addCriterion("product_quantity =", value, "productQuantity"); + return (Criteria) this; + } + + public Criteria andProductQuantityNotEqualTo(Integer value) { + addCriterion("product_quantity <>", value, "productQuantity"); + return (Criteria) this; + } + + public Criteria andProductQuantityGreaterThan(Integer value) { + addCriterion("product_quantity >", value, "productQuantity"); + return (Criteria) this; + } + + public Criteria andProductQuantityGreaterThanOrEqualTo(Integer value) { + addCriterion("product_quantity >=", value, "productQuantity"); + return (Criteria) this; + } + + public Criteria andProductQuantityLessThan(Integer value) { + addCriterion("product_quantity <", value, "productQuantity"); + return (Criteria) this; + } + + public Criteria andProductQuantityLessThanOrEqualTo(Integer value) { + addCriterion("product_quantity <=", value, "productQuantity"); + return (Criteria) this; + } + + public Criteria andProductQuantityIn(List values) { + addCriterion("product_quantity in", values, "productQuantity"); + return (Criteria) this; + } + + public Criteria andProductQuantityNotIn(List values) { + addCriterion("product_quantity not in", values, "productQuantity"); + return (Criteria) this; + } + + public Criteria andProductQuantityBetween(Integer value1, Integer value2) { + addCriterion("product_quantity between", value1, value2, "productQuantity"); + return (Criteria) this; + } + + public Criteria andProductQuantityNotBetween(Integer value1, Integer value2) { + addCriterion("product_quantity not between", value1, value2, "productQuantity"); + return (Criteria) this; + } + + public Criteria andProductSkuIdIsNull() { + addCriterion("product_sku_id is null"); + return (Criteria) this; + } + + public Criteria andProductSkuIdIsNotNull() { + addCriterion("product_sku_id is not null"); + return (Criteria) this; + } + + public Criteria andProductSkuIdEqualTo(Long value) { + addCriterion("product_sku_id =", value, "productSkuId"); + return (Criteria) this; + } + + public Criteria andProductSkuIdNotEqualTo(Long value) { + addCriterion("product_sku_id <>", value, "productSkuId"); + return (Criteria) this; + } + + public Criteria andProductSkuIdGreaterThan(Long value) { + addCriterion("product_sku_id >", value, "productSkuId"); + return (Criteria) this; + } + + public Criteria andProductSkuIdGreaterThanOrEqualTo(Long value) { + addCriterion("product_sku_id >=", value, "productSkuId"); + return (Criteria) this; + } + + public Criteria andProductSkuIdLessThan(Long value) { + addCriterion("product_sku_id <", value, "productSkuId"); + return (Criteria) this; + } + + public Criteria andProductSkuIdLessThanOrEqualTo(Long value) { + addCriterion("product_sku_id <=", value, "productSkuId"); + return (Criteria) this; + } + + public Criteria andProductSkuIdIn(List values) { + addCriterion("product_sku_id in", values, "productSkuId"); + return (Criteria) this; + } + + public Criteria andProductSkuIdNotIn(List values) { + addCriterion("product_sku_id not in", values, "productSkuId"); + return (Criteria) this; + } + + public Criteria andProductSkuIdBetween(Long value1, Long value2) { + addCriterion("product_sku_id between", value1, value2, "productSkuId"); + return (Criteria) this; + } + + public Criteria andProductSkuIdNotBetween(Long value1, Long value2) { + addCriterion("product_sku_id not between", value1, value2, "productSkuId"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeIsNull() { + addCriterion("product_sku_code is null"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeIsNotNull() { + addCriterion("product_sku_code is not null"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeEqualTo(String value) { + addCriterion("product_sku_code =", value, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeNotEqualTo(String value) { + addCriterion("product_sku_code <>", value, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeGreaterThan(String value) { + addCriterion("product_sku_code >", value, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeGreaterThanOrEqualTo(String value) { + addCriterion("product_sku_code >=", value, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeLessThan(String value) { + addCriterion("product_sku_code <", value, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeLessThanOrEqualTo(String value) { + addCriterion("product_sku_code <=", value, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeLike(String value) { + addCriterion("product_sku_code like", value, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeNotLike(String value) { + addCriterion("product_sku_code not like", value, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeIn(List values) { + addCriterion("product_sku_code in", values, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeNotIn(List values) { + addCriterion("product_sku_code not in", values, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeBetween(String value1, String value2) { + addCriterion("product_sku_code between", value1, value2, "productSkuCode"); + return (Criteria) this; + } + + public Criteria andProductSkuCodeNotBetween(String value1, String value2) { + addCriterion("product_sku_code not between", value1, value2, "productSkuCode"); + 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 values) { + addCriterion("product_category_id in", values, "productCategoryId"); + return (Criteria) this; + } + + public Criteria andProductCategoryIdNotIn(List 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 andPromotionNameIsNull() { + addCriterion("promotion_name is null"); + return (Criteria) this; + } + + public Criteria andPromotionNameIsNotNull() { + addCriterion("promotion_name is not null"); + return (Criteria) this; + } + + public Criteria andPromotionNameEqualTo(String value) { + addCriterion("promotion_name =", value, "promotionName"); + return (Criteria) this; + } + + public Criteria andPromotionNameNotEqualTo(String value) { + addCriterion("promotion_name <>", value, "promotionName"); + return (Criteria) this; + } + + public Criteria andPromotionNameGreaterThan(String value) { + addCriterion("promotion_name >", value, "promotionName"); + return (Criteria) this; + } + + public Criteria andPromotionNameGreaterThanOrEqualTo(String value) { + addCriterion("promotion_name >=", value, "promotionName"); + return (Criteria) this; + } + + public Criteria andPromotionNameLessThan(String value) { + addCriterion("promotion_name <", value, "promotionName"); + return (Criteria) this; + } + + public Criteria andPromotionNameLessThanOrEqualTo(String value) { + addCriterion("promotion_name <=", value, "promotionName"); + return (Criteria) this; + } + + public Criteria andPromotionNameLike(String value) { + addCriterion("promotion_name like", value, "promotionName"); + return (Criteria) this; + } + + public Criteria andPromotionNameNotLike(String value) { + addCriterion("promotion_name not like", value, "promotionName"); + return (Criteria) this; + } + + public Criteria andPromotionNameIn(List values) { + addCriterion("promotion_name in", values, "promotionName"); + return (Criteria) this; + } + + public Criteria andPromotionNameNotIn(List values) { + addCriterion("promotion_name not in", values, "promotionName"); + return (Criteria) this; + } + + public Criteria andPromotionNameBetween(String value1, String value2) { + addCriterion("promotion_name between", value1, value2, "promotionName"); + return (Criteria) this; + } + + public Criteria andPromotionNameNotBetween(String value1, String value2) { + addCriterion("promotion_name not between", value1, value2, "promotionName"); + 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 values) { + addCriterion("promotion_amount in", values, "promotionAmount"); + return (Criteria) this; + } + + public Criteria andPromotionAmountNotIn(List 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 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 values) { + addCriterion("coupon_amount in", values, "couponAmount"); + return (Criteria) this; + } + + public Criteria andCouponAmountNotIn(List 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 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 values) { + addCriterion("integration_amount in", values, "integrationAmount"); + return (Criteria) this; + } + + public Criteria andIntegrationAmountNotIn(List 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 andRealAmountIsNull() { + addCriterion("real_amount is null"); + return (Criteria) this; + } + + public Criteria andRealAmountIsNotNull() { + addCriterion("real_amount is not null"); + return (Criteria) this; + } + + public Criteria andRealAmountEqualTo(BigDecimal value) { + addCriterion("real_amount =", value, "realAmount"); + return (Criteria) this; + } + + public Criteria andRealAmountNotEqualTo(BigDecimal value) { + addCriterion("real_amount <>", value, "realAmount"); + return (Criteria) this; + } + + public Criteria andRealAmountGreaterThan(BigDecimal value) { + addCriterion("real_amount >", value, "realAmount"); + return (Criteria) this; + } + + public Criteria andRealAmountGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("real_amount >=", value, "realAmount"); + return (Criteria) this; + } + + public Criteria andRealAmountLessThan(BigDecimal value) { + addCriterion("real_amount <", value, "realAmount"); + return (Criteria) this; + } + + public Criteria andRealAmountLessThanOrEqualTo(BigDecimal value) { + addCriterion("real_amount <=", value, "realAmount"); + return (Criteria) this; + } + + public Criteria andRealAmountIn(List values) { + addCriterion("real_amount in", values, "realAmount"); + return (Criteria) this; + } + + public Criteria andRealAmountNotIn(List values) { + addCriterion("real_amount not in", values, "realAmount"); + return (Criteria) this; + } + + public Criteria andRealAmountBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("real_amount between", value1, value2, "realAmount"); + return (Criteria) this; + } + + public Criteria andRealAmountNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("real_amount not between", value1, value2, "realAmount"); + return (Criteria) this; + } + + public Criteria andGiftIntegrationIsNull() { + addCriterion("gift_integration is null"); + return (Criteria) this; + } + + public Criteria andGiftIntegrationIsNotNull() { + addCriterion("gift_integration is not null"); + return (Criteria) this; + } + + public Criteria andGiftIntegrationEqualTo(Integer value) { + addCriterion("gift_integration =", value, "giftIntegration"); + return (Criteria) this; + } + + public Criteria andGiftIntegrationNotEqualTo(Integer value) { + addCriterion("gift_integration <>", value, "giftIntegration"); + return (Criteria) this; + } + + public Criteria andGiftIntegrationGreaterThan(Integer value) { + addCriterion("gift_integration >", value, "giftIntegration"); + return (Criteria) this; + } + + public Criteria andGiftIntegrationGreaterThanOrEqualTo(Integer value) { + addCriterion("gift_integration >=", value, "giftIntegration"); + return (Criteria) this; + } + + public Criteria andGiftIntegrationLessThan(Integer value) { + addCriterion("gift_integration <", value, "giftIntegration"); + return (Criteria) this; + } + + public Criteria andGiftIntegrationLessThanOrEqualTo(Integer value) { + addCriterion("gift_integration <=", value, "giftIntegration"); + return (Criteria) this; + } + + public Criteria andGiftIntegrationIn(List values) { + addCriterion("gift_integration in", values, "giftIntegration"); + return (Criteria) this; + } + + public Criteria andGiftIntegrationNotIn(List values) { + addCriterion("gift_integration not in", values, "giftIntegration"); + return (Criteria) this; + } + + public Criteria andGiftIntegrationBetween(Integer value1, Integer value2) { + addCriterion("gift_integration between", value1, value2, "giftIntegration"); + return (Criteria) this; + } + + public Criteria andGiftIntegrationNotBetween(Integer value1, Integer value2) { + addCriterion("gift_integration not between", value1, value2, "giftIntegration"); + return (Criteria) this; + } + + public Criteria andGiftGrowthIsNull() { + addCriterion("gift_growth is null"); + return (Criteria) this; + } + + public Criteria andGiftGrowthIsNotNull() { + addCriterion("gift_growth is not null"); + return (Criteria) this; + } + + public Criteria andGiftGrowthEqualTo(Integer value) { + addCriterion("gift_growth =", value, "giftGrowth"); + return (Criteria) this; + } + + public Criteria andGiftGrowthNotEqualTo(Integer value) { + addCriterion("gift_growth <>", value, "giftGrowth"); + return (Criteria) this; + } + + public Criteria andGiftGrowthGreaterThan(Integer value) { + addCriterion("gift_growth >", value, "giftGrowth"); + return (Criteria) this; + } + + public Criteria andGiftGrowthGreaterThanOrEqualTo(Integer value) { + addCriterion("gift_growth >=", value, "giftGrowth"); + return (Criteria) this; + } + + public Criteria andGiftGrowthLessThan(Integer value) { + addCriterion("gift_growth <", value, "giftGrowth"); + return (Criteria) this; + } + + public Criteria andGiftGrowthLessThanOrEqualTo(Integer value) { + addCriterion("gift_growth <=", value, "giftGrowth"); + return (Criteria) this; + } + + public Criteria andGiftGrowthIn(List values) { + addCriterion("gift_growth in", values, "giftGrowth"); + return (Criteria) this; + } + + public Criteria andGiftGrowthNotIn(List values) { + addCriterion("gift_growth not in", values, "giftGrowth"); + return (Criteria) this; + } + + public Criteria andGiftGrowthBetween(Integer value1, Integer value2) { + addCriterion("gift_growth between", value1, value2, "giftGrowth"); + return (Criteria) this; + } + + public Criteria andGiftGrowthNotBetween(Integer value1, Integer value2) { + addCriterion("gift_growth not between", value1, value2, "giftGrowth"); + return (Criteria) this; + } + + public Criteria andProductAttrIsNull() { + addCriterion("product_attr is null"); + return (Criteria) this; + } + + public Criteria andProductAttrIsNotNull() { + addCriterion("product_attr is not null"); + return (Criteria) this; + } + + public Criteria andProductAttrEqualTo(String value) { + addCriterion("product_attr =", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrNotEqualTo(String value) { + addCriterion("product_attr <>", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrGreaterThan(String value) { + addCriterion("product_attr >", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrGreaterThanOrEqualTo(String value) { + addCriterion("product_attr >=", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrLessThan(String value) { + addCriterion("product_attr <", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrLessThanOrEqualTo(String value) { + addCriterion("product_attr <=", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrLike(String value) { + addCriterion("product_attr like", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrNotLike(String value) { + addCriterion("product_attr not like", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrIn(List values) { + addCriterion("product_attr in", values, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrNotIn(List values) { + addCriterion("product_attr not in", values, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrBetween(String value1, String value2) { + addCriterion("product_attr between", value1, value2, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrNotBetween(String value1, String value2) { + addCriterion("product_attr not between", value1, value2, "productAttr"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderOperateHistory.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderOperateHistory.java new file mode 100644 index 000000000..456f1f6e6 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderOperateHistory.java @@ -0,0 +1,91 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.util.Date; + +public class OmsOrderOperateHistory implements Serializable { + private Long id; + + @Schema(title = "订单id") + private Long orderId; + + @Schema(title = "操作人:用户;系统;后台管理员") + private String operateMan; + + @Schema(title = "操作时间") + private Date createTime; + + @Schema(title = "订单状态:0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单") + private Integer orderStatus; + + @Schema(title = "备注") + 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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderOperateHistoryExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderOperateHistoryExample.java new file mode 100644 index 000000000..bc74b2270 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderOperateHistoryExample.java @@ -0,0 +1,580 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class OmsOrderOperateHistoryExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OmsOrderOperateHistoryExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 andOrderIdIsNull() { + addCriterion("order_id is null"); + return (Criteria) this; + } + + public Criteria andOrderIdIsNotNull() { + addCriterion("order_id is not null"); + return (Criteria) this; + } + + public Criteria andOrderIdEqualTo(Long value) { + addCriterion("order_id =", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotEqualTo(Long value) { + addCriterion("order_id <>", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdGreaterThan(Long value) { + addCriterion("order_id >", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdGreaterThanOrEqualTo(Long value) { + addCriterion("order_id >=", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdLessThan(Long value) { + addCriterion("order_id <", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdLessThanOrEqualTo(Long value) { + addCriterion("order_id <=", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdIn(List values) { + addCriterion("order_id in", values, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotIn(List values) { + addCriterion("order_id not in", values, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdBetween(Long value1, Long value2) { + addCriterion("order_id between", value1, value2, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotBetween(Long value1, Long value2) { + addCriterion("order_id not between", value1, value2, "orderId"); + return (Criteria) this; + } + + public Criteria andOperateManIsNull() { + addCriterion("operate_man is null"); + return (Criteria) this; + } + + public Criteria andOperateManIsNotNull() { + addCriterion("operate_man is not null"); + return (Criteria) this; + } + + public Criteria andOperateManEqualTo(String value) { + addCriterion("operate_man =", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManNotEqualTo(String value) { + addCriterion("operate_man <>", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManGreaterThan(String value) { + addCriterion("operate_man >", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManGreaterThanOrEqualTo(String value) { + addCriterion("operate_man >=", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManLessThan(String value) { + addCriterion("operate_man <", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManLessThanOrEqualTo(String value) { + addCriterion("operate_man <=", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManLike(String value) { + addCriterion("operate_man like", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManNotLike(String value) { + addCriterion("operate_man not like", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManIn(List values) { + addCriterion("operate_man in", values, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManNotIn(List values) { + addCriterion("operate_man not in", values, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManBetween(String value1, String value2) { + addCriterion("operate_man between", value1, value2, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManNotBetween(String value1, String value2) { + addCriterion("operate_man not between", value1, value2, "operateMan"); + 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 andOrderStatusIsNull() { + addCriterion("order_status is null"); + return (Criteria) this; + } + + public Criteria andOrderStatusIsNotNull() { + addCriterion("order_status is not null"); + return (Criteria) this; + } + + public Criteria andOrderStatusEqualTo(Integer value) { + addCriterion("order_status =", value, "orderStatus"); + return (Criteria) this; + } + + public Criteria andOrderStatusNotEqualTo(Integer value) { + addCriterion("order_status <>", value, "orderStatus"); + return (Criteria) this; + } + + public Criteria andOrderStatusGreaterThan(Integer value) { + addCriterion("order_status >", value, "orderStatus"); + return (Criteria) this; + } + + public Criteria andOrderStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("order_status >=", value, "orderStatus"); + return (Criteria) this; + } + + public Criteria andOrderStatusLessThan(Integer value) { + addCriterion("order_status <", value, "orderStatus"); + return (Criteria) this; + } + + public Criteria andOrderStatusLessThanOrEqualTo(Integer value) { + addCriterion("order_status <=", value, "orderStatus"); + return (Criteria) this; + } + + public Criteria andOrderStatusIn(List values) { + addCriterion("order_status in", values, "orderStatus"); + return (Criteria) this; + } + + public Criteria andOrderStatusNotIn(List values) { + addCriterion("order_status not in", values, "orderStatus"); + return (Criteria) this; + } + + public Criteria andOrderStatusBetween(Integer value1, Integer value2) { + addCriterion("order_status between", value1, value2, "orderStatus"); + return (Criteria) this; + } + + public Criteria andOrderStatusNotBetween(Integer value1, Integer value2) { + addCriterion("order_status not between", value1, value2, "orderStatus"); + 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 values) { + addCriterion("note in", values, "note"); + return (Criteria) this; + } + + public Criteria andNoteNotIn(List 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 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderReturnApply.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderReturnApply.java new file mode 100644 index 000000000..fa755f801 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderReturnApply.java @@ -0,0 +1,344 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +public class OmsOrderReturnApply implements Serializable { + private Long id; + + @Schema(title = "订单id") + private Long orderId; + + @Schema(title = "收货地址表id") + private Long companyAddressId; + + @Schema(title = "退货商品id") + private Long productId; + + @Schema(title = "订单编号") + private String orderSn; + + @Schema(title = "申请时间") + private Date createTime; + + @Schema(title = "会员用户名") + private String memberUsername; + + @Schema(title = "退款金额") + private BigDecimal returnAmount; + + @Schema(title = "退货人姓名") + private String returnName; + + @Schema(title = "退货人电话") + private String returnPhone; + + @Schema(title = "申请状态:0->待处理;1->退货中;2->已完成;3->已拒绝") + private Integer status; + + @Schema(title = "处理时间") + private Date handleTime; + + @Schema(title = "商品图片") + private String productPic; + + @Schema(title = "商品名称") + private String productName; + + @Schema(title = "商品品牌") + private String productBrand; + + @Schema(title = "商品销售属性:颜色:红色;尺码:xl;") + private String productAttr; + + @Schema(title = "退货数量") + private Integer productCount; + + @Schema(title = "商品单价") + private BigDecimal productPrice; + + @Schema(title = "商品实际支付单价") + private BigDecimal productRealPrice; + + @Schema(title = "原因") + private String reason; + + @Schema(title = "描述") + private String description; + + @Schema(title = "凭证图片,以逗号隔开") + private String proofPics; + + @Schema(title = "处理备注") + private String handleNote; + + @Schema(title = "处理人员") + private String handleMan; + + @Schema(title = "收货人") + private String receiveMan; + + @Schema(title = "收货时间") + private Date receiveTime; + + @Schema(title = "收货备注") + private String receiveNote; + + 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 Long getCompanyAddressId() { + return companyAddressId; + } + + public void setCompanyAddressId(Long companyAddressId) { + this.companyAddressId = companyAddressId; + } + + public Long getProductId() { + return productId; + } + + public void setProductId(Long productId) { + this.productId = productId; + } + + 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 getReturnAmount() { + return returnAmount; + } + + public void setReturnAmount(BigDecimal returnAmount) { + this.returnAmount = returnAmount; + } + + public String getReturnName() { + return returnName; + } + + public void setReturnName(String returnName) { + this.returnName = returnName; + } + + public String getReturnPhone() { + return returnPhone; + } + + public void setReturnPhone(String returnPhone) { + this.returnPhone = returnPhone; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public Date getHandleTime() { + return handleTime; + } + + public void setHandleTime(Date handleTime) { + this.handleTime = handleTime; + } + + public String getProductPic() { + return productPic; + } + + public void setProductPic(String productPic) { + this.productPic = productPic; + } + + public String getProductName() { + return productName; + } + + public void setProductName(String productName) { + this.productName = productName; + } + + public String getProductBrand() { + return productBrand; + } + + public void setProductBrand(String productBrand) { + this.productBrand = productBrand; + } + + public String getProductAttr() { + return productAttr; + } + + public void setProductAttr(String productAttr) { + this.productAttr = productAttr; + } + + public Integer getProductCount() { + return productCount; + } + + public void setProductCount(Integer productCount) { + this.productCount = productCount; + } + + public BigDecimal getProductPrice() { + return productPrice; + } + + public void setProductPrice(BigDecimal productPrice) { + this.productPrice = productPrice; + } + + public BigDecimal getProductRealPrice() { + return productRealPrice; + } + + public void setProductRealPrice(BigDecimal productRealPrice) { + this.productRealPrice = productRealPrice; + } + + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getProofPics() { + return proofPics; + } + + public void setProofPics(String proofPics) { + this.proofPics = proofPics; + } + + public String getHandleNote() { + return handleNote; + } + + public void setHandleNote(String handleNote) { + this.handleNote = handleNote; + } + + public String getHandleMan() { + return handleMan; + } + + public void setHandleMan(String handleMan) { + this.handleMan = handleMan; + } + + public String getReceiveMan() { + return receiveMan; + } + + public void setReceiveMan(String receiveMan) { + this.receiveMan = receiveMan; + } + + public Date getReceiveTime() { + return receiveTime; + } + + public void setReceiveTime(Date receiveTime) { + this.receiveTime = receiveTime; + } + + public String getReceiveNote() { + return receiveNote; + } + + public void setReceiveNote(String receiveNote) { + this.receiveNote = receiveNote; + } + + @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(", companyAddressId=").append(companyAddressId); + sb.append(", productId=").append(productId); + sb.append(", orderSn=").append(orderSn); + sb.append(", createTime=").append(createTime); + sb.append(", memberUsername=").append(memberUsername); + sb.append(", returnAmount=").append(returnAmount); + sb.append(", returnName=").append(returnName); + sb.append(", returnPhone=").append(returnPhone); + sb.append(", status=").append(status); + sb.append(", handleTime=").append(handleTime); + sb.append(", productPic=").append(productPic); + sb.append(", productName=").append(productName); + sb.append(", productBrand=").append(productBrand); + sb.append(", productAttr=").append(productAttr); + sb.append(", productCount=").append(productCount); + sb.append(", productPrice=").append(productPrice); + sb.append(", productRealPrice=").append(productRealPrice); + sb.append(", reason=").append(reason); + sb.append(", description=").append(description); + sb.append(", proofPics=").append(proofPics); + sb.append(", handleNote=").append(handleNote); + sb.append(", handleMan=").append(handleMan); + sb.append(", receiveMan=").append(receiveMan); + sb.append(", receiveTime=").append(receiveTime); + sb.append(", receiveNote=").append(receiveNote); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderReturnApplyExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderReturnApplyExample.java new file mode 100644 index 000000000..503b42a64 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderReturnApplyExample.java @@ -0,0 +1,1971 @@ +package com.macro.mall.model; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class OmsOrderReturnApplyExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OmsOrderReturnApplyExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 andOrderIdIsNull() { + addCriterion("order_id is null"); + return (Criteria) this; + } + + public Criteria andOrderIdIsNotNull() { + addCriterion("order_id is not null"); + return (Criteria) this; + } + + public Criteria andOrderIdEqualTo(Long value) { + addCriterion("order_id =", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotEqualTo(Long value) { + addCriterion("order_id <>", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdGreaterThan(Long value) { + addCriterion("order_id >", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdGreaterThanOrEqualTo(Long value) { + addCriterion("order_id >=", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdLessThan(Long value) { + addCriterion("order_id <", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdLessThanOrEqualTo(Long value) { + addCriterion("order_id <=", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdIn(List values) { + addCriterion("order_id in", values, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotIn(List values) { + addCriterion("order_id not in", values, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdBetween(Long value1, Long value2) { + addCriterion("order_id between", value1, value2, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotBetween(Long value1, Long value2) { + addCriterion("order_id not between", value1, value2, "orderId"); + return (Criteria) this; + } + + public Criteria andCompanyAddressIdIsNull() { + addCriterion("company_address_id is null"); + return (Criteria) this; + } + + public Criteria andCompanyAddressIdIsNotNull() { + addCriterion("company_address_id is not null"); + return (Criteria) this; + } + + public Criteria andCompanyAddressIdEqualTo(Long value) { + addCriterion("company_address_id =", value, "companyAddressId"); + return (Criteria) this; + } + + public Criteria andCompanyAddressIdNotEqualTo(Long value) { + addCriterion("company_address_id <>", value, "companyAddressId"); + return (Criteria) this; + } + + public Criteria andCompanyAddressIdGreaterThan(Long value) { + addCriterion("company_address_id >", value, "companyAddressId"); + return (Criteria) this; + } + + public Criteria andCompanyAddressIdGreaterThanOrEqualTo(Long value) { + addCriterion("company_address_id >=", value, "companyAddressId"); + return (Criteria) this; + } + + public Criteria andCompanyAddressIdLessThan(Long value) { + addCriterion("company_address_id <", value, "companyAddressId"); + return (Criteria) this; + } + + public Criteria andCompanyAddressIdLessThanOrEqualTo(Long value) { + addCriterion("company_address_id <=", value, "companyAddressId"); + return (Criteria) this; + } + + public Criteria andCompanyAddressIdIn(List values) { + addCriterion("company_address_id in", values, "companyAddressId"); + return (Criteria) this; + } + + public Criteria andCompanyAddressIdNotIn(List values) { + addCriterion("company_address_id not in", values, "companyAddressId"); + return (Criteria) this; + } + + public Criteria andCompanyAddressIdBetween(Long value1, Long value2) { + addCriterion("company_address_id between", value1, value2, "companyAddressId"); + return (Criteria) this; + } + + public Criteria andCompanyAddressIdNotBetween(Long value1, Long value2) { + addCriterion("company_address_id not between", value1, value2, "companyAddressId"); + 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 values) { + addCriterion("product_id in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotIn(List 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 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 values) { + addCriterion("order_sn in", values, "orderSn"); + return (Criteria) this; + } + + public Criteria andOrderSnNotIn(List 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 values) { + addCriterion("member_username in", values, "memberUsername"); + return (Criteria) this; + } + + public Criteria andMemberUsernameNotIn(List 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 andReturnAmountIsNull() { + addCriterion("return_amount is null"); + return (Criteria) this; + } + + public Criteria andReturnAmountIsNotNull() { + addCriterion("return_amount is not null"); + return (Criteria) this; + } + + public Criteria andReturnAmountEqualTo(BigDecimal value) { + addCriterion("return_amount =", value, "returnAmount"); + return (Criteria) this; + } + + public Criteria andReturnAmountNotEqualTo(BigDecimal value) { + addCriterion("return_amount <>", value, "returnAmount"); + return (Criteria) this; + } + + public Criteria andReturnAmountGreaterThan(BigDecimal value) { + addCriterion("return_amount >", value, "returnAmount"); + return (Criteria) this; + } + + public Criteria andReturnAmountGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("return_amount >=", value, "returnAmount"); + return (Criteria) this; + } + + public Criteria andReturnAmountLessThan(BigDecimal value) { + addCriterion("return_amount <", value, "returnAmount"); + return (Criteria) this; + } + + public Criteria andReturnAmountLessThanOrEqualTo(BigDecimal value) { + addCriterion("return_amount <=", value, "returnAmount"); + return (Criteria) this; + } + + public Criteria andReturnAmountIn(List values) { + addCriterion("return_amount in", values, "returnAmount"); + return (Criteria) this; + } + + public Criteria andReturnAmountNotIn(List values) { + addCriterion("return_amount not in", values, "returnAmount"); + return (Criteria) this; + } + + public Criteria andReturnAmountBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("return_amount between", value1, value2, "returnAmount"); + return (Criteria) this; + } + + public Criteria andReturnAmountNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("return_amount not between", value1, value2, "returnAmount"); + return (Criteria) this; + } + + public Criteria andReturnNameIsNull() { + addCriterion("return_name is null"); + return (Criteria) this; + } + + public Criteria andReturnNameIsNotNull() { + addCriterion("return_name is not null"); + return (Criteria) this; + } + + public Criteria andReturnNameEqualTo(String value) { + addCriterion("return_name =", value, "returnName"); + return (Criteria) this; + } + + public Criteria andReturnNameNotEqualTo(String value) { + addCriterion("return_name <>", value, "returnName"); + return (Criteria) this; + } + + public Criteria andReturnNameGreaterThan(String value) { + addCriterion("return_name >", value, "returnName"); + return (Criteria) this; + } + + public Criteria andReturnNameGreaterThanOrEqualTo(String value) { + addCriterion("return_name >=", value, "returnName"); + return (Criteria) this; + } + + public Criteria andReturnNameLessThan(String value) { + addCriterion("return_name <", value, "returnName"); + return (Criteria) this; + } + + public Criteria andReturnNameLessThanOrEqualTo(String value) { + addCriterion("return_name <=", value, "returnName"); + return (Criteria) this; + } + + public Criteria andReturnNameLike(String value) { + addCriterion("return_name like", value, "returnName"); + return (Criteria) this; + } + + public Criteria andReturnNameNotLike(String value) { + addCriterion("return_name not like", value, "returnName"); + return (Criteria) this; + } + + public Criteria andReturnNameIn(List values) { + addCriterion("return_name in", values, "returnName"); + return (Criteria) this; + } + + public Criteria andReturnNameNotIn(List values) { + addCriterion("return_name not in", values, "returnName"); + return (Criteria) this; + } + + public Criteria andReturnNameBetween(String value1, String value2) { + addCriterion("return_name between", value1, value2, "returnName"); + return (Criteria) this; + } + + public Criteria andReturnNameNotBetween(String value1, String value2) { + addCriterion("return_name not between", value1, value2, "returnName"); + return (Criteria) this; + } + + public Criteria andReturnPhoneIsNull() { + addCriterion("return_phone is null"); + return (Criteria) this; + } + + public Criteria andReturnPhoneIsNotNull() { + addCriterion("return_phone is not null"); + return (Criteria) this; + } + + public Criteria andReturnPhoneEqualTo(String value) { + addCriterion("return_phone =", value, "returnPhone"); + return (Criteria) this; + } + + public Criteria andReturnPhoneNotEqualTo(String value) { + addCriterion("return_phone <>", value, "returnPhone"); + return (Criteria) this; + } + + public Criteria andReturnPhoneGreaterThan(String value) { + addCriterion("return_phone >", value, "returnPhone"); + return (Criteria) this; + } + + public Criteria andReturnPhoneGreaterThanOrEqualTo(String value) { + addCriterion("return_phone >=", value, "returnPhone"); + return (Criteria) this; + } + + public Criteria andReturnPhoneLessThan(String value) { + addCriterion("return_phone <", value, "returnPhone"); + return (Criteria) this; + } + + public Criteria andReturnPhoneLessThanOrEqualTo(String value) { + addCriterion("return_phone <=", value, "returnPhone"); + return (Criteria) this; + } + + public Criteria andReturnPhoneLike(String value) { + addCriterion("return_phone like", value, "returnPhone"); + return (Criteria) this; + } + + public Criteria andReturnPhoneNotLike(String value) { + addCriterion("return_phone not like", value, "returnPhone"); + return (Criteria) this; + } + + public Criteria andReturnPhoneIn(List values) { + addCriterion("return_phone in", values, "returnPhone"); + return (Criteria) this; + } + + public Criteria andReturnPhoneNotIn(List values) { + addCriterion("return_phone not in", values, "returnPhone"); + return (Criteria) this; + } + + public Criteria andReturnPhoneBetween(String value1, String value2) { + addCriterion("return_phone between", value1, value2, "returnPhone"); + return (Criteria) this; + } + + public Criteria andReturnPhoneNotBetween(String value1, String value2) { + addCriterion("return_phone not between", value1, value2, "returnPhone"); + 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 values) { + addCriterion("status in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List 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 andHandleTimeIsNull() { + addCriterion("handle_time is null"); + return (Criteria) this; + } + + public Criteria andHandleTimeIsNotNull() { + addCriterion("handle_time is not null"); + return (Criteria) this; + } + + public Criteria andHandleTimeEqualTo(Date value) { + addCriterion("handle_time =", value, "handleTime"); + return (Criteria) this; + } + + public Criteria andHandleTimeNotEqualTo(Date value) { + addCriterion("handle_time <>", value, "handleTime"); + return (Criteria) this; + } + + public Criteria andHandleTimeGreaterThan(Date value) { + addCriterion("handle_time >", value, "handleTime"); + return (Criteria) this; + } + + public Criteria andHandleTimeGreaterThanOrEqualTo(Date value) { + addCriterion("handle_time >=", value, "handleTime"); + return (Criteria) this; + } + + public Criteria andHandleTimeLessThan(Date value) { + addCriterion("handle_time <", value, "handleTime"); + return (Criteria) this; + } + + public Criteria andHandleTimeLessThanOrEqualTo(Date value) { + addCriterion("handle_time <=", value, "handleTime"); + return (Criteria) this; + } + + public Criteria andHandleTimeIn(List values) { + addCriterion("handle_time in", values, "handleTime"); + return (Criteria) this; + } + + public Criteria andHandleTimeNotIn(List values) { + addCriterion("handle_time not in", values, "handleTime"); + return (Criteria) this; + } + + public Criteria andHandleTimeBetween(Date value1, Date value2) { + addCriterion("handle_time between", value1, value2, "handleTime"); + return (Criteria) this; + } + + public Criteria andHandleTimeNotBetween(Date value1, Date value2) { + addCriterion("handle_time not between", value1, value2, "handleTime"); + return (Criteria) this; + } + + public Criteria andProductPicIsNull() { + addCriterion("product_pic is null"); + return (Criteria) this; + } + + public Criteria andProductPicIsNotNull() { + addCriterion("product_pic is not null"); + return (Criteria) this; + } + + public Criteria andProductPicEqualTo(String value) { + addCriterion("product_pic =", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicNotEqualTo(String value) { + addCriterion("product_pic <>", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicGreaterThan(String value) { + addCriterion("product_pic >", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicGreaterThanOrEqualTo(String value) { + addCriterion("product_pic >=", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicLessThan(String value) { + addCriterion("product_pic <", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicLessThanOrEqualTo(String value) { + addCriterion("product_pic <=", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicLike(String value) { + addCriterion("product_pic like", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicNotLike(String value) { + addCriterion("product_pic not like", value, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicIn(List values) { + addCriterion("product_pic in", values, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicNotIn(List values) { + addCriterion("product_pic not in", values, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicBetween(String value1, String value2) { + addCriterion("product_pic between", value1, value2, "productPic"); + return (Criteria) this; + } + + public Criteria andProductPicNotBetween(String value1, String value2) { + addCriterion("product_pic not between", value1, value2, "productPic"); + 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 values) { + addCriterion("product_name in", values, "productName"); + return (Criteria) this; + } + + public Criteria andProductNameNotIn(List 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 andProductBrandIsNull() { + addCriterion("product_brand is null"); + return (Criteria) this; + } + + public Criteria andProductBrandIsNotNull() { + addCriterion("product_brand is not null"); + return (Criteria) this; + } + + public Criteria andProductBrandEqualTo(String value) { + addCriterion("product_brand =", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandNotEqualTo(String value) { + addCriterion("product_brand <>", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandGreaterThan(String value) { + addCriterion("product_brand >", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandGreaterThanOrEqualTo(String value) { + addCriterion("product_brand >=", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandLessThan(String value) { + addCriterion("product_brand <", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandLessThanOrEqualTo(String value) { + addCriterion("product_brand <=", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandLike(String value) { + addCriterion("product_brand like", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandNotLike(String value) { + addCriterion("product_brand not like", value, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandIn(List values) { + addCriterion("product_brand in", values, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandNotIn(List values) { + addCriterion("product_brand not in", values, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandBetween(String value1, String value2) { + addCriterion("product_brand between", value1, value2, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductBrandNotBetween(String value1, String value2) { + addCriterion("product_brand not between", value1, value2, "productBrand"); + return (Criteria) this; + } + + public Criteria andProductAttrIsNull() { + addCriterion("product_attr is null"); + return (Criteria) this; + } + + public Criteria andProductAttrIsNotNull() { + addCriterion("product_attr is not null"); + return (Criteria) this; + } + + public Criteria andProductAttrEqualTo(String value) { + addCriterion("product_attr =", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrNotEqualTo(String value) { + addCriterion("product_attr <>", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrGreaterThan(String value) { + addCriterion("product_attr >", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrGreaterThanOrEqualTo(String value) { + addCriterion("product_attr >=", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrLessThan(String value) { + addCriterion("product_attr <", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrLessThanOrEqualTo(String value) { + addCriterion("product_attr <=", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrLike(String value) { + addCriterion("product_attr like", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrNotLike(String value) { + addCriterion("product_attr not like", value, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrIn(List values) { + addCriterion("product_attr in", values, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrNotIn(List values) { + addCriterion("product_attr not in", values, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrBetween(String value1, String value2) { + addCriterion("product_attr between", value1, value2, "productAttr"); + return (Criteria) this; + } + + public Criteria andProductAttrNotBetween(String value1, String value2) { + addCriterion("product_attr not between", value1, value2, "productAttr"); + 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 values) { + addCriterion("product_count in", values, "productCount"); + return (Criteria) this; + } + + public Criteria andProductCountNotIn(List 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 andProductPriceIsNull() { + addCriterion("product_price is null"); + return (Criteria) this; + } + + public Criteria andProductPriceIsNotNull() { + addCriterion("product_price is not null"); + return (Criteria) this; + } + + public Criteria andProductPriceEqualTo(BigDecimal value) { + addCriterion("product_price =", value, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceNotEqualTo(BigDecimal value) { + addCriterion("product_price <>", value, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceGreaterThan(BigDecimal value) { + addCriterion("product_price >", value, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("product_price >=", value, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceLessThan(BigDecimal value) { + addCriterion("product_price <", value, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("product_price <=", value, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceIn(List values) { + addCriterion("product_price in", values, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceNotIn(List values) { + addCriterion("product_price not in", values, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("product_price between", value1, value2, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("product_price not between", value1, value2, "productPrice"); + return (Criteria) this; + } + + public Criteria andProductRealPriceIsNull() { + addCriterion("product_real_price is null"); + return (Criteria) this; + } + + public Criteria andProductRealPriceIsNotNull() { + addCriterion("product_real_price is not null"); + return (Criteria) this; + } + + public Criteria andProductRealPriceEqualTo(BigDecimal value) { + addCriterion("product_real_price =", value, "productRealPrice"); + return (Criteria) this; + } + + public Criteria andProductRealPriceNotEqualTo(BigDecimal value) { + addCriterion("product_real_price <>", value, "productRealPrice"); + return (Criteria) this; + } + + public Criteria andProductRealPriceGreaterThan(BigDecimal value) { + addCriterion("product_real_price >", value, "productRealPrice"); + return (Criteria) this; + } + + public Criteria andProductRealPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("product_real_price >=", value, "productRealPrice"); + return (Criteria) this; + } + + public Criteria andProductRealPriceLessThan(BigDecimal value) { + addCriterion("product_real_price <", value, "productRealPrice"); + return (Criteria) this; + } + + public Criteria andProductRealPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("product_real_price <=", value, "productRealPrice"); + return (Criteria) this; + } + + public Criteria andProductRealPriceIn(List values) { + addCriterion("product_real_price in", values, "productRealPrice"); + return (Criteria) this; + } + + public Criteria andProductRealPriceNotIn(List values) { + addCriterion("product_real_price not in", values, "productRealPrice"); + return (Criteria) this; + } + + public Criteria andProductRealPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("product_real_price between", value1, value2, "productRealPrice"); + return (Criteria) this; + } + + public Criteria andProductRealPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("product_real_price not between", value1, value2, "productRealPrice"); + return (Criteria) this; + } + + public Criteria andReasonIsNull() { + addCriterion("reason is null"); + return (Criteria) this; + } + + public Criteria andReasonIsNotNull() { + addCriterion("reason is not null"); + return (Criteria) this; + } + + public Criteria andReasonEqualTo(String value) { + addCriterion("reason =", value, "reason"); + return (Criteria) this; + } + + public Criteria andReasonNotEqualTo(String value) { + addCriterion("reason <>", value, "reason"); + return (Criteria) this; + } + + public Criteria andReasonGreaterThan(String value) { + addCriterion("reason >", value, "reason"); + return (Criteria) this; + } + + public Criteria andReasonGreaterThanOrEqualTo(String value) { + addCriterion("reason >=", value, "reason"); + return (Criteria) this; + } + + public Criteria andReasonLessThan(String value) { + addCriterion("reason <", value, "reason"); + return (Criteria) this; + } + + public Criteria andReasonLessThanOrEqualTo(String value) { + addCriterion("reason <=", value, "reason"); + return (Criteria) this; + } + + public Criteria andReasonLike(String value) { + addCriterion("reason like", value, "reason"); + return (Criteria) this; + } + + public Criteria andReasonNotLike(String value) { + addCriterion("reason not like", value, "reason"); + return (Criteria) this; + } + + public Criteria andReasonIn(List values) { + addCriterion("reason in", values, "reason"); + return (Criteria) this; + } + + public Criteria andReasonNotIn(List values) { + addCriterion("reason not in", values, "reason"); + return (Criteria) this; + } + + public Criteria andReasonBetween(String value1, String value2) { + addCriterion("reason between", value1, value2, "reason"); + return (Criteria) this; + } + + public Criteria andReasonNotBetween(String value1, String value2) { + addCriterion("reason not between", value1, value2, "reason"); + 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 values) { + addCriterion("description in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotIn(List 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 andProofPicsIsNull() { + addCriterion("proof_pics is null"); + return (Criteria) this; + } + + public Criteria andProofPicsIsNotNull() { + addCriterion("proof_pics is not null"); + return (Criteria) this; + } + + public Criteria andProofPicsEqualTo(String value) { + addCriterion("proof_pics =", value, "proofPics"); + return (Criteria) this; + } + + public Criteria andProofPicsNotEqualTo(String value) { + addCriterion("proof_pics <>", value, "proofPics"); + return (Criteria) this; + } + + public Criteria andProofPicsGreaterThan(String value) { + addCriterion("proof_pics >", value, "proofPics"); + return (Criteria) this; + } + + public Criteria andProofPicsGreaterThanOrEqualTo(String value) { + addCriterion("proof_pics >=", value, "proofPics"); + return (Criteria) this; + } + + public Criteria andProofPicsLessThan(String value) { + addCriterion("proof_pics <", value, "proofPics"); + return (Criteria) this; + } + + public Criteria andProofPicsLessThanOrEqualTo(String value) { + addCriterion("proof_pics <=", value, "proofPics"); + return (Criteria) this; + } + + public Criteria andProofPicsLike(String value) { + addCriterion("proof_pics like", value, "proofPics"); + return (Criteria) this; + } + + public Criteria andProofPicsNotLike(String value) { + addCriterion("proof_pics not like", value, "proofPics"); + return (Criteria) this; + } + + public Criteria andProofPicsIn(List values) { + addCriterion("proof_pics in", values, "proofPics"); + return (Criteria) this; + } + + public Criteria andProofPicsNotIn(List values) { + addCriterion("proof_pics not in", values, "proofPics"); + return (Criteria) this; + } + + public Criteria andProofPicsBetween(String value1, String value2) { + addCriterion("proof_pics between", value1, value2, "proofPics"); + return (Criteria) this; + } + + public Criteria andProofPicsNotBetween(String value1, String value2) { + addCriterion("proof_pics not between", value1, value2, "proofPics"); + return (Criteria) this; + } + + public Criteria andHandleNoteIsNull() { + addCriterion("handle_note is null"); + return (Criteria) this; + } + + public Criteria andHandleNoteIsNotNull() { + addCriterion("handle_note is not null"); + return (Criteria) this; + } + + public Criteria andHandleNoteEqualTo(String value) { + addCriterion("handle_note =", value, "handleNote"); + return (Criteria) this; + } + + public Criteria andHandleNoteNotEqualTo(String value) { + addCriterion("handle_note <>", value, "handleNote"); + return (Criteria) this; + } + + public Criteria andHandleNoteGreaterThan(String value) { + addCriterion("handle_note >", value, "handleNote"); + return (Criteria) this; + } + + public Criteria andHandleNoteGreaterThanOrEqualTo(String value) { + addCriterion("handle_note >=", value, "handleNote"); + return (Criteria) this; + } + + public Criteria andHandleNoteLessThan(String value) { + addCriterion("handle_note <", value, "handleNote"); + return (Criteria) this; + } + + public Criteria andHandleNoteLessThanOrEqualTo(String value) { + addCriterion("handle_note <=", value, "handleNote"); + return (Criteria) this; + } + + public Criteria andHandleNoteLike(String value) { + addCriterion("handle_note like", value, "handleNote"); + return (Criteria) this; + } + + public Criteria andHandleNoteNotLike(String value) { + addCriterion("handle_note not like", value, "handleNote"); + return (Criteria) this; + } + + public Criteria andHandleNoteIn(List values) { + addCriterion("handle_note in", values, "handleNote"); + return (Criteria) this; + } + + public Criteria andHandleNoteNotIn(List values) { + addCriterion("handle_note not in", values, "handleNote"); + return (Criteria) this; + } + + public Criteria andHandleNoteBetween(String value1, String value2) { + addCriterion("handle_note between", value1, value2, "handleNote"); + return (Criteria) this; + } + + public Criteria andHandleNoteNotBetween(String value1, String value2) { + addCriterion("handle_note not between", value1, value2, "handleNote"); + return (Criteria) this; + } + + public Criteria andHandleManIsNull() { + addCriterion("handle_man is null"); + return (Criteria) this; + } + + public Criteria andHandleManIsNotNull() { + addCriterion("handle_man is not null"); + return (Criteria) this; + } + + public Criteria andHandleManEqualTo(String value) { + addCriterion("handle_man =", value, "handleMan"); + return (Criteria) this; + } + + public Criteria andHandleManNotEqualTo(String value) { + addCriterion("handle_man <>", value, "handleMan"); + return (Criteria) this; + } + + public Criteria andHandleManGreaterThan(String value) { + addCriterion("handle_man >", value, "handleMan"); + return (Criteria) this; + } + + public Criteria andHandleManGreaterThanOrEqualTo(String value) { + addCriterion("handle_man >=", value, "handleMan"); + return (Criteria) this; + } + + public Criteria andHandleManLessThan(String value) { + addCriterion("handle_man <", value, "handleMan"); + return (Criteria) this; + } + + public Criteria andHandleManLessThanOrEqualTo(String value) { + addCriterion("handle_man <=", value, "handleMan"); + return (Criteria) this; + } + + public Criteria andHandleManLike(String value) { + addCriterion("handle_man like", value, "handleMan"); + return (Criteria) this; + } + + public Criteria andHandleManNotLike(String value) { + addCriterion("handle_man not like", value, "handleMan"); + return (Criteria) this; + } + + public Criteria andHandleManIn(List values) { + addCriterion("handle_man in", values, "handleMan"); + return (Criteria) this; + } + + public Criteria andHandleManNotIn(List values) { + addCriterion("handle_man not in", values, "handleMan"); + return (Criteria) this; + } + + public Criteria andHandleManBetween(String value1, String value2) { + addCriterion("handle_man between", value1, value2, "handleMan"); + return (Criteria) this; + } + + public Criteria andHandleManNotBetween(String value1, String value2) { + addCriterion("handle_man not between", value1, value2, "handleMan"); + return (Criteria) this; + } + + public Criteria andReceiveManIsNull() { + addCriterion("receive_man is null"); + return (Criteria) this; + } + + public Criteria andReceiveManIsNotNull() { + addCriterion("receive_man is not null"); + return (Criteria) this; + } + + public Criteria andReceiveManEqualTo(String value) { + addCriterion("receive_man =", value, "receiveMan"); + return (Criteria) this; + } + + public Criteria andReceiveManNotEqualTo(String value) { + addCriterion("receive_man <>", value, "receiveMan"); + return (Criteria) this; + } + + public Criteria andReceiveManGreaterThan(String value) { + addCriterion("receive_man >", value, "receiveMan"); + return (Criteria) this; + } + + public Criteria andReceiveManGreaterThanOrEqualTo(String value) { + addCriterion("receive_man >=", value, "receiveMan"); + return (Criteria) this; + } + + public Criteria andReceiveManLessThan(String value) { + addCriterion("receive_man <", value, "receiveMan"); + return (Criteria) this; + } + + public Criteria andReceiveManLessThanOrEqualTo(String value) { + addCriterion("receive_man <=", value, "receiveMan"); + return (Criteria) this; + } + + public Criteria andReceiveManLike(String value) { + addCriterion("receive_man like", value, "receiveMan"); + return (Criteria) this; + } + + public Criteria andReceiveManNotLike(String value) { + addCriterion("receive_man not like", value, "receiveMan"); + return (Criteria) this; + } + + public Criteria andReceiveManIn(List values) { + addCriterion("receive_man in", values, "receiveMan"); + return (Criteria) this; + } + + public Criteria andReceiveManNotIn(List values) { + addCriterion("receive_man not in", values, "receiveMan"); + return (Criteria) this; + } + + public Criteria andReceiveManBetween(String value1, String value2) { + addCriterion("receive_man between", value1, value2, "receiveMan"); + return (Criteria) this; + } + + public Criteria andReceiveManNotBetween(String value1, String value2) { + addCriterion("receive_man not between", value1, value2, "receiveMan"); + return (Criteria) this; + } + + public Criteria andReceiveTimeIsNull() { + addCriterion("receive_time is null"); + return (Criteria) this; + } + + public Criteria andReceiveTimeIsNotNull() { + addCriterion("receive_time is not null"); + return (Criteria) this; + } + + public Criteria andReceiveTimeEqualTo(Date value) { + addCriterion("receive_time =", value, "receiveTime"); + return (Criteria) this; + } + + public Criteria andReceiveTimeNotEqualTo(Date value) { + addCriterion("receive_time <>", value, "receiveTime"); + return (Criteria) this; + } + + public Criteria andReceiveTimeGreaterThan(Date value) { + addCriterion("receive_time >", value, "receiveTime"); + return (Criteria) this; + } + + public Criteria andReceiveTimeGreaterThanOrEqualTo(Date value) { + addCriterion("receive_time >=", value, "receiveTime"); + return (Criteria) this; + } + + public Criteria andReceiveTimeLessThan(Date value) { + addCriterion("receive_time <", value, "receiveTime"); + return (Criteria) this; + } + + public Criteria andReceiveTimeLessThanOrEqualTo(Date value) { + addCriterion("receive_time <=", value, "receiveTime"); + return (Criteria) this; + } + + public Criteria andReceiveTimeIn(List values) { + addCriterion("receive_time in", values, "receiveTime"); + return (Criteria) this; + } + + public Criteria andReceiveTimeNotIn(List values) { + addCriterion("receive_time not in", values, "receiveTime"); + return (Criteria) this; + } + + public Criteria andReceiveTimeBetween(Date value1, Date value2) { + addCriterion("receive_time between", value1, value2, "receiveTime"); + return (Criteria) this; + } + + public Criteria andReceiveTimeNotBetween(Date value1, Date value2) { + addCriterion("receive_time not between", value1, value2, "receiveTime"); + return (Criteria) this; + } + + public Criteria andReceiveNoteIsNull() { + addCriterion("receive_note is null"); + return (Criteria) this; + } + + public Criteria andReceiveNoteIsNotNull() { + addCriterion("receive_note is not null"); + return (Criteria) this; + } + + public Criteria andReceiveNoteEqualTo(String value) { + addCriterion("receive_note =", value, "receiveNote"); + return (Criteria) this; + } + + public Criteria andReceiveNoteNotEqualTo(String value) { + addCriterion("receive_note <>", value, "receiveNote"); + return (Criteria) this; + } + + public Criteria andReceiveNoteGreaterThan(String value) { + addCriterion("receive_note >", value, "receiveNote"); + return (Criteria) this; + } + + public Criteria andReceiveNoteGreaterThanOrEqualTo(String value) { + addCriterion("receive_note >=", value, "receiveNote"); + return (Criteria) this; + } + + public Criteria andReceiveNoteLessThan(String value) { + addCriterion("receive_note <", value, "receiveNote"); + return (Criteria) this; + } + + public Criteria andReceiveNoteLessThanOrEqualTo(String value) { + addCriterion("receive_note <=", value, "receiveNote"); + return (Criteria) this; + } + + public Criteria andReceiveNoteLike(String value) { + addCriterion("receive_note like", value, "receiveNote"); + return (Criteria) this; + } + + public Criteria andReceiveNoteNotLike(String value) { + addCriterion("receive_note not like", value, "receiveNote"); + return (Criteria) this; + } + + public Criteria andReceiveNoteIn(List values) { + addCriterion("receive_note in", values, "receiveNote"); + return (Criteria) this; + } + + public Criteria andReceiveNoteNotIn(List values) { + addCriterion("receive_note not in", values, "receiveNote"); + return (Criteria) this; + } + + public Criteria andReceiveNoteBetween(String value1, String value2) { + addCriterion("receive_note between", value1, value2, "receiveNote"); + return (Criteria) this; + } + + public Criteria andReceiveNoteNotBetween(String value1, String value2) { + addCriterion("receive_note not between", value1, value2, "receiveNote"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderReturnReason.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderReturnReason.java new file mode 100644 index 000000000..981fcfe97 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderReturnReason.java @@ -0,0 +1,78 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.util.Date; + +public class OmsOrderReturnReason implements Serializable { + private Long id; + + @Schema(title = "退货类型") + private String name; + + private Integer sort; + + @Schema(title = "状态:0->不启用;1->启用") + private Integer status; + + @Schema(title = "添加时间") + 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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderReturnReasonExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderReturnReasonExample.java new file mode 100644 index 000000000..aeeb85dcf --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderReturnReasonExample.java @@ -0,0 +1,510 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class OmsOrderReturnReasonExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OmsOrderReturnReasonExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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 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 values) { + addCriterion("status in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderSetting.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderSetting.java new file mode 100644 index 000000000..0f0715456 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderSetting.java @@ -0,0 +1,90 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class OmsOrderSetting implements Serializable { + private Long id; + + @Schema(title = "秒杀订单超时关闭时间(分)") + private Integer flashOrderOvertime; + + @Schema(title = "正常订单超时时间(分)") + private Integer normalOrderOvertime; + + @Schema(title = "发货后自动确认收货时间(天)") + private Integer confirmOvertime; + + @Schema(title = "自动完成交易时间,不能申请售后(天)") + private Integer finishOvertime; + + @Schema(title = "订单完成后自动好评时间(天)") + 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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderSettingExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderSettingExample.java new file mode 100644 index 000000000..e4055e7ca --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/OmsOrderSettingExample.java @@ -0,0 +1,559 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class OmsOrderSettingExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OmsOrderSettingExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 andFlashOrderOvertimeIsNull() { + addCriterion("flash_order_overtime is null"); + return (Criteria) this; + } + + public Criteria andFlashOrderOvertimeIsNotNull() { + addCriterion("flash_order_overtime is not null"); + return (Criteria) this; + } + + public Criteria andFlashOrderOvertimeEqualTo(Integer value) { + addCriterion("flash_order_overtime =", value, "flashOrderOvertime"); + return (Criteria) this; + } + + public Criteria andFlashOrderOvertimeNotEqualTo(Integer value) { + addCriterion("flash_order_overtime <>", value, "flashOrderOvertime"); + return (Criteria) this; + } + + public Criteria andFlashOrderOvertimeGreaterThan(Integer value) { + addCriterion("flash_order_overtime >", value, "flashOrderOvertime"); + return (Criteria) this; + } + + public Criteria andFlashOrderOvertimeGreaterThanOrEqualTo(Integer value) { + addCriterion("flash_order_overtime >=", value, "flashOrderOvertime"); + return (Criteria) this; + } + + public Criteria andFlashOrderOvertimeLessThan(Integer value) { + addCriterion("flash_order_overtime <", value, "flashOrderOvertime"); + return (Criteria) this; + } + + public Criteria andFlashOrderOvertimeLessThanOrEqualTo(Integer value) { + addCriterion("flash_order_overtime <=", value, "flashOrderOvertime"); + return (Criteria) this; + } + + public Criteria andFlashOrderOvertimeIn(List values) { + addCriterion("flash_order_overtime in", values, "flashOrderOvertime"); + return (Criteria) this; + } + + public Criteria andFlashOrderOvertimeNotIn(List values) { + addCriterion("flash_order_overtime not in", values, "flashOrderOvertime"); + return (Criteria) this; + } + + public Criteria andFlashOrderOvertimeBetween(Integer value1, Integer value2) { + addCriterion("flash_order_overtime between", value1, value2, "flashOrderOvertime"); + return (Criteria) this; + } + + public Criteria andFlashOrderOvertimeNotBetween(Integer value1, Integer value2) { + addCriterion("flash_order_overtime not between", value1, value2, "flashOrderOvertime"); + return (Criteria) this; + } + + public Criteria andNormalOrderOvertimeIsNull() { + addCriterion("normal_order_overtime is null"); + return (Criteria) this; + } + + public Criteria andNormalOrderOvertimeIsNotNull() { + addCriterion("normal_order_overtime is not null"); + return (Criteria) this; + } + + public Criteria andNormalOrderOvertimeEqualTo(Integer value) { + addCriterion("normal_order_overtime =", value, "normalOrderOvertime"); + return (Criteria) this; + } + + public Criteria andNormalOrderOvertimeNotEqualTo(Integer value) { + addCriterion("normal_order_overtime <>", value, "normalOrderOvertime"); + return (Criteria) this; + } + + public Criteria andNormalOrderOvertimeGreaterThan(Integer value) { + addCriterion("normal_order_overtime >", value, "normalOrderOvertime"); + return (Criteria) this; + } + + public Criteria andNormalOrderOvertimeGreaterThanOrEqualTo(Integer value) { + addCriterion("normal_order_overtime >=", value, "normalOrderOvertime"); + return (Criteria) this; + } + + public Criteria andNormalOrderOvertimeLessThan(Integer value) { + addCriterion("normal_order_overtime <", value, "normalOrderOvertime"); + return (Criteria) this; + } + + public Criteria andNormalOrderOvertimeLessThanOrEqualTo(Integer value) { + addCriterion("normal_order_overtime <=", value, "normalOrderOvertime"); + return (Criteria) this; + } + + public Criteria andNormalOrderOvertimeIn(List values) { + addCriterion("normal_order_overtime in", values, "normalOrderOvertime"); + return (Criteria) this; + } + + public Criteria andNormalOrderOvertimeNotIn(List values) { + addCriterion("normal_order_overtime not in", values, "normalOrderOvertime"); + return (Criteria) this; + } + + public Criteria andNormalOrderOvertimeBetween(Integer value1, Integer value2) { + addCriterion("normal_order_overtime between", value1, value2, "normalOrderOvertime"); + return (Criteria) this; + } + + public Criteria andNormalOrderOvertimeNotBetween(Integer value1, Integer value2) { + addCriterion("normal_order_overtime not between", value1, value2, "normalOrderOvertime"); + return (Criteria) this; + } + + public Criteria andConfirmOvertimeIsNull() { + addCriterion("confirm_overtime is null"); + return (Criteria) this; + } + + public Criteria andConfirmOvertimeIsNotNull() { + addCriterion("confirm_overtime is not null"); + return (Criteria) this; + } + + public Criteria andConfirmOvertimeEqualTo(Integer value) { + addCriterion("confirm_overtime =", value, "confirmOvertime"); + return (Criteria) this; + } + + public Criteria andConfirmOvertimeNotEqualTo(Integer value) { + addCriterion("confirm_overtime <>", value, "confirmOvertime"); + return (Criteria) this; + } + + public Criteria andConfirmOvertimeGreaterThan(Integer value) { + addCriterion("confirm_overtime >", value, "confirmOvertime"); + return (Criteria) this; + } + + public Criteria andConfirmOvertimeGreaterThanOrEqualTo(Integer value) { + addCriterion("confirm_overtime >=", value, "confirmOvertime"); + return (Criteria) this; + } + + public Criteria andConfirmOvertimeLessThan(Integer value) { + addCriterion("confirm_overtime <", value, "confirmOvertime"); + return (Criteria) this; + } + + public Criteria andConfirmOvertimeLessThanOrEqualTo(Integer value) { + addCriterion("confirm_overtime <=", value, "confirmOvertime"); + return (Criteria) this; + } + + public Criteria andConfirmOvertimeIn(List values) { + addCriterion("confirm_overtime in", values, "confirmOvertime"); + return (Criteria) this; + } + + public Criteria andConfirmOvertimeNotIn(List values) { + addCriterion("confirm_overtime not in", values, "confirmOvertime"); + return (Criteria) this; + } + + public Criteria andConfirmOvertimeBetween(Integer value1, Integer value2) { + addCriterion("confirm_overtime between", value1, value2, "confirmOvertime"); + return (Criteria) this; + } + + public Criteria andConfirmOvertimeNotBetween(Integer value1, Integer value2) { + addCriterion("confirm_overtime not between", value1, value2, "confirmOvertime"); + return (Criteria) this; + } + + public Criteria andFinishOvertimeIsNull() { + addCriterion("finish_overtime is null"); + return (Criteria) this; + } + + public Criteria andFinishOvertimeIsNotNull() { + addCriterion("finish_overtime is not null"); + return (Criteria) this; + } + + public Criteria andFinishOvertimeEqualTo(Integer value) { + addCriterion("finish_overtime =", value, "finishOvertime"); + return (Criteria) this; + } + + public Criteria andFinishOvertimeNotEqualTo(Integer value) { + addCriterion("finish_overtime <>", value, "finishOvertime"); + return (Criteria) this; + } + + public Criteria andFinishOvertimeGreaterThan(Integer value) { + addCriterion("finish_overtime >", value, "finishOvertime"); + return (Criteria) this; + } + + public Criteria andFinishOvertimeGreaterThanOrEqualTo(Integer value) { + addCriterion("finish_overtime >=", value, "finishOvertime"); + return (Criteria) this; + } + + public Criteria andFinishOvertimeLessThan(Integer value) { + addCriterion("finish_overtime <", value, "finishOvertime"); + return (Criteria) this; + } + + public Criteria andFinishOvertimeLessThanOrEqualTo(Integer value) { + addCriterion("finish_overtime <=", value, "finishOvertime"); + return (Criteria) this; + } + + public Criteria andFinishOvertimeIn(List values) { + addCriterion("finish_overtime in", values, "finishOvertime"); + return (Criteria) this; + } + + public Criteria andFinishOvertimeNotIn(List values) { + addCriterion("finish_overtime not in", values, "finishOvertime"); + return (Criteria) this; + } + + public Criteria andFinishOvertimeBetween(Integer value1, Integer value2) { + addCriterion("finish_overtime between", value1, value2, "finishOvertime"); + return (Criteria) this; + } + + public Criteria andFinishOvertimeNotBetween(Integer value1, Integer value2) { + addCriterion("finish_overtime not between", value1, value2, "finishOvertime"); + return (Criteria) this; + } + + public Criteria andCommentOvertimeIsNull() { + addCriterion("comment_overtime is null"); + return (Criteria) this; + } + + public Criteria andCommentOvertimeIsNotNull() { + addCriterion("comment_overtime is not null"); + return (Criteria) this; + } + + public Criteria andCommentOvertimeEqualTo(Integer value) { + addCriterion("comment_overtime =", value, "commentOvertime"); + return (Criteria) this; + } + + public Criteria andCommentOvertimeNotEqualTo(Integer value) { + addCriterion("comment_overtime <>", value, "commentOvertime"); + return (Criteria) this; + } + + public Criteria andCommentOvertimeGreaterThan(Integer value) { + addCriterion("comment_overtime >", value, "commentOvertime"); + return (Criteria) this; + } + + public Criteria andCommentOvertimeGreaterThanOrEqualTo(Integer value) { + addCriterion("comment_overtime >=", value, "commentOvertime"); + return (Criteria) this; + } + + public Criteria andCommentOvertimeLessThan(Integer value) { + addCriterion("comment_overtime <", value, "commentOvertime"); + return (Criteria) this; + } + + public Criteria andCommentOvertimeLessThanOrEqualTo(Integer value) { + addCriterion("comment_overtime <=", value, "commentOvertime"); + return (Criteria) this; + } + + public Criteria andCommentOvertimeIn(List values) { + addCriterion("comment_overtime in", values, "commentOvertime"); + return (Criteria) this; + } + + public Criteria andCommentOvertimeNotIn(List values) { + addCriterion("comment_overtime not in", values, "commentOvertime"); + return (Criteria) this; + } + + public Criteria andCommentOvertimeBetween(Integer value1, Integer value2) { + addCriterion("comment_overtime between", value1, value2, "commentOvertime"); + return (Criteria) this; + } + + public Criteria andCommentOvertimeNotBetween(Integer value1, Integer value2) { + addCriterion("comment_overtime not between", value1, value2, "commentOvertime"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsAlbum.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsAlbum.java new file mode 100644 index 000000000..ed0ae01e6 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsAlbum.java @@ -0,0 +1,85 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class PmsAlbum implements Serializable { + private Long id; + + private String name; + + private String coverPic; + + private Integer picCount; + + private Integer sort; + + private String description; + + 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 getCoverPic() { + return coverPic; + } + + public void setCoverPic(String coverPic) { + this.coverPic = coverPic; + } + + public Integer getPicCount() { + return picCount; + } + + public void setPicCount(Integer picCount) { + this.picCount = picCount; + } + + public Integer getSort() { + return sort; + } + + public void setSort(Integer sort) { + this.sort = sort; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + @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(", coverPic=").append(coverPic); + sb.append(", picCount=").append(picCount); + sb.append(", sort=").append(sort); + sb.append(", description=").append(description); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsAlbumExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsAlbumExample.java new file mode 100644 index 000000000..bc406c2ea --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsAlbumExample.java @@ -0,0 +1,589 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class PmsAlbumExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public PmsAlbumExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 andCoverPicIsNull() { + addCriterion("cover_pic is null"); + return (Criteria) this; + } + + public Criteria andCoverPicIsNotNull() { + addCriterion("cover_pic is not null"); + return (Criteria) this; + } + + public Criteria andCoverPicEqualTo(String value) { + addCriterion("cover_pic =", value, "coverPic"); + return (Criteria) this; + } + + public Criteria andCoverPicNotEqualTo(String value) { + addCriterion("cover_pic <>", value, "coverPic"); + return (Criteria) this; + } + + public Criteria andCoverPicGreaterThan(String value) { + addCriterion("cover_pic >", value, "coverPic"); + return (Criteria) this; + } + + public Criteria andCoverPicGreaterThanOrEqualTo(String value) { + addCriterion("cover_pic >=", value, "coverPic"); + return (Criteria) this; + } + + public Criteria andCoverPicLessThan(String value) { + addCriterion("cover_pic <", value, "coverPic"); + return (Criteria) this; + } + + public Criteria andCoverPicLessThanOrEqualTo(String value) { + addCriterion("cover_pic <=", value, "coverPic"); + return (Criteria) this; + } + + public Criteria andCoverPicLike(String value) { + addCriterion("cover_pic like", value, "coverPic"); + return (Criteria) this; + } + + public Criteria andCoverPicNotLike(String value) { + addCriterion("cover_pic not like", value, "coverPic"); + return (Criteria) this; + } + + public Criteria andCoverPicIn(List values) { + addCriterion("cover_pic in", values, "coverPic"); + return (Criteria) this; + } + + public Criteria andCoverPicNotIn(List values) { + addCriterion("cover_pic not in", values, "coverPic"); + return (Criteria) this; + } + + public Criteria andCoverPicBetween(String value1, String value2) { + addCriterion("cover_pic between", value1, value2, "coverPic"); + return (Criteria) this; + } + + public Criteria andCoverPicNotBetween(String value1, String value2) { + addCriterion("cover_pic not between", value1, value2, "coverPic"); + return (Criteria) this; + } + + public Criteria andPicCountIsNull() { + addCriterion("pic_count is null"); + return (Criteria) this; + } + + public Criteria andPicCountIsNotNull() { + addCriterion("pic_count is not null"); + return (Criteria) this; + } + + public Criteria andPicCountEqualTo(Integer value) { + addCriterion("pic_count =", value, "picCount"); + return (Criteria) this; + } + + public Criteria andPicCountNotEqualTo(Integer value) { + addCriterion("pic_count <>", value, "picCount"); + return (Criteria) this; + } + + public Criteria andPicCountGreaterThan(Integer value) { + addCriterion("pic_count >", value, "picCount"); + return (Criteria) this; + } + + public Criteria andPicCountGreaterThanOrEqualTo(Integer value) { + addCriterion("pic_count >=", value, "picCount"); + return (Criteria) this; + } + + public Criteria andPicCountLessThan(Integer value) { + addCriterion("pic_count <", value, "picCount"); + return (Criteria) this; + } + + public Criteria andPicCountLessThanOrEqualTo(Integer value) { + addCriterion("pic_count <=", value, "picCount"); + return (Criteria) this; + } + + public Criteria andPicCountIn(List values) { + addCriterion("pic_count in", values, "picCount"); + return (Criteria) this; + } + + public Criteria andPicCountNotIn(List values) { + addCriterion("pic_count not in", values, "picCount"); + return (Criteria) this; + } + + public Criteria andPicCountBetween(Integer value1, Integer value2) { + addCriterion("pic_count between", value1, value2, "picCount"); + return (Criteria) this; + } + + public Criteria andPicCountNotBetween(Integer value1, Integer value2) { + addCriterion("pic_count not between", value1, value2, "picCount"); + 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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 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 values) { + addCriterion("description in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotIn(List 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 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsAlbumPic.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsAlbumPic.java new file mode 100644 index 000000000..ef8fcfbd8 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsAlbumPic.java @@ -0,0 +1,52 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class PmsAlbumPic implements Serializable { + private Long id; + + private Long albumId; + + private String pic; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getAlbumId() { + return albumId; + } + + public void setAlbumId(Long albumId) { + this.albumId = albumId; + } + + public String getPic() { + return pic; + } + + public void setPic(String pic) { + this.pic = pic; + } + + @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(", albumId=").append(albumId); + sb.append(", pic=").append(pic); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsAlbumPicExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsAlbumPicExample.java new file mode 100644 index 000000000..4ee4192df --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsAlbumPicExample.java @@ -0,0 +1,389 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class PmsAlbumPicExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public PmsAlbumPicExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 andAlbumIdIsNull() { + addCriterion("album_id is null"); + return (Criteria) this; + } + + public Criteria andAlbumIdIsNotNull() { + addCriterion("album_id is not null"); + return (Criteria) this; + } + + public Criteria andAlbumIdEqualTo(Long value) { + addCriterion("album_id =", value, "albumId"); + return (Criteria) this; + } + + public Criteria andAlbumIdNotEqualTo(Long value) { + addCriterion("album_id <>", value, "albumId"); + return (Criteria) this; + } + + public Criteria andAlbumIdGreaterThan(Long value) { + addCriterion("album_id >", value, "albumId"); + return (Criteria) this; + } + + public Criteria andAlbumIdGreaterThanOrEqualTo(Long value) { + addCriterion("album_id >=", value, "albumId"); + return (Criteria) this; + } + + public Criteria andAlbumIdLessThan(Long value) { + addCriterion("album_id <", value, "albumId"); + return (Criteria) this; + } + + public Criteria andAlbumIdLessThanOrEqualTo(Long value) { + addCriterion("album_id <=", value, "albumId"); + return (Criteria) this; + } + + public Criteria andAlbumIdIn(List values) { + addCriterion("album_id in", values, "albumId"); + return (Criteria) this; + } + + public Criteria andAlbumIdNotIn(List values) { + addCriterion("album_id not in", values, "albumId"); + return (Criteria) this; + } + + public Criteria andAlbumIdBetween(Long value1, Long value2) { + addCriterion("album_id between", value1, value2, "albumId"); + return (Criteria) this; + } + + public Criteria andAlbumIdNotBetween(Long value1, Long value2) { + addCriterion("album_id not between", value1, value2, "albumId"); + 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 values) { + addCriterion("pic in", values, "pic"); + return (Criteria) this; + } + + public Criteria andPicNotIn(List 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 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsBrand.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsBrand.java new file mode 100644 index 000000000..611fde7a7 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsBrand.java @@ -0,0 +1,147 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class PmsBrand implements Serializable { + private Long id; + + private String name; + + @Schema(title = "首字母") + private String firstLetter; + + private Integer sort; + + @Schema(title = "是否为品牌制造商:0->不是;1->是") + private Integer factoryStatus; + + private Integer showStatus; + + @Schema(title = "产品数量") + private Integer productCount; + + @Schema(title = "产品评论数量") + private Integer productCommentCount; + + @Schema(title = "品牌logo") + private String logo; + + @Schema(title = "专区大图") + private String bigPic; + + @Schema(title = "品牌故事") + 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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsBrandExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsBrandExample.java new file mode 100644 index 000000000..611e5c9ac --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsBrandExample.java @@ -0,0 +1,839 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class PmsBrandExample { + protected String orderByClause; + + protected boolean distinct; + + protected List 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 values) { + addCriterion("first_letter in", values, "firstLetter"); + return (Criteria) this; + } + + public Criteria andFirstLetterNotIn(List 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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 values) { + addCriterion("factory_status in", values, "factoryStatus"); + return (Criteria) this; + } + + public Criteria andFactoryStatusNotIn(List 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 values) { + addCriterion("show_status in", values, "showStatus"); + return (Criteria) this; + } + + public Criteria andShowStatusNotIn(List 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 values) { + addCriterion("product_count in", values, "productCount"); + return (Criteria) this; + } + + public Criteria andProductCountNotIn(List 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 values) { + addCriterion("product_comment_count in", values, "productCommentCount"); + return (Criteria) this; + } + + public Criteria andProductCommentCountNotIn(List 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 values) { + addCriterion("logo in", values, "logo"); + return (Criteria) this; + } + + public Criteria andLogoNotIn(List 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 values) { + addCriterion("big_pic in", values, "bigPic"); + return (Criteria) this; + } + + public Criteria andBigPicNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsComment.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsComment.java new file mode 100644 index 000000000..576c22ff1 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsComment.java @@ -0,0 +1,190 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +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; + + @Schema(title = "评价星数:0->5") + private Integer star; + + @Schema(title = "评价的ip") + private String memberIp; + + private Date createTime; + + private Integer showStatus; + + @Schema(title = "购买时的商品属性") + private String productAttribute; + + private Integer collectCouont; + + private Integer readCount; + + @Schema(title = "上传图片地址,以逗号隔开") + private String pics; + + @Schema(title = "评论用户头像") + 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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsCommentExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsCommentExample.java new file mode 100644 index 000000000..08230770e --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsCommentExample.java @@ -0,0 +1,1100 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class PmsCommentExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public PmsCommentExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("product_id in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotIn(List 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 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 values) { + addCriterion("member_nick_name in", values, "memberNickName"); + return (Criteria) this; + } + + public Criteria andMemberNickNameNotIn(List 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 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 values) { + addCriterion("product_name in", values, "productName"); + return (Criteria) this; + } + + public Criteria andProductNameNotIn(List 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 andStarIsNull() { + addCriterion("star is null"); + return (Criteria) this; + } + + public Criteria andStarIsNotNull() { + addCriterion("star is not null"); + return (Criteria) this; + } + + public Criteria andStarEqualTo(Integer value) { + addCriterion("star =", value, "star"); + return (Criteria) this; + } + + public Criteria andStarNotEqualTo(Integer value) { + addCriterion("star <>", value, "star"); + return (Criteria) this; + } + + public Criteria andStarGreaterThan(Integer value) { + addCriterion("star >", value, "star"); + return (Criteria) this; + } + + public Criteria andStarGreaterThanOrEqualTo(Integer value) { + addCriterion("star >=", value, "star"); + return (Criteria) this; + } + + public Criteria andStarLessThan(Integer value) { + addCriterion("star <", value, "star"); + return (Criteria) this; + } + + public Criteria andStarLessThanOrEqualTo(Integer value) { + addCriterion("star <=", value, "star"); + return (Criteria) this; + } + + public Criteria andStarIn(List values) { + addCriterion("star in", values, "star"); + return (Criteria) this; + } + + public Criteria andStarNotIn(List values) { + addCriterion("star not in", values, "star"); + return (Criteria) this; + } + + public Criteria andStarBetween(Integer value1, Integer value2) { + addCriterion("star between", value1, value2, "star"); + return (Criteria) this; + } + + public Criteria andStarNotBetween(Integer value1, Integer value2) { + addCriterion("star not between", value1, value2, "star"); + return (Criteria) this; + } + + public Criteria andMemberIpIsNull() { + addCriterion("member_ip is null"); + return (Criteria) this; + } + + public Criteria andMemberIpIsNotNull() { + addCriterion("member_ip is not null"); + return (Criteria) this; + } + + public Criteria andMemberIpEqualTo(String value) { + addCriterion("member_ip =", value, "memberIp"); + return (Criteria) this; + } + + public Criteria andMemberIpNotEqualTo(String value) { + addCriterion("member_ip <>", value, "memberIp"); + return (Criteria) this; + } + + public Criteria andMemberIpGreaterThan(String value) { + addCriterion("member_ip >", value, "memberIp"); + return (Criteria) this; + } + + public Criteria andMemberIpGreaterThanOrEqualTo(String value) { + addCriterion("member_ip >=", value, "memberIp"); + return (Criteria) this; + } + + public Criteria andMemberIpLessThan(String value) { + addCriterion("member_ip <", value, "memberIp"); + return (Criteria) this; + } + + public Criteria andMemberIpLessThanOrEqualTo(String value) { + addCriterion("member_ip <=", value, "memberIp"); + return (Criteria) this; + } + + public Criteria andMemberIpLike(String value) { + addCriterion("member_ip like", value, "memberIp"); + return (Criteria) this; + } + + public Criteria andMemberIpNotLike(String value) { + addCriterion("member_ip not like", value, "memberIp"); + return (Criteria) this; + } + + public Criteria andMemberIpIn(List values) { + addCriterion("member_ip in", values, "memberIp"); + return (Criteria) this; + } + + public Criteria andMemberIpNotIn(List values) { + addCriterion("member_ip not in", values, "memberIp"); + return (Criteria) this; + } + + public Criteria andMemberIpBetween(String value1, String value2) { + addCriterion("member_ip between", value1, value2, "memberIp"); + return (Criteria) this; + } + + public Criteria andMemberIpNotBetween(String value1, String value2) { + addCriterion("member_ip not between", value1, value2, "memberIp"); + 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 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 values) { + addCriterion("show_status in", values, "showStatus"); + return (Criteria) this; + } + + public Criteria andShowStatusNotIn(List 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 andProductAttributeIsNull() { + addCriterion("product_attribute is null"); + return (Criteria) this; + } + + public Criteria andProductAttributeIsNotNull() { + addCriterion("product_attribute is not null"); + return (Criteria) this; + } + + public Criteria andProductAttributeEqualTo(String value) { + addCriterion("product_attribute =", value, "productAttribute"); + return (Criteria) this; + } + + public Criteria andProductAttributeNotEqualTo(String value) { + addCriterion("product_attribute <>", value, "productAttribute"); + return (Criteria) this; + } + + public Criteria andProductAttributeGreaterThan(String value) { + addCriterion("product_attribute >", value, "productAttribute"); + return (Criteria) this; + } + + public Criteria andProductAttributeGreaterThanOrEqualTo(String value) { + addCriterion("product_attribute >=", value, "productAttribute"); + return (Criteria) this; + } + + public Criteria andProductAttributeLessThan(String value) { + addCriterion("product_attribute <", value, "productAttribute"); + return (Criteria) this; + } + + public Criteria andProductAttributeLessThanOrEqualTo(String value) { + addCriterion("product_attribute <=", value, "productAttribute"); + return (Criteria) this; + } + + public Criteria andProductAttributeLike(String value) { + addCriterion("product_attribute like", value, "productAttribute"); + return (Criteria) this; + } + + public Criteria andProductAttributeNotLike(String value) { + addCriterion("product_attribute not like", value, "productAttribute"); + return (Criteria) this; + } + + public Criteria andProductAttributeIn(List values) { + addCriterion("product_attribute in", values, "productAttribute"); + return (Criteria) this; + } + + public Criteria andProductAttributeNotIn(List values) { + addCriterion("product_attribute not in", values, "productAttribute"); + return (Criteria) this; + } + + public Criteria andProductAttributeBetween(String value1, String value2) { + addCriterion("product_attribute between", value1, value2, "productAttribute"); + return (Criteria) this; + } + + public Criteria andProductAttributeNotBetween(String value1, String value2) { + addCriterion("product_attribute not between", value1, value2, "productAttribute"); + return (Criteria) this; + } + + public Criteria andCollectCouontIsNull() { + addCriterion("collect_couont is null"); + return (Criteria) this; + } + + public Criteria andCollectCouontIsNotNull() { + addCriterion("collect_couont is not null"); + return (Criteria) this; + } + + public Criteria andCollectCouontEqualTo(Integer value) { + addCriterion("collect_couont =", value, "collectCouont"); + return (Criteria) this; + } + + public Criteria andCollectCouontNotEqualTo(Integer value) { + addCriterion("collect_couont <>", value, "collectCouont"); + return (Criteria) this; + } + + public Criteria andCollectCouontGreaterThan(Integer value) { + addCriterion("collect_couont >", value, "collectCouont"); + return (Criteria) this; + } + + public Criteria andCollectCouontGreaterThanOrEqualTo(Integer value) { + addCriterion("collect_couont >=", value, "collectCouont"); + return (Criteria) this; + } + + public Criteria andCollectCouontLessThan(Integer value) { + addCriterion("collect_couont <", value, "collectCouont"); + return (Criteria) this; + } + + public Criteria andCollectCouontLessThanOrEqualTo(Integer value) { + addCriterion("collect_couont <=", value, "collectCouont"); + return (Criteria) this; + } + + public Criteria andCollectCouontIn(List values) { + addCriterion("collect_couont in", values, "collectCouont"); + return (Criteria) this; + } + + public Criteria andCollectCouontNotIn(List values) { + addCriterion("collect_couont not in", values, "collectCouont"); + return (Criteria) this; + } + + public Criteria andCollectCouontBetween(Integer value1, Integer value2) { + addCriterion("collect_couont between", value1, value2, "collectCouont"); + return (Criteria) this; + } + + public Criteria andCollectCouontNotBetween(Integer value1, Integer value2) { + addCriterion("collect_couont not between", value1, value2, "collectCouont"); + return (Criteria) this; + } + + public Criteria andReadCountIsNull() { + addCriterion("read_count is null"); + return (Criteria) this; + } + + public Criteria andReadCountIsNotNull() { + addCriterion("read_count is not null"); + return (Criteria) this; + } + + public Criteria andReadCountEqualTo(Integer value) { + addCriterion("read_count =", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountNotEqualTo(Integer value) { + addCriterion("read_count <>", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountGreaterThan(Integer value) { + addCriterion("read_count >", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountGreaterThanOrEqualTo(Integer value) { + addCriterion("read_count >=", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountLessThan(Integer value) { + addCriterion("read_count <", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountLessThanOrEqualTo(Integer value) { + addCriterion("read_count <=", value, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountIn(List values) { + addCriterion("read_count in", values, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountNotIn(List values) { + addCriterion("read_count not in", values, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountBetween(Integer value1, Integer value2) { + addCriterion("read_count between", value1, value2, "readCount"); + return (Criteria) this; + } + + public Criteria andReadCountNotBetween(Integer value1, Integer value2) { + addCriterion("read_count not between", value1, value2, "readCount"); + return (Criteria) this; + } + + public Criteria andPicsIsNull() { + addCriterion("pics is null"); + return (Criteria) this; + } + + public Criteria andPicsIsNotNull() { + addCriterion("pics is not null"); + return (Criteria) this; + } + + public Criteria andPicsEqualTo(String value) { + addCriterion("pics =", value, "pics"); + return (Criteria) this; + } + + public Criteria andPicsNotEqualTo(String value) { + addCriterion("pics <>", value, "pics"); + return (Criteria) this; + } + + public Criteria andPicsGreaterThan(String value) { + addCriterion("pics >", value, "pics"); + return (Criteria) this; + } + + public Criteria andPicsGreaterThanOrEqualTo(String value) { + addCriterion("pics >=", value, "pics"); + return (Criteria) this; + } + + public Criteria andPicsLessThan(String value) { + addCriterion("pics <", value, "pics"); + return (Criteria) this; + } + + public Criteria andPicsLessThanOrEqualTo(String value) { + addCriterion("pics <=", value, "pics"); + return (Criteria) this; + } + + public Criteria andPicsLike(String value) { + addCriterion("pics like", value, "pics"); + return (Criteria) this; + } + + public Criteria andPicsNotLike(String value) { + addCriterion("pics not like", value, "pics"); + return (Criteria) this; + } + + public Criteria andPicsIn(List values) { + addCriterion("pics in", values, "pics"); + return (Criteria) this; + } + + public Criteria andPicsNotIn(List values) { + addCriterion("pics not in", values, "pics"); + return (Criteria) this; + } + + public Criteria andPicsBetween(String value1, String value2) { + addCriterion("pics between", value1, value2, "pics"); + return (Criteria) this; + } + + public Criteria andPicsNotBetween(String value1, String value2) { + addCriterion("pics not between", value1, value2, "pics"); + 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 values) { + addCriterion("member_icon in", values, "memberIcon"); + return (Criteria) this; + } + + public Criteria andMemberIconNotIn(List 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 andReplayCountIsNull() { + addCriterion("replay_count is null"); + return (Criteria) this; + } + + public Criteria andReplayCountIsNotNull() { + addCriterion("replay_count is not null"); + return (Criteria) this; + } + + public Criteria andReplayCountEqualTo(Integer value) { + addCriterion("replay_count =", value, "replayCount"); + return (Criteria) this; + } + + public Criteria andReplayCountNotEqualTo(Integer value) { + addCriterion("replay_count <>", value, "replayCount"); + return (Criteria) this; + } + + public Criteria andReplayCountGreaterThan(Integer value) { + addCriterion("replay_count >", value, "replayCount"); + return (Criteria) this; + } + + public Criteria andReplayCountGreaterThanOrEqualTo(Integer value) { + addCriterion("replay_count >=", value, "replayCount"); + return (Criteria) this; + } + + public Criteria andReplayCountLessThan(Integer value) { + addCriterion("replay_count <", value, "replayCount"); + return (Criteria) this; + } + + public Criteria andReplayCountLessThanOrEqualTo(Integer value) { + addCriterion("replay_count <=", value, "replayCount"); + return (Criteria) this; + } + + public Criteria andReplayCountIn(List values) { + addCriterion("replay_count in", values, "replayCount"); + return (Criteria) this; + } + + public Criteria andReplayCountNotIn(List values) { + addCriterion("replay_count not in", values, "replayCount"); + return (Criteria) this; + } + + public Criteria andReplayCountBetween(Integer value1, Integer value2) { + addCriterion("replay_count between", value1, value2, "replayCount"); + return (Criteria) this; + } + + public Criteria andReplayCountNotBetween(Integer value1, Integer value2) { + addCriterion("replay_count not between", value1, value2, "replayCount"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsCommentReplay.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsCommentReplay.java new file mode 100644 index 000000000..0c0f0fe84 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsCommentReplay.java @@ -0,0 +1,98 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +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; + + @Schema(title = "评论人员类型;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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsCommentReplayExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsCommentReplayExample.java new file mode 100644 index 000000000..88eaf06b4 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsCommentReplayExample.java @@ -0,0 +1,650 @@ +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 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("comment_id in", values, "commentId"); + return (Criteria) this; + } + + public Criteria andCommentIdNotIn(List 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 values) { + addCriterion("member_nick_name in", values, "memberNickName"); + return (Criteria) this; + } + + public Criteria andMemberNickNameNotIn(List 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 values) { + addCriterion("member_icon in", values, "memberIcon"); + return (Criteria) this; + } + + public Criteria andMemberIconNotIn(List 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 values) { + addCriterion("content in", values, "content"); + return (Criteria) this; + } + + public Criteria andContentNotIn(List 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 values) { + addCriterion("type in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsFeightTemplate.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsFeightTemplate.java new file mode 100644 index 000000000..eb8e19268 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsFeightTemplate.java @@ -0,0 +1,112 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.math.BigDecimal; + +public class PmsFeightTemplate implements Serializable { + private Long id; + + private String name; + + @Schema(title = "计费类型:0->按重量;1->按件数") + private Integer chargeType; + + @Schema(title = "首重kg") + private BigDecimal firstWeight; + + @Schema(title = "首费(元)") + private BigDecimal firstFee; + + private BigDecimal continueWeight; + + private BigDecimal continmeFee; + + @Schema(title = "目的地(省、市)") + private String dest; + + 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 getChargeType() { + return chargeType; + } + + public void setChargeType(Integer chargeType) { + this.chargeType = chargeType; + } + + public BigDecimal getFirstWeight() { + return firstWeight; + } + + public void setFirstWeight(BigDecimal firstWeight) { + this.firstWeight = firstWeight; + } + + public BigDecimal getFirstFee() { + return firstFee; + } + + public void setFirstFee(BigDecimal firstFee) { + this.firstFee = firstFee; + } + + public BigDecimal getContinueWeight() { + return continueWeight; + } + + public void setContinueWeight(BigDecimal continueWeight) { + this.continueWeight = continueWeight; + } + + public BigDecimal getContinmeFee() { + return continmeFee; + } + + public void setContinmeFee(BigDecimal continmeFee) { + this.continmeFee = continmeFee; + } + + public String getDest() { + return dest; + } + + public void setDest(String dest) { + this.dest = dest; + } + + @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(", chargeType=").append(chargeType); + sb.append(", firstWeight=").append(firstWeight); + sb.append(", firstFee=").append(firstFee); + sb.append(", continueWeight=").append(continueWeight); + sb.append(", continmeFee=").append(continmeFee); + sb.append(", dest=").append(dest); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsFeightTemplateExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsFeightTemplateExample.java new file mode 100644 index 000000000..900dbaaea --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsFeightTemplateExample.java @@ -0,0 +1,700 @@ +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 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 values) { + addCriterion("charge_type in", values, "chargeType"); + return (Criteria) this; + } + + public Criteria andChargeTypeNotIn(List 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 values) { + addCriterion("first_weight in", values, "firstWeight"); + return (Criteria) this; + } + + public Criteria andFirstWeightNotIn(List 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 values) { + addCriterion("first_fee in", values, "firstFee"); + return (Criteria) this; + } + + public Criteria andFirstFeeNotIn(List 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 values) { + addCriterion("continue_weight in", values, "continueWeight"); + return (Criteria) this; + } + + public Criteria andContinueWeightNotIn(List 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 values) { + addCriterion("continme_fee in", values, "continmeFee"); + return (Criteria) this; + } + + public Criteria andContinmeFeeNotIn(List 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 values) { + addCriterion("dest in", values, "dest"); + return (Criteria) this; + } + + public Criteria andDestNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsMemberPrice.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsMemberPrice.java new file mode 100644 index 000000000..ab6f2edfa --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsMemberPrice.java @@ -0,0 +1,76 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.math.BigDecimal; + +public class PmsMemberPrice implements Serializable { + private Long id; + + private Long productId; + + private Long memberLevelId; + + @Schema(title = "会员价格") + private BigDecimal memberPrice; + + private String memberLevelName; + + 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 getMemberLevelId() { + return memberLevelId; + } + + public void setMemberLevelId(Long memberLevelId) { + this.memberLevelId = memberLevelId; + } + + public BigDecimal getMemberPrice() { + return memberPrice; + } + + public void setMemberPrice(BigDecimal memberPrice) { + this.memberPrice = memberPrice; + } + + public String getMemberLevelName() { + return memberLevelName; + } + + public void setMemberLevelName(String memberLevelName) { + this.memberLevelName = memberLevelName; + } + + @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(", memberLevelId=").append(memberLevelId); + sb.append(", memberPrice=").append(memberPrice); + sb.append(", memberLevelName=").append(memberLevelName); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsMemberPriceExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsMemberPriceExample.java new file mode 100644 index 000000000..6098bdbdc --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsMemberPriceExample.java @@ -0,0 +1,510 @@ +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 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("product_id in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotIn(List 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 values) { + addCriterion("member_level_id in", values, "memberLevelId"); + return (Criteria) this; + } + + public Criteria andMemberLevelIdNotIn(List 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 values) { + addCriterion("member_price in", values, "memberPrice"); + return (Criteria) this; + } + + public Criteria andMemberPriceNotIn(List 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 values) { + addCriterion("member_level_name in", values, "memberLevelName"); + return (Criteria) this; + } + + public Criteria andMemberLevelNameNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProduct.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProduct.java new file mode 100644 index 000000000..be1f817db --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProduct.java @@ -0,0 +1,513 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +public class PmsProduct implements Serializable { + private Long id; + + private Long brandId; + + private Long productCategoryId; + + private Long feightTemplateId; + + private Long productAttributeCategoryId; + + private String name; + + private String pic; + + @Schema(title = "货号") + private String productSn; + + @Schema(title = "删除状态:0->未删除;1->已删除") + private Integer deleteStatus; + + @Schema(title = "上架状态:0->下架;1->上架") + private Integer publishStatus; + + @Schema(title = "新品状态:0->不是新品;1->新品") + private Integer newStatus; + + @Schema(title = "推荐状态;0->不推荐;1->推荐") + private Integer recommandStatus; + + @Schema(title = "审核状态:0->未审核;1->审核通过") + private Integer verifyStatus; + + @Schema(title = "排序") + private Integer sort; + + @Schema(title = "销量") + private Integer sale; + + private BigDecimal price; + + @Schema(title = "促销价格") + private BigDecimal promotionPrice; + + @Schema(title = "赠送的成长值") + private Integer giftGrowth; + + @Schema(title = "赠送的积分") + private Integer giftPoint; + + @Schema(title = "限制使用的积分数") + private Integer usePointLimit; + + @Schema(title = "副标题") + private String subTitle; + + @Schema(title = "市场价") + private BigDecimal originalPrice; + + @Schema(title = "库存") + private Integer stock; + + @Schema(title = "库存预警值") + private Integer lowStock; + + @Schema(title = "单位") + private String unit; + + @Schema(title = "商品重量,默认为克") + private BigDecimal weight; + + @Schema(title = "是否为预告商品:0->不是;1->是") + private Integer previewStatus; + + @Schema(title = "以逗号分割的产品服务:1->无忧退货;2->快速退款;3->免费包邮") + private String serviceIds; + + private String keywords; + + private String note; + + @Schema(title = "画册图片,连产品图片限制为5张,以逗号分割") + private String albumPics; + + private String detailTitle; + + @Schema(title = "促销开始时间") + private Date promotionStartTime; + + @Schema(title = "促销结束时间") + private Date promotionEndTime; + + @Schema(title = "活动限购数量") + private Integer promotionPerLimit; + + @Schema(title = "促销类型:0->没有促销使用原价;1->使用促销价;2->使用会员价;3->使用阶梯价格;4->使用满减价格;5->限时购") + private Integer promotionType; + + @Schema(title = "品牌名称") + private String brandName; + + @Schema(title = "商品分类名称") + private String productCategoryName; + + @Schema(title = "商品描述") + private String description; + + private String detailDesc; + + @Schema(title = "产品详情网页内容") + private String detailHtml; + + @Schema(title = "移动端网页详情") + private String detailMobileHtml; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getBrandId() { + return brandId; + } + + public void setBrandId(Long brandId) { + this.brandId = brandId; + } + + public Long getProductCategoryId() { + return productCategoryId; + } + + public void setProductCategoryId(Long productCategoryId) { + this.productCategoryId = productCategoryId; + } + + public Long getFeightTemplateId() { + return feightTemplateId; + } + + public void setFeightTemplateId(Long feightTemplateId) { + this.feightTemplateId = feightTemplateId; + } + + 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 String getPic() { + return pic; + } + + public void setPic(String pic) { + this.pic = pic; + } + + public String getProductSn() { + return productSn; + } + + public void setProductSn(String productSn) { + this.productSn = productSn; + } + + public Integer getDeleteStatus() { + return deleteStatus; + } + + public void setDeleteStatus(Integer deleteStatus) { + this.deleteStatus = deleteStatus; + } + + public Integer getPublishStatus() { + return publishStatus; + } + + public void setPublishStatus(Integer publishStatus) { + this.publishStatus = publishStatus; + } + + public Integer getNewStatus() { + return newStatus; + } + + public void setNewStatus(Integer newStatus) { + this.newStatus = newStatus; + } + + public Integer getRecommandStatus() { + return recommandStatus; + } + + public void setRecommandStatus(Integer recommandStatus) { + this.recommandStatus = recommandStatus; + } + + public Integer getVerifyStatus() { + return verifyStatus; + } + + public void setVerifyStatus(Integer verifyStatus) { + this.verifyStatus = verifyStatus; + } + + public Integer getSort() { + return sort; + } + + public void setSort(Integer sort) { + this.sort = sort; + } + + public Integer getSale() { + return sale; + } + + public void setSale(Integer sale) { + this.sale = sale; + } + + public BigDecimal getPrice() { + return price; + } + + public void setPrice(BigDecimal price) { + this.price = price; + } + + public BigDecimal getPromotionPrice() { + return promotionPrice; + } + + public void setPromotionPrice(BigDecimal promotionPrice) { + this.promotionPrice = promotionPrice; + } + + public Integer getGiftGrowth() { + return giftGrowth; + } + + public void setGiftGrowth(Integer giftGrowth) { + this.giftGrowth = giftGrowth; + } + + public Integer getGiftPoint() { + return giftPoint; + } + + public void setGiftPoint(Integer giftPoint) { + this.giftPoint = giftPoint; + } + + public Integer getUsePointLimit() { + return usePointLimit; + } + + public void setUsePointLimit(Integer usePointLimit) { + this.usePointLimit = usePointLimit; + } + + public String getSubTitle() { + return subTitle; + } + + public void setSubTitle(String subTitle) { + this.subTitle = subTitle; + } + + public BigDecimal getOriginalPrice() { + return originalPrice; + } + + public void setOriginalPrice(BigDecimal originalPrice) { + this.originalPrice = originalPrice; + } + + public Integer getStock() { + return stock; + } + + public void setStock(Integer stock) { + this.stock = stock; + } + + public Integer getLowStock() { + return lowStock; + } + + public void setLowStock(Integer lowStock) { + this.lowStock = lowStock; + } + + public String getUnit() { + return unit; + } + + public void setUnit(String unit) { + this.unit = unit; + } + + public BigDecimal getWeight() { + return weight; + } + + public void setWeight(BigDecimal weight) { + this.weight = weight; + } + + public Integer getPreviewStatus() { + return previewStatus; + } + + public void setPreviewStatus(Integer previewStatus) { + this.previewStatus = previewStatus; + } + + public String getServiceIds() { + return serviceIds; + } + + public void setServiceIds(String serviceIds) { + this.serviceIds = serviceIds; + } + + public String getKeywords() { + return keywords; + } + + public void setKeywords(String keywords) { + this.keywords = keywords; + } + + public String getNote() { + return note; + } + + public void setNote(String note) { + this.note = note; + } + + public String getAlbumPics() { + return albumPics; + } + + public void setAlbumPics(String albumPics) { + this.albumPics = albumPics; + } + + public String getDetailTitle() { + return detailTitle; + } + + public void setDetailTitle(String detailTitle) { + this.detailTitle = detailTitle; + } + + public Date getPromotionStartTime() { + return promotionStartTime; + } + + public void setPromotionStartTime(Date promotionStartTime) { + this.promotionStartTime = promotionStartTime; + } + + public Date getPromotionEndTime() { + return promotionEndTime; + } + + public void setPromotionEndTime(Date promotionEndTime) { + this.promotionEndTime = promotionEndTime; + } + + public Integer getPromotionPerLimit() { + return promotionPerLimit; + } + + public void setPromotionPerLimit(Integer promotionPerLimit) { + this.promotionPerLimit = promotionPerLimit; + } + + public Integer getPromotionType() { + return promotionType; + } + + public void setPromotionType(Integer promotionType) { + this.promotionType = promotionType; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getProductCategoryName() { + return productCategoryName; + } + + public void setProductCategoryName(String productCategoryName) { + this.productCategoryName = productCategoryName; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDetailDesc() { + return detailDesc; + } + + public void setDetailDesc(String detailDesc) { + this.detailDesc = detailDesc; + } + + public String getDetailHtml() { + return detailHtml; + } + + public void setDetailHtml(String detailHtml) { + this.detailHtml = detailHtml; + } + + public String getDetailMobileHtml() { + return detailMobileHtml; + } + + public void setDetailMobileHtml(String detailMobileHtml) { + this.detailMobileHtml = detailMobileHtml; + } + + @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(", brandId=").append(brandId); + sb.append(", productCategoryId=").append(productCategoryId); + sb.append(", feightTemplateId=").append(feightTemplateId); + sb.append(", productAttributeCategoryId=").append(productAttributeCategoryId); + sb.append(", name=").append(name); + sb.append(", pic=").append(pic); + sb.append(", productSn=").append(productSn); + sb.append(", deleteStatus=").append(deleteStatus); + sb.append(", publishStatus=").append(publishStatus); + sb.append(", newStatus=").append(newStatus); + sb.append(", recommandStatus=").append(recommandStatus); + sb.append(", verifyStatus=").append(verifyStatus); + sb.append(", sort=").append(sort); + sb.append(", sale=").append(sale); + sb.append(", price=").append(price); + sb.append(", promotionPrice=").append(promotionPrice); + sb.append(", giftGrowth=").append(giftGrowth); + sb.append(", giftPoint=").append(giftPoint); + sb.append(", usePointLimit=").append(usePointLimit); + sb.append(", subTitle=").append(subTitle); + sb.append(", originalPrice=").append(originalPrice); + sb.append(", stock=").append(stock); + sb.append(", lowStock=").append(lowStock); + sb.append(", unit=").append(unit); + sb.append(", weight=").append(weight); + sb.append(", previewStatus=").append(previewStatus); + sb.append(", serviceIds=").append(serviceIds); + sb.append(", keywords=").append(keywords); + sb.append(", note=").append(note); + sb.append(", albumPics=").append(albumPics); + sb.append(", detailTitle=").append(detailTitle); + sb.append(", promotionStartTime=").append(promotionStartTime); + sb.append(", promotionEndTime=").append(promotionEndTime); + sb.append(", promotionPerLimit=").append(promotionPerLimit); + sb.append(", promotionType=").append(promotionType); + sb.append(", brandName=").append(brandName); + sb.append(", productCategoryName=").append(productCategoryName); + sb.append(", description=").append(description); + sb.append(", detailDesc=").append(detailDesc); + sb.append(", detailHtml=").append(detailHtml); + sb.append(", detailMobileHtml=").append(detailMobileHtml); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttribute.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttribute.java new file mode 100644 index 000000000..eb24c3859 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttribute.java @@ -0,0 +1,160 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class PmsProductAttribute implements Serializable { + private Long id; + + private Long productAttributeCategoryId; + + private String name; + + @Schema(title = "属性选择类型:0->唯一;1->单选;2->多选") + private Integer selectType; + + @Schema(title = "属性录入方式:0->手工录入;1->从列表中选取") + private Integer inputType; + + @Schema(title = "可选值列表,以逗号隔开") + private String inputList; + + @Schema(title = "排序字段:最高的可以单独上传图片") + private Integer sort; + + @Schema(title = "分类筛选样式:1->普通;1->颜色") + private Integer filterType; + + @Schema(title = "检索类型;0->不需要进行检索;1->关键字检索;2->范围检索") + private Integer searchType; + + @Schema(title = "相同属性产品是否关联;0->不关联;1->关联") + private Integer relatedStatus; + + @Schema(title = "是否支持手动新增;0->不支持;1->支持") + private Integer handAddStatus; + + @Schema(title = "属性的类型;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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttributeCategory.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttributeCategory.java new file mode 100644 index 000000000..e9b1d4d53 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttributeCategory.java @@ -0,0 +1,65 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class PmsProductAttributeCategory implements Serializable { + private Long id; + + private String name; + + @Schema(title = "属性数量") + private Integer attributeCount; + + @Schema(title = "参数数量") + 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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttributeCategoryExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttributeCategoryExample.java new file mode 100644 index 000000000..b6ca15fa7 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttributeCategoryExample.java @@ -0,0 +1,449 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class PmsProductAttributeCategoryExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public PmsProductAttributeCategoryExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 andAttributeCountIsNull() { + addCriterion("attribute_count is null"); + return (Criteria) this; + } + + public Criteria andAttributeCountIsNotNull() { + addCriterion("attribute_count is not null"); + return (Criteria) this; + } + + public Criteria andAttributeCountEqualTo(Integer value) { + addCriterion("attribute_count =", value, "attributeCount"); + return (Criteria) this; + } + + public Criteria andAttributeCountNotEqualTo(Integer value) { + addCriterion("attribute_count <>", value, "attributeCount"); + return (Criteria) this; + } + + public Criteria andAttributeCountGreaterThan(Integer value) { + addCriterion("attribute_count >", value, "attributeCount"); + return (Criteria) this; + } + + public Criteria andAttributeCountGreaterThanOrEqualTo(Integer value) { + addCriterion("attribute_count >=", value, "attributeCount"); + return (Criteria) this; + } + + public Criteria andAttributeCountLessThan(Integer value) { + addCriterion("attribute_count <", value, "attributeCount"); + return (Criteria) this; + } + + public Criteria andAttributeCountLessThanOrEqualTo(Integer value) { + addCriterion("attribute_count <=", value, "attributeCount"); + return (Criteria) this; + } + + public Criteria andAttributeCountIn(List values) { + addCriterion("attribute_count in", values, "attributeCount"); + return (Criteria) this; + } + + public Criteria andAttributeCountNotIn(List values) { + addCriterion("attribute_count not in", values, "attributeCount"); + return (Criteria) this; + } + + public Criteria andAttributeCountBetween(Integer value1, Integer value2) { + addCriterion("attribute_count between", value1, value2, "attributeCount"); + return (Criteria) this; + } + + public Criteria andAttributeCountNotBetween(Integer value1, Integer value2) { + addCriterion("attribute_count not between", value1, value2, "attributeCount"); + return (Criteria) this; + } + + public Criteria andParamCountIsNull() { + addCriterion("param_count is null"); + return (Criteria) this; + } + + public Criteria andParamCountIsNotNull() { + addCriterion("param_count is not null"); + return (Criteria) this; + } + + public Criteria andParamCountEqualTo(Integer value) { + addCriterion("param_count =", value, "paramCount"); + return (Criteria) this; + } + + public Criteria andParamCountNotEqualTo(Integer value) { + addCriterion("param_count <>", value, "paramCount"); + return (Criteria) this; + } + + public Criteria andParamCountGreaterThan(Integer value) { + addCriterion("param_count >", value, "paramCount"); + return (Criteria) this; + } + + public Criteria andParamCountGreaterThanOrEqualTo(Integer value) { + addCriterion("param_count >=", value, "paramCount"); + return (Criteria) this; + } + + public Criteria andParamCountLessThan(Integer value) { + addCriterion("param_count <", value, "paramCount"); + return (Criteria) this; + } + + public Criteria andParamCountLessThanOrEqualTo(Integer value) { + addCriterion("param_count <=", value, "paramCount"); + return (Criteria) this; + } + + public Criteria andParamCountIn(List values) { + addCriterion("param_count in", values, "paramCount"); + return (Criteria) this; + } + + public Criteria andParamCountNotIn(List values) { + addCriterion("param_count not in", values, "paramCount"); + return (Criteria) this; + } + + public Criteria andParamCountBetween(Integer value1, Integer value2) { + addCriterion("param_count between", value1, value2, "paramCount"); + return (Criteria) this; + } + + public Criteria andParamCountNotBetween(Integer value1, Integer value2) { + addCriterion("param_count not between", value1, value2, "paramCount"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttributeExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttributeExample.java new file mode 100644 index 000000000..0ab45c39c --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttributeExample.java @@ -0,0 +1,939 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class PmsProductAttributeExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public PmsProductAttributeExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 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 values) { + addCriterion("product_attribute_category_id in", values, "productAttributeCategoryId"); + return (Criteria) this; + } + + public Criteria andProductAttributeCategoryIdNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 andSelectTypeIsNull() { + addCriterion("select_type is null"); + return (Criteria) this; + } + + public Criteria andSelectTypeIsNotNull() { + addCriterion("select_type is not null"); + return (Criteria) this; + } + + public Criteria andSelectTypeEqualTo(Integer value) { + addCriterion("select_type =", value, "selectType"); + return (Criteria) this; + } + + public Criteria andSelectTypeNotEqualTo(Integer value) { + addCriterion("select_type <>", value, "selectType"); + return (Criteria) this; + } + + public Criteria andSelectTypeGreaterThan(Integer value) { + addCriterion("select_type >", value, "selectType"); + return (Criteria) this; + } + + public Criteria andSelectTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("select_type >=", value, "selectType"); + return (Criteria) this; + } + + public Criteria andSelectTypeLessThan(Integer value) { + addCriterion("select_type <", value, "selectType"); + return (Criteria) this; + } + + public Criteria andSelectTypeLessThanOrEqualTo(Integer value) { + addCriterion("select_type <=", value, "selectType"); + return (Criteria) this; + } + + public Criteria andSelectTypeIn(List values) { + addCriterion("select_type in", values, "selectType"); + return (Criteria) this; + } + + public Criteria andSelectTypeNotIn(List values) { + addCriterion("select_type not in", values, "selectType"); + return (Criteria) this; + } + + public Criteria andSelectTypeBetween(Integer value1, Integer value2) { + addCriterion("select_type between", value1, value2, "selectType"); + return (Criteria) this; + } + + public Criteria andSelectTypeNotBetween(Integer value1, Integer value2) { + addCriterion("select_type not between", value1, value2, "selectType"); + return (Criteria) this; + } + + public Criteria andInputTypeIsNull() { + addCriterion("input_type is null"); + return (Criteria) this; + } + + public Criteria andInputTypeIsNotNull() { + addCriterion("input_type is not null"); + return (Criteria) this; + } + + public Criteria andInputTypeEqualTo(Integer value) { + addCriterion("input_type =", value, "inputType"); + return (Criteria) this; + } + + public Criteria andInputTypeNotEqualTo(Integer value) { + addCriterion("input_type <>", value, "inputType"); + return (Criteria) this; + } + + public Criteria andInputTypeGreaterThan(Integer value) { + addCriterion("input_type >", value, "inputType"); + return (Criteria) this; + } + + public Criteria andInputTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("input_type >=", value, "inputType"); + return (Criteria) this; + } + + public Criteria andInputTypeLessThan(Integer value) { + addCriterion("input_type <", value, "inputType"); + return (Criteria) this; + } + + public Criteria andInputTypeLessThanOrEqualTo(Integer value) { + addCriterion("input_type <=", value, "inputType"); + return (Criteria) this; + } + + public Criteria andInputTypeIn(List values) { + addCriterion("input_type in", values, "inputType"); + return (Criteria) this; + } + + public Criteria andInputTypeNotIn(List values) { + addCriterion("input_type not in", values, "inputType"); + return (Criteria) this; + } + + public Criteria andInputTypeBetween(Integer value1, Integer value2) { + addCriterion("input_type between", value1, value2, "inputType"); + return (Criteria) this; + } + + public Criteria andInputTypeNotBetween(Integer value1, Integer value2) { + addCriterion("input_type not between", value1, value2, "inputType"); + return (Criteria) this; + } + + public Criteria andInputListIsNull() { + addCriterion("input_list is null"); + return (Criteria) this; + } + + public Criteria andInputListIsNotNull() { + addCriterion("input_list is not null"); + return (Criteria) this; + } + + public Criteria andInputListEqualTo(String value) { + addCriterion("input_list =", value, "inputList"); + return (Criteria) this; + } + + public Criteria andInputListNotEqualTo(String value) { + addCriterion("input_list <>", value, "inputList"); + return (Criteria) this; + } + + public Criteria andInputListGreaterThan(String value) { + addCriterion("input_list >", value, "inputList"); + return (Criteria) this; + } + + public Criteria andInputListGreaterThanOrEqualTo(String value) { + addCriterion("input_list >=", value, "inputList"); + return (Criteria) this; + } + + public Criteria andInputListLessThan(String value) { + addCriterion("input_list <", value, "inputList"); + return (Criteria) this; + } + + public Criteria andInputListLessThanOrEqualTo(String value) { + addCriterion("input_list <=", value, "inputList"); + return (Criteria) this; + } + + public Criteria andInputListLike(String value) { + addCriterion("input_list like", value, "inputList"); + return (Criteria) this; + } + + public Criteria andInputListNotLike(String value) { + addCriterion("input_list not like", value, "inputList"); + return (Criteria) this; + } + + public Criteria andInputListIn(List values) { + addCriterion("input_list in", values, "inputList"); + return (Criteria) this; + } + + public Criteria andInputListNotIn(List values) { + addCriterion("input_list not in", values, "inputList"); + return (Criteria) this; + } + + public Criteria andInputListBetween(String value1, String value2) { + addCriterion("input_list between", value1, value2, "inputList"); + return (Criteria) this; + } + + public Criteria andInputListNotBetween(String value1, String value2) { + addCriterion("input_list not between", value1, value2, "inputList"); + 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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 andFilterTypeIsNull() { + addCriterion("filter_type is null"); + return (Criteria) this; + } + + public Criteria andFilterTypeIsNotNull() { + addCriterion("filter_type is not null"); + return (Criteria) this; + } + + public Criteria andFilterTypeEqualTo(Integer value) { + addCriterion("filter_type =", value, "filterType"); + return (Criteria) this; + } + + public Criteria andFilterTypeNotEqualTo(Integer value) { + addCriterion("filter_type <>", value, "filterType"); + return (Criteria) this; + } + + public Criteria andFilterTypeGreaterThan(Integer value) { + addCriterion("filter_type >", value, "filterType"); + return (Criteria) this; + } + + public Criteria andFilterTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("filter_type >=", value, "filterType"); + return (Criteria) this; + } + + public Criteria andFilterTypeLessThan(Integer value) { + addCriterion("filter_type <", value, "filterType"); + return (Criteria) this; + } + + public Criteria andFilterTypeLessThanOrEqualTo(Integer value) { + addCriterion("filter_type <=", value, "filterType"); + return (Criteria) this; + } + + public Criteria andFilterTypeIn(List values) { + addCriterion("filter_type in", values, "filterType"); + return (Criteria) this; + } + + public Criteria andFilterTypeNotIn(List values) { + addCriterion("filter_type not in", values, "filterType"); + return (Criteria) this; + } + + public Criteria andFilterTypeBetween(Integer value1, Integer value2) { + addCriterion("filter_type between", value1, value2, "filterType"); + return (Criteria) this; + } + + public Criteria andFilterTypeNotBetween(Integer value1, Integer value2) { + addCriterion("filter_type not between", value1, value2, "filterType"); + return (Criteria) this; + } + + public Criteria andSearchTypeIsNull() { + addCriterion("search_type is null"); + return (Criteria) this; + } + + public Criteria andSearchTypeIsNotNull() { + addCriterion("search_type is not null"); + return (Criteria) this; + } + + public Criteria andSearchTypeEqualTo(Integer value) { + addCriterion("search_type =", value, "searchType"); + return (Criteria) this; + } + + public Criteria andSearchTypeNotEqualTo(Integer value) { + addCriterion("search_type <>", value, "searchType"); + return (Criteria) this; + } + + public Criteria andSearchTypeGreaterThan(Integer value) { + addCriterion("search_type >", value, "searchType"); + return (Criteria) this; + } + + public Criteria andSearchTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("search_type >=", value, "searchType"); + return (Criteria) this; + } + + public Criteria andSearchTypeLessThan(Integer value) { + addCriterion("search_type <", value, "searchType"); + return (Criteria) this; + } + + public Criteria andSearchTypeLessThanOrEqualTo(Integer value) { + addCriterion("search_type <=", value, "searchType"); + return (Criteria) this; + } + + public Criteria andSearchTypeIn(List values) { + addCriterion("search_type in", values, "searchType"); + return (Criteria) this; + } + + public Criteria andSearchTypeNotIn(List values) { + addCriterion("search_type not in", values, "searchType"); + return (Criteria) this; + } + + public Criteria andSearchTypeBetween(Integer value1, Integer value2) { + addCriterion("search_type between", value1, value2, "searchType"); + return (Criteria) this; + } + + public Criteria andSearchTypeNotBetween(Integer value1, Integer value2) { + addCriterion("search_type not between", value1, value2, "searchType"); + return (Criteria) this; + } + + public Criteria andRelatedStatusIsNull() { + addCriterion("related_status is null"); + return (Criteria) this; + } + + public Criteria andRelatedStatusIsNotNull() { + addCriterion("related_status is not null"); + return (Criteria) this; + } + + public Criteria andRelatedStatusEqualTo(Integer value) { + addCriterion("related_status =", value, "relatedStatus"); + return (Criteria) this; + } + + public Criteria andRelatedStatusNotEqualTo(Integer value) { + addCriterion("related_status <>", value, "relatedStatus"); + return (Criteria) this; + } + + public Criteria andRelatedStatusGreaterThan(Integer value) { + addCriterion("related_status >", value, "relatedStatus"); + return (Criteria) this; + } + + public Criteria andRelatedStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("related_status >=", value, "relatedStatus"); + return (Criteria) this; + } + + public Criteria andRelatedStatusLessThan(Integer value) { + addCriterion("related_status <", value, "relatedStatus"); + return (Criteria) this; + } + + public Criteria andRelatedStatusLessThanOrEqualTo(Integer value) { + addCriterion("related_status <=", value, "relatedStatus"); + return (Criteria) this; + } + + public Criteria andRelatedStatusIn(List values) { + addCriterion("related_status in", values, "relatedStatus"); + return (Criteria) this; + } + + public Criteria andRelatedStatusNotIn(List values) { + addCriterion("related_status not in", values, "relatedStatus"); + return (Criteria) this; + } + + public Criteria andRelatedStatusBetween(Integer value1, Integer value2) { + addCriterion("related_status between", value1, value2, "relatedStatus"); + return (Criteria) this; + } + + public Criteria andRelatedStatusNotBetween(Integer value1, Integer value2) { + addCriterion("related_status not between", value1, value2, "relatedStatus"); + return (Criteria) this; + } + + public Criteria andHandAddStatusIsNull() { + addCriterion("hand_add_status is null"); + return (Criteria) this; + } + + public Criteria andHandAddStatusIsNotNull() { + addCriterion("hand_add_status is not null"); + return (Criteria) this; + } + + public Criteria andHandAddStatusEqualTo(Integer value) { + addCriterion("hand_add_status =", value, "handAddStatus"); + return (Criteria) this; + } + + public Criteria andHandAddStatusNotEqualTo(Integer value) { + addCriterion("hand_add_status <>", value, "handAddStatus"); + return (Criteria) this; + } + + public Criteria andHandAddStatusGreaterThan(Integer value) { + addCriterion("hand_add_status >", value, "handAddStatus"); + return (Criteria) this; + } + + public Criteria andHandAddStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("hand_add_status >=", value, "handAddStatus"); + return (Criteria) this; + } + + public Criteria andHandAddStatusLessThan(Integer value) { + addCriterion("hand_add_status <", value, "handAddStatus"); + return (Criteria) this; + } + + public Criteria andHandAddStatusLessThanOrEqualTo(Integer value) { + addCriterion("hand_add_status <=", value, "handAddStatus"); + return (Criteria) this; + } + + public Criteria andHandAddStatusIn(List values) { + addCriterion("hand_add_status in", values, "handAddStatus"); + return (Criteria) this; + } + + public Criteria andHandAddStatusNotIn(List values) { + addCriterion("hand_add_status not in", values, "handAddStatus"); + return (Criteria) this; + } + + public Criteria andHandAddStatusBetween(Integer value1, Integer value2) { + addCriterion("hand_add_status between", value1, value2, "handAddStatus"); + return (Criteria) this; + } + + public Criteria andHandAddStatusNotBetween(Integer value1, Integer value2) { + addCriterion("hand_add_status not between", value1, value2, "handAddStatus"); + 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 values) { + addCriterion("type in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttributeValue.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttributeValue.java new file mode 100644 index 000000000..594d9c96c --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttributeValue.java @@ -0,0 +1,64 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class PmsProductAttributeValue implements Serializable { + private Long id; + + private Long productId; + + private Long productAttributeId; + + @Schema(title = "手动添加规格或参数的值,参数单值,规格有多个时以逗号隔开") + 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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttributeValueExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttributeValueExample.java new file mode 100644 index 000000000..3cc7711dd --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductAttributeValueExample.java @@ -0,0 +1,449 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class PmsProductAttributeValueExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public PmsProductAttributeValueExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("product_id in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotIn(List 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 andProductAttributeIdIsNull() { + addCriterion("product_attribute_id is null"); + return (Criteria) this; + } + + public Criteria andProductAttributeIdIsNotNull() { + addCriterion("product_attribute_id is not null"); + return (Criteria) this; + } + + public Criteria andProductAttributeIdEqualTo(Long value) { + addCriterion("product_attribute_id =", value, "productAttributeId"); + return (Criteria) this; + } + + public Criteria andProductAttributeIdNotEqualTo(Long value) { + addCriterion("product_attribute_id <>", value, "productAttributeId"); + return (Criteria) this; + } + + public Criteria andProductAttributeIdGreaterThan(Long value) { + addCriterion("product_attribute_id >", value, "productAttributeId"); + return (Criteria) this; + } + + public Criteria andProductAttributeIdGreaterThanOrEqualTo(Long value) { + addCriterion("product_attribute_id >=", value, "productAttributeId"); + return (Criteria) this; + } + + public Criteria andProductAttributeIdLessThan(Long value) { + addCriterion("product_attribute_id <", value, "productAttributeId"); + return (Criteria) this; + } + + public Criteria andProductAttributeIdLessThanOrEqualTo(Long value) { + addCriterion("product_attribute_id <=", value, "productAttributeId"); + return (Criteria) this; + } + + public Criteria andProductAttributeIdIn(List values) { + addCriterion("product_attribute_id in", values, "productAttributeId"); + return (Criteria) this; + } + + public Criteria andProductAttributeIdNotIn(List values) { + addCriterion("product_attribute_id not in", values, "productAttributeId"); + return (Criteria) this; + } + + public Criteria andProductAttributeIdBetween(Long value1, Long value2) { + addCriterion("product_attribute_id between", value1, value2, "productAttributeId"); + return (Criteria) this; + } + + public Criteria andProductAttributeIdNotBetween(Long value1, Long value2) { + addCriterion("product_attribute_id not between", value1, value2, "productAttributeId"); + 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 values) { + addCriterion("value in", values, "value"); + return (Criteria) this; + } + + public Criteria andValueNotIn(List 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 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductCategory.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductCategory.java new file mode 100644 index 000000000..261190bec --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductCategory.java @@ -0,0 +1,157 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class PmsProductCategory implements Serializable { + private Long id; + + @Schema(title = "上机分类的编号:0表示一级分类") + private Long parentId; + + private String name; + + @Schema(title = "分类级别:0->1级;1->2级") + private Integer level; + + private Integer productCount; + + private String productUnit; + + @Schema(title = "是否显示在导航栏:0->不显示;1->显示") + private Integer navStatus; + + @Schema(title = "显示状态:0->不显示;1->显示") + private Integer showStatus; + + private Integer sort; + + @Schema(title = "图标") + private String icon; + + private String keywords; + + @Schema(title = "描述") + private String description; + + 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 String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getLevel() { + return level; + } + + public void setLevel(Integer level) { + this.level = level; + } + + public Integer getProductCount() { + return productCount; + } + + public void setProductCount(Integer productCount) { + this.productCount = productCount; + } + + public String getProductUnit() { + return productUnit; + } + + public void setProductUnit(String productUnit) { + this.productUnit = productUnit; + } + + public Integer getNavStatus() { + return navStatus; + } + + public void setNavStatus(Integer navStatus) { + this.navStatus = navStatus; + } + + public Integer getShowStatus() { + return showStatus; + } + + public void setShowStatus(Integer showStatus) { + this.showStatus = showStatus; + } + + public Integer getSort() { + return sort; + } + + public void setSort(Integer sort) { + this.sort = sort; + } + + public String getIcon() { + return icon; + } + + public void setIcon(String icon) { + this.icon = icon; + } + + public String getKeywords() { + return keywords; + } + + public void setKeywords(String keywords) { + this.keywords = keywords; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + @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(", name=").append(name); + sb.append(", level=").append(level); + sb.append(", productCount=").append(productCount); + sb.append(", productUnit=").append(productUnit); + sb.append(", navStatus=").append(navStatus); + sb.append(", showStatus=").append(showStatus); + sb.append(", sort=").append(sort); + sb.append(", icon=").append(icon); + sb.append(", keywords=").append(keywords); + sb.append(", description=").append(description); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductCategoryAttributeRelation.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductCategoryAttributeRelation.java new file mode 100644 index 000000000..aeaab809c --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductCategoryAttributeRelation.java @@ -0,0 +1,52 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class PmsProductCategoryAttributeRelation implements Serializable { + private Long id; + + private Long productCategoryId; + + private Long productAttributeId; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getProductCategoryId() { + return productCategoryId; + } + + public void setProductCategoryId(Long productCategoryId) { + this.productCategoryId = productCategoryId; + } + + public Long getProductAttributeId() { + return productAttributeId; + } + + public void setProductAttributeId(Long productAttributeId) { + this.productAttributeId = productAttributeId; + } + + @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(", productCategoryId=").append(productCategoryId); + sb.append(", productAttributeId=").append(productAttributeId); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductCategoryAttributeRelationExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductCategoryAttributeRelationExample.java new file mode 100644 index 000000000..bbd1d80e5 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductCategoryAttributeRelationExample.java @@ -0,0 +1,379 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class PmsProductCategoryAttributeRelationExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public PmsProductCategoryAttributeRelationExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 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 values) { + addCriterion("product_category_id in", values, "productCategoryId"); + return (Criteria) this; + } + + public Criteria andProductCategoryIdNotIn(List 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 andProductAttributeIdIsNull() { + addCriterion("product_attribute_id is null"); + return (Criteria) this; + } + + public Criteria andProductAttributeIdIsNotNull() { + addCriterion("product_attribute_id is not null"); + return (Criteria) this; + } + + public Criteria andProductAttributeIdEqualTo(Long value) { + addCriterion("product_attribute_id =", value, "productAttributeId"); + return (Criteria) this; + } + + public Criteria andProductAttributeIdNotEqualTo(Long value) { + addCriterion("product_attribute_id <>", value, "productAttributeId"); + return (Criteria) this; + } + + public Criteria andProductAttributeIdGreaterThan(Long value) { + addCriterion("product_attribute_id >", value, "productAttributeId"); + return (Criteria) this; + } + + public Criteria andProductAttributeIdGreaterThanOrEqualTo(Long value) { + addCriterion("product_attribute_id >=", value, "productAttributeId"); + return (Criteria) this; + } + + public Criteria andProductAttributeIdLessThan(Long value) { + addCriterion("product_attribute_id <", value, "productAttributeId"); + return (Criteria) this; + } + + public Criteria andProductAttributeIdLessThanOrEqualTo(Long value) { + addCriterion("product_attribute_id <=", value, "productAttributeId"); + return (Criteria) this; + } + + public Criteria andProductAttributeIdIn(List values) { + addCriterion("product_attribute_id in", values, "productAttributeId"); + return (Criteria) this; + } + + public Criteria andProductAttributeIdNotIn(List values) { + addCriterion("product_attribute_id not in", values, "productAttributeId"); + return (Criteria) this; + } + + public Criteria andProductAttributeIdBetween(Long value1, Long value2) { + addCriterion("product_attribute_id between", value1, value2, "productAttributeId"); + return (Criteria) this; + } + + public Criteria andProductAttributeIdNotBetween(Long value1, Long value2) { + addCriterion("product_attribute_id not between", value1, value2, "productAttributeId"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductCategoryExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductCategoryExample.java new file mode 100644 index 000000000..75f0a48c5 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductCategoryExample.java @@ -0,0 +1,899 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class PmsProductCategoryExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public PmsProductCategoryExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 andParentIdIsNull() { + addCriterion("parent_id is null"); + return (Criteria) this; + } + + public Criteria andParentIdIsNotNull() { + addCriterion("parent_id is not null"); + return (Criteria) this; + } + + public Criteria andParentIdEqualTo(Long value) { + addCriterion("parent_id =", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotEqualTo(Long value) { + addCriterion("parent_id <>", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdGreaterThan(Long value) { + addCriterion("parent_id >", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdGreaterThanOrEqualTo(Long value) { + addCriterion("parent_id >=", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdLessThan(Long value) { + addCriterion("parent_id <", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdLessThanOrEqualTo(Long value) { + addCriterion("parent_id <=", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdIn(List values) { + addCriterion("parent_id in", values, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotIn(List values) { + addCriterion("parent_id not in", values, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdBetween(Long value1, Long value2) { + addCriterion("parent_id between", value1, value2, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotBetween(Long value1, Long value2) { + addCriterion("parent_id not between", value1, value2, "parentId"); + 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 andLevelIsNull() { + addCriterion("level is null"); + return (Criteria) this; + } + + public Criteria andLevelIsNotNull() { + addCriterion("level is not null"); + return (Criteria) this; + } + + public Criteria andLevelEqualTo(Integer value) { + addCriterion("level =", value, "level"); + return (Criteria) this; + } + + public Criteria andLevelNotEqualTo(Integer value) { + addCriterion("level <>", value, "level"); + return (Criteria) this; + } + + public Criteria andLevelGreaterThan(Integer value) { + addCriterion("level >", value, "level"); + return (Criteria) this; + } + + public Criteria andLevelGreaterThanOrEqualTo(Integer value) { + addCriterion("level >=", value, "level"); + return (Criteria) this; + } + + public Criteria andLevelLessThan(Integer value) { + addCriterion("level <", value, "level"); + return (Criteria) this; + } + + public Criteria andLevelLessThanOrEqualTo(Integer value) { + addCriterion("level <=", value, "level"); + return (Criteria) this; + } + + public Criteria andLevelIn(List values) { + addCriterion("level in", values, "level"); + return (Criteria) this; + } + + public Criteria andLevelNotIn(List values) { + addCriterion("level not in", values, "level"); + return (Criteria) this; + } + + public Criteria andLevelBetween(Integer value1, Integer value2) { + addCriterion("level between", value1, value2, "level"); + return (Criteria) this; + } + + public Criteria andLevelNotBetween(Integer value1, Integer value2) { + addCriterion("level not between", value1, value2, "level"); + 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 values) { + addCriterion("product_count in", values, "productCount"); + return (Criteria) this; + } + + public Criteria andProductCountNotIn(List 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 andProductUnitIsNull() { + addCriterion("product_unit is null"); + return (Criteria) this; + } + + public Criteria andProductUnitIsNotNull() { + addCriterion("product_unit is not null"); + return (Criteria) this; + } + + public Criteria andProductUnitEqualTo(String value) { + addCriterion("product_unit =", value, "productUnit"); + return (Criteria) this; + } + + public Criteria andProductUnitNotEqualTo(String value) { + addCriterion("product_unit <>", value, "productUnit"); + return (Criteria) this; + } + + public Criteria andProductUnitGreaterThan(String value) { + addCriterion("product_unit >", value, "productUnit"); + return (Criteria) this; + } + + public Criteria andProductUnitGreaterThanOrEqualTo(String value) { + addCriterion("product_unit >=", value, "productUnit"); + return (Criteria) this; + } + + public Criteria andProductUnitLessThan(String value) { + addCriterion("product_unit <", value, "productUnit"); + return (Criteria) this; + } + + public Criteria andProductUnitLessThanOrEqualTo(String value) { + addCriterion("product_unit <=", value, "productUnit"); + return (Criteria) this; + } + + public Criteria andProductUnitLike(String value) { + addCriterion("product_unit like", value, "productUnit"); + return (Criteria) this; + } + + public Criteria andProductUnitNotLike(String value) { + addCriterion("product_unit not like", value, "productUnit"); + return (Criteria) this; + } + + public Criteria andProductUnitIn(List values) { + addCriterion("product_unit in", values, "productUnit"); + return (Criteria) this; + } + + public Criteria andProductUnitNotIn(List values) { + addCriterion("product_unit not in", values, "productUnit"); + return (Criteria) this; + } + + public Criteria andProductUnitBetween(String value1, String value2) { + addCriterion("product_unit between", value1, value2, "productUnit"); + return (Criteria) this; + } + + public Criteria andProductUnitNotBetween(String value1, String value2) { + addCriterion("product_unit not between", value1, value2, "productUnit"); + return (Criteria) this; + } + + public Criteria andNavStatusIsNull() { + addCriterion("nav_status is null"); + return (Criteria) this; + } + + public Criteria andNavStatusIsNotNull() { + addCriterion("nav_status is not null"); + return (Criteria) this; + } + + public Criteria andNavStatusEqualTo(Integer value) { + addCriterion("nav_status =", value, "navStatus"); + return (Criteria) this; + } + + public Criteria andNavStatusNotEqualTo(Integer value) { + addCriterion("nav_status <>", value, "navStatus"); + return (Criteria) this; + } + + public Criteria andNavStatusGreaterThan(Integer value) { + addCriterion("nav_status >", value, "navStatus"); + return (Criteria) this; + } + + public Criteria andNavStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("nav_status >=", value, "navStatus"); + return (Criteria) this; + } + + public Criteria andNavStatusLessThan(Integer value) { + addCriterion("nav_status <", value, "navStatus"); + return (Criteria) this; + } + + public Criteria andNavStatusLessThanOrEqualTo(Integer value) { + addCriterion("nav_status <=", value, "navStatus"); + return (Criteria) this; + } + + public Criteria andNavStatusIn(List values) { + addCriterion("nav_status in", values, "navStatus"); + return (Criteria) this; + } + + public Criteria andNavStatusNotIn(List values) { + addCriterion("nav_status not in", values, "navStatus"); + return (Criteria) this; + } + + public Criteria andNavStatusBetween(Integer value1, Integer value2) { + addCriterion("nav_status between", value1, value2, "navStatus"); + return (Criteria) this; + } + + public Criteria andNavStatusNotBetween(Integer value1, Integer value2) { + addCriterion("nav_status not between", value1, value2, "navStatus"); + 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 values) { + addCriterion("show_status in", values, "showStatus"); + return (Criteria) this; + } + + public Criteria andShowStatusNotIn(List 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 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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 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 values) { + addCriterion("icon in", values, "icon"); + return (Criteria) this; + } + + public Criteria andIconNotIn(List 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 andKeywordsIsNull() { + addCriterion("keywords is null"); + return (Criteria) this; + } + + public Criteria andKeywordsIsNotNull() { + addCriterion("keywords is not null"); + return (Criteria) this; + } + + public Criteria andKeywordsEqualTo(String value) { + addCriterion("keywords =", value, "keywords"); + return (Criteria) this; + } + + public Criteria andKeywordsNotEqualTo(String value) { + addCriterion("keywords <>", value, "keywords"); + return (Criteria) this; + } + + public Criteria andKeywordsGreaterThan(String value) { + addCriterion("keywords >", value, "keywords"); + return (Criteria) this; + } + + public Criteria andKeywordsGreaterThanOrEqualTo(String value) { + addCriterion("keywords >=", value, "keywords"); + return (Criteria) this; + } + + public Criteria andKeywordsLessThan(String value) { + addCriterion("keywords <", value, "keywords"); + return (Criteria) this; + } + + public Criteria andKeywordsLessThanOrEqualTo(String value) { + addCriterion("keywords <=", value, "keywords"); + return (Criteria) this; + } + + public Criteria andKeywordsLike(String value) { + addCriterion("keywords like", value, "keywords"); + return (Criteria) this; + } + + public Criteria andKeywordsNotLike(String value) { + addCriterion("keywords not like", value, "keywords"); + return (Criteria) this; + } + + public Criteria andKeywordsIn(List values) { + addCriterion("keywords in", values, "keywords"); + return (Criteria) this; + } + + public Criteria andKeywordsNotIn(List values) { + addCriterion("keywords not in", values, "keywords"); + return (Criteria) this; + } + + public Criteria andKeywordsBetween(String value1, String value2) { + addCriterion("keywords between", value1, value2, "keywords"); + return (Criteria) this; + } + + public Criteria andKeywordsNotBetween(String value1, String value2) { + addCriterion("keywords not between", value1, value2, "keywords"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductExample.java new file mode 100644 index 000000000..71561c05b --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductExample.java @@ -0,0 +1,2601 @@ +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 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("brand_id in", values, "brandId"); + return (Criteria) this; + } + + public Criteria andBrandIdNotIn(List 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 values) { + addCriterion("product_category_id in", values, "productCategoryId"); + return (Criteria) this; + } + + public Criteria andProductCategoryIdNotIn(List 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 values) { + addCriterion("feight_template_id in", values, "feightTemplateId"); + return (Criteria) this; + } + + public Criteria andFeightTemplateIdNotIn(List 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 values) { + addCriterion("product_attribute_category_id in", values, "productAttributeCategoryId"); + return (Criteria) this; + } + + public Criteria andProductAttributeCategoryIdNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 values) { + addCriterion("pic in", values, "pic"); + return (Criteria) this; + } + + public Criteria andPicNotIn(List 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 values) { + addCriterion("product_sn in", values, "productSn"); + return (Criteria) this; + } + + public Criteria andProductSnNotIn(List 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 values) { + addCriterion("delete_status in", values, "deleteStatus"); + return (Criteria) this; + } + + public Criteria andDeleteStatusNotIn(List 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 values) { + addCriterion("publish_status in", values, "publishStatus"); + return (Criteria) this; + } + + public Criteria andPublishStatusNotIn(List 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 values) { + addCriterion("new_status in", values, "newStatus"); + return (Criteria) this; + } + + public Criteria andNewStatusNotIn(List 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 values) { + addCriterion("recommand_status in", values, "recommandStatus"); + return (Criteria) this; + } + + public Criteria andRecommandStatusNotIn(List 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 values) { + addCriterion("verify_status in", values, "verifyStatus"); + return (Criteria) this; + } + + public Criteria andVerifyStatusNotIn(List 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; + } + + 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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 andSaleIsNull() { + addCriterion("sale is null"); + return (Criteria) this; + } + + public Criteria andSaleIsNotNull() { + addCriterion("sale is not null"); + return (Criteria) this; + } + + public Criteria andSaleEqualTo(Integer value) { + addCriterion("sale =", value, "sale"); + return (Criteria) this; + } + + public Criteria andSaleNotEqualTo(Integer value) { + addCriterion("sale <>", value, "sale"); + return (Criteria) this; + } + + public Criteria andSaleGreaterThan(Integer value) { + addCriterion("sale >", value, "sale"); + return (Criteria) this; + } + + public Criteria andSaleGreaterThanOrEqualTo(Integer value) { + addCriterion("sale >=", value, "sale"); + return (Criteria) this; + } + + public Criteria andSaleLessThan(Integer value) { + addCriterion("sale <", value, "sale"); + return (Criteria) this; + } + + public Criteria andSaleLessThanOrEqualTo(Integer value) { + addCriterion("sale <=", value, "sale"); + return (Criteria) this; + } + + public Criteria andSaleIn(List values) { + addCriterion("sale in", values, "sale"); + return (Criteria) this; + } + + public Criteria andSaleNotIn(List values) { + addCriterion("sale not in", values, "sale"); + return (Criteria) this; + } + + public Criteria andSaleBetween(Integer value1, Integer value2) { + addCriterion("sale between", value1, value2, "sale"); + return (Criteria) this; + } + + public Criteria andSaleNotBetween(Integer value1, Integer value2) { + addCriterion("sale not between", value1, value2, "sale"); + 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 values) { + addCriterion("price in", values, "price"); + return (Criteria) this; + } + + public Criteria andPriceNotIn(List 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 Criteria andPromotionPriceIsNull() { + addCriterion("promotion_price is null"); + return (Criteria) this; + } + + public Criteria andPromotionPriceIsNotNull() { + addCriterion("promotion_price is not null"); + return (Criteria) this; + } + + public Criteria andPromotionPriceEqualTo(BigDecimal value) { + addCriterion("promotion_price =", value, "promotionPrice"); + return (Criteria) this; + } + + public Criteria andPromotionPriceNotEqualTo(BigDecimal value) { + addCriterion("promotion_price <>", value, "promotionPrice"); + return (Criteria) this; + } + + public Criteria andPromotionPriceGreaterThan(BigDecimal value) { + addCriterion("promotion_price >", value, "promotionPrice"); + return (Criteria) this; + } + + public Criteria andPromotionPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("promotion_price >=", value, "promotionPrice"); + return (Criteria) this; + } + + public Criteria andPromotionPriceLessThan(BigDecimal value) { + addCriterion("promotion_price <", value, "promotionPrice"); + return (Criteria) this; + } + + public Criteria andPromotionPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("promotion_price <=", value, "promotionPrice"); + return (Criteria) this; + } + + public Criteria andPromotionPriceIn(List values) { + addCriterion("promotion_price in", values, "promotionPrice"); + return (Criteria) this; + } + + public Criteria andPromotionPriceNotIn(List values) { + addCriterion("promotion_price not in", values, "promotionPrice"); + return (Criteria) this; + } + + public Criteria andPromotionPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("promotion_price between", value1, value2, "promotionPrice"); + return (Criteria) this; + } + + public Criteria andPromotionPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("promotion_price not between", value1, value2, "promotionPrice"); + return (Criteria) this; + } + + public Criteria andGiftGrowthIsNull() { + addCriterion("gift_growth is null"); + return (Criteria) this; + } + + public Criteria andGiftGrowthIsNotNull() { + addCriterion("gift_growth is not null"); + return (Criteria) this; + } + + public Criteria andGiftGrowthEqualTo(Integer value) { + addCriterion("gift_growth =", value, "giftGrowth"); + return (Criteria) this; + } + + public Criteria andGiftGrowthNotEqualTo(Integer value) { + addCriterion("gift_growth <>", value, "giftGrowth"); + return (Criteria) this; + } + + public Criteria andGiftGrowthGreaterThan(Integer value) { + addCriterion("gift_growth >", value, "giftGrowth"); + return (Criteria) this; + } + + public Criteria andGiftGrowthGreaterThanOrEqualTo(Integer value) { + addCriterion("gift_growth >=", value, "giftGrowth"); + return (Criteria) this; + } + + public Criteria andGiftGrowthLessThan(Integer value) { + addCriterion("gift_growth <", value, "giftGrowth"); + return (Criteria) this; + } + + public Criteria andGiftGrowthLessThanOrEqualTo(Integer value) { + addCriterion("gift_growth <=", value, "giftGrowth"); + return (Criteria) this; + } + + public Criteria andGiftGrowthIn(List values) { + addCriterion("gift_growth in", values, "giftGrowth"); + return (Criteria) this; + } + + public Criteria andGiftGrowthNotIn(List values) { + addCriterion("gift_growth not in", values, "giftGrowth"); + return (Criteria) this; + } + + public Criteria andGiftGrowthBetween(Integer value1, Integer value2) { + addCriterion("gift_growth between", value1, value2, "giftGrowth"); + return (Criteria) this; + } + + public Criteria andGiftGrowthNotBetween(Integer value1, Integer value2) { + addCriterion("gift_growth not between", value1, value2, "giftGrowth"); + return (Criteria) this; + } + + public Criteria andGiftPointIsNull() { + addCriterion("gift_point is null"); + return (Criteria) this; + } + + public Criteria andGiftPointIsNotNull() { + addCriterion("gift_point is not null"); + return (Criteria) this; + } + + public Criteria andGiftPointEqualTo(Integer value) { + addCriterion("gift_point =", value, "giftPoint"); + return (Criteria) this; + } + + public Criteria andGiftPointNotEqualTo(Integer value) { + addCriterion("gift_point <>", value, "giftPoint"); + return (Criteria) this; + } + + public Criteria andGiftPointGreaterThan(Integer value) { + addCriterion("gift_point >", value, "giftPoint"); + return (Criteria) this; + } + + public Criteria andGiftPointGreaterThanOrEqualTo(Integer value) { + addCriterion("gift_point >=", value, "giftPoint"); + return (Criteria) this; + } + + public Criteria andGiftPointLessThan(Integer value) { + addCriterion("gift_point <", value, "giftPoint"); + return (Criteria) this; + } + + public Criteria andGiftPointLessThanOrEqualTo(Integer value) { + addCriterion("gift_point <=", value, "giftPoint"); + return (Criteria) this; + } + + public Criteria andGiftPointIn(List values) { + addCriterion("gift_point in", values, "giftPoint"); + return (Criteria) this; + } + + public Criteria andGiftPointNotIn(List values) { + addCriterion("gift_point not in", values, "giftPoint"); + return (Criteria) this; + } + + public Criteria andGiftPointBetween(Integer value1, Integer value2) { + addCriterion("gift_point between", value1, value2, "giftPoint"); + return (Criteria) this; + } + + public Criteria andGiftPointNotBetween(Integer value1, Integer value2) { + addCriterion("gift_point not between", value1, value2, "giftPoint"); + return (Criteria) this; + } + + public Criteria andUsePointLimitIsNull() { + addCriterion("use_point_limit is null"); + return (Criteria) this; + } + + public Criteria andUsePointLimitIsNotNull() { + addCriterion("use_point_limit is not null"); + return (Criteria) this; + } + + public Criteria andUsePointLimitEqualTo(Integer value) { + addCriterion("use_point_limit =", value, "usePointLimit"); + return (Criteria) this; + } + + public Criteria andUsePointLimitNotEqualTo(Integer value) { + addCriterion("use_point_limit <>", value, "usePointLimit"); + return (Criteria) this; + } + + public Criteria andUsePointLimitGreaterThan(Integer value) { + addCriterion("use_point_limit >", value, "usePointLimit"); + return (Criteria) this; + } + + public Criteria andUsePointLimitGreaterThanOrEqualTo(Integer value) { + addCriterion("use_point_limit >=", value, "usePointLimit"); + return (Criteria) this; + } + + public Criteria andUsePointLimitLessThan(Integer value) { + addCriterion("use_point_limit <", value, "usePointLimit"); + return (Criteria) this; + } + + public Criteria andUsePointLimitLessThanOrEqualTo(Integer value) { + addCriterion("use_point_limit <=", value, "usePointLimit"); + return (Criteria) this; + } + + public Criteria andUsePointLimitIn(List values) { + addCriterion("use_point_limit in", values, "usePointLimit"); + return (Criteria) this; + } + + public Criteria andUsePointLimitNotIn(List values) { + addCriterion("use_point_limit not in", values, "usePointLimit"); + return (Criteria) this; + } + + public Criteria andUsePointLimitBetween(Integer value1, Integer value2) { + addCriterion("use_point_limit between", value1, value2, "usePointLimit"); + return (Criteria) this; + } + + public Criteria andUsePointLimitNotBetween(Integer value1, Integer value2) { + addCriterion("use_point_limit not between", value1, value2, "usePointLimit"); + return (Criteria) this; + } + + public Criteria andSubTitleIsNull() { + addCriterion("sub_title is null"); + return (Criteria) this; + } + + public Criteria andSubTitleIsNotNull() { + addCriterion("sub_title is not null"); + return (Criteria) this; + } + + public Criteria andSubTitleEqualTo(String value) { + addCriterion("sub_title =", value, "subTitle"); + return (Criteria) this; + } + + public Criteria andSubTitleNotEqualTo(String value) { + addCriterion("sub_title <>", value, "subTitle"); + return (Criteria) this; + } + + public Criteria andSubTitleGreaterThan(String value) { + addCriterion("sub_title >", value, "subTitle"); + return (Criteria) this; + } + + public Criteria andSubTitleGreaterThanOrEqualTo(String value) { + addCriterion("sub_title >=", value, "subTitle"); + return (Criteria) this; + } + + public Criteria andSubTitleLessThan(String value) { + addCriterion("sub_title <", value, "subTitle"); + return (Criteria) this; + } + + public Criteria andSubTitleLessThanOrEqualTo(String value) { + addCriterion("sub_title <=", value, "subTitle"); + return (Criteria) this; + } + + public Criteria andSubTitleLike(String value) { + addCriterion("sub_title like", value, "subTitle"); + return (Criteria) this; + } + + public Criteria andSubTitleNotLike(String value) { + addCriterion("sub_title not like", value, "subTitle"); + return (Criteria) this; + } + + public Criteria andSubTitleIn(List values) { + addCriterion("sub_title in", values, "subTitle"); + return (Criteria) this; + } + + public Criteria andSubTitleNotIn(List values) { + addCriterion("sub_title not in", values, "subTitle"); + return (Criteria) this; + } + + public Criteria andSubTitleBetween(String value1, String value2) { + addCriterion("sub_title between", value1, value2, "subTitle"); + return (Criteria) this; + } + + public Criteria andSubTitleNotBetween(String value1, String value2) { + addCriterion("sub_title not between", value1, value2, "subTitle"); + return (Criteria) this; + } + + public Criteria andOriginalPriceIsNull() { + addCriterion("original_price is null"); + return (Criteria) this; + } + + public Criteria andOriginalPriceIsNotNull() { + addCriterion("original_price is not null"); + return (Criteria) this; + } + + public Criteria andOriginalPriceEqualTo(BigDecimal value) { + addCriterion("original_price =", value, "originalPrice"); + return (Criteria) this; + } + + public Criteria andOriginalPriceNotEqualTo(BigDecimal value) { + addCriterion("original_price <>", value, "originalPrice"); + return (Criteria) this; + } + + public Criteria andOriginalPriceGreaterThan(BigDecimal value) { + addCriterion("original_price >", value, "originalPrice"); + return (Criteria) this; + } + + public Criteria andOriginalPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("original_price >=", value, "originalPrice"); + return (Criteria) this; + } + + public Criteria andOriginalPriceLessThan(BigDecimal value) { + addCriterion("original_price <", value, "originalPrice"); + return (Criteria) this; + } + + public Criteria andOriginalPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("original_price <=", value, "originalPrice"); + return (Criteria) this; + } + + public Criteria andOriginalPriceIn(List values) { + addCriterion("original_price in", values, "originalPrice"); + return (Criteria) this; + } + + public Criteria andOriginalPriceNotIn(List values) { + addCriterion("original_price not in", values, "originalPrice"); + return (Criteria) this; + } + + public Criteria andOriginalPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("original_price between", value1, value2, "originalPrice"); + return (Criteria) this; + } + + public Criteria andOriginalPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("original_price not between", value1, value2, "originalPrice"); + return (Criteria) this; + } + + public Criteria andStockIsNull() { + addCriterion("stock is null"); + return (Criteria) this; + } + + public Criteria andStockIsNotNull() { + addCriterion("stock is not null"); + return (Criteria) this; + } + + public Criteria andStockEqualTo(Integer value) { + addCriterion("stock =", value, "stock"); + return (Criteria) this; + } + + public Criteria andStockNotEqualTo(Integer value) { + addCriterion("stock <>", value, "stock"); + return (Criteria) this; + } + + public Criteria andStockGreaterThan(Integer value) { + addCriterion("stock >", value, "stock"); + return (Criteria) this; + } + + public Criteria andStockGreaterThanOrEqualTo(Integer value) { + addCriterion("stock >=", value, "stock"); + return (Criteria) this; + } + + public Criteria andStockLessThan(Integer value) { + addCriterion("stock <", value, "stock"); + return (Criteria) this; + } + + public Criteria andStockLessThanOrEqualTo(Integer value) { + addCriterion("stock <=", value, "stock"); + return (Criteria) this; + } + + public Criteria andStockIn(List values) { + addCriterion("stock in", values, "stock"); + return (Criteria) this; + } + + public Criteria andStockNotIn(List values) { + addCriterion("stock not in", values, "stock"); + return (Criteria) this; + } + + public Criteria andStockBetween(Integer value1, Integer value2) { + addCriterion("stock between", value1, value2, "stock"); + return (Criteria) this; + } + + public Criteria andStockNotBetween(Integer value1, Integer value2) { + addCriterion("stock not between", value1, value2, "stock"); + return (Criteria) this; + } + + public Criteria andLowStockIsNull() { + addCriterion("low_stock is null"); + return (Criteria) this; + } + + public Criteria andLowStockIsNotNull() { + addCriterion("low_stock is not null"); + return (Criteria) this; + } + + public Criteria andLowStockEqualTo(Integer value) { + addCriterion("low_stock =", value, "lowStock"); + return (Criteria) this; + } + + public Criteria andLowStockNotEqualTo(Integer value) { + addCriterion("low_stock <>", value, "lowStock"); + return (Criteria) this; + } + + public Criteria andLowStockGreaterThan(Integer value) { + addCriterion("low_stock >", value, "lowStock"); + return (Criteria) this; + } + + public Criteria andLowStockGreaterThanOrEqualTo(Integer value) { + addCriterion("low_stock >=", value, "lowStock"); + return (Criteria) this; + } + + public Criteria andLowStockLessThan(Integer value) { + addCriterion("low_stock <", value, "lowStock"); + return (Criteria) this; + } + + public Criteria andLowStockLessThanOrEqualTo(Integer value) { + addCriterion("low_stock <=", value, "lowStock"); + return (Criteria) this; + } + + public Criteria andLowStockIn(List values) { + addCriterion("low_stock in", values, "lowStock"); + return (Criteria) this; + } + + public Criteria andLowStockNotIn(List values) { + addCriterion("low_stock not in", values, "lowStock"); + return (Criteria) this; + } + + public Criteria andLowStockBetween(Integer value1, Integer value2) { + addCriterion("low_stock between", value1, value2, "lowStock"); + return (Criteria) this; + } + + public Criteria andLowStockNotBetween(Integer value1, Integer value2) { + addCriterion("low_stock not between", value1, value2, "lowStock"); + return (Criteria) this; + } + + public Criteria andUnitIsNull() { + addCriterion("unit is null"); + return (Criteria) this; + } + + public Criteria andUnitIsNotNull() { + addCriterion("unit is not null"); + return (Criteria) this; + } + + public Criteria andUnitEqualTo(String value) { + addCriterion("unit =", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotEqualTo(String value) { + addCriterion("unit <>", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitGreaterThan(String value) { + addCriterion("unit >", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitGreaterThanOrEqualTo(String value) { + addCriterion("unit >=", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLessThan(String value) { + addCriterion("unit <", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLessThanOrEqualTo(String value) { + addCriterion("unit <=", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLike(String value) { + addCriterion("unit like", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotLike(String value) { + addCriterion("unit not like", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitIn(List values) { + addCriterion("unit in", values, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotIn(List values) { + addCriterion("unit not in", values, "unit"); + return (Criteria) this; + } + + public Criteria andUnitBetween(String value1, String value2) { + addCriterion("unit between", value1, value2, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotBetween(String value1, String value2) { + addCriterion("unit not between", value1, value2, "unit"); + return (Criteria) this; + } + + public Criteria andWeightIsNull() { + addCriterion("weight is null"); + return (Criteria) this; + } + + public Criteria andWeightIsNotNull() { + addCriterion("weight is not null"); + return (Criteria) this; + } + + public Criteria andWeightEqualTo(BigDecimal value) { + addCriterion("weight =", value, "weight"); + return (Criteria) this; + } + + public Criteria andWeightNotEqualTo(BigDecimal value) { + addCriterion("weight <>", value, "weight"); + return (Criteria) this; + } + + public Criteria andWeightGreaterThan(BigDecimal value) { + addCriterion("weight >", value, "weight"); + return (Criteria) this; + } + + public Criteria andWeightGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("weight >=", value, "weight"); + return (Criteria) this; + } + + public Criteria andWeightLessThan(BigDecimal value) { + addCriterion("weight <", value, "weight"); + return (Criteria) this; + } + + public Criteria andWeightLessThanOrEqualTo(BigDecimal value) { + addCriterion("weight <=", value, "weight"); + return (Criteria) this; + } + + public Criteria andWeightIn(List values) { + addCriterion("weight in", values, "weight"); + return (Criteria) this; + } + + public Criteria andWeightNotIn(List values) { + addCriterion("weight not in", values, "weight"); + return (Criteria) this; + } + + public Criteria andWeightBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("weight between", value1, value2, "weight"); + return (Criteria) this; + } + + public Criteria andWeightNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("weight not between", value1, value2, "weight"); + return (Criteria) this; + } + + public Criteria andPreviewStatusIsNull() { + addCriterion("preview_status is null"); + return (Criteria) this; + } + + public Criteria andPreviewStatusIsNotNull() { + addCriterion("preview_status is not null"); + return (Criteria) this; + } + + public Criteria andPreviewStatusEqualTo(Integer value) { + addCriterion("preview_status =", value, "previewStatus"); + return (Criteria) this; + } + + public Criteria andPreviewStatusNotEqualTo(Integer value) { + addCriterion("preview_status <>", value, "previewStatus"); + return (Criteria) this; + } + + public Criteria andPreviewStatusGreaterThan(Integer value) { + addCriterion("preview_status >", value, "previewStatus"); + return (Criteria) this; + } + + public Criteria andPreviewStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("preview_status >=", value, "previewStatus"); + return (Criteria) this; + } + + public Criteria andPreviewStatusLessThan(Integer value) { + addCriterion("preview_status <", value, "previewStatus"); + return (Criteria) this; + } + + public Criteria andPreviewStatusLessThanOrEqualTo(Integer value) { + addCriterion("preview_status <=", value, "previewStatus"); + return (Criteria) this; + } + + public Criteria andPreviewStatusIn(List values) { + addCriterion("preview_status in", values, "previewStatus"); + return (Criteria) this; + } + + public Criteria andPreviewStatusNotIn(List values) { + addCriterion("preview_status not in", values, "previewStatus"); + return (Criteria) this; + } + + public Criteria andPreviewStatusBetween(Integer value1, Integer value2) { + addCriterion("preview_status between", value1, value2, "previewStatus"); + return (Criteria) this; + } + + public Criteria andPreviewStatusNotBetween(Integer value1, Integer value2) { + addCriterion("preview_status not between", value1, value2, "previewStatus"); + return (Criteria) this; + } + + public Criteria andServiceIdsIsNull() { + addCriterion("service_ids is null"); + return (Criteria) this; + } + + public Criteria andServiceIdsIsNotNull() { + addCriterion("service_ids is not null"); + return (Criteria) this; + } + + public Criteria andServiceIdsEqualTo(String value) { + addCriterion("service_ids =", value, "serviceIds"); + return (Criteria) this; + } + + public Criteria andServiceIdsNotEqualTo(String value) { + addCriterion("service_ids <>", value, "serviceIds"); + return (Criteria) this; + } + + public Criteria andServiceIdsGreaterThan(String value) { + addCriterion("service_ids >", value, "serviceIds"); + return (Criteria) this; + } + + public Criteria andServiceIdsGreaterThanOrEqualTo(String value) { + addCriterion("service_ids >=", value, "serviceIds"); + return (Criteria) this; + } + + public Criteria andServiceIdsLessThan(String value) { + addCriterion("service_ids <", value, "serviceIds"); + return (Criteria) this; + } + + public Criteria andServiceIdsLessThanOrEqualTo(String value) { + addCriterion("service_ids <=", value, "serviceIds"); + return (Criteria) this; + } + + public Criteria andServiceIdsLike(String value) { + addCriterion("service_ids like", value, "serviceIds"); + return (Criteria) this; + } + + public Criteria andServiceIdsNotLike(String value) { + addCriterion("service_ids not like", value, "serviceIds"); + return (Criteria) this; + } + + public Criteria andServiceIdsIn(List values) { + addCriterion("service_ids in", values, "serviceIds"); + return (Criteria) this; + } + + public Criteria andServiceIdsNotIn(List values) { + addCriterion("service_ids not in", values, "serviceIds"); + return (Criteria) this; + } + + public Criteria andServiceIdsBetween(String value1, String value2) { + addCriterion("service_ids between", value1, value2, "serviceIds"); + return (Criteria) this; + } + + public Criteria andServiceIdsNotBetween(String value1, String value2) { + addCriterion("service_ids not between", value1, value2, "serviceIds"); + return (Criteria) this; + } + + public Criteria andKeywordsIsNull() { + addCriterion("keywords is null"); + return (Criteria) this; + } + + public Criteria andKeywordsIsNotNull() { + addCriterion("keywords is not null"); + return (Criteria) this; + } + + public Criteria andKeywordsEqualTo(String value) { + addCriterion("keywords =", value, "keywords"); + return (Criteria) this; + } + + public Criteria andKeywordsNotEqualTo(String value) { + addCriterion("keywords <>", value, "keywords"); + return (Criteria) this; + } + + public Criteria andKeywordsGreaterThan(String value) { + addCriterion("keywords >", value, "keywords"); + return (Criteria) this; + } + + public Criteria andKeywordsGreaterThanOrEqualTo(String value) { + addCriterion("keywords >=", value, "keywords"); + return (Criteria) this; + } + + public Criteria andKeywordsLessThan(String value) { + addCriterion("keywords <", value, "keywords"); + return (Criteria) this; + } + + public Criteria andKeywordsLessThanOrEqualTo(String value) { + addCriterion("keywords <=", value, "keywords"); + return (Criteria) this; + } + + public Criteria andKeywordsLike(String value) { + addCriterion("keywords like", value, "keywords"); + return (Criteria) this; + } + + public Criteria andKeywordsNotLike(String value) { + addCriterion("keywords not like", value, "keywords"); + return (Criteria) this; + } + + public Criteria andKeywordsIn(List values) { + addCriterion("keywords in", values, "keywords"); + return (Criteria) this; + } + + public Criteria andKeywordsNotIn(List values) { + addCriterion("keywords not in", values, "keywords"); + return (Criteria) this; + } + + public Criteria andKeywordsBetween(String value1, String value2) { + addCriterion("keywords between", value1, value2, "keywords"); + return (Criteria) this; + } + + public Criteria andKeywordsNotBetween(String value1, String value2) { + addCriterion("keywords not between", value1, value2, "keywords"); + 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 values) { + addCriterion("note in", values, "note"); + return (Criteria) this; + } + + public Criteria andNoteNotIn(List 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 andAlbumPicsIsNull() { + addCriterion("album_pics is null"); + return (Criteria) this; + } + + public Criteria andAlbumPicsIsNotNull() { + addCriterion("album_pics is not null"); + return (Criteria) this; + } + + public Criteria andAlbumPicsEqualTo(String value) { + addCriterion("album_pics =", value, "albumPics"); + return (Criteria) this; + } + + public Criteria andAlbumPicsNotEqualTo(String value) { + addCriterion("album_pics <>", value, "albumPics"); + return (Criteria) this; + } + + public Criteria andAlbumPicsGreaterThan(String value) { + addCriterion("album_pics >", value, "albumPics"); + return (Criteria) this; + } + + public Criteria andAlbumPicsGreaterThanOrEqualTo(String value) { + addCriterion("album_pics >=", value, "albumPics"); + return (Criteria) this; + } + + public Criteria andAlbumPicsLessThan(String value) { + addCriterion("album_pics <", value, "albumPics"); + return (Criteria) this; + } + + public Criteria andAlbumPicsLessThanOrEqualTo(String value) { + addCriterion("album_pics <=", value, "albumPics"); + return (Criteria) this; + } + + public Criteria andAlbumPicsLike(String value) { + addCriterion("album_pics like", value, "albumPics"); + return (Criteria) this; + } + + public Criteria andAlbumPicsNotLike(String value) { + addCriterion("album_pics not like", value, "albumPics"); + return (Criteria) this; + } + + public Criteria andAlbumPicsIn(List values) { + addCriterion("album_pics in", values, "albumPics"); + return (Criteria) this; + } + + public Criteria andAlbumPicsNotIn(List values) { + addCriterion("album_pics not in", values, "albumPics"); + return (Criteria) this; + } + + public Criteria andAlbumPicsBetween(String value1, String value2) { + addCriterion("album_pics between", value1, value2, "albumPics"); + return (Criteria) this; + } + + public Criteria andAlbumPicsNotBetween(String value1, String value2) { + addCriterion("album_pics not between", value1, value2, "albumPics"); + return (Criteria) this; + } + + public Criteria andDetailTitleIsNull() { + addCriterion("detail_title is null"); + return (Criteria) this; + } + + public Criteria andDetailTitleIsNotNull() { + addCriterion("detail_title is not null"); + return (Criteria) this; + } + + public Criteria andDetailTitleEqualTo(String value) { + addCriterion("detail_title =", value, "detailTitle"); + return (Criteria) this; + } + + public Criteria andDetailTitleNotEqualTo(String value) { + addCriterion("detail_title <>", value, "detailTitle"); + return (Criteria) this; + } + + public Criteria andDetailTitleGreaterThan(String value) { + addCriterion("detail_title >", value, "detailTitle"); + return (Criteria) this; + } + + public Criteria andDetailTitleGreaterThanOrEqualTo(String value) { + addCriterion("detail_title >=", value, "detailTitle"); + return (Criteria) this; + } + + public Criteria andDetailTitleLessThan(String value) { + addCriterion("detail_title <", value, "detailTitle"); + return (Criteria) this; + } + + public Criteria andDetailTitleLessThanOrEqualTo(String value) { + addCriterion("detail_title <=", value, "detailTitle"); + return (Criteria) this; + } + + public Criteria andDetailTitleLike(String value) { + addCriterion("detail_title like", value, "detailTitle"); + return (Criteria) this; + } + + public Criteria andDetailTitleNotLike(String value) { + addCriterion("detail_title not like", value, "detailTitle"); + return (Criteria) this; + } + + public Criteria andDetailTitleIn(List values) { + addCriterion("detail_title in", values, "detailTitle"); + return (Criteria) this; + } + + public Criteria andDetailTitleNotIn(List values) { + addCriterion("detail_title not in", values, "detailTitle"); + return (Criteria) this; + } + + public Criteria andDetailTitleBetween(String value1, String value2) { + addCriterion("detail_title between", value1, value2, "detailTitle"); + return (Criteria) this; + } + + public Criteria andDetailTitleNotBetween(String value1, String value2) { + addCriterion("detail_title not between", value1, value2, "detailTitle"); + return (Criteria) this; + } + + public Criteria andPromotionStartTimeIsNull() { + addCriterion("promotion_start_time is null"); + return (Criteria) this; + } + + public Criteria andPromotionStartTimeIsNotNull() { + addCriterion("promotion_start_time is not null"); + return (Criteria) this; + } + + public Criteria andPromotionStartTimeEqualTo(Date value) { + addCriterion("promotion_start_time =", value, "promotionStartTime"); + return (Criteria) this; + } + + public Criteria andPromotionStartTimeNotEqualTo(Date value) { + addCriterion("promotion_start_time <>", value, "promotionStartTime"); + return (Criteria) this; + } + + public Criteria andPromotionStartTimeGreaterThan(Date value) { + addCriterion("promotion_start_time >", value, "promotionStartTime"); + return (Criteria) this; + } + + public Criteria andPromotionStartTimeGreaterThanOrEqualTo(Date value) { + addCriterion("promotion_start_time >=", value, "promotionStartTime"); + return (Criteria) this; + } + + public Criteria andPromotionStartTimeLessThan(Date value) { + addCriterion("promotion_start_time <", value, "promotionStartTime"); + return (Criteria) this; + } + + public Criteria andPromotionStartTimeLessThanOrEqualTo(Date value) { + addCriterion("promotion_start_time <=", value, "promotionStartTime"); + return (Criteria) this; + } + + public Criteria andPromotionStartTimeIn(List values) { + addCriterion("promotion_start_time in", values, "promotionStartTime"); + return (Criteria) this; + } + + public Criteria andPromotionStartTimeNotIn(List values) { + addCriterion("promotion_start_time not in", values, "promotionStartTime"); + return (Criteria) this; + } + + public Criteria andPromotionStartTimeBetween(Date value1, Date value2) { + addCriterion("promotion_start_time between", value1, value2, "promotionStartTime"); + return (Criteria) this; + } + + public Criteria andPromotionStartTimeNotBetween(Date value1, Date value2) { + addCriterion("promotion_start_time not between", value1, value2, "promotionStartTime"); + return (Criteria) this; + } + + public Criteria andPromotionEndTimeIsNull() { + addCriterion("promotion_end_time is null"); + return (Criteria) this; + } + + public Criteria andPromotionEndTimeIsNotNull() { + addCriterion("promotion_end_time is not null"); + return (Criteria) this; + } + + public Criteria andPromotionEndTimeEqualTo(Date value) { + addCriterion("promotion_end_time =", value, "promotionEndTime"); + return (Criteria) this; + } + + public Criteria andPromotionEndTimeNotEqualTo(Date value) { + addCriterion("promotion_end_time <>", value, "promotionEndTime"); + return (Criteria) this; + } + + public Criteria andPromotionEndTimeGreaterThan(Date value) { + addCriterion("promotion_end_time >", value, "promotionEndTime"); + return (Criteria) this; + } + + public Criteria andPromotionEndTimeGreaterThanOrEqualTo(Date value) { + addCriterion("promotion_end_time >=", value, "promotionEndTime"); + return (Criteria) this; + } + + public Criteria andPromotionEndTimeLessThan(Date value) { + addCriterion("promotion_end_time <", value, "promotionEndTime"); + return (Criteria) this; + } + + public Criteria andPromotionEndTimeLessThanOrEqualTo(Date value) { + addCriterion("promotion_end_time <=", value, "promotionEndTime"); + return (Criteria) this; + } + + public Criteria andPromotionEndTimeIn(List values) { + addCriterion("promotion_end_time in", values, "promotionEndTime"); + return (Criteria) this; + } + + public Criteria andPromotionEndTimeNotIn(List values) { + addCriterion("promotion_end_time not in", values, "promotionEndTime"); + return (Criteria) this; + } + + public Criteria andPromotionEndTimeBetween(Date value1, Date value2) { + addCriterion("promotion_end_time between", value1, value2, "promotionEndTime"); + return (Criteria) this; + } + + public Criteria andPromotionEndTimeNotBetween(Date value1, Date value2) { + addCriterion("promotion_end_time not between", value1, value2, "promotionEndTime"); + return (Criteria) this; + } + + public Criteria andPromotionPerLimitIsNull() { + addCriterion("promotion_per_limit is null"); + return (Criteria) this; + } + + public Criteria andPromotionPerLimitIsNotNull() { + addCriterion("promotion_per_limit is not null"); + return (Criteria) this; + } + + public Criteria andPromotionPerLimitEqualTo(Integer value) { + addCriterion("promotion_per_limit =", value, "promotionPerLimit"); + return (Criteria) this; + } + + public Criteria andPromotionPerLimitNotEqualTo(Integer value) { + addCriterion("promotion_per_limit <>", value, "promotionPerLimit"); + return (Criteria) this; + } + + public Criteria andPromotionPerLimitGreaterThan(Integer value) { + addCriterion("promotion_per_limit >", value, "promotionPerLimit"); + return (Criteria) this; + } + + public Criteria andPromotionPerLimitGreaterThanOrEqualTo(Integer value) { + addCriterion("promotion_per_limit >=", value, "promotionPerLimit"); + return (Criteria) this; + } + + public Criteria andPromotionPerLimitLessThan(Integer value) { + addCriterion("promotion_per_limit <", value, "promotionPerLimit"); + return (Criteria) this; + } + + public Criteria andPromotionPerLimitLessThanOrEqualTo(Integer value) { + addCriterion("promotion_per_limit <=", value, "promotionPerLimit"); + return (Criteria) this; + } + + public Criteria andPromotionPerLimitIn(List values) { + addCriterion("promotion_per_limit in", values, "promotionPerLimit"); + return (Criteria) this; + } + + public Criteria andPromotionPerLimitNotIn(List values) { + addCriterion("promotion_per_limit not in", values, "promotionPerLimit"); + return (Criteria) this; + } + + public Criteria andPromotionPerLimitBetween(Integer value1, Integer value2) { + addCriterion("promotion_per_limit between", value1, value2, "promotionPerLimit"); + return (Criteria) this; + } + + public Criteria andPromotionPerLimitNotBetween(Integer value1, Integer value2) { + addCriterion("promotion_per_limit not between", value1, value2, "promotionPerLimit"); + return (Criteria) this; + } + + public Criteria andPromotionTypeIsNull() { + addCriterion("promotion_type is null"); + return (Criteria) this; + } + + public Criteria andPromotionTypeIsNotNull() { + addCriterion("promotion_type is not null"); + return (Criteria) this; + } + + public Criteria andPromotionTypeEqualTo(Integer value) { + addCriterion("promotion_type =", value, "promotionType"); + return (Criteria) this; + } + + public Criteria andPromotionTypeNotEqualTo(Integer value) { + addCriterion("promotion_type <>", value, "promotionType"); + return (Criteria) this; + } + + public Criteria andPromotionTypeGreaterThan(Integer value) { + addCriterion("promotion_type >", value, "promotionType"); + return (Criteria) this; + } + + public Criteria andPromotionTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("promotion_type >=", value, "promotionType"); + return (Criteria) this; + } + + public Criteria andPromotionTypeLessThan(Integer value) { + addCriterion("promotion_type <", value, "promotionType"); + return (Criteria) this; + } + + public Criteria andPromotionTypeLessThanOrEqualTo(Integer value) { + addCriterion("promotion_type <=", value, "promotionType"); + return (Criteria) this; + } + + public Criteria andPromotionTypeIn(List values) { + addCriterion("promotion_type in", values, "promotionType"); + return (Criteria) this; + } + + public Criteria andPromotionTypeNotIn(List values) { + addCriterion("promotion_type not in", values, "promotionType"); + return (Criteria) this; + } + + public Criteria andPromotionTypeBetween(Integer value1, Integer value2) { + addCriterion("promotion_type between", value1, value2, "promotionType"); + return (Criteria) this; + } + + public Criteria andPromotionTypeNotBetween(Integer value1, Integer value2) { + addCriterion("promotion_type not between", value1, value2, "promotionType"); + 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 values) { + addCriterion("brand_name in", values, "brandName"); + return (Criteria) this; + } + + public Criteria andBrandNameNotIn(List 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 andProductCategoryNameIsNull() { + addCriterion("product_category_name is null"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameIsNotNull() { + addCriterion("product_category_name is not null"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameEqualTo(String value) { + addCriterion("product_category_name =", value, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameNotEqualTo(String value) { + addCriterion("product_category_name <>", value, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameGreaterThan(String value) { + addCriterion("product_category_name >", value, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameGreaterThanOrEqualTo(String value) { + addCriterion("product_category_name >=", value, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameLessThan(String value) { + addCriterion("product_category_name <", value, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameLessThanOrEqualTo(String value) { + addCriterion("product_category_name <=", value, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameLike(String value) { + addCriterion("product_category_name like", value, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameNotLike(String value) { + addCriterion("product_category_name not like", value, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameIn(List values) { + addCriterion("product_category_name in", values, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameNotIn(List values) { + addCriterion("product_category_name not in", values, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameBetween(String value1, String value2) { + addCriterion("product_category_name between", value1, value2, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameNotBetween(String value1, String value2) { + addCriterion("product_category_name not between", value1, value2, "productCategoryName"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductFullReduction.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductFullReduction.java new file mode 100644 index 000000000..923e20bde --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductFullReduction.java @@ -0,0 +1,64 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.math.BigDecimal; + +public class PmsProductFullReduction implements Serializable { + private Long id; + + private Long productId; + + private BigDecimal fullPrice; + + private BigDecimal reducePrice; + + 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 BigDecimal getFullPrice() { + return fullPrice; + } + + public void setFullPrice(BigDecimal fullPrice) { + this.fullPrice = fullPrice; + } + + public BigDecimal getReducePrice() { + return reducePrice; + } + + public void setReducePrice(BigDecimal reducePrice) { + this.reducePrice = reducePrice; + } + + @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(", fullPrice=").append(fullPrice); + sb.append(", reducePrice=").append(reducePrice); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductFullReductionExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductFullReductionExample.java new file mode 100644 index 000000000..f1a9d704d --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductFullReductionExample.java @@ -0,0 +1,440 @@ +package com.macro.mall.model; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +public class PmsProductFullReductionExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public PmsProductFullReductionExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("product_id in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotIn(List 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 andFullPriceIsNull() { + addCriterion("full_price is null"); + return (Criteria) this; + } + + public Criteria andFullPriceIsNotNull() { + addCriterion("full_price is not null"); + return (Criteria) this; + } + + public Criteria andFullPriceEqualTo(BigDecimal value) { + addCriterion("full_price =", value, "fullPrice"); + return (Criteria) this; + } + + public Criteria andFullPriceNotEqualTo(BigDecimal value) { + addCriterion("full_price <>", value, "fullPrice"); + return (Criteria) this; + } + + public Criteria andFullPriceGreaterThan(BigDecimal value) { + addCriterion("full_price >", value, "fullPrice"); + return (Criteria) this; + } + + public Criteria andFullPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("full_price >=", value, "fullPrice"); + return (Criteria) this; + } + + public Criteria andFullPriceLessThan(BigDecimal value) { + addCriterion("full_price <", value, "fullPrice"); + return (Criteria) this; + } + + public Criteria andFullPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("full_price <=", value, "fullPrice"); + return (Criteria) this; + } + + public Criteria andFullPriceIn(List values) { + addCriterion("full_price in", values, "fullPrice"); + return (Criteria) this; + } + + public Criteria andFullPriceNotIn(List values) { + addCriterion("full_price not in", values, "fullPrice"); + return (Criteria) this; + } + + public Criteria andFullPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("full_price between", value1, value2, "fullPrice"); + return (Criteria) this; + } + + public Criteria andFullPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("full_price not between", value1, value2, "fullPrice"); + return (Criteria) this; + } + + public Criteria andReducePriceIsNull() { + addCriterion("reduce_price is null"); + return (Criteria) this; + } + + public Criteria andReducePriceIsNotNull() { + addCriterion("reduce_price is not null"); + return (Criteria) this; + } + + public Criteria andReducePriceEqualTo(BigDecimal value) { + addCriterion("reduce_price =", value, "reducePrice"); + return (Criteria) this; + } + + public Criteria andReducePriceNotEqualTo(BigDecimal value) { + addCriterion("reduce_price <>", value, "reducePrice"); + return (Criteria) this; + } + + public Criteria andReducePriceGreaterThan(BigDecimal value) { + addCriterion("reduce_price >", value, "reducePrice"); + return (Criteria) this; + } + + public Criteria andReducePriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("reduce_price >=", value, "reducePrice"); + return (Criteria) this; + } + + public Criteria andReducePriceLessThan(BigDecimal value) { + addCriterion("reduce_price <", value, "reducePrice"); + return (Criteria) this; + } + + public Criteria andReducePriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("reduce_price <=", value, "reducePrice"); + return (Criteria) this; + } + + public Criteria andReducePriceIn(List values) { + addCriterion("reduce_price in", values, "reducePrice"); + return (Criteria) this; + } + + public Criteria andReducePriceNotIn(List values) { + addCriterion("reduce_price not in", values, "reducePrice"); + return (Criteria) this; + } + + public Criteria andReducePriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("reduce_price between", value1, value2, "reducePrice"); + return (Criteria) this; + } + + public Criteria andReducePriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("reduce_price not between", value1, value2, "reducePrice"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductLadder.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductLadder.java new file mode 100644 index 000000000..1fff2e129 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductLadder.java @@ -0,0 +1,78 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.math.BigDecimal; + +public class PmsProductLadder implements Serializable { + private Long id; + + private Long productId; + + @Schema(title = "满足的商品数量") + private Integer count; + + @Schema(title = "折扣") + private BigDecimal discount; + + @Schema(title = "折后价格") + private BigDecimal price; + + 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 Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public BigDecimal getDiscount() { + return discount; + } + + public void setDiscount(BigDecimal discount) { + this.discount = discount; + } + + public BigDecimal getPrice() { + return price; + } + + public void setPrice(BigDecimal price) { + this.price = price; + } + + @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(", count=").append(count); + sb.append(", discount=").append(discount); + sb.append(", price=").append(price); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductLadderExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductLadderExample.java new file mode 100644 index 000000000..c27e4158e --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductLadderExample.java @@ -0,0 +1,500 @@ +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 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("product_id in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotIn(List 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 values) { + addCriterion("count in", values, "count"); + return (Criteria) this; + } + + public Criteria andCountNotIn(List 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 values) { + addCriterion("discount in", values, "discount"); + return (Criteria) this; + } + + public Criteria andDiscountNotIn(List 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 values) { + addCriterion("price in", values, "price"); + return (Criteria) this; + } + + public Criteria andPriceNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductOperateLog.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductOperateLog.java new file mode 100644 index 000000000..55e13c550 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductOperateLog.java @@ -0,0 +1,155 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +public class PmsProductOperateLog implements Serializable { + private Long id; + + private Long productId; + + private BigDecimal priceOld; + + private BigDecimal priceNew; + + private BigDecimal salePriceOld; + + private BigDecimal salePriceNew; + + @Schema(title = "赠送的积分") + private Integer giftPointOld; + + private Integer giftPointNew; + + private Integer usePointLimitOld; + + private Integer usePointLimitNew; + + @Schema(title = "操作人") + private String operateMan; + + private Date createTime; + + 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 BigDecimal getPriceOld() { + return priceOld; + } + + public void setPriceOld(BigDecimal priceOld) { + this.priceOld = priceOld; + } + + public BigDecimal getPriceNew() { + return priceNew; + } + + public void setPriceNew(BigDecimal priceNew) { + this.priceNew = priceNew; + } + + public BigDecimal getSalePriceOld() { + return salePriceOld; + } + + public void setSalePriceOld(BigDecimal salePriceOld) { + this.salePriceOld = salePriceOld; + } + + public BigDecimal getSalePriceNew() { + return salePriceNew; + } + + public void setSalePriceNew(BigDecimal salePriceNew) { + this.salePriceNew = salePriceNew; + } + + public Integer getGiftPointOld() { + return giftPointOld; + } + + public void setGiftPointOld(Integer giftPointOld) { + this.giftPointOld = giftPointOld; + } + + public Integer getGiftPointNew() { + return giftPointNew; + } + + public void setGiftPointNew(Integer giftPointNew) { + this.giftPointNew = giftPointNew; + } + + public Integer getUsePointLimitOld() { + return usePointLimitOld; + } + + public void setUsePointLimitOld(Integer usePointLimitOld) { + this.usePointLimitOld = usePointLimitOld; + } + + public Integer getUsePointLimitNew() { + return usePointLimitNew; + } + + public void setUsePointLimitNew(Integer usePointLimitNew) { + this.usePointLimitNew = usePointLimitNew; + } + + 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; + } + + @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(", priceOld=").append(priceOld); + sb.append(", priceNew=").append(priceNew); + sb.append(", salePriceOld=").append(salePriceOld); + sb.append(", salePriceNew=").append(salePriceNew); + sb.append(", giftPointOld=").append(giftPointOld); + sb.append(", giftPointNew=").append(giftPointNew); + sb.append(", usePointLimitOld=").append(usePointLimitOld); + sb.append(", usePointLimitNew=").append(usePointLimitNew); + sb.append(", operateMan=").append(operateMan); + sb.append(", createTime=").append(createTime); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductOperateLogExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductOperateLogExample.java new file mode 100644 index 000000000..3a6691096 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductOperateLogExample.java @@ -0,0 +1,931 @@ +package com.macro.mall.model; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class PmsProductOperateLogExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public PmsProductOperateLogExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("product_id in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotIn(List 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 andPriceOldIsNull() { + addCriterion("price_old is null"); + return (Criteria) this; + } + + public Criteria andPriceOldIsNotNull() { + addCriterion("price_old is not null"); + return (Criteria) this; + } + + public Criteria andPriceOldEqualTo(BigDecimal value) { + addCriterion("price_old =", value, "priceOld"); + return (Criteria) this; + } + + public Criteria andPriceOldNotEqualTo(BigDecimal value) { + addCriterion("price_old <>", value, "priceOld"); + return (Criteria) this; + } + + public Criteria andPriceOldGreaterThan(BigDecimal value) { + addCriterion("price_old >", value, "priceOld"); + return (Criteria) this; + } + + public Criteria andPriceOldGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("price_old >=", value, "priceOld"); + return (Criteria) this; + } + + public Criteria andPriceOldLessThan(BigDecimal value) { + addCriterion("price_old <", value, "priceOld"); + return (Criteria) this; + } + + public Criteria andPriceOldLessThanOrEqualTo(BigDecimal value) { + addCriterion("price_old <=", value, "priceOld"); + return (Criteria) this; + } + + public Criteria andPriceOldIn(List values) { + addCriterion("price_old in", values, "priceOld"); + return (Criteria) this; + } + + public Criteria andPriceOldNotIn(List values) { + addCriterion("price_old not in", values, "priceOld"); + return (Criteria) this; + } + + public Criteria andPriceOldBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("price_old between", value1, value2, "priceOld"); + return (Criteria) this; + } + + public Criteria andPriceOldNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("price_old not between", value1, value2, "priceOld"); + return (Criteria) this; + } + + public Criteria andPriceNewIsNull() { + addCriterion("price_new is null"); + return (Criteria) this; + } + + public Criteria andPriceNewIsNotNull() { + addCriterion("price_new is not null"); + return (Criteria) this; + } + + public Criteria andPriceNewEqualTo(BigDecimal value) { + addCriterion("price_new =", value, "priceNew"); + return (Criteria) this; + } + + public Criteria andPriceNewNotEqualTo(BigDecimal value) { + addCriterion("price_new <>", value, "priceNew"); + return (Criteria) this; + } + + public Criteria andPriceNewGreaterThan(BigDecimal value) { + addCriterion("price_new >", value, "priceNew"); + return (Criteria) this; + } + + public Criteria andPriceNewGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("price_new >=", value, "priceNew"); + return (Criteria) this; + } + + public Criteria andPriceNewLessThan(BigDecimal value) { + addCriterion("price_new <", value, "priceNew"); + return (Criteria) this; + } + + public Criteria andPriceNewLessThanOrEqualTo(BigDecimal value) { + addCriterion("price_new <=", value, "priceNew"); + return (Criteria) this; + } + + public Criteria andPriceNewIn(List values) { + addCriterion("price_new in", values, "priceNew"); + return (Criteria) this; + } + + public Criteria andPriceNewNotIn(List values) { + addCriterion("price_new not in", values, "priceNew"); + return (Criteria) this; + } + + public Criteria andPriceNewBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("price_new between", value1, value2, "priceNew"); + return (Criteria) this; + } + + public Criteria andPriceNewNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("price_new not between", value1, value2, "priceNew"); + return (Criteria) this; + } + + public Criteria andSalePriceOldIsNull() { + addCriterion("sale_price_old is null"); + return (Criteria) this; + } + + public Criteria andSalePriceOldIsNotNull() { + addCriterion("sale_price_old is not null"); + return (Criteria) this; + } + + public Criteria andSalePriceOldEqualTo(BigDecimal value) { + addCriterion("sale_price_old =", value, "salePriceOld"); + return (Criteria) this; + } + + public Criteria andSalePriceOldNotEqualTo(BigDecimal value) { + addCriterion("sale_price_old <>", value, "salePriceOld"); + return (Criteria) this; + } + + public Criteria andSalePriceOldGreaterThan(BigDecimal value) { + addCriterion("sale_price_old >", value, "salePriceOld"); + return (Criteria) this; + } + + public Criteria andSalePriceOldGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("sale_price_old >=", value, "salePriceOld"); + return (Criteria) this; + } + + public Criteria andSalePriceOldLessThan(BigDecimal value) { + addCriterion("sale_price_old <", value, "salePriceOld"); + return (Criteria) this; + } + + public Criteria andSalePriceOldLessThanOrEqualTo(BigDecimal value) { + addCriterion("sale_price_old <=", value, "salePriceOld"); + return (Criteria) this; + } + + public Criteria andSalePriceOldIn(List values) { + addCriterion("sale_price_old in", values, "salePriceOld"); + return (Criteria) this; + } + + public Criteria andSalePriceOldNotIn(List values) { + addCriterion("sale_price_old not in", values, "salePriceOld"); + return (Criteria) this; + } + + public Criteria andSalePriceOldBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("sale_price_old between", value1, value2, "salePriceOld"); + return (Criteria) this; + } + + public Criteria andSalePriceOldNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("sale_price_old not between", value1, value2, "salePriceOld"); + return (Criteria) this; + } + + public Criteria andSalePriceNewIsNull() { + addCriterion("sale_price_new is null"); + return (Criteria) this; + } + + public Criteria andSalePriceNewIsNotNull() { + addCriterion("sale_price_new is not null"); + return (Criteria) this; + } + + public Criteria andSalePriceNewEqualTo(BigDecimal value) { + addCriterion("sale_price_new =", value, "salePriceNew"); + return (Criteria) this; + } + + public Criteria andSalePriceNewNotEqualTo(BigDecimal value) { + addCriterion("sale_price_new <>", value, "salePriceNew"); + return (Criteria) this; + } + + public Criteria andSalePriceNewGreaterThan(BigDecimal value) { + addCriterion("sale_price_new >", value, "salePriceNew"); + return (Criteria) this; + } + + public Criteria andSalePriceNewGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("sale_price_new >=", value, "salePriceNew"); + return (Criteria) this; + } + + public Criteria andSalePriceNewLessThan(BigDecimal value) { + addCriterion("sale_price_new <", value, "salePriceNew"); + return (Criteria) this; + } + + public Criteria andSalePriceNewLessThanOrEqualTo(BigDecimal value) { + addCriterion("sale_price_new <=", value, "salePriceNew"); + return (Criteria) this; + } + + public Criteria andSalePriceNewIn(List values) { + addCriterion("sale_price_new in", values, "salePriceNew"); + return (Criteria) this; + } + + public Criteria andSalePriceNewNotIn(List values) { + addCriterion("sale_price_new not in", values, "salePriceNew"); + return (Criteria) this; + } + + public Criteria andSalePriceNewBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("sale_price_new between", value1, value2, "salePriceNew"); + return (Criteria) this; + } + + public Criteria andSalePriceNewNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("sale_price_new not between", value1, value2, "salePriceNew"); + return (Criteria) this; + } + + public Criteria andGiftPointOldIsNull() { + addCriterion("gift_point_old is null"); + return (Criteria) this; + } + + public Criteria andGiftPointOldIsNotNull() { + addCriterion("gift_point_old is not null"); + return (Criteria) this; + } + + public Criteria andGiftPointOldEqualTo(Integer value) { + addCriterion("gift_point_old =", value, "giftPointOld"); + return (Criteria) this; + } + + public Criteria andGiftPointOldNotEqualTo(Integer value) { + addCriterion("gift_point_old <>", value, "giftPointOld"); + return (Criteria) this; + } + + public Criteria andGiftPointOldGreaterThan(Integer value) { + addCriterion("gift_point_old >", value, "giftPointOld"); + return (Criteria) this; + } + + public Criteria andGiftPointOldGreaterThanOrEqualTo(Integer value) { + addCriterion("gift_point_old >=", value, "giftPointOld"); + return (Criteria) this; + } + + public Criteria andGiftPointOldLessThan(Integer value) { + addCriterion("gift_point_old <", value, "giftPointOld"); + return (Criteria) this; + } + + public Criteria andGiftPointOldLessThanOrEqualTo(Integer value) { + addCriterion("gift_point_old <=", value, "giftPointOld"); + return (Criteria) this; + } + + public Criteria andGiftPointOldIn(List values) { + addCriterion("gift_point_old in", values, "giftPointOld"); + return (Criteria) this; + } + + public Criteria andGiftPointOldNotIn(List values) { + addCriterion("gift_point_old not in", values, "giftPointOld"); + return (Criteria) this; + } + + public Criteria andGiftPointOldBetween(Integer value1, Integer value2) { + addCriterion("gift_point_old between", value1, value2, "giftPointOld"); + return (Criteria) this; + } + + public Criteria andGiftPointOldNotBetween(Integer value1, Integer value2) { + addCriterion("gift_point_old not between", value1, value2, "giftPointOld"); + return (Criteria) this; + } + + public Criteria andGiftPointNewIsNull() { + addCriterion("gift_point_new is null"); + return (Criteria) this; + } + + public Criteria andGiftPointNewIsNotNull() { + addCriterion("gift_point_new is not null"); + return (Criteria) this; + } + + public Criteria andGiftPointNewEqualTo(Integer value) { + addCriterion("gift_point_new =", value, "giftPointNew"); + return (Criteria) this; + } + + public Criteria andGiftPointNewNotEqualTo(Integer value) { + addCriterion("gift_point_new <>", value, "giftPointNew"); + return (Criteria) this; + } + + public Criteria andGiftPointNewGreaterThan(Integer value) { + addCriterion("gift_point_new >", value, "giftPointNew"); + return (Criteria) this; + } + + public Criteria andGiftPointNewGreaterThanOrEqualTo(Integer value) { + addCriterion("gift_point_new >=", value, "giftPointNew"); + return (Criteria) this; + } + + public Criteria andGiftPointNewLessThan(Integer value) { + addCriterion("gift_point_new <", value, "giftPointNew"); + return (Criteria) this; + } + + public Criteria andGiftPointNewLessThanOrEqualTo(Integer value) { + addCriterion("gift_point_new <=", value, "giftPointNew"); + return (Criteria) this; + } + + public Criteria andGiftPointNewIn(List values) { + addCriterion("gift_point_new in", values, "giftPointNew"); + return (Criteria) this; + } + + public Criteria andGiftPointNewNotIn(List values) { + addCriterion("gift_point_new not in", values, "giftPointNew"); + return (Criteria) this; + } + + public Criteria andGiftPointNewBetween(Integer value1, Integer value2) { + addCriterion("gift_point_new between", value1, value2, "giftPointNew"); + return (Criteria) this; + } + + public Criteria andGiftPointNewNotBetween(Integer value1, Integer value2) { + addCriterion("gift_point_new not between", value1, value2, "giftPointNew"); + return (Criteria) this; + } + + public Criteria andUsePointLimitOldIsNull() { + addCriterion("use_point_limit_old is null"); + return (Criteria) this; + } + + public Criteria andUsePointLimitOldIsNotNull() { + addCriterion("use_point_limit_old is not null"); + return (Criteria) this; + } + + public Criteria andUsePointLimitOldEqualTo(Integer value) { + addCriterion("use_point_limit_old =", value, "usePointLimitOld"); + return (Criteria) this; + } + + public Criteria andUsePointLimitOldNotEqualTo(Integer value) { + addCriterion("use_point_limit_old <>", value, "usePointLimitOld"); + return (Criteria) this; + } + + public Criteria andUsePointLimitOldGreaterThan(Integer value) { + addCriterion("use_point_limit_old >", value, "usePointLimitOld"); + return (Criteria) this; + } + + public Criteria andUsePointLimitOldGreaterThanOrEqualTo(Integer value) { + addCriterion("use_point_limit_old >=", value, "usePointLimitOld"); + return (Criteria) this; + } + + public Criteria andUsePointLimitOldLessThan(Integer value) { + addCriterion("use_point_limit_old <", value, "usePointLimitOld"); + return (Criteria) this; + } + + public Criteria andUsePointLimitOldLessThanOrEqualTo(Integer value) { + addCriterion("use_point_limit_old <=", value, "usePointLimitOld"); + return (Criteria) this; + } + + public Criteria andUsePointLimitOldIn(List values) { + addCriterion("use_point_limit_old in", values, "usePointLimitOld"); + return (Criteria) this; + } + + public Criteria andUsePointLimitOldNotIn(List values) { + addCriterion("use_point_limit_old not in", values, "usePointLimitOld"); + return (Criteria) this; + } + + public Criteria andUsePointLimitOldBetween(Integer value1, Integer value2) { + addCriterion("use_point_limit_old between", value1, value2, "usePointLimitOld"); + return (Criteria) this; + } + + public Criteria andUsePointLimitOldNotBetween(Integer value1, Integer value2) { + addCriterion("use_point_limit_old not between", value1, value2, "usePointLimitOld"); + return (Criteria) this; + } + + public Criteria andUsePointLimitNewIsNull() { + addCriterion("use_point_limit_new is null"); + return (Criteria) this; + } + + public Criteria andUsePointLimitNewIsNotNull() { + addCriterion("use_point_limit_new is not null"); + return (Criteria) this; + } + + public Criteria andUsePointLimitNewEqualTo(Integer value) { + addCriterion("use_point_limit_new =", value, "usePointLimitNew"); + return (Criteria) this; + } + + public Criteria andUsePointLimitNewNotEqualTo(Integer value) { + addCriterion("use_point_limit_new <>", value, "usePointLimitNew"); + return (Criteria) this; + } + + public Criteria andUsePointLimitNewGreaterThan(Integer value) { + addCriterion("use_point_limit_new >", value, "usePointLimitNew"); + return (Criteria) this; + } + + public Criteria andUsePointLimitNewGreaterThanOrEqualTo(Integer value) { + addCriterion("use_point_limit_new >=", value, "usePointLimitNew"); + return (Criteria) this; + } + + public Criteria andUsePointLimitNewLessThan(Integer value) { + addCriterion("use_point_limit_new <", value, "usePointLimitNew"); + return (Criteria) this; + } + + public Criteria andUsePointLimitNewLessThanOrEqualTo(Integer value) { + addCriterion("use_point_limit_new <=", value, "usePointLimitNew"); + return (Criteria) this; + } + + public Criteria andUsePointLimitNewIn(List values) { + addCriterion("use_point_limit_new in", values, "usePointLimitNew"); + return (Criteria) this; + } + + public Criteria andUsePointLimitNewNotIn(List values) { + addCriterion("use_point_limit_new not in", values, "usePointLimitNew"); + return (Criteria) this; + } + + public Criteria andUsePointLimitNewBetween(Integer value1, Integer value2) { + addCriterion("use_point_limit_new between", value1, value2, "usePointLimitNew"); + return (Criteria) this; + } + + public Criteria andUsePointLimitNewNotBetween(Integer value1, Integer value2) { + addCriterion("use_point_limit_new not between", value1, value2, "usePointLimitNew"); + return (Criteria) this; + } + + public Criteria andOperateManIsNull() { + addCriterion("operate_man is null"); + return (Criteria) this; + } + + public Criteria andOperateManIsNotNull() { + addCriterion("operate_man is not null"); + return (Criteria) this; + } + + public Criteria andOperateManEqualTo(String value) { + addCriterion("operate_man =", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManNotEqualTo(String value) { + addCriterion("operate_man <>", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManGreaterThan(String value) { + addCriterion("operate_man >", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManGreaterThanOrEqualTo(String value) { + addCriterion("operate_man >=", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManLessThan(String value) { + addCriterion("operate_man <", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManLessThanOrEqualTo(String value) { + addCriterion("operate_man <=", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManLike(String value) { + addCriterion("operate_man like", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManNotLike(String value) { + addCriterion("operate_man not like", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManIn(List values) { + addCriterion("operate_man in", values, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManNotIn(List values) { + addCriterion("operate_man not in", values, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManBetween(String value1, String value2) { + addCriterion("operate_man between", value1, value2, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManNotBetween(String value1, String value2) { + addCriterion("operate_man not between", value1, value2, "operateMan"); + 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductVertifyRecord.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductVertifyRecord.java new file mode 100644 index 000000000..571fb4956 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductVertifyRecord.java @@ -0,0 +1,88 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.util.Date; + +public class PmsProductVertifyRecord implements Serializable { + private Long id; + + private Long productId; + + private Date createTime; + + @Schema(title = "审核人") + private String vertifyMan; + + private Integer status; + + @Schema(title = "反馈详情") + private String detail; + + 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 Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public String getVertifyMan() { + return vertifyMan; + } + + public void setVertifyMan(String vertifyMan) { + this.vertifyMan = vertifyMan; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + + @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(", createTime=").append(createTime); + sb.append(", vertifyMan=").append(vertifyMan); + sb.append(", status=").append(status); + sb.append(", detail=").append(detail); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductVertifyRecordExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductVertifyRecordExample.java new file mode 100644 index 000000000..c9fb11f01 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsProductVertifyRecordExample.java @@ -0,0 +1,580 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class PmsProductVertifyRecordExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public PmsProductVertifyRecordExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("product_id in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotIn(List 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 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 andVertifyManIsNull() { + addCriterion("vertify_man is null"); + return (Criteria) this; + } + + public Criteria andVertifyManIsNotNull() { + addCriterion("vertify_man is not null"); + return (Criteria) this; + } + + public Criteria andVertifyManEqualTo(String value) { + addCriterion("vertify_man =", value, "vertifyMan"); + return (Criteria) this; + } + + public Criteria andVertifyManNotEqualTo(String value) { + addCriterion("vertify_man <>", value, "vertifyMan"); + return (Criteria) this; + } + + public Criteria andVertifyManGreaterThan(String value) { + addCriterion("vertify_man >", value, "vertifyMan"); + return (Criteria) this; + } + + public Criteria andVertifyManGreaterThanOrEqualTo(String value) { + addCriterion("vertify_man >=", value, "vertifyMan"); + return (Criteria) this; + } + + public Criteria andVertifyManLessThan(String value) { + addCriterion("vertify_man <", value, "vertifyMan"); + return (Criteria) this; + } + + public Criteria andVertifyManLessThanOrEqualTo(String value) { + addCriterion("vertify_man <=", value, "vertifyMan"); + return (Criteria) this; + } + + public Criteria andVertifyManLike(String value) { + addCriterion("vertify_man like", value, "vertifyMan"); + return (Criteria) this; + } + + public Criteria andVertifyManNotLike(String value) { + addCriterion("vertify_man not like", value, "vertifyMan"); + return (Criteria) this; + } + + public Criteria andVertifyManIn(List values) { + addCriterion("vertify_man in", values, "vertifyMan"); + return (Criteria) this; + } + + public Criteria andVertifyManNotIn(List values) { + addCriterion("vertify_man not in", values, "vertifyMan"); + return (Criteria) this; + } + + public Criteria andVertifyManBetween(String value1, String value2) { + addCriterion("vertify_man between", value1, value2, "vertifyMan"); + return (Criteria) this; + } + + public Criteria andVertifyManNotBetween(String value1, String value2) { + addCriterion("vertify_man not between", value1, value2, "vertifyMan"); + 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 values) { + addCriterion("status in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List 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 andDetailIsNull() { + addCriterion("detail is null"); + return (Criteria) this; + } + + public Criteria andDetailIsNotNull() { + addCriterion("detail is not null"); + return (Criteria) this; + } + + public Criteria andDetailEqualTo(String value) { + addCriterion("detail =", value, "detail"); + return (Criteria) this; + } + + public Criteria andDetailNotEqualTo(String value) { + addCriterion("detail <>", value, "detail"); + return (Criteria) this; + } + + public Criteria andDetailGreaterThan(String value) { + addCriterion("detail >", value, "detail"); + return (Criteria) this; + } + + public Criteria andDetailGreaterThanOrEqualTo(String value) { + addCriterion("detail >=", value, "detail"); + return (Criteria) this; + } + + public Criteria andDetailLessThan(String value) { + addCriterion("detail <", value, "detail"); + return (Criteria) this; + } + + public Criteria andDetailLessThanOrEqualTo(String value) { + addCriterion("detail <=", value, "detail"); + return (Criteria) this; + } + + public Criteria andDetailLike(String value) { + addCriterion("detail like", value, "detail"); + return (Criteria) this; + } + + public Criteria andDetailNotLike(String value) { + addCriterion("detail not like", value, "detail"); + return (Criteria) this; + } + + public Criteria andDetailIn(List values) { + addCriterion("detail in", values, "detail"); + return (Criteria) this; + } + + public Criteria andDetailNotIn(List values) { + addCriterion("detail not in", values, "detail"); + return (Criteria) this; + } + + public Criteria andDetailBetween(String value1, String value2) { + addCriterion("detail between", value1, value2, "detail"); + return (Criteria) this; + } + + public Criteria andDetailNotBetween(String value1, String value2) { + addCriterion("detail not between", value1, value2, "detail"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsSkuStock.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsSkuStock.java new file mode 100644 index 000000000..acc45ae9c --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsSkuStock.java @@ -0,0 +1,149 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.math.BigDecimal; + +public class PmsSkuStock implements Serializable { + private Long id; + + private Long productId; + + @Schema(title = "sku编码") + private String skuCode; + + private BigDecimal price; + + @Schema(title = "库存") + private Integer stock; + + @Schema(title = "预警库存") + private Integer lowStock; + + @Schema(title = "展示图片") + private String pic; + + @Schema(title = "销量") + private Integer sale; + + @Schema(title = "单品促销价格") + private BigDecimal promotionPrice; + + @Schema(title = "锁定库存") + private Integer lockStock; + + @Schema(title = "商品销售属性,json格式") + private String spData; + + 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 getSkuCode() { + return skuCode; + } + + public void setSkuCode(String skuCode) { + this.skuCode = skuCode; + } + + public BigDecimal getPrice() { + return price; + } + + public void setPrice(BigDecimal price) { + this.price = price; + } + + public Integer getStock() { + return stock; + } + + public void setStock(Integer stock) { + this.stock = stock; + } + + public Integer getLowStock() { + return lowStock; + } + + public void setLowStock(Integer lowStock) { + this.lowStock = lowStock; + } + + public String getPic() { + return pic; + } + + public void setPic(String pic) { + this.pic = pic; + } + + public Integer getSale() { + return sale; + } + + public void setSale(Integer sale) { + this.sale = sale; + } + + public BigDecimal getPromotionPrice() { + return promotionPrice; + } + + public void setPromotionPrice(BigDecimal promotionPrice) { + this.promotionPrice = promotionPrice; + } + + public Integer getLockStock() { + return lockStock; + } + + public void setLockStock(Integer lockStock) { + this.lockStock = lockStock; + } + + public String getSpData() { + return spData; + } + + public void setSpData(String spData) { + this.spData = spData; + } + + @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(", skuCode=").append(skuCode); + sb.append(", price=").append(price); + sb.append(", stock=").append(stock); + sb.append(", lowStock=").append(lowStock); + sb.append(", pic=").append(pic); + sb.append(", sale=").append(sale); + sb.append(", promotionPrice=").append(promotionPrice); + sb.append(", lockStock=").append(lockStock); + sb.append(", spData=").append(spData); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsSkuStockExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsSkuStockExample.java new file mode 100644 index 000000000..8b6cc773e --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/PmsSkuStockExample.java @@ -0,0 +1,890 @@ +package com.macro.mall.model; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +public class PmsSkuStockExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public PmsSkuStockExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("product_id in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotIn(List 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 andSkuCodeIsNull() { + addCriterion("sku_code is null"); + return (Criteria) this; + } + + public Criteria andSkuCodeIsNotNull() { + addCriterion("sku_code is not null"); + return (Criteria) this; + } + + public Criteria andSkuCodeEqualTo(String value) { + addCriterion("sku_code =", value, "skuCode"); + return (Criteria) this; + } + + public Criteria andSkuCodeNotEqualTo(String value) { + addCriterion("sku_code <>", value, "skuCode"); + return (Criteria) this; + } + + public Criteria andSkuCodeGreaterThan(String value) { + addCriterion("sku_code >", value, "skuCode"); + return (Criteria) this; + } + + public Criteria andSkuCodeGreaterThanOrEqualTo(String value) { + addCriterion("sku_code >=", value, "skuCode"); + return (Criteria) this; + } + + public Criteria andSkuCodeLessThan(String value) { + addCriterion("sku_code <", value, "skuCode"); + return (Criteria) this; + } + + public Criteria andSkuCodeLessThanOrEqualTo(String value) { + addCriterion("sku_code <=", value, "skuCode"); + return (Criteria) this; + } + + public Criteria andSkuCodeLike(String value) { + addCriterion("sku_code like", value, "skuCode"); + return (Criteria) this; + } + + public Criteria andSkuCodeNotLike(String value) { + addCriterion("sku_code not like", value, "skuCode"); + return (Criteria) this; + } + + public Criteria andSkuCodeIn(List values) { + addCriterion("sku_code in", values, "skuCode"); + return (Criteria) this; + } + + public Criteria andSkuCodeNotIn(List values) { + addCriterion("sku_code not in", values, "skuCode"); + return (Criteria) this; + } + + public Criteria andSkuCodeBetween(String value1, String value2) { + addCriterion("sku_code between", value1, value2, "skuCode"); + return (Criteria) this; + } + + public Criteria andSkuCodeNotBetween(String value1, String value2) { + addCriterion("sku_code not between", value1, value2, "skuCode"); + 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 values) { + addCriterion("price in", values, "price"); + return (Criteria) this; + } + + public Criteria andPriceNotIn(List 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 Criteria andStockIsNull() { + addCriterion("stock is null"); + return (Criteria) this; + } + + public Criteria andStockIsNotNull() { + addCriterion("stock is not null"); + return (Criteria) this; + } + + public Criteria andStockEqualTo(Integer value) { + addCriterion("stock =", value, "stock"); + return (Criteria) this; + } + + public Criteria andStockNotEqualTo(Integer value) { + addCriterion("stock <>", value, "stock"); + return (Criteria) this; + } + + public Criteria andStockGreaterThan(Integer value) { + addCriterion("stock >", value, "stock"); + return (Criteria) this; + } + + public Criteria andStockGreaterThanOrEqualTo(Integer value) { + addCriterion("stock >=", value, "stock"); + return (Criteria) this; + } + + public Criteria andStockLessThan(Integer value) { + addCriterion("stock <", value, "stock"); + return (Criteria) this; + } + + public Criteria andStockLessThanOrEqualTo(Integer value) { + addCriterion("stock <=", value, "stock"); + return (Criteria) this; + } + + public Criteria andStockIn(List values) { + addCriterion("stock in", values, "stock"); + return (Criteria) this; + } + + public Criteria andStockNotIn(List values) { + addCriterion("stock not in", values, "stock"); + return (Criteria) this; + } + + public Criteria andStockBetween(Integer value1, Integer value2) { + addCriterion("stock between", value1, value2, "stock"); + return (Criteria) this; + } + + public Criteria andStockNotBetween(Integer value1, Integer value2) { + addCriterion("stock not between", value1, value2, "stock"); + return (Criteria) this; + } + + public Criteria andLowStockIsNull() { + addCriterion("low_stock is null"); + return (Criteria) this; + } + + public Criteria andLowStockIsNotNull() { + addCriterion("low_stock is not null"); + return (Criteria) this; + } + + public Criteria andLowStockEqualTo(Integer value) { + addCriterion("low_stock =", value, "lowStock"); + return (Criteria) this; + } + + public Criteria andLowStockNotEqualTo(Integer value) { + addCriterion("low_stock <>", value, "lowStock"); + return (Criteria) this; + } + + public Criteria andLowStockGreaterThan(Integer value) { + addCriterion("low_stock >", value, "lowStock"); + return (Criteria) this; + } + + public Criteria andLowStockGreaterThanOrEqualTo(Integer value) { + addCriterion("low_stock >=", value, "lowStock"); + return (Criteria) this; + } + + public Criteria andLowStockLessThan(Integer value) { + addCriterion("low_stock <", value, "lowStock"); + return (Criteria) this; + } + + public Criteria andLowStockLessThanOrEqualTo(Integer value) { + addCriterion("low_stock <=", value, "lowStock"); + return (Criteria) this; + } + + public Criteria andLowStockIn(List values) { + addCriterion("low_stock in", values, "lowStock"); + return (Criteria) this; + } + + public Criteria andLowStockNotIn(List values) { + addCriterion("low_stock not in", values, "lowStock"); + return (Criteria) this; + } + + public Criteria andLowStockBetween(Integer value1, Integer value2) { + addCriterion("low_stock between", value1, value2, "lowStock"); + return (Criteria) this; + } + + public Criteria andLowStockNotBetween(Integer value1, Integer value2) { + addCriterion("low_stock not between", value1, value2, "lowStock"); + 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 values) { + addCriterion("pic in", values, "pic"); + return (Criteria) this; + } + + public Criteria andPicNotIn(List 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 andSaleIsNull() { + addCriterion("sale is null"); + return (Criteria) this; + } + + public Criteria andSaleIsNotNull() { + addCriterion("sale is not null"); + return (Criteria) this; + } + + public Criteria andSaleEqualTo(Integer value) { + addCriterion("sale =", value, "sale"); + return (Criteria) this; + } + + public Criteria andSaleNotEqualTo(Integer value) { + addCriterion("sale <>", value, "sale"); + return (Criteria) this; + } + + public Criteria andSaleGreaterThan(Integer value) { + addCriterion("sale >", value, "sale"); + return (Criteria) this; + } + + public Criteria andSaleGreaterThanOrEqualTo(Integer value) { + addCriterion("sale >=", value, "sale"); + return (Criteria) this; + } + + public Criteria andSaleLessThan(Integer value) { + addCriterion("sale <", value, "sale"); + return (Criteria) this; + } + + public Criteria andSaleLessThanOrEqualTo(Integer value) { + addCriterion("sale <=", value, "sale"); + return (Criteria) this; + } + + public Criteria andSaleIn(List values) { + addCriterion("sale in", values, "sale"); + return (Criteria) this; + } + + public Criteria andSaleNotIn(List values) { + addCriterion("sale not in", values, "sale"); + return (Criteria) this; + } + + public Criteria andSaleBetween(Integer value1, Integer value2) { + addCriterion("sale between", value1, value2, "sale"); + return (Criteria) this; + } + + public Criteria andSaleNotBetween(Integer value1, Integer value2) { + addCriterion("sale not between", value1, value2, "sale"); + return (Criteria) this; + } + + public Criteria andPromotionPriceIsNull() { + addCriterion("promotion_price is null"); + return (Criteria) this; + } + + public Criteria andPromotionPriceIsNotNull() { + addCriterion("promotion_price is not null"); + return (Criteria) this; + } + + public Criteria andPromotionPriceEqualTo(BigDecimal value) { + addCriterion("promotion_price =", value, "promotionPrice"); + return (Criteria) this; + } + + public Criteria andPromotionPriceNotEqualTo(BigDecimal value) { + addCriterion("promotion_price <>", value, "promotionPrice"); + return (Criteria) this; + } + + public Criteria andPromotionPriceGreaterThan(BigDecimal value) { + addCriterion("promotion_price >", value, "promotionPrice"); + return (Criteria) this; + } + + public Criteria andPromotionPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("promotion_price >=", value, "promotionPrice"); + return (Criteria) this; + } + + public Criteria andPromotionPriceLessThan(BigDecimal value) { + addCriterion("promotion_price <", value, "promotionPrice"); + return (Criteria) this; + } + + public Criteria andPromotionPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("promotion_price <=", value, "promotionPrice"); + return (Criteria) this; + } + + public Criteria andPromotionPriceIn(List values) { + addCriterion("promotion_price in", values, "promotionPrice"); + return (Criteria) this; + } + + public Criteria andPromotionPriceNotIn(List values) { + addCriterion("promotion_price not in", values, "promotionPrice"); + return (Criteria) this; + } + + public Criteria andPromotionPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("promotion_price between", value1, value2, "promotionPrice"); + return (Criteria) this; + } + + public Criteria andPromotionPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("promotion_price not between", value1, value2, "promotionPrice"); + return (Criteria) this; + } + + public Criteria andLockStockIsNull() { + addCriterion("lock_stock is null"); + return (Criteria) this; + } + + public Criteria andLockStockIsNotNull() { + addCriterion("lock_stock is not null"); + return (Criteria) this; + } + + public Criteria andLockStockEqualTo(Integer value) { + addCriterion("lock_stock =", value, "lockStock"); + return (Criteria) this; + } + + public Criteria andLockStockNotEqualTo(Integer value) { + addCriterion("lock_stock <>", value, "lockStock"); + return (Criteria) this; + } + + public Criteria andLockStockGreaterThan(Integer value) { + addCriterion("lock_stock >", value, "lockStock"); + return (Criteria) this; + } + + public Criteria andLockStockGreaterThanOrEqualTo(Integer value) { + addCriterion("lock_stock >=", value, "lockStock"); + return (Criteria) this; + } + + public Criteria andLockStockLessThan(Integer value) { + addCriterion("lock_stock <", value, "lockStock"); + return (Criteria) this; + } + + public Criteria andLockStockLessThanOrEqualTo(Integer value) { + addCriterion("lock_stock <=", value, "lockStock"); + return (Criteria) this; + } + + public Criteria andLockStockIn(List values) { + addCriterion("lock_stock in", values, "lockStock"); + return (Criteria) this; + } + + public Criteria andLockStockNotIn(List values) { + addCriterion("lock_stock not in", values, "lockStock"); + return (Criteria) this; + } + + public Criteria andLockStockBetween(Integer value1, Integer value2) { + addCriterion("lock_stock between", value1, value2, "lockStock"); + return (Criteria) this; + } + + public Criteria andLockStockNotBetween(Integer value1, Integer value2) { + addCriterion("lock_stock not between", value1, value2, "lockStock"); + return (Criteria) this; + } + + public Criteria andSpDataIsNull() { + addCriterion("sp_data is null"); + return (Criteria) this; + } + + public Criteria andSpDataIsNotNull() { + addCriterion("sp_data is not null"); + return (Criteria) this; + } + + public Criteria andSpDataEqualTo(String value) { + addCriterion("sp_data =", value, "spData"); + return (Criteria) this; + } + + public Criteria andSpDataNotEqualTo(String value) { + addCriterion("sp_data <>", value, "spData"); + return (Criteria) this; + } + + public Criteria andSpDataGreaterThan(String value) { + addCriterion("sp_data >", value, "spData"); + return (Criteria) this; + } + + public Criteria andSpDataGreaterThanOrEqualTo(String value) { + addCriterion("sp_data >=", value, "spData"); + return (Criteria) this; + } + + public Criteria andSpDataLessThan(String value) { + addCriterion("sp_data <", value, "spData"); + return (Criteria) this; + } + + public Criteria andSpDataLessThanOrEqualTo(String value) { + addCriterion("sp_data <=", value, "spData"); + return (Criteria) this; + } + + public Criteria andSpDataLike(String value) { + addCriterion("sp_data like", value, "spData"); + return (Criteria) this; + } + + public Criteria andSpDataNotLike(String value) { + addCriterion("sp_data not like", value, "spData"); + return (Criteria) this; + } + + public Criteria andSpDataIn(List values) { + addCriterion("sp_data in", values, "spData"); + return (Criteria) this; + } + + public Criteria andSpDataNotIn(List values) { + addCriterion("sp_data not in", values, "spData"); + return (Criteria) this; + } + + public Criteria andSpDataBetween(String value1, String value2) { + addCriterion("sp_data between", value1, value2, "spData"); + return (Criteria) this; + } + + public Criteria andSpDataNotBetween(String value1, String value2) { + addCriterion("sp_data not between", value1, value2, "spData"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCoupon.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCoupon.java new file mode 100644 index 000000000..8dd1e8024 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCoupon.java @@ -0,0 +1,233 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +public class SmsCoupon implements Serializable { + private Long id; + + @Schema(title = "优惠券类型;0->全场赠券;1->会员赠券;2->购物赠券;3->注册赠券") + private Integer type; + + private String name; + + @Schema(title = "使用平台:0->全部;1->移动;2->PC") + private Integer platform; + + @Schema(title = "数量") + private Integer count; + + @Schema(title = "金额") + private BigDecimal amount; + + @Schema(title = "每人限领张数") + private Integer perLimit; + + @Schema(title = "使用门槛;0表示无门槛") + private BigDecimal minPoint; + + private Date startTime; + + private Date endTime; + + @Schema(title = "使用类型:0->全场通用;1->指定分类;2->指定商品") + private Integer useType; + + @Schema(title = "备注") + private String note; + + @Schema(title = "发行数量") + private Integer publishCount; + + @Schema(title = "已使用数量") + private Integer useCount; + + @Schema(title = "领取数量") + private Integer receiveCount; + + @Schema(title = "可以领取的日期") + private Date enableTime; + + @Schema(title = "优惠码") + private String code; + + @Schema(title = "可领取的会员类型: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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCouponExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCouponExample.java new file mode 100644 index 000000000..9d3866954 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCouponExample.java @@ -0,0 +1,1311 @@ +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 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("type in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 values) { + addCriterion("platform in", values, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformNotIn(List 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 values) { + addCriterion("count in", values, "count"); + return (Criteria) this; + } + + public Criteria andCountNotIn(List 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 values) { + addCriterion("amount in", values, "amount"); + return (Criteria) this; + } + + public Criteria andAmountNotIn(List 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 values) { + addCriterion("per_limit in", values, "perLimit"); + return (Criteria) this; + } + + public Criteria andPerLimitNotIn(List 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 values) { + addCriterion("min_point in", values, "minPoint"); + return (Criteria) this; + } + + public Criteria andMinPointNotIn(List 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 values) { + addCriterion("start_time in", values, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotIn(List 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 values) { + addCriterion("end_time in", values, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotIn(List 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 values) { + addCriterion("use_type in", values, "useType"); + return (Criteria) this; + } + + public Criteria andUseTypeNotIn(List 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 values) { + addCriterion("note in", values, "note"); + return (Criteria) this; + } + + public Criteria andNoteNotIn(List 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 values) { + addCriterion("publish_count in", values, "publishCount"); + return (Criteria) this; + } + + public Criteria andPublishCountNotIn(List 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 values) { + addCriterion("use_count in", values, "useCount"); + return (Criteria) this; + } + + public Criteria andUseCountNotIn(List 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; + } + + public Criteria andReceiveCountLessThan(Integer value) { + addCriterion("receive_count <", value, "receiveCount"); + return (Criteria) this; + } + + public Criteria andReceiveCountLessThanOrEqualTo(Integer value) { + addCriterion("receive_count <=", value, "receiveCount"); + return (Criteria) this; + } + + public Criteria andReceiveCountIn(List values) { + addCriterion("receive_count in", values, "receiveCount"); + return (Criteria) this; + } + + public Criteria andReceiveCountNotIn(List values) { + addCriterion("receive_count not in", values, "receiveCount"); + return (Criteria) this; + } + + public Criteria andReceiveCountBetween(Integer value1, Integer value2) { + addCriterion("receive_count between", value1, value2, "receiveCount"); + return (Criteria) this; + } + + public Criteria andReceiveCountNotBetween(Integer value1, Integer value2) { + addCriterion("receive_count not between", value1, value2, "receiveCount"); + return (Criteria) this; + } + + public Criteria andEnableTimeIsNull() { + addCriterion("enable_time is null"); + return (Criteria) this; + } + + public Criteria andEnableTimeIsNotNull() { + addCriterion("enable_time is not null"); + return (Criteria) this; + } + + public Criteria andEnableTimeEqualTo(Date value) { + addCriterion("enable_time =", value, "enableTime"); + return (Criteria) this; + } + + public Criteria andEnableTimeNotEqualTo(Date value) { + addCriterion("enable_time <>", value, "enableTime"); + return (Criteria) this; + } + + public Criteria andEnableTimeGreaterThan(Date value) { + addCriterion("enable_time >", value, "enableTime"); + return (Criteria) this; + } + + public Criteria andEnableTimeGreaterThanOrEqualTo(Date value) { + addCriterion("enable_time >=", value, "enableTime"); + return (Criteria) this; + } + + public Criteria andEnableTimeLessThan(Date value) { + addCriterion("enable_time <", value, "enableTime"); + return (Criteria) this; + } + + public Criteria andEnableTimeLessThanOrEqualTo(Date value) { + addCriterion("enable_time <=", value, "enableTime"); + return (Criteria) this; + } + + public Criteria andEnableTimeIn(List values) { + addCriterion("enable_time in", values, "enableTime"); + return (Criteria) this; + } + + public Criteria andEnableTimeNotIn(List values) { + addCriterion("enable_time not in", values, "enableTime"); + return (Criteria) this; + } + + public Criteria andEnableTimeBetween(Date value1, Date value2) { + addCriterion("enable_time between", value1, value2, "enableTime"); + return (Criteria) this; + } + + public Criteria andEnableTimeNotBetween(Date value1, Date value2) { + addCriterion("enable_time not between", value1, value2, "enableTime"); + return (Criteria) this; + } + + public Criteria andCodeIsNull() { + addCriterion("code is null"); + return (Criteria) this; + } + + public Criteria andCodeIsNotNull() { + addCriterion("code is not null"); + return (Criteria) this; + } + + public Criteria andCodeEqualTo(String value) { + addCriterion("code =", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotEqualTo(String value) { + addCriterion("code <>", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeGreaterThan(String value) { + addCriterion("code >", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeGreaterThanOrEqualTo(String value) { + addCriterion("code >=", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLessThan(String value) { + addCriterion("code <", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLessThanOrEqualTo(String value) { + addCriterion("code <=", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLike(String value) { + addCriterion("code like", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotLike(String value) { + addCriterion("code not like", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeIn(List values) { + addCriterion("code in", values, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotIn(List values) { + addCriterion("code not in", values, "code"); + return (Criteria) this; + } + + public Criteria andCodeBetween(String value1, String value2) { + addCriterion("code between", value1, value2, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotBetween(String value1, String value2) { + addCriterion("code not between", value1, value2, "code"); + return (Criteria) this; + } + + public Criteria andMemberLevelIsNull() { + addCriterion("member_level is null"); + return (Criteria) this; + } + + public Criteria andMemberLevelIsNotNull() { + addCriterion("member_level is not null"); + return (Criteria) this; + } + + public Criteria andMemberLevelEqualTo(Integer value) { + addCriterion("member_level =", value, "memberLevel"); + return (Criteria) this; + } + + public Criteria andMemberLevelNotEqualTo(Integer value) { + addCriterion("member_level <>", value, "memberLevel"); + return (Criteria) this; + } + + public Criteria andMemberLevelGreaterThan(Integer value) { + addCriterion("member_level >", value, "memberLevel"); + return (Criteria) this; + } + + public Criteria andMemberLevelGreaterThanOrEqualTo(Integer value) { + addCriterion("member_level >=", value, "memberLevel"); + return (Criteria) this; + } + + public Criteria andMemberLevelLessThan(Integer value) { + addCriterion("member_level <", value, "memberLevel"); + return (Criteria) this; + } + + public Criteria andMemberLevelLessThanOrEqualTo(Integer value) { + addCriterion("member_level <=", value, "memberLevel"); + return (Criteria) this; + } + + public Criteria andMemberLevelIn(List values) { + addCriterion("member_level in", values, "memberLevel"); + return (Criteria) this; + } + + public Criteria andMemberLevelNotIn(List values) { + addCriterion("member_level not in", values, "memberLevel"); + return (Criteria) this; + } + + public Criteria andMemberLevelBetween(Integer value1, Integer value2) { + addCriterion("member_level between", value1, value2, "memberLevel"); + return (Criteria) this; + } + + public Criteria andMemberLevelNotBetween(Integer value1, Integer value2) { + addCriterion("member_level not between", value1, value2, "memberLevel"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCouponHistory.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCouponHistory.java new file mode 100644 index 000000000..422c0612d --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCouponHistory.java @@ -0,0 +1,147 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +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; + + @Schema(title = "领取人昵称") + private String memberNickname; + + @Schema(title = "获取类型:0->后台赠送;1->主动获取") + private Integer getType; + + private Date createTime; + + @Schema(title = "使用状态:0->未使用;1->已使用;2->已过期") + private Integer useStatus; + + @Schema(title = "使用时间") + private Date useTime; + + @Schema(title = "订单编号") + private Long orderId; + + @Schema(title = "订单号码") + 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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCouponHistoryExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCouponHistoryExample.java new file mode 100644 index 000000000..27bd2ffff --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCouponHistoryExample.java @@ -0,0 +1,890 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class SmsCouponHistoryExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public SmsCouponHistoryExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("coupon_id in", values, "couponId"); + return (Criteria) this; + } + + public Criteria andCouponIdNotIn(List 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 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 values) { + addCriterion("member_id in", values, "memberId"); + return (Criteria) this; + } + + public Criteria andMemberIdNotIn(List 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 andCouponCodeIsNull() { + addCriterion("coupon_code is null"); + return (Criteria) this; + } + + public Criteria andCouponCodeIsNotNull() { + addCriterion("coupon_code is not null"); + return (Criteria) this; + } + + public Criteria andCouponCodeEqualTo(String value) { + addCriterion("coupon_code =", value, "couponCode"); + return (Criteria) this; + } + + public Criteria andCouponCodeNotEqualTo(String value) { + addCriterion("coupon_code <>", value, "couponCode"); + return (Criteria) this; + } + + public Criteria andCouponCodeGreaterThan(String value) { + addCriterion("coupon_code >", value, "couponCode"); + return (Criteria) this; + } + + public Criteria andCouponCodeGreaterThanOrEqualTo(String value) { + addCriterion("coupon_code >=", value, "couponCode"); + return (Criteria) this; + } + + public Criteria andCouponCodeLessThan(String value) { + addCriterion("coupon_code <", value, "couponCode"); + return (Criteria) this; + } + + public Criteria andCouponCodeLessThanOrEqualTo(String value) { + addCriterion("coupon_code <=", value, "couponCode"); + return (Criteria) this; + } + + public Criteria andCouponCodeLike(String value) { + addCriterion("coupon_code like", value, "couponCode"); + return (Criteria) this; + } + + public Criteria andCouponCodeNotLike(String value) { + addCriterion("coupon_code not like", value, "couponCode"); + return (Criteria) this; + } + + public Criteria andCouponCodeIn(List values) { + addCriterion("coupon_code in", values, "couponCode"); + return (Criteria) this; + } + + public Criteria andCouponCodeNotIn(List values) { + addCriterion("coupon_code not in", values, "couponCode"); + return (Criteria) this; + } + + public Criteria andCouponCodeBetween(String value1, String value2) { + addCriterion("coupon_code between", value1, value2, "couponCode"); + return (Criteria) this; + } + + public Criteria andCouponCodeNotBetween(String value1, String value2) { + addCriterion("coupon_code not between", value1, value2, "couponCode"); + return (Criteria) this; + } + + public Criteria andMemberNicknameIsNull() { + addCriterion("member_nickname is null"); + return (Criteria) this; + } + + public Criteria andMemberNicknameIsNotNull() { + addCriterion("member_nickname is not null"); + return (Criteria) this; + } + + public Criteria andMemberNicknameEqualTo(String value) { + addCriterion("member_nickname =", value, "memberNickname"); + return (Criteria) this; + } + + public Criteria andMemberNicknameNotEqualTo(String value) { + addCriterion("member_nickname <>", value, "memberNickname"); + return (Criteria) this; + } + + public Criteria andMemberNicknameGreaterThan(String value) { + addCriterion("member_nickname >", value, "memberNickname"); + return (Criteria) this; + } + + public Criteria andMemberNicknameGreaterThanOrEqualTo(String value) { + addCriterion("member_nickname >=", value, "memberNickname"); + return (Criteria) this; + } + + public Criteria andMemberNicknameLessThan(String value) { + addCriterion("member_nickname <", value, "memberNickname"); + return (Criteria) this; + } + + public Criteria andMemberNicknameLessThanOrEqualTo(String value) { + addCriterion("member_nickname <=", value, "memberNickname"); + return (Criteria) this; + } + + public Criteria andMemberNicknameLike(String value) { + addCriterion("member_nickname like", value, "memberNickname"); + return (Criteria) this; + } + + public Criteria andMemberNicknameNotLike(String value) { + addCriterion("member_nickname not like", value, "memberNickname"); + return (Criteria) this; + } + + public Criteria andMemberNicknameIn(List values) { + addCriterion("member_nickname in", values, "memberNickname"); + return (Criteria) this; + } + + public Criteria andMemberNicknameNotIn(List values) { + addCriterion("member_nickname not in", values, "memberNickname"); + return (Criteria) this; + } + + public Criteria andMemberNicknameBetween(String value1, String value2) { + addCriterion("member_nickname between", value1, value2, "memberNickname"); + return (Criteria) this; + } + + public Criteria andMemberNicknameNotBetween(String value1, String value2) { + addCriterion("member_nickname not between", value1, value2, "memberNickname"); + return (Criteria) this; + } + + public Criteria andGetTypeIsNull() { + addCriterion("get_type is null"); + return (Criteria) this; + } + + public Criteria andGetTypeIsNotNull() { + addCriterion("get_type is not null"); + return (Criteria) this; + } + + public Criteria andGetTypeEqualTo(Integer value) { + addCriterion("get_type =", value, "getType"); + return (Criteria) this; + } + + public Criteria andGetTypeNotEqualTo(Integer value) { + addCriterion("get_type <>", value, "getType"); + return (Criteria) this; + } + + public Criteria andGetTypeGreaterThan(Integer value) { + addCriterion("get_type >", value, "getType"); + return (Criteria) this; + } + + public Criteria andGetTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("get_type >=", value, "getType"); + return (Criteria) this; + } + + public Criteria andGetTypeLessThan(Integer value) { + addCriterion("get_type <", value, "getType"); + return (Criteria) this; + } + + public Criteria andGetTypeLessThanOrEqualTo(Integer value) { + addCriterion("get_type <=", value, "getType"); + return (Criteria) this; + } + + public Criteria andGetTypeIn(List values) { + addCriterion("get_type in", values, "getType"); + return (Criteria) this; + } + + public Criteria andGetTypeNotIn(List values) { + addCriterion("get_type not in", values, "getType"); + return (Criteria) this; + } + + public Criteria andGetTypeBetween(Integer value1, Integer value2) { + addCriterion("get_type between", value1, value2, "getType"); + return (Criteria) this; + } + + public Criteria andGetTypeNotBetween(Integer value1, Integer value2) { + addCriterion("get_type not between", value1, value2, "getType"); + 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 andUseStatusIsNull() { + addCriterion("use_status is null"); + return (Criteria) this; + } + + public Criteria andUseStatusIsNotNull() { + addCriterion("use_status is not null"); + return (Criteria) this; + } + + public Criteria andUseStatusEqualTo(Integer value) { + addCriterion("use_status =", value, "useStatus"); + return (Criteria) this; + } + + public Criteria andUseStatusNotEqualTo(Integer value) { + addCriterion("use_status <>", value, "useStatus"); + return (Criteria) this; + } + + public Criteria andUseStatusGreaterThan(Integer value) { + addCriterion("use_status >", value, "useStatus"); + return (Criteria) this; + } + + public Criteria andUseStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("use_status >=", value, "useStatus"); + return (Criteria) this; + } + + public Criteria andUseStatusLessThan(Integer value) { + addCriterion("use_status <", value, "useStatus"); + return (Criteria) this; + } + + public Criteria andUseStatusLessThanOrEqualTo(Integer value) { + addCriterion("use_status <=", value, "useStatus"); + return (Criteria) this; + } + + public Criteria andUseStatusIn(List values) { + addCriterion("use_status in", values, "useStatus"); + return (Criteria) this; + } + + public Criteria andUseStatusNotIn(List values) { + addCriterion("use_status not in", values, "useStatus"); + return (Criteria) this; + } + + public Criteria andUseStatusBetween(Integer value1, Integer value2) { + addCriterion("use_status between", value1, value2, "useStatus"); + return (Criteria) this; + } + + public Criteria andUseStatusNotBetween(Integer value1, Integer value2) { + addCriterion("use_status not between", value1, value2, "useStatus"); + return (Criteria) this; + } + + public Criteria andUseTimeIsNull() { + addCriterion("use_time is null"); + return (Criteria) this; + } + + public Criteria andUseTimeIsNotNull() { + addCriterion("use_time is not null"); + return (Criteria) this; + } + + public Criteria andUseTimeEqualTo(Date value) { + addCriterion("use_time =", value, "useTime"); + return (Criteria) this; + } + + public Criteria andUseTimeNotEqualTo(Date value) { + addCriterion("use_time <>", value, "useTime"); + return (Criteria) this; + } + + public Criteria andUseTimeGreaterThan(Date value) { + addCriterion("use_time >", value, "useTime"); + return (Criteria) this; + } + + public Criteria andUseTimeGreaterThanOrEqualTo(Date value) { + addCriterion("use_time >=", value, "useTime"); + return (Criteria) this; + } + + public Criteria andUseTimeLessThan(Date value) { + addCriterion("use_time <", value, "useTime"); + return (Criteria) this; + } + + public Criteria andUseTimeLessThanOrEqualTo(Date value) { + addCriterion("use_time <=", value, "useTime"); + return (Criteria) this; + } + + public Criteria andUseTimeIn(List values) { + addCriterion("use_time in", values, "useTime"); + return (Criteria) this; + } + + public Criteria andUseTimeNotIn(List values) { + addCriterion("use_time not in", values, "useTime"); + return (Criteria) this; + } + + public Criteria andUseTimeBetween(Date value1, Date value2) { + addCriterion("use_time between", value1, value2, "useTime"); + return (Criteria) this; + } + + public Criteria andUseTimeNotBetween(Date value1, Date value2) { + addCriterion("use_time not between", value1, value2, "useTime"); + return (Criteria) this; + } + + public Criteria andOrderIdIsNull() { + addCriterion("order_id is null"); + return (Criteria) this; + } + + public Criteria andOrderIdIsNotNull() { + addCriterion("order_id is not null"); + return (Criteria) this; + } + + public Criteria andOrderIdEqualTo(Long value) { + addCriterion("order_id =", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotEqualTo(Long value) { + addCriterion("order_id <>", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdGreaterThan(Long value) { + addCriterion("order_id >", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdGreaterThanOrEqualTo(Long value) { + addCriterion("order_id >=", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdLessThan(Long value) { + addCriterion("order_id <", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdLessThanOrEqualTo(Long value) { + addCriterion("order_id <=", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdIn(List values) { + addCriterion("order_id in", values, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotIn(List values) { + addCriterion("order_id not in", values, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdBetween(Long value1, Long value2) { + addCriterion("order_id between", value1, value2, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotBetween(Long value1, Long value2) { + addCriterion("order_id not between", value1, value2, "orderId"); + 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 values) { + addCriterion("order_sn in", values, "orderSn"); + return (Criteria) this; + } + + public Criteria andOrderSnNotIn(List 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 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCouponProductCategoryRelation.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCouponProductCategoryRelation.java new file mode 100644 index 000000000..55844f429 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCouponProductCategoryRelation.java @@ -0,0 +1,76 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class SmsCouponProductCategoryRelation implements Serializable { + private Long id; + + private Long couponId; + + private Long productCategoryId; + + @Schema(title = "产品分类名称") + private String productCategoryName; + + @Schema(title = "父分类名称") + 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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCouponProductCategoryRelationExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCouponProductCategoryRelationExample.java new file mode 100644 index 000000000..76fe8dfd6 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCouponProductCategoryRelationExample.java @@ -0,0 +1,519 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class SmsCouponProductCategoryRelationExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public SmsCouponProductCategoryRelationExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("coupon_id in", values, "couponId"); + return (Criteria) this; + } + + public Criteria andCouponIdNotIn(List 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 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 values) { + addCriterion("product_category_id in", values, "productCategoryId"); + return (Criteria) this; + } + + public Criteria andProductCategoryIdNotIn(List 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 andProductCategoryNameIsNull() { + addCriterion("product_category_name is null"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameIsNotNull() { + addCriterion("product_category_name is not null"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameEqualTo(String value) { + addCriterion("product_category_name =", value, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameNotEqualTo(String value) { + addCriterion("product_category_name <>", value, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameGreaterThan(String value) { + addCriterion("product_category_name >", value, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameGreaterThanOrEqualTo(String value) { + addCriterion("product_category_name >=", value, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameLessThan(String value) { + addCriterion("product_category_name <", value, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameLessThanOrEqualTo(String value) { + addCriterion("product_category_name <=", value, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameLike(String value) { + addCriterion("product_category_name like", value, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameNotLike(String value) { + addCriterion("product_category_name not like", value, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameIn(List values) { + addCriterion("product_category_name in", values, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameNotIn(List values) { + addCriterion("product_category_name not in", values, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameBetween(String value1, String value2) { + addCriterion("product_category_name between", value1, value2, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andProductCategoryNameNotBetween(String value1, String value2) { + addCriterion("product_category_name not between", value1, value2, "productCategoryName"); + return (Criteria) this; + } + + public Criteria andParentCategoryNameIsNull() { + addCriterion("parent_category_name is null"); + return (Criteria) this; + } + + public Criteria andParentCategoryNameIsNotNull() { + addCriterion("parent_category_name is not null"); + return (Criteria) this; + } + + public Criteria andParentCategoryNameEqualTo(String value) { + addCriterion("parent_category_name =", value, "parentCategoryName"); + return (Criteria) this; + } + + public Criteria andParentCategoryNameNotEqualTo(String value) { + addCriterion("parent_category_name <>", value, "parentCategoryName"); + return (Criteria) this; + } + + public Criteria andParentCategoryNameGreaterThan(String value) { + addCriterion("parent_category_name >", value, "parentCategoryName"); + return (Criteria) this; + } + + public Criteria andParentCategoryNameGreaterThanOrEqualTo(String value) { + addCriterion("parent_category_name >=", value, "parentCategoryName"); + return (Criteria) this; + } + + public Criteria andParentCategoryNameLessThan(String value) { + addCriterion("parent_category_name <", value, "parentCategoryName"); + return (Criteria) this; + } + + public Criteria andParentCategoryNameLessThanOrEqualTo(String value) { + addCriterion("parent_category_name <=", value, "parentCategoryName"); + return (Criteria) this; + } + + public Criteria andParentCategoryNameLike(String value) { + addCriterion("parent_category_name like", value, "parentCategoryName"); + return (Criteria) this; + } + + public Criteria andParentCategoryNameNotLike(String value) { + addCriterion("parent_category_name not like", value, "parentCategoryName"); + return (Criteria) this; + } + + public Criteria andParentCategoryNameIn(List values) { + addCriterion("parent_category_name in", values, "parentCategoryName"); + return (Criteria) this; + } + + public Criteria andParentCategoryNameNotIn(List values) { + addCriterion("parent_category_name not in", values, "parentCategoryName"); + return (Criteria) this; + } + + public Criteria andParentCategoryNameBetween(String value1, String value2) { + addCriterion("parent_category_name between", value1, value2, "parentCategoryName"); + return (Criteria) this; + } + + public Criteria andParentCategoryNameNotBetween(String value1, String value2) { + addCriterion("parent_category_name not between", value1, value2, "parentCategoryName"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCouponProductRelation.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCouponProductRelation.java new file mode 100644 index 000000000..3accac860 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCouponProductRelation.java @@ -0,0 +1,76 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class SmsCouponProductRelation implements Serializable { + private Long id; + + private Long couponId; + + private Long productId; + + @Schema(title = "商品名称") + private String productName; + + @Schema(title = "商品编码") + private String productSn; + + 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 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 String getProductSn() { + return productSn; + } + + public void setProductSn(String productSn) { + this.productSn = productSn; + } + + @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(", productId=").append(productId); + sb.append(", productName=").append(productName); + sb.append(", productSn=").append(productSn); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCouponProductRelationExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCouponProductRelationExample.java new file mode 100644 index 000000000..ea39d00a9 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsCouponProductRelationExample.java @@ -0,0 +1,519 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class SmsCouponProductRelationExample { + protected String orderByClause; + + protected boolean distinct; + + protected List 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("coupon_id in", values, "couponId"); + return (Criteria) this; + } + + public Criteria andCouponIdNotIn(List 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 values) { + addCriterion("product_id in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotIn(List 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 values) { + addCriterion("product_name in", values, "productName"); + return (Criteria) this; + } + + public Criteria andProductNameNotIn(List 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 values) { + addCriterion("product_sn in", values, "productSn"); + return (Criteria) this; + } + + public Criteria andProductSnNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotion.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotion.java new file mode 100644 index 000000000..62840da96 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotion.java @@ -0,0 +1,91 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.util.Date; + +public class SmsFlashPromotion implements Serializable { + private Long id; + + @Schema(title = "秒杀时间段名称") + private String title; + + @Schema(title = "开始日期") + private Date startDate; + + @Schema(title = "结束日期") + private Date endDate; + + @Schema(title = "上下线状态") + private Integer status; + + @Schema(title = "创建时间") + private Date createTime; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public Date getStartDate() { + return startDate; + } + + public void setStartDate(Date startDate) { + this.startDate = startDate; + } + + public Date getEndDate() { + return endDate; + } + + public void setEndDate(Date endDate) { + this.endDate = endDate; + } + + 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(", title=").append(title); + sb.append(", startDate=").append(startDate); + sb.append(", endDate=").append(endDate); + sb.append(", status=").append(status); + sb.append(", createTime=").append(createTime); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionExample.java new file mode 100644 index 000000000..d377d4e58 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionExample.java @@ -0,0 +1,597 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.Iterator; +import java.util.List; + +public class SmsFlashPromotionExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public SmsFlashPromotionExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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)); + } + + protected void addCriterionForJDBCDate(String condition, Date value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + addCriterion(condition, new java.sql.Date(value.getTime()), property); + } + + protected void addCriterionForJDBCDate(String condition, List values, String property) { + if (values == null || values.size() == 0) { + throw new RuntimeException("Value list for " + property + " cannot be null or empty"); + } + List dateList = new ArrayList<>(); + Iterator iter = values.iterator(); + while (iter.hasNext()) { + dateList.add(new java.sql.Date(iter.next().getTime())); + } + addCriterion(condition, dateList, property); + } + + protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property); + } + + 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 andTitleIsNull() { + addCriterion("title is null"); + return (Criteria) this; + } + + public Criteria andTitleIsNotNull() { + addCriterion("title is not null"); + return (Criteria) this; + } + + public Criteria andTitleEqualTo(String value) { + addCriterion("title =", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotEqualTo(String value) { + addCriterion("title <>", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleGreaterThan(String value) { + addCriterion("title >", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleGreaterThanOrEqualTo(String value) { + addCriterion("title >=", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLessThan(String value) { + addCriterion("title <", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLessThanOrEqualTo(String value) { + addCriterion("title <=", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLike(String value) { + addCriterion("title like", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotLike(String value) { + addCriterion("title not like", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleIn(List values) { + addCriterion("title in", values, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotIn(List values) { + addCriterion("title not in", values, "title"); + return (Criteria) this; + } + + public Criteria andTitleBetween(String value1, String value2) { + addCriterion("title between", value1, value2, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotBetween(String value1, String value2) { + addCriterion("title not between", value1, value2, "title"); + return (Criteria) this; + } + + public Criteria andStartDateIsNull() { + addCriterion("start_date is null"); + return (Criteria) this; + } + + public Criteria andStartDateIsNotNull() { + addCriterion("start_date is not null"); + return (Criteria) this; + } + + public Criteria andStartDateEqualTo(Date value) { + addCriterionForJDBCDate("start_date =", value, "startDate"); + return (Criteria) this; + } + + public Criteria andStartDateNotEqualTo(Date value) { + addCriterionForJDBCDate("start_date <>", value, "startDate"); + return (Criteria) this; + } + + public Criteria andStartDateGreaterThan(Date value) { + addCriterionForJDBCDate("start_date >", value, "startDate"); + return (Criteria) this; + } + + public Criteria andStartDateGreaterThanOrEqualTo(Date value) { + addCriterionForJDBCDate("start_date >=", value, "startDate"); + return (Criteria) this; + } + + public Criteria andStartDateLessThan(Date value) { + addCriterionForJDBCDate("start_date <", value, "startDate"); + return (Criteria) this; + } + + public Criteria andStartDateLessThanOrEqualTo(Date value) { + addCriterionForJDBCDate("start_date <=", value, "startDate"); + return (Criteria) this; + } + + public Criteria andStartDateIn(List values) { + addCriterionForJDBCDate("start_date in", values, "startDate"); + return (Criteria) this; + } + + public Criteria andStartDateNotIn(List values) { + addCriterionForJDBCDate("start_date not in", values, "startDate"); + return (Criteria) this; + } + + public Criteria andStartDateBetween(Date value1, Date value2) { + addCriterionForJDBCDate("start_date between", value1, value2, "startDate"); + return (Criteria) this; + } + + public Criteria andStartDateNotBetween(Date value1, Date value2) { + addCriterionForJDBCDate("start_date not between", value1, value2, "startDate"); + return (Criteria) this; + } + + public Criteria andEndDateIsNull() { + addCriterion("end_date is null"); + return (Criteria) this; + } + + public Criteria andEndDateIsNotNull() { + addCriterion("end_date is not null"); + return (Criteria) this; + } + + public Criteria andEndDateEqualTo(Date value) { + addCriterionForJDBCDate("end_date =", value, "endDate"); + return (Criteria) this; + } + + public Criteria andEndDateNotEqualTo(Date value) { + addCriterionForJDBCDate("end_date <>", value, "endDate"); + return (Criteria) this; + } + + public Criteria andEndDateGreaterThan(Date value) { + addCriterionForJDBCDate("end_date >", value, "endDate"); + return (Criteria) this; + } + + public Criteria andEndDateGreaterThanOrEqualTo(Date value) { + addCriterionForJDBCDate("end_date >=", value, "endDate"); + return (Criteria) this; + } + + public Criteria andEndDateLessThan(Date value) { + addCriterionForJDBCDate("end_date <", value, "endDate"); + return (Criteria) this; + } + + public Criteria andEndDateLessThanOrEqualTo(Date value) { + addCriterionForJDBCDate("end_date <=", value, "endDate"); + return (Criteria) this; + } + + public Criteria andEndDateIn(List values) { + addCriterionForJDBCDate("end_date in", values, "endDate"); + return (Criteria) this; + } + + public Criteria andEndDateNotIn(List values) { + addCriterionForJDBCDate("end_date not in", values, "endDate"); + return (Criteria) this; + } + + public Criteria andEndDateBetween(Date value1, Date value2) { + addCriterionForJDBCDate("end_date between", value1, value2, "endDate"); + return (Criteria) this; + } + + public Criteria andEndDateNotBetween(Date value1, Date value2) { + addCriterionForJDBCDate("end_date not between", value1, value2, "endDate"); + 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 values) { + addCriterion("status in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionLog.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionLog.java new file mode 100644 index 000000000..023d0c240 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionLog.java @@ -0,0 +1,98 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +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; + + @Schema(title = "会员订阅时间") + 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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionLogExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionLogExample.java new file mode 100644 index 000000000..55058d32b --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionLogExample.java @@ -0,0 +1,640 @@ +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 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("member_id in", values, "memberId"); + return (Criteria) this; + } + + public Criteria andMemberIdNotIn(List 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 values) { + addCriterion("product_id in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotIn(List 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 values) { + addCriterion("member_phone in", values, "memberPhone"); + return (Criteria) this; + } + + public Criteria andMemberPhoneNotIn(List 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 values) { + addCriterion("product_name in", values, "productName"); + return (Criteria) this; + } + + public Criteria andProductNameNotIn(List 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 values) { + addCriterion("subscribe_time in", values, "subscribeTime"); + return (Criteria) this; + } + + public Criteria andSubscribeTimeNotIn(List 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 values) { + addCriterion("send_time in", values, "sendTime"); + return (Criteria) this; + } + + public Criteria andSendTimeNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionProductRelation.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionProductRelation.java new file mode 100644 index 000000000..dfa010b53 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionProductRelation.java @@ -0,0 +1,114 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.math.BigDecimal; + +public class SmsFlashPromotionProductRelation implements Serializable { + @Schema(title = "编号") + private Long id; + + private Long flashPromotionId; + + @Schema(title = "编号") + private Long flashPromotionSessionId; + + private Long productId; + + @Schema(title = "限时购价格") + private BigDecimal flashPromotionPrice; + + @Schema(title = "限时购数量") + private Integer flashPromotionCount; + + @Schema(title = "每人限购数量") + private Integer flashPromotionLimit; + + @Schema(title = "排序") + private Integer sort; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getFlashPromotionId() { + return flashPromotionId; + } + + public void setFlashPromotionId(Long flashPromotionId) { + this.flashPromotionId = flashPromotionId; + } + + public Long getFlashPromotionSessionId() { + return flashPromotionSessionId; + } + + public void setFlashPromotionSessionId(Long flashPromotionSessionId) { + this.flashPromotionSessionId = flashPromotionSessionId; + } + + public Long getProductId() { + return productId; + } + + public void setProductId(Long productId) { + this.productId = productId; + } + + public BigDecimal getFlashPromotionPrice() { + return flashPromotionPrice; + } + + public void setFlashPromotionPrice(BigDecimal flashPromotionPrice) { + this.flashPromotionPrice = flashPromotionPrice; + } + + public Integer getFlashPromotionCount() { + return flashPromotionCount; + } + + public void setFlashPromotionCount(Integer flashPromotionCount) { + this.flashPromotionCount = flashPromotionCount; + } + + public Integer getFlashPromotionLimit() { + return flashPromotionLimit; + } + + public void setFlashPromotionLimit(Integer flashPromotionLimit) { + this.flashPromotionLimit = flashPromotionLimit; + } + + 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(", flashPromotionId=").append(flashPromotionId); + sb.append(", flashPromotionSessionId=").append(flashPromotionSessionId); + sb.append(", productId=").append(productId); + sb.append(", flashPromotionPrice=").append(flashPromotionPrice); + sb.append(", flashPromotionCount=").append(flashPromotionCount); + sb.append(", flashPromotionLimit=").append(flashPromotionLimit); + sb.append(", sort=").append(sort); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionProductRelationExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionProductRelationExample.java new file mode 100644 index 000000000..41c6f49c8 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionProductRelationExample.java @@ -0,0 +1,680 @@ +package com.macro.mall.model; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +public class SmsFlashPromotionProductRelationExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public SmsFlashPromotionProductRelationExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 andFlashPromotionIdIsNull() { + addCriterion("flash_promotion_id is null"); + return (Criteria) this; + } + + public Criteria andFlashPromotionIdIsNotNull() { + addCriterion("flash_promotion_id is not null"); + return (Criteria) this; + } + + public Criteria andFlashPromotionIdEqualTo(Long value) { + addCriterion("flash_promotion_id =", value, "flashPromotionId"); + return (Criteria) this; + } + + public Criteria andFlashPromotionIdNotEqualTo(Long value) { + addCriterion("flash_promotion_id <>", value, "flashPromotionId"); + return (Criteria) this; + } + + public Criteria andFlashPromotionIdGreaterThan(Long value) { + addCriterion("flash_promotion_id >", value, "flashPromotionId"); + return (Criteria) this; + } + + public Criteria andFlashPromotionIdGreaterThanOrEqualTo(Long value) { + addCriterion("flash_promotion_id >=", value, "flashPromotionId"); + return (Criteria) this; + } + + public Criteria andFlashPromotionIdLessThan(Long value) { + addCriterion("flash_promotion_id <", value, "flashPromotionId"); + return (Criteria) this; + } + + public Criteria andFlashPromotionIdLessThanOrEqualTo(Long value) { + addCriterion("flash_promotion_id <=", value, "flashPromotionId"); + return (Criteria) this; + } + + public Criteria andFlashPromotionIdIn(List values) { + addCriterion("flash_promotion_id in", values, "flashPromotionId"); + return (Criteria) this; + } + + public Criteria andFlashPromotionIdNotIn(List values) { + addCriterion("flash_promotion_id not in", values, "flashPromotionId"); + return (Criteria) this; + } + + public Criteria andFlashPromotionIdBetween(Long value1, Long value2) { + addCriterion("flash_promotion_id between", value1, value2, "flashPromotionId"); + return (Criteria) this; + } + + public Criteria andFlashPromotionIdNotBetween(Long value1, Long value2) { + addCriterion("flash_promotion_id not between", value1, value2, "flashPromotionId"); + return (Criteria) this; + } + + public Criteria andFlashPromotionSessionIdIsNull() { + addCriterion("flash_promotion_session_id is null"); + return (Criteria) this; + } + + public Criteria andFlashPromotionSessionIdIsNotNull() { + addCriterion("flash_promotion_session_id is not null"); + return (Criteria) this; + } + + public Criteria andFlashPromotionSessionIdEqualTo(Long value) { + addCriterion("flash_promotion_session_id =", value, "flashPromotionSessionId"); + return (Criteria) this; + } + + public Criteria andFlashPromotionSessionIdNotEqualTo(Long value) { + addCriterion("flash_promotion_session_id <>", value, "flashPromotionSessionId"); + return (Criteria) this; + } + + public Criteria andFlashPromotionSessionIdGreaterThan(Long value) { + addCriterion("flash_promotion_session_id >", value, "flashPromotionSessionId"); + return (Criteria) this; + } + + public Criteria andFlashPromotionSessionIdGreaterThanOrEqualTo(Long value) { + addCriterion("flash_promotion_session_id >=", value, "flashPromotionSessionId"); + return (Criteria) this; + } + + public Criteria andFlashPromotionSessionIdLessThan(Long value) { + addCriterion("flash_promotion_session_id <", value, "flashPromotionSessionId"); + return (Criteria) this; + } + + public Criteria andFlashPromotionSessionIdLessThanOrEqualTo(Long value) { + addCriterion("flash_promotion_session_id <=", value, "flashPromotionSessionId"); + return (Criteria) this; + } + + public Criteria andFlashPromotionSessionIdIn(List values) { + addCriterion("flash_promotion_session_id in", values, "flashPromotionSessionId"); + return (Criteria) this; + } + + public Criteria andFlashPromotionSessionIdNotIn(List values) { + addCriterion("flash_promotion_session_id not in", values, "flashPromotionSessionId"); + return (Criteria) this; + } + + public Criteria andFlashPromotionSessionIdBetween(Long value1, Long value2) { + addCriterion("flash_promotion_session_id between", value1, value2, "flashPromotionSessionId"); + return (Criteria) this; + } + + public Criteria andFlashPromotionSessionIdNotBetween(Long value1, Long value2) { + addCriterion("flash_promotion_session_id not between", value1, value2, "flashPromotionSessionId"); + 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 values) { + addCriterion("product_id in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotIn(List 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 andFlashPromotionPriceIsNull() { + addCriterion("flash_promotion_price is null"); + return (Criteria) this; + } + + public Criteria andFlashPromotionPriceIsNotNull() { + addCriterion("flash_promotion_price is not null"); + return (Criteria) this; + } + + public Criteria andFlashPromotionPriceEqualTo(BigDecimal value) { + addCriterion("flash_promotion_price =", value, "flashPromotionPrice"); + return (Criteria) this; + } + + public Criteria andFlashPromotionPriceNotEqualTo(BigDecimal value) { + addCriterion("flash_promotion_price <>", value, "flashPromotionPrice"); + return (Criteria) this; + } + + public Criteria andFlashPromotionPriceGreaterThan(BigDecimal value) { + addCriterion("flash_promotion_price >", value, "flashPromotionPrice"); + return (Criteria) this; + } + + public Criteria andFlashPromotionPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("flash_promotion_price >=", value, "flashPromotionPrice"); + return (Criteria) this; + } + + public Criteria andFlashPromotionPriceLessThan(BigDecimal value) { + addCriterion("flash_promotion_price <", value, "flashPromotionPrice"); + return (Criteria) this; + } + + public Criteria andFlashPromotionPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("flash_promotion_price <=", value, "flashPromotionPrice"); + return (Criteria) this; + } + + public Criteria andFlashPromotionPriceIn(List values) { + addCriterion("flash_promotion_price in", values, "flashPromotionPrice"); + return (Criteria) this; + } + + public Criteria andFlashPromotionPriceNotIn(List values) { + addCriterion("flash_promotion_price not in", values, "flashPromotionPrice"); + return (Criteria) this; + } + + public Criteria andFlashPromotionPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("flash_promotion_price between", value1, value2, "flashPromotionPrice"); + return (Criteria) this; + } + + public Criteria andFlashPromotionPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("flash_promotion_price not between", value1, value2, "flashPromotionPrice"); + return (Criteria) this; + } + + public Criteria andFlashPromotionCountIsNull() { + addCriterion("flash_promotion_count is null"); + return (Criteria) this; + } + + public Criteria andFlashPromotionCountIsNotNull() { + addCriterion("flash_promotion_count is not null"); + return (Criteria) this; + } + + public Criteria andFlashPromotionCountEqualTo(Integer value) { + addCriterion("flash_promotion_count =", value, "flashPromotionCount"); + return (Criteria) this; + } + + public Criteria andFlashPromotionCountNotEqualTo(Integer value) { + addCriterion("flash_promotion_count <>", value, "flashPromotionCount"); + return (Criteria) this; + } + + public Criteria andFlashPromotionCountGreaterThan(Integer value) { + addCriterion("flash_promotion_count >", value, "flashPromotionCount"); + return (Criteria) this; + } + + public Criteria andFlashPromotionCountGreaterThanOrEqualTo(Integer value) { + addCriterion("flash_promotion_count >=", value, "flashPromotionCount"); + return (Criteria) this; + } + + public Criteria andFlashPromotionCountLessThan(Integer value) { + addCriterion("flash_promotion_count <", value, "flashPromotionCount"); + return (Criteria) this; + } + + public Criteria andFlashPromotionCountLessThanOrEqualTo(Integer value) { + addCriterion("flash_promotion_count <=", value, "flashPromotionCount"); + return (Criteria) this; + } + + public Criteria andFlashPromotionCountIn(List values) { + addCriterion("flash_promotion_count in", values, "flashPromotionCount"); + return (Criteria) this; + } + + public Criteria andFlashPromotionCountNotIn(List values) { + addCriterion("flash_promotion_count not in", values, "flashPromotionCount"); + return (Criteria) this; + } + + public Criteria andFlashPromotionCountBetween(Integer value1, Integer value2) { + addCriterion("flash_promotion_count between", value1, value2, "flashPromotionCount"); + return (Criteria) this; + } + + public Criteria andFlashPromotionCountNotBetween(Integer value1, Integer value2) { + addCriterion("flash_promotion_count not between", value1, value2, "flashPromotionCount"); + return (Criteria) this; + } + + public Criteria andFlashPromotionLimitIsNull() { + addCriterion("flash_promotion_limit is null"); + return (Criteria) this; + } + + public Criteria andFlashPromotionLimitIsNotNull() { + addCriterion("flash_promotion_limit is not null"); + return (Criteria) this; + } + + public Criteria andFlashPromotionLimitEqualTo(Integer value) { + addCriterion("flash_promotion_limit =", value, "flashPromotionLimit"); + return (Criteria) this; + } + + public Criteria andFlashPromotionLimitNotEqualTo(Integer value) { + addCriterion("flash_promotion_limit <>", value, "flashPromotionLimit"); + return (Criteria) this; + } + + public Criteria andFlashPromotionLimitGreaterThan(Integer value) { + addCriterion("flash_promotion_limit >", value, "flashPromotionLimit"); + return (Criteria) this; + } + + public Criteria andFlashPromotionLimitGreaterThanOrEqualTo(Integer value) { + addCriterion("flash_promotion_limit >=", value, "flashPromotionLimit"); + return (Criteria) this; + } + + public Criteria andFlashPromotionLimitLessThan(Integer value) { + addCriterion("flash_promotion_limit <", value, "flashPromotionLimit"); + return (Criteria) this; + } + + public Criteria andFlashPromotionLimitLessThanOrEqualTo(Integer value) { + addCriterion("flash_promotion_limit <=", value, "flashPromotionLimit"); + return (Criteria) this; + } + + public Criteria andFlashPromotionLimitIn(List values) { + addCriterion("flash_promotion_limit in", values, "flashPromotionLimit"); + return (Criteria) this; + } + + public Criteria andFlashPromotionLimitNotIn(List values) { + addCriterion("flash_promotion_limit not in", values, "flashPromotionLimit"); + return (Criteria) this; + } + + public Criteria andFlashPromotionLimitBetween(Integer value1, Integer value2) { + addCriterion("flash_promotion_limit between", value1, value2, "flashPromotionLimit"); + return (Criteria) this; + } + + public Criteria andFlashPromotionLimitNotBetween(Integer value1, Integer value2) { + addCriterion("flash_promotion_limit not between", value1, value2, "flashPromotionLimit"); + 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionSession.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionSession.java new file mode 100644 index 000000000..e40d2ecdc --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionSession.java @@ -0,0 +1,92 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.util.Date; + +public class SmsFlashPromotionSession implements Serializable { + @Schema(title = "编号") + private Long id; + + @Schema(title = "场次名称") + private String name; + + @Schema(title = "每日开始时间") + private Date startTime; + + @Schema(title = "每日结束时间") + private Date endTime; + + @Schema(title = "启用状态:0->不启用;1->启用") + private Integer status; + + @Schema(title = "创建时间") + 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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionSessionExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionSessionExample.java new file mode 100644 index 000000000..f3e4aa6e8 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsFlashPromotionSessionExample.java @@ -0,0 +1,597 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.Iterator; +import java.util.List; + +public class SmsFlashPromotionSessionExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public SmsFlashPromotionSessionExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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)); + } + + protected void addCriterionForJDBCTime(String condition, Date value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + addCriterion(condition, new java.sql.Time(value.getTime()), property); + } + + protected void addCriterionForJDBCTime(String condition, List values, String property) { + if (values == null || values.size() == 0) { + throw new RuntimeException("Value list for " + property + " cannot be null or empty"); + } + List timeList = new ArrayList<>(); + Iterator iter = values.iterator(); + while (iter.hasNext()) { + timeList.add(new java.sql.Time(iter.next().getTime())); + } + addCriterion(condition, timeList, property); + } + + protected void addCriterionForJDBCTime(String condition, Date value1, Date value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + addCriterion(condition, new java.sql.Time(value1.getTime()), new java.sql.Time(value2.getTime()), property); + } + + 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 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) { + addCriterionForJDBCTime("start_time =", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotEqualTo(Date value) { + addCriterionForJDBCTime("start_time <>", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeGreaterThan(Date value) { + addCriterionForJDBCTime("start_time >", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeGreaterThanOrEqualTo(Date value) { + addCriterionForJDBCTime("start_time >=", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeLessThan(Date value) { + addCriterionForJDBCTime("start_time <", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeLessThanOrEqualTo(Date value) { + addCriterionForJDBCTime("start_time <=", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeIn(List values) { + addCriterionForJDBCTime("start_time in", values, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotIn(List values) { + addCriterionForJDBCTime("start_time not in", values, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeBetween(Date value1, Date value2) { + addCriterionForJDBCTime("start_time between", value1, value2, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotBetween(Date value1, Date value2) { + addCriterionForJDBCTime("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) { + addCriterionForJDBCTime("end_time =", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotEqualTo(Date value) { + addCriterionForJDBCTime("end_time <>", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeGreaterThan(Date value) { + addCriterionForJDBCTime("end_time >", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeGreaterThanOrEqualTo(Date value) { + addCriterionForJDBCTime("end_time >=", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeLessThan(Date value) { + addCriterionForJDBCTime("end_time <", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeLessThanOrEqualTo(Date value) { + addCriterionForJDBCTime("end_time <=", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeIn(List values) { + addCriterionForJDBCTime("end_time in", values, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotIn(List values) { + addCriterionForJDBCTime("end_time not in", values, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeBetween(Date value1, Date value2) { + addCriterionForJDBCTime("end_time between", value1, value2, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotBetween(Date value1, Date value2) { + addCriterionForJDBCTime("end_time not between", value1, value2, "endTime"); + 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 values) { + addCriterion("status in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeAdvertise.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeAdvertise.java new file mode 100644 index 000000000..a0bb5874f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeAdvertise.java @@ -0,0 +1,159 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.util.Date; + +public class SmsHomeAdvertise implements Serializable { + private Long id; + + private String name; + + @Schema(title = "轮播位置:0->PC首页轮播;1->app首页轮播") + private Integer type; + + private String pic; + + private Date startTime; + + private Date endTime; + + @Schema(title = "上下线状态:0->下线;1->上线") + private Integer status; + + @Schema(title = "点击数") + private Integer clickCount; + + @Schema(title = "下单数") + private Integer orderCount; + + @Schema(title = "链接地址") + private String url; + + @Schema(title = "备注") + private String note; + + @Schema(title = "排序") + private Integer sort; + + 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 getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public String getPic() { + return pic; + } + + public void setPic(String pic) { + this.pic = pic; + } + + 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 Integer getClickCount() { + return clickCount; + } + + public void setClickCount(Integer clickCount) { + this.clickCount = clickCount; + } + + public Integer getOrderCount() { + return orderCount; + } + + public void setOrderCount(Integer orderCount) { + this.orderCount = orderCount; + } + + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public String getNote() { + return note; + } + + public void setNote(String note) { + this.note = note; + } + + 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(", name=").append(name); + sb.append(", type=").append(type); + sb.append(", pic=").append(pic); + sb.append(", startTime=").append(startTime); + sb.append(", endTime=").append(endTime); + sb.append(", status=").append(status); + sb.append(", clickCount=").append(clickCount); + sb.append(", orderCount=").append(orderCount); + sb.append(", url=").append(url); + sb.append(", note=").append(note); + sb.append(", sort=").append(sort); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeAdvertiseExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeAdvertiseExample.java new file mode 100644 index 000000000..cc237453e --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeAdvertiseExample.java @@ -0,0 +1,960 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class SmsHomeAdvertiseExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public SmsHomeAdvertiseExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 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 values) { + addCriterion("type in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotIn(List 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 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 values) { + addCriterion("pic in", values, "pic"); + return (Criteria) this; + } + + public Criteria andPicNotIn(List 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 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 values) { + addCriterion("start_time in", values, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotIn(List 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 values) { + addCriterion("end_time in", values, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotIn(List 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 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 values) { + addCriterion("status in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List 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 andClickCountIsNull() { + addCriterion("click_count is null"); + return (Criteria) this; + } + + public Criteria andClickCountIsNotNull() { + addCriterion("click_count is not null"); + return (Criteria) this; + } + + public Criteria andClickCountEqualTo(Integer value) { + addCriterion("click_count =", value, "clickCount"); + return (Criteria) this; + } + + public Criteria andClickCountNotEqualTo(Integer value) { + addCriterion("click_count <>", value, "clickCount"); + return (Criteria) this; + } + + public Criteria andClickCountGreaterThan(Integer value) { + addCriterion("click_count >", value, "clickCount"); + return (Criteria) this; + } + + public Criteria andClickCountGreaterThanOrEqualTo(Integer value) { + addCriterion("click_count >=", value, "clickCount"); + return (Criteria) this; + } + + public Criteria andClickCountLessThan(Integer value) { + addCriterion("click_count <", value, "clickCount"); + return (Criteria) this; + } + + public Criteria andClickCountLessThanOrEqualTo(Integer value) { + addCriterion("click_count <=", value, "clickCount"); + return (Criteria) this; + } + + public Criteria andClickCountIn(List values) { + addCriterion("click_count in", values, "clickCount"); + return (Criteria) this; + } + + public Criteria andClickCountNotIn(List values) { + addCriterion("click_count not in", values, "clickCount"); + return (Criteria) this; + } + + public Criteria andClickCountBetween(Integer value1, Integer value2) { + addCriterion("click_count between", value1, value2, "clickCount"); + return (Criteria) this; + } + + public Criteria andClickCountNotBetween(Integer value1, Integer value2) { + addCriterion("click_count not between", value1, value2, "clickCount"); + return (Criteria) this; + } + + public Criteria andOrderCountIsNull() { + addCriterion("order_count is null"); + return (Criteria) this; + } + + public Criteria andOrderCountIsNotNull() { + addCriterion("order_count is not null"); + return (Criteria) this; + } + + public Criteria andOrderCountEqualTo(Integer value) { + addCriterion("order_count =", value, "orderCount"); + return (Criteria) this; + } + + public Criteria andOrderCountNotEqualTo(Integer value) { + addCriterion("order_count <>", value, "orderCount"); + return (Criteria) this; + } + + public Criteria andOrderCountGreaterThan(Integer value) { + addCriterion("order_count >", value, "orderCount"); + return (Criteria) this; + } + + public Criteria andOrderCountGreaterThanOrEqualTo(Integer value) { + addCriterion("order_count >=", value, "orderCount"); + return (Criteria) this; + } + + public Criteria andOrderCountLessThan(Integer value) { + addCriterion("order_count <", value, "orderCount"); + return (Criteria) this; + } + + public Criteria andOrderCountLessThanOrEqualTo(Integer value) { + addCriterion("order_count <=", value, "orderCount"); + return (Criteria) this; + } + + public Criteria andOrderCountIn(List values) { + addCriterion("order_count in", values, "orderCount"); + return (Criteria) this; + } + + public Criteria andOrderCountNotIn(List values) { + addCriterion("order_count not in", values, "orderCount"); + return (Criteria) this; + } + + public Criteria andOrderCountBetween(Integer value1, Integer value2) { + addCriterion("order_count between", value1, value2, "orderCount"); + return (Criteria) this; + } + + public Criteria andOrderCountNotBetween(Integer value1, Integer value2) { + addCriterion("order_count not between", value1, value2, "orderCount"); + return (Criteria) this; + } + + public Criteria andUrlIsNull() { + addCriterion("url is null"); + return (Criteria) this; + } + + public Criteria andUrlIsNotNull() { + addCriterion("url is not null"); + return (Criteria) this; + } + + public Criteria andUrlEqualTo(String value) { + addCriterion("url =", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotEqualTo(String value) { + addCriterion("url <>", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlGreaterThan(String value) { + addCriterion("url >", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlGreaterThanOrEqualTo(String value) { + addCriterion("url >=", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlLessThan(String value) { + addCriterion("url <", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlLessThanOrEqualTo(String value) { + addCriterion("url <=", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlLike(String value) { + addCriterion("url like", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotLike(String value) { + addCriterion("url not like", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlIn(List values) { + addCriterion("url in", values, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotIn(List values) { + addCriterion("url not in", values, "url"); + return (Criteria) this; + } + + public Criteria andUrlBetween(String value1, String value2) { + addCriterion("url between", value1, value2, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotBetween(String value1, String value2) { + addCriterion("url not between", value1, value2, "url"); + 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 values) { + addCriterion("note in", values, "note"); + return (Criteria) this; + } + + public Criteria andNoteNotIn(List 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 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeBrand.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeBrand.java new file mode 100644 index 000000000..e01ec95af --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeBrand.java @@ -0,0 +1,74 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class SmsHomeBrand implements Serializable { + private Long id; + + private Long brandId; + + private String brandName; + + 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 getBrandId() { + return brandId; + } + + public void setBrandId(Long brandId) { + this.brandId = brandId; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + 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(", brandId=").append(brandId); + sb.append(", brandName=").append(brandName); + sb.append(", recommendStatus=").append(recommendStatus); + sb.append(", sort=").append(sort); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeBrandExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeBrandExample.java new file mode 100644 index 000000000..ce08d4f0f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeBrandExample.java @@ -0,0 +1,509 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class SmsHomeBrandExample { + protected String orderByClause; + + protected boolean distinct; + + protected List 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("brand_id in", values, "brandId"); + return (Criteria) this; + } + + public Criteria andBrandIdNotIn(List 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 values) { + addCriterion("brand_name in", values, "brandName"); + return (Criteria) this; + } + + public Criteria andBrandNameNotIn(List 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 values) { + addCriterion("recommend_status in", values, "recommendStatus"); + return (Criteria) this; + } + + public Criteria andRecommendStatusNotIn(List 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeNewProduct.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeNewProduct.java new file mode 100644 index 000000000..d75f9697d --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeNewProduct.java @@ -0,0 +1,74 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class SmsHomeNewProduct 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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeNewProductExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeNewProductExample.java new file mode 100644 index 000000000..908652cec --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeNewProductExample.java @@ -0,0 +1,509 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class SmsHomeNewProductExample { + protected String orderByClause; + + protected boolean distinct; + + protected List 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("product_id in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotIn(List 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 values) { + addCriterion("product_name in", values, "productName"); + return (Criteria) this; + } + + public Criteria andProductNameNotIn(List 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 values) { + addCriterion("recommend_status in", values, "recommendStatus"); + return (Criteria) this; + } + + public Criteria andRecommendStatusNotIn(List 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeRecommendProduct.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeRecommendProduct.java new file mode 100644 index 000000000..181975fbe --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeRecommendProduct.java @@ -0,0 +1,74 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeRecommendProductExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeRecommendProductExample.java new file mode 100644 index 000000000..73a8c72bb --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeRecommendProductExample.java @@ -0,0 +1,509 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class SmsHomeRecommendProductExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public SmsHomeRecommendProductExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("product_id in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotIn(List 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 values) { + addCriterion("product_name in", values, "productName"); + return (Criteria) this; + } + + public Criteria andProductNameNotIn(List 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 values) { + addCriterion("recommend_status in", values, "recommendStatus"); + return (Criteria) this; + } + + public Criteria andRecommendStatusNotIn(List 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeRecommendSubject.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeRecommendSubject.java new file mode 100644 index 000000000..2bfc9ad18 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeRecommendSubject.java @@ -0,0 +1,74 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class SmsHomeRecommendSubject implements Serializable { + private Long id; + + private Long subjectId; + + private String subjectName; + + 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 getSubjectId() { + return subjectId; + } + + public void setSubjectId(Long subjectId) { + this.subjectId = subjectId; + } + + public String getSubjectName() { + return subjectName; + } + + public void setSubjectName(String subjectName) { + this.subjectName = subjectName; + } + + 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(", subjectId=").append(subjectId); + sb.append(", subjectName=").append(subjectName); + sb.append(", recommendStatus=").append(recommendStatus); + sb.append(", sort=").append(sort); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeRecommendSubjectExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeRecommendSubjectExample.java new file mode 100644 index 000000000..bccd3d850 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/SmsHomeRecommendSubjectExample.java @@ -0,0 +1,509 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class SmsHomeRecommendSubjectExample { + protected String orderByClause; + + protected boolean distinct; + + protected List 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("subject_id in", values, "subjectId"); + return (Criteria) this; + } + + public Criteria andSubjectIdNotIn(List 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 values) { + addCriterion("subject_name in", values, "subjectName"); + return (Criteria) this; + } + + public Criteria andSubjectNameNotIn(List 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 values) { + addCriterion("recommend_status in", values, "recommendStatus"); + return (Criteria) this; + } + + public Criteria andRecommendStatusNotIn(List 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdmin.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdmin.java new file mode 100644 index 000000000..d3bc7e06c --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdmin.java @@ -0,0 +1,137 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.util.Date; + +public class UmsAdmin implements Serializable { + private Long id; + + private String username; + + private String password; + + @Schema(title = "头像") + private String icon; + + @Schema(title = "邮箱") + private String email; + + @Schema(title = "昵称") + private String nickName; + + @Schema(title = "备注信息") + private String note; + + @Schema(title = "创建时间") + private Date createTime; + + @Schema(title = "最后登录时间") + private Date loginTime; + + @Schema(title = "帐号启用状态:0->禁用;1->启用") + private Integer status; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public String getIcon() { + return icon; + } + + public void setIcon(String icon) { + this.icon = icon; + } + + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public String getNickName() { + return nickName; + } + + public void setNickName(String nickName) { + this.nickName = nickName; + } + + public String getNote() { + return note; + } + + public void setNote(String note) { + this.note = note; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Date getLoginTime() { + return loginTime; + } + + public void setLoginTime(Date loginTime) { + this.loginTime = loginTime; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + @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(", username=").append(username); + sb.append(", password=").append(password); + sb.append(", icon=").append(icon); + sb.append(", email=").append(email); + sb.append(", nickName=").append(nickName); + sb.append(", note=").append(note); + sb.append(", createTime=").append(createTime); + sb.append(", loginTime=").append(loginTime); + sb.append(", status=").append(status); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdminExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdminExample.java new file mode 100644 index 000000000..4ec3239e2 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdminExample.java @@ -0,0 +1,860 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class UmsAdminExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public UmsAdminExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 andUsernameIsNull() { + addCriterion("username is null"); + return (Criteria) this; + } + + public Criteria andUsernameIsNotNull() { + addCriterion("username is not null"); + return (Criteria) this; + } + + public Criteria andUsernameEqualTo(String value) { + addCriterion("username =", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotEqualTo(String value) { + addCriterion("username <>", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThan(String value) { + addCriterion("username >", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThanOrEqualTo(String value) { + addCriterion("username >=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThan(String value) { + addCriterion("username <", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThanOrEqualTo(String value) { + addCriterion("username <=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLike(String value) { + addCriterion("username like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotLike(String value) { + addCriterion("username not like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameIn(List values) { + addCriterion("username in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotIn(List values) { + addCriterion("username not in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameBetween(String value1, String value2) { + addCriterion("username between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotBetween(String value1, String value2) { + addCriterion("username not between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andPasswordIsNull() { + addCriterion("password is null"); + return (Criteria) this; + } + + public Criteria andPasswordIsNotNull() { + addCriterion("password is not null"); + return (Criteria) this; + } + + public Criteria andPasswordEqualTo(String value) { + addCriterion("password =", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordNotEqualTo(String value) { + addCriterion("password <>", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordGreaterThan(String value) { + addCriterion("password >", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordGreaterThanOrEqualTo(String value) { + addCriterion("password >=", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordLessThan(String value) { + addCriterion("password <", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordLessThanOrEqualTo(String value) { + addCriterion("password <=", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordLike(String value) { + addCriterion("password like", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordNotLike(String value) { + addCriterion("password not like", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordIn(List values) { + addCriterion("password in", values, "password"); + return (Criteria) this; + } + + public Criteria andPasswordNotIn(List values) { + addCriterion("password not in", values, "password"); + return (Criteria) this; + } + + public Criteria andPasswordBetween(String value1, String value2) { + addCriterion("password between", value1, value2, "password"); + return (Criteria) this; + } + + public Criteria andPasswordNotBetween(String value1, String value2) { + addCriterion("password not between", value1, value2, "password"); + 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 values) { + addCriterion("icon in", values, "icon"); + return (Criteria) this; + } + + public Criteria andIconNotIn(List 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 andEmailIsNull() { + addCriterion("email is null"); + return (Criteria) this; + } + + public Criteria andEmailIsNotNull() { + addCriterion("email is not null"); + return (Criteria) this; + } + + public Criteria andEmailEqualTo(String value) { + addCriterion("email =", value, "email"); + return (Criteria) this; + } + + public Criteria andEmailNotEqualTo(String value) { + addCriterion("email <>", value, "email"); + return (Criteria) this; + } + + public Criteria andEmailGreaterThan(String value) { + addCriterion("email >", value, "email"); + return (Criteria) this; + } + + public Criteria andEmailGreaterThanOrEqualTo(String value) { + addCriterion("email >=", value, "email"); + return (Criteria) this; + } + + public Criteria andEmailLessThan(String value) { + addCriterion("email <", value, "email"); + return (Criteria) this; + } + + public Criteria andEmailLessThanOrEqualTo(String value) { + addCriterion("email <=", value, "email"); + return (Criteria) this; + } + + public Criteria andEmailLike(String value) { + addCriterion("email like", value, "email"); + return (Criteria) this; + } + + public Criteria andEmailNotLike(String value) { + addCriterion("email not like", value, "email"); + return (Criteria) this; + } + + public Criteria andEmailIn(List values) { + addCriterion("email in", values, "email"); + return (Criteria) this; + } + + public Criteria andEmailNotIn(List values) { + addCriterion("email not in", values, "email"); + return (Criteria) this; + } + + public Criteria andEmailBetween(String value1, String value2) { + addCriterion("email between", value1, value2, "email"); + return (Criteria) this; + } + + public Criteria andEmailNotBetween(String value1, String value2) { + addCriterion("email not between", value1, value2, "email"); + return (Criteria) this; + } + + public Criteria andNickNameIsNull() { + addCriterion("nick_name is null"); + return (Criteria) this; + } + + public Criteria andNickNameIsNotNull() { + addCriterion("nick_name is not null"); + return (Criteria) this; + } + + public Criteria andNickNameEqualTo(String value) { + addCriterion("nick_name =", value, "nickName"); + return (Criteria) this; + } + + public Criteria andNickNameNotEqualTo(String value) { + addCriterion("nick_name <>", value, "nickName"); + return (Criteria) this; + } + + public Criteria andNickNameGreaterThan(String value) { + addCriterion("nick_name >", value, "nickName"); + return (Criteria) this; + } + + public Criteria andNickNameGreaterThanOrEqualTo(String value) { + addCriterion("nick_name >=", value, "nickName"); + return (Criteria) this; + } + + public Criteria andNickNameLessThan(String value) { + addCriterion("nick_name <", value, "nickName"); + return (Criteria) this; + } + + public Criteria andNickNameLessThanOrEqualTo(String value) { + addCriterion("nick_name <=", value, "nickName"); + return (Criteria) this; + } + + public Criteria andNickNameLike(String value) { + addCriterion("nick_name like", value, "nickName"); + return (Criteria) this; + } + + public Criteria andNickNameNotLike(String value) { + addCriterion("nick_name not like", value, "nickName"); + return (Criteria) this; + } + + public Criteria andNickNameIn(List values) { + addCriterion("nick_name in", values, "nickName"); + return (Criteria) this; + } + + public Criteria andNickNameNotIn(List values) { + addCriterion("nick_name not in", values, "nickName"); + return (Criteria) this; + } + + public Criteria andNickNameBetween(String value1, String value2) { + addCriterion("nick_name between", value1, value2, "nickName"); + return (Criteria) this; + } + + public Criteria andNickNameNotBetween(String value1, String value2) { + addCriterion("nick_name not between", value1, value2, "nickName"); + 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 values) { + addCriterion("note in", values, "note"); + return (Criteria) this; + } + + public Criteria andNoteNotIn(List 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 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 andLoginTimeIsNull() { + addCriterion("login_time is null"); + return (Criteria) this; + } + + public Criteria andLoginTimeIsNotNull() { + addCriterion("login_time is not null"); + return (Criteria) this; + } + + public Criteria andLoginTimeEqualTo(Date value) { + addCriterion("login_time =", value, "loginTime"); + return (Criteria) this; + } + + public Criteria andLoginTimeNotEqualTo(Date value) { + addCriterion("login_time <>", value, "loginTime"); + return (Criteria) this; + } + + public Criteria andLoginTimeGreaterThan(Date value) { + addCriterion("login_time >", value, "loginTime"); + return (Criteria) this; + } + + public Criteria andLoginTimeGreaterThanOrEqualTo(Date value) { + addCriterion("login_time >=", value, "loginTime"); + return (Criteria) this; + } + + public Criteria andLoginTimeLessThan(Date value) { + addCriterion("login_time <", value, "loginTime"); + return (Criteria) this; + } + + public Criteria andLoginTimeLessThanOrEqualTo(Date value) { + addCriterion("login_time <=", value, "loginTime"); + return (Criteria) this; + } + + public Criteria andLoginTimeIn(List values) { + addCriterion("login_time in", values, "loginTime"); + return (Criteria) this; + } + + public Criteria andLoginTimeNotIn(List values) { + addCriterion("login_time not in", values, "loginTime"); + return (Criteria) this; + } + + public Criteria andLoginTimeBetween(Date value1, Date value2) { + addCriterion("login_time between", value1, value2, "loginTime"); + return (Criteria) this; + } + + public Criteria andLoginTimeNotBetween(Date value1, Date value2) { + addCriterion("login_time not between", value1, value2, "loginTime"); + 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 values) { + addCriterion("status in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List 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 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdminLoginLog.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdminLoginLog.java new file mode 100644 index 000000000..67786ba30 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdminLoginLog.java @@ -0,0 +1,87 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.util.Date; + +public class UmsAdminLoginLog implements Serializable { + private Long id; + + private Long adminId; + + private Date createTime; + + private String ip; + + private String address; + + @Schema(title = "浏览器登录类型") + private String userAgent; + + 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 Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public String getUserAgent() { + return userAgent; + } + + public void setUserAgent(String userAgent) { + this.userAgent = userAgent; + } + + @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(", createTime=").append(createTime); + sb.append(", ip=").append(ip); + sb.append(", address=").append(address); + sb.append(", userAgent=").append(userAgent); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdminLoginLogExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdminLoginLogExample.java new file mode 100644 index 000000000..1ff86de97 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdminLoginLogExample.java @@ -0,0 +1,590 @@ +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 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("admin_id in", values, "adminId"); + return (Criteria) this; + } + + public Criteria andAdminIdNotIn(List 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 values) { + addCriterion("ip in", values, "ip"); + return (Criteria) this; + } + + public Criteria andIpNotIn(List 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 values) { + addCriterion("address in", values, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotIn(List 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 values) { + addCriterion("user_agent in", values, "userAgent"); + return (Criteria) this; + } + + public Criteria andUserAgentNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdminPermissionRelation.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdminPermissionRelation.java new file mode 100644 index 000000000..f2cb19666 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdminPermissionRelation.java @@ -0,0 +1,63 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdminPermissionRelationExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdminPermissionRelationExample.java new file mode 100644 index 000000000..f3e7e4295 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdminPermissionRelationExample.java @@ -0,0 +1,439 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class UmsAdminPermissionRelationExample { + protected String orderByClause; + + protected boolean distinct; + + protected List 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("admin_id in", values, "adminId"); + return (Criteria) this; + } + + public Criteria andAdminIdNotIn(List 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 values) { + addCriterion("permission_id in", values, "permissionId"); + return (Criteria) this; + } + + public Criteria andPermissionIdNotIn(List 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 values) { + addCriterion("type in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdminRoleRelation.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdminRoleRelation.java new file mode 100644 index 000000000..66a78ea7e --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdminRoleRelation.java @@ -0,0 +1,52 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdminRoleRelationExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdminRoleRelationExample.java new file mode 100644 index 000000000..d8d1df218 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsAdminRoleRelationExample.java @@ -0,0 +1,379 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class UmsAdminRoleRelationExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public UmsAdminRoleRelationExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("admin_id in", values, "adminId"); + return (Criteria) this; + } + + public Criteria andAdminIdNotIn(List 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 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 values) { + addCriterion("role_id in", values, "roleId"); + return (Criteria) this; + } + + public Criteria andRoleIdNotIn(List 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 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsGrowthChangeHistory.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsGrowthChangeHistory.java new file mode 100644 index 000000000..123022623 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsGrowthChangeHistory.java @@ -0,0 +1,113 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.util.Date; + +public class UmsGrowthChangeHistory implements Serializable { + private Long id; + + private Long memberId; + + private Date createTime; + + @Schema(title = "改变类型:0->增加;1->减少") + private Integer changeType; + + @Schema(title = "积分改变数量") + private Integer changeCount; + + @Schema(title = "操作人员") + private String operateMan; + + @Schema(title = "操作备注") + private String operateNote; + + @Schema(title = "积分来源:0->购物;1->管理员修改") + private Integer sourceType; + + 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 Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Integer getChangeType() { + return changeType; + } + + public void setChangeType(Integer changeType) { + this.changeType = changeType; + } + + public Integer getChangeCount() { + return changeCount; + } + + public void setChangeCount(Integer changeCount) { + this.changeCount = changeCount; + } + + public String getOperateMan() { + return operateMan; + } + + public void setOperateMan(String operateMan) { + this.operateMan = operateMan; + } + + public String getOperateNote() { + return operateNote; + } + + public void setOperateNote(String operateNote) { + this.operateNote = operateNote; + } + + public Integer getSourceType() { + return sourceType; + } + + public void setSourceType(Integer sourceType) { + this.sourceType = sourceType; + } + + @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(", createTime=").append(createTime); + sb.append(", changeType=").append(changeType); + sb.append(", changeCount=").append(changeCount); + sb.append(", operateMan=").append(operateMan); + sb.append(", operateNote=").append(operateNote); + sb.append(", sourceType=").append(sourceType); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsGrowthChangeHistoryExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsGrowthChangeHistoryExample.java new file mode 100644 index 000000000..5d97472f2 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsGrowthChangeHistoryExample.java @@ -0,0 +1,700 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class UmsGrowthChangeHistoryExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public UmsGrowthChangeHistoryExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("member_id in", values, "memberId"); + return (Criteria) this; + } + + public Criteria andMemberIdNotIn(List 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 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 andChangeTypeIsNull() { + addCriterion("change_type is null"); + return (Criteria) this; + } + + public Criteria andChangeTypeIsNotNull() { + addCriterion("change_type is not null"); + return (Criteria) this; + } + + public Criteria andChangeTypeEqualTo(Integer value) { + addCriterion("change_type =", value, "changeType"); + return (Criteria) this; + } + + public Criteria andChangeTypeNotEqualTo(Integer value) { + addCriterion("change_type <>", value, "changeType"); + return (Criteria) this; + } + + public Criteria andChangeTypeGreaterThan(Integer value) { + addCriterion("change_type >", value, "changeType"); + return (Criteria) this; + } + + public Criteria andChangeTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("change_type >=", value, "changeType"); + return (Criteria) this; + } + + public Criteria andChangeTypeLessThan(Integer value) { + addCriterion("change_type <", value, "changeType"); + return (Criteria) this; + } + + public Criteria andChangeTypeLessThanOrEqualTo(Integer value) { + addCriterion("change_type <=", value, "changeType"); + return (Criteria) this; + } + + public Criteria andChangeTypeIn(List values) { + addCriterion("change_type in", values, "changeType"); + return (Criteria) this; + } + + public Criteria andChangeTypeNotIn(List values) { + addCriterion("change_type not in", values, "changeType"); + return (Criteria) this; + } + + public Criteria andChangeTypeBetween(Integer value1, Integer value2) { + addCriterion("change_type between", value1, value2, "changeType"); + return (Criteria) this; + } + + public Criteria andChangeTypeNotBetween(Integer value1, Integer value2) { + addCriterion("change_type not between", value1, value2, "changeType"); + return (Criteria) this; + } + + public Criteria andChangeCountIsNull() { + addCriterion("change_count is null"); + return (Criteria) this; + } + + public Criteria andChangeCountIsNotNull() { + addCriterion("change_count is not null"); + return (Criteria) this; + } + + public Criteria andChangeCountEqualTo(Integer value) { + addCriterion("change_count =", value, "changeCount"); + return (Criteria) this; + } + + public Criteria andChangeCountNotEqualTo(Integer value) { + addCriterion("change_count <>", value, "changeCount"); + return (Criteria) this; + } + + public Criteria andChangeCountGreaterThan(Integer value) { + addCriterion("change_count >", value, "changeCount"); + return (Criteria) this; + } + + public Criteria andChangeCountGreaterThanOrEqualTo(Integer value) { + addCriterion("change_count >=", value, "changeCount"); + return (Criteria) this; + } + + public Criteria andChangeCountLessThan(Integer value) { + addCriterion("change_count <", value, "changeCount"); + return (Criteria) this; + } + + public Criteria andChangeCountLessThanOrEqualTo(Integer value) { + addCriterion("change_count <=", value, "changeCount"); + return (Criteria) this; + } + + public Criteria andChangeCountIn(List values) { + addCriterion("change_count in", values, "changeCount"); + return (Criteria) this; + } + + public Criteria andChangeCountNotIn(List values) { + addCriterion("change_count not in", values, "changeCount"); + return (Criteria) this; + } + + public Criteria andChangeCountBetween(Integer value1, Integer value2) { + addCriterion("change_count between", value1, value2, "changeCount"); + return (Criteria) this; + } + + public Criteria andChangeCountNotBetween(Integer value1, Integer value2) { + addCriterion("change_count not between", value1, value2, "changeCount"); + return (Criteria) this; + } + + public Criteria andOperateManIsNull() { + addCriterion("operate_man is null"); + return (Criteria) this; + } + + public Criteria andOperateManIsNotNull() { + addCriterion("operate_man is not null"); + return (Criteria) this; + } + + public Criteria andOperateManEqualTo(String value) { + addCriterion("operate_man =", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManNotEqualTo(String value) { + addCriterion("operate_man <>", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManGreaterThan(String value) { + addCriterion("operate_man >", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManGreaterThanOrEqualTo(String value) { + addCriterion("operate_man >=", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManLessThan(String value) { + addCriterion("operate_man <", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManLessThanOrEqualTo(String value) { + addCriterion("operate_man <=", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManLike(String value) { + addCriterion("operate_man like", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManNotLike(String value) { + addCriterion("operate_man not like", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManIn(List values) { + addCriterion("operate_man in", values, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManNotIn(List values) { + addCriterion("operate_man not in", values, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManBetween(String value1, String value2) { + addCriterion("operate_man between", value1, value2, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManNotBetween(String value1, String value2) { + addCriterion("operate_man not between", value1, value2, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateNoteIsNull() { + addCriterion("operate_note is null"); + return (Criteria) this; + } + + public Criteria andOperateNoteIsNotNull() { + addCriterion("operate_note is not null"); + return (Criteria) this; + } + + public Criteria andOperateNoteEqualTo(String value) { + addCriterion("operate_note =", value, "operateNote"); + return (Criteria) this; + } + + public Criteria andOperateNoteNotEqualTo(String value) { + addCriterion("operate_note <>", value, "operateNote"); + return (Criteria) this; + } + + public Criteria andOperateNoteGreaterThan(String value) { + addCriterion("operate_note >", value, "operateNote"); + return (Criteria) this; + } + + public Criteria andOperateNoteGreaterThanOrEqualTo(String value) { + addCriterion("operate_note >=", value, "operateNote"); + return (Criteria) this; + } + + public Criteria andOperateNoteLessThan(String value) { + addCriterion("operate_note <", value, "operateNote"); + return (Criteria) this; + } + + public Criteria andOperateNoteLessThanOrEqualTo(String value) { + addCriterion("operate_note <=", value, "operateNote"); + return (Criteria) this; + } + + public Criteria andOperateNoteLike(String value) { + addCriterion("operate_note like", value, "operateNote"); + return (Criteria) this; + } + + public Criteria andOperateNoteNotLike(String value) { + addCriterion("operate_note not like", value, "operateNote"); + return (Criteria) this; + } + + public Criteria andOperateNoteIn(List values) { + addCriterion("operate_note in", values, "operateNote"); + return (Criteria) this; + } + + public Criteria andOperateNoteNotIn(List values) { + addCriterion("operate_note not in", values, "operateNote"); + return (Criteria) this; + } + + public Criteria andOperateNoteBetween(String value1, String value2) { + addCriterion("operate_note between", value1, value2, "operateNote"); + return (Criteria) this; + } + + public Criteria andOperateNoteNotBetween(String value1, String value2) { + addCriterion("operate_note not between", value1, value2, "operateNote"); + return (Criteria) this; + } + + public Criteria andSourceTypeIsNull() { + addCriterion("source_type is null"); + return (Criteria) this; + } + + public Criteria andSourceTypeIsNotNull() { + addCriterion("source_type is not null"); + return (Criteria) this; + } + + public Criteria andSourceTypeEqualTo(Integer value) { + addCriterion("source_type =", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeNotEqualTo(Integer value) { + addCriterion("source_type <>", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeGreaterThan(Integer value) { + addCriterion("source_type >", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("source_type >=", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeLessThan(Integer value) { + addCriterion("source_type <", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeLessThanOrEqualTo(Integer value) { + addCriterion("source_type <=", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeIn(List values) { + addCriterion("source_type in", values, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeNotIn(List values) { + addCriterion("source_type not in", values, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeBetween(Integer value1, Integer value2) { + addCriterion("source_type between", value1, value2, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeNotBetween(Integer value1, Integer value2) { + addCriterion("source_type not between", value1, value2, "sourceType"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsIntegrationChangeHistory.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsIntegrationChangeHistory.java new file mode 100644 index 000000000..0aea90da1 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsIntegrationChangeHistory.java @@ -0,0 +1,113 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.util.Date; + +public class UmsIntegrationChangeHistory implements Serializable { + private Long id; + + private Long memberId; + + private Date createTime; + + @Schema(title = "改变类型:0->增加;1->减少") + private Integer changeType; + + @Schema(title = "积分改变数量") + private Integer changeCount; + + @Schema(title = "操作人员") + private String operateMan; + + @Schema(title = "操作备注") + private String operateNote; + + @Schema(title = "积分来源:0->购物;1->管理员修改") + private Integer sourceType; + + 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 Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Integer getChangeType() { + return changeType; + } + + public void setChangeType(Integer changeType) { + this.changeType = changeType; + } + + public Integer getChangeCount() { + return changeCount; + } + + public void setChangeCount(Integer changeCount) { + this.changeCount = changeCount; + } + + public String getOperateMan() { + return operateMan; + } + + public void setOperateMan(String operateMan) { + this.operateMan = operateMan; + } + + public String getOperateNote() { + return operateNote; + } + + public void setOperateNote(String operateNote) { + this.operateNote = operateNote; + } + + public Integer getSourceType() { + return sourceType; + } + + public void setSourceType(Integer sourceType) { + this.sourceType = sourceType; + } + + @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(", createTime=").append(createTime); + sb.append(", changeType=").append(changeType); + sb.append(", changeCount=").append(changeCount); + sb.append(", operateMan=").append(operateMan); + sb.append(", operateNote=").append(operateNote); + sb.append(", sourceType=").append(sourceType); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsIntegrationChangeHistoryExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsIntegrationChangeHistoryExample.java new file mode 100644 index 000000000..a38b5da3e --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsIntegrationChangeHistoryExample.java @@ -0,0 +1,700 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class UmsIntegrationChangeHistoryExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public UmsIntegrationChangeHistoryExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("member_id in", values, "memberId"); + return (Criteria) this; + } + + public Criteria andMemberIdNotIn(List 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 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 andChangeTypeIsNull() { + addCriterion("change_type is null"); + return (Criteria) this; + } + + public Criteria andChangeTypeIsNotNull() { + addCriterion("change_type is not null"); + return (Criteria) this; + } + + public Criteria andChangeTypeEqualTo(Integer value) { + addCriterion("change_type =", value, "changeType"); + return (Criteria) this; + } + + public Criteria andChangeTypeNotEqualTo(Integer value) { + addCriterion("change_type <>", value, "changeType"); + return (Criteria) this; + } + + public Criteria andChangeTypeGreaterThan(Integer value) { + addCriterion("change_type >", value, "changeType"); + return (Criteria) this; + } + + public Criteria andChangeTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("change_type >=", value, "changeType"); + return (Criteria) this; + } + + public Criteria andChangeTypeLessThan(Integer value) { + addCriterion("change_type <", value, "changeType"); + return (Criteria) this; + } + + public Criteria andChangeTypeLessThanOrEqualTo(Integer value) { + addCriterion("change_type <=", value, "changeType"); + return (Criteria) this; + } + + public Criteria andChangeTypeIn(List values) { + addCriterion("change_type in", values, "changeType"); + return (Criteria) this; + } + + public Criteria andChangeTypeNotIn(List values) { + addCriterion("change_type not in", values, "changeType"); + return (Criteria) this; + } + + public Criteria andChangeTypeBetween(Integer value1, Integer value2) { + addCriterion("change_type between", value1, value2, "changeType"); + return (Criteria) this; + } + + public Criteria andChangeTypeNotBetween(Integer value1, Integer value2) { + addCriterion("change_type not between", value1, value2, "changeType"); + return (Criteria) this; + } + + public Criteria andChangeCountIsNull() { + addCriterion("change_count is null"); + return (Criteria) this; + } + + public Criteria andChangeCountIsNotNull() { + addCriterion("change_count is not null"); + return (Criteria) this; + } + + public Criteria andChangeCountEqualTo(Integer value) { + addCriterion("change_count =", value, "changeCount"); + return (Criteria) this; + } + + public Criteria andChangeCountNotEqualTo(Integer value) { + addCriterion("change_count <>", value, "changeCount"); + return (Criteria) this; + } + + public Criteria andChangeCountGreaterThan(Integer value) { + addCriterion("change_count >", value, "changeCount"); + return (Criteria) this; + } + + public Criteria andChangeCountGreaterThanOrEqualTo(Integer value) { + addCriterion("change_count >=", value, "changeCount"); + return (Criteria) this; + } + + public Criteria andChangeCountLessThan(Integer value) { + addCriterion("change_count <", value, "changeCount"); + return (Criteria) this; + } + + public Criteria andChangeCountLessThanOrEqualTo(Integer value) { + addCriterion("change_count <=", value, "changeCount"); + return (Criteria) this; + } + + public Criteria andChangeCountIn(List values) { + addCriterion("change_count in", values, "changeCount"); + return (Criteria) this; + } + + public Criteria andChangeCountNotIn(List values) { + addCriterion("change_count not in", values, "changeCount"); + return (Criteria) this; + } + + public Criteria andChangeCountBetween(Integer value1, Integer value2) { + addCriterion("change_count between", value1, value2, "changeCount"); + return (Criteria) this; + } + + public Criteria andChangeCountNotBetween(Integer value1, Integer value2) { + addCriterion("change_count not between", value1, value2, "changeCount"); + return (Criteria) this; + } + + public Criteria andOperateManIsNull() { + addCriterion("operate_man is null"); + return (Criteria) this; + } + + public Criteria andOperateManIsNotNull() { + addCriterion("operate_man is not null"); + return (Criteria) this; + } + + public Criteria andOperateManEqualTo(String value) { + addCriterion("operate_man =", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManNotEqualTo(String value) { + addCriterion("operate_man <>", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManGreaterThan(String value) { + addCriterion("operate_man >", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManGreaterThanOrEqualTo(String value) { + addCriterion("operate_man >=", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManLessThan(String value) { + addCriterion("operate_man <", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManLessThanOrEqualTo(String value) { + addCriterion("operate_man <=", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManLike(String value) { + addCriterion("operate_man like", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManNotLike(String value) { + addCriterion("operate_man not like", value, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManIn(List values) { + addCriterion("operate_man in", values, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManNotIn(List values) { + addCriterion("operate_man not in", values, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManBetween(String value1, String value2) { + addCriterion("operate_man between", value1, value2, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateManNotBetween(String value1, String value2) { + addCriterion("operate_man not between", value1, value2, "operateMan"); + return (Criteria) this; + } + + public Criteria andOperateNoteIsNull() { + addCriterion("operate_note is null"); + return (Criteria) this; + } + + public Criteria andOperateNoteIsNotNull() { + addCriterion("operate_note is not null"); + return (Criteria) this; + } + + public Criteria andOperateNoteEqualTo(String value) { + addCriterion("operate_note =", value, "operateNote"); + return (Criteria) this; + } + + public Criteria andOperateNoteNotEqualTo(String value) { + addCriterion("operate_note <>", value, "operateNote"); + return (Criteria) this; + } + + public Criteria andOperateNoteGreaterThan(String value) { + addCriterion("operate_note >", value, "operateNote"); + return (Criteria) this; + } + + public Criteria andOperateNoteGreaterThanOrEqualTo(String value) { + addCriterion("operate_note >=", value, "operateNote"); + return (Criteria) this; + } + + public Criteria andOperateNoteLessThan(String value) { + addCriterion("operate_note <", value, "operateNote"); + return (Criteria) this; + } + + public Criteria andOperateNoteLessThanOrEqualTo(String value) { + addCriterion("operate_note <=", value, "operateNote"); + return (Criteria) this; + } + + public Criteria andOperateNoteLike(String value) { + addCriterion("operate_note like", value, "operateNote"); + return (Criteria) this; + } + + public Criteria andOperateNoteNotLike(String value) { + addCriterion("operate_note not like", value, "operateNote"); + return (Criteria) this; + } + + public Criteria andOperateNoteIn(List values) { + addCriterion("operate_note in", values, "operateNote"); + return (Criteria) this; + } + + public Criteria andOperateNoteNotIn(List values) { + addCriterion("operate_note not in", values, "operateNote"); + return (Criteria) this; + } + + public Criteria andOperateNoteBetween(String value1, String value2) { + addCriterion("operate_note between", value1, value2, "operateNote"); + return (Criteria) this; + } + + public Criteria andOperateNoteNotBetween(String value1, String value2) { + addCriterion("operate_note not between", value1, value2, "operateNote"); + return (Criteria) this; + } + + public Criteria andSourceTypeIsNull() { + addCriterion("source_type is null"); + return (Criteria) this; + } + + public Criteria andSourceTypeIsNotNull() { + addCriterion("source_type is not null"); + return (Criteria) this; + } + + public Criteria andSourceTypeEqualTo(Integer value) { + addCriterion("source_type =", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeNotEqualTo(Integer value) { + addCriterion("source_type <>", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeGreaterThan(Integer value) { + addCriterion("source_type >", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("source_type >=", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeLessThan(Integer value) { + addCriterion("source_type <", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeLessThanOrEqualTo(Integer value) { + addCriterion("source_type <=", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeIn(List values) { + addCriterion("source_type in", values, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeNotIn(List values) { + addCriterion("source_type not in", values, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeBetween(Integer value1, Integer value2) { + addCriterion("source_type between", value1, value2, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeNotBetween(Integer value1, Integer value2) { + addCriterion("source_type not between", value1, value2, "sourceType"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsIntegrationConsumeSetting.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsIntegrationConsumeSetting.java new file mode 100644 index 000000000..8da0922bb --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsIntegrationConsumeSetting.java @@ -0,0 +1,78 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class UmsIntegrationConsumeSetting implements Serializable { + private Long id; + + @Schema(title = "每一元需要抵扣的积分数量") + private Integer deductionPerAmount; + + @Schema(title = "每笔订单最高抵用百分比") + private Integer maxPercentPerOrder; + + @Schema(title = "每次使用积分最小单位100") + private Integer useUnit; + + @Schema(title = "是否可以和优惠券同用;0->不可以;1->可以") + private Integer couponStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Integer getDeductionPerAmount() { + return deductionPerAmount; + } + + public void setDeductionPerAmount(Integer deductionPerAmount) { + this.deductionPerAmount = deductionPerAmount; + } + + public Integer getMaxPercentPerOrder() { + return maxPercentPerOrder; + } + + public void setMaxPercentPerOrder(Integer maxPercentPerOrder) { + this.maxPercentPerOrder = maxPercentPerOrder; + } + + public Integer getUseUnit() { + return useUnit; + } + + public void setUseUnit(Integer useUnit) { + this.useUnit = useUnit; + } + + public Integer getCouponStatus() { + return couponStatus; + } + + public void setCouponStatus(Integer couponStatus) { + this.couponStatus = couponStatus; + } + + @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(", deductionPerAmount=").append(deductionPerAmount); + sb.append(", maxPercentPerOrder=").append(maxPercentPerOrder); + sb.append(", useUnit=").append(useUnit); + sb.append(", couponStatus=").append(couponStatus); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsIntegrationConsumeSettingExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsIntegrationConsumeSettingExample.java new file mode 100644 index 000000000..ff0f37357 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsIntegrationConsumeSettingExample.java @@ -0,0 +1,499 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class UmsIntegrationConsumeSettingExample { + protected String orderByClause; + + protected boolean distinct; + + protected List 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("deduction_per_amount in", values, "deductionPerAmount"); + return (Criteria) this; + } + + public Criteria andDeductionPerAmountNotIn(List 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 values) { + addCriterion("max_percent_per_order in", values, "maxPercentPerOrder"); + return (Criteria) this; + } + + public Criteria andMaxPercentPerOrderNotIn(List 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 values) { + addCriterion("use_unit in", values, "useUnit"); + return (Criteria) this; + } + + public Criteria andUseUnitNotIn(List 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 values) { + addCriterion("coupon_status in", values, "couponStatus"); + return (Criteria) this; + } + + public Criteria andCouponStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMember.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMember.java new file mode 100644 index 000000000..50c146210 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMember.java @@ -0,0 +1,246 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.util.Date; + +public class UmsMember implements Serializable { + private Long id; + + private Long memberLevelId; + + @Schema(title = "用户名") + private String username; + + @Schema(title = "密码") + private String password; + + @Schema(title = "昵称") + private String nickname; + + @Schema(title = "手机号码") + private String phone; + + @Schema(title = "帐号启用状态:0->禁用;1->启用") + private Integer status; + + @Schema(title = "注册时间") + private Date createTime; + + @Schema(title = "头像") + private String icon; + + @Schema(title = "性别:0->未知;1->男;2->女") + private Integer gender; + + @Schema(title = "生日") + private Date birthday; + + @Schema(title = "所做城市") + private String city; + + @Schema(title = "职业") + private String job; + + @Schema(title = "个性签名") + private String personalizedSignature; + + @Schema(title = "用户来源") + private Integer sourceType; + + @Schema(title = "积分") + private Integer integration; + + @Schema(title = "成长值") + private Integer growth; + + @Schema(title = "剩余抽奖次数") + private Integer luckeyCount; + + @Schema(title = "历史积分数量") + private Integer historyIntegration; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getMemberLevelId() { + return memberLevelId; + } + + public void setMemberLevelId(Long memberLevelId) { + this.memberLevelId = memberLevelId; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public String getNickname() { + return nickname; + } + + public void setNickname(String nickname) { + this.nickname = nickname; + } + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + 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 String getIcon() { + return icon; + } + + public void setIcon(String icon) { + this.icon = icon; + } + + public Integer getGender() { + return gender; + } + + public void setGender(Integer gender) { + this.gender = gender; + } + + public Date getBirthday() { + return birthday; + } + + public void setBirthday(Date birthday) { + this.birthday = birthday; + } + + public String getCity() { + return city; + } + + public void setCity(String city) { + this.city = city; + } + + public String getJob() { + return job; + } + + public void setJob(String job) { + this.job = job; + } + + public String getPersonalizedSignature() { + return personalizedSignature; + } + + public void setPersonalizedSignature(String personalizedSignature) { + this.personalizedSignature = personalizedSignature; + } + + public Integer getSourceType() { + return sourceType; + } + + public void setSourceType(Integer sourceType) { + this.sourceType = sourceType; + } + + 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 Integer getLuckeyCount() { + return luckeyCount; + } + + public void setLuckeyCount(Integer luckeyCount) { + this.luckeyCount = luckeyCount; + } + + public Integer getHistoryIntegration() { + return historyIntegration; + } + + public void setHistoryIntegration(Integer historyIntegration) { + this.historyIntegration = historyIntegration; + } + + @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(", memberLevelId=").append(memberLevelId); + sb.append(", username=").append(username); + sb.append(", password=").append(password); + sb.append(", nickname=").append(nickname); + sb.append(", phone=").append(phone); + sb.append(", status=").append(status); + sb.append(", createTime=").append(createTime); + sb.append(", icon=").append(icon); + sb.append(", gender=").append(gender); + sb.append(", birthday=").append(birthday); + sb.append(", city=").append(city); + sb.append(", job=").append(job); + sb.append(", personalizedSignature=").append(personalizedSignature); + sb.append(", sourceType=").append(sourceType); + sb.append(", integration=").append(integration); + sb.append(", growth=").append(growth); + sb.append(", luckeyCount=").append(luckeyCount); + sb.append(", historyIntegration=").append(historyIntegration); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberExample.java new file mode 100644 index 000000000..76731ca38 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberExample.java @@ -0,0 +1,1447 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.Iterator; +import java.util.List; + +public class UmsMemberExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public UmsMemberExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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)); + } + + protected void addCriterionForJDBCDate(String condition, Date value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + addCriterion(condition, new java.sql.Date(value.getTime()), property); + } + + protected void addCriterionForJDBCDate(String condition, List values, String property) { + if (values == null || values.size() == 0) { + throw new RuntimeException("Value list for " + property + " cannot be null or empty"); + } + List dateList = new ArrayList<>(); + Iterator iter = values.iterator(); + while (iter.hasNext()) { + dateList.add(new java.sql.Date(iter.next().getTime())); + } + addCriterion(condition, dateList, property); + } + + protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property); + } + + 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 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 values) { + addCriterion("member_level_id in", values, "memberLevelId"); + return (Criteria) this; + } + + public Criteria andMemberLevelIdNotIn(List 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 andUsernameIsNull() { + addCriterion("username is null"); + return (Criteria) this; + } + + public Criteria andUsernameIsNotNull() { + addCriterion("username is not null"); + return (Criteria) this; + } + + public Criteria andUsernameEqualTo(String value) { + addCriterion("username =", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotEqualTo(String value) { + addCriterion("username <>", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThan(String value) { + addCriterion("username >", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThanOrEqualTo(String value) { + addCriterion("username >=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThan(String value) { + addCriterion("username <", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThanOrEqualTo(String value) { + addCriterion("username <=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLike(String value) { + addCriterion("username like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotLike(String value) { + addCriterion("username not like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameIn(List values) { + addCriterion("username in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotIn(List values) { + addCriterion("username not in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameBetween(String value1, String value2) { + addCriterion("username between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotBetween(String value1, String value2) { + addCriterion("username not between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andPasswordIsNull() { + addCriterion("password is null"); + return (Criteria) this; + } + + public Criteria andPasswordIsNotNull() { + addCriterion("password is not null"); + return (Criteria) this; + } + + public Criteria andPasswordEqualTo(String value) { + addCriterion("password =", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordNotEqualTo(String value) { + addCriterion("password <>", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordGreaterThan(String value) { + addCriterion("password >", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordGreaterThanOrEqualTo(String value) { + addCriterion("password >=", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordLessThan(String value) { + addCriterion("password <", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordLessThanOrEqualTo(String value) { + addCriterion("password <=", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordLike(String value) { + addCriterion("password like", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordNotLike(String value) { + addCriterion("password not like", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordIn(List values) { + addCriterion("password in", values, "password"); + return (Criteria) this; + } + + public Criteria andPasswordNotIn(List values) { + addCriterion("password not in", values, "password"); + return (Criteria) this; + } + + public Criteria andPasswordBetween(String value1, String value2) { + addCriterion("password between", value1, value2, "password"); + return (Criteria) this; + } + + public Criteria andPasswordNotBetween(String value1, String value2) { + addCriterion("password not between", value1, value2, "password"); + return (Criteria) this; + } + + public Criteria andNicknameIsNull() { + addCriterion("nickname is null"); + return (Criteria) this; + } + + public Criteria andNicknameIsNotNull() { + addCriterion("nickname is not null"); + return (Criteria) this; + } + + public Criteria andNicknameEqualTo(String value) { + addCriterion("nickname =", value, "nickname"); + return (Criteria) this; + } + + public Criteria andNicknameNotEqualTo(String value) { + addCriterion("nickname <>", value, "nickname"); + return (Criteria) this; + } + + public Criteria andNicknameGreaterThan(String value) { + addCriterion("nickname >", value, "nickname"); + return (Criteria) this; + } + + public Criteria andNicknameGreaterThanOrEqualTo(String value) { + addCriterion("nickname >=", value, "nickname"); + return (Criteria) this; + } + + public Criteria andNicknameLessThan(String value) { + addCriterion("nickname <", value, "nickname"); + return (Criteria) this; + } + + public Criteria andNicknameLessThanOrEqualTo(String value) { + addCriterion("nickname <=", value, "nickname"); + return (Criteria) this; + } + + public Criteria andNicknameLike(String value) { + addCriterion("nickname like", value, "nickname"); + return (Criteria) this; + } + + public Criteria andNicknameNotLike(String value) { + addCriterion("nickname not like", value, "nickname"); + return (Criteria) this; + } + + public Criteria andNicknameIn(List values) { + addCriterion("nickname in", values, "nickname"); + return (Criteria) this; + } + + public Criteria andNicknameNotIn(List values) { + addCriterion("nickname not in", values, "nickname"); + return (Criteria) this; + } + + public Criteria andNicknameBetween(String value1, String value2) { + addCriterion("nickname between", value1, value2, "nickname"); + return (Criteria) this; + } + + public Criteria andNicknameNotBetween(String value1, String value2) { + addCriterion("nickname not between", value1, value2, "nickname"); + return (Criteria) this; + } + + public Criteria andPhoneIsNull() { + addCriterion("phone is null"); + return (Criteria) this; + } + + public Criteria andPhoneIsNotNull() { + addCriterion("phone is not null"); + return (Criteria) this; + } + + public Criteria andPhoneEqualTo(String value) { + addCriterion("phone =", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotEqualTo(String value) { + addCriterion("phone <>", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneGreaterThan(String value) { + addCriterion("phone >", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneGreaterThanOrEqualTo(String value) { + addCriterion("phone >=", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLessThan(String value) { + addCriterion("phone <", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLessThanOrEqualTo(String value) { + addCriterion("phone <=", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLike(String value) { + addCriterion("phone like", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotLike(String value) { + addCriterion("phone not like", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneIn(List values) { + addCriterion("phone in", values, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotIn(List values) { + addCriterion("phone not in", values, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneBetween(String value1, String value2) { + addCriterion("phone between", value1, value2, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotBetween(String value1, String value2) { + addCriterion("phone not between", value1, value2, "phone"); + 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 values) { + addCriterion("status in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 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 values) { + addCriterion("icon in", values, "icon"); + return (Criteria) this; + } + + public Criteria andIconNotIn(List 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 andGenderIsNull() { + addCriterion("gender is null"); + return (Criteria) this; + } + + public Criteria andGenderIsNotNull() { + addCriterion("gender is not null"); + return (Criteria) this; + } + + public Criteria andGenderEqualTo(Integer value) { + addCriterion("gender =", value, "gender"); + return (Criteria) this; + } + + public Criteria andGenderNotEqualTo(Integer value) { + addCriterion("gender <>", value, "gender"); + return (Criteria) this; + } + + public Criteria andGenderGreaterThan(Integer value) { + addCriterion("gender >", value, "gender"); + return (Criteria) this; + } + + public Criteria andGenderGreaterThanOrEqualTo(Integer value) { + addCriterion("gender >=", value, "gender"); + return (Criteria) this; + } + + public Criteria andGenderLessThan(Integer value) { + addCriterion("gender <", value, "gender"); + return (Criteria) this; + } + + public Criteria andGenderLessThanOrEqualTo(Integer value) { + addCriterion("gender <=", value, "gender"); + return (Criteria) this; + } + + public Criteria andGenderIn(List values) { + addCriterion("gender in", values, "gender"); + return (Criteria) this; + } + + public Criteria andGenderNotIn(List values) { + addCriterion("gender not in", values, "gender"); + return (Criteria) this; + } + + public Criteria andGenderBetween(Integer value1, Integer value2) { + addCriterion("gender between", value1, value2, "gender"); + return (Criteria) this; + } + + public Criteria andGenderNotBetween(Integer value1, Integer value2) { + addCriterion("gender not between", value1, value2, "gender"); + return (Criteria) this; + } + + public Criteria andBirthdayIsNull() { + addCriterion("birthday is null"); + return (Criteria) this; + } + + public Criteria andBirthdayIsNotNull() { + addCriterion("birthday is not null"); + return (Criteria) this; + } + + public Criteria andBirthdayEqualTo(Date value) { + addCriterionForJDBCDate("birthday =", value, "birthday"); + return (Criteria) this; + } + + public Criteria andBirthdayNotEqualTo(Date value) { + addCriterionForJDBCDate("birthday <>", value, "birthday"); + return (Criteria) this; + } + + public Criteria andBirthdayGreaterThan(Date value) { + addCriterionForJDBCDate("birthday >", value, "birthday"); + return (Criteria) this; + } + + public Criteria andBirthdayGreaterThanOrEqualTo(Date value) { + addCriterionForJDBCDate("birthday >=", value, "birthday"); + return (Criteria) this; + } + + public Criteria andBirthdayLessThan(Date value) { + addCriterionForJDBCDate("birthday <", value, "birthday"); + return (Criteria) this; + } + + public Criteria andBirthdayLessThanOrEqualTo(Date value) { + addCriterionForJDBCDate("birthday <=", value, "birthday"); + return (Criteria) this; + } + + public Criteria andBirthdayIn(List values) { + addCriterionForJDBCDate("birthday in", values, "birthday"); + return (Criteria) this; + } + + public Criteria andBirthdayNotIn(List values) { + addCriterionForJDBCDate("birthday not in", values, "birthday"); + return (Criteria) this; + } + + public Criteria andBirthdayBetween(Date value1, Date value2) { + addCriterionForJDBCDate("birthday between", value1, value2, "birthday"); + return (Criteria) this; + } + + public Criteria andBirthdayNotBetween(Date value1, Date value2) { + addCriterionForJDBCDate("birthday not between", value1, value2, "birthday"); + return (Criteria) this; + } + + public Criteria andCityIsNull() { + addCriterion("city is null"); + return (Criteria) this; + } + + public Criteria andCityIsNotNull() { + addCriterion("city is not null"); + return (Criteria) this; + } + + public Criteria andCityEqualTo(String value) { + addCriterion("city =", value, "city"); + return (Criteria) this; + } + + public Criteria andCityNotEqualTo(String value) { + addCriterion("city <>", value, "city"); + return (Criteria) this; + } + + public Criteria andCityGreaterThan(String value) { + addCriterion("city >", value, "city"); + return (Criteria) this; + } + + public Criteria andCityGreaterThanOrEqualTo(String value) { + addCriterion("city >=", value, "city"); + return (Criteria) this; + } + + public Criteria andCityLessThan(String value) { + addCriterion("city <", value, "city"); + return (Criteria) this; + } + + public Criteria andCityLessThanOrEqualTo(String value) { + addCriterion("city <=", value, "city"); + return (Criteria) this; + } + + public Criteria andCityLike(String value) { + addCriterion("city like", value, "city"); + return (Criteria) this; + } + + public Criteria andCityNotLike(String value) { + addCriterion("city not like", value, "city"); + return (Criteria) this; + } + + public Criteria andCityIn(List values) { + addCriterion("city in", values, "city"); + return (Criteria) this; + } + + public Criteria andCityNotIn(List values) { + addCriterion("city not in", values, "city"); + return (Criteria) this; + } + + public Criteria andCityBetween(String value1, String value2) { + addCriterion("city between", value1, value2, "city"); + return (Criteria) this; + } + + public Criteria andCityNotBetween(String value1, String value2) { + addCriterion("city not between", value1, value2, "city"); + return (Criteria) this; + } + + public Criteria andJobIsNull() { + addCriterion("job is null"); + return (Criteria) this; + } + + public Criteria andJobIsNotNull() { + addCriterion("job is not null"); + return (Criteria) this; + } + + public Criteria andJobEqualTo(String value) { + addCriterion("job =", value, "job"); + return (Criteria) this; + } + + public Criteria andJobNotEqualTo(String value) { + addCriterion("job <>", value, "job"); + return (Criteria) this; + } + + public Criteria andJobGreaterThan(String value) { + addCriterion("job >", value, "job"); + return (Criteria) this; + } + + public Criteria andJobGreaterThanOrEqualTo(String value) { + addCriterion("job >=", value, "job"); + return (Criteria) this; + } + + public Criteria andJobLessThan(String value) { + addCriterion("job <", value, "job"); + return (Criteria) this; + } + + public Criteria andJobLessThanOrEqualTo(String value) { + addCriterion("job <=", value, "job"); + return (Criteria) this; + } + + public Criteria andJobLike(String value) { + addCriterion("job like", value, "job"); + return (Criteria) this; + } + + public Criteria andJobNotLike(String value) { + addCriterion("job not like", value, "job"); + return (Criteria) this; + } + + public Criteria andJobIn(List values) { + addCriterion("job in", values, "job"); + return (Criteria) this; + } + + public Criteria andJobNotIn(List values) { + addCriterion("job not in", values, "job"); + return (Criteria) this; + } + + public Criteria andJobBetween(String value1, String value2) { + addCriterion("job between", value1, value2, "job"); + return (Criteria) this; + } + + public Criteria andJobNotBetween(String value1, String value2) { + addCriterion("job not between", value1, value2, "job"); + return (Criteria) this; + } + + public Criteria andPersonalizedSignatureIsNull() { + addCriterion("personalized_signature is null"); + return (Criteria) this; + } + + public Criteria andPersonalizedSignatureIsNotNull() { + addCriterion("personalized_signature is not null"); + return (Criteria) this; + } + + public Criteria andPersonalizedSignatureEqualTo(String value) { + addCriterion("personalized_signature =", value, "personalizedSignature"); + return (Criteria) this; + } + + public Criteria andPersonalizedSignatureNotEqualTo(String value) { + addCriterion("personalized_signature <>", value, "personalizedSignature"); + return (Criteria) this; + } + + public Criteria andPersonalizedSignatureGreaterThan(String value) { + addCriterion("personalized_signature >", value, "personalizedSignature"); + return (Criteria) this; + } + + public Criteria andPersonalizedSignatureGreaterThanOrEqualTo(String value) { + addCriterion("personalized_signature >=", value, "personalizedSignature"); + return (Criteria) this; + } + + public Criteria andPersonalizedSignatureLessThan(String value) { + addCriterion("personalized_signature <", value, "personalizedSignature"); + return (Criteria) this; + } + + public Criteria andPersonalizedSignatureLessThanOrEqualTo(String value) { + addCriterion("personalized_signature <=", value, "personalizedSignature"); + return (Criteria) this; + } + + public Criteria andPersonalizedSignatureLike(String value) { + addCriterion("personalized_signature like", value, "personalizedSignature"); + return (Criteria) this; + } + + public Criteria andPersonalizedSignatureNotLike(String value) { + addCriterion("personalized_signature not like", value, "personalizedSignature"); + return (Criteria) this; + } + + public Criteria andPersonalizedSignatureIn(List values) { + addCriterion("personalized_signature in", values, "personalizedSignature"); + return (Criteria) this; + } + + public Criteria andPersonalizedSignatureNotIn(List values) { + addCriterion("personalized_signature not in", values, "personalizedSignature"); + return (Criteria) this; + } + + public Criteria andPersonalizedSignatureBetween(String value1, String value2) { + addCriterion("personalized_signature between", value1, value2, "personalizedSignature"); + return (Criteria) this; + } + + public Criteria andPersonalizedSignatureNotBetween(String value1, String value2) { + addCriterion("personalized_signature not between", value1, value2, "personalizedSignature"); + return (Criteria) this; + } + + public Criteria andSourceTypeIsNull() { + addCriterion("source_type is null"); + return (Criteria) this; + } + + public Criteria andSourceTypeIsNotNull() { + addCriterion("source_type is not null"); + return (Criteria) this; + } + + public Criteria andSourceTypeEqualTo(Integer value) { + addCriterion("source_type =", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeNotEqualTo(Integer value) { + addCriterion("source_type <>", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeGreaterThan(Integer value) { + addCriterion("source_type >", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("source_type >=", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeLessThan(Integer value) { + addCriterion("source_type <", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeLessThanOrEqualTo(Integer value) { + addCriterion("source_type <=", value, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeIn(List values) { + addCriterion("source_type in", values, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeNotIn(List values) { + addCriterion("source_type not in", values, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeBetween(Integer value1, Integer value2) { + addCriterion("source_type between", value1, value2, "sourceType"); + return (Criteria) this; + } + + public Criteria andSourceTypeNotBetween(Integer value1, Integer value2) { + addCriterion("source_type not between", value1, value2, "sourceType"); + return (Criteria) this; + } + + public Criteria andIntegrationIsNull() { + addCriterion("integration is null"); + return (Criteria) this; + } + + public Criteria andIntegrationIsNotNull() { + addCriterion("integration is not null"); + return (Criteria) this; + } + + public Criteria andIntegrationEqualTo(Integer value) { + addCriterion("integration =", value, "integration"); + return (Criteria) this; + } + + public Criteria andIntegrationNotEqualTo(Integer value) { + addCriterion("integration <>", value, "integration"); + return (Criteria) this; + } + + public Criteria andIntegrationGreaterThan(Integer value) { + addCriterion("integration >", value, "integration"); + return (Criteria) this; + } + + public Criteria andIntegrationGreaterThanOrEqualTo(Integer value) { + addCriterion("integration >=", value, "integration"); + return (Criteria) this; + } + + public Criteria andIntegrationLessThan(Integer value) { + addCriterion("integration <", value, "integration"); + return (Criteria) this; + } + + public Criteria andIntegrationLessThanOrEqualTo(Integer value) { + addCriterion("integration <=", value, "integration"); + return (Criteria) this; + } + + public Criteria andIntegrationIn(List values) { + addCriterion("integration in", values, "integration"); + return (Criteria) this; + } + + public Criteria andIntegrationNotIn(List values) { + addCriterion("integration not in", values, "integration"); + return (Criteria) this; + } + + public Criteria andIntegrationBetween(Integer value1, Integer value2) { + addCriterion("integration between", value1, value2, "integration"); + return (Criteria) this; + } + + public Criteria andIntegrationNotBetween(Integer value1, Integer value2) { + addCriterion("integration not between", value1, value2, "integration"); + 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 values) { + addCriterion("growth in", values, "growth"); + return (Criteria) this; + } + + public Criteria andGrowthNotIn(List 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 andLuckeyCountIsNull() { + addCriterion("luckey_count is null"); + return (Criteria) this; + } + + public Criteria andLuckeyCountIsNotNull() { + addCriterion("luckey_count is not null"); + return (Criteria) this; + } + + public Criteria andLuckeyCountEqualTo(Integer value) { + addCriterion("luckey_count =", value, "luckeyCount"); + return (Criteria) this; + } + + public Criteria andLuckeyCountNotEqualTo(Integer value) { + addCriterion("luckey_count <>", value, "luckeyCount"); + return (Criteria) this; + } + + public Criteria andLuckeyCountGreaterThan(Integer value) { + addCriterion("luckey_count >", value, "luckeyCount"); + return (Criteria) this; + } + + public Criteria andLuckeyCountGreaterThanOrEqualTo(Integer value) { + addCriterion("luckey_count >=", value, "luckeyCount"); + return (Criteria) this; + } + + public Criteria andLuckeyCountLessThan(Integer value) { + addCriterion("luckey_count <", value, "luckeyCount"); + return (Criteria) this; + } + + public Criteria andLuckeyCountLessThanOrEqualTo(Integer value) { + addCriterion("luckey_count <=", value, "luckeyCount"); + return (Criteria) this; + } + + public Criteria andLuckeyCountIn(List values) { + addCriterion("luckey_count in", values, "luckeyCount"); + return (Criteria) this; + } + + public Criteria andLuckeyCountNotIn(List values) { + addCriterion("luckey_count not in", values, "luckeyCount"); + return (Criteria) this; + } + + public Criteria andLuckeyCountBetween(Integer value1, Integer value2) { + addCriterion("luckey_count between", value1, value2, "luckeyCount"); + return (Criteria) this; + } + + public Criteria andLuckeyCountNotBetween(Integer value1, Integer value2) { + addCriterion("luckey_count not between", value1, value2, "luckeyCount"); + return (Criteria) this; + } + + public Criteria andHistoryIntegrationIsNull() { + addCriterion("history_integration is null"); + return (Criteria) this; + } + + public Criteria andHistoryIntegrationIsNotNull() { + addCriterion("history_integration is not null"); + return (Criteria) this; + } + + public Criteria andHistoryIntegrationEqualTo(Integer value) { + addCriterion("history_integration =", value, "historyIntegration"); + return (Criteria) this; + } + + public Criteria andHistoryIntegrationNotEqualTo(Integer value) { + addCriterion("history_integration <>", value, "historyIntegration"); + return (Criteria) this; + } + + public Criteria andHistoryIntegrationGreaterThan(Integer value) { + addCriterion("history_integration >", value, "historyIntegration"); + return (Criteria) this; + } + + public Criteria andHistoryIntegrationGreaterThanOrEqualTo(Integer value) { + addCriterion("history_integration >=", value, "historyIntegration"); + return (Criteria) this; + } + + public Criteria andHistoryIntegrationLessThan(Integer value) { + addCriterion("history_integration <", value, "historyIntegration"); + return (Criteria) this; + } + + public Criteria andHistoryIntegrationLessThanOrEqualTo(Integer value) { + addCriterion("history_integration <=", value, "historyIntegration"); + return (Criteria) this; + } + + public Criteria andHistoryIntegrationIn(List values) { + addCriterion("history_integration in", values, "historyIntegration"); + return (Criteria) this; + } + + public Criteria andHistoryIntegrationNotIn(List values) { + addCriterion("history_integration not in", values, "historyIntegration"); + return (Criteria) this; + } + + public Criteria andHistoryIntegrationBetween(Integer value1, Integer value2) { + addCriterion("history_integration between", value1, value2, "historyIntegration"); + return (Criteria) this; + } + + public Criteria andHistoryIntegrationNotBetween(Integer value1, Integer value2) { + addCriterion("history_integration not between", value1, value2, "historyIntegration"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberLevel.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberLevel.java new file mode 100644 index 000000000..cec59ee13 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberLevel.java @@ -0,0 +1,172 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.math.BigDecimal; + +public class UmsMemberLevel implements Serializable { + private Long id; + + private String name; + + private Integer growthPoint; + + @Schema(title = "是否为默认等级:0->不是;1->是") + private Integer defaultStatus; + + @Schema(title = "免运费标准") + private BigDecimal freeFreightPoint; + + @Schema(title = "每次评价获取的成长值") + private Integer commentGrowthPoint; + + @Schema(title = "是否有免邮特权") + private Integer priviledgeFreeFreight; + + @Schema(title = "是否有签到特权") + private Integer priviledgeSignIn; + + @Schema(title = "是否有评论获奖励特权") + private Integer priviledgeComment; + + @Schema(title = "是否有专享活动特权") + private Integer priviledgePromotion; + + @Schema(title = "是否有会员价格特权") + private Integer priviledgeMemberPrice; + + @Schema(title = "是否有生日特权") + private Integer priviledgeBirthday; + + private String note; + + 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 getGrowthPoint() { + return growthPoint; + } + + public void setGrowthPoint(Integer growthPoint) { + this.growthPoint = growthPoint; + } + + public Integer getDefaultStatus() { + return defaultStatus; + } + + public void setDefaultStatus(Integer defaultStatus) { + this.defaultStatus = defaultStatus; + } + + public BigDecimal getFreeFreightPoint() { + return freeFreightPoint; + } + + public void setFreeFreightPoint(BigDecimal freeFreightPoint) { + this.freeFreightPoint = freeFreightPoint; + } + + public Integer getCommentGrowthPoint() { + return commentGrowthPoint; + } + + public void setCommentGrowthPoint(Integer commentGrowthPoint) { + this.commentGrowthPoint = commentGrowthPoint; + } + + public Integer getPriviledgeFreeFreight() { + return priviledgeFreeFreight; + } + + public void setPriviledgeFreeFreight(Integer priviledgeFreeFreight) { + this.priviledgeFreeFreight = priviledgeFreeFreight; + } + + public Integer getPriviledgeSignIn() { + return priviledgeSignIn; + } + + public void setPriviledgeSignIn(Integer priviledgeSignIn) { + this.priviledgeSignIn = priviledgeSignIn; + } + + public Integer getPriviledgeComment() { + return priviledgeComment; + } + + public void setPriviledgeComment(Integer priviledgeComment) { + this.priviledgeComment = priviledgeComment; + } + + public Integer getPriviledgePromotion() { + return priviledgePromotion; + } + + public void setPriviledgePromotion(Integer priviledgePromotion) { + this.priviledgePromotion = priviledgePromotion; + } + + public Integer getPriviledgeMemberPrice() { + return priviledgeMemberPrice; + } + + public void setPriviledgeMemberPrice(Integer priviledgeMemberPrice) { + this.priviledgeMemberPrice = priviledgeMemberPrice; + } + + public Integer getPriviledgeBirthday() { + return priviledgeBirthday; + } + + public void setPriviledgeBirthday(Integer priviledgeBirthday) { + this.priviledgeBirthday = priviledgeBirthday; + } + + 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(", name=").append(name); + sb.append(", growthPoint=").append(growthPoint); + sb.append(", defaultStatus=").append(defaultStatus); + sb.append(", freeFreightPoint=").append(freeFreightPoint); + sb.append(", commentGrowthPoint=").append(commentGrowthPoint); + sb.append(", priviledgeFreeFreight=").append(priviledgeFreeFreight); + sb.append(", priviledgeSignIn=").append(priviledgeSignIn); + sb.append(", priviledgeComment=").append(priviledgeComment); + sb.append(", priviledgePromotion=").append(priviledgePromotion); + sb.append(", priviledgeMemberPrice=").append(priviledgeMemberPrice); + sb.append(", priviledgeBirthday=").append(priviledgeBirthday); + sb.append(", note=").append(note); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberLevelExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberLevelExample.java new file mode 100644 index 000000000..e387cf25e --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberLevelExample.java @@ -0,0 +1,1000 @@ +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 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 values) { + addCriterion("growth_point in", values, "growthPoint"); + return (Criteria) this; + } + + public Criteria andGrowthPointNotIn(List 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 values) { + addCriterion("default_status in", values, "defaultStatus"); + return (Criteria) this; + } + + public Criteria andDefaultStatusNotIn(List 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 values) { + addCriterion("free_freight_point in", values, "freeFreightPoint"); + return (Criteria) this; + } + + public Criteria andFreeFreightPointNotIn(List 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 values) { + addCriterion("comment_growth_point in", values, "commentGrowthPoint"); + return (Criteria) this; + } + + public Criteria andCommentGrowthPointNotIn(List 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 values) { + addCriterion("priviledge_free_freight in", values, "priviledgeFreeFreight"); + return (Criteria) this; + } + + public Criteria andPriviledgeFreeFreightNotIn(List 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 values) { + addCriterion("priviledge_sign_in in", values, "priviledgeSignIn"); + return (Criteria) this; + } + + public Criteria andPriviledgeSignInNotIn(List 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 values) { + addCriterion("priviledge_comment in", values, "priviledgeComment"); + return (Criteria) this; + } + + public Criteria andPriviledgeCommentNotIn(List 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 values) { + addCriterion("priviledge_promotion in", values, "priviledgePromotion"); + return (Criteria) this; + } + + public Criteria andPriviledgePromotionNotIn(List 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 values) { + addCriterion("priviledge_member_price in", values, "priviledgeMemberPrice"); + return (Criteria) this; + } + + public Criteria andPriviledgeMemberPriceNotIn(List 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 values) { + addCriterion("priviledge_birthday in", values, "priviledgeBirthday"); + return (Criteria) this; + } + + public Criteria andPriviledgeBirthdayNotIn(List 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 values) { + addCriterion("note in", values, "note"); + return (Criteria) this; + } + + public Criteria andNoteNotIn(List 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 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberLoginLog.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberLoginLog.java new file mode 100644 index 000000000..a7a82999a --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberLoginLog.java @@ -0,0 +1,98 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.util.Date; + +public class UmsMemberLoginLog implements Serializable { + private Long id; + + private Long memberId; + + private Date createTime; + + private String ip; + + private String city; + + @Schema(title = "登录类型:0->PC;1->android;2->ios;3->小程序") + private Integer loginType; + + private String province; + + 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 Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public String getCity() { + return city; + } + + public void setCity(String city) { + this.city = city; + } + + public Integer getLoginType() { + return loginType; + } + + public void setLoginType(Integer loginType) { + this.loginType = loginType; + } + + public String getProvince() { + return province; + } + + public void setProvince(String province) { + this.province = province; + } + + @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(", createTime=").append(createTime); + sb.append(", ip=").append(ip); + sb.append(", city=").append(city); + sb.append(", loginType=").append(loginType); + sb.append(", province=").append(province); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberLoginLogExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberLoginLogExample.java new file mode 100644 index 000000000..bda629dca --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberLoginLogExample.java @@ -0,0 +1,650 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class UmsMemberLoginLogExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public UmsMemberLoginLogExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("member_id in", values, "memberId"); + return (Criteria) this; + } + + public Criteria andMemberIdNotIn(List 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 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 values) { + addCriterion("ip in", values, "ip"); + return (Criteria) this; + } + + public Criteria andIpNotIn(List 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 andCityIsNull() { + addCriterion("city is null"); + return (Criteria) this; + } + + public Criteria andCityIsNotNull() { + addCriterion("city is not null"); + return (Criteria) this; + } + + public Criteria andCityEqualTo(String value) { + addCriterion("city =", value, "city"); + return (Criteria) this; + } + + public Criteria andCityNotEqualTo(String value) { + addCriterion("city <>", value, "city"); + return (Criteria) this; + } + + public Criteria andCityGreaterThan(String value) { + addCriterion("city >", value, "city"); + return (Criteria) this; + } + + public Criteria andCityGreaterThanOrEqualTo(String value) { + addCriterion("city >=", value, "city"); + return (Criteria) this; + } + + public Criteria andCityLessThan(String value) { + addCriterion("city <", value, "city"); + return (Criteria) this; + } + + public Criteria andCityLessThanOrEqualTo(String value) { + addCriterion("city <=", value, "city"); + return (Criteria) this; + } + + public Criteria andCityLike(String value) { + addCriterion("city like", value, "city"); + return (Criteria) this; + } + + public Criteria andCityNotLike(String value) { + addCriterion("city not like", value, "city"); + return (Criteria) this; + } + + public Criteria andCityIn(List values) { + addCriterion("city in", values, "city"); + return (Criteria) this; + } + + public Criteria andCityNotIn(List values) { + addCriterion("city not in", values, "city"); + return (Criteria) this; + } + + public Criteria andCityBetween(String value1, String value2) { + addCriterion("city between", value1, value2, "city"); + return (Criteria) this; + } + + public Criteria andCityNotBetween(String value1, String value2) { + addCriterion("city not between", value1, value2, "city"); + return (Criteria) this; + } + + public Criteria andLoginTypeIsNull() { + addCriterion("login_type is null"); + return (Criteria) this; + } + + public Criteria andLoginTypeIsNotNull() { + addCriterion("login_type is not null"); + return (Criteria) this; + } + + public Criteria andLoginTypeEqualTo(Integer value) { + addCriterion("login_type =", value, "loginType"); + return (Criteria) this; + } + + public Criteria andLoginTypeNotEqualTo(Integer value) { + addCriterion("login_type <>", value, "loginType"); + return (Criteria) this; + } + + public Criteria andLoginTypeGreaterThan(Integer value) { + addCriterion("login_type >", value, "loginType"); + return (Criteria) this; + } + + public Criteria andLoginTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("login_type >=", value, "loginType"); + return (Criteria) this; + } + + public Criteria andLoginTypeLessThan(Integer value) { + addCriterion("login_type <", value, "loginType"); + return (Criteria) this; + } + + public Criteria andLoginTypeLessThanOrEqualTo(Integer value) { + addCriterion("login_type <=", value, "loginType"); + return (Criteria) this; + } + + public Criteria andLoginTypeIn(List values) { + addCriterion("login_type in", values, "loginType"); + return (Criteria) this; + } + + public Criteria andLoginTypeNotIn(List values) { + addCriterion("login_type not in", values, "loginType"); + return (Criteria) this; + } + + public Criteria andLoginTypeBetween(Integer value1, Integer value2) { + addCriterion("login_type between", value1, value2, "loginType"); + return (Criteria) this; + } + + public Criteria andLoginTypeNotBetween(Integer value1, Integer value2) { + addCriterion("login_type not between", value1, value2, "loginType"); + return (Criteria) this; + } + + public Criteria andProvinceIsNull() { + addCriterion("province is null"); + return (Criteria) this; + } + + public Criteria andProvinceIsNotNull() { + addCriterion("province is not null"); + return (Criteria) this; + } + + public Criteria andProvinceEqualTo(String value) { + addCriterion("province =", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceNotEqualTo(String value) { + addCriterion("province <>", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceGreaterThan(String value) { + addCriterion("province >", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceGreaterThanOrEqualTo(String value) { + addCriterion("province >=", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceLessThan(String value) { + addCriterion("province <", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceLessThanOrEqualTo(String value) { + addCriterion("province <=", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceLike(String value) { + addCriterion("province like", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceNotLike(String value) { + addCriterion("province not like", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceIn(List values) { + addCriterion("province in", values, "province"); + return (Criteria) this; + } + + public Criteria andProvinceNotIn(List values) { + addCriterion("province not in", values, "province"); + return (Criteria) this; + } + + public Criteria andProvinceBetween(String value1, String value2) { + addCriterion("province between", value1, value2, "province"); + return (Criteria) this; + } + + public Criteria andProvinceNotBetween(String value1, String value2) { + addCriterion("province not between", value1, value2, "province"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberMemberTagRelation.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberMemberTagRelation.java new file mode 100644 index 000000000..6fa769d55 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberMemberTagRelation.java @@ -0,0 +1,52 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberMemberTagRelationExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberMemberTagRelationExample.java new file mode 100644 index 000000000..eeda427ab --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberMemberTagRelationExample.java @@ -0,0 +1,379 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class UmsMemberMemberTagRelationExample { + protected String orderByClause; + + protected boolean distinct; + + protected List 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("member_id in", values, "memberId"); + return (Criteria) this; + } + + public Criteria andMemberIdNotIn(List 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 values) { + addCriterion("tag_id in", values, "tagId"); + return (Criteria) this; + } + + public Criteria andTagIdNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberProductCategoryRelation.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberProductCategoryRelation.java new file mode 100644 index 000000000..2f8a5ad62 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberProductCategoryRelation.java @@ -0,0 +1,52 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberProductCategoryRelationExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberProductCategoryRelationExample.java new file mode 100644 index 000000000..5634f1cc2 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberProductCategoryRelationExample.java @@ -0,0 +1,379 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class UmsMemberProductCategoryRelationExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public UmsMemberProductCategoryRelationExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("member_id in", values, "memberId"); + return (Criteria) this; + } + + public Criteria andMemberIdNotIn(List 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 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 values) { + addCriterion("product_category_id in", values, "productCategoryId"); + return (Criteria) this; + } + + public Criteria andProductCategoryIdNotIn(List 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 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberReceiveAddress.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberReceiveAddress.java new file mode 100644 index 000000000..8faa15e62 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberReceiveAddress.java @@ -0,0 +1,136 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class UmsMemberReceiveAddress implements Serializable { + private Long id; + + private Long memberId; + + @Schema(title = "收货人名称") + private String name; + + private String phoneNumber; + + @Schema(title = "是否为默认") + private Integer defaultStatus; + + @Schema(title = "邮政编码") + private String postCode; + + @Schema(title = "省份/直辖市") + private String province; + + @Schema(title = "城市") + private String city; + + @Schema(title = "区") + private String region; + + @Schema(title = "详细地址(街道)") + private String detailAddress; + + 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 String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPhoneNumber() { + return phoneNumber; + } + + public void setPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + } + + public Integer getDefaultStatus() { + return defaultStatus; + } + + public void setDefaultStatus(Integer defaultStatus) { + this.defaultStatus = defaultStatus; + } + + public String getPostCode() { + return postCode; + } + + public void setPostCode(String postCode) { + this.postCode = postCode; + } + + 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(", memberId=").append(memberId); + sb.append(", name=").append(name); + sb.append(", phoneNumber=").append(phoneNumber); + sb.append(", defaultStatus=").append(defaultStatus); + sb.append(", postCode=").append(postCode); + 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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberReceiveAddressExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberReceiveAddressExample.java new file mode 100644 index 000000000..de400d108 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberReceiveAddressExample.java @@ -0,0 +1,869 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class UmsMemberReceiveAddressExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public UmsMemberReceiveAddressExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("member_id in", values, "memberId"); + return (Criteria) this; + } + + public Criteria andMemberIdNotIn(List 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 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 andPhoneNumberIsNull() { + addCriterion("phone_number is null"); + return (Criteria) this; + } + + public Criteria andPhoneNumberIsNotNull() { + addCriterion("phone_number is not null"); + return (Criteria) this; + } + + public Criteria andPhoneNumberEqualTo(String value) { + addCriterion("phone_number =", value, "phoneNumber"); + return (Criteria) this; + } + + public Criteria andPhoneNumberNotEqualTo(String value) { + addCriterion("phone_number <>", value, "phoneNumber"); + return (Criteria) this; + } + + public Criteria andPhoneNumberGreaterThan(String value) { + addCriterion("phone_number >", value, "phoneNumber"); + return (Criteria) this; + } + + public Criteria andPhoneNumberGreaterThanOrEqualTo(String value) { + addCriterion("phone_number >=", value, "phoneNumber"); + return (Criteria) this; + } + + public Criteria andPhoneNumberLessThan(String value) { + addCriterion("phone_number <", value, "phoneNumber"); + return (Criteria) this; + } + + public Criteria andPhoneNumberLessThanOrEqualTo(String value) { + addCriterion("phone_number <=", value, "phoneNumber"); + return (Criteria) this; + } + + public Criteria andPhoneNumberLike(String value) { + addCriterion("phone_number like", value, "phoneNumber"); + return (Criteria) this; + } + + public Criteria andPhoneNumberNotLike(String value) { + addCriterion("phone_number not like", value, "phoneNumber"); + return (Criteria) this; + } + + public Criteria andPhoneNumberIn(List values) { + addCriterion("phone_number in", values, "phoneNumber"); + return (Criteria) this; + } + + public Criteria andPhoneNumberNotIn(List values) { + addCriterion("phone_number not in", values, "phoneNumber"); + return (Criteria) this; + } + + public Criteria andPhoneNumberBetween(String value1, String value2) { + addCriterion("phone_number between", value1, value2, "phoneNumber"); + return (Criteria) this; + } + + public Criteria andPhoneNumberNotBetween(String value1, String value2) { + addCriterion("phone_number not between", value1, value2, "phoneNumber"); + 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 values) { + addCriterion("default_status in", values, "defaultStatus"); + return (Criteria) this; + } + + public Criteria andDefaultStatusNotIn(List 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 andPostCodeIsNull() { + addCriterion("post_code is null"); + return (Criteria) this; + } + + public Criteria andPostCodeIsNotNull() { + addCriterion("post_code is not null"); + return (Criteria) this; + } + + public Criteria andPostCodeEqualTo(String value) { + addCriterion("post_code =", value, "postCode"); + return (Criteria) this; + } + + public Criteria andPostCodeNotEqualTo(String value) { + addCriterion("post_code <>", value, "postCode"); + return (Criteria) this; + } + + public Criteria andPostCodeGreaterThan(String value) { + addCriterion("post_code >", value, "postCode"); + return (Criteria) this; + } + + public Criteria andPostCodeGreaterThanOrEqualTo(String value) { + addCriterion("post_code >=", value, "postCode"); + return (Criteria) this; + } + + public Criteria andPostCodeLessThan(String value) { + addCriterion("post_code <", value, "postCode"); + return (Criteria) this; + } + + public Criteria andPostCodeLessThanOrEqualTo(String value) { + addCriterion("post_code <=", value, "postCode"); + return (Criteria) this; + } + + public Criteria andPostCodeLike(String value) { + addCriterion("post_code like", value, "postCode"); + return (Criteria) this; + } + + public Criteria andPostCodeNotLike(String value) { + addCriterion("post_code not like", value, "postCode"); + return (Criteria) this; + } + + public Criteria andPostCodeIn(List values) { + addCriterion("post_code in", values, "postCode"); + return (Criteria) this; + } + + public Criteria andPostCodeNotIn(List values) { + addCriterion("post_code not in", values, "postCode"); + return (Criteria) this; + } + + public Criteria andPostCodeBetween(String value1, String value2) { + addCriterion("post_code between", value1, value2, "postCode"); + return (Criteria) this; + } + + public Criteria andPostCodeNotBetween(String value1, String value2) { + addCriterion("post_code not between", value1, value2, "postCode"); + return (Criteria) this; + } + + public Criteria andProvinceIsNull() { + addCriterion("province is null"); + return (Criteria) this; + } + + public Criteria andProvinceIsNotNull() { + addCriterion("province is not null"); + return (Criteria) this; + } + + public Criteria andProvinceEqualTo(String value) { + addCriterion("province =", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceNotEqualTo(String value) { + addCriterion("province <>", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceGreaterThan(String value) { + addCriterion("province >", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceGreaterThanOrEqualTo(String value) { + addCriterion("province >=", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceLessThan(String value) { + addCriterion("province <", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceLessThanOrEqualTo(String value) { + addCriterion("province <=", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceLike(String value) { + addCriterion("province like", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceNotLike(String value) { + addCriterion("province not like", value, "province"); + return (Criteria) this; + } + + public Criteria andProvinceIn(List values) { + addCriterion("province in", values, "province"); + return (Criteria) this; + } + + public Criteria andProvinceNotIn(List values) { + addCriterion("province not in", values, "province"); + return (Criteria) this; + } + + public Criteria andProvinceBetween(String value1, String value2) { + addCriterion("province between", value1, value2, "province"); + return (Criteria) this; + } + + public Criteria andProvinceNotBetween(String value1, String value2) { + addCriterion("province not between", value1, value2, "province"); + return (Criteria) this; + } + + public Criteria andCityIsNull() { + addCriterion("city is null"); + return (Criteria) this; + } + + public Criteria andCityIsNotNull() { + addCriterion("city is not null"); + return (Criteria) this; + } + + public Criteria andCityEqualTo(String value) { + addCriterion("city =", value, "city"); + return (Criteria) this; + } + + public Criteria andCityNotEqualTo(String value) { + addCriterion("city <>", value, "city"); + return (Criteria) this; + } + + public Criteria andCityGreaterThan(String value) { + addCriterion("city >", value, "city"); + return (Criteria) this; + } + + public Criteria andCityGreaterThanOrEqualTo(String value) { + addCriterion("city >=", value, "city"); + return (Criteria) this; + } + + public Criteria andCityLessThan(String value) { + addCriterion("city <", value, "city"); + return (Criteria) this; + } + + public Criteria andCityLessThanOrEqualTo(String value) { + addCriterion("city <=", value, "city"); + return (Criteria) this; + } + + public Criteria andCityLike(String value) { + addCriterion("city like", value, "city"); + return (Criteria) this; + } + + public Criteria andCityNotLike(String value) { + addCriterion("city not like", value, "city"); + return (Criteria) this; + } + + public Criteria andCityIn(List values) { + addCriterion("city in", values, "city"); + return (Criteria) this; + } + + public Criteria andCityNotIn(List values) { + addCriterion("city not in", values, "city"); + return (Criteria) this; + } + + public Criteria andCityBetween(String value1, String value2) { + addCriterion("city between", value1, value2, "city"); + return (Criteria) this; + } + + public Criteria andCityNotBetween(String value1, String value2) { + addCriterion("city not between", value1, value2, "city"); + return (Criteria) this; + } + + public Criteria andRegionIsNull() { + addCriterion("region is null"); + return (Criteria) this; + } + + public Criteria andRegionIsNotNull() { + addCriterion("region is not null"); + return (Criteria) this; + } + + public Criteria andRegionEqualTo(String value) { + addCriterion("region =", value, "region"); + return (Criteria) this; + } + + public Criteria andRegionNotEqualTo(String value) { + addCriterion("region <>", value, "region"); + return (Criteria) this; + } + + public Criteria andRegionGreaterThan(String value) { + addCriterion("region >", value, "region"); + return (Criteria) this; + } + + public Criteria andRegionGreaterThanOrEqualTo(String value) { + addCriterion("region >=", value, "region"); + return (Criteria) this; + } + + public Criteria andRegionLessThan(String value) { + addCriterion("region <", value, "region"); + return (Criteria) this; + } + + public Criteria andRegionLessThanOrEqualTo(String value) { + addCriterion("region <=", value, "region"); + return (Criteria) this; + } + + public Criteria andRegionLike(String value) { + addCriterion("region like", value, "region"); + return (Criteria) this; + } + + public Criteria andRegionNotLike(String value) { + addCriterion("region not like", value, "region"); + return (Criteria) this; + } + + public Criteria andRegionIn(List values) { + addCriterion("region in", values, "region"); + return (Criteria) this; + } + + public Criteria andRegionNotIn(List values) { + addCriterion("region not in", values, "region"); + return (Criteria) this; + } + + public Criteria andRegionBetween(String value1, String value2) { + addCriterion("region between", value1, value2, "region"); + return (Criteria) this; + } + + public Criteria andRegionNotBetween(String value1, String value2) { + addCriterion("region not between", value1, value2, "region"); + return (Criteria) this; + } + + public Criteria andDetailAddressIsNull() { + addCriterion("detail_address is null"); + return (Criteria) this; + } + + public Criteria andDetailAddressIsNotNull() { + addCriterion("detail_address is not null"); + return (Criteria) this; + } + + public Criteria andDetailAddressEqualTo(String value) { + addCriterion("detail_address =", value, "detailAddress"); + return (Criteria) this; + } + + public Criteria andDetailAddressNotEqualTo(String value) { + addCriterion("detail_address <>", value, "detailAddress"); + return (Criteria) this; + } + + public Criteria andDetailAddressGreaterThan(String value) { + addCriterion("detail_address >", value, "detailAddress"); + return (Criteria) this; + } + + public Criteria andDetailAddressGreaterThanOrEqualTo(String value) { + addCriterion("detail_address >=", value, "detailAddress"); + return (Criteria) this; + } + + public Criteria andDetailAddressLessThan(String value) { + addCriterion("detail_address <", value, "detailAddress"); + return (Criteria) this; + } + + public Criteria andDetailAddressLessThanOrEqualTo(String value) { + addCriterion("detail_address <=", value, "detailAddress"); + return (Criteria) this; + } + + public Criteria andDetailAddressLike(String value) { + addCriterion("detail_address like", value, "detailAddress"); + return (Criteria) this; + } + + public Criteria andDetailAddressNotLike(String value) { + addCriterion("detail_address not like", value, "detailAddress"); + return (Criteria) this; + } + + public Criteria andDetailAddressIn(List values) { + addCriterion("detail_address in", values, "detailAddress"); + return (Criteria) this; + } + + public Criteria andDetailAddressNotIn(List values) { + addCriterion("detail_address not in", values, "detailAddress"); + return (Criteria) this; + } + + public Criteria andDetailAddressBetween(String value1, String value2) { + addCriterion("detail_address between", value1, value2, "detailAddress"); + return (Criteria) this; + } + + public Criteria andDetailAddressNotBetween(String value1, String value2) { + addCriterion("detail_address not between", value1, value2, "detailAddress"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberRuleSetting.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberRuleSetting.java new file mode 100644 index 000000000..0bed67002 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberRuleSetting.java @@ -0,0 +1,103 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.math.BigDecimal; + +public class UmsMemberRuleSetting implements Serializable { + private Long id; + + @Schema(title = "连续签到天数") + private Integer continueSignDay; + + @Schema(title = "连续签到赠送数量") + private Integer continueSignPoint; + + @Schema(title = "每消费多少元获取1个点") + private BigDecimal consumePerPoint; + + @Schema(title = "最低获取点数的订单金额") + private BigDecimal lowOrderAmount; + + @Schema(title = "每笔订单最高获取点数") + private Integer maxPointPerOrder; + + @Schema(title = "类型: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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberRuleSettingExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberRuleSettingExample.java new file mode 100644 index 000000000..c445fb67a --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberRuleSettingExample.java @@ -0,0 +1,620 @@ +package com.macro.mall.model; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +public class UmsMemberRuleSettingExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public UmsMemberRuleSettingExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 andContinueSignDayIsNull() { + addCriterion("continue_sign_day is null"); + return (Criteria) this; + } + + public Criteria andContinueSignDayIsNotNull() { + addCriterion("continue_sign_day is not null"); + return (Criteria) this; + } + + public Criteria andContinueSignDayEqualTo(Integer value) { + addCriterion("continue_sign_day =", value, "continueSignDay"); + return (Criteria) this; + } + + public Criteria andContinueSignDayNotEqualTo(Integer value) { + addCriterion("continue_sign_day <>", value, "continueSignDay"); + return (Criteria) this; + } + + public Criteria andContinueSignDayGreaterThan(Integer value) { + addCriterion("continue_sign_day >", value, "continueSignDay"); + return (Criteria) this; + } + + public Criteria andContinueSignDayGreaterThanOrEqualTo(Integer value) { + addCriterion("continue_sign_day >=", value, "continueSignDay"); + return (Criteria) this; + } + + public Criteria andContinueSignDayLessThan(Integer value) { + addCriterion("continue_sign_day <", value, "continueSignDay"); + return (Criteria) this; + } + + public Criteria andContinueSignDayLessThanOrEqualTo(Integer value) { + addCriterion("continue_sign_day <=", value, "continueSignDay"); + return (Criteria) this; + } + + public Criteria andContinueSignDayIn(List values) { + addCriterion("continue_sign_day in", values, "continueSignDay"); + return (Criteria) this; + } + + public Criteria andContinueSignDayNotIn(List values) { + addCriterion("continue_sign_day not in", values, "continueSignDay"); + return (Criteria) this; + } + + public Criteria andContinueSignDayBetween(Integer value1, Integer value2) { + addCriterion("continue_sign_day between", value1, value2, "continueSignDay"); + return (Criteria) this; + } + + public Criteria andContinueSignDayNotBetween(Integer value1, Integer value2) { + addCriterion("continue_sign_day not between", value1, value2, "continueSignDay"); + return (Criteria) this; + } + + public Criteria andContinueSignPointIsNull() { + addCriterion("continue_sign_point is null"); + return (Criteria) this; + } + + public Criteria andContinueSignPointIsNotNull() { + addCriterion("continue_sign_point is not null"); + return (Criteria) this; + } + + public Criteria andContinueSignPointEqualTo(Integer value) { + addCriterion("continue_sign_point =", value, "continueSignPoint"); + return (Criteria) this; + } + + public Criteria andContinueSignPointNotEqualTo(Integer value) { + addCriterion("continue_sign_point <>", value, "continueSignPoint"); + return (Criteria) this; + } + + public Criteria andContinueSignPointGreaterThan(Integer value) { + addCriterion("continue_sign_point >", value, "continueSignPoint"); + return (Criteria) this; + } + + public Criteria andContinueSignPointGreaterThanOrEqualTo(Integer value) { + addCriterion("continue_sign_point >=", value, "continueSignPoint"); + return (Criteria) this; + } + + public Criteria andContinueSignPointLessThan(Integer value) { + addCriterion("continue_sign_point <", value, "continueSignPoint"); + return (Criteria) this; + } + + public Criteria andContinueSignPointLessThanOrEqualTo(Integer value) { + addCriterion("continue_sign_point <=", value, "continueSignPoint"); + return (Criteria) this; + } + + public Criteria andContinueSignPointIn(List values) { + addCriterion("continue_sign_point in", values, "continueSignPoint"); + return (Criteria) this; + } + + public Criteria andContinueSignPointNotIn(List values) { + addCriterion("continue_sign_point not in", values, "continueSignPoint"); + return (Criteria) this; + } + + public Criteria andContinueSignPointBetween(Integer value1, Integer value2) { + addCriterion("continue_sign_point between", value1, value2, "continueSignPoint"); + return (Criteria) this; + } + + public Criteria andContinueSignPointNotBetween(Integer value1, Integer value2) { + addCriterion("continue_sign_point not between", value1, value2, "continueSignPoint"); + return (Criteria) this; + } + + public Criteria andConsumePerPointIsNull() { + addCriterion("consume_per_point is null"); + return (Criteria) this; + } + + public Criteria andConsumePerPointIsNotNull() { + addCriterion("consume_per_point is not null"); + return (Criteria) this; + } + + public Criteria andConsumePerPointEqualTo(BigDecimal value) { + addCriterion("consume_per_point =", value, "consumePerPoint"); + return (Criteria) this; + } + + public Criteria andConsumePerPointNotEqualTo(BigDecimal value) { + addCriterion("consume_per_point <>", value, "consumePerPoint"); + return (Criteria) this; + } + + public Criteria andConsumePerPointGreaterThan(BigDecimal value) { + addCriterion("consume_per_point >", value, "consumePerPoint"); + return (Criteria) this; + } + + public Criteria andConsumePerPointGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("consume_per_point >=", value, "consumePerPoint"); + return (Criteria) this; + } + + public Criteria andConsumePerPointLessThan(BigDecimal value) { + addCriterion("consume_per_point <", value, "consumePerPoint"); + return (Criteria) this; + } + + public Criteria andConsumePerPointLessThanOrEqualTo(BigDecimal value) { + addCriterion("consume_per_point <=", value, "consumePerPoint"); + return (Criteria) this; + } + + public Criteria andConsumePerPointIn(List values) { + addCriterion("consume_per_point in", values, "consumePerPoint"); + return (Criteria) this; + } + + public Criteria andConsumePerPointNotIn(List values) { + addCriterion("consume_per_point not in", values, "consumePerPoint"); + return (Criteria) this; + } + + public Criteria andConsumePerPointBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("consume_per_point between", value1, value2, "consumePerPoint"); + return (Criteria) this; + } + + public Criteria andConsumePerPointNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("consume_per_point not between", value1, value2, "consumePerPoint"); + return (Criteria) this; + } + + public Criteria andLowOrderAmountIsNull() { + addCriterion("low_order_amount is null"); + return (Criteria) this; + } + + public Criteria andLowOrderAmountIsNotNull() { + addCriterion("low_order_amount is not null"); + return (Criteria) this; + } + + public Criteria andLowOrderAmountEqualTo(BigDecimal value) { + addCriterion("low_order_amount =", value, "lowOrderAmount"); + return (Criteria) this; + } + + public Criteria andLowOrderAmountNotEqualTo(BigDecimal value) { + addCriterion("low_order_amount <>", value, "lowOrderAmount"); + return (Criteria) this; + } + + public Criteria andLowOrderAmountGreaterThan(BigDecimal value) { + addCriterion("low_order_amount >", value, "lowOrderAmount"); + return (Criteria) this; + } + + public Criteria andLowOrderAmountGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("low_order_amount >=", value, "lowOrderAmount"); + return (Criteria) this; + } + + public Criteria andLowOrderAmountLessThan(BigDecimal value) { + addCriterion("low_order_amount <", value, "lowOrderAmount"); + return (Criteria) this; + } + + public Criteria andLowOrderAmountLessThanOrEqualTo(BigDecimal value) { + addCriterion("low_order_amount <=", value, "lowOrderAmount"); + return (Criteria) this; + } + + public Criteria andLowOrderAmountIn(List values) { + addCriterion("low_order_amount in", values, "lowOrderAmount"); + return (Criteria) this; + } + + public Criteria andLowOrderAmountNotIn(List values) { + addCriterion("low_order_amount not in", values, "lowOrderAmount"); + return (Criteria) this; + } + + public Criteria andLowOrderAmountBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("low_order_amount between", value1, value2, "lowOrderAmount"); + return (Criteria) this; + } + + public Criteria andLowOrderAmountNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("low_order_amount not between", value1, value2, "lowOrderAmount"); + return (Criteria) this; + } + + public Criteria andMaxPointPerOrderIsNull() { + addCriterion("max_point_per_order is null"); + return (Criteria) this; + } + + public Criteria andMaxPointPerOrderIsNotNull() { + addCriterion("max_point_per_order is not null"); + return (Criteria) this; + } + + public Criteria andMaxPointPerOrderEqualTo(Integer value) { + addCriterion("max_point_per_order =", value, "maxPointPerOrder"); + return (Criteria) this; + } + + public Criteria andMaxPointPerOrderNotEqualTo(Integer value) { + addCriterion("max_point_per_order <>", value, "maxPointPerOrder"); + return (Criteria) this; + } + + public Criteria andMaxPointPerOrderGreaterThan(Integer value) { + addCriterion("max_point_per_order >", value, "maxPointPerOrder"); + return (Criteria) this; + } + + public Criteria andMaxPointPerOrderGreaterThanOrEqualTo(Integer value) { + addCriterion("max_point_per_order >=", value, "maxPointPerOrder"); + return (Criteria) this; + } + + public Criteria andMaxPointPerOrderLessThan(Integer value) { + addCriterion("max_point_per_order <", value, "maxPointPerOrder"); + return (Criteria) this; + } + + public Criteria andMaxPointPerOrderLessThanOrEqualTo(Integer value) { + addCriterion("max_point_per_order <=", value, "maxPointPerOrder"); + return (Criteria) this; + } + + public Criteria andMaxPointPerOrderIn(List values) { + addCriterion("max_point_per_order in", values, "maxPointPerOrder"); + return (Criteria) this; + } + + public Criteria andMaxPointPerOrderNotIn(List values) { + addCriterion("max_point_per_order not in", values, "maxPointPerOrder"); + return (Criteria) this; + } + + public Criteria andMaxPointPerOrderBetween(Integer value1, Integer value2) { + addCriterion("max_point_per_order between", value1, value2, "maxPointPerOrder"); + return (Criteria) this; + } + + public Criteria andMaxPointPerOrderNotBetween(Integer value1, Integer value2) { + addCriterion("max_point_per_order not between", value1, value2, "maxPointPerOrder"); + 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 values) { + addCriterion("type in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberStatisticsInfo.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberStatisticsInfo.java new file mode 100644 index 000000000..a9f6900c8 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberStatisticsInfo.java @@ -0,0 +1,206 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +public class UmsMemberStatisticsInfo implements Serializable { + private Long id; + + private Long memberId; + + @Schema(title = "累计消费金额") + private BigDecimal consumeAmount; + + @Schema(title = "订单数量") + private Integer orderCount; + + @Schema(title = "优惠券数量") + private Integer couponCount; + + @Schema(title = "评价数") + private Integer commentCount; + + @Schema(title = "退货数量") + private Integer returnOrderCount; + + @Schema(title = "登录次数") + private Integer loginCount; + + @Schema(title = "关注数量") + private Integer attendCount; + + @Schema(title = "粉丝数量") + private Integer fansCount; + + private Integer collectProductCount; + + private Integer collectSubjectCount; + + private Integer collectTopicCount; + + private Integer collectCommentCount; + + private Integer inviteFriendCount; + + @Schema(title = "最后一次下订单时间") + 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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberStatisticsInfoExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberStatisticsInfoExample.java new file mode 100644 index 000000000..c615b9b09 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberStatisticsInfoExample.java @@ -0,0 +1,1161 @@ +package com.macro.mall.model; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class UmsMemberStatisticsInfoExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public UmsMemberStatisticsInfoExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("member_id in", values, "memberId"); + return (Criteria) this; + } + + public Criteria andMemberIdNotIn(List 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 andConsumeAmountIsNull() { + addCriterion("consume_amount is null"); + return (Criteria) this; + } + + public Criteria andConsumeAmountIsNotNull() { + addCriterion("consume_amount is not null"); + return (Criteria) this; + } + + public Criteria andConsumeAmountEqualTo(BigDecimal value) { + addCriterion("consume_amount =", value, "consumeAmount"); + return (Criteria) this; + } + + public Criteria andConsumeAmountNotEqualTo(BigDecimal value) { + addCriterion("consume_amount <>", value, "consumeAmount"); + return (Criteria) this; + } + + public Criteria andConsumeAmountGreaterThan(BigDecimal value) { + addCriterion("consume_amount >", value, "consumeAmount"); + return (Criteria) this; + } + + public Criteria andConsumeAmountGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("consume_amount >=", value, "consumeAmount"); + return (Criteria) this; + } + + public Criteria andConsumeAmountLessThan(BigDecimal value) { + addCriterion("consume_amount <", value, "consumeAmount"); + return (Criteria) this; + } + + public Criteria andConsumeAmountLessThanOrEqualTo(BigDecimal value) { + addCriterion("consume_amount <=", value, "consumeAmount"); + return (Criteria) this; + } + + public Criteria andConsumeAmountIn(List values) { + addCriterion("consume_amount in", values, "consumeAmount"); + return (Criteria) this; + } + + public Criteria andConsumeAmountNotIn(List values) { + addCriterion("consume_amount not in", values, "consumeAmount"); + return (Criteria) this; + } + + public Criteria andConsumeAmountBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("consume_amount between", value1, value2, "consumeAmount"); + return (Criteria) this; + } + + public Criteria andConsumeAmountNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("consume_amount not between", value1, value2, "consumeAmount"); + return (Criteria) this; + } + + public Criteria andOrderCountIsNull() { + addCriterion("order_count is null"); + return (Criteria) this; + } + + public Criteria andOrderCountIsNotNull() { + addCriterion("order_count is not null"); + return (Criteria) this; + } + + public Criteria andOrderCountEqualTo(Integer value) { + addCriterion("order_count =", value, "orderCount"); + return (Criteria) this; + } + + public Criteria andOrderCountNotEqualTo(Integer value) { + addCriterion("order_count <>", value, "orderCount"); + return (Criteria) this; + } + + public Criteria andOrderCountGreaterThan(Integer value) { + addCriterion("order_count >", value, "orderCount"); + return (Criteria) this; + } + + public Criteria andOrderCountGreaterThanOrEqualTo(Integer value) { + addCriterion("order_count >=", value, "orderCount"); + return (Criteria) this; + } + + public Criteria andOrderCountLessThan(Integer value) { + addCriterion("order_count <", value, "orderCount"); + return (Criteria) this; + } + + public Criteria andOrderCountLessThanOrEqualTo(Integer value) { + addCriterion("order_count <=", value, "orderCount"); + return (Criteria) this; + } + + public Criteria andOrderCountIn(List values) { + addCriterion("order_count in", values, "orderCount"); + return (Criteria) this; + } + + public Criteria andOrderCountNotIn(List values) { + addCriterion("order_count not in", values, "orderCount"); + return (Criteria) this; + } + + public Criteria andOrderCountBetween(Integer value1, Integer value2) { + addCriterion("order_count between", value1, value2, "orderCount"); + return (Criteria) this; + } + + public Criteria andOrderCountNotBetween(Integer value1, Integer value2) { + addCriterion("order_count not between", value1, value2, "orderCount"); + return (Criteria) this; + } + + public Criteria andCouponCountIsNull() { + addCriterion("coupon_count is null"); + return (Criteria) this; + } + + public Criteria andCouponCountIsNotNull() { + addCriterion("coupon_count is not null"); + return (Criteria) this; + } + + public Criteria andCouponCountEqualTo(Integer value) { + addCriterion("coupon_count =", value, "couponCount"); + return (Criteria) this; + } + + public Criteria andCouponCountNotEqualTo(Integer value) { + addCriterion("coupon_count <>", value, "couponCount"); + return (Criteria) this; + } + + public Criteria andCouponCountGreaterThan(Integer value) { + addCriterion("coupon_count >", value, "couponCount"); + return (Criteria) this; + } + + public Criteria andCouponCountGreaterThanOrEqualTo(Integer value) { + addCriterion("coupon_count >=", value, "couponCount"); + return (Criteria) this; + } + + public Criteria andCouponCountLessThan(Integer value) { + addCriterion("coupon_count <", value, "couponCount"); + return (Criteria) this; + } + + public Criteria andCouponCountLessThanOrEqualTo(Integer value) { + addCriterion("coupon_count <=", value, "couponCount"); + return (Criteria) this; + } + + public Criteria andCouponCountIn(List values) { + addCriterion("coupon_count in", values, "couponCount"); + return (Criteria) this; + } + + public Criteria andCouponCountNotIn(List values) { + addCriterion("coupon_count not in", values, "couponCount"); + return (Criteria) this; + } + + public Criteria andCouponCountBetween(Integer value1, Integer value2) { + addCriterion("coupon_count between", value1, value2, "couponCount"); + return (Criteria) this; + } + + public Criteria andCouponCountNotBetween(Integer value1, Integer value2) { + addCriterion("coupon_count not between", value1, value2, "couponCount"); + return (Criteria) this; + } + + public Criteria andCommentCountIsNull() { + addCriterion("comment_count is null"); + return (Criteria) this; + } + + public Criteria andCommentCountIsNotNull() { + addCriterion("comment_count is not null"); + return (Criteria) this; + } + + public Criteria andCommentCountEqualTo(Integer value) { + addCriterion("comment_count =", value, "commentCount"); + return (Criteria) this; + } + + public Criteria andCommentCountNotEqualTo(Integer value) { + addCriterion("comment_count <>", value, "commentCount"); + return (Criteria) this; + } + + public Criteria andCommentCountGreaterThan(Integer value) { + addCriterion("comment_count >", value, "commentCount"); + return (Criteria) this; + } + + public Criteria andCommentCountGreaterThanOrEqualTo(Integer value) { + addCriterion("comment_count >=", value, "commentCount"); + return (Criteria) this; + } + + public Criteria andCommentCountLessThan(Integer value) { + addCriterion("comment_count <", value, "commentCount"); + return (Criteria) this; + } + + public Criteria andCommentCountLessThanOrEqualTo(Integer value) { + addCriterion("comment_count <=", value, "commentCount"); + return (Criteria) this; + } + + public Criteria andCommentCountIn(List values) { + addCriterion("comment_count in", values, "commentCount"); + return (Criteria) this; + } + + public Criteria andCommentCountNotIn(List values) { + addCriterion("comment_count not in", values, "commentCount"); + return (Criteria) this; + } + + public Criteria andCommentCountBetween(Integer value1, Integer value2) { + addCriterion("comment_count between", value1, value2, "commentCount"); + return (Criteria) this; + } + + public Criteria andCommentCountNotBetween(Integer value1, Integer value2) { + addCriterion("comment_count not between", value1, value2, "commentCount"); + return (Criteria) this; + } + + public Criteria andReturnOrderCountIsNull() { + addCriterion("return_order_count is null"); + return (Criteria) this; + } + + public Criteria andReturnOrderCountIsNotNull() { + addCriterion("return_order_count is not null"); + return (Criteria) this; + } + + public Criteria andReturnOrderCountEqualTo(Integer value) { + addCriterion("return_order_count =", value, "returnOrderCount"); + return (Criteria) this; + } + + public Criteria andReturnOrderCountNotEqualTo(Integer value) { + addCriterion("return_order_count <>", value, "returnOrderCount"); + return (Criteria) this; + } + + public Criteria andReturnOrderCountGreaterThan(Integer value) { + addCriterion("return_order_count >", value, "returnOrderCount"); + return (Criteria) this; + } + + public Criteria andReturnOrderCountGreaterThanOrEqualTo(Integer value) { + addCriterion("return_order_count >=", value, "returnOrderCount"); + return (Criteria) this; + } + + public Criteria andReturnOrderCountLessThan(Integer value) { + addCriterion("return_order_count <", value, "returnOrderCount"); + return (Criteria) this; + } + + public Criteria andReturnOrderCountLessThanOrEqualTo(Integer value) { + addCriterion("return_order_count <=", value, "returnOrderCount"); + return (Criteria) this; + } + + public Criteria andReturnOrderCountIn(List values) { + addCriterion("return_order_count in", values, "returnOrderCount"); + return (Criteria) this; + } + + public Criteria andReturnOrderCountNotIn(List values) { + addCriterion("return_order_count not in", values, "returnOrderCount"); + return (Criteria) this; + } + + public Criteria andReturnOrderCountBetween(Integer value1, Integer value2) { + addCriterion("return_order_count between", value1, value2, "returnOrderCount"); + return (Criteria) this; + } + + public Criteria andReturnOrderCountNotBetween(Integer value1, Integer value2) { + addCriterion("return_order_count not between", value1, value2, "returnOrderCount"); + return (Criteria) this; + } + + public Criteria andLoginCountIsNull() { + addCriterion("login_count is null"); + return (Criteria) this; + } + + public Criteria andLoginCountIsNotNull() { + addCriterion("login_count is not null"); + return (Criteria) this; + } + + public Criteria andLoginCountEqualTo(Integer value) { + addCriterion("login_count =", value, "loginCount"); + return (Criteria) this; + } + + public Criteria andLoginCountNotEqualTo(Integer value) { + addCriterion("login_count <>", value, "loginCount"); + return (Criteria) this; + } + + public Criteria andLoginCountGreaterThan(Integer value) { + addCriterion("login_count >", value, "loginCount"); + return (Criteria) this; + } + + public Criteria andLoginCountGreaterThanOrEqualTo(Integer value) { + addCriterion("login_count >=", value, "loginCount"); + return (Criteria) this; + } + + public Criteria andLoginCountLessThan(Integer value) { + addCriterion("login_count <", value, "loginCount"); + return (Criteria) this; + } + + public Criteria andLoginCountLessThanOrEqualTo(Integer value) { + addCriterion("login_count <=", value, "loginCount"); + return (Criteria) this; + } + + public Criteria andLoginCountIn(List values) { + addCriterion("login_count in", values, "loginCount"); + return (Criteria) this; + } + + public Criteria andLoginCountNotIn(List values) { + addCriterion("login_count not in", values, "loginCount"); + return (Criteria) this; + } + + public Criteria andLoginCountBetween(Integer value1, Integer value2) { + addCriterion("login_count between", value1, value2, "loginCount"); + return (Criteria) this; + } + + public Criteria andLoginCountNotBetween(Integer value1, Integer value2) { + addCriterion("login_count not between", value1, value2, "loginCount"); + return (Criteria) this; + } + + public Criteria andAttendCountIsNull() { + addCriterion("attend_count is null"); + return (Criteria) this; + } + + public Criteria andAttendCountIsNotNull() { + addCriterion("attend_count is not null"); + return (Criteria) this; + } + + public Criteria andAttendCountEqualTo(Integer value) { + addCriterion("attend_count =", value, "attendCount"); + return (Criteria) this; + } + + public Criteria andAttendCountNotEqualTo(Integer value) { + addCriterion("attend_count <>", value, "attendCount"); + return (Criteria) this; + } + + public Criteria andAttendCountGreaterThan(Integer value) { + addCriterion("attend_count >", value, "attendCount"); + return (Criteria) this; + } + + public Criteria andAttendCountGreaterThanOrEqualTo(Integer value) { + addCriterion("attend_count >=", value, "attendCount"); + return (Criteria) this; + } + + public Criteria andAttendCountLessThan(Integer value) { + addCriterion("attend_count <", value, "attendCount"); + return (Criteria) this; + } + + public Criteria andAttendCountLessThanOrEqualTo(Integer value) { + addCriterion("attend_count <=", value, "attendCount"); + return (Criteria) this; + } + + public Criteria andAttendCountIn(List values) { + addCriterion("attend_count in", values, "attendCount"); + return (Criteria) this; + } + + public Criteria andAttendCountNotIn(List values) { + addCriterion("attend_count not in", values, "attendCount"); + return (Criteria) this; + } + + public Criteria andAttendCountBetween(Integer value1, Integer value2) { + addCriterion("attend_count between", value1, value2, "attendCount"); + return (Criteria) this; + } + + public Criteria andAttendCountNotBetween(Integer value1, Integer value2) { + addCriterion("attend_count not between", value1, value2, "attendCount"); + return (Criteria) this; + } + + public Criteria andFansCountIsNull() { + addCriterion("fans_count is null"); + return (Criteria) this; + } + + public Criteria andFansCountIsNotNull() { + addCriterion("fans_count is not null"); + return (Criteria) this; + } + + public Criteria andFansCountEqualTo(Integer value) { + addCriterion("fans_count =", value, "fansCount"); + return (Criteria) this; + } + + public Criteria andFansCountNotEqualTo(Integer value) { + addCriterion("fans_count <>", value, "fansCount"); + return (Criteria) this; + } + + public Criteria andFansCountGreaterThan(Integer value) { + addCriterion("fans_count >", value, "fansCount"); + return (Criteria) this; + } + + public Criteria andFansCountGreaterThanOrEqualTo(Integer value) { + addCriterion("fans_count >=", value, "fansCount"); + return (Criteria) this; + } + + public Criteria andFansCountLessThan(Integer value) { + addCriterion("fans_count <", value, "fansCount"); + return (Criteria) this; + } + + public Criteria andFansCountLessThanOrEqualTo(Integer value) { + addCriterion("fans_count <=", value, "fansCount"); + return (Criteria) this; + } + + public Criteria andFansCountIn(List values) { + addCriterion("fans_count in", values, "fansCount"); + return (Criteria) this; + } + + public Criteria andFansCountNotIn(List values) { + addCriterion("fans_count not in", values, "fansCount"); + return (Criteria) this; + } + + public Criteria andFansCountBetween(Integer value1, Integer value2) { + addCriterion("fans_count between", value1, value2, "fansCount"); + return (Criteria) this; + } + + public Criteria andFansCountNotBetween(Integer value1, Integer value2) { + addCriterion("fans_count not between", value1, value2, "fansCount"); + return (Criteria) this; + } + + public Criteria andCollectProductCountIsNull() { + addCriterion("collect_product_count is null"); + return (Criteria) this; + } + + public Criteria andCollectProductCountIsNotNull() { + addCriterion("collect_product_count is not null"); + return (Criteria) this; + } + + public Criteria andCollectProductCountEqualTo(Integer value) { + addCriterion("collect_product_count =", value, "collectProductCount"); + return (Criteria) this; + } + + public Criteria andCollectProductCountNotEqualTo(Integer value) { + addCriterion("collect_product_count <>", value, "collectProductCount"); + return (Criteria) this; + } + + public Criteria andCollectProductCountGreaterThan(Integer value) { + addCriterion("collect_product_count >", value, "collectProductCount"); + return (Criteria) this; + } + + public Criteria andCollectProductCountGreaterThanOrEqualTo(Integer value) { + addCriterion("collect_product_count >=", value, "collectProductCount"); + return (Criteria) this; + } + + public Criteria andCollectProductCountLessThan(Integer value) { + addCriterion("collect_product_count <", value, "collectProductCount"); + return (Criteria) this; + } + + public Criteria andCollectProductCountLessThanOrEqualTo(Integer value) { + addCriterion("collect_product_count <=", value, "collectProductCount"); + return (Criteria) this; + } + + public Criteria andCollectProductCountIn(List values) { + addCriterion("collect_product_count in", values, "collectProductCount"); + return (Criteria) this; + } + + public Criteria andCollectProductCountNotIn(List values) { + addCriterion("collect_product_count not in", values, "collectProductCount"); + return (Criteria) this; + } + + public Criteria andCollectProductCountBetween(Integer value1, Integer value2) { + addCriterion("collect_product_count between", value1, value2, "collectProductCount"); + return (Criteria) this; + } + + public Criteria andCollectProductCountNotBetween(Integer value1, Integer value2) { + addCriterion("collect_product_count not between", value1, value2, "collectProductCount"); + return (Criteria) this; + } + + public Criteria andCollectSubjectCountIsNull() { + addCriterion("collect_subject_count is null"); + return (Criteria) this; + } + + public Criteria andCollectSubjectCountIsNotNull() { + addCriterion("collect_subject_count is not null"); + return (Criteria) this; + } + + public Criteria andCollectSubjectCountEqualTo(Integer value) { + addCriterion("collect_subject_count =", value, "collectSubjectCount"); + return (Criteria) this; + } + + public Criteria andCollectSubjectCountNotEqualTo(Integer value) { + addCriterion("collect_subject_count <>", value, "collectSubjectCount"); + return (Criteria) this; + } + + public Criteria andCollectSubjectCountGreaterThan(Integer value) { + addCriterion("collect_subject_count >", value, "collectSubjectCount"); + return (Criteria) this; + } + + public Criteria andCollectSubjectCountGreaterThanOrEqualTo(Integer value) { + addCriterion("collect_subject_count >=", value, "collectSubjectCount"); + return (Criteria) this; + } + + public Criteria andCollectSubjectCountLessThan(Integer value) { + addCriterion("collect_subject_count <", value, "collectSubjectCount"); + return (Criteria) this; + } + + public Criteria andCollectSubjectCountLessThanOrEqualTo(Integer value) { + addCriterion("collect_subject_count <=", value, "collectSubjectCount"); + return (Criteria) this; + } + + public Criteria andCollectSubjectCountIn(List values) { + addCriterion("collect_subject_count in", values, "collectSubjectCount"); + return (Criteria) this; + } + + public Criteria andCollectSubjectCountNotIn(List values) { + addCriterion("collect_subject_count not in", values, "collectSubjectCount"); + return (Criteria) this; + } + + public Criteria andCollectSubjectCountBetween(Integer value1, Integer value2) { + addCriterion("collect_subject_count between", value1, value2, "collectSubjectCount"); + return (Criteria) this; + } + + public Criteria andCollectSubjectCountNotBetween(Integer value1, Integer value2) { + addCriterion("collect_subject_count not between", value1, value2, "collectSubjectCount"); + return (Criteria) this; + } + + public Criteria andCollectTopicCountIsNull() { + addCriterion("collect_topic_count is null"); + return (Criteria) this; + } + + public Criteria andCollectTopicCountIsNotNull() { + addCriterion("collect_topic_count is not null"); + return (Criteria) this; + } + + public Criteria andCollectTopicCountEqualTo(Integer value) { + addCriterion("collect_topic_count =", value, "collectTopicCount"); + return (Criteria) this; + } + + public Criteria andCollectTopicCountNotEqualTo(Integer value) { + addCriterion("collect_topic_count <>", value, "collectTopicCount"); + return (Criteria) this; + } + + public Criteria andCollectTopicCountGreaterThan(Integer value) { + addCriterion("collect_topic_count >", value, "collectTopicCount"); + return (Criteria) this; + } + + public Criteria andCollectTopicCountGreaterThanOrEqualTo(Integer value) { + addCriterion("collect_topic_count >=", value, "collectTopicCount"); + return (Criteria) this; + } + + public Criteria andCollectTopicCountLessThan(Integer value) { + addCriterion("collect_topic_count <", value, "collectTopicCount"); + return (Criteria) this; + } + + public Criteria andCollectTopicCountLessThanOrEqualTo(Integer value) { + addCriterion("collect_topic_count <=", value, "collectTopicCount"); + return (Criteria) this; + } + + public Criteria andCollectTopicCountIn(List values) { + addCriterion("collect_topic_count in", values, "collectTopicCount"); + return (Criteria) this; + } + + public Criteria andCollectTopicCountNotIn(List values) { + addCriterion("collect_topic_count not in", values, "collectTopicCount"); + return (Criteria) this; + } + + public Criteria andCollectTopicCountBetween(Integer value1, Integer value2) { + addCriterion("collect_topic_count between", value1, value2, "collectTopicCount"); + return (Criteria) this; + } + + public Criteria andCollectTopicCountNotBetween(Integer value1, Integer value2) { + addCriterion("collect_topic_count not between", value1, value2, "collectTopicCount"); + return (Criteria) this; + } + + public Criteria andCollectCommentCountIsNull() { + addCriterion("collect_comment_count is null"); + return (Criteria) this; + } + + public Criteria andCollectCommentCountIsNotNull() { + addCriterion("collect_comment_count is not null"); + return (Criteria) this; + } + + public Criteria andCollectCommentCountEqualTo(Integer value) { + addCriterion("collect_comment_count =", value, "collectCommentCount"); + return (Criteria) this; + } + + public Criteria andCollectCommentCountNotEqualTo(Integer value) { + addCriterion("collect_comment_count <>", value, "collectCommentCount"); + return (Criteria) this; + } + + public Criteria andCollectCommentCountGreaterThan(Integer value) { + addCriterion("collect_comment_count >", value, "collectCommentCount"); + return (Criteria) this; + } + + public Criteria andCollectCommentCountGreaterThanOrEqualTo(Integer value) { + addCriterion("collect_comment_count >=", value, "collectCommentCount"); + return (Criteria) this; + } + + public Criteria andCollectCommentCountLessThan(Integer value) { + addCriterion("collect_comment_count <", value, "collectCommentCount"); + return (Criteria) this; + } + + public Criteria andCollectCommentCountLessThanOrEqualTo(Integer value) { + addCriterion("collect_comment_count <=", value, "collectCommentCount"); + return (Criteria) this; + } + + public Criteria andCollectCommentCountIn(List values) { + addCriterion("collect_comment_count in", values, "collectCommentCount"); + return (Criteria) this; + } + + public Criteria andCollectCommentCountNotIn(List values) { + addCriterion("collect_comment_count not in", values, "collectCommentCount"); + return (Criteria) this; + } + + public Criteria andCollectCommentCountBetween(Integer value1, Integer value2) { + addCriterion("collect_comment_count between", value1, value2, "collectCommentCount"); + return (Criteria) this; + } + + public Criteria andCollectCommentCountNotBetween(Integer value1, Integer value2) { + addCriterion("collect_comment_count not between", value1, value2, "collectCommentCount"); + return (Criteria) this; + } + + public Criteria andInviteFriendCountIsNull() { + addCriterion("invite_friend_count is null"); + return (Criteria) this; + } + + public Criteria andInviteFriendCountIsNotNull() { + addCriterion("invite_friend_count is not null"); + return (Criteria) this; + } + + public Criteria andInviteFriendCountEqualTo(Integer value) { + addCriterion("invite_friend_count =", value, "inviteFriendCount"); + return (Criteria) this; + } + + public Criteria andInviteFriendCountNotEqualTo(Integer value) { + addCriterion("invite_friend_count <>", value, "inviteFriendCount"); + return (Criteria) this; + } + + public Criteria andInviteFriendCountGreaterThan(Integer value) { + addCriterion("invite_friend_count >", value, "inviteFriendCount"); + return (Criteria) this; + } + + public Criteria andInviteFriendCountGreaterThanOrEqualTo(Integer value) { + addCriterion("invite_friend_count >=", value, "inviteFriendCount"); + return (Criteria) this; + } + + public Criteria andInviteFriendCountLessThan(Integer value) { + addCriterion("invite_friend_count <", value, "inviteFriendCount"); + return (Criteria) this; + } + + public Criteria andInviteFriendCountLessThanOrEqualTo(Integer value) { + addCriterion("invite_friend_count <=", value, "inviteFriendCount"); + return (Criteria) this; + } + + public Criteria andInviteFriendCountIn(List values) { + addCriterion("invite_friend_count in", values, "inviteFriendCount"); + return (Criteria) this; + } + + public Criteria andInviteFriendCountNotIn(List values) { + addCriterion("invite_friend_count not in", values, "inviteFriendCount"); + return (Criteria) this; + } + + public Criteria andInviteFriendCountBetween(Integer value1, Integer value2) { + addCriterion("invite_friend_count between", value1, value2, "inviteFriendCount"); + return (Criteria) this; + } + + public Criteria andInviteFriendCountNotBetween(Integer value1, Integer value2) { + addCriterion("invite_friend_count not between", value1, value2, "inviteFriendCount"); + return (Criteria) this; + } + + public Criteria andRecentOrderTimeIsNull() { + addCriterion("recent_order_time is null"); + return (Criteria) this; + } + + public Criteria andRecentOrderTimeIsNotNull() { + addCriterion("recent_order_time is not null"); + return (Criteria) this; + } + + public Criteria andRecentOrderTimeEqualTo(Date value) { + addCriterion("recent_order_time =", value, "recentOrderTime"); + return (Criteria) this; + } + + public Criteria andRecentOrderTimeNotEqualTo(Date value) { + addCriterion("recent_order_time <>", value, "recentOrderTime"); + return (Criteria) this; + } + + public Criteria andRecentOrderTimeGreaterThan(Date value) { + addCriterion("recent_order_time >", value, "recentOrderTime"); + return (Criteria) this; + } + + public Criteria andRecentOrderTimeGreaterThanOrEqualTo(Date value) { + addCriterion("recent_order_time >=", value, "recentOrderTime"); + return (Criteria) this; + } + + public Criteria andRecentOrderTimeLessThan(Date value) { + addCriterion("recent_order_time <", value, "recentOrderTime"); + return (Criteria) this; + } + + public Criteria andRecentOrderTimeLessThanOrEqualTo(Date value) { + addCriterion("recent_order_time <=", value, "recentOrderTime"); + return (Criteria) this; + } + + public Criteria andRecentOrderTimeIn(List values) { + addCriterion("recent_order_time in", values, "recentOrderTime"); + return (Criteria) this; + } + + public Criteria andRecentOrderTimeNotIn(List values) { + addCriterion("recent_order_time not in", values, "recentOrderTime"); + return (Criteria) this; + } + + public Criteria andRecentOrderTimeBetween(Date value1, Date value2) { + addCriterion("recent_order_time between", value1, value2, "recentOrderTime"); + return (Criteria) this; + } + + public Criteria andRecentOrderTimeNotBetween(Date value1, Date value2) { + addCriterion("recent_order_time not between", value1, value2, "recentOrderTime"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberTag.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberTag.java new file mode 100644 index 000000000..b822627a3 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberTag.java @@ -0,0 +1,66 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.math.BigDecimal; + +public class UmsMemberTag implements Serializable { + private Long id; + + private String name; + + @Schema(title = "自动打标签完成订单数量") + private Integer finishOrderCount; + + @Schema(title = "自动打标签完成订单金额") + private BigDecimal finishOrderAmount; + + 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 getFinishOrderCount() { + return finishOrderCount; + } + + public void setFinishOrderCount(Integer finishOrderCount) { + this.finishOrderCount = finishOrderCount; + } + + public BigDecimal getFinishOrderAmount() { + return finishOrderAmount; + } + + public void setFinishOrderAmount(BigDecimal finishOrderAmount) { + this.finishOrderAmount = finishOrderAmount; + } + + @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(", finishOrderCount=").append(finishOrderCount); + sb.append(", finishOrderAmount=").append(finishOrderAmount); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberTagExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberTagExample.java new file mode 100644 index 000000000..c45777f2b --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberTagExample.java @@ -0,0 +1,450 @@ +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 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 values) { + addCriterion("finish_order_count in", values, "finishOrderCount"); + return (Criteria) this; + } + + public Criteria andFinishOrderCountNotIn(List 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 values) { + addCriterion("finish_order_amount in", values, "finishOrderAmount"); + return (Criteria) this; + } + + public Criteria andFinishOrderAmountNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberTask.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberTask.java new file mode 100644 index 000000000..2c6220412 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberTask.java @@ -0,0 +1,77 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class UmsMemberTask implements Serializable { + private Long id; + + private String name; + + @Schema(title = "赠送成长值") + private Integer growth; + + @Schema(title = "赠送积分") + private Integer intergration; + + @Schema(title = "任务类型: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 String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getGrowth() { + return growth; + } + + public void setGrowth(Integer growth) { + this.growth = growth; + } + + public Integer getIntergration() { + return intergration; + } + + public void setIntergration(Integer intergration) { + this.intergration = intergration; + } + + 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(", name=").append(name); + sb.append(", growth=").append(growth); + sb.append(", intergration=").append(intergration); + sb.append(", type=").append(type); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberTaskExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberTaskExample.java new file mode 100644 index 000000000..f57ad1e6d --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMemberTaskExample.java @@ -0,0 +1,509 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class UmsMemberTaskExample { + protected String orderByClause; + + protected boolean distinct; + + protected List 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 values) { + addCriterion("growth in", values, "growth"); + return (Criteria) this; + } + + public Criteria andGrowthNotIn(List 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 values) { + addCriterion("intergration in", values, "intergration"); + return (Criteria) this; + } + + public Criteria andIntergrationNotIn(List 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 values) { + addCriterion("type in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMenu.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMenu.java new file mode 100644 index 000000000..fb6cc2961 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMenu.java @@ -0,0 +1,127 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.util.Date; + +public class UmsMenu implements Serializable { + private Long id; + + @Schema(title = "父级ID") + private Long parentId; + + @Schema(title = "创建时间") + private Date createTime; + + @Schema(title = "菜单名称") + private String title; + + @Schema(title = "菜单级数") + private Integer level; + + @Schema(title = "菜单排序") + private Integer sort; + + @Schema(title = "前端名称") + private String name; + + @Schema(title = "前端图标") + private String icon; + + @Schema(title = "前端隐藏") + 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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMenuExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMenuExample.java new file mode 100644 index 000000000..2245e6a3e --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsMenuExample.java @@ -0,0 +1,770 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class UmsMenuExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public UmsMenuExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 andParentIdIsNull() { + addCriterion("parent_id is null"); + return (Criteria) this; + } + + public Criteria andParentIdIsNotNull() { + addCriterion("parent_id is not null"); + return (Criteria) this; + } + + public Criteria andParentIdEqualTo(Long value) { + addCriterion("parent_id =", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotEqualTo(Long value) { + addCriterion("parent_id <>", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdGreaterThan(Long value) { + addCriterion("parent_id >", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdGreaterThanOrEqualTo(Long value) { + addCriterion("parent_id >=", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdLessThan(Long value) { + addCriterion("parent_id <", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdLessThanOrEqualTo(Long value) { + addCriterion("parent_id <=", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdIn(List values) { + addCriterion("parent_id in", values, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotIn(List values) { + addCriterion("parent_id not in", values, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdBetween(Long value1, Long value2) { + addCriterion("parent_id between", value1, value2, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotBetween(Long value1, Long value2) { + addCriterion("parent_id not between", value1, value2, "parentId"); + 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 andTitleIsNull() { + addCriterion("title is null"); + return (Criteria) this; + } + + public Criteria andTitleIsNotNull() { + addCriterion("title is not null"); + return (Criteria) this; + } + + public Criteria andTitleEqualTo(String value) { + addCriterion("title =", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotEqualTo(String value) { + addCriterion("title <>", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleGreaterThan(String value) { + addCriterion("title >", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleGreaterThanOrEqualTo(String value) { + addCriterion("title >=", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLessThan(String value) { + addCriterion("title <", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLessThanOrEqualTo(String value) { + addCriterion("title <=", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleLike(String value) { + addCriterion("title like", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotLike(String value) { + addCriterion("title not like", value, "title"); + return (Criteria) this; + } + + public Criteria andTitleIn(List values) { + addCriterion("title in", values, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotIn(List values) { + addCriterion("title not in", values, "title"); + return (Criteria) this; + } + + public Criteria andTitleBetween(String value1, String value2) { + addCriterion("title between", value1, value2, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotBetween(String value1, String value2) { + addCriterion("title not between", value1, value2, "title"); + return (Criteria) this; + } + + public Criteria andLevelIsNull() { + addCriterion("level is null"); + return (Criteria) this; + } + + public Criteria andLevelIsNotNull() { + addCriterion("level is not null"); + return (Criteria) this; + } + + public Criteria andLevelEqualTo(Integer value) { + addCriterion("level =", value, "level"); + return (Criteria) this; + } + + public Criteria andLevelNotEqualTo(Integer value) { + addCriterion("level <>", value, "level"); + return (Criteria) this; + } + + public Criteria andLevelGreaterThan(Integer value) { + addCriterion("level >", value, "level"); + return (Criteria) this; + } + + public Criteria andLevelGreaterThanOrEqualTo(Integer value) { + addCriterion("level >=", value, "level"); + return (Criteria) this; + } + + public Criteria andLevelLessThan(Integer value) { + addCriterion("level <", value, "level"); + return (Criteria) this; + } + + public Criteria andLevelLessThanOrEqualTo(Integer value) { + addCriterion("level <=", value, "level"); + return (Criteria) this; + } + + public Criteria andLevelIn(List values) { + addCriterion("level in", values, "level"); + return (Criteria) this; + } + + public Criteria andLevelNotIn(List values) { + addCriterion("level not in", values, "level"); + return (Criteria) this; + } + + public Criteria andLevelBetween(Integer value1, Integer value2) { + addCriterion("level between", value1, value2, "level"); + return (Criteria) this; + } + + public Criteria andLevelNotBetween(Integer value1, Integer value2) { + addCriterion("level not between", value1, value2, "level"); + 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 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 values) { + addCriterion("icon in", values, "icon"); + return (Criteria) this; + } + + public Criteria andIconNotIn(List 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 andHiddenIsNull() { + addCriterion("hidden is null"); + return (Criteria) this; + } + + public Criteria andHiddenIsNotNull() { + addCriterion("hidden is not null"); + return (Criteria) this; + } + + public Criteria andHiddenEqualTo(Integer value) { + addCriterion("hidden =", value, "hidden"); + return (Criteria) this; + } + + public Criteria andHiddenNotEqualTo(Integer value) { + addCriterion("hidden <>", value, "hidden"); + return (Criteria) this; + } + + public Criteria andHiddenGreaterThan(Integer value) { + addCriterion("hidden >", value, "hidden"); + return (Criteria) this; + } + + public Criteria andHiddenGreaterThanOrEqualTo(Integer value) { + addCriterion("hidden >=", value, "hidden"); + return (Criteria) this; + } + + public Criteria andHiddenLessThan(Integer value) { + addCriterion("hidden <", value, "hidden"); + return (Criteria) this; + } + + public Criteria andHiddenLessThanOrEqualTo(Integer value) { + addCriterion("hidden <=", value, "hidden"); + return (Criteria) this; + } + + public Criteria andHiddenIn(List values) { + addCriterion("hidden in", values, "hidden"); + return (Criteria) this; + } + + public Criteria andHiddenNotIn(List values) { + addCriterion("hidden not in", values, "hidden"); + return (Criteria) this; + } + + public Criteria andHiddenBetween(Integer value1, Integer value2) { + addCriterion("hidden between", value1, value2, "hidden"); + return (Criteria) this; + } + + public Criteria andHiddenNotBetween(Integer value1, Integer value2) { + addCriterion("hidden not between", value1, value2, "hidden"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsPermission.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsPermission.java new file mode 100644 index 000000000..0df583a57 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsPermission.java @@ -0,0 +1,139 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.util.Date; + +public class UmsPermission implements Serializable { + private Long id; + + @Schema(title = "父级权限id") + private Long pid; + + @Schema(title = "名称") + private String name; + + @Schema(title = "权限值") + private String value; + + @Schema(title = "图标") + private String icon; + + @Schema(title = "权限类型:0->目录;1->菜单;2->按钮(接口绑定权限)") + private Integer type; + + @Schema(title = "前端资源路径") + private String uri; + + @Schema(title = "启用状态;0->禁用;1->启用") + private Integer status; + + @Schema(title = "创建时间") + private Date createTime; + + @Schema(title = "排序") + 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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsPermissionExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsPermissionExample.java new file mode 100644 index 000000000..ad28b6e92 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsPermissionExample.java @@ -0,0 +1,840 @@ +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 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("pid in", values, "pid"); + return (Criteria) this; + } + + public Criteria andPidNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 values) { + addCriterion("value in", values, "value"); + return (Criteria) this; + } + + public Criteria andValueNotIn(List 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 values) { + addCriterion("icon in", values, "icon"); + return (Criteria) this; + } + + public Criteria andIconNotIn(List 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 values) { + addCriterion("type in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotIn(List 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 values) { + addCriterion("uri in", values, "uri"); + return (Criteria) this; + } + + public Criteria andUriNotIn(List 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 values) { + addCriterion("status in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsResource.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsResource.java new file mode 100644 index 000000000..bc0b6e288 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsResource.java @@ -0,0 +1,91 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.util.Date; + +public class UmsResource implements Serializable { + private Long id; + + @Schema(title = "创建时间") + private Date createTime; + + @Schema(title = "资源名称") + private String name; + + @Schema(title = "资源URL") + private String url; + + @Schema(title = "描述") + private String description; + + @Schema(title = "资源分类ID") + private Long categoryId; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Long getCategoryId() { + return categoryId; + } + + public void setCategoryId(Long categoryId) { + this.categoryId = categoryId; + } + + @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(", createTime=").append(createTime); + sb.append(", name=").append(name); + sb.append(", url=").append(url); + sb.append(", description=").append(description); + sb.append(", categoryId=").append(categoryId); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsResourceCategory.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsResourceCategory.java new file mode 100644 index 000000000..1fe4d5c99 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsResourceCategory.java @@ -0,0 +1,67 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.util.Date; + +public class UmsResourceCategory implements Serializable { + private Long id; + + @Schema(title = "创建时间") + private Date createTime; + + @Schema(title = "分类名称") + private String name; + + @Schema(title = "排序") + private Integer sort; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + 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; + } + + @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(", createTime=").append(createTime); + sb.append(", name=").append(name); + sb.append(", sort=").append(sort); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsResourceCategoryExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsResourceCategoryExample.java new file mode 100644 index 000000000..4c1651eca --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsResourceCategoryExample.java @@ -0,0 +1,450 @@ +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 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsResourceExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsResourceExample.java new file mode 100644 index 000000000..9993cfe0a --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsResourceExample.java @@ -0,0 +1,590 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class UmsResourceExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public UmsResourceExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 andUrlIsNull() { + addCriterion("url is null"); + return (Criteria) this; + } + + public Criteria andUrlIsNotNull() { + addCriterion("url is not null"); + return (Criteria) this; + } + + public Criteria andUrlEqualTo(String value) { + addCriterion("url =", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotEqualTo(String value) { + addCriterion("url <>", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlGreaterThan(String value) { + addCriterion("url >", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlGreaterThanOrEqualTo(String value) { + addCriterion("url >=", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlLessThan(String value) { + addCriterion("url <", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlLessThanOrEqualTo(String value) { + addCriterion("url <=", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlLike(String value) { + addCriterion("url like", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotLike(String value) { + addCriterion("url not like", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlIn(List values) { + addCriterion("url in", values, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotIn(List values) { + addCriterion("url not in", values, "url"); + return (Criteria) this; + } + + public Criteria andUrlBetween(String value1, String value2) { + addCriterion("url between", value1, value2, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotBetween(String value1, String value2) { + addCriterion("url not between", value1, value2, "url"); + 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 values) { + addCriterion("description in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotIn(List 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 andCategoryIdIsNull() { + addCriterion("category_id is null"); + return (Criteria) this; + } + + public Criteria andCategoryIdIsNotNull() { + addCriterion("category_id is not null"); + return (Criteria) this; + } + + public Criteria andCategoryIdEqualTo(Long value) { + addCriterion("category_id =", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdNotEqualTo(Long value) { + addCriterion("category_id <>", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdGreaterThan(Long value) { + addCriterion("category_id >", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdGreaterThanOrEqualTo(Long value) { + addCriterion("category_id >=", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdLessThan(Long value) { + addCriterion("category_id <", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdLessThanOrEqualTo(Long value) { + addCriterion("category_id <=", value, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdIn(List values) { + addCriterion("category_id in", values, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdNotIn(List values) { + addCriterion("category_id not in", values, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdBetween(Long value1, Long value2) { + addCriterion("category_id between", value1, value2, "categoryId"); + return (Criteria) this; + } + + public Criteria andCategoryIdNotBetween(Long value1, Long value2) { + addCriterion("category_id not between", value1, value2, "categoryId"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRole.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRole.java new file mode 100644 index 000000000..cc42f65c2 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRole.java @@ -0,0 +1,102 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; +import java.util.Date; + +public class UmsRole implements Serializable { + private Long id; + + @Schema(title = "名称") + private String name; + + @Schema(title = "描述") + private String description; + + @Schema(title = "后台用户数量") + private Integer adminCount; + + @Schema(title = "创建时间") + private Date createTime; + + @Schema(title = "启用状态:0->禁用;1->启用") + private Integer status; + + private Integer sort; + + 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 getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getAdminCount() { + return adminCount; + } + + public void setAdminCount(Integer adminCount) { + this.adminCount = adminCount; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + 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(", name=").append(name); + sb.append(", description=").append(description); + sb.append(", adminCount=").append(adminCount); + sb.append(", createTime=").append(createTime); + sb.append(", status=").append(status); + sb.append(", sort=").append(sort); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRoleExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRoleExample.java new file mode 100644 index 000000000..621ff444e --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRoleExample.java @@ -0,0 +1,640 @@ +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 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 values) { + addCriterion("description in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotIn(List 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 values) { + addCriterion("admin_count in", values, "adminCount"); + return (Criteria) this; + } + + public Criteria andAdminCountNotIn(List 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 values) { + addCriterion("status in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRoleMenuRelation.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRoleMenuRelation.java new file mode 100644 index 000000000..5064df2e5 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRoleMenuRelation.java @@ -0,0 +1,54 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class UmsRoleMenuRelation implements Serializable { + private Long id; + + @Schema(title = "角色ID") + private Long roleId; + + @Schema(title = "菜单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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRoleMenuRelationExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRoleMenuRelationExample.java new file mode 100644 index 000000000..5da206d9e --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRoleMenuRelationExample.java @@ -0,0 +1,379 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class UmsRoleMenuRelationExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public UmsRoleMenuRelationExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("role_id in", values, "roleId"); + return (Criteria) this; + } + + public Criteria andRoleIdNotIn(List 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 andMenuIdIsNull() { + addCriterion("menu_id is null"); + return (Criteria) this; + } + + public Criteria andMenuIdIsNotNull() { + addCriterion("menu_id is not null"); + return (Criteria) this; + } + + public Criteria andMenuIdEqualTo(Long value) { + addCriterion("menu_id =", value, "menuId"); + return (Criteria) this; + } + + public Criteria andMenuIdNotEqualTo(Long value) { + addCriterion("menu_id <>", value, "menuId"); + return (Criteria) this; + } + + public Criteria andMenuIdGreaterThan(Long value) { + addCriterion("menu_id >", value, "menuId"); + return (Criteria) this; + } + + public Criteria andMenuIdGreaterThanOrEqualTo(Long value) { + addCriterion("menu_id >=", value, "menuId"); + return (Criteria) this; + } + + public Criteria andMenuIdLessThan(Long value) { + addCriterion("menu_id <", value, "menuId"); + return (Criteria) this; + } + + public Criteria andMenuIdLessThanOrEqualTo(Long value) { + addCriterion("menu_id <=", value, "menuId"); + return (Criteria) this; + } + + public Criteria andMenuIdIn(List values) { + addCriterion("menu_id in", values, "menuId"); + return (Criteria) this; + } + + public Criteria andMenuIdNotIn(List values) { + addCriterion("menu_id not in", values, "menuId"); + return (Criteria) this; + } + + public Criteria andMenuIdBetween(Long value1, Long value2) { + addCriterion("menu_id between", value1, value2, "menuId"); + return (Criteria) this; + } + + public Criteria andMenuIdNotBetween(Long value1, Long value2) { + addCriterion("menu_id not between", value1, value2, "menuId"); + 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRolePermissionRelation.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRolePermissionRelation.java new file mode 100644 index 000000000..423482eec --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRolePermissionRelation.java @@ -0,0 +1,52 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class UmsRolePermissionRelation implements Serializable { + private Long id; + + private Long roleId; + + private Long permissionId; + + 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 getPermissionId() { + return permissionId; + } + + public void setPermissionId(Long permissionId) { + this.permissionId = permissionId; + } + + @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(", permissionId=").append(permissionId); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRolePermissionRelationExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRolePermissionRelationExample.java new file mode 100644 index 000000000..45250afc6 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRolePermissionRelationExample.java @@ -0,0 +1,379 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class UmsRolePermissionRelationExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public UmsRolePermissionRelationExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("role_id in", values, "roleId"); + return (Criteria) this; + } + + public Criteria andRoleIdNotIn(List 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 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 values) { + addCriterion("permission_id in", values, "permissionId"); + return (Criteria) this; + } + + public Criteria andPermissionIdNotIn(List 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 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRoleResourceRelation.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRoleResourceRelation.java new file mode 100644 index 000000000..93de8cea4 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRoleResourceRelation.java @@ -0,0 +1,54 @@ +package com.macro.mall.model; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.Serializable; + +public class UmsRoleResourceRelation implements Serializable { + private Long id; + + @Schema(title = "角色ID") + private Long roleId; + + @Schema(title = "资源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(); + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRoleResourceRelationExample.java b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRoleResourceRelationExample.java new file mode 100644 index 000000000..da9b7af5d --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/java/com/macro/mall/model/UmsRoleResourceRelationExample.java @@ -0,0 +1,379 @@ +package com.macro.mall.model; + +import java.util.ArrayList; +import java.util.List; + +public class UmsRoleResourceRelationExample { + protected String orderByClause; + + protected boolean distinct; + + protected List 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("role_id in", values, "roleId"); + return (Criteria) this; + } + + public Criteria andRoleIdNotIn(List 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 values) { + addCriterion("resource_id in", values, "resourceId"); + return (Criteria) this; + } + + public Criteria andResourceIdNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsHelpCategoryMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsHelpCategoryMapper.xml new file mode 100644 index 000000000..1457ce8e5 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsHelpCategoryMapper.xml @@ -0,0 +1,226 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, icon, help_count, show_status, sort + + + + + delete from cms_help_category + where id = #{id,jdbcType=BIGINT} + + + delete from cms_help_category + + + + + + + SELECT LAST_INSERT_ID() + + insert into cms_help_category (name, icon, help_count, + show_status, sort) + values (#{name,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, #{helpCount,jdbcType=INTEGER}, + #{showStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}) + + + + SELECT LAST_INSERT_ID() + + insert into cms_help_category + + + name, + + + icon, + + + help_count, + + + show_status, + + + sort, + + + + + #{name,jdbcType=VARCHAR}, + + + #{icon,jdbcType=VARCHAR}, + + + #{helpCount,jdbcType=INTEGER}, + + + #{showStatus,jdbcType=INTEGER}, + + + #{sort,jdbcType=INTEGER}, + + + + + + update cms_help_category + + + id = #{row.id,jdbcType=BIGINT}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + icon = #{row.icon,jdbcType=VARCHAR}, + + + help_count = #{row.helpCount,jdbcType=INTEGER}, + + + show_status = #{row.showStatus,jdbcType=INTEGER}, + + + sort = #{row.sort,jdbcType=INTEGER}, + + + + + + + + update cms_help_category + set id = #{row.id,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + icon = #{row.icon,jdbcType=VARCHAR}, + help_count = #{row.helpCount,jdbcType=INTEGER}, + show_status = #{row.showStatus,jdbcType=INTEGER}, + sort = #{row.sort,jdbcType=INTEGER} + + + + + + update cms_help_category + + + name = #{name,jdbcType=VARCHAR}, + + + icon = #{icon,jdbcType=VARCHAR}, + + + help_count = #{helpCount,jdbcType=INTEGER}, + + + show_status = #{showStatus,jdbcType=INTEGER}, + + + sort = #{sort,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update cms_help_category + set name = #{name,jdbcType=VARCHAR}, + icon = #{icon,jdbcType=VARCHAR}, + help_count = #{helpCount,jdbcType=INTEGER}, + show_status = #{showStatus,jdbcType=INTEGER}, + sort = #{sort,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsHelpMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsHelpMapper.xml new file mode 100644 index 000000000..68658ae6b --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsHelpMapper.xml @@ -0,0 +1,304 @@ + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, category_id, icon, title, show_status, create_time, read_count + + + content + + + + + + delete from cms_help + where id = #{id,jdbcType=BIGINT} + + + delete from cms_help + + + + + + + SELECT LAST_INSERT_ID() + + insert into cms_help (category_id, icon, title, + show_status, create_time, read_count, + content) + values (#{categoryId,jdbcType=BIGINT}, #{icon,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, + #{showStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{readCount,jdbcType=INTEGER}, + #{content,jdbcType=LONGVARCHAR}) + + + + SELECT LAST_INSERT_ID() + + insert into cms_help + + + category_id, + + + icon, + + + title, + + + show_status, + + + create_time, + + + read_count, + + + content, + + + + + #{categoryId,jdbcType=BIGINT}, + + + #{icon,jdbcType=VARCHAR}, + + + #{title,jdbcType=VARCHAR}, + + + #{showStatus,jdbcType=INTEGER}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{readCount,jdbcType=INTEGER}, + + + #{content,jdbcType=LONGVARCHAR}, + + + + + + update cms_help + + + id = #{row.id,jdbcType=BIGINT}, + + + category_id = #{row.categoryId,jdbcType=BIGINT}, + + + icon = #{row.icon,jdbcType=VARCHAR}, + + + title = #{row.title,jdbcType=VARCHAR}, + + + show_status = #{row.showStatus,jdbcType=INTEGER}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + read_count = #{row.readCount,jdbcType=INTEGER}, + + + content = #{row.content,jdbcType=LONGVARCHAR}, + + + + + + + + update cms_help + set id = #{row.id,jdbcType=BIGINT}, + category_id = #{row.categoryId,jdbcType=BIGINT}, + icon = #{row.icon,jdbcType=VARCHAR}, + title = #{row.title,jdbcType=VARCHAR}, + show_status = #{row.showStatus,jdbcType=INTEGER}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + read_count = #{row.readCount,jdbcType=INTEGER}, + content = #{row.content,jdbcType=LONGVARCHAR} + + + + + + update cms_help + set id = #{row.id,jdbcType=BIGINT}, + category_id = #{row.categoryId,jdbcType=BIGINT}, + icon = #{row.icon,jdbcType=VARCHAR}, + title = #{row.title,jdbcType=VARCHAR}, + show_status = #{row.showStatus,jdbcType=INTEGER}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + read_count = #{row.readCount,jdbcType=INTEGER} + + + + + + update cms_help + + + category_id = #{categoryId,jdbcType=BIGINT}, + + + icon = #{icon,jdbcType=VARCHAR}, + + + title = #{title,jdbcType=VARCHAR}, + + + show_status = #{showStatus,jdbcType=INTEGER}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + read_count = #{readCount,jdbcType=INTEGER}, + + + content = #{content,jdbcType=LONGVARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update cms_help + set category_id = #{categoryId,jdbcType=BIGINT}, + icon = #{icon,jdbcType=VARCHAR}, + title = #{title,jdbcType=VARCHAR}, + show_status = #{showStatus,jdbcType=INTEGER}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + read_count = #{readCount,jdbcType=INTEGER}, + content = #{content,jdbcType=LONGVARCHAR} + where id = #{id,jdbcType=BIGINT} + + + update cms_help + set category_id = #{categoryId,jdbcType=BIGINT}, + icon = #{icon,jdbcType=VARCHAR}, + title = #{title,jdbcType=VARCHAR}, + show_status = #{showStatus,jdbcType=INTEGER}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + read_count = #{readCount,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsMemberReportMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsMemberReportMapper.xml new file mode 100644 index 000000000..29e3e6bdc --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsMemberReportMapper.xml @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, report_type, report_member_name, create_time, report_object, report_status, handle_status, + note + + + + delete from cms_member_report + + + + + + + SELECT LAST_INSERT_ID() + + insert into cms_member_report (report_type, report_member_name, create_time, + report_object, report_status, handle_status, + note) + values (#{reportType,jdbcType=INTEGER}, #{reportMemberName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, + #{reportObject,jdbcType=VARCHAR}, #{reportStatus,jdbcType=INTEGER}, #{handleStatus,jdbcType=INTEGER}, + #{note,jdbcType=VARCHAR}) + + + + SELECT LAST_INSERT_ID() + + insert into cms_member_report + + + report_type, + + + report_member_name, + + + create_time, + + + report_object, + + + report_status, + + + handle_status, + + + note, + + + + + #{reportType,jdbcType=INTEGER}, + + + #{reportMemberName,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{reportObject,jdbcType=VARCHAR}, + + + #{reportStatus,jdbcType=INTEGER}, + + + #{handleStatus,jdbcType=INTEGER}, + + + #{note,jdbcType=VARCHAR}, + + + + + + update cms_member_report + + + id = #{row.id,jdbcType=BIGINT}, + + + report_type = #{row.reportType,jdbcType=INTEGER}, + + + report_member_name = #{row.reportMemberName,jdbcType=VARCHAR}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + report_object = #{row.reportObject,jdbcType=VARCHAR}, + + + report_status = #{row.reportStatus,jdbcType=INTEGER}, + + + handle_status = #{row.handleStatus,jdbcType=INTEGER}, + + + note = #{row.note,jdbcType=VARCHAR}, + + + + + + + + update cms_member_report + set id = #{row.id,jdbcType=BIGINT}, + report_type = #{row.reportType,jdbcType=INTEGER}, + report_member_name = #{row.reportMemberName,jdbcType=VARCHAR}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + report_object = #{row.reportObject,jdbcType=VARCHAR}, + report_status = #{row.reportStatus,jdbcType=INTEGER}, + handle_status = #{row.handleStatus,jdbcType=INTEGER}, + note = #{row.note,jdbcType=VARCHAR} + + + + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsPrefrenceAreaMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsPrefrenceAreaMapper.xml new file mode 100644 index 000000000..0994a1328 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsPrefrenceAreaMapper.xml @@ -0,0 +1,268 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, sub_title, sort, show_status + + + pic + + + + + + delete from cms_prefrence_area + where id = #{id,jdbcType=BIGINT} + + + delete from cms_prefrence_area + + + + + + + SELECT LAST_INSERT_ID() + + insert into cms_prefrence_area (name, sub_title, sort, + show_status, pic) + values (#{name,jdbcType=VARCHAR}, #{subTitle,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, + #{showStatus,jdbcType=INTEGER}, #{pic,jdbcType=VARBINARY}) + + + + SELECT LAST_INSERT_ID() + + insert into cms_prefrence_area + + + name, + + + sub_title, + + + sort, + + + show_status, + + + pic, + + + + + #{name,jdbcType=VARCHAR}, + + + #{subTitle,jdbcType=VARCHAR}, + + + #{sort,jdbcType=INTEGER}, + + + #{showStatus,jdbcType=INTEGER}, + + + #{pic,jdbcType=VARBINARY}, + + + + + + update cms_prefrence_area + + + id = #{row.id,jdbcType=BIGINT}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + sub_title = #{row.subTitle,jdbcType=VARCHAR}, + + + sort = #{row.sort,jdbcType=INTEGER}, + + + show_status = #{row.showStatus,jdbcType=INTEGER}, + + + pic = #{row.pic,jdbcType=VARBINARY}, + + + + + + + + update cms_prefrence_area + set id = #{row.id,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + sub_title = #{row.subTitle,jdbcType=VARCHAR}, + sort = #{row.sort,jdbcType=INTEGER}, + show_status = #{row.showStatus,jdbcType=INTEGER}, + pic = #{row.pic,jdbcType=VARBINARY} + + + + + + update cms_prefrence_area + set id = #{row.id,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + sub_title = #{row.subTitle,jdbcType=VARCHAR}, + sort = #{row.sort,jdbcType=INTEGER}, + show_status = #{row.showStatus,jdbcType=INTEGER} + + + + + + update cms_prefrence_area + + + name = #{name,jdbcType=VARCHAR}, + + + sub_title = #{subTitle,jdbcType=VARCHAR}, + + + sort = #{sort,jdbcType=INTEGER}, + + + show_status = #{showStatus,jdbcType=INTEGER}, + + + pic = #{pic,jdbcType=VARBINARY}, + + + where id = #{id,jdbcType=BIGINT} + + + update cms_prefrence_area + set name = #{name,jdbcType=VARCHAR}, + sub_title = #{subTitle,jdbcType=VARCHAR}, + sort = #{sort,jdbcType=INTEGER}, + show_status = #{showStatus,jdbcType=INTEGER}, + pic = #{pic,jdbcType=VARBINARY} + where id = #{id,jdbcType=BIGINT} + + + update cms_prefrence_area + set name = #{name,jdbcType=VARCHAR}, + sub_title = #{subTitle,jdbcType=VARCHAR}, + sort = #{sort,jdbcType=INTEGER}, + show_status = #{showStatus,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsPrefrenceAreaProductRelationMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsPrefrenceAreaProductRelationMapper.xml new file mode 100644 index 000000000..dff97c6c4 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsPrefrenceAreaProductRelationMapper.xml @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, prefrence_area_id, product_id + + + + + delete from cms_prefrence_area_product_relation + where id = #{id,jdbcType=BIGINT} + + + delete from cms_prefrence_area_product_relation + + + + + + + SELECT LAST_INSERT_ID() + + insert into cms_prefrence_area_product_relation (prefrence_area_id, product_id) + values (#{prefrenceAreaId,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}) + + + + SELECT LAST_INSERT_ID() + + insert into cms_prefrence_area_product_relation + + + prefrence_area_id, + + + product_id, + + + + + #{prefrenceAreaId,jdbcType=BIGINT}, + + + #{productId,jdbcType=BIGINT}, + + + + + + update cms_prefrence_area_product_relation + + + id = #{row.id,jdbcType=BIGINT}, + + + prefrence_area_id = #{row.prefrenceAreaId,jdbcType=BIGINT}, + + + product_id = #{row.productId,jdbcType=BIGINT}, + + + + + + + + update cms_prefrence_area_product_relation + set id = #{row.id,jdbcType=BIGINT}, + prefrence_area_id = #{row.prefrenceAreaId,jdbcType=BIGINT}, + product_id = #{row.productId,jdbcType=BIGINT} + + + + + + update cms_prefrence_area_product_relation + + + prefrence_area_id = #{prefrenceAreaId,jdbcType=BIGINT}, + + + product_id = #{productId,jdbcType=BIGINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update cms_prefrence_area_product_relation + set prefrence_area_id = #{prefrenceAreaId,jdbcType=BIGINT}, + product_id = #{productId,jdbcType=BIGINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectCategoryMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectCategoryMapper.xml new file mode 100644 index 000000000..af18a5240 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectCategoryMapper.xml @@ -0,0 +1,226 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, icon, subject_count, show_status, sort + + + + + delete from cms_subject_category + where id = #{id,jdbcType=BIGINT} + + + delete from cms_subject_category + + + + + + + SELECT LAST_INSERT_ID() + + insert into cms_subject_category (name, icon, subject_count, + show_status, sort) + values (#{name,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, #{subjectCount,jdbcType=INTEGER}, + #{showStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}) + + + + SELECT LAST_INSERT_ID() + + insert into cms_subject_category + + + name, + + + icon, + + + subject_count, + + + show_status, + + + sort, + + + + + #{name,jdbcType=VARCHAR}, + + + #{icon,jdbcType=VARCHAR}, + + + #{subjectCount,jdbcType=INTEGER}, + + + #{showStatus,jdbcType=INTEGER}, + + + #{sort,jdbcType=INTEGER}, + + + + + + update cms_subject_category + + + id = #{row.id,jdbcType=BIGINT}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + icon = #{row.icon,jdbcType=VARCHAR}, + + + subject_count = #{row.subjectCount,jdbcType=INTEGER}, + + + show_status = #{row.showStatus,jdbcType=INTEGER}, + + + sort = #{row.sort,jdbcType=INTEGER}, + + + + + + + + update cms_subject_category + set id = #{row.id,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + icon = #{row.icon,jdbcType=VARCHAR}, + subject_count = #{row.subjectCount,jdbcType=INTEGER}, + show_status = #{row.showStatus,jdbcType=INTEGER}, + sort = #{row.sort,jdbcType=INTEGER} + + + + + + update cms_subject_category + + + name = #{name,jdbcType=VARCHAR}, + + + icon = #{icon,jdbcType=VARCHAR}, + + + subject_count = #{subjectCount,jdbcType=INTEGER}, + + + show_status = #{showStatus,jdbcType=INTEGER}, + + + sort = #{sort,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update cms_subject_category + set name = #{name,jdbcType=VARCHAR}, + icon = #{icon,jdbcType=VARCHAR}, + subject_count = #{subjectCount,jdbcType=INTEGER}, + show_status = #{showStatus,jdbcType=INTEGER}, + sort = #{sort,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectCommentMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectCommentMapper.xml new file mode 100644 index 000000000..3bfa00bfb --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectCommentMapper.xml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, subject_id, member_nick_name, member_icon, content, create_time, show_status + + + + + delete from cms_subject_comment + where id = #{id,jdbcType=BIGINT} + + + delete from cms_subject_comment + + + + + + + SELECT LAST_INSERT_ID() + + insert into cms_subject_comment (subject_id, member_nick_name, member_icon, + content, create_time, show_status + ) + values (#{subjectId,jdbcType=BIGINT}, #{memberNickName,jdbcType=VARCHAR}, #{memberIcon,jdbcType=VARCHAR}, + #{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{showStatus,jdbcType=INTEGER} + ) + + + + SELECT LAST_INSERT_ID() + + insert into cms_subject_comment + + + subject_id, + + + member_nick_name, + + + member_icon, + + + content, + + + create_time, + + + show_status, + + + + + #{subjectId,jdbcType=BIGINT}, + + + #{memberNickName,jdbcType=VARCHAR}, + + + #{memberIcon,jdbcType=VARCHAR}, + + + #{content,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{showStatus,jdbcType=INTEGER}, + + + + + + update cms_subject_comment + + + id = #{row.id,jdbcType=BIGINT}, + + + subject_id = #{row.subjectId,jdbcType=BIGINT}, + + + member_nick_name = #{row.memberNickName,jdbcType=VARCHAR}, + + + member_icon = #{row.memberIcon,jdbcType=VARCHAR}, + + + content = #{row.content,jdbcType=VARCHAR}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + show_status = #{row.showStatus,jdbcType=INTEGER}, + + + + + + + + update cms_subject_comment + set id = #{row.id,jdbcType=BIGINT}, + subject_id = #{row.subjectId,jdbcType=BIGINT}, + member_nick_name = #{row.memberNickName,jdbcType=VARCHAR}, + member_icon = #{row.memberIcon,jdbcType=VARCHAR}, + content = #{row.content,jdbcType=VARCHAR}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + show_status = #{row.showStatus,jdbcType=INTEGER} + + + + + + update cms_subject_comment + + + subject_id = #{subjectId,jdbcType=BIGINT}, + + + member_nick_name = #{memberNickName,jdbcType=VARCHAR}, + + + member_icon = #{memberIcon,jdbcType=VARCHAR}, + + + content = #{content,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + show_status = #{showStatus,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update cms_subject_comment + set subject_id = #{subjectId,jdbcType=BIGINT}, + member_nick_name = #{memberNickName,jdbcType=VARCHAR}, + member_icon = #{memberIcon,jdbcType=VARCHAR}, + content = #{content,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + show_status = #{showStatus,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectMapper.xml new file mode 100644 index 000000000..ffabc0069 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectMapper.xml @@ -0,0 +1,447 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, category_id, title, pic, product_count, recommend_status, create_time, collect_count, + read_count, comment_count, album_pics, description, show_status, forward_count, category_name + + + content + + + + + + delete from cms_subject + where id = #{id,jdbcType=BIGINT} + + + delete from cms_subject + + + + + + + SELECT LAST_INSERT_ID() + + insert into cms_subject (category_id, title, pic, + product_count, recommend_status, create_time, + collect_count, read_count, comment_count, + album_pics, description, show_status, + forward_count, category_name, content + ) + values (#{categoryId,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR}, + #{productCount,jdbcType=INTEGER}, #{recommendStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, + #{collectCount,jdbcType=INTEGER}, #{readCount,jdbcType=INTEGER}, #{commentCount,jdbcType=INTEGER}, + #{albumPics,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{showStatus,jdbcType=INTEGER}, + #{forwardCount,jdbcType=INTEGER}, #{categoryName,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARCHAR} + ) + + + + SELECT LAST_INSERT_ID() + + insert into cms_subject + + + category_id, + + + title, + + + pic, + + + product_count, + + + recommend_status, + + + create_time, + + + collect_count, + + + read_count, + + + comment_count, + + + album_pics, + + + description, + + + show_status, + + + forward_count, + + + category_name, + + + content, + + + + + #{categoryId,jdbcType=BIGINT}, + + + #{title,jdbcType=VARCHAR}, + + + #{pic,jdbcType=VARCHAR}, + + + #{productCount,jdbcType=INTEGER}, + + + #{recommendStatus,jdbcType=INTEGER}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{collectCount,jdbcType=INTEGER}, + + + #{readCount,jdbcType=INTEGER}, + + + #{commentCount,jdbcType=INTEGER}, + + + #{albumPics,jdbcType=VARCHAR}, + + + #{description,jdbcType=VARCHAR}, + + + #{showStatus,jdbcType=INTEGER}, + + + #{forwardCount,jdbcType=INTEGER}, + + + #{categoryName,jdbcType=VARCHAR}, + + + #{content,jdbcType=LONGVARCHAR}, + + + + + + update cms_subject + + + id = #{row.id,jdbcType=BIGINT}, + + + category_id = #{row.categoryId,jdbcType=BIGINT}, + + + title = #{row.title,jdbcType=VARCHAR}, + + + pic = #{row.pic,jdbcType=VARCHAR}, + + + product_count = #{row.productCount,jdbcType=INTEGER}, + + + recommend_status = #{row.recommendStatus,jdbcType=INTEGER}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + collect_count = #{row.collectCount,jdbcType=INTEGER}, + + + read_count = #{row.readCount,jdbcType=INTEGER}, + + + comment_count = #{row.commentCount,jdbcType=INTEGER}, + + + album_pics = #{row.albumPics,jdbcType=VARCHAR}, + + + description = #{row.description,jdbcType=VARCHAR}, + + + show_status = #{row.showStatus,jdbcType=INTEGER}, + + + forward_count = #{row.forwardCount,jdbcType=INTEGER}, + + + category_name = #{row.categoryName,jdbcType=VARCHAR}, + + + content = #{row.content,jdbcType=LONGVARCHAR}, + + + + + + + + update cms_subject + set id = #{row.id,jdbcType=BIGINT}, + category_id = #{row.categoryId,jdbcType=BIGINT}, + title = #{row.title,jdbcType=VARCHAR}, + pic = #{row.pic,jdbcType=VARCHAR}, + product_count = #{row.productCount,jdbcType=INTEGER}, + recommend_status = #{row.recommendStatus,jdbcType=INTEGER}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + collect_count = #{row.collectCount,jdbcType=INTEGER}, + read_count = #{row.readCount,jdbcType=INTEGER}, + comment_count = #{row.commentCount,jdbcType=INTEGER}, + album_pics = #{row.albumPics,jdbcType=VARCHAR}, + description = #{row.description,jdbcType=VARCHAR}, + show_status = #{row.showStatus,jdbcType=INTEGER}, + forward_count = #{row.forwardCount,jdbcType=INTEGER}, + category_name = #{row.categoryName,jdbcType=VARCHAR}, + content = #{row.content,jdbcType=LONGVARCHAR} + + + + + + update cms_subject + set id = #{row.id,jdbcType=BIGINT}, + category_id = #{row.categoryId,jdbcType=BIGINT}, + title = #{row.title,jdbcType=VARCHAR}, + pic = #{row.pic,jdbcType=VARCHAR}, + product_count = #{row.productCount,jdbcType=INTEGER}, + recommend_status = #{row.recommendStatus,jdbcType=INTEGER}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + collect_count = #{row.collectCount,jdbcType=INTEGER}, + read_count = #{row.readCount,jdbcType=INTEGER}, + comment_count = #{row.commentCount,jdbcType=INTEGER}, + album_pics = #{row.albumPics,jdbcType=VARCHAR}, + description = #{row.description,jdbcType=VARCHAR}, + show_status = #{row.showStatus,jdbcType=INTEGER}, + forward_count = #{row.forwardCount,jdbcType=INTEGER}, + category_name = #{row.categoryName,jdbcType=VARCHAR} + + + + + + update cms_subject + + + category_id = #{categoryId,jdbcType=BIGINT}, + + + title = #{title,jdbcType=VARCHAR}, + + + pic = #{pic,jdbcType=VARCHAR}, + + + product_count = #{productCount,jdbcType=INTEGER}, + + + recommend_status = #{recommendStatus,jdbcType=INTEGER}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + collect_count = #{collectCount,jdbcType=INTEGER}, + + + read_count = #{readCount,jdbcType=INTEGER}, + + + comment_count = #{commentCount,jdbcType=INTEGER}, + + + album_pics = #{albumPics,jdbcType=VARCHAR}, + + + description = #{description,jdbcType=VARCHAR}, + + + show_status = #{showStatus,jdbcType=INTEGER}, + + + forward_count = #{forwardCount,jdbcType=INTEGER}, + + + category_name = #{categoryName,jdbcType=VARCHAR}, + + + content = #{content,jdbcType=LONGVARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update cms_subject + set category_id = #{categoryId,jdbcType=BIGINT}, + title = #{title,jdbcType=VARCHAR}, + pic = #{pic,jdbcType=VARCHAR}, + product_count = #{productCount,jdbcType=INTEGER}, + recommend_status = #{recommendStatus,jdbcType=INTEGER}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + collect_count = #{collectCount,jdbcType=INTEGER}, + read_count = #{readCount,jdbcType=INTEGER}, + comment_count = #{commentCount,jdbcType=INTEGER}, + album_pics = #{albumPics,jdbcType=VARCHAR}, + description = #{description,jdbcType=VARCHAR}, + show_status = #{showStatus,jdbcType=INTEGER}, + forward_count = #{forwardCount,jdbcType=INTEGER}, + category_name = #{categoryName,jdbcType=VARCHAR}, + content = #{content,jdbcType=LONGVARCHAR} + where id = #{id,jdbcType=BIGINT} + + + update cms_subject + set category_id = #{categoryId,jdbcType=BIGINT}, + title = #{title,jdbcType=VARCHAR}, + pic = #{pic,jdbcType=VARCHAR}, + product_count = #{productCount,jdbcType=INTEGER}, + recommend_status = #{recommendStatus,jdbcType=INTEGER}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + collect_count = #{collectCount,jdbcType=INTEGER}, + read_count = #{readCount,jdbcType=INTEGER}, + comment_count = #{commentCount,jdbcType=INTEGER}, + album_pics = #{albumPics,jdbcType=VARCHAR}, + description = #{description,jdbcType=VARCHAR}, + show_status = #{showStatus,jdbcType=INTEGER}, + forward_count = #{forwardCount,jdbcType=INTEGER}, + category_name = #{categoryName,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectProductRelationMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectProductRelationMapper.xml new file mode 100644 index 000000000..558b69f2c --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsSubjectProductRelationMapper.xml @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, subject_id, product_id + + + + + delete from cms_subject_product_relation + where id = #{id,jdbcType=BIGINT} + + + delete from cms_subject_product_relation + + + + + + + SELECT LAST_INSERT_ID() + + insert into cms_subject_product_relation (subject_id, product_id) + values (#{subjectId,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}) + + + + SELECT LAST_INSERT_ID() + + insert into cms_subject_product_relation + + + subject_id, + + + product_id, + + + + + #{subjectId,jdbcType=BIGINT}, + + + #{productId,jdbcType=BIGINT}, + + + + + + update cms_subject_product_relation + + + id = #{row.id,jdbcType=BIGINT}, + + + subject_id = #{row.subjectId,jdbcType=BIGINT}, + + + product_id = #{row.productId,jdbcType=BIGINT}, + + + + + + + + update cms_subject_product_relation + set id = #{row.id,jdbcType=BIGINT}, + subject_id = #{row.subjectId,jdbcType=BIGINT}, + product_id = #{row.productId,jdbcType=BIGINT} + + + + + + update cms_subject_product_relation + + + subject_id = #{subjectId,jdbcType=BIGINT}, + + + product_id = #{productId,jdbcType=BIGINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update cms_subject_product_relation + set subject_id = #{subjectId,jdbcType=BIGINT}, + product_id = #{productId,jdbcType=BIGINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsTopicCategoryMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsTopicCategoryMapper.xml new file mode 100644 index 000000000..a25d1bcff --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsTopicCategoryMapper.xml @@ -0,0 +1,226 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, icon, subject_count, show_status, sort + + + + + delete from cms_topic_category + where id = #{id,jdbcType=BIGINT} + + + delete from cms_topic_category + + + + + + + SELECT LAST_INSERT_ID() + + insert into cms_topic_category (name, icon, subject_count, + show_status, sort) + values (#{name,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, #{subjectCount,jdbcType=INTEGER}, + #{showStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}) + + + + SELECT LAST_INSERT_ID() + + insert into cms_topic_category + + + name, + + + icon, + + + subject_count, + + + show_status, + + + sort, + + + + + #{name,jdbcType=VARCHAR}, + + + #{icon,jdbcType=VARCHAR}, + + + #{subjectCount,jdbcType=INTEGER}, + + + #{showStatus,jdbcType=INTEGER}, + + + #{sort,jdbcType=INTEGER}, + + + + + + update cms_topic_category + + + id = #{row.id,jdbcType=BIGINT}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + icon = #{row.icon,jdbcType=VARCHAR}, + + + subject_count = #{row.subjectCount,jdbcType=INTEGER}, + + + show_status = #{row.showStatus,jdbcType=INTEGER}, + + + sort = #{row.sort,jdbcType=INTEGER}, + + + + + + + + update cms_topic_category + set id = #{row.id,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + icon = #{row.icon,jdbcType=VARCHAR}, + subject_count = #{row.subjectCount,jdbcType=INTEGER}, + show_status = #{row.showStatus,jdbcType=INTEGER}, + sort = #{row.sort,jdbcType=INTEGER} + + + + + + update cms_topic_category + + + name = #{name,jdbcType=VARCHAR}, + + + icon = #{icon,jdbcType=VARCHAR}, + + + subject_count = #{subjectCount,jdbcType=INTEGER}, + + + show_status = #{showStatus,jdbcType=INTEGER}, + + + sort = #{sort,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update cms_topic_category + set name = #{name,jdbcType=VARCHAR}, + icon = #{icon,jdbcType=VARCHAR}, + subject_count = #{subjectCount,jdbcType=INTEGER}, + show_status = #{showStatus,jdbcType=INTEGER}, + sort = #{sort,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsTopicCommentMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsTopicCommentMapper.xml new file mode 100644 index 000000000..17dc668b7 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsTopicCommentMapper.xml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, member_nick_name, topic_id, member_icon, content, create_time, show_status + + + + + delete from cms_topic_comment + where id = #{id,jdbcType=BIGINT} + + + delete from cms_topic_comment + + + + + + + SELECT LAST_INSERT_ID() + + insert into cms_topic_comment (member_nick_name, topic_id, member_icon, + content, create_time, show_status + ) + values (#{memberNickName,jdbcType=VARCHAR}, #{topicId,jdbcType=BIGINT}, #{memberIcon,jdbcType=VARCHAR}, + #{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{showStatus,jdbcType=INTEGER} + ) + + + + SELECT LAST_INSERT_ID() + + insert into cms_topic_comment + + + member_nick_name, + + + topic_id, + + + member_icon, + + + content, + + + create_time, + + + show_status, + + + + + #{memberNickName,jdbcType=VARCHAR}, + + + #{topicId,jdbcType=BIGINT}, + + + #{memberIcon,jdbcType=VARCHAR}, + + + #{content,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{showStatus,jdbcType=INTEGER}, + + + + + + update cms_topic_comment + + + id = #{row.id,jdbcType=BIGINT}, + + + member_nick_name = #{row.memberNickName,jdbcType=VARCHAR}, + + + topic_id = #{row.topicId,jdbcType=BIGINT}, + + + member_icon = #{row.memberIcon,jdbcType=VARCHAR}, + + + content = #{row.content,jdbcType=VARCHAR}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + show_status = #{row.showStatus,jdbcType=INTEGER}, + + + + + + + + update cms_topic_comment + set id = #{row.id,jdbcType=BIGINT}, + member_nick_name = #{row.memberNickName,jdbcType=VARCHAR}, + topic_id = #{row.topicId,jdbcType=BIGINT}, + member_icon = #{row.memberIcon,jdbcType=VARCHAR}, + content = #{row.content,jdbcType=VARCHAR}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + show_status = #{row.showStatus,jdbcType=INTEGER} + + + + + + update cms_topic_comment + + + member_nick_name = #{memberNickName,jdbcType=VARCHAR}, + + + topic_id = #{topicId,jdbcType=BIGINT}, + + + member_icon = #{memberIcon,jdbcType=VARCHAR}, + + + content = #{content,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + show_status = #{showStatus,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update cms_topic_comment + set member_nick_name = #{memberNickName,jdbcType=VARCHAR}, + topic_id = #{topicId,jdbcType=BIGINT}, + member_icon = #{memberIcon,jdbcType=VARCHAR}, + content = #{content,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + show_status = #{showStatus,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsTopicMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsTopicMapper.xml new file mode 100644 index 000000000..e267b62ee --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/CmsTopicMapper.xml @@ -0,0 +1,375 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, category_id, name, create_time, start_time, end_time, attend_count, attention_count, + read_count, award_name, attend_type + + + content + + + + + + delete from cms_topic + where id = #{id,jdbcType=BIGINT} + + + delete from cms_topic + + + + + + + SELECT LAST_INSERT_ID() + + insert into cms_topic (category_id, name, create_time, + start_time, end_time, attend_count, + attention_count, read_count, award_name, + attend_type, content) + values (#{categoryId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, + #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{attendCount,jdbcType=INTEGER}, + #{attentionCount,jdbcType=INTEGER}, #{readCount,jdbcType=INTEGER}, #{awardName,jdbcType=VARCHAR}, + #{attendType,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARCHAR}) + + + + SELECT LAST_INSERT_ID() + + insert into cms_topic + + + category_id, + + + name, + + + create_time, + + + start_time, + + + end_time, + + + attend_count, + + + attention_count, + + + read_count, + + + award_name, + + + attend_type, + + + content, + + + + + #{categoryId,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{startTime,jdbcType=TIMESTAMP}, + + + #{endTime,jdbcType=TIMESTAMP}, + + + #{attendCount,jdbcType=INTEGER}, + + + #{attentionCount,jdbcType=INTEGER}, + + + #{readCount,jdbcType=INTEGER}, + + + #{awardName,jdbcType=VARCHAR}, + + + #{attendType,jdbcType=VARCHAR}, + + + #{content,jdbcType=LONGVARCHAR}, + + + + + + update cms_topic + + + id = #{row.id,jdbcType=BIGINT}, + + + category_id = #{row.categoryId,jdbcType=BIGINT}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + start_time = #{row.startTime,jdbcType=TIMESTAMP}, + + + end_time = #{row.endTime,jdbcType=TIMESTAMP}, + + + attend_count = #{row.attendCount,jdbcType=INTEGER}, + + + attention_count = #{row.attentionCount,jdbcType=INTEGER}, + + + read_count = #{row.readCount,jdbcType=INTEGER}, + + + award_name = #{row.awardName,jdbcType=VARCHAR}, + + + attend_type = #{row.attendType,jdbcType=VARCHAR}, + + + content = #{row.content,jdbcType=LONGVARCHAR}, + + + + + + + + update cms_topic + set id = #{row.id,jdbcType=BIGINT}, + category_id = #{row.categoryId,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + start_time = #{row.startTime,jdbcType=TIMESTAMP}, + end_time = #{row.endTime,jdbcType=TIMESTAMP}, + attend_count = #{row.attendCount,jdbcType=INTEGER}, + attention_count = #{row.attentionCount,jdbcType=INTEGER}, + read_count = #{row.readCount,jdbcType=INTEGER}, + award_name = #{row.awardName,jdbcType=VARCHAR}, + attend_type = #{row.attendType,jdbcType=VARCHAR}, + content = #{row.content,jdbcType=LONGVARCHAR} + + + + + + update cms_topic + set id = #{row.id,jdbcType=BIGINT}, + category_id = #{row.categoryId,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + start_time = #{row.startTime,jdbcType=TIMESTAMP}, + end_time = #{row.endTime,jdbcType=TIMESTAMP}, + attend_count = #{row.attendCount,jdbcType=INTEGER}, + attention_count = #{row.attentionCount,jdbcType=INTEGER}, + read_count = #{row.readCount,jdbcType=INTEGER}, + award_name = #{row.awardName,jdbcType=VARCHAR}, + attend_type = #{row.attendType,jdbcType=VARCHAR} + + + + + + update cms_topic + + + category_id = #{categoryId,jdbcType=BIGINT}, + + + name = #{name,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + start_time = #{startTime,jdbcType=TIMESTAMP}, + + + end_time = #{endTime,jdbcType=TIMESTAMP}, + + + attend_count = #{attendCount,jdbcType=INTEGER}, + + + attention_count = #{attentionCount,jdbcType=INTEGER}, + + + read_count = #{readCount,jdbcType=INTEGER}, + + + award_name = #{awardName,jdbcType=VARCHAR}, + + + attend_type = #{attendType,jdbcType=VARCHAR}, + + + content = #{content,jdbcType=LONGVARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update cms_topic + set category_id = #{categoryId,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + start_time = #{startTime,jdbcType=TIMESTAMP}, + end_time = #{endTime,jdbcType=TIMESTAMP}, + attend_count = #{attendCount,jdbcType=INTEGER}, + attention_count = #{attentionCount,jdbcType=INTEGER}, + read_count = #{readCount,jdbcType=INTEGER}, + award_name = #{awardName,jdbcType=VARCHAR}, + attend_type = #{attendType,jdbcType=VARCHAR}, + content = #{content,jdbcType=LONGVARCHAR} + where id = #{id,jdbcType=BIGINT} + + + update cms_topic + set category_id = #{categoryId,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + start_time = #{startTime,jdbcType=TIMESTAMP}, + end_time = #{endTime,jdbcType=TIMESTAMP}, + attend_count = #{attendCount,jdbcType=INTEGER}, + attention_count = #{attentionCount,jdbcType=INTEGER}, + read_count = #{readCount,jdbcType=INTEGER}, + award_name = #{awardName,jdbcType=VARCHAR}, + attend_type = #{attendType,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsCartItemMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsCartItemMapper.xml new file mode 100644 index 000000000..d371f487d --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsCartItemMapper.xml @@ -0,0 +1,416 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, product_id, product_sku_id, member_id, quantity, price, product_pic, product_name, + product_sub_title, product_sku_code, member_nickname, create_date, modify_date, delete_status, + product_category_id, product_brand, product_sn, product_attr + + + + + delete from oms_cart_item + where id = #{id,jdbcType=BIGINT} + + + delete from oms_cart_item + + + + + + + SELECT LAST_INSERT_ID() + + insert into oms_cart_item (product_id, product_sku_id, member_id, + quantity, price, product_pic, + product_name, product_sub_title, product_sku_code, + member_nickname, create_date, modify_date, + delete_status, product_category_id, product_brand, + product_sn, product_attr) + values (#{productId,jdbcType=BIGINT}, #{productSkuId,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, + #{quantity,jdbcType=INTEGER}, #{price,jdbcType=DECIMAL}, #{productPic,jdbcType=VARCHAR}, + #{productName,jdbcType=VARCHAR}, #{productSubTitle,jdbcType=VARCHAR}, #{productSkuCode,jdbcType=VARCHAR}, + #{memberNickname,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, #{modifyDate,jdbcType=TIMESTAMP}, + #{deleteStatus,jdbcType=INTEGER}, #{productCategoryId,jdbcType=BIGINT}, #{productBrand,jdbcType=VARCHAR}, + #{productSn,jdbcType=VARCHAR}, #{productAttr,jdbcType=VARCHAR}) + + + + SELECT LAST_INSERT_ID() + + insert into oms_cart_item + + + product_id, + + + product_sku_id, + + + member_id, + + + quantity, + + + price, + + + product_pic, + + + product_name, + + + product_sub_title, + + + product_sku_code, + + + member_nickname, + + + create_date, + + + modify_date, + + + delete_status, + + + product_category_id, + + + product_brand, + + + product_sn, + + + product_attr, + + + + + #{productId,jdbcType=BIGINT}, + + + #{productSkuId,jdbcType=BIGINT}, + + + #{memberId,jdbcType=BIGINT}, + + + #{quantity,jdbcType=INTEGER}, + + + #{price,jdbcType=DECIMAL}, + + + #{productPic,jdbcType=VARCHAR}, + + + #{productName,jdbcType=VARCHAR}, + + + #{productSubTitle,jdbcType=VARCHAR}, + + + #{productSkuCode,jdbcType=VARCHAR}, + + + #{memberNickname,jdbcType=VARCHAR}, + + + #{createDate,jdbcType=TIMESTAMP}, + + + #{modifyDate,jdbcType=TIMESTAMP}, + + + #{deleteStatus,jdbcType=INTEGER}, + + + #{productCategoryId,jdbcType=BIGINT}, + + + #{productBrand,jdbcType=VARCHAR}, + + + #{productSn,jdbcType=VARCHAR}, + + + #{productAttr,jdbcType=VARCHAR}, + + + + + + update oms_cart_item + + + id = #{row.id,jdbcType=BIGINT}, + + + product_id = #{row.productId,jdbcType=BIGINT}, + + + product_sku_id = #{row.productSkuId,jdbcType=BIGINT}, + + + member_id = #{row.memberId,jdbcType=BIGINT}, + + + quantity = #{row.quantity,jdbcType=INTEGER}, + + + price = #{row.price,jdbcType=DECIMAL}, + + + product_pic = #{row.productPic,jdbcType=VARCHAR}, + + + product_name = #{row.productName,jdbcType=VARCHAR}, + + + product_sub_title = #{row.productSubTitle,jdbcType=VARCHAR}, + + + product_sku_code = #{row.productSkuCode,jdbcType=VARCHAR}, + + + member_nickname = #{row.memberNickname,jdbcType=VARCHAR}, + + + create_date = #{row.createDate,jdbcType=TIMESTAMP}, + + + modify_date = #{row.modifyDate,jdbcType=TIMESTAMP}, + + + delete_status = #{row.deleteStatus,jdbcType=INTEGER}, + + + product_category_id = #{row.productCategoryId,jdbcType=BIGINT}, + + + product_brand = #{row.productBrand,jdbcType=VARCHAR}, + + + product_sn = #{row.productSn,jdbcType=VARCHAR}, + + + product_attr = #{row.productAttr,jdbcType=VARCHAR}, + + + + + + + + update oms_cart_item + set id = #{row.id,jdbcType=BIGINT}, + product_id = #{row.productId,jdbcType=BIGINT}, + product_sku_id = #{row.productSkuId,jdbcType=BIGINT}, + member_id = #{row.memberId,jdbcType=BIGINT}, + quantity = #{row.quantity,jdbcType=INTEGER}, + price = #{row.price,jdbcType=DECIMAL}, + product_pic = #{row.productPic,jdbcType=VARCHAR}, + product_name = #{row.productName,jdbcType=VARCHAR}, + product_sub_title = #{row.productSubTitle,jdbcType=VARCHAR}, + product_sku_code = #{row.productSkuCode,jdbcType=VARCHAR}, + member_nickname = #{row.memberNickname,jdbcType=VARCHAR}, + create_date = #{row.createDate,jdbcType=TIMESTAMP}, + modify_date = #{row.modifyDate,jdbcType=TIMESTAMP}, + delete_status = #{row.deleteStatus,jdbcType=INTEGER}, + product_category_id = #{row.productCategoryId,jdbcType=BIGINT}, + product_brand = #{row.productBrand,jdbcType=VARCHAR}, + product_sn = #{row.productSn,jdbcType=VARCHAR}, + product_attr = #{row.productAttr,jdbcType=VARCHAR} + + + + + + update oms_cart_item + + + product_id = #{productId,jdbcType=BIGINT}, + + + product_sku_id = #{productSkuId,jdbcType=BIGINT}, + + + member_id = #{memberId,jdbcType=BIGINT}, + + + quantity = #{quantity,jdbcType=INTEGER}, + + + price = #{price,jdbcType=DECIMAL}, + + + product_pic = #{productPic,jdbcType=VARCHAR}, + + + product_name = #{productName,jdbcType=VARCHAR}, + + + product_sub_title = #{productSubTitle,jdbcType=VARCHAR}, + + + product_sku_code = #{productSkuCode,jdbcType=VARCHAR}, + + + member_nickname = #{memberNickname,jdbcType=VARCHAR}, + + + create_date = #{createDate,jdbcType=TIMESTAMP}, + + + modify_date = #{modifyDate,jdbcType=TIMESTAMP}, + + + delete_status = #{deleteStatus,jdbcType=INTEGER}, + + + product_category_id = #{productCategoryId,jdbcType=BIGINT}, + + + product_brand = #{productBrand,jdbcType=VARCHAR}, + + + product_sn = #{productSn,jdbcType=VARCHAR}, + + + product_attr = #{productAttr,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update oms_cart_item + set product_id = #{productId,jdbcType=BIGINT}, + product_sku_id = #{productSkuId,jdbcType=BIGINT}, + member_id = #{memberId,jdbcType=BIGINT}, + quantity = #{quantity,jdbcType=INTEGER}, + price = #{price,jdbcType=DECIMAL}, + product_pic = #{productPic,jdbcType=VARCHAR}, + product_name = #{productName,jdbcType=VARCHAR}, + product_sub_title = #{productSubTitle,jdbcType=VARCHAR}, + product_sku_code = #{productSkuCode,jdbcType=VARCHAR}, + member_nickname = #{memberNickname,jdbcType=VARCHAR}, + create_date = #{createDate,jdbcType=TIMESTAMP}, + modify_date = #{modifyDate,jdbcType=TIMESTAMP}, + delete_status = #{deleteStatus,jdbcType=INTEGER}, + product_category_id = #{productCategoryId,jdbcType=BIGINT}, + product_brand = #{productBrand,jdbcType=VARCHAR}, + product_sn = #{productSn,jdbcType=VARCHAR}, + product_attr = #{productAttr,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsCompanyAddressMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsCompanyAddressMapper.xml new file mode 100644 index 000000000..77ea36561 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsCompanyAddressMapper.xml @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, address_name, send_status, receive_status, name, phone, province, city, region, + detail_address + + + + + delete from oms_company_address + where id = #{id,jdbcType=BIGINT} + + + delete from oms_company_address + + + + + + + SELECT LAST_INSERT_ID() + + insert into oms_company_address (address_name, send_status, receive_status, + name, phone, province, + city, region, detail_address + ) + values (#{addressName,jdbcType=VARCHAR}, #{sendStatus,jdbcType=INTEGER}, #{receiveStatus,jdbcType=INTEGER}, + #{name,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{province,jdbcType=VARCHAR}, + #{city,jdbcType=VARCHAR}, #{region,jdbcType=VARCHAR}, #{detailAddress,jdbcType=VARCHAR} + ) + + + + SELECT LAST_INSERT_ID() + + insert into oms_company_address + + + address_name, + + + send_status, + + + receive_status, + + + name, + + + phone, + + + province, + + + city, + + + region, + + + detail_address, + + + + + #{addressName,jdbcType=VARCHAR}, + + + #{sendStatus,jdbcType=INTEGER}, + + + #{receiveStatus,jdbcType=INTEGER}, + + + #{name,jdbcType=VARCHAR}, + + + #{phone,jdbcType=VARCHAR}, + + + #{province,jdbcType=VARCHAR}, + + + #{city,jdbcType=VARCHAR}, + + + #{region,jdbcType=VARCHAR}, + + + #{detailAddress,jdbcType=VARCHAR}, + + + + + + update oms_company_address + + + id = #{row.id,jdbcType=BIGINT}, + + + address_name = #{row.addressName,jdbcType=VARCHAR}, + + + send_status = #{row.sendStatus,jdbcType=INTEGER}, + + + receive_status = #{row.receiveStatus,jdbcType=INTEGER}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + phone = #{row.phone,jdbcType=VARCHAR}, + + + province = #{row.province,jdbcType=VARCHAR}, + + + city = #{row.city,jdbcType=VARCHAR}, + + + region = #{row.region,jdbcType=VARCHAR}, + + + detail_address = #{row.detailAddress,jdbcType=VARCHAR}, + + + + + + + + update oms_company_address + set id = #{row.id,jdbcType=BIGINT}, + address_name = #{row.addressName,jdbcType=VARCHAR}, + send_status = #{row.sendStatus,jdbcType=INTEGER}, + receive_status = #{row.receiveStatus,jdbcType=INTEGER}, + name = #{row.name,jdbcType=VARCHAR}, + phone = #{row.phone,jdbcType=VARCHAR}, + province = #{row.province,jdbcType=VARCHAR}, + city = #{row.city,jdbcType=VARCHAR}, + region = #{row.region,jdbcType=VARCHAR}, + detail_address = #{row.detailAddress,jdbcType=VARCHAR} + + + + + + update oms_company_address + + + address_name = #{addressName,jdbcType=VARCHAR}, + + + send_status = #{sendStatus,jdbcType=INTEGER}, + + + receive_status = #{receiveStatus,jdbcType=INTEGER}, + + + name = #{name,jdbcType=VARCHAR}, + + + phone = #{phone,jdbcType=VARCHAR}, + + + province = #{province,jdbcType=VARCHAR}, + + + city = #{city,jdbcType=VARCHAR}, + + + region = #{region,jdbcType=VARCHAR}, + + + detail_address = #{detailAddress,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update oms_company_address + set address_name = #{addressName,jdbcType=VARCHAR}, + send_status = #{sendStatus,jdbcType=INTEGER}, + receive_status = #{receiveStatus,jdbcType=INTEGER}, + name = #{name,jdbcType=VARCHAR}, + phone = #{phone,jdbcType=VARCHAR}, + province = #{province,jdbcType=VARCHAR}, + city = #{city,jdbcType=VARCHAR}, + region = #{region,jdbcType=VARCHAR}, + detail_address = #{detailAddress,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderItemMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderItemMapper.xml new file mode 100644 index 000000000..20d9d7766 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderItemMapper.xml @@ -0,0 +1,464 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, order_id, order_sn, product_id, product_pic, product_name, product_brand, product_sn, + product_price, product_quantity, product_sku_id, product_sku_code, product_category_id, + promotion_name, promotion_amount, coupon_amount, integration_amount, real_amount, + gift_integration, gift_growth, product_attr + + + + + delete from oms_order_item + where id = #{id,jdbcType=BIGINT} + + + delete from oms_order_item + + + + + + + SELECT LAST_INSERT_ID() + + insert into oms_order_item (order_id, order_sn, product_id, + product_pic, product_name, product_brand, + product_sn, product_price, product_quantity, + product_sku_id, product_sku_code, product_category_id, + promotion_name, promotion_amount, coupon_amount, + integration_amount, real_amount, gift_integration, + gift_growth, product_attr) + values (#{orderId,jdbcType=BIGINT}, #{orderSn,jdbcType=VARCHAR}, #{productId,jdbcType=BIGINT}, + #{productPic,jdbcType=VARCHAR}, #{productName,jdbcType=VARCHAR}, #{productBrand,jdbcType=VARCHAR}, + #{productSn,jdbcType=VARCHAR}, #{productPrice,jdbcType=DECIMAL}, #{productQuantity,jdbcType=INTEGER}, + #{productSkuId,jdbcType=BIGINT}, #{productSkuCode,jdbcType=VARCHAR}, #{productCategoryId,jdbcType=BIGINT}, + #{promotionName,jdbcType=VARCHAR}, #{promotionAmount,jdbcType=DECIMAL}, #{couponAmount,jdbcType=DECIMAL}, + #{integrationAmount,jdbcType=DECIMAL}, #{realAmount,jdbcType=DECIMAL}, #{giftIntegration,jdbcType=INTEGER}, + #{giftGrowth,jdbcType=INTEGER}, #{productAttr,jdbcType=VARCHAR}) + + + + SELECT LAST_INSERT_ID() + + insert into oms_order_item + + + order_id, + + + order_sn, + + + product_id, + + + product_pic, + + + product_name, + + + product_brand, + + + product_sn, + + + product_price, + + + product_quantity, + + + product_sku_id, + + + product_sku_code, + + + product_category_id, + + + promotion_name, + + + promotion_amount, + + + coupon_amount, + + + integration_amount, + + + real_amount, + + + gift_integration, + + + gift_growth, + + + product_attr, + + + + + #{orderId,jdbcType=BIGINT}, + + + #{orderSn,jdbcType=VARCHAR}, + + + #{productId,jdbcType=BIGINT}, + + + #{productPic,jdbcType=VARCHAR}, + + + #{productName,jdbcType=VARCHAR}, + + + #{productBrand,jdbcType=VARCHAR}, + + + #{productSn,jdbcType=VARCHAR}, + + + #{productPrice,jdbcType=DECIMAL}, + + + #{productQuantity,jdbcType=INTEGER}, + + + #{productSkuId,jdbcType=BIGINT}, + + + #{productSkuCode,jdbcType=VARCHAR}, + + + #{productCategoryId,jdbcType=BIGINT}, + + + #{promotionName,jdbcType=VARCHAR}, + + + #{promotionAmount,jdbcType=DECIMAL}, + + + #{couponAmount,jdbcType=DECIMAL}, + + + #{integrationAmount,jdbcType=DECIMAL}, + + + #{realAmount,jdbcType=DECIMAL}, + + + #{giftIntegration,jdbcType=INTEGER}, + + + #{giftGrowth,jdbcType=INTEGER}, + + + #{productAttr,jdbcType=VARCHAR}, + + + + + + update oms_order_item + + + id = #{row.id,jdbcType=BIGINT}, + + + order_id = #{row.orderId,jdbcType=BIGINT}, + + + order_sn = #{row.orderSn,jdbcType=VARCHAR}, + + + product_id = #{row.productId,jdbcType=BIGINT}, + + + product_pic = #{row.productPic,jdbcType=VARCHAR}, + + + product_name = #{row.productName,jdbcType=VARCHAR}, + + + product_brand = #{row.productBrand,jdbcType=VARCHAR}, + + + product_sn = #{row.productSn,jdbcType=VARCHAR}, + + + product_price = #{row.productPrice,jdbcType=DECIMAL}, + + + product_quantity = #{row.productQuantity,jdbcType=INTEGER}, + + + product_sku_id = #{row.productSkuId,jdbcType=BIGINT}, + + + product_sku_code = #{row.productSkuCode,jdbcType=VARCHAR}, + + + product_category_id = #{row.productCategoryId,jdbcType=BIGINT}, + + + promotion_name = #{row.promotionName,jdbcType=VARCHAR}, + + + promotion_amount = #{row.promotionAmount,jdbcType=DECIMAL}, + + + coupon_amount = #{row.couponAmount,jdbcType=DECIMAL}, + + + integration_amount = #{row.integrationAmount,jdbcType=DECIMAL}, + + + real_amount = #{row.realAmount,jdbcType=DECIMAL}, + + + gift_integration = #{row.giftIntegration,jdbcType=INTEGER}, + + + gift_growth = #{row.giftGrowth,jdbcType=INTEGER}, + + + product_attr = #{row.productAttr,jdbcType=VARCHAR}, + + + + + + + + update oms_order_item + set id = #{row.id,jdbcType=BIGINT}, + order_id = #{row.orderId,jdbcType=BIGINT}, + order_sn = #{row.orderSn,jdbcType=VARCHAR}, + product_id = #{row.productId,jdbcType=BIGINT}, + product_pic = #{row.productPic,jdbcType=VARCHAR}, + product_name = #{row.productName,jdbcType=VARCHAR}, + product_brand = #{row.productBrand,jdbcType=VARCHAR}, + product_sn = #{row.productSn,jdbcType=VARCHAR}, + product_price = #{row.productPrice,jdbcType=DECIMAL}, + product_quantity = #{row.productQuantity,jdbcType=INTEGER}, + product_sku_id = #{row.productSkuId,jdbcType=BIGINT}, + product_sku_code = #{row.productSkuCode,jdbcType=VARCHAR}, + product_category_id = #{row.productCategoryId,jdbcType=BIGINT}, + promotion_name = #{row.promotionName,jdbcType=VARCHAR}, + promotion_amount = #{row.promotionAmount,jdbcType=DECIMAL}, + coupon_amount = #{row.couponAmount,jdbcType=DECIMAL}, + integration_amount = #{row.integrationAmount,jdbcType=DECIMAL}, + real_amount = #{row.realAmount,jdbcType=DECIMAL}, + gift_integration = #{row.giftIntegration,jdbcType=INTEGER}, + gift_growth = #{row.giftGrowth,jdbcType=INTEGER}, + product_attr = #{row.productAttr,jdbcType=VARCHAR} + + + + + + update oms_order_item + + + order_id = #{orderId,jdbcType=BIGINT}, + + + order_sn = #{orderSn,jdbcType=VARCHAR}, + + + product_id = #{productId,jdbcType=BIGINT}, + + + product_pic = #{productPic,jdbcType=VARCHAR}, + + + product_name = #{productName,jdbcType=VARCHAR}, + + + product_brand = #{productBrand,jdbcType=VARCHAR}, + + + product_sn = #{productSn,jdbcType=VARCHAR}, + + + product_price = #{productPrice,jdbcType=DECIMAL}, + + + product_quantity = #{productQuantity,jdbcType=INTEGER}, + + + product_sku_id = #{productSkuId,jdbcType=BIGINT}, + + + product_sku_code = #{productSkuCode,jdbcType=VARCHAR}, + + + product_category_id = #{productCategoryId,jdbcType=BIGINT}, + + + promotion_name = #{promotionName,jdbcType=VARCHAR}, + + + promotion_amount = #{promotionAmount,jdbcType=DECIMAL}, + + + coupon_amount = #{couponAmount,jdbcType=DECIMAL}, + + + integration_amount = #{integrationAmount,jdbcType=DECIMAL}, + + + real_amount = #{realAmount,jdbcType=DECIMAL}, + + + gift_integration = #{giftIntegration,jdbcType=INTEGER}, + + + gift_growth = #{giftGrowth,jdbcType=INTEGER}, + + + product_attr = #{productAttr,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update oms_order_item + set order_id = #{orderId,jdbcType=BIGINT}, + order_sn = #{orderSn,jdbcType=VARCHAR}, + product_id = #{productId,jdbcType=BIGINT}, + product_pic = #{productPic,jdbcType=VARCHAR}, + product_name = #{productName,jdbcType=VARCHAR}, + product_brand = #{productBrand,jdbcType=VARCHAR}, + product_sn = #{productSn,jdbcType=VARCHAR}, + product_price = #{productPrice,jdbcType=DECIMAL}, + product_quantity = #{productQuantity,jdbcType=INTEGER}, + product_sku_id = #{productSkuId,jdbcType=BIGINT}, + product_sku_code = #{productSkuCode,jdbcType=VARCHAR}, + product_category_id = #{productCategoryId,jdbcType=BIGINT}, + promotion_name = #{promotionName,jdbcType=VARCHAR}, + promotion_amount = #{promotionAmount,jdbcType=DECIMAL}, + coupon_amount = #{couponAmount,jdbcType=DECIMAL}, + integration_amount = #{integrationAmount,jdbcType=DECIMAL}, + real_amount = #{realAmount,jdbcType=DECIMAL}, + gift_integration = #{giftIntegration,jdbcType=INTEGER}, + gift_growth = #{giftGrowth,jdbcType=INTEGER}, + product_attr = #{productAttr,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderMapper.xml new file mode 100644 index 000000000..3ca5002f9 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderMapper.xml @@ -0,0 +1,828 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, member_id, coupon_id, order_sn, create_time, member_username, total_amount, pay_amount, + freight_amount, promotion_amount, integration_amount, coupon_amount, discount_amount, + pay_type, source_type, status, order_type, delivery_company, delivery_sn, auto_confirm_day, + integration, growth, promotion_info, bill_type, bill_header, bill_content, bill_receiver_phone, + bill_receiver_email, receiver_name, receiver_phone, receiver_post_code, receiver_province, + receiver_city, receiver_region, receiver_detail_address, note, confirm_status, delete_status, + use_integration, payment_time, delivery_time, receive_time, comment_time, modify_time + + + + + delete from oms_order + where id = #{id,jdbcType=BIGINT} + + + delete from oms_order + + + + + + + SELECT LAST_INSERT_ID() + + insert into oms_order (member_id, coupon_id, order_sn, + create_time, member_username, total_amount, + pay_amount, freight_amount, promotion_amount, + integration_amount, coupon_amount, discount_amount, + pay_type, source_type, status, + order_type, delivery_company, delivery_sn, + auto_confirm_day, integration, growth, + promotion_info, bill_type, bill_header, + bill_content, bill_receiver_phone, bill_receiver_email, + receiver_name, receiver_phone, receiver_post_code, + receiver_province, receiver_city, receiver_region, + receiver_detail_address, note, confirm_status, + delete_status, use_integration, payment_time, + delivery_time, receive_time, comment_time, + modify_time) + values (#{memberId,jdbcType=BIGINT}, #{couponId,jdbcType=BIGINT}, #{orderSn,jdbcType=VARCHAR}, + #{createTime,jdbcType=TIMESTAMP}, #{memberUsername,jdbcType=VARCHAR}, #{totalAmount,jdbcType=DECIMAL}, + #{payAmount,jdbcType=DECIMAL}, #{freightAmount,jdbcType=DECIMAL}, #{promotionAmount,jdbcType=DECIMAL}, + #{integrationAmount,jdbcType=DECIMAL}, #{couponAmount,jdbcType=DECIMAL}, #{discountAmount,jdbcType=DECIMAL}, + #{payType,jdbcType=INTEGER}, #{sourceType,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, + #{orderType,jdbcType=INTEGER}, #{deliveryCompany,jdbcType=VARCHAR}, #{deliverySn,jdbcType=VARCHAR}, + #{autoConfirmDay,jdbcType=INTEGER}, #{integration,jdbcType=INTEGER}, #{growth,jdbcType=INTEGER}, + #{promotionInfo,jdbcType=VARCHAR}, #{billType,jdbcType=INTEGER}, #{billHeader,jdbcType=VARCHAR}, + #{billContent,jdbcType=VARCHAR}, #{billReceiverPhone,jdbcType=VARCHAR}, #{billReceiverEmail,jdbcType=VARCHAR}, + #{receiverName,jdbcType=VARCHAR}, #{receiverPhone,jdbcType=VARCHAR}, #{receiverPostCode,jdbcType=VARCHAR}, + #{receiverProvince,jdbcType=VARCHAR}, #{receiverCity,jdbcType=VARCHAR}, #{receiverRegion,jdbcType=VARCHAR}, + #{receiverDetailAddress,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{confirmStatus,jdbcType=INTEGER}, + #{deleteStatus,jdbcType=INTEGER}, #{useIntegration,jdbcType=INTEGER}, #{paymentTime,jdbcType=TIMESTAMP}, + #{deliveryTime,jdbcType=TIMESTAMP}, #{receiveTime,jdbcType=TIMESTAMP}, #{commentTime,jdbcType=TIMESTAMP}, + #{modifyTime,jdbcType=TIMESTAMP}) + + + + SELECT LAST_INSERT_ID() + + insert into oms_order + + + member_id, + + + coupon_id, + + + order_sn, + + + create_time, + + + member_username, + + + total_amount, + + + pay_amount, + + + freight_amount, + + + promotion_amount, + + + integration_amount, + + + coupon_amount, + + + discount_amount, + + + pay_type, + + + source_type, + + + status, + + + order_type, + + + delivery_company, + + + delivery_sn, + + + auto_confirm_day, + + + integration, + + + growth, + + + promotion_info, + + + bill_type, + + + bill_header, + + + bill_content, + + + bill_receiver_phone, + + + bill_receiver_email, + + + receiver_name, + + + receiver_phone, + + + receiver_post_code, + + + receiver_province, + + + receiver_city, + + + receiver_region, + + + receiver_detail_address, + + + note, + + + confirm_status, + + + delete_status, + + + use_integration, + + + payment_time, + + + delivery_time, + + + receive_time, + + + comment_time, + + + modify_time, + + + + + #{memberId,jdbcType=BIGINT}, + + + #{couponId,jdbcType=BIGINT}, + + + #{orderSn,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{memberUsername,jdbcType=VARCHAR}, + + + #{totalAmount,jdbcType=DECIMAL}, + + + #{payAmount,jdbcType=DECIMAL}, + + + #{freightAmount,jdbcType=DECIMAL}, + + + #{promotionAmount,jdbcType=DECIMAL}, + + + #{integrationAmount,jdbcType=DECIMAL}, + + + #{couponAmount,jdbcType=DECIMAL}, + + + #{discountAmount,jdbcType=DECIMAL}, + + + #{payType,jdbcType=INTEGER}, + + + #{sourceType,jdbcType=INTEGER}, + + + #{status,jdbcType=INTEGER}, + + + #{orderType,jdbcType=INTEGER}, + + + #{deliveryCompany,jdbcType=VARCHAR}, + + + #{deliverySn,jdbcType=VARCHAR}, + + + #{autoConfirmDay,jdbcType=INTEGER}, + + + #{integration,jdbcType=INTEGER}, + + + #{growth,jdbcType=INTEGER}, + + + #{promotionInfo,jdbcType=VARCHAR}, + + + #{billType,jdbcType=INTEGER}, + + + #{billHeader,jdbcType=VARCHAR}, + + + #{billContent,jdbcType=VARCHAR}, + + + #{billReceiverPhone,jdbcType=VARCHAR}, + + + #{billReceiverEmail,jdbcType=VARCHAR}, + + + #{receiverName,jdbcType=VARCHAR}, + + + #{receiverPhone,jdbcType=VARCHAR}, + + + #{receiverPostCode,jdbcType=VARCHAR}, + + + #{receiverProvince,jdbcType=VARCHAR}, + + + #{receiverCity,jdbcType=VARCHAR}, + + + #{receiverRegion,jdbcType=VARCHAR}, + + + #{receiverDetailAddress,jdbcType=VARCHAR}, + + + #{note,jdbcType=VARCHAR}, + + + #{confirmStatus,jdbcType=INTEGER}, + + + #{deleteStatus,jdbcType=INTEGER}, + + + #{useIntegration,jdbcType=INTEGER}, + + + #{paymentTime,jdbcType=TIMESTAMP}, + + + #{deliveryTime,jdbcType=TIMESTAMP}, + + + #{receiveTime,jdbcType=TIMESTAMP}, + + + #{commentTime,jdbcType=TIMESTAMP}, + + + #{modifyTime,jdbcType=TIMESTAMP}, + + + + + + update oms_order + + + id = #{row.id,jdbcType=BIGINT}, + + + member_id = #{row.memberId,jdbcType=BIGINT}, + + + coupon_id = #{row.couponId,jdbcType=BIGINT}, + + + order_sn = #{row.orderSn,jdbcType=VARCHAR}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + member_username = #{row.memberUsername,jdbcType=VARCHAR}, + + + total_amount = #{row.totalAmount,jdbcType=DECIMAL}, + + + pay_amount = #{row.payAmount,jdbcType=DECIMAL}, + + + freight_amount = #{row.freightAmount,jdbcType=DECIMAL}, + + + promotion_amount = #{row.promotionAmount,jdbcType=DECIMAL}, + + + integration_amount = #{row.integrationAmount,jdbcType=DECIMAL}, + + + coupon_amount = #{row.couponAmount,jdbcType=DECIMAL}, + + + discount_amount = #{row.discountAmount,jdbcType=DECIMAL}, + + + pay_type = #{row.payType,jdbcType=INTEGER}, + + + source_type = #{row.sourceType,jdbcType=INTEGER}, + + + status = #{row.status,jdbcType=INTEGER}, + + + order_type = #{row.orderType,jdbcType=INTEGER}, + + + delivery_company = #{row.deliveryCompany,jdbcType=VARCHAR}, + + + delivery_sn = #{row.deliverySn,jdbcType=VARCHAR}, + + + auto_confirm_day = #{row.autoConfirmDay,jdbcType=INTEGER}, + + + integration = #{row.integration,jdbcType=INTEGER}, + + + growth = #{row.growth,jdbcType=INTEGER}, + + + promotion_info = #{row.promotionInfo,jdbcType=VARCHAR}, + + + bill_type = #{row.billType,jdbcType=INTEGER}, + + + bill_header = #{row.billHeader,jdbcType=VARCHAR}, + + + bill_content = #{row.billContent,jdbcType=VARCHAR}, + + + bill_receiver_phone = #{row.billReceiverPhone,jdbcType=VARCHAR}, + + + bill_receiver_email = #{row.billReceiverEmail,jdbcType=VARCHAR}, + + + receiver_name = #{row.receiverName,jdbcType=VARCHAR}, + + + receiver_phone = #{row.receiverPhone,jdbcType=VARCHAR}, + + + receiver_post_code = #{row.receiverPostCode,jdbcType=VARCHAR}, + + + receiver_province = #{row.receiverProvince,jdbcType=VARCHAR}, + + + receiver_city = #{row.receiverCity,jdbcType=VARCHAR}, + + + receiver_region = #{row.receiverRegion,jdbcType=VARCHAR}, + + + receiver_detail_address = #{row.receiverDetailAddress,jdbcType=VARCHAR}, + + + note = #{row.note,jdbcType=VARCHAR}, + + + confirm_status = #{row.confirmStatus,jdbcType=INTEGER}, + + + delete_status = #{row.deleteStatus,jdbcType=INTEGER}, + + + use_integration = #{row.useIntegration,jdbcType=INTEGER}, + + + payment_time = #{row.paymentTime,jdbcType=TIMESTAMP}, + + + delivery_time = #{row.deliveryTime,jdbcType=TIMESTAMP}, + + + receive_time = #{row.receiveTime,jdbcType=TIMESTAMP}, + + + comment_time = #{row.commentTime,jdbcType=TIMESTAMP}, + + + modify_time = #{row.modifyTime,jdbcType=TIMESTAMP}, + + + + + + + + update oms_order + set id = #{row.id,jdbcType=BIGINT}, + member_id = #{row.memberId,jdbcType=BIGINT}, + coupon_id = #{row.couponId,jdbcType=BIGINT}, + order_sn = #{row.orderSn,jdbcType=VARCHAR}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + member_username = #{row.memberUsername,jdbcType=VARCHAR}, + total_amount = #{row.totalAmount,jdbcType=DECIMAL}, + pay_amount = #{row.payAmount,jdbcType=DECIMAL}, + freight_amount = #{row.freightAmount,jdbcType=DECIMAL}, + promotion_amount = #{row.promotionAmount,jdbcType=DECIMAL}, + integration_amount = #{row.integrationAmount,jdbcType=DECIMAL}, + coupon_amount = #{row.couponAmount,jdbcType=DECIMAL}, + discount_amount = #{row.discountAmount,jdbcType=DECIMAL}, + pay_type = #{row.payType,jdbcType=INTEGER}, + source_type = #{row.sourceType,jdbcType=INTEGER}, + status = #{row.status,jdbcType=INTEGER}, + order_type = #{row.orderType,jdbcType=INTEGER}, + delivery_company = #{row.deliveryCompany,jdbcType=VARCHAR}, + delivery_sn = #{row.deliverySn,jdbcType=VARCHAR}, + auto_confirm_day = #{row.autoConfirmDay,jdbcType=INTEGER}, + integration = #{row.integration,jdbcType=INTEGER}, + growth = #{row.growth,jdbcType=INTEGER}, + promotion_info = #{row.promotionInfo,jdbcType=VARCHAR}, + bill_type = #{row.billType,jdbcType=INTEGER}, + bill_header = #{row.billHeader,jdbcType=VARCHAR}, + bill_content = #{row.billContent,jdbcType=VARCHAR}, + bill_receiver_phone = #{row.billReceiverPhone,jdbcType=VARCHAR}, + bill_receiver_email = #{row.billReceiverEmail,jdbcType=VARCHAR}, + receiver_name = #{row.receiverName,jdbcType=VARCHAR}, + receiver_phone = #{row.receiverPhone,jdbcType=VARCHAR}, + receiver_post_code = #{row.receiverPostCode,jdbcType=VARCHAR}, + receiver_province = #{row.receiverProvince,jdbcType=VARCHAR}, + receiver_city = #{row.receiverCity,jdbcType=VARCHAR}, + receiver_region = #{row.receiverRegion,jdbcType=VARCHAR}, + receiver_detail_address = #{row.receiverDetailAddress,jdbcType=VARCHAR}, + note = #{row.note,jdbcType=VARCHAR}, + confirm_status = #{row.confirmStatus,jdbcType=INTEGER}, + delete_status = #{row.deleteStatus,jdbcType=INTEGER}, + use_integration = #{row.useIntegration,jdbcType=INTEGER}, + payment_time = #{row.paymentTime,jdbcType=TIMESTAMP}, + delivery_time = #{row.deliveryTime,jdbcType=TIMESTAMP}, + receive_time = #{row.receiveTime,jdbcType=TIMESTAMP}, + comment_time = #{row.commentTime,jdbcType=TIMESTAMP}, + modify_time = #{row.modifyTime,jdbcType=TIMESTAMP} + + + + + + update oms_order + + + member_id = #{memberId,jdbcType=BIGINT}, + + + coupon_id = #{couponId,jdbcType=BIGINT}, + + + order_sn = #{orderSn,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + member_username = #{memberUsername,jdbcType=VARCHAR}, + + + total_amount = #{totalAmount,jdbcType=DECIMAL}, + + + pay_amount = #{payAmount,jdbcType=DECIMAL}, + + + freight_amount = #{freightAmount,jdbcType=DECIMAL}, + + + promotion_amount = #{promotionAmount,jdbcType=DECIMAL}, + + + integration_amount = #{integrationAmount,jdbcType=DECIMAL}, + + + coupon_amount = #{couponAmount,jdbcType=DECIMAL}, + + + discount_amount = #{discountAmount,jdbcType=DECIMAL}, + + + pay_type = #{payType,jdbcType=INTEGER}, + + + source_type = #{sourceType,jdbcType=INTEGER}, + + + status = #{status,jdbcType=INTEGER}, + + + order_type = #{orderType,jdbcType=INTEGER}, + + + delivery_company = #{deliveryCompany,jdbcType=VARCHAR}, + + + delivery_sn = #{deliverySn,jdbcType=VARCHAR}, + + + auto_confirm_day = #{autoConfirmDay,jdbcType=INTEGER}, + + + integration = #{integration,jdbcType=INTEGER}, + + + growth = #{growth,jdbcType=INTEGER}, + + + promotion_info = #{promotionInfo,jdbcType=VARCHAR}, + + + bill_type = #{billType,jdbcType=INTEGER}, + + + bill_header = #{billHeader,jdbcType=VARCHAR}, + + + bill_content = #{billContent,jdbcType=VARCHAR}, + + + bill_receiver_phone = #{billReceiverPhone,jdbcType=VARCHAR}, + + + bill_receiver_email = #{billReceiverEmail,jdbcType=VARCHAR}, + + + receiver_name = #{receiverName,jdbcType=VARCHAR}, + + + receiver_phone = #{receiverPhone,jdbcType=VARCHAR}, + + + receiver_post_code = #{receiverPostCode,jdbcType=VARCHAR}, + + + receiver_province = #{receiverProvince,jdbcType=VARCHAR}, + + + receiver_city = #{receiverCity,jdbcType=VARCHAR}, + + + receiver_region = #{receiverRegion,jdbcType=VARCHAR}, + + + receiver_detail_address = #{receiverDetailAddress,jdbcType=VARCHAR}, + + + note = #{note,jdbcType=VARCHAR}, + + + confirm_status = #{confirmStatus,jdbcType=INTEGER}, + + + delete_status = #{deleteStatus,jdbcType=INTEGER}, + + + use_integration = #{useIntegration,jdbcType=INTEGER}, + + + payment_time = #{paymentTime,jdbcType=TIMESTAMP}, + + + delivery_time = #{deliveryTime,jdbcType=TIMESTAMP}, + + + receive_time = #{receiveTime,jdbcType=TIMESTAMP}, + + + comment_time = #{commentTime,jdbcType=TIMESTAMP}, + + + modify_time = #{modifyTime,jdbcType=TIMESTAMP}, + + + where id = #{id,jdbcType=BIGINT} + + + update oms_order + set member_id = #{memberId,jdbcType=BIGINT}, + coupon_id = #{couponId,jdbcType=BIGINT}, + order_sn = #{orderSn,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + member_username = #{memberUsername,jdbcType=VARCHAR}, + total_amount = #{totalAmount,jdbcType=DECIMAL}, + pay_amount = #{payAmount,jdbcType=DECIMAL}, + freight_amount = #{freightAmount,jdbcType=DECIMAL}, + promotion_amount = #{promotionAmount,jdbcType=DECIMAL}, + integration_amount = #{integrationAmount,jdbcType=DECIMAL}, + coupon_amount = #{couponAmount,jdbcType=DECIMAL}, + discount_amount = #{discountAmount,jdbcType=DECIMAL}, + pay_type = #{payType,jdbcType=INTEGER}, + source_type = #{sourceType,jdbcType=INTEGER}, + status = #{status,jdbcType=INTEGER}, + order_type = #{orderType,jdbcType=INTEGER}, + delivery_company = #{deliveryCompany,jdbcType=VARCHAR}, + delivery_sn = #{deliverySn,jdbcType=VARCHAR}, + auto_confirm_day = #{autoConfirmDay,jdbcType=INTEGER}, + integration = #{integration,jdbcType=INTEGER}, + growth = #{growth,jdbcType=INTEGER}, + promotion_info = #{promotionInfo,jdbcType=VARCHAR}, + bill_type = #{billType,jdbcType=INTEGER}, + bill_header = #{billHeader,jdbcType=VARCHAR}, + bill_content = #{billContent,jdbcType=VARCHAR}, + bill_receiver_phone = #{billReceiverPhone,jdbcType=VARCHAR}, + bill_receiver_email = #{billReceiverEmail,jdbcType=VARCHAR}, + receiver_name = #{receiverName,jdbcType=VARCHAR}, + receiver_phone = #{receiverPhone,jdbcType=VARCHAR}, + receiver_post_code = #{receiverPostCode,jdbcType=VARCHAR}, + receiver_province = #{receiverProvince,jdbcType=VARCHAR}, + receiver_city = #{receiverCity,jdbcType=VARCHAR}, + receiver_region = #{receiverRegion,jdbcType=VARCHAR}, + receiver_detail_address = #{receiverDetailAddress,jdbcType=VARCHAR}, + note = #{note,jdbcType=VARCHAR}, + confirm_status = #{confirmStatus,jdbcType=INTEGER}, + delete_status = #{deleteStatus,jdbcType=INTEGER}, + use_integration = #{useIntegration,jdbcType=INTEGER}, + payment_time = #{paymentTime,jdbcType=TIMESTAMP}, + delivery_time = #{deliveryTime,jdbcType=TIMESTAMP}, + receive_time = #{receiveTime,jdbcType=TIMESTAMP}, + comment_time = #{commentTime,jdbcType=TIMESTAMP}, + modify_time = #{modifyTime,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderOperateHistoryMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderOperateHistoryMapper.xml new file mode 100644 index 000000000..916b141d2 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderOperateHistoryMapper.xml @@ -0,0 +1,226 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, order_id, operate_man, create_time, order_status, note + + + + + delete from oms_order_operate_history + where id = #{id,jdbcType=BIGINT} + + + delete from oms_order_operate_history + + + + + + + SELECT LAST_INSERT_ID() + + insert into oms_order_operate_history (order_id, operate_man, create_time, + order_status, note) + values (#{orderId,jdbcType=BIGINT}, #{operateMan,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, + #{orderStatus,jdbcType=INTEGER}, #{note,jdbcType=VARCHAR}) + + + + SELECT LAST_INSERT_ID() + + insert into oms_order_operate_history + + + order_id, + + + operate_man, + + + create_time, + + + order_status, + + + note, + + + + + #{orderId,jdbcType=BIGINT}, + + + #{operateMan,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{orderStatus,jdbcType=INTEGER}, + + + #{note,jdbcType=VARCHAR}, + + + + + + update oms_order_operate_history + + + id = #{row.id,jdbcType=BIGINT}, + + + order_id = #{row.orderId,jdbcType=BIGINT}, + + + operate_man = #{row.operateMan,jdbcType=VARCHAR}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + order_status = #{row.orderStatus,jdbcType=INTEGER}, + + + note = #{row.note,jdbcType=VARCHAR}, + + + + + + + + update oms_order_operate_history + set id = #{row.id,jdbcType=BIGINT}, + order_id = #{row.orderId,jdbcType=BIGINT}, + operate_man = #{row.operateMan,jdbcType=VARCHAR}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + order_status = #{row.orderStatus,jdbcType=INTEGER}, + note = #{row.note,jdbcType=VARCHAR} + + + + + + update oms_order_operate_history + + + order_id = #{orderId,jdbcType=BIGINT}, + + + operate_man = #{operateMan,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + order_status = #{orderStatus,jdbcType=INTEGER}, + + + note = #{note,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update oms_order_operate_history + set order_id = #{orderId,jdbcType=BIGINT}, + operate_man = #{operateMan,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + order_status = #{orderStatus,jdbcType=INTEGER}, + note = #{note,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderReturnApplyMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderReturnApplyMapper.xml new file mode 100644 index 000000000..f035afad1 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderReturnApplyMapper.xml @@ -0,0 +1,558 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, order_id, company_address_id, product_id, order_sn, create_time, member_username, + return_amount, return_name, return_phone, status, handle_time, product_pic, product_name, + product_brand, product_attr, product_count, product_price, product_real_price, reason, + description, proof_pics, handle_note, handle_man, receive_man, receive_time, receive_note + + + + + delete from oms_order_return_apply + where id = #{id,jdbcType=BIGINT} + + + delete from oms_order_return_apply + + + + + + + SELECT LAST_INSERT_ID() + + insert into oms_order_return_apply (order_id, company_address_id, product_id, + order_sn, create_time, member_username, + return_amount, return_name, return_phone, + status, handle_time, product_pic, + product_name, product_brand, product_attr, + product_count, product_price, product_real_price, + reason, description, proof_pics, + handle_note, handle_man, receive_man, + receive_time, receive_note) + values (#{orderId,jdbcType=BIGINT}, #{companyAddressId,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, + #{orderSn,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{memberUsername,jdbcType=VARCHAR}, + #{returnAmount,jdbcType=DECIMAL}, #{returnName,jdbcType=VARCHAR}, #{returnPhone,jdbcType=VARCHAR}, + #{status,jdbcType=INTEGER}, #{handleTime,jdbcType=TIMESTAMP}, #{productPic,jdbcType=VARCHAR}, + #{productName,jdbcType=VARCHAR}, #{productBrand,jdbcType=VARCHAR}, #{productAttr,jdbcType=VARCHAR}, + #{productCount,jdbcType=INTEGER}, #{productPrice,jdbcType=DECIMAL}, #{productRealPrice,jdbcType=DECIMAL}, + #{reason,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{proofPics,jdbcType=VARCHAR}, + #{handleNote,jdbcType=VARCHAR}, #{handleMan,jdbcType=VARCHAR}, #{receiveMan,jdbcType=VARCHAR}, + #{receiveTime,jdbcType=TIMESTAMP}, #{receiveNote,jdbcType=VARCHAR}) + + + + SELECT LAST_INSERT_ID() + + insert into oms_order_return_apply + + + order_id, + + + company_address_id, + + + product_id, + + + order_sn, + + + create_time, + + + member_username, + + + return_amount, + + + return_name, + + + return_phone, + + + status, + + + handle_time, + + + product_pic, + + + product_name, + + + product_brand, + + + product_attr, + + + product_count, + + + product_price, + + + product_real_price, + + + reason, + + + description, + + + proof_pics, + + + handle_note, + + + handle_man, + + + receive_man, + + + receive_time, + + + receive_note, + + + + + #{orderId,jdbcType=BIGINT}, + + + #{companyAddressId,jdbcType=BIGINT}, + + + #{productId,jdbcType=BIGINT}, + + + #{orderSn,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{memberUsername,jdbcType=VARCHAR}, + + + #{returnAmount,jdbcType=DECIMAL}, + + + #{returnName,jdbcType=VARCHAR}, + + + #{returnPhone,jdbcType=VARCHAR}, + + + #{status,jdbcType=INTEGER}, + + + #{handleTime,jdbcType=TIMESTAMP}, + + + #{productPic,jdbcType=VARCHAR}, + + + #{productName,jdbcType=VARCHAR}, + + + #{productBrand,jdbcType=VARCHAR}, + + + #{productAttr,jdbcType=VARCHAR}, + + + #{productCount,jdbcType=INTEGER}, + + + #{productPrice,jdbcType=DECIMAL}, + + + #{productRealPrice,jdbcType=DECIMAL}, + + + #{reason,jdbcType=VARCHAR}, + + + #{description,jdbcType=VARCHAR}, + + + #{proofPics,jdbcType=VARCHAR}, + + + #{handleNote,jdbcType=VARCHAR}, + + + #{handleMan,jdbcType=VARCHAR}, + + + #{receiveMan,jdbcType=VARCHAR}, + + + #{receiveTime,jdbcType=TIMESTAMP}, + + + #{receiveNote,jdbcType=VARCHAR}, + + + + + + update oms_order_return_apply + + + id = #{row.id,jdbcType=BIGINT}, + + + order_id = #{row.orderId,jdbcType=BIGINT}, + + + company_address_id = #{row.companyAddressId,jdbcType=BIGINT}, + + + product_id = #{row.productId,jdbcType=BIGINT}, + + + order_sn = #{row.orderSn,jdbcType=VARCHAR}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + member_username = #{row.memberUsername,jdbcType=VARCHAR}, + + + return_amount = #{row.returnAmount,jdbcType=DECIMAL}, + + + return_name = #{row.returnName,jdbcType=VARCHAR}, + + + return_phone = #{row.returnPhone,jdbcType=VARCHAR}, + + + status = #{row.status,jdbcType=INTEGER}, + + + handle_time = #{row.handleTime,jdbcType=TIMESTAMP}, + + + product_pic = #{row.productPic,jdbcType=VARCHAR}, + + + product_name = #{row.productName,jdbcType=VARCHAR}, + + + product_brand = #{row.productBrand,jdbcType=VARCHAR}, + + + product_attr = #{row.productAttr,jdbcType=VARCHAR}, + + + product_count = #{row.productCount,jdbcType=INTEGER}, + + + product_price = #{row.productPrice,jdbcType=DECIMAL}, + + + product_real_price = #{row.productRealPrice,jdbcType=DECIMAL}, + + + reason = #{row.reason,jdbcType=VARCHAR}, + + + description = #{row.description,jdbcType=VARCHAR}, + + + proof_pics = #{row.proofPics,jdbcType=VARCHAR}, + + + handle_note = #{row.handleNote,jdbcType=VARCHAR}, + + + handle_man = #{row.handleMan,jdbcType=VARCHAR}, + + + receive_man = #{row.receiveMan,jdbcType=VARCHAR}, + + + receive_time = #{row.receiveTime,jdbcType=TIMESTAMP}, + + + receive_note = #{row.receiveNote,jdbcType=VARCHAR}, + + + + + + + + update oms_order_return_apply + set id = #{row.id,jdbcType=BIGINT}, + order_id = #{row.orderId,jdbcType=BIGINT}, + company_address_id = #{row.companyAddressId,jdbcType=BIGINT}, + product_id = #{row.productId,jdbcType=BIGINT}, + order_sn = #{row.orderSn,jdbcType=VARCHAR}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + member_username = #{row.memberUsername,jdbcType=VARCHAR}, + return_amount = #{row.returnAmount,jdbcType=DECIMAL}, + return_name = #{row.returnName,jdbcType=VARCHAR}, + return_phone = #{row.returnPhone,jdbcType=VARCHAR}, + status = #{row.status,jdbcType=INTEGER}, + handle_time = #{row.handleTime,jdbcType=TIMESTAMP}, + product_pic = #{row.productPic,jdbcType=VARCHAR}, + product_name = #{row.productName,jdbcType=VARCHAR}, + product_brand = #{row.productBrand,jdbcType=VARCHAR}, + product_attr = #{row.productAttr,jdbcType=VARCHAR}, + product_count = #{row.productCount,jdbcType=INTEGER}, + product_price = #{row.productPrice,jdbcType=DECIMAL}, + product_real_price = #{row.productRealPrice,jdbcType=DECIMAL}, + reason = #{row.reason,jdbcType=VARCHAR}, + description = #{row.description,jdbcType=VARCHAR}, + proof_pics = #{row.proofPics,jdbcType=VARCHAR}, + handle_note = #{row.handleNote,jdbcType=VARCHAR}, + handle_man = #{row.handleMan,jdbcType=VARCHAR}, + receive_man = #{row.receiveMan,jdbcType=VARCHAR}, + receive_time = #{row.receiveTime,jdbcType=TIMESTAMP}, + receive_note = #{row.receiveNote,jdbcType=VARCHAR} + + + + + + update oms_order_return_apply + + + order_id = #{orderId,jdbcType=BIGINT}, + + + company_address_id = #{companyAddressId,jdbcType=BIGINT}, + + + product_id = #{productId,jdbcType=BIGINT}, + + + order_sn = #{orderSn,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + member_username = #{memberUsername,jdbcType=VARCHAR}, + + + return_amount = #{returnAmount,jdbcType=DECIMAL}, + + + return_name = #{returnName,jdbcType=VARCHAR}, + + + return_phone = #{returnPhone,jdbcType=VARCHAR}, + + + status = #{status,jdbcType=INTEGER}, + + + handle_time = #{handleTime,jdbcType=TIMESTAMP}, + + + product_pic = #{productPic,jdbcType=VARCHAR}, + + + product_name = #{productName,jdbcType=VARCHAR}, + + + product_brand = #{productBrand,jdbcType=VARCHAR}, + + + product_attr = #{productAttr,jdbcType=VARCHAR}, + + + product_count = #{productCount,jdbcType=INTEGER}, + + + product_price = #{productPrice,jdbcType=DECIMAL}, + + + product_real_price = #{productRealPrice,jdbcType=DECIMAL}, + + + reason = #{reason,jdbcType=VARCHAR}, + + + description = #{description,jdbcType=VARCHAR}, + + + proof_pics = #{proofPics,jdbcType=VARCHAR}, + + + handle_note = #{handleNote,jdbcType=VARCHAR}, + + + handle_man = #{handleMan,jdbcType=VARCHAR}, + + + receive_man = #{receiveMan,jdbcType=VARCHAR}, + + + receive_time = #{receiveTime,jdbcType=TIMESTAMP}, + + + receive_note = #{receiveNote,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update oms_order_return_apply + set order_id = #{orderId,jdbcType=BIGINT}, + company_address_id = #{companyAddressId,jdbcType=BIGINT}, + product_id = #{productId,jdbcType=BIGINT}, + order_sn = #{orderSn,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + member_username = #{memberUsername,jdbcType=VARCHAR}, + return_amount = #{returnAmount,jdbcType=DECIMAL}, + return_name = #{returnName,jdbcType=VARCHAR}, + return_phone = #{returnPhone,jdbcType=VARCHAR}, + status = #{status,jdbcType=INTEGER}, + handle_time = #{handleTime,jdbcType=TIMESTAMP}, + product_pic = #{productPic,jdbcType=VARCHAR}, + product_name = #{productName,jdbcType=VARCHAR}, + product_brand = #{productBrand,jdbcType=VARCHAR}, + product_attr = #{productAttr,jdbcType=VARCHAR}, + product_count = #{productCount,jdbcType=INTEGER}, + product_price = #{productPrice,jdbcType=DECIMAL}, + product_real_price = #{productRealPrice,jdbcType=DECIMAL}, + reason = #{reason,jdbcType=VARCHAR}, + description = #{description,jdbcType=VARCHAR}, + proof_pics = #{proofPics,jdbcType=VARCHAR}, + handle_note = #{handleNote,jdbcType=VARCHAR}, + handle_man = #{handleMan,jdbcType=VARCHAR}, + receive_man = #{receiveMan,jdbcType=VARCHAR}, + receive_time = #{receiveTime,jdbcType=TIMESTAMP}, + receive_note = #{receiveNote,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderReturnReasonMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderReturnReasonMapper.xml new file mode 100644 index 000000000..9a512c417 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderReturnReasonMapper.xml @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, sort, status, create_time + + + + + delete from oms_order_return_reason + where id = #{id,jdbcType=BIGINT} + + + delete from oms_order_return_reason + + + + + + + SELECT LAST_INSERT_ID() + + insert into oms_order_return_reason (name, sort, status, + create_time) + values (#{name,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, + #{createTime,jdbcType=TIMESTAMP}) + + + + SELECT LAST_INSERT_ID() + + insert into oms_order_return_reason + + + name, + + + sort, + + + status, + + + create_time, + + + + + #{name,jdbcType=VARCHAR}, + + + #{sort,jdbcType=INTEGER}, + + + #{status,jdbcType=INTEGER}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + + + + update oms_order_return_reason + + + id = #{row.id,jdbcType=BIGINT}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + sort = #{row.sort,jdbcType=INTEGER}, + + + status = #{row.status,jdbcType=INTEGER}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + + + + + + update oms_order_return_reason + set id = #{row.id,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + sort = #{row.sort,jdbcType=INTEGER}, + status = #{row.status,jdbcType=INTEGER}, + create_time = #{row.createTime,jdbcType=TIMESTAMP} + + + + + + update oms_order_return_reason + + + name = #{name,jdbcType=VARCHAR}, + + + sort = #{sort,jdbcType=INTEGER}, + + + status = #{status,jdbcType=INTEGER}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + where id = #{id,jdbcType=BIGINT} + + + update oms_order_return_reason + set name = #{name,jdbcType=VARCHAR}, + sort = #{sort,jdbcType=INTEGER}, + status = #{status,jdbcType=INTEGER}, + create_time = #{createTime,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderSettingMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderSettingMapper.xml new file mode 100644 index 000000000..ef07266d2 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/OmsOrderSettingMapper.xml @@ -0,0 +1,229 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, flash_order_overtime, normal_order_overtime, confirm_overtime, finish_overtime, + comment_overtime + + + + + delete from oms_order_setting + where id = #{id,jdbcType=BIGINT} + + + delete from oms_order_setting + + + + + + + SELECT LAST_INSERT_ID() + + insert into oms_order_setting (flash_order_overtime, normal_order_overtime, + confirm_overtime, finish_overtime, comment_overtime + ) + values (#{flashOrderOvertime,jdbcType=INTEGER}, #{normalOrderOvertime,jdbcType=INTEGER}, + #{confirmOvertime,jdbcType=INTEGER}, #{finishOvertime,jdbcType=INTEGER}, #{commentOvertime,jdbcType=INTEGER} + ) + + + + SELECT LAST_INSERT_ID() + + insert into oms_order_setting + + + flash_order_overtime, + + + normal_order_overtime, + + + confirm_overtime, + + + finish_overtime, + + + comment_overtime, + + + + + #{flashOrderOvertime,jdbcType=INTEGER}, + + + #{normalOrderOvertime,jdbcType=INTEGER}, + + + #{confirmOvertime,jdbcType=INTEGER}, + + + #{finishOvertime,jdbcType=INTEGER}, + + + #{commentOvertime,jdbcType=INTEGER}, + + + + + + update oms_order_setting + + + id = #{row.id,jdbcType=BIGINT}, + + + flash_order_overtime = #{row.flashOrderOvertime,jdbcType=INTEGER}, + + + normal_order_overtime = #{row.normalOrderOvertime,jdbcType=INTEGER}, + + + confirm_overtime = #{row.confirmOvertime,jdbcType=INTEGER}, + + + finish_overtime = #{row.finishOvertime,jdbcType=INTEGER}, + + + comment_overtime = #{row.commentOvertime,jdbcType=INTEGER}, + + + + + + + + update oms_order_setting + set id = #{row.id,jdbcType=BIGINT}, + flash_order_overtime = #{row.flashOrderOvertime,jdbcType=INTEGER}, + normal_order_overtime = #{row.normalOrderOvertime,jdbcType=INTEGER}, + confirm_overtime = #{row.confirmOvertime,jdbcType=INTEGER}, + finish_overtime = #{row.finishOvertime,jdbcType=INTEGER}, + comment_overtime = #{row.commentOvertime,jdbcType=INTEGER} + + + + + + update oms_order_setting + + + flash_order_overtime = #{flashOrderOvertime,jdbcType=INTEGER}, + + + normal_order_overtime = #{normalOrderOvertime,jdbcType=INTEGER}, + + + confirm_overtime = #{confirmOvertime,jdbcType=INTEGER}, + + + finish_overtime = #{finishOvertime,jdbcType=INTEGER}, + + + comment_overtime = #{commentOvertime,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update oms_order_setting + set flash_order_overtime = #{flashOrderOvertime,jdbcType=INTEGER}, + normal_order_overtime = #{normalOrderOvertime,jdbcType=INTEGER}, + confirm_overtime = #{confirmOvertime,jdbcType=INTEGER}, + finish_overtime = #{finishOvertime,jdbcType=INTEGER}, + comment_overtime = #{commentOvertime,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsAlbumMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsAlbumMapper.xml new file mode 100644 index 000000000..9256b7698 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsAlbumMapper.xml @@ -0,0 +1,226 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, cover_pic, pic_count, sort, description + + + + + delete from pms_album + where id = #{id,jdbcType=BIGINT} + + + delete from pms_album + + + + + + + SELECT LAST_INSERT_ID() + + insert into pms_album (name, cover_pic, pic_count, + sort, description) + values (#{name,jdbcType=VARCHAR}, #{coverPic,jdbcType=VARCHAR}, #{picCount,jdbcType=INTEGER}, + #{sort,jdbcType=INTEGER}, #{description,jdbcType=VARCHAR}) + + + + SELECT LAST_INSERT_ID() + + insert into pms_album + + + name, + + + cover_pic, + + + pic_count, + + + sort, + + + description, + + + + + #{name,jdbcType=VARCHAR}, + + + #{coverPic,jdbcType=VARCHAR}, + + + #{picCount,jdbcType=INTEGER}, + + + #{sort,jdbcType=INTEGER}, + + + #{description,jdbcType=VARCHAR}, + + + + + + update pms_album + + + id = #{row.id,jdbcType=BIGINT}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + cover_pic = #{row.coverPic,jdbcType=VARCHAR}, + + + pic_count = #{row.picCount,jdbcType=INTEGER}, + + + sort = #{row.sort,jdbcType=INTEGER}, + + + description = #{row.description,jdbcType=VARCHAR}, + + + + + + + + update pms_album + set id = #{row.id,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + cover_pic = #{row.coverPic,jdbcType=VARCHAR}, + pic_count = #{row.picCount,jdbcType=INTEGER}, + sort = #{row.sort,jdbcType=INTEGER}, + description = #{row.description,jdbcType=VARCHAR} + + + + + + update pms_album + + + name = #{name,jdbcType=VARCHAR}, + + + cover_pic = #{coverPic,jdbcType=VARCHAR}, + + + pic_count = #{picCount,jdbcType=INTEGER}, + + + sort = #{sort,jdbcType=INTEGER}, + + + description = #{description,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update pms_album + set name = #{name,jdbcType=VARCHAR}, + cover_pic = #{coverPic,jdbcType=VARCHAR}, + pic_count = #{picCount,jdbcType=INTEGER}, + sort = #{sort,jdbcType=INTEGER}, + description = #{description,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsAlbumPicMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsAlbumPicMapper.xml new file mode 100644 index 000000000..a7357cf73 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsAlbumPicMapper.xml @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, album_id, pic + + + + + delete from pms_album_pic + where id = #{id,jdbcType=BIGINT} + + + delete from pms_album_pic + + + + + + + SELECT LAST_INSERT_ID() + + insert into pms_album_pic (album_id, pic) + values (#{albumId,jdbcType=BIGINT}, #{pic,jdbcType=VARCHAR}) + + + + SELECT LAST_INSERT_ID() + + insert into pms_album_pic + + + album_id, + + + pic, + + + + + #{albumId,jdbcType=BIGINT}, + + + #{pic,jdbcType=VARCHAR}, + + + + + + update pms_album_pic + + + id = #{row.id,jdbcType=BIGINT}, + + + album_id = #{row.albumId,jdbcType=BIGINT}, + + + pic = #{row.pic,jdbcType=VARCHAR}, + + + + + + + + update pms_album_pic + set id = #{row.id,jdbcType=BIGINT}, + album_id = #{row.albumId,jdbcType=BIGINT}, + pic = #{row.pic,jdbcType=VARCHAR} + + + + + + update pms_album_pic + + + album_id = #{albumId,jdbcType=BIGINT}, + + + pic = #{pic,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update pms_album_pic + set album_id = #{albumId,jdbcType=BIGINT}, + pic = #{pic,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsBrandMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsBrandMapper.xml new file mode 100644 index 000000000..ddca86a26 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsBrandMapper.xml @@ -0,0 +1,358 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, first_letter, sort, factory_status, show_status, product_count, product_comment_count, + logo, big_pic + + + brand_story + + + + + + delete from pms_brand + where id = #{id,jdbcType=BIGINT} + + + delete from pms_brand + + + + + + + SELECT LAST_INSERT_ID() + + insert into pms_brand (name, first_letter, sort, + factory_status, show_status, product_count, + product_comment_count, logo, big_pic, + brand_story) + values (#{name,jdbcType=VARCHAR}, #{firstLetter,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, + #{factoryStatus,jdbcType=INTEGER}, #{showStatus,jdbcType=INTEGER}, #{productCount,jdbcType=INTEGER}, + #{productCommentCount,jdbcType=INTEGER}, #{logo,jdbcType=VARCHAR}, #{bigPic,jdbcType=VARCHAR}, + #{brandStory,jdbcType=LONGVARCHAR}) + + + + SELECT LAST_INSERT_ID() + + insert into pms_brand + + + name, + + + first_letter, + + + sort, + + + factory_status, + + + show_status, + + + product_count, + + + product_comment_count, + + + logo, + + + big_pic, + + + brand_story, + + + + + #{name,jdbcType=VARCHAR}, + + + #{firstLetter,jdbcType=VARCHAR}, + + + #{sort,jdbcType=INTEGER}, + + + #{factoryStatus,jdbcType=INTEGER}, + + + #{showStatus,jdbcType=INTEGER}, + + + #{productCount,jdbcType=INTEGER}, + + + #{productCommentCount,jdbcType=INTEGER}, + + + #{logo,jdbcType=VARCHAR}, + + + #{bigPic,jdbcType=VARCHAR}, + + + #{brandStory,jdbcType=LONGVARCHAR}, + + + + + + update pms_brand + + + id = #{row.id,jdbcType=BIGINT}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + first_letter = #{row.firstLetter,jdbcType=VARCHAR}, + + + sort = #{row.sort,jdbcType=INTEGER}, + + + factory_status = #{row.factoryStatus,jdbcType=INTEGER}, + + + show_status = #{row.showStatus,jdbcType=INTEGER}, + + + product_count = #{row.productCount,jdbcType=INTEGER}, + + + product_comment_count = #{row.productCommentCount,jdbcType=INTEGER}, + + + logo = #{row.logo,jdbcType=VARCHAR}, + + + big_pic = #{row.bigPic,jdbcType=VARCHAR}, + + + brand_story = #{row.brandStory,jdbcType=LONGVARCHAR}, + + + + + + + + update pms_brand + set id = #{row.id,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + first_letter = #{row.firstLetter,jdbcType=VARCHAR}, + sort = #{row.sort,jdbcType=INTEGER}, + factory_status = #{row.factoryStatus,jdbcType=INTEGER}, + show_status = #{row.showStatus,jdbcType=INTEGER}, + product_count = #{row.productCount,jdbcType=INTEGER}, + product_comment_count = #{row.productCommentCount,jdbcType=INTEGER}, + logo = #{row.logo,jdbcType=VARCHAR}, + big_pic = #{row.bigPic,jdbcType=VARCHAR}, + brand_story = #{row.brandStory,jdbcType=LONGVARCHAR} + + + + + + update pms_brand + set id = #{row.id,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + first_letter = #{row.firstLetter,jdbcType=VARCHAR}, + sort = #{row.sort,jdbcType=INTEGER}, + factory_status = #{row.factoryStatus,jdbcType=INTEGER}, + show_status = #{row.showStatus,jdbcType=INTEGER}, + product_count = #{row.productCount,jdbcType=INTEGER}, + product_comment_count = #{row.productCommentCount,jdbcType=INTEGER}, + logo = #{row.logo,jdbcType=VARCHAR}, + big_pic = #{row.bigPic,jdbcType=VARCHAR} + + + + + + update pms_brand + + + name = #{name,jdbcType=VARCHAR}, + + + first_letter = #{firstLetter,jdbcType=VARCHAR}, + + + sort = #{sort,jdbcType=INTEGER}, + + + factory_status = #{factoryStatus,jdbcType=INTEGER}, + + + show_status = #{showStatus,jdbcType=INTEGER}, + + + product_count = #{productCount,jdbcType=INTEGER}, + + + product_comment_count = #{productCommentCount,jdbcType=INTEGER}, + + + logo = #{logo,jdbcType=VARCHAR}, + + + big_pic = #{bigPic,jdbcType=VARCHAR}, + + + brand_story = #{brandStory,jdbcType=LONGVARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update pms_brand + set name = #{name,jdbcType=VARCHAR}, + first_letter = #{firstLetter,jdbcType=VARCHAR}, + sort = #{sort,jdbcType=INTEGER}, + factory_status = #{factoryStatus,jdbcType=INTEGER}, + show_status = #{showStatus,jdbcType=INTEGER}, + product_count = #{productCount,jdbcType=INTEGER}, + product_comment_count = #{productCommentCount,jdbcType=INTEGER}, + logo = #{logo,jdbcType=VARCHAR}, + big_pic = #{bigPic,jdbcType=VARCHAR}, + brand_story = #{brandStory,jdbcType=LONGVARCHAR} + where id = #{id,jdbcType=BIGINT} + + + update pms_brand + set name = #{name,jdbcType=VARCHAR}, + first_letter = #{firstLetter,jdbcType=VARCHAR}, + sort = #{sort,jdbcType=INTEGER}, + factory_status = #{factoryStatus,jdbcType=INTEGER}, + show_status = #{showStatus,jdbcType=INTEGER}, + product_count = #{productCount,jdbcType=INTEGER}, + product_comment_count = #{productCommentCount,jdbcType=INTEGER}, + logo = #{logo,jdbcType=VARCHAR}, + big_pic = #{bigPic,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsCommentMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsCommentMapper.xml new file mode 100644 index 000000000..74eb51cc4 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsCommentMapper.xml @@ -0,0 +1,428 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, product_id, member_nick_name, product_name, star, member_ip, create_time, show_status, + product_attribute, collect_couont, read_count, pics, member_icon, replay_count + + + content + + + + + + delete from pms_comment + where id = #{id,jdbcType=BIGINT} + + + delete from pms_comment + + + + + + + SELECT LAST_INSERT_ID() + + insert into pms_comment (product_id, member_nick_name, product_name, + star, member_ip, create_time, + show_status, product_attribute, collect_couont, + read_count, pics, member_icon, + replay_count, content) + values (#{productId,jdbcType=BIGINT}, #{memberNickName,jdbcType=VARCHAR}, #{productName,jdbcType=VARCHAR}, + #{star,jdbcType=INTEGER}, #{memberIp,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, + #{showStatus,jdbcType=INTEGER}, #{productAttribute,jdbcType=VARCHAR}, #{collectCouont,jdbcType=INTEGER}, + #{readCount,jdbcType=INTEGER}, #{pics,jdbcType=VARCHAR}, #{memberIcon,jdbcType=VARCHAR}, + #{replayCount,jdbcType=INTEGER}, #{content,jdbcType=LONGVARCHAR}) + + + + SELECT LAST_INSERT_ID() + + insert into pms_comment + + + product_id, + + + member_nick_name, + + + product_name, + + + star, + + + member_ip, + + + create_time, + + + show_status, + + + product_attribute, + + + collect_couont, + + + read_count, + + + pics, + + + member_icon, + + + replay_count, + + + content, + + + + + #{productId,jdbcType=BIGINT}, + + + #{memberNickName,jdbcType=VARCHAR}, + + + #{productName,jdbcType=VARCHAR}, + + + #{star,jdbcType=INTEGER}, + + + #{memberIp,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{showStatus,jdbcType=INTEGER}, + + + #{productAttribute,jdbcType=VARCHAR}, + + + #{collectCouont,jdbcType=INTEGER}, + + + #{readCount,jdbcType=INTEGER}, + + + #{pics,jdbcType=VARCHAR}, + + + #{memberIcon,jdbcType=VARCHAR}, + + + #{replayCount,jdbcType=INTEGER}, + + + #{content,jdbcType=LONGVARCHAR}, + + + + + + update pms_comment + + + id = #{row.id,jdbcType=BIGINT}, + + + product_id = #{row.productId,jdbcType=BIGINT}, + + + member_nick_name = #{row.memberNickName,jdbcType=VARCHAR}, + + + product_name = #{row.productName,jdbcType=VARCHAR}, + + + star = #{row.star,jdbcType=INTEGER}, + + + member_ip = #{row.memberIp,jdbcType=VARCHAR}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + show_status = #{row.showStatus,jdbcType=INTEGER}, + + + product_attribute = #{row.productAttribute,jdbcType=VARCHAR}, + + + collect_couont = #{row.collectCouont,jdbcType=INTEGER}, + + + read_count = #{row.readCount,jdbcType=INTEGER}, + + + pics = #{row.pics,jdbcType=VARCHAR}, + + + member_icon = #{row.memberIcon,jdbcType=VARCHAR}, + + + replay_count = #{row.replayCount,jdbcType=INTEGER}, + + + content = #{row.content,jdbcType=LONGVARCHAR}, + + + + + + + + update pms_comment + set id = #{row.id,jdbcType=BIGINT}, + product_id = #{row.productId,jdbcType=BIGINT}, + member_nick_name = #{row.memberNickName,jdbcType=VARCHAR}, + product_name = #{row.productName,jdbcType=VARCHAR}, + star = #{row.star,jdbcType=INTEGER}, + member_ip = #{row.memberIp,jdbcType=VARCHAR}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + show_status = #{row.showStatus,jdbcType=INTEGER}, + product_attribute = #{row.productAttribute,jdbcType=VARCHAR}, + collect_couont = #{row.collectCouont,jdbcType=INTEGER}, + read_count = #{row.readCount,jdbcType=INTEGER}, + pics = #{row.pics,jdbcType=VARCHAR}, + member_icon = #{row.memberIcon,jdbcType=VARCHAR}, + replay_count = #{row.replayCount,jdbcType=INTEGER}, + content = #{row.content,jdbcType=LONGVARCHAR} + + + + + + update pms_comment + set id = #{row.id,jdbcType=BIGINT}, + product_id = #{row.productId,jdbcType=BIGINT}, + member_nick_name = #{row.memberNickName,jdbcType=VARCHAR}, + product_name = #{row.productName,jdbcType=VARCHAR}, + star = #{row.star,jdbcType=INTEGER}, + member_ip = #{row.memberIp,jdbcType=VARCHAR}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + show_status = #{row.showStatus,jdbcType=INTEGER}, + product_attribute = #{row.productAttribute,jdbcType=VARCHAR}, + collect_couont = #{row.collectCouont,jdbcType=INTEGER}, + read_count = #{row.readCount,jdbcType=INTEGER}, + pics = #{row.pics,jdbcType=VARCHAR}, + member_icon = #{row.memberIcon,jdbcType=VARCHAR}, + replay_count = #{row.replayCount,jdbcType=INTEGER} + + + + + + update pms_comment + + + product_id = #{productId,jdbcType=BIGINT}, + + + member_nick_name = #{memberNickName,jdbcType=VARCHAR}, + + + product_name = #{productName,jdbcType=VARCHAR}, + + + star = #{star,jdbcType=INTEGER}, + + + member_ip = #{memberIp,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + show_status = #{showStatus,jdbcType=INTEGER}, + + + product_attribute = #{productAttribute,jdbcType=VARCHAR}, + + + collect_couont = #{collectCouont,jdbcType=INTEGER}, + + + read_count = #{readCount,jdbcType=INTEGER}, + + + pics = #{pics,jdbcType=VARCHAR}, + + + member_icon = #{memberIcon,jdbcType=VARCHAR}, + + + replay_count = #{replayCount,jdbcType=INTEGER}, + + + content = #{content,jdbcType=LONGVARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update pms_comment + set product_id = #{productId,jdbcType=BIGINT}, + member_nick_name = #{memberNickName,jdbcType=VARCHAR}, + product_name = #{productName,jdbcType=VARCHAR}, + star = #{star,jdbcType=INTEGER}, + member_ip = #{memberIp,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + show_status = #{showStatus,jdbcType=INTEGER}, + product_attribute = #{productAttribute,jdbcType=VARCHAR}, + collect_couont = #{collectCouont,jdbcType=INTEGER}, + read_count = #{readCount,jdbcType=INTEGER}, + pics = #{pics,jdbcType=VARCHAR}, + member_icon = #{memberIcon,jdbcType=VARCHAR}, + replay_count = #{replayCount,jdbcType=INTEGER}, + content = #{content,jdbcType=LONGVARCHAR} + where id = #{id,jdbcType=BIGINT} + + + update pms_comment + set product_id = #{productId,jdbcType=BIGINT}, + member_nick_name = #{memberNickName,jdbcType=VARCHAR}, + product_name = #{productName,jdbcType=VARCHAR}, + star = #{star,jdbcType=INTEGER}, + member_ip = #{memberIp,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + show_status = #{showStatus,jdbcType=INTEGER}, + product_attribute = #{productAttribute,jdbcType=VARCHAR}, + collect_couont = #{collectCouont,jdbcType=INTEGER}, + read_count = #{readCount,jdbcType=INTEGER}, + pics = #{pics,jdbcType=VARCHAR}, + member_icon = #{memberIcon,jdbcType=VARCHAR}, + replay_count = #{replayCount,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsCommentReplayMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsCommentReplayMapper.xml new file mode 100644 index 000000000..c922002e2 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsCommentReplayMapper.xml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, comment_id, member_nick_name, member_icon, content, create_time, type + + + + + delete from pms_comment_replay + where id = #{id,jdbcType=BIGINT} + + + delete from pms_comment_replay + + + + + + + SELECT LAST_INSERT_ID() + + insert into pms_comment_replay (comment_id, member_nick_name, member_icon, + content, create_time, type + ) + values (#{commentId,jdbcType=BIGINT}, #{memberNickName,jdbcType=VARCHAR}, #{memberIcon,jdbcType=VARCHAR}, + #{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{type,jdbcType=INTEGER} + ) + + + + SELECT LAST_INSERT_ID() + + insert into pms_comment_replay + + + comment_id, + + + member_nick_name, + + + member_icon, + + + content, + + + create_time, + + + type, + + + + + #{commentId,jdbcType=BIGINT}, + + + #{memberNickName,jdbcType=VARCHAR}, + + + #{memberIcon,jdbcType=VARCHAR}, + + + #{content,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{type,jdbcType=INTEGER}, + + + + + + update pms_comment_replay + + + id = #{row.id,jdbcType=BIGINT}, + + + comment_id = #{row.commentId,jdbcType=BIGINT}, + + + member_nick_name = #{row.memberNickName,jdbcType=VARCHAR}, + + + member_icon = #{row.memberIcon,jdbcType=VARCHAR}, + + + content = #{row.content,jdbcType=VARCHAR}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + type = #{row.type,jdbcType=INTEGER}, + + + + + + + + update pms_comment_replay + set id = #{row.id,jdbcType=BIGINT}, + comment_id = #{row.commentId,jdbcType=BIGINT}, + member_nick_name = #{row.memberNickName,jdbcType=VARCHAR}, + member_icon = #{row.memberIcon,jdbcType=VARCHAR}, + content = #{row.content,jdbcType=VARCHAR}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + type = #{row.type,jdbcType=INTEGER} + + + + + + update pms_comment_replay + + + comment_id = #{commentId,jdbcType=BIGINT}, + + + member_nick_name = #{memberNickName,jdbcType=VARCHAR}, + + + member_icon = #{memberIcon,jdbcType=VARCHAR}, + + + content = #{content,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + type = #{type,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update pms_comment_replay + set comment_id = #{commentId,jdbcType=BIGINT}, + member_nick_name = #{memberNickName,jdbcType=VARCHAR}, + member_icon = #{memberIcon,jdbcType=VARCHAR}, + content = #{content,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + type = #{type,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsFeightTemplateMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsFeightTemplateMapper.xml new file mode 100644 index 000000000..a3ac32876 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsFeightTemplateMapper.xml @@ -0,0 +1,258 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, charge_type, first_weight, first_fee, continue_weight, continme_fee, dest + + + + + delete from pms_feight_template + where id = #{id,jdbcType=BIGINT} + + + delete from pms_feight_template + + + + + + + SELECT LAST_INSERT_ID() + + insert into pms_feight_template (name, charge_type, first_weight, + first_fee, continue_weight, continme_fee, + dest) + values (#{name,jdbcType=VARCHAR}, #{chargeType,jdbcType=INTEGER}, #{firstWeight,jdbcType=DECIMAL}, + #{firstFee,jdbcType=DECIMAL}, #{continueWeight,jdbcType=DECIMAL}, #{continmeFee,jdbcType=DECIMAL}, + #{dest,jdbcType=VARCHAR}) + + + + SELECT LAST_INSERT_ID() + + insert into pms_feight_template + + + name, + + + charge_type, + + + first_weight, + + + first_fee, + + + continue_weight, + + + continme_fee, + + + dest, + + + + + #{name,jdbcType=VARCHAR}, + + + #{chargeType,jdbcType=INTEGER}, + + + #{firstWeight,jdbcType=DECIMAL}, + + + #{firstFee,jdbcType=DECIMAL}, + + + #{continueWeight,jdbcType=DECIMAL}, + + + #{continmeFee,jdbcType=DECIMAL}, + + + #{dest,jdbcType=VARCHAR}, + + + + + + update pms_feight_template + + + id = #{row.id,jdbcType=BIGINT}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + charge_type = #{row.chargeType,jdbcType=INTEGER}, + + + first_weight = #{row.firstWeight,jdbcType=DECIMAL}, + + + first_fee = #{row.firstFee,jdbcType=DECIMAL}, + + + continue_weight = #{row.continueWeight,jdbcType=DECIMAL}, + + + continme_fee = #{row.continmeFee,jdbcType=DECIMAL}, + + + dest = #{row.dest,jdbcType=VARCHAR}, + + + + + + + + update pms_feight_template + set id = #{row.id,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + charge_type = #{row.chargeType,jdbcType=INTEGER}, + first_weight = #{row.firstWeight,jdbcType=DECIMAL}, + first_fee = #{row.firstFee,jdbcType=DECIMAL}, + continue_weight = #{row.continueWeight,jdbcType=DECIMAL}, + continme_fee = #{row.continmeFee,jdbcType=DECIMAL}, + dest = #{row.dest,jdbcType=VARCHAR} + + + + + + update pms_feight_template + + + name = #{name,jdbcType=VARCHAR}, + + + charge_type = #{chargeType,jdbcType=INTEGER}, + + + first_weight = #{firstWeight,jdbcType=DECIMAL}, + + + first_fee = #{firstFee,jdbcType=DECIMAL}, + + + continue_weight = #{continueWeight,jdbcType=DECIMAL}, + + + continme_fee = #{continmeFee,jdbcType=DECIMAL}, + + + dest = #{dest,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update pms_feight_template + set name = #{name,jdbcType=VARCHAR}, + charge_type = #{chargeType,jdbcType=INTEGER}, + first_weight = #{firstWeight,jdbcType=DECIMAL}, + first_fee = #{firstFee,jdbcType=DECIMAL}, + continue_weight = #{continueWeight,jdbcType=DECIMAL}, + continme_fee = #{continmeFee,jdbcType=DECIMAL}, + dest = #{dest,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsMemberPriceMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsMemberPriceMapper.xml new file mode 100644 index 000000000..5451bff1b --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsMemberPriceMapper.xml @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, product_id, member_level_id, member_price, member_level_name + + + + + delete from pms_member_price + where id = #{id,jdbcType=BIGINT} + + + delete from pms_member_price + + + + + + + SELECT LAST_INSERT_ID() + + insert into pms_member_price (product_id, member_level_id, member_price, + member_level_name) + values (#{productId,jdbcType=BIGINT}, #{memberLevelId,jdbcType=BIGINT}, #{memberPrice,jdbcType=DECIMAL}, + #{memberLevelName,jdbcType=VARCHAR}) + + + + SELECT LAST_INSERT_ID() + + insert into pms_member_price + + + product_id, + + + member_level_id, + + + member_price, + + + member_level_name, + + + + + #{productId,jdbcType=BIGINT}, + + + #{memberLevelId,jdbcType=BIGINT}, + + + #{memberPrice,jdbcType=DECIMAL}, + + + #{memberLevelName,jdbcType=VARCHAR}, + + + + + + update pms_member_price + + + id = #{row.id,jdbcType=BIGINT}, + + + product_id = #{row.productId,jdbcType=BIGINT}, + + + member_level_id = #{row.memberLevelId,jdbcType=BIGINT}, + + + member_price = #{row.memberPrice,jdbcType=DECIMAL}, + + + member_level_name = #{row.memberLevelName,jdbcType=VARCHAR}, + + + + + + + + update pms_member_price + set id = #{row.id,jdbcType=BIGINT}, + product_id = #{row.productId,jdbcType=BIGINT}, + member_level_id = #{row.memberLevelId,jdbcType=BIGINT}, + member_price = #{row.memberPrice,jdbcType=DECIMAL}, + member_level_name = #{row.memberLevelName,jdbcType=VARCHAR} + + + + + + update pms_member_price + + + product_id = #{productId,jdbcType=BIGINT}, + + + member_level_id = #{memberLevelId,jdbcType=BIGINT}, + + + member_price = #{memberPrice,jdbcType=DECIMAL}, + + + member_level_name = #{memberLevelName,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update pms_member_price + set product_id = #{productId,jdbcType=BIGINT}, + member_level_id = #{memberLevelId,jdbcType=BIGINT}, + member_price = #{memberPrice,jdbcType=DECIMAL}, + member_level_name = #{memberLevelName,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductAttributeCategoryMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductAttributeCategoryMapper.xml new file mode 100644 index 000000000..370c11b4e --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductAttributeCategoryMapper.xml @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, attribute_count, param_count + + + + + delete from pms_product_attribute_category + where id = #{id,jdbcType=BIGINT} + + + delete from pms_product_attribute_category + + + + + + + SELECT LAST_INSERT_ID() + + insert into pms_product_attribute_category (name, attribute_count, param_count + ) + values (#{name,jdbcType=VARCHAR}, #{attributeCount,jdbcType=INTEGER}, #{paramCount,jdbcType=INTEGER} + ) + + + + SELECT LAST_INSERT_ID() + + insert into pms_product_attribute_category + + + name, + + + attribute_count, + + + param_count, + + + + + #{name,jdbcType=VARCHAR}, + + + #{attributeCount,jdbcType=INTEGER}, + + + #{paramCount,jdbcType=INTEGER}, + + + + + + update pms_product_attribute_category + + + id = #{row.id,jdbcType=BIGINT}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + attribute_count = #{row.attributeCount,jdbcType=INTEGER}, + + + param_count = #{row.paramCount,jdbcType=INTEGER}, + + + + + + + + update pms_product_attribute_category + set id = #{row.id,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + attribute_count = #{row.attributeCount,jdbcType=INTEGER}, + param_count = #{row.paramCount,jdbcType=INTEGER} + + + + + + update pms_product_attribute_category + + + name = #{name,jdbcType=VARCHAR}, + + + attribute_count = #{attributeCount,jdbcType=INTEGER}, + + + param_count = #{paramCount,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update pms_product_attribute_category + set name = #{name,jdbcType=VARCHAR}, + attribute_count = #{attributeCount,jdbcType=INTEGER}, + param_count = #{paramCount,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductAttributeMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductAttributeMapper.xml new file mode 100644 index 000000000..a1adaea46 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductAttributeMapper.xml @@ -0,0 +1,323 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, product_attribute_category_id, name, select_type, input_type, input_list, sort, + filter_type, search_type, related_status, hand_add_status, type + + + + + delete from pms_product_attribute + where id = #{id,jdbcType=BIGINT} + + + delete from pms_product_attribute + + + + + + + SELECT LAST_INSERT_ID() + + insert into pms_product_attribute (product_attribute_category_id, name, + select_type, input_type, input_list, + sort, filter_type, search_type, + related_status, hand_add_status, type + ) + values (#{productAttributeCategoryId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, + #{selectType,jdbcType=INTEGER}, #{inputType,jdbcType=INTEGER}, #{inputList,jdbcType=VARCHAR}, + #{sort,jdbcType=INTEGER}, #{filterType,jdbcType=INTEGER}, #{searchType,jdbcType=INTEGER}, + #{relatedStatus,jdbcType=INTEGER}, #{handAddStatus,jdbcType=INTEGER}, #{type,jdbcType=INTEGER} + ) + + + + SELECT LAST_INSERT_ID() + + insert into pms_product_attribute + + + product_attribute_category_id, + + + name, + + + select_type, + + + input_type, + + + input_list, + + + sort, + + + filter_type, + + + search_type, + + + related_status, + + + hand_add_status, + + + type, + + + + + #{productAttributeCategoryId,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{selectType,jdbcType=INTEGER}, + + + #{inputType,jdbcType=INTEGER}, + + + #{inputList,jdbcType=VARCHAR}, + + + #{sort,jdbcType=INTEGER}, + + + #{filterType,jdbcType=INTEGER}, + + + #{searchType,jdbcType=INTEGER}, + + + #{relatedStatus,jdbcType=INTEGER}, + + + #{handAddStatus,jdbcType=INTEGER}, + + + #{type,jdbcType=INTEGER}, + + + + + + update pms_product_attribute + + + id = #{row.id,jdbcType=BIGINT}, + + + product_attribute_category_id = #{row.productAttributeCategoryId,jdbcType=BIGINT}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + select_type = #{row.selectType,jdbcType=INTEGER}, + + + input_type = #{row.inputType,jdbcType=INTEGER}, + + + input_list = #{row.inputList,jdbcType=VARCHAR}, + + + sort = #{row.sort,jdbcType=INTEGER}, + + + filter_type = #{row.filterType,jdbcType=INTEGER}, + + + search_type = #{row.searchType,jdbcType=INTEGER}, + + + related_status = #{row.relatedStatus,jdbcType=INTEGER}, + + + hand_add_status = #{row.handAddStatus,jdbcType=INTEGER}, + + + type = #{row.type,jdbcType=INTEGER}, + + + + + + + + update pms_product_attribute + set id = #{row.id,jdbcType=BIGINT}, + product_attribute_category_id = #{row.productAttributeCategoryId,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + select_type = #{row.selectType,jdbcType=INTEGER}, + input_type = #{row.inputType,jdbcType=INTEGER}, + input_list = #{row.inputList,jdbcType=VARCHAR}, + sort = #{row.sort,jdbcType=INTEGER}, + filter_type = #{row.filterType,jdbcType=INTEGER}, + search_type = #{row.searchType,jdbcType=INTEGER}, + related_status = #{row.relatedStatus,jdbcType=INTEGER}, + hand_add_status = #{row.handAddStatus,jdbcType=INTEGER}, + type = #{row.type,jdbcType=INTEGER} + + + + + + update pms_product_attribute + + + product_attribute_category_id = #{productAttributeCategoryId,jdbcType=BIGINT}, + + + name = #{name,jdbcType=VARCHAR}, + + + select_type = #{selectType,jdbcType=INTEGER}, + + + input_type = #{inputType,jdbcType=INTEGER}, + + + input_list = #{inputList,jdbcType=VARCHAR}, + + + sort = #{sort,jdbcType=INTEGER}, + + + filter_type = #{filterType,jdbcType=INTEGER}, + + + search_type = #{searchType,jdbcType=INTEGER}, + + + related_status = #{relatedStatus,jdbcType=INTEGER}, + + + hand_add_status = #{handAddStatus,jdbcType=INTEGER}, + + + type = #{type,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update pms_product_attribute + set product_attribute_category_id = #{productAttributeCategoryId,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + select_type = #{selectType,jdbcType=INTEGER}, + input_type = #{inputType,jdbcType=INTEGER}, + input_list = #{inputList,jdbcType=VARCHAR}, + sort = #{sort,jdbcType=INTEGER}, + filter_type = #{filterType,jdbcType=INTEGER}, + search_type = #{searchType,jdbcType=INTEGER}, + related_status = #{relatedStatus,jdbcType=INTEGER}, + hand_add_status = #{handAddStatus,jdbcType=INTEGER}, + type = #{type,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductAttributeValueMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductAttributeValueMapper.xml new file mode 100644 index 000000000..78de8a544 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductAttributeValueMapper.xml @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, product_id, product_attribute_id, value + + + + + delete from pms_product_attribute_value + where id = #{id,jdbcType=BIGINT} + + + delete from pms_product_attribute_value + + + + + + + SELECT LAST_INSERT_ID() + + insert into pms_product_attribute_value (product_id, product_attribute_id, value + ) + values (#{productId,jdbcType=BIGINT}, #{productAttributeId,jdbcType=BIGINT}, #{value,jdbcType=VARCHAR} + ) + + + + SELECT LAST_INSERT_ID() + + insert into pms_product_attribute_value + + + product_id, + + + product_attribute_id, + + + value, + + + + + #{productId,jdbcType=BIGINT}, + + + #{productAttributeId,jdbcType=BIGINT}, + + + #{value,jdbcType=VARCHAR}, + + + + + + update pms_product_attribute_value + + + id = #{row.id,jdbcType=BIGINT}, + + + product_id = #{row.productId,jdbcType=BIGINT}, + + + product_attribute_id = #{row.productAttributeId,jdbcType=BIGINT}, + + + value = #{row.value,jdbcType=VARCHAR}, + + + + + + + + update pms_product_attribute_value + set id = #{row.id,jdbcType=BIGINT}, + product_id = #{row.productId,jdbcType=BIGINT}, + product_attribute_id = #{row.productAttributeId,jdbcType=BIGINT}, + value = #{row.value,jdbcType=VARCHAR} + + + + + + update pms_product_attribute_value + + + product_id = #{productId,jdbcType=BIGINT}, + + + product_attribute_id = #{productAttributeId,jdbcType=BIGINT}, + + + value = #{value,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update pms_product_attribute_value + set product_id = #{productId,jdbcType=BIGINT}, + product_attribute_id = #{productAttributeId,jdbcType=BIGINT}, + value = #{value,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductCategoryAttributeRelationMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductCategoryAttributeRelationMapper.xml new file mode 100644 index 000000000..a2a287d21 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductCategoryAttributeRelationMapper.xml @@ -0,0 +1,181 @@ + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, product_category_id, product_attribute_id + + + + + delete from pms_product_category_attribute_relation + where id = #{id,jdbcType=BIGINT} + + + delete from pms_product_category_attribute_relation + + + + + + + SELECT LAST_INSERT_ID() + + insert into pms_product_category_attribute_relation (product_category_id, product_attribute_id + ) + values (#{productCategoryId,jdbcType=BIGINT}, #{productAttributeId,jdbcType=BIGINT} + ) + + + + SELECT LAST_INSERT_ID() + + insert into pms_product_category_attribute_relation + + + product_category_id, + + + product_attribute_id, + + + + + #{productCategoryId,jdbcType=BIGINT}, + + + #{productAttributeId,jdbcType=BIGINT}, + + + + + + update pms_product_category_attribute_relation + + + id = #{row.id,jdbcType=BIGINT}, + + + product_category_id = #{row.productCategoryId,jdbcType=BIGINT}, + + + product_attribute_id = #{row.productAttributeId,jdbcType=BIGINT}, + + + + + + + + update pms_product_category_attribute_relation + set id = #{row.id,jdbcType=BIGINT}, + product_category_id = #{row.productCategoryId,jdbcType=BIGINT}, + product_attribute_id = #{row.productAttributeId,jdbcType=BIGINT} + + + + + + update pms_product_category_attribute_relation + + + product_category_id = #{productCategoryId,jdbcType=BIGINT}, + + + product_attribute_id = #{productAttributeId,jdbcType=BIGINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update pms_product_category_attribute_relation + set product_category_id = #{productCategoryId,jdbcType=BIGINT}, + product_attribute_id = #{productAttributeId,jdbcType=BIGINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductCategoryMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductCategoryMapper.xml new file mode 100644 index 000000000..b1930943f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductCategoryMapper.xml @@ -0,0 +1,375 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, parent_id, name, level, product_count, product_unit, nav_status, show_status, + sort, icon, keywords + + + description + + + + + + delete from pms_product_category + where id = #{id,jdbcType=BIGINT} + + + delete from pms_product_category + + + + + + + SELECT LAST_INSERT_ID() + + insert into pms_product_category (parent_id, name, level, + product_count, product_unit, nav_status, + show_status, sort, icon, + keywords, description) + values (#{parentId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{level,jdbcType=INTEGER}, + #{productCount,jdbcType=INTEGER}, #{productUnit,jdbcType=VARCHAR}, #{navStatus,jdbcType=INTEGER}, + #{showStatus,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{icon,jdbcType=VARCHAR}, + #{keywords,jdbcType=VARCHAR}, #{description,jdbcType=LONGVARCHAR}) + + + + SELECT LAST_INSERT_ID() + + insert into pms_product_category + + + parent_id, + + + name, + + + level, + + + product_count, + + + product_unit, + + + nav_status, + + + show_status, + + + sort, + + + icon, + + + keywords, + + + description, + + + + + #{parentId,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{level,jdbcType=INTEGER}, + + + #{productCount,jdbcType=INTEGER}, + + + #{productUnit,jdbcType=VARCHAR}, + + + #{navStatus,jdbcType=INTEGER}, + + + #{showStatus,jdbcType=INTEGER}, + + + #{sort,jdbcType=INTEGER}, + + + #{icon,jdbcType=VARCHAR}, + + + #{keywords,jdbcType=VARCHAR}, + + + #{description,jdbcType=LONGVARCHAR}, + + + + + + update pms_product_category + + + id = #{row.id,jdbcType=BIGINT}, + + + parent_id = #{row.parentId,jdbcType=BIGINT}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + level = #{row.level,jdbcType=INTEGER}, + + + product_count = #{row.productCount,jdbcType=INTEGER}, + + + product_unit = #{row.productUnit,jdbcType=VARCHAR}, + + + nav_status = #{row.navStatus,jdbcType=INTEGER}, + + + show_status = #{row.showStatus,jdbcType=INTEGER}, + + + sort = #{row.sort,jdbcType=INTEGER}, + + + icon = #{row.icon,jdbcType=VARCHAR}, + + + keywords = #{row.keywords,jdbcType=VARCHAR}, + + + description = #{row.description,jdbcType=LONGVARCHAR}, + + + + + + + + update pms_product_category + set id = #{row.id,jdbcType=BIGINT}, + parent_id = #{row.parentId,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + level = #{row.level,jdbcType=INTEGER}, + product_count = #{row.productCount,jdbcType=INTEGER}, + product_unit = #{row.productUnit,jdbcType=VARCHAR}, + nav_status = #{row.navStatus,jdbcType=INTEGER}, + show_status = #{row.showStatus,jdbcType=INTEGER}, + sort = #{row.sort,jdbcType=INTEGER}, + icon = #{row.icon,jdbcType=VARCHAR}, + keywords = #{row.keywords,jdbcType=VARCHAR}, + description = #{row.description,jdbcType=LONGVARCHAR} + + + + + + update pms_product_category + set id = #{row.id,jdbcType=BIGINT}, + parent_id = #{row.parentId,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + level = #{row.level,jdbcType=INTEGER}, + product_count = #{row.productCount,jdbcType=INTEGER}, + product_unit = #{row.productUnit,jdbcType=VARCHAR}, + nav_status = #{row.navStatus,jdbcType=INTEGER}, + show_status = #{row.showStatus,jdbcType=INTEGER}, + sort = #{row.sort,jdbcType=INTEGER}, + icon = #{row.icon,jdbcType=VARCHAR}, + keywords = #{row.keywords,jdbcType=VARCHAR} + + + + + + update pms_product_category + + + parent_id = #{parentId,jdbcType=BIGINT}, + + + name = #{name,jdbcType=VARCHAR}, + + + level = #{level,jdbcType=INTEGER}, + + + product_count = #{productCount,jdbcType=INTEGER}, + + + product_unit = #{productUnit,jdbcType=VARCHAR}, + + + nav_status = #{navStatus,jdbcType=INTEGER}, + + + show_status = #{showStatus,jdbcType=INTEGER}, + + + sort = #{sort,jdbcType=INTEGER}, + + + icon = #{icon,jdbcType=VARCHAR}, + + + keywords = #{keywords,jdbcType=VARCHAR}, + + + description = #{description,jdbcType=LONGVARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update pms_product_category + set parent_id = #{parentId,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + level = #{level,jdbcType=INTEGER}, + product_count = #{productCount,jdbcType=INTEGER}, + product_unit = #{productUnit,jdbcType=VARCHAR}, + nav_status = #{navStatus,jdbcType=INTEGER}, + show_status = #{showStatus,jdbcType=INTEGER}, + sort = #{sort,jdbcType=INTEGER}, + icon = #{icon,jdbcType=VARCHAR}, + keywords = #{keywords,jdbcType=VARCHAR}, + description = #{description,jdbcType=LONGVARCHAR} + where id = #{id,jdbcType=BIGINT} + + + update pms_product_category + set parent_id = #{parentId,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + level = #{level,jdbcType=INTEGER}, + product_count = #{productCount,jdbcType=INTEGER}, + product_unit = #{productUnit,jdbcType=VARCHAR}, + nav_status = #{navStatus,jdbcType=INTEGER}, + show_status = #{showStatus,jdbcType=INTEGER}, + sort = #{sort,jdbcType=INTEGER}, + icon = #{icon,jdbcType=VARCHAR}, + keywords = #{keywords,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductFullReductionMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductFullReductionMapper.xml new file mode 100644 index 000000000..5fa83c98e --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductFullReductionMapper.xml @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, product_id, full_price, reduce_price + + + + + delete from pms_product_full_reduction + where id = #{id,jdbcType=BIGINT} + + + delete from pms_product_full_reduction + + + + + + + SELECT LAST_INSERT_ID() + + insert into pms_product_full_reduction (product_id, full_price, reduce_price + ) + values (#{productId,jdbcType=BIGINT}, #{fullPrice,jdbcType=DECIMAL}, #{reducePrice,jdbcType=DECIMAL} + ) + + + + SELECT LAST_INSERT_ID() + + insert into pms_product_full_reduction + + + product_id, + + + full_price, + + + reduce_price, + + + + + #{productId,jdbcType=BIGINT}, + + + #{fullPrice,jdbcType=DECIMAL}, + + + #{reducePrice,jdbcType=DECIMAL}, + + + + + + update pms_product_full_reduction + + + id = #{row.id,jdbcType=BIGINT}, + + + product_id = #{row.productId,jdbcType=BIGINT}, + + + full_price = #{row.fullPrice,jdbcType=DECIMAL}, + + + reduce_price = #{row.reducePrice,jdbcType=DECIMAL}, + + + + + + + + update pms_product_full_reduction + set id = #{row.id,jdbcType=BIGINT}, + product_id = #{row.productId,jdbcType=BIGINT}, + full_price = #{row.fullPrice,jdbcType=DECIMAL}, + reduce_price = #{row.reducePrice,jdbcType=DECIMAL} + + + + + + update pms_product_full_reduction + + + product_id = #{productId,jdbcType=BIGINT}, + + + full_price = #{fullPrice,jdbcType=DECIMAL}, + + + reduce_price = #{reducePrice,jdbcType=DECIMAL}, + + + where id = #{id,jdbcType=BIGINT} + + + update pms_product_full_reduction + set product_id = #{productId,jdbcType=BIGINT}, + full_price = #{fullPrice,jdbcType=DECIMAL}, + reduce_price = #{reducePrice,jdbcType=DECIMAL} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductLadderMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductLadderMapper.xml new file mode 100644 index 000000000..37eea3404 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductLadderMapper.xml @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, product_id, count, discount, price + + + + + delete from pms_product_ladder + where id = #{id,jdbcType=BIGINT} + + + delete from pms_product_ladder + + + + + + + SELECT LAST_INSERT_ID() + + insert into pms_product_ladder (product_id, count, discount, + price) + values (#{productId,jdbcType=BIGINT}, #{count,jdbcType=INTEGER}, #{discount,jdbcType=DECIMAL}, + #{price,jdbcType=DECIMAL}) + + + + SELECT LAST_INSERT_ID() + + insert into pms_product_ladder + + + product_id, + + + count, + + + discount, + + + price, + + + + + #{productId,jdbcType=BIGINT}, + + + #{count,jdbcType=INTEGER}, + + + #{discount,jdbcType=DECIMAL}, + + + #{price,jdbcType=DECIMAL}, + + + + + + update pms_product_ladder + + + id = #{row.id,jdbcType=BIGINT}, + + + product_id = #{row.productId,jdbcType=BIGINT}, + + + count = #{row.count,jdbcType=INTEGER}, + + + discount = #{row.discount,jdbcType=DECIMAL}, + + + price = #{row.price,jdbcType=DECIMAL}, + + + + + + + + update pms_product_ladder + set id = #{row.id,jdbcType=BIGINT}, + product_id = #{row.productId,jdbcType=BIGINT}, + count = #{row.count,jdbcType=INTEGER}, + discount = #{row.discount,jdbcType=DECIMAL}, + price = #{row.price,jdbcType=DECIMAL} + + + + + + update pms_product_ladder + + + product_id = #{productId,jdbcType=BIGINT}, + + + count = #{count,jdbcType=INTEGER}, + + + discount = #{discount,jdbcType=DECIMAL}, + + + price = #{price,jdbcType=DECIMAL}, + + + where id = #{id,jdbcType=BIGINT} + + + update pms_product_ladder + set product_id = #{productId,jdbcType=BIGINT}, + count = #{count,jdbcType=INTEGER}, + discount = #{discount,jdbcType=DECIMAL}, + price = #{price,jdbcType=DECIMAL} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductMapper.xml new file mode 100644 index 000000000..146c5094b --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductMapper.xml @@ -0,0 +1,903 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, brand_id, product_category_id, feight_template_id, product_attribute_category_id, + name, pic, product_sn, delete_status, publish_status, new_status, recommand_status, + verify_status, sort, sale, price, promotion_price, gift_growth, gift_point, use_point_limit, + sub_title, original_price, stock, low_stock, unit, weight, preview_status, service_ids, + keywords, note, album_pics, detail_title, promotion_start_time, promotion_end_time, + promotion_per_limit, promotion_type, brand_name, product_category_name + + + description, detail_desc, detail_html, detail_mobile_html + + + + + + delete from pms_product + where id = #{id,jdbcType=BIGINT} + + + delete from pms_product + + + + + + + SELECT LAST_INSERT_ID() + + insert into pms_product (brand_id, product_category_id, feight_template_id, + product_attribute_category_id, name, pic, + product_sn, delete_status, publish_status, + new_status, recommand_status, verify_status, + sort, sale, price, + promotion_price, gift_growth, gift_point, + use_point_limit, sub_title, original_price, + stock, low_stock, unit, + weight, preview_status, service_ids, + keywords, note, album_pics, + detail_title, promotion_start_time, promotion_end_time, + promotion_per_limit, promotion_type, brand_name, + product_category_name, description, detail_desc, + detail_html, detail_mobile_html) + values (#{brandId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT}, #{feightTemplateId,jdbcType=BIGINT}, + #{productAttributeCategoryId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR}, + #{productSn,jdbcType=VARCHAR}, #{deleteStatus,jdbcType=INTEGER}, #{publishStatus,jdbcType=INTEGER}, + #{newStatus,jdbcType=INTEGER}, #{recommandStatus,jdbcType=INTEGER}, #{verifyStatus,jdbcType=INTEGER}, + #{sort,jdbcType=INTEGER}, #{sale,jdbcType=INTEGER}, #{price,jdbcType=DECIMAL}, + #{promotionPrice,jdbcType=DECIMAL}, #{giftGrowth,jdbcType=INTEGER}, #{giftPoint,jdbcType=INTEGER}, + #{usePointLimit,jdbcType=INTEGER}, #{subTitle,jdbcType=VARCHAR}, #{originalPrice,jdbcType=DECIMAL}, + #{stock,jdbcType=INTEGER}, #{lowStock,jdbcType=INTEGER}, #{unit,jdbcType=VARCHAR}, + #{weight,jdbcType=DECIMAL}, #{previewStatus,jdbcType=INTEGER}, #{serviceIds,jdbcType=VARCHAR}, + #{keywords,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{albumPics,jdbcType=VARCHAR}, + #{detailTitle,jdbcType=VARCHAR}, #{promotionStartTime,jdbcType=TIMESTAMP}, #{promotionEndTime,jdbcType=TIMESTAMP}, + #{promotionPerLimit,jdbcType=INTEGER}, #{promotionType,jdbcType=INTEGER}, #{brandName,jdbcType=VARCHAR}, + #{productCategoryName,jdbcType=VARCHAR}, #{description,jdbcType=LONGVARCHAR}, #{detailDesc,jdbcType=LONGVARCHAR}, + #{detailHtml,jdbcType=LONGVARCHAR}, #{detailMobileHtml,jdbcType=LONGVARCHAR}) + + + + SELECT LAST_INSERT_ID() + + insert into pms_product + + + brand_id, + + + product_category_id, + + + feight_template_id, + + + product_attribute_category_id, + + + name, + + + pic, + + + product_sn, + + + delete_status, + + + publish_status, + + + new_status, + + + recommand_status, + + + verify_status, + + + sort, + + + sale, + + + price, + + + promotion_price, + + + gift_growth, + + + gift_point, + + + use_point_limit, + + + sub_title, + + + original_price, + + + stock, + + + low_stock, + + + unit, + + + weight, + + + preview_status, + + + service_ids, + + + keywords, + + + note, + + + album_pics, + + + detail_title, + + + promotion_start_time, + + + promotion_end_time, + + + promotion_per_limit, + + + promotion_type, + + + brand_name, + + + product_category_name, + + + description, + + + detail_desc, + + + detail_html, + + + detail_mobile_html, + + + + + #{brandId,jdbcType=BIGINT}, + + + #{productCategoryId,jdbcType=BIGINT}, + + + #{feightTemplateId,jdbcType=BIGINT}, + + + #{productAttributeCategoryId,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{pic,jdbcType=VARCHAR}, + + + #{productSn,jdbcType=VARCHAR}, + + + #{deleteStatus,jdbcType=INTEGER}, + + + #{publishStatus,jdbcType=INTEGER}, + + + #{newStatus,jdbcType=INTEGER}, + + + #{recommandStatus,jdbcType=INTEGER}, + + + #{verifyStatus,jdbcType=INTEGER}, + + + #{sort,jdbcType=INTEGER}, + + + #{sale,jdbcType=INTEGER}, + + + #{price,jdbcType=DECIMAL}, + + + #{promotionPrice,jdbcType=DECIMAL}, + + + #{giftGrowth,jdbcType=INTEGER}, + + + #{giftPoint,jdbcType=INTEGER}, + + + #{usePointLimit,jdbcType=INTEGER}, + + + #{subTitle,jdbcType=VARCHAR}, + + + #{originalPrice,jdbcType=DECIMAL}, + + + #{stock,jdbcType=INTEGER}, + + + #{lowStock,jdbcType=INTEGER}, + + + #{unit,jdbcType=VARCHAR}, + + + #{weight,jdbcType=DECIMAL}, + + + #{previewStatus,jdbcType=INTEGER}, + + + #{serviceIds,jdbcType=VARCHAR}, + + + #{keywords,jdbcType=VARCHAR}, + + + #{note,jdbcType=VARCHAR}, + + + #{albumPics,jdbcType=VARCHAR}, + + + #{detailTitle,jdbcType=VARCHAR}, + + + #{promotionStartTime,jdbcType=TIMESTAMP}, + + + #{promotionEndTime,jdbcType=TIMESTAMP}, + + + #{promotionPerLimit,jdbcType=INTEGER}, + + + #{promotionType,jdbcType=INTEGER}, + + + #{brandName,jdbcType=VARCHAR}, + + + #{productCategoryName,jdbcType=VARCHAR}, + + + #{description,jdbcType=LONGVARCHAR}, + + + #{detailDesc,jdbcType=LONGVARCHAR}, + + + #{detailHtml,jdbcType=LONGVARCHAR}, + + + #{detailMobileHtml,jdbcType=LONGVARCHAR}, + + + + + + update pms_product + + + id = #{row.id,jdbcType=BIGINT}, + + + brand_id = #{row.brandId,jdbcType=BIGINT}, + + + product_category_id = #{row.productCategoryId,jdbcType=BIGINT}, + + + feight_template_id = #{row.feightTemplateId,jdbcType=BIGINT}, + + + product_attribute_category_id = #{row.productAttributeCategoryId,jdbcType=BIGINT}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + pic = #{row.pic,jdbcType=VARCHAR}, + + + product_sn = #{row.productSn,jdbcType=VARCHAR}, + + + delete_status = #{row.deleteStatus,jdbcType=INTEGER}, + + + publish_status = #{row.publishStatus,jdbcType=INTEGER}, + + + new_status = #{row.newStatus,jdbcType=INTEGER}, + + + recommand_status = #{row.recommandStatus,jdbcType=INTEGER}, + + + verify_status = #{row.verifyStatus,jdbcType=INTEGER}, + + + sort = #{row.sort,jdbcType=INTEGER}, + + + sale = #{row.sale,jdbcType=INTEGER}, + + + price = #{row.price,jdbcType=DECIMAL}, + + + promotion_price = #{row.promotionPrice,jdbcType=DECIMAL}, + + + gift_growth = #{row.giftGrowth,jdbcType=INTEGER}, + + + gift_point = #{row.giftPoint,jdbcType=INTEGER}, + + + use_point_limit = #{row.usePointLimit,jdbcType=INTEGER}, + + + sub_title = #{row.subTitle,jdbcType=VARCHAR}, + + + original_price = #{row.originalPrice,jdbcType=DECIMAL}, + + + stock = #{row.stock,jdbcType=INTEGER}, + + + low_stock = #{row.lowStock,jdbcType=INTEGER}, + + + unit = #{row.unit,jdbcType=VARCHAR}, + + + weight = #{row.weight,jdbcType=DECIMAL}, + + + preview_status = #{row.previewStatus,jdbcType=INTEGER}, + + + service_ids = #{row.serviceIds,jdbcType=VARCHAR}, + + + keywords = #{row.keywords,jdbcType=VARCHAR}, + + + note = #{row.note,jdbcType=VARCHAR}, + + + album_pics = #{row.albumPics,jdbcType=VARCHAR}, + + + detail_title = #{row.detailTitle,jdbcType=VARCHAR}, + + + promotion_start_time = #{row.promotionStartTime,jdbcType=TIMESTAMP}, + + + promotion_end_time = #{row.promotionEndTime,jdbcType=TIMESTAMP}, + + + promotion_per_limit = #{row.promotionPerLimit,jdbcType=INTEGER}, + + + promotion_type = #{row.promotionType,jdbcType=INTEGER}, + + + brand_name = #{row.brandName,jdbcType=VARCHAR}, + + + product_category_name = #{row.productCategoryName,jdbcType=VARCHAR}, + + + description = #{row.description,jdbcType=LONGVARCHAR}, + + + detail_desc = #{row.detailDesc,jdbcType=LONGVARCHAR}, + + + detail_html = #{row.detailHtml,jdbcType=LONGVARCHAR}, + + + detail_mobile_html = #{row.detailMobileHtml,jdbcType=LONGVARCHAR}, + + + + + + + + update pms_product + set id = #{row.id,jdbcType=BIGINT}, + brand_id = #{row.brandId,jdbcType=BIGINT}, + product_category_id = #{row.productCategoryId,jdbcType=BIGINT}, + feight_template_id = #{row.feightTemplateId,jdbcType=BIGINT}, + product_attribute_category_id = #{row.productAttributeCategoryId,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + pic = #{row.pic,jdbcType=VARCHAR}, + product_sn = #{row.productSn,jdbcType=VARCHAR}, + delete_status = #{row.deleteStatus,jdbcType=INTEGER}, + publish_status = #{row.publishStatus,jdbcType=INTEGER}, + new_status = #{row.newStatus,jdbcType=INTEGER}, + recommand_status = #{row.recommandStatus,jdbcType=INTEGER}, + verify_status = #{row.verifyStatus,jdbcType=INTEGER}, + sort = #{row.sort,jdbcType=INTEGER}, + sale = #{row.sale,jdbcType=INTEGER}, + price = #{row.price,jdbcType=DECIMAL}, + promotion_price = #{row.promotionPrice,jdbcType=DECIMAL}, + gift_growth = #{row.giftGrowth,jdbcType=INTEGER}, + gift_point = #{row.giftPoint,jdbcType=INTEGER}, + use_point_limit = #{row.usePointLimit,jdbcType=INTEGER}, + sub_title = #{row.subTitle,jdbcType=VARCHAR}, + original_price = #{row.originalPrice,jdbcType=DECIMAL}, + stock = #{row.stock,jdbcType=INTEGER}, + low_stock = #{row.lowStock,jdbcType=INTEGER}, + unit = #{row.unit,jdbcType=VARCHAR}, + weight = #{row.weight,jdbcType=DECIMAL}, + preview_status = #{row.previewStatus,jdbcType=INTEGER}, + service_ids = #{row.serviceIds,jdbcType=VARCHAR}, + keywords = #{row.keywords,jdbcType=VARCHAR}, + note = #{row.note,jdbcType=VARCHAR}, + album_pics = #{row.albumPics,jdbcType=VARCHAR}, + detail_title = #{row.detailTitle,jdbcType=VARCHAR}, + promotion_start_time = #{row.promotionStartTime,jdbcType=TIMESTAMP}, + promotion_end_time = #{row.promotionEndTime,jdbcType=TIMESTAMP}, + promotion_per_limit = #{row.promotionPerLimit,jdbcType=INTEGER}, + promotion_type = #{row.promotionType,jdbcType=INTEGER}, + brand_name = #{row.brandName,jdbcType=VARCHAR}, + product_category_name = #{row.productCategoryName,jdbcType=VARCHAR}, + description = #{row.description,jdbcType=LONGVARCHAR}, + detail_desc = #{row.detailDesc,jdbcType=LONGVARCHAR}, + detail_html = #{row.detailHtml,jdbcType=LONGVARCHAR}, + detail_mobile_html = #{row.detailMobileHtml,jdbcType=LONGVARCHAR} + + + + + + update pms_product + set id = #{row.id,jdbcType=BIGINT}, + brand_id = #{row.brandId,jdbcType=BIGINT}, + product_category_id = #{row.productCategoryId,jdbcType=BIGINT}, + feight_template_id = #{row.feightTemplateId,jdbcType=BIGINT}, + product_attribute_category_id = #{row.productAttributeCategoryId,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + pic = #{row.pic,jdbcType=VARCHAR}, + product_sn = #{row.productSn,jdbcType=VARCHAR}, + delete_status = #{row.deleteStatus,jdbcType=INTEGER}, + publish_status = #{row.publishStatus,jdbcType=INTEGER}, + new_status = #{row.newStatus,jdbcType=INTEGER}, + recommand_status = #{row.recommandStatus,jdbcType=INTEGER}, + verify_status = #{row.verifyStatus,jdbcType=INTEGER}, + sort = #{row.sort,jdbcType=INTEGER}, + sale = #{row.sale,jdbcType=INTEGER}, + price = #{row.price,jdbcType=DECIMAL}, + promotion_price = #{row.promotionPrice,jdbcType=DECIMAL}, + gift_growth = #{row.giftGrowth,jdbcType=INTEGER}, + gift_point = #{row.giftPoint,jdbcType=INTEGER}, + use_point_limit = #{row.usePointLimit,jdbcType=INTEGER}, + sub_title = #{row.subTitle,jdbcType=VARCHAR}, + original_price = #{row.originalPrice,jdbcType=DECIMAL}, + stock = #{row.stock,jdbcType=INTEGER}, + low_stock = #{row.lowStock,jdbcType=INTEGER}, + unit = #{row.unit,jdbcType=VARCHAR}, + weight = #{row.weight,jdbcType=DECIMAL}, + preview_status = #{row.previewStatus,jdbcType=INTEGER}, + service_ids = #{row.serviceIds,jdbcType=VARCHAR}, + keywords = #{row.keywords,jdbcType=VARCHAR}, + note = #{row.note,jdbcType=VARCHAR}, + album_pics = #{row.albumPics,jdbcType=VARCHAR}, + detail_title = #{row.detailTitle,jdbcType=VARCHAR}, + promotion_start_time = #{row.promotionStartTime,jdbcType=TIMESTAMP}, + promotion_end_time = #{row.promotionEndTime,jdbcType=TIMESTAMP}, + promotion_per_limit = #{row.promotionPerLimit,jdbcType=INTEGER}, + promotion_type = #{row.promotionType,jdbcType=INTEGER}, + brand_name = #{row.brandName,jdbcType=VARCHAR}, + product_category_name = #{row.productCategoryName,jdbcType=VARCHAR} + + + + + + update pms_product + + + brand_id = #{brandId,jdbcType=BIGINT}, + + + product_category_id = #{productCategoryId,jdbcType=BIGINT}, + + + feight_template_id = #{feightTemplateId,jdbcType=BIGINT}, + + + product_attribute_category_id = #{productAttributeCategoryId,jdbcType=BIGINT}, + + + name = #{name,jdbcType=VARCHAR}, + + + pic = #{pic,jdbcType=VARCHAR}, + + + product_sn = #{productSn,jdbcType=VARCHAR}, + + + delete_status = #{deleteStatus,jdbcType=INTEGER}, + + + publish_status = #{publishStatus,jdbcType=INTEGER}, + + + new_status = #{newStatus,jdbcType=INTEGER}, + + + recommand_status = #{recommandStatus,jdbcType=INTEGER}, + + + verify_status = #{verifyStatus,jdbcType=INTEGER}, + + + sort = #{sort,jdbcType=INTEGER}, + + + sale = #{sale,jdbcType=INTEGER}, + + + price = #{price,jdbcType=DECIMAL}, + + + promotion_price = #{promotionPrice,jdbcType=DECIMAL}, + + + gift_growth = #{giftGrowth,jdbcType=INTEGER}, + + + gift_point = #{giftPoint,jdbcType=INTEGER}, + + + use_point_limit = #{usePointLimit,jdbcType=INTEGER}, + + + sub_title = #{subTitle,jdbcType=VARCHAR}, + + + original_price = #{originalPrice,jdbcType=DECIMAL}, + + + stock = #{stock,jdbcType=INTEGER}, + + + low_stock = #{lowStock,jdbcType=INTEGER}, + + + unit = #{unit,jdbcType=VARCHAR}, + + + weight = #{weight,jdbcType=DECIMAL}, + + + preview_status = #{previewStatus,jdbcType=INTEGER}, + + + service_ids = #{serviceIds,jdbcType=VARCHAR}, + + + keywords = #{keywords,jdbcType=VARCHAR}, + + + note = #{note,jdbcType=VARCHAR}, + + + album_pics = #{albumPics,jdbcType=VARCHAR}, + + + detail_title = #{detailTitle,jdbcType=VARCHAR}, + + + promotion_start_time = #{promotionStartTime,jdbcType=TIMESTAMP}, + + + promotion_end_time = #{promotionEndTime,jdbcType=TIMESTAMP}, + + + promotion_per_limit = #{promotionPerLimit,jdbcType=INTEGER}, + + + promotion_type = #{promotionType,jdbcType=INTEGER}, + + + brand_name = #{brandName,jdbcType=VARCHAR}, + + + product_category_name = #{productCategoryName,jdbcType=VARCHAR}, + + + description = #{description,jdbcType=LONGVARCHAR}, + + + detail_desc = #{detailDesc,jdbcType=LONGVARCHAR}, + + + detail_html = #{detailHtml,jdbcType=LONGVARCHAR}, + + + detail_mobile_html = #{detailMobileHtml,jdbcType=LONGVARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update pms_product + set brand_id = #{brandId,jdbcType=BIGINT}, + product_category_id = #{productCategoryId,jdbcType=BIGINT}, + feight_template_id = #{feightTemplateId,jdbcType=BIGINT}, + product_attribute_category_id = #{productAttributeCategoryId,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + pic = #{pic,jdbcType=VARCHAR}, + product_sn = #{productSn,jdbcType=VARCHAR}, + delete_status = #{deleteStatus,jdbcType=INTEGER}, + publish_status = #{publishStatus,jdbcType=INTEGER}, + new_status = #{newStatus,jdbcType=INTEGER}, + recommand_status = #{recommandStatus,jdbcType=INTEGER}, + verify_status = #{verifyStatus,jdbcType=INTEGER}, + sort = #{sort,jdbcType=INTEGER}, + sale = #{sale,jdbcType=INTEGER}, + price = #{price,jdbcType=DECIMAL}, + promotion_price = #{promotionPrice,jdbcType=DECIMAL}, + gift_growth = #{giftGrowth,jdbcType=INTEGER}, + gift_point = #{giftPoint,jdbcType=INTEGER}, + use_point_limit = #{usePointLimit,jdbcType=INTEGER}, + sub_title = #{subTitle,jdbcType=VARCHAR}, + original_price = #{originalPrice,jdbcType=DECIMAL}, + stock = #{stock,jdbcType=INTEGER}, + low_stock = #{lowStock,jdbcType=INTEGER}, + unit = #{unit,jdbcType=VARCHAR}, + weight = #{weight,jdbcType=DECIMAL}, + preview_status = #{previewStatus,jdbcType=INTEGER}, + service_ids = #{serviceIds,jdbcType=VARCHAR}, + keywords = #{keywords,jdbcType=VARCHAR}, + note = #{note,jdbcType=VARCHAR}, + album_pics = #{albumPics,jdbcType=VARCHAR}, + detail_title = #{detailTitle,jdbcType=VARCHAR}, + promotion_start_time = #{promotionStartTime,jdbcType=TIMESTAMP}, + promotion_end_time = #{promotionEndTime,jdbcType=TIMESTAMP}, + promotion_per_limit = #{promotionPerLimit,jdbcType=INTEGER}, + promotion_type = #{promotionType,jdbcType=INTEGER}, + brand_name = #{brandName,jdbcType=VARCHAR}, + product_category_name = #{productCategoryName,jdbcType=VARCHAR}, + description = #{description,jdbcType=LONGVARCHAR}, + detail_desc = #{detailDesc,jdbcType=LONGVARCHAR}, + detail_html = #{detailHtml,jdbcType=LONGVARCHAR}, + detail_mobile_html = #{detailMobileHtml,jdbcType=LONGVARCHAR} + where id = #{id,jdbcType=BIGINT} + + + update pms_product + set brand_id = #{brandId,jdbcType=BIGINT}, + product_category_id = #{productCategoryId,jdbcType=BIGINT}, + feight_template_id = #{feightTemplateId,jdbcType=BIGINT}, + product_attribute_category_id = #{productAttributeCategoryId,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + pic = #{pic,jdbcType=VARCHAR}, + product_sn = #{productSn,jdbcType=VARCHAR}, + delete_status = #{deleteStatus,jdbcType=INTEGER}, + publish_status = #{publishStatus,jdbcType=INTEGER}, + new_status = #{newStatus,jdbcType=INTEGER}, + recommand_status = #{recommandStatus,jdbcType=INTEGER}, + verify_status = #{verifyStatus,jdbcType=INTEGER}, + sort = #{sort,jdbcType=INTEGER}, + sale = #{sale,jdbcType=INTEGER}, + price = #{price,jdbcType=DECIMAL}, + promotion_price = #{promotionPrice,jdbcType=DECIMAL}, + gift_growth = #{giftGrowth,jdbcType=INTEGER}, + gift_point = #{giftPoint,jdbcType=INTEGER}, + use_point_limit = #{usePointLimit,jdbcType=INTEGER}, + sub_title = #{subTitle,jdbcType=VARCHAR}, + original_price = #{originalPrice,jdbcType=DECIMAL}, + stock = #{stock,jdbcType=INTEGER}, + low_stock = #{lowStock,jdbcType=INTEGER}, + unit = #{unit,jdbcType=VARCHAR}, + weight = #{weight,jdbcType=DECIMAL}, + preview_status = #{previewStatus,jdbcType=INTEGER}, + service_ids = #{serviceIds,jdbcType=VARCHAR}, + keywords = #{keywords,jdbcType=VARCHAR}, + note = #{note,jdbcType=VARCHAR}, + album_pics = #{albumPics,jdbcType=VARCHAR}, + detail_title = #{detailTitle,jdbcType=VARCHAR}, + promotion_start_time = #{promotionStartTime,jdbcType=TIMESTAMP}, + promotion_end_time = #{promotionEndTime,jdbcType=TIMESTAMP}, + promotion_per_limit = #{promotionPerLimit,jdbcType=INTEGER}, + promotion_type = #{promotionType,jdbcType=INTEGER}, + brand_name = #{brandName,jdbcType=VARCHAR}, + product_category_name = #{productCategoryName,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductOperateLogMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductOperateLogMapper.xml new file mode 100644 index 000000000..104e4cfab --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductOperateLogMapper.xml @@ -0,0 +1,321 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, product_id, price_old, price_new, sale_price_old, sale_price_new, gift_point_old, + gift_point_new, use_point_limit_old, use_point_limit_new, operate_man, create_time + + + + + delete from pms_product_operate_log + where id = #{id,jdbcType=BIGINT} + + + delete from pms_product_operate_log + + + + + + + SELECT LAST_INSERT_ID() + + insert into pms_product_operate_log (product_id, price_old, price_new, + sale_price_old, sale_price_new, gift_point_old, + gift_point_new, use_point_limit_old, use_point_limit_new, + operate_man, create_time) + values (#{productId,jdbcType=BIGINT}, #{priceOld,jdbcType=DECIMAL}, #{priceNew,jdbcType=DECIMAL}, + #{salePriceOld,jdbcType=DECIMAL}, #{salePriceNew,jdbcType=DECIMAL}, #{giftPointOld,jdbcType=INTEGER}, + #{giftPointNew,jdbcType=INTEGER}, #{usePointLimitOld,jdbcType=INTEGER}, #{usePointLimitNew,jdbcType=INTEGER}, + #{operateMan,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}) + + + + SELECT LAST_INSERT_ID() + + insert into pms_product_operate_log + + + product_id, + + + price_old, + + + price_new, + + + sale_price_old, + + + sale_price_new, + + + gift_point_old, + + + gift_point_new, + + + use_point_limit_old, + + + use_point_limit_new, + + + operate_man, + + + create_time, + + + + + #{productId,jdbcType=BIGINT}, + + + #{priceOld,jdbcType=DECIMAL}, + + + #{priceNew,jdbcType=DECIMAL}, + + + #{salePriceOld,jdbcType=DECIMAL}, + + + #{salePriceNew,jdbcType=DECIMAL}, + + + #{giftPointOld,jdbcType=INTEGER}, + + + #{giftPointNew,jdbcType=INTEGER}, + + + #{usePointLimitOld,jdbcType=INTEGER}, + + + #{usePointLimitNew,jdbcType=INTEGER}, + + + #{operateMan,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + + + + update pms_product_operate_log + + + id = #{row.id,jdbcType=BIGINT}, + + + product_id = #{row.productId,jdbcType=BIGINT}, + + + price_old = #{row.priceOld,jdbcType=DECIMAL}, + + + price_new = #{row.priceNew,jdbcType=DECIMAL}, + + + sale_price_old = #{row.salePriceOld,jdbcType=DECIMAL}, + + + sale_price_new = #{row.salePriceNew,jdbcType=DECIMAL}, + + + gift_point_old = #{row.giftPointOld,jdbcType=INTEGER}, + + + gift_point_new = #{row.giftPointNew,jdbcType=INTEGER}, + + + use_point_limit_old = #{row.usePointLimitOld,jdbcType=INTEGER}, + + + use_point_limit_new = #{row.usePointLimitNew,jdbcType=INTEGER}, + + + operate_man = #{row.operateMan,jdbcType=VARCHAR}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + + + + + + update pms_product_operate_log + set id = #{row.id,jdbcType=BIGINT}, + product_id = #{row.productId,jdbcType=BIGINT}, + price_old = #{row.priceOld,jdbcType=DECIMAL}, + price_new = #{row.priceNew,jdbcType=DECIMAL}, + sale_price_old = #{row.salePriceOld,jdbcType=DECIMAL}, + sale_price_new = #{row.salePriceNew,jdbcType=DECIMAL}, + gift_point_old = #{row.giftPointOld,jdbcType=INTEGER}, + gift_point_new = #{row.giftPointNew,jdbcType=INTEGER}, + use_point_limit_old = #{row.usePointLimitOld,jdbcType=INTEGER}, + use_point_limit_new = #{row.usePointLimitNew,jdbcType=INTEGER}, + operate_man = #{row.operateMan,jdbcType=VARCHAR}, + create_time = #{row.createTime,jdbcType=TIMESTAMP} + + + + + + update pms_product_operate_log + + + product_id = #{productId,jdbcType=BIGINT}, + + + price_old = #{priceOld,jdbcType=DECIMAL}, + + + price_new = #{priceNew,jdbcType=DECIMAL}, + + + sale_price_old = #{salePriceOld,jdbcType=DECIMAL}, + + + sale_price_new = #{salePriceNew,jdbcType=DECIMAL}, + + + gift_point_old = #{giftPointOld,jdbcType=INTEGER}, + + + gift_point_new = #{giftPointNew,jdbcType=INTEGER}, + + + use_point_limit_old = #{usePointLimitOld,jdbcType=INTEGER}, + + + use_point_limit_new = #{usePointLimitNew,jdbcType=INTEGER}, + + + operate_man = #{operateMan,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + where id = #{id,jdbcType=BIGINT} + + + update pms_product_operate_log + set product_id = #{productId,jdbcType=BIGINT}, + price_old = #{priceOld,jdbcType=DECIMAL}, + price_new = #{priceNew,jdbcType=DECIMAL}, + sale_price_old = #{salePriceOld,jdbcType=DECIMAL}, + sale_price_new = #{salePriceNew,jdbcType=DECIMAL}, + gift_point_old = #{giftPointOld,jdbcType=INTEGER}, + gift_point_new = #{giftPointNew,jdbcType=INTEGER}, + use_point_limit_old = #{usePointLimitOld,jdbcType=INTEGER}, + use_point_limit_new = #{usePointLimitNew,jdbcType=INTEGER}, + operate_man = #{operateMan,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductVertifyRecordMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductVertifyRecordMapper.xml new file mode 100644 index 000000000..baf481d20 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsProductVertifyRecordMapper.xml @@ -0,0 +1,226 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, product_id, create_time, vertify_man, status, detail + + + + + delete from pms_product_vertify_record + where id = #{id,jdbcType=BIGINT} + + + delete from pms_product_vertify_record + + + + + + + SELECT LAST_INSERT_ID() + + insert into pms_product_vertify_record (product_id, create_time, vertify_man, + status, detail) + values (#{productId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{vertifyMan,jdbcType=VARCHAR}, + #{status,jdbcType=INTEGER}, #{detail,jdbcType=VARCHAR}) + + + + SELECT LAST_INSERT_ID() + + insert into pms_product_vertify_record + + + product_id, + + + create_time, + + + vertify_man, + + + status, + + + detail, + + + + + #{productId,jdbcType=BIGINT}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{vertifyMan,jdbcType=VARCHAR}, + + + #{status,jdbcType=INTEGER}, + + + #{detail,jdbcType=VARCHAR}, + + + + + + update pms_product_vertify_record + + + id = #{row.id,jdbcType=BIGINT}, + + + product_id = #{row.productId,jdbcType=BIGINT}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + vertify_man = #{row.vertifyMan,jdbcType=VARCHAR}, + + + status = #{row.status,jdbcType=INTEGER}, + + + detail = #{row.detail,jdbcType=VARCHAR}, + + + + + + + + update pms_product_vertify_record + set id = #{row.id,jdbcType=BIGINT}, + product_id = #{row.productId,jdbcType=BIGINT}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + vertify_man = #{row.vertifyMan,jdbcType=VARCHAR}, + status = #{row.status,jdbcType=INTEGER}, + detail = #{row.detail,jdbcType=VARCHAR} + + + + + + update pms_product_vertify_record + + + product_id = #{productId,jdbcType=BIGINT}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + vertify_man = #{vertifyMan,jdbcType=VARCHAR}, + + + status = #{status,jdbcType=INTEGER}, + + + detail = #{detail,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update pms_product_vertify_record + set product_id = #{productId,jdbcType=BIGINT}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + vertify_man = #{vertifyMan,jdbcType=VARCHAR}, + status = #{status,jdbcType=INTEGER}, + detail = #{detail,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsSkuStockMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsSkuStockMapper.xml new file mode 100644 index 000000000..87b82258d --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/PmsSkuStockMapper.xml @@ -0,0 +1,306 @@ + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, product_id, sku_code, price, stock, low_stock, pic, sale, promotion_price, lock_stock, + sp_data + + + + + delete from pms_sku_stock + where id = #{id,jdbcType=BIGINT} + + + delete from pms_sku_stock + + + + + + + SELECT LAST_INSERT_ID() + + insert into pms_sku_stock (product_id, sku_code, price, + stock, low_stock, pic, + sale, promotion_price, lock_stock, + sp_data) + values (#{productId,jdbcType=BIGINT}, #{skuCode,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, + #{stock,jdbcType=INTEGER}, #{lowStock,jdbcType=INTEGER}, #{pic,jdbcType=VARCHAR}, + #{sale,jdbcType=INTEGER}, #{promotionPrice,jdbcType=DECIMAL}, #{lockStock,jdbcType=INTEGER}, + #{spData,jdbcType=VARCHAR}) + + + + SELECT LAST_INSERT_ID() + + insert into pms_sku_stock + + + product_id, + + + sku_code, + + + price, + + + stock, + + + low_stock, + + + pic, + + + sale, + + + promotion_price, + + + lock_stock, + + + sp_data, + + + + + #{productId,jdbcType=BIGINT}, + + + #{skuCode,jdbcType=VARCHAR}, + + + #{price,jdbcType=DECIMAL}, + + + #{stock,jdbcType=INTEGER}, + + + #{lowStock,jdbcType=INTEGER}, + + + #{pic,jdbcType=VARCHAR}, + + + #{sale,jdbcType=INTEGER}, + + + #{promotionPrice,jdbcType=DECIMAL}, + + + #{lockStock,jdbcType=INTEGER}, + + + #{spData,jdbcType=VARCHAR}, + + + + + + update pms_sku_stock + + + id = #{row.id,jdbcType=BIGINT}, + + + product_id = #{row.productId,jdbcType=BIGINT}, + + + sku_code = #{row.skuCode,jdbcType=VARCHAR}, + + + price = #{row.price,jdbcType=DECIMAL}, + + + stock = #{row.stock,jdbcType=INTEGER}, + + + low_stock = #{row.lowStock,jdbcType=INTEGER}, + + + pic = #{row.pic,jdbcType=VARCHAR}, + + + sale = #{row.sale,jdbcType=INTEGER}, + + + promotion_price = #{row.promotionPrice,jdbcType=DECIMAL}, + + + lock_stock = #{row.lockStock,jdbcType=INTEGER}, + + + sp_data = #{row.spData,jdbcType=VARCHAR}, + + + + + + + + update pms_sku_stock + set id = #{row.id,jdbcType=BIGINT}, + product_id = #{row.productId,jdbcType=BIGINT}, + sku_code = #{row.skuCode,jdbcType=VARCHAR}, + price = #{row.price,jdbcType=DECIMAL}, + stock = #{row.stock,jdbcType=INTEGER}, + low_stock = #{row.lowStock,jdbcType=INTEGER}, + pic = #{row.pic,jdbcType=VARCHAR}, + sale = #{row.sale,jdbcType=INTEGER}, + promotion_price = #{row.promotionPrice,jdbcType=DECIMAL}, + lock_stock = #{row.lockStock,jdbcType=INTEGER}, + sp_data = #{row.spData,jdbcType=VARCHAR} + + + + + + update pms_sku_stock + + + product_id = #{productId,jdbcType=BIGINT}, + + + sku_code = #{skuCode,jdbcType=VARCHAR}, + + + price = #{price,jdbcType=DECIMAL}, + + + stock = #{stock,jdbcType=INTEGER}, + + + low_stock = #{lowStock,jdbcType=INTEGER}, + + + pic = #{pic,jdbcType=VARCHAR}, + + + sale = #{sale,jdbcType=INTEGER}, + + + promotion_price = #{promotionPrice,jdbcType=DECIMAL}, + + + lock_stock = #{lockStock,jdbcType=INTEGER}, + + + sp_data = #{spData,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update pms_sku_stock + set product_id = #{productId,jdbcType=BIGINT}, + sku_code = #{skuCode,jdbcType=VARCHAR}, + price = #{price,jdbcType=DECIMAL}, + stock = #{stock,jdbcType=INTEGER}, + low_stock = #{lowStock,jdbcType=INTEGER}, + pic = #{pic,jdbcType=VARCHAR}, + sale = #{sale,jdbcType=INTEGER}, + promotion_price = #{promotionPrice,jdbcType=DECIMAL}, + lock_stock = #{lockStock,jdbcType=INTEGER}, + sp_data = #{spData,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponHistoryMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponHistoryMapper.xml new file mode 100644 index 000000000..771d5256f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponHistoryMapper.xml @@ -0,0 +1,306 @@ + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, coupon_id, member_id, coupon_code, member_nickname, get_type, create_time, use_status, + use_time, order_id, order_sn + + + + + delete from sms_coupon_history + where id = #{id,jdbcType=BIGINT} + + + delete from sms_coupon_history + + + + + + + SELECT LAST_INSERT_ID() + + insert into sms_coupon_history (coupon_id, member_id, coupon_code, + member_nickname, get_type, create_time, + use_status, use_time, order_id, + order_sn) + values (#{couponId,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, #{couponCode,jdbcType=VARCHAR}, + #{memberNickname,jdbcType=VARCHAR}, #{getType,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, + #{useStatus,jdbcType=INTEGER}, #{useTime,jdbcType=TIMESTAMP}, #{orderId,jdbcType=BIGINT}, + #{orderSn,jdbcType=VARCHAR}) + + + + SELECT LAST_INSERT_ID() + + insert into sms_coupon_history + + + coupon_id, + + + member_id, + + + coupon_code, + + + member_nickname, + + + get_type, + + + create_time, + + + use_status, + + + use_time, + + + order_id, + + + order_sn, + + + + + #{couponId,jdbcType=BIGINT}, + + + #{memberId,jdbcType=BIGINT}, + + + #{couponCode,jdbcType=VARCHAR}, + + + #{memberNickname,jdbcType=VARCHAR}, + + + #{getType,jdbcType=INTEGER}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{useStatus,jdbcType=INTEGER}, + + + #{useTime,jdbcType=TIMESTAMP}, + + + #{orderId,jdbcType=BIGINT}, + + + #{orderSn,jdbcType=VARCHAR}, + + + + + + update sms_coupon_history + + + id = #{row.id,jdbcType=BIGINT}, + + + coupon_id = #{row.couponId,jdbcType=BIGINT}, + + + member_id = #{row.memberId,jdbcType=BIGINT}, + + + coupon_code = #{row.couponCode,jdbcType=VARCHAR}, + + + member_nickname = #{row.memberNickname,jdbcType=VARCHAR}, + + + get_type = #{row.getType,jdbcType=INTEGER}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + use_status = #{row.useStatus,jdbcType=INTEGER}, + + + use_time = #{row.useTime,jdbcType=TIMESTAMP}, + + + order_id = #{row.orderId,jdbcType=BIGINT}, + + + order_sn = #{row.orderSn,jdbcType=VARCHAR}, + + + + + + + + update sms_coupon_history + set id = #{row.id,jdbcType=BIGINT}, + coupon_id = #{row.couponId,jdbcType=BIGINT}, + member_id = #{row.memberId,jdbcType=BIGINT}, + coupon_code = #{row.couponCode,jdbcType=VARCHAR}, + member_nickname = #{row.memberNickname,jdbcType=VARCHAR}, + get_type = #{row.getType,jdbcType=INTEGER}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + use_status = #{row.useStatus,jdbcType=INTEGER}, + use_time = #{row.useTime,jdbcType=TIMESTAMP}, + order_id = #{row.orderId,jdbcType=BIGINT}, + order_sn = #{row.orderSn,jdbcType=VARCHAR} + + + + + + update sms_coupon_history + + + coupon_id = #{couponId,jdbcType=BIGINT}, + + + member_id = #{memberId,jdbcType=BIGINT}, + + + coupon_code = #{couponCode,jdbcType=VARCHAR}, + + + member_nickname = #{memberNickname,jdbcType=VARCHAR}, + + + get_type = #{getType,jdbcType=INTEGER}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + use_status = #{useStatus,jdbcType=INTEGER}, + + + use_time = #{useTime,jdbcType=TIMESTAMP}, + + + order_id = #{orderId,jdbcType=BIGINT}, + + + order_sn = #{orderSn,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update sms_coupon_history + set coupon_id = #{couponId,jdbcType=BIGINT}, + member_id = #{memberId,jdbcType=BIGINT}, + coupon_code = #{couponCode,jdbcType=VARCHAR}, + member_nickname = #{memberNickname,jdbcType=VARCHAR}, + get_type = #{getType,jdbcType=INTEGER}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + use_status = #{useStatus,jdbcType=INTEGER}, + use_time = #{useTime,jdbcType=TIMESTAMP}, + order_id = #{orderId,jdbcType=BIGINT}, + order_sn = #{orderSn,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponMapper.xml new file mode 100644 index 000000000..812df2087 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponMapper.xml @@ -0,0 +1,415 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, type, name, platform, count, amount, per_limit, min_point, start_time, end_time, + use_type, note, publish_count, use_count, receive_count, enable_time, code, member_level + + + + + delete from sms_coupon + where id = #{id,jdbcType=BIGINT} + + + delete from sms_coupon + + + + + + + SELECT LAST_INSERT_ID() + + insert into sms_coupon (type, name, platform, + count, amount, per_limit, + min_point, start_time, end_time, + use_type, note, publish_count, + use_count, receive_count, enable_time, + code, member_level) + values (#{type,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{platform,jdbcType=INTEGER}, + #{count,jdbcType=INTEGER}, #{amount,jdbcType=DECIMAL}, #{perLimit,jdbcType=INTEGER}, + #{minPoint,jdbcType=DECIMAL}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, + #{useType,jdbcType=INTEGER}, #{note,jdbcType=VARCHAR}, #{publishCount,jdbcType=INTEGER}, + #{useCount,jdbcType=INTEGER}, #{receiveCount,jdbcType=INTEGER}, #{enableTime,jdbcType=TIMESTAMP}, + #{code,jdbcType=VARCHAR}, #{memberLevel,jdbcType=INTEGER}) + + + + SELECT LAST_INSERT_ID() + + insert into sms_coupon + + + type, + + + name, + + + platform, + + + count, + + + amount, + + + per_limit, + + + min_point, + + + start_time, + + + end_time, + + + use_type, + + + note, + + + publish_count, + + + use_count, + + + receive_count, + + + enable_time, + + + code, + + + member_level, + + + + + #{type,jdbcType=INTEGER}, + + + #{name,jdbcType=VARCHAR}, + + + #{platform,jdbcType=INTEGER}, + + + #{count,jdbcType=INTEGER}, + + + #{amount,jdbcType=DECIMAL}, + + + #{perLimit,jdbcType=INTEGER}, + + + #{minPoint,jdbcType=DECIMAL}, + + + #{startTime,jdbcType=TIMESTAMP}, + + + #{endTime,jdbcType=TIMESTAMP}, + + + #{useType,jdbcType=INTEGER}, + + + #{note,jdbcType=VARCHAR}, + + + #{publishCount,jdbcType=INTEGER}, + + + #{useCount,jdbcType=INTEGER}, + + + #{receiveCount,jdbcType=INTEGER}, + + + #{enableTime,jdbcType=TIMESTAMP}, + + + #{code,jdbcType=VARCHAR}, + + + #{memberLevel,jdbcType=INTEGER}, + + + + + + update sms_coupon + + + id = #{row.id,jdbcType=BIGINT}, + + + type = #{row.type,jdbcType=INTEGER}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + platform = #{row.platform,jdbcType=INTEGER}, + + + count = #{row.count,jdbcType=INTEGER}, + + + amount = #{row.amount,jdbcType=DECIMAL}, + + + per_limit = #{row.perLimit,jdbcType=INTEGER}, + + + min_point = #{row.minPoint,jdbcType=DECIMAL}, + + + start_time = #{row.startTime,jdbcType=TIMESTAMP}, + + + end_time = #{row.endTime,jdbcType=TIMESTAMP}, + + + use_type = #{row.useType,jdbcType=INTEGER}, + + + note = #{row.note,jdbcType=VARCHAR}, + + + publish_count = #{row.publishCount,jdbcType=INTEGER}, + + + use_count = #{row.useCount,jdbcType=INTEGER}, + + + receive_count = #{row.receiveCount,jdbcType=INTEGER}, + + + enable_time = #{row.enableTime,jdbcType=TIMESTAMP}, + + + code = #{row.code,jdbcType=VARCHAR}, + + + member_level = #{row.memberLevel,jdbcType=INTEGER}, + + + + + + + + update sms_coupon + set id = #{row.id,jdbcType=BIGINT}, + type = #{row.type,jdbcType=INTEGER}, + name = #{row.name,jdbcType=VARCHAR}, + platform = #{row.platform,jdbcType=INTEGER}, + count = #{row.count,jdbcType=INTEGER}, + amount = #{row.amount,jdbcType=DECIMAL}, + per_limit = #{row.perLimit,jdbcType=INTEGER}, + min_point = #{row.minPoint,jdbcType=DECIMAL}, + start_time = #{row.startTime,jdbcType=TIMESTAMP}, + end_time = #{row.endTime,jdbcType=TIMESTAMP}, + use_type = #{row.useType,jdbcType=INTEGER}, + note = #{row.note,jdbcType=VARCHAR}, + publish_count = #{row.publishCount,jdbcType=INTEGER}, + use_count = #{row.useCount,jdbcType=INTEGER}, + receive_count = #{row.receiveCount,jdbcType=INTEGER}, + enable_time = #{row.enableTime,jdbcType=TIMESTAMP}, + code = #{row.code,jdbcType=VARCHAR}, + member_level = #{row.memberLevel,jdbcType=INTEGER} + + + + + + update sms_coupon + + + type = #{type,jdbcType=INTEGER}, + + + name = #{name,jdbcType=VARCHAR}, + + + platform = #{platform,jdbcType=INTEGER}, + + + count = #{count,jdbcType=INTEGER}, + + + amount = #{amount,jdbcType=DECIMAL}, + + + per_limit = #{perLimit,jdbcType=INTEGER}, + + + min_point = #{minPoint,jdbcType=DECIMAL}, + + + start_time = #{startTime,jdbcType=TIMESTAMP}, + + + end_time = #{endTime,jdbcType=TIMESTAMP}, + + + use_type = #{useType,jdbcType=INTEGER}, + + + note = #{note,jdbcType=VARCHAR}, + + + publish_count = #{publishCount,jdbcType=INTEGER}, + + + use_count = #{useCount,jdbcType=INTEGER}, + + + receive_count = #{receiveCount,jdbcType=INTEGER}, + + + enable_time = #{enableTime,jdbcType=TIMESTAMP}, + + + code = #{code,jdbcType=VARCHAR}, + + + member_level = #{memberLevel,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update sms_coupon + set type = #{type,jdbcType=INTEGER}, + name = #{name,jdbcType=VARCHAR}, + platform = #{platform,jdbcType=INTEGER}, + count = #{count,jdbcType=INTEGER}, + amount = #{amount,jdbcType=DECIMAL}, + per_limit = #{perLimit,jdbcType=INTEGER}, + min_point = #{minPoint,jdbcType=DECIMAL}, + start_time = #{startTime,jdbcType=TIMESTAMP}, + end_time = #{endTime,jdbcType=TIMESTAMP}, + use_type = #{useType,jdbcType=INTEGER}, + note = #{note,jdbcType=VARCHAR}, + publish_count = #{publishCount,jdbcType=INTEGER}, + use_count = #{useCount,jdbcType=INTEGER}, + receive_count = #{receiveCount,jdbcType=INTEGER}, + enable_time = #{enableTime,jdbcType=TIMESTAMP}, + code = #{code,jdbcType=VARCHAR}, + member_level = #{memberLevel,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponProductCategoryRelationMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponProductCategoryRelationMapper.xml new file mode 100644 index 000000000..a9fc7695f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponProductCategoryRelationMapper.xml @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, coupon_id, product_category_id, product_category_name, parent_category_name + + + + + delete from sms_coupon_product_category_relation + where id = #{id,jdbcType=BIGINT} + + + delete from sms_coupon_product_category_relation + + + + + + + SELECT LAST_INSERT_ID() + + insert into sms_coupon_product_category_relation (coupon_id, product_category_id, product_category_name, + parent_category_name) + values (#{couponId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT}, #{productCategoryName,jdbcType=VARCHAR}, + #{parentCategoryName,jdbcType=VARCHAR}) + + + + SELECT LAST_INSERT_ID() + + insert into sms_coupon_product_category_relation + + + coupon_id, + + + product_category_id, + + + product_category_name, + + + parent_category_name, + + + + + #{couponId,jdbcType=BIGINT}, + + + #{productCategoryId,jdbcType=BIGINT}, + + + #{productCategoryName,jdbcType=VARCHAR}, + + + #{parentCategoryName,jdbcType=VARCHAR}, + + + + + + update sms_coupon_product_category_relation + + + id = #{row.id,jdbcType=BIGINT}, + + + coupon_id = #{row.couponId,jdbcType=BIGINT}, + + + product_category_id = #{row.productCategoryId,jdbcType=BIGINT}, + + + product_category_name = #{row.productCategoryName,jdbcType=VARCHAR}, + + + parent_category_name = #{row.parentCategoryName,jdbcType=VARCHAR}, + + + + + + + + update sms_coupon_product_category_relation + set id = #{row.id,jdbcType=BIGINT}, + coupon_id = #{row.couponId,jdbcType=BIGINT}, + product_category_id = #{row.productCategoryId,jdbcType=BIGINT}, + product_category_name = #{row.productCategoryName,jdbcType=VARCHAR}, + parent_category_name = #{row.parentCategoryName,jdbcType=VARCHAR} + + + + + + update sms_coupon_product_category_relation + + + coupon_id = #{couponId,jdbcType=BIGINT}, + + + product_category_id = #{productCategoryId,jdbcType=BIGINT}, + + + product_category_name = #{productCategoryName,jdbcType=VARCHAR}, + + + parent_category_name = #{parentCategoryName,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update sms_coupon_product_category_relation + set coupon_id = #{couponId,jdbcType=BIGINT}, + product_category_id = #{productCategoryId,jdbcType=BIGINT}, + product_category_name = #{productCategoryName,jdbcType=VARCHAR}, + parent_category_name = #{parentCategoryName,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponProductRelationMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponProductRelationMapper.xml new file mode 100644 index 000000000..042378663 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponProductRelationMapper.xml @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, coupon_id, product_id, product_name, product_sn + + + + + delete from sms_coupon_product_relation + where id = #{id,jdbcType=BIGINT} + + + delete from sms_coupon_product_relation + + + + + + + SELECT LAST_INSERT_ID() + + insert into sms_coupon_product_relation (coupon_id, product_id, product_name, + product_sn) + values (#{couponId,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, #{productName,jdbcType=VARCHAR}, + #{productSn,jdbcType=VARCHAR}) + + + + SELECT LAST_INSERT_ID() + + insert into sms_coupon_product_relation + + + coupon_id, + + + product_id, + + + product_name, + + + product_sn, + + + + + #{couponId,jdbcType=BIGINT}, + + + #{productId,jdbcType=BIGINT}, + + + #{productName,jdbcType=VARCHAR}, + + + #{productSn,jdbcType=VARCHAR}, + + + + + + update sms_coupon_product_relation + + + id = #{row.id,jdbcType=BIGINT}, + + + coupon_id = #{row.couponId,jdbcType=BIGINT}, + + + product_id = #{row.productId,jdbcType=BIGINT}, + + + product_name = #{row.productName,jdbcType=VARCHAR}, + + + product_sn = #{row.productSn,jdbcType=VARCHAR}, + + + + + + + + update sms_coupon_product_relation + set id = #{row.id,jdbcType=BIGINT}, + coupon_id = #{row.couponId,jdbcType=BIGINT}, + product_id = #{row.productId,jdbcType=BIGINT}, + product_name = #{row.productName,jdbcType=VARCHAR}, + product_sn = #{row.productSn,jdbcType=VARCHAR} + + + + + + update sms_coupon_product_relation + + + coupon_id = #{couponId,jdbcType=BIGINT}, + + + product_id = #{productId,jdbcType=BIGINT}, + + + product_name = #{productName,jdbcType=VARCHAR}, + + + product_sn = #{productSn,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update sms_coupon_product_relation + set coupon_id = #{couponId,jdbcType=BIGINT}, + product_id = #{productId,jdbcType=BIGINT}, + product_name = #{productName,jdbcType=VARCHAR}, + product_sn = #{productSn,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionLogMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionLogMapper.xml new file mode 100644 index 000000000..55d279d17 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionLogMapper.xml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, member_id, product_id, member_phone, product_name, subscribe_time, send_time + + + + + delete from sms_flash_promotion_log + where id = #{id,jdbcType=INTEGER} + + + delete from sms_flash_promotion_log + + + + + + + SELECT LAST_INSERT_ID() + + insert into sms_flash_promotion_log (member_id, product_id, member_phone, + product_name, subscribe_time, send_time + ) + values (#{memberId,jdbcType=INTEGER}, #{productId,jdbcType=BIGINT}, #{memberPhone,jdbcType=VARCHAR}, + #{productName,jdbcType=VARCHAR}, #{subscribeTime,jdbcType=TIMESTAMP}, #{sendTime,jdbcType=TIMESTAMP} + ) + + + + SELECT LAST_INSERT_ID() + + insert into sms_flash_promotion_log + + + member_id, + + + product_id, + + + member_phone, + + + product_name, + + + subscribe_time, + + + send_time, + + + + + #{memberId,jdbcType=INTEGER}, + + + #{productId,jdbcType=BIGINT}, + + + #{memberPhone,jdbcType=VARCHAR}, + + + #{productName,jdbcType=VARCHAR}, + + + #{subscribeTime,jdbcType=TIMESTAMP}, + + + #{sendTime,jdbcType=TIMESTAMP}, + + + + + + update sms_flash_promotion_log + + + id = #{row.id,jdbcType=INTEGER}, + + + member_id = #{row.memberId,jdbcType=INTEGER}, + + + product_id = #{row.productId,jdbcType=BIGINT}, + + + member_phone = #{row.memberPhone,jdbcType=VARCHAR}, + + + product_name = #{row.productName,jdbcType=VARCHAR}, + + + subscribe_time = #{row.subscribeTime,jdbcType=TIMESTAMP}, + + + send_time = #{row.sendTime,jdbcType=TIMESTAMP}, + + + + + + + + update sms_flash_promotion_log + set id = #{row.id,jdbcType=INTEGER}, + member_id = #{row.memberId,jdbcType=INTEGER}, + product_id = #{row.productId,jdbcType=BIGINT}, + member_phone = #{row.memberPhone,jdbcType=VARCHAR}, + product_name = #{row.productName,jdbcType=VARCHAR}, + subscribe_time = #{row.subscribeTime,jdbcType=TIMESTAMP}, + send_time = #{row.sendTime,jdbcType=TIMESTAMP} + + + + + + update sms_flash_promotion_log + + + member_id = #{memberId,jdbcType=INTEGER}, + + + product_id = #{productId,jdbcType=BIGINT}, + + + member_phone = #{memberPhone,jdbcType=VARCHAR}, + + + product_name = #{productName,jdbcType=VARCHAR}, + + + subscribe_time = #{subscribeTime,jdbcType=TIMESTAMP}, + + + send_time = #{sendTime,jdbcType=TIMESTAMP}, + + + where id = #{id,jdbcType=INTEGER} + + + update sms_flash_promotion_log + set member_id = #{memberId,jdbcType=INTEGER}, + product_id = #{productId,jdbcType=BIGINT}, + member_phone = #{memberPhone,jdbcType=VARCHAR}, + product_name = #{productName,jdbcType=VARCHAR}, + subscribe_time = #{subscribeTime,jdbcType=TIMESTAMP}, + send_time = #{sendTime,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=INTEGER} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionMapper.xml new file mode 100644 index 000000000..3d3c1ee58 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionMapper.xml @@ -0,0 +1,226 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, title, start_date, end_date, status, create_time + + + + + delete from sms_flash_promotion + where id = #{id,jdbcType=BIGINT} + + + delete from sms_flash_promotion + + + + + + + SELECT LAST_INSERT_ID() + + insert into sms_flash_promotion (title, start_date, end_date, + status, create_time) + values (#{title,jdbcType=VARCHAR}, #{startDate,jdbcType=DATE}, #{endDate,jdbcType=DATE}, + #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}) + + + + SELECT LAST_INSERT_ID() + + insert into sms_flash_promotion + + + title, + + + start_date, + + + end_date, + + + status, + + + create_time, + + + + + #{title,jdbcType=VARCHAR}, + + + #{startDate,jdbcType=DATE}, + + + #{endDate,jdbcType=DATE}, + + + #{status,jdbcType=INTEGER}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + + + + update sms_flash_promotion + + + id = #{row.id,jdbcType=BIGINT}, + + + title = #{row.title,jdbcType=VARCHAR}, + + + start_date = #{row.startDate,jdbcType=DATE}, + + + end_date = #{row.endDate,jdbcType=DATE}, + + + status = #{row.status,jdbcType=INTEGER}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + + + + + + update sms_flash_promotion + set id = #{row.id,jdbcType=BIGINT}, + title = #{row.title,jdbcType=VARCHAR}, + start_date = #{row.startDate,jdbcType=DATE}, + end_date = #{row.endDate,jdbcType=DATE}, + status = #{row.status,jdbcType=INTEGER}, + create_time = #{row.createTime,jdbcType=TIMESTAMP} + + + + + + update sms_flash_promotion + + + title = #{title,jdbcType=VARCHAR}, + + + start_date = #{startDate,jdbcType=DATE}, + + + end_date = #{endDate,jdbcType=DATE}, + + + status = #{status,jdbcType=INTEGER}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + where id = #{id,jdbcType=BIGINT} + + + update sms_flash_promotion + set title = #{title,jdbcType=VARCHAR}, + start_date = #{startDate,jdbcType=DATE}, + end_date = #{endDate,jdbcType=DATE}, + status = #{status,jdbcType=INTEGER}, + create_time = #{createTime,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionProductRelationMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionProductRelationMapper.xml new file mode 100644 index 000000000..925de8e82 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionProductRelationMapper.xml @@ -0,0 +1,259 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, flash_promotion_id, flash_promotion_session_id, product_id, flash_promotion_price, + flash_promotion_count, flash_promotion_limit, sort + + + + + delete from sms_flash_promotion_product_relation + where id = #{id,jdbcType=BIGINT} + + + delete from sms_flash_promotion_product_relation + + + + + + + SELECT LAST_INSERT_ID() + + insert into sms_flash_promotion_product_relation (flash_promotion_id, flash_promotion_session_id, + product_id, flash_promotion_price, flash_promotion_count, + flash_promotion_limit, sort) + values (#{flashPromotionId,jdbcType=BIGINT}, #{flashPromotionSessionId,jdbcType=BIGINT}, + #{productId,jdbcType=BIGINT}, #{flashPromotionPrice,jdbcType=DECIMAL}, #{flashPromotionCount,jdbcType=INTEGER}, + #{flashPromotionLimit,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}) + + + + SELECT LAST_INSERT_ID() + + insert into sms_flash_promotion_product_relation + + + flash_promotion_id, + + + flash_promotion_session_id, + + + product_id, + + + flash_promotion_price, + + + flash_promotion_count, + + + flash_promotion_limit, + + + sort, + + + + + #{flashPromotionId,jdbcType=BIGINT}, + + + #{flashPromotionSessionId,jdbcType=BIGINT}, + + + #{productId,jdbcType=BIGINT}, + + + #{flashPromotionPrice,jdbcType=DECIMAL}, + + + #{flashPromotionCount,jdbcType=INTEGER}, + + + #{flashPromotionLimit,jdbcType=INTEGER}, + + + #{sort,jdbcType=INTEGER}, + + + + + + update sms_flash_promotion_product_relation + + + id = #{row.id,jdbcType=BIGINT}, + + + flash_promotion_id = #{row.flashPromotionId,jdbcType=BIGINT}, + + + flash_promotion_session_id = #{row.flashPromotionSessionId,jdbcType=BIGINT}, + + + product_id = #{row.productId,jdbcType=BIGINT}, + + + flash_promotion_price = #{row.flashPromotionPrice,jdbcType=DECIMAL}, + + + flash_promotion_count = #{row.flashPromotionCount,jdbcType=INTEGER}, + + + flash_promotion_limit = #{row.flashPromotionLimit,jdbcType=INTEGER}, + + + sort = #{row.sort,jdbcType=INTEGER}, + + + + + + + + update sms_flash_promotion_product_relation + set id = #{row.id,jdbcType=BIGINT}, + flash_promotion_id = #{row.flashPromotionId,jdbcType=BIGINT}, + flash_promotion_session_id = #{row.flashPromotionSessionId,jdbcType=BIGINT}, + product_id = #{row.productId,jdbcType=BIGINT}, + flash_promotion_price = #{row.flashPromotionPrice,jdbcType=DECIMAL}, + flash_promotion_count = #{row.flashPromotionCount,jdbcType=INTEGER}, + flash_promotion_limit = #{row.flashPromotionLimit,jdbcType=INTEGER}, + sort = #{row.sort,jdbcType=INTEGER} + + + + + + update sms_flash_promotion_product_relation + + + flash_promotion_id = #{flashPromotionId,jdbcType=BIGINT}, + + + flash_promotion_session_id = #{flashPromotionSessionId,jdbcType=BIGINT}, + + + product_id = #{productId,jdbcType=BIGINT}, + + + flash_promotion_price = #{flashPromotionPrice,jdbcType=DECIMAL}, + + + flash_promotion_count = #{flashPromotionCount,jdbcType=INTEGER}, + + + flash_promotion_limit = #{flashPromotionLimit,jdbcType=INTEGER}, + + + sort = #{sort,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update sms_flash_promotion_product_relation + set flash_promotion_id = #{flashPromotionId,jdbcType=BIGINT}, + flash_promotion_session_id = #{flashPromotionSessionId,jdbcType=BIGINT}, + product_id = #{productId,jdbcType=BIGINT}, + flash_promotion_price = #{flashPromotionPrice,jdbcType=DECIMAL}, + flash_promotion_count = #{flashPromotionCount,jdbcType=INTEGER}, + flash_promotion_limit = #{flashPromotionLimit,jdbcType=INTEGER}, + sort = #{sort,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionSessionMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionSessionMapper.xml new file mode 100644 index 000000000..2dd29f46f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionSessionMapper.xml @@ -0,0 +1,226 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, start_time, end_time, status, create_time + + + + + delete from sms_flash_promotion_session + where id = #{id,jdbcType=BIGINT} + + + delete from sms_flash_promotion_session + + + + + + + SELECT LAST_INSERT_ID() + + insert into sms_flash_promotion_session (name, start_time, end_time, + status, create_time) + values (#{name,jdbcType=VARCHAR}, #{startTime,jdbcType=TIME}, #{endTime,jdbcType=TIME}, + #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}) + + + + SELECT LAST_INSERT_ID() + + insert into sms_flash_promotion_session + + + name, + + + start_time, + + + end_time, + + + status, + + + create_time, + + + + + #{name,jdbcType=VARCHAR}, + + + #{startTime,jdbcType=TIME}, + + + #{endTime,jdbcType=TIME}, + + + #{status,jdbcType=INTEGER}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + + + + update sms_flash_promotion_session + + + id = #{row.id,jdbcType=BIGINT}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + start_time = #{row.startTime,jdbcType=TIME}, + + + end_time = #{row.endTime,jdbcType=TIME}, + + + status = #{row.status,jdbcType=INTEGER}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + + + + + + update sms_flash_promotion_session + set id = #{row.id,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + start_time = #{row.startTime,jdbcType=TIME}, + end_time = #{row.endTime,jdbcType=TIME}, + status = #{row.status,jdbcType=INTEGER}, + create_time = #{row.createTime,jdbcType=TIMESTAMP} + + + + + + update sms_flash_promotion_session + + + name = #{name,jdbcType=VARCHAR}, + + + start_time = #{startTime,jdbcType=TIME}, + + + end_time = #{endTime,jdbcType=TIME}, + + + status = #{status,jdbcType=INTEGER}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + where id = #{id,jdbcType=BIGINT} + + + update sms_flash_promotion_session + set name = #{name,jdbcType=VARCHAR}, + start_time = #{startTime,jdbcType=TIME}, + end_time = #{endTime,jdbcType=TIME}, + status = #{status,jdbcType=INTEGER}, + create_time = #{createTime,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeAdvertiseMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeAdvertiseMapper.xml new file mode 100644 index 000000000..2c35d9310 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeAdvertiseMapper.xml @@ -0,0 +1,321 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, type, pic, start_time, end_time, status, click_count, order_count, url, + note, sort + + + + + delete from sms_home_advertise + where id = #{id,jdbcType=BIGINT} + + + delete from sms_home_advertise + + + + + + + SELECT LAST_INSERT_ID() + + insert into sms_home_advertise (name, type, pic, + start_time, end_time, status, + click_count, order_count, url, + note, sort) + values (#{name,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{pic,jdbcType=VARCHAR}, + #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, + #{clickCount,jdbcType=INTEGER}, #{orderCount,jdbcType=INTEGER}, #{url,jdbcType=VARCHAR}, + #{note,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}) + + + + SELECT LAST_INSERT_ID() + + insert into sms_home_advertise + + + name, + + + type, + + + pic, + + + start_time, + + + end_time, + + + status, + + + click_count, + + + order_count, + + + url, + + + note, + + + sort, + + + + + #{name,jdbcType=VARCHAR}, + + + #{type,jdbcType=INTEGER}, + + + #{pic,jdbcType=VARCHAR}, + + + #{startTime,jdbcType=TIMESTAMP}, + + + #{endTime,jdbcType=TIMESTAMP}, + + + #{status,jdbcType=INTEGER}, + + + #{clickCount,jdbcType=INTEGER}, + + + #{orderCount,jdbcType=INTEGER}, + + + #{url,jdbcType=VARCHAR}, + + + #{note,jdbcType=VARCHAR}, + + + #{sort,jdbcType=INTEGER}, + + + + + + update sms_home_advertise + + + id = #{row.id,jdbcType=BIGINT}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + type = #{row.type,jdbcType=INTEGER}, + + + pic = #{row.pic,jdbcType=VARCHAR}, + + + start_time = #{row.startTime,jdbcType=TIMESTAMP}, + + + end_time = #{row.endTime,jdbcType=TIMESTAMP}, + + + status = #{row.status,jdbcType=INTEGER}, + + + click_count = #{row.clickCount,jdbcType=INTEGER}, + + + order_count = #{row.orderCount,jdbcType=INTEGER}, + + + url = #{row.url,jdbcType=VARCHAR}, + + + note = #{row.note,jdbcType=VARCHAR}, + + + sort = #{row.sort,jdbcType=INTEGER}, + + + + + + + + update sms_home_advertise + set id = #{row.id,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + type = #{row.type,jdbcType=INTEGER}, + pic = #{row.pic,jdbcType=VARCHAR}, + start_time = #{row.startTime,jdbcType=TIMESTAMP}, + end_time = #{row.endTime,jdbcType=TIMESTAMP}, + status = #{row.status,jdbcType=INTEGER}, + click_count = #{row.clickCount,jdbcType=INTEGER}, + order_count = #{row.orderCount,jdbcType=INTEGER}, + url = #{row.url,jdbcType=VARCHAR}, + note = #{row.note,jdbcType=VARCHAR}, + sort = #{row.sort,jdbcType=INTEGER} + + + + + + update sms_home_advertise + + + name = #{name,jdbcType=VARCHAR}, + + + type = #{type,jdbcType=INTEGER}, + + + pic = #{pic,jdbcType=VARCHAR}, + + + start_time = #{startTime,jdbcType=TIMESTAMP}, + + + end_time = #{endTime,jdbcType=TIMESTAMP}, + + + status = #{status,jdbcType=INTEGER}, + + + click_count = #{clickCount,jdbcType=INTEGER}, + + + order_count = #{orderCount,jdbcType=INTEGER}, + + + url = #{url,jdbcType=VARCHAR}, + + + note = #{note,jdbcType=VARCHAR}, + + + sort = #{sort,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update sms_home_advertise + set name = #{name,jdbcType=VARCHAR}, + type = #{type,jdbcType=INTEGER}, + pic = #{pic,jdbcType=VARCHAR}, + start_time = #{startTime,jdbcType=TIMESTAMP}, + end_time = #{endTime,jdbcType=TIMESTAMP}, + status = #{status,jdbcType=INTEGER}, + click_count = #{clickCount,jdbcType=INTEGER}, + order_count = #{orderCount,jdbcType=INTEGER}, + url = #{url,jdbcType=VARCHAR}, + note = #{note,jdbcType=VARCHAR}, + sort = #{sort,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeBrandMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeBrandMapper.xml new file mode 100644 index 000000000..92da7d0e4 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeBrandMapper.xml @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, brand_id, brand_name, recommend_status, sort + + + + + delete from sms_home_brand + where id = #{id,jdbcType=BIGINT} + + + delete from sms_home_brand + + + + + + + SELECT LAST_INSERT_ID() + + insert into sms_home_brand (brand_id, brand_name, recommend_status, + sort) + values (#{brandId,jdbcType=BIGINT}, #{brandName,jdbcType=VARCHAR}, #{recommendStatus,jdbcType=INTEGER}, + #{sort,jdbcType=INTEGER}) + + + + SELECT LAST_INSERT_ID() + + insert into sms_home_brand + + + brand_id, + + + brand_name, + + + recommend_status, + + + sort, + + + + + #{brandId,jdbcType=BIGINT}, + + + #{brandName,jdbcType=VARCHAR}, + + + #{recommendStatus,jdbcType=INTEGER}, + + + #{sort,jdbcType=INTEGER}, + + + + + + update sms_home_brand + + + id = #{row.id,jdbcType=BIGINT}, + + + brand_id = #{row.brandId,jdbcType=BIGINT}, + + + brand_name = #{row.brandName,jdbcType=VARCHAR}, + + + recommend_status = #{row.recommendStatus,jdbcType=INTEGER}, + + + sort = #{row.sort,jdbcType=INTEGER}, + + + + + + + + update sms_home_brand + set id = #{row.id,jdbcType=BIGINT}, + brand_id = #{row.brandId,jdbcType=BIGINT}, + brand_name = #{row.brandName,jdbcType=VARCHAR}, + recommend_status = #{row.recommendStatus,jdbcType=INTEGER}, + sort = #{row.sort,jdbcType=INTEGER} + + + + + + update sms_home_brand + + + brand_id = #{brandId,jdbcType=BIGINT}, + + + brand_name = #{brandName,jdbcType=VARCHAR}, + + + recommend_status = #{recommendStatus,jdbcType=INTEGER}, + + + sort = #{sort,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update sms_home_brand + set brand_id = #{brandId,jdbcType=BIGINT}, + brand_name = #{brandName,jdbcType=VARCHAR}, + recommend_status = #{recommendStatus,jdbcType=INTEGER}, + sort = #{sort,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeNewProductMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeNewProductMapper.xml new file mode 100644 index 000000000..3f797f071 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeNewProductMapper.xml @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, product_id, product_name, recommend_status, sort + + + + + delete from sms_home_new_product + where id = #{id,jdbcType=BIGINT} + + + delete from sms_home_new_product + + + + + + + SELECT LAST_INSERT_ID() + + insert into sms_home_new_product (product_id, product_name, recommend_status, + sort) + values (#{productId,jdbcType=BIGINT}, #{productName,jdbcType=VARCHAR}, #{recommendStatus,jdbcType=INTEGER}, + #{sort,jdbcType=INTEGER}) + + + + SELECT LAST_INSERT_ID() + + insert into sms_home_new_product + + + product_id, + + + product_name, + + + recommend_status, + + + sort, + + + + + #{productId,jdbcType=BIGINT}, + + + #{productName,jdbcType=VARCHAR}, + + + #{recommendStatus,jdbcType=INTEGER}, + + + #{sort,jdbcType=INTEGER}, + + + + + + update sms_home_new_product + + + id = #{row.id,jdbcType=BIGINT}, + + + product_id = #{row.productId,jdbcType=BIGINT}, + + + product_name = #{row.productName,jdbcType=VARCHAR}, + + + recommend_status = #{row.recommendStatus,jdbcType=INTEGER}, + + + sort = #{row.sort,jdbcType=INTEGER}, + + + + + + + + update sms_home_new_product + set id = #{row.id,jdbcType=BIGINT}, + product_id = #{row.productId,jdbcType=BIGINT}, + product_name = #{row.productName,jdbcType=VARCHAR}, + recommend_status = #{row.recommendStatus,jdbcType=INTEGER}, + sort = #{row.sort,jdbcType=INTEGER} + + + + + + update sms_home_new_product + + + product_id = #{productId,jdbcType=BIGINT}, + + + product_name = #{productName,jdbcType=VARCHAR}, + + + recommend_status = #{recommendStatus,jdbcType=INTEGER}, + + + sort = #{sort,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update sms_home_new_product + set product_id = #{productId,jdbcType=BIGINT}, + product_name = #{productName,jdbcType=VARCHAR}, + recommend_status = #{recommendStatus,jdbcType=INTEGER}, + sort = #{sort,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeRecommendProductMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeRecommendProductMapper.xml new file mode 100644 index 000000000..485e98199 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeRecommendProductMapper.xml @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, product_id, product_name, recommend_status, sort + + + + + delete from sms_home_recommend_product + where id = #{id,jdbcType=BIGINT} + + + delete from sms_home_recommend_product + + + + + + + SELECT LAST_INSERT_ID() + + insert into sms_home_recommend_product (product_id, product_name, recommend_status, + sort) + values (#{productId,jdbcType=BIGINT}, #{productName,jdbcType=VARCHAR}, #{recommendStatus,jdbcType=INTEGER}, + #{sort,jdbcType=INTEGER}) + + + + SELECT LAST_INSERT_ID() + + insert into sms_home_recommend_product + + + product_id, + + + product_name, + + + recommend_status, + + + sort, + + + + + #{productId,jdbcType=BIGINT}, + + + #{productName,jdbcType=VARCHAR}, + + + #{recommendStatus,jdbcType=INTEGER}, + + + #{sort,jdbcType=INTEGER}, + + + + + + update sms_home_recommend_product + + + id = #{row.id,jdbcType=BIGINT}, + + + product_id = #{row.productId,jdbcType=BIGINT}, + + + product_name = #{row.productName,jdbcType=VARCHAR}, + + + recommend_status = #{row.recommendStatus,jdbcType=INTEGER}, + + + sort = #{row.sort,jdbcType=INTEGER}, + + + + + + + + update sms_home_recommend_product + set id = #{row.id,jdbcType=BIGINT}, + product_id = #{row.productId,jdbcType=BIGINT}, + product_name = #{row.productName,jdbcType=VARCHAR}, + recommend_status = #{row.recommendStatus,jdbcType=INTEGER}, + sort = #{row.sort,jdbcType=INTEGER} + + + + + + update sms_home_recommend_product + + + product_id = #{productId,jdbcType=BIGINT}, + + + product_name = #{productName,jdbcType=VARCHAR}, + + + recommend_status = #{recommendStatus,jdbcType=INTEGER}, + + + sort = #{sort,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update sms_home_recommend_product + set product_id = #{productId,jdbcType=BIGINT}, + product_name = #{productName,jdbcType=VARCHAR}, + recommend_status = #{recommendStatus,jdbcType=INTEGER}, + sort = #{sort,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeRecommendSubjectMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeRecommendSubjectMapper.xml new file mode 100644 index 000000000..44b1374ac --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeRecommendSubjectMapper.xml @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, subject_id, subject_name, recommend_status, sort + + + + + delete from sms_home_recommend_subject + where id = #{id,jdbcType=BIGINT} + + + delete from sms_home_recommend_subject + + + + + + + SELECT LAST_INSERT_ID() + + insert into sms_home_recommend_subject (subject_id, subject_name, recommend_status, + sort) + values (#{subjectId,jdbcType=BIGINT}, #{subjectName,jdbcType=VARCHAR}, #{recommendStatus,jdbcType=INTEGER}, + #{sort,jdbcType=INTEGER}) + + + + SELECT LAST_INSERT_ID() + + insert into sms_home_recommend_subject + + + subject_id, + + + subject_name, + + + recommend_status, + + + sort, + + + + + #{subjectId,jdbcType=BIGINT}, + + + #{subjectName,jdbcType=VARCHAR}, + + + #{recommendStatus,jdbcType=INTEGER}, + + + #{sort,jdbcType=INTEGER}, + + + + + + update sms_home_recommend_subject + + + id = #{row.id,jdbcType=BIGINT}, + + + subject_id = #{row.subjectId,jdbcType=BIGINT}, + + + subject_name = #{row.subjectName,jdbcType=VARCHAR}, + + + recommend_status = #{row.recommendStatus,jdbcType=INTEGER}, + + + sort = #{row.sort,jdbcType=INTEGER}, + + + + + + + + update sms_home_recommend_subject + set id = #{row.id,jdbcType=BIGINT}, + subject_id = #{row.subjectId,jdbcType=BIGINT}, + subject_name = #{row.subjectName,jdbcType=VARCHAR}, + recommend_status = #{row.recommendStatus,jdbcType=INTEGER}, + sort = #{row.sort,jdbcType=INTEGER} + + + + + + update sms_home_recommend_subject + + + subject_id = #{subjectId,jdbcType=BIGINT}, + + + subject_name = #{subjectName,jdbcType=VARCHAR}, + + + recommend_status = #{recommendStatus,jdbcType=INTEGER}, + + + sort = #{sort,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update sms_home_recommend_subject + set subject_id = #{subjectId,jdbcType=BIGINT}, + subject_name = #{subjectName,jdbcType=VARCHAR}, + recommend_status = #{recommendStatus,jdbcType=INTEGER}, + sort = #{sort,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsAdminLoginLogMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsAdminLoginLogMapper.xml new file mode 100644 index 000000000..4127b1717 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsAdminLoginLogMapper.xml @@ -0,0 +1,226 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, admin_id, create_time, ip, address, user_agent + + + + + delete from ums_admin_login_log + where id = #{id,jdbcType=BIGINT} + + + delete from ums_admin_login_log + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_admin_login_log (admin_id, create_time, ip, + address, user_agent) + values (#{adminId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{ip,jdbcType=VARCHAR}, + #{address,jdbcType=VARCHAR}, #{userAgent,jdbcType=VARCHAR}) + + + + SELECT LAST_INSERT_ID() + + insert into ums_admin_login_log + + + admin_id, + + + create_time, + + + ip, + + + address, + + + user_agent, + + + + + #{adminId,jdbcType=BIGINT}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{ip,jdbcType=VARCHAR}, + + + #{address,jdbcType=VARCHAR}, + + + #{userAgent,jdbcType=VARCHAR}, + + + + + + update ums_admin_login_log + + + id = #{row.id,jdbcType=BIGINT}, + + + admin_id = #{row.adminId,jdbcType=BIGINT}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + ip = #{row.ip,jdbcType=VARCHAR}, + + + address = #{row.address,jdbcType=VARCHAR}, + + + user_agent = #{row.userAgent,jdbcType=VARCHAR}, + + + + + + + + update ums_admin_login_log + set id = #{row.id,jdbcType=BIGINT}, + admin_id = #{row.adminId,jdbcType=BIGINT}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + ip = #{row.ip,jdbcType=VARCHAR}, + address = #{row.address,jdbcType=VARCHAR}, + user_agent = #{row.userAgent,jdbcType=VARCHAR} + + + + + + update ums_admin_login_log + + + admin_id = #{adminId,jdbcType=BIGINT}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + ip = #{ip,jdbcType=VARCHAR}, + + + address = #{address,jdbcType=VARCHAR}, + + + user_agent = #{userAgent,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_admin_login_log + set admin_id = #{adminId,jdbcType=BIGINT}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + ip = #{ip,jdbcType=VARCHAR}, + address = #{address,jdbcType=VARCHAR}, + user_agent = #{userAgent,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsAdminMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsAdminMapper.xml new file mode 100644 index 000000000..e4b5051d3 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsAdminMapper.xml @@ -0,0 +1,290 @@ + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, username, password, icon, email, nick_name, note, create_time, login_time, status + + + + + delete from ums_admin + where id = #{id,jdbcType=BIGINT} + + + delete from ums_admin + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_admin (username, password, icon, + email, nick_name, note, + create_time, login_time, status + ) + values (#{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, + #{email,jdbcType=VARCHAR}, #{nickName,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, + #{createTime,jdbcType=TIMESTAMP}, #{loginTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER} + ) + + + + SELECT LAST_INSERT_ID() + + insert into ums_admin + + + username, + + + password, + + + icon, + + + email, + + + nick_name, + + + note, + + + create_time, + + + login_time, + + + status, + + + + + #{username,jdbcType=VARCHAR}, + + + #{password,jdbcType=VARCHAR}, + + + #{icon,jdbcType=VARCHAR}, + + + #{email,jdbcType=VARCHAR}, + + + #{nickName,jdbcType=VARCHAR}, + + + #{note,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{loginTime,jdbcType=TIMESTAMP}, + + + #{status,jdbcType=INTEGER}, + + + + + + update ums_admin + + + id = #{row.id,jdbcType=BIGINT}, + + + username = #{row.username,jdbcType=VARCHAR}, + + + password = #{row.password,jdbcType=VARCHAR}, + + + icon = #{row.icon,jdbcType=VARCHAR}, + + + email = #{row.email,jdbcType=VARCHAR}, + + + nick_name = #{row.nickName,jdbcType=VARCHAR}, + + + note = #{row.note,jdbcType=VARCHAR}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + login_time = #{row.loginTime,jdbcType=TIMESTAMP}, + + + status = #{row.status,jdbcType=INTEGER}, + + + + + + + + update ums_admin + set id = #{row.id,jdbcType=BIGINT}, + username = #{row.username,jdbcType=VARCHAR}, + password = #{row.password,jdbcType=VARCHAR}, + icon = #{row.icon,jdbcType=VARCHAR}, + email = #{row.email,jdbcType=VARCHAR}, + nick_name = #{row.nickName,jdbcType=VARCHAR}, + note = #{row.note,jdbcType=VARCHAR}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + login_time = #{row.loginTime,jdbcType=TIMESTAMP}, + status = #{row.status,jdbcType=INTEGER} + + + + + + update ums_admin + + + username = #{username,jdbcType=VARCHAR}, + + + password = #{password,jdbcType=VARCHAR}, + + + icon = #{icon,jdbcType=VARCHAR}, + + + email = #{email,jdbcType=VARCHAR}, + + + nick_name = #{nickName,jdbcType=VARCHAR}, + + + note = #{note,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + login_time = #{loginTime,jdbcType=TIMESTAMP}, + + + status = #{status,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_admin + set username = #{username,jdbcType=VARCHAR}, + password = #{password,jdbcType=VARCHAR}, + icon = #{icon,jdbcType=VARCHAR}, + email = #{email,jdbcType=VARCHAR}, + nick_name = #{nickName,jdbcType=VARCHAR}, + note = #{note,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + login_time = #{loginTime,jdbcType=TIMESTAMP}, + status = #{status,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsAdminPermissionRelationMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsAdminPermissionRelationMapper.xml new file mode 100644 index 000000000..4903bc606 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsAdminPermissionRelationMapper.xml @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, admin_id, permission_id, type + + + + + delete from ums_admin_permission_relation + where id = #{id,jdbcType=BIGINT} + + + delete from ums_admin_permission_relation + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_admin_permission_relation (admin_id, permission_id, type + ) + values (#{adminId,jdbcType=BIGINT}, #{permissionId,jdbcType=BIGINT}, #{type,jdbcType=INTEGER} + ) + + + + SELECT LAST_INSERT_ID() + + insert into ums_admin_permission_relation + + + admin_id, + + + permission_id, + + + type, + + + + + #{adminId,jdbcType=BIGINT}, + + + #{permissionId,jdbcType=BIGINT}, + + + #{type,jdbcType=INTEGER}, + + + + + + update ums_admin_permission_relation + + + id = #{row.id,jdbcType=BIGINT}, + + + admin_id = #{row.adminId,jdbcType=BIGINT}, + + + permission_id = #{row.permissionId,jdbcType=BIGINT}, + + + type = #{row.type,jdbcType=INTEGER}, + + + + + + + + update ums_admin_permission_relation + set id = #{row.id,jdbcType=BIGINT}, + admin_id = #{row.adminId,jdbcType=BIGINT}, + permission_id = #{row.permissionId,jdbcType=BIGINT}, + type = #{row.type,jdbcType=INTEGER} + + + + + + update ums_admin_permission_relation + + + admin_id = #{adminId,jdbcType=BIGINT}, + + + permission_id = #{permissionId,jdbcType=BIGINT}, + + + type = #{type,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_admin_permission_relation + set admin_id = #{adminId,jdbcType=BIGINT}, + permission_id = #{permissionId,jdbcType=BIGINT}, + type = #{type,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsAdminRoleRelationMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsAdminRoleRelationMapper.xml new file mode 100644 index 000000000..5042d1475 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsAdminRoleRelationMapper.xml @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, admin_id, role_id + + + + + delete from ums_admin_role_relation + where id = #{id,jdbcType=BIGINT} + + + delete from ums_admin_role_relation + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_admin_role_relation (admin_id, role_id) + values (#{adminId,jdbcType=BIGINT}, #{roleId,jdbcType=BIGINT}) + + + + SELECT LAST_INSERT_ID() + + insert into ums_admin_role_relation + + + admin_id, + + + role_id, + + + + + #{adminId,jdbcType=BIGINT}, + + + #{roleId,jdbcType=BIGINT}, + + + + + + update ums_admin_role_relation + + + id = #{row.id,jdbcType=BIGINT}, + + + admin_id = #{row.adminId,jdbcType=BIGINT}, + + + role_id = #{row.roleId,jdbcType=BIGINT}, + + + + + + + + update ums_admin_role_relation + set id = #{row.id,jdbcType=BIGINT}, + admin_id = #{row.adminId,jdbcType=BIGINT}, + role_id = #{row.roleId,jdbcType=BIGINT} + + + + + + update ums_admin_role_relation + + + admin_id = #{adminId,jdbcType=BIGINT}, + + + role_id = #{roleId,jdbcType=BIGINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_admin_role_relation + set admin_id = #{adminId,jdbcType=BIGINT}, + role_id = #{roleId,jdbcType=BIGINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsGrowthChangeHistoryMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsGrowthChangeHistoryMapper.xml new file mode 100644 index 000000000..91966d86a --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsGrowthChangeHistoryMapper.xml @@ -0,0 +1,259 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, member_id, create_time, change_type, change_count, operate_man, operate_note, + source_type + + + + + delete from ums_growth_change_history + where id = #{id,jdbcType=BIGINT} + + + delete from ums_growth_change_history + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_growth_change_history (member_id, create_time, change_type, + change_count, operate_man, operate_note, + source_type) + values (#{memberId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{changeType,jdbcType=INTEGER}, + #{changeCount,jdbcType=INTEGER}, #{operateMan,jdbcType=VARCHAR}, #{operateNote,jdbcType=VARCHAR}, + #{sourceType,jdbcType=INTEGER}) + + + + SELECT LAST_INSERT_ID() + + insert into ums_growth_change_history + + + member_id, + + + create_time, + + + change_type, + + + change_count, + + + operate_man, + + + operate_note, + + + source_type, + + + + + #{memberId,jdbcType=BIGINT}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{changeType,jdbcType=INTEGER}, + + + #{changeCount,jdbcType=INTEGER}, + + + #{operateMan,jdbcType=VARCHAR}, + + + #{operateNote,jdbcType=VARCHAR}, + + + #{sourceType,jdbcType=INTEGER}, + + + + + + update ums_growth_change_history + + + id = #{row.id,jdbcType=BIGINT}, + + + member_id = #{row.memberId,jdbcType=BIGINT}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + change_type = #{row.changeType,jdbcType=INTEGER}, + + + change_count = #{row.changeCount,jdbcType=INTEGER}, + + + operate_man = #{row.operateMan,jdbcType=VARCHAR}, + + + operate_note = #{row.operateNote,jdbcType=VARCHAR}, + + + source_type = #{row.sourceType,jdbcType=INTEGER}, + + + + + + + + update ums_growth_change_history + set id = #{row.id,jdbcType=BIGINT}, + member_id = #{row.memberId,jdbcType=BIGINT}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + change_type = #{row.changeType,jdbcType=INTEGER}, + change_count = #{row.changeCount,jdbcType=INTEGER}, + operate_man = #{row.operateMan,jdbcType=VARCHAR}, + operate_note = #{row.operateNote,jdbcType=VARCHAR}, + source_type = #{row.sourceType,jdbcType=INTEGER} + + + + + + update ums_growth_change_history + + + member_id = #{memberId,jdbcType=BIGINT}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + change_type = #{changeType,jdbcType=INTEGER}, + + + change_count = #{changeCount,jdbcType=INTEGER}, + + + operate_man = #{operateMan,jdbcType=VARCHAR}, + + + operate_note = #{operateNote,jdbcType=VARCHAR}, + + + source_type = #{sourceType,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_growth_change_history + set member_id = #{memberId,jdbcType=BIGINT}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + change_type = #{changeType,jdbcType=INTEGER}, + change_count = #{changeCount,jdbcType=INTEGER}, + operate_man = #{operateMan,jdbcType=VARCHAR}, + operate_note = #{operateNote,jdbcType=VARCHAR}, + source_type = #{sourceType,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsIntegrationChangeHistoryMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsIntegrationChangeHistoryMapper.xml new file mode 100644 index 000000000..8ef9498e1 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsIntegrationChangeHistoryMapper.xml @@ -0,0 +1,259 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, member_id, create_time, change_type, change_count, operate_man, operate_note, + source_type + + + + + delete from ums_integration_change_history + where id = #{id,jdbcType=BIGINT} + + + delete from ums_integration_change_history + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_integration_change_history (member_id, create_time, change_type, + change_count, operate_man, operate_note, + source_type) + values (#{memberId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{changeType,jdbcType=INTEGER}, + #{changeCount,jdbcType=INTEGER}, #{operateMan,jdbcType=VARCHAR}, #{operateNote,jdbcType=VARCHAR}, + #{sourceType,jdbcType=INTEGER}) + + + + SELECT LAST_INSERT_ID() + + insert into ums_integration_change_history + + + member_id, + + + create_time, + + + change_type, + + + change_count, + + + operate_man, + + + operate_note, + + + source_type, + + + + + #{memberId,jdbcType=BIGINT}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{changeType,jdbcType=INTEGER}, + + + #{changeCount,jdbcType=INTEGER}, + + + #{operateMan,jdbcType=VARCHAR}, + + + #{operateNote,jdbcType=VARCHAR}, + + + #{sourceType,jdbcType=INTEGER}, + + + + + + update ums_integration_change_history + + + id = #{row.id,jdbcType=BIGINT}, + + + member_id = #{row.memberId,jdbcType=BIGINT}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + change_type = #{row.changeType,jdbcType=INTEGER}, + + + change_count = #{row.changeCount,jdbcType=INTEGER}, + + + operate_man = #{row.operateMan,jdbcType=VARCHAR}, + + + operate_note = #{row.operateNote,jdbcType=VARCHAR}, + + + source_type = #{row.sourceType,jdbcType=INTEGER}, + + + + + + + + update ums_integration_change_history + set id = #{row.id,jdbcType=BIGINT}, + member_id = #{row.memberId,jdbcType=BIGINT}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + change_type = #{row.changeType,jdbcType=INTEGER}, + change_count = #{row.changeCount,jdbcType=INTEGER}, + operate_man = #{row.operateMan,jdbcType=VARCHAR}, + operate_note = #{row.operateNote,jdbcType=VARCHAR}, + source_type = #{row.sourceType,jdbcType=INTEGER} + + + + + + update ums_integration_change_history + + + member_id = #{memberId,jdbcType=BIGINT}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + change_type = #{changeType,jdbcType=INTEGER}, + + + change_count = #{changeCount,jdbcType=INTEGER}, + + + operate_man = #{operateMan,jdbcType=VARCHAR}, + + + operate_note = #{operateNote,jdbcType=VARCHAR}, + + + source_type = #{sourceType,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_integration_change_history + set member_id = #{memberId,jdbcType=BIGINT}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + change_type = #{changeType,jdbcType=INTEGER}, + change_count = #{changeCount,jdbcType=INTEGER}, + operate_man = #{operateMan,jdbcType=VARCHAR}, + operate_note = #{operateNote,jdbcType=VARCHAR}, + source_type = #{sourceType,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsIntegrationConsumeSettingMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsIntegrationConsumeSettingMapper.xml new file mode 100644 index 000000000..751b19f6f --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsIntegrationConsumeSettingMapper.xml @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, deduction_per_amount, max_percent_per_order, use_unit, coupon_status + + + + + delete from ums_integration_consume_setting + where id = #{id,jdbcType=BIGINT} + + + delete from ums_integration_consume_setting + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_integration_consume_setting (deduction_per_amount, max_percent_per_order, + use_unit, coupon_status) + values (#{deductionPerAmount,jdbcType=INTEGER}, #{maxPercentPerOrder,jdbcType=INTEGER}, + #{useUnit,jdbcType=INTEGER}, #{couponStatus,jdbcType=INTEGER}) + + + + SELECT LAST_INSERT_ID() + + insert into ums_integration_consume_setting + + + deduction_per_amount, + + + max_percent_per_order, + + + use_unit, + + + coupon_status, + + + + + #{deductionPerAmount,jdbcType=INTEGER}, + + + #{maxPercentPerOrder,jdbcType=INTEGER}, + + + #{useUnit,jdbcType=INTEGER}, + + + #{couponStatus,jdbcType=INTEGER}, + + + + + + update ums_integration_consume_setting + + + id = #{row.id,jdbcType=BIGINT}, + + + deduction_per_amount = #{row.deductionPerAmount,jdbcType=INTEGER}, + + + max_percent_per_order = #{row.maxPercentPerOrder,jdbcType=INTEGER}, + + + use_unit = #{row.useUnit,jdbcType=INTEGER}, + + + coupon_status = #{row.couponStatus,jdbcType=INTEGER}, + + + + + + + + update ums_integration_consume_setting + set id = #{row.id,jdbcType=BIGINT}, + deduction_per_amount = #{row.deductionPerAmount,jdbcType=INTEGER}, + max_percent_per_order = #{row.maxPercentPerOrder,jdbcType=INTEGER}, + use_unit = #{row.useUnit,jdbcType=INTEGER}, + coupon_status = #{row.couponStatus,jdbcType=INTEGER} + + + + + + update ums_integration_consume_setting + + + deduction_per_amount = #{deductionPerAmount,jdbcType=INTEGER}, + + + max_percent_per_order = #{maxPercentPerOrder,jdbcType=INTEGER}, + + + use_unit = #{useUnit,jdbcType=INTEGER}, + + + coupon_status = #{couponStatus,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_integration_consume_setting + set deduction_per_amount = #{deductionPerAmount,jdbcType=INTEGER}, + max_percent_per_order = #{maxPercentPerOrder,jdbcType=INTEGER}, + use_unit = #{useUnit,jdbcType=INTEGER}, + coupon_status = #{couponStatus,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberLevelMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberLevelMapper.xml new file mode 100644 index 000000000..0edf8a5fc --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberLevelMapper.xml @@ -0,0 +1,339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, growth_point, default_status, free_freight_point, comment_growth_point, + priviledge_free_freight, priviledge_sign_in, priviledge_comment, priviledge_promotion, + priviledge_member_price, priviledge_birthday, note + + + + + delete from ums_member_level + where id = #{id,jdbcType=BIGINT} + + + delete from ums_member_level + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_member_level (name, growth_point, default_status, + free_freight_point, comment_growth_point, priviledge_free_freight, + priviledge_sign_in, priviledge_comment, priviledge_promotion, + priviledge_member_price, priviledge_birthday, + note) + values (#{name,jdbcType=VARCHAR}, #{growthPoint,jdbcType=INTEGER}, #{defaultStatus,jdbcType=INTEGER}, + #{freeFreightPoint,jdbcType=DECIMAL}, #{commentGrowthPoint,jdbcType=INTEGER}, #{priviledgeFreeFreight,jdbcType=INTEGER}, + #{priviledgeSignIn,jdbcType=INTEGER}, #{priviledgeComment,jdbcType=INTEGER}, #{priviledgePromotion,jdbcType=INTEGER}, + #{priviledgeMemberPrice,jdbcType=INTEGER}, #{priviledgeBirthday,jdbcType=INTEGER}, + #{note,jdbcType=VARCHAR}) + + + + SELECT LAST_INSERT_ID() + + insert into ums_member_level + + + name, + + + growth_point, + + + default_status, + + + free_freight_point, + + + comment_growth_point, + + + priviledge_free_freight, + + + priviledge_sign_in, + + + priviledge_comment, + + + priviledge_promotion, + + + priviledge_member_price, + + + priviledge_birthday, + + + note, + + + + + #{name,jdbcType=VARCHAR}, + + + #{growthPoint,jdbcType=INTEGER}, + + + #{defaultStatus,jdbcType=INTEGER}, + + + #{freeFreightPoint,jdbcType=DECIMAL}, + + + #{commentGrowthPoint,jdbcType=INTEGER}, + + + #{priviledgeFreeFreight,jdbcType=INTEGER}, + + + #{priviledgeSignIn,jdbcType=INTEGER}, + + + #{priviledgeComment,jdbcType=INTEGER}, + + + #{priviledgePromotion,jdbcType=INTEGER}, + + + #{priviledgeMemberPrice,jdbcType=INTEGER}, + + + #{priviledgeBirthday,jdbcType=INTEGER}, + + + #{note,jdbcType=VARCHAR}, + + + + + + update ums_member_level + + + id = #{row.id,jdbcType=BIGINT}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + growth_point = #{row.growthPoint,jdbcType=INTEGER}, + + + default_status = #{row.defaultStatus,jdbcType=INTEGER}, + + + free_freight_point = #{row.freeFreightPoint,jdbcType=DECIMAL}, + + + comment_growth_point = #{row.commentGrowthPoint,jdbcType=INTEGER}, + + + priviledge_free_freight = #{row.priviledgeFreeFreight,jdbcType=INTEGER}, + + + priviledge_sign_in = #{row.priviledgeSignIn,jdbcType=INTEGER}, + + + priviledge_comment = #{row.priviledgeComment,jdbcType=INTEGER}, + + + priviledge_promotion = #{row.priviledgePromotion,jdbcType=INTEGER}, + + + priviledge_member_price = #{row.priviledgeMemberPrice,jdbcType=INTEGER}, + + + priviledge_birthday = #{row.priviledgeBirthday,jdbcType=INTEGER}, + + + note = #{row.note,jdbcType=VARCHAR}, + + + + + + + + update ums_member_level + set id = #{row.id,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + growth_point = #{row.growthPoint,jdbcType=INTEGER}, + default_status = #{row.defaultStatus,jdbcType=INTEGER}, + free_freight_point = #{row.freeFreightPoint,jdbcType=DECIMAL}, + comment_growth_point = #{row.commentGrowthPoint,jdbcType=INTEGER}, + priviledge_free_freight = #{row.priviledgeFreeFreight,jdbcType=INTEGER}, + priviledge_sign_in = #{row.priviledgeSignIn,jdbcType=INTEGER}, + priviledge_comment = #{row.priviledgeComment,jdbcType=INTEGER}, + priviledge_promotion = #{row.priviledgePromotion,jdbcType=INTEGER}, + priviledge_member_price = #{row.priviledgeMemberPrice,jdbcType=INTEGER}, + priviledge_birthday = #{row.priviledgeBirthday,jdbcType=INTEGER}, + note = #{row.note,jdbcType=VARCHAR} + + + + + + update ums_member_level + + + name = #{name,jdbcType=VARCHAR}, + + + growth_point = #{growthPoint,jdbcType=INTEGER}, + + + default_status = #{defaultStatus,jdbcType=INTEGER}, + + + free_freight_point = #{freeFreightPoint,jdbcType=DECIMAL}, + + + comment_growth_point = #{commentGrowthPoint,jdbcType=INTEGER}, + + + priviledge_free_freight = #{priviledgeFreeFreight,jdbcType=INTEGER}, + + + priviledge_sign_in = #{priviledgeSignIn,jdbcType=INTEGER}, + + + priviledge_comment = #{priviledgeComment,jdbcType=INTEGER}, + + + priviledge_promotion = #{priviledgePromotion,jdbcType=INTEGER}, + + + priviledge_member_price = #{priviledgeMemberPrice,jdbcType=INTEGER}, + + + priviledge_birthday = #{priviledgeBirthday,jdbcType=INTEGER}, + + + note = #{note,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_member_level + set name = #{name,jdbcType=VARCHAR}, + growth_point = #{growthPoint,jdbcType=INTEGER}, + default_status = #{defaultStatus,jdbcType=INTEGER}, + free_freight_point = #{freeFreightPoint,jdbcType=DECIMAL}, + comment_growth_point = #{commentGrowthPoint,jdbcType=INTEGER}, + priviledge_free_freight = #{priviledgeFreeFreight,jdbcType=INTEGER}, + priviledge_sign_in = #{priviledgeSignIn,jdbcType=INTEGER}, + priviledge_comment = #{priviledgeComment,jdbcType=INTEGER}, + priviledge_promotion = #{priviledgePromotion,jdbcType=INTEGER}, + priviledge_member_price = #{priviledgeMemberPrice,jdbcType=INTEGER}, + priviledge_birthday = #{priviledgeBirthday,jdbcType=INTEGER}, + note = #{note,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberLoginLogMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberLoginLogMapper.xml new file mode 100644 index 000000000..730b6ec1e --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberLoginLogMapper.xml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, member_id, create_time, ip, city, login_type, province + + + + + delete from ums_member_login_log + where id = #{id,jdbcType=BIGINT} + + + delete from ums_member_login_log + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_member_login_log (member_id, create_time, ip, + city, login_type, province + ) + values (#{memberId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{ip,jdbcType=VARCHAR}, + #{city,jdbcType=VARCHAR}, #{loginType,jdbcType=INTEGER}, #{province,jdbcType=VARCHAR} + ) + + + + SELECT LAST_INSERT_ID() + + insert into ums_member_login_log + + + member_id, + + + create_time, + + + ip, + + + city, + + + login_type, + + + province, + + + + + #{memberId,jdbcType=BIGINT}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{ip,jdbcType=VARCHAR}, + + + #{city,jdbcType=VARCHAR}, + + + #{loginType,jdbcType=INTEGER}, + + + #{province,jdbcType=VARCHAR}, + + + + + + update ums_member_login_log + + + id = #{row.id,jdbcType=BIGINT}, + + + member_id = #{row.memberId,jdbcType=BIGINT}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + ip = #{row.ip,jdbcType=VARCHAR}, + + + city = #{row.city,jdbcType=VARCHAR}, + + + login_type = #{row.loginType,jdbcType=INTEGER}, + + + province = #{row.province,jdbcType=VARCHAR}, + + + + + + + + update ums_member_login_log + set id = #{row.id,jdbcType=BIGINT}, + member_id = #{row.memberId,jdbcType=BIGINT}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + ip = #{row.ip,jdbcType=VARCHAR}, + city = #{row.city,jdbcType=VARCHAR}, + login_type = #{row.loginType,jdbcType=INTEGER}, + province = #{row.province,jdbcType=VARCHAR} + + + + + + update ums_member_login_log + + + member_id = #{memberId,jdbcType=BIGINT}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + ip = #{ip,jdbcType=VARCHAR}, + + + city = #{city,jdbcType=VARCHAR}, + + + login_type = #{loginType,jdbcType=INTEGER}, + + + province = #{province,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_member_login_log + set member_id = #{memberId,jdbcType=BIGINT}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + ip = #{ip,jdbcType=VARCHAR}, + city = #{city,jdbcType=VARCHAR}, + login_type = #{loginType,jdbcType=INTEGER}, + province = #{province,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberMapper.xml new file mode 100644 index 000000000..69483c1d0 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberMapper.xml @@ -0,0 +1,431 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, member_level_id, username, password, nickname, phone, status, create_time, icon, + gender, birthday, city, job, personalized_signature, source_type, integration, growth, + luckey_count, history_integration + + + + + delete from ums_member + where id = #{id,jdbcType=BIGINT} + + + delete from ums_member + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_member (member_level_id, username, password, + nickname, phone, status, + create_time, icon, gender, + birthday, city, job, personalized_signature, + source_type, integration, growth, + luckey_count, history_integration) + values (#{memberLevelId,jdbcType=BIGINT}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, + #{nickname,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, + #{createTime,jdbcType=TIMESTAMP}, #{icon,jdbcType=VARCHAR}, #{gender,jdbcType=INTEGER}, + #{birthday,jdbcType=DATE}, #{city,jdbcType=VARCHAR}, #{job,jdbcType=VARCHAR}, #{personalizedSignature,jdbcType=VARCHAR}, + #{sourceType,jdbcType=INTEGER}, #{integration,jdbcType=INTEGER}, #{growth,jdbcType=INTEGER}, + #{luckeyCount,jdbcType=INTEGER}, #{historyIntegration,jdbcType=INTEGER}) + + + + SELECT LAST_INSERT_ID() + + insert into ums_member + + + member_level_id, + + + username, + + + password, + + + nickname, + + + phone, + + + status, + + + create_time, + + + icon, + + + gender, + + + birthday, + + + city, + + + job, + + + personalized_signature, + + + source_type, + + + integration, + + + growth, + + + luckey_count, + + + history_integration, + + + + + #{memberLevelId,jdbcType=BIGINT}, + + + #{username,jdbcType=VARCHAR}, + + + #{password,jdbcType=VARCHAR}, + + + #{nickname,jdbcType=VARCHAR}, + + + #{phone,jdbcType=VARCHAR}, + + + #{status,jdbcType=INTEGER}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{icon,jdbcType=VARCHAR}, + + + #{gender,jdbcType=INTEGER}, + + + #{birthday,jdbcType=DATE}, + + + #{city,jdbcType=VARCHAR}, + + + #{job,jdbcType=VARCHAR}, + + + #{personalizedSignature,jdbcType=VARCHAR}, + + + #{sourceType,jdbcType=INTEGER}, + + + #{integration,jdbcType=INTEGER}, + + + #{growth,jdbcType=INTEGER}, + + + #{luckeyCount,jdbcType=INTEGER}, + + + #{historyIntegration,jdbcType=INTEGER}, + + + + + + update ums_member + + + id = #{row.id,jdbcType=BIGINT}, + + + member_level_id = #{row.memberLevelId,jdbcType=BIGINT}, + + + username = #{row.username,jdbcType=VARCHAR}, + + + password = #{row.password,jdbcType=VARCHAR}, + + + nickname = #{row.nickname,jdbcType=VARCHAR}, + + + phone = #{row.phone,jdbcType=VARCHAR}, + + + status = #{row.status,jdbcType=INTEGER}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + icon = #{row.icon,jdbcType=VARCHAR}, + + + gender = #{row.gender,jdbcType=INTEGER}, + + + birthday = #{row.birthday,jdbcType=DATE}, + + + city = #{row.city,jdbcType=VARCHAR}, + + + job = #{row.job,jdbcType=VARCHAR}, + + + personalized_signature = #{row.personalizedSignature,jdbcType=VARCHAR}, + + + source_type = #{row.sourceType,jdbcType=INTEGER}, + + + integration = #{row.integration,jdbcType=INTEGER}, + + + growth = #{row.growth,jdbcType=INTEGER}, + + + luckey_count = #{row.luckeyCount,jdbcType=INTEGER}, + + + history_integration = #{row.historyIntegration,jdbcType=INTEGER}, + + + + + + + + update ums_member + set id = #{row.id,jdbcType=BIGINT}, + member_level_id = #{row.memberLevelId,jdbcType=BIGINT}, + username = #{row.username,jdbcType=VARCHAR}, + password = #{row.password,jdbcType=VARCHAR}, + nickname = #{row.nickname,jdbcType=VARCHAR}, + phone = #{row.phone,jdbcType=VARCHAR}, + status = #{row.status,jdbcType=INTEGER}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + icon = #{row.icon,jdbcType=VARCHAR}, + gender = #{row.gender,jdbcType=INTEGER}, + birthday = #{row.birthday,jdbcType=DATE}, + city = #{row.city,jdbcType=VARCHAR}, + job = #{row.job,jdbcType=VARCHAR}, + personalized_signature = #{row.personalizedSignature,jdbcType=VARCHAR}, + source_type = #{row.sourceType,jdbcType=INTEGER}, + integration = #{row.integration,jdbcType=INTEGER}, + growth = #{row.growth,jdbcType=INTEGER}, + luckey_count = #{row.luckeyCount,jdbcType=INTEGER}, + history_integration = #{row.historyIntegration,jdbcType=INTEGER} + + + + + + update ums_member + + + member_level_id = #{memberLevelId,jdbcType=BIGINT}, + + + username = #{username,jdbcType=VARCHAR}, + + + password = #{password,jdbcType=VARCHAR}, + + + nickname = #{nickname,jdbcType=VARCHAR}, + + + phone = #{phone,jdbcType=VARCHAR}, + + + status = #{status,jdbcType=INTEGER}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + icon = #{icon,jdbcType=VARCHAR}, + + + gender = #{gender,jdbcType=INTEGER}, + + + birthday = #{birthday,jdbcType=DATE}, + + + city = #{city,jdbcType=VARCHAR}, + + + job = #{job,jdbcType=VARCHAR}, + + + personalized_signature = #{personalizedSignature,jdbcType=VARCHAR}, + + + source_type = #{sourceType,jdbcType=INTEGER}, + + + integration = #{integration,jdbcType=INTEGER}, + + + growth = #{growth,jdbcType=INTEGER}, + + + luckey_count = #{luckeyCount,jdbcType=INTEGER}, + + + history_integration = #{historyIntegration,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_member + set member_level_id = #{memberLevelId,jdbcType=BIGINT}, + username = #{username,jdbcType=VARCHAR}, + password = #{password,jdbcType=VARCHAR}, + nickname = #{nickname,jdbcType=VARCHAR}, + phone = #{phone,jdbcType=VARCHAR}, + status = #{status,jdbcType=INTEGER}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + icon = #{icon,jdbcType=VARCHAR}, + gender = #{gender,jdbcType=INTEGER}, + birthday = #{birthday,jdbcType=DATE}, + city = #{city,jdbcType=VARCHAR}, + job = #{job,jdbcType=VARCHAR}, + personalized_signature = #{personalizedSignature,jdbcType=VARCHAR}, + source_type = #{sourceType,jdbcType=INTEGER}, + integration = #{integration,jdbcType=INTEGER}, + growth = #{growth,jdbcType=INTEGER}, + luckey_count = #{luckeyCount,jdbcType=INTEGER}, + history_integration = #{historyIntegration,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberMemberTagRelationMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberMemberTagRelationMapper.xml new file mode 100644 index 000000000..0a40cda02 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberMemberTagRelationMapper.xml @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, member_id, tag_id + + + + + delete from ums_member_member_tag_relation + where id = #{id,jdbcType=BIGINT} + + + delete from ums_member_member_tag_relation + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_member_member_tag_relation (member_id, tag_id) + values (#{memberId,jdbcType=BIGINT}, #{tagId,jdbcType=BIGINT}) + + + + SELECT LAST_INSERT_ID() + + insert into ums_member_member_tag_relation + + + member_id, + + + tag_id, + + + + + #{memberId,jdbcType=BIGINT}, + + + #{tagId,jdbcType=BIGINT}, + + + + + + update ums_member_member_tag_relation + + + id = #{row.id,jdbcType=BIGINT}, + + + member_id = #{row.memberId,jdbcType=BIGINT}, + + + tag_id = #{row.tagId,jdbcType=BIGINT}, + + + + + + + + update ums_member_member_tag_relation + set id = #{row.id,jdbcType=BIGINT}, + member_id = #{row.memberId,jdbcType=BIGINT}, + tag_id = #{row.tagId,jdbcType=BIGINT} + + + + + + update ums_member_member_tag_relation + + + member_id = #{memberId,jdbcType=BIGINT}, + + + tag_id = #{tagId,jdbcType=BIGINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_member_member_tag_relation + set member_id = #{memberId,jdbcType=BIGINT}, + tag_id = #{tagId,jdbcType=BIGINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberProductCategoryRelationMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberProductCategoryRelationMapper.xml new file mode 100644 index 000000000..31cf00181 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberProductCategoryRelationMapper.xml @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, member_id, product_category_id + + + + + delete from ums_member_product_category_relation + where id = #{id,jdbcType=BIGINT} + + + delete from ums_member_product_category_relation + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_member_product_category_relation (member_id, product_category_id) + values (#{memberId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT}) + + + + SELECT LAST_INSERT_ID() + + insert into ums_member_product_category_relation + + + member_id, + + + product_category_id, + + + + + #{memberId,jdbcType=BIGINT}, + + + #{productCategoryId,jdbcType=BIGINT}, + + + + + + update ums_member_product_category_relation + + + id = #{row.id,jdbcType=BIGINT}, + + + member_id = #{row.memberId,jdbcType=BIGINT}, + + + product_category_id = #{row.productCategoryId,jdbcType=BIGINT}, + + + + + + + + update ums_member_product_category_relation + set id = #{row.id,jdbcType=BIGINT}, + member_id = #{row.memberId,jdbcType=BIGINT}, + product_category_id = #{row.productCategoryId,jdbcType=BIGINT} + + + + + + update ums_member_product_category_relation + + + member_id = #{memberId,jdbcType=BIGINT}, + + + product_category_id = #{productCategoryId,jdbcType=BIGINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_member_product_category_relation + set member_id = #{memberId,jdbcType=BIGINT}, + product_category_id = #{productCategoryId,jdbcType=BIGINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberReceiveAddressMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberReceiveAddressMapper.xml new file mode 100644 index 000000000..96ab4d709 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberReceiveAddressMapper.xml @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, member_id, name, phone_number, default_status, post_code, province, city, region, + detail_address + + + + + delete from ums_member_receive_address + where id = #{id,jdbcType=BIGINT} + + + delete from ums_member_receive_address + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_member_receive_address (member_id, name, phone_number, + default_status, post_code, province, + city, region, detail_address + ) + values (#{memberId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{phoneNumber,jdbcType=VARCHAR}, + #{defaultStatus,jdbcType=INTEGER}, #{postCode,jdbcType=VARCHAR}, #{province,jdbcType=VARCHAR}, + #{city,jdbcType=VARCHAR}, #{region,jdbcType=VARCHAR}, #{detailAddress,jdbcType=VARCHAR} + ) + + + + SELECT LAST_INSERT_ID() + + insert into ums_member_receive_address + + + member_id, + + + name, + + + phone_number, + + + default_status, + + + post_code, + + + province, + + + city, + + + region, + + + detail_address, + + + + + #{memberId,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{phoneNumber,jdbcType=VARCHAR}, + + + #{defaultStatus,jdbcType=INTEGER}, + + + #{postCode,jdbcType=VARCHAR}, + + + #{province,jdbcType=VARCHAR}, + + + #{city,jdbcType=VARCHAR}, + + + #{region,jdbcType=VARCHAR}, + + + #{detailAddress,jdbcType=VARCHAR}, + + + + + + update ums_member_receive_address + + + id = #{row.id,jdbcType=BIGINT}, + + + member_id = #{row.memberId,jdbcType=BIGINT}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + phone_number = #{row.phoneNumber,jdbcType=VARCHAR}, + + + default_status = #{row.defaultStatus,jdbcType=INTEGER}, + + + post_code = #{row.postCode,jdbcType=VARCHAR}, + + + province = #{row.province,jdbcType=VARCHAR}, + + + city = #{row.city,jdbcType=VARCHAR}, + + + region = #{row.region,jdbcType=VARCHAR}, + + + detail_address = #{row.detailAddress,jdbcType=VARCHAR}, + + + + + + + + update ums_member_receive_address + set id = #{row.id,jdbcType=BIGINT}, + member_id = #{row.memberId,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + phone_number = #{row.phoneNumber,jdbcType=VARCHAR}, + default_status = #{row.defaultStatus,jdbcType=INTEGER}, + post_code = #{row.postCode,jdbcType=VARCHAR}, + province = #{row.province,jdbcType=VARCHAR}, + city = #{row.city,jdbcType=VARCHAR}, + region = #{row.region,jdbcType=VARCHAR}, + detail_address = #{row.detailAddress,jdbcType=VARCHAR} + + + + + + update ums_member_receive_address + + + member_id = #{memberId,jdbcType=BIGINT}, + + + name = #{name,jdbcType=VARCHAR}, + + + phone_number = #{phoneNumber,jdbcType=VARCHAR}, + + + default_status = #{defaultStatus,jdbcType=INTEGER}, + + + post_code = #{postCode,jdbcType=VARCHAR}, + + + province = #{province,jdbcType=VARCHAR}, + + + city = #{city,jdbcType=VARCHAR}, + + + region = #{region,jdbcType=VARCHAR}, + + + detail_address = #{detailAddress,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_member_receive_address + set member_id = #{memberId,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + phone_number = #{phoneNumber,jdbcType=VARCHAR}, + default_status = #{defaultStatus,jdbcType=INTEGER}, + post_code = #{postCode,jdbcType=VARCHAR}, + province = #{province,jdbcType=VARCHAR}, + city = #{city,jdbcType=VARCHAR}, + region = #{region,jdbcType=VARCHAR}, + detail_address = #{detailAddress,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberRuleSettingMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberRuleSettingMapper.xml new file mode 100644 index 000000000..56203504d --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberRuleSettingMapper.xml @@ -0,0 +1,244 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, continue_sign_day, continue_sign_point, consume_per_point, low_order_amount, + max_point_per_order, type + + + + + delete from ums_member_rule_setting + where id = #{id,jdbcType=BIGINT} + + + delete from ums_member_rule_setting + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_member_rule_setting (continue_sign_day, continue_sign_point, + consume_per_point, low_order_amount, max_point_per_order, + type) + values (#{continueSignDay,jdbcType=INTEGER}, #{continueSignPoint,jdbcType=INTEGER}, + #{consumePerPoint,jdbcType=DECIMAL}, #{lowOrderAmount,jdbcType=DECIMAL}, #{maxPointPerOrder,jdbcType=INTEGER}, + #{type,jdbcType=INTEGER}) + + + + SELECT LAST_INSERT_ID() + + insert into ums_member_rule_setting + + + continue_sign_day, + + + continue_sign_point, + + + consume_per_point, + + + low_order_amount, + + + max_point_per_order, + + + type, + + + + + #{continueSignDay,jdbcType=INTEGER}, + + + #{continueSignPoint,jdbcType=INTEGER}, + + + #{consumePerPoint,jdbcType=DECIMAL}, + + + #{lowOrderAmount,jdbcType=DECIMAL}, + + + #{maxPointPerOrder,jdbcType=INTEGER}, + + + #{type,jdbcType=INTEGER}, + + + + + + update ums_member_rule_setting + + + id = #{row.id,jdbcType=BIGINT}, + + + continue_sign_day = #{row.continueSignDay,jdbcType=INTEGER}, + + + continue_sign_point = #{row.continueSignPoint,jdbcType=INTEGER}, + + + consume_per_point = #{row.consumePerPoint,jdbcType=DECIMAL}, + + + low_order_amount = #{row.lowOrderAmount,jdbcType=DECIMAL}, + + + max_point_per_order = #{row.maxPointPerOrder,jdbcType=INTEGER}, + + + type = #{row.type,jdbcType=INTEGER}, + + + + + + + + update ums_member_rule_setting + set id = #{row.id,jdbcType=BIGINT}, + continue_sign_day = #{row.continueSignDay,jdbcType=INTEGER}, + continue_sign_point = #{row.continueSignPoint,jdbcType=INTEGER}, + consume_per_point = #{row.consumePerPoint,jdbcType=DECIMAL}, + low_order_amount = #{row.lowOrderAmount,jdbcType=DECIMAL}, + max_point_per_order = #{row.maxPointPerOrder,jdbcType=INTEGER}, + type = #{row.type,jdbcType=INTEGER} + + + + + + update ums_member_rule_setting + + + continue_sign_day = #{continueSignDay,jdbcType=INTEGER}, + + + continue_sign_point = #{continueSignPoint,jdbcType=INTEGER}, + + + consume_per_point = #{consumePerPoint,jdbcType=DECIMAL}, + + + low_order_amount = #{lowOrderAmount,jdbcType=DECIMAL}, + + + max_point_per_order = #{maxPointPerOrder,jdbcType=INTEGER}, + + + type = #{type,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_member_rule_setting + set continue_sign_day = #{continueSignDay,jdbcType=INTEGER}, + continue_sign_point = #{continueSignPoint,jdbcType=INTEGER}, + consume_per_point = #{consumePerPoint,jdbcType=DECIMAL}, + low_order_amount = #{lowOrderAmount,jdbcType=DECIMAL}, + max_point_per_order = #{maxPointPerOrder,jdbcType=INTEGER}, + type = #{type,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberStatisticsInfoMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberStatisticsInfoMapper.xml new file mode 100644 index 000000000..2bff02e91 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberStatisticsInfoMapper.xml @@ -0,0 +1,386 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, member_id, consume_amount, order_count, coupon_count, comment_count, return_order_count, + login_count, attend_count, fans_count, collect_product_count, collect_subject_count, + collect_topic_count, collect_comment_count, invite_friend_count, recent_order_time + + + + + delete from ums_member_statistics_info + where id = #{id,jdbcType=BIGINT} + + + delete from ums_member_statistics_info + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_member_statistics_info (member_id, consume_amount, order_count, + coupon_count, comment_count, return_order_count, + login_count, attend_count, fans_count, + collect_product_count, collect_subject_count, + collect_topic_count, collect_comment_count, + invite_friend_count, recent_order_time) + values (#{memberId,jdbcType=BIGINT}, #{consumeAmount,jdbcType=DECIMAL}, #{orderCount,jdbcType=INTEGER}, + #{couponCount,jdbcType=INTEGER}, #{commentCount,jdbcType=INTEGER}, #{returnOrderCount,jdbcType=INTEGER}, + #{loginCount,jdbcType=INTEGER}, #{attendCount,jdbcType=INTEGER}, #{fansCount,jdbcType=INTEGER}, + #{collectProductCount,jdbcType=INTEGER}, #{collectSubjectCount,jdbcType=INTEGER}, + #{collectTopicCount,jdbcType=INTEGER}, #{collectCommentCount,jdbcType=INTEGER}, + #{inviteFriendCount,jdbcType=INTEGER}, #{recentOrderTime,jdbcType=TIMESTAMP}) + + + + SELECT LAST_INSERT_ID() + + insert into ums_member_statistics_info + + + member_id, + + + consume_amount, + + + order_count, + + + coupon_count, + + + comment_count, + + + return_order_count, + + + login_count, + + + attend_count, + + + fans_count, + + + collect_product_count, + + + collect_subject_count, + + + collect_topic_count, + + + collect_comment_count, + + + invite_friend_count, + + + recent_order_time, + + + + + #{memberId,jdbcType=BIGINT}, + + + #{consumeAmount,jdbcType=DECIMAL}, + + + #{orderCount,jdbcType=INTEGER}, + + + #{couponCount,jdbcType=INTEGER}, + + + #{commentCount,jdbcType=INTEGER}, + + + #{returnOrderCount,jdbcType=INTEGER}, + + + #{loginCount,jdbcType=INTEGER}, + + + #{attendCount,jdbcType=INTEGER}, + + + #{fansCount,jdbcType=INTEGER}, + + + #{collectProductCount,jdbcType=INTEGER}, + + + #{collectSubjectCount,jdbcType=INTEGER}, + + + #{collectTopicCount,jdbcType=INTEGER}, + + + #{collectCommentCount,jdbcType=INTEGER}, + + + #{inviteFriendCount,jdbcType=INTEGER}, + + + #{recentOrderTime,jdbcType=TIMESTAMP}, + + + + + + update ums_member_statistics_info + + + id = #{row.id,jdbcType=BIGINT}, + + + member_id = #{row.memberId,jdbcType=BIGINT}, + + + consume_amount = #{row.consumeAmount,jdbcType=DECIMAL}, + + + order_count = #{row.orderCount,jdbcType=INTEGER}, + + + coupon_count = #{row.couponCount,jdbcType=INTEGER}, + + + comment_count = #{row.commentCount,jdbcType=INTEGER}, + + + return_order_count = #{row.returnOrderCount,jdbcType=INTEGER}, + + + login_count = #{row.loginCount,jdbcType=INTEGER}, + + + attend_count = #{row.attendCount,jdbcType=INTEGER}, + + + fans_count = #{row.fansCount,jdbcType=INTEGER}, + + + collect_product_count = #{row.collectProductCount,jdbcType=INTEGER}, + + + collect_subject_count = #{row.collectSubjectCount,jdbcType=INTEGER}, + + + collect_topic_count = #{row.collectTopicCount,jdbcType=INTEGER}, + + + collect_comment_count = #{row.collectCommentCount,jdbcType=INTEGER}, + + + invite_friend_count = #{row.inviteFriendCount,jdbcType=INTEGER}, + + + recent_order_time = #{row.recentOrderTime,jdbcType=TIMESTAMP}, + + + + + + + + update ums_member_statistics_info + set id = #{row.id,jdbcType=BIGINT}, + member_id = #{row.memberId,jdbcType=BIGINT}, + consume_amount = #{row.consumeAmount,jdbcType=DECIMAL}, + order_count = #{row.orderCount,jdbcType=INTEGER}, + coupon_count = #{row.couponCount,jdbcType=INTEGER}, + comment_count = #{row.commentCount,jdbcType=INTEGER}, + return_order_count = #{row.returnOrderCount,jdbcType=INTEGER}, + login_count = #{row.loginCount,jdbcType=INTEGER}, + attend_count = #{row.attendCount,jdbcType=INTEGER}, + fans_count = #{row.fansCount,jdbcType=INTEGER}, + collect_product_count = #{row.collectProductCount,jdbcType=INTEGER}, + collect_subject_count = #{row.collectSubjectCount,jdbcType=INTEGER}, + collect_topic_count = #{row.collectTopicCount,jdbcType=INTEGER}, + collect_comment_count = #{row.collectCommentCount,jdbcType=INTEGER}, + invite_friend_count = #{row.inviteFriendCount,jdbcType=INTEGER}, + recent_order_time = #{row.recentOrderTime,jdbcType=TIMESTAMP} + + + + + + update ums_member_statistics_info + + + member_id = #{memberId,jdbcType=BIGINT}, + + + consume_amount = #{consumeAmount,jdbcType=DECIMAL}, + + + order_count = #{orderCount,jdbcType=INTEGER}, + + + coupon_count = #{couponCount,jdbcType=INTEGER}, + + + comment_count = #{commentCount,jdbcType=INTEGER}, + + + return_order_count = #{returnOrderCount,jdbcType=INTEGER}, + + + login_count = #{loginCount,jdbcType=INTEGER}, + + + attend_count = #{attendCount,jdbcType=INTEGER}, + + + fans_count = #{fansCount,jdbcType=INTEGER}, + + + collect_product_count = #{collectProductCount,jdbcType=INTEGER}, + + + collect_subject_count = #{collectSubjectCount,jdbcType=INTEGER}, + + + collect_topic_count = #{collectTopicCount,jdbcType=INTEGER}, + + + collect_comment_count = #{collectCommentCount,jdbcType=INTEGER}, + + + invite_friend_count = #{inviteFriendCount,jdbcType=INTEGER}, + + + recent_order_time = #{recentOrderTime,jdbcType=TIMESTAMP}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_member_statistics_info + set member_id = #{memberId,jdbcType=BIGINT}, + consume_amount = #{consumeAmount,jdbcType=DECIMAL}, + order_count = #{orderCount,jdbcType=INTEGER}, + coupon_count = #{couponCount,jdbcType=INTEGER}, + comment_count = #{commentCount,jdbcType=INTEGER}, + return_order_count = #{returnOrderCount,jdbcType=INTEGER}, + login_count = #{loginCount,jdbcType=INTEGER}, + attend_count = #{attendCount,jdbcType=INTEGER}, + fans_count = #{fansCount,jdbcType=INTEGER}, + collect_product_count = #{collectProductCount,jdbcType=INTEGER}, + collect_subject_count = #{collectSubjectCount,jdbcType=INTEGER}, + collect_topic_count = #{collectTopicCount,jdbcType=INTEGER}, + collect_comment_count = #{collectCommentCount,jdbcType=INTEGER}, + invite_friend_count = #{inviteFriendCount,jdbcType=INTEGER}, + recent_order_time = #{recentOrderTime,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberTagMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberTagMapper.xml new file mode 100644 index 000000000..03a112cb8 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberTagMapper.xml @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, finish_order_count, finish_order_amount + + + + + delete from ums_member_tag + where id = #{id,jdbcType=BIGINT} + + + delete from ums_member_tag + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_member_tag (name, finish_order_count, finish_order_amount + ) + values (#{name,jdbcType=VARCHAR}, #{finishOrderCount,jdbcType=INTEGER}, #{finishOrderAmount,jdbcType=DECIMAL} + ) + + + + SELECT LAST_INSERT_ID() + + insert into ums_member_tag + + + name, + + + finish_order_count, + + + finish_order_amount, + + + + + #{name,jdbcType=VARCHAR}, + + + #{finishOrderCount,jdbcType=INTEGER}, + + + #{finishOrderAmount,jdbcType=DECIMAL}, + + + + + + update ums_member_tag + + + id = #{row.id,jdbcType=BIGINT}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + finish_order_count = #{row.finishOrderCount,jdbcType=INTEGER}, + + + finish_order_amount = #{row.finishOrderAmount,jdbcType=DECIMAL}, + + + + + + + + update ums_member_tag + set id = #{row.id,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + finish_order_count = #{row.finishOrderCount,jdbcType=INTEGER}, + finish_order_amount = #{row.finishOrderAmount,jdbcType=DECIMAL} + + + + + + update ums_member_tag + + + name = #{name,jdbcType=VARCHAR}, + + + finish_order_count = #{finishOrderCount,jdbcType=INTEGER}, + + + finish_order_amount = #{finishOrderAmount,jdbcType=DECIMAL}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_member_tag + set name = #{name,jdbcType=VARCHAR}, + finish_order_count = #{finishOrderCount,jdbcType=INTEGER}, + finish_order_amount = #{finishOrderAmount,jdbcType=DECIMAL} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberTaskMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberTaskMapper.xml new file mode 100644 index 000000000..58e1fb230 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberTaskMapper.xml @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, growth, intergration, type + + + + + delete from ums_member_task + where id = #{id,jdbcType=BIGINT} + + + delete from ums_member_task + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_member_task (name, growth, intergration, + type) + values (#{name,jdbcType=VARCHAR}, #{growth,jdbcType=INTEGER}, #{intergration,jdbcType=INTEGER}, + #{type,jdbcType=INTEGER}) + + + + SELECT LAST_INSERT_ID() + + insert into ums_member_task + + + name, + + + growth, + + + intergration, + + + type, + + + + + #{name,jdbcType=VARCHAR}, + + + #{growth,jdbcType=INTEGER}, + + + #{intergration,jdbcType=INTEGER}, + + + #{type,jdbcType=INTEGER}, + + + + + + update ums_member_task + + + id = #{row.id,jdbcType=BIGINT}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + growth = #{row.growth,jdbcType=INTEGER}, + + + intergration = #{row.intergration,jdbcType=INTEGER}, + + + type = #{row.type,jdbcType=INTEGER}, + + + + + + + + update ums_member_task + set id = #{row.id,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + growth = #{row.growth,jdbcType=INTEGER}, + intergration = #{row.intergration,jdbcType=INTEGER}, + type = #{row.type,jdbcType=INTEGER} + + + + + + update ums_member_task + + + name = #{name,jdbcType=VARCHAR}, + + + growth = #{growth,jdbcType=INTEGER}, + + + intergration = #{intergration,jdbcType=INTEGER}, + + + type = #{type,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_member_task + set name = #{name,jdbcType=VARCHAR}, + growth = #{growth,jdbcType=INTEGER}, + intergration = #{intergration,jdbcType=INTEGER}, + type = #{type,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMenuMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMenuMapper.xml new file mode 100644 index 000000000..449fe3714 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMenuMapper.xml @@ -0,0 +1,273 @@ + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, parent_id, create_time, title, level, sort, name, icon, hidden + + + + + delete from ums_menu + where id = #{id,jdbcType=BIGINT} + + + delete from ums_menu + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_menu (parent_id, create_time, title, + level, sort, name, + icon, hidden) + values (#{parentId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{title,jdbcType=VARCHAR}, + #{level,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, + #{icon,jdbcType=VARCHAR}, #{hidden,jdbcType=INTEGER}) + + + + SELECT LAST_INSERT_ID() + + insert into ums_menu + + + parent_id, + + + create_time, + + + title, + + + level, + + + sort, + + + name, + + + icon, + + + hidden, + + + + + #{parentId,jdbcType=BIGINT}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{title,jdbcType=VARCHAR}, + + + #{level,jdbcType=INTEGER}, + + + #{sort,jdbcType=INTEGER}, + + + #{name,jdbcType=VARCHAR}, + + + #{icon,jdbcType=VARCHAR}, + + + #{hidden,jdbcType=INTEGER}, + + + + + + update ums_menu + + + id = #{row.id,jdbcType=BIGINT}, + + + parent_id = #{row.parentId,jdbcType=BIGINT}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + title = #{row.title,jdbcType=VARCHAR}, + + + level = #{row.level,jdbcType=INTEGER}, + + + sort = #{row.sort,jdbcType=INTEGER}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + icon = #{row.icon,jdbcType=VARCHAR}, + + + hidden = #{row.hidden,jdbcType=INTEGER}, + + + + + + + + update ums_menu + set id = #{row.id,jdbcType=BIGINT}, + parent_id = #{row.parentId,jdbcType=BIGINT}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + title = #{row.title,jdbcType=VARCHAR}, + level = #{row.level,jdbcType=INTEGER}, + sort = #{row.sort,jdbcType=INTEGER}, + name = #{row.name,jdbcType=VARCHAR}, + icon = #{row.icon,jdbcType=VARCHAR}, + hidden = #{row.hidden,jdbcType=INTEGER} + + + + + + update ums_menu + + + parent_id = #{parentId,jdbcType=BIGINT}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + title = #{title,jdbcType=VARCHAR}, + + + level = #{level,jdbcType=INTEGER}, + + + sort = #{sort,jdbcType=INTEGER}, + + + name = #{name,jdbcType=VARCHAR}, + + + icon = #{icon,jdbcType=VARCHAR}, + + + hidden = #{hidden,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_menu + set parent_id = #{parentId,jdbcType=BIGINT}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + title = #{title,jdbcType=VARCHAR}, + level = #{level,jdbcType=INTEGER}, + sort = #{sort,jdbcType=INTEGER}, + name = #{name,jdbcType=VARCHAR}, + icon = #{icon,jdbcType=VARCHAR}, + hidden = #{hidden,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsPermissionMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsPermissionMapper.xml new file mode 100644 index 000000000..f45990679 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsPermissionMapper.xml @@ -0,0 +1,288 @@ + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, pid, name, value, icon, type, uri, status, create_time, sort + + + + + delete from ums_permission + where id = #{id,jdbcType=BIGINT} + + + delete from ums_permission + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_permission (pid, name, value, + icon, type, uri, status, + create_time, sort) + values (#{pid,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{value,jdbcType=VARCHAR}, + #{icon,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{uri,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, + #{createTime,jdbcType=TIMESTAMP}, #{sort,jdbcType=INTEGER}) + + + + SELECT LAST_INSERT_ID() + + insert into ums_permission + + + pid, + + + name, + + + value, + + + icon, + + + type, + + + uri, + + + status, + + + create_time, + + + sort, + + + + + #{pid,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{value,jdbcType=VARCHAR}, + + + #{icon,jdbcType=VARCHAR}, + + + #{type,jdbcType=INTEGER}, + + + #{uri,jdbcType=VARCHAR}, + + + #{status,jdbcType=INTEGER}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{sort,jdbcType=INTEGER}, + + + + + + update ums_permission + + + id = #{row.id,jdbcType=BIGINT}, + + + pid = #{row.pid,jdbcType=BIGINT}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + value = #{row.value,jdbcType=VARCHAR}, + + + icon = #{row.icon,jdbcType=VARCHAR}, + + + type = #{row.type,jdbcType=INTEGER}, + + + uri = #{row.uri,jdbcType=VARCHAR}, + + + status = #{row.status,jdbcType=INTEGER}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + sort = #{row.sort,jdbcType=INTEGER}, + + + + + + + + update ums_permission + set id = #{row.id,jdbcType=BIGINT}, + pid = #{row.pid,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + value = #{row.value,jdbcType=VARCHAR}, + icon = #{row.icon,jdbcType=VARCHAR}, + type = #{row.type,jdbcType=INTEGER}, + uri = #{row.uri,jdbcType=VARCHAR}, + status = #{row.status,jdbcType=INTEGER}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + sort = #{row.sort,jdbcType=INTEGER} + + + + + + update ums_permission + + + pid = #{pid,jdbcType=BIGINT}, + + + name = #{name,jdbcType=VARCHAR}, + + + value = #{value,jdbcType=VARCHAR}, + + + icon = #{icon,jdbcType=VARCHAR}, + + + type = #{type,jdbcType=INTEGER}, + + + uri = #{uri,jdbcType=VARCHAR}, + + + status = #{status,jdbcType=INTEGER}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + sort = #{sort,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_permission + set pid = #{pid,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + value = #{value,jdbcType=VARCHAR}, + icon = #{icon,jdbcType=VARCHAR}, + type = #{type,jdbcType=INTEGER}, + uri = #{uri,jdbcType=VARCHAR}, + status = #{status,jdbcType=INTEGER}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + sort = #{sort,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsResourceCategoryMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsResourceCategoryMapper.xml new file mode 100644 index 000000000..35fa23b6c --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsResourceCategoryMapper.xml @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, create_time, name, sort + + + + + delete from ums_resource_category + where id = #{id,jdbcType=BIGINT} + + + delete from ums_resource_category + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_resource_category (create_time, name, sort + ) + values (#{createTime,jdbcType=TIMESTAMP}, #{name,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER} + ) + + + + SELECT LAST_INSERT_ID() + + insert into ums_resource_category + + + create_time, + + + name, + + + sort, + + + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{name,jdbcType=VARCHAR}, + + + #{sort,jdbcType=INTEGER}, + + + + + + update ums_resource_category + + + id = #{row.id,jdbcType=BIGINT}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + sort = #{row.sort,jdbcType=INTEGER}, + + + + + + + + update ums_resource_category + set id = #{row.id,jdbcType=BIGINT}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + name = #{row.name,jdbcType=VARCHAR}, + sort = #{row.sort,jdbcType=INTEGER} + + + + + + update ums_resource_category + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + name = #{name,jdbcType=VARCHAR}, + + + sort = #{sort,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_resource_category + set create_time = #{createTime,jdbcType=TIMESTAMP}, + name = #{name,jdbcType=VARCHAR}, + sort = #{sort,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsResourceMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsResourceMapper.xml new file mode 100644 index 000000000..ef8fee689 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsResourceMapper.xml @@ -0,0 +1,226 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, create_time, name, url, description, category_id + + + + + delete from ums_resource + where id = #{id,jdbcType=BIGINT} + + + delete from ums_resource + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_resource (create_time, name, url, + description, category_id) + values (#{createTime,jdbcType=TIMESTAMP}, #{name,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, + #{description,jdbcType=VARCHAR}, #{categoryId,jdbcType=BIGINT}) + + + + SELECT LAST_INSERT_ID() + + insert into ums_resource + + + create_time, + + + name, + + + url, + + + description, + + + category_id, + + + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{name,jdbcType=VARCHAR}, + + + #{url,jdbcType=VARCHAR}, + + + #{description,jdbcType=VARCHAR}, + + + #{categoryId,jdbcType=BIGINT}, + + + + + + update ums_resource + + + id = #{row.id,jdbcType=BIGINT}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + url = #{row.url,jdbcType=VARCHAR}, + + + description = #{row.description,jdbcType=VARCHAR}, + + + category_id = #{row.categoryId,jdbcType=BIGINT}, + + + + + + + + update ums_resource + set id = #{row.id,jdbcType=BIGINT}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + name = #{row.name,jdbcType=VARCHAR}, + url = #{row.url,jdbcType=VARCHAR}, + description = #{row.description,jdbcType=VARCHAR}, + category_id = #{row.categoryId,jdbcType=BIGINT} + + + + + + update ums_resource + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + name = #{name,jdbcType=VARCHAR}, + + + url = #{url,jdbcType=VARCHAR}, + + + description = #{description,jdbcType=VARCHAR}, + + + category_id = #{categoryId,jdbcType=BIGINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_resource + set create_time = #{createTime,jdbcType=TIMESTAMP}, + name = #{name,jdbcType=VARCHAR}, + url = #{url,jdbcType=VARCHAR}, + description = #{description,jdbcType=VARCHAR}, + category_id = #{categoryId,jdbcType=BIGINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsRoleMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsRoleMapper.xml new file mode 100644 index 000000000..62a0714cd --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsRoleMapper.xml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, description, admin_count, create_time, status, sort + + + + + delete from ums_role + where id = #{id,jdbcType=BIGINT} + + + delete from ums_role + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_role (name, description, admin_count, + create_time, status, sort + ) + values (#{name,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{adminCount,jdbcType=INTEGER}, + #{createTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER} + ) + + + + SELECT LAST_INSERT_ID() + + insert into ums_role + + + name, + + + description, + + + admin_count, + + + create_time, + + + status, + + + sort, + + + + + #{name,jdbcType=VARCHAR}, + + + #{description,jdbcType=VARCHAR}, + + + #{adminCount,jdbcType=INTEGER}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{status,jdbcType=INTEGER}, + + + #{sort,jdbcType=INTEGER}, + + + + + + update ums_role + + + id = #{row.id,jdbcType=BIGINT}, + + + name = #{row.name,jdbcType=VARCHAR}, + + + description = #{row.description,jdbcType=VARCHAR}, + + + admin_count = #{row.adminCount,jdbcType=INTEGER}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + status = #{row.status,jdbcType=INTEGER}, + + + sort = #{row.sort,jdbcType=INTEGER}, + + + + + + + + update ums_role + set id = #{row.id,jdbcType=BIGINT}, + name = #{row.name,jdbcType=VARCHAR}, + description = #{row.description,jdbcType=VARCHAR}, + admin_count = #{row.adminCount,jdbcType=INTEGER}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + status = #{row.status,jdbcType=INTEGER}, + sort = #{row.sort,jdbcType=INTEGER} + + + + + + update ums_role + + + name = #{name,jdbcType=VARCHAR}, + + + description = #{description,jdbcType=VARCHAR}, + + + admin_count = #{adminCount,jdbcType=INTEGER}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + status = #{status,jdbcType=INTEGER}, + + + sort = #{sort,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_role + set name = #{name,jdbcType=VARCHAR}, + description = #{description,jdbcType=VARCHAR}, + admin_count = #{adminCount,jdbcType=INTEGER}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + status = #{status,jdbcType=INTEGER}, + sort = #{sort,jdbcType=INTEGER} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsRoleMenuRelationMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsRoleMenuRelationMapper.xml new file mode 100644 index 000000000..7b3619a7d --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsRoleMenuRelationMapper.xml @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, role_id, menu_id + + + + + delete from ums_role_menu_relation + where id = #{id,jdbcType=BIGINT} + + + delete from ums_role_menu_relation + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_role_menu_relation (role_id, menu_id) + values (#{roleId,jdbcType=BIGINT}, #{menuId,jdbcType=BIGINT}) + + + + SELECT LAST_INSERT_ID() + + insert into ums_role_menu_relation + + + role_id, + + + menu_id, + + + + + #{roleId,jdbcType=BIGINT}, + + + #{menuId,jdbcType=BIGINT}, + + + + + + update ums_role_menu_relation + + + id = #{row.id,jdbcType=BIGINT}, + + + role_id = #{row.roleId,jdbcType=BIGINT}, + + + menu_id = #{row.menuId,jdbcType=BIGINT}, + + + + + + + + update ums_role_menu_relation + set id = #{row.id,jdbcType=BIGINT}, + role_id = #{row.roleId,jdbcType=BIGINT}, + menu_id = #{row.menuId,jdbcType=BIGINT} + + + + + + update ums_role_menu_relation + + + role_id = #{roleId,jdbcType=BIGINT}, + + + menu_id = #{menuId,jdbcType=BIGINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_role_menu_relation + set role_id = #{roleId,jdbcType=BIGINT}, + menu_id = #{menuId,jdbcType=BIGINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsRolePermissionRelationMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsRolePermissionRelationMapper.xml new file mode 100644 index 000000000..bae671453 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsRolePermissionRelationMapper.xml @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, role_id, permission_id + + + + + delete from ums_role_permission_relation + where id = #{id,jdbcType=BIGINT} + + + delete from ums_role_permission_relation + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_role_permission_relation (role_id, permission_id) + values (#{roleId,jdbcType=BIGINT}, #{permissionId,jdbcType=BIGINT}) + + + + SELECT LAST_INSERT_ID() + + insert into ums_role_permission_relation + + + role_id, + + + permission_id, + + + + + #{roleId,jdbcType=BIGINT}, + + + #{permissionId,jdbcType=BIGINT}, + + + + + + update ums_role_permission_relation + + + id = #{row.id,jdbcType=BIGINT}, + + + role_id = #{row.roleId,jdbcType=BIGINT}, + + + permission_id = #{row.permissionId,jdbcType=BIGINT}, + + + + + + + + update ums_role_permission_relation + set id = #{row.id,jdbcType=BIGINT}, + role_id = #{row.roleId,jdbcType=BIGINT}, + permission_id = #{row.permissionId,jdbcType=BIGINT} + + + + + + update ums_role_permission_relation + + + role_id = #{roleId,jdbcType=BIGINT}, + + + permission_id = #{permissionId,jdbcType=BIGINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_role_permission_relation + set role_id = #{roleId,jdbcType=BIGINT}, + permission_id = #{permissionId,jdbcType=BIGINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsRoleResourceRelationMapper.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsRoleResourceRelationMapper.xml new file mode 100644 index 000000000..3f0563783 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/com/macro/mall/mapper/UmsRoleResourceRelationMapper.xml @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, role_id, resource_id + + + + + delete from ums_role_resource_relation + where id = #{id,jdbcType=BIGINT} + + + delete from ums_role_resource_relation + + + + + + + SELECT LAST_INSERT_ID() + + insert into ums_role_resource_relation (role_id, resource_id) + values (#{roleId,jdbcType=BIGINT}, #{resourceId,jdbcType=BIGINT}) + + + + SELECT LAST_INSERT_ID() + + insert into ums_role_resource_relation + + + role_id, + + + resource_id, + + + + + #{roleId,jdbcType=BIGINT}, + + + #{resourceId,jdbcType=BIGINT}, + + + + + + update ums_role_resource_relation + + + id = #{row.id,jdbcType=BIGINT}, + + + role_id = #{row.roleId,jdbcType=BIGINT}, + + + resource_id = #{row.resourceId,jdbcType=BIGINT}, + + + + + + + + update ums_role_resource_relation + set id = #{row.id,jdbcType=BIGINT}, + role_id = #{row.roleId,jdbcType=BIGINT}, + resource_id = #{row.resourceId,jdbcType=BIGINT} + + + + + + update ums_role_resource_relation + + + role_id = #{roleId,jdbcType=BIGINT}, + + + resource_id = #{resourceId,jdbcType=BIGINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update ums_role_resource_relation + set role_id = #{roleId,jdbcType=BIGINT}, + resource_id = #{resourceId,jdbcType=BIGINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/generator.properties b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/generator.properties new file mode 100644 index 000000000..173547bb7 --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/generator.properties @@ -0,0 +1,4 @@ +jdbc.driverClass=com.mysql.cj.jdbc.Driver +jdbc.connectionURL=jdbc:mysql://localhost:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai +jdbc.userId=root +jdbc.password=root \ No newline at end of file diff --git a/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/generatorConfig.xml b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/generatorConfig.xml new file mode 100644 index 000000000..b5ec296ce --- /dev/null +++ b/ruoyi-saas-app/ruoyi-mall/ruoyi-mall-mbg/src/main/resources/generatorConfig.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
\ No newline at end of file