无关风月
2024-12-31 bf765893039bc7968b8160a70bda778526dca98c
manage/src/main/java/com/jilongda/manage/controller/TOrderAftersalesController.java
@@ -17,6 +17,7 @@
import com.jilongda.manage.vo.TOrderAftersalesVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.*;
@@ -81,12 +82,18 @@
        SecUser byId3 = secUserService.getById(byId.getSysId());
        TOptometrist byId5 = tOptometristService.getById(byId.getOptometristId());
        TOrderAftersalesDetailVO res = new TOrderAftersalesDetailVO();
        BeanUtils.copyProperties(byId,res);
        res.setOrderId(byId1.getId());
        if (byId1.getUserId()!=null){
            TAppUser byId4 = appUserService.getById(byId1);
            TAppUser byId4 = appUserService.getById(byId1.getUserId());
            if (byId4!=null){
                res.setPhone(byId4.getPhone());
                res.setName(byId4.getName());
                res.setRealName(byId4.getRealName());
            }
        }else{
            res.setPhone(byId1.getPhone());
            res.setRealName(byId1.getRealName());
        }
        res.setStoreName(byId2.getName());
        res.setOptometristName(byId5.getName());