20261008
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
'use strict';
|
||||
const dbName = require('../../../../dao/config.js')
|
||||
module.exports = {
|
||||
/**
|
||||
* 添加司法调证服务申请
|
||||
* @url client/contract/certificate/add 前端调用的url参数地址
|
||||
* data 请求参数
|
||||
*/
|
||||
main: async (event) => {
|
||||
let { data = {}, userInfo, util, filterResponse, originalParam } = event;
|
||||
let { customUtil, uniID, config, pubFun, vk, db, _ } = util;
|
||||
let { uid } = userInfo;
|
||||
let res = { code: 0, msg: "申请提交成功" };
|
||||
// 业务逻辑开始-----------------------------------------------------------
|
||||
|
||||
// 生成交易编号
|
||||
const orderNo = vk.pubfn.createOrderNo("C", 20);
|
||||
|
||||
// 添加司法调证服务记录
|
||||
const certificateId = await vk.baseDao.add({
|
||||
dbName: "jjx-certificate",
|
||||
dataJson: {
|
||||
userId: uid,
|
||||
status: 0, // 0-待支付 1-已支付 2-处理中 3-已完成 4-已取消
|
||||
...data
|
||||
}
|
||||
});
|
||||
|
||||
// 业务逻辑结束-----------------------------------------------------------
|
||||
return res;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user