哪个entity包为什么会报错,comm为什么也报错

package Jlhy.DB;

import java.sql.*;
import java.util.*;
import entity.*;

public class CommentDao extends BaseDAO {
/**
* 获取所有留言
* */
public List GetComment(){
//SQL语句
String sql = "SELECT CID,CName,CContext FROM Comments";
List list = new ArrayList();
//数据库连接对象
Connection conn = null;
//SQL执行对象
PreparedStatement pstmt = null;
//数据库执行返回值
ResultSet rs = null;
try {
//创建数据库链接
conn = this.getConn();
//创建SQL执行对象
pstmt = conn.prepareStatement(sql);
//执行SQL语句 返回值
rs = pstmt.executeQuery();
//读取
while (rs.next()) {
comm comment = new comm();
comment.setCID(rs.getInt("CID"));
comment.setCName(rs.getString("CName"));
comment.setCContext(rs.getString("CContext"));
list.add(comment);
}
} catch (Exception e) {
e.printStackTrace();
}finally{
//关闭
this.closeAll(conn, pstmt, rs);
}
return list;
}
public int AddComment(comm comment){
String sql = "INSERT INTO Comments VALUES(?,?)";
//受影响行数
int result = 0;

//数据库连接对象
Connection conn = null;
//SQL执行对象
PreparedStatement pstmt = null;
try {
//创建数据库链接
conn = this.getConn();
//创建SQL执行对象
pstmt = conn.prepareStatement(sql);
//设置参数
pstmt.setString(1, comment.getCName());
pstmt.setString(2, comment.getCContext());
//执行SQL语句
result = pstmt.executeUpdate();
} catch (Exception e) {
e.printStackTrace();
}finally{
this.closeAll(conn, pstmt);
}
return result;
}
}图片说明

1个回答

