liuhj 3 лет назад
Родитель
Сommit
21dc97d80e

+ 10 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/weighbridge/TblWeightinfoController.java

@@ -47,6 +47,16 @@ public class TblWeightinfoController extends BaseController
     }
 
     /**
+     * 根据车牌号查询称重单列表-不分页
+     */
+    @GetMapping(value = "getWeightInfo/{serialNo}")
+    public AjaxResult getWeightInfo(TblWeightinfo tblWeightinfo)
+    {
+        List<TblWeightinfo> list = tblWeightinfoService.selectTblWeightinfoByPlateNo(tblWeightinfo);
+        return AjaxResult.success(list);
+    }
+
+    /**
      * 导出称重单列表
      */
     @PreAuthorize("@ss.hasPermi('weighbridge:weightInfo:export')")

+ 8 - 0
ruoyi-system/src/main/java/com/ruoyi/weighbridge/service/ITblWeightinfoService.java

@@ -58,4 +58,12 @@ public interface ITblWeightinfoService
      * @return 结果
      */
     public int deleteTblWeightinfoBySerialNo(String serialNo);
+
+    /**
+     * 根据车牌号查询称重单
+     *
+     * @param plateNo 车牌号
+     * @return 结果
+     */
+    public List<TblWeightinfo> selectTblWeightinfoByPlateNo(String plateNo);
 }

+ 12 - 0
ruoyi-system/src/main/java/com/ruoyi/weighbridge/service/impl/TblWeightinfoServiceImpl.java

@@ -92,4 +92,16 @@ public class TblWeightinfoServiceImpl implements ITblWeightinfoService
     {
         return tblWeightinfoMapper.deleteTblWeightinfoBySerialNo(serialNo);
     }
+
+    /**
+     * 根据车牌号查询称重单
+     *
+     * @param plateNo 车牌号
+     * @return 结果
+     */
+    @Override
+    public List<TblWeightinfo> selectTblWeightinfoByPlateNo(String plateNo)
+    {
+        return tblWeightinfoMapper.selectTblWeightinfoByPlateNo(plateNo);
+    }
 }