|
|
@ -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); |
|
|
|