⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cpbean.java

📁 WAP PUSH后台源码,WAP PUSH后台源码
💻 JAVA
字号:
package com.sxit.wap.cp;import java.sql.*;import java.util.*;import com.sxit.wap.common.*;import com.sxit.wap.exception.*;public class CpBean extends CpDao{  public static void changeCpPwd(int id, String cpPwd) throws SysException {    String sql = "UPDATE " + tableName + " SET CP_PWD = '" + cpPwd + "'  WHERE ID = " + id;    updateBySql(sql);  }  public static boolean isExists(String spName) throws SysException {    return getRowCountBySql("SELECT COUNT(*) FROM " + tableName + " WHERE CP_NAME = '" + spName +"'")>=1;  }  public static boolean isExists(int id, String spName) throws SysException {    return getRowCountBySql("SELECT COUNT(*) FROM " + tableName + " WHERE CP_NAME = '" + spName +"'" + " AND ID <> '" + id + "'")>=1;  }  public static boolean isExists(int id) throws SysException {    try {      findByPK(id);      return true;    } catch (FinderException e) {      return false;    }  }  public static Collection queryCpOrderById(int beginRow, int endRow) throws SysException {    return queryBySql("SELECT * FROM " + tableName + " ORDER BY ID", beginRow, endRow);  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -