修改导出功能字段

main
kangwenjing 2026-06-29 09:50:46 +08:00
parent d917806dc2
commit f23ef0a712
2 changed files with 24 additions and 0 deletions

View File

@ -112,6 +112,8 @@
coalesce(o.opportunity_type, '新建') as type,
coalesce(o.archived, false) as archived,
coalesce(o.pushed_to_oms, false) as pushedToOms,
o.actual_signed_amount as actualSignedAmount,
coalesce(o.is_poc, false) as isPoc,
coalesce(o.product_type, 'VDI云桌面') as product,
coalesce(o.source, '主动开发') as source,
o.sales_expansion_id as salesExpansionId,

View File

@ -0,0 +1,22 @@
package com.unis.crm.mapper;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import org.junit.jupiter.api.Test;
class OpportunityMapperSqlTest {
@Test
void selectOpportunities_shouldIncludeActualSignedAmountAndIsPocColumns() throws IOException {
String xml = Files.readString(
Path.of("src/main/resources/mapper/opportunity/OpportunityMapper.xml"),
StandardCharsets.UTF_8);
assertTrue(xml.contains("o.actual_signed_amount as actualSignedAmount"));
assertTrue(xml.contains("coalesce(o.is_poc, false) as isPoc"));
}
}