Commit c286b23b authored by Hsinli's avatar Hsinli

addd

parent ca6b0527
Pipeline #13443 passed with stage
in 4 seconds
......@@ -10,7 +10,7 @@ class CommonService extends Service {
/**
*
* @param {*} type 黑名单00通话01
* @param {*} id 报告自增编号
* @param {*} id 报告自增编号(report_id)
*/
async getReportNo(type, id) {
let prefix = '51GJJ' + moment().format('YYYYMMDD') + type;
......@@ -22,6 +22,21 @@ class CommonService extends Service {
return prefix + suffix;
}
/**
*
* @param {*} type 黑名单00通话01
* @param {*} id 订单自增编号(order_id)
*/
async getOrdertNo(type, id) {
let prefix = '51GJJOD' + moment().format('YYYYMMDD') + type;
let suffix = String(Number(id) + 12580);
if (suffix.length > 5) {
let subStart = suffix.length - 5;
suffix = suffix.substring(subStart, suffix.length + 1);
}
return prefix + suffix;
}
}
......
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