![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
Dorothyho
这个作者很懒,什么都没留下…
展开
-
Java中BigDecimal的8种舍入模式
java.math.BigDecimal 不可变的、任意精度的有符号十进制数。BigDecimal 由任意精度的整数非标度值和32位的整数标度(scale)组成。 如果为零或正数,则标度是小数点后的位数。如果为负数,则将该数的非标度值乘以10的负scale次幂。 因此,BigDecimal表示的数值是(unscaledValue × 10-scale)。 与之相关的还有两个转载 2017-11-25 00:28:01 · 356 阅读 · 0 评论 -
springboot 单元测试
src/test/java 新建类 加注解 @RunWith(SpringRunner.class) @SpringBootTest 方法上加@Test原创 2018-09-25 18:07:58 · 83 阅读 · 0 评论 -
mysql json
SELECT distinct CAST(JSON_UNQUOTE(attributes_json->’.ClusterID′)ASchar)asoidFROM‘tcable‘whereattributesjson−>′.ClusterID') AS char) as oid FROM `t_cable` where attributes_json-&...原创 2018-09-28 09:58:04 · 175 阅读 · 0 评论 -
js保留小数后几位
https://www.jb51.net/article/134067.htm原创 2018-10-23 09:43:50 · 1415 阅读 · 0 评论 -
树形查询
/** * 根据关键字检索查询 * * @param filter * @return */ public List cascadeQueryByKeyWords(PreSaleRiskQueryVo filter, String version) { //根据inputValue关键字先将整个表查出来 List templateList = queryTemplateByKeyWords(fil...原创 2018-10-31 15:51:04 · 1049 阅读 · 0 评论 -
批量处理SQL
package com.huawei.nis.fttxbaseline.basedata.mapper; import org.apache.commons.lang3.StringUtils; import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.Map; /** 批量处理SQL生...原创 2018-10-30 14:21:45 · 349 阅读 · 0 评论 -
mysql5.7多字段删除重复数据
DELETE FROM t_office_country WHERE (office_code, country_code) IN ( SELECT t.office_code, t.country_code FROM ( SELECT office_code, country_code FROM t_office_country GROUP BY office_code, country_cod...原创 2019-01-24 15:46:01 · 594 阅读 · 0 评论 -
导入maven项目报错
Project xxx already exists Add a version or custom solution: You need to open up the Project Explorer view (it may already be open) and delete the project from within there.原创 2018-06-08 09:27:52 · 223 阅读 · 0 评论