Browse Source

Merge remote-tracking branch 'origin/master'

jz.kai 4 năm trước cách đây
mục cha
commit
0a2fede99f

+ 24 - 0
common/src/main/java/com/jpsoft/enterprise/modules/base/dao/CooperationInfoDAO.java

@@ -0,0 +1,24 @@
+package com.jpsoft.enterprise.modules.base.dao;
+
+import com.jpsoft.enterprise.modules.base.entity.CooperationInfo;
+import com.jpsoft.enterprise.modules.common.dto.Sort;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @author 墨鱼_mo
+ * @date 2021-1-13 14:40
+ */
+@Repository
+public interface CooperationInfoDAO {
+
+    int insert(CooperationInfo entity);
+    int update(CooperationInfo entity);
+    int exist(String id);
+    CooperationInfo get(String id);
+    int delete(String id);
+    List<CooperationInfo> list();
+    List<CooperationInfo> search(Map<String,Object> searchParams, List<Sort> sortList);
+}

+ 25 - 0
common/src/main/java/com/jpsoft/enterprise/modules/base/dto/CooperationInfoDTO.java

@@ -0,0 +1,25 @@
+package com.jpsoft.enterprise.modules.base.dto;
+
+import lombok.Data;
+
+/**
+ * @author 墨鱼_mo
+ * @date 2021-1-13 15:48
+ */
+@Data
+public class CooperationInfoDTO {
+
+    private String id;
+
+    private String companyName;
+
+    private String createTime;
+
+    private String companyLogo;
+
+    private String personName;
+
+    private String typeName;
+
+    private String content;
+}

+ 21 - 0
common/src/main/java/com/jpsoft/enterprise/modules/base/dto/CooperationInfoListDTO.java

@@ -0,0 +1,21 @@
+package com.jpsoft.enterprise.modules.base.dto;
+
+import lombok.Data;
+
+/**
+ * @author 墨鱼_mo
+ * @date 2021-1-13 14:50
+ */
+@Data
+public class CooperationInfoListDTO {
+
+    private String id;
+
+    private String createTime;
+
+    private String companyName;
+
+    private String title;
+
+    private String content;
+}

+ 67 - 0
common/src/main/java/com/jpsoft/enterprise/modules/base/entity/CooperationInfo.java

@@ -0,0 +1,67 @@
+package com.jpsoft.enterprise.modules.base.entity;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.util.Date;
+
+/**
+ * @author 墨鱼_mo
+ * @date 2021-1-13 10:46
+ */
+@Data
+public class CooperationInfo {
+
+
+    private String id;
+
+    @ApiModelProperty(value = "公司id")
+    private String companyId;
+
+    @ApiModelProperty(value = "类型")
+    private String type;
+
+    @ApiModelProperty(value = "图片地址")
+    private String picUrl;
+
+    @ApiModelProperty(value = "标题")
+    private String title;
+
+    @ApiModelProperty(value = "内容")
+    private String content;
+
+    @ApiModelProperty(value = "是否上架")
+    private Boolean status = false;
+
+    /**
+     * 创建人
+     */
+    @ApiModelProperty(value = "创建人")
+    private String createBy;
+    /**
+     * 创建时间
+     */
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
+    @ApiModelProperty(value = "创建时间")
+    private Date createTime;
+    /**
+     * 更新人
+     */
+    @ApiModelProperty(value = "更新人")
+    private String updateBy;
+    /**
+     * 更新时间
+     */
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
+    @ApiModelProperty(value = "更新时间")
+    private Date updateTime;
+    /**
+     * 是否删除
+     */
+    @ApiModelProperty(value = "是否删除")
+    private Boolean delFlag = false;
+}

+ 23 - 0
common/src/main/java/com/jpsoft/enterprise/modules/base/service/CooperationInfoService.java

