Commit d7c0fbb0 by 徐康

Merge branch 'feature/20201013_麦咖啡p4v1问题修复_xukangg'

parents 35f621bc 0ec414fd
...@@ -493,6 +493,7 @@ public class OrderSdkAdapter { ...@@ -493,6 +493,7 @@ public class OrderSdkAdapter {
//1=订单,2=订单商品,3=售后单 //1=订单,2=订单商品,3=售后单
orderCostCreateReq.setBillType(1); orderCostCreateReq.setBillType(1);
orderCostCreateReq.setProductId(accountRequest.getProductId()); orderCostCreateReq.setProductId(accountRequest.getProductId());
orderCostCreateReq.setNote(accountRequest.getNote());
orderCostCreateReqs.add(orderCostCreateReq); orderCostCreateReqs.add(orderCostCreateReq);
} else { } else {
OrderSettlementCreateReq orderSettlementCreateReq = new OrderSettlementCreateReq(); OrderSettlementCreateReq orderSettlementCreateReq = new OrderSettlementCreateReq();
......
...@@ -40,6 +40,8 @@ public class CreateOrderAccountRequest extends BaseConfig { ...@@ -40,6 +40,8 @@ public class CreateOrderAccountRequest extends BaseConfig {
*/ */
private String addInfo; private String addInfo;
private String note;
private String productId; private String productId;
private Integer discountQty; private Integer discountQty;
......
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
<dependency> <dependency>
<groupId>com.freemud.application.service.sdk</groupId> <groupId>com.freemud.application.service.sdk</groupId>
<artifactId>storecenter-sdk</artifactId> <artifactId>storecenter-sdk</artifactId>
<version>3.1.9.RELEASE</version> <version>3.2.1.RELEASE</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>cn.freemud</groupId> <groupId>cn.freemud</groupId>
......
...@@ -183,7 +183,7 @@ public class OrderAdapter { ...@@ -183,7 +183,7 @@ public class OrderAdapter {
} }
} }
createOrderDto.setProducts(products); createOrderDto.setProducts(products);
// boolean hasDeliveryMonthCard = false; boolean hasDeliveryMonthCard = false;
for (ActivityDiscountsDto activityDiscountsDto : activityDiscountsDtos) { for (ActivityDiscountsDto activityDiscountsDto : activityDiscountsDtos) {
CreateOrderAccountRequest createOrderAccountDto = CreateOrderAccountRequest.builder() CreateOrderAccountRequest createOrderAccountDto = CreateOrderAccountRequest.builder()
.accountId(activityDiscountsDto.getActivityCode()) .accountId(activityDiscountsDto.getActivityCode())
...@@ -200,9 +200,9 @@ public class OrderAdapter { ...@@ -200,9 +200,9 @@ public class OrderAdapter {
jsonObject.put("tenderId", activityDiscountsDto.getTenderId()); jsonObject.put("tenderId", activityDiscountsDto.getTenderId());
} else if(ActivityTypeEnum.TYPE_34.getCode().equals(activityDiscountsDto.getActivityType())) { } else if(ActivityTypeEnum.TYPE_34.getCode().equals(activityDiscountsDto.getActivityType())) {
jsonObject.put("customerCode", activityDiscountsDto.getTenderId()); jsonObject.put("customerCode", activityDiscountsDto.getTenderId());
// if(null != activityDiscountsDto.getExtendType() && activityDiscountsDto.getExtendType() == 2) { if(null != activityDiscountsDto.getExtendType() && activityDiscountsDto.getExtendType() == 2) {
// hasDeliveryMonthCard = true; hasDeliveryMonthCard = true;
// } }
} }
if(null != activityDiscountsDto.getExtendType()) { if(null != activityDiscountsDto.getExtendType()) {
jsonObject.put("extendType", activityDiscountsDto.getExtendType()); jsonObject.put("extendType", activityDiscountsDto.getExtendType());
...@@ -221,9 +221,9 @@ public class OrderAdapter { ...@@ -221,9 +221,9 @@ public class OrderAdapter {
.sequence(orderAccountIndex++) .sequence(orderAccountIndex++)
.actualPrice(discountDeliveryAmount) .actualPrice(discountDeliveryAmount)
.build(); .build();
// if(hasDeliveryMonthCard && StringUtils.isNotBlank(storeResponseDto.getBenefitCardDiscountAmount())) { if(hasDeliveryMonthCard && StringUtils.isNotBlank(storeResponseDto.getBenefitCardDiscountAmount())) {
// createOrderAccountDto.setProductId(storeResponseDto.getBenefitCardDiscountAmount()+"00"); createOrderAccountDto.setNote((Integer.parseInt(storeResponseDto.getBenefitCardDiscountAmount())*100)+"");
// } }
orderAccountDtos.add(createOrderAccountDto); orderAccountDtos.add(createOrderAccountDto);
} }
if (packageAmount > 0) { if (packageAmount > 0) {
...@@ -1117,10 +1117,10 @@ public class OrderAdapter { ...@@ -1117,10 +1117,10 @@ public class OrderAdapter {
responseVo.setPayStatusDesc(Optional.ofNullable(PayStatus.getByCode(ordersBean.getPayStatus())) responseVo.setPayStatusDesc(Optional.ofNullable(PayStatus.getByCode(ordersBean.getPayStatus()))
.map(PayStatus::getDesc).orElse("")); .map(PayStatus::getDesc).orElse(""));
responseVo.setPayVoucher(orderExtInfoDto != null ? orderExtInfoDto.getPayTransId() : ""); responseVo.setPayVoucher(orderExtInfoDto != null ? orderExtInfoDto.getPayTransId() : "");
// if(mcCafePartnerId.equals(ordersBean.getCompanyId())) { if(mcCafePartnerId.equals(ordersBean.getCompanyId())) {
// responseVo.setPayVoucherBarCode(Base64.getEncoder().encodeToString( responseVo.setPayVoucherBarCode(Base64.getEncoder().encodeToString(
// BarcodeUtil.generateBarCode128(responseVo.getPayVoucher(),null,null, true, true))); BarcodeUtil.generateBarCode128(responseVo.getPayVoucher(),null,null, true, true)));
// } }
responseVo.setPayCreateTime(orderExtInfoDto != null ? orderExtInfoDto.getPayDate() : ""); responseVo.setPayCreateTime(orderExtInfoDto != null ? orderExtInfoDto.getPayDate() : "");
responseVo.setPayChannel(ordersBean.getPayChannel()); responseVo.setPayChannel(ordersBean.getPayChannel());
if (StringUtils.isNotBlank(ordersBean.getPayChannel())) { if (StringUtils.isNotBlank(ordersBean.getPayChannel())) {
......
...@@ -14,7 +14,7 @@ public class DateUtils { ...@@ -14,7 +14,7 @@ public class DateUtils {
if (date == null ){ if (date == null ){
return null; return null;
} }
String[] week={"(周一)","(周二)","(周三)","(周四)","(周五)","(周六)","(周日)"}; String[] week={"(周日)","(周一)","(周二)","(周三)","(周四)","(周五)","(周六)"};
Calendar calendar =Calendar.getInstance(); Calendar calendar =Calendar.getInstance();
calendar.setTime(date); calendar.setTime(date);
int w = calendar.get(Calendar.DAY_OF_WEEK) -1 ; int w = calendar.get(Calendar.DAY_OF_WEEK) -1 ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment