//设置查询条件 一
CheckerConfigFormBean checkerForm = (CheckerConfigFormBean)aForm;
JSONObject jsonObj = putJsonValue(checkerForm);
public JSONObject putJsonValue(CheckerConfigFormBean checkerForm)throws JSONException
{
String status = checkerForm.getStatus();
String applyTime = checkerForm.getApplyTime();
String productLine = checkerForm.getProductLine();
String productFamily = checkerForm.getProductFamily();
String product = checkerForm.getProduct();
String contractNo = checkerForm.getContractNo();
String orderNo = checkerForm.getOrderNo();
String applyNo = checkerForm.getApplyNo();
String applyer = checkerForm.getApplyer();
String checker = checkerForm.getChecker();
String hander = checkerForm.getHander();
JSONObject jsonObj = new JSONObject();
//对CheckerConfigFormBean中封装的数据进行非空判断
if(null != status && !"".equals(status.trim())
&& !"null".equalsIgnoreCase(status.trim()))
{
if(status.equals("546-00061573"))
{
status = "'"+"546-00061573-1"+"'"+","+"'"+"546-00061573-2"+"'";
}else{
status = "'"+status+"'";
}
jsonObj.put("APPLYFORM_STATUS", status);
}
if(null != applyTime && !"".equals(applyTime.trim())
&& !"null".equalsIgnoreCase(applyTime.trim()))
{
jsonObj.put("APPLY_TIME", applyTime);
}
if(null != productLine && !"".equals(productLine.trim())
&& !"null".equalsIgnoreCase(productLine.trim()))
{
jsonObj.put("productline_id", productLine);
}