Pārlūkot izejas kodu

修改用户线上线下标识

master
qiubh pirms 1 mēnesi
vecāks
revīzija
47ddb8e793

+ 5
- 4
zhywpt-service-ias/src/main/java/cn/com/taiji/ias/manager/order/UserUploadManager.java Parādīt failu

// 注册用户 // 注册用户
registerUser(request, dataStream); registerUser(request, dataStream);
// 保存基础用户 // 保存基础用户
QtkCustomerInfo customerInfo = saveCustomerInfo(request);
QtkCustomerInfo customerInfo = saveCustomerInfo(request, dataStream);
// 保存订单 // 保存订单
IssueOrderinfo order = updateOrder(customerInfo, request, dataStream); IssueOrderinfo order = updateOrder(customerInfo, request, dataStream);
// 保存办理记录日志 // 保存办理记录日志
dataStream.put(CUSTOMER_INFO, customerInfo); dataStream.put(CUSTOMER_INFO, customerInfo);
} }


private void registerUser(UserUploadRequest request,Map<String, Object> dataStream) throws ServiceHandleException {
private void registerUser(UserUploadRequest request, Map<String, Object> dataStream) throws ServiceHandleException {
IssueOrderinfo order = (IssueOrderinfo)dataStream.get(ORDER); IssueOrderinfo order = (IssueOrderinfo)dataStream.get(ORDER);
AccountInfo accountInfo = (AccountInfo) dataStream.get(ACCOUNT); AccountInfo accountInfo = (AccountInfo) dataStream.get(ACCOUNT);
LocalDate vld = checkIdNumVld(request); LocalDate vld = checkIdNumVld(request);
return order; return order;
} }


private QtkCustomerInfo saveCustomerInfo(UserUploadRequest request) throws ServiceHandleException {
private QtkCustomerInfo saveCustomerInfo(UserUploadRequest request, Map<String, Object> dataStream) throws ServiceHandleException {
QtkCustomerInfo customerInfo = queryUser(request.getUserIdType(), request.getUserIdNum()); QtkCustomerInfo customerInfo = queryUser(request.getUserIdType(), request.getUserIdNum());
IssueOrderinfo order = (IssueOrderinfo)dataStream.get(ORDER);
boolean hasOldCustomer = ObjectUtil.isNotEmpty(customerInfo); boolean hasOldCustomer = ObjectUtil.isNotEmpty(customerInfo);
LocalDateTime now = LocalDateTime.now(); LocalDateTime now = LocalDateTime.now();
if (!hasOldCustomer) { if (!hasOldCustomer) {
} }
customerInfo.setCustomerIdType(IdType.findByCode(request.getUserIdType())); customerInfo.setCustomerIdType(IdType.findByCode(request.getUserIdType()));
customerInfo.setCustomerIdNum(request.getUserIdNum()); customerInfo.setCustomerIdNum(request.getUserIdNum());
customerInfo.setRegisteredType(2);// fixme 待定 忘记含义了
customerInfo.setRegisteredType(order.getPromotionModes());// fixme 待定 忘记含义了
customerInfo.setChannelId(MyFinals.QTZL_CHANNEL_ID); customerInfo.setChannelId(MyFinals.QTZL_CHANNEL_ID);
customerInfo.setStatus(1); customerInfo.setStatus(1);
customerInfo.setUpdateTime(now); customerInfo.setUpdateTime(now);

Notiek ielāde…
Atcelt
Saglabāt