| | |
| | | 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.nvr.vo.DevNvrPageReqVO; |
| | | import com.iailab.module.data.dev.controller.admin.nvr.vo.DevNvrSaveReqVO; |
| | | import com.iailab.module.data.dev.dahua.DHCapturePictureClient; |
| | |
| | | public String save(DevNvrSaveReqVO saveReqVO) { |
| | | DevNvrEntity entity = BeanUtils.toBean(saveReqVO, DevNvrEntity.class); |
| | | entity.setCreateDate(new Date()); |
| | | entity.setUpdater(WebFrameworkUtils.getLoginUserId()); |
| | | insert(entity); |
| | | return entity.getId(); |
| | | } |
| | |
| | | @Override |
| | | public String update(DevNvrSaveReqVO saveReqVO) { |
| | | DevNvrEntity entity = BeanUtils.toBean(saveReqVO, DevNvrEntity.class); |
| | | entity.setCreateDate(new Date()); |
| | | entity.setUpdateDate(new Date()); |
| | | entity.setUpdater(WebFrameworkUtils.getLoginUserId()); |
| | | updateById(entity); |
| | | return entity.getId(); |
| | | } |