Commit 5dd8a3a1 by 王栋源

wdy

parent 7f721985
......@@ -56,13 +56,13 @@ class NeedinfoService extends ServiceBase {
async submitNeed(pobj, actionBody, req) {
var needNo = await this.getBusUid("n");
if (!actionBody.intentionBizId) {
return system.getResultFail(-5001,"intentionBizId不能为空");
return system.getResultFail(-5001, "intentionBizId不能为空");
}
if (!actionBody.mobile) {
return system.getResultFail(-5002,"mobile不能为空");
return system.getResultFail(-5002, "mobile不能为空");
}
if (!actionBody.type) {
return system.getResultFail(-5003,"type不能为空");
return system.getResultFail(-5003, "type不能为空");
}
var ninfo = await this.findOne({ channelNeedNo: actionBody.intentionBizId });
if (ninfo) {
......@@ -78,7 +78,10 @@ class NeedinfoService extends ServiceBase {
publishMobile: actionBody.mobile,
city: actionBody.area,
// disposeNotes: actionBody.ext,
channelTypeCode: actionBody.type,
typeCode: actionBody.type_code,
typeName: actionBody.type_name,
channelTypeCode: actionBody.channel_type_code,
channelTypeName: actionBody.channel_type_name,
status: "wts"
}
await this.dao.create(nobj);
......@@ -91,7 +94,7 @@ class NeedinfoService extends ServiceBase {
}
var needinfo = await this.findOne({ channelNeedNo: actionBody.intentionBizId });
if (!needinfo) {
return system.getResultFail(-5004,"需求不存在");
return system.getResultFail(-5004, "需求不存在");
}
if (needinfo.status == "ygb" || needinfo.status == "ycd") {
return system.getResultSuccess();
......
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