This commit is contained in:
@@ -24,6 +24,8 @@ public interface UserUIMapper extends GenericMapper<UserUI, UserInfo> {
|
||||
@Mapping(source = "secondmentstdt", target = "SECONDMENTSTDT")
|
||||
@Mapping(source = "secondmentendt", target = "SECONDMENTENDT")
|
||||
@Mapping(source = "allowip", target = "allowIp")
|
||||
@Mapping(source = "lastloginyms", target = "LASTLOGINYMS")
|
||||
@Mapping(source = "regdyms", target = "REGDYMS")
|
||||
UserUI toVo(UserInfo entity);
|
||||
|
||||
@Override
|
||||
|
||||
@@ -82,4 +82,14 @@ public class UserUI {
|
||||
|
||||
@JsonProperty("STATUS")
|
||||
private String status; // 사용자계정상태
|
||||
|
||||
@JsonProperty("LASTLOGINYMS")
|
||||
@JsonFormat(pattern = LocalDateTimeFormatters.FORMAT_YYYYMMDDHHMMSS_14)
|
||||
@DateTimeFormat(pattern = "yyyyMMddHHmmss")
|
||||
private LocalDateTime LASTLOGINYMS; // 최종로그인일시
|
||||
|
||||
@JsonProperty("REGDYMS")
|
||||
@JsonFormat(pattern = LocalDateTimeFormatters.FORMAT_YYYYMMDDHHMMSS_14)
|
||||
@DateTimeFormat(pattern = "yyyyMMddHHmmss")
|
||||
private LocalDateTime REGDYMS; // 등록일시
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ import java.net.URLDecoder;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
@@ -26,6 +27,10 @@ import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.apim.portal.apispec.entity.ApiSpecInfo;
|
||||
import com.eactive.apim.portal.apispec.service.ApiSpecInfoService;
|
||||
import com.eactive.eai.rms.onl.transaction.apim.mapping.ApiSpecUIMapper;
|
||||
import com.eactive.eai.rms.onl.transaction.apim.ui.ApiSpecInfoUI;
|
||||
import com.eactive.eai.agent.command.Command;
|
||||
import com.eactive.eai.agent.command.CommonCommand;
|
||||
import com.eactive.eai.common.util.DatetimeUtil;
|
||||
@@ -105,6 +110,12 @@ public class LoaderController implements InterceptorSkipController {
|
||||
@Autowired
|
||||
private TransformDeployService transformDeployService;
|
||||
|
||||
@Autowired
|
||||
private ApiSpecInfoService apiSpecInfoService;
|
||||
|
||||
@Autowired
|
||||
private ApiSpecUIMapper apiSpecUIMapper;
|
||||
|
||||
|
||||
/**
|
||||
* 형상관리에서 layout을 로딩한다.
|
||||
@@ -1481,6 +1492,17 @@ public class LoaderController implements InterceptorSkipController {
|
||||
}
|
||||
}
|
||||
|
||||
// 4. API 스펙 정보(ptl_api_spec_info) 추가 (감사(audit) 컬럼은 제외)
|
||||
Optional<ApiSpecInfo> optSpecInfo = apiSpecInfoService.findById(interfaceId);
|
||||
if (optSpecInfo.isPresent()) {
|
||||
ApiSpecInfoUI specInfo = apiSpecUIMapper.mapToUI(optSpecInfo.get());
|
||||
specInfo.setCreatedBy(null);
|
||||
specInfo.setCreatedDate(null);
|
||||
specInfo.setLastModifiedBy(null);
|
||||
specInfo.setLastModifiedDate(null);
|
||||
interfaceDeployPack.setSpecInfo(specInfo);
|
||||
}
|
||||
|
||||
ObjectMapper objectMapper = new ObjectMapper();
|
||||
objectMapper.registerModule(new JavaTimeModule());
|
||||
objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
|
||||
@@ -1545,7 +1567,17 @@ public class LoaderController implements InterceptorSkipController {
|
||||
transformDeployService.saveDeploy(transformDeploy);
|
||||
agentUtilService.broadcast(new CommonCommand( "com.eactive.eai.agent.transformer.ReloadTransformCommand", transformDeploy.getCnvsnname()));
|
||||
}
|
||||
|
||||
|
||||
ApiSpecInfoUI specInfoUI = interfaceDeployPack.getSpecInfo();
|
||||
if (specInfoUI != null && StringUtils.isNotBlank(specInfoUI.getApiId())) {
|
||||
ApiSpecInfo specInfo = apiSpecUIMapper.mapToEntity(specInfoUI);
|
||||
if (apiSpecInfoService.findById(specInfo.getApiId()).isPresent()) {
|
||||
apiSpecInfoService.updateById(specInfo.getApiId(), specInfo);
|
||||
} else {
|
||||
apiSpecInfoService.create(specInfo);
|
||||
}
|
||||
}
|
||||
|
||||
Map<String,String> result = new HashMap<String,String>();
|
||||
String status = "success";
|
||||
result.put("status", status);
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.eactive.eai.rms.onl.loader.vo;
|
||||
import com.eactive.eai.rms.onl.loader.intf.deploy.EAIMessageDeploy;
|
||||
import com.eactive.eai.rms.onl.loader.layout.deploy.LayoutDeploy;
|
||||
import com.eactive.eai.rms.onl.loader.transform.deploy.TransformDeploy;
|
||||
import com.eactive.eai.rms.onl.transaction.apim.ui.ApiSpecInfoUI;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -15,4 +16,6 @@ public class InterfaceDeployPack {
|
||||
private List<LayoutDeploy> layoutDeployList = new ArrayList<>();
|
||||
|
||||
private List<TransformDeploy> transformDeployList = new ArrayList<>();
|
||||
|
||||
private ApiSpecInfoUI specInfo;
|
||||
}
|
||||
|
||||
@@ -2398,6 +2398,7 @@ user.checkRequired2 = Please enter the user name.
|
||||
user.checkRequired3 = Please enter the password.
|
||||
user.createBy = Create By
|
||||
user.createOn = Creation Time
|
||||
user.lastLoginYms = Last Login Time
|
||||
user.depCode = Department Code
|
||||
user.depart = Department
|
||||
user.eaiGrupCd = EAI group code
|
||||
|
||||
@@ -2560,6 +2560,7 @@ user.checkRequired2 = Please enter the user name.
|
||||
user.checkRequired3 = Please enter the password.
|
||||
user.createBy = Create By
|
||||
user.createOn = Creation Time
|
||||
user.lastLoginYms = Last Login Time
|
||||
user.depCode = Department Code
|
||||
user.depart = Department
|
||||
user.eaiGrupCd = EAI group code
|
||||
|
||||
@@ -2661,6 +2661,7 @@ user.checkRequired4 = \uC811\uC18D \uD5C8\uC6A9 IP\uB97C \uD655\uC778\uD558\u
|
||||
user.checkRequired5 = \uC0AC\uC6A9\uC790 \uACC4\uC815 \uC0C1\uD0DC\uB97C \uD655\uC778\uD558\uC5EC \uC8FC\uC2ED\uC2DC\uC624..
|
||||
user.createBy = \uB4F1\uB85D\uC778
|
||||
user.createOn = \uB4F1\uB85D\uC77C\uC2DC
|
||||
user.lastLoginYms = \uCD5C\uC885\uB85C\uADF8\uC778\uC77C\uC2DC
|
||||
user.depCode = \uBD80\uC810\uCF54\uB4DC
|
||||
user.depart = \uBD80\uC11C\uBA85
|
||||
user.eaiGrupCd = EAI\uADF8\uB8F9\uD68C\uC0AC\uCF54\uB4DC
|
||||
|
||||
Reference in New Issue
Block a user