|
@@ -19,6 +19,7 @@ import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
+import org.springframework.boot.autoconfigure.security.SecurityProperties;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
@@ -118,4 +119,19 @@ public class FileMangeServiceImpl implements FileMangeService {
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void updateFileManage(FileManageVO fileManageVO) {
|
|
|
|
+ Integer userId = UserUtils.getLoginUser().getUserId();
|
|
|
|
+ FileManageDO fileManageDO = fileManageMapper.getFileInfoByFileId(fileManageVO.getFileId());
|
|
|
|
+ FundInfoDO fundInfoDO = fundInfoMapper.searchFundDetail(fileManageVO.getFundId());
|
|
|
|
+ if(fundInfoDO != null){
|
|
|
|
+ fileManageDO.setFundId(fundInfoDO.getFundId());
|
|
|
|
+ fileManageDO.setFundName(fundInfoDO.getFundName());
|
|
|
|
+ fileManageDO.setRegisterNumber(fundInfoDO.getRegisterNumber());
|
|
|
|
+ }
|
|
|
|
+ fileManageDO.setUpdaterId(userId);
|
|
|
|
+ fileManageDO.setUpdateTime(DateUtils.getNowDate());
|
|
|
|
+ fileManageMapper.updateFileManage(fileManageDO);
|
|
|
|
+ }
|
|
}
|
|
}
|