| | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.vincent.rsf.server.system.service.DictDataService; |
| | | import lombok.experimental.Accessors; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import java.text.SimpleDateFormat; |
| | |
| | | |
| | | public String getReset$(){ |
| | | if (null == this.reset){ return null; } |
| | | switch (this.reset){ |
| | | case "year": |
| | | return " 年"; |
| | | case "month": |
| | | return " 月"; |
| | | case "dd": |
| | | return " 天"; |
| | | case "non": |
| | | return " 无"; |
| | | default: |
| | | return String.valueOf(this.reset); |
| | | DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); |
| | | DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>() |
| | | .eq(DictData::getDictTypeCode,"sys_rule_type").eq(DictData::getValue, this.reset)); |
| | | if (null != dictData){ |
| | | return dictData.getLabel(); |
| | | } |
| | | return String.valueOf(this.reset); |
| | | } |
| | | |
| | | public String getStatus$(){ |