feat:封闭区域人员申请、审批、授权

koumen
dearLin 2026-03-20 09:22:59 +08:00
parent 9e4ac5e95e
commit e724eadebb
3 changed files with 17 additions and 6 deletions

View File

@ -19,11 +19,13 @@ import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.util.ArrayList;
/**
* web-adapter
* @Author dearLin
* @Date 2026-03-19 10:27:50
*/
* web-adapter
*
* @Author dearLin
* @Date 2026-03-19 10:27:50
*/
@Api(tags = "封闭区域")
@RequestMapping("/${application.gateway}/closedArea")
@RestController
@ -49,9 +51,13 @@ public class ClosedAreaController {
public PageResponse<ClosedAreaCO> page(@RequestBody ClosedAreaPageQry qry) {
return closedAreaService.listPage(qry);
}
@ApiOperation("跟据管辖单位查询封闭区域")
@GetMapping("/listAllByJurisdictionalCorpId/{id}")
public MultiResponse<ClosedAreaCO> listAllByJurisdictionalCorpId(@PathVariable("id") Long id) {
if (id == null) {
id = AuthContext.getTenantId();
}
return closedAreaService.listAllByJurisdictionalCorpId(id);
}
@ -70,7 +76,7 @@ public class ClosedAreaController {
@ApiOperation("删除多个")
@DeleteMapping("/ids")
public Response removeBatch(@RequestParam Long[] ids) {
public Response removeBatch(@RequestParam Long[] ids) {
closedAreaService.removeBatch(ids);
return SingleResponse.buildSuccess();
}

View File

@ -39,7 +39,7 @@ public class ClosedAreaPersonApplyController {
return Response.buildSuccess();
}
@ApiOperation("审批人员申请")
@ApiOperation("审批人员审批")
@PostMapping("/auditPersonApply")
public Response auditPersonApply(@RequestBody ClosedAreaPersonApplyAuditCmd auditCmd) {
if (!(auditCmd.getAuditFlag().equals(2) || auditCmd.getAuditFlag().equals(3))) {

View File

@ -6,6 +6,8 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.sql.Date;
import java.util.HashMap;
import java.util.List;
/**
@ -121,5 +123,8 @@ public class ClosedAreaPersonApplyCO extends ClientObject {
@ApiModelProperty(value = "当前用户是否能审核。1能审核2不能审核", name = "currentUserCanAudit")
private Integer currentUserCanAudit;
@ApiModelProperty(value = "人员进出记录", name = "personInOutRecord")
private List<HashMap> personInOutRecord;
}