| | |
| | | |
| | | @Transactional |
| | | public int save(PrDevOpsPlan plan) { |
| | | if(devOpsDao.exists(plan.name,plan.id)){ |
| | | throw new RuntimeException("计划名不能重复"); |
| | | } |
| | | BaUser loginUser = userUtil.getUser(UserTokenContext.get()); |
| | | if(loginUser!=null){ |
| | | plan.creator = loginUser.id; |
| | |
| | | } |
| | | @Transactional |
| | | public int update(PrDevOpsPlan plan) { |
| | | if(devOpsDao.exists(plan.name,plan.id)){ |
| | | throw new RuntimeException("计划名不能重复"); |
| | | } |
| | | return devOpsDao.updateByPrimaryKeySelective(plan); |
| | | } |
| | | public QueryResultVo<List<PrDevOpsPlan>> selectSome(QueryVo queryVo) { |