johnraychina

Results issues of johnraychina

We need a more flexible and readable sharding key, that support multiple sharding dimensions, like "nation : db : table: partition". And we need to register a user-defined handler that...

#缘起 使用JSON.parseObject后发现,字符串“9295260120”变为 705325528 ` com.alibaba fastjson 1.2.54 ` #结论 经过DEBUG后发现:关键在929526012*10后,溢出了,整数最大21亿多:2,147,483,647 按理fastjson应该抛出异常才对,对比Jackson发现没这个问题。暂时先修改model class,改为Long类型。 # 详细debug分析过程: ![image.png](http://ata2-img.cn-hangzhou.img-pub.aliyun-inc.com/1134d374944a752660a604a1acfcab2a.png) 1、 ![image.png](http://ata2-img.cn-hangzhou.img-pub.aliyun-inc.com/1a029d0b282d5e1c0fa3b5cf5404f44d.png) 2、 ![image.png](http://ata2-img.cn-hangzhou.img-pub.aliyun-inc.com/bf7dba42638aa778f1ff0420c5c2dc2f.png) 。。。。 3、 ![image.png](http://ata2-img.cn-hangzhou.img-pub.aliyun-inc.com/1a7d80b79d7678b8b34f6b922ef8a24d.png) ![image.png](http://ata2-img.cn-hangzhou.img-pub.aliyun-inc.com/3a842a8218a81fc9e7a216be4068e868.png) 4、 ![image.png](http://ata2-img.cn-hangzhou.img-pub.aliyun-inc.com/2f2bd9d88d65024248d50a9843bb50cf.png) #关键在9295260120*10后,溢出了,整数最大21亿多:2,147,483,647 ![image.png](http://ata2-img.cn-hangzhou.img-pub.aliyun-inc.com/2deec6a5ac806b465ca137b28bdd8ae7.png) #Jackson会报溢出错误: ![image.png](http://ata2-img.cn-hangzhou.img-pub.aliyun-inc.com/d5cd933dfac103885879731c2ed563d0.png)

bug

### Description Cannot run program 'git.exe' : create Process error=2, can not find file. ### Version **GitHub Desktop version:0.9.1 **OS version: Windows 10 home version 1073 ### Steps to Reproduce...

报错截图和日志如下: ![db04a558-0108-4af0-93c2-f6e1cffae519](https://cloud.githubusercontent.com/assets/12132827/19960050/6ca5bfd2-a1e5-11e6-94fa-e0b452797a19.png) ` 2016-11-03 10:31:47,382 [http-bio-8080-exec-8] DEBUG [com.mucfc.abs.modules.gen.dao.GenTableColumnDao.deleteByGenTableId] - ==> Preparing: UPDATE gen_table_column SET del_flag = ? WHERE gen_table_id = ? 2016-11-03 10:31:47,382 [http-bio-8080-exec-8] DEBUG [com.mucfc.abs.modules.gen.dao.GenTableColumnDao.deleteByGenTableId] - ==> Parameters: 40054eb3acbc412190de0501bbaa85f3(String),...

实体类里面多了一行代码: import org.hibernate.validator.constraints.Length(min=0, max=45, message="未偿期数; 可能是因为数据库字段定义了varchar(45)导致的: ` @Length(min=0, max=45, message="未偿期数(月)长度必须介于 0 和 45 之间") public String getUnpaidTerm() { return unpaidTerm; }` 数据库建表语句: ` CREATE TABLE `asset` ( `id` varchar(64) COLLATE...