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