知识库修改时修改上传时间和上传文件类型
This commit is contained in:
parent
e1051b511a
commit
70f56f4214
@ -72,6 +72,11 @@ public class KbHistoryServiceImpl implements IKbHistoryService {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int updateKbHistory(KbHistory kbHistory) {
|
public int updateKbHistory(KbHistory kbHistory) {
|
||||||
|
if (StrUtil.isNotBlank(kbHistory.getFileName())) {
|
||||||
|
kbHistory.setFileFormat(FileTypeUtils.getFileChinaType(kbHistory.getFileName()));
|
||||||
|
kbHistory.setUploadTime(new Date());
|
||||||
|
kbHistory.setUploadId(SecurityUtils.getUserId());
|
||||||
|
}
|
||||||
return kbHistoryMapper.updateKbHistory(kbHistory);
|
return kbHistoryMapper.updateKbHistory(kbHistory);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,6 +76,11 @@ public class KbCeramicsServiceImpl implements IKbCeramicsService
|
|||||||
@Override
|
@Override
|
||||||
public int updateKbCeramics(KbCeramics kbCeramics)
|
public int updateKbCeramics(KbCeramics kbCeramics)
|
||||||
{
|
{
|
||||||
|
if (StrUtil.isNotBlank(kbCeramics.getFileName())) {
|
||||||
|
kbCeramics.setFileFormat(FileTypeUtils.getFileChinaType(kbCeramics.getFileName()));
|
||||||
|
kbCeramics.setUploadTime(new Date());
|
||||||
|
kbCeramics.setUploadId(SecurityUtils.getUserId());
|
||||||
|
}
|
||||||
return kbCeramicsMapper.updateKbCeramics(kbCeramics);
|
return kbCeramicsMapper.updateKbCeramics(kbCeramics);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,6 +76,11 @@ public class KbChemicalIndustryServiceImpl implements IKbChemicalIndustryService
|
|||||||
@Override
|
@Override
|
||||||
public int updateKbChemicalIndustry(KbChemicalIndustry kbChemicalIndustry)
|
public int updateKbChemicalIndustry(KbChemicalIndustry kbChemicalIndustry)
|
||||||
{
|
{
|
||||||
|
if (StrUtil.isNotBlank(kbChemicalIndustry.getFileName())) {
|
||||||
|
kbChemicalIndustry.setFileFormat(FileTypeUtils.getFileChinaType(kbChemicalIndustry.getFileName()));
|
||||||
|
kbChemicalIndustry.setUploadTime(new Date());
|
||||||
|
kbChemicalIndustry.setUploadId(SecurityUtils.getUserId());
|
||||||
|
}
|
||||||
return kbChemicalIndustryMapper.updateKbChemicalIndustry(kbChemicalIndustry);
|
return kbChemicalIndustryMapper.updateKbChemicalIndustry(kbChemicalIndustry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,6 +76,11 @@ public class KbPapermakingServiceImpl implements IKbPapermakingService
|
|||||||
@Override
|
@Override
|
||||||
public int updateKbPapermaking(KbPapermaking kbPapermaking)
|
public int updateKbPapermaking(KbPapermaking kbPapermaking)
|
||||||
{
|
{
|
||||||
|
if (StrUtil.isNotBlank(kbPapermaking.getFileName())) {
|
||||||
|
kbPapermaking.setFileFormat(FileTypeUtils.getFileChinaType(kbPapermaking.getFileName()));
|
||||||
|
kbPapermaking.setUploadTime(new Date());
|
||||||
|
kbPapermaking.setUploadId(SecurityUtils.getUserId());
|
||||||
|
}
|
||||||
return kbPapermakingMapper.updateKbPapermaking(kbPapermaking);
|
return kbPapermakingMapper.updateKbPapermaking(kbPapermaking);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user