Commit 3e04b04f by 王栋源

wdy

parent f05f9e3d
...@@ -49,15 +49,23 @@ class NeedinfoService extends ServiceBase { ...@@ -49,15 +49,23 @@ class NeedinfoService extends ServiceBase {
async opNeedList(pobj, actionBody, req) { async opNeedList(pobj, actionBody, req) {
// 时间段,分页,排序,需求状态 条件展示未做 // 时间段,分页,排序,需求状态 条件展示未做
var needinfo = await this.dao.model.findAll({ var sobj = {
where:{ search: {
channelUserId: pobj.userInfo.channel_userid channelUserId: pobj.userInfo.channel_userid
}, },
order: [["id", 'desc']], pageInfo: {
attributes: ["needNo", "status", "statusName"], pageNo: Number(actionBody.pageNumber) || 1,
raw: true pageSize: Number(actionBody.pageSize) || 10
}); }
return system.getResult(needinfo); }
if (actionBody.ConsultType) {
sobj.search.consult_type = actionBody.consultType;
}
if (actionBody.status) {
sobj.search.status = actionBody.status;
}
var r = await this.dao.findAndCountAll(sobj);
return system.getResultSuccess(r);
} }
async opNeedClose(pobj, actionBody, req) { async opNeedClose(pobj, actionBody, req) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment