| | |
| | | import com.iailab.framework.common.service.impl.BaseServiceImpl; |
| | | import com.iailab.framework.common.util.object.BeanUtils; |
| | | import com.iailab.framework.common.util.object.ConvertUtils; |
| | | import com.iailab.framework.web.core.util.WebFrameworkUtils; |
| | | import com.iailab.module.data.dev.controller.admin.camera.vo.DevCameraPageReqVO; |
| | | import com.iailab.module.data.dev.dao.DevCameraDao; |
| | | import com.iailab.module.data.dev.dto.DevCameraDTO; |
| | |
| | | public void save(DevCameraDTO dto) { |
| | | DevCameraEntity entity = ConvertUtils.sourceToTarget(dto, DevCameraEntity.class); |
| | | entity.setCreateDate(new Date()); |
| | | entity.setCreator(WebFrameworkUtils.getLoginUserId()); |
| | | insert(entity); |
| | | } |
| | | |
| | |
| | | public void update(DevCameraDTO dto) { |
| | | DevCameraEntity entity = ConvertUtils.sourceToTarget(dto, DevCameraEntity.class); |
| | | entity.setUpdateDate(new Date()); |
| | | entity.setUpdater(WebFrameworkUtils.getLoginUserId()); |
| | | updateById(entity); |
| | | } |
| | | |