| | |
| | | |
| | | Long programmerId = tUserService.getUserIdByName(qinzheFgb.getZggy()); |
| | | if(programmerId == null){ |
| | | throw new ServiceException("根据"+qinzheFgb.getZggy()+"未找到对应的系统用户,请检查用户是否存在"); |
| | | throw new ServiceException("根据["+qinzheFgb.getZggy()+"]未找到对应的系统用户,请检查用户是否存在"); |
| | | } |
| | | ProduceDivision division = lambdaQuery().eq(ProduceDivision::getProgrammerId, programmerId).list().stream().findFirst().orElse(null); |
| | | if(division == null){ |
| | | throw new ServiceException("主制分工表无工艺员"+qinzheFgb.getZggy()+"对应的数据"); |
| | | throw new ServiceException("主制分工表无工艺员["+qinzheFgb.getZggy()+"]对应的数据"); |
| | | } |
| | | |
| | | return division; |