Răsfoiți Sursa

车型查询配置修改

wks 2 ani în urmă
părinte
comite
b28246a05f

+ 36 - 0
src/main/java/com/ydtech/modules/admin/controller/SysQueryVehicleConfigController.java

@@ -0,0 +1,36 @@
+package com.ydtech.modules.admin.controller;
+
+
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.ydtech.core.page.HttpResult;
+import com.ydtech.modules.admin.model.po.SysQuotationTheme;
+import com.ydtech.modules.admin.model.vo.SysQueryVehicleConfigSaveVo;
+import com.ydtech.modules.admin.model.vo.SysQuotationThemeVo;
+import com.ydtech.modules.admin.service.SysQueryVehicleConfigService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.RequiredArgsConstructor;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+@RequestMapping("/sys/vehicleConfig")
+@RequiredArgsConstructor
+@Api(tags = "车型查询配置")
+public class SysQueryVehicleConfigController {
+
+    private final SysQueryVehicleConfigService sysQueryVehicleConfigService;
+
+    @ApiOperation(value = "车险查询配置")
+    @PostMapping
+    public HttpResult<Page<SysQuotationTheme>> disposition(@RequestBody SysQueryVehicleConfigSaveVo sysQueryVehicleConfigSaveVo) {
+        sysQueryVehicleConfigService.disposition(sysQueryVehicleConfigSaveVo);
+        return HttpResult.ok();
+    }
+
+
+
+
+}

+ 18 - 0
src/main/java/com/ydtech/modules/admin/dao/SysQueryVehicleConfigMapper.java

@@ -0,0 +1,18 @@
+package com.ydtech.modules.admin.dao;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.ydtech.modules.admin.model.po.SysQueryVehicleConfig;
+
+/**
+* @author Administrator
+* @description 针对表【sys_query_vehicle_config(车型查询配置信息)】的数据库操作Mapper
+* @createDate 2024-08-16 10:20:52
+* @Entity generator.domain.SysQueryVehicleConfig
+*/
+public interface SysQueryVehicleConfigMapper extends BaseMapper<SysQueryVehicleConfig> {
+
+}
+
+
+
+

+ 18 - 0
src/main/java/com/ydtech/modules/admin/dao/SysQueryVehicleUrlMapper.java

@@ -0,0 +1,18 @@
+package com.ydtech.modules.admin.dao;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import generator.domain.SysQueryVehicleUrl;
+
+/**
+* @author Administrator
+* @description 针对表【sys_query_vehicle_url(配置链接)】的数据库操作Mapper
+* @createDate 2024-08-16 10:20:52
+* @Entity generator.domain.SysQueryVehicleUrl
+*/
+public interface SysQueryVehicleUrlMapper extends BaseMapper<SysQueryVehicleUrl> {
+
+}
+
+
+
+

+ 115 - 0
src/main/java/com/ydtech/modules/admin/model/po/SysQueryVehicleConfig.java

@@ -0,0 +1,115 @@
+package com.ydtech.modules.admin.model.po;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * 车型查询配置信息
+ * @TableName sys_query_vehicle_config
+ */
+@TableName(value ="sys_query_vehicle_config")
+@Data
+public class SysQueryVehicleConfig implements Serializable {
+    /**
+     * id 主键
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Integer id;
+
+    /**
+     * 保险公司id
+     */
+    @TableField(value = "company_id")
+    private String companyId;
+
+    /**
+     * 保险公司名称
+     */
+    @TableField(value = "company_name")
+    private String companyName;
+
+    /**
+     * 请求地址
+     */
+    @TableField(value = "url")
+    private String url;
+
+    /**
+     * 是否开启 0 开启 1 未开启
+     */
+    @TableField(value = "enabled")
+    private Integer enabled;
+
+    /**
+     * 保险公司核心用户名
+     */
+    @TableField(value = "username")
+    private String username;
+
+    /**
+     * 保险公司核心密码
+     */
+    @TableField(value = "password")
+    private String password;
+
+    @TableField(exist = false)
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        SysQueryVehicleConfig other = (SysQueryVehicleConfig) that;
+        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+            && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
+            && (this.getCompanyName() == null ? other.getCompanyName() == null : this.getCompanyName().equals(other.getCompanyName()))
+            && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()))
+            && (this.getEnabled() == null ? other.getEnabled() == null : this.getEnabled().equals(other.getEnabled()))
+            && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
+            && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
+        result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
+        result = prime * result + ((getCompanyName() == null) ? 0 : getCompanyName().hashCode());
+        result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
+        result = prime * result + ((getEnabled() == null) ? 0 : getEnabled().hashCode());
+        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
+        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
+        return result;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", id=").append(id);
+        sb.append(", companyId=").append(companyId);
+        sb.append(", companyName=").append(companyName);
+        sb.append(", url=").append(url);
+        sb.append(", enabled=").append(enabled);
+        sb.append(", username=").append(username);
+        sb.append(", password=").append(password);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 88 - 0
src/main/java/com/ydtech/modules/admin/model/po/SysQueryVehicleUrl.java

