Commit a669235c authored by liuChang's avatar liuChang

Merge branch 'V20231129-中建一局二公司' of 192.168.60.201:root/dsk-operate-sys into V20231129-中建一局二公司

parents 32563915 55500792
......@@ -134,4 +134,54 @@ public class EnterpriseController {
return enterpriseService.financialData(vo);
}
/**
*@Description: 资质变更分页列表
*@Param:
*@return: com.dsk.common.core.page.TableDataInfo
*@Author: Dgm
*@date: 2024/5/17 15:06
*/
@PostMapping(value = "enterpriseCert/certChangePage")
public TableDataInfo certChangePage(@RequestBody @Valid EnterpriseCertBody vo) throws Exception {
return enterpriseService.certChangePage(vo);
}
/**
*@Description: 安许证列表
*@Param:
*@return: com.dsk.common.core.page.TableDataInfo
*@Author: Dgm
*@date: 2024/5/17 15:06
*/
@PostMapping(value = "enterpriseCert/liceList")
public R liceList(@RequestBody @Valid EnterpriseCertBody vo) throws Exception {
return enterpriseService.liceList(vo);
}
/**
*@Description: 备案网站列表
*@Param:
*@return: com.dsk.common.core.page.TableDataInfo
*@Author: Dgm
*@date: 2024/5/17 15:06
*/
@PostMapping(value = "enterpriseCert/recordWebSiteList")
public R recordWebSiteList(@RequestBody @Valid EnterpriseCertBody vo) throws Exception {
return enterpriseService.recordWebSiteList(vo);
}
/**
*@Description: 备案地列表
*@Param:
*@return: com.dsk.common.core.page.TableDataInfo
*@Author: Dgm
*@date: 2024/5/17 15:06
*/
@PostMapping(value = "enterpriseCert/recordAreaList")
public R recordAreaList(@RequestBody @Valid EnterpriseCertBody vo) throws Exception {
return enterpriseService.recordAreaList(vo);
}
}
package com.dsk.jsk.domain;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import javax.validation.constraints.NotNull;
@Data
@ToString
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class EnterpriseCertBody
{
/**
* 企业id
*/
@NotNull(message = "企业id不能为空")
private Integer cid;
public boolean isVaildCid() {
return 0 == cid;
}
}
......@@ -527,4 +527,37 @@ public class EnterpriseService {
return dskOpenApiUtil.responsePage(map);
}
public TableDataInfo certChangePage(EnterpriseCertBody body) throws Exception {
if (body.isVaildCid()) {
return new TableDataInfo(new ArrayList<>(), 0);
}
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCert/certChangePage", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map);
}
public R liceList(EnterpriseCertBody body) throws Exception {
if (body.isVaildCid()) {
return R.ok();
}
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCert/liceList", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class);
}
public R recordWebSiteList(EnterpriseCertBody body) throws Exception {
if (body.isVaildCid()) {
return R.ok();
}
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCert/recordWebSiteList", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class);
}
public R recordAreaList(EnterpriseCertBody body) throws Exception {
if (body.isVaildCid()) {
return R.ok();
}
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterpriseCert/recordAreaList", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class);
}
}
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