🐛 修复fastjson导致首字母大写字段小写的问题
This commit is contained in:
parent
70a34f02e5
commit
fa704d791f
4
pom.xml
4
pom.xml
|
@ -10,7 +10,7 @@
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>net.javase.hk</groupId>
|
<groupId>net.javase.hk</groupId>
|
||||||
<artifactId>hk-sup-spring-boot-starter</artifactId>
|
<artifactId>hk-sup-spring-boot-starter</artifactId>
|
||||||
<version>0.0.5</version>
|
<version>0.0.6</version>
|
||||||
<name>hk-sup-spring-boot-starter</name>
|
<name>hk-sup-spring-boot-starter</name>
|
||||||
<description>hk-sup-spring-boot-starter</description>
|
<description>hk-sup-spring-boot-starter</description>
|
||||||
<properties>
|
<properties>
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba</groupId>
|
<groupId>com.alibaba</groupId>
|
||||||
<artifactId>fastjson</artifactId>
|
<artifactId>fastjson</artifactId>
|
||||||
<version>2.0.26</version>
|
<version>2.0.40</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package net.javase.hksup.starter.model;
|
package net.javase.hksup.starter.model;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson2.annotation.JSONField;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
@ -25,11 +26,13 @@ public class FaceInfoParam implements Serializable {
|
||||||
|
|
||||||
private String faceLibType = "blackFD";
|
private String faceLibType = "blackFD";
|
||||||
|
|
||||||
|
@JSONField(name = "FDID")
|
||||||
private String FDID = "1";
|
private String FDID = "1";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 人员工号,以人为中心方式,下发人脸前需要先下发人员工号,人脸绑定在工号上
|
* 人员工号,以人为中心方式,下发人脸前需要先下发人员工号,人脸绑定在工号上
|
||||||
*/
|
*/
|
||||||
|
@JSONField(name = "FPID")
|
||||||
private String FPID;
|
private String FPID;
|
||||||
|
|
||||||
public FaceInfoParam(String faceURL, String FPID) {
|
public FaceInfoParam(String faceURL, String FPID) {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package net.javase.hksup.starter.model;
|
package net.javase.hksup.starter.model;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson2.annotation.JSONField;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
|
||||||
|
@ -20,8 +21,10 @@ public class SearchFaceInfoParam implements Serializable {
|
||||||
|
|
||||||
private String faceLibType = "blackFD";
|
private String faceLibType = "blackFD";
|
||||||
|
|
||||||
|
@JSONField(name = "FDID")
|
||||||
private String FDID = "1";
|
private String FDID = "1";
|
||||||
|
|
||||||
|
@JSONField(name = "FPID")
|
||||||
private String FPID;
|
private String FPID;
|
||||||
|
|
||||||
public SearchFaceInfoParam() {
|
public SearchFaceInfoParam() {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package net.javase.hksup.starter.model;
|
package net.javase.hksup.starter.model;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson2.annotation.JSONField;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
@ -25,12 +26,15 @@ public class UserInfo implements Serializable {
|
||||||
@Builder.Default
|
@Builder.Default
|
||||||
private String userType = "normal";
|
private String userType = "normal";
|
||||||
|
|
||||||
private Valid Valid;
|
@Builder.Default
|
||||||
|
@JSONField(name = "Valid")
|
||||||
|
private Valid valid = new Valid();
|
||||||
|
|
||||||
@Builder.Default
|
@Builder.Default
|
||||||
private String doorRight = "1";
|
private String doorRight = "1";
|
||||||
|
|
||||||
private List<RightPlan> RightPlan;
|
@JSONField(name = "RightPlan")
|
||||||
|
private List<RightPlan> rightPlan;
|
||||||
|
|
||||||
@Builder.Default
|
@Builder.Default
|
||||||
private String gender = "male";
|
private String gender = "male";
|
||||||
|
@ -58,11 +62,11 @@ public class UserInfo implements Serializable {
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public static class RightPlan {
|
public static class RightPlan {
|
||||||
|
|
||||||
private Long doorNo;
|
private Integer doorNo;
|
||||||
|
|
||||||
private String planTemplateNo = "1";
|
private String planTemplateNo = "1";
|
||||||
|
|
||||||
public RightPlan(Long doorNo) {
|
public RightPlan(Integer doorNo) {
|
||||||
this.doorNo = doorNo;
|
this.doorNo = doorNo;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package net.javase.hksup.starter.model;
|
package net.javase.hksup.starter.model;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson2.annotation.JSONField;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
@ -18,7 +19,8 @@ public class UserInfoDetail implements Serializable {
|
||||||
|
|
||||||
private String mode;
|
private String mode;
|
||||||
|
|
||||||
private List<EmployeeNo> EmployeeNoList;
|
@JSONField(name = "EmployeeNoList")
|
||||||
|
private List<EmployeeNo> employeeNoList;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
|
|
|
@ -265,9 +265,8 @@ public class CmsServer {
|
||||||
|
|
||||||
//输入参数,XML或者JSON数据,删除人员信息json报文
|
//输入参数,XML或者JSON数据,删除人员信息json报文
|
||||||
Map<String, Object> parameter = new HashMap<>();
|
Map<String, Object> parameter = new HashMap<>();
|
||||||
parameter.put("mode", "byEmployeeNo"); // 删除方式, byEmployeeNo: 按员工ID号
|
|
||||||
UserInfoDetail detail = new UserInfoDetail();
|
UserInfoDetail detail = new UserInfoDetail();
|
||||||
detail.setMode("byEmployeeNo");
|
detail.setMode("byEmployeeNo"); // 删除方式, byEmployeeNo: 按员工ID号
|
||||||
List<UserInfoDetail.EmployeeNo> list = new ArrayList<>();
|
List<UserInfoDetail.EmployeeNo> list = new ArrayList<>();
|
||||||
for (String no : employeeNos) {
|
for (String no : employeeNos) {
|
||||||
list.add(new UserInfoDetail.EmployeeNo(no));
|
list.add(new UserInfoDetail.EmployeeNo(no));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user