Ver Fonte

提交微信登录和产品优化搜索优化

qiubo há 4 anos atrás
pai
commit
5634a9e773
70 ficheiros alterados com 4425 adições e 521 exclusões
  1. 4 4
      forest-admin/admin-common/admin-common.iml
  2. 4 4
      forest-admin/admin-mbg/admin-mbg.iml
  3. 2 2
      forest-admin/admin-mbg/src/main/java/com/hwrj/cloud/admin/mapper/UmsCompanyShopMapper.java
  4. 6 6
      forest-admin/admin-mbg/src/main/java/com/hwrj/cloud/admin/model/UmsCompanyFile.java
  5. 20 20
      forest-admin/admin-mbg/src/main/java/com/hwrj/cloud/admin/model/UmsCompanyFileExample.java
  6. 72 24
      forest-admin/admin-mbg/src/main/java/com/hwrj/cloud/admin/model/UmsCompanyInfo.java
  7. 280 20
      forest-admin/admin-mbg/src/main/java/com/hwrj/cloud/admin/model/UmsCompanyInfoExample.java
  8. 10 10
      forest-admin/admin-mbg/src/main/java/com/hwrj/cloud/admin/model/UmsCompanyShop.java
  9. 30 30
      forest-admin/admin-mbg/src/main/java/com/hwrj/cloud/admin/model/UmsCompanyShopExample.java
  10. 14 14
      forest-admin/admin-mbg/src/main/resources/com/hwrj/cloud/admin/mapper/UmsCompanyFileMapper.xml
  11. 121 48
      forest-admin/admin-mbg/src/main/resources/com/hwrj/cloud/admin/mapper/UmsCompanyInfoMapper.xml
  12. 25 25
      forest-admin/admin-mbg/src/main/resources/com/hwrj/cloud/admin/mapper/UmsCompanyShopMapper.xml
  13. 1 1
      forest-admin/admin-mbg/src/main/resources/generatorConfig.xml
  14. 258 0
      forest-admin/admin-server/admin-server.iml
  15. 12 0
      forest-admin/admin-server/pom.xml
  16. 39 0
      forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/controller/BigScreamController.java
  17. 107 8
      forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/controller/UmsCompanyController.java
  18. 12 0
      forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/dao/BigScreamDao.java
  19. 24 0
      forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/dao/UmsCompanyShopDao.java
  20. 36 0
      forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/dto/UmsCompanyDto.java
  21. 185 31
      forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/excelEntity/UmsCompanyInfoExcel.java
  22. 25 0
      forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/service/BigScreamService.java
  23. 117 0
      forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/service/UmsCompanyService.java
  24. 33 0
      forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/service/impl/BigScreamServiceImpl.java
  25. 272 0
      forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/service/impl/UmsCompanyInfoServiceImpl.java
  26. 3 0
      forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/service/impl/UmsMemberPlatformServiceImpl.java
  27. 33 0
      forest-admin/admin-server/src/main/resources/dao/BigScreamDao.xml
  28. 35 0
      forest-admin/admin-server/src/main/resources/dao/UmsCompanyShopDao.xml
  29. 18 0
      forest-admin/admin-server/src/test/java/com/hwrj/cloud/admin/Applay.java
  30. 24 0
      forest-admin/admin-server/src/test/java/com/hwrj/cloud/admin/ResultApplay.java
  31. 195 0
      forest-admin/admin-server/src/test/java/com/hwrj/cloud/admin/UploadTest.java
  32. 4 0
      forest-common/pom.xml
  33. 14 0
      forest-common/src/main/java/com/hwrj/cloud/common/entity/BaseForm.java
  34. 31 0
      forest-common/src/main/java/com/hwrj/cloud/common/util/FileUtil.java
  35. 42 0
      forest-common/src/main/java/com/hwrj/cloud/common/util/InvitationCodeUtil.java
  36. 3 0
      forest-gateway/forest-gateway.iml
  37. 4 4
      forest-portal/portal-common/portal-common.iml
  38. 4 4
      forest-portal/portal-mbg/portal-mbg.iml
  39. 2 2
      forest-portal/portal-mbg/src/main/java/com/hwrj/cloud/portal/mapper/UmsCompanyShopMapper.java
  40. 172 0
      forest-portal/portal-mbg/src/main/java/com/hwrj/cloud/portal/model/PmsProduct.java
  41. 910 0
      forest-portal/portal-mbg/src/main/java/com/hwrj/cloud/portal/model/PmsProductExample.java
  42. 6 6
      forest-portal/portal-mbg/src/main/java/com/hwrj/cloud/portal/model/UmsCompanyFile.java
  43. 20 20
      forest-portal/portal-mbg/src/main/java/com/hwrj/cloud/portal/model/UmsCompanyFileExample.java
  44. 72 24
      forest-portal/portal-mbg/src/main/java/com/hwrj/cloud/portal/model/UmsCompanyInfo.java
  45. 280 20
      forest-portal/portal-mbg/src/main/java/com/hwrj/cloud/portal/model/UmsCompanyInfoExample.java
  46. 10 10
      forest-portal/portal-mbg/src/main/java/com/hwrj/cloud/portal/model/UmsCompanyShop.java
  47. 30 30
      forest-portal/portal-mbg/src/main/java/com/hwrj/cloud/portal/model/UmsCompanyShopExample.java
  48. 256 5
      forest-portal/portal-mbg/src/main/resources/com/hwrj/cloud/portal/mapper/PmsProductMapper.xml
  49. 14 14
      forest-portal/portal-mbg/src/main/resources/com/hwrj/cloud/portal/mapper/UmsCompanyFileMapper.xml
  50. 121 48
      forest-portal/portal-mbg/src/main/resources/com/hwrj/cloud/portal/mapper/UmsCompanyInfoMapper.xml
  51. 25 25
      forest-portal/portal-mbg/src/main/resources/com/hwrj/cloud/portal/mapper/UmsCompanyShopMapper.xml
  52. 1 1
      forest-portal/portal-mbg/src/main/resources/generator.properties
  53. 1 1
      forest-portal/portal-mbg/src/main/resources/generatorConfig.xml
  54. 3 3
      forest-portal/portal-server/portal-server.iml
  55. 21 4
      forest-portal/portal-server/src/main/java/com/hwrj/cloud/portal/controller/PmsPortalProductController.java
  56. 37 0
      forest-portal/portal-server/src/main/java/com/hwrj/cloud/portal/controller/UmsCompanyInfoController.java
  57. 8 0
      forest-portal/portal-server/src/main/java/com/hwrj/cloud/portal/domain/PmsPortalProductDetail.java
  58. 28 0
      forest-portal/portal-server/src/main/java/com/hwrj/cloud/portal/domain/UmsCompanyInfoDto.java
  59. 13 0
      forest-portal/portal-server/src/main/java/com/hwrj/cloud/portal/domain/UmsMemberOriginDto.java
  60. 36 0
      forest-portal/portal-server/src/main/java/com/hwrj/cloud/portal/service/UmsCompanyInfoService.java
  61. 28 0
      forest-portal/portal-server/src/main/java/com/hwrj/cloud/portal/service/UmsMemberOriginService.java
  62. 42 33
      forest-portal/portal-server/src/main/java/com/hwrj/cloud/portal/service/impl/PmsPortalProductServiceImpl.java
  63. 72 0
      forest-portal/portal-server/src/main/java/com/hwrj/cloud/portal/service/impl/UmsCompanyInfoServiceImpl.java
  64. 70 0
      forest-portal/portal-server/src/main/java/com/hwrj/cloud/portal/service/impl/UmsMemberOriginServiceImpl.java
  65. 3 3
      forest-security/forest-security.iml
  66. 1 1
      nacos/conf/application.properties
  67. 4 4
      nacos/data/config-data/DEFAULT_GROUP/forest-admin
  68. 5 3
      nacos/data/config-data/DEFAULT_GROUP/forest-gateway
  69. 13 7
      nacos/data/config-data/DEFAULT_GROUP/forest-portal
  70. 2 2
      nacos/data/naming/meta.properties

+ 4 - 4
forest-admin/admin-common/admin-common.iml

@@ -19,10 +19,6 @@
     <orderEntry type="module" module-name="forest-common" />
     <orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-starter:1.2.10" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.2" level="project" />
-    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.1.13.RELEASE" level="project" />
-    <orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.2.0" level="project" />
-    <orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.1.14.RELEASE" level="project" />
-    <orderEntry type="library" name="Maven: org.springframework:spring-tx:5.1.14.RELEASE" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:1.3.2" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis:mybatis:3.4.6" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:1.3.2" level="project" />
@@ -57,6 +53,10 @@
     <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.9.10.3" level="project" />
     <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.9.10" level="project" />
     <orderEntry type="library" name="Maven: cn.hutool:hutool-all:4.5.7" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.2.0" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.1.14.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-tx:5.1.14.RELEASE" level="project" />
     <orderEntry type="library" name="Maven: com.aliyun:aliyun-java-sdk-core:4.0.3" level="project" />
     <orderEntry type="library" name="Maven: com.google.code.gson:gson:2.8.6" level="project" />
     <orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.11" level="project" />

+ 4 - 4
forest-admin/admin-mbg/admin-mbg.iml

@@ -19,10 +19,6 @@
     <orderEntry type="module" module-name="forest-common" />
     <orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-starter:1.2.10" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.2" level="project" />
-    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.1.13.RELEASE" level="project" />
-    <orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.2.0" level="project" />
-    <orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.1.14.RELEASE" level="project" />
-    <orderEntry type="library" name="Maven: org.springframework:spring-tx:5.1.14.RELEASE" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:1.3.2" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis:mybatis:3.4.6" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:1.3.2" level="project" />
@@ -56,6 +52,10 @@
     <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.9.10.3" level="project" />
     <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.9.10" level="project" />
     <orderEntry type="library" name="Maven: cn.hutool:hutool-all:4.5.7" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.2.0" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.1.14.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-tx:5.1.14.RELEASE" level="project" />
     <orderEntry type="library" name="Maven: com.aliyun:aliyun-java-sdk-core:4.0.3" level="project" />
     <orderEntry type="library" name="Maven: com.google.code.gson:gson:2.8.6" level="project" />
     <orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.11" level="project" />

+ 2 - 2
forest-admin/admin-mbg/src/main/java/com/hwrj/cloud/admin/mapper/UmsCompanyShopMapper.java

