| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import cn.hutool.core.date.DateTime; |
| | | import com.alibaba.fastjson2.schema.ValidateResult; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ltkj.hosp.domain.TjCustomer; |
| | | import com.ltkj.hosp.domain.TjOrder; |
| | | import com.ltkj.hosp.service.ITjCustomerService; |
| | | import com.ltkj.hosp.service.ITjOrderService; |
| | |
| | | public class TjReportPrintController extends BaseController { |
| | | @Autowired |
| | | private ITjReportPrintService tjReportPrintService; |
| | | @Resource |
| | | private ITjCustomerService customerService; |
| | | @Autowired |
| | | private ITjOrderService orderService; |
| | | |
| | | /** |
| | | * 查询打印记录列表 |
| | |
| | | public TableDataInfo list(TjReportPrint tjReportPrint) { |
| | | startPage(); |
| | | List<TjReportPrint> list = tjReportPrintService.selectTjReportPrintList(tjReportPrint); |
| | | for (TjReportPrint print : list) { |
| | | TjOrder tjOrder = orderService.getOrderByTjNum(print.getTjNumber()); |
| | | if(null !=tjOrder){ |
| | | TjCustomer customer = customerService.getById(tjOrder.getUserId()); |
| | | if(null !=customer){ |
| | | print.setCusName(customer.getCusName()); |
| | | } |
| | | } |
| | | } |
| | | |
| | | return getDataTable(list); |
| | | } |