Merge branch '2.0-dev' into 2.0-master

dev-discount
袁野 2 years ago
commit 478fd3c074
  1. 8
      hai-bweb/src/main/java/com/bweb/controller/Goods/GoodsDetailController.java
  2. 42
      hai-bweb/src/main/java/com/bweb/controller/HighApproveController.java
  3. 2
      hai-bweb/src/main/java/com/bweb/controller/HighTestController.java
  4. 8
      hai-cweb/src/main/java/com/cweb/controller/CmsContentController.java
  5. 2
      hai-cweb/src/main/java/com/cweb/controller/Goods/DeliveryAddressController.java
  6. 4
      hai-cweb/src/main/java/com/cweb/controller/Goods/GoodsController.java
  7. 48
      hai-cweb/src/main/java/com/cweb/controller/Goods/ShoppingCartController.java
  8. 57
      hai-order/src/main/java/com/web/controller/business/GoodsOrderController.java
  9. 111
      hai-order/src/main/java/com/web/controller/business/OrderMobileRechargeController.java
  10. 2
      hai-schedule/src/main/java/com/hai/schedule/HighRechargeOrderSchedule.java
  11. 4
      hai-service/src/main/java/com/hai/config/PayloService.java
  12. 119
      hai-service/src/main/java/com/hai/config/RechargeConfig.java
  13. 39
      hai-service/src/main/java/com/hai/dao/GoodsDetailMapper.java
  14. 14
      hai-service/src/main/java/com/hai/dao/GoodsDetailSqlProvider.java
  15. 65
      hai-service/src/main/java/com/hai/dao/HighChildOrderMapper.java
  16. 14
      hai-service/src/main/java/com/hai/dao/HighChildOrderSqlProvider.java
  17. 84
      hai-service/src/main/java/com/hai/dao/HighOrderMapper.java
  18. 182
      hai-service/src/main/java/com/hai/dao/HighOrderSqlProvider.java
  19. 20
      hai-service/src/main/java/com/hai/entity/GoodsDetail.java
  20. 70
      hai-service/src/main/java/com/hai/entity/GoodsDetailExample.java
  21. 16
      hai-service/src/main/java/com/hai/entity/HighChildOrder.java
  22. 60
      hai-service/src/main/java/com/hai/entity/HighChildOrderExample.java
  23. 214
      hai-service/src/main/java/com/hai/entity/HighOrder.java
  24. 828
      hai-service/src/main/java/com/hai/entity/HighOrderExample.java
  25. 2
      hai-service/src/main/java/com/hai/enum_type/ApproveType.java
  26. 12
      hai-service/src/main/java/com/hai/goods/model/GoodsModel.java
  27. 3
      hai-service/src/main/java/com/hai/goods/service/GoodsDetailService.java
  28. 14
      hai-service/src/main/java/com/hai/goods/service/GoodsPresentService.java
  29. 40
      hai-service/src/main/java/com/hai/goods/service/impl/GoodsDetailServiceImpl.java
  30. 113
      hai-service/src/main/java/com/hai/goods/service/impl/GoodsPresentServiceImpl.java
  31. 14
      hai-service/src/main/java/com/hai/mobile/service/MobileHandleService.java
  32. 6
      hai-service/src/main/java/com/hai/mobile/service/impl/MobileHandleServiceImpl.java
  33. 19
      hai-service/src/main/java/com/hai/order/model/GoodsChildOrderExtModel.java
  34. 21
      hai-service/src/main/java/com/hai/order/service/OrderService.java
  35. 31
      hai-service/src/main/java/com/hai/order/service/impl/OrderCreateHandleServiceImpl.java
  36. 49
      hai-service/src/main/java/com/hai/order/service/impl/OrderPaySuccessServiceImpl.java
  37. 172
      hai-service/src/main/java/com/hai/order/service/impl/OrderServiceImpl.java
  38. 1
      hai-service/src/main/java/com/hai/order/topic/OrderTopic.java
  39. 16
      hai-service/src/main/java/com/hai/order/utils/OrderUtil.java
  40. 10
      hai-service/src/main/java/com/hai/service/OutRechargeOrderService.java
  41. 11
      hai-service/src/main/java/com/hai/service/impl/HighApproveServiceImpl.java
  42. 6
      hai-service/src/main/java/com/hai/service/impl/HighCouponCodeServiceImpl.java
  43. 4
      hai-service/src/main/java/com/hai/service/impl/HighDiscountAgentCodeServiceImpl.java
  44. 3
      hai-service/src/main/java/com/hai/service/impl/HighGoldRecServiceImpl.java
  45. 359
      hai-service/src/main/java/com/hai/service/impl/OutRechargeOrderServiceImpl.java
  46. 30
      v1/src/main/java/com/v1/controller/WxMsgController.java
  47. 5
      v1/src/main/java/com/v1/controller/business/OrderRebateController.java
  48. 17
      v1/src/main/java/com/v1/controller/orderController.java