@@ -0,0 +1,88 @@
+package com.ydtech.modules.admin.model.po;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * 配置链接
+ * @TableName sys_query_vehicle_url
+ */
+@TableName(value ="sys_query_vehicle_url")
+@Data
+public class SysQueryVehicleUrl implements Serializable {
+    /**
+     * id 主键
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Integer id;
+
+    /**
+     * 配置类型
+     */
+    @TableField(value = "type")
+    private Integer type;
+
+    /**
+     * 请求路劲
+     */
+    @TableField(value = "link")
+    private String link;
+
+    /**
+     * 配置id
+     */
+    @TableField(value = "config_id")
+    private Integer configId;
+
+    @TableField(exist = false)
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        SysQueryVehicleUrl other = (SysQueryVehicleUrl) that;
+        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
+            && (this.getLink() == null ? other.getLink() == null : this.getLink().equals(other.getLink()))
+            && (this.getConfigId() == null ? other.getConfigId() == null : this.getConfigId().equals(other.getConfigId()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
+        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
+        result = prime * result + ((getLink() == null) ? 0 : getLink().hashCode());
+        result = prime * result + ((getConfigId() == null) ? 0 : getConfigId().hashCode());
+        return result;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", id=").append(id);
+        sb.append(", type=").append(type);
+        sb.append(", link=").append(link);
+        sb.append(", configId=").append(configId);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 64 - 0
src/main/java/com/ydtech/modules/admin/model/vo/SysQueryVehicleConfigSaveVo.java

@@ -0,0 +1,64 @@
+package com.ydtech.modules.admin.model.vo;
+
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.ydtech.modules.admin.model.po.SysQueryVehicleConfig;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.util.List;
+
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@ApiModel("车型查询配置实体")
+public class SysQueryVehicleConfigSaveVo {
+
+    @ApiModelProperty("车型查询配置实体")
+    private SysQueryVehicleConfigDTO sysQueryVehicleConfigDTO;
+
+    @ApiModelProperty("请求地址配置实体")
+    private List<SysQueryVehicleUrlDTO> sysQueryVehicleUrlDTOList;
+
+    @Data
+    @NoArgsConstructor
+    @AllArgsConstructor
+    public static class SysQueryVehicleConfigDTO {
+
+        @ApiModelProperty("保险公司id")
+        private String companyId;
+
+        @ApiModelProperty("保险公司名称")
+        private String companyName;
+
+        @ApiModelProperty("请求地址")
+        private String url;
+
+        @ApiModelProperty("是否开启 0 开启 1 未开启")
+        private Integer enabled;
+
+        @ApiModelProperty("保险公司核心用户名")
+        private String username;
+
+        @ApiModelProperty("保险公司核心密码")
+        private String password;
+
+    }
+
+    @Data
+    @NoArgsConstructor
+    @AllArgsConstructor
+    public static class SysQueryVehicleUrlDTO {
+
+        @ApiModelProperty("配置类型")
+        private Integer type;
+
+        @ApiModelProperty("请求路劲")
+        private String link;
+
+    }
+
+}

+ 20 - 0
src/main/java/com/ydtech/modules/admin/service/SysQueryVehicleConfigService.java

@@ -0,0 +1,20 @@
+package com.ydtech.modules.admin.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.ydtech.modules.admin.model.po.SysQueryVehicleConfig;
+import com.ydtech.modules.admin.model.vo.SysQueryVehicleConfigSaveVo;
+
+/**
+ * @author Administrator
+ * @description 针对表【sys_query_vehicle_config(车型查询配置信息)】的数据库操作Service
+ * @createDate 2024-08-16 10:20:52
+ */
+public interface SysQueryVehicleConfigService extends IService<SysQueryVehicleConfig> {
+
+    /**
+     * 配置
+     *
+     * @param sysQueryVehicleConfigSaveVo 车型查询配置实体
+     */
+    void disposition(SysQueryVehicleConfigSaveVo sysQueryVehicleConfigSaveVo);
+}

+ 13 - 0
src/main/java/com/ydtech/modules/admin/service/SysQueryVehicleUrlService.java

@@ -0,0 +1,13 @@
+package com.ydtech.modules.admin.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.ydtech.modules.admin.model.po.SysQueryVehicleUrl;
+
+/**
+* @author Administrator
+* @description 针对表【sys_query_vehicle_url(配置链接)】的数据库操作Service
+* @createDate 2024-08-16 10:20:52
+*/
+public interface SysQueryVehicleUrlService extends IService<SysQueryVehicleUrl> {
+
+}

+ 27 - 0
src/main/java/com/ydtech/modules/admin/service/impl/SysQueryVehicleConfigServiceImpl.java

@@ -0,0 +1,27 @@
+package com.ydtech.modules.admin.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.ydtech.modules.admin.dao.SysQueryVehicleConfigMapper;
+import com.ydtech.modules.admin.model.po.SysQueryVehicleConfig;
+import com.ydtech.modules.admin.model.vo.SysQueryVehicleConfigSaveVo;
+import com.ydtech.modules.admin.service.SysQueryVehicleConfigService;
+import org.springframework.stereotype.Service;
+
+/**
+* @author Administrator
+* @description 针对表【sys_query_vehicle_config(车型查询配置信息)】的数据库操作Service实现
+* @createDate 2024-08-16 10:20:52
+*/
+@Service
+public class SysQueryVehicleConfigServiceImpl extends ServiceImpl<SysQueryVehicleConfigMapper, SysQueryVehicleConfig>
+    implements SysQueryVehicleConfigService {
+
+    @Override
+    public void disposition(SysQueryVehicleConfigSaveVo sysQueryVehicleConfigSaveVo) {
+
+    }
+}
+
+
+
+

+ 22 - 0
src/main/java/com/ydtech/modules/admin/service/impl/SysQueryVehicleUrlServiceImpl.java

@@ -0,0 +1,22 @@
+package com.ydtech.modules.admin.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.ydtech.modules.admin.dao.SysQueryVehicleUrlMapper;
+import com.ydtech.modules.admin.model.po.SysQueryVehicleUrl;
+import com.ydtech.modules.admin.service.SysQueryVehicleUrlService;
+import org.springframework.stereotype.Service;
+
+/**
+* @author Administrator
+* @description 针对表【sys_query_vehicle_url(配置链接)】的数据库操作Service实现
+* @createDate 2024-08-16 10:20:52
+*/
+@Service
+public class SysQueryVehicleUrlServiceImpl extends ServiceImpl<SysQueryVehicleUrlMapper, SysQueryVehicleUrl>
+    implements SysQueryVehicleUrlService {
+
+}
+
+
+
+

+ 23 - 0
src/main/resources/mapper/modules/admin/SysQueryVehicleConfigMapper.xml

@@ -0,0 +1,23 @@
+<?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.ydtech.modules.admin.dao.SysQueryVehicleConfigMapper">
+
+    <resultMap id="BaseResultMap" type="com.ydtech.modules.admin.model.po.SysQueryVehicleConfig">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="companyId" column="company_id" jdbcType="VARCHAR"/>
+            <result property="companyName" column="company_name" jdbcType="VARCHAR"/>
+            <result property="url" column="url" jdbcType="VARCHAR"/>
+            <result property="enabled" column="enabled" jdbcType="TINYINT"/>
+            <result property="username" column="username" jdbcType="VARCHAR"/>
+            <result property="password" column="password" jdbcType="VARCHAR"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,company_id,company_name,
+        url,enabled,username,
+        password
+    </sql>
+
+</mapper>

+ 18 - 0
src/main/resources/mapper/modules/admin/SysQueryVehicleUrlMapper.xml

@@ -0,0 +1,18 @@
+<?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="generator.mapper.SysQueryVehicleUrlMapper">
+
+    <resultMap id="BaseResultMap" type="generator.domain.SysQueryVehicleUrl">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="type" column="type" jdbcType="INTEGER"/>
+            <result property="link" column="link" jdbcType="VARCHAR"/>
+            <result property="configId" column="config_id" jdbcType="INTEGER"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,type,link,
+        config_id
+    </sql>
+</mapper>