internal int EditApi_hzins_orderCancel(Api_hzins_orderCancel m)
        {
            //暂时阶段只是有录入操作,没有编辑操作
            if (m.id == 0)
            {
                string sql = @"INSERT INTO  [api_hzins_orderCancel]
                                    ([orderid]
                                    ,[insureNo]
                                    ,[respCode]
                                    ,[respMsg])
                                VALUES
                                    (@orderid 
                                    ,@insureNo 
                                    ,@respCode 
                                    ,@respMsg);select @@identity;";
                var    cmd = sqlHelper.PrepareTextSqlCommand(sql);
                cmd.AddParam("@orderid", m.orderid);
                cmd.AddParam("@insureNo", m.insureNo);
                cmd.AddParam("@respCode", m.respCode);
                cmd.AddParam("@respMsg", m.respMsg);

                object o = cmd.ExecuteScalar();
                return(int.Parse(o.ToString()));
            }
            else
            {
                return(0);
            }
        }
示例#2
0
 public int EditApi_hzins_orderCancel(Api_hzins_orderCancel mApi_hzins_orderCancel)
 {
     using (var helper = new SqlHelper())
     {
         int r = new Internalapi_hzins_orderCancel(helper).EditApi_hzins_orderCancel(mApi_hzins_orderCancel);
         return(r);
     }
 }