|
@@ -67,17 +67,7 @@ public class DictFileController extends BaseController{
|
|
|
if(dictFile.getId() != null && StringUtils.isNotBlank(dictFile.getName())){
|
|
|
commonUploadService.updateFileName(dictFile.getUploadId(),dictFile.getName());
|
|
|
}
|
|
|
- if(dictFile.getDictId() != null){
|
|
|
- Dict dict = dictService.getById(dictFile.getDictId());
|
|
|
- if(dict == null){
|
|
|
- throw new BusinessException(ResultCode.DICT_NOT_EXITS);
|
|
|
- }
|
|
|
- dictFile.setSysUserId(dict.getSysUserId());
|
|
|
- }else {
|
|
|
- if(dictFile.getId() == null){
|
|
|
- dictFile.setSysUserId((String) StpUtil.getLoginId());
|
|
|
- }
|
|
|
- }
|
|
|
+ dictFile.setSysUserId((String) StpUtil.getLoginId());
|
|
|
dictFileService.addOrUpdate(dictFile);
|
|
|
return ResultData.ok();
|
|
|
}
|