parent
13c9447969
commit
bdd75315c4
|
|
@ -8,6 +8,7 @@ import com.dbnt.faisp.main.userInfo.model.UserInfo;
|
||||||
import com.dbnt.faisp.main.userInfo.repository.UserCareerRepository;
|
import com.dbnt.faisp.main.userInfo.repository.UserCareerRepository;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.time.format.DateTimeFormatter;
|
import java.time.format.DateTimeFormatter;
|
||||||
|
|
@ -22,6 +23,7 @@ public class KwmsService {
|
||||||
private final CodeMgtService codeMgtService;
|
private final CodeMgtService codeMgtService;
|
||||||
private final UserCareerRepository careerRepository;
|
private final UserCareerRepository careerRepository;
|
||||||
|
|
||||||
|
@Transactional
|
||||||
public UserInfo selectEmpInfo(String dicCode){
|
public UserInfo selectEmpInfo(String dicCode){
|
||||||
VEmployee empInfo = vEmployeeRepository.findByDic(dicCode).orElse(null);
|
VEmployee empInfo = vEmployeeRepository.findByDic(dicCode).orElse(null);
|
||||||
if(empInfo==null){
|
if(empInfo==null){
|
||||||
|
|
|
||||||
|
|
@ -118,6 +118,16 @@ public class CodeMgtService{
|
||||||
newCode.setItemValue(value);
|
newCode.setItemValue(value);
|
||||||
newCode.setUseChk("T");
|
newCode.setUseChk("T");
|
||||||
codeMgtRepository.save(newCode);
|
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 newCode.getItemCd();
|
||||||
}
|
}
|
||||||
return code.getItemCd();
|
return code.getItemCd();
|
||||||
|
|
|
||||||
|
|
@ -338,7 +338,7 @@
|
||||||
</div>
|
</div>
|
||||||
<th:block th:if="${modalType ne 'viewOnly'}">
|
<th:block th:if="${modalType ne 'viewOnly'}">
|
||||||
<div class="modal-footer bg-light">
|
<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>
|
<button type="button" class="btn btn-secondary" id="affairPrintBtn" th:data-affairkey="${affair.affairKey}">인쇄</button>
|
||||||
</th:block>
|
</th:block>
|
||||||
<th:block th:if="${userOrgan eq 'OG001' and accessAuth eq 'ACC003'}">
|
<th:block th:if="${userOrgan eq 'OG001' and accessAuth eq 'ACC003'}">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue