添加外部接口对接
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
|||||||
|
package com.jero.modules.docking.api.constans;
|
||||||
|
|
||||||
|
public class ApiConstants {
|
||||||
|
private ApiConstants(){}
|
||||||
|
/**
|
||||||
|
* 生效
|
||||||
|
*/
|
||||||
|
public static final String STATUS_1 = "1";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 作废
|
||||||
|
*/
|
||||||
|
public static final String STATUS_2 = "2";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 奇瑞型号
|
||||||
|
*/
|
||||||
|
public static final String FORM_TYPE1 = "1";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是
|
||||||
|
*/
|
||||||
|
public static final String PART_YES = "1";
|
||||||
|
|
||||||
|
}
|
||||||
+15
@@ -0,0 +1,15 @@
|
|||||||
|
package com.jero.modules.docking.api.controller;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
|
||||||
|
@Api(tags = "业务支持-关键零部件型号库")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/laws/LawsSysApiInfo")
|
||||||
|
@Slf4j
|
||||||
|
public class LawsSysApiInfoController {
|
||||||
|
|
||||||
|
}
|
||||||
+47
@@ -0,0 +1,47 @@
|
|||||||
|
package com.jero.modules.docking.api.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 系统对接信息
|
||||||
|
*
|
||||||
|
* @TableName laws_sys_api_info
|
||||||
|
*/
|
||||||
|
@TableName(value ="laws_sys_api_info")
|
||||||
|
@Data
|
||||||
|
public class LawsSysApiInfo implements Serializable {
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "主键")
|
||||||
|
private String id;
|
||||||
|
/**
|
||||||
|
* 系统中文名称
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "系统中文名称")
|
||||||
|
private String sysName;
|
||||||
|
/**
|
||||||
|
* 系统唯一标识
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "系统唯一标识")
|
||||||
|
private String sysCode;
|
||||||
|
/**
|
||||||
|
* 系统的key值
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "系统的key值")
|
||||||
|
private String appKey;
|
||||||
|
/**
|
||||||
|
* 系统对应秘钥
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "系统对应秘钥")
|
||||||
|
private String secret;
|
||||||
|
/**
|
||||||
|
* IP白名单
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "IP白名单")
|
||||||
|
private String ip;
|
||||||
|
}
|
||||||
+12
@@ -0,0 +1,12 @@
|
|||||||
|
package com.jero.modules.docking.api.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.jero.modules.docking.api.entity.LawsSysApiInfo;
|
||||||
|
|
||||||
|
|
||||||
|
public interface LawsSysApiInfoMapper extends BaseMapper<LawsSysApiInfo> {
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
+44
@@ -0,0 +1,44 @@
|
|||||||
|
<?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.jero.modules.laws.part.mapper.LawsPartTypeMapper">
|
||||||
|
|
||||||
|
<select id="pageList" resultType="com.jero.modules.docking.api.entity.LawsSysApiInfo">
|
||||||
|
select
|
||||||
|
l1.reg_part_name_en,
|
||||||
|
l1.reg_part_name_cn,
|
||||||
|
l1.form_type,
|
||||||
|
l1.system_code,
|
||||||
|
l1.decision_requirement,
|
||||||
|
l1.classification,
|
||||||
|
l1.applicable_market,
|
||||||
|
l1.parts_certified_deliverables,
|
||||||
|
l1.responsible_department,
|
||||||
|
l1.responsible_module,
|
||||||
|
l1.remark,
|
||||||
|
l1.fnd_gpc,
|
||||||
|
l1.id,
|
||||||
|
l1.part_num,
|
||||||
|
l1.part_relevance_id,
|
||||||
|
l1.part_name,
|
||||||
|
l1.production_factory,
|
||||||
|
l1.applicable_vehicle_type,
|
||||||
|
l1.technical_feature,
|
||||||
|
l1.already_part_num_id,
|
||||||
|
l1.already_part_num,
|
||||||
|
l1.status,
|
||||||
|
l1.success_time,
|
||||||
|
l1.part_relevance_type,
|
||||||
|
l1.replace_part_num,
|
||||||
|
l1.create_by,
|
||||||
|
l1.last_id,
|
||||||
|
l1.create_time,
|
||||||
|
s3.id as dep_id
|
||||||
|
from laws_part_type l1
|
||||||
|
left join sys_user s1 on s1.username = l1.create_by
|
||||||
|
left join sys_user_depart s2 on s2.user_id = s1.id
|
||||||
|
left join sys_depart s3 on s3.id = s2.dep_id
|
||||||
|
${ew.customSqlSegment}
|
||||||
|
</select>
|
||||||
|
</mapper>
|
||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
package com.jero.modules.docking.api.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.jero.modules.docking.api.entity.LawsSysApiInfo;
|
||||||
|
|
||||||
|
public interface ILawsSysApiInfoService extends IService<LawsSysApiInfo> {
|
||||||
|
|
||||||
|
}
|
||||||
+20
@@ -0,0 +1,20 @@
|
|||||||
|
package com.jero.modules.docking.api.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.jero.modules.docking.api.entity.LawsSysApiInfo;
|
||||||
|
import com.jero.modules.docking.api.mapper.LawsSysApiInfoMapper;
|
||||||
|
import com.jero.modules.docking.api.service.ILawsSysApiInfoService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@Slf4j
|
||||||
|
public class LawsSysApiInfoServiceImpl extends ServiceImpl<LawsSysApiInfoMapper, LawsSysApiInfo>
|
||||||
|
implements ILawsSysApiInfoService {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user