| | |
| | | @Override |
| | | public IPage<SalesLedgerProductionAccountingDto> pageProductionAccounting(SalesLedgerProductionAccountingDto salesLedgerProductionAccountingDto, Page page) { |
| | | // TODO 管理员查询所有,其他人只能查自己 |
| | | if (salesLedgerProductionAccountingDto.getDateType().equals("month")) { |
| | | salesLedgerProductionAccountingDto.setEntryDate(null); |
| | | }else { |
| | | salesLedgerProductionAccountingDto.setEntryDateStart(null); |
| | | salesLedgerProductionAccountingDto.setEntryDateEnd(null); |
| | | } |
| | | return salesLedgerProductionAccountingMapper.pageProductionAccounting(page, salesLedgerProductionAccountingDto); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<ProductionProductMainDto> listProductionDetails(SalesLedgerProductionAccountingDto salesLedgerProductionAccountingDto, Page page) { |
| | | if (salesLedgerProductionAccountingDto.getDateType().equals("month")) { |
| | | salesLedgerProductionAccountingDto.setEntryDate(null); |
| | | }else { |
| | | salesLedgerProductionAccountingDto.setEntryDateStart(null); |
| | | salesLedgerProductionAccountingDto.setEntryDateEnd(null); |
| | | } |
| | | return productionProductMainMapper.listProductionDetails(salesLedgerProductionAccountingDto, page); |
| | | } |
| | | |