|
@ -85,9 +85,11 @@ public class WeiXinService implements IWeiXinService { |
|
|
EmployeeExample example = new EmployeeExample(); |
|
|
EmployeeExample example = new EmployeeExample(); |
|
|
example.createCriteria().andUseridEqualTo(bind.getUserid()).andCorpidEqualTo(bind.getCorpid()); |
|
|
example.createCriteria().andUseridEqualTo(bind.getUserid()).andCorpidEqualTo(bind.getCorpid()); |
|
|
List<Employee> employees = employeeDao.selectByExample(example); |
|
|
List<Employee> employees = employeeDao.selectByExample(example); |
|
|
log.info("有无用户信息"); |
|
|
log.info("有无用户信息:{}", CollectionUtil.isNotEmpty(employees)); |
|
|
if (CollectionUtil.isEmpty(employees)) { |
|
|
if (CollectionUtil.isEmpty(employees)) { |
|
|
throw new BaseException(CodeEnum.PARAM_ERROR); |
|
|
log.info("没有找到用户信息:{}", bind); |
|
|
|
|
|
// throw new BaseException(CodeEnum.PARAM_ERROR);
|
|
|
|
|
|
return new Employee(); |
|
|
} |
|
|
} |
|
|
Employee employee = employees.get(0); |
|
|
Employee employee = employees.get(0); |
|
|
// if (employee.getTallUserId() == null || employee.getTallUserId() == 0) {
|
|
|
// if (employee.getTallUserId() == null || employee.getTallUserId() == 0) {
|
|
|