parent
88138d36dd
commit
c6489bd069
@ -0,0 +1,26 @@ |
||||
package com.jianshui.invoice.domain.vo; |
||||
|
||||
import cn.hutool.core.annotation.Alias; |
||||
import lombok.Data; |
||||
|
||||
/** |
||||
* @author kk |
||||
* @date 2023年10月30日 19:05 |
||||
* 获取人脸识别结果 |
||||
*/ |
||||
@Data |
||||
public class InvoiceAllQycodeResultElEVO { |
||||
|
||||
|
||||
/** 扫脸状态*/ |
||||
@Alias("SLZT") |
||||
private String slzt; |
||||
@Alias("RZID") |
||||
/** 认证id*/ |
||||
private String rzid; |
||||
@Alias("YHM") |
||||
/** 电局登录用户名*/ |
||||
private String yhm; |
||||
|
||||
|
||||
} |
@ -0,0 +1,29 @@ |
||||
package com.jianshui.invoice.utils; |
||||
|
||||
import cn.hutool.core.lang.Dict; |
||||
import cn.hutool.json.JSONObject; |
||||
import cn.hutool.json.JSONUtil; |
||||
|
||||
import java.util.Iterator; |
||||
|
||||
/** |
||||
* @author kk |
||||
* @date 2023年10月31日 13:50 |
||||
* json转小写字段 |
||||
*/ |
||||
public class JsonCaseUtils { |
||||
|
||||
public static JSONObject toLowerCase(String json) { |
||||
JSONObject jsonObject = JSONUtil.parseObj(json); |
||||
|
||||
jsonObject.keySet().forEach(key -> { |
||||
String upperKey = key.toUpperCase(); |
||||
jsonObject.put(upperKey, jsonObject.get(key)); |
||||
jsonObject.remove(key); |
||||
}); |
||||
|
||||
|
||||
return jsonObject; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue