1、增加权限字

2、异常处理标段设置成归档
This commit is contained in:
dxc
2021-03-19 15:48:25 +08:00
parent a970f6fe33
commit 6f13b6a6c5
13 changed files with 63 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import com.chinaunicom.mall.ebtp.project.dict.service.IDictProjectService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -37,6 +38,7 @@ public class DictProjectController{
*/ */
@ApiOperation("插入新数据") @ApiOperation("插入新数据")
@PostMapping("") @PostMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid DictProject dictProject){ public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid DictProject dictProject){
boolean save = dictProjectService.save(dictProject); boolean save = dictProjectService.save(dictProject);
@ -53,6 +55,7 @@ public class DictProjectController{
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PutMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody DictProject dictProject){ public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody DictProject dictProject){

View File

@ -7,6 +7,7 @@ import com.chinaunicom.mall.ebtp.project.dict.service.IDictProvincesCodeService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -33,6 +34,7 @@ public class DictProvincesCodeController{
*/ */
@ApiOperation("插入新数据") @ApiOperation("插入新数据")
@PostMapping("") @PostMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid DictProvincesCode dictProvincesCode){ public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid DictProvincesCode dictProvincesCode){
boolean save = idictProvincesCodeService.save(dictProvincesCode); boolean save = idictProvincesCodeService.save(dictProvincesCode);
@ -47,6 +49,7 @@ public class DictProvincesCodeController{
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PutMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody DictProvincesCode dictProvincesCode){ public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody DictProvincesCode dictProvincesCode){
return BaseResponse.success(idictProvincesCodeService.updateById(dictProvincesCode)); return BaseResponse.success(idictProvincesCodeService.updateById(dictProvincesCode));

View File

@ -7,6 +7,7 @@ import com.chinaunicom.mall.ebtp.project.dict.service.IDictRegionService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -35,6 +36,7 @@ public class DictRegionController{
*/ */
@ApiOperation("插入新数据") @ApiOperation("插入新数据")
@PostMapping("") @PostMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid DictRegion dictRegion){ public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid DictRegion dictRegion){
boolean save = idictRegionService.save(dictRegion); boolean save = idictRegionService.save(dictRegion);
@ -51,6 +53,7 @@ public class DictRegionController{
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PutMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody DictRegion dictRegion){ public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody DictRegion dictRegion){
return BaseResponse.success(idictRegionService.updateById(dictRegion)); return BaseResponse.success(idictRegionService.updateById(dictRegion));

View File

@ -8,6 +8,7 @@ import com.chinaunicom.mall.ebtp.project.dictchooseprocess.service.IDictChoosePr
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -31,6 +32,7 @@ public class DictChooseProcessController{
*/ */
@ApiOperation("插入新数据") @ApiOperation("插入新数据")
@PostMapping("") @PostMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid DictChooseProcess dictChooseProcess){ public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid DictChooseProcess dictChooseProcess){
boolean save = dictChooseProcessService.save(dictChooseProcess); boolean save = dictChooseProcessService.save(dictChooseProcess);
@ -47,6 +49,7 @@ public class DictChooseProcessController{
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PutMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody DictChooseProcess dictChooseProcess){ public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody DictChooseProcess dictChooseProcess){
return BaseResponse.success(dictChooseProcessService.updateById(dictChooseProcess)); return BaseResponse.success(dictChooseProcessService.updateById(dictChooseProcess));

View File

@ -16,6 +16,7 @@ import com.chinaunicom.mall.ebtp.project.projectentrust.entity.inquiryentity.Inq
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -48,6 +49,7 @@ public class ProjectEntrustController{
*/ */
@ApiOperation("插入新数据") @ApiOperation("插入新数据")
@PostMapping("") @PostMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-sub-admin','ebtp-agency-admin')")
public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid ProjectEntrust projectEntrust){ public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid ProjectEntrust projectEntrust){
boolean save = projectEntrustService.save(projectEntrust); boolean save = projectEntrustService.save(projectEntrust);
@ -64,6 +66,7 @@ public class ProjectEntrustController{
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PutMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-sub-admin','ebtp-agency-admin')")
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectEntrust projectEntrust){ public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectEntrust projectEntrust){
return BaseResponse.success(projectEntrustService.updateById(projectEntrust)); return BaseResponse.success(projectEntrustService.updateById(projectEntrust));
@ -78,6 +81,7 @@ public class ProjectEntrustController{
*/ */
@ApiOperation("查询数据") @ApiOperation("查询数据")
@GetMapping("/{id}") @GetMapping("/{id}")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-sub-admin','ebtp-agency-admin','ebtp-agency-project-manager')")
public BaseResponse<ProjectEntrustVO> get(@ApiParam(value = "主键id", required = true) @PathVariable String id){ public BaseResponse<ProjectEntrustVO> get(@ApiParam(value = "主键id", required = true) @PathVariable String id){
ProjectEntrust projectEntrust = projectEntrustService.getById(id); ProjectEntrust projectEntrust = projectEntrustService.getById(id);
@ -93,6 +97,7 @@ public class ProjectEntrustController{
*/ */
@ApiOperation("查询分页数据") @ApiOperation("查询分页数据")
@PostMapping("/getPage") @PostMapping("/getPage")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-sub-admin','ebtp-agency-admin','ebtp-agency-project-manager')")
public BaseResponse<IPage<ProjectEntrustVO>> getPage(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectEntrustVO projectEntrust){ public BaseResponse<IPage<ProjectEntrustVO>> getPage(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectEntrustVO projectEntrust){
return BaseResponse.success(projectEntrustService.getPage(projectEntrust)); return BaseResponse.success(projectEntrustService.getPage(projectEntrust));
@ -109,6 +114,7 @@ public class ProjectEntrustController{
*/ */
@ApiOperation("分派项目经理") @ApiOperation("分派项目经理")
@PostMapping("/dispatch/{id}") @PostMapping("/dispatch/{id}")
@PreAuthorize("hasAnyAuthority('ebtp-agency-sub-admin','ebtp-agency-admin')")
public BaseResponse<Boolean> dispatch( public BaseResponse<Boolean> dispatch(
@ApiParam(value = "主键id", required = true) @PathVariable String id, @ApiParam(value = "主键id", required = true) @PathVariable String id,
@ApiParam(value = "主键id", required = true) @RequestBody ProjectEntrustVO projectEntrust){ @ApiParam(value = "主键id", required = true) @RequestBody ProjectEntrustVO projectEntrust){
@ -126,6 +132,7 @@ public class ProjectEntrustController{
*/ */
@ApiOperation("取消分派项目经理") @ApiOperation("取消分派项目经理")
@GetMapping("/retractDispatch/{id}") @GetMapping("/retractDispatch/{id}")
@PreAuthorize("hasAnyAuthority('ebtp-agency-sub-admin','ebtp-agency-admin')")
public BaseResponse<Boolean> retractDispatch(@ApiParam(value = "主键id", required = true) @PathVariable String id){ public BaseResponse<Boolean> retractDispatch(@ApiParam(value = "主键id", required = true) @PathVariable String id){
return BaseResponse.success(projectEntrustService.retractDispatch(id)); return BaseResponse.success(projectEntrustService.retractDispatch(id));
@ -141,6 +148,7 @@ public class ProjectEntrustController{
*/ */
@ApiOperation("委托机构拒绝") @ApiOperation("委托机构拒绝")
@GetMapping("/agencyCompanyDispatch/{id}") @GetMapping("/agencyCompanyDispatch/{id}")
@PreAuthorize("hasAnyAuthority('ebtp-agency-sub-admin','ebtp-agency-admin','ebtp-agency-project-manager')")
public BaseResponse<Boolean> agencyCompanyDispatch(@ApiParam(value = "主键id", required = true) @PathVariable String id, public BaseResponse<Boolean> agencyCompanyDispatch(@ApiParam(value = "主键id", required = true) @PathVariable String id,
@ApiParam(value = "拒绝信息", required = true) String remarks){ @ApiParam(value = "拒绝信息", required = true) String remarks){
@ -156,6 +164,7 @@ public class ProjectEntrustController{
*/ */
@ApiOperation("项目经理同意") @ApiOperation("项目经理同意")
@GetMapping("/projectManagerAgree/{id}") @GetMapping("/projectManagerAgree/{id}")
@PreAuthorize("hasAnyAuthority('ebtp-agency-project-manager')")
public BaseResponse<Boolean> projectManagerAgree(@ApiParam(value = "主键id", required = true) @PathVariable String id){ public BaseResponse<Boolean> projectManagerAgree(@ApiParam(value = "主键id", required = true) @PathVariable String id){
return BaseResponse.success(projectEntrustService.projectManagerAgree(id)); return BaseResponse.success(projectEntrustService.projectManagerAgree(id));
@ -170,6 +179,7 @@ public class ProjectEntrustController{
*/ */
@ApiOperation("项目经理拒绝") @ApiOperation("项目经理拒绝")
@GetMapping("/projectManagerRefuse/{id}") @GetMapping("/projectManagerRefuse/{id}")
@PreAuthorize("hasAnyAuthority('ebtp-agency-project-manager')")
public BaseResponse<Boolean> projectManagerRefuse(@ApiParam(value = "主键id", required = true) @PathVariable String id){ public BaseResponse<Boolean> projectManagerRefuse(@ApiParam(value = "主键id", required = true) @PathVariable String id){
return BaseResponse.success(projectEntrustService.projectManagerRefuse(id)); return BaseResponse.success(projectEntrustService.projectManagerRefuse(id));

View File

@ -10,6 +10,7 @@ import com.chinaunicom.mall.ebtp.project.projectexception.service.IProjectExcept
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -37,6 +38,7 @@ public class ProjectExceptionController{
*/ */
@ApiOperation("插入新数据") @ApiOperation("插入新数据")
@PostMapping("") @PostMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid ProjectExceptionVO projectExceptionVO){ public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid ProjectExceptionVO projectExceptionVO){
boolean save = projectExceptionService.insert(projectExceptionVO); boolean save = projectExceptionService.insert(projectExceptionVO);
@ -51,6 +53,7 @@ public class ProjectExceptionController{
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PutMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectExceptionVO projectExceptionVO){ public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectExceptionVO projectExceptionVO){
return BaseResponse.success(projectExceptionService.update(projectExceptionVO)); return BaseResponse.success(projectExceptionService.update(projectExceptionVO));
} }
@ -94,6 +97,7 @@ public class ProjectExceptionController{
*/ */
@ApiOperation("移除异常信息") @ApiOperation("移除异常信息")
@DeleteMapping("/{id}") @DeleteMapping("/{id}")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> delete(@ApiParam(value = "主键id", required = true) @PathVariable String id){ public BaseResponse<Boolean> delete(@ApiParam(value = "主键id", required = true) @PathVariable String id){
return BaseResponse.success(projectExceptionService.delete(id)); return BaseResponse.success(projectExceptionService.delete(id));
@ -108,6 +112,7 @@ public class ProjectExceptionController{
*/ */
@ApiOperation("项目异常生效") @ApiOperation("项目异常生效")
@PutMapping("/{id}") @PutMapping("/{id}")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> updateState(@ApiParam(value = "主键id", required = true) @PathVariable String id){ public BaseResponse<Boolean> updateState(@ApiParam(value = "主键id", required = true) @PathVariable String id){
return BaseResponse.success(projectExceptionService.updateState(id)); return BaseResponse.success(projectExceptionService.updateState(id));

View File

@ -263,6 +263,7 @@ public class ProjectExceptionServiceImpl extends BaseServiceImpl<ProjectExceptio
projectRecordService.updateById(projectRecord); projectRecordService.updateById(projectRecord);
section.setStatus(ProjectCommonUtil.SECTION_STATUS_9); section.setStatus(ProjectCommonUtil.SECTION_STATUS_9);
section.setBusinessModule(ProjectCommonUtil.BUSINESS_MODULE_12);
projectSectionService.updateById(section); projectSectionService.updateById(section);
return result; return result;
} }

View File

@ -10,6 +10,7 @@ import com.chinaunicom.mall.ebtp.project.projectrecord.service.IProjectRecordSer
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -42,6 +43,7 @@ public class ProjectRecordController{
*/ */
@ApiOperation("插入新数据") @ApiOperation("插入新数据")
@PostMapping("") @PostMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid ProjectRecordVO projectRecord){ public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid ProjectRecordVO projectRecord){
boolean save = projectRecordService.save(projectRecord); boolean save = projectRecordService.save(projectRecord);
@ -58,6 +60,7 @@ public class ProjectRecordController{
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PutMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> update( public BaseResponse<Boolean> update(
@ApiParam(value = "对象数据", required = true) @RequestBody ProjectRecordVO projectRecord){ @ApiParam(value = "对象数据", required = true) @RequestBody ProjectRecordVO projectRecord){
@ -103,6 +106,7 @@ public class ProjectRecordController{
*/ */
@ApiOperation("更换项目经理") @ApiOperation("更换项目经理")
@PutMapping("/updateAppManager") @PutMapping("/updateAppManager")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> updateAppManager(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectRecordVO projectRecord){ public BaseResponse<Boolean> updateAppManager(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectRecordVO projectRecord){
return BaseResponse.success(projectRecordService.updateAppManager(projectRecord)); return BaseResponse.success(projectRecordService.updateAppManager(projectRecord));
@ -131,6 +135,7 @@ public class ProjectRecordController{
*/ */
@ApiOperation("提交整体信息") @ApiOperation("提交整体信息")
@PostMapping("/submitProject/{id}") @PostMapping("/submitProject/{id}")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> submitProject(@ApiParam(value = "主键id", required = true) @PathVariable String id){ public BaseResponse<Boolean> submitProject(@ApiParam(value = "主键id", required = true) @PathVariable String id){
return BaseResponse.success(projectRecordService.submitProject(id)); return BaseResponse.success(projectRecordService.submitProject(id));

View File

@ -7,6 +7,7 @@ import com.chinaunicom.mall.ebtp.project.baseoperlog.aop.OperLog;
import com.chinaunicom.mall.ebtp.project.feign.entity.TraceDetail; import com.chinaunicom.mall.ebtp.project.feign.entity.TraceDetail;
import com.chinaunicom.mall.ebtp.project.feign.entity.WasUpdateBizDTO; import com.chinaunicom.mall.ebtp.project.feign.entity.WasUpdateBizDTO;
import com.chinaunicom.mall.ebtp.project.projectreevaluation.entity.ProjectReEvaluationVO; import com.chinaunicom.mall.ebtp.project.projectreevaluation.entity.ProjectReEvaluationVO;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
@ -46,6 +47,7 @@ public class ProjectReEvaluationController {
*/ */
@ApiOperation("插入新数据") @ApiOperation("插入新数据")
@PostMapping("") @PostMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid ProjectReEvaluation projectReEvaluation) { public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid ProjectReEvaluation projectReEvaluation) {
boolean save = projectReEvaluationService.save(projectReEvaluation); boolean save = projectReEvaluationService.save(projectReEvaluation);
@ -61,6 +63,7 @@ public class ProjectReEvaluationController {
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PutMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectReEvaluation projectReEvaluation) { public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectReEvaluation projectReEvaluation) {
@ -89,6 +92,7 @@ public class ProjectReEvaluationController {
*/ */
@ApiOperation("删除数据") @ApiOperation("删除数据")
@DeleteMapping("/{id}") @DeleteMapping("/{id}")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> delete(@ApiParam(value = "主键id", required = true) @PathVariable String id){ public BaseResponse<Boolean> delete(@ApiParam(value = "主键id", required = true) @PathVariable String id){
return BaseResponse.success(projectReEvaluationService.delete(id)); return BaseResponse.success(projectReEvaluationService.delete(id));
} }
@ -101,6 +105,7 @@ public class ProjectReEvaluationController {
*/ */
@ApiOperation("提交审批") @ApiOperation("提交审批")
@PostMapping("/submitForApproval/{id}") @PostMapping("/submitForApproval/{id}")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> submitForApproval(@ApiParam(value = "主键id", required = true) @PathVariable String id) { public BaseResponse<Boolean> submitForApproval(@ApiParam(value = "主键id", required = true) @PathVariable String id) {
return BaseResponse.success(projectReEvaluationService.submitForApproval(id)); return BaseResponse.success(projectReEvaluationService.submitForApproval(id));

View File

@ -10,6 +10,7 @@ import com.chinaunicom.mall.ebtp.project.projectsection.service.IProjectSectionS
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -41,6 +42,7 @@ public class ProjectSectionController{
*/ */
@ApiOperation("插入新数据") @ApiOperation("插入新数据")
@PostMapping("") @PostMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid ProjectSectionVO projectSection){ public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid ProjectSectionVO projectSection){
boolean save = projectSectionService.save(projectSection); boolean save = projectSectionService.save(projectSection);
@ -57,6 +59,7 @@ public class ProjectSectionController{
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PutMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectSectionVO projectSection){ public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectSectionVO projectSection){
return BaseResponse.success(projectSectionService.update(projectSection)); return BaseResponse.success(projectSectionService.update(projectSection));
@ -129,6 +132,7 @@ public class ProjectSectionController{
*/ */
@ApiOperation("标段修改业务模块 资审招标到资审投标") @ApiOperation("标段修改业务模块 资审招标到资审投标")
@PostMapping("/qualificationBidToTender") @PostMapping("/qualificationBidToTender")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> qualificationBidToTender(@ApiParam(value = "项目标段ID集合", required = true) @RequestParam(name = "sectionIds") List<String> sectionIds){ public BaseResponse<Boolean> qualificationBidToTender(@ApiParam(value = "项目标段ID集合", required = true) @RequestParam(name = "sectionIds") List<String> sectionIds){
return BaseResponse.success(projectSectionService.qualificationBidToTender(sectionIds)); return BaseResponse.success(projectSectionService.qualificationBidToTender(sectionIds));
@ -141,6 +145,7 @@ public class ProjectSectionController{
*/ */
@ApiOperation("标段修改业务模块 资审投标到资审开标") @ApiOperation("标段修改业务模块 资审投标到资审开标")
@PostMapping("/qualificationTenderToOpening") @PostMapping("/qualificationTenderToOpening")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> qualificationTenderToOpening(@ApiParam(value = "项目标段ID", required = true) @RequestParam(name = "sectionId") String sectionId){ public BaseResponse<Boolean> qualificationTenderToOpening(@ApiParam(value = "项目标段ID", required = true) @RequestParam(name = "sectionId") String sectionId){
return BaseResponse.success(projectSectionService.qualificationTenderToOpening(sectionId)); return BaseResponse.success(projectSectionService.qualificationTenderToOpening(sectionId));
@ -153,6 +158,7 @@ public class ProjectSectionController{
*/ */
@ApiOperation("标段修改业务模块 资审开标到资审评标") @ApiOperation("标段修改业务模块 资审开标到资审评标")
@PostMapping("/qualificationOpeningToEvaluation") @PostMapping("/qualificationOpeningToEvaluation")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> qualificationOpeningToEvaluation(@ApiParam(value = "项目标段ID", required = true) @RequestParam(name = "sectionId") String sectionId){ public BaseResponse<Boolean> qualificationOpeningToEvaluation(@ApiParam(value = "项目标段ID", required = true) @RequestParam(name = "sectionId") String sectionId){
return BaseResponse.success(projectSectionService.qualificationOpeningToEvaluation(sectionId)); return BaseResponse.success(projectSectionService.qualificationOpeningToEvaluation(sectionId));
@ -165,6 +171,7 @@ public class ProjectSectionController{
*/ */
@ApiOperation("标段修改业务模块 资审评标到资审定标") @ApiOperation("标段修改业务模块 资审评标到资审定标")
@PostMapping("/qualificationEvaluationToCalibration") @PostMapping("/qualificationEvaluationToCalibration")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> qualificationEvaluationToCalibration(@ApiParam(value = "项目标段ID", required = true) @RequestParam(name = "sectionId") String sectionId){ public BaseResponse<Boolean> qualificationEvaluationToCalibration(@ApiParam(value = "项目标段ID", required = true) @RequestParam(name = "sectionId") String sectionId){
return BaseResponse.success(projectSectionService.qualificationEvaluationToCalibration(sectionId)); return BaseResponse.success(projectSectionService.qualificationEvaluationToCalibration(sectionId));
@ -177,6 +184,7 @@ public class ProjectSectionController{
*/ */
@ApiOperation("标段修改业务模块 资审定标到招标") @ApiOperation("标段修改业务模块 资审定标到招标")
@PostMapping("/qualificationEvaluationToBid") @PostMapping("/qualificationEvaluationToBid")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> qualificationEvaluationToBid(@ApiParam(value = "项目标段ID", required = true) @RequestParam(name = "sectionId") String sectionId){ public BaseResponse<Boolean> qualificationEvaluationToBid(@ApiParam(value = "项目标段ID", required = true) @RequestParam(name = "sectionId") String sectionId){
return BaseResponse.success(projectSectionService.qualificationEvaluationToBid(sectionId)); return BaseResponse.success(projectSectionService.qualificationEvaluationToBid(sectionId));
@ -189,6 +197,7 @@ public class ProjectSectionController{
*/ */
@ApiOperation("标段修改业务模块 招标到投标") @ApiOperation("标段修改业务模块 招标到投标")
@PostMapping("/bidToTender") @PostMapping("/bidToTender")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> bidToTender(@ApiParam(value = "项目标段ID集合", required = true) @RequestParam(name = "sectionIds") List<String> sectionIds){ public BaseResponse<Boolean> bidToTender(@ApiParam(value = "项目标段ID集合", required = true) @RequestParam(name = "sectionIds") List<String> sectionIds){
return BaseResponse.success(projectSectionService.bidToTender(sectionIds)); return BaseResponse.success(projectSectionService.bidToTender(sectionIds));
@ -201,6 +210,7 @@ public class ProjectSectionController{
*/ */
@ApiOperation("标段修改业务模块 投标到开标") @ApiOperation("标段修改业务模块 投标到开标")
@PostMapping("/tenderToOpening") @PostMapping("/tenderToOpening")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> tenderToOpening(@ApiParam(value = "项目标段ID", required = true) @RequestParam(name = "sectionId") String sectionId){ public BaseResponse<Boolean> tenderToOpening(@ApiParam(value = "项目标段ID", required = true) @RequestParam(name = "sectionId") String sectionId){
return BaseResponse.success(projectSectionService.tenderToOpening(sectionId)); return BaseResponse.success(projectSectionService.tenderToOpening(sectionId));
@ -213,6 +223,7 @@ public class ProjectSectionController{
*/ */
@ApiOperation("标段修改业务模块 开标到评标") @ApiOperation("标段修改业务模块 开标到评标")
@PostMapping("/openingToEvaluation") @PostMapping("/openingToEvaluation")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> openingToEvaluation(@ApiParam(value = "项目标段ID", required = true) @RequestParam(name = "sectionId") String sectionId){ public BaseResponse<Boolean> openingToEvaluation(@ApiParam(value = "项目标段ID", required = true) @RequestParam(name = "sectionId") String sectionId){
return BaseResponse.success(projectSectionService.openingToEvaluation(sectionId)); return BaseResponse.success(projectSectionService.openingToEvaluation(sectionId));
@ -225,6 +236,7 @@ public class ProjectSectionController{
*/ */
@ApiOperation("标段修改业务模块 评标到定标") @ApiOperation("标段修改业务模块 评标到定标")
@PostMapping("/evaluationToCalibration") @PostMapping("/evaluationToCalibration")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> evaluationToCalibration(@ApiParam(value = "项目标段ID", required = true) @RequestParam(name = "sectionId") String sectionId){ public BaseResponse<Boolean> evaluationToCalibration(@ApiParam(value = "项目标段ID", required = true) @RequestParam(name = "sectionId") String sectionId){
return BaseResponse.success(projectSectionService.evaluationToCalibration(sectionId)); return BaseResponse.success(projectSectionService.evaluationToCalibration(sectionId));
@ -237,6 +249,7 @@ public class ProjectSectionController{
*/ */
@ApiOperation("标段修改业务模块 修改标段到归档") @ApiOperation("标段修改业务模块 修改标段到归档")
@PostMapping("/calibrationToArchive") @PostMapping("/calibrationToArchive")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> calibrationToArchive(@ApiParam(value = "项目标段ID", required = true) @RequestParam(name = "sectionId") String sectionId){ public BaseResponse<Boolean> calibrationToArchive(@ApiParam(value = "项目标段ID", required = true) @RequestParam(name = "sectionId") String sectionId){
return BaseResponse.success(projectSectionService.calibrationToArchive(sectionId)); return BaseResponse.success(projectSectionService.calibrationToArchive(sectionId));
@ -249,6 +262,7 @@ public class ProjectSectionController{
*/ */
@ApiOperation("标段修改业务模块 定标到评标") @ApiOperation("标段修改业务模块 定标到评标")
@PostMapping("/calibrationToEvaluation") @PostMapping("/calibrationToEvaluation")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> calibrationToEvaluation(@ApiParam(value = "项目标段ID集合", required = true) @RequestParam(name = "sectionId") String sectionId){ public BaseResponse<Boolean> calibrationToEvaluation(@ApiParam(value = "项目标段ID集合", required = true) @RequestParam(name = "sectionId") String sectionId){
return BaseResponse.success(projectSectionService.calibrationToEvaluation(sectionId)); return BaseResponse.success(projectSectionService.calibrationToEvaluation(sectionId));
@ -261,6 +275,7 @@ public class ProjectSectionController{
*/ */
@ApiOperation("标段修改业务模块 定标到投标 招募多轮专用") @ApiOperation("标段修改业务模块 定标到投标 招募多轮专用")
@PostMapping("/calibrationToTender") @PostMapping("/calibrationToTender")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> calibrationToTender(@ApiParam(value = "项目标段ID集合", required = true) @RequestParam(name = "sectionId") String sectionId){ public BaseResponse<Boolean> calibrationToTender(@ApiParam(value = "项目标段ID集合", required = true) @RequestParam(name = "sectionId") String sectionId){
return BaseResponse.success(projectSectionService.calibrationToTender(sectionId)); return BaseResponse.success(projectSectionService.calibrationToTender(sectionId));

View File

@ -7,6 +7,7 @@ import com.chinaunicom.mall.ebtp.project.projectupdatefield.service.IProjectUpda
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -34,6 +35,7 @@ public class ProjectUpdateFieldController{
*/ */
@ApiOperation("插入新数据") @ApiOperation("插入新数据")
@PostMapping("") @PostMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid ProjectUpdateField projectUpdateField){ public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid ProjectUpdateField projectUpdateField){
boolean save = projectUpdateFieldService.save(projectUpdateField); boolean save = projectUpdateFieldService.save(projectUpdateField);
@ -50,6 +52,7 @@ public class ProjectUpdateFieldController{
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PutMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectUpdateField projectUpdateField){ public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectUpdateField projectUpdateField){
@ -65,6 +68,7 @@ public class ProjectUpdateFieldController{
*/ */
@ApiOperation("查询数据") @ApiOperation("查询数据")
@GetMapping("/{id}") @GetMapping("/{id}")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<ProjectUpdateField> get(@ApiParam(value = "主键id", required = true) @PathVariable String id){ public BaseResponse<ProjectUpdateField> get(@ApiParam(value = "主键id", required = true) @PathVariable String id){
ProjectUpdateField projectUpdateField = projectUpdateFieldService.getById(id); ProjectUpdateField projectUpdateField = projectUpdateFieldService.getById(id);

View File

@ -8,6 +8,7 @@ import com.chinaunicom.mall.ebtp.project.sectionmaterial.service.ISectionMateria
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -38,6 +39,7 @@ public class SectionMaterialController{
*/ */
@ApiOperation("插入新数据") @ApiOperation("插入新数据")
@PostMapping("") @PostMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid SectionMaterialVO sectionMaterial){ public BaseResponse<Boolean> insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid SectionMaterialVO sectionMaterial){
boolean save = sectionMaterialService.save(sectionMaterial); boolean save = sectionMaterialService.save(sectionMaterial);
@ -54,6 +56,7 @@ public class SectionMaterialController{
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PutMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody SectionMaterialVO sectionMaterial){ public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody SectionMaterialVO sectionMaterial){
int i = sectionMaterialService.update(sectionMaterial); int i = sectionMaterialService.update(sectionMaterial);

View File

@ -8,6 +8,7 @@ import com.chinaunicom.mall.ebtp.project.sectionsupplier.service.ISectionSupplie
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -37,6 +38,7 @@ public class SectionSupplierController{
*/ */
@ApiOperation("插入新数据") @ApiOperation("插入新数据")
@PostMapping("") @PostMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> insert(@ApiParam(value = "供应商对象数据", required = true) @RequestBody @Valid SectionSupplierVO sectionSupplierVO){ public BaseResponse<Boolean> insert(@ApiParam(value = "供应商对象数据", required = true) @RequestBody @Valid SectionSupplierVO sectionSupplierVO){
boolean save = sectionSupplierService.save(sectionSupplierVO); boolean save = sectionSupplierService.save(sectionSupplierVO);
@ -53,6 +55,7 @@ public class SectionSupplierController{
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PutMapping("")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> update(@ApiParam(value = "供应商对象数据", required = true) @RequestBody SectionSupplierVO sectionSupplierVO){ public BaseResponse<Boolean> update(@ApiParam(value = "供应商对象数据", required = true) @RequestBody SectionSupplierVO sectionSupplierVO){
int i = sectionSupplierService.update(sectionSupplierVO); int i = sectionSupplierService.update(sectionSupplierVO);