| | |
| | | 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.*; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | |
| | | @ApiOperation(value = "订单售后列表") |
| | | @PostMapping(value = "/pageList") |
| | | public ApiResult<PageInfo<TOrderAftersalesVO>> pageList(@RequestBody TOrderAftersalesQuery query) { |
| | | if (StringUtils.hasLength(query.getStartTime())){ |
| | | query.setStartTime(query.getStartTime()+" 00:00:00"); |
| | | query.setEndTime(query.getEndTime()+" 23:59:59"); |
| | | } |
| | | PageInfo<TOrderAftersalesVO> orderAftersalesVOPageInfo = orderAftersalesService.pageList(query); |
| | | return ApiResult.success(orderAftersalesVOPageInfo); |
| | | } |
| | |
| | | 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()); |