UNPKG

dm-web-react

Version:

The DM web client with React.

27 lines 1.89 kB
import { ObjectUtils } from "ts-commons"; function brokerMarketTodayDealFilter(item) { var todayDeal = { id: item.id, bondUniCode: item.bondUniCode, tenor: ObjectUtils.isNullOrUndefined(item.tenor) ? "--" : item.tenor, code: ObjectUtils.isNullOrUndefined(item.code) ? "--" : item.code, shortName: ObjectUtils.isNullOrUndefined(item.shortName) ? "--" : item.shortName, yield: ObjectUtils.isNullOrUndefined(item.yield) ? "--" : item.yield.toFixed(4), fairValue: ObjectUtils.isNullOrUndefined(item.fairValue) ? "--" : item.fairValue.toFixed(4), dealSubChinaBond: ObjectUtils.isNullOrUndefined(item.dealSubChinaBond) ? "--" : item.dealSubChinaBond.toFixed(2), macd: ObjectUtils.isNullOrUndefined(item.macd) ? "--" : item.macd, ratingList: (item.issRating || "--") + "/" + (item.bondRating || "--") + "/" + (item.issRatePros || "--"), brokerShortName: item.brokerShortName, updateTime: ObjectUtils.isNullOrUndefined(item.updateTime) ? "--" : item.updateTime, instInvestmentAdvice: ObjectUtils.isNullOrUndefined(item.instInvestmentAdvice) ? "--" : item.instInvestmentAdvice, instRating: ObjectUtils.isNullOrUndefined(item.instRating) ? "--" : item.instRating, pdRating: ObjectUtils.isNullOrUndefined(item.pdRating) ? "--" : item.pdRating, worstPd: ObjectUtils.isNullOrUndefined(item.worstPd) ? "--" : item.worstPd, yieldToMaturity: ObjectUtils.isNullOrUndefined(item.yieldToMaturity) ? "--" : item.yieldToMaturity.toFixed(4), dealSubChinaSecurities: ObjectUtils.isNullOrUndefined(item.dealSubChinaSecurities) ? "--" : item.dealSubChinaSecurities.toFixed(2), statusValue: item.statusValue, }; return todayDeal; } export { brokerMarketTodayDealFilter }; //# sourceMappingURL=brokerMarketTodayDealDto.js.map