forked from xxhjsb/wit-park-backend
接口改动
parent
b397c6f313
commit
e12b4ff3f9
|
@ -1,24 +0,0 @@
|
||||||
package com.hbt.safety.supervision.controller;
|
|
||||||
|
|
||||||
import com.hbt.common.core.domain.R;
|
|
||||||
import com.hbt.common.core.web.controller.BaseController;
|
|
||||||
import io.swagger.annotations.Api;
|
|
||||||
import io.swagger.annotations.ApiOperation;
|
|
||||||
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.RestController;
|
|
||||||
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/ep")
|
|
||||||
@Api(tags = "ep common", description = "ep 通用接口")
|
|
||||||
public class CommonController extends BaseController {
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
@GetMapping("/action")
|
|
||||||
@ApiOperation("通用接口")
|
|
||||||
public R<String> action() {
|
|
||||||
return R.ok("success");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -5,6 +5,9 @@ import java.util.List;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.hbt.safety.supervision.pojo.EnterpriseInformation;
|
import com.hbt.safety.supervision.pojo.EnterpriseInformation;
|
||||||
import com.hbt.safety.supervision.service.IEnterpriseInformationService;
|
import com.hbt.safety.supervision.service.IEnterpriseInformationService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import io.swagger.annotations.ApiResponse;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
@ -19,6 +22,7 @@ import com.hbt.common.core.web.page.TableDataInfo;
|
||||||
*
|
*
|
||||||
* @author zhangyu
|
* @author zhangyu
|
||||||
*/
|
*/
|
||||||
|
@Api(tags = "企业信息相关")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/information")
|
@RequestMapping("/information")
|
||||||
public class EnterpriseInformationController extends BaseController
|
public class EnterpriseInformationController extends BaseController
|
||||||
|
@ -29,18 +33,19 @@ public class EnterpriseInformationController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 查询企业信息列表
|
* 查询企业信息列表
|
||||||
*/
|
*/
|
||||||
|
@ApiOperation("查询企业信息列表")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public String list(EnterpriseInformation enterpriseInformation)
|
@ApiResponse(code = 200, message = "ok", response = EnterpriseInformation.class)
|
||||||
|
public String list()
|
||||||
{
|
{
|
||||||
startPage();
|
List<EnterpriseInformation> list = enterpriseInformationService.selectEnterpriseInformationList();
|
||||||
List<EnterpriseInformation> list = enterpriseInformationService.selectEnterpriseInformationList(enterpriseInformation);
|
return JSONObject.toJSONString(list);
|
||||||
TableDataInfo tableDataInfo = getDataTable(list);
|
|
||||||
return JSONObject.toJSONString(tableDataInfo);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取企业信息详细信息
|
* 获取企业信息详细信息
|
||||||
*/
|
*/
|
||||||
|
@ApiOperation("获取企业信息详细信息")
|
||||||
@GetMapping(value = "/getInfo")
|
@GetMapping(value = "/getInfo")
|
||||||
public String getInfo(int id)
|
public String getInfo(int id)
|
||||||
{
|
{
|
||||||
|
@ -51,6 +56,7 @@ public class EnterpriseInformationController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 新增企业信息
|
* 新增企业信息
|
||||||
*/
|
*/
|
||||||
|
@ApiOperation("新增企业信息")
|
||||||
@GetMapping("/add")
|
@GetMapping("/add")
|
||||||
public String add(@RequestBody EnterpriseInformation enterpriseInformation)
|
public String add(@RequestBody EnterpriseInformation enterpriseInformation)
|
||||||
{
|
{
|
||||||
|
@ -61,6 +67,7 @@ public class EnterpriseInformationController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 修改企业信息
|
* 修改企业信息
|
||||||
*/
|
*/
|
||||||
|
@ApiOperation("修改企业信息")
|
||||||
@GetMapping("/edit")
|
@GetMapping("/edit")
|
||||||
public String edit(@RequestBody EnterpriseInformation enterpriseInformation)
|
public String edit(@RequestBody EnterpriseInformation enterpriseInformation)
|
||||||
{
|
{
|
||||||
|
@ -71,6 +78,7 @@ public class EnterpriseInformationController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 删除企业信息
|
* 删除企业信息
|
||||||
*/
|
*/
|
||||||
|
@ApiOperation("删除企业信息")
|
||||||
@GetMapping("/remove")
|
@GetMapping("/remove")
|
||||||
public String remove(int[] ids)
|
public String remove(int[] ids)
|
||||||
{
|
{
|
||||||
|
@ -81,6 +89,7 @@ public class EnterpriseInformationController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 在管企业分类统计
|
* 在管企业分类统计
|
||||||
*/
|
*/
|
||||||
|
@ApiOperation("在管企业分类统计")
|
||||||
@GetMapping("/enterpriseStatistics")
|
@GetMapping("/enterpriseStatistics")
|
||||||
public String enterpriseStatistics()
|
public String enterpriseStatistics()
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,6 +4,7 @@ import java.util.List;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.hbt.safety.supervision.pojo.EscalateHiddenDanger;
|
import com.hbt.safety.supervision.pojo.EscalateHiddenDanger;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
@ -19,6 +20,7 @@ import com.hbt.common.core.web.page.TableDataInfo;
|
||||||
*
|
*
|
||||||
* @author 张雨
|
* @author 张雨
|
||||||
*/
|
*/
|
||||||
|
@Api(tags = "上报隐患")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/danger")
|
@RequestMapping("/danger")
|
||||||
public class EscalateHiddenDangerController extends BaseController
|
public class EscalateHiddenDangerController extends BaseController
|
||||||
|
|
|
@ -23,10 +23,9 @@ public interface EnterpriseInformationMapper
|
||||||
/**
|
/**
|
||||||
* 查询企业信息列表
|
* 查询企业信息列表
|
||||||
*
|
*
|
||||||
* @param enterpriseInformation 企业信息
|
|
||||||
* @return 企业信息集合
|
* @return 企业信息集合
|
||||||
*/
|
*/
|
||||||
List<EnterpriseInformation> selectEnterpriseInformationList(EnterpriseInformation enterpriseInformation);
|
List<EnterpriseInformation> selectEnterpriseInformationList();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增企业信息
|
* 新增企业信息
|
||||||
|
|
|
@ -2,68 +2,74 @@ package com.hbt.safety.supervision.pojo;
|
||||||
|
|
||||||
import com.hbt.common.core.annotation.Excel;
|
import com.hbt.common.core.annotation.Excel;
|
||||||
import com.hbt.common.core.web.domain.BaseEntity;
|
import com.hbt.common.core.web.domain.BaseEntity;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotBlank;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 企业信息对象 enterprise_information
|
* 企业信息对象 enterprise_information
|
||||||
*
|
*
|
||||||
* @author zhangyu
|
* @author zhangyu
|
||||||
* @date 2023-02-14
|
* @date 2023-02-14
|
||||||
*/
|
*/
|
||||||
|
@ApiModel
|
||||||
public class EnterpriseInformation extends BaseEntity
|
public class EnterpriseInformation extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** 企业id */
|
/** 企业id */
|
||||||
|
@ApiModelProperty(value = "企业id")
|
||||||
private int id;
|
private int id;
|
||||||
|
|
||||||
/** 统一社会信用代码 */
|
/** 统一社会信用代码 */
|
||||||
@Excel(name = "统一社会信用代码")
|
@ApiModelProperty(value = "统一社会信用代码")
|
||||||
private String unifySocialCreditCode;
|
private String unifySocialCreditCode;
|
||||||
|
|
||||||
/** 企业名称 */
|
/** 企业名称 */
|
||||||
@Excel(name = "企业名称")
|
@ApiModelProperty(value = "企业名称")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
/** 注册号 */
|
/** 注册号 */
|
||||||
@Excel(name = "注册号")
|
@ApiModelProperty(value = "注册号")
|
||||||
private String registrationNumber;
|
private String registrationNumber;
|
||||||
|
|
||||||
/** 法定代表人 */
|
/** 法定代表人 */
|
||||||
@Excel(name = "法定代表人")
|
@ApiModelProperty(value = "法定代表人")
|
||||||
private String legalRepresentative;
|
private String legalRepresentative;
|
||||||
|
|
||||||
/** 类型 */
|
/** 类型 1-国有, 2-集体企业 3-私营企业*/
|
||||||
@Excel(name = "类型")
|
@ApiModelProperty(value = "企业类型")
|
||||||
private String type;
|
private int type;
|
||||||
|
|
||||||
/** 成立日期 */
|
/** 成立日期 */
|
||||||
@Excel(name = "成立日期")
|
@ApiModelProperty(value = "成立日期")
|
||||||
private String establishmentDate;
|
private String establishmentDate;
|
||||||
|
|
||||||
/** 出资额 */
|
/** 出资额 */
|
||||||
@Excel(name = "出资额")
|
@ApiModelProperty(value = "出资额")
|
||||||
private String fundAmount;
|
private String fundAmount;
|
||||||
|
|
||||||
/** 核准日期 */
|
/** 核准日期 */
|
||||||
@Excel(name = "核准日期")
|
@ApiModelProperty(value = "核准日期")
|
||||||
private String approvalDate;
|
private String approvalDate;
|
||||||
|
|
||||||
/** 登记机关 */
|
/** 登记机关 */
|
||||||
@Excel(name = "登记机关")
|
@ApiModelProperty(value = "登记机关")
|
||||||
private String registrationAuthority;
|
private String registrationAuthority;
|
||||||
|
|
||||||
/** 等级状态 */
|
/** 等级状态 */
|
||||||
@Excel(name = "等级状态")
|
@ApiModelProperty(value = "等级状态")
|
||||||
private String registrationStatus;
|
private String registrationStatus;
|
||||||
|
|
||||||
/** 住所 */
|
/** 住所 */
|
||||||
@Excel(name = "住所")
|
@ApiModelProperty(value = "住所")
|
||||||
private String dwellingPlace;
|
private String dwellingPlace;
|
||||||
|
|
||||||
/** 经营范围 */
|
/** 经营范围 */
|
||||||
@Excel(name = "经营范围")
|
@ApiModelProperty(value = "经营范围")
|
||||||
private String businessScope;
|
private String businessScope;
|
||||||
|
|
||||||
public void setId(int id)
|
public void setId(int id)
|
||||||
|
@ -111,12 +117,12 @@ public class EnterpriseInformation extends BaseEntity
|
||||||
{
|
{
|
||||||
return legalRepresentative;
|
return legalRepresentative;
|
||||||
}
|
}
|
||||||
public void setType(String type)
|
public void setType(int type)
|
||||||
{
|
{
|
||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getType()
|
public int getType()
|
||||||
{
|
{
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,10 +23,9 @@ public interface IEnterpriseInformationService
|
||||||
/**
|
/**
|
||||||
* 查询企业信息列表
|
* 查询企业信息列表
|
||||||
*
|
*
|
||||||
* @param enterpriseInformation 企业信息
|
|
||||||
* @return 企业信息集合
|
* @return 企业信息集合
|
||||||
*/
|
*/
|
||||||
List<EnterpriseInformation> selectEnterpriseInformationList(EnterpriseInformation enterpriseInformation);
|
List<EnterpriseInformation> selectEnterpriseInformationList();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增企业信息
|
* 新增企业信息
|
||||||
|
|
|
@ -40,12 +40,11 @@ public class EnterpriseInformationServiceImpl implements IEnterpriseInformationS
|
||||||
/**
|
/**
|
||||||
* 查询企业信息列表
|
* 查询企业信息列表
|
||||||
*
|
*
|
||||||
* @param enterpriseInformation 企业信息
|
|
||||||
* @return 企业信息
|
* @return 企业信息
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<EnterpriseInformation> selectEnterpriseInformationList(EnterpriseInformation enterpriseInformation) {
|
public List<EnterpriseInformation> selectEnterpriseInformationList() {
|
||||||
return enterpriseInformationMapper.selectEnterpriseInformationList(enterpriseInformation);
|
return enterpriseInformationMapper.selectEnterpriseInformationList();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue