Commit 88309b95fb9135ffb6b157c44b94759271b1a1a8

Authored by zhangxing
1 parent d9cca3f5

私有方法

src/main/java/com/diligrp/xtrade/order/domain/builder/DefaultOrderCreator.java
@@ -117,14 +117,14 @@ public class DefaultOrderCreator { @@ -117,14 +117,14 @@ public class DefaultOrderCreator {
117 items.add(orderItemDo); 117 items.add(orderItemDo);
118 } 118 }
119 119
120 - public boolean isBuildBuyerInfo() { 120 + private boolean isBuildBuyerInfo() {
121 return this.baccountDto == null ? false : true; 121 return this.baccountDto == null ? false : true;
122 } 122 }
123 123
124 /** 124 /**
125 * 构建卖家信息 125 * 构建卖家信息
126 */ 126 */
127 - public void buildSeller() { 127 + private void buildSeller() {
128 orderDo.setSaccount(saccountDto.getAccountId()); 128 orderDo.setSaccount(saccountDto.getAccountId());
129 orderDo.setSname(saccountDto.getAccountName()); 129 orderDo.setSname(saccountDto.getAccountName());
130 orderDo.setSmobile(saccountDto.getMobile()); 130 orderDo.setSmobile(saccountDto.getMobile());
@@ -134,7 +134,7 @@ public class DefaultOrderCreator { @@ -134,7 +134,7 @@ public class DefaultOrderCreator {
134 /** 134 /**
135 * 构建买家信息 135 * 构建买家信息
136 */ 136 */
137 - public void buildBuyer() { 137 + private void buildBuyer() {
138 orderDo.setBaccount(baccountDto.getAccountId()); 138 orderDo.setBaccount(baccountDto.getAccountId());
139 orderDo.setBname(baccountDto.getAccountName()); 139 orderDo.setBname(baccountDto.getAccountName());
140 orderDo.setBmobile(baccountDto.getMobile()); 140 orderDo.setBmobile(baccountDto.getMobile());
@@ -144,7 +144,7 @@ public class DefaultOrderCreator { @@ -144,7 +144,7 @@ public class DefaultOrderCreator {
144 /** 144 /**
145 * 构建基本信息 145 * 构建基本信息
146 */ 146 */
147 - public void buildBaseInfo() { 147 + private void buildBaseInfo() {
148 orderDo.setOrderId(orderCreateDto.getOrderId()); 148 orderDo.setOrderId(orderCreateDto.getOrderId());
149 orderDo.setOrderType(OrderType.NORMAL.getCode()); 149 orderDo.setOrderType(OrderType.NORMAL.getCode());
150 orderDo.setTradeType(TradeType.NORMAL.getCode()); 150 orderDo.setTradeType(TradeType.NORMAL.getCode());