This commit is contained in:
leejh 2019-09-25 16:14:14 +09:00
commit 7a1782a39b

View File

@ -80,6 +80,7 @@ export const decodeBuddyDetailData: ProtocolDecoder<BuddyDetailData> = (
const buddyInfos: UserInfo[] = []; const buddyInfos: UserInfo[] = [];
message.bodyList.forEach(buddyinfo => { message.bodyList.forEach(buddyinfo => {
const info = buddyinfo.split(BodyStringDivider); const info = buddyinfo.split(BodyStringDivider);
console.log('buddyinfo', info);
let i = 0; let i = 0;
buddyInfos.push({ buddyInfos.push({
seq: info[i], seq: info[i],
@ -91,11 +92,11 @@ export const decodeBuddyDetailData: ProtocolDecoder<BuddyDetailData> = (
hpNumber: info[i++], hpNumber: info[i++],
lineNumber: info[i++], lineNumber: info[i++],
email: info[i++], email: info[i++],
isMobile: info[i++], isMobile: info[i++] === 'Y' ? true : false,
deptName: info[i++], deptName: info[i++],
isFavorit: info[i++], isFavorit: info[i++] === 'Y' ? true : false,
isBuddy: info[i++], isBuddy: info[i++] === 'Y' ? true : false,
isActive: info[i++], isActive: info[i++] === 'Y' ? true : false,
roleCd: info[i++], roleCd: info[i++],
employeeNum: info[i++], employeeNum: info[i++],
madn: info[i++], madn: info[i++],
@ -107,8 +108,8 @@ export const decodeBuddyDetailData: ProtocolDecoder<BuddyDetailData> = (
gradeCn: info[i++], gradeCn: info[i++],
deptNameEn: info[i++], deptNameEn: info[i++],
deptNameCn: info[i++], deptNameCn: info[i++],
isPrivacyAgree: info[i++], isPrivacyAgree: info[i++] === 'Y' ? true : false,
isValidLogin: info[i++], isValidLogin: info[i++] === 'Y' ? true : false,
employeeType: info[i++], employeeType: info[i++],
nickName: info[i++] nickName: info[i++]
}); });