Commit 5c37ec57 by wkliang

add lc

parent 1016efff
......@@ -60,6 +60,10 @@ class diagnosisNeedBus extends WEBBase {
}
opResult = await this.unSve.getNeedDetail(pobj);
break;
case 'licenseCompare':
opResult = await this.unSve.licenseCompare(pobj);
break
default:
opResult = system.getResult(null, "actionType参数错误");
break;
......
......@@ -3,14 +3,14 @@ var settings = require("../../../../config/settings");
const AppServiceBase = require("../../app.base");
class FblicenseService extends AppServiceBase {
constructor() {
constructor () {
super();
this.centerOrderUrl = settings.centerOrderUrl()
this.restClient = system.getObject("util.restClient")
};
//获取列表、检索
async getList(pobj) {
async getList (pobj) {
try {
let url = `${this.centerOrderUrl}action/diagnosisneedbus/springBoard`
pobj.actionType = 'getList'
......@@ -22,7 +22,7 @@ class FblicenseService extends AppServiceBase {
}
// 获取详情
async getDetail(pobj) {
async getDetail (pobj) {
try {
let url = `${this.centerOrderUrl}action/diagnosisneedbus/springBoard`
pobj.actionType = 'getDetail'
......@@ -37,7 +37,7 @@ class FblicenseService extends AppServiceBase {
}
// 认证
async doEAV(pobj) {
async doEAV (pobj) {
try {
let url = `${this.centerOrderUrl}action/diagnosisneedbus/springBoard`
pobj.actionType = 'doEAV'
......@@ -49,7 +49,7 @@ class FblicenseService extends AppServiceBase {
}
// 获取需求列表
async getNeedList(pobj) {
async getNeedList (pobj) {
try {
let url = `${this.centerOrderUrl}action/diagnosisneedbus/springBoard`
pobj.actionType = 'getNeedList'
......@@ -60,7 +60,7 @@ class FblicenseService extends AppServiceBase {
}
}
// 获取需求详情
async getNeedDetail(pobj) {
async getNeedDetail (pobj) {
try {
let url = `${this.centerOrderUrl}action/diagnosisneedbus/springBoard`
pobj.actionType = 'getNeedDetail'
......@@ -70,6 +70,49 @@ class FblicenseService extends AppServiceBase {
return system.getResultFail(-1, error.message || 'failed')
}
}
async licenseCompare (pobj) {
let res = {
"Message": "查询成功",
"OrderNumber": null,
"Result": {
"Data": {
"中央厨房": "否",
"主体业态": "单位食堂",
"住所": "新疆维吾尔自治区伊犁州伊宁县伊东工业园管委会",
"发证日期": "2018年07月19日",
"发证机关": "伊宁县市场监督管理局",
"散装熟食销售": "否",
"日常监督管理人员": "杜爱洪加拉斯",
"日常监督管理机构": "伊宁县市场监督管理局",
"有效期至": "2023年07月18日",
"法定代表人(负责人)": "霍庆华",
"监督举报电话": "",
"签发人": "马江平",
"经营场所": "新疆维吾尔自治区伊犁州伊宁县伊东工业园管委会",
"经营者名称": "新疆庆华能源集团有限公司",
"经营项目": "热食类食品制售,",
"网络经营": "否",
"许可证状态": "有效",
"许可证编号": "JY36540210003935",
"集体用餐配送单位": "否"
},
"Id": "85eb513de02c7ff8199bda197992888c",
"Schema": null
},
"Status": "200"
}
if (res.Status == 200) {
let result = res.Result.Data
let keys = Object.keys(result)
for (let i of keys) {
if (!result[i]) {
delete result[i]
}
}
return result
}
}
}
module.exports = FblicenseService;
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