feat:封闭区域人员申请、审批、授权
parent
9e4ac5e95e
commit
e724eadebb
|
|
@ -19,11 +19,13 @@ import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* web-adapter
|
* web-adapter
|
||||||
* @Author dearLin
|
*
|
||||||
* @Date 2026-03-19 10:27:50
|
* @Author dearLin
|
||||||
*/
|
* @Date 2026-03-19 10:27:50
|
||||||
|
*/
|
||||||
@Api(tags = "封闭区域")
|
@Api(tags = "封闭区域")
|
||||||
@RequestMapping("/${application.gateway}/closedArea")
|
@RequestMapping("/${application.gateway}/closedArea")
|
||||||
@RestController
|
@RestController
|
||||||
|
|
@ -49,9 +51,13 @@ public class ClosedAreaController {
|
||||||
public PageResponse<ClosedAreaCO> page(@RequestBody ClosedAreaPageQry qry) {
|
public PageResponse<ClosedAreaCO> page(@RequestBody ClosedAreaPageQry qry) {
|
||||||
return closedAreaService.listPage(qry);
|
return closedAreaService.listPage(qry);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("跟据管辖单位查询封闭区域")
|
@ApiOperation("跟据管辖单位查询封闭区域")
|
||||||
@GetMapping("/listAllByJurisdictionalCorpId/{id}")
|
@GetMapping("/listAllByJurisdictionalCorpId/{id}")
|
||||||
public MultiResponse<ClosedAreaCO> listAllByJurisdictionalCorpId(@PathVariable("id") Long id) {
|
public MultiResponse<ClosedAreaCO> listAllByJurisdictionalCorpId(@PathVariable("id") Long id) {
|
||||||
|
if (id == null) {
|
||||||
|
id = AuthContext.getTenantId();
|
||||||
|
}
|
||||||
return closedAreaService.listAllByJurisdictionalCorpId(id);
|
return closedAreaService.listAllByJurisdictionalCorpId(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ public class ClosedAreaPersonApplyController {
|
||||||
return Response.buildSuccess();
|
return Response.buildSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("审批人员申请")
|
@ApiOperation("审批人员审批")
|
||||||
@PostMapping("/auditPersonApply")
|
@PostMapping("/auditPersonApply")
|
||||||
public Response auditPersonApply(@RequestBody ClosedAreaPersonApplyAuditCmd auditCmd) {
|
public Response auditPersonApply(@RequestBody ClosedAreaPersonApplyAuditCmd auditCmd) {
|
||||||
if (!(auditCmd.getAuditFlag().equals(2) || auditCmd.getAuditFlag().equals(3))) {
|
if (!(auditCmd.getAuditFlag().equals(2) || auditCmd.getAuditFlag().equals(3))) {
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@ import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.sql.Date;
|
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")
|
@ApiModelProperty(value = "当前用户是否能审核。1,能审核2不能审核", name = "currentUserCanAudit")
|
||||||
private Integer currentUserCanAudit;
|
private Integer currentUserCanAudit;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "人员进出记录", name = "personInOutRecord")
|
||||||
|
private List<HashMap> personInOutRecord;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue