fix():通讯测试-剪切类型转换
This commit is contained in:
@@ -29,17 +29,22 @@ public enum ExitCutTypeEnum implements IEnum<String>{
|
||||
}
|
||||
}
|
||||
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static ExitCutTypeEnum getByValue(String value) {
|
||||
return MAP.get(value);
|
||||
}
|
||||
// @JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
// public static ExitCutTypeEnum getByValue(String value) {
|
||||
// return MAP.get(value);
|
||||
// }
|
||||
|
||||
@JsonValue
|
||||
// @JsonValue
|
||||
@Override
|
||||
public String getValue() {
|
||||
return this.name();
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
@JsonCreator
|
||||
public static ExitCutTypeEnum fromCode(int code) {
|
||||
for (ExitCutTypeEnum unit : values()) {
|
||||
if (unit.getCode() == code) {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.fizz.business.controller;
|
||||
|
||||
import com.fizz.business.constants.enums.ExitCutTypeEnum;
|
||||
import com.fizz.business.constants.enums.OpcMessageType;
|
||||
import com.fizz.business.domain.msg.EntryMovementMessage;
|
||||
import com.fizz.business.domain.msg.ExitCutMessage;
|
||||
@@ -12,10 +13,7 @@ import com.ruoyi.common.annotation.Anonymous;
|
||||
import com.ruoyi.common.core.domain.R;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
Reference in New Issue
Block a user