@@ -10,7 +10,7 @@ public interface UmsCompanyShopMapper {
 
     int deleteByExample(UmsCompanyShopExample example);
 
-    int deleteByPrimaryKey(Integer id);
+    int deleteByPrimaryKey(Long id);
 
     int insert(UmsCompanyShop record);
 
@@ -18,7 +18,7 @@ public interface UmsCompanyShopMapper {
 
     List<UmsCompanyShop> selectByExample(UmsCompanyShopExample example);
 
-    UmsCompanyShop selectByPrimaryKey(Integer id);
+    UmsCompanyShop selectByPrimaryKey(Long id);
 
     int updateByExampleSelective(@Param("record") UmsCompanyShop record, @Param("example") UmsCompanyShopExample example);
 

+ 6 - 6
forest-admin/admin-mbg/src/main/java/com/hwrj/cloud/admin/model/UmsCompanyFile.java

@@ -24,13 +24,13 @@ public class UmsCompanyFile implements Serializable {
     private Date createTime;
 
     @ApiModelProperty(value = "创建人id")
-    private Integer createId;
+    private Long createId;
 
     @ApiModelProperty(value = "修改时间")
     private Date updateTime;
 
     @ApiModelProperty(value = "修改人id")
-    private Integer updateId;
+    private Long updateId;
 
     private static final long serialVersionUID = 1L;
 
@@ -82,11 +82,11 @@ public class UmsCompanyFile implements Serializable {
         this.createTime = createTime;
     }
 
-    public Integer getCreateId() {
+    public Long getCreateId() {
         return createId;
     }
 
-    public void setCreateId(Integer createId) {
+    public void setCreateId(Long createId) {
         this.createId = createId;
     }
 
@@ -98,11 +98,11 @@ public class UmsCompanyFile implements Serializable {
         this.updateTime = updateTime;
     }
 
-    public Integer getUpdateId() {
+    public Long getUpdateId() {
         return updateId;
     }
 
-    public void setUpdateId(Integer updateId) {
+    public void setUpdateId(Long updateId) {
         this.updateId = updateId;
     }
 

+ 20 - 20
forest-admin/admin-mbg/src/main/java/com/hwrj/cloud/admin/model/UmsCompanyFileExample.java

@@ -495,52 +495,52 @@ public class UmsCompanyFileExample {
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdEqualTo(Integer value) {
+        public Criteria andCreateIdEqualTo(Long value) {
             addCriterion("create_id =", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdNotEqualTo(Integer value) {
+        public Criteria andCreateIdNotEqualTo(Long value) {
             addCriterion("create_id <>", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdGreaterThan(Integer value) {
+        public Criteria andCreateIdGreaterThan(Long value) {
             addCriterion("create_id >", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdGreaterThanOrEqualTo(Integer value) {
+        public Criteria andCreateIdGreaterThanOrEqualTo(Long value) {
             addCriterion("create_id >=", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdLessThan(Integer value) {
+        public Criteria andCreateIdLessThan(Long value) {
             addCriterion("create_id <", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdLessThanOrEqualTo(Integer value) {
+        public Criteria andCreateIdLessThanOrEqualTo(Long value) {
             addCriterion("create_id <=", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdIn(List<Integer> values) {
+        public Criteria andCreateIdIn(List<Long> values) {
             addCriterion("create_id in", values, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdNotIn(List<Integer> values) {
+        public Criteria andCreateIdNotIn(List<Long> values) {
             addCriterion("create_id not in", values, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdBetween(Integer value1, Integer value2) {
+        public Criteria andCreateIdBetween(Long value1, Long value2) {
             addCriterion("create_id between", value1, value2, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdNotBetween(Integer value1, Integer value2) {
+        public Criteria andCreateIdNotBetween(Long value1, Long value2) {
             addCriterion("create_id not between", value1, value2, "createId");
             return (Criteria) this;
         }
@@ -615,52 +615,52 @@ public class UmsCompanyFileExample {
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdEqualTo(Integer value) {
+        public Criteria andUpdateIdEqualTo(Long value) {
             addCriterion("update_id =", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdNotEqualTo(Integer value) {
+        public Criteria andUpdateIdNotEqualTo(Long value) {
             addCriterion("update_id <>", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdGreaterThan(Integer value) {
+        public Criteria andUpdateIdGreaterThan(Long value) {
             addCriterion("update_id >", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdGreaterThanOrEqualTo(Integer value) {
+        public Criteria andUpdateIdGreaterThanOrEqualTo(Long value) {
             addCriterion("update_id >=", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdLessThan(Integer value) {
+        public Criteria andUpdateIdLessThan(Long value) {
             addCriterion("update_id <", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdLessThanOrEqualTo(Integer value) {
+        public Criteria andUpdateIdLessThanOrEqualTo(Long value) {
             addCriterion("update_id <=", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdIn(List<Integer> values) {
+        public Criteria andUpdateIdIn(List<Long> values) {
             addCriterion("update_id in", values, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdNotIn(List<Integer> values) {
+        public Criteria andUpdateIdNotIn(List<Long> values) {
             addCriterion("update_id not in", values, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdBetween(Integer value1, Integer value2) {
+        public Criteria andUpdateIdBetween(Long value1, Long value2) {
             addCriterion("update_id between", value1, value2, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdNotBetween(Integer value1, Integer value2) {
+        public Criteria andUpdateIdNotBetween(Long value1, Long value2) {
             addCriterion("update_id not between", value1, value2, "updateId");
             return (Criteria) this;
         }

+ 72 - 24
forest-admin/admin-mbg/src/main/java/com/hwrj/cloud/admin/model/UmsCompanyInfo.java

@@ -11,49 +11,61 @@ public class UmsCompanyInfo implements Serializable {
     @ApiModelProperty(value = "供应商名称")
     private String compName;
 
+    @ApiModelProperty(value = "供应商类型")
+    private String companyType;
+
+    @ApiModelProperty(value = "供应商评级")
+    private Integer compLevel;
+
+    @ApiModelProperty(value = "供应商资质")
+    private String compQual;
+
     @ApiModelProperty(value = "供应商照片")
     private String compImgs;
 
     @ApiModelProperty(value = "供应商外部连接")
     private String compUrl;
 
-    @ApiModelProperty(value = "供应商生产许可证号")
+    @ApiModelProperty(value = "生产许可证号")
     private String compProdLicenseNum;
 
-    @ApiModelProperty(value = "供应商经营许可证")
+    @ApiModelProperty(value = "经营许可证")
     private String compManageLicenseNum;
 
-    @ApiModelProperty(value = "供应商社会行用代码")
+    @ApiModelProperty(value = "社会信用代码")
     private String compSocialCode;
 
-    @ApiModelProperty(value = "供应商联系人")
+    @ApiModelProperty(value = "联系人")
     private String compConPerson;
 
+    @ApiModelProperty(value = "是否认证:0未认证,1认证")
+    private Integer isCert;
+
     @ApiModelProperty(value = "供应商联系方式")
     private String compConType;
 
     @ApiModelProperty(value = "供应商联系账号")
     private String compConNum;
 
-    @ApiModelProperty(value = "供应商对外qq")
+    @ApiModelProperty(value = "对外企业qq")
     private String compQq;
 
-    @ApiModelProperty(value = "供应商经营产平")
+    @ApiModelProperty(value = "经营产品")
     private String compManageProduct;
 
-    @ApiModelProperty(value = "所在省id")
+    @ApiModelProperty(value = "所在省")
     private String provinceId;
 
-    @ApiModelProperty(value = "所在市id")
+    @ApiModelProperty(value = "所在市")
     private String cityId;
 
-    @ApiModelProperty(value = "所在县id")
+    @ApiModelProperty(value = "所在县")
     private String countyId;
 
-    @ApiModelProperty(value = "所在镇id")
+    @ApiModelProperty(value = "所在镇")
     private String townId;
 
-    @ApiModelProperty(value = "所在乡id")
+    @ApiModelProperty(value = "所在乡")
     private String villageId;
 
     @ApiModelProperty(value = "详细位置")
@@ -72,16 +84,16 @@ public class UmsCompanyInfo implements Serializable {
     private Date createTime;
 
     @ApiModelProperty(value = "创建人")
-    private Integer createId;
+    private Long createId;
 
     @ApiModelProperty(value = "修改时间")
     private Date updateTime;
 
     @ApiModelProperty(value = "修改人id")
-    private Integer updateId;
+    private Long updateId;
 
-    @ApiModelProperty(value = "供应商简介")
-    private String compIntroduction;
+    @ApiModelProperty(value = "简介")
+    private String compSum;
 
     private static final long serialVersionUID = 1L;
 
@@ -101,6 +113,30 @@ public class UmsCompanyInfo implements Serializable {
         this.compName = compName;
     }
 
+    public String getCompanyType() {
+        return companyType;
+    }
+
+    public void setCompanyType(String companyType) {
+        this.companyType = companyType;
+    }
+
+    public Integer getCompLevel() {
+        return compLevel;
+    }
+
+    public void setCompLevel(Integer compLevel) {
+        this.compLevel = compLevel;
+    }
+
+    public String getCompQual() {
+        return compQual;
+    }
+
+    public void setCompQual(String compQual) {
+        this.compQual = compQual;
+    }
+
     public String getCompImgs() {
         return compImgs;
     }
@@ -149,6 +185,14 @@ public class UmsCompanyInfo implements Serializable {
         this.compConPerson = compConPerson;
     }
 
+    public Integer getIsCert() {
+        return isCert;
+    }
+
+    public void setIsCert(Integer isCert) {
+        this.isCert = isCert;
+    }
+
     public String getCompConType() {
         return compConType;
     }
@@ -261,11 +305,11 @@ public class UmsCompanyInfo implements Serializable {
         this.createTime = createTime;
     }
 
-    public Integer getCreateId() {
+    public Long getCreateId() {
         return createId;
     }
 
-    public void setCreateId(Integer createId) {
+    public void setCreateId(Long createId) {
         this.createId = createId;
     }
 
@@ -277,20 +321,20 @@ public class UmsCompanyInfo implements Serializable {
         this.updateTime = updateTime;
     }
 
-    public Integer getUpdateId() {
+    public Long getUpdateId() {
         return updateId;
     }
 
-    public void setUpdateId(Integer updateId) {
+    public void setUpdateId(Long updateId) {
         this.updateId = updateId;
     }
 
-    public String getCompIntroduction() {
-        return compIntroduction;
+    public String getCompSum() {
+        return compSum;
     }
 
-    public void setCompIntroduction(String compIntroduction) {
-        this.compIntroduction = compIntroduction;
+    public void setCompSum(String compSum) {
+        this.compSum = compSum;
     }
 
     @Override
@@ -301,12 +345,16 @@ public class UmsCompanyInfo implements Serializable {
         sb.append("Hash = ").append(hashCode());
         sb.append(", id=").append(id);
         sb.append(", compName=").append(compName);
+        sb.append(", companyType=").append(companyType);
+        sb.append(", compLevel=").append(compLevel);
+        sb.append(", compQual=").append(compQual);
         sb.append(", compImgs=").append(compImgs);
         sb.append(", compUrl=").append(compUrl);
         sb.append(", compProdLicenseNum=").append(compProdLicenseNum);
         sb.append(", compManageLicenseNum=").append(compManageLicenseNum);
         sb.append(", compSocialCode=").append(compSocialCode);
         sb.append(", compConPerson=").append(compConPerson);
+        sb.append(", isCert=").append(isCert);
         sb.append(", compConType=").append(compConType);
         sb.append(", compConNum=").append(compConNum);
         sb.append(", compQq=").append(compQq);
@@ -324,7 +372,7 @@ public class UmsCompanyInfo implements Serializable {
         sb.append(", createId=").append(createId);
         sb.append(", updateTime=").append(updateTime);
         sb.append(", updateId=").append(updateId);
-        sb.append(", compIntroduction=").append(compIntroduction);
+        sb.append(", compSum=").append(compSum);
         sb.append(", serialVersionUID=").append(serialVersionUID);
         sb.append("]");
         return sb.toString();

+ 280 - 20
forest-admin/admin-mbg/src/main/java/com/hwrj/cloud/admin/model/UmsCompanyInfoExample.java

@@ -235,6 +235,206 @@ public class UmsCompanyInfoExample {
             return (Criteria) this;
         }
 
+        public Criteria andCompanyTypeIsNull() {
+            addCriterion("company_type is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeIsNotNull() {
+            addCriterion("company_type is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeEqualTo(String value) {
+            addCriterion("company_type =", value, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeNotEqualTo(String value) {
+            addCriterion("company_type <>", value, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeGreaterThan(String value) {
+            addCriterion("company_type >", value, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeGreaterThanOrEqualTo(String value) {
+            addCriterion("company_type >=", value, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeLessThan(String value) {
+            addCriterion("company_type <", value, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeLessThanOrEqualTo(String value) {
+            addCriterion("company_type <=", value, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeLike(String value) {
+            addCriterion("company_type like", value, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeNotLike(String value) {
+            addCriterion("company_type not like", value, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeIn(List<String> values) {
+            addCriterion("company_type in", values, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeNotIn(List<String> values) {
+            addCriterion("company_type not in", values, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeBetween(String value1, String value2) {
+            addCriterion("company_type between", value1, value2, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeNotBetween(String value1, String value2) {
+            addCriterion("company_type not between", value1, value2, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelIsNull() {
+            addCriterion("comp_level is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelIsNotNull() {
+            addCriterion("comp_level is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelEqualTo(Integer value) {
+            addCriterion("comp_level =", value, "compLevel");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelNotEqualTo(Integer value) {
+            addCriterion("comp_level <>", value, "compLevel");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelGreaterThan(Integer value) {
+            addCriterion("comp_level >", value, "compLevel");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelGreaterThanOrEqualTo(Integer value) {
+            addCriterion("comp_level >=", value, "compLevel");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelLessThan(Integer value) {
+            addCriterion("comp_level <", value, "compLevel");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelLessThanOrEqualTo(Integer value) {
+            addCriterion("comp_level <=", value, "compLevel");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelIn(List<Integer> values) {
+            addCriterion("comp_level in", values, "compLevel");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelNotIn(List<Integer> values) {
+            addCriterion("comp_level not in", values, "compLevel");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelBetween(Integer value1, Integer value2) {
+            addCriterion("comp_level between", value1, value2, "compLevel");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelNotBetween(Integer value1, Integer value2) {
+            addCriterion("comp_level not between", value1, value2, "compLevel");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualIsNull() {
+            addCriterion("comp_qual is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualIsNotNull() {
+            addCriterion("comp_qual is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualEqualTo(String value) {
+            addCriterion("comp_qual =", value, "compQual");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualNotEqualTo(String value) {
+            addCriterion("comp_qual <>", value, "compQual");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualGreaterThan(String value) {
+            addCriterion("comp_qual >", value, "compQual");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualGreaterThanOrEqualTo(String value) {
+            addCriterion("comp_qual >=", value, "compQual");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualLessThan(String value) {
+            addCriterion("comp_qual <", value, "compQual");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualLessThanOrEqualTo(String value) {
+            addCriterion("comp_qual <=", value, "compQual");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualLike(String value) {
+            addCriterion("comp_qual like", value, "compQual");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualNotLike(String value) {
+            addCriterion("comp_qual not like", value, "compQual");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualIn(List<String> values) {
+            addCriterion("comp_qual in", values, "compQual");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualNotIn(List<String> values) {
+            addCriterion("comp_qual not in", values, "compQual");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualBetween(String value1, String value2) {
+            addCriterion("comp_qual between", value1, value2, "compQual");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualNotBetween(String value1, String value2) {
+            addCriterion("comp_qual not between", value1, value2, "compQual");
+            return (Criteria) this;
+        }
+
         public Criteria andCompImgsIsNull() {
             addCriterion("comp_imgs is null");
             return (Criteria) this;
@@ -655,6 +855,66 @@ public class UmsCompanyInfoExample {
             return (Criteria) this;
         }
 
+        public Criteria andIsCertIsNull() {
+            addCriterion("is_cert is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsCertIsNotNull() {
+            addCriterion("is_cert is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsCertEqualTo(Integer value) {
+            addCriterion("is_cert =", value, "isCert");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsCertNotEqualTo(Integer value) {
+            addCriterion("is_cert <>", value, "isCert");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsCertGreaterThan(Integer value) {
+            addCriterion("is_cert >", value, "isCert");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsCertGreaterThanOrEqualTo(Integer value) {
+            addCriterion("is_cert >=", value, "isCert");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsCertLessThan(Integer value) {
+            addCriterion("is_cert <", value, "isCert");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsCertLessThanOrEqualTo(Integer value) {
+            addCriterion("is_cert <=", value, "isCert");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsCertIn(List<Integer> values) {
+            addCriterion("is_cert in", values, "isCert");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsCertNotIn(List<Integer> values) {
+            addCriterion("is_cert not in", values, "isCert");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsCertBetween(Integer value1, Integer value2) {
+            addCriterion("is_cert between", value1, value2, "isCert");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsCertNotBetween(Integer value1, Integer value2) {
+            addCriterion("is_cert not between", value1, value2, "isCert");
+            return (Criteria) this;
+        }
+
         public Criteria andCompConTypeIsNull() {
             addCriterion("comp_con_type is null");
             return (Criteria) this;
@@ -1625,52 +1885,52 @@ public class UmsCompanyInfoExample {
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdEqualTo(Integer value) {
+        public Criteria andCreateIdEqualTo(Long value) {
             addCriterion("create_id =", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdNotEqualTo(Integer value) {
+        public Criteria andCreateIdNotEqualTo(Long value) {
             addCriterion("create_id <>", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdGreaterThan(Integer value) {
+        public Criteria andCreateIdGreaterThan(Long value) {
             addCriterion("create_id >", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdGreaterThanOrEqualTo(Integer value) {
+        public Criteria andCreateIdGreaterThanOrEqualTo(Long value) {
             addCriterion("create_id >=", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdLessThan(Integer value) {
+        public Criteria andCreateIdLessThan(Long value) {
             addCriterion("create_id <", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdLessThanOrEqualTo(Integer value) {
+        public Criteria andCreateIdLessThanOrEqualTo(Long value) {
             addCriterion("create_id <=", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdIn(List<Integer> values) {
+        public Criteria andCreateIdIn(List<Long> values) {
             addCriterion("create_id in", values, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdNotIn(List<Integer> values) {
+        public Criteria andCreateIdNotIn(List<Long> values) {
             addCriterion("create_id not in", values, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdBetween(Integer value1, Integer value2) {
+        public Criteria andCreateIdBetween(Long value1, Long value2) {
             addCriterion("create_id between", value1, value2, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdNotBetween(Integer value1, Integer value2) {
+        public Criteria andCreateIdNotBetween(Long value1, Long value2) {
             addCriterion("create_id not between", value1, value2, "createId");
             return (Criteria) this;
         }
@@ -1745,52 +2005,52 @@ public class UmsCompanyInfoExample {
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdEqualTo(Integer value) {
+        public Criteria andUpdateIdEqualTo(Long value) {
             addCriterion("update_id =", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdNotEqualTo(Integer value) {
+        public Criteria andUpdateIdNotEqualTo(Long value) {
             addCriterion("update_id <>", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdGreaterThan(Integer value) {
+        public Criteria andUpdateIdGreaterThan(Long value) {
             addCriterion("update_id >", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdGreaterThanOrEqualTo(Integer value) {
+        public Criteria andUpdateIdGreaterThanOrEqualTo(Long value) {
             addCriterion("update_id >=", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdLessThan(Integer value) {
+        public Criteria andUpdateIdLessThan(Long value) {
             addCriterion("update_id <", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdLessThanOrEqualTo(Integer value) {
+        public Criteria andUpdateIdLessThanOrEqualTo(Long value) {
             addCriterion("update_id <=", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdIn(List<Integer> values) {
+        public Criteria andUpdateIdIn(List<Long> values) {
             addCriterion("update_id in", values, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdNotIn(List<Integer> values) {
+        public Criteria andUpdateIdNotIn(List<Long> values) {
             addCriterion("update_id not in", values, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdBetween(Integer value1, Integer value2) {
+        public Criteria andUpdateIdBetween(Long value1, Long value2) {
             addCriterion("update_id between", value1, value2, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdNotBetween(Integer value1, Integer value2) {
+        public Criteria andUpdateIdNotBetween(Long value1, Long value2) {
             addCriterion("update_id not between", value1, value2, "updateId");
             return (Criteria) this;
         }

+ 10 - 10
forest-admin/admin-mbg/src/main/java/com/hwrj/cloud/admin/model/UmsCompanyShop.java

@@ -6,12 +6,12 @@ import java.util.Date;
 
 public class UmsCompanyShop implements Serializable {
     @ApiModelProperty(value = "主键")
-    private Integer id;
+    private Long id;
 
     @ApiModelProperty(value = "供应商id")
-    private Integer compId;
+    private Long compId;
 
-    @ApiModelProperty(value = "网店类型:taobao:淘宝店jd:京东店:ping:多多店")
+    @ApiModelProperty(value = "网店类型:taobao:淘宝店jd:京东店:ping:多多店,own自营")
     private String shopType;
 
     @ApiModelProperty(value = "网点访问地址")
@@ -27,7 +27,7 @@ public class UmsCompanyShop implements Serializable {
     private Date createTime;
 
     @ApiModelProperty(value = "创建人id")
-    private Integer createId;
+    private Long createId;
 
     @ApiModelProperty(value = "修改时间")
     private Date updateTime;
@@ -37,19 +37,19 @@ public class UmsCompanyShop implements Serializable {
 
     private static final long serialVersionUID = 1L;
 
-    public Integer getId() {
+    public Long getId() {
         return id;
     }
 
-    public void setId(Integer id) {
+    public void setId(Long id) {
         this.id = id;
     }
 
-    public Integer getCompId() {
+    public Long getCompId() {
         return compId;
     }
 
-    public void setCompId(Integer compId) {
+    public void setCompId(Long compId) {
         this.compId = compId;
     }
 
@@ -93,11 +93,11 @@ public class UmsCompanyShop implements Serializable {
         this.createTime = createTime;
     }
 
-    public Integer getCreateId() {
+    public Long getCreateId() {
         return createId;
     }
 
-    public void setCreateId(Integer createId) {
+    public void setCreateId(Long createId) {
         this.createId = createId;
     }
 

+ 30 - 30
forest-admin/admin-mbg/src/main/java/com/hwrj/cloud/admin/model/UmsCompanyShopExample.java

@@ -115,52 +115,52 @@ public class UmsCompanyShopExample {
             return (Criteria) this;
         }
 
-        public Criteria andIdEqualTo(Integer value) {
+        public Criteria andIdEqualTo(Long value) {
             addCriterion("id =", value, "id");
             return (Criteria) this;
         }
 
-        public Criteria andIdNotEqualTo(Integer value) {
+        public Criteria andIdNotEqualTo(Long value) {
             addCriterion("id <>", value, "id");
             return (Criteria) this;
         }
 
-        public Criteria andIdGreaterThan(Integer value) {
+        public Criteria andIdGreaterThan(Long value) {
             addCriterion("id >", value, "id");
             return (Criteria) this;
         }
 
-        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
+        public Criteria andIdGreaterThanOrEqualTo(Long value) {
             addCriterion("id >=", value, "id");
             return (Criteria) this;
         }
 
-        public Criteria andIdLessThan(Integer value) {
+        public Criteria andIdLessThan(Long value) {
             addCriterion("id <", value, "id");
             return (Criteria) this;
         }
 
-        public Criteria andIdLessThanOrEqualTo(Integer value) {
+        public Criteria andIdLessThanOrEqualTo(Long value) {
             addCriterion("id <=", value, "id");
             return (Criteria) this;
         }
 
-        public Criteria andIdIn(List<Integer> values) {
+        public Criteria andIdIn(List<Long> values) {
             addCriterion("id in", values, "id");
             return (Criteria) this;
         }
 
-        public Criteria andIdNotIn(List<Integer> values) {
+        public Criteria andIdNotIn(List<Long> values) {
             addCriterion("id not in", values, "id");
             return (Criteria) this;
         }
 
-        public Criteria andIdBetween(Integer value1, Integer value2) {
+        public Criteria andIdBetween(Long value1, Long value2) {
             addCriterion("id between", value1, value2, "id");
             return (Criteria) this;
         }
 
-        public Criteria andIdNotBetween(Integer value1, Integer value2) {
+        public Criteria andIdNotBetween(Long value1, Long value2) {
             addCriterion("id not between", value1, value2, "id");
             return (Criteria) this;
         }
@@ -175,52 +175,52 @@ public class UmsCompanyShopExample {
             return (Criteria) this;
         }
 
-        public Criteria andCompIdEqualTo(Integer value) {
+        public Criteria andCompIdEqualTo(Long value) {
             addCriterion("comp_id =", value, "compId");
             return (Criteria) this;
         }
 
-        public Criteria andCompIdNotEqualTo(Integer value) {
+        public Criteria andCompIdNotEqualTo(Long value) {
             addCriterion("comp_id <>", value, "compId");
             return (Criteria) this;
         }
 
-        public Criteria andCompIdGreaterThan(Integer value) {
+        public Criteria andCompIdGreaterThan(Long value) {
             addCriterion("comp_id >", value, "compId");
             return (Criteria) this;
         }
 
-        public Criteria andCompIdGreaterThanOrEqualTo(Integer value) {
+        public Criteria andCompIdGreaterThanOrEqualTo(Long value) {
             addCriterion("comp_id >=", value, "compId");
             return (Criteria) this;
         }
 
-        public Criteria andCompIdLessThan(Integer value) {
+        public Criteria andCompIdLessThan(Long value) {
             addCriterion("comp_id <", value, "compId");
             return (Criteria) this;
         }
 
-        public Criteria andCompIdLessThanOrEqualTo(Integer value) {
+        public Criteria andCompIdLessThanOrEqualTo(Long value) {
             addCriterion("comp_id <=", value, "compId");
             return (Criteria) this;
         }
 
-        public Criteria andCompIdIn(List<Integer> values) {
+        public Criteria andCompIdIn(List<Long> values) {
             addCriterion("comp_id in", values, "compId");
             return (Criteria) this;
         }
 
-        public Criteria andCompIdNotIn(List<Integer> values) {
+        public Criteria andCompIdNotIn(List<Long> values) {
             addCriterion("comp_id not in", values, "compId");
             return (Criteria) this;
         }
 
-        public Criteria andCompIdBetween(Integer value1, Integer value2) {
+        public Criteria andCompIdBetween(Long value1, Long value2) {
             addCriterion("comp_id between", value1, value2, "compId");
             return (Criteria) this;
         }
 
-        public Criteria andCompIdNotBetween(Integer value1, Integer value2) {
+        public Criteria andCompIdNotBetween(Long value1, Long value2) {
             addCriterion("comp_id not between", value1, value2, "compId");
             return (Criteria) this;
         }
@@ -575,52 +575,52 @@ public class UmsCompanyShopExample {
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdEqualTo(Integer value) {
+        public Criteria andCreateIdEqualTo(Long value) {
             addCriterion("create_id =", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdNotEqualTo(Integer value) {
+        public Criteria andCreateIdNotEqualTo(Long value) {
             addCriterion("create_id <>", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdGreaterThan(Integer value) {
+        public Criteria andCreateIdGreaterThan(Long value) {
             addCriterion("create_id >", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdGreaterThanOrEqualTo(Integer value) {
+        public Criteria andCreateIdGreaterThanOrEqualTo(Long value) {
             addCriterion("create_id >=", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdLessThan(Integer value) {
+        public Criteria andCreateIdLessThan(Long value) {
             addCriterion("create_id <", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdLessThanOrEqualTo(Integer value) {
+        public Criteria andCreateIdLessThanOrEqualTo(Long value) {
             addCriterion("create_id <=", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdIn(List<Integer> values) {
+        public Criteria andCreateIdIn(List<Long> values) {
             addCriterion("create_id in", values, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdNotIn(List<Integer> values) {
+        public Criteria andCreateIdNotIn(List<Long> values) {
             addCriterion("create_id not in", values, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdBetween(Integer value1, Integer value2) {
+        public Criteria andCreateIdBetween(Long value1, Long value2) {
             addCriterion("create_id between", value1, value2, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdNotBetween(Integer value1, Integer value2) {
+        public Criteria andCreateIdNotBetween(Long value1, Long value2) {
             addCriterion("create_id not between", value1, value2, "createId");
             return (Criteria) this;
         }

+ 14 - 14
forest-admin/admin-mbg/src/main/resources/com/hwrj/cloud/admin/mapper/UmsCompanyFileMapper.xml

@@ -8,9 +8,9 @@
     <result column="file_type" jdbcType="VARCHAR" property="fileType" />
     <result column="file_status" jdbcType="INTEGER" property="fileStatus" />
     <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
-    <result column="create_id" jdbcType="INTEGER" property="createId" />
+    <result column="create_id" jdbcType="BIGINT" property="createId" />
     <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
-    <result column="update_id" jdbcType="INTEGER" property="updateId" />
+    <result column="update_id" jdbcType="BIGINT" property="updateId" />
   </resultMap>
   <sql id="Example_Where_Clause">
     <where>
@@ -112,8 +112,8 @@
       file_status, create_time, create_id, 
       update_time, update_id)
     values (#{compId,jdbcType=BIGINT}, #{fileUrl,jdbcType=VARCHAR}, #{fileType,jdbcType=VARCHAR}, 
-      #{fileStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{createId,jdbcType=INTEGER}, 
-      #{updateTime,jdbcType=TIMESTAMP}, #{updateId,jdbcType=INTEGER})
+      #{fileStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{createId,jdbcType=BIGINT}, 
+      #{updateTime,jdbcType=TIMESTAMP}, #{updateId,jdbcType=BIGINT})
   </insert>
   <insert id="insertSelective" parameterType="com.hwrj.cloud.admin.model.UmsCompanyFile">
     <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
@@ -163,13 +163,13 @@
         #{createTime,jdbcType=TIMESTAMP},
       </if>
       <if test="createId != null">
-        #{createId,jdbcType=INTEGER},
+        #{createId,jdbcType=BIGINT},
       </if>
       <if test="updateTime != null">
         #{updateTime,jdbcType=TIMESTAMP},
       </if>
       <if test="updateId != null">
-        #{updateId,jdbcType=INTEGER},
+        #{updateId,jdbcType=BIGINT},
       </if>
     </trim>
   </insert>
@@ -201,13 +201,13 @@
         create_time = #{record.createTime,jdbcType=TIMESTAMP},
       </if>
       <if test="record.createId != null">
-        create_id = #{record.createId,jdbcType=INTEGER},
+        create_id = #{record.createId,jdbcType=BIGINT},
       </if>
       <if test="record.updateTime != null">
         update_time = #{record.updateTime,jdbcType=TIMESTAMP},
       </if>
       <if test="record.updateId != null">
-        update_id = #{record.updateId,jdbcType=INTEGER},
+        update_id = #{record.updateId,jdbcType=BIGINT},
       </if>
     </set>
     <if test="_parameter != null">
@@ -222,9 +222,9 @@
       file_type = #{record.fileType,jdbcType=VARCHAR},
       file_status = #{record.fileStatus,jdbcType=INTEGER},
       create_time = #{record.createTime,jdbcType=TIMESTAMP},
-      create_id = #{record.createId,jdbcType=INTEGER},
+      create_id = #{record.createId,jdbcType=BIGINT},
       update_time = #{record.updateTime,jdbcType=TIMESTAMP},
-      update_id = #{record.updateId,jdbcType=INTEGER}
+      update_id = #{record.updateId,jdbcType=BIGINT}
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
     </if>
@@ -248,13 +248,13 @@
         create_time = #{createTime,jdbcType=TIMESTAMP},
       </if>
       <if test="createId != null">
-        create_id = #{createId,jdbcType=INTEGER},
+        create_id = #{createId,jdbcType=BIGINT},
       </if>
       <if test="updateTime != null">
         update_time = #{updateTime,jdbcType=TIMESTAMP},
       </if>
       <if test="updateId != null">
-        update_id = #{updateId,jdbcType=INTEGER},
+        update_id = #{updateId,jdbcType=BIGINT},
       </if>
     </set>
     where id = #{id,jdbcType=BIGINT}
@@ -266,9 +266,9 @@
       file_type = #{fileType,jdbcType=VARCHAR},
       file_status = #{fileStatus,jdbcType=INTEGER},
       create_time = #{createTime,jdbcType=TIMESTAMP},
-      create_id = #{createId,jdbcType=INTEGER},
+      create_id = #{createId,jdbcType=BIGINT},
       update_time = #{updateTime,jdbcType=TIMESTAMP},
-      update_id = #{updateId,jdbcType=INTEGER}
+      update_id = #{updateId,jdbcType=BIGINT}
     where id = #{id,jdbcType=BIGINT}
   </update>
 </mapper>

+ 121 - 48
forest-admin/admin-mbg/src/main/resources/com/hwrj/cloud/admin/mapper/UmsCompanyInfoMapper.xml

@@ -4,12 +4,16 @@
   <resultMap id="BaseResultMap" type="com.hwrj.cloud.admin.model.UmsCompanyInfo">
     <id column="id" jdbcType="BIGINT" property="id" />
     <result column="comp_name" jdbcType="VARCHAR" property="compName" />
+    <result column="company_type" jdbcType="VARCHAR" property="companyType" />
+    <result column="comp_level" jdbcType="INTEGER" property="compLevel" />
+    <result column="comp_qual" jdbcType="VARCHAR" property="compQual" />
     <result column="comp_imgs" jdbcType="VARCHAR" property="compImgs" />
     <result column="comp_url" jdbcType="VARCHAR" property="compUrl" />
     <result column="comp_prod_license_num" jdbcType="VARCHAR" property="compProdLicenseNum" />
     <result column="comp_manage_license_num" jdbcType="VARCHAR" property="compManageLicenseNum" />
     <result column="comp_social_code" jdbcType="VARCHAR" property="compSocialCode" />
     <result column="comp_con_person" jdbcType="VARCHAR" property="compConPerson" />
+    <result column="is_cert" jdbcType="INTEGER" property="isCert" />
     <result column="comp_con_type" jdbcType="VARCHAR" property="compConType" />
     <result column="comp_con_num" jdbcType="VARCHAR" property="compConNum" />
     <result column="comp_qq" jdbcType="VARCHAR" property="compQq" />
@@ -24,12 +28,12 @@
     <result column="latitude" jdbcType="VARCHAR" property="latitude" />
     <result column="comp_status" jdbcType="INTEGER" property="compStatus" />
     <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
-    <result column="create_id" jdbcType="INTEGER" property="createId" />
+    <result column="create_id" jdbcType="BIGINT" property="createId" />
     <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
-    <result column="update_id" jdbcType="INTEGER" property="updateId" />
+    <result column="update_id" jdbcType="BIGINT" property="updateId" />
   </resultMap>
   <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.hwrj.cloud.admin.model.UmsCompanyInfo">
-    <result column="comp_introduction" jdbcType="LONGVARCHAR" property="compIntroduction" />
+    <result column="comp_sum" jdbcType="LONGVARCHAR" property="compSum" />
   </resultMap>
   <sql id="Example_Where_Clause">
     <where>
@@ -90,13 +94,14 @@
     </where>
   </sql>
   <sql id="Base_Column_List">
-    id, comp_name, comp_imgs, comp_url, comp_prod_license_num, comp_manage_license_num, 
-    comp_social_code, comp_con_person, comp_con_type, comp_con_num, comp_qq, comp_manage_product, 
-    province_id, city_id, county_id, town_id, village_id, detail_address, longitude, 
-    latitude, comp_status, create_time, create_id, update_time, update_id
+    id, comp_name, company_type, comp_level, comp_qual, comp_imgs, comp_url, comp_prod_license_num, 
+    comp_manage_license_num, comp_social_code, comp_con_person, is_cert, comp_con_type, 
+    comp_con_num, comp_qq, comp_manage_product, province_id, city_id, county_id, town_id, 
+    village_id, detail_address, longitude, latitude, comp_status, create_time, create_id, 
+    update_time, update_id
   </sql>
   <sql id="Blob_Column_List">
-    comp_introduction
+    comp_sum
   </sql>
   <select id="selectByExampleWithBLOBs" parameterType="com.hwrj.cloud.admin.model.UmsCompanyInfoExample" resultMap="ResultMapWithBLOBs">
     select
@@ -150,24 +155,28 @@
     <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
       SELECT LAST_INSERT_ID()
     </selectKey>
-    insert into ums_company_info (comp_name, comp_imgs, comp_url, 
+    insert into ums_company_info (comp_name, company_type, comp_level, 
+      comp_qual, comp_imgs, comp_url, 
       comp_prod_license_num, comp_manage_license_num, 
-      comp_social_code, comp_con_person, comp_con_type, 
-      comp_con_num, comp_qq, comp_manage_product, 
-      province_id, city_id, county_id, 
-      town_id, village_id, detail_address, 
-      longitude, latitude, comp_status, 
-      create_time, create_id, update_time, 
-      update_id, comp_introduction)
-    values (#{compName,jdbcType=VARCHAR}, #{compImgs,jdbcType=VARCHAR}, #{compUrl,jdbcType=VARCHAR}, 
+      comp_social_code, comp_con_person, is_cert, 
+      comp_con_type, comp_con_num, comp_qq, 
+      comp_manage_product, province_id, city_id, 
+      county_id, town_id, village_id, 
+      detail_address, longitude, latitude, 
+      comp_status, create_time, create_id, 
+      update_time, update_id, comp_sum
+      )
+    values (#{compName,jdbcType=VARCHAR}, #{companyType,jdbcType=VARCHAR}, #{compLevel,jdbcType=INTEGER}, 
+      #{compQual,jdbcType=VARCHAR}, #{compImgs,jdbcType=VARCHAR}, #{compUrl,jdbcType=VARCHAR}, 
       #{compProdLicenseNum,jdbcType=VARCHAR}, #{compManageLicenseNum,jdbcType=VARCHAR}, 
-      #{compSocialCode,jdbcType=VARCHAR}, #{compConPerson,jdbcType=VARCHAR}, #{compConType,jdbcType=VARCHAR}, 
-      #{compConNum,jdbcType=VARCHAR}, #{compQq,jdbcType=VARCHAR}, #{compManageProduct,jdbcType=VARCHAR}, 
-      #{provinceId,jdbcType=VARCHAR}, #{cityId,jdbcType=VARCHAR}, #{countyId,jdbcType=VARCHAR}, 
-      #{townId,jdbcType=VARCHAR}, #{villageId,jdbcType=VARCHAR}, #{detailAddress,jdbcType=VARCHAR}, 
-      #{longitude,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR}, #{compStatus,jdbcType=INTEGER}, 
-      #{createTime,jdbcType=TIMESTAMP}, #{createId,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, 
-      #{updateId,jdbcType=INTEGER}, #{compIntroduction,jdbcType=LONGVARCHAR})
+      #{compSocialCode,jdbcType=VARCHAR}, #{compConPerson,jdbcType=VARCHAR}, #{isCert,jdbcType=INTEGER}, 
+      #{compConType,jdbcType=VARCHAR}, #{compConNum,jdbcType=VARCHAR}, #{compQq,jdbcType=VARCHAR}, 
+      #{compManageProduct,jdbcType=VARCHAR}, #{provinceId,jdbcType=VARCHAR}, #{cityId,jdbcType=VARCHAR}, 
+      #{countyId,jdbcType=VARCHAR}, #{townId,jdbcType=VARCHAR}, #{villageId,jdbcType=VARCHAR}, 
+      #{detailAddress,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR}, 
+      #{compStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{createId,jdbcType=BIGINT}, 
+      #{updateTime,jdbcType=TIMESTAMP}, #{updateId,jdbcType=BIGINT}, #{compSum,jdbcType=LONGVARCHAR}
+      )
   </insert>
   <insert id="insertSelective" parameterType="com.hwrj.cloud.admin.model.UmsCompanyInfo">
     <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
@@ -178,6 +187,15 @@
       <if test="compName != null">
         comp_name,
       </if>
+      <if test="companyType != null">
+        company_type,
+      </if>
+      <if test="compLevel != null">
+        comp_level,
+      </if>
+      <if test="compQual != null">
+        comp_qual,
+      </if>
       <if test="compImgs != null">
         comp_imgs,
       </if>
@@ -196,6 +214,9 @@
       <if test="compConPerson != null">
         comp_con_person,
       </if>
+      <if test="isCert != null">
+        is_cert,
+      </if>
       <if test="compConType != null">
         comp_con_type,
       </if>
@@ -247,14 +268,23 @@
       <if test="updateId != null">
         update_id,
       </if>
-      <if test="compIntroduction != null">
-        comp_introduction,
+      <if test="compSum != null">
+        comp_sum,
       </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
       <if test="compName != null">
         #{compName,jdbcType=VARCHAR},
       </if>
+      <if test="companyType != null">
+        #{companyType,jdbcType=VARCHAR},
+      </if>
+      <if test="compLevel != null">
+        #{compLevel,jdbcType=INTEGER},
+      </if>
+      <if test="compQual != null">
+        #{compQual,jdbcType=VARCHAR},
+      </if>
       <if test="compImgs != null">
         #{compImgs,jdbcType=VARCHAR},
       </if>
@@ -273,6 +303,9 @@
       <if test="compConPerson != null">
         #{compConPerson,jdbcType=VARCHAR},
       </if>
+      <if test="isCert != null">
+        #{isCert,jdbcType=INTEGER},
+      </if>
       <if test="compConType != null">
         #{compConType,jdbcType=VARCHAR},
       </if>
@@ -316,16 +349,16 @@
         #{createTime,jdbcType=TIMESTAMP},
       </if>
       <if test="createId != null">
-        #{createId,jdbcType=INTEGER},
+        #{createId,jdbcType=BIGINT},
       </if>
       <if test="updateTime != null">
         #{updateTime,jdbcType=TIMESTAMP},
       </if>
       <if test="updateId != null">
-        #{updateId,jdbcType=INTEGER},
+        #{updateId,jdbcType=BIGINT},
       </if>
-      <if test="compIntroduction != null">
-        #{compIntroduction,jdbcType=LONGVARCHAR},
+      <if test="compSum != null">
+        #{compSum,jdbcType=LONGVARCHAR},
       </if>
     </trim>
   </insert>
@@ -344,6 +377,15 @@
       <if test="record.compName != null">
         comp_name = #{record.compName,jdbcType=VARCHAR},
       </if>
+      <if test="record.companyType != null">
+        company_type = #{record.companyType,jdbcType=VARCHAR},
+      </if>
+      <if test="record.compLevel != null">
+        comp_level = #{record.compLevel,jdbcType=INTEGER},
+      </if>
+      <if test="record.compQual != null">
+        comp_qual = #{record.compQual,jdbcType=VARCHAR},
+      </if>
       <if test="record.compImgs != null">
         comp_imgs = #{record.compImgs,jdbcType=VARCHAR},
       </if>
@@ -362,6 +404,9 @@
       <if test="record.compConPerson != null">
         comp_con_person = #{record.compConPerson,jdbcType=VARCHAR},
       </if>
+      <if test="record.isCert != null">
+        is_cert = #{record.isCert,jdbcType=INTEGER},
+      </if>
       <if test="record.compConType != null">
         comp_con_type = #{record.compConType,jdbcType=VARCHAR},
       </if>
@@ -405,16 +450,16 @@
         create_time = #{record.createTime,jdbcType=TIMESTAMP},
       </if>
       <if test="record.createId != null">
-        create_id = #{record.createId,jdbcType=INTEGER},
+        create_id = #{record.createId,jdbcType=BIGINT},
       </if>
       <if test="record.updateTime != null">
         update_time = #{record.updateTime,jdbcType=TIMESTAMP},
       </if>
       <if test="record.updateId != null">
-        update_id = #{record.updateId,jdbcType=INTEGER},
+        update_id = #{record.updateId,jdbcType=BIGINT},
       </if>
-      <if test="record.compIntroduction != null">
-        comp_introduction = #{record.compIntroduction,jdbcType=LONGVARCHAR},
+      <if test="record.compSum != null">
+        comp_sum = #{record.compSum,jdbcType=LONGVARCHAR},
       </if>
     </set>
     <if test="_parameter != null">
@@ -425,12 +470,16 @@
     update ums_company_info
     set id = #{record.id,jdbcType=BIGINT},
       comp_name = #{record.compName,jdbcType=VARCHAR},
+      company_type = #{record.companyType,jdbcType=VARCHAR},
+      comp_level = #{record.compLevel,jdbcType=INTEGER},
+      comp_qual = #{record.compQual,jdbcType=VARCHAR},
       comp_imgs = #{record.compImgs,jdbcType=VARCHAR},
       comp_url = #{record.compUrl,jdbcType=VARCHAR},
       comp_prod_license_num = #{record.compProdLicenseNum,jdbcType=VARCHAR},
       comp_manage_license_num = #{record.compManageLicenseNum,jdbcType=VARCHAR},
       comp_social_code = #{record.compSocialCode,jdbcType=VARCHAR},
       comp_con_person = #{record.compConPerson,jdbcType=VARCHAR},
+      is_cert = #{record.isCert,jdbcType=INTEGER},
       comp_con_type = #{record.compConType,jdbcType=VARCHAR},
       comp_con_num = #{record.compConNum,jdbcType=VARCHAR},
       comp_qq = #{record.compQq,jdbcType=VARCHAR},
@@ -445,10 +494,10 @@
       latitude = #{record.latitude,jdbcType=VARCHAR},
       comp_status = #{record.compStatus,jdbcType=INTEGER},
       create_time = #{record.createTime,jdbcType=TIMESTAMP},
-      create_id = #{record.createId,jdbcType=INTEGER},
+      create_id = #{record.createId,jdbcType=BIGINT},
       update_time = #{record.updateTime,jdbcType=TIMESTAMP},
-      update_id = #{record.updateId,jdbcType=INTEGER},
-      comp_introduction = #{record.compIntroduction,jdbcType=LONGVARCHAR}
+      update_id = #{record.updateId,jdbcType=BIGINT},
+      comp_sum = #{record.compSum,jdbcType=LONGVARCHAR}
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
     </if>
@@ -457,12 +506,16 @@
     update ums_company_info
     set id = #{record.id,jdbcType=BIGINT},
       comp_name = #{record.compName,jdbcType=VARCHAR},
+      company_type = #{record.companyType,jdbcType=VARCHAR},
+      comp_level = #{record.compLevel,jdbcType=INTEGER},
+      comp_qual = #{record.compQual,jdbcType=VARCHAR},
       comp_imgs = #{record.compImgs,jdbcType=VARCHAR},
       comp_url = #{record.compUrl,jdbcType=VARCHAR},
       comp_prod_license_num = #{record.compProdLicenseNum,jdbcType=VARCHAR},
       comp_manage_license_num = #{record.compManageLicenseNum,jdbcType=VARCHAR},
       comp_social_code = #{record.compSocialCode,jdbcType=VARCHAR},
       comp_con_person = #{record.compConPerson,jdbcType=VARCHAR},
+      is_cert = #{record.isCert,jdbcType=INTEGER},
       comp_con_type = #{record.compConType,jdbcType=VARCHAR},
       comp_con_num = #{record.compConNum,jdbcType=VARCHAR},
       comp_qq = #{record.compQq,jdbcType=VARCHAR},
@@ -477,9 +530,9 @@
       latitude = #{record.latitude,jdbcType=VARCHAR},
       comp_status = #{record.compStatus,jdbcType=INTEGER},
       create_time = #{record.createTime,jdbcType=TIMESTAMP},
-      create_id = #{record.createId,jdbcType=INTEGER},
+      create_id = #{record.createId,jdbcType=BIGINT},
       update_time = #{record.updateTime,jdbcType=TIMESTAMP},
-      update_id = #{record.updateId,jdbcType=INTEGER}
+      update_id = #{record.updateId,jdbcType=BIGINT}
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
     </if>
@@ -490,6 +543,15 @@
       <if test="compName != null">
         comp_name = #{compName,jdbcType=VARCHAR},
       </if>
+      <if test="companyType != null">
+        company_type = #{companyType,jdbcType=VARCHAR},
+      </if>
+      <if test="compLevel != null">
+        comp_level = #{compLevel,jdbcType=INTEGER},
+      </if>
+      <if test="compQual != null">
+        comp_qual = #{compQual,jdbcType=VARCHAR},
+      </if>
       <if test="compImgs != null">
         comp_imgs = #{compImgs,jdbcType=VARCHAR},
       </if>
@@ -508,6 +570,9 @@
       <if test="compConPerson != null">
         comp_con_person = #{compConPerson,jdbcType=VARCHAR},
       </if>
+      <if test="isCert != null">
+        is_cert = #{isCert,jdbcType=INTEGER},
+      </if>
       <if test="compConType != null">
         comp_con_type = #{compConType,jdbcType=VARCHAR},
       </if>
@@ -551,16 +616,16 @@
         create_time = #{createTime,jdbcType=TIMESTAMP},
       </if>
       <if test="createId != null">
-        create_id = #{createId,jdbcType=INTEGER},
+        create_id = #{createId,jdbcType=BIGINT},
       </if>
       <if test="updateTime != null">
         update_time = #{updateTime,jdbcType=TIMESTAMP},
       </if>
       <if test="updateId != null">
-        update_id = #{updateId,jdbcType=INTEGER},
+        update_id = #{updateId,jdbcType=BIGINT},
       </if>
-      <if test="compIntroduction != null">
-        comp_introduction = #{compIntroduction,jdbcType=LONGVARCHAR},
+      <if test="compSum != null">
+        comp_sum = #{compSum,jdbcType=LONGVARCHAR},
       </if>
     </set>
     where id = #{id,jdbcType=BIGINT}
@@ -568,12 +633,16 @@
   <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.hwrj.cloud.admin.model.UmsCompanyInfo">
     update ums_company_info
     set comp_name = #{compName,jdbcType=VARCHAR},
+      company_type = #{companyType,jdbcType=VARCHAR},
+      comp_level = #{compLevel,jdbcType=INTEGER},
+      comp_qual = #{compQual,jdbcType=VARCHAR},
       comp_imgs = #{compImgs,jdbcType=VARCHAR},
       comp_url = #{compUrl,jdbcType=VARCHAR},
       comp_prod_license_num = #{compProdLicenseNum,jdbcType=VARCHAR},
       comp_manage_license_num = #{compManageLicenseNum,jdbcType=VARCHAR},
       comp_social_code = #{compSocialCode,jdbcType=VARCHAR},
       comp_con_person = #{compConPerson,jdbcType=VARCHAR},
+      is_cert = #{isCert,jdbcType=INTEGER},
       comp_con_type = #{compConType,jdbcType=VARCHAR},
       comp_con_num = #{compConNum,jdbcType=VARCHAR},
       comp_qq = #{compQq,jdbcType=VARCHAR},
@@ -588,21 +657,25 @@
       latitude = #{latitude,jdbcType=VARCHAR},
       comp_status = #{compStatus,jdbcType=INTEGER},
       create_time = #{createTime,jdbcType=TIMESTAMP},
-      create_id = #{createId,jdbcType=INTEGER},
+      create_id = #{createId,jdbcType=BIGINT},
       update_time = #{updateTime,jdbcType=TIMESTAMP},
-      update_id = #{updateId,jdbcType=INTEGER},
-      comp_introduction = #{compIntroduction,jdbcType=LONGVARCHAR}
+      update_id = #{updateId,jdbcType=BIGINT},
+      comp_sum = #{compSum,jdbcType=LONGVARCHAR}
     where id = #{id,jdbcType=BIGINT}
   </update>
   <update id="updateByPrimaryKey" parameterType="com.hwrj.cloud.admin.model.UmsCompanyInfo">
     update ums_company_info
     set comp_name = #{compName,jdbcType=VARCHAR},
+      company_type = #{companyType,jdbcType=VARCHAR},
+      comp_level = #{compLevel,jdbcType=INTEGER},
+      comp_qual = #{compQual,jdbcType=VARCHAR},
       comp_imgs = #{compImgs,jdbcType=VARCHAR},
       comp_url = #{compUrl,jdbcType=VARCHAR},
       comp_prod_license_num = #{compProdLicenseNum,jdbcType=VARCHAR},
       comp_manage_license_num = #{compManageLicenseNum,jdbcType=VARCHAR},
       comp_social_code = #{compSocialCode,jdbcType=VARCHAR},
       comp_con_person = #{compConPerson,jdbcType=VARCHAR},
+      is_cert = #{isCert,jdbcType=INTEGER},
       comp_con_type = #{compConType,jdbcType=VARCHAR},
       comp_con_num = #{compConNum,jdbcType=VARCHAR},
       comp_qq = #{compQq,jdbcType=VARCHAR},
@@ -617,9 +690,9 @@
       latitude = #{latitude,jdbcType=VARCHAR},
       comp_status = #{compStatus,jdbcType=INTEGER},
       create_time = #{createTime,jdbcType=TIMESTAMP},
-      create_id = #{createId,jdbcType=INTEGER},
+      create_id = #{createId,jdbcType=BIGINT},
       update_time = #{updateTime,jdbcType=TIMESTAMP},
-      update_id = #{updateId,jdbcType=INTEGER}
+      update_id = #{updateId,jdbcType=BIGINT}
     where id = #{id,jdbcType=BIGINT}
   </update>
 </mapper>

+ 25 - 25
forest-admin/admin-mbg/src/main/resources/com/hwrj/cloud/admin/mapper/UmsCompanyShopMapper.xml

@@ -2,14 +2,14 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.hwrj.cloud.admin.mapper.UmsCompanyShopMapper">
   <resultMap id="BaseResultMap" type="com.hwrj.cloud.admin.model.UmsCompanyShop">
-    <id column="id" jdbcType="INTEGER" property="id" />
-    <result column="comp_id" jdbcType="INTEGER" property="compId" />
+    <id column="id" jdbcType="BIGINT" property="id" />
+    <result column="comp_id" jdbcType="BIGINT" property="compId" />
     <result column="shop_type" jdbcType="VARCHAR" property="shopType" />
     <result column="shop_url" jdbcType="VARCHAR" property="shopUrl" />
     <result column="shop_address" jdbcType="VARCHAR" property="shopAddress" />
     <result column="shop_img" jdbcType="VARCHAR" property="shopImg" />
     <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
-    <result column="create_id" jdbcType="INTEGER" property="createId" />
+    <result column="create_id" jdbcType="BIGINT" property="createId" />
     <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
     <result column="shop_status" jdbcType="INTEGER" property="shopStatus" />
   </resultMap>
@@ -89,15 +89,15 @@
       order by ${orderByClause}
     </if>
   </select>
-  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
     select 
     <include refid="Base_Column_List" />
     from ums_company_shop
-    where id = #{id,jdbcType=INTEGER}
+    where id = #{id,jdbcType=BIGINT}
   </select>
-  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
     delete from ums_company_shop
-    where id = #{id,jdbcType=INTEGER}
+    where id = #{id,jdbcType=BIGINT}
   </delete>
   <delete id="deleteByExample" parameterType="com.hwrj.cloud.admin.model.UmsCompanyShopExample">
     delete from ums_company_shop
@@ -106,20 +106,20 @@
     </if>
   </delete>
   <insert id="insert" parameterType="com.hwrj.cloud.admin.model.UmsCompanyShop">
-    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
+    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
       SELECT LAST_INSERT_ID()
     </selectKey>
     insert into ums_company_shop (comp_id, shop_type, shop_url, 
       shop_address, shop_img, create_time, 
       create_id, update_time, shop_status
       )
-    values (#{compId,jdbcType=INTEGER}, #{shopType,jdbcType=VARCHAR}, #{shopUrl,jdbcType=VARCHAR}, 
+    values (#{compId,jdbcType=BIGINT}, #{shopType,jdbcType=VARCHAR}, #{shopUrl,jdbcType=VARCHAR}, 
       #{shopAddress,jdbcType=VARCHAR}, #{shopImg,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
-      #{createId,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, #{shopStatus,jdbcType=INTEGER}
+      #{createId,jdbcType=BIGINT}, #{updateTime,jdbcType=TIMESTAMP}, #{shopStatus,jdbcType=INTEGER}
       )
   </insert>
   <insert id="insertSelective" parameterType="com.hwrj.cloud.admin.model.UmsCompanyShop">
-    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
+    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
       SELECT LAST_INSERT_ID()
     </selectKey>
     insert into ums_company_shop
@@ -154,7 +154,7 @@
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
       <if test="compId != null">
-        #{compId,jdbcType=INTEGER},
+        #{compId,jdbcType=BIGINT},
       </if>
       <if test="shopType != null">
         #{shopType,jdbcType=VARCHAR},
@@ -172,7 +172,7 @@
         #{createTime,jdbcType=TIMESTAMP},
       </if>
       <if test="createId != null">
-        #{createId,jdbcType=INTEGER},
+        #{createId,jdbcType=BIGINT},
       </if>
       <if test="updateTime != null">
         #{updateTime,jdbcType=TIMESTAMP},
@@ -192,10 +192,10 @@
     update ums_company_shop
     <set>
       <if test="record.id != null">
-        id = #{record.id,jdbcType=INTEGER},
+        id = #{record.id,jdbcType=BIGINT},
       </if>
       <if test="record.compId != null">
-        comp_id = #{record.compId,jdbcType=INTEGER},
+        comp_id = #{record.compId,jdbcType=BIGINT},
       </if>
       <if test="record.shopType != null">
         shop_type = #{record.shopType,jdbcType=VARCHAR},
@@ -213,7 +213,7 @@
         create_time = #{record.createTime,jdbcType=TIMESTAMP},
       </if>
       <if test="record.createId != null">
-        create_id = #{record.createId,jdbcType=INTEGER},
+        create_id = #{record.createId,jdbcType=BIGINT},
       </if>
       <if test="record.updateTime != null">
         update_time = #{record.updateTime,jdbcType=TIMESTAMP},
@@ -228,14 +228,14 @@
   </update>
   <update id="updateByExample" parameterType="map">
     update ums_company_shop
-    set id = #{record.id,jdbcType=INTEGER},
-      comp_id = #{record.compId,jdbcType=INTEGER},
+    set id = #{record.id,jdbcType=BIGINT},
+      comp_id = #{record.compId,jdbcType=BIGINT},
       shop_type = #{record.shopType,jdbcType=VARCHAR},
       shop_url = #{record.shopUrl,jdbcType=VARCHAR},
       shop_address = #{record.shopAddress,jdbcType=VARCHAR},
       shop_img = #{record.shopImg,jdbcType=VARCHAR},
       create_time = #{record.createTime,jdbcType=TIMESTAMP},
-      create_id = #{record.createId,jdbcType=INTEGER},
+      create_id = #{record.createId,jdbcType=BIGINT},
       update_time = #{record.updateTime,jdbcType=TIMESTAMP},
       shop_status = #{record.shopStatus,jdbcType=INTEGER}
     <if test="_parameter != null">
@@ -246,7 +246,7 @@
     update ums_company_shop
     <set>
       <if test="compId != null">
-        comp_id = #{compId,jdbcType=INTEGER},
+        comp_id = #{compId,jdbcType=BIGINT},
       </if>
       <if test="shopType != null">
         shop_type = #{shopType,jdbcType=VARCHAR},
@@ -264,7 +264,7 @@
         create_time = #{createTime,jdbcType=TIMESTAMP},
       </if>
       <if test="createId != null">
-        create_id = #{createId,jdbcType=INTEGER},
+        create_id = #{createId,jdbcType=BIGINT},
       </if>
       <if test="updateTime != null">
         update_time = #{updateTime,jdbcType=TIMESTAMP},
@@ -273,19 +273,19 @@
         shop_status = #{shopStatus,jdbcType=INTEGER},
       </if>
     </set>
-    where id = #{id,jdbcType=INTEGER}
+    where id = #{id,jdbcType=BIGINT}
   </update>
   <update id="updateByPrimaryKey" parameterType="com.hwrj.cloud.admin.model.UmsCompanyShop">
     update ums_company_shop
-    set comp_id = #{compId,jdbcType=INTEGER},
+    set comp_id = #{compId,jdbcType=BIGINT},
       shop_type = #{shopType,jdbcType=VARCHAR},
       shop_url = #{shopUrl,jdbcType=VARCHAR},
       shop_address = #{shopAddress,jdbcType=VARCHAR},
       shop_img = #{shopImg,jdbcType=VARCHAR},
       create_time = #{createTime,jdbcType=TIMESTAMP},
-      create_id = #{createId,jdbcType=INTEGER},
+      create_id = #{createId,jdbcType=BIGINT},
       update_time = #{updateTime,jdbcType=TIMESTAMP},
       shop_status = #{shopStatus,jdbcType=INTEGER}
-    where id = #{id,jdbcType=INTEGER}
+    where id = #{id,jdbcType=BIGINT}
   </update>
 </mapper>

+ 1 - 1
forest-admin/admin-mbg/src/main/resources/generatorConfig.xml

@@ -37,7 +37,7 @@
         <javaClientGenerator type="XMLMAPPER" targetPackage="com.hwrj.cloud.admin.mapper"
                              targetProject="forest-admin\admin-mbg\src\main\java"/>
         <!--生成全部表tableName设为%-->
-        <table tableName="%">
+        <table tableName="ums_company%">
             <generatedKey column="id" sqlStatement="MySql" identity="true"/>
         </table>
     </context>

+ 258 - 0
forest-admin/admin-server/admin-server.iml

@@ -0,0 +1,258 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
+  <component name="FacetManager">
+    <facet type="Spring" name="Spring">
+      <configuration />
+    </facet>
+    <facet type="web" name="Web">
+      <configuration>
+        <webroots />
+        <sourceRoots>
+          <root url="file://$MODULE_DIR$/src/main/java" />
+          <root url="file://$MODULE_DIR$/src/main/resources" />
+        </sourceRoots>
+      </configuration>
+    </facet>
+  </component>
+  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
+    <output url="file://$MODULE_DIR$/target/classes" />
+    <output-test url="file://$MODULE_DIR$/target/test-classes" />
+    <content url="file://$MODULE_DIR$">
+      <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
+      <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
+      <excludeFolder url="file://$MODULE_DIR$/target" />
+    </content>
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+    <orderEntry type="module" module-name="forest-common" />
+    <orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-starter:1.2.10" level="project" />
+    <orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.2" level="project" />
+    <orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:1.3.2" level="project" />
+    <orderEntry type="library" name="Maven: org.mybatis:mybatis:3.4.6" level="project" />
+    <orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:1.3.2" level="project" />
+    <orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-autoconfigure:1.2.10" level="project" />
+    <orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper:5.1.8" level="project" />
+    <orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:1.2" level="project" />
+    <orderEntry type="library" name="Maven: io.springfox:springfox-swagger2:2.9.2" level="project" />
+    <orderEntry type="library" name="Maven: io.swagger:swagger-annotations:1.6.0" level="project" />
+    <orderEntry type="library" name="Maven: io.swagger:swagger-models:1.6.0" level="project" />
+    <orderEntry type="library" name="Maven: io.springfox:springfox-spi:2.9.2" level="project" />
+    <orderEntry type="library" name="Maven: io.springfox:springfox-core:2.9.2" level="project" />
+    <orderEntry type="library" name="Maven: io.springfox:springfox-schema:2.9.2" level="project" />
+    <orderEntry type="library" name="Maven: io.springfox:springfox-swagger-common:2.9.2" level="project" />
+    <orderEntry type="library" name="Maven: io.springfox:springfox-spring-web:2.9.2" level="project" />
+    <orderEntry type="library" name="Maven: com.google.guava:guava:25.1-jre" level="project" />
+    <orderEntry type="library" name="Maven: com.google.code.findbugs:jsr305:3.0.2" level="project" />
+    <orderEntry type="library" name="Maven: org.checkerframework:checker-qual:2.0.0" level="project" />
+    <orderEntry type="library" name="Maven: com.google.errorprone:error_prone_annotations:2.1.3" level="project" />
+    <orderEntry type="library" name="Maven: com.google.j2objc:j2objc-annotations:1.1" level="project" />
+    <orderEntry type="library" name="Maven: org.codehaus.mojo:animal-sniffer-annotations:1.14" level="project" />
+    <orderEntry type="library" name="Maven: com.fasterxml:classmate:1.4.0" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-core:1.2.0.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-metadata:1.2.0.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.mapstruct:mapstruct:1.2.0.Final" level="project" />
+    <orderEntry type="library" name="Maven: io.springfox:springfox-swagger-ui:2.9.2" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:2.1.3.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-beans:5.1.14.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.projectlombok:lombok:1.18.12" level="project" />
+    <orderEntry type="library" name="Maven: io.jsonwebtoken:jjwt:0.9.0" level="project" />
+    <orderEntry type="library" name="Maven: cn.hutool:hutool-all:4.5.7" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.2.0" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.1.14.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-tx:5.1.14.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: com.aliyun:aliyun-java-sdk-core:4.0.3" level="project" />
+    <orderEntry type="library" name="Maven: com.google.code.gson:gson:2.8.6" level="project" />
+    <orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.11" level="project" />
+    <orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.13" level="project" />
+    <orderEntry type="library" name="Maven: javax.xml.bind:jaxb-api:2.3.1" level="project" />
+    <orderEntry type="library" name="Maven: javax.activation:javax.activation-api:1.2.0" level="project" />
+    <orderEntry type="library" name="Maven: com.sun.xml.bind:jaxb-core:2.1.14" level="project" />
+    <orderEntry type="library" name="Maven: com.sun.xml.bind:jaxb-impl:2.1" level="project" />
+    <orderEntry type="library" name="Maven: javax.activation:activation:1.1.1" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-web:5.1.14.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: com.alibaba:fastjson:1.2.73" level="project" />
+    <orderEntry type="module" module-name="admin-common" />
+    <orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-openfeign:2.1.0.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter:2.1.0.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.security:spring-security-rsa:1.0.7.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.bouncycastle:bcpkix-jdk15on:1.60" level="project" />
+    <orderEntry type="library" name="Maven: org.bouncycastle:bcprov-jdk15on:1.60" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-openfeign-core:2.1.0.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: io.github.openfeign.form:feign-form-spring:3.5.0" level="project" />
+    <orderEntry type="library" name="Maven: io.github.openfeign.form:feign-form:3.5.0" level="project" />
+    <orderEntry type="library" name="Maven: commons-fileupload:commons-fileupload:1.3.3" level="project" />
+    <orderEntry type="library" name="Maven: io.github.openfeign:feign-core:10.1.0" level="project" />
+    <orderEntry type="library" name="Maven: io.github.openfeign:feign-slf4j:10.1.0" level="project" />
+    <orderEntry type="library" name="Maven: io.github.openfeign:feign-hystrix:10.1.0" level="project" />
+    <orderEntry type="library" name="Maven: com.netflix.archaius:archaius-core:0.7.6" level="project" />
+    <orderEntry type="library" name="Maven: com.netflix.hystrix:hystrix-core:1.5.18" level="project" />
+    <orderEntry type="module" module-name="forest-security" />
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-security:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.security:spring-security-config:5.1.8.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.security:spring-security-core:5.1.8.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.security:spring-security-web:5.1.8.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-redis:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.data:spring-data-redis:2.1.16.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.data:spring-data-keyvalue:2.1.16.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-oxm:5.1.14.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-context-support:5.1.14.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: io.lettuce:lettuce-core:5.1.8.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: io.netty:netty-common:4.1.45.Final" level="project" />
+    <orderEntry type="library" name="Maven: io.netty:netty-handler:4.1.45.Final" level="project" />
+    <orderEntry type="library" name="Maven: io.netty:netty-buffer:4.1.45.Final" level="project" />
+    <orderEntry type="library" name="Maven: io.netty:netty-codec:4.1.45.Final" level="project" />
+    <orderEntry type="library" name="Maven: io.netty:netty-transport:4.1.45.Final" level="project" />
+    <orderEntry type="library" name="Maven: io.netty:netty-resolver:4.1.45.Final" level="project" />
+    <orderEntry type="library" name="Maven: io.projectreactor:reactor-core:3.2.15.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.reactivestreams:reactive-streams:1.0.3" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.3" level="project" />
+    <orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.3" level="project" />
+    <orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.11.2" level="project" />
+    <orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.11.2" level="project" />
+    <orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.30" level="project" />
+    <orderEntry type="library" name="Maven: javax.annotation:javax.annotation-api:1.3.2" level="project" />
+    <orderEntry type="library" name="Maven: org.yaml:snakeyaml:1.23" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-json:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.10" level="project" />
+    <orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.10" level="project" />
+    <orderEntry type="library" name="Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.10" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-tomcat:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-core:9.0.31" level="project" />
+    <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-el:9.0.31" level="project" />
+    <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-websocket:9.0.31" level="project" />
+    <orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.0.18.Final" level="project" />
+    <orderEntry type="library" name="Maven: javax.validation:validation-api:2.0.1.Final" level="project" />
+    <orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.3.3.Final" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-webmvc:5.1.14.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-context:5.1.14.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-expression:5.1.14.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: com.alibaba.cloud:spring-cloud-starter-alibaba-nacos-discovery:2.1.2.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: com.alibaba.nacos:nacos-client:1.2.1" level="project" />
+    <orderEntry type="library" name="Maven: com.alibaba.nacos:nacos-common:1.2.1" level="project" />
+    <orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.8.1" level="project" />
+    <orderEntry type="library" name="Maven: com.alibaba.nacos:nacos-api:1.2.1" level="project" />
+    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.9.10" level="project" />
+    <orderEntry type="library" name="Maven: io.prometheus:simpleclient:0.5.0" level="project" />
+    <orderEntry type="library" name="Maven: com.alibaba.spring:spring-context-support:1.0.6" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-commons:2.1.0.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.security:spring-security-crypto:5.1.8.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-context:2.1.0.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-netflix-ribbon:2.1.0.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-netflix-ribbon:2.1.0.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-netflix-archaius:2.1.0.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-netflix-archaius:2.1.0.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: commons-configuration:commons-configuration:1.8" level="project" />
+    <orderEntry type="library" name="Maven: com.netflix.ribbon:ribbon:2.3.0" level="project" />
+    <orderEntry type="library" scope="RUNTIME" name="Maven: com.netflix.ribbon:ribbon-transport:2.3.0" level="project" />
+    <orderEntry type="library" scope="RUNTIME" name="Maven: io.reactivex:rxnetty-contexts:0.4.9" level="project" />
+    <orderEntry type="library" scope="RUNTIME" name="Maven: io.reactivex:rxnetty-servo:0.4.9" level="project" />
+    <orderEntry type="library" scope="RUNTIME" name="Maven: javax.inject:javax.inject:1" level="project" />
+    <orderEntry type="library" scope="RUNTIME" name="Maven: io.reactivex:rxnetty:0.4.9" level="project" />
+    <orderEntry type="library" name="Maven: com.netflix.ribbon:ribbon-core:2.3.0" level="project" />
+    <orderEntry type="library" name="Maven: commons-lang:commons-lang:2.6" level="project" />
+    <orderEntry type="library" name="Maven: com.netflix.ribbon:ribbon-httpclient:2.3.0" level="project" />
+    <orderEntry type="library" scope="RUNTIME" name="Maven: commons-collections:commons-collections:3.2.2" level="project" />
+    <orderEntry type="library" scope="RUNTIME" name="Maven: com.sun.jersey:jersey-client:1.19.1" level="project" />
+    <orderEntry type="library" scope="RUNTIME" name="Maven: com.sun.jersey:jersey-core:1.19.1" level="project" />
+    <orderEntry type="library" scope="RUNTIME" name="Maven: javax.ws.rs:jsr311-api:1.1.1" level="project" />
+    <orderEntry type="library" scope="RUNTIME" name="Maven: com.sun.jersey.contribs:jersey-apache-client4:1.19.1" level="project" />
+    <orderEntry type="library" scope="RUNTIME" name="Maven: com.netflix.servo:servo-core:0.12.21" level="project" />
+    <orderEntry type="library" scope="RUNTIME" name="Maven: com.netflix.netflix-commons:netflix-commons-util:0.3.0" level="project" />
+    <orderEntry type="library" name="Maven: com.netflix.ribbon:ribbon-loadbalancer:2.3.0" level="project" />
+    <orderEntry type="library" scope="RUNTIME" name="Maven: com.netflix.netflix-commons:netflix-statistics:0.1.1" level="project" />
+    <orderEntry type="library" name="Maven: io.reactivex:rxjava:1.3.8" level="project" />
+    <orderEntry type="library" name="Maven: org.junit.jupiter:junit-jupiter:5.5.2" level="project" />
+    <orderEntry type="library" name="Maven: org.junit.jupiter:junit-jupiter-api:5.3.2" level="project" />
+    <orderEntry type="library" name="Maven: org.apiguardian:apiguardian-api:1.0.0" level="project" />
+    <orderEntry type="library" name="Maven: org.opentest4j:opentest4j:1.1.1" level="project" />
+    <orderEntry type="library" name="Maven: org.junit.platform:junit-platform-commons:1.3.2" level="project" />
+    <orderEntry type="library" name="Maven: org.junit.jupiter:junit-jupiter-params:5.3.2" level="project" />
+    <orderEntry type="library" scope="RUNTIME" name="Maven: org.junit.jupiter:junit-jupiter-engine:5.3.2" level="project" />
+    <orderEntry type="library" scope="RUNTIME" name="Maven: org.junit.platform:junit-platform-engine:1.3.2" level="project" />
+    <orderEntry type="library" name="Maven: org.mockito:mockito-junit-jupiter:2.23.4" level="project" />
+    <orderEntry type="library" name="Maven: com.alibaba.cloud:spring-cloud-starter-alibaba-nacos-config:2.1.2.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-zipkin:2.1.0.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-sleuth:2.1.0.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-sleuth-core:2.1.0.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.aspectj:aspectjrt:1.9.5" level="project" />
+    <orderEntry type="library" name="Maven: io.zipkin.brave:brave:5.6.1" level="project" />
+    <orderEntry type="library" name="Maven: io.zipkin.brave:brave-context-log4j2:5.6.1" level="project" />
+    <orderEntry type="library" name="Maven: io.zipkin.brave:brave-instrumentation-spring-web:5.6.1" level="project" />
+    <orderEntry type="library" name="Maven: io.zipkin.brave:brave-instrumentation-http:5.6.1" level="project" />
+    <orderEntry type="library" name="Maven: io.zipkin.brave:brave-instrumentation-spring-rabbit:5.6.1" level="project" />
+    <orderEntry type="library" name="Maven: io.zipkin.brave:brave-instrumentation-kafka-clients:5.6.1" level="project" />
+    <orderEntry type="library" name="Maven: io.zipkin.brave:brave-instrumentation-httpclient:5.6.1" level="project" />
+    <orderEntry type="library" name="Maven: io.zipkin.brave:brave-instrumentation-httpasyncclient:5.6.1" level="project" />
+    <orderEntry type="library" name="Maven: io.zipkin.brave:brave-instrumentation-spring-webmvc:5.6.1" level="project" />
+    <orderEntry type="library" name="Maven: io.zipkin.brave:brave-instrumentation-servlet:5.6.1" level="project" />
+    <orderEntry type="library" name="Maven: io.zipkin.brave:brave-instrumentation-jms:5.6.1" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-sleuth-zipkin:2.1.0.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: io.zipkin.zipkin2:zipkin:2.12.0" level="project" />
+    <orderEntry type="library" name="Maven: io.zipkin.reporter2:zipkin-reporter:2.7.14" level="project" />
+    <orderEntry type="library" name="Maven: io.zipkin.reporter2:zipkin-sender-kafka11:2.7.14" level="project" />
+    <orderEntry type="library" name="Maven: io.zipkin.reporter2:zipkin-sender-amqp-client:2.7.14" level="project" />
+    <orderEntry type="library" name="Maven: de.codecentric:spring-boot-admin-starter-client:2.1.6" level="project" />
+    <orderEntry type="library" name="Maven: de.codecentric:spring-boot-admin-client:2.1.6" level="project" />
+    <orderEntry type="library" name="Maven: org.jolokia:jolokia-core:1.6.2" level="project" />
+    <orderEntry type="library" name="Maven: com.googlecode.json-simple:json-simple:1.1.1" level="project" />
+    <orderEntry type="library" name="Maven: net.logstash.logback:logstash-logback-encoder:5.2" level="project" />
+    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.9.10.3" level="project" />
+    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.9.10" level="project" />
+    <orderEntry type="module" module-name="admin-mbg" />
+    <orderEntry type="library" name="Maven: com.alibaba:druid-spring-boot-starter:1.1.10" level="project" />
+    <orderEntry type="library" name="Maven: com.alibaba:druid:1.1.10" level="project" />
+    <orderEntry type="library" name="Maven: org.mybatis.generator:mybatis-generator-core:1.3.7" level="project" />
+    <orderEntry type="library" name="Maven: mysql:mysql-connector-java:8.0.16" level="project" />
+    <orderEntry type="library" name="Maven: com.google.protobuf:protobuf-java:3.6.1" level="project" />
+    <orderEntry type="library" name="Maven: org.apache.poi:poi:3.17" level="project" />
+    <orderEntry type="library" name="Maven: commons-codec:commons-codec:1.11" level="project" />
+    <orderEntry type="library" name="Maven: org.apache.commons:commons-collections4:4.1" level="project" />
+    <orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml:3.17" level="project" />
+    <orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml-schemas:3.17" level="project" />
+    <orderEntry type="library" name="Maven: org.apache.xmlbeans:xmlbeans:2.6.0" level="project" />
+    <orderEntry type="library" name="Maven: stax:stax-api:1.0.1" level="project" />
+    <orderEntry type="library" name="Maven: com.github.virtuald:curvesapi:1.04" level="project" />
+    <orderEntry type="library" name="Maven: com.alibaba:easyexcel:2.2.6" level="project" />
+    <orderEntry type="library" name="Maven: cglib:cglib:3.1" level="project" />
+    <orderEntry type="library" name="Maven: org.ow2.asm:asm:4.2" level="project" />
+    <orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.30" level="project" />
+    <orderEntry type="library" name="Maven: org.ehcache:ehcache:3.6.3" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-test:5.1.7.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-core:5.1.14.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.1.14.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: commons-io:commons-io:1.3.2" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-actuator:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-actuator-autoconfigure:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-actuator:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: io.micrometer:micrometer-core:1.1.10" level="project" />
+    <orderEntry type="library" name="Maven: org.hdrhistogram:HdrHistogram:2.1.9" level="project" />
+    <orderEntry type="library" name="Maven: org.latencyutils:LatencyUtils:2.0.3" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-aop:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-aop:5.1.14.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.aspectj:aspectjweaver:1.9.5" level="project" />
+    <orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-starter-test:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-test:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-test-autoconfigure:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" scope="TEST" name="Maven: com.jayway.jsonpath:json-path:2.4.0" level="project" />
+    <orderEntry type="library" scope="TEST" name="Maven: net.minidev:json-smart:2.3" level="project" />
+    <orderEntry type="library" scope="TEST" name="Maven: net.minidev:accessors-smart:1.2" level="project" />
+    <orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" />
+    <orderEntry type="library" scope="TEST" name="Maven: org.assertj:assertj-core:3.11.1" level="project" />
+    <orderEntry type="library" name="Maven: org.mockito:mockito-core:2.23.4" level="project" />
+    <orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy:1.9.16" level="project" />
+    <orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy-agent:1.9.16" level="project" />
+    <orderEntry type="library" name="Maven: org.objenesis:objenesis:2.6" level="project" />
+    <orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
+    <orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-library:1.3" level="project" />
+    <orderEntry type="library" scope="TEST" name="Maven: org.skyscreamer:jsonassert:1.5.0" level="project" />
+    <orderEntry type="library" scope="TEST" name="Maven: com.vaadin.external.google:android-json:0.0.20131108.vaadin1" level="project" />
+    <orderEntry type="library" scope="TEST" name="Maven: org.xmlunit:xmlunit-core:2.6.3" level="project" />
+  </component>
+</module>

+ 12 - 0
forest-admin/admin-server/pom.xml

@@ -80,6 +80,18 @@
             <version>2.2.6</version>
         </dependency>
 
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-test</artifactId>
+            <version>5.1.7.RELEASE</version>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.commons</groupId>
+            <artifactId>commons-io</artifactId>
+            <version>1.3.2</version>
+        </dependency>
+
     </dependencies>
 
     <build>

+ 39 - 0
forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/controller/BigScreamController.java

@@ -0,0 +1,39 @@
+package com.hwrj.cloud.admin.controller;
+
+import com.hwrj.cloud.admin.service.BigScreamService;
+import com.hwrj.cloud.common.api.CommonResult;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+import java.util.Map;
+
+@RestController
+@Api("大屏数据展示")
+@RequestMapping("/big")
+@Slf4j
+public class BigScreamController  {
+    @Autowired
+    private BigScreamService bigScreamService;
+
+    @ApiOperation("获取平台信息")
+    @GetMapping("/1/data1")
+    public CommonResult data11(@RequestParam(value = "id",required = false,defaultValue = "1")Long id){
+        Map<String, Object> map = bigScreamService.data1(id);
+        return CommonResult.success(map);
+    }
+
+    @ApiOperation("获取供应商分布信息")
+    @GetMapping("/1/data2")
+    public CommonResult data12(@RequestParam(value = "compType",required = false)String compType){
+        List<Map<String, Object>> map = bigScreamService.date2(compType);
+        return CommonResult.success(map);
+    }
+
+}

+ 107 - 8
forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/controller/UmsCompanyController.java

@@ -1,37 +1,136 @@
 package com.hwrj.cloud.admin.controller;
 
 
+import com.hwrj.cloud.admin.dto.UmsCompanyDto;
 import com.hwrj.cloud.admin.excelEntity.UmsCompanyInfoExcel;
+import com.hwrj.cloud.admin.model.UmsAdmin;
+import com.hwrj.cloud.admin.service.UmsAdminService;
+import com.hwrj.cloud.admin.service.UmsCompanyService;
 import com.hwrj.cloud.admin.util.EasyExcelUtil;
+import com.hwrj.cloud.common.api.CommonPage;
+import com.hwrj.cloud.common.api.CommonResult;
 import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
 import io.swagger.models.Model;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.util.StringUtils;
+import org.springframework.web.bind.annotation.*;
 import org.springframework.web.multipart.MultipartFile;
 
 import javax.servlet.http.HttpServletRequest;
+import java.security.Principal;
+import java.util.ArrayList;
 import java.util.List;
 
 @Controller
 @Api(tags = "UmsCompanyController", description = "供应商信息")
 @RequestMapping("/umsCompany")
+@Slf4j
 public class UmsCompanyController {
-    //导入excel
+
+
+    @Autowired
+    private UmsCompanyService umsCompanyService;
+
+    @Autowired
+    private UmsAdminService adminService;
+
+    @ApiOperation(value = "添加供应商")
+    @PutMapping("/info/add")
+    @ResponseBody
+    public CommonResult infoAdd(@RequestBody UmsCompanyDto dto,Principal principal){
+        Long userId = getUserId(principal);
+
+        dto.setCreateId(userId);
+        umsCompanyService.add(dto);
+        return CommonResult.success();
+    }
+
+    @ApiOperation(value = "修改供应商")
+    @PutMapping("/info/update")
+    @ResponseBody
+    public CommonResult infoUpdate(@RequestBody UmsCompanyDto dto,Principal principal){
+        Long userId = getUserId(principal);
+
+        dto.setCreateId(userId);
+        umsCompanyService.update(dto);
+        return CommonResult.success();
+    }
+
+    @ApiOperation(value = "删除供应商")
+    @GetMapping("/info/delete")
+    @ResponseBody
+    public CommonResult infoDelete(@RequestParam(value = "compId")Long compId,Principal principal){
+        Long userId = getUserId(principal);
+
+        umsCompanyService.delete(compId);
+        return CommonResult.success();
+    }
+
+    @ApiOperation(value = "获取供应商列表")
+    @GetMapping("/dt/list")
+    @ResponseBody
+    public CommonResult list(@RequestParam(value = "pageSize")int pageSize,
+                             @RequestParam(value = "pageNo")int pageNo){
+
+        List<UmsCompanyDto> infoList = umsCompanyService.getCompanyInfoList(pageSize, pageNo);
+        return CommonResult.success(CommonPage.restPage(infoList));
+    }
+
+    @ApiOperation(value = "获取供应商详细信息")
+    @GetMapping("/dt/detail")
+    @ResponseBody
+    public CommonResult detail(@RequestParam(value = "compId")Long compId){
+
+        UmsCompanyDto dto = umsCompanyService.getDetailCompany(compId);
+        return CommonResult.success(dto);
+    }
+
+    /**
+     * 导入excel
+     * @param request
+     * @param model
+     * @param files
+     * @return
+     * @throws Exception
+     */
+    @ApiOperation(value = "供应商导入")
     @RequestMapping(value = "excelImport", method = {RequestMethod.GET, RequestMethod.POST })
-    public String excelImport(HttpServletRequest request, Model model, @RequestParam("uploadFile") MultipartFile[] files) throws Exception {
+    @ResponseBody
+    public CommonResult excelImport(HttpServletRequest request, Model model, @RequestParam("uploadFile") MultipartFile[] files, Principal principal) throws Exception {
+        Long userId = getUserId(principal);
+        List<UmsCompanyInfoExcel> listAll = new ArrayList<>();
         if(files != null && files.length > 0){
             MultipartFile file = files[0];
-            List<Object> list = EasyExcelUtil.readExcel(file, new UmsCompanyInfoExcel(),1,1);
+            List<Object> list = EasyExcelUtil.readExcel(file, new UmsCompanyInfoExcel(),1,2);
             if(list != null && list.size() > 0){
                 for(Object o : list){
                     UmsCompanyInfoExcel umsCompanyInfoExcel = (UmsCompanyInfoExcel) o;
-                    System.out.println(umsCompanyInfoExcel.getCompIntroduction()+"/"+umsCompanyInfoExcel.getCompConPerson()+"/"+umsCompanyInfoExcel.getCityId());
+                    umsCompanyInfoExcel.setCreateId(userId);
+                    listAll.add(umsCompanyInfoExcel);
                 }
             }
         }
-        return "index";
+        umsCompanyService.importExcel(listAll);
+
+        return CommonResult.success(listAll);
+    }
+
+    public Long getUserId(Principal principal){
+        Long userId = null;
+        try {
+            String username = principal.getName();
+
+            if (!StringUtils.isEmpty(username)){
+                UmsAdmin umsAdmin = adminService.getAdminByUsername(username);
+                userId = umsAdmin.getId();
+            }
+        }catch (Exception e){
+            log.info("获取用户id失败");
+        }
+        return userId;
     }
 
 }

+ 12 - 0
forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/dao/BigScreamDao.java

@@ -0,0 +1,12 @@
+package com.hwrj.cloud.admin.dao;
+
+import io.lettuce.core.dynamic.annotation.Param;
+
+import java.util.List;
+import java.util.Map;
+
+public interface BigScreamDao {
+    public Map<String,Object> data1(@Param("id")Long id);
+
+    public List<Map<String,Object>> data2(@Param("compType")String compType);
+}

+ 24 - 0
forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/dao/UmsCompanyShopDao.java

@@ -0,0 +1,24 @@
+package com.hwrj.cloud.admin.dao;
+
+import com.hwrj.cloud.admin.model.UmsCompanyFile;
+import com.hwrj.cloud.admin.model.UmsCompanyShop;
+
+import java.util.List;
+
+public interface UmsCompanyShopDao {
+    /**
+     * 批量添加shop
+     * @param list
+     * @return
+     */
+    int addUmsCompanyShopList(List<UmsCompanyShop> list);
+
+    /**
+     * 批量添加files
+     * @param list
+     * @return
+     */
+    int insertFile(List<UmsCompanyFile> list);
+
+
+}

+ 36 - 0
forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/dto/UmsCompanyDto.java

@@ -0,0 +1,36 @@
+package com.hwrj.cloud.admin.dto;
+
+import com.hwrj.cloud.admin.model.UmsCompanyFile;
+import com.hwrj.cloud.admin.model.UmsCompanyInfo;
+import com.hwrj.cloud.admin.model.UmsCompanyShop;
+import com.hwrj.cloud.admin.model.UmsMemberPlatform;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.util.List;
+
+@ApiModel(value = "供应商信息")
+public class UmsCompanyDto extends UmsCompanyInfo  {
+
+    @ApiModelProperty(value = "供应商图片信息")
+    private List<UmsCompanyFile> files;
+
+    @ApiModelProperty(value = "供应商店铺信息")
+    private List<UmsCompanyShop> shops;
+
+    public List<UmsCompanyFile> getFiles() {
+        return files;
+    }
+
+    public void setFiles(List<UmsCompanyFile> files) {
+        this.files = files;
+    }
+
+    public List<UmsCompanyShop> getShops() {
+        return shops;
+    }
+
+    public void setShops(List<UmsCompanyShop> shops) {
+        this.shops = shops;
+    }
+}

+ 185 - 31
forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/excelEntity/UmsCompanyInfoExcel.java

@@ -1,9 +1,11 @@
 package com.hwrj.cloud.admin.excelEntity;
 
 import com.alibaba.excel.annotation.ExcelProperty;
+import com.alibaba.excel.annotation.format.NumberFormat;
 import com.alibaba.excel.metadata.BaseRowModel;
 import io.swagger.annotations.ApiModelProperty;
 
+import java.math.BigDecimal;
 import java.util.Date;
 
 public class UmsCompanyInfoExcel  extends BaseRowModel {
@@ -11,62 +13,123 @@ public class UmsCompanyInfoExcel  extends BaseRowModel {
     private Long id;
 
     @ApiModelProperty(value = "供应商名称")
-    @ExcelProperty(value = "供应商名称", index = 0)
+    @ExcelProperty(value = "供应商名称",index = 0)
     private String compName;
 
+    @ApiModelProperty(value = "供应商类型")
+    @ExcelProperty(value = "供应商类型",index = 1)
+    private String companyType;
+
+    @ApiModelProperty(value = "供应商评级")
+    @ExcelProperty(value = "供应商评级",index = 2)
+    @NumberFormat("#")
+    private Integer compLevel;
+
+    @ApiModelProperty(value = "供应商资质")
+    @ExcelProperty(value = "供应商资质",index = 3)
+    private String compQual;
+    @ApiModelProperty(value = "供应商图片")
+    @ExcelProperty(value = "供应商图片",index = 4)
+    private String imgs;
+    @ApiModelProperty(value = "供应商资质图片")
+    @ExcelProperty(value = "供应商资质图片",index = 5)
+    private String qualImgs;
+    @ApiModelProperty(value = "企业logo图片")
+    @ExcelProperty(value = "企业logo图片",index = 6)
+    private String logoImgs;
+    @ApiModelProperty(value = "公众号二维码图片")
+    @ExcelProperty(value = "公众号二维码图片",index = 7)
+    private String qrlImgs;
+    @ApiModelProperty(value = "淘宝店地址")
+    @ExcelProperty(value = "淘宝店地址",index = 8)
+    private String tbUrl;
+    @ApiModelProperty(value = "京东店地址")
+    @ExcelProperty(value = "京东店地址",index = 9)
+    private String jdUrl;
+    @ApiModelProperty(value = "自主商城地址")
+    @ExcelProperty(value = "自主商城地址",index = 10)
+    private String ownUrl;
+
+    @ApiModelProperty(value = "是否认证:0未认证,1认证")
+    @ExcelProperty(value = "是否认证",index = 11)
+    private Integer isCert;
+
+
     @ApiModelProperty(value = "供应商照片")
     private String compImgs;
 
     @ApiModelProperty(value = "供应商外部连接")
     private String compUrl;
 
-    @ApiModelProperty(value = "供应商生产许可证号")
+    @ApiModelProperty(value = "生产许可证号")
+    @ExcelProperty(value = "生产许可证号",index = 12)
     private String compProdLicenseNum;
 
-    @ApiModelProperty(value = "供应商经营许可证")
+    @ApiModelProperty(value = "经营许可证号")
+    @ExcelProperty(value = "经营许可证号",index = 13)
     private String compManageLicenseNum;
 
-    @ApiModelProperty(value = "供应商社会行用代码")
+    @ApiModelProperty(value = "社会信用代码")
+    @ExcelProperty(value = "社会信用代码",index = 14)
     private String compSocialCode;
 
-    @ApiModelProperty(value = "供应商联系人")
+
+
+
+
+    @ApiModelProperty(value = "联系人")
+    @ExcelProperty(value = "联系人",index = 15)
     private String compConPerson;
 
     @ApiModelProperty(value = "供应商联系方式")
+//    @ExcelProperty(value = "供应商联系方式",index = 0)
     private String compConType;
 
     @ApiModelProperty(value = "供应商联系账号")
+    @ExcelProperty(value = "供应商联系方式",index = 16)
     private String compConNum;
 
-    @ApiModelProperty(value = "供应商对外qq")
+    @ApiModelProperty(value = "对外企业qq")
+    @ExcelProperty(value = "对外企业qq",index = 17)
     private String compQq;
 
-    @ApiModelProperty(value = "供应商经营产平")
+    @ApiModelProperty(value = "经营产品")
+    @ExcelProperty(value = "经营产品",index = 18)
     private String compManageProduct;
 
-    @ApiModelProperty(value = "所在省id")
+    @ApiModelProperty(value = "简介")
+    @ExcelProperty(value = "简介",index = 19)
+    private String compSum;
+
+    @ApiModelProperty(value = "所在省")
+    @ExcelProperty(value = "所在省",index = 20)
     private String provinceId;
 
-    @ApiModelProperty(value = "所在市id")
+    @ApiModelProperty(value = "所在市")
+    @ExcelProperty(value = "所在市",index = 21)
     private String cityId;
 
-    @ApiModelProperty(value = "所在县id")
+    @ApiModelProperty(value = "所在县")
+    @ExcelProperty(value = "所在县",index = 22)
     private String countyId;
 
-    @ApiModelProperty(value = "所在镇id")
+    @ApiModelProperty(value = "所在镇")
     private String townId;
 
-    @ApiModelProperty(value = "所在乡id")
+    @ApiModelProperty(value = "所在乡")
     private String villageId;
 
     @ApiModelProperty(value = "详细位置")
+    @ExcelProperty(value = "详细位置",index = 23)
     private String detailAddress;
 
     @ApiModelProperty(value = "经度")
-    private String longitude;
+    @ExcelProperty(value = "经度",index = 24)
+    private BigDecimal longitude;
 
     @ApiModelProperty(value = "纬度")
-    private String latitude;
+    @ExcelProperty(value = "纬度",index = 25)
+    private BigDecimal latitude;
 
     @ApiModelProperty(value = "企业状态0可用,1,禁用,2删除")
     private Integer compStatus;
@@ -75,16 +138,15 @@ public class UmsCompanyInfoExcel  extends BaseRowModel {
     private Date createTime;
 
     @ApiModelProperty(value = "创建人")
-    private Integer createId;
+    private Long createId;
 
     @ApiModelProperty(value = "修改时间")
     private Date updateTime;
 
     @ApiModelProperty(value = "修改人id")
-    private Integer updateId;
+    private Long updateId;
+
 
-    @ApiModelProperty(value = "供应商简介")
-    private String compIntroduction;
 
     private static final long serialVersionUID = 1L;
 
@@ -104,6 +166,30 @@ public class UmsCompanyInfoExcel  extends BaseRowModel {
         this.compName = compName;
     }
 
+    public String getCompanyType() {
+        return companyType;
+    }
+
+    public void setCompanyType(String companyType) {
+        this.companyType = companyType;
+    }
+
+    public Integer getCompLevel() {
+        return compLevel;
+    }
+
+    public void setCompLevel(Integer compLevel) {
+        this.compLevel = compLevel;
+    }
+
+    public String getCompQual() {
+        return compQual;
+    }
+
+    public void setCompQual(String compQual) {
+        this.compQual = compQual;
+    }
+
     public String getCompImgs() {
         return compImgs;
     }
@@ -152,6 +238,70 @@ public class UmsCompanyInfoExcel  extends BaseRowModel {
         this.compConPerson = compConPerson;
     }
 
+    public Integer getIsCert() {
+        return isCert;
+    }
+
+    public String getImgs() {
+        return imgs;
+    }
+
+    public void setImgs(String imgs) {
+        this.imgs = imgs;
+    }
+
+    public String getQualImgs() {
+        return qualImgs;
+    }
+
+    public void setQualImgs(String qualImgs) {
+        this.qualImgs = qualImgs;
+    }
+
+    public String getLogoImgs() {
+        return logoImgs;
+    }
+
+    public void setLogoImgs(String logoImgs) {
+        this.logoImgs = logoImgs;
+    }
+
+    public String getQrlImgs() {
+        return qrlImgs;
+    }
+
+    public void setQrlImgs(String qrlImgs) {
+        this.qrlImgs = qrlImgs;
+    }
+
+    public String getTbUrl() {
+        return tbUrl;
+    }
+
+    public void setTbUrl(String tbUrl) {
+        this.tbUrl = tbUrl;
+    }
+
+    public String getJdUrl() {
+        return jdUrl;
+    }
+
+    public void setJdUrl(String jdUrl) {
+        this.jdUrl = jdUrl;
+    }
+
+    public String getOwnUrl() {
+        return ownUrl;
+    }
+
+    public void setOwnUrl(String ownUrl) {
+        this.ownUrl = ownUrl;
+    }
+
+    public void setIsCert(Integer isCert) {
+        this.isCert = isCert;
+    }
+
     public String getCompConType() {
         return compConType;
     }
@@ -232,19 +382,19 @@ public class UmsCompanyInfoExcel  extends BaseRowModel {
         this.detailAddress = detailAddress;
     }
 
-    public String getLongitude() {
+    public BigDecimal getLongitude() {
         return longitude;
     }
 
-    public void setLongitude(String longitude) {
+    public void setLongitude(BigDecimal longitude) {
         this.longitude = longitude;
     }
 
-    public String getLatitude() {
+    public BigDecimal getLatitude() {
         return latitude;
     }
 
-    public void setLatitude(String latitude) {
+    public void setLatitude(BigDecimal latitude) {
         this.latitude = latitude;
     }
 
@@ -264,11 +414,11 @@ public class UmsCompanyInfoExcel  extends BaseRowModel {
         this.createTime = createTime;
     }
 
-    public Integer getCreateId() {
+    public Long getCreateId() {
         return createId;
     }
 
-    public void setCreateId(Integer createId) {
+    public void setCreateId(Long createId) {
         this.createId = createId;
     }
 
@@ -280,20 +430,20 @@ public class UmsCompanyInfoExcel  extends BaseRowModel {
         this.updateTime = updateTime;
     }
 
-    public Integer getUpdateId() {
+    public Long getUpdateId() {
         return updateId;
     }
 
-    public void setUpdateId(Integer updateId) {
+    public void setUpdateId(Long updateId) {
         this.updateId = updateId;
     }
 
-    public String getCompIntroduction() {
-        return compIntroduction;
+    public String getCompSum() {
+        return compSum;
     }
 
-    public void setCompIntroduction(String compIntroduction) {
-        this.compIntroduction = compIntroduction;
+    public void setCompSum(String compSum) {
+        this.compSum = compSum;
     }
 
     @Override
@@ -304,12 +454,16 @@ public class UmsCompanyInfoExcel  extends BaseRowModel {
         sb.append("Hash = ").append(hashCode());
         sb.append(", id=").append(id);
         sb.append(", compName=").append(compName);
+        sb.append(", companyType=").append(companyType);
+        sb.append(", compLevel=").append(compLevel);
+        sb.append(", compQual=").append(compQual);
         sb.append(", compImgs=").append(compImgs);
         sb.append(", compUrl=").append(compUrl);
         sb.append(", compProdLicenseNum=").append(compProdLicenseNum);
         sb.append(", compManageLicenseNum=").append(compManageLicenseNum);
         sb.append(", compSocialCode=").append(compSocialCode);
         sb.append(", compConPerson=").append(compConPerson);
+        sb.append(", isCert=").append(isCert);
         sb.append(", compConType=").append(compConType);
         sb.append(", compConNum=").append(compConNum);
         sb.append(", compQq=").append(compQq);
@@ -327,7 +481,7 @@ public class UmsCompanyInfoExcel  extends BaseRowModel {
         sb.append(", createId=").append(createId);
         sb.append(", updateTime=").append(updateTime);
         sb.append(", updateId=").append(updateId);
-        sb.append(", compIntroduction=").append(compIntroduction);
+        sb.append(", compSum=").append(compSum);
         sb.append(", serialVersionUID=").append(serialVersionUID);
         sb.append("]");
         return sb.toString();

+ 25 - 0
forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/service/BigScreamService.java

@@ -0,0 +1,25 @@
+package com.hwrj.cloud.admin.service;
+
+import java.util.List;
+import java.util.Map;
+
+public interface BigScreamService {
+    /**
+     * 获取总体统计的数据
+     * @return
+     */
+    public Map<String,Object> data1(Long id);
+
+    /**
+     * 获取供应商分布信息
+     * @return
+     */
+    public List<Map<String,Object>> date2(String compType);
+
+    /**
+     *
+     * @return
+     */
+    public Map<String,Object> data3();
+
+}

+ 117 - 0
forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/service/UmsCompanyService.java

@@ -0,0 +1,117 @@
+package com.hwrj.cloud.admin.service;
+
+import com.hwrj.cloud.admin.dto.UmsCompanyDto;
+import com.hwrj.cloud.admin.excelEntity.UmsCompanyInfoExcel;
+import com.hwrj.cloud.admin.model.UmsCompanyFile;
+import com.hwrj.cloud.admin.model.UmsCompanyInfo;
+import com.hwrj.cloud.admin.model.UmsCompanyShop;
+
+import java.util.List;
+
+public interface UmsCompanyService {
+
+    /**
+     * excel导入供应商
+     * @param dto
+     */
+    public void add(UmsCompanyDto dto);
+
+    /**
+     * excel导入供应商
+     * @param dto
+     */
+    public void update(UmsCompanyDto dto);
+
+    /**
+     * excel导入供应商
+     * @param id
+     */
+    public void delete(Long id);
+
+
+
+    /**
+     * excel导入供应商
+     * @param infoExcels
+     */
+    public void importExcel(List<UmsCompanyInfoExcel> infoExcels);
+
+
+    /**
+     * excel导入供应商
+     *
+     */
+    public List<UmsCompanyDto> getCompanyInfoList(int pageSize, int pageNo);
+
+
+    /**
+     * 获取供应商详情
+     *
+     */
+    public UmsCompanyDto getDetailCompany(Long companyId);
+
+    /**
+     * 通过供应商id获取对应的供应商图片
+     * @param compId
+     * @return
+     */
+    public List<UmsCompanyFile> getCompanyFile(Long compId);
+
+    /**
+     * 通过供应商id获取对应的供应商商店
+     * @param compId
+     * @return
+     */
+    public List<UmsCompanyShop> getCompanyShop(Long compId);
+
+    /**
+     * 修改供应商文件
+     * @param umsCompanyFile
+     */
+    public void updateCompanyFile(UmsCompanyFile umsCompanyFile);
+
+
+    /**
+     * 删除供应商照片
+     * @param shopId
+     * @param userId
+     */
+    public void deleteCompanyFile(Long shopId,Long userId);
+
+
+    /**
+     * 修改供应商文件
+     * @param umsCompanyShop
+     */
+    public void updateCompanyShop(UmsCompanyShop umsCompanyShop);
+
+
+    /**
+     * 删除供应商照片
+     * @param shopId
+     * @param userId
+     */
+    public void deleteCompanyShop(Long shopId,Long userId);
+
+
+    /**
+     * 通过供应商id删除文件
+     * @param compId
+     * @param userId
+     */
+    public void deleteCompanyFileByCompId(Long compId,Long userId);
+
+
+    /**
+     * 通过供应商id来删除供应商商店
+     * @param compId
+     * @param userId
+     */
+    public void deleteCompanyShopByCompId(Long compId,Long userId);
+
+
+
+
+
+
+}

+ 33 - 0
forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/service/impl/BigScreamServiceImpl.java

@@ -0,0 +1,33 @@
+package com.hwrj.cloud.admin.service.impl;
+
+import com.hwrj.cloud.admin.dao.BigScreamDao;
+import com.hwrj.cloud.admin.service.BigScreamService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+import java.util.Map;
+
+@Service
+public class BigScreamServiceImpl implements BigScreamService {
+    @Autowired
+    private BigScreamDao bigScreamDao;
+
+
+    @Override
+    public Map<String, Object> data1(Long id) {
+        Map<String, Object> map = bigScreamDao.data1(id);
+        return map;
+    }
+
+    @Override
+    public List<Map<String, Object>> date2(String compType) {
+
+        return bigScreamDao.data2(compType);
+    }
+
+    @Override
+    public Map<String, Object> data3() {
+        return null;
+    }
+}

+ 272 - 0
forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/service/impl/UmsCompanyInfoServiceImpl.java

@@ -0,0 +1,272 @@
+package com.hwrj.cloud.admin.service.impl;
+
+import cn.hutool.core.bean.BeanUtil;
+import com.alibaba.excel.util.StringUtils;
+import com.github.pagehelper.PageHelper;
+import com.hwrj.cloud.admin.dao.UmsCompanyShopDao;
+import com.hwrj.cloud.admin.dto.UmsCompanyDto;
+import com.hwrj.cloud.admin.excelEntity.UmsCompanyInfoExcel;
+import com.hwrj.cloud.admin.mapper.UmsCompanyFileMapper;
+import com.hwrj.cloud.admin.mapper.UmsCompanyInfoMapper;
+import com.hwrj.cloud.admin.mapper.UmsCompanyShopMapper;
+import com.hwrj.cloud.admin.model.*;
+import com.hwrj.cloud.admin.service.UmsCompanyService;
+import com.hwrj.cloud.common.exception.GlobalException;
+
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+@Service
+@Slf4j
+public class UmsCompanyInfoServiceImpl implements UmsCompanyService {
+
+    @Autowired
+    private UmsCompanyInfoMapper umsCompanyInfoMapper;
+
+    @Autowired
+    private UmsCompanyFileMapper umsCompanyFileMapper;
+
+    @Autowired
+    private UmsCompanyShopMapper umsCompanyShopMapper;
+
+    @Autowired
+    private UmsCompanyShopDao umsCompanyShopDao;
+
+    @Override
+    @Transactional(rollbackFor = Exception.class)
+    public void add(UmsCompanyDto dto) {
+        UmsCompanyInfo ums = new UmsCompanyInfo();
+        BeanUtil.copyProperties(dto,ums);
+        int i = umsCompanyInfoMapper.insertSelective(ums);
+        List<UmsCompanyFile> files = dto.getFiles();
+        List<UmsCompanyShop> shops = dto.getShops();
+
+        List<UmsCompanyFile> filesAdd = dto.getFiles();
+        List<UmsCompanyShop> shopsAdd = dto.getShops();
+        if (shops != null && shops.size()>0){
+            for (UmsCompanyShop shop:shops) {
+                shop.setShopStatus(0);
+                shop.setCreateTime(new Date());
+                shop.setCreateId(dto.getCreateId());
+                shop.setCompId(ums.getId());
+                shopsAdd.add(shop);
+            }
+            umsCompanyShopDao.addUmsCompanyShopList(shopsAdd);
+        }
+        if (files != null && files.size()>0){
+            for (UmsCompanyFile file:files) {
+                file.setFileStatus(0);
+                file.setCreateTime(new Date());
+                file.setCreateId(dto.getCreateId());
+                file.setCompId(ums.getId());
+                files.add(file);
+            }
+            umsCompanyShopDao.insertFile(filesAdd);
+        }
+    }
+
+    @Override
+    public void update(UmsCompanyDto dto) {
+        UmsCompanyInfo umsCompanyInfo = new UmsCompanyInfo();
+        BeanUtil.copyProperties(dto, umsCompanyInfo);
+        umsCompanyInfoMapper.updateByPrimaryKeySelective(umsCompanyInfo);
+
+    }
+
+    @Override
+    @Transactional(rollbackFor = Exception.class)
+    public void delete(Long id) {
+        UmsCompanyInfo info = new UmsCompanyInfo();
+        info.setCompStatus(2);
+        info.setId(id);
+
+        umsCompanyInfoMapper.updateByPrimaryKeySelective(info);
+
+
+    }
+
+    @Override
+    @Transactional(rollbackFor = Exception.class)
+    public void importExcel(List<UmsCompanyInfoExcel> infoExcels) {
+      if (infoExcels == null || infoExcels.size()<1){
+          return;
+      }
+      List<UmsCompanyShop> listShops = new ArrayList<>();
+      infoExcels.stream().forEach(item->{
+          UmsCompanyInfo umsCompanyInfo = new UmsCompanyInfo();
+          BeanUtil.copyProperties(item,umsCompanyInfo);
+          umsCompanyInfo.setCreateTime(new Date());
+          umsCompanyInfo.setCompStatus(0);
+          try {
+              int i = umsCompanyInfoMapper.insertSelective(umsCompanyInfo);
+              item.setId(umsCompanyInfo.getId());
+              List<UmsCompanyShop> shops = getShopsFromUmsCompanyInfoExcel(item);
+              listShops.addAll(shops);
+          }catch (Exception e){
+                log.info("添加数据失败");
+          }
+
+
+
+      });
+      if (listShops != null){
+          int i = umsCompanyShopDao.addUmsCompanyShopList(listShops);
+      }
+      return;
+    }
+
+    @Override
+    public List<UmsCompanyDto> getCompanyInfoList(int pageSize, int pageNo) {
+        PageHelper.startPage(pageNo,pageSize);
+        UmsCompanyInfoExample example = new UmsCompanyInfoExample();
+        UmsCompanyInfoExample.Criteria criteria = example.createCriteria();
+        criteria.andCompStatusEqualTo(0);
+        List<UmsCompanyInfo> companyInfos = umsCompanyInfoMapper.selectByExample(example);
+        List<UmsCompanyDto> dtos = new ArrayList<>();
+        companyInfos.stream().forEach(comp->{
+            UmsCompanyDto dto= new UmsCompanyDto();
+            BeanUtil.copyProperties(comp,dto);
+            dto.setFiles(getCompanyFile(comp.getId()));
+            dto.setShops(getCompanyShop(comp.getId()));
+            dtos.add(dto);
+            dtos.add(dto);
+
+        });
+        return dtos;
+    }
+
+    @Override
+    public UmsCompanyDto getDetailCompany(Long companyId) {
+        UmsCompanyInfo umsCompanyInfo = umsCompanyInfoMapper.selectByPrimaryKey(companyId);
+        UmsCompanyDto ums = new UmsCompanyDto();
+        BeanUtil.copyProperties(umsCompanyInfo,ums);
+        ums.setFiles(getCompanyFile(companyId));
+        ums.setShops(getCompanyShop(companyId));
+
+        return ums;
+    }
+
+    public List<UmsCompanyShop> getShopsFromUmsCompanyInfoExcel(UmsCompanyInfoExcel ums){
+        List<UmsCompanyShop> shops = new ArrayList<>();
+        UmsCompanyShop shop = new UmsCompanyShop();
+
+        shop.setCompId(ums.getId());
+        shop.setCreateId(ums.getCreateId());
+        shop.setCreateTime(ums.getCreateTime());
+        shop.setShopStatus(0);
+        if (!StringUtils.isEmpty(ums.getTbUrl())){
+            UmsCompanyShop tbShop = new UmsCompanyShop();
+            BeanUtil.copyProperties(shop,tbShop);
+            tbShop.setShopType("taobao");
+            tbShop.setShopUrl(ums.getTbUrl());
+            shops.add(tbShop);
+
+        }
+        if (!StringUtils.isEmpty(ums.getJdUrl())){
+            UmsCompanyShop jdShop = new UmsCompanyShop();
+            BeanUtil.copyProperties(shop,jdShop);
+            jdShop.setShopType("jd");
+            jdShop.setShopUrl(ums.getJdUrl());
+            shops.add(jdShop);
+        }
+
+        if (StringUtils.isEmpty(ums.getOwnUrl())){
+            UmsCompanyShop ownShop = new UmsCompanyShop();
+            BeanUtil.copyProperties(shop,ownShop);
+            ownShop.setShopType("own");
+            ownShop.setShopUrl(ums.getOwnUrl());
+            shops.add(ownShop);
+        }
+        return shops;
+    }
+    @Override
+    public List<UmsCompanyFile> getCompanyFile(Long compId){
+        UmsCompanyFileExample example = new UmsCompanyFileExample();
+        UmsCompanyFileExample.Criteria criteria = example.createCriteria();
+        criteria.andCompIdEqualTo(compId);
+        criteria.andFileStatusEqualTo(0);
+        List<UmsCompanyFile> files = umsCompanyFileMapper.selectByExample(example);
+        return files;
+    }
+    public List<UmsCompanyShop> getCompanyShop(Long compId){
+        UmsCompanyShopExample example = new UmsCompanyShopExample();
+        UmsCompanyShopExample.Criteria criteria = example.createCriteria();
+        criteria.andCompIdEqualTo(compId);
+        criteria.andShopStatusEqualTo(0);
+        List<UmsCompanyShop> shops = umsCompanyShopMapper.selectByExample(example);
+        return shops;
+    }
+
+    @Override
+    public void updateCompanyFile(UmsCompanyFile umsCompanyFile) {
+        if (StringUtils.isEmpty(umsCompanyFile.getId())){
+            throw new GlobalException("缺失修改主体");
+        }
+        umsCompanyFile.setUpdateTime(new Date());
+        umsCompanyFileMapper.updateByPrimaryKeySelective(umsCompanyFile);
+    }
+
+    @Override
+    public void deleteCompanyFile(Long shopId, Long userId) {
+        if (shopId == null){
+            throw  new GlobalException("缺失删除主体");
+        }
+        UmsCompanyFile umsCompanyFile = new UmsCompanyFile();
+        umsCompanyFile.setId(shopId);
+        umsCompanyFile.setFileStatus(2);
+        umsCompanyFile.setUpdateTime(new Date());
+        umsCompanyFile.setUpdateId(userId);
+
+    }
+
+    @Override
+    public void updateCompanyShop(UmsCompanyShop umsCompanyShop) {
+        if (StringUtils.isEmpty(umsCompanyShop.getId())){
+            throw new GlobalException("缺失修改主体");
+        }
+        umsCompanyShop.setUpdateTime(new Date());
+        umsCompanyShopMapper.updateByPrimaryKeySelective(umsCompanyShop);
+    }
+
+    @Override
+    public void deleteCompanyShop(Long shopId, Long userId) {
+        if (shopId == null){
+            throw  new GlobalException("缺失删除主体");
+        }
+
+        UmsCompanyShop umsCompanyShop = new UmsCompanyShop();
+        umsCompanyShop.setId(shopId);
+        umsCompanyShop.setShopStatus(2);
+        umsCompanyShop.setUpdateTime(new Date());
+        umsCompanyShopMapper.updateByPrimaryKeySelective(umsCompanyShop);
+    }
+
+    @Override
+    public void deleteCompanyFileByCompId(Long compId, Long userId) {
+        UmsCompanyFileExample fileExampleW = new UmsCompanyFileExample();
+        UmsCompanyFileExample.Criteria fileCriteriaW = fileExampleW.createCriteria();
+        fileCriteriaW.andCompIdEqualTo(compId);
+        UmsCompanyFile file = new UmsCompanyFile();
+        file.setFileStatus(2);
+        file.setUpdateId(userId);
+        file.setUpdateTime(new Date());
+        umsCompanyFileMapper.updateByExample(file,fileExampleW);
+    }
+
+    @Override
+    public void deleteCompanyShopByCompId(Long compId, Long userId) {
+        UmsCompanyShop shop = new UmsCompanyShop();
+        shop.setShopStatus(2);
+        shop.setUpdateTime(new Date());
+        UmsCompanyShopExample shopExample = new UmsCompanyShopExample();
+        UmsCompanyShopExample.Criteria criteria = shopExample.createCriteria();
+        criteria.andCompIdEqualTo(compId);
+        umsCompanyShopMapper.updateByExample(shop,shopExample);
+    }
+
+}

+ 3 - 0
forest-admin/admin-server/src/main/java/com/hwrj/cloud/admin/service/impl/UmsMemberPlatformServiceImpl.java

@@ -4,6 +4,7 @@ import com.hwrj.cloud.admin.mapper.UmsMemberPlatformMapper;
 import com.hwrj.cloud.admin.model.UmsMemberPlatform;
 import com.hwrj.cloud.admin.model.UmsMemberPlatformExample;
 import com.hwrj.cloud.admin.service.UmsMemberPlatformService;
+import com.hwrj.cloud.security.util.JwtTokenUtil;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.util.StringUtils;
 
@@ -12,6 +13,8 @@ import java.util.List;
 public class UmsMemberPlatformServiceImpl implements UmsMemberPlatformService {
     @Autowired
     private UmsMemberPlatformMapper umsMemberPlatformMapper;
+    @Autowired
+    private JwtTokenUtil jwtTokenUtil;
     @Override
     public int addUmsMemberPlatformService(UmsMemberPlatform umsMemberPlatform) {
         UmsMemberPlatformExample example= new UmsMemberPlatformExample();

+ 33 - 0
forest-admin/admin-server/src/main/resources/dao/BigScreamDao.xml

@@ -0,0 +1,33 @@
+<?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.hwrj.cloud.admin.dao.BigScreamDao">
+    <select id="data1" resultType="java.util.Map">
+        SELECT
+            a.*,
+            ( SELECT count( 0 ) FROM ums_company_info WHERE comp_status = 0 ) AS companyNum,
+            (select count(0) from ums_member_origin where state = 0) as originNum,
+            (select count(0) from pms_product where delete_status = 0) as productNum
+
+        FROM
+            ums_platform a
+        WHERE
+            a.id = #{id}
+	</select>
+
+    <select id="data2" resultType="java.util.Map" parameterType="java.lang.String">
+        SELECT
+            a.comp_name AS compName,
+            a.company_type AS companyType,
+            a.longitude AS lng,
+            a.latitude AS lat,
+            a.comp_manage_product as compProduct
+        FROM
+        `ums_company_info` a
+        WHERE
+            1=1
+            <if test="compType != null and compType != ''">
+                and a.company_type=#{compType}
+            </if>
+
+    </select>
+</mapper>

+ 35 - 0
forest-admin/admin-server/src/main/resources/dao/UmsCompanyShopDao.xml

@@ -0,0 +1,35 @@
+<?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.hwrj.cloud.admin.dao.UmsCompanyShopDao">
+
+    <insert id="addUmsCompanyShopList" parameterType="java.util.List">
+        insert into ums_company_shop (comp_id, shop_type, shop_url,
+        shop_address, shop_img, create_time,
+        create_id, update_time, shop_status
+        )
+        values
+        <foreach collection="list" item="item" separator=",">
+            (#{item.compId,jdbcType=INTEGER}, #{item.shopType,jdbcType=VARCHAR}, #{item.shopUrl,jdbcType=VARCHAR},
+            #{item.shopAddress,jdbcType=VARCHAR}, #{item.shopImg,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP},
+            #{item.createId,jdbcType=INTEGER}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.shopStatus,jdbcType=INTEGER}
+            )
+        </foreach>
+
+    </insert>
+
+    <insert id="insertFile" parameterType="java.util.List">
+        <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
+            SELECT LAST_INSERT_ID()
+        </selectKey>
+        insert into ums_company_file (comp_id, file_url, file_type,
+        file_status, create_time, create_id,
+        update_time, update_id)
+        values
+         <foreach collection="list" item="item" separator=",">
+             (#{item.compId,jdbcType=BIGINT}, #{item.fileUrl,jdbcType=VARCHAR}, #{item.fileType,jdbcType=VARCHAR},
+             #{item.fileStatus,jdbcType=INTEGER}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.createId,jdbcType=INTEGER},
+             #{item.updateTime,jdbcType=TIMESTAMP}, #{item.updateId,jdbcType=INTEGER})
+         </foreach>
+
+    </insert>
+</mapper>

+ 18 - 0
forest-admin/admin-server/src/test/java/com/hwrj/cloud/admin/Applay.java

@@ -0,0 +1,18 @@
+package com.hwrj.cloud.admin;
+
+import com.alibaba.excel.annotation.ExcelProperty;
+import com.alibaba.excel.metadata.BaseRowModel;
+import lombok.Data;
+
+import java.math.BigDecimal;
+@Data
+public class Applay extends BaseRowModel {
+    @ExcelProperty(value = "时间",index = 0)
+    private String time;
+
+    @ExcelProperty(value = "借贷标识",index = 1)
+    private String type;
+
+    @ExcelProperty(value = "交易金额",index = 2)
+    private BigDecimal money;
+}

+ 24 - 0
forest-admin/admin-server/src/test/java/com/hwrj/cloud/admin/ResultApplay.java

@@ -0,0 +1,24 @@
+package com.hwrj.cloud.admin;
+
+import com.alibaba.excel.annotation.ExcelProperty;
+import com.alibaba.excel.metadata.BaseRowModel;
+import lombok.Data;
+
+import java.math.BigDecimal;
+
+@Data
+public class ResultApplay extends BaseRowModel {
+
+    @ExcelProperty("时间")
+    private String time;
+
+    @ExcelProperty("借")
+    private BigDecimal get;
+
+    @ExcelProperty("贷")
+    private BigDecimal put;
+
+    @ExcelProperty("总计")
+    private BigDecimal total;
+
+}

+ 195 - 0
forest-admin/admin-server/src/test/java/com/hwrj/cloud/admin/UploadTest.java

@@ -0,0 +1,195 @@
+package com.hwrj.cloud.admin;
+
+
+import com.alibaba.excel.EasyExcel;
+import com.alibaba.excel.ExcelWriter;
+import com.alibaba.excel.write.metadata.WriteSheet;
+import com.alibaba.fastjson.JSONObject;
+import com.hwrj.cloud.admin.excelEntity.UmsCompanyInfoExcel;
+import com.hwrj.cloud.admin.util.EasyExcelUtil;
+import com.hwrj.cloud.common.util.FileUtil;
+import netscape.javascript.JSObject;
+import org.apache.http.entity.ContentType;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.mock.web.MockMultipartFile;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.web.multipart.MultipartFile;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.stream.Collector;
+import java.util.stream.Collectors;
+
+@RunWith(SpringJUnit4ClassRunner.class)
+@SpringBootTest(classes = AdminApplication.class)
+public class UploadTest {
+
+    @Test
+    public void readFile(){
+
+        String filepath = "D:\\developerUtil\\code\\hwrj\\forest\\data\\companyInfo";//D盘下的file文件夹的目录
+//        File file = new File(filepath);//File类型可以是文件也可以是文件夹
+//        File[] fileList = file.listFiles();//将该目录下的所有文件放置在一个File类型的数组中
+//        for (int j = 0; j < fileList.length; j++) {
+//            File[] files = fileList[j].listFiles();
+//            List<File> fs = new ArrayList<>(files)
+//
+//        }
+        List<File> file = getFile(filepath);
+        file.stream().forEach(item->{
+            String path = item.getPath();
+            if (path.endsWith(".xlsx")){
+                System.out.println(path);
+            }
+        });
+//        List<String> files = FileUtil.getFiles(filepath);
+//        for (String file:files
+//             ) {
+//            System.out.println(file);
+//        }
+
+
+    }
+
+    public void fileToMuti(File pdf){
+        System.out.println(pdf.getPath());
+        //        System.out.println("shojdsdfnldsjl");
+        ExecutorService fixedThreadPool = Executors.newFixedThreadPool(10);
+//        final int i = j;
+        fixedThreadPool.execute(new Runnable() {
+            @Override
+            public void run() {
+                try {
+//                    File pdf = fileList[i];
+                    System.out.println(pdf.getPath());
+                    FileInputStream fileInputStream = null;
+                    fileInputStream = new FileInputStream(pdf);
+                    MultipartFile multipartFile = new MockMultipartFile(pdf.getName(), pdf.getName(),
+                            ContentType.APPLICATION_OCTET_STREAM.toString(), fileInputStream);
+//                        String url = ossFileUtils.upload(multipartFile.getOriginalFilename(), multipartFile);
+                } catch (Exception e) {
+                    System.out.println(e.getMessage());
+
+                }
+            }
+        });
+
+    }
+
+    public List<File> getFile(String path){
+        List<File> files = new ArrayList<>();
+        File file = new File(path);//File类型可以是文件也可以是文件夹
+        File[] fileList = file.listFiles();//将该目录下的所有文件放置在一个File类型的数组中
+        for (int j = 0; j < fileList.length; j++) {
+            File f = fileList[j];
+            if (f.isFile()){
+                files.add(f);
+                if (f.getPath().endsWith(".xlsx")){
+                    fileToMuti(f);
+                }
+            }else {
+                getFile(f.getPath());
+            }
+        }
+        return files;
+
+    }
+
+@Test
+    public void ssh(){
+
+        try {
+            File pdf = new File("C:\\Users\\qb\\Desktop\\myDuizhang.xlsx");
+            System.out.println(pdf.getPath());
+            FileInputStream fileInputStream = null;
+            fileInputStream = new FileInputStream(pdf);
+            MultipartFile multipartFile = new MockMultipartFile(pdf.getName(), pdf.getName(),
+                    ContentType.APPLICATION_OCTET_STREAM.toString(), fileInputStream);
+//                        String url = ossFileUtils.upload(multipartFile.getOriginalFilename(), multipartFile);
+            List<Applay> excelData = getExcelData(multipartFile);
+        } catch (Exception e) {
+            System.out.println(e.getMessage());
+
+        }
+    }
+
+    public List<Applay> getExcelData(MultipartFile file) throws IOException {
+        List<Applay> listApplay = new ArrayList<>();
+        List<Object> list = EasyExcelUtil.readExcel(file, new Applay(),1,1);
+        if(list != null && list.size() > 0){
+            for(Object o : list){
+                Applay applay = (Applay) o;
+                System.out.println(JSONObject.toJSONString(applay));
+                listApplay.add(applay);
+            }
+        }
+        List<ResultApplay> reList = new ArrayList<>();
+        Map<String, List<Applay>> listMap = listApplay.stream().collect(Collectors.groupingBy(Applay::getTime));
+        List<String> keys = new ArrayList<>(listMap.keySet());
+        for (String key:keys){
+            ResultApplay re = new ResultApplay();
+            List<Applay> applays = listMap.get(key);
+            Map<String, List<Applay>> collect = applays.stream().collect(Collectors.groupingBy(Applay::getType));
+//            List<Applay> get = new ArrayList<>();
+            List<Applay> put = new ArrayList<>();
+            List<Applay> get = collect.get("借");
+            if (collect.containsKey("贷")){
+                put = collect.get("贷");
+            }
+            re.setTime(key);
+
+            BigDecimal reduce = get.stream()
+                    // 将user对象的age取出来map为Bigdecimal
+                    .map(Applay::getMoney)
+                    // 使用reduce()聚合函数,实现累加器
+                    .reduce(BigDecimal.ZERO, BigDecimal::add);
+            re.setGet(reduce);
+            if (put != null && put.size()>0){
+                BigDecimal p = put.stream()
+                        // 将user对象的age取出来map为Bigdecimal
+                        .map(Applay::getMoney)
+                        // 使用reduce()聚合函数,实现累加器
+                        .reduce(BigDecimal.ZERO, BigDecimal::add);
+                re.setPut(p);
+            }else {
+                re.setPut(new BigDecimal(0));
+            }
+            BigDecimal subtract = reduce.subtract(re.getPut());
+            re.setTotal(subtract);
+            reList.add(re);
+            System.out.println(JSONObject.toJSONString(re));
+        }
+        addExcel(reList);
+        return listApplay;
+    }
+
+    public void addExcel(List<ResultApplay> data){
+        String fileName = "C:\\Users\\qb\\Desktop\\" + "simpleWrite" + System.currentTimeMillis() + ".xlsx";
+
+        // 这里 需要指定写用哪个class去写
+        ExcelWriter excelWriter = null;
+        try {
+            excelWriter = EasyExcel.write(fileName, ResultApplay.class).build();
+            WriteSheet writeSheet = EasyExcel.writerSheet("模板").build();
+            excelWriter.write(data, writeSheet);
+        } finally {
+            // 千万别忘记finish 会帮忙关闭流
+            if (excelWriter != null) {
+                excelWriter.finish();
+            }
+        }
+
+    }
+
+
+
+}

+ 4 - 0
forest-common/pom.xml

@@ -44,6 +44,10 @@
             <groupId>cn.hutool</groupId>
             <artifactId>hutool-all</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-jdbc</artifactId>
+        </dependency>
 
         <!--短信服务-->
         <dependency>

+ 14 - 0
forest-common/src/main/java/com/hwrj/cloud/common/entity/BaseForm.java

@@ -0,0 +1,14 @@
+package com.hwrj.cloud.common.entity;
+
+import io.swagger.annotations.ApiModel;
+import lombok.Data;
+
+@ApiModel(value = "基础请求类")
+@Data
+public class BaseForm {
+    private int pageSize=10;
+
+    private int pageNo=1;
+
+
+}

+ 31 - 0
forest-common/src/main/java/com/hwrj/cloud/common/util/FileUtil.java

@@ -0,0 +1,31 @@
+package com.hwrj.cloud.common.util;
+
+import java.io.File;
+import java.util.ArrayList;
+import java.util.List;
+
+public class FileUtil {
+    /**
+     * @Author:
+     * @Description:获取某个目录下所有直接下级文件,不包括目录下的子目录的下的文件,所以不用递归获取
+     * @Date:
+     */
+    public static List<String> getFiles(String path) {
+        List<String> files = new ArrayList<String>();
+        File file = new File(path);
+        File[] tempList = file.listFiles();
+
+        for (int i = 0; i < tempList.length; i++) {
+            if (tempList[i].isFile()) {
+                files.add(tempList[i].toString());
+                //文件名,不包含路径
+                //String fileName = tempList[i].getName();
+            }
+            if (tempList[i].isDirectory()) {
+                //这里就不递归了,
+                FileUtil.getFiles(tempList[i].getPath());
+            }
+        }
+        return files;
+    }
+}

+ 42 - 0
forest-common/src/main/java/com/hwrj/cloud/common/util/InvitationCodeUtil.java

@@ -0,0 +1,42 @@
+package com.hwrj.cloud.common.util;
+
+import java.util.Arrays;
+
+public class InvitationCodeUtil {
+
+    private static final char[] CHARS = new char[] {'F', 'L', 'G', 'W', '5', 'X', 'C', '3',
+            '9', 'Z', 'M', '6', '7', 'Y', 'R', 'T', '2', 'H', 'S', '8', 'D', 'V', 'E', 'J', '4', 'K',
+            'Q', 'P', 'U', 'A', 'N', 'B'};
+//    private static final String PRIME1 =
+
+//    /**
+//     * 生成邀请码
+//     *
+//     * @param id 唯一的id主键
+//     * @return code
+//     */
+//    String gen(Long id) {
+//        //补位,并扩大整体
+//        id = id * PRIME1 + SLAT;
+//        //将 id 转换成32进制的值
+//        long[] b = new long[CODE_LENGTH];
+//        //32进制数
+//        b[0] = id;
+//        for (int i = 0; i < CODE_LENGTH - 1; i++) {
+//            b[i + 1] = b[i] / CHARS_LENGTH;
+//            //扩大每一位的差异
+//            b[i] = (b[i] + i * b[0]) % CHARS_LENGTH;
+//        }
+//        b[5] = (b[0] + b[1] + b[2] + b[3] + b[4]) * PRIME1 % CHARS_LENGTH;
+//
+//        //进行混淆
+//        long[] codeIndexArray = new long[CODE_LENGTH];
+//        for (int i = 0; i < CODE_LENGTH; i++) {
+//            codeIndexArray[i] = b[i * PRIME2 % CODE_LENGTH];
+//        }
+//
+//        StringBuilder buffer = new StringBuilder();
+//        Arrays.stream(codeIndexArray).boxed().map(Long::intValue).map(t -> CHARS[t]).forEach(buffer::append);
+//        return buffer.toString();
+//    }
+}

+ 3 - 0
forest-gateway/forest-gateway.iml

@@ -40,6 +40,9 @@
     <orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:2.1.3.RELEASE" level="project" />
     <orderEntry type="library" name="Maven: org.springframework:spring-beans:5.1.14.RELEASE" level="project" />
     <orderEntry type="library" name="Maven: cn.hutool:hutool-all:4.5.7" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.2.0" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.1.14.RELEASE" level="project" />
     <orderEntry type="library" name="Maven: com.aliyun:aliyun-java-sdk-core:4.0.3" level="project" />
     <orderEntry type="library" name="Maven: com.google.code.gson:gson:2.8.6" level="project" />
     <orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.11" level="project" />

+ 4 - 4
forest-portal/portal-common/portal-common.iml

@@ -19,10 +19,6 @@
     <orderEntry type="module" module-name="forest-common" />
     <orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-starter:1.2.10" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.2" level="project" />
-    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.1.13.RELEASE" level="project" />
-    <orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.2.0" level="project" />
-    <orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.1.14.RELEASE" level="project" />
-    <orderEntry type="library" name="Maven: org.springframework:spring-tx:5.1.14.RELEASE" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:1.3.2" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis:mybatis:3.4.6" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:1.3.2" level="project" />
@@ -57,6 +53,10 @@
     <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.9.10.3" level="project" />
     <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.9.10" level="project" />
     <orderEntry type="library" name="Maven: cn.hutool:hutool-all:4.5.7" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.2.0" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.1.14.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-tx:5.1.14.RELEASE" level="project" />
     <orderEntry type="library" name="Maven: com.aliyun:aliyun-java-sdk-core:4.0.3" level="project" />
     <orderEntry type="library" name="Maven: com.google.code.gson:gson:2.8.6" level="project" />
     <orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.11" level="project" />

+ 4 - 4
forest-portal/portal-mbg/portal-mbg.iml

@@ -19,10 +19,6 @@
     <orderEntry type="module" module-name="forest-common" />
     <orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-starter:1.2.10" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.2" level="project" />
-    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.1.13.RELEASE" level="project" />
-    <orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.2.0" level="project" />
-    <orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.1.14.RELEASE" level="project" />
-    <orderEntry type="library" name="Maven: org.springframework:spring-tx:5.1.14.RELEASE" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:1.3.2" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis:mybatis:3.4.6" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:1.3.2" level="project" />
@@ -56,6 +52,10 @@
     <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.9.10.3" level="project" />
     <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.9.10" level="project" />
     <orderEntry type="library" name="Maven: cn.hutool:hutool-all:4.5.7" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.2.0" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.1.14.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-tx:5.1.14.RELEASE" level="project" />
     <orderEntry type="library" name="Maven: com.aliyun:aliyun-java-sdk-core:4.0.3" level="project" />
     <orderEntry type="library" name="Maven: com.google.code.gson:gson:2.8.6" level="project" />
     <orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.11" level="project" />

+ 2 - 2
forest-portal/portal-mbg/src/main/java/com/hwrj/cloud/portal/mapper/UmsCompanyShopMapper.java

@@ -10,7 +10,7 @@ public interface UmsCompanyShopMapper {
 
     int deleteByExample(UmsCompanyShopExample example);
 
-    int deleteByPrimaryKey(Integer id);
+    int deleteByPrimaryKey(Long id);
 
     int insert(UmsCompanyShop record);
 
@@ -18,7 +18,7 @@ public interface UmsCompanyShopMapper {
 
     List<UmsCompanyShop> selectByExample(UmsCompanyShopExample example);
 
-    UmsCompanyShop selectByPrimaryKey(Integer id);
+    UmsCompanyShop selectByPrimaryKey(Long id);
 
     int updateByExampleSelective(@Param("record") UmsCompanyShop record, @Param("example") UmsCompanyShopExample example);
 

+ 172 - 0
forest-portal/portal-mbg/src/main/java/com/hwrj/cloud/portal/model/PmsProduct.java

@@ -8,12 +8,16 @@ import java.util.Date;
 public class PmsProduct implements Serializable {
     private Long id;
 
+    @ApiModelProperty(value = "品牌id")
     private Long brandId;
 
+    @ApiModelProperty(value = "产品类别标识")
     private Long productCategoryId;
 
+    @ApiModelProperty(value = "运费模版id")
     private Long feightTemplateId;
 
+    @ApiModelProperty(value = "产品属性类别标识")
     private Long productAttributeCategoryId;
 
     private String name;
@@ -109,6 +113,48 @@ public class PmsProduct implements Serializable {
     @ApiModelProperty(value = "商品分类名称")
     private String productCategoryName;
 
+    @ApiModelProperty(value = "供应商id")
+    private Long umsCompanyInfoId;
+
+    @ApiModelProperty(value = "供应商")
+    private String umsCompanyInfo;
+
+    @ApiModelProperty(value = "批发价")
+    private BigDecimal tradePrice;
+
+    @ApiModelProperty(value = "规格")
+    private String spec;
+
+    @ApiModelProperty(value = "生产日期")
+    private String dateOfManufacture;
+
+    @ApiModelProperty(value = "生产地id")
+    private Long placeOfProductionId;
+
+    @ApiModelProperty(value = "生产地")
+    private String placeOfProduction;
+
+    @ApiModelProperty(value = "使用说明")
+    private String instructions;
+
+    @ApiModelProperty(value = "保质期")
+    private String qualityGuaranteePeriod;
+
+    @ApiModelProperty(value = "注意事项")
+    private String pointsForAttention;
+
+    @ApiModelProperty(value = "创建人")
+    private Long createUser;
+
+    @ApiModelProperty(value = "创建时间")
+    private Date createTime;
+
+    @ApiModelProperty(value = "更新人")
+    private Long updateUser;
+
+    @ApiModelProperty(value = "更新时间")
+    private Date updateTime;
+
     @ApiModelProperty(value = "商品描述")
     private String description;
 
@@ -426,6 +472,118 @@ public class PmsProduct implements Serializable {
         this.productCategoryName = productCategoryName;
     }
 
+    public Long getUmsCompanyInfoId() {
+        return umsCompanyInfoId;
+    }
+
+    public void setUmsCompanyInfoId(Long umsCompanyInfoId) {
+        this.umsCompanyInfoId = umsCompanyInfoId;
+    }
+
+    public String getUmsCompanyInfo() {
+        return umsCompanyInfo;
+    }
+
+    public void setUmsCompanyInfo(String umsCompanyInfo) {
+        this.umsCompanyInfo = umsCompanyInfo;
+    }
+
+    public BigDecimal getTradePrice() {
+        return tradePrice;
+    }
+
+    public void setTradePrice(BigDecimal tradePrice) {
+        this.tradePrice = tradePrice;
+    }
+
+    public String getSpec() {
+        return spec;
+    }
+
+    public void setSpec(String spec) {
+        this.spec = spec;
+    }
+
+    public String getDateOfManufacture() {
+        return dateOfManufacture;
+    }
+
+    public void setDateOfManufacture(String dateOfManufacture) {
+        this.dateOfManufacture = dateOfManufacture;
+    }
+
+    public Long getPlaceOfProductionId() {
+        return placeOfProductionId;
+    }
+
+    public void setPlaceOfProductionId(Long placeOfProductionId) {
+        this.placeOfProductionId = placeOfProductionId;
+    }
+
+    public String getPlaceOfProduction() {
+        return placeOfProduction;
+    }
+
+    public void setPlaceOfProduction(String placeOfProduction) {
+        this.placeOfProduction = placeOfProduction;
+    }
+
+    public String getInstructions() {
+        return instructions;
+    }
+
+    public void setInstructions(String instructions) {
+        this.instructions = instructions;
+    }
+
+    public String getQualityGuaranteePeriod() {
+        return qualityGuaranteePeriod;
+    }
+
+    public void setQualityGuaranteePeriod(String qualityGuaranteePeriod) {
+        this.qualityGuaranteePeriod = qualityGuaranteePeriod;
+    }
+
+    public String getPointsForAttention() {
+        return pointsForAttention;
+    }
+
+    public void setPointsForAttention(String pointsForAttention) {
+        this.pointsForAttention = pointsForAttention;
+    }
+
+    public Long getCreateUser() {
+        return createUser;
+    }
+
+    public void setCreateUser(Long createUser) {
+        this.createUser = createUser;
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    public Long getUpdateUser() {
+        return updateUser;
+    }
+
+    public void setUpdateUser(Long updateUser) {
+        this.updateUser = updateUser;
+    }
+
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
     public String getDescription() {
         return description;
     }
@@ -502,6 +660,20 @@ public class PmsProduct implements Serializable {
         sb.append(", promotionType=").append(promotionType);
         sb.append(", brandName=").append(brandName);
         sb.append(", productCategoryName=").append(productCategoryName);
+        sb.append(", umsCompanyInfoId=").append(umsCompanyInfoId);
+        sb.append(", umsCompanyInfo=").append(umsCompanyInfo);
+        sb.append(", tradePrice=").append(tradePrice);
+        sb.append(", spec=").append(spec);
+        sb.append(", dateOfManufacture=").append(dateOfManufacture);
+        sb.append(", placeOfProductionId=").append(placeOfProductionId);
+        sb.append(", placeOfProduction=").append(placeOfProduction);
+        sb.append(", instructions=").append(instructions);
+        sb.append(", qualityGuaranteePeriod=").append(qualityGuaranteePeriod);
+        sb.append(", pointsForAttention=").append(pointsForAttention);
+        sb.append(", createUser=").append(createUser);
+        sb.append(", createTime=").append(createTime);
+        sb.append(", updateUser=").append(updateUser);
+        sb.append(", updateTime=").append(updateTime);
         sb.append(", description=").append(description);
         sb.append(", detailDesc=").append(detailDesc);
         sb.append(", detailHtml=").append(detailHtml);

+ 910 - 0
forest-portal/portal-mbg/src/main/java/com/hwrj/cloud/portal/model/PmsProductExample.java

@@ -2505,6 +2505,916 @@ public class PmsProductExample {
             addCriterion("product_category_name not between", value1, value2, "productCategoryName");
             return (Criteria) this;
         }
+
+        public Criteria andUmsCompanyInfoIdIsNull() {
+            addCriterion("ums_company_info_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoIdIsNotNull() {
+            addCriterion("ums_company_info_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoIdEqualTo(Long value) {
+            addCriterion("ums_company_info_id =", value, "umsCompanyInfoId");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoIdNotEqualTo(Long value) {
+            addCriterion("ums_company_info_id <>", value, "umsCompanyInfoId");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoIdGreaterThan(Long value) {
+            addCriterion("ums_company_info_id >", value, "umsCompanyInfoId");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoIdGreaterThanOrEqualTo(Long value) {
+            addCriterion("ums_company_info_id >=", value, "umsCompanyInfoId");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoIdLessThan(Long value) {
+            addCriterion("ums_company_info_id <", value, "umsCompanyInfoId");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoIdLessThanOrEqualTo(Long value) {
+            addCriterion("ums_company_info_id <=", value, "umsCompanyInfoId");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoIdIn(List<Long> values) {
+            addCriterion("ums_company_info_id in", values, "umsCompanyInfoId");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoIdNotIn(List<Long> values) {
+            addCriterion("ums_company_info_id not in", values, "umsCompanyInfoId");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoIdBetween(Long value1, Long value2) {
+            addCriterion("ums_company_info_id between", value1, value2, "umsCompanyInfoId");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoIdNotBetween(Long value1, Long value2) {
+            addCriterion("ums_company_info_id not between", value1, value2, "umsCompanyInfoId");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoIsNull() {
+            addCriterion("ums_company_info is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoIsNotNull() {
+            addCriterion("ums_company_info is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoEqualTo(String value) {
+            addCriterion("ums_company_info =", value, "umsCompanyInfo");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoNotEqualTo(String value) {
+            addCriterion("ums_company_info <>", value, "umsCompanyInfo");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoGreaterThan(String value) {
+            addCriterion("ums_company_info >", value, "umsCompanyInfo");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoGreaterThanOrEqualTo(String value) {
+            addCriterion("ums_company_info >=", value, "umsCompanyInfo");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoLessThan(String value) {
+            addCriterion("ums_company_info <", value, "umsCompanyInfo");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoLessThanOrEqualTo(String value) {
+            addCriterion("ums_company_info <=", value, "umsCompanyInfo");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoLike(String value) {
+            addCriterion("ums_company_info like", value, "umsCompanyInfo");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoNotLike(String value) {
+            addCriterion("ums_company_info not like", value, "umsCompanyInfo");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoIn(List<String> values) {
+            addCriterion("ums_company_info in", values, "umsCompanyInfo");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoNotIn(List<String> values) {
+            addCriterion("ums_company_info not in", values, "umsCompanyInfo");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoBetween(String value1, String value2) {
+            addCriterion("ums_company_info between", value1, value2, "umsCompanyInfo");
+            return (Criteria) this;
+        }
+
+        public Criteria andUmsCompanyInfoNotBetween(String value1, String value2) {
+            addCriterion("ums_company_info not between", value1, value2, "umsCompanyInfo");
+            return (Criteria) this;
+        }
+
+        public Criteria andTradePriceIsNull() {
+            addCriterion("trade_price is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andTradePriceIsNotNull() {
+            addCriterion("trade_price is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andTradePriceEqualTo(BigDecimal value) {
+            addCriterion("trade_price =", value, "tradePrice");
+            return (Criteria) this;
+        }
+
+        public Criteria andTradePriceNotEqualTo(BigDecimal value) {
+            addCriterion("trade_price <>", value, "tradePrice");
+            return (Criteria) this;
+        }
+
+        public Criteria andTradePriceGreaterThan(BigDecimal value) {
+            addCriterion("trade_price >", value, "tradePrice");
+            return (Criteria) this;
+        }
+
+        public Criteria andTradePriceGreaterThanOrEqualTo(BigDecimal value) {
+            addCriterion("trade_price >=", value, "tradePrice");
+            return (Criteria) this;
+        }
+
+        public Criteria andTradePriceLessThan(BigDecimal value) {
+            addCriterion("trade_price <", value, "tradePrice");
+            return (Criteria) this;
+        }
+
+        public Criteria andTradePriceLessThanOrEqualTo(BigDecimal value) {
+            addCriterion("trade_price <=", value, "tradePrice");
+            return (Criteria) this;
+        }
+
+        public Criteria andTradePriceIn(List<BigDecimal> values) {
+            addCriterion("trade_price in", values, "tradePrice");
+            return (Criteria) this;
+        }
+
+        public Criteria andTradePriceNotIn(List<BigDecimal> values) {
+            addCriterion("trade_price not in", values, "tradePrice");
+            return (Criteria) this;
+        }
+
+        public Criteria andTradePriceBetween(BigDecimal value1, BigDecimal value2) {
+            addCriterion("trade_price between", value1, value2, "tradePrice");
+            return (Criteria) this;
+        }
+
+        public Criteria andTradePriceNotBetween(BigDecimal value1, BigDecimal value2) {
+            addCriterion("trade_price not between", value1, value2, "tradePrice");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecIsNull() {
+            addCriterion("spec is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecIsNotNull() {
+            addCriterion("spec is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecEqualTo(String value) {
+            addCriterion("spec =", value, "spec");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecNotEqualTo(String value) {
+            addCriterion("spec <>", value, "spec");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecGreaterThan(String value) {
+            addCriterion("spec >", value, "spec");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecGreaterThanOrEqualTo(String value) {
+            addCriterion("spec >=", value, "spec");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecLessThan(String value) {
+            addCriterion("spec <", value, "spec");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecLessThanOrEqualTo(String value) {
+            addCriterion("spec <=", value, "spec");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecLike(String value) {
+            addCriterion("spec like", value, "spec");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecNotLike(String value) {
+            addCriterion("spec not like", value, "spec");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecIn(List<String> values) {
+            addCriterion("spec in", values, "spec");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecNotIn(List<String> values) {
+            addCriterion("spec not in", values, "spec");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecBetween(String value1, String value2) {
+            addCriterion("spec between", value1, value2, "spec");
+            return (Criteria) this;
+        }
+
+        public Criteria andSpecNotBetween(String value1, String value2) {
+            addCriterion("spec not between", value1, value2, "spec");
+            return (Criteria) this;
+        }
+
+        public Criteria andDateOfManufactureIsNull() {
+            addCriterion("date_of_manufacture is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andDateOfManufactureIsNotNull() {
+            addCriterion("date_of_manufacture is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andDateOfManufactureEqualTo(String value) {
+            addCriterion("date_of_manufacture =", value, "dateOfManufacture");
+            return (Criteria) this;
+        }
+
+        public Criteria andDateOfManufactureNotEqualTo(String value) {
+            addCriterion("date_of_manufacture <>", value, "dateOfManufacture");
+            return (Criteria) this;
+        }
+
+        public Criteria andDateOfManufactureGreaterThan(String value) {
+            addCriterion("date_of_manufacture >", value, "dateOfManufacture");
+            return (Criteria) this;
+        }
+
+        public Criteria andDateOfManufactureGreaterThanOrEqualTo(String value) {
+            addCriterion("date_of_manufacture >=", value, "dateOfManufacture");
+            return (Criteria) this;
+        }
+
+        public Criteria andDateOfManufactureLessThan(String value) {
+            addCriterion("date_of_manufacture <", value, "dateOfManufacture");
+            return (Criteria) this;
+        }
+
+        public Criteria andDateOfManufactureLessThanOrEqualTo(String value) {
+            addCriterion("date_of_manufacture <=", value, "dateOfManufacture");
+            return (Criteria) this;
+        }
+
+        public Criteria andDateOfManufactureLike(String value) {
+            addCriterion("date_of_manufacture like", value, "dateOfManufacture");
+            return (Criteria) this;
+        }
+
+        public Criteria andDateOfManufactureNotLike(String value) {
+            addCriterion("date_of_manufacture not like", value, "dateOfManufacture");
+            return (Criteria) this;
+        }
+
+        public Criteria andDateOfManufactureIn(List<String> values) {
+            addCriterion("date_of_manufacture in", values, "dateOfManufacture");
+            return (Criteria) this;
+        }
+
+        public Criteria andDateOfManufactureNotIn(List<String> values) {
+            addCriterion("date_of_manufacture not in", values, "dateOfManufacture");
+            return (Criteria) this;
+        }
+
+        public Criteria andDateOfManufactureBetween(String value1, String value2) {
+            addCriterion("date_of_manufacture between", value1, value2, "dateOfManufacture");
+            return (Criteria) this;
+        }
+
+        public Criteria andDateOfManufactureNotBetween(String value1, String value2) {
+            addCriterion("date_of_manufacture not between", value1, value2, "dateOfManufacture");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionIdIsNull() {
+            addCriterion("place_of_production_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionIdIsNotNull() {
+            addCriterion("place_of_production_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionIdEqualTo(Long value) {
+            addCriterion("place_of_production_id =", value, "placeOfProductionId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionIdNotEqualTo(Long value) {
+            addCriterion("place_of_production_id <>", value, "placeOfProductionId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionIdGreaterThan(Long value) {
+            addCriterion("place_of_production_id >", value, "placeOfProductionId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionIdGreaterThanOrEqualTo(Long value) {
+            addCriterion("place_of_production_id >=", value, "placeOfProductionId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionIdLessThan(Long value) {
+            addCriterion("place_of_production_id <", value, "placeOfProductionId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionIdLessThanOrEqualTo(Long value) {
+            addCriterion("place_of_production_id <=", value, "placeOfProductionId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionIdIn(List<Long> values) {
+            addCriterion("place_of_production_id in", values, "placeOfProductionId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionIdNotIn(List<Long> values) {
+            addCriterion("place_of_production_id not in", values, "placeOfProductionId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionIdBetween(Long value1, Long value2) {
+            addCriterion("place_of_production_id between", value1, value2, "placeOfProductionId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionIdNotBetween(Long value1, Long value2) {
+            addCriterion("place_of_production_id not between", value1, value2, "placeOfProductionId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionIsNull() {
+            addCriterion("place_of_production is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionIsNotNull() {
+            addCriterion("place_of_production is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionEqualTo(String value) {
+            addCriterion("place_of_production =", value, "placeOfProduction");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionNotEqualTo(String value) {
+            addCriterion("place_of_production <>", value, "placeOfProduction");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionGreaterThan(String value) {
+            addCriterion("place_of_production >", value, "placeOfProduction");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionGreaterThanOrEqualTo(String value) {
+            addCriterion("place_of_production >=", value, "placeOfProduction");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionLessThan(String value) {
+            addCriterion("place_of_production <", value, "placeOfProduction");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionLessThanOrEqualTo(String value) {
+            addCriterion("place_of_production <=", value, "placeOfProduction");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionLike(String value) {
+            addCriterion("place_of_production like", value, "placeOfProduction");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionNotLike(String value) {
+            addCriterion("place_of_production not like", value, "placeOfProduction");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionIn(List<String> values) {
+            addCriterion("place_of_production in", values, "placeOfProduction");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionNotIn(List<String> values) {
+            addCriterion("place_of_production not in", values, "placeOfProduction");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionBetween(String value1, String value2) {
+            addCriterion("place_of_production between", value1, value2, "placeOfProduction");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlaceOfProductionNotBetween(String value1, String value2) {
+            addCriterion("place_of_production not between", value1, value2, "placeOfProduction");
+            return (Criteria) this;
+        }
+
+        public Criteria andInstructionsIsNull() {
+            addCriterion("instructions is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andInstructionsIsNotNull() {
+            addCriterion("instructions is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andInstructionsEqualTo(String value) {
+            addCriterion("instructions =", value, "instructions");
+            return (Criteria) this;
+        }
+
+        public Criteria andInstructionsNotEqualTo(String value) {
+            addCriterion("instructions <>", value, "instructions");
+            return (Criteria) this;
+        }
+
+        public Criteria andInstructionsGreaterThan(String value) {
+            addCriterion("instructions >", value, "instructions");
+            return (Criteria) this;
+        }
+
+        public Criteria andInstructionsGreaterThanOrEqualTo(String value) {
+            addCriterion("instructions >=", value, "instructions");
+            return (Criteria) this;
+        }
+
+        public Criteria andInstructionsLessThan(String value) {
+            addCriterion("instructions <", value, "instructions");
+            return (Criteria) this;
+        }
+
+        public Criteria andInstructionsLessThanOrEqualTo(String value) {
+            addCriterion("instructions <=", value, "instructions");
+            return (Criteria) this;
+        }
+
+        public Criteria andInstructionsLike(String value) {
+            addCriterion("instructions like", value, "instructions");
+            return (Criteria) this;
+        }
+
+        public Criteria andInstructionsNotLike(String value) {
+            addCriterion("instructions not like", value, "instructions");
+            return (Criteria) this;
+        }
+
+        public Criteria andInstructionsIn(List<String> values) {
+            addCriterion("instructions in", values, "instructions");
+            return (Criteria) this;
+        }
+
+        public Criteria andInstructionsNotIn(List<String> values) {
+            addCriterion("instructions not in", values, "instructions");
+            return (Criteria) this;
+        }
+
+        public Criteria andInstructionsBetween(String value1, String value2) {
+            addCriterion("instructions between", value1, value2, "instructions");
+            return (Criteria) this;
+        }
+
+        public Criteria andInstructionsNotBetween(String value1, String value2) {
+            addCriterion("instructions not between", value1, value2, "instructions");
+            return (Criteria) this;
+        }
+
+        public Criteria andQualityGuaranteePeriodIsNull() {
+            addCriterion("quality_guarantee_period is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andQualityGuaranteePeriodIsNotNull() {
+            addCriterion("quality_guarantee_period is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andQualityGuaranteePeriodEqualTo(String value) {
+            addCriterion("quality_guarantee_period =", value, "qualityGuaranteePeriod");
+            return (Criteria) this;
+        }
+
+        public Criteria andQualityGuaranteePeriodNotEqualTo(String value) {
+            addCriterion("quality_guarantee_period <>", value, "qualityGuaranteePeriod");
+            return (Criteria) this;
+        }
+
+        public Criteria andQualityGuaranteePeriodGreaterThan(String value) {
+            addCriterion("quality_guarantee_period >", value, "qualityGuaranteePeriod");
+            return (Criteria) this;
+        }
+
+        public Criteria andQualityGuaranteePeriodGreaterThanOrEqualTo(String value) {
+            addCriterion("quality_guarantee_period >=", value, "qualityGuaranteePeriod");
+            return (Criteria) this;
+        }
+
+        public Criteria andQualityGuaranteePeriodLessThan(String value) {
+            addCriterion("quality_guarantee_period <", value, "qualityGuaranteePeriod");
+            return (Criteria) this;
+        }
+
+        public Criteria andQualityGuaranteePeriodLessThanOrEqualTo(String value) {
+            addCriterion("quality_guarantee_period <=", value, "qualityGuaranteePeriod");
+            return (Criteria) this;
+        }
+
+        public Criteria andQualityGuaranteePeriodLike(String value) {
+            addCriterion("quality_guarantee_period like", value, "qualityGuaranteePeriod");
+            return (Criteria) this;
+        }
+
+        public Criteria andQualityGuaranteePeriodNotLike(String value) {
+            addCriterion("quality_guarantee_period not like", value, "qualityGuaranteePeriod");
+            return (Criteria) this;
+        }
+
+        public Criteria andQualityGuaranteePeriodIn(List<String> values) {
+            addCriterion("quality_guarantee_period in", values, "qualityGuaranteePeriod");
+            return (Criteria) this;
+        }
+
+        public Criteria andQualityGuaranteePeriodNotIn(List<String> values) {
+            addCriterion("quality_guarantee_period not in", values, "qualityGuaranteePeriod");
+            return (Criteria) this;
+        }
+
+        public Criteria andQualityGuaranteePeriodBetween(String value1, String value2) {
+            addCriterion("quality_guarantee_period between", value1, value2, "qualityGuaranteePeriod");
+            return (Criteria) this;
+        }
+
+        public Criteria andQualityGuaranteePeriodNotBetween(String value1, String value2) {
+            addCriterion("quality_guarantee_period not between", value1, value2, "qualityGuaranteePeriod");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointsForAttentionIsNull() {
+            addCriterion("points_for_attention is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointsForAttentionIsNotNull() {
+            addCriterion("points_for_attention is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointsForAttentionEqualTo(String value) {
+            addCriterion("points_for_attention =", value, "pointsForAttention");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointsForAttentionNotEqualTo(String value) {
+            addCriterion("points_for_attention <>", value, "pointsForAttention");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointsForAttentionGreaterThan(String value) {
+            addCriterion("points_for_attention >", value, "pointsForAttention");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointsForAttentionGreaterThanOrEqualTo(String value) {
+            addCriterion("points_for_attention >=", value, "pointsForAttention");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointsForAttentionLessThan(String value) {
+            addCriterion("points_for_attention <", value, "pointsForAttention");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointsForAttentionLessThanOrEqualTo(String value) {
+            addCriterion("points_for_attention <=", value, "pointsForAttention");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointsForAttentionLike(String value) {
+            addCriterion("points_for_attention like", value, "pointsForAttention");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointsForAttentionNotLike(String value) {
+            addCriterion("points_for_attention not like", value, "pointsForAttention");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointsForAttentionIn(List<String> values) {
+            addCriterion("points_for_attention in", values, "pointsForAttention");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointsForAttentionNotIn(List<String> values) {
+            addCriterion("points_for_attention not in", values, "pointsForAttention");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointsForAttentionBetween(String value1, String value2) {
+            addCriterion("points_for_attention between", value1, value2, "pointsForAttention");
+            return (Criteria) this;
+        }
+
+        public Criteria andPointsForAttentionNotBetween(String value1, String value2) {
+            addCriterion("points_for_attention not between", value1, value2, "pointsForAttention");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserIsNull() {
+            addCriterion("create_user is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserIsNotNull() {
+            addCriterion("create_user is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserEqualTo(Long value) {
+            addCriterion("create_user =", value, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserNotEqualTo(Long value) {
+            addCriterion("create_user <>", value, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserGreaterThan(Long value) {
+            addCriterion("create_user >", value, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserGreaterThanOrEqualTo(Long value) {
+            addCriterion("create_user >=", value, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserLessThan(Long value) {
+            addCriterion("create_user <", value, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserLessThanOrEqualTo(Long value) {
+            addCriterion("create_user <=", value, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserIn(List<Long> values) {
+            addCriterion("create_user in", values, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserNotIn(List<Long> values) {
+            addCriterion("create_user not in", values, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserBetween(Long value1, Long value2) {
+            addCriterion("create_user between", value1, value2, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateUserNotBetween(Long value1, Long value2) {
+            addCriterion("create_user not between", value1, value2, "createUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIsNull() {
+            addCriterion("create_time is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIsNotNull() {
+            addCriterion("create_time is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeEqualTo(Date value) {
+            addCriterion("create_time =", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotEqualTo(Date value) {
+            addCriterion("create_time <>", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThan(Date value) {
+            addCriterion("create_time >", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("create_time >=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThan(Date value) {
+            addCriterion("create_time <", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
+            addCriterion("create_time <=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIn(List<Date> values) {
+            addCriterion("create_time in", values, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotIn(List<Date> values) {
+            addCriterion("create_time not in", values, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeBetween(Date value1, Date value2) {
+            addCriterion("create_time between", value1, value2, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
+            addCriterion("create_time not between", value1, value2, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateUserIsNull() {
+            addCriterion("update_user is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateUserIsNotNull() {
+            addCriterion("update_user is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateUserEqualTo(Long value) {
+            addCriterion("update_user =", value, "updateUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateUserNotEqualTo(Long value) {
+            addCriterion("update_user <>", value, "updateUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateUserGreaterThan(Long value) {
+            addCriterion("update_user >", value, "updateUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateUserGreaterThanOrEqualTo(Long value) {
+            addCriterion("update_user >=", value, "updateUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateUserLessThan(Long value) {
+            addCriterion("update_user <", value, "updateUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateUserLessThanOrEqualTo(Long value) {
+            addCriterion("update_user <=", value, "updateUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateUserIn(List<Long> values) {
+            addCriterion("update_user in", values, "updateUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateUserNotIn(List<Long> values) {
+            addCriterion("update_user not in", values, "updateUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateUserBetween(Long value1, Long value2) {
+            addCriterion("update_user between", value1, value2, "updateUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateUserNotBetween(Long value1, Long value2) {
+            addCriterion("update_user not between", value1, value2, "updateUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeIsNull() {
+            addCriterion("update_time is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeIsNotNull() {
+            addCriterion("update_time is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeEqualTo(Date value) {
+            addCriterion("update_time =", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeNotEqualTo(Date value) {
+            addCriterion("update_time <>", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeGreaterThan(Date value) {
+            addCriterion("update_time >", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("update_time >=", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeLessThan(Date value) {
+            addCriterion("update_time <", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
+            addCriterion("update_time <=", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeIn(List<Date> values) {
+            addCriterion("update_time in", values, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeNotIn(List<Date> values) {
+            addCriterion("update_time not in", values, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
+            addCriterion("update_time between", value1, value2, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
+            addCriterion("update_time not between", value1, value2, "updateTime");
+            return (Criteria) this;
+        }
     }
 
     public static class Criteria extends GeneratedCriteria {

+ 6 - 6
forest-portal/portal-mbg/src/main/java/com/hwrj/cloud/portal/model/UmsCompanyFile.java

@@ -24,13 +24,13 @@ public class UmsCompanyFile implements Serializable {
     private Date createTime;
 
     @ApiModelProperty(value = "创建人id")
-    private Integer createId;
+    private Long createId;
 
     @ApiModelProperty(value = "修改时间")
     private Date updateTime;
 
     @ApiModelProperty(value = "修改人id")
-    private Integer updateId;
+    private Long updateId;
 
     private static final long serialVersionUID = 1L;
 
@@ -82,11 +82,11 @@ public class UmsCompanyFile implements Serializable {
         this.createTime = createTime;
     }
 
-    public Integer getCreateId() {
+    public Long getCreateId() {
         return createId;
     }
 
-    public void setCreateId(Integer createId) {
+    public void setCreateId(Long createId) {
         this.createId = createId;
     }
 
@@ -98,11 +98,11 @@ public class UmsCompanyFile implements Serializable {
         this.updateTime = updateTime;
     }
 
-    public Integer getUpdateId() {
+    public Long getUpdateId() {
         return updateId;
     }
 
-    public void setUpdateId(Integer updateId) {
+    public void setUpdateId(Long updateId) {
         this.updateId = updateId;
     }
 

+ 20 - 20
forest-portal/portal-mbg/src/main/java/com/hwrj/cloud/portal/model/UmsCompanyFileExample.java

@@ -495,52 +495,52 @@ public class UmsCompanyFileExample {
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdEqualTo(Integer value) {
+        public Criteria andCreateIdEqualTo(Long value) {
             addCriterion("create_id =", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdNotEqualTo(Integer value) {
+        public Criteria andCreateIdNotEqualTo(Long value) {
             addCriterion("create_id <>", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdGreaterThan(Integer value) {
+        public Criteria andCreateIdGreaterThan(Long value) {
             addCriterion("create_id >", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdGreaterThanOrEqualTo(Integer value) {
+        public Criteria andCreateIdGreaterThanOrEqualTo(Long value) {
             addCriterion("create_id >=", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdLessThan(Integer value) {
+        public Criteria andCreateIdLessThan(Long value) {
             addCriterion("create_id <", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdLessThanOrEqualTo(Integer value) {
+        public Criteria andCreateIdLessThanOrEqualTo(Long value) {
             addCriterion("create_id <=", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdIn(List<Integer> values) {
+        public Criteria andCreateIdIn(List<Long> values) {
             addCriterion("create_id in", values, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdNotIn(List<Integer> values) {
+        public Criteria andCreateIdNotIn(List<Long> values) {
             addCriterion("create_id not in", values, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdBetween(Integer value1, Integer value2) {
+        public Criteria andCreateIdBetween(Long value1, Long value2) {
             addCriterion("create_id between", value1, value2, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdNotBetween(Integer value1, Integer value2) {
+        public Criteria andCreateIdNotBetween(Long value1, Long value2) {
             addCriterion("create_id not between", value1, value2, "createId");
             return (Criteria) this;
         }
@@ -615,52 +615,52 @@ public class UmsCompanyFileExample {
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdEqualTo(Integer value) {
+        public Criteria andUpdateIdEqualTo(Long value) {
             addCriterion("update_id =", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdNotEqualTo(Integer value) {
+        public Criteria andUpdateIdNotEqualTo(Long value) {
             addCriterion("update_id <>", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdGreaterThan(Integer value) {
+        public Criteria andUpdateIdGreaterThan(Long value) {
             addCriterion("update_id >", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdGreaterThanOrEqualTo(Integer value) {
+        public Criteria andUpdateIdGreaterThanOrEqualTo(Long value) {
             addCriterion("update_id >=", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdLessThan(Integer value) {
+        public Criteria andUpdateIdLessThan(Long value) {
             addCriterion("update_id <", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdLessThanOrEqualTo(Integer value) {
+        public Criteria andUpdateIdLessThanOrEqualTo(Long value) {
             addCriterion("update_id <=", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdIn(List<Integer> values) {
+        public Criteria andUpdateIdIn(List<Long> values) {
             addCriterion("update_id in", values, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdNotIn(List<Integer> values) {
+        public Criteria andUpdateIdNotIn(List<Long> values) {
             addCriterion("update_id not in", values, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdBetween(Integer value1, Integer value2) {
+        public Criteria andUpdateIdBetween(Long value1, Long value2) {
             addCriterion("update_id between", value1, value2, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdNotBetween(Integer value1, Integer value2) {
+        public Criteria andUpdateIdNotBetween(Long value1, Long value2) {
             addCriterion("update_id not between", value1, value2, "updateId");
             return (Criteria) this;
         }

+ 72 - 24
forest-portal/portal-mbg/src/main/java/com/hwrj/cloud/portal/model/UmsCompanyInfo.java

@@ -11,49 +11,61 @@ public class UmsCompanyInfo implements Serializable {
     @ApiModelProperty(value = "供应商名称")
     private String compName;
 
+    @ApiModelProperty(value = "供应商类型")
+    private String companyType;
+
+    @ApiModelProperty(value = "供应商评级")
+    private Integer compLevel;
+
+    @ApiModelProperty(value = "供应商资质")
+    private String compQual;
+
     @ApiModelProperty(value = "供应商照片")
     private String compImgs;
 
     @ApiModelProperty(value = "供应商外部连接")
     private String compUrl;
 
-    @ApiModelProperty(value = "供应商生产许可证号")
+    @ApiModelProperty(value = "生产许可证号")
     private String compProdLicenseNum;
 
-    @ApiModelProperty(value = "供应商经营许可证")
+    @ApiModelProperty(value = "经营许可证")
     private String compManageLicenseNum;
 
-    @ApiModelProperty(value = "供应商社会行用代码")
+    @ApiModelProperty(value = "社会信用代码")
     private String compSocialCode;
 
-    @ApiModelProperty(value = "供应商联系人")
+    @ApiModelProperty(value = "联系人")
     private String compConPerson;
 
+    @ApiModelProperty(value = "是否认证:0未认证,1认证")
+    private Integer isCert;
+
     @ApiModelProperty(value = "供应商联系方式")
     private String compConType;
 
     @ApiModelProperty(value = "供应商联系账号")
     private String compConNum;
 
-    @ApiModelProperty(value = "供应商对外qq")
+    @ApiModelProperty(value = "对外企业qq")
     private String compQq;
 
-    @ApiModelProperty(value = "供应商经营产平")
+    @ApiModelProperty(value = "经营产品")
     private String compManageProduct;
 
-    @ApiModelProperty(value = "所在省id")
+    @ApiModelProperty(value = "所在省")
     private String provinceId;
 
-    @ApiModelProperty(value = "所在市id")
+    @ApiModelProperty(value = "所在市")
     private String cityId;
 
-    @ApiModelProperty(value = "所在县id")
+    @ApiModelProperty(value = "所在县")
     private String countyId;
 
-    @ApiModelProperty(value = "所在镇id")
+    @ApiModelProperty(value = "所在镇")
     private String townId;
 
-    @ApiModelProperty(value = "所在乡id")
+    @ApiModelProperty(value = "所在乡")
     private String villageId;
 
     @ApiModelProperty(value = "详细位置")
@@ -72,16 +84,16 @@ public class UmsCompanyInfo implements Serializable {
     private Date createTime;
 
     @ApiModelProperty(value = "创建人")
-    private Integer createId;
+    private Long createId;
 
     @ApiModelProperty(value = "修改时间")
     private Date updateTime;
 
     @ApiModelProperty(value = "修改人id")
-    private Integer updateId;
+    private Long updateId;
 
-    @ApiModelProperty(value = "供应商简介")
-    private String compIntroduction;
+    @ApiModelProperty(value = "简介")
+    private String compSum;
 
     private static final long serialVersionUID = 1L;
 
@@ -101,6 +113,30 @@ public class UmsCompanyInfo implements Serializable {
         this.compName = compName;
     }
 
+    public String getCompanyType() {
+        return companyType;
+    }
+
+    public void setCompanyType(String companyType) {
+        this.companyType = companyType;
+    }
+
+    public Integer getCompLevel() {
+        return compLevel;
+    }
+
+    public void setCompLevel(Integer compLevel) {
+        this.compLevel = compLevel;
+    }
+
+    public String getCompQual() {
+        return compQual;
+    }
+
+    public void setCompQual(String compQual) {
+        this.compQual = compQual;
+    }
+
     public String getCompImgs() {
         return compImgs;
     }
@@ -149,6 +185,14 @@ public class UmsCompanyInfo implements Serializable {
         this.compConPerson = compConPerson;
     }
 
+    public Integer getIsCert() {
+        return isCert;
+    }
+
+    public void setIsCert(Integer isCert) {
+        this.isCert = isCert;
+    }
+
     public String getCompConType() {
         return compConType;
     }
@@ -261,11 +305,11 @@ public class UmsCompanyInfo implements Serializable {
         this.createTime = createTime;
     }
 
-    public Integer getCreateId() {
+    public Long getCreateId() {
         return createId;
     }
 
-    public void setCreateId(Integer createId) {
+    public void setCreateId(Long createId) {
         this.createId = createId;
     }
 
@@ -277,20 +321,20 @@ public class UmsCompanyInfo implements Serializable {
         this.updateTime = updateTime;
     }
 
-    public Integer getUpdateId() {
+    public Long getUpdateId() {
         return updateId;
     }
 
-    public void setUpdateId(Integer updateId) {
+    public void setUpdateId(Long updateId) {
         this.updateId = updateId;
     }
 
-    public String getCompIntroduction() {
-        return compIntroduction;
+    public String getCompSum() {
+        return compSum;
     }
 
-    public void setCompIntroduction(String compIntroduction) {
-        this.compIntroduction = compIntroduction;
+    public void setCompSum(String compSum) {
+        this.compSum = compSum;
     }
 
     @Override
@@ -301,12 +345,16 @@ public class UmsCompanyInfo implements Serializable {
         sb.append("Hash = ").append(hashCode());
         sb.append(", id=").append(id);
         sb.append(", compName=").append(compName);
+        sb.append(", companyType=").append(companyType);
+        sb.append(", compLevel=").append(compLevel);
+        sb.append(", compQual=").append(compQual);
         sb.append(", compImgs=").append(compImgs);
         sb.append(", compUrl=").append(compUrl);
         sb.append(", compProdLicenseNum=").append(compProdLicenseNum);
         sb.append(", compManageLicenseNum=").append(compManageLicenseNum);
         sb.append(", compSocialCode=").append(compSocialCode);
         sb.append(", compConPerson=").append(compConPerson);
+        sb.append(", isCert=").append(isCert);
         sb.append(", compConType=").append(compConType);
         sb.append(", compConNum=").append(compConNum);
         sb.append(", compQq=").append(compQq);
@@ -324,7 +372,7 @@ public class UmsCompanyInfo implements Serializable {
         sb.append(", createId=").append(createId);
         sb.append(", updateTime=").append(updateTime);
         sb.append(", updateId=").append(updateId);
-        sb.append(", compIntroduction=").append(compIntroduction);
+        sb.append(", compSum=").append(compSum);
         sb.append(", serialVersionUID=").append(serialVersionUID);
         sb.append("]");
         return sb.toString();

+ 280 - 20
forest-portal/portal-mbg/src/main/java/com/hwrj/cloud/portal/model/UmsCompanyInfoExample.java

@@ -235,6 +235,206 @@ public class UmsCompanyInfoExample {
             return (Criteria) this;
         }
 
+        public Criteria andCompanyTypeIsNull() {
+            addCriterion("company_type is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeIsNotNull() {
+            addCriterion("company_type is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeEqualTo(String value) {
+            addCriterion("company_type =", value, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeNotEqualTo(String value) {
+            addCriterion("company_type <>", value, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeGreaterThan(String value) {
+            addCriterion("company_type >", value, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeGreaterThanOrEqualTo(String value) {
+            addCriterion("company_type >=", value, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeLessThan(String value) {
+            addCriterion("company_type <", value, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeLessThanOrEqualTo(String value) {
+            addCriterion("company_type <=", value, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeLike(String value) {
+            addCriterion("company_type like", value, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeNotLike(String value) {
+            addCriterion("company_type not like", value, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeIn(List<String> values) {
+            addCriterion("company_type in", values, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeNotIn(List<String> values) {
+            addCriterion("company_type not in", values, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeBetween(String value1, String value2) {
+            addCriterion("company_type between", value1, value2, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyTypeNotBetween(String value1, String value2) {
+            addCriterion("company_type not between", value1, value2, "companyType");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelIsNull() {
+            addCriterion("comp_level is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelIsNotNull() {
+            addCriterion("comp_level is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelEqualTo(Integer value) {
+            addCriterion("comp_level =", value, "compLevel");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelNotEqualTo(Integer value) {
+            addCriterion("comp_level <>", value, "compLevel");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelGreaterThan(Integer value) {
+            addCriterion("comp_level >", value, "compLevel");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelGreaterThanOrEqualTo(Integer value) {
+            addCriterion("comp_level >=", value, "compLevel");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelLessThan(Integer value) {
+            addCriterion("comp_level <", value, "compLevel");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelLessThanOrEqualTo(Integer value) {
+            addCriterion("comp_level <=", value, "compLevel");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelIn(List<Integer> values) {
+            addCriterion("comp_level in", values, "compLevel");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelNotIn(List<Integer> values) {
+            addCriterion("comp_level not in", values, "compLevel");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelBetween(Integer value1, Integer value2) {
+            addCriterion("comp_level between", value1, value2, "compLevel");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompLevelNotBetween(Integer value1, Integer value2) {
+            addCriterion("comp_level not between", value1, value2, "compLevel");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualIsNull() {
+            addCriterion("comp_qual is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualIsNotNull() {
+            addCriterion("comp_qual is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualEqualTo(String value) {
+            addCriterion("comp_qual =", value, "compQual");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualNotEqualTo(String value) {
+            addCriterion("comp_qual <>", value, "compQual");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualGreaterThan(String value) {
+            addCriterion("comp_qual >", value, "compQual");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualGreaterThanOrEqualTo(String value) {
+            addCriterion("comp_qual >=", value, "compQual");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualLessThan(String value) {
+            addCriterion("comp_qual <", value, "compQual");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualLessThanOrEqualTo(String value) {
+            addCriterion("comp_qual <=", value, "compQual");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualLike(String value) {
+            addCriterion("comp_qual like", value, "compQual");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualNotLike(String value) {
+            addCriterion("comp_qual not like", value, "compQual");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualIn(List<String> values) {
+            addCriterion("comp_qual in", values, "compQual");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualNotIn(List<String> values) {
+            addCriterion("comp_qual not in", values, "compQual");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualBetween(String value1, String value2) {
+            addCriterion("comp_qual between", value1, value2, "compQual");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompQualNotBetween(String value1, String value2) {
+            addCriterion("comp_qual not between", value1, value2, "compQual");
+            return (Criteria) this;
+        }
+
         public Criteria andCompImgsIsNull() {
             addCriterion("comp_imgs is null");
             return (Criteria) this;
@@ -655,6 +855,66 @@ public class UmsCompanyInfoExample {
             return (Criteria) this;
         }
 
+        public Criteria andIsCertIsNull() {
+            addCriterion("is_cert is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsCertIsNotNull() {
+            addCriterion("is_cert is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsCertEqualTo(Integer value) {
+            addCriterion("is_cert =", value, "isCert");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsCertNotEqualTo(Integer value) {
+            addCriterion("is_cert <>", value, "isCert");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsCertGreaterThan(Integer value) {
+            addCriterion("is_cert >", value, "isCert");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsCertGreaterThanOrEqualTo(Integer value) {
+            addCriterion("is_cert >=", value, "isCert");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsCertLessThan(Integer value) {
+            addCriterion("is_cert <", value, "isCert");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsCertLessThanOrEqualTo(Integer value) {
+            addCriterion("is_cert <=", value, "isCert");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsCertIn(List<Integer> values) {
+            addCriterion("is_cert in", values, "isCert");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsCertNotIn(List<Integer> values) {
+            addCriterion("is_cert not in", values, "isCert");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsCertBetween(Integer value1, Integer value2) {
+            addCriterion("is_cert between", value1, value2, "isCert");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsCertNotBetween(Integer value1, Integer value2) {
+            addCriterion("is_cert not between", value1, value2, "isCert");
+            return (Criteria) this;
+        }
+
         public Criteria andCompConTypeIsNull() {
             addCriterion("comp_con_type is null");
             return (Criteria) this;
@@ -1625,52 +1885,52 @@ public class UmsCompanyInfoExample {
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdEqualTo(Integer value) {
+        public Criteria andCreateIdEqualTo(Long value) {
             addCriterion("create_id =", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdNotEqualTo(Integer value) {
+        public Criteria andCreateIdNotEqualTo(Long value) {
             addCriterion("create_id <>", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdGreaterThan(Integer value) {
+        public Criteria andCreateIdGreaterThan(Long value) {
             addCriterion("create_id >", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdGreaterThanOrEqualTo(Integer value) {
+        public Criteria andCreateIdGreaterThanOrEqualTo(Long value) {
             addCriterion("create_id >=", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdLessThan(Integer value) {
+        public Criteria andCreateIdLessThan(Long value) {
             addCriterion("create_id <", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdLessThanOrEqualTo(Integer value) {
+        public Criteria andCreateIdLessThanOrEqualTo(Long value) {
             addCriterion("create_id <=", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdIn(List<Integer> values) {
+        public Criteria andCreateIdIn(List<Long> values) {
             addCriterion("create_id in", values, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdNotIn(List<Integer> values) {
+        public Criteria andCreateIdNotIn(List<Long> values) {
             addCriterion("create_id not in", values, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdBetween(Integer value1, Integer value2) {
+        public Criteria andCreateIdBetween(Long value1, Long value2) {
             addCriterion("create_id between", value1, value2, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdNotBetween(Integer value1, Integer value2) {
+        public Criteria andCreateIdNotBetween(Long value1, Long value2) {
             addCriterion("create_id not between", value1, value2, "createId");
             return (Criteria) this;
         }
@@ -1745,52 +2005,52 @@ public class UmsCompanyInfoExample {
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdEqualTo(Integer value) {
+        public Criteria andUpdateIdEqualTo(Long value) {
             addCriterion("update_id =", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdNotEqualTo(Integer value) {
+        public Criteria andUpdateIdNotEqualTo(Long value) {
             addCriterion("update_id <>", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdGreaterThan(Integer value) {
+        public Criteria andUpdateIdGreaterThan(Long value) {
             addCriterion("update_id >", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdGreaterThanOrEqualTo(Integer value) {
+        public Criteria andUpdateIdGreaterThanOrEqualTo(Long value) {
             addCriterion("update_id >=", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdLessThan(Integer value) {
+        public Criteria andUpdateIdLessThan(Long value) {
             addCriterion("update_id <", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdLessThanOrEqualTo(Integer value) {
+        public Criteria andUpdateIdLessThanOrEqualTo(Long value) {
             addCriterion("update_id <=", value, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdIn(List<Integer> values) {
+        public Criteria andUpdateIdIn(List<Long> values) {
             addCriterion("update_id in", values, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdNotIn(List<Integer> values) {
+        public Criteria andUpdateIdNotIn(List<Long> values) {
             addCriterion("update_id not in", values, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdBetween(Integer value1, Integer value2) {
+        public Criteria andUpdateIdBetween(Long value1, Long value2) {
             addCriterion("update_id between", value1, value2, "updateId");
             return (Criteria) this;
         }
 
-        public Criteria andUpdateIdNotBetween(Integer value1, Integer value2) {
+        public Criteria andUpdateIdNotBetween(Long value1, Long value2) {
             addCriterion("update_id not between", value1, value2, "updateId");
             return (Criteria) this;
         }

+ 10 - 10
forest-portal/portal-mbg/src/main/java/com/hwrj/cloud/portal/model/UmsCompanyShop.java

@@ -6,12 +6,12 @@ import java.util.Date;
 
 public class UmsCompanyShop implements Serializable {
     @ApiModelProperty(value = "主键")
-    private Integer id;
+    private Long id;
 
     @ApiModelProperty(value = "供应商id")
-    private Integer compId;
+    private Long compId;
 
-    @ApiModelProperty(value = "网店类型:taobao:淘宝店jd:京东店:ping:多多店")
+    @ApiModelProperty(value = "网店类型:taobao:淘宝店jd:京东店:ping:多多店,own自营")
     private String shopType;
 
     @ApiModelProperty(value = "网点访问地址")
@@ -27,7 +27,7 @@ public class UmsCompanyShop implements Serializable {
     private Date createTime;
 
     @ApiModelProperty(value = "创建人id")
-    private Integer createId;
+    private Long createId;
 
     @ApiModelProperty(value = "修改时间")
     private Date updateTime;
@@ -37,19 +37,19 @@ public class UmsCompanyShop implements Serializable {
 
     private static final long serialVersionUID = 1L;
 
-    public Integer getId() {
+    public Long getId() {
         return id;
     }
 
-    public void setId(Integer id) {
+    public void setId(Long id) {
         this.id = id;
     }
 
-    public Integer getCompId() {
+    public Long getCompId() {
         return compId;
     }
 
-    public void setCompId(Integer compId) {
+    public void setCompId(Long compId) {
         this.compId = compId;
     }
 
@@ -93,11 +93,11 @@ public class UmsCompanyShop implements Serializable {
         this.createTime = createTime;
     }
 
-    public Integer getCreateId() {
+    public Long getCreateId() {
         return createId;
     }
 
-    public void setCreateId(Integer createId) {
+    public void setCreateId(Long createId) {
         this.createId = createId;
     }
 

+ 30 - 30
forest-portal/portal-mbg/src/main/java/com/hwrj/cloud/portal/model/UmsCompanyShopExample.java

@@ -115,52 +115,52 @@ public class UmsCompanyShopExample {
             return (Criteria) this;
         }
 
-        public Criteria andIdEqualTo(Integer value) {
+        public Criteria andIdEqualTo(Long value) {
             addCriterion("id =", value, "id");
             return (Criteria) this;
         }
 
-        public Criteria andIdNotEqualTo(Integer value) {
+        public Criteria andIdNotEqualTo(Long value) {
             addCriterion("id <>", value, "id");
             return (Criteria) this;
         }
 
-        public Criteria andIdGreaterThan(Integer value) {
+        public Criteria andIdGreaterThan(Long value) {
             addCriterion("id >", value, "id");
             return (Criteria) this;
         }
 
-        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
+        public Criteria andIdGreaterThanOrEqualTo(Long value) {
             addCriterion("id >=", value, "id");
             return (Criteria) this;
         }
 
-        public Criteria andIdLessThan(Integer value) {
+        public Criteria andIdLessThan(Long value) {
             addCriterion("id <", value, "id");
             return (Criteria) this;
         }
 
-        public Criteria andIdLessThanOrEqualTo(Integer value) {
+        public Criteria andIdLessThanOrEqualTo(Long value) {
             addCriterion("id <=", value, "id");
             return (Criteria) this;
         }
 
-        public Criteria andIdIn(List<Integer> values) {
+        public Criteria andIdIn(List<Long> values) {
             addCriterion("id in", values, "id");
             return (Criteria) this;
         }
 
-        public Criteria andIdNotIn(List<Integer> values) {
+        public Criteria andIdNotIn(List<Long> values) {
             addCriterion("id not in", values, "id");
             return (Criteria) this;
         }
 
-        public Criteria andIdBetween(Integer value1, Integer value2) {
+        public Criteria andIdBetween(Long value1, Long value2) {
             addCriterion("id between", value1, value2, "id");
             return (Criteria) this;
         }
 
-        public Criteria andIdNotBetween(Integer value1, Integer value2) {
+        public Criteria andIdNotBetween(Long value1, Long value2) {
             addCriterion("id not between", value1, value2, "id");
             return (Criteria) this;
         }
@@ -175,52 +175,52 @@ public class UmsCompanyShopExample {
             return (Criteria) this;
         }
 
-        public Criteria andCompIdEqualTo(Integer value) {
+        public Criteria andCompIdEqualTo(Long value) {
             addCriterion("comp_id =", value, "compId");
             return (Criteria) this;
         }
 
-        public Criteria andCompIdNotEqualTo(Integer value) {
+        public Criteria andCompIdNotEqualTo(Long value) {
             addCriterion("comp_id <>", value, "compId");
             return (Criteria) this;
         }
 
-        public Criteria andCompIdGreaterThan(Integer value) {
+        public Criteria andCompIdGreaterThan(Long value) {
             addCriterion("comp_id >", value, "compId");
             return (Criteria) this;
         }
 
-        public Criteria andCompIdGreaterThanOrEqualTo(Integer value) {
+        public Criteria andCompIdGreaterThanOrEqualTo(Long value) {
             addCriterion("comp_id >=", value, "compId");
             return (Criteria) this;
         }
 
-        public Criteria andCompIdLessThan(Integer value) {
+        public Criteria andCompIdLessThan(Long value) {
             addCriterion("comp_id <", value, "compId");
             return (Criteria) this;
         }
 
-        public Criteria andCompIdLessThanOrEqualTo(Integer value) {
+        public Criteria andCompIdLessThanOrEqualTo(Long value) {
             addCriterion("comp_id <=", value, "compId");
             return (Criteria) this;
         }
 
-        public Criteria andCompIdIn(List<Integer> values) {
+        public Criteria andCompIdIn(List<Long> values) {
             addCriterion("comp_id in", values, "compId");
             return (Criteria) this;
         }
 
-        public Criteria andCompIdNotIn(List<Integer> values) {
+        public Criteria andCompIdNotIn(List<Long> values) {
             addCriterion("comp_id not in", values, "compId");
             return (Criteria) this;
         }
 
-        public Criteria andCompIdBetween(Integer value1, Integer value2) {
+        public Criteria andCompIdBetween(Long value1, Long value2) {
             addCriterion("comp_id between", value1, value2, "compId");
             return (Criteria) this;
         }
 
-        public Criteria andCompIdNotBetween(Integer value1, Integer value2) {
+        public Criteria andCompIdNotBetween(Long value1, Long value2) {
             addCriterion("comp_id not between", value1, value2, "compId");
             return (Criteria) this;
         }
@@ -575,52 +575,52 @@ public class UmsCompanyShopExample {
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdEqualTo(Integer value) {
+        public Criteria andCreateIdEqualTo(Long value) {
             addCriterion("create_id =", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdNotEqualTo(Integer value) {
+        public Criteria andCreateIdNotEqualTo(Long value) {
             addCriterion("create_id <>", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdGreaterThan(Integer value) {
+        public Criteria andCreateIdGreaterThan(Long value) {
             addCriterion("create_id >", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdGreaterThanOrEqualTo(Integer value) {
+        public Criteria andCreateIdGreaterThanOrEqualTo(Long value) {
             addCriterion("create_id >=", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdLessThan(Integer value) {
+        public Criteria andCreateIdLessThan(Long value) {
             addCriterion("create_id <", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdLessThanOrEqualTo(Integer value) {
+        public Criteria andCreateIdLessThanOrEqualTo(Long value) {
             addCriterion("create_id <=", value, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdIn(List<Integer> values) {
+        public Criteria andCreateIdIn(List<Long> values) {
             addCriterion("create_id in", values, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdNotIn(List<Integer> values) {
+        public Criteria andCreateIdNotIn(List<Long> values) {
             addCriterion("create_id not in", values, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdBetween(Integer value1, Integer value2) {
+        public Criteria andCreateIdBetween(Long value1, Long value2) {
             addCriterion("create_id between", value1, value2, "createId");
             return (Criteria) this;
         }
 
-        public Criteria andCreateIdNotBetween(Integer value1, Integer value2) {
+        public Criteria andCreateIdNotBetween(Long value1, Long value2) {
             addCriterion("create_id not between", value1, value2, "createId");
             return (Criteria) this;
         }

+ 256 - 5
forest-portal/portal-mbg/src/main/resources/com/hwrj/cloud/portal/mapper/PmsProductMapper.xml

@@ -40,6 +40,20 @@
     <result column="promotion_type" jdbcType="INTEGER" property="promotionType" />
     <result column="brand_name" jdbcType="VARCHAR" property="brandName" />
     <result column="product_category_name" jdbcType="VARCHAR" property="productCategoryName" />
+    <result column="ums_company_info_id" jdbcType="BIGINT" property="umsCompanyInfoId" />
+    <result column="ums_company_info" jdbcType="VARCHAR" property="umsCompanyInfo" />
+    <result column="trade_price" jdbcType="DECIMAL" property="tradePrice" />
+    <result column="spec" jdbcType="VARCHAR" property="spec" />
+    <result column="date_of_manufacture" jdbcType="VARCHAR" property="dateOfManufacture" />
+    <result column="place_of_production_id" jdbcType="BIGINT" property="placeOfProductionId" />
+    <result column="place_of_production" jdbcType="VARCHAR" property="placeOfProduction" />
+    <result column="instructions" jdbcType="VARCHAR" property="instructions" />
+    <result column="quality_guarantee_period" jdbcType="VARCHAR" property="qualityGuaranteePeriod" />
+    <result column="points_for_attention" jdbcType="VARCHAR" property="pointsForAttention" />
+    <result column="create_user" jdbcType="BIGINT" property="createUser" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="update_user" jdbcType="BIGINT" property="updateUser" />
+    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
   </resultMap>
   <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.hwrj.cloud.portal.model.PmsProduct">
     <result column="description" jdbcType="LONGVARCHAR" property="description" />
@@ -111,7 +125,10 @@
     verify_status, sort, sale, price, promotion_price, gift_growth, gift_point, use_point_limit, 
     sub_title, original_price, stock, low_stock, unit, weight, preview_status, service_ids, 
     keywords, note, album_pics, detail_title, promotion_start_time, promotion_end_time, 
-    promotion_per_limit, promotion_type, brand_name, product_category_name
+    promotion_per_limit, promotion_type, brand_name, product_category_name, ums_company_info_id, 
+    ums_company_info, trade_price, spec, date_of_manufacture, place_of_production_id, 
+    place_of_production, instructions, quality_guarantee_period, points_for_attention, 
+    create_user, create_time, update_user, update_time
   </sql>
   <sql id="Blob_Column_List">
     description, detail_desc, detail_html, detail_mobile_html
@@ -180,7 +197,12 @@
       keywords, note, album_pics, 
       detail_title, promotion_start_time, promotion_end_time, 
       promotion_per_limit, promotion_type, brand_name, 
-      product_category_name, description, detail_desc, 
+      product_category_name, ums_company_info_id, ums_company_info, 
+      trade_price, spec, date_of_manufacture, 
+      place_of_production_id, place_of_production, 
+      instructions, quality_guarantee_period, points_for_attention, 
+      create_user, create_time, update_user, 
+      update_time, description, detail_desc, 
       detail_html, detail_mobile_html)
     values (#{brandId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT}, #{feightTemplateId,jdbcType=BIGINT}, 
       #{productAttributeCategoryId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR}, 
@@ -194,7 +216,12 @@
       #{keywords,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{albumPics,jdbcType=VARCHAR}, 
       #{detailTitle,jdbcType=VARCHAR}, #{promotionStartTime,jdbcType=TIMESTAMP}, #{promotionEndTime,jdbcType=TIMESTAMP}, 
       #{promotionPerLimit,jdbcType=INTEGER}, #{promotionType,jdbcType=INTEGER}, #{brandName,jdbcType=VARCHAR}, 
-      #{productCategoryName,jdbcType=VARCHAR}, #{description,jdbcType=LONGVARCHAR}, #{detailDesc,jdbcType=LONGVARCHAR}, 
+      #{productCategoryName,jdbcType=VARCHAR}, #{umsCompanyInfoId,jdbcType=BIGINT}, #{umsCompanyInfo,jdbcType=VARCHAR}, 
+      #{tradePrice,jdbcType=DECIMAL}, #{spec,jdbcType=VARCHAR}, #{dateOfManufacture,jdbcType=VARCHAR}, 
+      #{placeOfProductionId,jdbcType=BIGINT}, #{placeOfProduction,jdbcType=VARCHAR}, 
+      #{instructions,jdbcType=VARCHAR}, #{qualityGuaranteePeriod,jdbcType=VARCHAR}, #{pointsForAttention,jdbcType=VARCHAR}, 
+      #{createUser,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=BIGINT}, 
+      #{updateTime,jdbcType=TIMESTAMP}, #{description,jdbcType=LONGVARCHAR}, #{detailDesc,jdbcType=LONGVARCHAR}, 
       #{detailHtml,jdbcType=LONGVARCHAR}, #{detailMobileHtml,jdbcType=LONGVARCHAR})
   </insert>
   <insert id="insertSelective" parameterType="com.hwrj.cloud.portal.model.PmsProduct">
@@ -314,6 +341,48 @@
       <if test="productCategoryName != null">
         product_category_name,
       </if>
+      <if test="umsCompanyInfoId != null">
+        ums_company_info_id,
+      </if>
+      <if test="umsCompanyInfo != null">
+        ums_company_info,
+      </if>
+      <if test="tradePrice != null">
+        trade_price,
+      </if>
+      <if test="spec != null">
+        spec,
+      </if>
+      <if test="dateOfManufacture != null">
+        date_of_manufacture,
+      </if>
+      <if test="placeOfProductionId != null">
+        place_of_production_id,
+      </if>
+      <if test="placeOfProduction != null">
+        place_of_production,
+      </if>
+      <if test="instructions != null">
+        instructions,
+      </if>
+      <if test="qualityGuaranteePeriod != null">
+        quality_guarantee_period,
+      </if>
+      <if test="pointsForAttention != null">
+        points_for_attention,
+      </if>
+      <if test="createUser != null">
+        create_user,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+      <if test="updateUser != null">
+        update_user,
+      </if>
+      <if test="updateTime != null">
+        update_time,
+      </if>
       <if test="description != null">
         description,
       </if>
@@ -439,6 +508,48 @@
       <if test="productCategoryName != null">
         #{productCategoryName,jdbcType=VARCHAR},
       </if>
+      <if test="umsCompanyInfoId != null">
+        #{umsCompanyInfoId,jdbcType=BIGINT},
+      </if>
+      <if test="umsCompanyInfo != null">
+        #{umsCompanyInfo,jdbcType=VARCHAR},
+      </if>
+      <if test="tradePrice != null">
+        #{tradePrice,jdbcType=DECIMAL},
+      </if>
+      <if test="spec != null">
+        #{spec,jdbcType=VARCHAR},
+      </if>
+      <if test="dateOfManufacture != null">
+        #{dateOfManufacture,jdbcType=VARCHAR},
+      </if>
+      <if test="placeOfProductionId != null">
+        #{placeOfProductionId,jdbcType=BIGINT},
+      </if>
+      <if test="placeOfProduction != null">
+        #{placeOfProduction,jdbcType=VARCHAR},
+      </if>
+      <if test="instructions != null">
+        #{instructions,jdbcType=VARCHAR},
+      </if>
+      <if test="qualityGuaranteePeriod != null">
+        #{qualityGuaranteePeriod,jdbcType=VARCHAR},
+      </if>
+      <if test="pointsForAttention != null">
+        #{pointsForAttention,jdbcType=VARCHAR},
+      </if>
+      <if test="createUser != null">
+        #{createUser,jdbcType=BIGINT},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateUser != null">
+        #{updateUser,jdbcType=BIGINT},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
       <if test="description != null">
         #{description,jdbcType=LONGVARCHAR},
       </if>
@@ -576,6 +687,48 @@
       <if test="record.productCategoryName != null">
         product_category_name = #{record.productCategoryName,jdbcType=VARCHAR},
       </if>
+      <if test="record.umsCompanyInfoId != null">
+        ums_company_info_id = #{record.umsCompanyInfoId,jdbcType=BIGINT},
+      </if>
+      <if test="record.umsCompanyInfo != null">
+        ums_company_info = #{record.umsCompanyInfo,jdbcType=VARCHAR},
+      </if>
+      <if test="record.tradePrice != null">
+        trade_price = #{record.tradePrice,jdbcType=DECIMAL},
+      </if>
+      <if test="record.spec != null">
+        spec = #{record.spec,jdbcType=VARCHAR},
+      </if>
+      <if test="record.dateOfManufacture != null">
+        date_of_manufacture = #{record.dateOfManufacture,jdbcType=VARCHAR},
+      </if>
+      <if test="record.placeOfProductionId != null">
+        place_of_production_id = #{record.placeOfProductionId,jdbcType=BIGINT},
+      </if>
+      <if test="record.placeOfProduction != null">
+        place_of_production = #{record.placeOfProduction,jdbcType=VARCHAR},
+      </if>
+      <if test="record.instructions != null">
+        instructions = #{record.instructions,jdbcType=VARCHAR},
+      </if>
+      <if test="record.qualityGuaranteePeriod != null">
+        quality_guarantee_period = #{record.qualityGuaranteePeriod,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pointsForAttention != null">
+        points_for_attention = #{record.pointsForAttention,jdbcType=VARCHAR},
+      </if>
+      <if test="record.createUser != null">
+        create_user = #{record.createUser,jdbcType=BIGINT},
+      </if>
+      <if test="record.createTime != null">
+        create_time = #{record.createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.updateUser != null">
+        update_user = #{record.updateUser,jdbcType=BIGINT},
+      </if>
+      <if test="record.updateTime != null">
+        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
+      </if>
       <if test="record.description != null">
         description = #{record.description,jdbcType=LONGVARCHAR},
       </if>
@@ -633,6 +786,20 @@
       promotion_type = #{record.promotionType,jdbcType=INTEGER},
       brand_name = #{record.brandName,jdbcType=VARCHAR},
       product_category_name = #{record.productCategoryName,jdbcType=VARCHAR},
+      ums_company_info_id = #{record.umsCompanyInfoId,jdbcType=BIGINT},
+      ums_company_info = #{record.umsCompanyInfo,jdbcType=VARCHAR},
+      trade_price = #{record.tradePrice,jdbcType=DECIMAL},
+      spec = #{record.spec,jdbcType=VARCHAR},
+      date_of_manufacture = #{record.dateOfManufacture,jdbcType=VARCHAR},
+      place_of_production_id = #{record.placeOfProductionId,jdbcType=BIGINT},
+      place_of_production = #{record.placeOfProduction,jdbcType=VARCHAR},
+      instructions = #{record.instructions,jdbcType=VARCHAR},
+      quality_guarantee_period = #{record.qualityGuaranteePeriod,jdbcType=VARCHAR},
+      points_for_attention = #{record.pointsForAttention,jdbcType=VARCHAR},
+      create_user = #{record.createUser,jdbcType=BIGINT},
+      create_time = #{record.createTime,jdbcType=TIMESTAMP},
+      update_user = #{record.updateUser,jdbcType=BIGINT},
+      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
       description = #{record.description,jdbcType=LONGVARCHAR},
       detail_desc = #{record.detailDesc,jdbcType=LONGVARCHAR},
       detail_html = #{record.detailHtml,jdbcType=LONGVARCHAR},
@@ -680,7 +847,21 @@
       promotion_per_limit = #{record.promotionPerLimit,jdbcType=INTEGER},
       promotion_type = #{record.promotionType,jdbcType=INTEGER},
       brand_name = #{record.brandName,jdbcType=VARCHAR},
-      product_category_name = #{record.productCategoryName,jdbcType=VARCHAR}
+      product_category_name = #{record.productCategoryName,jdbcType=VARCHAR},
+      ums_company_info_id = #{record.umsCompanyInfoId,jdbcType=BIGINT},
+      ums_company_info = #{record.umsCompanyInfo,jdbcType=VARCHAR},
+      trade_price = #{record.tradePrice,jdbcType=DECIMAL},
+      spec = #{record.spec,jdbcType=VARCHAR},
+      date_of_manufacture = #{record.dateOfManufacture,jdbcType=VARCHAR},
+      place_of_production_id = #{record.placeOfProductionId,jdbcType=BIGINT},
+      place_of_production = #{record.placeOfProduction,jdbcType=VARCHAR},
+      instructions = #{record.instructions,jdbcType=VARCHAR},
+      quality_guarantee_period = #{record.qualityGuaranteePeriod,jdbcType=VARCHAR},
+      points_for_attention = #{record.pointsForAttention,jdbcType=VARCHAR},
+      create_user = #{record.createUser,jdbcType=BIGINT},
+      create_time = #{record.createTime,jdbcType=TIMESTAMP},
+      update_user = #{record.updateUser,jdbcType=BIGINT},
+      update_time = #{record.updateTime,jdbcType=TIMESTAMP}
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
     </if>
@@ -799,6 +980,48 @@
       <if test="productCategoryName != null">
         product_category_name = #{productCategoryName,jdbcType=VARCHAR},
       </if>
+      <if test="umsCompanyInfoId != null">
+        ums_company_info_id = #{umsCompanyInfoId,jdbcType=BIGINT},
+      </if>
+      <if test="umsCompanyInfo != null">
+        ums_company_info = #{umsCompanyInfo,jdbcType=VARCHAR},
+      </if>
+      <if test="tradePrice != null">
+        trade_price = #{tradePrice,jdbcType=DECIMAL},
+      </if>
+      <if test="spec != null">
+        spec = #{spec,jdbcType=VARCHAR},
+      </if>
+      <if test="dateOfManufacture != null">
+        date_of_manufacture = #{dateOfManufacture,jdbcType=VARCHAR},
+      </if>
+      <if test="placeOfProductionId != null">
+        place_of_production_id = #{placeOfProductionId,jdbcType=BIGINT},
+      </if>
+      <if test="placeOfProduction != null">
+        place_of_production = #{placeOfProduction,jdbcType=VARCHAR},
+      </if>
+      <if test="instructions != null">
+        instructions = #{instructions,jdbcType=VARCHAR},
+      </if>
+      <if test="qualityGuaranteePeriod != null">
+        quality_guarantee_period = #{qualityGuaranteePeriod,jdbcType=VARCHAR},
+      </if>
+      <if test="pointsForAttention != null">
+        points_for_attention = #{pointsForAttention,jdbcType=VARCHAR},
+      </if>
+      <if test="createUser != null">
+        create_user = #{createUser,jdbcType=BIGINT},
+      </if>
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateUser != null">
+        update_user = #{updateUser,jdbcType=BIGINT},
+      </if>
+      <if test="updateTime != null">
+        update_time = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
       <if test="description != null">
         description = #{description,jdbcType=LONGVARCHAR},
       </if>
@@ -853,6 +1076,20 @@
       promotion_type = #{promotionType,jdbcType=INTEGER},
       brand_name = #{brandName,jdbcType=VARCHAR},
       product_category_name = #{productCategoryName,jdbcType=VARCHAR},
+      ums_company_info_id = #{umsCompanyInfoId,jdbcType=BIGINT},
+      ums_company_info = #{umsCompanyInfo,jdbcType=VARCHAR},
+      trade_price = #{tradePrice,jdbcType=DECIMAL},
+      spec = #{spec,jdbcType=VARCHAR},
+      date_of_manufacture = #{dateOfManufacture,jdbcType=VARCHAR},
+      place_of_production_id = #{placeOfProductionId,jdbcType=BIGINT},
+      place_of_production = #{placeOfProduction,jdbcType=VARCHAR},
+      instructions = #{instructions,jdbcType=VARCHAR},
+      quality_guarantee_period = #{qualityGuaranteePeriod,jdbcType=VARCHAR},
+      points_for_attention = #{pointsForAttention,jdbcType=VARCHAR},
+      create_user = #{createUser,jdbcType=BIGINT},
+      create_time = #{createTime,jdbcType=TIMESTAMP},
+      update_user = #{updateUser,jdbcType=BIGINT},
+      update_time = #{updateTime,jdbcType=TIMESTAMP},
       description = #{description,jdbcType=LONGVARCHAR},
       detail_desc = #{detailDesc,jdbcType=LONGVARCHAR},
       detail_html = #{detailHtml,jdbcType=LONGVARCHAR},
@@ -897,7 +1134,21 @@
       promotion_per_limit = #{promotionPerLimit,jdbcType=INTEGER},
       promotion_type = #{promotionType,jdbcType=INTEGER},
       brand_name = #{brandName,jdbcType=VARCHAR},
-      product_category_name = #{productCategoryName,jdbcType=VARCHAR}
+      product_category_name = #{productCategoryName,jdbcType=VARCHAR},
+      ums_company_info_id = #{umsCompanyInfoId,jdbcType=BIGINT},
+      ums_company_info = #{umsCompanyInfo,jdbcType=VARCHAR},
+      trade_price = #{tradePrice,jdbcType=DECIMAL},
+      spec = #{spec,jdbcType=VARCHAR},
+      date_of_manufacture = #{dateOfManufacture,jdbcType=VARCHAR},
+      place_of_production_id = #{placeOfProductionId,jdbcType=BIGINT},
+      place_of_production = #{placeOfProduction,jdbcType=VARCHAR},
+      instructions = #{instructions,jdbcType=VARCHAR},
+      quality_guarantee_period = #{qualityGuaranteePeriod,jdbcType=VARCHAR},
+      points_for_attention = #{pointsForAttention,jdbcType=VARCHAR},
+      create_user = #{createUser,jdbcType=BIGINT},
+      create_time = #{createTime,jdbcType=TIMESTAMP},
+      update_user = #{updateUser,jdbcType=BIGINT},
+      update_time = #{updateTime,jdbcType=TIMESTAMP}
     where id = #{id,jdbcType=BIGINT}
   </update>
 </mapper>

+ 14 - 14
forest-portal/portal-mbg/src/main/resources/com/hwrj/cloud/portal/mapper/UmsCompanyFileMapper.xml

@@ -8,9 +8,9 @@
     <result column="file_type" jdbcType="VARCHAR" property="fileType" />
     <result column="file_status" jdbcType="INTEGER" property="fileStatus" />
     <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
-    <result column="create_id" jdbcType="INTEGER" property="createId" />
+    <result column="create_id" jdbcType="BIGINT" property="createId" />
     <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
-    <result column="update_id" jdbcType="INTEGER" property="updateId" />
+    <result column="update_id" jdbcType="BIGINT" property="updateId" />
   </resultMap>
   <sql id="Example_Where_Clause">
     <where>
@@ -112,8 +112,8 @@
       file_status, create_time, create_id, 
       update_time, update_id)
     values (#{compId,jdbcType=BIGINT}, #{fileUrl,jdbcType=VARCHAR}, #{fileType,jdbcType=VARCHAR}, 
-      #{fileStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{createId,jdbcType=INTEGER}, 
-      #{updateTime,jdbcType=TIMESTAMP}, #{updateId,jdbcType=INTEGER})
+      #{fileStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{createId,jdbcType=BIGINT}, 
+      #{updateTime,jdbcType=TIMESTAMP}, #{updateId,jdbcType=BIGINT})
   </insert>
   <insert id="insertSelective" parameterType="com.hwrj.cloud.portal.model.UmsCompanyFile">
     <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
@@ -163,13 +163,13 @@
         #{createTime,jdbcType=TIMESTAMP},
       </if>
       <if test="createId != null">
-        #{createId,jdbcType=INTEGER},
+        #{createId,jdbcType=BIGINT},
       </if>
       <if test="updateTime != null">
         #{updateTime,jdbcType=TIMESTAMP},
       </if>
       <if test="updateId != null">
-        #{updateId,jdbcType=INTEGER},
+        #{updateId,jdbcType=BIGINT},
       </if>
     </trim>
   </insert>
@@ -201,13 +201,13 @@
         create_time = #{record.createTime,jdbcType=TIMESTAMP},
       </if>
       <if test="record.createId != null">
-        create_id = #{record.createId,jdbcType=INTEGER},
+        create_id = #{record.createId,jdbcType=BIGINT},
       </if>
       <if test="record.updateTime != null">
         update_time = #{record.updateTime,jdbcType=TIMESTAMP},
       </if>
       <if test="record.updateId != null">
-        update_id = #{record.updateId,jdbcType=INTEGER},
+        update_id = #{record.updateId,jdbcType=BIGINT},
       </if>
     </set>
     <if test="_parameter != null">
@@ -222,9 +222,9 @@
       file_type = #{record.fileType,jdbcType=VARCHAR},
       file_status = #{record.fileStatus,jdbcType=INTEGER},
       create_time = #{record.createTime,jdbcType=TIMESTAMP},
-      create_id = #{record.createId,jdbcType=INTEGER},
+      create_id = #{record.createId,jdbcType=BIGINT},
       update_time = #{record.updateTime,jdbcType=TIMESTAMP},
-      update_id = #{record.updateId,jdbcType=INTEGER}
+      update_id = #{record.updateId,jdbcType=BIGINT}
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
     </if>
@@ -248,13 +248,13 @@
         create_time = #{createTime,jdbcType=TIMESTAMP},
       </if>
       <if test="createId != null">
-        create_id = #{createId,jdbcType=INTEGER},
+        create_id = #{createId,jdbcType=BIGINT},
       </if>
       <if test="updateTime != null">
         update_time = #{updateTime,jdbcType=TIMESTAMP},
       </if>
       <if test="updateId != null">
-        update_id = #{updateId,jdbcType=INTEGER},
+        update_id = #{updateId,jdbcType=BIGINT},
       </if>
     </set>
     where id = #{id,jdbcType=BIGINT}
@@ -266,9 +266,9 @@
       file_type = #{fileType,jdbcType=VARCHAR},
       file_status = #{fileStatus,jdbcType=INTEGER},
       create_time = #{createTime,jdbcType=TIMESTAMP},
-      create_id = #{createId,jdbcType=INTEGER},
+      create_id = #{createId,jdbcType=BIGINT},
       update_time = #{updateTime,jdbcType=TIMESTAMP},
-      update_id = #{updateId,jdbcType=INTEGER}
+      update_id = #{updateId,jdbcType=BIGINT}
     where id = #{id,jdbcType=BIGINT}
   </update>
 </mapper>

+ 121 - 48
forest-portal/portal-mbg/src/main/resources/com/hwrj/cloud/portal/mapper/UmsCompanyInfoMapper.xml

@@ -4,12 +4,16 @@
   <resultMap id="BaseResultMap" type="com.hwrj.cloud.portal.model.UmsCompanyInfo">
     <id column="id" jdbcType="BIGINT" property="id" />
     <result column="comp_name" jdbcType="VARCHAR" property="compName" />
+    <result column="company_type" jdbcType="VARCHAR" property="companyType" />
+    <result column="comp_level" jdbcType="INTEGER" property="compLevel" />
+    <result column="comp_qual" jdbcType="VARCHAR" property="compQual" />
     <result column="comp_imgs" jdbcType="VARCHAR" property="compImgs" />
     <result column="comp_url" jdbcType="VARCHAR" property="compUrl" />
     <result column="comp_prod_license_num" jdbcType="VARCHAR" property="compProdLicenseNum" />
     <result column="comp_manage_license_num" jdbcType="VARCHAR" property="compManageLicenseNum" />
     <result column="comp_social_code" jdbcType="VARCHAR" property="compSocialCode" />
     <result column="comp_con_person" jdbcType="VARCHAR" property="compConPerson" />
+    <result column="is_cert" jdbcType="INTEGER" property="isCert" />
     <result column="comp_con_type" jdbcType="VARCHAR" property="compConType" />
     <result column="comp_con_num" jdbcType="VARCHAR" property="compConNum" />
     <result column="comp_qq" jdbcType="VARCHAR" property="compQq" />
@@ -24,12 +28,12 @@
     <result column="latitude" jdbcType="VARCHAR" property="latitude" />
     <result column="comp_status" jdbcType="INTEGER" property="compStatus" />
     <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
-    <result column="create_id" jdbcType="INTEGER" property="createId" />
+    <result column="create_id" jdbcType="BIGINT" property="createId" />
     <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
-    <result column="update_id" jdbcType="INTEGER" property="updateId" />
+    <result column="update_id" jdbcType="BIGINT" property="updateId" />
   </resultMap>
   <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.hwrj.cloud.portal.model.UmsCompanyInfo">
-    <result column="comp_introduction" jdbcType="LONGVARCHAR" property="compIntroduction" />
+    <result column="comp_sum" jdbcType="LONGVARCHAR" property="compSum" />
   </resultMap>
   <sql id="Example_Where_Clause">
     <where>
@@ -90,13 +94,14 @@
     </where>
   </sql>
   <sql id="Base_Column_List">
-    id, comp_name, comp_imgs, comp_url, comp_prod_license_num, comp_manage_license_num, 
-    comp_social_code, comp_con_person, comp_con_type, comp_con_num, comp_qq, comp_manage_product, 
-    province_id, city_id, county_id, town_id, village_id, detail_address, longitude, 
-    latitude, comp_status, create_time, create_id, update_time, update_id
+    id, comp_name, company_type, comp_level, comp_qual, comp_imgs, comp_url, comp_prod_license_num, 
+    comp_manage_license_num, comp_social_code, comp_con_person, is_cert, comp_con_type, 
+    comp_con_num, comp_qq, comp_manage_product, province_id, city_id, county_id, town_id, 
+    village_id, detail_address, longitude, latitude, comp_status, create_time, create_id, 
+    update_time, update_id
   </sql>
   <sql id="Blob_Column_List">
-    comp_introduction
+    comp_sum
   </sql>
   <select id="selectByExampleWithBLOBs" parameterType="com.hwrj.cloud.portal.model.UmsCompanyInfoExample" resultMap="ResultMapWithBLOBs">
     select
@@ -150,24 +155,28 @@
     <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
       SELECT LAST_INSERT_ID()
     </selectKey>
-    insert into ums_company_info (comp_name, comp_imgs, comp_url, 
+    insert into ums_company_info (comp_name, company_type, comp_level, 
+      comp_qual, comp_imgs, comp_url, 
       comp_prod_license_num, comp_manage_license_num, 
-      comp_social_code, comp_con_person, comp_con_type, 
-      comp_con_num, comp_qq, comp_manage_product, 
-      province_id, city_id, county_id, 
-      town_id, village_id, detail_address, 
-      longitude, latitude, comp_status, 
-      create_time, create_id, update_time, 
-      update_id, comp_introduction)
-    values (#{compName,jdbcType=VARCHAR}, #{compImgs,jdbcType=VARCHAR}, #{compUrl,jdbcType=VARCHAR}, 
+      comp_social_code, comp_con_person, is_cert, 
+      comp_con_type, comp_con_num, comp_qq, 
+      comp_manage_product, province_id, city_id, 
+      county_id, town_id, village_id, 
+      detail_address, longitude, latitude, 
+      comp_status, create_time, create_id, 
+      update_time, update_id, comp_sum
+      )
+    values (#{compName,jdbcType=VARCHAR}, #{companyType,jdbcType=VARCHAR}, #{compLevel,jdbcType=INTEGER}, 
+      #{compQual,jdbcType=VARCHAR}, #{compImgs,jdbcType=VARCHAR}, #{compUrl,jdbcType=VARCHAR}, 
       #{compProdLicenseNum,jdbcType=VARCHAR}, #{compManageLicenseNum,jdbcType=VARCHAR}, 
-      #{compSocialCode,jdbcType=VARCHAR}, #{compConPerson,jdbcType=VARCHAR}, #{compConType,jdbcType=VARCHAR}, 
-      #{compConNum,jdbcType=VARCHAR}, #{compQq,jdbcType=VARCHAR}, #{compManageProduct,jdbcType=VARCHAR}, 
-      #{provinceId,jdbcType=VARCHAR}, #{cityId,jdbcType=VARCHAR}, #{countyId,jdbcType=VARCHAR}, 
-      #{townId,jdbcType=VARCHAR}, #{villageId,jdbcType=VARCHAR}, #{detailAddress,jdbcType=VARCHAR}, 
-      #{longitude,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR}, #{compStatus,jdbcType=INTEGER}, 
-      #{createTime,jdbcType=TIMESTAMP}, #{createId,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, 
-      #{updateId,jdbcType=INTEGER}, #{compIntroduction,jdbcType=LONGVARCHAR})
+      #{compSocialCode,jdbcType=VARCHAR}, #{compConPerson,jdbcType=VARCHAR}, #{isCert,jdbcType=INTEGER}, 
+      #{compConType,jdbcType=VARCHAR}, #{compConNum,jdbcType=VARCHAR}, #{compQq,jdbcType=VARCHAR}, 
+      #{compManageProduct,jdbcType=VARCHAR}, #{provinceId,jdbcType=VARCHAR}, #{cityId,jdbcType=VARCHAR}, 
+      #{countyId,jdbcType=VARCHAR}, #{townId,jdbcType=VARCHAR}, #{villageId,jdbcType=VARCHAR}, 
+      #{detailAddress,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR}, 
+      #{compStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{createId,jdbcType=BIGINT}, 
+      #{updateTime,jdbcType=TIMESTAMP}, #{updateId,jdbcType=BIGINT}, #{compSum,jdbcType=LONGVARCHAR}
+      )
   </insert>
   <insert id="insertSelective" parameterType="com.hwrj.cloud.portal.model.UmsCompanyInfo">
     <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
@@ -178,6 +187,15 @@
       <if test="compName != null">
         comp_name,
       </if>
+      <if test="companyType != null">
+        company_type,
+      </if>
+      <if test="compLevel != null">
+        comp_level,
+      </if>
+      <if test="compQual != null">
+        comp_qual,
+      </if>
       <if test="compImgs != null">
         comp_imgs,
       </if>
@@ -196,6 +214,9 @@
       <if test="compConPerson != null">
         comp_con_person,
       </if>
+      <if test="isCert != null">
+        is_cert,
+      </if>
       <if test="compConType != null">
         comp_con_type,
       </if>
@@ -247,14 +268,23 @@
       <if test="updateId != null">
         update_id,
       </if>
-      <if test="compIntroduction != null">
-        comp_introduction,
+      <if test="compSum != null">
+        comp_sum,
       </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
       <if test="compName != null">
         #{compName,jdbcType=VARCHAR},
       </if>
+      <if test="companyType != null">
+        #{companyType,jdbcType=VARCHAR},
+      </if>
+      <if test="compLevel != null">
+        #{compLevel,jdbcType=INTEGER},
+      </if>
+      <if test="compQual != null">
+        #{compQual,jdbcType=VARCHAR},
+      </if>
       <if test="compImgs != null">
         #{compImgs,jdbcType=VARCHAR},
       </if>
@@ -273,6 +303,9 @@
       <if test="compConPerson != null">
         #{compConPerson,jdbcType=VARCHAR},
       </if>
+      <if test="isCert != null">
+        #{isCert,jdbcType=INTEGER},
+      </if>
       <if test="compConType != null">
         #{compConType,jdbcType=VARCHAR},
       </if>
@@ -316,16 +349,16 @@
         #{createTime,jdbcType=TIMESTAMP},
       </if>
       <if test="createId != null">
-        #{createId,jdbcType=INTEGER},
+        #{createId,jdbcType=BIGINT},
       </if>
       <if test="updateTime != null">
         #{updateTime,jdbcType=TIMESTAMP},
       </if>
       <if test="updateId != null">
-        #{updateId,jdbcType=INTEGER},
+        #{updateId,jdbcType=BIGINT},
       </if>
-      <if test="compIntroduction != null">
-        #{compIntroduction,jdbcType=LONGVARCHAR},
+      <if test="compSum != null">
+        #{compSum,jdbcType=LONGVARCHAR},
       </if>
     </trim>
   </insert>
@@ -344,6 +377,15 @@
       <if test="record.compName != null">
         comp_name = #{record.compName,jdbcType=VARCHAR},
       </if>
+      <if test="record.companyType != null">
+        company_type = #{record.companyType,jdbcType=VARCHAR},
+      </if>
+      <if test="record.compLevel != null">
+        comp_level = #{record.compLevel,jdbcType=INTEGER},
+      </if>
+      <if test="record.compQual != null">
+        comp_qual = #{record.compQual,jdbcType=VARCHAR},
+      </if>
       <if test="record.compImgs != null">
         comp_imgs = #{record.compImgs,jdbcType=VARCHAR},
       </if>
@@ -362,6 +404,9 @@
       <if test="record.compConPerson != null">
         comp_con_person = #{record.compConPerson,jdbcType=VARCHAR},
       </if>
+      <if test="record.isCert != null">
+        is_cert = #{record.isCert,jdbcType=INTEGER},
+      </if>
       <if test="record.compConType != null">
         comp_con_type = #{record.compConType,jdbcType=VARCHAR},
       </if>
@@ -405,16 +450,16 @@
         create_time = #{record.createTime,jdbcType=TIMESTAMP},
       </if>
       <if test="record.createId != null">
-        create_id = #{record.createId,jdbcType=INTEGER},
+        create_id = #{record.createId,jdbcType=BIGINT},
       </if>
       <if test="record.updateTime != null">
         update_time = #{record.updateTime,jdbcType=TIMESTAMP},
       </if>
       <if test="record.updateId != null">
-        update_id = #{record.updateId,jdbcType=INTEGER},
+        update_id = #{record.updateId,jdbcType=BIGINT},
       </if>
-      <if test="record.compIntroduction != null">
-        comp_introduction = #{record.compIntroduction,jdbcType=LONGVARCHAR},
+      <if test="record.compSum != null">
+        comp_sum = #{record.compSum,jdbcType=LONGVARCHAR},
       </if>
     </set>
     <if test="_parameter != null">
@@ -425,12 +470,16 @@
     update ums_company_info
     set id = #{record.id,jdbcType=BIGINT},
       comp_name = #{record.compName,jdbcType=VARCHAR},
+      company_type = #{record.companyType,jdbcType=VARCHAR},
+      comp_level = #{record.compLevel,jdbcType=INTEGER},
+      comp_qual = #{record.compQual,jdbcType=VARCHAR},
       comp_imgs = #{record.compImgs,jdbcType=VARCHAR},
       comp_url = #{record.compUrl,jdbcType=VARCHAR},
       comp_prod_license_num = #{record.compProdLicenseNum,jdbcType=VARCHAR},
       comp_manage_license_num = #{record.compManageLicenseNum,jdbcType=VARCHAR},
       comp_social_code = #{record.compSocialCode,jdbcType=VARCHAR},
       comp_con_person = #{record.compConPerson,jdbcType=VARCHAR},
+      is_cert = #{record.isCert,jdbcType=INTEGER},
       comp_con_type = #{record.compConType,jdbcType=VARCHAR},
       comp_con_num = #{record.compConNum,jdbcType=VARCHAR},
       comp_qq = #{record.compQq,jdbcType=VARCHAR},
@@ -445,10 +494,10 @@
       latitude = #{record.latitude,jdbcType=VARCHAR},
       comp_status = #{record.compStatus,jdbcType=INTEGER},
       create_time = #{record.createTime,jdbcType=TIMESTAMP},
-      create_id = #{record.createId,jdbcType=INTEGER},
+      create_id = #{record.createId,jdbcType=BIGINT},
       update_time = #{record.updateTime,jdbcType=TIMESTAMP},
-      update_id = #{record.updateId,jdbcType=INTEGER},
-      comp_introduction = #{record.compIntroduction,jdbcType=LONGVARCHAR}
+      update_id = #{record.updateId,jdbcType=BIGINT},
+      comp_sum = #{record.compSum,jdbcType=LONGVARCHAR}
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
     </if>
@@ -457,12 +506,16 @@
     update ums_company_info
     set id = #{record.id,jdbcType=BIGINT},
       comp_name = #{record.compName,jdbcType=VARCHAR},
+      company_type = #{record.companyType,jdbcType=VARCHAR},
+      comp_level = #{record.compLevel,jdbcType=INTEGER},
+      comp_qual = #{record.compQual,jdbcType=VARCHAR},
       comp_imgs = #{record.compImgs,jdbcType=VARCHAR},
       comp_url = #{record.compUrl,jdbcType=VARCHAR},
       comp_prod_license_num = #{record.compProdLicenseNum,jdbcType=VARCHAR},
       comp_manage_license_num = #{record.compManageLicenseNum,jdbcType=VARCHAR},
       comp_social_code = #{record.compSocialCode,jdbcType=VARCHAR},
       comp_con_person = #{record.compConPerson,jdbcType=VARCHAR},
+      is_cert = #{record.isCert,jdbcType=INTEGER},
       comp_con_type = #{record.compConType,jdbcType=VARCHAR},
       comp_con_num = #{record.compConNum,jdbcType=VARCHAR},
       comp_qq = #{record.compQq,jdbcType=VARCHAR},
@@ -477,9 +530,9 @@
       latitude = #{record.latitude,jdbcType=VARCHAR},
       comp_status = #{record.compStatus,jdbcType=INTEGER},
       create_time = #{record.createTime,jdbcType=TIMESTAMP},
-      create_id = #{record.createId,jdbcType=INTEGER},
+      create_id = #{record.createId,jdbcType=BIGINT},
       update_time = #{record.updateTime,jdbcType=TIMESTAMP},
-      update_id = #{record.updateId,jdbcType=INTEGER}
+      update_id = #{record.updateId,jdbcType=BIGINT}
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
     </if>
@@ -490,6 +543,15 @@
       <if test="compName != null">
         comp_name = #{compName,jdbcType=VARCHAR},
       </if>
+      <if test="companyType != null">
+        company_type = #{companyType,jdbcType=VARCHAR},
+      </if>
+      <if test="compLevel != null">
+        comp_level = #{compLevel,jdbcType=INTEGER},
+      </if>
+      <if test="compQual != null">
+        comp_qual = #{compQual,jdbcType=VARCHAR},
+      </if>
       <if test="compImgs != null">
         comp_imgs = #{compImgs,jdbcType=VARCHAR},
       </if>
@@ -508,6 +570,9 @@
       <if test="compConPerson != null">
         comp_con_person = #{compConPerson,jdbcType=VARCHAR},
       </if>
+      <if test="isCert != null">
+        is_cert = #{isCert,jdbcType=INTEGER},
+      </if>
       <if test="compConType != null">
         comp_con_type = #{compConType,jdbcType=VARCHAR},
       </if>
@@ -551,16 +616,16 @@
         create_time = #{createTime,jdbcType=TIMESTAMP},
       </if>
       <if test="createId != null">
-        create_id = #{createId,jdbcType=INTEGER},
+        create_id = #{createId,jdbcType=BIGINT},
       </if>
       <if test="updateTime != null">
         update_time = #{updateTime,jdbcType=TIMESTAMP},
       </if>
       <if test="updateId != null">
-        update_id = #{updateId,jdbcType=INTEGER},
+        update_id = #{updateId,jdbcType=BIGINT},
       </if>
-      <if test="compIntroduction != null">
-        comp_introduction = #{compIntroduction,jdbcType=LONGVARCHAR},
+      <if test="compSum != null">
+        comp_sum = #{compSum,jdbcType=LONGVARCHAR},
       </if>
     </set>
     where id = #{id,jdbcType=BIGINT}
@@ -568,12 +633,16 @@
   <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.hwrj.cloud.portal.model.UmsCompanyInfo">
     update ums_company_info
     set comp_name = #{compName,jdbcType=VARCHAR},
+      company_type = #{companyType,jdbcType=VARCHAR},
+      comp_level = #{compLevel,jdbcType=INTEGER},
+      comp_qual = #{compQual,jdbcType=VARCHAR},
       comp_imgs = #{compImgs,jdbcType=VARCHAR},
       comp_url = #{compUrl,jdbcType=VARCHAR},
       comp_prod_license_num = #{compProdLicenseNum,jdbcType=VARCHAR},
       comp_manage_license_num = #{compManageLicenseNum,jdbcType=VARCHAR},
       comp_social_code = #{compSocialCode,jdbcType=VARCHAR},
       comp_con_person = #{compConPerson,jdbcType=VARCHAR},
+      is_cert = #{isCert,jdbcType=INTEGER},
       comp_con_type = #{compConType,jdbcType=VARCHAR},
       comp_con_num = #{compConNum,jdbcType=VARCHAR},
       comp_qq = #{compQq,jdbcType=VARCHAR},
@@ -588,21 +657,25 @@
       latitude = #{latitude,jdbcType=VARCHAR},
       comp_status = #{compStatus,jdbcType=INTEGER},
       create_time = #{createTime,jdbcType=TIMESTAMP},
-      create_id = #{createId,jdbcType=INTEGER},
+      create_id = #{createId,jdbcType=BIGINT},
       update_time = #{updateTime,jdbcType=TIMESTAMP},
-      update_id = #{updateId,jdbcType=INTEGER},
-      comp_introduction = #{compIntroduction,jdbcType=LONGVARCHAR}
+      update_id = #{updateId,jdbcType=BIGINT},
+      comp_sum = #{compSum,jdbcType=LONGVARCHAR}
     where id = #{id,jdbcType=BIGINT}
   </update>
   <update id="updateByPrimaryKey" parameterType="com.hwrj.cloud.portal.model.UmsCompanyInfo">
     update ums_company_info
     set comp_name = #{compName,jdbcType=VARCHAR},
+      company_type = #{companyType,jdbcType=VARCHAR},
+      comp_level = #{compLevel,jdbcType=INTEGER},
+      comp_qual = #{compQual,jdbcType=VARCHAR},
       comp_imgs = #{compImgs,jdbcType=VARCHAR},
       comp_url = #{compUrl,jdbcType=VARCHAR},
       comp_prod_license_num = #{compProdLicenseNum,jdbcType=VARCHAR},
       comp_manage_license_num = #{compManageLicenseNum,jdbcType=VARCHAR},
       comp_social_code = #{compSocialCode,jdbcType=VARCHAR},
       comp_con_person = #{compConPerson,jdbcType=VARCHAR},
+      is_cert = #{isCert,jdbcType=INTEGER},
       comp_con_type = #{compConType,jdbcType=VARCHAR},
       comp_con_num = #{compConNum,jdbcType=VARCHAR},
       comp_qq = #{compQq,jdbcType=VARCHAR},
@@ -617,9 +690,9 @@
       latitude = #{latitude,jdbcType=VARCHAR},
       comp_status = #{compStatus,jdbcType=INTEGER},
       create_time = #{createTime,jdbcType=TIMESTAMP},
-      create_id = #{createId,jdbcType=INTEGER},
+      create_id = #{createId,jdbcType=BIGINT},
       update_time = #{updateTime,jdbcType=TIMESTAMP},
-      update_id = #{updateId,jdbcType=INTEGER}
+      update_id = #{updateId,jdbcType=BIGINT}
     where id = #{id,jdbcType=BIGINT}
   </update>
 </mapper>

+ 25 - 25
forest-portal/portal-mbg/src/main/resources/com/hwrj/cloud/portal/mapper/UmsCompanyShopMapper.xml

@@ -2,14 +2,14 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.hwrj.cloud.portal.mapper.UmsCompanyShopMapper">
   <resultMap id="BaseResultMap" type="com.hwrj.cloud.portal.model.UmsCompanyShop">
-    <id column="id" jdbcType="INTEGER" property="id" />
-    <result column="comp_id" jdbcType="INTEGER" property="compId" />
+    <id column="id" jdbcType="BIGINT" property="id" />
+    <result column="comp_id" jdbcType="BIGINT" property="compId" />
     <result column="shop_type" jdbcType="VARCHAR" property="shopType" />
     <result column="shop_url" jdbcType="VARCHAR" property="shopUrl" />
     <result column="shop_address" jdbcType="VARCHAR" property="shopAddress" />
     <result column="shop_img" jdbcType="VARCHAR" property="shopImg" />
     <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
-    <result column="create_id" jdbcType="INTEGER" property="createId" />
+    <result column="create_id" jdbcType="BIGINT" property="createId" />
     <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
     <result column="shop_status" jdbcType="INTEGER" property="shopStatus" />
   </resultMap>
@@ -89,15 +89,15 @@
       order by ${orderByClause}
     </if>
   </select>
-  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
     select 
     <include refid="Base_Column_List" />
     from ums_company_shop
-    where id = #{id,jdbcType=INTEGER}
+    where id = #{id,jdbcType=BIGINT}
   </select>
-  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
     delete from ums_company_shop
-    where id = #{id,jdbcType=INTEGER}
+    where id = #{id,jdbcType=BIGINT}
   </delete>
   <delete id="deleteByExample" parameterType="com.hwrj.cloud.portal.model.UmsCompanyShopExample">
     delete from ums_company_shop
@@ -106,20 +106,20 @@
     </if>
   </delete>
   <insert id="insert" parameterType="com.hwrj.cloud.portal.model.UmsCompanyShop">
-    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
+    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
       SELECT LAST_INSERT_ID()
     </selectKey>
     insert into ums_company_shop (comp_id, shop_type, shop_url, 
       shop_address, shop_img, create_time, 
       create_id, update_time, shop_status
       )
-    values (#{compId,jdbcType=INTEGER}, #{shopType,jdbcType=VARCHAR}, #{shopUrl,jdbcType=VARCHAR}, 
+    values (#{compId,jdbcType=BIGINT}, #{shopType,jdbcType=VARCHAR}, #{shopUrl,jdbcType=VARCHAR}, 
       #{shopAddress,jdbcType=VARCHAR}, #{shopImg,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
-      #{createId,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, #{shopStatus,jdbcType=INTEGER}
+      #{createId,jdbcType=BIGINT}, #{updateTime,jdbcType=TIMESTAMP}, #{shopStatus,jdbcType=INTEGER}
       )
   </insert>
   <insert id="insertSelective" parameterType="com.hwrj.cloud.portal.model.UmsCompanyShop">
-    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
+    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
       SELECT LAST_INSERT_ID()
     </selectKey>
     insert into ums_company_shop
@@ -154,7 +154,7 @@
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
       <if test="compId != null">
-        #{compId,jdbcType=INTEGER},
+        #{compId,jdbcType=BIGINT},
       </if>
       <if test="shopType != null">
         #{shopType,jdbcType=VARCHAR},
@@ -172,7 +172,7 @@
         #{createTime,jdbcType=TIMESTAMP},
       </if>
       <if test="createId != null">
-        #{createId,jdbcType=INTEGER},
+        #{createId,jdbcType=BIGINT},
       </if>
       <if test="updateTime != null">
         #{updateTime,jdbcType=TIMESTAMP},
@@ -192,10 +192,10 @@
     update ums_company_shop
     <set>
       <if test="record.id != null">
-        id = #{record.id,jdbcType=INTEGER},
+        id = #{record.id,jdbcType=BIGINT},
       </if>
       <if test="record.compId != null">
-        comp_id = #{record.compId,jdbcType=INTEGER},
+        comp_id = #{record.compId,jdbcType=BIGINT},
       </if>
       <if test="record.shopType != null">
         shop_type = #{record.shopType,jdbcType=VARCHAR},
@@ -213,7 +213,7 @@
         create_time = #{record.createTime,jdbcType=TIMESTAMP},
       </if>
       <if test="record.createId != null">
-        create_id = #{record.createId,jdbcType=INTEGER},
+        create_id = #{record.createId,jdbcType=BIGINT},
       </if>
       <if test="record.updateTime != null">
         update_time = #{record.updateTime,jdbcType=TIMESTAMP},
@@ -228,14 +228,14 @@
   </update>
   <update id="updateByExample" parameterType="map">
     update ums_company_shop
-    set id = #{record.id,jdbcType=INTEGER},
-      comp_id = #{record.compId,jdbcType=INTEGER},
+    set id = #{record.id,jdbcType=BIGINT},
+      comp_id = #{record.compId,jdbcType=BIGINT},
       shop_type = #{record.shopType,jdbcType=VARCHAR},
       shop_url = #{record.shopUrl,jdbcType=VARCHAR},
       shop_address = #{record.shopAddress,jdbcType=VARCHAR},
       shop_img = #{record.shopImg,jdbcType=VARCHAR},
       create_time = #{record.createTime,jdbcType=TIMESTAMP},
-      create_id = #{record.createId,jdbcType=INTEGER},
+      create_id = #{record.createId,jdbcType=BIGINT},
       update_time = #{record.updateTime,jdbcType=TIMESTAMP},
       shop_status = #{record.shopStatus,jdbcType=INTEGER}
     <if test="_parameter != null">
@@ -246,7 +246,7 @@
     update ums_company_shop
     <set>
       <if test="compId != null">
-        comp_id = #{compId,jdbcType=INTEGER},
+        comp_id = #{compId,jdbcType=BIGINT},
       </if>
       <if test="shopType != null">
         shop_type = #{shopType,jdbcType=VARCHAR},
@@ -264,7 +264,7 @@
         create_time = #{createTime,jdbcType=TIMESTAMP},
       </if>
       <if test="createId != null">
-        create_id = #{createId,jdbcType=INTEGER},
+        create_id = #{createId,jdbcType=BIGINT},
       </if>
       <if test="updateTime != null">
         update_time = #{updateTime,jdbcType=TIMESTAMP},
@@ -273,19 +273,19 @@
         shop_status = #{shopStatus,jdbcType=INTEGER},
       </if>
     </set>
-    where id = #{id,jdbcType=INTEGER}
+    where id = #{id,jdbcType=BIGINT}
   </update>
   <update id="updateByPrimaryKey" parameterType="com.hwrj.cloud.portal.model.UmsCompanyShop">
     update ums_company_shop
-    set comp_id = #{compId,jdbcType=INTEGER},
+    set comp_id = #{compId,jdbcType=BIGINT},
       shop_type = #{shopType,jdbcType=VARCHAR},
       shop_url = #{shopUrl,jdbcType=VARCHAR},
       shop_address = #{shopAddress,jdbcType=VARCHAR},
       shop_img = #{shopImg,jdbcType=VARCHAR},
       create_time = #{createTime,jdbcType=TIMESTAMP},
-      create_id = #{createId,jdbcType=INTEGER},
+      create_id = #{createId,jdbcType=BIGINT},
       update_time = #{updateTime,jdbcType=TIMESTAMP},
       shop_status = #{shopStatus,jdbcType=INTEGER}
-    where id = #{id,jdbcType=INTEGER}
+    where id = #{id,jdbcType=BIGINT}
   </update>
 </mapper>

+ 1 - 1
forest-portal/portal-mbg/src/main/resources/generator.properties

@@ -1,4 +1,4 @@
 jdbc.driverClass=com.mysql.cj.jdbc.Driver
-jdbc.connectionURL=jdbc:mysql://129.28.174.150:7046/carbon-mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
+jdbc.connectionURL=jdbc:mysql://172.16.90.64:3306/carbon-mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
 jdbc.userId=root
 jdbc.password=123456

+ 1 - 1
forest-portal/portal-mbg/src/main/resources/generatorConfig.xml

@@ -37,7 +37,7 @@
         <javaClientGenerator type="XMLMAPPER" targetPackage="com.hwrj.cloud.portal.mapper"
                              targetProject="forest-portal\portal-mbg\src\main\java"/>
         <!--生成全部表tableName设为%-->
-        <table tableName="%">
+        <table tableName="pms_product">
             <generatedKey column="id" sqlStatement="MySql" identity="true"/>
         </table>
     </context>

+ 3 - 3
forest-portal/portal-server/portal-server.iml

@@ -29,9 +29,6 @@
     <orderEntry type="module" module-name="forest-common" />
     <orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-starter:1.2.10" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.2" level="project" />
-    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.1.13.RELEASE" level="project" />
-    <orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.2.0" level="project" />
-    <orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.1.14.RELEASE" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:1.3.2" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis:mybatis:3.4.6" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:1.3.2" level="project" />
@@ -53,6 +50,9 @@
     <orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:2.1.3.RELEASE" level="project" />
     <orderEntry type="library" name="Maven: org.projectlombok:lombok:1.18.12" level="project" />
     <orderEntry type="library" name="Maven: cn.hutool:hutool-all:4.5.7" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.2.0" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.1.14.RELEASE" level="project" />
     <orderEntry type="library" name="Maven: com.aliyun:aliyun-java-sdk-core:4.0.3" level="project" />
     <orderEntry type="library" name="Maven: com.sun.xml.bind:jaxb-core:2.1.14" level="project" />
     <orderEntry type="library" name="Maven: com.sun.xml.bind:jaxb-impl:2.1" level="project" />

+ 21 - 4
forest-portal/portal-server/src/main/java/com/hwrj/cloud/portal/controller/PmsPortalProductController.java

@@ -3,12 +3,11 @@ package com.hwrj.cloud.portal.controller;
 
 import com.hwrj.cloud.common.api.CommonPage;
 import com.hwrj.cloud.common.api.CommonResult;
-import com.hwrj.cloud.portal.domain.CartProduct;
-import com.hwrj.cloud.portal.domain.PromotionProduct;
+import com.hwrj.cloud.portal.domain.*;
 import com.hwrj.cloud.portal.model.PmsProduct;
-import com.hwrj.cloud.portal.domain.PmsPortalProductDetail;
-import com.hwrj.cloud.portal.domain.PmsProductCategoryNode;
 import com.hwrj.cloud.portal.service.PmsPortalProductService;
+import com.hwrj.cloud.portal.service.UmsCompanyInfoService;
+import com.hwrj.cloud.portal.service.UmsMemberOriginService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiImplicitParam;
 import io.swagger.annotations.ApiOperation;
@@ -30,6 +29,13 @@ public class PmsPortalProductController {
     @Autowired
     private PmsPortalProductService portalProductService;
 
+    @Autowired
+    private UmsMemberOriginService umsMemberOriginService;
+
+    @Autowired
+    private UmsCompanyInfoService umsCompanyInfoService;
+
+
     @ApiOperation(value = "综合搜索、筛选、排序")
     @ApiImplicitParam(name = "sort", value = "排序字段:0->按相关度;1->按新品;2->按销量;3->价格从低到高;4->价格从高到低",
             defaultValue = "0", allowableValues = "0,1,2,3,4", paramType = "query", dataType = "integer")
@@ -66,6 +72,16 @@ public class PmsPortalProductController {
     @ResponseBody
     public CommonResult<PmsPortalProductDetail> detail(@PathVariable Long id) {
         PmsPortalProductDetail productDetail = portalProductService.detail(id);
+        Long placeOfProductionId = productDetail.getProduct().getPlaceOfProductionId();
+        if (placeOfProductionId != null){
+            UmsMemberOriginDto originDto = umsMemberOriginService.detail(placeOfProductionId);
+            productDetail.setOrigin(originDto);
+        }
+        Long companyInfoId = productDetail.getProduct().getUmsCompanyInfoId();
+        if (companyInfoId != null){
+            UmsCompanyInfoDto umsCompanyInfoDto = umsCompanyInfoService.detailInfo(companyInfoId);
+            productDetail.setCompanyInfo(umsCompanyInfoDto);
+        }
         return CommonResult.success(productDetail);
     }
 
@@ -79,6 +95,7 @@ public class PmsPortalProductController {
         return CommonResult.success(pmsProduct);
     }
 
+
     @ApiOperation("获取购物车中某个商品的规格,用于重选规格")
     @RequestMapping(value = "/getProduct/{productId}", method = RequestMethod.GET)
     @ResponseBody

+ 37 - 0
forest-portal/portal-server/src/main/java/com/hwrj/cloud/portal/controller/UmsCompanyInfoController.java

@@ -0,0 +1,37 @@
+package com.hwrj.cloud.portal.controller;
+
+import com.hwrj.cloud.common.api.CommonResult;
+import com.hwrj.cloud.portal.domain.UmsCompanyInfoDto;
+import com.hwrj.cloud.portal.model.UmsCompanyInfo;
+import com.hwrj.cloud.portal.service.UmsCompanyInfoService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+@RestController
+@RequestMapping("company")
+@Api(tags = "UmsCompanyInfoController",description = "供应商信息标")
+public class UmsCompanyInfoController {
+    @Autowired
+    private UmsCompanyInfoService umsCompanyInfoService;
+
+    @ApiOperation("获取供应商详情")
+    @RequestMapping("/cp/detail")
+    public CommonResult detail(@RequestParam(value = "compId",required = true)Long compId){
+        UmsCompanyInfoDto infoDto = umsCompanyInfoService.detailInfo(compId);
+        return CommonResult.success(infoDto);
+    }
+
+    @ApiOperation("获取供应商详情")
+    @RequestMapping("/cp/search")
+    public CommonResult search(@RequestParam(value = "key",required = false)String key){
+        List<UmsCompanyInfo> infos = umsCompanyInfoService.searchCompanyInfo(key);
+        return CommonResult.success(infos);
+    }
+
+}

+ 8 - 0
forest-portal/portal-server/src/main/java/com/hwrj/cloud/portal/domain/PmsPortalProductDetail.java

@@ -31,4 +31,12 @@ public class PmsPortalProductDetail {
     private List<PmsProductFullReduction> productFullReductionList;
     @ApiModelProperty("商品可用优惠券")
     private List<SmsCoupon> couponList;
+
+    @ApiModelProperty("商品供应商")
+    private UmsCompanyInfoDto companyInfo;
+
+    @ApiModelProperty("商品生产基地")
+    private UmsMemberOriginDto origin;
+
+
 }

+ 28 - 0
forest-portal/portal-server/src/main/java/com/hwrj/cloud/portal/domain/UmsCompanyInfoDto.java

@@ -0,0 +1,28 @@
+package com.hwrj.cloud.portal.domain;
+
+import com.hwrj.cloud.portal.model.UmsCompanyFile;
+import com.hwrj.cloud.portal.model.UmsCompanyInfo;
+import com.hwrj.cloud.portal.model.UmsCompanyShop;
+
+import java.util.List;
+
+public class UmsCompanyInfoDto extends UmsCompanyInfo {
+    private List<UmsCompanyFile> files;
+    private List<UmsCompanyShop> shops;
+
+    public List<UmsCompanyFile> getFiles() {
+        return files;
+    }
+
+    public void setFiles(List<UmsCompanyFile> files) {
+        this.files = files;
+    }
+
+    public List<UmsCompanyShop> getShops() {
+        return shops;
+    }
+
+    public void setShops(List<UmsCompanyShop> shops) {
+        this.shops = shops;
+    }
+}

+ 13 - 0
forest-portal/portal-server/src/main/java/com/hwrj/cloud/portal/domain/UmsMemberOriginDto.java

@@ -0,0 +1,13 @@
+package com.hwrj.cloud.portal.domain;
+
+import com.hwrj.cloud.portal.model.UmsMemberOrigin;
+import com.hwrj.cloud.portal.model.UmsMemberOriginProduct;
+import lombok.Data;
+
+import java.util.List;
+
+@Data
+public class UmsMemberOriginDto extends UmsMemberOrigin {
+
+    private List<UmsMemberOriginProduct> products;
+}

+ 36 - 0
forest-portal/portal-server/src/main/java/com/hwrj/cloud/portal/service/UmsCompanyInfoService.java

@@ -0,0 +1,36 @@
+package com.hwrj.cloud.portal.service;
+
+import com.hwrj.cloud.portal.domain.UmsCompanyInfoDto;
+import com.hwrj.cloud.portal.model.UmsCompanyFile;
+import com.hwrj.cloud.portal.model.UmsCompanyInfo;
+import com.hwrj.cloud.portal.model.UmsCompanyShop;
+
+import java.util.List;
+
+public interface UmsCompanyInfoService {
+
+    /**
+     * 供应商查询
+     * @return
+     */
+    public List<UmsCompanyInfo> searchCompanyInfo(String key);
+
+    /**
+     * 供应商详情
+     * @param id
+     * @return
+     */
+    public UmsCompanyInfoDto detailInfo(Long id);
+
+    /**
+     * 根据供应商
+     * @return
+     */
+    public List<UmsCompanyShop> getCompanyShopByCompanyId(Long compId);
+
+    /**
+     *
+     * @return
+     */
+    public List<UmsCompanyFile> getCompanyFileByCompanyId(Long compId);
+}

+ 28 - 0
forest-portal/portal-server/src/main/java/com/hwrj/cloud/portal/service/UmsMemberOriginService.java

@@ -0,0 +1,28 @@
+package com.hwrj.cloud.portal.service;
+
+import com.hwrj.cloud.portal.domain.UmsMemberOriginDto;
+import com.hwrj.cloud.portal.model.UmsMemberOriginProduct;
+
+import java.util.List;
+
+public interface UmsMemberOriginService {
+    /**
+     * 获取生产地详细信息
+     * @param id
+     * @return
+     */
+    public UmsMemberOriginDto detail(Long id);
+
+    /**
+     * 根据供应商获取相应的生产地信息
+     * @param companyId
+     * @return
+     */
+    public List<UmsMemberOriginDto> detailListOfCompany(Long companyId);
+
+    /**
+     * 根据源产地获取产地的产品信息
+     * @return
+     */
+    public List<UmsMemberOriginProduct> productDetailListFromOriginId(Long originId);
+}

+ 42 - 33
forest-portal/portal-server/src/main/java/com/hwrj/cloud/portal/service/impl/PmsPortalProductServiceImpl.java

@@ -157,41 +157,50 @@ public class PmsPortalProductServiceImpl implements PmsPortalProductService {
         //获取品牌信息
         PmsBrand brand = brandMapper.selectByPrimaryKey(product.getBrandId());
         result.setBrand(brand);
-        //获取商品属性信息
-        PmsProductAttributeExample attributeExample = new PmsProductAttributeExample();
-        attributeExample.createCriteria().andProductAttributeCategoryIdEqualTo(product.getProductAttributeCategoryId());
-        List<PmsProductAttribute> productAttributeList = productAttributeMapper.selectByExample(attributeExample);
-        result.setProductAttributeList(productAttributeList);
-        //获取商品属性值信息
-        if (CollUtil.isNotEmpty(productAttributeList)) {
-            List<Long> attributeIds = productAttributeList.stream().map(PmsProductAttribute::getId).collect(Collectors.toList());
-            PmsProductAttributeValueExample attributeValueExample = new PmsProductAttributeValueExample();
-            attributeValueExample.createCriteria().andProductIdEqualTo(product.getId())
-                    .andProductAttributeIdIn(attributeIds);
-            List<PmsProductAttributeValue> productAttributeValueList = productAttributeValueMapper.selectByExample(attributeValueExample);
-            result.setProductAttributeValueList(productAttributeValueList);
-        }
-        //获取商品SKU库存信息
-        PmsSkuStockExample skuExample = new PmsSkuStockExample();
-        skuExample.createCriteria().andProductIdEqualTo(product.getId());
-        List<PmsSkuStock> skuStockList = skuStockMapper.selectByExample(skuExample);
-        result.setSkuStockList(skuStockList);
-        //商品阶梯价格设置
-        if (product.getPromotionType() == 3) {
-            PmsProductLadderExample ladderExample = new PmsProductLadderExample();
-            ladderExample.createCriteria().andProductIdEqualTo(product.getId());
-            List<PmsProductLadder> productLadderList = productLadderMapper.selectByExample(ladderExample);
-            result.setProductLadderList(productLadderList);
+
+        if (product.getProductAttributeCategoryId() != null){
+            //获取商品属性信息
+            PmsProductAttributeExample attributeExample = new PmsProductAttributeExample();
+            attributeExample.createCriteria().andProductAttributeCategoryIdEqualTo(product.getProductAttributeCategoryId());
+            List<PmsProductAttribute> productAttributeList = productAttributeMapper.selectByExample(attributeExample);
+            result.setProductAttributeList(productAttributeList);
+            //获取商品属性值信息
+            if (CollUtil.isNotEmpty(productAttributeList)) {
+                List<Long> attributeIds = productAttributeList.stream().map(PmsProductAttribute::getId).collect(Collectors.toList());
+                PmsProductAttributeValueExample attributeValueExample = new PmsProductAttributeValueExample();
+                attributeValueExample.createCriteria().andProductIdEqualTo(product.getId())
+                        .andProductAttributeIdIn(attributeIds);
+                List<PmsProductAttributeValue> productAttributeValueList = productAttributeValueMapper.selectByExample(attributeValueExample);
+                result.setProductAttributeValueList(productAttributeValueList);
+            }
         }
-        //商品满减价格设置
-        if (product.getPromotionType() == 4) {
-            PmsProductFullReductionExample fullReductionExample = new PmsProductFullReductionExample();
-            fullReductionExample.createCriteria().andProductIdEqualTo(product.getId());
-            List<PmsProductFullReduction> productFullReductionList = productFullReductionMapper.selectByExample(fullReductionExample);
-            result.setProductFullReductionList(productFullReductionList);
+
+
+
+        if (product.getPromotionType() != null){
+            PmsSkuStockExample skuExample = new PmsSkuStockExample();
+            skuExample.createCriteria().andProductIdEqualTo(product.getId());
+            List<PmsSkuStock> skuStockList = skuStockMapper.selectByExample(skuExample);
+            result.setSkuStockList(skuStockList);
+            //商品阶梯价格设置
+            if (product.getPromotionType() == 3) {
+                PmsProductLadderExample ladderExample = new PmsProductLadderExample();
+                ladderExample.createCriteria().andProductIdEqualTo(product.getId());
+                List<PmsProductLadder> productLadderList = productLadderMapper.selectByExample(ladderExample);
+                result.setProductLadderList(productLadderList);
+            }
+            //商品满减价格设置
+            if (product.getPromotionType() == 4) {
+                PmsProductFullReductionExample fullReductionExample = new PmsProductFullReductionExample();
+                fullReductionExample.createCriteria().andProductIdEqualTo(product.getId());
+                List<PmsProductFullReduction> productFullReductionList = productFullReductionMapper.selectByExample(fullReductionExample);
+                result.setProductFullReductionList(productFullReductionList);
+            }
+            //商品可用优惠券
+            result.setCouponList(couponService.getAvailableCouponList(product.getId(), product.getProductCategoryId()));
         }
-        //商品可用优惠券
-        result.setCouponList(couponService.getAvailableCouponList(product.getId(), product.getProductCategoryId()));
+
+
         return result;
     }
 

+ 72 - 0
forest-portal/portal-server/src/main/java/com/hwrj/cloud/portal/service/impl/UmsCompanyInfoServiceImpl.java

@@ -0,0 +1,72 @@
+package com.hwrj.cloud.portal.service.impl;
+
+import cn.hutool.core.bean.BeanUtil;
+import com.hwrj.cloud.portal.domain.UmsCompanyInfoDto;
+import com.hwrj.cloud.portal.mapper.UmsCompanyFileMapper;
+import com.hwrj.cloud.portal.mapper.UmsCompanyInfoMapper;
+import com.hwrj.cloud.portal.mapper.UmsCompanyShopMapper;
+import com.hwrj.cloud.portal.model.*;
+import com.hwrj.cloud.portal.service.UmsCompanyInfoService;
+import net.bytebuddy.asm.Advice;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.util.StringUtils;
+
+import java.util.List;
+@Service
+public class UmsCompanyInfoServiceImpl implements UmsCompanyInfoService {
+    @Autowired
+    private UmsCompanyInfoMapper umsCompanyInfoMapper;
+
+    @Autowired
+    private UmsCompanyFileMapper umsCompanyFileMapper;
+    @Autowired
+    private UmsCompanyShopMapper umsCompanyShopMapper;
+
+
+    @Override
+    public List<UmsCompanyInfo> searchCompanyInfo(String key) {
+        UmsCompanyInfoExample example = new UmsCompanyInfoExample();
+        UmsCompanyInfoExample.Criteria criteria = example.createCriteria();
+        if (!StringUtils.isEmpty(key)){
+            criteria.andCompNameLike("%"+key+"%");
+        }
+        List<UmsCompanyInfo> infos = umsCompanyInfoMapper.selectByExample(example);
+
+        return infos;
+    }
+
+    @Override
+    public UmsCompanyInfoDto detailInfo(Long id) {
+        if (id == null){
+            throw  new RuntimeException("非法操作");
+        }
+        UmsCompanyInfoDto umsCompanyInfoDto = new UmsCompanyInfoDto();
+        UmsCompanyInfo info = umsCompanyInfoMapper.selectByPrimaryKey(id);
+        Long compId = info.getId();
+        BeanUtil.copyProperties(info,umsCompanyInfoDto);
+        List<UmsCompanyFile> listFile = getCompanyFileByCompanyId(compId);
+        List<UmsCompanyShop> shopId = getCompanyShopByCompanyId(compId);
+        umsCompanyInfoDto.setFiles(listFile);
+        umsCompanyInfoDto.setShops(shopId);
+        return umsCompanyInfoDto;
+    }
+
+    @Override
+    public List<UmsCompanyShop> getCompanyShopByCompanyId(Long compId) {
+        UmsCompanyShopExample example = new UmsCompanyShopExample();
+        UmsCompanyShopExample.Criteria criteria = example.createCriteria();
+        criteria.andCompIdEqualTo(compId);
+        return null;
+    }
+
+    @Override
+    public List<UmsCompanyFile> getCompanyFileByCompanyId(Long compId) {
+        UmsCompanyFileExample example = new UmsCompanyFileExample();
+        UmsCompanyFileExample.Criteria criteria = example.createCriteria();
+        criteria.andCompIdEqualTo(compId);
+        criteria.andFileStatusEqualTo(0);
+        List<UmsCompanyFile> umsCompanyFiles = umsCompanyFileMapper.selectByExample(example);
+        return umsCompanyFiles;
+    }
+}

+ 70 - 0
forest-portal/portal-server/src/main/java/com/hwrj/cloud/portal/service/impl/UmsMemberOriginServiceImpl.java

@@ -0,0 +1,70 @@
+package com.hwrj.cloud.portal.service.impl;
+
+import cn.hutool.core.bean.BeanUtil;
+import com.hwrj.cloud.portal.domain.UmsMemberOriginDto;
+import com.hwrj.cloud.portal.mapper.UmsMemberOriginMapper;
+import com.hwrj.cloud.portal.mapper.UmsMemberOriginProductMapper;
+import com.hwrj.cloud.portal.model.UmsMemberOrigin;
+import com.hwrj.cloud.portal.model.UmsMemberOriginExample;
+import com.hwrj.cloud.portal.model.UmsMemberOriginProduct;
+import com.hwrj.cloud.portal.model.UmsMemberOriginProductExample;
+import com.hwrj.cloud.portal.service.UmsMemberOriginService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.ArrayList;
+import java.util.List;
+
+@Service
+public class UmsMemberOriginServiceImpl implements UmsMemberOriginService {
+
+    @Autowired
+    private UmsMemberOriginMapper umsMemberOriginMapper;
+
+    @Autowired
+    private UmsMemberOriginProductMapper umsMemberOriginProductMapper;
+    @Override
+    public UmsMemberOriginDto detail(Long id) {
+        if (id == null){
+            throw new RuntimeException("非法操作");
+        }
+        UmsMemberOriginDto dto = new UmsMemberOriginDto();
+        UmsMemberOrigin umsMemberOrigin = umsMemberOriginMapper.selectByPrimaryKey(id);
+        List<UmsMemberOriginProduct> umsMemberOriginProducts = productDetailListFromOriginId(umsMemberOrigin.getId());
+        BeanUtil.copyProperties(umsMemberOrigin,dto);
+        dto.setProducts(umsMemberOriginProducts);
+        return dto;
+    }
+
+    @Override
+    public List<UmsMemberOriginDto> detailListOfCompany(Long companyId) {
+        if (companyId == null){
+            throw new RuntimeException("非法操作");
+        }
+        UmsMemberOriginExample example = new UmsMemberOriginExample();
+        UmsMemberOriginExample.Criteria criteria = example.createCriteria();
+        criteria.andFkCompanyInfoIdEqualTo(companyId);
+        List<UmsMemberOrigin> umsMemberOrigins = umsMemberOriginMapper.selectByExample(example);
+        List<UmsMemberOriginDto> dtos = new ArrayList<>();
+        umsMemberOrigins.stream().forEach(item->{
+            UmsMemberOriginDto dto = new UmsMemberOriginDto();
+            BeanUtil.copyProperties(item,dto);
+            List<UmsMemberOriginProduct> products = productDetailListFromOriginId(item.getId());
+            dto.setProducts(products);
+            dtos.add(dto);
+
+        });
+
+        return dtos;
+    }
+
+    @Override
+    public List<UmsMemberOriginProduct> productDetailListFromOriginId(Long originId) {
+        UmsMemberOriginProductExample example = new UmsMemberOriginProductExample();
+        UmsMemberOriginProductExample.Criteria criteria = example.createCriteria();
+        criteria.andFkOriginIdEqualTo(originId);
+        criteria.andStateEqualTo(0);
+        List<UmsMemberOriginProduct> products = umsMemberOriginProductMapper.selectByExample(example);
+        return products;
+    }
+}

+ 3 - 3
forest-security/forest-security.iml

@@ -28,9 +28,6 @@
     <orderEntry type="module" module-name="forest-common" />
     <orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-starter:1.2.10" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.2" level="project" />
-    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.1.13.RELEASE" level="project" />
-    <orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.2.0" level="project" />
-    <orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.1.14.RELEASE" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:1.3.2" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis:mybatis:3.4.6" level="project" />
     <orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:1.3.2" level="project" />
@@ -61,6 +58,9 @@
     <orderEntry type="library" name="Maven: org.springframework:spring-beans:5.1.14.RELEASE" level="project" />
     <orderEntry type="library" name="Maven: org.projectlombok:lombok:1.18.12" level="project" />
     <orderEntry type="library" name="Maven: cn.hutool:hutool-all:4.5.7" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.1.13.RELEASE" level="project" />
+    <orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.2.0" level="project" />
+    <orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.1.14.RELEASE" level="project" />
     <orderEntry type="library" name="Maven: com.aliyun:aliyun-java-sdk-core:4.0.3" level="project" />
     <orderEntry type="library" name="Maven: com.google.code.gson:gson:2.8.6" level="project" />
     <orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.11" level="project" />

+ 1 - 1
nacos/conf/application.properties

@@ -36,7 +36,7 @@ server.port=8848
  db.num=1
 
 ### Connect URL of DB:
- db.url.0=jdbc:mysql://129.28.174.150:7046/carbon-mall-ncaos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
+ db.url.0=jdbc:mysql://172.16.90.64:3306/forest-config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
  db.user=root
  db.password=123456
 

+ 4 - 4
nacos/data/config-data/DEFAULT_GROUP/forest-admin

@@ -1,6 +1,6 @@
 spring:
   datasource:
-    url: jdbc:mysql://129.28.174.150:7046/carbon-mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
+    url: jdbc:mysql://172.16.90.64:3306/carbon-mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
     username: root
     password: 123456
     druid:
@@ -13,9 +13,9 @@ spring:
         login-username: druid
         login-password: druid
   redis:
-    host: 129.28.174.150 # Redis服务器地址
+    host: 172.16.90.64 # Redis服务器地址
     database: 0 # Redis数据库索引(默认为0)
-    port: 7047 # Redis服务器连接端口
+    port: 6379 # Redis服务器连接端口
     password: # Redis服务器连接密码(默认为空)
     timeout: 300ms # 连接超时时间(毫秒)
   zipkin:
@@ -81,7 +81,7 @@ secure:
       - /admin/info
       - /admin/logout
       - /minio/upload
-
+      - /product/import
 jwt:
   tokenHeader: Authorization
   secret: forest-admin-secret

+ 5 - 3
nacos/data/config-data/DEFAULT_GROUP/forest-gateway

@@ -1,8 +1,8 @@
 spring:
   redis:
-    host: 129.28.174.150
+    host: 172.16.90.64
     database: 0
-    port: 7047
+    port: 6379
     password:
     timeout: 300ms
   boot:
@@ -37,7 +37,8 @@ secure:
       - /druid/**
       - /home/**
       - /product/**
-      - /wechat/h5/**
+      - /wechat/h5/authorize
+      - /wechat/h5/userInfo
       - /admin/login
       - /sso/login
       - /sso/getLoginCode
@@ -48,6 +49,7 @@ secure:
       - /admin/logout
       - /minio/upload
       - /sso/loginPhone
+      - /product/import
 jwt:
   tokenHeader: Authorization
   secret: forest-admin-secret

+ 13 - 7
nacos/data/config-data/DEFAULT_GROUP/forest-portal

@@ -1,6 +1,6 @@
 spring:
   datasource:
-    url: jdbc:mysql://129.28.174.150:7046/carbon-mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
+    url: jdbc:mysql://172.16.90.64:3306/carbon-mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
     username: root
     password: 123456
     druid:
@@ -20,15 +20,15 @@ spring:
 
 
   redis:
-    host: 129.28.174.150 # Redis服务器地址
+    host: 172.16.90.64 # Redis服务器地址
     database: 0 # Redis数据库索引(默认为0)
-    port: 7047 # Redis服务器连接端口
+    port: 6379 # Redis服务器连接端口
     password: # Redis服务器连接密码(默认为空)
     timeout: 300ms # 连接超时时间(毫秒)
 
   rabbitmq:
-    host: 129.28.174.150
-    port: 7048
+    host: 172.16.90.64
+    port: 5672
     virtual-host: /forest
     username: forest
     password: 123456
@@ -48,7 +48,7 @@ mybatis:
 
 jwt:
   tokenHeader: Authorization #JWT存储的请求头
-  secret: forest-portal-secret #JWT加解密使用的密钥
+  secret: forest-admin-secret #JWT加解密使用的密钥
   expiration: 604800 #JWT的超期限时间(60*60*24*7)
   tokenHead: Bearer  #JWT负载中拿到开头
 
@@ -88,11 +88,16 @@ redis:
     telLoginCode: 'ums:authCode'
     orderId: 'oms:orderId'
     member: 'ums:member'
+    token: 'ums:token'
   expire:
     authCode: 90 # 验证码超期时间
     authLoginCode: 240 # 验证码超期时间
     common: 86400 # 24小时
 
+forest:
+  wx: 
+    password: forest123456
+
 sms:
   accessKeyId: LTAICB9TH0OAN3yJ
   accessKeySecret: lCuyL3MUQRLfoVw39W0NqWdVGoLV60
@@ -103,7 +108,8 @@ wx:
     appId: wxbe90cc7c5233dd84
     secret: ec4a18ce1a7bcf17cf592c3d57cec68a
     token: 123
-    url: http://tanhui.hongweisoft.com/mall-portal-member/wechat/h5/userInfo
+    url: http://tanhui.hongweisoft.com/forest-portal/wechat/h5/userInfo
+    before: http://172.16.90.25:8080
 
 
 

+ 2 - 2
nacos/data/naming/meta.properties

@@ -1,2 +1,2 @@
-#Thu Sep 03 23:19:29 CST 2020
-term=337
+#Mon Sep 07 14:54:49 CST 2020
+term=1190