@ -60,6 +60,7 @@ public class GoodsDetailController {
public ResponseData getListGoodsDetail( public ResponseData getListGoodsDetail(
@RequestParam(value = "title", required = false) String title, @RequestParam(value = "title", required = false) String title,
@RequestParam(value = "status", required = false) Integer status, @RequestParam(value = "status", required = false) Integer status,
@RequestParam(value = "goodsLabel", required = false) String goodsLabel,
@RequestParam(name = "pageNum", required = true) Integer pageNum, @RequestParam(name = "pageNum", required = true) Integer pageNum,
@RequestParam(name = "pageSize", required = true) Integer pageSize @RequestParam(name = "pageSize", required = true) Integer pageSize
, HttpServletRequest request , HttpServletRequest request
@ -73,6 +74,8 @@ public class GoodsDetailController {
map.put("title", title); map.put("title", title);
map.put("status", status); map.put("status", status);
map.put("goodsLabel", goodsLabel);
map.put("companyId", userInfoModel.getBsCompany().getId());
if (userInfoModel.getSecUser().getExt3() != null) { if (userInfoModel.getSecUser().getExt3() != null) {
map.put("opId" , userInfoModel.getSecUser().getId()); map.put("opId" , userInfoModel.getSecUser().getId());
@ -161,9 +164,7 @@ public class GoodsDetailController {
goodsDetail.setCreateTime(goods.getCreateTime()); goodsDetail.setCreateTime(goods.getCreateTime());
goodsDetail.setUpdateTime(new Date()); goodsDetail.setUpdateTime(new Date());
goodsDetail.setGoodsTypeName(goodsType.getTitle()); goodsDetail.setGoodsTypeName(goodsType.getTitle());
goodsDetail.setCompanyId(userInfoModel.getBsCompany().getId());
goodsDetail.setOpId(userInfoModel.getSecUser().getId());
goodsDetail.setOpName(userInfoModel.getSecUser().getLoginName());
goodsDetailService.updateGoodsDetail(goodsDetail); goodsDetailService.updateGoodsDetail(goodsDetail);
@ -271,6 +272,7 @@ public class GoodsDetailController {
approve.setUpdateTime(new Date()); approve.setUpdateTime(new Date());
approve.setSubmitOperatorId(userInfoModel.getSecUser().getId()); approve.setSubmitOperatorId(userInfoModel.getSecUser().getId());
approve.setSubmitOperatorName(userInfoModel.getSecUser().getUserName()); approve.setSubmitOperatorName(userInfoModel.getSecUser().getUserName());
approve.setExt1(userInfoModel.getBsCompany().getId().toString());
// 增加审批 // 增加审批
highApproveService.insertApprove(approve); highApproveService.insertApprove(approve);

@ -10,8 +10,13 @@ import com.hai.common.security.SessionObject;
import com.hai.common.security.UserCenter; import com.hai.common.security.UserCenter;
import com.hai.common.utils.DateUtil; import com.hai.common.utils.DateUtil;
import com.hai.common.utils.ResponseMsgUtil; import com.hai.common.utils.ResponseMsgUtil;
import com.hai.entity.GoodsDetail;
import com.hai.entity.GoodsSku;
import com.hai.entity.HighApprove; import com.hai.entity.HighApprove;
import com.hai.enum_type.ApproveType; import com.hai.enum_type.ApproveType;
import com.hai.goods.model.GoodsModel;
import com.hai.goods.service.GoodsDetailService;
import com.hai.goods.service.GoodsSkuService;
import com.hai.model.ResponseData; import com.hai.model.ResponseData;
import com.hai.model.UserInfoModel; import com.hai.model.UserInfoModel;
import com.hai.service.HighApproveService; import com.hai.service.HighApproveService;
@ -20,14 +25,17 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.List;
import java.util.Map; import java.util.Map;
/** /**
@ -46,12 +54,18 @@ public class HighApproveController {
@Autowired @Autowired
private UserCenter userCenter; private UserCenter userCenter;
@Resource
private GoodsSkuService goodsSkuService;
@Resource @Resource
private HighApproveService highApproveService; private HighApproveService highApproveService;
@Resource @Resource
private HighCouponService highCouponService; private HighCouponService highCouponService;
@Resource
private GoodsDetailService goodsDetailService;
@RequestMapping(value="/approveProcessed",method = RequestMethod.POST) @RequestMapping(value="/approveProcessed",method = RequestMethod.POST)
@ResponseBody @ResponseBody
@ApiOperation(value = "审批") @ApiOperation(value = "审批")
@ -112,6 +126,26 @@ public class HighApproveController {
if (approve.getObjectType().equals(ApproveType.UP_SHELF_APPROVE.getType())) { if (approve.getObjectType().equals(ApproveType.UP_SHELF_APPROVE.getType())) {
map.put("object", highCouponService.getCouponById(approve.getObjectId())); map.put("object", highCouponService.getCouponById(approve.getObjectId()));
} }
if (approve.getObjectType().equals(ApproveType.GOODS_UP_SHELF_APPROVE.getType())) {
GoodsDetail goodsDetail = goodsDetailService.findGoodsDetailById(approve.getObjectId());
if (goodsDetail == null) {
log.error("GoodsDetailController -> findGoodsDetailById() error!");
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到相关商品信息");
}
GoodsModel goodsModel = new GoodsModel();
BeanUtils.copyProperties(goodsDetail, goodsModel);
goodsModel.setGoodsSkus(goodsSkuService.getGoodsSkuList(goodsDetail.getId()));
map.put("object", goodsModel);
}
return ResponseMsgUtil.success(map); return ResponseMsgUtil.success(map);
@ -129,12 +163,18 @@ public class HighApproveController {
@RequestParam(name = "objectId", required = false) Long objectId, @RequestParam(name = "objectId", required = false) Long objectId,
@RequestParam(name = "objectName", required = false) String objectName, @RequestParam(name = "objectName", required = false) String objectName,
@RequestParam(name = "pageNum", required = true) Integer pageNum, @RequestParam(name = "pageNum", required = true) Integer pageNum,
@RequestParam(name = "pageSize", required = true) Integer pageSize) { @RequestParam(name = "pageSize", required = true) Integer pageSize ,HttpServletRequest request) {
try { try {
SessionObject sessionObject = userCenter.getSessionObject(request);
UserInfoModel userInfoModel = (UserInfoModel) sessionObject.getObject();
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("approveSerialNo", approveSerialNo); map.put("approveSerialNo", approveSerialNo);
map.put("objectType", objectType); map.put("objectType", objectType);
if (objectType == 4) {
map.put("companyId", userInfoModel.getBsCompany().getId());
}
map.put("objectId", objectId); map.put("objectId", objectId);
map.put("objectName", objectName); map.put("objectName", objectName);

File diff suppressed because one or more lines are too long

@ -86,7 +86,6 @@ public class CmsContentController {
List<JSONObject> objectList = new ArrayList<>(); List<JSONObject> objectList = new ArrayList<>();
for (CmsCategory cmsCategory : categoryList) { for (CmsCategory cmsCategory : categoryList) {
JSONObject object = new JSONObject(); JSONObject object = new JSONObject();
// 1.小图一行四个 2.轮播图 3.消息通知 4.大图展示 5.一横图三小图 6.数据库数据 7.小图一行五个 // 1.小图一行四个 2.轮播图 3.消息通知 4.大图展示 5.一横图三小图 6.数据库数据 7.小图一行五个
@ -153,13 +152,14 @@ public class CmsContentController {
} }
if (cmsCategory.getType() == 3 || cmsCategory.getType() == 6 || cmsCategory.getType() == 9) { if (cmsCategory.getType() == 3 || cmsCategory.getType() == 6 || cmsCategory.getType() == 9) {
if (object.getJSONArray("childDate") != null && object.getJSONArray("childDate").size() >0) { if (object.getJSONArray("childDate") != null && object.getJSONArray("childDate").size() >0 ) {
objectList.add(object); objectList.add(object);
} }
} else { } else {
objectList.add(object); if (object.getJSONArray("childCategory").size() >0 ) {
objectList.add(object);
}
} }
} }
return ResponseMsgUtil.success(dataWhetherNull ? null:objectList); return ResponseMsgUtil.success(dataWhetherNull ? null:objectList);

@ -139,7 +139,7 @@ public class DeliveryAddressController {
} }
if (deliveryAddress.getWhetherDefault()) { if (deliveryAddress.getWhetherDefault()) {
deliveryAddressService.cleanDeliveryAddressDefault(deliveryAddress.getUserId()); deliveryAddressService.cleanDeliveryAddressDefault(userInfoModel.getHighUser().getId());
} }
GoodsDeliveryAddress goodsDeliveryAddress = deliveryAddressService.findDeliveryAddressById(deliveryAddress.getId()); GoodsDeliveryAddress goodsDeliveryAddress = deliveryAddressService.findDeliveryAddressById(deliveryAddress.getId());

@ -64,6 +64,8 @@ public class GoodsController {
@RequestParam(value = "title", required = false) String title, @RequestParam(value = "title", required = false) String title,
@RequestParam(value = "goodsType", required = false) Long goodsType, @RequestParam(value = "goodsType", required = false) Long goodsType,
@RequestParam(value = "price", required = false) Integer price, @RequestParam(value = "price", required = false) Integer price,
@RequestParam(value = "companyId", required = false) Long companyId,
@RequestParam(value = "goodsLabel", required = false) String goodsLabel,
@RequestParam(name = "pageNum", required = true) Integer pageNum, @RequestParam(name = "pageNum", required = true) Integer pageNum,
@RequestParam(name = "pageSize", required = true) Integer pageSize @RequestParam(name = "pageSize", required = true) Integer pageSize
) { ) {
@ -74,6 +76,8 @@ public class GoodsController {
map.put("title", title); map.put("title", title);
map.put("goodsType", goodsType); map.put("goodsType", goodsType);
map.put("companyId", companyId);
map.put("goodsLabel", goodsLabel);
map.put("status", 1); map.put("status", 1);

@ -113,8 +113,7 @@ public class ShoppingCartController {
if (shoppingCart == null || if (shoppingCart == null ||
shoppingCart.getGoodsId() == null || shoppingCart.getGoodsId() == null ||
shoppingCart.getSku() == null || shoppingCart.getSku() == null ||
shoppingCart.getNum() == null || shoppingCart.getNum() == null
shoppingCart.getWhetherCheck() == null
) { ) {
log.error("GoodsDetailController -> insertProduct() error!"); log.error("GoodsDetailController -> insertProduct() error!");
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, "");
@ -148,6 +147,7 @@ public class ShoppingCartController {
shoppingCart.setImg(sku.getShowImg()); shoppingCart.setImg(sku.getShowImg());
shoppingCart.setOriginalPrice(sku.getOriginalPrice()); shoppingCart.setOriginalPrice(sku.getOriginalPrice());
shoppingCart.setLoseEfficacy(false); shoppingCart.setLoseEfficacy(false);
shoppingCart.setWhetherCheck(true);
shoppingCart.setPrice(sku.getPrice()); shoppingCart.setPrice(sku.getPrice());
shoppingCart.setCreateTime(new Date()); shoppingCart.setCreateTime(new Date());
shoppingCart.setUpdateTime(new Date()); shoppingCart.setUpdateTime(new Date());
@ -249,4 +249,48 @@ public class ShoppingCartController {
} }
@RequestMapping(value = "/whetherCheck", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "是否选中")
public ResponseData whetherCheck(
@RequestParam(value = "ids", required = true) String ids,
@RequestParam(value = "whetherCheck", required = true) Boolean whetherCheck
, HttpServletRequest request
) {
try {
// 用户
SessionObject sessionObject = userCenter.getSessionObject(request);
HighUserModel userInfoModel = (HighUserModel) sessionObject.getObject();
String[] idArray = ids.split(",");
for (String id : idArray) {
GoodsShoppingCart shoppingCart = shoppingCartService.findShoppingCartById(Long.valueOf(id));
if (!Objects.equals(userInfoModel.getHighUser().getId(), shoppingCart.getUserId())) {
log.error("GoodsDetailController -> findGoodsDetailById() error!");
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "用户信息错误");
}
if (shoppingCart == null) {
log.error("GoodsDetailController -> insertProduct() error!");
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到相关内容!");
}
shoppingCart.setWhetherCheck(whetherCheck);
shoppingCart.setUpdateTime(new Date());
shoppingCartService.updateShoppingCart(shoppingCart);
}
return ResponseMsgUtil.success("成功");
} catch (Exception e) {
log.error("GoodsDetailController --> findGoodsDetailById() error!", e);
return ResponseMsgUtil.exception(e);
}
}
} }

@ -21,6 +21,7 @@ import com.hai.goods.service.GoodsSkuService;
import com.hai.model.ResponseData; import com.hai.model.ResponseData;
import com.hai.model.UserInfoModel; import com.hai.model.UserInfoModel;
import com.hai.order.model.ExportOrderMobileModel; import com.hai.order.model.ExportOrderMobileModel;
import com.hai.order.model.GoodsChildOrderExtModel;
import com.hai.order.model.GoodsOrderExtModel; import com.hai.order.model.GoodsOrderExtModel;
import com.hai.order.service.OrderService; import com.hai.order.service.OrderService;
import com.hai.order.type.OrderPayType; import com.hai.order.type.OrderPayType;
@ -195,4 +196,60 @@ public class GoodsOrderController {
return ResponseMsgUtil.exception(e); return ResponseMsgUtil.exception(e);
} }
} }
@RequestMapping(value = "/getOrderChildList", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "查询子订单列表")
public ResponseData getOrderChildList(@RequestParam(name = "orderNo", required = false) String orderNo,
@RequestParam(name = "childOrderNo", required = false) String childOrderNo,
@RequestParam(name = "memPhone", required = false) String memPhone,
@RequestParam(name = "status", required = false) Integer status,
@RequestParam(name = "createTimeS", required = false) Long createTimeS,
@RequestParam(name = "createTimeE", required = false) Long createTimeE,
@RequestParam(name = "pageNum", required = true) Integer pageNum,
@RequestParam(name = "pageSize", required = true) Integer pageSize,
HttpServletRequest request) {
try {
UserInfoModel userInfoModel = userCenter.getSessionModel(UserInfoModel.class);
if (userInfoModel == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMPETENCE_INSUFFICIENT, "");
}
Map<String,Object> map = new HashMap<>();
map.put("createTimeS", createTimeS);
map.put("createTimeE", createTimeE);
map.put("orderNo", orderNo);
map.put("secUserId", userInfoModel.getSecUser().getId());
map.put("childOrderNo", childOrderNo);
map.put("memPhone", memPhone);
map.put("status", status);
List<HighChildOrder> list = orderService.getChildOrderList(map);
List<GoodsChildOrderExtModel> goodsChildOrderExtModels = new ArrayList<>();
GoodsChildOrderExtModel model;
for (HighChildOrder order : list) {
model = new GoodsChildOrderExtModel();
BeanUtils.copyProperties(order, model);
GoodsOrder goodsOrder = goodsOrderExtService.findGoodsOrder(order.getChildOrderNo());
if (goodsOrder != null) {
model.setLogisticsStatus(goodsOrder.getStatus());
}
goodsChildOrderExtModels.add(model);
}
goodsChildOrderExtModels = goodsChildOrderExtModels.stream().sorted(Comparator.comparing(GoodsChildOrderExtModel::getLogisticsStatus)).collect(Collectors.toList());
return ResponseMsgUtil.success(PageUtil.initPageInfoObj(pageNum, goodsChildOrderExtModels.size(), pageSize, new PageInfo<>(goodsChildOrderExtModels)));
} catch (Exception e) {
log.error("OrderCouponController --> getOrderList() error!", e);
return ResponseMsgUtil.exception(e);
}
}
} }

@ -21,6 +21,7 @@ import com.hai.order.service.OrderService;
import com.hai.order.type.OrderPayType; import com.hai.order.type.OrderPayType;
import com.hai.order.type.OrderStatus; import com.hai.order.type.OrderStatus;
import com.hai.order.type.RechargePlatformType; import com.hai.order.type.RechargePlatformType;
import com.hai.service.HighOrderService;
import com.hai.service.OutRechargeChildOrderService; import com.hai.service.OutRechargeChildOrderService;
import com.hai.service.OutRechargeOrderService; import com.hai.service.OutRechargeOrderService;
import com.hai.service.impl.OutRechargeOrderServiceImpl; import com.hai.service.impl.OutRechargeOrderServiceImpl;
@ -29,6 +30,8 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
@ -38,10 +41,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import java.io.File; import java.io.File;
import java.util.ArrayList; import java.util.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Controller @Controller
@RequestMapping(value = "mobileRecharge") @RequestMapping(value = "mobileRecharge")
@ -57,12 +57,16 @@ public class OrderMobileRechargeController {
private OutRechargeOrderService outRechargeOrderService; private OutRechargeOrderService outRechargeOrderService;
@Resource @Resource
private OutRechargeChildOrderService outRechargeChildOrderService; private OrderService orderService;
@Resource @Resource
private OrderService orderService; private HighOrderService highOrderService;
@Autowired
private RedisTemplate redisTemplate;
@Resource
private OutRechargeChildOrderService outRechargeChildOrderService;
@RequestMapping(value = "/getOrderList", method = RequestMethod.GET) @RequestMapping(value = "/getOrderList", method = RequestMethod.GET)
@ResponseBody @ResponseBody
@ -71,6 +75,7 @@ public class OrderMobileRechargeController {
@RequestParam(name = "memPhone", required = false) String memPhone, @RequestParam(name = "memPhone", required = false) String memPhone,
@RequestParam(name = "memCardNo", required = false) String memCardNo, @RequestParam(name = "memCardNo", required = false) String memCardNo,
@RequestParam(name = "title", required = false) String title, @RequestParam(name = "title", required = false) String title,
@RequestParam(name = "exceptionStatus", required = false) Boolean exceptionStatus,
@RequestParam(name = "payType", required = false) Integer payType, @RequestParam(name = "payType", required = false) Integer payType,
@RequestParam(name = "orderStatus", required = false) Integer orderStatus, @RequestParam(name = "orderStatus", required = false) Integer orderStatus,
@RequestParam(name = "companyId", required = false) Long companyId, @RequestParam(name = "companyId", required = false) Long companyId,
@ -80,8 +85,8 @@ public class OrderMobileRechargeController {
@RequestParam(name = "payTimeE", required = false) Long payTimeE, @RequestParam(name = "payTimeE", required = false) Long payTimeE,
@RequestParam(name = "finishTimeS", required = false) Long finishTimeS, @RequestParam(name = "finishTimeS", required = false) Long finishTimeS,
@RequestParam(name = "finishTimeE", required = false) Long finishTimeE, @RequestParam(name = "finishTimeE", required = false) Long finishTimeE,
@RequestParam(name = "refundTimeS", required = false) String refundTimeS, @RequestParam(name = "refundTimeS", required = false) Long refundTimeS,
@RequestParam(name = "refundTimeE", required = false) String refundTimeE, @RequestParam(name = "refundTimeE", required = false) Long refundTimeE,
@RequestParam(name = "pageNum", required = true) Integer pageNum, @RequestParam(name = "pageNum", required = true) Integer pageNum,
@RequestParam(name = "pageSize", required = true) Integer pageSize, @RequestParam(name = "pageSize", required = true) Integer pageSize,
HttpServletRequest request) { HttpServletRequest request) {
@ -99,6 +104,8 @@ public class OrderMobileRechargeController {
} else { } else {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMPETENCE_INSUFFICIENT, ""); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMPETENCE_INSUFFICIENT, "");
} }
map.put("exceptionStatus", exceptionStatus);
map.put("createTimeS", createTimeS); map.put("createTimeS", createTimeS);
map.put("createTimeE", createTimeE); map.put("createTimeE", createTimeE);
map.put("payTimeS", payTimeS); map.put("payTimeS", payTimeS);
@ -133,14 +140,15 @@ public class OrderMobileRechargeController {
@RequestParam(name = "payType", required = false) Integer payType, @RequestParam(name = "payType", required = false) Integer payType,
@RequestParam(name = "orderStatus", required = false) Integer orderStatus, @RequestParam(name = "orderStatus", required = false) Integer orderStatus,
@RequestParam(name = "companyId", required = false) Long companyId, @RequestParam(name = "companyId", required = false) Long companyId,
@RequestParam(name = "exceptionStatus", required = false) Boolean exceptionStatus,
@RequestParam(name = "createTimeS", required = false) Long createTimeS, @RequestParam(name = "createTimeS", required = false) Long createTimeS,
@RequestParam(name = "title", required = false) String title, @RequestParam(name = "title", required = false) String title,
@RequestParam(name = "createTimeE", required = false) Long createTimeE, @RequestParam(name = "createTimeE", required = false) Long createTimeE,
@RequestParam(name = "payTimeS", required = false) Long payTimeS, @RequestParam(name = "payTimeS", required = false) Long payTimeS,
@RequestParam(name = "payTimeE", required = false) Long payTimeE, @RequestParam(name = "payTimeE", required = false) Long payTimeE,
@RequestParam(name = "productType", required = false) Integer productType, @RequestParam(name = "productType", required = false) Integer productType,
@RequestParam(name = "refundTimeS", required = false) String refundTimeS, @RequestParam(name = "refundTimeS", required = false) Long refundTimeS,
@RequestParam(name = "refundTimeE", required = false) String refundTimeE, @RequestParam(name = "refundTimeE", required = false) Long refundTimeE,
@RequestParam(name = "finishTimeS", required = false) Long finishTimeS, @RequestParam(name = "finishTimeS", required = false) Long finishTimeS,
@RequestParam(name = "finishTimeE", required = false) Long finishTimeE) { @RequestParam(name = "finishTimeE", required = false) Long finishTimeE) {
try { try {
@ -159,6 +167,7 @@ public class OrderMobileRechargeController {
} }
map.put("createTimeS", createTimeS); map.put("createTimeS", createTimeS);
map.put("createTimeE", createTimeE); map.put("createTimeE", createTimeE);
map.put("exceptionStatus", exceptionStatus);
map.put("payTimeS", payTimeS); map.put("payTimeS", payTimeS);
map.put("payTimeE", payTimeE); map.put("payTimeE", payTimeE);
map.put("finishTimeS", finishTimeS); map.put("finishTimeS", finishTimeS);
@ -240,7 +249,7 @@ public class OrderMobileRechargeController {
public ResponseData getMobileOrderDetail(@RequestParam(name = "orderNo", required = true) String orderNo) { public ResponseData getMobileOrderDetail(@RequestParam(name = "orderNo", required = true) String orderNo) {
try { try {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("tradeOrder", orderService.getOrderDetailByNo(orderNo)); map.put("tradeOrder", orderService.getOrderDetail(orderNo));
map.put("mobileOrder", outRechargeOrderService.findByOrderNo(orderNo)); map.put("mobileOrder", outRechargeOrderService.findByOrderNo(orderNo));
return ResponseMsgUtil.success(map); return ResponseMsgUtil.success(map);
@ -250,4 +259,82 @@ public class OrderMobileRechargeController {
} }
} }
@RequestMapping(value="/refundOrder",method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "订单退款")
public ResponseData refundOrder(@RequestParam(name = "orderNo", required = true) String orderNo) {
OutRechargeOrder outRechargeOrder = outRechargeOrderService.findByOrderNo(orderNo);
String key = "recharge_" + outRechargeOrder.getId();
try {
// 分布式锁占坑
Boolean lock = redisTemplate.opsForValue().setIfAbsent(key, outRechargeOrder.getOrderNo());
if(Boolean.TRUE.equals(lock)) {
// 加锁成功,处理业务
// 判断订单是否可以继续充值 1:满足继续充值条件 2:订单满足退款条件 3:订单不可以退款不可以继续充值 4:订单存在多个充值订单 5:订单充值完成 6:充值订单号未查询到任何充值记录
int orderStatus = outRechargeOrderService.orderWhetherRecharge(outRechargeOrder);
if (orderStatus == 2) {
outRechargeOrderService.refundOrder(outRechargeOrder.getId());
}
if (orderStatus == 6) {
outRechargeOrderService.refundOrder(outRechargeOrder.getId());
}
} else {
// 加锁失败,重试
Thread.sleep(100);
refundOrder(orderNo);
}
HighOrder order = highOrderService.getOrderByOrderNo(orderNo);
order.setExceptionStatus(false);
highOrderService.updateOrder(order);
return ResponseMsgUtil.success("操作成功");
} catch (Exception e) {
log.error("OrderExtController -> getGasOrderDetail() error!",e);
return ResponseMsgUtil.exception(e);
} finally {
// 删除key,释放锁
redisTemplate.delete(key);
}
}
@RequestMapping(value="/orderNormal",method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "订单修改正常")
public ResponseData orderNormal(@RequestParam(name = "orderNo", required = true) String orderNo) {
try {
OutRechargeOrder rechargeOrder = outRechargeOrderService.findByOrderNo(orderNo);
List<OutRechargeChildOrder> rechargeChildOrderList = outRechargeChildOrderService.getListRechargeChildOrderByOrderId(rechargeOrder.getId());
for (OutRechargeChildOrder rechargeChildOrder : rechargeChildOrderList) {
if (rechargeChildOrder.getStatus() == 104) {
rechargeChildOrder.setStatus(102);
}
outRechargeChildOrderService.updateOrder(rechargeChildOrder);
}
HighOrder order = highOrderService.getOrderByOrderNo(orderNo);
order.setExceptionStatus(false);
highOrderService.updateOrder(order);
return ResponseMsgUtil.success("操作成功");
} catch (Exception e) {
log.error("OrderExtController -> getGasOrderDetail() error!",e);
return ResponseMsgUtil.exception(e);
}
}
} }

@ -50,7 +50,7 @@ public class HighRechargeOrderSchedule {
* @Date 14:18 2022/5/31 * @Date 14:18 2022/5/31
* @Param [] * @Param []
*/ */
@Scheduled(cron = "0 0/120 * * * ?") //每120分钟执行一次 @Scheduled(cron = "0 0/60 * * * ?") //每60分钟执行一次
public void initRechargeOrder() { public void initRechargeOrder() {
log.info("处理话费订单定时任务开始"); log.info("处理话费订单定时任务开始");
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();

@ -137,14 +137,14 @@ public class PayloService {
// 请求接口 // 请求接口
JSONObject object = HttpsUtils.doPost(CommonSysConst.getSysConfig().getShellGroupUrl(), param); JSONObject object = HttpsUtils.doPost(CommonSysConst.getSysConfig().getShellGroupUrl(), param);
/* reqLogService.insert( reqLogService.insert(
TripartiteReqLogType.type2, TripartiteReqLogType.type2,
logSerialNo, logSerialNo,
TripartiteReqLogReqType.type1, TripartiteReqLogReqType.type1,
CommonSysConst.getSysConfig().getShellGroupUrl(), CommonSysConst.getSysConfig().getShellGroupUrl(),
this.generateParam(param), this.generateParam(param),
object.toString() object.toString()
);*/ );
if (object == null || !object.getString("status").equals("SUCCESS")) { if (object == null || !object.getString("status").equals("SUCCESS")) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, object == null?"请求失败":object.getString("message")); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, object == null?"请求失败":object.getString("message"));

@ -56,24 +56,30 @@ public class RechargeConfig {
* @Param [com.alibaba.fastjson.JSONObject] * @Param [com.alibaba.fastjson.JSONObject]
* @return com.alibaba.fastjson.JSONObject * @return com.alibaba.fastjson.JSONObject
*/ */
public static JSONObject rechargeOrderByLy(JSONObject object) throws Exception { public static JSONObject rechargeOrderByLy(JSONObject object) {
Map<String,Object> paramMap = new HashMap<>(); try {
paramMap.put("out_trade_num" , object.getString("out_trade_num")); Map<String,Object> paramMap = new HashMap<>();
paramMap.put("product_id" , object.getString("product_id"));
paramMap.put("mobile" , object.getString("mobile"));
paramMap.put("notify_url" , object.getString("notifyUrl"));
paramMap.put("userid" , CommonSysConst.getSysConfig().getLyMemberId());
paramMap.put("sign", WxUtils.generateSignatureLy(paramMap , CommonSysConst.getSysConfig().getLyApiKey() , WXPayConstants.SignType.MD5));
log.info("发起龙阅订单充值="); paramMap.put("out_trade_num" , object.getString("out_trade_num"));
log.info("龙阅订单充值-请求参数: " + JSON.toJSONString(paramMap)); paramMap.put("product_id" , object.getString("product_id"));
paramMap.put("mobile" , object.getString("mobile"));
paramMap.put("notify_url" , object.getString("notifyUrl"));
paramMap.put("userid" , CommonSysConst.getSysConfig().getLyMemberId());
paramMap.put("sign", WxUtils.generateSignatureLy(paramMap , CommonSysConst.getSysConfig().getLyApiKey() , WXPayConstants.SignType.MD5));
JSONObject jsonObject = HttpsUtils.doPost(CommonSysConst.getSysConfig().getLyPostUrl()+ "index/recharge", paramMap); log.info("发起龙阅订单充值");
log.info("龙阅订单充值-请求参数: " + JSON.toJSONString(paramMap));
log.info("龙阅订单充值-响应参数: " + jsonObject.toJSONString()); JSONObject jsonObject = HttpsUtils.doPost(CommonSysConst.getSysConfig().getLyPostUrl()+ "index/recharge", paramMap);
return jsonObject;
log.info("龙阅订单充值-响应参数: " + jsonObject.toJSONString());
return jsonObject;
} catch (Exception e) {
return null;
}
} }
@ -94,7 +100,7 @@ public class RechargeConfig {
paramMap.put("out_trade_nums" , object.getString("out_trade_nums")); paramMap.put("out_trade_nums" , object.getString("out_trade_nums"));
paramMap.put("sign", WxUtils.generateSignatureLy(paramMap , CommonSysConst.getSysConfig().getLyApiKey() , WXPayConstants.SignType.MD5)); paramMap.put("sign", WxUtils.generateSignatureLy(paramMap , CommonSysConst.getSysConfig().getLyApiKey() , WXPayConstants.SignType.MD5));
log.info("发起龙阅订单查询="); log.info("发起龙阅订单查询");
log.info("龙阅订单查询-请求参数: " + JSON.toJSONString(paramMap)); log.info("龙阅订单查询-请求参数: " + JSON.toJSONString(paramMap));
JSONObject jsonObject = HttpsUtils.doPost(CommonSysConst.getSysConfig().getLyPostUrl()+ "index/check", paramMap); JSONObject jsonObject = HttpsUtils.doPost(CommonSysConst.getSysConfig().getLyPostUrl()+ "index/check", paramMap);
@ -112,27 +118,33 @@ public class RechargeConfig {
* @Param [com.alibaba.fastjson.JSONObject] * @Param [com.alibaba.fastjson.JSONObject]
* @return com.alibaba.fastjson.JSONObject * @return com.alibaba.fastjson.JSONObject
*/ */
public static JSONObject rechargeOrderByJj(JSONObject object) throws Exception { public static JSONObject rechargeOrderByJj(JSONObject object) {
String timestamp = String.valueOf(System.currentTimeMillis()); try {
String timestamp = String.valueOf(System.currentTimeMillis());
Map<String , Object> map = new HashMap<>();
map.put("mobile" , object.getString("mobile")); Map<String , Object> map = new HashMap<>();
map.put("amount" , object.getString("amount")); map.put("mobile" , object.getString("mobile"));
map.put("out_order_id" , object.getString("out_order_id")); map.put("amount" , object.getString("amount"));
map.put("app_key" , CommonSysConst.getSysConfig().getJjAppKey()); map.put("out_order_id" , object.getString("out_order_id"));
map.put("timestamp" , timestamp.substring(0,timestamp.length()-3)); map.put("app_key" , CommonSysConst.getSysConfig().getJjAppKey());
map.put("notify_url" , object.getString("notifyUrl")); map.put("timestamp" , timestamp.substring(0,timestamp.length()-3));
String signStr = WxUtils.generateSignatureAppSecret(map, CommonSysConst.getSysConfig().getJjAppSecret() , WXPayConstants.SignType.MD5); map.put("notify_url" , object.getString("notifyUrl"));
map.put("sign" , signStr); String signStr = WxUtils.generateSignatureAppSecret(map, CommonSysConst.getSysConfig().getJjAppSecret() , WXPayConstants.SignType.MD5);
map.put("sign" , signStr);
log.info("发起尖椒充值");
log.info("尖椒订单充值-请求参数: " + JSON.toJSONString(map)); log.info("发起尖椒充值");
log.info("尖椒订单充值-请求参数: " + JSON.toJSONString(map));
JSONObject jsonObject = HttpsUtils.doPost(CommonSysConst.getSysConfig().getJjUrl() + "createOrder" , map);
log.info("尖椒订单充值-响应参数: " + jsonObject.toJSONString());
return jsonObject;
} catch (Exception e) {
return null;
}
JSONObject jsonObject = HttpsUtils.doPost(CommonSysConst.getSysConfig().getJjUrl() + "createOrder" , map);
log.info("尖椒订单充值-响应参数: " + jsonObject.toJSONString());
return jsonObject;
} }
@ -175,25 +187,30 @@ public class RechargeConfig {
* @Param [object] * @Param [object]
* @Return com.alibaba.fastjson.JSONObject * @Return com.alibaba.fastjson.JSONObject
*/ */
public static JSONObject rechargeOrderByHg(JSONObject object) throws Exception { public static JSONObject rechargeOrderByHg(JSONObject object) {
Map<String,Object> paramMap = new HashMap<>(); try {
Map<String,Object> paramMap = new HashMap<>();
paramMap.put("mchid" , CommonSysConst.getSysConfig().getHgMemberId());
paramMap.put("phone" , object.getString("phone")); paramMap.put("mchid" , CommonSysConst.getSysConfig().getHgMemberId());
paramMap.put("orderid" , object.getString("orderid")); paramMap.put("phone" , object.getString("phone"));
paramMap.put("price" , object.getInteger("price").toString()); paramMap.put("orderid" , object.getString("orderid"));
paramMap.put("product_id" , object.getString("product_id")); paramMap.put("price" , object.getInteger("price").toString());
paramMap.put("notify" , CommonSysConst.getSysConfig().getHgNotifyUrl()); paramMap.put("product_id" , object.getString("product_id"));
paramMap.put("sign", WxUtils.generateSignatureHg(paramMap , CommonSysConst.getSysConfig().getHgApiKey() , WXPayConstants.SignType.MD5)); paramMap.put("notify" , CommonSysConst.getSysConfig().getHgNotifyUrl());
paramMap.put("sign", WxUtils.generateSignatureHg(paramMap , CommonSysConst.getSysConfig().getHgApiKey() , WXPayConstants.SignType.MD5));
log.info("发起畅停话费查询订单=");
log.info("畅停话费查询订单-请求参数: " + JSON.toJSONString(paramMap)); log.info("发起畅停话费查询订单=");
log.info("畅停话费查询订单-请求参数: " + JSON.toJSONString(paramMap));
System.out.println("畅停话费查询订单-请求参数: " + JSON.toJSONString(paramMap));
JSONObject repsObject = HttpsUtils.doPostForm(CommonSysConst.getSysConfig().getHgPostUrl()+ "external/api/telPay", paramSort(paramMap), new HashMap<>()); System.out.println("畅停话费查询订单-请求参数: " + JSON.toJSONString(paramMap));
JSONObject repsObject = HttpsUtils.doPostForm(CommonSysConst.getSysConfig().getHgPostUrl()+ "external/api/telPay", paramSort(paramMap), new HashMap<>());
log.info("畅停话费查询订单-响应参数: " + repsObject.toJSONString());
return repsObject;
}catch (Exception e) {
return null;
}
log.info("畅停话费查询订单-响应参数: " + repsObject.toJSONString());
return repsObject;
} }
/** /**

@ -40,21 +40,23 @@ public interface GoodsDetailMapper extends GoodsDetailMapperExt {
@Insert({ @Insert({
"insert into goods_detail (company_id, goods_type_name, ", "insert into goods_detail (company_id, goods_type_name, ",
"goods_type, `name`, ", "goods_type, goods_label, ",
"list_describe, goods_describe, ", "`name`, list_describe, ",
"list_img, banner_img, ", "goods_describe, list_img, ",
"detail_img, `status`, ", "banner_img, detail_img, ",
"create_time, update_time, ", "`status`, create_time, ",
"op_id, op_name, ext_1, ", "update_time, op_id, ",
"ext_2, ext_3)", "op_name, ext_1, ext_2, ",
"ext_3)",
"values (#{companyId,jdbcType=BIGINT}, #{goodsTypeName,jdbcType=VARCHAR}, ", "values (#{companyId,jdbcType=BIGINT}, #{goodsTypeName,jdbcType=VARCHAR}, ",
"#{goodsType,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, ", "#{goodsType,jdbcType=BIGINT}, #{goodsLabel,jdbcType=VARCHAR}, ",
"#{listDescribe,jdbcType=VARCHAR}, #{goodsDescribe,jdbcType=VARCHAR}, ", "#{name,jdbcType=VARCHAR}, #{listDescribe,jdbcType=VARCHAR}, ",
"#{listImg,jdbcType=VARCHAR}, #{bannerImg,jdbcType=VARCHAR}, ", "#{goodsDescribe,jdbcType=VARCHAR}, #{listImg,jdbcType=VARCHAR}, ",
"#{detailImg,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", "#{bannerImg,jdbcType=VARCHAR}, #{detailImg,jdbcType=VARCHAR}, ",
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", "#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ",
"#{opId,jdbcType=BIGINT}, #{opName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ", "#{updateTime,jdbcType=TIMESTAMP}, #{opId,jdbcType=BIGINT}, ",
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" "#{opName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ",
"#{ext3,jdbcType=VARCHAR})"
}) })
@Options(useGeneratedKeys=true,keyProperty="id") @Options(useGeneratedKeys=true,keyProperty="id")
int insert(GoodsDetail record); int insert(GoodsDetail record);
@ -69,6 +71,7 @@ public interface GoodsDetailMapper extends GoodsDetailMapperExt {
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), @Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT),
@Result(column="goods_type_name", property="goodsTypeName", jdbcType=JdbcType.VARCHAR), @Result(column="goods_type_name", property="goodsTypeName", jdbcType=JdbcType.VARCHAR),
@Result(column="goods_type", property="goodsType", jdbcType=JdbcType.BIGINT), @Result(column="goods_type", property="goodsType", jdbcType=JdbcType.BIGINT),
@Result(column="goods_label", property="goodsLabel", jdbcType=JdbcType.VARCHAR),
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
@Result(column="list_describe", property="listDescribe", jdbcType=JdbcType.VARCHAR), @Result(column="list_describe", property="listDescribe", jdbcType=JdbcType.VARCHAR),
@Result(column="goods_describe", property="goodsDescribe", jdbcType=JdbcType.VARCHAR), @Result(column="goods_describe", property="goodsDescribe", jdbcType=JdbcType.VARCHAR),
@ -88,9 +91,9 @@ public interface GoodsDetailMapper extends GoodsDetailMapperExt {
@Select({ @Select({
"select", "select",
"id, company_id, goods_type_name, goods_type, `name`, list_describe, goods_describe, ", "id, company_id, goods_type_name, goods_type, goods_label, `name`, list_describe, ",
"list_img, banner_img, detail_img, `status`, create_time, update_time, op_id, ", "goods_describe, list_img, banner_img, detail_img, `status`, create_time, update_time, ",
"op_name, ext_1, ext_2, ext_3", "op_id, op_name, ext_1, ext_2, ext_3",
"from goods_detail", "from goods_detail",
"where id = #{id,jdbcType=BIGINT}" "where id = #{id,jdbcType=BIGINT}"
}) })
@ -99,6 +102,7 @@ public interface GoodsDetailMapper extends GoodsDetailMapperExt {
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), @Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT),
@Result(column="goods_type_name", property="goodsTypeName", jdbcType=JdbcType.VARCHAR), @Result(column="goods_type_name", property="goodsTypeName", jdbcType=JdbcType.VARCHAR),
@Result(column="goods_type", property="goodsType", jdbcType=JdbcType.BIGINT), @Result(column="goods_type", property="goodsType", jdbcType=JdbcType.BIGINT),
@Result(column="goods_label", property="goodsLabel", jdbcType=JdbcType.VARCHAR),
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
@Result(column="list_describe", property="listDescribe", jdbcType=JdbcType.VARCHAR), @Result(column="list_describe", property="listDescribe", jdbcType=JdbcType.VARCHAR),
@Result(column="goods_describe", property="goodsDescribe", jdbcType=JdbcType.VARCHAR), @Result(column="goods_describe", property="goodsDescribe", jdbcType=JdbcType.VARCHAR),
@ -130,6 +134,7 @@ public interface GoodsDetailMapper extends GoodsDetailMapperExt {
"set company_id = #{companyId,jdbcType=BIGINT},", "set company_id = #{companyId,jdbcType=BIGINT},",
"goods_type_name = #{goodsTypeName,jdbcType=VARCHAR},", "goods_type_name = #{goodsTypeName,jdbcType=VARCHAR},",
"goods_type = #{goodsType,jdbcType=BIGINT},", "goods_type = #{goodsType,jdbcType=BIGINT},",
"goods_label = #{goodsLabel,jdbcType=VARCHAR},",
"`name` = #{name,jdbcType=VARCHAR},", "`name` = #{name,jdbcType=VARCHAR},",
"list_describe = #{listDescribe,jdbcType=VARCHAR},", "list_describe = #{listDescribe,jdbcType=VARCHAR},",
"goods_describe = #{goodsDescribe,jdbcType=VARCHAR},", "goods_describe = #{goodsDescribe,jdbcType=VARCHAR},",

@ -40,6 +40,10 @@ public class GoodsDetailSqlProvider {
sql.VALUES("goods_type", "#{goodsType,jdbcType=BIGINT}"); sql.VALUES("goods_type", "#{goodsType,jdbcType=BIGINT}");
} }
if (record.getGoodsLabel() != null) {
sql.VALUES("goods_label", "#{goodsLabel,jdbcType=VARCHAR}");
}
if (record.getName() != null) { if (record.getName() != null) {
sql.VALUES("`name`", "#{name,jdbcType=VARCHAR}"); sql.VALUES("`name`", "#{name,jdbcType=VARCHAR}");
} }
@ -109,6 +113,7 @@ public class GoodsDetailSqlProvider {
sql.SELECT("company_id"); sql.SELECT("company_id");
sql.SELECT("goods_type_name"); sql.SELECT("goods_type_name");
sql.SELECT("goods_type"); sql.SELECT("goods_type");
sql.SELECT("goods_label");
sql.SELECT("`name`"); sql.SELECT("`name`");
sql.SELECT("list_describe"); sql.SELECT("list_describe");
sql.SELECT("goods_describe"); sql.SELECT("goods_describe");
@ -156,6 +161,10 @@ public class GoodsDetailSqlProvider {
sql.SET("goods_type = #{record.goodsType,jdbcType=BIGINT}"); sql.SET("goods_type = #{record.goodsType,jdbcType=BIGINT}");
} }
if (record.getGoodsLabel() != null) {
sql.SET("goods_label = #{record.goodsLabel,jdbcType=VARCHAR}");
}
if (record.getName() != null) { if (record.getName() != null) {
sql.SET("`name` = #{record.name,jdbcType=VARCHAR}"); sql.SET("`name` = #{record.name,jdbcType=VARCHAR}");
} }
@ -224,6 +233,7 @@ public class GoodsDetailSqlProvider {
sql.SET("company_id = #{record.companyId,jdbcType=BIGINT}"); sql.SET("company_id = #{record.companyId,jdbcType=BIGINT}");
sql.SET("goods_type_name = #{record.goodsTypeName,jdbcType=VARCHAR}"); sql.SET("goods_type_name = #{record.goodsTypeName,jdbcType=VARCHAR}");
sql.SET("goods_type = #{record.goodsType,jdbcType=BIGINT}"); sql.SET("goods_type = #{record.goodsType,jdbcType=BIGINT}");
sql.SET("goods_label = #{record.goodsLabel,jdbcType=VARCHAR}");
sql.SET("`name` = #{record.name,jdbcType=VARCHAR}"); sql.SET("`name` = #{record.name,jdbcType=VARCHAR}");
sql.SET("list_describe = #{record.listDescribe,jdbcType=VARCHAR}"); sql.SET("list_describe = #{record.listDescribe,jdbcType=VARCHAR}");
sql.SET("goods_describe = #{record.goodsDescribe,jdbcType=VARCHAR}"); sql.SET("goods_describe = #{record.goodsDescribe,jdbcType=VARCHAR}");
@ -260,6 +270,10 @@ public class GoodsDetailSqlProvider {
sql.SET("goods_type = #{goodsType,jdbcType=BIGINT}"); sql.SET("goods_type = #{goodsType,jdbcType=BIGINT}");
} }
if (record.getGoodsLabel() != null) {
sql.SET("goods_label = #{goodsLabel,jdbcType=VARCHAR}");
}
if (record.getName() != null) { if (record.getName() != null) {
sql.SET("`name` = #{name,jdbcType=VARCHAR}"); sql.SET("`name` = #{name,jdbcType=VARCHAR}");
} }

@ -44,39 +44,41 @@ public interface HighChildOrderMapper extends HighChildOrderMapperExt {
"child_order_no, store_id, ", "child_order_no, store_id, ",
"store_name, store_address, ", "store_name, store_address, ",
"goods_type, goods_id, ", "goods_type, goods_id, ",
"goods_name, goods_desc, ", "sec_user_id, goods_name, ",
"goods_img, sku_id, ", "goods_desc, goods_img, ",
"goods_spec_name, goods_price, ", "sku_id, goods_spec_name, ",
"goods_actual_price, surplus_refund_num, ", "goods_price, goods_actual_price, ",
"surplus_refund_price, surplus_refund_integral, ", "surplus_refund_num, surplus_refund_price, ",
"channel_order_no, total_price, ", "surplus_refund_integral, channel_order_no, ",
"total_actual_price, total_deduction_price, ", "total_price, total_actual_price, ",
"sale_count, giveaway_type, ", "total_deduction_price, sale_count, ",
"child_order_status, praise_status, ", "giveaway_type, child_order_status, ",
"create_time, pay_time, ", "praise_status, create_time, ",
"finish_time, refund_time, ", "pay_time, finish_time, ",
"refund_remarks, cancel_time, ", "refund_time, refund_remarks, ",
"ext_1, ext_2, ext_3, ", "cancel_time, ext_1, ",
"ext_4, ext_5, ext_6)", "ext_2, ext_3, ext_4, ",
"ext_5, ext_6)",
"values (#{orderId,jdbcType=BIGINT}, #{orderNo,jdbcType=VARCHAR}, ", "values (#{orderId,jdbcType=BIGINT}, #{orderNo,jdbcType=VARCHAR}, ",
"#{memId,jdbcType=BIGINT}, #{memName,jdbcType=VARCHAR}, #{memPhone,jdbcType=VARCHAR}, ", "#{memId,jdbcType=BIGINT}, #{memName,jdbcType=VARCHAR}, #{memPhone,jdbcType=VARCHAR}, ",
"#{childOrderNo,jdbcType=VARCHAR}, #{storeId,jdbcType=BIGINT}, ", "#{childOrderNo,jdbcType=VARCHAR}, #{storeId,jdbcType=BIGINT}, ",
"#{storeName,jdbcType=VARCHAR}, #{storeAddress,jdbcType=VARCHAR}, ", "#{storeName,jdbcType=VARCHAR}, #{storeAddress,jdbcType=VARCHAR}, ",
"#{goodsType,jdbcType=INTEGER}, #{goodsId,jdbcType=BIGINT}, ", "#{goodsType,jdbcType=INTEGER}, #{goodsId,jdbcType=BIGINT}, ",
"#{goodsName,jdbcType=VARCHAR}, #{goodsDesc,jdbcType=VARCHAR}, ", "#{secUserId,jdbcType=BIGINT}, #{goodsName,jdbcType=VARCHAR}, ",
"#{goodsImg,jdbcType=VARCHAR}, #{skuId,jdbcType=BIGINT}, ", "#{goodsDesc,jdbcType=VARCHAR}, #{goodsImg,jdbcType=VARCHAR}, ",
"#{goodsSpecName,jdbcType=VARCHAR}, #{goodsPrice,jdbcType=DECIMAL}, ", "#{skuId,jdbcType=BIGINT}, #{goodsSpecName,jdbcType=VARCHAR}, ",
"#{goodsActualPrice,jdbcType=DECIMAL}, #{surplusRefundNum,jdbcType=INTEGER}, ", "#{goodsPrice,jdbcType=DECIMAL}, #{goodsActualPrice,jdbcType=DECIMAL}, ",
"#{surplusRefundPrice,jdbcType=DECIMAL}, #{surplusRefundIntegral,jdbcType=INTEGER}, ", "#{surplusRefundNum,jdbcType=INTEGER}, #{surplusRefundPrice,jdbcType=DECIMAL}, ",
"#{channelOrderNo,jdbcType=VARCHAR}, #{totalPrice,jdbcType=DECIMAL}, ", "#{surplusRefundIntegral,jdbcType=INTEGER}, #{channelOrderNo,jdbcType=VARCHAR}, ",
"#{totalActualPrice,jdbcType=DECIMAL}, #{totalDeductionPrice,jdbcType=DECIMAL}, ", "#{totalPrice,jdbcType=DECIMAL}, #{totalActualPrice,jdbcType=DECIMAL}, ",
"#{saleCount,jdbcType=INTEGER}, #{giveawayType,jdbcType=BIT}, ", "#{totalDeductionPrice,jdbcType=DECIMAL}, #{saleCount,jdbcType=INTEGER}, ",
"#{childOrderStatus,jdbcType=INTEGER}, #{praiseStatus,jdbcType=INTEGER}, ", "#{giveawayType,jdbcType=BIT}, #{childOrderStatus,jdbcType=INTEGER}, ",
"#{createTime,jdbcType=TIMESTAMP}, #{payTime,jdbcType=TIMESTAMP}, ", "#{praiseStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ",
"#{finishTime,jdbcType=TIMESTAMP}, #{refundTime,jdbcType=TIMESTAMP}, ", "#{payTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, ",
"#{refundRemarks,jdbcType=VARCHAR}, #{cancelTime,jdbcType=TIMESTAMP}, ", "#{refundTime,jdbcType=TIMESTAMP}, #{refundRemarks,jdbcType=VARCHAR}, ",
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, ", "#{cancelTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ",
"#{ext4,jdbcType=VARCHAR}, #{ext5,jdbcType=VARCHAR}, #{ext6,jdbcType=VARCHAR})" "#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, #{ext4,jdbcType=VARCHAR}, ",
"#{ext5,jdbcType=VARCHAR}, #{ext6,jdbcType=VARCHAR})"
}) })
@Options(useGeneratedKeys=true,keyProperty="id") @Options(useGeneratedKeys=true,keyProperty="id")
int insert(HighChildOrder record); int insert(HighChildOrder record);
@ -99,6 +101,7 @@ public interface HighChildOrderMapper extends HighChildOrderMapperExt {
@Result(column="store_address", property="storeAddress", jdbcType=JdbcType.VARCHAR), @Result(column="store_address", property="storeAddress", jdbcType=JdbcType.VARCHAR),
@Result(column="goods_type", property="goodsType", jdbcType=JdbcType.INTEGER), @Result(column="goods_type", property="goodsType", jdbcType=JdbcType.INTEGER),
@Result(column="goods_id", property="goodsId", jdbcType=JdbcType.BIGINT), @Result(column="goods_id", property="goodsId", jdbcType=JdbcType.BIGINT),
@Result(column="sec_user_id", property="secUserId", jdbcType=JdbcType.BIGINT),
@Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR), @Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR),
@Result(column="goods_desc", property="goodsDesc", jdbcType=JdbcType.VARCHAR), @Result(column="goods_desc", property="goodsDesc", jdbcType=JdbcType.VARCHAR),
@Result(column="goods_img", property="goodsImg", jdbcType=JdbcType.VARCHAR), @Result(column="goods_img", property="goodsImg", jdbcType=JdbcType.VARCHAR),
@ -135,8 +138,8 @@ public interface HighChildOrderMapper extends HighChildOrderMapperExt {
@Select({ @Select({
"select", "select",
"id, order_id, order_no, mem_id, mem_name, mem_phone, child_order_no, store_id, ", "id, order_id, order_no, mem_id, mem_name, mem_phone, child_order_no, store_id, ",
"store_name, store_address, goods_type, goods_id, goods_name, goods_desc, goods_img, ", "store_name, store_address, goods_type, goods_id, sec_user_id, goods_name, goods_desc, ",
"sku_id, goods_spec_name, goods_price, goods_actual_price, surplus_refund_num, ", "goods_img, sku_id, goods_spec_name, goods_price, goods_actual_price, surplus_refund_num, ",
"surplus_refund_price, surplus_refund_integral, channel_order_no, total_price, ", "surplus_refund_price, surplus_refund_integral, channel_order_no, total_price, ",
"total_actual_price, total_deduction_price, sale_count, giveaway_type, child_order_status, ", "total_actual_price, total_deduction_price, sale_count, giveaway_type, child_order_status, ",
"praise_status, create_time, pay_time, finish_time, refund_time, refund_remarks, ", "praise_status, create_time, pay_time, finish_time, refund_time, refund_remarks, ",
@ -157,6 +160,7 @@ public interface HighChildOrderMapper extends HighChildOrderMapperExt {
@Result(column="store_address", property="storeAddress", jdbcType=JdbcType.VARCHAR), @Result(column="store_address", property="storeAddress", jdbcType=JdbcType.VARCHAR),
@Result(column="goods_type", property="goodsType", jdbcType=JdbcType.INTEGER), @Result(column="goods_type", property="goodsType", jdbcType=JdbcType.INTEGER),
@Result(column="goods_id", property="goodsId", jdbcType=JdbcType.BIGINT), @Result(column="goods_id", property="goodsId", jdbcType=JdbcType.BIGINT),
@Result(column="sec_user_id", property="secUserId", jdbcType=JdbcType.BIGINT),
@Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR), @Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR),
@Result(column="goods_desc", property="goodsDesc", jdbcType=JdbcType.VARCHAR), @Result(column="goods_desc", property="goodsDesc", jdbcType=JdbcType.VARCHAR),
@Result(column="goods_img", property="goodsImg", jdbcType=JdbcType.VARCHAR), @Result(column="goods_img", property="goodsImg", jdbcType=JdbcType.VARCHAR),
@ -212,6 +216,7 @@ public interface HighChildOrderMapper extends HighChildOrderMapperExt {
"store_address = #{storeAddress,jdbcType=VARCHAR},", "store_address = #{storeAddress,jdbcType=VARCHAR},",
"goods_type = #{goodsType,jdbcType=INTEGER},", "goods_type = #{goodsType,jdbcType=INTEGER},",
"goods_id = #{goodsId,jdbcType=BIGINT},", "goods_id = #{goodsId,jdbcType=BIGINT},",
"sec_user_id = #{secUserId,jdbcType=BIGINT},",
"goods_name = #{goodsName,jdbcType=VARCHAR},", "goods_name = #{goodsName,jdbcType=VARCHAR},",
"goods_desc = #{goodsDesc,jdbcType=VARCHAR},", "goods_desc = #{goodsDesc,jdbcType=VARCHAR},",
"goods_img = #{goodsImg,jdbcType=VARCHAR},", "goods_img = #{goodsImg,jdbcType=VARCHAR},",

@ -72,6 +72,10 @@ public class HighChildOrderSqlProvider {
sql.VALUES("goods_id", "#{goodsId,jdbcType=BIGINT}"); sql.VALUES("goods_id", "#{goodsId,jdbcType=BIGINT}");
} }
if (record.getSecUserId() != null) {
sql.VALUES("sec_user_id", "#{secUserId,jdbcType=BIGINT}");
}
if (record.getGoodsName() != null) { if (record.getGoodsName() != null) {
sql.VALUES("goods_name", "#{goodsName,jdbcType=VARCHAR}"); sql.VALUES("goods_name", "#{goodsName,jdbcType=VARCHAR}");
} }
@ -213,6 +217,7 @@ public class HighChildOrderSqlProvider {
sql.SELECT("store_address"); sql.SELECT("store_address");
sql.SELECT("goods_type"); sql.SELECT("goods_type");
sql.SELECT("goods_id"); sql.SELECT("goods_id");
sql.SELECT("sec_user_id");
sql.SELECT("goods_name"); sql.SELECT("goods_name");
sql.SELECT("goods_desc"); sql.SELECT("goods_desc");
sql.SELECT("goods_img"); sql.SELECT("goods_img");
@ -308,6 +313,10 @@ public class HighChildOrderSqlProvider {
sql.SET("goods_id = #{record.goodsId,jdbcType=BIGINT}"); sql.SET("goods_id = #{record.goodsId,jdbcType=BIGINT}");
} }
if (record.getSecUserId() != null) {
sql.SET("sec_user_id = #{record.secUserId,jdbcType=BIGINT}");
}
if (record.getGoodsName() != null) { if (record.getGoodsName() != null) {
sql.SET("goods_name = #{record.goodsName,jdbcType=VARCHAR}"); sql.SET("goods_name = #{record.goodsName,jdbcType=VARCHAR}");
} }
@ -448,6 +457,7 @@ public class HighChildOrderSqlProvider {
sql.SET("store_address = #{record.storeAddress,jdbcType=VARCHAR}"); sql.SET("store_address = #{record.storeAddress,jdbcType=VARCHAR}");
sql.SET("goods_type = #{record.goodsType,jdbcType=INTEGER}"); sql.SET("goods_type = #{record.goodsType,jdbcType=INTEGER}");
sql.SET("goods_id = #{record.goodsId,jdbcType=BIGINT}"); sql.SET("goods_id = #{record.goodsId,jdbcType=BIGINT}");
sql.SET("sec_user_id = #{record.secUserId,jdbcType=BIGINT}");
sql.SET("goods_name = #{record.goodsName,jdbcType=VARCHAR}"); sql.SET("goods_name = #{record.goodsName,jdbcType=VARCHAR}");
sql.SET("goods_desc = #{record.goodsDesc,jdbcType=VARCHAR}"); sql.SET("goods_desc = #{record.goodsDesc,jdbcType=VARCHAR}");
sql.SET("goods_img = #{record.goodsImg,jdbcType=VARCHAR}"); sql.SET("goods_img = #{record.goodsImg,jdbcType=VARCHAR}");
@ -532,6 +542,10 @@ public class HighChildOrderSqlProvider {
sql.SET("goods_id = #{goodsId,jdbcType=BIGINT}"); sql.SET("goods_id = #{goodsId,jdbcType=BIGINT}");
} }
if (record.getSecUserId() != null) {
sql.SET("sec_user_id = #{secUserId,jdbcType=BIGINT}");
}
if (record.getGoodsName() != null) { if (record.getGoodsName() != null) {
sql.SET("goods_name = #{goodsName,jdbcType=VARCHAR}"); sql.SET("goods_name = #{goodsName,jdbcType=VARCHAR}");
} }

@ -41,50 +41,50 @@ public interface HighOrderMapper extends HighOrderMapperExt {
@Insert({ @Insert({
"insert into high_order (title, search_title, ", "insert into high_order (title, search_title, ",
"product_type, company_id, ", "product_type, company_id, ",
"company_name, promote_code, ",
"mem_discount_id, mem_discount_name, ", "mem_discount_id, mem_discount_name, ",
"mem_id, mem_name, mem_phone, ", "mem_id, mem_name, mem_phone, ",
"order_no, pay_serial_no, ", "order_no, pay_serial_no, ",
"pay_type, mem_card_id, ", "pay_type, mem_card_id, ",
"mem_card_type, mem_card_no, ", "mem_card_type, mem_card_no, ",
"total_price, total_deduction_price, ", "total_price, payable_price, ",
"deduction_coupon_price, deduction_product_price, ",
"pay_gold, payable_price, ",
"pay_price, pay_real_price, ", "pay_price, pay_real_price, ",
"order_status, remarks, ", "order_status, remarks, ",
"create_time, surplus_refund_price, ", "create_time, total_deduction_price, ",
"deduction_coupon_price, deduction_product_price, ",
"pay_gold, surplus_refund_price, ",
"surplus_refund_integral, pay_time, ", "surplus_refund_integral, pay_time, ",
"finish_time, cancel_time, ", "finish_time, cancel_time, ",
"cancel_remarks, refund_time, ", "cancel_remarks, refund_time, ",
"account_merchant_num, profit_sharing_status, ", "account_merchant_num, profit_sharing_status, ",
"profit_sharing_record_id, whether_check, ", "profit_sharing_record_id, whether_check, ",
"whether_rebate, exception_status, ", "whether_rebate, exception_status, ",
"exception_content, ext_1, ", "exception_content, company_name, ",
"ext_2, ext_3, ext_4, ", "promote_code, sec_user_id, ",
"ext_5, ext_6)", "ext_1, ext_2, ext_3, ",
"ext_4, ext_5, ext_6)",
"values (#{title,jdbcType=VARCHAR}, #{searchTitle,jdbcType=VARCHAR}, ", "values (#{title,jdbcType=VARCHAR}, #{searchTitle,jdbcType=VARCHAR}, ",
"#{productType,jdbcType=INTEGER}, #{companyId,jdbcType=BIGINT}, ", "#{productType,jdbcType=INTEGER}, #{companyId,jdbcType=BIGINT}, ",
"#{companyName,jdbcType=VARCHAR}, #{promoteCode,jdbcType=VARCHAR}, ",
"#{memDiscountId,jdbcType=BIGINT}, #{memDiscountName,jdbcType=VARCHAR}, ", "#{memDiscountId,jdbcType=BIGINT}, #{memDiscountName,jdbcType=VARCHAR}, ",
"#{memId,jdbcType=BIGINT}, #{memName,jdbcType=VARCHAR}, #{memPhone,jdbcType=VARCHAR}, ", "#{memId,jdbcType=BIGINT}, #{memName,jdbcType=VARCHAR}, #{memPhone,jdbcType=VARCHAR}, ",
"#{orderNo,jdbcType=VARCHAR}, #{paySerialNo,jdbcType=VARCHAR}, ", "#{orderNo,jdbcType=VARCHAR}, #{paySerialNo,jdbcType=VARCHAR}, ",
"#{payType,jdbcType=INTEGER}, #{memCardId,jdbcType=BIGINT}, ", "#{payType,jdbcType=INTEGER}, #{memCardId,jdbcType=BIGINT}, ",
"#{memCardType,jdbcType=INTEGER}, #{memCardNo,jdbcType=VARCHAR}, ", "#{memCardType,jdbcType=INTEGER}, #{memCardNo,jdbcType=VARCHAR}, ",
"#{totalPrice,jdbcType=DECIMAL}, #{totalDeductionPrice,jdbcType=DECIMAL}, ", "#{totalPrice,jdbcType=DECIMAL}, #{payablePrice,jdbcType=DECIMAL}, ",
"#{deductionCouponPrice,jdbcType=DECIMAL}, #{deductionProductPrice,jdbcType=DECIMAL}, ",
"#{payGold,jdbcType=INTEGER}, #{payablePrice,jdbcType=DECIMAL}, ",
"#{payPrice,jdbcType=DECIMAL}, #{payRealPrice,jdbcType=DECIMAL}, ", "#{payPrice,jdbcType=DECIMAL}, #{payRealPrice,jdbcType=DECIMAL}, ",
"#{orderStatus,jdbcType=INTEGER}, #{remarks,jdbcType=VARCHAR}, ", "#{orderStatus,jdbcType=INTEGER}, #{remarks,jdbcType=VARCHAR}, ",
"#{createTime,jdbcType=TIMESTAMP}, #{surplusRefundPrice,jdbcType=DECIMAL}, ", "#{createTime,jdbcType=TIMESTAMP}, #{totalDeductionPrice,jdbcType=DECIMAL}, ",
"#{deductionCouponPrice,jdbcType=DECIMAL}, #{deductionProductPrice,jdbcType=DECIMAL}, ",
"#{payGold,jdbcType=INTEGER}, #{surplusRefundPrice,jdbcType=DECIMAL}, ",
"#{surplusRefundIntegral,jdbcType=INTEGER}, #{payTime,jdbcType=TIMESTAMP}, ", "#{surplusRefundIntegral,jdbcType=INTEGER}, #{payTime,jdbcType=TIMESTAMP}, ",
"#{finishTime,jdbcType=TIMESTAMP}, #{cancelTime,jdbcType=TIMESTAMP}, ", "#{finishTime,jdbcType=TIMESTAMP}, #{cancelTime,jdbcType=TIMESTAMP}, ",
"#{cancelRemarks,jdbcType=VARCHAR}, #{refundTime,jdbcType=TIMESTAMP}, ", "#{cancelRemarks,jdbcType=VARCHAR}, #{refundTime,jdbcType=TIMESTAMP}, ",
"#{accountMerchantNum,jdbcType=VARCHAR}, #{profitSharingStatus,jdbcType=BIT}, ", "#{accountMerchantNum,jdbcType=VARCHAR}, #{profitSharingStatus,jdbcType=BIT}, ",
"#{profitSharingRecordId,jdbcType=BIGINT}, #{whetherCheck,jdbcType=BIT}, ", "#{profitSharingRecordId,jdbcType=BIGINT}, #{whetherCheck,jdbcType=BIT}, ",
"#{whetherRebate,jdbcType=BIT}, #{exceptionStatus,jdbcType=BIT}, ", "#{whetherRebate,jdbcType=BIT}, #{exceptionStatus,jdbcType=BIT}, ",
"#{exceptionContent,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ", "#{exceptionContent,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR}, ",
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, #{ext4,jdbcType=VARCHAR}, ", "#{promoteCode,jdbcType=VARCHAR}, #{secUserId,jdbcType=BIGINT}, ",
"#{ext5,jdbcType=VARCHAR}, #{ext6,jdbcType=VARCHAR})" "#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, ",
"#{ext4,jdbcType=VARCHAR}, #{ext5,jdbcType=VARCHAR}, #{ext6,jdbcType=VARCHAR})"
}) })
@Options(useGeneratedKeys=true,keyProperty="id") @Options(useGeneratedKeys=true,keyProperty="id")
int insert(HighOrder record); int insert(HighOrder record);
@ -100,8 +100,6 @@ public interface HighOrderMapper extends HighOrderMapperExt {
@Result(column="search_title", property="searchTitle", jdbcType=JdbcType.VARCHAR), @Result(column="search_title", property="searchTitle", jdbcType=JdbcType.VARCHAR),
@Result(column="product_type", property="productType", jdbcType=JdbcType.INTEGER), @Result(column="product_type", property="productType", jdbcType=JdbcType.INTEGER),
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), @Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT),
@Result(column="company_name", property="companyName", jdbcType=JdbcType.VARCHAR),
@Result(column="promote_code", property="promoteCode", jdbcType=JdbcType.VARCHAR),
@Result(column="mem_discount_id", property="memDiscountId", jdbcType=JdbcType.BIGINT), @Result(column="mem_discount_id", property="memDiscountId", jdbcType=JdbcType.BIGINT),
@Result(column="mem_discount_name", property="memDiscountName", jdbcType=JdbcType.VARCHAR), @Result(column="mem_discount_name", property="memDiscountName", jdbcType=JdbcType.VARCHAR),
@Result(column="mem_id", property="memId", jdbcType=JdbcType.BIGINT), @Result(column="mem_id", property="memId", jdbcType=JdbcType.BIGINT),
@ -114,16 +112,16 @@ public interface HighOrderMapper extends HighOrderMapperExt {
@Result(column="mem_card_type", property="memCardType", jdbcType=JdbcType.INTEGER), @Result(column="mem_card_type", property="memCardType", jdbcType=JdbcType.INTEGER),
@Result(column="mem_card_no", property="memCardNo", jdbcType=JdbcType.VARCHAR), @Result(column="mem_card_no", property="memCardNo", jdbcType=JdbcType.VARCHAR),
@Result(column="total_price", property="totalPrice", jdbcType=JdbcType.DECIMAL), @Result(column="total_price", property="totalPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="total_deduction_price", property="totalDeductionPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="deduction_coupon_price", property="deductionCouponPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="deduction_product_price", property="deductionProductPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="pay_gold", property="payGold", jdbcType=JdbcType.INTEGER),
@Result(column="payable_price", property="payablePrice", jdbcType=JdbcType.DECIMAL), @Result(column="payable_price", property="payablePrice", jdbcType=JdbcType.DECIMAL),
@Result(column="pay_price", property="payPrice", jdbcType=JdbcType.DECIMAL), @Result(column="pay_price", property="payPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL), @Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="order_status", property="orderStatus", jdbcType=JdbcType.INTEGER), @Result(column="order_status", property="orderStatus", jdbcType=JdbcType.INTEGER),
@Result(column="remarks", property="remarks", jdbcType=JdbcType.VARCHAR), @Result(column="remarks", property="remarks", jdbcType=JdbcType.VARCHAR),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="total_deduction_price", property="totalDeductionPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="deduction_coupon_price", property="deductionCouponPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="deduction_product_price", property="deductionProductPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="pay_gold", property="payGold", jdbcType=JdbcType.INTEGER),
@Result(column="surplus_refund_price", property="surplusRefundPrice", jdbcType=JdbcType.DECIMAL), @Result(column="surplus_refund_price", property="surplusRefundPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="surplus_refund_integral", property="surplusRefundIntegral", jdbcType=JdbcType.INTEGER), @Result(column="surplus_refund_integral", property="surplusRefundIntegral", jdbcType=JdbcType.INTEGER),
@Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP),
@ -138,6 +136,9 @@ public interface HighOrderMapper extends HighOrderMapperExt {
@Result(column="whether_rebate", property="whetherRebate", jdbcType=JdbcType.BIT), @Result(column="whether_rebate", property="whetherRebate", jdbcType=JdbcType.BIT),
@Result(column="exception_status", property="exceptionStatus", jdbcType=JdbcType.BIT), @Result(column="exception_status", property="exceptionStatus", jdbcType=JdbcType.BIT),
@Result(column="exception_content", property="exceptionContent", jdbcType=JdbcType.VARCHAR), @Result(column="exception_content", property="exceptionContent", jdbcType=JdbcType.VARCHAR),
@Result(column="company_name", property="companyName", jdbcType=JdbcType.VARCHAR),
@Result(column="promote_code", property="promoteCode", jdbcType=JdbcType.VARCHAR),
@Result(column="sec_user_id", property="secUserId", jdbcType=JdbcType.BIGINT),
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), @Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), @Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR), @Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR),
@ -149,14 +150,15 @@ public interface HighOrderMapper extends HighOrderMapperExt {
@Select({ @Select({
"select", "select",
"id, title, search_title, product_type, company_id, company_name, promote_code, ", "id, title, search_title, product_type, company_id, mem_discount_id, mem_discount_name, ",
"mem_discount_id, mem_discount_name, mem_id, mem_name, mem_phone, order_no, pay_serial_no, ", "mem_id, mem_name, mem_phone, order_no, pay_serial_no, pay_type, mem_card_id, ",
"pay_type, mem_card_id, mem_card_type, mem_card_no, total_price, total_deduction_price, ", "mem_card_type, mem_card_no, total_price, payable_price, pay_price, pay_real_price, ",
"deduction_coupon_price, deduction_product_price, pay_gold, payable_price, pay_price, ", "order_status, remarks, create_time, total_deduction_price, deduction_coupon_price, ",
"pay_real_price, order_status, remarks, create_time, surplus_refund_price, surplus_refund_integral, ", "deduction_product_price, pay_gold, surplus_refund_price, surplus_refund_integral, ",
"pay_time, finish_time, cancel_time, cancel_remarks, refund_time, account_merchant_num, ", "pay_time, finish_time, cancel_time, cancel_remarks, refund_time, account_merchant_num, ",
"profit_sharing_status, profit_sharing_record_id, whether_check, whether_rebate, ", "profit_sharing_status, profit_sharing_record_id, whether_check, whether_rebate, ",
"exception_status, exception_content, ext_1, ext_2, ext_3, ext_4, ext_5, ext_6", "exception_status, exception_content, company_name, promote_code, sec_user_id, ",
"ext_1, ext_2, ext_3, ext_4, ext_5, ext_6",
"from high_order", "from high_order",
"where id = #{id,jdbcType=BIGINT}" "where id = #{id,jdbcType=BIGINT}"
}) })
@ -166,8 +168,6 @@ public interface HighOrderMapper extends HighOrderMapperExt {
@Result(column="search_title", property="searchTitle", jdbcType=JdbcType.VARCHAR), @Result(column="search_title", property="searchTitle", jdbcType=JdbcType.VARCHAR),
@Result(column="product_type", property="productType", jdbcType=JdbcType.INTEGER), @Result(column="product_type", property="productType", jdbcType=JdbcType.INTEGER),
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), @Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT),
@Result(column="company_name", property="companyName", jdbcType=JdbcType.VARCHAR),
@Result(column="promote_code", property="promoteCode", jdbcType=JdbcType.VARCHAR),
@Result(column="mem_discount_id", property="memDiscountId", jdbcType=JdbcType.BIGINT), @Result(column="mem_discount_id", property="memDiscountId", jdbcType=JdbcType.BIGINT),
@Result(column="mem_discount_name", property="memDiscountName", jdbcType=JdbcType.VARCHAR), @Result(column="mem_discount_name", property="memDiscountName", jdbcType=JdbcType.VARCHAR),
@Result(column="mem_id", property="memId", jdbcType=JdbcType.BIGINT), @Result(column="mem_id", property="memId", jdbcType=JdbcType.BIGINT),
@ -180,16 +180,16 @@ public interface HighOrderMapper extends HighOrderMapperExt {
@Result(column="mem_card_type", property="memCardType", jdbcType=JdbcType.INTEGER), @Result(column="mem_card_type", property="memCardType", jdbcType=JdbcType.INTEGER),
@Result(column="mem_card_no", property="memCardNo", jdbcType=JdbcType.VARCHAR), @Result(column="mem_card_no", property="memCardNo", jdbcType=JdbcType.VARCHAR),
@Result(column="total_price", property="totalPrice", jdbcType=JdbcType.DECIMAL), @Result(column="total_price", property="totalPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="total_deduction_price", property="totalDeductionPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="deduction_coupon_price", property="deductionCouponPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="deduction_product_price", property="deductionProductPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="pay_gold", property="payGold", jdbcType=JdbcType.INTEGER),
@Result(column="payable_price", property="payablePrice", jdbcType=JdbcType.DECIMAL), @Result(column="payable_price", property="payablePrice", jdbcType=JdbcType.DECIMAL),
@Result(column="pay_price", property="payPrice", jdbcType=JdbcType.DECIMAL), @Result(column="pay_price", property="payPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL), @Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="order_status", property="orderStatus", jdbcType=JdbcType.INTEGER), @Result(column="order_status", property="orderStatus", jdbcType=JdbcType.INTEGER),
@Result(column="remarks", property="remarks", jdbcType=JdbcType.VARCHAR), @Result(column="remarks", property="remarks", jdbcType=JdbcType.VARCHAR),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="total_deduction_price", property="totalDeductionPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="deduction_coupon_price", property="deductionCouponPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="deduction_product_price", property="deductionProductPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="pay_gold", property="payGold", jdbcType=JdbcType.INTEGER),
@Result(column="surplus_refund_price", property="surplusRefundPrice", jdbcType=JdbcType.DECIMAL), @Result(column="surplus_refund_price", property="surplusRefundPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="surplus_refund_integral", property="surplusRefundIntegral", jdbcType=JdbcType.INTEGER), @Result(column="surplus_refund_integral", property="surplusRefundIntegral", jdbcType=JdbcType.INTEGER),
@Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP), @Result(column="pay_time", property="payTime", jdbcType=JdbcType.TIMESTAMP),
@ -204,6 +204,9 @@ public interface HighOrderMapper extends HighOrderMapperExt {
@Result(column="whether_rebate", property="whetherRebate", jdbcType=JdbcType.BIT), @Result(column="whether_rebate", property="whetherRebate", jdbcType=JdbcType.BIT),
@Result(column="exception_status", property="exceptionStatus", jdbcType=JdbcType.BIT), @Result(column="exception_status", property="exceptionStatus", jdbcType=JdbcType.BIT),
@Result(column="exception_content", property="exceptionContent", jdbcType=JdbcType.VARCHAR), @Result(column="exception_content", property="exceptionContent", jdbcType=JdbcType.VARCHAR),
@Result(column="company_name", property="companyName", jdbcType=JdbcType.VARCHAR),
@Result(column="promote_code", property="promoteCode", jdbcType=JdbcType.VARCHAR),
@Result(column="sec_user_id", property="secUserId", jdbcType=JdbcType.BIGINT),
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), @Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), @Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR), @Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR),
@ -228,8 +231,6 @@ public interface HighOrderMapper extends HighOrderMapperExt {
"search_title = #{searchTitle,jdbcType=VARCHAR},", "search_title = #{searchTitle,jdbcType=VARCHAR},",
"product_type = #{productType,jdbcType=INTEGER},", "product_type = #{productType,jdbcType=INTEGER},",
"company_id = #{companyId,jdbcType=BIGINT},", "company_id = #{companyId,jdbcType=BIGINT},",
"company_name = #{companyName,jdbcType=VARCHAR},",
"promote_code = #{promoteCode,jdbcType=VARCHAR},",
"mem_discount_id = #{memDiscountId,jdbcType=BIGINT},", "mem_discount_id = #{memDiscountId,jdbcType=BIGINT},",
"mem_discount_name = #{memDiscountName,jdbcType=VARCHAR},", "mem_discount_name = #{memDiscountName,jdbcType=VARCHAR},",
"mem_id = #{memId,jdbcType=BIGINT},", "mem_id = #{memId,jdbcType=BIGINT},",
@ -242,16 +243,16 @@ public interface HighOrderMapper extends HighOrderMapperExt {
"mem_card_type = #{memCardType,jdbcType=INTEGER},", "mem_card_type = #{memCardType,jdbcType=INTEGER},",
"mem_card_no = #{memCardNo,jdbcType=VARCHAR},", "mem_card_no = #{memCardNo,jdbcType=VARCHAR},",
"total_price = #{totalPrice,jdbcType=DECIMAL},", "total_price = #{totalPrice,jdbcType=DECIMAL},",
"total_deduction_price = #{totalDeductionPrice,jdbcType=DECIMAL},",
"deduction_coupon_price = #{deductionCouponPrice,jdbcType=DECIMAL},",
"deduction_product_price = #{deductionProductPrice,jdbcType=DECIMAL},",
"pay_gold = #{payGold,jdbcType=INTEGER},",
"payable_price = #{payablePrice,jdbcType=DECIMAL},", "payable_price = #{payablePrice,jdbcType=DECIMAL},",
"pay_price = #{payPrice,jdbcType=DECIMAL},", "pay_price = #{payPrice,jdbcType=DECIMAL},",
"pay_real_price = #{payRealPrice,jdbcType=DECIMAL},", "pay_real_price = #{payRealPrice,jdbcType=DECIMAL},",
"order_status = #{orderStatus,jdbcType=INTEGER},", "order_status = #{orderStatus,jdbcType=INTEGER},",
"remarks = #{remarks,jdbcType=VARCHAR},", "remarks = #{remarks,jdbcType=VARCHAR},",
"create_time = #{createTime,jdbcType=TIMESTAMP},", "create_time = #{createTime,jdbcType=TIMESTAMP},",
"total_deduction_price = #{totalDeductionPrice,jdbcType=DECIMAL},",
"deduction_coupon_price = #{deductionCouponPrice,jdbcType=DECIMAL},",
"deduction_product_price = #{deductionProductPrice,jdbcType=DECIMAL},",
"pay_gold = #{payGold,jdbcType=INTEGER},",
"surplus_refund_price = #{surplusRefundPrice,jdbcType=DECIMAL},", "surplus_refund_price = #{surplusRefundPrice,jdbcType=DECIMAL},",
"surplus_refund_integral = #{surplusRefundIntegral,jdbcType=INTEGER},", "surplus_refund_integral = #{surplusRefundIntegral,jdbcType=INTEGER},",
"pay_time = #{payTime,jdbcType=TIMESTAMP},", "pay_time = #{payTime,jdbcType=TIMESTAMP},",
@ -266,6 +267,9 @@ public interface HighOrderMapper extends HighOrderMapperExt {
"whether_rebate = #{whetherRebate,jdbcType=BIT},", "whether_rebate = #{whetherRebate,jdbcType=BIT},",
"exception_status = #{exceptionStatus,jdbcType=BIT},", "exception_status = #{exceptionStatus,jdbcType=BIT},",
"exception_content = #{exceptionContent,jdbcType=VARCHAR},", "exception_content = #{exceptionContent,jdbcType=VARCHAR},",
"company_name = #{companyName,jdbcType=VARCHAR},",
"promote_code = #{promoteCode,jdbcType=VARCHAR},",
"sec_user_id = #{secUserId,jdbcType=BIGINT},",
"ext_1 = #{ext1,jdbcType=VARCHAR},", "ext_1 = #{ext1,jdbcType=VARCHAR},",
"ext_2 = #{ext2,jdbcType=VARCHAR},", "ext_2 = #{ext2,jdbcType=VARCHAR},",
"ext_3 = #{ext3,jdbcType=VARCHAR},", "ext_3 = #{ext3,jdbcType=VARCHAR},",

@ -44,14 +44,6 @@ public class HighOrderSqlProvider {
sql.VALUES("company_id", "#{companyId,jdbcType=BIGINT}"); sql.VALUES("company_id", "#{companyId,jdbcType=BIGINT}");
} }
if (record.getCompanyName() != null) {
sql.VALUES("company_name", "#{companyName,jdbcType=VARCHAR}");
}
if (record.getPromoteCode() != null) {
sql.VALUES("promote_code", "#{promoteCode,jdbcType=VARCHAR}");
}
if (record.getMemDiscountId() != null) { if (record.getMemDiscountId() != null) {
sql.VALUES("mem_discount_id", "#{memDiscountId,jdbcType=BIGINT}"); sql.VALUES("mem_discount_id", "#{memDiscountId,jdbcType=BIGINT}");
} }
@ -100,22 +92,6 @@ public class HighOrderSqlProvider {
sql.VALUES("total_price", "#{totalPrice,jdbcType=DECIMAL}"); sql.VALUES("total_price", "#{totalPrice,jdbcType=DECIMAL}");
} }
if (record.getTotalDeductionPrice() != null) {
sql.VALUES("total_deduction_price", "#{totalDeductionPrice,jdbcType=DECIMAL}");
}
if (record.getDeductionCouponPrice() != null) {
sql.VALUES("deduction_coupon_price", "#{deductionCouponPrice,jdbcType=DECIMAL}");
}
if (record.getDeductionProductPrice() != null) {
sql.VALUES("deduction_product_price", "#{deductionProductPrice,jdbcType=DECIMAL}");
}
if (record.getPayGold() != null) {
sql.VALUES("pay_gold", "#{payGold,jdbcType=INTEGER}");
}
if (record.getPayablePrice() != null) { if (record.getPayablePrice() != null) {
sql.VALUES("payable_price", "#{payablePrice,jdbcType=DECIMAL}"); sql.VALUES("payable_price", "#{payablePrice,jdbcType=DECIMAL}");
} }
@ -140,6 +116,22 @@ public class HighOrderSqlProvider {
sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}"); sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}");
} }
if (record.getTotalDeductionPrice() != null) {
sql.VALUES("total_deduction_price", "#{totalDeductionPrice,jdbcType=DECIMAL}");
}
if (record.getDeductionCouponPrice() != null) {
sql.VALUES("deduction_coupon_price", "#{deductionCouponPrice,jdbcType=DECIMAL}");
}
if (record.getDeductionProductPrice() != null) {
sql.VALUES("deduction_product_price", "#{deductionProductPrice,jdbcType=DECIMAL}");
}
if (record.getPayGold() != null) {
sql.VALUES("pay_gold", "#{payGold,jdbcType=INTEGER}");
}
if (record.getSurplusRefundPrice() != null) { if (record.getSurplusRefundPrice() != null) {
sql.VALUES("surplus_refund_price", "#{surplusRefundPrice,jdbcType=DECIMAL}"); sql.VALUES("surplus_refund_price", "#{surplusRefundPrice,jdbcType=DECIMAL}");
} }
@ -196,6 +188,18 @@ public class HighOrderSqlProvider {
sql.VALUES("exception_content", "#{exceptionContent,jdbcType=VARCHAR}"); sql.VALUES("exception_content", "#{exceptionContent,jdbcType=VARCHAR}");
} }
if (record.getCompanyName() != null) {
sql.VALUES("company_name", "#{companyName,jdbcType=VARCHAR}");
}
if (record.getPromoteCode() != null) {
sql.VALUES("promote_code", "#{promoteCode,jdbcType=VARCHAR}");
}
if (record.getSecUserId() != null) {
sql.VALUES("sec_user_id", "#{secUserId,jdbcType=BIGINT}");
}
if (record.getExt1() != null) { if (record.getExt1() != null) {
sql.VALUES("ext_1", "#{ext1,jdbcType=VARCHAR}"); sql.VALUES("ext_1", "#{ext1,jdbcType=VARCHAR}");
} }
@ -234,8 +238,6 @@ public class HighOrderSqlProvider {
sql.SELECT("search_title"); sql.SELECT("search_title");
sql.SELECT("product_type"); sql.SELECT("product_type");
sql.SELECT("company_id"); sql.SELECT("company_id");
sql.SELECT("company_name");
sql.SELECT("promote_code");
sql.SELECT("mem_discount_id"); sql.SELECT("mem_discount_id");
sql.SELECT("mem_discount_name"); sql.SELECT("mem_discount_name");
sql.SELECT("mem_id"); sql.SELECT("mem_id");
@ -248,16 +250,16 @@ public class HighOrderSqlProvider {
sql.SELECT("mem_card_type"); sql.SELECT("mem_card_type");
sql.SELECT("mem_card_no"); sql.SELECT("mem_card_no");
sql.SELECT("total_price"); sql.SELECT("total_price");
sql.SELECT("total_deduction_price");
sql.SELECT("deduction_coupon_price");
sql.SELECT("deduction_product_price");
sql.SELECT("pay_gold");
sql.SELECT("payable_price"); sql.SELECT("payable_price");
sql.SELECT("pay_price"); sql.SELECT("pay_price");
sql.SELECT("pay_real_price"); sql.SELECT("pay_real_price");
sql.SELECT("order_status"); sql.SELECT("order_status");
sql.SELECT("remarks"); sql.SELECT("remarks");
sql.SELECT("create_time"); sql.SELECT("create_time");
sql.SELECT("total_deduction_price");
sql.SELECT("deduction_coupon_price");
sql.SELECT("deduction_product_price");
sql.SELECT("pay_gold");
sql.SELECT("surplus_refund_price"); sql.SELECT("surplus_refund_price");
sql.SELECT("surplus_refund_integral"); sql.SELECT("surplus_refund_integral");
sql.SELECT("pay_time"); sql.SELECT("pay_time");
@ -272,6 +274,9 @@ public class HighOrderSqlProvider {
sql.SELECT("whether_rebate"); sql.SELECT("whether_rebate");
sql.SELECT("exception_status"); sql.SELECT("exception_status");
sql.SELECT("exception_content"); sql.SELECT("exception_content");
sql.SELECT("company_name");
sql.SELECT("promote_code");
sql.SELECT("sec_user_id");
sql.SELECT("ext_1"); sql.SELECT("ext_1");
sql.SELECT("ext_2"); sql.SELECT("ext_2");
sql.SELECT("ext_3"); sql.SELECT("ext_3");
@ -315,14 +320,6 @@ public class HighOrderSqlProvider {
sql.SET("company_id = #{record.companyId,jdbcType=BIGINT}"); sql.SET("company_id = #{record.companyId,jdbcType=BIGINT}");
} }
if (record.getCompanyName() != null) {
sql.SET("company_name = #{record.companyName,jdbcType=VARCHAR}");
}
if (record.getPromoteCode() != null) {
sql.SET("promote_code = #{record.promoteCode,jdbcType=VARCHAR}");
}
if (record.getMemDiscountId() != null) { if (record.getMemDiscountId() != null) {
sql.SET("mem_discount_id = #{record.memDiscountId,jdbcType=BIGINT}"); sql.SET("mem_discount_id = #{record.memDiscountId,jdbcType=BIGINT}");
} }
@ -371,22 +368,6 @@ public class HighOrderSqlProvider {
sql.SET("total_price = #{record.totalPrice,jdbcType=DECIMAL}"); sql.SET("total_price = #{record.totalPrice,jdbcType=DECIMAL}");
} }
if (record.getTotalDeductionPrice() != null) {
sql.SET("total_deduction_price = #{record.totalDeductionPrice,jdbcType=DECIMAL}");
}
if (record.getDeductionCouponPrice() != null) {
sql.SET("deduction_coupon_price = #{record.deductionCouponPrice,jdbcType=DECIMAL}");
}
if (record.getDeductionProductPrice() != null) {
sql.SET("deduction_product_price = #{record.deductionProductPrice,jdbcType=DECIMAL}");
}
if (record.getPayGold() != null) {
sql.SET("pay_gold = #{record.payGold,jdbcType=INTEGER}");
}
if (record.getPayablePrice() != null) { if (record.getPayablePrice() != null) {
sql.SET("payable_price = #{record.payablePrice,jdbcType=DECIMAL}"); sql.SET("payable_price = #{record.payablePrice,jdbcType=DECIMAL}");
} }
@ -411,6 +392,22 @@ public class HighOrderSqlProvider {
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
} }
if (record.getTotalDeductionPrice() != null) {
sql.SET("total_deduction_price = #{record.totalDeductionPrice,jdbcType=DECIMAL}");
}
if (record.getDeductionCouponPrice() != null) {
sql.SET("deduction_coupon_price = #{record.deductionCouponPrice,jdbcType=DECIMAL}");
}
if (record.getDeductionProductPrice() != null) {
sql.SET("deduction_product_price = #{record.deductionProductPrice,jdbcType=DECIMAL}");
}
if (record.getPayGold() != null) {
sql.SET("pay_gold = #{record.payGold,jdbcType=INTEGER}");
}
if (record.getSurplusRefundPrice() != null) { if (record.getSurplusRefundPrice() != null) {
sql.SET("surplus_refund_price = #{record.surplusRefundPrice,jdbcType=DECIMAL}"); sql.SET("surplus_refund_price = #{record.surplusRefundPrice,jdbcType=DECIMAL}");
} }
@ -467,6 +464,18 @@ public class HighOrderSqlProvider {
sql.SET("exception_content = #{record.exceptionContent,jdbcType=VARCHAR}"); sql.SET("exception_content = #{record.exceptionContent,jdbcType=VARCHAR}");
} }
if (record.getCompanyName() != null) {
sql.SET("company_name = #{record.companyName,jdbcType=VARCHAR}");
}
if (record.getPromoteCode() != null) {
sql.SET("promote_code = #{record.promoteCode,jdbcType=VARCHAR}");
}
if (record.getSecUserId() != null) {
sql.SET("sec_user_id = #{record.secUserId,jdbcType=BIGINT}");
}
if (record.getExt1() != null) { if (record.getExt1() != null) {
sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}");
} }
@ -504,8 +513,6 @@ public class HighOrderSqlProvider {
sql.SET("search_title = #{record.searchTitle,jdbcType=VARCHAR}"); sql.SET("search_title = #{record.searchTitle,jdbcType=VARCHAR}");
sql.SET("product_type = #{record.productType,jdbcType=INTEGER}"); sql.SET("product_type = #{record.productType,jdbcType=INTEGER}");
sql.SET("company_id = #{record.companyId,jdbcType=BIGINT}"); sql.SET("company_id = #{record.companyId,jdbcType=BIGINT}");
sql.SET("company_name = #{record.companyName,jdbcType=VARCHAR}");
sql.SET("promote_code = #{record.promoteCode,jdbcType=VARCHAR}");
sql.SET("mem_discount_id = #{record.memDiscountId,jdbcType=BIGINT}"); sql.SET("mem_discount_id = #{record.memDiscountId,jdbcType=BIGINT}");
sql.SET("mem_discount_name = #{record.memDiscountName,jdbcType=VARCHAR}"); sql.SET("mem_discount_name = #{record.memDiscountName,jdbcType=VARCHAR}");
sql.SET("mem_id = #{record.memId,jdbcType=BIGINT}"); sql.SET("mem_id = #{record.memId,jdbcType=BIGINT}");
@ -518,16 +525,16 @@ public class HighOrderSqlProvider {
sql.SET("mem_card_type = #{record.memCardType,jdbcType=INTEGER}"); sql.SET("mem_card_type = #{record.memCardType,jdbcType=INTEGER}");
sql.SET("mem_card_no = #{record.memCardNo,jdbcType=VARCHAR}"); sql.SET("mem_card_no = #{record.memCardNo,jdbcType=VARCHAR}");
sql.SET("total_price = #{record.totalPrice,jdbcType=DECIMAL}"); sql.SET("total_price = #{record.totalPrice,jdbcType=DECIMAL}");
sql.SET("total_deduction_price = #{record.totalDeductionPrice,jdbcType=DECIMAL}");
sql.SET("deduction_coupon_price = #{record.deductionCouponPrice,jdbcType=DECIMAL}");
sql.SET("deduction_product_price = #{record.deductionProductPrice,jdbcType=DECIMAL}");
sql.SET("pay_gold = #{record.payGold,jdbcType=INTEGER}");
sql.SET("payable_price = #{record.payablePrice,jdbcType=DECIMAL}"); sql.SET("payable_price = #{record.payablePrice,jdbcType=DECIMAL}");
sql.SET("pay_price = #{record.payPrice,jdbcType=DECIMAL}"); sql.SET("pay_price = #{record.payPrice,jdbcType=DECIMAL}");
sql.SET("pay_real_price = #{record.payRealPrice,jdbcType=DECIMAL}"); sql.SET("pay_real_price = #{record.payRealPrice,jdbcType=DECIMAL}");
sql.SET("order_status = #{record.orderStatus,jdbcType=INTEGER}"); sql.SET("order_status = #{record.orderStatus,jdbcType=INTEGER}");
sql.SET("remarks = #{record.remarks,jdbcType=VARCHAR}"); sql.SET("remarks = #{record.remarks,jdbcType=VARCHAR}");
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
sql.SET("total_deduction_price = #{record.totalDeductionPrice,jdbcType=DECIMAL}");
sql.SET("deduction_coupon_price = #{record.deductionCouponPrice,jdbcType=DECIMAL}");
sql.SET("deduction_product_price = #{record.deductionProductPrice,jdbcType=DECIMAL}");
sql.SET("pay_gold = #{record.payGold,jdbcType=INTEGER}");
sql.SET("surplus_refund_price = #{record.surplusRefundPrice,jdbcType=DECIMAL}"); sql.SET("surplus_refund_price = #{record.surplusRefundPrice,jdbcType=DECIMAL}");
sql.SET("surplus_refund_integral = #{record.surplusRefundIntegral,jdbcType=INTEGER}"); sql.SET("surplus_refund_integral = #{record.surplusRefundIntegral,jdbcType=INTEGER}");
sql.SET("pay_time = #{record.payTime,jdbcType=TIMESTAMP}"); sql.SET("pay_time = #{record.payTime,jdbcType=TIMESTAMP}");
@ -542,6 +549,9 @@ public class HighOrderSqlProvider {
sql.SET("whether_rebate = #{record.whetherRebate,jdbcType=BIT}"); sql.SET("whether_rebate = #{record.whetherRebate,jdbcType=BIT}");
sql.SET("exception_status = #{record.exceptionStatus,jdbcType=BIT}"); sql.SET("exception_status = #{record.exceptionStatus,jdbcType=BIT}");
sql.SET("exception_content = #{record.exceptionContent,jdbcType=VARCHAR}"); sql.SET("exception_content = #{record.exceptionContent,jdbcType=VARCHAR}");
sql.SET("company_name = #{record.companyName,jdbcType=VARCHAR}");
sql.SET("promote_code = #{record.promoteCode,jdbcType=VARCHAR}");
sql.SET("sec_user_id = #{record.secUserId,jdbcType=BIGINT}");
sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}");
sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}");
sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}");
@ -574,14 +584,6 @@ public class HighOrderSqlProvider {
sql.SET("company_id = #{companyId,jdbcType=BIGINT}"); sql.SET("company_id = #{companyId,jdbcType=BIGINT}");
} }
if (record.getCompanyName() != null) {
sql.SET("company_name = #{companyName,jdbcType=VARCHAR}");
}
if (record.getPromoteCode() != null) {
sql.SET("promote_code = #{promoteCode,jdbcType=VARCHAR}");
}
if (record.getMemDiscountId() != null) { if (record.getMemDiscountId() != null) {
sql.SET("mem_discount_id = #{memDiscountId,jdbcType=BIGINT}"); sql.SET("mem_discount_id = #{memDiscountId,jdbcType=BIGINT}");
} }
@ -630,22 +632,6 @@ public class HighOrderSqlProvider {
sql.SET("total_price = #{totalPrice,jdbcType=DECIMAL}"); sql.SET("total_price = #{totalPrice,jdbcType=DECIMAL}");
} }
if (record.getTotalDeductionPrice() != null) {
sql.SET("total_deduction_price = #{totalDeductionPrice,jdbcType=DECIMAL}");
}
if (record.getDeductionCouponPrice() != null) {
sql.SET("deduction_coupon_price = #{deductionCouponPrice,jdbcType=DECIMAL}");
}
if (record.getDeductionProductPrice() != null) {
sql.SET("deduction_product_price = #{deductionProductPrice,jdbcType=DECIMAL}");
}
if (record.getPayGold() != null) {
sql.SET("pay_gold = #{payGold,jdbcType=INTEGER}");
}
if (record.getPayablePrice() != null) { if (record.getPayablePrice() != null) {
sql.SET("payable_price = #{payablePrice,jdbcType=DECIMAL}"); sql.SET("payable_price = #{payablePrice,jdbcType=DECIMAL}");
} }
@ -670,6 +656,22 @@ public class HighOrderSqlProvider {
sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}"); sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}");
} }
if (record.getTotalDeductionPrice() != null) {
sql.SET("total_deduction_price = #{totalDeductionPrice,jdbcType=DECIMAL}");
}
if (record.getDeductionCouponPrice() != null) {
sql.SET("deduction_coupon_price = #{deductionCouponPrice,jdbcType=DECIMAL}");
}
if (record.getDeductionProductPrice() != null) {
sql.SET("deduction_product_price = #{deductionProductPrice,jdbcType=DECIMAL}");
}
if (record.getPayGold() != null) {
sql.SET("pay_gold = #{payGold,jdbcType=INTEGER}");
}
if (record.getSurplusRefundPrice() != null) { if (record.getSurplusRefundPrice() != null) {
sql.SET("surplus_refund_price = #{surplusRefundPrice,jdbcType=DECIMAL}"); sql.SET("surplus_refund_price = #{surplusRefundPrice,jdbcType=DECIMAL}");
} }
@ -726,6 +728,18 @@ public class HighOrderSqlProvider {
sql.SET("exception_content = #{exceptionContent,jdbcType=VARCHAR}"); sql.SET("exception_content = #{exceptionContent,jdbcType=VARCHAR}");
} }
if (record.getCompanyName() != null) {
sql.SET("company_name = #{companyName,jdbcType=VARCHAR}");
}
if (record.getPromoteCode() != null) {
sql.SET("promote_code = #{promoteCode,jdbcType=VARCHAR}");
}
if (record.getSecUserId() != null) {
sql.SET("sec_user_id = #{secUserId,jdbcType=BIGINT}");
}
if (record.getExt1() != null) { if (record.getExt1() != null) {
sql.SET("ext_1 = #{ext1,jdbcType=VARCHAR}"); sql.SET("ext_1 = #{ext1,jdbcType=VARCHAR}");
} }

@ -33,6 +33,11 @@ public class GoodsDetail implements Serializable {
*/ */
private Long goodsType; private Long goodsType;
/**
* 商品标签
*/
private String goodsLabel;
/** /**
* 商品名称 * 商品名称
*/ */
@ -64,7 +69,7 @@ public class GoodsDetail implements Serializable {
private String detailImg; private String detailImg;
/** /**
* 商品状态0:删除 1:上线 2:编辑中 3:审核中 * 商品状态0:删除 1:上线 2:编辑中
*/ */
private Integer status; private Integer status;
@ -137,6 +142,14 @@ public class GoodsDetail implements Serializable {
this.goodsType = goodsType; this.goodsType = goodsType;
} }
public String getGoodsLabel() {
return goodsLabel;
}
public void setGoodsLabel(String goodsLabel) {
this.goodsLabel = goodsLabel;
}
public String getName() { public String getName() {
return name; return name;
} }
@ -265,6 +278,7 @@ public class GoodsDetail implements Serializable {
&& (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId())) && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
&& (this.getGoodsTypeName() == null ? other.getGoodsTypeName() == null : this.getGoodsTypeName().equals(other.getGoodsTypeName())) && (this.getGoodsTypeName() == null ? other.getGoodsTypeName() == null : this.getGoodsTypeName().equals(other.getGoodsTypeName()))
&& (this.getGoodsType() == null ? other.getGoodsType() == null : this.getGoodsType().equals(other.getGoodsType())) && (this.getGoodsType() == null ? other.getGoodsType() == null : this.getGoodsType().equals(other.getGoodsType()))
&& (this.getGoodsLabel() == null ? other.getGoodsLabel() == null : this.getGoodsLabel().equals(other.getGoodsLabel()))
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName())) && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
&& (this.getListDescribe() == null ? other.getListDescribe() == null : this.getListDescribe().equals(other.getListDescribe())) && (this.getListDescribe() == null ? other.getListDescribe() == null : this.getListDescribe().equals(other.getListDescribe()))
&& (this.getGoodsDescribe() == null ? other.getGoodsDescribe() == null : this.getGoodsDescribe().equals(other.getGoodsDescribe())) && (this.getGoodsDescribe() == null ? other.getGoodsDescribe() == null : this.getGoodsDescribe().equals(other.getGoodsDescribe()))
@ -289,6 +303,7 @@ public class GoodsDetail implements Serializable {
result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode()); result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
result = prime * result + ((getGoodsTypeName() == null) ? 0 : getGoodsTypeName().hashCode()); result = prime * result + ((getGoodsTypeName() == null) ? 0 : getGoodsTypeName().hashCode());
result = prime * result + ((getGoodsType() == null) ? 0 : getGoodsType().hashCode()); result = prime * result + ((getGoodsType() == null) ? 0 : getGoodsType().hashCode());
result = prime * result + ((getGoodsLabel() == null) ? 0 : getGoodsLabel().hashCode());
result = prime * result + ((getName() == null) ? 0 : getName().hashCode()); result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
result = prime * result + ((getListDescribe() == null) ? 0 : getListDescribe().hashCode()); result = prime * result + ((getListDescribe() == null) ? 0 : getListDescribe().hashCode());
result = prime * result + ((getGoodsDescribe() == null) ? 0 : getGoodsDescribe().hashCode()); result = prime * result + ((getGoodsDescribe() == null) ? 0 : getGoodsDescribe().hashCode());
@ -316,6 +331,7 @@ public class GoodsDetail implements Serializable {
sb.append(", companyId=").append(companyId); sb.append(", companyId=").append(companyId);
sb.append(", goodsTypeName=").append(goodsTypeName); sb.append(", goodsTypeName=").append(goodsTypeName);
sb.append(", goodsType=").append(goodsType); sb.append(", goodsType=").append(goodsType);
sb.append(", goodsLabel=").append(goodsLabel);
sb.append(", name=").append(name); sb.append(", name=").append(name);
sb.append(", listDescribe=").append(listDescribe); sb.append(", listDescribe=").append(listDescribe);
sb.append(", goodsDescribe=").append(goodsDescribe); sb.append(", goodsDescribe=").append(goodsDescribe);
@ -334,4 +350,4 @@ public class GoodsDetail implements Serializable {
sb.append("]"); sb.append("]");
return sb.toString(); return sb.toString();
} }
} }

@ -375,6 +375,76 @@ public class GoodsDetailExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andGoodsLabelIsNull() {
addCriterion("goods_label is null");
return (Criteria) this;
}
public Criteria andGoodsLabelIsNotNull() {
addCriterion("goods_label is not null");
return (Criteria) this;
}
public Criteria andGoodsLabelEqualTo(String value) {
addCriterion("goods_label =", value, "goodsLabel");
return (Criteria) this;
}
public Criteria andGoodsLabelNotEqualTo(String value) {
addCriterion("goods_label <>", value, "goodsLabel");
return (Criteria) this;
}
public Criteria andGoodsLabelGreaterThan(String value) {
addCriterion("goods_label >", value, "goodsLabel");
return (Criteria) this;
}
public Criteria andGoodsLabelGreaterThanOrEqualTo(String value) {
addCriterion("goods_label >=", value, "goodsLabel");
return (Criteria) this;
}
public Criteria andGoodsLabelLessThan(String value) {
addCriterion("goods_label <", value, "goodsLabel");
return (Criteria) this;
}
public Criteria andGoodsLabelLessThanOrEqualTo(String value) {
addCriterion("goods_label <=", value, "goodsLabel");
return (Criteria) this;
}
public Criteria andGoodsLabelLike(String value) {
addCriterion("goods_label like", value, "goodsLabel");
return (Criteria) this;
}
public Criteria andGoodsLabelNotLike(String value) {
addCriterion("goods_label not like", value, "goodsLabel");
return (Criteria) this;
}
public Criteria andGoodsLabelIn(List<String> values) {
addCriterion("goods_label in", values, "goodsLabel");
return (Criteria) this;
}
public Criteria andGoodsLabelNotIn(List<String> values) {
addCriterion("goods_label not in", values, "goodsLabel");
return (Criteria) this;
}
public Criteria andGoodsLabelBetween(String value1, String value2) {
addCriterion("goods_label between", value1, value2, "goodsLabel");
return (Criteria) this;
}
public Criteria andGoodsLabelNotBetween(String value1, String value2) {
addCriterion("goods_label not between", value1, value2, "goodsLabel");
return (Criteria) this;
}
public Criteria andNameIsNull() { public Criteria andNameIsNull() {
addCriterion("`name` is null"); addCriterion("`name` is null");
return (Criteria) this; return (Criteria) this;

@ -84,6 +84,11 @@ public class HighChildOrder implements Serializable {
*/ */
private Long goodsId; private Long goodsId;
/**
* 后台用户ID
*/
private Long secUserId;
/** /**
* 商品的名称 * 商品的名称
*/ */
@ -321,6 +326,14 @@ public class HighChildOrder implements Serializable {
this.goodsId = goodsId; this.goodsId = goodsId;
} }
public Long getSecUserId() {
return secUserId;
}
public void setSecUserId(Long secUserId) {
this.secUserId = secUserId;
}
public String getGoodsName() { public String getGoodsName() {
return goodsName; return goodsName;
} }
@ -585,6 +598,7 @@ public class HighChildOrder implements Serializable {
&& (this.getStoreAddress() == null ? other.getStoreAddress() == null : this.getStoreAddress().equals(other.getStoreAddress())) && (this.getStoreAddress() == null ? other.getStoreAddress() == null : this.getStoreAddress().equals(other.getStoreAddress()))
&& (this.getGoodsType() == null ? other.getGoodsType() == null : this.getGoodsType().equals(other.getGoodsType())) && (this.getGoodsType() == null ? other.getGoodsType() == null : this.getGoodsType().equals(other.getGoodsType()))
&& (this.getGoodsId() == null ? other.getGoodsId() == null : this.getGoodsId().equals(other.getGoodsId())) && (this.getGoodsId() == null ? other.getGoodsId() == null : this.getGoodsId().equals(other.getGoodsId()))
&& (this.getSecUserId() == null ? other.getSecUserId() == null : this.getSecUserId().equals(other.getSecUserId()))
&& (this.getGoodsName() == null ? other.getGoodsName() == null : this.getGoodsName().equals(other.getGoodsName())) && (this.getGoodsName() == null ? other.getGoodsName() == null : this.getGoodsName().equals(other.getGoodsName()))
&& (this.getGoodsDesc() == null ? other.getGoodsDesc() == null : this.getGoodsDesc().equals(other.getGoodsDesc())) && (this.getGoodsDesc() == null ? other.getGoodsDesc() == null : this.getGoodsDesc().equals(other.getGoodsDesc()))
&& (this.getGoodsImg() == null ? other.getGoodsImg() == null : this.getGoodsImg().equals(other.getGoodsImg())) && (this.getGoodsImg() == null ? other.getGoodsImg() == null : this.getGoodsImg().equals(other.getGoodsImg()))
@ -633,6 +647,7 @@ public class HighChildOrder implements Serializable {
result = prime * result + ((getStoreAddress() == null) ? 0 : getStoreAddress().hashCode()); result = prime * result + ((getStoreAddress() == null) ? 0 : getStoreAddress().hashCode());
result = prime * result + ((getGoodsType() == null) ? 0 : getGoodsType().hashCode()); result = prime * result + ((getGoodsType() == null) ? 0 : getGoodsType().hashCode());
result = prime * result + ((getGoodsId() == null) ? 0 : getGoodsId().hashCode()); result = prime * result + ((getGoodsId() == null) ? 0 : getGoodsId().hashCode());
result = prime * result + ((getSecUserId() == null) ? 0 : getSecUserId().hashCode());
result = prime * result + ((getGoodsName() == null) ? 0 : getGoodsName().hashCode()); result = prime * result + ((getGoodsName() == null) ? 0 : getGoodsName().hashCode());
result = prime * result + ((getGoodsDesc() == null) ? 0 : getGoodsDesc().hashCode()); result = prime * result + ((getGoodsDesc() == null) ? 0 : getGoodsDesc().hashCode());
result = prime * result + ((getGoodsImg() == null) ? 0 : getGoodsImg().hashCode()); result = prime * result + ((getGoodsImg() == null) ? 0 : getGoodsImg().hashCode());
@ -684,6 +699,7 @@ public class HighChildOrder implements Serializable {
sb.append(", storeAddress=").append(storeAddress); sb.append(", storeAddress=").append(storeAddress);
sb.append(", goodsType=").append(goodsType); sb.append(", goodsType=").append(goodsType);
sb.append(", goodsId=").append(goodsId); sb.append(", goodsId=").append(goodsId);
sb.append(", secUserId=").append(secUserId);
sb.append(", goodsName=").append(goodsName); sb.append(", goodsName=").append(goodsName);
sb.append(", goodsDesc=").append(goodsDesc); sb.append(", goodsDesc=").append(goodsDesc);
sb.append(", goodsImg=").append(goodsImg); sb.append(", goodsImg=").append(goodsImg);

@ -906,6 +906,66 @@ public class HighChildOrderExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andSecUserIdIsNull() {
addCriterion("sec_user_id is null");
return (Criteria) this;
}
public Criteria andSecUserIdIsNotNull() {
addCriterion("sec_user_id is not null");
return (Criteria) this;
}
public Criteria andSecUserIdEqualTo(Long value) {
addCriterion("sec_user_id =", value, "secUserId");
return (Criteria) this;
}
public Criteria andSecUserIdNotEqualTo(Long value) {
addCriterion("sec_user_id <>", value, "secUserId");
return (Criteria) this;
}
public Criteria andSecUserIdGreaterThan(Long value) {
addCriterion("sec_user_id >", value, "secUserId");
return (Criteria) this;
}
public Criteria andSecUserIdGreaterThanOrEqualTo(Long value) {
addCriterion("sec_user_id >=", value, "secUserId");
return (Criteria) this;
}
public Criteria andSecUserIdLessThan(Long value) {
addCriterion("sec_user_id <", value, "secUserId");
return (Criteria) this;
}
public Criteria andSecUserIdLessThanOrEqualTo(Long value) {
addCriterion("sec_user_id <=", value, "secUserId");
return (Criteria) this;
}
public Criteria andSecUserIdIn(List<Long> values) {
addCriterion("sec_user_id in", values, "secUserId");
return (Criteria) this;
}
public Criteria andSecUserIdNotIn(List<Long> values) {
addCriterion("sec_user_id not in", values, "secUserId");
return (Criteria) this;
}
public Criteria andSecUserIdBetween(Long value1, Long value2) {
addCriterion("sec_user_id between", value1, value2, "secUserId");
return (Criteria) this;
}
public Criteria andSecUserIdNotBetween(Long value1, Long value2) {
addCriterion("sec_user_id not between", value1, value2, "secUserId");
return (Criteria) this;
}
public Criteria andGoodsNameIsNull() { public Criteria andGoodsNameIsNull() {
addCriterion("goods_name is null"); addCriterion("goods_name is null");
return (Criteria) this; return (Criteria) this;

@ -41,6 +41,9 @@ public class HighOrder implements Serializable {
7优惠券包 7优惠券包
8汇联通充值 8汇联通充值
9话费充值 9话费充值
10:电影票
11:贵州中石化
12:实物商品
*/ */
private Integer productType; private Integer productType;
@ -49,16 +52,6 @@ public class HighOrder implements Serializable {
*/ */
private Long companyId; private Long companyId;
/**
* 公司名称
*/
private String companyName;
/**
* 推广码
*/
private String promoteCode;
/** /**
* 用户的优惠券high_discount_user_rel表的id * 用户的优惠券high_discount_user_rel表的id
*/ */
@ -119,26 +112,6 @@ public class HighOrder implements Serializable {
*/ */
private BigDecimal totalPrice; private BigDecimal totalPrice;
/**
* 交易总优惠金额优惠券优惠金额+商品优惠金额
*/
private BigDecimal totalDeductionPrice;
/**
* 优惠券优惠金额
*/
private BigDecimal deductionCouponPrice;
/**
* 产品优惠金额
*/
private BigDecimal deductionProductPrice;
/**
* 积分抵扣
*/
private Integer payGold;
/** /**
* 应付金额 * 应付金额
*/ */
@ -169,6 +142,26 @@ public class HighOrder implements Serializable {
*/ */
private Date createTime; private Date createTime;
/**
* 交易总优惠金额优惠券优惠金额+商品优惠金额
*/
private BigDecimal totalDeductionPrice;
/**
* 优惠券优惠金额
*/
private BigDecimal deductionCouponPrice;
/**
* 产品优惠金额
*/
private BigDecimal deductionProductPrice;
/**
* 积分抵扣
*/
private Integer payGold;
/** /**
* 可退款金额 * 可退款金额
*/ */
@ -239,6 +232,21 @@ public class HighOrder implements Serializable {
*/ */
private String exceptionContent; private String exceptionContent;
/**
* 公司名称
*/
private String companyName;
/**
* 推广码
*/
private String promoteCode;
/**
* 后台用户ID
*/
private Long secUserId;
private String ext1; private String ext1;
private String ext2; private String ext2;
@ -249,6 +257,9 @@ public class HighOrder implements Serializable {
private String ext5; private String ext5;
/**
* 存实物 商品图片
*/
private String ext6; private String ext6;
private String time; private String time;
@ -323,22 +334,6 @@ public class HighOrder implements Serializable {
this.companyId = companyId; this.companyId = companyId;
} }
public String getCompanyName() {
return companyName;
}
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
public String getPromoteCode() {
return promoteCode;
}
public void setPromoteCode(String promoteCode) {
this.promoteCode = promoteCode;
}
public Long getMemDiscountId() { public Long getMemDiscountId() {
return memDiscountId; return memDiscountId;
} }
@ -435,38 +430,6 @@ public class HighOrder implements Serializable {
this.totalPrice = totalPrice; this.totalPrice = totalPrice;
} }
public BigDecimal getTotalDeductionPrice() {
return totalDeductionPrice;
}
public void setTotalDeductionPrice(BigDecimal totalDeductionPrice) {
this.totalDeductionPrice = totalDeductionPrice;
}
public BigDecimal getDeductionCouponPrice() {
return deductionCouponPrice;
}
public void setDeductionCouponPrice(BigDecimal deductionCouponPrice) {
this.deductionCouponPrice = deductionCouponPrice;
}
public BigDecimal getDeductionProductPrice() {
return deductionProductPrice;
}
public void setDeductionProductPrice(BigDecimal deductionProductPrice) {
this.deductionProductPrice = deductionProductPrice;
}
public Integer getPayGold() {
return payGold;
}
public void setPayGold(Integer payGold) {
this.payGold = payGold;
}
public BigDecimal getPayablePrice() { public BigDecimal getPayablePrice() {
return payablePrice; return payablePrice;
} }
@ -515,6 +478,38 @@ public class HighOrder implements Serializable {
this.createTime = createTime; this.createTime = createTime;
} }
public BigDecimal getTotalDeductionPrice() {
return totalDeductionPrice;
}
public void setTotalDeductionPrice(BigDecimal totalDeductionPrice) {
this.totalDeductionPrice = totalDeductionPrice;
}
public BigDecimal getDeductionCouponPrice() {
return deductionCouponPrice;
}
public void setDeductionCouponPrice(BigDecimal deductionCouponPrice) {
this.deductionCouponPrice = deductionCouponPrice;
}
public BigDecimal getDeductionProductPrice() {
return deductionProductPrice;
}
public void setDeductionProductPrice(BigDecimal deductionProductPrice) {
this.deductionProductPrice = deductionProductPrice;
}
public Integer getPayGold() {
return payGold;
}
public void setPayGold(Integer payGold) {
this.payGold = payGold;
}
public BigDecimal getSurplusRefundPrice() { public BigDecimal getSurplusRefundPrice() {
return surplusRefundPrice; return surplusRefundPrice;
} }
@ -627,6 +622,30 @@ public class HighOrder implements Serializable {
this.exceptionContent = exceptionContent; this.exceptionContent = exceptionContent;
} }
public String getCompanyName() {
return companyName;
}
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
public String getPromoteCode() {
return promoteCode;
}
public void setPromoteCode(String promoteCode) {
this.promoteCode = promoteCode;
}
public Long getSecUserId() {
return secUserId;
}
public void setSecUserId(Long secUserId) {
this.secUserId = secUserId;
}
public String getExt1() { public String getExt1() {
return ext1; return ext1;
} }
@ -692,8 +711,6 @@ public class HighOrder implements Serializable {
&& (this.getSearchTitle() == null ? other.getSearchTitle() == null : this.getSearchTitle().equals(other.getSearchTitle())) && (this.getSearchTitle() == null ? other.getSearchTitle() == null : this.getSearchTitle().equals(other.getSearchTitle()))
&& (this.getProductType() == null ? other.getProductType() == null : this.getProductType().equals(other.getProductType())) && (this.getProductType() == null ? other.getProductType() == null : this.getProductType().equals(other.getProductType()))
&& (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId())) && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
&& (this.getCompanyName() == null ? other.getCompanyName() == null : this.getCompanyName().equals(other.getCompanyName()))
&& (this.getPromoteCode() == null ? other.getPromoteCode() == null : this.getPromoteCode().equals(other.getPromoteCode()))
&& (this.getMemDiscountId() == null ? other.getMemDiscountId() == null : this.getMemDiscountId().equals(other.getMemDiscountId())) && (this.getMemDiscountId() == null ? other.getMemDiscountId() == null : this.getMemDiscountId().equals(other.getMemDiscountId()))
&& (this.getMemDiscountName() == null ? other.getMemDiscountName() == null : this.getMemDiscountName().equals(other.getMemDiscountName())) && (this.getMemDiscountName() == null ? other.getMemDiscountName() == null : this.getMemDiscountName().equals(other.getMemDiscountName()))
&& (this.getMemId() == null ? other.getMemId() == null : this.getMemId().equals(other.getMemId())) && (this.getMemId() == null ? other.getMemId() == null : this.getMemId().equals(other.getMemId()))
@ -706,16 +723,16 @@ public class HighOrder implements Serializable {
&& (this.getMemCardType() == null ? other.getMemCardType() == null : this.getMemCardType().equals(other.getMemCardType())) && (this.getMemCardType() == null ? other.getMemCardType() == null : this.getMemCardType().equals(other.getMemCardType()))
&& (this.getMemCardNo() == null ? other.getMemCardNo() == null : this.getMemCardNo().equals(other.getMemCardNo())) && (this.getMemCardNo() == null ? other.getMemCardNo() == null : this.getMemCardNo().equals(other.getMemCardNo()))
&& (this.getTotalPrice() == null ? other.getTotalPrice() == null : this.getTotalPrice().equals(other.getTotalPrice())) && (this.getTotalPrice() == null ? other.getTotalPrice() == null : this.getTotalPrice().equals(other.getTotalPrice()))
&& (this.getTotalDeductionPrice() == null ? other.getTotalDeductionPrice() == null : this.getTotalDeductionPrice().equals(other.getTotalDeductionPrice()))
&& (this.getDeductionCouponPrice() == null ? other.getDeductionCouponPrice() == null : this.getDeductionCouponPrice().equals(other.getDeductionCouponPrice()))
&& (this.getDeductionProductPrice() == null ? other.getDeductionProductPrice() == null : this.getDeductionProductPrice().equals(other.getDeductionProductPrice()))
&& (this.getPayGold() == null ? other.getPayGold() == null : this.getPayGold().equals(other.getPayGold()))
&& (this.getPayablePrice() == null ? other.getPayablePrice() == null : this.getPayablePrice().equals(other.getPayablePrice())) && (this.getPayablePrice() == null ? other.getPayablePrice() == null : this.getPayablePrice().equals(other.getPayablePrice()))
&& (this.getPayPrice() == null ? other.getPayPrice() == null : this.getPayPrice().equals(other.getPayPrice())) && (this.getPayPrice() == null ? other.getPayPrice() == null : this.getPayPrice().equals(other.getPayPrice()))
&& (this.getPayRealPrice() == null ? other.getPayRealPrice() == null : this.getPayRealPrice().equals(other.getPayRealPrice())) && (this.getPayRealPrice() == null ? other.getPayRealPrice() == null : this.getPayRealPrice().equals(other.getPayRealPrice()))
&& (this.getOrderStatus() == null ? other.getOrderStatus() == null : this.getOrderStatus().equals(other.getOrderStatus())) && (this.getOrderStatus() == null ? other.getOrderStatus() == null : this.getOrderStatus().equals(other.getOrderStatus()))
&& (this.getRemarks() == null ? other.getRemarks() == null : this.getRemarks().equals(other.getRemarks())) && (this.getRemarks() == null ? other.getRemarks() == null : this.getRemarks().equals(other.getRemarks()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
&& (this.getTotalDeductionPrice() == null ? other.getTotalDeductionPrice() == null : this.getTotalDeductionPrice().equals(other.getTotalDeductionPrice()))
&& (this.getDeductionCouponPrice() == null ? other.getDeductionCouponPrice() == null : this.getDeductionCouponPrice().equals(other.getDeductionCouponPrice()))
&& (this.getDeductionProductPrice() == null ? other.getDeductionProductPrice() == null : this.getDeductionProductPrice().equals(other.getDeductionProductPrice()))
&& (this.getPayGold() == null ? other.getPayGold() == null : this.getPayGold().equals(other.getPayGold()))
&& (this.getSurplusRefundPrice() == null ? other.getSurplusRefundPrice() == null : this.getSurplusRefundPrice().equals(other.getSurplusRefundPrice())) && (this.getSurplusRefundPrice() == null ? other.getSurplusRefundPrice() == null : this.getSurplusRefundPrice().equals(other.getSurplusRefundPrice()))
&& (this.getSurplusRefundIntegral() == null ? other.getSurplusRefundIntegral() == null : this.getSurplusRefundIntegral().equals(other.getSurplusRefundIntegral())) && (this.getSurplusRefundIntegral() == null ? other.getSurplusRefundIntegral() == null : this.getSurplusRefundIntegral().equals(other.getSurplusRefundIntegral()))
&& (this.getPayTime() == null ? other.getPayTime() == null : this.getPayTime().equals(other.getPayTime())) && (this.getPayTime() == null ? other.getPayTime() == null : this.getPayTime().equals(other.getPayTime()))
@ -730,6 +747,9 @@ public class HighOrder implements Serializable {
&& (this.getWhetherRebate() == null ? other.getWhetherRebate() == null : this.getWhetherRebate().equals(other.getWhetherRebate())) && (this.getWhetherRebate() == null ? other.getWhetherRebate() == null : this.getWhetherRebate().equals(other.getWhetherRebate()))
&& (this.getExceptionStatus() == null ? other.getExceptionStatus() == null : this.getExceptionStatus().equals(other.getExceptionStatus())) && (this.getExceptionStatus() == null ? other.getExceptionStatus() == null : this.getExceptionStatus().equals(other.getExceptionStatus()))
&& (this.getExceptionContent() == null ? other.getExceptionContent() == null : this.getExceptionContent().equals(other.getExceptionContent())) && (this.getExceptionContent() == null ? other.getExceptionContent() == null : this.getExceptionContent().equals(other.getExceptionContent()))
&& (this.getCompanyName() == null ? other.getCompanyName() == null : this.getCompanyName().equals(other.getCompanyName()))
&& (this.getPromoteCode() == null ? other.getPromoteCode() == null : this.getPromoteCode().equals(other.getPromoteCode()))
&& (this.getSecUserId() == null ? other.getSecUserId() == null : this.getSecUserId().equals(other.getSecUserId()))
&& (this.getExt1() == null ? other.getExt1() == null : this.getExt1().equals(other.getExt1())) && (this.getExt1() == null ? other.getExt1() == null : this.getExt1().equals(other.getExt1()))
&& (this.getExt2() == null ? other.getExt2() == null : this.getExt2().equals(other.getExt2())) && (this.getExt2() == null ? other.getExt2() == null : this.getExt2().equals(other.getExt2()))
&& (this.getExt3() == null ? other.getExt3() == null : this.getExt3().equals(other.getExt3())) && (this.getExt3() == null ? other.getExt3() == null : this.getExt3().equals(other.getExt3()))
@ -747,8 +767,6 @@ public class HighOrder implements Serializable {
result = prime * result + ((getSearchTitle() == null) ? 0 : getSearchTitle().hashCode()); result = prime * result + ((getSearchTitle() == null) ? 0 : getSearchTitle().hashCode());
result = prime * result + ((getProductType() == null) ? 0 : getProductType().hashCode()); result = prime * result + ((getProductType() == null) ? 0 : getProductType().hashCode());
result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode()); result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
result = prime * result + ((getCompanyName() == null) ? 0 : getCompanyName().hashCode());
result = prime * result + ((getPromoteCode() == null) ? 0 : getPromoteCode().hashCode());
result = prime * result + ((getMemDiscountId() == null) ? 0 : getMemDiscountId().hashCode()); result = prime * result + ((getMemDiscountId() == null) ? 0 : getMemDiscountId().hashCode());
result = prime * result + ((getMemDiscountName() == null) ? 0 : getMemDiscountName().hashCode()); result = prime * result + ((getMemDiscountName() == null) ? 0 : getMemDiscountName().hashCode());
result = prime * result + ((getMemId() == null) ? 0 : getMemId().hashCode()); result = prime * result + ((getMemId() == null) ? 0 : getMemId().hashCode());
@ -761,16 +779,16 @@ public class HighOrder implements Serializable {
result = prime * result + ((getMemCardType() == null) ? 0 : getMemCardType().hashCode()); result = prime * result + ((getMemCardType() == null) ? 0 : getMemCardType().hashCode());
result = prime * result + ((getMemCardNo() == null) ? 0 : getMemCardNo().hashCode()); result = prime * result + ((getMemCardNo() == null) ? 0 : getMemCardNo().hashCode());
result = prime * result + ((getTotalPrice() == null) ? 0 : getTotalPrice().hashCode()); result = prime * result + ((getTotalPrice() == null) ? 0 : getTotalPrice().hashCode());
result = prime * result + ((getTotalDeductionPrice() == null) ? 0 : getTotalDeductionPrice().hashCode());
result = prime * result + ((getDeductionCouponPrice() == null) ? 0 : getDeductionCouponPrice().hashCode());
result = prime * result + ((getDeductionProductPrice() == null) ? 0 : getDeductionProductPrice().hashCode());
result = prime * result + ((getPayGold() == null) ? 0 : getPayGold().hashCode());
result = prime * result + ((getPayablePrice() == null) ? 0 : getPayablePrice().hashCode()); result = prime * result + ((getPayablePrice() == null) ? 0 : getPayablePrice().hashCode());
result = prime * result + ((getPayPrice() == null) ? 0 : getPayPrice().hashCode()); result = prime * result + ((getPayPrice() == null) ? 0 : getPayPrice().hashCode());
result = prime * result + ((getPayRealPrice() == null) ? 0 : getPayRealPrice().hashCode()); result = prime * result + ((getPayRealPrice() == null) ? 0 : getPayRealPrice().hashCode());
result = prime * result + ((getOrderStatus() == null) ? 0 : getOrderStatus().hashCode()); result = prime * result + ((getOrderStatus() == null) ? 0 : getOrderStatus().hashCode());
result = prime * result + ((getRemarks() == null) ? 0 : getRemarks().hashCode()); result = prime * result + ((getRemarks() == null) ? 0 : getRemarks().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
result = prime * result + ((getTotalDeductionPrice() == null) ? 0 : getTotalDeductionPrice().hashCode());
result = prime * result + ((getDeductionCouponPrice() == null) ? 0 : getDeductionCouponPrice().hashCode());
result = prime * result + ((getDeductionProductPrice() == null) ? 0 : getDeductionProductPrice().hashCode());
result = prime * result + ((getPayGold() == null) ? 0 : getPayGold().hashCode());
result = prime * result + ((getSurplusRefundPrice() == null) ? 0 : getSurplusRefundPrice().hashCode()); result = prime * result + ((getSurplusRefundPrice() == null) ? 0 : getSurplusRefundPrice().hashCode());
result = prime * result + ((getSurplusRefundIntegral() == null) ? 0 : getSurplusRefundIntegral().hashCode()); result = prime * result + ((getSurplusRefundIntegral() == null) ? 0 : getSurplusRefundIntegral().hashCode());
result = prime * result + ((getPayTime() == null) ? 0 : getPayTime().hashCode()); result = prime * result + ((getPayTime() == null) ? 0 : getPayTime().hashCode());
@ -785,6 +803,9 @@ public class HighOrder implements Serializable {
result = prime * result + ((getWhetherRebate() == null) ? 0 : getWhetherRebate().hashCode()); result = prime * result + ((getWhetherRebate() == null) ? 0 : getWhetherRebate().hashCode());
result = prime * result + ((getExceptionStatus() == null) ? 0 : getExceptionStatus().hashCode()); result = prime * result + ((getExceptionStatus() == null) ? 0 : getExceptionStatus().hashCode());
result = prime * result + ((getExceptionContent() == null) ? 0 : getExceptionContent().hashCode()); result = prime * result + ((getExceptionContent() == null) ? 0 : getExceptionContent().hashCode());
result = prime * result + ((getCompanyName() == null) ? 0 : getCompanyName().hashCode());
result = prime * result + ((getPromoteCode() == null) ? 0 : getPromoteCode().hashCode());
result = prime * result + ((getSecUserId() == null) ? 0 : getSecUserId().hashCode());
result = prime * result + ((getExt1() == null) ? 0 : getExt1().hashCode()); result = prime * result + ((getExt1() == null) ? 0 : getExt1().hashCode());
result = prime * result + ((getExt2() == null) ? 0 : getExt2().hashCode()); result = prime * result + ((getExt2() == null) ? 0 : getExt2().hashCode());
result = prime * result + ((getExt3() == null) ? 0 : getExt3().hashCode()); result = prime * result + ((getExt3() == null) ? 0 : getExt3().hashCode());
@ -805,8 +826,6 @@ public class HighOrder implements Serializable {
sb.append(", searchTitle=").append(searchTitle); sb.append(", searchTitle=").append(searchTitle);
sb.append(", productType=").append(productType); sb.append(", productType=").append(productType);
sb.append(", companyId=").append(companyId); sb.append(", companyId=").append(companyId);
sb.append(", companyName=").append(companyName);
sb.append(", promoteCode=").append(promoteCode);
sb.append(", memDiscountId=").append(memDiscountId); sb.append(", memDiscountId=").append(memDiscountId);
sb.append(", memDiscountName=").append(memDiscountName); sb.append(", memDiscountName=").append(memDiscountName);
sb.append(", memId=").append(memId); sb.append(", memId=").append(memId);
@ -819,16 +838,16 @@ public class HighOrder implements Serializable {
sb.append(", memCardType=").append(memCardType); sb.append(", memCardType=").append(memCardType);
sb.append(", memCardNo=").append(memCardNo); sb.append(", memCardNo=").append(memCardNo);
sb.append(", totalPrice=").append(totalPrice); sb.append(", totalPrice=").append(totalPrice);
sb.append(", totalDeductionPrice=").append(totalDeductionPrice);
sb.append(", deductionCouponPrice=").append(deductionCouponPrice);
sb.append(", deductionProductPrice=").append(deductionProductPrice);
sb.append(", payGold=").append(payGold);
sb.append(", payablePrice=").append(payablePrice); sb.append(", payablePrice=").append(payablePrice);
sb.append(", payPrice=").append(payPrice); sb.append(", payPrice=").append(payPrice);
sb.append(", payRealPrice=").append(payRealPrice); sb.append(", payRealPrice=").append(payRealPrice);
sb.append(", orderStatus=").append(orderStatus); sb.append(", orderStatus=").append(orderStatus);
sb.append(", remarks=").append(remarks); sb.append(", remarks=").append(remarks);
sb.append(", createTime=").append(createTime); sb.append(", createTime=").append(createTime);
sb.append(", totalDeductionPrice=").append(totalDeductionPrice);
sb.append(", deductionCouponPrice=").append(deductionCouponPrice);
sb.append(", deductionProductPrice=").append(deductionProductPrice);
sb.append(", payGold=").append(payGold);
sb.append(", surplusRefundPrice=").append(surplusRefundPrice); sb.append(", surplusRefundPrice=").append(surplusRefundPrice);
sb.append(", surplusRefundIntegral=").append(surplusRefundIntegral); sb.append(", surplusRefundIntegral=").append(surplusRefundIntegral);
sb.append(", payTime=").append(payTime); sb.append(", payTime=").append(payTime);
@ -843,6 +862,9 @@ public class HighOrder implements Serializable {
sb.append(", whetherRebate=").append(whetherRebate); sb.append(", whetherRebate=").append(whetherRebate);
sb.append(", exceptionStatus=").append(exceptionStatus); sb.append(", exceptionStatus=").append(exceptionStatus);
sb.append(", exceptionContent=").append(exceptionContent); sb.append(", exceptionContent=").append(exceptionContent);
sb.append(", companyName=").append(companyName);
sb.append(", promoteCode=").append(promoteCode);
sb.append(", secUserId=").append(secUserId);
sb.append(", ext1=").append(ext1); sb.append(", ext1=").append(ext1);
sb.append(", ext2=").append(ext2); sb.append(", ext2=").append(ext2);
sb.append(", ext3=").append(ext3); sb.append(", ext3=").append(ext3);

@ -9,7 +9,7 @@ public enum ApproveType {
UP_SHELF_APPROVE(1, "卡卷上架审批"), UP_SHELF_APPROVE(1, "卡卷上架审批"),
COUPON_PRICE_APPROVE(2, "卡卷价格审批"), COUPON_PRICE_APPROVE(2, "卡卷价格审批"),
COUPON_DISTRIBUTE_APPROVE(3, "卡卷分发审批"), COUPON_DISTRIBUTE_APPROVE(3, "卡卷分发审批"),
GOODS_UP_SHELF_APPROVE(4, "卡卷分发审批"), GOODS_UP_SHELF_APPROVE(4, "实物审批"),
; ;
private Integer type; private Integer type;

@ -1,9 +1,11 @@
package com.hai.goods.model; package com.hai.goods.model;
import com.hai.entity.GoodsDetail; import com.hai.entity.GoodsDetail;
import com.hai.entity.GoodsSku;
import java.io.Serializable; import java.io.Serializable;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.List;
public class GoodsModel extends GoodsDetail { public class GoodsModel extends GoodsDetail {
@ -14,6 +16,8 @@ public class GoodsModel extends GoodsDetail {
private Boolean whetherMultiple; private Boolean whetherMultiple;
private List<GoodsSku> goodsSkus;
public BigDecimal getPrice() { public BigDecimal getPrice() {
return price; return price;
@ -38,4 +42,12 @@ public class GoodsModel extends GoodsDetail {
public void setWhetherMultiple(Boolean whetherMultiple) { public void setWhetherMultiple(Boolean whetherMultiple) {
this.whetherMultiple = whetherMultiple; this.whetherMultiple = whetherMultiple;
} }
public List<GoodsSku> getGoodsSkus() {
return goodsSkus;
}
public void setGoodsSkus(List<GoodsSku> goodsSkus) {
this.goodsSkus = goodsSkus;
}
} }

@ -3,6 +3,7 @@ package com.hai.goods.service;
import com.hai.entity.ApiMchProduct; import com.hai.entity.ApiMchProduct;
import com.hai.entity.GoodsDetail; import com.hai.entity.GoodsDetail;
import com.hai.entity.GoodsLogistics; import com.hai.entity.GoodsLogistics;
import com.hai.entity.HighApprove;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -57,4 +58,6 @@ public interface GoodsDetailService {
*/ */
GoodsDetail findGoodsDetailById(Long id); GoodsDetail findGoodsDetailById(Long id);
void upShelfApproveResult(HighApprove highApprove);
} }

@ -2,6 +2,8 @@ package com.hai.goods.service;
import com.hai.entity.GoodsPresent; import com.hai.entity.GoodsPresent;
import com.hai.entity.GoodsPresentRecord; import com.hai.entity.GoodsPresentRecord;
import com.hai.entity.HighChildOrder;
import com.hai.entity.HighOrder;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -88,4 +90,16 @@ public interface GoodsPresentService {
* @Return java.util.List<com.hai.entity.GoodsPresentRecord> * @Return java.util.List<com.hai.entity.GoodsPresentRecord>
*/ */
List<GoodsPresentRecord> getPresentRecord(Map<String , Object> map); List<GoodsPresentRecord> getPresentRecord(Map<String , Object> map);
void presentUser(HighOrder order , HighChildOrder highChildOrder);
/**
* @Author Sum1Dream
* @Name preGiveUser
* @Description // 预送用户卡券
* @Date 14:45 2023/5/10
* @Param [order, highChildOrder]
* @Return void
*/
void preGiveUser( HighChildOrder highChildOrder);
} }

@ -1,16 +1,17 @@
package com.hai.goods.service.impl; package com.hai.goods.service.impl;
import com.hai.common.exception.ErrorCode;
import com.hai.common.exception.ErrorHelp;
import com.hai.common.exception.SysCode;
import com.hai.dao.GoodsDetailMapper; import com.hai.dao.GoodsDetailMapper;
import com.hai.dao.GoodsLogisticsMapper; import com.hai.dao.GoodsLogisticsMapper;
import com.hai.entity.ApiMerchantsExample; import com.hai.entity.*;
import com.hai.entity.GoodsDetail;
import com.hai.entity.GoodsDetailExample;
import com.hai.entity.GoodsLogistics;
import com.hai.goods.service.GoodsDetailService; import com.hai.goods.service.GoodsDetailService;
import org.apache.commons.collections4.MapUtils; import org.apache.commons.collections4.MapUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -21,9 +22,6 @@ public class GoodsDetailServiceImpl implements GoodsDetailService {
@Resource @Resource
private GoodsDetailMapper goodsDetailMapper; private GoodsDetailMapper goodsDetailMapper;
@Resource
private GoodsLogisticsMapper logisticsMapper;
@Override @Override
public void insertGoodsDetail(GoodsDetail goodsDetail) { public void insertGoodsDetail(GoodsDetail goodsDetail) {
goodsDetailMapper.insert(goodsDetail); goodsDetailMapper.insert(goodsDetail);
@ -43,12 +41,18 @@ public class GoodsDetailServiceImpl implements GoodsDetailService {
if (MapUtils.getString(map, "title") != null) { if (MapUtils.getString(map, "title") != null) {
criteria.andNameLike("%" + MapUtils.getString(map, "title") + "%"); criteria.andNameLike("%" + MapUtils.getString(map, "title") + "%");
} }
if (MapUtils.getString(map, "goodsLabel") != null) {
criteria.andGoodsLabelLike("%" + MapUtils.getString(map, "goodsLabel") + "%");
}
if (MapUtils.getLong(map, "goodsType") != null) { if (MapUtils.getLong(map, "goodsType") != null) {
criteria.andGoodsTypeEqualTo(MapUtils.getLong(map, "goodsType") ); criteria.andGoodsTypeEqualTo(MapUtils.getLong(map, "goodsType") );
} }
if (MapUtils.getLong(map, "opId") != null) { if (MapUtils.getLong(map, "opId") != null) {
criteria.andOpIdEqualTo(MapUtils.getLong(map, "opId") ); criteria.andOpIdEqualTo(MapUtils.getLong(map, "opId") );
} }
if (MapUtils.getLong(map, "companyId") != null) {
criteria.andCompanyIdEqualTo(MapUtils.getLong(map, "companyId") );
}
if (MapUtils.getInteger(map, "status") != null) { if (MapUtils.getInteger(map, "status") != null) {
criteria.andStatusEqualTo(MapUtils.getInteger(map, "status") ); criteria.andStatusEqualTo(MapUtils.getInteger(map, "status") );
} else { } else {
@ -64,4 +68,26 @@ public class GoodsDetailServiceImpl implements GoodsDetailService {
return goodsDetailMapper.selectByPrimaryKey(id); return goodsDetailMapper.selectByPrimaryKey(id);
} }
@Override
public void upShelfApproveResult(HighApprove highApprove) {
GoodsDetail goodsDetail = findGoodsDetailById(highApprove.getObjectId());
if (goodsDetail == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到相关信息!");
}
if (goodsDetail.getStatus() != 3) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "状态错误!");
}
// 状态: 1:待审批 2:驳回 3:通过
if (highApprove.getStatus() == 2) {
goodsDetail.setStatus(2);
}
if (highApprove.getStatus() == 3) {
goodsDetail.setStatus(1);
}
goodsDetail.setUpdateTime(new Date());
updateGoodsDetail(goodsDetail);
}
} }

@ -1,16 +1,19 @@
package com.hai.goods.service.impl; package com.hai.goods.service.impl;
import com.hai.config.HuiLianTongConfig;
import com.hai.dao.GoodsPresentMapper; import com.hai.dao.GoodsPresentMapper;
import com.hai.dao.GoodsPresentRecordMapper; import com.hai.dao.GoodsPresentRecordMapper;
import com.hai.entity.GoodsPresent; import com.hai.entity.*;
import com.hai.entity.GoodsPresentExample;
import com.hai.entity.GoodsPresentRecord;
import com.hai.entity.GoodsRegionFreight;
import com.hai.goods.service.GoodsPresentService; import com.hai.goods.service.GoodsPresentService;
import com.hai.service.HighCouponCodeService;
import com.hai.service.HighCouponService;
import com.hai.service.HighDiscountAgentCodeService;
import org.apache.commons.collections4.MapUtils; import org.apache.commons.collections4.MapUtils;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -23,6 +26,18 @@ public class GoodsPresentServiceImpl implements GoodsPresentService {
@Resource @Resource
private GoodsPresentRecordMapper goodsPresentRecordMapper; private GoodsPresentRecordMapper goodsPresentRecordMapper;
@Resource
private GoodsPresentService goodsPresentService;
@Resource
private HighCouponService highCouponService;
@Resource
private HighCouponCodeService couponCodeService;
@Resource
private HighDiscountAgentCodeService highDiscountAgentCodeService;
@Override @Override
public void insertPresent(GoodsPresent present) { public void insertPresent(GoodsPresent present) {
goodsPresentMapper.insert(present); goodsPresentMapper.insert(present);
@ -78,4 +93,94 @@ public class GoodsPresentServiceImpl implements GoodsPresentService {
public List<GoodsPresentRecord> getPresentRecord(Map<String, Object> map) { public List<GoodsPresentRecord> getPresentRecord(Map<String, Object> map) {
return null; return null;
} }
@Override
public void presentUser(HighOrder order, HighChildOrder highChildOrder) {
try {
// 赠送卡券or优惠券
List<GoodsPresent> goodsPresents = goodsPresentService.getPresentList(highChildOrder.getGoodsId());
if (goodsPresents.size() > 0) {
for (GoodsPresent present : goodsPresents) {
GoodsPresentRecord presentRecord = new GoodsPresentRecord();
presentRecord.setStatus("0");
if (present.getType() == 1) {
HighCoupon coupon = highCouponService.getCouponById(present.getSourceId());
if (coupon.getCouponSource() == 1 || coupon.getCouponSource() == 2 || coupon.getCouponSource() == 3) {
for (int i = 0; i < present.getNum(); i++) {
for (int j = 0; j < highChildOrder.getSaleCount(); j++) {
// 支付购买卡券
couponCodeService.payCoupon(order,highChildOrder,coupon);
}
}
}
if (coupon.getCouponSource() == 4 || coupon.getCouponSource() == 5) {
for (int i = 0; i < present.getNum(); i++) {
// 支付购买卡券
couponCodeService.payCoupon(order,highChildOrder,coupon);
}
}
}
if (present.getType() == 2) {
highDiscountAgentCodeService.giveDiscount(present.getSourceId() , ((long) present.getNum() * highChildOrder.getSaleCount()), order.getMemId());
}
presentRecord.setOrderNo(order.getOrderNo());
presentRecord.setOrderId(order.getId());
presentRecord.setChildOrderId(highChildOrder.getId());
presentRecord.setCreateTime(new Date());
presentRecord.setNum(present.getNum()*highChildOrder.getSaleCount());
presentRecord.setUpdateTime(new Date());
presentRecord.setType(present.getType());
presentRecord.setStatus("1");
presentRecord.setSourceId(present.getSourceId());
presentRecord.setSourceName(present.getSourceName());
presentRecord.setOpName("系统赠送");
presentRecord.setPresentId(present.getId());
goodsPresentService.insertPresentRecord(presentRecord);
}
}
} catch (Exception e) {
}
}
@Override
public void preGiveUser(HighChildOrder childOrder) {
try {
List<GoodsPresent> goodsPresents = goodsPresentService.getPresentList(childOrder.getGoodsId());
if (goodsPresents.size() > 0) {
for (GoodsPresent present : goodsPresents) {
if (present.getType() == 1) {
HighCoupon coupon = highCouponService.getCouponById(present.getSourceId());
if (coupon.getCouponSource() == 1 || coupon.getCouponSource() == 2 || coupon.getCouponSource() == 3) {
for (int i = 0; i < present.getNum(); i++) {
for (int j = 0; j < childOrder.getSaleCount(); j++) {
highCouponService.assignOrderStock(present.getSourceId(), childOrder.getChildOrderNo());
}
}
}
if (coupon.getCouponSource() == 4) {
HuiLianTongConfig.recharge(childOrder.getChildOrderNo(),
childOrder.getSaleCount()*present.getNum(),
coupon.getCouponKey(),
childOrder.getMemPhone());
}
}
}
}
} catch (Exception e) {
}
}
} }

@ -0,0 +1,14 @@
package com.hai.mobile.service;
/**
* @serviceName MobileHandleService.java
* @author Sum1Dream
* @version 1.0.0
* @Description // 话费业务处理
* @createTime 11:09 2023/5/17
**/
public interface MobileHandleService {
}

@ -0,0 +1,6 @@
package com.hai.mobile.service.impl;
import com.hai.mobile.service.MobileHandleService;
public class MobileHandleServiceImpl implements MobileHandleService {
}

@ -0,0 +1,19 @@
package com.hai.order.model;
import com.hai.entity.HighChildOrder;
public class GoodsChildOrderExtModel extends HighChildOrder {
/**
* 1:待发货 2:已发货 3配送中 4已送达 5已取消 6退货中 7已退货 8待支付 0:删除';
*/
private String logisticsStatus;
public String getLogisticsStatus() {
return logisticsStatus;
}
public void setLogisticsStatus(String logisticsStatus) {
this.logisticsStatus = logisticsStatus;
}
}

@ -69,6 +69,17 @@ public interface OrderService {
*/ */
HighOrder getOrderDetailByNo(String orderNo); HighOrder getOrderDetailByNo(String orderNo);
/**
* @Author Sum1Dream
* @Name getOrderDetail
* @Description // 查询线上
* @Date 18:29 2023/5/18
* @Param [orderNo]
* @Return com.hai.entity.HighOrder
*/
HighOrder getOrderDetail(String orderNo);
/** /**
* 根据子订单号查询子订单信息 * 根据子订单号查询子订单信息
* @param childOrderNo * @param childOrderNo
@ -103,4 +114,14 @@ public interface OrderService {
*/ */
List<HighOrder> phoneErrorOrder(); List<HighOrder> phoneErrorOrder();
/**
* @Author Sum1Dream
* @Name getChildOrderList
* @Description // 查询子订单数量
* @Date 15:54 2023/5/16
* @Param [param]
* @Return java.util.List<com.hai.entity.HighChildOrder>
*/
List<HighChildOrder> getChildOrderList(Map<String,Object> param);
} }

@ -53,14 +53,10 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService {
@Resource @Resource
private CommonService commonService; private CommonService commonService;
@Resource
private BsCompanyService companyService;
@Resource
private OrderService orderService;
@Resource @Resource
private BsConfigService bsConfigService; private BsCompanyService companyService;
@Resource @Resource
private SecConfigService secConfigService; private SecConfigService secConfigService;
@ -77,8 +73,6 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService {
@Resource @Resource
private HighMerchantStoreService storeService; private HighMerchantStoreService storeService;
@Resource
private GoodsPresentService goodsPresentService;
@Resource @Resource
private HighMerchantService merchantService; private HighMerchantService merchantService;
@ -138,6 +132,9 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService {
@Resource @Resource
private GoodsSkuService goodsSkuService; private GoodsSkuService goodsSkuService;
@Resource
private GoodsPresentService presentService;
@Resource @Resource
private ShoppingCartService shoppingCartService; private ShoppingCartService shoppingCartService;
@ -886,6 +883,7 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService {
childOrder.setPraiseStatus(0); childOrder.setPraiseStatus(0);
childOrder.setCreateTime(new Date()); childOrder.setCreateTime(new Date());
// 生成充值订单
outRechargeOrder.setUserId(order.getMemId()); outRechargeOrder.setUserId(order.getMemId());
outRechargeOrder.setRechargeContent(rechargeContent); outRechargeOrder.setRechargeContent(rechargeContent);
outRechargeOrder.setCompanyId(outRechargePrice.getCompanyId()); outRechargeOrder.setCompanyId(outRechargePrice.getCompanyId());
@ -932,6 +930,7 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService {
childOrder.setGoodsType(OrderChildGoodsType.TYPE11.getNumber()); childOrder.setGoodsType(OrderChildGoodsType.TYPE11.getNumber());
childOrder.setGoodsId(createOrderChild.getGoodsId()); childOrder.setGoodsId(createOrderChild.getGoodsId());
childOrder.setGoodsName(goods.getName()); childOrder.setGoodsName(goods.getName());
childOrder.setSecUserId(goods.getOpId());
childOrder.setSkuId(createOrderChild.getSkuId()); childOrder.setSkuId(createOrderChild.getSkuId());
childOrder.setGoodsSpecName(goodsSku.getName()); childOrder.setGoodsSpecName(goodsSku.getName());
childOrder.setGoodsPrice(goodsSku.getOriginalPrice()); childOrder.setGoodsPrice(goodsSku.getOriginalPrice());
@ -945,6 +944,7 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService {
childOrder.setTotalDeductionPrice(childOrder.getTotalPrice().subtract(childOrder.getTotalActualPrice())); childOrder.setTotalDeductionPrice(childOrder.getTotalPrice().subtract(childOrder.getTotalActualPrice()));
childOrder.setPraiseStatus(0); childOrder.setPraiseStatus(0);
childOrder.setCreateTime(new Date()); childOrder.setCreateTime(new Date());
childOrder.setExt5(goods.getOpId().toString());
if (createOrderChild.getShopCartId() != null) { if (createOrderChild.getShopCartId() != null) {
shoppingCartService.deleteShoppingCart(createOrderChild.getShopCartId()); shoppingCartService.deleteShoppingCart(createOrderChild.getShopCartId());
@ -952,22 +952,7 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService {
goodsSkuService.decreaseStockNum(createOrderChild.getSkuId(), createOrderChild.getSaleCount()); goodsSkuService.decreaseStockNum(createOrderChild.getSkuId(), createOrderChild.getSaleCount());
presentService.preGiveUser(childOrder);
List<GoodsPresent> goodsPresents = goodsPresentService.getPresentList(childOrder.getGoodsId());
if (goodsPresents.size() > 0) {
for (GoodsPresent present : goodsPresents) {
GoodsPresentRecord presentRecord = new GoodsPresentRecord();
presentRecord.setStatus("0");
if (present.getType() == 1) {
for (int i = 0; i < present.getNum(); i++) {
couponService.assignOrderStock(present.getSourceId(), childOrder.getChildOrderNo());
}
}
}
}
return childOrder; return childOrder;
} }

@ -74,8 +74,7 @@ public class OrderPaySuccessServiceImpl implements OrderPaySuccessService {
@Resource @Resource
private JinZhuJiaYouService jinZhuJiaYouService; private JinZhuJiaYouService jinZhuJiaYouService;
@Resource
private HighDiscountAgentCodeService highDiscountAgentCodeService;
@Resource @Resource
private PayloService payloService; private PayloService payloService;
@ -108,10 +107,9 @@ public class OrderPaySuccessServiceImpl implements OrderPaySuccessService {
private OutRechargeOrderService outRechargeOrderService; private OutRechargeOrderService outRechargeOrderService;
@Resource @Resource
private GoodsPresentService goodsPresentService; private GoodsPresentService presentService;
@Resource
private HighCouponService highCouponService;
@Override @Override
public HighOrder orderPaySuccessHandle(String orderNo, OrderPayType payType, String paySerialNo, BigDecimal payRealPrice, HighUserCard userCard) { public HighOrder orderPaySuccessHandle(String orderNo, OrderPayType payType, String paySerialNo, BigDecimal payRealPrice, HighUserCard userCard) {
@ -498,7 +496,7 @@ public class OrderPaySuccessServiceImpl implements OrderPaySuccessService {
* @Param [order] * @Param [order]
* @Return void * @Return void
*/ */
private void mobileRecharge(HighOrder order) throws Exception { private void mobileRecharge(HighOrder order) {
OutRechargeOrder outRechargeOrder = outRechargeOrderService.findByOrderNo(order.getOrderNo()); OutRechargeOrder outRechargeOrder = outRechargeOrderService.findByOrderNo(order.getOrderNo());
if (outRechargeOrder.getPayStatus() == null) { if (outRechargeOrder.getPayStatus() == null) {
if (order.getProductType().equals(9)) { if (order.getProductType().equals(9)) {
@ -516,47 +514,12 @@ public class OrderPaySuccessServiceImpl implements OrderPaySuccessService {
* @Param [order] * @Param [order]
* @Return void * @Return void
*/ */
private void goodsRecharge(HighOrder order , HighChildOrder highChildOrder) throws Exception { private void goodsRecharge(HighOrder order , HighChildOrder highChildOrder) {
GoodsOrder goodsOrder = goodsOrderExtService.findGoodsOrder(order.getOrderNo()); GoodsOrder goodsOrder = goodsOrderExtService.findGoodsOrder(order.getOrderNo());
goodsOrder.setUpdateTime(new Date()); goodsOrder.setUpdateTime(new Date());
goodsOrder.setStatus("1"); goodsOrder.setStatus("1");
goodsOrderExtService.updateGoodsOrder(goodsOrder); goodsOrderExtService.updateGoodsOrder(goodsOrder);
presentService.presentUser(order , highChildOrder);
// 赠送卡券or优惠券
List<GoodsPresent> goodsPresents = goodsPresentService.getPresentList(highChildOrder.getGoodsId());
if (goodsPresents.size() > 0) {
for (GoodsPresent present : goodsPresents) {
GoodsPresentRecord presentRecord = new GoodsPresentRecord();
presentRecord.setStatus("0");
if (present.getType() == 1) {
for (int i = 0; i < present.getNum(); i++) {
HighCoupon coupon = highCouponService.getCouponById(present.getSourceId());
// 支付购买卡券
couponCodeService.payCoupon(order,highChildOrder,coupon);
}
}
if (present.getType() == 2) {
highDiscountAgentCodeService.giveDiscount(present.getSourceId() , Long.valueOf(present.getNum()), order.getMemId());
}
presentRecord.setOrderNo(order.getOrderNo());
presentRecord.setOrderId(order.getId());
presentRecord.setChildOrderId(highChildOrder.getOrderId());
presentRecord.setCreateTime(new Date());
presentRecord.setNum(presentRecord.getNum());
presentRecord.setUpdateTime(new Date());
presentRecord.setType(present.getType());
presentRecord.setStatus("1");
presentRecord.setSourceId(present.getSourceId());
presentRecord.setSourceName(present.getSourceName());
presentRecord.setOpName("系统赠送");
presentRecord.setPresentId(present.getId());
goodsPresentService.insertPresentRecord(presentRecord);
}
}
} }
} }

@ -127,7 +127,7 @@ public class OrderServiceImpl implements OrderService {
@Transactional( @Transactional(
propagation= Propagation.REQUIRES_NEW, propagation= Propagation.REQUIRES_NEW,
isolation = Isolation.READ_COMMITTED, isolation = Isolation.READ_COMMITTED,
timeout = 10, timeout = 20,
rollbackFor = Exception.class) rollbackFor = Exception.class)
@Cached(cacheType = CacheType.REMOTE, name="order:", key = "#createOrderModel.orderNo", expire = 3600*24*30) // 缓存一个月 @Cached(cacheType = CacheType.REMOTE, name="order:", key = "#createOrderModel.orderNo", expire = 3600*24*30) // 缓存一个月
public HighOrder createOrder(CreateOrderModel createOrderModel) throws Exception { public HighOrder createOrder(CreateOrderModel createOrderModel) throws Exception {
@ -305,6 +305,7 @@ public class OrderServiceImpl implements OrderService {
HighChildOrder childOrder = orderCreateHandleService.goods(order , child); HighChildOrder childOrder = orderCreateHandleService.goods(order , child);
childOrderList.add(childOrder); childOrderList.add(childOrder);
order.setProductType(OrderProductType.PRODUCT_TYPE12.getNumber()); order.setProductType(OrderProductType.PRODUCT_TYPE12.getNumber());
order.setSecUserId(childOrder.getId());
if (StringUtils.isBlank(order.getTitle())) { if (StringUtils.isBlank(order.getTitle())) {
order.setTitle(childOrder.getGoodsName()); order.setTitle(childOrder.getGoodsName());
@ -604,61 +605,68 @@ public class OrderServiceImpl implements OrderService {
timeout = 25, timeout = 25,
rollbackFor = Exception.class) rollbackFor = Exception.class)
@CacheUpdate(name = "order:", key = "#order.orderNo", value = "#order") @CacheUpdate(name = "order:", key = "#order.orderNo", value = "#order")
public HighOrder refundOrder(HighOrder order, String remarks, OrderRefundOpUserType opUserType, Long opUserId, String opUserName) throws Exception { public HighOrder refundOrder(HighOrder order, String remarks, OrderRefundOpUserType opUserType, Long opUserId, String opUserName) {
if (!order.getOrderStatus().equals(OrderStatus.STATUS2.getNumber())
&& !order.getOrderStatus().equals(OrderStatus.STATUS3.getNumber())) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "订单状态错误");
}
// 订单是否异常,订单没异常则需要校验产品业务是否支持退款
if (order.getExceptionStatus().equals(false)
// 产品业务是否支付退款
&& (order.getProductType().equals(OrderProductType.PRODUCT_TYPE3.getNumber())
|| order.getProductType().equals(OrderProductType.PRODUCT_TYPE4.getNumber())
|| order.getProductType().equals(OrderProductType.PRODUCT_TYPE5.getNumber()))
) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "订单无法退款!");
}
// 退款订单号
String refundOrderNo = OrderUtil.generateRefundOrderNo();
// 创建退款 try {
order = orderRefundService.createOrderRefund(refundOrderNo, order, remarks, opUserType, opUserId, opUserName);
for (HighChildOrder childOrder : order.getHighChildOrderList()) { if (!order.getOrderStatus().equals(OrderStatus.STATUS2.getNumber())
if (childOrder.getGiveawayType() == false) { && !order.getOrderStatus().equals(OrderStatus.STATUS3.getNumber())) {
childOrder.setRefundRemarks(remarks); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "订单状态错误");
childOrder.setRefundTime(new Date()); }
childOrder.setChildOrderStatus(OrderChildStatus.STATUS4.getNumber()); // 订单是否异常,订单没异常则需要校验产品业务是否支持退款
if (order.getExceptionStatus().equals(false)
// 产品业务是否支付退款
&& (order.getProductType().equals(OrderProductType.PRODUCT_TYPE3.getNumber())
|| order.getProductType().equals(OrderProductType.PRODUCT_TYPE4.getNumber())
|| order.getProductType().equals(OrderProductType.PRODUCT_TYPE5.getNumber()))
) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "订单无法退款!");
} }
} // 退款订单号
String refundOrderNo = OrderUtil.generateRefundOrderNo();
order.setSurplusRefundIntegral(0); // 创建退款
order.setSurplusRefundPrice(new BigDecimal("0")); order = orderRefundService.createOrderRefund(refundOrderNo, order, remarks, opUserType, opUserId, opUserName);
order.setRefundTime(new Date());
order.setOrderStatus(OrderStatus.STATUS4.getNumber());
// 退回金额,原路返回 for (HighChildOrder childOrder : order.getHighChildOrderList()) {
RefundPriceModel refundPrice = orderRefundService.refundPrice(refundOrderNo if (childOrder.getGiveawayType() == false) {
, order childOrder.setRefundRemarks(remarks);
, OrderPayType.getDataByType(order.getPayType()) childOrder.setRefundTime(new Date());
, order.getPayRealPrice() childOrder.setChildOrderStatus(OrderChildStatus.STATUS4.getNumber());
, order.getPayGold()); }
if (!refundPrice.getRefundSuccess()) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "退款失败,请稍后重试");
}
List<HighOrderRefund> refundList = orderRefundService.getRefundByRefundNo(refundOrderNo); }
for (HighOrderRefund orderRefund : refundList) {
orderRefund.setRefundStatus(OrderRefundStatus.STATUS2.getNumber());
orderRefund.setRefundTime(new Date());
orderRefund.setThirdPartyRefundOrderNo(refundPrice.getThirdPartyRefundOrderNo());
orderRefundService.update(orderRefund);
rocketMQTemplate.syncSend(OrderTopic.ORDER_TOPIC_REFUND_SUCCESS.getTopic(), orderRefund); order.setSurplusRefundIntegral(0);
order.setSurplusRefundPrice(new BigDecimal("0"));
order.setRefundTime(new Date());
order.setOrderStatus(OrderStatus.STATUS4.getNumber());
// 退回金额,原路返回
RefundPriceModel refundPrice = orderRefundService.refundPrice(refundOrderNo
, order
, OrderPayType.getDataByType(order.getPayType())
, order.getPayRealPrice()
, order.getPayGold());
if (!refundPrice.getRefundSuccess()) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "退款失败,请稍后重试");
}
List<HighOrderRefund> refundList = orderRefundService.getRefundByRefundNo(refundOrderNo);
for (HighOrderRefund orderRefund : refundList) {
orderRefund.setRefundStatus(OrderRefundStatus.STATUS2.getNumber());
orderRefund.setRefundTime(new Date());
orderRefund.setThirdPartyRefundOrderNo(refundPrice.getThirdPartyRefundOrderNo());
orderRefundService.update(orderRefund);
rocketMQTemplate.syncSend(OrderTopic.ORDER_TOPIC_REFUND_SUCCESS.getTopic(), orderRefund);
}
return updateOrderData(order);
} catch (Exception e) {
return null;
} }
return updateOrderData(order);
} }
@Override @Override
@ -748,6 +756,18 @@ public class OrderServiceImpl implements OrderService {
return order; return order;
} }
@Override
public HighOrder getOrderDetail(String orderNo) {
HighOrderExample orderExample = new HighOrderExample();
orderExample.createCriteria().andOrderNoEqualTo(orderNo);
List<HighOrder> orderList = orderMapper.selectByExample(orderExample);
if (orderList.size() == 0) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的订单号");
}
return orderList.get(0);
}
@Override @Override
public HighChildOrder getChildOrderByNo(String childOrderNo) { public HighChildOrder getChildOrderByNo(String childOrderNo) {
HighChildOrderExample childOrderExample = new HighChildOrderExample(); HighChildOrderExample childOrderExample = new HighChildOrderExample();
@ -768,6 +788,10 @@ public class OrderServiceImpl implements OrderService {
criteria.andMemIdEqualTo(MapUtils.getLong(param, "userId")); criteria.andMemIdEqualTo(MapUtils.getLong(param, "userId"));
} }
if (MapUtils.getBoolean(param, "exceptionStatus") != null) {
criteria.andExceptionStatusEqualTo(MapUtils.getBoolean(param, "exceptionStatus"));
}
if (MapUtils.getLong(param, "companyId") != null) { if (MapUtils.getLong(param, "companyId") != null) {
criteria.andCompanyIdEqualTo(MapUtils.getLong(param, "companyId")); criteria.andCompanyIdEqualTo(MapUtils.getLong(param, "companyId"));
} }
@ -808,24 +832,27 @@ public class OrderServiceImpl implements OrderService {
} }
if (MapUtils.getLong(param, "payTimeS") != null) { if (MapUtils.getLong(param, "payTimeS") != null) {
criteria.andCreateTimeGreaterThanOrEqualTo(new Date(MapUtils.getLong(param, "payTimeS"))); criteria.andPayTimeGreaterThanOrEqualTo(new Date(MapUtils.getLong(param, "payTimeS")));
} }
if (MapUtils.getLong(param, "payTimeE") != null) { if (MapUtils.getLong(param, "payTimeE") != null) {
criteria.andCreateTimeLessThan(new Date(MapUtils.getLong(param, "payTimeE"))); criteria.andPayTimeLessThan(new Date(MapUtils.getLong(param, "payTimeE")));
} }
if (MapUtils.getLong(param, "finishTimeS") != null) { if (MapUtils.getLong(param, "finishTimeS") != null) {
criteria.andCreateTimeGreaterThanOrEqualTo(new Date(MapUtils.getLong(param, "finishTimeS"))); criteria.andFinishTimeGreaterThanOrEqualTo(new Date(MapUtils.getLong(param, "finishTimeS")));
} }
if (MapUtils.getLong(param, "finishTimeE") != null) { if (MapUtils.getLong(param, "finishTimeE") != null) {
criteria.andCreateTimeLessThan(new Date(MapUtils.getLong(param, "finishTimeE"))); criteria.andFinishTimeLessThan(new Date(MapUtils.getLong(param, "finishTimeE")));
}
if (MapUtils.getLong(param, "refundTimeS") != null) {
criteria.andRefundTimeGreaterThanOrEqualTo(new Date(MapUtils.getLong(param, "refundTimeS")));
} }
if (StringUtils.isNotBlank(MapUtils.getString(param, "refundTimeS")) && StringUtils.isNotBlank(MapUtils.getString(param, "refundTimeE"))) { if (MapUtils.getLong(param, "refundTimeE") != null) {
criteria.andRefundTimeBetween( criteria.andRefundTimeLessThan(new Date(MapUtils.getLong(param, "refundTimeE")));
DateUtil.format(MapUtils.getString(param, "refundTimeS"), "yyyy-MM-dd HH:mm:ss"),
DateUtil.format(MapUtils.getString(param, "refundTimeE"), "yyyy-MM-dd HH:mm:ss"));
} }
example.setOrderByClause("create_time desc"); example.setOrderByClause("create_time desc");
return orderMapper.selectByExample(example); return orderMapper.selectByExample(example);
} }
@ -845,4 +872,39 @@ public class OrderServiceImpl implements OrderService {
public List<HighOrder> phoneErrorOrder() { public List<HighOrder> phoneErrorOrder() {
return orderMapper.phoneErrorOrder(); return orderMapper.phoneErrorOrder();
} }
@Override
public List<HighChildOrder> getChildOrderList(Map<String, Object> param) {
HighChildOrderExample example = new HighChildOrderExample();
HighChildOrderExample.Criteria criteria = example.createCriteria();
if (MapUtils.getString(param, "orderNo") != null) {
criteria.andOrderNoEqualTo(MapUtils.getString(param, "orderNo"));
}
if (MapUtils.getString(param, "childOrderNo") != null) {
criteria.andChildOrderNoEqualTo(MapUtils.getString(param, "childOrderNo"));
}
if (MapUtils.getString(param, "memPhone") != null) {
criteria.andMemPhoneEqualTo(MapUtils.getString(param, "memPhone"));
}
if (MapUtils.getInteger(param, "status") != null) {
criteria.andChildOrderStatusEqualTo(MapUtils.getInteger(param, "status"));
}
if (MapUtils.getLong(param, "createTimeS") != null) {
criteria.andCreateTimeGreaterThanOrEqualTo(new Date(MapUtils.getLong(param, "createTimeS")));
}
if (MapUtils.getLong(param, "createTimeE") != null) {
criteria.andCreateTimeLessThan(new Date(MapUtils.getLong(param, "createTimeE")));
}
if (MapUtils.getLong(param, "secUserId") != null) {
criteria.andSecUserIdEqualTo(MapUtils.getLong(param, "secUserId"));
}
example.setOrderByClause("create_time desc");
return childOrderMapper.selectByExample(example);
}
} }

@ -11,6 +11,7 @@ public enum OrderTopic {
ORDER_TOPIC_CANCEL(ORDER_TOPIC.getTopic() + ":cancel", "订单取消"), ORDER_TOPIC_CANCEL(ORDER_TOPIC.getTopic() + ":cancel", "订单取消"),
ORDER_TOPIC_REFUND_SUCCESS(ORDER_TOPIC.getTopic() + ":refund-success", "订单退款成功业务"), ORDER_TOPIC_REFUND_SUCCESS(ORDER_TOPIC.getTopic() + ":refund-success", "订单退款成功业务"),
ORDER_TOPIC_PROFIT_SHARING(ORDER_TOPIC.getTopic() + ":profit-sharing", "订单分账业务"), ORDER_TOPIC_PROFIT_SHARING(ORDER_TOPIC.getTopic() + ":profit-sharing", "订单分账业务"),
MOBILE_TOPIC_PROFIT_RECHARGE(ORDER_TOPIC.getTopic() + ":mobile-recharge", "话费订单充值业务"),
; ;
private String topic; private String topic;

@ -51,13 +51,17 @@ public class OrderUtil {
* @return * @return
* @throws Exception * @throws Exception
*/ */
public static String generateOrderNo() throws Exception { public static String generateOrderNo() {
// 5位随机数 + 1位线程生成数 try {
String randomNum = (new Random().nextInt(899999) + 10000) + IDGenerator.nextId(1); // 5位随机数 + 1位线程生成数
// 生成订单号 String randomNum = (new Random().nextInt(8999) + 1000) + IDGenerator.nextId(1);
return DateUtil.date2String(new Date(),"yyyyMMddHHmmss") + randomNum; // 生成订单号
} return DateUtil.date2String(new Date(),"yyyyMMddHHmmss") + randomNum;
} catch (Exception e) {
return null;
}
}
/** /**
* 生成子订单号 * 生成子订单号

@ -144,7 +144,7 @@ public interface OutRechargeOrderService {
* @Param [rechargeOrder] * @Param [rechargeOrder]
* @Return void * @Return void
*/ */
void getPrepaidRechargeApi(OutRechargeOrder outRechargeOrder) throws Exception; void getPrepaidRechargeApi(OutRechargeOrder outRechargeOrder);
/** /**
* @Author Sum1Dream * @Author Sum1Dream
@ -197,7 +197,7 @@ public interface OutRechargeOrderService {
* @Param [object] * @Param [object]
* @Return void * @Return void
*/ */
Integer getRechargeOrderLegality(OutRechargeChildOrder childOrder) throws Exception; Integer getRechargeOrderLegality(OutRechargeChildOrder childOrder);
/** /**
* @Author Sum1Dream * @Author Sum1Dream
@ -205,9 +205,11 @@ public interface OutRechargeOrderService {
* @Description // 订单是否可以充值 * @Description // 订单是否可以充值
* @Date 16:11 2023/3/28 * @Date 16:11 2023/3/28
* @Param [childOrder] * @Param [childOrder]
* @Return java.lang.Integer 1满足继续充值条件 2订单满足退款条件 3订单不可以退款不可以继续充值 4:订单异常 5:订单充值完成 * @Return java.lang.Integer 1满足继续充值条件 2订单满足退款条件 3订单不可以退款不可以继续充值 4:订单异常 5:订单充值完成 6充值订单号未查询到任何充值记录
*/ */
Integer orderWhetherRecharge(OutRechargeOrder rechargeOrder) throws Exception; Integer orderWhetherRecharge(OutRechargeOrder rechargeOrder);
OutRechargeChildOrder mobileChildOrderHandle(HighOrder highOrder , OutRechargeOrder outRechargeOrder); OutRechargeChildOrder mobileChildOrderHandle(HighOrder highOrder , OutRechargeOrder outRechargeOrder);
JSONObject prepaidRechargeOrderHandle(JSONObject object);
} }

@ -7,6 +7,7 @@ import com.hai.common.exception.SysCode;
import com.hai.dao.HighApproveMapper; import com.hai.dao.HighApproveMapper;
import com.hai.entity.*; import com.hai.entity.*;
import com.hai.enum_type.ApproveType; import com.hai.enum_type.ApproveType;
import com.hai.goods.service.GoodsDetailService;
import com.hai.model.HighCouponModel; import com.hai.model.HighCouponModel;
import com.hai.service.HighAgentService; import com.hai.service.HighAgentService;
import com.hai.service.HighApproveService; import com.hai.service.HighApproveService;
@ -37,6 +38,9 @@ public class HighApproveServiceImpl implements HighApproveService {
@Resource @Resource
private HighCouponService highCouponService; private HighCouponService highCouponService;
@Resource
private GoodsDetailService goodsDetailService;
@Override @Override
@Transactional(propagation= Propagation.REQUIRES_NEW ,rollbackFor = Exception.class) @Transactional(propagation= Propagation.REQUIRES_NEW ,rollbackFor = Exception.class)
@ -82,6 +86,10 @@ public class HighApproveServiceImpl implements HighApproveService {
if (highApprove.getObjectType().equals(ApproveType.COUPON_DISTRIBUTE_APPROVE.getType())) { if (highApprove.getObjectType().equals(ApproveType.COUPON_DISTRIBUTE_APPROVE.getType())) {
highCouponService.distributeApprove(highApprove); highCouponService.distributeApprove(highApprove);
} }
if (highApprove.getObjectType().equals(ApproveType.GOODS_UP_SHELF_APPROVE.getType())) {
goodsDetailService.upShelfApproveResult(highApprove);
}
updateApprove(highApprove); updateApprove(highApprove);
} }
@ -102,6 +110,9 @@ public class HighApproveServiceImpl implements HighApproveService {
if (MapUtils.getInteger(map, "objectId") != null) { if (MapUtils.getInteger(map, "objectId") != null) {
criteria.andObjectTypeEqualTo(MapUtils.getInteger(map, "objectId")); criteria.andObjectTypeEqualTo(MapUtils.getInteger(map, "objectId"));
} }
if (MapUtils.getInteger(map, "companyId") != null) {
criteria.andExt1EqualTo(MapUtils.getString(map, "companyId"));
}
if (MapUtils.getString(map, "objectName") != null) { if (MapUtils.getString(map, "objectName") != null) {
criteria.andObjectNameLike("%" + MapUtils.getString(map, "objectName") + "%"); criteria.andObjectNameLike("%" + MapUtils.getString(map, "objectName") + "%");

@ -329,7 +329,7 @@ public class HighCouponCodeServiceImpl implements HighCouponCodeService {
if (coupon.getCouponSource().equals(4)) { if (coupon.getCouponSource().equals(4)) {
// 推送给汇联通 // 推送给汇联通
JSONObject returnParam = HuiLianTongConfig.costRechargeOrder(childOrder.getChannelOrderNo()); JSONObject returnParam = HuiLianTongConfig.costRechargeOrder(childOrder.getChannelOrderNo());
if (returnParam != null && returnParam.getString("respCode").equals("0000")) { if (returnParam.getString("respCode").equals("0000")) {
// 解密 // 解密
JSONObject jsonObject = HuiLianTongUnionCardConfig.resolveResponse(returnParam.getString("data")); JSONObject jsonObject = HuiLianTongUnionCardConfig.resolveResponse(returnParam.getString("data"));
JSONArray dataArray = JSONObject.parseObject(jsonObject.getString("data"), JSONArray.class); JSONArray dataArray = JSONObject.parseObject(jsonObject.getString("data"), JSONArray.class);
@ -362,10 +362,10 @@ public class HighCouponCodeServiceImpl implements HighCouponCodeService {
} }
} else if (coupon.getCouponSource().equals(5)) { } else if (coupon.getCouponSource().equals(5)) {
// 预发码 // 预发码
JSONObject preSendCoupon = ChongQingCNPCService.preSendCoupon(coupon.getCouponKey(), order.getOrderNo(), childOrder.getSaleCount(), order.getMemPhone()); JSONObject preSendCoupon = ChongQingCNPCService.preSendCoupon(coupon.getCouponKey(), childOrder.getChildOrderNo(), childOrder.getSaleCount(), order.getMemPhone());
if (preSendCoupon.getInteger("status").equals(1)) { if (preSendCoupon.getInteger("status").equals(1)) {
// 给用户发码 // 给用户发码
JSONObject response = ChongQingCNPCService.sendCNPCTicket(coupon.getCouponKey(), order.getOrderNo(), childOrder.getSaleCount(), order.getMemPhone()); JSONObject response = ChongQingCNPCService.sendCNPCTicket(coupon.getCouponKey(), childOrder.getChildOrderNo(), childOrder.getSaleCount(), order.getMemPhone());
JSONObject couponDetail = response.getJSONObject("ticketDetail"); JSONObject couponDetail = response.getJSONObject("ticketDetail");
JSONArray codeList = response.getJSONArray("codeList"); JSONArray codeList = response.getJSONArray("codeList");
for (Object data : codeList) { for (Object data : codeList) {

@ -325,6 +325,10 @@ public class HighDiscountAgentCodeServiceImpl implements HighDiscountAgentCodeSe
highDiscountUserRel.setStatus(1); highDiscountUserRel.setStatus(1);
highDiscountUserRel.setCreateTime(new Date()); highDiscountUserRel.setCreateTime(new Date());
highDiscountUserRel.setDiscountCompanyId(discount.getCompanyId()); highDiscountUserRel.setDiscountCompanyId(discount.getCompanyId());
highDiscountUserRel.setDiscountUseScope(discount.getUseScope());
highDiscountUserRel.setDiscountUsingRange(discount.getUsingRange());
highDiscountUserRel.setDiscountCondition(discount.getDiscountCondition());
highDiscountUserRel.setDiscountType(discount.getDiscountType());
highDiscountUserRel.setDiscountImg(discount.getDiscountImg()); highDiscountUserRel.setDiscountImg(discount.getDiscountImg());
highDiscountUserRel.setDiscountName(discount.getDiscountName()); highDiscountUserRel.setDiscountName(discount.getDiscountName());
highDiscountUserRel.setDiscountCondition(discount.getDiscountCondition()); highDiscountUserRel.setDiscountCondition(discount.getDiscountCondition());

@ -59,6 +59,9 @@ public class HighGoldRecServiceImpl implements HighGoldRecService {
if (MapUtils.getLong(map, "resId") != null) { if (MapUtils.getLong(map, "resId") != null) {
criteria.andResIdEqualTo(MapUtils.getLong(map, "resId")); criteria.andResIdEqualTo(MapUtils.getLong(map, "resId"));
} }
if (MapUtils.getString(map, "resOrderNo") != null) {
criteria.andResOrderNoEqualTo(MapUtils.getString(map, "resOrderNo"));
}
if (MapUtils.getLong(map , "createTimeS") != null) { if (MapUtils.getLong(map , "createTimeS") != null) {
criteria.andCreateTimeBetween(new Date(MapUtils.getLong(map , "createTimeS")) , new Date(MapUtils.getLong(map , "createTimeE"))); criteria.andCreateTimeBetween(new Date(MapUtils.getLong(map , "createTimeS")) , new Date(MapUtils.getLong(map , "createTimeE")));

@ -17,6 +17,7 @@ import com.hai.entity.*;
import com.hai.enum_type.*; import com.hai.enum_type.*;
import com.hai.model.*; import com.hai.model.*;
import com.hai.order.service.OrderService; import com.hai.order.service.OrderService;
import com.hai.order.topic.OrderTopic;
import com.hai.order.type.OrderChildStatus; import com.hai.order.type.OrderChildStatus;
import com.hai.order.type.OrderPayType; import com.hai.order.type.OrderPayType;
import com.hai.order.type.OrderRefundOpUserType; import com.hai.order.type.OrderRefundOpUserType;
@ -26,6 +27,7 @@ import com.hai.service.*;
import org.apache.commons.collections4.MapUtils; import org.apache.commons.collections4.MapUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -50,6 +52,9 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
@Resource @Resource
private OutRechargeOrderMapper outRechargeOrderMapper; private OutRechargeOrderMapper outRechargeOrderMapper;
@Resource
private RocketMQTemplate rocketMQTemplate;
@Resource @Resource
private OutRechargeOrderMapperExt outRechargeOrderMapperExt; private OutRechargeOrderMapperExt outRechargeOrderMapperExt;
@ -394,8 +399,153 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
} }
@Override @Override
public void getPrepaidRechargeApi(OutRechargeOrder outRechargeOrder) throws Exception { public void prepaidRechargeHandle(OutRechargeOrder outRechargeOrder){
String key = "recharge_" + outRechargeOrder.getId();
try {
// 分布式锁占坑
Boolean lock = redisTemplate.opsForValue().setIfAbsent(key, outRechargeOrder.getOrderNo());
if(Boolean.TRUE.equals(lock)) {
// 加锁成功,处理业务
// 判断订单是否可以继续充值 1:满足继续充值条件 2:订单满足退款条件 3:订单不可以退款不可以继续充值 4:订单存在多个充值订单 5:订单充值完成 6:充值订单号未查询到任何充值记录
int orderStatus = orderWhetherRecharge(outRechargeOrder);
log.info("处理话费" + outRechargeOrder.getOrderNo() + "订单状态:" + orderStatus);
if (orderStatus == 1) {
getPrepaidRechargeApi(outRechargeOrder);
}
if (orderStatus == 2) {
refundOrder(outRechargeOrder.getId());
}
if (orderStatus == 4) {
HighOrder highOrder = highOrderService.getOrderByOrderNo(outRechargeOrder.getOrderNo());
highOrder.setExceptionStatus(true);
highOrder.setExceptionContent("订单存在多个充值订单");
highOrderService.updateOrder(highOrder);
}
if (orderStatus == 6) {
HighOrder highOrder = highOrderService.getOrderByOrderNo(outRechargeOrder.getOrderNo());
highOrder.setExceptionStatus(true);
highOrder.setExceptionContent("充值订单号未查询到任何充值记录");
highOrderService.updateOrder(highOrder);
}
if (orderStatus == 5) {
completeOrder(outRechargeOrder.getId());
}
} else {
// 加锁失败,重试
Thread.sleep(100);
prepaidRechargeHandle(outRechargeOrder);
}
} catch (Exception e) {
e.printStackTrace();
} finally {
// 删除key,释放锁
redisTemplate.delete(key);
}
}
// @Override
// public void getPrepaidRechargeApi(OutRechargeOrder outRechargeOrder) {
//
// JSONObject object = new JSONObject();
// object.put("rechargePrice" , outRechargeOrder.getRechargePrice());
// object.put("rechargeMobile" , outRechargeOrder.getRechargeContent());
// object.put("productId" , outRechargeOrder.getGoodsId());
// object.put("parentOrderId" , outRechargeOrder.getId());
//
// // 判断参数是否为空
// if (
// object.getBigDecimal("rechargePrice") == null ||
// object.getString("rechargeMobile") == null ||
// object.getInteger("productId") == null ||
// object.getLong("parentOrderId") == null
// ) {
// throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, "");
// }
//
// // 定义子订单对象
// OutRechargeChildOrder childOrder = new OutRechargeChildOrder();
//
// // 补充下单参数
// object = prepaidRechargeOrderHandle(object);
//
// // 补充子订单参数
// childOrder.setParentOrderId(object.getLong("parentOrderId"));
// childOrder.setRechargePlatform(object.getInteger("rechargePlatform"));
// childOrder.setStatus(102);
// childOrder.setOrderNo("CZ" + OrderUtil.generateOrderNo());
// childOrder.setUpdateTime(new Date());
// childOrder.setCreateTime(new Date());
//
// outRechargeChildOrderService.insertOrder(childOrder);
//
// // -1 取消,0充值中 ,1充值成功,2充值失败,3部分成功
// Integer status = outRechargeOrderService.getRechargeOrderLegality(childOrder);
//
// if (status == 2 || status == -1) {
// // 补充下单参数
// object = outRechargeOrderService.prepaidRechargeOrderHandle(object);
//
// // 尖椒充值
// if (object.getInteger("rechargePlatform") == 1) {
// object.put("out_order_id", childOrder.getOrderNo());
// object.put("amount", object.getBigDecimal("rechargePrice"));
// object.put("mobile", object.getString("rechargeMobile"));
// object.put("notifyUrl", CommonSysConst.getSysConfig().getJjNotifyUrl());
// JSONObject returnObject = RechargeConfig.rechargeOrderByJj(object);
// childOrder.setExt1(returnObject.toJSONString());
// }
//
// // 龙阅
// if (object.getInteger("rechargePlatform") == 2) {
//
// if (object.getString("code") == null) {
// throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, "");
// }
//
// object.put("out_trade_num", childOrder.getOrderNo());
// object.put("product_id", object.getString("code"));
// object.put("mobile", object.getString("rechargeMobile"));
// object.put("notifyUrl", CommonSysConst.getSysConfig().getLyNotifyUrl());
// JSONObject returnObject = RechargeConfig.rechargeOrderByLy(object);
// childOrder.setExt1(returnObject.toJSONString());
// }
//
// // 畅停充值
// if (object.getInteger("rechargePlatform") == 4) {
//
// if (object.getString("code") == null) {
// throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, "");
// }
//
// object.put("orderid", childOrder.getOrderNo());
// object.put("product_id", object.getString("code"));
// object.put("phone", object.getString("rechargeMobile"));
// object.put("price", object.getBigDecimal("rechargePrice"));
// JSONObject returnObject = RechargeConfig.rechargeOrderByHg(object);
// childOrder.setExt1(returnObject.toJSONString());
// }
//
//
// System.out.println("消费内容:" + childOrder);
//
// childOrder.setUpdateTime(new Date());
// outRechargeChildOrderService.updateOrder(childOrder);
// }
// }
@Override
public void getPrepaidRechargeApi(OutRechargeOrder outRechargeOrder) {
JSONObject object = new JSONObject(); JSONObject object = new JSONObject();
object.put("rechargePrice" , outRechargeOrder.getRechargePrice()); object.put("rechargePrice" , outRechargeOrder.getRechargePrice());
@ -406,9 +556,9 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
// 判断参数是否为空 // 判断参数是否为空
if ( if (
object.getBigDecimal("rechargePrice") == null || object.getBigDecimal("rechargePrice") == null ||
object.getString("rechargeMobile") == null || object.getString("rechargeMobile") == null ||
object.getInteger("productId") == null || object.getInteger("productId") == null ||
object.getLong("parentOrderId") == null object.getLong("parentOrderId") == null
) { ) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, "");
} }
@ -426,7 +576,7 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
childOrder.setOrderNo("CZ" + OrderUtil.generateOrderNo()); childOrder.setOrderNo("CZ" + OrderUtil.generateOrderNo());
childOrder.setUpdateTime(new Date()); childOrder.setUpdateTime(new Date());
childOrder.setCreateTime(new Date()); childOrder.setCreateTime(new Date());
outRechargeChildOrderService.insertOrder(childOrder);
// 尖椒充值 // 尖椒充值
if (object.getInteger("rechargePlatform") == 1) { if (object.getInteger("rechargePlatform") == 1) {
object.put("out_order_id", childOrder.getOrderNo()); object.put("out_order_id", childOrder.getOrderNo());
@ -434,7 +584,9 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
object.put("mobile", object.getString("rechargeMobile")); object.put("mobile", object.getString("rechargeMobile"));
object.put("notifyUrl", CommonSysConst.getSysConfig().getJjNotifyUrl()); object.put("notifyUrl", CommonSysConst.getSysConfig().getJjNotifyUrl());
JSONObject returnObject = RechargeConfig.rechargeOrderByJj(object); JSONObject returnObject = RechargeConfig.rechargeOrderByJj(object);
childOrder.setExt1(returnObject.toJSONString()); childOrder.setRechargePlatform(1);
childOrder.setExt1("尖椒" + returnObject.toJSONString());
childOrder.setExt2(object.toJSONString());
} }
// 龙阅 // 龙阅
@ -449,7 +601,11 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
object.put("mobile", object.getString("rechargeMobile")); object.put("mobile", object.getString("rechargeMobile"));
object.put("notifyUrl", CommonSysConst.getSysConfig().getLyNotifyUrl()); object.put("notifyUrl", CommonSysConst.getSysConfig().getLyNotifyUrl());
JSONObject returnObject = RechargeConfig.rechargeOrderByLy(object); JSONObject returnObject = RechargeConfig.rechargeOrderByLy(object);
childOrder.setExt1(returnObject.toJSONString()); childOrder.setRechargePlatform(2);
childOrder.setExt1("龙阅充值" + returnObject.toJSONString());
childOrder.setExt2("龙阅请求参数" + object.toJSONString());
childOrder.setExt3("龙阅充值" + returnObject.toJSONString());
} }
// 畅停充值 // 畅停充值
@ -464,56 +620,13 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
object.put("phone", object.getString("rechargeMobile")); object.put("phone", object.getString("rechargeMobile"));
object.put("price", object.getBigDecimal("rechargePrice")); object.put("price", object.getBigDecimal("rechargePrice"));
JSONObject returnObject = RechargeConfig.rechargeOrderByHg(object); JSONObject returnObject = RechargeConfig.rechargeOrderByHg(object);
childOrder.setExt1(returnObject.toJSONString()); childOrder.setRechargePlatform(4);
} childOrder.setExt1("畅停充值" + returnObject.toJSONString());
outRechargeChildOrderService.insertOrder(childOrder); childOrder.setExt2("畅停请求参数" + object.toJSONString());
} childOrder.setExt3("畅停充值" + returnObject.toJSONString());
@Override
public void prepaidRechargeHandle(OutRechargeOrder outRechargeOrder){
String key = "recharge_" + outRechargeOrder.getId();
try {
// 分布式锁占坑
Boolean lock = redisTemplate.opsForValue().setIfAbsent(key, outRechargeOrder.getOrderNo());
if(Boolean.TRUE.equals(lock)) {
// 加锁成功,处理业务
// 判断订单是否可以继续充值 1:满足继续充值条件 2:订单满足退款条件 3:订单不可以退款不可以继续充值 4:订单异常 5:订单充值完成
int orderStatus = orderWhetherRecharge(outRechargeOrder);
if (orderStatus == 1) {
getPrepaidRechargeApi(outRechargeOrder);
}
if (orderStatus == 2) {
refundOrder(outRechargeOrder.getId());
}
if (orderStatus == 4) {
HighOrder highOrder = highOrderService.getOrderByOrderNo(outRechargeOrder.getOrderNo());
highOrder.setExceptionStatus(true);
highOrder.setExceptionContent("话费订单存在多条重复记录");
highOrderService.updateOrder(highOrder);
}
if (orderStatus == 5) {
completeOrder(outRechargeOrder.getId());
}
} else {
// 加锁失败,重试
Thread.sleep(100);
prepaidRechargeHandle(outRechargeOrder);
}
} catch (Exception e) {
e.printStackTrace();
} finally {
// 删除key,释放锁
redisTemplate.delete(key);
} }
childOrder.setUpdateTime(new Date());
outRechargeChildOrderService.updateOrder(childOrder);
} }
@Override @Override
@ -583,67 +696,82 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
} }
@Override @Override
public Integer getRechargeOrderLegality(OutRechargeChildOrder childOrder) throws Exception { public Integer getRechargeOrderLegality(OutRechargeChildOrder childOrder) {
JSONObject object = new JSONObject(); try {
// 龙阅
if (childOrder.getRechargePlatform() == 2) {
object.put("out_trade_nums" , childOrder.getOrderNo()); JSONObject object = new JSONObject();
JSONObject jsonObject = RechargeConfig.checkOrderByLy(object); Integer status = 99;
JSONArray objectJSONArray = jsonObject.getJSONArray("data"); // 龙阅
JSONObject objectData = new JSONObject(); if (childOrder.getRechargePlatform() == 2) {
for (Object objects : objectJSONArray) {
objectData = (JSONObject) objects;
}
if (objectData.size() == 0) {
if (jsonObject.getInteger("errno") == 0) {
return 2;
} else {
return 99;
}
} else {
// -1取消,0充值中 ,1充值成功,2充值失败,3部分成功
return objectData.getInteger("state");
}
} object.put("out_trade_nums" , childOrder.getOrderNo());
// 畅停
if (childOrder.getRechargePlatform() == 4) { JSONObject jsonObject = RechargeConfig.checkOrderByLy(object);
object.put("orderid" , childOrder.getOrderNo()); childOrder.setExt3("龙阅查询"+ jsonObject);
JSONObject jsonObject = RechargeConfig.checkOrderByHg(object);
if (jsonObject.getJSONArray("data") == null) {
if (jsonObject.getInteger("code") == 20001) {
return 2;
}
return 99;
} else {
JSONArray objectJSONArray = jsonObject.getJSONArray("data"); JSONArray objectJSONArray = jsonObject.getJSONArray("data");
JSONObject objectData;
JSONObject objectData = new JSONObject();
for (Object objects : objectJSONArray) { for (Object objects : objectJSONArray) {
objectData = (JSONObject) objects; objectData = (JSONObject) objects;
// 0充值中,1成功,2失败,3已取消,4部分充值,5缓存订单 }
if (objectData.size() > 0) {
// -1取消,0充值中 ,1充值成功,2充值失败,3部分成功 // -1取消,0充值中 ,1充值成功,2充值失败,3部分成功
status = objectData.getInteger("state");
}
if (objectData.getInteger("status") == 0 || objectData.getInteger("status") == 5) { }
return 0; // 畅停
} else if (objectData.getInteger("status") == 1) { if (childOrder.getRechargePlatform() == 4) {
return 1; object.put("orderid" , childOrder.getOrderNo());
} else if (objectData.getInteger("status") == 2) {
return 2; JSONObject jsonObject = RechargeConfig.checkOrderByHg(object);
} else if (objectData.getInteger("status") == 3) { childOrder.setExt3("畅停查询"+ jsonObject);
return -1; if (jsonObject.getJSONArray("data") != null) {
} else if (objectData.getInteger("status") == 4) { JSONArray objectJSONArray = jsonObject.getJSONArray("data");
return 3;
} JSONObject objectData;
for (Object objects : objectJSONArray) {
objectData = (JSONObject) objects;
// 0充值中,1成功,2失败,3已取消,4部分充值,5缓存订单
// -1取消,0充值中 ,1充值成功,2充值失败,3部分成功
if (objectData.getInteger("status") == 0 || objectData.getInteger("status") == 5) {
status = 0;
} else if (objectData.getInteger("status") == 1) {
status = 1;
} else if (objectData.getInteger("status") == 2) {
status = 2;
} else if (objectData.getInteger("status") == 3) {
status = -1;
} else if (objectData.getInteger("status") == 4) {
status = 3;
}
}
} }
} }
if (status == 1) {
childOrder.setStatus(101);
}
if (status == 2 || status == -1) {
childOrder.setStatus(103);
}
if (status == 99 ) {
childOrder.setStatus(104);
}
childOrder.setUpdateTime(new Date());
outRechargeChildOrderService.updateOrder(childOrder);
return status;
}catch (Exception e) {
return 99;
} }
return 99;
} }
// 获取当前最新的充值平台 // 获取当前最新的充值平台
@ -664,7 +792,9 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
* @Param [object] * @Param [object]
* @Return com.alibaba.fastjson.JSONObject * @Return com.alibaba.fastjson.JSONObject
*/ */
private JSONObject prepaidRechargeOrderHandle(JSONObject object) {
@Override
public JSONObject prepaidRechargeOrderHandle(JSONObject object) {
if (object.getLong("productId") == null) { if (object.getLong("productId") == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "产品编码为空"); throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "产品编码为空");
@ -711,13 +841,13 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
} }
@Override @Override
public Integer orderWhetherRecharge(OutRechargeOrder rechargeOrder) throws Exception { public Integer orderWhetherRecharge(OutRechargeOrder rechargeOrder) {
// 查询子订单 // 查询子订单
List<OutRechargeChildOrder> childOrderList = outRechargeChildOrderService.getListRechargeChildOrderByOrderId(rechargeOrder.getId()); List<OutRechargeChildOrder> childOrderList = outRechargeChildOrderService.getListRechargeChildOrderByOrderId(rechargeOrder.getId());
if (childOrderList.size() == 0) { if (childOrderList.size() == 0) {
return 4; return 6;
} }
// 充值订单充值时间 // 充值订单充值时间
@ -757,14 +887,17 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
if (status == 2 || status == -1) { if (status == 2 || status == -1) {
// 修改充值订单状态 // 修改充值订单状态
rechargeChildOrderHandle(childOrders102.get(0) , 103); rechargeChildOrderHandle(childOrders102.get(0) , 103);
// 如果订单记录超过5条退款 反之继续充值 // 如果订单记录超过2条退款 反之继续充值
if (childOrderList.size() > 4) { if (childOrderList.size() > 1) {
return 2; return 2;
} else { } else {
// 如果订单记录超过71小时 反之继续充值 // 如果订单记录超过71小时 反之继续充值
return hours > 71 ? 2 : 1; return hours > 71 ? 2 : 1;
} }
} }
if (status == 99) {
return 6;
}
// 充值订单为充值成功 // 充值订单为充值成功
if (status == 1) { if (status == 1) {
// 修改充值订单状态 // 修改充值订单状态
@ -782,8 +915,8 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
if (status == 2 || status == -1) { if (status == 2 || status == -1) {
// 修改充值订单状态 // 修改充值订单状态
rechargeChildOrderHandle(childOrderList.get(0) , 103); rechargeChildOrderHandle(childOrderList.get(0) , 103);
// 如果订单记录超过5条退款 反之继续充值 // 如果订单记录超过2条退款 反之继续充值
if (childOrderList.size() > 4) { if (childOrderList.size() > 1) {
return 2; return 2;
} else { } else {
// 如果订单记录超过71小时 反之继续充值 // 如果订单记录超过71小时 反之继续充值
@ -791,17 +924,15 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
} }
} }
if (status == 99) {
return 6;
}
if (status == 1) { if (status == 1) {
// 修改充值订单状态 // 修改充值订单状态
rechargeChildOrderHandle(childOrderList.get(0) , 101); rechargeChildOrderHandle(childOrderList.get(0) , 101);
return 5; return 5;
} }
} else {
// 如果订单记录超过71小时 反之继续充值
return hours > 71 ? 2 : 1;
} }
} }
return 3; return 3;
} }

@ -216,7 +216,7 @@ public class WxMsgController {
linkContent = linkContent =
"支付分享,享受更高优惠[礼物]\n\n" "支付分享,享受更高优惠[礼物]\n\n"
+ "<a href='" + "<a href='"
+ CommonSysConst.getSysConfig().getHsgDomainName() + "/hsgH5?accountId=0000013&key=&code=" + CommonSysConst.getSysConfig().getHsgDomainName() + "/hsgH5?accountId=0000012&key=&code="
+ object.getString("code") + object.getString("code")
+ "'>分享好友</a>\n\n"; + "'>分享好友</a>\n\n";
} }
@ -339,7 +339,7 @@ public class WxMsgController {
linkContent = linkContent =
"支付分享,享受更高优惠[礼物]\n\n" "支付分享,享受更高优惠[礼物]\n\n"
+ "<a href='" + "<a href='"
+ CommonSysConst.getSysConfig().getHsgDomainName() + "/hsgH5?accountId=0000013&key=&code=" + CommonSysConst.getSysConfig().getHsgDomainName() + "/hsgH5?accountId=0000012&key=&code="
+ object.getString("code") + object.getString("code")
+ "'>分享好友</a>\n\n"; + "'>分享好友</a>\n\n";
} }
@ -535,6 +535,32 @@ public class WxMsgController {
} }
@RequestMapping(value = "/createMenu", method = RequestMethod.POST)
@ResponseBody
@ApiOperation(value = "创建菜单")
public ResponseData createMenu(@RequestBody JSONObject object) {
try {
Map<String, Object> params = new HashMap<>();
params.put("appid", SysConst.getSysConfig().getWxH5AppId());
params.put("secret", SysConst.getSysConfig().getWxH5AppSecret());
params.put("grant_type", "client_credential");
JSONObject accessTokenObject = HttpsUtils.doGet("https://api.weixin.qq.com/cgi-bin/token", params);
if (accessTokenObject == null) {
log.error("getH5UserInfo error!", "获取微信access_token失败" );
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "获取微信access_token失败");
}
JSONObject jsonObject = HttpsUtils.doPost("https://api.weixin.qq.com/cgi-bin/menu/create?access_token=" + accessTokenObject.getString("access_token"), object);
return ResponseMsgUtil.success(jsonObject);
} catch (Exception e) {
return ResponseMsgUtil.exception(e);
}
}
// @RequestMapping(value = "/verifyWx", method = RequestMethod.GET) // @RequestMapping(value = "/verifyWx", method = RequestMethod.GET)
// @ResponseBody // @ResponseBody

@ -172,6 +172,7 @@ public class OrderRebateController {
Map<String, Object> mapGold = new HashMap<>(); Map<String, Object> mapGold = new HashMap<>();
mapGold.put("goldType", 1); mapGold.put("goldType", 1);
mapGold.put("resId", object.getLong("orderId")); mapGold.put("resId", object.getLong("orderId"));
mapGold.put("resOrderNo", object.getString("orderNo"));
List<HighGoldRec> goldRecs = highGoldRecService.getGoldRec(mapGold); List<HighGoldRec> goldRecs = highGoldRecService.getGoldRec(mapGold);
@ -296,10 +297,6 @@ public class OrderRebateController {
} }
return ResponseMsgUtil.success("操作成功"); return ResponseMsgUtil.success("操作成功");
} catch (Exception e) { } catch (Exception e) {
log.error("HighOrderController --> getBackendToken() error!", e); log.error("HighOrderController --> getBackendToken() error!", e);

@ -423,6 +423,23 @@ public class orderController {
} }
} }
@RequestMapping(value = "/test", method = RequestMethod.POST)
@ResponseBody
@ApiOperation(value = "对外订单退款接口")
public ResponseData test() {
try {
System.out.println("话费请求订单=================================");
Thread.currentThread().sleep(30000);
return ResponseMsgUtil.success("请求成功!");
} catch (Exception e) {
log.error("HighOpenApiController --> createOrder() error!", e);
return ResponseMsgUtil.exception(e);
}
}
} }

Loading…
Cancel
Save