|
|
@ -1,5 +1,6 @@
|
|
|
|
package com.xit.biz.ctgy.service.impl;
|
|
|
|
package com.xit.biz.ctgy.service.impl;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.xit.biz.ctgy.CtgyConstants;
|
|
|
|
import com.xit.biz.ctgy.entity.MinInfoBoard680;
|
|
|
|
import com.xit.biz.ctgy.entity.MinInfoBoard680;
|
|
|
|
import com.xit.biz.ctgy.repository.IPublicBoardRepository;
|
|
|
|
import com.xit.biz.ctgy.repository.IPublicBoardRepository;
|
|
|
|
import com.xit.biz.ctgy.service.ICtgyFileService;
|
|
|
|
import com.xit.biz.ctgy.service.ICtgyFileService;
|
|
|
@ -89,7 +90,8 @@ public class CtgyFileService implements ICtgyFileService {
|
|
|
|
savedEntity.setInFilename(orgFileName);
|
|
|
|
savedEntity.setInFilename(orgFileName);
|
|
|
|
savedEntity.setInFilesize(mf.getSize());
|
|
|
|
savedEntity.setInFilesize(mf.getSize());
|
|
|
|
savedEntity.setInFileurl(serviceUrl + urlPath);
|
|
|
|
savedEntity.setInFileurl(serviceUrl + urlPath);
|
|
|
|
savedEntity.setInBgubun(entity.getInBgubun());
|
|
|
|
savedEntity.setInBgubun(CtgyConstants.PublicBoard.GUBUN.getCode());
|
|
|
|
|
|
|
|
savedEntity.setInDept(entity.getInDept());
|
|
|
|
savedEntity.setInTitle(entity.getInTitle());
|
|
|
|
savedEntity.setInTitle(entity.getInTitle());
|
|
|
|
savedEntity.setInContents(entity.getInContents());
|
|
|
|
savedEntity.setInContents(entity.getInContents());
|
|
|
|
|
|
|
|
|
|
|
@ -113,7 +115,8 @@ public class CtgyFileService implements ICtgyFileService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
MinInfoBoard680 savedEntity = repository.findById(entity.getInCode()).orElseGet(MinInfoBoard680::new);
|
|
|
|
MinInfoBoard680 savedEntity = repository.findById(entity.getInCode()).orElseGet(MinInfoBoard680::new);
|
|
|
|
savedEntity.setInBgubun(entity.getInBgubun());
|
|
|
|
savedEntity.setInBgubun(CtgyConstants.PublicBoard.GUBUN.getCode());
|
|
|
|
|
|
|
|
savedEntity.setInDept(entity.getInDept());
|
|
|
|
savedEntity.setInTitle(entity.getInTitle());
|
|
|
|
savedEntity.setInTitle(entity.getInTitle());
|
|
|
|
savedEntity.setInContents(entity.getInContents());
|
|
|
|
savedEntity.setInContents(entity.getInContents());
|
|
|
|
JpaUtil.saveIfNullId(savedEntity.getInCode(), repository, savedEntity);
|
|
|
|
JpaUtil.saveIfNullId(savedEntity.getInCode(), repository, savedEntity);
|
|
|
|