Browse Source

完全适配FineKit

master
richie 5 years ago
parent
commit
8e38816c64
  1. BIN
      lib/finekit-10.0.jar
  2. 6
      src/main/java/com/fr/conf/db/demo/fun/http/OutputHttpHandler.java

BIN
lib/finekit-10.0.jar

Binary file not shown.

6
src/main/java/com/fr/conf/db/demo/fun/http/OutputHttpHandler.java

@ -1,14 +1,14 @@
package com.fr.conf.db.demo.fun.http; package com.fr.conf.db.demo.fun.http;
import com.fanruan.api.net.NetworkKit; import com.fanruan.api.net.NetworkKit;
import com.fanruan.api.query.QueryConditionKit;
import com.fanruan.api.query.RestrictionKit;
import com.fr.conf.db.demo.SystemConfigAccessBridge; import com.fr.conf.db.demo.SystemConfigAccessBridge;
import com.fr.conf.db.demo.fun.SystemConfigDAO; import com.fr.conf.db.demo.fun.SystemConfigDAO;
import com.fr.conf.db.demo.fun.entity.SystemConfigEntity; import com.fr.conf.db.demo.fun.entity.SystemConfigEntity;
import com.fr.decision.fun.impl.BaseHttpHandler; import com.fr.decision.fun.impl.BaseHttpHandler;
import com.fr.stable.db.action.DBAction; import com.fr.stable.db.action.DBAction;
import com.fr.stable.db.dao.DAOContext; import com.fr.stable.db.dao.DAOContext;
import com.fr.stable.query.condition.impl.QueryConditionImpl;
import com.fr.stable.query.restriction.RestrictionFactory;
import com.fr.third.springframework.web.bind.annotation.RequestMethod; import com.fr.third.springframework.web.bind.annotation.RequestMethod;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
@ -39,7 +39,7 @@ public class OutputHttpHandler extends BaseHttpHandler {
@Override @Override
public List<SystemConfigEntity> run(DAOContext daoContext) throws Exception { public List<SystemConfigEntity> run(DAOContext daoContext) throws Exception {
// 查询收入大于10000的人 // 查询收入大于10000的人
return daoContext.getDAO(SystemConfigDAO.class).find(new QueryConditionImpl().addRestriction(RestrictionFactory.gte("salary", 10000.0))); return daoContext.getDAO(SystemConfigDAO.class).find(QueryConditionKit.newQueryCondition().addRestriction(RestrictionKit.gte("salary", 10000.0)));
} }
}); });
PrintWriter writer = NetworkKit.createPrintWriter(httpServletResponse); PrintWriter writer = NetworkKit.createPrintWriter(httpServletResponse);

Loading…
Cancel
Save