xiyue613
码龄5年
  • 26,599
    被访问
  • 60
    原创
  • 332,866
    排名
  • 2
    粉丝
关注
提问 私信

个人简介:世界上最遥远的距离是在想到和做到之间

  • 加入CSDN时间: 2017-03-23
博客简介:

xiyue613的博客

查看详细资料
  • 2
    领奖
    总分 113 当月 2
个人成就
  • 获得3次点赞
  • 内容获得7次评论
  • 获得6次收藏
创作历程
  • 51篇
    2021年
  • 4篇
    2018年
  • 9篇
    2017年
成就勋章
TA的专栏
  • 笔记
    1篇
  • sql
    6篇
  • 编程
    1篇
  • 最近
  • 文章
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

oracle查询结果加一列序号

trunc(DBMS_RANDOM.value(1,100))
原创
发布博客 2021.08.24 ·
460 阅读 ·
0 点赞 ·
0 评论

统计

<!--应用管理-应用服务流量统计--><select id="selectAppServerStatByPage" parameterType="java.util.Map" resultType="cn.piesat.operationsupport.entity.vo.AppManagerStatVo"> select * from (SELECT t2.APPLICAT appName,count(1) pv,sum(t2.SEND_TRAFFIC) sendTraf.
原创
发布博客 2021.05.26 ·
14 阅读 ·
0 点赞 ·
0 评论

对接接口3

private String getReturnData(String url) throws IOException { URL readUrl = new URL(url); HttpURLConnection conn = (HttpURLConnection) readUrl.openConnection(); conn.setRequestMethod("GET"); conn.setReadTimeout(100000); conn.connect();.
原创
发布博客 2021.05.26 ·
19 阅读 ·
0 点赞 ·
0 评论

类似枚举

public static final String[] rainType = new String[]{"250", "特大暴雨", "100", "大暴雨", "50", "暴雨", "25", "大雨", "10", "中雨或暴雪", "5", "小雨或大雪", "2.5", "小雨或中雪", "0.1", "小雨或小雪"};private String getLevelName(String num){ String s = ""; for(int i=0; i<rai.
原创
发布博客 2021.05.26 ·
22 阅读 ·
0 点赞 ·
0 评论

下载模板

@GetMapping("/downloadTemplate")@ApiOperation(value = "下载模板信息(1事件,2台账,3重建)", response = Result.class)public void downloadTemplate(@ApiParam(required = true, value = "param", name = "param") @RequestParam(name = "param") String param, .
原创
发布博客 2021.05.26 ·
14 阅读 ·
0 点赞 ·
0 评论

定时器

@Configuration@EnableSchedulingpublic class ConsTask { Logger logger = LoggerFactory.getLogger(ConsTask.class); @Resource private InterfaceService interfaceService; /** * 每天获取一次前一天的 */ @Scheduled(cron = "${cron.scheduled.
原创
发布博客 2021.05.26 ·
6 阅读 ·
0 点赞 ·
0 评论

select中拼接字符串

<select id="getStatsByArea" resultMap="BaseResultMap"> SELECT ${areaName} areaCode, t.area_name areaName, COUNT(house_damage_id) totalNum, to_char(disaster_date,'yyyy') theYear ${typeName} FROM house_damage_ledger LEFT J.
原创
发布博客 2021.05.26 ·
1101 阅读 ·
0 点赞 ·
0 评论

两int相除保留小数

double f1 = new BigDecimal((float)100*paramNum/totalNum).setScale(1, BigDecimal.ROUND_HALF_UP).doubleValue();
原创
发布博客 2021.05.26 ·
109 阅读 ·
0 点赞 ·
0 评论

改变表结构

alter table fxown_house add column create_time datetime not null comment '创建时间';alter table house_ledger drop disaster_type, DROP disaster_date;alter table house_ledger modify column disaster_event bigint NOT NULL COMMENT '灾害事件ID';UPDATE support_netraf.
原创
发布博客 2021.05.06 ·
10 阅读 ·
0 点赞 ·
0 评论

字段关键字

人大金仓 `NAME`, `STATUS` insert into sr ("NAME", "STATUS" mysql `NAME`, `TYPE` insert into rd (STANDARD_NUMBER, `NAME`, `TYPE`,
原创
发布博客 2021.04.29 ·
54 阅读 ·
0 点赞 ·
0 评论

查询多表

select LEGAL_ID as id, name as title,1 as type from rl WHERE name like '%法%'union allselect MSDS_ID as id,name as title,2 as type from rs WHERE name like '%法%'union allselect STANDARD_ID as id,name as title,3 as type from rd WHERE name like '%法%'...
原创
发布博客 2021.04.29 ·
12 阅读 ·
0 点赞 ·
0 评论

重复列表

先加条件,再从搜索结果group bySELECT * FROM house_damage_ledgerWHERE household_head_id in(SELECT household_head_id FROM (SELECT household_head_id, area_code, to_char(disaster_date,'yyyy') as ye FROM house_damage_ledgerWHERE ye >= '2014' and ye <= '...
原创
发布博客 2021.04.26 ·
29 阅读 ·
0 点赞 ·
0 评论

去重

DELETEFROM house_damage_ledgerWHERE (area_code, household_head_id) IN ( SELECT t.area_code, t.household_head_id FROM ( SELECT area_code, household_head_id ...
原创
发布博客 2021.04.26 ·
10 阅读 ·
0 点赞 ·
0 评论

对接接口2

public Result getMemoryStatus(String param) throws IOException, ParseException { String url = "http://emla.svc.cluster.local/apis/v1/ecms/dashboard?metrics_filter="; SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); .
原创
发布博客 2021.04.25 ·
13 阅读 ·
0 点赞 ·
0 评论

对接接口

@Override public Result connectMethod(String param) throws IOException, ClassNotFoundException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException { boolean f = false; if(f) { ..
原创
发布博客 2021.04.25 ·
23 阅读 ·
0 点赞 ·
0 评论

日期、长整型

import java.text.SimpleDateFormat;import java.text.ParseException;import java.util.Date;class Untitled { public static void main(String[] args) throws ParseException { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"...
原创
发布博客 2021.04.22 ·
75 阅读 ·
0 点赞 ·
0 评论

分页展示

@Overridepublic Result<PageInfo<HEvent>> selectEvent(Integer pageNo, Integer pageSize, String codeName, String startDate, String endDate, Integer dType, String eName){ long begin = System.currentTimeMillis(); pageNo = pageNo == null .
原创
发布博客 2021.04.16 ·
14 阅读 ·
0 点赞 ·
0 评论

text改为longtext

CREATE TABLE `edata` ( `DATA_ID` bigint NOT NULL AUTO_INCREMENT COMMENT '数据ID', `EVENT_ID` bigint DEFAULT NULL COMMENT '事件ID', `SURVEY_DIRECTORY` varchar(1000) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '调查报告目录', `SURVEY_CONTENT` longtext CHAR...
原创
发布博客 2021.04.16 ·
102 阅读 ·
0 点赞 ·
0 评论

根据多关键字查询

SELECT * FROM "PUBLIC"."house_disaster_event" WHERE "disaster_event_name" LIKE '%内蒙古%' AND "disaster_event_name" LIKE '%风暴%'
原创
发布博客 2021.04.14 ·
62 阅读 ·
0 点赞 ·
0 评论

将单元格内容转换为字符串

public static String convertCellValueToString(Cell cell) { if (cell == null) { return null; } String returnValue = null; switch (cell.getCellType()) { //数字 case NUMERIC: Double doubleValue = cell.getNume.
原创
发布博客 2021.04.13 ·
548 阅读 ·
1 点赞 ·
0 评论
加载更多