src/com/wgh/dao/SuperTypeDaoImpl.java

(完整代码) 498B

package com.wgh.dao;

import commerce.SuperType;
import com.wgh.DB.connDB;
import com.wgh.DB.chStr;

public class SuperTypeDaoImpl implements SupertypeDao {
  connDB conn=new connDB();
  chStr chStr=new chStr();
  public int insert(SuperType spt) {
  int ret=-1;
  try{
    String sql = "insert into tb_superType (typename) values('" + chStr.chStr(spt.gettypename()) +
        "')";
    ret = conn.executeUpdate(sql);
  }catch (Exception e){
    ret=0;
  }
  return ret;
}

}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。