@@ -0,0 +1,23 @@
+package com.jpsoft.enterprise.modules.base.service;
+
+import com.github.pagehelper.Page;
+import com.jpsoft.enterprise.modules.base.entity.CooperationInfo;
+import com.jpsoft.enterprise.modules.common.dto.Sort;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @author 墨鱼_mo
+ * @date 2021-1-13 14:36
+ */
+public interface CooperationInfoService {
+
+    CooperationInfo get(String id);
+    boolean exist(String id);
+    int insert(CooperationInfo model);
+    int update(CooperationInfo model);
+    int delete(String id);
+    List<CooperationInfo> list();
+    Page<CooperationInfo> pageSearch(Map<String, Object> searchParams, int pageNum, int pageSize, boolean count, List<Sort> sortList);
+}

+ 75 - 0
common/src/main/java/com/jpsoft/enterprise/modules/base/service/impl/CooperationInfoServiceImpl.java

@@ -0,0 +1,75 @@
+package com.jpsoft.enterprise.modules.base.service.impl;
+
+import com.github.pagehelper.Page;
+import com.github.pagehelper.PageHelper;
+import com.jpsoft.enterprise.modules.base.dao.CooperationInfoDAO;
+import com.jpsoft.enterprise.modules.base.entity.CooperationInfo;
+import com.jpsoft.enterprise.modules.base.service.CooperationInfoService;
+import com.jpsoft.enterprise.modules.common.dto.Sort;
+import org.springframework.stereotype.Component;
+import org.springframework.transaction.annotation.Transactional;
+
+import javax.annotation.Resource;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @author 墨鱼_mo
+ * @date 2021-1-13 14:37
+ */
+@Transactional
+@Component(value="cooperationInfoService")
+public class CooperationInfoServiceImpl implements CooperationInfoService {
+
+    @Resource(name="cooperationInfoDAO")
+    private CooperationInfoDAO cooperationInfoDAO;
+
+    @Override
+    public CooperationInfo get(String id) {
+        // TODO Auto-generated method stub
+        return cooperationInfoDAO.get(id);
+    }
+
+    @Override
+    public int insert(CooperationInfo model) {
+        // TODO Auto-generated method stub
+        //model.setId(UUID.randomUUID().toString());
+
+        return cooperationInfoDAO.insert(model);
+    }
+
+    @Override
+    public int update(CooperationInfo model) {
+        // TODO Auto-generated method stub
+        return cooperationInfoDAO.update(model);
+    }
+
+    @Override
+    public int delete(String id) {
+        // TODO Auto-generated method stub
+        return cooperationInfoDAO.delete(id);
+    }
+
+    @Override
+    public boolean exist(String id) {
+        // TODO Auto-generated method stub
+        int count = cooperationInfoDAO.exist(id);
+
+        return count > 0 ? true : false;
+    }
+
+    @Override
+    public List<CooperationInfo> list() {
+        // TODO Auto-generated method stub
+        return cooperationInfoDAO.list();
+    }
+
+    @Override
+    public Page<CooperationInfo> pageSearch(Map<String, Object> searchParams, int pageNumber, int pageSize, boolean count, List<Sort> sortList) {
+        Page<CooperationInfo> page = PageHelper.startPage(pageNumber,pageSize,count).doSelectPage(()->{
+            cooperationInfoDAO.search(searchParams,sortList);
+        });
+
+        return page;
+    }
+}

+ 118 - 0
common/src/main/resources/mapper/base/CooperationInfo.xml

