From 8a06a49aa38782ff1019c1abdd48c5592d31599b Mon Sep 17 00:00:00 2001 From: hdy <1105738590@qq.com> Date: 星期五, 03 一月 2025 20:59:27 +0800 Subject: [PATCH] 采集质量数据信息(拧紧数据) --- billion-main/src/main/java/com/billion/main/api/domain/CollectQualityData.java | 25 ++++++++++++ billion-main/src/main/java/com/billion/main/api/service/ICollectQualityDataService.java | 7 +++ billion-main/src/main/java/com/billion/main/api/RestfulAPI.java | 12 +++-- billion-main/src/main/java/com/billion/main/api/service/impl/CollectQualityDataServiceImpl.java | 35 +++++++++++++++++ 4 files changed, 74 insertions(+), 5 deletions(-) diff --git a/billion-main/src/main/java/com/billion/main/api/RestfulAPI.java b/billion-main/src/main/java/com/billion/main/api/RestfulAPI.java index cf2e03c..3d1c0ae 100644 --- a/billion-main/src/main/java/com/billion/main/api/RestfulAPI.java +++ b/billion-main/src/main/java/com/billion/main/api/RestfulAPI.java @@ -1,13 +1,11 @@ package com.billion.main.api; import com.billion.main.api.domain.ApiResponse; +import com.billion.main.api.domain.CollectQualityData; import com.billion.main.api.domain.WorkOrdersInfo; import com.billion.main.api.service.IWorkOrdersInfoService; import org.springframework.beans.factory.annotation.Autowired; -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 org.springframework.web.bind.annotation.*; import java.util.ArrayList; import java.util.List; @@ -27,7 +25,7 @@ * 1銆佸伐鍘侻ES璋冪敤鎺ユ敹宸ュ崟鎺ュ彛锛屽皢宸ュ崟淇℃伅鍙戦�佺粰浜х嚎MES * 2銆佷骇绾縈ES灏嗘帴鏀跺埌鐨勫伐鍗曚俊鎭瓨鍏ュ埌宸ュ崟琛ㄥ拰BOM琛� */ - @PostMapping("/receiveWorkOrdersInfo") + @GetMapping("/receiveWorkOrdersInfo") public ApiResponse receiveWorkOrdersInfo(@RequestBody WorkOrdersInfo workOrdersInfo) { try { // 璋冪敤service灞備繚瀛樻暟鎹� @@ -67,7 +65,11 @@ return response; } } + @PostMapping("/CollectQualityData") + public CollectQualityData CollectQualityData(@RequestBody CollectQualityData collectQualityData){ + return collectQualityData; + } } diff --git a/billion-main/src/main/java/com/billion/main/api/domain/CollectQualityData.java b/billion-main/src/main/java/com/billion/main/api/domain/CollectQualityData.java new file mode 100644 index 0000000..1138d33 --- /dev/null +++ b/billion-main/src/main/java/com/billion/main/api/domain/CollectQualityData.java @@ -0,0 +1,25 @@ +package com.billion.main.api.domain; + +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; +@Data +@AllArgsConstructor +@NoArgsConstructor +public class CollectQualityData { + private String stationID; + private String stationName; + private String engineNumber; + private String factoryNumber; + private String engineSerialNumber; + private String orderNumber; + private String insertTime; + private String detectionID; + private String detectionName; + private String upperSpec; + private String lowerSpec; + private String target; + private String unit; + private String actualValue; + private String status; +} \ No newline at end of file diff --git a/billion-main/src/main/java/com/billion/main/api/service/ICollectQualityDataService.java b/billion-main/src/main/java/com/billion/main/api/service/ICollectQualityDataService.java new file mode 100644 index 0000000..e7cb0fd --- /dev/null +++ b/billion-main/src/main/java/com/billion/main/api/service/ICollectQualityDataService.java @@ -0,0 +1,7 @@ +package com.billion.main.api.service; + +import com.billion.main.api.domain.CollectQualityData; + +public interface ICollectQualityDataService { + boolean postCollectQualityData(CollectQualityData collectQualityData); +} diff --git a/billion-main/src/main/java/com/billion/main/api/service/impl/CollectQualityDataServiceImpl.java b/billion-main/src/main/java/com/billion/main/api/service/impl/CollectQualityDataServiceImpl.java new file mode 100644 index 0000000..de64b8e --- /dev/null +++ b/billion-main/src/main/java/com/billion/main/api/service/impl/CollectQualityDataServiceImpl.java @@ -0,0 +1,35 @@ +package com.billion.main.api.service.impl; + +import com.billion.main.api.domain.CollectQualityData; +import com.billion.main.api.service.ICollectQualityDataService; +import com.billion.main.da.service.IDaMaterialCollectionService; +import com.billion.main.da.service.IDaParamCollectionService; +import com.billion.main.da.service.IDaTightenCollectionService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +/** + * 鐗╂枡閲囬泦Service涓氬姟灞傚鐞� + * + * @author Billion-Yi + * @date 2024-11-22 + */ +@Service +public class CollectQualityDataServiceImpl implements ICollectQualityDataService +{ + @Autowired + private IDaMaterialCollectionService daMaterialCollectionService; + @Autowired + private IDaParamCollectionService daParamCollectionService; + @Autowired + private IDaTightenCollectionService daTightenCollectionService; + + + @Transactional + @Override + public boolean postCollectQualityData(CollectQualityData collectQualityData) { + + return false; + } +} -- Gitblit v1.9.3