| | |
| | | List<Software> softwareListInDB = mapper.selectList(query); |
| | | Software softwareInDB = softwareListInDB.get(0); |
| | | if(softwareInDB.getLockFlag() == -1){ |
| | | if(!userName.equals("李桂华")){ |
| | | return new Response().set(1,false,"无权限解锁 待测试的软件"); |
| | | }else{ |
| | | //if(!userName.equals("李桂华")){ |
| | | // return new Response().set(1,false,"无权限解锁 待测试的软件"); |
| | | //}else{ |
| | | //锁定原来的所有版本:根据版号和软件类型 |
| | | List<String> materialCodeList = softwareListInDB.stream().map(Software::getApplyMaterialCode).collect(Collectors.toList()); |
| | | lockByBoardNumberAndTypeAndMaterialCode(softwareInDB.getBoardNumber(),softwareInDB.getType(),materialCodeList); |
| | | |
| | | } |
| | | //} |
| | | } |
| | | } |
| | | UpdateWrapper uwrapper=new UpdateWrapper(); |