| | |
| | | |
| | | @Override |
| | | public IPage<SalesLedgerProductionAccountingDto> pageProductionAccounting(SalesLedgerProductionAccountingDto salesLedgerProductionAccountingDto, Page page) { |
| | | // TODO 管理员查询所有,其他人只能查自己 |
| | | boolean admin = SecurityUtils.isAdmin(SecurityUtils.getUserId()); |
| | | if (!admin) { |
| | | salesLedgerProductionAccountingDto.setSchedulingUserName(SecurityUtils.getUsername()); |
| | | salesLedgerProductionAccountingDto.setSchedulingUserName(SecurityUtils.getLoginUser().getNickName()); |
| | | } |
| | | if (salesLedgerProductionAccountingDto.getDateType().equals("month")) { |
| | | salesLedgerProductionAccountingDto.setEntryDate(null); |