修改导出功能字段
parent
d917806dc2
commit
f23ef0a712
|
|
@ -112,6 +112,8 @@
|
||||||
coalesce(o.opportunity_type, '新建') as type,
|
coalesce(o.opportunity_type, '新建') as type,
|
||||||
coalesce(o.archived, false) as archived,
|
coalesce(o.archived, false) as archived,
|
||||||
coalesce(o.pushed_to_oms, false) as pushedToOms,
|
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.product_type, 'VDI云桌面') as product,
|
||||||
coalesce(o.source, '主动开发') as source,
|
coalesce(o.source, '主动开发') as source,
|
||||||
o.sales_expansion_id as salesExpansionId,
|
o.sales_expansion_id as salesExpansionId,
|
||||||
|
|
|
||||||
|
|
@ -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"));
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue