订单个人认证返回

main
cheney 11 months ago
parent 1d6a6ca20f
commit 800e79d338
  1. 6
      nakadai/src/main/java/com/huoran/nakadai/controller/MyOrderController.java
  2. 10
      nakadai/src/main/java/com/huoran/nakadai/mapper/xml/OrderMapper.xml

@ -131,13 +131,17 @@ public class MyOrderController {
UserAccount userAccount = platformTeamAccountMapper.selectAccountPlatform(order.getUserId()); UserAccount userAccount = platformTeamAccountMapper.selectAccountPlatform(order.getUserId());
List<UserAccount> userAccountList = platformTeamClassificationMapper.selectAccountList(userAccount.getAppOpenId()); List<UserAccount> userAccountList = platformTeamClassificationMapper.selectAccountList(userAccount.getAppOpenId());
for (UserAccount account : userAccountList) { for (UserAccount account : userAccountList) {
if (account.getPhone()!=null){
orderShopDto.setPhone(account.getPhone());
}
if ("7".equals(account.getPlatformId())){ if ("7".equals(account.getPlatformId())){
QueryWrapper<UserAuthenticationInformation> queryWrapper = new QueryWrapper<>(); QueryWrapper<UserAuthenticationInformation> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("account_id", account.getId()); queryWrapper.eq("account_id", account.getId());
UserAuthenticationInformation userAuthenticationInformation = userAuthenticationInformationService.getOne(queryWrapper); UserAuthenticationInformation userAuthenticationInformation = userAuthenticationInformationService.getOne(queryWrapper);
orderShopDto.setPhone(account.getPhone()); orderShopDto.setAuthentication("未认证");
orderShopDto.setPurchasingPerson(account.getAccount()); orderShopDto.setPurchasingPerson(account.getAccount());
if (userAuthenticationInformation!=null){ if (userAuthenticationInformation!=null){
orderShopDto.setAuthentication("已认证");
orderShopDto.setPurchasingPerson(userAuthenticationInformation.getRealName()); orderShopDto.setPurchasingPerson(userAuthenticationInformation.getRealName());
} }
}else { }else {

@ -374,7 +374,7 @@
WHEN o.order_type = 2 THEN WHEN o.order_type = 2 THEN
IFNULL( ec.company_name, ua.account ) IFNULL( ec.company_name, ua.account )
WHEN o.order_type = 1 THEN WHEN o.order_type = 1 THEN
IFNULL( uai.real_name, ua.account ) IFNULL( uai.real_name, avatars.account )
END AS purchasingPerson, END AS purchasingPerson,
CASE CASE
WHEN o.order_type = 2 THEN WHEN o.order_type = 2 THEN
@ -397,7 +397,8 @@
LEFT JOIN ( LEFT JOIN (
SELECT SELECT
a.app_open_id, a.app_open_id,
i.user_avatars i.user_avatars,
a.account
FROM FROM
hr_user_account a hr_user_account a
JOIN hr_user_info i ON i.user_id = a.user_id AND a.platform_id = 7 and a.is_del = 0 and i.is_del = 0 JOIN hr_user_info i ON i.user_id = a.user_id AND a.platform_id = 7 and a.is_del = 0 and i.is_del = 0
@ -432,7 +433,7 @@
WHEN o.order_type = 2 THEN WHEN o.order_type = 2 THEN
IFNULL( ec.company_name, ua.account ) IFNULL( ec.company_name, ua.account )
WHEN o.order_type = 1 THEN WHEN o.order_type = 1 THEN
IFNULL( uai.real_name, ua.account ) IFNULL( uai.real_name, avatars.account )
END AS purchasingPerson, END AS purchasingPerson,
CASE CASE
WHEN o.order_type = 2 THEN WHEN o.order_type = 2 THEN
@ -455,7 +456,8 @@
LEFT JOIN ( LEFT JOIN (
SELECT SELECT
a.app_open_id, a.app_open_id,
i.user_avatars i.user_avatars,
a.account
FROM FROM
hr_user_account a hr_user_account a
JOIN hr_user_info i ON i.user_id = a.user_id AND a.platform_id = 7 and a.is_del = 0 and i.is_del = 0 JOIN hr_user_info i ON i.user_id = a.user_id AND a.platform_id = 7 and a.is_del = 0 and i.is_del = 0

Loading…
Cancel
Save