5 文件已重命名
8个文件已修改
942个文件已添加
| | |
| | | # Tomcat |
| | | server: |
| | | port: 9200 |
| | | port: 8030 |
| | | |
| | | # Spring |
| | | spring: |
| | |
| | | * 文件服务的serviceid |
| | | */ |
| | | public static final String FILE_SERVICE = "ruoyi-file"; |
| | | |
| | | public static final String MEMBER_SERVICE = "ruoyi-member"; |
| | | |
| | | public static final String SHOP_SERVICE = "ruoyi-shop"; |
| | | |
| | | public static final String ORDER_SERVICE = "ruoyi-order"; |
| | | } |
| | |
| | | # Tomcat |
| | | server: |
| | | port: 8080 |
| | | port: 8020 |
| | | |
| | | # Spring |
| | | spring: |
| | |
| | | <module>ruoyi-gen</module> |
| | | <module>ruoyi-job</module> |
| | | <module>ruoyi-file</module> |
| | | <module>ruoyi-member</module> |
| | | <module>ruoyi-shop</module> |
| | | <module>ruoyi-order</module> |
| | | </modules> |
| | | |
| | | <artifactId>ruoyi-modules</artifactId> |
| | |
| | | # Tomcat |
| | | server: |
| | | port: 9300 |
| | | port: 8031 |
| | | |
| | | # Spring |
| | | spring: |
| | |
| | | # Tomcat |
| | | server: |
| | | port: 9202 |
| | | port: 8032 |
| | | |
| | | # Spring |
| | | spring: |
| | |
| | | # Tomcat |
| | | server: |
| | | port: 9203 |
| | | port: 8033 |
| | | |
| | | # Spring |
| | | spring: |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| | | xmlns="http://maven.apache.org/POM/4.0.0" |
| | | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| | | <parent> |
| | | <groupId>com.ruoyi</groupId> |
| | | <artifactId>ruoyi-modules</artifactId> |
| | | <version>3.6.2</version> |
| | | </parent> |
| | | <modelVersion>4.0.0</modelVersion> |
| | | |
| | | <artifactId>ruoyi-modules-member</artifactId> |
| | | |
| | | <description> |
| | | ruoyi-modules-member会员模块 |
| | | </description> |
| | | |
| | | <dependencies> |
| | | |
| | | <!-- SpringCloud Alibaba Nacos --> |
| | | <dependency> |
| | | <groupId>com.alibaba.cloud</groupId> |
| | | <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- SpringCloud Alibaba Nacos Config --> |
| | | <dependency> |
| | | <groupId>com.alibaba.cloud</groupId> |
| | | <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- SpringCloud Alibaba Sentinel --> |
| | | <dependency> |
| | | <groupId>com.alibaba.cloud</groupId> |
| | | <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- SpringBoot Actuator --> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-actuator</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- Swagger UI --> |
| | | <dependency> |
| | | <groupId>io.springfox</groupId> |
| | | <artifactId>springfox-swagger-ui</artifactId> |
| | | <version>${swagger.fox.version}</version> |
| | | </dependency> |
| | | |
| | | <!-- Mysql Connector --> |
| | | <dependency> |
| | | <groupId>mysql</groupId> |
| | | <artifactId>mysql-connector-java</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- RuoYi Common DataSource --> |
| | | <dependency> |
| | | <groupId>com.ruoyi</groupId> |
| | | <artifactId>ruoyi-common-datasource</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- RuoYi Common DataScope --> |
| | | <dependency> |
| | | <groupId>com.ruoyi</groupId> |
| | | <artifactId>ruoyi-common-datascope</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- RuoYi Common Log --> |
| | | <dependency> |
| | | <groupId>com.ruoyi</groupId> |
| | | <artifactId>ruoyi-common-log</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- RuoYi Common Swagger --> |
| | | <dependency> |
| | | <groupId>com.ruoyi</groupId> |
| | | <artifactId>ruoyi-common-swagger</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- lombok --> |
| | | <dependency> |
| | | <groupId>org.projectlombok</groupId> |
| | | <artifactId>lombok</artifactId> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.baomidou</groupId> |
| | | <artifactId>mybatis-plus-boot-starter</artifactId> |
| | | <version>3.4.3.4</version> |
| | | <!-- pagehelper 包含该依赖存在版本冲突,因此不建议和 mp 一起混用 --> |
| | | <exclusions> |
| | | <exclusion> |
| | | <groupId>com.github.jsqlparser</groupId> |
| | | <artifactId>jsqlparser</artifactId> |
| | | </exclusion> |
| | | </exclusions> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.baomidou</groupId> |
| | | <artifactId>mybatis-plus-annotation</artifactId> |
| | | <version>3.4.3.4</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.baomidou</groupId> |
| | | <artifactId>mybatis-plus-generate</artifactId> |
| | | <version>2.3</version> |
| | | </dependency> |
| | | |
| | | <!-- 小程序统一服务 --> |
| | | <dependency> |
| | | <groupId>com.github.binarywang</groupId> |
| | | <artifactId>weixin-java-miniapp</artifactId> |
| | | <version>4.1.0</version> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | <build> |
| | | <finalName>${project.artifactId}</finalName> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <executions> |
| | | <execution> |
| | | <goals> |
| | | <goal>repackage</goal> |
| | | </goals> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | </plugins> |
| | | </build> |
| | | |
| | | </project> |
New file |
| | |
| | | package com.ruoyi.system; |
| | | |
| | | import org.springframework.boot.SpringApplication; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import com.ruoyi.common.security.annotation.EnableCustomConfig; |
| | | import com.ruoyi.common.security.annotation.EnableRyFeignClients; |
| | | import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2; |
| | | |
| | | /** |
| | | * 系统模块 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @EnableCustomConfig |
| | | @EnableCustomSwagger2 |
| | | @EnableRyFeignClients |
| | | @SpringBootApplication |
| | | public class RuoYiSystemApplication |
| | | { |
| | | public static void main(String[] args) |
| | | { |
| | | SpringApplication.run(RuoYiSystemApplication.class, args); |
| | | System.out.println("(♥◠‿◠)ノ゙ 系统模块启动成功 ლ(´ڡ`ლ)゙ \n" + |
| | | " .-------. ____ __ \n" + |
| | | " | _ _ \\ \\ \\ / / \n" + |
| | | " | ( ' ) | \\ _. / ' \n" + |
| | | " |(_ o _) / _( )_ .' \n" + |
| | | " | (_,_).' __ ___(_ o _)' \n" + |
| | | " | |\\ \\ | || |(_,_)' \n" + |
| | | " | | \\ `' /| `-' / \n" + |
| | | " | | \\ / \\ / \n" + |
| | | " ''-' `'-' `-..-' "); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.config; |
| | | |
| | | import cn.binarywang.wx.miniapp.api.WxMaService; |
| | | import cn.binarywang.wx.miniapp.api.impl.WxMaServiceImpl; |
| | | import cn.binarywang.wx.miniapp.config.WxMaConfig; |
| | | import cn.binarywang.wx.miniapp.config.impl.WxMaDefaultConfigImpl; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppConfig |
| | | * @description: TODO |
| | | * @date 2023年02月17日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Configuration |
| | | public class AppConfig { |
| | | |
| | | |
| | | @Bean |
| | | public WxMaService wxMaService() { |
| | | WxMaService service = new WxMaServiceImpl(); |
| | | service.setWxMaConfig(memberWxMaConfig()); |
| | | return service; |
| | | } |
| | | |
| | | @Bean |
| | | public WxMaConfig memberWxMaConfig(){ |
| | | WxMaDefaultConfigImpl config = new WxMaDefaultConfigImpl(); |
| | | config.setAppid("wxb7f0ea286fc4e535"); |
| | | config.setSecret("852a2512a6ab559cafc68bae5d4160ac"); |
| | | return config; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.constant; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppErrorContant |
| | | * @description: TODO |
| | | * @date 2023年02月13日 |
| | | * @version: 1.0 |
| | | */ |
| | | public interface AppErrorConstant { |
| | | |
| | | |
| | | String USER_NOT_LOGIN = "用户没有登录或登录已失效"; |
| | | |
| | | String AUTHORIZE_MISS = "授权信息不完整"; |
| | | |
| | | String AUTHORIZE_FAILED = "授权信息解密失败"; |
| | | |
| | | String USER_FROZE = "用户已被冻结"; |
| | | |
| | | String USER_NOT_MOBILE = "用户没有手机授权"; |
| | | |
| | | String NO_FIND_RESULT = "未找到编辑对象"; |
| | | |
| | | String NO_REQUIRED_PARAM = "缺少必要参数"; |
| | | |
| | | String CODE_EXPIRE = "验证码已过期"; |
| | | |
| | | String CODE_FAILED = "验证码错误"; |
| | | |
| | | String COUPON_NULL = "未找到优惠券"; |
| | | |
| | | String COUPON_FAILED = "未满足领取条件"; |
| | | |
| | | String NO_COUPON = "优惠券已领取完"; |
| | | |
| | | String DOUBLE_COUPON = "已拥有优惠券,请勿重复领取"; |
| | | |
| | | String REAL_NAME_FAILED = "实名认证失败,请检查上传的身份证图片"; |
| | | |
| | | String REAL_NAME_DIFF = "与资料填写姓名不符,非本人身份证"; |
| | | |
| | | String DISTRIBUTOR_APPLY_FAILED = "已经是分销员,请勿重复申请"; |
| | | |
| | | String DOUBLE_USER_BANK = "请勿重复绑定银行卡"; |
| | | |
| | | String USER_BANK_FAILED = "获取绑定银行卡失败"; |
| | | |
| | | String BEYOND_WITHDRAW = "超出可提现金额"; |
| | | |
| | | String BEYOND_WITHDRAW_time = "超出可提现金额"; |
| | | |
| | | String USER_NO_WITHDRAW = "用户没有提现权限"; |
| | | |
| | | String WX_WITHDRAW_FAILED = "用户没有提现权限"; |
| | | |
| | | String MOBILE_FAILED = "验证手机非绑定手机"; |
| | | |
| | | String AGREEMENT_FAILED = "获取协议失败"; |
| | | |
| | | String GOODS_DOWN = "商品已下架"; |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.constant; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import lombok.Getter; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName CodeEnum |
| | | * @description: TODO |
| | | * @date 2023年03月06日 |
| | | * @version: 1.0 |
| | | */ |
| | | @JsonFormat(shape = JsonFormat.Shape.OBJECT) |
| | | @Getter |
| | | public enum CodeEnum { |
| | | |
| | | SUCCESS("调用成功","200"), |
| | | NO_STOCK("没有库存","101"), |
| | | LIMIT_BUY("达到限购","102"), |
| | | NO_GOODS("商品下架","103"), |
| | | COUPON_FAILED("优惠券调用失败","111"), |
| | | INTEGRAL_FAILED("积分调用失败","112"), |
| | | HANDLE_ORDER_FAILED("订单处理失败","113"); |
| | | |
| | | |
| | | String name; |
| | | String code; |
| | | |
| | | private static Map<String, CodeEnum> valueMap = new HashMap<>(); |
| | | |
| | | static { |
| | | for(CodeEnum gender : CodeEnum.values()) { |
| | | valueMap.put(gender.name, gender); |
| | | } |
| | | } |
| | | |
| | | CodeEnum(String name, String code) { |
| | | this.code = code; |
| | | this.name=name; |
| | | } |
| | | |
| | | public static String getByName(String name) { |
| | | CodeEnum result = valueMap.get(name); |
| | | if(result == null) { |
| | | throw new IllegalArgumentException("No element matches " + name); |
| | | } |
| | | return result.code; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.constant; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName HttpStatus |
| | | * @description: TODO |
| | | * @date 2023年02月13日 |
| | | * @version: 1.0 |
| | | */ |
| | | public class HttpStatus { |
| | | |
| | | /** |
| | | * 操作成功 |
| | | */ |
| | | public static final int SUCCESS = 200; |
| | | |
| | | /** |
| | | * 对象创建成功 |
| | | */ |
| | | public static final int CREATED = 201; |
| | | |
| | | /** |
| | | * 请求已经被接受 |
| | | */ |
| | | public static final int ACCEPTED = 202; |
| | | |
| | | /** |
| | | * 操作已经执行成功,但是没有返回数据 |
| | | */ |
| | | public static final int NO_CONTENT = 204; |
| | | |
| | | /** |
| | | * 资源已被移除 |
| | | */ |
| | | public static final int MOVED_PERM = 301; |
| | | |
| | | /** |
| | | * 重定向 |
| | | */ |
| | | public static final int SEE_OTHER = 303; |
| | | |
| | | /** |
| | | * 资源没有被修改 |
| | | */ |
| | | public static final int NOT_MODIFIED = 304; |
| | | |
| | | /** |
| | | * 参数列表错误(缺少,格式不匹配) |
| | | */ |
| | | public static final int BAD_REQUEST = 400; |
| | | |
| | | /** |
| | | * 未授权 |
| | | */ |
| | | public static final int UNAUTHORIZED = 401; |
| | | |
| | | /** |
| | | * 访问受限,授权过期 |
| | | */ |
| | | public static final int FORBIDDEN = 403; |
| | | |
| | | /** |
| | | * 资源,服务未找到 |
| | | */ |
| | | public static final int NOT_FOUND = 404; |
| | | |
| | | /** |
| | | * 不允许的http方法 |
| | | */ |
| | | public static final int BAD_METHOD = 405; |
| | | |
| | | /** |
| | | * 资源冲突,或者资源被锁 |
| | | */ |
| | | public static final int CONFLICT = 409; |
| | | |
| | | /** |
| | | * 不支持的数据,媒体类型 |
| | | */ |
| | | public static final int UNSUPPORTED_TYPE = 415; |
| | | |
| | | /** |
| | | * 系统内部错误 |
| | | */ |
| | | public static final int ERROR = 500; |
| | | |
| | | /** |
| | | * 接口未实现 |
| | | */ |
| | | public static final int NOT_IMPLEMENTED = 501; |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.constant; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName SecurityConstant |
| | | * @description: TODO |
| | | * @date 2023年02月21日 |
| | | * @version: 1.0 |
| | | */ |
| | | public interface SecurityConstant { |
| | | |
| | | |
| | | /** |
| | | * 微信sessionKey前缀 |
| | | */ |
| | | String SESSION_KEY = "SESSION_KEY:"; |
| | | |
| | | |
| | | /** |
| | | * 用户验证码前缀key |
| | | */ |
| | | String MESSAGE_CODE = "MESSAGE_CODE:"; |
| | | |
| | | /** |
| | | * 用户验证码前缀key |
| | | */ |
| | | String MINI_CODE = "MINI_CODE:"; |
| | | |
| | | /** |
| | | * 用户验证码前缀key |
| | | */ |
| | | String WX_TOKEN = "WX_TOKEN"; |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.dto; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppAgreementDto |
| | | * @description: TODO |
| | | * @date 2023年03月07日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class AppAgreementDto extends AppBaseDto{ |
| | | |
| | | |
| | | @ApiModelProperty(value = "协议类型1用户协议 2隐私协议") |
| | | private Integer type; |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.dto; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppBaseBathDto |
| | | * @description: TODO |
| | | * @date 2023年04月26日 |
| | | * @version: 1.0 |
| | | */ |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class AppBaseBathDto extends AppBaseDto{ |
| | | |
| | | @ApiModelProperty(value = "请求对象id集合 多个用,隔开") |
| | | private String ids; |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.dto; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppBaseDto |
| | | * @description: TODO |
| | | * @date 2023年04月19日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class AppBaseDto { |
| | | |
| | | @ApiModelProperty(value = "userId",hidden = true) |
| | | private Long userId; |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.dto; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppBaseGetDto |
| | | * @description: TODO |
| | | * @date 2023年04月19日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class AppBaseGetDto extends AppBaseDto{ |
| | | |
| | | @ApiModelProperty(value = "请求对象id") |
| | | private String id; |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.dto; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppGoodsInfoGetDto |
| | | * @description: TODO |
| | | * @date 2023年04月20日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class AppGoodsInfoGetDto extends AppBaseGetDto { |
| | | |
| | | @ApiModelProperty(value = "是否活动跳转0否1是") |
| | | private Integer activityFlag; |
| | | |
| | | @ApiModelProperty(value = "商户id",hidden = true) |
| | | private Long shopId; |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.dto; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppNearbyShopDto |
| | | * @description: TODO |
| | | * @date 2023年04月19日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class AppNearbyShopDto extends AppBaseDto{ |
| | | |
| | | |
| | | @ApiModelProperty(value = "经度") |
| | | private String longitude; |
| | | |
| | | @ApiModelProperty(value = "维度") |
| | | private String latitude; |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.dto; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppPageDto |
| | | * @description: TODO |
| | | * @date 2023年04月20日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class AppPageDto extends AppBaseDto{ |
| | | |
| | | @ApiModelProperty(name = "pagenum", value = "页码") |
| | | private Integer pageNum = 1; |
| | | |
| | | |
| | | @ApiModelProperty(name = "pagesize", value = "每页显示条数") |
| | | private Integer pageSize = 20; |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.dto; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppShopGoodsPageDto |
| | | * @description: TODO |
| | | * @date 2023年04月20日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class AppSearchGoodsPageDto extends com.ruoyi.system.domain.dto.AppPageDto { |
| | | |
| | | @ApiModelProperty(value = "shopId",hidden = true) |
| | | private Long shopId; |
| | | |
| | | @ApiModelProperty(value = "搜索关键词") |
| | | private String keyword; |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.dto; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppShopGoodsPageDto |
| | | * @description: TODO |
| | | * @date 2023年04月20日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class AppShopGoodsPageDto extends AppPageDto{ |
| | | |
| | | @ApiModelProperty(value = "shopId",hidden = true) |
| | | private Long shopId; |
| | | |
| | | @ApiModelProperty(value = "搜索关键词") |
| | | private String keyword; |
| | | |
| | | @ApiModelProperty(value = "商品类型1周期2服务3体验4单品") |
| | | private Integer goodsType; |
| | | |
| | | @ApiModelProperty(value = "商品分类id") |
| | | private Long goodsClassId; |
| | | |
| | | @ApiModelProperty(value = "排序方式1.全部2.价格正序3.价格倒序4.销量正序5.销量倒序") |
| | | private Integer sort; |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.dto; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppShoppingCartAddDto |
| | | * @description: TODO |
| | | * @date 2023年04月26日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class AppShoppingCartAddDto extends AppBaseDto{ |
| | | |
| | | @ApiModelProperty(value = "shopId",hidden = true) |
| | | private Long shopId; |
| | | |
| | | @ApiModelProperty(value = "商品id") |
| | | private Long goodsId; |
| | | |
| | | @ApiModelProperty(value = "购买数量") |
| | | private Integer buyNum; |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.dto; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppShoppingCartAddDto |
| | | * @description: TODO |
| | | * @date 2023年04月26日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class AppShoppingCartChangeDto extends AppBaseDto{ |
| | | |
| | | @ApiModelProperty(value = "shopId",hidden = true) |
| | | private Long shopId; |
| | | |
| | | @ApiModelProperty(value = "商品id") |
| | | private Long goodsId; |
| | | |
| | | @ApiModelProperty(value = "变化后数量") |
| | | private Integer buyNum; |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.dto; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppUserAuthorizeDto |
| | | * @description: TODO |
| | | * @date 2023年02月13日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class AppUserAuthorizeDto extends AppBaseDto{ |
| | | |
| | | @ApiModelProperty(value = "手机iv") |
| | | private String phoneIv; |
| | | |
| | | @ApiModelProperty(value = "手机encryptedData") |
| | | private String phoneEncryptedData; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.dto; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName MGTBaseDto |
| | | * @description: TODO |
| | | * @date 2023年04月21日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class MgtBaseDto { |
| | | |
| | | @ApiModelProperty(value = "userId",hidden = true) |
| | | private Long userId; |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.dto; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName MgtBaseGetDto |
| | | * @description: TODO |
| | | * @date 2023年04月21日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class MgtBaseGetDto extends MgtBaseDto{ |
| | | |
| | | @ApiModelProperty(value = "请求对象id") |
| | | private String id; |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.dto; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName MGTChangeCooperDto |
| | | * @description: TODO |
| | | * @date 2023年04月21日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class MgtChangeCoopDto extends com.ruoyi.system.domain.dto.MgtBaseDto { |
| | | |
| | | @ApiModelProperty(value = "商户id") |
| | | private Long shopId; |
| | | |
| | | @ApiModelProperty("合作开始时间") |
| | | private String coopStartTime; |
| | | |
| | | @ApiModelProperty("合作结束时间") |
| | | private String coopEndTime; |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.dto; |
| | | |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName ManageCreateShopDto |
| | | * @description: TODO |
| | | * @date 2023年04月21日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class MgtEditShopDto extends MgtBaseDto{ |
| | | |
| | | |
| | | @ApiModelProperty(value = "商户id,新增不传") |
| | | private Long shopId; |
| | | |
| | | @ApiModelProperty("商户名称") |
| | | private String shopName; |
| | | |
| | | @ApiModelProperty("商户类型1.经销商2.代理商") |
| | | private Integer shopType; |
| | | |
| | | @ApiModelProperty("营业开始时间") |
| | | private String businessStartTime; |
| | | |
| | | @ApiModelProperty("营业结束时间") |
| | | private String businessEndTime; |
| | | |
| | | @ApiModelProperty("店主姓名") |
| | | private String shopownerName; |
| | | |
| | | @ApiModelProperty("店主联系方式") |
| | | private String shopownerPhone; |
| | | |
| | | @ApiModelProperty("签约区域") |
| | | private String signAreaCode; |
| | | |
| | | @ApiModelProperty("商户服务电话") |
| | | private String shopServicePhone; |
| | | |
| | | @ApiModelProperty("管辖员工") |
| | | private Long belongUserId; |
| | | |
| | | @ApiModelProperty("所属经销商") |
| | | private Long belongShopId; |
| | | |
| | | @ApiModelProperty("扶持能力1.有2.没有") |
| | | private Integer supportingCapacityFlag; |
| | | |
| | | @ApiModelProperty("店面操作人数1.1人2.1人以上") |
| | | private Integer operationPersonFlag; |
| | | |
| | | @ApiModelProperty("执行力1.强2.弱") |
| | | private Integer executiveForceFlag; |
| | | |
| | | @ApiModelProperty("格局1.大2.小") |
| | | private Integer patternFlag; |
| | | |
| | | @ApiModelProperty("人脉1.宽2.窄") |
| | | private Integer connectionFlag; |
| | | |
| | | @ApiModelProperty("经济能力1.强2.差") |
| | | private Integer economicAbilityFlag; |
| | | |
| | | @ApiModelProperty("与合作商关系1.好2.差") |
| | | private Integer relationPartner; |
| | | |
| | | @ApiModelProperty("曾从事事业") |
| | | private String businessHistory; |
| | | |
| | | @ApiModelProperty("店铺地址省code") |
| | | private String shopProvinceCode; |
| | | |
| | | @ApiModelProperty("店铺地址市code") |
| | | private String shopCityCode; |
| | | |
| | | @ApiModelProperty("店铺地址区code") |
| | | private String shopAreaCode; |
| | | |
| | | @ApiModelProperty("店铺区域全称") |
| | | private String shopAreaName; |
| | | |
| | | @ApiModelProperty("店铺详细地址") |
| | | private String shopAddress; |
| | | |
| | | @ApiModelProperty("店铺经度") |
| | | private String shopLongitude; |
| | | |
| | | @ApiModelProperty("店铺维度") |
| | | private String shopLatitude; |
| | | |
| | | @ApiModelProperty("店铺详情") |
| | | private String shopDetail; |
| | | |
| | | @ApiModelProperty("营销功能1开2关") |
| | | private Integer marketingFunctionFlag; |
| | | |
| | | @ApiModelProperty("领券1开2关") |
| | | private Integer platformCouponFlag; |
| | | |
| | | @ApiModelProperty("生日卡1开2关") |
| | | private Integer platformBirthdayFlag; |
| | | |
| | | @ApiModelProperty("推荐人") |
| | | private String recommendPerson; |
| | | |
| | | @ApiModelProperty("商户标签id 多个用,隔开") |
| | | private String shopTagIds; |
| | | |
| | | @ApiModelProperty("关联用户id 多个用,隔开") |
| | | private String relUserIds; |
| | | |
| | | @ApiModelProperty("商户封面") |
| | | private String shopPicture; |
| | | |
| | | @ApiModelProperty("商户banner 多个用,隔开") |
| | | private String shopBanners; |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.dto; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName MgtEditShopTagDto |
| | | * @description: TODO |
| | | * @date 2023年04月21日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class MgtEditShopTagDto extends com.ruoyi.system.domain.dto.MgtBaseGetDto { |
| | | |
| | | @ApiModelProperty("商户标签id 多个用,隔开") |
| | | private String shopTagIds; |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.dto; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppPageDto |
| | | * @description: TODO |
| | | * @date 2023年04月20日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class MgtPageDto extends MgtBaseDto{ |
| | | |
| | | @ApiModelProperty(name = "pagenum", value = "页码") |
| | | private Integer pageNum = 1; |
| | | |
| | | |
| | | @ApiModelProperty(name = "pagesize", value = "每页显示条数") |
| | | private Integer pageSize = 20; |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.dto; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName MgtShopPageDto |
| | | * @description: TODO |
| | | * @date 2023年04月21日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class MgtShopPageDto extends com.ruoyi.system.domain.dto.MgtPageDto { |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.activity; |
| | | |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * <p> |
| | | * |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_activity_goods") |
| | | public class ActivityGoods extends Model<ActivityGoods> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 活动商品id |
| | | */ |
| | | @TableId(value = "ag_id", type = IdType.AUTO) |
| | | private Long agId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @TableField("goods_id") |
| | | private String goodsId; |
| | | /** |
| | | * 活动id |
| | | */ |
| | | @TableField("activity_id") |
| | | private String activityId; |
| | | /** |
| | | * 活动价格 |
| | | */ |
| | | @TableField("activity_price") |
| | | private BigDecimal activityPrice; |
| | | /** |
| | | * 活动销售数量 |
| | | */ |
| | | @TableField("activity_number") |
| | | private Integer activityNumber; |
| | | /** |
| | | * 活动已售数量 |
| | | */ |
| | | @TableField("sales_number") |
| | | private Integer salesNumber; |
| | | /** |
| | | * 活动截止时间 |
| | | */ |
| | | @TableField("activity_deadline") |
| | | private Date activityDeadline; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.agId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.config; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 广告 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_advert") |
| | | public class Advert extends Model<Advert> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 广告id |
| | | */ |
| | | @TableId(value = "ad_id", type = IdType.AUTO) |
| | | private Long adId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 广告图片地址 |
| | | */ |
| | | @TableField("ad_url") |
| | | private String adUrl; |
| | | /** |
| | | * 广告语 |
| | | */ |
| | | @TableField("ad_content") |
| | | private String adContent; |
| | | /** |
| | | * 对象类型1.外链2.内链3.无 |
| | | */ |
| | | @TableField("target_type") |
| | | private Integer targetType; |
| | | /** |
| | | * 链接地址 |
| | | */ |
| | | @TableField("link_url") |
| | | private String linkUrl; |
| | | /** |
| | | * 跳转活动id |
| | | */ |
| | | @TableField("jump_id") |
| | | private String jumpId; |
| | | /** |
| | | * logo图片地址 |
| | | */ |
| | | @TableField("logo_url") |
| | | private String logoUrl; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | /** |
| | | * 创建用户id |
| | | */ |
| | | @TableField("create_user_id") |
| | | private Long createUserId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.adId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.config; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 协议 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_agreement") |
| | | public class Agreement extends Model<Agreement> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 协议id |
| | | */ |
| | | @TableId(value = "agreement_id", type = IdType.AUTO) |
| | | private Long agreementId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private String delFlag; |
| | | /** |
| | | * 协议类型 |
| | | */ |
| | | @TableField("agreement_type") |
| | | private Integer agreementType; |
| | | /** |
| | | * 协议内容 |
| | | */ |
| | | @TableField("agreement_content") |
| | | private String agreementContent; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | /** |
| | | * 创建用户id |
| | | */ |
| | | @TableField("create_user_id") |
| | | private Long createUserId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.agreementId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.config; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * banner |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_banner") |
| | | public class Banner extends Model<Banner> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * banner id |
| | | */ |
| | | @TableId(value = "banner_id", type = IdType.AUTO) |
| | | private Long bannerId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * banner位置1.小程序首页 |
| | | */ |
| | | @TableField("banner_position") |
| | | private Integer bannerPosition; |
| | | /** |
| | | * banner图片地址 |
| | | */ |
| | | @TableField("banner_url") |
| | | private String bannerUrl; |
| | | /** |
| | | * 链接类型1.外部2.内部3.无 |
| | | */ |
| | | @TableField("target_type") |
| | | private Integer targetType; |
| | | /** |
| | | * 链接类型1.手动输入2.选择已有 |
| | | */ |
| | | @TableField("link_type") |
| | | private Integer linkType; |
| | | /** |
| | | * 链接地址 |
| | | */ |
| | | @TableField("link_url") |
| | | private String linkUrl; |
| | | /** |
| | | * 跳转类型1.门店详情2.秒杀活动3领券中心4.商城列表5.关于洪瑞堂 |
| | | */ |
| | | @TableField("jump_type") |
| | | private Integer jumpType; |
| | | /** |
| | | * 跳转id |
| | | */ |
| | | @TableField("jump_id") |
| | | private String jumpId; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | /** |
| | | * 创建用户id |
| | | */ |
| | | @TableField("create_user_id") |
| | | private Long createUserId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.bannerId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.config; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 系统配置 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_custome_config") |
| | | public class CustomeConfig extends Model<CustomeConfig> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 配置id |
| | | */ |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 配置类型 |
| | | */ |
| | | private Integer type; |
| | | /** |
| | | * 配置键 |
| | | */ |
| | | private String key; |
| | | /** |
| | | * 配置名 |
| | | */ |
| | | private String name; |
| | | /** |
| | | * 配置值 |
| | | */ |
| | | private String value; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @TableField("update_time") |
| | | private Date updateTime; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.config; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 弹窗 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_pop") |
| | | public class Pop extends Model<Pop> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "pop_id", type = IdType.AUTO) |
| | | private Long popId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 弹窗排序 |
| | | */ |
| | | @TableField("pop_sort") |
| | | private Integer popSort; |
| | | /** |
| | | * 弹窗图片地址 |
| | | */ |
| | | @TableField("pop_url") |
| | | private String popUrl; |
| | | /** |
| | | * 展示开始时间 |
| | | */ |
| | | @TableField("show_start_time") |
| | | private Date showStartTime; |
| | | /** |
| | | * 展示结束时间 |
| | | */ |
| | | @TableField("show_end_time") |
| | | private Date showEndTime; |
| | | /** |
| | | * 对象类型1.外链2.内链3.无 |
| | | */ |
| | | @TableField("target_type") |
| | | private Integer targetType; |
| | | /** |
| | | * 链接地址 |
| | | */ |
| | | @TableField("link_url") |
| | | private String linkUrl; |
| | | /** |
| | | * 跳转活动id |
| | | */ |
| | | @TableField("jump_id") |
| | | private String jumpId; |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | @TableField("create_user_id") |
| | | private Long createUserId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.popId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.config; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 快速入口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_quick_entry") |
| | | public class QuickEntry extends Model<QuickEntry> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "entry_id", type = IdType.AUTO) |
| | | private Long entryId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 入口排序 |
| | | */ |
| | | @TableField("entry_sort") |
| | | private Integer entrySort; |
| | | /** |
| | | * 入口图片地址 |
| | | */ |
| | | @TableField("entry_url") |
| | | private String entryUrl; |
| | | /** |
| | | * 入口名称 |
| | | */ |
| | | @TableField("entry_name") |
| | | private String entryName; |
| | | /** |
| | | * 对象类型1.外链2.内链3.无 |
| | | */ |
| | | @TableField("target_type") |
| | | private Integer targetType; |
| | | /** |
| | | * 链接地址 |
| | | */ |
| | | @TableField("link_url") |
| | | private String linkUrl; |
| | | /** |
| | | * 跳转活动id |
| | | */ |
| | | @TableField("jump_id") |
| | | private String jumpId; |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | @TableField("create_user_id") |
| | | private Long createUserId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.entryId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.config; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 分类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_sys_classification") |
| | | public class SysClassification extends Model<SysClassification> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 分类id |
| | | */ |
| | | @TableId(value = "class_id", type = IdType.AUTO) |
| | | private Long classId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 分类类型 |
| | | */ |
| | | @TableField("class_type") |
| | | private Integer classType; |
| | | /** |
| | | * 分类名字 |
| | | */ |
| | | @TableField("class_name") |
| | | private String className; |
| | | /** |
| | | * 分类排序 |
| | | */ |
| | | @TableField("class_sort") |
| | | private Integer classSort; |
| | | /** |
| | | * 关联数量 |
| | | */ |
| | | @TableField("realtion_num") |
| | | private Integer realtionNum; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.classId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.config; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 系统标签 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_sys_tag") |
| | | public class SysTag extends Model<SysTag> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 标签id |
| | | */ |
| | | @TableId(value = "tag_id", type = IdType.AUTO) |
| | | private Long tagId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 标签类型1.用户2.合作商 |
| | | */ |
| | | @TableField("tag_type") |
| | | private Integer tagType; |
| | | /** |
| | | * 标签名称 |
| | | */ |
| | | @TableField("tag_name") |
| | | private String tagName; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | /** |
| | | * 同步标记0否1是 |
| | | */ |
| | | @TableField("syn_flag") |
| | | private Integer synFlag; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.tagId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.coupon; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_coupon") |
| | | public class Coupon extends Model<Coupon> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 优惠券id |
| | | */ |
| | | @TableId("coupon_id") |
| | | private String couponId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 优惠券类型1.满减2.折扣3.代金4.商品 |
| | | */ |
| | | @TableField("coupon_type") |
| | | private Integer couponType; |
| | | /** |
| | | * 优惠券状态-1删除0禁用1启用 |
| | | */ |
| | | @TableField("coupon_status") |
| | | private Integer couponStatus; |
| | | /** |
| | | * 优惠券名称 |
| | | */ |
| | | @TableField("coupon_name") |
| | | private String couponName; |
| | | /** |
| | | * 发送类型1.手动领取2.全部用户3.会员用户4非会员用户5自定义 |
| | | */ |
| | | @TableField("send_type") |
| | | private Integer sendType; |
| | | /** |
| | | * 发送时间类型1立即2定时 |
| | | */ |
| | | @TableField("send_time_type") |
| | | private Integer sendTimeType; |
| | | /** |
| | | * 发送时间 |
| | | */ |
| | | @TableField("send_time") |
| | | private Date sendTime; |
| | | /** |
| | | * 门槛金额 |
| | | */ |
| | | @TableField("money_threshold") |
| | | private BigDecimal moneyThreshold; |
| | | /** |
| | | * 折扣金额 |
| | | */ |
| | | @TableField("dicount_money") |
| | | private BigDecimal dicountMoney; |
| | | /** |
| | | * 折扣百分比 |
| | | */ |
| | | @TableField("discout_percent") |
| | | private BigDecimal discoutPercent; |
| | | /** |
| | | * 使用范围1.全场2.指定商品 |
| | | */ |
| | | @TableField("use_scope") |
| | | private Integer useScope; |
| | | /** |
| | | * 有效期类型 |
| | | */ |
| | | @TableField("valid_time_type") |
| | | private Integer validTimeType; |
| | | /** |
| | | * 有效开始时间 |
| | | */ |
| | | @TableField("valid_start_time") |
| | | private Date validStartTime; |
| | | /** |
| | | * 有效截止时间 |
| | | */ |
| | | @TableField("valid_end_time") |
| | | private Date validEndTime; |
| | | /** |
| | | * 有效期 |
| | | */ |
| | | @TableField("valid_day") |
| | | private Integer validDay; |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | @TableField("create_user_id") |
| | | private Long createUserId; |
| | | @TableField("update_time") |
| | | private Date updateTime; |
| | | @TableField("update_user_id") |
| | | private Long updateUserId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.couponId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.coupon; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券商品关联 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_coupon_rel_goods") |
| | | public class CouponRelGoods extends Model<CouponRelGoods> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 关联id |
| | | */ |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 优惠券id |
| | | */ |
| | | @TableField("coupon_id") |
| | | private String couponId; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @TableField("goods_id") |
| | | private String goodsId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.coupon; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券用户关联 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_coupon_rel_user") |
| | | public class CouponRelUser extends Model<CouponRelUser> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 关联id |
| | | */ |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 优惠券id |
| | | */ |
| | | @TableField("coupon_id") |
| | | private String couponId; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.coupon; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券统计 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_coupon_total") |
| | | public class CouponTotal extends Model<CouponTotal> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 优惠券id |
| | | */ |
| | | @TableId("coupon_id") |
| | | private String couponId; |
| | | /** |
| | | * 优惠券发放数量 |
| | | */ |
| | | @TableField("send_count") |
| | | private Integer sendCount; |
| | | /** |
| | | * 优惠券发放人数 |
| | | */ |
| | | @TableField("send_user_count") |
| | | private Integer sendUserCount; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.couponId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.goods; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品表 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_goods") |
| | | public class Goods extends Model<Goods> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @TableId("goods_id") |
| | | private String goodsId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 商品状态-1删除1上架2下架 |
| | | */ |
| | | @TableField("goods_status") |
| | | private Integer goodsStatus; |
| | | /** |
| | | * 商品类型1周期2服务3体验4单品 |
| | | */ |
| | | @TableField("goods_type") |
| | | private Integer goodsType; |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | @TableField("create_user_id") |
| | | private Long createUserId; |
| | | @TableField("update_time") |
| | | private Date updateTime; |
| | | @TableField("update_user_id") |
| | | private Long updateUserId; |
| | | /** |
| | | * 商品分类id |
| | | */ |
| | | @TableField("goods_class_id") |
| | | private Long goodsClassId; |
| | | /** |
| | | * 商品名称 |
| | | */ |
| | | @TableField("goods_name") |
| | | private String goodsName; |
| | | /** |
| | | * 周期次数标记0否1是 |
| | | */ |
| | | @TableField("cycle_num_flag") |
| | | private Integer cycleNumFlag; |
| | | /** |
| | | * 服务次数 |
| | | */ |
| | | @TableField("service_num") |
| | | private Integer serviceNum; |
| | | /** |
| | | * 商品简介 |
| | | */ |
| | | @TableField("goods_introduction") |
| | | private String goodsIntroduction; |
| | | /** |
| | | * 建议售价 |
| | | */ |
| | | @TableField("sales_price") |
| | | private BigDecimal salesPrice; |
| | | /** |
| | | * 最低售价 |
| | | */ |
| | | @TableField("mininum_price") |
| | | private BigDecimal mininumPrice; |
| | | /** |
| | | * 订金标记0否1是 |
| | | */ |
| | | @TableField("subscription_flag") |
| | | private Integer subscriptionFlag; |
| | | /** |
| | | * 订金 |
| | | */ |
| | | private BigDecimal subscription; |
| | | /** |
| | | * 商品详情 |
| | | */ |
| | | @TableField("goods_detail") |
| | | private String goodsDetail; |
| | | /** |
| | | * 是否推荐0否1是 |
| | | */ |
| | | @TableField("recommend_flag") |
| | | private Integer recommendFlag; |
| | | /** |
| | | * 商品调理问题 |
| | | */ |
| | | @TableField("goods_nurses") |
| | | private String goodsNurses; |
| | | /** |
| | | * 商品标签 |
| | | */ |
| | | @TableField("goods_tags") |
| | | private String goodsTags; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.goodsId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.goods; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品图片 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_goods_file") |
| | | public class GoodsFile extends Model<GoodsFile> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @TableField("goods_id") |
| | | private String goodsId; |
| | | /** |
| | | * 图片类型1封面2视频3banner |
| | | */ |
| | | @TableField("file_type") |
| | | private Integer fileType; |
| | | /** |
| | | * 图片地址 |
| | | */ |
| | | @TableField("file_url") |
| | | private String fileUrl; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.goods; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品调理问题 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_goods_rel_nurse") |
| | | public class GoodsRelNurse extends Model<GoodsRelNurse> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @TableField("goods_id") |
| | | private String goodsId; |
| | | /** |
| | | * 调理问题id |
| | | */ |
| | | private String nurse; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.goods; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品标签 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_goods_rel_tag") |
| | | public class GoodsRelTag extends Model<GoodsRelTag> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | @TableField("goods_id") |
| | | private String goodsId; |
| | | @TableField("tag_id") |
| | | private Long tagId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.goods; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品统计 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_goods_total") |
| | | public class GoodsTotal extends Model<GoodsTotal> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId("goods_id") |
| | | private String goodsId; |
| | | /** |
| | | * 购买次数统计 |
| | | */ |
| | | @TableField("buy_count") |
| | | private Integer buyCount; |
| | | /** |
| | | * 购买数量统计 |
| | | */ |
| | | @TableField("buy_num_count") |
| | | private Integer buyNumCount; |
| | | /** |
| | | * 购买人数统计 |
| | | */ |
| | | @TableField("buy_user_count") |
| | | private Integer buyUserCount; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.goodsId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.member; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 小程序用户 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_member") |
| | | public class Member extends Model<Member> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @TableId(value = "user_id",type = IdType.AUTO) |
| | | private Long userId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 会员id |
| | | */ |
| | | @TableField("member_id") |
| | | private String memberId; |
| | | /** |
| | | * 会员编号 |
| | | */ |
| | | @TableField("member_no") |
| | | private String memberNo; |
| | | /** |
| | | * 微信openid |
| | | */ |
| | | @TableField("wx_openid") |
| | | private String wxOpenid; |
| | | /** |
| | | * 小程序openid |
| | | */ |
| | | @TableField("mini_openid") |
| | | private String miniOpenid; |
| | | /** |
| | | * 微信unionid |
| | | */ |
| | | @TableField("wx_unionid") |
| | | private String wxUnionid; |
| | | /** |
| | | * 关联商户id |
| | | */ |
| | | @TableField("realtion_shop_id") |
| | | private Long realtionShopId; |
| | | /** |
| | | * 真实姓名 |
| | | */ |
| | | @TableField("real_name") |
| | | private String realName; |
| | | /** |
| | | * 手机号 |
| | | */ |
| | | private String mobile; |
| | | /** |
| | | * 性别0未知1男2女 |
| | | */ |
| | | private Integer gender; |
| | | /** |
| | | * 推荐人 |
| | | */ |
| | | private String referrer; |
| | | /** |
| | | * 顾客来源 |
| | | */ |
| | | @TableField("customer_source") |
| | | private String customerSource; |
| | | /** |
| | | * 等级 |
| | | */ |
| | | private String level; |
| | | /** |
| | | * 生日 |
| | | */ |
| | | private String birthday; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @TableField("update_time") |
| | | private Date updateTime; |
| | | /** |
| | | * 更新用户id |
| | | */ |
| | | @TableField("update_user_id") |
| | | private Long updateUserId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.userId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.member; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 会员档案信息 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_member_archive") |
| | | public class MemberArchive extends Model<MemberArchive> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | /** |
| | | * 字段id |
| | | */ |
| | | @TableField("field_id") |
| | | private Long fieldId; |
| | | /** |
| | | * 值 |
| | | */ |
| | | @TableField("field_value") |
| | | private String fieldValue; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.member; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 档案字段 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_member_archive_fields") |
| | | public class MemberArchiveFields extends Model<MemberArchiveFields> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private String delFlag; |
| | | /** |
| | | * 字段名称 |
| | | */ |
| | | @TableField("field_name") |
| | | private String fieldName; |
| | | /** |
| | | * 字段类型1.文字输入2.数字输入3.字母输入4.无限制输入5.年月日选择6.选项 |
| | | */ |
| | | @TableField("field_type") |
| | | private Integer fieldType; |
| | | /** |
| | | * 是否必填0否1是 |
| | | */ |
| | | @TableField("required_flag") |
| | | private Integer requiredFlag; |
| | | /** |
| | | * 字段排序 |
| | | */ |
| | | @TableField("field_sort") |
| | | private String fieldSort; |
| | | /** |
| | | * 输入提示 |
| | | */ |
| | | @TableField("input_tip") |
| | | private String inputTip; |
| | | /** |
| | | * 选项集合 |
| | | */ |
| | | @TableField("option_values") |
| | | private String optionValues; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.member; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 用户调理问题 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_member_nurse") |
| | | public class MemberNurse extends Model<MemberNurse> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | /** |
| | | * 调理问题 |
| | | */ |
| | | private String nurse; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.member; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 用户关联优惠券 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_user_coupon") |
| | | public class UserCoupon extends Model<UserCoupon> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 优惠券id |
| | | */ |
| | | @TableField("coupon_id") |
| | | private String couponId; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | /** |
| | | * 优惠券类型1.满减2.折扣3.代金4.商品 |
| | | */ |
| | | @TableField("coupon_type") |
| | | private Integer couponType; |
| | | /** |
| | | * 优惠券状态-1删除0已过期1已领取2已使用 |
| | | */ |
| | | @TableField("coupon_status") |
| | | private Integer couponStatus; |
| | | /** |
| | | * 优惠券名称 |
| | | */ |
| | | @TableField("coupon_name") |
| | | private String couponName; |
| | | /** |
| | | * 发送类型1.手动领取2.全部用户3.会员用户4非会员用户5自定义 |
| | | */ |
| | | @TableField("send_type") |
| | | private Integer sendType; |
| | | /** |
| | | * 发送时间类型1立即2定时 |
| | | */ |
| | | @TableField("send_time_type") |
| | | private Integer sendTimeType; |
| | | /** |
| | | * 发送时间 |
| | | */ |
| | | @TableField("send_time") |
| | | private Date sendTime; |
| | | /** |
| | | * 门槛金额 |
| | | */ |
| | | @TableField("money_threshold") |
| | | private BigDecimal moneyThreshold; |
| | | /** |
| | | * 折扣金额 |
| | | */ |
| | | @TableField("dicount_money") |
| | | private BigDecimal dicountMoney; |
| | | /** |
| | | * 折扣百分比 |
| | | */ |
| | | @TableField("discout_percent") |
| | | private BigDecimal discoutPercent; |
| | | /** |
| | | * 使用范围1.全场2.指定商品 |
| | | */ |
| | | @TableField("use_scope") |
| | | private Integer useScope; |
| | | /** |
| | | * 有效期类型 |
| | | */ |
| | | @TableField("valid_time_type") |
| | | private Integer validTimeType; |
| | | /** |
| | | * 有效开始时间 |
| | | */ |
| | | @TableField("valid_start_time") |
| | | private Date validStartTime; |
| | | /** |
| | | * 有效截止时间 |
| | | */ |
| | | @TableField("valid_end_time") |
| | | private Date validEndTime; |
| | | /** |
| | | * 有效期 |
| | | */ |
| | | @TableField("valid_day") |
| | | private Integer validDay; |
| | | /** |
| | | * 获取时间 |
| | | */ |
| | | @TableField("receive_time") |
| | | private Date receiveTime; |
| | | /** |
| | | * 使用时间 |
| | | */ |
| | | @TableField("user_time") |
| | | private Date userTime; |
| | | /** |
| | | * 使用有效期 |
| | | */ |
| | | @TableField("deadline_time") |
| | | private Date deadlineTime; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.order; |
| | | |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_consumer_goods") |
| | | public class ConsumerGoods extends Model<ConsumerGoods> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 服务id |
| | | */ |
| | | @TableId("consumer_goods_id") |
| | | private String consumerGoodsId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 服务状态-1删除1未完成2完成 |
| | | */ |
| | | @TableField("service_status") |
| | | private Integer serviceStatus; |
| | | /** |
| | | * 商户id |
| | | */ |
| | | @TableField("shop_id") |
| | | private Long shopId; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | /** |
| | | * 订单id |
| | | */ |
| | | @TableField("order_id") |
| | | private String orderId; |
| | | /** |
| | | * 订单商品id |
| | | */ |
| | | @TableField("order_goods_id") |
| | | private String orderGoodsId; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @TableField("goods_id") |
| | | private String goodsId; |
| | | /** |
| | | * 商品名称 |
| | | */ |
| | | @TableField("goods_name") |
| | | private String goodsName; |
| | | /** |
| | | * 周期标记 |
| | | */ |
| | | @TableField("cycle_num_flag") |
| | | private Integer cycleNumFlag; |
| | | /** |
| | | * 服务次数 |
| | | */ |
| | | @TableField("service_num") |
| | | private Integer serviceNum; |
| | | /** |
| | | * 消耗次数 |
| | | */ |
| | | @TableField("used_num") |
| | | private Integer usedNum; |
| | | /** |
| | | * 完成时间 |
| | | */ |
| | | @TableField("complete_time") |
| | | private Date completeTime; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | /** |
| | | * 使用时间 |
| | | */ |
| | | @TableField("use_time") |
| | | private String useTime; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.consumerGoodsId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.order; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 订单 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_order") |
| | | public class Order extends Model<Order> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 订单id |
| | | */ |
| | | @TableId("order_id") |
| | | private String orderId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 订单状态-1.删除0.已取消1.待支付2.待核销3.已完成 |
| | | */ |
| | | @TableField("order_status") |
| | | private Integer orderStatus; |
| | | /** |
| | | * 订单编号 |
| | | */ |
| | | @TableField("order_no") |
| | | private String orderNo; |
| | | /** |
| | | * 订单来源1.商城2.秒杀活动3.线下创建 |
| | | */ |
| | | @TableField("order_from") |
| | | private Integer orderFrom; |
| | | /** |
| | | * 商户id |
| | | */ |
| | | @TableField("shop_id") |
| | | private Long shopId; |
| | | /** |
| | | * 购买用户id |
| | | */ |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | /** |
| | | * 订单金额 |
| | | */ |
| | | @TableField("order_money") |
| | | private BigDecimal orderMoney; |
| | | /** |
| | | * 优惠券金额 |
| | | */ |
| | | @TableField("coupon_money") |
| | | private BigDecimal couponMoney; |
| | | /** |
| | | * 优惠金额 |
| | | */ |
| | | @TableField("discount_money") |
| | | private BigDecimal discountMoney; |
| | | /** |
| | | * 应收金额 |
| | | */ |
| | | @TableField("receivable_money") |
| | | private BigDecimal receivableMoney; |
| | | /** |
| | | * 支付类型1.全款2.订金 |
| | | */ |
| | | @TableField("pay_type") |
| | | private Integer payType; |
| | | /** |
| | | * 支付金额 |
| | | */ |
| | | @TableField("pay_money") |
| | | private BigDecimal payMoney; |
| | | /** |
| | | * 线上支付金额 |
| | | */ |
| | | @TableField("online_pay_money") |
| | | private BigDecimal onlinePayMoney; |
| | | /** |
| | | * 线下支付金额 |
| | | */ |
| | | @TableField("offline_pay_money") |
| | | private BigDecimal offlinePayMoney; |
| | | /** |
| | | * 订单备注 |
| | | */ |
| | | @TableField("order_remark") |
| | | private String orderRemark; |
| | | /** |
| | | * 商品信息 |
| | | */ |
| | | @TableField("goods_info") |
| | | private String goodsInfo; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | /** |
| | | * 支付时间 |
| | | */ |
| | | @TableField("pay_time") |
| | | private Date payTime; |
| | | /** |
| | | * 核销时间 |
| | | */ |
| | | @TableField("use_time") |
| | | private Date useTime; |
| | | /** |
| | | * 取消时间 |
| | | */ |
| | | @TableField("cancel_time") |
| | | private Date cancelTime; |
| | | /** |
| | | * 核销用户id |
| | | */ |
| | | @TableField("use_user_id") |
| | | private Long useUserId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.orderId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.order; |
| | | |
| | | import java.math.BigDecimal; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 订单商品 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_order_goods") |
| | | public class OrderGoods extends Model<OrderGoods> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 订单商品id |
| | | */ |
| | | @TableId("order_goods_id") |
| | | private String orderGoodsId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 订单id |
| | | */ |
| | | @TableField("order_id") |
| | | private String orderId; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @TableField("goods_id") |
| | | private String goodsId; |
| | | /** |
| | | * 购买数量 |
| | | */ |
| | | @TableField("buy_num") |
| | | private Integer buyNum; |
| | | /** |
| | | * 优惠券id |
| | | */ |
| | | @TableField("coupon_id") |
| | | private String couponId; |
| | | /** |
| | | * 商品售价 |
| | | */ |
| | | @TableField("goods_price") |
| | | private BigDecimal goodsPrice; |
| | | /** |
| | | * 商品总价 |
| | | */ |
| | | @TableField("goods_total_money") |
| | | private BigDecimal goodsTotalMoney; |
| | | /** |
| | | * 商品应收金额 |
| | | */ |
| | | @TableField("goods_receivable_money") |
| | | private BigDecimal goodsReceivableMoney; |
| | | /** |
| | | * 周期次数标记 |
| | | */ |
| | | @TableField("cycle_num_flag") |
| | | private Integer cycleNumFlag; |
| | | /** |
| | | * 服务次数 |
| | | */ |
| | | @TableField("service_num") |
| | | private Integer serviceNum; |
| | | /** |
| | | * 商品类型1周期2服务3体验4单品 |
| | | */ |
| | | @TableField("goods_type") |
| | | private Integer goodsType; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.orderGoodsId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.order; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 购物车 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_shopping_cart") |
| | | public class ShoppingCart extends Model<ShoppingCart> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记0否1是 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | /** |
| | | * 商户id |
| | | */ |
| | | @TableField("shop_id") |
| | | private Long shopId; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @TableField("goods_id") |
| | | private String goodsId; |
| | | /** |
| | | * 购买数量 |
| | | */ |
| | | @TableField("buy_num") |
| | | private Integer buyNum; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @TableField("update_time") |
| | | private Date updateTime; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.order; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务记录 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_user_service_record") |
| | | public class UserServiceRecord extends Model<UserServiceRecord> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | /** |
| | | * 服务id |
| | | */ |
| | | @TableField("consumer_goods_ids") |
| | | private String consumerGoodsIds; |
| | | /** |
| | | * 服务名称 |
| | | */ |
| | | @TableField("consumer_goods_names") |
| | | private String consumerGoodsNames; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | /** |
| | | * 服务类型1.周期2.服务3.体验 |
| | | */ |
| | | @TableField("service_type") |
| | | private Integer serviceType; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.shop; |
| | | |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 会员跟进任务 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_member_task") |
| | | public class MemberTask extends Model<MemberTask> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId("task_id") |
| | | private String taskId; |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | @TableField("shop_id") |
| | | private Long shopId; |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | @TableField("task_date") |
| | | private Date taskDate; |
| | | @TableField("task_content") |
| | | private String taskContent; |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.taskId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.shop; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 会员跟进任务记录 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_member_task_record") |
| | | public class MemberTaskRecord extends Model<MemberTaskRecord> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 任务id |
| | | */ |
| | | @TableField("task_id") |
| | | private String taskId; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | /** |
| | | * 跟踪类型 |
| | | */ |
| | | @TableField("follow_type") |
| | | private Integer followType; |
| | | /** |
| | | * 电话时间 |
| | | */ |
| | | @TableField("call_time") |
| | | private Date callTime; |
| | | /** |
| | | * 跟踪内容 |
| | | */ |
| | | @TableField("follow_content") |
| | | private String followContent; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.shop; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户表 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_shop") |
| | | public class Shop extends Model<Shop> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 商户id |
| | | */ |
| | | @TableId(value = "shop_id", type = IdType.AUTO) |
| | | private Long shopId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 商户状态-1删除0冻结1正常2终止合作 |
| | | */ |
| | | @TableField("shop_status") |
| | | private Integer shopStatus; |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | @TableField("create_user_id") |
| | | private Long createUserId; |
| | | @TableField("update_time") |
| | | private Date updateTime; |
| | | @TableField("update_user_id") |
| | | private Long updateUserId; |
| | | /** |
| | | * 商户名称 |
| | | */ |
| | | @TableField("shop_name") |
| | | private String shopName; |
| | | /** |
| | | * 商户编号 |
| | | */ |
| | | @TableField("shop_number") |
| | | private String shopNumber; |
| | | /** |
| | | * 商户类型1.经销商2.代理商 |
| | | */ |
| | | @TableField("shop_type") |
| | | private Integer shopType; |
| | | /** |
| | | * 营业开始时间 |
| | | */ |
| | | @TableField("business_start_time") |
| | | private String businessStartTime; |
| | | /** |
| | | * 营业结束时间 |
| | | */ |
| | | @TableField("business_end_time") |
| | | private String businessEndTime; |
| | | /** |
| | | * 店主姓名 |
| | | */ |
| | | @TableField("shopowner_name") |
| | | private String shopownerName; |
| | | /** |
| | | * 店主联系方式 |
| | | */ |
| | | @TableField("shopowner_phone") |
| | | private String shopownerPhone; |
| | | /** |
| | | * 签约时间 |
| | | */ |
| | | @TableField("sign_time") |
| | | private Date signTime; |
| | | /** |
| | | * 签约省code |
| | | */ |
| | | @TableField("sign_province_code") |
| | | private String signProvinceCode; |
| | | /** |
| | | * 签约市code |
| | | */ |
| | | @TableField("sign_city_code") |
| | | private String signCityCode; |
| | | /** |
| | | * 签约区域code |
| | | */ |
| | | @TableField("sign_area_code") |
| | | private String signAreaCode; |
| | | /** |
| | | * 签约区域全称 |
| | | */ |
| | | @TableField("sign_area_name") |
| | | private String signAreaName; |
| | | /** |
| | | * 商户服务电话 |
| | | */ |
| | | @TableField("shop_service_phone") |
| | | private String shopServicePhone; |
| | | /** |
| | | * 归属员工 |
| | | */ |
| | | @TableField("belong_user_id") |
| | | private Long belongUserId; |
| | | /** |
| | | * 归属经销商 |
| | | */ |
| | | @TableField("belong_shop_id") |
| | | private Long belongShopId; |
| | | /** |
| | | * 扶持能力1.有2.没有 |
| | | */ |
| | | @TableField("supporting_capacity_flag") |
| | | private Integer supportingCapacityFlag; |
| | | /** |
| | | * 店面操作人数1.1人2.1人以上 |
| | | */ |
| | | @TableField("operation_person_flag") |
| | | private Integer operationPersonFlag; |
| | | /** |
| | | * 执行力1.强2.弱 |
| | | */ |
| | | @TableField("executive_force_flag") |
| | | private Integer executiveForceFlag; |
| | | /** |
| | | * 格局1.大2.小 |
| | | */ |
| | | @TableField("pattern_flag") |
| | | private Integer patternFlag; |
| | | /** |
| | | * 人脉1.宽2.窄 |
| | | */ |
| | | @TableField("connection_flag") |
| | | private Integer connectionFlag; |
| | | /** |
| | | * 经济能力1.强2.差 |
| | | */ |
| | | @TableField("economic_ability_flag") |
| | | private Integer economicAbilityFlag; |
| | | /** |
| | | * 与合作商关系1.好2.差 |
| | | */ |
| | | @TableField("relation_partner") |
| | | private Integer relationPartner; |
| | | /** |
| | | * 曾从事事业 |
| | | */ |
| | | @TableField("business_history") |
| | | private String businessHistory; |
| | | /** |
| | | * 店铺地址省code |
| | | */ |
| | | @TableField("shop_province_code") |
| | | private String shopProvinceCode; |
| | | /** |
| | | * 店铺地址市code |
| | | */ |
| | | @TableField("shop_city_code") |
| | | private String shopCityCode; |
| | | /** |
| | | * 店铺地址区code |
| | | */ |
| | | @TableField("shop_area_code") |
| | | private String shopAreaCode; |
| | | /** |
| | | * 店铺区域全称 |
| | | */ |
| | | @TableField("shop_area_name") |
| | | private String shopAreaName; |
| | | /** |
| | | * 店铺详细地址 |
| | | */ |
| | | @TableField("shop_address") |
| | | private String shopAddress; |
| | | /** |
| | | * 店铺经度 |
| | | */ |
| | | @TableField("shop_longitude") |
| | | private String shopLongitude; |
| | | /** |
| | | * 店铺维度 |
| | | */ |
| | | @TableField("shop_latitude") |
| | | private String shopLatitude; |
| | | /** |
| | | * 店铺详情 |
| | | */ |
| | | @TableField("shop_detail") |
| | | private String shopDetail; |
| | | /** |
| | | * 营销功能1开2关 |
| | | */ |
| | | @TableField("marketing_function_flag") |
| | | private Integer marketingFunctionFlag; |
| | | /** |
| | | * 领券1开2关 |
| | | */ |
| | | @TableField("platform_coupon_flag") |
| | | private Integer platformCouponFlag; |
| | | /** |
| | | * 生日卡1开2关 |
| | | */ |
| | | @TableField("platform_birthday_flag") |
| | | private Integer platformBirthdayFlag; |
| | | /** |
| | | * 店铺设置状态 |
| | | */ |
| | | @TableField("shop_custom_status") |
| | | private String shopCustomStatus; |
| | | /** |
| | | * 推荐人 |
| | | */ |
| | | @TableField("recommend_person") |
| | | private String recommendPerson; |
| | | /** |
| | | * 合作截止时间 |
| | | */ |
| | | @TableField("cooperation_end_time") |
| | | private Date cooperationEndTime; |
| | | /** |
| | | * 合作开始时间 |
| | | */ |
| | | @TableField("cooperation_start_time") |
| | | private Date cooperationStartTime; |
| | | /** |
| | | * 商户标签 |
| | | */ |
| | | @TableField("shop_tags") |
| | | private String shopTags; |
| | | /** |
| | | * 签约人 |
| | | */ |
| | | @TableField("sign_user_id") |
| | | private Long signUserId; |
| | | /** |
| | | * 来源渠道 |
| | | */ |
| | | @TableField("shop_source") |
| | | private String shopSource; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.shopId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.shop; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户证书 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_shop_certificate") |
| | | public class ShopCertificate extends Model<ShopCertificate> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 证书id |
| | | */ |
| | | @TableId(value = "cer_id", type = IdType.AUTO) |
| | | private Long cerId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 证书状态-1删除0待审核1审核通过2审核拒绝 |
| | | */ |
| | | @TableField("cer_status") |
| | | private Integer cerStatus; |
| | | /** |
| | | * 商户id |
| | | */ |
| | | @TableField("shop_id") |
| | | private Long shopId; |
| | | /** |
| | | * 证书名字 |
| | | */ |
| | | @TableField("cer_name") |
| | | private String cerName; |
| | | /** |
| | | * 证书编号 |
| | | */ |
| | | @TableField("cer_number") |
| | | private String cerNumber; |
| | | /** |
| | | * 证书图片 |
| | | */ |
| | | @TableField("cer_picture") |
| | | private String cerPicture; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.cerId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.shop; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户图片 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_shop_file") |
| | | public class ShopFile extends Model<ShopFile> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 商户id |
| | | */ |
| | | @TableField("shop_id") |
| | | private Long shopId; |
| | | /** |
| | | * 文件类型1.封面2.图片 |
| | | */ |
| | | @TableField("file_type") |
| | | private Integer fileType; |
| | | /** |
| | | * 文件地址 |
| | | */ |
| | | @TableField("file_url") |
| | | private String fileUrl; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.shop; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户定制商品 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_shop_goods") |
| | | public class ShopGoods extends Model<ShopGoods> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 商户id |
| | | */ |
| | | @TableField("shop_id") |
| | | private Long shopId; |
| | | /** |
| | | * 商品id |
| | | */ |
| | | @TableField("goods_id") |
| | | private Long goodsId; |
| | | /** |
| | | * 商户售价 |
| | | */ |
| | | @TableField("sales_price") |
| | | private BigDecimal salesPrice; |
| | | /** |
| | | * 商户服务次数 |
| | | */ |
| | | @TableField("service_num") |
| | | private Integer serviceNum; |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @TableField("update_time") |
| | | private Date updateTime; |
| | | /** |
| | | * 更新用户id |
| | | */ |
| | | @TableField("update_user_id") |
| | | private Long updateUserId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.shop; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户营销 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_shop_marketing") |
| | | public class ShopMarketing extends Model<ShopMarketing> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "shop_id", type = IdType.AUTO) |
| | | private Long shopId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 店铺生日活动开关1开2关 |
| | | */ |
| | | @TableField("shop_birthday_flag") |
| | | private Integer shopBirthdayFlag; |
| | | /** |
| | | * 领卷活动次数 |
| | | */ |
| | | @TableField("shop_coupon_count") |
| | | private Integer shopCouponCount; |
| | | /** |
| | | * 营销活动总计 |
| | | */ |
| | | @TableField("shop_marketing_total") |
| | | private Integer shopMarketingTotal; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.shopId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.shop; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户标签 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_shop_rel_tag") |
| | | public class ShopRelTag extends Model<ShopRelTag> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 商户id |
| | | */ |
| | | @TableField("shop_id") |
| | | private Long shopId; |
| | | /** |
| | | * 标签id |
| | | */ |
| | | @TableField("tag_id") |
| | | private Long tagId; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.shop; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户关联员工 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_shop_rel_user") |
| | | public class ShopRelUser extends Model<ShopRelUser> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 商户id |
| | | */ |
| | | @TableField("shop_id") |
| | | private Long shopId; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | @TableField("user_id") |
| | | private Long userId; |
| | | /** |
| | | * 用户手机 |
| | | */ |
| | | @TableField("user_mobile") |
| | | private String userMobile; |
| | | /** |
| | | * 用户部门id |
| | | */ |
| | | @TableField("user_dept_id") |
| | | private Long userDeptId; |
| | | /** |
| | | * 用户姓名 |
| | | */ |
| | | @TableField("user_name") |
| | | private String userName; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.shop; |
| | | |
| | | import java.util.Date; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户跟进任务 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_shop_task") |
| | | public class ShopTask extends Model<ShopTask> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId("task_id") |
| | | private String taskId; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 商户id |
| | | */ |
| | | @TableField("shop_id") |
| | | private Long shopId; |
| | | /** |
| | | * 跟进类型id |
| | | */ |
| | | @TableField("follow_type_id") |
| | | private Long followTypeId; |
| | | /** |
| | | * 跟进内容 |
| | | */ |
| | | @TableField("follow_content") |
| | | private String followContent; |
| | | /** |
| | | * 下次跟进时间 |
| | | */ |
| | | @TableField("next_follow_date") |
| | | private Date nextFollowDate; |
| | | /** |
| | | * 任务标题 |
| | | */ |
| | | @TableField("task_title") |
| | | private String taskTitle; |
| | | /** |
| | | * 紧急情况id |
| | | */ |
| | | @TableField("emergency_state_id") |
| | | private Long emergencyStateId; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | private Date createTime; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.taskId; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.shop; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户员工转移记录 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_shop_transfer_record") |
| | | public class ShopTransferRecord extends Model<ShopTransferRecord> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 商户id |
| | | */ |
| | | @TableField("shop_id") |
| | | private Long shopId; |
| | | /** |
| | | * 转移前用户id |
| | | */ |
| | | @TableField("before_user_id") |
| | | private Long beforeUserId; |
| | | /** |
| | | * 转移后用户id |
| | | */ |
| | | @TableField("after_user_id") |
| | | private Long afterUserId; |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @TableField("transfer_remark") |
| | | private String transferRemark; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.shop; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 跟进附件 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @Accessors(chain = true) |
| | | @TableName("t_task_file") |
| | | public class TaskFile extends Model<TaskFile> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 删除标记 |
| | | */ |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | /** |
| | | * 跟进id |
| | | */ |
| | | @TableField("follow_id") |
| | | private Long followId; |
| | | /** |
| | | * 跟进来源1商户2客户 |
| | | */ |
| | | @TableField("follow_from") |
| | | private Integer followFrom; |
| | | /** |
| | | * 文件地址 |
| | | */ |
| | | @TableField("file_url") |
| | | private String fileUrl; |
| | | /** |
| | | * 文件类型1.图片2.视频3.音频 |
| | | */ |
| | | @TableField("file_type") |
| | | private Integer fileType; |
| | | |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.sys; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.Size; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.ruoyi.common.core.annotation.Excel; |
| | | import com.ruoyi.common.core.annotation.Excel.ColumnType; |
| | | import com.ruoyi.common.core.web.domain.BaseEntity; |
| | | |
| | | /** |
| | | * 参数配置表 sys_config |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class SysConfig extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 参数主键 */ |
| | | @Excel(name = "参数主键", cellType = ColumnType.NUMERIC) |
| | | private Long configId; |
| | | |
| | | /** 参数名称 */ |
| | | @Excel(name = "参数名称") |
| | | private String configName; |
| | | |
| | | /** 参数键名 */ |
| | | @Excel(name = "参数键名") |
| | | private String configKey; |
| | | |
| | | /** 参数键值 */ |
| | | @Excel(name = "参数键值") |
| | | private String configValue; |
| | | |
| | | /** 系统内置(Y是 N否) */ |
| | | @Excel(name = "系统内置", readConverterExp = "Y=是,N=否") |
| | | private String configType; |
| | | |
| | | public Long getConfigId() |
| | | { |
| | | return configId; |
| | | } |
| | | |
| | | public void setConfigId(Long configId) |
| | | { |
| | | this.configId = configId; |
| | | } |
| | | |
| | | @NotBlank(message = "参数名称不能为空") |
| | | @Size(min = 0, max = 100, message = "参数名称不能超过100个字符") |
| | | public String getConfigName() |
| | | { |
| | | return configName; |
| | | } |
| | | |
| | | public void setConfigName(String configName) |
| | | { |
| | | this.configName = configName; |
| | | } |
| | | |
| | | @NotBlank(message = "参数键名长度不能为空") |
| | | @Size(min = 0, max = 100, message = "参数键名长度不能超过100个字符") |
| | | public String getConfigKey() |
| | | { |
| | | return configKey; |
| | | } |
| | | |
| | | public void setConfigKey(String configKey) |
| | | { |
| | | this.configKey = configKey; |
| | | } |
| | | |
| | | @NotBlank(message = "参数键值不能为空") |
| | | @Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符") |
| | | public String getConfigValue() |
| | | { |
| | | return configValue; |
| | | } |
| | | |
| | | public void setConfigValue(String configValue) |
| | | { |
| | | this.configValue = configValue; |
| | | } |
| | | |
| | | public String getConfigType() |
| | | { |
| | | return configType; |
| | | } |
| | | |
| | | public void setConfigType(String configType) |
| | | { |
| | | this.configType = configType; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("configId", getConfigId()) |
| | | .append("configName", getConfigName()) |
| | | .append("configKey", getConfigKey()) |
| | | .append("configValue", getConfigValue()) |
| | | .append("configType", getConfigType()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("remark", getRemark()) |
| | | .toString(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.sys; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.Size; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.ruoyi.common.core.web.domain.BaseEntity; |
| | | |
| | | /** |
| | | * 菜单权限表 sys_menu |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class SysMenu extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 菜单ID */ |
| | | private Long menuId; |
| | | |
| | | /** 菜单名称 */ |
| | | private String menuName; |
| | | |
| | | /** 父菜单名称 */ |
| | | private String parentName; |
| | | |
| | | /** 父菜单ID */ |
| | | private Long parentId; |
| | | |
| | | /** 显示顺序 */ |
| | | private Integer orderNum; |
| | | |
| | | /** 路由地址 */ |
| | | private String path; |
| | | |
| | | /** 组件路径 */ |
| | | private String component; |
| | | |
| | | /** 路由参数 */ |
| | | private String query; |
| | | |
| | | /** 是否为外链(0是 1否) */ |
| | | private String isFrame; |
| | | |
| | | /** 是否缓存(0缓存 1不缓存) */ |
| | | private String isCache; |
| | | |
| | | /** 类型(M目录 C菜单 F按钮) */ |
| | | private String menuType; |
| | | |
| | | /** 显示状态(0显示 1隐藏) */ |
| | | private String visible; |
| | | |
| | | /** 菜单状态(0正常 1停用) */ |
| | | private String status; |
| | | |
| | | /** 权限字符串 */ |
| | | private String perms; |
| | | |
| | | /** 菜单图标 */ |
| | | private String icon; |
| | | |
| | | /** 子菜单 */ |
| | | private List<SysMenu> children = new ArrayList<SysMenu>(); |
| | | |
| | | public Long getMenuId() |
| | | { |
| | | return menuId; |
| | | } |
| | | |
| | | public void setMenuId(Long menuId) |
| | | { |
| | | this.menuId = menuId; |
| | | } |
| | | |
| | | @NotBlank(message = "菜单名称不能为空") |
| | | @Size(min = 0, max = 50, message = "菜单名称长度不能超过50个字符") |
| | | public String getMenuName() |
| | | { |
| | | return menuName; |
| | | } |
| | | |
| | | public void setMenuName(String menuName) |
| | | { |
| | | this.menuName = menuName; |
| | | } |
| | | |
| | | public String getParentName() |
| | | { |
| | | return parentName; |
| | | } |
| | | |
| | | public void setParentName(String parentName) |
| | | { |
| | | this.parentName = parentName; |
| | | } |
| | | |
| | | public Long getParentId() |
| | | { |
| | | return parentId; |
| | | } |
| | | |
| | | public void setParentId(Long parentId) |
| | | { |
| | | this.parentId = parentId; |
| | | } |
| | | |
| | | @NotNull(message = "显示顺序不能为空") |
| | | public Integer getOrderNum() |
| | | { |
| | | return orderNum; |
| | | } |
| | | |
| | | public void setOrderNum(Integer orderNum) |
| | | { |
| | | this.orderNum = orderNum; |
| | | } |
| | | |
| | | @Size(min = 0, max = 200, message = "路由地址不能超过200个字符") |
| | | public String getPath() |
| | | { |
| | | return path; |
| | | } |
| | | |
| | | public void setPath(String path) |
| | | { |
| | | this.path = path; |
| | | } |
| | | |
| | | @Size(min = 0, max = 200, message = "组件路径不能超过255个字符") |
| | | public String getComponent() |
| | | { |
| | | return component; |
| | | } |
| | | |
| | | public void setComponent(String component) |
| | | { |
| | | this.component = component; |
| | | } |
| | | |
| | | public String getQuery() |
| | | { |
| | | return query; |
| | | } |
| | | |
| | | public void setQuery(String query) |
| | | { |
| | | this.query = query; |
| | | } |
| | | |
| | | public String getIsFrame() |
| | | { |
| | | return isFrame; |
| | | } |
| | | |
| | | public void setIsFrame(String isFrame) |
| | | { |
| | | this.isFrame = isFrame; |
| | | } |
| | | |
| | | public String getIsCache() |
| | | { |
| | | return isCache; |
| | | } |
| | | |
| | | public void setIsCache(String isCache) |
| | | { |
| | | this.isCache = isCache; |
| | | } |
| | | |
| | | @NotBlank(message = "菜单类型不能为空") |
| | | public String getMenuType() |
| | | { |
| | | return menuType; |
| | | } |
| | | |
| | | public void setMenuType(String menuType) |
| | | { |
| | | this.menuType = menuType; |
| | | } |
| | | |
| | | public String getVisible() |
| | | { |
| | | return visible; |
| | | } |
| | | |
| | | public void setVisible(String visible) |
| | | { |
| | | this.visible = visible; |
| | | } |
| | | |
| | | public String getStatus() |
| | | { |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(String status) |
| | | { |
| | | this.status = status; |
| | | } |
| | | |
| | | @Size(min = 0, max = 100, message = "权限标识长度不能超过100个字符") |
| | | public String getPerms() |
| | | { |
| | | return perms; |
| | | } |
| | | |
| | | public void setPerms(String perms) |
| | | { |
| | | this.perms = perms; |
| | | } |
| | | |
| | | public String getIcon() |
| | | { |
| | | return icon; |
| | | } |
| | | |
| | | public void setIcon(String icon) |
| | | { |
| | | this.icon = icon; |
| | | } |
| | | |
| | | public List<SysMenu> getChildren() |
| | | { |
| | | return children; |
| | | } |
| | | |
| | | public void setChildren(List<SysMenu> children) |
| | | { |
| | | this.children = children; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("menuId", getMenuId()) |
| | | .append("menuName", getMenuName()) |
| | | .append("parentId", getParentId()) |
| | | .append("orderNum", getOrderNum()) |
| | | .append("path", getPath()) |
| | | .append("component", getComponent()) |
| | | .append("isFrame", getIsFrame()) |
| | | .append("IsCache", getIsCache()) |
| | | .append("menuType", getMenuType()) |
| | | .append("visible", getVisible()) |
| | | .append("status ", getStatus()) |
| | | .append("perms", getPerms()) |
| | | .append("icon", getIcon()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("remark", getRemark()) |
| | | .toString(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.sys; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.Size; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.ruoyi.common.core.web.domain.BaseEntity; |
| | | import com.ruoyi.common.core.xss.Xss; |
| | | |
| | | /** |
| | | * 通知公告表 sys_notice |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class SysNotice extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 公告ID */ |
| | | private Long noticeId; |
| | | |
| | | /** 公告标题 */ |
| | | private String noticeTitle; |
| | | |
| | | /** 公告类型(1通知 2公告) */ |
| | | private String noticeType; |
| | | |
| | | /** 公告内容 */ |
| | | private String noticeContent; |
| | | |
| | | /** 公告状态(0正常 1关闭) */ |
| | | private String status; |
| | | |
| | | public Long getNoticeId() |
| | | { |
| | | return noticeId; |
| | | } |
| | | |
| | | public void setNoticeId(Long noticeId) |
| | | { |
| | | this.noticeId = noticeId; |
| | | } |
| | | |
| | | public void setNoticeTitle(String noticeTitle) |
| | | { |
| | | this.noticeTitle = noticeTitle; |
| | | } |
| | | |
| | | @Xss(message = "公告标题不能包含脚本字符") |
| | | @NotBlank(message = "公告标题不能为空") |
| | | @Size(min = 0, max = 50, message = "公告标题不能超过50个字符") |
| | | public String getNoticeTitle() |
| | | { |
| | | return noticeTitle; |
| | | } |
| | | |
| | | public void setNoticeType(String noticeType) |
| | | { |
| | | this.noticeType = noticeType; |
| | | } |
| | | |
| | | public String getNoticeType() |
| | | { |
| | | return noticeType; |
| | | } |
| | | |
| | | public void setNoticeContent(String noticeContent) |
| | | { |
| | | this.noticeContent = noticeContent; |
| | | } |
| | | |
| | | public String getNoticeContent() |
| | | { |
| | | return noticeContent; |
| | | } |
| | | |
| | | public void setStatus(String status) |
| | | { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getStatus() |
| | | { |
| | | return status; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("noticeId", getNoticeId()) |
| | | .append("noticeTitle", getNoticeTitle()) |
| | | .append("noticeType", getNoticeType()) |
| | | .append("noticeContent", getNoticeContent()) |
| | | .append("status", getStatus()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("remark", getRemark()) |
| | | .toString(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.sys; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.Size; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.ruoyi.common.core.annotation.Excel; |
| | | import com.ruoyi.common.core.annotation.Excel.ColumnType; |
| | | import com.ruoyi.common.core.web.domain.BaseEntity; |
| | | |
| | | /** |
| | | * 岗位表 sys_post |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class SysPost extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 岗位序号 */ |
| | | @Excel(name = "岗位序号", cellType = ColumnType.NUMERIC) |
| | | private Long postId; |
| | | |
| | | /** 岗位编码 */ |
| | | @Excel(name = "岗位编码") |
| | | private String postCode; |
| | | |
| | | /** 岗位名称 */ |
| | | @Excel(name = "岗位名称") |
| | | private String postName; |
| | | |
| | | /** 岗位排序 */ |
| | | @Excel(name = "岗位排序") |
| | | private Integer postSort; |
| | | |
| | | /** 状态(0正常 1停用) */ |
| | | @Excel(name = "状态", readConverterExp = "0=正常,1=停用") |
| | | private String status; |
| | | |
| | | /** 用户是否存在此岗位标识 默认不存在 */ |
| | | private boolean flag = false; |
| | | |
| | | public Long getPostId() |
| | | { |
| | | return postId; |
| | | } |
| | | |
| | | public void setPostId(Long postId) |
| | | { |
| | | this.postId = postId; |
| | | } |
| | | |
| | | @NotBlank(message = "岗位编码不能为空") |
| | | @Size(min = 0, max = 64, message = "岗位编码长度不能超过64个字符") |
| | | public String getPostCode() |
| | | { |
| | | return postCode; |
| | | } |
| | | |
| | | public void setPostCode(String postCode) |
| | | { |
| | | this.postCode = postCode; |
| | | } |
| | | |
| | | @NotBlank(message = "岗位名称不能为空") |
| | | @Size(min = 0, max = 50, message = "岗位名称长度不能超过50个字符") |
| | | public String getPostName() |
| | | { |
| | | return postName; |
| | | } |
| | | |
| | | public void setPostName(String postName) |
| | | { |
| | | this.postName = postName; |
| | | } |
| | | |
| | | @NotNull(message = "显示顺序不能为空") |
| | | public Integer getPostSort() |
| | | { |
| | | return postSort; |
| | | } |
| | | |
| | | public void setPostSort(Integer postSort) |
| | | { |
| | | this.postSort = postSort; |
| | | } |
| | | |
| | | public String getStatus() |
| | | { |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(String status) |
| | | { |
| | | this.status = status; |
| | | } |
| | | |
| | | public boolean isFlag() |
| | | { |
| | | return flag; |
| | | } |
| | | |
| | | public void setFlag(boolean flag) |
| | | { |
| | | this.flag = flag; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("postId", getPostId()) |
| | | .append("postCode", getPostCode()) |
| | | .append("postName", getPostName()) |
| | | .append("postSort", getPostSort()) |
| | | .append("status", getStatus()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("remark", getRemark()) |
| | | .toString(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.sys; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | /** |
| | | * 角色和部门关联 sys_role_dept |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class SysRoleDept |
| | | { |
| | | /** 角色ID */ |
| | | private Long roleId; |
| | | |
| | | /** 部门ID */ |
| | | private Long deptId; |
| | | |
| | | public Long getRoleId() |
| | | { |
| | | return roleId; |
| | | } |
| | | |
| | | public void setRoleId(Long roleId) |
| | | { |
| | | this.roleId = roleId; |
| | | } |
| | | |
| | | public Long getDeptId() |
| | | { |
| | | return deptId; |
| | | } |
| | | |
| | | public void setDeptId(Long deptId) |
| | | { |
| | | this.deptId = deptId; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("roleId", getRoleId()) |
| | | .append("deptId", getDeptId()) |
| | | .toString(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.sys; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | /** |
| | | * 角色和菜单关联 sys_role_menu |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class SysRoleMenu |
| | | { |
| | | /** 角色ID */ |
| | | private Long roleId; |
| | | |
| | | /** 菜单ID */ |
| | | private Long menuId; |
| | | |
| | | 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() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("roleId", getRoleId()) |
| | | .append("menuId", getMenuId()) |
| | | .toString(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.sys; |
| | | |
| | | /** |
| | | * 当前在线会话 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class SysUserOnline |
| | | { |
| | | /** 会话编号 */ |
| | | private String tokenId; |
| | | |
| | | /** 用户名称 */ |
| | | private String userName; |
| | | |
| | | /** 登录IP地址 */ |
| | | private String ipaddr; |
| | | |
| | | /** 登录地址 */ |
| | | private String loginLocation; |
| | | |
| | | /** 浏览器类型 */ |
| | | private String browser; |
| | | |
| | | /** 操作系统 */ |
| | | private String os; |
| | | |
| | | /** 登录时间 */ |
| | | private Long loginTime; |
| | | |
| | | public String getTokenId() |
| | | { |
| | | return tokenId; |
| | | } |
| | | |
| | | public void setTokenId(String tokenId) |
| | | { |
| | | this.tokenId = tokenId; |
| | | } |
| | | |
| | | public String getUserName() |
| | | { |
| | | return userName; |
| | | } |
| | | |
| | | public void setUserName(String userName) |
| | | { |
| | | this.userName = userName; |
| | | } |
| | | |
| | | public String getIpaddr() |
| | | { |
| | | return ipaddr; |
| | | } |
| | | |
| | | public void setIpaddr(String ipaddr) |
| | | { |
| | | this.ipaddr = ipaddr; |
| | | } |
| | | |
| | | public String getLoginLocation() |
| | | { |
| | | return loginLocation; |
| | | } |
| | | |
| | | public void setLoginLocation(String loginLocation) |
| | | { |
| | | this.loginLocation = loginLocation; |
| | | } |
| | | |
| | | public String getBrowser() |
| | | { |
| | | return browser; |
| | | } |
| | | |
| | | public void setBrowser(String browser) |
| | | { |
| | | this.browser = browser; |
| | | } |
| | | |
| | | public String getOs() |
| | | { |
| | | return os; |
| | | } |
| | | |
| | | public void setOs(String os) |
| | | { |
| | | this.os = os; |
| | | } |
| | | |
| | | public Long getLoginTime() |
| | | { |
| | | return loginTime; |
| | | } |
| | | |
| | | public void setLoginTime(Long loginTime) |
| | | { |
| | | this.loginTime = loginTime; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.sys; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | /** |
| | | * 用户和岗位关联 sys_user_post |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class SysUserPost |
| | | { |
| | | /** 用户ID */ |
| | | private Long userId; |
| | | |
| | | /** 岗位ID */ |
| | | private Long postId; |
| | | |
| | | public Long getUserId() |
| | | { |
| | | return userId; |
| | | } |
| | | |
| | | public void setUserId(Long userId) |
| | | { |
| | | this.userId = userId; |
| | | } |
| | | |
| | | public Long getPostId() |
| | | { |
| | | return postId; |
| | | } |
| | | |
| | | public void setPostId(Long postId) |
| | | { |
| | | this.postId = postId; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("userId", getUserId()) |
| | | .append("postId", getPostId()) |
| | | .toString(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.pojo.sys; |
| | | |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | /** |
| | | * 用户和角色关联 sys_user_role |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class SysUserRole |
| | | { |
| | | /** 用户ID */ |
| | | private Long userId; |
| | | |
| | | /** 角色ID */ |
| | | private Long roleId; |
| | | |
| | | public Long getUserId() |
| | | { |
| | | return userId; |
| | | } |
| | | |
| | | public void setUserId(Long userId) |
| | | { |
| | | this.userId = userId; |
| | | } |
| | | |
| | | public Long getRoleId() |
| | | { |
| | | return roleId; |
| | | } |
| | | |
| | | public void setRoleId(Long roleId) |
| | | { |
| | | this.roleId = roleId; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("userId", getUserId()) |
| | | .append("roleId", getRoleId()) |
| | | .toString(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.vo; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppQuickEntryVo |
| | | * @description: TODO |
| | | * @date 2023年04月20日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class AppAdvertVo { |
| | | |
| | | @ApiModelProperty(value = "广告入口") |
| | | private Long adId; |
| | | |
| | | @ApiModelProperty(value = "广告图片地址") |
| | | private String adUrl; |
| | | |
| | | @ApiModelProperty(value = "广告语") |
| | | private String adContent; |
| | | |
| | | @ApiModelProperty(value = "对象类型1.外链2.内链3.无") |
| | | private Integer targetType; |
| | | |
| | | @ApiModelProperty(value = "链接地址") |
| | | private String linkUrl; |
| | | |
| | | @ApiModelProperty(value = "跳转id") |
| | | private String jumpId; |
| | | |
| | | @ApiModelProperty(value = "logo地址") |
| | | private String logoUrl; |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.vo; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppAgreementVo |
| | | * @description: TODO |
| | | * @date 2023年03月07日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class AppAgreementVo { |
| | | |
| | | @ApiModelProperty(value = "协议id") |
| | | private Long agreementId; |
| | | |
| | | @ApiModelProperty(value = "协议内容") |
| | | private String agreementContent; |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.vo; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppBannerVo |
| | | * @description: TODO |
| | | * @date 2023年04月20日 |
| | | * @version: 1.0 |
| | | */ |
| | | |
| | | @Data |
| | | public class AppBannerVo { |
| | | |
| | | @ApiModelProperty(value = "bannerid") |
| | | private Long bannerId; |
| | | |
| | | @ApiModelProperty(value = "banner图片地址") |
| | | private String bannerUrl; |
| | | |
| | | @ApiModelProperty(value = "链接类型1.外部2.内部3.无") |
| | | private Integer targetType; |
| | | |
| | | @ApiModelProperty(value = "链接类型1.手动输入2.选择已有") |
| | | private Integer linkType; |
| | | |
| | | @ApiModelProperty(value = "链接地址") |
| | | private String linkUrl; |
| | | |
| | | @ApiModelProperty(value = "跳转类型1.门店详情2.秒杀活动3领券中心4.商城列表5.关于洪瑞堂") |
| | | private Integer jumpType; |
| | | |
| | | @ApiModelProperty(value = "跳转id") |
| | | private String jumpId; |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.vo; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppGoodsInfoVo |
| | | * @description: TODO |
| | | * @date 2023年04月20日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class AppGoodsInfoVo { |
| | | |
| | | @ApiModelProperty(value = "商品id") |
| | | private Long goodsId; |
| | | |
| | | @ApiModelProperty(value = "商品名称") |
| | | private String goodsName; |
| | | |
| | | @ApiModelProperty(value = "商品简介") |
| | | private String goodsIntroduction; |
| | | |
| | | @ApiModelProperty(value = "商品视频") |
| | | private String goodsVideo; |
| | | |
| | | @ApiModelProperty(value = "商品banner") |
| | | private String goodsBanners; |
| | | |
| | | @ApiModelProperty(value = "商品类型1周期2服务3体验4单品") |
| | | private Integer goodsType; |
| | | |
| | | @ApiModelProperty(value = "商品标签") |
| | | private String goodsTag; |
| | | |
| | | @ApiModelProperty(value = "商品调理问题") |
| | | private BigDecimal goodsNurses; |
| | | |
| | | @ApiModelProperty("服务次数") |
| | | private Integer serviceNum; |
| | | |
| | | @ApiModelProperty(value = "商品售价") |
| | | private BigDecimal salesPrice; |
| | | |
| | | @ApiModelProperty(value = "商品详情") |
| | | private String goodsDetail; |
| | | |
| | | @ApiModelProperty(value = "销售数量") |
| | | private Integer salesNum; |
| | | |
| | | @ApiModelProperty(value = "是否活动跳转0否1是") |
| | | private Integer activityFlag; |
| | | |
| | | @ApiModelProperty(value = "商品活动价") |
| | | private BigDecimal activityPrice; |
| | | |
| | | @ApiModelProperty(value = "售罄标记0否1是") |
| | | private Integer sellOutFlag; |
| | | |
| | | @ApiModelProperty(value = "活动截止时间") |
| | | private Date activityDeadline; |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.vo; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppNearbyShopDto |
| | | * @description: TODO |
| | | * @date 2023年04月19日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class AppNearbyShopVo { |
| | | |
| | | |
| | | @ApiModelProperty(value = "商户id") |
| | | private Long shopId; |
| | | |
| | | @ApiModelProperty(value = "商户名称") |
| | | private String shopName; |
| | | |
| | | @ApiModelProperty(value = "商户地址") |
| | | private String shopAddress; |
| | | |
| | | @ApiModelProperty(value = "经度") |
| | | private String shopLongitude; |
| | | |
| | | @ApiModelProperty(value = "维度") |
| | | private String shopLatitude; |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.vo; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppQuickEntryVo |
| | | * @description: TODO |
| | | * @date 2023年04月20日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class AppQuickEntryVo { |
| | | |
| | | @ApiModelProperty(value = "快速入口") |
| | | private Long entryId; |
| | | |
| | | @ApiModelProperty(value = "入口图片地址") |
| | | private String entryUrl; |
| | | |
| | | @ApiModelProperty(value = "入口名称") |
| | | private String entryName; |
| | | |
| | | @ApiModelProperty(value = "对象类型1.外链2.内链3.无") |
| | | private Integer targetType; |
| | | |
| | | @ApiModelProperty(value = "链接地址") |
| | | private String linkUrl; |
| | | |
| | | @ApiModelProperty(value = "跳转id") |
| | | private String jumpId; |
| | | |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.vo; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.ShopCertificate; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppShopInfoVo |
| | | * @description: TODO |
| | | * @date 2023年04月20日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class AppShopInfoVo { |
| | | |
| | | @ApiModelProperty(value = "商户id") |
| | | private Long shopId; |
| | | |
| | | @ApiModelProperty(value = "商户名称") |
| | | private String shopName; |
| | | |
| | | @ApiModelProperty(value = "商户地址") |
| | | private String shopAddress; |
| | | |
| | | @ApiModelProperty(value = "经度") |
| | | private String shopLongitude; |
| | | |
| | | @ApiModelProperty(value = "维度") |
| | | private String shopLatitude; |
| | | |
| | | @ApiModelProperty("营业开始时间") |
| | | private String businessStartTime; |
| | | |
| | | @ApiModelProperty("营业结束时间") |
| | | private String businessEndTime; |
| | | |
| | | @ApiModelProperty("商户标签") |
| | | private String shopTags; |
| | | |
| | | @ApiModelProperty("商户服务电话") |
| | | private String shopServicePhone; |
| | | |
| | | @ApiModelProperty("商户封面") |
| | | private String shopPicture; |
| | | |
| | | @ApiModelProperty("商户banners") |
| | | private String shopBanners; |
| | | |
| | | @ApiModelProperty("店铺详情") |
| | | private String shopDetail; |
| | | |
| | | @ApiModelProperty("店铺证书") |
| | | private List<ShopCertificate> shopCertificateList; |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.vo; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppSimpleGoodsVo |
| | | * @description: TODO |
| | | * @date 2023年04月20日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class AppSimpleActivityGoodsVo { |
| | | |
| | | @ApiModelProperty(value = "商品id") |
| | | private Long goodsId; |
| | | |
| | | @ApiModelProperty(value = "商品名称") |
| | | private String goodsName; |
| | | |
| | | @ApiModelProperty(value = "商品简介") |
| | | private String goodsIntroduction; |
| | | |
| | | @ApiModelProperty(value = "商品图片") |
| | | private String goodsPicture; |
| | | |
| | | @ApiModelProperty(value = "商品类型1周期2服务3体验4单品") |
| | | private Integer goodsType; |
| | | |
| | | @ApiModelProperty(value = "商品标签") |
| | | private String goodsTag; |
| | | |
| | | @ApiModelProperty(value = "商品调理问题") |
| | | private BigDecimal goodsNurses; |
| | | |
| | | @ApiModelProperty(value = "商品售价") |
| | | private BigDecimal salesPrice; |
| | | |
| | | @ApiModelProperty(value = "商品活动价") |
| | | private BigDecimal activityPrice; |
| | | |
| | | @ApiModelProperty(value = "活动销售数量") |
| | | private Integer activityNumber; |
| | | |
| | | @ApiModelProperty(value = "已售数量") |
| | | private Integer salesNumber; |
| | | |
| | | @ApiModelProperty(value = "已售比例") |
| | | private BigDecimal salesPercent; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.vo; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppSimpleGoodsVo |
| | | * @description: TODO |
| | | * @date 2023年04月20日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class AppSimpleGoodsVo { |
| | | |
| | | @ApiModelProperty(value = "商品id") |
| | | private Long goodsId; |
| | | |
| | | @ApiModelProperty(value = "商品名称") |
| | | private String goodsName; |
| | | |
| | | @ApiModelProperty(value = "商品简介") |
| | | private String goodsIntroduction; |
| | | |
| | | @ApiModelProperty(value = "商品图片") |
| | | private String goodsPicture; |
| | | |
| | | @ApiModelProperty(value = "商品类型1周期2服务3体验4单品") |
| | | private Integer goodsType; |
| | | |
| | | @ApiModelProperty(value = "商品标签") |
| | | private String goodsTag; |
| | | |
| | | @ApiModelProperty(value = "商品调理问题") |
| | | private BigDecimal goodsNurses; |
| | | |
| | | @ApiModelProperty(value = "商品售价") |
| | | private BigDecimal salesPrice; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.vo; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName AppUserAuthorizeDto |
| | | * @description: TODO |
| | | * @date 2023年02月13日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class AppUserAuthorizeVo { |
| | | |
| | | @ApiModelProperty(value = "微信openid") |
| | | private String openid; |
| | | |
| | | @ApiModelProperty(value = "微信unionid") |
| | | private String unionid; |
| | | |
| | | @ApiModelProperty(value = "微信昵称") |
| | | private String nickName; |
| | | |
| | | @ApiModelProperty(value = "用户手机") |
| | | private String mobile; |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.vo; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName MerHomeShopTotalVo |
| | | * @description: TODO |
| | | * @date 2023年04月21日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class MerHomeShopTotalVo { |
| | | |
| | | @ApiModelProperty(value = "商户id") |
| | | private Long shopId; |
| | | |
| | | @ApiModelProperty(value = "今日到店") |
| | | private Integer todayShop; |
| | | |
| | | @ApiModelProperty(value = "待处理订单") |
| | | private Integer unHandleOrder; |
| | | |
| | | @ApiModelProperty(value = "跟进任务") |
| | | private Integer task; |
| | | |
| | | @ApiModelProperty(value = "店铺营业额") |
| | | private BigDecimal shopTurnover; |
| | | |
| | | @ApiModelProperty(value = "剩余周期人数") |
| | | private Integer cycleSurp; |
| | | |
| | | @ApiModelProperty(value = "剩余体验人数") |
| | | private Integer explorationSurp; |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.vo; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.ShopCertificate; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName MerShopInfoVo |
| | | * @description: TODO |
| | | * @date 2023年04月21日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class MerShopInfoVo { |
| | | |
| | | @ApiModelProperty(value = "商户id") |
| | | private Long shopId; |
| | | |
| | | @ApiModelProperty("商户名称") |
| | | private String shopName; |
| | | |
| | | @ApiModelProperty("商户类型1.经销商2.代理商") |
| | | private Integer shopType; |
| | | |
| | | @ApiModelProperty("营业开始时间") |
| | | private String businessStartTime; |
| | | |
| | | @ApiModelProperty("营业结束时间") |
| | | private String businessEndTime; |
| | | |
| | | @ApiModelProperty("店主姓名") |
| | | private String shopownerName; |
| | | |
| | | @ApiModelProperty("店主联系方式") |
| | | private String shopownerPhone; |
| | | |
| | | @ApiModelProperty("签约区域") |
| | | private String signAreaCode; |
| | | |
| | | @ApiModelProperty("商户服务电话") |
| | | private String shopServicePhone; |
| | | |
| | | @ApiModelProperty("管辖员工") |
| | | private Long belongUserId; |
| | | |
| | | @ApiModelProperty("所属经销商") |
| | | private Long belongShopId; |
| | | |
| | | @ApiModelProperty("扶持能力1.有2.没有") |
| | | private Integer supportingCapacityFlag; |
| | | |
| | | @ApiModelProperty("店面操作人数1.1人2.1人以上") |
| | | private Integer operationPersonFlag; |
| | | |
| | | @ApiModelProperty("执行力1.强2.弱") |
| | | private Integer executiveForceFlag; |
| | | |
| | | @ApiModelProperty("格局1.大2.小") |
| | | private Integer patternFlag; |
| | | |
| | | @ApiModelProperty("人脉1.宽2.窄") |
| | | private Integer connectionFlag; |
| | | |
| | | @ApiModelProperty("经济能力1.强2.差") |
| | | private Integer economicAbilityFlag; |
| | | |
| | | @ApiModelProperty("与合作商关系1.好2.差") |
| | | private Integer relationPartner; |
| | | |
| | | @ApiModelProperty("曾从事事业") |
| | | private String businessHistory; |
| | | |
| | | @ApiModelProperty("店铺地址省code") |
| | | private String shopProvinceCode; |
| | | |
| | | @ApiModelProperty("店铺地址市code") |
| | | private String shopCityCode; |
| | | |
| | | @ApiModelProperty("店铺地址区code") |
| | | private String shopAreaCode; |
| | | |
| | | @ApiModelProperty("店铺区域全称") |
| | | private String shopAreaName; |
| | | |
| | | @ApiModelProperty("店铺详细地址") |
| | | private String shopAddress; |
| | | |
| | | @ApiModelProperty("店铺经度") |
| | | private String shopLongitude; |
| | | |
| | | @ApiModelProperty("店铺维度") |
| | | private String shopLatitude; |
| | | |
| | | @ApiModelProperty("店铺详情") |
| | | private String shopDetail; |
| | | |
| | | @ApiModelProperty("营销功能1开2关") |
| | | private Integer marketingFunctionFlag; |
| | | |
| | | @ApiModelProperty("领券1开2关") |
| | | private Integer platformCouponFlag; |
| | | |
| | | @ApiModelProperty("生日卡1开2关") |
| | | private Integer platformBirthdayFlag; |
| | | |
| | | @ApiModelProperty("推荐人") |
| | | private String recommendPerson; |
| | | |
| | | @ApiModelProperty("商户标签id 多个用,隔开") |
| | | private String shopTagIds; |
| | | |
| | | @ApiModelProperty("商户标签") |
| | | private String shopTags; |
| | | |
| | | @ApiModelProperty("关联用户id 多个用,隔开") |
| | | private String relUserIds; |
| | | |
| | | @ApiModelProperty("关联用户") |
| | | private String relUsers; |
| | | |
| | | @ApiModelProperty("商户封面") |
| | | private String shopPicture; |
| | | |
| | | @ApiModelProperty("商户banner 多个用,隔开") |
| | | private String shopBanners; |
| | | |
| | | @ApiModelProperty("证书list") |
| | | private List<ShopCertificate> shopCertificateList; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.vo; |
| | | |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | |
| | | /** |
| | | * 路由显示信息 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class MetaVo |
| | | { |
| | | /** |
| | | * 设置该路由在侧边栏和面包屑中展示的名字 |
| | | */ |
| | | private String title; |
| | | |
| | | /** |
| | | * 设置该路由的图标,对应路径src/assets/icons/svg |
| | | */ |
| | | private String icon; |
| | | |
| | | /** |
| | | * 设置为true,则不会被 <keep-alive>缓存 |
| | | */ |
| | | private boolean noCache; |
| | | |
| | | /** |
| | | * 内链地址(http(s)://开头) |
| | | */ |
| | | private String link; |
| | | |
| | | public MetaVo() |
| | | { |
| | | } |
| | | |
| | | public MetaVo(String title, String icon) |
| | | { |
| | | this.title = title; |
| | | this.icon = icon; |
| | | } |
| | | |
| | | public MetaVo(String title, String icon, boolean noCache) |
| | | { |
| | | this.title = title; |
| | | this.icon = icon; |
| | | this.noCache = noCache; |
| | | } |
| | | |
| | | public MetaVo(String title, String icon, String link) |
| | | { |
| | | this.title = title; |
| | | this.icon = icon; |
| | | this.link = link; |
| | | } |
| | | |
| | | public MetaVo(String title, String icon, boolean noCache, String link) |
| | | { |
| | | this.title = title; |
| | | this.icon = icon; |
| | | this.noCache = noCache; |
| | | if (StringUtils.ishttp(link)) |
| | | { |
| | | this.link = link; |
| | | } |
| | | } |
| | | |
| | | public boolean isNoCache() |
| | | { |
| | | return noCache; |
| | | } |
| | | |
| | | public void setNoCache(boolean noCache) |
| | | { |
| | | this.noCache = noCache; |
| | | } |
| | | |
| | | public String getTitle() |
| | | { |
| | | return title; |
| | | } |
| | | |
| | | public void setTitle(String title) |
| | | { |
| | | this.title = title; |
| | | } |
| | | |
| | | public String getIcon() |
| | | { |
| | | return icon; |
| | | } |
| | | |
| | | public void setIcon(String icon) |
| | | { |
| | | this.icon = icon; |
| | | } |
| | | |
| | | public String getLink() |
| | | { |
| | | return link; |
| | | } |
| | | |
| | | public void setLink(String link) |
| | | { |
| | | this.link = link; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.vo; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.ShopCertificate; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName MgtShopInfoVo |
| | | * @description: TODO |
| | | * @date 2023年04月21日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class MgtShopInfoVo { |
| | | |
| | | @ApiModelProperty(value = "商户id") |
| | | private Long shopId; |
| | | |
| | | @ApiModelProperty("商户名称") |
| | | private String shopName; |
| | | |
| | | @ApiModelProperty("商户类型1.经销商2.代理商") |
| | | private Integer shopType; |
| | | |
| | | @ApiModelProperty("营业开始时间") |
| | | private String businessStartTime; |
| | | |
| | | @ApiModelProperty("营业结束时间") |
| | | private String businessEndTime; |
| | | |
| | | @ApiModelProperty("店主姓名") |
| | | private String shopownerName; |
| | | |
| | | @ApiModelProperty("店主联系方式") |
| | | private String shopownerPhone; |
| | | |
| | | @ApiModelProperty("签约区域") |
| | | private String signAreaCode; |
| | | |
| | | @ApiModelProperty("商户服务电话") |
| | | private String shopServicePhone; |
| | | |
| | | @ApiModelProperty("管辖员工") |
| | | private Long belongUserId; |
| | | |
| | | @ApiModelProperty("所属经销商") |
| | | private Long belongShopId; |
| | | |
| | | @ApiModelProperty("扶持能力1.有2.没有") |
| | | private Integer supportingCapacityFlag; |
| | | |
| | | @ApiModelProperty("店面操作人数1.1人2.1人以上") |
| | | private Integer operationPersonFlag; |
| | | |
| | | @ApiModelProperty("执行力1.强2.弱") |
| | | private Integer executiveForceFlag; |
| | | |
| | | @ApiModelProperty("格局1.大2.小") |
| | | private Integer patternFlag; |
| | | |
| | | @ApiModelProperty("人脉1.宽2.窄") |
| | | private Integer connectionFlag; |
| | | |
| | | @ApiModelProperty("经济能力1.强2.差") |
| | | private Integer economicAbilityFlag; |
| | | |
| | | @ApiModelProperty("与合作商关系1.好2.差") |
| | | private Integer relationPartner; |
| | | |
| | | @ApiModelProperty("曾从事事业") |
| | | private String businessHistory; |
| | | |
| | | @ApiModelProperty("店铺地址省code") |
| | | private String shopProvinceCode; |
| | | |
| | | @ApiModelProperty("店铺地址市code") |
| | | private String shopCityCode; |
| | | |
| | | @ApiModelProperty("店铺地址区code") |
| | | private String shopAreaCode; |
| | | |
| | | @ApiModelProperty("店铺区域全称") |
| | | private String shopAreaName; |
| | | |
| | | @ApiModelProperty("店铺详细地址") |
| | | private String shopAddress; |
| | | |
| | | @ApiModelProperty("店铺经度") |
| | | private String shopLongitude; |
| | | |
| | | @ApiModelProperty("店铺维度") |
| | | private String shopLatitude; |
| | | |
| | | @ApiModelProperty("店铺详情") |
| | | private String shopDetail; |
| | | |
| | | @ApiModelProperty("营销功能1开2关") |
| | | private Integer marketingFunctionFlag; |
| | | |
| | | @ApiModelProperty("领券1开2关") |
| | | private Integer platformCouponFlag; |
| | | |
| | | @ApiModelProperty("生日卡1开2关") |
| | | private Integer platformBirthdayFlag; |
| | | |
| | | @ApiModelProperty("推荐人") |
| | | private String recommendPerson; |
| | | |
| | | @ApiModelProperty("商户标签id 多个用,隔开") |
| | | private String shopTagIds; |
| | | |
| | | @ApiModelProperty("商户标签") |
| | | private String shopTags; |
| | | |
| | | @ApiModelProperty("关联用户id 多个用,隔开") |
| | | private String relUserIds; |
| | | |
| | | @ApiModelProperty("关联用户") |
| | | private String relUsers; |
| | | |
| | | @ApiModelProperty("商户封面") |
| | | private String shopPicture; |
| | | |
| | | @ApiModelProperty("商户banner 多个用,隔开") |
| | | private String shopBanners; |
| | | |
| | | @ApiModelProperty("证书list") |
| | | private List<ShopCertificate> shopCertificateList; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.vo; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName MgtShopPageVo |
| | | * @description: TODO |
| | | * @date 2023年04月21日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class MgtShopPageVo { |
| | | |
| | | @ApiModelProperty(value = "商户id") |
| | | private Long shopId; |
| | | |
| | | @ApiModelProperty("签约时间") |
| | | private String signTime; |
| | | |
| | | @ApiModelProperty("商户名称") |
| | | private String shopName; |
| | | |
| | | @ApiModelProperty("商户编号") |
| | | private String shopNumber; |
| | | |
| | | @ApiModelProperty("商户标签") |
| | | private String shopTags; |
| | | |
| | | @ApiModelProperty("签约人") |
| | | private String signUser; |
| | | |
| | | @ApiModelProperty("首提金额") |
| | | private BigDecimal firstWithdraw; |
| | | |
| | | @ApiModelProperty("关联员工") |
| | | private BigDecimal belongUser; |
| | | |
| | | @ApiModelProperty("关联部门") |
| | | private BigDecimal belongDept; |
| | | |
| | | @ApiModelProperty("来源渠道") |
| | | private String shopSource; |
| | | |
| | | @ApiModelProperty("签约区域") |
| | | private String signAreaName; |
| | | |
| | | @ApiModelProperty("合作期限") |
| | | private String cooperationTime; |
| | | |
| | | @ApiModelProperty("店铺地址") |
| | | private String shopAddress; |
| | | |
| | | @ApiModelProperty("店主姓名") |
| | | private String shopownerName; |
| | | |
| | | @ApiModelProperty("店主联系方式") |
| | | private String shopownerPhone; |
| | | |
| | | @ApiModelProperty("商户状态-1删除0冻结1正常2终止合作") |
| | | private Integer shopStatus; |
| | | |
| | | @ApiModelProperty("商户活动次数") |
| | | private Integer shopActivityCount; |
| | | |
| | | @ApiModelProperty("店铺设置状态") |
| | | private String shopCustomStatus; |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.vo; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName MgtShopTagVo |
| | | * @description: TODO |
| | | * @date 2023年04月21日 |
| | | * @version: 1.0 |
| | | */ |
| | | @Data |
| | | public class MgtShopTagVo { |
| | | |
| | | @ApiModelProperty(value = "标签id") |
| | | private Long tagId; |
| | | |
| | | @ApiModelProperty(value = "标签名称") |
| | | private String tagName; |
| | | |
| | | @ApiModelProperty(value = "是否选择0否1是") |
| | | private Integer selectFlag; |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.vo; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonInclude; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 路由配置信息 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @JsonInclude(JsonInclude.Include.NON_EMPTY) |
| | | public class RouterVo |
| | | { |
| | | /** |
| | | * 路由名字 |
| | | */ |
| | | private String name; |
| | | |
| | | /** |
| | | * 路由地址 |
| | | */ |
| | | private String path; |
| | | |
| | | /** |
| | | * 是否隐藏路由,当设置 true 的时候该路由不会再侧边栏出现 |
| | | */ |
| | | private boolean hidden; |
| | | |
| | | /** |
| | | * 重定向地址,当设置 noRedirect 的时候该路由在面包屑导航中不可被点击 |
| | | */ |
| | | private String redirect; |
| | | |
| | | /** |
| | | * 组件地址 |
| | | */ |
| | | private String component; |
| | | |
| | | /** |
| | | * 路由参数:如 {"id": 1, "name": "ry"} |
| | | */ |
| | | private String query; |
| | | |
| | | /** |
| | | * 当你一个路由下面的 children 声明的路由大于1个时,自动会变成嵌套的模式--如组件页面 |
| | | */ |
| | | private Boolean alwaysShow; |
| | | |
| | | /** |
| | | * 其他元素 |
| | | */ |
| | | private MetaVo meta; |
| | | |
| | | /** |
| | | * 子路由 |
| | | */ |
| | | private List<RouterVo> children; |
| | | |
| | | public String getName() |
| | | { |
| | | return name; |
| | | } |
| | | |
| | | public void setName(String name) |
| | | { |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getPath() |
| | | { |
| | | return path; |
| | | } |
| | | |
| | | public void setPath(String path) |
| | | { |
| | | this.path = path; |
| | | } |
| | | |
| | | public boolean getHidden() |
| | | { |
| | | return hidden; |
| | | } |
| | | |
| | | public void setHidden(boolean hidden) |
| | | { |
| | | this.hidden = hidden; |
| | | } |
| | | |
| | | public String getRedirect() |
| | | { |
| | | return redirect; |
| | | } |
| | | |
| | | public void setRedirect(String redirect) |
| | | { |
| | | this.redirect = redirect; |
| | | } |
| | | |
| | | public String getComponent() |
| | | { |
| | | return component; |
| | | } |
| | | |
| | | public void setComponent(String component) |
| | | { |
| | | this.component = component; |
| | | } |
| | | |
| | | public String getQuery() |
| | | { |
| | | return query; |
| | | } |
| | | |
| | | public void setQuery(String query) |
| | | { |
| | | this.query = query; |
| | | } |
| | | |
| | | public Boolean getAlwaysShow() |
| | | { |
| | | return alwaysShow; |
| | | } |
| | | |
| | | public void setAlwaysShow(Boolean alwaysShow) |
| | | { |
| | | this.alwaysShow = alwaysShow; |
| | | } |
| | | |
| | | public MetaVo getMeta() |
| | | { |
| | | return meta; |
| | | } |
| | | |
| | | public void setMeta(MetaVo meta) |
| | | { |
| | | this.meta = meta; |
| | | } |
| | | |
| | | public List<RouterVo> getChildren() |
| | | { |
| | | return children; |
| | | } |
| | | |
| | | public void setChildren(List<RouterVo> children) |
| | | { |
| | | this.children = children; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.domain.vo; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | import com.fasterxml.jackson.annotation.JsonInclude; |
| | | import com.ruoyi.system.api.domain.SysDept; |
| | | import com.ruoyi.system.domain.pojo.sys.SysMenu; |
| | | |
| | | /** |
| | | * Treeselect树结构实体类 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public class TreeSelect implements Serializable |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** 节点ID */ |
| | | private Long id; |
| | | |
| | | /** 节点名称 */ |
| | | private String label; |
| | | |
| | | /** 子节点 */ |
| | | @JsonInclude(JsonInclude.Include.NON_EMPTY) |
| | | private List<TreeSelect> children; |
| | | |
| | | public TreeSelect() |
| | | { |
| | | |
| | | } |
| | | |
| | | public TreeSelect(SysDept dept) |
| | | { |
| | | this.id = dept.getDeptId(); |
| | | this.label = dept.getDeptName(); |
| | | this.children = dept.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList()); |
| | | } |
| | | |
| | | public TreeSelect(SysMenu menu) |
| | | { |
| | | this.id = menu.getMenuId(); |
| | | this.label = menu.getMenuName(); |
| | | this.children = menu.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList()); |
| | | } |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getLabel() |
| | | { |
| | | return label; |
| | | } |
| | | |
| | | public void setLabel(String label) |
| | | { |
| | | this.label = label; |
| | | } |
| | | |
| | | public List<TreeSelect> getChildren() |
| | | { |
| | | return children; |
| | | } |
| | | |
| | | public void setChildren(List<TreeSelect> children) |
| | | { |
| | | this.children = children; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.activity; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.system.domain.pojo.activity.ActivityGoods; |
| | | |
| | | |
| | | /** |
| | | * <p> |
| | | * Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ActivityGoodsMapper extends BaseMapper<ActivityGoods> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.config; |
| | | |
| | | import com.ruoyi.system.domain.pojo.config.Advert; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.system.domain.vo.AppAdvertVo; |
| | | |
| | | /** |
| | | * <p> |
| | | * 广告 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface AdvertMapper extends BaseMapper<Advert> { |
| | | |
| | | /** |
| | | * 获取首页广告 |
| | | * @return |
| | | */ |
| | | AppAdvertVo getAdvertVo(); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.config; |
| | | |
| | | import com.ruoyi.system.domain.pojo.config.Agreement; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.system.domain.vo.AppAgreementVo; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * 协议 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface AgreementMapper extends BaseMapper<Agreement> { |
| | | /** |
| | | * 通过协议类型获取协议 |
| | | * @param type |
| | | * @return |
| | | */ |
| | | AppAgreementVo getAppAgreementVoByType(@Param("type")Integer type); |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.config; |
| | | |
| | | import com.ruoyi.system.domain.pojo.config.Banner; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.system.domain.vo.AppBannerVo; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * banner Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface BannerMapper extends BaseMapper<Banner> { |
| | | |
| | | /** |
| | | * 获取首页banner |
| | | * @return |
| | | */ |
| | | List<AppBannerVo> listHomeBannerVo(); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.config; |
| | | |
| | | import com.ruoyi.system.domain.pojo.config.CustomeConfig; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 系统配置 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface CustomeConfigMapper extends BaseMapper<CustomeConfig> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.config; |
| | | |
| | | import com.ruoyi.system.domain.pojo.config.Pop; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 弹窗 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface PopMapper extends BaseMapper<Pop> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.config; |
| | | |
| | | import com.ruoyi.system.domain.pojo.config.QuickEntry; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.system.domain.vo.AppQuickEntryVo; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 快速入口 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface QuickEntryMapper extends BaseMapper<QuickEntry> { |
| | | |
| | | /** |
| | | * 获取快速入口列表 |
| | | * @return |
| | | */ |
| | | List<AppQuickEntryVo> listQuickEntryVo(); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.config; |
| | | |
| | | import com.ruoyi.system.domain.pojo.config.SysClassification; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 分类 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface SysClassificationMapper extends BaseMapper<SysClassification> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.config; |
| | | |
| | | import com.ruoyi.system.domain.pojo.config.SysTag; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 系统标签 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface SysTagMapper extends BaseMapper<SysTag> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.coupon; |
| | | |
| | | import com.ruoyi.system.domain.pojo.coupon.Coupon; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface CouponMapper extends BaseMapper<Coupon> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.coupon; |
| | | |
| | | import com.ruoyi.system.domain.pojo.coupon.CouponRelGoods; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券商品关联 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface CouponRelGoodsMapper extends BaseMapper<CouponRelGoods> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.coupon; |
| | | |
| | | import com.ruoyi.system.domain.pojo.coupon.CouponRelUser; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券用户关联 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface CouponRelUserMapper extends BaseMapper<CouponRelUser> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.coupon; |
| | | |
| | | import com.ruoyi.system.domain.pojo.coupon.CouponTotal; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券统计 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface CouponTotalMapper extends BaseMapper<CouponTotal> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.goods; |
| | | |
| | | import com.ruoyi.system.domain.pojo.goods.GoodsFile; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品图片 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface GoodsFileMapper extends BaseMapper<GoodsFile> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.goods; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.system.domain.dto.AppSearchGoodsPageDto; |
| | | import com.ruoyi.system.domain.dto.AppShopGoodsPageDto; |
| | | import com.ruoyi.system.domain.pojo.goods.Goods; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.system.domain.vo.AppSimpleActivityGoodsVo; |
| | | import com.ruoyi.system.domain.vo.AppSimpleGoodsVo; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品表 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface GoodsMapper extends BaseMapper<Goods> { |
| | | /** |
| | | * 获取推荐商品列表 |
| | | * @param page |
| | | * @return |
| | | */ |
| | | List<AppSimpleGoodsVo> pageRecommendGoods(Page page, @Param("shopId")Long shopId); |
| | | |
| | | /** |
| | | * 获取商城商品列表 |
| | | * @param page |
| | | * @param appShopGoodsPageDto |
| | | * @return |
| | | */ |
| | | List<AppSimpleGoodsVo> pageShopGoods(Page page, @Param("param") AppShopGoodsPageDto appShopGoodsPageDto); |
| | | |
| | | /** |
| | | * 获取搜索商品列表 |
| | | * @param page |
| | | * @param appSearchGoodsPageDto |
| | | * @return |
| | | */ |
| | | List<AppSimpleGoodsVo> pageSearchGoods(Page page, @Param("param") AppSearchGoodsPageDto appSearchGoodsPageDto); |
| | | |
| | | /** |
| | | * 获取搜索商品列表 |
| | | * @param page |
| | | * @param appSearchGoodsPageDto |
| | | * @return |
| | | */ |
| | | List<AppSimpleActivityGoodsVo> pageSearchActivityGoods(Page page, @Param("param")AppSearchGoodsPageDto appSearchGoodsPageDto); |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.goods; |
| | | |
| | | import com.ruoyi.system.domain.pojo.goods.GoodsRelNurse; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品调理问题 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface GoodsRelNurseMapper extends BaseMapper<GoodsRelNurse> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.goods; |
| | | |
| | | import com.ruoyi.system.domain.pojo.goods.GoodsRelTag; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品标签 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface GoodsRelTagMapper extends BaseMapper<GoodsRelTag> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.goods; |
| | | |
| | | import com.ruoyi.system.domain.pojo.goods.GoodsTotal; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品统计 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface GoodsTotalMapper extends BaseMapper<GoodsTotal> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.member; |
| | | |
| | | import com.ruoyi.system.domain.pojo.member.MemberArchiveFields; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 档案字段 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface MemberArchiveFieldsMapper extends BaseMapper<MemberArchiveFields> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.member; |
| | | |
| | | import com.ruoyi.system.domain.pojo.member.MemberArchive; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 会员档案信息 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface MemberArchiveMapper extends BaseMapper<MemberArchive> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.member; |
| | | |
| | | import com.ruoyi.system.domain.pojo.member.Member; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * <p> |
| | | * 小程序用户 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface MemberMapper extends BaseMapper<Member> { |
| | | |
| | | /** |
| | | * |
| | | * @param miniOpenid |
| | | * @return |
| | | */ |
| | | Member getOneByMiniOpenid(@Param("miniOpenid")String miniOpenid); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.member; |
| | | |
| | | import com.ruoyi.system.domain.pojo.member.MemberNurse; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 用户调理问题 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface MemberNurseMapper extends BaseMapper<MemberNurse> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.member; |
| | | |
| | | import com.ruoyi.system.domain.pojo.member.UserCoupon; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 用户关联优惠券 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface UserCouponMapper extends BaseMapper<UserCoupon> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.order; |
| | | |
| | | import com.ruoyi.system.domain.pojo.order.ConsumerGoods; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ConsumerGoodsMapper extends BaseMapper<ConsumerGoods> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.order; |
| | | |
| | | import com.ruoyi.system.domain.pojo.order.OrderGoods; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 订单商品 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface OrderGoodsMapper extends BaseMapper<OrderGoods> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.order; |
| | | |
| | | import com.ruoyi.system.domain.pojo.order.Order; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 订单 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface OrderMapper extends BaseMapper<Order> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.order; |
| | | |
| | | import com.ruoyi.system.domain.pojo.order.ShoppingCart; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 购物车 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ShoppingCartMapper extends BaseMapper<ShoppingCart> { |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param ids |
| | | */ |
| | | void deleteShoppingCartByIds(String ids); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.order; |
| | | |
| | | import com.ruoyi.system.domain.pojo.order.UserServiceRecord; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务记录 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface UserServiceRecordMapper extends BaseMapper<UserServiceRecord> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.MemberTask; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 会员跟进任务 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface MemberTaskMapper extends BaseMapper<MemberTask> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.MemberTaskRecord; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 会员跟进任务记录 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface MemberTaskRecordMapper extends BaseMapper<MemberTaskRecord> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.ShopCertificate; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户证书 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ShopCertificateMapper extends BaseMapper<ShopCertificate> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.ShopFile; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户图片 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ShopFileMapper extends BaseMapper<ShopFile> { |
| | | /** |
| | | * 通过商户id删除关联 |
| | | * @param shopId |
| | | */ |
| | | void deleteByShopId(Long shopId); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.ShopGoods; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户定制商品 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ShopGoodsMapper extends BaseMapper<ShopGoods> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.shop; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.system.domain.dto.MgtShopPageDto; |
| | | import com.ruoyi.system.domain.pojo.shop.Shop; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.system.domain.vo.MgtShopPageVo; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户表 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ShopMapper extends BaseMapper<Shop> { |
| | | /** |
| | | * 分页获取商户 |
| | | * @param page |
| | | * @param mgtShopPageDto |
| | | * @return |
| | | */ |
| | | List<MgtShopPageVo> pageShop(Page page, MgtShopPageDto mgtShopPageDto); |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.ShopMarketing; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户营销 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ShopMarketingMapper extends BaseMapper<ShopMarketing> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.ShopRelTag; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.system.domain.vo.MgtShopTagVo; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户标签 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ShopRelTagMapper extends BaseMapper<ShopRelTag> { |
| | | |
| | | /** |
| | | * 通过商户id删除关联 |
| | | * @param shopId |
| | | */ |
| | | void deleteByShopId(@Param("param") Long shopId); |
| | | |
| | | /** |
| | | * 获取商户标签 |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | List<MgtShopTagVo> listShopTagVo(@Param("param")Long shopId); |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.ShopRelUser; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户关联员工 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ShopRelUserMapper extends BaseMapper<ShopRelUser> { |
| | | |
| | | /** |
| | | * 通过商户id删除关联 |
| | | * @param shopId |
| | | */ |
| | | void deleteByShopId(Long shopId); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.ShopTask; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户跟进任务 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ShopTaskMapper extends BaseMapper<ShopTask> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.ShopTransferRecord; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户员工转移记录 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ShopTransferRecordMapper extends BaseMapper<ShopTransferRecord> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.TaskFile; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * <p> |
| | | * 跟进附件 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface TaskFileMapper extends BaseMapper<TaskFile> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.sys; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.system.domain.pojo.sys.SysConfig; |
| | | |
| | | /** |
| | | * 参数配置 数据层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface SysConfigMapper |
| | | { |
| | | /** |
| | | * 查询参数配置信息 |
| | | * |
| | | * @param config 参数配置信息 |
| | | * @return 参数配置信息 |
| | | */ |
| | | public SysConfig selectConfig(SysConfig config); |
| | | |
| | | /** |
| | | * 通过ID查询配置 |
| | | * |
| | | * @param configId 参数ID |
| | | * @return 参数配置信息 |
| | | */ |
| | | public SysConfig selectConfigById(Long configId); |
| | | |
| | | /** |
| | | * 查询参数配置列表 |
| | | * |
| | | * @param config 参数配置信息 |
| | | * @return 参数配置集合 |
| | | */ |
| | | public List<SysConfig> selectConfigList(SysConfig config); |
| | | |
| | | /** |
| | | * 根据键名查询参数配置信息 |
| | | * |
| | | * @param configKey 参数键名 |
| | | * @return 参数配置信息 |
| | | */ |
| | | public SysConfig checkConfigKeyUnique(String configKey); |
| | | |
| | | /** |
| | | * 新增参数配置 |
| | | * |
| | | * @param config 参数配置信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertConfig(SysConfig config); |
| | | |
| | | /** |
| | | * 修改参数配置 |
| | | * |
| | | * @param config 参数配置信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateConfig(SysConfig config); |
| | | |
| | | /** |
| | | * 删除参数配置 |
| | | * |
| | | * @param configId 参数ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteConfigById(Long configId); |
| | | |
| | | /** |
| | | * 批量删除参数信息 |
| | | * |
| | | * @param configIds 需要删除的参数ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteConfigByIds(Long[] configIds); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.sys; |
| | | |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import com.ruoyi.system.api.domain.SysDept; |
| | | |
| | | /** |
| | | * 部门管理 数据层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface SysDeptMapper |
| | | { |
| | | /** |
| | | * 查询部门管理数据 |
| | | * |
| | | * @param dept 部门信息 |
| | | * @return 部门信息集合 |
| | | */ |
| | | public List<SysDept> selectDeptList(SysDept dept); |
| | | |
| | | /** |
| | | * 根据角色ID查询部门树信息 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @param deptCheckStrictly 部门树选择项是否关联显示 |
| | | * @return 选中部门列表 |
| | | */ |
| | | public List<Long> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly); |
| | | |
| | | /** |
| | | * 根据部门ID查询信息 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 部门信息 |
| | | */ |
| | | public SysDept selectDeptById(Long deptId); |
| | | |
| | | /** |
| | | * 根据ID查询所有子部门 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 部门列表 |
| | | */ |
| | | public List<SysDept> selectChildrenDeptById(Long deptId); |
| | | |
| | | /** |
| | | * 根据ID查询所有子部门(正常状态) |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 子部门数 |
| | | */ |
| | | public int selectNormalChildrenDeptById(Long deptId); |
| | | |
| | | /** |
| | | * 是否存在子节点 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 结果 |
| | | */ |
| | | public int hasChildByDeptId(Long deptId); |
| | | |
| | | /** |
| | | * 查询部门是否存在用户 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 结果 |
| | | */ |
| | | public int checkDeptExistUser(Long deptId); |
| | | |
| | | /** |
| | | * 校验部门名称是否唯一 |
| | | * |
| | | * @param deptName 部门名称 |
| | | * @param parentId 父部门ID |
| | | * @return 结果 |
| | | */ |
| | | public SysDept checkDeptNameUnique(@Param("deptName") String deptName, @Param("parentId") Long parentId); |
| | | |
| | | /** |
| | | * 新增部门信息 |
| | | * |
| | | * @param dept 部门信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertDept(SysDept dept); |
| | | |
| | | /** |
| | | * 修改部门信息 |
| | | * |
| | | * @param dept 部门信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateDept(SysDept dept); |
| | | |
| | | /** |
| | | * 修改所在部门正常状态 |
| | | * |
| | | * @param deptIds 部门ID组 |
| | | */ |
| | | public void updateDeptStatusNormal(Long[] deptIds); |
| | | |
| | | /** |
| | | * 修改子元素关系 |
| | | * |
| | | * @param depts 子元素 |
| | | * @return 结果 |
| | | */ |
| | | public int updateDeptChildren(@Param("depts") List<SysDept> depts); |
| | | |
| | | /** |
| | | * 删除部门管理信息 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteDeptById(Long deptId); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.sys; |
| | | |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import com.ruoyi.system.api.domain.SysDictData; |
| | | |
| | | /** |
| | | * 字典表 数据层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface SysDictDataMapper |
| | | { |
| | | /** |
| | | * 根据条件分页查询字典数据 |
| | | * |
| | | * @param dictData 字典数据信息 |
| | | * @return 字典数据集合信息 |
| | | */ |
| | | public List<SysDictData> selectDictDataList(SysDictData dictData); |
| | | |
| | | /** |
| | | * 根据字典类型查询字典数据 |
| | | * |
| | | * @param dictType 字典类型 |
| | | * @return 字典数据集合信息 |
| | | */ |
| | | public List<SysDictData> selectDictDataByType(String dictType); |
| | | |
| | | /** |
| | | * 根据字典类型和字典键值查询字典数据信息 |
| | | * |
| | | * @param dictType 字典类型 |
| | | * @param dictValue 字典键值 |
| | | * @return 字典标签 |
| | | */ |
| | | public String selectDictLabel(@Param("dictType") String dictType, @Param("dictValue") String dictValue); |
| | | |
| | | /** |
| | | * 根据字典数据ID查询信息 |
| | | * |
| | | * @param dictCode 字典数据ID |
| | | * @return 字典数据 |
| | | */ |
| | | public SysDictData selectDictDataById(Long dictCode); |
| | | |
| | | /** |
| | | * 查询字典数据 |
| | | * |
| | | * @param dictType 字典类型 |
| | | * @return 字典数据 |
| | | */ |
| | | public int countDictDataByType(String dictType); |
| | | |
| | | /** |
| | | * 通过字典ID删除字典数据信息 |
| | | * |
| | | * @param dictCode 字典数据ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteDictDataById(Long dictCode); |
| | | |
| | | /** |
| | | * 批量删除字典数据信息 |
| | | * |
| | | * @param dictCodes 需要删除的字典数据ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteDictDataByIds(Long[] dictCodes); |
| | | |
| | | /** |
| | | * 新增字典数据信息 |
| | | * |
| | | * @param dictData 字典数据信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertDictData(SysDictData dictData); |
| | | |
| | | /** |
| | | * 修改字典数据信息 |
| | | * |
| | | * @param dictData 字典数据信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateDictData(SysDictData dictData); |
| | | |
| | | /** |
| | | * 同步修改字典类型 |
| | | * |
| | | * @param oldDictType 旧字典类型 |
| | | * @param newDictType 新旧字典类型 |
| | | * @return 结果 |
| | | */ |
| | | public int updateDictDataType(@Param("oldDictType") String oldDictType, @Param("newDictType") String newDictType); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.sys; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.system.api.domain.SysDictType; |
| | | |
| | | /** |
| | | * 字典表 数据层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface SysDictTypeMapper |
| | | { |
| | | /** |
| | | * 根据条件分页查询字典类型 |
| | | * |
| | | * @param dictType 字典类型信息 |
| | | * @return 字典类型集合信息 |
| | | */ |
| | | public List<SysDictType> selectDictTypeList(SysDictType dictType); |
| | | |
| | | /** |
| | | * 根据所有字典类型 |
| | | * |
| | | * @return 字典类型集合信息 |
| | | */ |
| | | public List<SysDictType> selectDictTypeAll(); |
| | | |
| | | /** |
| | | * 根据字典类型ID查询信息 |
| | | * |
| | | * @param dictId 字典类型ID |
| | | * @return 字典类型 |
| | | */ |
| | | public SysDictType selectDictTypeById(Long dictId); |
| | | |
| | | /** |
| | | * 根据字典类型查询信息 |
| | | * |
| | | * @param dictType 字典类型 |
| | | * @return 字典类型 |
| | | */ |
| | | public SysDictType selectDictTypeByType(String dictType); |
| | | |
| | | /** |
| | | * 通过字典ID删除字典信息 |
| | | * |
| | | * @param dictId 字典ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteDictTypeById(Long dictId); |
| | | |
| | | /** |
| | | * 批量删除字典类型信息 |
| | | * |
| | | * @param dictIds 需要删除的字典ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteDictTypeByIds(Long[] dictIds); |
| | | |
| | | /** |
| | | * 新增字典类型信息 |
| | | * |
| | | * @param dictType 字典类型信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertDictType(SysDictType dictType); |
| | | |
| | | /** |
| | | * 修改字典类型信息 |
| | | * |
| | | * @param dictType 字典类型信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateDictType(SysDictType dictType); |
| | | |
| | | /** |
| | | * 校验字典类型称是否唯一 |
| | | * |
| | | * @param dictType 字典类型 |
| | | * @return 结果 |
| | | */ |
| | | public SysDictType checkDictTypeUnique(String dictType); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.sys; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.system.api.domain.SysLogininfor; |
| | | |
| | | /** |
| | | * 系统访问日志情况信息 数据层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface SysLogininforMapper |
| | | { |
| | | /** |
| | | * 新增系统登录日志 |
| | | * |
| | | * @param logininfor 访问日志对象 |
| | | */ |
| | | public int insertLogininfor(SysLogininfor logininfor); |
| | | |
| | | /** |
| | | * 查询系统登录日志集合 |
| | | * |
| | | * @param logininfor 访问日志对象 |
| | | * @return 登录记录集合 |
| | | */ |
| | | public List<SysLogininfor> selectLogininforList(SysLogininfor logininfor); |
| | | |
| | | /** |
| | | * 批量删除系统登录日志 |
| | | * |
| | | * @param infoIds 需要删除的登录日志ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteLogininforByIds(Long[] infoIds); |
| | | |
| | | /** |
| | | * 清空系统登录日志 |
| | | * |
| | | * @return 结果 |
| | | */ |
| | | public int cleanLogininfor(); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.sys; |
| | | |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import com.ruoyi.system.domain.pojo.sys.SysMenu; |
| | | |
| | | /** |
| | | * 菜单表 数据层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface SysMenuMapper |
| | | { |
| | | /** |
| | | * 查询系统菜单列表 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 菜单列表 |
| | | */ |
| | | public List<SysMenu> selectMenuList(SysMenu menu); |
| | | |
| | | /** |
| | | * 根据用户所有权限 |
| | | * |
| | | * @return 权限列表 |
| | | */ |
| | | public List<String> selectMenuPerms(); |
| | | |
| | | /** |
| | | * 根据用户查询系统菜单列表 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 菜单列表 |
| | | */ |
| | | public List<SysMenu> selectMenuListByUserId(SysMenu menu); |
| | | |
| | | /** |
| | | * 根据角色ID查询权限 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 权限列表 |
| | | */ |
| | | public List<String> selectMenuPermsByRoleId(Long roleId); |
| | | |
| | | /** |
| | | * 根据用户ID查询权限 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 权限列表 |
| | | */ |
| | | public List<String> selectMenuPermsByUserId(Long userId); |
| | | |
| | | /** |
| | | * 根据用户ID查询菜单 |
| | | * |
| | | * @return 菜单列表 |
| | | */ |
| | | public List<SysMenu> selectMenuTreeAll(); |
| | | |
| | | /** |
| | | * 根据用户ID查询菜单 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 菜单列表 |
| | | */ |
| | | public List<SysMenu> selectMenuTreeByUserId(Long userId); |
| | | |
| | | /** |
| | | * 根据角色ID查询菜单树信息 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @param menuCheckStrictly 菜单树选择项是否关联显示 |
| | | * @return 选中菜单列表 |
| | | */ |
| | | public List<Long> selectMenuListByRoleId(@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly); |
| | | |
| | | /** |
| | | * 根据菜单ID查询信息 |
| | | * |
| | | * @param menuId 菜单ID |
| | | * @return 菜单信息 |
| | | */ |
| | | public SysMenu selectMenuById(Long menuId); |
| | | |
| | | /** |
| | | * 是否存在菜单子节点 |
| | | * |
| | | * @param menuId 菜单ID |
| | | * @return 结果 |
| | | */ |
| | | public int hasChildByMenuId(Long menuId); |
| | | |
| | | /** |
| | | * 新增菜单信息 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertMenu(SysMenu menu); |
| | | |
| | | /** |
| | | * 修改菜单信息 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateMenu(SysMenu menu); |
| | | |
| | | /** |
| | | * 删除菜单管理信息 |
| | | * |
| | | * @param menuId 菜单ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteMenuById(Long menuId); |
| | | |
| | | /** |
| | | * 校验菜单名称是否唯一 |
| | | * |
| | | * @param menuName 菜单名称 |
| | | * @param parentId 父菜单ID |
| | | * @return 结果 |
| | | */ |
| | | public SysMenu checkMenuNameUnique(@Param("menuName") String menuName, @Param("parentId") Long parentId); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.sys; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.system.domain.pojo.sys.SysNotice; |
| | | |
| | | /** |
| | | * 通知公告表 数据层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface SysNoticeMapper |
| | | { |
| | | /** |
| | | * 查询公告信息 |
| | | * |
| | | * @param noticeId 公告ID |
| | | * @return 公告信息 |
| | | */ |
| | | public SysNotice selectNoticeById(Long noticeId); |
| | | |
| | | /** |
| | | * 查询公告列表 |
| | | * |
| | | * @param notice 公告信息 |
| | | * @return 公告集合 |
| | | */ |
| | | public List<SysNotice> selectNoticeList(SysNotice notice); |
| | | |
| | | /** |
| | | * 新增公告 |
| | | * |
| | | * @param notice 公告信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertNotice(SysNotice notice); |
| | | |
| | | /** |
| | | * 修改公告 |
| | | * |
| | | * @param notice 公告信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateNotice(SysNotice notice); |
| | | |
| | | /** |
| | | * 批量删除公告 |
| | | * |
| | | * @param noticeId 公告ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteNoticeById(Long noticeId); |
| | | |
| | | /** |
| | | * 批量删除公告信息 |
| | | * |
| | | * @param noticeIds 需要删除的公告ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteNoticeByIds(Long[] noticeIds); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.sys; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.system.api.domain.SysOperLog; |
| | | |
| | | /** |
| | | * 操作日志 数据层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface SysOperLogMapper |
| | | { |
| | | /** |
| | | * 新增操作日志 |
| | | * |
| | | * @param operLog 操作日志对象 |
| | | */ |
| | | public int insertOperlog(SysOperLog operLog); |
| | | |
| | | /** |
| | | * 查询系统操作日志集合 |
| | | * |
| | | * @param operLog 操作日志对象 |
| | | * @return 操作日志集合 |
| | | */ |
| | | public List<SysOperLog> selectOperLogList(SysOperLog operLog); |
| | | |
| | | /** |
| | | * 批量删除系统操作日志 |
| | | * |
| | | * @param operIds 需要删除的操作日志ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteOperLogByIds(Long[] operIds); |
| | | |
| | | /** |
| | | * 查询操作日志详细 |
| | | * |
| | | * @param operId 操作ID |
| | | * @return 操作日志对象 |
| | | */ |
| | | public SysOperLog selectOperLogById(Long operId); |
| | | |
| | | /** |
| | | * 清空操作日志 |
| | | */ |
| | | public void cleanOperLog(); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.sys; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.system.domain.pojo.sys.SysPost; |
| | | |
| | | /** |
| | | * 岗位信息 数据层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface SysPostMapper |
| | | { |
| | | /** |
| | | * 查询岗位数据集合 |
| | | * |
| | | * @param post 岗位信息 |
| | | * @return 岗位数据集合 |
| | | */ |
| | | public List<SysPost> selectPostList(SysPost post); |
| | | |
| | | /** |
| | | * 查询所有岗位 |
| | | * |
| | | * @return 岗位列表 |
| | | */ |
| | | public List<SysPost> selectPostAll(); |
| | | |
| | | /** |
| | | * 通过岗位ID查询岗位信息 |
| | | * |
| | | * @param postId 岗位ID |
| | | * @return 角色对象信息 |
| | | */ |
| | | public SysPost selectPostById(Long postId); |
| | | |
| | | /** |
| | | * 根据用户ID获取岗位选择框列表 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 选中岗位ID列表 |
| | | */ |
| | | public List<Long> selectPostListByUserId(Long userId); |
| | | |
| | | /** |
| | | * 查询用户所属岗位组 |
| | | * |
| | | * @param userName 用户名 |
| | | * @return 结果 |
| | | */ |
| | | public List<SysPost> selectPostsByUserName(String userName); |
| | | |
| | | /** |
| | | * 删除岗位信息 |
| | | * |
| | | * @param postId 岗位ID |
| | | * @return 结果 |
| | | */ |
| | | public int deletePostById(Long postId); |
| | | |
| | | /** |
| | | * 批量删除岗位信息 |
| | | * |
| | | * @param postIds 需要删除的岗位ID |
| | | * @return 结果 |
| | | */ |
| | | public int deletePostByIds(Long[] postIds); |
| | | |
| | | /** |
| | | * 修改岗位信息 |
| | | * |
| | | * @param post 岗位信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updatePost(SysPost post); |
| | | |
| | | /** |
| | | * 新增岗位信息 |
| | | * |
| | | * @param post 岗位信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertPost(SysPost post); |
| | | |
| | | /** |
| | | * 校验岗位名称 |
| | | * |
| | | * @param postName 岗位名称 |
| | | * @return 结果 |
| | | */ |
| | | public SysPost checkPostNameUnique(String postName); |
| | | |
| | | /** |
| | | * 校验岗位编码 |
| | | * |
| | | * @param postCode 岗位编码 |
| | | * @return 结果 |
| | | */ |
| | | public SysPost checkPostCodeUnique(String postCode); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.sys; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.system.domain.pojo.sys.SysRoleDept; |
| | | |
| | | /** |
| | | * 角色与部门关联表 数据层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface SysRoleDeptMapper |
| | | { |
| | | /** |
| | | * 通过角色ID删除角色和部门关联 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteRoleDeptByRoleId(Long roleId); |
| | | |
| | | /** |
| | | * 批量删除角色部门关联信息 |
| | | * |
| | | * @param ids 需要删除的数据ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteRoleDept(Long[] ids); |
| | | |
| | | /** |
| | | * 查询部门使用数量 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 结果 |
| | | */ |
| | | public int selectCountRoleDeptByDeptId(Long deptId); |
| | | |
| | | /** |
| | | * 批量新增角色部门信息 |
| | | * |
| | | * @param roleDeptList 角色部门列表 |
| | | * @return 结果 |
| | | */ |
| | | public int batchRoleDept(List<SysRoleDept> roleDeptList); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.sys; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.system.api.domain.SysRole; |
| | | |
| | | /** |
| | | * 角色表 数据层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface SysRoleMapper |
| | | { |
| | | /** |
| | | * 根据条件分页查询角色数据 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 角色数据集合信息 |
| | | */ |
| | | public List<SysRole> selectRoleList(SysRole role); |
| | | |
| | | /** |
| | | * 根据用户ID查询角色 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 角色列表 |
| | | */ |
| | | public List<SysRole> selectRolePermissionByUserId(Long userId); |
| | | |
| | | /** |
| | | * 查询所有角色 |
| | | * |
| | | * @return 角色列表 |
| | | */ |
| | | public List<SysRole> selectRoleAll(); |
| | | |
| | | /** |
| | | * 根据用户ID获取角色选择框列表 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 选中角色ID列表 |
| | | */ |
| | | public List<Long> selectRoleListByUserId(Long userId); |
| | | |
| | | /** |
| | | * 通过角色ID查询角色 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 角色对象信息 |
| | | */ |
| | | public SysRole selectRoleById(Long roleId); |
| | | |
| | | /** |
| | | * 根据用户ID查询角色 |
| | | * |
| | | * @param userName 用户名 |
| | | * @return 角色列表 |
| | | */ |
| | | public List<SysRole> selectRolesByUserName(String userName); |
| | | |
| | | /** |
| | | * 校验角色名称是否唯一 |
| | | * |
| | | * @param roleName 角色名称 |
| | | * @return 角色信息 |
| | | */ |
| | | public SysRole checkRoleNameUnique(String roleName); |
| | | |
| | | /** |
| | | * 校验角色权限是否唯一 |
| | | * |
| | | * @param roleKey 角色权限 |
| | | * @return 角色信息 |
| | | */ |
| | | public SysRole checkRoleKeyUnique(String roleKey); |
| | | |
| | | /** |
| | | * 修改角色信息 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateRole(SysRole role); |
| | | |
| | | /** |
| | | * 新增角色信息 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertRole(SysRole role); |
| | | |
| | | /** |
| | | * 通过角色ID删除角色 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteRoleById(Long roleId); |
| | | |
| | | /** |
| | | * 批量删除角色信息 |
| | | * |
| | | * @param roleIds 需要删除的角色ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteRoleByIds(Long[] roleIds); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.sys; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.system.domain.pojo.sys.SysRoleMenu; |
| | | |
| | | /** |
| | | * 角色与菜单关联表 数据层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface SysRoleMenuMapper |
| | | { |
| | | /** |
| | | * 查询菜单使用数量 |
| | | * |
| | | * @param menuId 菜单ID |
| | | * @return 结果 |
| | | */ |
| | | public int checkMenuExistRole(Long menuId); |
| | | |
| | | /** |
| | | * 通过角色ID删除角色和菜单关联 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteRoleMenuByRoleId(Long roleId); |
| | | |
| | | /** |
| | | * 批量删除角色菜单关联信息 |
| | | * |
| | | * @param ids 需要删除的数据ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteRoleMenu(Long[] ids); |
| | | |
| | | /** |
| | | * 批量新增角色菜单信息 |
| | | * |
| | | * @param roleMenuList 角色菜单列表 |
| | | * @return 结果 |
| | | */ |
| | | public int batchRoleMenu(List<SysRoleMenu> roleMenuList); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.sys; |
| | | |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import com.ruoyi.system.api.domain.SysUser; |
| | | |
| | | /** |
| | | * 用户表 数据层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface SysUserMapper |
| | | { |
| | | /** |
| | | * 根据条件分页查询用户列表 |
| | | * |
| | | * @param sysUser 用户信息 |
| | | * @return 用户信息集合信息 |
| | | */ |
| | | public List<SysUser> selectUserList(SysUser sysUser); |
| | | |
| | | /** |
| | | * 根据条件分页查询已配用户角色列表 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 用户信息集合信息 |
| | | */ |
| | | public List<SysUser> selectAllocatedList(SysUser user); |
| | | |
| | | /** |
| | | * 根据条件分页查询未分配用户角色列表 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 用户信息集合信息 |
| | | */ |
| | | public List<SysUser> selectUnallocatedList(SysUser user); |
| | | |
| | | /** |
| | | * 通过用户名查询用户 |
| | | * |
| | | * @param userName 用户名 |
| | | * @return 用户对象信息 |
| | | */ |
| | | public SysUser selectUserByUserName(String userName); |
| | | |
| | | /** |
| | | * 通过用户ID查询用户 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 用户对象信息 |
| | | */ |
| | | public SysUser selectUserById(Long userId); |
| | | |
| | | /** |
| | | * 新增用户信息 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertUser(SysUser user); |
| | | |
| | | /** |
| | | * 修改用户信息 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateUser(SysUser user); |
| | | |
| | | /** |
| | | * 修改用户头像 |
| | | * |
| | | * @param userName 用户名 |
| | | * @param avatar 头像地址 |
| | | * @return 结果 |
| | | */ |
| | | public int updateUserAvatar(@Param("userName") String userName, @Param("avatar") String avatar); |
| | | |
| | | /** |
| | | * 重置用户密码 |
| | | * |
| | | * @param userName 用户名 |
| | | * @param password 密码 |
| | | * @return 结果 |
| | | */ |
| | | public int resetUserPwd(@Param("userName") String userName, @Param("password") String password); |
| | | |
| | | /** |
| | | * 通过用户ID删除用户 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteUserById(Long userId); |
| | | |
| | | /** |
| | | * 批量删除用户信息 |
| | | * |
| | | * @param userIds 需要删除的用户ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteUserByIds(Long[] userIds); |
| | | |
| | | /** |
| | | * 校验用户名称是否唯一 |
| | | * |
| | | * @param userName 用户名称 |
| | | * @return 结果 |
| | | */ |
| | | public SysUser checkUserNameUnique(String userName); |
| | | |
| | | /** |
| | | * 校验手机号码是否唯一 |
| | | * |
| | | * @param phonenumber 手机号码 |
| | | * @return 结果 |
| | | */ |
| | | public SysUser checkPhoneUnique(String phonenumber); |
| | | |
| | | /** |
| | | * 校验email是否唯一 |
| | | * |
| | | * @param email 用户邮箱 |
| | | * @return 结果 |
| | | */ |
| | | public SysUser checkEmailUnique(String email); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.sys; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.system.domain.pojo.sys.SysUserPost; |
| | | |
| | | /** |
| | | * 用户与岗位关联表 数据层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface SysUserPostMapper |
| | | { |
| | | /** |
| | | * 通过用户ID删除用户和岗位关联 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteUserPostByUserId(Long userId); |
| | | |
| | | /** |
| | | * 通过岗位ID查询岗位使用数量 |
| | | * |
| | | * @param postId 岗位ID |
| | | * @return 结果 |
| | | */ |
| | | public int countUserPostById(Long postId); |
| | | |
| | | /** |
| | | * 批量删除用户和岗位关联 |
| | | * |
| | | * @param ids 需要删除的数据ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteUserPost(Long[] ids); |
| | | |
| | | /** |
| | | * 批量新增用户岗位信息 |
| | | * |
| | | * @param userPostList 用户角色列表 |
| | | * @return 结果 |
| | | */ |
| | | public int batchUserPost(List<SysUserPost> userPostList); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.mapper.sys; |
| | | |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import com.ruoyi.system.domain.pojo.sys.SysUserRole; |
| | | |
| | | /** |
| | | * 用户与角色关联表 数据层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface SysUserRoleMapper |
| | | { |
| | | /** |
| | | * 通过用户ID删除用户和角色关联 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteUserRoleByUserId(Long userId); |
| | | |
| | | /** |
| | | * 批量删除用户和角色关联 |
| | | * |
| | | * @param ids 需要删除的数据ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteUserRole(Long[] ids); |
| | | |
| | | /** |
| | | * 通过角色ID查询角色使用数量 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 结果 |
| | | */ |
| | | public int countUserRoleByRoleId(Long roleId); |
| | | |
| | | /** |
| | | * 批量新增用户角色信息 |
| | | * |
| | | * @param userRoleList 用户角色列表 |
| | | * @return 结果 |
| | | */ |
| | | public int batchUserRole(List<SysUserRole> userRoleList); |
| | | |
| | | /** |
| | | * 删除用户和角色关联信息 |
| | | * |
| | | * @param userRole 用户和角色关联信息 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteUserRoleInfo(SysUserRole userRole); |
| | | |
| | | /** |
| | | * 批量取消授权用户角色 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @param userIds 需要删除的用户数据ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteUserRoleInfos(@Param("roleId") Long roleId, @Param("userIds") Long[] userIds); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.activity; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.system.domain.pojo.activity.ActivityGoods; |
| | | |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ActivityGoodsService extends IService<ActivityGoods> { |
| | | |
| | | /** |
| | | * 通过id获取活动商品 |
| | | * @param goodsId |
| | | * @return |
| | | */ |
| | | ActivityGoods getByGoodsId(String goodsId); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.config; |
| | | |
| | | import com.ruoyi.system.domain.pojo.config.Advert; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.system.domain.vo.AppAdvertVo; |
| | | |
| | | /** |
| | | * <p> |
| | | * 广告 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface AdvertService extends IService<Advert> { |
| | | |
| | | /** |
| | | * 获取首页广告 |
| | | * @return |
| | | */ |
| | | AppAdvertVo getAdvertVo(); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.config; |
| | | |
| | | import com.ruoyi.system.domain.dto.AppAgreementDto; |
| | | import com.ruoyi.system.domain.pojo.config.Agreement; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.system.domain.vo.AppAgreementVo; |
| | | |
| | | /** |
| | | * <p> |
| | | * 协议 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface AgreementService extends IService<Agreement> { |
| | | /** |
| | | * 获取各种协议 |
| | | * @param appAgreementDto |
| | | * @return |
| | | */ |
| | | AppAgreementVo getAppAgreement(AppAgreementDto appAgreementDto); |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.config; |
| | | |
| | | import com.ruoyi.system.domain.pojo.config.Banner; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.system.domain.vo.AppBannerVo; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * banner 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface BannerService extends IService<Banner> { |
| | | /** |
| | | * 获取首页banner |
| | | * @return |
| | | */ |
| | | List<AppBannerVo> listHomeBannerVo(); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.config; |
| | | |
| | | import com.ruoyi.system.domain.pojo.config.CustomeConfig; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 系统配置 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface CustomeConfigService extends IService<CustomeConfig> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.config; |
| | | |
| | | import com.ruoyi.system.domain.pojo.config.Pop; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 弹窗 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface PopService extends IService<Pop> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.config; |
| | | |
| | | import com.ruoyi.system.domain.pojo.config.QuickEntry; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.system.domain.vo.AppQuickEntryVo; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 快速入口 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface QuickEntryService extends IService<QuickEntry> { |
| | | |
| | | /** |
| | | * 获取快速入口列表 |
| | | * @return |
| | | */ |
| | | List<AppQuickEntryVo> listQuickEntryVo(); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.config; |
| | | |
| | | import com.ruoyi.system.domain.pojo.config.SysClassification; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 分类 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface SysClassificationService extends IService<SysClassification> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.config; |
| | | |
| | | import com.ruoyi.system.domain.pojo.config.SysTag; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 系统标签 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface SysTagService extends IService<SysTag> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.coupon; |
| | | |
| | | import com.ruoyi.system.domain.pojo.coupon.CouponRelGoods; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券商品关联 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface CouponRelGoodsService extends IService<CouponRelGoods> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.coupon; |
| | | |
| | | import com.ruoyi.system.domain.pojo.coupon.CouponRelUser; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券用户关联 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface CouponRelUserService extends IService<CouponRelUser> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.coupon; |
| | | |
| | | import com.ruoyi.system.domain.pojo.coupon.Coupon; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface CouponService extends IService<Coupon> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.coupon; |
| | | |
| | | import com.ruoyi.system.domain.pojo.coupon.CouponTotal; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券统计 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface CouponTotalService extends IService<CouponTotal> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.goods; |
| | | |
| | | import com.ruoyi.system.domain.pojo.goods.GoodsFile; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品图片 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface GoodsFileService extends IService<GoodsFile> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.goods; |
| | | |
| | | import com.ruoyi.system.domain.pojo.goods.GoodsRelNurse; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品调理问题 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface GoodsRelNurseService extends IService<GoodsRelNurse> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.goods; |
| | | |
| | | import com.ruoyi.system.domain.pojo.goods.GoodsRelTag; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品标签 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface GoodsRelTagService extends IService<GoodsRelTag> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.goods; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.system.domain.dto.AppGoodsInfoGetDto; |
| | | import com.ruoyi.system.domain.dto.AppSearchGoodsPageDto; |
| | | import com.ruoyi.system.domain.dto.AppShopGoodsPageDto; |
| | | import com.ruoyi.system.domain.pojo.goods.Goods; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.system.domain.vo.AppGoodsInfoVo; |
| | | import com.ruoyi.system.domain.vo.AppSimpleActivityGoodsVo; |
| | | import com.ruoyi.system.domain.vo.AppSimpleGoodsVo; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品表 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface GoodsService extends IService<Goods> { |
| | | /** |
| | | * 获取推荐商品列表 |
| | | * @param page |
| | | * @return |
| | | */ |
| | | List<AppSimpleGoodsVo> pageRecommendGoods(Page page, Long shopId); |
| | | |
| | | /** |
| | | * 获取商城商品列表 |
| | | * @param page |
| | | * @param appShopGoodsPageDto |
| | | * @return |
| | | */ |
| | | List<AppSimpleGoodsVo> pageShopGoods(Page page, AppShopGoodsPageDto appShopGoodsPageDto); |
| | | |
| | | /** |
| | | * 获取搜索商品列表 |
| | | * @param page |
| | | * @param appSearchGoodsPageDto |
| | | * @return |
| | | */ |
| | | List<AppSimpleGoodsVo> pageSearchGoods(Page page, AppSearchGoodsPageDto appSearchGoodsPageDto); |
| | | |
| | | /** |
| | | * 获取搜索商品列表 |
| | | * @param page |
| | | * @param appSearchGoodsPageDto |
| | | * @return |
| | | */ |
| | | List<AppSimpleActivityGoodsVo> pageSearchActivityGoods(Page page, AppSearchGoodsPageDto appSearchGoodsPageDto); |
| | | |
| | | /** |
| | | * 获取商品详情 |
| | | * @param appGoodsInfoGetDto |
| | | * @return |
| | | */ |
| | | AppGoodsInfoVo getGoodsInfo(AppGoodsInfoGetDto appGoodsInfoGetDto); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.goods; |
| | | |
| | | import com.ruoyi.system.domain.pojo.goods.GoodsTotal; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品统计 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface GoodsTotalService extends IService<GoodsTotal> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.activity; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.system.domain.pojo.activity.ActivityGoods; |
| | | import com.ruoyi.system.mapper.activity.ActivityGoodsMapper; |
| | | import com.ruoyi.system.service.activity.ActivityGoodsService; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class ActivityGoodsServiceImpl extends ServiceImpl<ActivityGoodsMapper, ActivityGoods> implements ActivityGoodsService { |
| | | |
| | | /** |
| | | * 通过id获取活动商品 |
| | | * @param goodsId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public ActivityGoods getByGoodsId(String goodsId){ |
| | | LambdaQueryWrapper<ActivityGoods> queryWrapper = Wrappers.lambdaQuery(); |
| | | queryWrapper.eq(ActivityGoods::getDelFlag, 0).eq(ActivityGoods::getGoodsId, goodsId); |
| | | ActivityGoods activityGoods = this.getOne(queryWrapper); |
| | | return activityGoods; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.config; |
| | | |
| | | import com.ruoyi.system.domain.pojo.config.Advert; |
| | | import com.ruoyi.system.domain.vo.AppAdvertVo; |
| | | import com.ruoyi.system.mapper.config.AdvertMapper; |
| | | import com.ruoyi.system.service.config.AdvertService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * <p> |
| | | * 广告 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class AdvertServiceImpl extends ServiceImpl<AdvertMapper, Advert> implements AdvertService { |
| | | |
| | | @Resource |
| | | private AdvertMapper advertMapper; |
| | | |
| | | /** |
| | | * 获取首页广告 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public AppAdvertVo getAdvertVo(){ |
| | | return advertMapper.getAdvertVo(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.config; |
| | | |
| | | import com.ruoyi.common.core.exception.ServiceException; |
| | | import com.ruoyi.system.constant.AppErrorConstant; |
| | | import com.ruoyi.system.domain.dto.AppAgreementDto; |
| | | import com.ruoyi.system.domain.pojo.config.Agreement; |
| | | import com.ruoyi.system.domain.vo.AppAgreementVo; |
| | | import com.ruoyi.system.mapper.config.AgreementMapper; |
| | | import com.ruoyi.system.service.config.AgreementService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * <p> |
| | | * 协议 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class AgreementServiceImpl extends ServiceImpl<AgreementMapper, Agreement> implements AgreementService { |
| | | @Resource |
| | | private AgreementMapper agreementMapper; |
| | | |
| | | /** |
| | | * 获取各种协议 |
| | | * @param appAgreementDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public AppAgreementVo getAppAgreement(AppAgreementDto appAgreementDto){ |
| | | AppAgreementVo appAgreementVo = agreementMapper.getAppAgreementVoByType(appAgreementDto.getType()); |
| | | if(appAgreementVo==null){ |
| | | throw new ServiceException(AppErrorConstant.AGREEMENT_FAILED); |
| | | } |
| | | return appAgreementVo; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.config; |
| | | |
| | | import com.ruoyi.system.domain.pojo.config.Banner; |
| | | import com.ruoyi.system.domain.vo.AppBannerVo; |
| | | import com.ruoyi.system.mapper.config.BannerMapper; |
| | | import com.ruoyi.system.service.config.BannerService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * banner 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class BannerServiceImpl extends ServiceImpl<BannerMapper, Banner> implements BannerService { |
| | | |
| | | @Resource |
| | | private BannerMapper bannerMapper; |
| | | |
| | | /** |
| | | * 获取首页banner |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<AppBannerVo> listHomeBannerVo(){ |
| | | return bannerMapper.listHomeBannerVo(); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.config; |
| | | |
| | | import com.ruoyi.system.domain.pojo.config.CustomeConfig; |
| | | import com.ruoyi.system.mapper.config.CustomeConfigMapper; |
| | | import com.ruoyi.system.service.config.CustomeConfigService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 系统配置 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class CustomeConfigServiceImpl extends ServiceImpl<CustomeConfigMapper, CustomeConfig> implements CustomeConfigService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.config; |
| | | |
| | | import com.ruoyi.system.domain.pojo.config.Pop; |
| | | import com.ruoyi.system.mapper.config.PopMapper; |
| | | import com.ruoyi.system.service.config.PopService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 弹窗 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class PopServiceImpl extends ServiceImpl<PopMapper, Pop> implements PopService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.config; |
| | | |
| | | import com.ruoyi.system.domain.pojo.config.QuickEntry; |
| | | import com.ruoyi.system.domain.vo.AppQuickEntryVo; |
| | | import com.ruoyi.system.mapper.config.QuickEntryMapper; |
| | | import com.ruoyi.system.service.config.QuickEntryService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 快速入口 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class QuickEntryServiceImpl extends ServiceImpl<QuickEntryMapper, QuickEntry> implements QuickEntryService { |
| | | |
| | | @Resource |
| | | private QuickEntryMapper quickEntryMapper; |
| | | |
| | | /** |
| | | * 获取快速入口列表 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<AppQuickEntryVo> listQuickEntryVo(){ |
| | | return quickEntryMapper.listQuickEntryVo(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.config; |
| | | |
| | | import com.ruoyi.system.domain.pojo.config.SysClassification; |
| | | import com.ruoyi.system.mapper.config.SysClassificationMapper; |
| | | import com.ruoyi.system.service.config.SysClassificationService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 分类 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class SysClassificationServiceImpl extends ServiceImpl<SysClassificationMapper, SysClassification> implements SysClassificationService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.config; |
| | | |
| | | import com.ruoyi.system.domain.pojo.config.SysTag; |
| | | import com.ruoyi.system.mapper.config.SysTagMapper; |
| | | import com.ruoyi.system.service.config.SysTagService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 系统标签 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class SysTagServiceImpl extends ServiceImpl<SysTagMapper, SysTag> implements SysTagService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.coupon; |
| | | |
| | | import com.ruoyi.system.domain.pojo.coupon.CouponRelGoods; |
| | | import com.ruoyi.system.mapper.coupon.CouponRelGoodsMapper; |
| | | import com.ruoyi.system.service.coupon.CouponRelGoodsService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券商品关联 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class CouponRelGoodsServiceImpl extends ServiceImpl<CouponRelGoodsMapper, CouponRelGoods> implements CouponRelGoodsService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.coupon; |
| | | |
| | | import com.ruoyi.system.domain.pojo.coupon.CouponRelUser; |
| | | import com.ruoyi.system.mapper.coupon.CouponRelUserMapper; |
| | | import com.ruoyi.system.service.coupon.CouponRelUserService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券用户关联 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class CouponRelUserServiceImpl extends ServiceImpl<CouponRelUserMapper, CouponRelUser> implements CouponRelUserService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.coupon; |
| | | |
| | | import com.ruoyi.system.domain.pojo.coupon.Coupon; |
| | | import com.ruoyi.system.mapper.coupon.CouponMapper; |
| | | import com.ruoyi.system.service.coupon.CouponService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class CouponServiceImpl extends ServiceImpl<CouponMapper, Coupon> implements CouponService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.coupon; |
| | | |
| | | import com.ruoyi.system.domain.pojo.coupon.CouponTotal; |
| | | import com.ruoyi.system.mapper.coupon.CouponTotalMapper; |
| | | import com.ruoyi.system.service.coupon.CouponTotalService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 优惠券统计 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class CouponTotalServiceImpl extends ServiceImpl<CouponTotalMapper, CouponTotal> implements CouponTotalService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.goods; |
| | | |
| | | import com.ruoyi.system.domain.pojo.goods.GoodsFile; |
| | | import com.ruoyi.system.mapper.goods.GoodsFileMapper; |
| | | import com.ruoyi.system.service.goods.GoodsFileService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品图片 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class GoodsFileServiceImpl extends ServiceImpl<GoodsFileMapper, GoodsFile> implements GoodsFileService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.goods; |
| | | |
| | | import com.ruoyi.system.domain.pojo.goods.GoodsRelNurse; |
| | | import com.ruoyi.system.mapper.goods.GoodsRelNurseMapper; |
| | | import com.ruoyi.system.service.goods.GoodsRelNurseService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品调理问题 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class GoodsRelNurseServiceImpl extends ServiceImpl<GoodsRelNurseMapper, GoodsRelNurse> implements GoodsRelNurseService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.goods; |
| | | |
| | | import com.ruoyi.system.domain.pojo.goods.GoodsRelTag; |
| | | import com.ruoyi.system.mapper.goods.GoodsRelTagMapper; |
| | | import com.ruoyi.system.service.goods.GoodsRelTagService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品标签 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class GoodsRelTagServiceImpl extends ServiceImpl<GoodsRelTagMapper, GoodsRelTag> implements GoodsRelTagService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.goods; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.system.domain.dto.AppGoodsInfoGetDto; |
| | | import com.ruoyi.system.domain.dto.AppSearchGoodsPageDto; |
| | | import com.ruoyi.system.domain.dto.AppShopGoodsPageDto; |
| | | import com.ruoyi.system.domain.pojo.activity.ActivityGoods; |
| | | import com.ruoyi.system.domain.pojo.goods.Goods; |
| | | import com.ruoyi.system.domain.pojo.shop.ShopGoods; |
| | | import com.ruoyi.system.domain.vo.AppGoodsInfoVo; |
| | | import com.ruoyi.system.domain.vo.AppSimpleActivityGoodsVo; |
| | | import com.ruoyi.system.domain.vo.AppSimpleGoodsVo; |
| | | import com.ruoyi.system.mapper.goods.GoodsMapper; |
| | | import com.ruoyi.system.service.activity.ActivityGoodsService; |
| | | import com.ruoyi.system.service.goods.GoodsService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.system.service.shop.ShopGoodsService; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品表 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements GoodsService { |
| | | |
| | | @Resource |
| | | private GoodsMapper goodsMapper; |
| | | |
| | | @Resource |
| | | private ActivityGoodsService activityGoodsService; |
| | | |
| | | @Resource |
| | | private ShopGoodsService shopGoodsService; |
| | | |
| | | /** |
| | | * 获取推荐商品列表 |
| | | * @param page |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<AppSimpleGoodsVo> pageRecommendGoods(Page page, Long shopId){ |
| | | List<AppSimpleGoodsVo> appSimpleGoodsVoList = goodsMapper.pageRecommendGoods(page,shopId); |
| | | return appSimpleGoodsVoList; |
| | | } |
| | | |
| | | /** |
| | | * 获取商城商品列表 |
| | | * @param page |
| | | * @param appShopGoodsPageDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<AppSimpleGoodsVo> pageShopGoods(Page page, AppShopGoodsPageDto appShopGoodsPageDto){ |
| | | List<AppSimpleGoodsVo> appSimpleGoodsVoList = goodsMapper.pageShopGoods(page,appShopGoodsPageDto); |
| | | return appSimpleGoodsVoList; |
| | | } |
| | | |
| | | /** |
| | | * 获取搜索商品列表 |
| | | * @param page |
| | | * @param appSearchGoodsPageDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<AppSimpleGoodsVo> pageSearchGoods(Page page, AppSearchGoodsPageDto appSearchGoodsPageDto){ |
| | | List<AppSimpleGoodsVo> appSimpleGoodsVoList = goodsMapper.pageSearchGoods(page,appSearchGoodsPageDto); |
| | | return appSimpleGoodsVoList; |
| | | } |
| | | |
| | | /** |
| | | * 获取搜索商品列表 |
| | | * @param page |
| | | * @param appSearchGoodsPageDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<AppSimpleActivityGoodsVo> pageSearchActivityGoods(Page page, AppSearchGoodsPageDto appSearchGoodsPageDto){ |
| | | List<AppSimpleActivityGoodsVo> appSimpleGoodsVoList = goodsMapper.pageSearchActivityGoods(page,appSearchGoodsPageDto); |
| | | Integer activityNumber; |
| | | BigDecimal activityNumberBig; |
| | | Integer salesNumber; |
| | | BigDecimal salesNumberBig; |
| | | BigDecimal salesPercent; |
| | | for(AppSimpleActivityGoodsVo appSimpleActivityGoodsVo : appSimpleGoodsVoList){ |
| | | activityNumber = appSimpleActivityGoodsVo.getActivityNumber(); |
| | | salesNumber = appSimpleActivityGoodsVo.getSalesNumber(); |
| | | activityNumberBig = BigDecimal.valueOf(activityNumber); |
| | | salesNumberBig = BigDecimal.valueOf(salesNumber); |
| | | salesPercent = salesNumberBig.divide(activityNumberBig,2,BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal("100.00")); |
| | | appSimpleActivityGoodsVo.setSalesPercent(salesPercent); |
| | | } |
| | | return appSimpleGoodsVoList; |
| | | } |
| | | |
| | | /** |
| | | * 获取商品详情 |
| | | * @param appGoodsInfoGetDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public AppGoodsInfoVo getGoodsInfo(AppGoodsInfoGetDto appGoodsInfoGetDto){ |
| | | AppGoodsInfoVo appGoodsInfoVo = new AppGoodsInfoVo(); |
| | | Goods goods = this.getById(appGoodsInfoGetDto.getId()); |
| | | BeanUtils.copyProperties(goods, appGoodsInfoVo); |
| | | //商户定制价格 |
| | | ShopGoods shopGoods = shopGoodsService.getByShopIdAndGoodsId(appGoodsInfoGetDto.getShopId(),goods.getGoodsId()); |
| | | if(shopGoods!=null){ |
| | | appGoodsInfoVo.setSalesPrice(shopGoods.getSalesPrice()); |
| | | appGoodsInfoVo.setSalesNum(shopGoods.getServiceNum()); |
| | | } |
| | | //活动商品判断 |
| | | if(appGoodsInfoGetDto.getActivityFlag()==1){ |
| | | ActivityGoods activityGoods = activityGoodsService.getByGoodsId(goods.getGoodsId()); |
| | | //原价取较大值 |
| | | if(shopGoods!=null&&goods.getSalesPrice().compareTo(shopGoods.getSalesPrice())>0){ |
| | | appGoodsInfoVo.setSalesPrice(goods.getSalesPrice()); |
| | | } |
| | | appGoodsInfoVo.setActivityFlag(1); |
| | | appGoodsInfoVo.setActivityPrice(activityGoods.getActivityPrice()); |
| | | appGoodsInfoVo.setSalesNum(activityGoods.getSalesNumber()); |
| | | appGoodsInfoVo.setActivityDeadline(activityGoods.getActivityDeadline()); |
| | | //售罄判断 |
| | | if(activityGoods.getActivityNumber()==activityGoods.getSalesNumber()){ |
| | | appGoodsInfoVo.setSellOutFlag(1); |
| | | }else{ |
| | | appGoodsInfoVo.setSellOutFlag(0); |
| | | } |
| | | }else{ |
| | | appGoodsInfoVo.setActivityFlag(0); |
| | | } |
| | | return appGoodsInfoVo; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.goods; |
| | | |
| | | import com.ruoyi.system.domain.pojo.goods.GoodsTotal; |
| | | import com.ruoyi.system.mapper.goods.GoodsTotalMapper; |
| | | import com.ruoyi.system.service.goods.GoodsTotalService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商品统计 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class GoodsTotalServiceImpl extends ServiceImpl<GoodsTotalMapper, GoodsTotal> implements GoodsTotalService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.member; |
| | | |
| | | import com.ruoyi.system.domain.pojo.member.MemberArchiveFields; |
| | | import com.ruoyi.system.mapper.member.MemberArchiveFieldsMapper; |
| | | import com.ruoyi.system.service.member.MemberArchiveFieldsService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 档案字段 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class MemberArchiveFieldsServiceImpl extends ServiceImpl<MemberArchiveFieldsMapper, MemberArchiveFields> implements MemberArchiveFieldsService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.member; |
| | | |
| | | import com.ruoyi.system.domain.pojo.member.MemberArchive; |
| | | import com.ruoyi.system.mapper.member.MemberArchiveMapper; |
| | | import com.ruoyi.system.service.member.MemberArchiveService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 会员档案信息 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class MemberArchiveServiceImpl extends ServiceImpl<MemberArchiveMapper, MemberArchive> implements MemberArchiveService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.member; |
| | | |
| | | import com.ruoyi.system.domain.pojo.member.MemberNurse; |
| | | import com.ruoyi.system.mapper.member.MemberNurseMapper; |
| | | import com.ruoyi.system.service.member.MemberNurseService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 用户调理问题 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class MemberNurseServiceImpl extends ServiceImpl<MemberNurseMapper, MemberNurse> implements MemberNurseService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.member; |
| | | |
| | | import cn.binarywang.wx.miniapp.api.WxMaService; |
| | | import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult; |
| | | import cn.binarywang.wx.miniapp.bean.WxMaPhoneNumberInfo; |
| | | import com.ruoyi.common.core.exception.ServiceException; |
| | | import com.ruoyi.common.security.utils.SecurityUtils; |
| | | import com.ruoyi.system.api.domain.SysUser; |
| | | import com.ruoyi.system.api.model.AppMiniLoginDto; |
| | | import com.ruoyi.system.api.model.AppMiniLoginVo; |
| | | import com.ruoyi.system.constant.AppErrorConstant; |
| | | import com.ruoyi.system.constant.SecurityConstant; |
| | | import com.ruoyi.system.domain.dto.AppNearbyShopDto; |
| | | import com.ruoyi.system.domain.dto.AppUserAuthorizeDto; |
| | | import com.ruoyi.system.domain.pojo.member.Member; |
| | | import com.ruoyi.system.domain.pojo.shop.Shop; |
| | | import com.ruoyi.system.domain.vo.AppNearbyShopVo; |
| | | import com.ruoyi.system.domain.vo.AppUserAuthorizeVo; |
| | | import com.ruoyi.system.mapper.member.MemberMapper; |
| | | import com.ruoyi.system.service.member.MemberService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.system.service.shop.ShopService; |
| | | import com.ruoyi.system.service.sys.ISysUserService; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.UUID; |
| | | |
| | | /** |
| | | * <p> |
| | | * 小程序用户 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class MemberServiceImpl extends ServiceImpl<MemberMapper, Member> implements MemberService { |
| | | @Resource |
| | | private WxMaService wxMaService; |
| | | |
| | | @Resource |
| | | private ISysUserService sysUserService; |
| | | |
| | | @Resource |
| | | private MemberMapper memberMapper; |
| | | |
| | | @Resource |
| | | private ShopService shopService; |
| | | |
| | | @Resource |
| | | private StringRedisTemplate stringRedisTemplate; |
| | | |
| | | /** |
| | | * |
| | | * @param appMiniLoginDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public AppMiniLoginVo getMemberByCode(AppMiniLoginDto appMiniLoginDto){ |
| | | |
| | | AppMiniLoginVo appMiniLoginVo = new AppMiniLoginVo(); |
| | | WxMaJscode2SessionResult session = null; |
| | | String unionid; |
| | | String openid; |
| | | String sessionKey = null; |
| | | //获取session |
| | | try { |
| | | session = wxMaService.getUserService().getSessionInfo(appMiniLoginDto.getCode()); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return null; |
| | | } |
| | | if(session!=null&& StringUtils.isNotBlank(session.getOpenid())){ |
| | | unionid = session.getUnionid(); |
| | | openid = session.getOpenid(); |
| | | sessionKey = session.getSessionKey(); |
| | | //获取用户 |
| | | Member member = memberMapper.getOneByMiniOpenid(openid); |
| | | SysUser sysUser; |
| | | if(member==null){ |
| | | //创建新用户 |
| | | String memberId = UUID.randomUUID().toString(); |
| | | sysUser = new SysUser(); |
| | | sysUser.setUserName(memberId); |
| | | sysUser.setNickName("微信用户"); |
| | | String password = "hongruitang"; |
| | | sysUser.setPassword(SecurityUtils.encryptPassword(password)); |
| | | sysUserService.registerUser(sysUser); |
| | | member = new Member(); |
| | | member.setUserId(sysUser.getUserId()); |
| | | member.setDelFlag(0); |
| | | member.setMemberId(memberId); |
| | | member.setWxUnionid(unionid); |
| | | member.setMiniOpenid(openid); |
| | | member.setCreateTime(new Date()); |
| | | this.save(member); |
| | | }else{ |
| | | sysUser = sysUserService.selectUserById(member.getUserId()); |
| | | } |
| | | appMiniLoginVo.setMiniOpenid(openid); |
| | | appMiniLoginVo.setWxUnionid(unionid); |
| | | appMiniLoginVo.setSysUser(sysUser); |
| | | appMiniLoginVo.setSessionKey(sessionKey); |
| | | //sessionKey |
| | | stringRedisTemplate.opsForValue().set(SecurityConstant.SESSION_KEY+openid,sessionKey); |
| | | }else{ |
| | | return null; |
| | | } |
| | | return appMiniLoginVo; |
| | | } |
| | | |
| | | /** |
| | | * 获取授权信息 |
| | | * @param appUserAuthorizeDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public AppUserAuthorizeVo getAppUserAuthorize(AppUserAuthorizeDto appUserAuthorizeDto){ |
| | | Member member = this.getById(appUserAuthorizeDto.getUserId()); |
| | | AppUserAuthorizeVo appUserAuthorizeVo = new AppUserAuthorizeVo(); |
| | | //获取code接口在redis里存放的sessionkey用于解密 |
| | | String sessionkey = stringRedisTemplate.opsForValue().get(SecurityConstant.SESSION_KEY+ member.getMiniOpenid()); |
| | | if(StringUtils.isBlank(sessionkey)){ |
| | | throw new ServiceException(AppErrorConstant.USER_NOT_LOGIN); |
| | | } |
| | | String mobile = null; |
| | | try { |
| | | //解密微信加密用户信息和手机号 |
| | | WxMaPhoneNumberInfo wxPhoneInfo; |
| | | if(StringUtils.isNotBlank(appUserAuthorizeDto.getPhoneEncryptedData())&&StringUtils.isNotBlank(appUserAuthorizeDto.getPhoneIv())){ |
| | | wxPhoneInfo = wxMaService.getUserService().getPhoneNoInfo(sessionkey, appUserAuthorizeDto.getPhoneEncryptedData(), appUserAuthorizeDto.getPhoneIv()); |
| | | }else{ |
| | | throw new ServiceException(AppErrorConstant.AUTHORIZE_MISS); |
| | | } |
| | | if(StringUtils.isBlank(wxPhoneInfo.getPhoneNumber())){ |
| | | throw new ServiceException(AppErrorConstant.AUTHORIZE_FAILED); |
| | | } |
| | | mobile = wxPhoneInfo.getPhoneNumber(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | //更新用户手机信息 |
| | | SysUser sysUser = sysUserService.selectUserById(appUserAuthorizeDto.getUserId()); |
| | | sysUser.setPhonenumber(mobile); |
| | | sysUserService.updateUser(sysUser); |
| | | member.setMobile(mobile); |
| | | this.saveOrUpdate(member); |
| | | appUserAuthorizeVo.setMobile(mobile); |
| | | appUserAuthorizeVo.setNickName(sysUser.getNickName()); |
| | | appUserAuthorizeVo.setOpenid(member.getMiniOpenid()); |
| | | appUserAuthorizeVo.setUnionid(member.getWxUnionid()); |
| | | return appUserAuthorizeVo; |
| | | } |
| | | |
| | | /** |
| | | * 获取附近门店 |
| | | * @param appNearbyShopDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public AppNearbyShopVo getNearbyShop(AppNearbyShopDto appNearbyShopDto){ |
| | | Member member = this.getById(appNearbyShopDto.getUserId()); |
| | | AppNearbyShopVo appNearbyShopVo = new AppNearbyShopVo(); |
| | | Shop shop = null; |
| | | if(member.getRealtionShopId()!=null){ |
| | | //获取绑定商户 |
| | | shop = shopService.getById(member.getRealtionShopId()); |
| | | }else{ |
| | | //获取附近商户 |
| | | shop = shopService.getById(1L); |
| | | } |
| | | appNearbyShopVo.setShopId(shop.getShopId()); |
| | | appNearbyShopVo.setShopName(shop.getShopName()); |
| | | appNearbyShopVo.setShopAddress(shop.getShopAreaName()+shop.getShopAddress()); |
| | | appNearbyShopVo.setShopLatitude(shop.getShopLatitude()); |
| | | appNearbyShopVo.setShopLongitude(shop.getShopLongitude()); |
| | | return appNearbyShopVo; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.member; |
| | | |
| | | import com.ruoyi.system.domain.pojo.member.UserCoupon; |
| | | import com.ruoyi.system.mapper.member.UserCouponMapper; |
| | | import com.ruoyi.system.service.member.UserCouponService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 用户关联优惠券 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class UserCouponServiceImpl extends ServiceImpl<UserCouponMapper, UserCoupon> implements UserCouponService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.order; |
| | | |
| | | import com.ruoyi.system.domain.pojo.order.ConsumerGoods; |
| | | import com.ruoyi.system.mapper.order.ConsumerGoodsMapper; |
| | | import com.ruoyi.system.service.order.ConsumerGoodsService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class ConsumerGoodsServiceImpl extends ServiceImpl<ConsumerGoodsMapper, ConsumerGoods> implements ConsumerGoodsService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.order; |
| | | |
| | | import com.ruoyi.system.domain.pojo.order.OrderGoods; |
| | | import com.ruoyi.system.mapper.order.OrderGoodsMapper; |
| | | import com.ruoyi.system.service.order.OrderGoodsService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 订单商品 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class OrderGoodsServiceImpl extends ServiceImpl<OrderGoodsMapper, OrderGoods> implements OrderGoodsService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.order; |
| | | |
| | | import com.ruoyi.system.domain.pojo.order.Order; |
| | | import com.ruoyi.system.mapper.order.OrderMapper; |
| | | import com.ruoyi.system.service.order.OrderService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 订单 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.order; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.core.exception.ServiceException; |
| | | import com.ruoyi.system.constant.AppErrorConstant; |
| | | import com.ruoyi.system.domain.dto.AppBaseBathDto; |
| | | import com.ruoyi.system.domain.dto.AppShoppingCartAddDto; |
| | | import com.ruoyi.system.domain.dto.AppShoppingCartChangeDto; |
| | | import com.ruoyi.system.domain.pojo.activity.ActivityGoods; |
| | | import com.ruoyi.system.domain.pojo.goods.Goods; |
| | | import com.ruoyi.system.domain.pojo.order.ShoppingCart; |
| | | import com.ruoyi.system.mapper.order.ShoppingCartMapper; |
| | | import com.ruoyi.system.service.goods.GoodsService; |
| | | import com.ruoyi.system.service.order.ShoppingCartService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * <p> |
| | | * 购物车 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class ShoppingCartServiceImpl extends ServiceImpl<ShoppingCartMapper, ShoppingCart> implements ShoppingCartService { |
| | | |
| | | @Resource |
| | | private GoodsService goodsService; |
| | | |
| | | @Resource |
| | | private ShoppingCartMapper shoppingCartMapper; |
| | | |
| | | /** |
| | | * 添加购物车 |
| | | * @param appShoppingCartAddDto |
| | | */ |
| | | @Override |
| | | public void addShoppingCart(AppShoppingCartAddDto appShoppingCartAddDto){ |
| | | Long goodsId = appShoppingCartAddDto.getGoodsId(); |
| | | Goods goods = goodsService.getById(goodsId); |
| | | if(goods.getGoodsStatus()!=1){ |
| | | throw new ServiceException(AppErrorConstant.GOODS_DOWN); |
| | | } |
| | | LambdaQueryWrapper<ShoppingCart> queryWrapper = Wrappers.lambdaQuery(); |
| | | queryWrapper.eq(ShoppingCart::getDelFlag, 0).eq(ShoppingCart::getGoodsId, goodsId); |
| | | ShoppingCart shoppingCart = this.getOne(queryWrapper); |
| | | if(shoppingCart==null){ |
| | | shoppingCart = new ShoppingCart(); |
| | | shoppingCart.setUserId(appShoppingCartAddDto.getUserId()); |
| | | shoppingCart.setShopId(appShoppingCartAddDto.getShopId()); |
| | | shoppingCart.setBuyNum(appShoppingCartAddDto.getBuyNum()); |
| | | shoppingCart.setDelFlag(0); |
| | | shoppingCart.setCreateTime(new Date()); |
| | | this.save(shoppingCart); |
| | | }else{ |
| | | shoppingCart.setBuyNum(shoppingCart.getBuyNum()+appShoppingCartAddDto.getBuyNum()); |
| | | shoppingCart.setUpdateTime(new Date()); |
| | | this.saveOrUpdate(shoppingCart); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 修改购物车数量 |
| | | * @param appShoppingCartChangeDto |
| | | */ |
| | | @Override |
| | | public void changeShoppingCart(AppShoppingCartChangeDto appShoppingCartChangeDto){ |
| | | Long goodsId = appShoppingCartChangeDto.getGoodsId(); |
| | | Goods goods = goodsService.getById(goodsId); |
| | | if(goods.getGoodsStatus()!=1){ |
| | | throw new ServiceException(AppErrorConstant.GOODS_DOWN); |
| | | } |
| | | LambdaQueryWrapper<ShoppingCart> queryWrapper = Wrappers.lambdaQuery(); |
| | | queryWrapper.eq(ShoppingCart::getDelFlag, 0).eq(ShoppingCart::getGoodsId, goodsId); |
| | | ShoppingCart shoppingCart = this.getOne(queryWrapper); |
| | | shoppingCart.setBuyNum(appShoppingCartChangeDto.getBuyNum()); |
| | | shoppingCart.setUpdateTime(new Date()); |
| | | this.saveOrUpdate(shoppingCart); |
| | | } |
| | | |
| | | /** |
| | | * 删除购物车 |
| | | * @param appBaseBathDto |
| | | */ |
| | | @Override |
| | | public void deleteShoppingCart(AppBaseBathDto appBaseBathDto){ |
| | | String ids = appBaseBathDto.getIds(); |
| | | shoppingCartMapper.deleteShoppingCartByIds(ids); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.order; |
| | | |
| | | import com.ruoyi.system.domain.pojo.order.UserServiceRecord; |
| | | import com.ruoyi.system.mapper.order.UserServiceRecordMapper; |
| | | import com.ruoyi.system.service.order.UserServiceRecordService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务记录 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class UserServiceRecordServiceImpl extends ServiceImpl<UserServiceRecordMapper, UserServiceRecord> implements UserServiceRecordService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.MemberTaskRecord; |
| | | import com.ruoyi.system.mapper.shop.MemberTaskRecordMapper; |
| | | import com.ruoyi.system.service.shop.MemberTaskRecordService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 会员跟进任务记录 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class MemberTaskRecordServiceImpl extends ServiceImpl<MemberTaskRecordMapper, MemberTaskRecord> implements MemberTaskRecordService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.MemberTask; |
| | | import com.ruoyi.system.mapper.shop.MemberTaskMapper; |
| | | import com.ruoyi.system.service.shop.MemberTaskService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 会员跟进任务 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class MemberTaskServiceImpl extends ServiceImpl<MemberTaskMapper, MemberTask> implements MemberTaskService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.shop; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.system.domain.pojo.shop.ShopCertificate; |
| | | import com.ruoyi.system.mapper.shop.ShopCertificateMapper; |
| | | import com.ruoyi.system.service.shop.ShopCertificateService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户证书 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class ShopCertificateServiceImpl extends ServiceImpl<ShopCertificateMapper, ShopCertificate> implements ShopCertificateService { |
| | | |
| | | /** |
| | | * 通过商户id获取商户证书 |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<ShopCertificate> listShopCertificateByShopId(Long shopId){ |
| | | LambdaQueryWrapper<ShopCertificate> queryWrapper = Wrappers.lambdaQuery(); |
| | | queryWrapper.eq(ShopCertificate::getDelFlag, 0).eq(ShopCertificate::getShopId, shopId).eq(ShopCertificate::getCerStatus,1); |
| | | return this.list(queryWrapper); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.shop; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.system.domain.pojo.shop.ShopFile; |
| | | import com.ruoyi.system.mapper.shop.ShopFileMapper; |
| | | import com.ruoyi.system.service.shop.ShopFileService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户图片 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class ShopFileServiceImpl extends ServiceImpl<ShopFileMapper, ShopFile> implements ShopFileService { |
| | | @Resource |
| | | private ShopFileMapper shopFileMapper; |
| | | |
| | | /** |
| | | * 通过商户id获取商户文件 |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<ShopFile> listShopFileByShopId(Long shopId){ |
| | | LambdaQueryWrapper<ShopFile> queryWrapper = Wrappers.lambdaQuery(); |
| | | queryWrapper.eq(ShopFile::getDelFlag, 0).eq(ShopFile::getShopId, shopId); |
| | | return this.list(queryWrapper); |
| | | } |
| | | |
| | | /** |
| | | * 通过商户id删除关联 |
| | | * @param shopId |
| | | */ |
| | | @Override |
| | | public void deleteByShopId(Long shopId){ |
| | | shopFileMapper.deleteByShopId(shopId); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.shop; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.system.domain.pojo.shop.ShopGoods; |
| | | import com.ruoyi.system.mapper.shop.ShopGoodsMapper; |
| | | import com.ruoyi.system.service.shop.ShopGoodsService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户定制商品 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class ShopGoodsServiceImpl extends ServiceImpl<ShopGoodsMapper, ShopGoods> implements ShopGoodsService { |
| | | /** |
| | | * 通过商户id和商品id获取 |
| | | * @param shopId |
| | | * @param goodsId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public ShopGoods getByShopIdAndGoodsId(Long shopId,String goodsId){ |
| | | LambdaQueryWrapper<ShopGoods> queryWrapper = Wrappers.lambdaQuery(); |
| | | queryWrapper.eq(ShopGoods::getDelFlag, 0).eq(ShopGoods::getShopId, shopId).eq(ShopGoods::getGoodsId, goodsId); |
| | | ShopGoods shopGoods = this.getOne(queryWrapper); |
| | | return shopGoods; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.ShopMarketing; |
| | | import com.ruoyi.system.mapper.shop.ShopMarketingMapper; |
| | | import com.ruoyi.system.service.shop.ShopMarketingService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户营销 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class ShopMarketingServiceImpl extends ServiceImpl<ShopMarketingMapper, ShopMarketing> implements ShopMarketingService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.shop; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.system.domain.pojo.shop.ShopRelTag; |
| | | import com.ruoyi.system.domain.vo.MgtShopTagVo; |
| | | import com.ruoyi.system.mapper.shop.ShopRelTagMapper; |
| | | import com.ruoyi.system.service.shop.ShopRelTagService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户标签 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class ShopRelTagServiceImpl extends ServiceImpl<ShopRelTagMapper, ShopRelTag> implements ShopRelTagService { |
| | | @Resource |
| | | private ShopRelTagMapper shopRelTagMapper; |
| | | |
| | | /** |
| | | * 通过商户id获取标签 |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<ShopRelTag> listShopRelTagByShopId(Long shopId){ |
| | | LambdaQueryWrapper<ShopRelTag> queryWrapper = Wrappers.lambdaQuery(); |
| | | queryWrapper.eq(ShopRelTag::getDelFlag, 0).eq(ShopRelTag::getShopId, shopId); |
| | | return this.list(queryWrapper); |
| | | } |
| | | |
| | | /** |
| | | * 通过商户id删除关联 |
| | | * @param shopId |
| | | */ |
| | | @Override |
| | | public void deleteByShopId(Long shopId){ |
| | | shopRelTagMapper.deleteByShopId(shopId); |
| | | } |
| | | |
| | | /** |
| | | * 获取商户标签 |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<MgtShopTagVo> listShopTagVo(Long shopId){ |
| | | return shopRelTagMapper.listShopTagVo(shopId); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.shop; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.system.domain.pojo.shop.ShopRelUser; |
| | | import com.ruoyi.system.mapper.shop.ShopRelUserMapper; |
| | | import com.ruoyi.system.service.shop.ShopRelUserService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户关联员工 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class ShopRelUserServiceImpl extends ServiceImpl<ShopRelUserMapper, ShopRelUser> implements ShopRelUserService { |
| | | |
| | | @Resource |
| | | private ShopRelUserMapper shopRelUserMapper; |
| | | |
| | | /** |
| | | * 通过商户id删除关联 |
| | | * @param shopId |
| | | */ |
| | | @Override |
| | | public void deleteByShopId(Long shopId){ |
| | | shopRelUserMapper.deleteByShopId(shopId); |
| | | } |
| | | |
| | | /** |
| | | * 通过商户id获取关联用户 |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<ShopRelUser> listByShopId(Long shopId){ |
| | | LambdaQueryWrapper<ShopRelUser> queryWrapper = Wrappers.lambdaQuery(); |
| | | queryWrapper.eq(ShopRelUser::getDelFlag, 0).eq(ShopRelUser::getShopId, shopId); |
| | | return this.list(queryWrapper); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.shop; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.system.api.domain.SysUser; |
| | | import com.ruoyi.system.domain.dto.MgtChangeCoopDto; |
| | | import com.ruoyi.system.domain.dto.MgtEditShopDto; |
| | | import com.ruoyi.system.domain.dto.MgtEditShopTagDto; |
| | | import com.ruoyi.system.domain.dto.MgtShopPageDto; |
| | | import com.ruoyi.system.domain.pojo.config.SysTag; |
| | | import com.ruoyi.system.domain.pojo.shop.*; |
| | | import com.ruoyi.system.domain.vo.AppShopInfoVo; |
| | | import com.ruoyi.system.domain.vo.MgtShopInfoVo; |
| | | import com.ruoyi.system.domain.vo.MgtShopPageVo; |
| | | import com.ruoyi.system.mapper.shop.ShopMapper; |
| | | import com.ruoyi.system.service.config.SysTagService; |
| | | import com.ruoyi.system.service.shop.*; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.system.service.sys.ISysUserService; |
| | | import com.ruoyi.system.util.CodeFactoryUtil; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.text.ParseException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.StringJoiner; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户表 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class ShopServiceImpl extends ServiceImpl<ShopMapper, Shop> implements ShopService { |
| | | |
| | | @Resource |
| | | private ShopMapper shopMapper; |
| | | |
| | | @Resource |
| | | private ShopFileService shopFileService; |
| | | |
| | | @Resource |
| | | private ShopCertificateService shopCertificateService; |
| | | |
| | | @Resource |
| | | private SysTagService sysTagService; |
| | | |
| | | @Resource |
| | | private ShopRelTagService shopRelTagService; |
| | | |
| | | @Resource |
| | | private ShopRelUserService shopRelUserService; |
| | | |
| | | @Resource |
| | | private ISysUserService sysUserService; |
| | | |
| | | /** |
| | | * 获取商户详情 |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public AppShopInfoVo getAppShopInfo(Long shopId){ |
| | | AppShopInfoVo appShopInfoVo = new AppShopInfoVo(); |
| | | Shop shop = this.getById(shopId); |
| | | BeanUtils.copyProperties(shop,appShopInfoVo); |
| | | //商户地址 |
| | | appShopInfoVo.setShopAddress(shop.getShopAreaName()+shop.getShopAddress()); |
| | | //商品图片 |
| | | List<ShopFile> shopFileList = shopFileService.listShopFileByShopId(shopId); |
| | | String shopPicture = null; |
| | | StringJoiner shopBanners = new StringJoiner(","); |
| | | if(shopFileList!=null&&!shopFileList.isEmpty()){ |
| | | for(ShopFile shopFile : shopFileList){ |
| | | if(shopFile.getFileType()==1){ |
| | | shopPicture = shopFile.getFileUrl(); |
| | | }else{ |
| | | shopBanners.add(shopFile.getFileUrl()); |
| | | } |
| | | } |
| | | } |
| | | appShopInfoVo.setShopPicture(shopPicture); |
| | | appShopInfoVo.setShopBanners(shopBanners.toString()); |
| | | //商户证书 |
| | | List<ShopCertificate> shopCertificateList = shopCertificateService.listShopCertificateByShopId(shopId); |
| | | if(shopCertificateList!=null&&!shopCertificateList.isEmpty()){ |
| | | appShopInfoVo.setShopCertificateList(shopCertificateList); |
| | | } |
| | | return appShopInfoVo; |
| | | } |
| | | |
| | | /** |
| | | * 创建商户 |
| | | * @param MGTEditShopDto |
| | | */ |
| | | @Override |
| | | public void createShop(MgtEditShopDto MGTEditShopDto){ |
| | | Shop shop = new Shop(); |
| | | if(MGTEditShopDto.getShopId()!=null){ |
| | | shop = this.getById(MGTEditShopDto.getShopId()); |
| | | shop.setUpdateTime(new Date()); |
| | | shop.setUpdateUserId(MGTEditShopDto.getUserId()); |
| | | shop.setShopTags(null); |
| | | //清空关联记录 |
| | | shopFileService.deleteByShopId(shop.getShopId()); |
| | | shopRelTagService.deleteByShopId(shop.getShopId()); |
| | | shopRelUserService.deleteByShopId(shop.getShopId()); |
| | | }else{ |
| | | shop.setShopStatus(2); |
| | | shop.setCreateTime(new Date()); |
| | | shop.setCreateUserId(MGTEditShopDto.getUserId()); |
| | | } |
| | | BeanUtils.copyProperties(MGTEditShopDto,shop); |
| | | this.saveOrUpdate(shop); |
| | | //商户编号 |
| | | if(MGTEditShopDto.getShopId()==null){ |
| | | String shopNo = CodeFactoryUtil.getShopNo(shop.getShopId()); |
| | | shop.setShopNumber(shopNo); |
| | | } |
| | | //商户标签 |
| | | String shopTagIds = MGTEditShopDto.getShopTagIds(); |
| | | if(StringUtils.isNotBlank(shopTagIds)){ |
| | | String[] shopTagIdArray = shopTagIds.split(","); |
| | | ShopRelTag shopRelTag; |
| | | Long tagid; |
| | | StringJoiner shopTagSj = new StringJoiner(","); |
| | | SysTag sysTag; |
| | | for(String str : shopTagIdArray){ |
| | | shopRelTag = new ShopRelTag(); |
| | | tagid = Long.valueOf(str); |
| | | sysTag = sysTagService.getById(tagid); |
| | | shopRelTag.setDelFlag(0); |
| | | shopRelTag.setShopId(shop.getShopId()); |
| | | shopRelTag.setTagId(tagid); |
| | | shopRelTagService.save(shopRelTag); |
| | | shopTagSj.add(sysTag.getTagName()); |
| | | } |
| | | shop.setShopTags(shopTagSj.toString()); |
| | | this.saveOrUpdate(shop); |
| | | } |
| | | //商户关联人员 |
| | | String relUserIds = MGTEditShopDto.getRelUserIds(); |
| | | if(StringUtils.isNotBlank(relUserIds)){ |
| | | String[] relUserIdArray = relUserIds.split(","); |
| | | ShopRelUser shopRelUser; |
| | | Long userId; |
| | | SysUser sysUser; |
| | | for(String str : relUserIdArray){ |
| | | shopRelUser = new ShopRelUser(); |
| | | userId = Long.valueOf(str); |
| | | sysUser = sysUserService.selectUserById(userId); |
| | | shopRelUser.setDelFlag(0); |
| | | shopRelUser.setShopId(shop.getShopId()); |
| | | shopRelUser.setUserId(userId); |
| | | shopRelUser.setUserName(sysUser.getNickName()); |
| | | shopRelUser.setUserMobile(sysUser.getPhonenumber()); |
| | | shopRelUser.setUserDeptId(sysUser.getDeptId()); |
| | | shopRelUserService.save(shopRelUser); |
| | | } |
| | | } |
| | | //商户封面 |
| | | ShopFile shopFile = new ShopFile(); |
| | | shopFile.setDelFlag(0); |
| | | shopFile.setFileType(1); |
| | | shopFile.setFileUrl(MGTEditShopDto.getShopPicture()); |
| | | shopFile.setShopId(shop.getShopId()); |
| | | shopFileService.save(shopFile); |
| | | //商户banner |
| | | if(StringUtils.isNotBlank(MGTEditShopDto.getShopBanners())){ |
| | | String shopBanners= MGTEditShopDto.getShopBanners(); |
| | | String[] shopBannerArray = shopBanners.split(","); |
| | | for(String str : shopBannerArray){ |
| | | shopFile = new ShopFile(); |
| | | shopFile.setDelFlag(0); |
| | | shopFile.setFileType(2); |
| | | shopFile.setFileUrl(str); |
| | | shopFile.setShopId(shop.getShopId()); |
| | | shopFileService.save(shopFile); |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 修改合作时间 |
| | | * @param mgtChangeCoopDto |
| | | */ |
| | | @Override |
| | | public void changeCooperationTime(MgtChangeCoopDto mgtChangeCoopDto){ |
| | | Shop shop = this.getById(mgtChangeCoopDto.getShopId()); |
| | | String coopStartTime = mgtChangeCoopDto.getCoopStartTime(); |
| | | String coopEndTime = mgtChangeCoopDto.getCoopEndTime(); |
| | | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | try { |
| | | Date coopStartDate = simpleDateFormat.parse(coopStartTime); |
| | | Date coopEndDate = simpleDateFormat.parse(coopEndTime); |
| | | Date nowTime = new Date(); |
| | | shop.setCooperationStartTime(coopStartDate); |
| | | shop.setCooperationEndTime(coopEndDate); |
| | | Boolean inTime = false; |
| | | if(coopStartDate.compareTo(nowTime)<0&&coopEndDate.compareTo(nowTime)>0){ |
| | | inTime = true; |
| | | } |
| | | if(shop.getShopStatus()==2&&inTime){ |
| | | shop.setShopStatus(1); |
| | | } |
| | | shop.setUpdateTime(nowTime); |
| | | shop.setUpdateUserId(mgtChangeCoopDto.getUserId()); |
| | | this.saveOrUpdate(shop); |
| | | } catch (ParseException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 分页获取商户 |
| | | * @param page |
| | | * @param mgtShopPageDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<MgtShopPageVo> pageShop(Page page, MgtShopPageDto mgtShopPageDto){ |
| | | List<MgtShopPageVo> mgtShopPageVoList = shopMapper.pageShop(page, mgtShopPageDto); |
| | | return mgtShopPageVoList; |
| | | } |
| | | |
| | | /** |
| | | * 获取商户详情 |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public MgtShopInfoVo getMgtShopInfo(Long shopId){ |
| | | MgtShopInfoVo mgtShopInfoVo = new MgtShopInfoVo(); |
| | | Shop shop = this.getById(shopId); |
| | | //基本信息拷贝 |
| | | BeanUtils.copyProperties(shop,mgtShopInfoVo); |
| | | //商户标签 |
| | | List<ShopRelTag> shopRelTagList = shopRelTagService.listShopRelTagByShopId(shopId); |
| | | if(shopRelTagList!=null&&!shopRelTagList.isEmpty()){ |
| | | StringJoiner shopTagJs = new StringJoiner(","); |
| | | for(ShopRelTag shopRelTag : shopRelTagList){ |
| | | shopTagJs.add(shopRelTag.getTagId().toString()); |
| | | } |
| | | mgtShopInfoVo.setShopTagIds(shopTagJs.toString()); |
| | | } |
| | | //商户关联用户 |
| | | List<ShopRelUser> shopRelUserList = shopRelUserService.listByShopId(shopId); |
| | | if(shopRelUserList!=null&&!shopRelUserList.isEmpty()){ |
| | | StringJoiner shopUserJs = new StringJoiner(","); |
| | | StringJoiner shopUserNameJs = new StringJoiner(","); |
| | | for(ShopRelUser shopRelUser : shopRelUserList){ |
| | | shopUserJs.add(shopRelUser.getUserId().toString()); |
| | | shopUserNameJs.add(shopRelUser.getUserName()); |
| | | } |
| | | mgtShopInfoVo.setRelUserIds(shopUserJs.toString()); |
| | | mgtShopInfoVo.setRelUsers(shopUserNameJs.toString()); |
| | | } |
| | | //商户图片 |
| | | List<ShopFile> shopFileList = shopFileService.listShopFileByShopId(shopId); |
| | | if(shopFileList!=null&&!shopFileList.isEmpty()){ |
| | | StringJoiner shopBannerJs = new StringJoiner(","); |
| | | for(ShopFile shopFile : shopFileList){ |
| | | if(shopFile.getFileType()==1){ |
| | | mgtShopInfoVo.setShopPicture(shopFile.getFileUrl()); |
| | | }else{ |
| | | shopBannerJs.add(shopFile.getFileUrl()); |
| | | } |
| | | } |
| | | mgtShopInfoVo.setShopBanners(shopBannerJs.toString()); |
| | | } |
| | | //商户证书 |
| | | List<ShopCertificate> shopCertificateList = shopCertificateService.listShopCertificateByShopId(shopId); |
| | | mgtShopInfoVo.setShopCertificateList(shopCertificateList); |
| | | return mgtShopInfoVo; |
| | | } |
| | | |
| | | /** |
| | | * 修改商户标签 |
| | | * @param mgtEditShopTagDto |
| | | */ |
| | | @Override |
| | | public void editShopTag(MgtEditShopTagDto mgtEditShopTagDto){ |
| | | Long shopId = Long.valueOf(mgtEditShopTagDto.getId()); |
| | | String shopTagIds = mgtEditShopTagDto.getShopTagIds(); |
| | | String shopTags = null; |
| | | //删除以前的标签 |
| | | shopRelTagService.deleteByShopId(shopId); |
| | | if(StringUtils.isNotBlank(shopTagIds)){ |
| | | ShopRelTag shopRelTag; |
| | | SysTag sysTag; |
| | | Long tagId; |
| | | String[] shopTagIdArray = shopTagIds.split(","); |
| | | StringJoiner shopTagSj = new StringJoiner(","); |
| | | for(String str : shopTagIdArray){ |
| | | tagId = Long.valueOf(str); |
| | | sysTag = sysTagService.getById(tagId); |
| | | shopRelTag = new ShopRelTag(); |
| | | shopRelTag.setDelFlag(0); |
| | | shopRelTag.setShopId(shopId); |
| | | shopRelTag.setTagId(tagId); |
| | | shopRelTagService.save(shopRelTag); |
| | | shopTagSj.add(sysTag.getTagName()); |
| | | } |
| | | shopTags = shopTagSj.toString(); |
| | | } |
| | | Shop shop = this.getById(shopId); |
| | | shop.setShopTags(shopTags); |
| | | this.saveOrUpdate(shop); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.ShopTask; |
| | | import com.ruoyi.system.mapper.shop.ShopTaskMapper; |
| | | import com.ruoyi.system.service.shop.ShopTaskService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户跟进任务 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class ShopTaskServiceImpl extends ServiceImpl<ShopTaskMapper, ShopTask> implements ShopTaskService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.ShopTransferRecord; |
| | | import com.ruoyi.system.mapper.shop.ShopTransferRecordMapper; |
| | | import com.ruoyi.system.service.shop.ShopTransferRecordService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户员工转移记录 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class ShopTransferRecordServiceImpl extends ServiceImpl<ShopTransferRecordMapper, ShopTransferRecord> implements ShopTransferRecordService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.TaskFile; |
| | | import com.ruoyi.system.mapper.shop.TaskFileMapper; |
| | | import com.ruoyi.system.service.shop.TaskFileService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 跟进附件 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | @Service |
| | | public class TaskFileServiceImpl extends ServiceImpl<TaskFileMapper, TaskFile> implements TaskFileService { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.sys; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import javax.annotation.PostConstruct; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.ruoyi.common.core.constant.CacheConstants; |
| | | import com.ruoyi.common.core.constant.UserConstants; |
| | | import com.ruoyi.common.core.exception.ServiceException; |
| | | import com.ruoyi.common.core.text.Convert; |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | import com.ruoyi.common.redis.service.RedisService; |
| | | import com.ruoyi.system.domain.pojo.sys.SysConfig; |
| | | import com.ruoyi.system.mapper.sys.SysConfigMapper; |
| | | import com.ruoyi.system.service.sys.ISysConfigService; |
| | | |
| | | /** |
| | | * 参数配置 服务层实现 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Service |
| | | public class SysConfigServiceImpl implements ISysConfigService |
| | | { |
| | | @Autowired |
| | | private SysConfigMapper configMapper; |
| | | |
| | | @Autowired |
| | | private RedisService redisService; |
| | | |
| | | /** |
| | | * 项目启动时,初始化参数到缓存 |
| | | */ |
| | | @PostConstruct |
| | | public void init() |
| | | { |
| | | loadingConfigCache(); |
| | | } |
| | | |
| | | /** |
| | | * 查询参数配置信息 |
| | | * |
| | | * @param configId 参数配置ID |
| | | * @return 参数配置信息 |
| | | */ |
| | | @Override |
| | | public SysConfig selectConfigById(Long configId) |
| | | { |
| | | SysConfig config = new SysConfig(); |
| | | config.setConfigId(configId); |
| | | return configMapper.selectConfig(config); |
| | | } |
| | | |
| | | /** |
| | | * 根据键名查询参数配置信息 |
| | | * |
| | | * @param configKey 参数key |
| | | * @return 参数键值 |
| | | */ |
| | | @Override |
| | | public String selectConfigByKey(String configKey) |
| | | { |
| | | String configValue = Convert.toStr(redisService.getCacheObject(getCacheKey(configKey))); |
| | | if (StringUtils.isNotEmpty(configValue)) |
| | | { |
| | | return configValue; |
| | | } |
| | | SysConfig config = new SysConfig(); |
| | | config.setConfigKey(configKey); |
| | | SysConfig retConfig = configMapper.selectConfig(config); |
| | | if (StringUtils.isNotNull(retConfig)) |
| | | { |
| | | redisService.setCacheObject(getCacheKey(configKey), retConfig.getConfigValue()); |
| | | return retConfig.getConfigValue(); |
| | | } |
| | | return StringUtils.EMPTY; |
| | | } |
| | | |
| | | /** |
| | | * 查询参数配置列表 |
| | | * |
| | | * @param config 参数配置信息 |
| | | * @return 参数配置集合 |
| | | */ |
| | | @Override |
| | | public List<SysConfig> selectConfigList(SysConfig config) |
| | | { |
| | | return configMapper.selectConfigList(config); |
| | | } |
| | | |
| | | /** |
| | | * 新增参数配置 |
| | | * |
| | | * @param config 参数配置信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int insertConfig(SysConfig config) |
| | | { |
| | | int row = configMapper.insertConfig(config); |
| | | if (row > 0) |
| | | { |
| | | redisService.setCacheObject(getCacheKey(config.getConfigKey()), config.getConfigValue()); |
| | | } |
| | | return row; |
| | | } |
| | | |
| | | /** |
| | | * 修改参数配置 |
| | | * |
| | | * @param config 参数配置信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int updateConfig(SysConfig config) |
| | | { |
| | | SysConfig temp = configMapper.selectConfigById(config.getConfigId()); |
| | | if (!StringUtils.equals(temp.getConfigKey(), config.getConfigKey())) |
| | | { |
| | | redisService.deleteObject(getCacheKey(temp.getConfigKey())); |
| | | } |
| | | |
| | | int row = configMapper.updateConfig(config); |
| | | if (row > 0) |
| | | { |
| | | redisService.setCacheObject(getCacheKey(config.getConfigKey()), config.getConfigValue()); |
| | | } |
| | | return row; |
| | | } |
| | | |
| | | /** |
| | | * 批量删除参数信息 |
| | | * |
| | | * @param configIds 需要删除的参数ID |
| | | */ |
| | | @Override |
| | | public void deleteConfigByIds(Long[] configIds) |
| | | { |
| | | for (Long configId : configIds) |
| | | { |
| | | SysConfig config = selectConfigById(configId); |
| | | if (StringUtils.equals(UserConstants.YES, config.getConfigType())) |
| | | { |
| | | throw new ServiceException(String.format("内置参数【%1$s】不能删除 ", config.getConfigKey())); |
| | | } |
| | | configMapper.deleteConfigById(configId); |
| | | redisService.deleteObject(getCacheKey(config.getConfigKey())); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 加载参数缓存数据 |
| | | */ |
| | | @Override |
| | | public void loadingConfigCache() |
| | | { |
| | | List<SysConfig> configsList = configMapper.selectConfigList(new SysConfig()); |
| | | for (SysConfig config : configsList) |
| | | { |
| | | redisService.setCacheObject(getCacheKey(config.getConfigKey()), config.getConfigValue()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 清空参数缓存数据 |
| | | */ |
| | | @Override |
| | | public void clearConfigCache() |
| | | { |
| | | Collection<String> keys = redisService.keys(CacheConstants.SYS_CONFIG_KEY + "*"); |
| | | redisService.deleteObject(keys); |
| | | } |
| | | |
| | | /** |
| | | * 重置参数缓存数据 |
| | | */ |
| | | @Override |
| | | public void resetConfigCache() |
| | | { |
| | | clearConfigCache(); |
| | | loadingConfigCache(); |
| | | } |
| | | |
| | | /** |
| | | * 校验参数键名是否唯一 |
| | | * |
| | | * @param config 参数配置信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public boolean checkConfigKeyUnique(SysConfig config) |
| | | { |
| | | Long configId = StringUtils.isNull(config.getConfigId()) ? -1L : config.getConfigId(); |
| | | SysConfig info = configMapper.checkConfigKeyUnique(config.getConfigKey()); |
| | | if (StringUtils.isNotNull(info) && info.getConfigId().longValue() != configId.longValue()) |
| | | { |
| | | return UserConstants.NOT_UNIQUE; |
| | | } |
| | | return UserConstants.UNIQUE; |
| | | } |
| | | |
| | | /** |
| | | * 设置cache key |
| | | * |
| | | * @param configKey 参数键 |
| | | * @return 缓存键key |
| | | */ |
| | | private String getCacheKey(String configKey) |
| | | { |
| | | return CacheConstants.SYS_CONFIG_KEY + configKey; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.sys; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Iterator; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.ruoyi.common.core.constant.UserConstants; |
| | | import com.ruoyi.common.core.exception.ServiceException; |
| | | import com.ruoyi.common.core.text.Convert; |
| | | import com.ruoyi.common.core.utils.SpringUtils; |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | import com.ruoyi.common.datascope.annotation.DataScope; |
| | | import com.ruoyi.common.security.utils.SecurityUtils; |
| | | import com.ruoyi.system.api.domain.SysDept; |
| | | import com.ruoyi.system.api.domain.SysRole; |
| | | import com.ruoyi.system.api.domain.SysUser; |
| | | import com.ruoyi.system.domain.vo.TreeSelect; |
| | | import com.ruoyi.system.mapper.sys.SysDeptMapper; |
| | | import com.ruoyi.system.mapper.sys.SysRoleMapper; |
| | | import com.ruoyi.system.service.sys.ISysDeptService; |
| | | |
| | | /** |
| | | * 部门管理 服务实现 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Service |
| | | public class SysDeptServiceImpl implements ISysDeptService |
| | | { |
| | | @Autowired |
| | | private SysDeptMapper deptMapper; |
| | | |
| | | @Autowired |
| | | private SysRoleMapper roleMapper; |
| | | |
| | | /** |
| | | * 查询部门管理数据 |
| | | * |
| | | * @param dept 部门信息 |
| | | * @return 部门信息集合 |
| | | */ |
| | | @Override |
| | | @DataScope(deptAlias = "d") |
| | | public List<SysDept> selectDeptList(SysDept dept) |
| | | { |
| | | return deptMapper.selectDeptList(dept); |
| | | } |
| | | |
| | | /** |
| | | * 查询部门树结构信息 |
| | | * |
| | | * @param dept 部门信息 |
| | | * @return 部门树信息集合 |
| | | */ |
| | | @Override |
| | | public List<TreeSelect> selectDeptTreeList(SysDept dept) |
| | | { |
| | | List<SysDept> depts = SpringUtils.getAopProxy(this).selectDeptList(dept); |
| | | return buildDeptTreeSelect(depts); |
| | | } |
| | | |
| | | /** |
| | | * 构建前端所需要树结构 |
| | | * |
| | | * @param depts 部门列表 |
| | | * @return 树结构列表 |
| | | */ |
| | | @Override |
| | | public List<SysDept> buildDeptTree(List<SysDept> depts) |
| | | { |
| | | List<SysDept> returnList = new ArrayList<SysDept>(); |
| | | List<Long> tempList = depts.stream().map(SysDept::getDeptId).collect(Collectors.toList()); |
| | | for (SysDept dept : depts) |
| | | { |
| | | // 如果是顶级节点, 遍历该父节点的所有子节点 |
| | | if (!tempList.contains(dept.getParentId())) |
| | | { |
| | | recursionFn(depts, dept); |
| | | returnList.add(dept); |
| | | } |
| | | } |
| | | if (returnList.isEmpty()) |
| | | { |
| | | returnList = depts; |
| | | } |
| | | return returnList; |
| | | } |
| | | |
| | | /** |
| | | * 构建前端所需要下拉树结构 |
| | | * |
| | | * @param depts 部门列表 |
| | | * @return 下拉树结构列表 |
| | | */ |
| | | @Override |
| | | public List<TreeSelect> buildDeptTreeSelect(List<SysDept> depts) |
| | | { |
| | | List<SysDept> deptTrees = buildDeptTree(depts); |
| | | return deptTrees.stream().map(TreeSelect::new).collect(Collectors.toList()); |
| | | } |
| | | |
| | | /** |
| | | * 根据角色ID查询部门树信息 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 选中部门列表 |
| | | */ |
| | | @Override |
| | | public List<Long> selectDeptListByRoleId(Long roleId) |
| | | { |
| | | SysRole role = roleMapper.selectRoleById(roleId); |
| | | return deptMapper.selectDeptListByRoleId(roleId, role.isDeptCheckStrictly()); |
| | | } |
| | | |
| | | /** |
| | | * 根据部门ID查询信息 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 部门信息 |
| | | */ |
| | | @Override |
| | | public SysDept selectDeptById(Long deptId) |
| | | { |
| | | return deptMapper.selectDeptById(deptId); |
| | | } |
| | | |
| | | /** |
| | | * 根据ID查询所有子部门(正常状态) |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 子部门数 |
| | | */ |
| | | @Override |
| | | public int selectNormalChildrenDeptById(Long deptId) |
| | | { |
| | | return deptMapper.selectNormalChildrenDeptById(deptId); |
| | | } |
| | | |
| | | /** |
| | | * 是否存在子节点 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public boolean hasChildByDeptId(Long deptId) |
| | | { |
| | | int result = deptMapper.hasChildByDeptId(deptId); |
| | | return result > 0; |
| | | } |
| | | |
| | | /** |
| | | * 查询部门是否存在用户 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 结果 true 存在 false 不存在 |
| | | */ |
| | | @Override |
| | | public boolean checkDeptExistUser(Long deptId) |
| | | { |
| | | int result = deptMapper.checkDeptExistUser(deptId); |
| | | return result > 0; |
| | | } |
| | | |
| | | /** |
| | | * 校验部门名称是否唯一 |
| | | * |
| | | * @param dept 部门信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public boolean checkDeptNameUnique(SysDept dept) |
| | | { |
| | | Long deptId = StringUtils.isNull(dept.getDeptId()) ? -1L : dept.getDeptId(); |
| | | SysDept info = deptMapper.checkDeptNameUnique(dept.getDeptName(), dept.getParentId()); |
| | | if (StringUtils.isNotNull(info) && info.getDeptId().longValue() != deptId.longValue()) |
| | | { |
| | | return UserConstants.NOT_UNIQUE; |
| | | } |
| | | return UserConstants.UNIQUE; |
| | | } |
| | | |
| | | /** |
| | | * 校验部门是否有数据权限 |
| | | * |
| | | * @param deptId 部门id |
| | | */ |
| | | @Override |
| | | public void checkDeptDataScope(Long deptId) |
| | | { |
| | | if (!SysUser.isAdmin(SecurityUtils.getUserId())) |
| | | { |
| | | SysDept dept = new SysDept(); |
| | | dept.setDeptId(deptId); |
| | | List<SysDept> depts = SpringUtils.getAopProxy(this).selectDeptList(dept); |
| | | if (StringUtils.isEmpty(depts)) |
| | | { |
| | | throw new ServiceException("没有权限访问部门数据!"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 新增保存部门信息 |
| | | * |
| | | * @param dept 部门信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int insertDept(SysDept dept) |
| | | { |
| | | SysDept info = deptMapper.selectDeptById(dept.getParentId()); |
| | | // 如果父节点不为正常状态,则不允许新增子节点 |
| | | if (!UserConstants.DEPT_NORMAL.equals(info.getStatus())) |
| | | { |
| | | throw new ServiceException("部门停用,不允许新增"); |
| | | } |
| | | dept.setAncestors(info.getAncestors() + "," + dept.getParentId()); |
| | | return deptMapper.insertDept(dept); |
| | | } |
| | | |
| | | /** |
| | | * 修改保存部门信息 |
| | | * |
| | | * @param dept 部门信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int updateDept(SysDept dept) |
| | | { |
| | | SysDept newParentDept = deptMapper.selectDeptById(dept.getParentId()); |
| | | SysDept oldDept = deptMapper.selectDeptById(dept.getDeptId()); |
| | | if (StringUtils.isNotNull(newParentDept) && StringUtils.isNotNull(oldDept)) |
| | | { |
| | | String newAncestors = newParentDept.getAncestors() + "," + newParentDept.getDeptId(); |
| | | String oldAncestors = oldDept.getAncestors(); |
| | | dept.setAncestors(newAncestors); |
| | | updateDeptChildren(dept.getDeptId(), newAncestors, oldAncestors); |
| | | } |
| | | int result = deptMapper.updateDept(dept); |
| | | if (UserConstants.DEPT_NORMAL.equals(dept.getStatus()) && StringUtils.isNotEmpty(dept.getAncestors()) |
| | | && !StringUtils.equals("0", dept.getAncestors())) |
| | | { |
| | | // 如果该部门是启用状态,则启用该部门的所有上级部门 |
| | | updateParentDeptStatusNormal(dept); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * 修改该部门的父级部门状态 |
| | | * |
| | | * @param dept 当前部门 |
| | | */ |
| | | private void updateParentDeptStatusNormal(SysDept dept) |
| | | { |
| | | String ancestors = dept.getAncestors(); |
| | | Long[] deptIds = Convert.toLongArray(ancestors); |
| | | deptMapper.updateDeptStatusNormal(deptIds); |
| | | } |
| | | |
| | | /** |
| | | * 修改子元素关系 |
| | | * |
| | | * @param deptId 被修改的部门ID |
| | | * @param newAncestors 新的父ID集合 |
| | | * @param oldAncestors 旧的父ID集合 |
| | | */ |
| | | public void updateDeptChildren(Long deptId, String newAncestors, String oldAncestors) |
| | | { |
| | | List<SysDept> children = deptMapper.selectChildrenDeptById(deptId); |
| | | for (SysDept child : children) |
| | | { |
| | | child.setAncestors(child.getAncestors().replaceFirst(oldAncestors, newAncestors)); |
| | | } |
| | | if (children.size() > 0) |
| | | { |
| | | deptMapper.updateDeptChildren(children); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 删除部门管理信息 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteDeptById(Long deptId) |
| | | { |
| | | return deptMapper.deleteDeptById(deptId); |
| | | } |
| | | |
| | | /** |
| | | * 递归列表 |
| | | */ |
| | | private void recursionFn(List<SysDept> list, SysDept t) |
| | | { |
| | | // 得到子节点列表 |
| | | List<SysDept> childList = getChildList(list, t); |
| | | t.setChildren(childList); |
| | | for (SysDept tChild : childList) |
| | | { |
| | | if (hasChild(list, tChild)) |
| | | { |
| | | recursionFn(list, tChild); |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 得到子节点列表 |
| | | */ |
| | | private List<SysDept> getChildList(List<SysDept> list, SysDept t) |
| | | { |
| | | List<SysDept> tlist = new ArrayList<SysDept>(); |
| | | Iterator<SysDept> it = list.iterator(); |
| | | while (it.hasNext()) |
| | | { |
| | | SysDept n = (SysDept) it.next(); |
| | | if (StringUtils.isNotNull(n.getParentId()) && n.getParentId().longValue() == t.getDeptId().longValue()) |
| | | { |
| | | tlist.add(n); |
| | | } |
| | | } |
| | | return tlist; |
| | | } |
| | | |
| | | /** |
| | | * 判断是否有子节点 |
| | | */ |
| | | private boolean hasChild(List<SysDept> list, SysDept t) |
| | | { |
| | | return getChildList(list, t).size() > 0 ? true : false; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.sys; |
| | | |
| | | import java.util.List; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.ruoyi.common.security.utils.DictUtils; |
| | | import com.ruoyi.system.api.domain.SysDictData; |
| | | import com.ruoyi.system.mapper.sys.SysDictDataMapper; |
| | | import com.ruoyi.system.service.sys.ISysDictDataService; |
| | | |
| | | /** |
| | | * 字典 业务层处理 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Service |
| | | public class SysDictDataServiceImpl implements ISysDictDataService |
| | | { |
| | | @Autowired |
| | | private SysDictDataMapper dictDataMapper; |
| | | |
| | | /** |
| | | * 根据条件分页查询字典数据 |
| | | * |
| | | * @param dictData 字典数据信息 |
| | | * @return 字典数据集合信息 |
| | | */ |
| | | @Override |
| | | public List<SysDictData> selectDictDataList(SysDictData dictData) |
| | | { |
| | | return dictDataMapper.selectDictDataList(dictData); |
| | | } |
| | | |
| | | /** |
| | | * 根据字典类型和字典键值查询字典数据信息 |
| | | * |
| | | * @param dictType 字典类型 |
| | | * @param dictValue 字典键值 |
| | | * @return 字典标签 |
| | | */ |
| | | @Override |
| | | public String selectDictLabel(String dictType, String dictValue) |
| | | { |
| | | return dictDataMapper.selectDictLabel(dictType, dictValue); |
| | | } |
| | | |
| | | /** |
| | | * 根据字典数据ID查询信息 |
| | | * |
| | | * @param dictCode 字典数据ID |
| | | * @return 字典数据 |
| | | */ |
| | | @Override |
| | | public SysDictData selectDictDataById(Long dictCode) |
| | | { |
| | | return dictDataMapper.selectDictDataById(dictCode); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除字典数据信息 |
| | | * |
| | | * @param dictCodes 需要删除的字典数据ID |
| | | */ |
| | | @Override |
| | | public void deleteDictDataByIds(Long[] dictCodes) |
| | | { |
| | | for (Long dictCode : dictCodes) |
| | | { |
| | | SysDictData data = selectDictDataById(dictCode); |
| | | dictDataMapper.deleteDictDataById(dictCode); |
| | | List<SysDictData> dictDatas = dictDataMapper.selectDictDataByType(data.getDictType()); |
| | | DictUtils.setDictCache(data.getDictType(), dictDatas); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 新增保存字典数据信息 |
| | | * |
| | | * @param data 字典数据信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int insertDictData(SysDictData data) |
| | | { |
| | | int row = dictDataMapper.insertDictData(data); |
| | | if (row > 0) |
| | | { |
| | | List<SysDictData> dictDatas = dictDataMapper.selectDictDataByType(data.getDictType()); |
| | | DictUtils.setDictCache(data.getDictType(), dictDatas); |
| | | } |
| | | return row; |
| | | } |
| | | |
| | | /** |
| | | * 修改保存字典数据信息 |
| | | * |
| | | * @param data 字典数据信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int updateDictData(SysDictData data) |
| | | { |
| | | int row = dictDataMapper.updateDictData(data); |
| | | if (row > 0) |
| | | { |
| | | List<SysDictData> dictDatas = dictDataMapper.selectDictDataByType(data.getDictType()); |
| | | DictUtils.setDictCache(data.getDictType(), dictDatas); |
| | | } |
| | | return row; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.sys; |
| | | |
| | | import java.util.Comparator; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | import javax.annotation.PostConstruct; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import com.ruoyi.common.core.constant.UserConstants; |
| | | import com.ruoyi.common.core.exception.ServiceException; |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | import com.ruoyi.common.security.utils.DictUtils; |
| | | import com.ruoyi.system.api.domain.SysDictData; |
| | | import com.ruoyi.system.api.domain.SysDictType; |
| | | import com.ruoyi.system.mapper.sys.SysDictDataMapper; |
| | | import com.ruoyi.system.mapper.sys.SysDictTypeMapper; |
| | | import com.ruoyi.system.service.sys.ISysDictTypeService; |
| | | |
| | | /** |
| | | * 字典 业务层处理 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Service |
| | | public class SysDictTypeServiceImpl implements ISysDictTypeService |
| | | { |
| | | @Autowired |
| | | private SysDictTypeMapper dictTypeMapper; |
| | | |
| | | @Autowired |
| | | private SysDictDataMapper dictDataMapper; |
| | | |
| | | /** |
| | | * 项目启动时,初始化字典到缓存 |
| | | */ |
| | | @PostConstruct |
| | | public void init() |
| | | { |
| | | loadingDictCache(); |
| | | } |
| | | |
| | | /** |
| | | * 根据条件分页查询字典类型 |
| | | * |
| | | * @param dictType 字典类型信息 |
| | | * @return 字典类型集合信息 |
| | | */ |
| | | @Override |
| | | public List<SysDictType> selectDictTypeList(SysDictType dictType) |
| | | { |
| | | return dictTypeMapper.selectDictTypeList(dictType); |
| | | } |
| | | |
| | | /** |
| | | * 根据所有字典类型 |
| | | * |
| | | * @return 字典类型集合信息 |
| | | */ |
| | | @Override |
| | | public List<SysDictType> selectDictTypeAll() |
| | | { |
| | | return dictTypeMapper.selectDictTypeAll(); |
| | | } |
| | | |
| | | /** |
| | | * 根据字典类型查询字典数据 |
| | | * |
| | | * @param dictType 字典类型 |
| | | * @return 字典数据集合信息 |
| | | */ |
| | | @Override |
| | | public List<SysDictData> selectDictDataByType(String dictType) |
| | | { |
| | | List<SysDictData> dictDatas = DictUtils.getDictCache(dictType); |
| | | if (StringUtils.isNotEmpty(dictDatas)) |
| | | { |
| | | return dictDatas; |
| | | } |
| | | dictDatas = dictDataMapper.selectDictDataByType(dictType); |
| | | if (StringUtils.isNotEmpty(dictDatas)) |
| | | { |
| | | DictUtils.setDictCache(dictType, dictDatas); |
| | | return dictDatas; |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * 根据字典类型ID查询信息 |
| | | * |
| | | * @param dictId 字典类型ID |
| | | * @return 字典类型 |
| | | */ |
| | | @Override |
| | | public SysDictType selectDictTypeById(Long dictId) |
| | | { |
| | | return dictTypeMapper.selectDictTypeById(dictId); |
| | | } |
| | | |
| | | /** |
| | | * 根据字典类型查询信息 |
| | | * |
| | | * @param dictType 字典类型 |
| | | * @return 字典类型 |
| | | */ |
| | | @Override |
| | | public SysDictType selectDictTypeByType(String dictType) |
| | | { |
| | | return dictTypeMapper.selectDictTypeByType(dictType); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除字典类型信息 |
| | | * |
| | | * @param dictIds 需要删除的字典ID |
| | | */ |
| | | @Override |
| | | public void deleteDictTypeByIds(Long[] dictIds) |
| | | { |
| | | for (Long dictId : dictIds) |
| | | { |
| | | SysDictType dictType = selectDictTypeById(dictId); |
| | | if (dictDataMapper.countDictDataByType(dictType.getDictType()) > 0) |
| | | { |
| | | throw new ServiceException(String.format("%1$s已分配,不能删除", dictType.getDictName())); |
| | | } |
| | | dictTypeMapper.deleteDictTypeById(dictId); |
| | | DictUtils.removeDictCache(dictType.getDictType()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 加载字典缓存数据 |
| | | */ |
| | | @Override |
| | | public void loadingDictCache() |
| | | { |
| | | SysDictData dictData = new SysDictData(); |
| | | dictData.setStatus("0"); |
| | | Map<String, List<SysDictData>> dictDataMap = dictDataMapper.selectDictDataList(dictData).stream().collect(Collectors.groupingBy(SysDictData::getDictType)); |
| | | for (Map.Entry<String, List<SysDictData>> entry : dictDataMap.entrySet()) |
| | | { |
| | | DictUtils.setDictCache(entry.getKey(), entry.getValue().stream().sorted(Comparator.comparing(SysDictData::getDictSort)).collect(Collectors.toList())); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 清空字典缓存数据 |
| | | */ |
| | | @Override |
| | | public void clearDictCache() |
| | | { |
| | | DictUtils.clearDictCache(); |
| | | } |
| | | |
| | | /** |
| | | * 重置字典缓存数据 |
| | | */ |
| | | @Override |
| | | public void resetDictCache() |
| | | { |
| | | clearDictCache(); |
| | | loadingDictCache(); |
| | | } |
| | | |
| | | /** |
| | | * 新增保存字典类型信息 |
| | | * |
| | | * @param dict 字典类型信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int insertDictType(SysDictType dict) |
| | | { |
| | | int row = dictTypeMapper.insertDictType(dict); |
| | | if (row > 0) |
| | | { |
| | | DictUtils.setDictCache(dict.getDictType(), null); |
| | | } |
| | | return row; |
| | | } |
| | | |
| | | /** |
| | | * 修改保存字典类型信息 |
| | | * |
| | | * @param dict 字典类型信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int updateDictType(SysDictType dict) |
| | | { |
| | | SysDictType oldDict = dictTypeMapper.selectDictTypeById(dict.getDictId()); |
| | | dictDataMapper.updateDictDataType(oldDict.getDictType(), dict.getDictType()); |
| | | int row = dictTypeMapper.updateDictType(dict); |
| | | if (row > 0) |
| | | { |
| | | List<SysDictData> dictDatas = dictDataMapper.selectDictDataByType(dict.getDictType()); |
| | | DictUtils.setDictCache(dict.getDictType(), dictDatas); |
| | | } |
| | | return row; |
| | | } |
| | | |
| | | /** |
| | | * 校验字典类型称是否唯一 |
| | | * |
| | | * @param dict 字典类型 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public boolean checkDictTypeUnique(SysDictType dict) |
| | | { |
| | | Long dictId = StringUtils.isNull(dict.getDictId()) ? -1L : dict.getDictId(); |
| | | SysDictType dictType = dictTypeMapper.checkDictTypeUnique(dict.getDictType()); |
| | | if (StringUtils.isNotNull(dictType) && dictType.getDictId().longValue() != dictId.longValue()) |
| | | { |
| | | return UserConstants.NOT_UNIQUE; |
| | | } |
| | | return UserConstants.UNIQUE; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.sys; |
| | | |
| | | import java.util.List; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.ruoyi.system.api.domain.SysLogininfor; |
| | | import com.ruoyi.system.mapper.sys.SysLogininforMapper; |
| | | import com.ruoyi.system.service.sys.ISysLogininforService; |
| | | |
| | | /** |
| | | * 系统访问日志情况信息 服务层处理 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Service |
| | | public class SysLogininforServiceImpl implements ISysLogininforService |
| | | { |
| | | |
| | | @Autowired |
| | | private SysLogininforMapper logininforMapper; |
| | | |
| | | /** |
| | | * 新增系统登录日志 |
| | | * |
| | | * @param logininfor 访问日志对象 |
| | | */ |
| | | @Override |
| | | public int insertLogininfor(SysLogininfor logininfor) |
| | | { |
| | | return logininforMapper.insertLogininfor(logininfor); |
| | | } |
| | | |
| | | /** |
| | | * 查询系统登录日志集合 |
| | | * |
| | | * @param logininfor 访问日志对象 |
| | | * @return 登录记录集合 |
| | | */ |
| | | @Override |
| | | public List<SysLogininfor> selectLogininforList(SysLogininfor logininfor) |
| | | { |
| | | return logininforMapper.selectLogininforList(logininfor); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除系统登录日志 |
| | | * |
| | | * @param infoIds 需要删除的登录日志ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteLogininforByIds(Long[] infoIds) |
| | | { |
| | | return logininforMapper.deleteLogininforByIds(infoIds); |
| | | } |
| | | |
| | | /** |
| | | * 清空系统登录日志 |
| | | */ |
| | | @Override |
| | | public void cleanLogininfor() |
| | | { |
| | | logininforMapper.cleanLogininfor(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.sys; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.HashSet; |
| | | import java.util.Iterator; |
| | | import java.util.LinkedList; |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | import java.util.stream.Collectors; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.ruoyi.common.core.constant.Constants; |
| | | import com.ruoyi.common.core.constant.UserConstants; |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | import com.ruoyi.common.security.utils.SecurityUtils; |
| | | import com.ruoyi.system.api.domain.SysRole; |
| | | import com.ruoyi.system.api.domain.SysUser; |
| | | import com.ruoyi.system.domain.pojo.sys.SysMenu; |
| | | import com.ruoyi.system.domain.vo.MetaVo; |
| | | import com.ruoyi.system.domain.vo.RouterVo; |
| | | import com.ruoyi.system.domain.vo.TreeSelect; |
| | | import com.ruoyi.system.mapper.sys.SysMenuMapper; |
| | | import com.ruoyi.system.mapper.sys.SysRoleMapper; |
| | | import com.ruoyi.system.mapper.sys.SysRoleMenuMapper; |
| | | import com.ruoyi.system.service.sys.ISysMenuService; |
| | | |
| | | /** |
| | | * 菜单 业务层处理 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Service |
| | | public class SysMenuServiceImpl implements ISysMenuService |
| | | { |
| | | public static final String PREMISSION_STRING = "perms[\"{0}\"]"; |
| | | |
| | | @Autowired |
| | | private SysMenuMapper menuMapper; |
| | | |
| | | @Autowired |
| | | private SysRoleMapper roleMapper; |
| | | |
| | | @Autowired |
| | | private SysRoleMenuMapper roleMenuMapper; |
| | | |
| | | /** |
| | | * 根据用户查询系统菜单列表 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 菜单列表 |
| | | */ |
| | | @Override |
| | | public List<SysMenu> selectMenuList(Long userId) |
| | | { |
| | | return selectMenuList(new SysMenu(), userId); |
| | | } |
| | | |
| | | /** |
| | | * 查询系统菜单列表 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 菜单列表 |
| | | */ |
| | | @Override |
| | | public List<SysMenu> selectMenuList(SysMenu menu, Long userId) |
| | | { |
| | | List<SysMenu> menuList = null; |
| | | // 管理员显示所有菜单信息 |
| | | if (SysUser.isAdmin(userId)) |
| | | { |
| | | menuList = menuMapper.selectMenuList(menu); |
| | | } |
| | | else |
| | | { |
| | | menu.getParams().put("userId", userId); |
| | | menuList = menuMapper.selectMenuListByUserId(menu); |
| | | } |
| | | return menuList; |
| | | } |
| | | |
| | | /** |
| | | * 根据用户ID查询权限 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 权限列表 |
| | | */ |
| | | @Override |
| | | public Set<String> selectMenuPermsByUserId(Long userId) |
| | | { |
| | | List<String> perms = menuMapper.selectMenuPermsByUserId(userId); |
| | | Set<String> permsSet = new HashSet<>(); |
| | | for (String perm : perms) |
| | | { |
| | | if (StringUtils.isNotEmpty(perm)) |
| | | { |
| | | permsSet.addAll(Arrays.asList(perm.trim().split(","))); |
| | | } |
| | | } |
| | | return permsSet; |
| | | } |
| | | |
| | | /** |
| | | * 根据角色ID查询权限 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 权限列表 |
| | | */ |
| | | @Override |
| | | public Set<String> selectMenuPermsByRoleId(Long roleId) |
| | | { |
| | | List<String> perms = menuMapper.selectMenuPermsByRoleId(roleId); |
| | | Set<String> permsSet = new HashSet<>(); |
| | | for (String perm : perms) |
| | | { |
| | | if (StringUtils.isNotEmpty(perm)) |
| | | { |
| | | permsSet.addAll(Arrays.asList(perm.trim().split(","))); |
| | | } |
| | | } |
| | | return permsSet; |
| | | } |
| | | |
| | | /** |
| | | * 根据用户ID查询菜单 |
| | | * |
| | | * @param userId 用户名称 |
| | | * @return 菜单列表 |
| | | */ |
| | | @Override |
| | | public List<SysMenu> selectMenuTreeByUserId(Long userId) |
| | | { |
| | | List<SysMenu> menus = null; |
| | | if (SecurityUtils.isAdmin(userId)) |
| | | { |
| | | menus = menuMapper.selectMenuTreeAll(); |
| | | } |
| | | else |
| | | { |
| | | menus = menuMapper.selectMenuTreeByUserId(userId); |
| | | } |
| | | return getChildPerms(menus, 0); |
| | | } |
| | | |
| | | /** |
| | | * 根据角色ID查询菜单树信息 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 选中菜单列表 |
| | | */ |
| | | @Override |
| | | public List<Long> selectMenuListByRoleId(Long roleId) |
| | | { |
| | | SysRole role = roleMapper.selectRoleById(roleId); |
| | | return menuMapper.selectMenuListByRoleId(roleId, role.isMenuCheckStrictly()); |
| | | } |
| | | |
| | | /** |
| | | * 构建前端路由所需要的菜单 |
| | | * |
| | | * @param menus 菜单列表 |
| | | * @return 路由列表 |
| | | */ |
| | | @Override |
| | | public List<RouterVo> buildMenus(List<SysMenu> menus) |
| | | { |
| | | List<RouterVo> routers = new LinkedList<RouterVo>(); |
| | | for (SysMenu menu : menus) |
| | | { |
| | | RouterVo router = new RouterVo(); |
| | | router.setHidden("1".equals(menu.getVisible())); |
| | | router.setName(getRouteName(menu)); |
| | | router.setPath(getRouterPath(menu)); |
| | | router.setComponent(getComponent(menu)); |
| | | router.setQuery(menu.getQuery()); |
| | | router.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), StringUtils.equals("1", menu.getIsCache()), menu.getPath())); |
| | | List<SysMenu> cMenus = menu.getChildren(); |
| | | if (!cMenus.isEmpty() && cMenus.size() > 0 && UserConstants.TYPE_DIR.equals(menu.getMenuType())) |
| | | { |
| | | router.setAlwaysShow(true); |
| | | router.setRedirect("noRedirect"); |
| | | router.setChildren(buildMenus(cMenus)); |
| | | } |
| | | else if (isMenuFrame(menu)) |
| | | { |
| | | router.setMeta(null); |
| | | List<RouterVo> childrenList = new ArrayList<RouterVo>(); |
| | | RouterVo children = new RouterVo(); |
| | | children.setPath(menu.getPath()); |
| | | children.setComponent(menu.getComponent()); |
| | | children.setName(StringUtils.capitalize(menu.getPath())); |
| | | children.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), StringUtils.equals("1", menu.getIsCache()), menu.getPath())); |
| | | children.setQuery(menu.getQuery()); |
| | | childrenList.add(children); |
| | | router.setChildren(childrenList); |
| | | } |
| | | else if (menu.getParentId().intValue() == 0 && isInnerLink(menu)) |
| | | { |
| | | router.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon())); |
| | | router.setPath("/"); |
| | | List<RouterVo> childrenList = new ArrayList<RouterVo>(); |
| | | RouterVo children = new RouterVo(); |
| | | String routerPath = innerLinkReplaceEach(menu.getPath()); |
| | | children.setPath(routerPath); |
| | | children.setComponent(UserConstants.INNER_LINK); |
| | | children.setName(StringUtils.capitalize(routerPath)); |
| | | children.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), menu.getPath())); |
| | | childrenList.add(children); |
| | | router.setChildren(childrenList); |
| | | } |
| | | routers.add(router); |
| | | } |
| | | return routers; |
| | | } |
| | | |
| | | /** |
| | | * 构建前端所需要树结构 |
| | | * |
| | | * @param menus 菜单列表 |
| | | * @return 树结构列表 |
| | | */ |
| | | @Override |
| | | public List<SysMenu> buildMenuTree(List<SysMenu> menus) |
| | | { |
| | | List<SysMenu> returnList = new ArrayList<SysMenu>(); |
| | | List<Long> tempList = menus.stream().map(SysMenu::getMenuId).collect(Collectors.toList()); |
| | | for (Iterator<SysMenu> iterator = menus.iterator(); iterator.hasNext();) |
| | | { |
| | | SysMenu menu = (SysMenu) iterator.next(); |
| | | // 如果是顶级节点, 遍历该父节点的所有子节点 |
| | | if (!tempList.contains(menu.getParentId())) |
| | | { |
| | | recursionFn(menus, menu); |
| | | returnList.add(menu); |
| | | } |
| | | } |
| | | if (returnList.isEmpty()) |
| | | { |
| | | returnList = menus; |
| | | } |
| | | return returnList; |
| | | } |
| | | |
| | | /** |
| | | * 构建前端所需要下拉树结构 |
| | | * |
| | | * @param menus 菜单列表 |
| | | * @return 下拉树结构列表 |
| | | */ |
| | | @Override |
| | | public List<TreeSelect> buildMenuTreeSelect(List<SysMenu> menus) |
| | | { |
| | | List<SysMenu> menuTrees = buildMenuTree(menus); |
| | | return menuTrees.stream().map(TreeSelect::new).collect(Collectors.toList()); |
| | | } |
| | | |
| | | /** |
| | | * 根据菜单ID查询信息 |
| | | * |
| | | * @param menuId 菜单ID |
| | | * @return 菜单信息 |
| | | */ |
| | | @Override |
| | | public SysMenu selectMenuById(Long menuId) |
| | | { |
| | | return menuMapper.selectMenuById(menuId); |
| | | } |
| | | |
| | | /** |
| | | * 是否存在菜单子节点 |
| | | * |
| | | * @param menuId 菜单ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public boolean hasChildByMenuId(Long menuId) |
| | | { |
| | | int result = menuMapper.hasChildByMenuId(menuId); |
| | | return result > 0; |
| | | } |
| | | |
| | | /** |
| | | * 查询菜单使用数量 |
| | | * |
| | | * @param menuId 菜单ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public boolean checkMenuExistRole(Long menuId) |
| | | { |
| | | int result = roleMenuMapper.checkMenuExistRole(menuId); |
| | | return result > 0; |
| | | } |
| | | |
| | | /** |
| | | * 新增保存菜单信息 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int insertMenu(SysMenu menu) |
| | | { |
| | | return menuMapper.insertMenu(menu); |
| | | } |
| | | |
| | | /** |
| | | * 修改保存菜单信息 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int updateMenu(SysMenu menu) |
| | | { |
| | | return menuMapper.updateMenu(menu); |
| | | } |
| | | |
| | | /** |
| | | * 删除菜单管理信息 |
| | | * |
| | | * @param menuId 菜单ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteMenuById(Long menuId) |
| | | { |
| | | return menuMapper.deleteMenuById(menuId); |
| | | } |
| | | |
| | | /** |
| | | * 校验菜单名称是否唯一 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public boolean checkMenuNameUnique(SysMenu menu) |
| | | { |
| | | Long menuId = StringUtils.isNull(menu.getMenuId()) ? -1L : menu.getMenuId(); |
| | | SysMenu info = menuMapper.checkMenuNameUnique(menu.getMenuName(), menu.getParentId()); |
| | | if (StringUtils.isNotNull(info) && info.getMenuId().longValue() != menuId.longValue()) |
| | | { |
| | | return UserConstants.NOT_UNIQUE; |
| | | } |
| | | return UserConstants.UNIQUE; |
| | | } |
| | | |
| | | /** |
| | | * 获取路由名称 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 路由名称 |
| | | */ |
| | | public String getRouteName(SysMenu menu) |
| | | { |
| | | String routerName = StringUtils.capitalize(menu.getPath()); |
| | | // 非外链并且是一级目录(类型为目录) |
| | | if (isMenuFrame(menu)) |
| | | { |
| | | routerName = StringUtils.EMPTY; |
| | | } |
| | | return routerName; |
| | | } |
| | | |
| | | /** |
| | | * 获取路由地址 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 路由地址 |
| | | */ |
| | | public String getRouterPath(SysMenu menu) |
| | | { |
| | | String routerPath = menu.getPath(); |
| | | // 内链打开外网方式 |
| | | if (menu.getParentId().intValue() != 0 && isInnerLink(menu)) |
| | | { |
| | | routerPath = innerLinkReplaceEach(routerPath); |
| | | } |
| | | // 非外链并且是一级目录(类型为目录) |
| | | if (0 == menu.getParentId().intValue() && UserConstants.TYPE_DIR.equals(menu.getMenuType()) |
| | | && UserConstants.NO_FRAME.equals(menu.getIsFrame())) |
| | | { |
| | | routerPath = "/" + menu.getPath(); |
| | | } |
| | | // 非外链并且是一级目录(类型为菜单) |
| | | else if (isMenuFrame(menu)) |
| | | { |
| | | routerPath = "/"; |
| | | } |
| | | return routerPath; |
| | | } |
| | | |
| | | /** |
| | | * 获取组件信息 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 组件信息 |
| | | */ |
| | | public String getComponent(SysMenu menu) |
| | | { |
| | | String component = UserConstants.LAYOUT; |
| | | if (StringUtils.isNotEmpty(menu.getComponent()) && !isMenuFrame(menu)) |
| | | { |
| | | component = menu.getComponent(); |
| | | } |
| | | else if (StringUtils.isEmpty(menu.getComponent()) && menu.getParentId().intValue() != 0 && isInnerLink(menu)) |
| | | { |
| | | component = UserConstants.INNER_LINK; |
| | | } |
| | | else if (StringUtils.isEmpty(menu.getComponent()) && isParentView(menu)) |
| | | { |
| | | component = UserConstants.PARENT_VIEW; |
| | | } |
| | | return component; |
| | | } |
| | | |
| | | /** |
| | | * 是否为菜单内部跳转 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean isMenuFrame(SysMenu menu) |
| | | { |
| | | return menu.getParentId().intValue() == 0 && UserConstants.TYPE_MENU.equals(menu.getMenuType()) |
| | | && menu.getIsFrame().equals(UserConstants.NO_FRAME); |
| | | } |
| | | |
| | | /** |
| | | * 是否为内链组件 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean isInnerLink(SysMenu menu) |
| | | { |
| | | return menu.getIsFrame().equals(UserConstants.NO_FRAME) && StringUtils.ishttp(menu.getPath()); |
| | | } |
| | | |
| | | /** |
| | | * 是否为parent_view组件 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean isParentView(SysMenu menu) |
| | | { |
| | | return menu.getParentId().intValue() != 0 && UserConstants.TYPE_DIR.equals(menu.getMenuType()); |
| | | } |
| | | |
| | | /** |
| | | * 根据父节点的ID获取所有子节点 |
| | | * |
| | | * @param list 分类表 |
| | | * @param parentId 传入的父节点ID |
| | | * @return String |
| | | */ |
| | | public List<SysMenu> getChildPerms(List<SysMenu> list, int parentId) |
| | | { |
| | | List<SysMenu> returnList = new ArrayList<SysMenu>(); |
| | | for (Iterator<SysMenu> iterator = list.iterator(); iterator.hasNext();) |
| | | { |
| | | SysMenu t = (SysMenu) iterator.next(); |
| | | // 一、根据传入的某个父节点ID,遍历该父节点的所有子节点 |
| | | if (t.getParentId() == parentId) |
| | | { |
| | | recursionFn(list, t); |
| | | returnList.add(t); |
| | | } |
| | | } |
| | | return returnList; |
| | | } |
| | | |
| | | /** |
| | | * 递归列表 |
| | | * |
| | | * @param list |
| | | * @param t |
| | | */ |
| | | private void recursionFn(List<SysMenu> list, SysMenu t) |
| | | { |
| | | // 得到子节点列表 |
| | | List<SysMenu> childList = getChildList(list, t); |
| | | t.setChildren(childList); |
| | | for (SysMenu tChild : childList) |
| | | { |
| | | if (hasChild(list, tChild)) |
| | | { |
| | | recursionFn(list, tChild); |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 得到子节点列表 |
| | | */ |
| | | private List<SysMenu> getChildList(List<SysMenu> list, SysMenu t) |
| | | { |
| | | List<SysMenu> tlist = new ArrayList<SysMenu>(); |
| | | Iterator<SysMenu> it = list.iterator(); |
| | | while (it.hasNext()) |
| | | { |
| | | SysMenu n = (SysMenu) it.next(); |
| | | if (n.getParentId().longValue() == t.getMenuId().longValue()) |
| | | { |
| | | tlist.add(n); |
| | | } |
| | | } |
| | | return tlist; |
| | | } |
| | | |
| | | /** |
| | | * 判断是否有子节点 |
| | | */ |
| | | private boolean hasChild(List<SysMenu> list, SysMenu t) |
| | | { |
| | | return getChildList(list, t).size() > 0; |
| | | } |
| | | |
| | | /** |
| | | * 内链域名特殊字符替换 |
| | | * |
| | | * @return |
| | | */ |
| | | public String innerLinkReplaceEach(String path) |
| | | { |
| | | return StringUtils.replaceEach(path, new String[] { Constants.HTTP, Constants.HTTPS, Constants.WWW, "." }, |
| | | new String[] { "", "", "", "/" }); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.sys; |
| | | |
| | | import java.util.List; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.ruoyi.system.domain.pojo.sys.SysNotice; |
| | | import com.ruoyi.system.mapper.sys.SysNoticeMapper; |
| | | import com.ruoyi.system.service.sys.ISysNoticeService; |
| | | |
| | | /** |
| | | * 公告 服务层实现 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Service |
| | | public class SysNoticeServiceImpl implements ISysNoticeService |
| | | { |
| | | @Autowired |
| | | private SysNoticeMapper noticeMapper; |
| | | |
| | | /** |
| | | * 查询公告信息 |
| | | * |
| | | * @param noticeId 公告ID |
| | | * @return 公告信息 |
| | | */ |
| | | @Override |
| | | public SysNotice selectNoticeById(Long noticeId) |
| | | { |
| | | return noticeMapper.selectNoticeById(noticeId); |
| | | } |
| | | |
| | | /** |
| | | * 查询公告列表 |
| | | * |
| | | * @param notice 公告信息 |
| | | * @return 公告集合 |
| | | */ |
| | | @Override |
| | | public List<SysNotice> selectNoticeList(SysNotice notice) |
| | | { |
| | | return noticeMapper.selectNoticeList(notice); |
| | | } |
| | | |
| | | /** |
| | | * 新增公告 |
| | | * |
| | | * @param notice 公告信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int insertNotice(SysNotice notice) |
| | | { |
| | | return noticeMapper.insertNotice(notice); |
| | | } |
| | | |
| | | /** |
| | | * 修改公告 |
| | | * |
| | | * @param notice 公告信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int updateNotice(SysNotice notice) |
| | | { |
| | | return noticeMapper.updateNotice(notice); |
| | | } |
| | | |
| | | /** |
| | | * 删除公告对象 |
| | | * |
| | | * @param noticeId 公告ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteNoticeById(Long noticeId) |
| | | { |
| | | return noticeMapper.deleteNoticeById(noticeId); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除公告信息 |
| | | * |
| | | * @param noticeIds 需要删除的公告ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteNoticeByIds(Long[] noticeIds) |
| | | { |
| | | return noticeMapper.deleteNoticeByIds(noticeIds); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.sys; |
| | | |
| | | import java.util.List; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.ruoyi.system.api.domain.SysOperLog; |
| | | import com.ruoyi.system.mapper.sys.SysOperLogMapper; |
| | | import com.ruoyi.system.service.sys.ISysOperLogService; |
| | | |
| | | /** |
| | | * 操作日志 服务层处理 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Service |
| | | public class SysOperLogServiceImpl implements ISysOperLogService |
| | | { |
| | | @Autowired |
| | | private SysOperLogMapper operLogMapper; |
| | | |
| | | /** |
| | | * 新增操作日志 |
| | | * |
| | | * @param operLog 操作日志对象 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int insertOperlog(SysOperLog operLog) |
| | | { |
| | | return operLogMapper.insertOperlog(operLog); |
| | | } |
| | | |
| | | /** |
| | | * 查询系统操作日志集合 |
| | | * |
| | | * @param operLog 操作日志对象 |
| | | * @return 操作日志集合 |
| | | */ |
| | | @Override |
| | | public List<SysOperLog> selectOperLogList(SysOperLog operLog) |
| | | { |
| | | return operLogMapper.selectOperLogList(operLog); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除系统操作日志 |
| | | * |
| | | * @param operIds 需要删除的操作日志ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteOperLogByIds(Long[] operIds) |
| | | { |
| | | return operLogMapper.deleteOperLogByIds(operIds); |
| | | } |
| | | |
| | | /** |
| | | * 查询操作日志详细 |
| | | * |
| | | * @param operId 操作ID |
| | | * @return 操作日志对象 |
| | | */ |
| | | @Override |
| | | public SysOperLog selectOperLogById(Long operId) |
| | | { |
| | | return operLogMapper.selectOperLogById(operId); |
| | | } |
| | | |
| | | /** |
| | | * 清空操作日志 |
| | | */ |
| | | @Override |
| | | public void cleanOperLog() |
| | | { |
| | | operLogMapper.cleanOperLog(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.sys; |
| | | |
| | | import java.util.HashSet; |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.ruoyi.system.api.domain.SysRole; |
| | | import com.ruoyi.system.api.domain.SysUser; |
| | | import com.ruoyi.system.service.sys.ISysMenuService; |
| | | import com.ruoyi.system.service.sys.ISysPermissionService; |
| | | import com.ruoyi.system.service.sys.ISysRoleService; |
| | | |
| | | /** |
| | | * 用户权限处理 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Service |
| | | public class SysPermissionServiceImpl implements ISysPermissionService |
| | | { |
| | | @Autowired |
| | | private ISysRoleService roleService; |
| | | |
| | | @Autowired |
| | | private ISysMenuService menuService; |
| | | |
| | | /** |
| | | * 获取角色数据权限 |
| | | * |
| | | * @param userId 用户Id |
| | | * @return 角色权限信息 |
| | | */ |
| | | @Override |
| | | public Set<String> getRolePermission(SysUser user) |
| | | { |
| | | Set<String> roles = new HashSet<String>(); |
| | | // 管理员拥有所有权限 |
| | | if (user.isAdmin()) |
| | | { |
| | | roles.add("admin"); |
| | | } |
| | | else |
| | | { |
| | | roles.addAll(roleService.selectRolePermissionByUserId(user.getUserId())); |
| | | } |
| | | return roles; |
| | | } |
| | | |
| | | /** |
| | | * 获取菜单数据权限 |
| | | * |
| | | * @param userId 用户Id |
| | | * @return 菜单权限信息 |
| | | */ |
| | | @Override |
| | | public Set<String> getMenuPermission(SysUser user) |
| | | { |
| | | Set<String> perms = new HashSet<String>(); |
| | | // 管理员拥有所有权限 |
| | | if (user.isAdmin()) |
| | | { |
| | | perms.add("*:*:*"); |
| | | } |
| | | else |
| | | { |
| | | List<SysRole> roles = user.getRoles(); |
| | | if (!roles.isEmpty() && roles.size() > 1) |
| | | { |
| | | // 多角色设置permissions属性,以便数据权限匹配权限 |
| | | for (SysRole role : roles) |
| | | { |
| | | Set<String> rolePerms = menuService.selectMenuPermsByRoleId(role.getRoleId()); |
| | | role.setPermissions(rolePerms); |
| | | perms.addAll(rolePerms); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | perms.addAll(menuService.selectMenuPermsByUserId(user.getUserId())); |
| | | } |
| | | } |
| | | return perms; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.sys; |
| | | |
| | | import java.util.List; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.ruoyi.common.core.constant.UserConstants; |
| | | import com.ruoyi.common.core.exception.ServiceException; |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | import com.ruoyi.system.domain.pojo.sys.SysPost; |
| | | import com.ruoyi.system.mapper.sys.SysPostMapper; |
| | | import com.ruoyi.system.mapper.sys.SysUserPostMapper; |
| | | import com.ruoyi.system.service.sys.ISysPostService; |
| | | |
| | | /** |
| | | * 岗位信息 服务层处理 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Service |
| | | public class SysPostServiceImpl implements ISysPostService |
| | | { |
| | | @Autowired |
| | | private SysPostMapper postMapper; |
| | | |
| | | @Autowired |
| | | private SysUserPostMapper userPostMapper; |
| | | |
| | | /** |
| | | * 查询岗位信息集合 |
| | | * |
| | | * @param post 岗位信息 |
| | | * @return 岗位信息集合 |
| | | */ |
| | | @Override |
| | | public List<SysPost> selectPostList(SysPost post) |
| | | { |
| | | return postMapper.selectPostList(post); |
| | | } |
| | | |
| | | /** |
| | | * 查询所有岗位 |
| | | * |
| | | * @return 岗位列表 |
| | | */ |
| | | @Override |
| | | public List<SysPost> selectPostAll() |
| | | { |
| | | return postMapper.selectPostAll(); |
| | | } |
| | | |
| | | /** |
| | | * 通过岗位ID查询岗位信息 |
| | | * |
| | | * @param postId 岗位ID |
| | | * @return 角色对象信息 |
| | | */ |
| | | @Override |
| | | public SysPost selectPostById(Long postId) |
| | | { |
| | | return postMapper.selectPostById(postId); |
| | | } |
| | | |
| | | /** |
| | | * 根据用户ID获取岗位选择框列表 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 选中岗位ID列表 |
| | | */ |
| | | @Override |
| | | public List<Long> selectPostListByUserId(Long userId) |
| | | { |
| | | return postMapper.selectPostListByUserId(userId); |
| | | } |
| | | |
| | | /** |
| | | * 校验岗位名称是否唯一 |
| | | * |
| | | * @param post 岗位信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public boolean checkPostNameUnique(SysPost post) |
| | | { |
| | | Long postId = StringUtils.isNull(post.getPostId()) ? -1L : post.getPostId(); |
| | | SysPost info = postMapper.checkPostNameUnique(post.getPostName()); |
| | | if (StringUtils.isNotNull(info) && info.getPostId().longValue() != postId.longValue()) |
| | | { |
| | | return UserConstants.NOT_UNIQUE; |
| | | } |
| | | return UserConstants.UNIQUE; |
| | | } |
| | | |
| | | /** |
| | | * 校验岗位编码是否唯一 |
| | | * |
| | | * @param post 岗位信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public boolean checkPostCodeUnique(SysPost post) |
| | | { |
| | | Long postId = StringUtils.isNull(post.getPostId()) ? -1L : post.getPostId(); |
| | | SysPost info = postMapper.checkPostCodeUnique(post.getPostCode()); |
| | | if (StringUtils.isNotNull(info) && info.getPostId().longValue() != postId.longValue()) |
| | | { |
| | | return UserConstants.NOT_UNIQUE; |
| | | } |
| | | return UserConstants.UNIQUE; |
| | | } |
| | | |
| | | /** |
| | | * 通过岗位ID查询岗位使用数量 |
| | | * |
| | | * @param postId 岗位ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int countUserPostById(Long postId) |
| | | { |
| | | return userPostMapper.countUserPostById(postId); |
| | | } |
| | | |
| | | /** |
| | | * 删除岗位信息 |
| | | * |
| | | * @param postId 岗位ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deletePostById(Long postId) |
| | | { |
| | | return postMapper.deletePostById(postId); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除岗位信息 |
| | | * |
| | | * @param postIds 需要删除的岗位ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deletePostByIds(Long[] postIds) |
| | | { |
| | | for (Long postId : postIds) |
| | | { |
| | | SysPost post = selectPostById(postId); |
| | | if (countUserPostById(postId) > 0) |
| | | { |
| | | throw new ServiceException(String.format("%1$s已分配,不能删除", post.getPostName())); |
| | | } |
| | | } |
| | | return postMapper.deletePostByIds(postIds); |
| | | } |
| | | |
| | | /** |
| | | * 新增保存岗位信息 |
| | | * |
| | | * @param post 岗位信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int insertPost(SysPost post) |
| | | { |
| | | return postMapper.insertPost(post); |
| | | } |
| | | |
| | | /** |
| | | * 修改保存岗位信息 |
| | | * |
| | | * @param post 岗位信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int updatePost(SysPost post) |
| | | { |
| | | return postMapper.updatePost(post); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.sys; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.HashSet; |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import com.ruoyi.common.core.constant.UserConstants; |
| | | import com.ruoyi.common.core.exception.ServiceException; |
| | | import com.ruoyi.common.core.utils.SpringUtils; |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | import com.ruoyi.common.datascope.annotation.DataScope; |
| | | import com.ruoyi.common.security.utils.SecurityUtils; |
| | | import com.ruoyi.system.api.domain.SysRole; |
| | | import com.ruoyi.system.api.domain.SysUser; |
| | | import com.ruoyi.system.domain.pojo.sys.SysRoleDept; |
| | | import com.ruoyi.system.domain.pojo.sys.SysRoleMenu; |
| | | import com.ruoyi.system.domain.pojo.sys.SysUserRole; |
| | | import com.ruoyi.system.mapper.sys.SysRoleDeptMapper; |
| | | import com.ruoyi.system.mapper.sys.SysRoleMapper; |
| | | import com.ruoyi.system.mapper.sys.SysRoleMenuMapper; |
| | | import com.ruoyi.system.mapper.sys.SysUserRoleMapper; |
| | | import com.ruoyi.system.service.sys.ISysRoleService; |
| | | |
| | | /** |
| | | * 角色 业务层处理 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Service |
| | | public class SysRoleServiceImpl implements ISysRoleService |
| | | { |
| | | @Autowired |
| | | private SysRoleMapper roleMapper; |
| | | |
| | | @Autowired |
| | | private SysRoleMenuMapper roleMenuMapper; |
| | | |
| | | @Autowired |
| | | private SysUserRoleMapper userRoleMapper; |
| | | |
| | | @Autowired |
| | | private SysRoleDeptMapper roleDeptMapper; |
| | | |
| | | /** |
| | | * 根据条件分页查询角色数据 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 角色数据集合信息 |
| | | */ |
| | | @Override |
| | | @DataScope(deptAlias = "d") |
| | | public List<SysRole> selectRoleList(SysRole role) |
| | | { |
| | | return roleMapper.selectRoleList(role); |
| | | } |
| | | |
| | | /** |
| | | * 根据用户ID查询角色 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 角色列表 |
| | | */ |
| | | @Override |
| | | public List<SysRole> selectRolesByUserId(Long userId) |
| | | { |
| | | List<SysRole> userRoles = roleMapper.selectRolePermissionByUserId(userId); |
| | | List<SysRole> roles = selectRoleAll(); |
| | | for (SysRole role : roles) |
| | | { |
| | | for (SysRole userRole : userRoles) |
| | | { |
| | | if (role.getRoleId().longValue() == userRole.getRoleId().longValue()) |
| | | { |
| | | role.setFlag(true); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | return roles; |
| | | } |
| | | |
| | | /** |
| | | * 根据用户ID查询权限 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 权限列表 |
| | | */ |
| | | @Override |
| | | public Set<String> selectRolePermissionByUserId(Long userId) |
| | | { |
| | | List<SysRole> perms = roleMapper.selectRolePermissionByUserId(userId); |
| | | Set<String> permsSet = new HashSet<>(); |
| | | for (SysRole perm : perms) |
| | | { |
| | | if (StringUtils.isNotNull(perm)) |
| | | { |
| | | permsSet.addAll(Arrays.asList(perm.getRoleKey().trim().split(","))); |
| | | } |
| | | } |
| | | return permsSet; |
| | | } |
| | | |
| | | /** |
| | | * 查询所有角色 |
| | | * |
| | | * @return 角色列表 |
| | | */ |
| | | @Override |
| | | public List<SysRole> selectRoleAll() |
| | | { |
| | | return SpringUtils.getAopProxy(this).selectRoleList(new SysRole()); |
| | | } |
| | | |
| | | /** |
| | | * 根据用户ID获取角色选择框列表 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 选中角色ID列表 |
| | | */ |
| | | @Override |
| | | public List<Long> selectRoleListByUserId(Long userId) |
| | | { |
| | | return roleMapper.selectRoleListByUserId(userId); |
| | | } |
| | | |
| | | /** |
| | | * 通过角色ID查询角色 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 角色对象信息 |
| | | */ |
| | | @Override |
| | | public SysRole selectRoleById(Long roleId) |
| | | { |
| | | return roleMapper.selectRoleById(roleId); |
| | | } |
| | | |
| | | /** |
| | | * 校验角色名称是否唯一 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public boolean checkRoleNameUnique(SysRole role) |
| | | { |
| | | Long roleId = StringUtils.isNull(role.getRoleId()) ? -1L : role.getRoleId(); |
| | | SysRole info = roleMapper.checkRoleNameUnique(role.getRoleName()); |
| | | if (StringUtils.isNotNull(info) && info.getRoleId().longValue() != roleId.longValue()) |
| | | { |
| | | return UserConstants.NOT_UNIQUE; |
| | | } |
| | | return UserConstants.UNIQUE; |
| | | } |
| | | |
| | | /** |
| | | * 校验角色权限是否唯一 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public boolean checkRoleKeyUnique(SysRole role) |
| | | { |
| | | Long roleId = StringUtils.isNull(role.getRoleId()) ? -1L : role.getRoleId(); |
| | | SysRole info = roleMapper.checkRoleKeyUnique(role.getRoleKey()); |
| | | if (StringUtils.isNotNull(info) && info.getRoleId().longValue() != roleId.longValue()) |
| | | { |
| | | return UserConstants.NOT_UNIQUE; |
| | | } |
| | | return UserConstants.UNIQUE; |
| | | } |
| | | |
| | | /** |
| | | * 校验角色是否允许操作 |
| | | * |
| | | * @param role 角色信息 |
| | | */ |
| | | @Override |
| | | public void checkRoleAllowed(SysRole role) |
| | | { |
| | | if (StringUtils.isNotNull(role.getRoleId()) && role.isAdmin()) |
| | | { |
| | | throw new ServiceException("不允许操作超级管理员角色"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 校验角色是否有数据权限 |
| | | * |
| | | * @param roleId 角色id |
| | | */ |
| | | @Override |
| | | public void checkRoleDataScope(Long roleId) |
| | | { |
| | | if (!SysUser.isAdmin(SecurityUtils.getUserId())) |
| | | { |
| | | SysRole role = new SysRole(); |
| | | role.setRoleId(roleId); |
| | | List<SysRole> roles = SpringUtils.getAopProxy(this).selectRoleList(role); |
| | | if (StringUtils.isEmpty(roles)) |
| | | { |
| | | throw new ServiceException("没有权限访问角色数据!"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 通过角色ID查询角色使用数量 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int countUserRoleByRoleId(Long roleId) |
| | | { |
| | | return userRoleMapper.countUserRoleByRoleId(roleId); |
| | | } |
| | | |
| | | /** |
| | | * 新增保存角色信息 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int insertRole(SysRole role) |
| | | { |
| | | // 新增角色信息 |
| | | roleMapper.insertRole(role); |
| | | return insertRoleMenu(role); |
| | | } |
| | | |
| | | /** |
| | | * 修改保存角色信息 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int updateRole(SysRole role) |
| | | { |
| | | // 修改角色信息 |
| | | roleMapper.updateRole(role); |
| | | // 删除角色与菜单关联 |
| | | roleMenuMapper.deleteRoleMenuByRoleId(role.getRoleId()); |
| | | return insertRoleMenu(role); |
| | | } |
| | | |
| | | /** |
| | | * 修改角色状态 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int updateRoleStatus(SysRole role) |
| | | { |
| | | return roleMapper.updateRole(role); |
| | | } |
| | | |
| | | /** |
| | | * 修改数据权限信息 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int authDataScope(SysRole role) |
| | | { |
| | | // 修改角色信息 |
| | | roleMapper.updateRole(role); |
| | | // 删除角色与部门关联 |
| | | roleDeptMapper.deleteRoleDeptByRoleId(role.getRoleId()); |
| | | // 新增角色和部门信息(数据权限) |
| | | return insertRoleDept(role); |
| | | } |
| | | |
| | | /** |
| | | * 新增角色菜单信息 |
| | | * |
| | | * @param role 角色对象 |
| | | */ |
| | | public int insertRoleMenu(SysRole role) |
| | | { |
| | | int rows = 1; |
| | | // 新增用户与角色管理 |
| | | List<SysRoleMenu> list = new ArrayList<SysRoleMenu>(); |
| | | for (Long menuId : role.getMenuIds()) |
| | | { |
| | | SysRoleMenu rm = new SysRoleMenu(); |
| | | rm.setRoleId(role.getRoleId()); |
| | | rm.setMenuId(menuId); |
| | | list.add(rm); |
| | | } |
| | | if (list.size() > 0) |
| | | { |
| | | rows = roleMenuMapper.batchRoleMenu(list); |
| | | } |
| | | return rows; |
| | | } |
| | | |
| | | /** |
| | | * 新增角色部门信息(数据权限) |
| | | * |
| | | * @param role 角色对象 |
| | | */ |
| | | public int insertRoleDept(SysRole role) |
| | | { |
| | | int rows = 1; |
| | | // 新增角色与部门(数据权限)管理 |
| | | List<SysRoleDept> list = new ArrayList<SysRoleDept>(); |
| | | for (Long deptId : role.getDeptIds()) |
| | | { |
| | | SysRoleDept rd = new SysRoleDept(); |
| | | rd.setRoleId(role.getRoleId()); |
| | | rd.setDeptId(deptId); |
| | | list.add(rd); |
| | | } |
| | | if (list.size() > 0) |
| | | { |
| | | rows = roleDeptMapper.batchRoleDept(list); |
| | | } |
| | | return rows; |
| | | } |
| | | |
| | | /** |
| | | * 通过角色ID删除角色 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int deleteRoleById(Long roleId) |
| | | { |
| | | // 删除角色与菜单关联 |
| | | roleMenuMapper.deleteRoleMenuByRoleId(roleId); |
| | | // 删除角色与部门关联 |
| | | roleDeptMapper.deleteRoleDeptByRoleId(roleId); |
| | | return roleMapper.deleteRoleById(roleId); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除角色信息 |
| | | * |
| | | * @param roleIds 需要删除的角色ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int deleteRoleByIds(Long[] roleIds) |
| | | { |
| | | for (Long roleId : roleIds) |
| | | { |
| | | checkRoleAllowed(new SysRole(roleId)); |
| | | checkRoleDataScope(roleId); |
| | | SysRole role = selectRoleById(roleId); |
| | | if (countUserRoleByRoleId(roleId) > 0) |
| | | { |
| | | throw new ServiceException(String.format("%1$s已分配,不能删除", role.getRoleName())); |
| | | } |
| | | } |
| | | // 删除角色与菜单关联 |
| | | roleMenuMapper.deleteRoleMenu(roleIds); |
| | | // 删除角色与部门关联 |
| | | roleDeptMapper.deleteRoleDept(roleIds); |
| | | return roleMapper.deleteRoleByIds(roleIds); |
| | | } |
| | | |
| | | /** |
| | | * 取消授权用户角色 |
| | | * |
| | | * @param userRole 用户和角色关联信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteAuthUser(SysUserRole userRole) |
| | | { |
| | | return userRoleMapper.deleteUserRoleInfo(userRole); |
| | | } |
| | | |
| | | /** |
| | | * 批量取消授权用户角色 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @param userIds 需要取消授权的用户数据ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int deleteAuthUsers(Long roleId, Long[] userIds) |
| | | { |
| | | return userRoleMapper.deleteUserRoleInfos(roleId, userIds); |
| | | } |
| | | |
| | | /** |
| | | * 批量选择授权用户角色 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @param userIds 需要授权的用户数据ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int insertAuthUsers(Long roleId, Long[] userIds) |
| | | { |
| | | // 新增用户与角色管理 |
| | | List<SysUserRole> list = new ArrayList<SysUserRole>(); |
| | | for (Long userId : userIds) |
| | | { |
| | | SysUserRole ur = new SysUserRole(); |
| | | ur.setUserId(userId); |
| | | ur.setRoleId(roleId); |
| | | list.add(ur); |
| | | } |
| | | return userRoleMapper.batchUserRole(list); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.sys; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | import com.ruoyi.system.api.model.LoginUser; |
| | | import com.ruoyi.system.domain.pojo.sys.SysUserOnline; |
| | | import com.ruoyi.system.service.sys.ISysUserOnlineService; |
| | | |
| | | /** |
| | | * 在线用户 服务层处理 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Service |
| | | public class SysUserOnlineServiceImpl implements ISysUserOnlineService |
| | | { |
| | | /** |
| | | * 通过登录地址查询信息 |
| | | * |
| | | * @param ipaddr 登录地址 |
| | | * @param user 用户信息 |
| | | * @return 在线用户信息 |
| | | */ |
| | | @Override |
| | | public SysUserOnline selectOnlineByIpaddr(String ipaddr, LoginUser user) |
| | | { |
| | | if (StringUtils.equals(ipaddr, user.getIpaddr())) |
| | | { |
| | | return loginUserToUserOnline(user); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * 通过用户名称查询信息 |
| | | * |
| | | * @param userName 用户名称 |
| | | * @param user 用户信息 |
| | | * @return 在线用户信息 |
| | | */ |
| | | @Override |
| | | public SysUserOnline selectOnlineByUserName(String userName, LoginUser user) |
| | | { |
| | | if (StringUtils.equals(userName, user.getUsername())) |
| | | { |
| | | return loginUserToUserOnline(user); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * 通过登录地址/用户名称查询信息 |
| | | * |
| | | * @param ipaddr 登录地址 |
| | | * @param userName 用户名称 |
| | | * @param user 用户信息 |
| | | * @return 在线用户信息 |
| | | */ |
| | | @Override |
| | | public SysUserOnline selectOnlineByInfo(String ipaddr, String userName, LoginUser user) |
| | | { |
| | | if (StringUtils.equals(ipaddr, user.getIpaddr()) && StringUtils.equals(userName, user.getUsername())) |
| | | { |
| | | return loginUserToUserOnline(user); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * 设置在线用户信息 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 在线用户 |
| | | */ |
| | | @Override |
| | | public SysUserOnline loginUserToUserOnline(LoginUser user) |
| | | { |
| | | if (StringUtils.isNull(user)) |
| | | { |
| | | return null; |
| | | } |
| | | SysUserOnline sysUserOnline = new SysUserOnline(); |
| | | sysUserOnline.setTokenId(user.getToken()); |
| | | sysUserOnline.setUserName(user.getUsername()); |
| | | sysUserOnline.setIpaddr(user.getIpaddr()); |
| | | sysUserOnline.setLoginTime(user.getLoginTime()); |
| | | return sysUserOnline; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.impl.sys; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | import javax.validation.Validator; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.CollectionUtils; |
| | | import com.ruoyi.common.core.constant.UserConstants; |
| | | import com.ruoyi.common.core.exception.ServiceException; |
| | | import com.ruoyi.common.core.utils.SpringUtils; |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | import com.ruoyi.common.core.utils.bean.BeanValidators; |
| | | import com.ruoyi.common.datascope.annotation.DataScope; |
| | | import com.ruoyi.common.security.utils.SecurityUtils; |
| | | import com.ruoyi.system.api.domain.SysRole; |
| | | import com.ruoyi.system.api.domain.SysUser; |
| | | import com.ruoyi.system.domain.pojo.sys.SysPost; |
| | | import com.ruoyi.system.domain.pojo.sys.SysUserPost; |
| | | import com.ruoyi.system.domain.pojo.sys.SysUserRole; |
| | | import com.ruoyi.system.mapper.sys.SysPostMapper; |
| | | import com.ruoyi.system.mapper.sys.SysRoleMapper; |
| | | import com.ruoyi.system.mapper.sys.SysUserMapper; |
| | | import com.ruoyi.system.mapper.sys.SysUserPostMapper; |
| | | import com.ruoyi.system.mapper.sys.SysUserRoleMapper; |
| | | import com.ruoyi.system.service.sys.ISysConfigService; |
| | | import com.ruoyi.system.service.sys.ISysUserService; |
| | | |
| | | /** |
| | | * 用户 业务层处理 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Service |
| | | public class SysUserServiceImpl implements ISysUserService |
| | | { |
| | | private static final Logger log = LoggerFactory.getLogger(SysUserServiceImpl.class); |
| | | |
| | | @Autowired |
| | | private SysUserMapper userMapper; |
| | | |
| | | @Autowired |
| | | private SysRoleMapper roleMapper; |
| | | |
| | | @Autowired |
| | | private SysPostMapper postMapper; |
| | | |
| | | @Autowired |
| | | private SysUserRoleMapper userRoleMapper; |
| | | |
| | | @Autowired |
| | | private SysUserPostMapper userPostMapper; |
| | | |
| | | @Autowired |
| | | private ISysConfigService configService; |
| | | |
| | | @Autowired |
| | | protected Validator validator; |
| | | |
| | | /** |
| | | * 根据条件分页查询用户列表 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 用户信息集合信息 |
| | | */ |
| | | @Override |
| | | @DataScope(deptAlias = "d", userAlias = "u") |
| | | public List<SysUser> selectUserList(SysUser user) |
| | | { |
| | | return userMapper.selectUserList(user); |
| | | } |
| | | |
| | | /** |
| | | * 根据条件分页查询已分配用户角色列表 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 用户信息集合信息 |
| | | */ |
| | | @Override |
| | | @DataScope(deptAlias = "d", userAlias = "u") |
| | | public List<SysUser> selectAllocatedList(SysUser user) |
| | | { |
| | | return userMapper.selectAllocatedList(user); |
| | | } |
| | | |
| | | /** |
| | | * 根据条件分页查询未分配用户角色列表 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 用户信息集合信息 |
| | | */ |
| | | @Override |
| | | @DataScope(deptAlias = "d", userAlias = "u") |
| | | public List<SysUser> selectUnallocatedList(SysUser user) |
| | | { |
| | | return userMapper.selectUnallocatedList(user); |
| | | } |
| | | |
| | | /** |
| | | * 通过用户名查询用户 |
| | | * |
| | | * @param userName 用户名 |
| | | * @return 用户对象信息 |
| | | */ |
| | | @Override |
| | | public SysUser selectUserByUserName(String userName) |
| | | { |
| | | return userMapper.selectUserByUserName(userName); |
| | | } |
| | | |
| | | /** |
| | | * 通过用户ID查询用户 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 用户对象信息 |
| | | */ |
| | | @Override |
| | | public SysUser selectUserById(Long userId) |
| | | { |
| | | return userMapper.selectUserById(userId); |
| | | } |
| | | |
| | | /** |
| | | * 查询用户所属角色组 |
| | | * |
| | | * @param userName 用户名 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public String selectUserRoleGroup(String userName) |
| | | { |
| | | List<SysRole> list = roleMapper.selectRolesByUserName(userName); |
| | | if (CollectionUtils.isEmpty(list)) |
| | | { |
| | | return StringUtils.EMPTY; |
| | | } |
| | | return list.stream().map(SysRole::getRoleName).collect(Collectors.joining(",")); |
| | | } |
| | | |
| | | /** |
| | | * 查询用户所属岗位组 |
| | | * |
| | | * @param userName 用户名 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public String selectUserPostGroup(String userName) |
| | | { |
| | | List<SysPost> list = postMapper.selectPostsByUserName(userName); |
| | | if (CollectionUtils.isEmpty(list)) |
| | | { |
| | | return StringUtils.EMPTY; |
| | | } |
| | | return list.stream().map(SysPost::getPostName).collect(Collectors.joining(",")); |
| | | } |
| | | |
| | | /** |
| | | * 校验用户名称是否唯一 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public boolean checkUserNameUnique(SysUser user) |
| | | { |
| | | Long userId = StringUtils.isNull(user.getUserId()) ? -1L : user.getUserId(); |
| | | SysUser info = userMapper.checkUserNameUnique(user.getUserName()); |
| | | if (StringUtils.isNotNull(info) && info.getUserId().longValue() != userId.longValue()) |
| | | { |
| | | return UserConstants.NOT_UNIQUE; |
| | | } |
| | | return UserConstants.UNIQUE; |
| | | } |
| | | |
| | | /** |
| | | * 校验手机号码是否唯一 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean checkPhoneUnique(SysUser user) |
| | | { |
| | | Long userId = StringUtils.isNull(user.getUserId()) ? -1L : user.getUserId(); |
| | | SysUser info = userMapper.checkPhoneUnique(user.getPhonenumber()); |
| | | if (StringUtils.isNotNull(info) && info.getUserId().longValue() != userId.longValue()) |
| | | { |
| | | return UserConstants.NOT_UNIQUE; |
| | | } |
| | | return UserConstants.UNIQUE; |
| | | } |
| | | |
| | | /** |
| | | * 校验email是否唯一 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean checkEmailUnique(SysUser user) |
| | | { |
| | | Long userId = StringUtils.isNull(user.getUserId()) ? -1L : user.getUserId(); |
| | | SysUser info = userMapper.checkEmailUnique(user.getEmail()); |
| | | if (StringUtils.isNotNull(info) && info.getUserId().longValue() != userId.longValue()) |
| | | { |
| | | return UserConstants.NOT_UNIQUE; |
| | | } |
| | | return UserConstants.UNIQUE; |
| | | } |
| | | |
| | | /** |
| | | * 校验用户是否允许操作 |
| | | * |
| | | * @param user 用户信息 |
| | | */ |
| | | @Override |
| | | public void checkUserAllowed(SysUser user) |
| | | { |
| | | if (StringUtils.isNotNull(user.getUserId()) && user.isAdmin()) |
| | | { |
| | | throw new ServiceException("不允许操作超级管理员用户"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 校验用户是否有数据权限 |
| | | * |
| | | * @param userId 用户id |
| | | */ |
| | | @Override |
| | | public void checkUserDataScope(Long userId) |
| | | { |
| | | if (!SysUser.isAdmin(SecurityUtils.getUserId())) |
| | | { |
| | | SysUser user = new SysUser(); |
| | | user.setUserId(userId); |
| | | List<SysUser> users = SpringUtils.getAopProxy(this).selectUserList(user); |
| | | if (StringUtils.isEmpty(users)) |
| | | { |
| | | throw new ServiceException("没有权限访问用户数据!"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 新增保存用户信息 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int insertUser(SysUser user) |
| | | { |
| | | // 新增用户信息 |
| | | int rows = userMapper.insertUser(user); |
| | | // 新增用户岗位关联 |
| | | insertUserPost(user); |
| | | // 新增用户与角色管理 |
| | | insertUserRole(user); |
| | | return rows; |
| | | } |
| | | |
| | | /** |
| | | * 注册用户信息 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public boolean registerUser(SysUser user) |
| | | { |
| | | return userMapper.insertUser(user) > 0; |
| | | } |
| | | |
| | | /** |
| | | * 修改保存用户信息 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int updateUser(SysUser user) |
| | | { |
| | | Long userId = user.getUserId(); |
| | | // 删除用户与角色关联 |
| | | userRoleMapper.deleteUserRoleByUserId(userId); |
| | | // 新增用户与角色管理 |
| | | insertUserRole(user); |
| | | // 删除用户与岗位关联 |
| | | userPostMapper.deleteUserPostByUserId(userId); |
| | | // 新增用户与岗位管理 |
| | | insertUserPost(user); |
| | | return userMapper.updateUser(user); |
| | | } |
| | | |
| | | /** |
| | | * 用户授权角色 |
| | | * |
| | | * @param userId 用户ID |
| | | * @param roleIds 角色组 |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void insertUserAuth(Long userId, Long[] roleIds) |
| | | { |
| | | userRoleMapper.deleteUserRoleByUserId(userId); |
| | | insertUserRole(userId, roleIds); |
| | | } |
| | | |
| | | /** |
| | | * 修改用户状态 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int updateUserStatus(SysUser user) |
| | | { |
| | | return userMapper.updateUser(user); |
| | | } |
| | | |
| | | /** |
| | | * 修改用户基本信息 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int updateUserProfile(SysUser user) |
| | | { |
| | | return userMapper.updateUser(user); |
| | | } |
| | | |
| | | /** |
| | | * 修改用户头像 |
| | | * |
| | | * @param userName 用户名 |
| | | * @param avatar 头像地址 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public boolean updateUserAvatar(String userName, String avatar) |
| | | { |
| | | return userMapper.updateUserAvatar(userName, avatar) > 0; |
| | | } |
| | | |
| | | /** |
| | | * 重置用户密码 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int resetPwd(SysUser user) |
| | | { |
| | | return userMapper.updateUser(user); |
| | | } |
| | | |
| | | /** |
| | | * 重置用户密码 |
| | | * |
| | | * @param userName 用户名 |
| | | * @param password 密码 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public int resetUserPwd(String userName, String password) |
| | | { |
| | | return userMapper.resetUserPwd(userName, password); |
| | | } |
| | | |
| | | /** |
| | | * 新增用户角色信息 |
| | | * |
| | | * @param user 用户对象 |
| | | */ |
| | | public void insertUserRole(SysUser user) |
| | | { |
| | | this.insertUserRole(user.getUserId(), user.getRoleIds()); |
| | | } |
| | | |
| | | /** |
| | | * 新增用户岗位信息 |
| | | * |
| | | * @param user 用户对象 |
| | | */ |
| | | public void insertUserPost(SysUser user) |
| | | { |
| | | Long[] posts = user.getPostIds(); |
| | | if (StringUtils.isNotEmpty(posts)) |
| | | { |
| | | // 新增用户与岗位管理 |
| | | List<SysUserPost> list = new ArrayList<SysUserPost>(); |
| | | for (Long postId : posts) |
| | | { |
| | | SysUserPost up = new SysUserPost(); |
| | | up.setUserId(user.getUserId()); |
| | | up.setPostId(postId); |
| | | list.add(up); |
| | | } |
| | | userPostMapper.batchUserPost(list); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 新增用户角色信息 |
| | | * |
| | | * @param userId 用户ID |
| | | * @param roleIds 角色组 |
| | | */ |
| | | public void insertUserRole(Long userId, Long[] roleIds) |
| | | { |
| | | if (StringUtils.isNotEmpty(roleIds)) |
| | | { |
| | | // 新增用户与角色管理 |
| | | List<SysUserRole> list = new ArrayList<SysUserRole>(); |
| | | for (Long roleId : roleIds) |
| | | { |
| | | SysUserRole ur = new SysUserRole(); |
| | | ur.setUserId(userId); |
| | | ur.setRoleId(roleId); |
| | | list.add(ur); |
| | | } |
| | | userRoleMapper.batchUserRole(list); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 通过用户ID删除用户 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int deleteUserById(Long userId) |
| | | { |
| | | // 删除用户与角色关联 |
| | | userRoleMapper.deleteUserRoleByUserId(userId); |
| | | // 删除用户与岗位表 |
| | | userPostMapper.deleteUserPostByUserId(userId); |
| | | return userMapper.deleteUserById(userId); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除用户信息 |
| | | * |
| | | * @param userIds 需要删除的用户ID |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int deleteUserByIds(Long[] userIds) |
| | | { |
| | | for (Long userId : userIds) |
| | | { |
| | | checkUserAllowed(new SysUser(userId)); |
| | | checkUserDataScope(userId); |
| | | } |
| | | // 删除用户与角色关联 |
| | | userRoleMapper.deleteUserRole(userIds); |
| | | // 删除用户与岗位关联 |
| | | userPostMapper.deleteUserPost(userIds); |
| | | return userMapper.deleteUserByIds(userIds); |
| | | } |
| | | |
| | | /** |
| | | * 导入用户数据 |
| | | * |
| | | * @param userList 用户数据列表 |
| | | * @param isUpdateSupport 是否更新支持,如果已存在,则进行更新数据 |
| | | * @param operName 操作用户 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | | public String importUser(List<SysUser> userList, Boolean isUpdateSupport, String operName) |
| | | { |
| | | if (StringUtils.isNull(userList) || userList.size() == 0) |
| | | { |
| | | throw new ServiceException("导入用户数据不能为空!"); |
| | | } |
| | | int successNum = 0; |
| | | int failureNum = 0; |
| | | StringBuilder successMsg = new StringBuilder(); |
| | | StringBuilder failureMsg = new StringBuilder(); |
| | | String password = configService.selectConfigByKey("sys.user.initPassword"); |
| | | for (SysUser user : userList) |
| | | { |
| | | try |
| | | { |
| | | // 验证是否存在这个用户 |
| | | SysUser u = userMapper.selectUserByUserName(user.getUserName()); |
| | | if (StringUtils.isNull(u)) |
| | | { |
| | | BeanValidators.validateWithException(validator, user); |
| | | user.setPassword(SecurityUtils.encryptPassword(password)); |
| | | user.setCreateBy(operName); |
| | | userMapper.insertUser(user); |
| | | successNum++; |
| | | successMsg.append("<br/>" + successNum + "、账号 " + user.getUserName() + " 导入成功"); |
| | | } |
| | | else if (isUpdateSupport) |
| | | { |
| | | BeanValidators.validateWithException(validator, user); |
| | | checkUserAllowed(u); |
| | | checkUserDataScope(u.getUserId()); |
| | | user.setUserId(u.getUserId()); |
| | | user.setUpdateBy(operName); |
| | | userMapper.updateUser(user); |
| | | successNum++; |
| | | successMsg.append("<br/>" + successNum + "、账号 " + user.getUserName() + " 更新成功"); |
| | | } |
| | | else |
| | | { |
| | | failureNum++; |
| | | failureMsg.append("<br/>" + failureNum + "、账号 " + user.getUserName() + " 已存在"); |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | failureNum++; |
| | | String msg = "<br/>" + failureNum + "、账号 " + user.getUserName() + " 导入失败:"; |
| | | failureMsg.append(msg + e.getMessage()); |
| | | log.error(msg, e); |
| | | } |
| | | } |
| | | if (failureNum > 0) |
| | | { |
| | | failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:"); |
| | | throw new ServiceException(failureMsg.toString()); |
| | | } |
| | | else |
| | | { |
| | | successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:"); |
| | | } |
| | | return successMsg.toString(); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.member; |
| | | |
| | | import com.ruoyi.system.domain.pojo.member.MemberArchiveFields; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 档案字段 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface MemberArchiveFieldsService extends IService<MemberArchiveFields> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.member; |
| | | |
| | | import com.ruoyi.system.domain.pojo.member.MemberArchive; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 会员档案信息 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface MemberArchiveService extends IService<MemberArchive> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.member; |
| | | |
| | | import com.ruoyi.system.domain.pojo.member.MemberNurse; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 用户调理问题 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface MemberNurseService extends IService<MemberNurse> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.member; |
| | | |
| | | import com.ruoyi.system.api.model.AppMiniLoginDto; |
| | | import com.ruoyi.system.api.model.AppMiniLoginVo; |
| | | import com.ruoyi.system.domain.dto.AppNearbyShopDto; |
| | | import com.ruoyi.system.domain.dto.AppUserAuthorizeDto; |
| | | import com.ruoyi.system.domain.pojo.member.Member; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.system.domain.vo.AppNearbyShopVo; |
| | | import com.ruoyi.system.domain.vo.AppUserAuthorizeVo; |
| | | |
| | | /** |
| | | * <p> |
| | | * 小程序用户 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface MemberService extends IService<Member> { |
| | | /** |
| | | * 小程序登录 |
| | | * @param appMiniLoginDto |
| | | * @return |
| | | */ |
| | | AppMiniLoginVo getMemberByCode(AppMiniLoginDto appMiniLoginDto); |
| | | |
| | | /** |
| | | * 获取授权信息 |
| | | * @param appUserAuthorizeDto |
| | | * @return |
| | | */ |
| | | AppUserAuthorizeVo getAppUserAuthorize(AppUserAuthorizeDto appUserAuthorizeDto); |
| | | |
| | | /** |
| | | * 获取附近门店 |
| | | * @param appNearbyShopDto |
| | | * @return |
| | | */ |
| | | AppNearbyShopVo getNearbyShop(AppNearbyShopDto appNearbyShopDto); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.member; |
| | | |
| | | import com.ruoyi.system.domain.pojo.member.UserCoupon; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 用户关联优惠券 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface UserCouponService extends IService<UserCoupon> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.order; |
| | | |
| | | import com.ruoyi.system.domain.pojo.order.ConsumerGoods; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ConsumerGoodsService extends IService<ConsumerGoods> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.order; |
| | | |
| | | import com.ruoyi.system.domain.pojo.order.OrderGoods; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 订单商品 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface OrderGoodsService extends IService<OrderGoods> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.order; |
| | | |
| | | import com.ruoyi.system.domain.pojo.order.Order; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 订单 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface OrderService extends IService<Order> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.order; |
| | | |
| | | import com.ruoyi.system.domain.dto.AppBaseBathDto; |
| | | import com.ruoyi.system.domain.dto.AppShoppingCartAddDto; |
| | | import com.ruoyi.system.domain.dto.AppShoppingCartChangeDto; |
| | | import com.ruoyi.system.domain.pojo.order.ShoppingCart; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 购物车 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ShoppingCartService extends IService<ShoppingCart> { |
| | | |
| | | /** |
| | | * 添加购物车 |
| | | * @param appShoppingCartAddDto |
| | | */ |
| | | void addShoppingCart(AppShoppingCartAddDto appShoppingCartAddDto); |
| | | |
| | | /** |
| | | * 修改购物车数量 |
| | | * @param appShoppingCartChangeDto |
| | | */ |
| | | void changeShoppingCart(AppShoppingCartChangeDto appShoppingCartChangeDto); |
| | | |
| | | /** |
| | | * 删除购物车 |
| | | * @param appBaseBathDto |
| | | */ |
| | | void deleteShoppingCart(AppBaseBathDto appBaseBathDto); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.order; |
| | | |
| | | import com.ruoyi.system.domain.pojo.order.UserServiceRecord; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 服务记录 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface UserServiceRecordService extends IService<UserServiceRecord> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.MemberTaskRecord; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 会员跟进任务记录 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface MemberTaskRecordService extends IService<MemberTaskRecord> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.MemberTask; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 会员跟进任务 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface MemberTaskService extends IService<MemberTask> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.ShopCertificate; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户证书 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ShopCertificateService extends IService<ShopCertificate> { |
| | | /** |
| | | * 通过商户id获取商户证书 |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | List<ShopCertificate> listShopCertificateByShopId(Long shopId); |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.ShopFile; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户图片 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ShopFileService extends IService<ShopFile> { |
| | | |
| | | /** |
| | | * 通过商户id获取商户文件 |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | List<ShopFile> listShopFileByShopId(Long shopId); |
| | | |
| | | /** |
| | | * 通过商户id删除关联 |
| | | * @param shopId |
| | | */ |
| | | void deleteByShopId(Long shopId); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.ShopGoods; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户定制商品 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ShopGoodsService extends IService<ShopGoods> { |
| | | |
| | | /** |
| | | * 通过商户id和商品id获取 |
| | | * @param shopId |
| | | * @param goodsId |
| | | * @return |
| | | */ |
| | | ShopGoods getByShopIdAndGoodsId(Long shopId,String goodsId); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.ShopMarketing; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户营销 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ShopMarketingService extends IService<ShopMarketing> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.ShopRelTag; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.system.domain.vo.MgtShopTagVo; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户标签 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ShopRelTagService extends IService<ShopRelTag> { |
| | | /** |
| | | * 通过商户id获取标签 |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | List<ShopRelTag> listShopRelTagByShopId(Long shopId); |
| | | |
| | | /** |
| | | * 通过商户id删除关联 |
| | | * @param shopId |
| | | */ |
| | | void deleteByShopId(Long shopId); |
| | | |
| | | /** |
| | | * 获取商户标签 |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | List<MgtShopTagVo> listShopTagVo(Long shopId); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.ShopRelUser; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户关联员工 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ShopRelUserService extends IService<ShopRelUser> { |
| | | |
| | | /** |
| | | * 通过商户id删除关联 |
| | | * @param shopId |
| | | */ |
| | | void deleteByShopId(Long shopId); |
| | | |
| | | /** |
| | | * 通过商户id获取关联用户 |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | List<ShopRelUser> listByShopId(Long shopId); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.shop; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.system.domain.dto.MgtChangeCoopDto; |
| | | import com.ruoyi.system.domain.dto.MgtEditShopDto; |
| | | import com.ruoyi.system.domain.dto.MgtEditShopTagDto; |
| | | import com.ruoyi.system.domain.dto.MgtShopPageDto; |
| | | import com.ruoyi.system.domain.pojo.shop.Shop; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.system.domain.vo.AppShopInfoVo; |
| | | import com.ruoyi.system.domain.vo.MgtShopInfoVo; |
| | | import com.ruoyi.system.domain.vo.MgtShopPageVo; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户表 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ShopService extends IService<Shop> { |
| | | |
| | | /** |
| | | * 获取商户详情 |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | AppShopInfoVo getAppShopInfo(Long shopId); |
| | | |
| | | /** |
| | | * 创建商户 |
| | | * @param MGTEditShopDto |
| | | */ |
| | | void createShop(MgtEditShopDto MGTEditShopDto); |
| | | |
| | | /** |
| | | * 修改合作时间 |
| | | * @param mgtChangeCoopDto |
| | | */ |
| | | void changeCooperationTime(MgtChangeCoopDto mgtChangeCoopDto); |
| | | |
| | | /** |
| | | * 分页获取商户 |
| | | * @param page |
| | | * @param mgtShopPageDto |
| | | * @return |
| | | */ |
| | | List<MgtShopPageVo> pageShop(Page page, MgtShopPageDto mgtShopPageDto); |
| | | |
| | | /** |
| | | * 获取商户详情 |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | MgtShopInfoVo getMgtShopInfo(Long shopId); |
| | | |
| | | /** |
| | | * 修改商户标签 |
| | | * @param mgtEditShopTagDto |
| | | */ |
| | | void editShopTag(MgtEditShopTagDto mgtEditShopTagDto); |
| | | |
| | | /** |
| | | * 获取商户详情 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | //MgtShopInfoVo getMerShopInfo(Long userId); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.ShopTask; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户跟进任务 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ShopTaskService extends IService<ShopTask> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.ShopTransferRecord; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 商户员工转移记录 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface ShopTransferRecordService extends IService<ShopTransferRecord> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.shop; |
| | | |
| | | import com.ruoyi.system.domain.pojo.shop.TaskFile; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * <p> |
| | | * 跟进附件 服务类 |
| | | * </p> |
| | | * |
| | | * @author jqs |
| | | * @since 2023-04-25 |
| | | */ |
| | | public interface TaskFileService extends IService<TaskFile> { |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.sys; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.system.domain.pojo.sys.SysConfig; |
| | | |
| | | /** |
| | | * 参数配置 服务层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface ISysConfigService |
| | | { |
| | | /** |
| | | * 查询参数配置信息 |
| | | * |
| | | * @param configId 参数配置ID |
| | | * @return 参数配置信息 |
| | | */ |
| | | public SysConfig selectConfigById(Long configId); |
| | | |
| | | /** |
| | | * 根据键名查询参数配置信息 |
| | | * |
| | | * @param configKey 参数键名 |
| | | * @return 参数键值 |
| | | */ |
| | | public String selectConfigByKey(String configKey); |
| | | |
| | | /** |
| | | * 查询参数配置列表 |
| | | * |
| | | * @param config 参数配置信息 |
| | | * @return 参数配置集合 |
| | | */ |
| | | public List<SysConfig> selectConfigList(SysConfig config); |
| | | |
| | | /** |
| | | * 新增参数配置 |
| | | * |
| | | * @param config 参数配置信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertConfig(SysConfig config); |
| | | |
| | | /** |
| | | * 修改参数配置 |
| | | * |
| | | * @param config 参数配置信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateConfig(SysConfig config); |
| | | |
| | | /** |
| | | * 批量删除参数信息 |
| | | * |
| | | * @param configIds 需要删除的参数ID |
| | | */ |
| | | public void deleteConfigByIds(Long[] configIds); |
| | | |
| | | /** |
| | | * 加载参数缓存数据 |
| | | */ |
| | | public void loadingConfigCache(); |
| | | |
| | | /** |
| | | * 清空参数缓存数据 |
| | | */ |
| | | public void clearConfigCache(); |
| | | |
| | | /** |
| | | * 重置参数缓存数据 |
| | | */ |
| | | public void resetConfigCache(); |
| | | |
| | | /** |
| | | * 校验参数键名是否唯一 |
| | | * |
| | | * @param config 参数信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean checkConfigKeyUnique(SysConfig config); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.sys; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.system.api.domain.SysDept; |
| | | import com.ruoyi.system.domain.vo.TreeSelect; |
| | | |
| | | /** |
| | | * 部门管理 服务层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface ISysDeptService |
| | | { |
| | | /** |
| | | * 查询部门管理数据 |
| | | * |
| | | * @param dept 部门信息 |
| | | * @return 部门信息集合 |
| | | */ |
| | | public List<SysDept> selectDeptList(SysDept dept); |
| | | |
| | | /** |
| | | * 查询部门树结构信息 |
| | | * |
| | | * @param dept 部门信息 |
| | | * @return 部门树信息集合 |
| | | */ |
| | | public List<TreeSelect> selectDeptTreeList(SysDept dept); |
| | | |
| | | /** |
| | | * 构建前端所需要树结构 |
| | | * |
| | | * @param depts 部门列表 |
| | | * @return 树结构列表 |
| | | */ |
| | | public List<SysDept> buildDeptTree(List<SysDept> depts); |
| | | |
| | | /** |
| | | * 构建前端所需要下拉树结构 |
| | | * |
| | | * @param depts 部门列表 |
| | | * @return 下拉树结构列表 |
| | | */ |
| | | public List<TreeSelect> buildDeptTreeSelect(List<SysDept> depts); |
| | | |
| | | /** |
| | | * 根据角色ID查询部门树信息 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 选中部门列表 |
| | | */ |
| | | public List<Long> selectDeptListByRoleId(Long roleId); |
| | | |
| | | /** |
| | | * 根据部门ID查询信息 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 部门信息 |
| | | */ |
| | | public SysDept selectDeptById(Long deptId); |
| | | |
| | | /** |
| | | * 根据ID查询所有子部门(正常状态) |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 子部门数 |
| | | */ |
| | | public int selectNormalChildrenDeptById(Long deptId); |
| | | |
| | | /** |
| | | * 是否存在部门子节点 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 结果 |
| | | */ |
| | | public boolean hasChildByDeptId(Long deptId); |
| | | |
| | | /** |
| | | * 查询部门是否存在用户 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 结果 true 存在 false 不存在 |
| | | */ |
| | | public boolean checkDeptExistUser(Long deptId); |
| | | |
| | | /** |
| | | * 校验部门名称是否唯一 |
| | | * |
| | | * @param dept 部门信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean checkDeptNameUnique(SysDept dept); |
| | | |
| | | /** |
| | | * 校验部门是否有数据权限 |
| | | * |
| | | * @param deptId 部门id |
| | | */ |
| | | public void checkDeptDataScope(Long deptId); |
| | | |
| | | /** |
| | | * 新增保存部门信息 |
| | | * |
| | | * @param dept 部门信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertDept(SysDept dept); |
| | | |
| | | /** |
| | | * 修改保存部门信息 |
| | | * |
| | | * @param dept 部门信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateDept(SysDept dept); |
| | | |
| | | /** |
| | | * 删除部门管理信息 |
| | | * |
| | | * @param deptId 部门ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteDeptById(Long deptId); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.sys; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.system.api.domain.SysDictData; |
| | | |
| | | /** |
| | | * 字典 业务层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface ISysDictDataService |
| | | { |
| | | /** |
| | | * 根据条件分页查询字典数据 |
| | | * |
| | | * @param dictData 字典数据信息 |
| | | * @return 字典数据集合信息 |
| | | */ |
| | | public List<SysDictData> selectDictDataList(SysDictData dictData); |
| | | |
| | | /** |
| | | * 根据字典类型和字典键值查询字典数据信息 |
| | | * |
| | | * @param dictType 字典类型 |
| | | * @param dictValue 字典键值 |
| | | * @return 字典标签 |
| | | */ |
| | | public String selectDictLabel(String dictType, String dictValue); |
| | | |
| | | /** |
| | | * 根据字典数据ID查询信息 |
| | | * |
| | | * @param dictCode 字典数据ID |
| | | * @return 字典数据 |
| | | */ |
| | | public SysDictData selectDictDataById(Long dictCode); |
| | | |
| | | /** |
| | | * 批量删除字典数据信息 |
| | | * |
| | | * @param dictCodes 需要删除的字典数据ID |
| | | */ |
| | | public void deleteDictDataByIds(Long[] dictCodes); |
| | | |
| | | /** |
| | | * 新增保存字典数据信息 |
| | | * |
| | | * @param dictData 字典数据信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertDictData(SysDictData dictData); |
| | | |
| | | /** |
| | | * 修改保存字典数据信息 |
| | | * |
| | | * @param dictData 字典数据信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateDictData(SysDictData dictData); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.sys; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.system.api.domain.SysDictData; |
| | | import com.ruoyi.system.api.domain.SysDictType; |
| | | |
| | | /** |
| | | * 字典 业务层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface ISysDictTypeService |
| | | { |
| | | /** |
| | | * 根据条件分页查询字典类型 |
| | | * |
| | | * @param dictType 字典类型信息 |
| | | * @return 字典类型集合信息 |
| | | */ |
| | | public List<SysDictType> selectDictTypeList(SysDictType dictType); |
| | | |
| | | /** |
| | | * 根据所有字典类型 |
| | | * |
| | | * @return 字典类型集合信息 |
| | | */ |
| | | public List<SysDictType> selectDictTypeAll(); |
| | | |
| | | /** |
| | | * 根据字典类型查询字典数据 |
| | | * |
| | | * @param dictType 字典类型 |
| | | * @return 字典数据集合信息 |
| | | */ |
| | | public List<SysDictData> selectDictDataByType(String dictType); |
| | | |
| | | /** |
| | | * 根据字典类型ID查询信息 |
| | | * |
| | | * @param dictId 字典类型ID |
| | | * @return 字典类型 |
| | | */ |
| | | public SysDictType selectDictTypeById(Long dictId); |
| | | |
| | | /** |
| | | * 根据字典类型查询信息 |
| | | * |
| | | * @param dictType 字典类型 |
| | | * @return 字典类型 |
| | | */ |
| | | public SysDictType selectDictTypeByType(String dictType); |
| | | |
| | | /** |
| | | * 批量删除字典信息 |
| | | * |
| | | * @param dictIds 需要删除的字典ID |
| | | */ |
| | | public void deleteDictTypeByIds(Long[] dictIds); |
| | | |
| | | /** |
| | | * 加载字典缓存数据 |
| | | */ |
| | | public void loadingDictCache(); |
| | | |
| | | /** |
| | | * 清空字典缓存数据 |
| | | */ |
| | | public void clearDictCache(); |
| | | |
| | | /** |
| | | * 重置字典缓存数据 |
| | | */ |
| | | public void resetDictCache(); |
| | | |
| | | /** |
| | | * 新增保存字典类型信息 |
| | | * |
| | | * @param dictType 字典类型信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertDictType(SysDictType dictType); |
| | | |
| | | /** |
| | | * 修改保存字典类型信息 |
| | | * |
| | | * @param dictType 字典类型信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateDictType(SysDictType dictType); |
| | | |
| | | /** |
| | | * 校验字典类型称是否唯一 |
| | | * |
| | | * @param dictType 字典类型 |
| | | * @return 结果 |
| | | */ |
| | | public boolean checkDictTypeUnique(SysDictType dictType); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.sys; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.system.api.domain.SysLogininfor; |
| | | |
| | | /** |
| | | * 系统访问日志情况信息 服务层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface ISysLogininforService |
| | | { |
| | | /** |
| | | * 新增系统登录日志 |
| | | * |
| | | * @param logininfor 访问日志对象 |
| | | */ |
| | | public int insertLogininfor(SysLogininfor logininfor); |
| | | |
| | | /** |
| | | * 查询系统登录日志集合 |
| | | * |
| | | * @param logininfor 访问日志对象 |
| | | * @return 登录记录集合 |
| | | */ |
| | | public List<SysLogininfor> selectLogininforList(SysLogininfor logininfor); |
| | | |
| | | /** |
| | | * 批量删除系统登录日志 |
| | | * |
| | | * @param infoIds 需要删除的登录日志ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteLogininforByIds(Long[] infoIds); |
| | | |
| | | /** |
| | | * 清空系统登录日志 |
| | | */ |
| | | public void cleanLogininfor(); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.sys; |
| | | |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | import com.ruoyi.system.domain.pojo.sys.SysMenu; |
| | | import com.ruoyi.system.domain.vo.RouterVo; |
| | | import com.ruoyi.system.domain.vo.TreeSelect; |
| | | |
| | | /** |
| | | * 菜单 业务层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface ISysMenuService |
| | | { |
| | | /** |
| | | * 根据用户查询系统菜单列表 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 菜单列表 |
| | | */ |
| | | public List<SysMenu> selectMenuList(Long userId); |
| | | |
| | | /** |
| | | * 根据用户查询系统菜单列表 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @param userId 用户ID |
| | | * @return 菜单列表 |
| | | */ |
| | | public List<SysMenu> selectMenuList(SysMenu menu, Long userId); |
| | | |
| | | /** |
| | | * 根据用户ID查询权限 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 权限列表 |
| | | */ |
| | | public Set<String> selectMenuPermsByUserId(Long userId); |
| | | |
| | | /** |
| | | * 根据角色ID查询权限 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 权限列表 |
| | | */ |
| | | public Set<String> selectMenuPermsByRoleId(Long roleId); |
| | | |
| | | /** |
| | | * 根据用户ID查询菜单树信息 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 菜单列表 |
| | | */ |
| | | public List<SysMenu> selectMenuTreeByUserId(Long userId); |
| | | |
| | | /** |
| | | * 根据角色ID查询菜单树信息 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 选中菜单列表 |
| | | */ |
| | | public List<Long> selectMenuListByRoleId(Long roleId); |
| | | |
| | | /** |
| | | * 构建前端路由所需要的菜单 |
| | | * |
| | | * @param menus 菜单列表 |
| | | * @return 路由列表 |
| | | */ |
| | | public List<RouterVo> buildMenus(List<SysMenu> menus); |
| | | |
| | | /** |
| | | * 构建前端所需要树结构 |
| | | * |
| | | * @param menus 菜单列表 |
| | | * @return 树结构列表 |
| | | */ |
| | | public List<SysMenu> buildMenuTree(List<SysMenu> menus); |
| | | |
| | | /** |
| | | * 构建前端所需要下拉树结构 |
| | | * |
| | | * @param menus 菜单列表 |
| | | * @return 下拉树结构列表 |
| | | */ |
| | | public List<TreeSelect> buildMenuTreeSelect(List<SysMenu> menus); |
| | | |
| | | /** |
| | | * 根据菜单ID查询信息 |
| | | * |
| | | * @param menuId 菜单ID |
| | | * @return 菜单信息 |
| | | */ |
| | | public SysMenu selectMenuById(Long menuId); |
| | | |
| | | /** |
| | | * 是否存在菜单子节点 |
| | | * |
| | | * @param menuId 菜单ID |
| | | * @return 结果 true 存在 false 不存在 |
| | | */ |
| | | public boolean hasChildByMenuId(Long menuId); |
| | | |
| | | /** |
| | | * 查询菜单是否存在角色 |
| | | * |
| | | * @param menuId 菜单ID |
| | | * @return 结果 true 存在 false 不存在 |
| | | */ |
| | | public boolean checkMenuExistRole(Long menuId); |
| | | |
| | | /** |
| | | * 新增保存菜单信息 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertMenu(SysMenu menu); |
| | | |
| | | /** |
| | | * 修改保存菜单信息 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateMenu(SysMenu menu); |
| | | |
| | | /** |
| | | * 删除菜单管理信息 |
| | | * |
| | | * @param menuId 菜单ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteMenuById(Long menuId); |
| | | |
| | | /** |
| | | * 校验菜单名称是否唯一 |
| | | * |
| | | * @param menu 菜单信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean checkMenuNameUnique(SysMenu menu); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.sys; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.system.domain.pojo.sys.SysNotice; |
| | | |
| | | /** |
| | | * 公告 服务层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface ISysNoticeService |
| | | { |
| | | /** |
| | | * 查询公告信息 |
| | | * |
| | | * @param noticeId 公告ID |
| | | * @return 公告信息 |
| | | */ |
| | | public SysNotice selectNoticeById(Long noticeId); |
| | | |
| | | /** |
| | | * 查询公告列表 |
| | | * |
| | | * @param notice 公告信息 |
| | | * @return 公告集合 |
| | | */ |
| | | public List<SysNotice> selectNoticeList(SysNotice notice); |
| | | |
| | | /** |
| | | * 新增公告 |
| | | * |
| | | * @param notice 公告信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertNotice(SysNotice notice); |
| | | |
| | | /** |
| | | * 修改公告 |
| | | * |
| | | * @param notice 公告信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateNotice(SysNotice notice); |
| | | |
| | | /** |
| | | * 删除公告信息 |
| | | * |
| | | * @param noticeId 公告ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteNoticeById(Long noticeId); |
| | | |
| | | /** |
| | | * 批量删除公告信息 |
| | | * |
| | | * @param noticeIds 需要删除的公告ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteNoticeByIds(Long[] noticeIds); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.sys; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.system.api.domain.SysOperLog; |
| | | |
| | | /** |
| | | * 操作日志 服务层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface ISysOperLogService |
| | | { |
| | | /** |
| | | * 新增操作日志 |
| | | * |
| | | * @param operLog 操作日志对象 |
| | | * @return 结果 |
| | | */ |
| | | public int insertOperlog(SysOperLog operLog); |
| | | |
| | | /** |
| | | * 查询系统操作日志集合 |
| | | * |
| | | * @param operLog 操作日志对象 |
| | | * @return 操作日志集合 |
| | | */ |
| | | public List<SysOperLog> selectOperLogList(SysOperLog operLog); |
| | | |
| | | /** |
| | | * 批量删除系统操作日志 |
| | | * |
| | | * @param operIds 需要删除的操作日志ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteOperLogByIds(Long[] operIds); |
| | | |
| | | /** |
| | | * 查询操作日志详细 |
| | | * |
| | | * @param operId 操作ID |
| | | * @return 操作日志对象 |
| | | */ |
| | | public SysOperLog selectOperLogById(Long operId); |
| | | |
| | | /** |
| | | * 清空操作日志 |
| | | */ |
| | | public void cleanOperLog(); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.sys; |
| | | |
| | | import java.util.Set; |
| | | |
| | | import com.ruoyi.system.api.domain.SysUser; |
| | | |
| | | /** |
| | | * 权限信息 服务层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface ISysPermissionService |
| | | { |
| | | /** |
| | | * 获取角色数据权限 |
| | | * |
| | | * @param userId 用户Id |
| | | * @return 角色权限信息 |
| | | */ |
| | | public Set<String> getRolePermission(SysUser user); |
| | | |
| | | /** |
| | | * 获取菜单数据权限 |
| | | * |
| | | * @param userId 用户Id |
| | | * @return 菜单权限信息 |
| | | */ |
| | | public Set<String> getMenuPermission(SysUser user); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.sys; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.system.domain.pojo.sys.SysPost; |
| | | |
| | | /** |
| | | * 岗位信息 服务层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface ISysPostService |
| | | { |
| | | /** |
| | | * 查询岗位信息集合 |
| | | * |
| | | * @param post 岗位信息 |
| | | * @return 岗位列表 |
| | | */ |
| | | public List<SysPost> selectPostList(SysPost post); |
| | | |
| | | /** |
| | | * 查询所有岗位 |
| | | * |
| | | * @return 岗位列表 |
| | | */ |
| | | public List<SysPost> selectPostAll(); |
| | | |
| | | /** |
| | | * 通过岗位ID查询岗位信息 |
| | | * |
| | | * @param postId 岗位ID |
| | | * @return 角色对象信息 |
| | | */ |
| | | public SysPost selectPostById(Long postId); |
| | | |
| | | /** |
| | | * 根据用户ID获取岗位选择框列表 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 选中岗位ID列表 |
| | | */ |
| | | public List<Long> selectPostListByUserId(Long userId); |
| | | |
| | | /** |
| | | * 校验岗位名称 |
| | | * |
| | | * @param post 岗位信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean checkPostNameUnique(SysPost post); |
| | | |
| | | /** |
| | | * 校验岗位编码 |
| | | * |
| | | * @param post 岗位信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean checkPostCodeUnique(SysPost post); |
| | | |
| | | /** |
| | | * 通过岗位ID查询岗位使用数量 |
| | | * |
| | | * @param postId 岗位ID |
| | | * @return 结果 |
| | | */ |
| | | public int countUserPostById(Long postId); |
| | | |
| | | /** |
| | | * 删除岗位信息 |
| | | * |
| | | * @param postId 岗位ID |
| | | * @return 结果 |
| | | */ |
| | | public int deletePostById(Long postId); |
| | | |
| | | /** |
| | | * 批量删除岗位信息 |
| | | * |
| | | * @param postIds 需要删除的岗位ID |
| | | * @return 结果 |
| | | */ |
| | | public int deletePostByIds(Long[] postIds); |
| | | |
| | | /** |
| | | * 新增保存岗位信息 |
| | | * |
| | | * @param post 岗位信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertPost(SysPost post); |
| | | |
| | | /** |
| | | * 修改保存岗位信息 |
| | | * |
| | | * @param post 岗位信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updatePost(SysPost post); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.sys; |
| | | |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | import com.ruoyi.system.api.domain.SysRole; |
| | | import com.ruoyi.system.domain.pojo.sys.SysUserRole; |
| | | |
| | | /** |
| | | * 角色业务层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface ISysRoleService |
| | | { |
| | | /** |
| | | * 根据条件分页查询角色数据 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 角色数据集合信息 |
| | | */ |
| | | public List<SysRole> selectRoleList(SysRole role); |
| | | |
| | | /** |
| | | * 根据用户ID查询角色列表 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 角色列表 |
| | | */ |
| | | public List<SysRole> selectRolesByUserId(Long userId); |
| | | |
| | | /** |
| | | * 根据用户ID查询角色权限 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 权限列表 |
| | | */ |
| | | public Set<String> selectRolePermissionByUserId(Long userId); |
| | | |
| | | /** |
| | | * 查询所有角色 |
| | | * |
| | | * @return 角色列表 |
| | | */ |
| | | public List<SysRole> selectRoleAll(); |
| | | |
| | | /** |
| | | * 根据用户ID获取角色选择框列表 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 选中角色ID列表 |
| | | */ |
| | | public List<Long> selectRoleListByUserId(Long userId); |
| | | |
| | | /** |
| | | * 通过角色ID查询角色 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 角色对象信息 |
| | | */ |
| | | public SysRole selectRoleById(Long roleId); |
| | | |
| | | /** |
| | | * 校验角色名称是否唯一 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean checkRoleNameUnique(SysRole role); |
| | | |
| | | /** |
| | | * 校验角色权限是否唯一 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean checkRoleKeyUnique(SysRole role); |
| | | |
| | | /** |
| | | * 校验角色是否允许操作 |
| | | * |
| | | * @param role 角色信息 |
| | | */ |
| | | public void checkRoleAllowed(SysRole role); |
| | | |
| | | /** |
| | | * 校验角色是否有数据权限 |
| | | * |
| | | * @param roleId 角色id |
| | | */ |
| | | public void checkRoleDataScope(Long roleId); |
| | | |
| | | /** |
| | | * 通过角色ID查询角色使用数量 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 结果 |
| | | */ |
| | | public int countUserRoleByRoleId(Long roleId); |
| | | |
| | | /** |
| | | * 新增保存角色信息 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertRole(SysRole role); |
| | | |
| | | /** |
| | | * 修改保存角色信息 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateRole(SysRole role); |
| | | |
| | | /** |
| | | * 修改角色状态 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateRoleStatus(SysRole role); |
| | | |
| | | /** |
| | | * 修改数据权限信息 |
| | | * |
| | | * @param role 角色信息 |
| | | * @return 结果 |
| | | */ |
| | | public int authDataScope(SysRole role); |
| | | |
| | | /** |
| | | * 通过角色ID删除角色 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteRoleById(Long roleId); |
| | | |
| | | /** |
| | | * 批量删除角色信息 |
| | | * |
| | | * @param roleIds 需要删除的角色ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteRoleByIds(Long[] roleIds); |
| | | |
| | | /** |
| | | * 取消授权用户角色 |
| | | * |
| | | * @param userRole 用户和角色关联信息 |
| | | * @return 结果 |
| | | */ |
| | | public int deleteAuthUser(SysUserRole userRole); |
| | | |
| | | /** |
| | | * 批量取消授权用户角色 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @param userIds 需要取消授权的用户数据ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteAuthUsers(Long roleId, Long[] userIds); |
| | | |
| | | /** |
| | | * 批量选择授权用户角色 |
| | | * |
| | | * @param roleId 角色ID |
| | | * @param userIds 需要删除的用户数据ID |
| | | * @return 结果 |
| | | */ |
| | | public int insertAuthUsers(Long roleId, Long[] userIds); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.sys; |
| | | |
| | | import com.ruoyi.system.api.model.LoginUser; |
| | | import com.ruoyi.system.domain.pojo.sys.SysUserOnline; |
| | | |
| | | /** |
| | | * 在线用户 服务层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface ISysUserOnlineService |
| | | { |
| | | /** |
| | | * 通过登录地址查询信息 |
| | | * |
| | | * @param ipaddr 登录地址 |
| | | * @param user 用户信息 |
| | | * @return 在线用户信息 |
| | | */ |
| | | public SysUserOnline selectOnlineByIpaddr(String ipaddr, LoginUser user); |
| | | |
| | | /** |
| | | * 通过用户名称查询信息 |
| | | * |
| | | * @param userName 用户名称 |
| | | * @param user 用户信息 |
| | | * @return 在线用户信息 |
| | | */ |
| | | public SysUserOnline selectOnlineByUserName(String userName, LoginUser user); |
| | | |
| | | /** |
| | | * 通过登录地址/用户名称查询信息 |
| | | * |
| | | * @param ipaddr 登录地址 |
| | | * @param userName 用户名称 |
| | | * @param user 用户信息 |
| | | * @return 在线用户信息 |
| | | */ |
| | | public SysUserOnline selectOnlineByInfo(String ipaddr, String userName, LoginUser user); |
| | | |
| | | /** |
| | | * 设置在线用户信息 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 在线用户 |
| | | */ |
| | | public SysUserOnline loginUserToUserOnline(LoginUser user); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.service.sys; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.system.api.domain.SysUser; |
| | | |
| | | /** |
| | | * 用户 业务层 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | public interface ISysUserService |
| | | { |
| | | /** |
| | | * 根据条件分页查询用户列表 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 用户信息集合信息 |
| | | */ |
| | | public List<SysUser> selectUserList(SysUser user); |
| | | |
| | | /** |
| | | * 根据条件分页查询已分配用户角色列表 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 用户信息集合信息 |
| | | */ |
| | | public List<SysUser> selectAllocatedList(SysUser user); |
| | | |
| | | /** |
| | | * 根据条件分页查询未分配用户角色列表 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 用户信息集合信息 |
| | | */ |
| | | public List<SysUser> selectUnallocatedList(SysUser user); |
| | | |
| | | /** |
| | | * 通过用户名查询用户 |
| | | * |
| | | * @param userName 用户名 |
| | | * @return 用户对象信息 |
| | | */ |
| | | public SysUser selectUserByUserName(String userName); |
| | | |
| | | /** |
| | | * 通过用户ID查询用户 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 用户对象信息 |
| | | */ |
| | | public SysUser selectUserById(Long userId); |
| | | |
| | | /** |
| | | * 根据用户ID查询用户所属角色组 |
| | | * |
| | | * @param userName 用户名 |
| | | * @return 结果 |
| | | */ |
| | | public String selectUserRoleGroup(String userName); |
| | | |
| | | /** |
| | | * 根据用户ID查询用户所属岗位组 |
| | | * |
| | | * @param userName 用户名 |
| | | * @return 结果 |
| | | */ |
| | | public String selectUserPostGroup(String userName); |
| | | |
| | | /** |
| | | * 校验用户名称是否唯一 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean checkUserNameUnique(SysUser user); |
| | | |
| | | /** |
| | | * 校验手机号码是否唯一 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean checkPhoneUnique(SysUser user); |
| | | |
| | | /** |
| | | * 校验email是否唯一 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean checkEmailUnique(SysUser user); |
| | | |
| | | /** |
| | | * 校验用户是否允许操作 |
| | | * |
| | | * @param user 用户信息 |
| | | */ |
| | | public void checkUserAllowed(SysUser user); |
| | | |
| | | /** |
| | | * 校验用户是否有数据权限 |
| | | * |
| | | * @param userId 用户id |
| | | */ |
| | | public void checkUserDataScope(Long userId); |
| | | |
| | | /** |
| | | * 新增用户信息 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertUser(SysUser user); |
| | | |
| | | /** |
| | | * 注册用户信息 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | public boolean registerUser(SysUser user); |
| | | |
| | | /** |
| | | * 修改用户信息 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateUser(SysUser user); |
| | | |
| | | /** |
| | | * 用户授权角色 |
| | | * |
| | | * @param userId 用户ID |
| | | * @param roleIds 角色组 |
| | | */ |
| | | public void insertUserAuth(Long userId, Long[] roleIds); |
| | | |
| | | /** |
| | | * 修改用户状态 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateUserStatus(SysUser user); |
| | | |
| | | /** |
| | | * 修改用户基本信息 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateUserProfile(SysUser user); |
| | | |
| | | /** |
| | | * 修改用户头像 |
| | | * |
| | | * @param userName 用户名 |
| | | * @param avatar 头像地址 |
| | | * @return 结果 |
| | | */ |
| | | public boolean updateUserAvatar(String userName, String avatar); |
| | | |
| | | /** |
| | | * 重置用户密码 |
| | | * |
| | | * @param user 用户信息 |
| | | * @return 结果 |
| | | */ |
| | | public int resetPwd(SysUser user); |
| | | |
| | | /** |
| | | * 重置用户密码 |
| | | * |
| | | * @param userName 用户名 |
| | | * @param password 密码 |
| | | * @return 结果 |
| | | */ |
| | | public int resetUserPwd(String userName, String password); |
| | | |
| | | /** |
| | | * 通过用户ID删除用户 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteUserById(Long userId); |
| | | |
| | | /** |
| | | * 批量删除用户信息 |
| | | * |
| | | * @param userIds 需要删除的用户ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteUserByIds(Long[] userIds); |
| | | |
| | | /** |
| | | * 导入用户数据 |
| | | * |
| | | * @param userList 用户数据列表 |
| | | * @param isUpdateSupport 是否更新支持,如果已存在,则进行更新数据 |
| | | * @param operName 操作用户 |
| | | * @return 结果 |
| | | */ |
| | | public String importUser(List<SysUser> userList, Boolean isUpdateSupport, String operName); |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.util; |
| | | |
| | | |
| | | |
| | | import com.ruoyi.common.core.utils.DateUtils; |
| | | |
| | | import java.security.SecureRandom; |
| | | import java.util.Date; |
| | | import java.util.Random; |
| | | |
| | | /** |
| | | * @author jqs34 |
| | | * @ClassName CodeFactoryUtil |
| | | * @description: TODO |
| | | * @date 2023年02月13日 |
| | | * @version: 1.0 |
| | | */ |
| | | public class CodeFactoryUtil { |
| | | |
| | | /** |
| | | * APP用户编码 |
| | | */ |
| | | private static final String APP_USER_PREFIX = "HRT_M"; |
| | | |
| | | /** |
| | | * 商户编号 |
| | | */ |
| | | private static final String SHOP_PREFIX = "HRT_S"; |
| | | |
| | | /** |
| | | * 订单前缀 |
| | | */ |
| | | private static final String ORDER_PREFIX = "BO"; |
| | | |
| | | /** |
| | | * 退款订单前缀 |
| | | */ |
| | | private static final String ORDER_REFUND_PREFIX = "RO"; |
| | | |
| | | /** |
| | | * 用户id和随机数总长度 |
| | | */ |
| | | |
| | | private static final int maxLength = 4; |
| | | |
| | | /** |
| | | * 更具id进行加密+加随机数组成固定长度编码 |
| | | */ |
| | | |
| | | public static void main(String[] args) { |
| | | Long orderId = 1L; |
| | | String userNo = getShopNo(orderId); |
| | | System.out.println(userNo); |
| | | } |
| | | |
| | | /** |
| | | * 获取商户编号 |
| | | * |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | public static String getShopNo(Long shopId) { |
| | | String prefix = SHOP_PREFIX; |
| | | return toFillZeroCode(prefix, maxLength, shopId); |
| | | } |
| | | |
| | | /** |
| | | * 获取会员编号 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | public static String getMemberNo(Long userId) { |
| | | String prefix = APP_USER_PREFIX; |
| | | return toFillZeroCode(prefix, maxLength, userId); |
| | | } |
| | | |
| | | /** |
| | | * 获取订单编号 |
| | | * |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | public static String getOrderNo(Long userId) { |
| | | |
| | | String prefix = DateUtils.parseDateToStr( "yyyyMMddHHmmss",new Date()); |
| | | prefix = ORDER_PREFIX + prefix; |
| | | return toFillZeroCode(prefix, maxLength, userId); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取用户编号 |
| | | * |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | public static String getAppUserNo(Long userId) { |
| | | return toFillZeroCode(APP_USER_PREFIX, 9, userId); |
| | | } |
| | | |
| | | /** |
| | | * 0补位 |
| | | * |
| | | * @param prefix |
| | | * @param totalLength |
| | | * @param id |
| | | * @return |
| | | */ |
| | | private static String toFillZeroCode(String prefix, int totalLength, Long id) { |
| | | String idStr = id.toString(); |
| | | int length = idStr.length(); |
| | | |
| | | int fillLength = totalLength - length; |
| | | StringBuilder idsbs = new StringBuilder(prefix); |
| | | for (int i = 0; i < fillLength; i++) { |
| | | idsbs.append("0"); |
| | | } |
| | | return idsbs.append(idStr).toString(); |
| | | } |
| | | |
| | | /** |
| | | * 随机6位数生成 |
| | | */ |
| | | public static String getRandStr(int num) { |
| | | // 默认6位 |
| | | num = num != 0 ? num : 6; |
| | | Random r = new SecureRandom(); |
| | | StringBuffer str = new StringBuffer(); |
| | | int i = 0; |
| | | while (i < num) { |
| | | str.append(r.nextInt(10)); |
| | | i++; |
| | | } |
| | | return str.toString(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.system.util; |
| | | |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import java.net.URLEncoder; |
| | | import java.util.regex.Matcher; |
| | | import java.util.regex.Pattern; |
| | | |
| | | public class EmojiUtil { |
| | | /** |
| | | * 编码 |
| | | * |
| | | * @param str 待转换字符串 |
| | | * @return 转换后字符串 |
| | | * @throws UnsupportedEncodingException exception |
| | | * @Description 将字符串中的emoji表情转换成可以在utf-8字符集数据库中保存的格式(表情占4个字节,需要utf8mb4字符集) |
| | | */ |
| | | public static String emojiEncode(String str) |
| | | throws UnsupportedEncodingException { |
| | | String patternString = "([\\x{10000}-\\x{10ffff}\ud800-\udfff])"; |
| | | |
| | | Pattern pattern = Pattern.compile(patternString); |
| | | Matcher matcher = pattern.matcher(str); |
| | | StringBuffer sb = new StringBuffer(); |
| | | while (matcher.find()) { |
| | | try { |
| | | matcher.appendReplacement( |
| | | sb, |
| | | "[[" |
| | | + URLEncoder.encode(matcher.group(1), |
| | | "UTF-8") + "]]"); |
| | | } catch (UnsupportedEncodingException e) { |
| | | // LOG.error("emojiConvert error", e); |
| | | throw e; |
| | | } |
| | | } |
| | | matcher.appendTail(sb); |
| | | // LOG.debug("emojiConvert " + str + " to " + sb.toString() |
| | | // + ", len:" + sb.length()); |
| | | return sb.toString(); |
| | | } |
| | | |
| | | /** |
| | | * 解码 |
| | | * |
| | | * @param str 转换后的字符串 |
| | | * @return 转换前的字符串 |
| | | * @throws UnsupportedEncodingException exception |
| | | * @Description 还原utf8数据库中保存的含转换后emoji表情的字符串 |
| | | */ |
| | | public static String emojiDecode(String str) |
| | | throws UnsupportedEncodingException { |
| | | String patternString = "\\[\\[(.*?)\\]\\]"; |
| | | |
| | | Pattern pattern = Pattern.compile(patternString); |
| | | if (str == null) { |
| | | return str; |
| | | } |
| | | Matcher matcher = pattern.matcher(str); |
| | | |
| | | StringBuffer sb = new StringBuffer(); |
| | | while (matcher.find()) { |
| | | try { |
| | | matcher.appendReplacement(sb, |
| | | URLDecoder.decode(matcher.group(1), "UTF-8")); |
| | | } catch (UnsupportedEncodingException e) { |
| | | // LOG.error("emojiRecovery error", e); |
| | | throw e; |
| | | } |
| | | } |
| | | matcher.appendTail(sb); |
| | | // LOG.debug("emojiRecovery " + str + " to " + sb.toString()); |
| | | // System.out.println("emojiRecovery " + str + " to " + sb.toString()); |
| | | return sb.toString(); |
| | | } |
| | | |
| | | /** |
| | | * @param str 待过滤字符串 |
| | | * @return 过滤后字符串 |
| | | * exception |
| | | * @Description 将字符串中的emoji表情过滤掉 |
| | | */ |
| | | public static String emojiSub(String str) { |
| | | String patternString = "([\\x{10000}-\\x{10ffff}\ud800-\udfff])"; |
| | | Pattern pattern = Pattern.compile(patternString); |
| | | Matcher matcher = pattern.matcher(str); |
| | | StringBuffer sb = new StringBuffer(); |
| | | while (matcher.find()) { |
| | | matcher.appendReplacement(sb, ""); |
| | | } |
| | | matcher.appendTail(sb); |
| | | return sb.toString(); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | Spring Boot Version: ${spring-boot.version} |
| | | Spring Application Name: ${spring.application.name} |
| | | _ _ |
| | | (_) | | |
| | | _ __ _ _ ___ _ _ _ ______ ___ _ _ ___ | |_ ___ _ __ ___ |
| | | | '__|| | | | / _ \ | | | || ||______|/ __|| | | |/ __|| __| / _ \| '_ ` _ \ |
| | | | | | |_| || (_) || |_| || | \__ \| |_| |\__ \| |_ | __/| | | | | | |
| | | |_| \__,_| \___/ \__, ||_| |___/ \__, ||___/ \__| \___||_| |_| |_| |
| | | __/ | __/ | |
| | | |___/ |___/ |
New file |
| | |
| | | # Tomcat |
| | | server: |
| | | port: 10062 |
| | | |
| | | # Spring |
| | | spring: |
| | | application: |
| | | # 应用名称 |
| | | name: ruoyi-member |
| | | profiles: |
| | | # 环境配置 |
| | | active: dev |
| | | cloud: |
| | | nacos: |
| | | discovery: |
| | | # 服务注册地址 |
| | | server-addr: 47.109.78.184:5000 |
| | | config: |
| | | # 配置中心地址 |
| | | server-addr: 47.109.78.184:5000 |
| | | # 配置文件格式 |
| | | file-extension: yml |
| | | # 共享配置 |
| | | shared-configs: |
| | | - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <configuration scan="true" scanPeriod="60 seconds" debug="false"> |
| | | <!-- 日志存放路径 --> |
| | | <property name="log.path" value="logs/ruoyi-member" /> |
| | | <!-- 日志输出格式 --> |
| | | <property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" /> |
| | | |
| | | <!-- 控制台输出 --> |
| | | <appender name="console" class="ch.qos.logback.core.ConsoleAppender"> |
| | | <encoder> |
| | | <pattern>${log.pattern}</pattern> |
| | | </encoder> |
| | | </appender> |
| | | |
| | | <!-- 系统日志输出 --> |
| | | <appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| | | <file>${log.path}/info.log</file> |
| | | <!-- 循环政策:基于时间创建日志文件 --> |
| | | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| | | <!-- 日志文件名格式 --> |
| | | <fileNamePattern>${log.path}/info.%d{yyyy-MM-dd}.log</fileNamePattern> |
| | | <!-- 日志最大的历史 60天 --> |
| | | <maxHistory>60</maxHistory> |
| | | </rollingPolicy> |
| | | <encoder> |
| | | <pattern>${log.pattern}</pattern> |
| | | </encoder> |
| | | <filter class="ch.qos.logback.classic.filter.LevelFilter"> |
| | | <!-- 过滤的级别 --> |
| | | <level>INFO</level> |
| | | <!-- 匹配时的操作:接收(记录) --> |
| | | <onMatch>ACCEPT</onMatch> |
| | | <!-- 不匹配时的操作:拒绝(不记录) --> |
| | | <onMismatch>DENY</onMismatch> |
| | | </filter> |
| | | </appender> |
| | | |
| | | <appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| | | <file>${log.path}/error.log</file> |
| | | <!-- 循环政策:基于时间创建日志文件 --> |
| | | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| | | <!-- 日志文件名格式 --> |
| | | <fileNamePattern>${log.path}/error.%d{yyyy-MM-dd}.log</fileNamePattern> |
| | | <!-- 日志最大的历史 60天 --> |
| | | <maxHistory>60</maxHistory> |
| | | </rollingPolicy> |
| | | <encoder> |
| | | <pattern>${log.pattern}</pattern> |
| | | </encoder> |
| | | <filter class="ch.qos.logback.classic.filter.LevelFilter"> |
| | | <!-- 过滤的级别 --> |
| | | <level>ERROR</level> |
| | | <!-- 匹配时的操作:接收(记录) --> |
| | | <onMatch>ACCEPT</onMatch> |
| | | <!-- 不匹配时的操作:拒绝(不记录) --> |
| | | <onMismatch>DENY</onMismatch> |
| | | </filter> |
| | | </appender> |
| | | |
| | | <!-- 系统模块日志级别控制 --> |
| | | <logger name="com.ruoyi" level="info" /> |
| | | <!-- Spring日志级别控制 --> |
| | | <logger name="org.springframework" level="warn" /> |
| | | |
| | | <root level="info"> |
| | | <appender-ref ref="console" /> |
| | | </root> |
| | | |
| | | <!--系统操作日志--> |
| | | <root level="info"> |
| | | <appender-ref ref="file_info" /> |
| | | <appender-ref ref="file_error" /> |
| | | </root> |
| | | </configuration> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.activity.ActivityGoodsMapper"> |
| | | |
| | | <resultMap type="com.ruoyi.system.domain.pojo.activity.ActivityGoods" id="ActivityGoodsResult"> |
| | | <result property="agId" column="ag_id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="goodsId" column="goods_id" /> |
| | | <result property="activityId" column="activity_id" /> |
| | | <result property="activityPrice" column="activity_price" /> |
| | | <result property="activityNumber" column="activity_number" /> |
| | | <result property="salesNumber" column="sales_number" /> |
| | | <result property="activityDeadline" column="activity_deadline" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectActivityGoodsVo"> |
| | | select ag_id, del_flag, goods_id, activity_id, activity_price, activity_number, sales_number, activity_deadline from t_activity_goods |
| | | </sql> |
| | | |
| | | <select id="selectActivityGoodsList" parameterType="com.ruoyi.system.domain.pojo.activity.ActivityGoods" resultMap="ActivityGoodsResult"> |
| | | <include refid="selectActivityGoodsVo"/> |
| | | <where> |
| | | <if test="goodsId != null and goodsId != ''"> and goods_id = #{goodsId}</if> |
| | | <if test="activityId != null and activityId != ''"> and activity_id = #{activityId}</if> |
| | | <if test="activityPrice != null "> and activity_price = #{activityPrice}</if> |
| | | <if test="activityNumber != null "> and activity_number = #{activityNumber}</if> |
| | | <if test="salesNumber != null "> and sales_number = #{salesNumber}</if> |
| | | <if test="activityDeadline != null "> and activity_deadline = #{activityDeadline}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectActivityGoodsByAgId" parameterType="Long" resultMap="ActivityGoodsResult"> |
| | | <include refid="selectActivityGoodsVo"/> |
| | | where ag_id = #{agId} |
| | | </select> |
| | | |
| | | <insert id="insertActivityGoods" parameterType="com.ruoyi.system.domain.pojo.activity.ActivityGoods" useGeneratedKeys="true" keyProperty="agId"> |
| | | insert into t_activity_goods |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="goodsId != null">goods_id,</if> |
| | | <if test="activityId != null">activity_id,</if> |
| | | <if test="activityPrice != null">activity_price,</if> |
| | | <if test="activityNumber != null">activity_number,</if> |
| | | <if test="salesNumber != null">sales_number,</if> |
| | | <if test="activityDeadline != null">activity_deadline,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="goodsId != null">#{goodsId},</if> |
| | | <if test="activityId != null">#{activityId},</if> |
| | | <if test="activityPrice != null">#{activityPrice},</if> |
| | | <if test="activityNumber != null">#{activityNumber},</if> |
| | | <if test="salesNumber != null">#{salesNumber},</if> |
| | | <if test="activityDeadline != null">#{activityDeadline},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateActivityGoods" parameterType="com.ruoyi.system.domain.pojo.activity.ActivityGoods"> |
| | | update t_activity_goods |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="goodsId != null">goods_id = #{goodsId},</if> |
| | | <if test="activityId != null">activity_id = #{activityId},</if> |
| | | <if test="activityPrice != null">activity_price = #{activityPrice},</if> |
| | | <if test="activityNumber != null">activity_number = #{activityNumber},</if> |
| | | <if test="salesNumber != null">sales_number = #{salesNumber},</if> |
| | | <if test="activityDeadline != null">activity_deadline = #{activityDeadline},</if> |
| | | </trim> |
| | | where ag_id = #{agId} |
| | | </update> |
| | | |
| | | <delete id="deleteActivityGoodsByAgId" parameterType="Long"> |
| | | delete from t_activity_goods where ag_id = #{agId} |
| | | </delete> |
| | | |
| | | <delete id="deleteActivityGoodsByAgIds" parameterType="String"> |
| | | delete from t_activity_goods where ag_id in |
| | | <foreach item="agId" collection="array" open="(" separator="," close=")"> |
| | | #{agId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.config.AdvertMapper"> |
| | | |
| | | <resultMap type="Advert" id="AdvertResult"> |
| | | <result property="adId" column="ad_id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="adUrl" column="ad_url" /> |
| | | <result property="adContent" column="ad_content" /> |
| | | <result property="targetType" column="target_type" /> |
| | | <result property="linkUrl" column="link_url" /> |
| | | <result property="jumpId" column="jump_id" /> |
| | | <result property="logoUrl" column="logo_url" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createUserId" column="create_user_id" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectAdvertVo"> |
| | | select ad_id, del_flag, ad_url, ad_content, target_type, link_url, jump_id, logo_url, create_time, create_user_id from t_advert |
| | | </sql> |
| | | |
| | | <select id="selectAdvertList" parameterType="Advert" resultMap="AdvertResult"> |
| | | <include refid="selectAdvertVo"/> |
| | | <where> |
| | | <if test="adUrl != null and adUrl != ''"> and ad_url = #{adUrl}</if> |
| | | <if test="adContent != null and adContent != ''"> and ad_content = #{adContent}</if> |
| | | <if test="targetType != null "> and target_type = #{targetType}</if> |
| | | <if test="linkUrl != null and linkUrl != ''"> and link_url = #{linkUrl}</if> |
| | | <if test="jumpId != null and jumpId != ''"> and jump_id = #{jumpId}</if> |
| | | <if test="logoUrl != null and logoUrl != ''"> and logo_url = #{logoUrl}</if> |
| | | <if test="createUserId != null "> and create_user_id = #{createUserId}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectAdvertByAdId" parameterType="Long" resultMap="AdvertResult"> |
| | | <include refid="selectAdvertVo"/> |
| | | where ad_id = #{adId} |
| | | </select> |
| | | |
| | | <insert id="insertAdvert" parameterType="Advert" useGeneratedKeys="true" keyProperty="adId"> |
| | | insert into t_advert |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="adUrl != null">ad_url,</if> |
| | | <if test="adContent != null">ad_content,</if> |
| | | <if test="targetType != null">target_type,</if> |
| | | <if test="linkUrl != null">link_url,</if> |
| | | <if test="jumpId != null">jump_id,</if> |
| | | <if test="logoUrl != null">logo_url,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="createUserId != null">create_user_id,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="adUrl != null">#{adUrl},</if> |
| | | <if test="adContent != null">#{adContent},</if> |
| | | <if test="targetType != null">#{targetType},</if> |
| | | <if test="linkUrl != null">#{linkUrl},</if> |
| | | <if test="jumpId != null">#{jumpId},</if> |
| | | <if test="logoUrl != null">#{logoUrl},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="createUserId != null">#{createUserId},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateAdvert" parameterType="Advert"> |
| | | update t_advert |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="adUrl != null">ad_url = #{adUrl},</if> |
| | | <if test="adContent != null">ad_content = #{adContent},</if> |
| | | <if test="targetType != null">target_type = #{targetType},</if> |
| | | <if test="linkUrl != null">link_url = #{linkUrl},</if> |
| | | <if test="jumpId != null">jump_id = #{jumpId},</if> |
| | | <if test="logoUrl != null">logo_url = #{logoUrl},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="createUserId != null">create_user_id = #{createUserId},</if> |
| | | </trim> |
| | | where ad_id = #{adId} |
| | | </update> |
| | | |
| | | <delete id="deleteAdvertByAdId" parameterType="Long"> |
| | | delete from t_advert where ad_id = #{adId} |
| | | </delete> |
| | | |
| | | <delete id="deleteAdvertByAdIds" parameterType="String"> |
| | | delete from t_advert where ad_id in |
| | | <foreach item="adId" collection="array" open="(" separator="," close=")"> |
| | | #{adId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="getAdvertVo" resultType="com.ruoyi.system.domain.vo.AppAdvertVo"> |
| | | SELECT |
| | | ad_id adId, |
| | | ad_url adUrl, |
| | | ad_content adContent, |
| | | target_type targetType, |
| | | link_url linkUrl, |
| | | jump_id jumpId, |
| | | logo_url logoUrl |
| | | FROM t_advert WHERE del_flag = 0 ORDER BY create_time DESC LIMIT 1 |
| | | </select> |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.config.AgreementMapper"> |
| | | |
| | | <resultMap type="Agreement" id="AgreementResult"> |
| | | <result property="agreementId" column="agreement_id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="agreementType" column="agreement_type" /> |
| | | <result property="agreementContent" column="agreement_content" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createUserId" column="create_user_id" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectAgreementVo"> |
| | | select agreement_id, del_flag, agreement_type, agreement_content, create_time, create_user_id from t_agreement |
| | | </sql> |
| | | |
| | | <select id="selectAgreementList" parameterType="Agreement" resultMap="AgreementResult"> |
| | | <include refid="selectAgreementVo"/> |
| | | <where> |
| | | <if test="agreementType != null "> and agreement_type = #{agreementType}</if> |
| | | <if test="agreementContent != null and agreementContent != ''"> and agreement_content = #{agreementContent}</if> |
| | | <if test="createUserId != null "> and create_user_id = #{createUserId}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectAgreementByAgreementId" parameterType="Long" resultMap="AgreementResult"> |
| | | <include refid="selectAgreementVo"/> |
| | | where agreement_id = #{agreementId} |
| | | </select> |
| | | |
| | | <insert id="insertAgreement" parameterType="Agreement" useGeneratedKeys="true" keyProperty="agreementId"> |
| | | insert into t_agreement |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="agreementType != null">agreement_type,</if> |
| | | <if test="agreementContent != null">agreement_content,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="createUserId != null">create_user_id,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="agreementType != null">#{agreementType},</if> |
| | | <if test="agreementContent != null">#{agreementContent},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="createUserId != null">#{createUserId},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateAgreement" parameterType="Agreement"> |
| | | update t_agreement |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="agreementType != null">agreement_type = #{agreementType},</if> |
| | | <if test="agreementContent != null">agreement_content = #{agreementContent},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="createUserId != null">create_user_id = #{createUserId},</if> |
| | | </trim> |
| | | where agreement_id = #{agreementId} |
| | | </update> |
| | | |
| | | <delete id="deleteAgreementByAgreementId" parameterType="Long"> |
| | | delete from t_agreement where agreement_id = #{agreementId} |
| | | </delete> |
| | | |
| | | <delete id="deleteAgreementByAgreementIds" parameterType="String"> |
| | | delete from t_agreement where agreement_id in |
| | | <foreach item="agreementId" collection="array" open="(" separator="," close=")"> |
| | | #{agreementId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="getAppAgreementVoByType" resultType="com.ruoyi.system.domain.vo.AppAgreementVo"> |
| | | SELECT agreement_id agreementId,agreement_content agreementContent FROM t_agreement WHERE del_flag = 0 AND agreement_type = #{type} |
| | | </select> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.config.BannerMapper"> |
| | | |
| | | <resultMap type="Banner" id="BannerResult"> |
| | | <result property="bannerId" column="banner_id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="bannerPosition" column="banner_position" /> |
| | | <result property="bannerUrl" column="banner_url" /> |
| | | <result property="targetType" column="target_type" /> |
| | | <result property="linkType" column="link_type" /> |
| | | <result property="linkUrl" column="link_url" /> |
| | | <result property="jumpType" column="jump_type" /> |
| | | <result property="jumpId" column="jump_id" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createUserId" column="create_user_id" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectBannerVo"> |
| | | select banner_id, del_flag, banner_position, banner_url, target_type, link_type, link_url, jump_type, jump_id, create_time, create_user_id from t_banner |
| | | </sql> |
| | | |
| | | <select id="selectBannerList" parameterType="Banner" resultMap="BannerResult"> |
| | | <include refid="selectBannerVo"/> |
| | | <where> |
| | | <if test="bannerPosition != null "> and banner_position = #{bannerPosition}</if> |
| | | <if test="bannerUrl != null and bannerUrl != ''"> and banner_url = #{bannerUrl}</if> |
| | | <if test="targetType != null "> and target_type = #{targetType}</if> |
| | | <if test="linkType != null "> and link_type = #{linkType}</if> |
| | | <if test="linkUrl != null and linkUrl != ''"> and link_url = #{linkUrl}</if> |
| | | <if test="jumpType != null "> and jump_type = #{jumpType}</if> |
| | | <if test="jumpId != null and jumpId != ''"> and jump_id = #{jumpId}</if> |
| | | <if test="createUserId != null "> and create_user_id = #{createUserId}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectBannerByBannerId" parameterType="Long" resultMap="BannerResult"> |
| | | <include refid="selectBannerVo"/> |
| | | where banner_id = #{bannerId} |
| | | </select> |
| | | |
| | | <insert id="insertBanner" parameterType="Banner" useGeneratedKeys="true" keyProperty="bannerId"> |
| | | insert into t_banner |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="bannerPosition != null">banner_position,</if> |
| | | <if test="bannerUrl != null">banner_url,</if> |
| | | <if test="targetType != null">target_type,</if> |
| | | <if test="linkType != null">link_type,</if> |
| | | <if test="linkUrl != null">link_url,</if> |
| | | <if test="jumpType != null">jump_type,</if> |
| | | <if test="jumpId != null">jump_id,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="createUserId != null">create_user_id,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="bannerPosition != null">#{bannerPosition},</if> |
| | | <if test="bannerUrl != null">#{bannerUrl},</if> |
| | | <if test="targetType != null">#{targetType},</if> |
| | | <if test="linkType != null">#{linkType},</if> |
| | | <if test="linkUrl != null">#{linkUrl},</if> |
| | | <if test="jumpType != null">#{jumpType},</if> |
| | | <if test="jumpId != null">#{jumpId},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="createUserId != null">#{createUserId},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateBanner" parameterType="Banner"> |
| | | update t_banner |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="bannerPosition != null">banner_position = #{bannerPosition},</if> |
| | | <if test="bannerUrl != null">banner_url = #{bannerUrl},</if> |
| | | <if test="targetType != null">target_type = #{targetType},</if> |
| | | <if test="linkType != null">link_type = #{linkType},</if> |
| | | <if test="linkUrl != null">link_url = #{linkUrl},</if> |
| | | <if test="jumpType != null">jump_type = #{jumpType},</if> |
| | | <if test="jumpId != null">jump_id = #{jumpId},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="createUserId != null">create_user_id = #{createUserId},</if> |
| | | </trim> |
| | | where banner_id = #{bannerId} |
| | | </update> |
| | | |
| | | <delete id="deleteBannerByBannerId" parameterType="Long"> |
| | | delete from t_banner where banner_id = #{bannerId} |
| | | </delete> |
| | | |
| | | <delete id="deleteBannerByBannerIds" parameterType="String"> |
| | | delete from t_banner where banner_id in |
| | | <foreach item="bannerId" collection="array" open="(" separator="," close=")"> |
| | | #{bannerId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="listHomeBannerVo" resultType="com.ruoyi.system.domain.vo.AppBannerVo"> |
| | | SELECT |
| | | banner_id bannerId, |
| | | banner_url bannerUrl, |
| | | target_type targetType, |
| | | link_type linkType, |
| | | link_url linkUrl, |
| | | jump_type jumpType, |
| | | jump_id jumpId |
| | | FROM t_banner WHERE del_flag = 0 AND banner_position = 1 |
| | | ORDER BY create_time ASC |
| | | </select> |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.config.CustomeConfigMapper"> |
| | | |
| | | <resultMap type="CustomeConfig" id="CustomeConfigResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="type" column="type" /> |
| | | <result property="key" column="key" /> |
| | | <result property="name" column="name" /> |
| | | <result property="value" column="value" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateime" column="update_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectCustomeConfigVo"> |
| | | select id, del_flag, type, key, name, value, create_time, update_time from t_custome_config |
| | | </sql> |
| | | |
| | | <select id="selectCustomeConfigList" parameterType="CustomeConfig" resultMap="CustomeConfigResult"> |
| | | <include refid="selectCustomeConfigVo"/> |
| | | <where> |
| | | <if test="type != null "> and type = #{type}</if> |
| | | <if test="key != null and key != ''"> and key = #{key}</if> |
| | | <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> |
| | | <if test="value != null and value != ''"> and value = #{value}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectCustomeConfigById" parameterType="Long" resultMap="CustomeConfigResult"> |
| | | <include refid="selectCustomeConfigVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertCustomeConfig" parameterType="CustomeConfig" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_custome_config |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="type != null">type,</if> |
| | | <if test="key != null">key,</if> |
| | | <if test="name != null">name,</if> |
| | | <if test="value != null">value,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="updateime != null">update_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="type != null">#{type},</if> |
| | | <if test="key != null">#{key},</if> |
| | | <if test="name != null">#{name},</if> |
| | | <if test="value != null">#{value},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateime != null">#{updateime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateCustomeConfig" parameterType="CustomeConfig"> |
| | | update t_custome_config |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="type != null">type = #{type},</if> |
| | | <if test="key != null">key = #{key},</if> |
| | | <if test="name != null">name = #{name},</if> |
| | | <if test="value != null">value = #{value},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="updateime != null">update_time = #{updateime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteCustomeConfigById" parameterType="Long"> |
| | | delete from t_custome_config where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteCustomeConfigByIds" parameterType="String"> |
| | | delete from t_custome_config where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.config.PopMapper"> |
| | | |
| | | <resultMap type="Pop" id="PopResult"> |
| | | <result property="popId" column="pop_id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="popSort" column="pop_sort" /> |
| | | <result property="popUrl" column="pop_url" /> |
| | | <result property="showStartTime" column="show_start_time" /> |
| | | <result property="showEndTime" column="show_end_time" /> |
| | | <result property="targetType" column="target_type" /> |
| | | <result property="linkUrl" column="link_url" /> |
| | | <result property="jumpId" column="jump_id" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createUserId" column="create_user_id" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPopVo"> |
| | | select pop_id, del_flag, pop_sort, pop_url, show_start_time, show_end_time, target_type, link_url, jump_id, create_time, create_user_id from t_pop |
| | | </sql> |
| | | |
| | | <select id="selectPopList" parameterType="Pop" resultMap="PopResult"> |
| | | <include refid="selectPopVo"/> |
| | | <where> |
| | | <if test="popSort != null "> and pop_sort = #{popSort}</if> |
| | | <if test="popUrl != null and popUrl != ''"> and pop_url = #{popUrl}</if> |
| | | <if test="showStartTime != null "> and show_start_time = #{showStartTime}</if> |
| | | <if test="showEndTime != null "> and show_end_time = #{showEndTime}</if> |
| | | <if test="targetType != null "> and target_type = #{targetType}</if> |
| | | <if test="linkUrl != null and linkUrl != ''"> and link_url = #{linkUrl}</if> |
| | | <if test="jumpId != null and jumpId != ''"> and jump_id = #{jumpId}</if> |
| | | <if test="createUserId != null "> and create_user_id = #{createUserId}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectPopByPopId" parameterType="Long" resultMap="PopResult"> |
| | | <include refid="selectPopVo"/> |
| | | where pop_id = #{popId} |
| | | </select> |
| | | |
| | | <insert id="insertPop" parameterType="Pop" useGeneratedKeys="true" keyProperty="popId"> |
| | | insert into t_pop |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="popSort != null">pop_sort,</if> |
| | | <if test="popUrl != null">pop_url,</if> |
| | | <if test="showStartTime != null">show_start_time,</if> |
| | | <if test="showEndTime != null">show_end_time,</if> |
| | | <if test="targetType != null">target_type,</if> |
| | | <if test="linkUrl != null">link_url,</if> |
| | | <if test="jumpId != null">jump_id,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="createUserId != null">create_user_id,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="popSort != null">#{popSort},</if> |
| | | <if test="popUrl != null">#{popUrl},</if> |
| | | <if test="showStartTime != null">#{showStartTime},</if> |
| | | <if test="showEndTime != null">#{showEndTime},</if> |
| | | <if test="targetType != null">#{targetType},</if> |
| | | <if test="linkUrl != null">#{linkUrl},</if> |
| | | <if test="jumpId != null">#{jumpId},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="createUserId != null">#{createUserId},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updatePop" parameterType="Pop"> |
| | | update t_pop |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="popSort != null">pop_sort = #{popSort},</if> |
| | | <if test="popUrl != null">pop_url = #{popUrl},</if> |
| | | <if test="showStartTime != null">show_start_time = #{showStartTime},</if> |
| | | <if test="showEndTime != null">show_end_time = #{showEndTime},</if> |
| | | <if test="targetType != null">target_type = #{targetType},</if> |
| | | <if test="linkUrl != null">link_url = #{linkUrl},</if> |
| | | <if test="jumpId != null">jump_id = #{jumpId},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="createUserId != null">create_user_id = #{createUserId},</if> |
| | | </trim> |
| | | where pop_id = #{popId} |
| | | </update> |
| | | |
| | | <delete id="deletePopByPopId" parameterType="Long"> |
| | | delete from t_pop where pop_id = #{popId} |
| | | </delete> |
| | | |
| | | <delete id="deletePopByPopIds" parameterType="String"> |
| | | delete from t_pop where pop_id in |
| | | <foreach item="popId" collection="array" open="(" separator="," close=")"> |
| | | #{popId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.config.QuickEntryMapper"> |
| | | |
| | | <resultMap type="QuickEntry" id="QuickEntryResult"> |
| | | <result property="entryId" column="entry_id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="entrySort" column="entry_sort" /> |
| | | <result property="entryUrl" column="entry_url" /> |
| | | <result property="entryName" column="entry_name" /> |
| | | <result property="targetType" column="target_type" /> |
| | | <result property="linkUrl" column="link_url" /> |
| | | <result property="jumpId" column="jump_id" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createUserId" column="create_user_id" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectQuickEntryVo"> |
| | | select entry_id, del_flag, entry_sort, entry_url, entry_name, target_type, link_url, jump_id, create_time, create_user_id from t_quick_entry |
| | | </sql> |
| | | |
| | | <select id="selectQuickEntryList" parameterType="QuickEntry" resultMap="QuickEntryResult"> |
| | | <include refid="selectQuickEntryVo"/> |
| | | <where> |
| | | <if test="entrySort != null "> and entry_sort = #{entrySort}</if> |
| | | <if test="entryUrl != null and entryUrl != ''"> and entry_url = #{entryUrl}</if> |
| | | <if test="entryName != null and entryName != ''"> and entry_name like concat('%', #{entryName}, '%')</if> |
| | | <if test="targetType != null "> and target_type = #{targetType}</if> |
| | | <if test="linkUrl != null and linkUrl != ''"> and link_url = #{linkUrl}</if> |
| | | <if test="jumpId != null and jumpId != ''"> and jump_id = #{jumpId}</if> |
| | | <if test="createUserId != null "> and create_user_id = #{createUserId}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectQuickEntryByEntryId" parameterType="Long" resultMap="QuickEntryResult"> |
| | | <include refid="selectQuickEntryVo"/> |
| | | where entry_id = #{entryId} |
| | | </select> |
| | | |
| | | <insert id="insertQuickEntry" parameterType="QuickEntry" useGeneratedKeys="true" keyProperty="entryId"> |
| | | insert into t_quick_entry |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="entrySort != null">entry_sort,</if> |
| | | <if test="entryUrl != null">entry_url,</if> |
| | | <if test="entryName != null">entry_name,</if> |
| | | <if test="targetType != null">target_type,</if> |
| | | <if test="linkUrl != null">link_url,</if> |
| | | <if test="jumpId != null">jump_id,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="createUserId != null">create_user_id,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="entrySort != null">#{entrySort},</if> |
| | | <if test="entryUrl != null">#{entryUrl},</if> |
| | | <if test="entryName != null">#{entryName},</if> |
| | | <if test="targetType != null">#{targetType},</if> |
| | | <if test="linkUrl != null">#{linkUrl},</if> |
| | | <if test="jumpId != null">#{jumpId},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="createUserId != null">#{createUserId},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateQuickEntry" parameterType="QuickEntry"> |
| | | update t_quick_entry |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="entrySort != null">entry_sort = #{entrySort},</if> |
| | | <if test="entryUrl != null">entry_url = #{entryUrl},</if> |
| | | <if test="entryName != null">entry_name = #{entryName},</if> |
| | | <if test="targetType != null">target_type = #{targetType},</if> |
| | | <if test="linkUrl != null">link_url = #{linkUrl},</if> |
| | | <if test="jumpId != null">jump_id = #{jumpId},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="createUserId != null">create_user_id = #{createUserId},</if> |
| | | </trim> |
| | | where entry_id = #{entryId} |
| | | </update> |
| | | |
| | | <delete id="deleteQuickEntryByEntryId" parameterType="Long"> |
| | | delete from t_quick_entry where entry_id = #{entryId} |
| | | </delete> |
| | | |
| | | <delete id="deleteQuickEntryByEntryIds" parameterType="String"> |
| | | delete from t_quick_entry where entry_id in |
| | | <foreach item="entryId" collection="array" open="(" separator="," close=")"> |
| | | #{entryId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="listQuickEntryVo" resultType="com.ruoyi.system.domain.vo.AppQuickEntryVo"> |
| | | SELECT |
| | | entry_id entryId, |
| | | entry_url entryUrl, |
| | | entry_name entryName, |
| | | target_type targetType, |
| | | link_url linkUrl, |
| | | jump_id jumpId |
| | | FROM t_quick_entry WHERE del_flag = 0 |
| | | ORDER BY entry_sort DESC |
| | | </select> |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.SysClassificationMapper"> |
| | | |
| | | <resultMap type="SysClassification" id="SysClassificationResult"> |
| | | <result property="classId" column="class_id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="classType" column="class_type" /> |
| | | <result property="className" column="class_name" /> |
| | | <result property="classSort" column="class_sort" /> |
| | | <result property="relationNum" column="relation_num" /> |
| | | <result property="createTime" column="create_time" /> |
| | | |
| | | </resultMap> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.SysTagMapper"> |
| | | |
| | | <resultMap type="SysTag" id="SysTagResult"> |
| | | <result property="tagId" column="tag_id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="tagType" column="tag_type" /> |
| | | <result property="tagName" column="tag_name" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="synFlag" column="syn_flag" /> |
| | | |
| | | </resultMap> |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.coupon.CouponMapper"> |
| | | |
| | | <resultMap type="Coupon" id="CouponResult"> |
| | | <result property="couponId" column="coupon_id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="couponType" column="coupon_type" /> |
| | | <result property="couponStatus" column="coupon_status" /> |
| | | <result property="couponName" column="coupon_name" /> |
| | | <result property="sendType" column="send_type" /> |
| | | <result property="sendTimeType" column="send_time_type" /> |
| | | <result property="sendTime" column="send_time" /> |
| | | <result property="moneyThreshold" column="money_threshold" /> |
| | | <result property="dicountMoney" column="dicount_money" /> |
| | | <result property="discoutPercent" column="discout_percent" /> |
| | | <result property="useScope" column="use_scope" /> |
| | | <result property="validTimeType" column="valid_time_type" /> |
| | | <result property="validStartTime" column="valid_start_time" /> |
| | | <result property="validEndTime" column="valid_end_time" /> |
| | | <result property="validDay" column="valid_day" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createUserId" column="create_user_id" /> |
| | | <result property="updateime" column="update_time" /> |
| | | <result property="updateUserId" column="update_user_id" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectCouponVo"> |
| | | select coupon_id, del_flag, coupon_type, coupon_status, coupon_name, send_type, send_time_type, send_time, money_threshold, dicount_money, discout_percent, use_scope, valid_time_type, valid_start_time, valid_end_time, valid_day, create_time, create_user_id, update_time, update_user_id from t_coupon |
| | | </sql> |
| | | |
| | | <select id="selectCouponList" parameterType="Coupon" resultMap="CouponResult"> |
| | | <include refid="selectCouponVo"/> |
| | | <where> |
| | | <if test="couponType != null "> and coupon_type = #{couponType}</if> |
| | | <if test="couponStatus != null "> and coupon_status = #{couponStatus}</if> |
| | | <if test="couponName != null and couponName != ''"> and coupon_name like concat('%', #{couponName}, '%')</if> |
| | | <if test="sendType != null "> and send_type = #{sendType}</if> |
| | | <if test="sendTimeType != null "> and send_time_type = #{sendTimeType}</if> |
| | | <if test="sendTime != null "> and send_time = #{sendTime}</if> |
| | | <if test="moneyThreshold != null "> and money_threshold = #{moneyThreshold}</if> |
| | | <if test="dicountMoney != null "> and dicount_money = #{dicountMoney}</if> |
| | | <if test="discoutPercent != null "> and discout_percent = #{discoutPercent}</if> |
| | | <if test="useScope != null "> and use_scope = #{useScope}</if> |
| | | <if test="validTimeType != null "> and valid_time_type = #{validTimeType}</if> |
| | | <if test="validStartTime != null "> and valid_start_time = #{validStartTime}</if> |
| | | <if test="validEndTime != null "> and valid_end_time = #{validEndTime}</if> |
| | | <if test="validDay != null "> and valid_day = #{validDay}</if> |
| | | <if test="createUserId != null "> and create_user_id = #{createUserId}</if> |
| | | <if test="updateUserId != null "> and update_user_id = #{updateUserId}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectCouponByCouponId" parameterType="String" resultMap="CouponResult"> |
| | | <include refid="selectCouponVo"/> |
| | | where coupon_id = #{couponId} |
| | | </select> |
| | | |
| | | <insert id="insertCoupon" parameterType="Coupon"> |
| | | insert into t_coupon |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="couponId != null">coupon_id,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="couponType != null">coupon_type,</if> |
| | | <if test="couponStatus != null">coupon_status,</if> |
| | | <if test="couponName != null">coupon_name,</if> |
| | | <if test="sendType != null">send_type,</if> |
| | | <if test="sendTimeType != null">send_time_type,</if> |
| | | <if test="sendTime != null">send_time,</if> |
| | | <if test="moneyThreshold != null">money_threshold,</if> |
| | | <if test="dicountMoney != null">dicount_money,</if> |
| | | <if test="discoutPercent != null">discout_percent,</if> |
| | | <if test="useScope != null">use_scope,</if> |
| | | <if test="validTimeType != null">valid_time_type,</if> |
| | | <if test="validStartTime != null">valid_start_time,</if> |
| | | <if test="validEndTime != null">valid_end_time,</if> |
| | | <if test="validDay != null">valid_day,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="createUserId != null">create_user_id,</if> |
| | | <if test="updateime != null">update_time,</if> |
| | | <if test="updateUserId != null">update_user_id,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="couponId != null">#{couponId},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="couponType != null">#{couponType},</if> |
| | | <if test="couponStatus != null">#{couponStatus},</if> |
| | | <if test="couponName != null">#{couponName},</if> |
| | | <if test="sendType != null">#{sendType},</if> |
| | | <if test="sendTimeType != null">#{sendTimeType},</if> |
| | | <if test="sendTime != null">#{sendTime},</if> |
| | | <if test="moneyThreshold != null">#{moneyThreshold},</if> |
| | | <if test="dicountMoney != null">#{dicountMoney},</if> |
| | | <if test="discoutPercent != null">#{discoutPercent},</if> |
| | | <if test="useScope != null">#{useScope},</if> |
| | | <if test="validTimeType != null">#{validTimeType},</if> |
| | | <if test="validStartTime != null">#{validStartTime},</if> |
| | | <if test="validEndTime != null">#{validEndTime},</if> |
| | | <if test="validDay != null">#{validDay},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="createUserId != null">#{createUserId},</if> |
| | | <if test="updateime != null">#{updateime},</if> |
| | | <if test="updateUserId != null">#{updateUserId},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateCoupon" parameterType="Coupon"> |
| | | update t_coupon |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="couponType != null">coupon_type = #{couponType},</if> |
| | | <if test="couponStatus != null">coupon_status = #{couponStatus},</if> |
| | | <if test="couponName != null">coupon_name = #{couponName},</if> |
| | | <if test="sendType != null">send_type = #{sendType},</if> |
| | | <if test="sendTimeType != null">send_time_type = #{sendTimeType},</if> |
| | | <if test="sendTime != null">send_time = #{sendTime},</if> |
| | | <if test="moneyThreshold != null">money_threshold = #{moneyThreshold},</if> |
| | | <if test="dicountMoney != null">dicount_money = #{dicountMoney},</if> |
| | | <if test="discoutPercent != null">discout_percent = #{discoutPercent},</if> |
| | | <if test="useScope != null">use_scope = #{useScope},</if> |
| | | <if test="validTimeType != null">valid_time_type = #{validTimeType},</if> |
| | | <if test="validStartTime != null">valid_start_time = #{validStartTime},</if> |
| | | <if test="validEndTime != null">valid_end_time = #{validEndTime},</if> |
| | | <if test="validDay != null">valid_day = #{validDay},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="createUserId != null">create_user_id = #{createUserId},</if> |
| | | <if test="updateime != null">update_time = #{updateime},</if> |
| | | <if test="updateUserId != null">update_user_id = #{updateUserId},</if> |
| | | </trim> |
| | | where coupon_id = #{couponId} |
| | | </update> |
| | | |
| | | <delete id="deleteCouponByCouponId" parameterType="String"> |
| | | delete from t_coupon where coupon_id = #{couponId} |
| | | </delete> |
| | | |
| | | <delete id="deleteCouponByCouponIds" parameterType="String"> |
| | | delete from t_coupon where coupon_id in |
| | | <foreach item="couponId" collection="array" open="(" separator="," close=")"> |
| | | #{couponId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.coupon.CouponRelGoodsMapper"> |
| | | |
| | | <resultMap type="CouponRelGoods" id="CouponRelGoodsResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="couponId" column="coupon_id" /> |
| | | <result property="goodsId" column="goods_id" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectCouponRelGoodsVo"> |
| | | select id, del_flag, coupon_id, goods_id from t_coupon_rel_goods |
| | | </sql> |
| | | |
| | | <select id="selectCouponRelGoodsList" parameterType="CouponRelGoods" resultMap="CouponRelGoodsResult"> |
| | | <include refid="selectCouponRelGoodsVo"/> |
| | | <where> |
| | | <if test="couponId != null and couponId != ''"> and coupon_id = #{couponId}</if> |
| | | <if test="goodsId != null and goodsId != ''"> and goods_id = #{goodsId}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectCouponRelGoodsById" parameterType="Long" resultMap="CouponRelGoodsResult"> |
| | | <include refid="selectCouponRelGoodsVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertCouponRelGoods" parameterType="CouponRelGoods" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_coupon_rel_goods |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="couponId != null">coupon_id,</if> |
| | | <if test="goodsId != null">goods_id,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="couponId != null">#{couponId},</if> |
| | | <if test="goodsId != null">#{goodsId},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateCouponRelGoods" parameterType="CouponRelGoods"> |
| | | update t_coupon_rel_goods |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="couponId != null">coupon_id = #{couponId},</if> |
| | | <if test="goodsId != null">goods_id = #{goodsId},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteCouponRelGoodsById" parameterType="Long"> |
| | | delete from t_coupon_rel_goods where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteCouponRelGoodsByIds" parameterType="String"> |
| | | delete from t_coupon_rel_goods where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.coupon.CouponRelUserMapper"> |
| | | |
| | | <resultMap type="CouponRelUser" id="CouponRelUserResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="couponId" column="coupon_id" /> |
| | | <result property="userId" column="user_id" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectCouponRelUserVo"> |
| | | select id, del_flag, coupon_id, user_id from t_coupon_rel_user |
| | | </sql> |
| | | |
| | | <select id="selectCouponRelUserList" parameterType="CouponRelUser" resultMap="CouponRelUserResult"> |
| | | <include refid="selectCouponRelUserVo"/> |
| | | <where> |
| | | <if test="couponId != null and couponId != ''"> and coupon_id = #{couponId}</if> |
| | | <if test="userId != null "> and user_id = #{userId}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectCouponRelUserById" parameterType="Long" resultMap="CouponRelUserResult"> |
| | | <include refid="selectCouponRelUserVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertCouponRelUser" parameterType="CouponRelUser" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_coupon_rel_user |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="couponId != null">coupon_id,</if> |
| | | <if test="userId != null">user_id,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="couponId != null">#{couponId},</if> |
| | | <if test="userId != null">#{userId},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateCouponRelUser" parameterType="CouponRelUser"> |
| | | update t_coupon_rel_user |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="couponId != null">coupon_id = #{couponId},</if> |
| | | <if test="userId != null">user_id = #{userId},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteCouponRelUserById" parameterType="Long"> |
| | | delete from t_coupon_rel_user where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteCouponRelUserByIds" parameterType="String"> |
| | | delete from t_coupon_rel_user where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.CouponTotalMapper"> |
| | | |
| | | <resultMap type="CouponTotal" id="CouponTotalResult"> |
| | | <result property="couponId" column="coupon_id" /> |
| | | <result property="sendCount" column="send_count" /> |
| | | <result property="sendUserCount" column="send_user_count" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectCouponTotalVo"> |
| | | select coupon_id, send_count, send_user_count from t_coupon_total |
| | | </sql> |
| | | |
| | | <select id="selectCouponTotalList" parameterType="CouponTotal" resultMap="CouponTotalResult"> |
| | | <include refid="selectCouponTotalVo"/> |
| | | <where> |
| | | <if test="sendCount != null "> and send_count = #{sendCount}</if> |
| | | <if test="sendUserCount != null "> and send_user_count = #{sendUserCount}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectCouponTotalByCouponId" parameterType="String" resultMap="CouponTotalResult"> |
| | | <include refid="selectCouponTotalVo"/> |
| | | where coupon_id = #{couponId} |
| | | </select> |
| | | |
| | | <insert id="insertCouponTotal" parameterType="CouponTotal"> |
| | | insert into t_coupon_total |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="couponId != null">coupon_id,</if> |
| | | <if test="sendCount != null">send_count,</if> |
| | | <if test="sendUserCount != null">send_user_count,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="couponId != null">#{couponId},</if> |
| | | <if test="sendCount != null">#{sendCount},</if> |
| | | <if test="sendUserCount != null">#{sendUserCount},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateCouponTotal" parameterType="CouponTotal"> |
| | | update t_coupon_total |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="sendCount != null">send_count = #{sendCount},</if> |
| | | <if test="sendUserCount != null">send_user_count = #{sendUserCount},</if> |
| | | </trim> |
| | | where coupon_id = #{couponId} |
| | | </update> |
| | | |
| | | <delete id="deleteCouponTotalByCouponId" parameterType="String"> |
| | | delete from t_coupon_total where coupon_id = #{couponId} |
| | | </delete> |
| | | |
| | | <delete id="deleteCouponTotalByCouponIds" parameterType="String"> |
| | | delete from t_coupon_total where coupon_id in |
| | | <foreach item="couponId" collection="array" open="(" separator="," close=")"> |
| | | #{couponId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.goods.GoodsFileMapper"> |
| | | |
| | | <resultMap type="GoodsFile" id="GoodsFileResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="goodsId" column="goods_id" /> |
| | | <result property="fileType" column="file_type" /> |
| | | <result property="fileUrl" column="file_url" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectGoodsFileVo"> |
| | | select id, del_flag, goods_id, file_type, file_url from t_goods_file |
| | | </sql> |
| | | |
| | | <select id="selectGoodsFileList" parameterType="GoodsFile" resultMap="GoodsFileResult"> |
| | | <include refid="selectGoodsFileVo"/> |
| | | <where> |
| | | <if test="goodsId != null and goodsId != ''"> and goods_id = #{goodsId}</if> |
| | | <if test="fileType != null "> and file_type = #{fileType}</if> |
| | | <if test="fileUrl != null and fileUrl != ''"> and file_url = #{fileUrl}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectGoodsFileById" parameterType="Long" resultMap="GoodsFileResult"> |
| | | <include refid="selectGoodsFileVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertGoodsFile" parameterType="GoodsFile" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_goods_file |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="goodsId != null">goods_id,</if> |
| | | <if test="fileType != null">file_type,</if> |
| | | <if test="fileUrl != null">file_url,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="goodsId != null">#{goodsId},</if> |
| | | <if test="fileType != null">#{fileType},</if> |
| | | <if test="fileUrl != null">#{fileUrl},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateGoodsFile" parameterType="GoodsFile"> |
| | | update t_goods_file |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="goodsId != null">goods_id = #{goodsId},</if> |
| | | <if test="fileType != null">file_type = #{fileType},</if> |
| | | <if test="fileUrl != null">file_url = #{fileUrl},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteGoodsFileById" parameterType="Long"> |
| | | delete from t_goods_file where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteGoodsFileByIds" parameterType="String"> |
| | | delete from t_goods_file where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.goods.GoodsMapper"> |
| | | |
| | | <resultMap type="Goods" id="GoodsResult"> |
| | | <result property="goodsId" column="goods_id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="goodsStatus" column="goods_status" /> |
| | | <result property="goodsType" column="goods_type" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createUserId" column="create_user_id" /> |
| | | <result property="updateime" column="update_time" /> |
| | | <result property="updateUserId" column="update_user_id" /> |
| | | <result property="goodsClassId" column="goods_class_id" /> |
| | | <result property="goodsName" column="goods_name" /> |
| | | <result property="cycleNumFlag" column="cycle_num_flag" /> |
| | | <result property="serviceNum" column="service_num" /> |
| | | <result property="goodsIntroduction" column="goods_introduction" /> |
| | | <result property="salesPrice" column="sales_price" /> |
| | | <result property="mininumPrice" column="mininum_price" /> |
| | | <result property="subscriptionFlag" column="subscription_flag" /> |
| | | <result property="subscription" column="subscription" /> |
| | | <result property="goodsDetail" column="goods_detail" /> |
| | | <result property="recommendFlag" column="recommend_flag" /> |
| | | <result property="goodsNurses" column="goods_nurses" /> |
| | | <result property="goodsTags" column="goods_tags" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectGoodsVo"> |
| | | select goods_id, del_flag, goods_status, goods_type, create_time, create_user_id, update_time, update_user_id, goods_class_id, goods_name, cycle_num_flag, service_num, goods_introduction, sales_price, mininum_price, subscription_flag, subscription, goods_detail, recommend_flag, goods_nurses, goods_tags from t_goods |
| | | </sql> |
| | | |
| | | <select id="selectGoodsList" parameterType="Goods" resultMap="GoodsResult"> |
| | | <include refid="selectGoodsVo"/> |
| | | <where> |
| | | <if test="goodsStatus != null "> and goods_status = #{goodsStatus}</if> |
| | | <if test="goodsType != null "> and goods_type = #{goodsType}</if> |
| | | <if test="createUserId != null "> and create_user_id = #{createUserId}</if> |
| | | <if test="updateUserId != null "> and update_user_id = #{updateUserId}</if> |
| | | <if test="goodsClassId != null "> and goods_class_id = #{goodsClassId}</if> |
| | | <if test="goodsName != null and goodsName != ''"> and goods_name like concat('%', #{goodsName}, '%')</if> |
| | | <if test="cycleNumFlag != null "> and cycle_num_flag = #{cycleNumFlag}</if> |
| | | <if test="serviceNum != null "> and service_num = #{serviceNum}</if> |
| | | <if test="goodsIntroduction != null and goodsIntroduction != ''"> and goods_introduction = #{goodsIntroduction}</if> |
| | | <if test="salesPrice != null "> and sales_price = #{salesPrice}</if> |
| | | <if test="mininumPrice != null "> and mininum_price = #{mininumPrice}</if> |
| | | <if test="subscriptionFlag != null "> and subscription_flag = #{subscriptionFlag}</if> |
| | | <if test="subscription != null "> and subscription = #{subscription}</if> |
| | | <if test="goodsDetail != null and goodsDetail != ''"> and goods_detail = #{goodsDetail}</if> |
| | | <if test="recommendFlag != null "> and recommend_flag = #{recommendFlag}</if> |
| | | <if test="goodsNurses != null and goodsNurses != ''"> and goods_nurses = #{goodsNurses}</if> |
| | | <if test="goodsTags != null and goodsTags != ''"> and goods_tags = #{goodsTags}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectGoodsByGoodsId" parameterType="String" resultMap="GoodsResult"> |
| | | <include refid="selectGoodsVo"/> |
| | | where goods_id = #{goodsId} |
| | | </select> |
| | | |
| | | <insert id="insertGoods" parameterType="Goods"> |
| | | insert into t_goods |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="goodsId != null">goods_id,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="goodsStatus != null">goods_status,</if> |
| | | <if test="goodsType != null">goods_type,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="createUserId != null">create_user_id,</if> |
| | | <if test="updateime != null">update_time,</if> |
| | | <if test="updateUserId != null">update_user_id,</if> |
| | | <if test="goodsClassId != null">goods_class_id,</if> |
| | | <if test="goodsName != null">goods_name,</if> |
| | | <if test="cycleNumFlag != null">cycle_num_flag,</if> |
| | | <if test="serviceNum != null">service_num,</if> |
| | | <if test="goodsIntroduction != null">goods_introduction,</if> |
| | | <if test="salesPrice != null">sales_price,</if> |
| | | <if test="mininumPrice != null">mininum_price,</if> |
| | | <if test="subscriptionFlag != null">subscription_flag,</if> |
| | | <if test="subscription != null">subscription,</if> |
| | | <if test="goodsDetail != null">goods_detail,</if> |
| | | <if test="recommendFlag != null">recommend_flag,</if> |
| | | <if test="goodsNurses != null">goods_nurses,</if> |
| | | <if test="goodsTags != null">goods_tags,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="goodsId != null">#{goodsId},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="goodsStatus != null">#{goodsStatus},</if> |
| | | <if test="goodsType != null">#{goodsType},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="createUserId != null">#{createUserId},</if> |
| | | <if test="updateime != null">#{updateime},</if> |
| | | <if test="updateUserId != null">#{updateUserId},</if> |
| | | <if test="goodsClassId != null">#{goodsClassId},</if> |
| | | <if test="goodsName != null">#{goodsName},</if> |
| | | <if test="cycleNumFlag != null">#{cycleNumFlag},</if> |
| | | <if test="serviceNum != null">#{serviceNum},</if> |
| | | <if test="goodsIntroduction != null">#{goodsIntroduction},</if> |
| | | <if test="salesPrice != null">#{salesPrice},</if> |
| | | <if test="mininumPrice != null">#{mininumPrice},</if> |
| | | <if test="subscriptionFlag != null">#{subscriptionFlag},</if> |
| | | <if test="subscription != null">#{subscription},</if> |
| | | <if test="goodsDetail != null">#{goodsDetail},</if> |
| | | <if test="recommendFlag != null">#{recommendFlag},</if> |
| | | <if test="goodsNurses != null">#{goodsNurses},</if> |
| | | <if test="goodsTags != null">#{goodsTags},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateGoods" parameterType="Goods"> |
| | | update t_goods |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="goodsStatus != null">goods_status = #{goodsStatus},</if> |
| | | <if test="goodsType != null">goods_type = #{goodsType},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="createUserId != null">create_user_id = #{createUserId},</if> |
| | | <if test="updateime != null">update_time = #{updateime},</if> |
| | | <if test="updateUserId != null">update_user_id = #{updateUserId},</if> |
| | | <if test="goodsClassId != null">goods_class_id = #{goodsClassId},</if> |
| | | <if test="goodsName != null">goods_name = #{goodsName},</if> |
| | | <if test="cycleNumFlag != null">cycle_num_flag = #{cycleNumFlag},</if> |
| | | <if test="serviceNum != null">service_num = #{serviceNum},</if> |
| | | <if test="goodsIntroduction != null">goods_introduction = #{goodsIntroduction},</if> |
| | | <if test="salesPrice != null">sales_price = #{salesPrice},</if> |
| | | <if test="mininumPrice != null">mininum_price = #{mininumPrice},</if> |
| | | <if test="subscriptionFlag != null">subscription_flag = #{subscriptionFlag},</if> |
| | | <if test="subscription != null">subscription = #{subscription},</if> |
| | | <if test="goodsDetail != null">goods_detail = #{goodsDetail},</if> |
| | | <if test="recommendFlag != null">recommend_flag = #{recommendFlag},</if> |
| | | <if test="goodsNurses != null">goods_nurses = #{goodsNurses},</if> |
| | | <if test="goodsTags != null">goods_tags = #{goodsTags},</if> |
| | | </trim> |
| | | where goods_id = #{goodsId} |
| | | </update> |
| | | |
| | | <delete id="deleteGoodsByGoodsId" parameterType="String"> |
| | | delete from t_goods where goods_id = #{goodsId} |
| | | </delete> |
| | | |
| | | <delete id="deleteGoodsByGoodsIds" parameterType="String"> |
| | | delete from t_goods where goods_id in |
| | | <foreach item="goodsId" collection="array" open="(" separator="," close=")"> |
| | | #{goodsId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <!--分页获取推荐商品--> |
| | | <select id="pageRecommendGoods" resultType="com.ruoyi.system.domain.vo.AppSimpleGoodsVo"> |
| | | SELECT |
| | | tg.goods_id goodsId, |
| | | tg.goods_name goodsName, |
| | | tg.goods_introduction goodsIntroduction, |
| | | tg.goods_type goodsType, |
| | | CASE tg.goods_type |
| | | WHEN 1 THEN "周期" |
| | | WHEN 2 THEN "服务" |
| | | WHEN 3 THEN "体验" |
| | | WHEN 4 THEN "单品" |
| | | END goodsTag, |
| | | IFNULL(tsg.sales_price,tg.sales_price) salesPrice, |
| | | tgf.file_url goodsPicture, |
| | | tg.goods_nurses goodsNurses |
| | | FROM t_goods tg |
| | | LEFT JOIN t_goods_file tgf ON tg.goods_id = tgf.goods_id AND tgf.del_flag = 0 AND tgf.file_type = 1 |
| | | LEFT JOIN t_shop_goods tsg ON tg.goods_id = tsg.goods_id AND tsg.shop_id = #{shopId} |
| | | WHERE tg.del_flag = 0 AND tg.goods_status = 1 AND tg.recommend_flag = 1 |
| | | ORDER BY tg.create_time DESC |
| | | </select> |
| | | |
| | | <!--分页获取商城商品列表--> |
| | | <select id="pageShopGoods" resultType="com.ruoyi.system.domain.vo.AppSimpleGoodsVo"> |
| | | SELECT |
| | | tg.goods_id goodsId, |
| | | tg.goods_name goodsName, |
| | | tg.goods_introduction goodsIntroduction, |
| | | tg.goods_type goodsType, |
| | | CASE tg.goods_type |
| | | WHEN 1 THEN "周期" |
| | | WHEN 2 THEN "服务" |
| | | WHEN 3 THEN "体验" |
| | | WHEN 4 THEN "单品" |
| | | END goodsTag, |
| | | IFNULL(tsg.sales_price,tg.sales_price) salesPrice, |
| | | tgf.file_url goodsPicture, |
| | | tg.goods_nurses goodsNurses |
| | | FROM t_goods tg |
| | | INNER JOIN t_goods_total tgt ON tg.goods_id = tgt.goods_id |
| | | LEFT JOIN t_goods_file tgf ON tg.goods_id = tgf.goods_id AND tgf.del_flag = 0 AND tgf.file_type = 1 |
| | | LEFT JOIN t_shop_goods tsg ON tg.goods_id = tsg.goods_id AND tsg.shop_id = #{shopId} |
| | | WHERE tg.del_flag = 0 AND tg.goods_status = 1 |
| | | <if test="param.goodsType!=null and param.goodsType != ''"> |
| | | AND tg.goods_type = #{param.goodsType} |
| | | </if> |
| | | <if test="param.goodsClassId!=null and param.goodsClassId != ''"> |
| | | AND tg.goods_class_id = #{param.goodsClassId} |
| | | </if> |
| | | <if test="param.keyword!=null and param.keyword != ''"> |
| | | AND tg.goods_name LIKE CONCAT('%',#{param.keyword},'%') |
| | | </if> |
| | | ORDER BY |
| | | <if test="param.sort != null and param.sort != ''"> |
| | | <choose> |
| | | <when test="param.sort==1"> |
| | | salesPrice DESC,tg.create_time DESC |
| | | </when> |
| | | <when test="param.sort==2"> |
| | | salesPrice ASC,tg.create_time DESC |
| | | </when> |
| | | <when test="param.sort==3"> |
| | | tgt.buy_num_count ASC,tg.create_time DESC |
| | | </when> |
| | | <when test="param.sort==4"> |
| | | tgt.buy_num_count DESC,tg.create_time DESC |
| | | </when> |
| | | <when test="param.sort==5"> |
| | | tg.create_time DESC |
| | | </when> |
| | | <otherwise> |
| | | tg.create_time DESC |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | </select> |
| | | |
| | | <!--分页获取搜索商品列表--> |
| | | <select id="pageSearchGoods" resultType="com.ruoyi.system.domain.vo.AppSimpleGoodsVo"> |
| | | SELECT |
| | | tg.goods_id goodsId, |
| | | tg.goods_name goodsName, |
| | | tg.goods_introduction goodsIntroduction, |
| | | tg.goods_type goodsType, |
| | | CASE tg.goods_type |
| | | WHEN 1 THEN "周期" |
| | | WHEN 2 THEN "服务" |
| | | WHEN 3 THEN "体验" |
| | | WHEN 4 THEN "单品" |
| | | END goodsTag, |
| | | IFNULL(tsg.sales_price,tg.sales_price) salesPrice, |
| | | tgf.file_url goodsPicture, |
| | | tg.goods_tags goodsNurses |
| | | FROM t_goods tg |
| | | LEFT JOIN t_goods_file tgf ON tg.goods_id = tgf.goods_id AND tgf.del_flag = 0 AND tgf.file_type = 1 |
| | | LEFT JOIN t_shop_goods tsg ON tg.goods_id = tsg.goods_id AND tsg.shop_id = #{shopId} |
| | | WHERE tg.del_flag = 0 AND tg.goods_status = 1 |
| | | <if test="param.keyword!=null and param.keyword != ''"> |
| | | AND tg.goods_name LIKE CONCAT('%',#{param.keyword},'%') |
| | | </if> |
| | | ORDER BY tg.create_time DESC |
| | | </select> |
| | | |
| | | <!--分页获取搜索活动商品列表--> |
| | | <select id="pageSearchActivityGoods" resultType="com.ruoyi.system.domain.vo.AppSimpleActivityGoodsVo"> |
| | | SELECT |
| | | tg.goods_id goodsId, |
| | | tg.goods_name goodsName, |
| | | tg.goods_introduction goodsIntroduction, |
| | | tg.goods_type goodsType, |
| | | CASE tg.goods_type |
| | | WHEN 1 THEN "周期" |
| | | WHEN 2 THEN "服务" |
| | | WHEN 3 THEN "体验" |
| | | WHEN 4 THEN "单品" |
| | | END goodsTag, |
| | | GREATEST(tg.sales_price,IFNULL(tsg.sales_price,'0.00')) salesPrice, |
| | | tag.activity_price activityPrice, |
| | | tgf.file_url goodsPicture, |
| | | tg.goods_tags goodsNurses, |
| | | tag.activity_number activityNumber, |
| | | tag.sales_number salesNumber |
| | | FROM t_goods tg |
| | | INNER JOIN t_activity_goods tag ON tg.goods_id = tag.goods_id |
| | | LEFT JOIN t_goods_file tgf ON tg.goods_id = tgf.goods_id AND tgf.del_flag = 0 AND tgf.file_type = 1 |
| | | LEFT JOIN t_shop_goods tsg ON tg.goods_id = tsg.goods_id AND tsg.shop_id = #{shopId} |
| | | WHERE tg.del_flag = 0 AND tg.goods_status = 1 |
| | | <if test="param.keyword!=null and param.keyword != ''"> |
| | | AND tg.goods_name LIKE CONCAT('%',#{param.keyword},'%') |
| | | </if> |
| | | ORDER BY tg.create_time DESC |
| | | </select> |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.goods.GoodsRelNurseMapper"> |
| | | |
| | | <resultMap type="GoodsRelNurse" id="GoodsRelNurseResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="goodsId" column="goods_id" /> |
| | | <result property="nurse" column="nurse" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectGoodsRelNurseVo"> |
| | | select id, del_flag, goods_id, nurse from t_goods_rel_nurse |
| | | </sql> |
| | | |
| | | <select id="selectGoodsRelNurseList" parameterType="GoodsRelNurse" resultMap="GoodsRelNurseResult"> |
| | | <include refid="selectGoodsRelNurseVo"/> |
| | | <where> |
| | | <if test="goodsId != null and goodsId != ''"> and goods_id = #{goodsId}</if> |
| | | <if test="nurse != null and nurse != ''"> and nurse = #{nurse}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectGoodsRelNurseById" parameterType="Long" resultMap="GoodsRelNurseResult"> |
| | | <include refid="selectGoodsRelNurseVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertGoodsRelNurse" parameterType="GoodsRelNurse" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_goods_rel_nurse |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="goodsId != null">goods_id,</if> |
| | | <if test="nurse != null">nurse,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="goodsId != null">#{goodsId},</if> |
| | | <if test="nurse != null">#{nurse},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateGoodsRelNurse" parameterType="GoodsRelNurse"> |
| | | update t_goods_rel_nurse |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="goodsId != null">goods_id = #{goodsId},</if> |
| | | <if test="nurse != null">nurse = #{nurse},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteGoodsRelNurseById" parameterType="Long"> |
| | | delete from t_goods_rel_nurse where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteGoodsRelNurseByIds" parameterType="String"> |
| | | delete from t_goods_rel_nurse where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.goods.GoodsRelTagMapper"> |
| | | |
| | | <resultMap type="GoodsRelTag" id="GoodsRelTagResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="goodsId" column="goods_id" /> |
| | | <result property="tagId" column="tag_id" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectGoodsRelTagVo"> |
| | | select id, del_flag, goods_id, tag_id from t_goods_rel_tag |
| | | </sql> |
| | | |
| | | <select id="selectGoodsRelTagList" parameterType="GoodsRelTag" resultMap="GoodsRelTagResult"> |
| | | <include refid="selectGoodsRelTagVo"/> |
| | | <where> |
| | | <if test="goodsId != null and goodsId != ''"> and goods_id = #{goodsId}</if> |
| | | <if test="tagId != null "> and tag_id = #{tagId}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectGoodsRelTagById" parameterType="Long" resultMap="GoodsRelTagResult"> |
| | | <include refid="selectGoodsRelTagVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertGoodsRelTag" parameterType="GoodsRelTag" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_goods_rel_tag |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="goodsId != null">goods_id,</if> |
| | | <if test="tagId != null">tag_id,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="goodsId != null">#{goodsId},</if> |
| | | <if test="tagId != null">#{tagId},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateGoodsRelTag" parameterType="GoodsRelTag"> |
| | | update t_goods_rel_tag |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="goodsId != null">goods_id = #{goodsId},</if> |
| | | <if test="tagId != null">tag_id = #{tagId},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteGoodsRelTagById" parameterType="Long"> |
| | | delete from t_goods_rel_tag where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteGoodsRelTagByIds" parameterType="String"> |
| | | delete from t_goods_rel_tag where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.goods.GoodsTotalMapper"> |
| | | |
| | | <resultMap type="GoodsTotal" id="GoodsTotalResult"> |
| | | <result property="goodsId" column="goods_id" /> |
| | | <result property="buyCount" column="buy_count" /> |
| | | <result property="buyNumCount" column="buy_num_count" /> |
| | | <result property="buyUserCount" column="buy_user_count" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectGoodsTotalVo"> |
| | | select goods_id, buy_count, buy_num_count, buy_user_count from t_goods_total |
| | | </sql> |
| | | |
| | | <select id="selectGoodsTotalList" parameterType="GoodsTotal" resultMap="GoodsTotalResult"> |
| | | <include refid="selectGoodsTotalVo"/> |
| | | <where> |
| | | <if test="buyCount != null "> and buy_count = #{buyCount}</if> |
| | | <if test="buyNumCount != null "> and buy_num_count = #{buyNumCount}</if> |
| | | <if test="buyUserCount != null "> and buy_user_count = #{buyUserCount}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectGoodsTotalByGoodsId" parameterType="String" resultMap="GoodsTotalResult"> |
| | | <include refid="selectGoodsTotalVo"/> |
| | | where goods_id = #{goodsId} |
| | | </select> |
| | | |
| | | <insert id="insertGoodsTotal" parameterType="GoodsTotal"> |
| | | insert into t_goods_total |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="goodsId != null">goods_id,</if> |
| | | <if test="buyCount != null">buy_count,</if> |
| | | <if test="buyNumCount != null">buy_num_count,</if> |
| | | <if test="buyUserCount != null">buy_user_count,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="goodsId != null">#{goodsId},</if> |
| | | <if test="buyCount != null">#{buyCount},</if> |
| | | <if test="buyNumCount != null">#{buyNumCount},</if> |
| | | <if test="buyUserCount != null">#{buyUserCount},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateGoodsTotal" parameterType="GoodsTotal"> |
| | | update t_goods_total |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="buyCount != null">buy_count = #{buyCount},</if> |
| | | <if test="buyNumCount != null">buy_num_count = #{buyNumCount},</if> |
| | | <if test="buyUserCount != null">buy_user_count = #{buyUserCount},</if> |
| | | </trim> |
| | | where goods_id = #{goodsId} |
| | | </update> |
| | | |
| | | <delete id="deleteGoodsTotalByGoodsId" parameterType="String"> |
| | | delete from t_goods_total where goods_id = #{goodsId} |
| | | </delete> |
| | | |
| | | <delete id="deleteGoodsTotalByGoodsIds" parameterType="String"> |
| | | delete from t_goods_total where goods_id in |
| | | <foreach item="goodsId" collection="array" open="(" separator="," close=")"> |
| | | #{goodsId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.member.MemberArchiveFieldsMapper"> |
| | | |
| | | <resultMap type="MemberArchiveFields" id="MemberArchiveFieldsResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="fieldName" column="field_name" /> |
| | | <result property="fieldType" column="field_type" /> |
| | | <result property="requiredFlag" column="required_flag" /> |
| | | <result property="fieldSort" column="field_sort" /> |
| | | <result property="inputTip" column="input_tip" /> |
| | | <result property="optionValues" column="option_values" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectMemberArchiveFieldsVo"> |
| | | select id, del_flag, field_name, field_type, required_flag, field_sort, input_tip, option_values from t_member_archive_fields |
| | | </sql> |
| | | |
| | | <select id="selectMemberArchiveFieldsList" parameterType="MemberArchiveFields" resultMap="MemberArchiveFieldsResult"> |
| | | <include refid="selectMemberArchiveFieldsVo"/> |
| | | <where> |
| | | <if test="fieldName != null and fieldName != ''"> and field_name like concat('%', #{fieldName}, '%')</if> |
| | | <if test="fieldType != null "> and field_type = #{fieldType}</if> |
| | | <if test="requiredFlag != null "> and required_flag = #{requiredFlag}</if> |
| | | <if test="fieldSort != null and fieldSort != ''"> and field_sort = #{fieldSort}</if> |
| | | <if test="inputTip != null and inputTip != ''"> and input_tip = #{inputTip}</if> |
| | | <if test="optionValues != null and optionValues != ''"> and option_values = #{optionValues}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectMemberArchiveFieldsById" parameterType="Long" resultMap="MemberArchiveFieldsResult"> |
| | | <include refid="selectMemberArchiveFieldsVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertMemberArchiveFields" parameterType="MemberArchiveFields" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_member_archive_fields |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="fieldName != null">field_name,</if> |
| | | <if test="fieldType != null">field_type,</if> |
| | | <if test="requiredFlag != null">required_flag,</if> |
| | | <if test="fieldSort != null">field_sort,</if> |
| | | <if test="inputTip != null">input_tip,</if> |
| | | <if test="optionValues != null">option_values,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="fieldName != null">#{fieldName},</if> |
| | | <if test="fieldType != null">#{fieldType},</if> |
| | | <if test="requiredFlag != null">#{requiredFlag},</if> |
| | | <if test="fieldSort != null">#{fieldSort},</if> |
| | | <if test="inputTip != null">#{inputTip},</if> |
| | | <if test="optionValues != null">#{optionValues},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateMemberArchiveFields" parameterType="MemberArchiveFields"> |
| | | update t_member_archive_fields |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="fieldName != null">field_name = #{fieldName},</if> |
| | | <if test="fieldType != null">field_type = #{fieldType},</if> |
| | | <if test="requiredFlag != null">required_flag = #{requiredFlag},</if> |
| | | <if test="fieldSort != null">field_sort = #{fieldSort},</if> |
| | | <if test="inputTip != null">input_tip = #{inputTip},</if> |
| | | <if test="optionValues != null">option_values = #{optionValues},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteMemberArchiveFieldsById" parameterType="Long"> |
| | | delete from t_member_archive_fields where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteMemberArchiveFieldsByIds" parameterType="String"> |
| | | delete from t_member_archive_fields where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.member.MemberArchiveMapper"> |
| | | |
| | | <resultMap type="MemberArchive" id="MemberArchiveResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="userId" column="user_id" /> |
| | | <result property="fieldId" column="field_id" /> |
| | | <result property="fieldValue" column="field_value" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectMemberArchiveVo"> |
| | | select id, del_flag, user_id, field_id, field_value from t_member_archive |
| | | </sql> |
| | | |
| | | <select id="selectMemberArchiveList" parameterType="MemberArchive" resultMap="MemberArchiveResult"> |
| | | <include refid="selectMemberArchiveVo"/> |
| | | <where> |
| | | <if test="userId != null "> and user_id = #{userId}</if> |
| | | <if test="fieldId != null "> and field_id = #{fieldId}</if> |
| | | <if test="fieldValue != null and fieldValue != ''"> and field_value = #{fieldValue}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectMemberArchiveById" parameterType="Long" resultMap="MemberArchiveResult"> |
| | | <include refid="selectMemberArchiveVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertMemberArchive" parameterType="MemberArchive" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_member_archive |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="userId != null">user_id,</if> |
| | | <if test="fieldId != null">field_id,</if> |
| | | <if test="fieldValue != null">field_value,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="userId != null">#{userId},</if> |
| | | <if test="fieldId != null">#{fieldId},</if> |
| | | <if test="fieldValue != null">#{fieldValue},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateMemberArchive" parameterType="MemberArchive"> |
| | | update t_member_archive |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="userId != null">user_id = #{userId},</if> |
| | | <if test="fieldId != null">field_id = #{fieldId},</if> |
| | | <if test="fieldValue != null">field_value = #{fieldValue},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteMemberArchiveById" parameterType="Long"> |
| | | delete from t_member_archive where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteMemberArchiveByIds" parameterType="String"> |
| | | delete from t_member_archive where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.member.MemberMapper"> |
| | | |
| | | <resultMap type="Member" id="MemberResult"> |
| | | <result property="userId" column="user_id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="memberId" column="member_id" /> |
| | | <result property="memberNo" column="member_no" /> |
| | | <result property="wxOpenid" column="wx_openid" /> |
| | | <result property="miniOpenid" column="mini_openid" /> |
| | | <result property="wxUnionid" column="wx_unionid" /> |
| | | <result property="realtionShopId" column="realtion_shop_id" /> |
| | | <result property="realName" column="real_name" /> |
| | | <result property="mobile" column="mobile" /> |
| | | <result property="gender" column="gender" /> |
| | | <result property="referrer" column="referrer" /> |
| | | <result property="customerSource" column="customer_source" /> |
| | | <result property="level" column="level" /> |
| | | <result property="birthday" column="birthday" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateime" column="update_time" /> |
| | | <result property="updateUserId" column="update_user_id" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectMemberVo"> |
| | | select user_id, del_flag, member_id, member_no, wx_openid, mini_openid, wx_unionid, realtion_shop_id, real_name, mobile, gender, referrer, customer_source, level, birthday, create_time, update_time, update_user_id from t_member |
| | | </sql> |
| | | |
| | | <select id="selectMemberList" parameterType="Member" resultMap="MemberResult"> |
| | | <include refid="selectMemberVo"/> |
| | | <where> |
| | | <if test="memberId != null and memberId != ''"> and member_id = #{memberId}</if> |
| | | <if test="memberNo != null and memberNo != ''"> and member_no = #{memberNo}</if> |
| | | <if test="wxOpenid != null and wxOpenid != ''"> and wx_openid = #{wxOpenid}</if> |
| | | <if test="miniOpenid != null and miniOpenid != ''"> and mini_openid = #{miniOpenid}</if> |
| | | <if test="wxUnionid != null and wxUnionid != ''"> and wx_unionid = #{wxUnionid}</if> |
| | | <if test="realtionShopId != null "> and realtion_shop_id = #{realtionShopId}</if> |
| | | <if test="realName != null and realName != ''"> and real_name like concat('%', #{realName}, '%')</if> |
| | | <if test="mobile != null and mobile != ''"> and mobile = #{mobile}</if> |
| | | <if test="gender != null "> and gender = #{gender}</if> |
| | | <if test="referrer != null and referrer != ''"> and referrer = #{referrer}</if> |
| | | <if test="customerSource != null and customerSource != ''"> and customer_source = #{customerSource}</if> |
| | | <if test="level != null and level != ''"> and level = #{level}</if> |
| | | <if test="birthday != null and birthday != ''"> and birthday = #{birthday}</if> |
| | | <if test="updateUserId != null "> and update_user_id = #{updateUserId}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectMemberByUserId" parameterType="Long" resultMap="MemberResult"> |
| | | <include refid="selectMemberVo"/> |
| | | where user_id = #{userId} |
| | | </select> |
| | | |
| | | <insert id="insertMember" parameterType="Member"> |
| | | insert into t_member |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="userId != null">user_id,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="memberId != null">member_id,</if> |
| | | <if test="memberNo != null">member_no,</if> |
| | | <if test="wxOpenid != null">wx_openid,</if> |
| | | <if test="miniOpenid != null">mini_openid,</if> |
| | | <if test="wxUnionid != null">wx_unionid,</if> |
| | | <if test="realtionShopId != null">realtion_shop_id,</if> |
| | | <if test="realName != null">real_name,</if> |
| | | <if test="mobile != null">mobile,</if> |
| | | <if test="gender != null">gender,</if> |
| | | <if test="referrer != null">referrer,</if> |
| | | <if test="customerSource != null">customer_source,</if> |
| | | <if test="level != null">level,</if> |
| | | <if test="birthday != null">birthday,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="updateime != null">update_time,</if> |
| | | <if test="updateUserId != null">update_user_id,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="userId != null">#{userId},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="memberId != null">#{memberId},</if> |
| | | <if test="memberNo != null">#{memberNo},</if> |
| | | <if test="wxOpenid != null">#{wxOpenid},</if> |
| | | <if test="miniOpenid != null">#{miniOpenid},</if> |
| | | <if test="wxUnionid != null">#{wxUnionid},</if> |
| | | <if test="realtionShopId != null">#{realtionShopId},</if> |
| | | <if test="realName != null">#{realName},</if> |
| | | <if test="mobile != null">#{mobile},</if> |
| | | <if test="gender != null">#{gender},</if> |
| | | <if test="referrer != null">#{referrer},</if> |
| | | <if test="customerSource != null">#{customerSource},</if> |
| | | <if test="level != null">#{level},</if> |
| | | <if test="birthday != null">#{birthday},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateime != null">#{updateime},</if> |
| | | <if test="updateUserId != null">#{updateUserId},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateMember" parameterType="Member"> |
| | | update t_member |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="memberId != null">member_id = #{memberId},</if> |
| | | <if test="memberNo != null">member_no = #{memberNo},</if> |
| | | <if test="wxOpenid != null">wx_openid = #{wxOpenid},</if> |
| | | <if test="miniOpenid != null">mini_openid = #{miniOpenid},</if> |
| | | <if test="wxUnionid != null">wx_unionid = #{wxUnionid},</if> |
| | | <if test="realtionShopId != null">realtion_shop_id = #{realtionShopId},</if> |
| | | <if test="realName != null">real_name = #{realName},</if> |
| | | <if test="mobile != null">mobile = #{mobile},</if> |
| | | <if test="gender != null">gender = #{gender},</if> |
| | | <if test="referrer != null">referrer = #{referrer},</if> |
| | | <if test="customerSource != null">customer_source = #{customerSource},</if> |
| | | <if test="level != null">level = #{level},</if> |
| | | <if test="birthday != null">birthday = #{birthday},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="updateime != null">update_time = #{updateime},</if> |
| | | <if test="updateUserId != null">update_user_id = #{updateUserId},</if> |
| | | </trim> |
| | | where user_id = #{userId} |
| | | </update> |
| | | |
| | | <delete id="deleteMemberByUserId" parameterType="Long"> |
| | | delete from t_member where user_id = #{userId} |
| | | </delete> |
| | | |
| | | <delete id="deleteMemberByUserIds" parameterType="String"> |
| | | delete from t_member where user_id in |
| | | <foreach item="userId" collection="array" open="(" separator="," close=")"> |
| | | #{userId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | |
| | | <select id="getOneByMiniOpenid" resultType="Member"> |
| | | SELECT * FROM t_member WHERE mini_openid = #{miniOpenid} |
| | | </select> |
| | | |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.member.MemberNurseMapper"> |
| | | |
| | | <resultMap type="MemberNurse" id="MemberNurseResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="userId" column="user_id" /> |
| | | <result property="nurse" column="nurse" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectMemberNurseVo"> |
| | | select id, del_flag, user_id, nurse from t_member_nurse |
| | | </sql> |
| | | |
| | | <select id="selectMemberNurseList" parameterType="MemberNurse" resultMap="MemberNurseResult"> |
| | | <include refid="selectMemberNurseVo"/> |
| | | <where> |
| | | <if test="userId != null "> and user_id = #{userId}</if> |
| | | <if test="nurse != null and nurse != ''"> and nurse = #{nurse}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectMemberNurseById" parameterType="Long" resultMap="MemberNurseResult"> |
| | | <include refid="selectMemberNurseVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertMemberNurse" parameterType="MemberNurse" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_member_nurse |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="userId != null">user_id,</if> |
| | | <if test="nurse != null">nurse,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="userId != null">#{userId},</if> |
| | | <if test="nurse != null">#{nurse},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateMemberNurse" parameterType="MemberNurse"> |
| | | update t_member_nurse |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="userId != null">user_id = #{userId},</if> |
| | | <if test="nurse != null">nurse = #{nurse},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteMemberNurseById" parameterType="Long"> |
| | | delete from t_member_nurse where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteMemberNurseByIds" parameterType="String"> |
| | | delete from t_member_nurse where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.member.UserCouponMapper"> |
| | | |
| | | <resultMap type="UserCoupon" id="UserCouponResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="couponId" column="coupon_id" /> |
| | | <result property="userId" column="user_id" /> |
| | | <result property="couponType" column="coupon_type" /> |
| | | <result property="couponStatus" column="coupon_status" /> |
| | | <result property="couponName" column="coupon_name" /> |
| | | <result property="sendType" column="send_type" /> |
| | | <result property="sendTimeType" column="send_time_type" /> |
| | | <result property="sendTime" column="send_time" /> |
| | | <result property="moneyThreshold" column="money_threshold" /> |
| | | <result property="dicountMoney" column="dicount_money" /> |
| | | <result property="discoutPercent" column="discout_percent" /> |
| | | <result property="useScope" column="use_scope" /> |
| | | <result property="validTimeType" column="valid_time_type" /> |
| | | <result property="validStartTime" column="valid_start_time" /> |
| | | <result property="validEndTime" column="valid_end_time" /> |
| | | <result property="validDay" column="valid_day" /> |
| | | <result property="receiveTime" column="receive_time" /> |
| | | <result property="userTime" column="user_time" /> |
| | | <result property="deadlineTime" column="deadline_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectUserCouponVo"> |
| | | select id, del_flag, coupon_id, user_id, coupon_type, coupon_status, coupon_name, send_type, send_time_type, send_time, money_threshold, dicount_money, discout_percent, use_scope, valid_time_type, valid_start_time, valid_end_time, valid_day, receive_time, user_time, deadline_time from t_user_coupon |
| | | </sql> |
| | | |
| | | <select id="selectUserCouponList" parameterType="UserCoupon" resultMap="UserCouponResult"> |
| | | <include refid="selectUserCouponVo"/> |
| | | <where> |
| | | <if test="couponId != null and couponId != ''"> and coupon_id = #{couponId}</if> |
| | | <if test="userId != null "> and user_id = #{userId}</if> |
| | | <if test="couponType != null "> and coupon_type = #{couponType}</if> |
| | | <if test="couponStatus != null "> and coupon_status = #{couponStatus}</if> |
| | | <if test="couponName != null and couponName != ''"> and coupon_name like concat('%', #{couponName}, '%')</if> |
| | | <if test="sendType != null "> and send_type = #{sendType}</if> |
| | | <if test="sendTimeType != null "> and send_time_type = #{sendTimeType}</if> |
| | | <if test="sendTime != null "> and send_time = #{sendTime}</if> |
| | | <if test="moneyThreshold != null "> and money_threshold = #{moneyThreshold}</if> |
| | | <if test="dicountMoney != null "> and dicount_money = #{dicountMoney}</if> |
| | | <if test="discoutPercent != null "> and discout_percent = #{discoutPercent}</if> |
| | | <if test="useScope != null "> and use_scope = #{useScope}</if> |
| | | <if test="validTimeType != null "> and valid_time_type = #{validTimeType}</if> |
| | | <if test="validStartTime != null "> and valid_start_time = #{validStartTime}</if> |
| | | <if test="validEndTime != null "> and valid_end_time = #{validEndTime}</if> |
| | | <if test="validDay != null "> and valid_day = #{validDay}</if> |
| | | <if test="receiveTime != null "> and receive_time = #{receiveTime}</if> |
| | | <if test="userTime != null "> and user_time = #{userTime}</if> |
| | | <if test="deadlineTime != null "> and deadline_time = #{deadlineTime}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectUserCouponById" parameterType="Long" resultMap="UserCouponResult"> |
| | | <include refid="selectUserCouponVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertUserCoupon" parameterType="UserCoupon" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_user_coupon |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="couponId != null">coupon_id,</if> |
| | | <if test="userId != null">user_id,</if> |
| | | <if test="couponType != null">coupon_type,</if> |
| | | <if test="couponStatus != null">coupon_status,</if> |
| | | <if test="couponName != null">coupon_name,</if> |
| | | <if test="sendType != null">send_type,</if> |
| | | <if test="sendTimeType != null">send_time_type,</if> |
| | | <if test="sendTime != null">send_time,</if> |
| | | <if test="moneyThreshold != null">money_threshold,</if> |
| | | <if test="dicountMoney != null">dicount_money,</if> |
| | | <if test="discoutPercent != null">discout_percent,</if> |
| | | <if test="useScope != null">use_scope,</if> |
| | | <if test="validTimeType != null">valid_time_type,</if> |
| | | <if test="validStartTime != null">valid_start_time,</if> |
| | | <if test="validEndTime != null">valid_end_time,</if> |
| | | <if test="validDay != null">valid_day,</if> |
| | | <if test="receiveTime != null">receive_time,</if> |
| | | <if test="userTime != null">user_time,</if> |
| | | <if test="deadlineTime != null">deadline_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="couponId != null">#{couponId},</if> |
| | | <if test="userId != null">#{userId},</if> |
| | | <if test="couponType != null">#{couponType},</if> |
| | | <if test="couponStatus != null">#{couponStatus},</if> |
| | | <if test="couponName != null">#{couponName},</if> |
| | | <if test="sendType != null">#{sendType},</if> |
| | | <if test="sendTimeType != null">#{sendTimeType},</if> |
| | | <if test="sendTime != null">#{sendTime},</if> |
| | | <if test="moneyThreshold != null">#{moneyThreshold},</if> |
| | | <if test="dicountMoney != null">#{dicountMoney},</if> |
| | | <if test="discoutPercent != null">#{discoutPercent},</if> |
| | | <if test="useScope != null">#{useScope},</if> |
| | | <if test="validTimeType != null">#{validTimeType},</if> |
| | | <if test="validStartTime != null">#{validStartTime},</if> |
| | | <if test="validEndTime != null">#{validEndTime},</if> |
| | | <if test="validDay != null">#{validDay},</if> |
| | | <if test="receiveTime != null">#{receiveTime},</if> |
| | | <if test="userTime != null">#{userTime},</if> |
| | | <if test="deadlineTime != null">#{deadlineTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateUserCoupon" parameterType="UserCoupon"> |
| | | update t_user_coupon |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="couponId != null">coupon_id = #{couponId},</if> |
| | | <if test="userId != null">user_id = #{userId},</if> |
| | | <if test="couponType != null">coupon_type = #{couponType},</if> |
| | | <if test="couponStatus != null">coupon_status = #{couponStatus},</if> |
| | | <if test="couponName != null">coupon_name = #{couponName},</if> |
| | | <if test="sendType != null">send_type = #{sendType},</if> |
| | | <if test="sendTimeType != null">send_time_type = #{sendTimeType},</if> |
| | | <if test="sendTime != null">send_time = #{sendTime},</if> |
| | | <if test="moneyThreshold != null">money_threshold = #{moneyThreshold},</if> |
| | | <if test="dicountMoney != null">dicount_money = #{dicountMoney},</if> |
| | | <if test="discoutPercent != null">discout_percent = #{discoutPercent},</if> |
| | | <if test="useScope != null">use_scope = #{useScope},</if> |
| | | <if test="validTimeType != null">valid_time_type = #{validTimeType},</if> |
| | | <if test="validStartTime != null">valid_start_time = #{validStartTime},</if> |
| | | <if test="validEndTime != null">valid_end_time = #{validEndTime},</if> |
| | | <if test="validDay != null">valid_day = #{validDay},</if> |
| | | <if test="receiveTime != null">receive_time = #{receiveTime},</if> |
| | | <if test="userTime != null">user_time = #{userTime},</if> |
| | | <if test="deadlineTime != null">deadline_time = #{deadlineTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteUserCouponById" parameterType="Long"> |
| | | delete from t_user_coupon where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteUserCouponByIds" parameterType="String"> |
| | | delete from t_user_coupon where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.order.ConsumerGoodsMapper"> |
| | | |
| | | <resultMap type="ConsumerGoods" id="ConsumerGoodsResult"> |
| | | <result property="consumerGoodsId" column="consumer_goods_id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="serviceStatus" column="service_status" /> |
| | | <result property="shopId" column="shop_id" /> |
| | | <result property="userId" column="user_id" /> |
| | | <result property="orderId" column="order_id" /> |
| | | <result property="orderGoodsId" column="order_goods_id" /> |
| | | <result property="goodsId" column="goods_id" /> |
| | | <result property="goodsName" column="goods_name" /> |
| | | <result property="cycleNumFlag" column="cycle_num_flag" /> |
| | | <result property="serviceNum" column="service_num" /> |
| | | <result property="usedNum" column="used_num" /> |
| | | <result property="completeTime" column="complete_time" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="useTime" column="use_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectConsumerGoodsVo"> |
| | | select consumer_goods_id, del_flag, service_status, shop_id, user_id, order_id, order_goods_id, goods_id, goods_name, cycle_num_flag, service_num, used_num, complete_time, create_time, use_time from t_consumer_goods |
| | | </sql> |
| | | |
| | | <select id="selectConsumerGoodsList" parameterType="ConsumerGoods" resultMap="ConsumerGoodsResult"> |
| | | <include refid="selectConsumerGoodsVo"/> |
| | | <where> |
| | | <if test="serviceStatus != null "> and service_status = #{serviceStatus}</if> |
| | | <if test="shopId != null "> and shop_id = #{shopId}</if> |
| | | <if test="userId != null "> and user_id = #{userId}</if> |
| | | <if test="orderId != null and orderId != ''"> and order_id = #{orderId}</if> |
| | | <if test="orderGoodsId != null and orderGoodsId != ''"> and order_goods_id = #{orderGoodsId}</if> |
| | | <if test="goodsId != null and goodsId != ''"> and goods_id = #{goodsId}</if> |
| | | <if test="goodsName != null and goodsName != ''"> and goods_name like concat('%', #{goodsName}, '%')</if> |
| | | <if test="cycleNumFlag != null "> and cycle_num_flag = #{cycleNumFlag}</if> |
| | | <if test="serviceNum != null "> and service_num = #{serviceNum}</if> |
| | | <if test="usedNum != null "> and used_num = #{usedNum}</if> |
| | | <if test="completeTime != null "> and complete_time = #{completeTime}</if> |
| | | <if test="useTime != null and useTime != ''"> and use_time = #{useTime}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectConsumerGoodsByConsumerGoodsId" parameterType="String" resultMap="ConsumerGoodsResult"> |
| | | <include refid="selectConsumerGoodsVo"/> |
| | | where consumer_goods_id = #{consumerGoodsId} |
| | | </select> |
| | | |
| | | <insert id="insertConsumerGoods" parameterType="ConsumerGoods"> |
| | | insert into t_consumer_goods |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="consumerGoodsId != null">consumer_goods_id,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="serviceStatus != null">service_status,</if> |
| | | <if test="shopId != null">shop_id,</if> |
| | | <if test="userId != null">user_id,</if> |
| | | <if test="orderId != null">order_id,</if> |
| | | <if test="orderGoodsId != null">order_goods_id,</if> |
| | | <if test="goodsId != null">goods_id,</if> |
| | | <if test="goodsName != null">goods_name,</if> |
| | | <if test="cycleNumFlag != null">cycle_num_flag,</if> |
| | | <if test="serviceNum != null">service_num,</if> |
| | | <if test="usedNum != null">used_num,</if> |
| | | <if test="completeTime != null">complete_time,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="useTime != null">use_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="consumerGoodsId != null">#{consumerGoodsId},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="serviceStatus != null">#{serviceStatus},</if> |
| | | <if test="shopId != null">#{shopId},</if> |
| | | <if test="userId != null">#{userId},</if> |
| | | <if test="orderId != null">#{orderId},</if> |
| | | <if test="orderGoodsId != null">#{orderGoodsId},</if> |
| | | <if test="goodsId != null">#{goodsId},</if> |
| | | <if test="goodsName != null">#{goodsName},</if> |
| | | <if test="cycleNumFlag != null">#{cycleNumFlag},</if> |
| | | <if test="serviceNum != null">#{serviceNum},</if> |
| | | <if test="usedNum != null">#{usedNum},</if> |
| | | <if test="completeTime != null">#{completeTime},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="useTime != null">#{useTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateConsumerGoods" parameterType="ConsumerGoods"> |
| | | update t_consumer_goods |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="serviceStatus != null">service_status = #{serviceStatus},</if> |
| | | <if test="shopId != null">shop_id = #{shopId},</if> |
| | | <if test="userId != null">user_id = #{userId},</if> |
| | | <if test="orderId != null">order_id = #{orderId},</if> |
| | | <if test="orderGoodsId != null">order_goods_id = #{orderGoodsId},</if> |
| | | <if test="goodsId != null">goods_id = #{goodsId},</if> |
| | | <if test="goodsName != null">goods_name = #{goodsName},</if> |
| | | <if test="cycleNumFlag != null">cycle_num_flag = #{cycleNumFlag},</if> |
| | | <if test="serviceNum != null">service_num = #{serviceNum},</if> |
| | | <if test="usedNum != null">used_num = #{usedNum},</if> |
| | | <if test="completeTime != null">complete_time = #{completeTime},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="useTime != null">use_time = #{useTime},</if> |
| | | </trim> |
| | | where consumer_goods_id = #{consumerGoodsId} |
| | | </update> |
| | | |
| | | <delete id="deleteConsumerGoodsByConsumerGoodsId" parameterType="String"> |
| | | delete from t_consumer_goods where consumer_goods_id = #{consumerGoodsId} |
| | | </delete> |
| | | |
| | | <delete id="deleteConsumerGoodsByConsumerGoodsIds" parameterType="String"> |
| | | delete from t_consumer_goods where consumer_goods_id in |
| | | <foreach item="consumerGoodsId" collection="array" open="(" separator="," close=")"> |
| | | #{consumerGoodsId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.order.OrderGoodsMapper"> |
| | | |
| | | <resultMap type="OrderGoods" id="OrderGoodsResult"> |
| | | <result property="orderGoodsId" column="order_goods_id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="orderId" column="order_id" /> |
| | | <result property="goodsId" column="goods_id" /> |
| | | <result property="buyNum" column="buy_num" /> |
| | | <result property="couponId" column="coupon_id" /> |
| | | <result property="goodsPrice" column="goods_price" /> |
| | | <result property="goodsTotalMoney" column="goods_total_money" /> |
| | | <result property="goodsReceivableMoney" column="goods_receivable_money" /> |
| | | <result property="cycleNumFlag" column="cycle_num_flag" /> |
| | | <result property="serviceNum" column="service_num" /> |
| | | <result property="goodsType" column="goods_type" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectOrderGoodsVo"> |
| | | select order_goods_id, del_flag, order_id, goods_id, buy_num, coupon_id, goods_price, goods_total_money, goods_receivable_money, cycle_num_flag, service_num, goods_type from t_order_goods |
| | | </sql> |
| | | |
| | | <select id="selectOrderGoodsList" parameterType="OrderGoods" resultMap="OrderGoodsResult"> |
| | | <include refid="selectOrderGoodsVo"/> |
| | | <where> |
| | | <if test="orderId != null and orderId != ''"> and order_id = #{orderId}</if> |
| | | <if test="goodsId != null and goodsId != ''"> and goods_id = #{goodsId}</if> |
| | | <if test="buyNum != null "> and buy_num = #{buyNum}</if> |
| | | <if test="couponId != null and couponId != ''"> and coupon_id = #{couponId}</if> |
| | | <if test="goodsPrice != null "> and goods_price = #{goodsPrice}</if> |
| | | <if test="goodsTotalMoney != null "> and goods_total_money = #{goodsTotalMoney}</if> |
| | | <if test="goodsReceivableMoney != null "> and goods_receivable_money = #{goodsReceivableMoney}</if> |
| | | <if test="cycleNumFlag != null "> and cycle_num_flag = #{cycleNumFlag}</if> |
| | | <if test="serviceNum != null "> and service_num = #{serviceNum}</if> |
| | | <if test="goodsType != null "> and goods_type = #{goodsType}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectOrderGoodsByOrderGoodsId" parameterType="String" resultMap="OrderGoodsResult"> |
| | | <include refid="selectOrderGoodsVo"/> |
| | | where order_goods_id = #{orderGoodsId} |
| | | </select> |
| | | |
| | | <insert id="insertOrderGoods" parameterType="OrderGoods"> |
| | | insert into t_order_goods |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="orderGoodsId != null">order_goods_id,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="orderId != null">order_id,</if> |
| | | <if test="goodsId != null">goods_id,</if> |
| | | <if test="buyNum != null">buy_num,</if> |
| | | <if test="couponId != null">coupon_id,</if> |
| | | <if test="goodsPrice != null">goods_price,</if> |
| | | <if test="goodsTotalMoney != null">goods_total_money,</if> |
| | | <if test="goodsReceivableMoney != null">goods_receivable_money,</if> |
| | | <if test="cycleNumFlag != null">cycle_num_flag,</if> |
| | | <if test="serviceNum != null">service_num,</if> |
| | | <if test="goodsType != null">goods_type,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="orderGoodsId != null">#{orderGoodsId},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="orderId != null">#{orderId},</if> |
| | | <if test="goodsId != null">#{goodsId},</if> |
| | | <if test="buyNum != null">#{buyNum},</if> |
| | | <if test="couponId != null">#{couponId},</if> |
| | | <if test="goodsPrice != null">#{goodsPrice},</if> |
| | | <if test="goodsTotalMoney != null">#{goodsTotalMoney},</if> |
| | | <if test="goodsReceivableMoney != null">#{goodsReceivableMoney},</if> |
| | | <if test="cycleNumFlag != null">#{cycleNumFlag},</if> |
| | | <if test="serviceNum != null">#{serviceNum},</if> |
| | | <if test="goodsType != null">#{goodsType},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateOrderGoods" parameterType="OrderGoods"> |
| | | update t_order_goods |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="orderId != null">order_id = #{orderId},</if> |
| | | <if test="goodsId != null">goods_id = #{goodsId},</if> |
| | | <if test="buyNum != null">buy_num = #{buyNum},</if> |
| | | <if test="couponId != null">coupon_id = #{couponId},</if> |
| | | <if test="goodsPrice != null">goods_price = #{goodsPrice},</if> |
| | | <if test="goodsTotalMoney != null">goods_total_money = #{goodsTotalMoney},</if> |
| | | <if test="goodsReceivableMoney != null">goods_receivable_money = #{goodsReceivableMoney},</if> |
| | | <if test="cycleNumFlag != null">cycle_num_flag = #{cycleNumFlag},</if> |
| | | <if test="serviceNum != null">service_num = #{serviceNum},</if> |
| | | <if test="goodsType != null">goods_type = #{goodsType},</if> |
| | | </trim> |
| | | where order_goods_id = #{orderGoodsId} |
| | | </update> |
| | | |
| | | <delete id="deleteOrderGoodsByOrderGoodsId" parameterType="String"> |
| | | delete from t_order_goods where order_goods_id = #{orderGoodsId} |
| | | </delete> |
| | | |
| | | <delete id="deleteOrderGoodsByOrderGoodsIds" parameterType="String"> |
| | | delete from t_order_goods where order_goods_id in |
| | | <foreach item="orderGoodsId" collection="array" open="(" separator="," close=")"> |
| | | #{orderGoodsId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.order.OrderMapper"> |
| | | |
| | | <resultMap type="Order" id="OrderResult"> |
| | | <result property="orderId" column="order_id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="orderStatus" column="order_status" /> |
| | | <result property="orderNo" column="order_no" /> |
| | | <result property="orderFrom" column="order_from" /> |
| | | <result property="shopId" column="shop_id" /> |
| | | <result property="userId" column="user_id" /> |
| | | <result property="orderMoney" column="order_money" /> |
| | | <result property="couponMoney" column="coupon_money" /> |
| | | <result property="discountMoney" column="discount_money" /> |
| | | <result property="receivableMoney" column="receivable_money" /> |
| | | <result property="payType" column="pay_type" /> |
| | | <result property="payMoney" column="pay_money" /> |
| | | <result property="onlinePayMoney" column="online_pay_money" /> |
| | | <result property="offlinePayMoney" column="offline_pay_money" /> |
| | | <result property="orderRemark" column="order_remark" /> |
| | | <result property="goodsInfo" column="goods_info" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="payTime" column="pay_time" /> |
| | | <result property="useTime" column="use_time" /> |
| | | <result property="cancelTime" column="cancel_time" /> |
| | | <result property="useUserId" column="use_user_id" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectOrderVo"> |
| | | select order_id, del_flag, order_status, order_no, order_from, shop_id, user_id, order_money, coupon_money, discount_money, receivable_money, pay_type, pay_money, online_pay_money, offline_pay_money, order_remark, goods_info, create_time, pay_time, use_time, cancel_time, use_user_id from t_order |
| | | </sql> |
| | | |
| | | <select id="selectOrderList" parameterType="Order" resultMap="OrderResult"> |
| | | <include refid="selectOrderVo"/> |
| | | <where> |
| | | <if test="orderStatus != null "> and order_status = #{orderStatus}</if> |
| | | <if test="orderNo != null and orderNo != ''"> and order_no = #{orderNo}</if> |
| | | <if test="orderFrom != null "> and order_from = #{orderFrom}</if> |
| | | <if test="shopId != null "> and shop_id = #{shopId}</if> |
| | | <if test="userId != null "> and user_id = #{userId}</if> |
| | | <if test="orderMoney != null "> and order_money = #{orderMoney}</if> |
| | | <if test="couponMoney != null "> and coupon_money = #{couponMoney}</if> |
| | | <if test="discountMoney != null "> and discount_money = #{discountMoney}</if> |
| | | <if test="receivableMoney != null "> and receivable_money = #{receivableMoney}</if> |
| | | <if test="payType != null "> and pay_type = #{payType}</if> |
| | | <if test="payMoney != null "> and pay_money = #{payMoney}</if> |
| | | <if test="onlinePayMoney != null "> and online_pay_money = #{onlinePayMoney}</if> |
| | | <if test="offlinePayMoney != null "> and offline_pay_money = #{offlinePayMoney}</if> |
| | | <if test="orderRemark != null and orderRemark != ''"> and order_remark = #{orderRemark}</if> |
| | | <if test="goodsInfo != null and goodsInfo != ''"> and goods_info = #{goodsInfo}</if> |
| | | <if test="payTime != null "> and pay_time = #{payTime}</if> |
| | | <if test="useTime != null "> and use_time = #{useTime}</if> |
| | | <if test="cancelTime != null "> and cancel_time = #{cancelTime}</if> |
| | | <if test="useUserId != null "> and use_user_id = #{useUserId}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectOrderByOrderId" parameterType="String" resultMap="OrderResult"> |
| | | <include refid="selectOrderVo"/> |
| | | where order_id = #{orderId} |
| | | </select> |
| | | |
| | | <insert id="insertOrder" parameterType="Order"> |
| | | insert into t_order |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="orderId != null">order_id,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="orderStatus != null">order_status,</if> |
| | | <if test="orderNo != null">order_no,</if> |
| | | <if test="orderFrom != null">order_from,</if> |
| | | <if test="shopId != null">shop_id,</if> |
| | | <if test="userId != null">user_id,</if> |
| | | <if test="orderMoney != null">order_money,</if> |
| | | <if test="couponMoney != null">coupon_money,</if> |
| | | <if test="discountMoney != null">discount_money,</if> |
| | | <if test="receivableMoney != null">receivable_money,</if> |
| | | <if test="payType != null">pay_type,</if> |
| | | <if test="payMoney != null">pay_money,</if> |
| | | <if test="onlinePayMoney != null">online_pay_money,</if> |
| | | <if test="offlinePayMoney != null">offline_pay_money,</if> |
| | | <if test="orderRemark != null">order_remark,</if> |
| | | <if test="goodsInfo != null">goods_info,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="payTime != null">pay_time,</if> |
| | | <if test="useTime != null">use_time,</if> |
| | | <if test="cancelTime != null">cancel_time,</if> |
| | | <if test="useUserId != null">use_user_id,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="orderId != null">#{orderId},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="orderStatus != null">#{orderStatus},</if> |
| | | <if test="orderNo != null">#{orderNo},</if> |
| | | <if test="orderFrom != null">#{orderFrom},</if> |
| | | <if test="shopId != null">#{shopId},</if> |
| | | <if test="userId != null">#{userId},</if> |
| | | <if test="orderMoney != null">#{orderMoney},</if> |
| | | <if test="couponMoney != null">#{couponMoney},</if> |
| | | <if test="discountMoney != null">#{discountMoney},</if> |
| | | <if test="receivableMoney != null">#{receivableMoney},</if> |
| | | <if test="payType != null">#{payType},</if> |
| | | <if test="payMoney != null">#{payMoney},</if> |
| | | <if test="onlinePayMoney != null">#{onlinePayMoney},</if> |
| | | <if test="offlinePayMoney != null">#{offlinePayMoney},</if> |
| | | <if test="orderRemark != null">#{orderRemark},</if> |
| | | <if test="goodsInfo != null">#{goodsInfo},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="payTime != null">#{payTime},</if> |
| | | <if test="useTime != null">#{useTime},</if> |
| | | <if test="cancelTime != null">#{cancelTime},</if> |
| | | <if test="useUserId != null">#{useUserId},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateOrder" parameterType="Order"> |
| | | update t_order |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="orderStatus != null">order_status = #{orderStatus},</if> |
| | | <if test="orderNo != null">order_no = #{orderNo},</if> |
| | | <if test="orderFrom != null">order_from = #{orderFrom},</if> |
| | | <if test="shopId != null">shop_id = #{shopId},</if> |
| | | <if test="userId != null">user_id = #{userId},</if> |
| | | <if test="orderMoney != null">order_money = #{orderMoney},</if> |
| | | <if test="couponMoney != null">coupon_money = #{couponMoney},</if> |
| | | <if test="discountMoney != null">discount_money = #{discountMoney},</if> |
| | | <if test="receivableMoney != null">receivable_money = #{receivableMoney},</if> |
| | | <if test="payType != null">pay_type = #{payType},</if> |
| | | <if test="payMoney != null">pay_money = #{payMoney},</if> |
| | | <if test="onlinePayMoney != null">online_pay_money = #{onlinePayMoney},</if> |
| | | <if test="offlinePayMoney != null">offline_pay_money = #{offlinePayMoney},</if> |
| | | <if test="orderRemark != null">order_remark = #{orderRemark},</if> |
| | | <if test="goodsInfo != null">goods_info = #{goodsInfo},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="payTime != null">pay_time = #{payTime},</if> |
| | | <if test="useTime != null">use_time = #{useTime},</if> |
| | | <if test="cancelTime != null">cancel_time = #{cancelTime},</if> |
| | | <if test="useUserId != null">use_user_id = #{useUserId},</if> |
| | | </trim> |
| | | where order_id = #{orderId} |
| | | </update> |
| | | |
| | | <delete id="deleteOrderByOrderId" parameterType="String"> |
| | | delete from t_order where order_id = #{orderId} |
| | | </delete> |
| | | |
| | | <delete id="deleteOrderByOrderIds" parameterType="String"> |
| | | delete from t_order where order_id in |
| | | <foreach item="orderId" collection="array" open="(" separator="," close=")"> |
| | | #{orderId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.order.ShoppingCartMapper"> |
| | | |
| | | <resultMap type="ShoppingCart" id="ShoppingCartResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="userId" column="user_id" /> |
| | | <result property="shopId" column="shop_id" /> |
| | | <result property="goodsId" column="goods_id" /> |
| | | <result property="buyNum" column="buy_num" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateime" column="update_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectShoppingCartVo"> |
| | | select id, del_flag, user_id, shop_id, goods_id, buy_num, create_time, update_time from t_shopping_cart |
| | | </sql> |
| | | |
| | | <select id="selectShoppingCartList" parameterType="ShoppingCart" resultMap="ShoppingCartResult"> |
| | | <include refid="selectShoppingCartVo"/> |
| | | <where> |
| | | <if test="userId != null "> and user_id = #{userId}</if> |
| | | <if test="shopId != null "> and shop_id = #{shopId}</if> |
| | | <if test="goodsId != null and goodsId != ''"> and goods_id = #{goodsId}</if> |
| | | <if test="buyNum != null "> and buy_num = #{buyNum}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectShoppingCartById" parameterType="Long" resultMap="ShoppingCartResult"> |
| | | <include refid="selectShoppingCartVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertShoppingCart" parameterType="ShoppingCart" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_shopping_cart |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="userId != null">user_id,</if> |
| | | <if test="shopId != null">shop_id,</if> |
| | | <if test="goodsId != null">goods_id,</if> |
| | | <if test="buyNum != null">buy_num,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="updateime != null">update_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="userId != null">#{userId},</if> |
| | | <if test="shopId != null">#{shopId},</if> |
| | | <if test="goodsId != null">#{goodsId},</if> |
| | | <if test="buyNum != null">#{buyNum},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateime != null">#{updateime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateShoppingCart" parameterType="ShoppingCart"> |
| | | update t_shopping_cart |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="userId != null">user_id = #{userId},</if> |
| | | <if test="shopId != null">shop_id = #{shopId},</if> |
| | | <if test="goodsId != null">goods_id = #{goodsId},</if> |
| | | <if test="buyNum != null">buy_num = #{buyNum},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="updateime != null">update_time = #{updateime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteShoppingCartById" parameterType="Long"> |
| | | update t_shopping_cart set del_flag = 1 where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteShoppingCartByIds" parameterType="String"> |
| | | update t_shopping_cart set del_flag = 1 where id in |
| | | <foreach item="ids" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.order.UserServiceRecordMapper"> |
| | | |
| | | <resultMap type="UserServiceRecord" id="UserServiceRecordResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="userId" column="user_id" /> |
| | | <result property="consumerGoodsIds" column="consumer_goods_ids" /> |
| | | <result property="consumerGoodsNames" column="consumer_goods_names" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="serviceType" column="service_type" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectUserServiceRecordVo"> |
| | | select id, del_flag, user_id, consumer_goods_ids, consumer_goods_names, create_time, service_type from t_user_service_record |
| | | </sql> |
| | | |
| | | <select id="selectUserServiceRecordList" parameterType="UserServiceRecord" resultMap="UserServiceRecordResult"> |
| | | <include refid="selectUserServiceRecordVo"/> |
| | | <where> |
| | | <if test="userId != null "> and user_id = #{userId}</if> |
| | | <if test="consumerGoodsIds != null and consumerGoodsIds != ''"> and consumer_goods_ids = #{consumerGoodsIds}</if> |
| | | <if test="consumerGoodsNames != null and consumerGoodsNames != ''"> and consumer_goods_names = #{consumerGoodsNames}</if> |
| | | <if test="serviceType != null "> and service_type = #{serviceType}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectUserServiceRecordById" parameterType="Long" resultMap="UserServiceRecordResult"> |
| | | <include refid="selectUserServiceRecordVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertUserServiceRecord" parameterType="UserServiceRecord" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_user_service_record |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="userId != null">user_id,</if> |
| | | <if test="consumerGoodsIds != null">consumer_goods_ids,</if> |
| | | <if test="consumerGoodsNames != null">consumer_goods_names,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="serviceType != null">service_type,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="userId != null">#{userId},</if> |
| | | <if test="consumerGoodsIds != null">#{consumerGoodsIds},</if> |
| | | <if test="consumerGoodsNames != null">#{consumerGoodsNames},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="serviceType != null">#{serviceType},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateUserServiceRecord" parameterType="UserServiceRecord"> |
| | | update t_user_service_record |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="userId != null">user_id = #{userId},</if> |
| | | <if test="consumerGoodsIds != null">consumer_goods_ids = #{consumerGoodsIds},</if> |
| | | <if test="consumerGoodsNames != null">consumer_goods_names = #{consumerGoodsNames},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="serviceType != null">service_type = #{serviceType},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteUserServiceRecordById" parameterType="Long"> |
| | | delete from t_user_service_record where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteUserServiceRecordByIds" parameterType="String"> |
| | | delete from t_user_service_record where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.shop.MemberTaskMapper"> |
| | | |
| | | <resultMap type="MemberTask" id="MemberTaskResult"> |
| | | <result property="taskId" column="task_id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="shopId" column="shop_id" /> |
| | | <result property="userId" column="user_id" /> |
| | | <result property="taskDate" column="task_date" /> |
| | | <result property="taskContent" column="task_content" /> |
| | | <result property="createTime" column="create_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectMemberTaskVo"> |
| | | select task_id, del_flag, shop_id, user_id, task_date, task_content, create_time from t_member_task |
| | | </sql> |
| | | |
| | | <select id="selectMemberTaskList" parameterType="MemberTask" resultMap="MemberTaskResult"> |
| | | <include refid="selectMemberTaskVo"/> |
| | | <where> |
| | | <if test="shopId != null "> and shop_id = #{shopId}</if> |
| | | <if test="userId != null "> and user_id = #{userId}</if> |
| | | <if test="taskDate != null "> and task_date = #{taskDate}</if> |
| | | <if test="taskContent != null and taskContent != ''"> and task_content = #{taskContent}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectMemberTaskByTaskId" parameterType="String" resultMap="MemberTaskResult"> |
| | | <include refid="selectMemberTaskVo"/> |
| | | where task_id = #{taskId} |
| | | </select> |
| | | |
| | | <insert id="insertMemberTask" parameterType="MemberTask"> |
| | | insert into t_member_task |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="taskId != null">task_id,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="shopId != null">shop_id,</if> |
| | | <if test="userId != null">user_id,</if> |
| | | <if test="taskDate != null">task_date,</if> |
| | | <if test="taskContent != null">task_content,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskId != null">#{taskId},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="shopId != null">#{shopId},</if> |
| | | <if test="userId != null">#{userId},</if> |
| | | <if test="taskDate != null">#{taskDate},</if> |
| | | <if test="taskContent != null">#{taskContent},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateMemberTask" parameterType="MemberTask"> |
| | | update t_member_task |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="shopId != null">shop_id = #{shopId},</if> |
| | | <if test="userId != null">user_id = #{userId},</if> |
| | | <if test="taskDate != null">task_date = #{taskDate},</if> |
| | | <if test="taskContent != null">task_content = #{taskContent},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | </trim> |
| | | where task_id = #{taskId} |
| | | </update> |
| | | |
| | | <delete id="deleteMemberTaskByTaskId" parameterType="String"> |
| | | delete from t_member_task where task_id = #{taskId} |
| | | </delete> |
| | | |
| | | <delete id="deleteMemberTaskByTaskIds" parameterType="String"> |
| | | delete from t_member_task where task_id in |
| | | <foreach item="taskId" collection="array" open="(" separator="," close=")"> |
| | | #{taskId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.shop.MemberTaskRecordMapper"> |
| | | |
| | | <resultMap type="MemberTaskRecord" id="MemberTaskRecordResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="taskId" column="task_id" /> |
| | | <result property="userId" column="user_id" /> |
| | | <result property="followType" column="follow_type" /> |
| | | <result property="callTime" column="call_time" /> |
| | | <result property="followContent" column="follow_content" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectMemberTaskRecordVo"> |
| | | select id, del_flag, task_id, user_id, follow_type, call_time, follow_content from t_member_task_record |
| | | </sql> |
| | | |
| | | <select id="selectMemberTaskRecordList" parameterType="MemberTaskRecord" resultMap="MemberTaskRecordResult"> |
| | | <include refid="selectMemberTaskRecordVo"/> |
| | | <where> |
| | | <if test="taskId != null and taskId != ''"> and task_id = #{taskId}</if> |
| | | <if test="userId != null "> and user_id = #{userId}</if> |
| | | <if test="followType != null "> and follow_type = #{followType}</if> |
| | | <if test="callTime != null "> and call_time = #{callTime}</if> |
| | | <if test="followContent != null and followContent != ''"> and follow_content = #{followContent}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectMemberTaskRecordById" parameterType="Long" resultMap="MemberTaskRecordResult"> |
| | | <include refid="selectMemberTaskRecordVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertMemberTaskRecord" parameterType="MemberTaskRecord" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_member_task_record |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="taskId != null">task_id,</if> |
| | | <if test="userId != null">user_id,</if> |
| | | <if test="followType != null">follow_type,</if> |
| | | <if test="callTime != null">call_time,</if> |
| | | <if test="followContent != null">follow_content,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="taskId != null">#{taskId},</if> |
| | | <if test="userId != null">#{userId},</if> |
| | | <if test="followType != null">#{followType},</if> |
| | | <if test="callTime != null">#{callTime},</if> |
| | | <if test="followContent != null">#{followContent},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateMemberTaskRecord" parameterType="MemberTaskRecord"> |
| | | update t_member_task_record |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="taskId != null">task_id = #{taskId},</if> |
| | | <if test="userId != null">user_id = #{userId},</if> |
| | | <if test="followType != null">follow_type = #{followType},</if> |
| | | <if test="callTime != null">call_time = #{callTime},</if> |
| | | <if test="followContent != null">follow_content = #{followContent},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteMemberTaskRecordById" parameterType="Long"> |
| | | delete from t_member_task_record where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteMemberTaskRecordByIds" parameterType="String"> |
| | | delete from t_member_task_record where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.shop.ShopCertificateMapper"> |
| | | |
| | | <resultMap type="ShopCertificate" id="ShopCertificateResult"> |
| | | <result property="cerId" column="cer_id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="cerStatus" column="cer_status" /> |
| | | <result property="shopId" column="shop_id" /> |
| | | <result property="cerName" column="cer_name" /> |
| | | <result property="cerNumber" column="cer_number" /> |
| | | <result property="cerPicture" column="cer_picture" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectShopCertificateVo"> |
| | | select cer_id, del_flag, cer_status, shop_id, cer_name, cer_number, cer_picture from t_shop_certificate |
| | | </sql> |
| | | |
| | | <select id="selectShopCertificateList" parameterType="ShopCertificate" resultMap="ShopCertificateResult"> |
| | | <include refid="selectShopCertificateVo"/> |
| | | <where> |
| | | <if test="cerStatus != null "> and cer_status = #{cerStatus}</if> |
| | | <if test="shopId != null "> and shop_id = #{shopId}</if> |
| | | <if test="cerName != null and cerName != ''"> and cer_name like concat('%', #{cerName}, '%')</if> |
| | | <if test="cerNumber != null "> and cer_number = #{cerNumber}</if> |
| | | <if test="cerPicture != null and cerPicture != ''"> and cer_picture = #{cerPicture}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectShopCertificateByCerId" parameterType="Long" resultMap="ShopCertificateResult"> |
| | | <include refid="selectShopCertificateVo"/> |
| | | where cer_id = #{cerId} |
| | | </select> |
| | | |
| | | <insert id="insertShopCertificate" parameterType="ShopCertificate" useGeneratedKeys="true" keyProperty="cerId"> |
| | | insert into t_shop_certificate |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="cerStatus != null">cer_status,</if> |
| | | <if test="shopId != null">shop_id,</if> |
| | | <if test="cerName != null">cer_name,</if> |
| | | <if test="cerNumber != null">cer_number,</if> |
| | | <if test="cerPicture != null">cer_picture,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="cerStatus != null">#{cerStatus},</if> |
| | | <if test="shopId != null">#{shopId},</if> |
| | | <if test="cerName != null">#{cerName},</if> |
| | | <if test="cerNumber != null">#{cerNumber},</if> |
| | | <if test="cerPicture != null">#{cerPicture},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateShopCertificate" parameterType="ShopCertificate"> |
| | | update t_shop_certificate |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="cerStatus != null">cer_status = #{cerStatus},</if> |
| | | <if test="shopId != null">shop_id = #{shopId},</if> |
| | | <if test="cerName != null">cer_name = #{cerName},</if> |
| | | <if test="cerNumber != null">cer_number = #{cerNumber},</if> |
| | | <if test="cerPicture != null">cer_picture = #{cerPicture},</if> |
| | | </trim> |
| | | where cer_id = #{cerId} |
| | | </update> |
| | | |
| | | <delete id="deleteShopCertificateByCerId" parameterType="Long"> |
| | | delete from t_shop_certificate where cer_id = #{cerId} |
| | | </delete> |
| | | |
| | | <delete id="deleteShopCertificateByCerIds" parameterType="String"> |
| | | delete from t_shop_certificate where cer_id in |
| | | <foreach item="cerId" collection="array" open="(" separator="," close=")"> |
| | | #{cerId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.shop.ShopFileMapper"> |
| | | |
| | | <resultMap type="ShopFile" id="ShopFileResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="shopId" column="shop_id" /> |
| | | <result property="fileType" column="file_type" /> |
| | | <result property="fileUrl" column="file_url" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectShopFileVo"> |
| | | select id, del_flag, shop_id, file_type, file_url from t_shop_file |
| | | </sql> |
| | | |
| | | <select id="selectShopFileList" parameterType="ShopFile" resultMap="ShopFileResult"> |
| | | <include refid="selectShopFileVo"/> |
| | | <where> |
| | | <if test="shopId != null "> and shop_id = #{shopId}</if> |
| | | <if test="fileType != null "> and file_type = #{fileType}</if> |
| | | <if test="fileUrl != null and fileUrl != ''"> and file_url = #{fileUrl}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectShopFileById" parameterType="Long" resultMap="ShopFileResult"> |
| | | <include refid="selectShopFileVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertShopFile" parameterType="ShopFile" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_shop_file |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="shopId != null">shop_id,</if> |
| | | <if test="fileType != null">file_type,</if> |
| | | <if test="fileUrl != null">file_url,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="shopId != null">#{shopId},</if> |
| | | <if test="fileType != null">#{fileType},</if> |
| | | <if test="fileUrl != null">#{fileUrl},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateShopFile" parameterType="ShopFile"> |
| | | update t_shop_file |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="shopId != null">shop_id = #{shopId},</if> |
| | | <if test="fileType != null">file_type = #{fileType},</if> |
| | | <if test="fileUrl != null">file_url = #{fileUrl},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteShopFileById" parameterType="Long"> |
| | | delete from t_shop_file where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteShopFileByIds" parameterType="String"> |
| | | delete from t_shop_file where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <update id="deleteByShopId"> |
| | | UPDATE shop_file SET del_flag = 1 WHERE shop_id = #{shopId} |
| | | </update> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.shop.ShopGoodsMapper"> |
| | | |
| | | <resultMap type="ShopGoods" id="ShopGoodsResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="shopId" column="shop_id" /> |
| | | <result property="goodsId" column="goods_id" /> |
| | | <result property="salesPrice" column="sales_price" /> |
| | | <result property="serviceNum" column="service_num" /> |
| | | <result property="updateime" column="update_time" /> |
| | | <result property="updateUserId" column="update_user_id" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectShopGoodsVo"> |
| | | select id, del_flag, shop_id, goods_id, sales_price, service_num, update_time, update_user_id from t_shop_goods |
| | | </sql> |
| | | |
| | | <select id="selectShopGoodsList" parameterType="ShopGoods" resultMap="ShopGoodsResult"> |
| | | <include refid="selectShopGoodsVo"/> |
| | | <where> |
| | | <if test="shopId != null "> and shop_id = #{shopId}</if> |
| | | <if test="goodsId != null "> and goods_id = #{goodsId}</if> |
| | | <if test="salesPrice != null "> and sales_price = #{salesPrice}</if> |
| | | <if test="serviceNum != null "> and service_num = #{serviceNum}</if> |
| | | <if test="updateUserId != null "> and update_user_id = #{updateUserId}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectShopGoodsById" parameterType="Long" resultMap="ShopGoodsResult"> |
| | | <include refid="selectShopGoodsVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertShopGoods" parameterType="ShopGoods" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_shop_goods |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="shopId != null">shop_id,</if> |
| | | <if test="goodsId != null">goods_id,</if> |
| | | <if test="salesPrice != null">sales_price,</if> |
| | | <if test="serviceNum != null">service_num,</if> |
| | | <if test="updateime != null">update_time,</if> |
| | | <if test="updateUserId != null">update_user_id,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="shopId != null">#{shopId},</if> |
| | | <if test="goodsId != null">#{goodsId},</if> |
| | | <if test="salesPrice != null">#{salesPrice},</if> |
| | | <if test="serviceNum != null">#{serviceNum},</if> |
| | | <if test="updateime != null">#{updateime},</if> |
| | | <if test="updateUserId != null">#{updateUserId},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateShopGoods" parameterType="ShopGoods"> |
| | | update t_shop_goods |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="shopId != null">shop_id = #{shopId},</if> |
| | | <if test="goodsId != null">goods_id = #{goodsId},</if> |
| | | <if test="salesPrice != null">sales_price = #{salesPrice},</if> |
| | | <if test="serviceNum != null">service_num = #{serviceNum},</if> |
| | | <if test="updateime != null">update_time = #{updateime},</if> |
| | | <if test="updateUserId != null">update_user_id = #{updateUserId},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteShopGoodsById" parameterType="Long"> |
| | | delete from t_shop_goods where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteShopGoodsByIds" parameterType="String"> |
| | | delete from t_shop_goods where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.shop.ShopMapper"> |
| | | |
| | | <resultMap type="Shop" id="ShopResult"> |
| | | <result property="shopId" column="shop_id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="shopStatus" column="shop_status" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createUserId" column="create_user_id" /> |
| | | <result property="updateime" column="update_time" /> |
| | | <result property="updateUserId" column="update_user_id" /> |
| | | <result property="shopName" column="shop_name" /> |
| | | <result property="shopNumber" column="shop_number" /> |
| | | <result property="shopType" column="shop_type" /> |
| | | <result property="businessStartTime" column="business_start_time" /> |
| | | <result property="businessEndTime" column="business_end_time" /> |
| | | <result property="shopownerName" column="shopowner_name" /> |
| | | <result property="shopownerPhone" column="shopowner_phone" /> |
| | | <result property="signTime" column="sign_time" /> |
| | | <result property="signProvinceCode" column="sign_province_code" /> |
| | | <result property="signCityCode" column="sign_city_code" /> |
| | | <result property="signAreaCode" column="sign_area_code" /> |
| | | <result property="signAreaName" column="sign_area_name" /> |
| | | <result property="shopServicePhone" column="shop_service_phone" /> |
| | | <result property="belongUserId" column="belong_user_id" /> |
| | | <result property="belongShopId" column="belong_shop_id" /> |
| | | <result property="supportingCapacityFlag" column="supporting_capacity_flag" /> |
| | | <result property="operationPersonFlag" column="operation_person_flag" /> |
| | | <result property="executiveForceFlag" column="executive_force_flag" /> |
| | | <result property="patternFlag" column="pattern_flag" /> |
| | | <result property="connectionFlag" column="connection_flag" /> |
| | | <result property="economicAbilityFlag" column="economic_ability_flag" /> |
| | | <result property="relationPartner" column="relation_partner" /> |
| | | <result property="businessHistory" column="business_history" /> |
| | | <result property="shopProvinceCode" column="shop_province_code" /> |
| | | <result property="shopCityCode" column="shop_city_code" /> |
| | | <result property="shopAreaCode" column="shop_area_code" /> |
| | | <result property="shopAreaName" column="shop_area_name" /> |
| | | <result property="shopAddress" column="shop_address" /> |
| | | <result property="shopLongitude" column="shop_longitude" /> |
| | | <result property="shopLatitude" column="shop_latitude" /> |
| | | <result property="shopDetail" column="shop_detail" /> |
| | | <result property="marketingFunctionFlag" column="marketing_function_flag" /> |
| | | <result property="platformCouponFlag" column="platform_coupon_flag" /> |
| | | <result property="platformBirthdayFlag" column="platform_birthday_flag" /> |
| | | <result property="shopCustomStatus" column="shop_custom_status" /> |
| | | <result property="recommendPerson" column="recommend_person" /> |
| | | <result property="cooperationEndTime" column="cooperation_end_time" /> |
| | | <result property="cooperationStartTime" column="cooperation_start_time" /> |
| | | <result property="shopTags" column="shop_tags" /> |
| | | <result property="signUserId" column="sign_user_id" /> |
| | | <result property="shopSource" column="shop_source" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectShopVo"> |
| | | select shop_id, del_flag, shop_status, create_time, create_user_id, update_time, update_user_id, shop_name, shop_number, shop_type, business_start_time, business_end_time, shopowner_name, shopowner_phone, sign_time, sign_province_code, sign_city_code, sign_area_code, sign_area_name, shop_service_phone, belong_user_id, belong_shop_id, supporting_capacity_flag, operation_person_flag, executive_force_flag, pattern_flag, connection_flag, economic_ability_flag, relation_partner, business_history, shop_province_code, shop_city_code, shop_area_code, shop_area_name, shop_address, shop_longitude, shop_latitude, shop_detail, marketing_function_flag, platform_coupon_flag, platform_birthday_flag, shop_custom_status, recommend_person, cooperation_end_time, cooperation_start_time, shop_tags, sign_user_id, shop_source from t_shop |
| | | </sql> |
| | | |
| | | <select id="selectShopList" parameterType="Shop" resultMap="ShopResult"> |
| | | <include refid="selectShopVo"/> |
| | | <where> |
| | | <if test="shopStatus != null "> and shop_status = #{shopStatus}</if> |
| | | <if test="createUserId != null "> and create_user_id = #{createUserId}</if> |
| | | <if test="updateUserId != null "> and update_user_id = #{updateUserId}</if> |
| | | <if test="shopName != null and shopName != ''"> and shop_name like concat('%', #{shopName}, '%')</if> |
| | | <if test="shopNumber != null and shopNumber != ''"> and shop_number = #{shopNumber}</if> |
| | | <if test="shopType != null "> and shop_type = #{shopType}</if> |
| | | <if test="businessStartTime != null and businessStartTime != ''"> and business_start_time = #{businessStartTime}</if> |
| | | <if test="businessEndTime != null and businessEndTime != ''"> and business_end_time = #{businessEndTime}</if> |
| | | <if test="shopownerName != null and shopownerName != ''"> and shopowner_name like concat('%', #{shopownerName}, '%')</if> |
| | | <if test="shopownerPhone != null and shopownerPhone != ''"> and shopowner_phone = #{shopownerPhone}</if> |
| | | <if test="signTime != null "> and sign_time = #{signTime}</if> |
| | | <if test="signProvinceCode != null and signProvinceCode != ''"> and sign_province_code = #{signProvinceCode}</if> |
| | | <if test="signCityCode != null and signCityCode != ''"> and sign_city_code = #{signCityCode}</if> |
| | | <if test="signAreaCode != null and signAreaCode != ''"> and sign_area_code = #{signAreaCode}</if> |
| | | <if test="signAreaName != null and signAreaName != ''"> and sign_area_name like concat('%', #{signAreaName}, '%')</if> |
| | | <if test="shopServicePhone != null and shopServicePhone != ''"> and shop_service_phone = #{shopServicePhone}</if> |
| | | <if test="belongUserId != null "> and belong_user_id = #{belongUserId}</if> |
| | | <if test="belongShopId != null "> and belong_shop_id = #{belongShopId}</if> |
| | | <if test="supportingCapacityFlag != null "> and supporting_capacity_flag = #{supportingCapacityFlag}</if> |
| | | <if test="operationPersonFlag != null "> and operation_person_flag = #{operationPersonFlag}</if> |
| | | <if test="executiveForceFlag != null "> and executive_force_flag = #{executiveForceFlag}</if> |
| | | <if test="patternFlag != null "> and pattern_flag = #{patternFlag}</if> |
| | | <if test="connectionFlag != null "> and connection_flag = #{connectionFlag}</if> |
| | | <if test="economicAbilityFlag != null "> and economic_ability_flag = #{economicAbilityFlag}</if> |
| | | <if test="relationPartner != null "> and relation_partner = #{relationPartner}</if> |
| | | <if test="businessHistory != null and businessHistory != ''"> and business_history = #{businessHistory}</if> |
| | | <if test="shopProvinceCode != null and shopProvinceCode != ''"> and shop_province_code = #{shopProvinceCode}</if> |
| | | <if test="shopCityCode != null and shopCityCode != ''"> and shop_city_code = #{shopCityCode}</if> |
| | | <if test="shopAreaCode != null and shopAreaCode != ''"> and shop_area_code = #{shopAreaCode}</if> |
| | | <if test="shopAreaName != null and shopAreaName != ''"> and shop_area_name like concat('%', #{shopAreaName}, '%')</if> |
| | | <if test="shopAddress != null and shopAddress != ''"> and shop_address = #{shopAddress}</if> |
| | | <if test="shopLongitude != null and shopLongitude != ''"> and shop_longitude = #{shopLongitude}</if> |
| | | <if test="shopLatitude != null and shopLatitude != ''"> and shop_latitude = #{shopLatitude}</if> |
| | | <if test="shopDetail != null and shopDetail != ''"> and shop_detail = #{shopDetail}</if> |
| | | <if test="marketingFunctionFlag != null "> and marketing_function_flag = #{marketingFunctionFlag}</if> |
| | | <if test="platformCouponFlag != null "> and platform_coupon_flag = #{platformCouponFlag}</if> |
| | | <if test="platformBirthdayFlag != null "> and platform_birthday_flag = #{platformBirthdayFlag}</if> |
| | | <if test="shopCustomStatus != null and shopCustomStatus != ''"> and shop_custom_status = #{shopCustomStatus}</if> |
| | | <if test="recommendPerson != null and recommendPerson != ''"> and recommend_person = #{recommendPerson}</if> |
| | | <if test="cooperationEndTime != null "> and cooperation_end_time = #{cooperationEndTime}</if> |
| | | <if test="cooperationStartTime != null "> and cooperation_start_time = #{cooperationStartTime}</if> |
| | | <if test="shopTags != null and shopTags != ''"> and shop_tags = #{shopTags}</if> |
| | | <if test="signUserId != null "> and sign_user_id = #{signUserId}</if> |
| | | <if test="shopSource != null and shopSource != ''"> and shop_source = #{shopSource}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectShopByShopId" parameterType="Long" resultMap="ShopResult"> |
| | | <include refid="selectShopVo"/> |
| | | where shop_id = #{shopId} |
| | | </select> |
| | | |
| | | <insert id="insertShop" parameterType="Shop" useGeneratedKeys="true" keyProperty="shopId"> |
| | | insert into t_shop |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="shopStatus != null">shop_status,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="createUserId != null">create_user_id,</if> |
| | | <if test="updateime != null">update_time,</if> |
| | | <if test="updateUserId != null">update_user_id,</if> |
| | | <if test="shopName != null">shop_name,</if> |
| | | <if test="shopNumber != null">shop_number,</if> |
| | | <if test="shopType != null">shop_type,</if> |
| | | <if test="businessStartTime != null">business_start_time,</if> |
| | | <if test="businessEndTime != null">business_end_time,</if> |
| | | <if test="shopownerName != null">shopowner_name,</if> |
| | | <if test="shopownerPhone != null">shopowner_phone,</if> |
| | | <if test="signTime != null">sign_time,</if> |
| | | <if test="signProvinceCode != null">sign_province_code,</if> |
| | | <if test="signCityCode != null">sign_city_code,</if> |
| | | <if test="signAreaCode != null">sign_area_code,</if> |
| | | <if test="signAreaName != null">sign_area_name,</if> |
| | | <if test="shopServicePhone != null">shop_service_phone,</if> |
| | | <if test="belongUserId != null">belong_user_id,</if> |
| | | <if test="belongShopId != null">belong_shop_id,</if> |
| | | <if test="supportingCapacityFlag != null">supporting_capacity_flag,</if> |
| | | <if test="operationPersonFlag != null">operation_person_flag,</if> |
| | | <if test="executiveForceFlag != null">executive_force_flag,</if> |
| | | <if test="patternFlag != null">pattern_flag,</if> |
| | | <if test="connectionFlag != null">connection_flag,</if> |
| | | <if test="economicAbilityFlag != null">economic_ability_flag,</if> |
| | | <if test="relationPartner != null">relation_partner,</if> |
| | | <if test="businessHistory != null">business_history,</if> |
| | | <if test="shopProvinceCode != null">shop_province_code,</if> |
| | | <if test="shopCityCode != null">shop_city_code,</if> |
| | | <if test="shopAreaCode != null">shop_area_code,</if> |
| | | <if test="shopAreaName != null">shop_area_name,</if> |
| | | <if test="shopAddress != null">shop_address,</if> |
| | | <if test="shopLongitude != null">shop_longitude,</if> |
| | | <if test="shopLatitude != null">shop_latitude,</if> |
| | | <if test="shopDetail != null">shop_detail,</if> |
| | | <if test="marketingFunctionFlag != null">marketing_function_flag,</if> |
| | | <if test="platformCouponFlag != null">platform_coupon_flag,</if> |
| | | <if test="platformBirthdayFlag != null">platform_birthday_flag,</if> |
| | | <if test="shopCustomStatus != null">shop_custom_status,</if> |
| | | <if test="recommendPerson != null">recommend_person,</if> |
| | | <if test="cooperationEndTime != null">cooperation_end_time,</if> |
| | | <if test="cooperationStartTime != null">cooperation_start_time,</if> |
| | | <if test="shopTags != null">shop_tags,</if> |
| | | <if test="signUserId != null">sign_user_id,</if> |
| | | <if test="shopSource != null">shop_source,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="shopStatus != null">#{shopStatus},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="createUserId != null">#{createUserId},</if> |
| | | <if test="updateime != null">#{updateime},</if> |
| | | <if test="updateUserId != null">#{updateUserId},</if> |
| | | <if test="shopName != null">#{shopName},</if> |
| | | <if test="shopNumber != null">#{shopNumber},</if> |
| | | <if test="shopType != null">#{shopType},</if> |
| | | <if test="businessStartTime != null">#{businessStartTime},</if> |
| | | <if test="businessEndTime != null">#{businessEndTime},</if> |
| | | <if test="shopownerName != null">#{shopownerName},</if> |
| | | <if test="shopownerPhone != null">#{shopownerPhone},</if> |
| | | <if test="signTime != null">#{signTime},</if> |
| | | <if test="signProvinceCode != null">#{signProvinceCode},</if> |
| | | <if test="signCityCode != null">#{signCityCode},</if> |
| | | <if test="signAreaCode != null">#{signAreaCode},</if> |
| | | <if test="signAreaName != null">#{signAreaName},</if> |
| | | <if test="shopServicePhone != null">#{shopServicePhone},</if> |
| | | <if test="belongUserId != null">#{belongUserId},</if> |
| | | <if test="belongShopId != null">#{belongShopId},</if> |
| | | <if test="supportingCapacityFlag != null">#{supportingCapacityFlag},</if> |
| | | <if test="operationPersonFlag != null">#{operationPersonFlag},</if> |
| | | <if test="executiveForceFlag != null">#{executiveForceFlag},</if> |
| | | <if test="patternFlag != null">#{patternFlag},</if> |
| | | <if test="connectionFlag != null">#{connectionFlag},</if> |
| | | <if test="economicAbilityFlag != null">#{economicAbilityFlag},</if> |
| | | <if test="relationPartner != null">#{relationPartner},</if> |
| | | <if test="businessHistory != null">#{businessHistory},</if> |
| | | <if test="shopProvinceCode != null">#{shopProvinceCode},</if> |
| | | <if test="shopCityCode != null">#{shopCityCode},</if> |
| | | <if test="shopAreaCode != null">#{shopAreaCode},</if> |
| | | <if test="shopAreaName != null">#{shopAreaName},</if> |
| | | <if test="shopAddress != null">#{shopAddress},</if> |
| | | <if test="shopLongitude != null">#{shopLongitude},</if> |
| | | <if test="shopLatitude != null">#{shopLatitude},</if> |
| | | <if test="shopDetail != null">#{shopDetail},</if> |
| | | <if test="marketingFunctionFlag != null">#{marketingFunctionFlag},</if> |
| | | <if test="platformCouponFlag != null">#{platformCouponFlag},</if> |
| | | <if test="platformBirthdayFlag != null">#{platformBirthdayFlag},</if> |
| | | <if test="shopCustomStatus != null">#{shopCustomStatus},</if> |
| | | <if test="recommendPerson != null">#{recommendPerson},</if> |
| | | <if test="cooperationEndTime != null">#{cooperationEndTime},</if> |
| | | <if test="cooperationStartTime != null">#{cooperationStartTime},</if> |
| | | <if test="shopTags != null">#{shopTags},</if> |
| | | <if test="signUserId != null">#{signUserId},</if> |
| | | <if test="shopSource != null">#{shopSource},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateShop" parameterType="Shop"> |
| | | update t_shop |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="shopStatus != null">shop_status = #{shopStatus},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="createUserId != null">create_user_id = #{createUserId},</if> |
| | | <if test="updateime != null">update_time = #{updateime},</if> |
| | | <if test="updateUserId != null">update_user_id = #{updateUserId},</if> |
| | | <if test="shopName != null">shop_name = #{shopName},</if> |
| | | <if test="shopNumber != null">shop_number = #{shopNumber},</if> |
| | | <if test="shopType != null">shop_type = #{shopType},</if> |
| | | <if test="businessStartTime != null">business_start_time = #{businessStartTime},</if> |
| | | <if test="businessEndTime != null">business_end_time = #{businessEndTime},</if> |
| | | <if test="shopownerName != null">shopowner_name = #{shopownerName},</if> |
| | | <if test="shopownerPhone != null">shopowner_phone = #{shopownerPhone},</if> |
| | | <if test="signTime != null">sign_time = #{signTime},</if> |
| | | <if test="signProvinceCode != null">sign_province_code = #{signProvinceCode},</if> |
| | | <if test="signCityCode != null">sign_city_code = #{signCityCode},</if> |
| | | <if test="signAreaCode != null">sign_area_code = #{signAreaCode},</if> |
| | | <if test="signAreaName != null">sign_area_name = #{signAreaName},</if> |
| | | <if test="shopServicePhone != null">shop_service_phone = #{shopServicePhone},</if> |
| | | <if test="belongUserId != null">belong_user_id = #{belongUserId},</if> |
| | | <if test="belongShopId != null">belong_shop_id = #{belongShopId},</if> |
| | | <if test="supportingCapacityFlag != null">supporting_capacity_flag = #{supportingCapacityFlag},</if> |
| | | <if test="operationPersonFlag != null">operation_person_flag = #{operationPersonFlag},</if> |
| | | <if test="executiveForceFlag != null">executive_force_flag = #{executiveForceFlag},</if> |
| | | <if test="patternFlag != null">pattern_flag = #{patternFlag},</if> |
| | | <if test="connectionFlag != null">connection_flag = #{connectionFlag},</if> |
| | | <if test="economicAbilityFlag != null">economic_ability_flag = #{economicAbilityFlag},</if> |
| | | <if test="relationPartner != null">relation_partner = #{relationPartner},</if> |
| | | <if test="businessHistory != null">business_history = #{businessHistory},</if> |
| | | <if test="shopProvinceCode != null">shop_province_code = #{shopProvinceCode},</if> |
| | | <if test="shopCityCode != null">shop_city_code = #{shopCityCode},</if> |
| | | <if test="shopAreaCode != null">shop_area_code = #{shopAreaCode},</if> |
| | | <if test="shopAreaName != null">shop_area_name = #{shopAreaName},</if> |
| | | <if test="shopAddress != null">shop_address = #{shopAddress},</if> |
| | | <if test="shopLongitude != null">shop_longitude = #{shopLongitude},</if> |
| | | <if test="shopLatitude != null">shop_latitude = #{shopLatitude},</if> |
| | | <if test="shopDetail != null">shop_detail = #{shopDetail},</if> |
| | | <if test="marketingFunctionFlag != null">marketing_function_flag = #{marketingFunctionFlag},</if> |
| | | <if test="platformCouponFlag != null">platform_coupon_flag = #{platformCouponFlag},</if> |
| | | <if test="platformBirthdayFlag != null">platform_birthday_flag = #{platformBirthdayFlag},</if> |
| | | <if test="shopCustomStatus != null">shop_custom_status = #{shopCustomStatus},</if> |
| | | <if test="recommendPerson != null">recommend_person = #{recommendPerson},</if> |
| | | <if test="cooperationEndTime != null">cooperation_end_time = #{cooperationEndTime},</if> |
| | | <if test="cooperationStartTime != null">cooperation_start_time = #{cooperationStartTime},</if> |
| | | <if test="shopTags != null">shop_tags = #{shopTags},</if> |
| | | <if test="signUserId != null">sign_user_id = #{signUserId},</if> |
| | | <if test="shopSource != null">shop_source = #{shopSource},</if> |
| | | </trim> |
| | | where shop_id = #{shopId} |
| | | </update> |
| | | |
| | | <delete id="deleteShopByShopId" parameterType="Long"> |
| | | delete from t_shop where shop_id = #{shopId} |
| | | </delete> |
| | | |
| | | <delete id="deleteShopByShopIds" parameterType="String"> |
| | | delete from t_shop where shop_id in |
| | | <foreach item="shopId" collection="array" open="(" separator="," close=")"> |
| | | #{shopId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="pageShop" resultType="com.ruoyi.system.domain.vo.MgtShopPageVo"> |
| | | SELECT |
| | | ts.shop_id shopId, |
| | | ts.sign_time signTime, |
| | | ts.shop_name shopName, |
| | | ts.shop_number shopNumber, |
| | | ts.shop_tags shopTags, |
| | | sus.nick_name signUser, |
| | | null firstWithdraw, |
| | | sub.nick_name belongUser, |
| | | sd.dept_name belongDept, |
| | | ts.shop_source shopSource, |
| | | ts.sign_area_name signAreaName, |
| | | CONCAT(ts.cooperation_start_time,'-',ts.cooperation_end_time) cooperationTime, |
| | | CONCAT(ts.shop_area_name,ts.shop_address) shopAddress, |
| | | ts.shopowner_name shopownerName, |
| | | ts.shopowner_phone shopownerPhone, |
| | | ts.shop_status shopStatus, |
| | | tsm.shop_marketing_total shopActivityCount, |
| | | ts.shop_custom_status shopCustomStatus |
| | | FROM t_shop ts |
| | | LEFT JOIN sys_user sus ON sus.user_id = ts.sign_user_id |
| | | LEFT JOIN sys_user sub ON sub.user_id = ts.belong_user_id |
| | | LEFT JOIN sys_dept sd ON sub.dept_id = sd.dept_id |
| | | LEFT JOIN t_shop_marketing tsm ON tsm.shop_id = ts.shop_id |
| | | |
| | | </select> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.shop.ShopMarketingMapper"> |
| | | |
| | | <resultMap type="ShopMarketing" id="ShopMarketingResult"> |
| | | <result property="shopId" column="shop_id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="shopBirthdayFlag" column="shop_birthday_flag" /> |
| | | <result property="shopCouponCount" column="shop_coupon_count" /> |
| | | <result property="shopMarketingTotal" column="shop_marketing_total" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectShopMarketingVo"> |
| | | select shop_id, del_flag, shop_birthday_flag, shop_coupon_count, shop_marketing_total from t_shop_marketing |
| | | </sql> |
| | | |
| | | <select id="selectShopMarketingList" parameterType="ShopMarketing" resultMap="ShopMarketingResult"> |
| | | <include refid="selectShopMarketingVo"/> |
| | | <where> |
| | | <if test="shopBirthdayFlag != null "> and shop_birthday_flag = #{shopBirthdayFlag}</if> |
| | | <if test="shopCouponCount != null "> and shop_coupon_count = #{shopCouponCount}</if> |
| | | <if test="shopMarketingTotal != null "> and shop_marketing_total = #{shopMarketingTotal}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectShopMarketingByShopId" parameterType="Long" resultMap="ShopMarketingResult"> |
| | | <include refid="selectShopMarketingVo"/> |
| | | where shop_id = #{shopId} |
| | | </select> |
| | | |
| | | <insert id="insertShopMarketing" parameterType="ShopMarketing" useGeneratedKeys="true" keyProperty="shopId"> |
| | | insert into t_shop_marketing |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="shopBirthdayFlag != null">shop_birthday_flag,</if> |
| | | <if test="shopCouponCount != null">shop_coupon_count,</if> |
| | | <if test="shopMarketingTotal != null">shop_marketing_total,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="shopBirthdayFlag != null">#{shopBirthdayFlag},</if> |
| | | <if test="shopCouponCount != null">#{shopCouponCount},</if> |
| | | <if test="shopMarketingTotal != null">#{shopMarketingTotal},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateShopMarketing" parameterType="ShopMarketing"> |
| | | update t_shop_marketing |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="shopBirthdayFlag != null">shop_birthday_flag = #{shopBirthdayFlag},</if> |
| | | <if test="shopCouponCount != null">shop_coupon_count = #{shopCouponCount},</if> |
| | | <if test="shopMarketingTotal != null">shop_marketing_total = #{shopMarketingTotal},</if> |
| | | </trim> |
| | | where shop_id = #{shopId} |
| | | </update> |
| | | |
| | | <delete id="deleteShopMarketingByShopId" parameterType="Long"> |
| | | delete from t_shop_marketing where shop_id = #{shopId} |
| | | </delete> |
| | | |
| | | <delete id="deleteShopMarketingByShopIds" parameterType="String"> |
| | | delete from t_shop_marketing where shop_id in |
| | | <foreach item="shopId" collection="array" open="(" separator="," close=")"> |
| | | #{shopId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.shop.ShopRelTagMapper"> |
| | | |
| | | <resultMap type="ShopRelTag" id="ShopRelTagResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="shopId" column="shop_id" /> |
| | | <result property="tagId" column="tag_id" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectShopRelTagVo"> |
| | | select id, del_flag, shop_id, tag_id from t_shop_rel_tag |
| | | </sql> |
| | | |
| | | <select id="selectShopRelTagList" parameterType="ShopRelTag" resultMap="ShopRelTagResult"> |
| | | <include refid="selectShopRelTagVo"/> |
| | | <where> |
| | | <if test="shopId != null "> and shop_id = #{shopId}</if> |
| | | <if test="tagId != null "> and tag_id = #{tagId}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectShopRelTagById" parameterType="Long" resultMap="ShopRelTagResult"> |
| | | <include refid="selectShopRelTagVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertShopRelTag" parameterType="ShopRelTag" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_shop_rel_tag |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="shopId != null">shop_id,</if> |
| | | <if test="tagId != null">tag_id,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="shopId != null">#{shopId},</if> |
| | | <if test="tagId != null">#{tagId},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateShopRelTag" parameterType="ShopRelTag"> |
| | | update t_shop_rel_tag |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="shopId != null">shop_id = #{shopId},</if> |
| | | <if test="tagId != null">tag_id = #{tagId},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteShopRelTagById" parameterType="Long"> |
| | | delete from t_shop_rel_tag where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteShopRelTagByIds" parameterType="String"> |
| | | delete from t_shop_rel_tag where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <update id="deleteByShopId"> |
| | | UPDATE shop_rel_tag SET del_flag = 1 WHERE shop_id = #{shopId} |
| | | </update> |
| | | |
| | | <select id="listShopTagVo" resultType="com.ruoyi.system.domain.vo.MgtShopTagVo"> |
| | | SELECT |
| | | srt.tag_id tagId, |
| | | st.tag_name tagName, |
| | | CASE WHEN srt.id IS NULL THEN 0 ELSE 1 END selectFlag |
| | | FROM sys_tag st |
| | | LEFT JOIN shop_rel_tag srt ON srt.tag_id = st.tag_id |
| | | WHERE srt.del_flag = 0 AND shop_id = #{shopId} |
| | | </select> |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.shop.ShopRelUserMapper"> |
| | | |
| | | <resultMap type="ShopRelUser" id="ShopRelUserResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="shopId" column="shop_id" /> |
| | | <result property="userId" column="user_id" /> |
| | | <result property="userMobile" column="user_mobile" /> |
| | | <result property="userDeptId" column="user_dept_id" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectShopRelUserVo"> |
| | | select id, del_flag, shop_id, user_id, user_mobile, user_dept_id from t_shop_rel_user |
| | | </sql> |
| | | |
| | | <select id="selectShopRelUserList" parameterType="ShopRelUser" resultMap="ShopRelUserResult"> |
| | | <include refid="selectShopRelUserVo"/> |
| | | <where> |
| | | <if test="shopId != null "> and shop_id = #{shopId}</if> |
| | | <if test="userId != null "> and user_id = #{userId}</if> |
| | | <if test="userMobile != null and userMobile != ''"> and user_mobile = #{userMobile}</if> |
| | | <if test="userDeptId != null "> and user_dept_id = #{userDeptId}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectShopRelUserById" parameterType="Long" resultMap="ShopRelUserResult"> |
| | | <include refid="selectShopRelUserVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertShopRelUser" parameterType="ShopRelUser" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_shop_rel_user |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="shopId != null">shop_id,</if> |
| | | <if test="userId != null">user_id,</if> |
| | | <if test="userMobile != null">user_mobile,</if> |
| | | <if test="userDeptId != null">user_dept_id,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="shopId != null">#{shopId},</if> |
| | | <if test="userId != null">#{userId},</if> |
| | | <if test="userMobile != null">#{userMobile},</if> |
| | | <if test="userDeptId != null">#{userDeptId},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateShopRelUser" parameterType="ShopRelUser"> |
| | | update t_shop_rel_user |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="shopId != null">shop_id = #{shopId},</if> |
| | | <if test="userId != null">user_id = #{userId},</if> |
| | | <if test="userMobile != null">user_mobile = #{userMobile},</if> |
| | | <if test="userDeptId != null">user_dept_id = #{userDeptId},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteShopRelUserById" parameterType="Long"> |
| | | delete from t_shop_rel_user where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteShopRelUserByIds" parameterType="String"> |
| | | delete from t_shop_rel_user where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <update id="deleteByShopId"> |
| | | UPDATE shop_rel_user SET del_flag = 1 WHERE shop_id = #{shopId} |
| | | </update> |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.shop.ShopTaskMapper"> |
| | | |
| | | <resultMap type="ShopTask" id="ShopTaskResult"> |
| | | <result property="taskId" column="task_id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="shopId" column="shop_id" /> |
| | | <result property="followTypeId" column="follow_type_id" /> |
| | | <result property="followContent" column="follow_content" /> |
| | | <result property="nextFollowDate" column="next_follow_date" /> |
| | | <result property="taskTitle" column="task_title" /> |
| | | <result property="emergencyStateId" column="emergency_state_id" /> |
| | | <result property="createTime" column="create_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectShopTaskVo"> |
| | | select task_id, del_flag, shop_id, follow_type_id, follow_content, next_follow_date, task_title, emergency_state_id, create_time from t_shop_task |
| | | </sql> |
| | | |
| | | <select id="selectShopTaskList" parameterType="ShopTask" resultMap="ShopTaskResult"> |
| | | <include refid="selectShopTaskVo"/> |
| | | <where> |
| | | <if test="shopId != null "> and shop_id = #{shopId}</if> |
| | | <if test="followTypeId != null "> and follow_type_id = #{followTypeId}</if> |
| | | <if test="followContent != null and followContent != ''"> and follow_content = #{followContent}</if> |
| | | <if test="nextFollowDate != null "> and next_follow_date = #{nextFollowDate}</if> |
| | | <if test="taskTitle != null and taskTitle != ''"> and task_title = #{taskTitle}</if> |
| | | <if test="emergencyStateId != null "> and emergency_state_id = #{emergencyStateId}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectShopTaskByTaskId" parameterType="String" resultMap="ShopTaskResult"> |
| | | <include refid="selectShopTaskVo"/> |
| | | where task_id = #{taskId} |
| | | </select> |
| | | |
| | | <insert id="insertShopTask" parameterType="ShopTask"> |
| | | insert into t_shop_task |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="taskId != null">task_id,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="shopId != null">shop_id,</if> |
| | | <if test="followTypeId != null">follow_type_id,</if> |
| | | <if test="followContent != null">follow_content,</if> |
| | | <if test="nextFollowDate != null">next_follow_date,</if> |
| | | <if test="taskTitle != null">task_title,</if> |
| | | <if test="emergencyStateId != null">emergency_state_id,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskId != null">#{taskId},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="shopId != null">#{shopId},</if> |
| | | <if test="followTypeId != null">#{followTypeId},</if> |
| | | <if test="followContent != null">#{followContent},</if> |
| | | <if test="nextFollowDate != null">#{nextFollowDate},</if> |
| | | <if test="taskTitle != null">#{taskTitle},</if> |
| | | <if test="emergencyStateId != null">#{emergencyStateId},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateShopTask" parameterType="ShopTask"> |
| | | update t_shop_task |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="shopId != null">shop_id = #{shopId},</if> |
| | | <if test="followTypeId != null">follow_type_id = #{followTypeId},</if> |
| | | <if test="followContent != null">follow_content = #{followContent},</if> |
| | | <if test="nextFollowDate != null">next_follow_date = #{nextFollowDate},</if> |
| | | <if test="taskTitle != null">task_title = #{taskTitle},</if> |
| | | <if test="emergencyStateId != null">emergency_state_id = #{emergencyStateId},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | </trim> |
| | | where task_id = #{taskId} |
| | | </update> |
| | | |
| | | <delete id="deleteShopTaskByTaskId" parameterType="String"> |
| | | delete from t_shop_task where task_id = #{taskId} |
| | | </delete> |
| | | |
| | | <delete id="deleteShopTaskByTaskIds" parameterType="String"> |
| | | delete from t_shop_task where task_id in |
| | | <foreach item="taskId" collection="array" open="(" separator="," close=")"> |
| | | #{taskId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.shop.ShopTransferRecordMapper"> |
| | | |
| | | <resultMap type="ShopTransferRecord" id="ShopTransferRecordResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="shopId" column="shop_id" /> |
| | | <result property="beforeUserId" column="before_user_id" /> |
| | | <result property="afterUserId" column="after_user_id" /> |
| | | <result property="transferRemark" column="transfer_remark" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectShopTransferRecordVo"> |
| | | select id, del_flag, shop_id, before_user_id, after_user_id, transfer_remark from t_shop_transfer_record |
| | | </sql> |
| | | |
| | | <select id="selectShopTransferRecordList" parameterType="ShopTransferRecord" resultMap="ShopTransferRecordResult"> |
| | | <include refid="selectShopTransferRecordVo"/> |
| | | <where> |
| | | <if test="shopId != null "> and shop_id = #{shopId}</if> |
| | | <if test="beforeUserId != null "> and before_user_id = #{beforeUserId}</if> |
| | | <if test="afterUserId != null "> and after_user_id = #{afterUserId}</if> |
| | | <if test="transferRemark != null and transferRemark != ''"> and transfer_remark = #{transferRemark}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectShopTransferRecordById" parameterType="Long" resultMap="ShopTransferRecordResult"> |
| | | <include refid="selectShopTransferRecordVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertShopTransferRecord" parameterType="ShopTransferRecord" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_shop_transfer_record |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="shopId != null">shop_id,</if> |
| | | <if test="beforeUserId != null">before_user_id,</if> |
| | | <if test="afterUserId != null">after_user_id,</if> |
| | | <if test="transferRemark != null">transfer_remark,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="shopId != null">#{shopId},</if> |
| | | <if test="beforeUserId != null">#{beforeUserId},</if> |
| | | <if test="afterUserId != null">#{afterUserId},</if> |
| | | <if test="transferRemark != null">#{transferRemark},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateShopTransferRecord" parameterType="ShopTransferRecord"> |
| | | update t_shop_transfer_record |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="shopId != null">shop_id = #{shopId},</if> |
| | | <if test="beforeUserId != null">before_user_id = #{beforeUserId},</if> |
| | | <if test="afterUserId != null">after_user_id = #{afterUserId},</if> |
| | | <if test="transferRemark != null">transfer_remark = #{transferRemark},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteShopTransferRecordById" parameterType="Long"> |
| | | delete from t_shop_transfer_record where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteShopTransferRecordByIds" parameterType="String"> |
| | | delete from t_shop_transfer_record where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.shop.TaskFileMapper"> |
| | | |
| | | <resultMap type="TaskFile" id="TaskFileResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="followId" column="follow_id" /> |
| | | <result property="followFrom" column="follow_from" /> |
| | | <result property="fileUrl" column="file_url" /> |
| | | <result property="fileType" column="file_type" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectTaskFileVo"> |
| | | select id, del_flag, follow_id, follow_from, file_url, file_type from t_task_file |
| | | </sql> |
| | | |
| | | <select id="selectTaskFileList" parameterType="TaskFile" resultMap="TaskFileResult"> |
| | | <include refid="selectTaskFileVo"/> |
| | | <where> |
| | | <if test="followId != null "> and follow_id = #{followId}</if> |
| | | <if test="followFrom != null "> and follow_from = #{followFrom}</if> |
| | | <if test="fileUrl != null and fileUrl != ''"> and file_url = #{fileUrl}</if> |
| | | <if test="fileType != null "> and file_type = #{fileType}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectTaskFileById" parameterType="Long" resultMap="TaskFileResult"> |
| | | <include refid="selectTaskFileVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertTaskFile" parameterType="TaskFile" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_task_file |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="followId != null">follow_id,</if> |
| | | <if test="followFrom != null">follow_from,</if> |
| | | <if test="fileUrl != null">file_url,</if> |
| | | <if test="fileType != null">file_type,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="followId != null">#{followId},</if> |
| | | <if test="followFrom != null">#{followFrom},</if> |
| | | <if test="fileUrl != null">#{fileUrl},</if> |
| | | <if test="fileType != null">#{fileType},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateTaskFile" parameterType="TaskFile"> |
| | | update t_task_file |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="followId != null">follow_id = #{followId},</if> |
| | | <if test="followFrom != null">follow_from = #{followFrom},</if> |
| | | <if test="fileUrl != null">file_url = #{fileUrl},</if> |
| | | <if test="fileType != null">file_type = #{fileType},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteTaskFileById" parameterType="Long"> |
| | | delete from t_task_file where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteTaskFileByIds" parameterType="String"> |
| | | delete from t_task_file where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.sys.SysConfigMapper"> |
| | | |
| | | <resultMap type="SysConfig" id="SysConfigResult"> |
| | | <id property="configId" column="config_id" /> |
| | | <result property="configName" column="config_name" /> |
| | | <result property="configKey" column="config_key" /> |
| | | <result property="configValue" column="config_value" /> |
| | | <result property="configType" column="config_type" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateime" column="update_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectConfigVo"> |
| | | select config_id, config_name, config_key, config_value, config_type, create_by, create_time, update_by, update_time, remark |
| | | from sys_config |
| | | </sql> |
| | | |
| | | <!-- 查询条件 --> |
| | | <sql id="sqlwhereSearch"> |
| | | <where> |
| | | <if test="configId !=null"> |
| | | and config_id = #{configId} |
| | | </if> |
| | | <if test="configKey !=null and configKey != ''"> |
| | | and config_key = #{configKey} |
| | | </if> |
| | | </where> |
| | | </sql> |
| | | |
| | | <select id="selectConfig" parameterType="SysConfig" resultMap="SysConfigResult"> |
| | | <include refid="selectConfigVo"/> |
| | | <include refid="sqlwhereSearch"/> |
| | | </select> |
| | | |
| | | <select id="selectConfigList" parameterType="SysConfig" resultMap="SysConfigResult"> |
| | | <include refid="selectConfigVo"/> |
| | | <where> |
| | | <if test="configName != null and configName != ''"> |
| | | AND config_name like concat('%', #{configName}, '%') |
| | | </if> |
| | | <if test="configType != null and configType != ''"> |
| | | AND config_type = #{configType} |
| | | </if> |
| | | <if test="configKey != null and configKey != ''"> |
| | | AND config_key like concat('%', #{configKey}, '%') |
| | | </if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 --> |
| | | and date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d') |
| | | </if> |
| | | <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> |
| | | and date_format(create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectConfigById" parameterType="Long" resultMap="SysConfigResult"> |
| | | <include refid="selectConfigVo"/> |
| | | where config_id = #{configId} |
| | | </select> |
| | | |
| | | <select id="checkConfigKeyUnique" parameterType="String" resultMap="SysConfigResult"> |
| | | <include refid="selectConfigVo"/> |
| | | where config_key = #{configKey} limit 1 |
| | | </select> |
| | | |
| | | <insert id="insertConfig" parameterType="SysConfig"> |
| | | insert into sys_config ( |
| | | <if test="configName != null and configName != '' ">config_name,</if> |
| | | <if test="configKey != null and configKey != '' ">config_key,</if> |
| | | <if test="configValue != null and configValue != '' ">config_value,</if> |
| | | <if test="configType != null and configType != '' ">config_type,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | create_time |
| | | )values( |
| | | <if test="configName != null and configName != ''">#{configName},</if> |
| | | <if test="configKey != null and configKey != ''">#{configKey},</if> |
| | | <if test="configValue != null and configValue != ''">#{configValue},</if> |
| | | <if test="configType != null and configType != ''">#{configType},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | <update id="updateConfig" parameterType="SysConfig"> |
| | | update sys_config |
| | | <set> |
| | | <if test="configName != null and configName != ''">config_name = #{configName},</if> |
| | | <if test="configKey != null and configKey != ''">config_key = #{configKey},</if> |
| | | <if test="configValue != null and configValue != ''">config_value = #{configValue},</if> |
| | | <if test="configType != null and configType != ''">config_type = #{configType},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where config_id = #{configId} |
| | | </update> |
| | | |
| | | <delete id="deleteConfigById" parameterType="Long"> |
| | | delete from sys_config where config_id = #{configId} |
| | | </delete> |
| | | |
| | | <delete id="deleteConfigByIds" parameterType="Long"> |
| | | delete from sys_config where config_id in |
| | | <foreach item="configId" collection="array" open="(" separator="," close=")"> |
| | | #{configId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.sys.SysDeptMapper"> |
| | | |
| | | <resultMap type="SysDept" id="SysDeptResult"> |
| | | <id property="deptId" column="dept_id" /> |
| | | <result property="parentId" column="parent_id" /> |
| | | <result property="ancestors" column="ancestors" /> |
| | | <result property="deptName" column="dept_name" /> |
| | | <result property="orderNum" column="order_num" /> |
| | | <result property="leader" column="leader" /> |
| | | <result property="phone" column="phone" /> |
| | | <result property="email" column="email" /> |
| | | <result property="status" column="status" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="parentName" column="parent_name" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateime" column="update_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectDeptVo"> |
| | | select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time |
| | | from sys_dept d |
| | | </sql> |
| | | |
| | | <select id="selectDeptList" parameterType="SysDept" resultMap="SysDeptResult"> |
| | | <include refid="selectDeptVo"/> |
| | | where d.del_flag = '0' |
| | | <if test="deptId != null and deptId != 0"> |
| | | AND dept_id = #{deptId} |
| | | </if> |
| | | <if test="parentId != null and parentId != 0"> |
| | | AND parent_id = #{parentId} |
| | | </if> |
| | | <if test="deptName != null and deptName != ''"> |
| | | AND dept_name like concat('%', #{deptName}, '%') |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND status = #{status} |
| | | </if> |
| | | <!-- 数据范围过滤 --> |
| | | ${params.dataScope} |
| | | order by d.parent_id, d.order_num |
| | | </select> |
| | | |
| | | <select id="selectDeptListByRoleId" resultType="Long"> |
| | | select d.dept_id |
| | | from sys_dept d |
| | | left join sys_role_dept rd on d.dept_id = rd.dept_id |
| | | where rd.role_id = #{roleId} |
| | | <if test="deptCheckStrictly"> |
| | | and d.dept_id not in (select d.parent_id from sys_dept d inner join sys_role_dept rd on d.dept_id = rd.dept_id and rd.role_id = #{roleId}) |
| | | </if> |
| | | order by d.parent_id, d.order_num |
| | | </select> |
| | | |
| | | <select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult"> |
| | | <include refid="selectDeptVo"/> |
| | | where dept_id = #{deptId} |
| | | </select> |
| | | |
| | | <select id="checkDeptExistUser" parameterType="Long" resultType="int"> |
| | | select count(1) from sys_user where dept_id = #{deptId} and del_flag = '0' |
| | | </select> |
| | | |
| | | <select id="hasChildByDeptId" parameterType="Long" resultType="int"> |
| | | select count(1) from sys_dept |
| | | where del_flag = '0' and parent_id = #{deptId} limit 1 |
| | | </select> |
| | | |
| | | <select id="selectChildrenDeptById" parameterType="Long" resultMap="SysDeptResult"> |
| | | select * from sys_dept where find_in_set(#{deptId}, ancestors) |
| | | </select> |
| | | |
| | | <select id="selectNormalChildrenDeptById" parameterType="Long" resultType="int"> |
| | | select count(*) from sys_dept where status = 0 and del_flag = '0' and find_in_set(#{deptId}, ancestors) |
| | | </select> |
| | | |
| | | <select id="checkDeptNameUnique" resultMap="SysDeptResult"> |
| | | <include refid="selectDeptVo"/> |
| | | where dept_name=#{deptName} and parent_id = #{parentId} and del_flag = '0' limit 1 |
| | | </select> |
| | | |
| | | <insert id="insertDept" parameterType="SysDept"> |
| | | insert into sys_dept( |
| | | <if test="deptId != null and deptId != 0">dept_id,</if> |
| | | <if test="parentId != null and parentId != 0">parent_id,</if> |
| | | <if test="deptName != null and deptName != ''">dept_name,</if> |
| | | <if test="ancestors != null and ancestors != ''">ancestors,</if> |
| | | <if test="orderNum != null">order_num,</if> |
| | | <if test="leader != null and leader != ''">leader,</if> |
| | | <if test="phone != null and phone != ''">phone,</if> |
| | | <if test="email != null and email != ''">email,</if> |
| | | <if test="status != null">status,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | create_time |
| | | )values( |
| | | <if test="deptId != null and deptId != 0">#{deptId},</if> |
| | | <if test="parentId != null and parentId != 0">#{parentId},</if> |
| | | <if test="deptName != null and deptName != ''">#{deptName},</if> |
| | | <if test="ancestors != null and ancestors != ''">#{ancestors},</if> |
| | | <if test="orderNum != null">#{orderNum},</if> |
| | | <if test="leader != null and leader != ''">#{leader},</if> |
| | | <if test="phone != null and phone != ''">#{phone},</if> |
| | | <if test="email != null and email != ''">#{email},</if> |
| | | <if test="status != null">#{status},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | <update id="updateDept" parameterType="SysDept"> |
| | | update sys_dept |
| | | <set> |
| | | <if test="parentId != null and parentId != 0">parent_id = #{parentId},</if> |
| | | <if test="deptName != null and deptName != ''">dept_name = #{deptName},</if> |
| | | <if test="ancestors != null and ancestors != ''">ancestors = #{ancestors},</if> |
| | | <if test="orderNum != null">order_num = #{orderNum},</if> |
| | | <if test="leader != null">leader = #{leader},</if> |
| | | <if test="phone != null">phone = #{phone},</if> |
| | | <if test="email != null">email = #{email},</if> |
| | | <if test="status != null and status != ''">status = #{status},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where dept_id = #{deptId} |
| | | </update> |
| | | |
| | | <update id="updateDeptChildren" parameterType="java.util.List"> |
| | | update sys_dept set ancestors = |
| | | <foreach collection="depts" item="item" index="index" |
| | | separator=" " open="case dept_id" close="end"> |
| | | when #{item.deptId} then #{item.ancestors} |
| | | </foreach> |
| | | where dept_id in |
| | | <foreach collection="depts" item="item" index="index" |
| | | separator="," open="(" close=")"> |
| | | #{item.deptId} |
| | | </foreach> |
| | | </update> |
| | | |
| | | <update id="updateDeptStatusNormal" parameterType="Long"> |
| | | update sys_dept set status = '0' where dept_id in |
| | | <foreach collection="array" item="deptId" open="(" separator="," close=")"> |
| | | #{deptId} |
| | | </foreach> |
| | | </update> |
| | | |
| | | <delete id="deleteDeptById" parameterType="Long"> |
| | | update sys_dept set del_flag = '2' where dept_id = #{deptId} |
| | | </delete> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.sys.SysDictDataMapper"> |
| | | |
| | | <resultMap type="SysDictData" id="SysDictDataResult"> |
| | | <id property="dictCode" column="dict_code" /> |
| | | <result property="dictSort" column="dict_sort" /> |
| | | <result property="dictLabel" column="dict_label" /> |
| | | <result property="dictValue" column="dict_value" /> |
| | | <result property="dictType" column="dict_type" /> |
| | | <result property="cssClass" column="css_class" /> |
| | | <result property="listClass" column="list_class" /> |
| | | <result property="isDefault" column="is_default" /> |
| | | <result property="status" column="status" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateime" column="update_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectDictDataVo"> |
| | | select dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, remark |
| | | from sys_dict_data |
| | | </sql> |
| | | |
| | | <select id="selectDictDataList" parameterType="SysDictData" resultMap="SysDictDataResult"> |
| | | <include refid="selectDictDataVo"/> |
| | | <where> |
| | | <if test="dictType != null and dictType != ''"> |
| | | AND dict_type = #{dictType} |
| | | </if> |
| | | <if test="dictLabel != null and dictLabel != ''"> |
| | | AND dict_label like concat('%', #{dictLabel}, '%') |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND status = #{status} |
| | | </if> |
| | | </where> |
| | | order by dict_sort asc |
| | | </select> |
| | | |
| | | <select id="selectDictDataByType" parameterType="SysDictData" resultMap="SysDictDataResult"> |
| | | <include refid="selectDictDataVo"/> |
| | | where status = '0' and dict_type = #{dictType} order by dict_sort asc |
| | | </select> |
| | | |
| | | <select id="selectDictLabel" resultType="String"> |
| | | select dict_label from sys_dict_data |
| | | where dict_type = #{dictType} and dict_value = #{dictValue} |
| | | </select> |
| | | |
| | | <select id="selectDictDataById" parameterType="Long" resultMap="SysDictDataResult"> |
| | | <include refid="selectDictDataVo"/> |
| | | where dict_code = #{dictCode} |
| | | </select> |
| | | |
| | | <select id="countDictDataByType" resultType="Integer"> |
| | | select count(1) from sys_dict_data where dict_type=#{dictType} |
| | | </select> |
| | | |
| | | <delete id="deleteDictDataById" parameterType="Long"> |
| | | delete from sys_dict_data where dict_code = #{dictCode} |
| | | </delete> |
| | | |
| | | <delete id="deleteDictDataByIds" parameterType="Long"> |
| | | delete from sys_dict_data where dict_code in |
| | | <foreach collection="array" item="dictCode" open="(" separator="," close=")"> |
| | | #{dictCode} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <update id="updateDictData" parameterType="SysDictData"> |
| | | update sys_dict_data |
| | | <set> |
| | | <if test="dictSort != null">dict_sort = #{dictSort},</if> |
| | | <if test="dictLabel != null and dictLabel != ''">dict_label = #{dictLabel},</if> |
| | | <if test="dictValue != null and dictValue != ''">dict_value = #{dictValue},</if> |
| | | <if test="dictType != null and dictType != ''">dict_type = #{dictType},</if> |
| | | <if test="cssClass != null">css_class = #{cssClass},</if> |
| | | <if test="listClass != null">list_class = #{listClass},</if> |
| | | <if test="isDefault != null and isDefault != ''">is_default = #{isDefault},</if> |
| | | <if test="status != null">status = #{status},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where dict_code = #{dictCode} |
| | | </update> |
| | | |
| | | <update id="updateDictDataType" parameterType="String"> |
| | | update sys_dict_data set dict_type = #{newDictType} where dict_type = #{oldDictType} |
| | | </update> |
| | | |
| | | <insert id="insertDictData" parameterType="SysDictData"> |
| | | insert into sys_dict_data( |
| | | <if test="dictSort != null">dict_sort,</if> |
| | | <if test="dictLabel != null and dictLabel != ''">dict_label,</if> |
| | | <if test="dictValue != null and dictValue != ''">dict_value,</if> |
| | | <if test="dictType != null and dictType != ''">dict_type,</if> |
| | | <if test="cssClass != null and cssClass != ''">css_class,</if> |
| | | <if test="listClass != null and listClass != ''">list_class,</if> |
| | | <if test="isDefault != null and isDefault != ''">is_default,</if> |
| | | <if test="status != null">status,</if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | create_time |
| | | )values( |
| | | <if test="dictSort != null">#{dictSort},</if> |
| | | <if test="dictLabel != null and dictLabel != ''">#{dictLabel},</if> |
| | | <if test="dictValue != null and dictValue != ''">#{dictValue},</if> |
| | | <if test="dictType != null and dictType != ''">#{dictType},</if> |
| | | <if test="cssClass != null and cssClass != ''">#{cssClass},</if> |
| | | <if test="listClass != null and listClass != ''">#{listClass},</if> |
| | | <if test="isDefault != null and isDefault != ''">#{isDefault},</if> |
| | | <if test="status != null">#{status},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.sys.SysDictTypeMapper"> |
| | | |
| | | <resultMap type="SysDictType" id="SysDictTypeResult"> |
| | | <id property="dictId" column="dict_id" /> |
| | | <result property="dictName" column="dict_name" /> |
| | | <result property="dictType" column="dict_type" /> |
| | | <result property="status" column="status" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateime" column="update_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectDictTypeVo"> |
| | | select dict_id, dict_name, dict_type, status, create_by, create_time, remark |
| | | from sys_dict_type |
| | | </sql> |
| | | |
| | | <select id="selectDictTypeList" parameterType="SysDictType" resultMap="SysDictTypeResult"> |
| | | <include refid="selectDictTypeVo"/> |
| | | <where> |
| | | <if test="dictName != null and dictName != ''"> |
| | | AND dict_name like concat('%', #{dictName}, '%') |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND status = #{status} |
| | | </if> |
| | | <if test="dictType != null and dictType != ''"> |
| | | AND dict_type like concat('%', #{dictType}, '%') |
| | | </if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 --> |
| | | and date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d') |
| | | </if> |
| | | <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> |
| | | and date_format(create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectDictTypeAll" resultMap="SysDictTypeResult"> |
| | | <include refid="selectDictTypeVo"/> |
| | | </select> |
| | | |
| | | <select id="selectDictTypeById" parameterType="Long" resultMap="SysDictTypeResult"> |
| | | <include refid="selectDictTypeVo"/> |
| | | where dict_id = #{dictId} |
| | | </select> |
| | | |
| | | <select id="selectDictTypeByType" parameterType="String" resultMap="SysDictTypeResult"> |
| | | <include refid="selectDictTypeVo"/> |
| | | where dict_type = #{dictType} |
| | | </select> |
| | | |
| | | <select id="checkDictTypeUnique" parameterType="String" resultMap="SysDictTypeResult"> |
| | | <include refid="selectDictTypeVo"/> |
| | | where dict_type = #{dictType} limit 1 |
| | | </select> |
| | | |
| | | <delete id="deleteDictTypeById" parameterType="Long"> |
| | | delete from sys_dict_type where dict_id = #{dictId} |
| | | </delete> |
| | | |
| | | <delete id="deleteDictTypeByIds" parameterType="Long"> |
| | | delete from sys_dict_type where dict_id in |
| | | <foreach collection="array" item="dictId" open="(" separator="," close=")"> |
| | | #{dictId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <update id="updateDictType" parameterType="SysDictType"> |
| | | update sys_dict_type |
| | | <set> |
| | | <if test="dictName != null and dictName != ''">dict_name = #{dictName},</if> |
| | | <if test="dictType != null and dictType != ''">dict_type = #{dictType},</if> |
| | | <if test="status != null">status = #{status},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where dict_id = #{dictId} |
| | | </update> |
| | | |
| | | <insert id="insertDictType" parameterType="SysDictType"> |
| | | insert into sys_dict_type( |
| | | <if test="dictName != null and dictName != ''">dict_name,</if> |
| | | <if test="dictType != null and dictType != ''">dict_type,</if> |
| | | <if test="status != null">status,</if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | create_time |
| | | )values( |
| | | <if test="dictName != null and dictName != ''">#{dictName},</if> |
| | | <if test="dictType != null and dictType != ''">#{dictType},</if> |
| | | <if test="status != null">#{status},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.sys.SysLogininforMapper"> |
| | | |
| | | <resultMap type="SysLogininfor" id="SysLogininforResult"> |
| | | <id property="infoId" column="info_id" /> |
| | | <result property="userName" column="user_name" /> |
| | | <result property="status" column="status" /> |
| | | <result property="ipaddr" column="ipaddr" /> |
| | | <result property="msg" column="msg" /> |
| | | <result property="accessTime" column="access_time" /> |
| | | </resultMap> |
| | | |
| | | <insert id="insertLogininfor" parameterType="SysLogininfor"> |
| | | insert into sys_logininfor (user_name, status, ipaddr, msg, access_time) |
| | | values (#{userName}, #{status}, #{ipaddr}, #{msg}, sysdate()) |
| | | </insert> |
| | | |
| | | <select id="selectLogininforList" parameterType="SysLogininfor" resultMap="SysLogininforResult"> |
| | | select info_id, user_name, ipaddr, status, msg, access_time from sys_logininfor |
| | | <where> |
| | | <if test="ipaddr != null and ipaddr != ''"> |
| | | AND ipaddr like concat('%', #{ipaddr}, '%') |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND status = #{status} |
| | | </if> |
| | | <if test="userName != null and userName != ''"> |
| | | AND user_name like concat('%', #{userName}, '%') |
| | | </if> |
| | | <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 --> |
| | | AND access_time >= #{params.beginTime} |
| | | </if> |
| | | <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> |
| | | AND access_time <= #{params.endTime} |
| | | </if> |
| | | </where> |
| | | order by info_id desc |
| | | </select> |
| | | |
| | | <delete id="deleteLogininforByIds" parameterType="Long"> |
| | | delete from sys_logininfor where info_id in |
| | | <foreach collection="array" item="infoId" open="(" separator="," close=")"> |
| | | #{infoId} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <update id="cleanLogininfor"> |
| | | truncate table sys_logininfor |
| | | </update> |
| | | |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.sys.SysMenuMapper"> |
| | | |
| | | <resultMap type="SysMenu" id="SysMenuResult"> |
| | | <id property="menuId" column="menu_id" /> |
| | | <result property="menuName" column="menu_name" /> |
| | | <result property="parentName" column="parent_name" /> |
| | | <result property="parentId" column="parent_id" /> |
| | | <result property="orderNum" column="order_num" /> |
| | | <result property="path" column="path" /> |
| | | <result property="component" column="component" /> |
| | | <result property="query" column="query" /> |
| | | <result property="isFrame" column="is_frame" /> |
| | | <result property="isCache" column="is_cache" /> |
| | | <result property="menuType" column="menu_type" /> |
| | | <result property="visible" column="visible" /> |
| | | <result property="status" column="status" /> |
| | | <result property="perms" column="perms" /> |
| | | <result property="icon" column="icon" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateime" column="update_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="remark" column="remark" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectMenuVo"> |
| | | select menu_id, menu_name, parent_id, order_num, path, component, `query`, is_frame, is_cache, menu_type, visible, status, ifnull(perms,'') as perms, icon, create_time |
| | | from sys_menu |
| | | </sql> |
| | | |
| | | <select id="selectMenuList" parameterType="SysMenu" resultMap="SysMenuResult"> |
| | | <include refid="selectMenuVo"/> |
| | | <where> |
| | | <if test="menuName != null and menuName != ''"> |
| | | AND menu_name like concat('%', #{menuName}, '%') |
| | | </if> |
| | | <if test="visible != null and visible != ''"> |
| | | AND visible = #{visible} |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND status = #{status} |
| | | </if> |
| | | </where> |
| | | order by parent_id, order_num |
| | | </select> |
| | | |
| | | <select id="selectMenuTreeAll" resultMap="SysMenuResult"> |
| | | select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time |
| | | from sys_menu m where m.menu_type in ('M', 'C') and m.status = 0 |
| | | order by m.parent_id, m.order_num |
| | | </select> |
| | | |
| | | <select id="selectMenuListByUserId" parameterType="SysMenu" resultMap="SysMenuResult"> |
| | | select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time |
| | | from sys_menu m |
| | | left join sys_role_menu rm on m.menu_id = rm.menu_id |
| | | left join sys_user_role ur on rm.role_id = ur.role_id |
| | | left join sys_role ro on ur.role_id = ro.role_id |
| | | where ur.user_id = #{params.userId} |
| | | <if test="menuName != null and menuName != ''"> |
| | | AND m.menu_name like concat('%', #{menuName}, '%') |
| | | </if> |
| | | <if test="visible != null and visible != ''"> |
| | | AND m.visible = #{visible} |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND m.status = #{status} |
| | | </if> |
| | | order by m.parent_id, m.order_num |
| | | </select> |
| | | |
| | | <select id="selectMenuTreeByUserId" parameterType="Long" resultMap="SysMenuResult"> |
| | | select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time |
| | | from sys_menu m |
| | | left join sys_role_menu rm on m.menu_id = rm.menu_id |
| | | left join sys_user_role ur on rm.role_id = ur.role_id |
| | | left join sys_role ro on ur.role_id = ro.role_id |
| | | left join sys_user u on ur.user_id = u.user_id |
| | | where u.user_id = #{userId} and m.menu_type in ('M', 'C') and m.status = 0 AND ro.status = 0 |
| | | order by m.parent_id, m.order_num |
| | | </select> |
| | | |
| | | <select id="selectMenuListByRoleId" resultType="Long"> |
| | | select m.menu_id |
| | | from sys_menu m |
| | | left join sys_role_menu rm on m.menu_id = rm.menu_id |
| | | where rm.role_id = #{roleId} |
| | | <if test="menuCheckStrictly"> |
| | | and m.menu_id not in (select m.parent_id from sys_menu m inner join sys_role_menu rm on m.menu_id = rm.menu_id and rm.role_id = #{roleId}) |
| | | </if> |
| | | order by m.parent_id, m.order_num |
| | | </select> |
| | | |
| | | <select id="selectMenuPerms" resultType="String"> |
| | | select distinct m.perms |
| | | from sys_menu m |
| | | left join sys_role_menu rm on m.menu_id = rm.menu_id |
| | | left join sys_user_role ur on rm.role_id = ur.role_id |
| | | </select> |
| | | |
| | | <select id="selectMenuPermsByUserId" parameterType="Long" resultType="String"> |
| | | select distinct m.perms |
| | | from sys_menu m |
| | | left join sys_role_menu rm on m.menu_id = rm.menu_id |
| | | left join sys_user_role ur on rm.role_id = ur.role_id |
| | | left join sys_role r on r.role_id = ur.role_id |
| | | where m.status = '0' and r.status = '0' and ur.user_id = #{userId} |
| | | </select> |
| | | |
| | | <select id="selectMenuPermsByRoleId" parameterType="Long" resultType="String"> |
| | | select distinct m.perms |
| | | from sys_menu m |
| | | left join sys_role_menu rm on m.menu_id = rm.menu_id |
| | | where m.status = '0' and rm.role_id = #{roleId} |
| | | </select> |
| | | |
| | | <select id="selectMenuById" parameterType="Long" resultMap="SysMenuResult"> |
| | | <include refid="selectMenuVo"/> |
| | | where menu_id = #{menuId} |
| | | </select> |
| | | |
| | | <select id="hasChildByMenuId" resultType="Integer"> |
| | | select count(1) from sys_menu where parent_id = #{menuId} |
| | | </select> |
| | | |
| | | <select id="checkMenuNameUnique" parameterType="SysMenu" resultMap="SysMenuResult"> |
| | | <include refid="selectMenuVo"/> |
| | | where menu_name=#{menuName} and parent_id = #{parentId} limit 1 |
| | | </select> |
| | | |
| | | <update id="updateMenu" parameterType="SysMenu"> |
| | | update sys_menu |
| | | <set> |
| | | <if test="menuName != null and menuName != ''">menu_name = #{menuName},</if> |
| | | <if test="parentId != null">parent_id = #{parentId},</if> |
| | | <if test="orderNum != null">order_num = #{orderNum},</if> |
| | | <if test="path != null and path != ''">path = #{path},</if> |
| | | <if test="component != null">component = #{component},</if> |
| | | <if test="query != null">`query` = #{query},</if> |
| | | <if test="isFrame != null and isFrame != ''">is_frame = #{isFrame},</if> |
| | | <if test="isCache != null and isCache != ''">is_cache = #{isCache},</if> |
| | | <if test="menuType != null and menuType != ''">menu_type = #{menuType},</if> |
| | | <if test="visible != null">visible = #{visible},</if> |
| | | <if test="status != null">status = #{status},</if> |
| | | <if test="perms !=null">perms = #{perms},</if> |
| | | <if test="icon !=null and icon != ''">icon = #{icon},</if> |
| | | <if test="remark != null and remark != ''">remark = #{remark},</if> |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where menu_id = #{menuId} |
| | | </update> |
| | | |
| | | <insert id="insertMenu" parameterType="SysMenu"> |
| | | insert into sys_menu( |
| | | <if test="menuId != null and menuId != 0">menu_id,</if> |
| | | <if test="parentId != null and parentId != 0">parent_id,</if> |
| | | <if test="menuName != null and menuName != ''">menu_name,</if> |
| | | <if test="orderNum != null">order_num,</if> |
| | | <if test="path != null and path != ''">path,</if> |
| | | <if test="component != null and component != ''">component,</if> |
| | | <if test="query != null and query != ''">`query`,</if> |
| | | <if test="isFrame != null and isFrame != ''">is_frame,</if> |
| | | <if test="isCache != null and isCache != ''">is_cache,</if> |
| | | <if test="menuType != null and menuType != ''">menu_type,</if> |
| | | <if test="visible != null">visible,</if> |
| | | <if test="status != null">status,</if> |
| | | <if test="perms !=null and perms != ''">perms,</if> |
| | | <if test="icon != null and icon != ''">icon,</if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | create_time |
| | | )values( |
| | | <if test="menuId != null and menuId != 0">#{menuId},</if> |
| | | <if test="parentId != null and parentId != 0">#{parentId},</if> |
| | | <if test="menuName != null and menuName != ''">#{menuName},</if> |
| | | <if test="orderNum != null">#{orderNum},</if> |
| | | <if test="path != null and path != ''">#{path},</if> |
| | | <if test="component != null and component != ''">#{component},</if> |
| | | <if test="query != null and query != ''">#{query},</if> |
| | | <if test="isFrame != null and isFrame != ''">#{isFrame},</if> |
| | | <if test="isCache != null and isCache != ''">#{isCache},</if> |
| | | <if test="menuType != null and menuType != ''">#{menuType},</if> |
| | | <if test="visible != null">#{visible},</if> |
| | | <if test="status != null">#{status},</if> |
| | | <if test="perms !=null and perms != ''">#{perms},</if> |
| | | <if test="icon != null and icon != ''">#{icon},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | | |
| | | <delete id="deleteMenuById" parameterType="Long"> |
| | | delete from sys_menu where menu_id = #{menuId} |
| | | </delete> |
| | | |
| | | </mapper> |
ruoyi-modules/ruoyi-member/src/main/resources/mapper/system/sys/SysNoticeMapper.xml
ruoyi-modules/ruoyi-member/src/main/resources/mapper/system/sys/SysOperLogMapper.xml
ruoyi-modules/ruoyi-member/src/main/resources/mapper/system/sys/SysPostMapper.xml
ruoyi-modules/ruoyi-member/src/main/resources/mapper/system/sys/SysRoleDeptMapper.xml
ruoyi-modules/ruoyi-member/src/main/resources/mapper/system/sys/SysRoleMapper.xml
ruoyi-modules/ruoyi-member/src/main/resources/mapper/system/sys/SysRoleMenuMapper.xml
ruoyi-modules/ruoyi-member/src/main/resources/mapper/system/sys/SysUserMapper.xml
ruoyi-modules/ruoyi-member/src/main/resources/mapper/system/sys/SysUserPostMapper.xml
ruoyi-modules/ruoyi-member/src/main/resources/mapper/system/sys/SysUserRoleMapper.xml
ruoyi-modules/ruoyi-order/pom.xml
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/RuoYiSystemApplication.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/config/AppConfig.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/constant/AppErrorConstant.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/constant/CodeEnum.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/constant/HttpStatus.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/constant/SecurityConstant.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/dto/AppAgreementDto.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/dto/AppBaseBathDto.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/dto/AppBaseDto.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/dto/AppBaseGetDto.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/dto/AppGoodsInfoGetDto.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/dto/AppNearbyShopDto.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/dto/AppPageDto.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/dto/AppSearchGoodsPageDto.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/dto/AppShopGoodsPageDto.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/dto/AppShoppingCartAddDto.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/dto/AppShoppingCartChangeDto.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/dto/AppUserAuthorizeDto.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/dto/MgtBaseDto.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/dto/MgtBaseGetDto.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/dto/MgtChangeCoopDto.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/dto/MgtEditShopDto.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/dto/MgtEditShopTagDto.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/dto/MgtPageDto.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/dto/MgtShopPageDto.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/activity/ActivityGoods.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/config/Advert.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/config/Agreement.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/config/Banner.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/config/CustomeConfig.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/config/Pop.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/config/QuickEntry.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/config/SysClassification.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/config/SysTag.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/coupon/Coupon.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/coupon/CouponRelGoods.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/coupon/CouponRelUser.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/coupon/CouponTotal.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/goods/Goods.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/goods/GoodsFile.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/goods/GoodsRelNurse.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/goods/GoodsRelTag.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/goods/GoodsTotal.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/member/Member.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/member/MemberArchive.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/member/MemberArchiveFields.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/member/MemberNurse.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/member/UserCoupon.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/order/ConsumerGoods.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/order/Order.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/order/OrderGoods.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/order/ShoppingCart.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/order/UserServiceRecord.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/shop/MemberTask.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/shop/MemberTaskRecord.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/shop/Shop.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/shop/ShopCertificate.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/shop/ShopFile.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/shop/ShopGoods.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/shop/ShopMarketing.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/shop/ShopRelTag.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/shop/ShopRelUser.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/shop/ShopTask.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/shop/ShopTransferRecord.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/shop/TaskFile.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/sys/SysConfig.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/sys/SysMenu.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/sys/SysNotice.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/sys/SysPost.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/sys/SysRoleDept.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/sys/SysRoleMenu.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/sys/SysUserOnline.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/sys/SysUserPost.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/pojo/sys/SysUserRole.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/vo/AppAdvertVo.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/vo/AppAgreementVo.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/vo/AppBannerVo.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/vo/AppGoodsInfoVo.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/vo/AppNearbyShopVo.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/vo/AppQuickEntryVo.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/vo/AppShopInfoVo.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/vo/AppSimpleActivityGoodsVo.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/vo/AppSimpleGoodsVo.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/vo/AppUserAuthorizeVo.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/vo/MerHomeShopTotalVo.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/vo/MerShopInfoVo.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/vo/MetaVo.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/vo/MgtShopInfoVo.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/vo/MgtShopPageVo.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/vo/MgtShopTagVo.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/vo/RouterVo.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/domain/vo/TreeSelect.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/activity/ActivityGoodsMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/config/AdvertMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/config/AgreementMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/config/BannerMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/config/CustomeConfigMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/config/PopMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/config/QuickEntryMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/config/SysClassificationMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/config/SysTagMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/coupon/CouponMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/coupon/CouponRelGoodsMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/coupon/CouponRelUserMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/coupon/CouponTotalMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/goods/GoodsFileMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/goods/GoodsMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/goods/GoodsRelNurseMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/goods/GoodsRelTagMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/goods/GoodsTotalMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/member/MemberArchiveFieldsMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/member/MemberArchiveMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/member/MemberMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/member/MemberNurseMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/member/UserCouponMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/order/ConsumerGoodsMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/order/OrderGoodsMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/order/OrderMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/order/ShoppingCartMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/order/UserServiceRecordMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/shop/MemberTaskMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/shop/MemberTaskRecordMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/shop/ShopCertificateMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/shop/ShopFileMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/shop/ShopGoodsMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/shop/ShopMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/shop/ShopMarketingMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/shop/ShopRelTagMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/shop/ShopRelUserMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/shop/ShopTaskMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/shop/ShopTransferRecordMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/shop/TaskFileMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/sys/SysConfigMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/sys/SysDeptMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/sys/SysDictDataMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/sys/SysDictTypeMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/sys/SysLogininforMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/sys/SysMenuMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/sys/SysNoticeMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/sys/SysOperLogMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/sys/SysPostMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/sys/SysRoleDeptMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/sys/SysRoleMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/sys/SysRoleMenuMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/sys/SysUserMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/sys/SysUserPostMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/mapper/sys/SysUserRoleMapper.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/activity/ActivityGoodsService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/config/AdvertService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/config/AgreementService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/config/BannerService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/config/CustomeConfigService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/config/PopService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/config/QuickEntryService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/config/SysClassificationService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/config/SysTagService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/coupon/CouponRelGoodsService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/coupon/CouponRelUserService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/coupon/CouponService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/coupon/CouponTotalService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/goods/GoodsFileService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/goods/GoodsRelNurseService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/goods/GoodsRelTagService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/goods/GoodsService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/goods/GoodsTotalService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/activity/ActivityGoodsServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/config/AdvertServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/config/AgreementServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/config/BannerServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/config/CustomeConfigServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/config/PopServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/config/QuickEntryServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/config/SysClassificationServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/config/SysTagServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/coupon/CouponRelGoodsServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/coupon/CouponRelUserServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/coupon/CouponServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/coupon/CouponTotalServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/goods/GoodsFileServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/goods/GoodsRelNurseServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/goods/GoodsRelTagServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/goods/GoodsServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/goods/GoodsTotalServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/member/MemberArchiveFieldsServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/member/MemberArchiveServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/member/MemberNurseServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/member/MemberServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/member/UserCouponServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/order/ConsumerGoodsServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/order/OrderGoodsServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/order/OrderServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/order/ShoppingCartServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/order/UserServiceRecordServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/shop/MemberTaskRecordServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/shop/MemberTaskServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/shop/ShopCertificateServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/shop/ShopFileServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/shop/ShopGoodsServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/shop/ShopMarketingServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/shop/ShopRelTagServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/shop/ShopRelUserServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/shop/ShopServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/shop/ShopTaskServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/shop/ShopTransferRecordServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/shop/TaskFileServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/sys/SysConfigServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/sys/SysDeptServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/sys/SysDictDataServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/sys/SysDictTypeServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/sys/SysLogininforServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/sys/SysMenuServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/sys/SysNoticeServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/sys/SysOperLogServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/sys/SysPermissionServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/sys/SysPostServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/sys/SysRoleServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/sys/SysUserOnlineServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/impl/sys/SysUserServiceImpl.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/member/MemberArchiveFieldsService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/member/MemberArchiveService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/member/MemberNurseService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/member/MemberService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/member/UserCouponService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/order/ConsumerGoodsService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/order/OrderGoodsService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/order/OrderService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/order/ShoppingCartService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/order/UserServiceRecordService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/shop/MemberTaskRecordService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/shop/MemberTaskService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/shop/ShopCertificateService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/shop/ShopFileService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/shop/ShopGoodsService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/shop/ShopMarketingService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/shop/ShopRelTagService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/shop/ShopRelUserService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/shop/ShopService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/shop/ShopTaskService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/shop/ShopTransferRecordService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/shop/TaskFileService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/sys/ISysConfigService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/sys/ISysDeptService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/sys/ISysDictDataService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/sys/ISysDictTypeService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/sys/ISysLogininforService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/sys/ISysMenuService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/sys/ISysNoticeService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/sys/ISysOperLogService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/sys/ISysPermissionService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/sys/ISysPostService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/sys/ISysRoleService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/sys/ISysUserOnlineService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/service/sys/ISysUserService.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/util/CodeFactoryUtil.java
ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/system/util/EmojiUtil.java
ruoyi-modules/ruoyi-order/src/main/resources/banner.txt
ruoyi-modules/ruoyi-order/src/main/resources/bootstrap.yml
ruoyi-modules/ruoyi-order/src/main/resources/logback.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/activity/ActivityGoodsMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/config/AdvertMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/config/AgreementMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/config/BannerMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/config/CustomeConfigMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/config/PopMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/config/QuickEntryMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/config/SysClassificationMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/config/SysTagMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/coupon/CouponMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/coupon/CouponRelGoodsMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/coupon/CouponRelUserMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/coupon/CouponTotalMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/goods/GoodsFileMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/goods/GoodsMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/goods/GoodsRelNurseMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/goods/GoodsRelTagMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/goods/GoodsTotalMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/member/MemberArchiveFieldsMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/member/MemberArchiveMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/member/MemberMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/member/MemberNurseMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/member/UserCouponMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/order/ConsumerGoodsMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/order/OrderGoodsMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/order/OrderMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/order/ShoppingCartMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/order/UserServiceRecordMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/shop/MemberTaskMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/shop/MemberTaskRecordMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/shop/ShopCertificateMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/shop/ShopFileMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/shop/ShopGoodsMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/shop/ShopMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/shop/ShopMarketingMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/shop/ShopRelTagMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/shop/ShopRelUserMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/shop/ShopTaskMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/shop/ShopTransferRecordMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/shop/TaskFileMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/sys/SysConfigMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/sys/SysDeptMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/sys/SysDictDataMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/sys/SysDictTypeMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/sys/SysLogininforMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/sys/SysMenuMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/sys/SysNoticeMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/sys/SysOperLogMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/sys/SysPostMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/sys/SysRoleDeptMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/sys/SysRoleMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/sys/SysRoleMenuMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/sys/SysUserMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/sys/SysUserPostMapper.xml
ruoyi-modules/ruoyi-order/src/main/resources/mapper/system/sys/SysUserRoleMapper.xml
ruoyi-modules/ruoyi-shop/pom.xml
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/RuoYiSystemApplication.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/config/AppConfig.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/constant/AppErrorConstant.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/constant/CodeEnum.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/constant/HttpStatus.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/constant/SecurityConstant.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/controller/management/MgtGoodsController.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/controller/management/MgtShopController.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/dto/AppAgreementDto.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/dto/AppBaseBathDto.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/dto/AppBaseDto.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/dto/AppBaseGetDto.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/dto/AppGoodsInfoGetDto.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/dto/AppNearbyShopDto.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/dto/AppPageDto.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/dto/AppSearchGoodsPageDto.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/dto/AppShopGoodsPageDto.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/dto/AppShoppingCartAddDto.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/dto/AppShoppingCartChangeDto.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/dto/AppUserAuthorizeDto.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/dto/MgtBaseDto.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/dto/MgtBaseGetDto.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/dto/MgtChangeCoopDto.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/dto/MgtEditShopDto.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/dto/MgtEditShopTagDto.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/dto/MgtPageDto.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/dto/MgtShopPageDto.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/activity/ActivityGoods.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/config/Advert.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/config/Agreement.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/config/Banner.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/config/CustomeConfig.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/config/Pop.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/config/QuickEntry.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/config/SysClassification.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/config/SysTag.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/coupon/Coupon.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/coupon/CouponRelGoods.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/coupon/CouponRelUser.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/coupon/CouponTotal.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/goods/Goods.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/goods/GoodsFile.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/goods/GoodsRelNurse.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/goods/GoodsRelTag.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/goods/GoodsTotal.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/member/Member.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/member/MemberArchive.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/member/MemberArchiveFields.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/member/MemberNurse.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/member/UserCoupon.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/order/ConsumerGoods.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/order/Order.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/order/OrderGoods.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/order/ShoppingCart.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/order/UserServiceRecord.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/shop/MemberTask.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/shop/MemberTaskRecord.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/shop/Shop.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/shop/ShopCertificate.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/shop/ShopFile.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/shop/ShopGoods.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/shop/ShopMarketing.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/shop/ShopRelTag.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/shop/ShopRelUser.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/shop/ShopTask.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/shop/ShopTransferRecord.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/shop/TaskFile.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/sys/SysConfig.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/sys/SysMenu.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/sys/SysNotice.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/sys/SysPost.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/sys/SysRoleDept.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/sys/SysRoleMenu.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/sys/SysUserOnline.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/sys/SysUserPost.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/pojo/sys/SysUserRole.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/vo/AppAdvertVo.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/vo/AppAgreementVo.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/vo/AppBannerVo.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/vo/AppGoodsInfoVo.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/vo/AppNearbyShopVo.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/vo/AppQuickEntryVo.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/vo/AppShopInfoVo.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/vo/AppSimpleActivityGoodsVo.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/vo/AppSimpleGoodsVo.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/vo/AppUserAuthorizeVo.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/vo/MerHomeShopTotalVo.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/vo/MerShopInfoVo.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/vo/MetaVo.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/vo/MgtShopInfoVo.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/vo/MgtShopPageVo.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/vo/MgtShopTagVo.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/vo/RouterVo.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/domain/vo/TreeSelect.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/activity/ActivityGoodsMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/config/AdvertMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/config/AgreementMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/config/BannerMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/config/CustomeConfigMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/config/PopMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/config/QuickEntryMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/config/SysClassificationMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/config/SysTagMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/coupon/CouponMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/coupon/CouponRelGoodsMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/coupon/CouponRelUserMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/coupon/CouponTotalMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/goods/GoodsFileMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/goods/GoodsMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/goods/GoodsRelNurseMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/goods/GoodsRelTagMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/goods/GoodsTotalMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/member/MemberArchiveFieldsMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/member/MemberArchiveMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/member/MemberMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/member/MemberNurseMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/member/UserCouponMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/order/ConsumerGoodsMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/order/OrderGoodsMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/order/OrderMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/order/ShoppingCartMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/order/UserServiceRecordMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/shop/MemberTaskMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/shop/MemberTaskRecordMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/shop/ShopCertificateMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/shop/ShopFileMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/shop/ShopGoodsMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/shop/ShopMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/shop/ShopMarketingMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/shop/ShopRelTagMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/shop/ShopRelUserMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/shop/ShopTaskMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/shop/ShopTransferRecordMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/shop/TaskFileMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/sys/SysConfigMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/sys/SysDeptMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/sys/SysDictDataMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/sys/SysDictTypeMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/sys/SysLogininforMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/sys/SysMenuMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/sys/SysNoticeMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/sys/SysOperLogMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/sys/SysPostMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/sys/SysRoleDeptMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/sys/SysRoleMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/sys/SysRoleMenuMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/sys/SysUserMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/sys/SysUserPostMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/mapper/sys/SysUserRoleMapper.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/activity/ActivityGoodsService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/config/AdvertService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/config/AgreementService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/config/BannerService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/config/CustomeConfigService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/config/PopService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/config/QuickEntryService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/config/SysClassificationService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/config/SysTagService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/coupon/CouponRelGoodsService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/coupon/CouponRelUserService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/coupon/CouponService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/coupon/CouponTotalService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/goods/GoodsFileService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/goods/GoodsRelNurseService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/goods/GoodsRelTagService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/goods/GoodsService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/goods/GoodsTotalService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/activity/ActivityGoodsServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/config/AdvertServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/config/AgreementServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/config/BannerServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/config/CustomeConfigServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/config/PopServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/config/QuickEntryServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/config/SysClassificationServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/config/SysTagServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/coupon/CouponRelGoodsServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/coupon/CouponRelUserServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/coupon/CouponServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/coupon/CouponTotalServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/goods/GoodsFileServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/goods/GoodsRelNurseServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/goods/GoodsRelTagServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/goods/GoodsServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/goods/GoodsTotalServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/member/MemberArchiveFieldsServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/member/MemberArchiveServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/member/MemberNurseServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/member/MemberServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/member/UserCouponServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/order/ConsumerGoodsServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/order/OrderGoodsServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/order/OrderServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/order/ShoppingCartServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/order/UserServiceRecordServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/shop/MemberTaskRecordServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/shop/MemberTaskServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/shop/ShopCertificateServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/shop/ShopFileServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/shop/ShopGoodsServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/shop/ShopMarketingServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/shop/ShopRelTagServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/shop/ShopRelUserServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/shop/ShopServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/shop/ShopTaskServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/shop/ShopTransferRecordServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/shop/TaskFileServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/sys/SysConfigServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/sys/SysDeptServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/sys/SysDictDataServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/sys/SysDictTypeServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/sys/SysLogininforServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/sys/SysMenuServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/sys/SysNoticeServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/sys/SysOperLogServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/sys/SysPermissionServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/sys/SysPostServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/sys/SysRoleServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/sys/SysUserOnlineServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/impl/sys/SysUserServiceImpl.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/member/MemberArchiveFieldsService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/member/MemberArchiveService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/member/MemberNurseService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/member/MemberService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/member/UserCouponService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/order/ConsumerGoodsService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/order/OrderGoodsService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/order/OrderService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/order/ShoppingCartService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/order/UserServiceRecordService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/shop/MemberTaskRecordService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/shop/MemberTaskService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/shop/ShopCertificateService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/shop/ShopFileService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/shop/ShopGoodsService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/shop/ShopMarketingService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/shop/ShopRelTagService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/shop/ShopRelUserService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/shop/ShopService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/shop/ShopTaskService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/shop/ShopTransferRecordService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/shop/TaskFileService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/sys/ISysConfigService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/sys/ISysDeptService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/sys/ISysDictDataService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/sys/ISysDictTypeService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/sys/ISysLogininforService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/sys/ISysMenuService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/sys/ISysNoticeService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/sys/ISysOperLogService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/sys/ISysPermissionService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/sys/ISysPostService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/sys/ISysRoleService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/sys/ISysUserOnlineService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/service/sys/ISysUserService.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/util/CodeFactoryUtil.java
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/system/util/EmojiUtil.java
ruoyi-modules/ruoyi-shop/src/main/resources/banner.txt
ruoyi-modules/ruoyi-shop/src/main/resources/bootstrap.yml
ruoyi-modules/ruoyi-shop/src/main/resources/logback.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/activity/ActivityGoodsMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/config/AdvertMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/config/AgreementMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/config/BannerMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/config/CustomeConfigMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/config/PopMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/config/QuickEntryMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/config/SysClassificationMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/config/SysTagMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/coupon/CouponMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/coupon/CouponRelGoodsMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/coupon/CouponRelUserMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/coupon/CouponTotalMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/goods/GoodsFileMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/goods/GoodsMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/goods/GoodsRelNurseMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/goods/GoodsRelTagMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/goods/GoodsTotalMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/member/MemberArchiveFieldsMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/member/MemberArchiveMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/member/MemberMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/member/MemberNurseMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/member/UserCouponMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/order/ConsumerGoodsMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/order/OrderGoodsMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/order/OrderMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/order/ShoppingCartMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/order/UserServiceRecordMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/shop/MemberTaskMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/shop/MemberTaskRecordMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/shop/ShopCertificateMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/shop/ShopFileMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/shop/ShopGoodsMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/shop/ShopMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/shop/ShopMarketingMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/shop/ShopRelTagMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/shop/ShopRelUserMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/shop/ShopTaskMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/shop/ShopTransferRecordMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/shop/TaskFileMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/sys/SysConfigMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/sys/SysDeptMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/sys/SysDictDataMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/sys/SysDictTypeMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/sys/SysLogininforMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/sys/SysMenuMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/sys/SysNoticeMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/sys/SysOperLogMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/sys/SysPostMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/sys/SysRoleDeptMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/sys/SysRoleMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/sys/SysRoleMenuMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/sys/SysUserMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/sys/SysUserPostMapper.xml
ruoyi-modules/ruoyi-shop/src/main/resources/mapper/system/sys/SysUserRoleMapper.xml
ruoyi-modules/ruoyi-system/src/main/resources/bootstrap.yml |