Commit 3e04b04f by 王栋源

wdy

parent f05f9e3d
......@@ -49,15 +49,23 @@ class NeedinfoService extends ServiceBase {
async opNeedList(pobj, actionBody, req) {
// 时间段,分页,排序,需求状态 条件展示未做
var needinfo = await this.dao.model.findAll({
where:{
channelUserId: pobj.userInfo.channel_userid
},
order: [["id", 'desc']],
attributes: ["needNo", "status", "statusName"],
raw: true
});
return system.getResult(needinfo);
var sobj = {
search: {
channelUserId: pobj.userInfo.channel_userid
},
pageInfo: {
pageNo: Number(actionBody.pageNumber) || 1,
pageSize: Number(actionBody.pageSize) || 10
}
}
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) {
......
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