parent
7a37ae66e4
commit
34300f8cde
@ -1,24 +0,0 @@
|
||||
package com.jiuyv.sptccc.agile.portal.dto;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author ren_chao
|
||||
*/
|
||||
public class DtoTest {
|
||||
|
||||
@Test
|
||||
void test01() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,297 @@
|
||||
package com.jiuyv.business.domain;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 车辆预录信息明细 tbl_car_pre_record_detail_his_info
|
||||
*
|
||||
*/
|
||||
public class TblCarPreRecordDetailHisInfo implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
private Integer version;
|
||||
|
||||
/**
|
||||
* 所属单位id
|
||||
*/
|
||||
private String orgId;
|
||||
|
||||
/**
|
||||
* 预录单号
|
||||
*/
|
||||
private String preOrderId;
|
||||
|
||||
/**
|
||||
* 委托单位
|
||||
*/
|
||||
private String companyId;
|
||||
|
||||
/**
|
||||
* 车架号
|
||||
*/
|
||||
private String carVin;
|
||||
|
||||
/**
|
||||
* 船名航次
|
||||
*/
|
||||
private String shipName;
|
||||
|
||||
/**
|
||||
* 发运单号
|
||||
*/
|
||||
private String waybillNumber;
|
||||
|
||||
/**
|
||||
* 启运港
|
||||
*/
|
||||
private String departPort;
|
||||
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
private String carNumber;
|
||||
|
||||
/**
|
||||
* 车型
|
||||
*/
|
||||
private String carModel;
|
||||
|
||||
/**
|
||||
* 目的港
|
||||
*/
|
||||
private String destinationPort;
|
||||
|
||||
/**
|
||||
* 目的国
|
||||
*/
|
||||
private String destinationCountry;
|
||||
|
||||
/**
|
||||
* 状态 00 正常 01未见实车
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 导入时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 导入人
|
||||
*/
|
||||
private String createUserId;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
private String updateUserId;
|
||||
|
||||
/**
|
||||
* 保留域1
|
||||
*/
|
||||
private String rsv1;
|
||||
|
||||
/**
|
||||
* 保留域2
|
||||
*/
|
||||
private String rsv2;
|
||||
|
||||
/**
|
||||
* 保留域3
|
||||
*/
|
||||
private String rsv3;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remarks;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
public void setVersion(Integer version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public String getOrgId() {
|
||||
return orgId;
|
||||
}
|
||||
|
||||
public void setOrgId(String orgId) {
|
||||
this.orgId = orgId;
|
||||
}
|
||||
|
||||
public String getPreOrderId() {
|
||||
return preOrderId;
|
||||
}
|
||||
|
||||
public void setPreOrderId(String preOrderId) {
|
||||
this.preOrderId = preOrderId;
|
||||
}
|
||||
|
||||
public String getCompanyId() {
|
||||
return companyId;
|
||||
}
|
||||
|
||||
public void setCompanyId(String companyId) {
|
||||
this.companyId = companyId;
|
||||
}
|
||||
|
||||
public String getCarVin() {
|
||||
return carVin;
|
||||
}
|
||||
|
||||
public void setCarVin(String carVin) {
|
||||
this.carVin = carVin;
|
||||
}
|
||||
|
||||
public String getShipName() {
|
||||
return shipName;
|
||||
}
|
||||
|
||||
public void setShipName(String shipName) {
|
||||
this.shipName = shipName;
|
||||
}
|
||||
|
||||
public String getWaybillNumber() {
|
||||
return waybillNumber;
|
||||
}
|
||||
|
||||
public void setWaybillNumber(String waybillNumber) {
|
||||
this.waybillNumber = waybillNumber;
|
||||
}
|
||||
|
||||
public String getDepartPort() {
|
||||
return departPort;
|
||||
}
|
||||
|
||||
public void setDepartPort(String departPort) {
|
||||
this.departPort = departPort;
|
||||
}
|
||||
|
||||
public String getCarNumber() {
|
||||
return carNumber;
|
||||
}
|
||||
|
||||
public void setCarNumber(String carNumber) {
|
||||
this.carNumber = carNumber;
|
||||
}
|
||||
|
||||
public String getCarModel() {
|
||||
return carModel;
|
||||
}
|
||||
|
||||
public void setCarModel(String carModel) {
|
||||
this.carModel = carModel;
|
||||
}
|
||||
|
||||
public String getDestinationPort() {
|
||||
return destinationPort;
|
||||
}
|
||||
|
||||
public void setDestinationPort(String destinationPort) {
|
||||
this.destinationPort = destinationPort;
|
||||
}
|
||||
|
||||
public String getDestinationCountry() {
|
||||
return destinationCountry;
|
||||
}
|
||||
|
||||
public void setDestinationCountry(String destinationCountry) {
|
||||
this.destinationCountry = destinationCountry;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getCreateUserId() {
|
||||
return createUserId;
|
||||
}
|
||||
|
||||
public void setCreateUserId(String createUserId) {
|
||||
this.createUserId = createUserId;
|
||||
}
|
||||
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public String getUpdateUserId() {
|
||||
return updateUserId;
|
||||
}
|
||||
|
||||
public void setUpdateUserId(String updateUserId) {
|
||||
this.updateUserId = updateUserId;
|
||||
}
|
||||
|
||||
public String getRsv1() {
|
||||
return rsv1;
|
||||
}
|
||||
|
||||
public void setRsv1(String rsv1) {
|
||||
this.rsv1 = rsv1;
|
||||
}
|
||||
|
||||
public String getRsv2() {
|
||||
return rsv2;
|
||||
}
|
||||
|
||||
public void setRsv2(String rsv2) {
|
||||
this.rsv2 = rsv2;
|
||||
}
|
||||
|
||||
public String getRsv3() {
|
||||
return rsv3;
|
||||
}
|
||||
|
||||
public void setRsv3(String rsv3) {
|
||||
this.rsv3 = rsv3;
|
||||
}
|
||||
|
||||
public String getRemarks() {
|
||||
return remarks;
|
||||
}
|
||||
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,232 @@
|
||||
package com.jiuyv.business.domain;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 车辆预录信息 tbl_car_pre_record_his_info
|
||||
*
|
||||
*/
|
||||
public class TblCarPreRecordHisInfo implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
private Integer version;
|
||||
|
||||
/**
|
||||
* 所属单位id
|
||||
*/
|
||||
private String orgId;
|
||||
|
||||
/**
|
||||
* 预录单号
|
||||
*/
|
||||
private String preOrderId;
|
||||
|
||||
/**
|
||||
* 委托单位
|
||||
*/
|
||||
private String companyId;
|
||||
|
||||
/**
|
||||
* 船名航次
|
||||
*/
|
||||
private String shipName;
|
||||
|
||||
/**
|
||||
* 00 未生效 01 已生效
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 文件id
|
||||
*/
|
||||
private String fileId;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
* 车辆总数
|
||||
*/
|
||||
private Integer carCount;
|
||||
|
||||
/**
|
||||
* 导入时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 导入人
|
||||
*/
|
||||
private String createUserId;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
private String updateUserId;
|
||||
|
||||
/**
|
||||
* 保留域1
|
||||
*/
|
||||
private String rsv1;
|
||||
|
||||
/**
|
||||
* 保留域2
|
||||
*/
|
||||
private String rsv2;
|
||||
|
||||
/**
|
||||
* 保留域3
|
||||
*/
|
||||
private String rsv3;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
public void setVersion(Integer version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public String getOrgId() {
|
||||
return orgId;
|
||||
}
|
||||
|
||||
public void setOrgId(String orgId) {
|
||||
this.orgId = orgId;
|
||||
}
|
||||
|
||||
public String getPreOrderId() {
|
||||
return preOrderId;
|
||||
}
|
||||
|
||||
public void setPreOrderId(String preOrderId) {
|
||||
this.preOrderId = preOrderId;
|
||||
}
|
||||
|
||||
public String getCompanyId() {
|
||||
return companyId;
|
||||
}
|
||||
|
||||
public void setCompanyId(String companyId) {
|
||||
this.companyId = companyId;
|
||||
}
|
||||
|
||||
public String getShipName() {
|
||||
return shipName;
|
||||
}
|
||||
|
||||
public void setShipName(String shipName) {
|
||||
this.shipName = shipName;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getFileId() {
|
||||
return fileId;
|
||||
}
|
||||
|
||||
public void setFileId(String fileId) {
|
||||
this.fileId = fileId;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public Integer getCarCount() {
|
||||
return carCount;
|
||||
}
|
||||
|
||||
public void setCarCount(Integer carCount) {
|
||||
this.carCount = carCount;
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getCreateUserId() {
|
||||
return createUserId;
|
||||
}
|
||||
|
||||
public void setCreateUserId(String createUserId) {
|
||||
this.createUserId = createUserId;
|
||||
}
|
||||
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public String getUpdateUserId() {
|
||||
return updateUserId;
|
||||
}
|
||||
|
||||
public void setUpdateUserId(String updateUserId) {
|
||||
this.updateUserId = updateUserId;
|
||||
}
|
||||
|
||||
public String getRsv1() {
|
||||
return rsv1;
|
||||
}
|
||||
|
||||
public void setRsv1(String rsv1) {
|
||||
this.rsv1 = rsv1;
|
||||
}
|
||||
|
||||
public String getRsv2() {
|
||||
return rsv2;
|
||||
}
|
||||
|
||||
public void setRsv2(String rsv2) {
|
||||
this.rsv2 = rsv2;
|
||||
}
|
||||
|
||||
public String getRsv3() {
|
||||
return rsv3;
|
||||
}
|
||||
|
||||
public void setRsv3(String rsv3) {
|
||||
this.rsv3 = rsv3;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
package com.jiuyv.business.mapper;
|
||||
|
||||
import com.jiuyv.business.domain.TblCarPreRecordDetailHisInfo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 针对表【tbl_car_pre_record_detail_his_info(车辆预录信息明细)】的数据库操作Mapper
|
||||
*
|
||||
*/
|
||||
@Mapper
|
||||
public interface TblCarPreRecordDetailHisInfoMapper {
|
||||
|
||||
int insert(TblCarPreRecordDetailHisInfo record);
|
||||
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
package com.jiuyv.business.mapper;
|
||||
|
||||
import com.jiuyv.business.domain.TblCarPreRecordHisInfo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 针对表【tbl_car_pre_record_his_info(车辆预录信息)】的数据库操作Mapper
|
||||
*
|
||||
*/
|
||||
@Mapper
|
||||
public interface TblCarPreRecordHisInfoMapper {
|
||||
|
||||
int insert(TblCarPreRecordHisInfo record);
|
||||
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
package com.jiuyv.business.service;
|
||||
|
||||
|
||||
import com.jiuyv.business.domain.TblCarPreRecordDetailInfo;
|
||||
|
||||
/**
|
||||
* 车辆预录信息明细Service接口
|
||||
*
|
||||
*/
|
||||
public interface CarPreRecordDetailHisInfoService {
|
||||
|
||||
void savePreRecordDetailHisBean(TblCarPreRecordDetailInfo recordDetailInfo);
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
package com.jiuyv.business.service;
|
||||
|
||||
import com.jiuyv.business.domain.TblCarPreRecordInfo;
|
||||
|
||||
/**
|
||||
* 车辆预录信息Service接口
|
||||
*
|
||||
*/
|
||||
public interface CarPreRecordHisInfoService {
|
||||
|
||||
void savePreRecordHisBean(TblCarPreRecordInfo tblCarPreRecordInfo);
|
||||
}
|
||||
@ -0,0 +1,50 @@
|
||||
package com.jiuyv.business.service.impl;
|
||||
|
||||
import com.jiuyv.business.domain.TblCarPreRecordDetailHisInfo;
|
||||
import com.jiuyv.business.domain.TblCarPreRecordDetailInfo;
|
||||
import com.jiuyv.business.mapper.TblCarPreRecordDetailHisInfoMapper;
|
||||
import com.jiuyv.business.service.CarPreRecordDetailHisInfoService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 车辆预录信息明细Service业务层处理
|
||||
*
|
||||
*/
|
||||
@Service
|
||||
public class CarPreRecordDetailHisInfoServiceImpl implements CarPreRecordDetailHisInfoService {
|
||||
|
||||
private final TblCarPreRecordDetailHisInfoMapper tblCarPreRecordDetailHisInfoMapper;
|
||||
|
||||
public CarPreRecordDetailHisInfoServiceImpl(TblCarPreRecordDetailHisInfoMapper tblCarPreRecordDetailHisInfoMapper) {
|
||||
this.tblCarPreRecordDetailHisInfoMapper = tblCarPreRecordDetailHisInfoMapper;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void savePreRecordDetailHisBean(TblCarPreRecordDetailInfo recordDetailInfo) {
|
||||
TblCarPreRecordDetailHisInfo detailHisInfo = new TblCarPreRecordDetailHisInfo();
|
||||
detailHisInfo.setId(recordDetailInfo.getId());
|
||||
detailHisInfo.setVersion(recordDetailInfo.getVersion());
|
||||
detailHisInfo.setOrgId(recordDetailInfo.getOrgId());
|
||||
detailHisInfo.setPreOrderId(recordDetailInfo.getPreOrderId());
|
||||
detailHisInfo.setCompanyId(recordDetailInfo.getCompanyId());
|
||||
detailHisInfo.setCarVin(recordDetailInfo.getCarVin());
|
||||
detailHisInfo.setShipName(recordDetailInfo.getShipName());
|
||||
detailHisInfo.setWaybillNumber(recordDetailInfo.getWaybillNumber());
|
||||
detailHisInfo.setDepartPort(recordDetailInfo.getDepartPort());
|
||||
detailHisInfo.setCarNumber(recordDetailInfo.getCarNumber());
|
||||
detailHisInfo.setCarModel(recordDetailInfo.getCarModel());
|
||||
detailHisInfo.setDestinationPort(recordDetailInfo.getDestinationPort());
|
||||
detailHisInfo.setDestinationCountry(recordDetailInfo.getDestinationCountry());
|
||||
detailHisInfo.setStatus(recordDetailInfo.getStatus());
|
||||
detailHisInfo.setCreateTime(recordDetailInfo.getCreateTime());
|
||||
detailHisInfo.setCreateUserId(recordDetailInfo.getCreateUserId());
|
||||
detailHisInfo.setUpdateTime(recordDetailInfo.getUpdateTime());
|
||||
detailHisInfo.setUpdateUserId(recordDetailInfo.getUpdateUserId());
|
||||
detailHisInfo.setRsv1(recordDetailInfo.getRsv1());
|
||||
detailHisInfo.setRsv2(recordDetailInfo.getRsv2());
|
||||
detailHisInfo.setRsv3(recordDetailInfo.getRsv3());
|
||||
detailHisInfo.setRemarks(recordDetailInfo.getRemarks());
|
||||
tblCarPreRecordDetailHisInfoMapper.insert(detailHisInfo);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
package com.jiuyv.business.service.impl;
|
||||
|
||||
import com.jiuyv.business.domain.TblCarPreRecordHisInfo;
|
||||
import com.jiuyv.business.domain.TblCarPreRecordInfo;
|
||||
import com.jiuyv.business.mapper.TblCarPreRecordHisInfoMapper;
|
||||
import com.jiuyv.business.service.CarPreRecordHisInfoService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 车辆预录信息Service业务层处理
|
||||
*
|
||||
*/
|
||||
@Service
|
||||
public class CarPreRecordHisInfoServiceImpl implements CarPreRecordHisInfoService {
|
||||
|
||||
private final TblCarPreRecordHisInfoMapper tblCarPreRecordHisInfoMapper;
|
||||
|
||||
public CarPreRecordHisInfoServiceImpl(TblCarPreRecordHisInfoMapper tblCarPreRecordHisInfoMapper) {
|
||||
this.tblCarPreRecordHisInfoMapper = tblCarPreRecordHisInfoMapper;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void savePreRecordHisBean(TblCarPreRecordInfo tblCarPreRecordInfo) {
|
||||
TblCarPreRecordHisInfo recordHisInfo = new TblCarPreRecordHisInfo();
|
||||
recordHisInfo.setId(tblCarPreRecordInfo.getId());
|
||||
recordHisInfo.setVersion(tblCarPreRecordInfo.getVersion());
|
||||
recordHisInfo.setOrgId(tblCarPreRecordInfo.getOrgId());
|
||||
recordHisInfo.setPreOrderId(tblCarPreRecordInfo.getPreOrderId());
|
||||
recordHisInfo.setCompanyId(tblCarPreRecordInfo.getCompanyId());
|
||||
recordHisInfo.setShipName(tblCarPreRecordInfo.getShipName());
|
||||
recordHisInfo.setStatus(tblCarPreRecordInfo.getStatus());
|
||||
recordHisInfo.setFileId(tblCarPreRecordInfo.getFileId());
|
||||
recordHisInfo.setFileName(tblCarPreRecordInfo.getFileName());
|
||||
recordHisInfo.setCarCount(tblCarPreRecordInfo.getCarCount());
|
||||
recordHisInfo.setCreateTime(tblCarPreRecordInfo.getCreateTime());
|
||||
recordHisInfo.setCreateUserId(tblCarPreRecordInfo.getCreateUserId());
|
||||
recordHisInfo.setUpdateTime(tblCarPreRecordInfo.getUpdateTime());
|
||||
recordHisInfo.setUpdateUserId(tblCarPreRecordInfo.getUpdateUserId());
|
||||
recordHisInfo.setRsv1(tblCarPreRecordInfo.getRsv1());
|
||||
recordHisInfo.setRsv2(tblCarPreRecordInfo.getRsv2());
|
||||
recordHisInfo.setRsv3(tblCarPreRecordInfo.getRsv3());
|
||||
tblCarPreRecordHisInfoMapper.insert(recordHisInfo);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,95 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jiuyv.business.mapper.TblCarPreRecordDetailHisInfoMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.jiuyv.business.domain.TblCarPreRecordDetailHisInfo">
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="version" column="version" jdbcType="INTEGER"/>
|
||||
<result property="orgId" column="org_id" jdbcType="VARCHAR"/>
|
||||
<result property="preOrderId" column="pre_order_id" jdbcType="VARCHAR"/>
|
||||
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||
<result property="carVin" column="car_vin" jdbcType="VARCHAR"/>
|
||||
<result property="shipName" column="ship_name" jdbcType="VARCHAR"/>
|
||||
<result property="waybillNumber" column="waybill_number" jdbcType="VARCHAR"/>
|
||||
<result property="departPort" column="depart_port" jdbcType="VARCHAR"/>
|
||||
<result property="carNumber" column="car_number" jdbcType="INTEGER"/>
|
||||
<result property="carModel" column="car_model" jdbcType="VARCHAR"/>
|
||||
<result property="destinationPort" column="destination_port" jdbcType="VARCHAR"/>
|
||||
<result property="destinationCountry" column="destination_country" jdbcType="VARCHAR"/>
|
||||
<result property="status" column="status" jdbcType="CHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="rsv1" column="rsv1" jdbcType="VARCHAR"/>
|
||||
<result property="rsv2" column="rsv2" jdbcType="VARCHAR"/>
|
||||
<result property="rsv3" column="rsv3" jdbcType="VARCHAR"/>
|
||||
<result property="remarks" column="remarks" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,version,org_id,
|
||||
pre_order_id,company_id,car_vin,
|
||||
ship_name,waybill_number,depart_port,
|
||||
car_number,car_model,destination_port,
|
||||
destination_country,status,create_time,
|
||||
create_user_id,update_time,update_user_id,
|
||||
rsv1,rsv2,rsv3,
|
||||
remarks
|
||||
</sql>
|
||||
|
||||
<insert id="insert">
|
||||
insert into tbl_car_pre_record_detail_his_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="version != null">version,</if>
|
||||
<if test="orgId != null">org_id,</if>
|
||||
<if test="preOrderId != null">pre_order_id,</if>
|
||||
<if test="companyId != null">company_id,</if>
|
||||
<if test="carVin != null">car_vin,</if>
|
||||
<if test="shipName != null">ship_name,</if>
|
||||
<if test="waybillNumber != null">waybill_number,</if>
|
||||
<if test="departPort != null">depart_port,</if>
|
||||
<if test="carNumber != null">car_number,</if>
|
||||
<if test="carModel != null">car_model,</if>
|
||||
<if test="destinationPort != null">destination_port,</if>
|
||||
<if test="destinationCountry != null">destination_country,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="createUserId != null">create_user_id,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="updateUserId != null">update_user_id,</if>
|
||||
<if test="rsv1 != null">rsv1,</if>
|
||||
<if test="rsv2 != null">rsv2,</if>
|
||||
<if test="rsv3 != null">rsv3,</if>
|
||||
<if test="remarks != null">remarks,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id,jdbcType=VARCHAR},</if>
|
||||
<if test="version != null">#{version,jdbcType=INTEGER},</if>
|
||||
<if test="orgId != null">#{orgId,jdbcType=VARCHAR},</if>
|
||||
<if test="preOrderId != null">#{preOrderId,jdbcType=VARCHAR},</if>
|
||||
<if test="companyId != null">#{companyId,jdbcType=VARCHAR},</if>
|
||||
<if test="carVin != null">#{carVin,jdbcType=VARCHAR},</if>
|
||||
<if test="shipName != null">#{shipName,jdbcType=VARCHAR},</if>
|
||||
<if test="waybillNumber != null">#{waybillNumber,jdbcType=VARCHAR},</if>
|
||||
<if test="departPort != null">#{departPort,jdbcType=VARCHAR},</if>
|
||||
<if test="carNumber != null">#{carNumber,jdbcType=INTEGER},</if>
|
||||
<if test="carModel != null">#{carModel,jdbcType=VARCHAR},</if>
|
||||
<if test="destinationPort != null">#{destinationPort,jdbcType=VARCHAR},</if>
|
||||
<if test="destinationCountry != null">#{destinationCountry,jdbcType=VARCHAR},</if>
|
||||
<if test="status != null">#{status,jdbcType=CHAR},</if>
|
||||
<if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
||||
<if test="createUserId != null">#{createUserId,jdbcType=VARCHAR},</if>
|
||||
<if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
|
||||
<if test="updateUserId != null">#{updateUserId,jdbcType=VARCHAR},</if>
|
||||
<if test="rsv1 != null">#{rsv1,jdbcType=VARCHAR},</if>
|
||||
<if test="rsv2 != null">#{rsv2,jdbcType=VARCHAR},</if>
|
||||
<if test="rsv3 != null">#{rsv3,jdbcType=VARCHAR},</if>
|
||||
<if test="remarks != null">#{remarks,jdbcType=VARCHAR},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,77 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jiuyv.business.mapper.TblCarPreRecordHisInfoMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.jiuyv.business.domain.TblCarPreRecordHisInfo">
|
||||
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="version" column="version" jdbcType="INTEGER"/>
|
||||
<result property="orgId" column="org_id" jdbcType="VARCHAR"/>
|
||||
<result property="preOrderId" column="pre_order_id" jdbcType="VARCHAR"/>
|
||||
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||
<result property="shipName" column="ship_name" jdbcType="VARCHAR"/>
|
||||
<result property="status" column="status" jdbcType="CHAR"/>
|
||||
<result property="fileId" column="file_id" jdbcType="VARCHAR"/>
|
||||
<result property="fileName" column="file_name" jdbcType="VARCHAR"/>
|
||||
<result property="carCount" column="car_count" jdbcType="INTEGER"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="rsv1" column="rsv1" jdbcType="VARCHAR"/>
|
||||
<result property="rsv2" column="rsv2" jdbcType="VARCHAR"/>
|
||||
<result property="rsv3" column="rsv3" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,version,org_id,
|
||||
pre_order_id,company_id,ship_name,
|
||||
status,file_id,file_name,
|
||||
car_count,create_time,create_user_id,
|
||||
update_time,update_user_id,rsv1,
|
||||
rsv2,rsv3
|
||||
</sql>
|
||||
|
||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.jiuyv.business.domain.TblCarPreRecordHisInfo" useGeneratedKeys="true">
|
||||
insert into tbl_car_pre_record_his_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="version != null">version,</if>
|
||||
<if test="orgId != null">org_id,</if>
|
||||
<if test="preOrderId != null">pre_order_id,</if>
|
||||
<if test="companyId != null">company_id,</if>
|
||||
<if test="shipName != null">ship_name,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="fileId != null">file_id,</if>
|
||||
<if test="fileName != null">file_name,</if>
|
||||
<if test="carCount != null">car_count,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="createUserId != null">create_user_id,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="updateUserId != null">update_user_id,</if>
|
||||
<if test="rsv1 != null">rsv1,</if>
|
||||
<if test="rsv2 != null">rsv2,</if>
|
||||
<if test="rsv3 != null">rsv3,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="version != null">#{version},</if>
|
||||
<if test="orgId != null">#{orgId},</if>
|
||||
<if test="preOrderId != null">#{preOrderId},</if>
|
||||
<if test="companyId != null">#{companyId},</if>
|
||||
<if test="shipName != null">#{shipName},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="fileId != null">#{fileId},</if>
|
||||
<if test="fileName != null">#{fileName},</if>
|
||||
<if test="carCount != null">#{carCount},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="createUserId != null">#{createUserId},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="updateUserId != null">#{updateUserId},</if>
|
||||
<if test="rsv1 != null">#{rsv1},</if>
|
||||
<if test="rsv2 != null">#{rsv2},</if>
|
||||
<if test="rsv3 != null">#{rsv3},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
</mapper>
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -0,0 +1 @@
|
||||
.el-upload{width:100%}.el-upload .el-upload-dragger{width:100%;height:140px}.el-descriptions-item__label:not(.is-bordered-label){text-align:right;width:120px;display:inline-block}.el-pager li:not(.disabled).active{background-color:#1890ff;color:#fff}.el-pagination .btn-next,.el-pagination .btn-prev,.el-pagination .el-pager li{margin:0 5px;background-color:#f4f4f5;color:#606266;min-width:30px;border-radius:2px}
|
||||
Binary file not shown.
@ -1 +0,0 @@
|
||||
.el-descriptions-item__label:not(.is-bordered-label){text-align:right;width:120px;display:inline-block}.el-pager li:not(.disabled).active{background-color:#1890ff;color:#fff}.el-pagination .btn-next,.el-pagination .btn-prev,.el-pagination .el-pager li{margin:0 5px;background-color:#f4f4f5;color:#606266;min-width:30px;border-radius:2px}
|
||||
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
.el-descriptions-item__label:not(.is-bordered-label){text-align:right;width:110px;display:inline-block}div.jccd[data-v-02d44f92]{line-height:36px;width:90%;margin:0 auto;border:1px solid #d9cdcd;padding:20px;border-radius:5px;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.3);box-shadow:0 1px 3px rgba(0,0,0,.3);-webkit-box-sizing:border-box;box-sizing:border-box;margin-bottom:20px}.imglist[data-v-02d44f92]{overflow:hidden;padding:0;margin:0}.imglist li[data-v-02d44f92]{float:left;margin:5px;width:100px;height:100px;overflow:hidden}.imglist li img[data-v-02d44f92]{width:100%;display:block}
|
||||
.el-descriptions-item__label:not(.is-bordered-label){text-align:right;width:110px;display:inline-block}div.jccd[data-v-0cb80798]{line-height:36px;width:90%;margin:0 auto;border:1px solid #d9cdcd;padding:20px;border-radius:5px;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.3);box-shadow:0 1px 3px rgba(0,0,0,.3);-webkit-box-sizing:border-box;box-sizing:border-box;margin-bottom:20px}.imglist[data-v-0cb80798]{overflow:hidden;padding:0;margin:0}.imglist li[data-v-0cb80798]{float:left;margin:5px;width:100px;height:100px;overflow:hidden}.imglist li img[data-v-0cb80798]{width:100%;display:block}
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,73 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>agile-data</artifactId>
|
||||
<groupId>com.jiuyv.sptcc.agile</groupId>
|
||||
<version>0.2.10</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<artifactId>agile-data-api</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
||||
<maven.compiler.target>8</maven.compiler.target>
|
||||
<!-- 版本不更新的情况 -->
|
||||
<maven.deploy.skip>true</maven.deploy.skip>
|
||||
</properties>
|
||||
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-annotations</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate.validator</groupId>
|
||||
<artifactId>hibernate-validator</artifactId>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-web</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-context</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.jiuyv.sptcc.agile</groupId>
|
||||
<artifactId>agile-common</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>io.github.openfeign</groupId>
|
||||
<artifactId>feign-core</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.tomcat.embed</groupId>
|
||||
<artifactId>tomcat-embed-core</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-api</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
</project>
|
||||
@ -0,0 +1,42 @@
|
||||
package com.jiuyv.sptcc.agile.dataservice.api;
|
||||
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.request.org.OrgAuthReq;
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.request.org.OrgAuthRequest;
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.response.org.OrgAuthResp;
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.response.org.OrgConfigResponse;
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.response.org.OrgKeyResponse;
|
||||
import com.jiuyv.sptccc.agile.common.core.domain.R;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName : OrgAuthApi
|
||||
* @Description : 获取机构权限列表
|
||||
* @Author : sky
|
||||
* @Date: 2023-07-13 11:45
|
||||
*/
|
||||
public interface OrgAuthApi {
|
||||
|
||||
String PREFIX_PATH = "/public/agile-data/auth";
|
||||
|
||||
@PostMapping(PREFIX_PATH + "/info")
|
||||
R<OrgAuthResp> getOrgAuth(OrgAuthReq req);
|
||||
/**
|
||||
* 接口权限验证
|
||||
* @param request 入参
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/auth")
|
||||
R<OrgKeyResponse> check(OrgAuthRequest request);
|
||||
|
||||
/**
|
||||
* 获取密钥
|
||||
* @param orgCode
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(PREFIX_PATH+"/getKey")
|
||||
R<OrgKeyResponse> getKey(@RequestParam("orgCode") String orgCode);
|
||||
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
package com.jiuyv.sptcc.agile.dataservice.api.batch;
|
||||
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.request.batch.DateVo;
|
||||
import com.jiuyv.sptccc.agile.common.core.domain.R;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
public interface BatchApi {
|
||||
|
||||
String PREFIX_PATH = "/public/agile-data";
|
||||
|
||||
/**
|
||||
* 机构到期提醒
|
||||
*
|
||||
* @param date
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/orgInfo/expire")
|
||||
R<Boolean> expire(@RequestParam(value = "date",required = false) String date);
|
||||
|
||||
/**
|
||||
* 机构到期下架
|
||||
*
|
||||
* @param date
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/orgInfo/down")
|
||||
R<Boolean> down(@RequestParam(value = "date",required = false) String date);
|
||||
|
||||
|
||||
/**
|
||||
* pos匹配率异常告警
|
||||
* @param date
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/pos/posRate")
|
||||
R<Boolean> posCheck(DateVo dateVo);
|
||||
|
||||
}
|
||||
@ -0,0 +1,28 @@
|
||||
package com.jiuyv.sptcc.agile.dataservice.api.console;
|
||||
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.request.api.ApiLogRequest;
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.response.api.ApiLogResponse;
|
||||
import com.jiuyv.sptccc.agile.common.core.domain.R;
|
||||
import com.jiuyv.sptccc.agile.common.core.page.PageResult;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
/**
|
||||
* @ClassName : ApiLogApi
|
||||
* @Description : 日志接口
|
||||
* @Author : sky
|
||||
* @Date: 2023-09-22 10:25
|
||||
*/
|
||||
public interface ApiLogApi {
|
||||
|
||||
|
||||
String PREFIX_PATH = "/public/agile-data/apilog";
|
||||
|
||||
|
||||
@PostMapping(PREFIX_PATH + "/page")
|
||||
R<PageResult<ApiLogResponse>> list(ApiLogRequest request);
|
||||
|
||||
@GetMapping(PREFIX_PATH + "/detail")
|
||||
R<ApiLogResponse> detail(@RequestParam("id") Long id);
|
||||
}
|
||||
@ -0,0 +1,145 @@
|
||||
package com.jiuyv.sptcc.agile.dataservice.api.console;
|
||||
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.request.api.*;
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.response.api.ApiResponse;
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.response.TreeSelect;
|
||||
import com.jiuyv.sptccc.agile.common.core.domain.R;
|
||||
import com.jiuyv.sptccc.agile.common.core.page.PageResult;
|
||||
import feign.Response;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 敏捷API
|
||||
*
|
||||
* @author yulei
|
||||
*/
|
||||
public interface DataApiFeign {
|
||||
|
||||
String PREFIX_PATH = "/public/agile-data/agileApi";
|
||||
|
||||
|
||||
@GetMapping(PREFIX_PATH + "/getPrefixPath")
|
||||
R<String> getApiPrefixPath();
|
||||
|
||||
/**
|
||||
* 获取详情
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/getDate")
|
||||
R<ApiResponse> getDataApiById(@RequestParam("id") Long id);
|
||||
|
||||
/**
|
||||
* 获取数据源的API列表
|
||||
*
|
||||
* @param sourceId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(PREFIX_PATH + "/sourceList")
|
||||
R<List<ApiResponse>> getDataApiList(@RequestParam("sourceId") Long sourceId);
|
||||
|
||||
/**
|
||||
* 获取分页列表
|
||||
*
|
||||
* @param apiQuery
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/page")
|
||||
R<PageResult<ApiResponse>> getDataApiPage(ApiPageRequest apiQuery);
|
||||
|
||||
/**
|
||||
* 新增API
|
||||
*
|
||||
* @param dataApi
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/add")
|
||||
R<Object> saveDataApi(ApiAddRequest dataApi);
|
||||
|
||||
/**
|
||||
* 修改API
|
||||
*
|
||||
* @param dataApi
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/update")
|
||||
R<Object> updateDataApi(ApiUpdateRequest dataApi);
|
||||
|
||||
/**
|
||||
* 删除API
|
||||
*
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/delete")
|
||||
R<Object> deleteDataApiById(@RequestBody @Validated ApiDelRequest request);
|
||||
|
||||
/**
|
||||
* 复制API
|
||||
*
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/copy")
|
||||
R<Object> copyDataApi(ApiCopyRequest request);
|
||||
|
||||
/**
|
||||
* 注册API
|
||||
*
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/register")
|
||||
R<Object> registerDataApi(ApiStatusRequest request);
|
||||
|
||||
/**
|
||||
* 发布API
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/release")
|
||||
R<Object> releaseDataApi(ApiStatusRequest dto);
|
||||
|
||||
/**
|
||||
* 注销API
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/cancel")
|
||||
R<Object> cancelDataApi(ApiStatusRequest dto);
|
||||
|
||||
/**
|
||||
* 下架API
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/down")
|
||||
R<Object> downDataApi(ApiStatusRequest dto);
|
||||
|
||||
/**
|
||||
* 获取api树状结构数据
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/tree")
|
||||
R<List<TreeSelect>> apiTree();
|
||||
|
||||
/**
|
||||
* 生成接口文档
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(PREFIX_PATH + "/word/down")
|
||||
Response wordDataApi(@RequestParam("id") Long id) throws Exception;
|
||||
}
|
||||
@ -0,0 +1,75 @@
|
||||
package com.jiuyv.sptcc.agile.dataservice.api.console;
|
||||
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.request.org.OrgConfigAddRequest;
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.request.org.OrgConfigEditRequest;
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.request.org.OrgConfigQueryRequest;
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.response.org.OrgConfigResponse;
|
||||
import com.jiuyv.sptccc.agile.common.core.domain.R;
|
||||
import com.jiuyv.sptccc.agile.common.core.page.PageResult;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 机构配置接口
|
||||
*
|
||||
* @ClassName : OrgConfigApi
|
||||
* @Description :
|
||||
* @Author : sky
|
||||
* @Date: 2023-09-07 15:44
|
||||
*/
|
||||
public interface OrgCfgConsoleApi {
|
||||
|
||||
String PREFIX_PATH = "/public/agile-data/orgConfig";
|
||||
|
||||
/**
|
||||
* 分页查询列表
|
||||
*
|
||||
* @param query
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/list")
|
||||
R<PageResult<OrgConfigResponse>> list(OrgConfigQueryRequest query);
|
||||
|
||||
/**
|
||||
* 查询详细
|
||||
*
|
||||
* @param configId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(PREFIX_PATH + "/detail")
|
||||
R<OrgConfigResponse> queryDetail(@RequestParam("configId") Long configId);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/add")
|
||||
R<Object> add(OrgConfigAddRequest dto);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/edit")
|
||||
R<Object> edit(OrgConfigEditRequest dto);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param configId
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/delete")
|
||||
R<Object> delete(@RequestParam("configId") Long configId);
|
||||
|
||||
|
||||
@GetMapping(PREFIX_PATH + "/getOrgCfg")
|
||||
R<List<OrgConfigResponse>> getConfig(@RequestParam("orgCode") String orgCode);
|
||||
}
|
||||
@ -0,0 +1,108 @@
|
||||
package com.jiuyv.sptcc.agile.dataservice.api.console;
|
||||
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.request.console.OrgApiAuthRequest;
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.request.org.*;
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.response.console.OrgApiAuthVo;
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.response.org.OrgInfoResp;
|
||||
import com.jiuyv.sptccc.agile.common.core.domain.R;
|
||||
import com.jiuyv.sptccc.agile.common.core.page.PageResult;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
/**
|
||||
* 机构管控台服务接口
|
||||
*
|
||||
* @ClassName : OrgInfoApi
|
||||
* @Description :
|
||||
* @Author : sky
|
||||
* @Date: 2023-09-07 15:51
|
||||
*/
|
||||
public interface OrgInfoConsoleApi {
|
||||
|
||||
String PREFIX_PATH = "/public/agile-data/orgInfo";
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param query
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/list")
|
||||
R<PageResult<OrgInfoResp>> list(OrgInfoQueryReq query);
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*
|
||||
* @param orgNo
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(PREFIX_PATH + "/detail")
|
||||
R<OrgInfoResp> getInfo(@RequestParam("orgNo") String orgNo);
|
||||
|
||||
/**
|
||||
* 新增接口
|
||||
*
|
||||
* @param addReq
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/add")
|
||||
R<Object> add(OrgInfoAddReq addReq);
|
||||
|
||||
/**
|
||||
* 编辑接口
|
||||
*
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/edit")
|
||||
R<Object> edit(OrgInfoEditReq request);
|
||||
|
||||
/**
|
||||
* 删除接口
|
||||
*
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/remove")
|
||||
R<Object> remove(OrgDelReq request);
|
||||
|
||||
/**
|
||||
* 启用机构
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/run")
|
||||
R<Object> run(OrgInfoStatusReq request);
|
||||
|
||||
/**
|
||||
* 停用机构
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/stop")
|
||||
R<Object> stop(OrgInfoStatusReq request);
|
||||
|
||||
/**
|
||||
* 获取密钥
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(PREFIX_PATH + "/key")
|
||||
R<String> getGenerateKeyHex();
|
||||
|
||||
/**
|
||||
* 授权
|
||||
*
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/auth")
|
||||
R<Object> orgApiAuth(OrgApiAuthRequest request);
|
||||
|
||||
/**
|
||||
* 获取权限信息
|
||||
*
|
||||
* @param orgNo
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(PREFIX_PATH + "/auth/list")
|
||||
R<OrgApiAuthVo> orgApiAuthInfo(@RequestParam("orgNo") String orgNo);
|
||||
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
package com.jiuyv.sptcc.agile.dataservice.api.console;
|
||||
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.request.api.ApiUserRequest;
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.request.org.OrgStatisticsQueryReq;
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.response.api.DataApiStatisticsResponse;
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.response.console.OrgStatisticsVo;
|
||||
import com.jiuyv.sptccc.agile.common.core.domain.R;
|
||||
import com.jiuyv.sptccc.agile.common.core.page.PageResult;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
|
||||
/**
|
||||
* 机构接口调用次数统计
|
||||
*
|
||||
* @ClassName : OrgStcsConsoleApi
|
||||
* @Author : sky
|
||||
* @Date: 2023-09-07 16:02
|
||||
*/
|
||||
public interface OrgStcsConsoleApi {
|
||||
|
||||
String PREFIX_PATH = "/public/agile-data/orgStcs";
|
||||
|
||||
@PostMapping(PREFIX_PATH + "/list")
|
||||
R<PageResult<OrgStatisticsVo>> queryByPage(OrgStatisticsQueryReq request);
|
||||
|
||||
/**
|
||||
* 查询用户接口调用统计列表
|
||||
*
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/userApiStatistics")
|
||||
R<PageResult<DataApiStatisticsResponse>> getUserApiStatistics(ApiUserRequest request);
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
package com.jiuyv.sptcc.agile.dataservice.api.portal;
|
||||
|
||||
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.request.api.ApiUserRequest;
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.response.api.DataApiResponse;
|
||||
import com.jiuyv.sptccc.agile.common.core.domain.R;
|
||||
import com.jiuyv.sptccc.agile.common.core.page.PageResult;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
|
||||
public interface DataApiFeignApi {
|
||||
|
||||
String PREFIX_PATH = "/public/agile-data/agileApi";
|
||||
|
||||
/**
|
||||
* 查询用户接口列表
|
||||
*
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/userApiList")
|
||||
R<PageResult<DataApiResponse>> getUserApiList(ApiUserRequest request);
|
||||
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
package com.jiuyv.sptcc.agile.dataservice.api.portal;
|
||||
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
|
||||
/**
|
||||
* @ClassName : SdkDownload
|
||||
* @Description :
|
||||
* @Author : sky
|
||||
* @Date: 2023-09-21 10:42
|
||||
*/
|
||||
public interface SdkDownload {
|
||||
|
||||
String PREFIX_PATH = "/public/agile-data/port";
|
||||
|
||||
/**
|
||||
* sdk 文件下载
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(PREFIX_PATH + "/download/sdk")
|
||||
ResponseEntity<byte[]> download();
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package com.jiuyv.sptcc.agile.dataservice.api.product;
|
||||
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.request.product.DownLoadRequest;
|
||||
import feign.Response;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
|
||||
/**
|
||||
* sftp文件下载
|
||||
*
|
||||
* @ClassName : DownloadApi
|
||||
* @Description :
|
||||
* @Author : sky
|
||||
* @Date: 2023-09-13 13:21
|
||||
*/
|
||||
public interface DownloadApi {
|
||||
|
||||
String PREFIX_PATH = "/public/agile-data/product";
|
||||
|
||||
@PostMapping(PREFIX_PATH + "/download")
|
||||
Response download(DownLoadRequest request) throws IOException;
|
||||
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package com.jiuyv.sptcc.agile.dataservice.api.product;
|
||||
|
||||
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.request.product.LineInfoReq;
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.request.product.LineStationInfoReq;
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.response.product.LineInfoRes;
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.response.product.LineStationInfoRes;
|
||||
import com.jiuyv.sptccc.agile.common.core.domain.R;
|
||||
import com.jiuyv.sptccc.agile.common.core.page.PageResult;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 线路站点基础信息表
|
||||
*
|
||||
* @ClassName : LineInfoApi
|
||||
* @Description :
|
||||
* @Author : sky
|
||||
* @Date: 2023-09-19 18:51
|
||||
*/
|
||||
public interface LineInfoApi {
|
||||
|
||||
String PREFIX_PATH = "/public/agile-data/lineInfo";
|
||||
|
||||
/**
|
||||
* 获取列表信息
|
||||
*
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/list")
|
||||
R<PageResult<LineInfoRes>> list(LineInfoReq request);
|
||||
|
||||
|
||||
/**
|
||||
* 根据线路名称获取线路编码
|
||||
*
|
||||
* @param lineName
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(PREFIX_PATH + "/detail")
|
||||
R<LineInfoRes> detail(@RequestParam("lineName") String lineName);
|
||||
|
||||
|
||||
/**
|
||||
* 获取站点列表信息
|
||||
*
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/stationList")
|
||||
R<List<LineStationInfoRes>> stationList(LineStationInfoReq request);
|
||||
|
||||
|
||||
/**
|
||||
* 根据站点名称获取站点信息
|
||||
*
|
||||
* @param lineName
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(PREFIX_PATH + "/stationDetail")
|
||||
R<LineStationInfoRes> stationDetail(@RequestParam("lineName") String lineName);
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package com.jiuyv.sptcc.agile.dataservice.api.product;
|
||||
|
||||
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.request.product.LineDayPageReq;
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.request.product.gateway.LineDayReqRequest;
|
||||
import com.jiuyv.sptcc.agile.dataservice.dto.response.product.LineDayPageRes;
|
||||
import com.jiuyv.sptccc.agile.common.core.domain.R;
|
||||
import com.jiuyv.sptccc.agile.common.core.page.PageResult;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
|
||||
/**
|
||||
* @ClassName : LineMetricDay
|
||||
* @Description :
|
||||
* @Author : sky
|
||||
* @Date: 2023-09-18 15:17
|
||||
*/
|
||||
public interface LineMetricDayApi {
|
||||
|
||||
String PREFIX_PATH = "/public/agile-data/lineDay";
|
||||
|
||||
/**
|
||||
* 获取列表信息
|
||||
*
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/list")
|
||||
R<PageResult<LineDayPageRes>> list(LineDayPageReq request);
|
||||
|
||||
|
||||
/**
|
||||
* 机构获取线路日客流量
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(PREFIX_PATH + "/page")
|
||||
R<PageResult<LineDayPageRes>> page(LineDayReqRequest request);
|
||||
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue