| | |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.CollectionUtils; |
| | |
| | | */ |
| | | @Override |
| | | public List<Tree> treeCodeClassifyValue(TreeQueryObject treeQueryObject) throws VciBaseException { |
| | | // List<CodeClassifyValueDO> doList =selectCodeClassifyValueDOByTree(treeQueryObject); |
| | | List<CodeClassifyValue> doList = selectCodeClassifyValueDO4Tree(treeQueryObject); |
| | | List<CodeClassifyValueVO> voList = CodeClassifyValueWrapper.build().listVO(doList); |
| | | TreeWrapperOptions treeWrapperOptions = new TreeWrapperOptions(PARENT_FIELD_NAME); |
| | |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R batchSave4Order(List<CodeClassifyValueDTO> dtoList, String codeclassifysecoid) { |
| | | public R batchSave4Order(List<CodeClassifyValueDTO> dtoList, String codeclassifysecoid) throws VciBaseException{ |
| | | VciBaseUtil.alertNotNull(codeclassifysecoid,"分类码段主键"); |
| | | List<CodeClassifyValue> valueDOList = codeClassifyValueMapper.selectList(Wrappers.<CodeClassifyValue>query() |
| | | .lambda().eq(CodeClassifyValue::getCodeClassifySecOid,codeclassifysecoid) |
| | |
| | | }); |
| | | } |
| | | }); |
| | | if(updateList.isEmpty()){ |
| | | return R.fail("该操作有误【待操作集合为空】。"); |
| | | } |
| | | boolean resBoolean = this.updateBatchById(updateList); |
| | | return R.status(resBoolean); |
| | | } |