/** * 保存(新增、更新)用户信息 * * @param user * @return */ public boolean saveUser(User user) { boolean saveFlag = false; String updSql = null; if (isExist(user.getUserName())) { // 更新用户信息 updSql = "UPDATE SYJK_CCS_USER SET PASSWORD = '******', MENUJSON = '" + user.getMenujson() + "' WHERE USERNAME= '******'"; } else { // 新增用户 String userId = String.valueOf(Integer.parseInt(es.getOneValue("select max(id) from syjk_ccs_user")) + 1); updSql = "INSERT INTO SYJK_CCS_USER (ID,USERNAME, PASSWORD, MENUJSON) VALUES ('" + userId + "','" + user.getUserName() + "','" + user.getPassWord() + "','" + user.getMenujson() + "') "; } if (null != updSql) { saveFlag = es.execUpdateSQL(updSql); } return saveFlag; }
public boolean destroyUser(String userid) { boolean delFlag = false; String delSql = "DELETE FROM SYJK_CCS_USER WHERE ID = '" + userid + "'"; delFlag = es.execUpdateSQL(delSql); return delFlag; }
// 保存纳税信息请求出参信息 public boolean savePayRes(SYJK_CCS_CCSNSXXCXCC ccsnsxxcxcc) { String resSql = taxPayQueryServiceSql.getTaxPayQueryResSql(ccsnsxxcxcc); boolean flag = exeSql.execUpdateSQL(resSql); return flag; }