三目表达式问题
b = (a == 1) ? 20: 30;//如果a等于1那么b就等于20,否则等于30
String remarked=null==req.getParameter("remarked")?"":req.getParameter("remarked");
String product_name=null==req.getParameter("product_name")?"":req.getParameter("product_name");
String patient_name=null==req.getParameter("patient_name")?"":req.getParameter("patient_name");
para.put("company_id", company_id);
para.put("remarked", remarked);
para.put("product_name", product_name.isEmpty()?null:product_name);
para.put("patient_name", patient_name.isEmpty()?null:patient_name);