From a5bf4aa853f00aef9548e949f2e5c903a8e2fa4d Mon Sep 17 00:00:00 2001 From: wangh <123456> Date: Tue, 2 Aug 2022 13:26:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E6=9C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/BaseFpPlanqtyController.java | 8 +-- .../mapper/system/BaseFpPlanqtyMapper.xml | 5 +- .../mapper/system/BroadDataMapper.xml | 58 ++++++++++++++----- .../system/base_planqty/base_planqty.html | 20 ++++--- 4 files changed, 60 insertions(+), 31 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/controller/BaseFpPlanqtyController.java b/ruoyi-system/src/main/java/com/ruoyi/system/controller/BaseFpPlanqtyController.java index 2a6f8fc..6cb86d4 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/controller/BaseFpPlanqtyController.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/controller/BaseFpPlanqtyController.java @@ -87,13 +87,7 @@ public class BaseFpPlanqtyController extends BaseController public AjaxResult addSave(BaseFpPlanqty baseFpPlanqty) { - List list = baseFpPlanqtyService.selectBaseFpPlanqtyList(null); - int id=0; - System.out.println(list); - if (list!=null||!list.isEmpty()){ - id= Math.toIntExact(list.get(list.size() - 1).getId()) + 1; - } - baseFpPlanqty.setId(Long.valueOf(id)); + return toAjax(baseFpPlanqtyService.insertBaseFpPlanqty(baseFpPlanqty)); } diff --git a/ruoyi-system/src/main/resources/mapper/system/BaseFpPlanqtyMapper.xml b/ruoyi-system/src/main/resources/mapper/system/BaseFpPlanqtyMapper.xml index 8240906..5bc0485 100644 --- a/ruoyi-system/src/main/resources/mapper/system/BaseFpPlanqtyMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/BaseFpPlanqtyMapper.xml @@ -4,13 +4,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + + - select qty, id from base_fp_planqty + select qty, id,create_time from base_fp_planqty