袁野 4 months ago
parent e6464af030
commit d6e31ddfab
  1. 8
      order/src/main/java/com/order/controller/business/BsOrderCinemaController.java
  2. 4
      service/src/main/java/com/hfkj/service/goods/impl/BsOrderCinemaServiceImpl.java
  3. 6
      service/src/main/java/com/hfkj/service/order/OrderPaySuccessService.java
  4. 10
      service/src/main/java/com/hfkj/service/order/OrderRefundSuccessService.java
  5. 1
      service/src/main/java/com/hfkj/service/order/impl/BsOrderServiceImpl.java
  6. 1
      service/src/main/java/com/hfkj/service/pay/huift/TradeService.java
  7. 9
      service/src/main/java/com/hfkj/service/user/impl/BsUserServiceImpl.java
  8. 9
      service/src/main/java/com/hfkj/sysenum/order/OrderCinemaStatusEnum.java
  9. 4
      user/src/main/java/com/user/controller/BsUserController.java

@ -24,6 +24,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.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
@ -97,6 +98,13 @@ public class BsOrderCinemaController {
map.put("orderNo" , bsOrderCinema.getChannelOrderNo()); map.put("orderNo" , bsOrderCinema.getChannelOrderNo());
JSONObject object = CinemaService.getByOrderNo(map); JSONObject object = CinemaService.getByOrderNo(map);
if (object != null) {
bsOrderCinema.setStatus(object.getInteger("status"));
bsOrderCinema.setUpdateTime(new Date());
bsOrderCinemaService.update(bsOrderCinema);
}
return ResponseMsgUtil.success(object); return ResponseMsgUtil.success(object);
} catch (Exception e) { } catch (Exception e) {

@ -100,10 +100,8 @@ public class BsOrderCinemaServiceImpl implements BsOrderCinemaService {
} }
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 {
criteria.andStatusNotEqualTo(0);
} }
example.setOrderByClause("create_time desc"); example.setOrderByClause("exception_status desc");
return bsOrderCinemaMapper.selectByExample(example); return bsOrderCinemaMapper.selectByExample(example);
} }
} }

@ -24,6 +24,7 @@ import com.hfkj.service.goods.impl.GoodsSpecsServiceImpl;
import com.hfkj.service.hlt.HuiLianTongUnionCardService; import com.hfkj.service.hlt.HuiLianTongUnionCardService;
import com.hfkj.sysenum.GoodsVpdSourceEnum; import com.hfkj.sysenum.GoodsVpdSourceEnum;
import com.hfkj.sysenum.order.OrderChildProductTypeEnum; import com.hfkj.sysenum.order.OrderChildProductTypeEnum;
import com.hfkj.sysenum.order.OrderCinemaStatusEnum;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -264,9 +265,12 @@ public class OrderPaySuccessService {
orderCinema.setPaySerialNo(order.getPaySerialNo()); orderCinema.setPaySerialNo(order.getPaySerialNo());
orderCinema.setPayTime(order.getPayTime()); orderCinema.setPayTime(order.getPayTime());
orderCinema.setUpdateTime(new Date()); orderCinema.setUpdateTime(new Date());
orderCinema.setStatus(1); orderCinema.setStatus(OrderCinemaStatusEnum.status5.getCode());
} catch (Exception e) { } catch (Exception e) {
if (orderCinema == null) {
orderCinema = new BsOrderCinema();
}
orderCinema.setExceptionStatus(true); orderCinema.setExceptionStatus(true);
orderCinema.setExceptionMsg(e.getMessage()); orderCinema.setExceptionMsg(e.getMessage());
} finally { } finally {

@ -47,7 +47,8 @@ public class OrderRefundSuccessService {
cinema(orderChild); cinema(orderChild);
} }
} catch (Exception e) { } catch (Exception e) {
throw ErrorHelp.genException(SysCode.System , ErrorCode.COMMON_ERROR , e.getMessage()); System.out.println("=========================================");
System.out.println(e.getMessage());
} }
} }
@ -60,18 +61,15 @@ public class OrderRefundSuccessService {
if (orderCinema != null) { if (orderCinema != null) {
Map<String , Object> map = new HashMap<>(); Map<String , Object> map = new HashMap<>();
map.put("orderNo", childOrder.getOrderNo()); map.put("orderNo", childOrder.getOrderNo());
JSONObject object = CinemaService.refundMovieOrder(map); CinemaService.refundMovieOrder(map);
System.out.println("=========================================");
System.out.println(object);
orderCinema.setStatus(-5); orderCinema.setStatus(-5);
orderCinema.setExceptionStatus(false); orderCinema.setExceptionStatus(false);
bsOrderCinemaService.update(orderCinema);
} }
} catch (Exception e) { } catch (Exception e) {
orderCinema.setExceptionStatus(true); orderCinema.setExceptionStatus(true);
orderCinema.setExceptionMsg(e.getMessage()); orderCinema.setExceptionMsg(e.getMessage());
} finally {
bsOrderCinemaService.update(orderCinema); bsOrderCinemaService.update(orderCinema);
throw ErrorHelp.genException(SysCode.System , ErrorCode.COMMON_ERROR , e.getMessage());
} }
} }

