Commit edbd1046 authored by wanglong's avatar wanglong

添加查看企业信息详情

parent 3ba57df9
package com.yeejoin.amos.boot.module.ugp.biz.controller; package com.yeejoin.amos.boot.module.ugp.biz.controller;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import com.yeejoin.amos.boot.module.common.api.dto.CompanyPerson;
import com.yeejoin.amos.boot.module.ugp.api.entity.Company; import com.yeejoin.amos.boot.module.ugp.api.entity.Company;
import com.yeejoin.amos.boot.module.ugp.api.mapper.CompanyMapper;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
...@@ -27,7 +25,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; ...@@ -27,7 +25,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.ugp.api.dto.CompanyDto; import com.yeejoin.amos.boot.module.ugp.api.dto.CompanyDto;
import org.typroject.tyboot.core.restful.doc.TycloudOperation; import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.foundation.enumeration.UserType; import org.typroject.tyboot.core.foundation.enumeration.UserType;
import springfox.documentation.spring.web.json.Json;
/** /**
* 企业信息表 * 企业信息表
...@@ -42,6 +39,8 @@ public class CompanyController extends BaseController { ...@@ -42,6 +39,8 @@ public class CompanyController extends BaseController {
@Autowired @Autowired
CompanyServiceImpl companyServiceImpl; CompanyServiceImpl companyServiceImpl;
@Autowired
CompanyMapper companyMapper;
/** /**
* 新增企业信息表 * 新增企业信息表
...@@ -137,6 +136,7 @@ public class CompanyController extends BaseController { ...@@ -137,6 +136,7 @@ public class CompanyController extends BaseController {
Map<String,Object> message = new HashMap<>(); Map<String,Object> message = new HashMap<>();
try{ try{
companyServiceImpl.queryForCompanyList();
companyServiceImpl.modifyCompanyInfo(companyList); companyServiceImpl.modifyCompanyInfo(companyList);
message.put("res",true); message.put("res",true);
}catch (Exception e){ }catch (Exception e){
...@@ -148,6 +148,26 @@ public class CompanyController extends BaseController { ...@@ -148,6 +148,26 @@ public class CompanyController extends BaseController {
} }
/**
* 查看企业信息详情
*
* @return
*/
@TycloudOperation(ApiLevel = UserType.AGENCY,needAuth = false)
@ApiOperation(httpMethod = "GET",value = "查看企业信息详情", notes = "查看企业信息详情")
@GetMapping(value = "/getCompanyInfo")
public ResponseModel<Company> getCompanyInfo(Company companyList) {
Company company;
QueryWrapper<Company> lambdaQueryWrapper=new QueryWrapper<>();
lambdaQueryWrapper.eq("name",companyList.getName());
company= companyMapper.selectOne(lambdaQueryWrapper);
return ResponseHelper.buildResponse(company);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment