diff --git a/order/order-application/target/classes/application-test.yaml b/order/order-application/target/classes/application-test.yaml deleted file mode 100644 index ff9f80fd8..000000000 --- a/order/order-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/order/order-application/target/classes/application.yaml b/order/order-application/target/classes/application.yaml deleted file mode 100644 index f8614c729..000000000 --- a/order/order-application/target/classes/application.yaml +++ /dev/null @@ -1,28 +0,0 @@ -spring: - application: - name: order-application - cloud: - sentinel: - transport: - port: 8719 - dashboard: localhost:12088 - metric: - charset: UTF-8 - eager: false - -# server -server: - port: 18088 - servlet: - context-path: /order-api/ - -swagger: - enable: false - -management: - endpoints: - web: - exposure: - include: health,info,env,metrics,prometheus - metrics: - enabled: true diff --git a/order/order-application/target/generated-sources/annotations/cn/iocoder/mall/order/application/convert/CartConvertImpl.java b/order/order-application/target/generated-sources/annotations/cn/iocoder/mall/order/application/convert/CartConvertImpl.java deleted file mode 100644 index c19707569..000000000 --- a/order/order-application/target/generated-sources/annotations/cn/iocoder/mall/order/application/convert/CartConvertImpl.java +++ /dev/null @@ -1,270 +0,0 @@ -package cn.iocoder.mall.order.application.convert; - -import cn.iocoder.mall.order.api.bo.CalcOrderPriceBO; -import cn.iocoder.mall.order.api.bo.CalcOrderPriceBO.Item; -import cn.iocoder.mall.order.api.bo.CalcOrderPriceBO.ItemGroup; -import cn.iocoder.mall.order.api.bo.CalcSkuPriceBO; -import cn.iocoder.mall.order.application.vo.UsersCalcSkuPriceVO; -import cn.iocoder.mall.order.application.vo.UsersCartDetailVO; -import cn.iocoder.mall.order.application.vo.UsersOrderConfirmCreateVO; -import cn.iocoder.mall.order.application.vo.UsersOrderConfirmCreateVO.Fee; -import cn.iocoder.mall.order.application.vo.UsersOrderConfirmCreateVO.Sku; -import cn.iocoder.mall.order.application.vo.UsersOrderConfirmCreateVO.Spu; -import cn.iocoder.mall.product.api.bo.ProductAttrAndValuePairBO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:47:18+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class CartConvertImpl implements CartConvert { - - @Override - public UsersOrderConfirmCreateVO convert(CalcOrderPriceBO calcOrderPriceBO) { - if ( calcOrderPriceBO == null ) { - return null; - } - - UsersOrderConfirmCreateVO usersOrderConfirmCreateVO = new UsersOrderConfirmCreateVO(); - - usersOrderConfirmCreateVO.setItemGroups( itemGroupListToItemGroupList( calcOrderPriceBO.getItemGroups() ) ); - usersOrderConfirmCreateVO.setFee( feeToFee( calcOrderPriceBO.getFee() ) ); - usersOrderConfirmCreateVO.setCouponCardDiscountTotal( calcOrderPriceBO.getCouponCardDiscountTotal() ); - - return usersOrderConfirmCreateVO; - } - - @Override - public UsersCartDetailVO convert2(CalcOrderPriceBO calcOrderPriceBO) { - if ( calcOrderPriceBO == null ) { - return null; - } - - UsersCartDetailVO usersCartDetailVO = new UsersCartDetailVO(); - - usersCartDetailVO.setItemGroups( itemGroupListToItemGroupList1( calcOrderPriceBO.getItemGroups() ) ); - usersCartDetailVO.setFee( feeToFee1( calcOrderPriceBO.getFee() ) ); - - return usersCartDetailVO; - } - - @Override - public UsersCalcSkuPriceVO convert2(CalcSkuPriceBO calcSkuPriceBO) { - if ( calcSkuPriceBO == null ) { - return null; - } - - UsersCalcSkuPriceVO usersCalcSkuPriceVO = new UsersCalcSkuPriceVO(); - - usersCalcSkuPriceVO.setFullPrivilege( calcSkuPriceBO.getFullPrivilege() ); - usersCalcSkuPriceVO.setTimeLimitedDiscount( calcSkuPriceBO.getTimeLimitedDiscount() ); - usersCalcSkuPriceVO.setOriginalPrice( calcSkuPriceBO.getOriginalPrice() ); - usersCalcSkuPriceVO.setBuyPrice( calcSkuPriceBO.getBuyPrice() ); - - return usersCalcSkuPriceVO; - } - - protected Spu spuToSpu(cn.iocoder.mall.product.api.bo.ProductSkuDetailBO.Spu spu) { - if ( spu == null ) { - return null; - } - - Spu spu1 = new Spu(); - - spu1.setId( spu.getId() ); - spu1.setName( spu.getName() ); - spu1.setCid( spu.getCid() ); - List list = spu.getPicUrls(); - if ( list != null ) { - spu1.setPicUrls( new ArrayList( list ) ); - } - - return spu1; - } - - protected Sku itemToSku(Item item) { - if ( item == null ) { - return null; - } - - Sku sku = new Sku(); - - sku.setId( item.getId() ); - sku.setSpu( spuToSpu( item.getSpu() ) ); - sku.setPicURL( item.getPicURL() ); - List list = item.getAttrs(); - if ( list != null ) { - sku.setAttrs( new ArrayList( list ) ); - } - sku.setPrice( item.getPrice() ); - sku.setQuantity( item.getQuantity() ); - sku.setBuyQuantity( item.getBuyQuantity() ); - sku.setOriginPrice( item.getOriginPrice() ); - sku.setBuyPrice( item.getBuyPrice() ); - sku.setPresentPrice( item.getPresentPrice() ); - sku.setBuyTotal( item.getBuyTotal() ); - sku.setDiscountTotal( item.getDiscountTotal() ); - sku.setPresentTotal( item.getPresentTotal() ); - - return sku; - } - - protected List itemListToSkuList(List list) { - if ( list == null ) { - return null; - } - - List list1 = new ArrayList( list.size() ); - for ( Item item : list ) { - list1.add( itemToSku( item ) ); - } - - return list1; - } - - protected cn.iocoder.mall.order.application.vo.UsersOrderConfirmCreateVO.ItemGroup itemGroupToItemGroup(ItemGroup itemGroup) { - if ( itemGroup == null ) { - return null; - } - - cn.iocoder.mall.order.application.vo.UsersOrderConfirmCreateVO.ItemGroup itemGroup1 = new cn.iocoder.mall.order.application.vo.UsersOrderConfirmCreateVO.ItemGroup(); - - itemGroup1.setActivity( itemGroup.getActivity() ); - itemGroup1.setItems( itemListToSkuList( itemGroup.getItems() ) ); - - return itemGroup1; - } - - protected List itemGroupListToItemGroupList(List list) { - if ( list == null ) { - return null; - } - - List list1 = new ArrayList( list.size() ); - for ( ItemGroup itemGroup : list ) { - list1.add( itemGroupToItemGroup( itemGroup ) ); - } - - return list1; - } - - protected Fee feeToFee(cn.iocoder.mall.order.api.bo.CalcOrderPriceBO.Fee fee) { - if ( fee == null ) { - return null; - } - - Fee fee1 = new Fee(); - - fee1.setBuyTotal( fee.getBuyTotal() ); - fee1.setDiscountTotal( fee.getDiscountTotal() ); - fee1.setPostageTotal( fee.getPostageTotal() ); - fee1.setPresentTotal( fee.getPresentTotal() ); - - return fee1; - } - - protected cn.iocoder.mall.order.application.vo.UsersCartDetailVO.Spu spuToSpu1(cn.iocoder.mall.product.api.bo.ProductSkuDetailBO.Spu spu) { - if ( spu == null ) { - return null; - } - - cn.iocoder.mall.order.application.vo.UsersCartDetailVO.Spu spu1 = new cn.iocoder.mall.order.application.vo.UsersCartDetailVO.Spu(); - - spu1.setId( spu.getId() ); - spu1.setName( spu.getName() ); - spu1.setCid( spu.getCid() ); - List list = spu.getPicUrls(); - if ( list != null ) { - spu1.setPicUrls( new ArrayList( list ) ); - } - - return spu1; - } - - protected cn.iocoder.mall.order.application.vo.UsersCartDetailVO.Sku itemToSku1(Item item) { - if ( item == null ) { - return null; - } - - cn.iocoder.mall.order.application.vo.UsersCartDetailVO.Sku sku = new cn.iocoder.mall.order.application.vo.UsersCartDetailVO.Sku(); - - sku.setId( item.getId() ); - sku.setSpu( spuToSpu1( item.getSpu() ) ); - sku.setPicURL( item.getPicURL() ); - List list = item.getAttrs(); - if ( list != null ) { - sku.setAttrs( new ArrayList( list ) ); - } - sku.setPrice( item.getPrice() ); - sku.setQuantity( item.getQuantity() ); - sku.setBuyQuantity( item.getBuyQuantity() ); - sku.setSelected( item.getSelected() ); - sku.setActivity( item.getActivity() ); - sku.setOriginPrice( item.getOriginPrice() ); - sku.setBuyPrice( item.getBuyPrice() ); - sku.setPresentPrice( item.getPresentPrice() ); - sku.setBuyTotal( item.getBuyTotal() ); - sku.setDiscountTotal( item.getDiscountTotal() ); - sku.setPresentTotal( item.getPresentTotal() ); - - return sku; - } - - protected List itemListToSkuList1(List list) { - if ( list == null ) { - return null; - } - - List list1 = new ArrayList( list.size() ); - for ( Item item : list ) { - list1.add( itemToSku1( item ) ); - } - - return list1; - } - - protected cn.iocoder.mall.order.application.vo.UsersCartDetailVO.ItemGroup itemGroupToItemGroup1(ItemGroup itemGroup) { - if ( itemGroup == null ) { - return null; - } - - cn.iocoder.mall.order.application.vo.UsersCartDetailVO.ItemGroup itemGroup1 = new cn.iocoder.mall.order.application.vo.UsersCartDetailVO.ItemGroup(); - - itemGroup1.setActivity( itemGroup.getActivity() ); - itemGroup1.setActivityDiscountTotal( itemGroup.getActivityDiscountTotal() ); - itemGroup1.setItems( itemListToSkuList1( itemGroup.getItems() ) ); - - return itemGroup1; - } - - protected List itemGroupListToItemGroupList1(List list) { - if ( list == null ) { - return null; - } - - List list1 = new ArrayList( list.size() ); - for ( ItemGroup itemGroup : list ) { - list1.add( itemGroupToItemGroup1( itemGroup ) ); - } - - return list1; - } - - protected cn.iocoder.mall.order.application.vo.UsersCartDetailVO.Fee feeToFee1(cn.iocoder.mall.order.api.bo.CalcOrderPriceBO.Fee fee) { - if ( fee == null ) { - return null; - } - - cn.iocoder.mall.order.application.vo.UsersCartDetailVO.Fee fee1 = new cn.iocoder.mall.order.application.vo.UsersCartDetailVO.Fee(); - - fee1.setBuyTotal( fee.getBuyTotal() ); - fee1.setDiscountTotal( fee.getDiscountTotal() ); - fee1.setPostageTotal( fee.getPostageTotal() ); - fee1.setPresentTotal( fee.getPresentTotal() ); - - return fee1; - } -} diff --git a/order/order-application/target/generated-sources/annotations/cn/iocoder/mall/order/application/convert/OrderConvertAPPImpl.java b/order/order-application/target/generated-sources/annotations/cn/iocoder/mall/order/application/convert/OrderConvertAPPImpl.java deleted file mode 100644 index f073f8879..000000000 --- a/order/order-application/target/generated-sources/annotations/cn/iocoder/mall/order/application/convert/OrderConvertAPPImpl.java +++ /dev/null @@ -1,149 +0,0 @@ -package cn.iocoder.mall.order.application.convert; - -import cn.iocoder.mall.order.api.bo.CartItemBO; -import cn.iocoder.mall.order.api.dto.OrderCreateDTO; -import cn.iocoder.mall.order.api.dto.OrderCreateDTO.OrderItem; -import cn.iocoder.mall.order.api.dto.OrderItemUpdateDTO; -import cn.iocoder.mall.order.api.dto.OrderLogisticsUpdateDTO; -import cn.iocoder.mall.order.api.dto.OrderQueryDTO; -import cn.iocoder.mall.order.application.po.admin.OrderItemUpdatePO; -import cn.iocoder.mall.order.application.po.admin.OrderLogisticsPO; -import cn.iocoder.mall.order.application.po.admin.OrderPageQueryPO; -import cn.iocoder.mall.order.application.po.user.OrderCreatePO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:47:18+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class OrderConvertAPPImpl implements OrderConvertAPP { - - @Override - public OrderQueryDTO convert(OrderPageQueryPO orderPageQueryVO) { - if ( orderPageQueryVO == null ) { - return null; - } - - OrderQueryDTO orderQueryDTO = new OrderQueryDTO(); - - orderQueryDTO.setId( orderPageQueryVO.getId() ); - orderQueryDTO.setOrderNo( orderPageQueryVO.getOrderNo() ); - orderQueryDTO.setUserId( orderPageQueryVO.getUserId() ); - orderQueryDTO.setStartPaymentTime( orderPageQueryVO.getStartPaymentTime() ); - orderQueryDTO.setEndPaymentTime( orderPageQueryVO.getEndPaymentTime() ); - orderQueryDTO.setStartCreateTime( orderPageQueryVO.getStartCreateTime() ); - orderQueryDTO.setEndCreateTime( orderPageQueryVO.getEndCreateTime() ); - orderQueryDTO.setDeleted( orderPageQueryVO.getDeleted() ); - orderQueryDTO.setStatus( orderPageQueryVO.getStatus() ); - orderQueryDTO.setPageNo( orderPageQueryVO.getPageNo() ); - orderQueryDTO.setPageSize( orderPageQueryVO.getPageSize() ); - - return orderQueryDTO; - } - - @Override - public OrderLogisticsUpdateDTO convert(OrderLogisticsPO orderLogisticsVO) { - if ( orderLogisticsVO == null ) { - return null; - } - - OrderLogisticsUpdateDTO orderLogisticsUpdateDTO = new OrderLogisticsUpdateDTO(); - - orderLogisticsUpdateDTO.setId( orderLogisticsVO.getId() ); - orderLogisticsUpdateDTO.setAreaNo( orderLogisticsVO.getAreaNo() ); - orderLogisticsUpdateDTO.setName( orderLogisticsVO.getName() ); - orderLogisticsUpdateDTO.setMobile( orderLogisticsVO.getMobile() ); - orderLogisticsUpdateDTO.setAddress( orderLogisticsVO.getAddress() ); - orderLogisticsUpdateDTO.setLogisticsNo( orderLogisticsVO.getLogisticsNo() ); - - return orderLogisticsUpdateDTO; - } - - @Override - public OrderItemUpdateDTO convert(OrderItemUpdatePO orderItemUpdateVO) { - if ( orderItemUpdateVO == null ) { - return null; - } - - OrderItemUpdateDTO orderItemUpdateDTO = new OrderItemUpdateDTO(); - - orderItemUpdateDTO.setId( orderItemUpdateVO.getId() ); - orderItemUpdateDTO.setSkuId( orderItemUpdateVO.getSkuId() ); - orderItemUpdateDTO.setQuantity( orderItemUpdateVO.getQuantity() ); - orderItemUpdateDTO.setPrice( orderItemUpdateVO.getPrice() ); - - return orderItemUpdateDTO; - } - - @Override - public OrderCreateDTO convert(OrderCreatePO orderCreatePO) { - if ( orderCreatePO == null ) { - return null; - } - - OrderCreateDTO orderCreateDTO = new OrderCreateDTO(); - - orderCreateDTO.setUserAddressId( orderCreatePO.getUserAddressId() ); - orderCreateDTO.setCouponCardId( orderCreatePO.getCouponCardId() ); - orderCreateDTO.setRemark( orderCreatePO.getRemark() ); - orderCreateDTO.setOrderItems( orderItemListToOrderItemList( orderCreatePO.getOrderItems() ) ); - - return orderCreateDTO; - } - - @Override - public List convert(List cartItems) { - if ( cartItems == null ) { - return null; - } - - List list = new ArrayList( cartItems.size() ); - for ( CartItemBO cartItemBO : cartItems ) { - list.add( cartItemBOToOrderItem( cartItemBO ) ); - } - - return list; - } - - protected OrderItem orderItemToOrderItem(cn.iocoder.mall.order.application.po.user.OrderCreatePO.OrderItem orderItem) { - if ( orderItem == null ) { - return null; - } - - OrderItem orderItem1 = new OrderItem(); - - orderItem1.setSkuId( orderItem.getSkuId() ); - orderItem1.setQuantity( orderItem.getQuantity() ); - - return orderItem1; - } - - protected List orderItemListToOrderItemList(List list) { - if ( list == null ) { - return null; - } - - List list1 = new ArrayList( list.size() ); - for ( cn.iocoder.mall.order.application.po.user.OrderCreatePO.OrderItem orderItem : list ) { - list1.add( orderItemToOrderItem( orderItem ) ); - } - - return list1; - } - - protected OrderItem cartItemBOToOrderItem(CartItemBO cartItemBO) { - if ( cartItemBO == null ) { - return null; - } - - OrderItem orderItem = new OrderItem(); - - orderItem.setSkuId( cartItemBO.getSkuId() ); - orderItem.setQuantity( cartItemBO.getQuantity() ); - - return orderItem; - } -} diff --git a/order/order-application/target/generated-sources/annotations/cn/iocoder/mall/order/application/convert/OrderDeliveryConvertImpl.java b/order/order-application/target/generated-sources/annotations/cn/iocoder/mall/order/application/convert/OrderDeliveryConvertImpl.java deleted file mode 100644 index 5fc1fd1e5..000000000 --- a/order/order-application/target/generated-sources/annotations/cn/iocoder/mall/order/application/convert/OrderDeliveryConvertImpl.java +++ /dev/null @@ -1,34 +0,0 @@ -package cn.iocoder.mall.order.application.convert; - -import cn.iocoder.mall.order.api.dto.OrderDeliveryDTO; -import cn.iocoder.mall.order.application.po.admin.OrderDeliverPO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:47:18+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class OrderDeliveryConvertImpl implements OrderDeliveryConvert { - - @Override - public OrderDeliveryDTO convert(OrderDeliverPO orderDeliverPO) { - if ( orderDeliverPO == null ) { - return null; - } - - OrderDeliveryDTO orderDeliveryDTO = new OrderDeliveryDTO(); - - orderDeliveryDTO.setOrderId( orderDeliverPO.getOrderId() ); - orderDeliveryDTO.setLogistics( orderDeliverPO.getLogistics() ); - orderDeliveryDTO.setLogisticsNo( orderDeliverPO.getLogisticsNo() ); - List list = orderDeliverPO.getOrderItemIds(); - if ( list != null ) { - orderDeliveryDTO.setOrderItemIds( new ArrayList( list ) ); - } - - return orderDeliveryDTO; - } -} diff --git a/order/order-application/target/generated-sources/annotations/cn/iocoder/mall/order/application/convert/OrderReturnConvertImpl.java b/order/order-application/target/generated-sources/annotations/cn/iocoder/mall/order/application/convert/OrderReturnConvertImpl.java deleted file mode 100644 index 5b3d2788a..000000000 --- a/order/order-application/target/generated-sources/annotations/cn/iocoder/mall/order/application/convert/OrderReturnConvertImpl.java +++ /dev/null @@ -1,51 +0,0 @@ -package cn.iocoder.mall.order.application.convert; - -import cn.iocoder.mall.order.api.dto.OrderReturnApplyDTO; -import cn.iocoder.mall.order.api.dto.OrderReturnQueryDTO; -import cn.iocoder.mall.order.application.po.admin.OrderReturnQueryPO; -import cn.iocoder.mall.order.application.po.user.OrderReturnApplyPO; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:47:18+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class OrderReturnConvertImpl implements OrderReturnConvert { - - @Override - public OrderReturnApplyDTO convert(OrderReturnApplyPO orderReturnApplyPO) { - if ( orderReturnApplyPO == null ) { - return null; - } - - OrderReturnApplyDTO orderReturnApplyDTO = new OrderReturnApplyDTO(); - - orderReturnApplyDTO.setOrderId( orderReturnApplyPO.getOrderId() ); - orderReturnApplyDTO.setReason( orderReturnApplyPO.getReason() ); - orderReturnApplyDTO.setDescribe( orderReturnApplyPO.getDescribe() ); - orderReturnApplyDTO.setReturnType( orderReturnApplyPO.getReturnType() ); - - return orderReturnApplyDTO; - } - - @Override - public OrderReturnQueryDTO convert(OrderReturnQueryPO orderReturnQueryPO) { - if ( orderReturnQueryPO == null ) { - return null; - } - - OrderReturnQueryDTO orderReturnQueryDTO = new OrderReturnQueryDTO(); - - orderReturnQueryDTO.setOrderId( orderReturnQueryPO.getOrderId() ); - orderReturnQueryDTO.setOrderNo( orderReturnQueryPO.getOrderNo() ); - orderReturnQueryDTO.setServiceNumber( orderReturnQueryPO.getServiceNumber() ); - orderReturnQueryDTO.setStartCreateTime( orderReturnQueryPO.getStartCreateTime() ); - orderReturnQueryDTO.setEndCreateTime( orderReturnQueryPO.getEndCreateTime() ); - orderReturnQueryDTO.setStatus( orderReturnQueryPO.getStatus() ); - orderReturnQueryDTO.setIndex( orderReturnQueryPO.getIndex() ); - orderReturnQueryDTO.setPageSize( orderReturnQueryPO.getPageSize() ); - - return orderReturnQueryDTO; - } -} diff --git a/order/order-service-impl/target/classes/config/application-test.yaml b/order/order-service-impl/target/classes/config/application-test.yaml deleted file mode 100644 index 268e6407b..000000000 --- a/order/order-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_order?useSSL=false&useUnicode=true&characterEncoding=UTF-8 - driver-class-name: com.mysql.jdbc.Driver - username: root - password: ${MALL_MYSQL_PASSWORD} diff --git a/order/order-service-impl/target/classes/config/application.yaml b/order/order-service-impl/target/classes/config/application.yaml deleted file mode 100644 index 27d4bc238..000000000 --- a/order/order-service-impl/target/classes/config/application.yaml +++ /dev/null @@ -1,76 +0,0 @@ -spring: - # datasource - datasource: - url: jdbc:mysql://180.167.213.26:13306/mall_order?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.order.biz.dataobject -# -# 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.order.biz.dataobject - -# dubbo -dubbo: - application: - name: order-service - registry: - address: zookeeper://127.0.0.1:2181 - protocol: - port: -1 - name: dubbo - scan: - base-packages: cn.iocoder.mall.order.biz.service - provider: - filter: -exception - CartService: - version: 1.0.0 - OrderService: - version: 1.0.0 - OrderReturnService: - version: 1.0.0 - OrderLogisticsService: - version: 1.0.0 -<<<<<<< Updated upstream - OrderCommentService: - version: 1.0.0 -======= ->>>>>>> Stashed changes - consumer: - timeout: 120000 # 设置长一点,方便调试代码 - ProductSpuService: - version: 1.0.0 - PromotionActivityService: - version: 1.0.0 - CouponService: - version: 1.0.0 - PayRefundService: - version: 1.0.0 - UserAddressService: - version: 1.0.0 - PayTransactionService: - version: 1.0.0 - DataDictService: - version: 1.0.0 - -# logging -logging: - level: - # dao 开启 debug 模式 mybatis 输入 sql - cn.iocoder.mall.order.biz.dao: debug - -# seata -seata: - tx-service-group: my_test_tx_group diff --git a/order/order-service-impl/target/classes/file.conf b/order/order-service-impl/target/classes/file.conf deleted file mode 100644 index 8b60b29c3..000000000 --- a/order/order-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/order/order-service-impl/target/classes/mapper/CartMapper.xml b/order/order-service-impl/target/classes/mapper/CartMapper.xml deleted file mode 100644 index 7d9a28f38..000000000 --- a/order/order-service-impl/target/classes/mapper/CartMapper.xml +++ /dev/null @@ -1,129 +0,0 @@ - - - - - - id, status, delete_time, selected, user_id, - spu_id, sku_id, quantity, order_id, order_create_time, - create_time - - - - - - - - - - - - - - INSERT INTO cart_item ( - status, delete_time, selected, user_id, - spu_id, sku_id, quantity, order_id, order_create_time, - create_time - ) VALUES ( - #{status}, #{deleteTime}, #{selected}, #{userId}, - #{spuId}, #{skuId}, #{quantity}, #{orderId}, #{orderCreateTime}, - #{createTime} - ) - - - - UPDATE cart_item - - - status = #{status}, - - - delete_time = #{deleteTime}, - - - selected = #{selected}, - - - quantity = #{quantity}, - - - order_id = #{orderId}, - - - order_create_time = #{orderCreateTime}, - - - price = #{price}, - - - quantity = #{quantity}, - - - WHERE id = #{id} - - - - UPDATE cart_item - SET quantity = quantity + #{quantityIncr} - WHERE id = #{id} - - - - UPDATE cart_item - - - selected = #{selected}, - - - status = #{status}, - - - WHERE user_id = #{userId} - AND sku_id IN - - #{skuId} - - -- AND deleted = 0 - - - diff --git a/order/order-service-impl/target/classes/mapper/OrderCancelMapper.xml b/order/order-service-impl/target/classes/mapper/OrderCancelMapper.xml deleted file mode 100644 index cb7faca20..000000000 --- a/order/order-service-impl/target/classes/mapper/OrderCancelMapper.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - id, order_id, order_no, reason, other_reason, - create_time, update_time - - - - - INSERT INTO `order_cancel` ( - order_id, order_no, reason, other_reason, - create_time, update_time - ) VALUES ( - #{orderId}, #{orderNo}, #{reason}, #{otherReason}, - #{createTime}, #{updateTime} - ) - - diff --git a/order/order-service-impl/target/classes/mapper/OrderCommentMapper.xml b/order/order-service-impl/target/classes/mapper/OrderCommentMapper.xml deleted file mode 100644 index 9d96f35ac..000000000 --- a/order/order-service-impl/target/classes/mapper/OrderCommentMapper.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - id,order_id,order_no,product_spu_id,product_spu_name,product_sku_id,product_sku_attrs,product_sku_price,product_sku_pic_url, - user_id,user_avatar,user_nick_name,star,product_description_star,logistics_star,merchant_star,replay_count,like_count,comment_content, - comment_pics,create_time,update_time - - - - - INSERT INTO order_comment(order_id,order_no,product_spu_id,product_spu_name,product_sku_id, - product_sku_attrs,product_sku_price,product_sku_pic_url,user_id,user_avatar,user_nick_name,star, - product_description_star,logistics_star,merchant_star,comment_content,comment_pics,create_time,update_time) - VALUES (#{orderId},#{orderNo},#{productSpuId},#{productSpuName},#{productSkuId},#{productSkuAttrs}, - #{productSkuPrice},#{productSkuPicUrl},#{userId},#{userAvatar},#{userNickName},#{star}, - #{productDescriptionStar},#{logisticsStar},#{merchantStar},#{commentContent},#{commentPics},#{createTime}, #{updateTime}); - - - - - - - - - - - - \ No newline at end of file diff --git a/order/order-service-impl/target/classes/mapper/OrderCommentReplayMapper.xml b/order/order-service-impl/target/classes/mapper/OrderCommentReplayMapper.xml deleted file mode 100644 index 997bd4b52..000000000 --- a/order/order-service-impl/target/classes/mapper/OrderCommentReplayMapper.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - id,comment_id,reply_type,parent_id,parent_user_id,parent_user_nick_name,parent_user_avatar,reply_content, - reply_user_id,reply_user_nick_name,reply_user_avatar,user_type,reply_like_count,create_time,update_time - - - - -<<<<<<< Updated upstream - INSERT INTO order_comment_replay(comment_id,reply_type,parent_id,parent_user_id,parent_user_nick_name,parent_user_avatar,reply_content,reply_user_id -======= - INSERT INTO `order_comment_replay`(comment_id,reply_type,parent_id,parent_user_id,parent_user_nick_name,parent_user_avatar,reply_content,reply_user_id ->>>>>>> Stashed changes - reply_user_nick_name,reply_user_avatar,user_type,create_time,update_time) - VALUES (#{commentId},#{replyType},#{parentId},#{parentUserId},#{parentUserNickName},#{parentUserAvatar},#{replyContent},#{replyUserId}, - #{replyUserNickName},#{replyUserAvatar},#{userType},#{createTime},#{updateTime}) - - - - - - - - - - - -<<<<<<< Updated upstream - - - - -======= ->>>>>>> Stashed changes - diff --git a/order/order-service-impl/target/classes/mapper/OrderItemMapper.xml b/order/order-service-impl/target/classes/mapper/OrderItemMapper.xml deleted file mode 100644 index 593332489..000000000 --- a/order/order-service-impl/target/classes/mapper/OrderItemMapper.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - id, order_id, order_no, sku_id, sku_name, sku_image, order_logistics_id, - quantity, origin_price, buy_price, present_price, buy_total, discount_total, present_total, - payment_time, delivery_time, receiver_time, closing_time, - has_return_exchange, delivery_type, status, - create_time, update_time, deleted - - - - - INSERT INTO `order_item` ( - order_id, order_no, sku_id, sku_name, sku_image, order_logistics_id, - quantity, origin_price, buy_price, present_price, buy_total, discount_total, present_total, - payment_time, delivery_time, receiver_time, closing_time, - has_return_exchange, delivery_type, status, - create_time, update_time, deleted - ) VALUES - - (#{item.orderId}, #{item.orderNo}, #{item.skuId}, #{item.skuName}, #{item.skuImage}, #{item.orderLogisticsId}, - #{item.quantity}, #{item.originPrice}, #{item.buyPrice}, #{item.presentPrice}, #{item.buyTotal}, #{item.discountTotal}, #{item.presentTotal}, - #{item.paymentTime}, #{item.deliveryTime}, #{item.receiverTime}, #{item.closingTime}, - #{item.hasReturnExchange}, #{item.deliveryType}, #{item.status}, - #{item.createTime}, #{item.updateTime}, #{item.deleted}) - - - - - - - - , order_id = #{orderItemDO.orderId} - - - , order_no = #{orderItemDO.orderNo} - - - , order_logistics_id = #{orderItemDO.orderLogisticsId} - - - , sku_id = #{orderItemDO.skuId} - - - , sku_name = #{orderItemDO.skuName} - - - , sku_image = #{orderItemDO.skuImage} - - - , quantity = #{orderItemDO.quantity} - - - - - - - - - - - , payment_time = #{orderItemDO.paymentTime} - - - , delivery_time = #{orderItemDO.deliveryTime} - - - , receiver_time = #{orderItemDO.receiverTime} - - - , closing_time = #{orderItemDO.closingTime} - - - - , has_return_exchange = #{orderItemDO.hasReturnExchange} - - - , status = #{orderItemDO.status} - - - , delivery_type = #{orderItemDO.deliveryType} - - - , `deleted` = #{orderItemDO.deleted} - - - , create_time = #{orderItemDO.createTime} - - - , update_time = #{orderItemDO.updateTime} - - - - - - - UPDATE `order_item` - - WHERE id = #{orderItemDO.id} - - - - - UPDATE `order_item` - - WHERE id IN - - #{id} - - - - - - UPDATE `order_item` - - WHERE order_id = #{orderId} - - - - - - - - - - - diff --git a/order/order-service-impl/target/classes/mapper/OrderLogisticsDetailMapper.xml b/order/order-service-impl/target/classes/mapper/OrderLogisticsDetailMapper.xml deleted file mode 100644 index 34db79843..000000000 --- a/order/order-service-impl/target/classes/mapper/OrderLogisticsDetailMapper.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - id, - order_logistics_id, - logistics_time, - logistics_information, - create_time, - update_time - - - - - INSERT INTO cart_item (order_logistics_id, logistics_time, logistics_information, - create_time, update_time) - VALUES (#{orderLogisticsId}, #{logisticsTime}, #{logisticsInformation}, - #{createTime}, #{updateTime}) - - - - - - - - - - - - - - diff --git a/order/order-service-impl/target/classes/mapper/OrderLogisticsMapper.xml b/order/order-service-impl/target/classes/mapper/OrderLogisticsMapper.xml deleted file mode 100644 index 84de53114..000000000 --- a/order/order-service-impl/target/classes/mapper/OrderLogisticsMapper.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - id, area_no, `name`, mobile, address, logistics, logistics_no, create_time, update_time - - - - - INSERT INTO `order_logistics` ( - area_no, `name`, mobile, address, logistics, logistics_no, create_time, update_time - ) VALUES ( - #{areaNo}, #{name}, #{mobile}, #{address}, - #{logistics}, #{logisticsNo}, #{createTime}, #{updateTime} - ) - - - - - - - , area_no = #{areaNo} - - - , `name` = #{name} - - - , mobile = #{mobile} - - - , address = #{address} - - - , logistics = #{logistics} - - - , logistics_no = #{logisticsNo} - - - - - - - UPDATE `order_logistics` - - WHERE id = #{id} - - - - - - - - \ No newline at end of file diff --git a/order/order-service-impl/target/classes/mapper/OrderMapper.xml b/order/order-service-impl/target/classes/mapper/OrderMapper.xml deleted file mode 100644 index 5bc328e25..000000000 --- a/order/order-service-impl/target/classes/mapper/OrderMapper.xml +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - id, user_id, order_no, buy_price, discount_price, logistics_price, present_price, pay_amount, - payment_time, delivery_time, receiver_time, closing_time, - has_return_exchange, - status, remark, create_time, update_time, `deleted` - - - - - - , order_no = #{orderNo} - - - , buy_price = #{buyPrice} - - - , discount_price = #{discountPrice} - - - , logistics_price = #{logisticsPrice} - - - , logistics_price = #{logisticsPrice} - - - , present_price = #{presentPrice} - - - , pay_amount = #{payAmount} - - - , delivery_time = #{deliveryTime} - - - , payment_time = #{paymentTime} - - - , receiver_time = #{receiverTime} - - - , closing_time = #{closingTime} - - - , has_return_exchange = #{hasReturnExchange} - - - - , status = #{status} - - - , remark = #{remark} - - - , `deleted` = #{deleted} - - - , create_time = #{createTime} - - - , update_time = #{updateTime} - - - - - - UPDATE `orders` - - WHERE id = #{id} - - - - UPDATE `orders` - - - , pay_amount = #{updateObj.payAmount} - - - , payment_time = #{updateObj.paymentTime} - - - , status = #{updateObj.status} - - - WHERE id = #{id} - AND status = #{status} - - - - - - - AND `status` = #{status} - - - AND `user_id` = #{userId} - - - AND `id` = #{id} - - - AND `order_no` = #{orderNo} - - - AND `has_return_exchange` = #{hasReturnExchange} - - - AND `create_time` >= #{startCreateTime} - AND `create_time` <= #{endCreateTime} - - - - - - - - - diff --git a/order/order-service-impl/target/classes/mapper/OrderRecipientMapper.xml b/order/order-service-impl/target/classes/mapper/OrderRecipientMapper.xml deleted file mode 100644 index 77c893b0b..000000000 --- a/order/order-service-impl/target/classes/mapper/OrderRecipientMapper.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - id, order_id, `area_no`, `name`, mobile, address, `type`, - create_time, update_time - - - - - INSERT INTO `order_recipient` ( - order_id, `area_no`, `name`, mobile, address, - `type`, create_time, update_time - ) VALUES ( - #{orderId}, #{areaNo}, #{name}, #{mobile}, #{address}, - #{type}, #{createTime,jdbcType=TIMESTAMP} , #{updateTime} - ) - - - - - - - - - diff --git a/order/order-service-impl/target/classes/mapper/OrderReturnMapper.xml b/order/order-service-impl/target/classes/mapper/OrderReturnMapper.xml deleted file mode 100644 index a397240f5..000000000 --- a/order/order-service-impl/target/classes/mapper/OrderReturnMapper.xml +++ /dev/null @@ -1,165 +0,0 @@ - - - - - - id, - service_number, - order_id, - order_no, - order_logistics_id, - refund_price, - reason, - `describe`, - approval_time, - refuse_time, - logistics_time, - receiver_time, - closing_time, - service_type, - status, - create_time, - update_time - - - - - INSERT INTO `order_return` ( - service_number, order_id, order_no, order_logistics_id, - refund_price, reason, `describe`, - approval_time, refuse_time, logistics_time, receiver_time, closing_time, - service_type, status, - create_time, update_time) - VALUES ( - #{serviceNumber}, #{orderId}, #{orderNo}, #{orderLogisticsId}, - ${refundPrice}, #{reason}, #{describe}, - #{approvalTime}, #{refuse_time}, #{logisticsTime}, #{receiverTime}, #{closingTime}, - #{serviceType}, #{status}, #{createTime}, #{updateTime}) - - - - - - - , order_logistics_id = #{orderLogisticsId} - - - , refund_price = #{refundPrice} - - - , reason = #{reason} - - - , `describe` = #{describe} - - - , approval_time = #{approvalTime} - - - , refuse_time = #{refuseTime} - - - , logistics_time = #{logisticsTime} - - - , receiver_time = #{receiverTime} - - - , closing_time = #{closingTime} - - - , service_type = #{serviceType} - - - , status = #{status} - - - , create_time = #{createTime} - - - , update_time = #{updateTime} - - - - - - - UPDATE `order_return` - - WHERE id = #{id} - - - - - - - - - AND status = #{status} - - - AND service_number = #{serviceNumber} - - - AND order_id = #{orderId} - - - AND order_no = #{orderNo} - - - AND create_time >= #{startCreateTime} - AND create_time <= #{endCreateTime} - - - - - - - - - - - - - diff --git a/order/order-service-impl/target/classes/registry.conf b/order/order-service-impl/target/classes/registry.conf deleted file mode 100644 index f73989514..000000000 --- a/order/order-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/order/order-service-impl/target/classes/sql/mall_order.sql b/order/order-service-impl/target/classes/sql/mall_order.sql deleted file mode 100644 index 4683263a8..000000000 --- a/order/order-service-impl/target/classes/sql/mall_order.sql +++ /dev/null @@ -1,121 +0,0 @@ -DROP TABLE `order`; -DROP TABLE `order_item`; -DROP TABLE `order_exchange`; -DROP TABLE `order_return`; -DROP TABLE `order_logistics`; -DROP TABLE `order_logistics_detail`; - -CREATE TABLE `order` ( -`id` int NOT NULL AUTO_INCREMENT COMMENT 'Id,自增长', -`order_logistics_id` int NOT NULL COMMENT '物流id', -`order_no` varchar(50) NOT NULL COMMENT '订单单号', -`price` int(10) NULL COMMENT '金额(分)', -`payment_time` datetime NULL COMMENT '付款时间', -`delivery_time` datetime NULL COMMENT '发货时间', -`receiver_time` datetime NULL COMMENT '收货时间', -`closing_time` datetime NULL COMMENT '成交时间', -`has_return_exchange` smallint NULL COMMENT '是否退换货', -`remark` varchar(255) NULL COMMENT '备注', -`status` smallint(2) NULL COMMENT '状态(如果有多个商品分开发货需要全部商品发完才会改变状态) 0、待付款 1、待发货 2、待收货 3、已完成 4、已关闭', -`create_time` datetime NULL COMMENT '订单创建时间', -`update_time` datetime NULL COMMENT '更新时间', -`deleted` smallint NULL COMMENT '删除状态', -PRIMARY KEY (`id`) -); -CREATE TABLE `order_item` ( -`id` int NOT NULL AUTO_INCREMENT COMMENT 'id自增长', -`order_id` int NOT NULL COMMENT '订单编号', -`order_no` varchar(50) NOT NULL COMMENT '订单号', -`sku_id` int NOT NULL COMMENT '商品编号', -`quantity` int(3) NOT NULL COMMENT '商品数量', -`price` int(255) NOT NULL COMMENT '金额', -`payment_time` datetime NULL COMMENT '付款时间', -`delivery_time` datetime NULL COMMENT '发货时间', -`receiver_time` datetime NULL COMMENT '收货时间', -`closing_time` datetime NULL, -`has_return_exchange` int NULL COMMENT '是否退换货', -`create_time` datetime NULL COMMENT '创建时间', -`update_time` datetime NULL COMMENT '更新时间', -`status` smallint(2) NOT NULL COMMENT '状态:0、代发货 1、已发货 2、已收货 20、换货中 21、换货成功 40、退货中 41、已退货', -`delete` smallint(2) NOT NULL COMMENT '删除状态', -PRIMARY KEY (`id`) -); - -CREATE TABLE `order_exchange` ( -`id` int(11) NOT NULL AUTO_INCREMENT, -`order_id` int(11) NOT NULL, -`order_no` varchar(50) NOT NULL, -`sku_id` int(11) NOT NULL, -`exchange_sku_id` int(11) NOT NULL COMMENT '换货商品id', -`exchange_order_logistics_id` int(11) NOT NULL COMMENT '换货物流id', -`receiver_order_logistics_id` int(11) NOT NULL COMMENT '收件地址', -`order_reason_id` int(11) NULL COMMENT '换货原因', -`reason` varchar(255) NULL COMMENT '换货原因 (其他的时候)', -`payment_time` datetime NULL COMMENT '付款时间', -`delivery_time` datetime NULL COMMENT '发货时间', -`receiver_time` datetime NULL COMMENT '收货时间', -`closing_time` datetime NULL COMMENT '成交时间', -`create_time` datetime NULL COMMENT '创建时间', -`update_time` datetime NULL COMMENT '更新时间', -`delete` smallint(2) NULL COMMENT '删除状态', -`order_type` int(2) NULL COMMENT '订单类型 0、为 Order 订单 1、为 OrderItem 订单', -`status` int(2) NULL COMMENT '状态 申请换货、申请成功、申请失败、换货中、换货成功', -PRIMARY KEY (`id`) -); - - -CREATE TABLE `order_return` ( -`id` int NOT NULL AUTO_INCREMENT COMMENT 'id自增长', -`order_id` int NOT NULL COMMENT '订单编号', -`order_no` varchar(50) NOT NULL COMMENT '订单号', -`sku_id` int NOT NULL COMMENT '商品编号', -`order_item_id` int(11) NOT NULL COMMENT '订单item id', -`order_logistics_id` int(11) NOT NULL COMMENT '物流 id', - -`order_reason_id` int(11) NULL COMMENT '退货原因', -`reason` varchar(255) NULL COMMENT '换货原因 (其他的时候)', -`create_time` datetime NULL COMMENT '创建时间', -`approval_time` datetime NULL COMMENT '同意时间', -`logistics_time` datetime NULL COMMENT '物流时间(填写物流单号时间)', -`receiver_time` datetime NULL COMMENT '收货时间', -`closing_time` datetime NULL COMMENT '成交时间', -`order_type` int(2) NULL COMMENT '订单类型 0、为 Order 订单 1、为 OrderItem 订单', - -`update_time` datetime NULL COMMENT '更新时间', -`delete` smallint(2) NULL COMMENT '删除状态', -`status` int(2) NULL COMMENT '状态 申请换货、申请成功、申请失败、退货中、退货成功', -PRIMARY KEY (`id`) -); - - -CREATE TABLE `order_logistics` ( -`id` int NOT NULL AUTO_INCREMENT COMMENT 'id自增长', -`area_no` int NOT NULL COMMENT '订单编号', -`name` VARCHAR(20) NOT NULL COMMENT '名称', -`mobile` VARCHAR(20) NOT NULL COMMENT '手机号', -`address` VARCHAR(255) NOT NULL COMMENT '详细地址', -`logistics_no` VARCHAR(20) NOT NULL COMMENT '物流单号', -PRIMARY KEY (`id`) -); - - -CREATE TABLE `order_logistics_detail` ( -`id` int NOT NULL AUTO_INCREMENT COMMENT 'id自增长', -`order_logistics_id` int NOT NULL COMMENT '物流编号', -`logistics_time` datetime NOT NULL COMMENT '物流时间', -`logistics_information` VARCHAR(20) NOT NULL COMMENT '物流信息', -PRIMARY KEY (`id`) -); - - - - - - - - - - - - - diff --git a/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/CartConvertImpl.java b/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/CartConvertImpl.java deleted file mode 100644 index c09d2245e..000000000 --- a/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/CartConvertImpl.java +++ /dev/null @@ -1,74 +0,0 @@ -package cn.iocoder.mall.order.biz.convert; - -import cn.iocoder.mall.order.api.bo.CalcOrderPriceBO.Item; -import cn.iocoder.mall.order.api.bo.CartItemBO; -import cn.iocoder.mall.order.biz.dataobject.CartItemDO; -import cn.iocoder.mall.product.api.bo.ProductAttrAndValuePairBO; -import cn.iocoder.mall.product.api.bo.ProductSkuDetailBO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:39:07+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class CartConvertImpl implements CartConvert { - - @Override - public Item convert(ProductSkuDetailBO sku) { - if ( sku == null ) { - return null; - } - - Item item = new Item(); - - item.setId( sku.getId() ); - item.setSpu( sku.getSpu() ); - item.setPicURL( sku.getPicURL() ); - List list = sku.getAttrs(); - if ( list != null ) { - item.setAttrs( new ArrayList( list ) ); - } - item.setPrice( sku.getPrice() ); - item.setQuantity( sku.getQuantity() ); - - return item; - } - - @Override - public List convert(List items) { - if ( items == null ) { - return null; - } - - List list = new ArrayList( items.size() ); - for ( CartItemDO cartItemDO : items ) { - list.add( cartItemDOToCartItemBO( cartItemDO ) ); - } - - return list; - } - - protected CartItemBO cartItemDOToCartItemBO(CartItemDO cartItemDO) { - if ( cartItemDO == null ) { - return null; - } - - CartItemBO cartItemBO = new CartItemBO(); - - cartItemBO.setId( cartItemDO.getId() ); - cartItemBO.setStatus( cartItemDO.getStatus() ); - cartItemBO.setSelected( cartItemDO.getSelected() ); - cartItemBO.setUserId( cartItemDO.getUserId() ); - cartItemBO.setSpuId( cartItemDO.getSpuId() ); - cartItemBO.setSkuId( cartItemDO.getSkuId() ); - cartItemBO.setQuantity( cartItemDO.getQuantity() ); - cartItemBO.setOrderId( cartItemDO.getOrderId() ); - cartItemBO.setOrderCreateTime( cartItemDO.getOrderCreateTime() ); - cartItemBO.setCreateTime( cartItemDO.getCreateTime() ); - - return cartItemBO; - } -} diff --git a/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/OrderCommentConvertImpl.java b/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/OrderCommentConvertImpl.java deleted file mode 100644 index 1acba28ab..000000000 --- a/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/OrderCommentConvertImpl.java +++ /dev/null @@ -1,92 +0,0 @@ -package cn.iocoder.mall.order.biz.convert; - -import cn.iocoder.mall.order.api.bo.OrderCommentCreateBO; -import cn.iocoder.mall.order.api.bo.OrderCommentPageBO.OrderCommentItem; -import cn.iocoder.mall.order.api.dto.OrderCommentCreateDTO; -import cn.iocoder.mall.order.biz.dataobject.OrderCommentDO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-31T18:14:19+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class OrderCommentConvertImpl implements OrderCommentConvert { - - @Override - public OrderCommentDO convert(OrderCommentCreateDTO orderCommentCreateDTO) { - if ( orderCommentCreateDTO == null ) { - return null; - } - - OrderCommentDO orderCommentDO = new OrderCommentDO(); - - orderCommentDO.setOrderId( orderCommentCreateDTO.getOrderId() ); - orderCommentDO.setOrderNo( orderCommentCreateDTO.getOrderNo() ); - orderCommentDO.setProductSpuId( orderCommentCreateDTO.getProductSpuId() ); - orderCommentDO.setProductSpuName( orderCommentCreateDTO.getProductSpuName() ); - orderCommentDO.setProductSkuId( orderCommentCreateDTO.getProductSkuId() ); - orderCommentDO.setProductSkuAttrs( orderCommentCreateDTO.getProductSkuAttrs() ); - orderCommentDO.setProductSkuPrice( orderCommentCreateDTO.getProductSkuPrice() ); - orderCommentDO.setProductSkuPicUrl( orderCommentCreateDTO.getProductSkuPicUrl() ); - orderCommentDO.setUserId( orderCommentCreateDTO.getUserId() ); - orderCommentDO.setUserAvatar( orderCommentCreateDTO.getUserAvatar() ); - orderCommentDO.setUserNickName( orderCommentCreateDTO.getUserNickName() ); - orderCommentDO.setStar( orderCommentCreateDTO.getStar() ); - orderCommentDO.setProductDescriptionStar( orderCommentCreateDTO.getProductDescriptionStar() ); - orderCommentDO.setLogisticsStar( orderCommentCreateDTO.getLogisticsStar() ); - orderCommentDO.setMerchantStar( orderCommentCreateDTO.getMerchantStar() ); - orderCommentDO.setCommentContent( orderCommentCreateDTO.getCommentContent() ); - orderCommentDO.setCommentPics( orderCommentCreateDTO.getCommentPics() ); - - return orderCommentDO; - } - - @Override - public OrderCommentCreateBO convert(OrderCommentDO orderCommentDO) { - if ( orderCommentDO == null ) { - return null; - } - - OrderCommentCreateBO orderCommentCreateBO = new OrderCommentCreateBO(); - - orderCommentCreateBO.setId( orderCommentDO.getId() ); - - return orderCommentCreateBO; - } - - @Override - public List convert(List orderCommentDOList) { - if ( orderCommentDOList == null ) { - return null; - } - - List list = new ArrayList( orderCommentDOList.size() ); - for ( OrderCommentDO orderCommentDO : orderCommentDOList ) { - list.add( orderCommentDOToOrderCommentItem( orderCommentDO ) ); - } - - return list; - } - - protected OrderCommentItem orderCommentDOToOrderCommentItem(OrderCommentDO orderCommentDO) { - if ( orderCommentDO == null ) { - return null; - } - - OrderCommentItem orderCommentItem = new OrderCommentItem(); - - orderCommentItem.setId( orderCommentDO.getId() ); - orderCommentItem.setUserAvatar( orderCommentDO.getUserAvatar() ); - orderCommentItem.setUserNickName( orderCommentDO.getUserNickName() ); - orderCommentItem.setStar( orderCommentDO.getStar() ); - orderCommentItem.setCommentContent( orderCommentDO.getCommentContent() ); - orderCommentItem.setCommentPics( orderCommentDO.getCommentPics() ); - orderCommentItem.setReplayCount( orderCommentDO.getReplayCount() ); - orderCommentItem.setCreateTime( orderCommentDO.getCreateTime() ); - - return orderCommentItem; - } -} diff --git a/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/OrderConvertImpl.java b/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/OrderConvertImpl.java deleted file mode 100644 index 2c418655c..000000000 --- a/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/OrderConvertImpl.java +++ /dev/null @@ -1,82 +0,0 @@ -package cn.iocoder.mall.order.biz.convert; - -import cn.iocoder.mall.order.api.bo.OrderBO; -import cn.iocoder.mall.order.api.bo.OrderInfoBO; -import cn.iocoder.mall.order.biz.dataobject.OrderDO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:39:07+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class OrderConvertImpl implements OrderConvert { - - @Override - public List convertPageBO(List orderDOList) { - if ( orderDOList == null ) { - return null; - } - - List list = new ArrayList( orderDOList.size() ); - for ( OrderDO orderDO : orderDOList ) { - list.add( orderDOToOrderBO( orderDO ) ); - } - - return list; - } - - @Override - public OrderInfoBO convert(OrderDO orderDO) { - if ( orderDO == null ) { - return null; - } - - OrderInfoBO orderInfoBO = new OrderInfoBO(); - - orderInfoBO.setId( orderDO.getId() ); - orderInfoBO.setOrderNo( orderDO.getOrderNo() ); - orderInfoBO.setBuyPrice( orderDO.getBuyPrice() ); - orderInfoBO.setDiscountPrice( orderDO.getDiscountPrice() ); - orderInfoBO.setLogisticsPrice( orderDO.getLogisticsPrice() ); - orderInfoBO.setPresentPrice( orderDO.getPresentPrice() ); - orderInfoBO.setPayAmount( orderDO.getPayAmount() ); - orderInfoBO.setPaymentTime( orderDO.getPaymentTime() ); - orderInfoBO.setDeliveryTime( orderDO.getDeliveryTime() ); - orderInfoBO.setReceiverTime( orderDO.getReceiverTime() ); - orderInfoBO.setClosingTime( orderDO.getClosingTime() ); - orderInfoBO.setHasReturnExchange( orderDO.getHasReturnExchange() ); - orderInfoBO.setStatus( orderDO.getStatus() ); - orderInfoBO.setRemark( orderDO.getRemark() ); - - return orderInfoBO; - } - - protected OrderBO orderDOToOrderBO(OrderDO orderDO) { - if ( orderDO == null ) { - return null; - } - - OrderBO orderBO = new OrderBO(); - - orderBO.setId( orderDO.getId() ); - orderBO.setUserId( orderDO.getUserId() ); - orderBO.setOrderNo( orderDO.getOrderNo() ); - orderBO.setBuyPrice( orderDO.getBuyPrice() ); - orderBO.setDiscountPrice( orderDO.getDiscountPrice() ); - orderBO.setLogisticsPrice( orderDO.getLogisticsPrice() ); - orderBO.setPresentPrice( orderDO.getPresentPrice() ); - orderBO.setPayAmount( orderDO.getPayAmount() ); - orderBO.setPaymentTime( orderDO.getPaymentTime() ); - orderBO.setDeliveryTime( orderDO.getDeliveryTime() ); - orderBO.setReceiverTime( orderDO.getReceiverTime() ); - orderBO.setClosingTime( orderDO.getClosingTime() ); - orderBO.setHasReturnExchange( orderDO.getHasReturnExchange() ); - orderBO.setStatus( orderDO.getStatus() ); - orderBO.setRemark( orderDO.getRemark() ); - - return orderBO; - } -} diff --git a/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/OrderItemConvertImpl.java b/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/OrderItemConvertImpl.java deleted file mode 100644 index 0d259e035..000000000 --- a/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/OrderItemConvertImpl.java +++ /dev/null @@ -1,156 +0,0 @@ -package cn.iocoder.mall.order.biz.convert; - -import cn.iocoder.mall.order.api.bo.OrderItemBO; -import cn.iocoder.mall.order.api.dto.OrderCreateDTO.OrderItem; -import cn.iocoder.mall.order.api.dto.OrderItemUpdateDTO; -import cn.iocoder.mall.order.biz.dataobject.OrderItemDO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:39:07+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class OrderItemConvertImpl implements OrderItemConvert { - - @Override - public OrderItemDO convert(OrderItemUpdateDTO orderItemUpdateDTO) { - if ( orderItemUpdateDTO == null ) { - return null; - } - - OrderItemDO orderItemDO = new OrderItemDO(); - - orderItemDO.setId( orderItemUpdateDTO.getId() ); - orderItemDO.setSkuId( orderItemUpdateDTO.getSkuId() ); - orderItemDO.setQuantity( orderItemUpdateDTO.getQuantity() ); - - return orderItemDO; - } - - @Override - public List convertOrderItemBO(List orderItemDOList) { - if ( orderItemDOList == null ) { - return null; - } - - List list = new ArrayList( orderItemDOList.size() ); - for ( OrderItemDO orderItemDO : orderItemDOList ) { - list.add( orderItemDOToOrderItemBO( orderItemDO ) ); - } - - return list; - } - - @Override - public List convert(List orderCreateItemDTOList) { - if ( orderCreateItemDTOList == null ) { - return null; - } - - List list = new ArrayList( orderCreateItemDTOList.size() ); - for ( OrderItem orderItem : orderCreateItemDTOList ) { - list.add( orderItemToOrderItemDO( orderItem ) ); - } - - return list; - } - - @Override - public List convertOrderItemDO(List orderItemDOList) { - if ( orderItemDOList == null ) { - return null; - } - - List list = new ArrayList( orderItemDOList.size() ); - for ( OrderItemDO orderItemDO : orderItemDOList ) { - list.add( orderItemDOToOrderItemBO( orderItemDO ) ); - } - - return list; - } - - @Override - public List convertOrderInfoWithOrderItem(List orderItemDOList) { - if ( orderItemDOList == null ) { - return null; - } - - List list = new ArrayList( orderItemDOList.size() ); - for ( OrderItemDO orderItemDO : orderItemDOList ) { - list.add( orderItemDOToOrderItem( orderItemDO ) ); - } - - return list; - } - - protected OrderItemBO orderItemDOToOrderItemBO(OrderItemDO orderItemDO) { - if ( orderItemDO == null ) { - return null; - } - - OrderItemBO orderItemBO = new OrderItemBO(); - - orderItemBO.setId( orderItemDO.getId() ); - orderItemBO.setOrderId( orderItemDO.getOrderId() ); - orderItemBO.setOrderNo( orderItemDO.getOrderNo() ); - orderItemBO.setSkuId( orderItemDO.getSkuId() ); - orderItemBO.setSkuName( orderItemDO.getSkuName() ); - orderItemBO.setSkuImage( orderItemDO.getSkuImage() ); - orderItemBO.setQuantity( orderItemDO.getQuantity() ); - orderItemBO.setOriginPrice( orderItemDO.getOriginPrice() ); - orderItemBO.setBuyPrice( orderItemDO.getBuyPrice() ); - orderItemBO.setPresentPrice( orderItemDO.getPresentPrice() ); - orderItemBO.setBuyTotal( orderItemDO.getBuyTotal() ); - orderItemBO.setDiscountTotal( orderItemDO.getDiscountTotal() ); - orderItemBO.setPresentTotal( orderItemDO.getPresentTotal() ); - orderItemBO.setPaymentTime( orderItemDO.getPaymentTime() ); - orderItemBO.setDeliveryTime( orderItemDO.getDeliveryTime() ); - orderItemBO.setReceiverTime( orderItemDO.getReceiverTime() ); - orderItemBO.setClosingTime( orderItemDO.getClosingTime() ); - orderItemBO.setHasReturnExchange( orderItemDO.getHasReturnExchange() ); - orderItemBO.setDeliveryType( orderItemDO.getDeliveryType() ); - orderItemBO.setStatus( orderItemDO.getStatus() ); - orderItemBO.setCreateTime( orderItemDO.getCreateTime() ); - orderItemBO.setUpdateTime( orderItemDO.getUpdateTime() ); - orderItemBO.setDeleted( orderItemDO.getDeleted() ); - - return orderItemBO; - } - - protected OrderItemDO orderItemToOrderItemDO(OrderItem orderItem) { - if ( orderItem == null ) { - return null; - } - - OrderItemDO orderItemDO = new OrderItemDO(); - - orderItemDO.setSkuId( orderItem.getSkuId() ); - orderItemDO.setQuantity( orderItem.getQuantity() ); - - return orderItemDO; - } - - protected cn.iocoder.mall.order.api.bo.OrderInfoBO.OrderItem orderItemDOToOrderItem(OrderItemDO orderItemDO) { - if ( orderItemDO == null ) { - return null; - } - - cn.iocoder.mall.order.api.bo.OrderInfoBO.OrderItem orderItem = new cn.iocoder.mall.order.api.bo.OrderInfoBO.OrderItem(); - - orderItem.setSkuId( orderItemDO.getSkuId() ); - orderItem.setSkuName( orderItemDO.getSkuName() ); - orderItem.setSkuImage( orderItemDO.getSkuImage() ); - orderItem.setQuantity( orderItemDO.getQuantity() ); - orderItem.setOriginPrice( orderItemDO.getOriginPrice() ); - orderItem.setBuyPrice( orderItemDO.getBuyPrice() ); - orderItem.setPresentPrice( orderItemDO.getPresentPrice() ); - orderItem.setBuyTotal( orderItemDO.getBuyTotal() ); - orderItem.setDiscountTotal( orderItemDO.getDiscountTotal() ); - orderItem.setPresentTotal( orderItemDO.getPresentTotal() ); - - return orderItem; - } -} diff --git a/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/OrderLogisticsConvertImpl.java b/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/OrderLogisticsConvertImpl.java deleted file mode 100644 index 348987050..000000000 --- a/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/OrderLogisticsConvertImpl.java +++ /dev/null @@ -1,217 +0,0 @@ -package cn.iocoder.mall.order.biz.convert; - -import cn.iocoder.mall.order.api.bo.OrderLastLogisticsInfoBO; -import cn.iocoder.mall.order.api.bo.OrderLogisticsInfoBO; -import cn.iocoder.mall.order.api.bo.OrderLogisticsInfoWithOrderBO.Logistics; -import cn.iocoder.mall.order.api.bo.OrderLogisticsInfoWithOrderBO.LogisticsDetail; -import cn.iocoder.mall.order.api.dto.OrderDeliveryDTO; -import cn.iocoder.mall.order.api.dto.OrderLogisticsUpdateDTO; -import cn.iocoder.mall.order.biz.dataobject.OrderLogisticsDO; -import cn.iocoder.mall.order.biz.dataobject.OrderLogisticsDetailDO; -import cn.iocoder.mall.order.biz.dataobject.OrderRecipientDO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:39:07+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class OrderLogisticsConvertImpl implements OrderLogisticsConvert { - - @Override - public OrderLogisticsDO convert(OrderDeliveryDTO orderDelivery) { - if ( orderDelivery == null ) { - return null; - } - - OrderLogisticsDO orderLogisticsDO = new OrderLogisticsDO(); - - orderLogisticsDO.setLogistics( orderDelivery.getLogistics() ); - orderLogisticsDO.setLogisticsNo( orderDelivery.getLogisticsNo() ); - - return orderLogisticsDO; - } - - @Override - public OrderLogisticsDO convert(OrderLogisticsUpdateDTO orderLogisticsDTO) { - if ( orderLogisticsDTO == null ) { - return null; - } - - OrderLogisticsDO orderLogisticsDO = new OrderLogisticsDO(); - - orderLogisticsDO.setId( orderLogisticsDTO.getId() ); - orderLogisticsDO.setAreaNo( orderLogisticsDTO.getAreaNo() ); - orderLogisticsDO.setName( orderLogisticsDTO.getName() ); - orderLogisticsDO.setMobile( orderLogisticsDTO.getMobile() ); - orderLogisticsDO.setAddress( orderLogisticsDTO.getAddress() ); - orderLogisticsDO.setLogisticsNo( orderLogisticsDTO.getLogisticsNo() ); - - return orderLogisticsDO; - } - - @Override - public OrderLogisticsDO convert(OrderRecipientDO orderRecipientDO) { - if ( orderRecipientDO == null ) { - return null; - } - - OrderLogisticsDO orderLogisticsDO = new OrderLogisticsDO(); - - orderLogisticsDO.setCreateTime( orderRecipientDO.getCreateTime() ); - orderLogisticsDO.setUpdateTime( orderRecipientDO.getUpdateTime() ); - orderLogisticsDO.setId( orderRecipientDO.getId() ); - orderLogisticsDO.setAreaNo( orderRecipientDO.getAreaNo() ); - orderLogisticsDO.setName( orderRecipientDO.getName() ); - orderLogisticsDO.setMobile( orderRecipientDO.getMobile() ); - orderLogisticsDO.setAddress( orderRecipientDO.getAddress() ); - - return orderLogisticsDO; - } - - @Override - public List convertLogistics(List orderLogisticsDOList) { - if ( orderLogisticsDOList == null ) { - return null; - } - - List list = new ArrayList( orderLogisticsDOList.size() ); - for ( OrderLogisticsDO orderLogisticsDO : orderLogisticsDOList ) { - list.add( orderLogisticsDOToLogistics( orderLogisticsDO ) ); - } - - return list; - } - - @Override - public List convertLogisticsDetail(List orderLogisticsDOList) { - if ( orderLogisticsDOList == null ) { - return null; - } - - List list = new ArrayList( orderLogisticsDOList.size() ); - for ( OrderLogisticsDetailDO orderLogisticsDetailDO : orderLogisticsDOList ) { - list.add( orderLogisticsDetailDOToLogisticsDetail( orderLogisticsDetailDO ) ); - } - - return list; - } - - @Override - public OrderLogisticsInfoBO convert(OrderLogisticsDO orderLogisticsDO) { - if ( orderLogisticsDO == null ) { - return null; - } - - OrderLogisticsInfoBO orderLogisticsInfoBO = new OrderLogisticsInfoBO(); - - orderLogisticsInfoBO.setId( orderLogisticsDO.getId() ); - orderLogisticsInfoBO.setAreaNo( orderLogisticsDO.getAreaNo() ); - orderLogisticsInfoBO.setName( orderLogisticsDO.getName() ); - orderLogisticsInfoBO.setMobile( orderLogisticsDO.getMobile() ); - orderLogisticsInfoBO.setAddress( orderLogisticsDO.getAddress() ); - orderLogisticsInfoBO.setLogistics( orderLogisticsDO.getLogistics() ); - orderLogisticsInfoBO.setLogisticsNo( orderLogisticsDO.getLogisticsNo() ); - - return orderLogisticsInfoBO; - } - - @Override - public List convert(List orderLogisticsDetailDOList) { - if ( orderLogisticsDetailDOList == null ) { - return null; - } - - List list = new ArrayList( orderLogisticsDetailDOList.size() ); - for ( OrderLogisticsDetailDO orderLogisticsDetailDO : orderLogisticsDetailDOList ) { - list.add( orderLogisticsDetailDOToLogisticsDetail1( orderLogisticsDetailDO ) ); - } - - return list; - } - - @Override - public OrderLastLogisticsInfoBO convertOrderLastLogisticsInfoBO(OrderLogisticsDO orderLogisticsDO) { - if ( orderLogisticsDO == null ) { - return null; - } - - OrderLastLogisticsInfoBO orderLastLogisticsInfoBO = new OrderLastLogisticsInfoBO(); - - orderLastLogisticsInfoBO.setId( orderLogisticsDO.getId() ); - orderLastLogisticsInfoBO.setAreaNo( orderLogisticsDO.getAreaNo() ); - orderLastLogisticsInfoBO.setName( orderLogisticsDO.getName() ); - orderLastLogisticsInfoBO.setMobile( orderLogisticsDO.getMobile() ); - orderLastLogisticsInfoBO.setAddress( orderLogisticsDO.getAddress() ); - orderLastLogisticsInfoBO.setLogistics( orderLogisticsDO.getLogistics() ); - orderLastLogisticsInfoBO.setLogisticsNo( orderLogisticsDO.getLogisticsNo() ); - - return orderLastLogisticsInfoBO; - } - - @Override - public cn.iocoder.mall.order.api.bo.OrderLastLogisticsInfoBO.LogisticsDetail convertLastLogisticsDetail(OrderLogisticsDetailDO orderLogisticsDetailDO) { - if ( orderLogisticsDetailDO == null ) { - return null; - } - - cn.iocoder.mall.order.api.bo.OrderLastLogisticsInfoBO.LogisticsDetail logisticsDetail = new cn.iocoder.mall.order.api.bo.OrderLastLogisticsInfoBO.LogisticsDetail(); - - logisticsDetail.setId( orderLogisticsDetailDO.getId() ); - logisticsDetail.setOrderLogisticsId( orderLogisticsDetailDO.getOrderLogisticsId() ); - logisticsDetail.setLogisticsTime( orderLogisticsDetailDO.getLogisticsTime() ); - logisticsDetail.setLogisticsInformation( orderLogisticsDetailDO.getLogisticsInformation() ); - - return logisticsDetail; - } - - protected Logistics orderLogisticsDOToLogistics(OrderLogisticsDO orderLogisticsDO) { - if ( orderLogisticsDO == null ) { - return null; - } - - Logistics logistics = new Logistics(); - - logistics.setId( orderLogisticsDO.getId() ); - logistics.setAreaNo( orderLogisticsDO.getAreaNo() ); - logistics.setName( orderLogisticsDO.getName() ); - logistics.setMobile( orderLogisticsDO.getMobile() ); - logistics.setAddress( orderLogisticsDO.getAddress() ); - logistics.setLogistics( orderLogisticsDO.getLogistics() ); - logistics.setLogisticsNo( orderLogisticsDO.getLogisticsNo() ); - - return logistics; - } - - protected LogisticsDetail orderLogisticsDetailDOToLogisticsDetail(OrderLogisticsDetailDO orderLogisticsDetailDO) { - if ( orderLogisticsDetailDO == null ) { - return null; - } - - LogisticsDetail logisticsDetail = new LogisticsDetail(); - - logisticsDetail.setId( orderLogisticsDetailDO.getId() ); - logisticsDetail.setOrderLogisticsId( orderLogisticsDetailDO.getOrderLogisticsId() ); - logisticsDetail.setLogisticsTime( orderLogisticsDetailDO.getLogisticsTime() ); - logisticsDetail.setLogisticsInformation( orderLogisticsDetailDO.getLogisticsInformation() ); - - return logisticsDetail; - } - - protected cn.iocoder.mall.order.api.bo.OrderLogisticsInfoBO.LogisticsDetail orderLogisticsDetailDOToLogisticsDetail1(OrderLogisticsDetailDO orderLogisticsDetailDO) { - if ( orderLogisticsDetailDO == null ) { - return null; - } - - cn.iocoder.mall.order.api.bo.OrderLogisticsInfoBO.LogisticsDetail logisticsDetail = new cn.iocoder.mall.order.api.bo.OrderLogisticsInfoBO.LogisticsDetail(); - - logisticsDetail.setId( orderLogisticsDetailDO.getId() ); - logisticsDetail.setOrderLogisticsId( orderLogisticsDetailDO.getOrderLogisticsId() ); - logisticsDetail.setLogisticsTime( orderLogisticsDetailDO.getLogisticsTime() ); - logisticsDetail.setLogisticsInformation( orderLogisticsDetailDO.getLogisticsInformation() ); - - return logisticsDetail; - } -} diff --git a/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/OrderLogisticsDetailConvertImpl.java b/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/OrderLogisticsDetailConvertImpl.java deleted file mode 100644 index fcc602bb3..000000000 --- a/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/OrderLogisticsDetailConvertImpl.java +++ /dev/null @@ -1,29 +0,0 @@ -package cn.iocoder.mall.order.biz.convert; - -import cn.iocoder.mall.order.api.bo.OrderInfoBO.LogisticsDetail; -import cn.iocoder.mall.order.biz.dataobject.OrderLogisticsDetailDO; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:39:07+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class OrderLogisticsDetailConvertImpl implements OrderLogisticsDetailConvert { - - @Override - public LogisticsDetail convertLogisticsDetail(OrderLogisticsDetailDO orderLogisticsDetailDO) { - if ( orderLogisticsDetailDO == null ) { - return null; - } - - LogisticsDetail logisticsDetail = new LogisticsDetail(); - - logisticsDetail.setId( orderLogisticsDetailDO.getId() ); - logisticsDetail.setOrderLogisticsId( orderLogisticsDetailDO.getOrderLogisticsId() ); - logisticsDetail.setLogisticsTime( orderLogisticsDetailDO.getLogisticsTime() ); - logisticsDetail.setLogisticsInformation( orderLogisticsDetailDO.getLogisticsInformation() ); - - return logisticsDetail; - } -} diff --git a/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/OrderRecipientConvertImpl.java b/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/OrderRecipientConvertImpl.java deleted file mode 100644 index e568b5e53..000000000 --- a/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/OrderRecipientConvertImpl.java +++ /dev/null @@ -1,100 +0,0 @@ -package cn.iocoder.mall.order.biz.convert; - -import cn.iocoder.mall.order.api.bo.OrderInfoBO.Recipient; -import cn.iocoder.mall.order.api.bo.OrderRecipientBO; -import cn.iocoder.mall.order.api.dto.OrderCreateDTO; -import cn.iocoder.mall.order.biz.dataobject.OrderRecipientDO; -import cn.iocoder.mall.user.api.bo.UserAddressBO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:39:07+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class OrderRecipientConvertImpl implements OrderRecipientConvert { - - @Override - public OrderRecipientDO convert(OrderCreateDTO orderCreateDTO) { - if ( orderCreateDTO == null ) { - return null; - } - - OrderRecipientDO orderRecipientDO = new OrderRecipientDO(); - - return orderRecipientDO; - } - - @Override - public OrderRecipientDO convert(UserAddressBO userAddressBO) { - if ( userAddressBO == null ) { - return null; - } - - OrderRecipientDO orderRecipientDO = new OrderRecipientDO(); - - orderRecipientDO.setId( userAddressBO.getId() ); - orderRecipientDO.setAreaNo( userAddressBO.getAreaNo() ); - orderRecipientDO.setName( userAddressBO.getName() ); - orderRecipientDO.setMobile( userAddressBO.getMobile() ); - orderRecipientDO.setAddress( userAddressBO.getAddress() ); - - return orderRecipientDO; - } - - @Override - public OrderRecipientBO convert(OrderRecipientDO orderRecipientDO) { - if ( orderRecipientDO == null ) { - return null; - } - - OrderRecipientBO orderRecipientBO = new OrderRecipientBO(); - - orderRecipientBO.setCreateTime( orderRecipientDO.getCreateTime() ); - orderRecipientBO.setUpdateTime( orderRecipientDO.getUpdateTime() ); - orderRecipientBO.setId( orderRecipientDO.getId() ); - orderRecipientBO.setOrderId( orderRecipientDO.getOrderId() ); - orderRecipientBO.setAreaNo( orderRecipientDO.getAreaNo() ); - orderRecipientBO.setName( orderRecipientDO.getName() ); - orderRecipientBO.setMobile( orderRecipientDO.getMobile() ); - orderRecipientBO.setType( orderRecipientDO.getType() ); - orderRecipientBO.setAddress( orderRecipientDO.getAddress() ); - - return orderRecipientBO; - } - - @Override - public List convert(List orderRecipientDOList) { - if ( orderRecipientDOList == null ) { - return null; - } - - List list = new ArrayList( orderRecipientDOList.size() ); - for ( OrderRecipientDO orderRecipientDO : orderRecipientDOList ) { - list.add( convert( orderRecipientDO ) ); - } - - return list; - } - - @Override - public Recipient convertOrderInfoRecipient(OrderRecipientDO orderRecipientDO) { - if ( orderRecipientDO == null ) { - return null; - } - - Recipient recipient = new Recipient(); - - recipient.setId( orderRecipientDO.getId() ); - recipient.setOrderId( orderRecipientDO.getOrderId() ); - recipient.setAreaNo( orderRecipientDO.getAreaNo() ); - recipient.setName( orderRecipientDO.getName() ); - recipient.setMobile( orderRecipientDO.getMobile() ); - recipient.setType( orderRecipientDO.getType() ); - recipient.setAddress( orderRecipientDO.getAddress() ); - - return recipient; - } -} diff --git a/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/OrderReturnConvertImpl.java b/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/OrderReturnConvertImpl.java deleted file mode 100644 index c5dcbd583..000000000 --- a/order/order-service-impl/target/generated-sources/annotations/cn/iocoder/mall/order/biz/convert/OrderReturnConvertImpl.java +++ /dev/null @@ -1,145 +0,0 @@ -package cn.iocoder.mall.order.biz.convert; - -import cn.iocoder.mall.order.api.bo.OrderReturnInfoBO.OrderItem; -import cn.iocoder.mall.order.api.bo.OrderReturnInfoBO.ReturnInfo; -import cn.iocoder.mall.order.api.bo.OrderReturnListBO.OrderReturn; -import cn.iocoder.mall.order.api.dto.OrderReturnApplyDTO; -import cn.iocoder.mall.order.api.dto.OrderReturnCreateDTO; -import cn.iocoder.mall.order.biz.dataobject.OrderItemDO; -import cn.iocoder.mall.order.biz.dataobject.OrderReturnDO; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; - -@Generated( - value = "org.mapstruct.ap.MappingProcessor", - date = "2019-05-24T11:39:07+0800", - comments = "version: 1.3.0.Final, compiler: javac, environment: Java 1.8.0_121 (Oracle Corporation)" -) -public class OrderReturnConvertImpl implements OrderReturnConvert { - - @Override - public OrderReturnDO convert(OrderReturnCreateDTO orderReturnCreate) { - if ( orderReturnCreate == null ) { - return null; - } - - OrderReturnDO orderReturnDO = new OrderReturnDO(); - - orderReturnDO.setOrderId( orderReturnCreate.getOrderId() ); - - return orderReturnDO; - } - - @Override - public OrderReturnDO convert(OrderReturnApplyDTO orderReturnApplyDTO) { - if ( orderReturnApplyDTO == null ) { - return null; - } - - OrderReturnDO orderReturnDO = new OrderReturnDO(); - - orderReturnDO.setOrderId( orderReturnApplyDTO.getOrderId() ); - orderReturnDO.setReason( orderReturnApplyDTO.getReason() ); - orderReturnDO.setDescribe( orderReturnApplyDTO.getDescribe() ); - - return orderReturnDO; - } - - @Override - public ReturnInfo convert(OrderReturnDO orderReturnDO) { - if ( orderReturnDO == null ) { - return null; - } - - ReturnInfo returnInfo = new ReturnInfo(); - - returnInfo.setId( orderReturnDO.getId() ); - returnInfo.setServiceNumber( orderReturnDO.getServiceNumber() ); - returnInfo.setOrderId( orderReturnDO.getOrderId() ); - returnInfo.setOrderNo( orderReturnDO.getOrderNo() ); - returnInfo.setOrderLogisticsId( orderReturnDO.getOrderLogisticsId() ); - returnInfo.setRefundPrice( orderReturnDO.getRefundPrice() ); - returnInfo.setReason( orderReturnDO.getReason() ); - returnInfo.setDescribe( orderReturnDO.getDescribe() ); - returnInfo.setApprovalTime( orderReturnDO.getApprovalTime() ); - returnInfo.setLogisticsTime( orderReturnDO.getLogisticsTime() ); - returnInfo.setReceiverTime( orderReturnDO.getReceiverTime() ); - returnInfo.setClosingTime( orderReturnDO.getClosingTime() ); - returnInfo.setServiceType( orderReturnDO.getServiceType() ); - returnInfo.setStatus( orderReturnDO.getStatus() ); - - return returnInfo; - } - - @Override - public List convert(List orderItemDOList) { - if ( orderItemDOList == null ) { - return null; - } - - List list = new ArrayList( orderItemDOList.size() ); - for ( OrderItemDO orderItemDO : orderItemDOList ) { - list.add( orderItemDOToOrderItem( orderItemDO ) ); - } - - return list; - } - - @Override - public List convertListBO(List orderReturnDOList) { - if ( orderReturnDOList == null ) { - return null; - } - - List list = new ArrayList( orderReturnDOList.size() ); - for ( OrderReturnDO orderReturnDO : orderReturnDOList ) { - list.add( orderReturnDOToOrderReturn( orderReturnDO ) ); - } - - return list; - } - - protected OrderItem orderItemDOToOrderItem(OrderItemDO orderItemDO) { - if ( orderItemDO == null ) { - return null; - } - - OrderItem orderItem = new OrderItem(); - - orderItem.setSkuId( orderItemDO.getSkuId() ); - orderItem.setSkuName( orderItemDO.getSkuName() ); - orderItem.setSkuImage( orderItemDO.getSkuImage() ); - orderItem.setQuantity( orderItemDO.getQuantity() ); - orderItem.setPresentTotal( orderItemDO.getPresentTotal() ); - - return orderItem; - } - - protected OrderReturn orderReturnDOToOrderReturn(OrderReturnDO orderReturnDO) { - if ( orderReturnDO == null ) { - return null; - } - - OrderReturn orderReturn = new OrderReturn(); - - orderReturn.setId( orderReturnDO.getId() ); - orderReturn.setServiceNumber( orderReturnDO.getServiceNumber() ); - orderReturn.setOrderId( orderReturnDO.getOrderId() ); - orderReturn.setOrderNo( orderReturnDO.getOrderNo() ); - orderReturn.setOrderLogisticsId( orderReturnDO.getOrderLogisticsId() ); - orderReturn.setRefundPrice( orderReturnDO.getRefundPrice() ); - orderReturn.setReason( orderReturnDO.getReason() ); - orderReturn.setDescribe( orderReturnDO.getDescribe() ); - orderReturn.setApprovalTime( orderReturnDO.getApprovalTime() ); - orderReturn.setLogisticsTime( orderReturnDO.getLogisticsTime() ); - orderReturn.setReceiverTime( orderReturnDO.getReceiverTime() ); - orderReturn.setClosingTime( orderReturnDO.getClosingTime() ); - orderReturn.setServiceType( orderReturnDO.getServiceType() ); - orderReturn.setStatus( orderReturnDO.getStatus() ); - orderReturn.setCreateTime( orderReturnDO.getCreateTime() ); - orderReturn.setUpdateTime( orderReturnDO.getUpdateTime() ); - - return orderReturn; - } -}