没导入对吧,光标定位comm,使用快捷键alt+/来导入

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
为什么这样也会报错????
rnrnrn rn rn rnrnrn<%rn jj="100"rn%>rn rnrnrn我想用变量"k"来接收服务器端 “jj”的值 我改了半天程序都没改出来rn请众大狭帮帮忙 rn 谢谢rn
为什么这样也会报错????
rs.Open "select * from user",cn '----------68rnresponse.End()rnrnrnMicrosoft OLE DB Provider for SQL Server 错误 '80040e14' rnrn在关键字 'user' 附近有语法错误。 rnrn/web/120/asp/checkly.asp,行68 rn
为什么会报错?编译器报错!
namespace ConsoleApp5rnrn class Programrn rn static void Main(string[] args)rn rn rnrn class abcrn rn public static int Ddd(int a, int b)rn rn rn rn [img=https://img-bbs.csdn.net/upload/201711/18/1510971759_830566.png][/img]rnrn rnrn
为什么没错也报错?
程序没有错误,可编译程序报一个错误,却又不说明是什么错误。rn请高手指点!rn如:rn--------------------Configuration: temp010 - Win32 Debug--------------------rnrntemp010.exe - 1 error(s), 0 warning(s)rn
为什么会报错
insert into zs_2013.dbo.td_yxdhdm(YXDH) rnselect (select distinct(YXDH)rnfrom T_JHK_ALL where ZSNF='2008' and PCDM='2' and KLDM='1') rnfrom T_JHK_ALLrn我要的是把这个表里YXDH这列的符合条件的部分数据数据插入zs_2013.dbo.td_yxdhdm(YXDH)这一列rn但是出现了错误:rn消息 512,级别 16,状态 1,第 1 行rn子查询返回的值不止一个。当子查询跟随在 =、!=、<、<=、>、>= 之后,或子查询用作表达式时,这种情况是不允许的。rn语句已终止。
为什么会报错?
insert into RCBGIT04.test.dbo.book3rnselect * from rnopenrowset('MICROSOFT.JET.OLEDB.4.0','Text;Database=C:\;','SELECT aa ,bb FROM [test1.csv]') rn where convert(varchar(20),aa) not in (select aa from RCBGIT04.test.dbo.book3)rn为什么会报错呢?rn服务器: 消息 515,级别 16,状态 2,行 7rn无法将 NULL 值插入列 'aa',表 'test.dbo.book3';该列不允许空值。INSERT 失败。rn语句已终止。rn我的test1.csv中并没有NULL值啊,只有两个字母,好象就是这两个字母所引起的报错,这是怎么回事呢?
为什么会报错呢!!!!!!
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)rnrnif (CFrameWnd::OnCreate(lpCreateStruct) == -1)rnreturn -1;rn rnSetTimer(1,1000,NULL);rnreturn 0;rnrnrnrn我想创建一个状态栏的计时器,可老是报下面的错rnerror C2084: function 'int __thiscall CMainFrame::OnCreate(struct tagCREATESTRUCTA *)' already has a bodyrn这是为啥 望各位大虾指教
为什么String.split(".")会报错
[img=https://img-bbs.csdn.net/upload/201407/31/1406798178_610539.jpg][/img]
为什么Class.forName会报错
用的是MyEclipse6.5,Tomcat6.0,在编写jsp的时候没有出错,具体代码如下:rn<%rnClass.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance(); rnString url="jdbc:sqlserver://192.168.***.***:1433;DatabaseName=***";rn……rn%>rnMyEclipse6.5自带的Tomcat好像运行不了,于是启动自己安装的Tomcat,可以读取数据库内容。rn但在java文件中rnClass.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance();rn同一句,却有个叉叉,报的是 Unhandled exception type ClassNotFoundException,同一个项目,环境应该没有问题,包应该也添加好了的,而且在MyEclipse6.5的打Class.会出class()、forName()等几个方法的,这究竟是什么问题?
验证码为什么会报错?
[color=#FF0000]a.jsp[/color]rnrn rn rn rn rn rnrn[color=#FF0000]b.jsp[/color]rn<%@ page contentType="image/JPEG"rn import="java.awt.*,java.awt.image.*,java.util.*,javax.imageio.*"rn pageEncoding="GBK"%>rn<%!Color getRandColor(int fc, int bc) rn Random random = new Random();rn if (fc > 255)rn fc = 255;rn if (bc > 255)rn bc = 255;rn int r = fc + random.nextInt(bc - fc);rn int g = fc + random.nextInt(bc - fc);rn int b = fc + random.nextInt(bc - fc);rn return new Color(r, g, b);rn %>rn<%rn response.setHeader("Pragma", "No-cache");rn response.setHeader("Cache-Control", "no-cache");rn response.setDateHeader("Expires", 0);rn int width = 60, height = 20;rn BufferedImage image = new BufferedImage(width, height,rn BufferedImage.TYPE_INT_RGB);rn Graphics g = image.getGraphics();rnrn Random random = new Random();rnrn g.setColor(getRandColor(200, 250));rn g.fillRect(0, 0, width, height);rn g.setFont(new Font("Times New Roman", Font.PLAIN, 18));rnrn g.setColor(getRandColor(160, 200));rn for (int i = 0; i < 100; i++) rn int x = random.nextInt(width);rn int y = random.nextInt(height);rn int xl = random.nextInt(12);rn int yl = random.nextInt(12);rn g.drawLine(x, y, x + xl, y + yl);rn rnrn // 取随机产生的认证码(4位数字) rn String sRand = "";rn for (int i = 0; i < 4; i++) rn String rand = String.valueOf(random.nextInt(10));rn sRand += rand;rnrn g.setColor(new Color(20 + random.nextInt(110), 20 + randomrn .nextInt(110), 20 + random.nextInt(110)));rn g.drawString(rand, 13 * i + 6, 16);rn rnrn session.setAttribute("code", sRand);rnrn g.dispose();rnrn ImageIO.write(image, "JPEG", response.getOutputStream());rn%>rnrn报错:rn2010-2-9 11:20:28 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet jsp threw exceptionrnjava.lang.IllegalStateException: getOutputStream() has already been called for this responsern at org.apache.catalina.connector.Response.getWriter(Response.java:610)rn at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)rn at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)rn at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)rn at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:188)rn at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:118)rn at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:77)rn at org.apache.jsp.verification.b_jsp._jspService(b_jsp.java:123)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.filter.EncodingFilter.doFilter(EncodingFilter.java:27)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)rn at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)rn at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)rn at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)rn at java.lang.Thread.run(Unknown Source)rn
为什么jQuery会报错
引入jQuery,在谷歌浏览器中打开控制台后刷新页面后会报错,如图:[img=https://img-bbs.csdn.net/upload/201712/18/1513594719_173446.png][/img]
请问为什么会报错?
--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: An exception occurred processing JSP page /add_single_rule.jsp at line 45rnrn42: <%!rn43: public String UNI2GBK(String s) throws UnsupportedEncodingExceptionrn44: String temp=s;rn45: temp=new String(s.getBytes("ISO8859_1"),"GBK");rn46: return temp;rn47: rn48: public String GBK2UNI(String s) throws UnsupportedEncodingExceptionrnrnrnStacktrace:rn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:435)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnrnrnroot cause rnrnjava.lang.NullPointerExceptionrn org.apache.jsp.add_005fsingle_005frule_jsp.UNI2GBK(add_005fsingle_005frule_jsp.java:15)rn org.apache.jsp.add_005fsingle_005frule_jsp._jspService(add_005fsingle_005frule_jsp.java:126)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.rnrnrn同样的代码在其他程序里,就没问题,不知道是不是jsp的问题,我使用的是myEclipse进行调试的rn
为什么会报错啊
[code=HTML] rn rn rn [/code]
为什么removeallitems会报错?
建立了一个JCOMBOBOXrnrnint ilen=rf.length;rnfor(i=0;i
为什么上传文件会报错
哪个高手看一下呀,谢谢。rnrnasp.net源程序如下:rnrn<%@Import NameSpace="System.IO" %>rnrn rnrnrnrn 上传单个文件! rn当前目录: rnrn rn 文件路径:rn rn 请选择上传文件: rn rn rnrnrnrn在第一个输入框输入“c:\a.txt”,在第二个输入框输入“c:\b.txt”,点击“Upload”按钮,出现以下错误提示:rnrnrn不支持给定路径的格式。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.NotSupportedException: 不支持给定路径的格式。rnrn源错误: rnrnrn行 16: Elsern行 17: Dim Filename as string=File_dir.text & fname.textrn行 18: fileup.PostedFile.SaveAs(Filename)rn行 19: Response.write(filename) rn行 20: 'Response.Redirect("X7-05.aspx?dir=" & cur_dir.text)rn rnrn源文件: c:\inetpub\wwwroot\WebAppTest2\3-10.aspx 行: 18 rnrn堆栈跟踪: rnrnrn[NotSupportedException: 不支持给定路径的格式。]rn System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath) +230rn System.Security.Util.StringExpressionSet.AddExpressions(String[] str, Boolean checkForDuplicates, Boolean needFullPath) +461rn System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) +168rn System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath) +43rn System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) +421rn System.IO.FileStream..ctor(String path, FileMode mode) +52rn System.Web.HttpPostedFile.SaveAs(String filename)rn ASP._3_10_aspx.UploadFile(Object sender, EventArgs e) in c:\inetpub\wwwroot\WebAppTest2\3-10.aspx:18rn System.Web.UI.WebControls.Button.OnClick(EventArgs e)rn System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)rn System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)rn System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)rn System.Web.UI.Page.ProcessRequestMain() +1277rnrn rn
为什么这样会报错
rnmain()rnrn struct partrn int number; // 零件的编号rn char name [NAME_LEN+1]; // 零件的名称rn int on_hand; // 现有数量rn part1 = 528, "Disk drive", 10;rn printf_part(part1);rn rn return 0;rnrnrnvoid print_part (struct part p)rnrn printf("part number : %d\n", p.number);rn printf("part name: %s\n", p.name);rn printf("Quantity on hand: %d\n", p.on_hand);rnrn为什么???
为什么会报错,高分!!!!!!!!!!!!!!!!!!!!!!!!
Dim Shopping_Bag(3)rnShopping_Bag(0)="1,10"rnShopping_Bag(1)="2,10"rnShopping_Bag(2)="3,10"rn For i=0 to Ubound(Shopping_Bag)rn Id_No=Split(Shopping_Bag(i),",")rn Response.write Id_No(0)&" "rn Response.write Id_No(1)&" "rn NextrnrnId_No=Split(Shopping_Bag(i),",")告诉我这行有错误,如果我把i换成0,1,2的其中一个就可以正常显示,为什么,怎么解决?
为什么会这样报错
这是我编写的线程函数:rn[code=C/C++]static DWORD WINAPI ThreadProc(void*);rnHANDLE handle=_beginthreadex(NULL,0,ThreadProc,(void*)p,0,NULL);[/code]rn这是编译器报错内容:rnerror C2440: 'initializing' : cannot convert from 'unsigned long' to 'void *'rn Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style castrn我明明已经将函数设为static了,为什么会这样报错?
为什么KeyboardInput()会报错?
//编写一个程序,输入10个整数计算并显示它们的和,平均值rnpublic class Program2rn public static void main(final String[] args)rn KeyboardInput input=new KeyboardInput();rn System.out.println("Please enter ten integers:");rn int i=1,sum=0;rn double sql=0;rn while(i<=10)rn System.out.println("Please enter integer:");rn int a=input.readInteger();rn sum=sum+a;rn i=i+1;rn rn sql=sum/10;rn System.out.println("The sum is " + sum);rn System.out.println("The sql is " + sql);rn rnrn
为什么存储过程会报错?
这边有一个存储过程,写了很多查询语句然后union起来,原来是不会报错的,我现在需要更改其中的日期条件,然后把新的条件查出来的语句union起来,但是我union超过两个就会报错,老是最后的语句被截断,查不了rnrn语句大概是这个样子rn[code=sql]select * from (rnselect * from 表1 where rq between 1 and 2rnunion allrn[b]select * from 表1 where rq between 5 and 6[/b]rnunion allrnselect * from 表2 where rq between 3 and 4rn) where 条件[/code]rnrn加粗的呢就是我加上去的语句,除了rq的条件不一样还有把他查出来的语句group by了之外,其他没改变过,但是最后的where 条件老是会断掉,就是rnwhere a.bh=b.bh类似这种,他会断掉成 a.bh=反正就是读取不了完整的条件,删了就可以,请问这是什么原因?
这里为什么会报错?
[code=C/C++]rnmultiset >::key_compare kc=c2.key_comp();rn[/code]rnrn报错如下:rnerror C2440: 'initializing' : cannot convert from 'struct std::less' to 'struct std::greater'rn No constructor could take the source type, or constructor overload resolution was ambiguous
为什么这样会报错?
void fn(char **);rnint main()rnrn char s[10][10];rn fn(s); // 编译器说无法从char[][]转换为char**rnrnrn为什么?
为什么str.decode会报错
decode和encode:在python中保存会按照默认的编码格式保存为unicode格式,unicode可再读取到内存时可以使用encode来设置读取到内存中的编码格式,而在在python解释器运行时,如果脚本中有新的变量需要申请内存时,同样会按照unicode格式编码,此时decode就不能用了。 ...
这里为什么会报错??
我想用下面的方法判断socket是否连接好,为什么第一行汇报错NullPointerException~~我觉得没有指空呀rnrnif(T.socket.getInetAddress()!=null)rn rn JDialog Td2 = new JDialog(fTran,"系统传送错误",true);rn rn Td2.add(new JLabel("用户没有与任何计算机联网"));rnrn ……rnrn
为什么这个会报错
为什么在eclipse里这条语句会报错?Map m1 = new HashMap();rnType mismatch: cannot convert from HashMap to Maprn本人新手,望高手不吝赐教。。。3Q...
请教为什么会报错?
AnsiString a;rna = "jfle"+"jflee";rnrnrn为什么报“invalid point addition”?
为什么会报错呀?
select * from swlh_identify_code t;rninsert into t MOBILE_PHONE values (2222222);
[求助]为什么会报错!?
private void btn_submit_Click(object sender, System.EventArgs e)rn rn string txt_smallclass11 = ddl_smallclass.SelectedItem.Value;rn if(txt_smallclass11 != null || txt_smallclass11.ToString() != "")rn rn。。。。。rnrn以上是我写的一个方法,可是却报错rn-----------------------rn未将对象引用设置到对象的实例。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。rnrn源错误: rnrnrn行 121: ddl_smallclass.Enabled = true;rn行 122: rn行 123: string txt_smallclass11 = ddl_smallclass.SelectedItem.Value;rn行 124: if(txt_smallclass11 != null || txt_smallclass11.ToString() != "")rn行 125: rn rnrnrnrnrn请问是什么情况????????rnrn请问是什么情况????????rnrn请问是什么情况????????
搞不懂了,为什么会报错???
winName="aa"rnupname="aa"rndownname="bb"rncash=1000rnhavcash=5000rnrn blog="投注"&upName&"VS"&downName&"的比赛,让("&caseLet&"),压"rn blog=blog&winName&"。投注金额"&cash&"盎司,账户上剩余现金"&haveCash-cash*1.02&"盎司。"rnresponse.Write blogrnrnrn出现错误提示:rnMicrosoft VBScript 编译器错误 错误 '800a0401' rnrn语句未结束 rnrn/test.asp,行18 rnrnblog=blog&winName&"。投注金额"&cash&"盎司,账户上剩余现金"&haveCash-cash*1.02&"盎司。"rnrnrn怎么回事啊???谁能指点一下?
求助!为什么会报错?
CREATE TABLE accessrulesdata (rn pK int(11) NOT NULL DEFAULT '0',rn accessRule varchar(250) binary NULL DEFAULT NULL,rn rule int(11) NOT NULL DEFAULT '0',rn isRecursive tinyint(4) NOT NULL DEFAULT '0',rn `AdminGroupData_accessRules` int(11) NULL DEFAULT NULL,rn PRIMARY KEY (pK)rn);rnrn 'binary' 附近有语法错误。
------------这么简单的模板为什么也会报错???------------------------
//Queue.hrnrn#include rntemplate class CQueue rnrnpublic:rnCQueue( int =10 ); //构造函数 rn~CQueue() delete [] m_pElements; //析构函数rnrnvoid InQueue(const Type &item); //入队,将元素加入队尾rnrn.rn.rn.rnrnprivate:rn int m_nRear,m_nFront; //队尾指针,队头指针rn Type *m_pElements; //存放队列元素的数组rn int m_nMaxSize; //队列最大可容纳元素个数rn;rn/////////////////////////////////////rn//Queue.cpprn#include "Queue.h"rnrntemplate rnCQueue::CQueue(int Sz):m_nFront(0),m_nRear(0),m_nMaxSize(Sz)rnrn m_pElements = new Type[m_nMaxSize]; //创建队列空间rn assert(m_pElements != 0); //断言:动态存储分配是否成功rnrnrntemplate rnvoid CQueue::InQueue(const Type & item)rnrn assert( !IsFull() ); //断言:队列不满则继续执行rn m_nRear = (rear+1) % m_nMaxSize; //队尾指针+1rn m_pElements[m_nRear] = item; //在队尾插入itemrnrnrn.rn.rn.rn/////////////////////////////rnmain()rnrn // RinexEpochType 为 一个结构结构体类型rn CQueue BaseStation(5);rnrn//////////////////////////////////////////////rn编译后报错?!!!rn为什么呀,为什么呀~~~~~!!!!
相关热词 c# login 居中 c# 考试软件 c# 自然语言分析 c# 分段读取文件 c# 泛型反射 c#打断点 c# 时间转多少秒 c# 线程函数加参数 c# modbus 读取 c#查询集合表