接口日志表

master
赵嘉伟 3 years ago
parent 7971c39c9a
commit 8058d0a24b

@ -0,0 +1,108 @@
package com.foreverwin.mesnac.anomaly.dto;
/**
* @Description TODO
* @Author zhaojiawei
* @Since 2021-09-03
*/
public class IntegrationLogDto {
/**
*
*/
private String integrationType;
/**
*
*/
private String category;
/**
*
*/
private String integrationWay;
/**
*
*/
private String status;
/**
*
*/
private String requestDateTime;
/**
*
*/
private String resultMessage;
/**
*
*/
private String param;
public String getIntegrationType() {
return integrationType;
}
public void setIntegrationType(String integrationType) {
this.integrationType = integrationType;
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
public String getIntegrationWay() {
return integrationWay;
}
public void setIntegrationWay(String integrationWay) {
this.integrationWay = integrationWay;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getRequestDateTime() {
return requestDateTime;
}
public void setRequestDateTime(String requestDateTime) {
this.requestDateTime = requestDateTime;
}
public String getResultMessage() {
return resultMessage;
}
public void setResultMessage(String resultMessage) {
this.resultMessage = resultMessage;
}
public String getParam() {
return param;
}
public void setParam(String param) {
this.param = param;
}
}

@ -7,7 +7,7 @@ import java.time.LocalDateTime;
* @Author zhaojiawei
* @Since 2021-08-23
*/
public class PartsManufacturing {
public class PartsManufacturingDto {
private String itemNumber;
private String shopOrder;
private String item;

@ -1,5 +1,6 @@
package com.foreverwin.mesnac.anomaly.mapper;
import com.foreverwin.mesnac.anomaly.dto.IntegrationLogDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
@ -14,7 +15,7 @@ import java.util.Map;
@Repository
public interface ReportMapper {
List<Map<String,Object>> findIntegrationLog(@Param("site")String site,@Param("param") Map<String,Object> map);
List<IntegrationLogDto> findIntegrationLog(@Param("site")String site, @Param("param") Map<String,Object> map);
List<Map<String, Object>> partsManufacturing(@Param("site")String site,@Param("locale")String locale, @Param("param") Map<String,Object> map);

@ -1,5 +1,7 @@
package com.foreverwin.mesnac.anomaly.service;
import com.foreverwin.mesnac.anomaly.dto.IntegrationLogDto;
import java.util.List;
import java.util.Map;
@ -9,7 +11,7 @@ import java.util.Map;
* @Since 2021-08-23
*/
public interface ReportService {
List<Map<String,Object>> findIntegrationLog(Map<String,Object> map);
List<IntegrationLogDto> findIntegrationLog(Map<String,Object> map);
List<Map<String, Object>> partsManufacturing(Map<String,Object> map);

@ -1,5 +1,6 @@
package com.foreverwin.mesnac.anomaly.service.impl;
import com.foreverwin.mesnac.anomaly.dto.IntegrationLogDto;
import com.foreverwin.mesnac.anomaly.mapper.ReportMapper;
import com.foreverwin.mesnac.anomaly.service.ReportService;
import com.foreverwin.mesnac.meapi.model.NcCode;
@ -36,11 +37,10 @@ public class ReportServiceImpl implements ReportService {
/**
*
* @param integration
* @return
*/
@Override
public List<Map<String,Object>> findIntegrationLog(Map<String, Object> map) {
public List<IntegrationLogDto> findIntegrationLog(Map<String, Object> map) {
String site = CommonMethods.getSite();
return reportMapper.findIntegrationLog(site,map);
}

@ -2,8 +2,17 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.foreverwin.mesnac.anomaly.mapper.ReportMapper">
<select id="findIntegrationLog" resultType="map">
SELECT INTEGRATION_TYPE, CATEGORY, INTEGRATION_WAY,STATUS,REQUEST_DATE_TIME,TO_CHAR(RESULT_MESSAGE) RESULT_MESSAGE,TO_CHAR(PARAM) PARAM
<resultMap id="IntegrationLogDto" type="com.foreverwin.mesnac.anomaly.dto.IntegrationLogDto">
<result column="INTEGRATION_TYPE" property="integrationType"/>
<result column="CATEGORY" property="category"/>
<result column="STATUS" property="status"/>
<result column="REQUEST_DATE_TIME" property="requestDateTime"/>
<result column="RESULT_MESSAGE" property="resultMessage"/>
<result column="PARAM" property="param"/>
</resultMap>
<select id="findIntegrationLog" resultMap="IntegrationLogDto">
SELECT INTEGRATION_TYPE, CATEGORY, INTEGRATION_WAY,STATUS,
REQUEST_DATE_TIME,RESULT_MESSAGE RESULT_MESSAGE,PARAM PARAM
FROM Z_INTEGRATION_LOG
<where>
SITE = #{site}

Loading…
Cancel
Save