result = record.year_month[:4]+'年' if record.year_month else '' result = str(int(record.year_month[-2:]))+'月' if record.year_month else ''
【发放薪资月】占位符的计算逻辑,帮忙写取到2021年,和03月