Merge remote-tracking branch 'origin/master'
| | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int addOrUpdateSalesLedgerProduct(SalesLedgerProduct salesLedgerProduct) { |
| | | //未开票数量+金额 |
| | | salesLedgerProduct.setNoInvoiceNum(salesLedgerProduct.getQuantity()); |
| | | salesLedgerProduct.setNoInvoiceAmount(salesLedgerProduct.getTaxInclusiveTotalPrice()); |
| | | int result; |
| | | Long salesLedgerId = salesLedgerProduct.getSalesLedgerId(); |
| | | if (salesLedgerProduct.getId() == null) { |
| | |
| | | IPage<StaffJoinLeaveRecord> staffJoinLeaveRecordListPage(Page page, @Param("staffJoinLeaveRecord") StaffJoinLeaveRecord staffJoinLeaveRecord); |
| | | |
| | | List<StaffJoinLeaveRecord> staffJoinLeaveRecordList(@Param("staffJoinLeaveRecord") StaffJoinLeaveRecord staffJoinLeaveRecord); |
| | | |
| | | List<StaffJoinLeaveRecord> staffOnJobList(); |
| | | |
| | | } |
| | |
| | | |
| | | void staffOnJobExport(HttpServletResponse response, StaffOnJob staffOnJob); |
| | | |
| | | List<StaffOnJob> staffOnJobList(); |
| | | List<StaffJoinLeaveRecord> staffOnJobList(); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<StaffOnJob> staffOnJobList() { |
| | | return staffOnJobMapper.selectList(Wrappers.<StaffOnJob>lambdaQuery().eq(StaffOnJob::getStaffState,1)); |
| | | public List<StaffJoinLeaveRecord> staffOnJobList() { |
| | | return staffJoinLeaveRecordMapper.staffOnJobList(); |
| | | } |
| | | |
| | | |
| | |
| | | AND staff_name LIKE CONCAT('%',#{staffJoinLeaveRecord.staffName},'%') |
| | | </if> |
| | | </select> |
| | | <select id="staffOnJobList" resultType="com.ruoyi.staff.pojo.StaffJoinLeaveRecord"> |
| | | select * |
| | | from (select *, |
| | | ROW_NUMBER() over (PARTITION BY staff_no ORDER BY create_time DESC ) as rn |
| | | from staff_join_leave_record |
| | | where staff_state = 1) t |
| | | where rn = 1 |
| | | |
| | | </select> |
| | | </mapper> |