Merge branch 'yyhouc'
This commit is contained in:
commit
2eb4055d56
|
@ -81,6 +81,7 @@ public class OtherDataServiceImpl extends ServiceImpl<OtherDataMapper, EntityDat
|
|||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean uploadData(OtherData OtherData) {
|
||||
|
||||
//路径拼接
|
||||
List<String> link = new ArrayList<>();
|
||||
//文件大小
|
||||
|
|
|
@ -68,7 +68,7 @@ public class DictBizController {
|
|||
@ApiOperationSupport(order = 2)
|
||||
@ApiOperation(value = "列表", notes = "传入dict")
|
||||
public R<List<DictBizVO>> list(@ApiIgnore @RequestParam Map<String, Object> dict) {
|
||||
List<DictBiz> list = dictService.list(Condition.getQueryWrapper(dict, DictBiz.class).lambda().orderByAsc(DictBiz::getSort));
|
||||
List<DictBiz> list = dictService.list(Condition.getQueryWrapper(dict, DictBiz.class).lambda().orderByAsc(DictBiz::getSort).eq(DictBiz::getIsDeleted, "0"));
|
||||
return R.data(DictBizWrapper.build().listNodeVO(list));
|
||||
}
|
||||
|
||||
|
@ -183,7 +183,13 @@ public class DictBizController {
|
|||
dictBiz.setId(null);
|
||||
//添加父子关系
|
||||
dictBiz.setParentId(dict.getId());
|
||||
dictBiz.setCode(dict.getDictKey());
|
||||
//如果是根节点,设置code使用根节点的key
|
||||
if(dict.getParentId()==0){
|
||||
dictBiz.setCode(dict.getDictKey());
|
||||
//否则使用父节点的code
|
||||
}else{
|
||||
dictBiz.setCode(dict.getCode());
|
||||
}
|
||||
}
|
||||
return R.success(dictService.saveBatch(list)||list.size()==0?"操作成功":"操作失败");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue