時間日期帶小數點 0

2021-10-06 16:53:04 字數 2051 閱讀 4958

解決辦法:

增加:@jsonformat(pattern=constants.datetime_format, timezone = constants.time_zone)

/**

* 時間日期格式

*/public

static

final string datetime_format =

"yyyy-mm-dd hh:mm:ss"

;/**

* 時間日期格式

*/public

static

final string time_zone =

"gmt+8"

;public

class

accidentinvestrptbeanresp

{private string reportid;

// not null comment '調查編號',

private string accidentid;

// not null comment '事故編號',

private string accidenttitle;

// not null comment '事故標題',

private string orgid;

// not null comment '事發單位id',

private string orgname;

// not null comment '事發單位名稱',

private

int typeflag;

// comment '事故類別' default 1,

@jsonformat

(pattern=constants.datetime_format, timezone = constants.time_zone)

// comment '事故發生時間',

private string addr;

// not null comment '事發詳細位置',

private

int accidentret;

// comment '事故後果' default 1,

private string checkteam;

// comment '調查組名稱',

private string teammember;

// comment '調查組成員',

private string checkreq;

// comment '調查要求',

private string accidentdetail;

// not null comment '事故經過',

private string directcause;

// comment '直接原因',

private string remotecause;

// comment '間接原因',

private string chargeperson;

// comment '事故責任人',

private string chargepersonprocess;

// comment '事故責任人處理',

private string processmethod;

// comment '事故責任人教育形式',

private string processdetail;

// comment '事故責任人教育內容',

private string rectificatemethod;

// comment '整改措施',

private string rectificateexec;

// comment '整改落實情況',

private string managercheckret;

// comment '負責人配合情況',

帶小數點的鍵盤

乙個很簡單快捷的方法就能做出非常完美的鍵盤 專案中使用方式更加簡單,直接上 吧。slnumberkeyboard tnumberkb slnumberkeyboard alloc init uitextfield mytext uitextfield alloc initwithframe cgre...

帶小數點的高精度運算

前段日子,組長在寫乙個學科測試的排名邏輯,也不知怎麼的,就涉及了大量的小數運算,可能乘上乙個小數,然後再除了很大的數字,但是最後的結果,php只給了乙個整數,而忽略了小數。然後組長問我,我也一臉懵逼的。於是從網上找呀找,得知高精度運算時,可以使用bc庫帶的一些高精度的運算方法,如下 複製過來的 bc...

去除小數點後多餘的0

bigdecimal c new bigdecimal 14121312.22002000 numberformat nf numberformat.getinstance nf.setmaximumfractiondigits 6 string d nf.format c system.out.p...