![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
weixin_54641063
这个作者很懒,什么都没留下…
展开
-
关于使用elementUI自定义排序失效问题
关于使用elementUI自定义排序失效问题、 项目有这样一个需求:做报表的时候要整张表进行排序,使用elementUI的sortable只是在本页分页,需要在 Table 上监听sort-change事件 tableChange(column){ if (column.order == 'descending') { this.columnOrder=false }else{ this.columnOrder=true } this.col原创 2022-04-14 09:41:44 · 1296 阅读 · 0 评论 -
导出Excel
第一种:blobToDownload 需要返回一个文件流 import {blobToDownload} from '@/libs/util'; components: {blobToDownload}, blobToDownload(result, '供应商报价信息') /** * 导出Excel */ public FileRespVO getSinglePageExport(PageReq<FinaBillPurchaseDetailParam> req){原创 2022-03-22 10:36:16 · 57 阅读 · 0 评论 -
关于mybatis 中order by不生效的问题
关于mybatis 中order by不生效的问题 order by:开发过程中遇见sql在数据库中执行能生效,但是在程序中不生效,也不报错,找了很久原因 原 <if test="orderBy != null and orderBy != ''" > order BY #{orderBy} </if> 需要使用$ 放在注入,# $ 区别 <if test="orderBy != null and orderBy !=原创 2022-03-21 16:29:09 · 2171 阅读 · 0 评论 -
all elements are null 解决方法
list.size = 1 但是all elements are null ,一开始以为是字段不对,其实应该使用resultMap匹配别名。 开始是 <select id="search" resultType="com.jiuzhou.center.kitchen.entity.base.info.WarePrintdataUpdateParam"> WarePrintdataUpdateParam点进去,返回的字段是有驼峰的别名,使用BaseResultMap可以识别 <select原创 2021-12-30 19:33:58 · 710 阅读 · 0 评论 -
Vue- emit等组件之间调用方法
Vue- emit使用 父组件定义一个方法,在引入组件时携带,子组件即可使用父组件的方法 父引入 <DetailModal v-if="productShow" :modal="productShow" @closemodal="closemodal" @savedetail="savedetail" @save="save" :haveChosenRows="haveChosenRows" ></De原创 2021-12-30 16:23:15 · 635 阅读 · 0 评论 -
mysql 子查询【1】
mysql 子查询【1】摘要 摘要 主要是理解一下,将第一个查询结果作为表第二张表,再继续查询 子查询 SELECT o.f_order_number, tms.`f_driver_name` AS driverName, tms.`f_driver_contact` AS driverContact, tms.`f_plate_no` AS plateNo, o.f_distribution_date batTime FROM `t_sor_tms_info` tms LE原创 2021-12-02 21:28:19 · 56 阅读 · 0 评论 -
关于mybatis 中if 标签不生效的问题
关于mybatis 中if 标签不生效的问题 在标签内进行字符串比较的时候,标签内容总是不走下一个判断,代码如下: <if test="extend == '-1'"> and wpc.f_print_count IS NULL </if> 字符串比较的时候,比较内容应该使用双引号而不是单引号,如下: <if test='extend == "-1"'> and wpc.f_print_count IS NULL </if> ...原创 2021-11-27 18:06:22 · 664 阅读 · 0 评论 -
this.$nextTick
关于vue组件渲染顺序问题 由于vue异步,组件渲染顺序不一定,导致代码执行的顺序不一样使用this.$nextTick作为渲染完成后的回调,最后执行的代码 this.nextTick官方解释: 将回调延迟到下次 DOM (简单理解为js对象)更新循环之后执行。 一些需要等到dom渲染结束后才执行的操作(如获取元素宽,高),就用到this.$nextTick() this.$nextTick(() => { this.$refs.cusSelect.clear() })原创 2021-11-19 16:37:25 · 475 阅读 · 0 评论 -
Stream流练习
Stream流练习 Trader @Data @AllArgsConstructor public class Trader { /** * 姓名 * */ private final String name ; /** * 工作地点 * */ private final String city; } Transaction @Data @AllArgsConstructor public class Transaction {原创 2021-10-21 08:49:06 · 117 阅读 · 0 评论