Compare commits
2 Commits
561d399df8
...
48a8dd5a59
| Author | SHA1 | Date |
|---|---|---|
|
|
48a8dd5a59 | |
|
|
336f827168 |
|
|
@ -35,4 +35,6 @@ build/
|
|||
.vscode/
|
||||
|
||||
### Mac OS ###
|
||||
.DS_Store
|
||||
.DS_Store
|
||||
/.idea/
|
||||
/.idea/
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="com.codeverse.userSettings.MarscodeWorkspaceAppSettingsState">
|
||||
<option name="ckgOperationStatus" value="SUCCESS" />
|
||||
<option name="progress" value="0.8875" />
|
||||
</component>
|
||||
</project>
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
||||
<data-source source="LOCAL" name="@192.168.20.100" uuid="e82e5ed9-b9ad-4ab1-b29c-66b03a6269ff">
|
||||
<driver-ref>mysql.8</driver-ref>
|
||||
<synchronize>true</synchronize>
|
||||
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
|
||||
<jdbc-url>jdbc:mysql://192.168.20.100:33080</jdbc-url>
|
||||
<jdbc-additional-properties>
|
||||
<property name="com.intellij.clouds.kubernetes.db.host.port" />
|
||||
<property name="com.intellij.clouds.kubernetes.db.enabled" value="false" />
|
||||
<property name="com.intellij.clouds.kubernetes.db.container.port" />
|
||||
</jdbc-additional-properties>
|
||||
<working-dir>$ProjectFileDir$</working-dir>
|
||||
</data-source>
|
||||
</component>
|
||||
</project>
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,82 @@
|
|||
package com.zcloud.basic.info.web;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.Response;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.zcloud.basic.info.api.CorpFormServiceI;
|
||||
import com.zcloud.basic.info.dto.CorpFormAddCmd;
|
||||
import com.zcloud.basic.info.dto.CorpFormPageQry;
|
||||
import com.zcloud.basic.info.dto.CorpFormUpdateCmd;
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpFormCO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* web-adapter
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:26
|
||||
*/
|
||||
@Api(tags = "企业信息详情")
|
||||
@RequestMapping("/${application.gateway}/corpForm")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class CorpFormController {
|
||||
private final CorpFormServiceI corpFormService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<CorpFormCO> add(@Validated @RequestBody CorpFormAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return corpFormService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<CorpFormCO> page(@RequestBody CorpFormPageQry qry) {
|
||||
return corpFormService.listPage(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("所有数据")
|
||||
@GetMapping("/listAll")
|
||||
public MultiResponse<CorpFormCO> listAll() {
|
||||
return MultiResponse.of(new ArrayList<CorpFormCO>());
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/{id}")
|
||||
public SingleResponse<CorpFormCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(new CorpFormCO());
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
corpFormService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@DeleteMapping("/ids")
|
||||
public Response removeBatch(@RequestParam Long[] ids) {
|
||||
corpFormService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PutMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody CorpFormUpdateCmd corpFormUpdateCmd) {
|
||||
corpFormService.edit(corpFormUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,92 @@
|
|||
package com.zcloud.basic.info.web;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.Response;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.zcloud.basic.info.api.CorpInfoServiceI;
|
||||
import com.zcloud.basic.info.dto.CorpDepartmentQry;
|
||||
import com.zcloud.basic.info.dto.CorpInfoAddCmd;
|
||||
import com.zcloud.basic.info.dto.CorpInfoPageQry;
|
||||
import com.zcloud.basic.info.dto.CorpInfoUpdateCmd;
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpDepartmentCO;
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpInfoCO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-adapter
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:16
|
||||
*/
|
||||
@Api(tags = "企业信息")
|
||||
@RequestMapping("/${application.gateway}/corpInfo")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class CorpInfoController {
|
||||
private final CorpInfoServiceI corpInfoService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<CorpInfoCO> add(@Validated @RequestBody CorpInfoAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return corpInfoService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<CorpInfoCO> page(@RequestBody CorpInfoPageQry qry) {
|
||||
return corpInfoService.listPage(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("所有数据")
|
||||
@PostMapping("/listAll")
|
||||
public MultiResponse<CorpInfoCO> listAll() {
|
||||
return MultiResponse.of(new ArrayList<CorpInfoCO>());
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@PostMapping("/info/{id}")
|
||||
public SingleResponse<CorpInfoCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(corpInfoService.info(id));
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@PostMapping("/remove/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
corpInfoService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@PostMapping("/ids")
|
||||
public Response removeBatch(@RequestParam Long[] ids) {
|
||||
corpInfoService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PostMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody CorpInfoUpdateCmd corpInfoUpdateCmd) {
|
||||
corpInfoService.edit(corpInfoUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("监管端-分子公司部门管理首页")
|
||||
@PostMapping("/corpDepartlist")
|
||||
public PageResponse<CorpDepartmentCO> corpDepartlist(@Validated @RequestBody CorpDepartmentQry qry) {
|
||||
return corpInfoService.corpDepartlist(qry);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,82 @@
|
|||
package com.zcloud.basic.info.web;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.Response;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.zcloud.basic.info.api.CorpQualificationInfoServiceI;
|
||||
import com.zcloud.basic.info.dto.CorpQualificationInfoAddCmd;
|
||||
import com.zcloud.basic.info.dto.CorpQualificationInfoPageQry;
|
||||
import com.zcloud.basic.info.dto.CorpQualificationInfoUpdateCmd;
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpQualificationInfoCO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* web-adapter
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:45
|
||||
*/
|
||||
@Api(tags = "企业资质信息")
|
||||
@RequestMapping("/${application.gateway}/corpQualificationInfo")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class CorpQualificationInfoController {
|
||||
private final CorpQualificationInfoServiceI corpQualificationInfoService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<CorpQualificationInfoCO> add(@Validated @RequestBody CorpQualificationInfoAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return corpQualificationInfoService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<CorpQualificationInfoCO> page(@RequestBody CorpQualificationInfoPageQry qry) {
|
||||
return corpQualificationInfoService.listPage(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("所有数据")
|
||||
@PostMapping("/listAll")
|
||||
public MultiResponse<CorpQualificationInfoCO> listAll() {
|
||||
return MultiResponse.of(new ArrayList<CorpQualificationInfoCO>());
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@PostMapping("/info/{id}")
|
||||
public SingleResponse<CorpQualificationInfoCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(new CorpQualificationInfoCO());
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@PostMapping("/remove/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
corpQualificationInfoService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@PostMapping("/remove/ids")
|
||||
public Response removeBatch(@RequestParam Long[] ids) {
|
||||
corpQualificationInfoService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PostMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody CorpQualificationInfoUpdateCmd corpQualificationInfoUpdateCmd) {
|
||||
corpQualificationInfoService.edit(corpQualificationInfoUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,90 @@
|
|||
package com.zcloud.basic.info.web;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.Response;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.zcloud.basic.info.api.DepartmentServiceI;
|
||||
import com.zcloud.basic.info.dto.*;
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpDepartmentCO;
|
||||
import com.zcloud.basic.info.dto.clientobject.DepartmentCO;
|
||||
import com.zcloud.basic.info.dto.clientobject.DepartmentTreeInfoCO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-adapter
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:03:19
|
||||
*/
|
||||
@Api(tags = "部门表")
|
||||
@RequestMapping("/${application.gateway}/department")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class DepartmentController {
|
||||
private final DepartmentServiceI departmentService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<DepartmentCO> add(@Validated @RequestBody DepartmentAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return departmentService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<DepartmentCO> page(@Validated @RequestBody DepartmentPageQry qry) {
|
||||
return departmentService.listPage(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("所有数据")
|
||||
@PostMapping("/listAll")
|
||||
public MultiResponse<DepartmentCO> listAll() {
|
||||
return MultiResponse.of(new ArrayList<DepartmentCO>());
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@PostMapping("/info/{id}")
|
||||
public SingleResponse<DepartmentCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(departmentService.info(id));
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@PostMapping("/remove/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
departmentService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@PostMapping("/ids")
|
||||
public Response removeBatch(@RequestParam Long[] ids) {
|
||||
departmentService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PostMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody DepartmentUpdateCmd departmentUpdateCmd) {
|
||||
departmentService.edit(departmentUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
@ApiOperation("所有数据")
|
||||
@PostMapping("/listTree")
|
||||
public List<DepartmentTreeInfoCO> listTree(@Validated @RequestBody DepartmentQry qry) {
|
||||
return departmentService.listTree(qry);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.basic.info.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.basic.info.domain.gateway.CorpFormGateway;
|
||||
import com.zcloud.basic.info.domain.model.CorpFormE;
|
||||
import com.zcloud.basic.info.dto.CorpFormAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:26
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class CorpFormAddExe {
|
||||
private final CorpFormGateway corpFormGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(CorpFormAddCmd cmd) {
|
||||
CorpFormE examTypeE = new CorpFormE();
|
||||
BeanUtils.copyProperties(cmd, examTypeE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = corpFormGateway.add(examTypeE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.basic.info.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.basic.info.domain.gateway.CorpFormGateway;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:27
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class CorpFormRemoveExe {
|
||||
private final CorpFormGateway corpFormGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = corpFormGateway.deletedCorpFormById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = corpFormGateway.deletedCorpFormByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.basic.info.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.basic.info.domain.gateway.CorpFormGateway;
|
||||
import com.zcloud.basic.info.domain.model.CorpFormE;
|
||||
import com.zcloud.basic.info.dto.CorpFormUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:28
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class CorpFormUpdateExe {
|
||||
private final CorpFormGateway corpFormGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(CorpFormUpdateCmd corpFormUpdateCmd) {
|
||||
CorpFormE corpFormE = new CorpFormE();
|
||||
BeanUtils.copyProperties(corpFormUpdateCmd, corpFormE);
|
||||
boolean res = corpFormGateway.update(corpFormE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.basic.info.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.basic.info.domain.gateway.CorpInfoGateway;
|
||||
import com.zcloud.basic.info.domain.model.CorpInfoE;
|
||||
import com.zcloud.basic.info.dto.CorpInfoAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:15
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class CorpInfoAddExe {
|
||||
private final CorpInfoGateway corpInfoGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(CorpInfoAddCmd cmd) {
|
||||
CorpInfoE examTypeE = new CorpInfoE();
|
||||
BeanUtils.copyProperties(cmd, examTypeE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = corpInfoGateway.add(examTypeE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.basic.info.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.basic.info.domain.gateway.CorpInfoGateway;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:17
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class CorpInfoRemoveExe {
|
||||
private final CorpInfoGateway corpInfoGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = corpInfoGateway.deletedCorpInfoById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = corpInfoGateway.deletedCorpInfoByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.basic.info.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.basic.info.domain.gateway.CorpInfoGateway;
|
||||
import com.zcloud.basic.info.domain.model.CorpInfoE;
|
||||
import com.zcloud.basic.info.dto.CorpInfoUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:17
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class CorpInfoUpdateExe {
|
||||
private final CorpInfoGateway corpInfoGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(CorpInfoUpdateCmd corpInfoUpdateCmd) {
|
||||
CorpInfoE corpInfoE = new CorpInfoE();
|
||||
BeanUtils.copyProperties(corpInfoUpdateCmd, corpInfoE);
|
||||
boolean res = corpInfoGateway.update(corpInfoE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
package com.zcloud.basic.info.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.basic.info.domain.gateway.CorpQualificationInfoGateway;
|
||||
import com.zcloud.basic.info.domain.model.CorpQualificationInfoE;
|
||||
import com.zcloud.basic.info.dto.CorpQualificationInfoAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:45
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class CorpQualificationInfoAddExe {
|
||||
private final CorpQualificationInfoGateway corpQualificationInfoGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(CorpQualificationInfoAddCmd cmd) {
|
||||
CorpQualificationInfoE examTypeE = new CorpQualificationInfoE();
|
||||
BeanUtils.copyProperties(cmd, examTypeE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = corpQualificationInfoGateway.add(examTypeE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.basic.info.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.basic.info.domain.gateway.CorpQualificationInfoGateway;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:46
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class CorpQualificationInfoRemoveExe {
|
||||
private final CorpQualificationInfoGateway corpQualificationInfoGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = corpQualificationInfoGateway.deletedCorpQualificationInfoById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = corpQualificationInfoGateway.deletedCorpQualificationInfoByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.basic.info.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.basic.info.domain.gateway.CorpQualificationInfoGateway;
|
||||
import com.zcloud.basic.info.domain.model.CorpQualificationInfoE;
|
||||
import com.zcloud.basic.info.dto.CorpQualificationInfoUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:47
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class CorpQualificationInfoUpdateExe {
|
||||
private final CorpQualificationInfoGateway corpQualificationInfoGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(CorpQualificationInfoUpdateCmd corpQualificationInfoUpdateCmd) {
|
||||
CorpQualificationInfoE corpQualificationInfoE = new CorpQualificationInfoE();
|
||||
BeanUtils.copyProperties(corpQualificationInfoUpdateCmd, corpQualificationInfoE);
|
||||
boolean res = corpQualificationInfoGateway.update(corpQualificationInfoE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,53 @@
|
|||
package com.zcloud.basic.info.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.jjb.saas.system.client.user.facade.UserFacade;
|
||||
import com.jjb.saas.system.client.user.request.FacadeUserAddCmd;
|
||||
import com.zcloud.basic.info.domain.gateway.DepartmentGateway;
|
||||
import com.zcloud.basic.info.domain.model.DepartmentE;
|
||||
import com.zcloud.basic.info.dto.DepartmentAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:03:19
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class DepartmentAddExe {
|
||||
|
||||
private final DepartmentGateway departmentGateway;
|
||||
// @DubboReference
|
||||
// private UserFacade userFacade;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(DepartmentAddCmd cmd) {
|
||||
DepartmentE examTypeE = new DepartmentE();
|
||||
BeanUtils.copyProperties(cmd, examTypeE);
|
||||
|
||||
//a
|
||||
// userFacade.addUser(new FacadeUserAddCmd());
|
||||
// C = examTypeE.add(a,b,c);
|
||||
//TODO 需要调用GBS,新增
|
||||
|
||||
boolean res = false;
|
||||
try {
|
||||
res = departmentGateway.add(examTypeE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
package com.zcloud.basic.info.command;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.basic.info.domain.gateway.DepartmentGateway;
|
||||
import com.zcloud.basic.info.dto.clientobject.DepartmentCO;
|
||||
import com.zcloud.basic.info.persistence.dataobject.DepartmentDO;
|
||||
import com.zcloud.basic.info.persistence.repository.DepartmentRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:03:20
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class DepartmentRemoveExe {
|
||||
private final DepartmentGateway departmentGateway;
|
||||
private final DepartmentRepository departmentRepository;
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
|
||||
// departmentGateway
|
||||
Map<String, Object> parmas =new HashMap<>();
|
||||
parmas.put("eqParentId", id);
|
||||
PageResponse<DepartmentDO> pageResponse = departmentRepository.listPage(parmas);
|
||||
if(CollUtil.isNotEmpty(pageResponse.getData())){
|
||||
throw new BizException("请先删除下级部门");
|
||||
}
|
||||
boolean res = departmentGateway.deletedDepartmentById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = departmentGateway.deletedDepartmentByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.basic.info.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.basic.info.domain.gateway.DepartmentGateway;
|
||||
import com.zcloud.basic.info.domain.model.DepartmentE;
|
||||
import com.zcloud.basic.info.dto.DepartmentUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:03:21
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class DepartmentUpdateExe {
|
||||
private final DepartmentGateway departmentGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(DepartmentUpdateCmd departmentUpdateCmd) {
|
||||
DepartmentE departmentE = new DepartmentE();
|
||||
BeanUtils.copyProperties(departmentUpdateCmd, departmentE);
|
||||
boolean res = departmentGateway.update(departmentE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package com.zcloud.basic.info.command.convertor;
|
||||
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpFormCO;
|
||||
import com.zcloud.basic.info.persistence.dataobject.CorpFormDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:26
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface CorpFormCoConvertor {
|
||||
/**
|
||||
* @param corpFormDOs
|
||||
* @return
|
||||
*/
|
||||
List<CorpFormCO> converDOsToCOs(List<CorpFormDO> corpFormDOs);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.basic.info.command.convertor;
|
||||
|
||||
import com.zcloud.basic.info.domain.model.CorpDepartmentE;
|
||||
import com.zcloud.basic.info.domain.model.DepartmentE;
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpDepartmentCO;
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpInfoCO;
|
||||
import com.zcloud.basic.info.persistence.dataobject.CorpInfoDO;
|
||||
import com.zcloud.basic.info.persistence.dataobject.DepartmentDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:16
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface CorpInfoCoConvertor {
|
||||
/**
|
||||
* @param corpInfoDOs
|
||||
* @return
|
||||
*/
|
||||
List<CorpInfoCO> converDOsToCOs(List<CorpInfoDO> corpInfoDOs);
|
||||
|
||||
List<CorpDepartmentE> converDOsToCorpDepartCOs(List<CorpInfoDO> data);
|
||||
|
||||
List<DepartmentE> converDOsToDepartE(List<DepartmentDO> list);
|
||||
|
||||
List<CorpDepartmentCO> converCorpInfoToCorpDepartCOs(List<CorpDepartmentE> corpInfoList);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package com.zcloud.basic.info.command.convertor;
|
||||
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpQualificationInfoCO;
|
||||
import com.zcloud.basic.info.persistence.dataobject.CorpQualificationInfoDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:45
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface CorpQualificationInfoCoConvertor {
|
||||
/**
|
||||
* @param corpQualificationInfoDOs
|
||||
* @return
|
||||
*/
|
||||
List<CorpQualificationInfoCO> converDOsToCOs(List<CorpQualificationInfoDO> corpQualificationInfoDOs);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.zcloud.basic.info.command.convertor;
|
||||
|
||||
import com.zcloud.basic.info.dto.clientobject.DepartmentCO;
|
||||
import com.zcloud.basic.info.dto.clientobject.DepartmentTreeInfoCO;
|
||||
import com.zcloud.basic.info.persistence.dataobject.DepartmentDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:03:19
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface DepartmentCoConvertor {
|
||||
/**
|
||||
* @param departmentDOs
|
||||
* @return
|
||||
*/
|
||||
List<DepartmentCO> converDOsToCOs(List<DepartmentDO> departmentDOs);
|
||||
|
||||
List<DepartmentTreeInfoCO> converDOsToInfoCOs(List<DepartmentDO> pageResponse);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
package com.zcloud.basic.info.command.query;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.zcloud.basic.info.command.convertor.CorpFormCoConvertor;
|
||||
import com.zcloud.basic.info.dto.CorpFormPageQry;
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpFormCO;
|
||||
import com.zcloud.basic.info.persistence.dataobject.CorpFormDO;
|
||||
import com.zcloud.basic.info.persistence.repository.CorpFormRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:27
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class CorpFormQueryExe {
|
||||
private final CorpFormRepository corpFormRepository;
|
||||
private final CorpFormCoConvertor corpFormCoConvertor;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param corpFormPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<CorpFormCO> execute(CorpFormPageQry corpFormPageQry) {
|
||||
Map<String, Object> parmas = PageQueryHelper.toHashMap(corpFormPageQry);
|
||||
PageResponse<CorpFormDO> pageResponse = corpFormRepository.listPage(parmas);
|
||||
List<CorpFormCO> examCenterCOS = corpFormCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,89 @@
|
|||
package com.zcloud.basic.info.command.query;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.jjb.saas.system.client.tenant.request.TenantAddCmd;
|
||||
import com.zcloud.basic.info.command.convertor.CorpInfoCoConvertor;
|
||||
import com.zcloud.basic.info.domain.model.CorpDepartmentE;
|
||||
import com.zcloud.basic.info.domain.model.CorpInfoE;
|
||||
import com.zcloud.basic.info.domain.model.DepartmentE;
|
||||
import com.zcloud.basic.info.dto.CorpDepartmentQry;
|
||||
import com.zcloud.basic.info.dto.CorpInfoPageQry;
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpDepartmentCO;
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpInfoCO;
|
||||
import com.zcloud.basic.info.persistence.dataobject.CorpInfoDO;
|
||||
import com.zcloud.basic.info.persistence.dataobject.DepartmentDO;
|
||||
import com.zcloud.basic.info.persistence.repository.CorpInfoRepository;
|
||||
import com.zcloud.basic.info.persistence.repository.DepartmentRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:17
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class CorpInfoQueryExe {
|
||||
private final CorpInfoRepository corpInfoRepository;
|
||||
private final CorpInfoCoConvertor corpInfoCoConvertor;
|
||||
private final DepartmentRepository departmentRepository;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param corpInfoPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<CorpInfoCO> execute(CorpInfoPageQry corpInfoPageQry) {
|
||||
Map<String, Object> parmas = PageQueryHelper.toHashMap(corpInfoPageQry);
|
||||
PageResponse<CorpInfoDO> pageResponse = corpInfoRepository.listPage(parmas);
|
||||
List<CorpInfoCO> examCenterCOS = corpInfoCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
|
||||
//TODO
|
||||
//1.查找营业执照图片信息,2.查找四色图图片信息
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
|
||||
public CorpInfoCO info(Long id) {
|
||||
CorpInfoDO corpInfoDO = corpInfoRepository.getById(id);
|
||||
CorpInfoCO corpInfoCO = new CorpInfoCO();
|
||||
BeanUtils.copyProperties(corpInfoDO, corpInfoCO);
|
||||
|
||||
|
||||
return corpInfoCO;
|
||||
}
|
||||
|
||||
public PageResponse<CorpDepartmentCO> corpDepartlist(CorpDepartmentQry corpDepartmentQry) {
|
||||
Map<String, Object> parmas = PageQueryHelper.toHashMap(corpDepartmentQry);
|
||||
PageResponse<CorpInfoDO> pageResponse = corpInfoRepository.listPage(parmas);
|
||||
if(CollUtil.isEmpty(pageResponse.getData())) {
|
||||
return PageResponse.of(Collections.EMPTY_LIST, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
List<CorpDepartmentE> corpInfoList = corpInfoCoConvertor.converDOsToCorpDepartCOs(pageResponse.getData());
|
||||
corpInfoList.forEach(corpInfo -> {
|
||||
Map<String, Object> departParmas = new HashMap<>();
|
||||
departParmas.put("eqCorpinfoId",corpInfo.getId());
|
||||
List<DepartmentDO> list = departmentRepository.listByParams(departParmas);
|
||||
List<DepartmentE> departmentES = corpInfoCoConvertor.converDOsToDepartE(list);
|
||||
|
||||
corpInfo.addDepart(departmentES);
|
||||
|
||||
});
|
||||
|
||||
List<CorpDepartmentCO> corpDepartmentCOList = corpInfoCoConvertor.converCorpInfoToCorpDepartCOs(corpInfoList);
|
||||
return PageResponse.of(corpDepartmentCOList, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
package com.zcloud.basic.info.command.query;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.zcloud.basic.info.command.convertor.CorpQualificationInfoCoConvertor;
|
||||
import com.zcloud.basic.info.dto.CorpQualificationInfoPageQry;
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpQualificationInfoCO;
|
||||
import com.zcloud.basic.info.persistence.dataobject.CorpQualificationInfoDO;
|
||||
import com.zcloud.basic.info.persistence.repository.CorpQualificationInfoRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:46
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class CorpQualificationInfoQueryExe {
|
||||
private final CorpQualificationInfoRepository corpQualificationInfoRepository;
|
||||
private final CorpQualificationInfoCoConvertor corpQualificationInfoCoConvertor;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param corpQualificationInfoPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<CorpQualificationInfoCO> execute(CorpQualificationInfoPageQry corpQualificationInfoPageQry) {
|
||||
Map<String, Object> parmas = PageQueryHelper.toHashMap(corpQualificationInfoPageQry);
|
||||
PageResponse<CorpQualificationInfoDO> pageResponse = corpQualificationInfoRepository.listPage(parmas);
|
||||
List<CorpQualificationInfoCO> examCenterCOS = corpQualificationInfoCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
//TODO 获取图片url信息
|
||||
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,87 @@
|
|||
package com.zcloud.basic.info.command.query;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.zcloud.basic.info.command.convertor.DepartmentCoConvertor;
|
||||
import com.zcloud.basic.info.domain.model.DepartmentE;
|
||||
import com.zcloud.basic.info.dto.CorpDepartmentQry;
|
||||
import com.zcloud.basic.info.dto.DepartmentPageQry;
|
||||
import com.zcloud.basic.info.dto.DepartmentQry;
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpDepartmentCO;
|
||||
import com.zcloud.basic.info.dto.clientobject.DepartmentCO;
|
||||
import com.zcloud.basic.info.dto.clientobject.DepartmentTreeInfoCO;
|
||||
import com.zcloud.basic.info.persistence.dataobject.DepartmentDO;
|
||||
import com.zcloud.basic.info.persistence.repository.DepartmentRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:03:20
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class DepartmentQueryExe {
|
||||
private final DepartmentRepository departmentRepository;
|
||||
private final DepartmentCoConvertor departmentCoConvertor;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param departmentPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<DepartmentCO> execute(DepartmentPageQry departmentPageQry) {
|
||||
Map<String, Object> parmas = PageQueryHelper.toHashMap(departmentPageQry);
|
||||
PageResponse<DepartmentDO> pageResponse = departmentRepository.listPage(parmas);
|
||||
List<DepartmentCO> examCenterCOS = departmentCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
|
||||
public List<DepartmentTreeInfoCO> listTree(DepartmentQry departmentQry) {
|
||||
Map<String, Object> parmas = PageQueryHelper.toHashMap(departmentQry);
|
||||
List<DepartmentDO> pageResponse = departmentRepository.listTree(parmas);
|
||||
if(CollUtil.isEmpty(pageResponse)) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
List<DepartmentTreeInfoCO> examCenterCOS = departmentCoConvertor.converDOsToInfoCOs(pageResponse);
|
||||
Map<Long, List<DepartmentTreeInfoCO>> childrenMap = new HashMap<>();
|
||||
for (DepartmentTreeInfoCO dept : examCenterCOS) {
|
||||
childrenMap
|
||||
.computeIfAbsent(dept.getParentId(), k -> new ArrayList<>())
|
||||
.add(dept);
|
||||
}
|
||||
return buildTree(childrenMap, 0L);
|
||||
}
|
||||
private List<DepartmentTreeInfoCO> buildTree(Map<Long, List<DepartmentTreeInfoCO>> childrenMap, Long parentId) {
|
||||
List<DepartmentTreeInfoCO> nodes = childrenMap.get(parentId);
|
||||
if (nodes == null) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
for (DepartmentTreeInfoCO node : nodes) {
|
||||
// 递归构建子节点
|
||||
List<DepartmentTreeInfoCO> children = buildTree(childrenMap, node.getId());
|
||||
node.setChildrenList(children);
|
||||
}
|
||||
|
||||
return nodes;
|
||||
}
|
||||
|
||||
public DepartmentCO info(Long id) {
|
||||
DepartmentDO info = departmentRepository.getById(id);
|
||||
DepartmentCO departmentCO = new DepartmentCO();
|
||||
BeanUtils.copyProperties(info, departmentCO);
|
||||
return departmentCO;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
package com.zcloud.basic.info.service;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.basic.info.api.CorpFormServiceI;
|
||||
import com.zcloud.basic.info.command.CorpFormAddExe;
|
||||
import com.zcloud.basic.info.command.CorpFormRemoveExe;
|
||||
import com.zcloud.basic.info.command.CorpFormUpdateExe;
|
||||
import com.zcloud.basic.info.command.query.CorpFormQueryExe;
|
||||
import com.zcloud.basic.info.dto.CorpFormAddCmd;
|
||||
import com.zcloud.basic.info.dto.CorpFormPageQry;
|
||||
import com.zcloud.basic.info.dto.CorpFormUpdateCmd;
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpFormCO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:27
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class CorpFormServiceImpl implements CorpFormServiceI {
|
||||
private final CorpFormAddExe corpFormAddExe;
|
||||
private final CorpFormUpdateExe corpFormUpdateExe;
|
||||
private final CorpFormRemoveExe corpFormRemoveExe;
|
||||
private final CorpFormQueryExe corpFormQueryExe;
|
||||
|
||||
@Override
|
||||
public PageResponse<CorpFormCO> listPage(CorpFormPageQry qry) {
|
||||
|
||||
return corpFormQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(CorpFormAddCmd cmd) {
|
||||
|
||||
corpFormAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(CorpFormUpdateCmd corpFormUpdateCmd) {
|
||||
corpFormUpdateExe.execute(corpFormUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
corpFormRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
corpFormRemoveExe.execute(ids);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,73 @@
|
|||
package com.zcloud.basic.info.service;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.basic.info.api.CorpInfoServiceI;
|
||||
import com.zcloud.basic.info.command.CorpInfoAddExe;
|
||||
import com.zcloud.basic.info.command.CorpInfoRemoveExe;
|
||||
import com.zcloud.basic.info.command.CorpInfoUpdateExe;
|
||||
import com.zcloud.basic.info.command.query.CorpInfoQueryExe;
|
||||
import com.zcloud.basic.info.dto.CorpDepartmentQry;
|
||||
import com.zcloud.basic.info.dto.CorpInfoAddCmd;
|
||||
import com.zcloud.basic.info.dto.CorpInfoPageQry;
|
||||
import com.zcloud.basic.info.dto.CorpInfoUpdateCmd;
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpDepartmentCO;
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpInfoCO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:17
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class CorpInfoServiceImpl implements CorpInfoServiceI {
|
||||
private final CorpInfoAddExe corpInfoAddExe;
|
||||
private final CorpInfoUpdateExe corpInfoUpdateExe;
|
||||
private final CorpInfoRemoveExe corpInfoRemoveExe;
|
||||
private final CorpInfoQueryExe corpInfoQueryExe;
|
||||
|
||||
@Override
|
||||
public PageResponse<CorpInfoCO> listPage(CorpInfoPageQry qry) {
|
||||
|
||||
return corpInfoQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(CorpInfoAddCmd cmd) {
|
||||
|
||||
corpInfoAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(CorpInfoUpdateCmd corpInfoUpdateCmd) {
|
||||
corpInfoUpdateExe.execute(corpInfoUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
corpInfoRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
corpInfoRemoveExe.execute(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CorpInfoCO info(Long id) {
|
||||
return corpInfoQueryExe.info(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResponse<CorpDepartmentCO> corpDepartlist(CorpDepartmentQry qry) {
|
||||
return corpInfoQueryExe.corpDepartlist(qry);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
package com.zcloud.basic.info.service;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.basic.info.api.CorpQualificationInfoServiceI;
|
||||
import com.zcloud.basic.info.command.CorpQualificationInfoAddExe;
|
||||
import com.zcloud.basic.info.command.CorpQualificationInfoRemoveExe;
|
||||
import com.zcloud.basic.info.command.CorpQualificationInfoUpdateExe;
|
||||
import com.zcloud.basic.info.command.query.CorpQualificationInfoQueryExe;
|
||||
import com.zcloud.basic.info.dto.CorpQualificationInfoAddCmd;
|
||||
import com.zcloud.basic.info.dto.CorpQualificationInfoPageQry;
|
||||
import com.zcloud.basic.info.dto.CorpQualificationInfoUpdateCmd;
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpQualificationInfoCO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:46
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class CorpQualificationInfoServiceImpl implements CorpQualificationInfoServiceI {
|
||||
private final CorpQualificationInfoAddExe corpQualificationInfoAddExe;
|
||||
private final CorpQualificationInfoUpdateExe corpQualificationInfoUpdateExe;
|
||||
private final CorpQualificationInfoRemoveExe corpQualificationInfoRemoveExe;
|
||||
private final CorpQualificationInfoQueryExe corpQualificationInfoQueryExe;
|
||||
|
||||
@Override
|
||||
public PageResponse<CorpQualificationInfoCO> listPage(CorpQualificationInfoPageQry qry) {
|
||||
|
||||
return corpQualificationInfoQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(CorpQualificationInfoAddCmd cmd) {
|
||||
|
||||
corpQualificationInfoAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(CorpQualificationInfoUpdateCmd corpQualificationInfoUpdateCmd) {
|
||||
corpQualificationInfoUpdateExe.execute(corpQualificationInfoUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
corpQualificationInfoRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
corpQualificationInfoRemoveExe.execute(ids);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,74 @@
|
|||
package com.zcloud.basic.info.service;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.basic.info.api.DepartmentServiceI;
|
||||
import com.zcloud.basic.info.command.DepartmentAddExe;
|
||||
import com.zcloud.basic.info.command.DepartmentRemoveExe;
|
||||
import com.zcloud.basic.info.command.DepartmentUpdateExe;
|
||||
import com.zcloud.basic.info.command.query.DepartmentQueryExe;
|
||||
import com.zcloud.basic.info.dto.*;
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpDepartmentCO;
|
||||
import com.zcloud.basic.info.dto.clientobject.DepartmentCO;
|
||||
import com.zcloud.basic.info.dto.clientobject.DepartmentTreeInfoCO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.checkerframework.checker.units.qual.A;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:03:21
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class DepartmentServiceImpl implements DepartmentServiceI {
|
||||
private final DepartmentAddExe departmentAddExe;
|
||||
private final DepartmentUpdateExe departmentUpdateExe;
|
||||
private final DepartmentRemoveExe departmentRemoveExe;
|
||||
private final DepartmentQueryExe departmentQueryExe;
|
||||
|
||||
@Override
|
||||
public PageResponse<DepartmentCO> listPage(DepartmentPageQry qry) {
|
||||
|
||||
return departmentQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(DepartmentAddCmd cmd) {
|
||||
|
||||
departmentAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(DepartmentUpdateCmd departmentUpdateCmd) {
|
||||
departmentUpdateExe.execute(departmentUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
departmentRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
departmentRemoveExe.execute(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<DepartmentTreeInfoCO> listTree(DepartmentQry qry) {
|
||||
return departmentQueryExe.listTree(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DepartmentCO info(Long id) {
|
||||
return departmentQueryExe.info(id);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.zcloud.basic.info.api;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.basic.info.dto.CorpFormAddCmd;
|
||||
import com.zcloud.basic.info.dto.CorpFormPageQry;
|
||||
import com.zcloud.basic.info.dto.CorpFormUpdateCmd;
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpFormCO;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 09:53:54
|
||||
*/
|
||||
public interface CorpFormServiceI {
|
||||
PageResponse<CorpFormCO> listPage(CorpFormPageQry qry);
|
||||
|
||||
SingleResponse<CorpFormCO> add(CorpFormAddCmd cmd);
|
||||
|
||||
void edit(CorpFormUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
package com.zcloud.basic.info.api;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.basic.info.dto.CorpDepartmentQry;
|
||||
import com.zcloud.basic.info.dto.CorpInfoAddCmd;
|
||||
import com.zcloud.basic.info.dto.CorpInfoPageQry;
|
||||
import com.zcloud.basic.info.dto.CorpInfoUpdateCmd;
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpDepartmentCO;
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpInfoCO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 09:54:10
|
||||
*/
|
||||
public interface CorpInfoServiceI {
|
||||
PageResponse<CorpInfoCO> listPage(CorpInfoPageQry qry);
|
||||
|
||||
SingleResponse<CorpInfoCO> add(CorpInfoAddCmd cmd);
|
||||
|
||||
void edit(CorpInfoUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
|
||||
CorpInfoCO info(Long id);
|
||||
|
||||
PageResponse<CorpDepartmentCO> corpDepartlist(CorpDepartmentQry qry);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.zcloud.basic.info.api;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.basic.info.dto.CorpQualificationInfoAddCmd;
|
||||
import com.zcloud.basic.info.dto.CorpQualificationInfoPageQry;
|
||||
import com.zcloud.basic.info.dto.CorpQualificationInfoUpdateCmd;
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpQualificationInfoCO;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 09:54:17
|
||||
*/
|
||||
public interface CorpQualificationInfoServiceI {
|
||||
PageResponse<CorpQualificationInfoCO> listPage(CorpQualificationInfoPageQry qry);
|
||||
|
||||
SingleResponse<CorpQualificationInfoCO> add(CorpQualificationInfoAddCmd cmd);
|
||||
|
||||
void edit(CorpQualificationInfoUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.basic.info.api;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.basic.info.dto.*;
|
||||
import com.zcloud.basic.info.dto.clientobject.CorpDepartmentCO;
|
||||
import com.zcloud.basic.info.dto.clientobject.DepartmentCO;
|
||||
import com.zcloud.basic.info.dto.clientobject.DepartmentTreeInfoCO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 09:54:26
|
||||
*/
|
||||
public interface DepartmentServiceI {
|
||||
PageResponse<DepartmentCO> listPage(DepartmentPageQry qry);
|
||||
|
||||
SingleResponse<DepartmentCO> add(DepartmentAddCmd cmd);
|
||||
|
||||
void edit(DepartmentUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
|
||||
List<DepartmentTreeInfoCO> listTree(DepartmentQry qry);
|
||||
|
||||
DepartmentCO info(Long id);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
package com.zcloud.basic.info.dto;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 10:10:48
|
||||
*/
|
||||
@Data
|
||||
public class CorpDepartmentQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
/**
|
||||
* 名称模糊查询
|
||||
*/
|
||||
@ApiModelProperty(value = "分公司名称", name = "likeCorpName")
|
||||
private String likeCorpName;
|
||||
|
||||
@ApiModelProperty(value = "分公司状态编码", name = "eqCorpStateCode")
|
||||
private String eqCorpStateCode;
|
||||
|
||||
@ApiModelProperty(value = "是否启用,1:启用,2:关闭", name = "eqIsUse")
|
||||
private String eqIsUse;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,85 @@
|
|||
package com.zcloud.basic.info.dto;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 09:53:53
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class CorpFormAddCmd extends Command {
|
||||
@ApiModelProperty(value = "主键id", name = "id", required = true)
|
||||
@NotEmpty(message = "主键id不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "信息主键", name = "corpFormId", required = true)
|
||||
@NotEmpty(message = "信息主键不能为空")
|
||||
private String corpFormId;
|
||||
@ApiModelProperty(value = "外键id", name = "infoId", required = true)
|
||||
@NotEmpty(message = "外键id不能为空")
|
||||
private Long infoId;
|
||||
@ApiModelProperty(value = "类型,参考枚举corpformtype", name = "type", required = true)
|
||||
@NotEmpty(message = "类型,参考枚举corpformtype不能为空")
|
||||
private Integer type;
|
||||
@ApiModelProperty(value = "类型名称", name = "typeName", required = true)
|
||||
@NotEmpty(message = "类型名称不能为空")
|
||||
private String typeName;
|
||||
@ApiModelProperty(value = "数据字典编码", name = "itemCode", required = true)
|
||||
@NotEmpty(message = "数据字典编码不能为空")
|
||||
private String itemCode;
|
||||
@ApiModelProperty(value = "数据字典名称", name = "itemName", required = true)
|
||||
@NotEmpty(message = "数据字典名称不能为空")
|
||||
private String itemName;
|
||||
@ApiModelProperty(value = "排序", name = "itemOrder", required = true)
|
||||
@NotEmpty(message = "排序不能为空")
|
||||
private Integer itemOrder;
|
||||
@ApiModelProperty(value = "乐观锁", name = "version", required = true)
|
||||
@NotEmpty(message = "乐观锁不能为空")
|
||||
private Integer version;
|
||||
@ApiModelProperty(value = "创建人", name = "createId", required = true)
|
||||
@NotEmpty(message = "创建人不能为空")
|
||||
private Long createId;
|
||||
@ApiModelProperty(value = "创建人姓名", name = "createName", required = true)
|
||||
@NotEmpty(message = "创建人姓名不能为空")
|
||||
private String createName;
|
||||
@ApiModelProperty(value = "创建时间", name = "createTime", required = true)
|
||||
@NotEmpty(message = "创建时间不能为空")
|
||||
private LocalDateTime createTime;
|
||||
@ApiModelProperty(value = "更新人", name = "updateId", required = true)
|
||||
@NotEmpty(message = "更新人不能为空")
|
||||
private Long updateId;
|
||||
@ApiModelProperty(value = "修改人名称", name = "updateName", required = true)
|
||||
@NotEmpty(message = "修改人名称不能为空")
|
||||
private String updateName;
|
||||
@ApiModelProperty(value = "更新时间", name = "updateTime", required = true)
|
||||
@NotEmpty(message = "更新时间不能为空")
|
||||
private LocalDateTime updateTime;
|
||||
@ApiModelProperty(value = "描述", name = "remarks", required = true)
|
||||
@NotEmpty(message = "描述不能为空")
|
||||
private String remarks;
|
||||
@ApiModelProperty(value = "是否删除", name = "deleteEnum", required = true)
|
||||
@NotEmpty(message = "是否删除不能为空")
|
||||
private String deleteEnum;
|
||||
@ApiModelProperty(value = "租户ID", name = "tenantId", required = true)
|
||||
@NotEmpty(message = "租户ID不能为空")
|
||||
private Long tenantId;
|
||||
@ApiModelProperty(value = "机构ID", name = "orgId", required = true)
|
||||
@NotEmpty(message = "机构ID不能为空")
|
||||
private Long orgId;
|
||||
@ApiModelProperty(value = "环境", name = "env", required = true)
|
||||
@NotEmpty(message = "环境不能为空")
|
||||
private String env;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package com.zcloud.basic.info.dto;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 09:53:53
|
||||
*/
|
||||
@Data
|
||||
public class CorpFormPageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
private String likeCorpFormId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,85 @@
|
|||
package com.zcloud.basic.info.dto;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 09:53:54
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class CorpFormUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "主键id", name = "id", required = true)
|
||||
@NotEmpty(message = "主键id不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "信息主键", name = "corpFormId", required = true)
|
||||
@NotEmpty(message = "信息主键不能为空")
|
||||
private String corpFormId;
|
||||
@ApiModelProperty(value = "外键id", name = "infoId", required = true)
|
||||
@NotEmpty(message = "外键id不能为空")
|
||||
private Long infoId;
|
||||
@ApiModelProperty(value = "类型,参考枚举corpformtype", name = "type", required = true)
|
||||
@NotEmpty(message = "类型,参考枚举corpformtype不能为空")
|
||||
private Integer type;
|
||||
@ApiModelProperty(value = "类型名称", name = "typeName", required = true)
|
||||
@NotEmpty(message = "类型名称不能为空")
|
||||
private String typeName;
|
||||
@ApiModelProperty(value = "数据字典编码", name = "itemCode", required = true)
|
||||
@NotEmpty(message = "数据字典编码不能为空")
|
||||
private String itemCode;
|
||||
@ApiModelProperty(value = "数据字典名称", name = "itemName", required = true)
|
||||
@NotEmpty(message = "数据字典名称不能为空")
|
||||
private String itemName;
|
||||
@ApiModelProperty(value = "排序", name = "itemOrder", required = true)
|
||||
@NotEmpty(message = "排序不能为空")
|
||||
private Integer itemOrder;
|
||||
@ApiModelProperty(value = "乐观锁", name = "version", required = true)
|
||||
@NotEmpty(message = "乐观锁不能为空")
|
||||
private Integer version;
|
||||
@ApiModelProperty(value = "创建人", name = "createId", required = true)
|
||||
@NotEmpty(message = "创建人不能为空")
|
||||
private Long createId;
|
||||
@ApiModelProperty(value = "创建人姓名", name = "createName", required = true)
|
||||
@NotEmpty(message = "创建人姓名不能为空")
|
||||
private String createName;
|
||||
@ApiModelProperty(value = "创建时间", name = "createTime", required = true)
|
||||
@NotEmpty(message = "创建时间不能为空")
|
||||
private LocalDateTime createTime;
|
||||
@ApiModelProperty(value = "更新人", name = "updateId", required = true)
|
||||
@NotEmpty(message = "更新人不能为空")
|
||||
private Long updateId;
|
||||
@ApiModelProperty(value = "修改人名称", name = "updateName", required = true)
|
||||
@NotEmpty(message = "修改人名称不能为空")
|
||||
private String updateName;
|
||||
@ApiModelProperty(value = "更新时间", name = "updateTime", required = true)
|
||||
@NotEmpty(message = "更新时间不能为空")
|
||||
private LocalDateTime updateTime;
|
||||
@ApiModelProperty(value = "描述", name = "remarks", required = true)
|
||||
@NotEmpty(message = "描述不能为空")
|
||||
private String remarks;
|
||||
@ApiModelProperty(value = "是否删除", name = "deleteEnum", required = true)
|
||||
@NotEmpty(message = "是否删除不能为空")
|
||||
private String deleteEnum;
|
||||
@ApiModelProperty(value = "租户ID", name = "tenantId", required = true)
|
||||
@NotEmpty(message = "租户ID不能为空")
|
||||
private Long tenantId;
|
||||
@ApiModelProperty(value = "机构ID", name = "orgId", required = true)
|
||||
@NotEmpty(message = "机构ID不能为空")
|
||||
private Long orgId;
|
||||
@ApiModelProperty(value = "环境", name = "env", required = true)
|
||||
@NotEmpty(message = "环境不能为空")
|
||||
private String env;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,167 @@
|
|||
package com.zcloud.basic.info.dto;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.codehaus.jackson.annotate.JsonProperty;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 15:12:49
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class CorpInfoAddCmd extends Command {
|
||||
|
||||
@ApiModelProperty(value = "企业id", name = "corpinfoId", required = true)
|
||||
private String corpinfoId;
|
||||
@ApiModelProperty(value = "企业名称", name = "corpName", required = true)
|
||||
private String corpName;
|
||||
@ApiModelProperty(value = "企业类型(0-普通企业,1-集团单位,2-股份单位,3-相关方企业,4-货主单位,5-驻港单位)", name = "type", required = true)
|
||||
private Integer type;
|
||||
@ApiModelProperty(value = "相关方等级,1 一级相关方,2 二级相关方", name = "xgfLevel", required = true)
|
||||
private Integer xgfLevel;
|
||||
@ApiModelProperty(value = "企业再列表中的排序", name = "corOrder", required = true)
|
||||
private Integer corOrder;
|
||||
@ApiModelProperty(value = "是否启用,1:启用,2:关闭", name = "isUse", required = true)
|
||||
private Integer isUse;
|
||||
@ApiModelProperty(value = "统一社会信用代码", name = "code", required = true)
|
||||
private String code;
|
||||
@ApiModelProperty(value = "通讯地址", name = "address", required = true)
|
||||
private String address;
|
||||
@ApiModelProperty(value = "邮编", name = "postalCode", required = true)
|
||||
private String postalCode;
|
||||
@ApiModelProperty(value = "所属区域", name = "companyArea", required = true)
|
||||
private String companyArea;
|
||||
@ApiModelProperty(value = "开始服务日期", name = "firstServeDate", required = true)
|
||||
private String firstServeDate;
|
||||
@ApiModelProperty(value = "规模", name = "scale", required = true)
|
||||
private String scale;
|
||||
@ApiModelProperty(value = "成立时间", name = "createDate", required = true)
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime createDate;
|
||||
@ApiModelProperty(value = "企业状态", name = "corpState", required = true)
|
||||
private String corpState;
|
||||
@ApiModelProperty(value = "企业状态编码", name = "corpStateCode", required = true)
|
||||
private String corpStateCode;
|
||||
@ApiModelProperty(value = "资产总额(万元)", name = "totalassets", required = true)
|
||||
private Double totalassets;
|
||||
@ApiModelProperty(value = "注册资金(万元)", name = "regcapital", required = true)
|
||||
private BigDecimal regcapital;
|
||||
@ApiModelProperty(value = "企事业单位经营地址", name = "addressBusiness", required = true)
|
||||
private String addressBusiness;
|
||||
@ApiModelProperty(value = "企事业单位办公地址", name = "addressOffice", required = true)
|
||||
private String addressOffice;
|
||||
@ApiModelProperty(value = "固定资产", name = "fixedAssets", required = true)
|
||||
private Double fixedAssets;
|
||||
@ApiModelProperty(value = "年产值", name = "yearOutputValue", required = true)
|
||||
private Double yearOutputValue;
|
||||
@ApiModelProperty(value = "经济类型", name = "ecoType", required = true)
|
||||
private String ecoType;
|
||||
@ApiModelProperty(value = "主要负责人", name = "contacts", required = true)
|
||||
private String contacts;
|
||||
@ApiModelProperty(value = "主要负责人手机号", name = "contactsPhone", required = true)
|
||||
private String contactsPhone;
|
||||
@ApiModelProperty(value = "安全负责人", name = "safetyName", required = true)
|
||||
private String safetyName;
|
||||
@ApiModelProperty(value = "安全负责人手机号", name = "safetyPhone", required = true)
|
||||
private String safetyPhone;
|
||||
@ApiModelProperty(value = "是否规模以上,1:是,2:否", name = "scaleType", required = true)
|
||||
private Integer scaleType;
|
||||
@ApiModelProperty(value = "占地面积", name = "areaCovered", required = true)
|
||||
private Double areaCovered;
|
||||
@ApiModelProperty(value = "职工人数", name = "employees", required = true)
|
||||
private Integer employees;
|
||||
@ApiModelProperty(value = "经度", name = "longitude", required = true)
|
||||
private String longitude;
|
||||
@ApiModelProperty(value = "纬度", name = "latitude", required = true)
|
||||
private String latitude;
|
||||
@ApiModelProperty(value = "单位注册登记类型", name = "regType", required = true)
|
||||
private String regType;
|
||||
@ApiModelProperty(value = "行业监管部门", name = "industryDepartment", required = true)
|
||||
private String industryDepartment;
|
||||
@ApiModelProperty(value = "法定代表人", name = "lrName", required = true)
|
||||
private String lrName;
|
||||
@ApiModelProperty(value = "法人手机号", name = "lrMobile", required = true)
|
||||
private String lrMobile;
|
||||
@ApiModelProperty(value = "行业分类", name = "corpType", required = true)
|
||||
private String corpType;
|
||||
@ApiModelProperty(value = "行业分类名称", name = "corpTypeName", required = true)
|
||||
private String corpTypeName;
|
||||
@ApiModelProperty(value = "行业分类", name = "corpType2", required = true)
|
||||
private String corpType2;
|
||||
@ApiModelProperty(value = "行业分类名称", name = "corpType2Name", required = true)
|
||||
private String corpType2Name;
|
||||
@ApiModelProperty(value = "行业分类", name = "corpType3", required = true)
|
||||
private String corpType3;
|
||||
@ApiModelProperty(value = "行业分类名称", name = "corpType3Name", required = true)
|
||||
private String corpType3Name;
|
||||
@ApiModelProperty(value = "行业分类", name = "corpType4", required = true)
|
||||
private String corpType4;
|
||||
@ApiModelProperty(value = "行业分类名称", name = "corpType4Name", required = true)
|
||||
private String corpType4Name;
|
||||
@ApiModelProperty(value = "所属省名称", name = "provinceName", required = true)
|
||||
private String provinceName;
|
||||
@ApiModelProperty(value = "所属省编码", name = "province", required = true)
|
||||
private String province;
|
||||
@ApiModelProperty(value = "所属市级名称", name = "cityName", required = true)
|
||||
private String cityName;
|
||||
@ApiModelProperty(value = "所属市级编码", name = "city", required = true)
|
||||
private String city;
|
||||
@ApiModelProperty(value = "所属区县名称", name = "countryName", required = true)
|
||||
private String countryName;
|
||||
@ApiModelProperty(value = "所属区县编码", name = "country", required = true)
|
||||
private String country;
|
||||
@ApiModelProperty(value = "所属乡镇名称", name = "villageName", required = true)
|
||||
private String villageName;
|
||||
@ApiModelProperty(value = "所属乡镇编码", name = "village", required = true)
|
||||
private String village;
|
||||
@ApiModelProperty(value = "所属街道名称", name = "streetName", required = true)
|
||||
private String streetName;
|
||||
@ApiModelProperty(value = "所属街道编码", name = "street", required = true)
|
||||
private String street;
|
||||
@ApiModelProperty(value = "公司简介", name = "descr", required = true)
|
||||
private String descr;
|
||||
@ApiModelProperty(value = "有无职业卫生信息,1:是,2:否", name = "whetherHygiene", required = true)
|
||||
private Integer whetherHygiene;
|
||||
@ApiModelProperty(value = "有无重大危险源,1:是,2:否", name = "whetherHazards", required = true)
|
||||
private Integer whetherHazards;
|
||||
@ApiModelProperty(value = "是否有稀缺大型应急物资或设施,1:是,2:否", name = "whetherScarce", required = true)
|
||||
private Integer whetherScarce;
|
||||
@ApiModelProperty(value = "是否涉及危化品,1:是,2:否", name = "whetherChemicals", required = true)
|
||||
private Integer whetherChemicals;
|
||||
@ApiModelProperty(value = "有无特种设备,1:是,2:否", name = "whetherSpecialequipment", required = true)
|
||||
private Integer whetherSpecialequipment;
|
||||
@ApiModelProperty(value = "有无特存种作业人员,1:是,2:否", name = "whetherSpecialpeople", required = true)
|
||||
private Integer whetherSpecialpeople;
|
||||
@ApiModelProperty(value = "是否涉及煤气,1:是,2:否", name = "whetherCoalgas", required = true)
|
||||
private Integer whetherCoalgas;
|
||||
@ApiModelProperty(value = "是否属于消防重点单位,1:是,2:否", name = "whetherFire", required = true)
|
||||
private Integer whetherFire;
|
||||
@ApiModelProperty(value = "是否在有限空间作业,1:是,2:否", name = "whetherConfined", required = true)
|
||||
private Integer whetherConfined;
|
||||
@ApiModelProperty(value = "是否存在涉爆粉尘作业,1:是,2:否", name = "whetherPowder", required = true)
|
||||
private Integer whetherPowder;
|
||||
@ApiModelProperty(value = "是否涉及防雷防静电,1:是,2:否", name = "whetherLightning", required = true)
|
||||
private Integer whetherLightning;
|
||||
@ApiModelProperty(value = "是否涉及危化品管道,1:是,2:否", name = "whetherPipeline", required = true)
|
||||
private Integer whetherPipeline;
|
||||
@ApiModelProperty(value = "是否持有放射源,1:是,2:否", name = "whetherActinogen", required = true)
|
||||
private Integer whetherActinogen;
|
||||
@ApiModelProperty(value = "是否涉及液氨制冷,1:是,2:否", name = "whetherLiquidammonia", required = true)
|
||||
private Integer whetherLiquidammonia;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package com.zcloud.basic.info.dto;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 15:12:50
|
||||
*/
|
||||
@Data
|
||||
public class CorpInfoPageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
private String likeCorpinfoId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,168 @@
|
|||
package com.zcloud.basic.info.dto;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 15:12:50
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class CorpInfoUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "主键", name = "id", required = true)
|
||||
@NotNull(message = "主键不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "企业id", name = "corpinfoId", required = true)
|
||||
private String corpinfoId;
|
||||
@ApiModelProperty(value = "企业名称", name = "corpName", required = true)
|
||||
@NotEmpty(message = "企业名称不能为空")
|
||||
private String corpName;
|
||||
@ApiModelProperty(value = "企业类型(0-普通企业,1-集团单位,2-股份单位,3-相关方企业,4-货主单位,5-驻港单位)", name = "type", required = true)
|
||||
private Integer type;
|
||||
@ApiModelProperty(value = "相关方等级,1 一级相关方,2 二级相关方", name = "xgfLevel", required = true)
|
||||
private Integer xgfLevel;
|
||||
@ApiModelProperty(value = "企业再列表中的排序", name = "corOrder", required = true)
|
||||
private Integer corOrder;
|
||||
@ApiModelProperty(value = "是否启用,1:启用,2:关闭", name = "isUse", required = true)
|
||||
private Integer isUse;
|
||||
@ApiModelProperty(value = "统一社会信用代码", name = "code", required = true)
|
||||
private String code;
|
||||
@ApiModelProperty(value = "通讯地址", name = "address", required = true)
|
||||
private String address;
|
||||
@ApiModelProperty(value = "邮编", name = "postalCode", required = true)
|
||||
private String postalCode;
|
||||
@ApiModelProperty(value = "所属区域", name = "companyArea", required = true)
|
||||
private String companyArea;
|
||||
@ApiModelProperty(value = "开始服务日期", name = "firstServeDate", required = true)
|
||||
private String firstServeDate;
|
||||
@ApiModelProperty(value = "规模", name = "scale", required = true)
|
||||
private String scale;
|
||||
@ApiModelProperty(value = "成立时间", name = "createDate", required = true)
|
||||
private LocalDateTime createDate;
|
||||
@ApiModelProperty(value = "企业状态", name = "corpState", required = true)
|
||||
private String corpState;
|
||||
@ApiModelProperty(value = "企业状态编码", name = "corpStateCode", required = true)
|
||||
private String corpStateCode;
|
||||
@ApiModelProperty(value = "资产总额(万元)", name = "totalassets", required = true)
|
||||
private Double totalassets;
|
||||
@ApiModelProperty(value = "注册资金(万元)", name = "regcapital", required = true)
|
||||
private BigDecimal regcapital;
|
||||
@ApiModelProperty(value = "企事业单位经营地址", name = "addressBusiness", required = true)
|
||||
private String addressBusiness;
|
||||
@ApiModelProperty(value = "企事业单位办公地址", name = "addressOffice", required = true)
|
||||
private String addressOffice;
|
||||
@ApiModelProperty(value = "固定资产", name = "fixedAssets", required = true)
|
||||
private Double fixedAssets;
|
||||
@ApiModelProperty(value = "年产值", name = "yearOutputValue", required = true)
|
||||
private Double yearOutputValue;
|
||||
@ApiModelProperty(value = "经济类型", name = "ecoType", required = true)
|
||||
private String ecoType;
|
||||
@ApiModelProperty(value = "主要负责人", name = "contacts", required = true)
|
||||
private String contacts;
|
||||
@ApiModelProperty(value = "主要负责人手机号", name = "contactsPhone", required = true)
|
||||
private String contactsPhone;
|
||||
@ApiModelProperty(value = "安全负责人", name = "safetyName", required = true)
|
||||
private String safetyName;
|
||||
@ApiModelProperty(value = "安全负责人手机号", name = "safetyPhone", required = true)
|
||||
private String safetyPhone;
|
||||
@ApiModelProperty(value = "是否规模以上,1:是,2:否", name = "scaleType", required = true)
|
||||
private Integer scaleType;
|
||||
@ApiModelProperty(value = "占地面积", name = "areaCovered", required = true)
|
||||
private Double areaCovered;
|
||||
@ApiModelProperty(value = "职工人数", name = "employees", required = true)
|
||||
private Integer employees;
|
||||
@ApiModelProperty(value = "经度", name = "longitude", required = true)
|
||||
private String longitude;
|
||||
@ApiModelProperty(value = "纬度", name = "latitude", required = true)
|
||||
private String latitude;
|
||||
@ApiModelProperty(value = "单位注册登记类型", name = "regType", required = true)
|
||||
private String regType;
|
||||
@ApiModelProperty(value = "行业监管部门", name = "industryDepartment", required = true)
|
||||
private String industryDepartment;
|
||||
@ApiModelProperty(value = "法定代表人", name = "lrName", required = true)
|
||||
private String lrName;
|
||||
@ApiModelProperty(value = "法人手机号", name = "lrMobile", required = true)
|
||||
private String lrMobile;
|
||||
@ApiModelProperty(value = "行业分类", name = "corpType", required = true)
|
||||
private String corpType;
|
||||
@ApiModelProperty(value = "行业分类名称", name = "corpTypeName", required = true)
|
||||
private String corpTypeName;
|
||||
@ApiModelProperty(value = "行业分类", name = "corpType2", required = true)
|
||||
private String corpType2;
|
||||
@ApiModelProperty(value = "行业分类名称", name = "corpType2Name", required = true)
|
||||
private String corpType2Name;
|
||||
@ApiModelProperty(value = "行业分类", name = "corpType3", required = true)
|
||||
private String corpType3;
|
||||
@ApiModelProperty(value = "行业分类名称", name = "corpType3Name", required = true)
|
||||
private String corpType3Name;
|
||||
@ApiModelProperty(value = "行业分类", name = "corpType4", required = true)
|
||||
private String corpType4;
|
||||
@ApiModelProperty(value = "行业分类名称", name = "corpType4Name", required = true)
|
||||
private String corpType4Name;
|
||||
@ApiModelProperty(value = "所属省名称", name = "provinceName", required = true)
|
||||
private String provinceName;
|
||||
@ApiModelProperty(value = "所属省编码", name = "province", required = true)
|
||||
private String province;
|
||||
@ApiModelProperty(value = "所属市级名称", name = "cityName", required = true)
|
||||
private String cityName;
|
||||
@ApiModelProperty(value = "所属市级编码", name = "city", required = true)
|
||||
private String city;
|
||||
@ApiModelProperty(value = "所属区县名称", name = "countryName", required = true)
|
||||
private String countryName;
|
||||
@ApiModelProperty(value = "所属区县编码", name = "country", required = true)
|
||||
private String country;
|
||||
@ApiModelProperty(value = "所属乡镇名称", name = "villageName", required = true)
|
||||
private String villageName;
|
||||
@ApiModelProperty(value = "所属乡镇编码", name = "village", required = true)
|
||||
private String village;
|
||||
@ApiModelProperty(value = "所属街道名称", name = "streetName", required = true)
|
||||
private String streetName;
|
||||
@ApiModelProperty(value = "所属街道编码", name = "street", required = true)
|
||||
private String street;
|
||||
@ApiModelProperty(value = "公司简介", name = "descr", required = true)
|
||||
private String descr;
|
||||
@ApiModelProperty(value = "有无职业卫生信息,1:是,2:否", name = "whetherHygiene", required = true)
|
||||
private Integer whetherHygiene;
|
||||
@ApiModelProperty(value = "有无重大危险源,1:是,2:否", name = "whetherHazards", required = true)
|
||||
private Integer whetherHazards;
|
||||
@ApiModelProperty(value = "是否有稀缺大型应急物资或设施,1:是,2:否", name = "whetherScarce", required = true)
|
||||
private Integer whetherScarce;
|
||||
@ApiModelProperty(value = "是否涉及危化品,1:是,2:否", name = "whetherChemicals", required = true)
|
||||
private Integer whetherChemicals;
|
||||
@ApiModelProperty(value = "有无特种设备,1:是,2:否", name = "whetherSpecialequipment", required = true)
|
||||
private Integer whetherSpecialequipment;
|
||||
@ApiModelProperty(value = "有无特存种作业人员,1:是,2:否", name = "whetherSpecialpeople", required = true)
|
||||
private Integer whetherSpecialpeople;
|
||||
@ApiModelProperty(value = "是否涉及煤气,1:是,2:否", name = "whetherCoalgas", required = true)
|
||||
private Integer whetherCoalgas;
|
||||
@ApiModelProperty(value = "是否属于消防重点单位,1:是,2:否", name = "whetherFire", required = true)
|
||||
private Integer whetherFire;
|
||||
@ApiModelProperty(value = "是否在有限空间作业,1:是,2:否", name = "whetherConfined", required = true)
|
||||
private Integer whetherConfined;
|
||||
@ApiModelProperty(value = "是否存在涉爆粉尘作业,1:是,2:否", name = "whetherPowder", required = true)
|
||||
private Integer whetherPowder;
|
||||
@ApiModelProperty(value = "是否涉及防雷防静电,1:是,2:否", name = "whetherLightning", required = true)
|
||||
private Integer whetherLightning;
|
||||
@ApiModelProperty(value = "是否涉及危化品管道,1:是,2:否", name = "whetherPipeline", required = true)
|
||||
private Integer whetherPipeline;
|
||||
@ApiModelProperty(value = "是否持有放射源,1:是,2:否", name = "whetherActinogen", required = true)
|
||||
private Integer whetherActinogen;
|
||||
@ApiModelProperty(value = "是否涉及液氨制冷,1:是,2:否", name = "whetherLiquidammonia", required = true)
|
||||
private Integer whetherLiquidammonia;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
package com.zcloud.basic.info.dto;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.codehaus.jackson.annotate.JsonProperty;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 09:54:16
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class CorpQualificationInfoAddCmd extends Command {
|
||||
|
||||
@ApiModelProperty(value = "资质id", name = "corpQualificationinfoId", required = true)
|
||||
private String corpQualificationinfoId;
|
||||
@ApiModelProperty(value = "企业id", name = "corpinfoId", required = true)
|
||||
@NotNull(message = "企业id不能为空")
|
||||
private Long corpinfoId;
|
||||
@ApiModelProperty(value = "资质名称", name = "qualificationName", required = true)
|
||||
@NotEmpty(message = "资质名称不能为空")
|
||||
private String qualificationName;
|
||||
@ApiModelProperty(value = "证书有效期", name = "validityTime", required = true)
|
||||
@NotNull(message = "证书有效期不能为空")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date validityTime;
|
||||
|
||||
@ApiModelProperty(value = "证书编号", name = "certificateNo", required = true)
|
||||
@NotEmpty(message = "证书编号不能为空")
|
||||
private String certificateNo;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
package com.zcloud.basic.info.dto;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 09:54:17
|
||||
*/
|
||||
@Data
|
||||
public class CorpQualificationInfoPageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
@ApiModelProperty(value = "企业id", name = "eqCorpInfoId")
|
||||
private Long eqCorpInfoId;
|
||||
@ApiModelProperty(value = "证书名称编号模糊查询", name = "keyWords")
|
||||
private String keyWords;
|
||||
@ApiModelProperty(value = "结束时间", name = "startDate")
|
||||
private String leValidityTime;
|
||||
@ApiModelProperty(value = "开始时间", name = "endDate")
|
||||
private String geValidityTime;
|
||||
// validitytime
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
package com.zcloud.basic.info.dto;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 09:54:17
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class CorpQualificationInfoUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "主键", name = "id", required = true)
|
||||
@NotEmpty(message = "主键不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "资质id", name = "corpQualificationinfoId", required = true)
|
||||
@NotEmpty(message = "资质id不能为空")
|
||||
private String corpQualificationinfoId;
|
||||
@ApiModelProperty(value = "企业id", name = "corpinfoId", required = true)
|
||||
@NotEmpty(message = "企业id不能为空")
|
||||
private Long corpinfoId;
|
||||
@ApiModelProperty(value = "资质名称", name = "qualificationName", required = true)
|
||||
@NotEmpty(message = "资质名称不能为空")
|
||||
private String qualificationName;
|
||||
@ApiModelProperty(value = "证书有效期", name = "validityTime", required = true)
|
||||
@NotNull(message = "证书有效期不能为空")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date validityTime;
|
||||
@ApiModelProperty(value = "证书编号", name = "certificateNo", required = true)
|
||||
@NotEmpty(message = "证书编号不能为空")
|
||||
private String certificateNo;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,68 @@
|
|||
package com.zcloud.basic.info.dto;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 10:10:48
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class DepartmentAddCmd extends Command {
|
||||
|
||||
@ApiModelProperty(value = "部门id", name = "departmentId", required = true)
|
||||
private String departmentId;
|
||||
@ApiModelProperty(value = "名称", name = "name", required = true)
|
||||
@NotEmpty(message = "名称不能为空")
|
||||
private String name;
|
||||
@ApiModelProperty(value = "父部门id", name = "parentId", required = true)
|
||||
@NotNull(message = "父部门id不能为空")
|
||||
private Long parentId;
|
||||
@ApiModelProperty(value = "负责人", name = "headman", required = true)
|
||||
private String headman;
|
||||
@ApiModelProperty(value = "负责人手机号", name = "phone", required = true)
|
||||
private String phone;
|
||||
@ApiModelProperty(value = "地址", name = "address", required = true)
|
||||
private String address;
|
||||
@ApiModelProperty(value = "所属企业", name = "corpinfoId", required = true)
|
||||
private Long corpinfoId;
|
||||
@ApiModelProperty(value = "部门级别编码", name = "level", required = true)
|
||||
private String level;
|
||||
@ApiModelProperty(value = "部门级别名称", name = "levelName", required = true)
|
||||
private String levelName;
|
||||
@ApiModelProperty(value = "部门排序", name = "depOrder", required = true)
|
||||
private Integer depOrder;
|
||||
@ApiModelProperty(value = "是否监管部门 0-否 1-是", name = "isSupervise", required = true)
|
||||
private Integer isSupervise;
|
||||
@ApiModelProperty(value = "0安监部门1消防部门", name = "state", required = true)
|
||||
private Integer state;
|
||||
@ApiModelProperty(value = "主管领导", name = "leaderCharge", required = true)
|
||||
private String leaderCharge;
|
||||
@ApiModelProperty(value = "分管领导人", name = "lrman", required = true)
|
||||
private String lrman;
|
||||
@ApiModelProperty(value = "部门类别:1.行业监管 2.综合监管", name = "category", required = true)
|
||||
private Integer category;
|
||||
@ApiModelProperty(value = "单位类型名称", name = "deptTypeName", required = true)
|
||||
private String deptTypeName;
|
||||
@ApiModelProperty(value = "单位类型编码", name = "deptType", required = true)
|
||||
private String deptType;
|
||||
@ApiModelProperty(value = "部门类型编码", name = "type", required = true)
|
||||
private String type;
|
||||
@ApiModelProperty(value = "部门类型名称", name = "typeName", required = true)
|
||||
private String typeName;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
package com.zcloud.basic.info.dto;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 10:10:48
|
||||
*/
|
||||
@Data
|
||||
public class DepartmentPageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
/**
|
||||
* 名称模糊查询
|
||||
*/
|
||||
@ApiModelProperty(value = "名称模糊查询", name = "likeName")
|
||||
private String likeName;
|
||||
@ApiModelProperty(value = "企业id", name = "eqCorpInfoId")
|
||||
private Long eqCorpInfoId;
|
||||
@ApiModelProperty(value = "父id", name = "eqParentId")
|
||||
private Long eqParentId;
|
||||
/**
|
||||
* 部门级别编码
|
||||
*/
|
||||
@ApiModelProperty(value = "部门级别编码", name = "eqLevel")
|
||||
private String eqLevel;
|
||||
/**
|
||||
* 单位类型编码
|
||||
*/
|
||||
@ApiModelProperty(value = "单位类型编码", name = "eqDeptType")
|
||||
private String eqDeptType;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
package com.zcloud.basic.info.dto;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 10:10:48
|
||||
*/
|
||||
@Data
|
||||
public class DepartmentQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
/**
|
||||
* 名称模糊查询
|
||||
*/
|
||||
@ApiModelProperty(value = "名称模糊查询", name = "likeName")
|
||||
private String likeName;
|
||||
|
||||
@ApiModelProperty(value = "企业id", name = "eqCorpInfoId")
|
||||
private String eqCorpInfoId;
|
||||
@ApiModelProperty(value = "父id", name = "eqParentId")
|
||||
private String eqParentId;
|
||||
/**
|
||||
* 部门级别编码
|
||||
*/
|
||||
@ApiModelProperty(value = "部门级别编码", name = "eqLeve")
|
||||
private String eqLevel;
|
||||
/**
|
||||
* 单位类型编码
|
||||
*/
|
||||
@ApiModelProperty(value = "单位类型编码", name = "eqDeptType")
|
||||
private String eqDeptType;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,68 @@
|
|||
package com.zcloud.basic.info.dto;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 10:10:49
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class DepartmentUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "主键", name = "id", required = true)
|
||||
@NotEmpty(message = "主键不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "部门id", name = "departmentId", required = true)
|
||||
private String departmentId;
|
||||
@ApiModelProperty(value = "名称", name = "name", required = true)
|
||||
@NotEmpty(message = "名称不能为空")
|
||||
private String name;
|
||||
@ApiModelProperty(value = "父部门id", name = "parentId", required = true)
|
||||
private Long parentId;
|
||||
@ApiModelProperty(value = "负责人", name = "headman", required = true)
|
||||
private String headman;
|
||||
@ApiModelProperty(value = "负责人手机号", name = "phone", required = true)
|
||||
private String phone;
|
||||
@ApiModelProperty(value = "地址", name = "address", required = true)
|
||||
private String address;
|
||||
@ApiModelProperty(value = "所属企业", name = "corpinfoId", required = true)
|
||||
private Long corpinfoId;
|
||||
@ApiModelProperty(value = "部门级别编码", name = "level", required = true)
|
||||
private String level;
|
||||
@ApiModelProperty(value = "部门级别名称", name = "levelName", required = true)
|
||||
private String levelName;
|
||||
@ApiModelProperty(value = "部门排序", name = "depOrder", required = true)
|
||||
private Integer depOrder;
|
||||
@ApiModelProperty(value = "是否监管部门 0-否 1-是", name = "isSupervise", required = true)
|
||||
private Integer isSupervise;
|
||||
@ApiModelProperty(value = "0安监部门1消防部门", name = "state", required = true)
|
||||
private Integer state;
|
||||
@ApiModelProperty(value = "主管领导", name = "leaderCharge", required = true)
|
||||
private String leaderCharge;
|
||||
@ApiModelProperty(value = "分管领导人", name = "lrman", required = true)
|
||||
private String lrman;
|
||||
@ApiModelProperty(value = "部门类别:1.行业监管 2.综合监管", name = "category", required = true)
|
||||
private Integer category;
|
||||
@ApiModelProperty(value = "单位类型名称", name = "deptTypeName", required = true)
|
||||
private String deptTypeName;
|
||||
@ApiModelProperty(value = "单位类型编码", name = "deptType", required = true)
|
||||
private String deptType;
|
||||
@ApiModelProperty(value = "部门类型编码", name = "type", required = true)
|
||||
private String type;
|
||||
@ApiModelProperty(value = "部门类型名称", name = "typeName", required = true)
|
||||
private String typeName;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -24,5 +24,6 @@ public class SysUserPageQry extends PageQuery {
|
|||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
private String likeUserId;
|
||||
private boolean needTotalCount = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,51 @@
|
|||
package com.zcloud.basic.info.dto.clientobject;
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 10:10:48
|
||||
*/
|
||||
@Data
|
||||
public class CorpDepartmentCO extends ClientObject {
|
||||
//主键
|
||||
@ApiModelProperty(value = "企业主键")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "企业名称")
|
||||
private String corpName;
|
||||
//行业分类
|
||||
@ApiModelProperty(value = "行业分类")
|
||||
private String corpType;
|
||||
//行业分类
|
||||
@ApiModelProperty(value = "行业分类")
|
||||
private String corpType2;
|
||||
//行业分类
|
||||
@ApiModelProperty(value = "行业分类")
|
||||
private String corpType3;
|
||||
//行业分类
|
||||
@ApiModelProperty(value = "行业分类")
|
||||
private String corpType4;
|
||||
@ApiModelProperty(value = "企业状态")
|
||||
private String corpState;
|
||||
@ApiModelProperty(value = "是否启用,1:启用,2:关闭")
|
||||
private Integer isUse;
|
||||
|
||||
@ApiModelProperty(value = "厂级部门数")
|
||||
private Integer factoryCount;
|
||||
|
||||
@ApiModelProperty(value = "科/队部门数")
|
||||
private Integer sectionCount;
|
||||
|
||||
@ApiModelProperty(value = "班组级部门数")
|
||||
private Integer classCount;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,79 @@
|
|||
package com.zcloud.basic.info.dto.clientobject;
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 09:53:53
|
||||
*/
|
||||
@Data
|
||||
public class CorpFormCO extends ClientObject {
|
||||
//主键id
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private Long id;
|
||||
//信息主键
|
||||
@ApiModelProperty(value = "信息主键")
|
||||
private String corpFormId;
|
||||
//外键id
|
||||
@ApiModelProperty(value = "外键id")
|
||||
private Long infoId;
|
||||
//类型,参考枚举corpformtype
|
||||
@ApiModelProperty(value = "类型,参考枚举corpformtype")
|
||||
private Integer type;
|
||||
//类型名称
|
||||
@ApiModelProperty(value = "类型名称")
|
||||
private String typeName;
|
||||
//数据字典编码
|
||||
@ApiModelProperty(value = "数据字典编码")
|
||||
private String itemCode;
|
||||
//数据字典名称
|
||||
@ApiModelProperty(value = "数据字典名称")
|
||||
private String itemName;
|
||||
//排序
|
||||
@ApiModelProperty(value = "排序")
|
||||
private Integer itemOrder;
|
||||
//乐观锁
|
||||
@ApiModelProperty(value = "乐观锁")
|
||||
private Integer version;
|
||||
//创建人
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private Long createId;
|
||||
//创建人姓名
|
||||
@ApiModelProperty(value = "创建人姓名")
|
||||
private String createName;
|
||||
//创建时间
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
//更新人
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private Long updateId;
|
||||
//修改人名称
|
||||
@ApiModelProperty(value = "修改人名称")
|
||||
private String updateName;
|
||||
//更新时间
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
//描述
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String remarks;
|
||||
//是否删除
|
||||
@ApiModelProperty(value = "是否删除")
|
||||
private String deleteEnum;
|
||||
//租户ID
|
||||
@ApiModelProperty(value = "租户ID")
|
||||
private Long tenantId;
|
||||
//机构ID
|
||||
@ApiModelProperty(value = "机构ID")
|
||||
private Long orgId;
|
||||
//环境
|
||||
@ApiModelProperty(value = "环境")
|
||||
private String env;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,263 @@
|
|||
package com.zcloud.basic.info.dto.clientobject;
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 15:12:49
|
||||
*/
|
||||
@Data
|
||||
public class CorpInfoCO extends ClientObject {
|
||||
//主键
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Long id;
|
||||
//企业id
|
||||
@ApiModelProperty(value = "企业id")
|
||||
private String corpinfoId;
|
||||
//企业名称
|
||||
@ApiModelProperty(value = "企业名称")
|
||||
private String corpName;
|
||||
//企业类型(0-普通企业,1-集团单位,2-股份单位,3-相关方企业,4-货主单位,5-驻港单位)
|
||||
@ApiModelProperty(value = "企业类型(0-普通企业,1-集团单位,2-股份单位,3-相关方企业,4-货主单位,5-驻港单位)")
|
||||
private Integer type;
|
||||
//相关方等级,1 一级相关方,2 二级相关方
|
||||
@ApiModelProperty(value = "相关方等级,1 一级相关方,2 二级相关方")
|
||||
private Integer xgfLevel;
|
||||
//企业再列表中的排序
|
||||
@ApiModelProperty(value = "企业再列表中的排序")
|
||||
private Integer corOrder;
|
||||
//是否启用,1:启用,2:关闭
|
||||
@ApiModelProperty(value = "是否启用,1:启用,2:关闭")
|
||||
private Integer isUse;
|
||||
//统一社会信用代码
|
||||
@ApiModelProperty(value = "统一社会信用代码")
|
||||
private String code;
|
||||
//通讯地址
|
||||
@ApiModelProperty(value = "通讯地址")
|
||||
private String address;
|
||||
//邮编
|
||||
@ApiModelProperty(value = "邮编")
|
||||
private String postalCode;
|
||||
//所属区域
|
||||
@ApiModelProperty(value = "所属区域")
|
||||
private String companyArea;
|
||||
//开始服务日期
|
||||
@ApiModelProperty(value = "开始服务日期")
|
||||
private String firstServeDate;
|
||||
//规模
|
||||
@ApiModelProperty(value = "规模")
|
||||
private String scale;
|
||||
//成立时间
|
||||
@ApiModelProperty(value = "成立时间")
|
||||
private LocalDateTime createDate;
|
||||
//企业状态
|
||||
@ApiModelProperty(value = "企业状态")
|
||||
private String corpState;
|
||||
//企业状态编码
|
||||
@ApiModelProperty(value = "企业状态编码")
|
||||
private String corpStateCode;
|
||||
//资产总额(万元)
|
||||
@ApiModelProperty(value = "资产总额(万元)")
|
||||
private Double totalassets;
|
||||
//注册资金(万元)
|
||||
@ApiModelProperty(value = "注册资金(万元)")
|
||||
private BigDecimal regcapital;
|
||||
//企事业单位经营地址
|
||||
@ApiModelProperty(value = "企事业单位经营地址")
|
||||
private String addressBusiness;
|
||||
//企事业单位办公地址
|
||||
@ApiModelProperty(value = "企事业单位办公地址")
|
||||
private String addressOffice;
|
||||
//固定资产
|
||||
@ApiModelProperty(value = "固定资产")
|
||||
private Double fixedAssets;
|
||||
//年产值
|
||||
@ApiModelProperty(value = "年产值")
|
||||
private Double yearOutputValue;
|
||||
//经济类型
|
||||
@ApiModelProperty(value = "经济类型")
|
||||
private String ecoType;
|
||||
//主要负责人
|
||||
@ApiModelProperty(value = "主要负责人")
|
||||
private String contacts;
|
||||
//主要负责人手机号
|
||||
@ApiModelProperty(value = "主要负责人手机号")
|
||||
private String contactsPhone;
|
||||
//安全负责人
|
||||
@ApiModelProperty(value = "安全负责人")
|
||||
private String safetyName;
|
||||
//安全负责人手机号
|
||||
@ApiModelProperty(value = "安全负责人手机号")
|
||||
private String safetyPhone;
|
||||
//是否规模以上,1:是,2:否
|
||||
@ApiModelProperty(value = "是否规模以上,1:是,2:否")
|
||||
private Integer scaleType;
|
||||
//占地面积
|
||||
@ApiModelProperty(value = "占地面积")
|
||||
private Double areaCovered;
|
||||
//职工人数
|
||||
@ApiModelProperty(value = "职工人数")
|
||||
private Integer employees;
|
||||
//经度
|
||||
@ApiModelProperty(value = "经度")
|
||||
private String longitude;
|
||||
//纬度
|
||||
@ApiModelProperty(value = "纬度")
|
||||
private String latitude;
|
||||
//单位注册登记类型
|
||||
@ApiModelProperty(value = "单位注册登记类型")
|
||||
private String regType;
|
||||
//行业监管部门
|
||||
@ApiModelProperty(value = "行业监管部门")
|
||||
private String industryDepartment;
|
||||
//法定代表人
|
||||
@ApiModelProperty(value = "法定代表人")
|
||||
private String lrName;
|
||||
//法人手机号
|
||||
@ApiModelProperty(value = "法人手机号")
|
||||
private String lrMobile;
|
||||
//行业分类
|
||||
@ApiModelProperty(value = "行业分类")
|
||||
private String corpType;
|
||||
//行业分类名称
|
||||
@ApiModelProperty(value = "行业分类名称")
|
||||
private String corpTypeName;
|
||||
//行业分类
|
||||
@ApiModelProperty(value = "行业分类")
|
||||
private String corpType2;
|
||||
//行业分类名称
|
||||
@ApiModelProperty(value = "行业分类名称")
|
||||
private String corpType2Name;
|
||||
//行业分类
|
||||
@ApiModelProperty(value = "行业分类")
|
||||
private String corpType3;
|
||||
//行业分类名称
|
||||
@ApiModelProperty(value = "行业分类名称")
|
||||
private String corpType3Name;
|
||||
//行业分类
|
||||
@ApiModelProperty(value = "行业分类")
|
||||
private String corpType4;
|
||||
//行业分类名称
|
||||
@ApiModelProperty(value = "行业分类名称")
|
||||
private String corpType4Name;
|
||||
//所属省名称
|
||||
@ApiModelProperty(value = "所属省名称")
|
||||
private String provinceName;
|
||||
//所属省编码
|
||||
@ApiModelProperty(value = "所属省编码")
|
||||
private String province;
|
||||
//所属市级名称
|
||||
@ApiModelProperty(value = "所属市级名称")
|
||||
private String cityName;
|
||||
//所属市级编码
|
||||
@ApiModelProperty(value = "所属市级编码")
|
||||
private String city;
|
||||
//所属区县名称
|
||||
@ApiModelProperty(value = "所属区县名称")
|
||||
private String countryName;
|
||||
//所属区县编码
|
||||
@ApiModelProperty(value = "所属区县编码")
|
||||
private String country;
|
||||
//所属乡镇名称
|
||||
@ApiModelProperty(value = "所属乡镇名称")
|
||||
private String villageName;
|
||||
//所属乡镇编码
|
||||
@ApiModelProperty(value = "所属乡镇编码")
|
||||
private String village;
|
||||
//所属街道名称
|
||||
@ApiModelProperty(value = "所属街道名称")
|
||||
private String streetName;
|
||||
//所属街道编码
|
||||
@ApiModelProperty(value = "所属街道编码")
|
||||
private String street;
|
||||
//公司简介
|
||||
@ApiModelProperty(value = "公司简介")
|
||||
private String descr;
|
||||
//有无职业卫生信息,1:是,2:否
|
||||
@ApiModelProperty(value = "有无职业卫生信息,1:是,2:否")
|
||||
private Integer whetherHygiene;
|
||||
//有无重大危险源,1:是,2:否
|
||||
@ApiModelProperty(value = "有无重大危险源,1:是,2:否")
|
||||
private Integer whetherHazards;
|
||||
//是否有稀缺大型应急物资或设施,1:是,2:否
|
||||
@ApiModelProperty(value = "是否有稀缺大型应急物资或设施,1:是,2:否")
|
||||
private Integer whetherScarce;
|
||||
//是否涉及危化品,1:是,2:否
|
||||
@ApiModelProperty(value = "是否涉及危化品,1:是,2:否")
|
||||
private Integer whetherChemicals;
|
||||
//有无特种设备,1:是,2:否
|
||||
@ApiModelProperty(value = "有无特种设备,1:是,2:否")
|
||||
private Integer whetherSpecialequipment;
|
||||
//有无特存种作业人员,1:是,2:否
|
||||
@ApiModelProperty(value = "有无特存种作业人员,1:是,2:否")
|
||||
private Integer whetherSpecialpeople;
|
||||
//是否涉及煤气,1:是,2:否
|
||||
@ApiModelProperty(value = "是否涉及煤气,1:是,2:否")
|
||||
private Integer whetherCoalgas;
|
||||
//是否属于消防重点单位,1:是,2:否
|
||||
@ApiModelProperty(value = "是否属于消防重点单位,1:是,2:否")
|
||||
private Integer whetherFire;
|
||||
//是否在有限空间作业,1:是,2:否
|
||||
@ApiModelProperty(value = "是否在有限空间作业,1:是,2:否")
|
||||
private Integer whetherConfined;
|
||||
//是否存在涉爆粉尘作业,1:是,2:否
|
||||
@ApiModelProperty(value = "是否存在涉爆粉尘作业,1:是,2:否")
|
||||
private Integer whetherPowder;
|
||||
//是否涉及防雷防静电,1:是,2:否
|
||||
@ApiModelProperty(value = "是否涉及防雷防静电,1:是,2:否")
|
||||
private Integer whetherLightning;
|
||||
//是否涉及危化品管道,1:是,2:否
|
||||
@ApiModelProperty(value = "是否涉及危化品管道,1:是,2:否")
|
||||
private Integer whetherPipeline;
|
||||
//是否持有放射源,1:是,2:否
|
||||
@ApiModelProperty(value = "是否持有放射源,1:是,2:否")
|
||||
private Integer whetherActinogen;
|
||||
//是否涉及液氨制冷,1:是,2:否
|
||||
@ApiModelProperty(value = "是否涉及液氨制冷,1:是,2:否")
|
||||
private Integer whetherLiquidammonia;
|
||||
//乐观锁
|
||||
@ApiModelProperty(value = "乐观锁")
|
||||
private Integer version;
|
||||
//创建人
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private Long createId;
|
||||
//创建人姓名
|
||||
@ApiModelProperty(value = "创建人姓名")
|
||||
private String createName;
|
||||
//创建时间
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
//更新人
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private Long updateId;
|
||||
//修改人名称
|
||||
@ApiModelProperty(value = "修改人名称")
|
||||
private String updateName;
|
||||
//更新时间
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
//描述
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String remarks;
|
||||
//是否删除
|
||||
@ApiModelProperty(value = "是否删除")
|
||||
private String deleteEnum;
|
||||
//租户ID
|
||||
@ApiModelProperty(value = "租户ID")
|
||||
private Long tenantId;
|
||||
//机构ID
|
||||
@ApiModelProperty(value = "机构ID")
|
||||
private Long orgId;
|
||||
//环境
|
||||
@ApiModelProperty(value = "环境")
|
||||
private String env;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,79 @@
|
|||
package com.zcloud.basic.info.dto.clientobject;
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 09:54:17
|
||||
*/
|
||||
@Data
|
||||
public class CorpQualificationInfoCO extends ClientObject {
|
||||
//主键
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Long id;
|
||||
//资质id
|
||||
@ApiModelProperty(value = "资质id")
|
||||
private String corpQualificationinfoId;
|
||||
//企业id
|
||||
@ApiModelProperty(value = "企业id")
|
||||
private Long corpinfoId;
|
||||
//资质名称
|
||||
@ApiModelProperty(value = "资质名称")
|
||||
private String qualificationName;
|
||||
//企业资质开始日期
|
||||
@ApiModelProperty(value = "证书有效期", name = "validityTime", required = true)
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date validityTime;
|
||||
|
||||
//证书编号
|
||||
@ApiModelProperty(value = "证书编号")
|
||||
private String certificateNo;
|
||||
|
||||
//乐观锁
|
||||
@ApiModelProperty(value = "乐观锁")
|
||||
private Integer version;
|
||||
//创建人
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private Long createId;
|
||||
//创建人姓名
|
||||
@ApiModelProperty(value = "创建人姓名")
|
||||
private String createName;
|
||||
//创建时间
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
//更新人
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private Long updateId;
|
||||
//修改人名称
|
||||
@ApiModelProperty(value = "修改人名称")
|
||||
private String updateName;
|
||||
//更新时间
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
//描述
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String remarks;
|
||||
//是否删除
|
||||
@ApiModelProperty(value = "是否删除")
|
||||
private String deleteEnum;
|
||||
//租户ID
|
||||
@ApiModelProperty(value = "租户ID")
|
||||
private Long tenantId;
|
||||
//机构ID
|
||||
@ApiModelProperty(value = "机构ID")
|
||||
private Long orgId;
|
||||
//环境
|
||||
@ApiModelProperty(value = "环境")
|
||||
private String env;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,115 @@
|
|||
package com.zcloud.basic.info.dto.clientobject;
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 10:10:48
|
||||
*/
|
||||
@Data
|
||||
public class DepartmentCO extends ClientObject {
|
||||
//主键
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Long id;
|
||||
//部门id
|
||||
@ApiModelProperty(value = "部门id")
|
||||
private String departmentId;
|
||||
//名称
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String name;
|
||||
//父部门id
|
||||
@ApiModelProperty(value = "父部门id")
|
||||
private Long parentId;
|
||||
//负责人
|
||||
@ApiModelProperty(value = "负责人")
|
||||
private String headman;
|
||||
//负责人手机号
|
||||
@ApiModelProperty(value = "负责人手机号")
|
||||
private String phone;
|
||||
//地址
|
||||
@ApiModelProperty(value = "地址")
|
||||
private String address;
|
||||
//所属企业
|
||||
@ApiModelProperty(value = "所属企业")
|
||||
private Long corpinfoId;
|
||||
//部门级别编码
|
||||
@ApiModelProperty(value = "部门级别编码")
|
||||
private String level;
|
||||
//部门级别名称
|
||||
@ApiModelProperty(value = "部门级别名称")
|
||||
private String levelName;
|
||||
//部门排序
|
||||
@ApiModelProperty(value = "部门排序")
|
||||
private Integer depOrder;
|
||||
//是否监管部门 0-否 1-是
|
||||
@ApiModelProperty(value = "是否监管部门 0-否 1-是")
|
||||
private Integer isSupervise;
|
||||
//0安监部门1消防部门
|
||||
@ApiModelProperty(value = "0安监部门1消防部门")
|
||||
private Integer state;
|
||||
//主管领导
|
||||
@ApiModelProperty(value = "主管领导")
|
||||
private String leaderCharge;
|
||||
//分管领导人
|
||||
@ApiModelProperty(value = "分管领导人")
|
||||
private String lrman;
|
||||
//部门类别:1.行业监管 2.综合监管
|
||||
@ApiModelProperty(value = "部门类别:1.行业监管 2.综合监管")
|
||||
private Integer category;
|
||||
//单位类型名称
|
||||
@ApiModelProperty(value = "单位类型名称")
|
||||
private String deptTypeName;
|
||||
//单位类型编码
|
||||
@ApiModelProperty(value = "单位类型编码")
|
||||
private String deptType;
|
||||
//部门类型编码
|
||||
@ApiModelProperty(value = "部门类型编码")
|
||||
private String type;
|
||||
//部门类型名称
|
||||
@ApiModelProperty(value = "部门类型名称")
|
||||
private String typeName;
|
||||
//乐观锁
|
||||
@ApiModelProperty(value = "乐观锁")
|
||||
private Integer version;
|
||||
//创建人
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private Long createId;
|
||||
//创建人姓名
|
||||
@ApiModelProperty(value = "创建人姓名")
|
||||
private String createName;
|
||||
//创建时间
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
//更新人
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private Long updateId;
|
||||
//修改人名称
|
||||
@ApiModelProperty(value = "修改人名称")
|
||||
private String updateName;
|
||||
//更新时间
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
//描述
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String remarks;
|
||||
//是否删除
|
||||
@ApiModelProperty(value = "是否删除")
|
||||
private String deleteEnum;
|
||||
//租户ID
|
||||
@ApiModelProperty(value = "租户ID")
|
||||
private Long tenantId;
|
||||
//机构ID
|
||||
@ApiModelProperty(value = "机构ID")
|
||||
private Long orgId;
|
||||
//环境
|
||||
@ApiModelProperty(value = "环境")
|
||||
private String env;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
package com.zcloud.basic.info.dto.clientobject;
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 10:10:48
|
||||
*/
|
||||
@Data
|
||||
public class DepartmentTreeInfoCO extends ClientObject {
|
||||
//主键
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Long id;
|
||||
//部门id
|
||||
@ApiModelProperty(value = "部门id")
|
||||
private String departmentId;
|
||||
//名称
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String name;
|
||||
//父部门id
|
||||
@ApiModelProperty(value = "父部门id")
|
||||
private Long parentId;
|
||||
|
||||
private List<DepartmentTreeInfoCO> childrenList;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
package com.zcloud.basic.info.domain.gateway;
|
||||
|
||||
import com.zcloud.basic.info.domain.model.CorpFormE;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:27
|
||||
*/
|
||||
public interface CorpFormGateway {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
Boolean add(CorpFormE corpFormE);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
Boolean update(CorpFormE corpFormE);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
Boolean deletedCorpFormById(Long id);
|
||||
|
||||
Boolean deletedCorpFormByIds(Long[] id);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
package com.zcloud.basic.info.domain.gateway;
|
||||
|
||||
import com.zcloud.basic.info.domain.model.CorpInfoE;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:16
|
||||
*/
|
||||
public interface CorpInfoGateway {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
Boolean add(CorpInfoE corpInfoE);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
Boolean update(CorpInfoE corpInfoE);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
Boolean deletedCorpInfoById(Long id);
|
||||
|
||||
Boolean deletedCorpInfoByIds(Long[] id);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
package com.zcloud.basic.info.domain.gateway;
|
||||
|
||||
import com.zcloud.basic.info.domain.model.CorpQualificationInfoE;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:46
|
||||
*/
|
||||
public interface CorpQualificationInfoGateway {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
Boolean add(CorpQualificationInfoE corpQualificationInfoE);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
Boolean update(CorpQualificationInfoE corpQualificationInfoE);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
Boolean deletedCorpQualificationInfoById(Long id);
|
||||
|
||||
Boolean deletedCorpQualificationInfoByIds(Long[] id);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
package com.zcloud.basic.info.domain.gateway;
|
||||
|
||||
import com.zcloud.basic.info.domain.model.DepartmentE;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:03:20
|
||||
*/
|
||||
public interface DepartmentGateway {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
Boolean add(DepartmentE departmentE);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
Boolean update(DepartmentE departmentE);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
Boolean deletedDepartmentById(Long id);
|
||||
|
||||
Boolean deletedDepartmentByIds(Long[] id);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,69 @@
|
|||
package com.zcloud.basic.info.domain.model;
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 10:10:48
|
||||
*/
|
||||
@Data
|
||||
public class CorpDepartmentE extends ClientObject {
|
||||
//主键
|
||||
@ApiModelProperty(value = "企业主键")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "企业名称")
|
||||
private String corpName;
|
||||
//行业分类
|
||||
@ApiModelProperty(value = "行业分类")
|
||||
private String corpType;
|
||||
//行业分类
|
||||
@ApiModelProperty(value = "行业分类")
|
||||
private String corpType2;
|
||||
//行业分类
|
||||
@ApiModelProperty(value = "行业分类")
|
||||
private String corpType3;
|
||||
//行业分类
|
||||
@ApiModelProperty(value = "行业分类")
|
||||
private String corpType4;
|
||||
@ApiModelProperty(value = "企业状态")
|
||||
private String corpState;
|
||||
@ApiModelProperty(value = "是否启用,1:启用,2:关闭")
|
||||
private Integer isUse;
|
||||
|
||||
@ApiModelProperty(value = "厂级部门数")
|
||||
private Integer factoryCount;
|
||||
|
||||
@ApiModelProperty(value = "科/队部门数")
|
||||
private Integer sectionCount;
|
||||
|
||||
@ApiModelProperty(value = "班组级部门数")
|
||||
private Integer classCount;
|
||||
|
||||
|
||||
public void addDepart(List<DepartmentE> list) {
|
||||
Map<String, Integer> levelToDepartmentMap = list.stream()
|
||||
.collect(Collectors.groupingBy(
|
||||
DepartmentE::getLevel,
|
||||
Collectors.collectingAndThen(
|
||||
Collectors.counting(),
|
||||
Long::intValue // 直接将 Long 转为 Integer
|
||||
)
|
||||
));
|
||||
// 部门级别待定
|
||||
this.factoryCount =levelToDepartmentMap.get("departmentLevel0001");
|
||||
this.sectionCount =levelToDepartmentMap.get("departmentLevel0002");
|
||||
this.classCount =levelToDepartmentMap.get("departmentLevel0003");
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
package com.zcloud.basic.info.domain.model;
|
||||
|
||||
import com.alibaba.cola.domain.Entity;
|
||||
import com.jjb.saas.framework.domain.model.BaseE;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 09:53:53
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CorpFormE extends BaseE {
|
||||
|
||||
//信息主键
|
||||
private String corpFormId;
|
||||
//外键id
|
||||
private Long infoId;
|
||||
//类型,参考枚举corpformtype
|
||||
private Integer type;
|
||||
//类型名称
|
||||
private String typeName;
|
||||
//数据字典编码
|
||||
private String itemCode;
|
||||
//数据字典名称
|
||||
private String itemName;
|
||||
//排序
|
||||
private Integer itemOrder;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,187 @@
|
|||
package com.zcloud.basic.info.domain.model;
|
||||
|
||||
import com.alibaba.cola.domain.Entity;
|
||||
import com.jjb.saas.framework.domain.model.BaseE;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 15:12:49
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CorpInfoE extends BaseE {
|
||||
//主键
|
||||
private Long id;
|
||||
//企业id
|
||||
private String corpinfoId;
|
||||
//企业名称
|
||||
private String corpName;
|
||||
//企业类型(0-普通企业,1-集团单位,2-股份单位,3-相关方企业,4-货主单位,5-驻港单位)
|
||||
private Integer type;
|
||||
//相关方等级,1 一级相关方,2 二级相关方
|
||||
private Integer xgfLevel;
|
||||
//企业再列表中的排序
|
||||
private Integer corOrder;
|
||||
//是否启用,1:启用,2:关闭
|
||||
private Integer isUse;
|
||||
//统一社会信用代码
|
||||
private String code;
|
||||
//通讯地址
|
||||
private String address;
|
||||
//邮编
|
||||
private String postalCode;
|
||||
//所属区域
|
||||
private String companyArea;
|
||||
//开始服务日期
|
||||
private String firstServeDate;
|
||||
//规模
|
||||
private String scale;
|
||||
//成立时间
|
||||
private LocalDateTime createDate;
|
||||
//企业状态
|
||||
private String corpState;
|
||||
//企业状态编码
|
||||
private String corpStateCode;
|
||||
//资产总额(万元)
|
||||
private Double totalassets;
|
||||
//注册资金(万元)
|
||||
private BigDecimal regcapital;
|
||||
//企事业单位经营地址
|
||||
private String addressBusiness;
|
||||
//企事业单位办公地址
|
||||
private String addressOffice;
|
||||
//固定资产
|
||||
private Double fixedAssets;
|
||||
//年产值
|
||||
private Double yearOutputValue;
|
||||
//经济类型
|
||||
private String ecoType;
|
||||
//主要负责人
|
||||
private String contacts;
|
||||
//主要负责人手机号
|
||||
private String contactsPhone;
|
||||
//安全负责人
|
||||
private String safetyName;
|
||||
//安全负责人手机号
|
||||
private String safetyPhone;
|
||||
//是否规模以上,1:是,2:否
|
||||
private Integer scaleType;
|
||||
//占地面积
|
||||
private Double areaCovered;
|
||||
//职工人数
|
||||
private Integer employees;
|
||||
//经度
|
||||
private String longitude;
|
||||
//纬度
|
||||
private String latitude;
|
||||
//单位注册登记类型
|
||||
private String regType;
|
||||
//行业监管部门
|
||||
private String industryDepartment;
|
||||
//法定代表人
|
||||
private String lrName;
|
||||
//法人手机号
|
||||
private String lrMobile;
|
||||
//行业分类
|
||||
private String corpType;
|
||||
//行业分类名称
|
||||
private String corpTypeName;
|
||||
//行业分类
|
||||
private String corpType2;
|
||||
//行业分类名称
|
||||
private String corpType2Name;
|
||||
//行业分类
|
||||
private String corpType3;
|
||||
//行业分类名称
|
||||
private String corpType3Name;
|
||||
//行业分类
|
||||
private String corpType4;
|
||||
//行业分类名称
|
||||
private String corpType4Name;
|
||||
//所属省名称
|
||||
private String provinceName;
|
||||
//所属省编码
|
||||
private String province;
|
||||
//所属市级名称
|
||||
private String cityName;
|
||||
//所属市级编码
|
||||
private String city;
|
||||
//所属区县名称
|
||||
private String countryName;
|
||||
//所属区县编码
|
||||
private String country;
|
||||
//所属乡镇名称
|
||||
private String villageName;
|
||||
//所属乡镇编码
|
||||
private String village;
|
||||
//所属街道名称
|
||||
private String streetName;
|
||||
//所属街道编码
|
||||
private String street;
|
||||
//公司简介
|
||||
private String descr;
|
||||
//有无职业卫生信息,1:是,2:否
|
||||
private Integer whetherHygiene;
|
||||
//有无重大危险源,1:是,2:否
|
||||
private Integer whetherHazards;
|
||||
//是否有稀缺大型应急物资或设施,1:是,2:否
|
||||
private Integer whetherScarce;
|
||||
//是否涉及危化品,1:是,2:否
|
||||
private Integer whetherChemicals;
|
||||
//有无特种设备,1:是,2:否
|
||||
private Integer whetherSpecialequipment;
|
||||
//有无特存种作业人员,1:是,2:否
|
||||
private Integer whetherSpecialpeople;
|
||||
//是否涉及煤气,1:是,2:否
|
||||
private Integer whetherCoalgas;
|
||||
//是否属于消防重点单位,1:是,2:否
|
||||
private Integer whetherFire;
|
||||
//是否在有限空间作业,1:是,2:否
|
||||
private Integer whetherConfined;
|
||||
//是否存在涉爆粉尘作业,1:是,2:否
|
||||
private Integer whetherPowder;
|
||||
//是否涉及防雷防静电,1:是,2:否
|
||||
private Integer whetherLightning;
|
||||
//是否涉及危化品管道,1:是,2:否
|
||||
private Integer whetherPipeline;
|
||||
//是否持有放射源,1:是,2:否
|
||||
private Integer whetherActinogen;
|
||||
//是否涉及液氨制冷,1:是,2:否
|
||||
private Integer whetherLiquidammonia;
|
||||
//乐观锁
|
||||
private Integer version;
|
||||
//创建人
|
||||
private Long createId;
|
||||
//创建人姓名
|
||||
private String createName;
|
||||
//创建时间
|
||||
private LocalDateTime createTime;
|
||||
//更新人
|
||||
private Long updateId;
|
||||
//修改人名称
|
||||
private String updateName;
|
||||
//更新时间
|
||||
private LocalDateTime updateTime;
|
||||
//描述
|
||||
private String remarks;
|
||||
//是否删除
|
||||
private String deleteEnum;
|
||||
//租户ID
|
||||
private Long tenantId;
|
||||
//机构ID
|
||||
private Long orgId;
|
||||
//环境
|
||||
private String env;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
package com.zcloud.basic.info.domain.model;
|
||||
|
||||
import com.alibaba.cola.domain.Entity;
|
||||
import com.jjb.saas.framework.domain.model.BaseE;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 09:54:17
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CorpQualificationInfoE extends BaseE {
|
||||
//主键
|
||||
private Long id;
|
||||
//资质id
|
||||
private String corpQualificationinfoId;
|
||||
//企业id
|
||||
private Long corpinfoId;
|
||||
//资质名称
|
||||
private String qualificationName;
|
||||
//证书有效期
|
||||
private Date validityTime;
|
||||
//证书编号
|
||||
private String certificateNo;
|
||||
|
||||
//乐观锁
|
||||
private Integer version;
|
||||
//创建人
|
||||
private Long createId;
|
||||
//创建人姓名
|
||||
private String createName;
|
||||
//创建时间
|
||||
private LocalDateTime createTime;
|
||||
//更新人
|
||||
private Long updateId;
|
||||
//修改人名称
|
||||
private String updateName;
|
||||
//更新时间
|
||||
private LocalDateTime updateTime;
|
||||
//描述
|
||||
private String remarks;
|
||||
//是否删除
|
||||
private String deleteEnum;
|
||||
//租户ID
|
||||
private Long tenantId;
|
||||
//机构ID
|
||||
private Long orgId;
|
||||
//环境
|
||||
private String env;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
package com.zcloud.basic.info.domain.model;
|
||||
|
||||
import com.alibaba.cola.domain.Entity;
|
||||
import com.jjb.saas.framework.domain.model.BaseE;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 10:10:48
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class DepartmentE extends BaseE {
|
||||
|
||||
//部门id
|
||||
private String departmentId;
|
||||
//名称
|
||||
private String name;
|
||||
//父部门id
|
||||
private Long parentId;
|
||||
//负责人
|
||||
private String headman;
|
||||
//负责人手机号
|
||||
private String phone;
|
||||
//地址
|
||||
private String address;
|
||||
//所属企业
|
||||
private Long corpinfoId;
|
||||
//部门级别编码
|
||||
private String level;
|
||||
//部门级别名称
|
||||
private String levelName;
|
||||
//部门排序
|
||||
private Integer depOrder;
|
||||
//是否监管部门 0-否 1-是
|
||||
private Integer isSupervise;
|
||||
//0安监部门1消防部门
|
||||
private Integer state;
|
||||
//主管领导
|
||||
private String leaderCharge;
|
||||
//分管领导人
|
||||
private String lrman;
|
||||
//部门类别:1.行业监管 2.综合监管
|
||||
private Integer category;
|
||||
//单位类型名称
|
||||
private String deptTypeName;
|
||||
//单位类型编码
|
||||
private String deptType;
|
||||
//部门类型编码
|
||||
private String type;
|
||||
//部门类型名称
|
||||
private String typeName;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
package com.zcloud.basic.info.gatewayimpl;
|
||||
|
||||
import com.zcloud.basic.info.domain.gateway.CorpFormGateway;
|
||||
import com.zcloud.basic.info.domain.model.CorpFormE;
|
||||
import com.zcloud.basic.info.persistence.dataobject.CorpFormDO;
|
||||
import com.zcloud.basic.info.persistence.repository.CorpFormRepository;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Collections;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:27
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class CorpFormGatewayImpl implements CorpFormGateway {
|
||||
private final CorpFormRepository corpFormRepository;
|
||||
|
||||
@Override
|
||||
public Boolean add(CorpFormE corpFormE) {
|
||||
CorpFormDO d = new CorpFormDO();
|
||||
BeanUtils.copyProperties(corpFormE, d);
|
||||
corpFormRepository.save(d);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean update(CorpFormE corpFormE) {
|
||||
CorpFormDO d = new CorpFormDO();
|
||||
BeanUtils.copyProperties(corpFormE, d);
|
||||
corpFormRepository.updateById(d);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deletedCorpFormById(Long id) {
|
||||
return corpFormRepository.removeById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deletedCorpFormByIds(Long[] ids) {
|
||||
return corpFormRepository.removeByIds(Collections.singletonList(ids));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
package com.zcloud.basic.info.gatewayimpl;
|
||||
|
||||
import com.zcloud.basic.info.domain.gateway.CorpInfoGateway;
|
||||
import com.zcloud.basic.info.domain.model.CorpInfoE;
|
||||
import com.zcloud.basic.info.persistence.dataobject.CorpInfoDO;
|
||||
import com.zcloud.basic.info.persistence.repository.CorpInfoRepository;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Collections;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:16
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class CorpInfoGatewayImpl implements CorpInfoGateway {
|
||||
private final CorpInfoRepository corpInfoRepository;
|
||||
|
||||
@Override
|
||||
public Boolean add(CorpInfoE corpInfoE) {
|
||||
CorpInfoDO d = new CorpInfoDO();
|
||||
BeanUtils.copyProperties(corpInfoE, d);
|
||||
corpInfoRepository.save(d);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean update(CorpInfoE corpInfoE) {
|
||||
CorpInfoDO d = new CorpInfoDO();
|
||||
BeanUtils.copyProperties(corpInfoE, d);
|
||||
corpInfoRepository.updateById(d);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deletedCorpInfoById(Long id) {
|
||||
return corpInfoRepository.removeById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deletedCorpInfoByIds(Long[] ids) {
|
||||
return corpInfoRepository.removeByIds(Collections.singletonList(ids));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
package com.zcloud.basic.info.gatewayimpl;
|
||||
|
||||
import com.zcloud.basic.info.domain.gateway.CorpQualificationInfoGateway;
|
||||
import com.zcloud.basic.info.domain.model.CorpQualificationInfoE;
|
||||
import com.zcloud.basic.info.persistence.dataobject.CorpQualificationInfoDO;
|
||||
import com.zcloud.basic.info.persistence.repository.CorpQualificationInfoRepository;
|
||||
import com.zcloud.gbscommon.utils.Tools;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Collections;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:46
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class CorpQualificationInfoGatewayImpl implements CorpQualificationInfoGateway {
|
||||
private final CorpQualificationInfoRepository corpQualificationInfoRepository;
|
||||
|
||||
@Override
|
||||
public Boolean add(CorpQualificationInfoE corpQualificationInfoE) {
|
||||
CorpQualificationInfoDO d = new CorpQualificationInfoDO();
|
||||
BeanUtils.copyProperties(corpQualificationInfoE, d);
|
||||
if(StringUtils.isEmpty(d.getCorpQualificationinfoId())){
|
||||
d.setCorpQualificationinfoId(Tools.get32UUID());
|
||||
}
|
||||
corpQualificationInfoRepository.save(d);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean update(CorpQualificationInfoE corpQualificationInfoE) {
|
||||
CorpQualificationInfoDO d = new CorpQualificationInfoDO();
|
||||
BeanUtils.copyProperties(corpQualificationInfoE, d);
|
||||
corpQualificationInfoRepository.updateById(d);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deletedCorpQualificationInfoById(Long id) {
|
||||
return corpQualificationInfoRepository.removeById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deletedCorpQualificationInfoByIds(Long[] ids) {
|
||||
return corpQualificationInfoRepository.removeByIds(Collections.singletonList(ids));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,52 @@
|
|||
package com.zcloud.basic.info.gatewayimpl;
|
||||
|
||||
import com.zcloud.basic.info.domain.gateway.DepartmentGateway;
|
||||
import com.zcloud.basic.info.domain.model.DepartmentE;
|
||||
import com.zcloud.basic.info.persistence.dataobject.DepartmentDO;
|
||||
import com.zcloud.basic.info.persistence.repository.DepartmentRepository;
|
||||
import com.zcloud.gbscommon.utils.Tools;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Collections;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:03:20
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class DepartmentGatewayImpl implements DepartmentGateway {
|
||||
private final DepartmentRepository departmentRepository;
|
||||
|
||||
@Override
|
||||
public Boolean add(DepartmentE departmentE) {
|
||||
DepartmentDO d = new DepartmentDO();
|
||||
BeanUtils.copyProperties(departmentE, d);
|
||||
d.setDepartmentId(Tools.get32UUID());
|
||||
departmentRepository.save(d);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean update(DepartmentE departmentE) {
|
||||
DepartmentDO d = new DepartmentDO();
|
||||
BeanUtils.copyProperties(departmentE, d);
|
||||
departmentRepository.updateById(d);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deletedDepartmentById(Long id) {
|
||||
return departmentRepository.removeById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deletedDepartmentByIds(Long[] ids) {
|
||||
return departmentRepository.removeByIds(Collections.singletonList(ids));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
package com.zcloud.basic.info.persistence.dataobject;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.jjb.saas.framework.repository.basedo.BaseDO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 09:53:53
|
||||
*/
|
||||
@Data
|
||||
@TableName("corp_form")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CorpFormDO extends BaseDO {
|
||||
|
||||
//信息主键
|
||||
@ApiModelProperty(value = "信息主键")
|
||||
private String corpFormId;
|
||||
//外键id
|
||||
@ApiModelProperty(value = "外键id")
|
||||
private Long infoId;
|
||||
//类型,参考枚举corpformtype
|
||||
@ApiModelProperty(value = "类型,参考枚举corpformtype")
|
||||
private Integer type;
|
||||
//类型名称
|
||||
@ApiModelProperty(value = "类型名称")
|
||||
private String typeName;
|
||||
//数据字典编码
|
||||
@ApiModelProperty(value = "数据字典编码")
|
||||
private String itemCode;
|
||||
//数据字典名称
|
||||
@ApiModelProperty(value = "数据字典名称")
|
||||
private String itemName;
|
||||
//排序
|
||||
@ApiModelProperty(value = "排序")
|
||||
private Integer itemOrder;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,270 @@
|
|||
package com.zcloud.basic.info.persistence.dataobject;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.jjb.saas.framework.repository.basedo.BaseDO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 15:12:49
|
||||
*/
|
||||
@Data
|
||||
@TableName("corp_info")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CorpInfoDO extends BaseDO {
|
||||
//主键
|
||||
@ApiModelProperty(value = "主键")
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
//企业id
|
||||
@ApiModelProperty(value = "企业id")
|
||||
private String corpinfoId;
|
||||
//企业名称
|
||||
@ApiModelProperty(value = "企业名称")
|
||||
private String corpName;
|
||||
//企业类型(0-普通企业,1-集团单位,2-股份单位,3-相关方企业,4-货主单位,5-驻港单位)
|
||||
@ApiModelProperty(value = "企业类型(0-普通企业,1-集团单位,2-股份单位,3-相关方企业,4-货主单位,5-驻港单位)")
|
||||
private Integer type;
|
||||
//相关方等级,1 一级相关方,2 二级相关方
|
||||
@ApiModelProperty(value = "相关方等级,1 一级相关方,2 二级相关方")
|
||||
private Integer xgfLevel;
|
||||
//企业再列表中的排序
|
||||
@ApiModelProperty(value = "企业再列表中的排序")
|
||||
private Integer corOrder;
|
||||
//是否启用,1:启用,2:关闭
|
||||
@ApiModelProperty(value = "是否启用,1:启用,2:关闭")
|
||||
private Integer isUse;
|
||||
//统一社会信用代码
|
||||
@ApiModelProperty(value = "统一社会信用代码")
|
||||
private String code;
|
||||
//通讯地址
|
||||
@ApiModelProperty(value = "通讯地址")
|
||||
private String address;
|
||||
//邮编
|
||||
@ApiModelProperty(value = "邮编")
|
||||
private String postalCode;
|
||||
//所属区域
|
||||
@ApiModelProperty(value = "所属区域")
|
||||
private String companyArea;
|
||||
//开始服务日期
|
||||
@ApiModelProperty(value = "开始服务日期")
|
||||
private String firstServeDate;
|
||||
//规模
|
||||
@ApiModelProperty(value = "规模")
|
||||
private String scale;
|
||||
//成立时间
|
||||
@ApiModelProperty(value = "成立时间")
|
||||
private LocalDateTime createDate;
|
||||
//企业状态
|
||||
@ApiModelProperty(value = "企业状态")
|
||||
private String corpState;
|
||||
//企业状态编码
|
||||
@ApiModelProperty(value = "企业状态编码")
|
||||
private String corpStateCode;
|
||||
//资产总额(万元)
|
||||
@ApiModelProperty(value = "资产总额(万元)")
|
||||
private Double totalassets;
|
||||
//注册资金(万元)
|
||||
@ApiModelProperty(value = "注册资金(万元)")
|
||||
private BigDecimal regcapital;
|
||||
//企事业单位经营地址
|
||||
@ApiModelProperty(value = "企事业单位经营地址")
|
||||
private String addressBusiness;
|
||||
//企事业单位办公地址
|
||||
@ApiModelProperty(value = "企事业单位办公地址")
|
||||
private String addressOffice;
|
||||
//固定资产
|
||||
@ApiModelProperty(value = "固定资产")
|
||||
private Double fixedAssets;
|
||||
//年产值
|
||||
@ApiModelProperty(value = "年产值")
|
||||
private Double yearOutputValue;
|
||||
//经济类型
|
||||
@ApiModelProperty(value = "经济类型")
|
||||
private String ecoType;
|
||||
//主要负责人
|
||||
@ApiModelProperty(value = "主要负责人")
|
||||
private String contacts;
|
||||
//主要负责人手机号
|
||||
@ApiModelProperty(value = "主要负责人手机号")
|
||||
private String contactsPhone;
|
||||
//安全负责人
|
||||
@ApiModelProperty(value = "安全负责人")
|
||||
private String safetyName;
|
||||
//安全负责人手机号
|
||||
@ApiModelProperty(value = "安全负责人手机号")
|
||||
private String safetyPhone;
|
||||
//是否规模以上,1:是,2:否
|
||||
@ApiModelProperty(value = "是否规模以上,1:是,2:否")
|
||||
private Integer scaleType;
|
||||
//占地面积
|
||||
@ApiModelProperty(value = "占地面积")
|
||||
private Double areaCovered;
|
||||
//职工人数
|
||||
@ApiModelProperty(value = "职工人数")
|
||||
private Integer employees;
|
||||
//经度
|
||||
@ApiModelProperty(value = "经度")
|
||||
private String longitude;
|
||||
//纬度
|
||||
@ApiModelProperty(value = "纬度")
|
||||
private String latitude;
|
||||
//单位注册登记类型
|
||||
@ApiModelProperty(value = "单位注册登记类型")
|
||||
private String regType;
|
||||
//行业监管部门
|
||||
@ApiModelProperty(value = "行业监管部门")
|
||||
private String industryDepartment;
|
||||
//法定代表人
|
||||
@ApiModelProperty(value = "法定代表人")
|
||||
private String lrName;
|
||||
//法人手机号
|
||||
@ApiModelProperty(value = "法人手机号")
|
||||
private String lrMobile;
|
||||
//行业分类
|
||||
@ApiModelProperty(value = "行业分类")
|
||||
private String corpType;
|
||||
//行业分类名称
|
||||
@ApiModelProperty(value = "行业分类名称")
|
||||
private String corpTypeName;
|
||||
//行业分类
|
||||
@ApiModelProperty(value = "行业分类")
|
||||
private String corpType2;
|
||||
//行业分类名称
|
||||
@ApiModelProperty(value = "行业分类名称")
|
||||
private String corpType2Name;
|
||||
//行业分类
|
||||
@ApiModelProperty(value = "行业分类")
|
||||
private String corpType3;
|
||||
//行业分类名称
|
||||
@ApiModelProperty(value = "行业分类名称")
|
||||
private String corpType3Name;
|
||||
//行业分类
|
||||
@ApiModelProperty(value = "行业分类")
|
||||
private String corpType4;
|
||||
//行业分类名称
|
||||
@ApiModelProperty(value = "行业分类名称")
|
||||
private String corpType4Name;
|
||||
//所属省名称
|
||||
@ApiModelProperty(value = "所属省名称")
|
||||
private String provinceName;
|
||||
//所属省编码
|
||||
@ApiModelProperty(value = "所属省编码")
|
||||
private String province;
|
||||
//所属市级名称
|
||||
@ApiModelProperty(value = "所属市级名称")
|
||||
private String cityName;
|
||||
//所属市级编码
|
||||
@ApiModelProperty(value = "所属市级编码")
|
||||
private String city;
|
||||
//所属区县名称
|
||||
@ApiModelProperty(value = "所属区县名称")
|
||||
private String countryName;
|
||||
//所属区县编码
|
||||
@ApiModelProperty(value = "所属区县编码")
|
||||
private String country;
|
||||
//所属乡镇名称
|
||||
@ApiModelProperty(value = "所属乡镇名称")
|
||||
private String villageName;
|
||||
//所属乡镇编码
|
||||
@ApiModelProperty(value = "所属乡镇编码")
|
||||
private String village;
|
||||
//所属街道名称
|
||||
@ApiModelProperty(value = "所属街道名称")
|
||||
private String streetName;
|
||||
//所属街道编码
|
||||
@ApiModelProperty(value = "所属街道编码")
|
||||
private String street;
|
||||
//公司简介
|
||||
@ApiModelProperty(value = "公司简介")
|
||||
private String descr;
|
||||
//有无职业卫生信息,1:是,2:否
|
||||
@ApiModelProperty(value = "有无职业卫生信息,1:是,2:否")
|
||||
private Integer whetherHygiene;
|
||||
//有无重大危险源,1:是,2:否
|
||||
@ApiModelProperty(value = "有无重大危险源,1:是,2:否")
|
||||
private Integer whetherHazards;
|
||||
//是否有稀缺大型应急物资或设施,1:是,2:否
|
||||
@ApiModelProperty(value = "是否有稀缺大型应急物资或设施,1:是,2:否")
|
||||
private Integer whetherScarce;
|
||||
//是否涉及危化品,1:是,2:否
|
||||
@ApiModelProperty(value = "是否涉及危化品,1:是,2:否")
|
||||
private Integer whetherChemicals;
|
||||
//有无特种设备,1:是,2:否
|
||||
@ApiModelProperty(value = "有无特种设备,1:是,2:否")
|
||||
private Integer whetherSpecialequipment;
|
||||
//有无特存种作业人员,1:是,2:否
|
||||
@ApiModelProperty(value = "有无特存种作业人员,1:是,2:否")
|
||||
private Integer whetherSpecialpeople;
|
||||
//是否涉及煤气,1:是,2:否
|
||||
@ApiModelProperty(value = "是否涉及煤气,1:是,2:否")
|
||||
private Integer whetherCoalgas;
|
||||
//是否属于消防重点单位,1:是,2:否
|
||||
@ApiModelProperty(value = "是否属于消防重点单位,1:是,2:否")
|
||||
private Integer whetherFire;
|
||||
//是否在有限空间作业,1:是,2:否
|
||||
@ApiModelProperty(value = "是否在有限空间作业,1:是,2:否")
|
||||
private Integer whetherConfined;
|
||||
//是否存在涉爆粉尘作业,1:是,2:否
|
||||
@ApiModelProperty(value = "是否存在涉爆粉尘作业,1:是,2:否")
|
||||
private Integer whetherPowder;
|
||||
//是否涉及防雷防静电,1:是,2:否
|
||||
@ApiModelProperty(value = "是否涉及防雷防静电,1:是,2:否")
|
||||
private Integer whetherLightning;
|
||||
//是否涉及危化品管道,1:是,2:否
|
||||
@ApiModelProperty(value = "是否涉及危化品管道,1:是,2:否")
|
||||
private Integer whetherPipeline;
|
||||
//是否持有放射源,1:是,2:否
|
||||
@ApiModelProperty(value = "是否持有放射源,1:是,2:否")
|
||||
private Integer whetherActinogen;
|
||||
//是否涉及液氨制冷,1:是,2:否
|
||||
@ApiModelProperty(value = "是否涉及液氨制冷,1:是,2:否")
|
||||
private Integer whetherLiquidammonia;
|
||||
//乐观锁
|
||||
@ApiModelProperty(value = "乐观锁")
|
||||
private Integer version;
|
||||
//创建人
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private Long createId;
|
||||
//创建人姓名
|
||||
@ApiModelProperty(value = "创建人姓名")
|
||||
private String createName;
|
||||
//创建时间
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
//更新人
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private Long updateId;
|
||||
//修改人名称
|
||||
@ApiModelProperty(value = "修改人名称")
|
||||
private String updateName;
|
||||
//更新时间
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
//描述
|
||||
@ApiModelProperty(value = "描述")
|
||||
private String remarks;
|
||||
//是否删除
|
||||
@ApiModelProperty(value = "是否删除")
|
||||
private String deleteEnum;
|
||||
//租户ID
|
||||
@ApiModelProperty(value = "租户ID")
|
||||
private Long tenantId;
|
||||
//机构ID
|
||||
@ApiModelProperty(value = "机构ID")
|
||||
private Long orgId;
|
||||
//环境
|
||||
@ApiModelProperty(value = "环境")
|
||||
private String env;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
package com.zcloud.basic.info.persistence.dataobject;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.jjb.saas.framework.repository.basedo.BaseDO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 09:54:17
|
||||
*/
|
||||
@Data
|
||||
@TableName("corp_qualification_info")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CorpQualificationInfoDO extends BaseDO {
|
||||
|
||||
//资质id
|
||||
@ApiModelProperty(value = "资质id")
|
||||
private String corpQualificationinfoId;
|
||||
//企业id
|
||||
@ApiModelProperty(value = "企业id")
|
||||
private Long corpinfoId;
|
||||
//资质名称
|
||||
@ApiModelProperty(value = "资质名称")
|
||||
private String qualificationName;
|
||||
|
||||
@ApiModelProperty(value = "证书有效期", name = "validityTime", required = true)
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date validityTime;
|
||||
|
||||
//证书编号
|
||||
@ApiModelProperty(value = "证书编号")
|
||||
private String certificateNo;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,83 @@
|
|||
package com.zcloud.basic.info.persistence.dataobject;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.jjb.saas.framework.repository.basedo.BaseDO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-30 10:10:48
|
||||
*/
|
||||
@Data
|
||||
@TableName("department")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class DepartmentDO extends BaseDO {
|
||||
|
||||
//部门id
|
||||
@ApiModelProperty(value = "部门id")
|
||||
private String departmentId;
|
||||
//名称
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String name;
|
||||
//父部门id
|
||||
@ApiModelProperty(value = "父部门id")
|
||||
private Long parentId;
|
||||
//负责人
|
||||
@ApiModelProperty(value = "负责人")
|
||||
private String headman;
|
||||
//负责人手机号
|
||||
@ApiModelProperty(value = "负责人手机号")
|
||||
private String phone;
|
||||
//地址
|
||||
@ApiModelProperty(value = "地址")
|
||||
private String address;
|
||||
//所属企业
|
||||
@ApiModelProperty(value = "所属企业")
|
||||
private Long corpinfoId;
|
||||
//部门级别编码
|
||||
@ApiModelProperty(value = "部门级别编码")
|
||||
private String level;
|
||||
//部门级别名称
|
||||
@ApiModelProperty(value = "部门级别名称")
|
||||
private String levelName;
|
||||
//部门排序
|
||||
@ApiModelProperty(value = "部门排序")
|
||||
private Integer depOrder;
|
||||
//是否监管部门 0-否 1-是
|
||||
@ApiModelProperty(value = "是否监管部门 0-否 1-是")
|
||||
private Integer isSupervise;
|
||||
//0安监部门1消防部门
|
||||
@ApiModelProperty(value = "0安监部门1消防部门")
|
||||
private Integer state;
|
||||
//主管领导
|
||||
@ApiModelProperty(value = "主管领导")
|
||||
private String leaderCharge;
|
||||
//分管领导人
|
||||
@ApiModelProperty(value = "分管领导人")
|
||||
private String lrman;
|
||||
//部门类别:1.行业监管 2.综合监管
|
||||
@ApiModelProperty(value = "部门类别:1.行业监管 2.综合监管")
|
||||
private Integer category;
|
||||
//单位类型名称
|
||||
@ApiModelProperty(value = "单位类型名称")
|
||||
private String deptTypeName;
|
||||
//单位类型编码
|
||||
@ApiModelProperty(value = "单位类型编码")
|
||||
private String deptType;
|
||||
//部门类型编码
|
||||
@ApiModelProperty(value = "部门类型编码")
|
||||
private String type;
|
||||
//部门类型名称
|
||||
@ApiModelProperty(value = "部门类型名称")
|
||||
private String typeName;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -1,13 +1,12 @@
|
|||
package com.zcloud.basic.info.persistence.dataobject;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.jjb.saas.framework.repository.basedo.BaseDO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
|
|
@ -18,7 +17,7 @@ import java.time.LocalDateTime;
|
|||
*/
|
||||
@Data
|
||||
@TableName("sys_user")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
//@EqualsAndHashCode(callSuper = true)
|
||||
public class SysUserDO extends BaseDO {
|
||||
//GBS用户id
|
||||
@ApiModelProperty(value = "GBS用户id")
|
||||
|
|
@ -137,6 +136,7 @@ public class SysUserDO extends BaseDO {
|
|||
private String village;
|
||||
//乐观锁
|
||||
@ApiModelProperty(value = "乐观锁")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Integer version;
|
||||
//创建人
|
||||
@ApiModelProperty(value = "创建人")
|
||||
|
|
|
|||
|
|
@ -0,0 +1,17 @@
|
|||
package com.zcloud.basic.info.persistence.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zcloud.basic.info.persistence.dataobject.CorpFormDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:27
|
||||
*/
|
||||
@Mapper
|
||||
public interface CorpFormMapper extends BaseMapper<CorpFormDO> {
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.zcloud.basic.info.persistence.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zcloud.basic.info.persistence.dataobject.CorpInfoDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:16
|
||||
*/
|
||||
@Mapper
|
||||
public interface CorpInfoMapper extends BaseMapper<CorpInfoDO> {
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.zcloud.basic.info.persistence.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zcloud.basic.info.persistence.dataobject.CorpQualificationInfoDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:46
|
||||
*/
|
||||
@Mapper
|
||||
public interface CorpQualificationInfoMapper extends BaseMapper<CorpQualificationInfoDO> {
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
package com.zcloud.basic.info.persistence.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.jjb.saas.framework.datascope.annotation.DataScope;
|
||||
import com.jjb.saas.framework.datascope.annotation.DataScopes;
|
||||
import com.zcloud.basic.info.persistence.dataobject.DepartmentDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:03:20
|
||||
*/
|
||||
@Mapper
|
||||
//@DataScopes(
|
||||
// @DataScope(method = "selectPage", menuPerms = "open_platform_100012", tenantAlias = "tenant_id")
|
||||
//)
|
||||
public interface DepartmentMapper extends BaseMapper<DepartmentDO> {
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
package com.zcloud.basic.info.persistence.repository;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.jjb.saas.framework.repository.repo.BaseRepository;
|
||||
import com.zcloud.basic.info.persistence.dataobject.CorpFormDO;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:27
|
||||
*/
|
||||
public interface CorpFormRepository extends BaseRepository<CorpFormDO> {
|
||||
PageResponse<CorpFormDO> listPage(Map<String, Object> parmas);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
package com.zcloud.basic.info.persistence.repository;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.jjb.saas.framework.repository.repo.BaseRepository;
|
||||
import com.zcloud.basic.info.persistence.dataobject.CorpInfoDO;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:17
|
||||
*/
|
||||
public interface CorpInfoRepository extends BaseRepository<CorpInfoDO> {
|
||||
PageResponse<CorpInfoDO> listPage(Map<String, Object> parmas);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
package com.zcloud.basic.info.persistence.repository;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.jjb.saas.framework.repository.repo.BaseRepository;
|
||||
import com.zcloud.basic.info.persistence.dataobject.CorpQualificationInfoDO;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:46
|
||||
*/
|
||||
public interface CorpQualificationInfoRepository extends BaseRepository<CorpQualificationInfoDO> {
|
||||
PageResponse<CorpQualificationInfoDO> listPage(Map<String, Object> parmas);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package com.zcloud.basic.info.persistence.repository;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.jjb.saas.framework.repository.repo.BaseRepository;
|
||||
import com.zcloud.basic.info.persistence.dataobject.CorpInfoDO;
|
||||
import com.zcloud.basic.info.persistence.dataobject.DepartmentDO;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:03:20
|
||||
*/
|
||||
public interface DepartmentRepository extends BaseRepository<DepartmentDO> {
|
||||
PageResponse<DepartmentDO> listPage(Map<String, Object> parmas);
|
||||
|
||||
List<DepartmentDO> listTree(Map<String, Object> parmas);
|
||||
|
||||
List<DepartmentDO> listByParams(Map<String, Object> departParmas);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.basic.info.persistence.repository.impl;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.jjb.saas.framework.repository.common.PageHelper;
|
||||
import com.jjb.saas.framework.repository.repo.impl.BaseRepositoryImpl;
|
||||
import com.zcloud.basic.info.persistence.dataobject.CorpFormDO;
|
||||
import com.zcloud.basic.info.persistence.mapper.CorpFormMapper;
|
||||
import com.zcloud.basic.info.persistence.repository.CorpFormRepository;
|
||||
import com.zcloud.basic.info.utils.Query;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:27
|
||||
*/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
public class CorpFormRepositoryImpl extends BaseRepositoryImpl<CorpFormMapper, CorpFormDO> implements CorpFormRepository {
|
||||
private final CorpFormMapper corpFormMapper;
|
||||
|
||||
@Override
|
||||
public PageResponse<CorpFormDO> listPage(Map<String, Object> parmas) {
|
||||
IPage<CorpFormDO> iPage = new Query<CorpFormDO>().getPage(parmas);
|
||||
QueryWrapper<CorpFormDO> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper = PageQueryHelper.createPageQueryWrapper(queryWrapper, parmas);
|
||||
queryWrapper.orderByDesc("create_time");
|
||||
IPage<CorpFormDO> result = corpFormMapper.selectPage(iPage, queryWrapper);
|
||||
return PageHelper.pageToResponse(result, result.getRecords());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
package com.zcloud.basic.info.persistence.repository.impl;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.jjb.saas.framework.repository.common.PageHelper;
|
||||
import com.jjb.saas.framework.repository.repo.impl.BaseRepositoryImpl;
|
||||
import com.zcloud.basic.info.persistence.dataobject.CorpInfoDO;
|
||||
import com.zcloud.basic.info.persistence.mapper.CorpInfoMapper;
|
||||
import com.zcloud.basic.info.persistence.repository.CorpInfoRepository;
|
||||
import com.zcloud.basic.info.utils.Query;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:17
|
||||
*/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
public class CorpInfoRepositoryImpl extends BaseRepositoryImpl<CorpInfoMapper, CorpInfoDO> implements CorpInfoRepository {
|
||||
private final CorpInfoMapper corpInfoMapper;
|
||||
|
||||
@Override
|
||||
public PageResponse<CorpInfoDO> listPage(Map<String, Object> parmas) {
|
||||
IPage<CorpInfoDO> iPage = new Query<CorpInfoDO>().getPage(parmas);
|
||||
QueryWrapper<CorpInfoDO> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper = PageQueryHelper.createPageQueryWrapper(queryWrapper, parmas);
|
||||
queryWrapper.orderByDesc("create_time");
|
||||
IPage<CorpInfoDO> result = corpInfoMapper.selectPage(iPage, queryWrapper);
|
||||
return PageHelper.pageToResponse(result, result.getRecords());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
package com.zcloud.basic.info.persistence.repository.impl;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.jjb.saas.framework.repository.common.PageHelper;
|
||||
import com.jjb.saas.framework.repository.repo.impl.BaseRepositoryImpl;
|
||||
import com.zcloud.basic.info.persistence.dataobject.CorpQualificationInfoDO;
|
||||
import com.zcloud.basic.info.persistence.mapper.CorpQualificationInfoMapper;
|
||||
import com.zcloud.basic.info.persistence.repository.CorpQualificationInfoRepository;
|
||||
import com.zcloud.basic.info.utils.Query;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import com.zcloud.gbscommon.utils.Tools;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:02:46
|
||||
*/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
public class CorpQualificationInfoRepositoryImpl extends BaseRepositoryImpl<CorpQualificationInfoMapper, CorpQualificationInfoDO> implements CorpQualificationInfoRepository {
|
||||
private final CorpQualificationInfoMapper corpQualificationInfoMapper;
|
||||
|
||||
@Override
|
||||
public PageResponse<CorpQualificationInfoDO> listPage(Map<String, Object> parmas) {
|
||||
Object keyWords = parmas.get("keyWords");
|
||||
IPage<CorpQualificationInfoDO> iPage = new Query<CorpQualificationInfoDO>().getPage(parmas);
|
||||
QueryWrapper<CorpQualificationInfoDO> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper = PageQueryHelper.createPageQueryWrapper(queryWrapper, parmas);
|
||||
if (keyWords != null && !Tools.isEmpty(keyWords.toString())) {
|
||||
queryWrapper.and(i -> i.like("qualification_name", keyWords).or().like("certificate_no", keyWords));
|
||||
}
|
||||
queryWrapper.orderByDesc("create_time");
|
||||
IPage<CorpQualificationInfoDO> result = corpQualificationInfoMapper.selectPage(iPage, queryWrapper);
|
||||
return PageHelper.pageToResponse(result, result.getRecords());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
package com.zcloud.basic.info.persistence.repository.impl;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.jjb.saas.framework.repository.common.PageHelper;
|
||||
import com.jjb.saas.framework.repository.repo.impl.BaseRepositoryImpl;
|
||||
import com.zcloud.basic.info.persistence.dataobject.CorpInfoDO;
|
||||
import com.zcloud.basic.info.persistence.dataobject.DepartmentDO;
|
||||
import com.zcloud.basic.info.persistence.mapper.DepartmentMapper;
|
||||
import com.zcloud.basic.info.persistence.repository.DepartmentRepository;
|
||||
import com.zcloud.basic.info.utils.Query;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhaokai
|
||||
* @Date 2025-10-29 16:03:20
|
||||
*/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
public class DepartmentRepositoryImpl extends BaseRepositoryImpl<DepartmentMapper, DepartmentDO> implements DepartmentRepository {
|
||||
private final DepartmentMapper departmentMapper;
|
||||
|
||||
@Override
|
||||
public PageResponse<DepartmentDO> listPage(Map<String, Object> parmas) {
|
||||
IPage<DepartmentDO> iPage = new Query<DepartmentDO>().getPage(parmas);
|
||||
QueryWrapper<DepartmentDO> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper = PageQueryHelper.createPageQueryWrapper(queryWrapper, parmas);
|
||||
queryWrapper.orderByDesc("dep_order");
|
||||
IPage<DepartmentDO> result = departmentMapper.selectPage(iPage, queryWrapper);
|
||||
return PageHelper.pageToResponse(result, result.getRecords());
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<DepartmentDO> listTree(Map<String, Object> parmas) {
|
||||
QueryWrapper<DepartmentDO> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper = PageQueryHelper.createPageQueryWrapper(queryWrapper, parmas);
|
||||
queryWrapper.orderByDesc("dep_order");
|
||||
List<DepartmentDO> departmentDOList = departmentMapper.selectList(queryWrapper);
|
||||
if (CollUtil.isEmpty(departmentDOList)) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
return departmentDOList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<DepartmentDO> listByParams(Map<String, Object> parmas) {
|
||||
IPage<DepartmentDO> iPage = new Query<DepartmentDO>().getPage(parmas);
|
||||
QueryWrapper<DepartmentDO> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper = PageQueryHelper.createPageQueryWrapper(queryWrapper, parmas);
|
||||
queryWrapper.orderByDesc("create_time");
|
||||
List<DepartmentDO> departmentDOList = departmentMapper.selectList(queryWrapper);
|
||||
return departmentDOList;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<?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.zcloud.basic.info.persistence.mapper.CorpFormMapper">
|
||||
|
||||
</mapper>
|
||||
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<?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.zcloud.basic.info.persistence.mapper.CorpInfoMapper">
|
||||
|
||||
</mapper>
|
||||
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<?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.zcloud.basic.info.persistence.mapper.CorpQualificationInfoMapper">
|
||||
|
||||
</mapper>
|
||||
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<?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.zcloud.basic.info.persistence.mapper.DepartmentMapper">
|
||||
|
||||
</mapper>
|
||||
|
||||
Loading…
Reference in New Issue