@@ -0,0 +1,118 @@
+<?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">
+<!-- namespace必须指向DAO接口 -->
+<mapper namespace="com.jpsoft.enterprise.modules.base.dao.CooperationInfoDAO">
+    <resultMap id="CooperationInfoMap" type="com.jpsoft.enterprise.modules.base.entity.CooperationInfo">
+        <id property="id" column="id_" />
+        <result property="companyId" column="company_id"/>
+        <result property="type" column="type_"/>
+        <result property="picUrl" column="pic_url"/>
+        <result property="title" column="title_" />
+        <result property="content" column="content_"/>
+        <result property="status" column="status_"/>
+        <result property="createBy" column="create_by" />
+        <result property="createTime" column="create_time" />
+        <result property="updateBy" column="update_by" />
+        <result property="updateTime" column="update_time" />
+        <result property="delFlag" column="del_flag" />
+    </resultMap>
+    <insert id="insert" parameterType="com.jpsoft.enterprise.modules.base.entity.CooperationInfo">
+        <!--
+        <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
+            select sys_guid() from dual
+        </selectKey>
+        -->
+        <![CDATA[
+		insert into base_cooperation_info
+	    (id_,company_id,type_,pic_url,title_,content_,status_,create_by,create_time,update_by,update_time,del_flag)
+		values
+		(
+#{id,jdbcType=VARCHAR}
+,#{companyId,jdbcType=VARCHAR}
+,#{type,jdbcType=VARCHAR}
+,#{picUrl,jdbcType=VARCHAR}
+,#{title,jdbcType=VARCHAR}
+,#{content,jdbcType= NUMERIC }
+,#{status,jdbcType= NUMERIC }
+,#{createBy,jdbcType=VARCHAR}
+,#{createTime,jdbcType= TIMESTAMP }
+,#{updateBy,jdbcType=VARCHAR}
+,#{updateTime,jdbcType= TIMESTAMP }
+,#{delFlag,jdbcType= NUMERIC }
+		)
+	]]>
+    </insert>
+    <delete id="delete" parameterType="string">
+        delete from base_cooperation_info where id_=#{id,jdbcType=VARCHAR}
+    </delete>
+    <update id="update" parameterType="com.jpsoft.enterprise.modules.base.entity.CooperationInfo">
+        update base_cooperation_info
+        <set>
+            <if test="companyId!=null">
+                company_id=#{companyId,jdbcType=VARCHAR},
+            </if>
+            <if test="type!=null">
+                type_=#{type,jdbcType=VARCHAR},
+            </if>
+
+            <if test="title!=null">
+                title_=#{title,jdbcType=VARCHAR},
+            </if>
+            <if test="picUrl!=null">
+                pic_url=#{picUrl,jdbcType=VARCHAR},
+            </if>
+            <if test="content!=null">
+                content_=#{content,jdbcType= NUMERIC },
+            </if>
+            <if test="status!=null">
+                status_=#{status,jdbcType= NUMERIC },
+            </if>
+            <if test="createBy!=null">
+                create_by=#{createBy,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime!=null">
+                create_time=#{createTime,jdbcType= TIMESTAMP },
+            </if>
+            <if test="updateBy!=null">
+                update_by=#{updateBy,jdbcType=VARCHAR},
+            </if>
+            <if test="updateTime!=null">
+                update_time=#{updateTime,jdbcType= TIMESTAMP },
+            </if>
+            <if test="delFlag!=null">
+                del_flag=#{delFlag,jdbcType= NUMERIC },
+            </if>
+        </set>
+        where id_=#{id}
+    </update>
+    <select id="get" parameterType="string" resultMap="CooperationInfoMap">
+        select * from base_cooperation_info where id_=#{0} and del_flag = 0
+    </select>
+    <select id="exist" parameterType="string" resultType="int">
+        select count(*) from base_cooperation_info where id_=#{0}
+    </select>
+    <select id="list" resultMap="CooperationInfoMap">
+		select * from base_cooperation_info
+	</select>
+    <select id="search" parameterType="hashmap" resultMap="CooperationInfoMap">
+        <![CDATA[
+			select * from base_cooperation_info
+		]]>
+        <where>
+            del_flag = 0
+            <if test="searchParams.id != null">
+                and ID_ like #{searchParams.id}
+            </if>
+            <if test="searchParams.type != null">
+                and type_ = #{searchParams.type}
+            </if>
+            <if test="searchParams.status != null">
+                and status_ = #{searchParams.status}
+            </if>
+        </where>
+        <foreach item="sort" collection="sortList"  open="order by" separator=",">
+            ${sort.name} ${sort.order}
+        </foreach>
+    </select>
+</mapper>

+ 2 - 0
web/src/main/java/com/jpsoft/enterprise/config/WebMvcConfig.java

