├── .gitignore ├── resource └── pic │ ├── 1574341253054.png │ └── 1574341288393.png ├── mall-admin ├── src │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── doudouj │ │ │ │ ├── dto │ │ │ │ ├── sysconfig │ │ │ │ │ ├── SysRole.java │ │ │ │ │ ├── SysRoleMenu.java │ │ │ │ │ ├── SysUserRole.java │ │ │ │ │ ├── PayFlow.java │ │ │ │ │ ├── SysJob.java │ │ │ │ │ ├── SysMenu.java │ │ │ │ │ ├── SysDataDict.java │ │ │ │ │ └── SysUser.java │ │ │ │ ├── pay │ │ │ │ │ ├── PayChannelType.java │ │ │ │ │ ├── PayChannel.java │ │ │ │ │ ├── Merchandise.java │ │ │ │ │ └── PayFlow.java │ │ │ │ ├── coupon │ │ │ │ │ ├── CouponMerchandise.java │ │ │ │ │ ├── CouponMerchandiseCategory.java │ │ │ │ │ ├── HomeBrand.java │ │ │ │ │ ├── HomeNewMerchandise.java │ │ │ │ │ ├── HomeRecommendMerchandise.java │ │ │ │ │ ├── HomeAdvertise.java │ │ │ │ │ └── Coupon.java │ │ │ │ ├── merchandise │ │ │ │ │ ├── MerchandiseAttributeCategory.java │ │ │ │ │ ├── MerchandiseAttributeValue.java │ │ │ │ │ ├── MerchandiseWithBLOBs.java │ │ │ │ │ ├── Brand.java │ │ │ │ │ ├── MerchandiseAttribute.java │ │ │ │ │ ├── MerchandiseComment.java │ │ │ │ │ └── Merchandise.java │ │ │ │ ├── accounts │ │ │ │ │ ├── Merchant.java │ │ │ │ │ ├── AccountReport.java │ │ │ │ │ ├── AccountFlow.java │ │ │ │ │ └── AccountInfo.java │ │ │ │ ├── check │ │ │ │ │ ├── CheckAccountFlow.java │ │ │ │ │ ├── CheckTradeFlow.java │ │ │ │ │ ├── CheckPayFlow.java │ │ │ │ │ └── CheckResult.java │ │ │ │ └── trade │ │ │ │ │ ├── TradeItem.java │ │ │ │ │ ├── Trade.java │ │ │ │ │ ├── TradeDetail.java │ │ │ │ │ └── TradeReturnApply.java │ │ │ │ ├── service │ │ │ │ ├── sysconfig │ │ │ │ │ └── SysRoleService.java │ │ │ │ ├── check │ │ │ │ │ └── CheckAccountFlowService.java │ │ │ │ └── accounts │ │ │ │ │ └── AccountInfoService.java │ │ │ │ ├── dao │ │ │ │ ├── coupon │ │ │ │ │ ├── CouponMapper.java │ │ │ │ │ ├── HomeBrandMapper.java │ │ │ │ │ ├── HomeAdvertiseMapper.java │ │ │ │ │ ├── CouponMerchandiseMapper.java │ │ │ │ │ ├── HomeNewMerchandiseMapper.java │ │ │ │ │ ├── HomeRecommendMerchandiseMapper.java │ │ │ │ │ └── CouponMerchandiseCategoryMapper.java │ │ │ │ ├── trade │ │ │ │ │ ├── TradeMapper.java │ │ │ │ │ ├── TradeItemMapper.java │ │ │ │ │ ├── TradeDetailMapper.java │ │ │ │ │ └── TradeReturnApplyMapper.java │ │ │ │ ├── pay │ │ │ │ │ ├── PayFlowMapper.java │ │ │ │ │ ├── PayChannelMapper.java │ │ │ │ │ └── PayChannelTypeMapper.java │ │ │ │ ├── sysconfig │ │ │ │ │ ├── SysJobMapper.java │ │ │ │ │ ├── SysMenuMapper.java │ │ │ │ │ ├── SysRoleMapper.java │ │ │ │ │ ├── SysUserMapper.java │ │ │ │ │ ├── SysDataDictMapper.java │ │ │ │ │ ├── SysRoleMenuMapper.java │ │ │ │ │ └── SysUserRoleMapper.java │ │ │ │ ├── accounts │ │ │ │ │ ├── MerchantMapper.java │ │ │ │ │ ├── AccountFlowMapper.java │ │ │ │ │ ├── AccountInfoMapper.java │ │ │ │ │ └── AccountReportMapper.java │ │ │ │ ├── check │ │ │ │ │ ├── CheckResultMapper.java │ │ │ │ │ ├── CheckPayFlowMapper.java │ │ │ │ │ ├── CheckTradeFlowMapper.java │ │ │ │ │ └── CheckAccountFlowMapper.java │ │ │ │ └── merchandise │ │ │ │ │ ├── BrandMapper.java │ │ │ │ │ ├── MerchandiseAttributeMapper.java │ │ │ │ │ ├── MerchandiseAttributeValueMapper.java │ │ │ │ │ ├── MerchandiseCommentMapper.java │ │ │ │ │ ├── MerchandiseAttributeCategoryMapper.java │ │ │ │ │ └── MerchandiseMapper.java │ │ │ │ ├── MallAdminApp.java │ │ │ │ ├── properties │ │ │ │ ├── PayDatabaseProperties.java │ │ │ │ ├── CheckDatabaseProperties.java │ │ │ │ ├── TradeDatabaseProperties.java │ │ │ │ ├── CouponDatabaseProperties.java │ │ │ │ ├── AccountsDatabaseProperties.java │ │ │ │ ├── SysconfigDatabaseProperties.java │ │ │ │ └── MerchandiseDatabaseProperties.java │ │ │ │ ├── controller │ │ │ │ ├── sysconfig │ │ │ │ │ └── SysRoleController.java │ │ │ │ ├── check │ │ │ │ │ └── CheckAccountFlowController.java │ │ │ │ └── accounts │ │ │ │ │ └── AccountInfoController.java │ │ │ │ ├── serviceImpl │ │ │ │ ├── sysconfig │ │ │ │ │ └── SysRoleServiceImpl.java │ │ │ │ ├── check │ │ │ │ │ └── CheckAccountFlowServiceImpl.java │ │ │ │ └── accounts │ │ │ │ │ └── AccountInfoServiceImpl.java │ │ │ │ └── config │ │ │ │ ├── MybatisConfigPay.java │ │ │ │ ├── MybatisConfigCheck.java │ │ │ │ └── MybatisConfigTrade.java │ │ └── resources │ │ │ ├── application.yml │ │ │ └── mapper │ │ │ ├── sysconfig │ │ │ ├── SysRoleMapper.xml │ │ │ ├── SysUserRoleMapper.xml │ │ │ └── SysRoleMenuMapper.xml │ │ │ └── pay │ │ │ ├── PayChannelTypeMapper.xml │ │ │ └── PayChannelMapper.xml │ └── test │ │ └── java │ │ └── com │ │ └── doudouj │ │ └── AccountInfoTest.java └── pom.xml ├── mall-check ├── src │ └── main │ │ ├── java │ │ └── com │ │ │ └── doudouj │ │ │ ├── service │ │ │ ├── CheckTradeFlowService.java │ │ │ └── impl │ │ │ │ └── CheckTradeFlowServiceImpl.java │ │ │ ├── MallCheckApp.java │ │ │ ├── dao │ │ │ ├── CheckResultMapper.java │ │ │ ├── CheckPayFlowMapper.java │ │ │ ├── CheckTradeFlowMapper.java │ │ │ └── CheckAccountFlowMapper.java │ │ │ └── dto │ │ │ ├── CheckAccountFlow.java │ │ │ ├── CheckTradeFlow.java │ │ │ ├── CheckPayFlow.java │ │ │ └── CheckResult.java │ │ └── resources │ │ └── application.yml └── pom.xml ├── mall-trade ├── src │ └── main │ │ ├── java │ │ └── com │ │ │ └── doudouj │ │ │ ├── service │ │ │ ├── TradeService.java │ │ │ └── impl │ │ │ │ └── TradeServiceImpl.java │ │ │ ├── dao │ │ │ ├── TradeMapper.java │ │ │ ├── TradeItemMapper.java │ │ │ ├── TradeDetailMapper.java │ │ │ └── TradeReturnApplyMapper.java │ │ │ ├── MallTradeApp.java │ │ │ └── dto │ │ │ ├── TradeItem.java │ │ │ ├── Trade.java │ │ │ ├── TradeDetail.java │ │ │ └── TradeReturnApply.java │ │ └── resources │ │ └── application.yml └── pom.xml ├── mall-pay ├── src │ └── main │ │ ├── resources │ │ └── application.yml │ │ └── java │ │ └── com │ │ └── doudouj │ │ ├── PayApp.java │ │ └── consumer │ │ └── PayConsumerUtil.java └── pom.xml ├── mall-generator ├── src │ └── main │ │ ├── java │ │ └── com │ │ │ └── doudouj │ │ │ ├── dao │ │ │ ├── coupon │ │ │ │ ├── CouponMapper.java │ │ │ │ ├── HomeBrandMapper.java │ │ │ │ ├── HomeAdvertiseMapper.java │ │ │ │ ├── CouponMerchandiseMapper.java │ │ │ │ ├── HomeNewMerchandiseMapper.java │ │ │ │ ├── HomeRecommendMerchandiseMapper.java │ │ │ │ └── CouponMerchandiseCategoryMapper.java │ │ │ ├── trade │ │ │ │ ├── TradeMapper.java │ │ │ │ ├── TradeItemMapper.java │ │ │ │ ├── TradeDetailMapper.java │ │ │ │ └── TradeReturnApplyMapper.java │ │ │ ├── pay │ │ │ │ ├── PayFlowMapper.java │ │ │ │ ├── PayChannelMapper.java │ │ │ │ ├── MerchandiseMapper.java │ │ │ │ └── PayChannelTypeMapper.java │ │ │ ├── sysconfig │ │ │ │ ├── SysJobMapper.java │ │ │ │ ├── PayFlowMapper.java │ │ │ │ ├── SysMenuMapper.java │ │ │ │ ├── SysRoleMapper.java │ │ │ │ ├── SysUserMapper.java │ │ │ │ ├── SysDataDictMapper.java │ │ │ │ ├── SysRoleMenuMapper.java │ │ │ │ └── SysUserRoleMapper.java │ │ │ ├── accounts │ │ │ │ ├── MerchantMapper.java │ │ │ │ ├── AccountFlowMapper.java │ │ │ │ ├── AccountInfoMapper.java │ │ │ │ └── AccountReportMapper.java │ │ │ ├── check │ │ │ │ ├── CheckResultMapper.java │ │ │ │ ├── CheckPayFlowMapper.java │ │ │ │ ├── CheckTradeFlowMapper.java │ │ │ │ └── CheckAccountFlowMapper.java │ │ │ └── merchandise │ │ │ │ ├── BrandMapper.java │ │ │ │ ├── MerchandiseAttributeMapper.java │ │ │ │ ├── MerchandiseAttributeValueMapper.java │ │ │ │ ├── MerchandiseCommentMapper.java │ │ │ │ ├── MerchandiseAttributeCategoryMapper.java │ │ │ │ └── MerchandiseMapper.java │ │ │ └── dto │ │ │ ├── sysconfig │ │ │ ├── SysRoleMenu.java │ │ │ ├── SysUserRole.java │ │ │ ├── SysRole.java │ │ │ ├── PayFlow.java │ │ │ ├── SysJob.java │ │ │ ├── SysMenu.java │ │ │ ├── SysDataDict.java │ │ │ └── SysUser.java │ │ │ ├── pay │ │ │ ├── PayChannelType.java │ │ │ ├── PayChannel.java │ │ │ ├── Merchandise.java │ │ │ └── PayFlow.java │ │ │ ├── merchandise │ │ │ ├── MerchandiseAttributeCategory.java │ │ │ ├── MerchandiseAttributeValue.java │ │ │ ├── MerchandiseWithBLOBs.java │ │ │ ├── Brand.java │ │ │ └── MerchandiseAttribute.java │ │ │ ├── coupon │ │ │ ├── CouponMerchandise.java │ │ │ ├── CouponMerchandiseCategory.java │ │ │ ├── HomeBrand.java │ │ │ ├── HomeNewMerchandise.java │ │ │ └── HomeRecommendMerchandise.java │ │ │ ├── accounts │ │ │ ├── Merchant.java │ │ │ ├── AccountReport.java │ │ │ ├── AccountFlow.java │ │ │ └── AccountInfo.java │ │ │ └── check │ │ │ ├── CheckAccountFlow.java │ │ │ └── CheckTradeFlow.java │ │ └── resources │ │ └── mapper │ │ ├── sysconfig │ │ ├── SysRoleMapper.xml │ │ ├── SysUserRoleMapper.xml │ │ └── PayFlowMapper.xml │ │ └── pay │ │ ├── PayChannelTypeMapper.xml │ │ └── PayChannelMapper.xml └── pom.xml ├── mall-coupon └── pom.xml ├── mall-search └── pom.xml ├── mall-account └── pom.xml ├── mall-crontab └── pom.xml ├── mall-h5portal └── pom.xml ├── mall-pcportal └── pom.xml ├── mall-merchandise └── pom.xml ├── mall-common ├── src │ └── main │ │ ├── java │ │ └── com │ │ │ └── doudouj │ │ │ ├── shiro │ │ │ ├── ShiroRedisCacheUtil.java │ │ │ └── ShiroRedisCache.java │ │ │ └── MallCommonApp.java │ │ └── resources │ │ └── application.yml └── pom.xml └── readme.md /.gitignore: -------------------------------------------------------------------------------- 1 | idea 2 | target 3 | .idea 4 | *.iml 5 | logs -------------------------------------------------------------------------------- /resource/pic/1574341253054.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoguiguo/mallplatform/HEAD/resource/pic/1574341253054.png -------------------------------------------------------------------------------- /resource/pic/1574341288393.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoguiguo/mallplatform/HEAD/resource/pic/1574341288393.png -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/sysconfig/SysRole.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.sysconfig; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class SysRole { 7 | private Long id; 8 | 9 | private String roleName; 10 | 11 | private String remark; 12 | 13 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/sysconfig/SysRoleMenu.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.sysconfig; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class SysRoleMenu { 7 | private Long id; 8 | 9 | private Long roleId; 10 | 11 | private Long orgId; 12 | 13 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/sysconfig/SysUserRole.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.sysconfig; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class SysUserRole { 7 | private Long id; 8 | 9 | private Long userId; 10 | 11 | private Long roleId; 12 | 13 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/pay/PayChannelType.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.pay; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class PayChannelType { 7 | private Long id; 8 | 9 | private String pctName; 10 | 11 | private String pctShortName; 12 | 13 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/pay/PayChannel.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.pay; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class PayChannel { 7 | private Long id; 8 | 9 | private String payChannelName; 10 | 11 | private String payChannelShortName; 12 | 13 | } -------------------------------------------------------------------------------- /mall-check/src/main/java/com/doudouj/service/CheckTradeFlowService.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.service; 2 | 3 | /** 4 | * @ClassName: CheckTradeFlowService 5 | * @Author: doudou 6 | * @Datetime: 2019/11/26-9:54 7 | * @Description: TODO 8 | */ 9 | public interface CheckTradeFlowService { 10 | } 11 | -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/sysconfig/PayFlow.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.sysconfig; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class PayFlow { 7 | private Long id; 8 | 9 | private String name; 10 | 11 | private Long pid; 12 | 13 | private String remark; 14 | 15 | } -------------------------------------------------------------------------------- /mall-trade/src/main/java/com/doudouj/service/TradeService.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.service; 2 | 3 | /** 4 | * @ClassName: TradeService 5 | * @Author: doudou 6 | * @Datetime: 2019/11/26-9:40 7 | * @Description: 交易系统接口 8 | */ 9 | public interface TradeService { 10 | 11 | void buildTrade(); 12 | } 13 | -------------------------------------------------------------------------------- /mall-pay/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8081 3 | rocketmq: 4 | name-server: 127.0.0.1:9876 5 | spring: 6 | datasource: 7 | driver-class-name: com.mysql.cj.jdbc.Driver 8 | url: jdbc:mysql://127.0.0.1:3306/mallpf_pay?serverTimezone=UTC 9 | username: root 10 | password: 12345678 -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/coupon/CouponMerchandise.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.coupon; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class CouponMerchandise { 7 | private Long id; 8 | 9 | private Long couponId; 10 | 11 | private Long merchandiseId; 12 | 13 | private String merchandiseName; 14 | 15 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/sysconfig/SysJob.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.sysconfig; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class SysJob { 7 | private Long id; 8 | 9 | private String name; 10 | 11 | private Integer sort; 12 | 13 | private Long orgId; 14 | 15 | private String remark; 16 | 17 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/merchandise/MerchandiseAttributeCategory.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.merchandise; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class MerchandiseAttributeCategory { 7 | private Long id; 8 | 9 | private String name; 10 | 11 | private Integer attributeCount; 12 | 13 | private Integer paramCount; 14 | 15 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/merchandise/MerchandiseAttributeValue.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.merchandise; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class MerchandiseAttributeValue { 7 | private Long id; 8 | 9 | private Long merchandiseId; 10 | 11 | private Long merchandiseAttributeId; 12 | 13 | private String value; 14 | 15 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/sysconfig/SysMenu.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.sysconfig; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class SysMenu { 7 | private Long id; 8 | 9 | private String name; 10 | 11 | private String component; 12 | 13 | private Long pid; 14 | 15 | private Integer sort; 16 | 17 | private String path; 18 | 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/service/sysconfig/SysRoleService.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.service.sysconfig; 2 | 3 | import com.doudouj.dto.sysconfig.SysRole; 4 | 5 | /** 6 | * @ClassName: SysRoleService 7 | * @Author: doudou 8 | * @Datetime: 2019/11/25-9:37 9 | * @Description: 系统角色api 10 | */ 11 | public interface SysRoleService { 12 | SysRole findById(Long id); 13 | } 14 | -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/merchandise/MerchandiseWithBLOBs.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.merchandise; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class MerchandiseWithBLOBs extends Merchandise { 7 | private String description; 8 | 9 | private String detailDesc; 10 | 11 | private String detailHtml; 12 | 13 | private String detailMobileHtml; 14 | 15 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/sysconfig/SysDataDict.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.sysconfig; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class SysDataDict { 7 | private Long id; 8 | 9 | private Long dictId; 10 | 11 | private String name; 12 | 13 | private String value; 14 | 15 | private String label; 16 | 17 | private Integer sort; 18 | 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/pay/Merchandise.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.pay; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class Merchandise { 7 | private Long id; 8 | 9 | private String pccName; 10 | 11 | private String pccShortName; 12 | 13 | private Long pctId; 14 | 15 | private String configParams; 16 | 17 | private Boolean pccStatus; 18 | 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/coupon/CouponMerchandiseCategory.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.coupon; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class CouponMerchandiseCategory { 7 | private Long id; 8 | 9 | private Long couponId; 10 | 11 | private Long merchandiseCategoryId; 12 | 13 | private String merchandiseCategoryName; 14 | 15 | private String pMerchandiseCategoryName; 16 | 17 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/service/check/CheckAccountFlowService.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.service.check; 2 | 3 | import com.doudouj.dto.check.CheckAccountFlow; 4 | 5 | /** 6 | * @ClassName: CheckAccountFlowService 7 | * @Author: doudou 8 | * @Datetime: 2019/11/25-16:41 9 | * @Description: 账户流水对账接口 10 | */ 11 | public interface CheckAccountFlowService { 12 | 13 | CheckAccountFlow findById(Long id); 14 | } 15 | -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/coupon/HomeBrand.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.coupon; 2 | 3 | import lombok.Data; 4 | 5 | import java.util.Date; 6 | 7 | @Data 8 | public class HomeBrand { 9 | private Long id; 10 | 11 | private Long brandId; 12 | 13 | private String brandName; 14 | 15 | private Boolean recommendStatus; 16 | 17 | private Integer sort; 18 | 19 | private Date createTime; 20 | 21 | private Date modifyTime; 22 | 23 | } -------------------------------------------------------------------------------- /mall-check/src/main/java/com/doudouj/service/impl/CheckTradeFlowServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.service.impl; 2 | 3 | import com.doudouj.service.CheckTradeFlowService; 4 | import org.springframework.stereotype.Service; 5 | 6 | /** 7 | * @ClassName: CheckTradeFlowServiceImpl 8 | * @Author: doudou 9 | * @Datetime: 2019/11/26-9:54 10 | * @Description: TODO 11 | */ 12 | @Service 13 | public class CheckTradeFlowServiceImpl implements CheckTradeFlowService { 14 | } 15 | -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/service/accounts/AccountInfoService.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.service.accounts; 2 | 3 | import com.doudouj.dto.accounts.AccountInfo; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * @ClassName: AccountInfoService 9 | * @Author: doudou 10 | * @Datetime: 2019/11/22-14:11 11 | * @Description: 账户信息接口 12 | */ 13 | public interface AccountInfoService { 14 | List listAll(); 15 | 16 | AccountInfo findById(long id); 17 | } 18 | -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/coupon/CouponMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.coupon; 2 | 3 | import com.doudouj.dto.coupon.Coupon; 4 | 5 | public interface CouponMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(Coupon record); 9 | 10 | int insertSelective(Coupon record); 11 | 12 | Coupon selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(Coupon record); 15 | 16 | int updateByPrimaryKey(Coupon record); 17 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/trade/TradeMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.trade; 2 | 3 | import com.doudouj.dto.trade.Trade; 4 | 5 | public interface TradeMapper { 6 | int deleteByPrimaryKey(Long tradeId); 7 | 8 | int insert(Trade record); 9 | 10 | int insertSelective(Trade record); 11 | 12 | Trade selectByPrimaryKey(Long tradeId); 13 | 14 | int updateByPrimaryKeySelective(Trade record); 15 | 16 | int updateByPrimaryKey(Trade record); 17 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/pay/PayFlowMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.pay; 2 | 3 | import com.doudouj.dto.pay.PayFlow; 4 | 5 | public interface PayFlowMapper { 6 | int deleteByPrimaryKey(Long payId); 7 | 8 | int insert(PayFlow record); 9 | 10 | int insertSelective(PayFlow record); 11 | 12 | PayFlow selectByPrimaryKey(Long payId); 13 | 14 | int updateByPrimaryKeySelective(PayFlow record); 15 | 16 | int updateByPrimaryKey(PayFlow record); 17 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/sysconfig/SysJobMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.sysconfig; 2 | 3 | import com.doudouj.dto.sysconfig.SysJob; 4 | 5 | public interface SysJobMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(SysJob record); 9 | 10 | int insertSelective(SysJob record); 11 | 12 | SysJob selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(SysJob record); 15 | 16 | int updateByPrimaryKey(SysJob record); 17 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/coupon/HomeNewMerchandise.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.coupon; 2 | 3 | import lombok.Data; 4 | 5 | import java.util.Date; 6 | 7 | @Data 8 | public class HomeNewMerchandise { 9 | private Long id; 10 | 11 | private Long merchandiseId; 12 | 13 | private String merchandiseName; 14 | 15 | private Boolean recommendStatus; 16 | 17 | private Integer sort; 18 | 19 | private Date createTime; 20 | 21 | private Date modifyTime; 22 | 23 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/sysconfig/PayFlowMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.sysconfig; 2 | 3 | import com.doudouj.dto.sysconfig.PayFlow; 4 | 5 | public interface PayFlowMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(PayFlow record); 9 | 10 | int insertSelective(PayFlow record); 11 | 12 | PayFlow selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(PayFlow record); 15 | 16 | int updateByPrimaryKey(PayFlow record); 17 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/sysconfig/SysMenuMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.sysconfig; 2 | 3 | import com.doudouj.dto.sysconfig.SysMenu; 4 | 5 | public interface SysMenuMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(SysMenu record); 9 | 10 | int insertSelective(SysMenu record); 11 | 12 | SysMenu selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(SysMenu record); 15 | 16 | int updateByPrimaryKey(SysMenu record); 17 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/sysconfig/SysRoleMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.sysconfig; 2 | 3 | import com.doudouj.dto.sysconfig.SysRole; 4 | 5 | public interface SysRoleMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(SysRole record); 9 | 10 | int insertSelective(SysRole record); 11 | 12 | SysRole selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(SysRole record); 15 | 16 | int updateByPrimaryKey(SysRole record); 17 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/sysconfig/SysUserMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.sysconfig; 2 | 3 | import com.doudouj.dto.sysconfig.SysUser; 4 | 5 | public interface SysUserMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(SysUser record); 9 | 10 | int insertSelective(SysUser record); 11 | 12 | SysUser selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(SysUser record); 15 | 16 | int updateByPrimaryKey(SysUser record); 17 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/accounts/MerchantMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.accounts; 2 | 3 | import com.doudouj.dto.accounts.Merchant; 4 | 5 | public interface MerchantMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(Merchant record); 9 | 10 | int insertSelective(Merchant record); 11 | 12 | Merchant selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(Merchant record); 15 | 16 | int updateByPrimaryKey(Merchant record); 17 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/coupon/HomeBrandMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.coupon; 2 | 3 | import com.doudouj.dto.coupon.HomeBrand; 4 | 5 | public interface HomeBrandMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(HomeBrand record); 9 | 10 | int insertSelective(HomeBrand record); 11 | 12 | HomeBrand selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(HomeBrand record); 15 | 16 | int updateByPrimaryKey(HomeBrand record); 17 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/pay/PayChannelMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.pay; 2 | 3 | import com.doudouj.dto.pay.PayChannel; 4 | 5 | public interface PayChannelMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(PayChannel record); 9 | 10 | int insertSelective(PayChannel record); 11 | 12 | PayChannel selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(PayChannel record); 15 | 16 | int updateByPrimaryKey(PayChannel record); 17 | } -------------------------------------------------------------------------------- /mall-pay/src/main/java/com/doudouj/PayApp.java: -------------------------------------------------------------------------------- 1 | package com.doudouj; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * @ClassName: PayApp 8 | * @Author: doudou 9 | * @Datetime: 2019/12/4-15:58 10 | * @Description: 支付系统启动类 11 | */ 12 | @SpringBootApplication 13 | public class PayApp { 14 | public static void main(String[] args) { 15 | SpringApplication.run(PayApp.class, args); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/coupon/HomeRecommendMerchandise.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.coupon; 2 | 3 | import lombok.Data; 4 | 5 | import java.util.Date; 6 | 7 | @Data 8 | public class HomeRecommendMerchandise { 9 | private Long id; 10 | 11 | private Long merchandiseId; 12 | 13 | private String merchandiseName; 14 | 15 | private Boolean recommendStatus; 16 | 17 | private Integer sort; 18 | 19 | private Date createTime; 20 | 21 | private Date modifyTime; 22 | 23 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/pay/MerchandiseMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.pay; 2 | 3 | import com.doudouj.dto.pay.Merchandise; 4 | 5 | public interface MerchandiseMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(Merchandise record); 9 | 10 | int insertSelective(Merchandise record); 11 | 12 | Merchandise selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(Merchandise record); 15 | 16 | int updateByPrimaryKey(Merchandise record); 17 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/trade/TradeItemMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.trade; 2 | 3 | import com.doudouj.dto.trade.TradeItem; 4 | 5 | public interface TradeItemMapper { 6 | int deleteByPrimaryKey(Long tradeId); 7 | 8 | int insert(TradeItem record); 9 | 10 | int insertSelective(TradeItem record); 11 | 12 | TradeItem selectByPrimaryKey(Long tradeId); 13 | 14 | int updateByPrimaryKeySelective(TradeItem record); 15 | 16 | int updateByPrimaryKey(TradeItem record); 17 | } -------------------------------------------------------------------------------- /mall-trade/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | #配置数据库信息 2 | spring: 3 | datasource: 4 | driver-class-name: com.mysql.cj.jdbc.Driver 5 | url: jdbc:mysql://127.0.0.1:3306/mallpf_trade?serverTimezone=UTC 6 | username: root 7 | password: 12345678 8 | 9 | # mybatis配置信息 10 | mybatis: 11 | mapper-locations: classpath:mapper/*.xml 12 | 13 | # mybatis pagehelper 分页插件 14 | pagehelper: 15 | helper-dialect: mysql 16 | reasonable: true 17 | support-methods-arguments: true 18 | params: count=countSql 19 | -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/check/CheckResultMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.check; 2 | 3 | import com.doudouj.dto.check.CheckResult; 4 | 5 | public interface CheckResultMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(CheckResult record); 9 | 10 | int insertSelective(CheckResult record); 11 | 12 | CheckResult selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(CheckResult record); 15 | 16 | int updateByPrimaryKey(CheckResult record); 17 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/check/CheckPayFlowMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.check; 2 | 3 | import com.doudouj.dto.check.CheckPayFlow; 4 | 5 | public interface CheckPayFlowMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(CheckPayFlow record); 9 | 10 | int insertSelective(CheckPayFlow record); 11 | 12 | CheckPayFlow selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(CheckPayFlow record); 15 | 16 | int updateByPrimaryKey(CheckPayFlow record); 17 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/accounts/AccountFlowMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.accounts; 2 | 3 | import com.doudouj.dto.accounts.AccountFlow; 4 | 5 | public interface AccountFlowMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(AccountFlow record); 9 | 10 | int insertSelective(AccountFlow record); 11 | 12 | AccountFlow selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(AccountFlow record); 15 | 16 | int updateByPrimaryKey(AccountFlow record); 17 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/accounts/AccountInfoMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.accounts; 2 | 3 | import com.doudouj.dto.accounts.AccountInfo; 4 | 5 | public interface AccountInfoMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(AccountInfo record); 9 | 10 | int insertSelective(AccountInfo record); 11 | 12 | AccountInfo selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(AccountInfo record); 15 | 16 | int updateByPrimaryKey(AccountInfo record); 17 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/sysconfig/SysDataDictMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.sysconfig; 2 | 3 | import com.doudouj.dto.sysconfig.SysDataDict; 4 | 5 | public interface SysDataDictMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(SysDataDict record); 9 | 10 | int insertSelective(SysDataDict record); 11 | 12 | SysDataDict selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(SysDataDict record); 15 | 16 | int updateByPrimaryKey(SysDataDict record); 17 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/sysconfig/SysRoleMenuMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.sysconfig; 2 | 3 | import com.doudouj.dto.sysconfig.SysRoleMenu; 4 | 5 | public interface SysRoleMenuMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(SysRoleMenu record); 9 | 10 | int insertSelective(SysRoleMenu record); 11 | 12 | SysRoleMenu selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(SysRoleMenu record); 15 | 16 | int updateByPrimaryKey(SysRoleMenu record); 17 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/sysconfig/SysUserRoleMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.sysconfig; 2 | 3 | import com.doudouj.dto.sysconfig.SysUserRole; 4 | 5 | public interface SysUserRoleMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(SysUserRole record); 9 | 10 | int insertSelective(SysUserRole record); 11 | 12 | SysUserRole selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(SysUserRole record); 15 | 16 | int updateByPrimaryKey(SysUserRole record); 17 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/trade/TradeDetailMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.trade; 2 | 3 | import com.doudouj.dto.trade.TradeDetail; 4 | 5 | public interface TradeDetailMapper { 6 | int deleteByPrimaryKey(Long tradeId); 7 | 8 | int insert(TradeDetail record); 9 | 10 | int insertSelective(TradeDetail record); 11 | 12 | TradeDetail selectByPrimaryKey(Long tradeId); 13 | 14 | int updateByPrimaryKeySelective(TradeDetail record); 15 | 16 | int updateByPrimaryKey(TradeDetail record); 17 | } -------------------------------------------------------------------------------- /mall-trade/src/main/java/com/doudouj/dao/TradeMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao; 2 | 3 | import com.doudouj.dto.Trade; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface TradeMapper { 8 | int deleteByPrimaryKey(Long tradeId); 9 | 10 | int insert(Trade record); 11 | 12 | int insertSelective(Trade record); 13 | 14 | Trade selectByPrimaryKey(Long tradeId); 15 | 16 | int updateByPrimaryKeySelective(Trade record); 17 | 18 | int updateByPrimaryKey(Trade record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/accounts/Merchant.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.accounts; 2 | 3 | import lombok.Data; 4 | 5 | import java.util.Date; 6 | 7 | @Data 8 | public class Merchant { 9 | private Long id; 10 | 11 | private String name; 12 | 13 | private String email; 14 | 15 | private String phone; 16 | 17 | private String city; 18 | 19 | private Boolean merchantStatus; 20 | 21 | private String logo; 22 | 23 | private Date createTime; 24 | 25 | private Date modifyTime; 26 | 27 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/pay/PayChannelTypeMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.pay; 2 | 3 | import com.doudouj.dto.pay.PayChannelType; 4 | 5 | public interface PayChannelTypeMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(PayChannelType record); 9 | 10 | int insertSelective(PayChannelType record); 11 | 12 | PayChannelType selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(PayChannelType record); 15 | 16 | int updateByPrimaryKey(PayChannelType record); 17 | } -------------------------------------------------------------------------------- /mall-check/src/main/java/com/doudouj/MallCheckApp.java: -------------------------------------------------------------------------------- 1 | package com.doudouj; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * @ClassName: MallCheckApp 8 | * @Author: doudou 9 | * @Datetime: 2019/11/26-10:28 10 | * @Description: 对账系统启动类 11 | */ 12 | @SpringBootApplication 13 | public class MallCheckApp { 14 | 15 | public static void main(String[] args) { 16 | SpringApplication.run(MallCheckApp.class, args); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/coupon/HomeAdvertiseMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.coupon; 2 | 3 | import com.doudouj.dto.coupon.HomeAdvertise; 4 | 5 | public interface HomeAdvertiseMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(HomeAdvertise record); 9 | 10 | int insertSelective(HomeAdvertise record); 11 | 12 | HomeAdvertise selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(HomeAdvertise record); 15 | 16 | int updateByPrimaryKey(HomeAdvertise record); 17 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/check/CheckTradeFlowMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.check; 2 | 3 | import com.doudouj.dto.check.CheckTradeFlow; 4 | 5 | public interface CheckTradeFlowMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(CheckTradeFlow record); 9 | 10 | int insertSelective(CheckTradeFlow record); 11 | 12 | CheckTradeFlow selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(CheckTradeFlow record); 15 | 16 | int updateByPrimaryKey(CheckTradeFlow record); 17 | } -------------------------------------------------------------------------------- /mall-trade/src/main/java/com/doudouj/MallTradeApp.java: -------------------------------------------------------------------------------- 1 | package com.doudouj; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | /** 7 | * @ClassName: MallTradeApp 8 | * @Author: doudou 9 | * @Datetime: 2019/11/26-9:44 10 | * @Description: 交易系统启动类 11 | */ 12 | @SpringBootApplication 13 | public class MallTradeApp { 14 | 15 | public static void main(String[] args) { 16 | SpringApplication.run(MallTradeApp.class, args); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/coupon/CouponMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.coupon; 2 | 3 | import com.doudouj.dto.coupon.Coupon; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface CouponMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(Coupon record); 11 | 12 | int insertSelective(Coupon record); 13 | 14 | Coupon selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(Coupon record); 17 | 18 | int updateByPrimaryKey(Coupon record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/trade/TradeMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.trade; 2 | 3 | import com.doudouj.dto.trade.Trade; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface TradeMapper { 8 | int deleteByPrimaryKey(Long tradeId); 9 | 10 | int insert(Trade record); 11 | 12 | int insertSelective(Trade record); 13 | 14 | Trade selectByPrimaryKey(Long tradeId); 15 | 16 | int updateByPrimaryKeySelective(Trade record); 17 | 18 | int updateByPrimaryKey(Trade record); 19 | } -------------------------------------------------------------------------------- /mall-check/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8083 3 | 4 | #配置数据库信息 5 | spring: 6 | datasource: 7 | driver-class-name: com.mysql.cj.jdbc.Driver 8 | url: jdbc:mysql://127.0.0.1:3306/mallpf_check?serverTimezone=UTC 9 | username: root 10 | password: 12345678 11 | 12 | # mybatis配置信息 13 | mybatis: 14 | mapper-locations: classpath:mapper/*/*.xml 15 | 16 | # mybatis pagehelper 分页插件 17 | pagehelper: 18 | helper-dialect: mysql 19 | reasonable: true 20 | support-methods-arguments: true 21 | params: count=countSql 22 | -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/merchandise/BrandMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.merchandise; 2 | 3 | import com.doudouj.dto.merchandise.Brand; 4 | 5 | public interface BrandMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(Brand record); 9 | 10 | int insertSelective(Brand record); 11 | 12 | Brand selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(Brand record); 15 | 16 | int updateByPrimaryKeyWithBLOBs(Brand record); 17 | 18 | int updateByPrimaryKey(Brand record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/pay/PayFlowMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.pay; 2 | 3 | import com.doudouj.dto.pay.PayFlow; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface PayFlowMapper { 8 | int deleteByPrimaryKey(Long payId); 9 | 10 | int insert(PayFlow record); 11 | 12 | int insertSelective(PayFlow record); 13 | 14 | PayFlow selectByPrimaryKey(Long payId); 15 | 16 | int updateByPrimaryKeySelective(PayFlow record); 17 | 18 | int updateByPrimaryKey(PayFlow record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/sysconfig/SysJobMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.sysconfig; 2 | 3 | import com.doudouj.dto.sysconfig.SysJob; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface SysJobMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(SysJob record); 11 | 12 | int insertSelective(SysJob record); 13 | 14 | SysJob selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(SysJob record); 17 | 18 | int updateByPrimaryKey(SysJob record); 19 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/check/CheckAccountFlowMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.check; 2 | 3 | import com.doudouj.dto.check.CheckAccountFlow; 4 | 5 | public interface CheckAccountFlowMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(CheckAccountFlow record); 9 | 10 | int insertSelective(CheckAccountFlow record); 11 | 12 | CheckAccountFlow selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(CheckAccountFlow record); 15 | 16 | int updateByPrimaryKey(CheckAccountFlow record); 17 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/trade/TradeReturnApplyMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.trade; 2 | 3 | import com.doudouj.dto.trade.TradeReturnApply; 4 | 5 | public interface TradeReturnApplyMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(TradeReturnApply record); 9 | 10 | int insertSelective(TradeReturnApply record); 11 | 12 | TradeReturnApply selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(TradeReturnApply record); 15 | 16 | int updateByPrimaryKey(TradeReturnApply record); 17 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/sysconfig/SysMenuMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.sysconfig; 2 | 3 | import com.doudouj.dto.sysconfig.SysMenu; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface SysMenuMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(SysMenu record); 11 | 12 | int insertSelective(SysMenu record); 13 | 14 | SysMenu selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(SysMenu record); 17 | 18 | int updateByPrimaryKey(SysMenu record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/sysconfig/SysRoleMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.sysconfig; 2 | 3 | import com.doudouj.dto.sysconfig.SysRole; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface SysRoleMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(SysRole record); 11 | 12 | int insertSelective(SysRole record); 13 | 14 | SysRole selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(SysRole record); 17 | 18 | int updateByPrimaryKey(SysRole record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/sysconfig/SysUserMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.sysconfig; 2 | 3 | import com.doudouj.dto.sysconfig.SysUser; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface SysUserMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(SysUser record); 11 | 12 | int insertSelective(SysUser record); 13 | 14 | SysUser selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(SysUser record); 17 | 18 | int updateByPrimaryKey(SysUser record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/accounts/AccountReport.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.accounts; 2 | 3 | import lombok.Data; 4 | 5 | import java.util.Date; 6 | 7 | @Data 8 | public class AccountReport { 9 | private Long id; 10 | 11 | private Boolean reportType; 12 | 13 | private Long acctId; 14 | 15 | private Boolean reportStatus; 16 | 17 | private Boolean handleStatus; 18 | 19 | private String note; 20 | 21 | private Date createTime; 22 | 23 | private Date modifyTime; 24 | 25 | private String description; 26 | 27 | } -------------------------------------------------------------------------------- /mall-trade/src/main/java/com/doudouj/dao/TradeItemMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao; 2 | 3 | import com.doudouj.dto.TradeItem; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface TradeItemMapper { 8 | int deleteByPrimaryKey(Long tradeId); 9 | 10 | int insert(TradeItem record); 11 | 12 | int insertSelective(TradeItem record); 13 | 14 | TradeItem selectByPrimaryKey(Long tradeId); 15 | 16 | int updateByPrimaryKeySelective(TradeItem record); 17 | 18 | int updateByPrimaryKey(TradeItem record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/accounts/MerchantMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.accounts; 2 | 3 | import com.doudouj.dto.accounts.Merchant; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface MerchantMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(Merchant record); 11 | 12 | int insertSelective(Merchant record); 13 | 14 | Merchant selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(Merchant record); 17 | 18 | int updateByPrimaryKey(Merchant record); 19 | } -------------------------------------------------------------------------------- /mall-check/src/main/java/com/doudouj/dao/CheckResultMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao; 2 | 3 | import com.doudouj.dto.CheckResult; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface CheckResultMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(CheckResult record); 11 | 12 | int insertSelective(CheckResult record); 13 | 14 | CheckResult selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(CheckResult record); 17 | 18 | int updateByPrimaryKey(CheckResult record); 19 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/coupon/CouponMerchandiseMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.coupon; 2 | 3 | import com.doudouj.dto.coupon.CouponMerchandise; 4 | 5 | public interface CouponMerchandiseMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(CouponMerchandise record); 9 | 10 | int insertSelective(CouponMerchandise record); 11 | 12 | CouponMerchandise selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(CouponMerchandise record); 15 | 16 | int updateByPrimaryKey(CouponMerchandise record); 17 | } -------------------------------------------------------------------------------- /mall-pay/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | mallplatform 7 | com.doudouJ 8 | 1.0-SNAPSHOT 9 | 10 | 4.0.0 11 | 12 | mall-pay 13 | 14 | 15 | -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/coupon/HomeBrandMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.coupon; 2 | 3 | import com.doudouj.dto.coupon.HomeBrand; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface HomeBrandMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(HomeBrand record); 11 | 12 | int insertSelective(HomeBrand record); 13 | 14 | HomeBrand selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(HomeBrand record); 17 | 18 | int updateByPrimaryKey(HomeBrand record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/pay/PayChannelMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.pay; 2 | 3 | import com.doudouj.dto.pay.PayChannel; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface PayChannelMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(PayChannel record); 11 | 12 | int insertSelective(PayChannel record); 13 | 14 | PayChannel selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(PayChannel record); 17 | 18 | int updateByPrimaryKey(PayChannel record); 19 | } -------------------------------------------------------------------------------- /mall-check/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | mallplatform 7 | com.doudouJ 8 | 1.0-SNAPSHOT 9 | 10 | 4.0.0 11 | 12 | mall-check 13 | 14 | 15 | -------------------------------------------------------------------------------- /mall-check/src/main/java/com/doudouj/dao/CheckPayFlowMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao; 2 | 3 | import com.doudouj.dto.CheckPayFlow; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface CheckPayFlowMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(CheckPayFlow record); 11 | 12 | int insertSelective(CheckPayFlow record); 13 | 14 | CheckPayFlow selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(CheckPayFlow record); 17 | 18 | int updateByPrimaryKey(CheckPayFlow record); 19 | } -------------------------------------------------------------------------------- /mall-coupon/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | mallplatform 7 | com.doudouJ 8 | 1.0-SNAPSHOT 9 | 10 | 4.0.0 11 | 12 | mall-coupon 13 | 14 | 15 | -------------------------------------------------------------------------------- /mall-search/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | mallplatform 7 | com.doudouJ 8 | 1.0-SNAPSHOT 9 | 10 | 4.0.0 11 | 12 | mall-search 13 | 14 | 15 | -------------------------------------------------------------------------------- /mall-trade/src/main/java/com/doudouj/service/impl/TradeServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.service.impl; 2 | 3 | import com.doudouj.service.TradeService; 4 | import org.springframework.stereotype.Service; 5 | 6 | /** 7 | * @ClassName: TradeServiceImpl 8 | * @Author: doudou 9 | * @Datetime: 2019/11/26-9:41 10 | * @Description: 交易系统交易实现类 11 | */ 12 | @Service 13 | public class TradeServiceImpl implements TradeService { 14 | @Override 15 | public void buildTrade() { 16 | // boolean buileTrade = xxx; 17 | //生成交易订单,发送消息给对账系统 18 | 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /mall-account/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | mallplatform 7 | com.doudouJ 8 | 1.0-SNAPSHOT 9 | 10 | 4.0.0 11 | 12 | mall-account 13 | 14 | 15 | -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/trade/TradeItemMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.trade; 2 | 3 | import com.doudouj.dto.trade.TradeItem; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface TradeItemMapper { 8 | int deleteByPrimaryKey(Long tradeId); 9 | 10 | int insert(TradeItem record); 11 | 12 | int insertSelective(TradeItem record); 13 | 14 | TradeItem selectByPrimaryKey(Long tradeId); 15 | 16 | int updateByPrimaryKeySelective(TradeItem record); 17 | 18 | int updateByPrimaryKey(TradeItem record); 19 | } -------------------------------------------------------------------------------- /mall-crontab/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | mallplatform 7 | com.doudouJ 8 | 1.0-SNAPSHOT 9 | 10 | 4.0.0 11 | 12 | mall-crontab 13 | 14 | 15 | -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/coupon/HomeNewMerchandiseMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.coupon; 2 | 3 | import com.doudouj.dto.coupon.HomeNewMerchandise; 4 | 5 | public interface HomeNewMerchandiseMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(HomeNewMerchandise record); 9 | 10 | int insertSelective(HomeNewMerchandise record); 11 | 12 | HomeNewMerchandise selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(HomeNewMerchandise record); 15 | 16 | int updateByPrimaryKey(HomeNewMerchandise record); 17 | } -------------------------------------------------------------------------------- /mall-h5portal/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | mallplatform 7 | com.doudouJ 8 | 1.0-SNAPSHOT 9 | 10 | 4.0.0 11 | 12 | mall-h5portal 13 | 14 | 15 | -------------------------------------------------------------------------------- /mall-pcportal/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | mallplatform 7 | com.doudouJ 8 | 1.0-SNAPSHOT 9 | 10 | 4.0.0 11 | 12 | mall-pcportal 13 | 14 | 15 | -------------------------------------------------------------------------------- /mall-trade/src/main/java/com/doudouj/dao/TradeDetailMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao; 2 | 3 | import com.doudouj.dto.TradeDetail; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface TradeDetailMapper { 8 | int deleteByPrimaryKey(Long tradeId); 9 | 10 | int insert(TradeDetail record); 11 | 12 | int insertSelective(TradeDetail record); 13 | 14 | TradeDetail selectByPrimaryKey(Long tradeId); 15 | 16 | int updateByPrimaryKeySelective(TradeDetail record); 17 | 18 | int updateByPrimaryKey(TradeDetail record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/check/CheckResultMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.check; 2 | 3 | import com.doudouj.dto.check.CheckResult; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface CheckResultMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(CheckResult record); 11 | 12 | int insertSelective(CheckResult record); 13 | 14 | CheckResult selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(CheckResult record); 17 | 18 | int updateByPrimaryKey(CheckResult record); 19 | } -------------------------------------------------------------------------------- /mall-merchandise/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | mallplatform 7 | com.doudouJ 8 | 1.0-SNAPSHOT 9 | 10 | 4.0.0 11 | 12 | mall-merchandise 13 | 14 | 15 | -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/accounts/AccountFlowMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.accounts; 2 | 3 | import com.doudouj.dto.accounts.AccountFlow; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface AccountFlowMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(AccountFlow record); 11 | 12 | int insertSelective(AccountFlow record); 13 | 14 | AccountFlow selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(AccountFlow record); 17 | 18 | int updateByPrimaryKey(AccountFlow record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/check/CheckPayFlowMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.check; 2 | 3 | import com.doudouj.dto.check.CheckPayFlow; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface CheckPayFlowMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(CheckPayFlow record); 11 | 12 | int insertSelective(CheckPayFlow record); 13 | 14 | CheckPayFlow selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(CheckPayFlow record); 17 | 18 | int updateByPrimaryKey(CheckPayFlow record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/trade/TradeDetailMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.trade; 2 | 3 | import com.doudouj.dto.trade.TradeDetail; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface TradeDetailMapper { 8 | int deleteByPrimaryKey(Long tradeId); 9 | 10 | int insert(TradeDetail record); 11 | 12 | int insertSelective(TradeDetail record); 13 | 14 | TradeDetail selectByPrimaryKey(Long tradeId); 15 | 16 | int updateByPrimaryKeySelective(TradeDetail record); 17 | 18 | int updateByPrimaryKey(TradeDetail record); 19 | } -------------------------------------------------------------------------------- /mall-check/src/main/java/com/doudouj/dao/CheckTradeFlowMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao; 2 | 3 | import com.doudouj.dto.CheckTradeFlow; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface CheckTradeFlowMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(CheckTradeFlow record); 11 | 12 | int insertSelective(CheckTradeFlow record); 13 | 14 | CheckTradeFlow selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(CheckTradeFlow record); 17 | 18 | int updateByPrimaryKey(CheckTradeFlow record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/sysconfig/SysDataDictMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.sysconfig; 2 | 3 | import com.doudouj.dto.sysconfig.SysDataDict; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface SysDataDictMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(SysDataDict record); 11 | 12 | int insertSelective(SysDataDict record); 13 | 14 | SysDataDict selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(SysDataDict record); 17 | 18 | int updateByPrimaryKey(SysDataDict record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/sysconfig/SysRoleMenuMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.sysconfig; 2 | 3 | import com.doudouj.dto.sysconfig.SysRoleMenu; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface SysRoleMenuMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(SysRoleMenu record); 11 | 12 | int insertSelective(SysRoleMenu record); 13 | 14 | SysRoleMenu selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(SysRoleMenu record); 17 | 18 | int updateByPrimaryKey(SysRoleMenu record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/sysconfig/SysUserRoleMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.sysconfig; 2 | 3 | import com.doudouj.dto.sysconfig.SysUserRole; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface SysUserRoleMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(SysUserRole record); 11 | 12 | int insertSelective(SysUserRole record); 13 | 14 | SysUserRole selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(SysUserRole record); 17 | 18 | int updateByPrimaryKey(SysUserRole record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/merchandise/Brand.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.merchandise; 2 | 3 | import lombok.Data; 4 | 5 | import java.util.Date; 6 | 7 | @Data 8 | public class Brand { 9 | private Long id; 10 | 11 | private String name; 12 | 13 | private Integer sort; 14 | 15 | private Integer merchandiseCount; 16 | 17 | private Integer merchandiseCommentCount; 18 | 19 | private String logo; 20 | 21 | private String bigPic; 22 | 23 | private Date createTime; 24 | 25 | private Date modifyTime; 26 | 27 | private String brandStory; 28 | 29 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/coupon/HomeAdvertiseMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.coupon; 2 | 3 | import com.doudouj.dto.coupon.HomeAdvertise; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface HomeAdvertiseMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(HomeAdvertise record); 11 | 12 | int insertSelective(HomeAdvertise record); 13 | 14 | HomeAdvertise selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(HomeAdvertise record); 17 | 18 | int updateByPrimaryKey(HomeAdvertise record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/pay/PayChannelTypeMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.pay; 2 | 3 | import com.doudouj.dto.pay.PayChannelType; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface PayChannelTypeMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(PayChannelType record); 11 | 12 | int insertSelective(PayChannelType record); 13 | 14 | PayChannelType selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(PayChannelType record); 17 | 18 | int updateByPrimaryKey(PayChannelType record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/check/CheckTradeFlowMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.check; 2 | 3 | import com.doudouj.dto.check.CheckTradeFlow; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface CheckTradeFlowMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(CheckTradeFlow record); 11 | 12 | int insertSelective(CheckTradeFlow record); 13 | 14 | CheckTradeFlow selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(CheckTradeFlow record); 17 | 18 | int updateByPrimaryKey(CheckTradeFlow record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/sysconfig/SysUser.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.sysconfig; 2 | 3 | import lombok.Data; 4 | 5 | import java.util.Date; 6 | 7 | @Data 8 | public class SysUser { 9 | private Long id; 10 | 11 | private String avatar; 12 | 13 | private String username; 14 | 15 | private String email; 16 | 17 | private String phone; 18 | 19 | private Long orgId; 20 | 21 | private Long jobId; 22 | 23 | private Boolean enabled; 24 | 25 | private String password; 26 | 27 | private Date createTime; 28 | 29 | private Date modifyTime; 30 | 31 | } -------------------------------------------------------------------------------- /mall-check/src/main/java/com/doudouj/dao/CheckAccountFlowMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao; 2 | 3 | import com.doudouj.dto.CheckAccountFlow; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface CheckAccountFlowMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(CheckAccountFlow record); 11 | 12 | int insertSelective(CheckAccountFlow record); 13 | 14 | CheckAccountFlow selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(CheckAccountFlow record); 17 | 18 | int updateByPrimaryKey(CheckAccountFlow record); 19 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/merchandise/MerchandiseAttributeMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.merchandise; 2 | 3 | import com.doudouj.dto.merchandise.MerchandiseAttribute; 4 | 5 | public interface MerchandiseAttributeMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(MerchandiseAttribute record); 9 | 10 | int insertSelective(MerchandiseAttribute record); 11 | 12 | MerchandiseAttribute selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(MerchandiseAttribute record); 15 | 16 | int updateByPrimaryKey(MerchandiseAttribute record); 17 | } -------------------------------------------------------------------------------- /mall-trade/src/main/java/com/doudouj/dao/TradeReturnApplyMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao; 2 | 3 | import com.doudouj.dto.TradeReturnApply; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface TradeReturnApplyMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(TradeReturnApply record); 11 | 12 | int insertSelective(TradeReturnApply record); 13 | 14 | TradeReturnApply selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(TradeReturnApply record); 17 | 18 | int updateByPrimaryKey(TradeReturnApply record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/accounts/AccountFlow.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.accounts; 2 | 3 | import lombok.Data; 4 | 5 | import java.math.BigDecimal; 6 | import java.util.Date; 7 | 8 | @Data 9 | public class AccountFlow { 10 | private Long id; 11 | 12 | private Long acctId; 13 | 14 | private Long merchantId; 15 | 16 | private Long tradeId; 17 | 18 | private Byte payType; 19 | 20 | private BigDecimal amt; 21 | 22 | private Date tradeTime; 23 | 24 | private Byte tradeStatus; 25 | 26 | private Date createTime; 27 | 28 | private Date modifyTime; 29 | 30 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/accounts/AccountReportMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.accounts; 2 | 3 | import com.doudouj.dto.accounts.AccountReport; 4 | 5 | public interface AccountReportMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(AccountReport record); 9 | 10 | int insertSelective(AccountReport record); 11 | 12 | AccountReport selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(AccountReport record); 15 | 16 | int updateByPrimaryKeyWithBLOBs(AccountReport record); 17 | 18 | int updateByPrimaryKey(AccountReport record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/merchandise/BrandMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.merchandise; 2 | 3 | import com.doudouj.dto.merchandise.Brand; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface BrandMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(Brand record); 11 | 12 | int insertSelective(Brand record); 13 | 14 | Brand selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(Brand record); 17 | 18 | int updateByPrimaryKeyWithBLOBs(Brand record); 19 | 20 | int updateByPrimaryKey(Brand record); 21 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/check/CheckAccountFlowMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.check; 2 | 3 | import com.doudouj.dto.check.CheckAccountFlow; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface CheckAccountFlowMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(CheckAccountFlow record); 11 | 12 | int insertSelective(CheckAccountFlow record); 13 | 14 | CheckAccountFlow selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(CheckAccountFlow record); 17 | 18 | int updateByPrimaryKey(CheckAccountFlow record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/trade/TradeReturnApplyMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.trade; 2 | 3 | import com.doudouj.dto.trade.TradeReturnApply; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface TradeReturnApplyMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(TradeReturnApply record); 11 | 12 | int insertSelective(TradeReturnApply record); 13 | 14 | TradeReturnApply selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(TradeReturnApply record); 17 | 18 | int updateByPrimaryKey(TradeReturnApply record); 19 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/coupon/HomeRecommendMerchandiseMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.coupon; 2 | 3 | import com.doudouj.dto.coupon.HomeRecommendMerchandise; 4 | 5 | public interface HomeRecommendMerchandiseMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(HomeRecommendMerchandise record); 9 | 10 | int insertSelective(HomeRecommendMerchandise record); 11 | 12 | HomeRecommendMerchandise selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(HomeRecommendMerchandise record); 15 | 16 | int updateByPrimaryKey(HomeRecommendMerchandise record); 17 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/coupon/CouponMerchandiseCategoryMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.coupon; 2 | 3 | import com.doudouj.dto.coupon.CouponMerchandiseCategory; 4 | 5 | public interface CouponMerchandiseCategoryMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(CouponMerchandiseCategory record); 9 | 10 | int insertSelective(CouponMerchandiseCategory record); 11 | 12 | CouponMerchandiseCategory selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(CouponMerchandiseCategory record); 15 | 16 | int updateByPrimaryKey(CouponMerchandiseCategory record); 17 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/coupon/CouponMerchandiseMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.coupon; 2 | 3 | import com.doudouj.dto.coupon.CouponMerchandise; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface CouponMerchandiseMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(CouponMerchandise record); 11 | 12 | int insertSelective(CouponMerchandise record); 13 | 14 | CouponMerchandise selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(CouponMerchandise record); 17 | 18 | int updateByPrimaryKey(CouponMerchandise record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/coupon/HomeNewMerchandiseMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.coupon; 2 | 3 | import com.doudouj.dto.coupon.HomeNewMerchandise; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface HomeNewMerchandiseMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(HomeNewMerchandise record); 11 | 12 | int insertSelective(HomeNewMerchandise record); 13 | 14 | HomeNewMerchandise selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(HomeNewMerchandise record); 17 | 18 | int updateByPrimaryKey(HomeNewMerchandise record); 19 | } -------------------------------------------------------------------------------- /mall-check/src/main/java/com/doudouj/dto/CheckAccountFlow.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto; 2 | 3 | import lombok.Data; 4 | 5 | import java.math.BigDecimal; 6 | import java.util.Date; 7 | 8 | @Data 9 | public class CheckAccountFlow { 10 | private Long id; 11 | 12 | private Long acctFlowId; 13 | 14 | private Long acctId; 15 | 16 | private Long merchantId; 17 | 18 | private Long tradeId; 19 | 20 | private Byte payType; 21 | 22 | private BigDecimal amt; 23 | 24 | private Date tradeTime; 25 | 26 | private Byte tradeStatus; 27 | 28 | private Date createTime; 29 | 30 | private Date modifyTime; 31 | 32 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/merchandise/MerchandiseAttribute.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.merchandise; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class MerchandiseAttribute { 7 | private Long id; 8 | 9 | private Long merchandiseAttributeCategoryId; 10 | 11 | private String name; 12 | 13 | private Boolean selectType; 14 | 15 | private Boolean inputType; 16 | 17 | private String inputList; 18 | 19 | private Integer sort; 20 | 21 | private Boolean filterType; 22 | 23 | private Boolean searchType; 24 | 25 | private Boolean relatedType; 26 | 27 | private Boolean type; 28 | 29 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/merchandise/MerchandiseAttributeValueMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.merchandise; 2 | 3 | import com.doudouj.dto.merchandise.MerchandiseAttributeValue; 4 | 5 | public interface MerchandiseAttributeValueMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(MerchandiseAttributeValue record); 9 | 10 | int insertSelective(MerchandiseAttributeValue record); 11 | 12 | MerchandiseAttributeValue selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(MerchandiseAttributeValue record); 15 | 16 | int updateByPrimaryKey(MerchandiseAttributeValue record); 17 | } -------------------------------------------------------------------------------- /mall-check/src/main/java/com/doudouj/dto/CheckTradeFlow.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto; 2 | 3 | import lombok.Data; 4 | 5 | import java.math.BigDecimal; 6 | import java.util.Date; 7 | 8 | @Data 9 | public class CheckTradeFlow { 10 | private Long id; 11 | 12 | private Long tradeId; 13 | 14 | private Long acctId; 15 | 16 | private BigDecimal amt; 17 | 18 | private BigDecimal payAmt; 19 | 20 | private Boolean payChannel; 21 | 22 | private Boolean sourceType; 23 | 24 | private Boolean tradeStatus; 25 | 26 | private Date payTime; 27 | 28 | private Date createTime; 29 | 30 | private Date modifyTime; 31 | 32 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/check/CheckAccountFlow.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.check; 2 | 3 | import lombok.Data; 4 | 5 | import java.math.BigDecimal; 6 | import java.util.Date; 7 | 8 | @Data 9 | public class CheckAccountFlow { 10 | private Long id; 11 | 12 | private Long acctFlowId; 13 | 14 | private Long acctId; 15 | 16 | private Long merchantId; 17 | 18 | private Long tradeId; 19 | 20 | private Byte payType; 21 | 22 | private BigDecimal amt; 23 | 24 | private Date tradeTime; 25 | 26 | private Byte tradeStatus; 27 | 28 | private Date createTime; 29 | 30 | private Date modifyTime; 31 | 32 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/check/CheckTradeFlow.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.check; 2 | 3 | import lombok.Data; 4 | 5 | import java.math.BigDecimal; 6 | import java.util.Date; 7 | 8 | @Data 9 | public class CheckTradeFlow { 10 | private Long id; 11 | 12 | private Long tradeId; 13 | 14 | private Long acctId; 15 | 16 | private BigDecimal amt; 17 | 18 | private BigDecimal payAmt; 19 | 20 | private Boolean payChannel; 21 | 22 | private Boolean sourceType; 23 | 24 | private Boolean tradeStatus; 25 | 26 | private Date payTime; 27 | 28 | private Date createTime; 29 | 30 | private Date modifyTime; 31 | 32 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/MallAdminApp.java: -------------------------------------------------------------------------------- 1 | package com.doudouj; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; 6 | 7 | /** 8 | * @ClassName: MallAdminApp 9 | * @Author: doudou 10 | * @Datetime: 2019/11/22-14:04 11 | * @Description: 后管服务 12 | */ 13 | @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}) 14 | public class MallAdminApp { 15 | 16 | public static void main(String[] args) { 17 | SpringApplication.run(MallAdminApp.class, args); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/merchandise/MerchandiseCommentMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.merchandise; 2 | 3 | import com.doudouj.dto.merchandise.MerchandiseComment; 4 | 5 | public interface MerchandiseCommentMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(MerchandiseComment record); 9 | 10 | int insertSelective(MerchandiseComment record); 11 | 12 | MerchandiseComment selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(MerchandiseComment record); 15 | 16 | int updateByPrimaryKeyWithBLOBs(MerchandiseComment record); 17 | 18 | int updateByPrimaryKey(MerchandiseComment record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/accounts/AccountInfoMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.accounts; 2 | 3 | import com.doudouj.dto.accounts.AccountInfo; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import java.util.List; 7 | 8 | @Repository 9 | public interface AccountInfoMapper { 10 | int deleteByPrimaryKey(Long id); 11 | 12 | int insert(AccountInfo record); 13 | 14 | int insertSelective(AccountInfo record); 15 | 16 | AccountInfo selectByPrimaryKey(Long id); 17 | 18 | int updateByPrimaryKeySelective(AccountInfo record); 19 | 20 | int updateByPrimaryKey(AccountInfo record); 21 | 22 | List listAll(); 23 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/merchandise/MerchandiseAttributeMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.merchandise; 2 | 3 | import com.doudouj.dto.merchandise.MerchandiseAttribute; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface MerchandiseAttributeMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(MerchandiseAttribute record); 11 | 12 | int insertSelective(MerchandiseAttribute record); 13 | 14 | MerchandiseAttribute selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(MerchandiseAttribute record); 17 | 18 | int updateByPrimaryKey(MerchandiseAttribute record); 19 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/merchandise/MerchandiseAttributeCategoryMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.merchandise; 2 | 3 | import com.doudouj.dto.merchandise.MerchandiseAttributeCategory; 4 | 5 | public interface MerchandiseAttributeCategoryMapper { 6 | int deleteByPrimaryKey(Long id); 7 | 8 | int insert(MerchandiseAttributeCategory record); 9 | 10 | int insertSelective(MerchandiseAttributeCategory record); 11 | 12 | MerchandiseAttributeCategory selectByPrimaryKey(Long id); 13 | 14 | int updateByPrimaryKeySelective(MerchandiseAttributeCategory record); 15 | 16 | int updateByPrimaryKey(MerchandiseAttributeCategory record); 17 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/accounts/AccountReportMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.accounts; 2 | 3 | import com.doudouj.dto.accounts.AccountReport; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface AccountReportMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(AccountReport record); 11 | 12 | int insertSelective(AccountReport record); 13 | 14 | AccountReport selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(AccountReport record); 17 | 18 | int updateByPrimaryKeyWithBLOBs(AccountReport record); 19 | 20 | int updateByPrimaryKey(AccountReport record); 21 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/coupon/HomeRecommendMerchandiseMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.coupon; 2 | 3 | import com.doudouj.dto.coupon.HomeRecommendMerchandise; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface HomeRecommendMerchandiseMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(HomeRecommendMerchandise record); 11 | 12 | int insertSelective(HomeRecommendMerchandise record); 13 | 14 | HomeRecommendMerchandise selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(HomeRecommendMerchandise record); 17 | 18 | int updateByPrimaryKey(HomeRecommendMerchandise record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/pay/PayFlow.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.pay; 2 | 3 | import lombok.Data; 4 | 5 | import java.math.BigDecimal; 6 | import java.util.Date; 7 | 8 | @Data 9 | public class PayFlow { 10 | private Long payId; 11 | 12 | private Long tradeId; 13 | 14 | private BigDecimal tradeAmt; 15 | 16 | private BigDecimal payAmt; 17 | 18 | private Boolean payType; 19 | 20 | private Boolean payStatus; 21 | 22 | private Long acctId; 23 | 24 | private Long merchantId; 25 | 26 | private Boolean payChannelId; 27 | 28 | private Date payTime; 29 | 30 | private Date createTime; 31 | 32 | private Date modifyTime; 33 | 34 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/coupon/CouponMerchandiseCategoryMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.coupon; 2 | 3 | import com.doudouj.dto.coupon.CouponMerchandiseCategory; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface CouponMerchandiseCategoryMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(CouponMerchandiseCategory record); 11 | 12 | int insertSelective(CouponMerchandiseCategory record); 13 | 14 | CouponMerchandiseCategory selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(CouponMerchandiseCategory record); 17 | 18 | int updateByPrimaryKey(CouponMerchandiseCategory record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/accounts/AccountInfo.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.accounts; 2 | 3 | import lombok.Data; 4 | 5 | import java.math.BigDecimal; 6 | import java.util.Date; 7 | 8 | @Data 9 | public class AccountInfo { 10 | private Long id; 11 | 12 | private Long tripartAcctId; 13 | 14 | private String name; 15 | 16 | private Byte acctType; 17 | 18 | private Byte acctStatus; 19 | 20 | private BigDecimal balance; 21 | 22 | private Integer growth; 23 | 24 | private Integer point; 25 | 26 | private Byte level; 27 | 28 | private Boolean vipStatus; 29 | 30 | private Date createTime; 31 | 32 | private Date modifyTime; 33 | 34 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dao/merchandise/MerchandiseMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.merchandise; 2 | 3 | import com.doudouj.dto.merchandise.Merchandise; 4 | import com.doudouj.dto.merchandise.MerchandiseWithBLOBs; 5 | 6 | public interface MerchandiseMapper { 7 | int deleteByPrimaryKey(Long id); 8 | 9 | int insert(MerchandiseWithBLOBs record); 10 | 11 | int insertSelective(MerchandiseWithBLOBs record); 12 | 13 | MerchandiseWithBLOBs selectByPrimaryKey(Long id); 14 | 15 | int updateByPrimaryKeySelective(MerchandiseWithBLOBs record); 16 | 17 | int updateByPrimaryKeyWithBLOBs(MerchandiseWithBLOBs record); 18 | 19 | int updateByPrimaryKey(Merchandise record); 20 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/merchandise/MerchandiseAttributeValueMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.merchandise; 2 | 3 | import com.doudouj.dto.merchandise.MerchandiseAttributeValue; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface MerchandiseAttributeValueMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(MerchandiseAttributeValue record); 11 | 12 | int insertSelective(MerchandiseAttributeValue record); 13 | 14 | MerchandiseAttributeValue selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(MerchandiseAttributeValue record); 17 | 18 | int updateByPrimaryKey(MerchandiseAttributeValue record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/properties/PayDatabaseProperties.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.properties; 2 | 3 | import lombok.Data; 4 | import org.springframework.boot.context.properties.ConfigurationProperties; 5 | import org.springframework.stereotype.Component; 6 | 7 | /** 8 | * @ClassName: AccountsDatabaseProperties 9 | * @Author: doudou 10 | * @Datetime: 2019/11/25-15:41 11 | * @Description: accounts库配置 12 | */ 13 | @Component 14 | @ConfigurationProperties(prefix = "spring.datasource.pay") 15 | @Data 16 | public class PayDatabaseProperties { 17 | private String url; 18 | private String username; 19 | private String password; 20 | private String type; 21 | private String driver; 22 | } 23 | -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/properties/CheckDatabaseProperties.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.properties; 2 | 3 | import lombok.Data; 4 | import org.springframework.boot.context.properties.ConfigurationProperties; 5 | import org.springframework.stereotype.Component; 6 | 7 | /** 8 | * @ClassName: AccountsDatabaseProperties 9 | * @Author: doudou 10 | * @Datetime: 2019/11/25-15:41 11 | * @Description: accounts库配置 12 | */ 13 | @Component 14 | @ConfigurationProperties(prefix = "spring.datasource.check") 15 | @Data 16 | public class CheckDatabaseProperties { 17 | private String url; 18 | private String username; 19 | private String password; 20 | private String type; 21 | private String driver; 22 | } 23 | -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/properties/TradeDatabaseProperties.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.properties; 2 | 3 | import lombok.Data; 4 | import org.springframework.boot.context.properties.ConfigurationProperties; 5 | import org.springframework.stereotype.Component; 6 | 7 | /** 8 | * @ClassName: AccountsDatabaseProperties 9 | * @Author: doudou 10 | * @Datetime: 2019/11/25-15:41 11 | * @Description: accounts库配置 12 | */ 13 | @Component 14 | @ConfigurationProperties(prefix = "spring.datasource.trade") 15 | @Data 16 | public class TradeDatabaseProperties { 17 | private String url; 18 | private String username; 19 | private String password; 20 | private String type; 21 | private String driver; 22 | } 23 | -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/coupon/HomeAdvertise.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.coupon; 2 | 3 | import lombok.Data; 4 | 5 | import java.util.Date; 6 | 7 | @Data 8 | public class HomeAdvertise { 9 | private Long id; 10 | 11 | private String name; 12 | 13 | private Boolean type; 14 | 15 | private String pic; 16 | 17 | private Date startTime; 18 | 19 | private Date endTime; 20 | 21 | private Boolean adStatus; 22 | 23 | private Integer clickCount; 24 | 25 | private Integer orderCount; 26 | 27 | private String url; 28 | 29 | private String note; 30 | 31 | private Integer sort; 32 | 33 | private Date createTime; 34 | 35 | private Date modifyTime; 36 | 37 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/properties/CouponDatabaseProperties.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.properties; 2 | 3 | import lombok.Data; 4 | import org.springframework.boot.context.properties.ConfigurationProperties; 5 | import org.springframework.stereotype.Component; 6 | 7 | /** 8 | * @ClassName: AccountsDatabaseProperties 9 | * @Author: doudou 10 | * @Datetime: 2019/11/25-15:41 11 | * @Description: accounts库配置 12 | */ 13 | @Component 14 | @ConfigurationProperties(prefix = "spring.datasource.coupon") 15 | @Data 16 | public class CouponDatabaseProperties { 17 | private String url; 18 | private String username; 19 | private String password; 20 | private String type; 21 | private String driver; 22 | } 23 | -------------------------------------------------------------------------------- /mall-check/src/main/java/com/doudouj/dto/CheckPayFlow.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto; 2 | 3 | import lombok.Data; 4 | 5 | import java.math.BigDecimal; 6 | import java.util.Date; 7 | 8 | @Data 9 | public class CheckPayFlow { 10 | private Long id; 11 | 12 | private Long payId; 13 | 14 | private Long tradeId; 15 | 16 | private BigDecimal tradeAmt; 17 | 18 | private BigDecimal payAmt; 19 | 20 | private Boolean payType; 21 | 22 | private Boolean payStatus; 23 | 24 | private Long acctId; 25 | 26 | private Long merchantId; 27 | 28 | private Boolean payChannelId; 29 | 30 | private Date payTime; 31 | 32 | private Date createTime; 33 | 34 | private Date modifyTime; 35 | 36 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/sysconfig/SysRoleMenu.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.sysconfig; 2 | 3 | public class SysRoleMenu { 4 | private Long id; 5 | 6 | private Long roleId; 7 | 8 | private Long orgId; 9 | 10 | public Long getId() { 11 | return id; 12 | } 13 | 14 | public void setId(Long id) { 15 | this.id = id; 16 | } 17 | 18 | public Long getRoleId() { 19 | return roleId; 20 | } 21 | 22 | public void setRoleId(Long roleId) { 23 | this.roleId = roleId; 24 | } 25 | 26 | public Long getOrgId() { 27 | return orgId; 28 | } 29 | 30 | public void setOrgId(Long orgId) { 31 | this.orgId = orgId; 32 | } 33 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/merchandise/MerchandiseCommentMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.merchandise; 2 | 3 | import com.doudouj.dto.merchandise.MerchandiseComment; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface MerchandiseCommentMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(MerchandiseComment record); 11 | 12 | int insertSelective(MerchandiseComment record); 13 | 14 | MerchandiseComment selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(MerchandiseComment record); 17 | 18 | int updateByPrimaryKeyWithBLOBs(MerchandiseComment record); 19 | 20 | int updateByPrimaryKey(MerchandiseComment record); 21 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/properties/AccountsDatabaseProperties.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.properties; 2 | 3 | import lombok.Data; 4 | import org.springframework.boot.context.properties.ConfigurationProperties; 5 | import org.springframework.stereotype.Component; 6 | 7 | /** 8 | * @ClassName: AccountsDatabaseProperties 9 | * @Author: doudou 10 | * @Datetime: 2019/11/25-15:41 11 | * @Description: accounts库配置 12 | */ 13 | @Component 14 | @ConfigurationProperties(prefix = "spring.datasource.accounts") 15 | @Data 16 | public class AccountsDatabaseProperties { 17 | private String url; 18 | private String username; 19 | private String password; 20 | private String type; 21 | private String driver; 22 | } 23 | -------------------------------------------------------------------------------- /mall-pay/src/main/java/com/doudouj/consumer/PayConsumerUtil.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.consumer; 2 | 3 | import org.apache.rocketmq.spring.annotation.RocketMQMessageListener; 4 | import org.apache.rocketmq.spring.core.RocketMQListener; 5 | import org.springframework.stereotype.Component; 6 | 7 | /** 8 | * @ClassName: PayComsumerUtil 9 | * @Author: doudou 10 | * @Datetime: 2019/12/4-15:52 11 | * @Description: 支付消息消费工具类 12 | */ 13 | @Component 14 | @RocketMQMessageListener(topic = "javastudy", consumerGroup = "pay-group") 15 | public class PayConsumerUtil implements RocketMQListener { 16 | 17 | @Override 18 | public void onMessage(String s) { 19 | System.out.println("get message: " + s); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/merchandise/MerchandiseAttributeCategoryMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.merchandise; 2 | 3 | import com.doudouj.dto.merchandise.MerchandiseAttributeCategory; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface MerchandiseAttributeCategoryMapper { 8 | int deleteByPrimaryKey(Long id); 9 | 10 | int insert(MerchandiseAttributeCategory record); 11 | 12 | int insertSelective(MerchandiseAttributeCategory record); 13 | 14 | MerchandiseAttributeCategory selectByPrimaryKey(Long id); 15 | 16 | int updateByPrimaryKeySelective(MerchandiseAttributeCategory record); 17 | 18 | int updateByPrimaryKey(MerchandiseAttributeCategory record); 19 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/check/CheckPayFlow.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.check; 2 | 3 | import lombok.Data; 4 | 5 | import java.math.BigDecimal; 6 | import java.util.Date; 7 | 8 | @Data 9 | public class CheckPayFlow { 10 | private Long id; 11 | 12 | private Long payId; 13 | 14 | private Long tradeId; 15 | 16 | private BigDecimal tradeAmt; 17 | 18 | private BigDecimal payAmt; 19 | 20 | private Boolean payType; 21 | 22 | private Boolean payStatus; 23 | 24 | private Long acctId; 25 | 26 | private Long merchantId; 27 | 28 | private Boolean payChannelId; 29 | 30 | private Date payTime; 31 | 32 | private Date createTime; 33 | 34 | private Date modifyTime; 35 | 36 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/properties/SysconfigDatabaseProperties.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.properties; 2 | 3 | import lombok.Data; 4 | import org.springframework.boot.context.properties.ConfigurationProperties; 5 | import org.springframework.stereotype.Component; 6 | 7 | /** 8 | * @ClassName: AccountsDatabaseProperties 9 | * @Author: doudou 10 | * @Datetime: 2019/11/25-15:41 11 | * @Description: accounts库配置 12 | */ 13 | @Component 14 | @ConfigurationProperties(prefix = "spring.datasource.sysconfig") 15 | @Data 16 | public class SysconfigDatabaseProperties { 17 | private String url; 18 | private String username; 19 | private String password; 20 | private String type; 21 | private String driver; 22 | } 23 | -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/sysconfig/SysUserRole.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.sysconfig; 2 | 3 | public class SysUserRole { 4 | private Long id; 5 | 6 | private Long userId; 7 | 8 | private Long roleId; 9 | 10 | public Long getId() { 11 | return id; 12 | } 13 | 14 | public void setId(Long id) { 15 | this.id = id; 16 | } 17 | 18 | public Long getUserId() { 19 | return userId; 20 | } 21 | 22 | public void setUserId(Long userId) { 23 | this.userId = userId; 24 | } 25 | 26 | public Long getRoleId() { 27 | return roleId; 28 | } 29 | 30 | public void setRoleId(Long roleId) { 31 | this.roleId = roleId; 32 | } 33 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/properties/MerchandiseDatabaseProperties.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.properties; 2 | 3 | import lombok.Data; 4 | import org.springframework.boot.context.properties.ConfigurationProperties; 5 | import org.springframework.stereotype.Component; 6 | 7 | /** 8 | * @ClassName: AccountsDatabaseProperties 9 | * @Author: doudou 10 | * @Datetime: 2019/11/25-15:41 11 | * @Description: accounts库配置 12 | */ 13 | @Component 14 | @ConfigurationProperties(prefix = "spring.datasource.merchandise") 15 | @Data 16 | public class MerchandiseDatabaseProperties { 17 | private String url; 18 | private String username; 19 | private String password; 20 | private String type; 21 | private String driver; 22 | } 23 | -------------------------------------------------------------------------------- /mall-check/src/main/java/com/doudouj/dto/CheckResult.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto; 2 | 3 | import lombok.Data; 4 | 5 | import java.math.BigDecimal; 6 | import java.util.Date; 7 | 8 | @Data 9 | public class CheckResult { 10 | private Long id; 11 | 12 | private Long acctId; 13 | 14 | private Long merchantId; 15 | 16 | private Long payId; 17 | 18 | private Long tradeId; 19 | 20 | private Long acctFlowId; 21 | 22 | private BigDecimal amt; 23 | 24 | private BigDecimal discountAmt; 25 | 26 | private Boolean source; 27 | 28 | private Date payTime; 29 | 30 | private Boolean checkStatus; 31 | 32 | private Date checkTime; 33 | 34 | private Date createTime; 35 | 36 | private Date modifyTime; 37 | 38 | } -------------------------------------------------------------------------------- /mall-common/src/main/java/com/doudouj/shiro/ShiroRedisCacheUtil.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.shiro; 2 | 3 | import org.apache.shiro.cache.AbstractCacheManager; 4 | import org.apache.shiro.cache.Cache; 5 | import org.apache.shiro.cache.CacheException; 6 | import org.springframework.data.redis.core.RedisTemplate; 7 | 8 | /** 9 | * @ClassName: ShiroRedisCacheUtil 10 | * @Author: doudou 11 | * @Datetime: 2019/12/6-9:47 12 | * @Description: TODO 13 | */ 14 | public class ShiroRedisCacheUtil extends AbstractCacheManager { 15 | 16 | private RedisTemplate redisTemplate; 17 | 18 | @Override 19 | protected Cache createCache(String s) throws CacheException { 20 | // return new ShiroRedis 21 | return null; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/check/CheckResult.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.check; 2 | 3 | import lombok.Data; 4 | 5 | import java.math.BigDecimal; 6 | import java.util.Date; 7 | 8 | @Data 9 | public class CheckResult { 10 | private Long id; 11 | 12 | private Long acctId; 13 | 14 | private Long merchantId; 15 | 16 | private Long payId; 17 | 18 | private Long tradeId; 19 | 20 | private Long acctFlowId; 21 | 22 | private BigDecimal amt; 23 | 24 | private BigDecimal discountAmt; 25 | 26 | private Boolean source; 27 | 28 | private Date payTime; 29 | 30 | private Boolean checkStatus; 31 | 32 | private Date checkTime; 33 | 34 | private Date createTime; 35 | 36 | private Date modifyTime; 37 | 38 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dao/merchandise/MerchandiseMapper.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dao.merchandise; 2 | 3 | import com.doudouj.dto.merchandise.Merchandise; 4 | import com.doudouj.dto.merchandise.MerchandiseWithBLOBs; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface MerchandiseMapper { 9 | int deleteByPrimaryKey(Long id); 10 | 11 | int insert(MerchandiseWithBLOBs record); 12 | 13 | int insertSelective(MerchandiseWithBLOBs record); 14 | 15 | MerchandiseWithBLOBs selectByPrimaryKey(Long id); 16 | 17 | int updateByPrimaryKeySelective(MerchandiseWithBLOBs record); 18 | 19 | int updateByPrimaryKeyWithBLOBs(MerchandiseWithBLOBs record); 20 | 21 | int updateByPrimaryKey(Merchandise record); 22 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/merchandise/MerchandiseComment.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.merchandise; 2 | 3 | import lombok.Data; 4 | 5 | import java.util.Date; 6 | 7 | @Data 8 | public class MerchandiseComment { 9 | private Long id; 10 | 11 | private Long merchandiseId; 12 | 13 | private String acctName; 14 | 15 | private String merchandiseName; 16 | 17 | private Boolean star; 18 | 19 | private Boolean showStatus; 20 | 21 | private String merchandiseAttribute; 22 | 23 | private String pics; 24 | 25 | private String acctIcon; 26 | 27 | private Integer likeCount; 28 | 29 | private Integer unlikeCount; 30 | 31 | private Date createTime; 32 | 33 | private Date modifyTime; 34 | 35 | private String content; 36 | 37 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/sysconfig/SysRole.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.sysconfig; 2 | 3 | public class SysRole { 4 | private Long id; 5 | 6 | private String roleName; 7 | 8 | private String remark; 9 | 10 | public Long getId() { 11 | return id; 12 | } 13 | 14 | public void setId(Long id) { 15 | this.id = id; 16 | } 17 | 18 | public String getRoleName() { 19 | return roleName; 20 | } 21 | 22 | public void setRoleName(String roleName) { 23 | this.roleName = roleName == null ? null : roleName.trim(); 24 | } 25 | 26 | public String getRemark() { 27 | return remark; 28 | } 29 | 30 | public void setRemark(String remark) { 31 | this.remark = remark == null ? null : remark.trim(); 32 | } 33 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/pay/PayChannelType.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.pay; 2 | 3 | public class PayChannelType { 4 | private Long id; 5 | 6 | private String pctName; 7 | 8 | private String pctShortName; 9 | 10 | public Long getId() { 11 | return id; 12 | } 13 | 14 | public void setId(Long id) { 15 | this.id = id; 16 | } 17 | 18 | public String getPctName() { 19 | return pctName; 20 | } 21 | 22 | public void setPctName(String pctName) { 23 | this.pctName = pctName == null ? null : pctName.trim(); 24 | } 25 | 26 | public String getPctShortName() { 27 | return pctShortName; 28 | } 29 | 30 | public void setPctShortName(String pctShortName) { 31 | this.pctShortName = pctShortName == null ? null : pctShortName.trim(); 32 | } 33 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/controller/sysconfig/SysRoleController.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.controller.sysconfig; 2 | 3 | import com.doudouj.dto.sysconfig.SysRole; 4 | import com.doudouj.service.sysconfig.SysRoleService; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.web.bind.annotation.RequestMapping; 7 | import org.springframework.web.bind.annotation.RestController; 8 | 9 | /** 10 | * @ClassName: SysRoleController 11 | * @Author: doudou 12 | * @Datetime: 2019/11/25-9:35 13 | * @Description: 系统角色 14 | */ 15 | @RestController 16 | @RequestMapping("/sysRole") 17 | public class SysRoleController { 18 | 19 | @Autowired 20 | private SysRoleService sysRoleService; 21 | 22 | @RequestMapping("/findById") 23 | public SysRole findById(Long id) { 24 | return sysRoleService.findById(id); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/serviceImpl/sysconfig/SysRoleServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.serviceImpl.sysconfig; 2 | 3 | import com.doudouj.dao.sysconfig.SysRoleMapper; 4 | import com.doudouj.dto.sysconfig.SysRole; 5 | import com.doudouj.service.sysconfig.SysRoleService; 6 | import lombok.extern.slf4j.Slf4j; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Service; 9 | 10 | /** 11 | * @ClassName: SysRoleServiceImpl 12 | * @Author: doudou 13 | * @Datetime: 2019/11/25-9:38 14 | * @Description: 系统角色api实现类 15 | */ 16 | @Service 17 | @Slf4j 18 | public class SysRoleServiceImpl implements SysRoleService { 19 | 20 | @Autowired 21 | private SysRoleMapper sysRoleMapper; 22 | 23 | @Override 24 | public SysRole findById(Long id) { 25 | return sysRoleMapper.selectByPrimaryKey(id); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /mall-common/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | datasource: 3 | driver-class-name: com.mysql.cj.jdbc.Driver 4 | url: jdbc:mysql://127.0.0.1:3306/mallpf_pay?serverTimezone=UTC 5 | username: root 6 | password: 12345678 7 | 8 | #rocketmq: 9 | # consumer: 10 | ## rocketmq的请求地址 11 | # namesrvAddr: 127.0.0.1:9876 12 | ## 发送同一类消息的设置为同一个group,保证唯一,默认不需要设置,rocketmq会使用ip@pid(pid代表jvm名字)作为唯一标识 13 | # groupName: mallpf 14 | ## 如果需要同一个jvm中不同的producer往不同的mq集群发送消息,需要设置不同的instanceName 15 | # instanceName: consumer.mallpf 16 | # producer: 17 | ## 发送消息超时时间 18 | # sendMsgTimeout: 10000 19 | ## 最大消息限制 20 | # maxMessageSize: 9999999 21 | ## 消息大小超出配置对消息压缩 22 | # compressOver: 40000 23 | # topic: topic-mallpf 24 | # tag: tag-mallpf 25 | 26 | rocketmq: 27 | name-server: 127.0.0.1:9876 28 | producer: 29 | group: pay-group 30 | send-message-timeout: 10000 -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/coupon/Coupon.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.coupon; 2 | 3 | import lombok.Data; 4 | 5 | import java.math.BigDecimal; 6 | import java.util.Date; 7 | 8 | @Data 9 | public class Coupon { 10 | private Long id; 11 | 12 | private Boolean type; 13 | 14 | private String name; 15 | 16 | private Boolean platform; 17 | 18 | private Integer count; 19 | 20 | private BigDecimal amount; 21 | 22 | private Integer perLimit; 23 | 24 | private Date startTime; 25 | 26 | private Date endTime; 27 | 28 | private Boolean useType; 29 | 30 | private String note; 31 | 32 | private Integer publishCount; 33 | 34 | private Integer useCount; 35 | 36 | private Integer receiveCount; 37 | 38 | private Date receiveTime; 39 | 40 | private String code; 41 | 42 | private Date createTime; 43 | 44 | private Date modifyTime; 45 | 46 | } -------------------------------------------------------------------------------- /mall-trade/src/main/java/com/doudouj/dto/TradeItem.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto; 2 | 3 | import lombok.Data; 4 | 5 | import java.math.BigDecimal; 6 | import java.util.Date; 7 | 8 | @Data 9 | public class TradeItem { 10 | private Long tradeId; 11 | 12 | private Long merchantId; 13 | 14 | private Long merchandiseId; 15 | 16 | private String merchandisePic; 17 | 18 | private String merchandiseName; 19 | 20 | private String brand; 21 | 22 | private BigDecimal price; 23 | 24 | private Integer quantity; 25 | 26 | private Long merchandiseCategoryId; 27 | 28 | private BigDecimal promotionAmt; 29 | 30 | private BigDecimal couponAmt; 31 | 32 | private BigDecimal pointAmt; 33 | 34 | private BigDecimal payAmt; 35 | 36 | private Integer giftGrowth; 37 | 38 | private Integer giftPoint; 39 | 40 | private Date createTime; 41 | 42 | private Date modifyTime; 43 | 44 | } -------------------------------------------------------------------------------- /mall-admin/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | mallplatform 7 | com.doudouJ 8 | 1.0-SNAPSHOT 9 | 10 | 4.0.0 11 | 12 | mall-admin 13 | 14 | 15 | 16 | 17 | src/main/resources 18 | 19 | **/*.yml 20 | **/*.xml 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/trade/TradeItem.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.trade; 2 | 3 | import lombok.Data; 4 | 5 | import java.math.BigDecimal; 6 | import java.util.Date; 7 | 8 | @Data 9 | public class TradeItem { 10 | private Long tradeId; 11 | 12 | private Long merchantId; 13 | 14 | private Long merchandiseId; 15 | 16 | private String merchandisePic; 17 | 18 | private String merchandiseName; 19 | 20 | private String brand; 21 | 22 | private BigDecimal price; 23 | 24 | private Integer quantity; 25 | 26 | private Long merchandiseCategoryId; 27 | 28 | private BigDecimal promotionAmt; 29 | 30 | private BigDecimal couponAmt; 31 | 32 | private BigDecimal pointAmt; 33 | 34 | private BigDecimal payAmt; 35 | 36 | private Integer giftGrowth; 37 | 38 | private Integer giftPoint; 39 | 40 | private Date createTime; 41 | 42 | private Date modifyTime; 43 | 44 | } -------------------------------------------------------------------------------- /mall-trade/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | mallplatform 7 | com.doudouJ 8 | 1.0-SNAPSHOT 9 | 10 | 4.0.0 11 | 12 | mall-trade 13 | 14 | 15 | 16 | 17 | src/main/resources 18 | 19 | **/*.yml 20 | **/*.xml 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/pay/PayChannel.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.pay; 2 | 3 | public class PayChannel { 4 | private Long id; 5 | 6 | private String payChannelName; 7 | 8 | private String payChannelShortName; 9 | 10 | public Long getId() { 11 | return id; 12 | } 13 | 14 | public void setId(Long id) { 15 | this.id = id; 16 | } 17 | 18 | public String getPayChannelName() { 19 | return payChannelName; 20 | } 21 | 22 | public void setPayChannelName(String payChannelName) { 23 | this.payChannelName = payChannelName == null ? null : payChannelName.trim(); 24 | } 25 | 26 | public String getPayChannelShortName() { 27 | return payChannelShortName; 28 | } 29 | 30 | public void setPayChannelShortName(String payChannelShortName) { 31 | this.payChannelShortName = payChannelShortName == null ? null : payChannelShortName.trim(); 32 | } 33 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/controller/check/CheckAccountFlowController.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.controller.check; 2 | 3 | import com.doudouj.dto.check.CheckAccountFlow; 4 | import com.doudouj.service.check.CheckAccountFlowService; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.web.bind.annotation.RequestMapping; 7 | import org.springframework.web.bind.annotation.RestController; 8 | 9 | /** 10 | * @ClassName: CheckAccountFlowController 11 | * @Author: doudou 12 | * @Datetime: 2019/11/25-16:37 13 | * @Description: 账户流水对账 14 | */ 15 | @RestController 16 | @RequestMapping("/checkAccountFlow") 17 | public class CheckAccountFlowController { 18 | 19 | @Autowired 20 | private CheckAccountFlowService checkAccountFlowService; 21 | 22 | @RequestMapping("/findById") 23 | public CheckAccountFlow findById(Long id) { 24 | return checkAccountFlowService.findById(id); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/serviceImpl/check/CheckAccountFlowServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.serviceImpl.check; 2 | 3 | import com.doudouj.dao.check.CheckAccountFlowMapper; 4 | import com.doudouj.dto.check.CheckAccountFlow; 5 | import com.doudouj.service.check.CheckAccountFlowService; 6 | import lombok.extern.slf4j.Slf4j; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Service; 9 | 10 | /** 11 | * @ClassName: CheckAccountFlowServiceImpl 12 | * @Author: doudou 13 | * @Datetime: 2019/11/25-16:41 14 | * @Description: 账户流水对账实现类 15 | */ 16 | @Service 17 | @Slf4j 18 | public class CheckAccountFlowServiceImpl implements CheckAccountFlowService { 19 | 20 | @Autowired 21 | private CheckAccountFlowMapper checkAccountFlowMapper; 22 | 23 | @Override 24 | public CheckAccountFlow findById(Long id) { 25 | return checkAccountFlowMapper.selectByPrimaryKey(id); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/sysconfig/PayFlow.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.sysconfig; 2 | 3 | public class PayFlow { 4 | private Long id; 5 | 6 | private String name; 7 | 8 | private Long pid; 9 | 10 | private String remark; 11 | 12 | public Long getId() { 13 | return id; 14 | } 15 | 16 | public void setId(Long id) { 17 | this.id = id; 18 | } 19 | 20 | public String getName() { 21 | return name; 22 | } 23 | 24 | public void setName(String name) { 25 | this.name = name == null ? null : name.trim(); 26 | } 27 | 28 | public Long getPid() { 29 | return pid; 30 | } 31 | 32 | public void setPid(Long pid) { 33 | this.pid = pid; 34 | } 35 | 36 | public String getRemark() { 37 | return remark; 38 | } 39 | 40 | public void setRemark(String remark) { 41 | this.remark = remark == null ? null : remark.trim(); 42 | } 43 | } -------------------------------------------------------------------------------- /mall-admin/src/test/java/com/doudouj/AccountInfoTest.java: -------------------------------------------------------------------------------- 1 | package com.doudouj; 2 | 3 | import com.doudouj.dto.accounts.AccountInfo; 4 | import com.doudouj.service.accounts.AccountInfoService; 5 | import org.junit.Test; 6 | import org.junit.runner.RunWith; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.boot.test.context.SpringBootTest; 9 | import org.springframework.test.context.junit4.SpringRunner; 10 | 11 | import javax.annotation.Resource; 12 | 13 | /** 14 | * @ClassName: AccountInfoTest 15 | * @Author: doudou 16 | * @Datetime: 2019/11/26-18:47 17 | * @Description: 账户信息单元测试类 18 | */ 19 | @RunWith(SpringRunner.class) 20 | @SpringBootTest 21 | public class AccountInfoTest { 22 | 23 | @Resource 24 | private AccountInfoService accountInfoService; 25 | 26 | @Test 27 | public void findById() { 28 | AccountInfo accountInfo = accountInfoService.findById(1); 29 | System.out.println(accountInfo.toString()); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | #### 自动生成代码 2 | mybatis-generator,自动生成实体类、dao和mapper文件 3 | 4 | resource目录下的GenerateScripts目录下的文件,在mall-generator项目下的pom.xml文件中配置各个数据库配置文件,会自动生成相对应的代码。 5 | 配置完文件之后,在mall-generate目录下使用maven命令:mvn install就可以生成代码咯。 6 | 7 | ![1574341253054](https://github.com/doudouCN/mallplatform/raw/master/resource/pic/1574341253054.png) 8 | 9 | #### 使用lombok 10 | 自动生成的代码DTO中都带有set、get方法,使用@Data注解简化代码, Date类型都统一更换为LocalDateTime 11 | 12 | #### 引入hutool-all工具包 13 | 只有当hutool工具包中没有相关方法的时候,才推荐使用自己写的方法 14 | 15 | #### 多数据源配置 16 | 因为后管需要查看所有数据库中的数据(7个),所以使用多数据源,使用druid连接池,数据库的配置信息在admin项目下的application.yml 17 | 配置文件中。关闭数据源的自动加载,在@SpringBootApplication后面使用exclude 18 | 通过自定义创建数据源来创建各个数据库连接,对应的配置类在config目录下 19 | @ConfigurationProperties ,推荐使用这个注解配置多数据源信息 20 | 添加测试用例 21 | 22 | #### 添加Rocketmq 23 | 添加mq的简单实用demo,之后在此基础上构建消息中心、消息处理工具等,使用rocketmq的4.4.0版本, 24 | demo就是启动common项目的时候会发送消息到mq,pay项目中会消费这个消息,启动两个项目就可以看到。 25 | rocketmq的可视化界面中也可以看到消息的情况 26 | 27 | #### 添加Redis 28 | 集成redis和shiro -------------------------------------------------------------------------------- /mall-common/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | mallplatform 7 | com.doudouJ 8 | 1.0-SNAPSHOT 9 | 10 | 4.0.0 11 | 12 | mall-common 13 | 14 | 15 | 25 | 26 | -------------------------------------------------------------------------------- /mall-trade/src/main/java/com/doudouj/dto/Trade.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto; 2 | 3 | import lombok.Data; 4 | 5 | import java.math.BigDecimal; 6 | import java.util.Date; 7 | 8 | @Data 9 | public class Trade { 10 | private Long tradeId; 11 | 12 | private Long acctId; 13 | 14 | private Long couponId; 15 | 16 | private BigDecimal amt; 17 | 18 | private BigDecimal discountAmt; 19 | 20 | private BigDecimal freightAmt; 21 | 22 | private BigDecimal promotionAmt; 23 | 24 | private BigDecimal pointAmt; 25 | 26 | private BigDecimal couponAmt; 27 | 28 | private BigDecimal payAmt; 29 | 30 | private Boolean payChannel; 31 | 32 | private Boolean sourceType; 33 | 34 | private Boolean tradeStatus; 35 | 36 | private Boolean deliveryCompany; 37 | 38 | private Integer autoConfirmDay; 39 | 40 | private Boolean confirmStatus; 41 | 42 | private Integer usePoint; 43 | 44 | private Date payTime; 45 | 46 | private Date createTime; 47 | 48 | private Date modifyTime; 49 | 50 | } -------------------------------------------------------------------------------- /mall-trade/src/main/java/com/doudouj/dto/TradeDetail.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto; 2 | 3 | import lombok.Data; 4 | 5 | import java.util.Date; 6 | 7 | @Data 8 | public class TradeDetail { 9 | private Long tradeId; 10 | 11 | private Integer point; 12 | 13 | private Integer growth; 14 | 15 | private Boolean invoiceType; 16 | 17 | private String invoiceHeader; 18 | 19 | private String invoiceContent; 20 | 21 | private String invoiceReceivePhone; 22 | 23 | private String invoiceReceiveEmail; 24 | 25 | private String receiveName; 26 | 27 | private String receivePhone; 28 | 29 | private String receivePostCode; 30 | 31 | private String receiveProvince; 32 | 33 | private String receiveCity; 34 | 35 | private String receiveRegion; 36 | 37 | private String receiveDetailAddress; 38 | 39 | private String note; 40 | 41 | private Date deliveryTime; 42 | 43 | private Date receiveTime; 44 | 45 | private Date createTime; 46 | 47 | private Date modifyTime; 48 | 49 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/trade/Trade.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.trade; 2 | 3 | import lombok.Data; 4 | 5 | import java.math.BigDecimal; 6 | import java.util.Date; 7 | 8 | @Data 9 | public class Trade { 10 | private Long tradeId; 11 | 12 | private Long acctId; 13 | 14 | private Long couponId; 15 | 16 | private BigDecimal amt; 17 | 18 | private BigDecimal discountAmt; 19 | 20 | private BigDecimal freightAmt; 21 | 22 | private BigDecimal promotionAmt; 23 | 24 | private BigDecimal pointAmt; 25 | 26 | private BigDecimal couponAmt; 27 | 28 | private BigDecimal payAmt; 29 | 30 | private Boolean payChannel; 31 | 32 | private Boolean sourceType; 33 | 34 | private Boolean tradeStatus; 35 | 36 | private Boolean deliveryCompany; 37 | 38 | private Integer autoConfirmDay; 39 | 40 | private Boolean confirmStatus; 41 | 42 | private Integer usePoint; 43 | 44 | private Date payTime; 45 | 46 | private Date createTime; 47 | 48 | private Date modifyTime; 49 | 50 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/trade/TradeDetail.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.trade; 2 | 3 | import lombok.Data; 4 | 5 | import java.util.Date; 6 | 7 | @Data 8 | public class TradeDetail { 9 | private Long tradeId; 10 | 11 | private Integer point; 12 | 13 | private Integer growth; 14 | 15 | private Boolean invoiceType; 16 | 17 | private String invoiceHeader; 18 | 19 | private String invoiceContent; 20 | 21 | private String invoiceReceivePhone; 22 | 23 | private String invoiceReceiveEmail; 24 | 25 | private String receiveName; 26 | 27 | private String receivePhone; 28 | 29 | private String receivePostCode; 30 | 31 | private String receiveProvince; 32 | 33 | private String receiveCity; 34 | 35 | private String receiveRegion; 36 | 37 | private String receiveDetailAddress; 38 | 39 | private String note; 40 | 41 | private Date deliveryTime; 42 | 43 | private Date receiveTime; 44 | 45 | private Date createTime; 46 | 47 | private Date modifyTime; 48 | 49 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/serviceImpl/accounts/AccountInfoServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.serviceImpl.accounts; 2 | 3 | import com.doudouj.dao.accounts.AccountInfoMapper; 4 | import com.doudouj.dto.accounts.AccountInfo; 5 | import com.doudouj.service.accounts.AccountInfoService; 6 | import lombok.extern.slf4j.Slf4j; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Service; 9 | 10 | import java.util.List; 11 | 12 | /** 13 | * @ClassName: AccountInfoServiceImpl 14 | * @Author: doudou 15 | * @Datetime: 2019/11/22-14:16 16 | * @Description: 账户信息服务实现类 17 | */ 18 | @Service 19 | @Slf4j 20 | public class AccountInfoServiceImpl implements AccountInfoService { 21 | 22 | @Autowired 23 | private AccountInfoMapper accountInfoMapper; 24 | 25 | @Override 26 | public List listAll() { 27 | return accountInfoMapper.listAll(); 28 | } 29 | 30 | @Override 31 | public AccountInfo findById(long id) { 32 | return accountInfoMapper.selectByPrimaryKey(id); 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/merchandise/MerchandiseAttributeCategory.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.merchandise; 2 | 3 | public class MerchandiseAttributeCategory { 4 | private Long id; 5 | 6 | private String name; 7 | 8 | private Integer attributeCount; 9 | 10 | private Integer paramCount; 11 | 12 | public Long getId() { 13 | return id; 14 | } 15 | 16 | public void setId(Long id) { 17 | this.id = id; 18 | } 19 | 20 | public String getName() { 21 | return name; 22 | } 23 | 24 | public void setName(String name) { 25 | this.name = name == null ? null : name.trim(); 26 | } 27 | 28 | public Integer getAttributeCount() { 29 | return attributeCount; 30 | } 31 | 32 | public void setAttributeCount(Integer attributeCount) { 33 | this.attributeCount = attributeCount; 34 | } 35 | 36 | public Integer getParamCount() { 37 | return paramCount; 38 | } 39 | 40 | public void setParamCount(Integer paramCount) { 41 | this.paramCount = paramCount; 42 | } 43 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/controller/accounts/AccountInfoController.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.controller.accounts; 2 | 3 | import com.doudouj.dto.accounts.AccountInfo; 4 | import com.doudouj.service.accounts.AccountInfoService; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.web.bind.annotation.RequestMapping; 7 | import org.springframework.web.bind.annotation.RestController; 8 | 9 | import java.util.List; 10 | 11 | /** 12 | * @ClassName: AccountInfoController 13 | * @Author: doudou 14 | * @Datetime: 2019/11/22-14:02 15 | * @Description: 账户信息 16 | */ 17 | @RestController 18 | @RequestMapping("/accountInfo") 19 | public class AccountInfoController { 20 | 21 | @Autowired 22 | private AccountInfoService accountInfoService; 23 | 24 | @RequestMapping("/query") 25 | public List accountInfoQuery() { 26 | return accountInfoService.listAll(); 27 | } 28 | 29 | @RequestMapping("/findById") 30 | public AccountInfo findById(long id) { 31 | return accountInfoService.findById(id); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/coupon/CouponMerchandise.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.coupon; 2 | 3 | public class CouponMerchandise { 4 | private Long id; 5 | 6 | private Long couponId; 7 | 8 | private Long merchandiseId; 9 | 10 | private String merchandiseName; 11 | 12 | public Long getId() { 13 | return id; 14 | } 15 | 16 | public void setId(Long id) { 17 | this.id = id; 18 | } 19 | 20 | public Long getCouponId() { 21 | return couponId; 22 | } 23 | 24 | public void setCouponId(Long couponId) { 25 | this.couponId = couponId; 26 | } 27 | 28 | public Long getMerchandiseId() { 29 | return merchandiseId; 30 | } 31 | 32 | public void setMerchandiseId(Long merchandiseId) { 33 | this.merchandiseId = merchandiseId; 34 | } 35 | 36 | public String getMerchandiseName() { 37 | return merchandiseName; 38 | } 39 | 40 | public void setMerchandiseName(String merchandiseName) { 41 | this.merchandiseName = merchandiseName == null ? null : merchandiseName.trim(); 42 | } 43 | } -------------------------------------------------------------------------------- /mall-common/src/main/java/com/doudouj/MallCommonApp.java: -------------------------------------------------------------------------------- 1 | package com.doudouj; 2 | 3 | import org.apache.rocketmq.spring.core.RocketMQTemplate; 4 | import org.springframework.boot.CommandLineRunner; 5 | import org.springframework.boot.SpringApplication; 6 | import org.springframework.boot.autoconfigure.SpringBootApplication; 7 | import org.springframework.context.ApplicationContext; 8 | import org.springframework.context.annotation.Bean; 9 | 10 | import javax.annotation.Resource; 11 | 12 | /** 13 | * @ClassName: MallCommonApp 14 | * @Author: doudou 15 | * @Datetime: 2019/11/27-16:43 16 | * @Description: 公共启动类 17 | */ 18 | @SpringBootApplication 19 | public class MallCommonApp { 20 | 21 | @Resource 22 | private RocketMQTemplate rocketMQTemplate; 23 | 24 | public static void main(String[] args) { 25 | SpringApplication.run(MallCommonApp.class, args); 26 | } 27 | 28 | @Bean 29 | public CommandLineRunner commandLineRunner(ApplicationContext ctx) { 30 | return args -> { 31 | rocketMQTemplate.convertAndSend("javastudy", "good good study, day day up"); 32 | }; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/merchandise/MerchandiseAttributeValue.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.merchandise; 2 | 3 | public class MerchandiseAttributeValue { 4 | private Long id; 5 | 6 | private Long merchandiseId; 7 | 8 | private Long merchandiseAttributeId; 9 | 10 | private String value; 11 | 12 | public Long getId() { 13 | return id; 14 | } 15 | 16 | public void setId(Long id) { 17 | this.id = id; 18 | } 19 | 20 | public Long getMerchandiseId() { 21 | return merchandiseId; 22 | } 23 | 24 | public void setMerchandiseId(Long merchandiseId) { 25 | this.merchandiseId = merchandiseId; 26 | } 27 | 28 | public Long getMerchandiseAttributeId() { 29 | return merchandiseAttributeId; 30 | } 31 | 32 | public void setMerchandiseAttributeId(Long merchandiseAttributeId) { 33 | this.merchandiseAttributeId = merchandiseAttributeId; 34 | } 35 | 36 | public String getValue() { 37 | return value; 38 | } 39 | 40 | public void setValue(String value) { 41 | this.value = value == null ? null : value.trim(); 42 | } 43 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/sysconfig/SysJob.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.sysconfig; 2 | 3 | public class SysJob { 4 | private Long id; 5 | 6 | private String name; 7 | 8 | private Integer sort; 9 | 10 | private Long orgId; 11 | 12 | private String remark; 13 | 14 | public Long getId() { 15 | return id; 16 | } 17 | 18 | public void setId(Long id) { 19 | this.id = id; 20 | } 21 | 22 | public String getName() { 23 | return name; 24 | } 25 | 26 | public void setName(String name) { 27 | this.name = name == null ? null : name.trim(); 28 | } 29 | 30 | public Integer getSort() { 31 | return sort; 32 | } 33 | 34 | public void setSort(Integer sort) { 35 | this.sort = sort; 36 | } 37 | 38 | public Long getOrgId() { 39 | return orgId; 40 | } 41 | 42 | public void setOrgId(Long orgId) { 43 | this.orgId = orgId; 44 | } 45 | 46 | public String getRemark() { 47 | return remark; 48 | } 49 | 50 | public void setRemark(String remark) { 51 | this.remark = remark == null ? null : remark.trim(); 52 | } 53 | } -------------------------------------------------------------------------------- /mall-trade/src/main/java/com/doudouj/dto/TradeReturnApply.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto; 2 | 3 | import lombok.Data; 4 | 5 | import java.math.BigDecimal; 6 | import java.util.Date; 7 | 8 | @Data 9 | public class TradeReturnApply { 10 | private Long id; 11 | 12 | private Long tradeId; 13 | 14 | private Long acctId; 15 | 16 | private String acctName; 17 | 18 | private Long merchandiseId; 19 | 20 | private Long merchantId; 21 | 22 | private BigDecimal returnAmt; 23 | 24 | private String returnName; 25 | 26 | private String returnPhone; 27 | 28 | private Boolean returnStatus; 29 | 30 | private Date handleTime; 31 | 32 | private String merchandisePic; 33 | 34 | private String merchandiseName; 35 | 36 | private String brand; 37 | 38 | private String merchandiseAttribute; 39 | 40 | private Integer merchandiseCount; 41 | 42 | private BigDecimal merchandisePrice; 43 | 44 | private BigDecimal merchandisePayPrice; 45 | 46 | private String reason; 47 | 48 | private String proofPics; 49 | 50 | private String handleNote; 51 | 52 | private String handleMan; 53 | 54 | private Date createTime; 55 | 56 | private Date modifyTime; 57 | 58 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/trade/TradeReturnApply.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.trade; 2 | 3 | import lombok.Data; 4 | 5 | import java.math.BigDecimal; 6 | import java.util.Date; 7 | 8 | @Data 9 | public class TradeReturnApply { 10 | private Long id; 11 | 12 | private Long tradeId; 13 | 14 | private Long acctId; 15 | 16 | private String acctName; 17 | 18 | private Long merchandiseId; 19 | 20 | private Long merchantId; 21 | 22 | private BigDecimal returnAmt; 23 | 24 | private String returnName; 25 | 26 | private String returnPhone; 27 | 28 | private Boolean returnStatus; 29 | 30 | private Date handleTime; 31 | 32 | private String merchandisePic; 33 | 34 | private String merchandiseName; 35 | 36 | private String brand; 37 | 38 | private String merchandiseAttribute; 39 | 40 | private Integer merchandiseCount; 41 | 42 | private BigDecimal merchandisePrice; 43 | 44 | private BigDecimal merchandisePayPrice; 45 | 46 | private String reason; 47 | 48 | private String proofPics; 49 | 50 | private String handleNote; 51 | 52 | private String handleMan; 53 | 54 | private Date createTime; 55 | 56 | private Date modifyTime; 57 | 58 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/merchandise/MerchandiseWithBLOBs.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.merchandise; 2 | 3 | public class MerchandiseWithBLOBs extends Merchandise { 4 | private String description; 5 | 6 | private String detailDesc; 7 | 8 | private String detailHtml; 9 | 10 | private String detailMobileHtml; 11 | 12 | public String getDescription() { 13 | return description; 14 | } 15 | 16 | public void setDescription(String description) { 17 | this.description = description == null ? null : description.trim(); 18 | } 19 | 20 | public String getDetailDesc() { 21 | return detailDesc; 22 | } 23 | 24 | public void setDetailDesc(String detailDesc) { 25 | this.detailDesc = detailDesc == null ? null : detailDesc.trim(); 26 | } 27 | 28 | public String getDetailHtml() { 29 | return detailHtml; 30 | } 31 | 32 | public void setDetailHtml(String detailHtml) { 33 | this.detailHtml = detailHtml == null ? null : detailHtml.trim(); 34 | } 35 | 36 | public String getDetailMobileHtml() { 37 | return detailMobileHtml; 38 | } 39 | 40 | public void setDetailMobileHtml(String detailMobileHtml) { 41 | this.detailMobileHtml = detailMobileHtml == null ? null : detailMobileHtml.trim(); 42 | } 43 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/sysconfig/SysMenu.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.sysconfig; 2 | 3 | public class SysMenu { 4 | private Long id; 5 | 6 | private String name; 7 | 8 | private String component; 9 | 10 | private Long pid; 11 | 12 | private Integer sort; 13 | 14 | private String path; 15 | 16 | public Long getId() { 17 | return id; 18 | } 19 | 20 | public void setId(Long id) { 21 | this.id = id; 22 | } 23 | 24 | public String getName() { 25 | return name; 26 | } 27 | 28 | public void setName(String name) { 29 | this.name = name == null ? null : name.trim(); 30 | } 31 | 32 | public String getComponent() { 33 | return component; 34 | } 35 | 36 | public void setComponent(String component) { 37 | this.component = component == null ? null : component.trim(); 38 | } 39 | 40 | public Long getPid() { 41 | return pid; 42 | } 43 | 44 | public void setPid(Long pid) { 45 | this.pid = pid; 46 | } 47 | 48 | public Integer getSort() { 49 | return sort; 50 | } 51 | 52 | public void setSort(Integer sort) { 53 | this.sort = sort; 54 | } 55 | 56 | public String getPath() { 57 | return path; 58 | } 59 | 60 | public void setPath(String path) { 61 | this.path = path == null ? null : path.trim(); 62 | } 63 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/sysconfig/SysDataDict.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.sysconfig; 2 | 3 | public class SysDataDict { 4 | private Long id; 5 | 6 | private Long dictId; 7 | 8 | private String name; 9 | 10 | private String value; 11 | 12 | private String label; 13 | 14 | private Integer sort; 15 | 16 | public Long getId() { 17 | return id; 18 | } 19 | 20 | public void setId(Long id) { 21 | this.id = id; 22 | } 23 | 24 | public Long getDictId() { 25 | return dictId; 26 | } 27 | 28 | public void setDictId(Long dictId) { 29 | this.dictId = dictId; 30 | } 31 | 32 | public String getName() { 33 | return name; 34 | } 35 | 36 | public void setName(String name) { 37 | this.name = name == null ? null : name.trim(); 38 | } 39 | 40 | public String getValue() { 41 | return value; 42 | } 43 | 44 | public void setValue(String value) { 45 | this.value = value == null ? null : value.trim(); 46 | } 47 | 48 | public String getLabel() { 49 | return label; 50 | } 51 | 52 | public void setLabel(String label) { 53 | this.label = label == null ? null : label.trim(); 54 | } 55 | 56 | public Integer getSort() { 57 | return sort; 58 | } 59 | 60 | public void setSort(Integer sort) { 61 | this.sort = sort; 62 | } 63 | } -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/dto/merchandise/Merchandise.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.merchandise; 2 | 3 | import lombok.Data; 4 | 5 | import java.math.BigDecimal; 6 | import java.util.Date; 7 | 8 | @Data 9 | public class Merchandise { 10 | private Long id; 11 | 12 | private Long brandId; 13 | 14 | private Long merchandiseCategoryId; 15 | 16 | private Long merchandiseAttributeCategoryId; 17 | 18 | private String name; 19 | 20 | private String pic; 21 | 22 | private Boolean publishStatus; 23 | 24 | private Boolean newStatus; 25 | 26 | private Boolean recommandStatus; 27 | 28 | private Boolean verifyStatus; 29 | 30 | private Integer sort; 31 | 32 | private Integer sale; 33 | 34 | private BigDecimal price; 35 | 36 | private BigDecimal promotionPrice; 37 | 38 | private Integer giftGrowth; 39 | 40 | private Integer giftPoint; 41 | 42 | private Integer usePointLimit; 43 | 44 | private String subTitle; 45 | 46 | private BigDecimal marketPrice; 47 | 48 | private Integer stock; 49 | 50 | private Integer lowStock; 51 | 52 | private String unit; 53 | 54 | private String serviceIds; 55 | 56 | private String keywords; 57 | 58 | private String albumPics; 59 | 60 | private String detailTitle; 61 | 62 | private Date promotionStartTime; 63 | 64 | private Date promotionEndTime; 65 | 66 | private Integer promotionPerLimit; 67 | 68 | private Boolean promotionType; 69 | 70 | private Date createTime; 71 | 72 | private Date modifyTime; 73 | 74 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/pay/Merchandise.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.pay; 2 | 3 | public class Merchandise { 4 | private Long id; 5 | 6 | private String pccName; 7 | 8 | private String pccShortName; 9 | 10 | private Long pctId; 11 | 12 | private String configParams; 13 | 14 | private Boolean pccStatus; 15 | 16 | public Long getId() { 17 | return id; 18 | } 19 | 20 | public void setId(Long id) { 21 | this.id = id; 22 | } 23 | 24 | public String getPccName() { 25 | return pccName; 26 | } 27 | 28 | public void setPccName(String pccName) { 29 | this.pccName = pccName == null ? null : pccName.trim(); 30 | } 31 | 32 | public String getPccShortName() { 33 | return pccShortName; 34 | } 35 | 36 | public void setPccShortName(String pccShortName) { 37 | this.pccShortName = pccShortName == null ? null : pccShortName.trim(); 38 | } 39 | 40 | public Long getPctId() { 41 | return pctId; 42 | } 43 | 44 | public void setPctId(Long pctId) { 45 | this.pctId = pctId; 46 | } 47 | 48 | public String getConfigParams() { 49 | return configParams; 50 | } 51 | 52 | public void setConfigParams(String configParams) { 53 | this.configParams = configParams == null ? null : configParams.trim(); 54 | } 55 | 56 | public Boolean getPccStatus() { 57 | return pccStatus; 58 | } 59 | 60 | public void setPccStatus(Boolean pccStatus) { 61 | this.pccStatus = pccStatus; 62 | } 63 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/coupon/CouponMerchandiseCategory.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.coupon; 2 | 3 | public class CouponMerchandiseCategory { 4 | private Long id; 5 | 6 | private Long couponId; 7 | 8 | private Long merchandiseCategoryId; 9 | 10 | private String merchandiseCategoryName; 11 | 12 | private String pMerchandiseCategoryName; 13 | 14 | public Long getId() { 15 | return id; 16 | } 17 | 18 | public void setId(Long id) { 19 | this.id = id; 20 | } 21 | 22 | public Long getCouponId() { 23 | return couponId; 24 | } 25 | 26 | public void setCouponId(Long couponId) { 27 | this.couponId = couponId; 28 | } 29 | 30 | public Long getMerchandiseCategoryId() { 31 | return merchandiseCategoryId; 32 | } 33 | 34 | public void setMerchandiseCategoryId(Long merchandiseCategoryId) { 35 | this.merchandiseCategoryId = merchandiseCategoryId; 36 | } 37 | 38 | public String getMerchandiseCategoryName() { 39 | return merchandiseCategoryName; 40 | } 41 | 42 | public void setMerchandiseCategoryName(String merchandiseCategoryName) { 43 | this.merchandiseCategoryName = merchandiseCategoryName == null ? null : merchandiseCategoryName.trim(); 44 | } 45 | 46 | public String getpMerchandiseCategoryName() { 47 | return pMerchandiseCategoryName; 48 | } 49 | 50 | public void setpMerchandiseCategoryName(String pMerchandiseCategoryName) { 51 | this.pMerchandiseCategoryName = pMerchandiseCategoryName == null ? null : pMerchandiseCategoryName.trim(); 52 | } 53 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/coupon/HomeBrand.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.coupon; 2 | 3 | import java.util.Date; 4 | 5 | public class HomeBrand { 6 | private Long id; 7 | 8 | private Long brandId; 9 | 10 | private String brandName; 11 | 12 | private Boolean recommendStatus; 13 | 14 | private Integer sort; 15 | 16 | private Date createTime; 17 | 18 | private Date modifyTime; 19 | 20 | public Long getId() { 21 | return id; 22 | } 23 | 24 | public void setId(Long id) { 25 | this.id = id; 26 | } 27 | 28 | public Long getBrandId() { 29 | return brandId; 30 | } 31 | 32 | public void setBrandId(Long brandId) { 33 | this.brandId = brandId; 34 | } 35 | 36 | public String getBrandName() { 37 | return brandName; 38 | } 39 | 40 | public void setBrandName(String brandName) { 41 | this.brandName = brandName == null ? null : brandName.trim(); 42 | } 43 | 44 | public Boolean getRecommendStatus() { 45 | return recommendStatus; 46 | } 47 | 48 | public void setRecommendStatus(Boolean recommendStatus) { 49 | this.recommendStatus = recommendStatus; 50 | } 51 | 52 | public Integer getSort() { 53 | return sort; 54 | } 55 | 56 | public void setSort(Integer sort) { 57 | this.sort = sort; 58 | } 59 | 60 | public Date getCreateTime() { 61 | return createTime; 62 | } 63 | 64 | public void setCreateTime(Date createTime) { 65 | this.createTime = createTime; 66 | } 67 | 68 | public Date getModifyTime() { 69 | return modifyTime; 70 | } 71 | 72 | public void setModifyTime(Date modifyTime) { 73 | this.modifyTime = modifyTime; 74 | } 75 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/coupon/HomeNewMerchandise.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.coupon; 2 | 3 | import java.util.Date; 4 | 5 | public class HomeNewMerchandise { 6 | private Long id; 7 | 8 | private Long merchandiseId; 9 | 10 | private String merchandiseName; 11 | 12 | private Boolean recommendStatus; 13 | 14 | private Integer sort; 15 | 16 | private Date createTime; 17 | 18 | private Date modifyTime; 19 | 20 | public Long getId() { 21 | return id; 22 | } 23 | 24 | public void setId(Long id) { 25 | this.id = id; 26 | } 27 | 28 | public Long getMerchandiseId() { 29 | return merchandiseId; 30 | } 31 | 32 | public void setMerchandiseId(Long merchandiseId) { 33 | this.merchandiseId = merchandiseId; 34 | } 35 | 36 | public String getMerchandiseName() { 37 | return merchandiseName; 38 | } 39 | 40 | public void setMerchandiseName(String merchandiseName) { 41 | this.merchandiseName = merchandiseName == null ? null : merchandiseName.trim(); 42 | } 43 | 44 | public Boolean getRecommendStatus() { 45 | return recommendStatus; 46 | } 47 | 48 | public void setRecommendStatus(Boolean recommendStatus) { 49 | this.recommendStatus = recommendStatus; 50 | } 51 | 52 | public Integer getSort() { 53 | return sort; 54 | } 55 | 56 | public void setSort(Integer sort) { 57 | this.sort = sort; 58 | } 59 | 60 | public Date getCreateTime() { 61 | return createTime; 62 | } 63 | 64 | public void setCreateTime(Date createTime) { 65 | this.createTime = createTime; 66 | } 67 | 68 | public Date getModifyTime() { 69 | return modifyTime; 70 | } 71 | 72 | public void setModifyTime(Date modifyTime) { 73 | this.modifyTime = modifyTime; 74 | } 75 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/coupon/HomeRecommendMerchandise.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.coupon; 2 | 3 | import java.util.Date; 4 | 5 | public class HomeRecommendMerchandise { 6 | private Long id; 7 | 8 | private Long merchandiseId; 9 | 10 | private String merchandiseName; 11 | 12 | private Boolean recommendStatus; 13 | 14 | private Integer sort; 15 | 16 | private Date createTime; 17 | 18 | private Date modifyTime; 19 | 20 | public Long getId() { 21 | return id; 22 | } 23 | 24 | public void setId(Long id) { 25 | this.id = id; 26 | } 27 | 28 | public Long getMerchandiseId() { 29 | return merchandiseId; 30 | } 31 | 32 | public void setMerchandiseId(Long merchandiseId) { 33 | this.merchandiseId = merchandiseId; 34 | } 35 | 36 | public String getMerchandiseName() { 37 | return merchandiseName; 38 | } 39 | 40 | public void setMerchandiseName(String merchandiseName) { 41 | this.merchandiseName = merchandiseName == null ? null : merchandiseName.trim(); 42 | } 43 | 44 | public Boolean getRecommendStatus() { 45 | return recommendStatus; 46 | } 47 | 48 | public void setRecommendStatus(Boolean recommendStatus) { 49 | this.recommendStatus = recommendStatus; 50 | } 51 | 52 | public Integer getSort() { 53 | return sort; 54 | } 55 | 56 | public void setSort(Integer sort) { 57 | this.sort = sort; 58 | } 59 | 60 | public Date getCreateTime() { 61 | return createTime; 62 | } 63 | 64 | public void setCreateTime(Date createTime) { 65 | this.createTime = createTime; 66 | } 67 | 68 | public Date getModifyTime() { 69 | return modifyTime; 70 | } 71 | 72 | public void setModifyTime(Date modifyTime) { 73 | this.modifyTime = modifyTime; 74 | } 75 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/accounts/Merchant.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.accounts; 2 | 3 | import java.util.Date; 4 | 5 | public class Merchant { 6 | private Long id; 7 | 8 | private String name; 9 | 10 | private String email; 11 | 12 | private String phone; 13 | 14 | private String city; 15 | 16 | private Boolean merchantStatus; 17 | 18 | private String logo; 19 | 20 | private Date createTime; 21 | 22 | private Date modifyTime; 23 | 24 | public Long getId() { 25 | return id; 26 | } 27 | 28 | public void setId(Long id) { 29 | this.id = id; 30 | } 31 | 32 | public String getName() { 33 | return name; 34 | } 35 | 36 | public void setName(String name) { 37 | this.name = name == null ? null : name.trim(); 38 | } 39 | 40 | public String getEmail() { 41 | return email; 42 | } 43 | 44 | public void setEmail(String email) { 45 | this.email = email == null ? null : email.trim(); 46 | } 47 | 48 | public String getPhone() { 49 | return phone; 50 | } 51 | 52 | public void setPhone(String phone) { 53 | this.phone = phone == null ? null : phone.trim(); 54 | } 55 | 56 | public String getCity() { 57 | return city; 58 | } 59 | 60 | public void setCity(String city) { 61 | this.city = city == null ? null : city.trim(); 62 | } 63 | 64 | public Boolean getMerchantStatus() { 65 | return merchantStatus; 66 | } 67 | 68 | public void setMerchantStatus(Boolean merchantStatus) { 69 | this.merchantStatus = merchantStatus; 70 | } 71 | 72 | public String getLogo() { 73 | return logo; 74 | } 75 | 76 | public void setLogo(String logo) { 77 | this.logo = logo == null ? null : logo.trim(); 78 | } 79 | 80 | public Date getCreateTime() { 81 | return createTime; 82 | } 83 | 84 | public void setCreateTime(Date createTime) { 85 | this.createTime = createTime; 86 | } 87 | 88 | public Date getModifyTime() { 89 | return modifyTime; 90 | } 91 | 92 | public void setModifyTime(Date modifyTime) { 93 | this.modifyTime = modifyTime; 94 | } 95 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/accounts/AccountReport.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.accounts; 2 | 3 | import java.util.Date; 4 | 5 | public class AccountReport { 6 | private Long id; 7 | 8 | private Boolean reportType; 9 | 10 | private Long acctId; 11 | 12 | private Boolean reportStatus; 13 | 14 | private Boolean handleStatus; 15 | 16 | private String note; 17 | 18 | private Date createTime; 19 | 20 | private Date modifyTime; 21 | 22 | private String description; 23 | 24 | public Long getId() { 25 | return id; 26 | } 27 | 28 | public void setId(Long id) { 29 | this.id = id; 30 | } 31 | 32 | public Boolean getReportType() { 33 | return reportType; 34 | } 35 | 36 | public void setReportType(Boolean reportType) { 37 | this.reportType = reportType; 38 | } 39 | 40 | public Long getAcctId() { 41 | return acctId; 42 | } 43 | 44 | public void setAcctId(Long acctId) { 45 | this.acctId = acctId; 46 | } 47 | 48 | public Boolean getReportStatus() { 49 | return reportStatus; 50 | } 51 | 52 | public void setReportStatus(Boolean reportStatus) { 53 | this.reportStatus = reportStatus; 54 | } 55 | 56 | public Boolean getHandleStatus() { 57 | return handleStatus; 58 | } 59 | 60 | public void setHandleStatus(Boolean handleStatus) { 61 | this.handleStatus = handleStatus; 62 | } 63 | 64 | public String getNote() { 65 | return note; 66 | } 67 | 68 | public void setNote(String note) { 69 | this.note = note == null ? null : note.trim(); 70 | } 71 | 72 | public Date getCreateTime() { 73 | return createTime; 74 | } 75 | 76 | public void setCreateTime(Date createTime) { 77 | this.createTime = createTime; 78 | } 79 | 80 | public Date getModifyTime() { 81 | return modifyTime; 82 | } 83 | 84 | public void setModifyTime(Date modifyTime) { 85 | this.modifyTime = modifyTime; 86 | } 87 | 88 | public String getDescription() { 89 | return description; 90 | } 91 | 92 | public void setDescription(String description) { 93 | this.description = description == null ? null : description.trim(); 94 | } 95 | } -------------------------------------------------------------------------------- /mall-common/src/main/java/com/doudouj/shiro/ShiroRedisCache.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.shiro; 2 | 3 | import org.apache.shiro.cache.Cache; 4 | import org.apache.shiro.cache.CacheException; 5 | import org.springframework.data.redis.core.RedisTemplate; 6 | 7 | import java.util.Collection; 8 | import java.util.Set; 9 | 10 | /** 11 | * @ClassName: ShiroRedisCache 12 | * @Author: doudou 13 | * @Datetime: 2019/12/6-9:54 14 | * @Description: Cache实现类 15 | */ 16 | public class ShiroRedisCache implements Cache { 17 | 18 | private RedisTemplate redisTemplate; 19 | private String prefix = "shiro_redis"; 20 | 21 | public String getPrefix() { 22 | return prefix + ":"; 23 | } 24 | 25 | public void setPrefix(String prefix) { 26 | this.prefix = prefix; 27 | } 28 | 29 | public ShiroRedisCache(RedisTemplate redisTemplate, String prefix) { 30 | this.redisTemplate = redisTemplate; 31 | this.prefix = prefix; 32 | } 33 | 34 | public ShiroRedisCache(RedisTemplate redisTemplate) { 35 | this.redisTemplate = redisTemplate; 36 | } 37 | 38 | @Override 39 | public V get(K k) throws CacheException { 40 | if (k == null) return null; 41 | return (V) redisTemplate.opsForValue().get(k); 42 | } 43 | 44 | @Override 45 | public V put(K k, V v) throws CacheException { 46 | if (k == null) return null; 47 | redisTemplate.opsForValue().set(k, v); 48 | return v; 49 | } 50 | 51 | @Override 52 | public V remove(K k) throws CacheException { 53 | if (k == null) return null; 54 | V v = (V) redisTemplate.opsForValue().get(k); 55 | redisTemplate.delete(k); 56 | return v; 57 | } 58 | 59 | @Override 60 | public void clear() throws CacheException { 61 | redisTemplate.getConnectionFactory().getConnection().flushDb(); 62 | } 63 | 64 | @Override 65 | public int size() { 66 | return redisTemplate.getConnectionFactory().getConnection().dbSize().intValue(); 67 | } 68 | 69 | @Override 70 | public Set keys() { 71 | return redisTemplate.keys(getPrefix() + "*"); 72 | } 73 | 74 | @Override 75 | public Collection values() { 76 | return null; 77 | } 78 | //https://blog.iliujing.com/blog/articles/2018/08/29/1535530350587.html 79 | } 80 | -------------------------------------------------------------------------------- /mall-admin/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | #配置数据库信息 2 | #spring: 3 | # datasource: 4 | # driver-class-name: com.mysql.cj.jdbc.Driver 5 | # url: jdbc:mysql://127.0.0.1:3306/mallpf_sys_config?serverTimezone=UTC 6 | # username: root 7 | # password: 12345678 8 | 9 | #多数据源配置 10 | spring: 11 | datasource: 12 | accounts: 13 | url: jdbc:mysql://127.0.0.1:3306/mallpf_accounts?serverTimezone=UTC 14 | username: root 15 | password: 12345678 16 | driver-class-name: com.mysql.cj.jdbc.Driver 17 | type: com.alibaba.druid.pool.DruidDataSource 18 | sysconfig: 19 | url: jdbc:mysql://127.0.0.1:3306/mallpf_sys_config?serverTimezone=UTC 20 | username: root 21 | password: 12345678 22 | driver-class-name: com.mysql.cj.jdbc.Driver 23 | type: com.alibaba.druid.pool.DruidDataSource 24 | check: 25 | url: jdbc:mysql://127.0.0.1:3306/mallpf_check?serverTimezone=UTC 26 | username: root 27 | password: 12345678 28 | driver-class-name: com.mysql.cj.jdbc.Driver 29 | type: com.alibaba.druid.pool.DruidDataSource 30 | coupon: 31 | url: jdbc:mysql://127.0.0.1:3306/mallpf_coupon?serverTimezone=UTC 32 | username: root 33 | password: 12345678 34 | driver-class-name: com.mysql.cj.jdbc.Driver 35 | type: com.alibaba.druid.pool.DruidDataSource 36 | merchandise: 37 | url: jdbc:mysql://127.0.0.1:3306/mallpf_merchandise?serverTimezone=UTC 38 | username: root 39 | password: 12345678 40 | driver-class-name: com.mysql.cj.jdbc.Driver 41 | type: com.alibaba.druid.pool.DruidDataSource 42 | pay: 43 | url: jdbc:mysql://127.0.0.1:3306/mallpf_pay?serverTimezone=UTC 44 | username: root 45 | password: 12345678 46 | driver-class-name: com.mysql.cj.jdbc.Driver 47 | type: com.alibaba.druid.pool.DruidDataSource 48 | trade: 49 | url: jdbc:mysql://127.0.0.1:3306/mallpf_trade?serverTimezone=UTC 50 | username: root 51 | password: 12345678 52 | driver-class-name: com.mysql.cj.jdbc.Driver 53 | type: com.alibaba.druid.pool.DruidDataSource 54 | 55 | # mybatis配置信息 56 | mybatis: 57 | mapper-locations: classpath:mapper/*/*.xml 58 | 59 | # mybatis pagehelper 分页插件 60 | pagehelper: 61 | helper-dialect: mysql 62 | reasonable: true 63 | support-methods-arguments: true 64 | params: count=countSql 65 | -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/accounts/AccountFlow.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.accounts; 2 | 3 | import java.math.BigDecimal; 4 | import java.util.Date; 5 | 6 | public class AccountFlow { 7 | private Long id; 8 | 9 | private Long acctId; 10 | 11 | private Long merchantId; 12 | 13 | private Long tradeId; 14 | 15 | private Byte payType; 16 | 17 | private BigDecimal amt; 18 | 19 | private Date tradeTime; 20 | 21 | private Byte tradeStatus; 22 | 23 | private Date createTime; 24 | 25 | private Date modifyTime; 26 | 27 | public Long getId() { 28 | return id; 29 | } 30 | 31 | public void setId(Long id) { 32 | this.id = id; 33 | } 34 | 35 | public Long getAcctId() { 36 | return acctId; 37 | } 38 | 39 | public void setAcctId(Long acctId) { 40 | this.acctId = acctId; 41 | } 42 | 43 | public Long getMerchantId() { 44 | return merchantId; 45 | } 46 | 47 | public void setMerchantId(Long merchantId) { 48 | this.merchantId = merchantId; 49 | } 50 | 51 | public Long getTradeId() { 52 | return tradeId; 53 | } 54 | 55 | public void setTradeId(Long tradeId) { 56 | this.tradeId = tradeId; 57 | } 58 | 59 | public Byte getPayType() { 60 | return payType; 61 | } 62 | 63 | public void setPayType(Byte payType) { 64 | this.payType = payType; 65 | } 66 | 67 | public BigDecimal getAmt() { 68 | return amt; 69 | } 70 | 71 | public void setAmt(BigDecimal amt) { 72 | this.amt = amt; 73 | } 74 | 75 | public Date getTradeTime() { 76 | return tradeTime; 77 | } 78 | 79 | public void setTradeTime(Date tradeTime) { 80 | this.tradeTime = tradeTime; 81 | } 82 | 83 | public Byte getTradeStatus() { 84 | return tradeStatus; 85 | } 86 | 87 | public void setTradeStatus(Byte tradeStatus) { 88 | this.tradeStatus = tradeStatus; 89 | } 90 | 91 | public Date getCreateTime() { 92 | return createTime; 93 | } 94 | 95 | public void setCreateTime(Date createTime) { 96 | this.createTime = createTime; 97 | } 98 | 99 | public Date getModifyTime() { 100 | return modifyTime; 101 | } 102 | 103 | public void setModifyTime(Date modifyTime) { 104 | this.modifyTime = modifyTime; 105 | } 106 | } -------------------------------------------------------------------------------- /mall-generator/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | mallplatform 7 | com.doudouJ 8 | 1.0-SNAPSHOT 9 | 10 | 4.0.0 11 | 12 | mall-generator 13 | 14 | 15 | 16 | org.mybatis.generator 17 | mybatis-generator-core 18 | 1.3.7 19 | 20 | 21 | 22 | 23 | 24 | 25 | org.mybatis.generator 26 | mybatis-generator-maven-plugin 27 | 1.3.7 28 | 29 | 30 | mysql 31 | mysql-connector-java 32 | 8.0.16 33 | 34 | 35 | org.mybatis.generator 36 | mybatis-generator-core 37 | 1.3.7 38 | 39 | 40 | 41 | 42 | Generate Mybatis Artifacts 43 | package 44 | 45 | generate 46 | 47 | 48 | 49 | 50 | 51 | true 52 | 53 | true 54 | 55 | src/main/resources/mybatis-trade-generator.xml 56 | 57 | 58 | 59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/merchandise/Brand.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.merchandise; 2 | 3 | import java.util.Date; 4 | 5 | public class Brand { 6 | private Long id; 7 | 8 | private String name; 9 | 10 | private Integer sort; 11 | 12 | private Integer merchandiseCount; 13 | 14 | private Integer merchandiseCommentCount; 15 | 16 | private String logo; 17 | 18 | private String bigPic; 19 | 20 | private Date createTime; 21 | 22 | private Date modifyTime; 23 | 24 | private String brandStory; 25 | 26 | public Long getId() { 27 | return id; 28 | } 29 | 30 | public void setId(Long id) { 31 | this.id = id; 32 | } 33 | 34 | public String getName() { 35 | return name; 36 | } 37 | 38 | public void setName(String name) { 39 | this.name = name == null ? null : name.trim(); 40 | } 41 | 42 | public Integer getSort() { 43 | return sort; 44 | } 45 | 46 | public void setSort(Integer sort) { 47 | this.sort = sort; 48 | } 49 | 50 | public Integer getMerchandiseCount() { 51 | return merchandiseCount; 52 | } 53 | 54 | public void setMerchandiseCount(Integer merchandiseCount) { 55 | this.merchandiseCount = merchandiseCount; 56 | } 57 | 58 | public Integer getMerchandiseCommentCount() { 59 | return merchandiseCommentCount; 60 | } 61 | 62 | public void setMerchandiseCommentCount(Integer merchandiseCommentCount) { 63 | this.merchandiseCommentCount = merchandiseCommentCount; 64 | } 65 | 66 | public String getLogo() { 67 | return logo; 68 | } 69 | 70 | public void setLogo(String logo) { 71 | this.logo = logo == null ? null : logo.trim(); 72 | } 73 | 74 | public String getBigPic() { 75 | return bigPic; 76 | } 77 | 78 | public void setBigPic(String bigPic) { 79 | this.bigPic = bigPic == null ? null : bigPic.trim(); 80 | } 81 | 82 | public Date getCreateTime() { 83 | return createTime; 84 | } 85 | 86 | public void setCreateTime(Date createTime) { 87 | this.createTime = createTime; 88 | } 89 | 90 | public Date getModifyTime() { 91 | return modifyTime; 92 | } 93 | 94 | public void setModifyTime(Date modifyTime) { 95 | this.modifyTime = modifyTime; 96 | } 97 | 98 | public String getBrandStory() { 99 | return brandStory; 100 | } 101 | 102 | public void setBrandStory(String brandStory) { 103 | this.brandStory = brandStory == null ? null : brandStory.trim(); 104 | } 105 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/check/CheckAccountFlow.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.check; 2 | 3 | import java.math.BigDecimal; 4 | import java.util.Date; 5 | 6 | public class CheckAccountFlow { 7 | private Long id; 8 | 9 | private Long acctFlowId; 10 | 11 | private Long acctId; 12 | 13 | private Long merchantId; 14 | 15 | private Long tradeId; 16 | 17 | private Byte payType; 18 | 19 | private BigDecimal amt; 20 | 21 | private Date tradeTime; 22 | 23 | private Byte tradeStatus; 24 | 25 | private Date createTime; 26 | 27 | private Date modifyTime; 28 | 29 | public Long getId() { 30 | return id; 31 | } 32 | 33 | public void setId(Long id) { 34 | this.id = id; 35 | } 36 | 37 | public Long getAcctFlowId() { 38 | return acctFlowId; 39 | } 40 | 41 | public void setAcctFlowId(Long acctFlowId) { 42 | this.acctFlowId = acctFlowId; 43 | } 44 | 45 | public Long getAcctId() { 46 | return acctId; 47 | } 48 | 49 | public void setAcctId(Long acctId) { 50 | this.acctId = acctId; 51 | } 52 | 53 | public Long getMerchantId() { 54 | return merchantId; 55 | } 56 | 57 | public void setMerchantId(Long merchantId) { 58 | this.merchantId = merchantId; 59 | } 60 | 61 | public Long getTradeId() { 62 | return tradeId; 63 | } 64 | 65 | public void setTradeId(Long tradeId) { 66 | this.tradeId = tradeId; 67 | } 68 | 69 | public Byte getPayType() { 70 | return payType; 71 | } 72 | 73 | public void setPayType(Byte payType) { 74 | this.payType = payType; 75 | } 76 | 77 | public BigDecimal getAmt() { 78 | return amt; 79 | } 80 | 81 | public void setAmt(BigDecimal amt) { 82 | this.amt = amt; 83 | } 84 | 85 | public Date getTradeTime() { 86 | return tradeTime; 87 | } 88 | 89 | public void setTradeTime(Date tradeTime) { 90 | this.tradeTime = tradeTime; 91 | } 92 | 93 | public Byte getTradeStatus() { 94 | return tradeStatus; 95 | } 96 | 97 | public void setTradeStatus(Byte tradeStatus) { 98 | this.tradeStatus = tradeStatus; 99 | } 100 | 101 | public Date getCreateTime() { 102 | return createTime; 103 | } 104 | 105 | public void setCreateTime(Date createTime) { 106 | this.createTime = createTime; 107 | } 108 | 109 | public Date getModifyTime() { 110 | return modifyTime; 111 | } 112 | 113 | public void setModifyTime(Date modifyTime) { 114 | this.modifyTime = modifyTime; 115 | } 116 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/check/CheckTradeFlow.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.check; 2 | 3 | import java.math.BigDecimal; 4 | import java.util.Date; 5 | 6 | public class CheckTradeFlow { 7 | private Long id; 8 | 9 | private Long tradeId; 10 | 11 | private Long acctId; 12 | 13 | private BigDecimal amt; 14 | 15 | private BigDecimal payAmt; 16 | 17 | private Boolean payChannel; 18 | 19 | private Boolean sourceType; 20 | 21 | private Boolean tradeStatus; 22 | 23 | private Date payTime; 24 | 25 | private Date createTime; 26 | 27 | private Date modifyTime; 28 | 29 | public Long getId() { 30 | return id; 31 | } 32 | 33 | public void setId(Long id) { 34 | this.id = id; 35 | } 36 | 37 | public Long getTradeId() { 38 | return tradeId; 39 | } 40 | 41 | public void setTradeId(Long tradeId) { 42 | this.tradeId = tradeId; 43 | } 44 | 45 | public Long getAcctId() { 46 | return acctId; 47 | } 48 | 49 | public void setAcctId(Long acctId) { 50 | this.acctId = acctId; 51 | } 52 | 53 | public BigDecimal getAmt() { 54 | return amt; 55 | } 56 | 57 | public void setAmt(BigDecimal amt) { 58 | this.amt = amt; 59 | } 60 | 61 | public BigDecimal getPayAmt() { 62 | return payAmt; 63 | } 64 | 65 | public void setPayAmt(BigDecimal payAmt) { 66 | this.payAmt = payAmt; 67 | } 68 | 69 | public Boolean getPayChannel() { 70 | return payChannel; 71 | } 72 | 73 | public void setPayChannel(Boolean payChannel) { 74 | this.payChannel = payChannel; 75 | } 76 | 77 | public Boolean getSourceType() { 78 | return sourceType; 79 | } 80 | 81 | public void setSourceType(Boolean sourceType) { 82 | this.sourceType = sourceType; 83 | } 84 | 85 | public Boolean getTradeStatus() { 86 | return tradeStatus; 87 | } 88 | 89 | public void setTradeStatus(Boolean tradeStatus) { 90 | this.tradeStatus = tradeStatus; 91 | } 92 | 93 | public Date getPayTime() { 94 | return payTime; 95 | } 96 | 97 | public void setPayTime(Date payTime) { 98 | this.payTime = payTime; 99 | } 100 | 101 | public Date getCreateTime() { 102 | return createTime; 103 | } 104 | 105 | public void setCreateTime(Date createTime) { 106 | this.createTime = createTime; 107 | } 108 | 109 | public Date getModifyTime() { 110 | return modifyTime; 111 | } 112 | 113 | public void setModifyTime(Date modifyTime) { 114 | this.modifyTime = modifyTime; 115 | } 116 | } -------------------------------------------------------------------------------- /mall-admin/src/main/resources/mapper/sysconfig/SysRoleMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | id, role_name, remark 11 | 12 | 18 | 19 | delete from sys_role 20 | where id = #{id,jdbcType=BIGINT} 21 | 22 | 23 | insert into sys_role (id, role_name, remark 24 | ) 25 | values (#{id,jdbcType=BIGINT}, #{roleName,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR} 26 | ) 27 | 28 | 29 | insert into sys_role 30 | 31 | 32 | id, 33 | 34 | 35 | role_name, 36 | 37 | 38 | remark, 39 | 40 | 41 | 42 | 43 | #{id,jdbcType=BIGINT}, 44 | 45 | 46 | #{roleName,jdbcType=VARCHAR}, 47 | 48 | 49 | #{remark,jdbcType=VARCHAR}, 50 | 51 | 52 | 53 | 54 | update sys_role 55 | 56 | 57 | role_name = #{roleName,jdbcType=VARCHAR}, 58 | 59 | 60 | remark = #{remark,jdbcType=VARCHAR}, 61 | 62 | 63 | where id = #{id,jdbcType=BIGINT} 64 | 65 | 66 | update sys_role 67 | set role_name = #{roleName,jdbcType=VARCHAR}, 68 | remark = #{remark,jdbcType=VARCHAR} 69 | where id = #{id,jdbcType=BIGINT} 70 | 71 | -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/sysconfig/SysUser.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.sysconfig; 2 | 3 | import java.util.Date; 4 | 5 | public class SysUser { 6 | private Long id; 7 | 8 | private String avatar; 9 | 10 | private String username; 11 | 12 | private String email; 13 | 14 | private String phone; 15 | 16 | private Long orgId; 17 | 18 | private Long jobId; 19 | 20 | private Boolean enabled; 21 | 22 | private String password; 23 | 24 | private Date createTime; 25 | 26 | private Date modifyTime; 27 | 28 | public Long getId() { 29 | return id; 30 | } 31 | 32 | public void setId(Long id) { 33 | this.id = id; 34 | } 35 | 36 | public String getAvatar() { 37 | return avatar; 38 | } 39 | 40 | public void setAvatar(String avatar) { 41 | this.avatar = avatar == null ? null : avatar.trim(); 42 | } 43 | 44 | public String getUsername() { 45 | return username; 46 | } 47 | 48 | public void setUsername(String username) { 49 | this.username = username == null ? null : username.trim(); 50 | } 51 | 52 | public String getEmail() { 53 | return email; 54 | } 55 | 56 | public void setEmail(String email) { 57 | this.email = email == null ? null : email.trim(); 58 | } 59 | 60 | public String getPhone() { 61 | return phone; 62 | } 63 | 64 | public void setPhone(String phone) { 65 | this.phone = phone == null ? null : phone.trim(); 66 | } 67 | 68 | public Long getOrgId() { 69 | return orgId; 70 | } 71 | 72 | public void setOrgId(Long orgId) { 73 | this.orgId = orgId; 74 | } 75 | 76 | public Long getJobId() { 77 | return jobId; 78 | } 79 | 80 | public void setJobId(Long jobId) { 81 | this.jobId = jobId; 82 | } 83 | 84 | public Boolean getEnabled() { 85 | return enabled; 86 | } 87 | 88 | public void setEnabled(Boolean enabled) { 89 | this.enabled = enabled; 90 | } 91 | 92 | public String getPassword() { 93 | return password; 94 | } 95 | 96 | public void setPassword(String password) { 97 | this.password = password == null ? null : password.trim(); 98 | } 99 | 100 | public Date getCreateTime() { 101 | return createTime; 102 | } 103 | 104 | public void setCreateTime(Date createTime) { 105 | this.createTime = createTime; 106 | } 107 | 108 | public Date getModifyTime() { 109 | return modifyTime; 110 | } 111 | 112 | public void setModifyTime(Date modifyTime) { 113 | this.modifyTime = modifyTime; 114 | } 115 | } -------------------------------------------------------------------------------- /mall-generator/src/main/resources/mapper/sysconfig/SysRoleMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | id, role_name, remark 11 | 12 | 18 | 19 | delete from sys_role 20 | where id = #{id,jdbcType=BIGINT} 21 | 22 | 23 | insert into sys_role (id, role_name, remark 24 | ) 25 | values (#{id,jdbcType=BIGINT}, #{roleName,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR} 26 | ) 27 | 28 | 29 | insert into sys_role 30 | 31 | 32 | id, 33 | 34 | 35 | role_name, 36 | 37 | 38 | remark, 39 | 40 | 41 | 42 | 43 | #{id,jdbcType=BIGINT}, 44 | 45 | 46 | #{roleName,jdbcType=VARCHAR}, 47 | 48 | 49 | #{remark,jdbcType=VARCHAR}, 50 | 51 | 52 | 53 | 54 | update sys_role 55 | 56 | 57 | role_name = #{roleName,jdbcType=VARCHAR}, 58 | 59 | 60 | remark = #{remark,jdbcType=VARCHAR}, 61 | 62 | 63 | where id = #{id,jdbcType=BIGINT} 64 | 65 | 66 | update sys_role 67 | set role_name = #{roleName,jdbcType=VARCHAR}, 68 | remark = #{remark,jdbcType=VARCHAR} 69 | where id = #{id,jdbcType=BIGINT} 70 | 71 | -------------------------------------------------------------------------------- /mall-admin/src/main/resources/mapper/sysconfig/SysUserRoleMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | id, user_id, role_id 11 | 12 | 18 | 19 | delete from sys_user_role 20 | where id = #{id,jdbcType=BIGINT} 21 | 22 | 23 | insert into sys_user_role (id, user_id, role_id 24 | ) 25 | values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{roleId,jdbcType=BIGINT} 26 | ) 27 | 28 | 29 | insert into sys_user_role 30 | 31 | 32 | id, 33 | 34 | 35 | user_id, 36 | 37 | 38 | role_id, 39 | 40 | 41 | 42 | 43 | #{id,jdbcType=BIGINT}, 44 | 45 | 46 | #{userId,jdbcType=BIGINT}, 47 | 48 | 49 | #{roleId,jdbcType=BIGINT}, 50 | 51 | 52 | 53 | 54 | update sys_user_role 55 | 56 | 57 | user_id = #{userId,jdbcType=BIGINT}, 58 | 59 | 60 | role_id = #{roleId,jdbcType=BIGINT}, 61 | 62 | 63 | where id = #{id,jdbcType=BIGINT} 64 | 65 | 66 | update sys_user_role 67 | set user_id = #{userId,jdbcType=BIGINT}, 68 | role_id = #{roleId,jdbcType=BIGINT} 69 | where id = #{id,jdbcType=BIGINT} 70 | 71 | -------------------------------------------------------------------------------- /mall-generator/src/main/resources/mapper/sysconfig/SysUserRoleMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | id, user_id, role_id 11 | 12 | 18 | 19 | delete from sys_user_role 20 | where id = #{id,jdbcType=BIGINT} 21 | 22 | 23 | insert into sys_user_role (id, user_id, role_id 24 | ) 25 | values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{roleId,jdbcType=BIGINT} 26 | ) 27 | 28 | 29 | insert into sys_user_role 30 | 31 | 32 | id, 33 | 34 | 35 | user_id, 36 | 37 | 38 | role_id, 39 | 40 | 41 | 42 | 43 | #{id,jdbcType=BIGINT}, 44 | 45 | 46 | #{userId,jdbcType=BIGINT}, 47 | 48 | 49 | #{roleId,jdbcType=BIGINT}, 50 | 51 | 52 | 53 | 54 | update sys_user_role 55 | 56 | 57 | user_id = #{userId,jdbcType=BIGINT}, 58 | 59 | 60 | role_id = #{roleId,jdbcType=BIGINT}, 61 | 62 | 63 | where id = #{id,jdbcType=BIGINT} 64 | 65 | 66 | update sys_user_role 67 | set user_id = #{userId,jdbcType=BIGINT}, 68 | role_id = #{roleId,jdbcType=BIGINT} 69 | where id = #{id,jdbcType=BIGINT} 70 | 71 | -------------------------------------------------------------------------------- /mall-admin/src/main/resources/mapper/sysconfig/SysRoleMenuMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | id, role_id, org_id 11 | 12 | 18 | 19 | delete from sys_role_organization 20 | where id = #{id,jdbcType=BIGINT} 21 | 22 | 23 | insert into sys_role_organization (id, role_id, org_id 24 | ) 25 | values (#{id,jdbcType=BIGINT}, #{roleId,jdbcType=BIGINT}, #{orgId,jdbcType=BIGINT} 26 | ) 27 | 28 | 29 | insert into sys_role_organization 30 | 31 | 32 | id, 33 | 34 | 35 | role_id, 36 | 37 | 38 | org_id, 39 | 40 | 41 | 42 | 43 | #{id,jdbcType=BIGINT}, 44 | 45 | 46 | #{roleId,jdbcType=BIGINT}, 47 | 48 | 49 | #{orgId,jdbcType=BIGINT}, 50 | 51 | 52 | 53 | 54 | update sys_role_organization 55 | 56 | 57 | role_id = #{roleId,jdbcType=BIGINT}, 58 | 59 | 60 | org_id = #{orgId,jdbcType=BIGINT}, 61 | 62 | 63 | where id = #{id,jdbcType=BIGINT} 64 | 65 | 66 | update sys_role_organization 67 | set role_id = #{roleId,jdbcType=BIGINT}, 68 | org_id = #{orgId,jdbcType=BIGINT} 69 | where id = #{id,jdbcType=BIGINT} 70 | 71 | -------------------------------------------------------------------------------- /mall-admin/src/main/resources/mapper/pay/PayChannelTypeMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | id, pct_name, pct_short_name 11 | 12 | 18 | 19 | delete from pay_channel_type 20 | where id = #{id,jdbcType=BIGINT} 21 | 22 | 23 | insert into pay_channel_type (id, pct_name, pct_short_name 24 | ) 25 | values (#{id,jdbcType=BIGINT}, #{pctName,jdbcType=VARCHAR}, #{pctShortName,jdbcType=VARCHAR} 26 | ) 27 | 28 | 29 | insert into pay_channel_type 30 | 31 | 32 | id, 33 | 34 | 35 | pct_name, 36 | 37 | 38 | pct_short_name, 39 | 40 | 41 | 42 | 43 | #{id,jdbcType=BIGINT}, 44 | 45 | 46 | #{pctName,jdbcType=VARCHAR}, 47 | 48 | 49 | #{pctShortName,jdbcType=VARCHAR}, 50 | 51 | 52 | 53 | 54 | update pay_channel_type 55 | 56 | 57 | pct_name = #{pctName,jdbcType=VARCHAR}, 58 | 59 | 60 | pct_short_name = #{pctShortName,jdbcType=VARCHAR}, 61 | 62 | 63 | where id = #{id,jdbcType=BIGINT} 64 | 65 | 66 | update pay_channel_type 67 | set pct_name = #{pctName,jdbcType=VARCHAR}, 68 | pct_short_name = #{pctShortName,jdbcType=VARCHAR} 69 | where id = #{id,jdbcType=BIGINT} 70 | 71 | -------------------------------------------------------------------------------- /mall-generator/src/main/resources/mapper/pay/PayChannelTypeMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | id, pct_name, pct_short_name 11 | 12 | 18 | 19 | delete from pay_channel_type 20 | where id = #{id,jdbcType=BIGINT} 21 | 22 | 23 | insert into pay_channel_type (id, pct_name, pct_short_name 24 | ) 25 | values (#{id,jdbcType=BIGINT}, #{pctName,jdbcType=VARCHAR}, #{pctShortName,jdbcType=VARCHAR} 26 | ) 27 | 28 | 29 | insert into pay_channel_type 30 | 31 | 32 | id, 33 | 34 | 35 | pct_name, 36 | 37 | 38 | pct_short_name, 39 | 40 | 41 | 42 | 43 | #{id,jdbcType=BIGINT}, 44 | 45 | 46 | #{pctName,jdbcType=VARCHAR}, 47 | 48 | 49 | #{pctShortName,jdbcType=VARCHAR}, 50 | 51 | 52 | 53 | 54 | update pay_channel_type 55 | 56 | 57 | pct_name = #{pctName,jdbcType=VARCHAR}, 58 | 59 | 60 | pct_short_name = #{pctShortName,jdbcType=VARCHAR}, 61 | 62 | 63 | where id = #{id,jdbcType=BIGINT} 64 | 65 | 66 | update pay_channel_type 67 | set pct_name = #{pctName,jdbcType=VARCHAR}, 68 | pct_short_name = #{pctShortName,jdbcType=VARCHAR} 69 | where id = #{id,jdbcType=BIGINT} 70 | 71 | -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/merchandise/MerchandiseAttribute.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.merchandise; 2 | 3 | public class MerchandiseAttribute { 4 | private Long id; 5 | 6 | private Long merchandiseAttributeCategoryId; 7 | 8 | private String name; 9 | 10 | private Boolean selectType; 11 | 12 | private Boolean inputType; 13 | 14 | private String inputList; 15 | 16 | private Integer sort; 17 | 18 | private Boolean filterType; 19 | 20 | private Boolean searchType; 21 | 22 | private Boolean relatedType; 23 | 24 | private Boolean type; 25 | 26 | public Long getId() { 27 | return id; 28 | } 29 | 30 | public void setId(Long id) { 31 | this.id = id; 32 | } 33 | 34 | public Long getMerchandiseAttributeCategoryId() { 35 | return merchandiseAttributeCategoryId; 36 | } 37 | 38 | public void setMerchandiseAttributeCategoryId(Long merchandiseAttributeCategoryId) { 39 | this.merchandiseAttributeCategoryId = merchandiseAttributeCategoryId; 40 | } 41 | 42 | public String getName() { 43 | return name; 44 | } 45 | 46 | public void setName(String name) { 47 | this.name = name == null ? null : name.trim(); 48 | } 49 | 50 | public Boolean getSelectType() { 51 | return selectType; 52 | } 53 | 54 | public void setSelectType(Boolean selectType) { 55 | this.selectType = selectType; 56 | } 57 | 58 | public Boolean getInputType() { 59 | return inputType; 60 | } 61 | 62 | public void setInputType(Boolean inputType) { 63 | this.inputType = inputType; 64 | } 65 | 66 | public String getInputList() { 67 | return inputList; 68 | } 69 | 70 | public void setInputList(String inputList) { 71 | this.inputList = inputList == null ? null : inputList.trim(); 72 | } 73 | 74 | public Integer getSort() { 75 | return sort; 76 | } 77 | 78 | public void setSort(Integer sort) { 79 | this.sort = sort; 80 | } 81 | 82 | public Boolean getFilterType() { 83 | return filterType; 84 | } 85 | 86 | public void setFilterType(Boolean filterType) { 87 | this.filterType = filterType; 88 | } 89 | 90 | public Boolean getSearchType() { 91 | return searchType; 92 | } 93 | 94 | public void setSearchType(Boolean searchType) { 95 | this.searchType = searchType; 96 | } 97 | 98 | public Boolean getRelatedType() { 99 | return relatedType; 100 | } 101 | 102 | public void setRelatedType(Boolean relatedType) { 103 | this.relatedType = relatedType; 104 | } 105 | 106 | public Boolean getType() { 107 | return type; 108 | } 109 | 110 | public void setType(Boolean type) { 111 | this.type = type; 112 | } 113 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/accounts/AccountInfo.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.accounts; 2 | 3 | import java.math.BigDecimal; 4 | import java.util.Date; 5 | 6 | public class AccountInfo { 7 | private Long id; 8 | 9 | private Long tripartAcctId; 10 | 11 | private String name; 12 | 13 | private Byte acctType; 14 | 15 | private Byte acctStatus; 16 | 17 | private BigDecimal balance; 18 | 19 | private Integer growth; 20 | 21 | private Integer point; 22 | 23 | private Byte level; 24 | 25 | private Boolean vipStatus; 26 | 27 | private Date createTime; 28 | 29 | private Date modifyTime; 30 | 31 | public Long getId() { 32 | return id; 33 | } 34 | 35 | public void setId(Long id) { 36 | this.id = id; 37 | } 38 | 39 | public Long getTripartAcctId() { 40 | return tripartAcctId; 41 | } 42 | 43 | public void setTripartAcctId(Long tripartAcctId) { 44 | this.tripartAcctId = tripartAcctId; 45 | } 46 | 47 | public String getName() { 48 | return name; 49 | } 50 | 51 | public void setName(String name) { 52 | this.name = name == null ? null : name.trim(); 53 | } 54 | 55 | public Byte getAcctType() { 56 | return acctType; 57 | } 58 | 59 | public void setAcctType(Byte acctType) { 60 | this.acctType = acctType; 61 | } 62 | 63 | public Byte getAcctStatus() { 64 | return acctStatus; 65 | } 66 | 67 | public void setAcctStatus(Byte acctStatus) { 68 | this.acctStatus = acctStatus; 69 | } 70 | 71 | public BigDecimal getBalance() { 72 | return balance; 73 | } 74 | 75 | public void setBalance(BigDecimal balance) { 76 | this.balance = balance; 77 | } 78 | 79 | public Integer getGrowth() { 80 | return growth; 81 | } 82 | 83 | public void setGrowth(Integer growth) { 84 | this.growth = growth; 85 | } 86 | 87 | public Integer getPoint() { 88 | return point; 89 | } 90 | 91 | public void setPoint(Integer point) { 92 | this.point = point; 93 | } 94 | 95 | public Byte getLevel() { 96 | return level; 97 | } 98 | 99 | public void setLevel(Byte level) { 100 | this.level = level; 101 | } 102 | 103 | public Boolean getVipStatus() { 104 | return vipStatus; 105 | } 106 | 107 | public void setVipStatus(Boolean vipStatus) { 108 | this.vipStatus = vipStatus; 109 | } 110 | 111 | public Date getCreateTime() { 112 | return createTime; 113 | } 114 | 115 | public void setCreateTime(Date createTime) { 116 | this.createTime = createTime; 117 | } 118 | 119 | public Date getModifyTime() { 120 | return modifyTime; 121 | } 122 | 123 | public void setModifyTime(Date modifyTime) { 124 | this.modifyTime = modifyTime; 125 | } 126 | } -------------------------------------------------------------------------------- /mall-generator/src/main/java/com/doudouj/dto/pay/PayFlow.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.dto.pay; 2 | 3 | import java.math.BigDecimal; 4 | import java.util.Date; 5 | 6 | public class PayFlow { 7 | private Long payId; 8 | 9 | private Long tradeId; 10 | 11 | private BigDecimal tradeAmt; 12 | 13 | private BigDecimal payAmt; 14 | 15 | private Boolean payType; 16 | 17 | private Boolean payStatus; 18 | 19 | private Long acctId; 20 | 21 | private Long merchantId; 22 | 23 | private Boolean payChannelId; 24 | 25 | private Date payTime; 26 | 27 | private Date createTime; 28 | 29 | private Date modifyTime; 30 | 31 | public Long getPayId() { 32 | return payId; 33 | } 34 | 35 | public void setPayId(Long payId) { 36 | this.payId = payId; 37 | } 38 | 39 | public Long getTradeId() { 40 | return tradeId; 41 | } 42 | 43 | public void setTradeId(Long tradeId) { 44 | this.tradeId = tradeId; 45 | } 46 | 47 | public BigDecimal getTradeAmt() { 48 | return tradeAmt; 49 | } 50 | 51 | public void setTradeAmt(BigDecimal tradeAmt) { 52 | this.tradeAmt = tradeAmt; 53 | } 54 | 55 | public BigDecimal getPayAmt() { 56 | return payAmt; 57 | } 58 | 59 | public void setPayAmt(BigDecimal payAmt) { 60 | this.payAmt = payAmt; 61 | } 62 | 63 | public Boolean getPayType() { 64 | return payType; 65 | } 66 | 67 | public void setPayType(Boolean payType) { 68 | this.payType = payType; 69 | } 70 | 71 | public Boolean getPayStatus() { 72 | return payStatus; 73 | } 74 | 75 | public void setPayStatus(Boolean payStatus) { 76 | this.payStatus = payStatus; 77 | } 78 | 79 | public Long getAcctId() { 80 | return acctId; 81 | } 82 | 83 | public void setAcctId(Long acctId) { 84 | this.acctId = acctId; 85 | } 86 | 87 | public Long getMerchantId() { 88 | return merchantId; 89 | } 90 | 91 | public void setMerchantId(Long merchantId) { 92 | this.merchantId = merchantId; 93 | } 94 | 95 | public Boolean getPayChannelId() { 96 | return payChannelId; 97 | } 98 | 99 | public void setPayChannelId(Boolean payChannelId) { 100 | this.payChannelId = payChannelId; 101 | } 102 | 103 | public Date getPayTime() { 104 | return payTime; 105 | } 106 | 107 | public void setPayTime(Date payTime) { 108 | this.payTime = payTime; 109 | } 110 | 111 | public Date getCreateTime() { 112 | return createTime; 113 | } 114 | 115 | public void setCreateTime(Date createTime) { 116 | this.createTime = createTime; 117 | } 118 | 119 | public Date getModifyTime() { 120 | return modifyTime; 121 | } 122 | 123 | public void setModifyTime(Date modifyTime) { 124 | this.modifyTime = modifyTime; 125 | } 126 | } -------------------------------------------------------------------------------- /mall-admin/src/main/resources/mapper/pay/PayChannelMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | id, pay_channel_name, pay_channel_short_name 11 | 12 | 18 | 19 | delete from pay_channel 20 | where id = #{id,jdbcType=BIGINT} 21 | 22 | 23 | insert into pay_channel (id, pay_channel_name, pay_channel_short_name 24 | ) 25 | values (#{id,jdbcType=BIGINT}, #{payChannelName,jdbcType=VARCHAR}, #{payChannelShortName,jdbcType=VARCHAR} 26 | ) 27 | 28 | 29 | insert into pay_channel 30 | 31 | 32 | id, 33 | 34 | 35 | pay_channel_name, 36 | 37 | 38 | pay_channel_short_name, 39 | 40 | 41 | 42 | 43 | #{id,jdbcType=BIGINT}, 44 | 45 | 46 | #{payChannelName,jdbcType=VARCHAR}, 47 | 48 | 49 | #{payChannelShortName,jdbcType=VARCHAR}, 50 | 51 | 52 | 53 | 54 | update pay_channel 55 | 56 | 57 | pay_channel_name = #{payChannelName,jdbcType=VARCHAR}, 58 | 59 | 60 | pay_channel_short_name = #{payChannelShortName,jdbcType=VARCHAR}, 61 | 62 | 63 | where id = #{id,jdbcType=BIGINT} 64 | 65 | 66 | update pay_channel 67 | set pay_channel_name = #{payChannelName,jdbcType=VARCHAR}, 68 | pay_channel_short_name = #{payChannelShortName,jdbcType=VARCHAR} 69 | where id = #{id,jdbcType=BIGINT} 70 | 71 | -------------------------------------------------------------------------------- /mall-generator/src/main/resources/mapper/pay/PayChannelMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | id, pay_channel_name, pay_channel_short_name 11 | 12 | 18 | 19 | delete from pay_channel 20 | where id = #{id,jdbcType=BIGINT} 21 | 22 | 23 | insert into pay_channel (id, pay_channel_name, pay_channel_short_name 24 | ) 25 | values (#{id,jdbcType=BIGINT}, #{payChannelName,jdbcType=VARCHAR}, #{payChannelShortName,jdbcType=VARCHAR} 26 | ) 27 | 28 | 29 | insert into pay_channel 30 | 31 | 32 | id, 33 | 34 | 35 | pay_channel_name, 36 | 37 | 38 | pay_channel_short_name, 39 | 40 | 41 | 42 | 43 | #{id,jdbcType=BIGINT}, 44 | 45 | 46 | #{payChannelName,jdbcType=VARCHAR}, 47 | 48 | 49 | #{payChannelShortName,jdbcType=VARCHAR}, 50 | 51 | 52 | 53 | 54 | update pay_channel 55 | 56 | 57 | pay_channel_name = #{payChannelName,jdbcType=VARCHAR}, 58 | 59 | 60 | pay_channel_short_name = #{payChannelShortName,jdbcType=VARCHAR}, 61 | 62 | 63 | where id = #{id,jdbcType=BIGINT} 64 | 65 | 66 | update pay_channel 67 | set pay_channel_name = #{payChannelName,jdbcType=VARCHAR}, 68 | pay_channel_short_name = #{payChannelShortName,jdbcType=VARCHAR} 69 | where id = #{id,jdbcType=BIGINT} 70 | 71 | -------------------------------------------------------------------------------- /mall-generator/src/main/resources/mapper/sysconfig/PayFlowMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | id, name, pid, remark 12 | 13 | 19 | 20 | delete from sys_organization 21 | where id = #{id,jdbcType=BIGINT} 22 | 23 | 24 | insert into sys_organization (id, name, pid, 25 | remark) 26 | values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{pid,jdbcType=BIGINT}, 27 | #{remark,jdbcType=VARCHAR}) 28 | 29 | 30 | insert into sys_organization 31 | 32 | 33 | id, 34 | 35 | 36 | name, 37 | 38 | 39 | pid, 40 | 41 | 42 | remark, 43 | 44 | 45 | 46 | 47 | #{id,jdbcType=BIGINT}, 48 | 49 | 50 | #{name,jdbcType=VARCHAR}, 51 | 52 | 53 | #{pid,jdbcType=BIGINT}, 54 | 55 | 56 | #{remark,jdbcType=VARCHAR}, 57 | 58 | 59 | 60 | 61 | update sys_organization 62 | 63 | 64 | name = #{name,jdbcType=VARCHAR}, 65 | 66 | 67 | pid = #{pid,jdbcType=BIGINT}, 68 | 69 | 70 | remark = #{remark,jdbcType=VARCHAR}, 71 | 72 | 73 | where id = #{id,jdbcType=BIGINT} 74 | 75 | 76 | update sys_organization 77 | set name = #{name,jdbcType=VARCHAR}, 78 | pid = #{pid,jdbcType=BIGINT}, 79 | remark = #{remark,jdbcType=VARCHAR} 80 | where id = #{id,jdbcType=BIGINT} 81 | 82 | -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/config/MybatisConfigPay.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.config; 2 | 3 | import com.doudouj.properties.PayDatabaseProperties; 4 | import lombok.extern.slf4j.Slf4j; 5 | import org.apache.ibatis.session.SqlSessionFactory; 6 | import org.mybatis.spring.SqlSessionFactoryBean; 7 | import org.mybatis.spring.SqlSessionTemplate; 8 | import org.mybatis.spring.annotation.MapperScan; 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | import org.springframework.beans.factory.annotation.Qualifier; 11 | import org.springframework.boot.jdbc.DataSourceBuilder; 12 | import org.springframework.context.annotation.Bean; 13 | import org.springframework.context.annotation.Configuration; 14 | import org.springframework.core.io.support.PathMatchingResourcePatternResolver; 15 | import org.springframework.jdbc.datasource.DataSourceTransactionManager; 16 | 17 | import javax.sql.DataSource; 18 | 19 | /** 20 | * @ClassName: MybatisConfigPay 21 | * @Author: doudou 22 | * @Datetime: 2019/11/25-14:43 23 | * @Description: pay库配置 24 | */ 25 | @Configuration 26 | @MapperScan(basePackages = "com.doudouj.dao.pay", sqlSessionFactoryRef = "paySqlSessionFactory", sqlSessionTemplateRef = "paySqlSessionTemplate") 27 | @Slf4j 28 | public class MybatisConfigPay { 29 | 30 | @Autowired 31 | private PayDatabaseProperties prop; 32 | 33 | @Bean(name = "payDataSource") 34 | public DataSource payDataSource() { 35 | return DataSourceBuilder.create() 36 | .driverClassName(prop.getDriver()) 37 | .type(getType(prop.getType())) 38 | .username(prop.getUsername()) 39 | .password(prop.getPassword()) 40 | .url(prop.getUrl()) 41 | .build(); 42 | } 43 | 44 | @Bean(name = "paySqlSessionFactory") 45 | SqlSessionFactory paySqlSessionFactory(@Qualifier("payDataSource") DataSource dataSource) { 46 | SqlSessionFactory sessionFactory = null; 47 | try { 48 | SqlSessionFactoryBean bean = new SqlSessionFactoryBean(); 49 | bean.setDataSource(dataSource); 50 | bean.setMapperLocations(new PathMatchingResourcePatternResolver() 51 | .getResources("classpath*:/mapper/pay/**/*.xml")); 52 | sessionFactory = bean.getObject(); 53 | } catch (Exception e) { 54 | log.error(e.getMessage()); 55 | } 56 | return sessionFactory; 57 | } 58 | 59 | @Bean(name = "payTransactionManager") 60 | public DataSourceTransactionManager accountTransactionManager(@Qualifier("payDataSource") DataSource dataSource) { 61 | return new DataSourceTransactionManager(dataSource); 62 | } 63 | 64 | @Bean(name = "paySqlSessionTemplate") 65 | SqlSessionTemplate paySqlSessionTemplate(@Qualifier("paySqlSessionFactory") SqlSessionFactory sqlSessionFactory) { 66 | return new SqlSessionTemplate(sqlSessionFactory); 67 | } 68 | 69 | private Class getType(String type) { 70 | try { 71 | return Class.forName(type); 72 | } catch (ClassNotFoundException e) { 73 | log.error(e.getMessage()); 74 | } 75 | return null; 76 | } 77 | 78 | } 79 | -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/config/MybatisConfigCheck.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.config; 2 | 3 | import com.doudouj.properties.CheckDatabaseProperties; 4 | import lombok.extern.slf4j.Slf4j; 5 | import org.apache.ibatis.session.SqlSessionFactory; 6 | import org.mybatis.spring.SqlSessionFactoryBean; 7 | import org.mybatis.spring.SqlSessionTemplate; 8 | import org.mybatis.spring.annotation.MapperScan; 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | import org.springframework.beans.factory.annotation.Qualifier; 11 | import org.springframework.boot.jdbc.DataSourceBuilder; 12 | import org.springframework.context.annotation.Bean; 13 | import org.springframework.context.annotation.Configuration; 14 | import org.springframework.core.io.support.PathMatchingResourcePatternResolver; 15 | import org.springframework.jdbc.datasource.DataSourceTransactionManager; 16 | 17 | import javax.sql.DataSource; 18 | 19 | /** 20 | * @ClassName: MybatisConfigCheck 21 | * @Author: doudou 22 | * @Datetime: 2019/11/25-14:43 23 | * @Description: check库配置 24 | */ 25 | @Configuration 26 | @MapperScan(basePackages = "com.doudouj.dao.check", sqlSessionFactoryRef = "checkSqlSessionFactory", sqlSessionTemplateRef = "checkSqlSessionTemplate") 27 | @Slf4j 28 | public class MybatisConfigCheck { 29 | 30 | @Autowired 31 | private CheckDatabaseProperties prop; 32 | 33 | @Bean(name = "checkDataSource") 34 | public DataSource checkDataSource() { 35 | return DataSourceBuilder.create() 36 | .driverClassName(prop.getDriver()) 37 | .type(getType(prop.getType())) 38 | .username(prop.getUsername()) 39 | .password(prop.getPassword()) 40 | .url(prop.getUrl()) 41 | .build(); 42 | } 43 | 44 | @Bean(name = "checkSqlSessionFactory") 45 | SqlSessionFactory checkSqlSessionFactory(@Qualifier("checkDataSource") DataSource dataSource) { 46 | SqlSessionFactory sessionFactory = null; 47 | try { 48 | SqlSessionFactoryBean bean = new SqlSessionFactoryBean(); 49 | bean.setDataSource(dataSource); 50 | bean.setMapperLocations(new PathMatchingResourcePatternResolver() 51 | .getResources("classpath*:/mapper/check/**/*.xml")); 52 | sessionFactory = bean.getObject(); 53 | } catch (Exception e) { 54 | log.error(e.getMessage()); 55 | } 56 | return sessionFactory; 57 | } 58 | 59 | @Bean(name = "checkTransactionManager") 60 | public DataSourceTransactionManager accountTransactionManager(@Qualifier("checkDataSource") DataSource dataSource) { 61 | return new DataSourceTransactionManager(dataSource); 62 | } 63 | 64 | @Bean(name = "checkSqlSessionTemplate") 65 | SqlSessionTemplate checkSqlSessionTemplate(@Qualifier("checkSqlSessionFactory") SqlSessionFactory sqlSessionFactory) { 66 | return new SqlSessionTemplate(sqlSessionFactory); 67 | } 68 | 69 | private Class getType(String type) { 70 | try { 71 | return Class.forName(type); 72 | } catch (ClassNotFoundException e) { 73 | log.error(e.getMessage()); 74 | } 75 | return null; 76 | } 77 | 78 | } 79 | -------------------------------------------------------------------------------- /mall-admin/src/main/java/com/doudouj/config/MybatisConfigTrade.java: -------------------------------------------------------------------------------- 1 | package com.doudouj.config; 2 | 3 | import com.doudouj.properties.TradeDatabaseProperties; 4 | import lombok.extern.slf4j.Slf4j; 5 | import org.apache.ibatis.session.SqlSessionFactory; 6 | import org.mybatis.spring.SqlSessionFactoryBean; 7 | import org.mybatis.spring.SqlSessionTemplate; 8 | import org.mybatis.spring.annotation.MapperScan; 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | import org.springframework.beans.factory.annotation.Qualifier; 11 | import org.springframework.boot.jdbc.DataSourceBuilder; 12 | import org.springframework.context.annotation.Bean; 13 | import org.springframework.context.annotation.Configuration; 14 | import org.springframework.core.io.support.PathMatchingResourcePatternResolver; 15 | import org.springframework.jdbc.datasource.DataSourceTransactionManager; 16 | 17 | import javax.sql.DataSource; 18 | 19 | /** 20 | * @ClassName: MybatisConfigTrade 21 | * @Author: doudou 22 | * @Datetime: 2019/11/25-14:43 23 | * @Description: trade库配置 24 | */ 25 | @Configuration 26 | @MapperScan(basePackages = "com.doudouj.dao.trade", sqlSessionFactoryRef = "tradeSqlSessionFactory", sqlSessionTemplateRef = "tradeSqlSessionTemplate") 27 | @Slf4j 28 | public class MybatisConfigTrade { 29 | 30 | @Autowired 31 | private TradeDatabaseProperties prop; 32 | 33 | @Bean(name = "tradeDataSource") 34 | public DataSource tradeDataSource() { 35 | return DataSourceBuilder.create() 36 | .driverClassName(prop.getDriver()) 37 | .type(getType(prop.getType())) 38 | .username(prop.getUsername()) 39 | .password(prop.getPassword()) 40 | .url(prop.getUrl()) 41 | .build(); 42 | } 43 | 44 | @Bean(name = "tradeSqlSessionFactory") 45 | SqlSessionFactory tradeSqlSessionFactory(@Qualifier("tradeDataSource") DataSource dataSource) { 46 | SqlSessionFactory sessionFactory = null; 47 | try { 48 | SqlSessionFactoryBean bean = new SqlSessionFactoryBean(); 49 | bean.setDataSource(dataSource); 50 | bean.setMapperLocations(new PathMatchingResourcePatternResolver() 51 | .getResources("classpath*:/mapper/trade/**/*.xml")); 52 | sessionFactory = bean.getObject(); 53 | } catch (Exception e) { 54 | log.error(e.getMessage()); 55 | } 56 | return sessionFactory; 57 | } 58 | 59 | @Bean(name = "tradeTransactionManager") 60 | public DataSourceTransactionManager accountTransactionManager(@Qualifier("tradeDataSource") DataSource dataSource) { 61 | return new DataSourceTransactionManager(dataSource); 62 | } 63 | 64 | @Bean(name = "tradeSqlSessionTemplate") 65 | SqlSessionTemplate tradeSqlSessionTemplate(@Qualifier("tradeSqlSessionFactory") SqlSessionFactory sqlSessionFactory) { 66 | return new SqlSessionTemplate(sqlSessionFactory); 67 | } 68 | 69 | private Class getType(String type) { 70 | try { 71 | return Class.forName(type); 72 | } catch (ClassNotFoundException e) { 73 | log.error(e.getMessage()); 74 | } 75 | return null; 76 | } 77 | 78 | } 79 | --------------------------------------------------------------------------------