put&delete

This commit is contained in:
fuqingji
2022-06-13 09:58:29 +08:00
parent 05ee0d1f89
commit a82484d05c
14 changed files with 18 additions and 19 deletions

View File

@ -54,7 +54,7 @@ public class DictProjectController{
* @return 返回结果 * @return 返回结果
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-system-admin')") @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

@ -48,7 +48,7 @@ public class DictProvincesCodeController{
* @return 返回结果 * @return 返回结果
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-system-admin')") @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){

View File

@ -52,7 +52,7 @@ public class DictRegionController{
* @return 返回结果 * @return 返回结果
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-system-admin')") @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){

View File

@ -48,7 +48,7 @@ public class DictChooseProcessController{
* @return 返回结果 * @return 返回结果
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-system-admin')") @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){

View File

@ -8,7 +8,6 @@ import com.chinaunicom.mall.ebtp.project.feign.fallback.EbtpMallBidClientFallbac
import com.chinaunicom.mall.ebtp.project.sectionsupplier.entity.SectionSupplierVO; import com.chinaunicom.mall.ebtp.project.sectionsupplier.entity.SectionSupplierVO;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import java.util.List; import java.util.List;
@ -28,7 +27,7 @@ public interface EbtpMallBidApi {
* @param sectionIds 标段ID集合 * @param sectionIds 标段ID集合
* @return 返回结果 * @return 返回结果
*/ */
@PutMapping("/v1/anno/abnormal") @PostMapping("/v1/anno/abnormal")
BaseResponse<Boolean> abnormal(@RequestBody List<String> sectionIds); BaseResponse<Boolean> abnormal(@RequestBody List<String> sectionIds);

View File

@ -69,7 +69,7 @@ public class ProjectEntrustController{
* @return 返回结果 * @return 返回结果
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-sub-admin','ebtp-agency-admin')") @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){

View File

@ -55,7 +55,7 @@ public class ProjectExceptionController{
* @return * @return
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')") @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));
@ -99,7 +99,7 @@ public class ProjectExceptionController{
* @return * @return
*/ */
@ApiOperation("移除异常信息") @ApiOperation("移除异常信息")
@DeleteMapping("/{id}") @PostMapping("/delete/{id}")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')") @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){
@ -114,7 +114,7 @@ public class ProjectExceptionController{
* @return * @return
*/ */
@ApiOperation("项目异常生效") @ApiOperation("项目异常生效")
@PutMapping("/{id}") @PostMapping("/{id}")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')") @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){

View File

@ -44,7 +44,7 @@ public class ProjectSectionExceptionController{
* @return * @return
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PostMapping("/update")
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectSectionException projectSectionException){ public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectSectionException projectSectionException){
return BaseResponse.success(projectSectionExceptionService.updateById(projectSectionException)); return BaseResponse.success(projectSectionExceptionService.updateById(projectSectionException));

View File

@ -63,7 +63,7 @@ public class ProjectRecordController{
* @return 返回结果 * @return 返回结果
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')") @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){
@ -109,7 +109,7 @@ public class ProjectRecordController{
* @return 返回结果 * @return 返回结果
*/ */
@ApiOperation("更换项目经理") @ApiOperation("更换项目经理")
@PutMapping("/updateAppManager") @PostMapping("/updateAppManager")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')") @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){

View File

@ -56,7 +56,7 @@ public class ProjectReEvaluationController {
* @return * @return
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')") @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) {
@ -85,7 +85,7 @@ public class ProjectReEvaluationController {
* @return 返回结果 * @return 返回结果
*/ */
@ApiOperation("删除数据") @ApiOperation("删除数据")
@DeleteMapping("/{id}") @PostMapping("/delete/{id}")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')") @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));

View File

@ -62,7 +62,7 @@ public class ProjectSectionController{
* @return 返回结果 * @return 返回结果
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')") @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){
checkUtil.checkName(projectSection.getBidSectName()); checkUtil.checkName(projectSection.getBidSectName());

View File

@ -51,7 +51,7 @@ public class ProjectUpdateFieldController{
* @return 返回结果 * @return 返回结果
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')") @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){

View File

@ -55,7 +55,7 @@ public class SectionMaterialController{
* @return 返回结果 * @return 返回结果
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')") @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){

View File

@ -54,7 +54,7 @@ public class SectionSupplierController{
* @return 返回结果 * @return 返回结果
*/ */
@ApiOperation("修改数据") @ApiOperation("修改数据")
@PutMapping("") @PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')") @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){