Merge branch 'uat-put&delete' into 'master'

put&delete

See merge request eshop/biz_service_ebtp_project!2
This commit is contained in:
jlfuqj
2022-09-23 06:38:13 +00:00
14 changed files with 18 additions and 19 deletions

View File

@ -54,7 +54,7 @@ public class DictProjectController{
* @return 返回结果
*/
@ApiOperation("修改数据")
@PutMapping("")
@PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody DictProject dictProject){

View File

@ -48,7 +48,7 @@ public class DictProvincesCodeController{
* @return 返回结果
*/
@ApiOperation("修改数据")
@PutMapping("")
@PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody DictProvincesCode dictProvincesCode){

View File

@ -52,7 +52,7 @@ public class DictRegionController{
* @return 返回结果
*/
@ApiOperation("修改数据")
@PutMapping("")
@PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody DictRegion dictRegion){

View File

@ -48,7 +48,7 @@ public class DictChooseProcessController{
* @return 返回结果
*/
@ApiOperation("修改数据")
@PutMapping("")
@PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
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 org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import java.util.List;
@ -28,7 +27,7 @@ public interface EbtpMallBidApi {
* @param sectionIds 标段ID集合
* @return 返回结果
*/
@PutMapping("/v1/anno/abnormal")
@PostMapping("/v1/anno/abnormal")
BaseResponse<Boolean> abnormal(@RequestBody List<String> sectionIds);

View File

@ -69,7 +69,7 @@ public class ProjectEntrustController{
* @return 返回结果
*/
@ApiOperation("修改数据")
@PutMapping("")
@PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-sub-admin','ebtp-agency-admin')")
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectEntrust projectEntrust){

View File

@ -55,7 +55,7 @@ public class ProjectExceptionController{
* @return
*/
@ApiOperation("修改数据")
@PutMapping("")
@PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectExceptionVO projectExceptionVO){
return BaseResponse.success(projectExceptionService.update(projectExceptionVO));
@ -99,7 +99,7 @@ public class ProjectExceptionController{
* @return
*/
@ApiOperation("移除异常信息")
@DeleteMapping("/{id}")
@PostMapping("/delete/{id}")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> delete(@ApiParam(value = "主键id", required = true) @PathVariable String id){
@ -114,7 +114,7 @@ public class ProjectExceptionController{
* @return
*/
@ApiOperation("项目异常生效")
@PutMapping("/{id}")
@PostMapping("/{id}")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> updateState(@ApiParam(value = "主键id", required = true) @PathVariable String id){

View File

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

View File

@ -63,7 +63,7 @@ public class ProjectRecordController{
* @return 返回结果
*/
@ApiOperation("修改数据")
@PutMapping("")
@PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> update(
@ApiParam(value = "对象数据", required = true) @RequestBody ProjectRecordVO projectRecord){
@ -109,7 +109,7 @@ public class ProjectRecordController{
* @return 返回结果
*/
@ApiOperation("更换项目经理")
@PutMapping("/updateAppManager")
@PostMapping("/updateAppManager")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> updateAppManager(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectRecordVO projectRecord){

View File

@ -56,7 +56,7 @@ public class ProjectReEvaluationController {
* @return
*/
@ApiOperation("修改数据")
@PutMapping("")
@PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectReEvaluation projectReEvaluation) {
@ -85,7 +85,7 @@ public class ProjectReEvaluationController {
* @return 返回结果
*/
@ApiOperation("删除数据")
@DeleteMapping("/{id}")
@PostMapping("/delete/{id}")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> delete(@ApiParam(value = "主键id", required = true) @PathVariable String id){
return BaseResponse.success(projectReEvaluationService.delete(id));

View File

@ -62,7 +62,7 @@ public class ProjectSectionController{
* @return 返回结果
*/
@ApiOperation("修改数据")
@PutMapping("")
@PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectSectionVO projectSection){
checkUtil.checkName(projectSection.getBidSectName());

View File

@ -51,7 +51,7 @@ public class ProjectUpdateFieldController{
* @return 返回结果
*/
@ApiOperation("修改数据")
@PutMapping("")
@PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody ProjectUpdateField projectUpdateField){

View File

@ -55,7 +55,7 @@ public class SectionMaterialController{
* @return 返回结果
*/
@ApiOperation("修改数据")
@PutMapping("")
@PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> update(@ApiParam(value = "对象数据", required = true) @RequestBody SectionMaterialVO sectionMaterial){

View File

@ -54,7 +54,7 @@ public class SectionSupplierController{
* @return 返回结果
*/
@ApiOperation("修改数据")
@PutMapping("")
@PostMapping("/update")
@PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
public BaseResponse<Boolean> update(@ApiParam(value = "供应商对象数据", required = true) @RequestBody SectionSupplierVO sectionSupplierVO){