fix: 自测bug修复。

This commit is contained in:
tianyongbao
2024-06-08 00:22:13 +08:00
parent 8faf218192
commit 7d891b57fd

View File

@@ -35,7 +35,14 @@ public class AccountsServiceImpl implements IAccountsService
@Override
public AccountsVo selectAccountsById(Long id)
{
return accountsMapper.selectAccountsById(id);
AccountsVo accounts= accountsMapper.selectAccountsById(id);
if(!"null".equals(String.valueOf(accounts.getBillDate()))) {
accounts.setBillDateName(accounts.getBillDate()+"");
}
if(!"null".equals(String.valueOf(accounts.getPayDate()))) {
accounts.setPayDateName(accounts.getPayDate()+"");
}
return accounts;
}
/**