#Java#Java 图片保存到数据库( 二 )


String ParticularsName =  br.readLine();
name=particul.count(ParticularsName);
par.setParticularsName(ParticularsName);
if(fieldName.equals(\"Price\")){
String Price =  br.readLine();
par.setPrice(Price);
if(fieldName.equals(\"BigPrice\")){
String BigPrice =  br.readLine();
par.setBigPrice(BigPrice);
if(fieldName.equals(\"SmallPrice\")){
String SmallPrice =  br.readLine();
par.setSmallPrice(SmallPrice);
if(fieldName.equals(\"Member\")){
String Member =  br.readLine();
par.setMember(Member);
if(fieldName.equals(\"Discount\")){
String Discount =  br.readLine();
par.setDiscount(Discount);
if(fieldName.equals(\"Uniter\")){
String Uniter =  br.readLine();
par.setUniter(Uniter);
if (name==0) {
boolean scuess=particul.insert(par);
if (scuess) {
response.getWriter().write(Boolean.toString(scuess));
else {
response.getWriter().write(\"exit\");
catch (FileUploadException e) {
e.printStackTrace();
catch (Exception e) {
e.printStackTrace();