zhangyuewww 3 лет назад
Родитель
Сommit
6b8a702476

+ 8 - 5
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/controller/PriceConfirmationSheetController.java

@@ -4,11 +4,7 @@ package com.yh.saas.plugin.yiliangyiyun.controller;
 import com.yh.saas.plugin.yiliangyiyun.entity.PriceConfirmationSheet;
 import com.yh.saas.plugin.yiliangyiyun.service.IPriceConfirmationSheetService;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 import java.util.List;
 
@@ -64,5 +60,12 @@ public class PriceConfirmationSheetController {
     public void deletePriceConfirmationSheet(@RequestBody PriceConfirmationSheet priceConfirmationSheet){
         priceConfirmationSheetService.deletePriceConfirmationSheet(priceConfirmationSheet.getId());
     }
+    /**
+     * 查看确认单信息
+     */
+    @GetMapping("/getInfo")
+    public PriceConfirmationSheet getInfo(@RequestParam String id) {
+        return priceConfirmationSheetService.getInfo(id);
+    }
 }
 

+ 6 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/IPriceConfirmationSheetService.java

@@ -36,4 +36,10 @@ public interface IPriceConfirmationSheetService extends IService<PriceConfirmati
      * @param id
      */
     void deletePriceConfirmationSheet(String id);
+    /**
+     * 查看
+     *
+     * @param
+     */
+    PriceConfirmationSheet getInfo(String id);
 }

+ 12 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/PriceConfirmationSheetServiceImpl.java

@@ -99,4 +99,16 @@ public class PriceConfirmationSheetServiceImpl extends ServiceImpl<PriceConfirma
             this.deleteById(priceConfirmationSheet.getId());
         }
     }
+
+    /**
+     * 查看确认单信息
+     * @param id
+     * @return
+     */
+    @Override
+    public PriceConfirmationSheet getInfo(String id) {
+        // 查看信息
+        PriceConfirmationSheet priceConfirmationSheet = this.selectById(id);
+        return priceConfirmationSheet;
+    }
 }