|
@@ -70,7 +70,7 @@ export class ContactApplyService extends BaseServiceV2 {
|
|
|
const mqTarget = get(apply, 'apply_user');
|
|
|
const applyUserData = await this.getUserData(mqTarget);
|
|
|
const mqTargetUserNickName = get(applyUserData, 'nick_name');
|
|
|
- let sourceStr = this.getSourceZh(source);
|
|
|
+ const sourceStr = this.getSourceZh(source);
|
|
|
const otherData = await this.searchCompleteData(source, source_id);
|
|
|
const sourceData = get(otherData, 'sourceData');
|
|
|
const sourcePropValue = get(sourceData, 'name');
|
|
@@ -128,7 +128,7 @@ export class ContactApplyService extends BaseServiceV2 {
|
|
|
// 路演类型: 是从报名id为source_id,但是来源应该是路演标题
|
|
|
const match_id = get(sourceData, 'match');
|
|
|
if (match_id) {
|
|
|
- const match = await this.match.createQueryBuilder().where(`id =:id`, { id: match_id }).getOne();
|
|
|
+ const match = await this.match.createQueryBuilder().where('id =:id', { id: match_id }).getOne();
|
|
|
sourcePropValue = get(match, propName);
|
|
|
}
|
|
|
}
|
|
@@ -138,7 +138,7 @@ export class ContactApplyService extends BaseServiceV2 {
|
|
|
obj.exam_admin = get(i, 'exam_admin');
|
|
|
const adminInfo = await this.admin
|
|
|
.createQueryBuilder()
|
|
|
- .where(`id =:id`, { id: get(i, 'exam_admin') })
|
|
|
+ .where('id =:id', { id: get(i, 'exam_admin') })
|
|
|
.getOne();
|
|
|
if (adminInfo) obj.exam_admin_name = get(adminInfo, 'nick_name');
|
|
|
}
|
|
@@ -298,7 +298,7 @@ export class ContactApplyService extends BaseServiceV2 {
|
|
|
* @param source_id 数据来源的id
|
|
|
*/
|
|
|
async searchCompleteData(source, source_id) {
|
|
|
- let model = this[source];
|
|
|
+ const model = this[source];
|
|
|
if (!model) return;
|
|
|
const sourceData = await model.createQueryBuilder().where(`"id" = :id`, { id: source_id }).getOne();
|
|
|
if (!sourceData) return;
|
|
@@ -364,6 +364,9 @@ export class ContactApplyService extends BaseServiceV2 {
|
|
|
case 'sector':
|
|
|
str = 'title';
|
|
|
break;
|
|
|
+ case 'sign':
|
|
|
+ str = 'name';
|
|
|
+ break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|