|
@@ -0,0 +1,59 @@
|
|
|
+package com.zfjg.manage.service.impl.other;
|
|
|
+
|
|
|
+import cn.hutool.core.util.IdUtil;
|
|
|
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import com.zfjg.common.core.utils.bean.BeanUtils;
|
|
|
+import com.zfjg.common.core.web.page.TableInfo;
|
|
|
+import com.zfjg.manage.api.domain.other.WReport;
|
|
|
+import com.zfjg.manage.api.dto.other.WReportDto;
|
|
|
+import com.zfjg.manage.api.dto.other.WReportQuery;
|
|
|
+import com.zfjg.manage.api.vo.other.WReportDetailVO;
|
|
|
+import com.zfjg.manage.mapper.other.WReportMapper;
|
|
|
+import com.zfjg.manage.service.other.IWReportService;
|
|
|
+import com.zfjg.manage.service.other.WReportBizService;
|
|
|
+import org.springframework.beans.BeansException;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+
|
|
|
+import java.time.LocalDateTime;
|
|
|
+
|
|
|
+/**
|
|
|
+ * <p>
|
|
|
+ * 服务实现类
|
|
|
+ * </p>
|
|
|
+ *
|
|
|
+ * @author xuxiaodong
|
|
|
+ * @since 2024-11-20
|
|
|
+ */
|
|
|
+@Service
|
|
|
+public class WReportServiceImpl extends ServiceImpl<WReportMapper, WReport> implements IWReportService, WReportBizService {
|
|
|
+ @Override
|
|
|
+ public String addReport(WReportDto reportDto) {
|
|
|
+ try {
|
|
|
+ WReport wReport = new WReport();
|
|
|
+ BeanUtils.copyProperties(reportDto, wReport);
|
|
|
+ LocalDateTime currentTime = LocalDateTime.now();
|
|
|
+ wReport.setId(IdUtil.getSnowflake(1, 1).nextId());
|
|
|
+ wReport.setCreateTime(currentTime);
|
|
|
+ wReport.setUpdateTime(currentTime);
|
|
|
+ this.save(wReport);
|
|
|
+ return "ok";
|
|
|
+ } catch (Exception e) {
|
|
|
+ return "error";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String updateReport(WReportDto reportDto) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public WReportDetailVO reportDetail(String orgId) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public TableInfo<?> listReport(WReportQuery wReportQuery) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+}
|