| | |
| | | #if($parentheseIndex != -1) |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | #elseif($column.javaType == 'Date') |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | #else |
| | | @Excel(name = "${comment}") |
| | | #end |
| | |
| | | <el-table-column label="${comment}" align="center" prop="${javaField}" /> |
| | | #elseif($column.list && $column.htmlType == "datetime") |
| | | <el-table-column label="${comment}" align="center" prop="${javaField}" width="180"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.${javaField}, '{y}-{m}-{d}') }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | #elseif($column.list && $column.htmlType == "imageUpload") |
| | | <el-table-column label="${comment}" align="center" prop="${javaField}" width="100"> |
| | |
| | | private String paramValue; |
| | | |
| | | /** 采集时间 */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "采集时间", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "采集时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date collectTime; |
| | | |
| | | |
| | |
| | | package com.billion.main.da.service.impl; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | |
| | | @Override |
| | | public int insertDaParamCollection(DaParamCollection daParamCollection) |
| | | { |
| | | daParamCollection.setCollectTime(new Date()); |
| | | return daParamCollectionMapper.insertDaParamCollection(daParamCollection); |
| | | } |
| | | |