| | |
| | | import com.ycl.utils.uuid.IdUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.util.Assert; |
| | | import org.springframework.util.StringUtils; |
| | | |
| | | import java.util.Date; |
| | |
| | | |
| | | private final DynamicColumnMapper dynamicColumnMapper; |
| | | |
| | | private final static String TABLE_NAME = "t_monitor"; |
| | | private final static String TABLE_NAME = "t_yw_point"; |
| | | |
| | | /** |
| | | * 添加 |
| | |
| | | throw new RuntimeException("列名称不能重复"); |
| | | } |
| | | DynamicColumn entity = DynamicColumnForm.getEntityByForm(form, null); |
| | | entity.setPropName(IdUtils.timeAddRandomNO(3)); |
| | | entity.setPropName(IdUtils.randomNO(new Date())); |
| | | entity.setCreateTime(new Date()); |
| | | entity.setTableName(TABLE_NAME); |
| | | baseMapper.insert(entity); |