Sfoglia il codice sorgente

fix:代办日志接口

wang.sq@aliyun.com 3 settimane fa
parent
commit
0da387578f

+ 4 - 0
imcs-admin-boot/imcs-business-biz/src/main/java/com/github/zuihou/business/productionReadyCenter/service/MesNoticeLogService.java

@@ -4,6 +4,8 @@ import com.github.zuihou.base.service.SuperService;
 import com.github.zuihou.business.externalApi.entity.MesNotice;
 import com.github.zuihou.business.externalApi.entity.MesNoticeLog;
 
+import java.util.List;
+
 /**
  * @Project: imcs-admin-boot
  * @Package: com.github.zuihou.business.productionReadyCenter.service
@@ -13,4 +15,6 @@ import com.github.zuihou.business.externalApi.entity.MesNoticeLog;
  */
 public interface MesNoticeLogService extends SuperService<MesNoticeLog> {
 
+    List<MesNoticeLog> getList(MesNotice dto);
+
 }

+ 10 - 0
imcs-admin-boot/imcs-business-biz/src/main/java/com/github/zuihou/business/productionReadyCenter/service/impl/MesNoticeLogServiceImpl.java

@@ -7,9 +7,12 @@ import com.github.zuihou.business.externalApi.entity.MesNotice;
 import com.github.zuihou.business.externalApi.entity.MesNoticeLog;
 import com.github.zuihou.business.productionReadyCenter.service.MesNoticeLogService;
 import com.github.zuihou.business.productionReadyCenter.service.MesNoticeService;
+import com.github.zuihou.database.mybatis.conditions.Wraps;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 
+import java.util.List;
+
 /**
  * @Project: imcs-admin-boot
  * @Package: com.github.zuihou.business.productionReadyCenter.service.impl
@@ -23,4 +26,11 @@ import org.springframework.stereotype.Service;
 @Service
 public class MesNoticeLogServiceImpl extends SuperServiceImpl<MesNoticeLogMapper, MesNoticeLog> implements MesNoticeLogService {
 
+    @Override
+    public List<MesNoticeLog> getList(MesNotice dto) {
+
+        List<MesNoticeLog> mesNoticeLogs = baseMapper.selectList(Wraps.<MesNoticeLog>lbQ().eq(MesNoticeLog::getNoticeId, dto.getId()).orderByAsc(MesNoticeLog::getCreateTime));
+
+        return mesNoticeLogs;
+    }
 }

+ 56 - 0
imcs-admin-boot/imcs-business-controller/src/main/java/com/github/zuihou/business/controller/productionResourceCenter/MesNoticeLogController.java

@@ -0,0 +1,56 @@
+package com.github.zuihou.business.controller.productionResourceCenter;
+
+import com.github.zuihou.base.R;
+import com.github.zuihou.base.controller.SuperController;
+import com.github.zuihou.business.externalApi.entity.MesNotice;
+import com.github.zuihou.business.externalApi.entity.MesNoticeLog;
+import com.github.zuihou.business.productionReadyCenter.service.MesNoticeLogService;
+import com.github.zuihou.business.productionResourceCenter.dto.MaintenanceLogPageDTO;
+import com.github.zuihou.business.productionResourceCenter.dto.MaintenanceLogSaveDTO;
+import com.github.zuihou.business.productionResourceCenter.dto.MaintenanceLogUpdateDTO;
+import com.github.zuihou.business.productionResourceCenter.entity.MaintenanceLog;
+import com.github.zuihou.business.productionResourceCenter.service.MaintenanceLogService;
+import com.github.zuihou.log.annotation.SysLog;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+import java.util.stream.Collectors;
+
+/**
+ * @Project: imcs-admin-boot
+ * @Package: com.github.zuihou.business.controller.productionResourceCenter
+ * @Author: Lenovo
+ * @Time: 2025 - 07 - 08 14 : 52
+ * @Description:
+ */
+
+@Slf4j
+@Validated
+@RestController
+@RequestMapping("/mesNoticeLog")
+@Api(value = "mesNoticeLog",tags ="代办日志记录")
+@SysLog(enabled = true)
+public class MesNoticeLogController  extends SuperController<MesNoticeLogService,Long, MesNoticeLog, MesNoticeLog, MesNoticeLog, MesNoticeLog> {
+
+    @Autowired
+    private MesNoticeLogService mesNoticeLogService;
+
+    @ApiOperation(value = "根据id查询代办日志", notes = "根据id查询代办日志")
+    @PostMapping("/getList")
+    public R<List<MesNoticeLog>> getList(@RequestBody MesNotice dto) {
+
+        List<MesNoticeLog> list = mesNoticeLogService.getList(dto);
+
+        return success(list);
+    }
+
+
+}