@@ -72,6 +72,8 @@ public class WebMvcConfig implements WebMvcConfigurer {
 				.excludePathPatterns("/mobile/enterpriseInfoApi/enterpriseInfo")
 				.excludePathPatterns("/mobile/activityInfoApi/activityList")
                 .excludePathPatterns("/mobile/activityInfoApi/activityDetail")
+				.excludePathPatterns("/mobile/cooperationInfoApi/cooperationInfoList")
+				.excludePathPatterns("/mobile/cooperationInfoApi/cooperationInfoDetail")
 				.excludePathPatterns("/wechat/**")
 
         ;

+ 10 - 1
web/src/main/java/com/jpsoft/enterprise/modules/base/controller/CompanyInfoController.java

@@ -278,7 +278,9 @@ public class CompanyInfoController {
 
     @ApiOperation(value="所有单位列表")
     @RequestMapping(value = "list",method = RequestMethod.POST)
-    public MessageResult<List<CompanyInfo>> list(String companyName,
+    public MessageResult<List<CompanyInfo>> list(
+                 String companyId,
+                 String companyName,
                  @RequestParam(value="pageIndex",defaultValue="1") int pageIndex,
                  @RequestParam(value="pageSize",defaultValue="10") int pageSize,
                  @RequestAttribute String subject){
@@ -302,6 +304,13 @@ public class CompanyInfoController {
         List<Sort> sortList = new ArrayList<>();
         sortList.add(new Sort("create_time","desc"));
 
+        if (StringUtils.isNotEmpty(companyId)) {
+            CompanyInfo ci = companyInfoService.get(companyId);
+            if(ci != null) {
+                searchParams.put("companyName", "%" + ci.getCompanyName() + "%");
+            }
+        }
+
         if (StringUtils.isNotEmpty(companyName)) {
             searchParams.put("companyName","%" + companyName + "%");
         }

+ 32 - 0
web/src/main/java/com/jpsoft/enterprise/modules/base/controller/PersonInfoController.java

@@ -78,6 +78,7 @@ public class PersonInfoController {
             personInfo.setDelFlag(false);
             personInfo.setCreateBy(subject);
             personInfo.setCreateTime(new Date());
+            personInfo.setPassword(AESUtil.encrypt("123456",AESUtil.MYSQL_ENC_KEY));//初始密码设置
             
             int affectCount = personInfoService.insert(personInfo);
 
@@ -391,4 +392,35 @@ public class PersonInfoController {
 
         return msgResult;
     }
+
+    @PostMapping("resetPassword")
+    @ApiOperation(value = "重置密码")
+    public MessageResult<Map> resetPassword(
+            @RequestParam(value="id",defaultValue="") String id,
+            @RequestAttribute String subject) {
+
+        MessageResult<Map> messageResult = new MessageResult<>();
+
+        try {
+
+            Map<String, Object> dataMap = new HashMap<String, Object>();
+            PersonInfo personInfo = personInfoService.get(id);
+
+            if (personInfo != null) {
+                personInfo.setPassword(AESUtil.encrypt("123456",AESUtil.MYSQL_ENC_KEY));
+                personInfo.setUpdateTime(new Date());
+                personInfoService.update(personInfo);
+            }
+
+            messageResult.setData(dataMap);
+            messageResult.setResult(true);
+            messageResult.setCode(200);
+        } catch (Exception ex) {
+            messageResult.setCode(400);
+            messageResult.setResult(false);
+            messageResult.setMessage(ex.getMessage());
+        }
+
+        return messageResult;
+    }
 }

+ 156 - 0
web/src/main/java/com/jpsoft/enterprise/modules/mobile/controller/CooperationInfoApiController.java

@@ -0,0 +1,156 @@
+package com.jpsoft.enterprise.modules.mobile.controller;
+
+import cn.hutool.core.date.DateUtil;
+import com.github.pagehelper.Page;
+import com.jpsoft.enterprise.modules.base.dto.ActivityInfoListDTO;
+import com.jpsoft.enterprise.modules.base.dto.CooperationInfoDTO;
+import com.jpsoft.enterprise.modules.base.dto.CooperationInfoListDTO;
+import com.jpsoft.enterprise.modules.base.entity.ActivityInfo;
+import com.jpsoft.enterprise.modules.base.entity.CompanyInfo;
+import com.jpsoft.enterprise.modules.base.entity.CooperationInfo;
+import com.jpsoft.enterprise.modules.base.entity.PersonInfo;
+import com.jpsoft.enterprise.modules.base.service.CompanyInfoService;
+import com.jpsoft.enterprise.modules.base.service.CooperationInfoService;
+import com.jpsoft.enterprise.modules.base.service.PersonInfoService;
+import com.jpsoft.enterprise.modules.common.dto.MessageResult;
+import com.jpsoft.enterprise.modules.common.dto.Sort;
+import com.jpsoft.enterprise.modules.sys.entity.DataDictionary;
+import com.jpsoft.enterprise.modules.sys.service.DataDictionaryService;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiImplicitParams;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.BeanUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @author 墨鱼_mo
+ * @date 2021-1-13 14:52
+ */
+@RestController
+@RequestMapping("/mobile/cooperationInfoApi")
+@Slf4j
+public class CooperationInfoApiController {
+
+
+    @Autowired
+    private CooperationInfoService cooperationInfoService;
+
+    @Autowired
+    private CompanyInfoService companyInfoService;
+
+    @Autowired
+    private PersonInfoService personInfoService;
+
+    @Autowired
+    private DataDictionaryService dataDictionaryService;
+
+    @PostMapping("cooperationInfoList")
+    @ApiOperation(value = "互助信息列表(公开接口)")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "type", value = "type", required = true, paramType = "form")
+    })
+    public MessageResult<Map> cooperationInfoList(String type,@RequestParam(value="pageIndex",defaultValue="1") int pageIndex, @RequestParam(value="pageSize",defaultValue="10") int pageSize) {
+        MessageResult<Map> messageResult = new MessageResult<>();
+
+        try {
+            List<CooperationInfoListDTO> list = new ArrayList<>();
+
+
+
+            Map<String,Object> searchParams = new HashMap<>();
+            searchParams.put("type",type);
+            searchParams.put("status",1);
+            List<Sort> sortList = new ArrayList<>();
+            sortList.add(new Sort("create_time","desc"));
+
+            Page<CooperationInfo> page = cooperationInfoService.pageSearch(searchParams,pageIndex,pageSize,true,sortList);
+            List<CooperationInfo> cooperationInfoList = page.getResult();
+            if (cooperationInfoList.size()>0){
+                for (CooperationInfo cooperationInfo : cooperationInfoList){
+                    CooperationInfoListDTO cooperationInfoListDTO = new CooperationInfoListDTO();
+                    BeanUtils.copyProperties(cooperationInfo,cooperationInfoListDTO);
+                    CompanyInfo companyInfo = companyInfoService.get(cooperationInfo.getCompanyId());
+                    if (companyInfo != null){
+                        cooperationInfoListDTO.setCompanyName(companyInfo.getCompanyName());
+                        cooperationInfoListDTO.setCreateTime(DateUtil.format(cooperationInfo.getCreateTime(),"yyyy-MM-dd HH:mm"));
+                        list.add(cooperationInfoListDTO);
+                    }
+                }
+            }
+
+            Map<String,Object> pageMap = new HashMap<>();
+
+            pageMap.put("recordsTotal",page.getTotal());
+            pageMap.put("recordsFiltered",page.getTotal());
+            pageMap.put("totalPage",page.getPages());
+            pageMap.put("pageNumber",page.getPageNum());
+            pageMap.put("pageSize",page.getPageSize());
+            pageMap.put("data", list);
+
+            messageResult.setData(pageMap);
+            messageResult.setResult(true);
+            messageResult.setCode(200);
+        } catch (Exception ex) {
+            log.error(ex.getMessage(),ex);
+            messageResult.setCode(400);
+            messageResult.setResult(false);
+            messageResult.setMessage(ex.getMessage());
+        }
+
+        return messageResult;
+    }
+
+    @PostMapping("cooperationInfoDetail")
+    @ApiOperation(value = "互助信息详情(公开接口)")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "id", value = "id", required = true, paramType = "form")
+    })
+    public MessageResult<CooperationInfoDTO> cooperationInfoDetail(String id) {
+        MessageResult<CooperationInfoDTO> messageResult = new MessageResult<>();
+
+        try {
+
+            CooperationInfo cooperationInfo = cooperationInfoService.get(id);
+            CooperationInfoDTO cooperationInfoDTO = new CooperationInfoDTO();
+            if (cooperationInfo != null){
+                BeanUtils.copyProperties(cooperationInfo,cooperationInfoDTO);
+                CompanyInfo companyInfo = companyInfoService.get(cooperationInfo.getCompanyId());
+                if (companyInfo != null){
+                    cooperationInfoDTO.setCompanyName(companyInfo.getCompanyName());
+                    cooperationInfoDTO.setCompanyLogo(companyInfo.getLogoUrl());
+                }
+                PersonInfo personInfo = personInfoService.get(cooperationInfo.getCreateBy());
+                if (personInfo != null){
+                    cooperationInfoDTO.setPersonName(personInfo.getPersonName());
+                }
+
+                cooperationInfoDTO.setCreateTime(DateUtil.format(cooperationInfo.getCreateTime(),"yyyy-MM-dd"));
+                String typeName = dataDictionaryService.findNameByCatalogNameAndValue("互助类型",cooperationInfo.getType());
+                cooperationInfoDTO.setTypeName(typeName);
+            }
+
+
+            messageResult.setData(cooperationInfoDTO);
+            messageResult.setResult(true);
+            messageResult.setCode(200);
+        } catch (Exception ex) {
+            log.error(ex.getMessage(),ex);
+            messageResult.setCode(400);
+            messageResult.setResult(false);
+            messageResult.setMessage(ex.getMessage());
+        }
+
+        return messageResult;
+    }
+
+}

