src/com/wgh/dao/SubtypeDaoImpl.java

(完整代码) 528B

package com.wgh.dao;

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

public class SubtypeDaoImpl implements SubtypeDao {
  public SubtypeDaoImpl() {
  }
connDB conn=new connDB();
chStr chStr=new chStr();
public int insert(SubType st) {
int ret=-1;
try{
  String sql = "insert into tb_subType (superType,typename) values("+st.getsuperid()+",'" + chStr.chStr(st.gettypename()) +
      "')";
  ret = conn.executeUpdate(sql);
}catch (Exception e){
  ret=0;
}
return ret;
}

}

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

AI 解读 AI

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

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