fhx
2024-08-08 e9e7d13ef769c6ea5f76dc81b6f6087b19de3185
Merge remote-tracking branch 'origin/master-base' into master-base
1个文件已修改
9 ■■■■ 已修改文件
phi_platform_user/src/main/java/com/hx/phip/util/api/OrderCreateUtil.java 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phi_platform_user/src/main/java/com/hx/phip/util/api/OrderCreateUtil.java
@@ -2910,7 +2910,10 @@
            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()));
@@ -2984,6 +2987,10 @@
                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()));