From e89ddfecabf994fc86fcafd6600d84df653c3fc3 Mon Sep 17 00:00:00 2001 From: "DESKTOP-369JRHT\\12997" <9> Date: Fri, 13 Oct 2023 18:14:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=B9=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fuintAdmin/src/api/oilPrice.js | 39 +- fuintAdmin/src/views/oilPrice/index.vue | 380 +++++++++++++----- .../controller/OilNameController.java | 7 + .../controller/OilNumberController.java | 18 +- .../controller/OilPresetPricesController.java | 8 + .../entity/OilName.java | 9 +- .../entity/OilNumber.java | 12 +- .../entity/OilPresetPrices.java | 9 +- .../mapper/OilNameMapper.java | 3 + .../mapper/OilNumberMapper.java | 11 + .../mapper/OilPresetPricesMapper.java | 6 +- .../mapper/xml/OilNameMapper.xml | 14 +- .../mapper/xml/OilNumberMapper.xml | 24 +- .../mapper/xml/OilPresetPricesMapper.xml | 76 ++-- .../service/OilNameService.java | 3 + .../service/OilNumberService.java | 12 +- .../service/OilPresetPricesService.java | 10 +- .../service/impl/OilNameServiceImpl.java | 6 + .../service/impl/OilNumberServiceImpl.java | 20 + .../impl/OilPresetPricesServiceImpl.java | 82 +++- .../task/PresetPrices.java | 28 ++ 21 files changed, 607 insertions(+), 170 deletions(-) create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/task/PresetPrices.java diff --git a/fuintAdmin/src/api/oilPrice.js b/fuintAdmin/src/api/oilPrice.js index 0577796a8..4e8433b4d 100644 --- a/fuintAdmin/src/api/oilPrice.js +++ b/fuintAdmin/src/api/oilPrice.js @@ -37,7 +37,7 @@ export function dictSelect(data) { }) } -// 字典查询 +// export function getOilPresetList(data) { return request({ url: 'business/petrolStationManagement/oilPresetPrices/getList', @@ -45,3 +45,40 @@ export function getOilPresetList(data) { data: data }) } + + +// 查询油品 +export function getOilNameListApi(data) { + return request({ + url: '/business/petrolStationManagement/oilNumber/getOilName', + method: 'get', + params: data + }) +} +// 查询油品名称 +export function getOilNameApi(data) { + return request({ + url: '/business/petrolStationManagement/oilName/getList', + method: 'get', + params: data + }) +} +// 查询油品名称 +export function getAllOilListApi(data) { + return request({ + url: '/business/petrolStationManagement/oilName/getOilName', + method: 'get', + params: data + }) +} + +// 新增预设 +export function insertOilPresePricesApi(data) { + return request({ + url: 'business/petrolStationManagement/oilPresetPrices', + method: 'post', + data: data + }) +} + + diff --git a/fuintAdmin/src/views/oilPrice/index.vue b/fuintAdmin/src/views/oilPrice/index.vue index 4ed2aeba6..bd657d956 100644 --- a/fuintAdmin/src/views/oilPrice/index.vue +++ b/fuintAdmin/src/views/oilPrice/index.vue @@ -8,18 +8,21 @@