12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- package thyyxxk.sizyfeeoprnsystm.pojo;
- import com.alibaba.fastjson.JSONObject;
- import com.baomidou.mybatisplus.annotation.IdType;
- import com.baomidou.mybatisplus.annotation.TableId;
- import com.baomidou.mybatisplus.annotation.TableName;
- import lombok.Data;
- import java.io.Serializable;
- @Data
- @TableName("t_si_log")
- public class SiLog implements Serializable {
- private static final long serialVersionUID = 3109706338397960444L;
- /**
- * 报文ID
- */
- @TableId(type=IdType.ASSIGN_UUID)
- private String msgid;
- /**
- * 功能号
- */
- private String infno;
- /**
- * 参保地医保区划
- */
- private String insuplcAdmdvs;
- /**
- * 经办人
- */
- private String opter;
- /**
- * 交易输入
- */
- private String body;
- /**
- * 交易输出
- */
- private String result;
- /**
- * 住院号/门诊号
- */
- private String patNo;
- /**
- * 住院/门诊次数
- */
- private Integer times;
- /**
- * 账页号
- */
- private Integer ledgerSn;
- /**
- * 日志类别:1-住院;2-门诊
- * */
- private Integer logType;
- private Integer infcode;
- public SiLog(JSONObject input, JSONObject result, String patNo, Integer times, Integer ledgerSn, Integer infcode) {
- if (null != result) {
- setResult(result.toJSONString());
- }
- setBody(input.toJSONString());
- setInfno(input.getString("infno"));
- setInsuplcAdmdvs(input.getString("insuplc_admdvs"));
- setMsgid(input.getString("msgid"));
- setOpter(input.getString("opter"));
- setPatNo(patNo);
- setTimes(times);
- setLedgerSn(ledgerSn);
- setLogType(1);
- setInfcode(infcode);
- }
- }
|