forked from luyan/epmet-cloud-lingshan
				
			
				 12 changed files with 262 additions and 4 deletions
			
			
		@ -0,0 +1,30 @@ | 
				
			|||
package com.epmet.dto.result; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.tools.constant.NumConstant; | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
import java.util.ArrayList; | 
				
			|||
import java.util.List; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Author zxc | 
				
			|||
 * @DateTime 2022/9/19 15:47 | 
				
			|||
 * @DESC | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class NatPieResultDTO implements Serializable { | 
				
			|||
 | 
				
			|||
    private static final long serialVersionUID = -1617454069928624020L; | 
				
			|||
 | 
				
			|||
    private List<IsolatedList> isolatedList = new ArrayList<>(); | 
				
			|||
    private List<IsolatedList> historyList = new ArrayList<>(); | 
				
			|||
 | 
				
			|||
    @Data | 
				
			|||
    public static class IsolatedList{ | 
				
			|||
        private Integer total = NumConstant.ZERO; | 
				
			|||
        private String categoryCode; | 
				
			|||
        private String categoryName; | 
				
			|||
        private String color; | 
				
			|||
    } | 
				
			|||
} | 
				
			|||
@ -0,0 +1,46 @@ | 
				
			|||
package com.epmet.enums; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.tools.constant.NumConstant; | 
				
			|||
import org.apache.commons.lang3.StringUtils; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Author zxc | 
				
			|||
 * @DateTime 2022/3/29 16:17 | 
				
			|||
 * @DESC | 
				
			|||
 */ | 
				
			|||
public enum NatPieColorEnum { | 
				
			|||
 | 
				
			|||
    REd("0","#ee6666"), | 
				
			|||
    YELLOW("2","#fac858"), | 
				
			|||
    ORANGE("1","#fc8452"), | 
				
			|||
    GREEN("3","#91cc75"), | 
				
			|||
            ; | 
				
			|||
 | 
				
			|||
    private String key; | 
				
			|||
    private String value; | 
				
			|||
 | 
				
			|||
    NatPieColorEnum(String key, String value) { | 
				
			|||
        this.key = key; | 
				
			|||
        this.value = value; | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    public static String getValueByKey(String key){ | 
				
			|||
        if (StringUtils.isBlank(key)){ | 
				
			|||
            return NumConstant.ZERO_STR; | 
				
			|||
        } | 
				
			|||
        for (NatPieColorEnum a : NatPieColorEnum.values()) { | 
				
			|||
            if (a.getKey().equals(key)){ | 
				
			|||
                return a.getValue(); | 
				
			|||
            } | 
				
			|||
        } | 
				
			|||
        return NumConstant.ZERO_STR; | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    public String getKey() { | 
				
			|||
        return key; | 
				
			|||
    } | 
				
			|||
 | 
				
			|||
    public String getValue() { | 
				
			|||
        return value; | 
				
			|||
    } | 
				
			|||
} | 
				
			|||
@ -1,4 +1,3 @@ | 
				
			|||
ALTER TABLE ic_epidemic_special_attention ADD COLUMN IS_HISTORY tinyint not null DEFAULT '0' COMMENT '是否历史关注,1是0否' AFTER ATTENTION_TYPE; | 
				
			|||
 | 
				
			|||
ALTER TABLE ic_epidemic_special_attention ADD COLUMN ISOLATED_TYPE VARCHAR(10) COMMENT '隔离类型,来自字典表' AFTER IS_HISTORY; | 
				
			|||
ALTER TABLE ic_epidemic_special_attention ADD COLUMN ISOLATED_DAY INT(10) COMMENT '隔离天数' AFTER ISOLATED_TYPE; | 
				
			|||
ALTER TABLE ic_epidemic_special_attention ADD COLUMN ISOLATED_STATE VARCHAR(20) COMMENT '隔离类型,来自字典表' AFTER IS_HISTORY; | 
				
			|||
 | 
				
			|||
					Loading…
					
					
				
		Reference in new issue