- 博客(8)
- 收藏
- 关注
原创 mysql5.7多字段删除重复数据
DELETEFROMt_office_countryWHERE(office_code, country_code) IN (SELECTt.office_code,t.country_codeFROM(SELECToffice_code,country_codeFROMt_office_countryGROUP BYoffice_code,country_cod...
2019-01-24 15:46:01
592
原创 树形查询
/*** 根据关键字检索查询** @param filter* @return*/public List cascadeQueryByKeyWords(PreSaleRiskQueryVo filter, String version) {//根据inputValue关键字先将整个表查出来List templateList = queryTemplateByKeyWords(fil...
2018-10-31 15:51:04
1047
原创 批量处理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
347
原创 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
173
原创 springboot 单元测试
src/test/java新建类加注解@RunWith(SpringRunner.class)@SpringBootTest方法上加@Test
2018-09-25 18:07:58
83
原创 导入maven项目报错
Project xxx already exists Add a version or customsolution: 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
207
转载 Java中BigDecimal的8种舍入模式
java.math.BigDecimal不可变的、任意精度的有符号十进制数。BigDecimal 由任意精度的整数非标度值和32位的整数标度(scale)组成。如果为零或正数,则标度是小数点后的位数。如果为负数,则将该数的非标度值乘以10的负scale次幂。因此,BigDecimal表示的数值是(unscaledValue × 10-scale)。与之相关的还有两个
2017-11-25 00:28:01
351
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人