public override string InvokeRequest() { Resp38B resp = new Resp38B(); try { Criteria c = new Criteria(); c.leaseNumber = this.req.data.userid; //注意这里的userid c.feedbackId = this.req.data.feedbackid; List <M_T_Feedback_Res> etyList = this.Select(c); resp.data.result = "100"; resp.data.message = "接口操作成功"; Resp38B2 r38b2 = null; for (int i = 0; i < etyList.Count; i++) { r38b2 = new Resp38B2(); r38b2.date = etyList[i].CreateDate.ToString(); r38b2.detail = etyList[i].Detail; r38b2.id = etyList[i].Id; r38b2.replytype = etyList[i].ReplyType; r38b2.replyperson = etyList[i].ReplyPerson; resp.data.replyinfo.Add(r38b2); } } catch (Exception err) { resp.code = "200"; resp.msg = "接口操作失败"; resp.time = Common.Today; resp.status = "false"; resp.data.result = "200"; resp.data.message = err.Message; } return(Common.Serialize <Resp38B>(resp)); }
public override string InvokeRequest() { Resp38B resp = new Resp38B(); Criteria c = new Criteria(); c.leaseNumber = this.req.data.leasenum; c.feedbackId = this.req.data.feedbackid; List <M_T_Feedback_Res> etyList = this.Select(c); resp.code = "100"; resp.msg = "接口操作成功"; for (int i = 0; i < etyList.Count; i++) { Resp38B2 r38b2 = new Resp38B2(); r38b2.date = etyList[i].CreateDate.ToString(); r38b2.detail = etyList[i].Detail; r38b2.id = etyList[i].Id; r38b2.replytype = etyList[i].ReplyType; r38b2.replyperson = etyList[i].ReplyPerson; resp.data.replyinfo.Add(r38b2); } return(Common.Serialize <Resp38B>(resp)); }