From 1749ccbe41bbec841b1abe2fe749cd1b6b870a2b Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 5 Jun 2019 08:03:30 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E6=B8=85=E7=90=86=E8=A2=AB=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=8F=90=E4=BA=A4=E7=9A=84=20target?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +- .../target/classes/application-test.yaml | 6 - .../target/classes/application.yaml | 28 -- .../convert/PayRefundConvertImpl.java | 57 ---- .../classes/config/application-test.yaml | 26 -- .../classes/config/application.properties | 1 - .../target/classes/config/application.yaml | 41 --- pay/pay-service-impl/target/classes/file.conf | 69 ----- .../target/classes/mapper/PayAppMapper.xml | 37 --- .../classes/mapper/PayNotifyLogMapper.xml | 46 ---- .../classes/mapper/PayNotifyTaskMapper.xml | 61 ----- .../target/classes/mapper/PayRefundMapper.xml | 122 --------- .../mapper/PayTransactionExtensionMapper.xml | 51 ---- .../classes/mapper/PayTransactionMapper.xml | 159 ----------- .../target/classes/mybatis-config.xml | 19 -- .../target/classes/registry.conf | 14 - .../pay/biz/convert/PayNotifyConvertImpl.java | 128 --------- .../pay/biz/convert/PayRefundConvertImpl.java | 76 ------ .../convert/PayTransactionConvertImpl.java | 96 ------- .../target/classes/application-test.yaml | 6 - .../target/classes/application.yaml | 34 --- .../convert/ProductAttrConvertImpl.java | 185 ------------- .../convert/ProductBrandConvertImpl.java | 61 ----- .../ProductCategoryConvert$AdminsImpl.java | 55 ---- .../ProductCategoryConvert$UsersImpl.java | 45 ---- .../convert/ProductSpuConvertImpl.java | 251 ------------------ .../classes/config/application-test.yaml | 13 - .../target/classes/config/application.yaml | 47 ---- .../target/classes/file.conf | 69 ----- .../classes/mapper/ProductAttrMapper.xml | 105 -------- .../classes/mapper/ProductAttrValueMapper.xml | 130 --------- .../classes/mapper/ProductBrandMapper.xml | 95 ------- .../classes/mapper/ProductCategoryMapper.xml | 84 ------ .../classes/mapper/ProductSkuMapper.xml | 87 ------ .../classes/mapper/ProductSpuMapper.xml | 145 ---------- .../target/classes/mybatis-config.xml | 19 -- .../target/classes/registry.conf | 14 - .../convert/ProductAttrConvertImpl.java | 227 ---------------- .../convert/ProductBrandConvertImpl.java | 81 ------ .../convert/ProductCategoryConvertImpl.java | 86 ------ .../convert/ProductSpuConvertImpl.java | 218 --------------- .../target/classes/application-test.yaml | 6 - .../target/classes/application.yaml | 29 -- .../convert/BannerConvert$AdminsImpl.java | 65 ----- .../convert/BannerConvert$UsersImpl.java | 43 --- .../convert/CouponCardConvertImpl.java | 67 ----- .../CouponTemplateConvert$AdminsImpl.java | 80 ------ .../CouponTemplateConvert$UsersImpl.java | 41 --- .../convert/CouponTemplateConvertImpl.java | 11 - .../convert/ProductRecommendConvertImpl.java | 85 ------ .../classes/config/application-test.yaml | 7 - .../target/classes/config/application.yaml | 54 ---- .../target/classes/file.conf | 69 ----- .../target/classes/mapper/BannerMapper.xml | 110 -------- .../classes/mapper/CouponCardMapper.xml | 134 ---------- .../classes/mapper/CouponTemplateMapper.xml | 169 ------------ .../classes/mapper/ProductRecommendMapper.xml | 125 --------- .../mapper/PromotionActivityMapper.xml | 135 ---------- .../target/classes/registry.conf | 14 - .../biz/convert/BannerConvertImpl.java | 86 ------ .../biz/convert/CouponCardConvertImpl.java | 114 -------- .../convert/CouponTemplateConvertImpl.java | 135 ---------- .../convert/ProductRecommendConvertImpl.java | 83 ------ .../convert/PromotionActivityConvertImpl.java | 139 ---------- .../target/classes/application-test.yaml | 6 - .../target/classes/application.yaml | 29 -- .../classes/config/application-test.yaml | 14 - .../target/classes/config/application.yaml | 37 --- .../biz/convert/ProductSearchConvertImpl.java | 83 ------ sessionStore/root.data | Bin 9710 -> 0 bytes .../target/classes/application-test.yaml | 18 -- .../target/classes/application.yaml | 42 --- .../application/convert/AdminConvertImpl.java | 155 ----------- .../convert/DataDictConvertImpl.java | 42 --- .../convert/PassportConvertImpl.java | 44 --- .../convert/ResourceConvertImpl.java | 111 -------- .../application/convert/RoleConvertImpl.java | 11 - .../classes/config/application-test.yaml | 7 - .../classes/config/application.properties | 4 - .../target/classes/config/application.yaml | 67 ----- .../target/classes/mapper/AdminRoleMapper.xml | 14 - .../target/classes/mapper/DataDictMapper.xml | 40 --- .../target/classes/mapper/ResourceMapper.xml | 27 -- .../classes/mapper/RoleResourceMapper.xml | 14 - .../admin/convert/AccessLogConvertImpl.java | 70 ----- .../mall/admin/convert/AdminConvertImpl.java | 110 -------- .../admin/convert/DataDictConvertImpl.java | 85 ------ .../mall/admin/convert/OAuth2ConvertImpl.java | 42 --- .../admin/convert/ResourceConvertImpl.java | 91 ------- .../mall/admin/convert/RoleConvertImpl.java | 89 ------- .../admin/convert/SmsSignConvertImpl.java | 64 ----- .../admin/convert/SmsTemplateConvertImpl.java | 101 ------- .../target/classes/application-test.yaml | 6 - .../target/classes/application.yaml | 28 -- .../convert/UserAddressConvertImpl.java | 50 ---- .../application/convert/UserConvertImpl.java | 78 ------ .../classes/config/application-test.yaml | 7 - .../classes/config/application.properties | 5 - .../target/classes/config/application.yaml | 44 --- .../target/classes/mapper/UserAddress.xml | 72 ----- .../target/classes/mapper/UserMapper.xml | 88 ------ .../classes/mapper/UserRegisterMapper.xml | 13 - .../user/biz/convert/OAuth2ConvertImpl.java | 41 --- .../biz/convert/UserAccessLogConvertImpl.java | 33 --- .../biz/convert/UserAddressConvertImpl.java | 91 ------- .../user/biz/convert/UserConvertImpl.java | 82 ------ 106 files changed, 2 insertions(+), 6951 deletions(-) delete mode 100644 pay/pay-application/target/classes/application-test.yaml delete mode 100644 pay/pay-application/target/classes/application.yaml delete mode 100644 pay/pay-application/target/generated-sources/annotations/cn/iocoder/mall/pay/application/convert/PayRefundConvertImpl.java delete mode 100644 pay/pay-service-impl/target/classes/config/application-test.yaml delete mode 100644 pay/pay-service-impl/target/classes/config/application.properties delete mode 100644 pay/pay-service-impl/target/classes/config/application.yaml delete mode 100644 pay/pay-service-impl/target/classes/file.conf delete mode 100644 pay/pay-service-impl/target/classes/mapper/PayAppMapper.xml delete mode 100644 pay/pay-service-impl/target/classes/mapper/PayNotifyLogMapper.xml delete mode 100644 pay/pay-service-impl/target/classes/mapper/PayNotifyTaskMapper.xml delete mode 100644 pay/pay-service-impl/target/classes/mapper/PayRefundMapper.xml delete mode 100644 pay/pay-service-impl/target/classes/mapper/PayTransactionExtensionMapper.xml delete mode 100644 pay/pay-service-impl/target/classes/mapper/PayTransactionMapper.xml delete mode 100644 pay/pay-service-impl/target/classes/mybatis-config.xml delete mode 100644 pay/pay-service-impl/target/classes/registry.conf delete mode 100644 pay/pay-service-impl/target/generated-sources/annotations/cn/iocoder/mall/pay/biz/convert/PayNotifyConvertImpl.java delete mode 100644 pay/pay-service-impl/target/generated-sources/annotations/cn/iocoder/mall/pay/biz/convert/PayRefundConvertImpl.java delete mode 100644 pay/pay-service-impl/target/generated-sources/annotations/cn/iocoder/mall/pay/biz/convert/PayTransactionConvertImpl.java delete mode 100644 product/product-application/target/classes/application-test.yaml delete mode 100644 product/product-application/target/classes/application.yaml delete mode 100644 product/product-application/target/generated-sources/annotations/cn/iocoder/mall/product/application/convert/ProductAttrConvertImpl.java delete mode 100644 product/product-application/target/generated-sources/annotations/cn/iocoder/mall/product/application/convert/ProductBrandConvertImpl.java delete mode 100644 product/product-application/target/generated-sources/annotations/cn/iocoder/mall/product/application/convert/ProductCategoryConvert$AdminsImpl.java delete mode 100644 product/product-application/target/generated-sources/annotations/cn/iocoder/mall/product/application/convert/ProductCategoryConvert$UsersImpl.java delete mode 100644 product/product-application/target/generated-sources/annotations/cn/iocoder/mall/product/application/convert/ProductSpuConvertImpl.java delete mode 100644 product/product-service-impl/target/classes/config/application-test.yaml delete mode 100644 product/product-service-impl/target/classes/config/application.yaml delete mode 100644 product/product-service-impl/target/classes/file.conf delete mode 100644 product/product-service-impl/target/classes/mapper/ProductAttrMapper.xml delete mode 100644 product/product-service-impl/target/classes/mapper/ProductAttrValueMapper.xml delete mode 100644 product/product-service-impl/target/classes/mapper/ProductBrandMapper.xml delete mode 100644 product/product-service-impl/target/classes/mapper/ProductCategoryMapper.xml delete mode 100644 product/product-service-impl/target/classes/mapper/ProductSkuMapper.xml delete mode 100644 product/product-service-impl/target/classes/mapper/ProductSpuMapper.xml delete mode 100644 product/product-service-impl/target/classes/mybatis-config.xml delete mode 100644 product/product-service-impl/target/classes/registry.conf delete mode 100644 product/product-service-impl/target/generated-sources/annotations/cn/iocoder/mall/product/convert/ProductAttrConvertImpl.java delete mode 100644 product/product-service-impl/target/generated-sources/annotations/cn/iocoder/mall/product/convert/ProductBrandConvertImpl.java delete mode 100644 product/product-service-impl/target/generated-sources/annotations/cn/iocoder/mall/product/convert/ProductCategoryConvertImpl.java delete mode 100644 product/product-service-impl/target/generated-sources/annotations/cn/iocoder/mall/product/convert/ProductSpuConvertImpl.java delete mode 100644 promotion/promotion-application/target/classes/application-test.yaml delete mode 100644 promotion/promotion-application/target/classes/application.yaml delete mode 100644 promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/BannerConvert$AdminsImpl.java delete mode 100644 promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/BannerConvert$UsersImpl.java delete mode 100644 promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/CouponCardConvertImpl.java delete mode 100644 promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/CouponTemplateConvert$AdminsImpl.java delete mode 100644 promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/CouponTemplateConvert$UsersImpl.java delete mode 100644 promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/CouponTemplateConvertImpl.java delete mode 100644 promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/ProductRecommendConvertImpl.java delete mode 100644 promotion/promotion-service-impl/target/classes/config/application-test.yaml delete mode 100644 promotion/promotion-service-impl/target/classes/config/application.yaml delete mode 100644 promotion/promotion-service-impl/target/classes/file.conf delete mode 100644 promotion/promotion-service-impl/target/classes/mapper/BannerMapper.xml delete mode 100644 promotion/promotion-service-impl/target/classes/mapper/CouponCardMapper.xml delete mode 100644 promotion/promotion-service-impl/target/classes/mapper/CouponTemplateMapper.xml delete mode 100644 promotion/promotion-service-impl/target/classes/mapper/ProductRecommendMapper.xml delete mode 100644 promotion/promotion-service-impl/target/classes/mapper/PromotionActivityMapper.xml delete mode 100644 promotion/promotion-service-impl/target/classes/registry.conf delete mode 100644 promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/BannerConvertImpl.java delete mode 100644 promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/CouponCardConvertImpl.java delete mode 100644 promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/CouponTemplateConvertImpl.java delete mode 100644 promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/ProductRecommendConvertImpl.java delete mode 100644 promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/PromotionActivityConvertImpl.java delete mode 100644 search/search-application/target/classes/application-test.yaml delete mode 100644 search/search-application/target/classes/application.yaml delete mode 100644 search/search-service-impl/target/classes/config/application-test.yaml delete mode 100644 search/search-service-impl/target/classes/config/application.yaml delete mode 100644 search/search-service-impl/target/generated-sources/annotations/cn/iocoder/mall/search/biz/convert/ProductSearchConvertImpl.java delete mode 100644 sessionStore/root.data delete mode 100644 system/system-application/target/classes/application-test.yaml delete mode 100644 system/system-application/target/classes/application.yaml delete mode 100644 system/system-application/target/generated-sources/annotations/cn/iocoder/mall/admin/application/convert/AdminConvertImpl.java delete mode 100644 system/system-application/target/generated-sources/annotations/cn/iocoder/mall/admin/application/convert/DataDictConvertImpl.java delete mode 100644 system/system-application/target/generated-sources/annotations/cn/iocoder/mall/admin/application/convert/PassportConvertImpl.java delete mode 100644 system/system-application/target/generated-sources/annotations/cn/iocoder/mall/admin/application/convert/ResourceConvertImpl.java delete mode 100644 system/system-application/target/generated-sources/annotations/cn/iocoder/mall/admin/application/convert/RoleConvertImpl.java delete mode 100644 system/system-service-impl/target/classes/config/application-test.yaml delete mode 100644 system/system-service-impl/target/classes/config/application.properties delete mode 100644 system/system-service-impl/target/classes/config/application.yaml delete mode 100644 system/system-service-impl/target/classes/mapper/AdminRoleMapper.xml delete mode 100644 system/system-service-impl/target/classes/mapper/DataDictMapper.xml delete mode 100644 system/system-service-impl/target/classes/mapper/ResourceMapper.xml delete mode 100644 system/system-service-impl/target/classes/mapper/RoleResourceMapper.xml delete mode 100644 system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/AccessLogConvertImpl.java delete mode 100644 system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/AdminConvertImpl.java delete mode 100644 system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/DataDictConvertImpl.java delete mode 100644 system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/OAuth2ConvertImpl.java delete mode 100644 system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/ResourceConvertImpl.java delete mode 100644 system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/RoleConvertImpl.java delete mode 100644 system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/SmsSignConvertImpl.java delete mode 100644 system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/SmsTemplateConvertImpl.java delete mode 100644 user/user-application/target/classes/application-test.yaml delete mode 100644 user/user-application/target/classes/application.yaml delete mode 100644 user/user-application/target/generated-sources/annotations/cn/iocoder/mall/user/application/convert/UserAddressConvertImpl.java delete mode 100644 user/user-application/target/generated-sources/annotations/cn/iocoder/mall/user/application/convert/UserConvertImpl.java delete mode 100644 user/user-service-impl/target/classes/config/application-test.yaml delete mode 100644 user/user-service-impl/target/classes/config/application.properties delete mode 100644 user/user-service-impl/target/classes/config/application.yaml delete mode 100644 user/user-service-impl/target/classes/mapper/UserAddress.xml delete mode 100644 user/user-service-impl/target/classes/mapper/UserMapper.xml delete mode 100644 user/user-service-impl/target/classes/mapper/UserRegisterMapper.xml delete mode 100644 user/user-service-impl/target/generated-sources/annotations/cn/iocoder/mall/user/biz/convert/OAuth2ConvertImpl.java delete mode 100644 user/user-service-impl/target/generated-sources/annotations/cn/iocoder/mall/user/biz/convert/UserAccessLogConvertImpl.java delete mode 100644 user/user-service-impl/target/generated-sources/annotations/cn/iocoder/mall/user/biz/convert/UserAddressConvertImpl.java delete mode 100644 user/user-service-impl/target/generated-sources/annotations/cn/iocoder/mall/user/biz/convert/UserConvertImpl.java diff --git a/.gitignore b/.gitignore index 0b455d563..013850cc0 100644 --- a/.gitignore +++ b/.gitignore @@ -69,4 +69,5 @@ functions/mock # screenshot screenshot -.firebase \ No newline at end of file +.firebase +sessionStore diff --git a/pay/pay-application/target/classes/application-test.yaml b/pay/pay-application/target/classes/application-test.yaml deleted file mode 100644 index fe7f43541..000000000 --- a/pay/pay-application/target/classes/application-test.yaml +++ /dev/null @@ -1,6 +0,0 @@ -swagger: - enable: true - title: 支付子系统 - description: 支付子系统 - version: 1.0.0 - base-package: cn.iocoder.mall.pay.application.controller diff --git a/pay/pay-application/target/classes/application.yaml b/pay/pay-application/target/classes/application.yaml deleted file mode 100644 index 3e2704368..000000000 --- a/pay/pay-application/target/classes/application.yaml +++ /dev/null @@ -1,28 +0,0 @@ -spring: - application: - name: pay-application - cloud: - sentinel: - transport: - port: 8719 - dashboard: localhost:12088 - metric: - charset: UTF-8 - eager: false - -# server -server: - port: 18084 - servlet: - context-path: /pay-api/ - -swagger: - enable: false - -management: - endpoints: - web: - exposure: - include: health,info,env,metrics,prometheus - metrics: - enabled: true diff --git a/pay/pay-application/target/generated-sources/annotations/cn/iocoder/mall/pay/application/convert/PayRefundConvertImpl.java b/pay/pay-application/target/generated-sources/annotations/cn/iocoder/mall/pay/application/convert/PayRefundConvertImpl.java deleted file mode 100644 index e6311c992..000000000 --- a/pay/pay-application/target/generated-sources/annotations/cn/iocoder/mall/pay/application/convert/PayRefundConvertImpl.java +++ /dev/null @@ -1,57 +0,0 @@ -package cn.iocoder.mall.pay.application.convert; - -import cn.iocoder.mall.pay.api.bo.refund.PayRefundBO; -import cn.iocoder.mall.pay.application.vo.admins.AdminsPayRefundDetailVO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:47:14+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class PayRefundConvertImpl implements PayRefundConvert { - - @Override - public List convertList(List refunds) { - if ( refunds == null ) { - return null; - } - - List list = new ArrayList( refunds.size() ); - for ( PayRefundBO payRefundBO : refunds ) { - list.add( payRefundBOToAdminsPayRefundDetailVO( payRefundBO ) ); - } - - return list; - } - - protected AdminsPayRefundDetailVO payRefundBOToAdminsPayRefundDetailVO(PayRefundBO payRefundBO) { - if ( payRefundBO == null ) { - return null; - } - - AdminsPayRefundDetailVO adminsPayRefundDetailVO = new AdminsPayRefundDetailVO(); - - adminsPayRefundDetailVO.setId( payRefundBO.getId() ); - adminsPayRefundDetailVO.setTransactionId( payRefundBO.getTransactionId() ); - adminsPayRefundDetailVO.setRefundCode( payRefundBO.getRefundCode() ); - adminsPayRefundDetailVO.setAppId( payRefundBO.getAppId() ); - adminsPayRefundDetailVO.setOrderId( payRefundBO.getOrderId() ); - adminsPayRefundDetailVO.setCreateIp( payRefundBO.getCreateIp() ); - adminsPayRefundDetailVO.setOrderDescription( payRefundBO.getOrderDescription() ); - adminsPayRefundDetailVO.setPrice( payRefundBO.getPrice() ); - adminsPayRefundDetailVO.setStatus( payRefundBO.getStatus() ); - adminsPayRefundDetailVO.setFinishTime( payRefundBO.getFinishTime() ); - adminsPayRefundDetailVO.setNotifyUrl( payRefundBO.getNotifyUrl() ); - adminsPayRefundDetailVO.setExtensionData( payRefundBO.getExtensionData() ); - adminsPayRefundDetailVO.setRefundChannel( payRefundBO.getRefundChannel() ); - adminsPayRefundDetailVO.setRefundTime( payRefundBO.getRefundTime() ); - adminsPayRefundDetailVO.setNotifyTime( payRefundBO.getNotifyTime() ); - adminsPayRefundDetailVO.setTradeNo( payRefundBO.getTradeNo() ); - adminsPayRefundDetailVO.setCreateTime( payRefundBO.getCreateTime() ); - - return adminsPayRefundDetailVO; - } -} diff --git a/pay/pay-service-impl/target/classes/config/application-test.yaml b/pay/pay-service-impl/target/classes/config/application-test.yaml deleted file mode 100644 index de4b20659..000000000 --- a/pay/pay-service-impl/target/classes/config/application-test.yaml +++ /dev/null @@ -1,26 +0,0 @@ -spring: - # datasource - datasource: - url: jdbc:mysql://192.168.88.14:3306/mall_pay?useSSL=false&useUnicode=true&characterEncoding=UTF-8 - driver-class-name: com.mysql.jdbc.Driver - username: root - password: ${MALL_MYSQL_PASSWORD} - -# xxl-job -xxl: - job: - admin: - addresses: http://127.0.0.1:18079/ - executor: - appname: pay-job-executor - ip: - port: 0 - logpath: /Users/yunai/logs/xxl-job/ - logretentiondays: 1 - accessToken: - -# rocketmq -rocketmq: - name-server: 192.168.88.14:9876 - producer: - group: pay-producer-group diff --git a/pay/pay-service-impl/target/classes/config/application.properties b/pay/pay-service-impl/target/classes/config/application.properties deleted file mode 100644 index 125191e02..000000000 --- a/pay/pay-service-impl/target/classes/config/application.properties +++ /dev/null @@ -1 +0,0 @@ -##################### 业务模块 ##################### \ No newline at end of file diff --git a/pay/pay-service-impl/target/classes/config/application.yaml b/pay/pay-service-impl/target/classes/config/application.yaml deleted file mode 100644 index c32231710..000000000 --- a/pay/pay-service-impl/target/classes/config/application.yaml +++ /dev/null @@ -1,41 +0,0 @@ -spring: - # datasource - datasource: - url: jdbc:mysql://180.167.213.26:13306/mall_pay?useSSL=false&useUnicode=true&characterEncoding=UTF-8 - driver-class-name: com.mysql.jdbc.Driver - username: root - password: ${MALL_MYSQL_PASSWORD} - -# mybatis -mybatis-plus: - config-location: classpath:mybatis-config.xml - mapper-locations: classpath:mapper/*.xml - type-aliases-package: cn.iocoder.mall.pay.biz.dataobject - -# dubbo -dubbo: - application: - name: pay-service - registry: - address: zookeeper://127.0.0.1:2181 - protocol: - port: -1 - name: dubbo - scan: - base-packages: cn.iocoder.mall.pay.biz.service - provider: - filter: -exception - PayTransactionService: - version: 1.0.0 - PayRefundService: - version: 1.0.0 - -# rocketmq -rocketmq: - name-server: 127.0.0.1:9876 - producer: - group: pay-producer-group - -# seata -seata: - tx-service-group: my_test_tx_group diff --git a/pay/pay-service-impl/target/classes/file.conf b/pay/pay-service-impl/target/classes/file.conf deleted file mode 100644 index 8b60b29c3..000000000 --- a/pay/pay-service-impl/target/classes/file.conf +++ /dev/null @@ -1,69 +0,0 @@ -transport { - # tcp udt unix-domain-socket - type = "TCP" - #NIO NATIVE - server = "NIO" - #enable heartbeat - heartbeat = true - #thread factory for netty - thread-factory { - boss-thread-prefix = "NettyBoss" - worker-thread-prefix = "NettyServerNIOWorker" - server-executor-thread-prefix = "NettyServerBizHandler" - share-boss-worker = false - client-selector-thread-prefix = "NettyClientSelector" - client-selector-thread-size = 1 - client-worker-thread-prefix = "NettyClientWorkerThread" - # netty boss thread size,will not be used for UDT - boss-thread-size = 1 - #auto default pin or 8 - worker-thread-size = 8 - } -} - -service { - #vgroup->rgroup - vgroup_mapping.my_test_tx_group = "default" - #only support single node - default.grouplist = "180.167.213.26:8091" - #degrade current not support - enableDegrade = false - #disable - disable = false -} - -client { - async.commit.buffer.limit = 10000 - lock { - retry.internal = 10 - retry.times = 30 - } -} -## transaction log store -store { - ## store mode: file、db - mode = "file" - - ## file store - file { - dir = "file_store/data" - - # branch session size , if exceeded first try compress lockkey, still exceeded throws exceptions - max-branch-session-size = 16384 - # globe session size , if exceeded throws exceptions - max-global-session-size = 512 - # file buffer size , if exceeded allocate new buffer - file-write-buffer-cache-size = 16384 - # when recover batch read size - session.reload.read_size = 100 - } - - ## database store - db { - driver_class = "" - url = "" - user = "" - password = "" - } -} - diff --git a/pay/pay-service-impl/target/classes/mapper/PayAppMapper.xml b/pay/pay-service-impl/target/classes/mapper/PayAppMapper.xml deleted file mode 100644 index b01ab537e..000000000 --- a/pay/pay-service-impl/target/classes/mapper/PayAppMapper.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - id, name, notify_url, refund_notify_url, status, create_time - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pay/pay-service-impl/target/classes/mapper/PayNotifyLogMapper.xml b/pay/pay-service-impl/target/classes/mapper/PayNotifyLogMapper.xml deleted file mode 100644 index bb0600627..000000000 --- a/pay/pay-service-impl/target/classes/mapper/PayNotifyLogMapper.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - INSERT INTO notify_log ( - notify_id, request, response, status - ) VALUES ( - #{notifyId}, #{request}, #{response}, #{status} - ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pay/pay-service-impl/target/classes/mapper/PayNotifyTaskMapper.xml b/pay/pay-service-impl/target/classes/mapper/PayNotifyTaskMapper.xml deleted file mode 100644 index 89e5b4282..000000000 --- a/pay/pay-service-impl/target/classes/mapper/PayNotifyTaskMapper.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - id, app_id, type, - status, next_notify_time, last_execute_time, notify_times, max_notify_times, - create_time - - - - - - - - - INSERT INTO notify_task ( - app_id, type, - status, next_notify_time, notify_times, max_notify_times, - `transaction`, refund - ) VALUES ( - #{appId}, #{type}, - #{status}, #{nextNotifyTime}, #{notifyTimes}, #{maxNotifyTimes}, - #{transaction, typeHandler=cn.iocoder.common.framework.mybatis.JSONTypeHandler}, - #{refund, typeHandler=cn.iocoder.common.framework.mybatis.JSONTypeHandler} - ) - - - - UPDATE notify_task - - - , status = #{status} - - - , next_notify_time = #{nextNotifyTime} - - - , last_execute_time = #{lastExecuteTime} - - - , notify_times = #{notifyTimes} - - - WHERE id = #{id} - - - - - diff --git a/pay/pay-service-impl/target/classes/mapper/PayRefundMapper.xml b/pay/pay-service-impl/target/classes/mapper/PayRefundMapper.xml deleted file mode 100644 index 38e75b4e7..000000000 --- a/pay/pay-service-impl/target/classes/mapper/PayRefundMapper.xml +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - id, transaction_id, refund_code, app_id, create_ip, order_id, - order_description, price, status, - finish_time, notify_url, extension_data, refund_channel, refund_time, notify_time, - trade_no, create_time - - - - INSERT INTO refund ( - transaction_id, refund_code, app_id, create_ip, order_id, - order_description, price, status, - finish_time, notify_url, extension_data, refund_channel, refund_time, notify_time, - trade_no, create_time - ) VALUES ( - #{transactionId}, #{refundCode}, #{appId}, #{createIp}, #{orderId}, - #{orderDescription}, #{price}, #{status}, - #{finishTime}, #{notifyUrl}, #{extensionData}, #{refundChannel}, #{refundTime}, #{notifyTime}, - #{tradeNo}, #{createTime} - ) - - - - UPDATE refund - - - , status = #{entity.status} - - - , finish_time = #{entity.finishTime} - - - , extension_data = #{entity.extensionData} - - - , refund_time = #{entity.refundTime} - - - , notify_time = #{entity.notifyTime} - - - , trade_no = #{entity.tradeNo} - - - WHERE id = #{entity.id} - - AND status = #{whereStatus} - - - - - - - - - - - - diff --git a/pay/pay-service-impl/target/classes/mapper/PayTransactionExtensionMapper.xml b/pay/pay-service-impl/target/classes/mapper/PayTransactionExtensionMapper.xml deleted file mode 100644 index 489f98e12..000000000 --- a/pay/pay-service-impl/target/classes/mapper/PayTransactionExtensionMapper.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - id, transaction_id, pay_channel, transaction_code, extension_data, - create_ip, status, create_time - - - - INSERT INTO transaction_extension ( - transaction_id, pay_channel, transaction_code, extension_data, - create_ip, status - ) VALUES ( - #{transactionId}, #{payChannel}, #{transactionCode}, #{extensionData}, - #{createIp}, #{status} - ) - - - - UPDATE transaction_extension - - - , extension_data = #{entity.extensionData} - - - , status = #{entity.status} - - - WHERE id = #{entity.id} - - AND status = #{whereStatus} - - - - - - - - diff --git a/pay/pay-service-impl/target/classes/mapper/PayTransactionMapper.xml b/pay/pay-service-impl/target/classes/mapper/PayTransactionMapper.xml deleted file mode 100644 index 0ed1bf802..000000000 --- a/pay/pay-service-impl/target/classes/mapper/PayTransactionMapper.xml +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - id, app_id, create_ip, order_id, order_subject, - order_description, order_memo, price, status, expire_time, - finish_time, notify_url, extension_id, pay_channel, payment_time, - notify_time, trade_no, refund_total, create_time - - - - INSERT INTO transaction ( - app_id, create_ip, order_id, order_subject, - order_description, order_memo, price, status, expire_time, - finish_time, notify_url, extension_id, pay_channel, payment_time, - notify_time, trade_no, create_time - ) VALUES ( - #{appId}, #{createIp}, #{orderId}, #{orderSubject}, - #{orderDescription}, #{orderMemo}, #{price}, #{status}, #{expireTime}, - #{finishTime}, #{notifyUrl}, #{extensionId}, #{payChannel}, #{paymentTime}, - #{notifyTime}, #{tradeNo}, #{createTime} - ) - - - - UPDATE transaction - - - , status = #{entity.status} - - - , extension_id = #{entity.extensionId} - - - , pay_channel = #{entity.payChannel} - - - , payment_time = #{entity.paymentTime} - - - , finish_time = #{entity.finishTime} - - - , notify_time = #{entity.notifyTime} - - - , trade_no = #{entity.tradeNo} - - - WHERE id = #{entity.id} - - AND status = #{whereStatus} - - - - - UPDATE `transaction` - SET refund_total = refund_total + ${refundTotalIncr} - WHERE price >= refund_total + ${refundTotalIncr} - - - - - - - - - - - - - diff --git a/pay/pay-service-impl/target/classes/mybatis-config.xml b/pay/pay-service-impl/target/classes/mybatis-config.xml deleted file mode 100644 index 7f604cc7e..000000000 --- a/pay/pay-service-impl/target/classes/mybatis-config.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/pay/pay-service-impl/target/classes/registry.conf b/pay/pay-service-impl/target/classes/registry.conf deleted file mode 100644 index f73989514..000000000 --- a/pay/pay-service-impl/target/classes/registry.conf +++ /dev/null @@ -1,14 +0,0 @@ -registry { - type = "file" - - file { - name = "file.conf" - } - - zk { - cluster = "default" - serverAddr = "192.168.88.10:2181" - session.timeout = 6000 - connect.timeout = 2000 - } -} diff --git a/pay/pay-service-impl/target/generated-sources/annotations/cn/iocoder/mall/pay/biz/convert/PayNotifyConvertImpl.java b/pay/pay-service-impl/target/generated-sources/annotations/cn/iocoder/mall/pay/biz/convert/PayNotifyConvertImpl.java deleted file mode 100644 index dba5e3482..000000000 --- a/pay/pay-service-impl/target/generated-sources/annotations/cn/iocoder/mall/pay/biz/convert/PayNotifyConvertImpl.java +++ /dev/null @@ -1,128 +0,0 @@ -package cn.iocoder.mall.pay.biz.convert; - -import cn.iocoder.mall.pay.api.message.PayRefundSuccessMessage; -import cn.iocoder.mall.pay.api.message.PayTransactionSuccessMessage; -import cn.iocoder.mall.pay.biz.dataobject.PayNotifyTaskDO; -import cn.iocoder.mall.pay.biz.dataobject.PayNotifyTaskDO.Refund; -import cn.iocoder.mall.pay.biz.dataobject.PayNotifyTaskDO.Transaction; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:39:00+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class PayNotifyConvertImpl implements PayNotifyConvert { - - @Override - public PayTransactionSuccessMessage convertTransaction(PayNotifyTaskDO payTransactionNotifyTaskDO) { - if ( payTransactionNotifyTaskDO == null ) { - return null; - } - - PayTransactionSuccessMessage payTransactionSuccessMessage = new PayTransactionSuccessMessage(); - - payTransactionSuccessMessage.setOrderId( payTransactionNotifyTaskDOTransactionOrderId( payTransactionNotifyTaskDO ) ); - payTransactionSuccessMessage.setTransactionId( payTransactionNotifyTaskDOTransactionTransactionId( payTransactionNotifyTaskDO ) ); - payTransactionSuccessMessage.setId( payTransactionNotifyTaskDO.getId() ); - payTransactionSuccessMessage.setAppId( payTransactionNotifyTaskDO.getAppId() ); - payTransactionSuccessMessage.setNotifyTimes( payTransactionNotifyTaskDO.getNotifyTimes() ); - payTransactionSuccessMessage.setNotifyUrl( payTransactionNotifyTaskDO.getNotifyUrl() ); - - return payTransactionSuccessMessage; - } - - @Override - public PayRefundSuccessMessage convertRefund(PayNotifyTaskDO payTransactionNotifyTaskDO) { - if ( payTransactionNotifyTaskDO == null ) { - return null; - } - - PayRefundSuccessMessage payRefundSuccessMessage = new PayRefundSuccessMessage(); - - payRefundSuccessMessage.setOrderId( payTransactionNotifyTaskDORefundOrderId( payTransactionNotifyTaskDO ) ); - payRefundSuccessMessage.setTransactionId( payTransactionNotifyTaskDORefundTransactionId( payTransactionNotifyTaskDO ) ); - payRefundSuccessMessage.setRefundId( payTransactionNotifyTaskDORefundRefundId( payTransactionNotifyTaskDO ) ); - payRefundSuccessMessage.setId( payTransactionNotifyTaskDO.getId() ); - payRefundSuccessMessage.setAppId( payTransactionNotifyTaskDO.getAppId() ); - payRefundSuccessMessage.setNotifyTimes( payTransactionNotifyTaskDO.getNotifyTimes() ); - payRefundSuccessMessage.setNotifyUrl( payTransactionNotifyTaskDO.getNotifyUrl() ); - - return payRefundSuccessMessage; - } - - private String payTransactionNotifyTaskDOTransactionOrderId(PayNotifyTaskDO payNotifyTaskDO) { - if ( payNotifyTaskDO == null ) { - return null; - } - Transaction transaction = payNotifyTaskDO.getTransaction(); - if ( transaction == null ) { - return null; - } - String orderId = transaction.getOrderId(); - if ( orderId == null ) { - return null; - } - return orderId; - } - - private Integer payTransactionNotifyTaskDOTransactionTransactionId(PayNotifyTaskDO payNotifyTaskDO) { - if ( payNotifyTaskDO == null ) { - return null; - } - Transaction transaction = payNotifyTaskDO.getTransaction(); - if ( transaction == null ) { - return null; - } - Integer transactionId = transaction.getTransactionId(); - if ( transactionId == null ) { - return null; - } - return transactionId; - } - - private String payTransactionNotifyTaskDORefundOrderId(PayNotifyTaskDO payNotifyTaskDO) { - if ( payNotifyTaskDO == null ) { - return null; - } - Refund refund = payNotifyTaskDO.getRefund(); - if ( refund == null ) { - return null; - } - String orderId = refund.getOrderId(); - if ( orderId == null ) { - return null; - } - return orderId; - } - - private Integer payTransactionNotifyTaskDORefundTransactionId(PayNotifyTaskDO payNotifyTaskDO) { - if ( payNotifyTaskDO == null ) { - return null; - } - Refund refund = payNotifyTaskDO.getRefund(); - if ( refund == null ) { - return null; - } - Integer transactionId = refund.getTransactionId(); - if ( transactionId == null ) { - return null; - } - return transactionId; - } - - private Integer payTransactionNotifyTaskDORefundRefundId(PayNotifyTaskDO payNotifyTaskDO) { - if ( payNotifyTaskDO == null ) { - return null; - } - Refund refund = payNotifyTaskDO.getRefund(); - if ( refund == null ) { - return null; - } - Integer refundId = refund.getRefundId(); - if ( refundId == null ) { - return null; - } - return refundId; - } -} diff --git a/pay/pay-service-impl/target/generated-sources/annotations/cn/iocoder/mall/pay/biz/convert/PayRefundConvertImpl.java b/pay/pay-service-impl/target/generated-sources/annotations/cn/iocoder/mall/pay/biz/convert/PayRefundConvertImpl.java deleted file mode 100644 index 94f5fa173..000000000 --- a/pay/pay-service-impl/target/generated-sources/annotations/cn/iocoder/mall/pay/biz/convert/PayRefundConvertImpl.java +++ /dev/null @@ -1,76 +0,0 @@ -package cn.iocoder.mall.pay.biz.convert; - -import cn.iocoder.mall.pay.api.bo.refund.PayRefundBO; -import cn.iocoder.mall.pay.api.dto.refund.PayRefundSubmitDTO; -import cn.iocoder.mall.pay.biz.dataobject.PayRefundDO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:39:00+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class PayRefundConvertImpl implements PayRefundConvert { - - @Override - public PayRefundDO convert(PayRefundSubmitDTO payRefundSubmitDTO) { - if ( payRefundSubmitDTO == null ) { - return null; - } - - PayRefundDO payRefundDO = new PayRefundDO(); - - payRefundDO.setAppId( payRefundSubmitDTO.getAppId() ); - payRefundDO.setOrderId( payRefundSubmitDTO.getOrderId() ); - payRefundDO.setCreateIp( payRefundSubmitDTO.getCreateIp() ); - payRefundDO.setOrderDescription( payRefundSubmitDTO.getOrderDescription() ); - payRefundDO.setPrice( payRefundSubmitDTO.getPrice() ); - - return payRefundDO; - } - - @Override - public PayRefundBO convert(PayRefundDO refund) { - if ( refund == null ) { - return null; - } - - PayRefundBO payRefundBO = new PayRefundBO(); - - payRefundBO.setId( refund.getId() ); - payRefundBO.setTransactionId( refund.getTransactionId() ); - payRefundBO.setRefundCode( refund.getRefundCode() ); - payRefundBO.setAppId( refund.getAppId() ); - payRefundBO.setOrderId( refund.getOrderId() ); - payRefundBO.setCreateIp( refund.getCreateIp() ); - payRefundBO.setOrderDescription( refund.getOrderDescription() ); - payRefundBO.setPrice( refund.getPrice() ); - payRefundBO.setStatus( refund.getStatus() ); - payRefundBO.setFinishTime( refund.getFinishTime() ); - payRefundBO.setNotifyUrl( refund.getNotifyUrl() ); - payRefundBO.setExtensionData( refund.getExtensionData() ); - payRefundBO.setRefundChannel( refund.getRefundChannel() ); - payRefundBO.setRefundTime( refund.getRefundTime() ); - payRefundBO.setNotifyTime( refund.getNotifyTime() ); - payRefundBO.setTradeNo( refund.getTradeNo() ); - payRefundBO.setCreateTime( refund.getCreateTime() ); - - return payRefundBO; - } - - @Override - public List convertList(List refunds) { - if ( refunds == null ) { - return null; - } - - List list = new ArrayList( refunds.size() ); - for ( PayRefundDO payRefundDO : refunds ) { - list.add( convert( payRefundDO ) ); - } - - return list; - } -} diff --git a/pay/pay-service-impl/target/generated-sources/annotations/cn/iocoder/mall/pay/biz/convert/PayTransactionConvertImpl.java b/pay/pay-service-impl/target/generated-sources/annotations/cn/iocoder/mall/pay/biz/convert/PayTransactionConvertImpl.java deleted file mode 100644 index e5ec3a2b7..000000000 --- a/pay/pay-service-impl/target/generated-sources/annotations/cn/iocoder/mall/pay/biz/convert/PayTransactionConvertImpl.java +++ /dev/null @@ -1,96 +0,0 @@ -package cn.iocoder.mall.pay.biz.convert; - -import cn.iocoder.mall.pay.api.bo.transaction.PayTransactionBO; -import cn.iocoder.mall.pay.api.dto.transaction.PayTransactionCreateDTO; -import cn.iocoder.mall.pay.api.dto.transaction.PayTransactionSubmitDTO; -import cn.iocoder.mall.pay.biz.dataobject.PayTransactionDO; -import cn.iocoder.mall.pay.biz.dataobject.PayTransactionExtensionDO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:39:00+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class PayTransactionConvertImpl implements PayTransactionConvert { - - @Override - public PayTransactionDO convert(PayTransactionCreateDTO payTransactionCreateDTO) { - if ( payTransactionCreateDTO == null ) { - return null; - } - - PayTransactionDO payTransactionDO = new PayTransactionDO(); - - payTransactionDO.setAppId( payTransactionCreateDTO.getAppId() ); - payTransactionDO.setOrderId( payTransactionCreateDTO.getOrderId() ); - payTransactionDO.setCreateIp( payTransactionCreateDTO.getCreateIp() ); - payTransactionDO.setOrderSubject( payTransactionCreateDTO.getOrderSubject() ); - payTransactionDO.setOrderDescription( payTransactionCreateDTO.getOrderDescription() ); - payTransactionDO.setOrderMemo( payTransactionCreateDTO.getOrderMemo() ); - payTransactionDO.setPrice( payTransactionCreateDTO.getPrice() ); - payTransactionDO.setExpireTime( payTransactionCreateDTO.getExpireTime() ); - - return payTransactionDO; - } - - @Override - public PayTransactionBO convert(PayTransactionDO payTransactionDO) { - if ( payTransactionDO == null ) { - return null; - } - - PayTransactionBO payTransactionBO = new PayTransactionBO(); - - payTransactionBO.setId( payTransactionDO.getId() ); - payTransactionBO.setAppId( payTransactionDO.getAppId() ); - payTransactionBO.setCreateIp( payTransactionDO.getCreateIp() ); - payTransactionBO.setOrderId( payTransactionDO.getOrderId() ); - payTransactionBO.setOrderSubject( payTransactionDO.getOrderSubject() ); - payTransactionBO.setOrderDescription( payTransactionDO.getOrderDescription() ); - payTransactionBO.setOrderMemo( payTransactionDO.getOrderMemo() ); - payTransactionBO.setPrice( payTransactionDO.getPrice() ); - payTransactionBO.setStatus( payTransactionDO.getStatus() ); - payTransactionBO.setExpireTime( payTransactionDO.getExpireTime() ); - payTransactionBO.setFinishTime( payTransactionDO.getFinishTime() ); - payTransactionBO.setExtensionId( payTransactionDO.getExtensionId() ); - payTransactionBO.setPayChannel( payTransactionDO.getPayChannel() ); - payTransactionBO.setPaymentTime( payTransactionDO.getPaymentTime() ); - payTransactionBO.setNotifyTime( payTransactionDO.getNotifyTime() ); - payTransactionBO.setTradeNo( payTransactionDO.getTradeNo() ); - payTransactionBO.setCreateTime( payTransactionDO.getCreateTime() ); - payTransactionBO.setRefundTotal( payTransactionDO.getRefundTotal() ); - - return payTransactionBO; - } - - @Override - public List convertList(List list) { - if ( list == null ) { - return null; - } - - List list1 = new ArrayList( list.size() ); - for ( PayTransactionDO payTransactionDO : list ) { - list1.add( convert( payTransactionDO ) ); - } - - return list1; - } - - @Override - public PayTransactionExtensionDO convert(PayTransactionSubmitDTO payTransactionSubmitDTO) { - if ( payTransactionSubmitDTO == null ) { - return null; - } - - PayTransactionExtensionDO payTransactionExtensionDO = new PayTransactionExtensionDO(); - - payTransactionExtensionDO.setPayChannel( payTransactionSubmitDTO.getPayChannel() ); - payTransactionExtensionDO.setCreateIp( payTransactionSubmitDTO.getCreateIp() ); - - return payTransactionExtensionDO; - } -} diff --git a/product/product-application/target/classes/application-test.yaml b/product/product-application/target/classes/application-test.yaml deleted file mode 100644 index 22be4ba61..000000000 --- a/product/product-application/target/classes/application-test.yaml +++ /dev/null @@ -1,6 +0,0 @@ -swagger: - enable: true - title: 商品子系统 - description: 商品子系统 - version: 1.0.0 - base-package: cn.iocoder.mall.product.application.controller diff --git a/product/product-application/target/classes/application.yaml b/product/product-application/target/classes/application.yaml deleted file mode 100644 index c5072a5ec..000000000 --- a/product/product-application/target/classes/application.yaml +++ /dev/null @@ -1,34 +0,0 @@ -spring: - application: - name: product-application - cloud: - sentinel: - transport: - port: 8719 - dashboard: localhost:12088 - metric: - charset: UTF-8 - eager: false - -# server -server: - port: 18081 - servlet: - context-path: /product-api/ - - - -management: - endpoints: - web: - exposure: - include: health,info,env,metrics,prometheus - metrics: - enabled: true - -swagger: - enable: true - title: 商品子系统 - description: 商品子系统 - version: 1.0.0 - base-package: cn.iocoder.mall.product.application.controller \ No newline at end of file diff --git a/product/product-application/target/generated-sources/annotations/cn/iocoder/mall/product/application/convert/ProductAttrConvertImpl.java b/product/product-application/target/generated-sources/annotations/cn/iocoder/mall/product/application/convert/ProductAttrConvertImpl.java deleted file mode 100644 index 9d8feeb1d..000000000 --- a/product/product-application/target/generated-sources/annotations/cn/iocoder/mall/product/application/convert/ProductAttrConvertImpl.java +++ /dev/null @@ -1,185 +0,0 @@ -package cn.iocoder.mall.product.application.convert; - -import cn.iocoder.mall.product.api.bo.ProductAttrBO; -import cn.iocoder.mall.product.api.bo.ProductAttrDetailBO; -import cn.iocoder.mall.product.api.bo.ProductAttrPageBO; -import cn.iocoder.mall.product.api.bo.ProductAttrSimpleBO; -import cn.iocoder.mall.product.api.bo.ProductAttrValueBO; -import cn.iocoder.mall.product.api.bo.ProductAttrValueDetailBO; -import cn.iocoder.mall.product.api.bo.ProductAttrValueSimpleBO; -import cn.iocoder.mall.product.application.vo.admins.AdminsProductAttrDetailVO; -import cn.iocoder.mall.product.application.vo.admins.AdminsProductAttrPageVO; -import cn.iocoder.mall.product.application.vo.admins.AdminsProductAttrSimpleVO; -import cn.iocoder.mall.product.application.vo.admins.AdminsProductAttrVO; -import cn.iocoder.mall.product.application.vo.admins.AdminsProductAttrValueDetailVO; -import cn.iocoder.mall.product.application.vo.admins.AdminsProductAttrValueSimpleVO; -import cn.iocoder.mall.product.application.vo.admins.AdminsProductAttrValueVO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:47:10+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class ProductAttrConvertImpl implements ProductAttrConvert { - - @Override - public AdminsProductAttrPageVO convert2(ProductAttrPageBO result) { - if ( result == null ) { - return null; - } - - AdminsProductAttrPageVO adminsProductAttrPageVO = new AdminsProductAttrPageVO(); - - adminsProductAttrPageVO.setAttrs( productAttrDetailBOListToAdminsProductAttrDetailVOList( result.getAttrs() ) ); - adminsProductAttrPageVO.setCount( result.getCount() ); - - return adminsProductAttrPageVO; - } - - @Override - public List convert(List result) { - if ( result == null ) { - return null; - } - - List list = new ArrayList( result.size() ); - for ( ProductAttrSimpleBO productAttrSimpleBO : result ) { - list.add( productAttrSimpleBOToAdminsProductAttrSimpleVO( productAttrSimpleBO ) ); - } - - return list; - } - - @Override - public AdminsProductAttrVO convert3(ProductAttrBO productAttrBO) { - if ( productAttrBO == null ) { - return null; - } - - AdminsProductAttrVO adminsProductAttrVO = new AdminsProductAttrVO(); - - adminsProductAttrVO.setId( productAttrBO.getId() ); - adminsProductAttrVO.setName( productAttrBO.getName() ); - adminsProductAttrVO.setStatus( productAttrBO.getStatus() ); - adminsProductAttrVO.setCreateTime( productAttrBO.getCreateTime() ); - - return adminsProductAttrVO; - } - - @Override - public AdminsProductAttrValueVO convert4(ProductAttrValueBO productAttrValueBO) { - if ( productAttrValueBO == null ) { - return null; - } - - AdminsProductAttrValueVO adminsProductAttrValueVO = new AdminsProductAttrValueVO(); - - adminsProductAttrValueVO.setId( productAttrValueBO.getId() ); - adminsProductAttrValueVO.setAttrId( productAttrValueBO.getAttrId() ); - adminsProductAttrValueVO.setName( productAttrValueBO.getName() ); - adminsProductAttrValueVO.setStatus( productAttrValueBO.getStatus() ); - adminsProductAttrValueVO.setCreateTime( productAttrValueBO.getCreateTime() ); - - return adminsProductAttrValueVO; - } - - protected AdminsProductAttrValueDetailVO productAttrValueDetailBOToAdminsProductAttrValueDetailVO(ProductAttrValueDetailBO productAttrValueDetailBO) { - if ( productAttrValueDetailBO == null ) { - return null; - } - - AdminsProductAttrValueDetailVO adminsProductAttrValueDetailVO = new AdminsProductAttrValueDetailVO(); - - adminsProductAttrValueDetailVO.setId( productAttrValueDetailBO.getId() ); - adminsProductAttrValueDetailVO.setName( productAttrValueDetailBO.getName() ); - adminsProductAttrValueDetailVO.setStatus( productAttrValueDetailBO.getStatus() ); - adminsProductAttrValueDetailVO.setCreateTime( productAttrValueDetailBO.getCreateTime() ); - - return adminsProductAttrValueDetailVO; - } - - protected List productAttrValueDetailBOListToAdminsProductAttrValueDetailVOList(List list) { - if ( list == null ) { - return null; - } - - List list1 = new ArrayList( list.size() ); - for ( ProductAttrValueDetailBO productAttrValueDetailBO : list ) { - list1.add( productAttrValueDetailBOToAdminsProductAttrValueDetailVO( productAttrValueDetailBO ) ); - } - - return list1; - } - - protected AdminsProductAttrDetailVO productAttrDetailBOToAdminsProductAttrDetailVO(ProductAttrDetailBO productAttrDetailBO) { - if ( productAttrDetailBO == null ) { - return null; - } - - AdminsProductAttrDetailVO adminsProductAttrDetailVO = new AdminsProductAttrDetailVO(); - - adminsProductAttrDetailVO.setId( productAttrDetailBO.getId() ); - adminsProductAttrDetailVO.setName( productAttrDetailBO.getName() ); - adminsProductAttrDetailVO.setStatus( productAttrDetailBO.getStatus() ); - adminsProductAttrDetailVO.setCreateTime( productAttrDetailBO.getCreateTime() ); - adminsProductAttrDetailVO.setValues( productAttrValueDetailBOListToAdminsProductAttrValueDetailVOList( productAttrDetailBO.getValues() ) ); - - return adminsProductAttrDetailVO; - } - - protected List productAttrDetailBOListToAdminsProductAttrDetailVOList(List list) { - if ( list == null ) { - return null; - } - - List list1 = new ArrayList( list.size() ); - for ( ProductAttrDetailBO productAttrDetailBO : list ) { - list1.add( productAttrDetailBOToAdminsProductAttrDetailVO( productAttrDetailBO ) ); - } - - return list1; - } - - protected AdminsProductAttrValueSimpleVO productAttrValueSimpleBOToAdminsProductAttrValueSimpleVO(ProductAttrValueSimpleBO productAttrValueSimpleBO) { - if ( productAttrValueSimpleBO == null ) { - return null; - } - - AdminsProductAttrValueSimpleVO adminsProductAttrValueSimpleVO = new AdminsProductAttrValueSimpleVO(); - - adminsProductAttrValueSimpleVO.setId( productAttrValueSimpleBO.getId() ); - adminsProductAttrValueSimpleVO.setName( productAttrValueSimpleBO.getName() ); - - return adminsProductAttrValueSimpleVO; - } - - protected List productAttrValueSimpleBOListToAdminsProductAttrValueSimpleVOList(List list) { - if ( list == null ) { - return null; - } - - List list1 = new ArrayList( list.size() ); - for ( ProductAttrValueSimpleBO productAttrValueSimpleBO : list ) { - list1.add( productAttrValueSimpleBOToAdminsProductAttrValueSimpleVO( productAttrValueSimpleBO ) ); - } - - return list1; - } - - protected AdminsProductAttrSimpleVO productAttrSimpleBOToAdminsProductAttrSimpleVO(ProductAttrSimpleBO productAttrSimpleBO) { - if ( productAttrSimpleBO == null ) { - return null; - } - - AdminsProductAttrSimpleVO adminsProductAttrSimpleVO = new AdminsProductAttrSimpleVO(); - - adminsProductAttrSimpleVO.setId( productAttrSimpleBO.getId() ); - adminsProductAttrSimpleVO.setName( productAttrSimpleBO.getName() ); - adminsProductAttrSimpleVO.setValues( productAttrValueSimpleBOListToAdminsProductAttrValueSimpleVOList( productAttrSimpleBO.getValues() ) ); - - return adminsProductAttrSimpleVO; - } -} diff --git a/product/product-application/target/generated-sources/annotations/cn/iocoder/mall/product/application/convert/ProductBrandConvertImpl.java b/product/product-application/target/generated-sources/annotations/cn/iocoder/mall/product/application/convert/ProductBrandConvertImpl.java deleted file mode 100644 index 657253b5b..000000000 --- a/product/product-application/target/generated-sources/annotations/cn/iocoder/mall/product/application/convert/ProductBrandConvertImpl.java +++ /dev/null @@ -1,61 +0,0 @@ -package cn.iocoder.mall.product.application.convert; - -import cn.iocoder.mall.product.api.bo.ProductBrandBO; -import cn.iocoder.mall.product.api.bo.ProductBrangPageBO; -import cn.iocoder.mall.product.application.vo.admins.AdminsProductBrandVO; -import cn.iocoder.mall.product.application.vo.admins.AdminsProductBrangPageVO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-31T18:12:33+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class ProductBrandConvertImpl implements ProductBrandConvert { - - @Override - public AdminsProductBrandVO convert(ProductBrandBO result) { - if ( result == null ) { - return null; - } - - AdminsProductBrandVO adminsProductBrandVO = new AdminsProductBrandVO(); - - adminsProductBrandVO.setId( result.getId() ); - adminsProductBrandVO.setName( result.getName() ); - adminsProductBrandVO.setDescription( result.getDescription() ); - adminsProductBrandVO.setPicUrl( result.getPicUrl() ); - adminsProductBrandVO.setStatus( result.getStatus() ); - - return adminsProductBrandVO; - } - - @Override - public AdminsProductBrangPageVO convert(ProductBrangPageBO result) { - if ( result == null ) { - return null; - } - - AdminsProductBrangPageVO adminsProductBrangPageVO = new AdminsProductBrangPageVO(); - - adminsProductBrangPageVO.setBrands( productBrandBOListToAdminsProductBrandVOList( result.getBrands() ) ); - adminsProductBrangPageVO.setCount( result.getCount() ); - - return adminsProductBrangPageVO; - } - - protected List productBrandBOListToAdminsProductBrandVOList(List list) { - if ( list == null ) { - return null; - } - - List list1 = new ArrayList( list.size() ); - for ( ProductBrandBO productBrandBO : list ) { - list1.add( convert( productBrandBO ) ); - } - - return list1; - } -} diff --git a/product/product-application/target/generated-sources/annotations/cn/iocoder/mall/product/application/convert/ProductCategoryConvert$AdminsImpl.java b/product/product-application/target/generated-sources/annotations/cn/iocoder/mall/product/application/convert/ProductCategoryConvert$AdminsImpl.java deleted file mode 100644 index 50f540da3..000000000 --- a/product/product-application/target/generated-sources/annotations/cn/iocoder/mall/product/application/convert/ProductCategoryConvert$AdminsImpl.java +++ /dev/null @@ -1,55 +0,0 @@ -package cn.iocoder.mall.product.application.convert; - -import cn.iocoder.mall.product.api.bo.ProductCategoryBO; -import cn.iocoder.mall.product.application.convert.ProductCategoryConvert.Admins; -import cn.iocoder.mall.product.application.vo.admins.AdminsProductCategoryTreeNodeVO; -import cn.iocoder.mall.product.application.vo.admins.AdminsProductCategoryVO; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:47:09+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class ProductCategoryConvert$AdminsImpl implements Admins { - - @Override - public AdminsProductCategoryTreeNodeVO convert(ProductCategoryBO category) { - if ( category == null ) { - return null; - } - - AdminsProductCategoryTreeNodeVO adminsProductCategoryTreeNodeVO = new AdminsProductCategoryTreeNodeVO(); - - adminsProductCategoryTreeNodeVO.setId( category.getId() ); - adminsProductCategoryTreeNodeVO.setPid( category.getPid() ); - adminsProductCategoryTreeNodeVO.setName( category.getName() ); - adminsProductCategoryTreeNodeVO.setDescription( category.getDescription() ); - adminsProductCategoryTreeNodeVO.setPicUrl( category.getPicUrl() ); - adminsProductCategoryTreeNodeVO.setSort( category.getSort() ); - adminsProductCategoryTreeNodeVO.setStatus( category.getStatus() ); - adminsProductCategoryTreeNodeVO.setCreateTime( category.getCreateTime() ); - - return adminsProductCategoryTreeNodeVO; - } - - @Override - public AdminsProductCategoryVO convert2(ProductCategoryBO result) { - if ( result == null ) { - return null; - } - - AdminsProductCategoryVO adminsProductCategoryVO = new AdminsProductCategoryVO(); - - adminsProductCategoryVO.setId( result.getId() ); - adminsProductCategoryVO.setPid( result.getPid() ); - adminsProductCategoryVO.setName( result.getName() ); - adminsProductCategoryVO.setDescription( result.getDescription() ); - adminsProductCategoryVO.setPicUrl( result.getPicUrl() ); - adminsProductCategoryVO.setSort( result.getSort() ); - adminsProductCategoryVO.setStatus( result.getStatus() ); - adminsProductCategoryVO.setCreateTime( result.getCreateTime() ); - - return adminsProductCategoryVO; - } -} diff --git a/product/product-application/target/generated-sources/annotations/cn/iocoder/mall/product/application/convert/ProductCategoryConvert$UsersImpl.java b/product/product-application/target/generated-sources/annotations/cn/iocoder/mall/product/application/convert/ProductCategoryConvert$UsersImpl.java deleted file mode 100644 index fd064f598..000000000 --- a/product/product-application/target/generated-sources/annotations/cn/iocoder/mall/product/application/convert/ProductCategoryConvert$UsersImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -package cn.iocoder.mall.product.application.convert; - -import cn.iocoder.mall.product.api.bo.ProductCategoryBO; -import cn.iocoder.mall.product.application.convert.ProductCategoryConvert.Users; -import cn.iocoder.mall.product.application.vo.users.UsersProductCategoryVO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:47:10+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class ProductCategoryConvert$UsersImpl implements Users { - - @Override - public UsersProductCategoryVO convertToVO(ProductCategoryBO category) { - if ( category == null ) { - return null; - } - - UsersProductCategoryVO usersProductCategoryVO = new UsersProductCategoryVO(); - - usersProductCategoryVO.setId( category.getId() ); - usersProductCategoryVO.setName( category.getName() ); - usersProductCategoryVO.setPicUrl( category.getPicUrl() ); - - return usersProductCategoryVO; - } - - @Override - public List convertToVO(List categoryList) { - if ( categoryList == null ) { - return null; - } - - List list = new ArrayList( categoryList.size() ); - for ( ProductCategoryBO productCategoryBO : categoryList ) { - list.add( convertToVO( productCategoryBO ) ); - } - - return list; - } -} diff --git a/product/product-application/target/generated-sources/annotations/cn/iocoder/mall/product/application/convert/ProductSpuConvertImpl.java b/product/product-application/target/generated-sources/annotations/cn/iocoder/mall/product/application/convert/ProductSpuConvertImpl.java deleted file mode 100644 index 29876703a..000000000 --- a/product/product-application/target/generated-sources/annotations/cn/iocoder/mall/product/application/convert/ProductSpuConvertImpl.java +++ /dev/null @@ -1,251 +0,0 @@ -package cn.iocoder.mall.product.application.convert; - -import cn.iocoder.mall.product.api.bo.ProductAttrAndValuePairBO; -import cn.iocoder.mall.product.api.bo.ProductSpuBO; -import cn.iocoder.mall.product.api.bo.ProductSpuDetailBO; -import cn.iocoder.mall.product.api.bo.ProductSpuDetailBO.Sku; -import cn.iocoder.mall.product.api.bo.ProductSpuPageBO; -import cn.iocoder.mall.product.application.vo.admins.AdminsProductAttrAndValuePairVO; -import cn.iocoder.mall.product.application.vo.admins.AdminsProductSkuDetailVO; -import cn.iocoder.mall.product.application.vo.admins.AdminsProductSpuDetailVO; -import cn.iocoder.mall.product.application.vo.admins.AdminsProductSpuPageVO; -import cn.iocoder.mall.product.application.vo.admins.AdminsProductSpuVO; -import cn.iocoder.mall.product.application.vo.users.UsersProductAttrAndValuePairVO; -import cn.iocoder.mall.product.application.vo.users.UsersProductSkuDetailVO; -import cn.iocoder.mall.product.application.vo.users.UsersProductSpuDetailVO; -import cn.iocoder.mall.product.application.vo.users.UsersProductSpuPageVO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:47:09+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class ProductSpuConvertImpl implements ProductSpuConvert { - - @Override - public AdminsProductSpuDetailVO convert(ProductSpuDetailBO productSpuDetailBO) { - if ( productSpuDetailBO == null ) { - return null; - } - - AdminsProductSpuDetailVO adminsProductSpuDetailVO = new AdminsProductSpuDetailVO(); - - adminsProductSpuDetailVO.setId( productSpuDetailBO.getId() ); - adminsProductSpuDetailVO.setName( productSpuDetailBO.getName() ); - adminsProductSpuDetailVO.setSellPoint( productSpuDetailBO.getSellPoint() ); - adminsProductSpuDetailVO.setDescription( productSpuDetailBO.getDescription() ); - adminsProductSpuDetailVO.setCid( productSpuDetailBO.getCid() ); - List list = productSpuDetailBO.getPicUrls(); - if ( list != null ) { - adminsProductSpuDetailVO.setPicUrls( new ArrayList( list ) ); - } - adminsProductSpuDetailVO.setVisible( productSpuDetailBO.getVisible() ); - adminsProductSpuDetailVO.setSort( productSpuDetailBO.getSort() ); - adminsProductSpuDetailVO.setSkus( skuListToAdminsProductSkuDetailVOList( productSpuDetailBO.getSkus() ) ); - - return adminsProductSpuDetailVO; - } - - @Override - public AdminsProductSpuPageVO convert2(ProductSpuPageBO result) { - if ( result == null ) { - return null; - } - - AdminsProductSpuPageVO adminsProductSpuPageVO = new AdminsProductSpuPageVO(); - - adminsProductSpuPageVO.setList( convert3( result.getList() ) ); - adminsProductSpuPageVO.setTotal( result.getTotal() ); - - return adminsProductSpuPageVO; - } - - @Override - public List convert3(List result) { - if ( result == null ) { - return null; - } - - List list = new ArrayList( result.size() ); - for ( ProductSpuBO productSpuBO : result ) { - list.add( productSpuBOToAdminsProductSpuVO( productSpuBO ) ); - } - - return list; - } - - @Override - public UsersProductSpuPageVO convert3(ProductSpuPageBO result) { - if ( result == null ) { - return null; - } - - UsersProductSpuPageVO usersProductSpuPageVO = new UsersProductSpuPageVO(); - - return usersProductSpuPageVO; - } - - @Override - public UsersProductSpuDetailVO convert4(ProductSpuDetailBO result) { - if ( result == null ) { - return null; - } - - UsersProductSpuDetailVO usersProductSpuDetailVO = new UsersProductSpuDetailVO(); - - usersProductSpuDetailVO.setId( result.getId() ); - usersProductSpuDetailVO.setName( result.getName() ); - usersProductSpuDetailVO.setSellPoint( result.getSellPoint() ); - usersProductSpuDetailVO.setDescription( result.getDescription() ); - usersProductSpuDetailVO.setCid( result.getCid() ); - List list = result.getPicUrls(); - if ( list != null ) { - usersProductSpuDetailVO.setPicUrls( new ArrayList( list ) ); - } - usersProductSpuDetailVO.setSkus( skuListToUsersProductSkuDetailVOList( result.getSkus() ) ); - - return usersProductSpuDetailVO; - } - - protected AdminsProductAttrAndValuePairVO productAttrAndValuePairBOToAdminsProductAttrAndValuePairVO(ProductAttrAndValuePairBO productAttrAndValuePairBO) { - if ( productAttrAndValuePairBO == null ) { - return null; - } - - AdminsProductAttrAndValuePairVO adminsProductAttrAndValuePairVO = new AdminsProductAttrAndValuePairVO(); - - adminsProductAttrAndValuePairVO.setAttrId( productAttrAndValuePairBO.getAttrId() ); - adminsProductAttrAndValuePairVO.setAttrName( productAttrAndValuePairBO.getAttrName() ); - adminsProductAttrAndValuePairVO.setAttrValueId( productAttrAndValuePairBO.getAttrValueId() ); - adminsProductAttrAndValuePairVO.setAttrValueName( productAttrAndValuePairBO.getAttrValueName() ); - - return adminsProductAttrAndValuePairVO; - } - - protected List productAttrAndValuePairBOListToAdminsProductAttrAndValuePairVOList(List list) { - if ( list == null ) { - return null; - } - - List list1 = new ArrayList( list.size() ); - for ( ProductAttrAndValuePairBO productAttrAndValuePairBO : list ) { - list1.add( productAttrAndValuePairBOToAdminsProductAttrAndValuePairVO( productAttrAndValuePairBO ) ); - } - - return list1; - } - - protected AdminsProductSkuDetailVO skuToAdminsProductSkuDetailVO(Sku sku) { - if ( sku == null ) { - return null; - } - - AdminsProductSkuDetailVO adminsProductSkuDetailVO = new AdminsProductSkuDetailVO(); - - adminsProductSkuDetailVO.setId( sku.getId() ); - adminsProductSkuDetailVO.setSpuId( sku.getSpuId() ); - adminsProductSkuDetailVO.setPicURL( sku.getPicURL() ); - adminsProductSkuDetailVO.setAttrs( productAttrAndValuePairBOListToAdminsProductAttrAndValuePairVOList( sku.getAttrs() ) ); - adminsProductSkuDetailVO.setPrice( sku.getPrice() ); - adminsProductSkuDetailVO.setQuantity( sku.getQuantity() ); - - return adminsProductSkuDetailVO; - } - - protected List skuListToAdminsProductSkuDetailVOList(List list) { - if ( list == null ) { - return null; - } - - List list1 = new ArrayList( list.size() ); - for ( Sku sku : list ) { - list1.add( skuToAdminsProductSkuDetailVO( sku ) ); - } - - return list1; - } - - protected AdminsProductSpuVO productSpuBOToAdminsProductSpuVO(ProductSpuBO productSpuBO) { - if ( productSpuBO == null ) { - return null; - } - - AdminsProductSpuVO adminsProductSpuVO = new AdminsProductSpuVO(); - - adminsProductSpuVO.setId( productSpuBO.getId() ); - adminsProductSpuVO.setName( productSpuBO.getName() ); - adminsProductSpuVO.setSellPoint( productSpuBO.getSellPoint() ); - adminsProductSpuVO.setDescription( productSpuBO.getDescription() ); - adminsProductSpuVO.setCid( productSpuBO.getCid() ); - List list = productSpuBO.getPicUrls(); - if ( list != null ) { - adminsProductSpuVO.setPicUrls( new ArrayList( list ) ); - } - adminsProductSpuVO.setQuantity( productSpuBO.getQuantity() ); - adminsProductSpuVO.setVisible( productSpuBO.getVisible() ); - adminsProductSpuVO.setSort( productSpuBO.getSort() ); - - return adminsProductSpuVO; - } - - protected UsersProductAttrAndValuePairVO productAttrAndValuePairBOToUsersProductAttrAndValuePairVO(ProductAttrAndValuePairBO productAttrAndValuePairBO) { - if ( productAttrAndValuePairBO == null ) { - return null; - } - - UsersProductAttrAndValuePairVO usersProductAttrAndValuePairVO = new UsersProductAttrAndValuePairVO(); - - usersProductAttrAndValuePairVO.setAttrId( productAttrAndValuePairBO.getAttrId() ); - usersProductAttrAndValuePairVO.setAttrName( productAttrAndValuePairBO.getAttrName() ); - usersProductAttrAndValuePairVO.setAttrValueId( productAttrAndValuePairBO.getAttrValueId() ); - usersProductAttrAndValuePairVO.setAttrValueName( productAttrAndValuePairBO.getAttrValueName() ); - - return usersProductAttrAndValuePairVO; - } - - protected List productAttrAndValuePairBOListToUsersProductAttrAndValuePairVOList(List list) { - if ( list == null ) { - return null; - } - - List list1 = new ArrayList( list.size() ); - for ( ProductAttrAndValuePairBO productAttrAndValuePairBO : list ) { - list1.add( productAttrAndValuePairBOToUsersProductAttrAndValuePairVO( productAttrAndValuePairBO ) ); - } - - return list1; - } - - protected UsersProductSkuDetailVO skuToUsersProductSkuDetailVO(Sku sku) { - if ( sku == null ) { - return null; - } - - UsersProductSkuDetailVO usersProductSkuDetailVO = new UsersProductSkuDetailVO(); - - usersProductSkuDetailVO.setId( sku.getId() ); - usersProductSkuDetailVO.setSpuId( sku.getSpuId() ); - usersProductSkuDetailVO.setPicURL( sku.getPicURL() ); - usersProductSkuDetailVO.setAttrs( productAttrAndValuePairBOListToUsersProductAttrAndValuePairVOList( sku.getAttrs() ) ); - usersProductSkuDetailVO.setPrice( sku.getPrice() ); - usersProductSkuDetailVO.setQuantity( sku.getQuantity() ); - - return usersProductSkuDetailVO; - } - - protected List skuListToUsersProductSkuDetailVOList(List list) { - if ( list == null ) { - return null; - } - - List list1 = new ArrayList( list.size() ); - for ( Sku sku : list ) { - list1.add( skuToUsersProductSkuDetailVO( sku ) ); - } - - return list1; - } -} diff --git a/product/product-service-impl/target/classes/config/application-test.yaml b/product/product-service-impl/target/classes/config/application-test.yaml deleted file mode 100644 index d5d5c6689..000000000 --- a/product/product-service-impl/target/classes/config/application-test.yaml +++ /dev/null @@ -1,13 +0,0 @@ -spring: - # datasource - datasource: - url: jdbc:mysql://192.168.88.14:3306/mall_product?useSSL=false&useUnicode=true&characterEncoding=UTF-8 - driver-class-name: com.mysql.jdbc.Driver - username: root - password: ${MALL_MYSQL_PASSWORD} - -# rocketmq -rocketmq: - name-server: 192.168.88.14:9876 - producer: - group: product-producer-group diff --git a/product/product-service-impl/target/classes/config/application.yaml b/product/product-service-impl/target/classes/config/application.yaml deleted file mode 100644 index 65c2ec48a..000000000 --- a/product/product-service-impl/target/classes/config/application.yaml +++ /dev/null @@ -1,47 +0,0 @@ -spring: - # datasource - datasource: - url: jdbc:mysql://180.167.213.26:13306/mall_product?useSSL=false&useUnicode=true&characterEncoding=UTF-8 - driver-class-name: com.mysql.jdbc.Driver - username: root - password: ${MALL_MYSQL_PASSWORD} - -# mybatis -mybatis-plus: - config-location: classpath:mybatis-config.xml - mapper-locations: classpath:mapper/*.xml - type-aliases-package: cn.iocoder.mall.product.dataobject - -# dubbo -dubbo: - application: - name: product-service - registry: - address: zookeeper://127.0.0.1:2181 - protocol: - port: -1 - name: dubbo - scan: - base-packages: cn.iocoder.mall.product.service - provider: - filter: -exception - ProductAttrService: - version: 1.0.0 - ProductCategoryService: - version: 1.0.0 - ProductSpuService: - version: 1.0.0 - ProductBrandService: - version: 1.0.0 - OAuth2Service: - version: 1.0.0 - -# rocketmq -rocketmq: - name-server: 127.0.0.1:9876 - producer: - group: product-producer-group - -# seata -seata: - tx-service-group: my_test_tx_group diff --git a/product/product-service-impl/target/classes/file.conf b/product/product-service-impl/target/classes/file.conf deleted file mode 100644 index 8b60b29c3..000000000 --- a/product/product-service-impl/target/classes/file.conf +++ /dev/null @@ -1,69 +0,0 @@ -transport { - # tcp udt unix-domain-socket - type = "TCP" - #NIO NATIVE - server = "NIO" - #enable heartbeat - heartbeat = true - #thread factory for netty - thread-factory { - boss-thread-prefix = "NettyBoss" - worker-thread-prefix = "NettyServerNIOWorker" - server-executor-thread-prefix = "NettyServerBizHandler" - share-boss-worker = false - client-selector-thread-prefix = "NettyClientSelector" - client-selector-thread-size = 1 - client-worker-thread-prefix = "NettyClientWorkerThread" - # netty boss thread size,will not be used for UDT - boss-thread-size = 1 - #auto default pin or 8 - worker-thread-size = 8 - } -} - -service { - #vgroup->rgroup - vgroup_mapping.my_test_tx_group = "default" - #only support single node - default.grouplist = "180.167.213.26:8091" - #degrade current not support - enableDegrade = false - #disable - disable = false -} - -client { - async.commit.buffer.limit = 10000 - lock { - retry.internal = 10 - retry.times = 30 - } -} -## transaction log store -store { - ## store mode: file、db - mode = "file" - - ## file store - file { - dir = "file_store/data" - - # branch session size , if exceeded first try compress lockkey, still exceeded throws exceptions - max-branch-session-size = 16384 - # globe session size , if exceeded throws exceptions - max-global-session-size = 512 - # file buffer size , if exceeded allocate new buffer - file-write-buffer-cache-size = 16384 - # when recover batch read size - session.reload.read_size = 100 - } - - ## database store - db { - driver_class = "" - url = "" - user = "" - password = "" - } -} - diff --git a/product/product-service-impl/target/classes/mapper/ProductAttrMapper.xml b/product/product-service-impl/target/classes/mapper/ProductAttrMapper.xml deleted file mode 100644 index 374c138b9..000000000 --- a/product/product-service-impl/target/classes/mapper/ProductAttrMapper.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - id, name, status, create_time - - - - - - - - - - - - - - - INSERT INTO product_attr ( - name, status, create_time, deleted - ) VALUES ( - #{name}, #{status}, #{createTime}, #{deleted} - ) - - - - UPDATE product_attr - - - name = #{name}, - - - status = #{status}, - - - deleted = #{deleted} - - - WHERE id = #{id} - - - - - - - - - - - \ No newline at end of file diff --git a/product/product-service-impl/target/classes/mapper/ProductAttrValueMapper.xml b/product/product-service-impl/target/classes/mapper/ProductAttrValueMapper.xml deleted file mode 100644 index 17ad319f8..000000000 --- a/product/product-service-impl/target/classes/mapper/ProductAttrValueMapper.xml +++ /dev/null @@ -1,130 +0,0 @@ - - - - - - id, attr_id, name, status, create_time - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - INSERT INTO product_attr_value ( - attr_id, name, status, create_time, deleted - ) VALUES ( - #{attrId}, #{name}, #{status}, #{createTime}, #{deleted} - ) - - - - UPDATE product_attr_value - - - name = #{name}, - - - status = #{status}, - - - deleted = #{deleted} - - - WHERE id = #{id} - - - - \ No newline at end of file diff --git a/product/product-service-impl/target/classes/mapper/ProductBrandMapper.xml b/product/product-service-impl/target/classes/mapper/ProductBrandMapper.xml deleted file mode 100644 index b20d6b3a4..000000000 --- a/product/product-service-impl/target/classes/mapper/ProductBrandMapper.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - id, name, description, pic_url, status, create_time - - - - - - - - - INSERT INTO product_brand ( - name, description, pic_url, status, create_time, deleted - ) VALUES ( - #{name}, #{description}, #{picUrl}, #{status}, #{createTime}, #{deleted} - ) - - - - UPDATE product_brand - - - name = #{name}, - - - description = #{description}, - - - pic_url = #{picUrl}, - - - status = #{status}, - - - deleted = #{deleted} - - - WHERE id = #{id} - - - - - - - - - \ No newline at end of file diff --git a/product/product-service-impl/target/classes/mapper/ProductCategoryMapper.xml b/product/product-service-impl/target/classes/mapper/ProductCategoryMapper.xml deleted file mode 100644 index 47e484d97..000000000 --- a/product/product-service-impl/target/classes/mapper/ProductCategoryMapper.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - id, pid, name, description, pic_url, - sort, status, create_time - - - - - - - - - - - - INSERT INTO product_category ( - pid, name, description, pic_url, sort, - status, create_time, deleted - ) VALUES ( - #{pid}, #{name}, #{description}, #{picUrl}, #{sort}, - #{status}, #{createTime}, #{deleted} - ) - - - - UPDATE product_category - - - pid = #{pid}, - - - name = #{name}, - - - description = #{description}, - - - pic_url = #{picUrl}, - - - sort = #{sort}, - - - status = #{status}, - - - deleted = #{deleted} - - - WHERE id = #{id} - - - diff --git a/product/product-service-impl/target/classes/mapper/ProductSkuMapper.xml b/product/product-service-impl/target/classes/mapper/ProductSkuMapper.xml deleted file mode 100644 index 2d6c96448..000000000 --- a/product/product-service-impl/target/classes/mapper/ProductSkuMapper.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - id, spu_id, status, pic_url, attrs, - price, quantity, create_time - - - - - - - - INSERT INTO product_sku ( - spu_id, status, pic_url, attrs, price, - quantity, deleted, create_time - ) VALUES - - (#{productSkuDO.spuId}, #{productSkuDO.status}, #{productSkuDO.picUrl}, #{productSkuDO.attrs}, #{productSkuDO.price}, - #{productSkuDO.quantity}, #{productSkuDO.deleted}, #{productSkuDO.createTime} - ) - - - - - - - UPDATE product_sku - - - spu_id = #{spuId}, - - - status = #{status}, - - - pic_url = #{picUrl}, - - - attrs = #{attrs}, - - - price = #{price}, - - - quantity = #{quantity}, - - - deleted = #{deleted} - - - WHERE id = #{id} - - - - UPDATE product_sku - SET deleted = 1 - WHERE id IN - - #{id} - - - - diff --git a/product/product-service-impl/target/classes/mapper/ProductSpuMapper.xml b/product/product-service-impl/target/classes/mapper/ProductSpuMapper.xml deleted file mode 100644 index 2cc42f204..000000000 --- a/product/product-service-impl/target/classes/mapper/ProductSpuMapper.xml +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - id, name, sell_point, description, cid, - pic_urls, visible, sort, price, quantity, - create_time - - - - - - - - - - INSERT INTO product_spu ( - name, sell_point, description, cid, pic_urls, - visible, sort, price, quantity, - deleted, create_time - ) VALUES ( - #{name}, #{sellPoint}, #{description}, #{cid}, #{picUrls}, - #{visible}, #{sort}, #{price}, #{quantity}, - #{deleted}, #{createTime} - ) - - - - UPDATE product_spu - - - name = #{name}, - - - sell_point = #{sellPoint}, - - - description = #{description}, - - - cid = #{cid}, - - - pic_urls = #{picUrls}, - - - visible = #{visible}, - - - price = #{price}, - - - quantity = #{quantity}, - - - sort = #{sort}, - - - deleted = #{deleted} - - - WHERE id = #{id} - - - - - - - diff --git a/product/product-service-impl/target/classes/mybatis-config.xml b/product/product-service-impl/target/classes/mybatis-config.xml deleted file mode 100644 index 7f604cc7e..000000000 --- a/product/product-service-impl/target/classes/mybatis-config.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/product/product-service-impl/target/classes/registry.conf b/product/product-service-impl/target/classes/registry.conf deleted file mode 100644 index f73989514..000000000 --- a/product/product-service-impl/target/classes/registry.conf +++ /dev/null @@ -1,14 +0,0 @@ -registry { - type = "file" - - file { - name = "file.conf" - } - - zk { - cluster = "default" - serverAddr = "192.168.88.10:2181" - session.timeout = 6000 - connect.timeout = 2000 - } -} diff --git a/product/product-service-impl/target/generated-sources/annotations/cn/iocoder/mall/product/convert/ProductAttrConvertImpl.java b/product/product-service-impl/target/generated-sources/annotations/cn/iocoder/mall/product/convert/ProductAttrConvertImpl.java deleted file mode 100644 index 39e3e66cf..000000000 --- a/product/product-service-impl/target/generated-sources/annotations/cn/iocoder/mall/product/convert/ProductAttrConvertImpl.java +++ /dev/null @@ -1,227 +0,0 @@ -package cn.iocoder.mall.product.convert; - -import cn.iocoder.mall.product.api.bo.ProductAttrBO; -import cn.iocoder.mall.product.api.bo.ProductAttrDetailBO; -import cn.iocoder.mall.product.api.bo.ProductAttrSimpleBO; -import cn.iocoder.mall.product.api.bo.ProductAttrValueBO; -import cn.iocoder.mall.product.api.bo.ProductAttrValueDetailBO; -import cn.iocoder.mall.product.api.bo.ProductAttrValueSimpleBO; -import cn.iocoder.mall.product.api.dto.ProductAttrAddDTO; -import cn.iocoder.mall.product.api.dto.ProductAttrUpdateDTO; -import cn.iocoder.mall.product.api.dto.ProductAttrValueAddDTO; -import cn.iocoder.mall.product.api.dto.ProductAttrValueUpdateDTO; -import cn.iocoder.mall.product.dataobject.ProductAttrDO; -import cn.iocoder.mall.product.dataobject.ProductAttrValueDO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:38:56+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class ProductAttrConvertImpl implements ProductAttrConvert { - - @Override - public List convert(List attrs) { - if ( attrs == null ) { - return null; - } - - List list = new ArrayList( attrs.size() ); - for ( ProductAttrDO productAttrDO : attrs ) { - list.add( productAttrDOToProductAttrDetailBO( productAttrDO ) ); - } - - return list; - } - - @Override - public ProductAttrValueDetailBO convert(ProductAttrValueDO value) { - if ( value == null ) { - return null; - } - - ProductAttrValueDetailBO productAttrValueDetailBO = new ProductAttrValueDetailBO(); - - productAttrValueDetailBO.setId( value.getId() ); - productAttrValueDetailBO.setName( value.getName() ); - productAttrValueDetailBO.setStatus( value.getStatus() ); - productAttrValueDetailBO.setCreateTime( value.getCreateTime() ); - - return productAttrValueDetailBO; - } - - @Override - public List convert2(List values) { - if ( values == null ) { - return null; - } - - List list = new ArrayList( values.size() ); - for ( ProductAttrValueDO productAttrValueDO : values ) { - list.add( convert( productAttrValueDO ) ); - } - - return list; - } - - @Override - public List convert3(List attrs) { - if ( attrs == null ) { - return null; - } - - List list = new ArrayList( attrs.size() ); - for ( ProductAttrDO productAttrDO : attrs ) { - list.add( productAttrDOToProductAttrSimpleBO( productAttrDO ) ); - } - - return list; - } - - @Override - public ProductAttrValueSimpleBO convert3(ProductAttrValueDO value) { - if ( value == null ) { - return null; - } - - ProductAttrValueSimpleBO productAttrValueSimpleBO = new ProductAttrValueSimpleBO(); - - productAttrValueSimpleBO.setId( value.getId() ); - productAttrValueSimpleBO.setName( value.getName() ); - - return productAttrValueSimpleBO; - } - - @Override - public List convert4(List values) { - if ( values == null ) { - return null; - } - - List list = new ArrayList( values.size() ); - for ( ProductAttrValueDO productAttrValueDO : values ) { - list.add( convert3( productAttrValueDO ) ); - } - - return list; - } - - @Override - public ProductAttrDO convert(ProductAttrAddDTO productAttrAddDTO) { - if ( productAttrAddDTO == null ) { - return null; - } - - ProductAttrDO productAttrDO = new ProductAttrDO(); - - productAttrDO.setName( productAttrAddDTO.getName() ); - - return productAttrDO; - } - - @Override - public ProductAttrDO convert(ProductAttrUpdateDTO productAttrUpdateDTO) { - if ( productAttrUpdateDTO == null ) { - return null; - } - - ProductAttrDO productAttrDO = new ProductAttrDO(); - - productAttrDO.setId( productAttrUpdateDTO.getId() ); - productAttrDO.setName( productAttrUpdateDTO.getName() ); - - return productAttrDO; - } - - @Override - public ProductAttrValueDO convert(ProductAttrValueAddDTO productAttrValueAddDTO) { - if ( productAttrValueAddDTO == null ) { - return null; - } - - ProductAttrValueDO productAttrValueDO = new ProductAttrValueDO(); - - productAttrValueDO.setAttrId( productAttrValueAddDTO.getAttrId() ); - productAttrValueDO.setName( productAttrValueAddDTO.getName() ); - - return productAttrValueDO; - } - - @Override - public ProductAttrValueDO convert(ProductAttrValueUpdateDTO productAttrValueUpdateDTO) { - if ( productAttrValueUpdateDTO == null ) { - return null; - } - - ProductAttrValueDO productAttrValueDO = new ProductAttrValueDO(); - - productAttrValueDO.setId( productAttrValueUpdateDTO.getId() ); - productAttrValueDO.setName( productAttrValueUpdateDTO.getName() ); - - return productAttrValueDO; - } - - @Override - public ProductAttrBO convert(ProductAttrDO productAttrDO) { - if ( productAttrDO == null ) { - return null; - } - - ProductAttrBO productAttrBO = new ProductAttrBO(); - - productAttrBO.setId( productAttrDO.getId() ); - productAttrBO.setName( productAttrDO.getName() ); - productAttrBO.setStatus( productAttrDO.getStatus() ); - productAttrBO.setCreateTime( productAttrDO.getCreateTime() ); - - return productAttrBO; - } - - @Override - public ProductAttrValueBO convert2(ProductAttrValueDO productAttrValueDO) { - if ( productAttrValueDO == null ) { - return null; - } - - ProductAttrValueBO productAttrValueBO = new ProductAttrValueBO(); - - productAttrValueBO.setId( productAttrValueDO.getId() ); - productAttrValueBO.setAttrId( productAttrValueDO.getAttrId() ); - productAttrValueBO.setName( productAttrValueDO.getName() ); - productAttrValueBO.setStatus( productAttrValueDO.getStatus() ); - productAttrValueBO.setCreateTime( productAttrValueDO.getCreateTime() ); - - return productAttrValueBO; - } - - protected ProductAttrDetailBO productAttrDOToProductAttrDetailBO(ProductAttrDO productAttrDO) { - if ( productAttrDO == null ) { - return null; - } - - ProductAttrDetailBO productAttrDetailBO = new ProductAttrDetailBO(); - - productAttrDetailBO.setId( productAttrDO.getId() ); - productAttrDetailBO.setName( productAttrDO.getName() ); - productAttrDetailBO.setStatus( productAttrDO.getStatus() ); - productAttrDetailBO.setCreateTime( productAttrDO.getCreateTime() ); - - return productAttrDetailBO; - } - - protected ProductAttrSimpleBO productAttrDOToProductAttrSimpleBO(ProductAttrDO productAttrDO) { - if ( productAttrDO == null ) { - return null; - } - - ProductAttrSimpleBO productAttrSimpleBO = new ProductAttrSimpleBO(); - - productAttrSimpleBO.setId( productAttrDO.getId() ); - productAttrSimpleBO.setName( productAttrDO.getName() ); - - return productAttrSimpleBO; - } -} diff --git a/product/product-service-impl/target/generated-sources/annotations/cn/iocoder/mall/product/convert/ProductBrandConvertImpl.java b/product/product-service-impl/target/generated-sources/annotations/cn/iocoder/mall/product/convert/ProductBrandConvertImpl.java deleted file mode 100644 index b57c7d87d..000000000 --- a/product/product-service-impl/target/generated-sources/annotations/cn/iocoder/mall/product/convert/ProductBrandConvertImpl.java +++ /dev/null @@ -1,81 +0,0 @@ -package cn.iocoder.mall.product.convert; - -import cn.iocoder.mall.product.api.bo.ProductBrandBO; -import cn.iocoder.mall.product.api.dto.ProductBrandAddDTO; -import cn.iocoder.mall.product.api.dto.ProductBrandUpdateDTO; -import cn.iocoder.mall.product.dataobject.ProductBrandDO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-31T18:12:30+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class ProductBrandConvertImpl implements ProductBrandConvert { - - @Override - public List convert(List brands) { - if ( brands == null ) { - return null; - } - - List list = new ArrayList( brands.size() ); - for ( ProductBrandDO productBrandDO : brands ) { - list.add( convert( productBrandDO ) ); - } - - return list; - } - - @Override - public ProductBrandBO convert(ProductBrandDO brand) { - if ( brand == null ) { - return null; - } - - ProductBrandBO productBrandBO = new ProductBrandBO(); - - productBrandBO.setId( brand.getId() ); - productBrandBO.setName( brand.getName() ); - productBrandBO.setDescription( brand.getDescription() ); - productBrandBO.setPicUrl( brand.getPicUrl() ); - productBrandBO.setStatus( brand.getStatus() ); - - return productBrandBO; - } - - @Override - public ProductBrandDO convert(ProductBrandUpdateDTO brand) { - if ( brand == null ) { - return null; - } - - ProductBrandDO productBrandDO = new ProductBrandDO(); - - productBrandDO.setId( brand.getId() ); - productBrandDO.setName( brand.getName() ); - productBrandDO.setDescription( brand.getDescription() ); - productBrandDO.setPicUrl( brand.getPicUrl() ); - productBrandDO.setStatus( brand.getStatus() ); - - return productBrandDO; - } - - @Override - public ProductBrandDO convert(ProductBrandAddDTO brand) { - if ( brand == null ) { - return null; - } - - ProductBrandDO productBrandDO = new ProductBrandDO(); - - productBrandDO.setName( brand.getName() ); - productBrandDO.setDescription( brand.getDescription() ); - productBrandDO.setPicUrl( brand.getPicUrl() ); - productBrandDO.setStatus( brand.getStatus() ); - - return productBrandDO; - } -} diff --git a/product/product-service-impl/target/generated-sources/annotations/cn/iocoder/mall/product/convert/ProductCategoryConvertImpl.java b/product/product-service-impl/target/generated-sources/annotations/cn/iocoder/mall/product/convert/ProductCategoryConvertImpl.java deleted file mode 100644 index 1cbc54c34..000000000 --- a/product/product-service-impl/target/generated-sources/annotations/cn/iocoder/mall/product/convert/ProductCategoryConvertImpl.java +++ /dev/null @@ -1,86 +0,0 @@ -package cn.iocoder.mall.product.convert; - -import cn.iocoder.mall.product.api.bo.ProductCategoryBO; -import cn.iocoder.mall.product.api.dto.ProductCategoryAddDTO; -import cn.iocoder.mall.product.api.dto.ProductCategoryUpdateDTO; -import cn.iocoder.mall.product.dataobject.ProductCategoryDO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:38:55+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class ProductCategoryConvertImpl implements ProductCategoryConvert { - - @Override - public ProductCategoryBO convertToBO(ProductCategoryDO category) { - if ( category == null ) { - return null; - } - - ProductCategoryBO productCategoryBO = new ProductCategoryBO(); - - productCategoryBO.setId( category.getId() ); - productCategoryBO.setPid( category.getPid() ); - productCategoryBO.setName( category.getName() ); - productCategoryBO.setDescription( category.getDescription() ); - productCategoryBO.setPicUrl( category.getPicUrl() ); - productCategoryBO.setSort( category.getSort() ); - productCategoryBO.setStatus( category.getStatus() ); - productCategoryBO.setCreateTime( category.getCreateTime() ); - - return productCategoryBO; - } - - @Override - public List convertToBO(List categoryList) { - if ( categoryList == null ) { - return null; - } - - List list = new ArrayList( categoryList.size() ); - for ( ProductCategoryDO productCategoryDO : categoryList ) { - list.add( convertToBO( productCategoryDO ) ); - } - - return list; - } - - @Override - public ProductCategoryDO convert(ProductCategoryAddDTO productCategoryAddDTO) { - if ( productCategoryAddDTO == null ) { - return null; - } - - ProductCategoryDO productCategoryDO = new ProductCategoryDO(); - - productCategoryDO.setPid( productCategoryAddDTO.getPid() ); - productCategoryDO.setName( productCategoryAddDTO.getName() ); - productCategoryDO.setDescription( productCategoryAddDTO.getDescription() ); - productCategoryDO.setPicUrl( productCategoryAddDTO.getPicUrl() ); - productCategoryDO.setSort( productCategoryAddDTO.getSort() ); - - return productCategoryDO; - } - - @Override - public ProductCategoryDO convert(ProductCategoryUpdateDTO productCategoryUpdateDTO) { - if ( productCategoryUpdateDTO == null ) { - return null; - } - - ProductCategoryDO productCategoryDO = new ProductCategoryDO(); - - productCategoryDO.setId( productCategoryUpdateDTO.getId() ); - productCategoryDO.setPid( productCategoryUpdateDTO.getPid() ); - productCategoryDO.setName( productCategoryUpdateDTO.getName() ); - productCategoryDO.setDescription( productCategoryUpdateDTO.getDescription() ); - productCategoryDO.setPicUrl( productCategoryUpdateDTO.getPicUrl() ); - productCategoryDO.setSort( productCategoryUpdateDTO.getSort() ); - - return productCategoryDO; - } -} diff --git a/product/product-service-impl/target/generated-sources/annotations/cn/iocoder/mall/product/convert/ProductSpuConvertImpl.java b/product/product-service-impl/target/generated-sources/annotations/cn/iocoder/mall/product/convert/ProductSpuConvertImpl.java deleted file mode 100644 index 5aee1852b..000000000 --- a/product/product-service-impl/target/generated-sources/annotations/cn/iocoder/mall/product/convert/ProductSpuConvertImpl.java +++ /dev/null @@ -1,218 +0,0 @@ -package cn.iocoder.mall.product.convert; - -import cn.iocoder.mall.product.api.bo.ProductSkuBO; -import cn.iocoder.mall.product.api.bo.ProductSkuDetailBO; -import cn.iocoder.mall.product.api.bo.ProductSkuDetailBO.Spu; -import cn.iocoder.mall.product.api.bo.ProductSpuBO; -import cn.iocoder.mall.product.api.bo.ProductSpuDetailBO; -import cn.iocoder.mall.product.api.bo.ProductSpuDetailBO.Sku; -import cn.iocoder.mall.product.api.dto.ProductSkuAddOrUpdateDTO; -import cn.iocoder.mall.product.api.dto.ProductSpuAddDTO; -import cn.iocoder.mall.product.api.dto.ProductSpuUpdateDTO; -import cn.iocoder.mall.product.dataobject.ProductSkuDO; -import cn.iocoder.mall.product.dataobject.ProductSpuDO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:38:56+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class ProductSpuConvertImpl implements ProductSpuConvert { - - @Override - public ProductSpuBO convert(ProductSpuDO spu) { - if ( spu == null ) { - return null; - } - - ProductSpuBO productSpuBO = new ProductSpuBO(); - - productSpuBO.setPicUrls( translatePicUrlsFromString( spu.getPicUrls() ) ); - productSpuBO.setId( spu.getId() ); - productSpuBO.setName( spu.getName() ); - productSpuBO.setSellPoint( spu.getSellPoint() ); - productSpuBO.setDescription( spu.getDescription() ); - productSpuBO.setCid( spu.getCid() ); - productSpuBO.setVisible( spu.getVisible() ); - productSpuBO.setSort( spu.getSort() ); - productSpuBO.setPrice( spu.getPrice() ); - productSpuBO.setQuantity( spu.getQuantity() ); - - return productSpuBO; - } - - @Override - public List convert(List spus) { - if ( spus == null ) { - return null; - } - - List list = new ArrayList( spus.size() ); - for ( ProductSpuDO productSpuDO : spus ) { - list.add( convert( productSpuDO ) ); - } - - return list; - } - - @Override - public ProductSpuDO convert(ProductSpuAddDTO productSpuAddDTO) { - if ( productSpuAddDTO == null ) { - return null; - } - - ProductSpuDO productSpuDO = new ProductSpuDO(); - - productSpuDO.setName( productSpuAddDTO.getName() ); - productSpuDO.setSellPoint( productSpuAddDTO.getSellPoint() ); - productSpuDO.setDescription( productSpuAddDTO.getDescription() ); - productSpuDO.setCid( productSpuAddDTO.getCid() ); - productSpuDO.setVisible( productSpuAddDTO.getVisible() ); - - return productSpuDO; - } - - @Override - public ProductSkuDO convert(ProductSkuAddOrUpdateDTO productSkuAddDTO) { - if ( productSkuAddDTO == null ) { - return null; - } - - ProductSkuDO productSkuDO = new ProductSkuDO(); - - productSkuDO.setPrice( productSkuAddDTO.getPrice() ); - productSkuDO.setQuantity( productSkuAddDTO.getQuantity() ); - - return productSkuDO; - } - - @Override - public ProductSpuDO convert(ProductSpuUpdateDTO productSpuUpdateDTO) { - if ( productSpuUpdateDTO == null ) { - return null; - } - - ProductSpuDO productSpuDO = new ProductSpuDO(); - - productSpuDO.setId( productSpuUpdateDTO.getId() ); - productSpuDO.setName( productSpuUpdateDTO.getName() ); - productSpuDO.setSellPoint( productSpuUpdateDTO.getSellPoint() ); - productSpuDO.setDescription( productSpuUpdateDTO.getDescription() ); - productSpuDO.setCid( productSpuUpdateDTO.getCid() ); - productSpuDO.setVisible( productSpuUpdateDTO.getVisible() ); - - return productSpuDO; - } - - @Override - public ProductSpuDetailBO convert(ProductSpuBO spu) { - if ( spu == null ) { - return null; - } - - ProductSpuDetailBO productSpuDetailBO = new ProductSpuDetailBO(); - - productSpuDetailBO.setId( spu.getId() ); - productSpuDetailBO.setName( spu.getName() ); - productSpuDetailBO.setSellPoint( spu.getSellPoint() ); - productSpuDetailBO.setDescription( spu.getDescription() ); - productSpuDetailBO.setCid( spu.getCid() ); - List list = spu.getPicUrls(); - if ( list != null ) { - productSpuDetailBO.setPicUrls( new ArrayList( list ) ); - } - productSpuDetailBO.setVisible( spu.getVisible() ); - productSpuDetailBO.setSort( spu.getSort() ); - - return productSpuDetailBO; - } - - @Override - public ProductSpuDetailBO convert2(ProductSpuDO spu) { - if ( spu == null ) { - return null; - } - - ProductSpuDetailBO productSpuDetailBO = new ProductSpuDetailBO(); - - productSpuDetailBO.setId( spu.getId() ); - productSpuDetailBO.setName( spu.getName() ); - productSpuDetailBO.setSellPoint( spu.getSellPoint() ); - productSpuDetailBO.setDescription( spu.getDescription() ); - productSpuDetailBO.setCid( spu.getCid() ); - productSpuDetailBO.setVisible( spu.getVisible() ); - productSpuDetailBO.setSort( spu.getSort() ); - - return productSpuDetailBO; - } - - @Override - public Spu convert3(ProductSpuDO spu) { - if ( spu == null ) { - return null; - } - - Spu spu1 = new Spu(); - - spu1.setId( spu.getId() ); - spu1.setName( spu.getName() ); - spu1.setSellPoint( spu.getSellPoint() ); - spu1.setDescription( spu.getDescription() ); - spu1.setCid( spu.getCid() ); - spu1.setVisible( spu.getVisible() ); - spu1.setSort( spu.getSort() ); - - return spu1; - } - - @Override - public Sku convert2(ProductSkuDO sku) { - if ( sku == null ) { - return null; - } - - Sku sku1 = new Sku(); - - sku1.setId( sku.getId() ); - sku1.setSpuId( sku.getSpuId() ); - sku1.setPrice( sku.getPrice() ); - sku1.setQuantity( sku.getQuantity() ); - - return sku1; - } - - @Override - public ProductSkuDetailBO convert3(ProductSkuDO sku) { - if ( sku == null ) { - return null; - } - - ProductSkuDetailBO productSkuDetailBO = new ProductSkuDetailBO(); - - productSkuDetailBO.setId( sku.getId() ); - productSkuDetailBO.setPrice( sku.getPrice() ); - productSkuDetailBO.setQuantity( sku.getQuantity() ); - - return productSkuDetailBO; - } - - @Override - public ProductSkuBO convert4(ProductSkuDO sku) { - if ( sku == null ) { - return null; - } - - ProductSkuBO productSkuBO = new ProductSkuBO(); - - productSkuBO.setId( sku.getId() ); - productSkuBO.setSpuId( sku.getSpuId() ); - productSkuBO.setStatus( sku.getStatus() ); - productSkuBO.setPrice( sku.getPrice() ); - productSkuBO.setQuantity( sku.getQuantity() ); - - return productSkuBO; - } -} diff --git a/promotion/promotion-application/target/classes/application-test.yaml b/promotion/promotion-application/target/classes/application-test.yaml deleted file mode 100644 index 96b1b5566..000000000 --- a/promotion/promotion-application/target/classes/application-test.yaml +++ /dev/null @@ -1,6 +0,0 @@ -swagger: - enable: false - title: 营销子系统 - description: 营销子系统 - version: 1.0.0 - base-package: cn.iocoder.mall.promotion.application.controller diff --git a/promotion/promotion-application/target/classes/application.yaml b/promotion/promotion-application/target/classes/application.yaml deleted file mode 100644 index d388f4a8f..000000000 --- a/promotion/promotion-application/target/classes/application.yaml +++ /dev/null @@ -1,29 +0,0 @@ -spring: - application: - name: promotion-application - cloud: - sentinel: - transport: - port: 8719 - dashboard: localhost:12088 - metric: - charset: UTF-8 - eager: false - -# server -server: - port: 18085 - servlet: - context-path: /promotion-api/ - -swagger: - enable: false - - -management: - endpoints: - web: - exposure: - include: health,info,env,metrics,prometheus - metrics: - enabled: true diff --git a/promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/BannerConvert$AdminsImpl.java b/promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/BannerConvert$AdminsImpl.java deleted file mode 100644 index bfac21df2..000000000 --- a/promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/BannerConvert$AdminsImpl.java +++ /dev/null @@ -1,65 +0,0 @@ -package cn.iocoder.mall.promotion.application.convert; - -import cn.iocoder.mall.promotion.api.bo.BannerBO; -import cn.iocoder.mall.promotion.api.bo.BannerPageBO; -import cn.iocoder.mall.promotion.application.convert.BannerConvert.Admins; -import cn.iocoder.mall.promotion.application.vo.admins.AdminsBannerPageVO; -import cn.iocoder.mall.promotion.application.vo.admins.AdminsBannerVO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:39:16+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class BannerConvert$AdminsImpl implements Admins { - - @Override - public AdminsBannerVO convert(BannerBO bannerBO) { - if ( bannerBO == null ) { - return null; - } - - AdminsBannerVO adminsBannerVO = new AdminsBannerVO(); - - adminsBannerVO.setId( bannerBO.getId() ); - adminsBannerVO.setTitle( bannerBO.getTitle() ); - adminsBannerVO.setUrl( bannerBO.getUrl() ); - adminsBannerVO.setPicUrl( bannerBO.getPicUrl() ); - adminsBannerVO.setSort( bannerBO.getSort() ); - adminsBannerVO.setStatus( bannerBO.getStatus() ); - adminsBannerVO.setMemo( bannerBO.getMemo() ); - adminsBannerVO.setCreateTime( bannerBO.getCreateTime() ); - - return adminsBannerVO; - } - - @Override - public AdminsBannerPageVO convert3(BannerPageBO bannerPageBO) { - if ( bannerPageBO == null ) { - return null; - } - - AdminsBannerPageVO adminsBannerPageVO = new AdminsBannerPageVO(); - - adminsBannerPageVO.setList( bannerBOListToAdminsBannerVOList( bannerPageBO.getList() ) ); - adminsBannerPageVO.setTotal( bannerPageBO.getTotal() ); - - return adminsBannerPageVO; - } - - protected List bannerBOListToAdminsBannerVOList(List list) { - if ( list == null ) { - return null; - } - - List list1 = new ArrayList( list.size() ); - for ( BannerBO bannerBO : list ) { - list1.add( convert( bannerBO ) ); - } - - return list1; - } -} diff --git a/promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/BannerConvert$UsersImpl.java b/promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/BannerConvert$UsersImpl.java deleted file mode 100644 index a6f766ed8..000000000 --- a/promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/BannerConvert$UsersImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -package cn.iocoder.mall.promotion.application.convert; - -import cn.iocoder.mall.promotion.api.bo.BannerBO; -import cn.iocoder.mall.promotion.application.convert.BannerConvert.Users; -import cn.iocoder.mall.promotion.application.vo.users.UsersBannerVO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:39:15+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class BannerConvert$UsersImpl implements Users { - - @Override - public List convertList(List banners) { - if ( banners == null ) { - return null; - } - - List list = new ArrayList( banners.size() ); - for ( BannerBO bannerBO : banners ) { - list.add( bannerBOToUsersBannerVO( bannerBO ) ); - } - - return list; - } - - protected UsersBannerVO bannerBOToUsersBannerVO(BannerBO bannerBO) { - if ( bannerBO == null ) { - return null; - } - - UsersBannerVO usersBannerVO = new UsersBannerVO(); - - usersBannerVO.setUrl( bannerBO.getUrl() ); - usersBannerVO.setPicUrl( bannerBO.getPicUrl() ); - - return usersBannerVO; - } -} diff --git a/promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/CouponCardConvertImpl.java b/promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/CouponCardConvertImpl.java deleted file mode 100644 index c08c9df5f..000000000 --- a/promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/CouponCardConvertImpl.java +++ /dev/null @@ -1,67 +0,0 @@ -package cn.iocoder.mall.promotion.application.convert; - -import cn.iocoder.mall.promotion.api.bo.CouponCardBO; -import cn.iocoder.mall.promotion.api.bo.CouponCardPageBO; -import cn.iocoder.mall.promotion.application.vo.users.UsersCouponCardPageVO; -import cn.iocoder.mall.promotion.application.vo.users.UsersCouponCardVO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:39:15+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class CouponCardConvertImpl implements CouponCardConvert { - - @Override - public UsersCouponCardVO convert(CouponCardBO result) { - if ( result == null ) { - return null; - } - - UsersCouponCardVO usersCouponCardVO = new UsersCouponCardVO(); - - usersCouponCardVO.setId( result.getId() ); - usersCouponCardVO.setTemplateId( result.getTemplateId() ); - usersCouponCardVO.setTitle( result.getTitle() ); - usersCouponCardVO.setStatus( result.getStatus() ); - usersCouponCardVO.setPriceAvailable( result.getPriceAvailable() ); - usersCouponCardVO.setValidStartTime( result.getValidStartTime() ); - usersCouponCardVO.setValidEndTime( result.getValidEndTime() ); - usersCouponCardVO.setPreferentialType( result.getPreferentialType() ); - usersCouponCardVO.setPercentOff( result.getPercentOff() ); - usersCouponCardVO.setPriceOff( result.getPriceOff() ); - usersCouponCardVO.setDiscountPriceLimit( result.getDiscountPriceLimit() ); - - return usersCouponCardVO; - } - - @Override - public UsersCouponCardPageVO convert2(CouponCardPageBO result) { - if ( result == null ) { - return null; - } - - UsersCouponCardPageVO usersCouponCardPageVO = new UsersCouponCardPageVO(); - - usersCouponCardPageVO.setList( couponCardBOListToUsersCouponCardVOList( result.getList() ) ); - usersCouponCardPageVO.setTotal( result.getTotal() ); - - return usersCouponCardPageVO; - } - - protected List couponCardBOListToUsersCouponCardVOList(List list) { - if ( list == null ) { - return null; - } - - List list1 = new ArrayList( list.size() ); - for ( CouponCardBO couponCardBO : list ) { - list1.add( convert( couponCardBO ) ); - } - - return list1; - } -} diff --git a/promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/CouponTemplateConvert$AdminsImpl.java b/promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/CouponTemplateConvert$AdminsImpl.java deleted file mode 100644 index 738f566c4..000000000 --- a/promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/CouponTemplateConvert$AdminsImpl.java +++ /dev/null @@ -1,80 +0,0 @@ -package cn.iocoder.mall.promotion.application.convert; - -import cn.iocoder.mall.promotion.api.bo.CouponTemplateBO; -import cn.iocoder.mall.promotion.api.bo.CouponTemplatePageBO; -import cn.iocoder.mall.promotion.application.convert.CouponTemplateConvert.Admins; -import cn.iocoder.mall.promotion.application.vo.admins.AdminsCouponTemplatePageVO; -import cn.iocoder.mall.promotion.application.vo.admins.AdminsCouponTemplateVO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:39:15+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class CouponTemplateConvert$AdminsImpl implements Admins { - - @Override - public AdminsCouponTemplateVO convert(CouponTemplateBO template) { - if ( template == null ) { - return null; - } - - AdminsCouponTemplateVO adminsCouponTemplateVO = new AdminsCouponTemplateVO(); - - adminsCouponTemplateVO.setId( template.getId() ); - adminsCouponTemplateVO.setTitle( template.getTitle() ); - adminsCouponTemplateVO.setDescription( template.getDescription() ); - adminsCouponTemplateVO.setType( template.getType() ); - adminsCouponTemplateVO.setCodeType( template.getCodeType() ); - adminsCouponTemplateVO.setStatus( template.getStatus() ); - adminsCouponTemplateVO.setQuota( template.getQuota() ); - adminsCouponTemplateVO.setTotal( template.getTotal() ); - adminsCouponTemplateVO.setPriceAvailable( template.getPriceAvailable() ); - adminsCouponTemplateVO.setRangeType( template.getRangeType() ); - adminsCouponTemplateVO.setRangeValues( template.getRangeValues() ); - adminsCouponTemplateVO.setDateType( template.getDateType() ); - adminsCouponTemplateVO.setValidStartTime( template.getValidStartTime() ); - adminsCouponTemplateVO.setValidEndTime( template.getValidEndTime() ); - adminsCouponTemplateVO.setFixedStartTerm( template.getFixedStartTerm() ); - adminsCouponTemplateVO.setFixedEndTerm( template.getFixedEndTerm() ); - adminsCouponTemplateVO.setPreferentialType( template.getPreferentialType() ); - adminsCouponTemplateVO.setPercentOff( template.getPercentOff() ); - adminsCouponTemplateVO.setPriceOff( template.getPriceOff() ); - adminsCouponTemplateVO.setDiscountPriceLimit( template.getDiscountPriceLimit() ); - adminsCouponTemplateVO.setStatFetchNum( template.getStatFetchNum() ); - adminsCouponTemplateVO.setCreateTime( template.getCreateTime() ); - - return adminsCouponTemplateVO; - } - - @Override - public AdminsCouponTemplatePageVO convertPage(CouponTemplatePageBO result) { - if ( result == null ) { - return null; - } - - AdminsCouponTemplatePageVO adminsCouponTemplatePageVO = new AdminsCouponTemplatePageVO(); - - adminsCouponTemplatePageVO.setList( convertList( result.getList() ) ); - adminsCouponTemplatePageVO.setTotal( result.getTotal() ); - - return adminsCouponTemplatePageVO; - } - - @Override - public List convertList(List templates) { - if ( templates == null ) { - return null; - } - - List list = new ArrayList( templates.size() ); - for ( CouponTemplateBO couponTemplateBO : templates ) { - list.add( convert( couponTemplateBO ) ); - } - - return list; - } -} diff --git a/promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/CouponTemplateConvert$UsersImpl.java b/promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/CouponTemplateConvert$UsersImpl.java deleted file mode 100644 index 9f2f640fc..000000000 --- a/promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/CouponTemplateConvert$UsersImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -package cn.iocoder.mall.promotion.application.convert; - -import cn.iocoder.mall.promotion.api.bo.CouponTemplateBO; -import cn.iocoder.mall.promotion.application.convert.CouponTemplateConvert.Users; -import cn.iocoder.mall.promotion.application.vo.users.UsersCouponTemplateVO; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:39:15+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class CouponTemplateConvert$UsersImpl implements Users { - - @Override - public UsersCouponTemplateVO convert2(CouponTemplateBO template) { - if ( template == null ) { - return null; - } - - UsersCouponTemplateVO usersCouponTemplateVO = new UsersCouponTemplateVO(); - - usersCouponTemplateVO.setId( template.getId() ); - usersCouponTemplateVO.setTitle( template.getTitle() ); - usersCouponTemplateVO.setStatus( template.getStatus() ); - usersCouponTemplateVO.setPriceAvailable( template.getPriceAvailable() ); - usersCouponTemplateVO.setRangeType( template.getRangeType() ); - usersCouponTemplateVO.setRangeValues( template.getRangeValues() ); - usersCouponTemplateVO.setDateType( template.getDateType() ); - usersCouponTemplateVO.setValidStartTime( template.getValidStartTime() ); - usersCouponTemplateVO.setValidEndTime( template.getValidEndTime() ); - usersCouponTemplateVO.setFixedStartTerm( template.getFixedStartTerm() ); - usersCouponTemplateVO.setFixedEndTerm( template.getFixedEndTerm() ); - usersCouponTemplateVO.setPreferentialType( template.getPreferentialType() ); - usersCouponTemplateVO.setPercentOff( template.getPercentOff() ); - usersCouponTemplateVO.setPriceOff( template.getPriceOff() ); - usersCouponTemplateVO.setDiscountPriceLimit( template.getDiscountPriceLimit() ); - - return usersCouponTemplateVO; - } -} diff --git a/promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/CouponTemplateConvertImpl.java b/promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/CouponTemplateConvertImpl.java deleted file mode 100644 index af26ec501..000000000 --- a/promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/CouponTemplateConvertImpl.java +++ /dev/null @@ -1,11 +0,0 @@ -package cn.iocoder.mall.promotion.application.convert; - -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:39:15+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class CouponTemplateConvertImpl implements CouponTemplateConvert { -} diff --git a/promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/ProductRecommendConvertImpl.java b/promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/ProductRecommendConvertImpl.java deleted file mode 100644 index 17630b9f3..000000000 --- a/promotion/promotion-application/target/generated-sources/annotations/cn/iocoder/mall/promotion/application/convert/ProductRecommendConvertImpl.java +++ /dev/null @@ -1,85 +0,0 @@ -package cn.iocoder.mall.promotion.application.convert; - -import cn.iocoder.mall.product.api.bo.ProductSpuBO; -import cn.iocoder.mall.promotion.api.bo.ProductRecommendBO; -import cn.iocoder.mall.promotion.api.bo.ProductRecommendPageBO; -import cn.iocoder.mall.promotion.application.vo.admins.AdminsProductRecommendPageVO; -import cn.iocoder.mall.promotion.application.vo.admins.AdminsProductRecommendVO; -import cn.iocoder.mall.promotion.application.vo.users.UsersProductRecommendVO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:39:16+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class ProductRecommendConvertImpl implements ProductRecommendConvert { - - @Override - public AdminsProductRecommendVO convert(ProductRecommendBO bannerBO) { - if ( bannerBO == null ) { - return null; - } - - AdminsProductRecommendVO adminsProductRecommendVO = new AdminsProductRecommendVO(); - - adminsProductRecommendVO.setId( bannerBO.getId() ); - adminsProductRecommendVO.setType( bannerBO.getType() ); - adminsProductRecommendVO.setProductSpuId( bannerBO.getProductSpuId() ); - adminsProductRecommendVO.setSort( bannerBO.getSort() ); - adminsProductRecommendVO.setStatus( bannerBO.getStatus() ); - adminsProductRecommendVO.setMemo( bannerBO.getMemo() ); - adminsProductRecommendVO.setCreateTime( bannerBO.getCreateTime() ); - - return adminsProductRecommendVO; - } - - @Override - public AdminsProductRecommendPageVO convert(ProductRecommendPageBO result) { - if ( result == null ) { - return null; - } - - AdminsProductRecommendPageVO adminsProductRecommendPageVO = new AdminsProductRecommendPageVO(); - - adminsProductRecommendPageVO.setList( productRecommendBOListToAdminsProductRecommendVOList( result.getList() ) ); - adminsProductRecommendPageVO.setTotal( result.getTotal() ); - - return adminsProductRecommendPageVO; - } - - @Override - public UsersProductRecommendVO convert(ProductSpuBO productSpu) { - if ( productSpu == null ) { - return null; - } - - UsersProductRecommendVO usersProductRecommendVO = new UsersProductRecommendVO(); - - usersProductRecommendVO.setId( productSpu.getId() ); - usersProductRecommendVO.setName( productSpu.getName() ); - usersProductRecommendVO.setSellPoint( productSpu.getSellPoint() ); - List list = productSpu.getPicUrls(); - if ( list != null ) { - usersProductRecommendVO.setPicUrls( new ArrayList( list ) ); - } - usersProductRecommendVO.setPrice( productSpu.getPrice() ); - - return usersProductRecommendVO; - } - - protected List productRecommendBOListToAdminsProductRecommendVOList(List list) { - if ( list == null ) { - return null; - } - - List list1 = new ArrayList( list.size() ); - for ( ProductRecommendBO productRecommendBO : list ) { - list1.add( convert( productRecommendBO ) ); - } - - return list1; - } -} diff --git a/promotion/promotion-service-impl/target/classes/config/application-test.yaml b/promotion/promotion-service-impl/target/classes/config/application-test.yaml deleted file mode 100644 index 2abf34582..000000000 --- a/promotion/promotion-service-impl/target/classes/config/application-test.yaml +++ /dev/null @@ -1,7 +0,0 @@ -spring: - # datasource - datasource: - url: jdbc:mysql://192.168.88.14:3306/mall_promotion?useSSL=false&useUnicode=true&characterEncoding=UTF-8 - driver-class-name: com.mysql.jdbc.Driver - username: root - password: ${MALL_MYSQL_PASSWORD} diff --git a/promotion/promotion-service-impl/target/classes/config/application.yaml b/promotion/promotion-service-impl/target/classes/config/application.yaml deleted file mode 100644 index 396478d09..000000000 --- a/promotion/promotion-service-impl/target/classes/config/application.yaml +++ /dev/null @@ -1,54 +0,0 @@ -spring: - # datasource - datasource: - type: com.alibaba.druid.pool.DruidDataSource - url: jdbc:mysql://180.167.213.26:13306/mall_promotion?useSSL=false&useUnicode=true&characterEncoding=UTF-8 - driver-class-name: com.mysql.jdbc.Driver - username: root - password: ${MALL_MYSQL_PASSWORD} - # TODO 芋艿, 后续优化下 druid 参数 - druid: - initial-size: 5 - max-active: 5 - max-wait: 10000 - -# mybatis-plus -mybatis-plus: - configuration: - map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。 - global-config: - db-config: - id-type: auto - mapper-locations: classpath*:mapper/*.xml - type-aliases-package: cn.iocoder.mall.promotion.biz.dataobject - -# dubbo -dubbo: - application: - name: promotion-service - registry: - address: zookeeper://127.0.0.1:2181 - protocol: - port: -1 - name: dubbo - scan: - base-packages: cn.iocoder.mall.promotion.biz.service - consumer: - ProductSpuService: - version: 1.0.0 - provider: - filter: -exception - BannerService: - version: 1.0.0 - CouponService: - version: 1.0.0 - ProductRecommendService: - version: 1.0.0 - PromotionActivityService: - version: 1.0.0 - - -# logging -logging: - level: - cn.iocoder.mall.promotion.dao: debug diff --git a/promotion/promotion-service-impl/target/classes/file.conf b/promotion/promotion-service-impl/target/classes/file.conf deleted file mode 100644 index 8b60b29c3..000000000 --- a/promotion/promotion-service-impl/target/classes/file.conf +++ /dev/null @@ -1,69 +0,0 @@ -transport { - # tcp udt unix-domain-socket - type = "TCP" - #NIO NATIVE - server = "NIO" - #enable heartbeat - heartbeat = true - #thread factory for netty - thread-factory { - boss-thread-prefix = "NettyBoss" - worker-thread-prefix = "NettyServerNIOWorker" - server-executor-thread-prefix = "NettyServerBizHandler" - share-boss-worker = false - client-selector-thread-prefix = "NettyClientSelector" - client-selector-thread-size = 1 - client-worker-thread-prefix = "NettyClientWorkerThread" - # netty boss thread size,will not be used for UDT - boss-thread-size = 1 - #auto default pin or 8 - worker-thread-size = 8 - } -} - -service { - #vgroup->rgroup - vgroup_mapping.my_test_tx_group = "default" - #only support single node - default.grouplist = "180.167.213.26:8091" - #degrade current not support - enableDegrade = false - #disable - disable = false -} - -client { - async.commit.buffer.limit = 10000 - lock { - retry.internal = 10 - retry.times = 30 - } -} -## transaction log store -store { - ## store mode: file、db - mode = "file" - - ## file store - file { - dir = "file_store/data" - - # branch session size , if exceeded first try compress lockkey, still exceeded throws exceptions - max-branch-session-size = 16384 - # globe session size , if exceeded throws exceptions - max-global-session-size = 512 - # file buffer size , if exceeded allocate new buffer - file-write-buffer-cache-size = 16384 - # when recover batch read size - session.reload.read_size = 100 - } - - ## database store - db { - driver_class = "" - url = "" - user = "" - password = "" - } -} - diff --git a/promotion/promotion-service-impl/target/classes/mapper/BannerMapper.xml b/promotion/promotion-service-impl/target/classes/mapper/BannerMapper.xml deleted file mode 100644 index 0eb135dc0..000000000 --- a/promotion/promotion-service-impl/target/classes/mapper/BannerMapper.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - id, title, url, pic_url, sort, - status, memo, create_time - - - - - - - - - - - - - - - - - - - - - - - - - - - - - INSERT INTO banner ( - title, url, pic_url, sort, status, - memo, create_time, deleted - ) VALUES ( - #{title}, #{url}, #{picUrl}, #{sort}, #{status}, - #{memo}, #{createTime}, #{deleted} - ) - - - - UPDATE banner - - - title = #{title}, - - - url = #{url}, - - - pic_url = #{picUrl} , - - - sort = #{sort}, - - - status = #{status}, - - - memo = #{memo}, - - - deleted = #{deleted} - - - WHERE id = #{id} - - - \ No newline at end of file diff --git a/promotion/promotion-service-impl/target/classes/mapper/CouponCardMapper.xml b/promotion/promotion-service-impl/target/classes/mapper/CouponCardMapper.xml deleted file mode 100644 index 1bde18757..000000000 --- a/promotion/promotion-service-impl/target/classes/mapper/CouponCardMapper.xml +++ /dev/null @@ -1,134 +0,0 @@ - - - - - - id, template_id, title, status, user_id, take_type, - price_available, valid_start_time, valid_end_time, preferential_type, percent_off, price_off, - discount_price_limit, used_time, - create_time - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - INSERT INTO coupon_card ( - template_id, title, status, user_id, take_type, - price_available, valid_start_time, valid_end_time, preferential_type, percent_off, price_off, - discount_price_limit, used_time, - create_time - ) VALUES ( - #{templateId}, #{title}, #{status}, #{userId}, #{takeType}, - #{priceAvailable}, #{validStartTime}, #{validEndTime}, #{preferentialType}, #{percentOff}, #{priceOff}, - #{discountPriceLimit}, #{usedTime}, - #{createTime} - ) - - - - UPDATE coupon_card - - - status = #{status}, - - - used_time = #{usedTime}, - - - WHERE id = #{id} - - - - UPDATE coupon_card - - - status = #{updateObj.status}, - - - used_time = #{updateObj.usedTime}, - - - WHERE id = #{id} - AND status = #{status} - - - diff --git a/promotion/promotion-service-impl/target/classes/mapper/CouponTemplateMapper.xml b/promotion/promotion-service-impl/target/classes/mapper/CouponTemplateMapper.xml deleted file mode 100644 index 4e2c9c294..000000000 --- a/promotion/promotion-service-impl/target/classes/mapper/CouponTemplateMapper.xml +++ /dev/null @@ -1,169 +0,0 @@ - - - - - - id, title, description, type, code_type, - status, quota, total, price_available, range_type, - range_values, date_type, valid_start_time, valid_end_time, fixed_start_term, fixed_end_term, - preferential_type, percent_off, price_off, discount_price_limit, stat_fetch_num, - create_time - - - - - - - - - - - - - - - - - - - - - - - - - - - - - INSERT INTO coupon_template ( - title, description, type, code_type, - status, quota, total, price_available, range_type, - range_values, date_type, valid_start_time, valid_end_time, fixed_start_term, fixed_end_term, - preferential_type, percent_off, price_off, discount_price_limit, stat_fetch_num, - create_time - ) VALUES ( - #{title}, #{description}, #{type}, #{codeType}, - #{status}, #{quota}, #{total}, #{priceAvailable}, #{rangeType}, - #{rangeValues}, #{dateType}, #{validStartTime}, #{validEndTime}, #{fixedStartTerm}, #{fixedEndTerm} - #{preferentialType}, #{percentOff}, #{priceOff}, #{discountPriceLimit}, #{statFetchNum}, - #{createTime} - ) - - - - UPDATE coupon_template - - - title = #{title}, - - - description = #{description}, - - - status = #{status}, - - - quota = #{quota}, - - - total = #{total}, - - - price_available = #{priceAvailable}, - - - range_type = #{rangeType}, - - - range_values = #{rangeValues}, - - - date_type = #{dateType}, - - - valid_start_time = #{validStartTime}, - - - valid_end_time = #{validEndTime}, - - - fixed_start_term = #{fixedStartTerm}, - - - fixed_end_term = #{fixedEndTerm}, - - - preferential_type = #{preferentialType}, - - - percent_off = #{percentOff}, - - - price_off = #{priceOff}, - - - discount_price_limit = #{discountPriceLimit}, - - - WHERE id = #{id} - - - - UPDATE coupon_template - SET stat_fetch_Num = stat_fetch_Num + 1 - WHERE id = #{id} - AND total > stat_fetch_Num - - - diff --git a/promotion/promotion-service-impl/target/classes/mapper/ProductRecommendMapper.xml b/promotion/promotion-service-impl/target/classes/mapper/ProductRecommendMapper.xml deleted file mode 100644 index 7632b2579..000000000 --- a/promotion/promotion-service-impl/target/classes/mapper/ProductRecommendMapper.xml +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - id, type, product_spu_id, sort, - status, memo, create_time - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - INSERT INTO product_recommend ( - type, product_spu_id, sort, status, memo, - create_time, deleted - ) VALUES ( - #{type}, #{productSpuId}, #{sort}, #{status}, #{memo}, - #{createTime}, #{deleted} - ) - - - - UPDATE product_recommend - - - type = #{type}, - - - product_spu_id = #{productSpuId}, - - - sort = #{sort}, - - - status = #{status}, - - - memo = #{memo}, - - - deleted = #{deleted} - - - WHERE id = #{id} - - - \ No newline at end of file diff --git a/promotion/promotion-service-impl/target/classes/mapper/PromotionActivityMapper.xml b/promotion/promotion-service-impl/target/classes/mapper/PromotionActivityMapper.xml deleted file mode 100644 index 4518b97f1..000000000 --- a/promotion/promotion-service-impl/target/classes/mapper/PromotionActivityMapper.xml +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - id, title, activity_type, status, start_time, - end_time, invalid_time, delete_time, time_limited_discount, full_privilege, - create_time, update_time - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - INSERT INTO promotion_activity ( - title, activity_type, status, start_time, - end_time, invalid_time, delete_time, - time_limited_discount, - full_privilege, - create_time - ) VALUES ( - #{title}, #{activityType}, #{status}, #{startTime}, - #{endTime}, #{invalidTime}, #{deleteTime}, - #{timeLimitedDiscount, typeHandler=cn.iocoder.common.framework.mybatis.JSONTypeHandler}, - #{fullPrivilege, typeHandler=cn.iocoder.common.framework.mybatis.JSONTypeHandler}, - #{createTime} - ) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/promotion/promotion-service-impl/target/classes/registry.conf b/promotion/promotion-service-impl/target/classes/registry.conf deleted file mode 100644 index f73989514..000000000 --- a/promotion/promotion-service-impl/target/classes/registry.conf +++ /dev/null @@ -1,14 +0,0 @@ -registry { - type = "file" - - file { - name = "file.conf" - } - - zk { - cluster = "default" - serverAddr = "192.168.88.10:2181" - session.timeout = 6000 - connect.timeout = 2000 - } -} diff --git a/promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/BannerConvertImpl.java b/promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/BannerConvertImpl.java deleted file mode 100644 index 95bc28738..000000000 --- a/promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/BannerConvertImpl.java +++ /dev/null @@ -1,86 +0,0 @@ -package cn.iocoder.mall.promotion.biz.convert; - -import cn.iocoder.mall.promotion.api.bo.BannerBO; -import cn.iocoder.mall.promotion.api.dto.BannerAddDTO; -import cn.iocoder.mall.promotion.api.dto.BannerUpdateDTO; -import cn.iocoder.mall.promotion.biz.dataobject.BannerDO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:38:52+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class BannerConvertImpl implements BannerConvert { - - @Override - public BannerBO convertToBO(BannerDO banner) { - if ( banner == null ) { - return null; - } - - BannerBO bannerBO = new BannerBO(); - - bannerBO.setId( banner.getId() ); - bannerBO.setTitle( banner.getTitle() ); - bannerBO.setUrl( banner.getUrl() ); - bannerBO.setPicUrl( banner.getPicUrl() ); - bannerBO.setSort( banner.getSort() ); - bannerBO.setStatus( banner.getStatus() ); - bannerBO.setMemo( banner.getMemo() ); - bannerBO.setCreateTime( banner.getCreateTime() ); - - return bannerBO; - } - - @Override - public List convertToBO(List bannerList) { - if ( bannerList == null ) { - return null; - } - - List list = new ArrayList( bannerList.size() ); - for ( BannerDO bannerDO : bannerList ) { - list.add( convertToBO( bannerDO ) ); - } - - return list; - } - - @Override - public BannerDO convert(BannerAddDTO bannerAddDTO) { - if ( bannerAddDTO == null ) { - return null; - } - - BannerDO bannerDO = new BannerDO(); - - bannerDO.setTitle( bannerAddDTO.getTitle() ); - bannerDO.setUrl( bannerAddDTO.getUrl() ); - bannerDO.setPicUrl( bannerAddDTO.getPicUrl() ); - bannerDO.setSort( bannerAddDTO.getSort() ); - bannerDO.setMemo( bannerAddDTO.getMemo() ); - - return bannerDO; - } - - @Override - public BannerDO convert(BannerUpdateDTO bannerUpdateDTO) { - if ( bannerUpdateDTO == null ) { - return null; - } - - BannerDO bannerDO = new BannerDO(); - - bannerDO.setId( bannerUpdateDTO.getId() ); - bannerDO.setTitle( bannerUpdateDTO.getTitle() ); - bannerDO.setUrl( bannerUpdateDTO.getUrl() ); - bannerDO.setPicUrl( bannerUpdateDTO.getPicUrl() ); - bannerDO.setSort( bannerUpdateDTO.getSort() ); - bannerDO.setMemo( bannerUpdateDTO.getMemo() ); - - return bannerDO; - } -} diff --git a/promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/CouponCardConvertImpl.java b/promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/CouponCardConvertImpl.java deleted file mode 100644 index fb71cf655..000000000 --- a/promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/CouponCardConvertImpl.java +++ /dev/null @@ -1,114 +0,0 @@ -package cn.iocoder.mall.promotion.biz.convert; - -import cn.iocoder.mall.promotion.api.bo.CouponCardAvailableBO; -import cn.iocoder.mall.promotion.api.bo.CouponCardBO; -import cn.iocoder.mall.promotion.api.bo.CouponCardDetailBO; -import cn.iocoder.mall.promotion.biz.dataobject.CouponCardDO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:38:52+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class CouponCardConvertImpl implements CouponCardConvert { - - @Override - public List convertToBO(List cardList) { - if ( cardList == null ) { - return null; - } - - List list = new ArrayList( cardList.size() ); - for ( CouponCardDO couponCardDO : cardList ) { - list.add( convert( couponCardDO ) ); - } - - return list; - } - - @Override - public CouponCardBO convert(CouponCardDO card) { - if ( card == null ) { - return null; - } - - CouponCardBO couponCardBO = new CouponCardBO(); - - couponCardBO.setId( card.getId() ); - couponCardBO.setTemplateId( card.getTemplateId() ); - couponCardBO.setTitle( card.getTitle() ); - couponCardBO.setStatus( card.getStatus() ); - couponCardBO.setUserId( card.getUserId() ); - couponCardBO.setTakeType( card.getTakeType() ); - couponCardBO.setPriceAvailable( card.getPriceAvailable() ); - couponCardBO.setValidStartTime( card.getValidStartTime() ); - couponCardBO.setValidEndTime( card.getValidEndTime() ); - couponCardBO.setPreferentialType( card.getPreferentialType() ); - couponCardBO.setPercentOff( card.getPercentOff() ); - couponCardBO.setPriceOff( card.getPriceOff() ); - couponCardBO.setDiscountPriceLimit( card.getDiscountPriceLimit() ); - couponCardBO.setUsedTime( card.getUsedTime() ); - couponCardBO.setCreateTime( card.getCreateTime() ); - - return couponCardBO; - } - - @Override - public CouponCardDetailBO convert2(CouponCardDO card) { - if ( card == null ) { - return null; - } - - CouponCardDetailBO couponCardDetailBO = new CouponCardDetailBO(); - - couponCardDetailBO.setId( card.getId() ); - couponCardDetailBO.setTemplateId( card.getTemplateId() ); - couponCardDetailBO.setTitle( card.getTitle() ); - couponCardDetailBO.setStatus( card.getStatus() ); - couponCardDetailBO.setUserId( card.getUserId() ); - couponCardDetailBO.setTakeType( card.getTakeType() ); - couponCardDetailBO.setPriceAvailable( card.getPriceAvailable() ); - couponCardDetailBO.setValidStartTime( card.getValidStartTime() ); - couponCardDetailBO.setValidEndTime( card.getValidEndTime() ); - couponCardDetailBO.setPreferentialType( card.getPreferentialType() ); - couponCardDetailBO.setPercentOff( card.getPercentOff() ); - couponCardDetailBO.setPriceOff( card.getPriceOff() ); - couponCardDetailBO.setDiscountPriceLimit( card.getDiscountPriceLimit() ); - couponCardDetailBO.setUsedTime( card.getUsedTime() ); - couponCardDetailBO.setCreateTime( card.getCreateTime() ); - - return couponCardDetailBO; - } - - @Override - public CouponCardAvailableBO convert2(CouponCardDO card, boolean x) { - if ( card == null ) { - return null; - } - - CouponCardAvailableBO couponCardAvailableBO = new CouponCardAvailableBO(); - - if ( card != null ) { - couponCardAvailableBO.setId( card.getId() ); - couponCardAvailableBO.setTemplateId( card.getTemplateId() ); - couponCardAvailableBO.setTitle( card.getTitle() ); - couponCardAvailableBO.setStatus( card.getStatus() ); - couponCardAvailableBO.setUserId( card.getUserId() ); - couponCardAvailableBO.setTakeType( card.getTakeType() ); - couponCardAvailableBO.setPriceAvailable( card.getPriceAvailable() ); - couponCardAvailableBO.setValidStartTime( card.getValidStartTime() ); - couponCardAvailableBO.setValidEndTime( card.getValidEndTime() ); - couponCardAvailableBO.setPreferentialType( card.getPreferentialType() ); - couponCardAvailableBO.setPercentOff( card.getPercentOff() ); - couponCardAvailableBO.setPriceOff( card.getPriceOff() ); - couponCardAvailableBO.setDiscountPriceLimit( card.getDiscountPriceLimit() ); - couponCardAvailableBO.setUsedTime( card.getUsedTime() ); - couponCardAvailableBO.setCreateTime( card.getCreateTime() ); - } - - return couponCardAvailableBO; - } -} diff --git a/promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/CouponTemplateConvertImpl.java b/promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/CouponTemplateConvertImpl.java deleted file mode 100644 index 91e53f6c8..000000000 --- a/promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/CouponTemplateConvertImpl.java +++ /dev/null @@ -1,135 +0,0 @@ -package cn.iocoder.mall.promotion.biz.convert; - -import cn.iocoder.mall.promotion.api.bo.CouponTemplateBO; -import cn.iocoder.mall.promotion.api.dto.CouponCardTemplateAddDTO; -import cn.iocoder.mall.promotion.api.dto.CouponCardTemplateUpdateDTO; -import cn.iocoder.mall.promotion.api.dto.CouponCodeTemplateAddDTO; -import cn.iocoder.mall.promotion.api.dto.CouponCodeTemplateUpdateDTO; -import cn.iocoder.mall.promotion.biz.dataobject.CouponTemplateDO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:38:52+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class CouponTemplateConvertImpl implements CouponTemplateConvert { - - @Override - public List convertToBO(List templateList) { - if ( templateList == null ) { - return null; - } - - List list = new ArrayList( templateList.size() ); - for ( CouponTemplateDO couponTemplateDO : templateList ) { - list.add( convert( couponTemplateDO ) ); - } - - return list; - } - - @Override - public CouponTemplateDO convert(CouponCodeTemplateUpdateDTO template) { - if ( template == null ) { - return null; - } - - CouponTemplateDO couponTemplateDO = new CouponTemplateDO(); - - return couponTemplateDO; - } - - @Override - public CouponTemplateDO convert(CouponCardTemplateAddDTO template) { - if ( template == null ) { - return null; - } - - CouponTemplateDO couponTemplateDO = new CouponTemplateDO(); - - couponTemplateDO.setTitle( template.getTitle() ); - couponTemplateDO.setDescription( template.getDescription() ); - couponTemplateDO.setQuota( template.getQuota() ); - couponTemplateDO.setTotal( template.getTotal() ); - couponTemplateDO.setPriceAvailable( template.getPriceAvailable() ); - couponTemplateDO.setRangeType( template.getRangeType() ); - couponTemplateDO.setRangeValues( template.getRangeValues() ); - couponTemplateDO.setDateType( template.getDateType() ); - couponTemplateDO.setValidStartTime( template.getValidStartTime() ); - couponTemplateDO.setValidEndTime( template.getValidEndTime() ); - couponTemplateDO.setFixedEndTerm( template.getFixedEndTerm() ); - couponTemplateDO.setPreferentialType( template.getPreferentialType() ); - couponTemplateDO.setPercentOff( template.getPercentOff() ); - couponTemplateDO.setPriceOff( template.getPriceOff() ); - couponTemplateDO.setDiscountPriceLimit( template.getDiscountPriceLimit() ); - - return couponTemplateDO; - } - - @Override - public CouponTemplateDO convert(CouponCardTemplateUpdateDTO template) { - if ( template == null ) { - return null; - } - - CouponTemplateDO couponTemplateDO = new CouponTemplateDO(); - - couponTemplateDO.setId( template.getId() ); - couponTemplateDO.setTitle( template.getTitle() ); - couponTemplateDO.setDescription( template.getDescription() ); - couponTemplateDO.setQuota( template.getQuota() ); - couponTemplateDO.setTotal( template.getTotal() ); - couponTemplateDO.setRangeType( template.getRangeType() ); - couponTemplateDO.setRangeValues( template.getRangeValues() ); - - return couponTemplateDO; - } - - @Override - public CouponTemplateDO convert(CouponCodeTemplateAddDTO template) { - if ( template == null ) { - return null; - } - - CouponTemplateDO couponTemplateDO = new CouponTemplateDO(); - - return couponTemplateDO; - } - - @Override - public CouponTemplateBO convert(CouponTemplateDO template) { - if ( template == null ) { - return null; - } - - CouponTemplateBO couponTemplateBO = new CouponTemplateBO(); - - couponTemplateBO.setId( template.getId() ); - couponTemplateBO.setTitle( template.getTitle() ); - couponTemplateBO.setDescription( template.getDescription() ); - couponTemplateBO.setType( template.getType() ); - couponTemplateBO.setCodeType( template.getCodeType() ); - couponTemplateBO.setStatus( template.getStatus() ); - couponTemplateBO.setQuota( template.getQuota() ); - couponTemplateBO.setTotal( template.getTotal() ); - couponTemplateBO.setPriceAvailable( template.getPriceAvailable() ); - couponTemplateBO.setRangeType( template.getRangeType() ); - couponTemplateBO.setRangeValues( template.getRangeValues() ); - couponTemplateBO.setDateType( template.getDateType() ); - couponTemplateBO.setValidStartTime( template.getValidStartTime() ); - couponTemplateBO.setValidEndTime( template.getValidEndTime() ); - couponTemplateBO.setFixedStartTerm( template.getFixedStartTerm() ); - couponTemplateBO.setFixedEndTerm( template.getFixedEndTerm() ); - couponTemplateBO.setPreferentialType( template.getPreferentialType() ); - couponTemplateBO.setPercentOff( template.getPercentOff() ); - couponTemplateBO.setPriceOff( template.getPriceOff() ); - couponTemplateBO.setDiscountPriceLimit( template.getDiscountPriceLimit() ); - couponTemplateBO.setStatFetchNum( template.getStatFetchNum() ); - couponTemplateBO.setCreateTime( template.getCreateTime() ); - - return couponTemplateBO; - } -} diff --git a/promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/ProductRecommendConvertImpl.java b/promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/ProductRecommendConvertImpl.java deleted file mode 100644 index 9afaf0360..000000000 --- a/promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/ProductRecommendConvertImpl.java +++ /dev/null @@ -1,83 +0,0 @@ -package cn.iocoder.mall.promotion.biz.convert; - -import cn.iocoder.mall.promotion.api.bo.ProductRecommendBO; -import cn.iocoder.mall.promotion.api.dto.ProductRecommendAddDTO; -import cn.iocoder.mall.promotion.api.dto.ProductRecommendUpdateDTO; -import cn.iocoder.mall.promotion.biz.dataobject.ProductRecommendDO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:38:52+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class ProductRecommendConvertImpl implements ProductRecommendConvert { - - @Override - public ProductRecommendBO convertToBO(ProductRecommendDO recommend) { - if ( recommend == null ) { - return null; - } - - ProductRecommendBO productRecommendBO = new ProductRecommendBO(); - - productRecommendBO.setId( recommend.getId() ); - productRecommendBO.setType( recommend.getType() ); - productRecommendBO.setProductSpuId( recommend.getProductSpuId() ); - productRecommendBO.setSort( recommend.getSort() ); - productRecommendBO.setStatus( recommend.getStatus() ); - productRecommendBO.setMemo( recommend.getMemo() ); - productRecommendBO.setCreateTime( recommend.getCreateTime() ); - - return productRecommendBO; - } - - @Override - public List convertToBO(List recommendList) { - if ( recommendList == null ) { - return null; - } - - List list = new ArrayList( recommendList.size() ); - for ( ProductRecommendDO productRecommendDO : recommendList ) { - list.add( convertToBO( productRecommendDO ) ); - } - - return list; - } - - @Override - public ProductRecommendDO convert(ProductRecommendAddDTO recommendAddDTO) { - if ( recommendAddDTO == null ) { - return null; - } - - ProductRecommendDO productRecommendDO = new ProductRecommendDO(); - - productRecommendDO.setType( recommendAddDTO.getType() ); - productRecommendDO.setProductSpuId( recommendAddDTO.getProductSpuId() ); - productRecommendDO.setSort( recommendAddDTO.getSort() ); - productRecommendDO.setMemo( recommendAddDTO.getMemo() ); - - return productRecommendDO; - } - - @Override - public ProductRecommendDO convert(ProductRecommendUpdateDTO recommendUpdateDTO) { - if ( recommendUpdateDTO == null ) { - return null; - } - - ProductRecommendDO productRecommendDO = new ProductRecommendDO(); - - productRecommendDO.setId( recommendUpdateDTO.getId() ); - productRecommendDO.setType( recommendUpdateDTO.getType() ); - productRecommendDO.setProductSpuId( recommendUpdateDTO.getProductSpuId() ); - productRecommendDO.setSort( recommendUpdateDTO.getSort() ); - productRecommendDO.setMemo( recommendUpdateDTO.getMemo() ); - - return productRecommendDO; - } -} diff --git a/promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/PromotionActivityConvertImpl.java b/promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/PromotionActivityConvertImpl.java deleted file mode 100644 index 995e203b0..000000000 --- a/promotion/promotion-service-impl/target/generated-sources/annotations/cn/iocoder/mall/promotion/biz/convert/PromotionActivityConvertImpl.java +++ /dev/null @@ -1,139 +0,0 @@ -package cn.iocoder.mall.promotion.biz.convert; - -import cn.iocoder.mall.promotion.api.bo.PromotionActivityBO; -import cn.iocoder.mall.promotion.api.bo.PromotionActivityBO.FullPrivilege.Privilege; -import cn.iocoder.mall.promotion.api.bo.PromotionActivityBO.TimeLimitedDiscount; -import cn.iocoder.mall.promotion.biz.dataobject.PromotionActivityDO; -import cn.iocoder.mall.promotion.biz.dataobject.PromotionActivityDO.FullPrivilege; -import cn.iocoder.mall.promotion.biz.dataobject.PromotionActivityDO.TimeLimitedDiscount.Item; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:38:52+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class PromotionActivityConvertImpl implements PromotionActivityConvert { - - @Override - public PromotionActivityBO convertToBO(PromotionActivityDO activity) { - if ( activity == null ) { - return null; - } - - PromotionActivityBO promotionActivityBO = new PromotionActivityBO(); - - promotionActivityBO.setId( activity.getId() ); - promotionActivityBO.setTitle( activity.getTitle() ); - promotionActivityBO.setActivityType( activity.getActivityType() ); - promotionActivityBO.setStatus( activity.getStatus() ); - promotionActivityBO.setStartTime( activity.getStartTime() ); - promotionActivityBO.setEndTime( activity.getEndTime() ); - promotionActivityBO.setTimeLimitedDiscount( timeLimitedDiscountToTimeLimitedDiscount( activity.getTimeLimitedDiscount() ) ); - promotionActivityBO.setFullPrivilege( fullPrivilegeToFullPrivilege( activity.getFullPrivilege() ) ); - - return promotionActivityBO; - } - - @Override - public List convertToBO(List activityList) { - if ( activityList == null ) { - return null; - } - - List list = new ArrayList( activityList.size() ); - for ( PromotionActivityDO promotionActivityDO : activityList ) { - list.add( convertToBO( promotionActivityDO ) ); - } - - return list; - } - - protected cn.iocoder.mall.promotion.api.bo.PromotionActivityBO.TimeLimitedDiscount.Item itemToItem(Item item) { - if ( item == null ) { - return null; - } - - cn.iocoder.mall.promotion.api.bo.PromotionActivityBO.TimeLimitedDiscount.Item item1 = new cn.iocoder.mall.promotion.api.bo.PromotionActivityBO.TimeLimitedDiscount.Item(); - - item1.setSpuId( item.getSpuId() ); - item1.setPreferentialType( item.getPreferentialType() ); - item1.setPreferentialValue( item.getPreferentialValue() ); - - return item1; - } - - protected List itemListToItemList(List list) { - if ( list == null ) { - return null; - } - - List list1 = new ArrayList( list.size() ); - for ( Item item : list ) { - list1.add( itemToItem( item ) ); - } - - return list1; - } - - protected TimeLimitedDiscount timeLimitedDiscountToTimeLimitedDiscount(cn.iocoder.mall.promotion.biz.dataobject.PromotionActivityDO.TimeLimitedDiscount timeLimitedDiscount) { - if ( timeLimitedDiscount == null ) { - return null; - } - - TimeLimitedDiscount timeLimitedDiscount1 = new TimeLimitedDiscount(); - - timeLimitedDiscount1.setQuota( timeLimitedDiscount.getQuota() ); - timeLimitedDiscount1.setItems( itemListToItemList( timeLimitedDiscount.getItems() ) ); - - return timeLimitedDiscount1; - } - - protected Privilege privilegeToPrivilege(cn.iocoder.mall.promotion.biz.dataobject.PromotionActivityDO.FullPrivilege.Privilege privilege) { - if ( privilege == null ) { - return null; - } - - Privilege privilege1 = new Privilege(); - - privilege1.setMeetType( privilege.getMeetType() ); - privilege1.setMeetValue( privilege.getMeetValue() ); - privilege1.setPreferentialType( privilege.getPreferentialType() ); - privilege1.setPreferentialValue( privilege.getPreferentialValue() ); - - return privilege1; - } - - protected List privilegeListToPrivilegeList(List list) { - if ( list == null ) { - return null; - } - - List list1 = new ArrayList( list.size() ); - for ( cn.iocoder.mall.promotion.biz.dataobject.PromotionActivityDO.FullPrivilege.Privilege privilege : list ) { - list1.add( privilegeToPrivilege( privilege ) ); - } - - return list1; - } - - protected cn.iocoder.mall.promotion.api.bo.PromotionActivityBO.FullPrivilege fullPrivilegeToFullPrivilege(FullPrivilege fullPrivilege) { - if ( fullPrivilege == null ) { - return null; - } - - cn.iocoder.mall.promotion.api.bo.PromotionActivityBO.FullPrivilege fullPrivilege1 = new cn.iocoder.mall.promotion.api.bo.PromotionActivityBO.FullPrivilege(); - - fullPrivilege1.setRangeType( fullPrivilege.getRangeType() ); - List list = fullPrivilege.getRangeValues(); - if ( list != null ) { - fullPrivilege1.setRangeValues( new ArrayList( list ) ); - } - fullPrivilege1.setCycled( fullPrivilege.getCycled() ); - fullPrivilege1.setPrivileges( privilegeListToPrivilegeList( fullPrivilege.getPrivileges() ) ); - - return fullPrivilege1; - } -} diff --git a/search/search-application/target/classes/application-test.yaml b/search/search-application/target/classes/application-test.yaml deleted file mode 100644 index e3581327f..000000000 --- a/search/search-application/target/classes/application-test.yaml +++ /dev/null @@ -1,6 +0,0 @@ -swagger: - enable: true - title: 搜索子系统 - description: 搜索子系统 - version: 1.0.0 - base-package: cn.iocoder.mall.search.application.controller diff --git a/search/search-application/target/classes/application.yaml b/search/search-application/target/classes/application.yaml deleted file mode 100644 index 9f54ec3e5..000000000 --- a/search/search-application/target/classes/application.yaml +++ /dev/null @@ -1,29 +0,0 @@ -spring: - application: - name: search-application - cloud: - sentinel: - transport: - port: 8719 - dashboard: localhost:12088 - metric: - charset: UTF-8 - eager: false - -# server -server: - port: 18086 - servlet: - context-path: /search-api/ - -swagger: - enable: false - - -management: - endpoints: - web: - exposure: - include: health,info,env,metrics,prometheus - metrics: - enabled: true diff --git a/search/search-service-impl/target/classes/config/application-test.yaml b/search/search-service-impl/target/classes/config/application-test.yaml deleted file mode 100644 index 5e48f70bf..000000000 --- a/search/search-service-impl/target/classes/config/application-test.yaml +++ /dev/null @@ -1,14 +0,0 @@ -# es -spring: - data: - elasticsearch: - cluster-name: elasticsearch - cluster-nodes: 192.168.88.14:9300 - repositories: - enable: true - -# rocketmq -rocketmq: - name-server: 192.168.88.14:9876 - producer: - group: search-producer-group diff --git a/search/search-service-impl/target/classes/config/application.yaml b/search/search-service-impl/target/classes/config/application.yaml deleted file mode 100644 index e58d6f5fe..000000000 --- a/search/search-service-impl/target/classes/config/application.yaml +++ /dev/null @@ -1,37 +0,0 @@ -# es -spring: - data: - elasticsearch: - cluster-name: elasticsearch - cluster-nodes: 180.167.213.26:9300 - repositories: - enable: true - -# dubbo -dubbo: - application: - name: search-service - registry: - address: zookeeper://127.0.0.1:2181 - protocol: - port: -1 - name: dubbo - scan: - base-packages: cn.iocoder.mall.search.biz.service - provider: - filter: -exception - ProductSearchService: - version: 1.0.0 - consumer: - ProductSpuService: - version: 1.0.0 - ProductCategoryService: - version: 1.0.0 - CartService: - version: 1.0.0 - -# rocketmq -rocketmq: - name-server: 127.0.0.1:9876 - producer: - group: search-producer-group diff --git a/search/search-service-impl/target/generated-sources/annotations/cn/iocoder/mall/search/biz/convert/ProductSearchConvertImpl.java b/search/search-service-impl/target/generated-sources/annotations/cn/iocoder/mall/search/biz/convert/ProductSearchConvertImpl.java deleted file mode 100644 index a8d07df70..000000000 --- a/search/search-service-impl/target/generated-sources/annotations/cn/iocoder/mall/search/biz/convert/ProductSearchConvertImpl.java +++ /dev/null @@ -1,83 +0,0 @@ -package cn.iocoder.mall.search.biz.convert; - -import cn.iocoder.mall.product.api.bo.ProductSpuDetailBO; -import cn.iocoder.mall.search.api.bo.ProductBO; -import cn.iocoder.mall.search.biz.dataobject.ESProductDO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:39:12+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class ProductSearchConvertImpl implements ProductSearchConvert { - - @Override - public ESProductDO convert(ProductSpuDetailBO spu) { - if ( spu == null ) { - return null; - } - - ESProductDO eSProductDO = new ESProductDO(); - - eSProductDO.setId( spu.getId() ); - eSProductDO.setName( spu.getName() ); - eSProductDO.setSellPoint( spu.getSellPoint() ); - eSProductDO.setDescription( spu.getDescription() ); - eSProductDO.setCid( spu.getCid() ); - eSProductDO.setCategoryName( spu.getCategoryName() ); - List list = spu.getPicUrls(); - if ( list != null ) { - eSProductDO.setPicUrls( new ArrayList( list ) ); - } - eSProductDO.setVisible( spu.getVisible() ); - eSProductDO.setSort( spu.getSort() ); - - return eSProductDO; - } - - @Override - public List convert(List list) { - if ( list == null ) { - return null; - } - - List list1 = new ArrayList( list.size() ); - for ( ESProductDO eSProductDO : list ) { - list1.add( eSProductDOToProductBO( eSProductDO ) ); - } - - return list1; - } - - protected ProductBO eSProductDOToProductBO(ESProductDO eSProductDO) { - if ( eSProductDO == null ) { - return null; - } - - ProductBO productBO = new ProductBO(); - - productBO.setId( eSProductDO.getId() ); - productBO.setName( eSProductDO.getName() ); - productBO.setSellPoint( eSProductDO.getSellPoint() ); - productBO.setDescription( eSProductDO.getDescription() ); - productBO.setCid( eSProductDO.getCid() ); - productBO.setCategoryName( eSProductDO.getCategoryName() ); - List list = eSProductDO.getPicUrls(); - if ( list != null ) { - productBO.setPicUrls( new ArrayList( list ) ); - } - productBO.setVisible( eSProductDO.getVisible() ); - productBO.setSort( eSProductDO.getSort() ); - productBO.setOriginalPrice( eSProductDO.getOriginalPrice() ); - productBO.setBuyPrice( eSProductDO.getBuyPrice() ); - productBO.setQuantity( eSProductDO.getQuantity() ); - productBO.setPromotionActivityId( eSProductDO.getPromotionActivityId() ); - productBO.setPromotionActivityTitle( eSProductDO.getPromotionActivityTitle() ); - productBO.setPromotionActivityType( eSProductDO.getPromotionActivityType() ); - - return productBO; - } -} diff --git a/sessionStore/root.data b/sessionStore/root.data deleted file mode 100644 index b11ad85cd4917254cadceaf1b29e59d0e25c103a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 9710 zcmdUy%Wl&^6ox11Wm8pxB@aLai#oBLOKT}&LCXrMi>88|F^(y&96LA;&^0W(&jYXm zvF8N}lslAygo==8#imcenSsKb7xh?5)QY?k+; zd@&ddk~j>CI7`Ku{X^&w@Rjb`MIkC%Pai+ruT%(H3VF6#7J0rr^3?y|Jbn)A^WN@(-skadY2+6` z@*(@pFLC6fE+a$Jp4QH7Y@g@KBkTVv=o!Y+hLTy@ShAir)L|@bD4C^=CF^NJ9mdjz zl3ChVvYz%H?27TlImfOTP_jOUjiF?H4g-_*KEHzX`RlI-s?X183ZzMYOk}mbrX||y z-3-0{_V7;P)oS)q-LhM4%duU{X?eEm)>}0>)%$}y>t}L1aA`D**4M9gZUxCOTA&vj zX)LGzPLYqIh46Ne2VoKAt0}!1r<nWa}}sPwKOI@Rk+6#69bWz81`wIWHB_F zvQQ=lvr1=TfcBfsDo`?;RSavFt|Vw^Oi5U>uB6W}B^|F^XG$WnQqln}6Rf0`)0TxY eC7D$^Qxde_Oi55OQ<7or(v<`ajVTFBp85@^>$aW% diff --git a/system/system-application/target/classes/application-test.yaml b/system/system-application/target/classes/application-test.yaml deleted file mode 100644 index 58f89a7cc..000000000 --- a/system/system-application/target/classes/application-test.yaml +++ /dev/null @@ -1,18 +0,0 @@ -spring: - boot: - admin: - client: - enabled: false # 暂时不用了 - url: http://127.0.0.1:18097 - - -#management: -# endpoints: -# web: -# exposure: -# include: "*" -# server: -# port: 19083 # 配置独立端口。而该端口,不使用 nginx 对外暴露,从而不配置安全认证。也就是说,内网环境可访问,外网环境不可访问。当然,这么做的前提是,认为内网安全。 - -swagger: - enable: true # 暂时不去掉 diff --git a/system/system-application/target/classes/application.yaml b/system/system-application/target/classes/application.yaml deleted file mode 100644 index 4e8c8a8b1..000000000 --- a/system/system-application/target/classes/application.yaml +++ /dev/null @@ -1,42 +0,0 @@ -spring: - application: - name: admin-application - cloud: - sentinel: - transport: - port: 8719 - dashboard: localhost:12088 - metric: - charset: UTF-8 - eager: false - -# server -server: - port: 18083 - servlet: - context-path: /admin-api/ - -admins: - security: - ignore_urls: /admin-api/admins/passport/login, /admin-api/admins/file/get_qiniu_token - -# qiniu -qiniu: - access-key: YldfyUC7OewoWM63TPYTairqnq8GMJvNek9EGoID - secret-key: zZ7Q8wwZRyaklVvkyLmVydA4WygOBqtc_gTYzalS - bucket: onemall - -swagger: - enable: true # 暂时不去掉 - title: 管理员子系统 - description: 管理员子系统 - version: 1.0.0 - base-package: cn.iocoder.mall.admin.application.controller - -management: - endpoints: - web: - exposure: - include: health,info,env,metrics,prometheus - metrics: - enabled: true diff --git a/system/system-application/target/generated-sources/annotations/cn/iocoder/mall/admin/application/convert/AdminConvertImpl.java b/system/system-application/target/generated-sources/annotations/cn/iocoder/mall/admin/application/convert/AdminConvertImpl.java deleted file mode 100644 index 3d45b22b3..000000000 --- a/system/system-application/target/generated-sources/annotations/cn/iocoder/mall/admin/application/convert/AdminConvertImpl.java +++ /dev/null @@ -1,155 +0,0 @@ -package cn.iocoder.mall.admin.application.convert; - -import cn.iocoder.common.framework.vo.CommonResult; -import cn.iocoder.common.framework.vo.PageResult; -import cn.iocoder.mall.admin.api.bo.admin.AdminBO; -import cn.iocoder.mall.admin.api.bo.role.RoleBO; -import cn.iocoder.mall.admin.application.vo.admin.AdminInfoVO; -import cn.iocoder.mall.admin.application.vo.admin.AdminRoleVO; -import cn.iocoder.mall.admin.application.vo.admin.AdminVO; -import cn.iocoder.mall.admin.application.vo.admin.AdminVO.Role; -import cn.iocoder.mall.admin.sdk.context.AdminSecurityContext; -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashSet; -import java.util.List; -import java.util.Set; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-31T18:11:49+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class AdminConvertImpl implements AdminConvert { - - @Override - public AdminInfoVO convert(AdminSecurityContext adminSecurityContext) { - if ( adminSecurityContext == null ) { - return null; - } - - AdminInfoVO adminInfoVO = new AdminInfoVO(); - - adminInfoVO.setAdminId( adminSecurityContext.getAdminId() ); - Set set = adminSecurityContext.getRoleIds(); - if ( set != null ) { - adminInfoVO.setRoleIds( new HashSet( set ) ); - } - - return adminInfoVO; - } - - @Override - public AdminVO convert(AdminBO adminBO) { - if ( adminBO == null ) { - return null; - } - - AdminVO adminVO = new AdminVO(); - - adminVO.setId( adminBO.getId() ); - adminVO.setUsername( adminBO.getUsername() ); - adminVO.setNickname( adminBO.getNickname() ); - adminVO.setStatus( adminBO.getStatus() ); - adminVO.setCreateTime( adminBO.getCreateTime() ); - - return adminVO; - } - - @Override - public CommonResult convert2(CommonResult result) { - if ( result == null ) { - return null; - } - - CommonResult commonResult = new CommonResult(); - - commonResult.setCode( result.getCode() ); - commonResult.setMessage( result.getMessage() ); - commonResult.setData( convert( result.getData() ) ); - - return commonResult; - } - - @Override - public List convert(List roleList) { - if ( roleList == null ) { - return null; - } - - List list = new ArrayList( roleList.size() ); - for ( RoleBO roleBO : roleList ) { - list.add( roleBOToAdminRoleVO( roleBO ) ); - } - - return list; - } - - @Override - public PageResult convertAdminVOPage(PageResult page) { - if ( page == null ) { - return null; - } - - PageResult pageResult = new PageResult(); - - pageResult.setList( adminBOListToAdminVOList( page.getList() ) ); - pageResult.setTotal( page.getTotal() ); - - return pageResult; - } - - @Override - public List convertAdminVORoleList(Collection list) { - if ( list == null ) { - return null; - } - - List list1 = new ArrayList( list.size() ); - for ( RoleBO roleBO : list ) { - list1.add( roleBOToRole( roleBO ) ); - } - - return list1; - } - - protected AdminRoleVO roleBOToAdminRoleVO(RoleBO roleBO) { - if ( roleBO == null ) { - return null; - } - - AdminRoleVO adminRoleVO = new AdminRoleVO(); - - adminRoleVO.setId( roleBO.getId() ); - adminRoleVO.setName( roleBO.getName() ); - - return adminRoleVO; - } - - protected List adminBOListToAdminVOList(List list) { - if ( list == null ) { - return null; - } - - List list1 = new ArrayList( list.size() ); - for ( AdminBO adminBO : list ) { - list1.add( convert( adminBO ) ); - } - - return list1; - } - - protected Role roleBOToRole(RoleBO roleBO) { - if ( roleBO == null ) { - return null; - } - - Role role = new Role(); - - role.setId( roleBO.getId() ); - role.setName( roleBO.getName() ); - - return role; - } -} diff --git a/system/system-application/target/generated-sources/annotations/cn/iocoder/mall/admin/application/convert/DataDictConvertImpl.java b/system/system-application/target/generated-sources/annotations/cn/iocoder/mall/admin/application/convert/DataDictConvertImpl.java deleted file mode 100644 index 7db20f02a..000000000 --- a/system/system-application/target/generated-sources/annotations/cn/iocoder/mall/admin/application/convert/DataDictConvertImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -package cn.iocoder.mall.admin.application.convert; - -import cn.iocoder.mall.admin.api.bo.datadict.DataDictBO; -import cn.iocoder.mall.admin.application.vo.datadict.DataDictEnumVO.Value; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-31T18:11:48+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class DataDictConvertImpl implements DataDictConvert { - - @Override - public List convert2(List dataDictBOs) { - if ( dataDictBOs == null ) { - return null; - } - - List list = new ArrayList( dataDictBOs.size() ); - for ( DataDictBO dataDictBO : dataDictBOs ) { - list.add( dataDictBOToValue( dataDictBO ) ); - } - - return list; - } - - protected Value dataDictBOToValue(DataDictBO dataDictBO) { - if ( dataDictBO == null ) { - return null; - } - - Value value = new Value(); - - value.setValue( dataDictBO.getValue() ); - value.setDisplayName( dataDictBO.getDisplayName() ); - - return value; - } -} diff --git a/system/system-application/target/generated-sources/annotations/cn/iocoder/mall/admin/application/convert/PassportConvertImpl.java b/system/system-application/target/generated-sources/annotations/cn/iocoder/mall/admin/application/convert/PassportConvertImpl.java deleted file mode 100644 index fb1916422..000000000 --- a/system/system-application/target/generated-sources/annotations/cn/iocoder/mall/admin/application/convert/PassportConvertImpl.java +++ /dev/null @@ -1,44 +0,0 @@ -package cn.iocoder.mall.admin.application.convert; - -import cn.iocoder.common.framework.vo.CommonResult; -import cn.iocoder.mall.admin.api.bo.oauth2.OAuth2AccessTokenBO; -import cn.iocoder.mall.admin.application.vo.PassportLoginVO; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-31T18:11:49+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class PassportConvertImpl implements PassportConvert { - - @Override - public PassportLoginVO convert(OAuth2AccessTokenBO oauth2AccessTokenBO) { - if ( oauth2AccessTokenBO == null ) { - return null; - } - - PassportLoginVO passportLoginVO = new PassportLoginVO(); - - passportLoginVO.setAccessToken( oauth2AccessTokenBO.getAccessToken() ); - passportLoginVO.setRefreshToken( oauth2AccessTokenBO.getRefreshToken() ); - passportLoginVO.setExpiresIn( oauth2AccessTokenBO.getExpiresIn() ); - - return passportLoginVO; - } - - @Override - public CommonResult convert(CommonResult oauth2AccessTokenBO) { - if ( oauth2AccessTokenBO == null ) { - return null; - } - - CommonResult commonResult = new CommonResult(); - - commonResult.setCode( oauth2AccessTokenBO.getCode() ); - commonResult.setMessage( oauth2AccessTokenBO.getMessage() ); - commonResult.setData( convert( oauth2AccessTokenBO.getData() ) ); - - return commonResult; - } -} diff --git a/system/system-application/target/generated-sources/annotations/cn/iocoder/mall/admin/application/convert/ResourceConvertImpl.java b/system/system-application/target/generated-sources/annotations/cn/iocoder/mall/admin/application/convert/ResourceConvertImpl.java deleted file mode 100644 index 795d152b7..000000000 --- a/system/system-application/target/generated-sources/annotations/cn/iocoder/mall/admin/application/convert/ResourceConvertImpl.java +++ /dev/null @@ -1,111 +0,0 @@ -package cn.iocoder.mall.admin.application.convert; - -import cn.iocoder.common.framework.vo.CommonResult; -import cn.iocoder.mall.admin.api.bo.resource.ResourceBO; -import cn.iocoder.mall.admin.application.vo.admin.AdminMenuTreeNodeVO; -import cn.iocoder.mall.admin.application.vo.resource.ResourceTreeNodeVO; -import cn.iocoder.mall.admin.application.vo.resource.ResourceVO; -import cn.iocoder.mall.admin.application.vo.role.RoleResourceTreeNodeVO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-31T18:11:49+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class ResourceConvertImpl implements ResourceConvert { - - @Override - public AdminMenuTreeNodeVO convert(ResourceBO resourceBO) { - if ( resourceBO == null ) { - return null; - } - - AdminMenuTreeNodeVO adminMenuTreeNodeVO = new AdminMenuTreeNodeVO(); - - adminMenuTreeNodeVO.setId( resourceBO.getId() ); - adminMenuTreeNodeVO.setHandler( resourceBO.getHandler() ); - adminMenuTreeNodeVO.setPid( resourceBO.getPid() ); - adminMenuTreeNodeVO.setSort( resourceBO.getSort() ); - adminMenuTreeNodeVO.setDisplayName( resourceBO.getDisplayName() ); - - return adminMenuTreeNodeVO; - } - - @Override - public ResourceTreeNodeVO convert2(ResourceBO resourceBO) { - if ( resourceBO == null ) { - return null; - } - - ResourceTreeNodeVO resourceTreeNodeVO = new ResourceTreeNodeVO(); - - resourceTreeNodeVO.setId( resourceBO.getId() ); - resourceTreeNodeVO.setType( resourceBO.getType() ); - resourceTreeNodeVO.setSort( resourceBO.getSort() ); - resourceTreeNodeVO.setDisplayName( resourceBO.getDisplayName() ); - resourceTreeNodeVO.setPid( resourceBO.getPid() ); - resourceTreeNodeVO.setHandler( resourceBO.getHandler() ); - resourceTreeNodeVO.setIcon( resourceBO.getIcon() ); - List list = resourceBO.getPermissions(); - if ( list != null ) { - resourceTreeNodeVO.setPermissions( new ArrayList( list ) ); - } - resourceTreeNodeVO.setCreateTime( resourceBO.getCreateTime() ); - - return resourceTreeNodeVO; - } - - @Override - public RoleResourceTreeNodeVO convert4(ResourceBO resourceBO) { - if ( resourceBO == null ) { - return null; - } - - RoleResourceTreeNodeVO roleResourceTreeNodeVO = new RoleResourceTreeNodeVO(); - - roleResourceTreeNodeVO.setId( resourceBO.getId() ); - roleResourceTreeNodeVO.setHandler( resourceBO.getHandler() ); - roleResourceTreeNodeVO.setPid( resourceBO.getPid() ); - roleResourceTreeNodeVO.setSort( resourceBO.getSort() ); - roleResourceTreeNodeVO.setDisplayName( resourceBO.getDisplayName() ); - - return roleResourceTreeNodeVO; - } - - @Override - public ResourceVO convert3(ResourceBO resourceBO) { - if ( resourceBO == null ) { - return null; - } - - ResourceVO resourceVO = new ResourceVO(); - - resourceVO.setId( resourceBO.getId() ); - resourceVO.setType( resourceBO.getType() ); - resourceVO.setSort( resourceBO.getSort() ); - resourceVO.setDisplayName( resourceBO.getDisplayName() ); - resourceVO.setCreateTime( resourceBO.getCreateTime() ); - resourceVO.setPid( resourceBO.getPid() ); - resourceVO.setHandler( resourceBO.getHandler() ); - - return resourceVO; - } - - @Override - public CommonResult convert3(CommonResult resourceBO) { - if ( resourceBO == null ) { - return null; - } - - CommonResult commonResult = new CommonResult(); - - commonResult.setCode( resourceBO.getCode() ); - commonResult.setMessage( resourceBO.getMessage() ); - commonResult.setData( convert3( resourceBO.getData() ) ); - - return commonResult; - } -} diff --git a/system/system-application/target/generated-sources/annotations/cn/iocoder/mall/admin/application/convert/RoleConvertImpl.java b/system/system-application/target/generated-sources/annotations/cn/iocoder/mall/admin/application/convert/RoleConvertImpl.java deleted file mode 100644 index 28b169b87..000000000 --- a/system/system-application/target/generated-sources/annotations/cn/iocoder/mall/admin/application/convert/RoleConvertImpl.java +++ /dev/null @@ -1,11 +0,0 @@ -package cn.iocoder.mall.admin.application.convert; - -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-31T18:11:49+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class RoleConvertImpl implements RoleConvert { -} diff --git a/system/system-service-impl/target/classes/config/application-test.yaml b/system/system-service-impl/target/classes/config/application-test.yaml deleted file mode 100644 index 04e958187..000000000 --- a/system/system-service-impl/target/classes/config/application-test.yaml +++ /dev/null @@ -1,7 +0,0 @@ -spring: - # datasource - datasource: - url: jdbc:mysql://192.168.88.14:3306/mall_admin?useSSL=false&useUnicode=true&characterEncoding=UTF-8 - driver-class-name: com.mysql.jdbc.Driver - username: root - password: ${MALL_MYSQL_PASSWORD} diff --git a/system/system-service-impl/target/classes/config/application.properties b/system/system-service-impl/target/classes/config/application.properties deleted file mode 100644 index 2196c16be..000000000 --- a/system/system-service-impl/target/classes/config/application.properties +++ /dev/null @@ -1,4 +0,0 @@ -##################### 业务模块 ##################### -## OAuth2CodeService -modules.oauth2-code-service.access-token-expire-time-millis = 2880000 -modules.oauth2-code-service.refresh-token-expire-time-millis = 43200000 \ No newline at end of file diff --git a/system/system-service-impl/target/classes/config/application.yaml b/system/system-service-impl/target/classes/config/application.yaml deleted file mode 100644 index 6236180c3..000000000 --- a/system/system-service-impl/target/classes/config/application.yaml +++ /dev/null @@ -1,67 +0,0 @@ -spring: - # datasource - datasource: - url: jdbc:mysql://180.167.213.26:13306/mall_admin?useSSL=false&useUnicode=true&characterEncoding=UTF-8 - driver-class-name: com.mysql.jdbc.Driver - username: root - password: ${MALL_MYSQL_PASSWORD} - -# mybatis -#mybatis: -# config-location: classpath:mybatis-config.xml -# mapper-locations: classpath:mapper/*.xml -# type-aliases-package: cn.iocoder.mall.admin.dataobject - -# mybatis-plus -mybatis-plus: - configuration: - map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。 - global-config: - db-config: - id-type: auto - logic-delete-value: 1 # 逻辑已删除值(默认为 1) - logic-not-delete-value: 0 # 逻辑未删除值(默认为 0) - mapper-locations: classpath*:mapper/*.xml - type-aliases-package: cn.iocoder.mall.admin.dataobject - -# sms -sms: - yunPian: - apiKey: - aliYun: - accessKeyId: - accessSecret: - -# dubbo -dubbo: - application: - name: admin-service - registry: - address: zookeeper://127.0.0.1:2181 - protocol: - port: -1 - name: dubbo - scan: - base-packages: cn.iocoder.mall.admin.service - provider: - filter: -exception - AdminAccessLogService: - version: 1.0.0 - AdminService: - version: 1.0.0 - DataDictService: - version: 1.0.0 - OAuth2Service: - version: 1.0.0 - ResourceService: - version: 1.0.0 - RoleService: - version: 1.0.0 - SmsService: - version: 1.0.0 - -# logging -logging: - level: - # dao 开启 debug 模式 mybatis 输入 sql - cn.iocoder.mall.admin.dao: debug diff --git a/system/system-service-impl/target/classes/mapper/AdminRoleMapper.xml b/system/system-service-impl/target/classes/mapper/AdminRoleMapper.xml deleted file mode 100644 index c734f858b..000000000 --- a/system/system-service-impl/target/classes/mapper/AdminRoleMapper.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - INSERT INTO admin_role ( - admin_id, role_id, create_time, deleted - ) VALUES - - (#{adminRole.adminId}, #{adminRole.roleId}, #{adminRole.createTime}, #{adminRole.deleted}) - - - - diff --git a/system/system-service-impl/target/classes/mapper/DataDictMapper.xml b/system/system-service-impl/target/classes/mapper/DataDictMapper.xml deleted file mode 100644 index 546d268c2..000000000 --- a/system/system-service-impl/target/classes/mapper/DataDictMapper.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - id, enum_value, value, display_name, sort, - memo, create_time - - - - - - - - - diff --git a/system/system-service-impl/target/classes/mapper/ResourceMapper.xml b/system/system-service-impl/target/classes/mapper/ResourceMapper.xml deleted file mode 100644 index 11770d79e..000000000 --- a/system/system-service-impl/target/classes/mapper/ResourceMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - id, type, sort, display_name, icon, permissions, - create_time, pid, handler - - - - - diff --git a/system/system-service-impl/target/classes/mapper/RoleResourceMapper.xml b/system/system-service-impl/target/classes/mapper/RoleResourceMapper.xml deleted file mode 100644 index 88edd5739..000000000 --- a/system/system-service-impl/target/classes/mapper/RoleResourceMapper.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - INSERT INTO role_resource ( - resource_id, role_id, create_time, deleted - ) VALUES - - (#{roleResource.resourceId}, #{roleResource.roleId}, #{roleResource.createTime}, #{roleResource.deleted}) - - - - diff --git a/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/AccessLogConvertImpl.java b/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/AccessLogConvertImpl.java deleted file mode 100644 index 77f3d46f8..000000000 --- a/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/AccessLogConvertImpl.java +++ /dev/null @@ -1,70 +0,0 @@ -package cn.iocoder.mall.admin.convert; - -import cn.iocoder.mall.admin.api.dto.systemlog.AccessLogAddDTO; -import cn.iocoder.mall.admin.api.dto.systemlog.ExceptionLogAddDTO; -import cn.iocoder.mall.admin.dataobject.AccessLogDO; -import cn.iocoder.mall.admin.dataobject.ExceptionLogDO; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-31T18:10:14+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class AccessLogConvertImpl implements AccessLogConvert { - - @Override - public AccessLogDO convert(AccessLogAddDTO accessLogAddDTO) { - if ( accessLogAddDTO == null ) { - return null; - } - - AccessLogDO accessLogDO = new AccessLogDO(); - - accessLogDO.setTraceId( accessLogAddDTO.getTraceId() ); - accessLogDO.setUserId( accessLogAddDTO.getUserId() ); - accessLogDO.setUserType( accessLogAddDTO.getUserType() ); - accessLogDO.setApplicationName( accessLogAddDTO.getApplicationName() ); - accessLogDO.setUri( accessLogAddDTO.getUri() ); - accessLogDO.setQueryString( accessLogAddDTO.getQueryString() ); - accessLogDO.setMethod( accessLogAddDTO.getMethod() ); - accessLogDO.setUserAgent( accessLogAddDTO.getUserAgent() ); - accessLogDO.setIp( accessLogAddDTO.getIp() ); - accessLogDO.setStartTime( accessLogAddDTO.getStartTime() ); - accessLogDO.setResponseTime( accessLogAddDTO.getResponseTime() ); - accessLogDO.setErrorCode( accessLogAddDTO.getErrorCode() ); - accessLogDO.setErrorMessage( accessLogAddDTO.getErrorMessage() ); - - return accessLogDO; - } - - @Override - public ExceptionLogDO convert(ExceptionLogAddDTO exceptionLogAddDTO) { - if ( exceptionLogAddDTO == null ) { - return null; - } - - ExceptionLogDO exceptionLogDO = new ExceptionLogDO(); - - exceptionLogDO.setTraceId( exceptionLogAddDTO.getTraceId() ); - exceptionLogDO.setUserId( exceptionLogAddDTO.getUserId() ); - exceptionLogDO.setUserType( exceptionLogAddDTO.getUserType() ); - exceptionLogDO.setApplicationName( exceptionLogAddDTO.getApplicationName() ); - exceptionLogDO.setUri( exceptionLogAddDTO.getUri() ); - exceptionLogDO.setQueryString( exceptionLogAddDTO.getQueryString() ); - exceptionLogDO.setMethod( exceptionLogAddDTO.getMethod() ); - exceptionLogDO.setUserAgent( exceptionLogAddDTO.getUserAgent() ); - exceptionLogDO.setIp( exceptionLogAddDTO.getIp() ); - exceptionLogDO.setExceptionTime( exceptionLogAddDTO.getExceptionTime() ); - exceptionLogDO.setExceptionName( exceptionLogAddDTO.getExceptionName() ); - exceptionLogDO.setExceptionMessage( exceptionLogAddDTO.getExceptionMessage() ); - exceptionLogDO.setExceptionRootCauseMessage( exceptionLogAddDTO.getExceptionRootCauseMessage() ); - exceptionLogDO.setExceptionStackTrace( exceptionLogAddDTO.getExceptionStackTrace() ); - exceptionLogDO.setExceptionClassName( exceptionLogAddDTO.getExceptionClassName() ); - exceptionLogDO.setExceptionFileName( exceptionLogAddDTO.getExceptionFileName() ); - exceptionLogDO.setExceptionMethodName( exceptionLogAddDTO.getExceptionMethodName() ); - exceptionLogDO.setExceptionLineNumber( exceptionLogAddDTO.getExceptionLineNumber() ); - - return exceptionLogDO; - } -} diff --git a/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/AdminConvertImpl.java b/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/AdminConvertImpl.java deleted file mode 100644 index be99a8aa2..000000000 --- a/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/AdminConvertImpl.java +++ /dev/null @@ -1,110 +0,0 @@ -package cn.iocoder.mall.admin.convert; - -import cn.iocoder.common.framework.vo.PageResult; -import cn.iocoder.mall.admin.api.bo.admin.AdminAuthenticationBO; -import cn.iocoder.mall.admin.api.bo.admin.AdminBO; -import cn.iocoder.mall.admin.api.dto.admin.AdminAddDTO; -import cn.iocoder.mall.admin.api.dto.admin.AdminUpdateDTO; -import cn.iocoder.mall.admin.dataobject.AdminDO; -import com.baomidou.mybatisplus.core.metadata.IPage; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-31T18:10:13+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class AdminConvertImpl implements AdminConvert { - - @Override - public AdminBO convert(AdminDO adminDO) { - if ( adminDO == null ) { - return null; - } - - AdminBO adminBO = new AdminBO(); - - adminBO.setId( adminDO.getId() ); - adminBO.setUsername( adminDO.getUsername() ); - adminBO.setNickname( adminDO.getNickname() ); - adminBO.setStatus( adminDO.getStatus() ); - adminBO.setCreateTime( adminDO.getCreateTime() ); - - return adminBO; - } - - @Override - public AdminAuthenticationBO convert2(AdminDO admin) { - if ( admin == null ) { - return null; - } - - AdminAuthenticationBO adminAuthenticationBO = new AdminAuthenticationBO(); - - adminAuthenticationBO.setId( admin.getId() ); - adminAuthenticationBO.setNickname( admin.getNickname() ); - - return adminAuthenticationBO; - } - - @Override - public AdminDO convert(AdminAddDTO adminAddDTO) { - if ( adminAddDTO == null ) { - return null; - } - - AdminDO adminDO = new AdminDO(); - - adminDO.setUsername( adminAddDTO.getUsername() ); - adminDO.setNickname( adminAddDTO.getNickname() ); - adminDO.setPassword( adminAddDTO.getPassword() ); - - return adminDO; - } - - @Override - public AdminDO convert(AdminUpdateDTO adminUpdateDTO) { - if ( adminUpdateDTO == null ) { - return null; - } - - AdminDO adminDO = new AdminDO(); - - adminDO.setId( adminUpdateDTO.getId() ); - adminDO.setUsername( adminUpdateDTO.getUsername() ); - adminDO.setNickname( adminUpdateDTO.getNickname() ); - adminDO.setPassword( adminUpdateDTO.getPassword() ); - - return adminDO; - } - - @Override - public List convert(List adminBOs) { - if ( adminBOs == null ) { - return null; - } - - List list = new ArrayList( adminBOs.size() ); - for ( AdminDO adminDO : adminBOs ) { - list.add( convert( adminDO ) ); - } - - return list; - } - - @Override - public PageResult convert(IPage page) { - if ( page == null ) { - return null; - } - - PageResult pageResult = new PageResult(); - - pageResult.setList( convert( page.getRecords() ) ); - pageResult.setTotal( (int) page.getTotal() ); - - return pageResult; - } -} diff --git a/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/DataDictConvertImpl.java b/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/DataDictConvertImpl.java deleted file mode 100644 index fcc0b8eca..000000000 --- a/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/DataDictConvertImpl.java +++ /dev/null @@ -1,85 +0,0 @@ -package cn.iocoder.mall.admin.convert; - -import cn.iocoder.mall.admin.api.bo.datadict.DataDictBO; -import cn.iocoder.mall.admin.api.dto.datadict.DataDictAddDTO; -import cn.iocoder.mall.admin.api.dto.datadict.DataDictUpdateDTO; -import cn.iocoder.mall.admin.dataobject.DataDictDO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-31T18:10:13+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class DataDictConvertImpl implements DataDictConvert { - - @Override - public DataDictDO convert(DataDictAddDTO dataDictAddDTO) { - if ( dataDictAddDTO == null ) { - return null; - } - - DataDictDO dataDictDO = new DataDictDO(); - - dataDictDO.setEnumValue( dataDictAddDTO.getEnumValue() ); - dataDictDO.setValue( dataDictAddDTO.getValue() ); - dataDictDO.setDisplayName( dataDictAddDTO.getDisplayName() ); - dataDictDO.setSort( dataDictAddDTO.getSort() ); - dataDictDO.setMemo( dataDictAddDTO.getMemo() ); - - return dataDictDO; - } - - @Override - public DataDictDO convert(DataDictUpdateDTO dataDictUpdateDTO) { - if ( dataDictUpdateDTO == null ) { - return null; - } - - DataDictDO dataDictDO = new DataDictDO(); - - dataDictDO.setId( dataDictUpdateDTO.getId() ); - dataDictDO.setEnumValue( dataDictUpdateDTO.getEnumValue() ); - dataDictDO.setValue( dataDictUpdateDTO.getValue() ); - dataDictDO.setDisplayName( dataDictUpdateDTO.getDisplayName() ); - dataDictDO.setSort( dataDictUpdateDTO.getSort() ); - dataDictDO.setMemo( dataDictUpdateDTO.getMemo() ); - - return dataDictDO; - } - - @Override - public DataDictBO convert(DataDictDO dataDictDO) { - if ( dataDictDO == null ) { - return null; - } - - DataDictBO dataDictBO = new DataDictBO(); - - dataDictBO.setId( dataDictDO.getId() ); - dataDictBO.setEnumValue( dataDictDO.getEnumValue() ); - dataDictBO.setValue( dataDictDO.getValue() ); - dataDictBO.setDisplayName( dataDictDO.getDisplayName() ); - dataDictBO.setSort( dataDictDO.getSort() ); - dataDictBO.setMemo( dataDictDO.getMemo() ); - dataDictBO.setCreateTime( dataDictDO.getCreateTime() ); - - return dataDictBO; - } - - @Override - public List convert(List dataDictDOs) { - if ( dataDictDOs == null ) { - return null; - } - - List list = new ArrayList( dataDictDOs.size() ); - for ( DataDictDO dataDictDO : dataDictDOs ) { - list.add( convert( dataDictDO ) ); - } - - return list; - } -} diff --git a/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/OAuth2ConvertImpl.java b/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/OAuth2ConvertImpl.java deleted file mode 100644 index 3c9049ff0..000000000 --- a/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/OAuth2ConvertImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -package cn.iocoder.mall.admin.convert; - -import cn.iocoder.mall.admin.api.bo.oauth2.OAuth2AccessTokenBO; -import cn.iocoder.mall.admin.api.bo.oauth2.OAuth2AuthenticationBO; -import cn.iocoder.mall.admin.dataobject.OAuth2AccessTokenDO; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-31T18:10:14+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class OAuth2ConvertImpl implements OAuth2Convert { - - @Override - public OAuth2AccessTokenBO convertToAccessToken(OAuth2AccessTokenDO oauth2AccessTokenDO) { - if ( oauth2AccessTokenDO == null ) { - return null; - } - - OAuth2AccessTokenBO oAuth2AccessTokenBO = new OAuth2AccessTokenBO(); - - oAuth2AccessTokenBO.setAccessToken( oauth2AccessTokenDO.getId() ); - oAuth2AccessTokenBO.setRefreshToken( oauth2AccessTokenDO.getRefreshToken() ); - - return oAuth2AccessTokenBO; - } - - @Override - public OAuth2AuthenticationBO convertToAuthentication(OAuth2AccessTokenDO oauth2AccessTokenDO) { - if ( oauth2AccessTokenDO == null ) { - return null; - } - - OAuth2AuthenticationBO oAuth2AuthenticationBO = new OAuth2AuthenticationBO(); - - oAuth2AuthenticationBO.setUserId( oauth2AccessTokenDO.getUserId() ); - oAuth2AuthenticationBO.setUserType( oauth2AccessTokenDO.getUserType() ); - - return oAuth2AuthenticationBO; - } -} diff --git a/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/ResourceConvertImpl.java b/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/ResourceConvertImpl.java deleted file mode 100644 index a135e5d09..000000000 --- a/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/ResourceConvertImpl.java +++ /dev/null @@ -1,91 +0,0 @@ -package cn.iocoder.mall.admin.convert; - -import cn.iocoder.mall.admin.api.bo.resource.ResourceBO; -import cn.iocoder.mall.admin.api.dto.resource.ResourceAddDTO; -import cn.iocoder.mall.admin.api.dto.resource.ResourceUpdateDTO; -import cn.iocoder.mall.admin.dataobject.ResourceDO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-31T18:10:13+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class ResourceConvertImpl implements ResourceConvert { - - @Override - public ResourceBO convert(ResourceDO resourceDO) { - if ( resourceDO == null ) { - return null; - } - - ResourceBO resourceBO = new ResourceBO(); - - resourceBO.setPermissions( translateListFromString( resourceDO.getPermissions() ) ); - resourceBO.setId( resourceDO.getId() ); - resourceBO.setType( resourceDO.getType() ); - resourceBO.setSort( resourceDO.getSort() ); - resourceBO.setDisplayName( resourceDO.getDisplayName() ); - resourceBO.setPid( resourceDO.getPid() ); - resourceBO.setHandler( resourceDO.getHandler() ); - resourceBO.setIcon( resourceDO.getIcon() ); - resourceBO.setCreateTime( resourceDO.getCreateTime() ); - - return resourceBO; - } - - @Override - public List convert(List resourceDOs) { - if ( resourceDOs == null ) { - return null; - } - - List list = new ArrayList( resourceDOs.size() ); - for ( ResourceDO resourceDO : resourceDOs ) { - list.add( convert( resourceDO ) ); - } - - return list; - } - - @Override - public ResourceDO convert(ResourceAddDTO resourceAddDTO) { - if ( resourceAddDTO == null ) { - return null; - } - - ResourceDO resourceDO = new ResourceDO(); - - resourceDO.setPermissions( translateStringFromList( resourceAddDTO.getPermissions() ) ); - resourceDO.setType( resourceAddDTO.getType() ); - resourceDO.setSort( resourceAddDTO.getSort() ); - resourceDO.setDisplayName( resourceAddDTO.getDisplayName() ); - resourceDO.setPid( resourceAddDTO.getPid() ); - resourceDO.setHandler( resourceAddDTO.getHandler() ); - resourceDO.setIcon( resourceAddDTO.getIcon() ); - - return resourceDO; - } - - @Override - public ResourceDO convert(ResourceUpdateDTO resourceUpdateDTO) { - if ( resourceUpdateDTO == null ) { - return null; - } - - ResourceDO resourceDO = new ResourceDO(); - - resourceDO.setPermissions( translateStringFromList( resourceUpdateDTO.getPermissions() ) ); - resourceDO.setId( resourceUpdateDTO.getId() ); - resourceDO.setType( resourceUpdateDTO.getType() ); - resourceDO.setSort( resourceUpdateDTO.getSort() ); - resourceDO.setDisplayName( resourceUpdateDTO.getDisplayName() ); - resourceDO.setPid( resourceUpdateDTO.getPid() ); - resourceDO.setHandler( resourceUpdateDTO.getHandler() ); - resourceDO.setIcon( resourceUpdateDTO.getIcon() ); - - return resourceDO; - } -} diff --git a/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/RoleConvertImpl.java b/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/RoleConvertImpl.java deleted file mode 100644 index e25ecff70..000000000 --- a/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/RoleConvertImpl.java +++ /dev/null @@ -1,89 +0,0 @@ -package cn.iocoder.mall.admin.convert; - -import cn.iocoder.common.framework.vo.PageResult; -import cn.iocoder.mall.admin.api.bo.role.RoleBO; -import cn.iocoder.mall.admin.api.dto.role.RoleAddDTO; -import cn.iocoder.mall.admin.api.dto.role.RoleUpdateDTO; -import cn.iocoder.mall.admin.dataobject.RoleDO; -import com.baomidou.mybatisplus.core.metadata.IPage; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-31T18:10:13+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class RoleConvertImpl implements RoleConvert { - - @Override - public RoleDO convert(RoleAddDTO roleAddDTO) { - if ( roleAddDTO == null ) { - return null; - } - - RoleDO roleDO = new RoleDO(); - - roleDO.setName( roleAddDTO.getName() ); - - return roleDO; - } - - @Override - public RoleDO convert(RoleUpdateDTO roleUpdateDTO) { - if ( roleUpdateDTO == null ) { - return null; - } - - RoleDO roleDO = new RoleDO(); - - roleDO.setId( roleUpdateDTO.getId() ); - roleDO.setName( roleUpdateDTO.getName() ); - - return roleDO; - } - - @Override - public RoleBO convert(RoleDO roleDO) { - if ( roleDO == null ) { - return null; - } - - RoleBO roleBO = new RoleBO(); - - roleBO.setId( roleDO.getId() ); - roleBO.setName( roleDO.getName() ); - roleBO.setCreateTime( roleDO.getCreateTime() ); - - return roleBO; - } - - @Override - public List convert(List roleDOs) { - if ( roleDOs == null ) { - return null; - } - - List list = new ArrayList( roleDOs.size() ); - for ( RoleDO roleDO : roleDOs ) { - list.add( convert( roleDO ) ); - } - - return list; - } - - @Override - public PageResult convert(IPage page) { - if ( page == null ) { - return null; - } - - PageResult pageResult = new PageResult(); - - pageResult.setList( convert( page.getRecords() ) ); - pageResult.setTotal( (int) page.getTotal() ); - - return pageResult; - } -} diff --git a/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/SmsSignConvertImpl.java b/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/SmsSignConvertImpl.java deleted file mode 100644 index bbfe49ca0..000000000 --- a/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/SmsSignConvertImpl.java +++ /dev/null @@ -1,64 +0,0 @@ -package cn.iocoder.mall.admin.convert; - -import cn.iocoder.mall.admin.api.bo.sms.PageSmsSignBO.Sign; -import cn.iocoder.mall.admin.api.bo.sms.SmsSignBO; -import cn.iocoder.mall.admin.dataobject.SmsSignDO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-31T18:10:13+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class SmsSignConvertImpl implements SmsSignConvert { - - @Override - public SmsSignBO convert(SmsSignDO smsSignDO) { - if ( smsSignDO == null ) { - return null; - } - - SmsSignBO smsSignBO = new SmsSignBO(); - - smsSignBO.setId( smsSignDO.getId() ); - smsSignBO.setSign( smsSignDO.getSign() ); - smsSignBO.setApplyStatus( smsSignDO.getApplyStatus() ); - smsSignBO.setApplyMessage( smsSignDO.getApplyMessage() ); - - return smsSignBO; - } - - @Override - public List convert(List smsSignDOList) { - if ( smsSignDOList == null ) { - return null; - } - - List list = new ArrayList( smsSignDOList.size() ); - for ( SmsSignDO smsSignDO : smsSignDOList ) { - list.add( smsSignDOToSign( smsSignDO ) ); - } - - return list; - } - - protected Sign smsSignDOToSign(SmsSignDO smsSignDO) { - if ( smsSignDO == null ) { - return null; - } - - Sign sign = new Sign(); - - sign.setId( smsSignDO.getId() ); - sign.setPlatform( smsSignDO.getPlatform() ); - sign.setSign( smsSignDO.getSign() ); - sign.setApplyStatus( smsSignDO.getApplyStatus() ); - sign.setApplyMessage( smsSignDO.getApplyMessage() ); - sign.setUpdateTime( smsSignDO.getUpdateTime() ); - sign.setCreateTime( smsSignDO.getCreateTime() ); - - return sign; - } -} diff --git a/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/SmsTemplateConvertImpl.java b/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/SmsTemplateConvertImpl.java deleted file mode 100644 index 6b1e39fe2..000000000 --- a/system/system-service-impl/target/generated-sources/annotations/cn/iocoder/mall/admin/convert/SmsTemplateConvertImpl.java +++ /dev/null @@ -1,101 +0,0 @@ -package cn.iocoder.mall.admin.convert; - -import cn.iocoder.mall.admin.api.bo.sms.PageSmsTemplateBO.Sign; -import cn.iocoder.mall.admin.api.bo.sms.PageSmsTemplateBO.Template; -import cn.iocoder.mall.admin.api.bo.sms.SmsTemplateBO; -import cn.iocoder.mall.admin.dataobject.SmsSignDO; -import cn.iocoder.mall.admin.dataobject.SmsTemplateDO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-31T18:10:13+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class SmsTemplateConvertImpl implements SmsTemplateConvert { - - @Override - public SmsTemplateBO convert(SmsTemplateDO smsTemplateDO) { - if ( smsTemplateDO == null ) { - return null; - } - - SmsTemplateBO smsTemplateBO = new SmsTemplateBO(); - - smsTemplateBO.setId( smsTemplateDO.getId() ); - smsTemplateBO.setSmsSignId( smsTemplateDO.getSmsSignId() ); - smsTemplateBO.setTemplate( smsTemplateDO.getTemplate() ); - smsTemplateBO.setApplyStatus( smsTemplateDO.getApplyStatus() ); - smsTemplateBO.setApplyMessage( smsTemplateDO.getApplyMessage() ); - - return smsTemplateBO; - } - - @Override - public List