Commit 3a5516831c69f39260bd6cd49acf5cbbd78929df

Authored by hanshaofeng
1 parent 13ee96364a

watermark test

Showing 1 changed file with 9 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/TestController.java View file @ 3a55168
... ... @@ -6,6 +6,7 @@
6 6 import com.lyms.platform.biz.service.PatientsService;
7 7 import com.lyms.platform.biz.service.SieveService;
8 8 import com.lyms.platform.common.enums.YnEnums;
  9 +import com.lyms.platform.common.utils.CompressEncodeingUtil;
9 10 import com.lyms.platform.common.utils.DateUtil;
10 11 import com.lyms.platform.common.utils.JsonUtil;
11 12 import com.lyms.platform.operate.web.service.SyncDataTaskService;
... ... @@ -155,6 +156,14 @@
155 156 // return "starting...........";
156 157 // }
157 158  
  159 + @RequestMapping(value = "/uncompress", method = RequestMethod.GET)
  160 + @ResponseBody
  161 + public String uncompress(String watermark) {
  162 + Long l = CompressEncodeingUtil.unCompressNumber(watermark);
  163 + String s = l.toString();
  164 + int len = s.length();
  165 + return s.substring(0,len-6) + "," + s.substring(len-6);
  166 + }
158 167  
159 168 @RequestMapping(value = "/addSieveJob", method = RequestMethod.GET)
160 169 @ResponseBody