Browse Source

Merge branch 'dev' of trick9191/wlyy2.0 into dev

trick9191 5 years ago
parent
commit
8c0c698e8d

+ 25 - 0
common/common-util/src/main/java/com/yihu/jw/util/security/Code16.java

@ -0,0 +1,25 @@
package com.yihu.jw.util.security;
/**
 * Created by Trick on 2019/7/25.
 */
public class Code16 {
    // 转化十六进制编码为字符串
    public static String toStringHex1(String s) {
        byte[] baKeyword = new byte[s.length() / 2];
        for (int i = 0; i < baKeyword.length; i++) {
            try {
                baKeyword[i] = (byte) (0xff & Integer.parseInt(s.substring(
                        i * 2, i * 2 + 2), 16));
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        try {
            s = new String(baKeyword, "utf-8");// UTF-16le:Not
        } catch (Exception e1) {
            e1.printStackTrace();
        }
        return s;
    }
}

+ 1 - 1
svr/svr-internet-hospital/src/main/java/com/yihu/jw/hospital/endpoint/prescription/PrescriptionEndpoint.java

@ -28,7 +28,7 @@ import java.util.List;
import java.util.Map;
import java.util.Map;
/**
/**
 * Created by Trick on 2019/5/16.
 * Created by Trick on 2019/5/16
 */
 */
@RestController
@RestController
@RequestMapping(value = BaseHospitalRequestMapping.Prescription.PREFIX)
@RequestMapping(value = BaseHospitalRequestMapping.Prescription.PREFIX)