Commit 08eaa9d457344129d907b4dc79c4aab47a303dfb

Authored by xingyk
1 parent 2a976bac

1.修改企业信息表实体大消息不匹配。2.增加配置schema

ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/domain/EnterpriseInfo.java
... ... @@ -16,6 +16,7 @@ import com.ruoyi.common.annotation.Excel;
16 16 */
17 17 @Data
18 18 public class EnterpriseInfo extends BaseEntity {
  19 +
19 20 private static final long serialVersionUID = 1L;
20 21  
21 22 /** 主键 */
... ... @@ -27,36 +28,36 @@ public class EnterpriseInfo extends BaseEntity {
27 28  
28 29 /** 统一社会信用代码 */
29 30 @Excel(name = "统一社会信用代码")
30   - private String creditcode;
  31 + private String creditCode;
31 32  
32 33 /** 法人 */
33 34 @Excel(name = "法人")
34   - private String legalpersonname;
  35 + private String legalpersonName;
35 36  
36 37 /** 成立日期 */
37 38 @JsonFormat(pattern = "yyyy-MM-dd")
38 39 @Excel(name = "成立日期", width = 30, dateFormat = "yyyy-MM-dd")
39   - private Date estiblishtime;
  40 + private Date estiblishTime;
40 41  
41 42 /** 注册资本 */
42 43 @Excel(name = "注册资本")
43   - private String regcapital;
  44 + private String regCapital;
44 45  
45 46 /** 货币单位 */
46 47 @Excel(name = "货币单位")
47   - private String reginstitute;
  48 + private String regInstitute;
48 49  
49 50 /** 注册状态 */
50 51 @Excel(name = "注册状态")
51   - private String regstatus;
  52 + private String regStatus;
52 53  
53 54 /** 经营范围 */
54 55 @Excel(name = "经营范围")
55   - private String businessscope;
  56 + private String businessScope;
56 57  
57 58 /** 详细地址 */
58 59 @Excel(name = "详细地址")
59   - private String enterpriseaddress;
  60 + private String enterpriseAddress;
60 61  
61 62 /** 行业门类 */
62 63 @Excel(name = "行业门类")
... ... @@ -64,19 +65,19 @@ public class EnterpriseInfo extends BaseEntity {
64 65  
65 66 /** 注册城市 */
66 67 @Excel(name = "注册城市")
67   - private String reglocation;
  68 + private String regLocation;
68 69  
69 70 /** 数据状态 */
70 71 @Excel(name = "数据状态")
71   - private String datastatus;
  72 + private String dataStatus;
72 73  
73 74 /** 信用评分 */
74 75 @Excel(name = "信用评分")
75   - private String creditfraction;
  76 + private String creditFraction;
76 77  
77 78 /** 信用级别 */
78 79 @Excel(name = "信用级别")
79   - private String creditlevel;
  80 + private String creditLevel;
80 81  
81 82  
82 83 }
... ...
ruoyi-admin/src/main/resources/application-druid.yml
... ... @@ -6,7 +6,7 @@ spring:
6 6 druid:
7 7 # 主库数据源
8 8 master:
9   - url: jdbc:postgresql://192.168.1.157:15432/lhzx_nx?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=Asia/Shanghai
  9 + url: jdbc:postgresql://192.168.1.157:15432/lhzx_nx?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=Asia/Shanghai&currentSchema=credit_nx
10 10 username: lhzx
11 11 password: lhzx@2025
12 12 # 从库数据源
... ...
ruoyi-admin/src/main/resources/mapper/EnterpriseInfoMapper.xml
... ... @@ -7,46 +7,44 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
7 7 <resultMap type="EnterpriseInfo" id="EnterpriseInfoResult">
8 8 <result property="id" column="id" />
9 9 <result property="ename" column="ename" />
10   - <result property="creditcode" column="creditcode" />
11   - <result property="legalpersonname" column="legalpersonname" />
12   - <result property="estiblishtime" column="estiblishtime" />
13   - <result property="regcapital" column="regcapital" />
14   - <result property="reginstitute" column="reginstitute" />
15   - <result property="regstatus" column="regstatus" />
16   - <result property="businessscope" column="businessscope" />
17   - <result property="enterpriseaddress" column="enterpriseaddress" />
  10 + <result property="creditCode" column="credit_code" />
  11 + <result property="legalpersonName" column="legalperson_name" />
  12 + <result property="estiblishTime" column="estiblish_time" />
  13 + <result property="regCapital" column="reg_capital" />
  14 + <result property="regInstitute" column="reg_institute" />
  15 + <result property="regStatus" column="reg_status" />
  16 + <result property="businessScope" column="business_scope" />
  17 + <result property="enterpriseAddress" column="enterprise_address" />
18 18 <result property="menlei" column="menlei" />
19   - <result property="reglocation" column="reglocation" />
20   - <result property="datastatus" column="datastatus" />
21   - <result property="creditfraction" column="creditfraction" />
22   - <result property="creditlevel" column="creditlevel" />
23   - <result property="createTime" column="createtime" />
24   - <result property="updateTime" column="updatetime" />
  19 + <result property="regLocation" column="reg_location" />
  20 + <result property="dataStatus" column="data_status" />
  21 + <result property="creditFraction" column="credit_fraction" />
  22 + <result property="creditLevel" column="credit_level" />
  23 + <result property="createTime" column="create_time" />
  24 + <result property="updateTime" column="update_time" />
25 25 </resultMap>
26 26  
27 27 <sql id="selectEnterpriseInfoVo">
28   - select id, ename, creditcode, legalpersonname, estiblishtime, regcapital, reginstitute, regstatus, businessscope, enterpriseaddress, menlei, reglocation, datastatus, creditfraction, creditlevel, createtime, updatetime from enterprise_info
  28 + select id, ename, credit_code, legalperson_name, estiblish_time, reg_capital, reg_institute, reg_status, business_scope, enterprise_address, menlei, reg_location, data_status, credit_fraction, credit_level, create_time, update_time from enterprise_info
29 29 </sql>
30 30  
31 31 <select id="selectEnterpriseInfoList" parameterType="EnterpriseInfo" resultMap="EnterpriseInfoResult">
32 32 <include refid="selectEnterpriseInfoVo"/>
33 33 <where>
34 34 <if test="ename != null and ename != ''"> and ename like concat('%', #{ename}, '%')</if>
35   - <if test="creditcode != null and creditcode != ''"> and creditcode = #{creditcode}</if>
36   - <if test="legalpersonname != null and legalpersonname != ''"> and legalpersonname like concat('%', #{legalpersonname}, '%')</if>
37   - <if test="estiblishtime != null "> and estiblishtime = #{estiblishtime}</if>
38   - <if test="regcapital != null and regcapital != ''"> and regcapital = #{regcapital}</if>
39   - <if test="reginstitute != null and reginstitute != ''"> and reginstitute = #{reginstitute}</if>
40   - <if test="regstatus != null and regstatus != ''"> and regstatus = #{regstatus}</if>
41   - <if test="businessscope != null and businessscope != ''"> and businessscope = #{businessscope}</if>
42   - <if test="enterpriseaddress != null and enterpriseaddress != ''"> and enterpriseaddress = #{enterpriseaddress}</if>
  35 + <if test="creditCode != null and creditCode != ''"> and credit_code = #{creditCode}</if>
  36 + <if test="legalpersonName != null and legalpersonName != ''"> and legalperson_name like concat('%', #{legalpersonName}, '%')</if>
  37 + <if test="estiblishTime != null "> and estiblish_time = #{estiblishTime}</if>
  38 + <if test="regCapital != null and regCapital != ''"> and reg_capital = #{regCapital}</if>
  39 + <if test="regInstitute != null and regInstitute != ''"> and reg_institute = #{regInstitute}</if>
  40 + <if test="regStatus != null and regStatus != ''"> and reg_status = #{regStatus}</if>
  41 + <if test="businessScope != null and businessScope != ''"> and business_scope = #{businessScope}</if>
  42 + <if test="enterpriseAddress != null and enterpriseAddress != ''"> and enterprise_address = #{enterpriseAddress}</if>
43 43 <if test="menlei != null and menlei != ''"> and menlei = #{menlei}</if>
44   - <if test="reglocation != null and reglocation != ''"> and reglocation = #{reglocation}</if>
45   - <if test="datastatus != null and datastatus != ''"> and datastatus = #{datastatus}</if>
46   - <if test="creditfraction != null and creditfraction != ''"> and creditfraction = #{creditfraction}</if>
47   - <if test="creditlevel != null and creditlevel != ''"> and creditlevel = #{creditlevel}</if>
48   - <if test="createtime != null and createtime != ''"> and createtime = #{createtime}</if>
49   - <if test="updatetime != null and updatetime != ''"> and updatetime = #{updatetime}</if>
  44 + <if test="regLocation != null and regLocation != ''"> and reg_location = #{regLocation}</if>
  45 + <if test="dataStatus != null and dataStatus != ''"> and data_status = #{dataStatus}</if>
  46 + <if test="creditFraction != null and creditFraction != ''"> and credit_fraction = #{creditFraction}</if>
  47 + <if test="creditLevel != null and creditLevel != ''"> and credit_level = #{creditLevel}</if>
50 48 </where>
51 49 </select>
52 50  
... ... @@ -58,40 +56,40 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
58 56 <trim prefix="(" suffix=")" suffixOverrides=",">
59 57 <if test="id != null">id,</if>
60 58 <if test="ename != null">ename,</if>
61   - <if test="creditcode != null">creditcode,</if>
62   - <if test="legalpersonname != null">legalpersonname,</if>
63   - <if test="estiblishtime != null">estiblishtime,</if>
64   - <if test="regcapital != null">regcapital,</if>
65   - <if test="reginstitute != null">reginstitute,</if>
66   - <if test="regstatus != null">regstatus,</if>
67   - <if test="businessscope != null">businessscope,</if>
68   - <if test="enterpriseaddress != null">enterpriseaddress,</if>
  59 + <if test="creditCode != null">credit_code,</if>
  60 + <if test="legalpersonName != null">legalperson_name,</if>
  61 + <if test="estiblishTime != null">estiblish_time,</if>
  62 + <if test="regCapital != null">reg_capital,</if>
  63 + <if test="regInstitute != null">reg_institute,</if>
  64 + <if test="regStatus != null">reg_status,</if>
  65 + <if test="businessScope != null">business_scope,</if>
  66 + <if test="enterpriseAddress != null">enterprise_address,</if>
69 67 <if test="menlei != null">menlei,</if>
70   - <if test="reglocation != null">reglocation,</if>
71   - <if test="datastatus != null">datastatus,</if>
72   - <if test="creditfraction != null">creditfraction,</if>
73   - <if test="creditlevel != null">creditlevel,</if>
74   - <if test="createtime != null">createtime,</if>
75   - <if test="updatetime != null">updatetime,</if>
  68 + <if test="regLocation != null">reg_location,</if>
  69 + <if test="dataStatus != null">data_status,</if>
  70 + <if test="creditFraction != null">credit_fraction,</if>
  71 + <if test="creditLevel != null">credit_level,</if>
  72 + <if test="createTime != null">create_time,</if>
  73 + <if test="updateTime != null">update_time,</if>
76 74 </trim>
77 75 <trim prefix="values (" suffix=")" suffixOverrides=",">
78 76 <if test="id != null">#{id},</if>
79 77 <if test="ename != null">#{ename},</if>
80   - <if test="creditcode != null">#{creditcode},</if>
81   - <if test="legalpersonname != null">#{legalpersonname},</if>
82   - <if test="estiblishtime != null">#{estiblishtime},</if>
83   - <if test="regcapital != null">#{regcapital},</if>
84   - <if test="reginstitute != null">#{reginstitute},</if>
85   - <if test="regstatus != null">#{regstatus},</if>
86   - <if test="businessscope != null">#{businessscope},</if>
87   - <if test="enterpriseaddress != null">#{enterpriseaddress},</if>
  78 + <if test="creditCode != null">#{creditCode},</if>
  79 + <if test="legalpersonName != null">#{legalpersonName},</if>
  80 + <if test="estiblishTime != null">#{estiblishTime},</if>
  81 + <if test="regCapital != null">#{regCapital},</if>
  82 + <if test="regInstitute != null">#{regInstitute},</if>
  83 + <if test="regStatus != null">#{regStatus},</if>
  84 + <if test="businessScope != null">#{businessScope},</if>
  85 + <if test="enterpriseAddress != null">#{enterpriseAddress},</if>
88 86 <if test="menlei != null">#{menlei},</if>
89   - <if test="reglocation != null">#{reglocation},</if>
90   - <if test="datastatus != null">#{datastatus},</if>
91   - <if test="creditfraction != null">#{creditfraction},</if>
92   - <if test="creditlevel != null">#{creditlevel},</if>
93   - <if test="createtime != null">#{createtime},</if>
94   - <if test="updatetime != null">#{updatetime},</if>
  87 + <if test="regLocation != null">#{regLocation},</if>
  88 + <if test="dataStatus != null">#{dataStatus},</if>
  89 + <if test="creditFraction != null">#{creditFraction},</if>
  90 + <if test="creditLevel != null">#{creditLevel},</if>
  91 + <if test="createTime != null">#{createTime},</if>
  92 + <if test="updateTime != null">#{updateTime},</if>
95 93 </trim>
96 94 </insert>
97 95  
... ... @@ -99,21 +97,21 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
99 97 update enterprise_info
100 98 <trim prefix="SET" suffixOverrides=",">
101 99 <if test="ename != null">ename = #{ename},</if>
102   - <if test="creditcode != null">creditcode = #{creditcode},</if>
103   - <if test="legalpersonname != null">legalpersonname = #{legalpersonname},</if>
104   - <if test="estiblishtime != null">estiblishtime = #{estiblishtime},</if>
105   - <if test="regcapital != null">regcapital = #{regcapital},</if>
106   - <if test="reginstitute != null">reginstitute = #{reginstitute},</if>
107   - <if test="regstatus != null">regstatus = #{regstatus},</if>
108   - <if test="businessscope != null">businessscope = #{businessscope},</if>
109   - <if test="enterpriseaddress != null">enterpriseaddress = #{enterpriseaddress},</if>
  100 + <if test="creditCode != null">credit_code = #{creditCode},</if>
  101 + <if test="legalpersonName != null">legalperson_name = #{legalpersonName},</if>
  102 + <if test="estiblishTime != null">estiblish_time = #{estiblishTime},</if>
  103 + <if test="regCapital != null">reg_capital = #{regCapital},</if>
  104 + <if test="regInstitute != null">reg_institute = #{regInstitute},</if>
  105 + <if test="regStatus != null">reg_status = #{regStatus},</if>
  106 + <if test="businessScope != null">business_scope = #{businessScope},</if>
  107 + <if test="enterpriseAddress != null">enterprise_address = #{enterpriseAddress},</if>
110 108 <if test="menlei != null">menlei = #{menlei},</if>
111   - <if test="reglocation != null">reglocation = #{reglocation},</if>
112   - <if test="datastatus != null">datastatus = #{datastatus},</if>
113   - <if test="creditfraction != null">creditfraction = #{creditfraction},</if>
114   - <if test="creditlevel != null">creditlevel = #{creditlevel},</if>
115   - <if test="createtime != null">createtime = #{createtime},</if>
116   - <if test="updatetime != null">updatetime = #{updatetime},</if>
  109 + <if test="regLocation != null">reg_location = #{regLocation},</if>
  110 + <if test="dataStatus != null">data_status = #{dataStatus},</if>
  111 + <if test="creditFraction != null">credit_fraction = #{creditFraction},</if>
  112 + <if test="creditLevel != null">credit_level = #{creditLevel},</if>
  113 + <if test="createTime != null">create_time = #{createTime},</if>
  114 + <if test="updateTime != null">update_time = #{updateTime},</if>
117 115 </trim>
118 116 where id = #{id}
119 117 </update>
... ... @@ -123,7 +121,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
123 121 </delete>
124 122  
125 123 <delete id="deleteEnterpriseInfoByIds" parameterType="String">
126   - delete from enterprise_info where id in
  124 + delete from enterprise_info where id in
127 125 <foreach item="id" collection="array" open="(" separator="," close=")">
128 126 #{id}
129 127 </foreach>
... ...