Quellcode durchsuchen

ResponseStatus: 200 OK

zhangchenm vor 1 Monat
Ursprung
Commit
0cbad48528

+ 0 - 1
trade-client/src/main/java/com/trade/client/companyrelated/controller/BizEntityRelatedController.java

@@ -44,7 +44,6 @@ public class BizEntityRelatedController {
      * 新增关系企业信息
      */
     @RequestMapping("/add")
-    @ResponseStatus(HttpStatus.BAD_REQUEST)
     @Validated(OnCreate.class)
     public void add(@RequestBody @Valid BizEntityRelatedVO addBizEntity) {
         cBizEntityRelatedService.add(addBizEntity);

+ 0 - 1
trade-client/src/main/java/com/trade/client/companyrelated/controller/ImporterEntityController.java

@@ -48,7 +48,6 @@ public class ImporterEntityController {
      * 提交进口商信息
      */
     @RequestMapping("/add")
-    @ResponseStatus(HttpStatus.BAD_REQUEST)
     @Validated(OnCreate.class)
     public ResponseResult<Void> submit(@RequestBody @Valid ImporterEntity addEntity) {
         importerEntityCService.add(addEntity);

+ 0 - 2
trade-client/src/main/java/com/trade/client/companyrelated/controller/VendorEntityController.java

@@ -42,7 +42,6 @@ public class VendorEntityController {
      * 保存供应商信息
      */
     @RequestMapping("/add")
-    @ResponseStatus(HttpStatus.BAD_REQUEST)
     public ResponseResult<Void> add(@RequestBody @Valid VendorEntity addEntity) {
         vendorEntityCService.add(addEntity);
         return ResponseResult.success();
@@ -52,7 +51,6 @@ public class VendorEntityController {
      * 更新供应商信息
      */
     @RequestMapping("/update")
-    @ResponseStatus(HttpStatus.BAD_REQUEST)
     public ResponseResult<Void> update(@RequestBody @Valid VendorEntity addEntity) {
         vendorEntityCService.update(addEntity);
         return ResponseResult.success();

+ 0 - 5
trade-client/src/main/java/com/trade/client/salesorder/controller/SalesOrderController.java

@@ -44,7 +44,6 @@ public class SalesOrderController {
      * 销售订单-保存
      */
     @RequestMapping("/save")
-    @ResponseStatus(HttpStatus.BAD_REQUEST)
     public ResponseResult<Void> add(SalesOrderDTO salesOrderDTO) {
         salesOrderCService.save(salesOrderDTO, false);
         return ResponseResult.success();
@@ -54,7 +53,6 @@ public class SalesOrderController {
      * 销售订单-提交
      */
     @RequestMapping("/submit")
-    @ResponseStatus(HttpStatus.BAD_REQUEST)
     public ResponseResult<Void> submit(@RequestBody @Valid SalesOrderDTO salesOrderDTO) {
         salesOrderCService.submit(salesOrderDTO);
         return ResponseResult.success();
@@ -64,7 +62,6 @@ public class SalesOrderController {
      * 销售订单-发货
      */
     @RequestMapping("/deliver")
-    @ResponseStatus(HttpStatus.BAD_REQUEST)
     public ResponseResult<Void> deliver(@RequestBody @Valid SalesOrderDeliverDTO orderDeliverDTO) {
         salesOrderCService.deliver(orderDeliverDTO);
         return ResponseResult.success();
@@ -77,7 +74,6 @@ public class SalesOrderController {
      * @param is4Update 是否为更新
      */
     @RequestMapping("/detail")
-    @ResponseStatus(HttpStatus.BAD_REQUEST)
     public ResponseResult<SalesOrderDtlVO> detail(Long id, Boolean is4Update) {
         return ResponseResult.success(salesOrderCService.getDetail(id, is4Update));
     }
@@ -86,7 +82,6 @@ public class SalesOrderController {
      * 销售订单-删除
      */
     @RequestMapping("/delete")
-    @ResponseStatus(HttpStatus.BAD_REQUEST)
     public ResponseResult<Boolean> delete(Long id) {
         return ResponseResult.success(salesOrderCService.delete(id));
     }

+ 0 - 1
trade-client/src/main/java/com/trade/client/salesorder/controller/SalesOrderInvoiceController.java

@@ -48,7 +48,6 @@ public class SalesOrderInvoiceController {
      * @param invoiceNo 发票编号
      */
     @RequestMapping("/detail")
-    @ResponseStatus(HttpStatus.BAD_REQUEST)
     public ResponseResult<SalesOrderInvoiceDtlVO> detail(@NotBlank(message = "发票编号不能为空") String invoiceNo) {
         return ResponseResult.success(salesOrderInvoiceService.getDetailByInvoiceNo(invoiceNo));
     }

+ 0 - 1
trade-client/src/main/java/com/trade/client/salesorder/controller/SalesOrderLogisticsController.java

@@ -43,7 +43,6 @@ public class SalesOrderLogisticsController {
      * @param orderNo 订单编号
      */
     @RequestMapping("/detail")
-    @ResponseStatus(HttpStatus.BAD_REQUEST)
     public ResponseResult<SalesOrderLogisticsDtlVO> detail(@NotBlank(message = "订单编号不能为空") String orderNo) {
         return ResponseResult.success(salesOrderLogisticsService.getDetailByOrderNo(orderNo));
     }