Commit 14fd1c29 by wangli

mp2jpa

1 parent 15b88f86
...@@ -41,7 +41,7 @@ public class BusinessLayerServiceImpl implements BusinessLayerService { ...@@ -41,7 +41,7 @@ public class BusinessLayerServiceImpl implements BusinessLayerService {
@Autowired @Autowired
private OrgGroupDao orgGroupDao; private OrgGroupDao orgGroupDao;
@Autowired @Autowired
private OrgBranchMPDao orgBranchMPDao; private OrgBranchDao orgBranchDao;
@Autowired @Autowired
private SkillInfoDao skillInfoDao; private SkillInfoDao skillInfoDao;
@Autowired @Autowired
...@@ -91,7 +91,7 @@ public class BusinessLayerServiceImpl implements BusinessLayerService { ...@@ -91,7 +91,7 @@ public class BusinessLayerServiceImpl implements BusinessLayerService {
item.setLayerName(layer.getLayer()); item.setLayerName(layer.getLayer());
item.setLayerDesc(layer.getLayerDescribe()); item.setLayerDesc(layer.getLayerDescribe());
OrgBranch branch = orgBranchMPDao.getByBranchId(layer.getBranchId()); OrgBranchEntity branch = orgBranchDao.getByBranchId(layer.getBranchId());
if (branch != null) { if (branch != null) {
item.setBranchName(branch.getBranchName()); item.setBranchName(branch.getBranchName());
} }
...@@ -131,7 +131,7 @@ public class BusinessLayerServiceImpl implements BusinessLayerService { ...@@ -131,7 +131,7 @@ public class BusinessLayerServiceImpl implements BusinessLayerService {
// 获取branchName // 获取branchName
String branchName = ""; String branchName = "";
OrgBranch branch = orgBranchMPDao.getByBranchId(layer.getBranchId()); OrgBranchEntity branch = orgBranchDao.getByBranchId(layer.getBranchId());
if (branch != null) { if (branch != null) {
branchName = branch.getBranchName(); branchName = branch.getBranchName();
} }
...@@ -151,7 +151,7 @@ public class BusinessLayerServiceImpl implements BusinessLayerService { ...@@ -151,7 +151,7 @@ public class BusinessLayerServiceImpl implements BusinessLayerService {
@Override @Override
public Result<?> businessCustomLayerAdd(String branchId, String layerName, String layerDesc, List<String> skillCodes) { public Result<?> businessCustomLayerAdd(String branchId, String layerName, String layerDesc, List<String> skillCodes) {
if (orgBranchMPDao.getByBranchId(branchId) == null) { if (orgBranchDao.getByBranchId(branchId) == null) {
throw new BusinessException("分部参数错误,请联系管理员/研发"); throw new BusinessException("分部参数错误,请联系管理员/研发");
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!