public boolean delete(Listids) throws LittleCatException { if(CollectionUtil.isEmpty(ids)) { throw new LittleCatException(ErrorCode.DeleteObjectWithEmptyId.getCode(),ErrorCode.DeleteObjectWithEmptyId.getMsg().replace("{INFO_NAME}","SysOperatorMO")); } NamedParameterJdbcTemplate namedParameterJdbcTemplate = new NamedParameterJdbcTemplate(jdbcTemplate); String sql = "delete from " + TableName.SysOperator.getName() + " where id in (:ids)"; MapSqlParameterSource parameters = new MapSqlParameterSource(); parameters.addValue("ids", ids); try { namedParameterJdbcTemplate.update(sql, parameters); } catch (DataAccessException e) { throw new LittleCatException(ErrorCode.DataAccessException.getCode(),ErrorCode.DataAccessException.getMsg(),e); } return true; }