From 7f850ef29605ab90a9b7a3069a55ef171f867fc9 Mon Sep 17 00:00:00 2001 From: xd <844539747@qq.com> Date: Thu, 18 Jul 2024 09:19:57 +0800 Subject: [PATCH] '123' --- .../web/controller/bid/BidController.java | 12 ++++++++++ .../com/ruoyi/bid/domain/RbTongLvPrice.java | 22 +++++++++++++++++++ .../java/com/ruoyi/bid/mapper/BidMapper.java | 8 +++++++ .../com/ruoyi/bid/service/IBidService.java | 7 ++++++ .../bid/service/impl/BidServiceImpl.java | 11 ++++++++++ .../main/resources/mapper/bid/BidMapper.xml | 6 +++++ ruoyi-ui/src/api/bid/bid.js | 8 +++++++ ruoyi-ui/src/views/bid/bid/index.vue | 13 ++++++----- .../components/Tools/PeopleSelect/index.vue | 1 - 9 files changed, 82 insertions(+), 6 deletions(-) create mode 100644 ruoyi-system/src/main/java/com/ruoyi/bid/domain/RbTongLvPrice.java diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/bid/BidController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/bid/BidController.java index 3dbacb6..a5ca080 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/bid/BidController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/bid/BidController.java @@ -451,6 +451,18 @@ public class BidController extends BaseController return ajax; } + /** + * 根据调价版本uid获取铜铝价格 + * @param rbUid + * @return + */ + @DataSource(DataSourceType.OAREDBOOK) + @GetMapping(value = "/getTongLvPrice/{rbUid}") + public AjaxResult getTongLvPrice(@PathVariable("rbUid") String rbUid) + { + return success(bidService.getTongLvPrice(rbUid)); + } + /** * 获取redis 调价日期 * @param type diff --git a/ruoyi-system/src/main/java/com/ruoyi/bid/domain/RbTongLvPrice.java b/ruoyi-system/src/main/java/com/ruoyi/bid/domain/RbTongLvPrice.java new file mode 100644 index 0000000..35f5491 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/bid/domain/RbTongLvPrice.java @@ -0,0 +1,22 @@ +package com.ruoyi.bid.domain; + +public class RbTongLvPrice { + private String tong_price_0; + private String lv_price_0; + + public String getTong_price_0() { + return tong_price_0; + } + + public void setTong_price_0(String tong_price_0) { + this.tong_price_0 = tong_price_0; + } + + public String getLv_price_0() { + return lv_price_0; + } + + public void setLv_price_0(String lv_price_0) { + this.lv_price_0 = lv_price_0; + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/bid/mapper/BidMapper.java b/ruoyi-system/src/main/java/com/ruoyi/bid/mapper/BidMapper.java index 4337a4a..c56e78b 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/bid/mapper/BidMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/bid/mapper/BidMapper.java @@ -2,6 +2,7 @@ package com.ruoyi.bid.mapper; import java.util.List; import com.ruoyi.bid.domain.Bid; +import com.ruoyi.bid.domain.RbTongLvPrice; import com.ruoyi.bid.domain.SysOaBid; import com.ruoyi.redBook.domain.RbVersionDateResult; @@ -98,4 +99,11 @@ public interface BidMapper * @return */ String rb_price_version(); + + /** + * 根据调价版本uid获取铜铝价格 + * @param rbUid + * @return + */ + RbTongLvPrice getTongLvPrice(String rbUid); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/bid/service/IBidService.java b/ruoyi-system/src/main/java/com/ruoyi/bid/service/IBidService.java index b799be3..144d8af 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/bid/service/IBidService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/bid/service/IBidService.java @@ -2,6 +2,7 @@ package com.ruoyi.bid.service; import java.util.List; import com.ruoyi.bid.domain.Bid; +import com.ruoyi.bid.domain.RbTongLvPrice; import com.ruoyi.bid.domain.SysOaBid; import com.ruoyi.quot.domain.Quot; import com.ruoyi.redBook.domain.RbVersionDateResult; @@ -101,4 +102,10 @@ public interface IBidService */ String rb_price_version(); + /** + * 根据调价版本uid获取铜铝价格 + * @param rbUid + * @return + */ + RbTongLvPrice getTongLvPrice(String rbUid); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/bid/service/impl/BidServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/bid/service/impl/BidServiceImpl.java index 9b160de..7006258 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/bid/service/impl/BidServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/bid/service/impl/BidServiceImpl.java @@ -2,6 +2,7 @@ package com.ruoyi.bid.service.impl; import java.util.List; +import com.ruoyi.bid.domain.RbTongLvPrice; import com.ruoyi.bid.domain.SysOaBid; import com.ruoyi.common.annotation.DataScope; import com.ruoyi.common.annotation.DataSource; @@ -158,4 +159,14 @@ public class BidServiceImpl implements IBidService public String rb_price_version() { return bidMapper.rb_price_version(); } + + /** + * 根据调价版本uid获取铜铝价格 + * @param rbUid + * @return + */ + @Override + public RbTongLvPrice getTongLvPrice(String rbUid) { + return bidMapper.getTongLvPrice(rbUid); + } } diff --git a/ruoyi-system/src/main/resources/mapper/bid/BidMapper.xml b/ruoyi-system/src/main/resources/mapper/bid/BidMapper.xml index 04ceb94..f892f8f 100644 --- a/ruoyi-system/src/main/resources/mapper/bid/BidMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/bid/BidMapper.xml @@ -454,4 +454,10 @@ where sta_0=1 or sta_0=0 group by date_0 )a order by date_0 desc + + diff --git a/ruoyi-ui/src/api/bid/bid.js b/ruoyi-ui/src/api/bid/bid.js index d0661c3..e65ab05 100644 --- a/ruoyi-ui/src/api/bid/bid.js +++ b/ruoyi-ui/src/api/bid/bid.js @@ -106,3 +106,11 @@ export function versionList(query) { params: query }) } + +//根据调价版本uid获取铜铝价格 +export function getTongLvPrice(rbUid) { + return request({ + url: '/bid/bid/getTongLvPrice/'+rbUid, + method: 'get' + }) +} diff --git a/ruoyi-ui/src/views/bid/bid/index.vue b/ruoyi-ui/src/views/bid/bid/index.vue index 0920c40..835066d 100644 --- a/ruoyi-ui/src/views/bid/bid/index.vue +++ b/ruoyi-ui/src/views/bid/bid/index.vue @@ -402,7 +402,7 @@ -