摘要: --生成随机ID号 1 package com.g_j_x.myjava; 2 3 /** 4 * 单例模式, 格式化调用 5 * @author g_j_x 6 * @date 2017-4-27 7 */ 8 public class Global 9 { 10 private static G 阅读全文
posted @ 2017-04-27 14:17 音动九箫 阅读(154) 评论(0) 推荐(0) 编辑
摘要: --创建Excel文件 1 import java.io.*; 2 import jxl.*; 3 import jxl.format.UnderlineStyle; 4 import jxl.write.*; 1 /** 2 * 导出表格 3 * @author gongyg 4 * @date 阅读全文
posted @ 2017-04-27 14:11 音动九箫 阅读(110) 评论(0) 推荐(0) 编辑
摘要: --Java代码运算精度 1 package com.g_j_x.myjava; 2 3 import java.math.BigDecimal; 4 5 /** 6 * 由于Java的简单类型不能够精确的对浮点数进行运算, 7 * 这个工具类提供精 确的浮点数运算,包括加减乘除和四舍五入。 8 * 阅读全文
posted @ 2017-04-27 13:47 音动九箫 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 环境: Oracle11g, PLSQL11&12, windows7 --存储过程 CREATE OR REPLACE PROCEDURE test_proc IS STARTTIME TIMESTAMP; OVERTIME TIMESTAMP; COMPARETIME TIMESTAMP;BEG 阅读全文
posted @ 2017-04-27 11:42 音动九箫 阅读(2305) 评论(0) 推荐(0) 编辑