| | |
| | | sqlSentence.sqlSentence(" SELECT er.*,s.name AS shopName FROM employee_role AS er " + |
| | | " LEFT JOIN shop AS s ON s.id = er.shopId WHERE er.id = #{m.id}",sqlMap); |
| | | EmployeeRole employeeRole = commonService.selectOne(EmployeeRoleMapper.class,sqlSentence); |
| | | |
| | | //助手登录会更新Employee表的roleId字段,理论上应该要传操作人角色信息过来,而不是用这个字段 |
| | | if (employeeRole == null){ |
| | | throw new PlatTipsException(PlatformCode.ERROR_PARAMETER_NULL,"开单人角色信息获取异常,请联系管理员!"); |
| | | } |
| | | |
| | | OrdersTotalDto ordersTotalDto=new OrdersTotalDto(); |
| | | ordersTotalDto.setTotal(ordersTotal.getShouldTotal().add(ordersTotal.getDiscountTotal())); |
| | |
| | | throw new PlatTipsException(PlatformCode.ERROR_PARAMETER_NULL,"营销助手审批:未找到操作人员工信息!"); |
| | | } |
| | | EmployeeRole employeeRole = commonService.selectOneByKeyBlob(EmployeeRoleMapper.class, employee.getRoleId()); |
| | | //助手登录会更新Employee表的roleId字段,理论上应该要传操作人角色信息过来,而不是用这个字段 |
| | | if (employeeRole == null){ |
| | | throw new PlatTipsException(PlatformCode.ERROR_PARAMETER_NULL,"开单人角色信息获取异常,请联系管理员!"); |
| | | } |
| | | |
| | | OrdersTotalDto ordersTotalDto=new OrdersTotalDto(); |
| | | ordersTotalDto.setTotal(ordersTotal.getShouldTotal().add(ordersTotal.getDiscountTotal())); |