| | |
| | | } |
| | | if (isAdd) { |
| | | //自动分配业务代码开始 |
| | | List<OrganizationChartEntity> organizationChartEntities = organizationChartMapper.selectByCode(guideRepairOrder.getAreaCode()); |
| | | if (organizationChartEntities != null) { |
| | | List<OrganizationChartEntity> organizationChartEntities = organizationChartMapper.selectByCode(transactionEvent.getDepartmentId(),guideRepairOrder.getAreaCode()); |
| | | if (organizationChartEntities.size() > 0) { |
| | | for (OrganizationChartEntity organizationChart : organizationChartEntities) { |
| | | departmentIds.add(organizationChart.getId().toString()); |
| | | } |
| | |
| | | |
| | | @Override |
| | | public int updateSysUserOrderNum(GuideEvolveEntity order) { |
| | | if (order.getState() != null) { |
| | | if (order.getState().equals("11")) { |
| | | SysUser sysUser = sysUserMapper.selectOne(new QueryWrapper<SysUser>().lambda().eq(SysUser::getUserId, order.getToUserId())); |
| | | GuideRepairOrder guideRepairOrder = baseMapper.selectOne(new QueryWrapper<GuideRepairOrder>().lambda() |
| | |
| | | sysUserFrom.setTransactionNum(sysUserFrom.getTransactionNum() - 1); |
| | | return sysUserMapper.updateById(sysUserFrom); |
| | | } |
| | | } |
| | | return 0; |
| | | } |
| | | |