Commit 23dbcdb7 by 杨卫

Merge remote-tracking branch 'origin/V5.5.3' into V5.5.3

2 parents f84fb3c2 a21375aa
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<dependency> <dependency>
<groupId>cn.com.glsx</groupId> <groupId>cn.com.glsx</groupId>
<artifactId>rpc-dj-mindworkplate-api</artifactId> <artifactId>rpc-dj-mindworkplate-api</artifactId>
<version>5.3.0-SNAPSHOT</version> <version>5.5.3-SNAPSHOT</version>
</dependency> </dependency>
</dependencies> </dependencies>
</plugin> </plugin>
......
...@@ -209,4 +209,10 @@ public class EmployeeBadgeDTO extends EmployeeBadge implements Serializable { ...@@ -209,4 +209,10 @@ public class EmployeeBadgeDTO extends EmployeeBadge implements Serializable {
@ApiModelProperty(notes = "接待手机号") @ApiModelProperty(notes = "接待手机号")
private List<String> phoneList; private List<String> phoneList;
/**
* 客户手机号
*/
@ApiModelProperty(notes = "客户手机号")
private String customerPhone;
} }
\ No newline at end of file \ No newline at end of file
...@@ -101,12 +101,21 @@ public class ConversationBatchService { ...@@ -101,12 +101,21 @@ public class ConversationBatchService {
if (org.apache.commons.collections4.CollectionUtils.isNotEmpty(merchantRopResponses)) { if (org.apache.commons.collections4.CollectionUtils.isNotEmpty(merchantRopResponses)) {
merchantDTO.setMerchantName(merchantRopResponses.get(0).getMerchantName()); merchantDTO.setMerchantName(merchantRopResponses.get(0).getMerchantName());
} }
merchantDTO.setPhoneNumber(maskPhoneNumber(merchantDTO.getPhoneNumber()));
} }
} }
} }
return res; return res;
} }
public static String maskPhoneNumber(String phone) {
if (phone == null || phone.length() != 11) {
return phone; // 或抛出异常、返回空字符串等,根据业务需求处理
}
return phone.substring(0, 3) + "****" + phone.substring(7);
}
public String generateFileUrlShortLink(ReceptionDetailRequestDTO request){ public String generateFileUrlShortLink(ReceptionDetailRequestDTO request){
ConversationBatch conversationBatch = conversationBatchMapper.findHisFlagByBatchId( ConversationBatch conversationBatch = conversationBatchMapper.findHisFlagByBatchId(
request.getBatchId()); request.getBatchId());
......
...@@ -299,10 +299,20 @@ public class EmployeeBadgeService { ...@@ -299,10 +299,20 @@ public class EmployeeBadgeService {
long a = duration == null ? 0l : Long.parseLong(duration) / 1000; long a = duration == null ? 0l : Long.parseLong(duration) / 1000;
dto.setDuration(String.valueOf(a)); dto.setDuration(String.valueOf(a));
dto.setDefencePoint(formatDefenceScore(dto.getDefencePoint())); dto.setDefencePoint(formatDefenceScore(dto.getDefencePoint()));
// phoneNumber脱敏显示为 139****8888 格式
dto.setPhoneNumber(maskPhoneNumber(dto.getPhoneNumber()));
} }
return page; return page;
} }
public static String maskPhoneNumber(String phone) {
if (phone == null || phone.length() != 11) {
return phone; // 或抛出异常、返回空字符串等,根据业务需求处理
}
return phone.substring(0, 3) + "****" + phone.substring(7);
}
public String formatDefenceScore(String defenceScore) { public String formatDefenceScore(String defenceScore) {
if (defenceScore == null || defenceScore.trim().isEmpty()) { if (defenceScore == null || defenceScore.trim().isEmpty()) {
return null; return null;
......
...@@ -125,11 +125,9 @@ ...@@ -125,11 +125,9 @@
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="condition.storePhoneList != null and condition.storePhoneList.size>0">
AND t1.phone_number in <if test="condition.customerPhone != null">
<foreach close=")" collection="condition.storePhoneList" item="item" open="(" separator=","> AND t1.phone_number like concat('%', #{condition.customerPhone}, '%')
#{item}
</foreach>
</if> </if>
<if test="condition.recDevList != null and condition.recDevList.size>0"> <if test="condition.recDevList != null and condition.recDevList.size>0">
AND t1.badge_id in AND t1.badge_id in
...@@ -459,6 +457,9 @@ ...@@ -459,6 +457,9 @@
<if test="condition.enterpriseCustomerFlag != null and condition.enterpriseCustomerFlag ==1 "> <if test="condition.enterpriseCustomerFlag != null and condition.enterpriseCustomerFlag ==1 ">
and t1.customer_name like concat('%','公司','%') and t1.customer_name like concat('%','公司','%')
</if> </if>
<if test="condition.customerPhone != null and condition.customerPhone != ''">
and t1.phone_number like concat('%',#{condition.phone},'%')
</if>
and t2.badge_id is not null and t2.badge_id is not null
</select> </select>
......
...@@ -117,12 +117,6 @@ public class EmployeeBadgeServiceTest extends BaseServiceTest{ ...@@ -117,12 +117,6 @@ public class EmployeeBadgeServiceTest extends BaseServiceTest{
employeeBadgeDTO.setSearchStartDate("2024-06-01"); employeeBadgeDTO.setSearchStartDate("2024-06-01");
employeeBadgeDTO.setSearchEndDate("2024-06-30"); employeeBadgeDTO.setSearchEndDate("2024-06-30");
employeeBadgeDTO.setBussinessType(1); employeeBadgeDTO.setBussinessType(1);
employeeBadgeDTO.setQualityTestScoreBegin(1);
employeeBadgeDTO.setQualityTestScoreEnd(30);
employeeBadgeDTO.setOrderTransactionFlag(1);
employeeBadgeDTO.setOrderAxbTransactionFlag(1);
employeeBadgeDTO.setOrderTransactionAmount(new BigDecimal(10));
employeeBadgeDTO.setCarBrandIds(Arrays.asList(1,2));
String s = employeeBadgeService.customerBaseListExportV2(employeeBadgeDTO); String s = employeeBadgeService.customerBaseListExportV2(employeeBadgeDTO);
log.info("返回结果{}", JSONObject.toJSONString(s)); log.info("返回结果{}", JSONObject.toJSONString(s));
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!