报错JAVA The operator + is undefined for the argument type(s) String, void
publicvoidinsertDataWarehouseInfo(ParamDomainparamDomain){//TODOAuto-generatedmethods...
public void insertDataWarehouseInfo(ParamDomain paramDomain) {
// TODO Auto-generated method stub
//获取数据仓库的最大的编号
Connection conn=DBConnection.getDataWarehouseConnection();
String sql="select max(to_number(id)) as num from dw_personal_hbp_info";
String sql1="select * from dw_personal_hbp_info";
try {
PreparedStatement ps=conn.prepareStatement(sql);
ResultSet rs=ps.executeQuery();
PreparedStatement ps1=conn.prepareStatement(sql1);
ResultSet rs1=ps.executeQuery();
int maxNum=0;
if(rs.next()){
maxNum=rs.getInt(1)+1;
ParamDomain domain=new ParamDomain();
String sql2="insert into dw_personal_hbp_info (ID,MR_ID,) values('"+maxNum+"','"+paramDomain.setPatient_info_id(rs1.getString("mr_id"))+"','") 展开
// TODO Auto-generated method stub
//获取数据仓库的最大的编号
Connection conn=DBConnection.getDataWarehouseConnection();
String sql="select max(to_number(id)) as num from dw_personal_hbp_info";
String sql1="select * from dw_personal_hbp_info";
try {
PreparedStatement ps=conn.prepareStatement(sql);
ResultSet rs=ps.executeQuery();
PreparedStatement ps1=conn.prepareStatement(sql1);
ResultSet rs1=ps.executeQuery();
int maxNum=0;
if(rs.next()){
maxNum=rs.getInt(1)+1;
ParamDomain domain=new ParamDomain();
String sql2="insert into dw_personal_hbp_info (ID,MR_ID,) values('"+maxNum+"','"+paramDomain.setPatient_info_id(rs1.getString("mr_id"))+"','") 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询