소스 검색

特殊字符替换处理

zhouy 3 달 전
부모
커밋
a6bf964b54
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      uas-office-qywx/src/main/java/com/usoftchina/uas/office/qywx/entity/OutSign.java

+ 1 - 1
uas-office-qywx/src/main/java/com/usoftchina/uas/office/qywx/entity/OutSign.java

@@ -33,7 +33,7 @@ public class OutSign {
     public OutSign(Employee employee, GetCheckinDataResp.CheckinData data) {
         this.mo_remark = "微信外出打卡";
         this.mo_signtime = new Date(data.getCheckin_time() * 1000);
-        this.mo_address = data.getLocation_detail();
+        this.mo_address = StringUtils.hasText(data.getLocation_detail())?data.getLocation_detail().replaceAll("'",""):null;
         this.mo_mancode = employee.getEm_code();
         this.mo_man = employee.getEm_name();
         this.mo_company = (StringUtils.hasText(data.getLocation_title())?data.getLocation_title().replaceAll("'",""):null);