+ 5 - 1
web/src/main/java/com/jpsoft/enterprise/modules/mobile/controller/PersonInfoApiController.java

@@ -514,6 +514,7 @@ public class PersonInfoApiController {
             @ApiImplicitParam(name = "phone", value = "手机号码", required = true, paramType = "form"),
             @ApiImplicitParam(name = "idCardUrl", value = "身份证人脸面", required = false, paramType = "form"),
             @ApiImplicitParam(name = "businessLicenseUrl", value = "营业执照照片", required = false, paramType = "form"),
+            @ApiImplicitParam(name = "logoUrl",value = "企业logo",required = false,paramType = "form"),
             @ApiImplicitParam(name = "type", value = "企业类型", required = false, paramType = "form"),
             @ApiImplicitParam(name = "scale", value = "企业规模", required = false, paramType = "form"),
             @ApiImplicitParam(name = "industry", value = "所属行业", required = false, paramType = "form"),
@@ -521,7 +522,7 @@ public class PersonInfoApiController {
             @ApiImplicitParam(name = "companyIntroduction", value = "公司介绍", required = false, paramType = "form"),
             @ApiImplicitParam(name = "enterpriserIntroduction", value = "企业家介绍", required = false, paramType = "form"),
     })
-    public MessageResult<Map> updateBasicInformation(String token, @RequestAttribute String subject, String creditCode, String companyName, String registerType, String region, String idCard, String personName, String phone, String idCardUrl, String businessLicenseUrl, String type, String scale, String industry, String address, String companyIntroduction, String enterpriserIntroduction) {
+    public MessageResult<Map> updateBasicInformation(String token, @RequestAttribute String subject, String creditCode, String companyName, String registerType, String region, String idCard, String personName, String phone, String idCardUrl, String businessLicenseUrl, String type, String scale, String industry, String address, String companyIntroduction, String enterpriserIntroduction,String logoUrl) {
 
         MessageResult<Map> messageResult = new MessageResult<>();
 
@@ -552,6 +553,9 @@ public class PersonInfoApiController {
             if (StringUtils.isNotBlank(businessLicenseUrl)) {
                 companyInfo.setBusinessLicenseUrl(businessLicenseUrl);
             }
+            if (StringUtils.isNotBlank(logoUrl)){
+                companyInfo.setLogoUrl(logoUrl);
+            }
             companyInfo.setType(type);
             companyInfo.setScale(scale);
             companyInfo.setIndustry(industry);