@ -504,6 +504,7 @@ public class BsOrderServiceImpl implements BsOrderService {
JSONObject object = CinemaService.getByOrderNo(map); JSONObject object = CinemaService.getByOrderNo(map);
if (object != null && object.getJSONObject("data") != null) { if (object != null && object.getJSONObject("data") != null) {
orderModel.setBusiness(object.getJSONObject("data")); orderModel.setBusiness(object.getJSONObject("data"));
bsOrderCinema.setUpdateTime(new Date());
bsOrderCinema.setStatus(object.getJSONObject("data").getInteger("status")); bsOrderCinema.setStatus(object.getJSONObject("data").getInteger("status"));
} }

@ -41,7 +41,6 @@ public class TradeService {
param.put("shopCode", HuiftConfig.shopcode); param.put("shopCode", HuiftConfig.shopcode);
param.put("outTradeNo", order.getOrderNo()); param.put("outTradeNo", order.getOrderNo());
param.put("transAmt", order.getPayRealPrice().multiply(new BigDecimal("100")).intValue()); param.put("transAmt", order.getPayRealPrice().multiply(new BigDecimal("100")).intValue());
param.put("mobileNbr", order.getUserPhone()); // 用户标识
param.put("callbackUrl", CommonSysConst.getSysConfig().getDomainName() + "/order/payNotify/huiftPay"); param.put("callbackUrl", CommonSysConst.getSysConfig().getDomainName() + "/order/payNotify/huiftPay");
// param.put("remark", ""); // 备注 // param.put("remark", ""); // 备注
// param.put("outAppId", ""); // param.put("outAppId", "");

@ -191,6 +191,15 @@ public class BsUserServiceImpl implements BsUserService {
UserSessionObject session = new UserSessionObject(); UserSessionObject session = new UserSessionObject();
session.setUser(user); session.setUser(user);
// 查询汇联通工会卡
List<BsUserCard> hltCardList = userCardService.getCardList(user.getId(), UserCardTypeEnum.type1);
if (hltCardList.isEmpty()) {
session.setHltCardBind(false);
} else {
session.setHltCardBind(true);
session.setHltCard(hltCardList.get(0));
}
SessionObject sessionObject = new SessionObject(token(user), session); SessionObject sessionObject = new SessionObject(token(user), session);
userCenter.save(sessionObject); userCenter.save(sessionObject);
// 异步记录登录信息 // 异步记录登录信息

@ -12,9 +12,9 @@ import lombok.Getter;
public enum OrderCinemaStatusEnum { public enum OrderCinemaStatusEnum {
/** /**
* 待付款 * 未上送
*/ */
status0(0, "待付款"), status0(0, "未上送"),
/** /**
* 待出票 * 待出票
@ -36,6 +36,11 @@ public enum OrderCinemaStatusEnum {
*/ */
statusNegative5(-5, "已取消"), statusNegative5(-5, "已取消"),
/**
* 代付款
*/
status20(20, "代付款"),
; ;
private final int code; private final int code;

@ -146,12 +146,8 @@ public class BsUserController {
} }
// 账户密码登录 // 账户密码登录
if (body.getString("type").equals(UserLoginType.V_FAMILY_OPENID.getCode())) {
Map<String, Object> other = new HashMap<>(); Map<String, Object> other = new HashMap<>();
return ResponseMsgUtil.success(userService.login(platform, loginType, outsideOpenid, other)); return ResponseMsgUtil.success(userService.login(platform, loginType, outsideOpenid, other));
}
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "登录失败");
} catch (Exception e) { } catch (Exception e) {
log.error("LoginController --> phone() error!", e); log.error("LoginController --> phone() error!", e);

Loading…
Cancel
Save