Sfoglia il codice sorgente

特殊字符替换处理

zhouy 3 mesi fa
parent
commit
a6bf964b54

+ 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);