견문 인쇄 오류 수정.

인사시스템 연동 오류 수정.
master
강석 최 2023-05-03 11:57:03 +09:00
parent 13c9447969
commit bdd75315c4
3 changed files with 13 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import com.dbnt.faisp.main.userInfo.model.UserInfo;
import com.dbnt.faisp.main.userInfo.repository.UserCareerRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
@ -22,6 +23,7 @@ public class KwmsService {
private final CodeMgtService codeMgtService;
private final UserCareerRepository careerRepository;
@Transactional
public UserInfo selectEmpInfo(String dicCode){
VEmployee empInfo = vEmployeeRepository.findByDic(dicCode).orElse(null);
if(empInfo==null){

View File

@ -118,6 +118,16 @@ public class CodeMgtService{
newCode.setItemValue(value);
newCode.setUseChk("T");
codeMgtRepository.save(newCode);
// 새 관서 등록시 부서 추가될 수 있도록 공통코드 카테고리 추가.
if(categoryCd.equals("OG")){
CodeCatg newCategory = new CodeCatg();
newCategory.setCategoryCd(newCode.getItemCd());
newCategory.setCategoryValue(newCode.getItemValue());
newCategory.setDescription(newCode.getItemValue()+" 부서");
codeCatgRepository.save(newCategory);
}
return newCode.getItemCd();
}
return code.getItemCd();

View File

@ -338,7 +338,7 @@
</div>
<th:block th:if="${modalType ne 'viewOnly'}">
<div class="modal-footer bg-light">
<th:block th:if="${affair.affairStatus eq 'DST006'}">
<th:block th:if="${affair.affairStatus eq 'DST006' or #lists.size(affair.rateList)>1}">
<button type="button" class="btn btn-secondary" id="affairPrintBtn" th:data-affairkey="${affair.affairKey}">인쇄</button>
</th:block>
<th:block th:if="${userOrgan eq 'OG001' and accessAuth eq 'ACC003'}">