2018-03-06 14:12

@JFinal 都是无法正常转换的 不是个别情况

2018-03-06 14:11

@JFinal 你是说 你测试完之后 setter没问题是吧 是不是fastjson版本问题?

2018-03-06 12:50

@JFinal setter的问题?如何排查?修改jfinal生成的model?

2018-03-06 11:52

@JFinal setter都是 jfinal自动生成的public M setId(Long id) {
set("id", id);
return (M)this;
}

public Long getId() {
return getLong("id");
}

public M setOrderType(String orderType) {
set("orderType", orderType);
return (M)this;
}

public String getOrderType() {
return getStr("orderType");
}

public M setOrderStatus(String orderStatus) {
set("orderStatus", orderStatus);
return (M)this;
}

public String getOrderStatus() {
return getStr("orderStatus");
}

public M setOrderNo(String orderNo) {
set("orderNo", orderNo);
return (M)this;
}

public String getOrderNo() {
return getStr("orderNo");
}

public M setSupplierId(Long supplierId) {
set("supplierId", supplierId);
return (M)this;
}

public Long getSupplierId() {
return getLong("supplierId");
}

public M setWarehouseId(Long warehouseId) {
set("warehouseId", warehouseId);
return (M)this;
}

public Long getWarehouseId() {
return getLong("warehouseId");
}

public M setTotalOrderQty(java.math.BigDecimal totalOrderQty) {
set("totalOrderQty", totalOrderQty);
return (M)this;
}

public java.math.BigDecimal getTotalOrderQty() {
return get("totalOrderQty");
}

public M setTypeQty(java.math.BigDecimal typeQty) {
set("typeQty", typeQty);
return (M)this;
}

public java.math.BigDecimal getTypeQty() {
return get("typeQty");
}

public M setOtherPrice(java.math.BigDecimal otherPrice) {
set("otherPrice", otherPrice);
return (M)this;
}

public java.math.BigDecimal getOtherPrice() {
return get("otherPrice");
}

public M setTotalPrice(java.math.BigDecimal totalPrice) {
set("totalPrice", totalPrice);
return (M)this;
}

public java.math.BigDecimal getTotalPrice() {
return get("totalPrice");
}

public M setCurrencyType(String currencyType) {
set("currencyType", currencyType);
return (M)this;
}

public String getCurrencyType() {
return getStr("currencyType");
}

public M setExpectDate(String expectDate) {
set("expectDate", expectDate);
return (M)this;
}

public String getExpectDate() {
return getStr("expectDate");
}

public M setArriveDate(String arriveDate) {
set("arriveDate", arriveDate);
return (M)this;
}

public String getArriveDate() {
return getStr("arriveDate");
}

public M setCheckName(String checkName) {
set("checkName", checkName);
return (M)this;
}

public String getCheckName() {
return getStr("checkName");
}

public M setCheckTime(java.util.Date checkTime) {
set("checkTime", checkTime);
return (M)this;
}

public java.util.Date getCheckTime() {
return get("checkTime");
}

public M setMemo(String memo) {
set("memo", memo);
return (M)this;
}

public String getMemo() {
return getStr("memo");
}

public M setUpdateCount(Integer updateCount) {
set("updateCount", updateCount);
return (M)this;
}

public Integer getUpdateCount() {
return getInt("updateCount");
}

public M setCreateAuthor(String createAuthor) {
set("createAuthor", createAuthor);
return (M)this;
}

public String getCreateAuthor() {
return getStr("createAuthor");
}

public M setCreateTime(java.util.Date createTime) {
set("createTime", createTime);
return (M)this;
}

public java.util.Date getCreateTime() {
return get("createTime");
}

public M setUpdateAuthor(String updateAuthor) {
set("updateAuthor", updateAuthor);
return (M)this;
}

public String getUpdateAuthor() {
return getStr("updateAuthor");
}

public M setUpdateTime(java.util.Date updateTime) {
set("updateTime", updateTime);
return (M)this;
}

public java.util.Date getUpdateTime() {
return get("updateTime");
}

public M setUpdatePage(String updatePage) {
set("updatePage", updatePage);
return (M)this;
}

public String getUpdatePage() {
return getStr("updatePage");
}

2018-02-25 20:34

me.setViewType(ViewType.JSP)

2018-02-01 21:11

这个应该都是一个一个的

2018-01-31 17:02

@JFinal 就配置过这个:
package com.jfinal.json;

import com.alibaba.fastjson.serializer.ObjectSerializer;
import com.alibaba.fastjson.serializer.SerializeConfig;
import com.jfinal.json.FastJson;
import com.jfinal.json.IJsonFactory;
import com.jfinal.json.Json;
import com.jfinal.plugin.activerecord.Record;

public class FastJsonFactory implements IJsonFactory {
private static final FastJsonFactory me = new FastJsonFactory();

public FastJsonFactory() {
}

public static FastJsonFactory me() {
return me;
}

public Json getJson() {
return new FastJson();
}

public void removeRecordSerializer() {
SerializeConfig.getGlobalInstance().put(Record.class, (ObjectSerializer)null);
}
}

2018-01-31 09:24

@JFinal 我估计只有setter估计不行,应该有改属性成员才行

2018-01-30 09:22

@JFinal 我是这样的数据:
[{"createDate":1517151600000,"enable":0,"id":22,"userName":"ggg"}]

2018-01-29 15:39

@JFinal 有set方法,我想转换的是 List

2018-01-08 14:50

@JFinal9527 不是,要配置一个东西才行 是波总 教的