- 博客(14)
- 收藏
- 关注
原创 MySql 递归查询 层级
相关表:t_directorySql:查询编码为1的directory的所有子级select F_Id from ( select t1.F_Id, if(find_in_set(F_ParentId, @pids) > 0, @pids := concat(@pids, ',', F_Id), 0) as ischild from ( select F_Id,F_Pa...
2020-09-22 17:02:02
1095
原创 dom4j解析xml
1.XML<?xml version=\"1.0\" encoding=\"UTF-8\" ?><salaries> <salary> <year>2019</year> <month>10</month> <number>admin</number>...
2019-11-21 14:55:24
173
原创 radio checkbox 点击文本实现选中效果
方法一:直接在选择框的外层写上label标签<label> <input type="checkbox" name="" value=""/> 线下</label>方法二:input中的id与label中的for相同,表示此label与input绑定<input type="checkbox" id="underLi...
2019-05-10 15:36:39
525
原创 获取焦点时去掉蓝色边框
加上样式:outline:none 或者outline:medium上面的样式对textarea无效的情况下:.textarea-no-border { box-shadow:none !important;}<textarea name="comment" class="textarea-no-border" readonly cols="100%" rows="...
2019-05-10 09:39:32
752
原创 oracle按时间查询
-- 当月填写工时人员数SELECT COUNT(F_USERID) AS "当月总人数" FROM T_TIMEENTRY WHERE F_ENTRYDATE BETWEEN to_date('2018-09-01','yyyy-MM-dd') AND to_date('2018-09-30','yyyy-MM-dd')
2019-04-23 16:33:43
9083
转载 获取某年的第一天和最后一天
/** * 获取某年第一天日期 * * @param year 年份 * @return Date */ public Date getYearFirst(int year) { Calendar calendar = Calendar.getInstance(); calendar.clear(); calendar.set(Cal...
2019-04-18 09:56:12
1908
原创 Freemasker 三目运算
<input type="text" name="info_${index}" class="text" value="${(infos[5] == true)?string('是', '否')?html}" readonly />
2019-04-08 11:54:45
200
原创 springBoot配置过滤器
方法1: 使用自带的FilterRegistrationBean 完成过滤器的设置代码如下:@Configurationpublic class FilterConfig {@Beanpublic FilterRegistrationBean addFilter(){FilterRegistrationBean registrationBea...
2019-03-22 14:42:27
1259
原创 div span p等标签实现可编辑
1. 适合打印页面:<div contenteditable="true" style="min-height:50px;width: 100%;border:0px"></div>contenteditable: 值为true代表可编辑,为false代表不可编辑min-height: 设置最小行高2.适合表单提交html:<span cont...
2019-03-22 13:49:24
1998
原创 前端多选框实现单选操作
html:<input type="checkbox" name="receivedGoods" value="0" class="checkBoxInput" >Entirely<input type="checkbox" name="receivedGoods" value="1" class="checkBoxInput" >Partiallyjs:$(...
2019-03-22 13:28:32
1783
原创 文本框中只能输入数字
html:<input type = "text" class = "amount"/>js:$(function() { $('.amount').each(function() { initNumberText($(this)) })})function initNumberText(element) { element...
2019-03-22 13:11:10
553
转载 阿拉伯数字转大写
package com.blingbling.text;public class test { public String toChinese(String number) { String resultString = ""; String s1[] = {"零","一","二","三","四","五","六","七","八...
2019-03-12 16:46:18
360
1
原创 Oracle查询部门级别
Oracle层级查询函数:sys_connect_by_path :主要用于树查询(层次查询) 以及 多列转行。其语法一般为: select ... sys_connect_by_path(字段名,'连接符号') from table start with ... connect by ... priorstart with:定义查找起始节点,以此开始向...
2019-03-12 13:06:47
1287
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人